gear-second 1.5.4 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +10 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2,27 +2,28 @@
2
2
  * @vue/shared v3.4.15
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function Ke(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const de={},Ge=[],Ue=()=>{},hl=()=>!1,Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bo=e=>e.startsWith("onUpdate:"),Ce=Object.assign,yo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gl=Object.prototype.hasOwnProperty,ve=(e,t)=>gl.call(e,t),ee=Array.isArray,Gt=e=>On(e)==="[object Map]",Tr=e=>On(e)==="[object Set]",le=e=>typeof e=="function",ke=e=>typeof e=="string",Jt=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",$r=e=>(ye(e)||le(e))&&le(e.then)&&le(e.catch),Er=Object.prototype.toString,On=e=>Er.call(e),ml=e=>On(e).slice(8,-1),Pr=e=>On(e)==="[object Object]",wo=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mn=Ke(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vl=/-(\w)/g,Ne=Ln(e=>e.replace(vl,(t,n)=>n?n.toUpperCase():"")),_l=/\B([A-Z])/g,Ye=Ln(e=>e.replace(_l,"-$1").toLowerCase()),An=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),xo=Ln(e=>e?`on${An(e)}`:""),st=(e,t)=>!Object.is(e,t),zn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},jn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},So=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Co=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Or;const ko=()=>Or||(Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ke(o)?xl(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(ke(e)||ye(e))return e}const bl=/;(?![^(]*\))/g,yl=/:([^]+)/,wl=/\/\*[^]*?\*\//g;function xl(e){const t={};return e.replace(wl,"").split(bl).forEach(n=>{if(n){const o=n.split(yl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(ke(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Sl=Ke("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Mr(e){return!!e||e===""}const Je=e=>ke(e)?e:e==null?"":ee(e)||ye(e)&&(e.toString===Er||!le(e.toString))?JSON.stringify(e,Lr,2):String(e),Lr=(e,t)=>t&&t.__v_isRef?Lr(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Io(o,i)+" =>"]=r,n),{})}:Tr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Io(n))}:Jt(t)?Io(t):ye(t)&&!ee(t)&&!Pr(t)?String(t):t,Io=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **/function Ke(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const de={},Ge=[],Ue=()=>{},hl=()=>!1,Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bo=e=>e.startsWith("onUpdate:"),Ce=Object.assign,yo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gl=Object.prototype.hasOwnProperty,ve=(e,t)=>gl.call(e,t),ee=Array.isArray,Gt=e=>On(e)==="[object Map]",Tr=e=>On(e)==="[object Set]",le=e=>typeof e=="function",ke=e=>typeof e=="string",Jt=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",$r=e=>(ye(e)||le(e))&&le(e.then)&&le(e.catch),Er=Object.prototype.toString,On=e=>Er.call(e),ml=e=>On(e).slice(8,-1),Pr=e=>On(e)==="[object Object]",wo=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mn=Ke(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vl=/-(\w)/g,Ne=Ln(e=>e.replace(vl,(t,n)=>n?n.toUpperCase():"")),_l=/\B([A-Z])/g,Ye=Ln(e=>e.replace(_l,"-$1").toLowerCase()),An=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),xo=Ln(e=>e?`on${An(e)}`:""),lt=(e,t)=>!Object.is(e,t),zn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},jn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},So=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Co=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Or;const ko=()=>Or||(Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ke(o)?xl(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(ke(e)||ye(e))return e}const bl=/;(?![^(]*\))/g,yl=/:([^]+)/,wl=/\/\*[^]*?\*\//g;function xl(e){const t={};return e.replace(wl,"").split(bl).forEach(n=>{if(n){const o=n.split(yl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(ke(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Sl=Ke("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Mr(e){return!!e||e===""}const Je=e=>ke(e)?e:e==null?"":ee(e)||ye(e)&&(e.toString===Er||!le(e.toString))?JSON.stringify(e,Lr,2):String(e),Lr=(e,t)=>t&&t.__v_isRef?Lr(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Io(o,i)+" =>"]=r,n),{})}:Tr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Io(n))}:Jt(t)?Io(t):ye(t)&&!ee(t)&&!Pr(t)?String(t):t,Io=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
6
  * @vue/reactivity v3.4.15
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let qe;class Cl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qe,!t&&qe&&(this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=qe;try{return qe=this,t()}finally{qe=n}}}on(){qe=this}off(){qe=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function kl(e,t=qe){t&&t.active&&t.effects.push(e)}function Ar(){return qe}function Il(e){qe&&qe.cleanups.push(e)}let Bt;class To{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,kl(this,r)}get dirty(){if(this._dirtyLevel===1){St();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Tl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),Ct()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=xt,n=Bt;try{return xt=!0,Bt=this,this._runnings++,zr(this),this.fn()}finally{jr(this),this._runnings--,Bt=n,xt=t}}stop(){var t;this.active&&(zr(this),jr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Tl(e){return e.value}function zr(e){e._trackId++,e._depsLength=0}function jr(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Br(e.deps[t],e);e.deps.length=e._depsLength}}function Br(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let xt=!0,$o=0;const Dr=[];function St(){Dr.push(xt),xt=!1}function Ct(){const e=Dr.pop();xt=e===void 0?!0:e}function Eo(){$o++}function Po(){for($o--;!$o&&Oo.length;)Oo.shift()()}function Rr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Br(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Oo=[];function Vr(e,t,n){Eo();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const r=o._dirtyLevel;o._dirtyLevel=t,r===0&&(o._shouldSchedule=!0,o.trigger())}Nr(e),Po()}function Nr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Oo.push(t.scheduler))}const Hr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Dt=Symbol(""),Lo=Symbol("");function He(e,t,n){if(xt&&Bt){let o=Mo.get(e);o||Mo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Hr(()=>o.delete(n))),Rr(Bt,r)}}function gt(e,t,n,o,r,i){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Jt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?wo(n)&&l.push(s.get("length")):(l.push(s.get(Dt)),Gt(e)&&l.push(s.get(Lo)));break;case"delete":ee(e)||(l.push(s.get(Dt)),Gt(e)&&l.push(s.get(Lo)));break;case"set":Gt(e)&&l.push(s.get(Dt));break}Eo();for(const a of l)a&&Vr(a,2);Po()}const $l=Ke("__proto__,__v_isRef,__isVue"),Fr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt)),Wr=El();function El(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=me(this);for(let i=0,s=this.length;i<s;i++)He(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(me)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){St(),Eo();const o=me(this)[t].apply(this,n);return Po(),Ct(),o}}),e}function Pl(e){const t=me(this);return He(t,"has",e),t.hasOwnProperty(e)}class Kr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Fl:Qr:i?Jr:Gr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!r){if(s&&ve(Wr,n))return Reflect.get(Wr,n,o);if(n==="hasOwnProperty")return Pl}const l=Reflect.get(t,n,o);return(Jt(n)?Fr.has(n):$l(n))||(r||He(t,"get",n),i)?l:Me(l)?s&&wo(n)?l:l.value:ye(l)?r?ei(l):an(l):l}}class Ur extends Kr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=en(i);if(!Fn(o)&&!en(o)&&(i=me(i),o=me(o)),!ee(t)&&Me(i)&&!Me(o))return a?!1:(i.value=o,!0)}const s=ee(t)&&wo(n)?Number(n)<t.length:ve(t,n),l=Reflect.set(t,n,o,r);return t===me(r)&&(s?st(o,i)&&gt(t,"set",n,o):gt(t,"add",n,o)),l}deleteProperty(t,n){const o=ve(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&gt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Jt(n)||!Fr.has(n))&&He(t,"has",n),o}ownKeys(t){return He(t,"iterate",ee(t)?"length":Dt),Reflect.ownKeys(t)}}class Ol extends Kr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ml=new Ur,Ll=new Ol,Al=new Ur(!0),Ao=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function Dn(e,t,n=!1,o=!1){e=e.__v_raw;const r=me(e),i=me(t);n||(st(t,i)&&He(r,"get",t),He(r,"get",i));const{has:s}=Bn(r),l=o?Ao:n?Bo:cn;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Rn(e,t=!1){const n=this.__v_raw,o=me(n),r=me(e);return t||(st(e,r)&&He(o,"has",e),He(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Vn(e,t=!1){return e=e.__v_raw,!t&&He(me(e),"iterate",Dt),Reflect.get(e,"size",e)}function Yr(e){e=me(e);const t=me(this);return Bn(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function qr(e,t){t=me(t);const n=me(this),{has:o,get:r}=Bn(n);let i=o.call(n,e);i||(e=me(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?st(t,s)&&gt(n,"set",e,t):gt(n,"add",e,t),this}function Xr(e){const t=me(this),{has:n,get:o}=Bn(t);let r=n.call(t,e);r||(e=me(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&gt(t,"delete",e,void 0),i}function Zr(){const e=me(this),t=e.size!==0,n=e.clear();return t&&gt(e,"clear",void 0,void 0),n}function Nn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=me(s),a=t?Ao:e?Bo:cn;return!e&&He(l,"iterate",Dt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,i=me(r),s=Gt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Ao:t?Bo:cn;return!t&&He(i,"iterate",a?Lo:Dt),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:l?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zl(){const e={get(i){return Dn(this,i)},get size(){return Vn(this)},has:Rn,add:Yr,set:qr,delete:Xr,clear:Zr,forEach:Nn(!1,!1)},t={get(i){return Dn(this,i,!1,!0)},get size(){return Vn(this)},has:Rn,add:Yr,set:qr,delete:Xr,clear:Zr,forEach:Nn(!1,!0)},n={get(i){return Dn(this,i,!0)},get size(){return Vn(this,!0)},has(i){return Rn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Nn(!0,!1)},o={get(i){return Dn(this,i,!0,!0)},get size(){return Vn(this,!0)},has(i){return Rn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Nn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Hn(i,!1,!1),n[i]=Hn(i,!0,!1),t[i]=Hn(i,!1,!0),o[i]=Hn(i,!0,!0)}),[e,n,t,o]}const[jl,Bl,Dl,Rl]=zl();function zo(e,t){const n=t?e?Rl:Dl:e?Bl:jl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ve(n,r)&&r in o?n:o,r,i)}const Vl={get:zo(!1,!1)},Nl={get:zo(!1,!0)},Hl={get:zo(!0,!1)},Gr=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,Fl=new WeakMap;function Wl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kl(e){return e.__v_skip||!Object.isExtensible(e)?0:Wl(ml(e))}function an(e){return en(e)?e:jo(e,!1,Ml,Vl,Gr)}function Ul(e){return jo(e,!1,Al,Nl,Jr)}function ei(e){return jo(e,!0,Ll,Hl,Qr)}function jo(e,t,n,o,r){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Kl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Qt(e){return en(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Fn(e){return!!(e&&e.__v_isShallow)}function ti(e){return Qt(e)||en(e)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function ni(e){return jn(e,"__v_skip",!0),e}const cn=e=>ye(e)?an(e):e,Bo=e=>ye(e)?ei(e):e;class oi{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new To(()=>t(this._value),()=>un(this,1),()=>this.dep&&Nr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=me(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&un(t,2),Do(t),t.effect._dirtyLevel>=1&&un(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Yl(e,t,n=!1){let o,r;const i=le(e);return i?(o=e,r=Ue):(o=e.get,r=e.set),new oi(o,r,i||!r,n)}function Do(e){xt&&Bt&&(e=me(e),Rr(Bt,e.dep||(e.dep=Hr(()=>e.dep=void 0,e instanceof oi?e:void 0))))}function un(e,t=2,n){e=me(e);const o=e.dep;o&&Vr(o,t)}function Me(e){return!!(e&&e.__v_isRef===!0)}function G(e){return ql(e,!1)}function ql(e,t){return Me(e)?e:new Xl(e,t)}class Xl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:me(t),this._value=n?t:cn(t)}get value(){return Do(this),this._value}set value(t){const n=this.__v_isShallow||Fn(t)||en(t);t=n?t:me(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),un(this,2))}}function te(e){return Me(e)?e.value:e}const Zl={get:(e,t,n)=>te(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Me(r)&&!Me(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ri(e){return Qt(e)?e:new Proxy(e,Zl)}class Gl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Do(this),()=>un(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Jl(e){return new Gl(e)}/**
9
+ **/let qe;class Cl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qe,!t&&qe&&(this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=qe;try{return qe=this,t()}finally{qe=n}}}on(){qe=this}off(){qe=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function kl(e,t=qe){t&&t.active&&t.effects.push(e)}function Ar(){return qe}function Il(e){qe&&qe.cleanups.push(e)}let Bt;class To{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,kl(this,r)}get dirty(){if(this._dirtyLevel===1){St();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Tl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),Ct()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=xt,n=Bt;try{return xt=!0,Bt=this,this._runnings++,zr(this),this.fn()}finally{jr(this),this._runnings--,Bt=n,xt=t}}stop(){var t;this.active&&(zr(this),jr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Tl(e){return e.value}function zr(e){e._trackId++,e._depsLength=0}function jr(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Br(e.deps[t],e);e.deps.length=e._depsLength}}function Br(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let xt=!0,$o=0;const Dr=[];function St(){Dr.push(xt),xt=!1}function Ct(){const e=Dr.pop();xt=e===void 0?!0:e}function Eo(){$o++}function Po(){for($o--;!$o&&Oo.length;)Oo.shift()()}function Rr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Br(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Oo=[];function Vr(e,t,n){Eo();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const r=o._dirtyLevel;o._dirtyLevel=t,r===0&&(o._shouldSchedule=!0,o.trigger())}Nr(e),Po()}function Nr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Oo.push(t.scheduler))}const Hr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Dt=Symbol(""),Lo=Symbol("");function He(e,t,n){if(xt&&Bt){let o=Mo.get(e);o||Mo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Hr(()=>o.delete(n))),Rr(Bt,r)}}function gt(e,t,n,o,r,i){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Jt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?wo(n)&&l.push(s.get("length")):(l.push(s.get(Dt)),Gt(e)&&l.push(s.get(Lo)));break;case"delete":ee(e)||(l.push(s.get(Dt)),Gt(e)&&l.push(s.get(Lo)));break;case"set":Gt(e)&&l.push(s.get(Dt));break}Eo();for(const a of l)a&&Vr(a,2);Po()}const $l=Ke("__proto__,__v_isRef,__isVue"),Fr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt)),Wr=El();function El(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=me(this);for(let i=0,s=this.length;i<s;i++)He(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(me)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){St(),Eo();const o=me(this)[t].apply(this,n);return Po(),Ct(),o}}),e}function Pl(e){const t=me(this);return He(t,"has",e),t.hasOwnProperty(e)}class Kr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Fl:Qr:i?Jr:Gr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!r){if(s&&ve(Wr,n))return Reflect.get(Wr,n,o);if(n==="hasOwnProperty")return Pl}const l=Reflect.get(t,n,o);return(Jt(n)?Fr.has(n):$l(n))||(r||He(t,"get",n),i)?l:Me(l)?s&&wo(n)?l:l.value:ye(l)?r?ei(l):an(l):l}}class Ur extends Kr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=en(i);if(!Fn(o)&&!en(o)&&(i=me(i),o=me(o)),!ee(t)&&Me(i)&&!Me(o))return a?!1:(i.value=o,!0)}const s=ee(t)&&wo(n)?Number(n)<t.length:ve(t,n),l=Reflect.set(t,n,o,r);return t===me(r)&&(s?lt(o,i)&&gt(t,"set",n,o):gt(t,"add",n,o)),l}deleteProperty(t,n){const o=ve(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&gt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Jt(n)||!Fr.has(n))&&He(t,"has",n),o}ownKeys(t){return He(t,"iterate",ee(t)?"length":Dt),Reflect.ownKeys(t)}}class Ol extends Kr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ml=new Ur,Ll=new Ol,Al=new Ur(!0),Ao=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function Dn(e,t,n=!1,o=!1){e=e.__v_raw;const r=me(e),i=me(t);n||(lt(t,i)&&He(r,"get",t),He(r,"get",i));const{has:s}=Bn(r),l=o?Ao:n?Bo:cn;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Rn(e,t=!1){const n=this.__v_raw,o=me(n),r=me(e);return t||(lt(e,r)&&He(o,"has",e),He(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Vn(e,t=!1){return e=e.__v_raw,!t&&He(me(e),"iterate",Dt),Reflect.get(e,"size",e)}function Yr(e){e=me(e);const t=me(this);return Bn(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function qr(e,t){t=me(t);const n=me(this),{has:o,get:r}=Bn(n);let i=o.call(n,e);i||(e=me(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?lt(t,s)&&gt(n,"set",e,t):gt(n,"add",e,t),this}function Xr(e){const t=me(this),{has:n,get:o}=Bn(t);let r=n.call(t,e);r||(e=me(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&gt(t,"delete",e,void 0),i}function Zr(){const e=me(this),t=e.size!==0,n=e.clear();return t&&gt(e,"clear",void 0,void 0),n}function Nn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=me(s),a=t?Ao:e?Bo:cn;return!e&&He(l,"iterate",Dt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,i=me(r),s=Gt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Ao:t?Bo:cn;return!t&&He(i,"iterate",a?Lo:Dt),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:l?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zl(){const e={get(i){return Dn(this,i)},get size(){return Vn(this)},has:Rn,add:Yr,set:qr,delete:Xr,clear:Zr,forEach:Nn(!1,!1)},t={get(i){return Dn(this,i,!1,!0)},get size(){return Vn(this)},has:Rn,add:Yr,set:qr,delete:Xr,clear:Zr,forEach:Nn(!1,!0)},n={get(i){return Dn(this,i,!0)},get size(){return Vn(this,!0)},has(i){return Rn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Nn(!0,!1)},o={get(i){return Dn(this,i,!0,!0)},get size(){return Vn(this,!0)},has(i){return Rn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Nn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Hn(i,!1,!1),n[i]=Hn(i,!0,!1),t[i]=Hn(i,!1,!0),o[i]=Hn(i,!0,!0)}),[e,n,t,o]}const[jl,Bl,Dl,Rl]=zl();function zo(e,t){const n=t?e?Rl:Dl:e?Bl:jl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ve(n,r)&&r in o?n:o,r,i)}const Vl={get:zo(!1,!1)},Nl={get:zo(!1,!0)},Hl={get:zo(!0,!1)},Gr=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,Fl=new WeakMap;function Wl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kl(e){return e.__v_skip||!Object.isExtensible(e)?0:Wl(ml(e))}function an(e){return en(e)?e:jo(e,!1,Ml,Vl,Gr)}function Ul(e){return jo(e,!1,Al,Nl,Jr)}function ei(e){return jo(e,!0,Ll,Hl,Qr)}function jo(e,t,n,o,r){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Kl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Qt(e){return en(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Fn(e){return!!(e&&e.__v_isShallow)}function ti(e){return Qt(e)||en(e)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function ni(e){return jn(e,"__v_skip",!0),e}const cn=e=>ye(e)?an(e):e,Bo=e=>ye(e)?ei(e):e;class oi{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new To(()=>t(this._value),()=>un(this,1),()=>this.dep&&Nr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=me(this);return(!t._cacheable||t.effect.dirty)&&lt(t._value,t._value=t.effect.run())&&un(t,2),Do(t),t.effect._dirtyLevel>=1&&un(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Yl(e,t,n=!1){let o,r;const i=le(e);return i?(o=e,r=Ue):(o=e.get,r=e.set),new oi(o,r,i||!r,n)}function Do(e){xt&&Bt&&(e=me(e),Rr(Bt,e.dep||(e.dep=Hr(()=>e.dep=void 0,e instanceof oi?e:void 0))))}function un(e,t=2,n){e=me(e);const o=e.dep;o&&Vr(o,t)}function Me(e){return!!(e&&e.__v_isRef===!0)}function G(e){return ql(e,!1)}function ql(e,t){return Me(e)?e:new Xl(e,t)}class Xl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:me(t),this._value=n?t:cn(t)}get value(){return Do(this),this._value}set value(t){const n=this.__v_isShallow||Fn(t)||en(t);t=n?t:me(t),lt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),un(this,2))}}function te(e){return Me(e)?e.value:e}const Zl={get:(e,t,n)=>te(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Me(r)&&!Me(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ri(e){return Qt(e)?e:new Proxy(e,Zl)}class Gl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Do(this),()=>un(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Jl(e){return new Gl(e)}/**
10
10
  * @vue/runtime-core v3.4.15
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
13
  **/const fn=[];function $p(e,...t){St();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=Ql();if(o)mt(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Zi(n,i.type)}>`).join(`
14
14
  `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
15
15
  `,...ea(r)),console.warn(...i)}Ct()}function Ql(){let e=fn[fn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function ea(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...ta(n))}),t}function ta({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Zi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...na(e.props),i]:[r+i]}function na(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ii(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ii(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Me(t)?(t=ii(e,me(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):le(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=me(t),n?t:[`${e}=`,t])}function mt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Wn(i,t,n)}return r}function Qe(e,t,n,o){if(le(e)){const i=mt(e,t,n,o);return i&&$r(i)&&i.catch(s=>{Wn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Qe(e[i],t,n,o));return r}function Wn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){mt(a,null,10,[e,s,l]);return}}oa(e,n,r,o)}function oa(e,t,n,o=!0){console.error(e)}let dn=!1,Ro=!1;const je=[];let lt=0;const tn=[];let It=null,Rt=0;const si=Promise.resolve();let Vo=null;function vt(e){const t=Vo||si;return e?t.then(this?e.bind(this):e):t}function ra(e){let t=lt+1,n=je.length;for(;t<n;){const o=t+n>>>1,r=je[o],i=pn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function No(e){(!je.length||!je.includes(e,dn&&e.allowRecurse?lt+1:lt))&&(e.id==null?je.push(e):je.splice(ra(e.id),0,e),li())}function li(){!dn&&!Ro&&(Ro=!0,Vo=si.then(ui))}function ia(e){const t=je.indexOf(e);t>lt&&je.splice(t,1)}function sa(e){ee(e)?tn.push(...e):(!It||!It.includes(e,e.allowRecurse?Rt+1:Rt))&&tn.push(e),li()}function ai(e,t,n=dn?lt+1:0){for(;n<je.length;n++){const o=je[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;je.splice(n,1),n--,o()}}}function ci(e){if(tn.length){const t=[...new Set(tn)].sort((n,o)=>pn(n)-pn(o));if(tn.length=0,It){It.push(...t);return}for(It=t,Rt=0;Rt<It.length;Rt++)It[Rt]();It=null,Rt=0}}const pn=e=>e.id==null?1/0:e.id,la=(e,t)=>{const n=pn(e)-pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ui(e){Ro=!1,dn=!0,je.sort(la);const t=Ue;try{for(lt=0;lt<je.length;lt++){const n=je[lt];n&&n.active!==!1&&mt(n,null,14)}}finally{lt=0,je.length=0,ci(),dn=!1,Vo=null,(je.length||tn.length)&&ui()}}function aa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||de;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:h}=o[u]||de;h&&(r=n.map(x=>ke(x)?x.trim():x)),d&&(r=n.map(So))}let l,a=o[l=xo(t)]||o[l=xo(Ne(t))];!a&&i&&(a=o[l=xo(Ye(t))]),a&&Qe(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,r)}}function fi(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!le(e)){const a=c=>{const u=fi(c,t,!0);u&&(l=!0,Ce(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ye(e)&&o.set(e,null),null):(ee(i)?i.forEach(a=>s[a]=null):Ce(s,i),ye(e)&&o.set(e,s),s)}function Kn(e,t){return!e||!Pn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,Ye(t))||ve(e,t))}let Le=null,di=null;function Un(e){const t=Le;return Le=e,di=e&&e.type.__scopeId||null,t}function fe(e,t=Le,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ni(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Ni(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Ep(){}function Ho(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:h,setupState:x,ctx:w,inheritAttrs:v}=e;let z,j;const re=Un(e);try{if(n.shapeFlag&4){const $=r||o,S=$;z=ct(u.call(S,$,d,i,x,h,w)),j=a}else{const $=t;z=ct($.length>1?$(i,{attrs:a,slots:l,emit:c}):$(i,null)),j=t.props?a:ca(a)}}catch($){_n.length=0,Wn($,e,1),z=Q(nt)}let C=z;if(j&&v!==!1){const $=Object.keys(j),{shapeFlag:S}=C;$.length&&S&7&&(s&&$.some(bo)&&(j=ua(j,s)),C=$t(C,j))}return n.dirs&&(C=$t(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),z=C,Un(re),z}const ca=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pn(n))&&((t||(t={}))[n]=e[n]);return t},ua=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function fa(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?pi(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(s[h]!==o[h]&&!Kn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?pi(o,s,c):!0:!!s;return!1}function pi(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Kn(n,i))return!0}return!1}function da({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const hi="components",gi=Symbol.for("v-ndc");function pa(e){return ke(e)?ha(hi,e,!1)||e:e||gi}function ha(e,t,n=!0,o=!1){const r=Le||ze;if(r){const i=r.type;if(e===hi){const l=Xi(i,!1);if(l&&(l===t||l===Ne(t)||l===An(Ne(t))))return i}const s=mi(r[e]||i[e],t)||mi(r.appContext[e],t);return!s&&o?i:s}}function mi(e,t){return e&&(e[t]||e[Ne(t)]||e[An(Ne(t))])}const ga=e=>e.__isSuspense;function ma(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):sa(e)}const va=Symbol.for("v-scx"),_a=()=>Ft(va);function ba(e,t){return Fo(e,null,{flush:"sync"})}const Yn={};function _e(e,t,n){return Fo(e,t,n)}function Fo(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=de){if(t&&i){const m=t;t=(...W)=>{m(...W),S()}}const a=ze,c=m=>o===!0?m:Vt(m,o===!1?1:void 0);let u,d=!1,h=!1;if(Me(e)?(u=()=>e.value,d=Fn(e)):Qt(e)?(u=()=>c(e),d=!0):ee(e)?(h=!0,d=e.some(m=>Qt(m)||Fn(m)),u=()=>e.map(m=>{if(Me(m))return m.value;if(Qt(m))return c(m);if(le(m))return mt(m,a,2)})):le(e)?t?u=()=>mt(e,a,2):u=()=>(x&&x(),Qe(e,a,3,[w])):u=Ue,t&&o){const m=u;u=()=>Vt(m())}let x,w=m=>{x=C.onStop=()=>{mt(m,a,4),x=C.onStop=void 0}},v;if(ao)if(w=Ue,t?n&&Qe(t,a,3,[u(),h?[]:void 0,w]):u(),r==="sync"){const m=_a();v=m.__watcherHandles||(m.__watcherHandles=[])}else return Ue;let z=h?new Array(e.length).fill(Yn):Yn;const j=()=>{if(!(!C.active||!C.dirty))if(t){const m=C.run();(o||d||(h?m.some((W,_)=>st(W,z[_])):st(m,z)))&&(x&&x(),Qe(t,a,3,[m,z===Yn?void 0:h&&z[0]===Yn?[]:z,w]),z=m)}else C.run()};j.allowRecurse=!!t;let re;r==="sync"?re=j:r==="post"?re=()=>Fe(j,a&&a.suspense):(j.pre=!0,a&&(j.id=a.uid),re=()=>No(j));const C=new To(u,Ue,re),$=Ar(),S=()=>{C.stop(),$&&yo($.effects,C)};return t?n?j():z=C.run():r==="post"?Fe(C.run.bind(C),a&&a.suspense):C.run(),v&&v.push(S),S}function ya(e,t,n){const o=this.proxy,r=ke(e)?e.includes(".")?vi(o,e):()=>o[e]:e.bind(o,o);let i;le(t)?i=t:(i=t.handler,n=t);const s=yn(this),l=Fo(r,i.bind(o),n);return s(),l}function vi(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Vt(e,t,n=0,o){if(!ye(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Me(e))Vt(e.value,t,n,o);else if(ee(e))for(let r=0;r<e.length;r++)Vt(e[r],t,n,o);else if(Tr(e)||Gt(e))e.forEach(r=>{Vt(r,t,n,o)});else if(Pr(e))for(const r in e)Vt(e[r],t,n,o);return e}function _t(e,t){if(Le===null)return e;const n=co(Le)||Le.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=de]=t[r];i&&(le(i)&&(i={mounted:i,updated:i}),i.deep&&Vt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Nt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(St(),Qe(a,n,8,[e.el,l,e,t]),Ct())}}const Tt=Symbol("_leaveCb"),qn=Symbol("_enterCb");function wa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Gn(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],_i={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},xa={name:"BaseTransition",props:_i,setup(e,{slots:t}){const n=rr(),o=wa();let r;return()=>{const i=t.default&&wi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const v of i)if(v.type!==nt){s=v;break}}const l=me(e),{mode:a}=l;if(o.isLeaving)return Ko(s);const c=yi(s);if(!c)return Ko(s);const u=Wo(c,l,o,n);Uo(c,u);const d=n.subTree,h=d&&yi(d);let x=!1;const{getTransitionKey:w}=c.type;if(w){const v=w();r===void 0?r=v:v!==r&&(r=v,x=!0)}if(h&&h.type!==nt&&(!Kt(c,h)||x)){const v=Wo(h,l,o,n);if(Uo(h,v),a==="out-in")return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ko(s);a==="in-out"&&c.type!==nt&&(v.delayLeave=(z,j,re)=>{const C=bi(o,h);C[String(h.key)]=h,z[Tt]=()=>{j(),z[Tt]=void 0,delete u.delayedLeave},u.delayedLeave=re})}return s}}};function bi(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Wo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:x,onLeaveCancelled:w,onBeforeAppear:v,onAppear:z,onAfterAppear:j,onAppearCancelled:re}=t,C=String(e.key),$=bi(n,e),S=(_,Y)=>{_&&Qe(_,o,9,Y)},m=(_,Y)=>{const B=Y[1];S(_,Y),ee(_)?_.every(se=>se.length<=1)&&B():_.length<=1&&B()},W={mode:i,persisted:s,beforeEnter(_){let Y=l;if(!n.isMounted)if(r)Y=v||l;else return;_[Tt]&&_[Tt](!0);const B=$[C];B&&Kt(e,B)&&B.el[Tt]&&B.el[Tt](),S(Y,[_])},enter(_){let Y=a,B=c,se=u;if(!n.isMounted)if(r)Y=z||a,B=j||c,se=re||u;else return;let N=!1;const ie=_[qn]=pe=>{N||(N=!0,pe?S(se,[_]):S(B,[_]),W.delayedLeave&&W.delayedLeave(),_[qn]=void 0)};Y?m(Y,[_,ie]):ie()},leave(_,Y){const B=String(e.key);if(_[qn]&&_[qn](!0),n.isUnmounting)return Y();S(d,[_]);let se=!1;const N=_[Tt]=ie=>{se||(se=!0,Y(),ie?S(w,[_]):S(x,[_]),_[Tt]=void 0,$[B]===e&&delete $[B])};$[B]=e,h?m(h,[_,N]):N()},clone(_){return Wo(_,t,n,o)}};return W}function Ko(e){if(Xn(e))return e=$t(e),e.children=null,e}function yi(e){return Xn(e)?e.children?e.children[0]:void 0:e}function Uo(e,t){e.shapeFlag&6&&e.component?Uo(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wi(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Ie?(s.patchFlag&128&&r++,o=o.concat(wi(s.children,t,l))):(t||s.type!==nt)&&o.push(l!=null?$t(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function Te(e,t){return le(e)?(()=>Ce({name:e.name},t,{setup:e}))():e}const hn=e=>!!e.type.__asyncLoader,Xn=e=>e.type.__isKeepAlive;function Sa(e,t){xi(e,"a",t)}function Ca(e,t){xi(e,"da",t)}function xi(e,t,n=ze){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Zn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Xn(r.parent.vnode)&&ka(o,t,n,r),r=r.parent}}function ka(e,t,n,o){const r=Zn(t,e,o,!0);at(()=>{yo(o[t],r)},n)}function Zn(e,t,n=ze,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;St();const l=yn(n),a=Qe(t,n,e,s);return l(),Ct(),a});return o?r.unshift(i):r.push(i),i}}const bt=e=>(t,n=ze)=>(!ao||e==="sp")&&Zn(e,(...o)=>t(...o),n),Ia=bt("bm"),tt=bt("m"),Ta=bt("bu"),$a=bt("u"),Gn=bt("bum"),at=bt("um"),Ea=bt("sp"),Pa=bt("rtg"),Oa=bt("rtc");function Ma(e,t=ze){Zn("ec",e,t)}function gn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||ke(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(ye(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function Si(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function $e(e,t,n={},o,r){if(Le.isCE||Le.parent&&hn(Le.parent)&&Le.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),R();const s=i&&Ci(i(n)),l=xe(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Ci(e){return e.some(t=>oo(t)?!(t.type===nt||t.type===Ie&&!Ci(t.children)):!0)?e:null}const Yo=e=>e?Ki(e)?co(e)||e.proxy:Yo(e.parent):null,mn=Ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yo(e.parent),$root:e=>Yo(e.root),$emit:e=>e.emit,$options:e=>Zo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,No(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>ya.bind(e)}),qo=(e,t)=>e!==de&&!e.__isScriptSetup&&ve(e,t),La={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const x=s[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 i[t]}else{if(qo(o,t))return s[t]=1,o[t];if(r!==de&&ve(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ve(c,t))return s[t]=3,i[t];if(n!==de&&ve(n,t))return s[t]=4,n[t];Xo&&(s[t]=0)}}const u=mn[t];let d,h;if(u)return t==="$attrs"&&He(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==de&&ve(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ve(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return qo(r,t)?(r[t]=n,!0):o!==de&&ve(o,t)?(o[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==de&&ve(e,s)||qo(t,s)||(l=i[0])&&ve(l,s)||ve(o,s)||ve(mn,s)||ve(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Jn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ht(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):Ce({},Jn(e),Jn(t))}let Xo=!0;function Aa(e){const t=Zo(e),n=e.proxy,o=e.ctx;Xo=!1,t.beforeCreate&&ki(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:x,updated:w,activated:v,deactivated:z,beforeDestroy:j,beforeUnmount:re,destroyed:C,unmounted:$,render:S,renderTracked:m,renderTriggered:W,errorCaptured:_,serverPrefetch:Y,expose:B,inheritAttrs:se,components:N,directives:ie,filters:pe}=t;if(c&&za(c,o,null),s)for(const y in s){const H=s[y];le(H)&&(o[y]=H.bind(n))}if(r){const y=r.call(n,n);ye(y)&&(e.data=an(y))}if(Xo=!0,i)for(const y in i){const H=i[y],O=le(H)?H.bind(n,n):le(H.get)?H.get.bind(n,n):Ue,K=!le(H)&&le(H.set)?H.set.bind(n):Ue,M=ae({get:O,set:K});Object.defineProperty(o,y,{enumerable:!0,configurable:!0,get:()=>M.value,set:D=>M.value=D})}if(l)for(const y in l)Ii(l[y],o,n,y);if(a){const y=le(a)?a.call(n):a;Reflect.ownKeys(y).forEach(H=>{to(H,y[H])})}u&&ki(u,e,"c");function J(y,H){ee(H)?H.forEach(O=>y(O.bind(n))):H&&y(H.bind(n))}if(J(Ia,d),J(tt,h),J(Ta,x),J($a,w),J(Sa,v),J(Ca,z),J(Ma,_),J(Oa,m),J(Pa,W),J(Gn,re),J(at,$),J(Ea,Y),ee(B))if(B.length){const y=e.exposed||(e.exposed={});B.forEach(H=>{Object.defineProperty(y,H,{get:()=>n[H],set:O=>n[H]=O})})}else e.exposed||(e.exposed={});S&&e.render===Ue&&(e.render=S),se!=null&&(e.inheritAttrs=se),N&&(e.components=N),ie&&(e.directives=ie)}function za(e,t,n=Ue){ee(e)&&(e=Go(e));for(const o in e){const r=e[o];let i;ye(r)?"default"in r?i=Ft(r.from||o,r.default,!0):i=Ft(r.from||o):i=Ft(r),Me(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function ki(e,t,n){Qe(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ii(e,t,n,o){const r=o.includes(".")?vi(n,o):()=>n[o];if(ke(e)){const i=t[e];le(i)&&_e(r,i)}else if(le(e))_e(r,e.bind(n));else if(ye(e))if(ee(e))e.forEach(i=>Ii(i,t,n,o));else{const i=le(e.handler)?e.handler.bind(n):t[e.handler];le(i)&&_e(r,i,e)}}function Zo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Qn(a,c,s,!0)),Qn(a,t,s)),ye(t)&&i.set(t,a),a}function Qn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Qn(e,i,n,!0),r&&r.forEach(s=>Qn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=ja[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const ja={data:Ti,props:$i,emits:$i,methods:vn,computed:vn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:vn,directives:vn,watch:Da,provide:Ti,inject:Ba};function Ti(e,t){return t?e?function(){return Ce(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function Ba(e,t){return vn(Go(e),Go(t))}function Go(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?Ce(Object.create(null),e,t):t}function $i(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Ce(Object.create(null),Jn(e),Jn(t??{})):t}function Da(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const o in t)n[o]=De(e[o],t[o]);return n}function Ei(){return{app:null,config:{isNativeTag:hl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ra=0;function Va(e,t){return function(o,r=null){le(o)||(o=Ce({},o)),r!=null&&!ye(r)&&(r=null);const i=Ei(),s=new WeakSet;let l=!1;const a=i.app={_uid:Ra++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:fc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(a,...u)):le(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,d){if(!l){const h=Q(o,r);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(h,c):e(h,c,d),l=!0,a._container=c,c.__vue_app__=a,co(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){eo=a;try{return c()}finally{eo=null}}};return a}}let eo=null;function to(e,t){if(ze){let n=ze.provides;const o=ze.parent&&ze.parent.provides;o===n&&(n=ze.provides=Object.create(o)),n[e]=t}}function Ft(e,t,n=!1){const o=ze||Le;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&le(t)?t.call(o&&o.proxy):t}}function Na(e,t,n,o=!1){const r={},i={};jn(i,ro,1),e.propsDefaults=Object.create(null),Pi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ha(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=me(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(Kn(e.emitsOptions,h))continue;const x=t[h];if(a)if(ve(i,h))x!==i[h]&&(i[h]=x,c=!0);else{const w=Ne(h);r[w]=Jo(a,l,w,x,e,!1)}else x!==i[h]&&(i[h]=x,c=!0)}}}else{Pi(e,t,r,i)&&(c=!0);let u;for(const d in l)(!t||!ve(t,d)&&((u=Ye(d))===d||!ve(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Jo(a,l,d,void 0,e,!0)):delete r[d]);if(i!==l)for(const d in i)(!t||!ve(t,d))&&(delete i[d],c=!0)}c&&gt(e,"set","$attrs")}function Pi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Mn(a))continue;const c=t[a];let u;r&&ve(r,u=Ne(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Kn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=me(n),c=l||de;for(let u=0;u<i.length;u++){const d=i[u];n[d]=Jo(r,a,d,c[d],e,!ve(c,d))}}return s}function Jo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ve(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&le(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=yn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ye(n))&&(o=!0))}return o}function Oi(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!le(e)){const u=d=>{a=!0;const[h,x]=Oi(d,t,!0);Ce(s,h),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ye(e)&&o.set(e,Ge),Ge;if(ee(i))for(let u=0;u<i.length;u++){const d=Ne(i[u]);Mi(d)&&(s[d]=de)}else if(i)for(const u in i){const d=Ne(u);if(Mi(d)){const h=i[u],x=s[d]=ee(h)||le(h)?{type:h}:Ce({},h);if(x){const w=zi(Boolean,x.type),v=zi(String,x.type);x[0]=w>-1,x[1]=v<0||w<v,(w>-1||ve(x,"default"))&&l.push(d)}}}const c=[s,l];return ye(e)&&o.set(e,c),c}function Mi(e){return e[0]!=="$"}function Li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ai(e,t){return Li(e)===Li(t)}function zi(e,t){return ee(t)?t.findIndex(n=>Ai(n,e)):le(t)&&Ai(t,e)?0:-1}const ji=e=>e[0]==="_"||e==="$stable",Qo=e=>ee(e)?e.map(ct):[ct(e)],Fa=(e,t,n)=>{if(t._n)return t;const o=fe((...r)=>Qo(t(...r)),n);return o._c=!1,o},Bi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ji(r))continue;const i=e[r];if(le(i))t[r]=Fa(r,i,o);else if(i!=null){const s=Qo(i);t[r]=()=>s}}},Di=(e,t)=>{const n=Qo(t);e.slots.default=()=>n},Wa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=me(t),jn(t,"_",n)):Bi(t,e.slots={})}else e.slots={},t&&Di(e,t);jn(e.slots,ro,1)},Ka=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=de;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ce(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Bi(t,r)),s=t}else t&&(Di(e,t),s={default:1});if(i)for(const l in r)!ji(l)&&s[l]==null&&delete r[l]};function er(e,t,n,o,r=!1){if(ee(e)){e.forEach((h,x)=>er(h,t&&(ee(t)?t[x]:t),n,o,r));return}if(hn(o)&&!r)return;const i=o.shapeFlag&4?co(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===de?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ke(c)?(u[c]=null,ve(d,c)&&(d[c]=null)):Me(c)&&(c.value=null)),le(a))mt(a,l,12,[s,u]);else{const h=ke(a),x=Me(a),w=e.f;if(h||x){const v=()=>{if(w){const z=h?ve(d,a)?d[a]:u[a]:a.value;r?ee(z)&&yo(z,i):ee(z)?z.includes(i)||z.push(i):h?(u[a]=[i],ve(d,a)&&(d[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ve(d,a)&&(d[a]=s)):x&&(a.value=s,e.k&&(u[e.k]=s))};r||w?v():(v.id=-1,Fe(v,n))}}}function Ua(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ko().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Fe=ma;function Ya(e){return qa(e)}function qa(e,t){Ua();const n=ko();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:x=Ue,insertStaticContent:w}=e,v=(f,p,b,I=null,T=null,L=null,F=void 0,A=null,V=!!p.dynamicChildren)=>{if(f===p)return;f&&!Kt(f,p)&&(I=Se(f),D(f,T,L,!0),f=null),p.patchFlag===-2&&(V=!1,p.dynamicChildren=null);const{type:E,ref:U,shapeFlag:g}=p;switch(E){case no:z(f,p,b,I);break;case nt:j(f,p,b,I);break;case nr:f==null&&re(p,b,I,F);break;case Ie:N(f,p,b,I,T,L,F,A,V);break;default:g&1?S(f,p,b,I,T,L,F,A,V):g&6?ie(f,p,b,I,T,L,F,A,V):(g&64||g&128)&&E.process(f,p,b,I,T,L,F,A,V,dt)}U!=null&&T&&er(U,f&&f.ref,L,p||f,!p)},z=(f,p,b,I)=>{if(f==null)o(p.el=l(p.children),b,I);else{const T=p.el=f.el;p.children!==f.children&&c(T,p.children)}},j=(f,p,b,I)=>{f==null?o(p.el=a(p.children||""),b,I):p.el=f.el},re=(f,p,b,I)=>{[f.el,f.anchor]=w(f.children,p,b,I,f.el,f.anchor)},C=({el:f,anchor:p},b,I)=>{let T;for(;f&&f!==p;)T=h(f),o(f,b,I),f=T;o(p,b,I)},$=({el:f,anchor:p})=>{let b;for(;f&&f!==p;)b=h(f),r(f),f=b;r(p)},S=(f,p,b,I,T,L,F,A,V)=>{p.type==="svg"?F="svg":p.type==="math"&&(F="mathml"),f==null?m(p,b,I,T,L,F,A,V):Y(f,p,T,L,F,A,V)},m=(f,p,b,I,T,L,F,A)=>{let V,E;const{props:U,shapeFlag:g,transition:k,dirs:q}=f;if(V=f.el=s(f.type,L,U&&U.is,U),g&8?u(V,f.children):g&16&&_(f.children,V,null,I,T,tr(f,L),F,A),q&&Nt(f,null,I,"created"),W(V,f,f.scopeId,F,I),U){for(const he in U)he!=="value"&&!Mn(he)&&i(V,he,null,U[he],L,f.children,I,T,ue);"value"in U&&i(V,"value",null,U.value,L),(E=U.onVnodeBeforeMount)&&ut(E,I,f)}q&&Nt(f,null,I,"beforeMount");const oe=Xa(T,k);oe&&k.beforeEnter(V),o(V,p,b),((E=U&&U.onVnodeMounted)||oe||q)&&Fe(()=>{E&&ut(E,I,f),oe&&k.enter(V),q&&Nt(f,null,I,"mounted")},T)},W=(f,p,b,I,T)=>{if(b&&x(f,b),I)for(let L=0;L<I.length;L++)x(f,I[L]);if(T){let L=T.subTree;if(p===L){const F=T.vnode;W(f,F,F.scopeId,F.slotScopeIds,T.parent)}}},_=(f,p,b,I,T,L,F,A,V=0)=>{for(let E=V;E<f.length;E++){const U=f[E]=A?Pt(f[E]):ct(f[E]);v(null,U,p,b,I,T,L,F,A)}},Y=(f,p,b,I,T,L,F)=>{const A=p.el=f.el;let{patchFlag:V,dynamicChildren:E,dirs:U}=p;V|=f.patchFlag&16;const g=f.props||de,k=p.props||de;let q;if(b&&Wt(b,!1),(q=k.onVnodeBeforeUpdate)&&ut(q,b,p,f),U&&Nt(p,f,b,"beforeUpdate"),b&&Wt(b,!0),E?B(f.dynamicChildren,E,A,b,I,tr(p,T),L):F||H(f,p,A,null,b,I,tr(p,T),L,!1),V>0){if(V&16)se(A,p,g,k,b,I,T);else if(V&2&&g.class!==k.class&&i(A,"class",null,k.class,T),V&4&&i(A,"style",g.style,k.style,T),V&8){const oe=p.dynamicProps;for(let he=0;he<oe.length;he++){const be=oe[he],Pe=g[be],Ze=k[be];(Ze!==Pe||be==="value")&&i(A,be,Pe,Ze,T,f.children,b,I,ue)}}V&1&&f.children!==p.children&&u(A,p.children)}else!F&&E==null&&se(A,p,g,k,b,I,T);((q=k.onVnodeUpdated)||U)&&Fe(()=>{q&&ut(q,b,p,f),U&&Nt(p,f,b,"updated")},I)},B=(f,p,b,I,T,L,F)=>{for(let A=0;A<p.length;A++){const V=f[A],E=p[A],U=V.el&&(V.type===Ie||!Kt(V,E)||V.shapeFlag&70)?d(V.el):b;v(V,E,U,null,I,T,L,F,!0)}},se=(f,p,b,I,T,L,F)=>{if(b!==I){if(b!==de)for(const A in b)!Mn(A)&&!(A in I)&&i(f,A,b[A],null,F,p.children,T,L,ue);for(const A in I){if(Mn(A))continue;const V=I[A],E=b[A];V!==E&&A!=="value"&&i(f,A,E,V,F,p.children,T,L,ue)}"value"in I&&i(f,"value",b.value,I.value,F)}},N=(f,p,b,I,T,L,F,A,V)=>{const E=p.el=f?f.el:l(""),U=p.anchor=f?f.anchor:l("");let{patchFlag:g,dynamicChildren:k,slotScopeIds:q}=p;q&&(A=A?A.concat(q):q),f==null?(o(E,b,I),o(U,b,I),_(p.children||[],b,U,T,L,F,A,V)):g>0&&g&64&&k&&f.dynamicChildren?(B(f.dynamicChildren,k,b,T,L,F,A),(p.key!=null||T&&p===T.subTree)&&Ri(f,p,!0)):H(f,p,b,U,T,L,F,A,V)},ie=(f,p,b,I,T,L,F,A,V)=>{p.slotScopeIds=A,f==null?p.shapeFlag&512?T.ctx.activate(p,b,I,F,V):pe(p,b,I,T,L,F,V):P(f,p,V)},pe=(f,p,b,I,T,L,F)=>{const A=f.component=oc(f,I,T);if(Xn(f)&&(A.ctx.renderer=dt),rc(A),A.asyncDep){if(T&&T.registerDep(A,J),!f.el){const V=A.subTree=Q(nt);j(null,V,p,b)}}else J(A,f,p,b,T,L,F)},P=(f,p,b)=>{const I=p.component=f.component;if(fa(f,p,b))if(I.asyncDep&&!I.asyncResolved){y(I,p,b);return}else I.next=p,ia(I.update),I.effect.dirty=!0,I.update();else p.el=f.el,I.vnode=p},J=(f,p,b,I,T,L,F)=>{const A=()=>{if(f.isMounted){let{next:U,bu:g,u:k,parent:q,vnode:oe}=f;{const jt=Vi(f);if(jt){U&&(U.el=oe.el,y(f,U,F)),jt.asyncDep.then(()=>{f.isUnmounted||A()});return}}let he=U,be;Wt(f,!1),U?(U.el=oe.el,y(f,U,F)):U=oe,g&&zn(g),(be=U.props&&U.props.onVnodeBeforeUpdate)&&ut(be,q,U,oe),Wt(f,!0);const Pe=Ho(f),Ze=f.subTree;f.subTree=Pe,v(Ze,Pe,d(Ze.el),Se(Ze),f,T,L),U.el=Pe.el,he===null&&da(f,Pe.el),k&&Fe(k,T),(be=U.props&&U.props.onVnodeUpdated)&&Fe(()=>ut(be,q,U,oe),T)}else{let U;const{el:g,props:k}=p,{bm:q,m:oe,parent:he}=f,be=hn(p);if(Wt(f,!1),q&&zn(q),!be&&(U=k&&k.onVnodeBeforeMount)&&ut(U,he,p),Wt(f,!0),g&&En){const Pe=()=>{f.subTree=Ho(f),En(g,f.subTree,f,T,null)};be?p.type.__asyncLoader().then(()=>!f.isUnmounted&&Pe()):Pe()}else{const Pe=f.subTree=Ho(f);v(null,Pe,b,I,f,T,L),p.el=Pe.el}if(oe&&Fe(oe,T),!be&&(U=k&&k.onVnodeMounted)){const Pe=p;Fe(()=>ut(U,he,Pe),T)}(p.shapeFlag&256||he&&hn(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&Fe(f.a,T),f.isMounted=!0,p=b=I=null}},V=f.effect=new To(A,Ue,()=>No(E),f.scope),E=f.update=()=>{V.dirty&&V.run()};E.id=f.uid,Wt(f,!0),E()},y=(f,p,b)=>{p.component=f;const I=f.vnode.props;f.vnode=p,f.next=null,Ha(f,p.props,I,b),Ka(f,p.children,b),St(),ai(f),Ct()},H=(f,p,b,I,T,L,F,A,V=!1)=>{const E=f&&f.children,U=f?f.shapeFlag:0,g=p.children,{patchFlag:k,shapeFlag:q}=p;if(k>0){if(k&128){K(E,g,b,I,T,L,F,A,V);return}else if(k&256){O(E,g,b,I,T,L,F,A,V);return}}q&8?(U&16&&ue(E,T,L),g!==E&&u(b,g)):U&16?q&16?K(E,g,b,I,T,L,F,A,V):ue(E,T,L,!0):(U&8&&u(b,""),q&16&&_(g,b,I,T,L,F,A,V))},O=(f,p,b,I,T,L,F,A,V)=>{f=f||Ge,p=p||Ge;const E=f.length,U=p.length,g=Math.min(E,U);let k;for(k=0;k<g;k++){const q=p[k]=V?Pt(p[k]):ct(p[k]);v(f[k],q,b,null,T,L,F,A,V)}E>U?ue(f,T,L,!0,!1,g):_(p,b,I,T,L,F,A,V,g)},K=(f,p,b,I,T,L,F,A,V)=>{let E=0;const U=p.length;let g=f.length-1,k=U-1;for(;E<=g&&E<=k;){const q=f[E],oe=p[E]=V?Pt(p[E]):ct(p[E]);if(Kt(q,oe))v(q,oe,b,null,T,L,F,A,V);else break;E++}for(;E<=g&&E<=k;){const q=f[g],oe=p[k]=V?Pt(p[k]):ct(p[k]);if(Kt(q,oe))v(q,oe,b,null,T,L,F,A,V);else break;g--,k--}if(E>g){if(E<=k){const q=k+1,oe=q<U?p[q].el:I;for(;E<=k;)v(null,p[E]=V?Pt(p[E]):ct(p[E]),b,oe,T,L,F,A,V),E++}}else if(E>k)for(;E<=g;)D(f[E],T,L,!0),E++;else{const q=E,oe=E,he=new Map;for(E=oe;E<=k;E++){const Ve=p[E]=V?Pt(p[E]):ct(p[E]);Ve.key!=null&&he.set(Ve.key,E)}let be,Pe=0;const Ze=k-oe+1;let jt=!1,ht=0;const Zt=new Array(Ze);for(E=0;E<Ze;E++)Zt[E]=0;for(E=q;E<=g;E++){const Ve=f[E];if(Pe>=Ze){D(Ve,T,L,!0);continue}let rt;if(Ve.key!=null)rt=he.get(Ve.key);else for(be=oe;be<=k;be++)if(Zt[be-oe]===0&&Kt(Ve,p[be])){rt=be;break}rt===void 0?D(Ve,T,L,!0):(Zt[rt-oe]=E+1,rt>=ht?ht=rt:jt=!0,v(Ve,p[rt],b,null,T,L,F,A,V),Pe++)}const vo=jt?Za(Zt):Ge;for(be=vo.length-1,E=Ze-1;E>=0;E--){const Ve=oe+E,rt=p[Ve],_o=Ve+1<U?p[Ve+1].el:I;Zt[E]===0?v(null,rt,b,_o,T,L,F,A,V):jt&&(be<0||E!==vo[be]?M(rt,b,_o,2):be--)}}},M=(f,p,b,I,T=null)=>{const{el:L,type:F,transition:A,children:V,shapeFlag:E}=f;if(E&6){M(f.component.subTree,p,b,I);return}if(E&128){f.suspense.move(p,b,I);return}if(E&64){F.move(f,p,b,dt);return}if(F===Ie){o(L,p,b);for(let g=0;g<V.length;g++)M(V[g],p,b,I);o(f.anchor,p,b);return}if(F===nr){C(f,p,b);return}if(I!==2&&E&1&&A)if(I===0)A.beforeEnter(L),o(L,p,b),Fe(()=>A.enter(L),T);else{const{leave:g,delayLeave:k,afterLeave:q}=A,oe=()=>o(L,p,b),he=()=>{g(L,()=>{oe(),q&&q()})};k?k(L,oe,he):he()}else o(L,p,b)},D=(f,p,b,I=!1,T=!1)=>{const{type:L,props:F,ref:A,children:V,dynamicChildren:E,shapeFlag:U,patchFlag:g,dirs:k}=f;if(A!=null&&er(A,null,b,f,!0),U&256){p.ctx.deactivate(f);return}const q=U&1&&k,oe=!hn(f);let he;if(oe&&(he=F&&F.onVnodeBeforeUnmount)&&ut(he,p,f),U&6)ge(f.component,b,I);else{if(U&128){f.suspense.unmount(b,I);return}q&&Nt(f,null,p,"beforeUnmount"),U&64?f.type.remove(f,p,b,T,dt,I):E&&(L!==Ie||g>0&&g&64)?ue(E,p,b,!1,!0):(L===Ie&&g&384||!T&&U&16)&&ue(V,p,b),I&&ne(f)}(oe&&(he=F&&F.onVnodeUnmounted)||q)&&Fe(()=>{he&&ut(he,p,f),q&&Nt(f,null,p,"unmounted")},b)},ne=f=>{const{type:p,el:b,anchor:I,transition:T}=f;if(p===Ie){ce(b,I);return}if(p===nr){$(f);return}const L=()=>{r(b),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:F,delayLeave:A}=T,V=()=>F(b,L);A?A(f.el,L,V):V()}else L()},ce=(f,p)=>{let b;for(;f!==p;)b=h(f),r(f),f=b;r(p)},ge=(f,p,b)=>{const{bum:I,scope:T,update:L,subTree:F,um:A}=f;I&&zn(I),T.stop(),L&&(L.active=!1,D(F,f,p,b)),A&&Fe(A,p),Fe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},ue=(f,p,b,I=!1,T=!1,L=0)=>{for(let F=L;F<f.length;F++)D(f[F],p,b,I,T)},Se=f=>f.shapeFlag&6?Se(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el);let Ee=!1;const Re=(f,p,b)=>{f==null?p._vnode&&D(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,b),Ee||(Ee=!0,ai(),ci(),Ee=!1),p._vnode=f},dt={p:v,um:D,m:M,r:ne,mt:pe,mc:_,pc:H,pbc:B,n:Se,o:e};let pt,En;return t&&([pt,En]=t(dt)),{render:Re,hydrate:pt,createApp:Va(Re,pt)}}function tr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Xa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ri(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Pt(r[i]),l.el=s.el),n||Ri(s,l)),l.type===no&&(l.el=s.el)}}function Za(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const Ga=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),nr=Symbol.for("v-stc"),_n=[];let it=null;function R(e=!1){_n.push(it=e?null:[])}function Ja(){_n.pop(),it=_n[_n.length-1]||null}let bn=1;function Ni(e){bn+=e}function Hi(e){return e.dynamicChildren=bn>0?it||Ge:null,Ja(),bn>0&&it&&it.push(e),e}function Z(e,t,n,o,r,i){return Hi(X(e,t,n,o,r,i,!0))}function xe(e,t,n,o,r){return Hi(Q(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Fi=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Me(e)||le(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,i=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fi(t),ref:t&&io(t),scopeId:di,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Le};return l?(or(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),bn>0&&!s&&it&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&it.push(a),a}const Q=Qa;function Qa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===gi)&&(e=nt),oo(e)){const l=$t(e,t,!0);return n&&or(l,n),bn>0&&!i&&it&&(l.shapeFlag&6?it[it.indexOf(e)]=l:it.push(l)),l.patchFlag|=-2,l}if(uc(e)&&(e=e.__vccOpts),t){t=ec(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=Oe(l)),ye(a)&&(ti(a)&&!ee(a)&&(a=Ce({},a)),t.style=Be(a))}const s=ke(e)?1:ga(e)?128:Ga(e)?64:ye(e)?4:le(e)?2:0;return X(e,t,n,o,r,s,i,!0)}function ec(e){return e?ti(e)||ro in e?Ce({},e):e:null}function $t(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?so(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Fi(l),ref:t&&t.ref?n&&r?ee(r)?r.concat(io(t)):[r,io(t)]:io(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Et(e=" ",t=0){return Q(no,null,e,t)}function Ae(e="",t=!1){return t?(R(),xe(nt,null,e)):Q(nt,null,e)}function ct(e){return e==null||typeof e=="boolean"?Q(nt):ee(e)?Q(Ie,null,e.slice()):typeof e=="object"?Pt(e):Q(no,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function or(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),or(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Le:r===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),o&64?(n=16,t=[Et(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Oe([t.class,o.class]));else if(r==="style")t.style=Be([t.style,o.style]);else if(Pn(r)){const i=t[r],s=o[r];s&&i!==s&&!(ee(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){Qe(e,t,7,[n,o])}const tc=Ei();let nc=0;function oc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||tc,i={uid:nc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Cl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Oi(o,r),emitsOptions:fi(o,r),emit:null,emitted:null,propsDefaults:de,inheritAttrs:o.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=aa.bind(null,i),e.ce&&e.ce(i),i}let ze=null;const rr=()=>ze||Le;let lo,ir;{const e=ko(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};lo=t("__VUE_INSTANCE_SETTERS__",n=>ze=n),ir=t("__VUE_SSR_SETTERS__",n=>ao=n)}const yn=e=>{const t=ze;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Wi=()=>{ze&&ze.scope.off(),lo(null)};function Ki(e){return e.vnode.shapeFlag&4}let ao=!1;function rc(e,t=!1){t&&ir(t);const{props:n,children:o}=e.vnode,r=Ki(e);Na(e,n,r,t),Wa(e,o);const i=r?ic(e,t):void 0;return t&&ir(!1),i}function ic(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ni(new Proxy(e.ctx,La));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?lc(e):null,i=yn(e);St();const s=mt(o,e,0,[e.props,r]);if(Ct(),i(),$r(s)){if(s.then(Wi,Wi),t)return s.then(l=>{Ui(e,l,t)}).catch(l=>{Wn(l,e,0)});e.asyncDep=s}else Ui(e,s,t)}else qi(e,t)}function Ui(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=ri(t)),qi(e,n)}let Yi;function qi(e,t,n){const o=e.type;if(!e.render){if(!t&&Yi&&!o.render){const r=o.template||Zo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Ce(Ce({isCustomElement:i,delimiters:l},s),a);o.render=Yi(r,c)}}e.render=o.render||Ue}{const r=yn(e);St();try{Aa(e)}finally{Ct(),r()}}}function sc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return He(e,"get","$attrs"),t[n]}}))}function lc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return sc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ri(ni(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}const ac=/(?:^|[-_])(\w)/g,cc=e=>e.replace(ac,t=>t.toUpperCase()).replace(/[-_]/g,"");function Xi(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Zi(e,t,n=!1){let o=Xi(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?cc(o):n?"App":"Anonymous"}function uc(e){return le(e)&&"__vccOpts"in e}const ae=(e,t)=>Yl(e,t,ao);function nn(e,t,n=de){const o=rr(),r=Ne(t),i=Ye(t),s=Jl((a,c)=>{let u;return ba(()=>{const d=e[t];st(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const h=o.vnode.props;!(h&&(t in h||r in h||i in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${i}`in h))&&st(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Gi(e,t,n){const o=arguments.length;return o===2?ye(t)&&!ee(t)?oo(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),Q(e,t,n))}const fc="3.4.15";/**
16
+ `],...ta(n))}),t}function ta({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Zi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...na(e.props),i]:[r+i]}function na(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ii(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ii(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Me(t)?(t=ii(e,me(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):le(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=me(t),n?t:[`${e}=`,t])}function mt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Wn(i,t,n)}return r}function Qe(e,t,n,o){if(le(e)){const i=mt(e,t,n,o);return i&&$r(i)&&i.catch(s=>{Wn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Qe(e[i],t,n,o));return r}function Wn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){mt(a,null,10,[e,s,l]);return}}oa(e,n,r,o)}function oa(e,t,n,o=!0){console.error(e)}let dn=!1,Ro=!1;const je=[];let at=0;const tn=[];let It=null,Rt=0;const si=Promise.resolve();let Vo=null;function vt(e){const t=Vo||si;return e?t.then(this?e.bind(this):e):t}function ra(e){let t=at+1,n=je.length;for(;t<n;){const o=t+n>>>1,r=je[o],i=pn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function No(e){(!je.length||!je.includes(e,dn&&e.allowRecurse?at+1:at))&&(e.id==null?je.push(e):je.splice(ra(e.id),0,e),li())}function li(){!dn&&!Ro&&(Ro=!0,Vo=si.then(ui))}function ia(e){const t=je.indexOf(e);t>at&&je.splice(t,1)}function sa(e){ee(e)?tn.push(...e):(!It||!It.includes(e,e.allowRecurse?Rt+1:Rt))&&tn.push(e),li()}function ai(e,t,n=dn?at+1:0){for(;n<je.length;n++){const o=je[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;je.splice(n,1),n--,o()}}}function ci(e){if(tn.length){const t=[...new Set(tn)].sort((n,o)=>pn(n)-pn(o));if(tn.length=0,It){It.push(...t);return}for(It=t,Rt=0;Rt<It.length;Rt++)It[Rt]();It=null,Rt=0}}const pn=e=>e.id==null?1/0:e.id,la=(e,t)=>{const n=pn(e)-pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ui(e){Ro=!1,dn=!0,je.sort(la);const t=Ue;try{for(at=0;at<je.length;at++){const n=je[at];n&&n.active!==!1&&mt(n,null,14)}}finally{at=0,je.length=0,ci(),dn=!1,Vo=null,(je.length||tn.length)&&ui()}}function aa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||de;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:h}=o[u]||de;h&&(r=n.map(x=>ke(x)?x.trim():x)),d&&(r=n.map(So))}let l,a=o[l=xo(t)]||o[l=xo(Ne(t))];!a&&i&&(a=o[l=xo(Ye(t))]),a&&Qe(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,r)}}function fi(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!le(e)){const a=c=>{const u=fi(c,t,!0);u&&(l=!0,Ce(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ye(e)&&o.set(e,null),null):(ee(i)?i.forEach(a=>s[a]=null):Ce(s,i),ye(e)&&o.set(e,s),s)}function Kn(e,t){return!e||!Pn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,Ye(t))||ve(e,t))}let Le=null,di=null;function Un(e){const t=Le;return Le=e,di=e&&e.type.__scopeId||null,t}function fe(e,t=Le,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ni(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Ni(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Ep(){}function Ho(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:h,setupState:x,ctx:w,inheritAttrs:v}=e;let z,j;const re=Un(e);try{if(n.shapeFlag&4){const $=r||o,S=$;z=ct(u.call(S,$,d,i,x,h,w)),j=a}else{const $=t;z=ct($.length>1?$(i,{attrs:a,slots:l,emit:c}):$(i,null)),j=t.props?a:ca(a)}}catch($){_n.length=0,Wn($,e,1),z=Q(nt)}let C=z;if(j&&v!==!1){const $=Object.keys(j),{shapeFlag:S}=C;$.length&&S&7&&(s&&$.some(bo)&&(j=ua(j,s)),C=$t(C,j))}return n.dirs&&(C=$t(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),z=C,Un(re),z}const ca=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pn(n))&&((t||(t={}))[n]=e[n]);return t},ua=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function fa(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?pi(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(s[h]!==o[h]&&!Kn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?pi(o,s,c):!0:!!s;return!1}function pi(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Kn(n,i))return!0}return!1}function da({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const hi="components",gi=Symbol.for("v-ndc");function pa(e){return ke(e)?ha(hi,e,!1)||e:e||gi}function ha(e,t,n=!0,o=!1){const r=Le||ze;if(r){const i=r.type;if(e===hi){const l=Xi(i,!1);if(l&&(l===t||l===Ne(t)||l===An(Ne(t))))return i}const s=mi(r[e]||i[e],t)||mi(r.appContext[e],t);return!s&&o?i:s}}function mi(e,t){return e&&(e[t]||e[Ne(t)]||e[An(Ne(t))])}const ga=e=>e.__isSuspense;function ma(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):sa(e)}const va=Symbol.for("v-scx"),_a=()=>Ft(va);function ba(e,t){return Fo(e,null,{flush:"sync"})}const Yn={};function _e(e,t,n){return Fo(e,t,n)}function Fo(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=de){if(t&&i){const m=t;t=(...W)=>{m(...W),S()}}const a=ze,c=m=>o===!0?m:Vt(m,o===!1?1:void 0);let u,d=!1,h=!1;if(Me(e)?(u=()=>e.value,d=Fn(e)):Qt(e)?(u=()=>c(e),d=!0):ee(e)?(h=!0,d=e.some(m=>Qt(m)||Fn(m)),u=()=>e.map(m=>{if(Me(m))return m.value;if(Qt(m))return c(m);if(le(m))return mt(m,a,2)})):le(e)?t?u=()=>mt(e,a,2):u=()=>(x&&x(),Qe(e,a,3,[w])):u=Ue,t&&o){const m=u;u=()=>Vt(m())}let x,w=m=>{x=C.onStop=()=>{mt(m,a,4),x=C.onStop=void 0}},v;if(ao)if(w=Ue,t?n&&Qe(t,a,3,[u(),h?[]:void 0,w]):u(),r==="sync"){const m=_a();v=m.__watcherHandles||(m.__watcherHandles=[])}else return Ue;let z=h?new Array(e.length).fill(Yn):Yn;const j=()=>{if(!(!C.active||!C.dirty))if(t){const m=C.run();(o||d||(h?m.some((W,_)=>lt(W,z[_])):lt(m,z)))&&(x&&x(),Qe(t,a,3,[m,z===Yn?void 0:h&&z[0]===Yn?[]:z,w]),z=m)}else C.run()};j.allowRecurse=!!t;let re;r==="sync"?re=j:r==="post"?re=()=>Fe(j,a&&a.suspense):(j.pre=!0,a&&(j.id=a.uid),re=()=>No(j));const C=new To(u,Ue,re),$=Ar(),S=()=>{C.stop(),$&&yo($.effects,C)};return t?n?j():z=C.run():r==="post"?Fe(C.run.bind(C),a&&a.suspense):C.run(),v&&v.push(S),S}function ya(e,t,n){const o=this.proxy,r=ke(e)?e.includes(".")?vi(o,e):()=>o[e]:e.bind(o,o);let i;le(t)?i=t:(i=t.handler,n=t);const s=yn(this),l=Fo(r,i.bind(o),n);return s(),l}function vi(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Vt(e,t,n=0,o){if(!ye(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Me(e))Vt(e.value,t,n,o);else if(ee(e))for(let r=0;r<e.length;r++)Vt(e[r],t,n,o);else if(Tr(e)||Gt(e))e.forEach(r=>{Vt(r,t,n,o)});else if(Pr(e))for(const r in e)Vt(e[r],t,n,o);return e}function _t(e,t){if(Le===null)return e;const n=co(Le)||Le.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=de]=t[r];i&&(le(i)&&(i={mounted:i,updated:i}),i.deep&&Vt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Nt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(St(),Qe(a,n,8,[e.el,l,e,t]),Ct())}}const Tt=Symbol("_leaveCb"),qn=Symbol("_enterCb");function wa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Gn(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],_i={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},xa={name:"BaseTransition",props:_i,setup(e,{slots:t}){const n=rr(),o=wa();let r;return()=>{const i=t.default&&wi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const v of i)if(v.type!==nt){s=v;break}}const l=me(e),{mode:a}=l;if(o.isLeaving)return Ko(s);const c=yi(s);if(!c)return Ko(s);const u=Wo(c,l,o,n);Uo(c,u);const d=n.subTree,h=d&&yi(d);let x=!1;const{getTransitionKey:w}=c.type;if(w){const v=w();r===void 0?r=v:v!==r&&(r=v,x=!0)}if(h&&h.type!==nt&&(!Kt(c,h)||x)){const v=Wo(h,l,o,n);if(Uo(h,v),a==="out-in")return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ko(s);a==="in-out"&&c.type!==nt&&(v.delayLeave=(z,j,re)=>{const C=bi(o,h);C[String(h.key)]=h,z[Tt]=()=>{j(),z[Tt]=void 0,delete u.delayedLeave},u.delayedLeave=re})}return s}}};function bi(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Wo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:x,onLeaveCancelled:w,onBeforeAppear:v,onAppear:z,onAfterAppear:j,onAppearCancelled:re}=t,C=String(e.key),$=bi(n,e),S=(_,Y)=>{_&&Qe(_,o,9,Y)},m=(_,Y)=>{const B=Y[1];S(_,Y),ee(_)?_.every(se=>se.length<=1)&&B():_.length<=1&&B()},W={mode:i,persisted:s,beforeEnter(_){let Y=l;if(!n.isMounted)if(r)Y=v||l;else return;_[Tt]&&_[Tt](!0);const B=$[C];B&&Kt(e,B)&&B.el[Tt]&&B.el[Tt](),S(Y,[_])},enter(_){let Y=a,B=c,se=u;if(!n.isMounted)if(r)Y=z||a,B=j||c,se=re||u;else return;let N=!1;const ie=_[qn]=pe=>{N||(N=!0,pe?S(se,[_]):S(B,[_]),W.delayedLeave&&W.delayedLeave(),_[qn]=void 0)};Y?m(Y,[_,ie]):ie()},leave(_,Y){const B=String(e.key);if(_[qn]&&_[qn](!0),n.isUnmounting)return Y();S(d,[_]);let se=!1;const N=_[Tt]=ie=>{se||(se=!0,Y(),ie?S(w,[_]):S(x,[_]),_[Tt]=void 0,$[B]===e&&delete $[B])};$[B]=e,h?m(h,[_,N]):N()},clone(_){return Wo(_,t,n,o)}};return W}function Ko(e){if(Xn(e))return e=$t(e),e.children=null,e}function yi(e){return Xn(e)?e.children?e.children[0]:void 0:e}function Uo(e,t){e.shapeFlag&6&&e.component?Uo(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function wi(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Ie?(s.patchFlag&128&&r++,o=o.concat(wi(s.children,t,l))):(t||s.type!==nt)&&o.push(l!=null?$t(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function Te(e,t){return le(e)?(()=>Ce({name:e.name},t,{setup:e}))():e}const hn=e=>!!e.type.__asyncLoader,Xn=e=>e.type.__isKeepAlive;function Sa(e,t){xi(e,"a",t)}function Ca(e,t){xi(e,"da",t)}function xi(e,t,n=ze){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Zn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Xn(r.parent.vnode)&&ka(o,t,n,r),r=r.parent}}function ka(e,t,n,o){const r=Zn(t,e,o,!0);it(()=>{yo(o[t],r)},n)}function Zn(e,t,n=ze,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;St();const l=yn(n),a=Qe(t,n,e,s);return l(),Ct(),a});return o?r.unshift(i):r.push(i),i}}const bt=e=>(t,n=ze)=>(!ao||e==="sp")&&Zn(e,(...o)=>t(...o),n),Ia=bt("bm"),tt=bt("m"),Ta=bt("bu"),$a=bt("u"),Gn=bt("bum"),it=bt("um"),Ea=bt("sp"),Pa=bt("rtg"),Oa=bt("rtc");function Ma(e,t=ze){Zn("ec",e,t)}function gn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||ke(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(ye(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function Si(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function $e(e,t,n={},o,r){if(Le.isCE||Le.parent&&hn(Le.parent)&&Le.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),R();const s=i&&Ci(i(n)),l=xe(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Ci(e){return e.some(t=>oo(t)?!(t.type===nt||t.type===Ie&&!Ci(t.children)):!0)?e:null}const Yo=e=>e?Ki(e)?co(e)||e.proxy:Yo(e.parent):null,mn=Ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Yo(e.parent),$root:e=>Yo(e.root),$emit:e=>e.emit,$options:e=>Zo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,No(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>ya.bind(e)}),qo=(e,t)=>e!==de&&!e.__isScriptSetup&&ve(e,t),La={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const x=s[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 i[t]}else{if(qo(o,t))return s[t]=1,o[t];if(r!==de&&ve(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ve(c,t))return s[t]=3,i[t];if(n!==de&&ve(n,t))return s[t]=4,n[t];Xo&&(s[t]=0)}}const u=mn[t];let d,h;if(u)return t==="$attrs"&&He(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==de&&ve(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ve(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return qo(r,t)?(r[t]=n,!0):o!==de&&ve(o,t)?(o[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==de&&ve(e,s)||qo(t,s)||(l=i[0])&&ve(l,s)||ve(o,s)||ve(mn,s)||ve(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Jn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ht(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):Ce({},Jn(e),Jn(t))}let Xo=!0;function Aa(e){const t=Zo(e),n=e.proxy,o=e.ctx;Xo=!1,t.beforeCreate&&ki(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:x,updated:w,activated:v,deactivated:z,beforeDestroy:j,beforeUnmount:re,destroyed:C,unmounted:$,render:S,renderTracked:m,renderTriggered:W,errorCaptured:_,serverPrefetch:Y,expose:B,inheritAttrs:se,components:N,directives:ie,filters:pe}=t;if(c&&za(c,o,null),s)for(const y in s){const H=s[y];le(H)&&(o[y]=H.bind(n))}if(r){const y=r.call(n,n);ye(y)&&(e.data=an(y))}if(Xo=!0,i)for(const y in i){const H=i[y],O=le(H)?H.bind(n,n):le(H.get)?H.get.bind(n,n):Ue,K=!le(H)&&le(H.set)?H.set.bind(n):Ue,M=ae({get:O,set:K});Object.defineProperty(o,y,{enumerable:!0,configurable:!0,get:()=>M.value,set:D=>M.value=D})}if(l)for(const y in l)Ii(l[y],o,n,y);if(a){const y=le(a)?a.call(n):a;Reflect.ownKeys(y).forEach(H=>{to(H,y[H])})}u&&ki(u,e,"c");function J(y,H){ee(H)?H.forEach(O=>y(O.bind(n))):H&&y(H.bind(n))}if(J(Ia,d),J(tt,h),J(Ta,x),J($a,w),J(Sa,v),J(Ca,z),J(Ma,_),J(Oa,m),J(Pa,W),J(Gn,re),J(it,$),J(Ea,Y),ee(B))if(B.length){const y=e.exposed||(e.exposed={});B.forEach(H=>{Object.defineProperty(y,H,{get:()=>n[H],set:O=>n[H]=O})})}else e.exposed||(e.exposed={});S&&e.render===Ue&&(e.render=S),se!=null&&(e.inheritAttrs=se),N&&(e.components=N),ie&&(e.directives=ie)}function za(e,t,n=Ue){ee(e)&&(e=Go(e));for(const o in e){const r=e[o];let i;ye(r)?"default"in r?i=Ft(r.from||o,r.default,!0):i=Ft(r.from||o):i=Ft(r),Me(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function ki(e,t,n){Qe(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ii(e,t,n,o){const r=o.includes(".")?vi(n,o):()=>n[o];if(ke(e)){const i=t[e];le(i)&&_e(r,i)}else if(le(e))_e(r,e.bind(n));else if(ye(e))if(ee(e))e.forEach(i=>Ii(i,t,n,o));else{const i=le(e.handler)?e.handler.bind(n):t[e.handler];le(i)&&_e(r,i,e)}}function Zo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Qn(a,c,s,!0)),Qn(a,t,s)),ye(t)&&i.set(t,a),a}function Qn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Qn(e,i,n,!0),r&&r.forEach(s=>Qn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=ja[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const ja={data:Ti,props:$i,emits:$i,methods:vn,computed:vn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:vn,directives:vn,watch:Da,provide:Ti,inject:Ba};function Ti(e,t){return t?e?function(){return Ce(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function Ba(e,t){return vn(Go(e),Go(t))}function Go(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?Ce(Object.create(null),e,t):t}function $i(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Ce(Object.create(null),Jn(e),Jn(t??{})):t}function Da(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const o in t)n[o]=De(e[o],t[o]);return n}function Ei(){return{app:null,config:{isNativeTag:hl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ra=0;function Va(e,t){return function(o,r=null){le(o)||(o=Ce({},o)),r!=null&&!ye(r)&&(r=null);const i=Ei(),s=new WeakSet;let l=!1;const a=i.app={_uid:Ra++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:fc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(a,...u)):le(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,d){if(!l){const h=Q(o,r);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(h,c):e(h,c,d),l=!0,a._container=c,c.__vue_app__=a,co(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){eo=a;try{return c()}finally{eo=null}}};return a}}let eo=null;function to(e,t){if(ze){let n=ze.provides;const o=ze.parent&&ze.parent.provides;o===n&&(n=ze.provides=Object.create(o)),n[e]=t}}function Ft(e,t,n=!1){const o=ze||Le;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&le(t)?t.call(o&&o.proxy):t}}function Na(e,t,n,o=!1){const r={},i={};jn(i,ro,1),e.propsDefaults=Object.create(null),Pi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ha(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=me(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(Kn(e.emitsOptions,h))continue;const x=t[h];if(a)if(ve(i,h))x!==i[h]&&(i[h]=x,c=!0);else{const w=Ne(h);r[w]=Jo(a,l,w,x,e,!1)}else x!==i[h]&&(i[h]=x,c=!0)}}}else{Pi(e,t,r,i)&&(c=!0);let u;for(const d in l)(!t||!ve(t,d)&&((u=Ye(d))===d||!ve(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Jo(a,l,d,void 0,e,!0)):delete r[d]);if(i!==l)for(const d in i)(!t||!ve(t,d))&&(delete i[d],c=!0)}c&&gt(e,"set","$attrs")}function Pi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Mn(a))continue;const c=t[a];let u;r&&ve(r,u=Ne(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Kn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=me(n),c=l||de;for(let u=0;u<i.length;u++){const d=i[u];n[d]=Jo(r,a,d,c[d],e,!ve(c,d))}}return s}function Jo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ve(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&le(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=yn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ye(n))&&(o=!0))}return o}function Oi(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!le(e)){const u=d=>{a=!0;const[h,x]=Oi(d,t,!0);Ce(s,h),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ye(e)&&o.set(e,Ge),Ge;if(ee(i))for(let u=0;u<i.length;u++){const d=Ne(i[u]);Mi(d)&&(s[d]=de)}else if(i)for(const u in i){const d=Ne(u);if(Mi(d)){const h=i[u],x=s[d]=ee(h)||le(h)?{type:h}:Ce({},h);if(x){const w=zi(Boolean,x.type),v=zi(String,x.type);x[0]=w>-1,x[1]=v<0||w<v,(w>-1||ve(x,"default"))&&l.push(d)}}}const c=[s,l];return ye(e)&&o.set(e,c),c}function Mi(e){return e[0]!=="$"}function Li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ai(e,t){return Li(e)===Li(t)}function zi(e,t){return ee(t)?t.findIndex(n=>Ai(n,e)):le(t)&&Ai(t,e)?0:-1}const ji=e=>e[0]==="_"||e==="$stable",Qo=e=>ee(e)?e.map(ct):[ct(e)],Fa=(e,t,n)=>{if(t._n)return t;const o=fe((...r)=>Qo(t(...r)),n);return o._c=!1,o},Bi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ji(r))continue;const i=e[r];if(le(i))t[r]=Fa(r,i,o);else if(i!=null){const s=Qo(i);t[r]=()=>s}}},Di=(e,t)=>{const n=Qo(t);e.slots.default=()=>n},Wa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=me(t),jn(t,"_",n)):Bi(t,e.slots={})}else e.slots={},t&&Di(e,t);jn(e.slots,ro,1)},Ka=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=de;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ce(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Bi(t,r)),s=t}else t&&(Di(e,t),s={default:1});if(i)for(const l in r)!ji(l)&&s[l]==null&&delete r[l]};function er(e,t,n,o,r=!1){if(ee(e)){e.forEach((h,x)=>er(h,t&&(ee(t)?t[x]:t),n,o,r));return}if(hn(o)&&!r)return;const i=o.shapeFlag&4?co(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===de?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ke(c)?(u[c]=null,ve(d,c)&&(d[c]=null)):Me(c)&&(c.value=null)),le(a))mt(a,l,12,[s,u]);else{const h=ke(a),x=Me(a),w=e.f;if(h||x){const v=()=>{if(w){const z=h?ve(d,a)?d[a]:u[a]:a.value;r?ee(z)&&yo(z,i):ee(z)?z.includes(i)||z.push(i):h?(u[a]=[i],ve(d,a)&&(d[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ve(d,a)&&(d[a]=s)):x&&(a.value=s,e.k&&(u[e.k]=s))};r||w?v():(v.id=-1,Fe(v,n))}}}function Ua(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ko().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Fe=ma;function Ya(e){return qa(e)}function qa(e,t){Ua();const n=ko();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:x=Ue,insertStaticContent:w}=e,v=(f,p,b,I=null,T=null,L=null,F=void 0,A=null,V=!!p.dynamicChildren)=>{if(f===p)return;f&&!Kt(f,p)&&(I=Se(f),D(f,T,L,!0),f=null),p.patchFlag===-2&&(V=!1,p.dynamicChildren=null);const{type:E,ref:U,shapeFlag:g}=p;switch(E){case no:z(f,p,b,I);break;case nt:j(f,p,b,I);break;case nr:f==null&&re(p,b,I,F);break;case Ie:N(f,p,b,I,T,L,F,A,V);break;default:g&1?S(f,p,b,I,T,L,F,A,V):g&6?ie(f,p,b,I,T,L,F,A,V):(g&64||g&128)&&E.process(f,p,b,I,T,L,F,A,V,dt)}U!=null&&T&&er(U,f&&f.ref,L,p||f,!p)},z=(f,p,b,I)=>{if(f==null)o(p.el=l(p.children),b,I);else{const T=p.el=f.el;p.children!==f.children&&c(T,p.children)}},j=(f,p,b,I)=>{f==null?o(p.el=a(p.children||""),b,I):p.el=f.el},re=(f,p,b,I)=>{[f.el,f.anchor]=w(f.children,p,b,I,f.el,f.anchor)},C=({el:f,anchor:p},b,I)=>{let T;for(;f&&f!==p;)T=h(f),o(f,b,I),f=T;o(p,b,I)},$=({el:f,anchor:p})=>{let b;for(;f&&f!==p;)b=h(f),r(f),f=b;r(p)},S=(f,p,b,I,T,L,F,A,V)=>{p.type==="svg"?F="svg":p.type==="math"&&(F="mathml"),f==null?m(p,b,I,T,L,F,A,V):Y(f,p,T,L,F,A,V)},m=(f,p,b,I,T,L,F,A)=>{let V,E;const{props:U,shapeFlag:g,transition:k,dirs:q}=f;if(V=f.el=s(f.type,L,U&&U.is,U),g&8?u(V,f.children):g&16&&_(f.children,V,null,I,T,tr(f,L),F,A),q&&Nt(f,null,I,"created"),W(V,f,f.scopeId,F,I),U){for(const he in U)he!=="value"&&!Mn(he)&&i(V,he,null,U[he],L,f.children,I,T,ue);"value"in U&&i(V,"value",null,U.value,L),(E=U.onVnodeBeforeMount)&&ut(E,I,f)}q&&Nt(f,null,I,"beforeMount");const oe=Xa(T,k);oe&&k.beforeEnter(V),o(V,p,b),((E=U&&U.onVnodeMounted)||oe||q)&&Fe(()=>{E&&ut(E,I,f),oe&&k.enter(V),q&&Nt(f,null,I,"mounted")},T)},W=(f,p,b,I,T)=>{if(b&&x(f,b),I)for(let L=0;L<I.length;L++)x(f,I[L]);if(T){let L=T.subTree;if(p===L){const F=T.vnode;W(f,F,F.scopeId,F.slotScopeIds,T.parent)}}},_=(f,p,b,I,T,L,F,A,V=0)=>{for(let E=V;E<f.length;E++){const U=f[E]=A?Pt(f[E]):ct(f[E]);v(null,U,p,b,I,T,L,F,A)}},Y=(f,p,b,I,T,L,F)=>{const A=p.el=f.el;let{patchFlag:V,dynamicChildren:E,dirs:U}=p;V|=f.patchFlag&16;const g=f.props||de,k=p.props||de;let q;if(b&&Wt(b,!1),(q=k.onVnodeBeforeUpdate)&&ut(q,b,p,f),U&&Nt(p,f,b,"beforeUpdate"),b&&Wt(b,!0),E?B(f.dynamicChildren,E,A,b,I,tr(p,T),L):F||H(f,p,A,null,b,I,tr(p,T),L,!1),V>0){if(V&16)se(A,p,g,k,b,I,T);else if(V&2&&g.class!==k.class&&i(A,"class",null,k.class,T),V&4&&i(A,"style",g.style,k.style,T),V&8){const oe=p.dynamicProps;for(let he=0;he<oe.length;he++){const be=oe[he],Pe=g[be],Ze=k[be];(Ze!==Pe||be==="value")&&i(A,be,Pe,Ze,T,f.children,b,I,ue)}}V&1&&f.children!==p.children&&u(A,p.children)}else!F&&E==null&&se(A,p,g,k,b,I,T);((q=k.onVnodeUpdated)||U)&&Fe(()=>{q&&ut(q,b,p,f),U&&Nt(p,f,b,"updated")},I)},B=(f,p,b,I,T,L,F)=>{for(let A=0;A<p.length;A++){const V=f[A],E=p[A],U=V.el&&(V.type===Ie||!Kt(V,E)||V.shapeFlag&70)?d(V.el):b;v(V,E,U,null,I,T,L,F,!0)}},se=(f,p,b,I,T,L,F)=>{if(b!==I){if(b!==de)for(const A in b)!Mn(A)&&!(A in I)&&i(f,A,b[A],null,F,p.children,T,L,ue);for(const A in I){if(Mn(A))continue;const V=I[A],E=b[A];V!==E&&A!=="value"&&i(f,A,E,V,F,p.children,T,L,ue)}"value"in I&&i(f,"value",b.value,I.value,F)}},N=(f,p,b,I,T,L,F,A,V)=>{const E=p.el=f?f.el:l(""),U=p.anchor=f?f.anchor:l("");let{patchFlag:g,dynamicChildren:k,slotScopeIds:q}=p;q&&(A=A?A.concat(q):q),f==null?(o(E,b,I),o(U,b,I),_(p.children||[],b,U,T,L,F,A,V)):g>0&&g&64&&k&&f.dynamicChildren?(B(f.dynamicChildren,k,b,T,L,F,A),(p.key!=null||T&&p===T.subTree)&&Ri(f,p,!0)):H(f,p,b,U,T,L,F,A,V)},ie=(f,p,b,I,T,L,F,A,V)=>{p.slotScopeIds=A,f==null?p.shapeFlag&512?T.ctx.activate(p,b,I,F,V):pe(p,b,I,T,L,F,V):P(f,p,V)},pe=(f,p,b,I,T,L,F)=>{const A=f.component=oc(f,I,T);if(Xn(f)&&(A.ctx.renderer=dt),rc(A),A.asyncDep){if(T&&T.registerDep(A,J),!f.el){const V=A.subTree=Q(nt);j(null,V,p,b)}}else J(A,f,p,b,T,L,F)},P=(f,p,b)=>{const I=p.component=f.component;if(fa(f,p,b))if(I.asyncDep&&!I.asyncResolved){y(I,p,b);return}else I.next=p,ia(I.update),I.effect.dirty=!0,I.update();else p.el=f.el,I.vnode=p},J=(f,p,b,I,T,L,F)=>{const A=()=>{if(f.isMounted){let{next:U,bu:g,u:k,parent:q,vnode:oe}=f;{const jt=Vi(f);if(jt){U&&(U.el=oe.el,y(f,U,F)),jt.asyncDep.then(()=>{f.isUnmounted||A()});return}}let he=U,be;Wt(f,!1),U?(U.el=oe.el,y(f,U,F)):U=oe,g&&zn(g),(be=U.props&&U.props.onVnodeBeforeUpdate)&&ut(be,q,U,oe),Wt(f,!0);const Pe=Ho(f),Ze=f.subTree;f.subTree=Pe,v(Ze,Pe,d(Ze.el),Se(Ze),f,T,L),U.el=Pe.el,he===null&&da(f,Pe.el),k&&Fe(k,T),(be=U.props&&U.props.onVnodeUpdated)&&Fe(()=>ut(be,q,U,oe),T)}else{let U;const{el:g,props:k}=p,{bm:q,m:oe,parent:he}=f,be=hn(p);if(Wt(f,!1),q&&zn(q),!be&&(U=k&&k.onVnodeBeforeMount)&&ut(U,he,p),Wt(f,!0),g&&En){const Pe=()=>{f.subTree=Ho(f),En(g,f.subTree,f,T,null)};be?p.type.__asyncLoader().then(()=>!f.isUnmounted&&Pe()):Pe()}else{const Pe=f.subTree=Ho(f);v(null,Pe,b,I,f,T,L),p.el=Pe.el}if(oe&&Fe(oe,T),!be&&(U=k&&k.onVnodeMounted)){const Pe=p;Fe(()=>ut(U,he,Pe),T)}(p.shapeFlag&256||he&&hn(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&Fe(f.a,T),f.isMounted=!0,p=b=I=null}},V=f.effect=new To(A,Ue,()=>No(E),f.scope),E=f.update=()=>{V.dirty&&V.run()};E.id=f.uid,Wt(f,!0),E()},y=(f,p,b)=>{p.component=f;const I=f.vnode.props;f.vnode=p,f.next=null,Ha(f,p.props,I,b),Ka(f,p.children,b),St(),ai(f),Ct()},H=(f,p,b,I,T,L,F,A,V=!1)=>{const E=f&&f.children,U=f?f.shapeFlag:0,g=p.children,{patchFlag:k,shapeFlag:q}=p;if(k>0){if(k&128){K(E,g,b,I,T,L,F,A,V);return}else if(k&256){O(E,g,b,I,T,L,F,A,V);return}}q&8?(U&16&&ue(E,T,L),g!==E&&u(b,g)):U&16?q&16?K(E,g,b,I,T,L,F,A,V):ue(E,T,L,!0):(U&8&&u(b,""),q&16&&_(g,b,I,T,L,F,A,V))},O=(f,p,b,I,T,L,F,A,V)=>{f=f||Ge,p=p||Ge;const E=f.length,U=p.length,g=Math.min(E,U);let k;for(k=0;k<g;k++){const q=p[k]=V?Pt(p[k]):ct(p[k]);v(f[k],q,b,null,T,L,F,A,V)}E>U?ue(f,T,L,!0,!1,g):_(p,b,I,T,L,F,A,V,g)},K=(f,p,b,I,T,L,F,A,V)=>{let E=0;const U=p.length;let g=f.length-1,k=U-1;for(;E<=g&&E<=k;){const q=f[E],oe=p[E]=V?Pt(p[E]):ct(p[E]);if(Kt(q,oe))v(q,oe,b,null,T,L,F,A,V);else break;E++}for(;E<=g&&E<=k;){const q=f[g],oe=p[k]=V?Pt(p[k]):ct(p[k]);if(Kt(q,oe))v(q,oe,b,null,T,L,F,A,V);else break;g--,k--}if(E>g){if(E<=k){const q=k+1,oe=q<U?p[q].el:I;for(;E<=k;)v(null,p[E]=V?Pt(p[E]):ct(p[E]),b,oe,T,L,F,A,V),E++}}else if(E>k)for(;E<=g;)D(f[E],T,L,!0),E++;else{const q=E,oe=E,he=new Map;for(E=oe;E<=k;E++){const Ve=p[E]=V?Pt(p[E]):ct(p[E]);Ve.key!=null&&he.set(Ve.key,E)}let be,Pe=0;const Ze=k-oe+1;let jt=!1,ht=0;const Zt=new Array(Ze);for(E=0;E<Ze;E++)Zt[E]=0;for(E=q;E<=g;E++){const Ve=f[E];if(Pe>=Ze){D(Ve,T,L,!0);continue}let rt;if(Ve.key!=null)rt=he.get(Ve.key);else for(be=oe;be<=k;be++)if(Zt[be-oe]===0&&Kt(Ve,p[be])){rt=be;break}rt===void 0?D(Ve,T,L,!0):(Zt[rt-oe]=E+1,rt>=ht?ht=rt:jt=!0,v(Ve,p[rt],b,null,T,L,F,A,V),Pe++)}const vo=jt?Za(Zt):Ge;for(be=vo.length-1,E=Ze-1;E>=0;E--){const Ve=oe+E,rt=p[Ve],_o=Ve+1<U?p[Ve+1].el:I;Zt[E]===0?v(null,rt,b,_o,T,L,F,A,V):jt&&(be<0||E!==vo[be]?M(rt,b,_o,2):be--)}}},M=(f,p,b,I,T=null)=>{const{el:L,type:F,transition:A,children:V,shapeFlag:E}=f;if(E&6){M(f.component.subTree,p,b,I);return}if(E&128){f.suspense.move(p,b,I);return}if(E&64){F.move(f,p,b,dt);return}if(F===Ie){o(L,p,b);for(let g=0;g<V.length;g++)M(V[g],p,b,I);o(f.anchor,p,b);return}if(F===nr){C(f,p,b);return}if(I!==2&&E&1&&A)if(I===0)A.beforeEnter(L),o(L,p,b),Fe(()=>A.enter(L),T);else{const{leave:g,delayLeave:k,afterLeave:q}=A,oe=()=>o(L,p,b),he=()=>{g(L,()=>{oe(),q&&q()})};k?k(L,oe,he):he()}else o(L,p,b)},D=(f,p,b,I=!1,T=!1)=>{const{type:L,props:F,ref:A,children:V,dynamicChildren:E,shapeFlag:U,patchFlag:g,dirs:k}=f;if(A!=null&&er(A,null,b,f,!0),U&256){p.ctx.deactivate(f);return}const q=U&1&&k,oe=!hn(f);let he;if(oe&&(he=F&&F.onVnodeBeforeUnmount)&&ut(he,p,f),U&6)ge(f.component,b,I);else{if(U&128){f.suspense.unmount(b,I);return}q&&Nt(f,null,p,"beforeUnmount"),U&64?f.type.remove(f,p,b,T,dt,I):E&&(L!==Ie||g>0&&g&64)?ue(E,p,b,!1,!0):(L===Ie&&g&384||!T&&U&16)&&ue(V,p,b),I&&ne(f)}(oe&&(he=F&&F.onVnodeUnmounted)||q)&&Fe(()=>{he&&ut(he,p,f),q&&Nt(f,null,p,"unmounted")},b)},ne=f=>{const{type:p,el:b,anchor:I,transition:T}=f;if(p===Ie){ce(b,I);return}if(p===nr){$(f);return}const L=()=>{r(b),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:F,delayLeave:A}=T,V=()=>F(b,L);A?A(f.el,L,V):V()}else L()},ce=(f,p)=>{let b;for(;f!==p;)b=h(f),r(f),f=b;r(p)},ge=(f,p,b)=>{const{bum:I,scope:T,update:L,subTree:F,um:A}=f;I&&zn(I),T.stop(),L&&(L.active=!1,D(F,f,p,b)),A&&Fe(A,p),Fe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},ue=(f,p,b,I=!1,T=!1,L=0)=>{for(let F=L;F<f.length;F++)D(f[F],p,b,I,T)},Se=f=>f.shapeFlag&6?Se(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el);let Ee=!1;const Re=(f,p,b)=>{f==null?p._vnode&&D(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,b),Ee||(Ee=!0,ai(),ci(),Ee=!1),p._vnode=f},dt={p:v,um:D,m:M,r:ne,mt:pe,mc:_,pc:H,pbc:B,n:Se,o:e};let pt,En;return t&&([pt,En]=t(dt)),{render:Re,hydrate:pt,createApp:Va(Re,pt)}}function tr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Xa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ri(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Pt(r[i]),l.el=s.el),n||Ri(s,l)),l.type===no&&(l.el=s.el)}}function Za(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const Ga=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),nr=Symbol.for("v-stc"),_n=[];let st=null;function R(e=!1){_n.push(st=e?null:[])}function Ja(){_n.pop(),st=_n[_n.length-1]||null}let bn=1;function Ni(e){bn+=e}function Hi(e){return e.dynamicChildren=bn>0?st||Ge:null,Ja(),bn>0&&st&&st.push(e),e}function Z(e,t,n,o,r,i){return Hi(X(e,t,n,o,r,i,!0))}function xe(e,t,n,o,r){return Hi(Q(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Fi=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Me(e)||le(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,i=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fi(t),ref:t&&io(t),scopeId:di,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Le};return l?(or(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),bn>0&&!s&&st&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&st.push(a),a}const Q=Qa;function Qa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===gi)&&(e=nt),oo(e)){const l=$t(e,t,!0);return n&&or(l,n),bn>0&&!i&&st&&(l.shapeFlag&6?st[st.indexOf(e)]=l:st.push(l)),l.patchFlag|=-2,l}if(uc(e)&&(e=e.__vccOpts),t){t=ec(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=Oe(l)),ye(a)&&(ti(a)&&!ee(a)&&(a=Ce({},a)),t.style=Be(a))}const s=ke(e)?1:ga(e)?128:Ga(e)?64:ye(e)?4:le(e)?2:0;return X(e,t,n,o,r,s,i,!0)}function ec(e){return e?ti(e)||ro in e?Ce({},e):e:null}function $t(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?so(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Fi(l),ref:t&&t.ref?n&&r?ee(r)?r.concat(io(t)):[r,io(t)]:io(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Et(e=" ",t=0){return Q(no,null,e,t)}function Ae(e="",t=!1){return t?(R(),xe(nt,null,e)):Q(nt,null,e)}function ct(e){return e==null||typeof e=="boolean"?Q(nt):ee(e)?Q(Ie,null,e.slice()):typeof e=="object"?Pt(e):Q(no,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function or(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),or(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Le:r===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),o&64?(n=16,t=[Et(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Oe([t.class,o.class]));else if(r==="style")t.style=Be([t.style,o.style]);else if(Pn(r)){const i=t[r],s=o[r];s&&i!==s&&!(ee(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){Qe(e,t,7,[n,o])}const tc=Ei();let nc=0;function oc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||tc,i={uid:nc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Cl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Oi(o,r),emitsOptions:fi(o,r),emit:null,emitted:null,propsDefaults:de,inheritAttrs:o.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=aa.bind(null,i),e.ce&&e.ce(i),i}let ze=null;const rr=()=>ze||Le;let lo,ir;{const e=ko(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};lo=t("__VUE_INSTANCE_SETTERS__",n=>ze=n),ir=t("__VUE_SSR_SETTERS__",n=>ao=n)}const yn=e=>{const t=ze;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Wi=()=>{ze&&ze.scope.off(),lo(null)};function Ki(e){return e.vnode.shapeFlag&4}let ao=!1;function rc(e,t=!1){t&&ir(t);const{props:n,children:o}=e.vnode,r=Ki(e);Na(e,n,r,t),Wa(e,o);const i=r?ic(e,t):void 0;return t&&ir(!1),i}function ic(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ni(new Proxy(e.ctx,La));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?lc(e):null,i=yn(e);St();const s=mt(o,e,0,[e.props,r]);if(Ct(),i(),$r(s)){if(s.then(Wi,Wi),t)return s.then(l=>{Ui(e,l,t)}).catch(l=>{Wn(l,e,0)});e.asyncDep=s}else Ui(e,s,t)}else qi(e,t)}function Ui(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=ri(t)),qi(e,n)}let Yi;function qi(e,t,n){const o=e.type;if(!e.render){if(!t&&Yi&&!o.render){const r=o.template||Zo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Ce(Ce({isCustomElement:i,delimiters:l},s),a);o.render=Yi(r,c)}}e.render=o.render||Ue}{const r=yn(e);St();try{Aa(e)}finally{Ct(),r()}}}function sc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return He(e,"get","$attrs"),t[n]}}))}function lc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return sc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ri(ni(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}const ac=/(?:^|[-_])(\w)/g,cc=e=>e.replace(ac,t=>t.toUpperCase()).replace(/[-_]/g,"");function Xi(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Zi(e,t,n=!1){let o=Xi(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?cc(o):n?"App":"Anonymous"}function uc(e){return le(e)&&"__vccOpts"in e}const ae=(e,t)=>Yl(e,t,ao);function nn(e,t,n=de){const o=rr(),r=Ne(t),i=Ye(t),s=Jl((a,c)=>{let u;return ba(()=>{const d=e[t];lt(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const h=o.vnode.props;!(h&&(t in h||r in h||i in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${i}`in h))&&lt(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Gi(e,t,n){const o=arguments.length;return o===2?ye(t)&&!ee(t)?oo(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),Q(e,t,n))}const fc="3.4.15";/**
17
17
  * @vue/runtime-dom v3.4.15
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
20
  **/const dc="http://www.w3.org/2000/svg",pc="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,Ji=Ot&&Ot.createElement("template"),hc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Ot.createElementNS(dc,e):t==="mathml"?Ot.createElementNS(pc,e):Ot.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ji.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Ji.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mt="transition",wn="animation",xn=Symbol("_vtc"),on=(e,{slots:t})=>Gi(xa,gc(e),t);on.displayName="Transition";const Qi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};on.props=Ce({},_i,Qi);const Ut=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},es=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function gc(e){const t={};for(const N in e)N in Qi||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,w=mc(r),v=w&&w[0],z=w&&w[1],{onBeforeEnter:j,onEnter:re,onEnterCancelled:C,onLeave:$,onLeaveCancelled:S,onBeforeAppear:m=j,onAppear:W=re,onAppearCancelled:_=C}=t,Y=(N,ie,pe)=>{Yt(N,ie?u:l),Yt(N,ie?c:s),pe&&pe()},B=(N,ie)=>{N._isLeaving=!1,Yt(N,d),Yt(N,x),Yt(N,h),ie&&ie()},se=N=>(ie,pe)=>{const P=N?W:re,J=()=>Y(ie,N,pe);Ut(P,[ie,J]),ts(()=>{Yt(ie,N?a:i),Lt(ie,N?u:l),es(P)||ns(ie,o,v,J)})};return Ce(t,{onBeforeEnter(N){Ut(j,[N]),Lt(N,i),Lt(N,s)},onBeforeAppear(N){Ut(m,[N]),Lt(N,a),Lt(N,c)},onEnter:se(!1),onAppear:se(!0),onLeave(N,ie){N._isLeaving=!0;const pe=()=>B(N,ie);Lt(N,d),bc(),Lt(N,h),ts(()=>{N._isLeaving&&(Yt(N,d),Lt(N,x),es($)||ns(N,o,z,pe))}),Ut($,[N,pe])},onEnterCancelled(N){Y(N,!1),Ut(C,[N])},onAppearCancelled(N){Y(N,!0),Ut(_,[N])},onLeaveCancelled(N){B(N),Ut(S,[N])}})}function mc(e){if(e==null)return null;if(ye(e))return[sr(e.enter),sr(e.leave)];{const t=sr(e);return[t,t]}}function sr(e){return Co(e)}function Lt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[xn]||(e[xn]=new Set)).add(t)}function Yt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[xn];n&&(n.delete(t),n.size||(e[xn]=void 0))}function ts(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vc=0;function ns(e,t,n,o){const r=e._endId=++vc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=_c(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,h),i()},h=x=>{x.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,h)}function _c(e,t){const n=window.getComputedStyle(e),o=w=>(n[w]||"").split(", "),r=o(`${Mt}Delay`),i=o(`${Mt}Duration`),s=os(r,i),l=o(`${wn}Delay`),a=o(`${wn}Duration`),c=os(l,a);let u=null,d=0,h=0;t===Mt?s>0&&(u=Mt,d=s,h=i.length):t===wn?c>0&&(u=wn,d=c,h=a.length):(d=Math.max(s,c),u=d>0?s>c?Mt:wn:null,h=u?u===Mt?i.length:a.length:0);const x=u===Mt&&/\b(transform|all)(,|$)/.test(o(`${Mt}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:x}}function os(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>rs(n)+rs(e[o])))}function rs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function bc(){return document.body.offsetHeight}function yc(e,t,n){const o=e[xn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const lr=Symbol("_vod"),is={beforeMount(e,{value:t},{transition:n}){e[lr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Sn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Sn(e,!0),o.enter(e)):o.leave(e,()=>{Sn(e,!1)}):Sn(e,t))},beforeUnmount(e,{value:t}){Sn(e,t)}};function Sn(e,t){e.style.display=t?e[lr]:"none"}const wc=Symbol("");function xc(e,t,n){const o=e.style,r=o.display,i=ke(n);if(n&&!i){if(t&&!ke(t))for(const s in t)n[s]==null&&ar(o,s,"");for(const s in n)ar(o,s,n[s])}else if(i){if(t!==n){const s=o[wc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");lr in e&&(o.display=r)}const ss=/\s*!important$/;function ar(e,t,n){if(ee(n))n.forEach(o=>ar(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Sc(e,t);ss.test(n)?e.setProperty(Ye(o),n.replace(ss,""),"important"):e[o]=n}}const ls=["Webkit","Moz","ms"],cr={};function Sc(e,t){const n=cr[t];if(n)return n;let o=Ne(t);if(o!=="filter"&&o in e)return cr[t]=o;o=An(o);for(let r=0;r<ls.length;r++){const i=ls[r]+o;if(i in e)return cr[t]=i}return t}const as="http://www.w3.org/1999/xlink";function Cc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(as,t.slice(6,t.length)):e.setAttributeNS(as,t,n);else{const i=Sl(t);n==null||i&&!Mr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function kc(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Mr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function rn(e,t,n,o){e.addEventListener(t,n,o)}function Ic(e,t,n,o){e.removeEventListener(t,n,o)}const cs=Symbol("_vei");function Tc(e,t,n,o,r=null){const i=e[cs]||(e[cs]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=$c(t);if(o){const c=i[t]=Oc(o,r);rn(e,l,c,a)}else s&&(Ic(e,l,s,a),i[t]=void 0)}}const us=/(?:Once|Passive|Capture)$/;function $c(e){let t;if(us.test(e)){t={};let o;for(;o=e.match(us);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ye(e.slice(2)),t]}let ur=0;const Ec=Promise.resolve(),Pc=()=>ur||(Ec.then(()=>ur=0),ur=Date.now());function Oc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(Mc(o,n.value),t,5,[o])};return n.value=e,n.attached=Pc(),n}function Mc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?yc(e,o,c):t==="style"?xc(e,n,o):Pn(t)?bo(t)||Tc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ac(e,t,o,c))?kc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Cc(e,t,o,c))};function Ac(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&fs(t)&&le(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return fs(t)&&ke(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function zc(e,t){const n=Te(e);class o extends fr{constructor(i){super(n,i,t)}}return o.def=n,o}const jc=typeof HTMLElement<"u"?HTMLElement:class{};class fr extends jc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),vt(()=>{this._connected||(ms(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!ee(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Co(this._props[a])),(l||(l=Object.create(null)))[Ne(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Ne))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ne(t);this._numberProps&&this._numberProps[o]&&(n=Co(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ye(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ye(t),n+""):n||this.removeAttribute(Ye(t))))}_update(){ms(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,Ce({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Ye(i)!==i&&o(Ye(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof fr){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const ds=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>zn(t,n):t};function Bc(e){e.target.composing=!0}function ps(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dr=Symbol("_assign"),Dc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[dr]=ds(r);const i=o||r.props&&r.props.type==="number";rn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=So(l)),e[dr](l)}),n&&rn(e,"change",()=>{e.value=e.value.trim()}),t||(rn(e,"compositionstart",Bc),rn(e,"compositionend",ps),rn(e,"change",ps))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[dr]=ds(i),e.composing)return;const s=r||e.type==="number"?So(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Rc=["ctrl","shift","alt","meta"],Vc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Rc.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=Vc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Nc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},hs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Ye(r.key);if(t.some(s=>s===i||Nc[s]===i))return e(r)})},Hc=Ce({patchProp:Lc},hc);let gs;function Fc(){return gs||(gs=Ya(Hc))}const ms=(...e)=>{Fc().render(...e)},Wc=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
21
- `,we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Kc={},Uc={class:"loading-indicator"};function Yc(e,t){return R(),Z("div",Uc)}const pr=we(Kc,[["render",Yc],["styles",[Wc]]]),qc=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"})),Xc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Zc={class:"flex justify-between items-end"},Gc={class:"inline-block children-pointer-events-auto w-1/3"},Jc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Qc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},eu={class:"inline-block z-20 relative"},vs=Te({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>{const o=pr;return R(),Z("div",{class:Oe(["fixed top-0 left-0 w-screen h-screen text-stone-100 font-sans text-base overflow-auto scrollbar-none overscroll-contain",{"cursor-none":t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(R(),Z("div",Xc,[Q(o)])):Ae("",!0),$e(t.$slots,"default"),X("div",{id:"controls",class:Oe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[X("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${t.spaceTop||0}px`})},[$e(t.$slots,"back"),$e(t.$slots,"exit"),$e(t.$slots,"chapter-nav")],4),X("div",Zc,[X("div",Gc,[$e(t.$slots,"page-nav")]),X("div",Jc,[$e(t.$slots,"reset-zoom")]),X("div",Qc,[$e(t.$slots,"entry"),X("div",eu,[$e(t.$slots,"settings")]),$e(t.$slots,"full-screen"),$e(t.$slots,"play")])]),X("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[$e(t.$slots,"progress")],2)],2)],2)}}}),tu=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),nu={},ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},ru=[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 iu(e,t){return R(),Z("svg",ou,ru)}const _s=we(nu,[["render",iu]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),lu={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},au={class:"block w-4 h-4"},cu={class:"w-12"},bs=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=_s;return t.zoom!==1?(R(),Z("button",lu,[X("div",au,[Q(o)]),X("div",cu,Je(Math.ceil(t.zoom*100))+"%",1)])):Ae("",!0)}}}),uu=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),fu={},du={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},pu=[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 hu(e,t){return R(),Z("svg",du,pu)}const hr=we(fu,[["render",hu]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),mu={},vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},_u=[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 bu(e,t){return R(),Z("svg",vu,_u)}const gr=we(mu,[["render",bu]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"}));function wu({touchDevice:e}){const t=G(!1);let n=0;return to("busy:touchDevice",e),to("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function mr(){const e=Ft("busy:touchDevice"),t=Ft("setBusyState");let n=!1;return at(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const xu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},sn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>xu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Su={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},uo=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=mr();let i=!1;function s(){i||(i=!0,r(!0,{desktopOnly:!0}))}function l(){i&&(i=!1,r(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click")}return(c,u)=>_t((R(),xe(pa(c.href?"a":"button"),so(c.href?{href:c.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":c.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!c.disabled,"bg-black bg-opacity-50":!c.transparent}],onClick:ot(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:fe(()=>[X("div",Su,[$e(c.$slots,"default")])]),_:3},16,["class"])),[[te(sn),c.disabled?0:15]])}}),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),ku={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tu=[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 $u(e,t){return R(),Z("svg",Iu,Tu)}const ys=we(ku,[["render",$u]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"}));class Pu{constructor(){pl(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function Ou(){const e=new Pu;return at(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Ft("keyController");tt(()=>t.addListener(e)),at(()=>t.removeListener(e))}const Mu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Lu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Au={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ws=Te({__name:"BottomSheet",props:Ht({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=nn(e,"modelValue");fo({onKeyDown:o});const n=mr();_e(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>{const s=ys,l=uo;return R(),Z("div",{class:Oe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[Q(on,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:fe(()=>[t.value?(R(),Z("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"])),onWheelPassive:i[2]||(i[2]=ot(()=>{},["stop"]))},[X("div",Mu,[Q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:fe(()=>[Q(s)]),_:1}),X("div",Lu,Je(r.name),1),$e(r.$slots,"actions")]),X("div",Au,[$e(r.$slots,"default")])],32)):Ae("",!0)]),_:3})],2)}}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),ju=["min","max","step"],Bu={class:"flex-shrink-0"},xs=we(Te({__name:"InputPercentage",props:Ht({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=nn(e,"modelValue"),n=ae({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(R(),Z("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Be({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[_t(X("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>n.value=i),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,ju),[[Dc,n.value]]),X("p",Bu,[$e(o.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
21
+ `,we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Kc={},Uc={class:"loading-indicator"};function Yc(e,t){return R(),Z("div",Uc)}const pr=we(Kc,[["render",Yc],["styles",[Wc]]]),qc=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"})),Xc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Zc={class:"flex justify-between items-end"},Gc={class:"inline-block children-pointer-events-auto w-1/3"},Jc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Qc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},eu={class:"inline-block z-20 relative"},vs=we(Te({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>{const o=pr;return R(),Z("div",{class:Oe(["reader-layout",{"cursor-none":t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(R(),Z("div",Xc,[Q(o)])):Ae("",!0),$e(t.$slots,"default"),X("div",{id:"controls",class:Oe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[X("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${t.spaceTop||0}px`})},[$e(t.$slots,"back"),$e(t.$slots,"exit"),$e(t.$slots,"chapter-nav")],4),X("div",Zc,[X("div",Gc,[$e(t.$slots,"page-nav")]),X("div",Jc,[$e(t.$slots,"reset-zoom")]),X("div",Qc,[$e(t.$slots,"entry"),X("div",eu,[$e(t.$slots,"settings")]),$e(t.$slots,"full-screen"),$e(t.$slots,"play")])]),X("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[$e(t.$slots,"progress")],2)],2)],2)}}}),[["styles",[`.reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100vh;left:0;line-height:24px;overflow:auto;overscroll-behavior:contain;position:fixed;scrollbar-width:none;top:0;width:100vw}.reader-layout::-webkit-scrollbar{display:none}
22
+ `]]]),tu=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),nu={},ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},ru=[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 iu(e,t){return R(),Z("svg",ou,ru)}const _s=we(nu,[["render",iu]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),lu={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},au={class:"block w-4 h-4"},cu={class:"w-12"},bs=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=_s;return t.zoom!==1?(R(),Z("button",lu,[X("div",au,[Q(o)]),X("div",cu,Je(Math.ceil(t.zoom*100))+"%",1)])):Ae("",!0)}}}),uu=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),fu={},du={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},pu=[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 hu(e,t){return R(),Z("svg",du,pu)}const hr=we(fu,[["render",hu]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"})),mu={},vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},_u=[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 bu(e,t){return R(),Z("svg",vu,_u)}const gr=we(mu,[["render",bu]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"}));function wu({touchDevice:e}){const t=G(!1);let n=0;return to("busy:touchDevice",e),to("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function mr(){const e=Ft("busy:touchDevice"),t=Ft("setBusyState");let n=!1;return it(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const xu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},sn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>xu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Su={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},uo=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=mr();let i=!1;function s(){i||(i=!0,r(!0,{desktopOnly:!0}))}function l(){i&&(i=!1,r(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click")}return(c,u)=>_t((R(),xe(pa(c.href?"a":"button"),so(c.href?{href:c.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":c.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!c.disabled,"bg-black bg-opacity-50":!c.transparent}],onClick:ot(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:fe(()=>[X("div",Su,[$e(c.$slots,"default")])]),_:3},16,["class"])),[[te(sn),c.disabled?0:15]])}}),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),ku={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tu=[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 $u(e,t){return R(),Z("svg",Iu,Tu)}const ys=we(ku,[["render",$u]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"}));class Pu{constructor(){pl(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function Ou(){const e=new Pu;return it(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Ft("keyController");tt(()=>t.addListener(e)),it(()=>t.removeListener(e))}const Mu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Lu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Au={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ws=Te({__name:"BottomSheet",props:Ht({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=nn(e,"modelValue");fo({onKeyDown:o});const n=mr();_e(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>{const s=ys,l=uo;return R(),Z("div",{class:Oe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[Q(on,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:fe(()=>[t.value?(R(),Z("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"])),onWheelPassive:i[2]||(i[2]=ot(()=>{},["stop"]))},[X("div",Mu,[Q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:fe(()=>[Q(s)]),_:1}),X("div",Lu,Je(r.name),1),$e(r.$slots,"actions")]),X("div",Au,[$e(r.$slots,"default")])],32)):Ae("",!0)]),_:3})],2)}}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),ju=["min","max","step"],Bu={class:"flex-shrink-0"},xs=we(Te({__name:"InputPercentage",props:Ht({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=nn(e,"modelValue"),n=ae({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(R(),Z("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Be({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[_t(X("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>n.value=i),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,ju),[[Dc,n.value]]),X("p",Bu,[$e(o.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
22
23
  `]]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),Ru={class:"flex items-center mb-8 last:mb-0"},Vu={class:"flex-grow overflow-hidden"},Ss=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),Z("div",Ru,[X("div",{class:Oe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Je(t.label),3),X("div",Vu,[$e(t.$slots,"default")])]))}}),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"})),Hu=["onClick","onKeyup"],Cs=Te({__name:"InputSelect",props:Ht({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=nn(e,"modelValue"),o=G(null),r=G({width:"",left:""});tt(()=>{let s=!1;_e(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){n.value=s}return(s,l)=>(R(),Z("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Be(r.value)},null,4),(R(!0),Z(Ie,null,gn(t.items,(a,c)=>_t((R(),Z("div",{key:c,tabindex:"0",class:Oe(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>i(c),onKeyup:[hs(()=>i(c),["enter"]),hs(()=>i(c),["space"])]},[Et(Je(a),1)],42,Hu)),[[te(sn),30]])),128))],512))}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),Wu={},Ku={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Uu=[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 Yu(e,t){return R(),Z("svg",Ku,Uu)}const ks=we(Wu,[["render",Yu]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Xu={},Zu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Gu=[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 Ju(e,t){return R(),Z("svg",Zu,Gu)}const Is=we(Xu,[["render",Ju]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Is},Symbol.toStringTag,{value:"Module"}));function ef(e){if(e)try{return JSON.parse(e)}catch{return}}function tf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ft=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ft||{}),qt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(qt||{});const nf=.25,of=5,rf=.25,Cn=.25,kn=5,sf=.05,lf=0,af=4;function cf(e){var j,re,C,$,S;const{titleName:t,isWebtoon:n}=e,o=ae(()=>t.value?tf(t.value):location.hostname),r=G(uf(`tkr:${o.value}`)),i=m=>{r.value=m;const W=`tkr:${o.value}`;!m||!Object.keys(m).length?localStorage.removeItem(W):localStorage.setItem(W,JSON.stringify(m))},s=m=>{if(!r.value){i(m);return}const W={...r.value};Object.entries(m).forEach(([_,Y])=>{Y===void 0?delete W[_]:W[_]=Y}),i(W)},l=G(((j=r.value)==null?void 0:j.style)??e.defaultStyle??qt.longStrip),a=G(((re=r.value)==null?void 0:re.direction)??e.defaultDirection??ft.vertical),c=G((C=r.value)==null?void 0:C.gap),u=G((($=r.value)==null?void 0:$.speed)??1),d=G(((S=r.value)==null?void 0:S.zoom)??1),h=ae({get(){return n.value?qt.longStrip:l.value},set:m=>{l.value=m,s({style:m}),m!==qt.longStrip&&a.value===ft.vertical&&(x.value=ft.rtl)}}),x=ae({get:()=>n.value?ft.vertical:a.value,set:m=>{a.value=m,s({direction:m})}}),w=ae({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(m){c.value=m,s({gap:m})}}),v=ae({get:()=>u.value,set(m){u.value=m,s({speed:m===1?void 0:m})}}),z=ae({get:()=>d.value,set(m){d.value=m,s({zoom:m===1?void 0:m})}});return{direction:x,style:h,gap:w,speed:v,zoom:z,isLongStrip:ae(()=>h.value===qt.longStrip),isDouble:ae(()=>h.value===qt.double),isRTL:ae(()=>x.value===ft.rtl),isVertical:ae(()=>x.value===ft.vertical)}}function uf(e){const t=localStorage.getItem(e),n=ef(t),o={};return n?(n.style!==void 0&&Object.values(qt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ft).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=lf&&n.gap<=af&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Cn&&n.speed<=kn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Cn&&n.zoom<=kn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const Ts=Te({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,r=G(!1),i=ae(()=>n.name??location.hostname);fo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(r.value=!r.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){r.value=!1,o("help")}return(a,c)=>{const u=Is,d=uo,h=ks,x=Cs,w=Ss,v=xs,z=ws;return R(),Z(Ie,null,[Q(d,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:fe(()=>[Q(u)]),_:1},8,["disabled"]),Q(z,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=j=>r.value=j),name:i.value},{actions:fe(()=>[Q(d,{transparent:"",onClick:l},{default:fe(()=>[Q(h)]),_:1})]),default:fe(()=>[Q(w,{label:"Style"},{default:fe(()=>[Q(x,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=j=>o("update:reader-style",j))},null,8,["model-value","items"])]),_:1}),Q(w,{label:"Direction"},{default:fe(()=>[Q(x,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=j=>o("update:direction",j))},null,8,["model-value","items"])]),_:1}),Q(w,{label:"Gap"},{default:fe(()=>[Q(x,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=j=>o("update:gap",j))},null,8,["model-value"])]),_:1}),Q(w,{label:"Speed"},{default:fe(()=>[Q(v,{"model-value":a.speed,min:te(nf),max:te(of),step:te(rf),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=j=>o("update:speed",j))},{suffix:fe(()=>[Et(Je(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(w,{label:"Zoom"},{default:fe(()=>[Q(v,{"model-value":Math.ceil(a.zoom*100),min:te(Cn)*100,max:te(kn)*100,step:te(sf)*100,"onUpdate:modelValue":s},{suffix:fe(()=>[Et(Je(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),df={},pf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},hf=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function gf(e,t){return R(),Z("svg",pf,hf)}const $s=we(df,[["render",gf]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),vf={},_f={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},bf=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function yf(e,t){return R(),Z("svg",_f,bf)}const Es=we(vf,[["render",yf]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),xf={},Sf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cf=[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 kf(e,t){return R(),Z("svg",Sf,Cf)}const Ps=we(xf,[["render",kf]]),If=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Tf={},$f={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ef=[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 Pf(e,t){return R(),Z("svg",$f,Ef)}const Os=we(Tf,[["render",Pf]]),Of=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),Mf={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Af=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function zf(e,t){return R(),Z("svg",Lf,Af)}const Ms=we(Mf,[["render",zf]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Bf=["aria-hidden"],Df=["onClick"],Rf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},Vf={class:"whitespace-nowrap"},vr=Te({__name:"ButtonDropdown",props:Ht({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=nn(e,"modelValue"),o=G(null),r=G(!1),i=G(null),s=G(!1),l=G(!1),a=G(!1);fo({onKeyDown:x});const c=mr();function u(){if(!t.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),vt(()=>setTimeout(()=>{var $,S;(S=($=i.value)==null?void 0:$.children[n.value])==null||S.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),v(o.value)):setTimeout(z,250)}function d(){const $=o.value;if($){const S=$.getBoundingClientRect(),m=S.x+S.width/2;s.value=S.y>window.innerHeight/2,l.value=m<window.innerWidth/3,a.value=m>window.innerWidth/3*2}}function h($){$!=n.value&&(n.value=$),u()}function x($){r.value&&$.key==="Escape"&&(u(),$.preventDefault())}let w=[];function v($){const S=window.getComputedStyle($).zIndex,m=$.style.zIndex;(!S||!(+S>0))&&((!$.parentElement||$.parentElement.childElementCount>1)&&($.style.zIndex="1",w.push({el:$,zIndex:m})),$.parentElement&&v($.parentElement))}function z(){w.forEach(({el:$,zIndex:S})=>{$.style.zIndex=S??""}),w=[]}let j=!1;function re(){j||(j=!0,c(!0,{desktopOnly:!0}))}function C(){j&&(j=!1,c(!1,{desktopOnly:!0}))}return($,S)=>{const m=Ms;return R(),Z("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(R(),Z("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Ae("",!0),$.items.length?(R(),xe(on,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:fe(()=>[r.value?(R(),Z("ul",{key:0,ref_key:"list",ref:i,"aria-hidden":!r.value,class:Oe(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":s.value,"origin-top top-full translate-y-1.5":!s.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:S[0]||(S[0]=ot(()=>{},["stop"]))},[(R(!0),Z(Ie,null,gn($.items,(W,_)=>_t((R(),Z("li",{key:_,tabindex:"-1",class:Oe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":_===n.value}]),onClick:()=>h(_)},[X("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":_>0}])},[$e($.$slots,"item",{item:W},()=>[Et(Je(W),1)])],2)],10,Df)),[[te(sn),30]])),128))],42,Bf)):Ae("",!0)]),_:3})):Ae("",!0),_t((R(),Z("button",so({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":$.disabled}]},$.title?{title:$.title}:{},{onClick:ot(u,["stop"]),onMouseenter:re,onMouseleave:C}),[X("div",Rf,[X("span",Vf,Je($.label),1),$.items.length?(R(),Z("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[Q(m)],2)):Ae("",!0)])],16)),[[te(sn),30]])],512)}}}),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Ls=Te({__name:"PageNav",props:Ht({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=nn(e,"modelValue"),o=ae(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=ae(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:d})=>d===a));return c===-1?t.pages.length-1:c}),i=ae(()=>t.pages.length?`${o.value[r.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>{const u=vr;return R(),xe(u,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"])}}}),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),Ff={},Wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kf=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Uf(e,t){return R(),Z("svg",Wf,Kf)}const As=we(Ff,[["render",Uf]]),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),qf={},Xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Zf=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Gf(e,t){return R(),Z("svg",Xf,Zf)}const zs=we(qf,[["render",Gf]]),Jf=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Qf={},ed={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},td=[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 nd(e,t){return R(),Z("svg",ed,td)}const js=we(Qf,[["render",nd]]),od=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),rd={},id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},sd=[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 ld(e,t){return R(),Z("svg",id,sd)}const Bs=we(rd,[["render",ld]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"}));var Ds;const _r=typeof window<"u",cd=e=>typeof e=="string",At=()=>{};_r&&((Ds=window==null?void 0:window.navigator)!=null&&Ds.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():te(e)}function Rs(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function ud(e,t={}){let n,o,r=At;const i=l=>{clearTimeout(l),r(),r=At};return l=>{const a=po(e),c=po(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function fd(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=At,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=At)};return d=>{const h=po(e),x=Date.now()-r,w=()=>a=d();if(c(),h<=0)return r=Date.now(),w();if(x>h&&(n||!s))r=Date.now(),w();else if(t)return new Promise((v,z)=>{l=o?z:v,i=setTimeout(()=>{r=Date.now(),s=!0,v(w()),c()},h-x)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function dd(e){return e}function br(e){return Ar()?(Il(e),!0):!1}function We(e,t=200,n={}){return Rs(ud(t,n),e)}function Vs(e,t=200,n=!1,o=!0,r=!1){return Rs(fd(t,n,o,r),e)}function Ns(e,t=!0){rr()?tt(e):t?e():vt(e)}function Xt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const In=_r?window:void 0,pd=_r?window.document:void 0;function zt(...e){let t,n,o,r;if(cd(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=In):[t,n,o,r]=e,!t)return At;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,d,h)=>(u.addEventListener(d,h,r),()=>u.removeEventListener(d,h,r)),a=_e(()=>Xt(t),u=>{s(),u&&i.push(...n.flatMap(d=>o.map(h=>l(u,d,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return br(c),c}function Hs(e,t=!1){const n=G(),o=()=>n.value=!!e();return o(),Ns(o,t),n}const Fs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ws="__vueuse_ssr_handlers__";Fs[Ws]=Fs[Ws]||{};function Ks({document:e=pd}={}){if(!e)return G("visible");const t=G(e.visibilityState);return zt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Us=Object.getOwnPropertySymbols,hd=Object.prototype.hasOwnProperty,gd=Object.prototype.propertyIsEnumerable,md=(e,t)=>{var n={};for(var o in e)hd.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Us)for(var o of Us(e))t.indexOf(o)<0&&gd.call(e,o)&&(n[o]=e[o]);return n};function vd(e,t,n={}){const o=n,{window:r=In}=o,i=md(o,["window"]);let s;const l=Hs(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=_e(()=>Xt(e),d=>{a(),l.value&&r&&d&&(s=new ResizeObserver(t),s.observe(d,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return br(u),{isSupported:l,stop:u}}function yr(e,t={width:0,height:0},n={}){const{window:o=In,box:r="content-box"}=n,i=ae(()=>{var a,c;return(c=(a=Xt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=G(t.width),l=G(t.height);return vd(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Xt(e);if(u){const d=o.getComputedStyle(u);s.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((d,{inlineSize:h})=>d+h,0),l.value=u.reduce((d,{blockSize:h})=>d+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),_e(()=>Xt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function wr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=In}=n,l=Hs(()=>s&&"IntersectionObserver"in s);let a=At;const c=l.value?_e(()=>({el:Xt(e),root:Xt(o)}),({el:d,root:h})=>{if(a(),!d)return;const x=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});x.observe(d),a=()=>{x.disconnect(),a=At}},{immediate:!0,flush:"post"}):At,u=()=>{a(),c()};return br(u),{isSupported:l,stop:u}}var Ys;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ys||(Ys={}));var _d=Object.defineProperty,qs=Object.getOwnPropertySymbols,bd=Object.prototype.hasOwnProperty,yd=Object.prototype.propertyIsEnumerable,Xs=(e,t,n)=>t in e?_d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wd=(e,t)=>{for(var n in t||(t={}))bd.call(t,n)&&Xs(e,n,t[n]);if(qs)for(var n of qs(t))yd.call(t,n)&&Xs(e,n,t[n]);return e};wd({linear:dd},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function xd(e={}){const{window:t=In,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=G(n),l=G(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ns(a),zt("resize",a,{passive:!0}),r&&zt("orientationchange",a,{passive:!0}),{width:s,height:l}}const Zs=we(Te({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=G(null),r=G(0),i=G([]),s=ae(()=>i.value[r.value]),l=Vs(a,500);tt(()=>{const d=yr(o),h=We(()=>c({width:d.width.value,height:d.height.value}),50);h(),_e(d.width,h),_e(d.height,h)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(d){const h=u();i.value=h.map(({rect:x,text:w})=>{const v=x.top<d.height-x.bottom,z=x.left<d.width-x.right;return{text:w,style:{left:`${x.left}px`,top:`${x.top}px`,width:`${x.width}px`,height:`${x.height}px`},textStyle:{left:z?`${x.left-12}px`:void 0,right:z?void 0:`${d.width-x.left}px`,top:v?`${x.bottom+12}px`:`${x.top+20}px`,textAlign:v?void 0:"right",transform:v?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var x;const d=(x=o.value)==null?void 0:x.parentElement;if(!d)return[];const h=[];return d.querySelectorAll("[data-tour]").forEach(w=>{var j;const v=(j=w.getAttribute("data-tour"))==null?void 0:j.trim();if(!(v!=null&&v.length))return;const z=w.getBoundingClientRect();h.push({rect:z,text:v})}),h}return(d,h)=>{var x,w;return R(),Z(Ie,null,[X("div",{class:Oe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),X("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=ot((...v)=>te(l)&&te(l)(...v),["stop"]))},[s.value?(R(),Z("div",{key:r.value,class:"tour__target",style:Be(s.value.style)},null,4)):Ae("",!0),(R(),Z("div",{key:r.value,class:"tour__text",style:Be((x=s.value)==null?void 0:x.textStyle)},Je(((w=s.value)==null?void 0:w.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
23
24
  `]]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Cd=X("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Gs=Te({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=G(null),i=G([]);tt(async()=>{const c=yr(r),u=We(()=>{s({width:c.width.value,height:c.height.value})},50);u(),_e(c.width,u),_e(c.height,u)});function s(c){var h;const u=(h=r.value)==null?void 0:h.parentElement;if(!u)return;const d=Array.from(u.querySelectorAll("#controls [title]"));d.length&&(i.value=l(d,c))}function l(c,u){const d=[],h=[];let x=0,w=0;const v=50,z=25;c.forEach(S=>{var B;const m=(B=S.getAttribute("title"))==null?void 0:B.trim(),W=S.getBoundingClientRect();if(!m||!W.height||!W.width)return;const _=Math.ceil((W.top-10)/v),Y=Math.ceil((W.left-10)/v);h.push({isTour:!1,title:m,rect:W,fromX:Y,toX:Math.max(Y+1,Math.ceil((W.right+10)/v)),fromY:_,toY:Math.max(_+1,Math.ceil((W.bottom+10)/v))})}),h.forEach(S=>{for(let m=S.fromY;m<S.toY;m++){d[m]??(d[m]=[]);for(let W=S.fromX;W<S.toX;W++)d[m][W]=S;S.toY>x+1&&(x=S.toY-1),S.toX>w+1&&(w=S.toX-1)}});let j=w/2;h.forEach(S=>{S.isAlignRight=S.fromX>j});const re=(S,m)=>{d[m]??(d[m]=[]);const W=m>=S.toY;if(S.isTour)for(let _=S.fromX;_<S.toX;_++)delete d[S.fromY][_],S.fromY=m,S.toY=m+(W?1:-1),d[m][_]=S;else{const _=S.isAlignRight?S.fromX-3:S.fromX,Y=_+3;S.helpItem={fromX:_,toX:Y,fromY:m,toY:m+1,isTour:!0,isAlignRight:S.isAlignRight};for(let B=_;B<Y;B++)d[m][B]=S.helpItem}},C=(S,m)=>{if(m>x||m<0)return!1;const W=m>=S.toY,_=d[m];if(!_)return re(S,m),!0;const Y=_[S.fromX];if(Y&&!Y.isTour)return!1;if(Y&&Y.isTour)return C(Y,W?m+1:m-1)?(re(S,m),!0):!1;if(!Y){const B=S.isAlignRight?-1:1;return _[S.fromX+B]||_[S.fromX+B*2]?C(S,W?m+1:m-1):(re(S,m),!0)}return!1};h.forEach(S=>{if(!C(S,S.toY)){if(S.isAlignRight){const m=d[S.fromY]??[];if(!m.slice(S.fromX-3,S.fromX).filter(Boolean).length){const _=S.fromX-3,Y=S.fromX;S.helpItem={isTour:!0,isAlignRight:!0,fromX:_,toX:Y,fromY:S.fromY,toY:S.toY};for(let B=S.fromX-3;B<S.fromX;B++)m[B]=S.helpItem;return}}C(S,S.fromY-1)}});const $=[];return h.forEach(S=>{const{title:m,helpItem:W,rect:_,isAlignRight:Y,fromX:B,fromY:se,toY:N}=S;if(!m||!W||!_)return;const ie=W.fromY>=N,pe=W.toY<=se;$.push({title:a(m),style:{top:ie?`${_.bottom+(W.fromY-N)*v+z}px`:pe?void 0:`${_.top+8}px`,bottom:pe?`${u.height-_.top+(W.toY-se)*v+z}px`:void 0,left:Y?void 0:`${_.left}px`,right:Y?ie?`${u.width-_.right}px`:`${u.width-_.right+_.width+z}px`:void 0},arrowStyle:{width:pe||ie?"2px":`${Math.abs(W.toX-B)*v+z-5}px`,height:pe||ie?`${(ie?W.fromY-N:se-W.toY)*v+z}px`:"2px",top:ie?`${_.bottom}px`:pe?void 0:`${_.top+20}px`,bottom:pe?`${u.height-_.top}px`:void 0,left:Y?void 0:`${_.left+_.width/2}px`,right:Y?ie?`${u.width-_.right+_.width/2}px`:`${u.width-_.right+_.width}px`:void 0}})}),$}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),Z(Ie,null,[Cd,X("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=ot(d=>o("hide"),["stop"]))},[(R(!0),Z(Ie,null,gn(i.value,d=>(R(),Z(Ie,{key:d.title},[X("div",{class:"absolute",style:Be(d.style)},Je(d.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Be(d.arrowStyle)},null,4)],64))),128))],512)],64))}}),kd=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Js=we(Te({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=G(0);return _e(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=hr,s=gr;return n.value?(R(),Z("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?(R(),xe(i,{key:0})):(R(),xe(s,{key:1}))])):Ae("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
24
- `]]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Td={},$d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ed=[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 Pd(e,t){return R(),Z("svg",$d,Ed)}const Qs=we(Td,[["render",Pd]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),el=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=G(typeof n!="string"||+n!==t.direction),r=We(()=>o.value=!1,1250);_e(()=>t.direction,()=>{i(),o.value=!0,r()}),tt(()=>{i(),r();let s;const l=Ks();_e(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=Qs;return R(),xe(on,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:fe(()=>[o.value?(R(),Z("div",{key:0,class:Oe(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===te(ft).vertical,"rotate-180":s.direction===te(ft).rtl}])},[Q(a)],2)):Ae("",!0)]),_:1})}}}),Md=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),ho=[];function Ld(e){ho.push(e),at(()=>{const t=ho.indexOf(e);t!==-1&&ho.splice(t,1)})}function Ad(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;ho.forEach(s=>s(r,i))}const tl=Te({__name:"ZoomWrapper",props:Ht({pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Ht(["dragEnd","click"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=nn(e,"modelValue"),i=G(null),s=G(Math.min(kn,Math.max(Cn,r.value))),l=G(!1),a=G(!1),c=G(!1);_e(r,P=>pe(P)),tt(()=>{n.touchDevice?(zt(i,"touchstart",j),!navigator.userAgent.toLowerCase().includes("android")&&Ld(B)):(zt(i,"mousedown",x),zt(window,"wheel",S))}),fo({onKeyDown:P=>{var J;if(!n.busy&&((J=i.value)==null||J.focus(),!(P.key==="Meta"||P.key==="Control")&&(P.ctrlKey||P.metaKey)))switch(P.key){case"0":pe(1);break;case"-":pe(s.value-.2),P.preventDefault();break;case"=":case"+":pe(s.value+.2),P.preventDefault();break}}});function u(P){a.value!==P&&(a.value=P,P?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let d={x:0,y:0},h={x:0,y:0};function x(P){P.button===0&&(d={x:P.clientX,y:P.clientY},h={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",w),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",w),setTimeout(()=>u(!1))},{once:!0}),P.preventDefault(),P.stopPropagation())}function w(P){u(!0);const J=P.clientX-d.x,y=P.clientY-d.y,H=i.value;H.scrollLeft=h.x-J,H.scrollTop=h.y-y}let v=!1,z={distance:0,zoom:s.value,x:0,y:0};function j(P){n.busy||(v=P.touches.length===2,v&&(u(!0),P.stopPropagation(),P.preventDefault(),z={distance:m(P),zoom:s.value,x:(P.touches[0].clientX+P.touches[1].clientX)/2,y:(P.touches[0].clientY+P.touches[1].clientY)/2}),(v||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",C),window.addEventListener("touchend",re,{once:!0})))}function re(){if(window.removeEventListener("touchmove",C),v){u(!1),v=!1;return}if(!a.value)return;const P=We(()=>{u(!1),i.value.removeEventListener("scroll",y)},200),J=setTimeout(P,200);i.value.addEventListener("scroll",y);function y(){clearTimeout(J),P()}}function C(P){if(u(!0),v){P.stopPropagation(),P.preventDefault();const y=m(P)/z.distance;pe(Math.ceil(y*z.zoom*100)/100,z)}}const $=We(()=>l.value=!1,100);function S(P){if(!n.busy){if(P.ctrlKey||P.metaKey){P.stopPropagation(),P.preventDefault();const J=Math.ceil((s.value+P.deltaY*-.01)*100)/100;pe(J,{x:P.clientX,y:P.clientY});return}n.horizontal&&(l.value||(l.value=!0),$(),P.deltaY&&(i.value&&(i.value.scrollLeft+=P.deltaY*(n.rtl?-1:1)),P.stopPropagation(),P.preventDefault()))}}function m(P){return Math.hypot(P.touches[0].clientX-P.touches[1].clientX,P.touches[0].clientY-P.touches[1].clientY)}let W=0,_;function Y(P){if(!a.value){if(!n.touchDevice){o("click",P);return}W++,_&&clearTimeout(_),W===2&&B(P.clientX,P.clientY),_=setTimeout(()=>{!a.value&&W===1&&o("click",P),_=void 0,W=0},300)}}function B(P,J){if(!W)return;W=0;const y=s.value===1?2:1;pe(y,{x:P,y:J})}let se;const N=We(()=>{c.value=!1,se=void 0},150);function ie(){if(!c.value){const P=i.value;if(!P)return;const J=P.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;J&&(se={el:J,rect:J.getBoundingClientRect()},c.value=!0)}if(se)return N(),se}async function pe(P,J){const y=i.value,H=Math.min(kn,Math.max(Cn,P));if(!y||s.value===H)return;const O=ie();if(!O)return;const K=(J==null?void 0:J.x)??y.clientWidth/2,M=(J==null?void 0:J.y)??y.clientHeight/2;s.value=H,r.value=H,await vt();const{el:D,rect:ne}=O,ce=D.offsetWidth/ne.width,ge=D.offsetHeight/ne.height;y.scrollLeft=D.offsetLeft-ne.left*ce+K*(ce-1),y.scrollTop=D.offsetTop-ne.top*ge+M*(ge-1)}return(P,J)=>(R(),Z("div",{ref_key:"root",ref:i,tabindex:"0",class:Oe(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!P.longStrip&&(a.value||l.value||c.value),"cursor-grabbing":a.value,"overflow-hidden":c.value}]),style:Be({"font-size":`${s.value}px`}),onClick:ot(Y,["stop"])},[$e(P.$slots,"default")],6))}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),nl=Te({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=G(null),r=G(!1);return tt(async()=>{await vt();let i=!1;wr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(R(),Z("div",{ref_key:"root",ref:o},[$e(i.$slots,"default",{visible:r.value})],512))}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"}));function Bd({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=G(n),i=G(o),s=We(l,50);_e(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const Dd={key:0,class:"page--loading"},Rd=["src"],Vd=["src"],Nd=["data-index"],ol=we(Te({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,r=G(null),i=ae(()=>{var w;return(w=r.value)==null?void 0:w.$el}),s=G(null),l=yr(i),a=ae(()=>{const{width:w,height:v}=l,z=n.isLongStrip?n.isVertical?w.value:v.value:Math.min(w.value,v.value);return Math.min(4,Math.max(1,Math.ceil(z/400-1)))*n.gap}),c=Bd({pageIndex:ae(()=>n.pageIndex),isLongStrip:ae(()=>n.isLongStrip)}),u=ae(()=>{const{width:{value:w},height:{value:v}}=l;return n.pages.map(z=>{var Y;const j=z.some(B=>{var se;return(se=B.img)==null?void 0:se.isLoading}),re=z.map(B=>B.index),C={isLoading:j,indexes:re};if(j||re[re.length-1]<c.min.value-1||re[0]>c.max.value+2)return C;const $=z.map(({img:B})=>B).filter(Boolean);if(!$.length||(C.srcs=$.map(({src:B})=>B),$.every(B=>B.hasError)))return C;const m=(Y=$.find(B=>!B.hasError))==null?void 0:Y.size,W=$.reduce((B,se)=>{var N;return B+(((N=se.size)==null?void 0:N.width)??m.width)},0),_=$.reduce((B,se)=>{var N;return B+(((N=se.size)==null?void 0:N.height)??m.height)},0)/$.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&w/W<v/_?(C.width=Math.min(w,W),C.height=_*C.width/W):C.height=Math.min(v,_),C})}),d=ae(()=>{const w=n.isVertical?"width":"height";return u.value.map(v=>v[w]).filter(Boolean).sort((v,z)=>z-v)[0]});function h({indexes:w}){const v=w[w.length-1];v!==void 0&&c.onPageVisible(v)}function x(w){if(!n.isLongStrip){const v=n.isVertical?l.height.value:l.width.value,j=(n.isVertical?w.clientY:n.isRTL?v-w.clientX:w.clientX)/v;if(j<=.2&&n.pageIndex>0){o("prev");return}else if(j>=.8&&n.pageIndex<n.totalImgs){o("next");return}}o("click")}return(w,v)=>{const z=pr,j=nl,re=tl;return R(),xe(re,{ref_key:"root",ref:r,"model-value":w.zoom,"page-index":w.pageIndex,class:Oe(["reader-body",{"reader-body--long-strip":w.isLongStrip,"reader-body--pages":!w.isLongStrip,"reader-body--vertical":w.isVertical,"reader-body--rtl":w.isRTL,"reader-body--idle":w.idle,"reader-body--first":!w.isLongStrip&&w.pageIndex==0,"reader-body--last":!w.isLongStrip&&w.pageIndex==w.totalImgs}]),"play-controller":w.playController,horizontal:!w.isVertical,rtl:w.isRTL,"touch-device":w.touchDevice,busy:w.busy,"long-strip":w.isLongStrip,style:Be({"--gap":`${a.value}em`,"--space-top":(w.spaceTop||0)+"px","--screen-width-em":te(l).width.value+"em","--screen-height-em":te(l).height.value+"em",...w.isLongStrip?{"--max-size-em":d.value+"em"}:{}}),"onUpdate:modelValue":v[0]||(v[0]=C=>o("update:zoom",C)),onDragEnd:v[1]||(v[1]=()=>o("dragEnd")),onClick:x,onScroll:te(c).onScroll},{default:fe(()=>[(R(!0),Z(Ie,null,gn(u.value,C=>(R(),xe(j,so({key:w.direction+"_"+C.indexes[0],"data-index":C.indexes[0]},C.indexes.length>1?{"data-index2":C.indexes[1]}:{},{onVisible:()=>h(C)}),{default:fe(({visible:$})=>{var S;return[!((S=C.srcs)!=null&&S.length)||C.isLoading?(R(),Z("div",Dd,[_t(Q(z,null,null,512),[[is,$]])])):C.srcs.length==1?(R(),Z("img",{key:1,src:C.srcs[0],style:Be({height:C.height!==void 0?C.height+"em":""})},null,12,Rd)):(R(),Z("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":w.isRTL}]),style:Be({width:C.width!==void 0?C.width+"em":"",height:C.height!==void 0?C.height+"em":""})},[(R(!0),Z(Ie,null,gn(C.srcs,m=>(R(),Z("div",{key:m},[X("img",{src:m},null,8,Vd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":w.totalImgs},[$e(w.$slots,"end")],8,Nd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:100vh}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:100vw}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--first:before,.reader-body--pages.reader-body--last:after{cursor:default}.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).reader-body--rtl:before{right:0}.reader-body--pages:not(.reader-body--vertical).reader-body--rtl:after,.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):before{left:0}.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):after{right:0}.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)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
25
- `]]]),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),Fd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Wd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Kd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},rl=we(Te({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=G(null),r=G(null),i=G(!1),s=G(!1),l=G(3);return tt(()=>{let a;wr(r,c=>{s.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),wr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),at(()=>a&&clearInterval(a))}),(a,c)=>(R(),Z("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[_t(X("div",Fd,[a.hasNext?(R(),Z("div",Wd,[s.value?(R(),Z("div",Kd)):Ae("",!0),_t((R(),Z("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=ot(()=>n("next"),["stop"]))},[Et(" Next in "+Je(l.value),1)])),[[te(sn)]])])):Ae("",!0),_t((R(),Z("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=ot(()=>n("hide"),["stop"]))},[Et(" Hide ")])),[[te(sn)]])],512),[[is,i.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
26
- `]]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"}));async function Tn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await Tn(e-1,t,n);r(i)},t)})}function ln(e=0){return new Promise(t=>setTimeout(t,e))}const il=3;function Yd(e){var P,J,y,H;const t=((J=(P=e.raw.value)==null?void 0:P.imgs)==null?void 0:J.filter(Boolean))??[];let n=!!t.length,o=t.map(O=>({src:O}));const r=an({}),i=[],s=G((y=e.raw.value)==null?void 0:y.isWebtoon),l=G((H=e.raw.value)==null?void 0:H.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,d=!1,h=!1,x=0,w=0,v,z=e.isAutoShow!==!1?e.page.value:n?Gd(t):void 0,j=!1;const re=We(m,50),C=()=>{j?re():(j=!0,m())};n?C():B(),_e(()=>{var O;return(O=e.raw.value)==null?void 0:O.imgs},O=>{O!=null&&O.length&&O.length!==o.length&&(n=!0,S(O.map(K=>({src:K}))))}),at(()=>{u=!1,i.forEach(O=>URL.revokeObjectURL(O))}),Gn(()=>{d&&mo({contentEl:v,images:o,page:e.page.value})});function $(){var ne,ce,ge,ue;if(d||s.value===void 0||z===void 0)return;const O=Math.max(0,Math.min(z,o.length)),K=o.length-1,M=Math.min(Math.floor(O),K);if(M>=1){const Se=(ne=o[M])==null?void 0:ne.src;if(!Se){e.isAutoShow&&mo({contentEl:v,images:o,page:M});return}const Ee=(ce=o[M-1])==null?void 0:ce.src;if(Ee&&!((ge=r[Ee])!=null&&ge.size)||!((ue=r[Se])!=null&&ue.size))return}if(d)return;d=!0,e.onReady(O);let D=!0;_e(()=>Math.floor(e.page.value),(Se,Ee)=>{mo({images:o,page:Se,smooth:c,isScrollDown:Ee===void 0||Se>Ee,skipIfVisible:D}),D=!1,Ee??(Ee=-1),Se!==Ee&&(x=Math.max(0,x-Math.abs(Se-Ee))),C()},{immediate:!0})}function S(O){(O.length!==o.length||O.some((M,D)=>{const ne=o[D];return(ne==null?void 0:ne.el)!==(M==null?void 0:M.el)||(ne==null?void 0:ne.src)!==(M==null?void 0:M.src)}))&&(o=O,e.isAutoShow===!1&&z===void 0&&(z=ll(O)),C())}async function m(){if(!u)return;const O=async M=>{x++,W(o[M],M).then(()=>{x--,re()}),await ln()},K=Math.max(0,Math.min(o.length-1,Math.floor(e.page.value-1)));for(let M=K;M<o.length;M++){if(x>=il)return;await O(M)}for(let M=K-1;M>=0;M--){if(x>=il)return;await O(M)}}async function W(O,K){const M=O.el;let D=O.src;if(!M&&!D||D&&r[D])return;const ne=M instanceof HTMLImageElement,ce=M instanceof HTMLCanvasElement;if(M){if(M._tkLoadId_===a)return;if(M._tkLoadId_=a,ne){const ue=()=>_(M);M.addEventListener("load",ue),at(()=>M.removeEventListener("load",ue))}}if(ne&&!D){if(D=go(M),!D)return;O.src=D}else ce&&!D&&(D=await sl(M),D&&i.push(D));if(!D)return;const ge=ne&&D.startsWith("blob");ge&&!M.complete||(r[D]={src:D,isLoading:!0,hasError:!1},ge&&c&&await ln(300),Y({imgEl:ne?M:void 0,src:D,index:K}))}async function _(O){if(!u)return;const K=o.findIndex(D=>D.el===O);if(K===-1)return;const M=go(O);M&&(!M.startsWith("blob")&&o[K].src===M||(o[K].src=M,r[M]??(r[M]={src:M,isLoading:!0,hasError:!1}),Y({imgEl:O,src:M,index:K})))}async function Y({imgEl:O,src:K,index:M}){const D=O?await Xd(O,K):K;if(!D)return;O&&D!==K&&i.push(D);const ne=await Zd(D,O),ce=!!ne&&(ne.width<200||ne.height<200);if(r[K]={src:D,size:ne,isLoading:!1,hasError:!ne,invalid:ce},ne&&!s.value&&M>Math.min(1,o.length-3)&&M<Math.max(o.length-2,3)){const ge=ne.height/ne.width,ue=ge>2||ge<.5,Se=ge>1.6||ge<.6;s.value!==ue&&(s.value=ue),l.value!==Se&&(l.value=Se)}$()}function B(){var ne;const O=We(()=>{v&&N(v)},100),K=new MutationObserver(O),M=(ne=e.spec)!=null&&ne.imgDivs?void 0:(()=>{let ce=window.innerWidth;return new ResizeObserver(We(()=>{const ge=window.innerWidth;if(ge!==ce){ce=ge;return}O()},50))})();Gn(async()=>{K.disconnect(),M==null||M.disconnect()});let D=!1;se(ce=>{v!==ce&&(v=ce,K.disconnect(),M==null||M.disconnect(),K.observe(v,{childList:!0,subtree:!0}),M==null||M.observe(v),D?O():(D=!0,N(v)))})}async function se(O){var ge;const K=(ge=e.spec)==null?void 0:ge.content;if(!K){O(document.body);return}const M=await qd(e.spec);let D=K?await Tn(M?100:1,10,()=>document.querySelector(K)):void 0;if(!D)return;O(D);let ne=0;const ce=async()=>{if(u&&!(D!=null&&D.isConnected)&&!n){if(ne=0,D=await Tn(50,20,()=>{const ue=document.querySelector(K);return ue!=null&&ue.isConnected&&ue!==D?ue:void 0}),!D)return;O(D)}!u||n||++ne>=10||setTimeout(ce,200)};setTimeout(ce,200)}async function N(O){var ne;if(!u||!O.isConnected||n)return;const K=Date.now();w=K;const M=(ne=e.spec)==null?void 0:ne.imgDivs,D=M?await ie(O,M):pe(O);if(!(w!==K||!O.isConnected||!u||n)){if(!e.raw.value&&!D.length){e.onError("no_img");return}S(D)}}async function ie(O,K){const M=Array.from(O.querySelectorAll(K)),D=new Map,ne=M.map(ce=>{const ge=ce.querySelectorAll("img,canvas");for(const ue of ge)if(xr(ue,D)){if(ue instanceof HTMLCanvasElement){if(al(ue))return{el:ue,parentEl:ce}}else if(ue instanceof HTMLImageElement&&cl(ue)){const Se=go(ue);return{el:ue,src:Se,parentEl:ce}}}return{parentEl:ce}});return!h&&e.isAutoShow!==!1&&e.page.value&&(h=!0,mo({contentEl:O,images:ne,page:e.page.value,skipIfVisible:!0}),await ln(1)),ne}function pe(O){const K=[],M={},D=new Map;return Array.from(O.querySelectorAll("img,canvas")).forEach(ce=>{if(xr(ce,D)){if(ce instanceof HTMLCanvasElement)al(ce)&&K.push({el:ce});else if(ce instanceof HTMLImageElement&&cl(ce)){const ge=go(ce);if(ge){const ue=M[ge];if(ue!==void 0&&ue!==-1){K.splice(ue,1);return}M[ge]=K.length}K.push({el:ce,src:ge})}}}),K}return{asyncImgs:ae(()=>{Object.values(r);const O=[];return o.forEach(({src:K,parentEl:M})=>{const D=K?r[K]:void 0;(K&&!(D!=null&&D.invalid)||M)&&O.push(D)}),O}),isWebtoon:ae(()=>s.value??!1),maybeWebtoon:ae(()=>l.value??!1)}}async function qd(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await Tn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const i=s=>s.preventDefault();r.addEventListener("click",i),at(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await ln(),!0}function sl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function Xd(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await sl(o)}async function Zd(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}function Gd(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>({el:o}));return ll(n)}function ll(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function al(e){return e.isConnected&&e.width>=200&&e.height>=200}function cl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function go(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.split(" ")[0].replace(/(\n|\t)/g," ").trim()}}function xr(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&o.visibility!=="hidden"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=xr(e.parentElement,t);return t.set(e,i),i}function mo({contentEl:e,images:t,page:n,smooth:o,skipIfVisible:r,isScrollDown:i}){const s=Math.floor(n),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??document.querySelector(`img[src^="${l.src}"]`);if(!a)return;const c=o?"smooth":"instant";if(n>=t.length){a==null||a.scrollIntoView({block:"end",behavior:c});return}const d=a.getBoundingClientRect();if(r&&d.top<=0&&d.top+d.height>0)return;a.scrollIntoView({block:i?"end":"start",behavior:c});const h=n%1;if(h){const x=h*d.height,w=Sr(e??document.documentElement);setTimeout(()=>w==null?void 0:w.scrollBy({top:x}))}}function Sr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?Sr(document.documentElement)??e:e:Sr(e.parentElement??void 0)}function Jd(e,t){return ae(()=>t.value?ul(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function ul(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[n[0]]:n;return[r.map((i,s)=>({img:i,index:t+s})),...ul(e.slice(r.length),t+r.length)]}function Qd(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=G(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ae({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function ep(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Cr=40;function tp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:d,onFinished:h}){let x=!1,w=!1,v=!1,z;const j=We(Y,300),re=Vs(()=>{Y(),j()},300),C=We(m,50);async function $(){W(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function S(){var y;w=!0,d(),B(),(y=l.value)==null||y.addEventListener("scroll",re),setTimeout(()=>{const{width:H,height:O}=xd();_e(H,()=>{r.value&&C()}),_e(O,()=>{r.value||C()}),_e(n,m),_e(t,m)},300)}async function m(){if(!w||x)return;x=!0,await vt();const y=e.value;if(N()===y){x=!1;return}W(y)}function W(y,{smooth:H,ensureLastImgVisibility:O=!1}={smooth:!1}){const K=l.value;if(!K)return;x=!0;const M=async()=>{await vt(),x=!1,w||S()},D=Math.floor(y),ne=K.querySelector(`[data-index="${D}"],[data-index2="${D}"]`);if(!ne){M();return}c(async()=>{await _(K,!o.value&&H,async()=>{await J(K,ne,{smooth:H,page:y,ensureLastImgVisibility:O})}),await M()})}async function _(y,H,O){H&&y.style.setProperty("scroll-snap-type","none"),await O(),H&&y.style.removeProperty("scroll-snap-type")}function Y(){if(x)return;const y=N();y!==void 0&&y!==e.value&&u(y),B()}function B(){v||!v&&se()&&(v=!0,h())}function se(){const y=l.value;if(!y)return!1;const H=o.value?a.value?3:!r.value&&y.clientWidth>y.clientHeight?2.25:2.5:2;return r.value?y.scrollHeight-y.scrollTop<y.clientHeight*H:y.scrollWidth-(i.value?-y.scrollLeft:y.scrollLeft)<y.clientWidth*H}function N(){const y=ie();return y?(+y.getAttribute("data-index")||0)+(o.value?pe(y):0):void 0}function ie(){var H;if(z??(z=l.value.getRootNode()),!z)return;const y=(H=z.elementsFromPoint)==null?void 0:H.call(z,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-Cr:Cr,r.value&&o.value?s.value||Cr:window.innerHeight/2);if(y)for(let O=0;O<y.length;O++){const K=y[O];if(K.hasAttribute("data-index"))return K;if(K===l.value)break}}function pe(y){const H=y.getBoundingClientRect();return r.value?Math.abs(H.top-s.value)/H.height:i.value?Math.max(0,H.right-l.value.clientWidth)/H.width:Math.abs(H.left)/H.width}let P=!1;async function J(y,H,O){if(P)return;const K=H.getBoundingClientRect();if(!o.value){if(r.value){if(K.top<=0&&K.bottom>=y.clientHeight)return}else if(K.left<=0&&K.right>=y.clientWidth)return}P=!0;const M=r.value?y.scrollTop:y.scrollLeft,D=O.page,ne=o.value?D%1:0,ce=await Tn(30,10,async()=>{await ln();let Re;if(!(H.offsetHeight<10))return o.value?r.value?Re=H.offsetTop+ne*H.offsetHeight-s.value:i.value?Re=H.offsetLeft-y.clientWidth+H.offsetWidth-ne*H.offsetWidth:Re=H.offsetLeft+ne*H.offsetWidth:r.value?Re=H.offsetTop+(K.top>0?0:K.height-y.clientHeight):Re=H.offsetLeft+(K.left>0?0:K.width-y.clientWidth),D>.5&&Math.abs(Re)<100?void 0:Re})??0,ge=O.ensureLastImgVisibility?r.value?Math.min(ce,y.scrollHeight-y.clientHeight*2):i.value?Math.max(ce,-(y.scrollWidth-y.clientWidth*2)):Math.min(ce,y.scrollWidth-y.clientWidth*2):ce;if(!O.smooth){r.value?y.scrollTop=ge:y.scrollLeft=ge,P=!1;return}const ue=ge-M,Se=30;let Ee=0;return new Promise(Re=>{(function dt(){const pt=np(Ee,M,ue,Se);r.value?y.scrollTop=pt:y.scrollLeft=pt,Ee++,Ee<=Se?requestAnimationFrame(dt):(Re(),P=!1)})()})}return{init:$,goToPage:W}}function np(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function op({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=G(typeof l=="string"?l==="true":e),c=ae({get:()=>a.value,set:_=>{a.value=_,sessionStorage.setItem("tk:playing",_?"true":"false")}}),u=G(!1);let d,h;const x=We(m,100),w=We(()=>{u.value=!0},t?2e3:1e3),v=()=>setTimeout(()=>{u.value=!1,w()},30);v(),t||zt(window,"mousemove",v);const z=Ks();tt(()=>{_e(z,_=>{c.value&&(_==="visible"?m():h==null||h())}),_e(s,()=>j()),_e(i,_=>{_||C()})});async function j(_){c.value&&(h==null||h()),_&&(await vt(),await _()),c.value&&x()}function re(){c.value?C():$()}function C(){c.value&&(c.value=!1,h==null||h(),v())}function $(){!c.value&&i.value&&(c.value=!0,m(),v())}function S(){h==null||h()}function m(){const _=n.value;if(!c.value||!_)return;const Y=o.value?_.scrollHeight-_.clientHeight:_.scrollWidth-_.clientWidth,B=W();if(Y<=B){C();return}h=()=>{d=Date.now(),h=void 0};const se=Date.now();d=se;const N=.05*s.value,ie=o.value?"scrollTop":"scrollLeft";let pe=Date.now(),P=0;const J=()=>{if(d!==se)return;const y=Date.now(),H=y-pe;pe=y;const O=N*H+P;O>=1?(P=O%1,_[ie]+=(O-P)*(r.value?-1:1)):P=O,setTimeout(J,1)};J()}function W(){const _=n.value;return o.value?_.scrollTop:r.value?-_.scrollLeft:_.scrollLeft}return{isPlaying:c,isIdle:u,toggle:re,play:$,pause:S,resume:m,stop:C,interfere:j,awake:v}}function rp(e){var x,w,v,z,j,re;let t=-1,n=(x=e.prev)==null?void 0:x.slug,o=(w=e.next)==null?void 0:w.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,d=((v=l.chapters)==null?void 0:v.filter(C=>C.slug))??[],h=d.length>1?d:[];if(h.length){if(t=h.findIndex(C=>C.slug===e.slug),t===-1&&(t=h.findIndex(C=>(C.vol??C.inferVol)===u&&C.chap===s)),t===-1&&(t=h.findIndex(C=>a.startsWith(`${C.slug}-`)&&a.length-C.slug.length>3)),t!==-1)n??(n=(z=h[t+1])==null?void 0:z.slug),o??(o=(j=h[t-1])==null?void 0:j.slug);else if(!n&&!o){const C=h.findIndex($=>{const S=$.vol??$.inferVol;return u===void 0||S===void 0||u===S?$.chap<s:S<u});C!==-1?(n=h[C].slug,o=(re=h[C-1])==null?void 0:re.slug):o=h[h.length-1].slug}}return{activeIndex:t,activeLabel:fl({vol:r,chap:s}),chapters:h.map(C=>({label:fl(C),path:kr(c,C.slug)})),prevPath:kr(c,n),nextPath:kr(c,o)}}function kr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function fl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const ip={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},dl=we(Te({inheritAttrs:!1,__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i,s=-1;const l=G(!1),a=G(!1),c=wu({touchDevice:n.touchDevice}),u=Qd(n.page,n.isAutoShow),d=ae(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:x,maybeWebtoon:w}=Yd({raw:ae(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:d,async onReady(g){ce(g),l.value=!0},onError:()=>{o("error"),T()}}),{direction:v,style:z,isRTL:j,isDouble:re,isVertical:C,isLongStrip:$,gap:S,speed:m,zoom:W}=cf({titleName:ae(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:x,maybeWebtoon:w,defaultStyle:n.readerStyle,defaultDirection:n.direction}),_=Jd(h,re),Y=ae(()=>u.value>=h.value.length),B=ae(()=>n.raw?rp(n.raw):void 0),se=ae(()=>{var g,k;return j.value?(g=B.value)==null?void 0:g.nextPath:(k=B.value)==null?void 0:k.prevPath}),N=ae(()=>{var g,k;return j.value?(g=B.value)==null?void 0:g.prevPath:(k=B.value)==null?void 0:k.nextPath}),ie=G(null),pe=G(null),P=G(!1),J=G(!1),y=op({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var g;return(g=ie.value)==null?void 0:g.$el}),speed:m,isRTL:j,isVertical:C,isLongStrip:$}),H=ae(()=>!n.touchDevice&&y.isIdle.value&&!c.value),O=ae({get(){return W.value},set(g){y.interfere(()=>{W.value=g})}}),K=tp({page:u,style:z,direction:v,isLongStrip:$,isVertical:C,isRTL:j,spaceTop:d,isWebtoon:x,scrollEl:ae(()=>{var g;return(g=ie.value)==null?void 0:g.$el}),interferePlayer:g=>y.interfere(g),onChangedPage:ce,onInitialized(){o("ready"),a.value=!0,n.touchDevice&&(i=ge())},onFinished:()=>o("finished")}),M=ae(()=>Math.floor(u.value)),D=()=>y.interfere(()=>ln(100));Ou().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const k=$.value&&C.value,q=$.value&&!C.value,oe=!$.value&&C.value,he=!$.value&&!C.value;switch(g.key){case" ":g.preventDefault(),$.value?(U(!1),y.toggle()):b();break;case"ArrowUp":case"PageUp":k?D():oe&&M.value!==0&&(g.preventDefault(),p());break;case"ArrowDown":case"PageDown":k?D():oe&&!Y.value&&(g.preventDefault(),b());break;case"ArrowLeft":q?D():he?(g.preventDefault(),En()):C.value&&Re();break;case"ArrowRight":q?D():he?(g.preventDefault(),f()):C.value&&Ee();break}},onKeyUp:g=>{switch(g.key){case"f":A();break;case"t":F();break;case"h":U();break}}}),zt("fullscreenchange",()=>{P.value=!!document.fullscreenElement}),_e(y.isPlaying,g=>{g||L(!1),o("playingChanged",g)}),_e(y.isIdle,g=>{y.isPlaying.value&&L(g)}),_e(c,g=>{!g&&y.isIdle.value?y.awake():g&&n.fullScreen&&L()});function ce(g){if(u.value===g)return;const k=h.value.length;if(g<0||g>=k+1)return;const q=u.value;u.value=g;const oe=Math.floor(g*100)/100;oe!==s&&(s=oe,o("pageChanged",oe)),g>=k?(L(!1),y.stop()):g<.01?(L(!1),y.awake()):n.touchDevice&&!r&&($.value?i!==void 0&&ge()-i>300&&L(!0):Math.abs(q-g)===1&&L(!0))}function ge(){var k;const g=(k=ie.value)==null?void 0:k.$el;return g?C.value?g.scrollTop:j.value?-g.scrollLeft:g.scrollLeft:0}function ue(){!n.touchDevice&&!$.value&&K.goToPage(M.value,{smooth:!0})}function Se(){if(y.isPlaying.value){!n.fullScreen||!n.touchDevice?y.stop():y.awake();return}L()}function Ee(){var g;pt((g=B.value)==null?void 0:g.nextPath)}function Re(){var g;pt((g=B.value)==null?void 0:g.prevPath)}function dt(g){var q,oe,he;const k=(he=(oe=(q=B.value)==null?void 0:q.chapters)==null?void 0:oe[g])==null?void 0:he.path;k&&pt(k)}function pt(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function En(){j.value?b():p()}function f(){j.value?p():b()}function p(){var q;const g=_.value,k=Y.value?g[g.length-1][0].index:(q=g[I()-1])==null?void 0:q[0].index;k!==void 0?K.goToPage(k):Re()}function b(){var g,k;if(Y.value)Ee();else{const q=((k=(g=_.value[I()+1])==null?void 0:g[0])==null?void 0:k.index)??h.value.length;K.goToPage(q)}}function I(){const g=M.value,k=_.value.findIndex(q=>q.some(({index:oe})=>oe===g));return k===-1?_.value.length-1:k}function T(){ep(),y.stop(),o("dispose")}async function L(g){if(c.value&&!n.fullScreen)return;r=!0;const k=typeof g=="boolean"?g:!n.fullScreen;o("fullScreenChanged",k),k&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100)}function F(){n.entryId?E():V()}function A(){var g,k;document.fullscreenElement?document.exitFullscreen():(k=(g=pe.value)==null?void 0:g.$el)==null||k.requestFullscreen()}function V(){y.stop(),o("addEntry")}function E(){y.stop(),o("openEntry",n.entryId)}function U(g){J.value!==g&&(J.value=!J.value,J.value&&y.isPlaying.value&&y.stop())}return(g,k)=>{const q=rl,oe=ol,he=el,be=Js,Pe=Gs,Ze=Zs,jt=Bs,ht=uo,Zt=js,vo=vr,Ve=zs,rt=As,_o=Ls,mp=Os,vp=Ps,_p=Es,bp=$s,yp=Ts,wp=gr,xp=hr,Sp=bs,Cp=vs;return g.immediate||l.value?(R(),xe(Cp,{key:0,ref_key:"root",ref:pe,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:H.value,"space-top":d.value,rtl:te(j),onClick:k[10]||(k[10]=ot(()=>{},["stop"]))},Si({settings:fe(()=>{var yt;return[Q(yp,{"reader-style":te(z),"onUpdate:readerStyle":k[3]||(k[3]=wt=>Me(z)?z.value=wt:null),direction:te(v),"onUpdate:direction":k[4]||(k[4]=wt=>Me(v)?v.value=wt:null),gap:te(S),"onUpdate:gap":k[5]||(k[5]=wt=>Me(S)?S.value=wt:null),speed:te(m),"onUpdate:speed":k[6]||(k[6]=wt=>Me(m)?m.value=wt:null),zoom:O.value,"onUpdate:zoom":k[7]||(k[7]=wt=>O.value=wt),name:(yt=g.raw)==null?void 0:yt.title.name,webtoon:te(x),disabled:!l.value,onHelp:U},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":fe(()=>[Q(on,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:fe(()=>[Q(Sp,{zoom:O.value,onClick:k[9]||(k[9]=ot(()=>O.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:fe(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Be({width:`${te(u)/(te(h).length-1)*100}%`})},null,4)]),default:fe(()=>[l.value?(R(),xe(oe,{key:0,ref_key:"body",ref:ie,zoom:O.value,"onUpdate:zoom":k[0]||(k[0]=yt=>O.value=yt),"page-index":M.value,pages:te(_),"total-imgs":te(h).length,direction:te(v),gap:te(S),"is-long-strip":te($),isRTL:te(j),"is-vertical":te(C),"space-top":d.value,busy:te(c),idle:H.value,"play-controller":te(y),"touch-device":g.touchDevice,onVnodeMounted:te(K).init,onPrev:p,onNext:b,onClick:Se,onDragEnd:ue,onWheelPassive:k[1]||(k[1]=()=>te(y).interfere())},Si({_:2},[l.value&&te(h).length?{name:"end",fn:fe(()=>{var yt;return[Q(q,{"has-next":!!((yt=B.value)!=null&&yt.nextPath),onNext:Ee,onHide:T},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","onVnodeMounted"])):Ae("",!0),a.value&&!Y.value&&!g.tourEnabled?(R(),xe(he,{key:1,direction:te(v)},null,8,["direction"])):Ae("",!0),a.value&&!Y.value?(R(),xe(be,{key:2,playing:!!te(y).isPlaying.value},null,8,["playing"])):Ae("",!0),J.value?(R(),xe(Pe,{key:3,"touch-device":g.touchDevice,onHide:U},null,8,["touch-device"])):Ae("",!0),g.tourEnabled?(R(),xe(Ze,{key:4,onHide:k[2]||(k[2]=()=>o("tourEnabledChanged",!1))})):Ae("",!0)]),_:2},[g.raw?{name:"back",fn:fe(()=>[Q(ht,{href:g.raw.title.url,title:"Back to manga"},{default:fe(()=>[Q(jt)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:fe(()=>[Q(ht,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:T},{default:fe(()=>[Q(Zt)]),_:1})]),key:"1"},B.value?{name:"chapter-nav",fn:fe(()=>[Q(vo,{modelValue:B.value.activeIndex,label:B.value.activeLabel,title:"Select chapter",items:B.value.chapters,"onUpdate:modelValue":dt},{item:fe(({item:yt})=>[Et(Je(yt.label),1)]),_:1},8,["modelValue","label","items"]),se.value||N.value?(R(),Z("div",ip,[Q(ht,{title:`${te(j)?"Next":"Prev"} chapter (←)`,href:se.value,disabled:!se.value,class:"!rounded-r-none"},{default:fe(()=>[Q(Ve)]),_:1},8,["title","href","disabled"]),Q(ht,{title:`${te(j)?"Prev":"Next"} chapter (→)`,href:N.value,disabled:!N.value,class:"!rounded-l-none"},{default:fe(()=>[Q(rt)]),_:1},8,["title","href","disabled"])])):Ae("",!0)]),key:"2"}:void 0,te(_).length?{name:"page-nav",fn:fe(()=>[Q(_o,{"model-value":M.value,disabled:!a.value,pages:te(_),"total-imgs":te(h).length,"onUpdate:modelValue":te(K).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:fe(()=>[Q(ht,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:F},{default:fe(()=>[g.entryId?(R(),xe(mp,{key:0})):(R(),xe(vp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:fe(()=>[Q(ht,{title:`${P.value?"Exit":"Enter"} fullscreen (F)`,onClick:A},{default:fe(()=>[P.value?(R(),xe(_p,{key:0})):(R(),xe(bp,{key:1}))]),_:1},8,["title"])]),key:"5"},te($)?{name:"play",fn:fe(()=>[Q(ht,{"data-tour":"Press here to play like a video",title:`${te(y).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:k[8]||(k[8]=()=>te(y).toggle())},{default:fe(()=>[te(y).isPlaying.value?(R(),xe(wp,{key:0})):(R(),xe(xp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Ae("",!0)}}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
27
- `]]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),lp={},ap={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},cp=[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 up(e,t){return R(),Z("svg",ap,cp)}const fp=Object.freeze(Object.defineProperty({__proto__:null,default:we(lp,[["render",up]])},Symbol.toStringTag,{value:"Module"})),dp=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second+*,html.gear-second body gear-second+*+*,html.gear-second body gear-second+*+*+*,html.gear-second body gear-second+*+*+*+*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}
28
- `,$n="gear-second",Ir={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,isGuest:void 0,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},Xe={promise:void 0,data:an({...Ir})};async function pp(e){return Xe.promise?(Xe.data.raw=e.raw,await Xe.promise):(Xe.promise=new Promise(t=>{let n=!1,o=!1,r;const i=!!e.spaceTop||!!e.isAutoShow&&!!e.page,s=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove($n),Object.assign(Xe.data,Ir),Xe.promise=void 0)};Object.assign(Xe.data,Ir,e,{immediate:i,onReady(){i||(l(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):a()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;Xe.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Xe.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Xe.data.tourEnabled=c}}),hp().then(()=>{if(n){a();return}r=document.createElement($n),document.documentElement.classList.add($n),i?(document.body.appendChild(r),setTimeout(l)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function l(){o||(o=!0,t({triggerDoubleTap:(c,u)=>Ad(c,u),updateArgs(c){Object.assign(Xe.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Xe.promise)}async function hp(){if(window.customElements.get($n))return;const e=document.createElement("style");e.appendChild(document.createTextNode(dp)),document.head.appendChild(e);const t=zc({styles:[await gp()],data:()=>({readerData:Xe.data}),render(){return Gi(dl,this.readerData)}});window.customElements.define($n,t)}async function gp(){const e=Object.assign({"./TrackkunReader.vue":sp,"./components/AutoNext.vue":Ud,"./components/BottomSheet.vue":zu,"./components/ButtonDropdown.vue":Nf,"./components/ButtonIcon.vue":Cu,"./components/ButtonReaderSettings.vue":ff,"./components/ButtonResetZoom.vue":uu,"./components/DirectionToast.vue":Md,"./components/HelpScreen.vue":kd,"./components/InputPercentage.vue":Du,"./components/InputSelect.vue":Fu,"./components/IntersectionWrapper.vue":jd,"./components/LoadingIndicator.vue":qc,"./components/PageNav.vue":Hf,"./components/PauseToast.vue":Id,"./components/ReaderBody.vue":Hd,"./components/ReaderLayout.vue":tu,"./components/ReaderTour.vue":Sd,"./components/TableField.vue":Nu,"./components/ZoomWrapper.vue":zd,"./components/icons/IconBack.vue":ad,"./components/icons/IconBookmarkNew.vue":If,"./components/icons/IconBookmarked.vue":Of,"./components/icons/IconChevronLeft.vue":Jf,"./components/icons/IconChevronRight.vue":Yf,"./components/icons/IconClose.vue":Eu,"./components/icons/IconExclamationCircle.vue":fp,"./components/icons/IconFullscreen.vue":mf,"./components/icons/IconFullscreenExit.vue":wf,"./components/icons/IconHelp.vue":qu,"./components/icons/IconNext.vue":Od,"./components/icons/IconPause.vue":yu,"./components/icons/IconPlay.vue":gu,"./components/icons/IconReaderExit.vue":od,"./components/icons/IconSettings.vue":Qu,"./components/icons/IconTriangle.vue":jf,"./components/icons/IconZoom.vue":su}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return pp});
25
+ `]]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Td={},$d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ed=[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 Pd(e,t){return R(),Z("svg",$d,Ed)}const Qs=we(Td,[["render",Pd]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),el=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=G(typeof n!="string"||+n!==t.direction),r=We(()=>o.value=!1,1250);_e(()=>t.direction,()=>{i(),o.value=!0,r()}),tt(()=>{i(),r();let s;const l=Ks();_e(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=Qs;return R(),xe(on,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:fe(()=>[o.value?(R(),Z("div",{key:0,class:Oe(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===te(ft).vertical,"rotate-180":s.direction===te(ft).rtl}])},[Q(a)],2)):Ae("",!0)]),_:1})}}}),Md=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),ho=[];function Ld(e){ho.push(e),it(()=>{const t=ho.indexOf(e);t!==-1&&ho.splice(t,1)})}function Ad(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;ho.forEach(s=>s(r,i))}const tl=Te({__name:"ZoomWrapper",props:Ht({pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Ht(["dragEnd","click"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=nn(e,"modelValue"),i=G(null),s=G(Math.min(kn,Math.max(Cn,r.value))),l=G(!1),a=G(!1),c=G(!1);_e(r,P=>pe(P)),tt(()=>{n.touchDevice?(zt(i,"touchstart",j),!navigator.userAgent.toLowerCase().includes("android")&&Ld(B)):(zt(i,"mousedown",x),zt(window,"wheel",S))}),fo({onKeyDown:P=>{var J;if(!n.busy&&((J=i.value)==null||J.focus(),!(P.key==="Meta"||P.key==="Control")&&(P.ctrlKey||P.metaKey)))switch(P.key){case"0":pe(1);break;case"-":pe(s.value-.2),P.preventDefault();break;case"=":case"+":pe(s.value+.2),P.preventDefault();break}}});function u(P){a.value!==P&&(a.value=P,P?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let d={x:0,y:0},h={x:0,y:0};function x(P){P.button===0&&(d={x:P.clientX,y:P.clientY},h={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",w),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",w),setTimeout(()=>u(!1))},{once:!0}),P.preventDefault(),P.stopPropagation())}function w(P){u(!0);const J=P.clientX-d.x,y=P.clientY-d.y,H=i.value;H.scrollLeft=h.x-J,H.scrollTop=h.y-y}let v=!1,z={distance:0,zoom:s.value,x:0,y:0};function j(P){n.busy||(v=P.touches.length===2,v&&(u(!0),P.stopPropagation(),P.preventDefault(),z={distance:m(P),zoom:s.value,x:(P.touches[0].clientX+P.touches[1].clientX)/2,y:(P.touches[0].clientY+P.touches[1].clientY)/2}),(v||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",C),window.addEventListener("touchend",re,{once:!0})))}function re(){if(window.removeEventListener("touchmove",C),v){u(!1),v=!1;return}if(!a.value)return;const P=We(()=>{u(!1),i.value.removeEventListener("scroll",y)},200),J=setTimeout(P,200);i.value.addEventListener("scroll",y);function y(){clearTimeout(J),P()}}function C(P){if(u(!0),v){P.stopPropagation(),P.preventDefault();const y=m(P)/z.distance;pe(Math.ceil(y*z.zoom*100)/100,z)}}const $=We(()=>l.value=!1,100);function S(P){if(!n.busy){if(P.ctrlKey||P.metaKey){P.stopPropagation(),P.preventDefault();const J=Math.ceil((s.value+P.deltaY*-.01)*100)/100;pe(J,{x:P.clientX,y:P.clientY});return}n.horizontal&&(l.value||(l.value=!0),$(),P.deltaY&&(i.value&&(i.value.scrollLeft+=P.deltaY*(n.rtl?-1:1)),P.stopPropagation(),P.preventDefault()))}}function m(P){return Math.hypot(P.touches[0].clientX-P.touches[1].clientX,P.touches[0].clientY-P.touches[1].clientY)}let W=0,_;function Y(P){if(!a.value){if(!n.touchDevice){o("click",P);return}W++,_&&clearTimeout(_),W===2&&B(P.clientX,P.clientY),_=setTimeout(()=>{!a.value&&W===1&&o("click",P),_=void 0,W=0},300)}}function B(P,J){if(!W)return;W=0;const y=s.value===1?2:1;pe(y,{x:P,y:J})}let se;const N=We(()=>{c.value=!1,se=void 0},150);function ie(){if(!c.value){const P=i.value;if(!P)return;const J=P.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;J&&(se={el:J,rect:J.getBoundingClientRect()},c.value=!0)}if(se)return N(),se}async function pe(P,J){const y=i.value,H=Math.min(kn,Math.max(Cn,P));if(!y||s.value===H)return;const O=ie();if(!O)return;const K=(J==null?void 0:J.x)??y.clientWidth/2,M=(J==null?void 0:J.y)??y.clientHeight/2;s.value=H,r.value=H,await vt();const{el:D,rect:ne}=O,ce=D.offsetWidth/ne.width,ge=D.offsetHeight/ne.height;y.scrollLeft=D.offsetLeft-ne.left*ce+K*(ce-1),y.scrollTop=D.offsetTop-ne.top*ge+M*(ge-1)}return(P,J)=>(R(),Z("div",{ref_key:"root",ref:i,tabindex:"0",class:Oe(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!P.longStrip&&(a.value||l.value||c.value),"cursor-grabbing":a.value,"overflow-hidden":c.value}]),style:Be({"font-size":`${s.value}px`}),onClick:ot(Y,["stop"])},[$e(P.$slots,"default")],6))}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),nl=Te({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=G(null),r=G(!1);return tt(async()=>{await vt();let i=!1;wr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(R(),Z("div",{ref_key:"root",ref:o},[$e(i.$slots,"default",{visible:r.value})],512))}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"}));function Bd({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=G(n),i=G(o),s=We(l,50);_e(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const Dd={key:0,class:"page--loading"},Rd=["src"],Vd=["src"],Nd=["data-index"],ol=we(Te({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,r=G(null),i=ae(()=>{var w;return(w=r.value)==null?void 0:w.$el}),s=G(null),l=yr(i),a=ae(()=>{const{width:w,height:v}=l,z=n.isLongStrip?n.isVertical?w.value:v.value:Math.min(w.value,v.value);return Math.min(4,Math.max(1,Math.ceil(z/400-1)))*n.gap}),c=Bd({pageIndex:ae(()=>n.pageIndex),isLongStrip:ae(()=>n.isLongStrip)}),u=ae(()=>{const{width:{value:w},height:{value:v}}=l;return n.pages.map(z=>{var Y;const j=z.some(B=>{var se;return(se=B.img)==null?void 0:se.isLoading}),re=z.map(B=>B.index),C={isLoading:j,indexes:re};if(j||re[re.length-1]<c.min.value-1||re[0]>c.max.value+2)return C;const $=z.map(({img:B})=>B).filter(Boolean);if(!$.length||(C.srcs=$.map(({src:B})=>B),$.every(B=>B.hasError)))return C;const m=(Y=$.find(B=>!B.hasError))==null?void 0:Y.size,W=$.reduce((B,se)=>{var N;return B+(((N=se.size)==null?void 0:N.width)??m.width)},0),_=$.reduce((B,se)=>{var N;return B+(((N=se.size)==null?void 0:N.height)??m.height)},0)/$.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&w/W<v/_?(C.width=Math.min(w,W),C.height=_*C.width/W):C.height=Math.min(v,_),C})}),d=ae(()=>{const w=n.isVertical?"width":"height";return u.value.map(v=>v[w]).filter(Boolean).sort((v,z)=>z-v)[0]});function h({indexes:w}){const v=w[w.length-1];v!==void 0&&c.onPageVisible(v)}function x(w){if(!n.isLongStrip){const v=n.isVertical?l.height.value:l.width.value,j=(n.isVertical?w.clientY:n.isRTL?v-w.clientX:w.clientX)/v;if(j<=.2&&n.pageIndex>0){o("prev");return}else if(j>=.8&&n.pageIndex<n.totalImgs){o("next");return}}o("click")}return(w,v)=>{const z=pr,j=nl,re=tl;return R(),xe(re,{ref_key:"root",ref:r,"model-value":w.zoom,"page-index":w.pageIndex,class:Oe(["reader-body",{"reader-body--long-strip":w.isLongStrip,"reader-body--pages":!w.isLongStrip,"reader-body--vertical":w.isVertical,"reader-body--rtl":w.isRTL,"reader-body--idle":w.idle,"reader-body--first":!w.isLongStrip&&w.pageIndex==0,"reader-body--last":!w.isLongStrip&&w.pageIndex==w.totalImgs}]),"play-controller":w.playController,horizontal:!w.isVertical,rtl:w.isRTL,"touch-device":w.touchDevice,busy:w.busy,"long-strip":w.isLongStrip,style:Be({"--gap":`${a.value}em`,"--space-top":(w.spaceTop||0)+"px","--screen-width-em":te(l).width.value+"em","--screen-height-em":te(l).height.value+"em",...w.isLongStrip?{"--max-size-em":d.value+"em"}:{}}),"onUpdate:modelValue":v[0]||(v[0]=C=>o("update:zoom",C)),onDragEnd:v[1]||(v[1]=()=>o("dragEnd")),onClick:x,onScroll:te(c).onScroll},{default:fe(()=>[(R(!0),Z(Ie,null,gn(u.value,C=>(R(),xe(j,so({key:w.direction+"_"+C.indexes[0],"data-index":C.indexes[0]},C.indexes.length>1?{"data-index2":C.indexes[1]}:{},{onVisible:()=>h(C)}),{default:fe(({visible:$})=>{var S;return[!((S=C.srcs)!=null&&S.length)||C.isLoading?(R(),Z("div",Dd,[_t(Q(z,null,null,512),[[is,$]])])):C.srcs.length==1?(R(),Z("img",{key:1,src:C.srcs[0],style:Be({height:C.height!==void 0?C.height+"em":""})},null,12,Rd)):(R(),Z("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":w.isRTL}]),style:Be({width:C.width!==void 0?C.width+"em":"",height:C.height!==void 0?C.height+"em":""})},[(R(!0),Z(Ie,null,gn(C.srcs,m=>(R(),Z("div",{key:m},[X("img",{src:m},null,8,Vd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":w.totalImgs},[$e(w.$slots,"end")],8,Nd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:100vh}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:100vw}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--first:before,.reader-body--pages.reader-body--last:after{cursor:default}.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).reader-body--rtl:before{right:0}.reader-body--pages:not(.reader-body--vertical).reader-body--rtl:after,.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):before{left:0}.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):after{right:0}.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)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
26
+ `]]]),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),Fd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Wd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Kd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},rl=we(Te({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=G(null),r=G(null),i=G(!1),s=G(!1),l=G(3);return tt(()=>{let a;wr(r,c=>{s.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),wr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),it(()=>a&&clearInterval(a))}),(a,c)=>(R(),Z("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[_t(X("div",Fd,[a.hasNext?(R(),Z("div",Wd,[s.value?(R(),Z("div",Kd)):Ae("",!0),_t((R(),Z("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=ot(()=>n("next"),["stop"]))},[Et(" Next in "+Je(l.value),1)])),[[te(sn)]])])):Ae("",!0),_t((R(),Z("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=ot(()=>n("hide"),["stop"]))},[Et(" Hide ")])),[[te(sn)]])],512),[[is,i.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
27
+ `]]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"}));async function Tn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await Tn(e-1,t,n);r(i)},t)})}function ln(e=0){return new Promise(t=>setTimeout(t,e))}const il=3;function Yd(e){var P,J,y,H;const t=((J=(P=e.raw.value)==null?void 0:P.imgs)==null?void 0:J.filter(Boolean))??[];let n=!!t.length,o=t.map(O=>({src:O}));const r=an({}),i=[],s=G((y=e.raw.value)==null?void 0:y.isWebtoon),l=G((H=e.raw.value)==null?void 0:H.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,d=!1,h=!1,x=0,w=0,v,z=e.isAutoShow!==!1?e.page.value:n?Gd(t):void 0,j=!1;const re=We(m,50),C=()=>{j?re():(j=!0,m())};n?C():B(),_e(()=>{var O;return(O=e.raw.value)==null?void 0:O.imgs},O=>{O!=null&&O.length&&O.length!==o.length&&(n=!0,S(O.map(K=>({src:K}))))}),it(()=>{u=!1,i.forEach(O=>URL.revokeObjectURL(O))}),Gn(()=>{d&&mo({contentEl:v,images:o,page:e.page.value})});function $(){var ne,ce,ge,ue;if(d||s.value===void 0||z===void 0)return;const O=Math.max(0,Math.min(z,o.length)),K=o.length-1,M=Math.min(Math.floor(O),K);if(M>=1){const Se=(ne=o[M])==null?void 0:ne.src;if(!Se){e.isAutoShow&&mo({contentEl:v,images:o,page:M});return}const Ee=(ce=o[M-1])==null?void 0:ce.src;if(Ee&&!((ge=r[Ee])!=null&&ge.size)||!((ue=r[Se])!=null&&ue.size))return}if(d)return;d=!0,e.onReady(O);let D=!0;_e(()=>Math.floor(e.page.value),(Se,Ee)=>{mo({images:o,page:Se,smooth:c,isScrollDown:Ee===void 0||Se>Ee,skipIfVisible:D}),D=!1,Ee??(Ee=-1),Se!==Ee&&(x=Math.max(0,x-Math.abs(Se-Ee))),C()},{immediate:!0})}function S(O){(O.length!==o.length||O.some((M,D)=>{const ne=o[D];return(ne==null?void 0:ne.el)!==(M==null?void 0:M.el)||(ne==null?void 0:ne.src)!==(M==null?void 0:M.src)}))&&(o=O,e.isAutoShow===!1&&z===void 0&&(z=ll(O)),C())}async function m(){if(!u)return;const O=async M=>{x++,W(o[M],M).then(()=>{x--,re()}),await ln()},K=Math.max(0,Math.min(o.length-1,Math.floor(e.page.value-1)));for(let M=K;M<o.length;M++){if(x>=il)return;await O(M)}for(let M=K-1;M>=0;M--){if(x>=il)return;await O(M)}}async function W(O,K){const M=O.el;let D=O.src;if(!M&&!D||D&&r[D])return;const ne=M instanceof HTMLImageElement,ce=M instanceof HTMLCanvasElement;if(M){if(M._tkLoadId_===a)return;if(M._tkLoadId_=a,ne){const ue=()=>_(M);M.addEventListener("load",ue),it(()=>M.removeEventListener("load",ue))}}if(ne&&!D){if(D=go(M),!D)return;O.src=D}else ce&&!D&&(D=await sl(M),D&&i.push(D));if(!D)return;const ge=ne&&D.startsWith("blob");ge&&!M.complete||(r[D]={src:D,isLoading:!0,hasError:!1},ge&&c&&await ln(300),Y({imgEl:ne?M:void 0,src:D,index:K}))}async function _(O){if(!u)return;const K=o.findIndex(D=>D.el===O);if(K===-1)return;const M=go(O);M&&(!M.startsWith("blob")&&o[K].src===M||(o[K].src=M,r[M]??(r[M]={src:M,isLoading:!0,hasError:!1}),Y({imgEl:O,src:M,index:K})))}async function Y({imgEl:O,src:K,index:M}){const D=O?await Xd(O,K):K;if(!D)return;O&&D!==K&&i.push(D);const ne=await Zd(D,O),ce=!!ne&&(ne.width<200||ne.height<200);if(r[K]={src:D,size:ne,isLoading:!1,hasError:!ne,invalid:ce},ne&&!s.value&&M>Math.min(1,o.length-3)&&M<Math.max(o.length-2,3)){const ge=ne.height/ne.width,ue=ge>2||ge<.5,Se=ge>1.6||ge<.6;s.value!==ue&&(s.value=ue),l.value!==Se&&(l.value=Se)}$()}function B(){var ne;const O=We(()=>{v&&N(v)},100),K=new MutationObserver(O),M=(ne=e.spec)!=null&&ne.imgDivs?void 0:(()=>{let ce=window.innerWidth;return new ResizeObserver(We(()=>{const ge=window.innerWidth;if(ge!==ce){ce=ge;return}O()},50))})();Gn(async()=>{K.disconnect(),M==null||M.disconnect()});let D=!1;se(ce=>{v!==ce&&(v=ce,K.disconnect(),M==null||M.disconnect(),K.observe(v,{childList:!0,subtree:!0}),M==null||M.observe(v),D?O():(D=!0,N(v)))})}async function se(O){var ge;const K=(ge=e.spec)==null?void 0:ge.content;if(!K){O(document.body);return}const M=await qd(e.spec);let D=K?await Tn(M?100:1,10,()=>document.querySelector(K)):void 0;if(!D)return;O(D);let ne=0;const ce=async()=>{if(u&&!(D!=null&&D.isConnected)&&!n){if(ne=0,D=await Tn(50,20,()=>{const ue=document.querySelector(K);return ue!=null&&ue.isConnected&&ue!==D?ue:void 0}),!D)return;O(D)}!u||n||++ne>=10||setTimeout(ce,200)};setTimeout(ce,200)}async function N(O){var ne;if(!u||!O.isConnected||n)return;const K=Date.now();w=K;const M=(ne=e.spec)==null?void 0:ne.imgDivs,D=M?await ie(O,M):pe(O);if(!(w!==K||!O.isConnected||!u||n)){if(!e.raw.value&&!D.length){e.onError("no_img");return}S(D)}}async function ie(O,K){const M=Array.from(O.querySelectorAll(K)),D=new Map,ne=M.map(ce=>{const ge=Array.from(ce.querySelectorAll("img,canvas"));for(const ue of ge)if(xr(ue,D)){if(ue instanceof HTMLCanvasElement){if(al(ue))return{el:ue,parentEl:ce}}else if(ue instanceof HTMLImageElement&&cl(ue)){const Se=go(ue);return{el:ue,src:Se,parentEl:ce}}}return{parentEl:ce}});return!h&&e.isAutoShow!==!1&&e.page.value&&(h=!0,mo({contentEl:O,images:ne,page:e.page.value,skipIfVisible:!0}),await ln(1)),ne}function pe(O){const K=[],M={},D=new Map;return Array.from(O.querySelectorAll("img,canvas")).forEach(ce=>{if(xr(ce,D)){if(ce instanceof HTMLCanvasElement)al(ce)&&K.push({el:ce});else if(ce instanceof HTMLImageElement&&cl(ce)){const ge=go(ce);if(ge){const ue=M[ge];if(ue!==void 0&&ue!==-1){K.splice(ue,1);return}M[ge]=K.length}K.push({el:ce,src:ge})}}}),K}return{asyncImgs:ae(()=>{Object.values(r);const O=[];return o.forEach(({src:K,parentEl:M})=>{const D=K?r[K]:void 0;(K&&!(D!=null&&D.invalid)||M)&&O.push(D)}),O}),isWebtoon:ae(()=>s.value??!1),maybeWebtoon:ae(()=>l.value??!1)}}async function qd(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await Tn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const i=s=>s.preventDefault();r.addEventListener("click",i),it(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await ln(),!0}function sl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function Xd(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await sl(o)}async function Zd(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}function Gd(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>({el:o}));return ll(n)}function ll(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function al(e){return e.isConnected&&e.width>=200&&e.height>=200}function cl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function go(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}function xr(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&o.visibility!=="hidden"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=xr(e.parentElement,t);return t.set(e,i),i}function mo({contentEl:e,images:t,page:n,smooth:o,skipIfVisible:r,isScrollDown:i}){const s=Math.floor(n),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??document.querySelector(`img[src^="${l.src}"]`);if(!a)return;const c=o?"smooth":"instant";if(n>=t.length){a==null||a.scrollIntoView({block:"end",behavior:c});return}const d=a.getBoundingClientRect();if(r&&d.top<=0&&d.top+d.height>0)return;a.scrollIntoView({block:i?"end":"start",behavior:c});const h=n%1;if(h){const x=h*d.height,w=Sr(e??document.documentElement);setTimeout(()=>w==null?void 0:w.scrollBy({top:x}))}}function Sr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?Sr(document.documentElement)??e:e:Sr(e.parentElement??void 0)}function Jd(e,t){return ae(()=>t.value?ul(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function ul(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[n[0]]:n;return[r.map((i,s)=>({img:i,index:t+s})),...ul(e.slice(r.length),t+r.length)]}function Qd(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=G(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ae({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function ep(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Cr=40;function tp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:d,onFinished:h}){let x=!1,w=!1,v=!1,z;const j=We(Y,300),re=Vs(()=>{Y(),j()},300),C=We(m,50);async function $(){W(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function S(){var y;w=!0,d(),B(),(y=l.value)==null||y.addEventListener("scroll",re),setTimeout(()=>{const{width:H,height:O}=xd();_e(H,()=>{r.value&&C()}),_e(O,()=>{r.value||C()}),_e(n,m),_e(t,m)},300)}async function m(){if(!w||x)return;x=!0,await vt();const y=e.value;if(N()===y){x=!1;return}W(y)}function W(y,{smooth:H,ensureLastImgVisibility:O=!1}={smooth:!1}){const K=l.value;if(!K)return;x=!0;const M=async()=>{await vt(),x=!1,w||S()},D=Math.floor(y),ne=K.querySelector(`[data-index="${D}"],[data-index2="${D}"]`);if(!ne){M();return}c(async()=>{await _(K,!o.value&&H,async()=>{await J(K,ne,{smooth:H,page:y,ensureLastImgVisibility:O})}),await M()})}async function _(y,H,O){H&&y.style.setProperty("scroll-snap-type","none"),await O(),H&&y.style.removeProperty("scroll-snap-type")}function Y(){if(x)return;const y=N();y!==void 0&&y!==e.value&&u(y),B()}function B(){v||!v&&se()&&(v=!0,h())}function se(){const y=l.value;if(!y)return!1;const H=o.value?a.value?3:!r.value&&y.clientWidth>y.clientHeight?2.25:2.5:2;return r.value?y.scrollHeight-y.scrollTop<y.clientHeight*H:y.scrollWidth-(i.value?-y.scrollLeft:y.scrollLeft)<y.clientWidth*H}function N(){const y=ie();return y?(+y.getAttribute("data-index")||0)+(o.value?pe(y):0):void 0}function ie(){var H;if(z??(z=l.value.getRootNode()),!z)return;const y=(H=z.elementsFromPoint)==null?void 0:H.call(z,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-Cr:Cr,r.value&&o.value?s.value||Cr:window.innerHeight/2);if(y)for(let O=0;O<y.length;O++){const K=y[O];if(K.hasAttribute("data-index"))return K;if(K===l.value)break}}function pe(y){const H=y.getBoundingClientRect();return r.value?Math.abs(H.top-s.value)/H.height:i.value?Math.max(0,H.right-l.value.clientWidth)/H.width:Math.abs(H.left)/H.width}let P=!1;async function J(y,H,O){if(P)return;const K=H.getBoundingClientRect();if(!o.value){if(r.value){if(K.top<=0&&K.bottom>=y.clientHeight)return}else if(K.left<=0&&K.right>=y.clientWidth)return}P=!0;const M=r.value?y.scrollTop:y.scrollLeft,D=O.page,ne=o.value?D%1:0,ce=await Tn(30,10,async()=>{await ln();let Re;if(!(H.offsetHeight<10))return o.value?r.value?Re=H.offsetTop+ne*H.offsetHeight-s.value:i.value?Re=H.offsetLeft-y.clientWidth+H.offsetWidth-ne*H.offsetWidth:Re=H.offsetLeft+ne*H.offsetWidth:r.value?Re=H.offsetTop+(K.top>0?0:K.height-y.clientHeight):Re=H.offsetLeft+(K.left>0?0:K.width-y.clientWidth),D>.5&&Math.abs(Re)<100?void 0:Re})??0,ge=O.ensureLastImgVisibility?r.value?Math.min(ce,y.scrollHeight-y.clientHeight*2):i.value?Math.max(ce,-(y.scrollWidth-y.clientWidth*2)):Math.min(ce,y.scrollWidth-y.clientWidth*2):ce;if(!O.smooth){r.value?y.scrollTop=ge:y.scrollLeft=ge,P=!1;return}const ue=ge-M,Se=30;let Ee=0;return new Promise(Re=>{(function dt(){const pt=np(Ee,M,ue,Se);r.value?y.scrollTop=pt:y.scrollLeft=pt,Ee++,Ee<=Se?requestAnimationFrame(dt):(Re(),P=!1)})()})}return{init:$,goToPage:W}}function np(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function op({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=G(typeof l=="string"?l==="true":e),c=ae({get:()=>a.value,set:_=>{a.value=_,sessionStorage.setItem("tk:playing",_?"true":"false")}}),u=G(!1);let d,h;const x=We(m,100),w=We(()=>{u.value=!0},t?2e3:1e3),v=()=>setTimeout(()=>{u.value=!1,w()},30);v(),t||zt(window,"mousemove",v);const z=Ks();tt(()=>{_e(z,_=>{c.value&&(_==="visible"?m():h==null||h())}),_e(s,()=>j()),_e(i,_=>{_||C()})}),it(C);async function j(_){c.value&&(h==null||h()),_&&(await vt(),await _()),c.value&&x()}function re(){c.value?C():$()}function C(){c.value&&(c.value=!1,h==null||h(),v())}function $(){!c.value&&i.value&&(c.value=!0,m(),v())}function S(){h==null||h()}function m(){const _=n.value;if(!c.value||!_)return;const Y=o.value?_.scrollHeight-_.clientHeight:_.scrollWidth-_.clientWidth,B=W();if(Y<=B){C();return}h=()=>{d=Date.now(),h=void 0};const se=Date.now();d=se;const N=.05*s.value,ie=o.value?"scrollTop":"scrollLeft";let pe=Date.now(),P=0;const J=()=>{if(d!==se)return;const y=Date.now(),H=y-pe;pe=y;const O=N*H+P;O>=1?(P=O%1,_[ie]+=(O-P)*(r.value?-1:1)):P=O,setTimeout(J,1)};J()}function W(){const _=n.value;return o.value?_.scrollTop:r.value?-_.scrollLeft:_.scrollLeft}return{isPlaying:c,isIdle:u,toggle:re,play:$,pause:S,resume:m,stop:C,interfere:j,awake:v}}function rp(e){var x,w,v,z,j,re;let t=-1,n=(x=e.prev)==null?void 0:x.slug,o=(w=e.next)==null?void 0:w.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,d=((v=l.chapters)==null?void 0:v.filter(C=>C.slug))??[],h=d.length>1?d:[];if(h.length){if(t=h.findIndex(C=>C.slug===e.slug),t===-1&&(t=h.findIndex(C=>(C.vol??C.inferVol)===u&&C.chap===s)),t===-1&&(t=h.findIndex(C=>a.startsWith(`${C.slug}-`)&&a.length-C.slug.length>3)),t!==-1)n??(n=(z=h[t+1])==null?void 0:z.slug),o??(o=(j=h[t-1])==null?void 0:j.slug);else if(!n&&!o){const C=h.findIndex($=>{const S=$.vol??$.inferVol;return u===void 0||S===void 0||u===S?$.chap<s:S<u});C!==-1?(n=h[C].slug,o=(re=h[C-1])==null?void 0:re.slug):o=h[h.length-1].slug}}return{activeIndex:t,activeLabel:fl({vol:r,chap:s}),chapters:h.map(C=>({label:fl(C),path:kr(c,C.slug)})),prevPath:kr(c,n),nextPath:kr(c,o)}}function kr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function fl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const ip={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},dl=we(Te({inheritAttrs:!1,__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i,s=-1;const l=G(!1),a=G(!1),c=wu({touchDevice:n.touchDevice}),u=Qd(n.page,n.isAutoShow),d=ae(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:x,maybeWebtoon:w}=Yd({raw:ae(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:d,async onReady(g){ce(g),l.value=!0},onError:()=>{o("error"),T()}}),{direction:v,style:z,isRTL:j,isDouble:re,isVertical:C,isLongStrip:$,gap:S,speed:m,zoom:W}=cf({titleName:ae(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:x,maybeWebtoon:w,defaultStyle:n.readerStyle,defaultDirection:n.direction}),_=Jd(h,re),Y=ae(()=>u.value>=h.value.length),B=ae(()=>n.raw?rp(n.raw):void 0),se=ae(()=>{var g,k;return j.value?(g=B.value)==null?void 0:g.nextPath:(k=B.value)==null?void 0:k.prevPath}),N=ae(()=>{var g,k;return j.value?(g=B.value)==null?void 0:g.prevPath:(k=B.value)==null?void 0:k.nextPath}),ie=G(null),pe=G(null),P=G(!1),J=G(!1),y=op({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var g;return(g=ie.value)==null?void 0:g.$el}),speed:m,isRTL:j,isVertical:C,isLongStrip:$}),H=ae(()=>!n.touchDevice&&y.isIdle.value&&!c.value),O=ae({get(){return W.value},set(g){y.interfere(()=>{W.value=g})}}),K=tp({page:u,style:z,direction:v,isLongStrip:$,isVertical:C,isRTL:j,spaceTop:d,isWebtoon:x,scrollEl:ae(()=>{var g;return(g=ie.value)==null?void 0:g.$el}),interferePlayer:g=>y.interfere(g),onChangedPage:ce,onInitialized(){o("ready"),a.value=!0,n.touchDevice&&(i=ge())},onFinished:()=>o("finished")}),M=ae(()=>Math.floor(u.value)),D=()=>y.interfere(()=>ln(100));Ou().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const k=$.value&&C.value,q=$.value&&!C.value,oe=!$.value&&C.value,he=!$.value&&!C.value;switch(g.key){case" ":g.preventDefault(),$.value?(U(!1),y.toggle()):b();break;case"ArrowUp":case"PageUp":k?D():oe&&M.value!==0&&(g.preventDefault(),p());break;case"ArrowDown":case"PageDown":k?D():oe&&!Y.value&&(g.preventDefault(),b());break;case"ArrowLeft":q?D():he?(g.preventDefault(),En()):C.value&&Re();break;case"ArrowRight":q?D():he?(g.preventDefault(),f()):C.value&&Ee();break}},onKeyUp:g=>{switch(g.key){case"f":A();break;case"t":F();break;case"h":U();break}}}),zt("fullscreenchange",()=>{P.value=!!document.fullscreenElement}),_e(y.isPlaying,g=>{g||L(!1),o("playingChanged",g)}),_e(y.isIdle,g=>{y.isPlaying.value&&L(g)}),_e(c,g=>{!g&&y.isIdle.value?y.awake():g&&n.fullScreen&&L()});function ce(g){if(u.value===g)return;const k=h.value.length;if(g<0||g>=k+1)return;const q=u.value;u.value=g;const oe=Math.floor(g*100)/100;oe!==s&&(s=oe,o("pageChanged",oe)),g>=k?(L(!1),y.stop()):g<.01?(L(!1),y.awake()):n.touchDevice&&!r&&($.value?i!==void 0&&ge()-i>300&&L(!0):Math.abs(q-g)===1&&L(!0))}function ge(){var k;const g=(k=ie.value)==null?void 0:k.$el;return g?C.value?g.scrollTop:j.value?-g.scrollLeft:g.scrollLeft:0}function ue(){!n.touchDevice&&!$.value&&K.goToPage(M.value,{smooth:!0})}function Se(){if(y.isPlaying.value){!n.fullScreen||!n.touchDevice?y.stop():y.awake();return}L()}function Ee(){var g;pt((g=B.value)==null?void 0:g.nextPath)}function Re(){var g;pt((g=B.value)==null?void 0:g.prevPath)}function dt(g){var q,oe,he;const k=(he=(oe=(q=B.value)==null?void 0:q.chapters)==null?void 0:oe[g])==null?void 0:he.path;k&&pt(k)}function pt(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function En(){j.value?b():p()}function f(){j.value?p():b()}function p(){var q;const g=_.value,k=Y.value?g[g.length-1][0].index:(q=g[I()-1])==null?void 0:q[0].index;k!==void 0?K.goToPage(k):Re()}function b(){var g,k;if(Y.value)Ee();else{const q=((k=(g=_.value[I()+1])==null?void 0:g[0])==null?void 0:k.index)??h.value.length;K.goToPage(q)}}function I(){const g=M.value,k=_.value.findIndex(q=>q.some(({index:oe})=>oe===g));return k===-1?_.value.length-1:k}function T(){ep(),o("dispose")}async function L(g){if(c.value&&!n.fullScreen)return;r=!0;const k=typeof g=="boolean"?g:!n.fullScreen;o("fullScreenChanged",k),k&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100)}function F(){n.entryId?E():V()}function A(){var g,k;document.fullscreenElement?document.exitFullscreen():(k=(g=pe.value)==null?void 0:g.$el)==null||k.requestFullscreen()}function V(){y.stop(),o("addEntry")}function E(){y.stop(),o("openEntry",n.entryId)}function U(g){J.value!==g&&(J.value=!J.value,J.value&&y.isPlaying.value&&y.stop())}return(g,k)=>{const q=rl,oe=ol,he=el,be=Js,Pe=Gs,Ze=Zs,jt=Bs,ht=uo,Zt=js,vo=vr,Ve=zs,rt=As,_o=Ls,mp=Os,vp=Ps,_p=Es,bp=$s,yp=Ts,wp=gr,xp=hr,Sp=bs,Cp=vs;return g.immediate||l.value?(R(),xe(Cp,{key:0,ref_key:"root",ref:pe,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:H.value,"space-top":d.value,rtl:te(j),onClick:k[10]||(k[10]=ot(()=>{},["stop"]))},Si({settings:fe(()=>{var yt;return[Q(yp,{"reader-style":te(z),"onUpdate:readerStyle":k[3]||(k[3]=wt=>Me(z)?z.value=wt:null),direction:te(v),"onUpdate:direction":k[4]||(k[4]=wt=>Me(v)?v.value=wt:null),gap:te(S),"onUpdate:gap":k[5]||(k[5]=wt=>Me(S)?S.value=wt:null),speed:te(m),"onUpdate:speed":k[6]||(k[6]=wt=>Me(m)?m.value=wt:null),zoom:O.value,"onUpdate:zoom":k[7]||(k[7]=wt=>O.value=wt),name:(yt=g.raw)==null?void 0:yt.title.name,webtoon:te(x),disabled:!l.value,onHelp:U},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":fe(()=>[Q(on,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:fe(()=>[Q(Sp,{zoom:O.value,onClick:k[9]||(k[9]=ot(()=>O.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:fe(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Be({width:`${te(u)/(te(h).length-1)*100}%`})},null,4)]),default:fe(()=>[l.value?(R(),xe(oe,{key:0,ref_key:"body",ref:ie,zoom:O.value,"onUpdate:zoom":k[0]||(k[0]=yt=>O.value=yt),"page-index":M.value,pages:te(_),"total-imgs":te(h).length,direction:te(v),gap:te(S),"is-long-strip":te($),isRTL:te(j),"is-vertical":te(C),"space-top":d.value,busy:te(c),idle:H.value,"play-controller":te(y),"touch-device":g.touchDevice,onVnodeMounted:te(K).init,onPrev:p,onNext:b,onClick:Se,onDragEnd:ue,onWheelPassive:k[1]||(k[1]=()=>te(y).interfere())},Si({_:2},[l.value&&te(h).length?{name:"end",fn:fe(()=>{var yt;return[Q(q,{"has-next":!!((yt=B.value)!=null&&yt.nextPath),onNext:Ee,onHide:T},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","onVnodeMounted"])):Ae("",!0),a.value&&!Y.value&&!g.tourEnabled?(R(),xe(he,{key:1,direction:te(v)},null,8,["direction"])):Ae("",!0),a.value&&!Y.value?(R(),xe(be,{key:2,playing:!!te(y).isPlaying.value},null,8,["playing"])):Ae("",!0),J.value?(R(),xe(Pe,{key:3,"touch-device":g.touchDevice,onHide:U},null,8,["touch-device"])):Ae("",!0),g.tourEnabled?(R(),xe(Ze,{key:4,onHide:k[2]||(k[2]=()=>o("tourEnabledChanged",!1))})):Ae("",!0)]),_:2},[g.raw?{name:"back",fn:fe(()=>[Q(ht,{href:g.raw.title.url,title:"Back to manga"},{default:fe(()=>[Q(jt)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:fe(()=>[Q(ht,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:T},{default:fe(()=>[Q(Zt)]),_:1})]),key:"1"},B.value?{name:"chapter-nav",fn:fe(()=>[Q(vo,{modelValue:B.value.activeIndex,label:B.value.activeLabel,title:"Select chapter",items:B.value.chapters,"onUpdate:modelValue":dt},{item:fe(({item:yt})=>[Et(Je(yt.label),1)]),_:1},8,["modelValue","label","items"]),se.value||N.value?(R(),Z("div",ip,[Q(ht,{title:`${te(j)?"Next":"Prev"} chapter (←)`,href:se.value,disabled:!se.value,class:"!rounded-r-none"},{default:fe(()=>[Q(Ve)]),_:1},8,["title","href","disabled"]),Q(ht,{title:`${te(j)?"Prev":"Next"} chapter (→)`,href:N.value,disabled:!N.value,class:"!rounded-l-none"},{default:fe(()=>[Q(rt)]),_:1},8,["title","href","disabled"])])):Ae("",!0)]),key:"2"}:void 0,te(_).length?{name:"page-nav",fn:fe(()=>[Q(_o,{"model-value":M.value,disabled:!a.value,pages:te(_),"total-imgs":te(h).length,"onUpdate:modelValue":te(K).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:fe(()=>[Q(ht,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:F},{default:fe(()=>[g.entryId?(R(),xe(mp,{key:0})):(R(),xe(vp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:fe(()=>[Q(ht,{title:`${P.value?"Exit":"Enter"} fullscreen (F)`,onClick:A},{default:fe(()=>[P.value?(R(),xe(_p,{key:0})):(R(),xe(bp,{key:1}))]),_:1},8,["title"])]),key:"5"},te($)?{name:"play",fn:fe(()=>[Q(ht,{"data-tour":"Press here to play like a video",title:`${te(y).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:k[8]||(k[8]=()=>te(y).toggle())},{default:fe(()=>[te(y).isPlaying.value?(R(),xe(wp,{key:0})):(R(),xe(xp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Ae("",!0)}}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
28
+ `]]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),lp={},ap={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},cp=[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 up(e,t){return R(),Z("svg",ap,cp)}const fp=Object.freeze(Object.defineProperty({__proto__:null,default:we(lp,[["render",up]])},Symbol.toStringTag,{value:"Module"})),dp=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second~*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}
29
+ `,$n="gear-second",Ir={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},Xe={promise:void 0,data:an({...Ir})};async function pp(e){return Xe.promise?(Xe.data.raw=e.raw,await Xe.promise):(Xe.promise=new Promise(t=>{let n=!1,o=!1,r;const i=!!e.spaceTop||!!e.isAutoShow&&!!e.page,s=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove($n),Object.assign(Xe.data,Ir),Xe.promise=void 0)};Object.assign(Xe.data,Ir,e,{immediate:i,onReady(){i||(l(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):a()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;Xe.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Xe.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Xe.data.tourEnabled=c}}),hp().then(()=>{if(n){a();return}r=document.createElement($n),document.documentElement.classList.add($n),i?(document.body.appendChild(r),setTimeout(l)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function l(){o||(o=!0,t({triggerDoubleTap:(c,u)=>Ad(c,u),updateArgs(c){Object.assign(Xe.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Xe.promise)}async function hp(){if(window.customElements.get($n))return;const e=document.createElement("style");e.appendChild(document.createTextNode(dp)),document.head.appendChild(e);const t=zc({styles:[await gp()],data:()=>({readerData:Xe.data}),render(){return Gi(dl,this.readerData)}});window.customElements.define($n,t)}async function gp(){const e=Object.assign({"./TrackkunReader.vue":sp,"./components/AutoNext.vue":Ud,"./components/BottomSheet.vue":zu,"./components/ButtonDropdown.vue":Nf,"./components/ButtonIcon.vue":Cu,"./components/ButtonReaderSettings.vue":ff,"./components/ButtonResetZoom.vue":uu,"./components/DirectionToast.vue":Md,"./components/HelpScreen.vue":kd,"./components/InputPercentage.vue":Du,"./components/InputSelect.vue":Fu,"./components/IntersectionWrapper.vue":jd,"./components/LoadingIndicator.vue":qc,"./components/PageNav.vue":Hf,"./components/PauseToast.vue":Id,"./components/ReaderBody.vue":Hd,"./components/ReaderLayout.vue":tu,"./components/ReaderTour.vue":Sd,"./components/TableField.vue":Nu,"./components/ZoomWrapper.vue":zd,"./components/icons/IconBack.vue":ad,"./components/icons/IconBookmarkNew.vue":If,"./components/icons/IconBookmarked.vue":Of,"./components/icons/IconChevronLeft.vue":Jf,"./components/icons/IconChevronRight.vue":Yf,"./components/icons/IconClose.vue":Eu,"./components/icons/IconExclamationCircle.vue":fp,"./components/icons/IconFullscreen.vue":mf,"./components/icons/IconFullscreenExit.vue":wf,"./components/icons/IconHelp.vue":qu,"./components/icons/IconNext.vue":Od,"./components/icons/IconPause.vue":yu,"./components/icons/IconPlay.vue":gu,"./components/icons/IconReaderExit.vue":od,"./components/icons/IconSettings.vue":Qu,"./components/icons/IconTriangle.vue":jf,"./components/icons/IconZoom.vue":su}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return pp});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.5.4",
4
+ "version": "1.5.6",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",