gear-second 1.26.0 → 1.27.0

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 +7 -17
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,30 +1,20 @@
1
- (function(Je,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce():typeof define=="function"&&define.amd?define(ce):(Je=typeof globalThis<"u"?globalThis:Je||self,Je._gearSecond_=ce())})(this,function(){"use strict";var uh=Object.defineProperty;var fh=(Je,ce,it)=>ce in Je?uh(Je,ce,{enumerable:!0,configurable:!0,writable:!0,value:it}):Je[ce]=it;var $e=(Je,ce,it)=>(fh(Je,typeof ce!="symbol"?ce+"":ce,it),it);/**
1
+ (function(Je,fe){typeof exports=="object"&&typeof module<"u"?module.exports=fe():typeof define=="function"&&define.amd?define(fe):(Je=typeof globalThis<"u"?globalThis:Je||self,Je._gearSecond_=fe())})(this,function(){"use strict";var ih=Object.defineProperty;var rh=(Je,fe,at)=>fe in Je?ih(Je,fe,{enumerable:!0,configurable:!0,writable:!0,value:at}):Je[fe]=at;var Ae=(Je,fe,at)=>rh(Je,typeof fe!="symbol"?fe+"":fe,at);/**
2
2
  * @vue/shared v3.5.24
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function Je(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ce={},it=[],ct=()=>{},Vi=()=>!1,Wn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ao=e=>e.startsWith("onUpdate:"),Se=Object.assign,Lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ql=Object.prototype.hasOwnProperty,be=(e,t)=>Ql.call(e,t),oe=Array.isArray,nn=e=>Un(e)==="[object Map]",Wi=e=>Un(e)==="[object Set]",le=e=>typeof e=="function",Ce=e=>typeof e=="string",xt=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",Ui=e=>(xe(e)||le(e))&&le(e.then)&&le(e.catch),Ki=Object.prototype.toString,Un=e=>Ki.call(e),ea=e=>Un(e).slice(8,-1),Kn=e=>Un(e)==="[object Object]",zo=e=>Ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mn=Je(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ta=/-\w/g,je=qn(e=>e.replace(ta,t=>t.slice(1).toUpperCase())),na=/\B([A-Z])/g,qe=qn(e=>e.replace(na,"-$1").toLowerCase()),Yn=qn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Do=qn(e=>e?`on${Yn(e)}`:""),Ye=(e,t)=>!Object.is(e,t),Zn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},qi=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},No=e=>{const t=parseFloat(e);return isNaN(t)?e:t},jo=e=>{const t=Ce(e)?Number(e):NaN;return isNaN(t)?e:t};let Yi;const Xn=()=>Yi||(Yi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(oe(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=Ce(o)?sa(o):Be(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(Ce(e)||xe(e))return e}const oa=/;(?![^(]*\))/g,ia=/:([^]+)/,ra=/\/\*[^]*?\*\//g;function sa(e){const t={};return e.replace(ra,"").split(oa).forEach(n=>{if(n){const o=n.split(ia);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Ce(e))t=e;else if(oe(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(xe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const la=Je("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Zi(e){return!!e||e===""}const Xi=e=>!!(e&&e.__v_isRef===!0),Ze=e=>Ce(e)?e:e==null?"":oe(e)||xe(e)&&(e.toString===Ki||!le(e.toString))?Xi(e)?Ze(e.value):JSON.stringify(e,Gi,2):String(e),Gi=(e,t)=>Xi(t)?Gi(e,t.value):nn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[Bo(o,r)+" =>"]=i,n),{})}:Wi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Bo(n))}:xt(t)?Bo(t):xe(t)&&!oe(t)&&!Kn(t)?String(t):t,Bo=(e,t="")=>{var n;return xt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **/function Je(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fe={},at=[],pt=()=>{},Wi=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Lo=e=>e.startsWith("onUpdate:"),Se=Object.assign,zo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Kl=Object.prototype.hasOwnProperty,be=(e,t)=>Kl.call(e,t),re=Array.isArray,sn=e=>Kn(e)==="[object Map]",Ui=e=>Kn(e)==="[object Set]",ae=e=>typeof e=="function",ke=e=>typeof e=="string",St=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",Ki=e=>(xe(e)||ae(e))&&ae(e.then)&&ae(e.catch),qi=Object.prototype.toString,Kn=e=>qi.call(e),ql=e=>Kn(e).slice(8,-1),qn=e=>Kn(e)==="[object Object]",Do=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yn=Je(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Yl=/-\w/g,Ne=Yn(e=>e.replace(Yl,t=>t.slice(1).toUpperCase())),Zl=/\B([A-Z])/g,Ye=Yn(e=>e.replace(Zl,"-$1").toLowerCase()),Zn=Yn(e=>e.charAt(0).toUpperCase()+e.slice(1)),No=Yn(e=>e?`on${Zn(e)}`:""),Ze=(e,t)=>!Object.is(e,t),Xn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Yi=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},jo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ro=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Zi;const Gn=()=>Zi||(Zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function je(e){if(re(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=ke(o)?Ql(o):je(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(ke(e)||xe(e))return e}const Xl=/;(?![^(]*\))/g,Gl=/:([^]+)/,Jl=/\/\*[^]*?\*\//g;function Ql(e){const t={};return e.replace(Jl,"").split(Xl).forEach(n=>{if(n){const o=n.split(Gl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(ke(e))t=e;else if(re(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(xe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ea=Je("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Xi(e){return!!e||e===""}const Gi=e=>!!(e&&e.__v_isRef===!0),Xe=e=>ke(e)?e:e==null?"":re(e)||xe(e)&&(e.toString===qi||!ae(e.toString))?Gi(e)?Xe(e.value):JSON.stringify(e,Ji,2):String(e),Ji=(e,t)=>Gi(t)?Ji(e,t.value):sn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[Bo(o,r)+" =>"]=i,n),{})}:Ui(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Bo(n))}:St(t)?Bo(t):xe(t)&&!re(t)&&!qn(t)?String(t):t,Bo=(e,t="")=>{var n;return St(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
6
  * @vue/reactivity v3.5.24
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let Re;class aa{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Re,!t&&Re&&(this.index=(Re.scopes||(Re.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Re;try{return Re=this,t()}finally{Re=n}}}on(){++this._on===1&&(this.prevScope=Re,Re=this)}off(){this._on>0&&--this._on===0&&(Re=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(this.effects.length=0,n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Ji(){return Re}function ca(e,t=!1){Re&&Re.cleanups.push(e)}let _e;const Ro=new WeakSet;class Qi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Re&&Re.active&&Re.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ro.has(this)&&(Ro.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sr(this),nr(this);const t=_e,n=ut;_e=this,ut=!0;try{return this.fn()}finally{or(this),_e=t,ut=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Wo(t);this.deps=this.depsTail=void 0,sr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ro.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Vo(this)&&this.run()}get dirty(){return Vo(this)}}let er=0,vn,bn;function tr(e,t=!1){if(e.flags|=8,t){e.next=bn,bn=e;return}e.next=vn,vn=e}function Fo(){er++}function Ho(){if(--er>0)return;if(bn){let t=bn;for(bn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vn;){let t=vn;for(vn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function nr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function or(e){let t,n=e.depsTail,o=n;for(;o;){const i=o.prevDep;o.version===-1?(o===n&&(n=i),Wo(o),ua(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=i}e.deps=t,e.depsTail=n}function Vo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ir(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ir(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yn)||(e.globalVersion=yn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Vo(e))))return;e.flags|=2;const t=e.dep,n=_e,o=ut;_e=e,ut=!0;try{nr(e);const i=e.fn(e._value);(t.version===0||Ye(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{_e=n,ut=o,or(e),e.flags&=-3}}function Wo(e,t=!1){const{dep:n,prevSub:o,nextSub:i}=e;if(o&&(o.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Wo(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ua(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ut=!0;const rr=[];function dt(){rr.push(ut),ut=!1}function pt(){const e=rr.pop();ut=e===void 0?!0:e}function sr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_e;_e=void 0;try{t()}finally{_e=n}}}let yn=0;class fa{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Gn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!_e||!ut||_e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_e)n=this.activeLink=new fa(_e,this),_e.deps?(n.prevDep=_e.depsTail,_e.depsTail.nextDep=n,_e.depsTail=n):_e.deps=_e.depsTail=n,lr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=_e.depsTail,n.nextDep=void 0,_e.depsTail.nextDep=n,_e.depsTail=n,_e.deps===n&&(_e.deps=o)}return n}trigger(t){this.version++,yn++,this.notify(t)}notify(t){Fo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ho()}}}function lr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)lr(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Uo=new WeakMap,Wt=Symbol(""),Ko=Symbol(""),wn=Symbol("");function Fe(e,t,n){if(ut&&_e){let o=Uo.get(e);o||Uo.set(e,o=new Map);let i=o.get(n);i||(o.set(n,i=new Gn),i.map=o,i.key=n),i.track()}}function _t(e,t,n,o,i,r){const s=Uo.get(e);if(!s){yn++;return}const a=l=>{l&&l.trigger()};if(Fo(),t==="clear")s.forEach(a);else{const l=oe(e),u=l&&zo(n);if(l&&n==="length"){const c=Number(o);s.forEach((f,p)=>{(p==="length"||p===wn||!xt(p)&&p>=c)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),u&&a(s.get(wn)),t){case"add":l?u&&a(s.get("length")):(a(s.get(Wt)),nn(e)&&a(s.get(Ko)));break;case"delete":l||(a(s.get(Wt)),nn(e)&&a(s.get(Ko)));break;case"set":nn(e)&&a(s.get(Wt));break}}Ho()}function on(e){const t=ge(e);return t===e?t:(Fe(t,"iterate",wn),rt(e)?t:t.map(De))}function Jn(e){return Fe(e=ge(e),"iterate",wn),e}const da={__proto__:null,[Symbol.iterator](){return qo(this,Symbol.iterator,De)},concat(...e){return on(this).concat(...e.map(t=>oe(t)?on(t):t))},entries(){return qo(this,"entries",e=>(e[1]=De(e[1]),e))},every(e,t){return St(this,"every",e,t,void 0,arguments)},filter(e,t){return St(this,"filter",e,t,n=>n.map(De),arguments)},find(e,t){return St(this,"find",e,t,De,arguments)},findIndex(e,t){return St(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return St(this,"findLast",e,t,De,arguments)},findLastIndex(e,t){return St(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return St(this,"forEach",e,t,void 0,arguments)},includes(...e){return Yo(this,"includes",e)},indexOf(...e){return Yo(this,"indexOf",e)},join(e){return on(this).join(e)},lastIndexOf(...e){return Yo(this,"lastIndexOf",e)},map(e,t){return St(this,"map",e,t,void 0,arguments)},pop(){return xn(this,"pop")},push(...e){return xn(this,"push",e)},reduce(e,...t){return ar(this,"reduce",e,t)},reduceRight(e,...t){return ar(this,"reduceRight",e,t)},shift(){return xn(this,"shift")},some(e,t){return St(this,"some",e,t,void 0,arguments)},splice(...e){return xn(this,"splice",e)},toReversed(){return on(this).toReversed()},toSorted(e){return on(this).toSorted(e)},toSpliced(...e){return on(this).toSpliced(...e)},unshift(...e){return xn(this,"unshift",e)},values(){return qo(this,"values",De)}};function qo(e,t,n){const o=Jn(e),i=o[t]();return o!==e&&!rt(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=n(r.value)),r}),i}const pa=Array.prototype;function St(e,t,n,o,i,r){const s=Jn(e),a=s!==e&&!rt(e),l=s[t];if(l!==pa[t]){const f=l.apply(e,r);return a?De(f):f}let u=n;s!==e&&(a?u=function(f,p){return n.call(this,De(f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const c=l.call(s,u,o);return a&&i?i(c):c}function ar(e,t,n,o){const i=Jn(e);let r=n;return i!==e&&(rt(e)?n.length>3&&(r=function(s,a,l){return n.call(this,s,a,l,e)}):r=function(s,a,l){return n.call(this,s,De(a),l,e)}),i[t](r,...o)}function Yo(e,t,n){const o=ge(e);Fe(o,"iterate",wn);const i=o[t](...n);return(i===-1||i===!1)&&Go(n[0])?(n[0]=ge(n[0]),o[t](...n)):i}function xn(e,t,n=[]){dt(),Fo();const o=ge(e)[t].apply(e,n);return Ho(),pt(),o}const ha=Je("__proto__,__v_isRef,__isVue"),cr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xt));function ga(e){xt(e)||(e=String(e));const t=ge(this);return Fe(t,"has",e),t.hasOwnProperty(e)}class ur{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?mr:gr:r?hr:pr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=oe(t);if(!i){let l;if(s&&(l=da[n]))return l;if(n==="hasOwnProperty")return ga}const a=Reflect.get(t,n,Pe(t)?t:o);if((xt(n)?cr.has(n):ha(n))||(i||Fe(t,"get",n),r))return a;if(Pe(a)){const l=s&&zo(n)?a:a.value;return i&&xe(l)?Xo(l):l}return xe(a)?i?Xo(a):no(a):a}}class fr extends ur{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._isShallow){const l=$t(r);if(!rt(o)&&!$t(o)&&(r=ge(r),o=ge(o)),!oe(t)&&Pe(r)&&!Pe(o))return l||(r.value=o),!0}const s=oe(t)&&zo(n)?Number(n)<t.length:be(t,n),a=Reflect.set(t,n,o,Pe(t)?t:i);return t===ge(i)&&(s?Ye(o,r)&&_t(t,"set",n,o):_t(t,"add",n,o)),a}deleteProperty(t,n){const o=be(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&_t(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!xt(n)||!cr.has(n))&&Fe(t,"has",n),o}ownKeys(t){return Fe(t,"iterate",oe(t)?"length":Wt),Reflect.ownKeys(t)}}class dr extends ur{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ma=new fr,va=new dr,ba=new fr(!0),ya=new dr(!0),Zo=e=>e,Qn=e=>Reflect.getPrototypeOf(e);function wa(e,t,n){return function(...o){const i=this.__v_raw,r=ge(i),s=nn(r),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...o),c=n?Zo:t?io:De;return!t&&Fe(r,"iterate",l?Ko:Wt),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:a?[c(f[0]),c(f[1])]:c(f),done:p}},[Symbol.iterator](){return this}}}}function eo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xa(e,t){const n={get(i){const r=this.__v_raw,s=ge(r),a=ge(i);e||(Ye(i,a)&&Fe(s,"get",i),Fe(s,"get",a));const{has:l}=Qn(s),u=t?Zo:e?io:De;if(l.call(s,i))return u(r.get(i));if(l.call(s,a))return u(r.get(a));r!==s&&r.get(i)},get size(){const i=this.__v_raw;return!e&&Fe(ge(i),"iterate",Wt),i.size},has(i){const r=this.__v_raw,s=ge(r),a=ge(i);return e||(Ye(i,a)&&Fe(s,"has",i),Fe(s,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const s=this,a=s.__v_raw,l=ge(a),u=t?Zo:e?io:De;return!e&&Fe(l,"iterate",Wt),a.forEach((c,f)=>i.call(r,u(c),u(f),s))}};return Se(n,e?{add:eo("add"),set:eo("set"),delete:eo("delete"),clear:eo("clear")}:{add(i){!t&&!rt(i)&&!$t(i)&&(i=ge(i));const r=ge(this);return Qn(r).has.call(r,i)||(r.add(i),_t(r,"add",i,i)),this},set(i,r){!t&&!rt(r)&&!$t(r)&&(r=ge(r));const s=ge(this),{has:a,get:l}=Qn(s);let u=a.call(s,i);u||(i=ge(i),u=a.call(s,i));const c=l.call(s,i);return s.set(i,r),u?Ye(r,c)&&_t(s,"set",i,r):_t(s,"add",i,r),this},delete(i){const r=ge(this),{has:s,get:a}=Qn(r);let l=s.call(r,i);l||(i=ge(i),l=s.call(r,i)),a&&a.call(r,i);const u=r.delete(i);return l&&_t(r,"delete",i,void 0),u},clear(){const i=ge(this),r=i.size!==0,s=i.clear();return r&&_t(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=wa(i,e,t)}),n}function to(e,t){const n=xa(e,t);return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(be(n,i)&&i in o?n:o,i,r)}const _a={get:to(!1,!1)},Sa={get:to(!1,!0)},ka={get:to(!0,!1)},Ca={get:to(!0,!0)},pr=new WeakMap,hr=new WeakMap,gr=new WeakMap,mr=new WeakMap;function Ta(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ia(e){return e.__v_skip||!Object.isExtensible(e)?0:Ta(ea(e))}function no(e){return $t(e)?e:oo(e,!1,ma,_a,pr)}function Ea(e){return oo(e,!1,ba,Sa,hr)}function Xo(e){return oo(e,!0,va,ka,gr)}function ph(e){return oo(e,!0,ya,Ca,mr)}function oo(e,t,n,o,i){if(!xe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=Ia(e);if(r===0)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,r===2?o:n);return i.set(e,a),a}function rn(e){return $t(e)?rn(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function rt(e){return!!(e&&e.__v_isShallow)}function Go(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function Ma(e){return!be(e,"__v_skip")&&Object.isExtensible(e)&&qi(e,"__v_skip",!0),e}const De=e=>xe(e)?no(e):e,io=e=>xe(e)?Xo(e):e;function Pe(e){return e?e.__v_isRef===!0:!1}function ee(e){return Pa(e,!1)}function Pa(e,t){return Pe(e)?e:new Oa(e,t)}class Oa{constructor(t,n){this.dep=new Gn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ge(t),this._value=n?t:De(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||rt(t)||$t(t);t=o?t:ge(t),Ye(t,n)&&(this._rawValue=t,this._value=o?t:De(t),this.dep.trigger())}}function X(e){return Pe(e)?e.value:e}const $a={get:(e,t,n)=>t==="__v_raw"?e:X(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Pe(i)&&!Pe(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function vr(e){return rn(e)?e:new Proxy(e,$a)}class Aa{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Gn,{get:o,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function br(e){return new Aa(e)}class La{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return tr(this,!0),!0}get value(){const t=this.dep.track();return ir(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function za(e,t,n=!1){let o,i;return le(e)?o=e:(o=e.get,i=e.set),new La(o,i,n)}const ro={},so=new WeakMap;let Ut;function Da(e,t=!1,n=Ut){if(n){let o=so.get(n);o||so.set(n,o=[]),o.push(e)}}function Na(e,t,n=ce){const{immediate:o,deep:i,once:r,scheduler:s,augmentJob:a,call:l}=n,u=v=>i?v:rt(v)||i===!1||i===0?kt(v,1):kt(v);let c,f,p,g,x=!1,T=!1;if(Pe(e)?(f=()=>e.value,x=rt(e)):rn(e)?(f=()=>u(e),x=!0):oe(e)?(T=!0,x=e.some(v=>rn(v)||rt(v)),f=()=>e.map(v=>{if(Pe(v))return v.value;if(rn(v))return u(v);if(le(v))return l?l(v,2):v()})):le(e)?t?f=l?()=>l(e,2):e:f=()=>{if(p){dt();try{p()}finally{pt()}}const v=Ut;Ut=c;try{return l?l(e,3,[g]):e(g)}finally{Ut=v}}:f=ct,t&&i){const v=f,_=i===!0?1/0:i;f=()=>kt(v(),_)}const G=Ji(),F=()=>{c.stop(),G&&G.active&&Lo(G.effects,c)};if(r&&t){const v=t;t=(..._)=>{v(..._),F()}}let H=T?new Array(e.length).fill(ro):ro;const E=v=>{if(!(!(c.flags&1)||!c.dirty&&!v))if(t){const _=c.run();if(i||x||(T?_.some((C,W)=>Ye(C,H[W])):Ye(_,H))){p&&p();const C=Ut;Ut=c;try{const W=[_,H===ro?void 0:T&&H[0]===ro?[]:H,g];H=_,l?l(t,3,W):t(...W)}finally{Ut=C}}}else c.run()};return a&&a(E),c=new Qi(f),c.scheduler=s?()=>s(E,!1):E,g=v=>Da(v,!1,c),p=c.onStop=()=>{const v=so.get(c);if(v){if(l)l(v,4);else for(const _ of v)_();so.delete(c)}},t?o?E(!0):H=c.run():s?s(E.bind(null,!0),!0):c.run(),F.pause=c.pause.bind(c),F.resume=c.resume.bind(c),F.stop=F,F}function kt(e,t=1/0,n){if(t<=0||!xe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Pe(e))kt(e.value,t,n);else if(oe(e))for(let o=0;o<e.length;o++)kt(e[o],t,n);else if(Wi(e)||nn(e))e.forEach(o=>{kt(o,t,n)});else if(Kn(e)){for(const o in e)kt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&kt(e[o],t,n)}return e}/**
9
+ **/let Re;class ta{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Re,!t&&Re&&(this.index=(Re.scopes||(Re.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Re;try{return Re=this,t()}finally{Re=n}}}on(){++this._on===1&&(this.prevScope=Re,Re=this)}off(){this._on>0&&--this._on===0&&(Re=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(this.effects.length=0,n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Fo(){return Re}function na(e,t=!1){Re&&Re.cleanups.push(e)}let _e;const Ho=new WeakSet;class Qi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Re&&Re.active&&Re.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ho.has(this)&&(Ho.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sr(this),nr(this);const t=_e,n=ct;_e=this,ct=!0;try{return this.fn()}finally{or(this),_e=t,ct=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ko(t);this.deps=this.depsTail=void 0,sr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ho.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Uo(this)&&this.run()}get dirty(){return Uo(this)}}let er=0,wn,xn;function tr(e,t=!1){if(e.flags|=8,t){e.next=xn,xn=e;return}e.next=wn,wn=e}function Vo(){er++}function Wo(){if(--er>0)return;if(xn){let t=xn;for(xn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;wn;){let t=wn;for(wn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function nr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function or(e){let t,n=e.depsTail,o=n;for(;o;){const i=o.prevDep;o.version===-1?(o===n&&(n=i),Ko(o),oa(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=i}e.deps=t,e.depsTail=n}function Uo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ir(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ir(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_n)||(e.globalVersion=_n,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Uo(e))))return;e.flags|=2;const t=e.dep,n=_e,o=ct;_e=e,ct=!0;try{nr(e);const i=e.fn(e._value);(t.version===0||Ze(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{_e=n,ct=o,or(e),e.flags&=-3}}function Ko(e,t=!1){const{dep:n,prevSub:o,nextSub:i}=e;if(o&&(o.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Ko(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function oa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ct=!0;const rr=[];function ht(){rr.push(ct),ct=!1}function gt(){const e=rr.pop();ct=e===void 0?!0:e}function sr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=_e;_e=void 0;try{t()}finally{_e=n}}}let _n=0;class ia{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Jn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!_e||!ct||_e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==_e)n=this.activeLink=new ia(_e,this),_e.deps?(n.prevDep=_e.depsTail,_e.depsTail.nextDep=n,_e.depsTail=n):_e.deps=_e.depsTail=n,lr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=_e.depsTail,n.nextDep=void 0,_e.depsTail.nextDep=n,_e.depsTail=n,_e.deps===n&&(_e.deps=o)}return n}trigger(t){this.version++,_n++,this.notify(t)}notify(t){Vo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Wo()}}}function lr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)lr(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const qo=new WeakMap,Kt=Symbol(""),Yo=Symbol(""),Sn=Symbol("");function Be(e,t,n){if(ct&&_e){let o=qo.get(e);o||qo.set(e,o=new Map);let i=o.get(n);i||(o.set(n,i=new Jn),i.map=o,i.key=n),i.track()}}function kt(e,t,n,o,i,r){const s=qo.get(e);if(!s){_n++;return}const a=l=>{l&&l.trigger()};if(Vo(),t==="clear")s.forEach(a);else{const l=re(e),u=l&&Do(n);if(l&&n==="length"){const c=Number(o);s.forEach((f,h)=>{(h==="length"||h===Sn||!St(h)&&h>=c)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),u&&a(s.get(Sn)),t){case"add":l?u&&a(s.get("length")):(a(s.get(Kt)),sn(e)&&a(s.get(Yo)));break;case"delete":l||(a(s.get(Kt)),sn(e)&&a(s.get(Yo)));break;case"set":sn(e)&&a(s.get(Kt));break}}Wo()}function ln(e){const t=ge(e);return t===e?t:(Be(t,"iterate",Sn),rt(e)?t:t.map(Le))}function Qn(e){return Be(e=ge(e),"iterate",Sn),e}const ra={__proto__:null,[Symbol.iterator](){return Zo(this,Symbol.iterator,Le)},concat(...e){return ln(this).concat(...e.map(t=>re(t)?ln(t):t))},entries(){return Zo(this,"entries",e=>(e[1]=Le(e[1]),e))},every(e,t){return Ct(this,"every",e,t,void 0,arguments)},filter(e,t){return Ct(this,"filter",e,t,n=>n.map(Le),arguments)},find(e,t){return Ct(this,"find",e,t,Le,arguments)},findIndex(e,t){return Ct(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ct(this,"findLast",e,t,Le,arguments)},findLastIndex(e,t){return Ct(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ct(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xo(this,"includes",e)},indexOf(...e){return Xo(this,"indexOf",e)},join(e){return ln(this).join(e)},lastIndexOf(...e){return Xo(this,"lastIndexOf",e)},map(e,t){return Ct(this,"map",e,t,void 0,arguments)},pop(){return kn(this,"pop")},push(...e){return kn(this,"push",e)},reduce(e,...t){return ar(this,"reduce",e,t)},reduceRight(e,...t){return ar(this,"reduceRight",e,t)},shift(){return kn(this,"shift")},some(e,t){return Ct(this,"some",e,t,void 0,arguments)},splice(...e){return kn(this,"splice",e)},toReversed(){return ln(this).toReversed()},toSorted(e){return ln(this).toSorted(e)},toSpliced(...e){return ln(this).toSpliced(...e)},unshift(...e){return kn(this,"unshift",e)},values(){return Zo(this,"values",Le)}};function Zo(e,t,n){const o=Qn(e),i=o[t]();return o!==e&&!rt(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=n(r.value)),r}),i}const sa=Array.prototype;function Ct(e,t,n,o,i,r){const s=Qn(e),a=s!==e&&!rt(e),l=s[t];if(l!==sa[t]){const f=l.apply(e,r);return a?Le(f):f}let u=n;s!==e&&(a?u=function(f,h){return n.call(this,Le(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=l.call(s,u,o);return a&&i?i(c):c}function ar(e,t,n,o){const i=Qn(e);let r=n;return i!==e&&(rt(e)?n.length>3&&(r=function(s,a,l){return n.call(this,s,a,l,e)}):r=function(s,a,l){return n.call(this,s,Le(a),l,e)}),i[t](r,...o)}function Xo(e,t,n){const o=ge(e);Be(o,"iterate",Sn);const i=o[t](...n);return(i===-1||i===!1)&&Qo(n[0])?(n[0]=ge(n[0]),o[t](...n)):i}function kn(e,t,n=[]){ht(),Vo();const o=ge(e)[t].apply(e,n);return Wo(),gt(),o}const la=Je("__proto__,__v_isRef,__isVue"),cr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(St));function aa(e){St(e)||(e=String(e));const t=ge(this);return Be(t,"has",e),t.hasOwnProperty(e)}class ur{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?mr:gr:r?hr:pr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=re(t);if(!i){let l;if(s&&(l=ra[n]))return l;if(n==="hasOwnProperty")return aa}const a=Reflect.get(t,n,Ce(t)?t:o);if((St(n)?cr.has(n):la(n))||(i||Be(t,"get",n),r))return a;if(Ce(a)){const l=s&&Do(n)?a:a.value;return i&&xe(l)?Jo(l):l}return xe(a)?i?Jo(a):oo(a):a}}class fr extends ur{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._isShallow){const l=zt(r);if(!rt(o)&&!zt(o)&&(r=ge(r),o=ge(o)),!re(t)&&Ce(r)&&!Ce(o))return l||(r.value=o),!0}const s=re(t)&&Do(n)?Number(n)<t.length:be(t,n),a=Reflect.set(t,n,o,Ce(t)?t:i);return t===ge(i)&&(s?Ze(o,r)&&kt(t,"set",n,o):kt(t,"add",n,o)),a}deleteProperty(t,n){const o=be(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&kt(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!St(n)||!cr.has(n))&&Be(t,"has",n),o}ownKeys(t){return Be(t,"iterate",re(t)?"length":Kt),Reflect.ownKeys(t)}}class dr extends ur{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ca=new fr,ua=new dr,fa=new fr(!0),da=new dr(!0),Go=e=>e,eo=e=>Reflect.getPrototypeOf(e);function pa(e,t,n){return function(...o){const i=this.__v_raw,r=ge(i),s=sn(r),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...o),c=n?Go:t?ro:Le;return!t&&Be(r,"iterate",l?Yo:Kt),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function to(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ha(e,t){const n={get(i){const r=this.__v_raw,s=ge(r),a=ge(i);e||(Ze(i,a)&&Be(s,"get",i),Be(s,"get",a));const{has:l}=eo(s),u=t?Go:e?ro:Le;if(l.call(s,i))return u(r.get(i));if(l.call(s,a))return u(r.get(a));r!==s&&r.get(i)},get size(){const i=this.__v_raw;return!e&&Be(ge(i),"iterate",Kt),i.size},has(i){const r=this.__v_raw,s=ge(r),a=ge(i);return e||(Ze(i,a)&&Be(s,"has",i),Be(s,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const s=this,a=s.__v_raw,l=ge(a),u=t?Go:e?ro:Le;return!e&&Be(l,"iterate",Kt),a.forEach((c,f)=>i.call(r,u(c),u(f),s))}};return Se(n,e?{add:to("add"),set:to("set"),delete:to("delete"),clear:to("clear")}:{add(i){!t&&!rt(i)&&!zt(i)&&(i=ge(i));const r=ge(this);return eo(r).has.call(r,i)||(r.add(i),kt(r,"add",i,i)),this},set(i,r){!t&&!rt(r)&&!zt(r)&&(r=ge(r));const s=ge(this),{has:a,get:l}=eo(s);let u=a.call(s,i);u||(i=ge(i),u=a.call(s,i));const c=l.call(s,i);return s.set(i,r),u?Ze(r,c)&&kt(s,"set",i,r):kt(s,"add",i,r),this},delete(i){const r=ge(this),{has:s,get:a}=eo(r);let l=s.call(r,i);l||(i=ge(i),l=s.call(r,i)),a&&a.call(r,i);const u=r.delete(i);return l&&kt(r,"delete",i,void 0),u},clear(){const i=ge(this),r=i.size!==0,s=i.clear();return r&&kt(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=pa(i,e,t)}),n}function no(e,t){const n=ha(e,t);return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(be(n,i)&&i in o?n:o,i,r)}const ga={get:no(!1,!1)},ma={get:no(!1,!0)},va={get:no(!0,!1)},ba={get:no(!0,!0)},pr=new WeakMap,hr=new WeakMap,gr=new WeakMap,mr=new WeakMap;function ya(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wa(e){return e.__v_skip||!Object.isExtensible(e)?0:ya(ql(e))}function oo(e){return zt(e)?e:io(e,!1,ca,ga,pr)}function xa(e){return io(e,!1,fa,ma,hr)}function Jo(e){return io(e,!0,ua,va,gr)}function lh(e){return io(e,!0,da,ba,mr)}function io(e,t,n,o,i){if(!xe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=wa(e);if(r===0)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,r===2?o:n);return i.set(e,a),a}function an(e){return zt(e)?an(e.__v_raw):!!(e&&e.__v_isReactive)}function zt(e){return!!(e&&e.__v_isReadonly)}function rt(e){return!!(e&&e.__v_isShallow)}function Qo(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function _a(e){return!be(e,"__v_skip")&&Object.isExtensible(e)&&Yi(e,"__v_skip",!0),e}const Le=e=>xe(e)?oo(e):e,ro=e=>xe(e)?Jo(e):e;function Ce(e){return e?e.__v_isRef===!0:!1}function te(e){return vr(e,!1)}function ut(e){return vr(e,!0)}function vr(e,t){return Ce(e)?e:new Sa(e,t)}class Sa{constructor(t,n){this.dep=new Jn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ge(t),this._value=n?t:Le(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||rt(t)||zt(t);t=o?t:ge(t),Ze(t,n)&&(this._rawValue=t,this._value=o?t:Le(t),this.dep.trigger())}}function K(e){return Ce(e)?e.value:e}function ft(e){return ae(e)?e():K(e)}const ka={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Ce(i)&&!Ce(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function br(e){return an(e)?e:new Proxy(e,ka)}class Ca{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Jn,{get:o,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ta(e){return new Ca(e)}class Ia{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Jn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_n-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&_e!==this)return tr(this,!0),!0}get value(){const t=this.dep.track();return ir(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ma(e,t,n=!1){let o,i;return ae(e)?o=e:(o=e.get,i=e.set),new Ia(o,i,n)}const so={},lo=new WeakMap;let qt;function Ea(e,t=!1,n=qt){if(n){let o=lo.get(n);o||lo.set(n,o=[]),o.push(e)}}function Pa(e,t,n=fe){const{immediate:o,deep:i,once:r,scheduler:s,augmentJob:a,call:l}=n,u=I=>i?I:rt(I)||i===!1||i===0?Tt(I,1):Tt(I);let c,f,h,g,w=!1,C=!1;if(Ce(e)?(f=()=>e.value,w=rt(e)):an(e)?(f=()=>u(e),w=!0):re(e)?(C=!0,w=e.some(I=>an(I)||rt(I)),f=()=>e.map(I=>{if(Ce(I))return I.value;if(an(I))return u(I);if(ae(I))return l?l(I,2):I()})):ae(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){ht();try{h()}finally{gt()}}const I=qt;qt=c;try{return l?l(e,3,[g]):e(g)}finally{qt=I}}:f=pt,t&&i){const I=f,y=i===!0?1/0:i;f=()=>Tt(I(),y)}const F=Fo(),H=()=>{c.stop(),F&&F.active&&zo(F.effects,c)};if(r&&t){const I=t;t=(...y)=>{I(...y),H()}}let Y=C?new Array(e.length).fill(so):so;const W=I=>{if(!(!(c.flags&1)||!c.dirty&&!I))if(t){const y=c.run();if(i||w||(C?y.some((m,D)=>Ze(m,Y[D])):Ze(y,Y))){h&&h();const m=qt;qt=c;try{const D=[y,Y===so?void 0:C&&Y[0]===so?[]:Y,g];Y=y,l?l(t,3,D):t(...D)}finally{qt=m}}}else c.run()};return a&&a(W),c=new Qi(f),c.scheduler=s?()=>s(W,!1):W,g=I=>Ea(I,!1,c),h=c.onStop=()=>{const I=lo.get(c);if(I){if(l)l(I,4);else for(const y of I)y();lo.delete(c)}},t?o?W(!0):Y=c.run():s?s(W.bind(null,!0),!0):c.run(),H.pause=c.pause.bind(c),H.resume=c.resume.bind(c),H.stop=H,H}function Tt(e,t=1/0,n){if(t<=0||!xe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ce(e))Tt(e.value,t,n);else if(re(e))for(let o=0;o<e.length;o++)Tt(e[o],t,n);else if(Ui(e)||sn(e))e.forEach(o=>{Tt(o,t,n)});else if(qn(e)){for(const o in e)Tt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Tt(e[o],t,n)}return e}/**
10
10
  * @vue/runtime-core v3.5.24
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/const _n=[];let Jo=!1;function hh(e,...t){if(Jo)return;Jo=!0,dt();const n=_n.length?_n[_n.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=ja();if(o)sn(o,n,11,[e+t.map(r=>{var s,a;return(a=(s=r.toString)==null?void 0:s.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${ys(n,r.type)}>`).join(`
13
+ **/const Cn=[];let ei=!1;function ah(e,...t){if(ei)return;ei=!0,ht();const n=Cn.length?Cn[Cn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=Oa();if(o)cn(o,n,11,[e+t.map(r=>{var s,a;return(a=(s=r.toString)==null?void 0:s.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${ws(n,r.type)}>`).join(`
14
14
  `),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
15
- `,...Ba(i)),console.warn(...r)}pt(),Jo=!1}function ja(){let e=_n[_n.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 Ba(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...Ra(n))}),t}function Ra({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${ys(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...Fa(e.props),r]:[i+r]}function Fa(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...yr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function yr(e,t,n){return Ce(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Pe(t)?(t=yr(e,ge(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):le(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ge(t),n?t:[`${e}=`,t])}function sn(e,t,n,o){try{return o?e(...o):e()}catch(i){lo(i,t,n)}}function ft(e,t,n,o){if(le(e)){const i=sn(e,t,n,o);return i&&Ui(i)&&i.catch(r=>{lo(r,t,n)}),i}if(oe(e)){const i=[];for(let r=0;r<e.length;r++)i.push(ft(e[r],t,n,o));return i}}function lo(e,t,n,o=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||ce;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(r){dt(),sn(r,null,10,[e,l,u]),pt();return}}Ha(e,n,i,o,s)}function Ha(e,t,n,o=!0,i=!1){if(i)throw e;console.error(e)}const Ue=[];let ht=-1;const ln=[];let At=null,an=0;const wr=Promise.resolve();let ao=null;function Ct(e){const t=ao||wr;return e?t.then(this?e.bind(this):e):t}function Va(e){let t=ht+1,n=Ue.length;for(;t<n;){const o=t+n>>>1,i=Ue[o],r=Sn(i);r<e||r===e&&i.flags&2?t=o+1:n=o}return t}function Qo(e){if(!(e.flags&1)){const t=Sn(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=Sn(n)?Ue.push(e):Ue.splice(Va(t),0,e),e.flags|=1,xr()}}function xr(){ao||(ao=wr.then(kr))}function Wa(e){oe(e)?ln.push(...e):At&&e.id===-1?At.splice(an+1,0,e):e.flags&1||(ln.push(e),e.flags|=1),xr()}function _r(e,t,n=ht+1){for(;n<Ue.length;n++){const o=Ue[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ue.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Sr(e){if(ln.length){const t=[...new Set(ln)].sort((n,o)=>Sn(n)-Sn(o));if(ln.length=0,At){At.push(...t);return}for(At=t,an=0;an<At.length;an++){const n=At[an];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}At=null,an=0}}const Sn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function kr(e){const t=ct;try{for(ht=0;ht<Ue.length;ht++){const n=Ue[ht];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),sn(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;ht<Ue.length;ht++){const n=Ue[ht];n&&(n.flags&=-2)}ht=-1,Ue.length=0,Sr(),ao=null,(Ue.length||ln.length)&&kr()}}let Ne=null,Cr=null;function co(e){const t=Ne;return Ne=e,Cr=e&&e.type.__scopeId||null,t}function ae(e,t=Ne,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&xo(-1);const r=co(t);let s;try{s=e(...i)}finally{co(r),o._d&&xo(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function gt(e,t){if(Ne===null)return e;const n=ko(Ne),o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,a,l=ce]=t[i];r&&(le(r)&&(r={mounted:r,updated:r}),r.deep&&kt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function Kt(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];r&&(a.oldValue=r[s].value);let l=a.dir[o];l&&(dt(),ft(l,n,8,[e.el,a,e,t]),pt())}}const Ua=Symbol("_vte"),Tr=e=>e.__isTeleport,Tt=Symbol("_leaveCb"),uo=Symbol("_enterCb");function Ka(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xe(()=>{e.isMounted=!0}),ni(()=>{e.isUnmounting=!0}),e}const st=[Function,Array],Ir={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:st,onEnter:st,onAfterEnter:st,onEnterCancelled:st,onBeforeLeave:st,onLeave:st,onAfterLeave:st,onLeaveCancelled:st,onBeforeAppear:st,onAppear:st,onAfterAppear:st,onAppearCancelled:st},Er=e=>{const t=e.subTree;return t.component?Er(t.component):t},qa={name:"BaseTransition",props:Ir,setup(e,{slots:t}){const n=Ln(),o=Ka();return()=>{const i=t.default&&$r(t.default(),!0);if(!i||!i.length)return;const r=Mr(i),s=ge(e),{mode:a}=s;if(o.isLeaving)return ti(r);const l=Or(r);if(!l)return ti(r);let u=ei(l,s,o,n,f=>u=f);l.type!==He&&kn(l,u);let c=n.subTree&&Or(n.subTree);if(c&&c.type!==He&&!Zt(c,l)&&Er(n).type!==He){let f=ei(c,s,o,n);if(kn(c,f),a==="out-in"&&l.type!==He)return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},ti(r);a==="in-out"&&l.type!==He?f.delayLeave=(p,g,x)=>{const T=Pr(o,c);T[String(c.key)]=c,p[Tt]=()=>{g(),p[Tt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{x(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function Mr(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==He){t=n;break}}return t}const Ya=qa;function Pr(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 ei(e,t,n,o,i){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:p,onLeave:g,onAfterLeave:x,onLeaveCancelled:T,onBeforeAppear:G,onAppear:F,onAfterAppear:H,onAppearCancelled:E}=t,v=String(e.key),_=Pr(n,e),C=(I,j)=>{I&&ft(I,o,9,j)},W=(I,j)=>{const q=j[1];C(I,j),oe(I)?I.every(m=>m.length<=1)&&q():I.length<=1&&q()},D={mode:s,persisted:a,beforeEnter(I){let j=l;if(!n.isMounted)if(r)j=G||l;else return;I[Tt]&&I[Tt](!0);const q=_[v];q&&Zt(e,q)&&q.el[Tt]&&q.el[Tt](),C(j,[I])},enter(I){let j=u,q=c,m=f;if(!n.isMounted)if(r)j=F||u,q=H||c,m=E||f;else return;let S=!1;const N=I[uo]=b=>{S||(S=!0,b?C(m,[I]):C(q,[I]),D.delayedLeave&&D.delayedLeave(),I[uo]=void 0)};j?W(j,[I,N]):N()},leave(I,j){const q=String(e.key);if(I[uo]&&I[uo](!0),n.isUnmounting)return j();C(p,[I]);let m=!1;const S=I[Tt]=N=>{m||(m=!0,j(),N?C(T,[I]):C(x,[I]),I[Tt]=void 0,_[q]===e&&delete _[q])};_[q]=e,g?W(g,[I,S]):S()},clone(I){const j=ei(I,t,n,o,i);return i&&i(j),j}};return D}function ti(e){if(po(e))return e=zt(e),e.children=null,e}function Or(e){if(!po(e))return Tr(e.type)&&e.children?Mr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&le(n.default))return n.default()}}function kn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,kn(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 $r(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Ee?(s.patchFlag&128&&i++,o=o.concat($r(s.children,t,a))):(t||s.type!==He)&&o.push(a!=null?zt(s,{key:a}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}function Te(e,t){return le(e)?(()=>Se({name:e.name},t,{setup:e}))():e}function Ar(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const fo=new WeakMap;function Cn(e,t,n,o,i=!1){if(oe(e)){e.forEach((x,T)=>Cn(x,t&&(oe(t)?t[T]:t),n,o,i));return}if(cn(o)&&!i){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Cn(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?ko(o.component):o.el,s=i?null:r,{i:a,r:l}=e,u=t&&t.r,c=a.refs===ce?a.refs={}:a.refs,f=a.setupState,p=ge(f),g=f===ce?Vi:x=>be(p,x);if(u!=null&&u!==l){if(Lr(t),Ce(u))c[u]=null,g(u)&&(f[u]=null);else if(Pe(u)){u.value=null;const x=t;x.k&&(c[x.k]=null)}}if(le(l))sn(l,a,12,[s,c]);else{const x=Ce(l),T=Pe(l);if(x||T){const G=()=>{if(e.f){const F=x?g(l)?f[l]:c[l]:l.value;if(i)oe(F)&&Lo(F,r);else if(oe(F))F.includes(r)||F.push(r);else if(x)c[l]=[r],g(l)&&(f[l]=c[l]);else{const H=[r];l.value=H,e.k&&(c[e.k]=H)}}else x?(c[l]=s,g(l)&&(f[l]=s)):T&&(l.value=s,e.k&&(c[e.k]=s))};if(s){const F=()=>{G(),fo.delete(e)};F.id=-1,fo.set(e,F),Qe(F,n)}else Lr(e),G()}}}function Lr(e){const t=fo.get(e);t&&(t.flags|=8,fo.delete(e))}Xn().requestIdleCallback,Xn().cancelIdleCallback;const cn=e=>!!e.type.__asyncLoader,po=e=>e.type.__isKeepAlive;function Za(e,t){zr(e,"a",t)}function Xa(e,t){zr(e,"da",t)}function zr(e,t,n=Ve){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ho(t,o,n),n){let i=n.parent;for(;i&&i.parent;)po(i.parent.vnode)&&Ga(o,t,n,i),i=i.parent}}function Ga(e,t,n,o){const i=ho(t,e,o,!0);qt(()=>{Lo(o[t],i)},n)}function ho(e,t,n=Ve,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{dt();const a=zn(n),l=ft(t,n,e,s);return a(),pt(),l});return o?i.unshift(r):i.push(r),r}}const It=e=>(t,n=Ve)=>{(!Dn||e==="sp")&&ho(e,(...o)=>t(...o),n)},Ja=It("bm"),Xe=It("m"),Qa=It("bu"),Dr=It("u"),ni=It("bum"),qt=It("um"),ec=It("sp"),tc=It("rtg"),nc=It("rtc");function Nr(e,t=Ve){ho("ec",e,t)}const jr="components",Br=Symbol.for("v-ndc");function Rr(e){return Ce(e)?oc(jr,e,!1)||e:e||Br}function oc(e,t,n=!0,o=!1){const i=Ne||Ve;if(i){const r=i.type;if(e===jr){const a=bs(r,!1);if(a&&(a===t||a===je(t)||a===Yn(je(t))))return r}const s=Fr(i[e]||r[e],t)||Fr(i.appContext[e],t);return!s&&o?r:s}}function Fr(e,t){return e&&(e[t]||e[je(t)]||e[Yn(je(t))])}function un(e,t,n,o){let i;const r=n&&n[o],s=oe(e);if(s||Ce(e)){const a=s&&rn(e);let l=!1,u=!1;a&&(l=!rt(e),u=$t(e),e=Jn(e)),i=new Array(e.length);for(let c=0,f=e.length;c<f;c++)i[c]=t(l?u?io(De(e[c])):De(e[c]):e[c],c,void 0,r&&r[c])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,r&&r[a])}else if(xe(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,r&&r[l]));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function oi(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(oe(o))for(let i=0;i<o.length;i++)e[o[i].name]=o[i].fn;else o&&(e[o.name]=o.key?(...i)=>{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return e}function Ie(e,t,n={},o,i){if(Ne.ce||Ne.parent&&cn(Ne.parent)&&Ne.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),$(),ve(Ee,null,[te("slot",n,o&&o())],u?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),$();const s=r&&Hr(r(n)),a=n.key||s&&s.key,l=ve(Ee,{key:(a&&!xt(a)?a:`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Hr(e){return e.some(t=>$n(t)?!(t.type===He||t.type===Ee&&!Hr(t.children)):!0)?e:null}const ii=e=>e?hs(e)?ko(e):ii(e.parent):null,Tn=Se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ii(e.parent),$root:e=>ii(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>li(e),$forceUpdate:e=>e.f||(e.f=()=>{Qo(e.update)}),$nextTick:e=>e.n||(e.n=Ct.bind(e.proxy)),$watch:e=>Tc.bind(e)}),ri=(e,t)=>e!==ce&&!e.__isScriptSetup&&be(e,t),ic={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(ri(o,t))return s[t]=1,o[t];if(i!==ce&&be(i,t))return s[t]=2,i[t];if((u=e.propsOptions[0])&&be(u,t))return s[t]=3,r[t];if(n!==ce&&be(n,t))return s[t]=4,n[t];si&&(s[t]=0)}}const c=Tn[t];let f,p;if(c)return t==="$attrs"&&Fe(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==ce&&be(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,be(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return ri(i,t)?(i[t]=n,!0):o!==ce&&be(o,t)?(o[t]=n,!0):be(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r,type:s}},a){let l,u;return!!(n[a]||e!==ce&&a[0]!=="$"&&be(e,a)||ri(t,a)||(l=r[0])&&be(l,a)||be(o,a)||be(Tn,a)||be(i.config.globalProperties,a)||(u=s.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:be(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function go(e){return oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function fn(e,t){return!e||!t?e||t:oe(e)&&oe(t)?e.concat(t):Se({},go(e),go(t))}let si=!0;function rc(e){const t=li(e),n=e.proxy,o=e.ctx;si=!1,t.beforeCreate&&Vr(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:p,beforeUpdate:g,updated:x,activated:T,deactivated:G,beforeDestroy:F,beforeUnmount:H,destroyed:E,unmounted:v,render:_,renderTracked:C,renderTriggered:W,errorCaptured:D,serverPrefetch:I,expose:j,inheritAttrs:q,components:m,directives:S,filters:N}=t;if(u&&sc(u,o,null),s)for(const U in s){const w=s[U];le(w)&&(o[U]=w.bind(n))}if(i){const U=i.call(n,n);xe(U)&&(e.data=no(U))}if(si=!0,r)for(const U in r){const w=r[U],B=le(w)?w.bind(n,n):le(w.get)?w.get.bind(n,n):ct,fe=!le(w)&&le(w.set)?w.set.bind(n):ct,ue=ie({get:B,set:fe});Object.defineProperty(o,U,{enumerable:!0,configurable:!0,get:()=>ue.value,set:he=>ue.value=he})}if(a)for(const U in a)Wr(a[U],o,n,U);if(l){const U=le(l)?l.call(n):l;Reflect.ownKeys(U).forEach(w=>{En(w,U[w])})}c&&Vr(c,e,"c");function z(U,w){oe(w)?w.forEach(B=>U(B.bind(n))):w&&U(w.bind(n))}if(z(Ja,f),z(Xe,p),z(Qa,g),z(Dr,x),z(Za,T),z(Xa,G),z(Nr,D),z(nc,C),z(tc,W),z(ni,H),z(qt,v),z(ec,I),oe(j))if(j.length){const U=e.exposed||(e.exposed={});j.forEach(w=>{Object.defineProperty(U,w,{get:()=>n[w],set:B=>n[w]=B,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===ct&&(e.render=_),q!=null&&(e.inheritAttrs=q),m&&(e.components=m),S&&(e.directives=S),I&&Ar(e)}function sc(e,t,n=ct){oe(e)&&(e=ai(e));for(const o in e){const i=e[o];let r;xe(i)?"default"in i?r=Lt(i.from||o,i.default,!0):r=Lt(i.from||o):r=Lt(i),Pe(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function Vr(e,t,n){ft(oe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wr(e,t,n,o){let i=o.includes(".")?ss(n,o):()=>n[o];if(Ce(e)){const r=t[e];le(r)&&me(i,r)}else if(le(e))me(i,e.bind(n));else if(xe(e))if(oe(e))e.forEach(r=>Wr(r,t,n,o));else{const r=le(e.handler)?e.handler.bind(n):t[e.handler];le(r)&&me(i,r,e)}}function li(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!n&&!o?l=t:(l={},i.length&&i.forEach(u=>mo(l,u,s,!0)),mo(l,t,s)),xe(t)&&r.set(t,l),l}function mo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&mo(e,r,n,!0),i&&i.forEach(s=>mo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=lc[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const lc={data:Ur,props:Kr,emits:Kr,methods:In,computed:In,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:In,directives:In,watch:cc,provide:Ur,inject:ac};function Ur(e,t){return t?e?function(){return Se(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function ac(e,t){return In(ai(e),ai(t))}function ai(e){if(oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ke(e,t){return e?[...new Set([].concat(e,t))]:t}function In(e,t){return e?Se(Object.create(null),e,t):t}function Kr(e,t){return e?oe(e)&&oe(t)?[...new Set([...e,...t])]:Se(Object.create(null),go(e),go(t??{})):t}function cc(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=Ke(e[o],t[o]);return n}function qr(){return{app:null,config:{isNativeTag:Vi,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 uc=0;function fc(e,t){return function(o,i=null){le(o)||(o=Se({},o)),i!=null&&!xe(i)&&(i=null);const r=qr(),s=new WeakSet,a=[];let l=!1;const u=r.app={_uid:uc++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:Yc,get config(){return r.config},set config(c){},use(c,...f){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(u,...f)):le(c)&&(s.add(c),c(u,...f))),u},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),u},component(c,f){return f?(r.components[c]=f,u):r.components[c]},directive(c,f){return f?(r.directives[c]=f,u):r.directives[c]},mount(c,f,p){if(!l){const g=u._ceVNode||te(o,i);return g.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),f&&t?t(g,c):e(g,c,p),l=!0,u._container=c,c.__vue_app__=u,ko(g.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ft(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return r.provides[c]=f,u},runWithContext(c){const f=dn;dn=u;try{return c()}finally{dn=f}}};return u}}let dn=null;function En(e,t){if(Ve){let n=Ve.provides;const o=Ve.parent&&Ve.parent.provides;o===n&&(n=Ve.provides=Object.create(o)),n[e]=t}}function Lt(e,t,n=!1){const o=Ln();if(o||dn){let i=dn?dn._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&le(t)?t.call(o&&o.proxy):t}}const Yr={},Zr=()=>Object.create(Yr),Xr=e=>Object.getPrototypeOf(e)===Yr;function dc(e,t,n,o=!1){const i={},r=Zr();e.propsDefaults=Object.create(null),Gr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:Ea(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function pc(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,a=ge(i),[l]=e.propsOptions;let u=!1;if((o||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let p=c[f];if(bo(e.emitsOptions,p))continue;const g=t[p];if(l)if(be(r,p))g!==r[p]&&(r[p]=g,u=!0);else{const x=je(p);i[x]=ci(l,a,x,g,e,!1)}else g!==r[p]&&(r[p]=g,u=!0)}}}else{Gr(e,t,i,r)&&(u=!0);let c;for(const f in a)(!t||!be(t,f)&&((c=qe(f))===f||!be(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=ci(l,a,f,void 0,e,!0)):delete i[f]);if(r!==a)for(const f in r)(!t||!be(t,f))&&(delete r[f],u=!0)}u&&_t(e.attrs,"set","")}function Gr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(mn(l))continue;const u=t[l];let c;i&&be(i,c=je(l))?!r||!r.includes(c)?n[c]=u:(a||(a={}))[c]=u:bo(e.emitsOptions,l)||(!(l in o)||u!==o[l])&&(o[l]=u,s=!0)}if(r){const l=ge(n),u=a||ce;for(let c=0;c<r.length;c++){const f=r[c];n[f]=ci(i,l,f,u[f],e,!be(u,f))}}return s}function ci(e,t,n,o,i,r){const s=e[n];if(s!=null){const a=be(s,"default");if(a&&o===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&le(l)){const{propsDefaults:u}=i;if(n in u)o=u[n];else{const c=zn(i);o=u[n]=l.call(null,t),c()}}else o=l;i.ce&&i.ce._setProp(n,o)}s[0]&&(r&&!a?o=!1:s[1]&&(o===""||o===qe(n))&&(o=!0))}return o}const hc=new WeakMap;function Jr(e,t,n=!1){const o=n?hc:t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},a=[];let l=!1;if(!le(e)){const c=f=>{l=!0;const[p,g]=Jr(f,t,!0);Se(s,p),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!l)return xe(e)&&o.set(e,it),it;if(oe(r))for(let c=0;c<r.length;c++){const f=je(r[c]);Qr(f)&&(s[f]=ce)}else if(r)for(const c in r){const f=je(c);if(Qr(f)){const p=r[c],g=s[f]=oe(p)||le(p)?{type:p}:Se({},p),x=g.type;let T=!1,G=!0;if(oe(x))for(let F=0;F<x.length;++F){const H=x[F],E=le(H)&&H.name;if(E==="Boolean"){T=!0;break}else E==="String"&&(G=!1)}else T=le(x)&&x.name==="Boolean";g[0]=T,g[1]=G,(T||be(g,"default"))&&a.push(f)}}const u=[s,a];return xe(e)&&o.set(e,u),u}function Qr(e){return e[0]!=="$"&&!mn(e)}const ui=e=>e==="_"||e==="_ctx"||e==="$stable",fi=e=>oe(e)?e.map(mt):[mt(e)],gc=(e,t,n)=>{if(t._n)return t;const o=ae((...i)=>fi(t(...i)),n);return o._c=!1,o},es=(e,t,n)=>{const o=e._ctx;for(const i in e){if(ui(i))continue;const r=e[i];if(le(r))t[i]=gc(i,r,o);else if(r!=null){const s=fi(r);t[i]=()=>s}}},ts=(e,t)=>{const n=fi(t);e.slots.default=()=>n},ns=(e,t,n)=>{for(const o in t)(n||!ui(o))&&(e[o]=t[o])},mc=(e,t,n)=>{const o=e.slots=Zr();if(e.vnode.shapeFlag&32){const i=t._;i?(ns(o,t,n),n&&qi(o,"_",i,!0)):es(t,o)}else t&&ts(e,t)},vc=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=ce;if(o.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:ns(i,t,n):(r=!t.$stable,es(t,i)),s=t}else t&&(ts(e,t),s={default:1});if(r)for(const a in i)!ui(a)&&s[a]==null&&delete i[a]},Qe=Ac;function bc(e){return yc(e)}function yc(e,t){const n=Xn();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:p,setScopeId:g=ct,insertStaticContent:x}=e,T=(d,h,y,A=null,M=null,O=null,K=void 0,V=null,R=!!h.dynamicChildren)=>{if(d===h)return;d&&!Zt(d,h)&&(A=Pt(d),he(d,M,O,!0),d=null),h.patchFlag===-2&&(R=!1,h.dynamicChildren=null);const{type:P,ref:Q,shapeFlag:Y}=h;switch(P){case yo:G(d,h,y,A);break;case He:F(d,h,y,A);break;case wo:d==null&&H(h,y,A,K);break;case Ee:m(d,h,y,A,M,O,K,V,R);break;default:Y&1?_(d,h,y,A,M,O,K,V,R):Y&6?S(d,h,y,A,M,O,K,V,R):(Y&64||Y&128)&&P.process(d,h,y,A,M,O,K,V,R,ze)}Q!=null&&M?Cn(Q,d&&d.ref,O,h||d,!h):Q==null&&d&&d.ref!=null&&Cn(d.ref,null,O,d,!0)},G=(d,h,y,A)=>{if(d==null)o(h.el=a(h.children),y,A);else{const M=h.el=d.el;h.children!==d.children&&u(M,h.children)}},F=(d,h,y,A)=>{d==null?o(h.el=l(h.children||""),y,A):h.el=d.el},H=(d,h,y,A)=>{[d.el,d.anchor]=x(d.children,h,y,A,d.el,d.anchor)},E=({el:d,anchor:h},y,A)=>{let M;for(;d&&d!==h;)M=p(d),o(d,y,A),d=M;o(h,y,A)},v=({el:d,anchor:h})=>{let y;for(;d&&d!==h;)y=p(d),i(d),d=y;i(h)},_=(d,h,y,A,M,O,K,V,R)=>{if(h.type==="svg"?K="svg":h.type==="math"&&(K="mathml"),d==null)C(h,y,A,M,O,K,V,R);else{const P=d.el&&d.el._isVueCE?d.el:null;try{P&&P._beginPatch(),I(d,h,M,O,K,V,R)}finally{P&&P._endPatch()}}},C=(d,h,y,A,M,O,K,V)=>{let R,P;const{props:Q,shapeFlag:Y,transition:ne,dirs:re}=d;if(R=d.el=s(d.type,O,Q&&Q.is,Q),Y&8?c(R,d.children):Y&16&&D(d.children,R,null,A,M,di(d,O),K,V),re&&Kt(d,null,A,"created"),W(R,d,d.scopeId,K,A),Q){for(const ye in Q)ye!=="value"&&!mn(ye)&&r(R,ye,null,Q[ye],O,A);"value"in Q&&r(R,"value",null,Q.value,O),(P=Q.onVnodeBeforeMount)&&vt(P,A,d)}re&&Kt(d,null,A,"beforeMount");const pe=wc(M,ne);pe&&ne.beforeEnter(R),o(R,h,y),((P=Q&&Q.onVnodeMounted)||pe||re)&&Qe(()=>{P&&vt(P,A,d),pe&&ne.enter(R),re&&Kt(d,null,A,"mounted")},M)},W=(d,h,y,A,M)=>{if(y&&g(d,y),A)for(let O=0;O<A.length;O++)g(d,A[O]);if(M){let O=M.subTree;if(h===O||us(O.type)&&(O.ssContent===h||O.ssFallback===h)){const K=M.vnode;W(d,K,K.scopeId,K.slotScopeIds,M.parent)}}},D=(d,h,y,A,M,O,K,V,R=0)=>{for(let P=R;P<d.length;P++){const Q=d[P]=V?Nt(d[P]):mt(d[P]);T(null,Q,h,y,A,M,O,K,V)}},I=(d,h,y,A,M,O,K)=>{const V=h.el=d.el;let{patchFlag:R,dynamicChildren:P,dirs:Q}=h;R|=d.patchFlag&16;const Y=d.props||ce,ne=h.props||ce;let re;if(y&&Yt(y,!1),(re=ne.onVnodeBeforeUpdate)&&vt(re,y,h,d),Q&&Kt(h,d,y,"beforeUpdate"),y&&Yt(y,!0),(Y.innerHTML&&ne.innerHTML==null||Y.textContent&&ne.textContent==null)&&c(V,""),P?j(d.dynamicChildren,P,V,y,A,di(h,M),O):K||w(d,h,V,null,y,A,di(h,M),O,!1),R>0){if(R&16)q(V,Y,ne,y,M);else if(R&2&&Y.class!==ne.class&&r(V,"class",null,ne.class,M),R&4&&r(V,"style",Y.style,ne.style,M),R&8){const pe=h.dynamicProps;for(let ye=0;ye<pe.length;ye++){const k=pe[ye],L=Y[k],se=ne[k];(se!==L||k==="value")&&r(V,k,L,se,M,y)}}R&1&&d.children!==h.children&&c(V,h.children)}else!K&&P==null&&q(V,Y,ne,y,M);((re=ne.onVnodeUpdated)||Q)&&Qe(()=>{re&&vt(re,y,h,d),Q&&Kt(h,d,y,"updated")},A)},j=(d,h,y,A,M,O,K)=>{for(let V=0;V<h.length;V++){const R=d[V],P=h[V],Q=R.el&&(R.type===Ee||!Zt(R,P)||R.shapeFlag&198)?f(R.el):y;T(R,P,Q,null,A,M,O,K,!0)}},q=(d,h,y,A,M)=>{if(h!==y){if(h!==ce)for(const O in h)!mn(O)&&!(O in y)&&r(d,O,h[O],null,M,A);for(const O in y){if(mn(O))continue;const K=y[O],V=h[O];K!==V&&O!=="value"&&r(d,O,V,K,M,A)}"value"in y&&r(d,"value",h.value,y.value,M)}},m=(d,h,y,A,M,O,K,V,R)=>{const P=h.el=d?d.el:a(""),Q=h.anchor=d?d.anchor:a("");let{patchFlag:Y,dynamicChildren:ne,slotScopeIds:re}=h;re&&(V=V?V.concat(re):re),d==null?(o(P,y,A),o(Q,y,A),D(h.children||[],y,Q,M,O,K,V,R)):Y>0&&Y&64&&ne&&d.dynamicChildren?(j(d.dynamicChildren,ne,y,M,O,K,V),(h.key!=null||M&&h===M.subTree)&&os(d,h,!0)):w(d,h,y,Q,M,O,K,V,R)},S=(d,h,y,A,M,O,K,V,R)=>{h.slotScopeIds=V,d==null?h.shapeFlag&512?M.ctx.activate(h,y,A,K,R):N(h,y,A,M,O,K,R):b(d,h,R)},N=(d,h,y,A,M,O,K)=>{const V=d.component=Rc(d,A,M);if(po(d)&&(V.ctx.renderer=ze),Fc(V,!1,K),V.asyncDep){if(M&&M.registerDep(V,z,K),!d.el){const R=V.subTree=te(He);F(null,R,h,y),d.placeholder=R.el}}else z(V,d,h,y,M,O,K)},b=(d,h,y)=>{const A=h.component=d.component;if(Oc(d,h,y))if(A.asyncDep&&!A.asyncResolved){U(A,h,y);return}else A.next=h,A.update();else h.el=d.el,A.vnode=h},z=(d,h,y,A,M,O,K)=>{const V=()=>{if(d.isMounted){let{next:Y,bu:ne,u:re,parent:pe,vnode:ye}=d;{const Ae=is(d);if(Ae){Y&&(Y.el=ye.el,U(d,Y,K)),Ae.asyncDep.then(()=>{d.isUnmounted||V()});return}}let k=Y,L;Yt(d,!1),Y?(Y.el=ye.el,U(d,Y,K)):Y=ye,ne&&Zn(ne),(L=Y.props&&Y.props.onVnodeBeforeUpdate)&&vt(L,pe,Y,ye),Yt(d,!0);const se=pi(d),de=d.subTree;d.subTree=se,T(de,se,f(de.el),Pt(de),d,M,O),Y.el=se.el,k===null&&$c(d,se.el),re&&Qe(re,M),(L=Y.props&&Y.props.onVnodeUpdated)&&Qe(()=>vt(L,pe,Y,ye),M)}else{let Y;const{el:ne,props:re}=h,{bm:pe,m:ye,parent:k,root:L,type:se}=d,de=cn(h);if(Yt(d,!1),pe&&Zn(pe),!de&&(Y=re&&re.onVnodeBeforeMount)&&vt(Y,k,h),Yt(d,!0),ne&&at){const Ae=()=>{d.subTree=pi(d),at(ne,d.subTree,d,M,null)};de&&se.__asyncHydrate?se.__asyncHydrate(ne,d,Ae):Ae()}else{L.ce&&L.ce._def.shadowRoot!==!1&&L.ce._injectChildStyle(se);const Ae=d.subTree=pi(d);T(null,Ae,y,A,d,M,O),h.el=Ae.el}if(ye&&Qe(ye,M),!de&&(Y=re&&re.onVnodeMounted)){const Ae=h;Qe(()=>vt(Y,k,Ae),M)}(h.shapeFlag&256||k&&cn(k.vnode)&&k.vnode.shapeFlag&256)&&d.a&&Qe(d.a,M),d.isMounted=!0,h=y=A=null}};d.scope.on();const R=d.effect=new Qi(V);d.scope.off();const P=d.update=R.run.bind(R),Q=d.job=R.runIfDirty.bind(R);Q.i=d,Q.id=d.uid,R.scheduler=()=>Qo(Q),Yt(d,!0),P()},U=(d,h,y)=>{h.component=d;const A=d.vnode.props;d.vnode=h,d.next=null,pc(d,h.props,A,y),vc(d,h.children,y),dt(),_r(d),pt()},w=(d,h,y,A,M,O,K,V,R=!1)=>{const P=d&&d.children,Q=d?d.shapeFlag:0,Y=h.children,{patchFlag:ne,shapeFlag:re}=h;if(ne>0){if(ne&128){fe(P,Y,y,A,M,O,K,V,R);return}else if(ne&256){B(P,Y,y,A,M,O,K,V,R);return}}re&8?(Q&16&&yt(P,M,O),Y!==P&&c(y,Y)):Q&16?re&16?fe(P,Y,y,A,M,O,K,V,R):yt(P,M,O,!0):(Q&8&&c(y,""),re&16&&D(Y,y,A,M,O,K,V,R))},B=(d,h,y,A,M,O,K,V,R)=>{d=d||it,h=h||it;const P=d.length,Q=h.length,Y=Math.min(P,Q);let ne;for(ne=0;ne<Y;ne++){const re=h[ne]=R?Nt(h[ne]):mt(h[ne]);T(d[ne],re,y,null,M,O,K,V,R)}P>Q?yt(d,M,O,!0,!1,Y):D(h,y,A,M,O,K,V,R,Y)},fe=(d,h,y,A,M,O,K,V,R)=>{let P=0;const Q=h.length;let Y=d.length-1,ne=Q-1;for(;P<=Y&&P<=ne;){const re=d[P],pe=h[P]=R?Nt(h[P]):mt(h[P]);if(Zt(re,pe))T(re,pe,y,null,M,O,K,V,R);else break;P++}for(;P<=Y&&P<=ne;){const re=d[Y],pe=h[ne]=R?Nt(h[ne]):mt(h[ne]);if(Zt(re,pe))T(re,pe,y,null,M,O,K,V,R);else break;Y--,ne--}if(P>Y){if(P<=ne){const re=ne+1,pe=re<Q?h[re].el:A;for(;P<=ne;)T(null,h[P]=R?Nt(h[P]):mt(h[P]),y,pe,M,O,K,V,R),P++}}else if(P>ne)for(;P<=Y;)he(d[P],M,O,!0),P++;else{const re=P,pe=P,ye=new Map;for(P=pe;P<=ne;P++){const ot=h[P]=R?Nt(h[P]):mt(h[P]);ot.key!=null&&ye.set(ot.key,P)}let k,L=0;const se=ne-pe+1;let de=!1,Ae=0;const Vt=new Array(se);for(P=0;P<se;P++)Vt[P]=0;for(P=re;P<=Y;P++){const ot=d[P];if(L>=se){he(ot,M,O,!0);continue}let wt;if(ot.key!=null)wt=ye.get(ot.key);else for(k=pe;k<=ne;k++)if(Vt[k-pe]===0&&Zt(ot,h[k])){wt=k;break}wt===void 0?he(ot,M,O,!0):(Vt[wt-pe]=P+1,wt>=Ae?Ae=wt:de=!0,T(ot,h[wt],y,null,M,O,K,V,R),L++)}const Hi=de?xc(Vt):it;for(k=Hi.length-1,P=se-1;P>=0;P--){const ot=pe+P,wt=h[ot],Gl=h[ot+1],Jl=ot+1<Q?Gl.el||Gl.placeholder:A;Vt[P]===0?T(null,wt,y,Jl,M,O,K,V,R):de&&(k<0||P!==Hi[k]?ue(wt,y,Jl,2):k--)}}},ue=(d,h,y,A,M=null)=>{const{el:O,type:K,transition:V,children:R,shapeFlag:P}=d;if(P&6){ue(d.component.subTree,h,y,A);return}if(P&128){d.suspense.move(h,y,A);return}if(P&64){K.move(d,h,y,ze);return}if(K===Ee){o(O,h,y);for(let Y=0;Y<R.length;Y++)ue(R[Y],h,y,A);o(d.anchor,h,y);return}if(K===wo){E(d,h,y);return}if(A!==2&&P&1&&V)if(A===0)V.beforeEnter(O),o(O,h,y),Qe(()=>V.enter(O),M);else{const{leave:Y,delayLeave:ne,afterLeave:re}=V,pe=()=>{d.ctx.isUnmounted?i(O):o(O,h,y)},ye=()=>{O._isLeaving&&O[Tt](!0),Y(O,()=>{pe(),re&&re()})};ne?ne(O,pe,ye):ye()}else o(O,h,y)},he=(d,h,y,A=!1,M=!1)=>{const{type:O,props:K,ref:V,children:R,dynamicChildren:P,shapeFlag:Q,patchFlag:Y,dirs:ne,cacheIndex:re}=d;if(Y===-2&&(M=!1),V!=null&&(dt(),Cn(V,null,y,d,!0),pt()),re!=null&&(h.renderCache[re]=void 0),Q&256){h.ctx.deactivate(d);return}const pe=Q&1&&ne,ye=!cn(d);let k;if(ye&&(k=K&&K.onVnodeBeforeUnmount)&&vt(k,h,d),Q&6)Ge(d.component,y,A);else{if(Q&128){d.suspense.unmount(y,A);return}pe&&Kt(d,null,h,"beforeUnmount"),Q&64?d.type.remove(d,h,y,ze,A):P&&!P.hasOnce&&(O!==Ee||Y>0&&Y&64)?yt(P,h,y,!1,!0):(O===Ee&&Y&384||!M&&Q&16)&&yt(R,h,y),A&&ke(d)}(ye&&(k=K&&K.onVnodeUnmounted)||pe)&&Qe(()=>{k&&vt(k,h,d),pe&&Kt(d,null,h,"unmounted")},y)},ke=d=>{const{type:h,el:y,anchor:A,transition:M}=d;if(h===Ee){Le(y,A);return}if(h===wo){v(d);return}const O=()=>{i(y),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(d.shapeFlag&1&&M&&!M.persisted){const{leave:K,delayLeave:V}=M,R=()=>K(y,O);V?V(d.el,O,R):R()}else O()},Le=(d,h)=>{let y;for(;d!==h;)y=p(d),i(d),d=y;i(h)},Ge=(d,h,y)=>{const{bum:A,scope:M,job:O,subTree:K,um:V,m:R,a:P}=d;rs(R),rs(P),A&&Zn(A),M.stop(),O&&(O.flags|=8,he(K,d,h,y)),V&&Qe(V,h),Qe(()=>{d.isUnmounted=!0},h)},yt=(d,h,y,A=!1,M=!1,O=0)=>{for(let K=O;K<d.length;K++)he(d[K],h,y,A,M)},Pt=d=>{if(d.shapeFlag&6)return Pt(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const h=p(d.anchor||d.el),y=h&&h[Ua];return y?p(y):h};let Ot=!1;const Ht=(d,h,y)=>{d==null?h._vnode&&he(h._vnode,null,null,!0):T(h._vnode||null,d,h,null,null,null,y),h._vnode=d,Ot||(Ot=!0,_r(),Sr(),Ot=!1)},ze={p:T,um:he,m:ue,r:ke,mt:N,mc:D,pc:w,pbc:j,n:Pt,o:e};let tn,at;return t&&([tn,at]=t(ze)),{render:Ht,hydrate:tn,createApp:fc(Ht,tn)}}function di({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 Yt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function os(e,t,n=!1){const o=e.children,i=t.children;if(oe(o)&&oe(i))for(let r=0;r<o.length;r++){const s=o[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Nt(i[r]),a.el=s.el),!n&&a.patchFlag!==-2&&os(s,a)),a.type===yo&&a.patchFlag!==-1&&(a.el=s.el),a.type===He&&!a.el&&(a.el=s.el)}}function xc(e){const t=e.slice(),n=[0];let o,i,r,s,a;const l=e.length;for(o=0;o<l;o++){const u=e[o];if(u!==0){if(i=n[n.length-1],e[i]<u){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)a=r+s>>1,e[n[a]]<u?r=a+1:s=a;u<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function is(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:is(t)}function rs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const _c=Symbol.for("v-scx"),Sc=()=>Lt(_c);function kc(e,t){return vo(e,null,t)}function Cc(e,t){return vo(e,null,{flush:"sync"})}function me(e,t,n){return vo(e,t,n)}function vo(e,t,n=ce){const{immediate:o,deep:i,flush:r,once:s}=n,a=Se({},n),l=t&&o||!t&&r!=="post";let u;if(Dn){if(r==="sync"){const g=Sc();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=ct,g.resume=ct,g.pause=ct,g}}const c=Ve;a.call=(g,x,T)=>ft(g,c,x,T);let f=!1;r==="post"?a.scheduler=g=>{Qe(g,c&&c.suspense)}:r!=="sync"&&(f=!0,a.scheduler=(g,x)=>{x?g():Qo(g)}),a.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const p=Na(e,t,a);return Dn&&(u?u.push(p):l&&p()),p}function Tc(e,t,n){const o=this.proxy,i=Ce(e)?e.includes(".")?ss(o,e):()=>o[e]:e.bind(o,o);let r;le(t)?r=t:(r=t.handler,n=t);const s=zn(this),a=vo(i,r.bind(o),n);return s(),a}function ss(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function Mn(e,t,n=ce){const o=Ln(),i=je(t),r=qe(t),s=ls(e,i),a=br((l,u)=>{let c,f=ce,p;return Cc(()=>{const g=e[i];Ye(c,g)&&(c=g,u())}),{get(){return l(),n.get?n.get(c):c},set(g){const x=n.set?n.set(g):g;if(!Ye(x,c)&&!(f!==ce&&Ye(g,f)))return;const T=o.vnode.props;T&&(t in T||i in T||r in T)&&(`onUpdate:${t}`in T||`onUpdate:${i}`in T||`onUpdate:${r}`in T)||(c=g,u()),o.emit(`update:${t}`,x),Ye(g,x)&&Ye(g,f)&&!Ye(x,p)&&u(),f=g,p=x}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||ce:a,done:!1}:{done:!0}}}},a}const ls=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${je(t)}Modifiers`]||e[`${qe(t)}Modifiers`];function Ic(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ce;let i=n;const r=t.startsWith("update:"),s=r&&ls(o,t.slice(7));s&&(s.trim&&(i=n.map(c=>Ce(c)?c.trim():c)),s.number&&(i=n.map(No)));let a,l=o[a=Do(t)]||o[a=Do(je(t))];!l&&r&&(l=o[a=Do(qe(t))]),l&&ft(l,e,6,i);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ft(u,e,6,i)}}const Ec=new WeakMap;function as(e,t,n=!1){const o=n?Ec:t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},a=!1;if(!le(e)){const l=u=>{const c=as(u,t,!0);c&&(a=!0,Se(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(xe(e)&&o.set(e,null),null):(oe(r)?r.forEach(l=>s[l]=null):Se(s,r),xe(e)&&o.set(e,s),s)}function bo(e,t){return!e||!Wn(t)?!1:(t=t.slice(2).replace(/Once$/,""),be(e,t[0].toLowerCase()+t.slice(1))||be(e,qe(t))||be(e,t))}function gh(){}function pi(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[r],slots:s,attrs:a,emit:l,render:u,renderCache:c,props:f,data:p,setupState:g,ctx:x,inheritAttrs:T}=e,G=co(e);let F,H;try{if(n.shapeFlag&4){const v=i||o,_=v;F=mt(u.call(_,v,c,f,g,p,x)),H=a}else{const v=t;F=mt(v.length>1?v(f,{attrs:a,slots:s,emit:l}):v(f,null)),H=t.props?a:Mc(a)}}catch(v){Pn.length=0,lo(v,e,1),F=te(He)}let E=F;if(H&&T!==!1){const v=Object.keys(H),{shapeFlag:_}=E;v.length&&_&7&&(r&&v.some(Ao)&&(H=Pc(H,r)),E=zt(E,H,!1,!0))}return n.dirs&&(E=zt(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&kn(E,n.transition),F=E,co(G),F}const Mc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wn(n))&&((t||(t={}))[n]=e[n]);return t},Pc=(e,t)=>{const n={};for(const o in e)(!Ao(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Oc(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:a,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?cs(o,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const p=c[f];if(s[p]!==o[p]&&!bo(u,p))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:o===s?!1:o?s?cs(o,s,u):!0:!!s;return!1}function cs(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!bo(n,r))return!0}return!1}function $c({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 us=e=>e.__isSuspense;function Ac(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):Wa(e)}const Ee=Symbol.for("v-fgt"),yo=Symbol.for("v-txt"),He=Symbol.for("v-cmt"),wo=Symbol.for("v-stc"),Pn=[];let et=null;function $(e=!1){Pn.push(et=e?null:[])}function Lc(){Pn.pop(),et=Pn[Pn.length-1]||null}let On=1;function xo(e,t=!1){On+=e,e<0&&et&&t&&(et.hasOnce=!0)}function fs(e){return e.dynamicChildren=On>0?et||it:null,Lc(),On>0&&et&&et.push(e),e}function Z(e,t,n,o,i,r){return fs(J(e,t,n,o,i,r,!0))}function ve(e,t,n,o,i){return fs(te(e,t,n,o,i,!0))}function $n(e){return e?e.__v_isVNode===!0:!1}function Zt(e,t){return e.type===t.type&&e.key===t.key}const ds=({key:e})=>e??null,_o=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ce(e)||Pe(e)||le(e)?{i:Ne,r:e,k:t,f:!!n}:e:null);function J(e,t=null,n=null,o=0,i=null,r=e===Ee?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ds(t),ref:t&&_o(t),scopeId:Cr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ne};return a?(hi(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=Ce(n)?8:16),On>0&&!s&&et&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&et.push(l),l}const te=zc;function zc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===Br)&&(e=He),$n(e)){const a=zt(e,t,!0);return n&&hi(a,n),On>0&&!r&&et&&(a.shapeFlag&6?et[et.indexOf(e)]=a:et.push(a)),a.patchFlag=-2,a}if(qc(e)&&(e=e.__vccOpts),t){t=Dc(t);let{class:a,style:l}=t;a&&!Ce(a)&&(t.class=Oe(a)),xe(l)&&(Go(l)&&!oe(l)&&(l=Se({},l)),t.style=Be(l))}const s=Ce(e)?1:us(e)?128:Tr(e)?64:xe(e)?4:le(e)?2:0;return J(e,t,n,o,i,s,r,!0)}function Dc(e){return e?Go(e)||Xr(e)?Se({},e):e:null}function zt(e,t,n=!1,o=!1){const{props:i,ref:r,patchFlag:s,children:a,transition:l}=e,u=t?An(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ds(u),ref:t&&t.ref?n&&r?oe(r)?r.concat(_o(t)):[r,_o(t)]:_o(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zt(e.ssContent),ssFallback:e.ssFallback&&zt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&kn(c,l.clone(c)),c}function Dt(e=" ",t=0){return te(yo,null,e,t)}function Nc(e,t){const n=te(wo,null,e);return n.staticCount=t,n}function Me(e="",t=!1){return t?($(),ve(He,null,e)):te(He,null,e)}function mt(e){return e==null||typeof e=="boolean"?te(He):oe(e)?te(Ee,null,e.slice()):$n(e)?Nt(e):te(yo,null,String(e))}function Nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zt(e)}function hi(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(oe(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),hi(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Xr(t)?t._ctx=Ne:i===3&&Ne&&(Ne.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Ne},n=32):(t=String(t),o&64?(n=16,t=[Dt(t)]):n=8);e.children=t,e.shapeFlag|=n}function An(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Oe([t.class,o.class]));else if(i==="style")t.style=Be([t.style,o.style]);else if(Wn(i)){const r=t[i],s=o[i];s&&r!==s&&!(oe(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function vt(e,t,n,o=null){ft(e,t,7,[n,o])}const jc=qr();let Bc=0;function Rc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||jc,r={uid:Bc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new aa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jr(o,i),emitsOptions:as(o,i),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:o.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=Ic.bind(null,r),e.ce&&e.ce(r),r}let Ve=null;const Ln=()=>Ve||Ne;let So,gi;{const e=Xn(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};So=t("__VUE_INSTANCE_SETTERS__",n=>Ve=n),gi=t("__VUE_SSR_SETTERS__",n=>Dn=n)}const zn=e=>{const t=Ve;return So(e),e.scope.on(),()=>{e.scope.off(),So(t)}},ps=()=>{Ve&&Ve.scope.off(),So(null)};function hs(e){return e.vnode.shapeFlag&4}let Dn=!1;function Fc(e,t=!1,n=!1){t&&gi(t);const{props:o,children:i}=e.vnode,r=hs(e);dc(e,o,r,t),mc(e,i,n||t);const s=r?Hc(e,t):void 0;return t&&gi(!1),s}function Hc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ic);const{setup:o}=n;if(o){dt();const i=e.setupContext=o.length>1?Wc(e):null,r=zn(e),s=sn(o,e,0,[e.props,i]),a=Ui(s);if(pt(),r(),(a||e.sp)&&!cn(e)&&Ar(e),a){if(s.then(ps,ps),t)return s.then(l=>{gs(e,l,t)}).catch(l=>{lo(l,e,0)});e.asyncDep=s}else gs(e,s,t)}else vs(e,t)}function gs(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xe(t)&&(e.setupState=vr(t)),vs(e,n)}let ms;function vs(e,t,n){const o=e.type;if(!e.render){if(!t&&ms&&!o.render){const i=o.template||li(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,u=Se(Se({isCustomElement:r,delimiters:a},s),l);o.render=ms(i,u)}}e.render=o.render||ct}{const i=zn(e);dt();try{rc(e)}finally{pt(),i()}}}const Vc={get(e,t){return Fe(e,"get",""),e[t]}};function Wc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Vc),slots:e.slots,emit:e.emit,expose:t}}function ko(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vr(Ma(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Tn)return Tn[n](e)},has(t,n){return n in t||n in Tn}})):e.proxy}const Uc=/(?:^|[-_])\w/g,Kc=e=>e.replace(Uc,t=>t.toUpperCase()).replace(/[-_]/g,"");function bs(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function ys(e,t,n=!1){let o=bs(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?Kc(o):n?"App":"Anonymous"}function qc(e){return le(e)&&"__vccOpts"in e}const ie=(e,t)=>za(e,t,Dn);function ws(e,t,n){try{xo(-1);const o=arguments.length;return o===2?xe(t)&&!oe(t)?$n(t)?te(e,null,[t]):te(e,t):te(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&$n(n)&&(n=[n]),te(e,t,n))}finally{xo(1)}}const Yc="3.5.24";/**
15
+ `,...$a(i)),console.warn(...r)}gt(),ei=!1}function Oa(){let e=Cn[Cn.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 $a(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
+ `],...Aa(n))}),t}function Aa({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${ws(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...La(e.props),r]:[i+r]}function La(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...yr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function yr(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}`]:Ce(t)?(t=yr(e,ge(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ae(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ge(t),n?t:[`${e}=`,t])}function cn(e,t,n,o){try{return o?e(...o):e()}catch(i){ao(i,t,n)}}function dt(e,t,n,o){if(ae(e)){const i=cn(e,t,n,o);return i&&Ki(i)&&i.catch(r=>{ao(r,t,n)}),i}if(re(e)){const i=[];for(let r=0;r<e.length;r++)i.push(dt(e[r],t,n,o));return i}}function ao(e,t,n,o=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||fe;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(r){ht(),cn(r,null,10,[e,l,u]),gt();return}}za(e,n,i,o,s)}function za(e,t,n,o=!0,i=!1){if(i)throw e;console.error(e)}const Ue=[];let mt=-1;const un=[];let Dt=null,fn=0;const wr=Promise.resolve();let co=null;function It(e){const t=co||wr;return e?t.then(this?e.bind(this):e):t}function Da(e){let t=mt+1,n=Ue.length;for(;t<n;){const o=t+n>>>1,i=Ue[o],r=Tn(i);r<e||r===e&&i.flags&2?t=o+1:n=o}return t}function ti(e){if(!(e.flags&1)){const t=Tn(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=Tn(n)?Ue.push(e):Ue.splice(Da(t),0,e),e.flags|=1,xr()}}function xr(){co||(co=wr.then(kr))}function Na(e){re(e)?un.push(...e):Dt&&e.id===-1?Dt.splice(fn+1,0,e):e.flags&1||(un.push(e),e.flags|=1),xr()}function _r(e,t,n=mt+1){for(;n<Ue.length;n++){const o=Ue[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ue.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function Sr(e){if(un.length){const t=[...new Set(un)].sort((n,o)=>Tn(n)-Tn(o));if(un.length=0,Dt){Dt.push(...t);return}for(Dt=t,fn=0;fn<Dt.length;fn++){const n=Dt[fn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Dt=null,fn=0}}const Tn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function kr(e){try{for(mt=0;mt<Ue.length;mt++){const t=Ue[mt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),cn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;mt<Ue.length;mt++){const t=Ue[mt];t&&(t.flags&=-2)}mt=-1,Ue.length=0,Sr(),co=null,(Ue.length||un.length)&&kr()}}let ze=null,Cr=null;function uo(e){const t=ze;return ze=e,Cr=e&&e.type.__scopeId||null,t}function ce(e,t=ze,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&_o(-1);const r=uo(t);let s;try{s=e(...i)}finally{uo(r),o._d&&_o(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function vt(e,t){if(ze===null)return e;const n=Co(ze),o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,a,l=fe]=t[i];r&&(ae(r)&&(r={mounted:r,updated:r}),r.deep&&Tt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function Yt(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];r&&(a.oldValue=r[s].value);let l=a.dir[o];l&&(ht(),dt(l,n,8,[e.el,a,e,t]),gt())}}const ja=Symbol("_vte"),Tr=e=>e.__isTeleport,Mt=Symbol("_leaveCb"),fo=Symbol("_enterCb");function Ra(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ge(()=>{e.isMounted=!0}),ii(()=>{e.isUnmounting=!0}),e}const st=[Function,Array],Ir={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:st,onEnter:st,onAfterEnter:st,onEnterCancelled:st,onBeforeLeave:st,onLeave:st,onAfterLeave:st,onLeaveCancelled:st,onBeforeAppear:st,onAppear:st,onAfterAppear:st,onAppearCancelled:st},Mr=e=>{const t=e.subTree;return t.component?Mr(t.component):t},Ba={name:"BaseTransition",props:Ir,setup(e,{slots:t}){const n=Qt(),o=Ra();return()=>{const i=t.default&&$r(t.default(),!0);if(!i||!i.length)return;const r=Er(i),s=ge(e),{mode:a}=s;if(o.isLeaving)return oi(r);const l=Or(r);if(!l)return oi(r);let u=ni(l,s,o,n,f=>u=f);l.type!==Fe&&In(l,u);let c=n.subTree&&Or(n.subTree);if(c&&c.type!==Fe&&!Jt(c,l)&&Mr(n).type!==Fe){let f=ni(c,s,o,n);if(In(c,f),a==="out-in"&&l.type!==Fe)return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},oi(r);a==="in-out"&&l.type!==Fe?f.delayLeave=(h,g,w)=>{const C=Pr(o,c);C[String(c.key)]=c,h[Mt]=()=>{g(),h[Mt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{w(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function Er(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Fe){t=n;break}}return t}const Fa=Ba;function Pr(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 ni(e,t,n,o,i){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:w,onLeaveCancelled:C,onBeforeAppear:F,onAppear:H,onAfterAppear:Y,onAppearCancelled:W}=t,I=String(e.key),y=Pr(n,e),m=(k,A)=>{k&&dt(k,o,9,A)},D=(k,A)=>{const J=A[1];m(k,A),re(k)?k.every(v=>v.length<=1)&&J():k.length<=1&&J()},N={mode:s,persisted:a,beforeEnter(k){let A=l;if(!n.isMounted)if(r)A=F||l;else return;k[Mt]&&k[Mt](!0);const J=y[I];J&&Jt(e,J)&&J.el[Mt]&&J.el[Mt](),m(A,[k])},enter(k){let A=u,J=c,v=f;if(!n.isMounted)if(r)A=H||u,J=Y||c,v=W||f;else return;let x=!1;const B=k[fo]=Q=>{x||(x=!0,Q?m(v,[k]):m(J,[k]),N.delayedLeave&&N.delayedLeave(),k[fo]=void 0)};A?D(A,[k,B]):B()},leave(k,A){const J=String(e.key);if(k[fo]&&k[fo](!0),n.isUnmounting)return A();m(h,[k]);let v=!1;const x=k[Mt]=B=>{v||(v=!0,A(),B?m(C,[k]):m(w,[k]),k[Mt]=void 0,y[J]===e&&delete y[J])};y[J]=e,g?D(g,[k,x]):x()},clone(k){const A=ni(k,t,n,o,i);return i&&i(A),A}};return N}function oi(e){if(ho(e))return e=Nt(e),e.children=null,e}function Or(e){if(!ho(e))return Tr(e.type)&&e.children?Er(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ae(n.default))return n.default()}}function In(e,t){e.shapeFlag&6&&e.component?(e.transition=t,In(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 $r(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Me?(s.patchFlag&128&&i++,o=o.concat($r(s.children,t,a))):(t||s.type!==Fe)&&o.push(a!=null?Nt(s,{key:a}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}function Te(e,t){return ae(e)?Se({name:e.name},t,{setup:e}):e}function Ar(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const po=new WeakMap;function Mn(e,t,n,o,i=!1){if(re(e)){e.forEach((w,C)=>Mn(w,t&&(re(t)?t[C]:t),n,o,i));return}if(dn(o)&&!i){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Mn(e,t,n,o.component.subTree);return}const r=o.shapeFlag&4?Co(o.component):o.el,s=i?null:r,{i:a,r:l}=e,u=t&&t.r,c=a.refs===fe?a.refs={}:a.refs,f=a.setupState,h=ge(f),g=f===fe?Wi:w=>be(h,w);if(u!=null&&u!==l){if(Lr(t),ke(u))c[u]=null,g(u)&&(f[u]=null);else if(Ce(u)){u.value=null;const w=t;w.k&&(c[w.k]=null)}}if(ae(l))cn(l,a,12,[s,c]);else{const w=ke(l),C=Ce(l);if(w||C){const F=()=>{if(e.f){const H=w?g(l)?f[l]:c[l]:l.value;if(i)re(H)&&zo(H,r);else if(re(H))H.includes(r)||H.push(r);else if(w)c[l]=[r],g(l)&&(f[l]=c[l]);else{const Y=[r];l.value=Y,e.k&&(c[e.k]=Y)}}else w?(c[l]=s,g(l)&&(f[l]=s)):C&&(l.value=s,e.k&&(c[e.k]=s))};if(s){const H=()=>{F(),po.delete(e)};H.id=-1,po.set(e,H),Qe(H,n)}else Lr(e),F()}}}function Lr(e){const t=po.get(e);t&&(t.flags|=8,po.delete(e))}Gn().requestIdleCallback,Gn().cancelIdleCallback;const dn=e=>!!e.type.__asyncLoader,ho=e=>e.type.__isKeepAlive;function Ha(e,t){zr(e,"a",t)}function Va(e,t){zr(e,"da",t)}function zr(e,t,n=He){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(go(t,o,n),n){let i=n.parent;for(;i&&i.parent;)ho(i.parent.vnode)&&Wa(o,t,n,i),i=i.parent}}function Wa(e,t,n,o){const i=go(t,e,o,!0);Zt(()=>{zo(o[t],i)},n)}function go(e,t,n=He,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{ht();const a=Nn(n),l=dt(t,n,e,s);return a(),gt(),l});return o?i.unshift(r):i.push(r),r}}const Et=e=>(t,n=He)=>{(!jn||e==="sp")&&go(e,(...o)=>t(...o),n)},Ua=Et("bm"),Ge=Et("m"),Ka=Et("bu"),qa=Et("u"),ii=Et("bum"),Zt=Et("um"),Ya=Et("sp"),Za=Et("rtg"),Xa=Et("rtc");function Dr(e,t=He){go("ec",e,t)}const Ga="components",Nr=Symbol.for("v-ndc");function jr(e){return ke(e)?Ja(Ga,e,!1)||e:e||Nr}function Ja(e,t,n=!0,o=!1){const i=ze||He;if(i){const r=i.type;{const a=ys(r,!1);if(a&&(a===t||a===Ne(t)||a===Zn(Ne(t))))return r}const s=Rr(i[e]||r[e],t)||Rr(i.appContext[e],t);return!s&&o?r:s}}function Rr(e,t){return e&&(e[t]||e[Ne(t)]||e[Zn(Ne(t))])}function pn(e,t,n,o){let i;const r=n,s=re(e);if(s||ke(e)){const a=s&&an(e);let l=!1,u=!1;a&&(l=!rt(e),u=zt(e),e=Qn(e)),i=new Array(e.length);for(let c=0,f=e.length;c<f;c++)i[c]=t(l?u?ro(Le(e[c])):Le(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,r)}else if(xe(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,r));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=t(e[c],c,l,r)}}else i=[];return i}function ri(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(re(o))for(let i=0;i<o.length;i++)e[o[i].name]=o[i].fn;else o&&(e[o.name]=o.key?(...i)=>{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return e}function Ie(e,t,n={},o,i){if(ze.ce||ze.parent&&dn(ze.parent)&&ze.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),O(),ve(Me,null,[ee("slot",n,o&&o())],u?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),O();const s=r&&Br(r(n)),a=n.key||s&&s.key,l=ve(Me,{key:(a&&!St(a)?a:`_${t}`)+(!s&&o?"_fb":"")},s||(o?o():[]),s&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Br(e){return e.some(t=>zn(t)?!(t.type===Fe||t.type===Me&&!Br(t.children)):!0)?e:null}const si=e=>e?ms(e)?Co(e):si(e.parent):null,En=Se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>si(e.parent),$root:e=>si(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vr(e),$forceUpdate:e=>e.f||(e.f=()=>{ti(e.update)}),$nextTick:e=>e.n||(e.n=It.bind(e.proxy)),$watch:e=>wc.bind(e)}),li=(e,t)=>e!==fe&&!e.__isScriptSetup&&be(e,t),Qa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(li(o,t))return s[t]=1,o[t];if(i!==fe&&be(i,t))return s[t]=2,i[t];if((u=e.propsOptions[0])&&be(u,t))return s[t]=3,r[t];if(n!==fe&&be(n,t))return s[t]=4,n[t];ai&&(s[t]=0)}}const c=En[t];let f,h;if(c)return t==="$attrs"&&Be(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==fe&&be(n,t))return s[t]=4,n[t];if(h=l.config.globalProperties,be(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return li(i,t)?(i[t]=n,!0):o!==fe&&be(o,t)?(o[t]=n,!0):be(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r,type:s}},a){let l,u;return!!(n[a]||e!==fe&&a[0]!=="$"&&be(e,a)||li(t,a)||(l=r[0])&&be(l,a)||be(o,a)||be(En,a)||be(i.config.globalProperties,a)||(u=s.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:be(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function mo(e){return re(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function hn(e,t){return!e||!t?e||t:re(e)&&re(t)?e.concat(t):Se({},mo(e),mo(t))}let ai=!0;function ec(e){const t=Vr(e),n=e.proxy,o=e.ctx;ai=!1,t.beforeCreate&&Fr(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:g,updated:w,activated:C,deactivated:F,beforeDestroy:H,beforeUnmount:Y,destroyed:W,unmounted:I,render:y,renderTracked:m,renderTriggered:D,errorCaptured:N,serverPrefetch:k,expose:A,inheritAttrs:J,components:v,directives:x,filters:B}=t;if(u&&tc(u,o,null),s)for(const z in s){const b=s[z];ae(b)&&(o[z]=b.bind(n))}if(i){const z=i.call(n,n);xe(z)&&(e.data=oo(z))}if(ai=!0,r)for(const z in r){const b=r[z],X=ae(b)?b.bind(n,n):ae(b.get)?b.get.bind(n,n):pt,ne=!ae(b)&&ae(b.set)?b.set.bind(n):pt,se=ie({get:X,set:ne});Object.defineProperty(o,z,{enumerable:!0,configurable:!0,get:()=>se.value,set:pe=>se.value=pe})}if(a)for(const z in a)Hr(a[z],o,n,z);if(l){const z=ae(l)?l.call(n):l;Reflect.ownKeys(z).forEach(b=>{On(b,z[b])})}c&&Fr(c,e,"c");function _(z,b){re(b)?b.forEach(X=>z(X.bind(n))):b&&z(b.bind(n))}if(_(Ua,f),_(Ge,h),_(Ka,g),_(qa,w),_(Ha,C),_(Va,F),_(Dr,N),_(Xa,m),_(Za,D),_(ii,Y),_(Zt,I),_(Ya,k),re(A))if(A.length){const z=e.exposed||(e.exposed={});A.forEach(b=>{Object.defineProperty(z,b,{get:()=>n[b],set:X=>n[b]=X,enumerable:!0})})}else e.exposed||(e.exposed={});y&&e.render===pt&&(e.render=y),J!=null&&(e.inheritAttrs=J),v&&(e.components=v),x&&(e.directives=x),k&&Ar(e)}function tc(e,t,n=pt){re(e)&&(e=ci(e));for(const o in e){const i=e[o];let r;xe(i)?"default"in i?r=Pt(i.from||o,i.default,!0):r=Pt(i.from||o):r=Pt(i),Ce(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function Fr(e,t,n){dt(re(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Hr(e,t,n,o){let i=o.includes(".")?ls(n,o):()=>n[o];if(ke(e)){const r=t[e];ae(r)&&me(i,r)}else if(ae(e))me(i,e.bind(n));else if(xe(e))if(re(e))e.forEach(r=>Hr(r,t,n,o));else{const r=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(r)&&me(i,r,e)}}function Vr(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!n&&!o?l=t:(l={},i.length&&i.forEach(u=>vo(l,u,s,!0)),vo(l,t,s)),xe(t)&&r.set(t,l),l}function vo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&vo(e,r,n,!0),i&&i.forEach(s=>vo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=nc[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const nc={data:Wr,props:Ur,emits:Ur,methods:Pn,computed:Pn,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:Pn,directives:Pn,watch:ic,provide:Wr,inject:oc};function Wr(e,t){return t?e?function(){return Se(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function oc(e,t){return Pn(ci(e),ci(t))}function ci(e){if(re(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ke(e,t){return e?[...new Set([].concat(e,t))]:t}function Pn(e,t){return e?Se(Object.create(null),e,t):t}function Ur(e,t){return e?re(e)&&re(t)?[...new Set([...e,...t])]:Se(Object.create(null),mo(e),mo(t??{})):t}function ic(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=Ke(e[o],t[o]);return n}function Kr(){return{app:null,config:{isNativeTag:Wi,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 rc=0;function sc(e,t){return function(o,i=null){ae(o)||(o=Se({},o)),i!=null&&!xe(i)&&(i=null);const r=Kr(),s=new WeakSet,a=[];let l=!1;const u=r.app={_uid:rc++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:Hc,get config(){return r.config},set config(c){},use(c,...f){return s.has(c)||(c&&ae(c.install)?(s.add(c),c.install(u,...f)):ae(c)&&(s.add(c),c(u,...f))),u},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),u},component(c,f){return f?(r.components[c]=f,u):r.components[c]},directive(c,f){return f?(r.directives[c]=f,u):r.directives[c]},mount(c,f,h){if(!l){const g=u._ceVNode||ee(o,i);return g.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),e(g,c,h),l=!0,u._container=c,c.__vue_app__=u,Co(g.component)}},onUnmount(c){a.push(c)},unmount(){l&&(dt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return r.provides[c]=f,u},runWithContext(c){const f=Xt;Xt=u;try{return c()}finally{Xt=f}}};return u}}let Xt=null;function On(e,t){if(He){let n=He.provides;const o=He.parent&&He.parent.provides;o===n&&(n=He.provides=Object.create(o)),n[e]=t}}function Pt(e,t,n=!1){const o=Qt();if(o||Xt){let i=Xt?Xt._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ae(t)?t.call(o&&o.proxy):t}}function qr(){return!!(Qt()||Xt)}const Yr={},Zr=()=>Object.create(Yr),Xr=e=>Object.getPrototypeOf(e)===Yr;function lc(e,t,n,o=!1){const i={},r=Zr();e.propsDefaults=Object.create(null),Gr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:xa(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function ac(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,a=ge(i),[l]=e.propsOptions;let u=!1;if((o||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(yo(e.emitsOptions,h))continue;const g=t[h];if(l)if(be(r,h))g!==r[h]&&(r[h]=g,u=!0);else{const w=Ne(h);i[w]=ui(l,a,w,g,e,!1)}else g!==r[h]&&(r[h]=g,u=!0)}}}else{Gr(e,t,i,r)&&(u=!0);let c;for(const f in a)(!t||!be(t,f)&&((c=Ye(f))===f||!be(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=ui(l,a,f,void 0,e,!0)):delete i[f]);if(r!==a)for(const f in r)(!t||!be(t,f))&&(delete r[f],u=!0)}u&&kt(e.attrs,"set","")}function Gr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(yn(l))continue;const u=t[l];let c;i&&be(i,c=Ne(l))?!r||!r.includes(c)?n[c]=u:(a||(a={}))[c]=u:yo(e.emitsOptions,l)||(!(l in o)||u!==o[l])&&(o[l]=u,s=!0)}if(r){const l=ge(n),u=a||fe;for(let c=0;c<r.length;c++){const f=r[c];n[f]=ui(i,l,f,u[f],e,!be(u,f))}}return s}function ui(e,t,n,o,i,r){const s=e[n];if(s!=null){const a=be(s,"default");if(a&&o===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&ae(l)){const{propsDefaults:u}=i;if(n in u)o=u[n];else{const c=Nn(i);o=u[n]=l.call(null,t),c()}}else o=l;i.ce&&i.ce._setProp(n,o)}s[0]&&(r&&!a?o=!1:s[1]&&(o===""||o===Ye(n))&&(o=!0))}return o}const cc=new WeakMap;function Jr(e,t,n=!1){const o=n?cc:t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},a=[];let l=!1;if(!ae(e)){const c=f=>{l=!0;const[h,g]=Jr(f,t,!0);Se(s,h),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!l)return xe(e)&&o.set(e,at),at;if(re(r))for(let c=0;c<r.length;c++){const f=Ne(r[c]);Qr(f)&&(s[f]=fe)}else if(r)for(const c in r){const f=Ne(c);if(Qr(f)){const h=r[c],g=s[f]=re(h)||ae(h)?{type:h}:Se({},h),w=g.type;let C=!1,F=!0;if(re(w))for(let H=0;H<w.length;++H){const Y=w[H],W=ae(Y)&&Y.name;if(W==="Boolean"){C=!0;break}else W==="String"&&(F=!1)}else C=ae(w)&&w.name==="Boolean";g[0]=C,g[1]=F,(C||be(g,"default"))&&a.push(f)}}const u=[s,a];return xe(e)&&o.set(e,u),u}function Qr(e){return e[0]!=="$"&&!yn(e)}const fi=e=>e==="_"||e==="_ctx"||e==="$stable",di=e=>re(e)?e.map(bt):[bt(e)],uc=(e,t,n)=>{if(t._n)return t;const o=ce((...i)=>di(t(...i)),n);return o._c=!1,o},es=(e,t,n)=>{const o=e._ctx;for(const i in e){if(fi(i))continue;const r=e[i];if(ae(r))t[i]=uc(i,r,o);else if(r!=null){const s=di(r);t[i]=()=>s}}},ts=(e,t)=>{const n=di(t);e.slots.default=()=>n},ns=(e,t,n)=>{for(const o in t)(n||!fi(o))&&(e[o]=t[o])},fc=(e,t,n)=>{const o=e.slots=Zr();if(e.vnode.shapeFlag&32){const i=t._;i?(ns(o,t,n),n&&Yi(o,"_",i,!0)):es(t,o)}else t&&ts(e,t)},dc=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=fe;if(o.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:ns(i,t,n):(r=!t.$stable,es(t,i)),s=t}else t&&(ts(e,t),s={default:1});if(r)for(const a in i)!fi(a)&&s[a]==null&&delete i[a]},Qe=Ic;function pc(e){return hc(e)}function hc(e,t){const n=Gn();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:g=pt,insertStaticContent:w}=e,C=(d,p,S,$=null,M=null,P=null,V=void 0,R=null,j=!!p.dynamicChildren)=>{if(d===p)return;d&&!Jt(d,p)&&($=Lt(d),pe(d,M,P,!0),d=null),p.patchFlag===-2&&(j=!1,p.dynamicChildren=null);const{type:E,ref:G,shapeFlag:U}=p;switch(E){case wo:F(d,p,S,$);break;case Fe:H(d,p,S,$);break;case xo:d==null&&Y(p,S,$,V);break;case Me:v(d,p,S,$,M,P,V,R,j);break;default:U&1?y(d,p,S,$,M,P,V,R,j):U&6?x(d,p,S,$,M,P,V,R,j):(U&64||U&128)&&E.process(d,p,S,$,M,P,V,R,j,De)}G!=null&&M?Mn(G,d&&d.ref,P,p||d,!p):G==null&&d&&d.ref!=null&&Mn(d.ref,null,P,d,!0)},F=(d,p,S,$)=>{if(d==null)o(p.el=a(p.children),S,$);else{const M=p.el=d.el;p.children!==d.children&&u(M,p.children)}},H=(d,p,S,$)=>{d==null?o(p.el=l(p.children||""),S,$):p.el=d.el},Y=(d,p,S,$)=>{[d.el,d.anchor]=w(d.children,p,S,$,d.el,d.anchor)},W=({el:d,anchor:p},S,$)=>{let M;for(;d&&d!==p;)M=h(d),o(d,S,$),d=M;o(p,S,$)},I=({el:d,anchor:p})=>{let S;for(;d&&d!==p;)S=h(d),i(d),d=S;i(p)},y=(d,p,S,$,M,P,V,R,j)=>{if(p.type==="svg"?V="svg":p.type==="math"&&(V="mathml"),d==null)m(p,S,$,M,P,V,R,j);else{const E=d.el&&d.el._isVueCE?d.el:null;try{E&&E._beginPatch(),k(d,p,M,P,V,R,j)}finally{E&&E._endPatch()}}},m=(d,p,S,$,M,P,V,R)=>{let j,E;const{props:G,shapeFlag:U,transition:oe,dirs:le}=d;if(j=d.el=s(d.type,P,G&&G.is,G),U&8?c(j,d.children):U&16&&N(d.children,j,null,$,M,pi(d,P),V,R),le&&Yt(d,null,$,"created"),D(j,d,d.scopeId,V,$),G){for(const ye in G)ye!=="value"&&!yn(ye)&&r(j,ye,null,G[ye],P,$);"value"in G&&r(j,"value",null,G.value,P),(E=G.onVnodeBeforeMount)&&yt(E,$,d)}le&&Yt(d,null,$,"beforeMount");const he=gc(M,oe);he&&oe.beforeEnter(j),o(j,p,S),((E=G&&G.onVnodeMounted)||he||le)&&Qe(()=>{E&&yt(E,$,d),he&&oe.enter(j),le&&Yt(d,null,$,"mounted")},M)},D=(d,p,S,$,M)=>{if(S&&g(d,S),$)for(let P=0;P<$.length;P++)g(d,$[P]);if(M){let P=M.subTree;if(p===P||ds(P.type)&&(P.ssContent===p||P.ssFallback===p)){const V=M.vnode;D(d,V,V.scopeId,V.slotScopeIds,M.parent)}}},N=(d,p,S,$,M,P,V,R,j=0)=>{for(let E=j;E<d.length;E++){const G=d[E]=R?Rt(d[E]):bt(d[E]);C(null,G,p,S,$,M,P,V,R)}},k=(d,p,S,$,M,P,V)=>{const R=p.el=d.el;let{patchFlag:j,dynamicChildren:E,dirs:G}=p;j|=d.patchFlag&16;const U=d.props||fe,oe=p.props||fe;let le;if(S&&Gt(S,!1),(le=oe.onVnodeBeforeUpdate)&&yt(le,S,p,d),G&&Yt(p,d,S,"beforeUpdate"),S&&Gt(S,!0),(U.innerHTML&&oe.innerHTML==null||U.textContent&&oe.textContent==null)&&c(R,""),E?A(d.dynamicChildren,E,R,S,$,pi(p,M),P):V||b(d,p,R,null,S,$,pi(p,M),P,!1),j>0){if(j&16)J(R,U,oe,S,M);else if(j&2&&U.class!==oe.class&&r(R,"class",null,oe.class,M),j&4&&r(R,"style",U.style,oe.style,M),j&8){const he=p.dynamicProps;for(let ye=0;ye<he.length;ye++){const T=he[ye],L=U[T],ue=oe[T];(ue!==L||T==="value")&&r(R,T,L,ue,M,S)}}j&1&&d.children!==p.children&&c(R,p.children)}else!V&&E==null&&J(R,U,oe,S,M);((le=oe.onVnodeUpdated)||G)&&Qe(()=>{le&&yt(le,S,p,d),G&&Yt(p,d,S,"updated")},$)},A=(d,p,S,$,M,P,V)=>{for(let R=0;R<p.length;R++){const j=d[R],E=p[R],G=j.el&&(j.type===Me||!Jt(j,E)||j.shapeFlag&198)?f(j.el):S;C(j,E,G,null,$,M,P,V,!0)}},J=(d,p,S,$,M)=>{if(p!==S){if(p!==fe)for(const P in p)!yn(P)&&!(P in S)&&r(d,P,p[P],null,M,$);for(const P in S){if(yn(P))continue;const V=S[P],R=p[P];V!==R&&P!=="value"&&r(d,P,R,V,M,$)}"value"in S&&r(d,"value",p.value,S.value,M)}},v=(d,p,S,$,M,P,V,R,j)=>{const E=p.el=d?d.el:a(""),G=p.anchor=d?d.anchor:a("");let{patchFlag:U,dynamicChildren:oe,slotScopeIds:le}=p;le&&(R=R?R.concat(le):le),d==null?(o(E,S,$),o(G,S,$),N(p.children||[],S,G,M,P,V,R,j)):U>0&&U&64&&oe&&d.dynamicChildren?(A(d.dynamicChildren,oe,S,M,P,V,R),(p.key!=null||M&&p===M.subTree)&&os(d,p,!0)):b(d,p,S,G,M,P,V,R,j)},x=(d,p,S,$,M,P,V,R,j)=>{p.slotScopeIds=R,d==null?p.shapeFlag&512?M.ctx.activate(p,S,$,V,j):B(p,S,$,M,P,V,j):Q(d,p,j)},B=(d,p,S,$,M,P,V)=>{const R=d.component=Lc(d,$,M);if(ho(d)&&(R.ctx.renderer=De),zc(R,!1,V),R.asyncDep){if(M&&M.registerDep(R,_,V),!d.el){const j=R.subTree=ee(Fe);H(null,j,p,S),d.placeholder=j.el}}else _(R,d,p,S,M,P,V)},Q=(d,p,S)=>{const $=p.component=d.component;if(Cc(d,p,S))if($.asyncDep&&!$.asyncResolved){z($,p,S);return}else $.next=p,$.update();else p.el=d.el,$.vnode=p},_=(d,p,S,$,M,P,V)=>{const R=()=>{if(d.isMounted){let{next:U,bu:oe,u:le,parent:he,vnode:ye}=d;{const We=is(d);if(We){U&&(U.el=ye.el,z(d,U,V)),We.asyncDep.then(()=>{d.isUnmounted||R()});return}}let T=U,L;Gt(d,!1),U?(U.el=ye.el,z(d,U,V)):U=ye,oe&&Xn(oe),(L=U.props&&U.props.onVnodeBeforeUpdate)&&yt(L,he,U,ye),Gt(d,!0);const ue=us(d),de=d.subTree;d.subTree=ue,C(de,ue,f(de.el),Lt(de),d,M,P),U.el=ue.el,T===null&&Tc(d,ue.el),le&&Qe(le,M),(L=U.props&&U.props.onVnodeUpdated)&&Qe(()=>yt(L,he,U,ye),M)}else{let U;const{el:oe,props:le}=p,{bm:he,m:ye,parent:T,root:L,type:ue}=d,de=dn(p);Gt(d,!1),he&&Xn(he),!de&&(U=le&&le.onVnodeBeforeMount)&&yt(U,T,p),Gt(d,!0);{L.ce&&L.ce._def.shadowRoot!==!1&&L.ce._injectChildStyle(ue);const We=d.subTree=us(d);C(null,We,S,$,d,M,P),p.el=We.el}if(ye&&Qe(ye,M),!de&&(U=le&&le.onVnodeMounted)){const We=p;Qe(()=>yt(U,T,We),M)}(p.shapeFlag&256||T&&dn(T.vnode)&&T.vnode.shapeFlag&256)&&d.a&&Qe(d.a,M),d.isMounted=!0,p=S=$=null}};d.scope.on();const j=d.effect=new Qi(R);d.scope.off();const E=d.update=j.run.bind(j),G=d.job=j.runIfDirty.bind(j);G.i=d,G.id=d.uid,j.scheduler=()=>ti(G),Gt(d,!0),E()},z=(d,p,S)=>{p.component=d;const $=d.vnode.props;d.vnode=p,d.next=null,ac(d,p.props,$,S),dc(d,p.children,S),ht(),_r(d),gt()},b=(d,p,S,$,M,P,V,R,j=!1)=>{const E=d&&d.children,G=d?d.shapeFlag:0,U=p.children,{patchFlag:oe,shapeFlag:le}=p;if(oe>0){if(oe&128){ne(E,U,S,$,M,P,V,R,j);return}else if(oe&256){X(E,U,S,$,M,P,V,R,j);return}}le&8?(G&16&&qe(E,M,P),U!==E&&c(S,U)):G&16?le&16?ne(E,U,S,$,M,P,V,R,j):qe(E,M,P,!0):(G&8&&c(S,""),le&16&&N(U,S,$,M,P,V,R,j))},X=(d,p,S,$,M,P,V,R,j)=>{d=d||at,p=p||at;const E=d.length,G=p.length,U=Math.min(E,G);let oe;for(oe=0;oe<U;oe++){const le=p[oe]=j?Rt(p[oe]):bt(p[oe]);C(d[oe],le,S,null,M,P,V,R,j)}E>G?qe(d,M,P,!0,!1,U):N(p,S,$,M,P,V,R,j,U)},ne=(d,p,S,$,M,P,V,R,j)=>{let E=0;const G=p.length;let U=d.length-1,oe=G-1;for(;E<=U&&E<=oe;){const le=d[E],he=p[E]=j?Rt(p[E]):bt(p[E]);if(Jt(le,he))C(le,he,S,null,M,P,V,R,j);else break;E++}for(;E<=U&&E<=oe;){const le=d[U],he=p[oe]=j?Rt(p[oe]):bt(p[oe]);if(Jt(le,he))C(le,he,S,null,M,P,V,R,j);else break;U--,oe--}if(E>U){if(E<=oe){const le=oe+1,he=le<G?p[le].el:$;for(;E<=oe;)C(null,p[E]=j?Rt(p[E]):bt(p[E]),S,he,M,P,V,R,j),E++}}else if(E>oe)for(;E<=U;)pe(d[E],M,P,!0),E++;else{const le=E,he=E,ye=new Map;for(E=he;E<=oe;E++){const it=p[E]=j?Rt(p[E]):bt(p[E]);it.key!=null&&ye.set(it.key,E)}let T,L=0;const ue=oe-he+1;let de=!1,We=0;const Ut=new Array(ue);for(E=0;E<ue;E++)Ut[E]=0;for(E=le;E<=U;E++){const it=d[E];if(L>=ue){pe(it,M,P,!0);continue}let _t;if(it.key!=null)_t=ye.get(it.key);else for(T=he;T<=oe;T++)if(Ut[T-he]===0&&Jt(it,p[T])){_t=T;break}_t===void 0?pe(it,M,P,!0):(Ut[_t-he]=E+1,_t>=We?We=_t:de=!0,C(it,p[_t],S,null,M,P,V,R,j),L++)}const Vi=de?mc(Ut):at;for(T=Vi.length-1,E=ue-1;E>=0;E--){const it=he+E,_t=p[it],Wl=p[it+1],Ul=it+1<G?Wl.el||Wl.placeholder:$;Ut[E]===0?C(null,_t,S,Ul,M,P,V,R,j):de&&(T<0||E!==Vi[T]?se(_t,S,Ul,2):T--)}}},se=(d,p,S,$,M=null)=>{const{el:P,type:V,transition:R,children:j,shapeFlag:E}=d;if(E&6){se(d.component.subTree,p,S,$);return}if(E&128){d.suspense.move(p,S,$);return}if(E&64){V.move(d,p,S,De);return}if(V===Me){o(P,p,S);for(let U=0;U<j.length;U++)se(j[U],p,S,$);o(d.anchor,p,S);return}if(V===xo){W(d,p,S);return}if($!==2&&E&1&&R)if($===0)R.beforeEnter(P),o(P,p,S),Qe(()=>R.enter(P),M);else{const{leave:U,delayLeave:oe,afterLeave:le}=R,he=()=>{d.ctx.isUnmounted?i(P):o(P,p,S)},ye=()=>{P._isLeaving&&P[Mt](!0),U(P,()=>{he(),le&&le()})};oe?oe(P,he,ye):ye()}else o(P,p,S)},pe=(d,p,S,$=!1,M=!1)=>{const{type:P,props:V,ref:R,children:j,dynamicChildren:E,shapeFlag:G,patchFlag:U,dirs:oe,cacheIndex:le}=d;if(U===-2&&(M=!1),R!=null&&(ht(),Mn(R,null,S,d,!0),gt()),le!=null&&(p.renderCache[le]=void 0),G&256){p.ctx.deactivate(d);return}const he=G&1&&oe,ye=!dn(d);let T;if(ye&&(T=V&&V.onVnodeBeforeUnmount)&&yt(T,p,d),G&6)ot(d.component,S,$);else{if(G&128){d.suspense.unmount(S,$);return}he&&Yt(d,null,p,"beforeUnmount"),G&64?d.type.remove(d,p,S,De,$):E&&!E.hasOnce&&(P!==Me||U>0&&U&64)?qe(E,p,S,!1,!0):(P===Me&&U&384||!M&&G&16)&&qe(j,p,S),$&&Pe(d)}(ye&&(T=V&&V.onVnodeUnmounted)||he)&&Qe(()=>{T&&yt(T,p,d),he&&Yt(d,null,p,"unmounted")},S)},Pe=d=>{const{type:p,el:S,anchor:$,transition:M}=d;if(p===Me){$e(S,$);return}if(p===xo){I(d);return}const P=()=>{i(S),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(d.shapeFlag&1&&M&&!M.persisted){const{leave:V,delayLeave:R}=M,j=()=>V(S,P);R?R(d.el,P,j):j()}else P()},$e=(d,p)=>{let S;for(;d!==p;)S=h(d),i(d),d=S;i(p)},ot=(d,p,S)=>{const{bum:$,scope:M,job:P,subTree:V,um:R,m:j,a:E}=d;rs(j),rs(E),$&&Xn($),M.stop(),P&&(P.flags|=8,pe(V,d,p,S)),R&&Qe(R,p),Qe(()=>{d.isUnmounted=!0},p)},qe=(d,p,S,$=!1,M=!1,P=0)=>{for(let V=P;V<d.length;V++)pe(d[V],p,S,$,M)},Lt=d=>{if(d.shapeFlag&6)return Lt(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const p=h(d.anchor||d.el),S=p&&p[ja];return S?h(S):p};let Ht=!1;const Vt=(d,p,S)=>{d==null?p._vnode&&pe(p._vnode,null,null,!0):C(p._vnode||null,d,p,null,null,null,S),p._vnode=d,Ht||(Ht=!0,_r(),Sr(),Ht=!1)},De={p:C,um:pe,m:se,r:Pe,mt:B,mc:N,pc:b,pbc:A,n:Lt,o:e};return{render:Vt,hydrate:void 0,createApp:sc(Vt)}}function pi({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 Gt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function os(e,t,n=!1){const o=e.children,i=t.children;if(re(o)&&re(i))for(let r=0;r<o.length;r++){const s=o[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Rt(i[r]),a.el=s.el),!n&&a.patchFlag!==-2&&os(s,a)),a.type===wo&&a.patchFlag!==-1&&(a.el=s.el),a.type===Fe&&!a.el&&(a.el=s.el)}}function mc(e){const t=e.slice(),n=[0];let o,i,r,s,a;const l=e.length;for(o=0;o<l;o++){const u=e[o];if(u!==0){if(i=n[n.length-1],e[i]<u){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)a=r+s>>1,e[n[a]]<u?r=a+1:s=a;u<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function is(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:is(t)}function rs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const vc=Symbol.for("v-scx"),bc=()=>Pt(vc);function ss(e,t){return bo(e,null,t)}function yc(e,t){return bo(e,null,{flush:"sync"})}function me(e,t,n){return bo(e,t,n)}function bo(e,t,n=fe){const{immediate:o,deep:i,flush:r,once:s}=n,a=Se({},n),l=t&&o||!t&&r!=="post";let u;if(jn){if(r==="sync"){const g=bc();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=pt,g.resume=pt,g.pause=pt,g}}const c=He;a.call=(g,w,C)=>dt(g,c,w,C);let f=!1;r==="post"?a.scheduler=g=>{Qe(g,c&&c.suspense)}:r!=="sync"&&(f=!0,a.scheduler=(g,w)=>{w?g():ti(g)}),a.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const h=Pa(e,t,a);return jn&&(u?u.push(h):l&&h()),h}function wc(e,t,n){const o=this.proxy,i=ke(e)?e.includes(".")?ls(o,e):()=>o[e]:e.bind(o,o);let r;ae(t)?r=t:(r=t.handler,n=t);const s=Nn(this),a=bo(i,r.bind(o),n);return s(),a}function ls(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function $n(e,t,n=fe){const o=Qt(),i=Ne(t),r=Ye(t),s=as(e,i),a=Ta((l,u)=>{let c,f=fe,h;return yc(()=>{const g=e[i];Ze(c,g)&&(c=g,u())}),{get(){return l(),n.get?n.get(c):c},set(g){const w=n.set?n.set(g):g;if(!Ze(w,c)&&!(f!==fe&&Ze(g,f)))return;const C=o.vnode.props;C&&(t in C||i in C||r in C)&&(`onUpdate:${t}`in C||`onUpdate:${i}`in C||`onUpdate:${r}`in C)||(c=g,u()),o.emit(`update:${t}`,w),Ze(g,w)&&Ze(g,f)&&!Ze(w,h)&&u(),f=g,h=w}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?s||fe:a,done:!1}:{done:!0}}}},a}const as=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${Ye(t)}Modifiers`];function xc(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||fe;let i=n;const r=t.startsWith("update:"),s=r&&as(o,t.slice(7));s&&(s.trim&&(i=n.map(c=>ke(c)?c.trim():c)),s.number&&(i=n.map(jo)));let a,l=o[a=No(t)]||o[a=No(Ne(t))];!l&&r&&(l=o[a=No(Ye(t))]),l&&dt(l,e,6,i);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,dt(u,e,6,i)}}const _c=new WeakMap;function cs(e,t,n=!1){const o=n?_c:t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},a=!1;if(!ae(e)){const l=u=>{const c=cs(u,t,!0);c&&(a=!0,Se(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(xe(e)&&o.set(e,null),null):(re(r)?r.forEach(l=>s[l]=null):Se(s,r),xe(e)&&o.set(e,s),s)}function yo(e,t){return!e||!Un(t)?!1:(t=t.slice(2).replace(/Once$/,""),be(e,t[0].toLowerCase()+t.slice(1))||be(e,Ye(t))||be(e,t))}function ch(){}function us(e){const{type:t,vnode:n,proxy:o,withProxy:i,propsOptions:[r],slots:s,attrs:a,emit:l,render:u,renderCache:c,props:f,data:h,setupState:g,ctx:w,inheritAttrs:C}=e,F=uo(e);let H,Y;try{if(n.shapeFlag&4){const I=i||o,y=I;H=bt(u.call(y,I,c,f,g,h,w)),Y=a}else{const I=t;H=bt(I.length>1?I(f,{attrs:a,slots:s,emit:l}):I(f,null)),Y=t.props?a:Sc(a)}}catch(I){An.length=0,ao(I,e,1),H=ee(Fe)}let W=H;if(Y&&C!==!1){const I=Object.keys(Y),{shapeFlag:y}=W;I.length&&y&7&&(r&&I.some(Lo)&&(Y=kc(Y,r)),W=Nt(W,Y,!1,!0))}return n.dirs&&(W=Nt(W,null,!1,!0),W.dirs=W.dirs?W.dirs.concat(n.dirs):n.dirs),n.transition&&In(W,n.transition),H=W,uo(F),H}const Sc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Un(n))&&((t||(t={}))[n]=e[n]);return t},kc=(e,t)=>{const n={};for(const o in e)(!Lo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Cc(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:a,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?fs(o,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(s[h]!==o[h]&&!yo(u,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:o===s?!1:o?s?fs(o,s,u):!0:!!s;return!1}function fs(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!yo(n,r))return!0}return!1}function Tc({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 ds=e=>e.__isSuspense;function Ic(e,t){t&&t.pendingBranch?re(e)?t.effects.push(...e):t.effects.push(e):Na(e)}const Me=Symbol.for("v-fgt"),wo=Symbol.for("v-txt"),Fe=Symbol.for("v-cmt"),xo=Symbol.for("v-stc"),An=[];let et=null;function O(e=!1){An.push(et=e?null:[])}function Mc(){An.pop(),et=An[An.length-1]||null}let Ln=1;function _o(e,t=!1){Ln+=e,e<0&&et&&t&&(et.hasOnce=!0)}function ps(e){return e.dynamicChildren=Ln>0?et||at:null,Mc(),Ln>0&&et&&et.push(e),e}function q(e,t,n,o,i,r){return ps(Z(e,t,n,o,i,r,!0))}function ve(e,t,n,o,i){return ps(ee(e,t,n,o,i,!0))}function zn(e){return e?e.__v_isVNode===!0:!1}function Jt(e,t){return e.type===t.type&&e.key===t.key}const hs=({key:e})=>e??null,So=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Ce(e)||ae(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function Z(e,t=null,n=null,o=0,i=null,r=e===Me?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hs(t),ref:t&&So(t),scopeId:Cr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ze};return a?(hi(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),Ln>0&&!s&&et&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&et.push(l),l}const ee=Ec;function Ec(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===Nr)&&(e=Fe),zn(e)){const a=Nt(e,t,!0);return n&&hi(a,n),Ln>0&&!r&&et&&(a.shapeFlag&6?et[et.indexOf(e)]=a:et.push(a)),a.patchFlag=-2,a}if(Fc(e)&&(e=e.__vccOpts),t){t=Pc(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=Oe(a)),xe(l)&&(Qo(l)&&!re(l)&&(l=Se({},l)),t.style=je(l))}const s=ke(e)?1:ds(e)?128:Tr(e)?64:xe(e)?4:ae(e)?2:0;return Z(e,t,n,o,i,s,r,!0)}function Pc(e){return e?Qo(e)||Xr(e)?Se({},e):e:null}function Nt(e,t,n=!1,o=!1){const{props:i,ref:r,patchFlag:s,children:a,transition:l}=e,u=t?Dn(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&hs(u),ref:t&&t.ref?n&&r?re(r)?r.concat(So(t)):[r,So(t)]:So(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nt(e.ssContent),ssFallback:e.ssFallback&&Nt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&In(c,l.clone(c)),c}function jt(e=" ",t=0){return ee(wo,null,e,t)}function Oc(e,t){const n=ee(xo,null,e);return n.staticCount=t,n}function Ee(e="",t=!1){return t?(O(),ve(Fe,null,e)):ee(Fe,null,e)}function bt(e){return e==null||typeof e=="boolean"?ee(Fe):re(e)?ee(Me,null,e.slice()):zn(e)?Rt(e):ee(wo,null,String(e))}function Rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nt(e)}function hi(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(re(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),hi(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Xr(t)?t._ctx=ze:i===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),o&64?(n=16,t=[jt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Dn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Oe([t.class,o.class]));else if(i==="style")t.style=je([t.style,o.style]);else if(Un(i)){const r=t[i],s=o[i];s&&r!==s&&!(re(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function yt(e,t,n,o=null){dt(e,t,7,[n,o])}const $c=Kr();let Ac=0;function Lc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||$c,r={uid:Ac++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ta(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jr(o,i),emitsOptions:cs(o,i),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:o.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,setupContext:null,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=xc.bind(null,r),e.ce&&e.ce(r),r}let He=null;const Qt=()=>He||ze;let ko,gi;{const e=Gn(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};ko=t("__VUE_INSTANCE_SETTERS__",n=>He=n),gi=t("__VUE_SSR_SETTERS__",n=>jn=n)}const Nn=e=>{const t=He;return ko(e),e.scope.on(),()=>{e.scope.off(),ko(t)}},gs=()=>{He&&He.scope.off(),ko(null)};function ms(e){return e.vnode.shapeFlag&4}let jn=!1;function zc(e,t=!1,n=!1){t&&gi(t);const{props:o,children:i}=e.vnode,r=ms(e);lc(e,o,r,t),fc(e,i,n||t);const s=r?Dc(e,t):void 0;return t&&gi(!1),s}function Dc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Qa);const{setup:o}=n;if(o){ht();const i=e.setupContext=o.length>1?jc(e):null,r=Nn(e),s=cn(o,e,0,[e.props,i]),a=Ki(s);if(gt(),r(),(a||e.sp)&&!dn(e)&&Ar(e),a){if(s.then(gs,gs),t)return s.then(l=>{vs(e,l)}).catch(l=>{ao(l,e,0)});e.asyncDep=s}else vs(e,s)}else bs(e)}function vs(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xe(t)&&(e.setupState=br(t)),bs(e)}function bs(e,t,n){const o=e.type;e.render||(e.render=o.render||pt);{const i=Nn(e);ht();try{ec(e)}finally{gt(),i()}}}const Nc={get(e,t){return Be(e,"get",""),e[t]}};function jc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Nc),slots:e.slots,emit:e.emit,expose:t}}function Co(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(br(_a(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in En)return En[n](e)},has(t,n){return n in t||n in En}})):e.proxy}const Rc=/(?:^|[-_])\w/g,Bc=e=>e.replace(Rc,t=>t.toUpperCase()).replace(/[-_]/g,"");function ys(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function ws(e,t,n=!1){let o=ys(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?Bc(o):n?"App":"Anonymous"}function Fc(e){return ae(e)&&"__vccOpts"in e}const ie=(e,t)=>Ma(e,t,jn);function xs(e,t,n){try{_o(-1);const o=arguments.length;return o===2?xe(t)&&!re(t)?zn(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&zn(n)&&(n=[n]),ee(e,t,n))}finally{_o(1)}}const Hc="3.5.24";/**
17
17
  * @vue/runtime-dom v3.5.24
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/let mi;const xs=typeof window<"u"&&window.trustedTypes;if(xs)try{mi=xs.createPolicy("vue",{createHTML:e=>e})}catch{}const _s=mi?e=>mi.createHTML(e):e=>e,Zc="http://www.w3.org/2000/svg",Xc="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,Ss=Et&&Et.createElement("template"),Gc={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 i=t==="svg"?Et.createElementNS(Zc,e):t==="mathml"?Et.createElementNS(Xc,e):n?Et.createElement(e,{is:n}):Et.createElement(e);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Ss.innerHTML=_s(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const a=Ss.content;if(o==="svg"||o==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jt="transition",Nn="animation",jn=Symbol("_vtc"),ks={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Jc=Se({},Ir,ks),Co=(e=>(e.displayName="Transition",e.props=Jc,e))((e,{slots:t})=>ws(Ya,Qc(e),t)),Xt=(e,t=[])=>{oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Cs=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Qc(e){const t={};for(const m in e)m in ks||(t[m]=e[m]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,x=eu(i),T=x&&x[0],G=x&&x[1],{onBeforeEnter:F,onEnter:H,onEnterCancelled:E,onLeave:v,onLeaveCancelled:_,onBeforeAppear:C=F,onAppear:W=H,onAppearCancelled:D=E}=t,I=(m,S,N,b)=>{m._enterCancelled=b,Gt(m,S?c:a),Gt(m,S?u:s),N&&N()},j=(m,S)=>{m._isLeaving=!1,Gt(m,f),Gt(m,g),Gt(m,p),S&&S()},q=m=>(S,N)=>{const b=m?W:H,z=()=>I(S,m,N);Xt(b,[S,z]),Ts(()=>{Gt(S,m?l:r),Mt(S,m?c:a),Cs(b)||Is(S,o,T,z)})};return Se(t,{onBeforeEnter(m){Xt(F,[m]),Mt(m,r),Mt(m,s)},onBeforeAppear(m){Xt(C,[m]),Mt(m,l),Mt(m,u)},onEnter:q(!1),onAppear:q(!0),onLeave(m,S){m._isLeaving=!0;const N=()=>j(m,S);Mt(m,f),m._enterCancelled?(Mt(m,p),Ps(m)):(Ps(m),Mt(m,p)),Ts(()=>{m._isLeaving&&(Gt(m,f),Mt(m,g),Cs(v)||Is(m,o,G,N))}),Xt(v,[m,N])},onEnterCancelled(m){I(m,!1,void 0,!0),Xt(E,[m])},onAppearCancelled(m){I(m,!0,void 0,!0),Xt(D,[m])},onLeaveCancelled(m){j(m),Xt(_,[m])}})}function eu(e){if(e==null)return null;if(xe(e))return[vi(e.enter),vi(e.leave)];{const t=vi(e);return[t,t]}}function vi(e){return jo(e)}function Mt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[jn]||(e[jn]=new Set)).add(t)}function Gt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[jn];n&&(n.delete(t),n.size||(e[jn]=void 0))}function Ts(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let tu=0;function Is(e,t,n,o){const i=e._endId=++tu,r=()=>{i===e._endId&&o()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:l}=nu(e,t);if(!s)return o();const u=s+"end";let c=0;const f=()=>{e.removeEventListener(u,p),r()},p=g=>{g.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),e.addEventListener(u,p)}function nu(e,t){const n=window.getComputedStyle(e),o=x=>(n[x]||"").split(", "),i=o(`${jt}Delay`),r=o(`${jt}Duration`),s=Es(i,r),a=o(`${Nn}Delay`),l=o(`${Nn}Duration`),u=Es(a,l);let c=null,f=0,p=0;t===jt?s>0&&(c=jt,f=s,p=r.length):t===Nn?u>0&&(c=Nn,f=u,p=l.length):(f=Math.max(s,u),c=f>0?s>u?jt:Nn:null,p=c?c===jt?r.length:l.length:0);const g=c===jt&&/\b(?:transform|all)(?:,|$)/.test(o(`${jt}Property`).toString());return{type:c,timeout:f,propCount:p,hasTransform:g}}function Es(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ms(n)+Ms(e[o])))}function Ms(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ps(e){return(e?e.ownerDocument:document).body.offsetHeight}function ou(e,t,n){const o=e[jn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const To=Symbol("_vod"),Os=Symbol("_vsh"),iu={name:"show",beforeMount(e,{value:t},{transition:n}){e[To]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bn(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),Bn(e,!0),o.enter(e)):o.leave(e,()=>{Bn(e,!1)}):Bn(e,t))},beforeUnmount(e,{value:t}){Bn(e,t)}};function Bn(e,t){e.style.display=t?e[To]:"none",e[Os]=!t}const ru=Symbol(""),su=/(?:^|;)\s*display\s*:/;function lu(e,t,n){const o=e.style,i=Ce(n);let r=!1;if(n&&!i){if(t)if(Ce(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Io(o,a,"")}else for(const s in t)n[s]==null&&Io(o,s,"");for(const s in n)s==="display"&&(r=!0),Io(o,s,n[s])}else if(i){if(t!==n){const s=o[ru];s&&(n+=";"+s),o.cssText=n,r=su.test(n)}}else t&&e.removeAttribute("style");To in e&&(e[To]=r?o.display:"",e[Os]&&(o.display="none"))}const $s=/\s*!important$/;function Io(e,t,n){if(oe(n))n.forEach(o=>Io(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=au(e,t);$s.test(n)?e.setProperty(qe(o),n.replace($s,""),"important"):e[o]=n}}const As=["Webkit","Moz","ms"],bi={};function au(e,t){const n=bi[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return bi[t]=o;o=Yn(o);for(let i=0;i<As.length;i++){const r=As[i]+o;if(r in e)return bi[t]=r}return t}const Ls="http://www.w3.org/1999/xlink";function zs(e,t,n,o,i,r=la(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ls,t.slice(6,t.length)):e.setAttributeNS(Ls,t,n):n==null||r&&!Zi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":xt(n)?String(n):n)}function Ds(e,t,n,o,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?_s(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Zi(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function pn(e,t,n,o){e.addEventListener(t,n,o)}function cu(e,t,n,o){e.removeEventListener(t,n,o)}const Ns=Symbol("_vei");function uu(e,t,n,o,i=null){const r=e[Ns]||(e[Ns]={}),s=r[t];if(o&&s)s.value=o;else{const[a,l]=fu(t);if(o){const u=r[t]=hu(o,i);pn(e,a,u,l)}else s&&(cu(e,a,s,l),r[t]=void 0)}}const js=/(?:Once|Passive|Capture)$/;function fu(e){let t;if(js.test(e)){t={};let o;for(;o=e.match(js);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):qe(e.slice(2)),t]}let yi=0;const du=Promise.resolve(),pu=()=>yi||(du.then(()=>yi=0),yi=Date.now());function hu(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;ft(gu(o,n.value),t,5,[o])};return n.value=e,n.attached=pu(),n}function gu(e,t){if(oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const Bs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mu=(e,t,n,o,i,r)=>{const s=i==="svg";t==="class"?ou(e,o,s):t==="style"?lu(e,n,o):Wn(t)?Ao(t)||uu(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vu(e,t,o,s))?(Ds(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zs(e,t,o,s,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ce(o))?Ds(e,je(t),o,r,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),zs(e,t,o,s))};function vu(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bs(t)&&le(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Bs(t)&&Ce(n)?!1:t in e}const Rs={};function bu(e,t,n){let o=Te(e,t);Kn(o)&&(o=Se({},o,t));class i extends wi{constructor(s){super(o,s,n)}}return i.def=o,i}const yu=typeof HTMLElement<"u"?HTMLElement:class{};class wi extends yu{constructor(t,n={},o=qs){super(),this._def=t,this._props=n,this._createApp=o,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&o!==qs?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Se({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof wi){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Ct(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:s}=o;let a;if(r&&!oe(r))for(const l in r){const u=r[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=jo(this._props[l])),(a||(a=Object.create(null)))[je(l)]=!0)}this._numberProps=a,this._resolveProps(o),this.shadowRoot&&this._applyStyles(s),this._mount(o)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(o=>{o.configureApp=this._def.configureApp,t(this._def=o,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const o in n)be(this,o)||Object.defineProperty(this,o,{get:()=>X(n[o])})}_resolveProps(t){const{props:n}=t,o=oe(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i]);for(const i of o.map(je))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let o=n?this.getAttribute(t):Rs;const i=je(t);n&&this._numberProps&&this._numberProps[i]&&(o=jo(o)),this._setProp(i,o,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Rs?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),o)){const r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),n===!0?this.setAttribute(qe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(qe(t),n+""):n||this.removeAttribute(qe(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Tu(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=te(this._def,Se(t,this._props));return this._instance||(n.ce=o=>{this._instance=o,o.ce=this,o.isCE=!0;const i=(r,s)=>{this.dispatchEvent(new CustomEvent(r,Kn(s[0])?Se({detail:s},s[0]):{detail:s}))};o.emit=(r,...s)=>{i(r,s),qe(r)!==r&&i(qe(r),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const o=this._nonce;for(let i=t.length-1;i>=0;i--){const r=document.createElement("style");o&&r.setAttribute("nonce",o),r.textContent=t[i],this.shadowRoot.prepend(r)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const o=n.nodeType===1&&n.getAttribute("slot")||"default";(t[o]||(t[o]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let o=0;o<t.length;o++){const i=t[o],r=i.getAttribute("name")||"default",s=this._slots[r],a=i.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let f;for(;f=c.nextNode();)f.setAttribute(u,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const o of t){const i=o.querySelectorAll("slot");for(let r=0;r<i.length;r++)n.add(i[r])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}const Fs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return oe(t)?n=>Zn(t,n):t};function wu(e){e.target.composing=!0}function Hs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xi=Symbol("_assign");function Vs(e,t,n){return t&&(e=e.trim()),n&&(e=No(e)),e}const xu={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[xi]=Fs(i);const r=o||i.props&&i.props.type==="number";pn(e,t?"change":"input",s=>{s.target.composing||e[xi](Vs(e.value,n,r))}),(n||r)&&pn(e,"change",()=>{e.value=Vs(e.value,n,r)}),t||(pn(e,"compositionstart",wu),pn(e,"compositionend",Hs),pn(e,"change",Hs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:i,number:r}},s){if(e[xi]=Fs(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?No(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||i&&e.value.trim()===l)||(e.value=l))}},_u=["ctrl","shift","alt","meta"],Su={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)=>_u.some(n=>e[`${n}Key`]&&!t.includes(n))},We=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let s=0;s<t.length;s++){const a=Su[t[s]];if(a&&a(i,t))return}return e(i,...r)})},ku={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ws=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=qe(i.key);if(t.some(s=>s===r||ku[s]===r))return e(i)})},Cu=Se({patchProp:mu},Gc);let Us;function Ks(){return Us||(Us=bc(Cu))}const Tu=(...e)=>{Ks().render(...e)},qs=(...e)=>{const t=Ks().createApp(...e),{mount:n}=t;return t.mount=o=>{const i=Eu(o);if(!i)return;const r=t._component;!le(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,Iu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function Iu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Eu(e){return Ce(e)?document.querySelector(e):e}var Ys;const _i=typeof window<"u",Zs=e=>typeof e=="function",Mu=e=>typeof e=="string",Bt=()=>{};_i&&((Ys=window==null?void 0:window.navigator)!=null&&Ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Rn(e){return typeof e=="function"?e():X(e)}function Xs(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function Pu(e,t={}){let n,o,i=Bt;const r=a=>{clearTimeout(a),i(),i=Bt};return a=>{const l=Rn(e),u=Rn(t.maxWait);return n&&r(n),l<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(a())):new Promise((c,f)=>{i=t.rejectOnCancel?f:c,u&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,c(a())},u)),n=setTimeout(()=>{o&&r(o),o=null,c(a())},l)})}}function Ou(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,a=Bt,l;const u=()=>{r&&(clearTimeout(r),r=void 0,a(),a=Bt)};return f=>{const p=Rn(e),g=Date.now()-i,x=()=>l=f();return u(),p<=0?(i=Date.now(),x()):(g>p&&(n||!s)?(i=Date.now(),x()):t&&(l=new Promise((T,G)=>{a=o?G:T,r=setTimeout(()=>{i=Date.now(),s=!0,T(x()),u()},Math.max(0,p-g))})),!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1,l)}}function $u(e){return e}function Au(e,t){let n,o,i;const r=ee(!0),s=()=>{r.value=!0,i()};me(e,s,{flush:"sync"});const a=Zs(t)?t:t.get,l=Zs(t)?void 0:t.set,u=br((c,f)=>(o=c,i=f,{get(){return r.value&&(n=a(),r.value=!1),o(),n},set(p){l==null||l(p)}}));return Object.isExtensible(u)&&(u.trigger=s),u}function Si(e){return Ji()?(ca(e),!0):!1}function tt(e,t=200,n={}){return Xs(Pu(t,n),e)}function ki(e,t=200,n=!1,o=!0,i=!1){return Xs(Ou(t,n,o,i),e)}function Gs(e,t=!0){Ln()?Xe(e):t?e():Ct(e)}function Jt(e){var t;const n=Rn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Fn=_i?window:void 0,Lu=_i?window.document:void 0;function Rt(...e){let t,n,o,i;if(Mu(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=Fn):[t,n,o,i]=e,!t)return Bt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(c=>c()),r.length=0},a=(c,f,p,g)=>(c.addEventListener(f,p,g),()=>c.removeEventListener(f,p,g)),l=me(()=>[Jt(t),Rn(i)],([c,f])=>{s(),c&&r.push(...n.flatMap(p=>o.map(g=>a(c,p,g,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return Si(u),u}function Js(e,t=!1){const n=ee(),o=()=>n.value=!!e();return o(),Gs(o,t),n}const Qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},el="__vueuse_ssr_handlers__";Qs[el]=Qs[el]||{};function tl(){const e=Ln(),t=Au(()=>null,()=>e.proxy.$el);return Dr(t.trigger),Xe(t.trigger),t}function Ci({document:e=Lu}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return Rt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var nl=Object.getOwnPropertySymbols,zu=Object.prototype.hasOwnProperty,Du=Object.prototype.propertyIsEnumerable,Nu=(e,t)=>{var n={};for(var o in e)zu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&nl)for(var o of nl(e))t.indexOf(o)<0&&Du.call(e,o)&&(n[o]=e[o]);return n};function ju(e,t,n={}){const o=n,{window:i=Fn}=o,r=Nu(o,["window"]);let s;const a=Js(()=>i&&"ResizeObserver"in i),l=()=>{s&&(s.disconnect(),s=void 0)},u=me(()=>Jt(e),f=>{l(),a.value&&i&&f&&(s=new ResizeObserver(t),s.observe(f,r))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Si(c),{isSupported:a,stop:c}}function ol(e,t={width:0,height:0},n={}){const{window:o=Fn,box:i="content-box"}=n,r=ie(()=>{var l,u;return(u=(l=Jt(e))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),s=ee(t.width),a=ee(t.height);return ju(e,([l])=>{const u=i==="border-box"?l.borderBoxSize:i==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&r.value){const c=Jt(e);if(c){const f=o.getComputedStyle(c);s.value=parseFloat(f.width),a.value=parseFloat(f.height)}}else if(u){const c=Array.isArray(u)?u:[u];s.value=c.reduce((f,{inlineSize:p})=>f+p,0),a.value=c.reduce((f,{blockSize:p})=>f+p,0)}else s.value=l.contentRect.width,a.value=l.contentRect.height},n),me(()=>Jt(e),l=>{s.value=l?t.width:0,a.value=l?t.height:0}),{width:s,height:a}}function Ti(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=Fn}=n,a=Js(()=>s&&"IntersectionObserver"in s);let l=Bt;const u=a.value?me(()=>({el:Jt(e),root:Jt(o)}),({el:f,root:p})=>{if(l(),!f)return;const g=new IntersectionObserver(t,{root:p,rootMargin:i,threshold:r});g.observe(f),l=()=>{g.disconnect(),l=Bt}},{immediate:!0,flush:"post"}):Bt,c=()=>{l(),u()};return Si(c),{isSupported:a,stop:c}}var il;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(il||(il={}));var Bu=Object.defineProperty,rl=Object.getOwnPropertySymbols,Ru=Object.prototype.hasOwnProperty,Fu=Object.prototype.propertyIsEnumerable,sl=(e,t,n)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hu=(e,t)=>{for(var n in t||(t={}))Ru.call(t,n)&&sl(e,n,t[n]);if(rl)for(var n of rl(t))Fu.call(t,n)&&sl(e,n,t[n]);return e};Hu({linear:$u},{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 ll(e={}){const{window:t=Fn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=ee(n),a=ee(o),l=()=>{t&&(r?(s.value=t.innerWidth,a.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),Gs(l),Rt("resize",l,{passive:!0}),i&&Rt("orientationchange",l,{passive:!0}),{width:s,height:a}}function Vu(e){En("hapticFeedback",e)}function Ii(){return Lt("hapticFeedback")}const Wu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let i=1,r=.65;const s=setInterval(l,20);a();function a(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function l(){const u=+n||50;i<=u?(i++,r-=.65/u,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(o.remove(),clearInterval(s))}},hn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Wu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Uu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Ku={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},qu={class:"absolute bottom-0 left-0 right-0 flex justify-center pb-7 md:pb-6 lg:pb-4"},Yu=Te({__name:"AutoNext",props:{hasNext:{type:Boolean},offlineMode:{type:Boolean},seconds:{type:Number}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=ee(null),r=ee(null),s=ee(!1),a=ee(!1),l=ee(n.seconds),u=ee(n.seconds<=0),c=ee(n.seconds),f=Ii();Xe(()=>{let x;Ti(r,T=>{a.value=T.some(G=>G.isIntersecting),u.value=n.seconds<=0,l.value=n.seconds,c.value=n.seconds,x&&(clearInterval(x),x=void 0),!(!a.value||u.value)&&(x=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(x),x=void 0,o("next"))},1e3))}),Ti(i,T=>{s.value=T.some(G=>G.isIntersecting)}),qt(()=>x&&clearInterval(x))});function p(){o("next"),f()}function g(){o("hide")}return(x,T)=>($(),Z("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center relative"},[gt(J("div",Uu,[e.hasNext?($(),Z("div",Ku,[a.value?($(),Z("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:Be(u.value?{}:{animation:`auto-next ${c.value}s linear forwards`})},null,4)):Me("",!0),gt(($(),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 totalDuration-200",onClick:We(p,["stop"])},[Dt(Ze(u.value?"Next":`Next in ${l.value}`),1)])),[[X(hn)]])])):Me("",!0),gt(($(),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 totalDuration-200",onClick:We(g,["stop"])},[Dt(Ze(e.offlineMode?"Close":"Hide"),1)])),[[X(hn)]])],512),[[iu,s.value||!e.hasNext]]),J("div",qu,[Ie(x.$slots,"bottom-center")])],512))}}),Zu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
21
- `,we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},al=we(Yu,[["styles",[Zu]]]),Xu=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"}));function Gu({touchDevice:e}){const t=ee(!1);let n=0;return En("busy:touchDevice",e),En("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function Ei(){const e=Lt("busy:touchDevice"),t=Lt("setBusyState");let n=!1;return qt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const Ju={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 gap-2 text-base"},Mi=Te({__name:"BaseButton",props:{disabled:{type:Boolean},href:{type:String},transparent:{type:Boolean},enableHapticFeedback:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,i=Ei(),r=Ii();let s=!1;function a(){s||(s=!0,i(!0,{desktopOnly:!0}))}function l(){s&&(s=!1,i(!1,{desktopOnly:!0}))}function u(c){n.disabled?c.preventDefault():(o("click",c),n.enableHapticFeedback&&r())}return(c,f)=>gt(($(),ve(Rr(e.href?"a":"button"),An(e.href?{href:e.href}:{},{class:["h-10 max-w-full max-h-full rounded-full flex-shrink-0 focus:outline-none outline-none",{"cursor-default text-stone-400 hover:text-stone-400":e.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!e.disabled,"bg-black bg-opacity-50":!e.transparent}],onClick:We(u,["stop"]),onMouseenter:a,onMouseleave:l}),{default:ae(()=>[J("div",Ju,[Ie(c.$slots,"default")])]),_:3},16,["class"])),[[X(hn),e.disabled?0:15]])}}),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),lt=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{type:String},transparent:{type:Boolean},enableHapticFeedback:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,i)=>($(),ve(Mi,{class:"w-10",disabled:e.disabled,href:e.href,transparent:e.transparent,"enable-haptic-feedback":e.enableHapticFeedback,onClick:i[0]||(i[0]=r=>n("click",r))},{default:ae(()=>[Ie(o.$slots,"default")]),_:3},8,["disabled","href","transparent","enable-haptic-feedback"]))}}),ef=Object.freeze(Object.defineProperty({__proto__:null,default:lt},Symbol.toStringTag,{value:"Module"})),tf={},nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function of(e,t){return $(),Z("svg",nf,[...t[0]||(t[0]=[J("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)])])}const cl=we(tf,[["render",of]]),rf=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"}));class sf{constructor(){$e(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 lf(){const e=new sf;return qt(()=>e.dispose()),En("keyController",e),e}function Eo(e){const t=Lt("keyController");Xe(()=>t.addListener(e)),qt(()=>t.removeListener(e))}const af={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},cf={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},uf={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ul=Te({__name:"BottomSheet",props:fn({name:{type:String}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Mn(e,"modelValue");Eo({onKeyDown:o});const n=Ei();me(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>($(),Z("div",{class:Oe(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:r[4]||(r[4]=()=>t.value=!1)},[te(Co,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ae(()=>[t.value?($(),Z("div",{key:0,class:"inline-flex flex-col h-[30rem] 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:r[1]||(r[1]=We(()=>{},["stop"])),onWheelPassive:r[2]||(r[2]=We(()=>{},["stop"])),onTouchmove:r[3]||(r[3]=We(()=>{},["stop"]))},[J("div",af,[te(lt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:ae(()=>[te(cl)]),_:1}),J("div",cf,Ze(e.name),1),Ie(i.$slots,"actions")]),J("div",uf,[Ie(i.$slots,"default")])],32)):Me("",!0)]),_:3})],2))}}),ff=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),df=["min","max","step"],pf={class:"flex-shrink-0"},Pi=we(Te({__name:"InputPercentage",props:fn({min:{type:Number},max:{type:Number},step:{type:Number},disabled:{type:Boolean},suffix:{type:String}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Mn(e,"modelValue"),n=ie({get(){return t.value},set(o){t.value=+o}});return(o,i)=>($(),Z("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":e.disabled}]),style:Be({"--percentage":`${(n.value-e.min)/(e.max-e.min)*100}%`})},[gt(J("input",{"onUpdate:modelValue":i[0]||(i[0]=r=>n.value=r),type:"range",min:e.min,max:e.max,step:e.step??1,class:"flex-grow"},null,8,df),[[xu,n.value]]),J("p",pf,[Ie(o.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;--tw-bg-opacity:1;background-color:rgb(120 113 108/var(--tw-bg-opacity,1));outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none!important;border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;width:16px;--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity,1));transition-duration:.2s}input[type=range]:hover{opacity:1}
22
- `]]]),hf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),gf=["onClick","onKeyup"],Hn=Te({__name:"InputSelect",props:fn({items:{type:Array}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Mn(e,"modelValue"),o=ee(null),i=ee({width:"",left:""});Xe(()=>{let s=!1;me(n,a=>{var u;const l=(u=o.value)==null?void 0:u.children[a+1];l&&(i.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function r(s){s!==n.value&&(n.value=s)}return(s,a)=>($(),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"},[J("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Be(i.value)},null,4),($(!0),Z(Ee,null,un(t.items,(l,u)=>gt(($(),Z("div",{key:u,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":u==n.value,"text-stone-400":u!=n.value}]),onClick:()=>r(u),onKeyup:[Ws(()=>r(u),["enter"]),Ws(()=>r(u),["space"])]},[Dt(Ze(l),1)],42,gf)),[[X(hn),30]])),128))],512))}}),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Hn},Symbol.toStringTag,{value:"Module"})),vf={class:"flex items-center mb-8 last:mb-0"},bf={class:"flex-grow overflow-hidden"},Qt=Te({__name:"TableField",props:{label:{type:String},disabled:{type:Boolean}},setup(e){return(t,n)=>($(),Z("div",vf,[J("div",{class:Oe(["flex-shrink-0 w-[4.8rem]",{"opacity-50":e.disabled}])},Ze(e.label),3),J("div",bf,[Ie(t.$slots,"default")])]))}}),yf=Object.freeze(Object.defineProperty({__proto__:null,default:Qt},Symbol.toStringTag,{value:"Module"})),wf={},xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function _f(e,t){return $(),Z("svg",xf,[...t[0]||(t[0]=[J("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)])])}const fl=we(wf,[["render",_f]]),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),kf={},Cf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"};function Tf(e,t){return $(),Z("svg",Cf,[...t[0]||(t[0]=[J("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),J("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)])])}const dl=we(kf,[["render",Tf]]),If=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"}));function Ef(e){if(e)try{return JSON.parse(e)}catch{return}}function Mf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var bt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(bt||{}),Ft=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Ft||{});const pl=.25,hl=5,Pf=.25,Mo=.2,Po=5,Of=.05,$f=0,Af=5,gl=5;function Lf(e){var _,C,W,D,I,j,q;const{titleName:t,isWebtoon:n}=e,o=ie(()=>t.value?Mf(t.value):location.hostname),i=ee(zf(`tkr:${o.value}`)),r=m=>{i.value=m;const S=`tkr:${o.value}`;!m||!Object.keys(m).length?localStorage.removeItem(S):localStorage.setItem(S,JSON.stringify(m))},s=m=>{if(!i.value){r(m);return}const S={...i.value};Object.entries(m).forEach(([N,b])=>{b===void 0?delete S[N]:S[N]=b}),r(S)},a=ee((_=i.value)==null?void 0:_.style),l=ee((C=i.value)==null?void 0:C.direction),u=ee((W=i.value)==null?void 0:W.gap),c=ee(((D=i.value)==null?void 0:D.speed)??1),f=ee(((I=i.value)==null?void 0:I.zoom)??1),p=ee(((j=i.value)==null?void 0:j.breakFirst)??!1),g=ee(((q=i.value)==null?void 0:q.autoNextSeconds)??gl),x=ie({get(){return n.value?Ft.longStrip:a.value??e.defaultStyle.value??Ft.longStrip},set:m=>{if(a.value===m)return;const S=x.value===Ft.longStrip,N=m===Ft.longStrip;a.value=m,s({style:m}),S!==N&&(T.value=N?bt.vertical:bt.rtl)}}),T=ie({get(){return n.value?bt.vertical:l.value??e.defaultDirection.value??bt.vertical},set:m=>{l.value=m,s({direction:m})}}),G=ie({get:()=>u.value??e.defaultGap.value??0,set(m){u.value=m,s({gap:m})}}),F=ie({get:()=>c.value,set(m){c.value=m,s({speed:m===1?void 0:m})}}),H=ie({get:()=>f.value,set(m){f.value=m,s({zoom:m===1?void 0:m})}}),E=ie({get:()=>p.value,set(m){p.value=m,s({breakFirst:m?!0:void 0})}}),v=ie({get:()=>g.value,set(m){g.value=m,s({autoNextSeconds:m===gl?void 0:m})}});return{direction:T,style:x,gap:G,speed:F,zoom:H,isLongStrip:ie(()=>x.value===Ft.longStrip),isDouble:ie(()=>x.value===Ft.double),isRTL:ie(()=>T.value===bt.rtl),isVertical:ie(()=>T.value===bt.vertical),breakFirst:E,autoNextSeconds:v}}function zf(e){const t=localStorage.getItem(e),n=Ef(t),o={};return n?(n.style!==void 0&&Object.values(Ft).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(bt).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=$f&&n.gap<=Af&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=pl&&n.speed<=hl&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Mo&&n.zoom<=Po&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const ml=Te({__name:"ButtonReaderSettings",props:{name:{type:String},direction:{type:Number},readerStyle:{type:Number},gap:{type:Number},autoNextSeconds:{type:Number},speed:{type:Number},zoom:{type:Number},webtoon:{type:Boolean},disabled:{type:Boolean},hideAutoNext:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:autoNextSeconds","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,i=ee(!1),r=ie(()=>["Long strip",n.webtoon?void 0:"Single page",n.webtoon?void 0:"Double page"].filter(Boolean)),s=ie(()=>n.name??location.hostname);Eo({onKeyUp:u=>{u.key==="s"&&!u.metaKey&&!u.ctrlKey&&(i.value=!i.value)}});function a(u){o("update:zoom",Math.round(u)/100)}function l(){i.value=!1,o("help")}return(u,c)=>($(),Z(Ee,null,[te(lt,{title:"Reader settings (S)",disabled:e.disabled,onClick:c[0]||(c[0]=()=>i.value=!0)},{default:ae(()=>[te(dl)]),_:1},8,["disabled"]),te(ul,{modelValue:i.value,"onUpdate:modelValue":c[6]||(c[6]=f=>i.value=f),name:s.value},{actions:ae(()=>[te(lt,{transparent:"",onClick:l},{default:ae(()=>[te(fl)]),_:1})]),default:ae(()=>[te(Qt,{label:"Style"},{default:ae(()=>[te(Hn,{"model-value":e.readerStyle,items:r.value,"onUpdate:modelValue":c[1]||(c[1]=f=>o("update:reader-style",f))},null,8,["model-value","items"])]),_:1}),te(Qt,{label:"Direction"},{default:ae(()=>[te(Hn,{"model-value":e.direction,items:e.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=f=>o("update:direction",f))},null,8,["model-value","items"])]),_:1}),te(Qt,{label:"Gap"},{default:ae(()=>[te(Hn,{"model-value":e.gap,items:["None","1px","2px","3px","4px","5px"],"onUpdate:modelValue":c[3]||(c[3]=f=>o("update:gap",f))},null,8,["model-value"])]),_:1}),e.hideAutoNext?Me("",!0):($(),ve(Qt,{key:0,label:"Auto Next"},{default:ae(()=>[te(Hn,{"model-value":e.autoNextSeconds<0?0:e.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":c[4]||(c[4]=f=>o("update:autoNextSeconds",f===0?-1:f))},null,8,["model-value"])]),_:1})),te(Qt,{label:"Speed"},{default:ae(()=>[te(Pi,{"model-value":e.speed,min:X(pl),max:X(hl),step:X(Pf),suffix:"x","onUpdate:modelValue":c[5]||(c[5]=f=>o("update:speed",f))},{suffix:ae(()=>[Dt(Ze(e.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),te(Qt,{label:"Zoom"},{default:ae(()=>[te(Pi,{"model-value":Math.ceil(e.zoom*100),min:X(Mo)*100,max:X(Po)*100,step:X(Of)*100,"onUpdate:modelValue":a},{suffix:ae(()=>[Dt(Ze(Math.ceil(e.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),Df=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),Nf={},jf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"};function Bf(e,t){return $(),Z("svg",jf,[...t[0]||(t[0]=[J("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[J("circle",{cx:"14",cy:"14",r:"12"}),J("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)])])}const vl=we(Nf,[["render",Bf]]),Rf=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),Ff={class:"block w-4 h-4"},Hf={class:"w-12"},bl=Te({__name:"ButtonResetZoom",props:{zoom:{type:Number}},emits:["click"],setup(e,{emit:t}){const n=t;function o(i){n("click",i)}return(i,r)=>($(),Z("button",{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",onClick:We(o,["stop"])},[J("div",Ff,[te(vl)]),J("div",Hf,Ze(Math.ceil(e.zoom*100))+"%",1)]))}}),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"}));async function gn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(i=>{setTimeout(async()=>{const r=await gn(e-1,t,n);i(r)},t)})}const Wf={},Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Kf(e,t){return $(),Z("svg",Uf,[...t[0]||(t[0]=[Nc('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)])])}const yl=we(Wf,[["render",Kf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),Yf={},Zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Xf(e,t){return $(),Z("svg",Zf,[...t[0]||(t[0]=[J("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)])])}const wl=we(Yf,[["render",Xf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Jf=["aria-hidden"],Qf=["onClick"],ed={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"},td={class:"whitespace-nowrap"},Oi=Te({__name:"ButtonDropdown",props:fn({label:{type:String},title:{type:String},items:{type:Array},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function},enableHapticFeedback:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:fn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=Mn(e,"modelValue"),r=ee(null),s=ee(!1),a=ee(!1),l=ee(!1),u=ee(!1),c=ee(!1),f={mounted:I=>{var j;(j=I.children[i.value])==null||j.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};Eo({onKeyDown:H});const p=Ei(),g=Ii();async function x(){if(!n.items.length&&(s.value||await T(),!n.items.length)){s.value=!1;return}s.value=!s.value,p(s.value),s.value?(G(),v(r.value)):setTimeout(_,250)}async function T(){a.value||n.items.length||!n.canLoadItems||!n.loadItems||(a.value=!0,await n.loadItems(),a.value=!1)}function G(){const I=r.value;if(I){const j=I.getBoundingClientRect(),q=j.x+j.width/2;l.value=j.y>window.innerHeight/2,u.value=q<window.innerWidth/3,c.value=q>window.innerWidth/3*2}}function F(I,j){x(),I!=i.value&&(i.value=I,o("select",I,j),n.enableHapticFeedback&&g())}function H(I){s.value&&I.key==="Escape"&&(x(),I.preventDefault())}let E=[];function v(I){const j=window.getComputedStyle(I).zIndex,q=I.style.zIndex;(!j||!(+j>0))&&((!I.parentElement||I.parentElement.childElementCount>1)&&(I.style.zIndex="1",E.push({el:I,zIndex:q})),I.parentElement&&v(I.parentElement))}function _(){E.forEach(({el:I,zIndex:j})=>{I.style.zIndex=j??""}),E=[]}let C=!1;function W(){C||(C=!0,p(!0,{desktopOnly:!0}))}function D(){C&&(C=!1,p(!1,{desktopOnly:!0}))}return(I,j)=>($(),Z("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?($(),Z("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:x})):Me("",!0),e.items.length?($(),ve(Co,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ae(()=>[s.value?gt(($(),Z("ul",{key:0,ref:"list","aria-hidden":!s.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":l.value,"origin-top top-full translate-y-1.5":!l.value,"left-1/2 -ml-20 text-center":!u.value&&!c.value,"right-0 text-right":c.value}]),onWheelPassive:j[0]||(j[0]=We(()=>{},["stop"])),onTouchmove:j[1]||(j[1]=We(()=>{},["stop"]))},[($(!0),Z(Ee,null,un(e.items,(q,m)=>gt(($(),Z("li",{key:m,tabindex:"-1",class:Oe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-textPrimary":m===i.value}]),onClick:S=>F(m,S)},[J("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[Ie(I.$slots,"item",{item:q},()=>[Dt(Ze(q),1)])],2)],10,Qf)),[[X(hn),30]])),128))],42,Jf)),[[f]]):Me("",!0)]),_:3})):Me("",!0),gt(($(),Z("button",An({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":e.disabled||a.value}]},e.title?{title:e.title}:{},{onClick:We(x,["stop"]),onMouseenter:W,onMouseleave:D}),[J("div",ed,[J("span",td,Ze(e.label),1),e.items.length||e.canLoadItems?($(),Z("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":l.value}]),"aria-hidden":"true"},[a.value?($(),ve(yl,{key:0})):($(),ve(wl,{key:1}))],2)):Me("",!0)])],16)),[[X(hn),30]])],512))}}),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),xl=Te({__name:"ChapterNav",props:{data:{type:Object},chapterSpec:{type:Object},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const l=n.chapterSpec;if(!l)return;const{trigger:u,sel:c,label:f}=l;if(u&&(!c||!f)){await r(u);return}o("getHiddenChapters"),await gn(50,50,()=>n.data.chapters.length?!0:void 0)}async function r(l){const u=document.querySelector(l);u&&(u instanceof HTMLDialogElement?u.showModal():u.click(),o("chaptersDialogOpen"))}function s(l,u){var c,f,p;(p=(f=(c=n.data)==null?void 0:c.chapters)==null?void 0:f[l])==null||p.select(a(u))}function a(l){return!n.touchDevice&&(l.ctrlKey||l.metaKey)}return(l,u)=>{var c;return $(),ve(Oi,{modelValue:e.data.activeIndex,label:e.data.activeLabel,title:"Select chapter",items:e.data.chapters,"can-load-items":!!((c=e.chapterSpec)!=null&&c.trigger),"load-items":i,"enable-haptic-feedback":"",onSelect:s},{item:ae(({item:f})=>[Dt(Ze(f.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),od=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),id={},rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function sd(e,t){return $(),Z("svg",rd,[...t[0]||(t[0]=[J("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)])])}const _l=we(id,[["render",sd]]),ld=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),Sl=Te({__name:"DirectionToast",props:{direction:{type:Number}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=ee(typeof n!="string"||+n!==t.direction),i=tt(()=>o.value=!1,1250);me(()=>t.direction,()=>{r(),o.value=!0,i()}),Xe(()=>{r(),i();let s;const a=Ci();me(a,l=>{l!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,i())})});function r(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,a)=>($(),ve(Co,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[o.value?($(),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":e.direction===X(bt).vertical,"rotate-180":e.direction===X(bt).rtl}])},[te(_l)],2)):Me("",!0)]),_:1}))}}),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),kl=Te({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=ee(null),r=ee([]);Xe(async()=>{const u=ol(i),c=tt(()=>{s({width:u.width.value,height:u.height.value})},50);c(),me(u.width,c),me(u.height,c)});function s(u){var p;const c=(p=i.value)==null?void 0:p.parentElement;if(!c)return;const f=Array.from(c.querySelectorAll("#controls [title]"));f.length&&(r.value=a(f,u))}function a(u,c){const f=[],p=[];let g=0,x=0;const T=50,G=25;u.forEach(_=>{var j;const C=(j=_.getAttribute("title"))==null?void 0:j.trim(),W=_.getBoundingClientRect();if(!C||!W.height||!W.width)return;const D=Math.ceil((W.top-10)/T),I=Math.ceil((W.left-10)/T);p.push({isTour:!1,title:C,rect:W,fromX:I,toX:Math.max(I+1,Math.ceil((W.right+10)/T)),fromY:D,toY:Math.max(D+1,Math.ceil((W.bottom+10)/T))})}),p.forEach(_=>{for(let C=_.fromY;C<_.toY;C++){f[C]??(f[C]=[]);for(let W=_.fromX;W<_.toX;W++)f[C][W]=_;_.toY>g+1&&(g=_.toY-1),_.toX>x+1&&(x=_.toX-1)}});let F=x/2;p.forEach(_=>{_.isAlignRight=_.fromX>F});const H=(_,C)=>{f[C]??(f[C]=[]);const W=C>=_.toY;if(_.isTour)for(let D=_.fromX;D<_.toX;D++)delete f[_.fromY][D],_.fromY=C,_.toY=C+(W?1:-1),f[C][D]=_;else{const D=_.isAlignRight?_.fromX-3:_.fromX,I=D+3;_.helpItem={fromX:D,toX:I,fromY:C,toY:C+1,isTour:!0,isAlignRight:_.isAlignRight};for(let j=D;j<I;j++)f[C][j]=_.helpItem}},E=(_,C)=>{if(C>g||C<0)return!1;const W=C>=_.toY,D=f[C];if(!D)return H(_,C),!0;const I=D[_.fromX];if(I&&!I.isTour)return!1;if(I&&I.isTour)return E(I,W?C+1:C-1)?(H(_,C),!0):!1;if(!I){const j=_.isAlignRight?-1:1;return D[_.fromX+j]||D[_.fromX+j*2]?E(_,W?C+1:C-1):(H(_,C),!0)}return!1};p.forEach(_=>{if(!E(_,_.toY)){if(_.isAlignRight){const C=f[_.fromY]??[];if(!C.slice(_.fromX-3,_.fromX).filter(Boolean).length){const D=_.fromX-3,I=_.fromX;_.helpItem={isTour:!0,isAlignRight:!0,fromX:D,toX:I,fromY:_.fromY,toY:_.toY};for(let j=_.fromX-3;j<_.fromX;j++)C[j]=_.helpItem;return}}E(_,_.fromY-1)}});const v=[];return p.forEach(_=>{const{title:C,helpItem:W,rect:D,isAlignRight:I,fromX:j,fromY:q,toY:m}=_;if(!C||!W||!D)return;const S=W.fromY>=m,N=W.toY<=q;v.push({title:l(C),style:{top:S?`${D.bottom+(W.fromY-m)*T+G}px`:N?void 0:`${D.top+8}px`,bottom:N?`${c.height-D.top+(W.toY-q)*T+G}px`:void 0,left:I?void 0:`${D.left}px`,right:I?S?`${c.width-D.right}px`:`${c.width-D.right+D.width+G}px`:void 0},arrowStyle:{width:N||S?"2px":`${Math.abs(W.toX-j)*T+G-5}px`,height:N||S?`${(S?W.fromY-m:q-W.toY)*T+G}px`:"2px",top:S?`${D.bottom}px`:N?void 0:`${D.top+20}px`,bottom:N?`${c.height-D.top}px`:void 0,left:I?void 0:`${D.left+D.width/2}px`,right:I?S?`${c.width-D.right+D.width/2}px`:`${c.width-D.right+D.width}px`:void 0}})}),v}function l(u){return n.touchDevice?u.split("(")[0].trim():u}return(u,c)=>($(),Z(Ee,null,[c[1]||(c[1]=J("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1)),J("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=We(f=>o("hide"),["stop"]))},[($(!0),Z(Ee,null,un(r.value,f=>($(),Z(Ee,{key:f.title},[J("div",{class:"absolute",style:Be(f.style)},Ze(f.title),5),J("div",{class:"absolute bg-stone-300 rounded-lg",style:Be(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),cd=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),Cl=Te({__name:"PageNav",props:fn({disabled:{type:Boolean},pages:{type:Array},totalImgs:{type:Number}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Mn(e,"modelValue"),o=ie(()=>t.pages.map(l=>l.map(({index:u})=>`${u+1}`).join("-"))),i=ie(()=>{const l=n.value,u=t.pages.findIndex(c=>c.some(({index:f})=>f===l));return u===-1?t.pages.length-1:u}),r=ie(()=>t.pages.length?`${o.value[i.value]}/${t.totalImgs}`:"--");function s(l){const u=t.pages[l][0].index;a(u)}function a(l){n.value=l}return(l,u)=>($(),ve(Oi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:e.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),fd={},dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function pd(e,t){return $(),Z("svg",dd,[...t[0]||(t[0]=[J("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),J("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)])])}const $i=we(fd,[["render",pd]]),hd=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),gd={},md={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function vd(e,t){return $(),Z("svg",md,[...t[0]||(t[0]=[J("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)])])}const Ai=we(gd,[["render",vd]]),bd=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Tl=we(Te({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=ee(0);return me(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?($(),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"},[e.playing?($(),ve(Ai,{key:0})):($(),ve($i,{key:1}))])):Me("",!0)}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
23
- `]]]),yd=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),Il=we(Te({__name:"ProgressBar",props:{value:{type:Number},total:{type:Number},longStrip:{type:Boolean},height:{type:Number},rtl:{type:Boolean}},setup(e){const t=e,n=ie(()=>Math.floor(t.value)+1),o=ie(()=>`${Math.max(2,Math.min(10,t.height))}px`);return(i,r)=>($(),Z("div",{class:Oe(["rprog",{"rprog--rtl":e.rtl}]),style:Be({height:o.value})},[($(!0),Z(Ee,null,un(e.total,s=>($(),Z("span",{key:s,class:Oe(["rprog__item",{"rprog__item--active":n.value===s}]),style:Be(!e.longStrip||n.value!==s?{}:{"--portion":`${e.value%1*100}%`})},null,6))),128))],6))}}),[["styles",[`.rprog{--portion:100%;display:flex;width:100%}.rprog--rtl,.rprog--rtl .rprog__item{flex-direction:row-reverse}.rprog__item{display:inline-flex;flex-grow:1;flex-shrink:0;height:100%}.rprog__item:first-child:before{display:none}.rprog__item--active:before,.rprog__item:has(~.rprog__item--active):before{background-color:rgb(0 0 0/var(--tw-bg-opacity,1));content:"";display:block;flex-shrink:0;height:100%;width:1px;--tw-bg-opacity:.25}.rprog__item--active:after,.rprog__item:has(~.rprog__item--active):after{background-color:rgb(251 130 82/var(--tw-bg-opacity,1));content:"";display:block;height:100%;--tw-bg-opacity:.8;width:var(--portion)}
24
- `]]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),El=Te({__name:"GesturesContainer",props:{zoom:{type:Number},zooming:{type:Boolean},pageIndex:{type:Number},playController:{type:Object},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:zoom","update:zooming","dragEnd","click","prev","next"],setup(e,{emit:t}){const n=e,o=t,i=ee(null),r=ee(Math.min(Po,Math.max(Mo,n.zoom))),s=ee(!1),a=ee(!1),l={isZoomIn:!1,isZoomOut:!1,initial:void 0};me(()=>n.zoom,b=>N(b)),Xe(()=>{n.touchDevice?Rt(i,"touchstart",G):(Rt(i,"mousedown",p),Rt(window,"wheel",C))}),Eo({onKeyDown:b=>{var z;if(!n.busy&&((z=i.value)==null||z.focus(),!(b.key==="Meta"||b.key==="Control")&&(b.ctrlKey||b.metaKey)))switch(b.key){case"0":N(1);break;case"-":N(r.value-.2),b.preventDefault();break;case"=":case"+":N(r.value+.2),b.preventDefault();break}},onKeyUp:b=>{n.zooming&&!(b.ctrlKey||b.metaKey)&&q()}});function u(b){a.value!==b&&(a.value=b,b?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let c={x:0,y:0},f={x:0,y:0};function p(b){b.button===0&&(c={x:b.clientX,y:b.clientY},f={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",g),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",g),setTimeout(()=>u(!1))},{once:!0}),b.preventDefault(),b.stopPropagation())}function g(b){const z=b.clientX-c.x,U=b.clientY-c.y;if(!a.value&&Math.abs(z)<.5&&Math.abs(U)<.5)return;u(!0);const w=i.value;w.scrollLeft=f.x-z,w.scrollTop=f.y-U}let x={distance:0,zoom:r.value,x:0,y:0},T=!1;function G(b){n.busy||(T=b.touches.length===2,T&&(o("update:zooming",!0),u(!0),b.stopPropagation(),b.preventDefault(),x={distance:W(b),zoom:r.value,x:(b.touches[0].clientX+b.touches[1].clientX)/2,y:(b.touches[0].clientY+b.touches[1].clientY)/2}),(T||n.longStrip&&n.playController.isPlaying.value)&&window.addEventListener("touchend",F,{once:!0}))}function F(){if(T=!1,n.zooming){u(!1),q();return}if(!a.value)return;const b=tt(()=>{u(!1),i.value.removeEventListener("scroll",U)},200),z=setTimeout(b,200);i.value.addEventListener("scroll",U);function U(){clearTimeout(z),b()}}function H(b){if(!(!T&&!(n.longStrip&&n.playController.isPlaying.value))&&(u(!0),n.zooming)){b.stopPropagation(),b.preventDefault();const U=W(b)/x.distance;S(Math.ceil(U*x.zoom*100)/100,x)}}const E=tt(()=>s.value=!1,100);let v=!1;const _=tt(()=>{v=!1},30);function C(b){if(n.busy)return;let z=n.zooming;if(v||(v=!0,z=b.ctrlKey||b.metaKey,z&&o("update:zooming",!0)),_(),z){b.stopPropagation(),b.preventDefault();const U=Math.ceil((r.value+b.deltaY*-.01)*100)/100;S(U,{x:b.clientX,y:b.clientY});return}n.horizontal&&(s.value||(s.value=!0),E(),b.deltaY&&(i.value&&(i.value.scrollLeft+=b.deltaY*(n.rtl?-1:1)),b.stopPropagation()))}function W(b){return Math.hypot(b.touches[0].clientX-b.touches[1].clientX,b.touches[0].clientY-b.touches[1].clientY)}const D={x:0,y:0,ts:0};function I(b){if(a.value||n.zooming)return;if(!n.longStrip){const he=n.horizontal?i.value.clientWidth:i.value.clientHeight,Le=(n.horizontal?n.rtl?he-b.clientX:b.clientX:b.clientY)/he;if(Le<=.2&&n.pageIndex>0){o("prev");return}else if(Le>=.8){o("next");return}}if(o("click"),n.playController.isPlaying.value)return;const{clientX:z,clientY:U}=b,{x:w,y:B,ts:fe}=D;D.x=z,D.y=U,D.ts=new Date().getTime();const ue=D.ts-fe;ue>250||ue<10||Math.abs(w-z)>40||Math.abs(B-U)>40||(D.ts=0,D.x=0,D.y=0,j(z,U))}async function j(b,z){const U=r.value===1?2:1;await N(U,{x:b,y:z}),q()}function q(){o("update:zooming",!1),l.initial=void 0,l.isZoomIn=!1,l.isZoomOut=!1}function m(){if(l.initial)return;const b=i.value;if(!b)return;const z=b.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;z&&(l.initial={el:z,rect:z.getBoundingClientRect()})}function S(b,z){if(l.isZoomIn=l.isZoomIn||!l.isZoomOut&&b>1,l.isZoomIn&&b<1){N(1,z);return}if(l.isZoomOut=l.isZoomOut||!l.isZoomIn&&b<1,l.isZoomOut&&b>1){N(1,z);return}N(b,z)}async function N(b,z){const U=i.value,w=Math.min(Po,Math.max(Mo,b));if(!U||r.value===w)return;m();const{initial:B}=l;if(!B)return;const fe=(z==null?void 0:z.x)??U.clientWidth/2,ue=(z==null?void 0:z.y)??U.clientHeight/2;r.value=w,o("update:zoom",w),await Ct();const{el:he,rect:ke}=B,Le=he.offsetWidth/ke.width,Ge=he.offsetHeight/ke.height;U.scrollLeft=he.offsetLeft-ke.left*Le+fe*(Le-1),U.scrollTop=he.offsetTop-ke.top*Ge+ue*(Ge-1)}return(b,z)=>($(),Z("div",{ref_key:"root",ref:i,tabindex:"0",class:Oe(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!e.longStrip&&(a.value||s.value||e.zooming),"cursor-grabbing":!e.touchDevice&&a.value,"overflow-hidden":e.zooming}]),style:Be({"font-size":`${r.value}px`}),onClick:We(I,["stop"]),onTouchmoveCapture:We(H,["stop"])},[Ie(b.$slots,"default")],38))}}),xd=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"})),_d=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{border-radius:9999px;border-style:solid;border-width:4px;box-sizing:border-box;display:block;position:absolute;--tw-border-opacity:1;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border-color:rgb(184 92 56/var(--tw-border-opacity,1));content:"";opacity:1}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:40px;opacity:0;top:40px;width:0}4.9%{height:8px;left:36px;opacity:0;top:36px;width:8px}5%{height:8px;left:36px;opacity:1;top:36px;width:8px}to{height:80px;left:0;opacity:0;top:0;width:80px}}
25
- `,Sd={},kd={class:"loading-indicator"};function Cd(e,t){return $(),Z("div",kd)}const Li=we(Sd,[["render",Cd],["styles",[_d]]]),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function zi(e,t){return(e==null?void 0:e.querySelector(`[data-index="${t}"],[data-index2="${t}"]`))??void 0}const Id=["data-index"],Ed={key:0,class:"img img--loading"},Md=["src"],Pd=["data-index"],Ml=we(Te({__name:"ReaderBody",props:{page:{type:Number},pageIndex:{type:Number},direction:{type:Number},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isDouble:{type:Boolean},isRTL:{type:Boolean},pages:{type:Array},totalImgs:{type:Number},gap:{type:Number},zoom:{type:Number},zooming:{type:Boolean},spaceTop:{type:null},touchDevice:{type:Boolean},playController:{type:Object},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["ready","update:zoom","update:zooming","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,i=tl(),r=ee(null),s=ll(),a=ie(()=>{const{width:H,height:E}=s,v=n.isLongStrip?n.isVertical?H.value:E.value:Math.min(H.value,E.value);return Math.min(4,Math.max(1,Math.ceil(v/400-1)))*n.gap}),l=ee(n.isLongStrip?{min:n.pageIndex-1,max:n.pageIndex}:T()),u=ie(()=>{const{min:H,max:E}=l.value,v={};for(let _=H;_<=E;_++)v[_]=!0;return v}),c=ie(()=>({windowWidth:s.width.value,windowHeight:s.height.value,pages:n.pages,isLongStrip:n.isLongStrip,isVertical:n.isVertical})),f=ki(()=>{p.value=g()},100,!0,!1);me(c,f);const p=ee(g());function g(){const H=c.value,{windowWidth:E,windowHeight:v,pages:_,isLongStrip:C,isVertical:W}=H;return _.map(D=>{var U;const I=D.some(w=>{var B;return(B=w.img)==null?void 0:B.isLoading}),j=D.map(w=>w.index),q={isLoading:I,indexes:j,visible:!1};if(I)return q;const m=D.map(({img:w})=>w).filter(Boolean);if(!m.length||(q.srcs=m.map(({src:w})=>w),m.every(w=>w.hasError)))return q;const N=(U=m.find(w=>!w.hasError))==null?void 0:U.size;if(!N)return q;const b=m.reduce((w,B)=>{var fe;return w+(((fe=B.size)==null?void 0:fe.width)??N.width)},0),z=m.reduce((w,B)=>{var fe;return w+(((fe=B.size)==null?void 0:fe.height)??N.height)},0)/m.length;return C&&W||!C&&E/b<v/z?(q.width=Math.min(E,b),q.height=z*(q.width/b)):(q.height=Math.min(v,z),q.width=b*(q.height/z)),q})}const x=ie(()=>{const H=n.isVertical?"width":"height";return p.value.map(E=>E[H]).filter(Boolean).sort((E,v)=>v-E)[0]});Xe(()=>{const H=zi(i.value,n.pageIndex);H==null||H.scrollIntoView({behavior:"instant",block:"start"});let E,v=!1;kc(()=>{E!==n.page&&(E=n.page,_(),v||(v=!0,Ct(()=>o("ready"))))});async function _(){if(!n.isLongStrip){l.value=T();return}const C=Math.floor(n.page),W=zi(i.value,C);if(!W)return;const D=+G(W).getAttribute("data-index"),I=+F(W).getAttribute("data-index");(D!==l.value.min||I!==l.value.max)&&(l.value={min:D,max:I})}});function T(){const{pageIndex:H}=n;return{min:H-(n.isDouble?5:3),max:H+(n.isDouble?6:3)}}function G(H){const E=H.previousElementSibling;if(!E)return H;const v=E.getBoundingClientRect();return(n.isVertical?v.y+v.height>-(s.height.value*1.5):n.isRTL?v.x<s.width.value*2.5:v.x+v.width>-(s.width.value*1.5))?G(E):H}function F(H){const E=H.nextElementSibling;if(!E)return H;const v=E.getBoundingClientRect();return(n.isVertical?v.y<s.height.value*3:n.isRTL?v.x+v.width>-(s.width.value*1.5):v.x<s.width.value*2.5)?F(E):H}return(H,E)=>($(),ve(El,{zoom:e.zoom,zooming:e.zooming,"page-index":e.pageIndex,class:Oe(["rbod",{"rbod--touch":e.touchDevice,"rbod--long-strip":e.isLongStrip,"rbod--paging":!e.isLongStrip,"rbod--vertical":e.isVertical,"rbod--rtl":e.isRTL,"rbod--idle":e.idle,"rbod--first":!e.isLongStrip&&e.pageIndex===0,"rbod--last":!e.isLongStrip&&e.pageIndex===e.totalImgs&&!e.hasNext,"rbod--1page":p.value.length===1}]),"play-controller":e.playController,horizontal:!e.isVertical,rtl:e.isRTL,"touch-device":e.touchDevice,busy:e.busy,"long-strip":e.isLongStrip,style:Be({"--gap":`${a.value}em`,"--space-top":(e.spaceTop||0)+"px","--screen-width-em":X(s).width.value+"em","--screen-height-em":X(s).height.value+"em",...e.isLongStrip?{"--max-size-em":x.value+"em"}:{}}),"onUpdate:zoom":E[0]||(E[0]=v=>o("update:zoom",v)),"onUpdate:zooming":E[1]||(E[1]=v=>o("update:zooming",v)),onDragEnd:E[2]||(E[2]=()=>o("dragEnd")),onClick:E[3]||(E[3]=()=>o("click")),onPrev:E[4]||(E[4]=()=>o("prev")),onNext:E[5]||(E[5]=()=>o("next"))},{default:ae(()=>[($(!0),Z(Ee,null,un(p.value,v=>{var _;return $(),Z("div",An({key:e.direction+"_"+v.indexes[0],"data-index":v.indexes[0]},{ref_for:!0},v.indexes.length>1?{"data-index2":v.indexes[1]}:{}),[!((_=v.srcs)!=null&&_.length)||v.isLoading?($(),Z("div",Ed,[u.value[v.indexes[0]]?($(),ve(Li,{key:0})):Me("",!0)])):v.srcs.length==1?($(),ve(Rr(u.value[v.indexes[0]]?"img":"div"),An({key:1,class:"img"},{ref_for:!0},u.value[v.indexes[0]]?{src:v.srcs[0]}:{},{style:{width:v.width!==void 0?v.width+"em":"",height:v.height!==void 0?v.height+"em":""}}),null,16,["style"])):($(),Z("div",{key:2,class:Oe(["img img--double",{"flex-row-reverse":e.isRTL}]),style:Be({width:v.width!==void 0?v.width+a.value+"em":"",height:v.height!==void 0?v.height+"em":""})},[v.indexes.some(C=>u.value[C])?($(!0),Z(Ee,{key:0},un(v.srcs,C=>($(),Z("div",{key:C},[J("img",{src:C},null,8,Md)]))),128)):Me("",!0)],6))],16,Id)}),128)),J("div",{ref_key:"autoNextEl",ref:r,class:"last","data-index":e.totalImgs},[Ie(H.$slots,"end")],8,Pd)]),_:3},8,["zoom","zooming","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"]))}}),[["styles",[`.rbod{--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){.rbod{transform:none}}.rbod--rtl{flex-direction:row-reverse}.rbod.rbod--vertical>div{padding:calc(var(--gap)/2) 0}.rbod:not(.rbod--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.rbod:not(.rbod--vertical)>div{padding:0 calc(var(--gap)/2)}.rbod--long-strip.rbod--vertical.rbod--1page>div:first-child{min-height:100vh}.rbod--long-strip.rbod--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.rbod--long-strip.rbod--vertical>div:last-child{padding-bottom:0}.rbod--long-strip.rbod--vertical>div{width:var(--max-size-em)}.rbod--long-strip.rbod--vertical .img--loading{height:75vh;width:100%}.rbod--long-strip.rbod--vertical .last{height:100vh}.rbod--long-strip:not(.rbod--vertical).rbod--1page>div:first-child{min-width:100vw}.rbod--long-strip:not(.rbod--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.rbod--long-strip:not(.rbod--vertical) .img--loading{height:100%;max-width:100vw;width:680px}.rbod--long-strip:not(.rbod--vertical) .last{width:100vw}.rbod--long-strip>div>img{flex-shrink:0;margin:auto}.rbod--paging:not(.rbod--touch):after,.rbod--paging:not(.rbod--touch):before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.rbod--paging.rbod--first:before,.rbod--paging.rbod--last:after{cursor:default}.rbod--paging.rbod--idle:after,.rbod--paging.rbod--idle:before{cursor:none}.rbod--paging>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center;scroll-snap-stop:always}.rbod--paging.rbod--vertical{scroll-snap-type:y var(--tw-scroll-snap-strictness);--tw-scroll-snap-strictness:mandatory}.rbod--paging.rbod--vertical:after,.rbod--paging.rbod--vertical:before{height:20vw;left:0;right:0}.rbod--paging.rbod--vertical:before{top:0}.rbod--paging.rbod--vertical:after{bottom:0}.rbod--paging.rbod--vertical>div{width:var(--screen-width-em)}.rbod--paging:not(.rbod--vertical){scroll-snap-type:x var(--tw-scroll-snap-strictness);--tw-scroll-snap-strictness:mandatory}.rbod--paging:not(.rbod--vertical).rbod--rtl:before{right:0}.rbod--paging:not(.rbod--vertical).rbod--rtl:after,.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):before{left:0}.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):after{right:0}.rbod--paging:not(.rbod--vertical):after,.rbod--paging:not(.rbod--vertical):before{bottom:0;top:0;width:20vw}.rbod--paging:not(.rbod--vertical)>div{height:var(--screen-height-em)}.rbod--paging .img--loading{height:100%;width:100%}.rbod--paging .img.img--double{align-items:center;background-color:transparent;display:flex;gap:var(--gap);justify-content:center}.rbod--paging .img.img--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rbod--paging .img.img--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.rbod>div{flex-shrink:0}.rbod .img,.rbod>div{margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod .img{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));-o-object-fit:contain;object-fit:contain}.rbod .img--loading{align-items:center;background-color:transparent;display:flex;justify-content:center}
26
- `]]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),$d={class:"max-h-none max-w-none h-full w-full m-0 p-0 border-none outline-none"},Ad={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},Ld={class:"flex justify-between items-end"},zd={class:"inline-block children-pointer-events-auto"},Dd={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto"},Nd={class:"inline-block z-20 relative"},jd={key:1,class:"fixed inline-block left-1/2 -translate-x-1/2 bottom-0 p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3"},Pl=we(Te({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},zooming:{type:Boolean},rtl:{type:Boolean},spaceTop:{type:null}},setup(e){const t={mounted:n=>n.showModal(),beforeUnmount:n=>n.close()};return(n,o)=>gt(($(),Z("dialog",$d,[J("div",{id:"reader-layout",class:Oe({"cursor-none":e.idle,"cursor-default":!e.idle,"bg-black":e.immediate||!e.loading,"opacity-0":!e.immediate&&e.loading,"duration-200 transition-colors":!e.immediate})},[e.loading&&e.immediate?($(),Z("div",Ad,[te(Li)])):Me("",!0),Ie(n.$slots,"default"),J("div",{id:"controls",class:Oe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-full h-full flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!e.fullScreen,"opacity-0 -z-10":e.fullScreen}])},[J("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${e.spaceTop||0}px`})},[Ie(n.$slots,"back"),Ie(n.$slots,"exit"),Ie(n.$slots,"chapter-nav")],4),J("div",Ld,[J("div",zd,[Ie(n.$slots,"page-nav")]),J("div",Dd,[Ie(n.$slots,"entry"),J("div",Nd,[Ie(n.$slots,"settings")]),Ie(n.$slots,"full-screen"),Ie(n.$slots,"play"),Ie(n.$slots,"break-first")])]),J("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":e.rtl}])},[Ie(n.$slots,"progress")],2)],2),!e.fullScreen||e.zooming?($(),Z("div",jd,[Ie(n.$slots,"reset-zoom")])):Me("",!0)],2)])),[[t]])}}),[["styles",[`#reader-layout{direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;font-weight:400;height:100%;line-height:24px;overflow:hidden;overscroll-behavior:contain;pointer-events:auto;text-align:left;width:100%;--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity,1))}
27
- `]]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),Ol=we(Te({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=ee(null),i=ee(0),r=ee([]),s=ie(()=>r.value[i.value]),a=ki(l,500);Xe(()=>{const f=ol(o),p=tt(()=>u({width:f.width.value,height:f.height.value}),50);p(),me(f.width,p),me(f.height,p)});function l(){i.value>=r.value.length-1?n("hide"):i.value++}function u(f){const p=c();r.value=p.map(({rect:g,text:x})=>{const T=g.top<f.height-g.bottom,G=g.left<f.width-g.right;return{text:x,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.width}px`,height:`${g.height}px`},textStyle:{left:G?`${g.left-12}px`:void 0,right:G?void 0:`${f.width-g.left}px`,top:T?`${g.bottom+12}px`:`${g.top+20}px`,textAlign:T?void 0:"right",transform:T?void 0:"translateY(-50%)"}}}),i.value>=r.value.length&&(i.value=r.value.length-1)}function c(){var g;const f=(g=o.value)==null?void 0:g.parentElement;if(!f)return[];const p=[];return f.querySelectorAll("[data-tour]").forEach(x=>{var F;const T=(F=x.getAttribute("data-tour"))==null?void 0:F.trim();if(!(T!=null&&T.length))return;const G=x.getBoundingClientRect();p.push({rect:G,text:T})}),p}return(f,p)=>{var g,x;return $(),Z(Ee,null,[J("div",{class:Oe(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),J("div",{ref_key:"root",ref:o,class:"tour",onClick:p[0]||(p[0]=We((...T)=>X(a)&&X(a)(...T),["stop"]))},[s.value?($(),Z("div",{key:i.value,class:"tour__target",style:Be(s.value.style)},null,4)):Me("",!0),($(),Z("div",{key:i.value,class:"tour__text",style:Be((g=s.value)==null?void 0:g.textStyle)},Ze(((x=s.value)==null?void 0:x.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100%;left:0;overflow:hidden;position:fixed;top:0;width:100%;z-index:20}.tour__target{border-radius:9999px;border-width:2px;--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity,1));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%{transform:scale(3);--tw-border-opacity:0;opacity:0}to{transform:scale(1);--tw-border-opacity:1;opacity:.9}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
28
- `]]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),Fd={},Hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Vd(e,t){return $(),Z("svg",Hd,[...t[0]||(t[0]=[J("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)])])}const $l=we(Fd,[["render",Vd]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"})),Ud={},Kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function qd(e,t){return $(),Z("svg",Kd,[...t[0]||(t[0]=[J("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)])])}const Al=we(Ud,[["render",qd]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"})),Zd={},Xd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Gd(e,t){return $(),Z("svg",Xd,[...t[0]||(t[0]=[J("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)])])}const Ll=we(Zd,[["render",Gd]]),Jd=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),Qd={},ep={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function tp(e,t){return $(),Z("svg",ep,[...t[0]||(t[0]=[J("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)])])}const zl=we(Qd,[["render",tp]]),np=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"})),op={},ip={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function rp(e,t){return $(),Z("svg",ip,[...t[0]||(t[0]=[J("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)])])}const Dl=we(op,[["render",rp]]),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 56 56"};function cp(e,t){return $(),Z("svg",ap,[...t[0]||(t[0]=[J("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)])])}const Nl=we(lp,[["render",cp]]),up=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),fp={},dp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function pp(e,t){return $(),Z("svg",dp,[...t[0]||(t[0]=[J("g",{fill:"none"},[J("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),J("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)])])}const jl=we(fp,[["render",pp]]),hp=Object.freeze(Object.defineProperty({__proto__:null,default:jl},Symbol.toStringTag,{value:"Module"})),gp={},mp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"};function vp(e,t){return $(),Z("svg",mp,[...t[0]||(t[0]=[J("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)])])}const Bl=we(gp,[["render",vp]]),bp=Object.freeze(Object.defineProperty({__proto__:null,default:Bl},Symbol.toStringTag,{value:"Module"})),yp={},wp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"};function xp(e,t){return $(),Z("svg",wp,[...t[0]||(t[0]=[J("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)])])}const Rl=we(yp,[["render",xp]]),_p=Object.freeze(Object.defineProperty({__proto__:null,default:Rl},Symbol.toStringTag,{value:"Module"})),Sp={},kp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Cp(e,t){return $(),Z("svg",kp,[...t[0]||(t[0]=[J("path",{fill:"currentColor",d:"M19 12.998h-6v6h-2v-6H5v-2h6v-6h2v6h6z"},null,-1)])])}const Fl=we(Sp,[["render",Cp]]),Tp=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),Ip={},Ep={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"};function Mp(e,t){return $(),Z("svg",Ep,[...t[0]||(t[0]=[J("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)])])}const Hl=we(Ip,[["render",Mp]]),Pp=Object.freeze(Object.defineProperty({__proto__:null,default:Hl},Symbol.toStringTag,{value:"Module"}));function Vn(e=0){return new Promise(t=>setTimeout(t,e))}function Vl(e){const t=async(n,o)=>{var i;if(!n.toBlob){if(o)return;const r=n.cloneNode(),s=(i=r.getContext)==null?void 0:i.call(r,"2d");if(!s)return;try{s.drawImage(e,0,0)}catch{return}return t(r,!0)}return await new Promise(r=>{const s=a=>{if(!a)return r(void 0);const l=URL.createObjectURL(a);r(l)};try{n.toBlob(s,"image/jpeg",1)}catch{r(void 0)}})};return t(e,!1)}let Oo;async function Op(e,t){if(Oo||!t.startsWith("blob:"))return t;if(Oo===void 0){try{if((await fetch(t)).ok)return Oo=!0,t}catch{}Oo=!1}e.complete||await new Promise(l=>{let u=0;const c=setInterval(()=>{e.complete?(l(),clearInterval(c)):++u>=30&&l()},100)});const o=e.naturalWidth,i=e.naturalHeight;if(!o||!i)return;const r=document.createElement("canvas"),s=r.getContext("2d");return r.width=o,r.height=i,s==null||s.drawImage(e,0,0,o,i),await Vl(r)}function $p(e){const t=new Set,n=e.getAttributeNames(),o=n.indexOf("src"),i=o!==-1;i&&(n.splice(o,1),n.push("src"));for(const r of n){if(r==="srcset"||i&&r===":src"||r!=="data-url"&&r!=="data-original"&&!r.includes("src"))continue;const s=e.getAttribute(r);s&&(r==="src"&&e.naturalWidth&&e.naturalWidth<200||t.add(s.replace(/(\n|\t)/g," ").trim()))}return Array.from(t)}function Di(e,t){return e>=75&&t>=50&&(e>=200||t>=200)}class Ap{constructor({onChanged:t}){$e(this,"isMounted",!0);$e(this,"elsDisposeCallbacksMap",new Map);$e(this,"onChanged");this.onChanged=t}dispose(){this.isMounted=!1,this.elsDisposeCallbacksMap.forEach(t=>t()),this.elsDisposeCallbacksMap=new Map,this.onChanged=()=>{}}async download(t){if(!this.isMounted)return;const n=t.el,o=!!n&&n instanceof HTMLImageElement,i=n?o?$p(n):[await Vl(n)].filter(Boolean):[t.src].filter(Boolean);if(!(!n&&!i.length||!this.isMounted)){if(n&&!this.elsDisposeCallbacksMap.has(n))if(o){let r=i.slice(-1)[0];const s=new MutationObserver(a=>{a.some(u=>{if(u.attributeName!=="src")return!1;const c=r;return r=n.getAttribute("src"),!!r&&c!==r})&&this.download(t)});s.observe(n,{attributes:!0}),this.elsDisposeCallbacksMap.set(n,()=>s.disconnect())}else{const r=n.getContext("2d");if(r){const s=r.drawImage.bind(r),a=r.putImageData.bind(r),l=(u,c,f)=>(setTimeout(()=>this.download(t),100),u.apply(c,f));r.drawImage=new Proxy(s,{apply:l}),r.putImageData=new Proxy(a,{apply:l}),this.elsDisposeCallbacksMap.set(n,()=>{r.drawImage=s,r.putImageData=a})}}i.length&&(this.onChanged(t,{src:i[0],isLoading:!0,hasError:!1}),await this.downloadRawImage(t,i))}}async downloadRawImage(t,n){const o=t.el instanceof HTMLImageElement?t.el:void 0;for(let i=0;i<n.length;i++){const r=n[i],s=o?await Op(o,r):r;if(!s||!this.isMounted)return;const a=await Lp(s,o,l=>{this.isMounted&&this.onChanged(t,{src:s,size:l,isLoading:!1,hasError:!1})});if(a.ok||!this.isMounted)return;i===n.length-1&&this.onChanged(t,{src:s,isLoading:!1,hasError:!!a.error,invalid:!!a.invalid,size:a.size})}}}async function Lp(e,t,n){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?(n({width:t.naturalWidth,height:t.naturalHeight}),t.complete?{ok:!0}:new Promise(o=>{t.addEventListener("load",()=>o({ok:!0}),{once:!0})})):await new Promise(o=>{const i=new Image,r=setInterval(()=>{const{naturalWidth:s,naturalHeight:a}=i;if(a&&s){const l={width:s,height:a};Di(s,a)?n(l):o({invalid:!0,size:l}),clearInterval(r)}},20);i.onerror=()=>{o({error:!0}),clearInterval(r)},i.onload=()=>setTimeout(()=>o({ok:!0}),25),i.src=e})}const zp=3;class Dp{constructor(t){$e(this,"download");$e(this,"threads");$e(this,"completedItems");$e(this,"promisesMap",new Map);this.download=t.download}dispose(){var t;(t=this.threads)==null||t.dispose(),this.threads=void 0,this.completedItems=void 0}run({activeIndex:t,items:n}){var r;if(this.completedItems===n)return;this.completedItems=void 0,(r=this.threads)==null||r.dispose();let o=Math.max(0,t-1),i=!0;this.threads=new Np(zp,()=>{const s=n[o];if(!s){this.completedItems=n;return}i&&o===n.length-1?(i=!1,o=t-2):i?o++:o--;const a=s.src??s.el;if(a){const u=this.promisesMap.get(a);if(u)return u}const l=this.download(s);return a&&this.promisesMap.set(a,l),l}),this.threads.exec()}}class Np{constructor(t,n){$e(this,"isDisposed",!1);this.limit=t,this.getNext=n}dispose(){this.isDisposed=!0}exec(){for(let t=0;t<this.limit;t++)this.next()}async next(){if(this.isDisposed)return;const t=this.getNext();t&&(await t,await Vn(20),this.next())}}class Wl{constructor(){$e(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const r=this.check(t.parentElement);return this.elsPool.set(t,r),r}}function jp(e,t){let n=[t??document.documentElement];const o=e.split("->");for(let i=0;i<o.length;i++){const r=o[i];n=n.map(s=>Array.from((s.shadowRoot??s).querySelectorAll(r))).flat()}return n}function Ni(e){if(e instanceof HTMLOptionElement){const t=e.parentElement instanceof HTMLOptGroupElement?e.parentElement.parentElement:e.parentElement;if(!t||!(t instanceof HTMLSelectElement))return;const n=e.getAttribute("value")||"";if(t.value===n)return;t.value=n,t.dispatchEvent(new Event("change"));return}e instanceof HTMLAnchorElement&&e.addEventListener("click",t=>t.preventDefault(),{once:!0}),e.click(),e.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0,pointerType:"mouse",button:0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window,button:0}))}async function Bp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=n.split(";");for(const r of i)if(!await Rp(r.trim()))return!1;return!0}async function Rp(e){const t=await gn(50,30,()=>document.querySelector(e));return t?(Ni(t),await Vn(),!0):!1}class Fp{constructor({spec:t,onChanged:n}){$e(this,"spec");$e(this,"onChanged");$e(this,"rawImages",[]);$e(this,"isMounted",!0);$e(this,"loadRawImagesTs");$e(this,"imgListenersMap",new Map);$e(this,"disconnectObservers");$e(this,"contentEl");$e(this,"reloadRawImages",tt(()=>{this.contentEl&&this.loadRawImages(this.contentEl)},100));this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var i;const t=new MutationObserver(this.reloadRawImages),n=(i=this.spec)!=null&&i.imgDivs?void 0:(()=>{let r=window.innerWidth;return new ResizeObserver(tt(()=>{const s=window.innerWidth;if(s!==r){r=s;return}this.reloadRawImages()},50))})();this.disconnectObservers=async()=>{t.disconnect(),n==null||n.disconnect()};let o=!1;this.loadContentEl(r=>{this.contentEl!==r&&(this.contentEl=r,t.disconnect(),n==null||n.disconnect(),t.observe(this.contentEl,{childList:!0,subtree:!0}),n==null||n.observe(this.contentEl),o?this.reloadRawImages():(o=!0,this.loadRawImages(this.contentEl)))})}setRawImages(t){let n=!1;const o=t.map((i,r)=>{const s=this.rawImages[r];return s&&s.el===i.el&&s.parentEl===i.parentEl&&s.src===i.src?s:(n=!0,i)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var a;const n=await Bp(this.spec),o=(a=this.spec)==null?void 0:a.content;if(!o){t(document.body);return}let i=await gn(n?100:1,10,()=>{for(const l of o.split(",")){const u=document.querySelector(l);if(u)return u}});if(!i)return;t(i);let r=0;const s=async()=>{if(this.isMounted&&!(i!=null&&i.isConnected)){if(r=0,i=await gn(50,20,()=>{const l=document.querySelector(o);return l!=null&&l.isConnected&&l!==i?l:void 0}),!i)return;t(i)}!this.isMounted||++r>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var r;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(r=this.spec)==null?void 0:r.imgDivs,i=o?await this.loadFromImgDivs(t,o):this.loadFromContentEl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}async loadFromImgDivs(t,n){const o=jp(n,t);if(!o.length)return this.loadFromContentEl(t);const i=new Wl;return o.map(s=>{const a=Array.from(s.querySelectorAll("img,canvas"));for(const l of a)if(i.check(l)){if(l instanceof HTMLCanvasElement){if(Ul(l))return{el:l,parentEl:s}}else if(l instanceof HTMLImageElement&&Kl(l))return{el:l,parentEl:s}}return{parentEl:s}})}loadFromContentEl(t){const n=[],o={},i=new Wl;return Array.from(t.querySelectorAll("img,canvas")).forEach(s=>{if(!i.check(s)){this.observeInvalidImgEl(s);return}if(s instanceof HTMLCanvasElement)Ul(s)&&n.push({el:s});else if(s instanceof HTMLImageElement)if(Kl(s)){const a=s.getAttribute("src");if(a){const l=o[a];if(l!==void 0&&l!==-1){n.splice(l,1);return}o[a]=n.length}n.push({el:s})}else this.observeInvalidImgEl(s)}),n}observeInvalidImgEl(t){if(!(t instanceof HTMLImageElement)||this.imgListenersMap.has(t))return;const n=()=>{t.removeEventListener("load",n),this.imgListenersMap.delete(t),this.reloadRawImages()};this.imgListenersMap.set(t,n),t.addEventListener("load",n)}}function Ul(e){return e.isConnected&&Di(e.width,e.height)}function Kl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||Di(t.width,t.height)}const ji="mp-scroll-container";class Bi{constructor(){$e(this,"unmountedCallbacks",new Map)}dispose(){for(const t of this.unmountedCallbacks.values())t()}scrollTo({rawImages:t,page:n,skipIfVisible:o,isScrollDown:i,fallbackScrollEl:r}){const s=Math.floor(n),a=t[Math.min(t.length-1,s)];if(!a)return;const l=a.el??a.parentEl??(a.src?document.querySelector(`img[src^="${a.src}"]`):void 0);if(!l)return;const u=l.getBoundingClientRect();if(o&&u.top<=0&&u.top+u.height>0)return;const c=Bi.getScrollable(l,r);if(!c)return;const{el:f,top:p}=c;r!==document.documentElement&&!f.classList.contains(ji)&&(f.classList.add(ji),this.unmountedCallbacks.has(f)||this.unmountedCallbacks.set(f,()=>{f.classList.remove(ji)}));const g=n>=t.length?u.height:i?Math.max(0,u.height-window.innerHeight+100):n%1*u.height,x={top:p+g,behavior:"instant"};f.scrollTo(x),f===document.body&&document.documentElement.scrollTo(x)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:a}=i;if(a&&s&&r.set(a,Math.max(r.get(a)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let u=0;return r.forEach((c,f)=>{u+=f===a?c-s:c}),{el:i,top:u}};return o(t,new Map)}}function ql(e){var t,n;for(let o=0;o<e.length;o++){const i=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),r=i==null?void 0:i.getBoundingClientRect();if(!r||r.bottom<=0)continue;const s=r.top;return o+(s>=0?0:-s/r.height)}return 0}function Hp(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 ql(n)}function Vp(e){var I,j,q;const t=(I=e.raw.value)==null?void 0:I.isWebtoon,n=ee(t===!1),o=ee(t);let i=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),s=((q=(j=e.raw.value)==null?void 0:j.imgs)==null?void 0:q.filter(Boolean))??[];let a=e.isAutoShow!==!1?e.page.value:s.length?Hp(s):void 0,l=s.map(m=>({src:m})),u,c;const f=new Map,p=({src:m,el:S})=>{const N=S??m;return N?f.get(N):void 0},g=ee(s.map(m=>({src:m,isLoading:!0,hasError:!1}))),x=()=>{const m=[];l.forEach(S=>{const{src:N,el:b}=S,z=b??N,U=z?f.get(z):void 0;(z&&!(U!=null&&U.invalid)||S.parentEl)&&m.push(U)}),g.value=m};let T=setTimeout(e.onTimeout,2e4);const G=()=>{T&&(clearTimeout(T),T=void 0)};let F=0,H=0;const E=4,v=new Ap({onChanged(m,S){const N=m.el??m.src;if(!N||(f.set(N,S),x(),S.isLoading))return;if(S.hasError){if(c||o.value!==void 0)return;c=setTimeout(()=>{c=void 0,o.value===void 0&&e.onError("Failed to load images")},3e3);return}const{size:b,invalid:z}=S;if(!(!b||z)){if(!o.value&&H<E){const U=i?l:l.filter(({el:ke,src:Le})=>Le||!(ke&&ke instanceof HTMLImageElement&&!f.has(ke)));let w=U.indexOf(m);if(i&&w>4||w===-1&&(m.el&&(w=U.findIndex(ke=>ke.el===m.el)),w===-1))return;const B=w>Math.min(1,U.length-3)&&w<Math.max(U.length-2,3),fe=b.width/b.height;fe>2&&F++;const ue=fe<.5||F>=E,he=!ue&&.65<fe&&fe<.75;he&&H++,o.value!==ue&&(B||ue)&&(o.value=ue),B&&n.value!=he&&(n.value=!0),o.value===void 0&&he&&H===E&&(o.value=!1)}D()}}}),_=new Dp({download:async m=>{!(m.el&&f.has(m.el))&&!(m.src&&f.has(m.src))&&await v.download(m)}}),C=()=>{_.run({items:l,activeIndex:Math.min(l.length-1,Math.floor(e.page.value))})},W=new Bi;if(s.length)C();else{let m=!1;u=new Fp({spec:e.spec,async onChanged(S){var N;if(l=S,x(),!e.raw.value&&!S.length){e.onError("no_img");return}(N=e.spec)!=null&&N.imgDivs&&!m&&e.isAutoShow!==!1&&e.page.value&&(m=!0,W.scrollTo({rawImages:S,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:r?document.body:document.documentElement}),await Vn(1)),a===void 0&&e.isAutoShow===!1&&(a=ql(S)),C()}})}ni(()=>{v.dispose(),_.dispose(),u==null||u.dispose(),c&&clearTimeout(c),W.dispose(),i&&W.scrollTo({rawImages:l,page:e.page.value,fallbackScrollEl:document.documentElement})});function D(){if(i||o.value===void 0||a===void 0)return;const m=Math.max(0,Math.min(a,l.length)),S=Math.min(Math.floor(m),l.length-1);if(S>=1){const b=l[S];if(!b||!p(b)){e.isAutoShow&&W.scrollTo({rawImages:l,page:S,fallbackScrollEl:r?document.body:document.documentElement});return}for(let z=S;z<l.length;z++){const U=p(l[z]);if(!U)return;if(!U.invalid){if(!U.size&&!U.hasError)return;break}}for(let z=S-1;z>=0;z--){const{src:U,el:w}=l[z],B=w??U;if(!B)break;const fe=f.get(B);if(!fe)return;if(!fe.invalid){if(!fe.size&&!fe.hasError)return;break}}}if(i)return;i=!0,G(),e.onReady(m);let N=!0;me(()=>Math.floor(e.page.value),(b,z)=>{b===z&&!N||(W.scrollTo({rawImages:l,page:b,isScrollDown:z===void 0||b>z||l.length===1,skipIfVisible:N&&l.length>1,fallbackScrollEl:r?document.body:document.documentElement}),N=!1,z??(z=-1),C())},{immediate:!0})}return{asyncImgs:ie(()=>g.value),isWebtoon:ie(()=>o.value??!1),isManga:ie(()=>n.value)}}function Wp(e,t,n){return ie(()=>t.value?Yl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function Yl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),i=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),r=i||t?[o[0]]:o;return[r.map((s,a)=>({img:s,index:n+a})),...Yl(e.slice(r.length),t&&i,n+r.length)]}function Up(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=ee(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ie({get:()=>o.value,set:i=>{o.value=i,sessionStorage.setItem("tk:page",i+"")}})}function Kp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Ri=40;function qp({page:e,totalImgs:t,direction:n,style:o,isLongStrip:i,isVertical:r,isRTL:s,spaceTop:a,scrollEl:l,isWebtoon:u,interferePlayer:c,onChangedPage:f,onInitialized:p,onFinished:g}){let x=!1,T=!1,G=!1,F;const H=tt(j,300),E=ki(()=>{j(),H()},300),v=w=>(W(w),tt(W,50)(w));async function _(){D(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function C(){var w;T=!0,p(),q(),(w=l.value)==null||w.addEventListener("scroll",E),setTimeout(()=>{const{width:B,height:fe}=ll();me(B,()=>{r.value&&v(e.value)}),me(fe,()=>{r.value||v(e.value)}),me(o,()=>v(e.value)),me(n,()=>v(e.value)),/iPad|iPhone|iPod/.test(navigator.userAgent)&&me(t,()=>{s.value&&v(e.value)})},300)}async function W(w){if(!(!T||x)){if(x=!0,await Ct(),S()===w){x=!1;return}D(w)}}function D(w,{smooth:B,ensureLastImgVisibility:fe=!1}={smooth:!1}){const ue=l.value;if(!ue)return;x=!0;const he=async()=>{await Ct(),x=!1,T||C()},ke=Math.floor(w),Le=zi(ue,ke);if(!Le){he();return}c(async()=>{await I(ue,!i.value&&B,async()=>{await U(ue,Le,{smooth:B,page:w,ensureLastImgVisibility:fe})}),await he()})}async function I(w,B,fe){B&&w.style.setProperty("scroll-snap-type","none"),await fe(),B&&w.style.removeProperty("scroll-snap-type")}function j(){if(x)return;const w=S();w!==void 0&&w!==e.value&&f(w),q()}function q(){G||!G&&m()&&(G=!0,g())}function m(){const w=l.value;if(!w)return!1;const B=i.value?u.value?3:!r.value&&w.clientWidth>w.clientHeight?2.25:2.5:2;return r.value?w.scrollHeight-w.scrollTop<w.clientHeight*B:w.scrollWidth-(s.value?-w.scrollLeft:w.scrollLeft)<w.clientWidth*B}function S(){const w=N();return w?(+w.getAttribute("data-index")||0)+(i.value?b(w):0):void 0}function N(){var B;if(F??(F=l.value.getRootNode()),!F)return;const w=(B=F.elementsFromPoint)==null?void 0:B.call(F,r.value||!i.value?window.innerWidth/2:s.value?window.innerWidth-Ri:Ri,r.value&&i.value?a.value||Ri:window.innerHeight/2);if(w)for(let fe=0;fe<w.length;fe++){const ue=w[fe];if(ue.hasAttribute("data-index"))return ue;if(ue===l.value)break}}function b(w){const B=w.getBoundingClientRect();return r.value?Math.abs(B.top-a.value)/B.height:s.value?Math.max(0,B.right-l.value.clientWidth)/B.width:Math.abs(B.left)/B.width}let z=!1;async function U(w,B,fe){if(z)return;const ue=B.getBoundingClientRect();if(!i.value){if(r.value){if(ue.top<=0&&ue.bottom>=w.clientHeight)return}else if(ue.left<=0&&ue.right>=w.clientWidth)return}z=!0;const he=r.value?w.scrollTop:w.scrollLeft,ke=fe.page,Le=i.value?ke%1:0,Ge=await gn(30,10,async()=>{await Vn();let ze;if(!(B.offsetHeight<10))return i.value?r.value?ze=B.offsetTop+Le*B.offsetHeight-a.value:s.value?ze=B.offsetLeft-w.clientWidth+B.offsetWidth-Le*B.offsetWidth:ze=B.offsetLeft+Le*B.offsetWidth:r.value?ze=B.offsetTop+(ue.top>0?0:ue.height-w.clientHeight):ze=B.offsetLeft+(ue.left>0?0:ue.width-w.clientWidth),ke>.5&&Math.abs(ze)<100?void 0:ze})??0,yt=fe.ensureLastImgVisibility?r.value?Math.min(Ge,w.scrollHeight-w.clientHeight*2):s.value?Math.max(Ge,-(w.scrollWidth-w.clientWidth*2)):Math.min(Ge,w.scrollWidth-w.clientWidth*2):Ge;if(!fe.smooth){r.value?w.scrollTop=yt:w.scrollLeft=yt,z=!1;return}const Pt=yt-he,Ot=30;let Ht=0;return new Promise(ze=>{(function tn(){const at=Yp(Ht,he,Pt,Ot);r.value?w.scrollTop=at:w.scrollLeft=at,Ht++,Ht<=Ot?requestAnimationFrame(tn):(ze(),z=!1)})()})}return{init:_,goToPage:D}}function Yp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Zp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const a=ee(e||sessionStorage.getItem("tk:playing")==="true"),l=ie({get:()=>a.value,set:C=>{a.value=C,sessionStorage.setItem("tk:playing",C?"true":"false")}}),u=ee(!1);let c,f;const p=tt(v,100),g=tt(()=>{u.value=!0},t?2e3:1e3),x=()=>setTimeout(()=>{u.value=!1,g()},30);x(),t||Rt(window,"mousemove",x),Xe(()=>{if(!t){const C=Ci();me(C,W=>{l.value&&(W==="visible"?v():f==null||f())})}me(s,()=>T()),me(r,C=>{C||F()})}),qt(F);async function T(C){l.value&&(f==null||f()),C&&(await Ct(),await C()),l.value&&p()}function G(){l.value?F():H()}function F(){l.value&&(l.value=!1,f==null||f(),x())}function H(){!l.value&&r.value&&(l.value=!0,v(),x())}function E(){f==null||f()}function v(){const C=n.value;if(!l.value||!C)return;const W=o.value?C.scrollHeight-C.clientHeight:C.scrollWidth-C.clientWidth,D=_();if(W<=D){F();return}f=()=>{c=Date.now(),f=void 0};const I=Date.now();c=I;const j=.1*s.value,q=o.value?"scrollTop":"scrollLeft";let m=Date.now(),S=0;const N=()=>{if(c!==I)return;const b=Date.now(),z=b-m;m=b;const U=j*z+S;U>=1?(S=U%1,C[q]+=(U-S)*(i.value?-1:1)):S=U,setTimeout(N,1)};N()}function _(){const C=n.value;return o.value?C.scrollTop:i.value?-C.scrollLeft:C.scrollLeft}return{isPlaying:l,isIdle:u,toggle:G,play:H,pause:E,resume:v,stop:F,interfere:T,awake:x}}function Xp({raw:e,spec:t,siteMeta:n,onSelect:o}){var j,q,m;const{vol:i,inferVol:r,chap:s,title:a,slug:l,basePath:u}=e,c=t==null?void 0:t.chapter;let f=-1;async function p(S,N){if(o){o({...S});return}if(S.slug){g(S.slug,N);return}if(S.elIndex===void 0||!(c!=null&&c.sel))return;let b=null;document.querySelector(c.sel)||(c!=null&&c.trigger&&(b=document.querySelector(c.trigger)),b&&(b.click(),await new Promise(U=>setTimeout(()=>U(),50))));const z=c&&c.sel&&!c.url?document.querySelectorAll(c.sel):void 0;z!=null&&z[S.elIndex]&&(Ni(z[S.elIndex]),b&&document.querySelector(c.sel)&&b.click())}function g(S,N){const b=Gp(u,S,(n==null?void 0:n.trailing)??!0);N?window.open(b,"_blank","noopener"):location.href=b}function x(S){const N=E[S];return N?b=>p(N,b):void 0}function T(S,N,b){if(S){const z=document.querySelector(S);z&&Ni(z);return}N&&g(N,b)}const G=i??r,F=c==null?void 0:c.url,H=((j=a.chapters)==null?void 0:j.filter(S=>S.slug||!F&&S.elIndex!==void 0))??[],E=H.length>1?H:[],v=(q=e.prev)==null?void 0:q.slug,_=(m=e.next)==null?void 0:m.slug,{prevBtn:C,nextBtn:W}=t??{};let D=v||C&&!E.length&&document.body.querySelector(C)?S=>T(C,v,S):void 0,I=_||W&&!E.length&&document.body.querySelector(W)?S=>T(W,_,S):void 0;if(E.length){if(F&&(f=E.findIndex(S=>S.slug===e.slug)),f===-1&&(f=E.findIndex(S=>(S.vol??S.inferVol)===G&&S.chap===s)),F&&f===-1&&(f=E.findIndex(S=>S.slug&&l.startsWith(`${S.slug}-`)&&l.length-S.slug.length>3)),f!==-1)D??(D=x(f+1)),I??(I=x(f-1));else if(!v&&!_){const S=E.findIndex(N=>{const b=N.vol??N.inferVol;return G===void 0||b===void 0||G===b?N.chap<s:b<G});S!==-1?(D=x(S),I=x(S-1)):I=x(E.length-1)}}return{activeIndex:f,activeLabel:Zl({vol:i,chap:s}),prev:D,next:I,chapters:E.map(S=>({label:Zl(S),select:N=>p(S,N)}))}}function Zl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Gp(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[i,r]=(o.includes("//")?o:location.origin+o).split("?");return[i.endsWith("/")===n?i:n?i+"/":i.substring(0,-1),r].filter(Boolean).join("?")}var $o=(e=>(e[e.never=0]="never",e[e.move=1]="move",e[e.firstMove=2]="firstMove",e))($o||{});const Jp={class:"flex justify-center items-center gap-1 pl-1 pr-2 h-full"},Qp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Xl=we(Te({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{type:Object},spec:{type:Object},siteMeta:{type:null},page:{type:Number},spaceTop:{type:Number},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{type:String},autoPlay:{type:Boolean},readerStyle:{type:Number},direction:{type:Number},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean},offlineMode:{type:Boolean},autoNextSeconds:{type:Number},defaultGap:{type:Number},hideControlsEvent:{type:Number},progressSize:{type:Number}},emits:["error","crash","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters","hapticFeedback","pressedBack","selectChapter","timeout"],setup(e,{emit:t}){const n=e,o=t;let i=!1;Nr((k,L,se)=>{if(!i){i=!0;const Ae=`(1.25.0) ${(L==null?void 0:L.$options.name)??(L==null?void 0:L.$options.__name)??(L==null?void 0:L.$options.__file)}.${se}: ${k.stack}`;o("crash",Ae)}return!1});let r=!1,s;const a=ee(!1),l=ee(!1),u=Gu({touchDevice:n.touchDevice}),c=Up(n.page,n.isAutoShow),f=ie(()=>n.immediate||a.value?n.spaceTop??0:0),{asyncImgs:p,isWebtoon:g,isManga:x}=Vp({raw:ie(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,async onReady(k){Pt(k),a.value=!0},onError:()=>{o("error"),P()},onTimeout:()=>o("timeout")}),{direction:T,style:G,isRTL:F,isDouble:H,isVertical:E,isLongStrip:v,gap:_,speed:C,zoom:W,breakFirst:D,autoNextSeconds:I}=Lf({isWebtoon:g,isManga:x,titleName:ie(()=>{var k;return(k=n.raw)==null?void 0:k.title.name}),defaultStyle:ie(()=>n.readerStyle),defaultDirection:ie(()=>n.direction),defaultGap:ie(()=>n.defaultGap)}),j=ee(!1),q=Wp(p,H,D),m=ie(()=>p.value.length),S=ie(()=>c.value>=m.value),N=ie(()=>n.raw?Xp({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta,onSelect:n.offlineMode?k=>o("selectChapter",k):void 0}):void 0),b=ee(null),z=tl(),U=ee(!1),w=ee(!1),B=Zp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var k;return(k=b.value)==null?void 0:k.$el}),speed:C,isRTL:F,isVertical:E,isLongStrip:v}),fe=ie(()=>!n.touchDevice&&B.isIdle.value&&!u.value&&!j.value),ue=ie({get(){return W.value},set(k){B.interfere(()=>{W.value=k})}}),he=qp({page:c,totalImgs:m,style:G,direction:T,isLongStrip:v,isVertical:E,isRTL:F,spaceTop:f,isWebtoon:g,scrollEl:ie(()=>{var k;return(k=b.value)==null?void 0:k.$el}),interferePlayer:k=>B.interfere(k),onChangedPage:Pt,onInitialized(){o("ready"),l.value=!0,s=Ot()},onFinished:()=>o("finished")}),ke=ie(()=>Math.floor(c.value)),Le=ie(()=>v.value?c.value:H.value?R():Math.floor(c.value)),Ge=()=>B.interfere(()=>Vn(100));if(lf().addListener({onKeyDown:k=>{if(n.tourEnabled)return;const L=v.value&&E.value,se=v.value&&!E.value,de=!v.value&&E.value,Ae=!v.value&&!E.value;switch(k.key){case" ":k.preventDefault(),v.value?(ye(!1),B.toggle()):Q();break;case"ArrowUp":case"PageUp":L?Ge():de&&ke.value!==0&&(k.preventDefault(),K());break;case"ArrowDown":case"PageDown":L?Ge():de&&!S.value&&(k.preventDefault(),V());break;case"ArrowLeft":se?Ge():Ae?(k.preventDefault(),M()):E.value&&d();break;case"ArrowRight":se?Ge():Ae?(k.preventDefault(),O()):E.value&&at();break;case"Escape":k.preventDefault();break}},onKeyUp:k=>{switch(k.key){case"b":D.value=!D.value;break;case"f":ne();break;case"t":Y();break;case"h":ye();break}}}),Vu(()=>o("hapticFeedback")),Rt("fullscreenchange",()=>{U.value=!!document.fullscreenElement}),n.touchDevice){const k=Ci();me(k,L=>{L==="hidden"&&(B.isPlaying.value?B.stop():n.fullScreen&&Q(!1))})}me(B.isPlaying,k=>{k||Q(!1),o("playingChanged",k)}),me(B.isIdle,k=>{B.isPlaying.value&&Q(k)}),me(u,k=>{!k&&B.isIdle.value?B.awake():k&&n.fullScreen&&Q()});function Pt(k){if(c.value===k)return;const L=p.value.length;if(k<0||k>=L+1)return;const se=Math.floor(k*100)/100;if(se===c.value)return;const de=c.value;if(c.value=se,o("pageChanged",se),k>=L){Q(!1),B.stop();return}if(k<.01&&de>k){Q(!1),B.awake();return}const Vt=n.hideControlsEvent??$o.firstMove;if(!r&&Vt===$o.firstMove){(v.value?s!==void 0&&Math.abs(Ot()-s)>300:Math.abs(de-k)>=1)&&Q(!0);return}!B.isPlaying.value&&Vt===$o.move&&Q(!0)}function Ot(){var L;const k=(L=b.value)==null?void 0:L.$el;return k?E.value?k.scrollTop:F.value?-k.scrollLeft:k.scrollLeft:0}function Ht(){!n.touchDevice&&!v.value&&he.goToPage(ke.value,{smooth:!0})}function ze(){if(B.isPlaying.value){!n.fullScreen||!n.touchDevice?B.stop():B.awake();return}Q()}function tn(k){n.offlineMode&&(k.preventDefault(),o("pressedBack"))}function at(k=!1){var L,se;(se=(L=N.value)==null?void 0:L.next)==null||se.call(L,k)}function d(k=!1){var L,se;(se=(L=N.value)==null?void 0:L.prev)==null||se.call(L,k)}function h(k){F.value?at(A(k)):d(A(k))}function y(k){F.value?d(A(k)):at(A(k))}function A(k){return!n.touchDevice&&(k.ctrlKey||k.metaKey)}function M(){F.value?V():K()}function O(){F.value?K():V()}function K(){var se;const k=q.value,L=S.value?k[k.length-1][0].index:(se=k[R()-1])==null?void 0:se[0].index;L!==void 0?he.goToPage(L):d()}function V(){var k,L;if(S.value)at();else{const se=((L=(k=q.value[R()+1])==null?void 0:k[0])==null?void 0:L.index)??p.value.length;he.goToPage(se)}}function R(){const k=ke.value,L=q.value.findIndex(se=>se.some(({index:de})=>de===k));return L===-1?q.value.length-1:L}function P(){if(n.offlineMode){o("pressedBack");return}Kp(),o("dispose")}async function Q(k){if(u.value&&!n.fullScreen)return;const L=typeof k=="boolean"?k:!n.fullScreen;L!==n.fullScreen&&(r=!0,o("fullScreenChanged",L),L&&setTimeout(()=>{n.fullScreen&&u.value&&o("fullScreenChanged",!1)},100))}function Y(){n.entryId?pe():re()}function ne(){var k,L;document.fullscreenElement?document.exitFullscreen():(L=(k=z.value)==null?void 0:k.querySelector("#reader-layout"))==null||L.requestFullscreen()}function re(){B.stop(),o("addEntry")}function pe(){B.stop(),o("openEntry",n.entryId)}function ye(k){w.value!==k&&(w.value=!w.value,w.value&&B.isPlaying.value&&B.stop())}return(k,L)=>e.immediate||a.value?($(),ve(Pl,{key:0,loading:!l.value,immediate:!!e.immediate,"full-screen":!!e.fullScreen,zooming:j.value,idle:fe.value,"space-top":f.value,rtl:X(F),onClick:L[15]||(L[15]=We(()=>{},["stop"]))},oi({settings:ae(()=>{var se;return[te(ml,{"reader-style":X(G),"onUpdate:readerStyle":L[6]||(L[6]=de=>Pe(G)?G.value=de:null),direction:X(T),"onUpdate:direction":L[7]||(L[7]=de=>Pe(T)?T.value=de:null),gap:X(_),"onUpdate:gap":L[8]||(L[8]=de=>Pe(_)?_.value=de:null),speed:X(C),"onUpdate:speed":L[9]||(L[9]=de=>Pe(C)?C.value=de:null),zoom:ue.value,"onUpdate:zoom":L[10]||(L[10]=de=>ue.value=de),"auto-next-seconds":X(I),"onUpdate:autoNextSeconds":L[11]||(L[11]=de=>Pe(I)?I.value=de:null),name:(se=e.raw)==null?void 0:se.title.name,webtoon:X(g),disabled:!a.value,"hide-auto-next":e.autoNextSeconds!==void 0,onHelp:ye},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled","hide-auto-next"])]}),"reset-zoom":ae(()=>[te(Co,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[j.value||X(W)!==1?($(),ve(bl,{key:0,zoom:ue.value,onClick:L[14]||(L[14]=We(()=>ue.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):Me("",!0)]),_:1})]),default:ae(()=>{var se;return[a.value?($(),ve(Ml,{key:0,ref_key:"body",ref:b,zoom:ue.value,"onUpdate:zoom":L[0]||(L[0]=de=>ue.value=de),zooming:j.value,"onUpdate:zooming":L[1]||(L[1]=de=>j.value=de),page:X(c),"page-index":ke.value,pages:X(q),"total-imgs":X(p).length,direction:X(T),gap:X(_),"is-long-strip":X(v),isRTL:X(F),"is-double":X(H),"is-vertical":X(E),"space-top":f.value,busy:X(u),idle:fe.value,"play-controller":X(B),"touch-device":e.touchDevice,"has-next":!!((se=N.value)!=null&&se.next),onReady:X(he).init,onPrev:K,onNext:V,onClick:ze,onDragEnd:Ht,onWheelPassive:L[2]||(L[2]=()=>X(B).interfere())},oi({_:2},[a.value&&X(p).length?{name:"end",fn:ae(()=>{var de;return[te(al,{"has-next":!!((de=N.value)!=null&&de.next),"offline-mode":!!e.offlineMode,seconds:e.autoNextSeconds??X(I),onNext:at,onHide:P},oi({_:2},[X(W)===1&&!e.entryId&&e.raw&&!e.offlineMode?{name:"bottom-center",fn:ae(()=>[te(Mi,{class:"bg-primary w-min !h-9 !bg-opacity-100",onClick:Y},{default:ae(()=>[J("div",Jp,[te(Fl,{class:"flex-shrink-0 w-auto"}),L[16]||(L[16]=J("span",{class:"text-sm"},"Add to library",-1))])]),_:1})]),key:"0"}:void 0]),1032,["has-next","offline-mode","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-double","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onReady"])):Me("",!0),l.value&&!S.value&&!e.tourEnabled?($(),ve(Sl,{key:1,direction:X(T)},null,8,["direction"])):Me("",!0),l.value&&!S.value?($(),ve(Tl,{key:2,playing:!!X(B).isPlaying.value},null,8,["playing"])):Me("",!0),w.value?($(),ve(kl,{key:3,"touch-device":e.touchDevice,onHide:ye},null,8,["touch-device"])):Me("",!0),e.tourEnabled?($(),ve(Ol,{key:4,onHide:L[3]||(L[3]=()=>o("tourEnabledChanged",!1))})):Me("",!0)]}),_:2},[e.raw||e.offlineMode?{name:"back",fn:ae(()=>[te(lt,{href:e.offlineMode||!e.raw?"#":e.raw.title.url,title:"Back to manga","enable-haptic-feedback":"",onClick:tn},{default:ae(()=>[te($l)]),_:1},8,["href"])]),key:"0"}:void 0,!e.touchDevice&&!e.offlineMode?{name:"exit",fn:ae(()=>[te(lt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:P},{default:ae(()=>[te(Hl)]),_:1})]),key:"1"}:void 0,N.value?{name:"chapter-nav",fn:ae(()=>{var se;return[te(xl,{"touch-device":e.touchDevice,"chapter-spec":(se=e.spec)==null?void 0:se.chapter,data:N.value,onGetHiddenChapters:L[4]||(L[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:L[5]||(L[5]=()=>Q(!0))},null,8,["touch-device","chapter-spec","data"]),N.value.next||N.value.prev?($(),Z("div",Qp,[te(lt,{title:`${X(F)?"Next":"Prev"} chapter (←)`,disabled:X(F)?!N.value.next:!N.value.prev,class:"!rounded-r-none","enable-haptic-feedback":"",onClick:h},{default:ae(()=>[te(zl)]),_:1},8,["title","disabled"]),te(lt,{title:`${X(F)?"Prev":"Next"} chapter (→)`,disabled:X(F)?!N.value.prev:!N.value.next,class:"!rounded-l-none","enable-haptic-feedback":"",onClick:y},{default:ae(()=>[te(Dl)]),_:1},8,["title","disabled"])])):Me("",!0)]}),key:"2"}:void 0,X(q).length?{name:"page-nav",fn:ae(()=>[te(Cl,{"model-value":ke.value,disabled:!l.value,pages:X(q),"total-imgs":X(p).length,"onUpdate:modelValue":X(he).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,!e.offlineMode&&e.raw?{name:"entry",fn:ae(()=>[te(lt,{title:e.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:Y},{default:ae(()=>[e.entryId?($(),ve(Ll,{key:0})):($(),ve(Al,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,e.touchDevice?void 0:{name:"full-screen",fn:ae(()=>[te(lt,{title:`${U.value?"Exit":"Enter"} fullscreen (F)`,onClick:ne},{default:ae(()=>[U.value?($(),ve(Rl,{key:0})):($(),ve(Bl,{key:1}))]),_:1},8,["title"])]),key:"5"},X(v)?{name:"play",fn:ae(()=>[te(lt,{"data-tour":"Press here to play like a video",title:`${X(B).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:L[12]||(L[12]=()=>X(B).toggle())},{default:ae(()=>[X(B).isPlaying.value?($(),ve($i,{key:0})):($(),ve(Ai,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,X(H)?{name:"break-first",fn:ae(()=>[te(lt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:L[13]||(L[13]=()=>D.value=!X(D))},{default:ae(()=>[X(D)?($(),ve(jl,{key:0})):($(),ve(Nl,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0,e.progressSize!==0&&!S.value?{name:"progress",fn:ae(()=>[te(Il,{value:Le.value,total:X(q).length,"long-strip":X(v),height:e.progressSize??2,rtl:X(F)},null,8,["value","total","long-strip","height","rtl"])]),key:"8"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):Me("",!0)}}),[["styles",[`*,: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;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{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-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]:where(:not([hidden=until-found])){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%}.container,svg{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}}.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}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.left-10{left:40px}.left-9{left:36px}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-10{top:40px}.top-9{top:36px}.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-0{margin:0}.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}.box-border{box-sizing:border-box}.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-9{height:36px!important}.h-0{height:0}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-2{height:8px}.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-\\[30rem\\]{height:480px}.h-full{height:100%}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.max-h-none{max-height:none}.w-0{width:0}.w-1{width:4px}.w-10{width:40px}.w-12{width:48px}.w-2{width:8px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.8rem\\]{width:76.8px}.w-auto{width:auto}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-full{max-width:100%}.max-w-none{max-width:none}.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\\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.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}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.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)}.snap-center{scroll-snap-align:center}.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-2{gap:8px}.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-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border-2{border-width:2px}.border-4{border-width:4px}.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,1))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity,1))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity,1))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(184 92 56/var(--tw-bg-opacity,1))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity,1))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity,1))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity,1))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity,1))}.bg-textPrimary{--tw-bg-opacity:1;background-color:rgb(251 130 82/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.\\!bg-opacity-100{--tw-bg-opacity:1!important}.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-0{padding:0}.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}.pb-7{padding-bottom:28px}.pl-1{padding-left:4px}.pr-2{padding-right:8px}.pt-3{padding-top:12px}.text-left{text-align:left}.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}.font-normal{font-weight:400}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity,1))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity,1))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity,1))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity,1))}.text-textPrimary{--tw-text-opacity:1;color:rgb(251 130 82/var(--tw-text-opacity,1))}.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}.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,1))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity,1))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity,1))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity,1))}.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,1))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity,1))}}.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,1))}.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\\:pb-6{padding-bottom:24px}.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}.lg\\:pb-4{padding-bottom:16px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
29
- `]]]),eh=Object.freeze(Object.defineProperty({__proto__:null,default:Xl},Symbol.toStringTag,{value:"Module"})),th=Object.freeze(Object.defineProperty({__proto__:null,default:Te({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=ee(null),i=ee(!1);return Xe(async()=>{await Ct();let r=!1;Ti(o,s=>{const a=s.some(l=>l.isIntersecting);a!==i.value&&(i.value=a),a&&!r&&n("visible")})}),(r,s)=>($(),Z("div",{ref_key:"root",ref:o},[Ie(r.$slots,"default",{visible:i.value})],512))}})},Symbol.toStringTag,{value:"Module"})),nh={},oh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function ih(e,t){return $(),Z("svg",oh,[...t[0]||(t[0]=[J("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)])])}const rh=Object.freeze(Object.defineProperty({__proto__:null,default:we(nh,[["render",ih]])},Symbol.toStringTag,{value:"Module"})),sh=`gear-second{height:0!important;opacity:0!important;pointer-events:none!important;width:0!important;z-index:-10!important}html.gear-second,html.gear-second *{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{touch-action:pan-x pan-y!important}html.gear-second body .m-content #progress-bar{display:none!important}html.gear-second body>:not(dialog[open]){visibility:hidden!important}.mp-scroll-container{max-height:100vh!important;overflow:hidden!important}html:has(body.mp-scroll-container){overflow:auto!important}
30
- `,en="gear-second",Fi={immediate:void 0,raw:void 0,spec:void 0,siteMeta: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,offlineMode:void 0,autoNextSeconds:void 0,defaultGap:void 0,progressSize:void 0,hideControlsEvent:void 0,onError:void 0,onCrash:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0,onHapticFeedback:void 0,onPressedBack:void 0,onSelectChapter:void 0,onTimeout:void 0},nt={promise:void 0,data:no({...Fi})};async function lh(e){return nt.promise?(nt.data.raw=e.raw,await nt.promise):(nt.promise=new Promise(t=>{let n=!1,o=!1,i,r,s=0;const a=!!e.spaceTop||!!e.isAutoShow&&!!e.page,l=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(en),Object.assign(nt.data,Fi),nt.promise=void 0)},u=tt(p=>{var g;return!n&&((g=e.onPageChanged)==null?void 0:g.call(e,p))},300);Object.assign(nt.data,Fi,e,{immediate:a,onReady(){a||(c(),document.documentElement.classList.add(en))},onError(){var p,g;l(),o?((p=e.onDispose)==null||p.call(e),(g=e.onError)==null||g.call(e)):f()},onDispose:()=>{var p;l(),(p=e==null?void 0:e.onDispose)==null||p.call(e)},onFullScreenChanged:p=>{var g;nt.data.fullScreen=p,(g=e.onFullScreenChanged)==null||g.call(e,p)},onPageChanged:p=>{nt.data.page=p,!(s>=p)&&(s=p,u(p))},onTourEnabledChanged:p=>{nt.data.tourEnabled=p}}),ah().then(()=>{if(n){f();return}r=document.createElement(en),a?(document.documentElement.classList.add(en),document.body.appendChild(r),setTimeout(c)):document.body.appendChild(r);let p=0;i=setInterval(()=>{if(++p===30||n){clearInterval(i),i=void 0;return}r.isConnected||(document.documentElement.classList.add(en),document.body.appendChild(r))},100)});function c(){o||(o=!0,t({updateArgs(p){Object.assign(nt.data,p)},dispose:l}))}function f(){o||t(void 0)}}),await nt.promise)}async function ah(){if(window.customElements.get(en))return;const e=document.createElement("style"),t=sh;e.appendChild(document.createTextNode(t)),document.head.appendChild(e);const n=bu({styles:[await ch()],data:()=>({readerData:nt.data}),render(){return ws(Xl,this.readerData)}});window.customElements.define(en,n)}async function ch(){const e=Object.assign({"./App.vue":eh,"./components/AutoNext.vue":Xu,"./components/BaseButton.vue":Qu,"./components/BottomSheet.vue":ff,"./components/ButtonDropdown.vue":nd,"./components/ButtonIcon.vue":ef,"./components/ButtonReaderSettings.vue":Df,"./components/ButtonResetZoom.vue":Vf,"./components/ChapterNav.vue":od,"./components/DirectionToast.vue":ad,"./components/GesturesContainer.vue":xd,"./components/HelpScreen.vue":cd,"./components/InputPercentage.vue":hf,"./components/InputSelect.vue":mf,"./components/IntersectionWrapper.vue":th,"./components/LoadingIndicator.vue":Td,"./components/PageNav.vue":ud,"./components/PauseToast.vue":yd,"./components/ProgressBar.vue":wd,"./components/ReaderBody.vue":Od,"./components/ReaderLayout.vue":Bd,"./components/ReaderTour.vue":Rd,"./components/TableField.vue":yf,"./components/icons/IconBack.vue":Wd,"./components/icons/IconBookmarkNew.vue":Yd,"./components/icons/IconBookmarked.vue":Jd,"./components/icons/IconChevronLeft.vue":np,"./components/icons/IconChevronRight.vue":sp,"./components/icons/IconClose.vue":rf,"./components/icons/IconDouble.vue":up,"./components/icons/IconDoubleSkip.vue":hp,"./components/icons/IconExclamationCircle.vue":rh,"./components/icons/IconFullscreen.vue":bp,"./components/icons/IconFullscreenExit.vue":_p,"./components/icons/IconHelp.vue":Sf,"./components/icons/IconLoading.vue":qf,"./components/icons/IconNext.vue":ld,"./components/icons/IconPause.vue":hd,"./components/icons/IconPlay.vue":bd,"./components/icons/IconPlus.vue":Tp,"./components/icons/IconReaderExit.vue":Pp,"./components/icons/IconSettings.vue":If,"./components/icons/IconTriangle.vue":Gf,"./components/icons/IconZoom.vue":Rf}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return lh});
20
+ **/let mi;const _s=typeof window<"u"&&window.trustedTypes;if(_s)try{mi=_s.createPolicy("vue",{createHTML:e=>e})}catch{}const Ss=mi?e=>mi.createHTML(e):e=>e,Vc="http://www.w3.org/2000/svg",Wc="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,ks=Ot&&Ot.createElement("template"),Uc={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 i=t==="svg"?Ot.createElementNS(Vc,e):t==="mathml"?Ot.createElementNS(Wc,e):n?Ot.createElement(e,{is:n}):Ot.createElement(e);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},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,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{ks.innerHTML=Ss(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const a=ks.content;if(o==="svg"||o==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Bt="transition",Rn="animation",Bn=Symbol("_vtc"),Cs={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},Kc=Se({},Ir,Cs),To=(e=>(e.displayName="Transition",e.props=Kc,e))((e,{slots:t})=>xs(Fa,qc(e),t)),en=(e,t=[])=>{re(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ts=e=>e?re(e)?e.some(t=>t.length>1):e.length>1:!1;function qc(e){const t={};for(const v in e)v in Cs||(t[v]=e[v]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,w=Yc(i),C=w&&w[0],F=w&&w[1],{onBeforeEnter:H,onEnter:Y,onEnterCancelled:W,onLeave:I,onLeaveCancelled:y,onBeforeAppear:m=H,onAppear:D=Y,onAppearCancelled:N=W}=t,k=(v,x,B,Q)=>{v._enterCancelled=Q,tn(v,x?c:a),tn(v,x?u:s),B&&B()},A=(v,x)=>{v._isLeaving=!1,tn(v,f),tn(v,g),tn(v,h),x&&x()},J=v=>(x,B)=>{const Q=v?D:Y,_=()=>k(x,v,B);en(Q,[x,_]),Is(()=>{tn(x,v?l:r),$t(x,v?c:a),Ts(Q)||Ms(x,o,C,_)})};return Se(t,{onBeforeEnter(v){en(H,[v]),$t(v,r),$t(v,s)},onBeforeAppear(v){en(m,[v]),$t(v,l),$t(v,u)},onEnter:J(!1),onAppear:J(!0),onLeave(v,x){v._isLeaving=!0;const B=()=>A(v,x);$t(v,f),v._enterCancelled?($t(v,h),Os(v)):(Os(v),$t(v,h)),Is(()=>{v._isLeaving&&(tn(v,f),$t(v,g),Ts(I)||Ms(v,o,F,B))}),en(I,[v,B])},onEnterCancelled(v){k(v,!1,void 0,!0),en(W,[v])},onAppearCancelled(v){k(v,!0,void 0,!0),en(N,[v])},onLeaveCancelled(v){A(v),en(y,[v])}})}function Yc(e){if(e==null)return null;if(xe(e))return[vi(e.enter),vi(e.leave)];{const t=vi(e);return[t,t]}}function vi(e){return Ro(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Bn]||(e[Bn]=new Set)).add(t)}function tn(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Bn];n&&(n.delete(t),n.size||(e[Bn]=void 0))}function Is(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Zc=0;function Ms(e,t,n,o){const i=e._endId=++Zc,r=()=>{i===e._endId&&o()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:l}=Xc(e,t);if(!s)return o();const u=s+"end";let c=0;const f=()=>{e.removeEventListener(u,h),r()},h=g=>{g.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),e.addEventListener(u,h)}function Xc(e,t){const n=window.getComputedStyle(e),o=w=>(n[w]||"").split(", "),i=o(`${Bt}Delay`),r=o(`${Bt}Duration`),s=Es(i,r),a=o(`${Rn}Delay`),l=o(`${Rn}Duration`),u=Es(a,l);let c=null,f=0,h=0;t===Bt?s>0&&(c=Bt,f=s,h=r.length):t===Rn?u>0&&(c=Rn,f=u,h=l.length):(f=Math.max(s,u),c=f>0?s>u?Bt:Rn:null,h=c?c===Bt?r.length:l.length:0);const g=c===Bt&&/\b(?:transform|all)(?:,|$)/.test(o(`${Bt}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:g}}function Es(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ps(n)+Ps(e[o])))}function Ps(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Os(e){return(e?e.ownerDocument:document).body.offsetHeight}function Gc(e,t,n){const o=e[Bn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Io=Symbol("_vod"),$s=Symbol("_vsh"),Jc={name:"show",beforeMount(e,{value:t},{transition:n}){e[Io]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Fn(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),Fn(e,!0),o.enter(e)):o.leave(e,()=>{Fn(e,!1)}):Fn(e,t))},beforeUnmount(e,{value:t}){Fn(e,t)}};function Fn(e,t){e.style.display=t?e[Io]:"none",e[$s]=!t}const Qc=Symbol(""),eu=/(?:^|;)\s*display\s*:/;function tu(e,t,n){const o=e.style,i=ke(n);let r=!1;if(n&&!i){if(t)if(ke(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Mo(o,a,"")}else for(const s in t)n[s]==null&&Mo(o,s,"");for(const s in n)s==="display"&&(r=!0),Mo(o,s,n[s])}else if(i){if(t!==n){const s=o[Qc];s&&(n+=";"+s),o.cssText=n,r=eu.test(n)}}else t&&e.removeAttribute("style");Io in e&&(e[Io]=r?o.display:"",e[$s]&&(o.display="none"))}const As=/\s*!important$/;function Mo(e,t,n){if(re(n))n.forEach(o=>Mo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=nu(e,t);As.test(n)?e.setProperty(Ye(o),n.replace(As,""),"important"):e[o]=n}}const Ls=["Webkit","Moz","ms"],bi={};function nu(e,t){const n=bi[t];if(n)return n;let o=Ne(t);if(o!=="filter"&&o in e)return bi[t]=o;o=Zn(o);for(let i=0;i<Ls.length;i++){const r=Ls[i]+o;if(r in e)return bi[t]=r}return t}const zs="http://www.w3.org/1999/xlink";function Ds(e,t,n,o,i,r=ea(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(zs,t.slice(6,t.length)):e.setAttributeNS(zs,t,n):n==null||r&&!Xi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":St(n)?String(n):n)}function Ns(e,t,n,o,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ss(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Xi(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function gn(e,t,n,o){e.addEventListener(t,n,o)}function ou(e,t,n,o){e.removeEventListener(t,n,o)}const js=Symbol("_vei");function iu(e,t,n,o,i=null){const r=e[js]||(e[js]={}),s=r[t];if(o&&s)s.value=o;else{const[a,l]=ru(t);if(o){const u=r[t]=au(o,i);gn(e,a,u,l)}else s&&(ou(e,a,s,l),r[t]=void 0)}}const Rs=/(?:Once|Passive|Capture)$/;function ru(e){let t;if(Rs.test(e)){t={};let o;for(;o=e.match(Rs);)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 yi=0;const su=Promise.resolve(),lu=()=>yi||(su.then(()=>yi=0),yi=Date.now());function au(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;dt(cu(o,n.value),t,5,[o])};return n.value=e,n.attached=lu(),n}function cu(e,t){if(re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const Bs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uu=(e,t,n,o,i,r)=>{const s=i==="svg";t==="class"?Gc(e,o,s):t==="style"?tu(e,n,o):Un(t)?Lo(t)||iu(e,t,n,o,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fu(e,t,o,s))?(Ns(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ds(e,t,o,s,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ke(o))?Ns(e,Ne(t),o,r,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ds(e,t,o,s))};function fu(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bs(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Bs(t)&&ke(n)?!1:t in e}const Fs={};function du(e,t,n){let o=Te(e,t);qn(o)&&(o=Se({},o,t));class i extends wi{constructor(s){super(o,s,n)}}return i.def=o,i}const pu=typeof HTMLElement<"u"?HTMLElement:class{};class wi extends pu{constructor(t,n={},o=Ys){super(),this._def=t,this._props=n,this._createApp=o,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&o!==Ys?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Se({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof wi){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,It(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:s}=o;let a;if(r&&!re(r))for(const l in r){const u=r[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Ro(this._props[l])),(a||(a=Object.create(null)))[Ne(l)]=!0)}this._numberProps=a,this._resolveProps(o),this.shadowRoot&&this._applyStyles(s),this._mount(o)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(o=>{o.configureApp=this._def.configureApp,t(this._def=o,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const o in n)be(this,o)||Object.defineProperty(this,o,{get:()=>K(n[o])})}_resolveProps(t){const{props:n}=t,o=re(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i]);for(const i of o.map(Ne))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let o=n?this.getAttribute(t):Fs;const i=Ne(t);n&&this._numberProps&&this._numberProps[i]&&(o=Ro(o)),this._setProp(i,o,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Fs?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),o)){const r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),n===!0?this.setAttribute(Ye(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ye(t),n+""):n||this.removeAttribute(Ye(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),wu(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=ee(this._def,Se(t,this._props));return this._instance||(n.ce=o=>{this._instance=o,o.ce=this,o.isCE=!0;const i=(r,s)=>{this.dispatchEvent(new CustomEvent(r,qn(s[0])?Se({detail:s},s[0]):{detail:s}))};o.emit=(r,...s)=>{i(r,s),Ye(r)!==r&&i(Ye(r),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const o=this._nonce;for(let i=t.length-1;i>=0;i--){const r=document.createElement("style");o&&r.setAttribute("nonce",o),r.textContent=t[i],this.shadowRoot.prepend(r)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const o=n.nodeType===1&&n.getAttribute("slot")||"default";(t[o]||(t[o]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let o=0;o<t.length;o++){const i=t[o],r=i.getAttribute("name")||"default",s=this._slots[r],a=i.parentNode;if(s)for(const l of s){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let f;for(;f=c.nextNode();)f.setAttribute(u,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const o of t){const i=o.querySelectorAll("slot");for(let r=0;r<i.length;r++)n.add(i[r])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}const Hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return re(t)?n=>Xn(t,n):t};function hu(e){e.target.composing=!0}function Vs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xi=Symbol("_assign");function Ws(e,t,n){return t&&(e=e.trim()),n&&(e=jo(e)),e}const gu={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[xi]=Hs(i);const r=o||i.props&&i.props.type==="number";gn(e,t?"change":"input",s=>{s.target.composing||e[xi](Ws(e.value,n,r))}),(n||r)&&gn(e,"change",()=>{e.value=Ws(e.value,n,r)}),t||(gn(e,"compositionstart",hu),gn(e,"compositionend",Vs),gn(e,"change",Vs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:i,number:r}},s){if(e[xi]=Hs(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?jo(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||i&&e.value.trim()===l)||(e.value=l))}},mu=["ctrl","shift","alt","meta"],vu={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)=>mu.some(n=>e[`${n}Key`]&&!t.includes(n))},Ve=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let s=0;s<t.length;s++){const a=vu[t[s]];if(a&&a(i,t))return}return e(i,...r)})},bu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Us=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=Ye(i.key);if(t.some(s=>s===r||bu[s]===r))return e(i)})},yu=Se({patchProp:uu},Uc);let Ks;function qs(){return Ks||(Ks=pc(yu))}const wu=(...e)=>{qs().render(...e)},Ys=(...e)=>{const t=qs().createApp(...e),{mount:n}=t;return t.mount=o=>{const i=_u(o);if(!i)return;const r=t._component;!ae(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,xu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function xu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _u(e){return ke(e)?document.querySelector(e):e}function _i(e,t){return Fo()?(na(e,t),!0):!1}const Si=new WeakMap,Su=(...e)=>{var t;const n=e[0],o=(t=Qt())===null||t===void 0?void 0:t.proxy,i=o??Fo();if(i==null&&!qr())throw new Error("injectLocal must be called in setup");return i&&Si.has(i)&&n in Si.get(i)?Si.get(i)[n]:Pt(...e)},Zs=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ku=e=>e!=null,Cu=Object.prototype.toString,Tu=e=>Cu.call(e)==="[object Object]",nn=()=>{};function Xs(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function Iu(e,t={}){let n,o,i=nn;const r=l=>{clearTimeout(l),i(),i=nn};let s;return l=>{const u=ft(e),c=ft(t.maxWait);return n&&r(n),u<=0||c!==void 0&&c<=0?(o&&(r(o),o=void 0),Promise.resolve(l())):new Promise((f,h)=>{i=t.rejectOnCancel?h:f,s=l,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=void 0,f(s())},c)),n=setTimeout(()=>{o&&r(o),o=void 0,f(l())},u)})}}function Mu(...e){let t=0,n,o=!0,i=nn,r,s,a,l,u;!Ce(e[0])&&typeof e[0]=="object"?{delay:s,trailing:a=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,a=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,i(),i=nn)};return h=>{const g=ft(s),w=Date.now()-t,C=()=>r=h();return c(),g<=0?(t=Date.now(),C()):(w>g?(t=Date.now(),(l||!o)&&C()):a&&(r=new Promise((F,H)=>{i=u?H:F,n=setTimeout(()=>{t=Date.now(),o=!0,F(C()),c()},Math.max(0,g-w))})),!l&&!n&&(n=setTimeout(()=>o=!0,g)),o=!1,r)}}function Gs(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Hn(e){return Array.isArray(e)?e:[e]}function Eu(e){return Qt()}function tt(e,t=200,n={}){return Xs(Iu(t,n),e)}function ki(e,t=200,n=!1,o=!0,i=!1){return Xs(Mu(t,n,o,i),e)}function Js(e,t=!0,n){Eu()?Ge(e,n):t?e():It(e)}function Pu(e,t,n){return me(e,t,{...n,immediate:!0})}const mn=Zs?window:void 0,Ou=Zs?window.document:void 0;function wt(e){var t;const n=ft(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function At(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},o=(a,l,u,c)=>(a.addEventListener(l,u,c),()=>a.removeEventListener(l,u,c)),i=ie(()=>{const a=Hn(ft(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),r=Pu(()=>{var a,l;return[(a=(l=i.value)===null||l===void 0?void 0:l.map(u=>wt(u)))!==null&&a!==void 0?a:[mn].filter(u=>u!=null),Hn(ft(i.value?e[1]:e[0])),Hn(K(i.value?e[2]:e[1])),ft(i.value?e[3]:e[2])]},([a,l,u,c])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(u!=null&&u.length))return;const f=Tu(c)?{...c}:c;t.push(...a.flatMap(h=>l.flatMap(g=>u.map(w=>o(h,g,w,f)))))},{flush:"post"}),s=()=>{r(),n()};return _i(n),s}function $u(){const e=ut(!1),t=Qt();return t&&Ge(()=>{e.value=!0},t),e}function Ci(e){const t=$u();return ie(()=>(t.value,!!e()))}const Au=Symbol("vueuse-ssr-width");function Lu(){const e=qr()?Su(Au,null):null;return typeof e=="number"?e:void 0}function zu(e,t={}){const{window:n=mn,ssrWidth:o=Lu()}=t,i=Ci(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),r=ut(typeof o=="number"),s=ut(),a=ut(!1),l=u=>{a.value=u.matches};return ss(()=>{if(r.value){r.value=!i.value,a.value=ft(e).split(",").some(u=>{const c=u.includes("not all"),f=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),h=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let g=!!(f||h);return f&&g&&(g=o>=Gs(f[1])),h&&g&&(g=o<=Gs(h[1])),c?!g:g});return}i.value&&(s.value=n.matchMedia(ft(e)),a.value=s.value.matches)}),At(s,"change",l,{passive:!0}),ie(()=>a.value)}function Ti(e={}){const{document:t=Ou}=e;if(!t)return ut("visible");const n=ut(t.visibilityState);return At(t,"visibilitychange",()=>{n.value=t.visibilityState},{passive:!0}),n}function Du(e,t,n={}){const{window:o=mn,...i}=n;let r;const s=Ci(()=>o&&"ResizeObserver"in o),a=()=>{r&&(r.disconnect(),r=void 0)},l=me(ie(()=>{const c=ft(e);return Array.isArray(c)?c.map(f=>wt(f)):[wt(c)]}),c=>{if(a(),s.value&&o){r=new ResizeObserver(t);for(const f of c)f&&r.observe(f,i)}},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return _i(u),{isSupported:s,stop:u}}function Qs(e,t={width:0,height:0},n={}){const{window:o=mn,box:i="content-box"}=n,r=ie(()=>{var f;return(f=wt(e))===null||f===void 0||(f=f.namespaceURI)===null||f===void 0?void 0:f.includes("svg")}),s=ut(t.width),a=ut(t.height),{stop:l}=Du(e,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const g=wt(e);if(g){const w=g.getBoundingClientRect();s.value=w.width,a.value=w.height}}else if(h){const g=Hn(h);s.value=g.reduce((w,{inlineSize:C})=>w+C,0),a.value=g.reduce((w,{blockSize:C})=>w+C,0)}else s.value=f.contentRect.width,a.value=f.contentRect.height},n);Js(()=>{const f=wt(e);f&&(s.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=me(()=>wt(e),f=>{s.value=f?t.width:0,a.value=f?t.height:0});function c(){l(),u()}return{width:s,height:a,stop:c}}function Ii(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=0,window:s=mn,immediate:a=!0}=n,l=Ci(()=>s&&"IntersectionObserver"in s),u=ie(()=>Hn(ft(e)).map(wt).filter(ku));let c=nn;const f=ut(a),h=l.value?me(()=>[u.value,wt(o),f.value],([w,C])=>{if(c(),!f.value||!w.length)return;const F=new IntersectionObserver(t,{root:wt(C),rootMargin:i,threshold:r});w.forEach(H=>H&&F.observe(H)),c=()=>{F.disconnect(),c=nn}},{immediate:a,flush:"post"}):nn,g=()=>{c(),h(),f.value=!1};return _i(g),{isSupported:l,isActive:f,pause(){c(),f.value=!1},resume(){f.value=!0},stop:g}}function el(e={}){const{window:t=mn,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0,type:s="inner"}=e,a=ut(n),l=ut(o),u=()=>{if(t)if(s==="outer")a.value=t.outerWidth,l.value=t.outerHeight;else if(s==="visual"&&t.visualViewport){const{width:f,height:h,scale:g}=t.visualViewport;a.value=Math.round(f*g),l.value=Math.round(h*g)}else r?(a.value=t.innerWidth,l.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),Js(u);const c={passive:!0};return At("resize",u,c),t&&s==="visual"&&t.visualViewport&&At(t.visualViewport,"resize",u,c),i&&me(zu("(orientation: portrait)"),()=>u()),{width:a,height:l}}function Nu(e){On("hapticFeedback",e)}function Mi(){return Pt("hapticFeedback")}const ju=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let i=1,r=.65;const s=setInterval(l,20);a();function a(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function l(){const u=+n||50;i<=u?(i++,r-=.65/u,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(o.remove(),clearInterval(s))}},vn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>ju(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Ru={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Bu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Fu={class:"absolute bottom-0 left-0 right-0 flex justify-center pb-7 md:pb-6 lg:pb-4"},Hu=Te({__name:"AutoNext",props:{hasNext:{type:Boolean},offlineMode:{type:Boolean},seconds:{type:Number}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=te(null),r=te(null),s=te(!1),a=te(!1),l=te(n.seconds),u=te(n.seconds<=0),c=te(n.seconds),f=Mi();Ge(()=>{let w;Ii(r,C=>{a.value=C.some(F=>F.isIntersecting),u.value=n.seconds<=0,l.value=n.seconds,c.value=n.seconds,w&&(clearInterval(w),w=void 0),!(!a.value||u.value)&&(w=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(w),w=void 0,o("next"))},1e3))}),Ii(i,C=>{s.value=C.some(F=>F.isIntersecting)}),Zt(()=>w&&clearInterval(w))});function h(){o("next"),f()}function g(){o("hide")}return(w,C)=>(O(),q("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center relative"},[vt(Z("div",Ru,[e.hasNext?(O(),q("div",Bu,[a.value?(O(),q("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:je(u.value?{}:{animation:`auto-next ${c.value}s linear forwards`})},null,4)):Ee("",!0),vt((O(),q("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 totalDuration-200",onClick:Ve(h,["stop"])},[jt(Xe(u.value?"Next":`Next in ${l.value}`),1)])),[[K(vn)]])])):Ee("",!0),vt((O(),q("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 totalDuration-200",onClick:Ve(g,["stop"])},[jt(Xe(e.offlineMode?"Close":"Hide"),1)])),[[K(vn)]])],512),[[Jc,s.value||!e.hasNext]]),Z("div",Fu,[Ie(w.$slots,"bottom-center")])],512))}}),Vu=".animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}",we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},tl=we(Hu,[["styles",[Vu]]]),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"}));function Uu({touchDevice:e}){const t=te(!1);let n=0;return On("busy:touchDevice",e),On("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function Ei(){const e=Pt("busy:touchDevice"),t=Pt("setBusyState");let n=!1;return Zt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const Ku={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center gap-2 text-base"},Pi=Te({__name:"BaseButton",props:{disabled:{type:Boolean},href:{type:String},transparent:{type:Boolean},enableHapticFeedback:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,i=Ei(),r=Mi();let s=!1;function a(){s||(s=!0,i(!0,{desktopOnly:!0}))}function l(){s&&(s=!1,i(!1,{desktopOnly:!0}))}function u(c){n.disabled?c.preventDefault():(o("click",c),n.enableHapticFeedback&&r())}return(c,f)=>vt((O(),ve(jr(e.href?"a":"button"),Dn(e.href?{href:e.href}:{},{class:["h-10 max-w-full max-h-full rounded-full flex-shrink-0 focus:outline-none outline-none",{"cursor-default text-stone-400 hover:text-stone-400":e.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!e.disabled,"bg-black bg-opacity-50":!e.transparent}],onClick:Ve(u,["stop"]),onMouseenter:a,onMouseleave:l}),{default:ce(()=>[Z("div",Ku,[Ie(c.$slots,"default")])]),_:3},16,["class"])),[[K(vn),e.disabled?0:15]])}}),qu=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),lt=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{type:String},transparent:{type:Boolean},enableHapticFeedback:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,i)=>(O(),ve(Pi,{class:"w-10",disabled:e.disabled,href:e.href,transparent:e.transparent,"enable-haptic-feedback":e.enableHapticFeedback,onClick:i[0]||(i[0]=r=>n("click",r))},{default:ce(()=>[Ie(o.$slots,"default")]),_:3},8,["disabled","href","transparent","enable-haptic-feedback"]))}}),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:lt},Symbol.toStringTag,{value:"Module"})),Zu={},Xu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Gu(e,t){return O(),q("svg",Xu,[...t[0]||(t[0]=[Z("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)])])}const nl=we(Zu,[["render",Gu]]),Ju=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"}));class Qu{constructor(){Ae(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function ef(){const e=new Qu;return Zt(()=>e.dispose()),On("keyController",e),e}function Eo(e){const t=Pt("keyController");Ge(()=>t.addListener(e)),Zt(()=>t.removeListener(e))}const tf={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},nf={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},of={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ol=Te({__name:"BottomSheet",props:hn({name:{type:String}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=$n(e,"modelValue");Eo({onKeyDown:o});const n=Ei();me(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>(O(),q("div",{class:Oe(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:r[4]||(r[4]=()=>t.value=!1)},[ee(To,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ce(()=>[t.value?(O(),q("div",{key:0,class:"inline-flex flex-col h-[30rem] 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:r[1]||(r[1]=Ve(()=>{},["stop"])),onWheelPassive:r[2]||(r[2]=Ve(()=>{},["stop"])),onTouchmove:r[3]||(r[3]=Ve(()=>{},["stop"]))},[Z("div",tf,[ee(lt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:ce(()=>[ee(nl)]),_:1}),Z("div",nf,Xe(e.name),1),Ie(i.$slots,"actions")]),Z("div",of,[Ie(i.$slots,"default")])],32)):Ee("",!0)]),_:3})],2))}}),rf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),sf=["min","max","step"],lf={class:"flex-shrink-0"},Oi=we(Te({__name:"InputPercentage",props:hn({min:{type:Number},max:{type:Number},step:{type:Number},disabled:{type:Boolean},suffix:{type:String}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=$n(e,"modelValue"),n=ie({get(){return t.value},set(o){t.value=+o}});return(o,i)=>(O(),q("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":e.disabled}]),style:je({"--percentage":`${(n.value-e.min)/(e.max-e.min)*100}%`})},[vt(Z("input",{"onUpdate:modelValue":i[0]||(i[0]=r=>n.value=r),type:"range",min:e.min,max:e.max,step:e.step??1,class:"flex-grow"},null,8,sf),[[gu,n.value]]),Z("p",lf,[Ie(o.$slots,"suffix")])],6))}}),[["styles",["input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;--tw-bg-opacity:1;background-color:rgb(120 113 108/var(--tw-bg-opacity,1));outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none!important;border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;width:16px;--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity,1));transition-duration:.2s}input[type=range]:hover{opacity:1}"]]]),af=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),cf=["onClick","onKeyup"],Vn=Te({__name:"InputSelect",props:hn({items:{type:Array}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=$n(e,"modelValue"),o=te(null),i=te({width:"",left:""});Ge(()=>{let s=!1;me(n,a=>{var u;const l=(u=o.value)==null?void 0:u.children[a+1];l&&(i.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function r(s){s!==n.value&&(n.value=s)}return(s,a)=>(O(),q("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none"},[Z("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:je(i.value)},null,4),(O(!0),q(Me,null,pn(t.items,(l,u)=>vt((O(),q("div",{key:u,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":u==n.value,"text-stone-400":u!=n.value}]),onClick:()=>r(u),onKeyup:[Us(()=>r(u),["enter"]),Us(()=>r(u),["space"])]},[jt(Xe(l),1)],42,cf)),[[K(vn),30]])),128))],512))}}),uf=Object.freeze(Object.defineProperty({__proto__:null,default:Vn},Symbol.toStringTag,{value:"Module"})),ff={class:"flex items-center mb-8 last:mb-0"},df={class:"flex-grow overflow-hidden"},on=Te({__name:"TableField",props:{label:{type:String},disabled:{type:Boolean}},setup(e){return(t,n)=>(O(),q("div",ff,[Z("div",{class:Oe(["flex-shrink-0 w-[4.8rem]",{"opacity-50":e.disabled}])},Xe(e.label),3),Z("div",df,[Ie(t.$slots,"default")])]))}}),pf=Object.freeze(Object.defineProperty({__proto__:null,default:on},Symbol.toStringTag,{value:"Module"})),hf={},gf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function mf(e,t){return O(),q("svg",gf,[...t[0]||(t[0]=[Z("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)])])}const il=we(hf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),bf={},yf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"};function wf(e,t){return O(),q("svg",yf,[...t[0]||(t[0]=[Z("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),Z("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)])])}const rl=we(bf,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"}));function _f(e){if(e)try{return JSON.parse(e)}catch{return}}function Sf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var xt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(xt||{}),Ft=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Ft||{});const sl=.25,ll=5,kf=.25,Po=.2,Oo=5,Cf=.05,Tf=0,If=5,al=5;function Mf(e){var y,m,D,N,k,A,J;const{titleName:t,isWebtoon:n}=e,o=ie(()=>t.value?Sf(t.value):location.hostname),i=te(Ef(`tkr:${o.value}`)),r=v=>{i.value=v;const x=`tkr:${o.value}`;!v||!Object.keys(v).length?localStorage.removeItem(x):localStorage.setItem(x,JSON.stringify(v))},s=v=>{if(!i.value){r(v);return}const x={...i.value};Object.entries(v).forEach(([B,Q])=>{Q===void 0?delete x[B]:x[B]=Q}),r(x)},a=te((y=i.value)==null?void 0:y.style),l=te((m=i.value)==null?void 0:m.direction),u=te((D=i.value)==null?void 0:D.gap),c=te(((N=i.value)==null?void 0:N.speed)??1),f=te(((k=i.value)==null?void 0:k.zoom)??1),h=te(((A=i.value)==null?void 0:A.breakFirst)??!1),g=te(((J=i.value)==null?void 0:J.autoNextSeconds)??al),w=ie({get(){return n.value?Ft.longStrip:a.value??e.defaultStyle.value??Ft.longStrip},set:v=>{if(a.value===v)return;const x=w.value===Ft.longStrip,B=v===Ft.longStrip;a.value=v,s({style:v}),x!==B&&(C.value=B?xt.vertical:xt.rtl)}}),C=ie({get(){return n.value?xt.vertical:l.value??e.defaultDirection.value??xt.vertical},set:v=>{l.value=v,s({direction:v})}}),F=ie({get:()=>u.value??e.defaultGap.value??0,set(v){u.value=v,s({gap:v})}}),H=ie({get:()=>c.value,set(v){c.value=v,s({speed:v===1?void 0:v})}}),Y=ie({get:()=>f.value,set(v){f.value=v,s({zoom:v===1?void 0:v})}}),W=ie({get:()=>h.value,set(v){h.value=v,s({breakFirst:v?!0:void 0})}}),I=ie({get:()=>g.value,set(v){g.value=v,s({autoNextSeconds:v===al?void 0:v})}});return{direction:C,style:w,gap:F,speed:H,zoom:Y,isLongStrip:ie(()=>w.value===Ft.longStrip),isDouble:ie(()=>w.value===Ft.double),isRTL:ie(()=>C.value===xt.rtl),isVertical:ie(()=>C.value===xt.vertical),breakFirst:W,autoNextSeconds:I}}function Ef(e){const t=localStorage.getItem(e),n=_f(t||void 0),o={};return n?(n.style!==void 0&&Object.values(Ft).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(xt).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Tf&&n.gap<=If&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=sl&&n.speed<=ll&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Po&&n.zoom<=Oo&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const cl=Te({__name:"ButtonReaderSettings",props:{name:{type:String},direction:{type:Number},readerStyle:{type:Number},gap:{type:Number},autoNextSeconds:{type:Number},speed:{type:Number},zoom:{type:Number},webtoon:{type:Boolean},disabled:{type:Boolean},hideAutoNext:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:autoNextSeconds","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,i=te(!1),r=ie(()=>["Long strip",n.webtoon?void 0:"Single page",n.webtoon?void 0:"Double page"].filter(Boolean)),s=ie(()=>n.name??location.hostname);Eo({onKeyUp:u=>{u.key==="s"&&!u.metaKey&&!u.ctrlKey&&(i.value=!i.value)}});function a(u){o("update:zoom",Math.round(u)/100)}function l(){i.value=!1,o("help")}return(u,c)=>(O(),q(Me,null,[ee(lt,{title:"Reader settings (S)",disabled:e.disabled,onClick:c[0]||(c[0]=()=>i.value=!0)},{default:ce(()=>[ee(rl)]),_:1},8,["disabled"]),ee(ol,{modelValue:i.value,"onUpdate:modelValue":c[6]||(c[6]=f=>i.value=f),name:s.value},{actions:ce(()=>[ee(lt,{transparent:"",onClick:l},{default:ce(()=>[ee(il)]),_:1})]),default:ce(()=>[ee(on,{label:"Style"},{default:ce(()=>[ee(Vn,{"model-value":e.readerStyle,items:r.value,"onUpdate:modelValue":c[1]||(c[1]=f=>o("update:reader-style",f))},null,8,["model-value","items"])]),_:1}),ee(on,{label:"Direction"},{default:ce(()=>[ee(Vn,{"model-value":e.direction,items:e.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=f=>o("update:direction",f))},null,8,["model-value","items"])]),_:1}),ee(on,{label:"Gap"},{default:ce(()=>[ee(Vn,{"model-value":e.gap,items:["None","1px","2px","3px","4px","5px"],"onUpdate:modelValue":c[3]||(c[3]=f=>o("update:gap",f))},null,8,["model-value"])]),_:1}),e.hideAutoNext?Ee("",!0):(O(),ve(on,{key:0,label:"Auto Next"},{default:ce(()=>[ee(Vn,{"model-value":e.autoNextSeconds<0?0:e.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":c[4]||(c[4]=f=>o("update:autoNextSeconds",f===0?-1:f))},null,8,["model-value"])]),_:1})),ee(on,{label:"Speed"},{default:ce(()=>[ee(Oi,{"model-value":e.speed,min:K(sl),max:K(ll),step:K(kf),suffix:"x","onUpdate:modelValue":c[5]||(c[5]=f=>o("update:speed",f))},{suffix:ce(()=>[jt(Xe(e.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),ee(on,{label:"Zoom"},{default:ce(()=>[ee(Oi,{"model-value":Math.ceil(e.zoom*100),min:K(Po)*100,max:K(Oo)*100,step:K(Cf)*100,"onUpdate:modelValue":a},{suffix:ce(()=>[jt(Xe(Math.ceil(e.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),Of={},$f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"};function Af(e,t){return O(),q("svg",$f,[...t[0]||(t[0]=[Z("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Z("circle",{cx:"14",cy:"14",r:"12"}),Z("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)])])}const ul=we(Of,[["render",Af]]),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),zf={class:"block w-4 h-4"},Df={class:"w-12"},fl=Te({__name:"ButtonResetZoom",props:{zoom:{type:Number}},emits:["click"],setup(e,{emit:t}){const n=t;function o(i){n("click",i)}return(i,r)=>(O(),q("button",{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",onClick:Ve(o,["stop"])},[Z("div",zf,[ee(ul)]),Z("div",Df,Xe(Math.ceil(e.zoom*100))+"%",1)]))}}),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"}));async function bn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(i=>{setTimeout(async()=>{const r=await bn(e-1,t,n);i(r)},t)})}const jf={},Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Bf(e,t){return O(),q("svg",Rf,[...t[0]||(t[0]=[Oc('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)])])}const dl=we(jf,[["render",Bf]]),Ff=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),Hf={},Vf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Wf(e,t){return O(),q("svg",Vf,[...t[0]||(t[0]=[Z("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)])])}const pl=we(Hf,[["render",Wf]]),Uf=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),Kf=["aria-hidden"],qf=["onClick"],Yf={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"},Zf={class:"whitespace-nowrap"},$i=Te({__name:"ButtonDropdown",props:hn({label:{type:String},title:{type:String},items:{type:Array},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function},enableHapticFeedback:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:hn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=$n(e,"modelValue"),r=te(null),s=te(!1),a=te(!1),l=te(!1),u=te(!1),c=te(!1),f={mounted:k=>{var A;(A=k.children[i.value])==null||A.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};Eo({onKeyDown:Y});const h=Ei(),g=Mi();async function w(){if(!n.items.length&&(s.value||await C(),!n.items.length)){s.value=!1;return}s.value=!s.value,h(s.value),s.value?(F(),I(r.value)):setTimeout(y,250)}async function C(){a.value||n.items.length||!n.canLoadItems||!n.loadItems||(a.value=!0,await n.loadItems(),a.value=!1)}function F(){const k=r.value;if(k){const A=k.getBoundingClientRect(),J=A.x+A.width/2;l.value=A.y>window.innerHeight/2,u.value=J<window.innerWidth/3,c.value=J>window.innerWidth/3*2}}function H(k,A){w(),k!=i.value&&(i.value=k,o("select",k,A),n.enableHapticFeedback&&g())}function Y(k){s.value&&k.key==="Escape"&&(w(),k.preventDefault())}let W=[];function I(k){const A=window.getComputedStyle(k).zIndex,J=k.style.zIndex;(!A||!(+A>0))&&((!k.parentElement||k.parentElement.childElementCount>1)&&(k.style.zIndex="1",W.push({el:k,zIndex:J})),k.parentElement&&I(k.parentElement))}function y(){W.forEach(({el:k,zIndex:A})=>{k.style.zIndex=A??""}),W=[]}let m=!1;function D(){m||(m=!0,h(!0,{desktopOnly:!0}))}function N(){m&&(m=!1,h(!1,{desktopOnly:!0}))}return(k,A)=>(O(),q("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(O(),q("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:w})):Ee("",!0),e.items.length?(O(),ve(To,{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:ce(()=>[s.value?vt((O(),q("ul",{key:0,ref:"list","aria-hidden":!s.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":l.value,"origin-top top-full translate-y-1.5":!l.value,"left-1/2 -ml-20 text-center":!u.value&&!c.value,"right-0 text-right":c.value}]),onWheelPassive:A[0]||(A[0]=Ve(()=>{},["stop"])),onTouchmove:A[1]||(A[1]=Ve(()=>{},["stop"]))},[(O(!0),q(Me,null,pn(e.items,(J,v)=>vt((O(),q("li",{key:v,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-textPrimary":v===i.value}]),onClick:x=>H(v,x)},[Z("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},[Ie(k.$slots,"item",{item:J},()=>[jt(Xe(J),1)])],2)],10,qf)),[[K(vn),30]])),128))],42,Kf)),[[f]]):Ee("",!0)]),_:3})):Ee("",!0),vt((O(),q("button",Dn({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":e.disabled||a.value}]},e.title?{title:e.title}:{},{onClick:Ve(w,["stop"]),onMouseenter:D,onMouseleave:N}),[Z("div",Yf,[Z("span",Zf,Xe(e.label),1),e.items.length||e.canLoadItems?(O(),q("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":l.value}]),"aria-hidden":"true"},[a.value?(O(),ve(dl,{key:0})):(O(),ve(pl,{key:1}))],2)):Ee("",!0)])],16)),[[K(vn),30]])],512))}}),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),hl=Te({__name:"ChapterNav",props:{data:{type:Object},chapterSpec:{type:Object},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const l=n.chapterSpec;if(!l)return;const{trigger:u,sel:c,label:f}=l;if(u&&(!c||!f)){await r(u);return}o("getHiddenChapters"),await bn(50,50,()=>n.data.chapters.length?!0:void 0)}async function r(l){const u=document.querySelector(l);u&&(u instanceof HTMLDialogElement?u.showModal():u.click(),o("chaptersDialogOpen"))}function s(l,u){var c,f,h;(h=(f=(c=n.data)==null?void 0:c.chapters)==null?void 0:f[l])==null||h.select(a(u))}function a(l){return!n.touchDevice&&(l.ctrlKey||l.metaKey)}return(l,u)=>{var c;return O(),ve($i,{modelValue:e.data.activeIndex,label:e.data.activeLabel,title:"Select chapter",items:e.data.chapters,"can-load-items":!!((c=e.chapterSpec)!=null&&c.trigger),"load-items":i,"enable-haptic-feedback":"",onSelect:s},{item:ce(({item:f})=>[jt(Xe(f.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),Jf={},Qf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function ed(e,t){return O(),q("svg",Qf,[...t[0]||(t[0]=[Z("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)])])}const gl=we(Jf,[["render",ed]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),ml=Te({__name:"DirectionToast",props:{direction:{type:Number}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=te(typeof n!="string"||+n!==t.direction),i=tt(()=>o.value=!1,1250);me(()=>t.direction,()=>{r(),o.value=!0,i()}),Ge(()=>{r(),i();let s;me(Ti(),l=>{l!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,i())})});function r(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,a)=>(O(),ve(To,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ce(()=>[o.value?(O(),q("div",{key:0,class:Oe(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":e.direction===K(xt).vertical,"rotate-180":e.direction===K(xt).rtl}])},[ee(gl)],2)):Ee("",!0)]),_:1}))}}),nd=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),vl=Te({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=te(null),r=te([]);Ge(async()=>{const u=Qs(i),c=tt(()=>{s({width:u.width.value,height:u.height.value})},50);c(),me(u.width,c),me(u.height,c)});function s(u){var h;const c=(h=i.value)==null?void 0:h.parentElement;if(!c)return;const f=Array.from(c.querySelectorAll("#controls [title]"));f.length&&(r.value=a(f,u))}function a(u,c){const f=[],h=[];let g=0,w=0;const C=50,F=25;u.forEach(y=>{var A;const m=(A=y.getAttribute("title"))==null?void 0:A.trim(),D=y.getBoundingClientRect();if(!m||!D.height||!D.width)return;const N=Math.ceil((D.top-10)/C),k=Math.ceil((D.left-10)/C);h.push({isTour:!1,title:m,rect:D,fromX:k,toX:Math.max(k+1,Math.ceil((D.right+10)/C)),fromY:N,toY:Math.max(N+1,Math.ceil((D.bottom+10)/C))})}),h.forEach(y=>{for(let m=y.fromY;m<y.toY;m++){f[m]??(f[m]=[]);for(let D=y.fromX;D<y.toX;D++)f[m][D]=y;y.toY>g+1&&(g=y.toY-1),y.toX>w+1&&(w=y.toX-1)}});let H=w/2;h.forEach(y=>{y.isAlignRight=y.fromX>H});const Y=(y,m)=>{f[m]??(f[m]=[]);const D=m>=y.toY;if(y.isTour)for(let N=y.fromX;N<y.toX;N++)delete f[y.fromY][N],y.fromY=m,y.toY=m+(D?1:-1),f[m][N]=y;else{const N=y.isAlignRight?y.fromX-3:y.fromX,k=N+3;y.helpItem={fromX:N,toX:k,fromY:m,toY:m+1,isTour:!0,isAlignRight:y.isAlignRight};for(let A=N;A<k;A++)f[m][A]=y.helpItem}},W=(y,m)=>{if(m>g||m<0)return!1;const D=m>=y.toY,N=f[m];if(!N)return Y(y,m),!0;const k=N[y.fromX];if(k&&!k.isTour)return!1;if(k&&k.isTour)return W(k,D?m+1:m-1)?(Y(y,m),!0):!1;if(!k){const A=y.isAlignRight?-1:1;return N[y.fromX+A]||N[y.fromX+A*2]?W(y,D?m+1:m-1):(Y(y,m),!0)}return!1};h.forEach(y=>{if(!W(y,y.toY)){if(y.isAlignRight){const m=f[y.fromY]??[];if(!m.slice(y.fromX-3,y.fromX).filter(Boolean).length){const N=y.fromX-3,k=y.fromX;y.helpItem={isTour:!0,isAlignRight:!0,fromX:N,toX:k,fromY:y.fromY,toY:y.toY};for(let A=y.fromX-3;A<y.fromX;A++)m[A]=y.helpItem;return}}W(y,y.fromY-1)}});const I=[];return h.forEach(y=>{const{title:m,helpItem:D,rect:N,isAlignRight:k,fromX:A,fromY:J,toY:v}=y;if(!m||!D||!N)return;const x=D.fromY>=v,B=D.toY<=J;I.push({title:l(m),style:{top:x?`${N.bottom+(D.fromY-v)*C+F}px`:B?void 0:`${N.top+8}px`,bottom:B?`${c.height-N.top+(D.toY-J)*C+F}px`:void 0,left:k?void 0:`${N.left}px`,right:k?x?`${c.width-N.right}px`:`${c.width-N.right+N.width+F}px`:void 0},arrowStyle:{width:B||x?"2px":`${Math.abs(D.toX-A)*C+F-5}px`,height:B||x?`${(x?D.fromY-v:J-D.toY)*C+F}px`:"2px",top:x?`${N.bottom}px`:B?void 0:`${N.top+20}px`,bottom:B?`${c.height-N.top}px`:void 0,left:k?void 0:`${N.left+N.width/2}px`,right:k?x?`${c.width-N.right+N.width/2}px`:`${c.width-N.right+N.width}px`:void 0}})}),I}function l(u){return n.touchDevice?u.split("(")[0].trim():u}return(u,c)=>(O(),q(Me,null,[c[1]||(c[1]=Z("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1)),Z("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=Ve(f=>o("hide"),["stop"]))},[(O(!0),q(Me,null,pn(r.value,f=>(O(),q(Me,{key:f.title},[Z("div",{class:"absolute",style:je(f.style)},Xe(f.title),5),Z("div",{class:"absolute bg-stone-300 rounded-lg",style:je(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),od=Object.freeze(Object.defineProperty({__proto__:null,default:vl},Symbol.toStringTag,{value:"Module"})),bl=Te({__name:"PageNav",props:hn({disabled:{type:Boolean},pages:{type:Array},totalImgs:{type:Number}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=$n(e,"modelValue"),o=ie(()=>t.pages.map(l=>l.map(({index:u})=>`${u+1}`).join("-"))),i=ie(()=>{const l=n.value,u=t.pages.findIndex(c=>c.some(({index:f})=>f===l));return u===-1?t.pages.length-1:u}),r=ie(()=>t.pages.length?`${o.value[i.value]}/${t.totalImgs}`:"--");function s(l){const u=t.pages[l][0].index;a(u)}function a(l){n.value=l}return(l,u)=>(O(),ve($i,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:e.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),id=Object.freeze(Object.defineProperty({__proto__:null,default:bl},Symbol.toStringTag,{value:"Module"})),rd={},sd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function ld(e,t){return O(),q("svg",sd,[...t[0]||(t[0]=[Z("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),Z("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)])])}const Ai=we(rd,[["render",ld]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),cd={},ud={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function fd(e,t){return O(),q("svg",ud,[...t[0]||(t[0]=[Z("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)])])}const Li=we(cd,[["render",fd]]),dd=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),yl=we(Te({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=te(0);return me(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(O(),q("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"},[e.playing?(O(),ve(Li,{key:0})):(O(),ve(Ai,{key:1}))])):Ee("",!0)}}),[["styles",[".animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}"]]]),pd=Object.freeze(Object.defineProperty({__proto__:null,default:yl},Symbol.toStringTag,{value:"Module"})),wl=we(Te({__name:"ProgressBar",props:{value:{type:Number},total:{type:Number},longStrip:{type:Boolean},height:{type:Number},rtl:{type:Boolean}},setup(e){const t=e,n=ie(()=>Math.floor(t.value)+1),o=ie(()=>`${Math.max(2,Math.min(10,t.height))}px`);return(i,r)=>(O(),q("div",{class:Oe(["rprog",{"rprog--rtl":e.rtl}]),style:je({height:o.value})},[(O(!0),q(Me,null,pn(e.total,s=>(O(),q("span",{key:s,class:Oe(["rprog__item",{"rprog__item--active":n.value===s}]),style:je(!e.longStrip||n.value!==s?{}:{"--portion":`${e.value%1*100}%`})},null,6))),128))],6))}}),[["styles",['.rprog{--portion:100%;display:flex;width:100%}.rprog--rtl,.rprog--rtl .rprog__item{flex-direction:row-reverse}.rprog__item{display:inline-flex;flex-grow:1;flex-shrink:0;height:100%}.rprog__item:first-child:before{display:none}.rprog__item--active:before,.rprog__item:has(~.rprog__item--active):before{background-color:rgb(0 0 0/var(--tw-bg-opacity,1));content:"";display:block;flex-shrink:0;height:100%;width:1px;--tw-bg-opacity:.25}.rprog__item--active:after,.rprog__item:has(~.rprog__item--active):after{background-color:rgb(251 130 82/var(--tw-bg-opacity,1));content:"";display:block;height:100%;--tw-bg-opacity:.8;width:var(--portion)}']]]),hd=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),xl=Te({__name:"GesturesContainer",props:{zoom:{type:Number},zooming:{type:Boolean},pageIndex:{type:Number},playController:{type:Object},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:zoom","update:zooming","dragEnd","click","prev","next"],setup(e,{expose:t,emit:n}){const o=e,i=n,r=te(null),s=te(Math.min(Oo,Math.max(Po,o.zoom))),a=te(!1),l=te(!1),u={isZoomIn:!1,isZoomOut:!1,initial:void 0};t({rootEl:r}),me(()=>o.zoom,_=>Q(_)),Ge(()=>{o.touchDevice?At(r,"touchstart",H):(At(r,"mousedown",g),At(window,"wheel",D))}),Eo({onKeyDown:_=>{var z;if(!o.busy&&((z=r.value)==null||z.focus(),!(_.key==="Meta"||_.key==="Control")&&(_.ctrlKey||_.metaKey)))switch(_.key){case"0":Q(1);break;case"-":Q(s.value-.2),_.preventDefault();break;case"=":case"+":Q(s.value+.2),_.preventDefault();break}},onKeyUp:_=>{o.zooming&&!(_.ctrlKey||_.metaKey)&&v()}});function c(_){l.value!==_&&(l.value=_,_?o.playController.pause():(i("dragEnd"),o.playController.resume()))}let f={x:0,y:0},h={x:0,y:0};function g(_){_.button===0&&(f={x:_.clientX,y:_.clientY},h={x:r.value.scrollLeft,y:r.value.scrollTop},window.addEventListener("mousemove",w),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",w),setTimeout(()=>c(!1))},{once:!0}),_.preventDefault(),_.stopPropagation())}function w(_){const z=_.clientX-f.x,b=_.clientY-f.y;if(!l.value&&Math.abs(z)<.5&&Math.abs(b)<.5)return;c(!0);const X=r.value;X.scrollLeft=h.x-z,X.scrollTop=h.y-b}let C={distance:0,zoom:s.value,x:0,y:0},F=!1;function H(_){o.busy||(F=_.touches.length===2,F&&(i("update:zooming",!0),c(!0),_.stopPropagation(),_.preventDefault(),C={distance:N(_),zoom:s.value,x:(_.touches[0].clientX+_.touches[1].clientX)/2,y:(_.touches[0].clientY+_.touches[1].clientY)/2}),(F||o.longStrip&&o.playController.isPlaying.value)&&window.addEventListener("touchend",Y,{once:!0}))}function Y(){if(F=!1,o.zooming){c(!1),v();return}if(!l.value)return;const _=tt(()=>{c(!1),r.value.removeEventListener("scroll",b)},200),z=setTimeout(_,200);r.value.addEventListener("scroll",b);function b(){clearTimeout(z),_()}}function W(_){if(!(!F&&!(o.longStrip&&o.playController.isPlaying.value))&&(c(!0),o.zooming)){_.stopPropagation(),_.preventDefault();const b=N(_)/C.distance;B(Math.ceil(b*C.zoom*100)/100,C)}}const I=tt(()=>a.value=!1,100);let y=!1;const m=tt(()=>{y=!1},30);function D(_){if(o.busy)return;let z=o.zooming;if(y||(y=!0,z=_.ctrlKey||_.metaKey,z&&i("update:zooming",!0)),m(),z){_.stopPropagation(),_.preventDefault();const b=Math.ceil((s.value+_.deltaY*-.01)*100)/100;B(b,{x:_.clientX,y:_.clientY});return}o.horizontal&&(a.value||(a.value=!0),I(),_.deltaY&&(r.value&&(r.value.scrollLeft+=_.deltaY*(o.rtl?-1:1)),_.stopPropagation()))}function N(_){return Math.hypot(_.touches[0].clientX-_.touches[1].clientX,_.touches[0].clientY-_.touches[1].clientY)}const k={x:0,y:0,ts:0};function A(_){if(l.value||o.zooming)return;if(!o.longStrip){const Pe=o.horizontal?r.value.clientWidth:r.value.clientHeight,ot=(o.horizontal?o.rtl?Pe-_.clientX:_.clientX:_.clientY)/Pe;if(ot<=.2&&o.pageIndex>0){i("prev");return}else if(ot>=.8){i("next");return}}if(i("click"),o.playController.isPlaying.value)return;const{clientX:z,clientY:b}=_,{x:X,y:ne,ts:se}=k;k.x=z,k.y=b,k.ts=new Date().getTime();const pe=k.ts-se;pe>250||pe<10||Math.abs(X-z)>40||Math.abs(ne-b)>40||(k.ts=0,k.x=0,k.y=0,J(z,b))}async function J(_,z){const b=s.value===1?2:1;await Q(b,{x:_,y:z}),v()}function v(){i("update:zooming",!1),u.initial=void 0,u.isZoomIn=!1,u.isZoomOut=!1}function x(){if(u.initial)return;const _=r.value;if(!_)return;const z=_.querySelector(`[data-index="${o.pageIndex}"],[data-index2="${o.pageIndex}"]`)??void 0;z&&(u.initial={el:z,rect:z.getBoundingClientRect()})}function B(_,z){if(u.isZoomIn=u.isZoomIn||!u.isZoomOut&&_>1,u.isZoomIn&&_<1){Q(1,z);return}if(u.isZoomOut=u.isZoomOut||!u.isZoomIn&&_<1,u.isZoomOut&&_>1){Q(1,z);return}Q(_,z)}async function Q(_,z){const b=r.value,X=Math.min(Oo,Math.max(Po,_));if(!b||s.value===X)return;x();const{initial:ne}=u;if(!ne)return;const se=(z==null?void 0:z.x)??b.clientWidth/2,pe=(z==null?void 0:z.y)??b.clientHeight/2;s.value=X,i("update:zoom",X),await It();const{el:Pe,rect:$e}=ne,ot=Pe.offsetWidth/$e.width,qe=Pe.offsetHeight/$e.height;b.scrollLeft=Pe.offsetLeft-$e.left*ot+se*(ot-1),b.scrollTop=Pe.offsetTop-$e.top*qe+pe*(qe-1)}return(_,z)=>(O(),q("div",{ref_key:"rootEl",ref:r,tabindex:"0",class:Oe(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!e.longStrip&&(l.value||a.value||e.zooming),"cursor-grabbing":!e.touchDevice&&l.value,"overflow-hidden":e.zooming}]),style:je({"font-size":`${s.value}px`}),onClick:Ve(A,["stop"]),onTouchmoveCapture:Ve(W,["stop"])},[Ie(_.$slots,"default")],38))}}),gd=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),md='.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{border-radius:9999px;border-style:solid;border-width:4px;box-sizing:border-box;display:block;position:absolute;--tw-border-opacity:1;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border-color:rgb(184 92 56/var(--tw-border-opacity,1));content:"";opacity:1}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:40px;opacity:0;top:40px;width:0}4.9%{height:8px;left:36px;opacity:0;top:36px;width:8px}5%{height:8px;left:36px;opacity:1;top:36px;width:8px}to{height:80px;left:0;opacity:0;top:0;width:80px}}',vd={},bd={class:"loading-indicator"};function yd(e,t){return O(),q("div",bd)}const zi=we(vd,[["render",yd],["styles",[md]]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"}));function Di(e,t){return(e==null?void 0:e.querySelector(`[data-index="${t}"],[data-index2="${t}"]`))??void 0}const xd=["data-index"],_d={key:0,class:"img img--loading"},Sd=["src"],kd=["data-index"],_l=we(Te({__name:"ReaderBody",props:{page:{type:Number},pageIndex:{type:Number},direction:{type:Number},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isDouble:{type:Boolean},isRTL:{type:Boolean},pages:{type:Array},totalImgs:{type:Number},gap:{type:Number},zoom:{type:Number},zooming:{type:Boolean},spaceTop:{type:null},touchDevice:{type:Boolean},playController:{type:Object},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["ready","update:zoom","update:zooming","update:playing","dragEnd","click","end","prev","next"],setup(e,{expose:t,emit:n}){const o=e,i=n,r=te(null),s=ie(()=>{var I;return(I=r.value)==null?void 0:I.rootEl});t({rootEl:s});const a=te(null),l=el(),u=ie(()=>{const{width:I,height:y}=l,m=o.isLongStrip?o.isVertical?I.value:y.value:Math.min(I.value,y.value);return Math.min(4,Math.max(1,Math.ceil(m/400-1)))*o.gap}),c=te(o.isLongStrip?{min:o.pageIndex-1,max:o.pageIndex}:H()),f=ie(()=>{const{min:I,max:y}=c.value,m={};for(let D=I;D<=y;D++)m[D]=!0;return m}),h=ie(()=>({windowWidth:l.width.value,windowHeight:l.height.value,pages:o.pages,isLongStrip:o.isLongStrip,isVertical:o.isVertical}));me(h,ki(()=>{w.value=C()},100,!0,!1));const w=te(C());function C(){const I=h.value,{windowWidth:y,windowHeight:m,pages:D,isLongStrip:N,isVertical:k}=I;return D.map(A=>{var X;const J=A.some(ne=>{var se;return(se=ne.img)==null?void 0:se.isLoading}),v=A.map(ne=>ne.index),x={isLoading:J,indexes:v,visible:!1};if(J)return x;const B=A.map(({img:ne})=>ne).filter(Boolean);if(!B.length||(x.srcs=B.map(({src:ne})=>ne),B.every(ne=>ne.hasError)))return x;const _=(X=B.find(ne=>!ne.hasError))==null?void 0:X.size;if(!_)return x;const z=B.reduce((ne,se)=>{var pe;return ne+(((pe=se.size)==null?void 0:pe.width)??_.width)},0),b=B.reduce((ne,se)=>{var pe;return ne+(((pe=se.size)==null?void 0:pe.height)??_.height)},0)/B.length;return N&&k||!N&&y/z<m/b?(x.width=Math.min(y,z),x.height=b*(x.width/z)):(x.height=Math.min(m,b),x.width=z*(x.height/b)),x})}const F=ie(()=>{const I=o.isVertical?"width":"height";return w.value.map(y=>y[I]).filter(Boolean).sort((y,m)=>m-y)[0]});Ge(()=>{const I=Di(s.value,o.pageIndex);I==null||I.scrollIntoView({behavior:"instant",block:"start"});let y,m=!1;ss(()=>{y!==o.pageIndex&&(y=o.pageIndex,D(),m||(m=!0,It(()=>i("ready"))))});async function D(){if(!o.isLongStrip){c.value=H();return}const N=Math.floor(o.page),k=Di(s.value,N);if(!k)return;const A=+Y(k).getAttribute("data-index"),J=+W(k).getAttribute("data-index");(A!==c.value.min||J!==c.value.max)&&(c.value={min:A,max:J})}});function H(){const{pageIndex:I}=o;return{min:I-(o.isDouble?5:3),max:I+(o.isDouble?6:3)}}function Y(I,y=0){const m=I.previousElementSibling;if(!m)return I;const D=y+(o.isVertical?m.clientHeight:m.clientWidth);return(o.isVertical?D>l.height.value*1.5:o.isRTL?D>l.width.value*2.5:D>l.width.value*1.5)?m:Y(m,D)}function W(I,y=0){const m=I.nextElementSibling;if(!m)return I;const D=y+(o.isVertical?m.clientHeight:m.clientWidth);return(o.isVertical?D>l.height.value*3.5:o.isRTL?D>l.width.value*1.5:D>l.width.value*2.5)?m:W(m,D)}return(I,y)=>(O(),ve(xl,{ref_key:"gestureContainer",ref:r,zoom:e.zoom,zooming:e.zooming,"page-index":e.pageIndex,class:Oe(["rbod",{"rbod--touch":e.touchDevice,"rbod--long-strip":e.isLongStrip,"rbod--paging":!e.isLongStrip,"rbod--vertical":e.isVertical,"rbod--rtl":e.isRTL,"rbod--idle":e.idle,"rbod--first":!e.isLongStrip&&e.pageIndex===0,"rbod--last":!e.isLongStrip&&e.pageIndex===e.totalImgs&&!e.hasNext,"rbod--1page":w.value.length===1}]),"play-controller":e.playController,horizontal:!e.isVertical,rtl:e.isRTL,"touch-device":e.touchDevice,busy:e.busy,"long-strip":e.isLongStrip,style:je({"--gap":`${u.value}em`,"--space-top":(e.spaceTop||0)+"px","--screen-width-em":K(l).width.value+"em","--screen-height-em":K(l).height.value+"em",...e.isLongStrip?{"--max-size-em":F.value+"em"}:{}}),"onUpdate:zoom":y[0]||(y[0]=m=>i("update:zoom",m)),"onUpdate:zooming":y[1]||(y[1]=m=>i("update:zooming",m)),onDragEnd:y[2]||(y[2]=()=>i("dragEnd")),onClick:y[3]||(y[3]=()=>i("click")),onPrev:y[4]||(y[4]=()=>i("prev")),onNext:y[5]||(y[5]=()=>i("next"))},{default:ce(()=>[(O(!0),q(Me,null,pn(w.value,m=>{var D;return O(),q("div",Dn({key:e.direction+"_"+m.indexes[0],"data-index":m.indexes[0]},{ref_for:!0},m.indexes.length>1?{"data-index2":m.indexes[1]}:{}),[!((D=m.srcs)!=null&&D.length)||m.isLoading?(O(),q("div",_d,[f.value[m.indexes[0]]?(O(),ve(zi,{key:0})):Ee("",!0)])):m.srcs.length==1?(O(),ve(jr(f.value[m.indexes[0]]?"img":"div"),Dn({key:1,class:"img"},{ref_for:!0},f.value[m.indexes[0]]?{src:m.srcs[0]}:{},{style:{width:m.width!==void 0?m.width+"em":"",height:m.height!==void 0?m.height+"em":""}}),null,16,["style"])):(O(),q("div",{key:2,class:Oe(["img img--double",{"flex-row-reverse":e.isRTL}]),style:je({width:m.width!==void 0?m.width+u.value+"em":"",height:m.height!==void 0?m.height+"em":""})},[m.indexes.some(N=>f.value[N])?(O(!0),q(Me,{key:0},pn(m.srcs,N=>(O(),q("div",{key:N},[Z("img",{src:N},null,8,Sd)]))),128)):Ee("",!0)],6))],16,xd)}),128)),Z("div",{ref_key:"autoNextEl",ref:a,class:"last","data-index":e.totalImgs},[Ie(I.$slots,"end")],8,kd)]),_:3},8,["zoom","zooming","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"]))}}),[["styles",['.rbod{--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){.rbod{transform:none}}.rbod--rtl{flex-direction:row-reverse}.rbod.rbod--vertical>div{padding:calc(var(--gap)/2) 0}.rbod:not(.rbod--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.rbod:not(.rbod--vertical)>div{padding:0 calc(var(--gap)/2)}.rbod--long-strip.rbod--vertical.rbod--1page>div:first-child{min-height:100vh}.rbod--long-strip.rbod--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.rbod--long-strip.rbod--vertical>div:last-child{padding-bottom:0}.rbod--long-strip.rbod--vertical>div{width:var(--max-size-em)}.rbod--long-strip.rbod--vertical .img--loading{height:75vh;width:100%}.rbod--long-strip.rbod--vertical .last{height:100vh}.rbod--long-strip:not(.rbod--vertical).rbod--1page>div:first-child{min-width:100vw}.rbod--long-strip:not(.rbod--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.rbod--long-strip:not(.rbod--vertical) .img--loading{height:100%;max-width:100vw;width:680px}.rbod--long-strip:not(.rbod--vertical) .last{width:100vw}.rbod--long-strip>div>img{flex-shrink:0;margin:auto}.rbod--paging:not(.rbod--touch):after,.rbod--paging:not(.rbod--touch):before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.rbod--paging.rbod--first:before,.rbod--paging.rbod--last:after{cursor:default}.rbod--paging.rbod--idle:after,.rbod--paging.rbod--idle:before{cursor:none}.rbod--paging>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center;scroll-snap-stop:always}.rbod--paging.rbod--vertical{scroll-snap-type:y var(--tw-scroll-snap-strictness);--tw-scroll-snap-strictness:mandatory}.rbod--paging.rbod--vertical:after,.rbod--paging.rbod--vertical:before{height:20vw;left:0;right:0}.rbod--paging.rbod--vertical:before{top:0}.rbod--paging.rbod--vertical:after{bottom:0}.rbod--paging.rbod--vertical>div{width:var(--screen-width-em)}.rbod--paging:not(.rbod--vertical){scroll-snap-type:x var(--tw-scroll-snap-strictness);--tw-scroll-snap-strictness:mandatory}.rbod--paging:not(.rbod--vertical).rbod--rtl:before{right:0}.rbod--paging:not(.rbod--vertical).rbod--rtl:after,.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):before{left:0}.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):after{right:0}.rbod--paging:not(.rbod--vertical):after,.rbod--paging:not(.rbod--vertical):before{bottom:0;top:0;width:20vw}.rbod--paging:not(.rbod--vertical)>div{height:var(--screen-height-em)}.rbod--paging .img--loading{height:100%;width:100%}.rbod--paging .img.img--double{align-items:center;background-color:transparent;display:flex;gap:var(--gap);justify-content:center}.rbod--paging .img.img--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.rbod--paging .img.img--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.rbod>div{flex-shrink:0}.rbod .img,.rbod>div{margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod .img{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));-o-object-fit:contain;object-fit:contain}.rbod .img--loading{align-items:center;background-color:transparent;display:flex;justify-content:center}']]]),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),Td={class:"max-h-none max-w-none h-full w-full m-0 p-0 border-none outline-none"},Id={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},Md={class:"flex justify-between items-end"},Ed={class:"inline-block children-pointer-events-auto"},Pd={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto"},Od={class:"inline-block z-20 relative"},$d={key:1,class:"fixed inline-block left-1/2 -translate-x-1/2 bottom-0 p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3"},Sl=we(Te({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},zooming:{type:Boolean},rtl:{type:Boolean},spaceTop:{type:null}},setup(e,{expose:t}){const n={mounted:i=>i.showModal(),beforeUnmount:i=>i.close()},o=te(null);return t({rootEl:o}),(i,r)=>vt((O(),q("dialog",Td,[Z("div",{ref_key:"rootEl",ref:o,id:"reader-layout",class:Oe({"cursor-none":e.idle,"cursor-default":!e.idle,"bg-black":e.immediate||!e.loading,"opacity-0":!e.immediate&&e.loading,"duration-200 transition-colors":!e.immediate})},[e.loading&&e.immediate?(O(),q("div",Id,[ee(zi)])):Ee("",!0),Ie(i.$slots,"default"),Z("div",{id:"controls",class:Oe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-full h-full flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!e.fullScreen,"opacity-0 -z-10":e.fullScreen}])},[Z("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:je({paddingTop:`${e.spaceTop||0}px`})},[Ie(i.$slots,"back"),Ie(i.$slots,"exit"),Ie(i.$slots,"chapter-nav")],4),Z("div",Md,[Z("div",Ed,[Ie(i.$slots,"page-nav")]),Z("div",Pd,[Ie(i.$slots,"entry"),Z("div",Od,[Ie(i.$slots,"settings")]),Ie(i.$slots,"full-screen"),Ie(i.$slots,"play"),Ie(i.$slots,"break-first")])]),Z("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":e.rtl}])},[Ie(i.$slots,"progress")],2)],2),!e.fullScreen||e.zooming?(O(),q("div",$d,[Ie(i.$slots,"reset-zoom")])):Ee("",!0)],2)])),[[n]])}}),[["styles",["#reader-layout{direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;font-weight:400;height:100%;line-height:24px;overflow:hidden;overscroll-behavior:contain;pointer-events:auto;text-align:left;width:100%;--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity,1))}"]]]),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Sl},Symbol.toStringTag,{value:"Module"})),kl=we(Te({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=te(null),i=te(0),r=te([]),s=ie(()=>r.value[i.value]),a=ki(l,500);Ge(()=>{const f=Qs(o),h=tt(()=>u({width:f.width.value,height:f.height.value}),50);h(),me(f.width,h),me(f.height,h)});function l(){i.value>=r.value.length-1?n("hide"):i.value++}function u(f){const h=c();r.value=h.map(({rect:g,text:w})=>{const C=g.top<f.height-g.bottom,F=g.left<f.width-g.right;return{text:w,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.width}px`,height:`${g.height}px`},textStyle:{left:F?`${g.left-12}px`:void 0,right:F?void 0:`${f.width-g.left}px`,top:C?`${g.bottom+12}px`:`${g.top+20}px`,textAlign:C?void 0:"right",transform:C?void 0:"translateY(-50%)"}}}),i.value>=r.value.length&&(i.value=r.value.length-1)}function c(){var g;const f=(g=o.value)==null?void 0:g.parentElement;if(!f)return[];const h=[];return f.querySelectorAll("[data-tour]").forEach(w=>{var H;const C=(H=w.getAttribute("data-tour"))==null?void 0:H.trim();if(!(C!=null&&C.length))return;const F=w.getBoundingClientRect();h.push({rect:F,text:C})}),h}return(f,h)=>{var g,w;return O(),q(Me,null,[Z("div",{class:Oe(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),Z("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=Ve((...C)=>K(a)&&K(a)(...C),["stop"]))},[s.value?(O(),q("div",{key:i.value,class:"tour__target",style:je(s.value.style)},null,4)):Ee("",!0),(O(),q("div",{key:i.value,class:"tour__text",style:je((g=s.value)==null?void 0:g.textStyle)},Xe(((w=s.value)==null?void 0:w.text)??""),5))],512)],64)}}}),[["styles",[".tour{height:100%;left:0;overflow:hidden;position:fixed;top:0;width:100%;z-index:20}.tour__target{border-radius:9999px;border-width:2px;--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity,1));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%{transform:scale(3);--tw-border-opacity:0;opacity:0}to{transform:scale(1);--tw-border-opacity:1;opacity:.9}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}"]]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:kl},Symbol.toStringTag,{value:"Module"})),zd={},Dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Nd(e,t){return O(),q("svg",Dd,[...t[0]||(t[0]=[Z("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)])])}const Cl=we(zd,[["render",Nd]]),jd=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),Rd={},Bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Fd(e,t){return O(),q("svg",Bd,[...t[0]||(t[0]=[Z("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)])])}const Tl=we(Rd,[["render",Fd]]),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Tl},Symbol.toStringTag,{value:"Module"})),Vd={},Wd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Ud(e,t){return O(),q("svg",Wd,[...t[0]||(t[0]=[Z("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)])])}const Il=we(Vd,[["render",Ud]]),Kd=Object.freeze(Object.defineProperty({__proto__:null,default:Il},Symbol.toStringTag,{value:"Module"})),qd={},Yd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Zd(e,t){return O(),q("svg",Yd,[...t[0]||(t[0]=[Z("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)])])}const Ml=we(qd,[["render",Zd]]),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:Ml},Symbol.toStringTag,{value:"Module"})),Gd={},Jd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function Qd(e,t){return O(),q("svg",Jd,[...t[0]||(t[0]=[Z("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)])])}const El=we(Gd,[["render",Qd]]),ep=Object.freeze(Object.defineProperty({__proto__:null,default:El},Symbol.toStringTag,{value:"Module"})),tp={},np={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"};function op(e,t){return O(),q("svg",np,[...t[0]||(t[0]=[Z("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)])])}const Pl=we(tp,[["render",op]]),ip=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),rp={},sp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function lp(e,t){return O(),q("svg",sp,[...t[0]||(t[0]=[Z("g",{fill:"none"},[Z("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),Z("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)])])}const Ol=we(rp,[["render",lp]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:Ol},Symbol.toStringTag,{value:"Module"})),cp={},up={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"};function fp(e,t){return O(),q("svg",up,[...t[0]||(t[0]=[Z("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)])])}const $l=we(cp,[["render",fp]]),dp=Object.freeze(Object.defineProperty({__proto__:null,default:$l},Symbol.toStringTag,{value:"Module"})),pp={},hp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"};function gp(e,t){return O(),q("svg",hp,[...t[0]||(t[0]=[Z("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)])])}const Al=we(pp,[["render",gp]]),mp=Object.freeze(Object.defineProperty({__proto__:null,default:Al},Symbol.toStringTag,{value:"Module"})),vp={},bp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function yp(e,t){return O(),q("svg",bp,[...t[0]||(t[0]=[Z("path",{fill:"currentColor",d:"M19 12.998h-6v6h-2v-6H5v-2h6v-6h2v6h6z"},null,-1)])])}const Ll=we(vp,[["render",yp]]),wp=Object.freeze(Object.defineProperty({__proto__:null,default:Ll},Symbol.toStringTag,{value:"Module"})),xp={},_p={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"};function Sp(e,t){return O(),q("svg",_p,[...t[0]||(t[0]=[Z("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)])])}const zl=we(xp,[["render",Sp]]),kp=Object.freeze(Object.defineProperty({__proto__:null,default:zl},Symbol.toStringTag,{value:"Module"}));function Wn(e=0){return new Promise(t=>setTimeout(t,e))}function Dl(e){const t=async(n,o)=>{var i;if(!n.toBlob){if(o)return;const r=n.cloneNode(),s=(i=r.getContext)==null?void 0:i.call(r,"2d");if(!s)return;try{s.drawImage(e,0,0)}catch{return}return t(r,!0)}return await new Promise(r=>{const s=a=>{if(!a)return r(void 0);const l=URL.createObjectURL(a);r(l)};try{n.toBlob(s,"image/jpeg",1)}catch{r(void 0)}})};return t(e,!1)}let $o;async function Cp(e,t){if($o||!t.startsWith("blob:"))return t;if($o===void 0){try{if((await fetch(t)).ok)return $o=!0,t}catch{}$o=!1}e.complete||await new Promise(l=>{let u=0;const c=setInterval(()=>{e.complete?(l(),clearInterval(c)):++u>=30&&l()},100)});const o=e.naturalWidth,i=e.naturalHeight;if(!o||!i)return;const r=document.createElement("canvas"),s=r.getContext("2d");return r.width=o,r.height=i,s==null||s.drawImage(e,0,0,o,i),await Dl(r)}function Tp(e){const t=new Set,n=e.getAttributeNames(),o=n.indexOf("src"),i=o!==-1;i&&(n.splice(o,1),n.push("src"));for(const r of n){if(r==="srcset"||i&&r===":src"||r!=="data-url"&&r!=="data-original"&&!r.includes("src"))continue;const s=e.getAttribute(r);s&&(r==="src"&&e.naturalWidth&&e.naturalWidth<200||t.add(s.replace(/(\n|\t)/g," ").trim()))}return Array.from(t)}function Ni(e,t){return e>=75&&t>=50&&(e>=200||t>=200)}class Ip{constructor({onChanged:t}){Ae(this,"isMounted",!0);Ae(this,"elsDisposeCallbacksMap",new Map);Ae(this,"onChanged");this.onChanged=t}dispose(){this.isMounted=!1,this.elsDisposeCallbacksMap.forEach(t=>t()),this.elsDisposeCallbacksMap=new Map,this.onChanged=()=>{}}async download(t){if(!this.isMounted)return;const n=t.el,o=!!n&&n instanceof HTMLImageElement,i=n?o?Tp(n):[await Dl(n)].filter(Boolean):[t.src].filter(Boolean);if(!(!n&&!i.length||!this.isMounted)){if(n&&!this.elsDisposeCallbacksMap.has(n))if(o){let r=i.slice(-1)[0];const s=new MutationObserver(a=>{a.some(u=>{if(u.attributeName!=="src")return!1;const c=r;return r=n.getAttribute("src"),!!r&&c!==r})&&this.download(t)});s.observe(n,{attributes:!0}),this.elsDisposeCallbacksMap.set(n,()=>s.disconnect())}else{const r=n.getContext("2d");if(r){const s=r.drawImage.bind(r),a=r.putImageData.bind(r),l=(u,c,f)=>(setTimeout(()=>this.download(t),100),u.apply(c,f));r.drawImage=new Proxy(s,{apply:l}),r.putImageData=new Proxy(a,{apply:l}),this.elsDisposeCallbacksMap.set(n,()=>{r.drawImage=s,r.putImageData=a})}}i.length&&(this.onChanged(t,{src:i[0],isLoading:!0,hasError:!1}),await this.downloadRawImage(t,i))}}async downloadRawImage(t,n){const o=t.el instanceof HTMLImageElement?t.el:void 0;for(let i=0;i<n.length;i++){const r=n[i],s=o?await Cp(o,r):r;if(!s||!this.isMounted)return;const a=await Mp(s,o,l=>{this.isMounted&&this.onChanged(t,{src:s,size:l,isLoading:!1,hasError:!1})});if(a.ok||!this.isMounted)return;i===n.length-1&&this.onChanged(t,{src:s,isLoading:!1,hasError:!!a.error,invalid:!!a.invalid,size:a.size})}}}async function Mp(e,t,n){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?(n({width:t.naturalWidth,height:t.naturalHeight}),t.complete?{ok:!0}:new Promise(o=>{t.addEventListener("load",()=>o({ok:!0}),{once:!0})})):await new Promise(o=>{const i=new Image,r=setInterval(()=>{const{naturalWidth:s,naturalHeight:a}=i;if(a&&s){const l={width:s,height:a};Ni(s,a)?n(l):o({invalid:!0,size:l}),clearInterval(r)}},20);i.onerror=()=>{o({error:!0}),clearInterval(r)},i.onload=()=>setTimeout(()=>o({ok:!0}),25),i.src=e})}const Ep=3;class Pp{constructor(t){Ae(this,"download");Ae(this,"threads");Ae(this,"completedItems");Ae(this,"promisesMap",new Map);this.download=t.download}dispose(){var t;(t=this.threads)==null||t.dispose(),this.threads=void 0,this.completedItems=void 0}run({activeIndex:t,items:n}){var r;if(this.completedItems===n)return;this.completedItems=void 0,(r=this.threads)==null||r.dispose();let o=Math.max(0,t-1),i=!0;this.threads=new Op(Ep,()=>{const s=n[o];if(!s){this.completedItems=n;return}i&&o===n.length-1?(i=!1,o=t-2):i?o++:o--;const a=s.src??s.el;if(a){const u=this.promisesMap.get(a);if(u)return u}const l=this.download(s);return a&&this.promisesMap.set(a,l),l}),this.threads.exec()}}class Op{constructor(t,n){Ae(this,"isDisposed",!1);this.limit=t,this.getNext=n}dispose(){this.isDisposed=!0}exec(){for(let t=0;t<this.limit;t++)this.next()}async next(){if(this.isDisposed)return;const t=this.getNext();t&&(await t,await Wn(20),this.next())}}class Nl{constructor(){Ae(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const r=this.check(t.parentElement);return this.elsPool.set(t,r),r}}function $p(e,t){let n=[t??document.documentElement];const o=e.split("->");for(let i=0;i<o.length;i++){const r=o[i];n=n.map(s=>Array.from((s.shadowRoot??s).querySelectorAll(r))).flat()}return n}function ji(e){if(e instanceof HTMLOptionElement){const t=e.parentElement instanceof HTMLOptGroupElement?e.parentElement.parentElement:e.parentElement;if(!t||!(t instanceof HTMLSelectElement))return;const n=e.getAttribute("value")||"";if(t.value===n)return;t.value=n,t.dispatchEvent(new Event("change"));return}e instanceof HTMLAnchorElement&&e.addEventListener("click",t=>t.preventDefault(),{once:!0}),e.click(),e.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0,pointerType:"mouse",button:0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window,button:0}))}async function Ap(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=n.split(";");for(const r of i)if(!await Lp(r.trim()))return!1;return!0}async function Lp(e){const t=await bn(50,30,()=>document.querySelector(e));return t?(ji(t),await Wn(),!0):!1}class zp{constructor({spec:t,onChanged:n}){Ae(this,"spec");Ae(this,"onChanged");Ae(this,"rawImages",[]);Ae(this,"isMounted",!0);Ae(this,"loadRawImagesTs");Ae(this,"imgListenersMap",new Map);Ae(this,"disconnectObservers");Ae(this,"contentEl");Ae(this,"reloadRawImages",tt(()=>{this.contentEl&&this.loadRawImages(this.contentEl)},100));this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var i;const t=new MutationObserver(this.reloadRawImages),n=(i=this.spec)!=null&&i.imgDivs?void 0:(()=>{let r=window.innerWidth;return new ResizeObserver(tt(()=>{const s=window.innerWidth;if(s!==r){r=s;return}this.reloadRawImages()},50))})();this.disconnectObservers=async()=>{t.disconnect(),n==null||n.disconnect()};let o=!1;this.loadContentEl(r=>{this.contentEl!==r&&(this.contentEl=r,t.disconnect(),n==null||n.disconnect(),t.observe(this.contentEl,{childList:!0,subtree:!0}),n==null||n.observe(this.contentEl),o?this.reloadRawImages():(o=!0,this.loadRawImages(this.contentEl)))})}setRawImages(t){let n=!1;const o=t.map((i,r)=>{const s=this.rawImages[r];return s&&s.el===i.el&&s.parentEl===i.parentEl&&s.src===i.src?s:(n=!0,i)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var a;const n=await Ap(this.spec),o=(a=this.spec)==null?void 0:a.content;if(!o){t(document.body);return}let i=await bn(n?100:1,10,()=>{for(const l of o.split(",")){const u=document.querySelector(l);if(u)return u}});if(!i)return;t(i);let r=0;const s=async()=>{if(this.isMounted&&!(i!=null&&i.isConnected)){if(r=0,i=await bn(50,20,()=>{const l=document.querySelector(o);return l!=null&&l.isConnected&&l!==i?l:void 0}),!i)return;t(i)}!this.isMounted||++r>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var r;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(r=this.spec)==null?void 0:r.imgDivs,i=o?await this.loadFromImgDivs(t,o):this.loadFromContentEl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}async loadFromImgDivs(t,n){const o=$p(n,t);if(!o.length)return this.loadFromContentEl(t);const i=new Nl;return o.map(s=>{const a=Array.from(s.querySelectorAll("img,canvas"));for(const l of a)if(i.check(l)){if(l instanceof HTMLCanvasElement){if(jl(l))return{el:l,parentEl:s}}else if(l instanceof HTMLImageElement&&Rl(l))return{el:l,parentEl:s}}return{parentEl:s}})}loadFromContentEl(t){const n=[],o={},i=new Nl;return Array.from(t.querySelectorAll("img,canvas")).forEach(s=>{if(!i.check(s)){this.observeInvalidImgEl(s);return}if(s instanceof HTMLCanvasElement)jl(s)&&n.push({el:s});else if(s instanceof HTMLImageElement)if(Rl(s)){const a=s.getAttribute("src");if(a){const l=o[a];if(l!==void 0&&l!==-1){n.splice(l,1);return}o[a]=n.length}n.push({el:s})}else this.observeInvalidImgEl(s)}),n}observeInvalidImgEl(t){if(!(t instanceof HTMLImageElement)||this.imgListenersMap.has(t))return;const n=()=>{t.removeEventListener("load",n),this.imgListenersMap.delete(t),this.reloadRawImages()};this.imgListenersMap.set(t,n),t.addEventListener("load",n)}}function jl(e){return e.isConnected&&Ni(e.width,e.height)}function Rl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||Ni(t.width,t.height)}const Ri="mp-scroll-container";class Bi{constructor(){Ae(this,"unmountedCallbacks",new Map)}dispose(){for(const t of this.unmountedCallbacks.values())t()}scrollTo({rawImages:t,page:n,skipIfVisible:o,isScrollDown:i,fallbackScrollEl:r}){const s=Math.floor(n),a=t[Math.min(t.length-1,s)];if(!a)return;const l=a.el??a.parentEl??(a.src?document.querySelector(`img[src^="${a.src}"]`):void 0);if(!l)return;const u=l.getBoundingClientRect();if(o&&u.top<=0&&u.top+u.height>0)return;const c=Bi.getScrollable(l,r);if(!c)return;const{el:f,top:h}=c;r!==document.documentElement&&!f.classList.contains(Ri)&&(f.classList.add(Ri),this.unmountedCallbacks.has(f)||this.unmountedCallbacks.set(f,()=>{f.classList.remove(Ri)}));const g=n>=t.length?u.height:i?Math.max(0,u.height-window.innerHeight+100):n%1*u.height,w={top:h+g,behavior:"instant"};f.scrollTo(w),f===document.body&&document.documentElement.scrollTo(w)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:a}=i;if(a&&s&&r.set(a,Math.max(r.get(a)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let u=0;return r.forEach((c,f)=>{u+=f===a?c-s:c}),{el:i,top:u}};return o(t,new Map)}}function Bl(e){var t,n;for(let o=0;o<e.length;o++){const i=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),r=i==null?void 0:i.getBoundingClientRect();if(!r||r.bottom<=0)continue;const s=r.top;return o+(s>=0?0:-s/r.height)}return 0}function Dp(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 Bl(n)}function Np(e){var k,A,J;const t=(k=e.raw.value)==null?void 0:k.isWebtoon,n=te(t===!1),o=te(t);let i=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),s=((J=(A=e.raw.value)==null?void 0:A.imgs)==null?void 0:J.filter(Boolean))??[];let a=e.isAutoShow!==!1?e.page.value:s.length?Dp(s):void 0,l=s.map(v=>({src:v})),u,c;const f=new Map,h=({src:v,el:x})=>{const B=x??v;return B?f.get(B):void 0},g=te(s.map(v=>({src:v,isLoading:!0,hasError:!1}))),w=()=>{const v=[];l.forEach(x=>{const{src:B,el:Q}=x,_=Q??B,z=_?f.get(_):void 0;(_&&!(z!=null&&z.invalid)||x.parentEl)&&v.push(z)}),g.value=v};let C=setTimeout(e.onTimeout,2e4);const F=()=>{C&&(clearTimeout(C),C=void 0)};let H=0,Y=0;const W=4,I=new Ip({onChanged(v,x){const B=v.el??v.src;if(!B||(f.set(B,x),w(),x.isLoading))return;if(x.hasError){if(c||o.value!==void 0)return;c=setTimeout(()=>{c=void 0,o.value===void 0&&e.onError("Failed to load images")},3e3);return}const{size:Q,invalid:_}=x;if(!(!Q||_)){if(!o.value&&Y<W){const z=i?l:l.filter(({el:Pe,src:$e})=>$e||!(Pe&&Pe instanceof HTMLImageElement&&!f.has(Pe)));let b=z.indexOf(v);if(i&&b>4||b===-1&&(v.el&&(b=z.findIndex(Pe=>Pe.el===v.el)),b===-1))return;const X=b>Math.min(1,z.length-3)&&b<Math.max(z.length-2,3),ne=Q.width/Q.height;ne>2&&H++;const se=ne<.5||H>=W,pe=!se&&.65<ne&&ne<.75;pe&&Y++,o.value!==se&&(X||se)&&(o.value=se),X&&n.value!=pe&&(n.value=!0),o.value===void 0&&pe&&Y===W&&(o.value=!1)}N()}}}),y=new Pp({download:async v=>{!(v.el&&f.has(v.el))&&!(v.src&&f.has(v.src))&&await I.download(v)}}),m=()=>{y.run({items:l,activeIndex:Math.min(l.length-1,Math.floor(e.page.value))})},D=new Bi;if(s.length)m();else{let v=!1;u=new zp({spec:e.spec,async onChanged(x){var B;if(l=x,w(),!e.raw.value&&!x.length){e.onError("no_img");return}(B=e.spec)!=null&&B.imgDivs&&!v&&e.isAutoShow!==!1&&e.page.value&&(v=!0,D.scrollTo({rawImages:x,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:r?document.body:document.documentElement}),await Wn(1)),a===void 0&&e.isAutoShow===!1&&(a=Bl(x)),m()}})}ii(()=>{I.dispose(),y.dispose(),u==null||u.dispose(),c&&clearTimeout(c),D.dispose(),i&&D.scrollTo({rawImages:l,page:e.page.value,fallbackScrollEl:document.documentElement})});function N(){if(i||o.value===void 0||a===void 0)return;const v=Math.max(0,Math.min(a,l.length)),x=Math.min(Math.floor(v),l.length-1);if(x>=1){const Q=l[x];if(!Q||!h(Q)){e.isAutoShow&&D.scrollTo({rawImages:l,page:x,fallbackScrollEl:r?document.body:document.documentElement});return}for(let _=x;_<l.length;_++){const z=h(l[_]);if(!z)return;if(!z.invalid){if(!z.size&&!z.hasError)return;break}}for(let _=x-1;_>=0;_--){const{src:z,el:b}=l[_],X=b??z;if(!X)break;const ne=f.get(X);if(!ne)return;if(!ne.invalid){if(!ne.size&&!ne.hasError)return;break}}}if(i)return;i=!0,F(),e.onReady(v);let B=!0;me(()=>Math.floor(e.page.value),(Q,_)=>{Q===_&&!B||(D.scrollTo({rawImages:l,page:Q,isScrollDown:_===void 0||Q>_||l.length===1,skipIfVisible:B&&l.length>1,fallbackScrollEl:r?document.body:document.documentElement}),B=!1,_??(_=-1),m())},{immediate:!0})}return{asyncImgs:ie(()=>g.value),isWebtoon:ie(()=>o.value??!1),isManga:ie(()=>n.value)}}function jp(e,t,n){return ie(()=>t.value?Fl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function Fl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),i=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),r=i||t?[o[0]]:o;return[r.map((s,a)=>({img:s,index:n+a})),...Fl(e.slice(r.length),t&&i,n+r.length)]}function Rp(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=te(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ie({get:()=>o.value,set:i=>{o.value=i,sessionStorage.setItem("tk:page",i+"")}})}function Bp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Fi=40;function Fp({page:e,totalImgs:t,direction:n,style:o,isLongStrip:i,isVertical:r,isRTL:s,spaceTop:a,scrollEl:l,isWebtoon:u,interferePlayer:c,onChangedPage:f,onInitialized:h,onFinished:g}){let w=!1,C=!1,F=!1,H;const Y=tt(A,300),W=ki(()=>{A(),Y()},300),I=b=>(D(b),tt(D,50)(b));async function y(){N(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function m(){var b;C=!0,h(),J(),(b=l.value)==null||b.addEventListener("scroll",W),setTimeout(()=>{const{width:X,height:ne}=el();me(X,()=>{r.value&&I(e.value)}),me(ne,()=>{r.value||I(e.value)}),me(o,()=>I(e.value)),me(n,()=>I(e.value)),/iPad|iPhone|iPod/.test(navigator.userAgent)&&me(t,()=>{s.value&&I(e.value)})},300)}async function D(b){if(!(!C||w)){if(w=!0,await It(),x()===b){w=!1;return}N(b)}}function N(b,{smooth:X,ensureLastImgVisibility:ne=!1}={smooth:!1}){const se=l.value;if(!se)return;w=!0;const pe=async()=>{await It(),w=!1,C||m()},Pe=Math.floor(b),$e=Di(se,Pe);if(!$e){pe();return}c(async()=>{await k(se,!i.value&&X,async()=>{await z(se,$e,{smooth:X,page:b,ensureLastImgVisibility:ne})}),await pe()})}async function k(b,X,ne){X&&b.style.setProperty("scroll-snap-type","none"),await ne(),X&&b.style.removeProperty("scroll-snap-type")}function A(){if(w)return;const b=x();b!==void 0&&b!==e.value&&f(b),J()}function J(){F||!F&&v()&&(F=!0,g())}function v(){const b=l.value;if(!b)return!1;const X=i.value?u.value?3:!r.value&&b.clientWidth>b.clientHeight?2.25:2.5:2;return r.value?b.scrollHeight-b.scrollTop<b.clientHeight*X:b.scrollWidth-(s.value?-b.scrollLeft:b.scrollLeft)<b.clientWidth*X}function x(){const b=B();return b?(+b.getAttribute("data-index")||0)+(i.value?Q(b):0):void 0}function B(){var X;if(H??(H=l.value.getRootNode()),!H)return;const b=(X=H.elementsFromPoint)==null?void 0:X.call(H,r.value||!i.value?window.innerWidth/2:s.value?window.innerWidth-Fi:Fi,r.value&&i.value?a.value||Fi:window.innerHeight/2);if(b)for(let ne=0;ne<b.length;ne++){const se=b[ne];if(se.hasAttribute("data-index"))return se;if(se===l.value)break}}function Q(b){const X=b.getBoundingClientRect();return r.value?Math.abs(X.top-a.value)/X.height:s.value?Math.max(0,X.right-l.value.clientWidth)/X.width:Math.abs(X.left)/X.width}let _=!1;async function z(b,X,ne){if(_)return;const se=X.getBoundingClientRect();if(!i.value){if(r.value){if(se.top<=0&&se.bottom>=b.clientHeight)return}else if(se.left<=0&&se.right>=b.clientWidth)return}_=!0;const pe=r.value?b.scrollTop:b.scrollLeft,Pe=ne.page,$e=i.value?Pe%1:0,ot=await bn(30,10,async()=>{await Wn();let De;if(!(X.offsetHeight<10))return i.value?r.value?De=X.offsetTop+$e*X.offsetHeight-a.value:s.value?De=X.offsetLeft-b.clientWidth+X.offsetWidth-$e*X.offsetWidth:De=X.offsetLeft+$e*X.offsetWidth:r.value?De=X.offsetTop+(se.top>0?0:se.height-b.clientHeight):De=X.offsetLeft+(se.left>0?0:se.width-b.clientWidth),Pe>.5&&Math.abs(De)<100?void 0:De})??0,qe=ne.ensureLastImgVisibility?r.value?Math.min(ot,b.scrollHeight-b.clientHeight*2):s.value?Math.max(ot,-(b.scrollWidth-b.clientWidth*2)):Math.min(ot,b.scrollWidth-b.clientWidth*2):ot;if(!ne.smooth){r.value?b.scrollTop=qe:b.scrollLeft=qe,_=!1;return}const Lt=qe-pe,Ht=30;let Vt=0;return new Promise(De=>{(function Wt(){const d=Hp(Vt,pe,Lt,Ht);r.value?b.scrollTop=d:b.scrollLeft=d,Vt++,Vt<=Ht?requestAnimationFrame(Wt):(De(),_=!1)})()})}return{init:y,goToPage:N}}function Hp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Vp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const a=te(e||sessionStorage.getItem("tk:playing")==="true"),l=ie({get:()=>a.value,set:m=>{a.value=m,sessionStorage.setItem("tk:playing",m?"true":"false")}}),u=te(!1);let c,f;const h=tt(I,100),g=tt(()=>{u.value=!0},t?2e3:1e3),w=()=>setTimeout(()=>{u.value=!1,g()},30);w(),t||At(window,"mousemove",w),Ge(()=>{t||me(Ti(),D=>{l.value&&(D==="visible"?I():f==null||f())}),me(s,()=>C()),me(r,m=>{m||H()})}),Zt(H);async function C(m){l.value&&(f==null||f()),m&&(await It(),await m()),l.value&&h()}function F(){l.value?H():Y()}function H(){l.value&&(l.value=!1,f==null||f(),w())}function Y(){!l.value&&r.value&&(l.value=!0,I(),w())}function W(){f==null||f()}function I(){const m=n.value;if(!l.value||!m)return;const D=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,N=y();if(D<=N){H();return}f=()=>{c=Date.now(),f=void 0};const k=Date.now();c=k;const A=.1*s.value,J=o.value?"scrollTop":"scrollLeft";let v=Date.now(),x=0;const B=()=>{if(c!==k)return;const Q=Date.now(),_=Q-v;v=Q;const z=A*_+x;z>=1?(x=z%1,m[J]+=(z-x)*(i.value?-1:1)):x=z,setTimeout(B,1)};B()}function y(){const m=n.value;return o.value?m.scrollTop:i.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:l,isIdle:u,toggle:F,play:Y,pause:W,resume:I,stop:H,interfere:C,awake:w}}function Wp({raw:e,spec:t,siteMeta:n,onSelect:o}){var A,J,v;const{vol:i,inferVol:r,chap:s,title:a,slug:l,basePath:u}=e,c=t==null?void 0:t.chapter;let f=-1;async function h(x,B){if(o){o({...x});return}if(x.slug){g(x.slug,B);return}if(x.elIndex===void 0||!(c!=null&&c.sel))return;let Q=null;document.querySelector(c.sel)||(c!=null&&c.trigger&&(Q=document.querySelector(c.trigger)),Q&&(Q.click(),await new Promise(z=>setTimeout(()=>z(),50))));const _=c&&c.sel&&!c.url?document.querySelectorAll(c.sel):void 0;_!=null&&_[x.elIndex]&&(ji(_[x.elIndex]),Q&&document.querySelector(c.sel)&&Q.click())}function g(x,B){const Q=Up(u,x,(n==null?void 0:n.trailing)??!0);B?window.open(Q,"_blank","noopener"):location.href=Q}function w(x){const B=W[x];return B?Q=>h(B,Q):void 0}function C(x,B,Q){if(x){const _=document.querySelector(x);_&&ji(_);return}B&&g(B,Q)}const F=i??r,H=c==null?void 0:c.url,Y=((A=a.chapters)==null?void 0:A.filter(x=>x.slug||!H&&x.elIndex!==void 0))??[],W=Y.length>1?Y:[],I=(J=e.prev)==null?void 0:J.slug,y=(v=e.next)==null?void 0:v.slug,{prevBtn:m,nextBtn:D}=t??{};let N=I||m&&!W.length&&document.body.querySelector(m)?x=>C(m,I,x):void 0,k=y||D&&!W.length&&document.body.querySelector(D)?x=>C(D,y,x):void 0;if(W.length){if(H&&(f=W.findIndex(x=>x.slug===e.slug)),f===-1&&(f=W.findIndex(x=>(x.vol??x.inferVol)===F&&x.chap===s)),H&&f===-1&&(f=W.findIndex(x=>x.slug&&l.startsWith(`${x.slug}-`)&&l.length-x.slug.length>3)),f!==-1)N??(N=w(f+1)),k??(k=w(f-1));else if(!I&&!y){const x=W.findIndex(B=>{const Q=B.vol??B.inferVol;return F===void 0||Q===void 0||F===Q?B.chap<s:Q<F});x!==-1?(N=w(x),k=w(x-1)):k=w(W.length-1)}}return{activeIndex:f,activeLabel:Hl({vol:i,chap:s}),prev:N,next:k,chapters:W.map(x=>({label:Hl(x),select:B=>h(x,B)}))}}function Hl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Up(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[i,r]=(o.includes("//")?o:location.origin+o).split("?");return[i.endsWith("/")===n?i:n?i+"/":i.substring(0,-1),r].filter(Boolean).join("?")}var Ao=(e=>(e[e.never=0]="never",e[e.move=1]="move",e[e.firstMove=2]="firstMove",e))(Ao||{});const Kp={class:"flex justify-center items-center gap-1 pl-1 pr-2 h-full"},qp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Vl=we(Te({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{type:Object},spec:{type:Object},siteMeta:{type:null},page:{type:Number},spaceTop:{type:Number},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{type:String},autoPlay:{type:Boolean},readerStyle:{type:Number},direction:{type:Number},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean},offlineMode:{type:Boolean},autoNextSeconds:{type:Number},defaultGap:{type:Number},hideControlsEvent:{type:Number},progressSize:{type:Number}},emits:["error","crash","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters","hapticFeedback","pressedBack","selectChapter","timeout"],setup(e,{emit:t}){const n=e,o=t;let i=!1;Dr((T,L,ue)=>{if(!i){i=!0;const We=`(1.27.0) ${(L==null?void 0:L.$options.name)??(L==null?void 0:L.$options.__name)??(L==null?void 0:L.$options.__file)}.${ue}: ${T.stack}`;o("crash",We)}return!1});let r=!1,s;const a=te(!1),l=te(!1),u=Uu({touchDevice:n.touchDevice}),c=Rp(n.page,n.isAutoShow),f=ie(()=>n.immediate||a.value?n.spaceTop??0:0),{asyncImgs:h,isWebtoon:g}=Np({raw:ie(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,async onReady(T){qe(T),a.value=!0},onError:()=>{o("error"),E()},onTimeout:()=>o("timeout")}),{direction:w,style:C,isRTL:F,isDouble:H,isVertical:Y,isLongStrip:W,gap:I,speed:y,zoom:m,breakFirst:D,autoNextSeconds:N}=Mf({isWebtoon:g,titleName:ie(()=>{var T;return(T=n.raw)==null?void 0:T.title.name}),defaultStyle:ie(()=>n.readerStyle),defaultDirection:ie(()=>n.direction),defaultGap:ie(()=>n.defaultGap)}),k=te(!1),A=jp(h,H,D),J=ie(()=>h.value.length),v=ie(()=>c.value>=J.value),x=ie(()=>n.raw?Wp({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta,onSelect:n.offlineMode?T=>o("selectChapter",T):void 0}):void 0),B=te(null),Q=te(null),_=te(!1),z=te(!1),b=Vp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var T;return(T=B.value)==null?void 0:T.rootEl}),speed:y,isRTL:F,isVertical:Y,isLongStrip:W}),X=ie(()=>!n.touchDevice&&b.isIdle.value&&!u.value&&!k.value),ne=ie({get(){return m.value},set(T){b.interfere(()=>{m.value=T})}}),se=Fp({page:c,totalImgs:J,style:C,direction:w,isLongStrip:W,isVertical:Y,isRTL:F,spaceTop:f,isWebtoon:g,scrollEl:ie(()=>{var T;return(T=B.value)==null?void 0:T.rootEl}),interferePlayer:T=>b.interfere(T),onChangedPage:qe,onInitialized(){o("ready"),l.value=!0,s=Lt()},onFinished:()=>o("finished")}),pe=ie(()=>Math.floor(c.value)),Pe=ie(()=>W.value?c.value:H.value?j():Math.floor(c.value)),$e=()=>b.interfere(()=>Wn(100));ef().addListener({onKeyDown:T=>{if(n.tourEnabled)return;const L=W.value&&Y.value,ue=W.value&&!Y.value,de=!W.value&&Y.value,We=!W.value&&!Y.value;switch(T.key){case" ":T.preventDefault(),W.value?(ye(!1),b.toggle()):G();break;case"ArrowUp":case"PageUp":L?$e():de&&pe.value!==0&&(T.preventDefault(),V());break;case"ArrowDown":case"PageDown":L?$e():de&&!v.value&&(T.preventDefault(),R());break;case"ArrowLeft":ue?$e():We?(T.preventDefault(),M()):Y.value&&d();break;case"ArrowRight":ue?$e():We?(T.preventDefault(),P()):Y.value&&Wt();break;case"Escape":T.preventDefault();break}},onKeyUp:T=>{switch(T.key){case"b":D.value=!D.value;break;case"f":oe();break;case"t":U();break;case"h":ye();break}}}),Nu(()=>o("hapticFeedback")),At("fullscreenchange",()=>{_.value=!!document.fullscreenElement}),n.touchDevice&&me(Ti(),L=>{L==="hidden"&&(b.isPlaying.value?b.stop():n.fullScreen&&G(!1))}),me(b.isPlaying,T=>{T||G(!1),o("playingChanged",T)}),me(b.isIdle,T=>{b.isPlaying.value&&G(T)}),me(u,T=>{!T&&b.isIdle.value?b.awake():T&&n.fullScreen&&G()});function qe(T){if(c.value===T)return;const L=h.value.length;if(T<0||T>=L+1)return;const ue=Math.floor(T*100)/100;if(ue===c.value)return;const de=c.value;if(c.value=ue,o("pageChanged",ue),T>=L){G(!1),b.stop();return}if(T<.01&&de>T){G(!1),b.awake();return}const Ut=n.hideControlsEvent??Ao.firstMove;if(!r&&Ut===Ao.firstMove){(W.value?s!==void 0&&Math.abs(Lt()-s)>300:Math.abs(de-T)>=1)&&G(!0);return}!b.isPlaying.value&&Ut===Ao.move&&G(!0)}function Lt(){var L;const T=(L=B.value)==null?void 0:L.rootEl;return T?Y.value?T.scrollTop:F.value?-T.scrollLeft:T.scrollLeft:0}function Ht(){!n.touchDevice&&!W.value&&se.goToPage(pe.value,{smooth:!0})}function Vt(){if(b.isPlaying.value){!n.fullScreen||!n.touchDevice?b.stop():b.awake();return}G()}function De(T){n.offlineMode&&(T.preventDefault(),o("pressedBack"))}function Wt(T=!1){var L,ue;(ue=(L=x.value)==null?void 0:L.next)==null||ue.call(L,T)}function d(T=!1){var L,ue;(ue=(L=x.value)==null?void 0:L.prev)==null||ue.call(L,T)}function p(T){F.value?Wt($(T)):d($(T))}function S(T){F.value?d($(T)):Wt($(T))}function $(T){return!n.touchDevice&&(T.ctrlKey||T.metaKey)}function M(){F.value?R():V()}function P(){F.value?V():R()}function V(){var ue;const T=A.value,L=v.value?T[T.length-1][0].index:(ue=T[j()-1])==null?void 0:ue[0].index;L!==void 0?se.goToPage(L):d()}function R(){var T,L;if(v.value)Wt();else{const ue=((L=(T=A.value[j()+1])==null?void 0:T[0])==null?void 0:L.index)??h.value.length;se.goToPage(ue)}}function j(){const T=pe.value,L=A.value.findIndex(ue=>ue.some(({index:de})=>de===T));return L===-1?A.value.length-1:L}function E(){if(n.offlineMode){o("pressedBack");return}Bp(),o("dispose")}async function G(T){if(u.value&&!n.fullScreen)return;const L=typeof T=="boolean"?T:!n.fullScreen;L!==n.fullScreen&&(r=!0,o("fullScreenChanged",L),L&&setTimeout(()=>{n.fullScreen&&u.value&&o("fullScreenChanged",!1)},100))}function U(){n.entryId?he():le()}function oe(){var T,L;document.fullscreenElement?document.exitFullscreen():(L=(T=Q.value)==null?void 0:T.rootEl)==null||L.requestFullscreen()}function le(){b.stop(),o("addEntry")}function he(){b.stop(),o("openEntry",n.entryId)}function ye(T){z.value!==T&&(z.value=!z.value,z.value&&b.isPlaying.value&&b.stop())}return(T,L)=>e.immediate||a.value?(O(),ve(Sl,{key:0,ref_key:"root",ref:Q,loading:!l.value,immediate:!!e.immediate,"full-screen":!!e.fullScreen,zooming:k.value,idle:X.value,"space-top":f.value,rtl:K(F),onClick:L[15]||(L[15]=Ve(()=>{},["stop"]))},ri({settings:ce(()=>{var ue;return[ee(cl,{"reader-style":K(C),"onUpdate:readerStyle":L[6]||(L[6]=de=>Ce(C)?C.value=de:null),direction:K(w),"onUpdate:direction":L[7]||(L[7]=de=>Ce(w)?w.value=de:null),gap:K(I),"onUpdate:gap":L[8]||(L[8]=de=>Ce(I)?I.value=de:null),speed:K(y),"onUpdate:speed":L[9]||(L[9]=de=>Ce(y)?y.value=de:null),zoom:ne.value,"onUpdate:zoom":L[10]||(L[10]=de=>ne.value=de),"auto-next-seconds":K(N),"onUpdate:autoNextSeconds":L[11]||(L[11]=de=>Ce(N)?N.value=de:null),name:(ue=e.raw)==null?void 0:ue.title.name,webtoon:K(g),disabled:!a.value,"hide-auto-next":e.autoNextSeconds!==void 0,onHelp:ye},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled","hide-auto-next"])]}),"reset-zoom":ce(()=>[ee(To,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ce(()=>[k.value||K(m)!==1?(O(),ve(fl,{key:0,zoom:ne.value,onClick:L[14]||(L[14]=Ve(()=>ne.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):Ee("",!0)]),_:1})]),default:ce(()=>{var ue;return[a.value?(O(),ve(_l,{key:0,ref_key:"body",ref:B,zoom:ne.value,"onUpdate:zoom":L[0]||(L[0]=de=>ne.value=de),zooming:k.value,"onUpdate:zooming":L[1]||(L[1]=de=>k.value=de),page:K(c),"page-index":pe.value,pages:K(A),"total-imgs":K(h).length,direction:K(w),gap:K(I),"is-long-strip":K(W),isRTL:K(F),"is-double":K(H),"is-vertical":K(Y),"space-top":f.value,busy:K(u),idle:X.value,"play-controller":K(b),"touch-device":e.touchDevice,"has-next":!!((ue=x.value)!=null&&ue.next),onReady:K(se).init,onPrev:V,onNext:R,onClick:Vt,onDragEnd:Ht,onWheelPassive:L[2]||(L[2]=()=>K(b).interfere())},ri({_:2},[a.value&&K(h).length?{name:"end",fn:ce(()=>{var de;return[ee(tl,{"has-next":!!((de=x.value)!=null&&de.next),"offline-mode":!!e.offlineMode,seconds:e.autoNextSeconds??K(N),onNext:Wt,onHide:E},ri({_:2},[K(m)===1&&!e.entryId&&e.raw&&!e.offlineMode?{name:"bottom-center",fn:ce(()=>[ee(Pi,{class:"bg-primary w-min !h-9 !bg-opacity-100",onClick:U},{default:ce(()=>[Z("div",Kp,[ee(Ll,{class:"flex-shrink-0 w-auto"}),L[16]||(L[16]=Z("span",{class:"text-sm"},"Add to library",-1))])]),_:1})]),key:"0"}:void 0]),1032,["has-next","offline-mode","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-double","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onReady"])):Ee("",!0),l.value&&!v.value&&!e.tourEnabled?(O(),ve(ml,{key:1,direction:K(w)},null,8,["direction"])):Ee("",!0),l.value&&!v.value?(O(),ve(yl,{key:2,playing:!!K(b).isPlaying.value},null,8,["playing"])):Ee("",!0),z.value?(O(),ve(vl,{key:3,"touch-device":e.touchDevice,onHide:ye},null,8,["touch-device"])):Ee("",!0),e.tourEnabled?(O(),ve(kl,{key:4,onHide:L[3]||(L[3]=()=>o("tourEnabledChanged",!1))})):Ee("",!0)]}),_:2},[e.raw||e.offlineMode?{name:"back",fn:ce(()=>[ee(lt,{href:e.offlineMode||!e.raw?"#":e.raw.title.url,title:"Back to manga","enable-haptic-feedback":"",onClick:De},{default:ce(()=>[ee(Cl)]),_:1},8,["href"])]),key:"0"}:void 0,!e.touchDevice&&!e.offlineMode?{name:"exit",fn:ce(()=>[ee(lt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:E},{default:ce(()=>[ee(zl)]),_:1})]),key:"1"}:void 0,x.value?{name:"chapter-nav",fn:ce(()=>{var ue;return[ee(hl,{"touch-device":e.touchDevice,"chapter-spec":(ue=e.spec)==null?void 0:ue.chapter,data:x.value,onGetHiddenChapters:L[4]||(L[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:L[5]||(L[5]=()=>G(!0))},null,8,["touch-device","chapter-spec","data"]),x.value.next||x.value.prev?(O(),q("div",qp,[ee(lt,{title:`${K(F)?"Next":"Prev"} chapter (←)`,disabled:K(F)?!x.value.next:!x.value.prev,class:"!rounded-r-none","enable-haptic-feedback":"",onClick:p},{default:ce(()=>[ee(Ml)]),_:1},8,["title","disabled"]),ee(lt,{title:`${K(F)?"Prev":"Next"} chapter (→)`,disabled:K(F)?!x.value.prev:!x.value.next,class:"!rounded-l-none","enable-haptic-feedback":"",onClick:S},{default:ce(()=>[ee(El)]),_:1},8,["title","disabled"])])):Ee("",!0)]}),key:"2"}:void 0,K(A).length?{name:"page-nav",fn:ce(()=>[ee(bl,{"model-value":pe.value,disabled:!l.value,pages:K(A),"total-imgs":K(h).length,"onUpdate:modelValue":K(se).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,!e.offlineMode&&e.raw?{name:"entry",fn:ce(()=>[ee(lt,{title:e.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:U},{default:ce(()=>[e.entryId?(O(),ve(Il,{key:0})):(O(),ve(Tl,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,e.touchDevice?void 0:{name:"full-screen",fn:ce(()=>[ee(lt,{title:`${_.value?"Exit":"Enter"} fullscreen (F)`,onClick:oe},{default:ce(()=>[_.value?(O(),ve(Al,{key:0})):(O(),ve($l,{key:1}))]),_:1},8,["title"])]),key:"5"},K(W)?{name:"play",fn:ce(()=>[ee(lt,{"data-tour":"Press here to play like a video",title:`${K(b).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:L[12]||(L[12]=()=>K(b).toggle())},{default:ce(()=>[K(b).isPlaying.value?(O(),ve(Ai,{key:0})):(O(),ve(Li,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,K(H)?{name:"break-first",fn:ce(()=>[ee(lt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:L[13]||(L[13]=()=>D.value=!K(D))},{default:ce(()=>[K(D)?(O(),ve(Ol,{key:0})):(O(),ve(Pl,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0,e.progressSize!==0&&!v.value?{name:"progress",fn:ce(()=>[ee(wl,{value:Pe.value,total:K(A).length,"long-strip":K(W),height:e.progressSize??2,rtl:K(F)},null,8,["value","total","long-strip","height","rtl"])]),key:"8"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):Ee("",!0)}}),[["styles",['*,: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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;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{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-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]:where(:not([hidden=until-found])){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%}.container,svg{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}}.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}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.left-10{left:40px}.left-9{left:36px}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-10{top:40px}.top-9{top:36px}.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-0{margin:0}.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}.box-border{box-sizing:border-box}.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-9{height:36px!important}.h-0{height:0}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-2{height:8px}.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-\\[30rem\\]{height:480px}.h-full{height:100%}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.max-h-none{max-height:none}.w-0{width:0}.w-1{width:4px}.w-10{width:40px}.w-12{width:48px}.w-2{width:8px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.8rem\\]{width:76.8px}.w-auto{width:auto}.w-full{width:100%}.w-min{width:-moz-min-content;width:min-content}.max-w-full{max-width:100%}.max-w-none{max-width:none}.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\\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.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}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.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)}.snap-center{scroll-snap-align:center}.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-2{gap:8px}.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-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border-2{border-width:2px}.border-4{border-width:4px}.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,1))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity,1))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity,1))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(184 92 56/var(--tw-bg-opacity,1))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity,1))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity,1))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity,1))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity,1))}.bg-textPrimary{--tw-bg-opacity:1;background-color:rgb(251 130 82/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.\\!bg-opacity-100{--tw-bg-opacity:1!important}.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-0{padding:0}.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}.pb-7{padding-bottom:28px}.pl-1{padding-left:4px}.pr-2{padding-right:8px}.pt-3{padding-top:12px}.text-left{text-align:left}.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}.font-normal{font-weight:400}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity,1))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity,1))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity,1))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity,1))}.text-textPrimary{--tw-text-opacity:1;color:rgb(251 130 82/var(--tw-text-opacity,1))}.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}.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,1))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity,1))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity,1))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity,1))}.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,1))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity,1))}}.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,1))}.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\\:pb-6{padding-bottom:24px}.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}.lg\\:pb-4{padding-bottom:16px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}']]]),Yp=Object.freeze(Object.defineProperty({__proto__:null,default:Vl},Symbol.toStringTag,{value:"Module"})),Zp=Object.freeze(Object.defineProperty({__proto__:null,default:Te({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=te(null),i=te(!1);return Ge(async()=>{await It(),Ii(o,r=>{const s=r.some(a=>a.isIntersecting);s!==i.value&&(i.value=s),s&&n("visible")})}),(r,s)=>(O(),q("div",{ref_key:"root",ref:o},[Ie(r.$slots,"default",{visible:i.value})],512))}})},Symbol.toStringTag,{value:"Module"})),Xp={},Gp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function Jp(e,t){return O(),q("svg",Gp,[...t[0]||(t[0]=[Z("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)])])}const Qp=Object.freeze(Object.defineProperty({__proto__:null,default:we(Xp,[["render",Jp]])},Symbol.toStringTag,{value:"Module"})),eh="gear-second{height:0!important;opacity:0!important;pointer-events:none!important;width:0!important;z-index:-10!important}html.gear-second,html.gear-second *{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{touch-action:pan-x pan-y!important}html.gear-second body .m-content #progress-bar{display:none!important}html.gear-second body>:not(dialog[open]){visibility:hidden!important}.mp-scroll-container{max-height:100vh!important;overflow:hidden!important}html:has(body.mp-scroll-container){overflow:auto!important}",rn="gear-second",Hi={immediate:void 0,raw:void 0,spec:void 0,siteMeta: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,offlineMode:void 0,autoNextSeconds:void 0,defaultGap:void 0,progressSize:void 0,hideControlsEvent:void 0,onError:void 0,onCrash:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0,onHapticFeedback:void 0,onPressedBack:void 0,onSelectChapter:void 0,onTimeout:void 0},nt={promise:void 0,data:oo({...Hi})};async function th(e){return nt.promise?(nt.data.raw=e.raw,await nt.promise):(nt.promise=new Promise(t=>{let n=!1,o=!1,i,r,s=0;const a=!!e.spaceTop||!!e.isAutoShow&&!!e.page,l=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(rn),Object.assign(nt.data,Hi),nt.promise=void 0)},u=tt(h=>{var g;return!n&&((g=e.onPageChanged)==null?void 0:g.call(e,h))},300);Object.assign(nt.data,Hi,e,{immediate:a,onReady(){a||(c(),document.documentElement.classList.add(rn))},onError(){var h,g;l(),o?((h=e.onDispose)==null||h.call(e),(g=e.onError)==null||g.call(e)):f()},onDispose:()=>{var h;l(),(h=e==null?void 0:e.onDispose)==null||h.call(e)},onFullScreenChanged:h=>{var g;nt.data.fullScreen=h,(g=e.onFullScreenChanged)==null||g.call(e,h)},onPageChanged:h=>{nt.data.page=h,!(s>=h)&&(s=h,u(h))},onTourEnabledChanged:h=>{nt.data.tourEnabled=h}}),nh().then(()=>{if(n){f();return}r=document.createElement(rn),a?(document.documentElement.classList.add(rn),document.body.appendChild(r),setTimeout(c)):document.body.appendChild(r);let h=0;i=setInterval(()=>{if(++h===30||n){clearInterval(i),i=void 0;return}r.isConnected||(document.documentElement.classList.add(rn),document.body.appendChild(r))},100)});function c(){o||(o=!0,t({updateArgs(h){Object.assign(nt.data,h)},dispose:l}))}function f(){o||t(void 0)}}),await nt.promise)}async function nh(){if(window.customElements.get(rn))return;const e=document.createElement("style"),t=eh;e.appendChild(document.createTextNode(t)),document.head.appendChild(e);const n=du({styles:[await oh()],data:()=>({readerData:nt.data}),render(){return xs(Vl,this.readerData)}});window.customElements.define(rn,n)}async function oh(){const e=Object.assign({"./App.vue":Yp,"./components/AutoNext.vue":Wu,"./components/BaseButton.vue":qu,"./components/BottomSheet.vue":rf,"./components/ButtonDropdown.vue":Xf,"./components/ButtonIcon.vue":Yu,"./components/ButtonReaderSettings.vue":Pf,"./components/ButtonResetZoom.vue":Nf,"./components/ChapterNav.vue":Gf,"./components/DirectionToast.vue":nd,"./components/GesturesContainer.vue":gd,"./components/HelpScreen.vue":od,"./components/InputPercentage.vue":af,"./components/InputSelect.vue":uf,"./components/IntersectionWrapper.vue":Zp,"./components/LoadingIndicator.vue":wd,"./components/PageNav.vue":id,"./components/PauseToast.vue":pd,"./components/ProgressBar.vue":hd,"./components/ReaderBody.vue":Cd,"./components/ReaderLayout.vue":Ad,"./components/ReaderTour.vue":Ld,"./components/TableField.vue":pf,"./components/icons/IconBack.vue":jd,"./components/icons/IconBookmarkNew.vue":Hd,"./components/icons/IconBookmarked.vue":Kd,"./components/icons/IconChevronLeft.vue":Xd,"./components/icons/IconChevronRight.vue":ep,"./components/icons/IconClose.vue":Ju,"./components/icons/IconDouble.vue":ip,"./components/icons/IconDoubleSkip.vue":ap,"./components/icons/IconExclamationCircle.vue":Qp,"./components/icons/IconFullscreen.vue":dp,"./components/icons/IconFullscreenExit.vue":mp,"./components/icons/IconHelp.vue":vf,"./components/icons/IconLoading.vue":Ff,"./components/icons/IconNext.vue":td,"./components/icons/IconPause.vue":ad,"./components/icons/IconPlay.vue":dd,"./components/icons/IconPlus.vue":wp,"./components/icons/IconReaderExit.vue":kp,"./components/icons/IconSettings.vue":xf,"./components/icons/IconTriangle.vue":Uf,"./components/icons/IconZoom.vue":Lf}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return th});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.26.0",
4
+ "version": "1.27.0",
5
5
  "license": "UNLICENSED",
6
6
  "description": "MP manga reader",
7
7
  "main": "index.js",