gear-second 1.22.0 → 1.23.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.
- package/index.js +16 -16
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
* @vue/shared v3.4.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function We(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const fe={},Je=[],Ke=()=>{},
|
|
5
|
+
**/function We(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const fe={},Je=[],Ke=()=>{},El=()=>!1,Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bo=e=>e.startsWith("onUpdate:"),Ce=Object.assign,yo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},$l=Object.prototype.hasOwnProperty,me=(e,t)=>$l.call(e,t),oe=Array.isArray,Gt=e=>On(e)==="[object Map]",Ei=e=>On(e)==="[object Set]",ae=e=>typeof e=="function",Ie=e=>typeof e=="string",Jt=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",$i=e=>(_e(e)||ae(e))&&ae(e.then)&&ae(e.catch),Mi=Object.prototype.toString,On=e=>Mi.call(e),Ml=e=>On(e).slice(8,-1),Pi=e=>On(e)==="[object Object]",_o=e=>Ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zn=We(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Pl=/-(\w)/g,Ne=Ln(e=>e.replace(Pl,(t,n)=>n?n.toUpperCase():"")),Ol=/\B([A-Z])/g,Ue=Ln(e=>e.replace(Ol,"-$1").toLowerCase()),An=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),wo=Ln(e=>e?`on${An(e)}`:""),st=(e,t)=>!Object.is(e,t),Bn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},jn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},xo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},So=e=>{const t=Ie(e)?Number(e):NaN;return isNaN(t)?e:t};let Oi;const zi=()=>Oi||(Oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(oe(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=Ie(o)?Bl(o):Ae(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(Ie(e)||_e(e))return e}const zl=/;(?![^(]*\))/g,Ll=/:([^]+)/,Al=/\/\*[^]*?\*\//g;function Bl(e){const t={};return e.replace(Al,"").split(zl).forEach(n=>{if(n){const o=n.split(Ll);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Te(e){let t="";if(Ie(e))t=e;else if(oe(e))for(let n=0;n<e.length;n++){const o=Te(e[n]);o&&(t+=o+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const jl=We("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Li(e){return!!e||e===""}const qe=e=>Ie(e)?e:e==null?"":oe(e)||_e(e)&&(e.toString===Mi||!ae(e.toString))?JSON.stringify(e,Ai,2):String(e),Ai=(e,t)=>t&&t.__v_isRef?Ai(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[ko(o,r)+" =>"]=i,n),{})}:Ei(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ko(n))}:Jt(t)?ko(t):_e(t)&&!oe(t)&&!Pi(t)?String(t):t,ko=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
6
|
* @vue/reactivity v3.4.15
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let Ye;class jl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ye;try{return Ye=this,t()}finally{Ye=n}}}on(){Ye=this}off(){Ye=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Dl(e,t=Ye){t&&t.active&&t.effects.push(e)}function Bi(){return Ye}function Rl(e){Ye&&Ye.cleanups.push(e)}let Dt;class Co{constructor(t,n,o,i){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Dl(this,i)}get dirty(){if(this._dirtyLevel===1){wt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Nl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),xt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=_t,n=Dt;try{return _t=!0,Dt=this,this._runnings++,ji(this),this.fn()}finally{Di(this),this._runnings--,Dt=n,_t=t}}stop(){var t;this.active&&(ji(this),Di(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Nl(e){return e.value}function ji(e){e._trackId++,e._depsLength=0}function Di(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ri(e.deps[t],e);e.deps.length=e._depsLength}}function Ri(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let _t=!0,Io=0;const Ni=[];function wt(){Ni.push(_t),_t=!1}function xt(){const e=Ni.pop();_t=e===void 0?!0:e}function To(){Io++}function Eo(){for(Io--;!Io&&$o.length;)$o.shift()()}function Fi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Ri(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const $o=[];function Hi(e,t,n){To();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const i=o._dirtyLevel;o._dirtyLevel=t,i===0&&(o._shouldSchedule=!0,o.trigger())}Vi(e),Eo()}function Vi(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,$o.push(t.scheduler))}const Wi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Rt=Symbol(""),Po=Symbol("");function Fe(e,t,n){if(_t&&Dt){let o=Mo.get(e);o||Mo.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Wi(()=>o.delete(n))),Fi(Dt,i)}}function gt(e,t,n,o,i,r){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&oe(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Jt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":oe(e)?_o(n)&&l.push(s.get("length")):(l.push(s.get(Rt)),Gt(e)&&l.push(s.get(Po)));break;case"delete":oe(e)||(l.push(s.get(Rt)),Gt(e)&&l.push(s.get(Po)));break;case"set":Gt(e)&&l.push(s.get(Rt));break}To();for(const a of l)a&&Hi(a,2);Eo()}const Fl=We("__proto__,__v_isRef,__isVue"),Ki=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt)),Ui=Hl();function Hl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=he(this);for(let r=0,s=this.length;r<s;r++)Fe(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(he)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){wt(),To();const o=he(this)[t].apply(this,n);return Eo(),xt(),o}}),e}function Vl(e){const t=he(this);return Fe(t,"has",e),t.hasOwnProperty(e)}class qi{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const i=this._isReadonly,r=this._shallow;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?na:tr:r?er:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=oe(t);if(!i){if(s&&me(Ui,n))return Reflect.get(Ui,n,o);if(n==="hasOwnProperty")return Vl}const l=Reflect.get(t,n,o);return(Jt(n)?Ki.has(n):Fl(n))||(i||Fe(t,"get",n),r)?l:Me(l)?s&&_o(n)?l:l.value:_e(l)?i?nr(l):Un(l):l}}class Yi extends qi{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=en(r);if(!qn(o)&&!en(o)&&(r=he(r),o=he(o)),!oe(t)&&Me(r)&&!Me(o))return a?!1:(r.value=o,!0)}const s=oe(t)&&_o(n)?Number(n)<t.length:me(t,n),l=Reflect.set(t,n,o,i);return t===he(i)&&(s?st(o,r)&>(t,"set",n,o):gt(t,"add",n,o)),l}deleteProperty(t,n){const o=me(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&>(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Jt(n)||!Ki.has(n))&&Fe(t,"has",n),o}ownKeys(t){return Fe(t,"iterate",oe(t)?"length":Rt),Reflect.ownKeys(t)}}class Wl extends qi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Kl=new Yi,Ul=new Wl,ql=new Yi(!0),Oo=e=>e,Nn=e=>Reflect.getPrototypeOf(e);function Fn(e,t,n=!1,o=!1){e=e.__v_raw;const i=he(e),r=he(t);n||(st(t,r)&&Fe(i,"get",t),Fe(i,"get",r));const{has:s}=Nn(i),l=o?Oo:n?Ao:cn;if(s.call(i,t))return l(e.get(t));if(s.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Hn(e,t=!1){const n=this.__v_raw,o=he(n),i=he(e);return t||(st(e,i)&&Fe(o,"has",e),Fe(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Vn(e,t=!1){return e=e.__v_raw,!t&&Fe(he(e),"iterate",Rt),Reflect.get(e,"size",e)}function Zi(e){e=he(e);const t=he(this);return Nn(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function Xi(e,t){t=he(t);const n=he(this),{has:o,get:i}=Nn(n);let r=o.call(n,e);r||(e=he(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?st(t,s)&>(n,"set",e,t):gt(n,"add",e,t),this}function Gi(e){const t=he(this),{has:n,get:o}=Nn(t);let i=n.call(t,e);i||(e=he(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&>(t,"delete",e,void 0),r}function Ji(){const e=he(this),t=e.size!==0,n=e.clear();return t&>(e,"clear",void 0,void 0),n}function Wn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=he(s),a=t?Oo:e?Ao:cn;return!e&&Fe(l,"iterate",Rt),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function Kn(e,t,n){return function(...o){const i=this.__v_raw,r=he(i),s=Gt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Oo:t?Ao:cn;return!t&&Fe(r,"iterate",a?Po:Rt),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:l?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function St(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Yl(){const e={get(r){return Fn(this,r)},get size(){return Vn(this)},has:Hn,add:Zi,set:Xi,delete:Gi,clear:Ji,forEach:Wn(!1,!1)},t={get(r){return Fn(this,r,!1,!0)},get size(){return Vn(this)},has:Hn,add:Zi,set:Xi,delete:Gi,clear:Ji,forEach:Wn(!1,!0)},n={get(r){return Fn(this,r,!0)},get size(){return Vn(this,!0)},has(r){return Hn.call(this,r,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:Wn(!0,!1)},o={get(r){return Fn(this,r,!0,!0)},get size(){return Vn(this,!0)},has(r){return Hn.call(this,r,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:Wn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Kn(r,!1,!1),n[r]=Kn(r,!0,!1),t[r]=Kn(r,!1,!0),o[r]=Kn(r,!0,!0)}),[e,n,t,o]}const[Zl,Xl,Gl,Jl]=Yl();function zo(e,t){const n=t?e?Jl:Gl:e?Xl:Zl;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(me(n,i)&&i in o?n:o,i,r)}const Ql={get:zo(!1,!1)},ea={get:zo(!1,!0)},ta={get:zo(!0,!1)},Qi=new WeakMap,er=new WeakMap,tr=new WeakMap,na=new WeakMap;function oa(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:oa($l(e))}function Un(e){return en(e)?e:Lo(e,!1,Kl,Ql,Qi)}function ra(e){return Lo(e,!1,ql,ea,er)}function nr(e){return Lo(e,!0,Ul,ta,tr)}function Lo(e,t,n,o,i){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=ia(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function Qt(e){return en(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function qn(e){return!!(e&&e.__v_isShallow)}function or(e){return Qt(e)||en(e)}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function ir(e){return Rn(e,"__v_skip",!0),e}const cn=e=>_e(e)?Un(e):e,Ao=e=>_e(e)?nr(e):e;class rr{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Co(()=>t(this._value),()=>un(this,1),()=>this.dep&&Vi(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=he(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&un(t,2),Bo(t),t.effect._dirtyLevel>=1&&un(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function sa(e,t,n=!1){let o,i;const r=ae(e);return r?(o=e,i=Ke):(o=e.get,i=e.set),new rr(o,i,r||!i,n)}function Bo(e){_t&&Dt&&(e=he(e),Fi(Dt,e.dep||(e.dep=Wi(()=>e.dep=void 0,e instanceof rr?e:void 0))))}function un(e,t=2,n){e=he(e);const o=e.dep;o&&Hi(o,t)}function Me(e){return!!(e&&e.__v_isRef===!0)}function J(e){return la(e,!1)}function la(e,t){return Me(e)?e:new aa(e,t)}class aa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:he(t),this._value=n?t:cn(t)}get value(){return Bo(this),this._value}set value(t){const n=this.__v_isShallow||qn(t)||en(t);t=n?t:he(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),un(this,2))}}function Z(e){return Me(e)?e.value:e}const ca={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Me(i)&&!Me(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function sr(e){return Qt(e)?e:new Proxy(e,ca)}class ua{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Bo(this),()=>un(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function lr(e){return new ua(e)}/**
|
|
9
|
+
**/let Ye;class Dl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ye;try{return Ye=this,t()}finally{Ye=n}}}on(){Ye=this}off(){Ye=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Rl(e,t=Ye){t&&t.active&&t.effects.push(e)}function Bi(){return Ye}function Nl(e){Ye&&Ye.cleanups.push(e)}let Dt;class Co{constructor(t,n,o,i){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Rl(this,i)}get dirty(){if(this._dirtyLevel===1){wt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Fl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),xt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=_t,n=Dt;try{return _t=!0,Dt=this,this._runnings++,ji(this),this.fn()}finally{Di(this),this._runnings--,Dt=n,_t=t}}stop(){var t;this.active&&(ji(this),Di(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Fl(e){return e.value}function ji(e){e._trackId++,e._depsLength=0}function Di(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ri(e.deps[t],e);e.deps.length=e._depsLength}}function Ri(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let _t=!0,Io=0;const Ni=[];function wt(){Ni.push(_t),_t=!1}function xt(){const e=Ni.pop();_t=e===void 0?!0:e}function To(){Io++}function Eo(){for(Io--;!Io&&$o.length;)$o.shift()()}function Fi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Ri(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const $o=[];function Hi(e,t,n){To();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const i=o._dirtyLevel;o._dirtyLevel=t,i===0&&(o._shouldSchedule=!0,o.trigger())}Vi(e),Eo()}function Vi(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,$o.push(t.scheduler))}const Wi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Rt=Symbol(""),Po=Symbol("");function Fe(e,t,n){if(_t&&Dt){let o=Mo.get(e);o||Mo.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Wi(()=>o.delete(n))),Fi(Dt,i)}}function gt(e,t,n,o,i,r){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&oe(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Jt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":oe(e)?_o(n)&&l.push(s.get("length")):(l.push(s.get(Rt)),Gt(e)&&l.push(s.get(Po)));break;case"delete":oe(e)||(l.push(s.get(Rt)),Gt(e)&&l.push(s.get(Po)));break;case"set":Gt(e)&&l.push(s.get(Rt));break}To();for(const a of l)a&&Hi(a,2);Eo()}const Hl=We("__proto__,__v_isRef,__isVue"),Ki=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt)),Ui=Vl();function Vl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=he(this);for(let r=0,s=this.length;r<s;r++)Fe(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(he)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){wt(),To();const o=he(this)[t].apply(this,n);return Eo(),xt(),o}}),e}function Wl(e){const t=he(this);return Fe(t,"has",e),t.hasOwnProperty(e)}class qi{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const i=this._isReadonly,r=this._shallow;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?oa:tr:r?er:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=oe(t);if(!i){if(s&&me(Ui,n))return Reflect.get(Ui,n,o);if(n==="hasOwnProperty")return Wl}const l=Reflect.get(t,n,o);return(Jt(n)?Ki.has(n):Hl(n))||(i||Fe(t,"get",n),r)?l:Me(l)?s&&_o(n)?l:l.value:_e(l)?i?nr(l):Wn(l):l}}class Yi extends qi{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=en(r);if(!Kn(o)&&!en(o)&&(r=he(r),o=he(o)),!oe(t)&&Me(r)&&!Me(o))return a?!1:(r.value=o,!0)}const s=oe(t)&&_o(n)?Number(n)<t.length:me(t,n),l=Reflect.set(t,n,o,i);return t===he(i)&&(s?st(o,r)&>(t,"set",n,o):gt(t,"add",n,o)),l}deleteProperty(t,n){const o=me(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&>(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Jt(n)||!Ki.has(n))&&Fe(t,"has",n),o}ownKeys(t){return Fe(t,"iterate",oe(t)?"length":Rt),Reflect.ownKeys(t)}}class Kl extends qi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ul=new Yi,ql=new Kl,Yl=new Yi(!0),Oo=e=>e,Dn=e=>Reflect.getPrototypeOf(e);function Rn(e,t,n=!1,o=!1){e=e.__v_raw;const i=he(e),r=he(t);n||(st(t,r)&&Fe(i,"get",t),Fe(i,"get",r));const{has:s}=Dn(i),l=o?Oo:n?Ao:un;if(s.call(i,t))return l(e.get(t));if(s.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Nn(e,t=!1){const n=this.__v_raw,o=he(n),i=he(e);return t||(st(e,i)&&Fe(o,"has",e),Fe(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Fn(e,t=!1){return e=e.__v_raw,!t&&Fe(he(e),"iterate",Rt),Reflect.get(e,"size",e)}function Zi(e){e=he(e);const t=he(this);return Dn(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function Xi(e,t){t=he(t);const n=he(this),{has:o,get:i}=Dn(n);let r=o.call(n,e);r||(e=he(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?st(t,s)&>(n,"set",e,t):gt(n,"add",e,t),this}function Gi(e){const t=he(this),{has:n,get:o}=Dn(t);let i=n.call(t,e);i||(e=he(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&>(t,"delete",e,void 0),r}function Ji(){const e=he(this),t=e.size!==0,n=e.clear();return t&>(e,"clear",void 0,void 0),n}function Hn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=he(s),a=t?Oo:e?Ao:un;return!e&&Fe(l,"iterate",Rt),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function Vn(e,t,n){return function(...o){const i=this.__v_raw,r=he(i),s=Gt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Oo:t?Ao:un;return!t&&Fe(r,"iterate",a?Po:Rt),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:l?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function St(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Zl(){const e={get(r){return Rn(this,r)},get size(){return Fn(this)},has:Nn,add:Zi,set:Xi,delete:Gi,clear:Ji,forEach:Hn(!1,!1)},t={get(r){return Rn(this,r,!1,!0)},get size(){return Fn(this)},has:Nn,add:Zi,set:Xi,delete:Gi,clear:Ji,forEach:Hn(!1,!0)},n={get(r){return Rn(this,r,!0)},get size(){return Fn(this,!0)},has(r){return Nn.call(this,r,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:Hn(!0,!1)},o={get(r){return Rn(this,r,!0,!0)},get size(){return Fn(this,!0)},has(r){return Nn.call(this,r,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Vn(r,!1,!1),n[r]=Vn(r,!0,!1),t[r]=Vn(r,!1,!0),o[r]=Vn(r,!0,!0)}),[e,n,t,o]}const[Xl,Gl,Jl,Ql]=Zl();function zo(e,t){const n=t?e?Ql:Jl:e?Gl:Xl;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(me(n,i)&&i in o?n:o,i,r)}const ea={get:zo(!1,!1)},ta={get:zo(!1,!0)},na={get:zo(!0,!1)},Qi=new WeakMap,er=new WeakMap,tr=new WeakMap,oa=new WeakMap;function ia(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ra(e){return e.__v_skip||!Object.isExtensible(e)?0:ia(Ml(e))}function Wn(e){return en(e)?e:Lo(e,!1,Ul,ea,Qi)}function sa(e){return Lo(e,!1,Yl,ta,er)}function nr(e){return Lo(e,!0,ql,na,tr)}function Lo(e,t,n,o,i){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=ra(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function Qt(e){return en(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Kn(e){return!!(e&&e.__v_isShallow)}function or(e){return Qt(e)||en(e)}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function ir(e){return jn(e,"__v_skip",!0),e}const un=e=>_e(e)?Wn(e):e,Ao=e=>_e(e)?nr(e):e;class rr{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Co(()=>t(this._value),()=>dn(this,1),()=>this.dep&&Vi(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=he(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&dn(t,2),Bo(t),t.effect._dirtyLevel>=1&&dn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function la(e,t,n=!1){let o,i;const r=ae(e);return r?(o=e,i=Ke):(o=e.get,i=e.set),new rr(o,i,r||!i,n)}function Bo(e){_t&&Dt&&(e=he(e),Fi(Dt,e.dep||(e.dep=Wi(()=>e.dep=void 0,e instanceof rr?e:void 0))))}function dn(e,t=2,n){e=he(e);const o=e.dep;o&&Hi(o,t)}function Me(e){return!!(e&&e.__v_isRef===!0)}function J(e){return aa(e,!1)}function aa(e,t){return Me(e)?e:new ca(e,t)}class ca{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:he(t),this._value=n?t:un(t)}get value(){return Bo(this),this._value}set value(t){const n=this.__v_isShallow||Kn(t)||en(t);t=n?t:he(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function Z(e){return Me(e)?e.value:e}const ua={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Me(i)&&!Me(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function sr(e){return Qt(e)?e:new Proxy(e,ua)}class da{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Bo(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function lr(e){return new da(e)}/**
|
|
10
10
|
* @vue/runtime-core v3.4.15
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const
|
|
13
|
+
**/const fn=[];function uh(e,...t){wt();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=fa();if(o)mt(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${es(n,r.type)}>`).join(`
|
|
14
14
|
`),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
|
|
15
|
-
`,...
|
|
16
|
-
`],...pa(n))}),t}function pa({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${es(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...ha(e.props),r]:[i+r]}function ha(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ar(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ar(e,t,n){return Ie(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Me(t)?(t=ar(e,he(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ae(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=he(t),n?t:[`${e}=`,t])}function mt(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){Yn(r,t,n)}return i}function Qe(e,t,n,o){if(ae(e)){const r=mt(e,t,n,o);return r&&$i(r)&&r.catch(s=>{Yn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Qe(e[r],t,n,o));return i}function Yn(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){mt(a,null,10,[e,s,l]);return}}ga(e,n,i,o)}function ga(e,t,n,o=!0){console.error(e)}let fn=!1,jo=!1;const Ae=[];let lt=0;const tn=[];let kt=null,Nt=0;const cr=Promise.resolve();let Do=null;function vt(e){const t=Do||cr;return e?t.then(this?e.bind(this):e):t}function ma(e){let t=lt+1,n=Ae.length;for(;t<n;){const o=t+n>>>1,i=Ae[o],r=pn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Ro(e){(!Ae.length||!Ae.includes(e,fn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Ae.push(e):Ae.splice(ma(e.id),0,e),ur())}function ur(){!fn&&!jo&&(jo=!0,Do=cr.then(pr))}function va(e){const t=Ae.indexOf(e);t>lt&&Ae.splice(t,1)}function ba(e){oe(e)?tn.push(...e):(!kt||!kt.includes(e,e.allowRecurse?Nt+1:Nt))&&tn.push(e),ur()}function dr(e,t,n=fn?lt+1:0){for(;n<Ae.length;n++){const o=Ae[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Ae.splice(n,1),n--,o()}}}function fr(e){if(tn.length){const t=[...new Set(tn)].sort((n,o)=>pn(n)-pn(o));if(tn.length=0,kt){kt.push(...t);return}for(kt=t,Nt=0;Nt<kt.length;Nt++)kt[Nt]();kt=null,Nt=0}}const pn=e=>e.id==null?1/0:e.id,ya=(e,t)=>{const n=pn(e)-pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function pr(e){jo=!1,fn=!0,Ae.sort(ya);const t=Ke;try{for(lt=0;lt<Ae.length;lt++){const n=Ae[lt];n&&n.active!==!1&&mt(n,null,14)}}finally{lt=0,Ae.length=0,fr(),fn=!1,Do=null,(Ae.length||tn.length)&&pr()}}function _a(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||fe;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:p}=o[u]||fe;p&&(i=n.map(S=>Ie(S)?S.trim():S)),d&&(i=n.map(xo))}let l,a=o[l=wo(t)]||o[l=wo(Ne(t))];!a&&r&&(a=o[l=wo(Ue(t))]),a&&Qe(a,e,6,i);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,i)}}function hr(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!ae(e)){const a=c=>{const u=hr(c,t,!0);u&&(l=!0,Ce(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(_e(e)&&o.set(e,null),null):(oe(r)?r.forEach(a=>s[a]=null):Ce(s,r),_e(e)&&o.set(e,s),s)}function Zn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,Ue(t))||me(e,t))}let Pe=null,gr=null;function Xn(e){const t=Pe;return Pe=e,gr=e&&e.type.__scopeId||null,t}function le(e,t=Pe,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Kr(-1);const r=Xn(t);let s;try{s=e(...i)}finally{Xn(r),o._d&&Kr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function dh(){}function No(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:p,setupState:S,ctx:E,inheritAttrs:g}=e;let k,T;const X=Xn(e);try{if(n.shapeFlag&4){const V=i||o,C=V;k=ct(u.call(C,V,d,r,S,p,E)),T=a}else{const V=t;k=ct(V.length>1?V(r,{attrs:a,slots:l,emit:c}):V(r,null)),T=t.props?a:wa(a)}}catch(V){bn.length=0,Yn(V,e,1),k=ee(tt)}let B=k;if(T&&g!==!1){const V=Object.keys(T),{shapeFlag:C}=B;V.length&&C&7&&(s&&V.some(bo)&&(T=xa(T,s)),B=Tt(B,T))}return n.dirs&&(B=Tt(B),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&(B.transition=n.transition),k=B,Xn(X),k}const wa=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},xa=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Sa(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?mr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(s[p]!==o[p]&&!Zn(c,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?mr(o,s,c):!0:!!s;return!1}function mr(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]&&!Zn(n,r))return!0}return!1}function ka({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 vr="components",br=Symbol.for("v-ndc");function yr(e){return Ie(e)?Ca(vr,e,!1)||e:e||br}function Ca(e,t,n=!0,o=!1){const i=Pe||ze;if(i){const r=i.type;if(e===vr){const l=Qr(r,!1);if(l&&(l===t||l===Ne(t)||l===jn(Ne(t))))return r}const s=_r(i[e]||r[e],t)||_r(i.appContext[e],t);return!s&&o?r:s}}function _r(e,t){return e&&(e[t]||e[Ne(t)]||e[jn(Ne(t))])}const Ia=e=>e.__isSuspense;function Ta(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):ba(e)}const Ea=Symbol.for("v-scx"),$a=()=>It(Ea);function Ma(e,t){return Jn(e,null,t)}function Pa(e,t){return Jn(e,null,{flush:"sync"})}const Gn={};function ve(e,t,n){return Jn(e,t,n)}function Jn(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=fe){if(t&&r){const I=t;t=(...W)=>{I(...W),C()}}const a=ze,c=I=>o===!0?I:Ft(I,o===!1?1:void 0);let u,d=!1,p=!1;if(Me(e)?(u=()=>e.value,d=qn(e)):Qt(e)?(u=()=>c(e),d=!0):oe(e)?(p=!0,d=e.some(I=>Qt(I)||qn(I)),u=()=>e.map(I=>{if(Me(I))return I.value;if(Qt(I))return c(I);if(ae(I))return mt(I,a,2)})):ae(e)?t?u=()=>mt(e,a,2):u=()=>(S&&S(),Qe(e,a,3,[E])):u=Ke,t&&o){const I=u;u=()=>Ft(I())}let S,E=I=>{S=B.onStop=()=>{mt(I,a,4),S=B.onStop=void 0}},g;if(po)if(E=Ke,t?n&&Qe(t,a,3,[u(),p?[]:void 0,E]):u(),i==="sync"){const I=$a();g=I.__watcherHandles||(I.__watcherHandles=[])}else return Ke;let k=p?new Array(e.length).fill(Gn):Gn;const T=()=>{if(!(!B.active||!B.dirty))if(t){const I=B.run();(o||d||(p?I.some((W,b)=>st(W,k[b])):st(I,k)))&&(S&&S(),Qe(t,a,3,[I,k===Gn?void 0:p&&k[0]===Gn?[]:k,E]),k=I)}else B.run()};T.allowRecurse=!!t;let X;i==="sync"?X=T:i==="post"?X=()=>Ve(T,a&&a.suspense):(T.pre=!0,a&&(T.id=a.uid),X=()=>Ro(T));const B=new Co(u,Ke,X),V=Bi(),C=()=>{B.stop(),V&&yo(V.effects,B)};return t?n?T():k=B.run():i==="post"?Ve(B.run.bind(B),a&&a.suspense):B.run(),g&&g.push(C),C}function Oa(e,t,n){const o=this.proxy,i=Ie(e)?e.includes(".")?wr(o,e):()=>o[e]:e.bind(o,o);let r;ae(t)?r=t:(r=t.handler,n=t);const s=wn(this),l=Jn(i,r.bind(o),n);return s(),l}function wr(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 Ft(e,t,n=0,o){if(!_e(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Me(e))Ft(e.value,t,n,o);else if(oe(e))for(let i=0;i<e.length;i++)Ft(e[i],t,n,o);else if(Ei(e)||Gt(e))e.forEach(i=>{Ft(i,t,n,o)});else if(Pi(e))for(const i in e)Ft(e[i],t,n,o);return e}function at(e,t){if(Pe===null)return e;const n=ho(Pe)||Pe.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=fe]=t[i];r&&(ae(r)&&(r={mounted:r,updated:r}),r.deep&&Ft(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Ht(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];r&&(l.oldValue=r[s].value);let a=l.dir[o];a&&(wt(),Qe(a,n,8,[e.el,l,e,t]),xt())}}const Ct=Symbol("_leaveCb"),Qn=Symbol("_enterCb");function za(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return He(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],xr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},La={name:"BaseTransition",props:xr,setup(e,{slots:t}){const n=uo(),o=za();let i;return()=>{const r=t.default&&Cr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const g of r)if(g.type!==tt){s=g;break}}const l=he(e),{mode:a}=l;if(o.isLeaving)return Ho(s);const c=kr(s);if(!c)return Ho(s);const u=Fo(c,l,o,n);Vo(c,u);const d=n.subTree,p=d&&kr(d);let S=!1;const{getTransitionKey:E}=c.type;if(E){const g=E();i===void 0?i=g:g!==i&&(i=g,S=!0)}if(p&&p.type!==tt&&(!Kt(c,p)||S)){const g=Fo(p,l,o,n);if(Vo(p,g),a==="out-in")return o.isLeaving=!0,g.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ho(s);a==="in-out"&&c.type!==tt&&(g.delayLeave=(k,T,X)=>{const B=Sr(o,p);B[String(p.key)]=p,k[Ct]=()=>{T(),k[Ct]=void 0,delete u.delayedLeave},u.delayedLeave=X})}return s}}};function Sr(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 Fo(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:S,onLeaveCancelled:E,onBeforeAppear:g,onAppear:k,onAfterAppear:T,onAppearCancelled:X}=t,B=String(e.key),V=Sr(n,e),C=(b,M)=>{b&&Qe(b,o,9,M)},I=(b,M)=>{const j=M[1];C(b,M),oe(b)?b.every(Y=>Y.length<=1)&&j():b.length<=1&&j()},W={mode:r,persisted:s,beforeEnter(b){let M=l;if(!n.isMounted)if(i)M=g||l;else return;b[Ct]&&b[Ct](!0);const j=V[B];j&&Kt(e,j)&&j.el[Ct]&&j.el[Ct](),C(M,[b])},enter(b){let M=a,j=c,Y=u;if(!n.isMounted)if(i)M=k||a,j=T||c,Y=X||u;else return;let m=!1;const w=b[Qn]=H=>{m||(m=!0,H?C(Y,[b]):C(j,[b]),W.delayedLeave&&W.delayedLeave(),b[Qn]=void 0)};M?I(M,[b,w]):w()},leave(b,M){const j=String(e.key);if(b[Qn]&&b[Qn](!0),n.isUnmounting)return M();C(d,[b]);let Y=!1;const m=b[Ct]=w=>{Y||(Y=!0,M(),w?C(E,[b]):C(S,[b]),b[Ct]=void 0,V[j]===e&&delete V[j])};V[j]=e,p?I(p,[b,m]):m()},clone(b){return Fo(b,t,n,o)}};return W}function Ho(e){if(eo(e))return e=Tt(e),e.children=null,e}function kr(e){return eo(e)?e.children?e.children[0]:void 0:e}function Vo(e,t){e.shapeFlag&6&&e.component?Vo(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 Cr(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===ke?(s.patchFlag&128&&i++,o=o.concat(Cr(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?Tt(s,{key:l}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function we(e,t){return ae(e)?(()=>Ce({name:e.name},t,{setup:e}))():e}const hn=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function Aa(e,t){Ir(e,"a",t)}function Ba(e,t){Ir(e,"da",t)}function Ir(e,t,n=ze){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(to(t,o,n),n){let i=n.parent;for(;i&&i.parent;)eo(i.parent.vnode)&&ja(o,t,n,i),i=i.parent}}function ja(e,t,n,o){const i=to(t,e,o,!0);Vt(()=>{yo(o[t],i)},n)}function to(e,t,n=ze,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;wt();const l=wn(n),a=Qe(t,n,e,s);return l(),xt(),a});return o?i.unshift(r):i.push(r),r}}const bt=e=>(t,n=ze)=>(!po||e==="sp")&&to(e,(...o)=>t(...o),n),Da=bt("bm"),He=bt("m"),Ra=bt("bu"),Tr=bt("u"),Wo=bt("bum"),Vt=bt("um"),Na=bt("sp"),Fa=bt("rtg"),Ha=bt("rtc");function Va(e,t=ze){to("ec",e,t)}function nn(e,t,n,o){let i;const r=n&&n[o];if(oe(e)||Ie(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(_e(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function Ko(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 xe(e,t,n={},o,i){if(Pe.isCE||Pe.parent&&hn(Pe.parent)&&Pe.parent.isCE)return t!=="default"&&(n.name=t),ee("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),z();const s=r&&Er(r(n)),l=be(ke,{key:n.key||s&&s.key||`_${t}`},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 Er(e){return e.some(t=>lo(t)?!(t.type===tt||t.type===ke&&!Er(t.children)):!0)?e:null}const Uo=e=>e?Zr(e)?ho(e)||e.proxy:Uo(e.parent):null,gn=Ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Uo(e.parent),$root:e=>Uo(e.root),$emit:e=>e.emit,$options:e=>Zo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ro(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>Oa.bind(e)}),qo=(e,t)=>e!==fe&&!e.__isScriptSetup&&me(e,t),Wa={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const S=s[t];if(S!==void 0)switch(S){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(qo(o,t))return s[t]=1,o[t];if(i!==fe&&me(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&me(c,t))return s[t]=3,r[t];if(n!==fe&&me(n,t))return s[t]=4,n[t];Yo&&(s[t]=0)}}const u=gn[t];let d,p;if(u)return t==="$attrs"&&Fe(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==fe&&me(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,me(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return qo(i,t)?(i[t]=n,!0):o!==fe&&me(o,t)?(o[t]=n,!0):me(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}},s){let l;return!!n[s]||e!==fe&&me(e,s)||qo(t,s)||(l=r[0])&&me(l,s)||me(o,s)||me(gn,s)||me(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function no(e){return oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function on(e,t){return!e||!t?e||t:oe(e)&&oe(t)?e.concat(t):Ce({},no(e),no(t))}let Yo=!0;function Ka(e){const t=Zo(e),n=e.proxy,o=e.ctx;Yo=!1,t.beforeCreate&&$r(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:S,updated:E,activated:g,deactivated:k,beforeDestroy:T,beforeUnmount:X,destroyed:B,unmounted:V,render:C,renderTracked:I,renderTriggered:W,errorCaptured:b,serverPrefetch:M,expose:j,inheritAttrs:Y,components:m,directives:w,filters:H}=t;if(c&&Ua(c,o,null),s)for(const K in s){const y=s[K];ae(y)&&(o[K]=y.bind(n))}if(i){const K=i.call(n,n);_e(K)&&(e.data=Un(K))}if(Yo=!0,r)for(const K in r){const y=r[K],Q=ae(y)?y.bind(n,n):ae(y.get)?y.get.bind(n,n):Ke,de=!ae(y)&&ae(y.set)?y.set.bind(n):Ke,ce=ie({get:Q,set:de});Object.defineProperty(o,K,{enumerable:!0,configurable:!0,get:()=>ce.value,set:ge=>ce.value=ge})}if(l)for(const K in l)Mr(l[K],o,n,K);if(a){const K=ae(a)?a.call(n):a;Reflect.ownKeys(K).forEach(y=>{vn(y,K[y])})}u&&$r(u,e,"c");function L(K,y){oe(y)?y.forEach(Q=>K(Q.bind(n))):y&&K(y.bind(n))}if(L(Da,d),L(He,p),L(Ra,S),L(Tr,E),L(Aa,g),L(Ba,k),L(Va,b),L(Ha,I),L(Fa,W),L(Wo,X),L(Vt,V),L(Na,M),oe(j))if(j.length){const K=e.exposed||(e.exposed={});j.forEach(y=>{Object.defineProperty(K,y,{get:()=>n[y],set:Q=>n[y]=Q})})}else e.exposed||(e.exposed={});C&&e.render===Ke&&(e.render=C),Y!=null&&(e.inheritAttrs=Y),m&&(e.components=m),w&&(e.directives=w)}function Ua(e,t,n=Ke){oe(e)&&(e=Xo(e));for(const o in e){const i=e[o];let r;_e(i)?"default"in i?r=It(i.from||o,i.default,!0):r=It(i.from||o):r=It(i),Me(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function $r(e,t,n){Qe(oe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Mr(e,t,n,o){const i=o.includes(".")?wr(n,o):()=>n[o];if(Ie(e)){const r=t[e];ae(r)&&ve(i,r)}else if(ae(e))ve(i,e.bind(n));else if(_e(e))if(oe(e))e.forEach(r=>Mr(r,t,n,o));else{const r=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(r)&&ve(i,r,e)}}function Zo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!o?a=t:(a={},i.length&&i.forEach(c=>oo(a,c,s,!0)),oo(a,t,s)),_e(t)&&r.set(t,a),a}function oo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&oo(e,r,n,!0),i&&i.forEach(s=>oo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=qa[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const qa={data:Pr,props:Or,emits:Or,methods:mn,computed:mn,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:mn,directives:mn,watch:Za,provide:Pr,inject:Ya};function Pr(e,t){return t?e?function(){return Ce(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function Ya(e,t){return mn(Xo(e),Xo(t))}function Xo(e){if(oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Re(e,t){return e?[...new Set([].concat(e,t))]:t}function mn(e,t){return e?Ce(Object.create(null),e,t):t}function Or(e,t){return e?oe(e)&&oe(t)?[...new Set([...e,...t])]:Ce(Object.create(null),no(e),no(t??{})):t}function Za(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const o in t)n[o]=Re(e[o],t[o]);return n}function zr(){return{app:null,config:{isNativeTag:Tl,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 Xa=0;function Ga(e,t){return function(o,i=null){ae(o)||(o=Ce({},o)),i!=null&&!_e(i)&&(i=null);const r=zr(),s=new WeakSet;let l=!1;const a=r.app={_uid:Xa++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:xc,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&ae(c.install)?(s.add(c),c.install(a,...u)):ae(c)&&(s.add(c),c(a,...u))),a},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),a},component(c,u){return u?(r.components[c]=u,a):r.components[c]},directive(c,u){return u?(r.directives[c]=u,a):r.directives[c]},mount(c,u,d){if(!l){const p=ee(o,i);return p.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(p,c):e(p,c,d),l=!0,a._container=c,c.__vue_app__=a,ho(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){io=a;try{return c()}finally{io=null}}};return a}}let io=null;function vn(e,t){if(ze){let n=ze.provides;const o=ze.parent&&ze.parent.provides;o===n&&(n=ze.provides=Object.create(o)),n[e]=t}}function It(e,t,n=!1){const o=ze||Pe;if(o||io){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:io._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ae(t)?t.call(o&&o.proxy):t}}function Ja(e,t,n,o=!1){const i={},r={};Rn(r,ao,1),e.propsDefaults=Object.create(null),Lr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:ra(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Qa(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=he(i),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(Zn(e.emitsOptions,p))continue;const S=t[p];if(a)if(me(r,p))S!==r[p]&&(r[p]=S,c=!0);else{const E=Ne(p);i[E]=Go(a,l,E,S,e,!1)}else S!==r[p]&&(r[p]=S,c=!0)}}}else{Lr(e,t,i,r)&&(c=!0);let u;for(const d in l)(!t||!me(t,d)&&((u=Ue(d))===d||!me(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=Go(a,l,d,void 0,e,!0)):delete i[d]);if(r!==l)for(const d in r)(!t||!me(t,d))&&(delete r[d],c=!0)}c&>(e,"set","$attrs")}function Lr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(An(a))continue;const c=t[a];let u;i&&me(i,u=Ne(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Zn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=he(n),c=l||fe;for(let u=0;u<r.length;u++){const d=r[u];n[d]=Go(i,a,d,c[d],e,!me(c,d))}}return s}function Go(e,t,n,o,i,r){const s=e[n];if(s!=null){const l=me(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ae(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=wn(i);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(r&&!l?o=!1:s[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function Ar(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},l=[];let a=!1;if(!ae(e)){const u=d=>{a=!0;const[p,S]=Ar(d,t,!0);Ce(s,p),S&&l.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return _e(e)&&o.set(e,Je),Je;if(oe(r))for(let u=0;u<r.length;u++){const d=Ne(r[u]);Br(d)&&(s[d]=fe)}else if(r)for(const u in r){const d=Ne(u);if(Br(d)){const p=r[u],S=s[d]=oe(p)||ae(p)?{type:p}:Ce({},p);if(S){const E=Rr(Boolean,S.type),g=Rr(String,S.type);S[0]=E>-1,S[1]=g<0||E<g,(E>-1||me(S,"default"))&&l.push(d)}}}const c=[s,l];return _e(e)&&o.set(e,c),c}function Br(e){return e[0]!=="$"}function jr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Dr(e,t){return jr(e)===jr(t)}function Rr(e,t){return oe(t)?t.findIndex(n=>Dr(n,e)):ae(t)&&Dr(t,e)?0:-1}const Nr=e=>e[0]==="_"||e==="$stable",Jo=e=>oe(e)?e.map(ct):[ct(e)],ec=(e,t,n)=>{if(t._n)return t;const o=le((...i)=>Jo(t(...i)),n);return o._c=!1,o},Fr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Nr(i))continue;const r=e[i];if(ae(r))t[i]=ec(i,r,o);else if(r!=null){const s=Jo(r);t[i]=()=>s}}},Hr=(e,t)=>{const n=Jo(t);e.slots.default=()=>n},tc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=he(t),Rn(t,"_",n)):Fr(t,e.slots={})}else e.slots={},t&&Hr(e,t);Rn(e.slots,ao,1)},nc=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=fe;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(Ce(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Fr(t,i)),s=t}else t&&(Hr(e,t),s={default:1});if(r)for(const l in i)!Nr(l)&&s[l]==null&&delete i[l]};function Qo(e,t,n,o,i=!1){if(oe(e)){e.forEach((p,S)=>Qo(p,t&&(oe(t)?t[S]:t),n,o,i));return}if(hn(o)&&!i)return;const r=o.shapeFlag&4?ho(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===fe?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(Ie(c)?(u[c]=null,me(d,c)&&(d[c]=null)):Me(c)&&(c.value=null)),ae(a))mt(a,l,12,[s,u]);else{const p=Ie(a),S=Me(a),E=e.f;if(p||S){const g=()=>{if(E){const k=p?me(d,a)?d[a]:u[a]:a.value;i?oe(k)&&yo(k,r):oe(k)?k.includes(r)||k.push(r):p?(u[a]=[r],me(d,a)&&(d[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else p?(u[a]=s,me(d,a)&&(d[a]=s)):S&&(a.value=s,e.k&&(u[e.k]=s))};i||E?g():(g.id=-1,Ve(g,n))}}}const Ve=Ta;function oc(e){return ic(e)}function ic(e,t){const n=zi();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:S=Ke,insertStaticContent:E}=e,g=(f,h,x,P=null,O=null,R=null,F=void 0,D=null,N=!!h.dynamicChildren)=>{if(f===h)return;f&&!Kt(f,h)&&(P=yt(f),ge(f,O,R,!0),f=null),h.patchFlag===-2&&(N=!1,h.dynamicChildren=null);const{type:$,ref:U,shapeFlag:ne}=h;switch($){case ro:k(f,h,x,P);break;case tt:T(f,h,x,P);break;case so:f==null&&X(h,x,P,F);break;case ke:m(f,h,x,P,O,R,F,D,N);break;default:ne&1?C(f,h,x,P,O,R,F,D,N):ne&6?w(f,h,x,P,O,R,F,D,N):(ne&64||ne&128)&&$.process(f,h,x,P,O,R,F,D,N,Oe)}U!=null&&O&&Qo(U,f&&f.ref,R,h||f,!h)},k=(f,h,x,P)=>{if(f==null)o(h.el=l(h.children),x,P);else{const O=h.el=f.el;h.children!==f.children&&c(O,h.children)}},T=(f,h,x,P)=>{f==null?o(h.el=a(h.children||""),x,P):h.el=f.el},X=(f,h,x,P)=>{[f.el,f.anchor]=E(f.children,h,x,P,f.el,f.anchor)},B=({el:f,anchor:h},x,P)=>{let O;for(;f&&f!==h;)O=p(f),o(f,x,P),f=O;o(h,x,P)},V=({el:f,anchor:h})=>{let x;for(;f&&f!==h;)x=p(f),i(f),f=x;i(h)},C=(f,h,x,P,O,R,F,D,N)=>{h.type==="svg"?F="svg":h.type==="math"&&(F="mathml"),f==null?I(h,x,P,O,R,F,D,N):M(f,h,O,R,F,D,N)},I=(f,h,x,P,O,R,F,D)=>{let N,$;const{props:U,shapeFlag:ne,transition:te,dirs:se}=f;if(N=f.el=s(f.type,R,U&&U.is,U),ne&8?u(N,f.children):ne&16&&b(f.children,N,null,P,O,ei(f,R),F,D),se&&Ht(f,null,P,"created"),W(N,f,f.scopeId,F,P),U){for(const v in U)v!=="value"&&!An(v)&&r(N,v,null,U[v],R,f.children,P,O,je);"value"in U&&r(N,"value",null,U.value,R),($=U.onVnodeBeforeMount)&&ut($,P,f)}se&&Ht(f,null,P,"beforeMount");const ue=rc(O,te);ue&&te.beforeEnter(N),o(N,h,x),(($=U&&U.onVnodeMounted)||ue||se)&&Ve(()=>{$&&ut($,P,f),ue&&te.enter(N),se&&Ht(f,null,P,"mounted")},O)},W=(f,h,x,P,O)=>{if(x&&S(f,x),P)for(let R=0;R<P.length;R++)S(f,P[R]);if(O){let R=O.subTree;if(h===R){const F=O.vnode;W(f,F,F.scopeId,F.slotScopeIds,O.parent)}}},b=(f,h,x,P,O,R,F,D,N=0)=>{for(let $=N;$<f.length;$++){const U=f[$]=D?$t(f[$]):ct(f[$]);g(null,U,h,x,P,O,R,F,D)}},M=(f,h,x,P,O,R,F)=>{const D=h.el=f.el;let{patchFlag:N,dynamicChildren:$,dirs:U}=h;N|=f.patchFlag&16;const ne=f.props||fe,te=h.props||fe;let se;if(x&&Wt(x,!1),(se=te.onVnodeBeforeUpdate)&&ut(se,x,h,f),U&&Ht(h,f,x,"beforeUpdate"),x&&Wt(x,!0),$?j(f.dynamicChildren,$,D,x,P,ei(h,O),R):F||y(f,h,D,null,x,P,ei(h,O),R,!1),N>0){if(N&16)Y(D,h,ne,te,x,P,O);else if(N&2&&ne.class!==te.class&&r(D,"class",null,te.class,O),N&4&&r(D,"style",ne.style,te.style,O),N&8){const ue=h.dynamicProps;for(let v=0;v<ue.length;v++){const A=ue[v],re=ne[A],pe=te[A];(pe!==re||A==="value")&&r(D,A,re,pe,O,f.children,x,P,je)}}N&1&&f.children!==h.children&&u(D,h.children)}else!F&&$==null&&Y(D,h,ne,te,x,P,O);((se=te.onVnodeUpdated)||U)&&Ve(()=>{se&&ut(se,x,h,f),U&&Ht(h,f,x,"updated")},P)},j=(f,h,x,P,O,R,F)=>{for(let D=0;D<h.length;D++){const N=f[D],$=h[D],U=N.el&&(N.type===ke||!Kt(N,$)||N.shapeFlag&70)?d(N.el):x;g(N,$,U,null,P,O,R,F,!0)}},Y=(f,h,x,P,O,R,F)=>{if(x!==P){if(x!==fe)for(const D in x)!An(D)&&!(D in P)&&r(f,D,x[D],null,F,h.children,O,R,je);for(const D in P){if(An(D))continue;const N=P[D],$=x[D];N!==$&&D!=="value"&&r(f,D,$,N,F,h.children,O,R,je)}"value"in P&&r(f,"value",x.value,P.value,F)}},m=(f,h,x,P,O,R,F,D,N)=>{const $=h.el=f?f.el:l(""),U=h.anchor=f?f.anchor:l("");let{patchFlag:ne,dynamicChildren:te,slotScopeIds:se}=h;se&&(D=D?D.concat(se):se),f==null?(o($,x,P),o(U,x,P),b(h.children||[],x,U,O,R,F,D,N)):ne>0&&ne&64&&te&&f.dynamicChildren?(j(f.dynamicChildren,te,x,O,R,F,D),(h.key!=null||O&&h===O.subTree)&&Vr(f,h,!0)):y(f,h,x,U,O,R,F,D,N)},w=(f,h,x,P,O,R,F,D,N)=>{h.slotScopeIds=D,f==null?h.shapeFlag&512?O.ctx.activate(h,x,P,F,N):H(h,x,P,O,R,F,N):_(f,h,N)},H=(f,h,x,P,O,R,F)=>{const D=f.component=hc(f,P,O);if(eo(f)&&(D.ctx.renderer=Oe),gc(D),D.asyncDep){if(O&&O.registerDep(D,L),!f.el){const N=D.subTree=ee(tt);T(null,N,h,x)}}else L(D,f,h,x,O,R,F)},_=(f,h,x)=>{const P=h.component=f.component;if(Sa(f,h,x))if(P.asyncDep&&!P.asyncResolved){K(P,h,x);return}else P.next=h,va(P.update),P.effect.dirty=!0,P.update();else h.el=f.el,P.vnode=h},L=(f,h,x,P,O,R,F)=>{const D=()=>{if(f.isMounted){let{next:U,bu:ne,u:te,parent:se,vnode:ue}=f;{const pt=Wr(f);if(pt){U&&(U.el=ue.el,K(f,U,F)),pt.asyncDep.then(()=>{f.isUnmounted||D()});return}}let v=U,A;Wt(f,!1),U?(U.el=ue.el,K(f,U,F)):U=ue,ne&&Dn(ne),(A=U.props&&U.props.onVnodeBeforeUpdate)&&ut(A,se,U,ue),Wt(f,!0);const re=No(f),pe=f.subTree;f.subTree=re,g(pe,re,d(pe.el),yt(pe),f,O,R),U.el=re.el,v===null&&ka(f,re.el),te&&Ve(te,O),(A=U.props&&U.props.onVnodeUpdated)&&Ve(()=>ut(A,se,U,ue),O)}else{let U;const{el:ne,props:te}=h,{bm:se,m:ue,parent:v}=f,A=hn(h);if(Wt(f,!1),se&&Dn(se),!A&&(U=te&&te.onVnodeBeforeMount)&&ut(U,v,h),Wt(f,!0),ne&&rt){const re=()=>{f.subTree=No(f),rt(ne,f.subTree,f,O,null)};A?h.type.__asyncLoader().then(()=>!f.isUnmounted&&re()):re()}else{const re=f.subTree=No(f);g(null,re,x,P,f,O,R),h.el=re.el}if(ue&&Ve(ue,O),!A&&(U=te&&te.onVnodeMounted)){const re=h;Ve(()=>ut(U,v,re),O)}(h.shapeFlag&256||v&&hn(v.vnode)&&v.vnode.shapeFlag&256)&&f.a&&Ve(f.a,O),f.isMounted=!0,h=x=P=null}},N=f.effect=new Co(D,Ke,()=>Ro($),f.scope),$=f.update=()=>{N.dirty&&N.run()};$.id=f.uid,Wt(f,!0),$()},K=(f,h,x)=>{h.component=f;const P=f.vnode.props;f.vnode=h,f.next=null,Qa(f,h.props,P,x),nc(f,h.children,x),wt(),dr(f),xt()},y=(f,h,x,P,O,R,F,D,N=!1)=>{const $=f&&f.children,U=f?f.shapeFlag:0,ne=h.children,{patchFlag:te,shapeFlag:se}=h;if(te>0){if(te&128){de($,ne,x,P,O,R,F,D,N);return}else if(te&256){Q($,ne,x,P,O,R,F,D,N);return}}se&8?(U&16&&je($,O,R),ne!==$&&u(x,ne)):U&16?se&16?de($,ne,x,P,O,R,F,D,N):je($,O,R,!0):(U&8&&u(x,""),se&16&&b(ne,x,P,O,R,F,D,N))},Q=(f,h,x,P,O,R,F,D,N)=>{f=f||Je,h=h||Je;const $=f.length,U=h.length,ne=Math.min($,U);let te;for(te=0;te<ne;te++){const se=h[te]=N?$t(h[te]):ct(h[te]);g(f[te],se,x,null,O,R,F,D,N)}$>U?je(f,O,R,!0,!1,ne):b(h,x,P,O,R,F,D,N,ne)},de=(f,h,x,P,O,R,F,D,N)=>{let $=0;const U=h.length;let ne=f.length-1,te=U-1;for(;$<=ne&&$<=te;){const se=f[$],ue=h[$]=N?$t(h[$]):ct(h[$]);if(Kt(se,ue))g(se,ue,x,null,O,R,F,D,N);else break;$++}for(;$<=ne&&$<=te;){const se=f[ne],ue=h[te]=N?$t(h[te]):ct(h[te]);if(Kt(se,ue))g(se,ue,x,null,O,R,F,D,N);else break;ne--,te--}if($>ne){if($<=te){const se=te+1,ue=se<U?h[se].el:P;for(;$<=te;)g(null,h[$]=N?$t(h[$]):ct(h[$]),x,ue,O,R,F,D,N),$++}}else if($>te)for(;$<=ne;)ge(f[$],O,R,!0),$++;else{const se=$,ue=$,v=new Map;for($=ue;$<=te;$++){const Ge=h[$]=N?$t(h[$]):ct(h[$]);Ge.key!=null&&v.set(Ge.key,$)}let A,re=0;const pe=te-ue+1;let pt=!1,Pn=0;const On=new Array(pe);for($=0;$<pe;$++)On[$]=0;for($=se;$<=ne;$++){const Ge=f[$];if(re>=pe){ge(Ge,O,R,!0);continue}let ht;if(Ge.key!=null)ht=v.get(Ge.key);else for(A=ue;A<=te;A++)if(On[A-ue]===0&&Kt(Ge,h[A])){ht=A;break}ht===void 0?ge(Ge,O,R,!0):(On[ht-ue]=$+1,ht>=Pn?Pn=ht:pt=!0,g(Ge,h[ht],x,null,O,R,F,D,N),re++)}const Cl=pt?sc(On):Je;for(A=Cl.length-1,$=pe-1;$>=0;$--){const Ge=ue+$,ht=h[Ge],Il=Ge+1<U?h[Ge+1].el:P;On[$]===0?g(null,ht,x,Il,O,R,F,D,N):pt&&(A<0||$!==Cl[A]?ce(ht,x,Il,2):A--)}}},ce=(f,h,x,P,O=null)=>{const{el:R,type:F,transition:D,children:N,shapeFlag:$}=f;if($&6){ce(f.component.subTree,h,x,P);return}if($&128){f.suspense.move(h,x,P);return}if($&64){F.move(f,h,x,Oe);return}if(F===ke){o(R,h,x);for(let ne=0;ne<N.length;ne++)ce(N[ne],h,x,P);o(f.anchor,h,x);return}if(F===so){B(f,h,x);return}if(P!==2&&$&1&&D)if(P===0)D.beforeEnter(R),o(R,h,x),Ve(()=>D.enter(R),O);else{const{leave:ne,delayLeave:te,afterLeave:se}=D,ue=()=>o(R,h,x),v=()=>{ne(R,()=>{ue(),se&&se()})};te?te(R,ue,v):v()}else o(R,h,x)},ge=(f,h,x,P=!1,O=!1)=>{const{type:R,props:F,ref:D,children:N,dynamicChildren:$,shapeFlag:U,patchFlag:ne,dirs:te}=f;if(D!=null&&Qo(D,null,x,f,!0),U&256){h.ctx.deactivate(f);return}const se=U&1&&te,ue=!hn(f);let v;if(ue&&(v=F&&F.onVnodeBeforeUnmount)&&ut(v,h,f),U&6)ft(f.component,x,P);else{if(U&128){f.suspense.unmount(x,P);return}se&&Ht(f,null,h,"beforeUnmount"),U&64?f.type.remove(f,h,x,O,Oe,P):$&&(R!==ke||ne>0&&ne&64)?je($,h,x,!1,!0):(R===ke&&ne&384||!O&&U&16)&&je(N,h,x),P&&Ee(f)}(ue&&(v=F&&F.onVnodeUnmounted)||se)&&Ve(()=>{v&&ut(v,h,f),se&&Ht(f,null,h,"unmounted")},x)},Ee=f=>{const{type:h,el:x,anchor:P,transition:O}=f;if(h===ke){$e(x,P);return}if(h===so){V(f);return}const R=()=>{i(x),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:F,delayLeave:D}=O,N=()=>F(x,R);D?D(f.el,R,N):N()}else R()},$e=(f,h)=>{let x;for(;f!==h;)x=p(f),i(f),f=x;i(h)},ft=(f,h,x)=>{const{bum:P,scope:O,update:R,subTree:F,um:D}=f;P&&Dn(P),O.stop(),R&&(R.active=!1,ge(F,f,h,x)),D&&Ve(D,h),Ve(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},je=(f,h,x,P=!1,O=!1,R=0)=>{for(let F=R;F<f.length;F++)ge(f[F],h,x,P,O)},yt=f=>f.shapeFlag&6?yt(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el);let Bt=!1;const jt=(f,h,x)=>{f==null?h._vnode&&ge(h._vnode,null,null,!0):g(h._vnode||null,f,h,null,null,null,x),Bt||(Bt=!0,dr(),fr(),Bt=!1),h._vnode=f},Oe={p:g,um:ge,m:ce,r:Ee,mt:H,mc:b,pc:y,pbc:j,n:yt,o:e};let it,rt;return t&&([it,rt]=t(Oe)),{render:jt,hydrate:it,createApp:Ga(jt,it)}}function ei({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function rc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vr(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 l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=$t(i[r]),l.el=s.el),n||Vr(s,l)),l.type===ro&&(l.el=s.el)}}function sc(e){const t=e.slice(),n=[0];let o,i,r,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)l=r+s>>1,e[n[l]]<c?r=l+1:s=l;c<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 Wr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wr(t)}const lc=e=>e.__isTeleport,ke=Symbol.for("v-fgt"),ro=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),so=Symbol.for("v-stc"),bn=[];let ot=null;function z(e=!1){bn.push(ot=e?null:[])}function ac(){bn.pop(),ot=bn[bn.length-1]||null}let yn=1;function Kr(e){yn+=e}function Ur(e){return e.dynamicChildren=yn>0?ot||Je:null,ac(),yn>0&&ot&&ot.push(e),e}function q(e,t,n,o,i,r){return Ur(G(e,t,n,o,i,r,!0))}function be(e,t,n,o,i){return Ur(ee(e,t,n,o,i,!0))}function lo(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const ao="__vInternal",qr=({key:e})=>e??null,co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ie(e)||Me(e)||ae(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,o=0,i=null,r=e===ke?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qr(t),ref:t&&co(t),scopeId:gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pe};return l?(ti(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Ie(n)?8:16),yn>0&&!s&&ot&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ot.push(a),a}const ee=cc;function cc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===br)&&(e=tt),lo(e)){const l=Tt(e,t,!0);return n&&ti(l,n),yn>0&&!r&&ot&&(l.shapeFlag&6?ot[ot.indexOf(e)]=l:ot.push(l)),l.patchFlag|=-2,l}if(wc(e)&&(e=e.__vccOpts),t){t=uc(t);let{class:l,style:a}=t;l&&!Ie(l)&&(t.class=Te(l)),_e(a)&&(or(a)&&!oe(a)&&(a=Ce({},a)),t.style=De(a))}const s=Ie(e)?1:Ia(e)?128:lc(e)?64:_e(e)?4:ae(e)?2:0;return G(e,t,n,o,i,s,r,!0)}function uc(e){return e?or(e)||ao in e?Ce({},e):e:null}function Tt(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?_n(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&qr(l),ref:t&&t.ref?n&&i?oe(i)?i.concat(co(t)):[i,co(t)]:co(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Et(e=" ",t=0){return ee(ro,null,e,t)}function dc(e,t){const n=ee(so,null,e);return n.staticCount=t,n}function Se(e="",t=!1){return t?(z(),be(tt,null,e)):ee(tt,null,e)}function ct(e){return e==null||typeof e=="boolean"?ee(tt):oe(e)?ee(ke,null,e.slice()):typeof e=="object"?$t(e):ee(ro,null,String(e))}function $t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function ti(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),ti(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(ao in t)?t._ctx=Pe:i===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),o&64?(n=16,t=[Et(t)]):n=8);e.children=t,e.shapeFlag|=n}function _n(...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=Te([t.class,o.class]));else if(i==="style")t.style=De([t.style,o.style]);else if(zn(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 ut(e,t,n,o=null){Qe(e,t,7,[n,o])}const fc=zr();let pc=0;function hc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||fc,r={uid:pc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new jl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ar(o,i),emitsOptions:hr(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,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=_a.bind(null,r),e.ce&&e.ce(r),r}let ze=null;const uo=()=>ze||Pe;let fo,ni;{const e=zi(),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)}};fo=t("__VUE_INSTANCE_SETTERS__",n=>ze=n),ni=t("__VUE_SSR_SETTERS__",n=>po=n)}const wn=e=>{const t=ze;return fo(e),e.scope.on(),()=>{e.scope.off(),fo(t)}},Yr=()=>{ze&&ze.scope.off(),fo(null)};function Zr(e){return e.vnode.shapeFlag&4}let po=!1;function gc(e,t=!1){t&&ni(t);const{props:n,children:o}=e.vnode,i=Zr(e);Ja(e,n,i,t),tc(e,o);const r=i?mc(e,t):void 0;return t&&ni(!1),r}function mc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ir(new Proxy(e.ctx,Wa));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?bc(e):null,r=wn(e);wt();const s=mt(o,e,0,[e.props,i]);if(xt(),r(),$i(s)){if(s.then(Yr,Yr),t)return s.then(l=>{Xr(e,l,t)}).catch(l=>{Yn(l,e,0)});e.asyncDep=s}else Xr(e,s,t)}else Jr(e,t)}function Xr(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=sr(t)),Jr(e,n)}let Gr;function Jr(e,t,n){const o=e.type;if(!e.render){if(!t&&Gr&&!o.render){const i=o.template||Zo(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Ce(Ce({isCustomElement:r,delimiters:l},s),a);o.render=Gr(i,c)}}e.render=o.render||Ke}{const i=wn(e);wt();try{Ka(e)}finally{xt(),i()}}}function vc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Fe(e,"get","$attrs"),t[n]}}))}function bc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return vc(e)},slots:e.slots,emit:e.emit,expose:t}}function ho(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sr(ir(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}}))}const yc=/(?:^|[-_])(\w)/g,_c=e=>e.replace(yc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Qr(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function es(e,t,n=!1){let o=Qr(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?_c(o):n?"App":"Anonymous"}function wc(e){return ae(e)&&"__vccOpts"in e}const ie=(e,t)=>sa(e,t,po);function xn(e,t,n=fe){const o=uo(),i=Ne(t),r=Ue(t),s=lr((a,c)=>{let u;return Pa(()=>{const d=e[t];st(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const p=o.vnode.props;!(p&&(t in p||i in p||r in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${r}`in p))&&st(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function ts(e,t,n){const o=arguments.length;return o===2?_e(t)&&!oe(t)?lo(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&lo(n)&&(n=[n]),ee(e,t,n))}const xc="3.4.15";/**
|
|
15
|
+
`,...pa(i)),console.warn(...r)}xt()}function fa(){let e=fn[fn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function pa(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
|
|
16
|
+
`],...ha(n))}),t}function ha({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${es(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...ga(e.props),r]:[i+r]}function ga(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ar(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ar(e,t,n){return Ie(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Me(t)?(t=ar(e,he(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ae(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=he(t),n?t:[`${e}=`,t])}function mt(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){Un(r,t,n)}return i}function Qe(e,t,n,o){if(ae(e)){const r=mt(e,t,n,o);return r&&$i(r)&&r.catch(s=>{Un(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Qe(e[r],t,n,o));return i}function Un(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){mt(a,null,10,[e,s,l]);return}}ma(e,n,i,o)}function ma(e,t,n,o=!0){console.error(e)}let pn=!1,jo=!1;const Be=[];let lt=0;const tn=[];let kt=null,Nt=0;const cr=Promise.resolve();let Do=null;function vt(e){const t=Do||cr;return e?t.then(this?e.bind(this):e):t}function va(e){let t=lt+1,n=Be.length;for(;t<n;){const o=t+n>>>1,i=Be[o],r=hn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Ro(e){(!Be.length||!Be.includes(e,pn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Be.push(e):Be.splice(va(e.id),0,e),ur())}function ur(){!pn&&!jo&&(jo=!0,Do=cr.then(pr))}function ba(e){const t=Be.indexOf(e);t>lt&&Be.splice(t,1)}function ya(e){oe(e)?tn.push(...e):(!kt||!kt.includes(e,e.allowRecurse?Nt+1:Nt))&&tn.push(e),ur()}function dr(e,t,n=pn?lt+1:0){for(;n<Be.length;n++){const o=Be[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Be.splice(n,1),n--,o()}}}function fr(e){if(tn.length){const t=[...new Set(tn)].sort((n,o)=>hn(n)-hn(o));if(tn.length=0,kt){kt.push(...t);return}for(kt=t,Nt=0;Nt<kt.length;Nt++)kt[Nt]();kt=null,Nt=0}}const hn=e=>e.id==null?1/0:e.id,_a=(e,t)=>{const n=hn(e)-hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function pr(e){jo=!1,pn=!0,Be.sort(_a);const t=Ke;try{for(lt=0;lt<Be.length;lt++){const n=Be[lt];n&&n.active!==!1&&mt(n,null,14)}}finally{lt=0,Be.length=0,fr(),pn=!1,Do=null,(Be.length||tn.length)&&pr()}}function wa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||fe;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:p}=o[u]||fe;p&&(i=n.map(S=>Ie(S)?S.trim():S)),d&&(i=n.map(xo))}let l,a=o[l=wo(t)]||o[l=wo(Ne(t))];!a&&r&&(a=o[l=wo(Ue(t))]),a&&Qe(a,e,6,i);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,i)}}function hr(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!ae(e)){const a=c=>{const u=hr(c,t,!0);u&&(l=!0,Ce(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(_e(e)&&o.set(e,null),null):(oe(r)?r.forEach(a=>s[a]=null):Ce(s,r),_e(e)&&o.set(e,s),s)}function qn(e,t){return!e||!Pn(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,Ue(t))||me(e,t))}let Pe=null,gr=null;function Yn(e){const t=Pe;return Pe=e,gr=e&&e.type.__scopeId||null,t}function le(e,t=Pe,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Kr(-1);const r=Yn(t);let s;try{s=e(...i)}finally{Yn(r),o._d&&Kr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function dh(){}function No(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:p,setupState:S,ctx:E,inheritAttrs:g}=e;let k,I;const X=Yn(e);try{if(n.shapeFlag&4){const V=i||o,C=V;k=ct(u.call(C,V,d,r,S,p,E)),I=a}else{const V=t;k=ct(V.length>1?V(r,{attrs:a,slots:l,emit:c}):V(r,null)),I=t.props?a:xa(a)}}catch(V){yn.length=0,Un(V,e,1),k=ee(tt)}let L=k;if(I&&g!==!1){const V=Object.keys(I),{shapeFlag:C}=L;V.length&&C&7&&(s&&V.some(bo)&&(I=Sa(I,s)),L=Tt(L,I))}return n.dirs&&(L=Tt(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),k=L,Yn(X),k}const xa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pn(n))&&((t||(t={}))[n]=e[n]);return t},Sa=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ka(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?mr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(s[p]!==o[p]&&!qn(c,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?mr(o,s,c):!0:!!s;return!1}function mr(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]&&!qn(n,r))return!0}return!1}function Ca({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 vr="components",br=Symbol.for("v-ndc");function yr(e){return Ie(e)?Ia(vr,e,!1)||e:e||br}function Ia(e,t,n=!0,o=!1){const i=Pe||ze;if(i){const r=i.type;if(e===vr){const l=Qr(r,!1);if(l&&(l===t||l===Ne(t)||l===An(Ne(t))))return r}const s=_r(i[e]||r[e],t)||_r(i.appContext[e],t);return!s&&o?r:s}}function _r(e,t){return e&&(e[t]||e[Ne(t)]||e[An(Ne(t))])}const Ta=e=>e.__isSuspense;function Ea(e,t){t&&t.pendingBranch?oe(e)?t.effects.push(...e):t.effects.push(e):ya(e)}const $a=Symbol.for("v-scx"),Ma=()=>It($a);function Pa(e,t){return Xn(e,null,t)}function Oa(e,t){return Xn(e,null,{flush:"sync"})}const Zn={};function be(e,t,n){return Xn(e,t,n)}function Xn(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=fe){if(t&&r){const T=t;t=(...W)=>{T(...W),C()}}const a=ze,c=T=>o===!0?T:Ft(T,o===!1?1:void 0);let u,d=!1,p=!1;if(Me(e)?(u=()=>e.value,d=Kn(e)):Qt(e)?(u=()=>c(e),d=!0):oe(e)?(p=!0,d=e.some(T=>Qt(T)||Kn(T)),u=()=>e.map(T=>{if(Me(T))return T.value;if(Qt(T))return c(T);if(ae(T))return mt(T,a,2)})):ae(e)?t?u=()=>mt(e,a,2):u=()=>(S&&S(),Qe(e,a,3,[E])):u=Ke,t&&o){const T=u;u=()=>Ft(T())}let S,E=T=>{S=L.onStop=()=>{mt(T,a,4),S=L.onStop=void 0}},g;if(uo)if(E=Ke,t?n&&Qe(t,a,3,[u(),p?[]:void 0,E]):u(),i==="sync"){const T=Ma();g=T.__watcherHandles||(T.__watcherHandles=[])}else return Ke;let k=p?new Array(e.length).fill(Zn):Zn;const I=()=>{if(!(!L.active||!L.dirty))if(t){const T=L.run();(o||d||(p?T.some((W,b)=>st(W,k[b])):st(T,k)))&&(S&&S(),Qe(t,a,3,[T,k===Zn?void 0:p&&k[0]===Zn?[]:k,E]),k=T)}else L.run()};I.allowRecurse=!!t;let X;i==="sync"?X=I:i==="post"?X=()=>Ve(I,a&&a.suspense):(I.pre=!0,a&&(I.id=a.uid),X=()=>Ro(I));const L=new Co(u,Ke,X),V=Bi(),C=()=>{L.stop(),V&&yo(V.effects,L)};return t?n?I():k=L.run():i==="post"?Ve(L.run.bind(L),a&&a.suspense):L.run(),g&&g.push(C),C}function za(e,t,n){const o=this.proxy,i=Ie(e)?e.includes(".")?wr(o,e):()=>o[e]:e.bind(o,o);let r;ae(t)?r=t:(r=t.handler,n=t);const s=xn(this),l=Xn(i,r.bind(o),n);return s(),l}function wr(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 Ft(e,t,n=0,o){if(!_e(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Me(e))Ft(e.value,t,n,o);else if(oe(e))for(let i=0;i<e.length;i++)Ft(e[i],t,n,o);else if(Ei(e)||Gt(e))e.forEach(i=>{Ft(i,t,n,o)});else if(Pi(e))for(const i in e)Ft(e[i],t,n,o);return e}function at(e,t){if(Pe===null)return e;const n=fo(Pe)||Pe.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=fe]=t[i];r&&(ae(r)&&(r={mounted:r,updated:r}),r.deep&&Ft(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Ht(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];r&&(l.oldValue=r[s].value);let a=l.dir[o];a&&(wt(),Qe(a,n,8,[e.el,l,e,t]),xt())}}const Ct=Symbol("_leaveCb"),Gn=Symbol("_enterCb");function La(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return He(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],xr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},Aa={name:"BaseTransition",props:xr,setup(e,{slots:t}){const n=ao(),o=La();let i;return()=>{const r=t.default&&Cr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const g of r)if(g.type!==tt){s=g;break}}const l=he(e),{mode:a}=l;if(o.isLeaving)return Ho(s);const c=kr(s);if(!c)return Ho(s);const u=Fo(c,l,o,n);Vo(c,u);const d=n.subTree,p=d&&kr(d);let S=!1;const{getTransitionKey:E}=c.type;if(E){const g=E();i===void 0?i=g:g!==i&&(i=g,S=!0)}if(p&&p.type!==tt&&(!Kt(c,p)||S)){const g=Fo(p,l,o,n);if(Vo(p,g),a==="out-in")return o.isLeaving=!0,g.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ho(s);a==="in-out"&&c.type!==tt&&(g.delayLeave=(k,I,X)=>{const L=Sr(o,p);L[String(p.key)]=p,k[Ct]=()=>{I(),k[Ct]=void 0,delete u.delayedLeave},u.delayedLeave=X})}return s}}};function Sr(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 Fo(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:S,onLeaveCancelled:E,onBeforeAppear:g,onAppear:k,onAfterAppear:I,onAppearCancelled:X}=t,L=String(e.key),V=Sr(n,e),C=(b,M)=>{b&&Qe(b,o,9,M)},T=(b,M)=>{const j=M[1];C(b,M),oe(b)?b.every(Y=>Y.length<=1)&&j():b.length<=1&&j()},W={mode:r,persisted:s,beforeEnter(b){let M=l;if(!n.isMounted)if(i)M=g||l;else return;b[Ct]&&b[Ct](!0);const j=V[L];j&&Kt(e,j)&&j.el[Ct]&&j.el[Ct](),C(M,[b])},enter(b){let M=a,j=c,Y=u;if(!n.isMounted)if(i)M=k||a,j=I||c,Y=X||u;else return;let m=!1;const w=b[Gn]=H=>{m||(m=!0,H?C(Y,[b]):C(j,[b]),W.delayedLeave&&W.delayedLeave(),b[Gn]=void 0)};M?T(M,[b,w]):w()},leave(b,M){const j=String(e.key);if(b[Gn]&&b[Gn](!0),n.isUnmounting)return M();C(d,[b]);let Y=!1;const m=b[Ct]=w=>{Y||(Y=!0,M(),w?C(E,[b]):C(S,[b]),b[Ct]=void 0,V[j]===e&&delete V[j])};V[j]=e,p?T(p,[b,m]):m()},clone(b){return Fo(b,t,n,o)}};return W}function Ho(e){if(Jn(e))return e=Tt(e),e.children=null,e}function kr(e){return Jn(e)?e.children?e.children[0]:void 0:e}function Vo(e,t){e.shapeFlag&6&&e.component?Vo(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 Cr(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===ke?(s.patchFlag&128&&i++,o=o.concat(Cr(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?Tt(s,{key:l}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function we(e,t){return ae(e)?(()=>Ce({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,Jn=e=>e.type.__isKeepAlive;function Ba(e,t){Ir(e,"a",t)}function ja(e,t){Ir(e,"da",t)}function Ir(e,t,n=ze){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qn(t,o,n),n){let i=n.parent;for(;i&&i.parent;)Jn(i.parent.vnode)&&Da(o,t,n,i),i=i.parent}}function Da(e,t,n,o){const i=Qn(t,e,o,!0);Vt(()=>{yo(o[t],i)},n)}function Qn(e,t,n=ze,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;wt();const l=xn(n),a=Qe(t,n,e,s);return l(),xt(),a});return o?i.unshift(r):i.push(r),r}}const bt=e=>(t,n=ze)=>(!uo||e==="sp")&&Qn(e,(...o)=>t(...o),n),Ra=bt("bm"),He=bt("m"),Na=bt("bu"),Tr=bt("u"),Wo=bt("bum"),Vt=bt("um"),Fa=bt("sp"),Ha=bt("rtg"),Va=bt("rtc");function Wa(e,t=ze){Qn("ec",e,t)}function nn(e,t,n,o){let i;const r=n&&n[o];if(oe(e)||Ie(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(_e(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function Ko(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 xe(e,t,n={},o,i){if(Pe.isCE||Pe.parent&&gn(Pe.parent)&&Pe.parent.isCE)return t!=="default"&&(n.name=t),ee("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),z();const s=r&&Er(r(n)),l=ve(ke,{key:n.key||s&&s.key||`_${t}`},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 Er(e){return e.some(t=>ro(t)?!(t.type===tt||t.type===ke&&!Er(t.children)):!0)?e:null}const Uo=e=>e?Zr(e)?fo(e)||e.proxy:Uo(e.parent):null,mn=Ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Uo(e.parent),$root:e=>Uo(e.root),$emit:e=>e.emit,$options:e=>Zo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ro(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>za.bind(e)}),qo=(e,t)=>e!==fe&&!e.__isScriptSetup&&me(e,t),Ka={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const S=s[t];if(S!==void 0)switch(S){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(qo(o,t))return s[t]=1,o[t];if(i!==fe&&me(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&me(c,t))return s[t]=3,r[t];if(n!==fe&&me(n,t))return s[t]=4,n[t];Yo&&(s[t]=0)}}const u=mn[t];let d,p;if(u)return t==="$attrs"&&Fe(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==fe&&me(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,me(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return qo(i,t)?(i[t]=n,!0):o!==fe&&me(o,t)?(o[t]=n,!0):me(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}},s){let l;return!!n[s]||e!==fe&&me(e,s)||qo(t,s)||(l=r[0])&&me(l,s)||me(o,s)||me(mn,s)||me(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function eo(e){return oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function on(e,t){return!e||!t?e||t:oe(e)&&oe(t)?e.concat(t):Ce({},eo(e),eo(t))}let Yo=!0;function Ua(e){const t=Zo(e),n=e.proxy,o=e.ctx;Yo=!1,t.beforeCreate&&$r(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:S,updated:E,activated:g,deactivated:k,beforeDestroy:I,beforeUnmount:X,destroyed:L,unmounted:V,render:C,renderTracked:T,renderTriggered:W,errorCaptured:b,serverPrefetch:M,expose:j,inheritAttrs:Y,components:m,directives:w,filters:H}=t;if(c&&qa(c,o,null),s)for(const K in s){const y=s[K];ae(y)&&(o[K]=y.bind(n))}if(i){const K=i.call(n,n);_e(K)&&(e.data=Wn(K))}if(Yo=!0,r)for(const K in r){const y=r[K],Q=ae(y)?y.bind(n,n):ae(y.get)?y.get.bind(n,n):Ke,de=!ae(y)&&ae(y.set)?y.set.bind(n):Ke,ce=ie({get:Q,set:de});Object.defineProperty(o,K,{enumerable:!0,configurable:!0,get:()=>ce.value,set:ge=>ce.value=ge})}if(l)for(const K in l)Mr(l[K],o,n,K);if(a){const K=ae(a)?a.call(n):a;Reflect.ownKeys(K).forEach(y=>{bn(y,K[y])})}u&&$r(u,e,"c");function A(K,y){oe(y)?y.forEach(Q=>K(Q.bind(n))):y&&K(y.bind(n))}if(A(Ra,d),A(He,p),A(Na,S),A(Tr,E),A(Ba,g),A(ja,k),A(Wa,b),A(Va,T),A(Ha,W),A(Wo,X),A(Vt,V),A(Fa,M),oe(j))if(j.length){const K=e.exposed||(e.exposed={});j.forEach(y=>{Object.defineProperty(K,y,{get:()=>n[y],set:Q=>n[y]=Q})})}else e.exposed||(e.exposed={});C&&e.render===Ke&&(e.render=C),Y!=null&&(e.inheritAttrs=Y),m&&(e.components=m),w&&(e.directives=w)}function qa(e,t,n=Ke){oe(e)&&(e=Xo(e));for(const o in e){const i=e[o];let r;_e(i)?"default"in i?r=It(i.from||o,i.default,!0):r=It(i.from||o):r=It(i),Me(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function $r(e,t,n){Qe(oe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Mr(e,t,n,o){const i=o.includes(".")?wr(n,o):()=>n[o];if(Ie(e)){const r=t[e];ae(r)&&be(i,r)}else if(ae(e))be(i,e.bind(n));else if(_e(e))if(oe(e))e.forEach(r=>Mr(r,t,n,o));else{const r=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(r)&&be(i,r,e)}}function Zo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!o?a=t:(a={},i.length&&i.forEach(c=>to(a,c,s,!0)),to(a,t,s)),_e(t)&&r.set(t,a),a}function to(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&to(e,r,n,!0),i&&i.forEach(s=>to(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Ya[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ya={data:Pr,props:Or,emits:Or,methods:vn,computed:vn,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:vn,directives:vn,watch:Xa,provide:Pr,inject:Za};function Pr(e,t){return t?e?function(){return Ce(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function Za(e,t){return vn(Xo(e),Xo(t))}function Xo(e){if(oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Re(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?Ce(Object.create(null),e,t):t}function Or(e,t){return e?oe(e)&&oe(t)?[...new Set([...e,...t])]:Ce(Object.create(null),eo(e),eo(t??{})):t}function Xa(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const o in t)n[o]=Re(e[o],t[o]);return n}function zr(){return{app:null,config:{isNativeTag:El,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 Ga=0;function Ja(e,t){return function(o,i=null){ae(o)||(o=Ce({},o)),i!=null&&!_e(i)&&(i=null);const r=zr(),s=new WeakSet;let l=!1;const a=r.app={_uid:Ga++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:Sc,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&ae(c.install)?(s.add(c),c.install(a,...u)):ae(c)&&(s.add(c),c(a,...u))),a},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),a},component(c,u){return u?(r.components[c]=u,a):r.components[c]},directive(c,u){return u?(r.directives[c]=u,a):r.directives[c]},mount(c,u,d){if(!l){const p=ee(o,i);return p.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(p,c):e(p,c,d),l=!0,a._container=c,c.__vue_app__=a,fo(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){no=a;try{return c()}finally{no=null}}};return a}}let no=null;function bn(e,t){if(ze){let n=ze.provides;const o=ze.parent&&ze.parent.provides;o===n&&(n=ze.provides=Object.create(o)),n[e]=t}}function It(e,t,n=!1){const o=ze||Pe;if(o||no){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:no._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ae(t)?t.call(o&&o.proxy):t}}function Qa(e,t,n,o=!1){const i={},r={};jn(r,so,1),e.propsDefaults=Object.create(null),Lr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:sa(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function ec(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=he(i),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(qn(e.emitsOptions,p))continue;const S=t[p];if(a)if(me(r,p))S!==r[p]&&(r[p]=S,c=!0);else{const E=Ne(p);i[E]=Go(a,l,E,S,e,!1)}else S!==r[p]&&(r[p]=S,c=!0)}}}else{Lr(e,t,i,r)&&(c=!0);let u;for(const d in l)(!t||!me(t,d)&&((u=Ue(d))===d||!me(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=Go(a,l,d,void 0,e,!0)):delete i[d]);if(r!==l)for(const d in r)(!t||!me(t,d))&&(delete r[d],c=!0)}c&>(e,"set","$attrs")}function Lr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(zn(a))continue;const c=t[a];let u;i&&me(i,u=Ne(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:qn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=he(n),c=l||fe;for(let u=0;u<r.length;u++){const d=r[u];n[d]=Go(i,a,d,c[d],e,!me(c,d))}}return s}function Go(e,t,n,o,i,r){const s=e[n];if(s!=null){const l=me(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ae(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=xn(i);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(r&&!l?o=!1:s[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function Ar(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},l=[];let a=!1;if(!ae(e)){const u=d=>{a=!0;const[p,S]=Ar(d,t,!0);Ce(s,p),S&&l.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return _e(e)&&o.set(e,Je),Je;if(oe(r))for(let u=0;u<r.length;u++){const d=Ne(r[u]);Br(d)&&(s[d]=fe)}else if(r)for(const u in r){const d=Ne(u);if(Br(d)){const p=r[u],S=s[d]=oe(p)||ae(p)?{type:p}:Ce({},p);if(S){const E=Rr(Boolean,S.type),g=Rr(String,S.type);S[0]=E>-1,S[1]=g<0||E<g,(E>-1||me(S,"default"))&&l.push(d)}}}const c=[s,l];return _e(e)&&o.set(e,c),c}function Br(e){return e[0]!=="$"}function jr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Dr(e,t){return jr(e)===jr(t)}function Rr(e,t){return oe(t)?t.findIndex(n=>Dr(n,e)):ae(t)&&Dr(t,e)?0:-1}const Nr=e=>e[0]==="_"||e==="$stable",Jo=e=>oe(e)?e.map(ct):[ct(e)],tc=(e,t,n)=>{if(t._n)return t;const o=le((...i)=>Jo(t(...i)),n);return o._c=!1,o},Fr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Nr(i))continue;const r=e[i];if(ae(r))t[i]=tc(i,r,o);else if(r!=null){const s=Jo(r);t[i]=()=>s}}},Hr=(e,t)=>{const n=Jo(t);e.slots.default=()=>n},nc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=he(t),jn(t,"_",n)):Fr(t,e.slots={})}else e.slots={},t&&Hr(e,t);jn(e.slots,so,1)},oc=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=fe;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(Ce(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Fr(t,i)),s=t}else t&&(Hr(e,t),s={default:1});if(r)for(const l in i)!Nr(l)&&s[l]==null&&delete i[l]};function Qo(e,t,n,o,i=!1){if(oe(e)){e.forEach((p,S)=>Qo(p,t&&(oe(t)?t[S]:t),n,o,i));return}if(gn(o)&&!i)return;const r=o.shapeFlag&4?fo(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===fe?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(Ie(c)?(u[c]=null,me(d,c)&&(d[c]=null)):Me(c)&&(c.value=null)),ae(a))mt(a,l,12,[s,u]);else{const p=Ie(a),S=Me(a),E=e.f;if(p||S){const g=()=>{if(E){const k=p?me(d,a)?d[a]:u[a]:a.value;i?oe(k)&&yo(k,r):oe(k)?k.includes(r)||k.push(r):p?(u[a]=[r],me(d,a)&&(d[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else p?(u[a]=s,me(d,a)&&(d[a]=s)):S&&(a.value=s,e.k&&(u[e.k]=s))};i||E?g():(g.id=-1,Ve(g,n))}}}const Ve=Ea;function ic(e){return rc(e)}function rc(e,t){const n=zi();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:S=Ke,insertStaticContent:E}=e,g=(f,h,x,P=null,O=null,R=null,F=void 0,D=null,N=!!h.dynamicChildren)=>{if(f===h)return;f&&!Kt(f,h)&&(P=yt(f),ge(f,O,R,!0),f=null),h.patchFlag===-2&&(N=!1,h.dynamicChildren=null);const{type:$,ref:U,shapeFlag:ne}=h;switch($){case oo:k(f,h,x,P);break;case tt:I(f,h,x,P);break;case io:f==null&&X(h,x,P,F);break;case ke:m(f,h,x,P,O,R,F,D,N);break;default:ne&1?C(f,h,x,P,O,R,F,D,N):ne&6?w(f,h,x,P,O,R,F,D,N):(ne&64||ne&128)&&$.process(f,h,x,P,O,R,F,D,N,Oe)}U!=null&&O&&Qo(U,f&&f.ref,R,h||f,!h)},k=(f,h,x,P)=>{if(f==null)o(h.el=l(h.children),x,P);else{const O=h.el=f.el;h.children!==f.children&&c(O,h.children)}},I=(f,h,x,P)=>{f==null?o(h.el=a(h.children||""),x,P):h.el=f.el},X=(f,h,x,P)=>{[f.el,f.anchor]=E(f.children,h,x,P,f.el,f.anchor)},L=({el:f,anchor:h},x,P)=>{let O;for(;f&&f!==h;)O=p(f),o(f,x,P),f=O;o(h,x,P)},V=({el:f,anchor:h})=>{let x;for(;f&&f!==h;)x=p(f),i(f),f=x;i(h)},C=(f,h,x,P,O,R,F,D,N)=>{h.type==="svg"?F="svg":h.type==="math"&&(F="mathml"),f==null?T(h,x,P,O,R,F,D,N):M(f,h,O,R,F,D,N)},T=(f,h,x,P,O,R,F,D)=>{let N,$;const{props:U,shapeFlag:ne,transition:te,dirs:se}=f;if(N=f.el=s(f.type,R,U&&U.is,U),ne&8?u(N,f.children):ne&16&&b(f.children,N,null,P,O,ei(f,R),F,D),se&&Ht(f,null,P,"created"),W(N,f,f.scopeId,F,P),U){for(const v in U)v!=="value"&&!zn(v)&&r(N,v,null,U[v],R,f.children,P,O,De);"value"in U&&r(N,"value",null,U.value,R),($=U.onVnodeBeforeMount)&&ut($,P,f)}se&&Ht(f,null,P,"beforeMount");const ue=sc(O,te);ue&&te.beforeEnter(N),o(N,h,x),(($=U&&U.onVnodeMounted)||ue||se)&&Ve(()=>{$&&ut($,P,f),ue&&te.enter(N),se&&Ht(f,null,P,"mounted")},O)},W=(f,h,x,P,O)=>{if(x&&S(f,x),P)for(let R=0;R<P.length;R++)S(f,P[R]);if(O){let R=O.subTree;if(h===R){const F=O.vnode;W(f,F,F.scopeId,F.slotScopeIds,O.parent)}}},b=(f,h,x,P,O,R,F,D,N=0)=>{for(let $=N;$<f.length;$++){const U=f[$]=D?$t(f[$]):ct(f[$]);g(null,U,h,x,P,O,R,F,D)}},M=(f,h,x,P,O,R,F)=>{const D=h.el=f.el;let{patchFlag:N,dynamicChildren:$,dirs:U}=h;N|=f.patchFlag&16;const ne=f.props||fe,te=h.props||fe;let se;if(x&&Wt(x,!1),(se=te.onVnodeBeforeUpdate)&&ut(se,x,h,f),U&&Ht(h,f,x,"beforeUpdate"),x&&Wt(x,!0),$?j(f.dynamicChildren,$,D,x,P,ei(h,O),R):F||y(f,h,D,null,x,P,ei(h,O),R,!1),N>0){if(N&16)Y(D,h,ne,te,x,P,O);else if(N&2&&ne.class!==te.class&&r(D,"class",null,te.class,O),N&4&&r(D,"style",ne.style,te.style,O),N&8){const ue=h.dynamicProps;for(let v=0;v<ue.length;v++){const B=ue[v],re=ne[B],pe=te[B];(pe!==re||B==="value")&&r(D,B,re,pe,O,f.children,x,P,De)}}N&1&&f.children!==h.children&&u(D,h.children)}else!F&&$==null&&Y(D,h,ne,te,x,P,O);((se=te.onVnodeUpdated)||U)&&Ve(()=>{se&&ut(se,x,h,f),U&&Ht(h,f,x,"updated")},P)},j=(f,h,x,P,O,R,F)=>{for(let D=0;D<h.length;D++){const N=f[D],$=h[D],U=N.el&&(N.type===ke||!Kt(N,$)||N.shapeFlag&70)?d(N.el):x;g(N,$,U,null,P,O,R,F,!0)}},Y=(f,h,x,P,O,R,F)=>{if(x!==P){if(x!==fe)for(const D in x)!zn(D)&&!(D in P)&&r(f,D,x[D],null,F,h.children,O,R,De);for(const D in P){if(zn(D))continue;const N=P[D],$=x[D];N!==$&&D!=="value"&&r(f,D,$,N,F,h.children,O,R,De)}"value"in P&&r(f,"value",x.value,P.value,F)}},m=(f,h,x,P,O,R,F,D,N)=>{const $=h.el=f?f.el:l(""),U=h.anchor=f?f.anchor:l("");let{patchFlag:ne,dynamicChildren:te,slotScopeIds:se}=h;se&&(D=D?D.concat(se):se),f==null?(o($,x,P),o(U,x,P),b(h.children||[],x,U,O,R,F,D,N)):ne>0&&ne&64&&te&&f.dynamicChildren?(j(f.dynamicChildren,te,x,O,R,F,D),(h.key!=null||O&&h===O.subTree)&&Vr(f,h,!0)):y(f,h,x,U,O,R,F,D,N)},w=(f,h,x,P,O,R,F,D,N)=>{h.slotScopeIds=D,f==null?h.shapeFlag&512?O.ctx.activate(h,x,P,F,N):H(h,x,P,O,R,F,N):_(f,h,N)},H=(f,h,x,P,O,R,F)=>{const D=f.component=gc(f,P,O);if(Jn(f)&&(D.ctx.renderer=Oe),mc(D),D.asyncDep){if(O&&O.registerDep(D,A),!f.el){const N=D.subTree=ee(tt);I(null,N,h,x)}}else A(D,f,h,x,O,R,F)},_=(f,h,x)=>{const P=h.component=f.component;if(ka(f,h,x))if(P.asyncDep&&!P.asyncResolved){K(P,h,x);return}else P.next=h,ba(P.update),P.effect.dirty=!0,P.update();else h.el=f.el,P.vnode=h},A=(f,h,x,P,O,R,F)=>{const D=()=>{if(f.isMounted){let{next:U,bu:ne,u:te,parent:se,vnode:ue}=f;{const pt=Wr(f);if(pt){U&&(U.el=ue.el,K(f,U,F)),pt.asyncDep.then(()=>{f.isUnmounted||D()});return}}let v=U,B;Wt(f,!1),U?(U.el=ue.el,K(f,U,F)):U=ue,ne&&Bn(ne),(B=U.props&&U.props.onVnodeBeforeUpdate)&&ut(B,se,U,ue),Wt(f,!0);const re=No(f),pe=f.subTree;f.subTree=re,g(pe,re,d(pe.el),yt(pe),f,O,R),U.el=re.el,v===null&&Ca(f,re.el),te&&Ve(te,O),(B=U.props&&U.props.onVnodeUpdated)&&Ve(()=>ut(B,se,U,ue),O)}else{let U;const{el:ne,props:te}=h,{bm:se,m:ue,parent:v}=f,B=gn(h);if(Wt(f,!1),se&&Bn(se),!B&&(U=te&&te.onVnodeBeforeMount)&&ut(U,v,h),Wt(f,!0),ne&&rt){const re=()=>{f.subTree=No(f),rt(ne,f.subTree,f,O,null)};B?h.type.__asyncLoader().then(()=>!f.isUnmounted&&re()):re()}else{const re=f.subTree=No(f);g(null,re,x,P,f,O,R),h.el=re.el}if(ue&&Ve(ue,O),!B&&(U=te&&te.onVnodeMounted)){const re=h;Ve(()=>ut(U,v,re),O)}(h.shapeFlag&256||v&&gn(v.vnode)&&v.vnode.shapeFlag&256)&&f.a&&Ve(f.a,O),f.isMounted=!0,h=x=P=null}},N=f.effect=new Co(D,Ke,()=>Ro($),f.scope),$=f.update=()=>{N.dirty&&N.run()};$.id=f.uid,Wt(f,!0),$()},K=(f,h,x)=>{h.component=f;const P=f.vnode.props;f.vnode=h,f.next=null,ec(f,h.props,P,x),oc(f,h.children,x),wt(),dr(f),xt()},y=(f,h,x,P,O,R,F,D,N=!1)=>{const $=f&&f.children,U=f?f.shapeFlag:0,ne=h.children,{patchFlag:te,shapeFlag:se}=h;if(te>0){if(te&128){de($,ne,x,P,O,R,F,D,N);return}else if(te&256){Q($,ne,x,P,O,R,F,D,N);return}}se&8?(U&16&&De($,O,R),ne!==$&&u(x,ne)):U&16?se&16?de($,ne,x,P,O,R,F,D,N):De($,O,R,!0):(U&8&&u(x,""),se&16&&b(ne,x,P,O,R,F,D,N))},Q=(f,h,x,P,O,R,F,D,N)=>{f=f||Je,h=h||Je;const $=f.length,U=h.length,ne=Math.min($,U);let te;for(te=0;te<ne;te++){const se=h[te]=N?$t(h[te]):ct(h[te]);g(f[te],se,x,null,O,R,F,D,N)}$>U?De(f,O,R,!0,!1,ne):b(h,x,P,O,R,F,D,N,ne)},de=(f,h,x,P,O,R,F,D,N)=>{let $=0;const U=h.length;let ne=f.length-1,te=U-1;for(;$<=ne&&$<=te;){const se=f[$],ue=h[$]=N?$t(h[$]):ct(h[$]);if(Kt(se,ue))g(se,ue,x,null,O,R,F,D,N);else break;$++}for(;$<=ne&&$<=te;){const se=f[ne],ue=h[te]=N?$t(h[te]):ct(h[te]);if(Kt(se,ue))g(se,ue,x,null,O,R,F,D,N);else break;ne--,te--}if($>ne){if($<=te){const se=te+1,ue=se<U?h[se].el:P;for(;$<=te;)g(null,h[$]=N?$t(h[$]):ct(h[$]),x,ue,O,R,F,D,N),$++}}else if($>te)for(;$<=ne;)ge(f[$],O,R,!0),$++;else{const se=$,ue=$,v=new Map;for($=ue;$<=te;$++){const Ge=h[$]=N?$t(h[$]):ct(h[$]);Ge.key!=null&&v.set(Ge.key,$)}let B,re=0;const pe=te-ue+1;let pt=!1,Mn=0;const cn=new Array(pe);for($=0;$<pe;$++)cn[$]=0;for($=se;$<=ne;$++){const Ge=f[$];if(re>=pe){ge(Ge,O,R,!0);continue}let ht;if(Ge.key!=null)ht=v.get(Ge.key);else for(B=ue;B<=te;B++)if(cn[B-ue]===0&&Kt(Ge,h[B])){ht=B;break}ht===void 0?ge(Ge,O,R,!0):(cn[ht-ue]=$+1,ht>=Mn?Mn=ht:pt=!0,g(Ge,h[ht],x,null,O,R,F,D,N),re++)}const Il=pt?lc(cn):Je;for(B=Il.length-1,$=pe-1;$>=0;$--){const Ge=ue+$,ht=h[Ge],Tl=Ge+1<U?h[Ge+1].el:P;cn[$]===0?g(null,ht,x,Tl,O,R,F,D,N):pt&&(B<0||$!==Il[B]?ce(ht,x,Tl,2):B--)}}},ce=(f,h,x,P,O=null)=>{const{el:R,type:F,transition:D,children:N,shapeFlag:$}=f;if($&6){ce(f.component.subTree,h,x,P);return}if($&128){f.suspense.move(h,x,P);return}if($&64){F.move(f,h,x,Oe);return}if(F===ke){o(R,h,x);for(let ne=0;ne<N.length;ne++)ce(N[ne],h,x,P);o(f.anchor,h,x);return}if(F===io){L(f,h,x);return}if(P!==2&&$&1&&D)if(P===0)D.beforeEnter(R),o(R,h,x),Ve(()=>D.enter(R),O);else{const{leave:ne,delayLeave:te,afterLeave:se}=D,ue=()=>o(R,h,x),v=()=>{ne(R,()=>{ue(),se&&se()})};te?te(R,ue,v):v()}else o(R,h,x)},ge=(f,h,x,P=!1,O=!1)=>{const{type:R,props:F,ref:D,children:N,dynamicChildren:$,shapeFlag:U,patchFlag:ne,dirs:te}=f;if(D!=null&&Qo(D,null,x,f,!0),U&256){h.ctx.deactivate(f);return}const se=U&1&&te,ue=!gn(f);let v;if(ue&&(v=F&&F.onVnodeBeforeUnmount)&&ut(v,h,f),U&6)ft(f.component,x,P);else{if(U&128){f.suspense.unmount(x,P);return}se&&Ht(f,null,h,"beforeUnmount"),U&64?f.type.remove(f,h,x,O,Oe,P):$&&(R!==ke||ne>0&&ne&64)?De($,h,x,!1,!0):(R===ke&&ne&384||!O&&U&16)&&De(N,h,x),P&&Ee(f)}(ue&&(v=F&&F.onVnodeUnmounted)||se)&&Ve(()=>{v&&ut(v,h,f),se&&Ht(f,null,h,"unmounted")},x)},Ee=f=>{const{type:h,el:x,anchor:P,transition:O}=f;if(h===ke){$e(x,P);return}if(h===io){V(f);return}const R=()=>{i(x),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:F,delayLeave:D}=O,N=()=>F(x,R);D?D(f.el,R,N):N()}else R()},$e=(f,h)=>{let x;for(;f!==h;)x=p(f),i(f),f=x;i(h)},ft=(f,h,x)=>{const{bum:P,scope:O,update:R,subTree:F,um:D}=f;P&&Bn(P),O.stop(),R&&(R.active=!1,ge(F,f,h,x)),D&&Ve(D,h),Ve(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},De=(f,h,x,P=!1,O=!1,R=0)=>{for(let F=R;F<f.length;F++)ge(f[F],h,x,P,O)},yt=f=>f.shapeFlag&6?yt(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el);let Bt=!1;const jt=(f,h,x)=>{f==null?h._vnode&&ge(h._vnode,null,null,!0):g(h._vnode||null,f,h,null,null,null,x),Bt||(Bt=!0,dr(),fr(),Bt=!1),h._vnode=f},Oe={p:g,um:ge,m:ce,r:Ee,mt:H,mc:b,pc:y,pbc:j,n:yt,o:e};let it,rt;return t&&([it,rt]=t(Oe)),{render:jt,hydrate:it,createApp:Ja(jt,it)}}function ei({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function sc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vr(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 l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=$t(i[r]),l.el=s.el),n||Vr(s,l)),l.type===oo&&(l.el=s.el)}}function lc(e){const t=e.slice(),n=[0];let o,i,r,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)l=r+s>>1,e[n[l]]<c?r=l+1:s=l;c<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 Wr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wr(t)}const ac=e=>e.__isTeleport,ke=Symbol.for("v-fgt"),oo=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),io=Symbol.for("v-stc"),yn=[];let ot=null;function z(e=!1){yn.push(ot=e?null:[])}function cc(){yn.pop(),ot=yn[yn.length-1]||null}let _n=1;function Kr(e){_n+=e}function Ur(e){return e.dynamicChildren=_n>0?ot||Je:null,cc(),_n>0&&ot&&ot.push(e),e}function q(e,t,n,o,i,r){return Ur(G(e,t,n,o,i,r,!0))}function ve(e,t,n,o,i){return Ur(ee(e,t,n,o,i,!0))}function ro(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const so="__vInternal",qr=({key:e})=>e??null,lo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ie(e)||Me(e)||ae(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function G(e,t=null,n=null,o=0,i=null,r=e===ke?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qr(t),ref:t&&lo(t),scopeId:gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pe};return l?(ti(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Ie(n)?8:16),_n>0&&!s&&ot&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ot.push(a),a}const ee=uc;function uc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===br)&&(e=tt),ro(e)){const l=Tt(e,t,!0);return n&&ti(l,n),_n>0&&!r&&ot&&(l.shapeFlag&6?ot[ot.indexOf(e)]=l:ot.push(l)),l.patchFlag|=-2,l}if(xc(e)&&(e=e.__vccOpts),t){t=dc(t);let{class:l,style:a}=t;l&&!Ie(l)&&(t.class=Te(l)),_e(a)&&(or(a)&&!oe(a)&&(a=Ce({},a)),t.style=Ae(a))}const s=Ie(e)?1:Ta(e)?128:ac(e)?64:_e(e)?4:ae(e)?2:0;return G(e,t,n,o,i,s,r,!0)}function dc(e){return e?or(e)||so in e?Ce({},e):e:null}function Tt(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?wn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&qr(l),ref:t&&t.ref?n&&i?oe(i)?i.concat(lo(t)):[i,lo(t)]:lo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tt(e.ssContent),ssFallback:e.ssFallback&&Tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Et(e=" ",t=0){return ee(oo,null,e,t)}function fc(e,t){const n=ee(io,null,e);return n.staticCount=t,n}function Se(e="",t=!1){return t?(z(),ve(tt,null,e)):ee(tt,null,e)}function ct(e){return e==null||typeof e=="boolean"?ee(tt):oe(e)?ee(ke,null,e.slice()):typeof e=="object"?$t(e):ee(oo,null,String(e))}function $t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tt(e)}function ti(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),ti(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(so in t)?t._ctx=Pe:i===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),o&64?(n=16,t=[Et(t)]):n=8);e.children=t,e.shapeFlag|=n}function wn(...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=Te([t.class,o.class]));else if(i==="style")t.style=Ae([t.style,o.style]);else if(Pn(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 ut(e,t,n,o=null){Qe(e,t,7,[n,o])}const pc=zr();let hc=0;function gc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||pc,r={uid:hc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Dl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ar(o,i),emitsOptions:hr(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,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=wa.bind(null,r),e.ce&&e.ce(r),r}let ze=null;const ao=()=>ze||Pe;let co,ni;{const e=zi(),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)}};co=t("__VUE_INSTANCE_SETTERS__",n=>ze=n),ni=t("__VUE_SSR_SETTERS__",n=>uo=n)}const xn=e=>{const t=ze;return co(e),e.scope.on(),()=>{e.scope.off(),co(t)}},Yr=()=>{ze&&ze.scope.off(),co(null)};function Zr(e){return e.vnode.shapeFlag&4}let uo=!1;function mc(e,t=!1){t&&ni(t);const{props:n,children:o}=e.vnode,i=Zr(e);Qa(e,n,i,t),nc(e,o);const r=i?vc(e,t):void 0;return t&&ni(!1),r}function vc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ir(new Proxy(e.ctx,Ka));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?yc(e):null,r=xn(e);wt();const s=mt(o,e,0,[e.props,i]);if(xt(),r(),$i(s)){if(s.then(Yr,Yr),t)return s.then(l=>{Xr(e,l,t)}).catch(l=>{Un(l,e,0)});e.asyncDep=s}else Xr(e,s,t)}else Jr(e,t)}function Xr(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=sr(t)),Jr(e,n)}let Gr;function Jr(e,t,n){const o=e.type;if(!e.render){if(!t&&Gr&&!o.render){const i=o.template||Zo(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Ce(Ce({isCustomElement:r,delimiters:l},s),a);o.render=Gr(i,c)}}e.render=o.render||Ke}{const i=xn(e);wt();try{Ua(e)}finally{xt(),i()}}}function bc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Fe(e,"get","$attrs"),t[n]}}))}function yc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return bc(e)},slots:e.slots,emit:e.emit,expose:t}}function fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sr(ir(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}const _c=/(?:^|[-_])(\w)/g,wc=e=>e.replace(_c,t=>t.toUpperCase()).replace(/[-_]/g,"");function Qr(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function es(e,t,n=!1){let o=Qr(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?wc(o):n?"App":"Anonymous"}function xc(e){return ae(e)&&"__vccOpts"in e}const ie=(e,t)=>la(e,t,uo);function Sn(e,t,n=fe){const o=ao(),i=Ne(t),r=Ue(t),s=lr((a,c)=>{let u;return Oa(()=>{const d=e[t];st(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const p=o.vnode.props;!(p&&(t in p||i in p||r in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${r}`in p))&&st(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function ts(e,t,n){const o=arguments.length;return o===2?_e(t)&&!oe(t)?ro(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ro(n)&&(n=[n]),ee(e,t,n))}const Sc="3.4.15";/**
|
|
17
17
|
* @vue/runtime-dom v3.4.15
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/const Sc="http://www.w3.org/2000/svg",kc="http://www.w3.org/1998/Math/MathML",Mt=typeof document<"u"?document:null,ns=Mt&&Mt.createElement("template"),Cc={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"?Mt.createElementNS(Sc,e):t==="mathml"?Mt.createElementNS(kc,e):Mt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Mt.createTextNode(e),createComment:e=>Mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mt.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{ns.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=ns.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Pt="transition",Sn="animation",kn=Symbol("_vtc"),rn=(e,{slots:t})=>ts(La,Ic(e),t);rn.displayName="Transition";const os={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};rn.props=Ce({},xr,os);const Ut=(e,t=[])=>{oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},is=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Ic(e){const t={};for(const m in e)m in os||(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:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,E=Tc(i),g=E&&E[0],k=E&&E[1],{onBeforeEnter:T,onEnter:X,onEnterCancelled:B,onLeave:V,onLeaveCancelled:C,onBeforeAppear:I=T,onAppear:W=X,onAppearCancelled:b=B}=t,M=(m,w,H)=>{qt(m,w?u:l),qt(m,w?c:s),H&&H()},j=(m,w)=>{m._isLeaving=!1,qt(m,d),qt(m,S),qt(m,p),w&&w()},Y=m=>(w,H)=>{const _=m?W:X,L=()=>M(w,m,H);Ut(_,[w,L]),rs(()=>{qt(w,m?a:r),Ot(w,m?u:l),is(_)||ss(w,o,g,L)})};return Ce(t,{onBeforeEnter(m){Ut(T,[m]),Ot(m,r),Ot(m,s)},onBeforeAppear(m){Ut(I,[m]),Ot(m,a),Ot(m,c)},onEnter:Y(!1),onAppear:Y(!0),onLeave(m,w){m._isLeaving=!0;const H=()=>j(m,w);Ot(m,d),Mc(),Ot(m,p),rs(()=>{m._isLeaving&&(qt(m,d),Ot(m,S),is(V)||ss(m,o,k,H))}),Ut(V,[m,H])},onEnterCancelled(m){M(m,!1),Ut(B,[m])},onAppearCancelled(m){M(m,!0),Ut(b,[m])},onLeaveCancelled(m){j(m),Ut(C,[m])}})}function Tc(e){if(e==null)return null;if(_e(e))return[oi(e.enter),oi(e.leave)];{const t=oi(e);return[t,t]}}function oi(e){return So(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[kn];n&&(n.delete(t),n.size||(e[kn]=void 0))}function rs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ec=0;function ss(e,t,n,o){const i=e._endId=++Ec,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=$c(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),r()},p=S=>{S.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,p)}function $c(e,t){const n=window.getComputedStyle(e),o=E=>(n[E]||"").split(", "),i=o(`${Pt}Delay`),r=o(`${Pt}Duration`),s=ls(i,r),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=ls(l,a);let u=null,d=0,p=0;t===Pt?s>0&&(u=Pt,d=s,p=r.length):t===Sn?c>0&&(u=Sn,d=c,p=a.length):(d=Math.max(s,c),u=d>0?s>c?Pt:Sn:null,p=u?u===Pt?r.length:a.length:0);const S=u===Pt&&/\b(transform|all)(,|$)/.test(o(`${Pt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:S}}function ls(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>as(n)+as(e[o])))}function as(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Mc(){return document.body.offsetHeight}function Pc(e,t,n){const o=e[kn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ii=Symbol("_vod"),Oc={beforeMount(e,{value:t},{transition:n}){e[ii]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Cn(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),Cn(e,!0),o.enter(e)):o.leave(e,()=>{Cn(e,!1)}):Cn(e,t))},beforeUnmount(e,{value:t}){Cn(e,t)}};function Cn(e,t){e.style.display=t?e[ii]:"none"}const zc=Symbol("");function Lc(e,t,n){const o=e.style,i=o.display,r=Ie(n);if(n&&!r){if(t&&!Ie(t))for(const s in t)n[s]==null&&ri(o,s,"");for(const s in n)ri(o,s,n[s])}else if(r){if(t!==n){const s=o[zc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ii in e&&(o.display=i)}const cs=/\s*!important$/;function ri(e,t,n){if(oe(n))n.forEach(o=>ri(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ac(e,t);cs.test(n)?e.setProperty(Ue(o),n.replace(cs,""),"important"):e[o]=n}}const us=["Webkit","Moz","ms"],si={};function Ac(e,t){const n=si[t];if(n)return n;let o=Ne(t);if(o!=="filter"&&o in e)return si[t]=o;o=jn(o);for(let i=0;i<us.length;i++){const r=us[i]+o;if(r in e)return si[t]=r}return t}const ds="http://www.w3.org/1999/xlink";function Bc(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ds,t.slice(6,t.length)):e.setAttributeNS(ds,t,n);else{const r=Bl(t);n==null||r&&!Li(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function jc(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Li(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function sn(e,t,n,o){e.addEventListener(t,n,o)}function Dc(e,t,n,o){e.removeEventListener(t,n,o)}const fs=Symbol("_vei");function Rc(e,t,n,o,i=null){const r=e[fs]||(e[fs]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=Nc(t);if(o){const c=r[t]=Vc(o,i);sn(e,l,c,a)}else s&&(Dc(e,l,s,a),r[t]=void 0)}}const ps=/(?:Once|Passive|Capture)$/;function Nc(e){let t;if(ps.test(e)){t={};let o;for(;o=e.match(ps);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let li=0;const Fc=Promise.resolve(),Hc=()=>li||(Fc.then(()=>li=0),li=Date.now());function Vc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(Wc(o,n.value),t,5,[o])};return n.value=e,n.attached=Hc(),n}function Wc(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 hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Kc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?Pc(e,o,c):t==="style"?Lc(e,n,o):zn(t)?bo(t)||Rc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Uc(e,t,o,c))?jc(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Bc(e,t,o,c))};function Uc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&hs(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return hs(t)&&Ie(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function qc(e,t){const n=we(e);class o extends ai{constructor(r){super(n,r,t)}}return o.def=n,o}const Yc=typeof HTMLElement<"u"?HTMLElement:class{};class ai extends Yc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),vt(()=>{this._connected||(ys(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{const{props:r,styles:s}=o;let l;if(r&&!oe(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=So(this._props[a])),(l||(l=Object.create(null)))[Ne(a)]=!0)}this._numberProps=l,i&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=oe(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of o.map(Ne))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ne(t);this._numberProps&&this._numberProps[o]&&(n=So(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){ys(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ee(this._def,Ce({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(r,s)=>{this.dispatchEvent(new CustomEvent(r,{detail:s}))};n.emit=(r,...s)=>{o(r,s),Ue(r)!==r&&o(Ue(r),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof ai){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const gs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return oe(t)?n=>Dn(t,n):t};function Zc(e){e.target.composing=!0}function ms(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ci=Symbol("_assign"),Xc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ci]=gs(i);const r=o||i.props&&i.props.type==="number";sn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=xo(l)),e[ci](l)}),n&&sn(e,"change",()=>{e.value=e.value.trim()}),t||(sn(e,"compositionstart",Zc),sn(e,"compositionend",ms),sn(e,"change",ms))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ci]=gs(r),e.composing)return;const s=i||e.type==="number"?xo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Gc=["ctrl","shift","alt","meta"],Jc={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)=>Gc.some(n=>e[`${n}Key`]&&!t.includes(n))},Be=(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 l=Jc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},Qc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=Ue(i.key);if(t.some(s=>s===r||Qc[s]===r))return e(i)})},eu=Ce({patchProp:Kc},Cc);let bs;function tu(){return bs||(bs=oc(eu))}const ys=(...e)=>{tu().render(...e)};var _s;const ui=typeof window<"u",ws=e=>typeof e=="function",nu=e=>typeof e=="string",zt=()=>{};ui&&((_s=window==null?void 0:window.navigator)!=null&&_s.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function go(e){return typeof e=="function"?e():Z(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 ou(e,t={}){let n,o,i=zt;const r=l=>{clearTimeout(l),i(),i=zt};return l=>{const a=go(e),c=go(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{i=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function iu(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=zt,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=zt)};return d=>{const p=go(e),S=Date.now()-i,E=()=>a=d();if(c(),p<=0)return i=Date.now(),E();if(S>p&&(n||!s))i=Date.now(),E();else if(t)return new Promise((g,k)=>{l=o?k:g,r=setTimeout(()=>{i=Date.now(),s=!0,g(E()),c()},p-S)});return!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1,a}}function ru(e){return e}function su(e,t){let n,o,i;const r=J(!0),s=()=>{r.value=!0,i()};ve(e,s,{flush:"sync"});const l=ws(t)?t:t.get,a=ws(t)?void 0:t.set,c=lr((u,d)=>(o=u,i=d,{get(){return r.value&&(n=l(),r.value=!1),o(),n},set(p){a==null||a(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function di(e){return Bi()?(Rl(e),!0):!1}function Ze(e,t=200,n={}){return xs(ou(t,n),e)}function Ss(e,t=200,n=!1,o=!0,i=!1){return xs(iu(t,n,o,i),e)}function ks(e,t=!0){uo()?He(e):t?e():vt(e)}function Yt(e){var t;const n=go(e);return(t=n==null?void 0:n.$el)!=null?t:n}const In=ui?window:void 0,lu=ui?window.document:void 0;function Lt(...e){let t,n,o,i;if(nu(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=In):[t,n,o,i]=e,!t)return zt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,d,p)=>(u.addEventListener(d,p,i),()=>u.removeEventListener(d,p,i)),a=ve(()=>Yt(t),u=>{s(),u&&r.push(...n.flatMap(d=>o.map(p=>l(u,d,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return di(c),c}function Cs(e,t=!1){const n=J(),o=()=>n.value=!!e();return o(),ks(o,t),n}const Is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ts="__vueuse_ssr_handlers__";Is[Ts]=Is[Ts]||{};function Es(){const e=uo(),t=su(()=>null,()=>e.proxy.$el);return Tr(t.trigger),He(t.trigger),t}function $s({document:e=lu}={}){if(!e)return J("visible");const t=J(e.visibilityState);return Lt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ms=Object.getOwnPropertySymbols,au=Object.prototype.hasOwnProperty,cu=Object.prototype.propertyIsEnumerable,uu=(e,t)=>{var n={};for(var o in e)au.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ms)for(var o of Ms(e))t.indexOf(o)<0&&cu.call(e,o)&&(n[o]=e[o]);return n};function du(e,t,n={}){const o=n,{window:i=In}=o,r=uu(o,["window"]);let s;const l=Cs(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=ve(()=>Yt(e),d=>{a(),l.value&&i&&d&&(s=new ResizeObserver(t),s.observe(d,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}function Ps(e,t={width:0,height:0},n={}){const{window:o=In,box:i="content-box"}=n,r=ie(()=>{var a,c;return(c=(a=Yt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=J(t.width),l=J(t.height);return du(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Yt(e);if(u){const d=o.getComputedStyle(u);s.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((d,{inlineSize:p})=>d+p,0),l.value=u.reduce((d,{blockSize:p})=>d+p,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),ve(()=>Yt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function fi(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=In}=n,l=Cs(()=>s&&"IntersectionObserver"in s);let a=zt;const c=l.value?ve(()=>({el:Yt(e),root:Yt(o)}),({el:d,root:p})=>{if(a(),!d)return;const S=new IntersectionObserver(t,{root:p,rootMargin:i,threshold:r});S.observe(d),a=()=>{S.disconnect(),a=zt}},{immediate:!0,flush:"post"}):zt,u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}var Os;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Os||(Os={}));var fu=Object.defineProperty,zs=Object.getOwnPropertySymbols,pu=Object.prototype.hasOwnProperty,hu=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?fu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gu=(e,t)=>{for(var n in t||(t={}))pu.call(t,n)&&Ls(e,n,t[n]);if(zs)for(var n of zs(t))hu.call(t,n)&&Ls(e,n,t[n]);return e};gu({linear:ru},{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 As(e={}){const{window:t=In,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=J(n),l=J(o),a=()=>{t&&(r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),ks(a),Lt("resize",a,{passive:!0}),i&&Lt("orientationchange",a,{passive:!0}),{width:s,height:l}}function mu(e){vn("hapticFeedback",e)}function pi(){return It("hapticFeedback")}const vu=(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(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;i<=c?(i++,r-=.65/c,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(o.remove(),clearInterval(s))}},ln={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>vu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},bu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},yu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},_u={class:"absolute bottom-0 left-0 right-0 flex justify-center pb-7 md:pb-6 lg:pb-4"},wu=we({__name:"AutoNext",props:{hasNext:{type:Boolean},offlineMode:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=J(null),r=J(null),s=J(!1),l=J(!1),a=J(n.seconds),c=J(n.seconds<=0),u=J(n.seconds),d=pi();He(()=>{let E;fi(r,g=>{l.value=g.some(k=>k.isIntersecting),c.value=n.seconds<=0,a.value=n.seconds,u.value=n.seconds,E&&(clearInterval(E),E=void 0),!(!l.value||c.value)&&(E=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(E),E=void 0,o("next"))},1e3))}),fi(i,g=>{s.value=g.some(k=>k.isIntersecting)}),Vt(()=>E&&clearInterval(E))});function p(){o("next"),d()}function S(){o("hide")}return(E,g)=>(z(),q("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center relative"},[at(G("div",bu,[E.hasNext?(z(),q("div",yu,[l.value?(z(),q("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:De(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):Se("",!0),at((z(),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:Be(p,["stop"])},[Et(qe(c.value?"Next":`Next in ${a.value}`),1)])),[[Z(ln)]])])):Se("",!0),at((z(),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:Be(S,["stop"])},[Et(qe(E.offlineMode?"Close":"Hide"),1)])),[[Z(ln)]])],512),[[Oc,s.value||!E.hasNext]]),G("div",_u,[xe(E.$slots,"bottom-center")])],512))}}),xu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
-
`,ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Bs=ye(
|
|
22
|
-
`]]]),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Hu=["onClick","onKeyup"],Tn=we({__name:"InputSelect",props:on({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=J(null),i=J({width:"",left:""});He(()=>{let s=!1;ve(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(i.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function r(s){s!==n.value&&(n.value=s)}return(s,l)=>(z(),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"},[G("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:De(i.value)},null,4),(z(!0),q(ke,null,nn(t.items,(a,c)=>at((z(),q("div",{key:c,tabindex:"0",class:Te(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>r(c),onKeyup:[vs(()=>r(c),["enter"]),vs(()=>r(c),["space"])]},[Et(qe(a),1)],42,Hu)),[[Z(ln),30]])),128))],512))}}),Vu=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"})),Wu={class:"flex items-center mb-8 last:mb-0"},Ku={class:"flex-grow overflow-hidden"},Zt=we({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(z(),q("div",Wu,[G("div",{class:Te(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},qe(t.label),3),G("div",Ku,[xe(t.$slots,"default")])]))}}),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Zt},Symbol.toStringTag,{value:"Module"})),qu={},Yu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Zu=[G("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Xu(e,t){return z(),q("svg",Yu,Zu)}const Rs=ye(qu,[["render",Xu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ju={},Qu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},ed=[G("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),G("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function td(e,t){return z(),q("svg",Qu,ed)}const Ns=ye(Ju,[["render",td]]),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));function od(e){if(e)try{return JSON.parse(e)}catch{return}}function id(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var dt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(dt||{}),At=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(At||{});const rd=.25,sd=5,ld=.25,En=.2,$n=5,ad=.05,cd=0,ud=5,Fs=5;function dd(e){var C,I,W,b,M,j,Y;const{titleName:t,isWebtoon:n}=e,o=ie(()=>t.value?id(t.value):location.hostname),i=J(fd(`tkr:${o.value}`)),r=m=>{i.value=m;const w=`tkr:${o.value}`;!m||!Object.keys(m).length?localStorage.removeItem(w):localStorage.setItem(w,JSON.stringify(m))},s=m=>{if(!i.value){r(m);return}const w={...i.value};Object.entries(m).forEach(([H,_])=>{_===void 0?delete w[H]:w[H]=_}),r(w)},l=J((C=i.value)==null?void 0:C.style),a=J((I=i.value)==null?void 0:I.direction),c=J((W=i.value)==null?void 0:W.gap),u=J(((b=i.value)==null?void 0:b.speed)??1),d=J(((M=i.value)==null?void 0:M.zoom)??1),p=J(((j=i.value)==null?void 0:j.breakFirst)??!1),S=J(((Y=i.value)==null?void 0:Y.autoNextSeconds)??Fs),E=ie({get(){return n.value?At.longStrip:l.value??e.defaultStyle.value??At.longStrip},set:m=>{if(l.value===m)return;const w=l.value===At.longStrip,H=m===At.longStrip;l.value=m,s({style:m}),w!==H&&(g.value=H?dt.vertical:dt.rtl)}}),g=ie({get(){return n.value?dt.vertical:a.value??e.defaultDirection.value??dt.vertical},set:m=>{a.value=m,s({direction:m})}}),k=ie({get:()=>c.value??e.defaultGap.value??0,set(m){c.value=m,s({gap:m})}}),T=ie({get:()=>u.value,set(m){u.value=m,s({speed:m===1?void 0:m})}}),X=ie({get:()=>d.value,set(m){d.value=m,s({zoom:m===1?void 0:m})}}),B=ie({get:()=>p.value,set(m){p.value=m,s({breakFirst:m?!0:void 0})}}),V=ie({get:()=>S.value,set(m){S.value=m,s({autoNextSeconds:m===Fs?void 0:m})}});return{direction:g,style:E,gap:k,speed:T,zoom:X,isLongStrip:ie(()=>E.value===At.longStrip),isDouble:ie(()=>E.value===At.double),isRTL:ie(()=>g.value===dt.rtl),isVertical:ie(()=>g.value===dt.vertical),breakFirst:B,autoNextSeconds:V}}function fd(e){const t=localStorage.getItem(e),n=od(t),o={};return n?(n.style!==void 0&&Object.values(At).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(dt).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=cd&&n.gap<=ud&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=En&&n.speed<=$n&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=En&&n.zoom<=$n&&(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 Hs=we({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},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=J(!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);mo({onKeyUp:c=>{c.key==="s"&&!c.metaKey&&!c.ctrlKey&&(i.value=!i.value)}});function l(c){o("update:zoom",Math.round(c)/100)}function a(){i.value=!1,o("help")}return(c,u)=>(z(),q(ke,null,[ee(nt,{title:"Reader settings (S)",disabled:c.disabled,onClick:u[0]||(u[0]=()=>i.value=!0)},{default:le(()=>[ee(Ns)]),_:1},8,["disabled"]),ee(Ds,{modelValue:i.value,"onUpdate:modelValue":u[6]||(u[6]=d=>i.value=d),name:s.value},{actions:le(()=>[ee(nt,{transparent:"",onClick:a},{default:le(()=>[ee(Rs)]),_:1})]),default:le(()=>[ee(Zt,{label:"Style"},{default:le(()=>[ee(Tn,{"model-value":c.readerStyle,items:r.value,"onUpdate:modelValue":u[1]||(u[1]=d=>o("update:reader-style",d))},null,8,["model-value","items"])]),_:1}),ee(Zt,{label:"Direction"},{default:le(()=>[ee(Tn,{"model-value":c.direction,items:c.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":u[2]||(u[2]=d=>o("update:direction",d))},null,8,["model-value","items"])]),_:1}),ee(Zt,{label:"Gap"},{default:le(()=>[ee(Tn,{"model-value":c.gap,items:["None","1px","2px","3px","4px","5px"],"onUpdate:modelValue":u[3]||(u[3]=d=>o("update:gap",d))},null,8,["model-value"])]),_:1}),c.hideAutoNext?Se("",!0):(z(),be(Zt,{key:0,label:"Auto Next"},{default:le(()=>[ee(Tn,{"model-value":c.autoNextSeconds<0?0:c.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":u[4]||(u[4]=d=>o("update:autoNextSeconds",d===0?-1:d))},null,8,["model-value"])]),_:1})),ee(Zt,{label:"Speed"},{default:le(()=>[ee(mi,{"model-value":c.speed,min:Z(rd),max:Z(sd),step:Z(ld),suffix:"x","onUpdate:modelValue":u[5]||(u[5]=d=>o("update:speed",d))},{suffix:le(()=>[Et(qe(c.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),ee(Zt,{label:"Zoom"},{default:le(()=>[ee(mi,{"model-value":Math.ceil(c.zoom*100),min:Z(En)*100,max:Z($n)*100,step:Z(ad)*100,"onUpdate:modelValue":l},{suffix:le(()=>[Et(qe(Math.ceil(c.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),hd={},gd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},md=[G("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[G("circle",{cx:"14",cy:"14",r:"12"}),G("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function vd(e,t){return z(),q("svg",gd,md)}const Vs=ye(hd,[["render",vd]]),bd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),yd={class:"block w-4 h-4"},_d={class:"w-12"},Ws=we({__name:"ButtonResetZoom",props:{zoom:{}},emits:["click"],setup(e,{emit:t}){const n=t;function o(i){n("click",i)}return(i,r)=>(z(),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:Be(o,["stop"])},[G("div",yd,[ee(Vs)]),G("div",_d,qe(Math.ceil(i.zoom*100))+"%",1)]))}}),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"}));async function an(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 an(e-1,t,n);i(r)},t)})}const xd={},Sd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kd=[dc('<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)];function Cd(e,t){return z(),q("svg",Sd,kd)}const Ks=ye(xd,[["render",Cd]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Td={},Ed={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$d=[G("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Md(e,t){return z(),q("svg",Ed,$d)}const Us=ye(Td,[["render",Md]]),Pd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Od=["aria-hidden"],zd=["onClick"],Ld={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},Ad={class:"whitespace-nowrap"},vi=we({__name:"ButtonDropdown",props:on({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function},enableHapticFeedback:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:on(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=xn(e,"modelValue"),r=J(null),s=J(!1),l=J(!1),a=J(!1),c=J(!1),u=J(!1),d={mounted:M=>{var j;(j=M.children[i.value])==null||j.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};mo({onKeyDown:X});const p=hi(),S=pi();async function E(){if(!n.items.length&&(s.value||await g(),!n.items.length)){s.value=!1;return}s.value=!s.value,p(s.value),s.value?(k(),V(r.value)):setTimeout(C,250)}async function g(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function k(){const M=r.value;if(M){const j=M.getBoundingClientRect(),Y=j.x+j.width/2;a.value=j.y>window.innerHeight/2,c.value=Y<window.innerWidth/3,u.value=Y>window.innerWidth/3*2}}function T(M,j){E(),M!=i.value&&(i.value=M,o("select",M,j),n.enableHapticFeedback&&S())}function X(M){s.value&&M.key==="Escape"&&(E(),M.preventDefault())}let B=[];function V(M){const j=window.getComputedStyle(M).zIndex,Y=M.style.zIndex;(!j||!(+j>0))&&((!M.parentElement||M.parentElement.childElementCount>1)&&(M.style.zIndex="1",B.push({el:M,zIndex:Y})),M.parentElement&&V(M.parentElement))}function C(){B.forEach(({el:M,zIndex:j})=>{M.style.zIndex=j??""}),B=[]}let I=!1;function W(){I||(I=!0,p(!0,{desktopOnly:!0}))}function b(){I&&(I=!1,p(!1,{desktopOnly:!0}))}return(M,j)=>(z(),q("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(z(),q("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:E})):Se("",!0),M.items.length?(z(),be(rn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:le(()=>[s.value?at((z(),q("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Te(["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":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:j[0]||(j[0]=Be(()=>{},["stop"])),onTouchmove:j[1]||(j[1]=Be(()=>{},["stop"]))},[(z(!0),q(ke,null,nn(M.items,(Y,m)=>at((z(),q("li",{key:m,tabindex:"-1",class:Te(["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:w=>T(m,w)},[G("div",{class:Te(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[xe(M.$slots,"item",{item:Y},()=>[Et(qe(Y),1)])],2)],10,zd)),[[Z(ln),30]])),128))],42,Od)),[[d]]):Se("",!0)]),_:3})):Se("",!0),at((z(),q("button",_n({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":M.disabled||l.value}]},M.title?{title:M.title}:{},{onClick:Be(E,["stop"]),onMouseenter:W,onMouseleave:b}),[G("div",Ld,[G("span",Ad,qe(M.label),1),M.items.length||M.canLoadItems?(z(),q("span",{key:0,class:Te(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(z(),be(Ks,{key:0})):(z(),be(Us,{key:1}))],2)):Se("",!0)])],16)),[[Z(ln),30]])],512))}}),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),qs=we({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const a=n.chapterSpec;if(!a)return;const{trigger:c,sel:u,label:d}=a;if(c&&(!u||!d)){await r(c);return}o("getHiddenChapters"),await an(50,50,()=>n.data.chapters.length?!0:void 0)}async function r(a){const c=document.querySelector(a);c&&(c instanceof HTMLDialogElement?c.showModal():c.click(),o("chaptersDialogOpen"))}function s(a,c){var u,d,p;(p=(d=(u=n.data)==null?void 0:u.chapters)==null?void 0:d[a])==null||p.select(l(c))}function l(a){return!n.touchDevice&&(a.ctrlKey||a.metaKey)}return(a,c)=>{var u;return z(),be(vi,{modelValue:a.data.activeIndex,label:a.data.activeLabel,title:"Select chapter",items:a.data.chapters,"can-load-items":!!((u=a.chapterSpec)!=null&&u.trigger),"load-items":i,"enable-haptic-feedback":"",onSelect:s},{item:le(({item:d})=>[Et(qe(d.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Dd={},Rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nd=[G("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Fd(e,t){return z(),q("svg",Rd,Nd)}const Ys=ye(Dd,[["render",Fd]]),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Zs=we({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=J(typeof n!="string"||+n!==t.direction),i=Ze(()=>o.value=!1,1250);ve(()=>t.direction,()=>{r(),o.value=!0,i()}),He(()=>{r(),i();let s;const l=$s();ve(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,i())})});function r(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(z(),be(rn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[o.value?(z(),q("div",{key:0,class:Te(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===Z(dt).vertical,"rotate-180":s.direction===Z(dt).rtl}])},[ee(Ys)],2)):Se("",!0)]),_:1}))}}),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Wd=G("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Xs=we({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=J(null),r=J([]);He(async()=>{const c=Ps(i),u=Ze(()=>{s({width:c.width.value,height:c.height.value})},50);u(),ve(c.width,u),ve(c.height,u)});function s(c){var p;const u=(p=i.value)==null?void 0:p.parentElement;if(!u)return;const d=Array.from(u.querySelectorAll("#controls [title]"));d.length&&(r.value=l(d,c))}function l(c,u){const d=[],p=[];let S=0,E=0;const g=50,k=25;c.forEach(C=>{var j;const I=(j=C.getAttribute("title"))==null?void 0:j.trim(),W=C.getBoundingClientRect();if(!I||!W.height||!W.width)return;const b=Math.ceil((W.top-10)/g),M=Math.ceil((W.left-10)/g);p.push({isTour:!1,title:I,rect:W,fromX:M,toX:Math.max(M+1,Math.ceil((W.right+10)/g)),fromY:b,toY:Math.max(b+1,Math.ceil((W.bottom+10)/g))})}),p.forEach(C=>{for(let I=C.fromY;I<C.toY;I++){d[I]??(d[I]=[]);for(let W=C.fromX;W<C.toX;W++)d[I][W]=C;C.toY>S+1&&(S=C.toY-1),C.toX>E+1&&(E=C.toX-1)}});let T=E/2;p.forEach(C=>{C.isAlignRight=C.fromX>T});const X=(C,I)=>{d[I]??(d[I]=[]);const W=I>=C.toY;if(C.isTour)for(let b=C.fromX;b<C.toX;b++)delete d[C.fromY][b],C.fromY=I,C.toY=I+(W?1:-1),d[I][b]=C;else{const b=C.isAlignRight?C.fromX-3:C.fromX,M=b+3;C.helpItem={fromX:b,toX:M,fromY:I,toY:I+1,isTour:!0,isAlignRight:C.isAlignRight};for(let j=b;j<M;j++)d[I][j]=C.helpItem}},B=(C,I)=>{if(I>S||I<0)return!1;const W=I>=C.toY,b=d[I];if(!b)return X(C,I),!0;const M=b[C.fromX];if(M&&!M.isTour)return!1;if(M&&M.isTour)return B(M,W?I+1:I-1)?(X(C,I),!0):!1;if(!M){const j=C.isAlignRight?-1:1;return b[C.fromX+j]||b[C.fromX+j*2]?B(C,W?I+1:I-1):(X(C,I),!0)}return!1};p.forEach(C=>{if(!B(C,C.toY)){if(C.isAlignRight){const I=d[C.fromY]??[];if(!I.slice(C.fromX-3,C.fromX).filter(Boolean).length){const b=C.fromX-3,M=C.fromX;C.helpItem={isTour:!0,isAlignRight:!0,fromX:b,toX:M,fromY:C.fromY,toY:C.toY};for(let j=C.fromX-3;j<C.fromX;j++)I[j]=C.helpItem;return}}B(C,C.fromY-1)}});const V=[];return p.forEach(C=>{const{title:I,helpItem:W,rect:b,isAlignRight:M,fromX:j,fromY:Y,toY:m}=C;if(!I||!W||!b)return;const w=W.fromY>=m,H=W.toY<=Y;V.push({title:a(I),style:{top:w?`${b.bottom+(W.fromY-m)*g+k}px`:H?void 0:`${b.top+8}px`,bottom:H?`${u.height-b.top+(W.toY-Y)*g+k}px`:void 0,left:M?void 0:`${b.left}px`,right:M?w?`${u.width-b.right}px`:`${u.width-b.right+b.width+k}px`:void 0},arrowStyle:{width:H||w?"2px":`${Math.abs(W.toX-j)*g+k-5}px`,height:H||w?`${(w?W.fromY-m:Y-W.toY)*g+k}px`:"2px",top:w?`${b.bottom}px`:H?void 0:`${b.top+20}px`,bottom:H?`${u.height-b.top}px`:void 0,left:M?void 0:`${b.left+b.width/2}px`,right:M?w?`${u.width-b.right+b.width/2}px`:`${u.width-b.right+b.width}px`:void 0}})}),V}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(z(),q(ke,null,[Wd,G("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=Be(d=>o("hide"),["stop"]))},[(z(!0),q(ke,null,nn(r.value,d=>(z(),q(ke,{key:d.title},[G("div",{class:"absolute",style:De(d.style)},qe(d.title),5),G("div",{class:"absolute bg-stone-300 rounded-lg",style:De(d.arrowStyle)},null,4)],64))),128))],512)],64))}}),Kd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Gs=we({__name:"PageNav",props:on({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=ie(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),i=ie(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:d})=>d===a));return c===-1?t.pages.length-1:c}),r=ie(()=>t.pages.length?`${o.value[i.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(z(),be(vi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),qd={},Yd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Zd=[G("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),G("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Xd(e,t){return z(),q("svg",Yd,Zd)}const bi=ye(qd,[["render",Xd]]),Gd=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),Jd={},Qd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},ef=[G("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function tf(e,t){return z(),q("svg",Qd,ef)}const yi=ye(Jd,[["render",tf]]),nf=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"})),Js=ye(we({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=J(0);return ve(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(z(),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"},[o.playing?(z(),be(yi,{key:0})):(z(),be(bi,{key:1}))])):Se("",!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
|
-
`]]]),
|
|
24
|
-
`]]]),
|
|
25
|
-
`,
|
|
26
|
-
`]]]),
|
|
27
|
-
`]]]),
|
|
28
|
-
`]]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),If={},Tf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ef=[G("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function $f(e,t){return z(),q("svg",Tf,Ef)}const il=ye(If,[["render",$f]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),Pf={},Of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zf=[G("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)];function Lf(e,t){return z(),q("svg",Of,zf)}const rl=ye(Pf,[["render",Lf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),Bf={},jf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[G("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)];function Rf(e,t){return z(),q("svg",jf,Df)}const sl=ye(Bf,[["render",Rf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),Ff={},Hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Vf=[G("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Wf(e,t){return z(),q("svg",Hf,Vf)}const ll=ye(Ff,[["render",Wf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),Uf={},qf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Yf=[G("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Zf(e,t){return z(),q("svg",qf,Yf)}const al=ye(Uf,[["render",Zf]]),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),Gf={},Jf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Qf=[G("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)];function ep(e,t){return z(),q("svg",Jf,Qf)}const cl=ye(Gf,[["render",ep]]),tp=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),np={},op={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ip=[G("g",{fill:"none"},[G("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"}),G("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)];function rp(e,t){return z(),q("svg",op,ip)}const ul=ye(np,[["render",rp]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),lp={},ap={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},cp=[G("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function up(e,t){return z(),q("svg",ap,cp)}const dl=ye(lp,[["render",up]]),dp=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),fp={},pp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},hp=[G("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function gp(e,t){return z(),q("svg",pp,hp)}const fl=ye(fp,[["render",gp]]),mp=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),vp={},bp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yp=[G("path",{fill:"currentColor",d:"M19 12.998h-6v6h-2v-6H5v-2h6v-6h2v6h6z"},null,-1)];function _p(e,t){return z(),q("svg",bp,yp)}const pl=ye(vp,[["render",_p]]),wp=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),xp={},Sp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},kp=[G("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Cp(e,t){return z(),q("svg",Sp,kp)}const hl=ye(xp,[["render",Cp]]),Ip=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"}));function Mn(e=0){return new Promise(t=>setTimeout(t,e))}function gl(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=l=>{if(!l)return r(void 0);const a=URL.createObjectURL(l);r(a)};try{n.toBlob(s,"image/jpeg",1)}catch{r(void 0)}})};return t(e,!1)}async function Tp(e,t){if(!t.startsWith("blob:"))return t;if(e.complete||await new Promise(a=>{let c=0;const u=setInterval(()=>{e.complete?(a(),clearInterval(u)):++c>=30&&a()},100)}),!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),i=o.getContext("2d"),r=e.naturalWidth,s=e.naturalHeight;return o.width=r,o.height=s,i==null||i.drawImage(e,0,0,r,s),await gl(o)}function ml(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const i=e.getAttribute(o);if(i)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function xi(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}class Ep{constructor({onChanged:t}){Le(this,"isMounted",!0);Le(this,"elsDisposeCallbacksMap",new Map);Le(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?ml(n):await gl(n):t.src;if(!(!n&&!i)){if(n&&!this.elsDisposeCallbacksMap.has(n))if(o){let r=i;const s=new MutationObserver(l=>{l.some(c=>{if(c.attributeName!=="src")return!1;const u=r;return r=n.getAttribute("src"),!!r&&u!==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),l=r.putImageData.bind(r),a=(c,u,d)=>(setTimeout(()=>this.download(t),100),c.apply(u,d));r.drawImage=new Proxy(s,{apply:a}),r.putImageData=new Proxy(l,{apply:a}),this.elsDisposeCallbacksMap.set(n,()=>{r.drawImage=s,r.putImageData=l})}}!i||!this.isMounted||(this.onChanged(t,{src:i,isLoading:!0,hasError:!1}),await this.downloadRawImage(t,i))}}async downloadRawImage(t,n){const o=t.el instanceof HTMLImageElement?t.el:void 0,i=o?await Tp(o,n):n;!i||!this.isMounted||await $p(i,o,r=>{if(!this.isMounted)return;const s=!!r&&!xi(r.width,r.height);this.onChanged(t,{src:i,size:r,isLoading:!1,hasError:!r,invalid:s})})}}async function $p(e,t,n){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?(n({width:t.naturalWidth,height:t.naturalHeight}),t.complete?void 0:new Promise(o=>{t.addEventListener("load",()=>o(),{once:!0})})):await new Promise(o=>{const i=new Image,r=setInterval(()=>{const{naturalWidth:s,naturalHeight:l}=i;l&&s&&(n({width:s,height:l}),clearInterval(r))},20);i.onerror=()=>{o(void 0),clearInterval(r)},i.onload=()=>o(),i.src=e})}const Mp=3;class Pp{constructor(t){Le(this,"download");Le(this,"threads");Le(this,"completedItems");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(Mp,()=>{const s=n[o];if(!s){this.completedItems=n;return}return i&&o===n.length-1?(i=!1,o=t-2):i?o++:o--,this.download(s)}),this.threads.exec()}}class Op{constructor(t,n){Le(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 Mn(20),this.next())}}class vl{constructor(){Le(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 zp(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 Si(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}return e instanceof HTMLAnchorElement&&e.addEventListener("click",t=>t.preventDefault(),{once:!0}),e.click()}async function Lp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=await an(50,30,()=>document.querySelector(n));return i?(Si(i),await Mn(),!0):!1}class Ap{constructor({spec:t,onChanged:n}){Le(this,"spec");Le(this,"onChanged");Le(this,"rawImages",[]);Le(this,"isMounted",!0);Le(this,"loadRawImagesTs");Le(this,"disconnectObservers");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 s;let t;const n=Ze(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),i=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Ze(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),i==null||i.disconnect()};let r=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),i==null||i.disconnect(),o.observe(t,{childList:!0,subtree:!0}),i==null||i.observe(t),r?n():(r=!0,this.loadRawImages(t)))})}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 l;const n=await Lp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let i=await an(n?100:1,10,()=>{for(const a of o.split(",")){const c=document.querySelector(a);if(c)return c}});if(!i)return;t(i);let r=0;const s=async()=>{if(this.isMounted&&!(i!=null&&i.isConnected)){if(r=0,i=await an(50,20,()=>{const a=document.querySelector(o);return a!=null&&a.isConnected&&a!==i?a: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 Bp(t,o):bl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function Bp(e,t){const n=zp(t,e);if(!n.length)return bl(e);const o=new vl;return n.map(r=>{const s=Array.from(r.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(yl(l))return{el:l,parentEl:r}}else if(l instanceof HTMLImageElement&&_l(l))return{el:l,parentEl:r}}return{parentEl:r}})}function bl(e){const t=[],n={},o=new vl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)yl(r)&&t.push({el:r});else if(r instanceof HTMLImageElement&&_l(r)){const s=ml(r);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push({el:r})}}}),t}function yl(e){return e.isConnected&&xi(e.width,e.height)}function _l(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||xi(t.width,t.height)}const ki="mp-scroll-container";class Ci{constructor(){Le(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),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??(l.src?document.querySelector(`img[src^="${l.src}"]`):void 0);if(!a)return;const c=a.getBoundingClientRect();if(o&&c.top<=0&&c.top+c.height>0)return;const u=Ci.getScrollable(a,r);if(!u)return;const{el:d,top:p}=u;r!==document.documentElement&&!d.classList.contains(ki)&&(d.classList.add(ki),this.unmountedCallbacks.has(d)||this.unmountedCallbacks.set(d,()=>{d.classList.remove(ki)}));const S=n>=t.length?c.height:i?Math.max(0,c.height-window.innerHeight+100):n%1*c.height,E={top:p+S,behavior:"instant"};d.scrollTo(E),d===document.body&&document.documentElement.scrollTo(E)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:l}=i;if(l&&s&&r.set(l,Math.max(r.get(l)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let c=0;return r.forEach((u,d)=>{c+=d===l?u-s:u}),{el:i,top:c}};return o(t,new Map)}}function wl(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 jp(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 wl(n)}function Dp(e){var M,j,Y;const t=(M=e.raw.value)==null?void 0:M.isWebtoon,n=J(t===!1),o=J(t);let i=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),s=((Y=(j=e.raw.value)==null?void 0:j.imgs)==null?void 0:Y.filter(Boolean))??[];let l=e.isAutoShow!==!1?e.page.value:s.length?jp(s):void 0,a=s.map(m=>({src:m})),c,u;const d=new Map,p=({src:m,el:w})=>{const H=w??m;return H?d.get(H):void 0},S=J(s.map(m=>({src:m,isLoading:!0,hasError:!1}))),E=()=>{const m=[];a.forEach(w=>{const{src:H,el:_}=w,L=_??H,K=L?d.get(L):void 0;(L&&!(K!=null&&K.invalid)||w.parentEl)&&m.push(K)}),S.value=m};let g=setTimeout(e.onTimeout,2e4);const k=()=>{g&&(clearTimeout(g),g=void 0)};let T=0,X=0;const B=4,V=new Ep({onChanged(m,w){const H=m.el??m.src;if(!H||(d.set(H,w),E(),w.isLoading))return;if(w.hasError){if(u||o.value!==void 0)return;u=setTimeout(()=>{u=void 0,o.value===void 0&&e.onError("Failed to load images")},3e3);return}const{size:_,invalid:L}=w;if(!(!_||L)){if(!o.value&&X<B){const K=i?a:a.filter(({el:Ee,src:$e})=>$e||!(Ee&&Ee instanceof HTMLImageElement&&!d.has(Ee)));let y=K.indexOf(m);if(i&&y>4||y===-1&&(m.el&&(y=K.findIndex(Ee=>Ee.el===m.el)),y===-1))return;const Q=y>Math.min(1,K.length-3)&&y<Math.max(K.length-2,3),de=_.width/_.height;de>2&&T++;const ce=de<.5||T>=B,ge=!ce&&.65<de&&de<.75;ge&&X++,o.value!==ce&&(Q||ce)&&(o.value=ce),Q&&n.value!=ge&&(n.value=!0),o.value===void 0&&ge&&X===B&&(o.value=!1)}b()}}}),C=new Pp({download:async m=>{!(m.el&&d.has(m.el))&&!(m.src&&d.has(m.src))&&await V.download(m)}}),I=()=>{C.run({items:a,activeIndex:Math.min(a.length-1,Math.floor(e.page.value))})},W=new Ci;if(s.length)I();else{let m=!1;c=new Ap({spec:e.spec,async onChanged(w){var H;if(a=w,E(),!e.raw.value&&!w.length){e.onError("no_img");return}(H=e.spec)!=null&&H.imgDivs&&!m&&e.isAutoShow!==!1&&e.page.value&&(m=!0,W.scrollTo({rawImages:w,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:r?document.body:document.documentElement}),await Mn(1)),l===void 0&&e.isAutoShow===!1&&(l=wl(w)),I()}})}Wo(()=>{V.dispose(),C.dispose(),c==null||c.dispose(),u&&clearTimeout(u),W.dispose(),i&&W.scrollTo({rawImages:a,page:e.page.value,fallbackScrollEl:document.documentElement})});function b(){if(i||o.value===void 0||l===void 0)return;const m=Math.max(0,Math.min(l,a.length)),w=Math.min(Math.floor(m),a.length-1);if(w>=1){const _=a[w];if(!_||!p(_)){e.isAutoShow&&W.scrollTo({rawImages:a,page:w,fallbackScrollEl:r?document.body:document.documentElement});return}for(let L=w;L<a.length;L++){const K=p(a[L]);if(!K)return;if(!K.invalid){if(!K.size&&!K.hasError)return;break}}for(let L=w-1;L>=0;L--){const{src:K,el:y}=a[L],Q=y??K;if(!Q)break;const de=d.get(Q);if(!de)return;if(!de.invalid){if(!de.size&&!de.hasError)return;break}}}if(i)return;i=!0,k(),e.onReady(m);let H=!0;ve(()=>Math.floor(e.page.value),(_,L)=>{_===L&&!H||(W.scrollTo({rawImages:a,page:_,isScrollDown:L===void 0||_>L||a.length===1,skipIfVisible:H&&a.length>1,fallbackScrollEl:r?document.body:document.documentElement}),H=!1,L??(L=-1),I())},{immediate:!0})}return{asyncImgs:ie(()=>S.value),isWebtoon:ie(()=>o.value??!1),isManga:ie(()=>n.value)}}function Rp(e,t,n){return ie(()=>t.value?xl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function xl(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,l)=>({img:s,index:n+l})),...xl(e.slice(r.length),t&&i,n+r.length)]}function Np(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=J(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 Fp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Ii=40;function Hp({page:e,totalImgs:t,direction:n,style:o,isLongStrip:i,isVertical:r,isRTL:s,spaceTop:l,scrollEl:a,isWebtoon:c,interferePlayer:u,onChangedPage:d,onInitialized:p,onFinished:S}){let E=!1,g=!1,k=!1,T;const X=Ze(j,300),B=Ss(()=>{j(),X()},300),V=y=>(W(y),Ze(W,50)(y));async function C(){b(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function I(){var y;g=!0,p(),Y(),(y=a.value)==null||y.addEventListener("scroll",B),setTimeout(()=>{const{width:Q,height:de}=As();ve(Q,()=>{r.value&&V(e.value)}),ve(de,()=>{r.value||V(e.value)}),ve(o,()=>V(e.value)),ve(n,()=>V(e.value)),/iPad|iPhone|iPod/.test(navigator.userAgent)&&ve(t,()=>{s.value&&V(e.value)})},300)}async function W(y){if(!(!g||E)){if(E=!0,await vt(),w()===y){E=!1;return}b(y)}}function b(y,{smooth:Q,ensureLastImgVisibility:de=!1}={smooth:!1}){const ce=a.value;if(!ce)return;E=!0;const ge=async()=>{await vt(),E=!1,g||I()},Ee=Math.floor(y),$e=wi(ce,Ee);if(!$e){ge();return}u(async()=>{await M(ce,!i.value&&Q,async()=>{await K(ce,$e,{smooth:Q,page:y,ensureLastImgVisibility:de})}),await ge()})}async function M(y,Q,de){Q&&y.style.setProperty("scroll-snap-type","none"),await de(),Q&&y.style.removeProperty("scroll-snap-type")}function j(){if(E)return;const y=w();y!==void 0&&y!==e.value&&d(y),Y()}function Y(){k||!k&&m()&&(k=!0,S())}function m(){const y=a.value;if(!y)return!1;const Q=i.value?c.value?3:!r.value&&y.clientWidth>y.clientHeight?2.25:2.5:2;return r.value?y.scrollHeight-y.scrollTop<y.clientHeight*Q:y.scrollWidth-(s.value?-y.scrollLeft:y.scrollLeft)<y.clientWidth*Q}function w(){const y=H();return y?(+y.getAttribute("data-index")||0)+(i.value?_(y):0):void 0}function H(){var Q;if(T??(T=a.value.getRootNode()),!T)return;const y=(Q=T.elementsFromPoint)==null?void 0:Q.call(T,r.value||!i.value?window.innerWidth/2:s.value?window.innerWidth-Ii:Ii,r.value&&i.value?l.value||Ii:window.innerHeight/2);if(y)for(let de=0;de<y.length;de++){const ce=y[de];if(ce.hasAttribute("data-index"))return ce;if(ce===a.value)break}}function _(y){const Q=y.getBoundingClientRect();return r.value?Math.abs(Q.top-l.value)/Q.height:s.value?Math.max(0,Q.right-a.value.clientWidth)/Q.width:Math.abs(Q.left)/Q.width}let L=!1;async function K(y,Q,de){if(L)return;const ce=Q.getBoundingClientRect();if(!i.value){if(r.value){if(ce.top<=0&&ce.bottom>=y.clientHeight)return}else if(ce.left<=0&&ce.right>=y.clientWidth)return}L=!0;const ge=r.value?y.scrollTop:y.scrollLeft,Ee=de.page,$e=i.value?Ee%1:0,ft=await an(30,10,async()=>{await Mn();let Oe;if(!(Q.offsetHeight<10))return i.value?r.value?Oe=Q.offsetTop+$e*Q.offsetHeight-l.value:s.value?Oe=Q.offsetLeft-y.clientWidth+Q.offsetWidth-$e*Q.offsetWidth:Oe=Q.offsetLeft+$e*Q.offsetWidth:r.value?Oe=Q.offsetTop+(ce.top>0?0:ce.height-y.clientHeight):Oe=Q.offsetLeft+(ce.left>0?0:ce.width-y.clientWidth),Ee>.5&&Math.abs(Oe)<100?void 0:Oe})??0,je=de.ensureLastImgVisibility?r.value?Math.min(ft,y.scrollHeight-y.clientHeight*2):s.value?Math.max(ft,-(y.scrollWidth-y.clientWidth*2)):Math.min(ft,y.scrollWidth-y.clientWidth*2):ft;if(!de.smooth){r.value?y.scrollTop=je:y.scrollLeft=je,L=!1;return}const yt=je-ge,Bt=30;let jt=0;return new Promise(Oe=>{(function it(){const rt=Vp(jt,ge,yt,Bt);r.value?y.scrollTop=rt:y.scrollLeft=rt,jt++,jt<=Bt?requestAnimationFrame(it):(Oe(),L=!1)})()})}return{init:C,goToPage:b}}function Vp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Wp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=J(typeof l=="string"?l==="true":e),c=ie({get:()=>a.value,set:b=>{a.value=b,sessionStorage.setItem("tk:playing",b?"true":"false")}}),u=J(!1);let d,p;const S=Ze(I,100),E=Ze(()=>{u.value=!0},t?2e3:1e3),g=()=>setTimeout(()=>{u.value=!1,E()},30);g(),t||Lt(window,"mousemove",g);const k=$s();He(()=>{ve(k,b=>{c.value&&(b==="visible"?I():p==null||p())}),ve(s,()=>T()),ve(r,b=>{b||B()})}),Vt(B);async function T(b){c.value&&(p==null||p()),b&&(await vt(),await b()),c.value&&S()}function X(){c.value?B():V()}function B(){c.value&&(c.value=!1,p==null||p(),g())}function V(){!c.value&&r.value&&(c.value=!0,I(),g())}function C(){p==null||p()}function I(){const b=n.value;if(!c.value||!b)return;const M=o.value?b.scrollHeight-b.clientHeight:b.scrollWidth-b.clientWidth,j=W();if(M<=j){B();return}p=()=>{d=Date.now(),p=void 0};const Y=Date.now();d=Y;const m=.05*s.value,w=o.value?"scrollTop":"scrollLeft";let H=Date.now(),_=0;const L=()=>{if(d!==Y)return;const K=Date.now(),y=K-H;H=K;const Q=m*y+_;Q>=1?(_=Q%1,b[w]+=(Q-_)*(i.value?-1:1)):_=Q,setTimeout(L,1)};L()}function W(){const b=n.value;return o.value?b.scrollTop:i.value?-b.scrollLeft:b.scrollLeft}return{isPlaying:c,isIdle:u,toggle:X,play:V,pause:C,resume:I,stop:B,interfere:T,awake:g}}function Kp({raw:e,spec:t,siteMeta:n,onSelect:o}){var j,Y,m;const{vol:i,inferVol:r,chap:s,title:l,slug:a,basePath:c}=e,u=t==null?void 0:t.chapter;let d=-1;async function p(w,H){if(o){o({...w});return}if(w.slug){S(w.slug,H);return}if(w.elIndex===void 0||!(u!=null&&u.sel))return;let _=null;document.querySelector(u.sel)||(u!=null&&u.trigger&&(_=document.querySelector(u.trigger)),_&&(_.click(),await new Promise(K=>setTimeout(()=>K(),50))));const L=u&&u.sel&&!u.url?document.querySelectorAll(u.sel):void 0;L!=null&&L[w.elIndex]&&(Si(L[w.elIndex]),_&&document.querySelector(u.sel)&&_.click())}function S(w,H){const _=Up(c,w,(n==null?void 0:n.trailing)??!0);H?window.open(_,"_blank","noopener"):location.href=_}function E(w){const H=B[w];return H?_=>p(H,_):void 0}function g(w,H,_){if(w){const L=document.querySelector(w);L&&Si(L);return}H&&S(H,_)}const k=i??r,T=u==null?void 0:u.url,X=((j=l.chapters)==null?void 0:j.filter(w=>w.slug||!T&&w.elIndex!==void 0))??[],B=X.length>1?X:[],V=(Y=e.prev)==null?void 0:Y.slug,C=(m=e.next)==null?void 0:m.slug,{prevBtn:I,nextBtn:W}=t??{};let b=V||I&&!B.length&&document.body.querySelector(I)?w=>g(I,V,w):void 0,M=C||W&&!B.length&&document.body.querySelector(W)?w=>g(W,C,w):void 0;if(B.length){if(T&&(d=B.findIndex(w=>w.slug===e.slug)),d===-1&&(d=B.findIndex(w=>(w.vol??w.inferVol)===k&&w.chap===s)),T&&d===-1&&(d=B.findIndex(w=>w.slug&&a.startsWith(`${w.slug}-`)&&a.length-w.slug.length>3)),d!==-1)b??(b=E(d+1)),M??(M=E(d-1));else if(!V&&!C){const w=B.findIndex(H=>{const _=H.vol??H.inferVol;return k===void 0||_===void 0||k===_?H.chap<s:_<k});w!==-1?(b=E(w),M=E(w-1)):M=E(B.length-1)}}return{activeIndex:d,activeLabel:Sl({vol:i,chap:s}),prev:b,next:M,chapters:B.map(w=>({label:Sl(w),select:H=>p(w,H)}))}}function Sl({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 vo=(e=>(e[e.never=0]="never",e[e.move=1]="move",e[e.moveFirst=2]="moveFirst",e))(vo||{});const qp={class:"flex justify-center items-center gap-1 pl-1 pr-2 h-full"},Yp=G("span",{class:"text-sm"},"Add to library",-1),Zp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},kl=ye(we({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},siteMeta:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean},offlineMode:{type:Boolean},autoNextSeconds:{},defaultGap:{},hideControlsEvent:{},progressSize:{}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters","hapticFeedback","pressedBack","selectChapter","timeout","readerStyleChanged"],setup(e,{emit:t}){const n=e,o=t;let i=!1,r;const s=J(!1),l=J(!1),a=ku({touchDevice:n.touchDevice}),c=Np(n.page,n.isAutoShow),u=ie(()=>n.immediate||s.value?n.spaceTop??0:0),{asyncImgs:d,isWebtoon:p,isManga:S}=Dp({raw:ie(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,async onReady(v){je(v),s.value=!0,n.immediate||o("readerStyleChanged",g.value)},onError:()=>{o("error"),N()},onTimeout:()=>o("timeout")}),{direction:E,style:g,isRTL:k,isDouble:T,isVertical:X,isLongStrip:B,gap:V,speed:C,zoom:I,breakFirst:W,autoNextSeconds:b}=dd({isWebtoon:p,isManga:S,titleName:ie(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),defaultStyle:ie(()=>n.readerStyle),defaultDirection:ie(()=>n.direction),defaultGap:ie(()=>n.defaultGap)});n.immediate&&o("readerStyleChanged",g.value),ve(g,v=>{s.value&&o("readerStyleChanged",v)});const M=J(!1),j=Rp(d,T,W),Y=ie(()=>d.value.length),m=ie(()=>c.value>=Y.value),w=ie(()=>n.raw?Kp({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta,onSelect:n.offlineMode?v=>o("selectChapter",v):void 0}):void 0),H=J(null),_=Es(),L=J(!1),K=J(!1),y=Wp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var v;return(v=H.value)==null?void 0:v.$el}),speed:C,isRTL:k,isVertical:X,isLongStrip:B}),Q=ie(()=>!n.touchDevice&&y.isIdle.value&&!a.value&&!M.value),de=ie({get(){return I.value},set(v){y.interfere(()=>{I.value=v})}}),ce=Hp({page:c,totalImgs:Y,style:g,direction:E,isLongStrip:B,isVertical:X,isRTL:k,spaceTop:u,isWebtoon:p,scrollEl:ie(()=>{var v;return(v=H.value)==null?void 0:v.$el}),interferePlayer:v=>y.interfere(v),onChangedPage:je,onInitialized(){o("ready"),l.value=!0,r=yt()},onFinished:()=>o("finished")}),ge=ie(()=>Math.floor(c.value)),Ee=ie(()=>D()),$e=()=>y.interfere(()=>Mn(100));Lu().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const A=B.value&&X.value,re=B.value&&!X.value,pe=!B.value&&X.value,pt=!B.value&&!X.value;switch(v.key){case" ":v.preventDefault(),B.value?(ue(!1),y.toggle()):$();break;case"ArrowUp":case"PageUp":A?$e():pe&&ge.value!==0&&(v.preventDefault(),R());break;case"ArrowDown":case"PageDown":A?$e():pe&&!m.value&&(v.preventDefault(),F());break;case"ArrowLeft":re?$e():pt?(v.preventDefault(),P()):X.value&&rt();break;case"ArrowRight":re?$e():pt?(v.preventDefault(),O()):X.value&&it();break;case"Escape":v.preventDefault();break}},onKeyUp:v=>{switch(v.key){case"b":W.value=!W.value;break;case"f":ne();break;case"t":U();break;case"h":ue();break}}}),mu(()=>o("hapticFeedback")),Lt("fullscreenchange",()=>{L.value=!!document.fullscreenElement}),ve(y.isPlaying,v=>{v||$(!1),o("playingChanged",v)}),ve(y.isIdle,v=>{y.isPlaying.value&&$(v)}),ve(a,v=>{!v&&y.isIdle.value?y.awake():v&&n.fullScreen&&$()});function je(v){if(c.value===v)return;const A=d.value.length;if(v<0||v>=A+1)return;const re=Math.floor(v*100)/100;if(re===c.value)return;const pe=c.value;if(c.value=re,o("pageChanged",re),v>=A){$(!1),y.stop();return}if(v<.01&&pe>v){$(!1),y.awake();return}const Pn=n.hideControlsEvent??vo.moveFirst;if(!i&&Pn===vo.moveFirst){B.value?r!==void 0&&yt()-r>300&&$(!0):Math.abs(pe-v)===1&&$(!0);return}!y.isPlaying.value&&Pn===vo.move&&$(!0)}function yt(){var A;const v=(A=H.value)==null?void 0:A.$el;return v?X.value?v.scrollTop:k.value?-v.scrollLeft:v.scrollLeft:0}function Bt(){!n.touchDevice&&!B.value&&ce.goToPage(ge.value,{smooth:!0})}function jt(){if(y.isPlaying.value){!n.fullScreen||!n.touchDevice?y.stop():y.awake();return}$()}function Oe(v){n.offlineMode&&(v.preventDefault(),o("pressedBack"))}function it(v=!1){var A,re;(re=(A=w.value)==null?void 0:A.next)==null||re.call(A,v)}function rt(v=!1){var A,re;(re=(A=w.value)==null?void 0:A.prev)==null||re.call(A,v)}function f(v){k.value?it(x(v)):rt(x(v))}function h(v){k.value?rt(x(v)):it(x(v))}function x(v){return!n.touchDevice&&(v.ctrlKey||v.metaKey)}function P(){k.value?F():R()}function O(){k.value?R():F()}function R(){var re;const v=j.value,A=m.value?v[v.length-1][0].index:(re=v[D()-1])==null?void 0:re[0].index;A!==void 0?ce.goToPage(A):rt()}function F(){var v,A;if(m.value)it();else{const re=((A=(v=j.value[D()+1])==null?void 0:v[0])==null?void 0:A.index)??d.value.length;ce.goToPage(re)}}function D(){const v=ge.value,A=j.value.findIndex(re=>re.some(({index:pe})=>pe===v));return A===-1?j.value.length-1:A}function N(){if(n.offlineMode){o("pressedBack");return}Fp(),o("dispose")}async function $(v){if(a.value&&!n.fullScreen)return;const A=typeof v=="boolean"?v:!n.fullScreen;A!==n.fullScreen&&(i=!0,o("fullScreenChanged",A),A&&setTimeout(()=>{n.fullScreen&&a.value&&o("fullScreenChanged",!1)},100))}function U(){n.entryId?se():te()}function ne(){var v,A;document.fullscreenElement?document.exitFullscreen():(A=(v=_.value)==null?void 0:v.querySelector("#reader-layout"))==null||A.requestFullscreen()}function te(){y.stop(),o("addEntry")}function se(){y.stop(),o("openEntry",n.entryId)}function ue(v){K.value!==v&&(K.value=!K.value,K.value&&y.isPlaying.value&&y.stop())}return(v,A)=>v.immediate||s.value?(z(),be(nl,{key:0,loading:!l.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,zooming:M.value,idle:Q.value,"space-top":u.value,rtl:Z(k),onClick:A[15]||(A[15]=Be(()=>{},["stop"]))},Ko({settings:le(()=>{var re;return[ee(Hs,{"reader-style":Z(g),"onUpdate:readerStyle":A[6]||(A[6]=pe=>Me(g)?g.value=pe:null),direction:Z(E),"onUpdate:direction":A[7]||(A[7]=pe=>Me(E)?E.value=pe:null),gap:Z(V),"onUpdate:gap":A[8]||(A[8]=pe=>Me(V)?V.value=pe:null),speed:Z(C),"onUpdate:speed":A[9]||(A[9]=pe=>Me(C)?C.value=pe:null),zoom:de.value,"onUpdate:zoom":A[10]||(A[10]=pe=>de.value=pe),"auto-next-seconds":Z(b),"onUpdate:autoNextSeconds":A[11]||(A[11]=pe=>Me(b)?b.value=pe:null),name:(re=v.raw)==null?void 0:re.title.name,webtoon:Z(p),disabled:!s.value,"hide-auto-next":v.autoNextSeconds!==void 0,onHelp:ue},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled","hide-auto-next"])]}),"reset-zoom":le(()=>[ee(rn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[M.value||Z(I)!==1?(z(),be(Ws,{key:0,zoom:de.value,onClick:A[14]||(A[14]=Be(()=>de.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):Se("",!0)]),_:1})]),default:le(()=>{var re;return[s.value?(z(),be(tl,{key:0,ref_key:"body",ref:H,zoom:de.value,"onUpdate:zoom":A[0]||(A[0]=pe=>de.value=pe),zooming:M.value,"onUpdate:zooming":A[1]||(A[1]=pe=>M.value=pe),page:Z(c),"page-index":ge.value,pages:Z(j),"total-imgs":Z(d).length,direction:Z(E),gap:Z(V),"is-long-strip":Z(B),isRTL:Z(k),"is-double":Z(T),"is-vertical":Z(X),"space-top":u.value,busy:Z(a),idle:Q.value,"play-controller":Z(y),"touch-device":v.touchDevice,"has-next":!!((re=w.value)!=null&&re.next),onReady:Z(ce).init,onPrev:R,onNext:F,onClick:jt,onDragEnd:Bt,onWheelPassive:A[2]||(A[2]=()=>Z(y).interfere())},Ko({_:2},[s.value&&Z(d).length?{name:"end",fn:le(()=>{var pe;return[ee(Bs,{"has-next":!!((pe=w.value)!=null&&pe.next),"offline-mode":!!v.offlineMode,seconds:v.autoNextSeconds??Z(b),onNext:it,onHide:N},Ko({_:2},[Z(I)===1&&!v.entryId&&v.raw&&!v.offlineMode?{name:"bottom-center",fn:le(()=>[ee(gi,{class:"bg-primary w-min !h-9 !bg-opacity-100",onClick:U},{default:le(()=>[G("div",qp,[ee(pl,{class:"flex-shrink-0 w-auto"}),Yp])]),_: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"])):Se("",!0),l.value&&!m.value&&!v.tourEnabled?(z(),be(Zs,{key:1,direction:Z(E)},null,8,["direction"])):Se("",!0),l.value&&!m.value?(z(),be(Js,{key:2,playing:!!Z(y).isPlaying.value},null,8,["playing"])):Se("",!0),K.value?(z(),be(Xs,{key:3,"touch-device":v.touchDevice,onHide:ue},null,8,["touch-device"])):Se("",!0),v.tourEnabled?(z(),be(ol,{key:4,onHide:A[3]||(A[3]=()=>o("tourEnabledChanged",!1))})):Se("",!0)]}),_:2},[v.raw||v.offlineMode?{name:"back",fn:le(()=>[ee(nt,{href:v.offlineMode||!v.raw?"#":v.raw.title.url,title:"Back to manga","enable-haptic-feedback":"",onClick:Oe},{default:le(()=>[ee(il)]),_:1},8,["href"])]),key:"0"}:void 0,!v.touchDevice&&!v.offlineMode?{name:"exit",fn:le(()=>[ee(nt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:N},{default:le(()=>[ee(hl)]),_:1})]),key:"1"}:void 0,w.value?{name:"chapter-nav",fn:le(()=>{var re;return[ee(qs,{"touch-device":v.touchDevice,"chapter-spec":(re=v.spec)==null?void 0:re.chapter,data:w.value,onGetHiddenChapters:A[4]||(A[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:A[5]||(A[5]=()=>$(!0))},null,8,["touch-device","chapter-spec","data"]),w.value.next||w.value.prev?(z(),q("div",Zp,[ee(nt,{title:`${Z(k)?"Next":"Prev"} chapter (←)`,disabled:Z(k)?!w.value.next:!w.value.prev,class:"!rounded-r-none","enable-haptic-feedback":"",onClick:f},{default:le(()=>[ee(ll)]),_:1},8,["title","disabled"]),ee(nt,{title:`${Z(k)?"Prev":"Next"} chapter (→)`,disabled:Z(k)?!w.value.prev:!w.value.next,class:"!rounded-l-none","enable-haptic-feedback":"",onClick:h},{default:le(()=>[ee(al)]),_:1},8,["title","disabled"])])):Se("",!0)]}),key:"2"}:void 0,Z(j).length?{name:"page-nav",fn:le(()=>[ee(Gs,{"model-value":ge.value,disabled:!l.value,pages:Z(j),"total-imgs":Z(d).length,"onUpdate:modelValue":Z(ce).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,!v.offlineMode&&v.raw?{name:"entry",fn:le(()=>[ee(nt,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:U},{default:le(()=>[v.entryId?(z(),be(sl,{key:0})):(z(),be(rl,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:le(()=>[ee(nt,{title:`${L.value?"Exit":"Enter"} fullscreen (F)`,onClick:ne},{default:le(()=>[L.value?(z(),be(fl,{key:0})):(z(),be(dl,{key:1}))]),_:1},8,["title"])]),key:"5"},Z(B)?{name:"play",fn:le(()=>[ee(nt,{"data-tour":"Press here to play like a video",title:`${Z(y).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:A[12]||(A[12]=()=>Z(y).toggle())},{default:le(()=>[Z(y).isPlaying.value?(z(),be(bi,{key:0})):(z(),be(yi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Z(T)?{name:"break-first",fn:le(()=>[ee(nt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:A[13]||(A[13]=()=>W.value=!Z(W))},{default:le(()=>[Z(W)?(z(),be(ul,{key:0})):(z(),be(cl,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0,v.progressSize!==0&&!m.value?{name:"progress",fn:le(()=>[ee(Qs,{"current-index":Ee.value,total:Z(j).length,height:v.progressSize??2,rtl:Z(k)},null,8,["current-index","total","height","rtl"])]),key:"8"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):Se("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.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{inset: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{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.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))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(184 92 56/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-textPrimary{--tw-bg-opacity:1;background-color:rgb(251 130 82/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.\\!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))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.text-textPrimary{--tw-text-opacity:1;color:rgb(251 130 82/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\: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
|
-
`]]]),Xp=Object.freeze(Object.defineProperty({__proto__:null,default:
|
|
30
|
-
`,Xt="gear-second",Ti={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,tourEnabled:void 0,offlineMode:void 0,autoNextSeconds:void 0,defaultGap:void 0,progressSize:void 0,hideControlsEvent:void 0,onError: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
|
|
20
|
+
**/const kc="http://www.w3.org/2000/svg",Cc="http://www.w3.org/1998/Math/MathML",Mt=typeof document<"u"?document:null,ns=Mt&&Mt.createElement("template"),Ic={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"?Mt.createElementNS(kc,e):t==="mathml"?Mt.createElementNS(Cc,e):Mt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Mt.createTextNode(e),createComment:e=>Mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mt.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{ns.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=ns.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Pt="transition",kn="animation",Cn=Symbol("_vtc"),rn=(e,{slots:t})=>ts(Aa,Tc(e),t);rn.displayName="Transition";const os={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};rn.props=Ce({},xr,os);const Ut=(e,t=[])=>{oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},is=e=>e?oe(e)?e.some(t=>t.length>1):e.length>1:!1;function Tc(e){const t={};for(const m in e)m in os||(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:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,E=Ec(i),g=E&&E[0],k=E&&E[1],{onBeforeEnter:I,onEnter:X,onEnterCancelled:L,onLeave:V,onLeaveCancelled:C,onBeforeAppear:T=I,onAppear:W=X,onAppearCancelled:b=L}=t,M=(m,w,H)=>{qt(m,w?u:l),qt(m,w?c:s),H&&H()},j=(m,w)=>{m._isLeaving=!1,qt(m,d),qt(m,S),qt(m,p),w&&w()},Y=m=>(w,H)=>{const _=m?W:X,A=()=>M(w,m,H);Ut(_,[w,A]),rs(()=>{qt(w,m?a:r),Ot(w,m?u:l),is(_)||ss(w,o,g,A)})};return Ce(t,{onBeforeEnter(m){Ut(I,[m]),Ot(m,r),Ot(m,s)},onBeforeAppear(m){Ut(T,[m]),Ot(m,a),Ot(m,c)},onEnter:Y(!1),onAppear:Y(!0),onLeave(m,w){m._isLeaving=!0;const H=()=>j(m,w);Ot(m,d),Pc(),Ot(m,p),rs(()=>{m._isLeaving&&(qt(m,d),Ot(m,S),is(V)||ss(m,o,k,H))}),Ut(V,[m,H])},onEnterCancelled(m){M(m,!1),Ut(L,[m])},onAppearCancelled(m){M(m,!0),Ut(b,[m])},onLeaveCancelled(m){j(m),Ut(C,[m])}})}function Ec(e){if(e==null)return null;if(_e(e))return[oi(e.enter),oi(e.leave)];{const t=oi(e);return[t,t]}}function oi(e){return So(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Cn]||(e[Cn]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Cn];n&&(n.delete(t),n.size||(e[Cn]=void 0))}function rs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let $c=0;function ss(e,t,n,o){const i=e._endId=++$c,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=Mc(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),r()},p=S=>{S.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,p)}function Mc(e,t){const n=window.getComputedStyle(e),o=E=>(n[E]||"").split(", "),i=o(`${Pt}Delay`),r=o(`${Pt}Duration`),s=ls(i,r),l=o(`${kn}Delay`),a=o(`${kn}Duration`),c=ls(l,a);let u=null,d=0,p=0;t===Pt?s>0&&(u=Pt,d=s,p=r.length):t===kn?c>0&&(u=kn,d=c,p=a.length):(d=Math.max(s,c),u=d>0?s>c?Pt:kn:null,p=u?u===Pt?r.length:a.length:0);const S=u===Pt&&/\b(transform|all)(,|$)/.test(o(`${Pt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:S}}function ls(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>as(n)+as(e[o])))}function as(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Pc(){return document.body.offsetHeight}function Oc(e,t,n){const o=e[Cn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ii=Symbol("_vod"),zc={beforeMount(e,{value:t},{transition:n}){e[ii]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):In(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),In(e,!0),o.enter(e)):o.leave(e,()=>{In(e,!1)}):In(e,t))},beforeUnmount(e,{value:t}){In(e,t)}};function In(e,t){e.style.display=t?e[ii]:"none"}const Lc=Symbol("");function Ac(e,t,n){const o=e.style,i=o.display,r=Ie(n);if(n&&!r){if(t&&!Ie(t))for(const s in t)n[s]==null&&ri(o,s,"");for(const s in n)ri(o,s,n[s])}else if(r){if(t!==n){const s=o[Lc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ii in e&&(o.display=i)}const cs=/\s*!important$/;function ri(e,t,n){if(oe(n))n.forEach(o=>ri(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Bc(e,t);cs.test(n)?e.setProperty(Ue(o),n.replace(cs,""),"important"):e[o]=n}}const us=["Webkit","Moz","ms"],si={};function Bc(e,t){const n=si[t];if(n)return n;let o=Ne(t);if(o!=="filter"&&o in e)return si[t]=o;o=An(o);for(let i=0;i<us.length;i++){const r=us[i]+o;if(r in e)return si[t]=r}return t}const ds="http://www.w3.org/1999/xlink";function jc(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ds,t.slice(6,t.length)):e.setAttributeNS(ds,t,n);else{const r=jl(t);n==null||r&&!Li(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Dc(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Li(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function sn(e,t,n,o){e.addEventListener(t,n,o)}function Rc(e,t,n,o){e.removeEventListener(t,n,o)}const fs=Symbol("_vei");function Nc(e,t,n,o,i=null){const r=e[fs]||(e[fs]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=Fc(t);if(o){const c=r[t]=Wc(o,i);sn(e,l,c,a)}else s&&(Rc(e,l,s,a),r[t]=void 0)}}const ps=/(?:Once|Passive|Capture)$/;function Fc(e){let t;if(ps.test(e)){t={};let o;for(;o=e.match(ps);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let li=0;const Hc=Promise.resolve(),Vc=()=>li||(Hc.then(()=>li=0),li=Date.now());function Wc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(Kc(o,n.value),t,5,[o])};return n.value=e,n.attached=Vc(),n}function Kc(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 hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Uc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?Oc(e,o,c):t==="style"?Ac(e,n,o):Pn(t)?bo(t)||Nc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qc(e,t,o,c))?Dc(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),jc(e,t,o,c))};function qc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&hs(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return hs(t)&&Ie(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Yc(e,t){const n=we(e);class o extends ai{constructor(r){super(n,r,t)}}return o.def=n,o}const Zc=typeof HTMLElement<"u"?HTMLElement:class{};class ai extends Zc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),vt(()=>{this._connected||(ys(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{const{props:r,styles:s}=o;let l;if(r&&!oe(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=So(this._props[a])),(l||(l=Object.create(null)))[Ne(a)]=!0)}this._numberProps=l,i&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=oe(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of o.map(Ne))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ne(t);this._numberProps&&this._numberProps[o]&&(n=So(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){ys(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ee(this._def,Ce({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(r,s)=>{this.dispatchEvent(new CustomEvent(r,{detail:s}))};n.emit=(r,...s)=>{o(r,s),Ue(r)!==r&&o(Ue(r),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof ai){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const gs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return oe(t)?n=>Bn(t,n):t};function Xc(e){e.target.composing=!0}function ms(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ci=Symbol("_assign"),Gc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ci]=gs(i);const r=o||i.props&&i.props.type==="number";sn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=xo(l)),e[ci](l)}),n&&sn(e,"change",()=>{e.value=e.value.trim()}),t||(sn(e,"compositionstart",Xc),sn(e,"compositionend",ms),sn(e,"change",ms))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ci]=gs(r),e.composing)return;const s=i||e.type==="number"?xo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Jc=["ctrl","shift","alt","meta"],Qc={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)=>Jc.some(n=>e[`${n}Key`]&&!t.includes(n))},je=(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 l=Qc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},eu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=Ue(i.key);if(t.some(s=>s===r||eu[s]===r))return e(i)})},tu=Ce({patchProp:Uc},Ic);let bs;function nu(){return bs||(bs=ic(tu))}const ys=(...e)=>{nu().render(...e)};var _s;const ui=typeof window<"u",ws=e=>typeof e=="function",ou=e=>typeof e=="string",zt=()=>{};ui&&((_s=window==null?void 0:window.navigator)!=null&&_s.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():Z(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 iu(e,t={}){let n,o,i=zt;const r=l=>{clearTimeout(l),i(),i=zt};return l=>{const a=po(e),c=po(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{i=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function ru(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=zt,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=zt)};return d=>{const p=po(e),S=Date.now()-i,E=()=>a=d();if(c(),p<=0)return i=Date.now(),E();if(S>p&&(n||!s))i=Date.now(),E();else if(t)return new Promise((g,k)=>{l=o?k:g,r=setTimeout(()=>{i=Date.now(),s=!0,g(E()),c()},p-S)});return!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1,a}}function su(e){return e}function lu(e,t){let n,o,i;const r=J(!0),s=()=>{r.value=!0,i()};be(e,s,{flush:"sync"});const l=ws(t)?t:t.get,a=ws(t)?void 0:t.set,c=lr((u,d)=>(o=u,i=d,{get(){return r.value&&(n=l(),r.value=!1),o(),n},set(p){a==null||a(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function di(e){return Bi()?(Nl(e),!0):!1}function Ze(e,t=200,n={}){return xs(iu(t,n),e)}function Ss(e,t=200,n=!1,o=!0,i=!1){return xs(ru(t,n,o,i),e)}function ks(e,t=!0){ao()?He(e):t?e():vt(e)}function Yt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Tn=ui?window:void 0,au=ui?window.document:void 0;function Lt(...e){let t,n,o,i;if(ou(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=Tn):[t,n,o,i]=e,!t)return zt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,d,p)=>(u.addEventListener(d,p,i),()=>u.removeEventListener(d,p,i)),a=be(()=>Yt(t),u=>{s(),u&&r.push(...n.flatMap(d=>o.map(p=>l(u,d,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return di(c),c}function Cs(e,t=!1){const n=J(),o=()=>n.value=!!e();return o(),ks(o,t),n}const Is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ts="__vueuse_ssr_handlers__";Is[Ts]=Is[Ts]||{};function Es(){const e=ao(),t=lu(()=>null,()=>e.proxy.$el);return Tr(t.trigger),He(t.trigger),t}function $s({document:e=au}={}){if(!e)return J("visible");const t=J(e.visibilityState);return Lt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ms=Object.getOwnPropertySymbols,cu=Object.prototype.hasOwnProperty,uu=Object.prototype.propertyIsEnumerable,du=(e,t)=>{var n={};for(var o in e)cu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ms)for(var o of Ms(e))t.indexOf(o)<0&&uu.call(e,o)&&(n[o]=e[o]);return n};function fu(e,t,n={}){const o=n,{window:i=Tn}=o,r=du(o,["window"]);let s;const l=Cs(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=be(()=>Yt(e),d=>{a(),l.value&&i&&d&&(s=new ResizeObserver(t),s.observe(d,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}function Ps(e,t={width:0,height:0},n={}){const{window:o=Tn,box:i="content-box"}=n,r=ie(()=>{var a,c;return(c=(a=Yt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=J(t.width),l=J(t.height);return fu(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Yt(e);if(u){const d=o.getComputedStyle(u);s.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((d,{inlineSize:p})=>d+p,0),l.value=u.reduce((d,{blockSize:p})=>d+p,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),be(()=>Yt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function fi(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=Tn}=n,l=Cs(()=>s&&"IntersectionObserver"in s);let a=zt;const c=l.value?be(()=>({el:Yt(e),root:Yt(o)}),({el:d,root:p})=>{if(a(),!d)return;const S=new IntersectionObserver(t,{root:p,rootMargin:i,threshold:r});S.observe(d),a=()=>{S.disconnect(),a=zt}},{immediate:!0,flush:"post"}):zt,u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}var Os;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Os||(Os={}));var pu=Object.defineProperty,zs=Object.getOwnPropertySymbols,hu=Object.prototype.hasOwnProperty,gu=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?pu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mu=(e,t)=>{for(var n in t||(t={}))hu.call(t,n)&&Ls(e,n,t[n]);if(zs)for(var n of zs(t))gu.call(t,n)&&Ls(e,n,t[n]);return e};mu({linear:su},{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 As(e={}){const{window:t=Tn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=J(n),l=J(o),a=()=>{t&&(r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),ks(a),Lt("resize",a,{passive:!0}),i&&Lt("orientationchange",a,{passive:!0}),{width:s,height:l}}function vu(e){bn("hapticFeedback",e)}function pi(){return It("hapticFeedback")}const bu=(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(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;i<=c?(i++,r-=.65/c,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(o.remove(),clearInterval(s))}},ln={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>bu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},yu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},_u={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},wu={class:"absolute bottom-0 left-0 right-0 flex justify-center pb-7 md:pb-6 lg:pb-4"},xu=we({__name:"AutoNext",props:{hasNext:{type:Boolean},offlineMode:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=J(null),r=J(null),s=J(!1),l=J(!1),a=J(n.seconds),c=J(n.seconds<=0),u=J(n.seconds),d=pi();He(()=>{let E;fi(r,g=>{l.value=g.some(k=>k.isIntersecting),c.value=n.seconds<=0,a.value=n.seconds,u.value=n.seconds,E&&(clearInterval(E),E=void 0),!(!l.value||c.value)&&(E=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(E),E=void 0,o("next"))},1e3))}),fi(i,g=>{s.value=g.some(k=>k.isIntersecting)}),Vt(()=>E&&clearInterval(E))});function p(){o("next"),d()}function S(){o("hide")}return(E,g)=>(z(),q("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center relative"},[at(G("div",yu,[E.hasNext?(z(),q("div",_u,[l.value?(z(),q("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:Ae(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):Se("",!0),at((z(),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:je(p,["stop"])},[Et(qe(c.value?"Next":`Next in ${a.value}`),1)])),[[Z(ln)]])])):Se("",!0),at((z(),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:je(S,["stop"])},[Et(qe(E.offlineMode?"Close":"Hide"),1)])),[[Z(ln)]])],512),[[zc,s.value||!E.hasNext]]),G("div",wu,[xe(E.$slots,"bottom-center")])],512))}}),Su=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
+
`,ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Bs=ye(xu,[["styles",[Su]]]),ku=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"}));function Cu({touchDevice:e}){const t=J(!1);let n=0;return bn("busy:touchDevice",e),bn("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function hi(){const e=It("busy:touchDevice"),t=It("setBusyState");let n=!1;return Vt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const Iu={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"},gi=we({__name:"BaseButton",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean},enableHapticFeedback:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,i=hi(),r=pi();let s=!1;function l(){s||(s=!0,i(!0,{desktopOnly:!0}))}function a(){s&&(s=!1,i(!1,{desktopOnly:!0}))}function c(u){n.disabled?u.preventDefault():(o("click",u),n.enableHapticFeedback&&r())}return(u,d)=>at((z(),ve(yr(u.href?"a":"button"),wn(u.href?{href:u.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":u.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!u.disabled,"bg-black bg-opacity-50":!u.transparent}],onClick:je(c,["stop"]),onMouseenter:l,onMouseleave:a}),{default:le(()=>[G("div",Iu,[xe(u.$slots,"default")])]),_:3},16,["class"])),[[Z(ln),u.disabled?0:15]])}}),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),nt=we({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean},enableHapticFeedback:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=t;return(o,i)=>(z(),ve(gi,{class:"w-10",disabled:o.disabled,href:o.href,transparent:o.transparent,"enable-haptic-feedback":o.enableHapticFeedback,onClick:i[0]||(i[0]=r=>n("click",r))},{default:le(()=>[xe(o.$slots,"default")]),_:3},8,["disabled","href","transparent","enable-haptic-feedback"]))}}),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"})),$u={},Mu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pu=[G("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Ou(e,t){return z(),q("svg",Mu,Pu)}const js=ye($u,[["render",Ou]]),zu=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"}));class Lu{constructor(){Le(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function Au(){const e=new Lu;return Vt(()=>e.dispose()),bn("keyController",e),e}function ho(e){const t=It("keyController");He(()=>t.addListener(e)),Vt(()=>t.removeListener(e))}const Bu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},ju={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},Du={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ds=we({__name:"BottomSheet",props:on({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Sn(e,"modelValue");ho({onKeyDown:o});const n=hi();be(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>(z(),q("div",{class:Te(["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(rn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:le(()=>[t.value?(z(),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]=je(()=>{},["stop"])),onWheelPassive:r[2]||(r[2]=je(()=>{},["stop"])),onTouchmove:r[3]||(r[3]=je(()=>{},["stop"]))},[G("div",Bu,[ee(nt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:le(()=>[ee(js)]),_:1}),G("div",ju,qe(i.name),1),xe(i.$slots,"actions")]),G("div",Du,[xe(i.$slots,"default")])],32)):Se("",!0)]),_:3})],2))}}),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Nu=["min","max","step"],Fu={class:"flex-shrink-0"},mi=ye(we({__name:"InputPercentage",props:on({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Sn(e,"modelValue"),n=ie({get(){return t.value},set(o){t.value=+o}});return(o,i)=>(z(),q("div",{class:Te(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Ae({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[at(G("input",{"onUpdate:modelValue":i[0]||(i[0]=r=>n.value=r),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,Nu),[[Gc,n.value]]),G("p",Fu,[xe(o.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
22
|
+
`]]]),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Vu=["onClick","onKeyup"],En=we({__name:"InputSelect",props:on({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Sn(e,"modelValue"),o=J(null),i=J({width:"",left:""});He(()=>{let s=!1;be(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(i.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function r(s){s!==n.value&&(n.value=s)}return(s,l)=>(z(),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"},[G("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ae(i.value)},null,4),(z(!0),q(ke,null,nn(t.items,(a,c)=>at((z(),q("div",{key:c,tabindex:"0",class:Te(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>r(c),onKeyup:[vs(()=>r(c),["enter"]),vs(()=>r(c),["space"])]},[Et(qe(a),1)],42,Vu)),[[Z(ln),30]])),128))],512))}}),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Ku={class:"flex items-center mb-8 last:mb-0"},Uu={class:"flex-grow overflow-hidden"},Zt=we({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(z(),q("div",Ku,[G("div",{class:Te(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},qe(t.label),3),G("div",Uu,[xe(t.$slots,"default")])]))}}),qu=Object.freeze(Object.defineProperty({__proto__:null,default:Zt},Symbol.toStringTag,{value:"Module"})),Yu={},Zu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Xu=[G("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Gu(e,t){return z(),q("svg",Zu,Xu)}const Rs=ye(Yu,[["render",Gu]]),Ju=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Qu={},ed={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},td=[G("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),G("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function nd(e,t){return z(),q("svg",ed,td)}const Ns=ye(Qu,[["render",nd]]),od=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));function id(e){if(e)try{return JSON.parse(e)}catch{return}}function rd(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var dt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(dt||{}),At=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(At||{});const Fs=.25,Hs=5,sd=.25,go=.2,mo=5,ld=.05,ad=0,cd=5,Vs=5;function ud(e){var C,T,W,b,M,j,Y;const{titleName:t,isWebtoon:n}=e,o=ie(()=>t.value?rd(t.value):location.hostname),i=J(dd(`tkr:${o.value}`)),r=m=>{i.value=m;const w=`tkr:${o.value}`;!m||!Object.keys(m).length?localStorage.removeItem(w):localStorage.setItem(w,JSON.stringify(m))},s=m=>{if(!i.value){r(m);return}const w={...i.value};Object.entries(m).forEach(([H,_])=>{_===void 0?delete w[H]:w[H]=_}),r(w)},l=J((C=i.value)==null?void 0:C.style),a=J((T=i.value)==null?void 0:T.direction),c=J((W=i.value)==null?void 0:W.gap),u=J(((b=i.value)==null?void 0:b.speed)??1),d=J(((M=i.value)==null?void 0:M.zoom)??1),p=J(((j=i.value)==null?void 0:j.breakFirst)??!1),S=J(((Y=i.value)==null?void 0:Y.autoNextSeconds)??Vs),E=ie({get(){return n.value?At.longStrip:l.value??e.defaultStyle.value??At.longStrip},set:m=>{if(l.value===m)return;const w=E.value===At.longStrip,H=m===At.longStrip;l.value=m,s({style:m}),w!==H&&(g.value=H?dt.vertical:dt.rtl)}}),g=ie({get(){return n.value?dt.vertical:a.value??e.defaultDirection.value??dt.vertical},set:m=>{a.value=m,s({direction:m})}}),k=ie({get:()=>c.value??e.defaultGap.value??0,set(m){c.value=m,s({gap:m})}}),I=ie({get:()=>u.value,set(m){u.value=m,s({speed:m===1?void 0:m})}}),X=ie({get:()=>d.value,set(m){d.value=m,s({zoom:m===1?void 0:m})}}),L=ie({get:()=>p.value,set(m){p.value=m,s({breakFirst:m?!0:void 0})}}),V=ie({get:()=>S.value,set(m){S.value=m,s({autoNextSeconds:m===Vs?void 0:m})}});return{direction:g,style:E,gap:k,speed:I,zoom:X,isLongStrip:ie(()=>E.value===At.longStrip),isDouble:ie(()=>E.value===At.double),isRTL:ie(()=>g.value===dt.rtl),isVertical:ie(()=>g.value===dt.vertical),breakFirst:L,autoNextSeconds:V}}function dd(e){const t=localStorage.getItem(e),n=id(t),o={};return n?(n.style!==void 0&&Object.values(At).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(dt).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=ad&&n.gap<=cd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Fs&&n.speed<=Hs&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=go&&n.zoom<=mo&&(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 Ws=we({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},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=J(!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);ho({onKeyUp:c=>{c.key==="s"&&!c.metaKey&&!c.ctrlKey&&(i.value=!i.value)}});function l(c){o("update:zoom",Math.round(c)/100)}function a(){i.value=!1,o("help")}return(c,u)=>(z(),q(ke,null,[ee(nt,{title:"Reader settings (S)",disabled:c.disabled,onClick:u[0]||(u[0]=()=>i.value=!0)},{default:le(()=>[ee(Ns)]),_:1},8,["disabled"]),ee(Ds,{modelValue:i.value,"onUpdate:modelValue":u[6]||(u[6]=d=>i.value=d),name:s.value},{actions:le(()=>[ee(nt,{transparent:"",onClick:a},{default:le(()=>[ee(Rs)]),_:1})]),default:le(()=>[ee(Zt,{label:"Style"},{default:le(()=>[ee(En,{"model-value":c.readerStyle,items:r.value,"onUpdate:modelValue":u[1]||(u[1]=d=>o("update:reader-style",d))},null,8,["model-value","items"])]),_:1}),ee(Zt,{label:"Direction"},{default:le(()=>[ee(En,{"model-value":c.direction,items:c.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":u[2]||(u[2]=d=>o("update:direction",d))},null,8,["model-value","items"])]),_:1}),ee(Zt,{label:"Gap"},{default:le(()=>[ee(En,{"model-value":c.gap,items:["None","1px","2px","3px","4px","5px"],"onUpdate:modelValue":u[3]||(u[3]=d=>o("update:gap",d))},null,8,["model-value"])]),_:1}),c.hideAutoNext?Se("",!0):(z(),ve(Zt,{key:0,label:"Auto Next"},{default:le(()=>[ee(En,{"model-value":c.autoNextSeconds<0?0:c.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":u[4]||(u[4]=d=>o("update:autoNextSeconds",d===0?-1:d))},null,8,["model-value"])]),_:1})),ee(Zt,{label:"Speed"},{default:le(()=>[ee(mi,{"model-value":c.speed,min:Z(Fs),max:Z(Hs),step:Z(sd),suffix:"x","onUpdate:modelValue":u[5]||(u[5]=d=>o("update:speed",d))},{suffix:le(()=>[Et(qe(c.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),ee(Zt,{label:"Zoom"},{default:le(()=>[ee(mi,{"model-value":Math.ceil(c.zoom*100),min:Z(go)*100,max:Z(mo)*100,step:Z(ld)*100,"onUpdate:modelValue":l},{suffix:le(()=>[Et(qe(Math.ceil(c.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),fd=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),pd={},hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},gd=[G("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[G("circle",{cx:"14",cy:"14",r:"12"}),G("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function md(e,t){return z(),q("svg",hd,gd)}const Ks=ye(pd,[["render",md]]),vd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),bd={class:"block w-4 h-4"},yd={class:"w-12"},Us=we({__name:"ButtonResetZoom",props:{zoom:{}},emits:["click"],setup(e,{emit:t}){const n=t;function o(i){n("click",i)}return(i,r)=>(z(),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:je(o,["stop"])},[G("div",bd,[ee(Ks)]),G("div",yd,qe(Math.ceil(i.zoom*100))+"%",1)]))}}),_d=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"}));async function an(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 an(e-1,t,n);i(r)},t)})}const wd={},xd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Sd=[fc('<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)];function kd(e,t){return z(),q("svg",xd,Sd)}const qs=ye(wd,[["render",kd]]),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Id={},Td={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ed=[G("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function $d(e,t){return z(),q("svg",Td,Ed)}const Ys=ye(Id,[["render",$d]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Pd=["aria-hidden"],Od=["onClick"],zd={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"},Ld={class:"whitespace-nowrap"},vi=we({__name:"ButtonDropdown",props:on({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function},enableHapticFeedback:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:on(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=Sn(e,"modelValue"),r=J(null),s=J(!1),l=J(!1),a=J(!1),c=J(!1),u=J(!1),d={mounted:M=>{var j;(j=M.children[i.value])==null||j.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};ho({onKeyDown:X});const p=hi(),S=pi();async function E(){if(!n.items.length&&(s.value||await g(),!n.items.length)){s.value=!1;return}s.value=!s.value,p(s.value),s.value?(k(),V(r.value)):setTimeout(C,250)}async function g(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function k(){const M=r.value;if(M){const j=M.getBoundingClientRect(),Y=j.x+j.width/2;a.value=j.y>window.innerHeight/2,c.value=Y<window.innerWidth/3,u.value=Y>window.innerWidth/3*2}}function I(M,j){E(),M!=i.value&&(i.value=M,o("select",M,j),n.enableHapticFeedback&&S())}function X(M){s.value&&M.key==="Escape"&&(E(),M.preventDefault())}let L=[];function V(M){const j=window.getComputedStyle(M).zIndex,Y=M.style.zIndex;(!j||!(+j>0))&&((!M.parentElement||M.parentElement.childElementCount>1)&&(M.style.zIndex="1",L.push({el:M,zIndex:Y})),M.parentElement&&V(M.parentElement))}function C(){L.forEach(({el:M,zIndex:j})=>{M.style.zIndex=j??""}),L=[]}let T=!1;function W(){T||(T=!0,p(!0,{desktopOnly:!0}))}function b(){T&&(T=!1,p(!1,{desktopOnly:!0}))}return(M,j)=>(z(),q("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(z(),q("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:E})):Se("",!0),M.items.length?(z(),ve(rn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:le(()=>[s.value?at((z(),q("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Te(["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":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:j[0]||(j[0]=je(()=>{},["stop"])),onTouchmove:j[1]||(j[1]=je(()=>{},["stop"]))},[(z(!0),q(ke,null,nn(M.items,(Y,m)=>at((z(),q("li",{key:m,tabindex:"-1",class:Te(["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:w=>I(m,w)},[G("div",{class:Te(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[xe(M.$slots,"item",{item:Y},()=>[Et(qe(Y),1)])],2)],10,Od)),[[Z(ln),30]])),128))],42,Pd)),[[d]]):Se("",!0)]),_:3})):Se("",!0),at((z(),q("button",wn({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":M.disabled||l.value}]},M.title?{title:M.title}:{},{onClick:je(E,["stop"]),onMouseenter:W,onMouseleave:b}),[G("div",zd,[G("span",Ld,qe(M.label),1),M.items.length||M.canLoadItems?(z(),q("span",{key:0,class:Te(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(z(),ve(qs,{key:0})):(z(),ve(Ys,{key:1}))],2)):Se("",!0)])],16)),[[Z(ln),30]])],512))}}),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Zs=we({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const a=n.chapterSpec;if(!a)return;const{trigger:c,sel:u,label:d}=a;if(c&&(!u||!d)){await r(c);return}o("getHiddenChapters"),await an(50,50,()=>n.data.chapters.length?!0:void 0)}async function r(a){const c=document.querySelector(a);c&&(c instanceof HTMLDialogElement?c.showModal():c.click(),o("chaptersDialogOpen"))}function s(a,c){var u,d,p;(p=(d=(u=n.data)==null?void 0:u.chapters)==null?void 0:d[a])==null||p.select(l(c))}function l(a){return!n.touchDevice&&(a.ctrlKey||a.metaKey)}return(a,c)=>{var u;return z(),ve(vi,{modelValue:a.data.activeIndex,label:a.data.activeLabel,title:"Select chapter",items:a.data.chapters,"can-load-items":!!((u=a.chapterSpec)!=null&&u.trigger),"load-items":i,"enable-haptic-feedback":"",onSelect:s},{item:le(({item:d})=>[Et(qe(d.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),jd={},Dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Rd=[G("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Nd(e,t){return z(),q("svg",Dd,Rd)}const Xs=ye(jd,[["render",Nd]]),Fd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Gs=we({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=J(typeof n!="string"||+n!==t.direction),i=Ze(()=>o.value=!1,1250);be(()=>t.direction,()=>{r(),o.value=!0,i()}),He(()=>{r(),i();let s;const l=$s();be(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,i())})});function r(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(z(),ve(rn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[o.value?(z(),q("div",{key:0,class:Te(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===Z(dt).vertical,"rotate-180":s.direction===Z(dt).rtl}])},[ee(Xs)],2)):Se("",!0)]),_:1}))}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Vd=G("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Js=we({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=J(null),r=J([]);He(async()=>{const c=Ps(i),u=Ze(()=>{s({width:c.width.value,height:c.height.value})},50);u(),be(c.width,u),be(c.height,u)});function s(c){var p;const u=(p=i.value)==null?void 0:p.parentElement;if(!u)return;const d=Array.from(u.querySelectorAll("#controls [title]"));d.length&&(r.value=l(d,c))}function l(c,u){const d=[],p=[];let S=0,E=0;const g=50,k=25;c.forEach(C=>{var j;const T=(j=C.getAttribute("title"))==null?void 0:j.trim(),W=C.getBoundingClientRect();if(!T||!W.height||!W.width)return;const b=Math.ceil((W.top-10)/g),M=Math.ceil((W.left-10)/g);p.push({isTour:!1,title:T,rect:W,fromX:M,toX:Math.max(M+1,Math.ceil((W.right+10)/g)),fromY:b,toY:Math.max(b+1,Math.ceil((W.bottom+10)/g))})}),p.forEach(C=>{for(let T=C.fromY;T<C.toY;T++){d[T]??(d[T]=[]);for(let W=C.fromX;W<C.toX;W++)d[T][W]=C;C.toY>S+1&&(S=C.toY-1),C.toX>E+1&&(E=C.toX-1)}});let I=E/2;p.forEach(C=>{C.isAlignRight=C.fromX>I});const X=(C,T)=>{d[T]??(d[T]=[]);const W=T>=C.toY;if(C.isTour)for(let b=C.fromX;b<C.toX;b++)delete d[C.fromY][b],C.fromY=T,C.toY=T+(W?1:-1),d[T][b]=C;else{const b=C.isAlignRight?C.fromX-3:C.fromX,M=b+3;C.helpItem={fromX:b,toX:M,fromY:T,toY:T+1,isTour:!0,isAlignRight:C.isAlignRight};for(let j=b;j<M;j++)d[T][j]=C.helpItem}},L=(C,T)=>{if(T>S||T<0)return!1;const W=T>=C.toY,b=d[T];if(!b)return X(C,T),!0;const M=b[C.fromX];if(M&&!M.isTour)return!1;if(M&&M.isTour)return L(M,W?T+1:T-1)?(X(C,T),!0):!1;if(!M){const j=C.isAlignRight?-1:1;return b[C.fromX+j]||b[C.fromX+j*2]?L(C,W?T+1:T-1):(X(C,T),!0)}return!1};p.forEach(C=>{if(!L(C,C.toY)){if(C.isAlignRight){const T=d[C.fromY]??[];if(!T.slice(C.fromX-3,C.fromX).filter(Boolean).length){const b=C.fromX-3,M=C.fromX;C.helpItem={isTour:!0,isAlignRight:!0,fromX:b,toX:M,fromY:C.fromY,toY:C.toY};for(let j=C.fromX-3;j<C.fromX;j++)T[j]=C.helpItem;return}}L(C,C.fromY-1)}});const V=[];return p.forEach(C=>{const{title:T,helpItem:W,rect:b,isAlignRight:M,fromX:j,fromY:Y,toY:m}=C;if(!T||!W||!b)return;const w=W.fromY>=m,H=W.toY<=Y;V.push({title:a(T),style:{top:w?`${b.bottom+(W.fromY-m)*g+k}px`:H?void 0:`${b.top+8}px`,bottom:H?`${u.height-b.top+(W.toY-Y)*g+k}px`:void 0,left:M?void 0:`${b.left}px`,right:M?w?`${u.width-b.right}px`:`${u.width-b.right+b.width+k}px`:void 0},arrowStyle:{width:H||w?"2px":`${Math.abs(W.toX-j)*g+k-5}px`,height:H||w?`${(w?W.fromY-m:Y-W.toY)*g+k}px`:"2px",top:w?`${b.bottom}px`:H?void 0:`${b.top+20}px`,bottom:H?`${u.height-b.top}px`:void 0,left:M?void 0:`${b.left+b.width/2}px`,right:M?w?`${u.width-b.right+b.width/2}px`:`${u.width-b.right+b.width}px`:void 0}})}),V}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(z(),q(ke,null,[Vd,G("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=je(d=>o("hide"),["stop"]))},[(z(!0),q(ke,null,nn(r.value,d=>(z(),q(ke,{key:d.title},[G("div",{class:"absolute",style:Ae(d.style)},qe(d.title),5),G("div",{class:"absolute bg-stone-300 rounded-lg",style:Ae(d.arrowStyle)},null,4)],64))),128))],512)],64))}}),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Qs=we({__name:"PageNav",props:on({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Sn(e,"modelValue"),o=ie(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),i=ie(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:d})=>d===a));return c===-1?t.pages.length-1:c}),r=ie(()=>t.pages.length?`${o.value[i.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(z(),ve(vi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Kd=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Ud={},qd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yd=[G("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),G("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Zd(e,t){return z(),q("svg",qd,Yd)}const bi=ye(Ud,[["render",Zd]]),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),Gd={},Jd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Qd=[G("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function ef(e,t){return z(),q("svg",Jd,Qd)}const yi=ye(Gd,[["render",ef]]),tf=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"})),el=ye(we({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=J(0);return be(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(z(),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"},[o.playing?(z(),ve(yi,{key:0})):(z(),ve(bi,{key:1}))])):Se("",!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
|
+
`]]]),nf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),tl=ye(we({__name:"ProgressBar",props:{value:{},total:{},longStrip:{type:Boolean},height:{},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(),q("div",{class:Te(["rprog",{"rprog--rtl":i.rtl}]),style:Ae({height:o.value})},[(z(!0),q(ke,null,nn(i.total,s=>(z(),q("span",{key:s,class:Te(["rprog__item",{"rprog__item--active":n.value===s}]),style:Ae(!i.longStrip||n.value!==s?{}:{"--portion":`${i.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{--tw-bg-opacity:.25;background-color:rgb(0 0 0/var(--tw-bg-opacity));content:"";display:block;flex-shrink:0;height:100%;width:1px}.rprog__item--active:after,.rprog__item:has(~.rprog__item--active):after{--tw-bg-opacity:.8;background-color:rgb(251 130 82/var(--tw-bg-opacity));content:"";display:block;height:100%;width:var(--portion)}
|
|
24
|
+
`]]]),of=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),nl=we({__name:"GesturesContainer",props:{zoom:{},zooming:{type:Boolean},pageIndex:{},playController:{},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=J(null),r=J(Math.min(mo,Math.max(go,n.zoom))),s=J(!1),l=J(!1),a={isZoomIn:!1,isZoomOut:!1,initial:void 0};be(()=>n.zoom,_=>H(_)),He(()=>{n.touchDevice?Lt(i,"touchstart",k):(Lt(i,"mousedown",p),Lt(window,"wheel",T))}),ho({onKeyDown:_=>{var A;if(!n.busy&&((A=i.value)==null||A.focus(),!(_.key==="Meta"||_.key==="Control")&&(_.ctrlKey||_.metaKey)))switch(_.key){case"0":H(1);break;case"-":H(r.value-.2),_.preventDefault();break;case"=":case"+":H(r.value+.2),_.preventDefault();break}},onKeyUp:_=>{n.zooming&&!(_.ctrlKey||_.metaKey)&&Y()}});function c(_){l.value!==_&&(l.value=_,_?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},d={x:0,y:0};function p(_){_.button===0&&(u={x:_.clientX,y:_.clientY},d={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",S),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",S),setTimeout(()=>c(!1))},{once:!0}),_.preventDefault(),_.stopPropagation())}function S(_){const A=_.clientX-u.x,K=_.clientY-u.y;if(!l.value&&Math.abs(A)<.5&&Math.abs(K)<.5)return;c(!0);const y=i.value;y.scrollLeft=d.x-A,y.scrollTop=d.y-K}let E={distance:0,zoom:r.value,x:0,y:0},g=!1;function k(_){n.busy||(g=_.touches.length===2,g&&(o("update:zooming",!0),c(!0),_.stopPropagation(),_.preventDefault(),E={distance:W(_),zoom:r.value,x:(_.touches[0].clientX+_.touches[1].clientX)/2,y:(_.touches[0].clientY+_.touches[1].clientY)/2}),(g||n.longStrip&&n.playController.isPlaying.value)&&window.addEventListener("touchend",I,{once:!0}))}function I(){if(g=!1,n.zooming){c(!1),Y();return}if(!l.value)return;const _=Ze(()=>{c(!1),i.value.removeEventListener("scroll",K)},200),A=setTimeout(_,200);i.value.addEventListener("scroll",K);function K(){clearTimeout(A),_()}}function X(_){if(!(!g&&!(n.longStrip&&n.playController.isPlaying.value))&&(c(!0),n.zooming)){_.stopPropagation(),_.preventDefault();const K=W(_)/E.distance;w(Math.ceil(K*E.zoom*100)/100,E)}}const L=Ze(()=>s.value=!1,100);let V=!1;const C=Ze(()=>{V=!1},30);function T(_){if(n.busy)return;let A=n.zooming;if(V||(V=!0,A=_.ctrlKey||_.metaKey,A&&o("update:zooming",!0)),C(),A){_.stopPropagation(),_.preventDefault();const K=Math.ceil((r.value+_.deltaY*-.01)*100)/100;w(K,{x:_.clientX,y:_.clientY});return}n.horizontal&&(s.value||(s.value=!0),L(),_.deltaY&&(i.value&&(i.value.scrollLeft+=_.deltaY*(n.rtl?-1:1)),_.stopPropagation()))}function W(_){return Math.hypot(_.touches[0].clientX-_.touches[1].clientX,_.touches[0].clientY-_.touches[1].clientY)}const b={x:0,y:0,ts:0};function M(_){if(l.value||n.zooming)return;if(!n.longStrip){const ge=n.horizontal?i.value.clientWidth:i.value.clientHeight,$e=(n.horizontal?n.rtl?ge-_.clientX:_.clientX:_.clientY)/ge;if($e<=.2&&n.pageIndex>0){o("prev");return}else if($e>=.8){o("next");return}}if(o("click"),n.playController.isPlaying.value)return;const{clientX:A,clientY:K}=_,{x:y,y:Q,ts:de}=b;b.x=A,b.y=K,b.ts=new Date().getTime();const ce=b.ts-de;ce>250||ce<10||Math.abs(y-A)>40||Math.abs(Q-K)>40||(b.ts=0,b.x=0,b.y=0,j(A,K))}async function j(_,A){const K=r.value===1?2:1;await H(K,{x:_,y:A}),Y()}function Y(){o("update:zooming",!1),a.initial=void 0,a.isZoomIn=!1,a.isZoomOut=!1}function m(){if(a.initial)return;const _=i.value;if(!_)return;const A=_.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;A&&(a.initial={el:A,rect:A.getBoundingClientRect()})}function w(_,A){if(a.isZoomIn=a.isZoomIn||!a.isZoomOut&&_>1,a.isZoomIn&&_<1){H(1,A);return}if(a.isZoomOut=a.isZoomOut||!a.isZoomIn&&_<1,a.isZoomOut&&_>1){H(1,A);return}H(_,A)}async function H(_,A){const K=i.value,y=Math.min(mo,Math.max(go,_));if(!K||r.value===y)return;m();const{initial:Q}=a;if(!Q)return;const de=(A==null?void 0:A.x)??K.clientWidth/2,ce=(A==null?void 0:A.y)??K.clientHeight/2;r.value=y,o("update:zoom",y),await vt();const{el:ge,rect:Ee}=Q,$e=ge.offsetWidth/Ee.width,ft=ge.offsetHeight/Ee.height;K.scrollLeft=ge.offsetLeft-Ee.left*$e+de*($e-1),K.scrollTop=ge.offsetTop-Ee.top*ft+ce*(ft-1)}return(_,A)=>(z(),q("div",{ref_key:"root",ref:i,tabindex:"0",class:Te(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!_.longStrip&&(l.value||s.value||_.zooming),"cursor-grabbing":!_.touchDevice&&l.value,"overflow-hidden":_.zooming}]),style:Ae({"font-size":`${r.value}px`}),onClick:je(M,["stop"]),onTouchmoveCapture:je(X,["stop"])},[xe(_.$slots,"default")],38))}}),rf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),sf=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{--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));border-radius:9999px;border-style:solid;border-width:4px;box-sizing:border-box;content:"";display:block;opacity:1;position:absolute}.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
|
+
`,lf={},af={class:"loading-indicator"};function cf(e,t){return z(),q("div",af)}const _i=ye(lf,[["render",cf],["styles",[sf]]]),uf=Object.freeze(Object.defineProperty({__proto__:null,default:_i},Symbol.toStringTag,{value:"Module"}));function wi(e,t){return(e==null?void 0:e.querySelector(`[data-index="${t}"],[data-index2="${t}"]`))??void 0}const df=["data-index"],ff={key:0,class:"img img--loading"},pf=["src"],hf=["data-index"],ol=ye(we({__name:"ReaderBody",props:{page:{},pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isDouble:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},zooming:{type:Boolean},spaceTop:{},touchDevice:{type:Boolean},playController:{},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=Es(),r=J(null),s=As(),l=ie(()=>{const{width:g,height:k}=s,I=n.isLongStrip?n.isVertical?g.value:k.value:Math.min(g.value,k.value);return Math.min(4,Math.max(1,Math.ceil(I/400-1)))*n.gap}),a=J(n.isLongStrip?{min:n.pageIndex-1,max:n.pageIndex}:p()),c=ie(()=>{const{min:g,max:k}=a.value,I={};for(let X=g;X<=k;X++)I[X]=!0;return I}),u=ie(()=>{const{width:{value:g},height:{value:k}}=s;return n.pages.map(I=>{var j;const X=I.some(Y=>{var m;return(m=Y.img)==null?void 0:m.isLoading}),L=I.map(Y=>Y.index),V={isLoading:X,indexes:L,visible:!1};if(X)return V;const C=I.map(({img:Y})=>Y).filter(Boolean);if(!C.length||(V.srcs=C.map(({src:Y})=>Y),C.every(Y=>Y.hasError)))return V;const W=(j=C.find(Y=>!Y.hasError))==null?void 0:j.size,b=C.reduce((Y,m)=>{var w;return Y+(((w=m.size)==null?void 0:w.width)??W.width)},0),M=C.reduce((Y,m)=>{var w;return Y+(((w=m.size)==null?void 0:w.height)??W.height)},0)/C.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&g/b<k/M?(V.width=Math.min(g,b),V.height=M*(V.width/b)):(V.height=Math.min(k,M),V.width=b*(V.height/M)),V})}),d=ie(()=>{const g=n.isVertical?"width":"height";return u.value.map(k=>k[g]).filter(Boolean).sort((k,I)=>I-k)[0]});He(()=>{const g=wi(i.value,n.pageIndex);g==null||g.scrollIntoView({behavior:"instant",block:"start"});let k,I=!1;Pa(()=>{k!==n.page&&(k=n.page,X(),I||(I=!0,vt(()=>o("ready"))))});async function X(){if(!n.isLongStrip){a.value=p();return}const L=Math.floor(n.page),V=wi(i.value,L);if(!V)return;const C=+S(V).getAttribute("data-index"),T=+E(V).getAttribute("data-index");(C!==a.value.min||T!==a.value.max)&&(a.value={min:C,max:T})}});function p(){const{pageIndex:g}=n;return{min:g-(n.isDouble?5:3),max:g+(n.isDouble?6:3)}}function S(g){const k=g.previousElementSibling;if(!k)return g;const I=k.getBoundingClientRect();return(n.isVertical?I.y+I.height>-(s.height.value*1.5):n.isRTL?I.x<s.width.value*2.5:I.x+I.width>-(s.width.value*1.5))?S(k):g}function E(g){const k=g.nextElementSibling;if(!k)return g;const I=k.getBoundingClientRect();return(n.isVertical?I.y<s.height.value*3:n.isRTL?I.x+I.width>-(s.width.value*1.5):I.x<s.width.value*2.5)?E(k):g}return(g,k)=>(z(),ve(nl,{zoom:g.zoom,zooming:g.zooming,"page-index":g.pageIndex,class:Te(["rbod",{"rbod--touch":g.touchDevice,"rbod--long-strip":g.isLongStrip,"rbod--paging":!g.isLongStrip,"rbod--vertical":g.isVertical,"rbod--rtl":g.isRTL,"rbod--idle":g.idle,"rbod--first":!g.isLongStrip&&g.pageIndex===0,"rbod--last":!g.isLongStrip&&g.pageIndex===g.totalImgs&&!g.hasNext,"rbod--1page":u.value.length===1}]),"play-controller":g.playController,horizontal:!g.isVertical,rtl:g.isRTL,"touch-device":g.touchDevice,busy:g.busy,"long-strip":g.isLongStrip,style:Ae({"--gap":`${l.value}em`,"--space-top":(g.spaceTop||0)+"px","--screen-width-em":Z(s).width.value+"em","--screen-height-em":Z(s).height.value+"em",...g.isLongStrip?{"--max-size-em":d.value+"em"}:{}}),"onUpdate:zoom":k[0]||(k[0]=I=>o("update:zoom",I)),"onUpdate:zooming":k[1]||(k[1]=I=>o("update:zooming",I)),onDragEnd:k[2]||(k[2]=()=>o("dragEnd")),onClick:k[3]||(k[3]=()=>o("click")),onPrev:k[4]||(k[4]=()=>o("prev")),onNext:k[5]||(k[5]=()=>o("next"))},{default:le(()=>[(z(!0),q(ke,null,nn(u.value,I=>{var X;return z(),q("div",wn({key:g.direction+"_"+I.indexes[0],"data-index":I.indexes[0]},I.indexes.length>1?{"data-index2":I.indexes[1]}:{}),[!((X=I.srcs)!=null&&X.length)||I.isLoading?(z(),q("div",ff,[c.value[I.indexes[0]]?(z(),ve(_i,{key:0})):Se("",!0)])):I.srcs.length==1?(z(),ve(yr(c.value[I.indexes[0]]?"img":"div"),wn({key:1,class:"img"},c.value[I.indexes[0]]?{src:I.srcs[0]}:{},{style:{width:I.width!==void 0?I.width+"em":"",height:I.height!==void 0?I.height+"em":""}}),null,16,["style"])):(z(),q("div",{key:2,class:Te(["img img--double",{"flex-row-reverse":g.isRTL}]),style:Ae({width:I.width!==void 0?I.width+l.value+"em":"",height:I.height!==void 0?I.height+"em":""})},[I.indexes.some(L=>c.value[L])?(z(!0),q(ke,{key:0},nn(I.srcs,L=>(z(),q("div",{key:L},[G("img",{src:L},null,8,pf)]))),128)):Se("",!0)],6))],16,df)}),128)),G("div",{ref_key:"autoNextEl",ref:r,class:"last","data-index":g.totalImgs},[xe(g.$slots,"end")],8,hf)]),_: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{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.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){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.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{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.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));-o-object-fit:contain;object-fit:contain}.rbod .img--loading{align-items:center;background-color:transparent;display:flex;justify-content:center}
|
|
26
|
+
`]]]),gf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),mf={class:"max-h-none max-w-none h-full w-full m-0 p-0 border-none outline-none"},vf={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},bf={class:"flex justify-between items-end"},yf={class:"inline-block children-pointer-events-auto"},_f={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto"},wf={class:"inline-block z-20 relative"},xf={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"},il=ye(we({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},zooming:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){const t={mounted:n=>n.showModal(),beforeUnmount:n=>n.close()};return(n,o)=>at((z(),q("dialog",mf,[G("div",{id:"reader-layout",class:Te({"cursor-none":n.idle,"cursor-default":!n.idle,"bg-black":n.immediate||!n.loading,"opacity-0":!n.immediate&&n.loading,"duration-200 transition-colors":!n.immediate})},[n.loading&&n.immediate?(z(),q("div",vf,[ee(_i)])):Se("",!0),xe(n.$slots,"default"),G("div",{id:"controls",class:Te(["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":!n.fullScreen,"opacity-0 -z-10":n.fullScreen}])},[G("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Ae({paddingTop:`${n.spaceTop||0}px`})},[xe(n.$slots,"back"),xe(n.$slots,"exit"),xe(n.$slots,"chapter-nav")],4),G("div",bf,[G("div",yf,[xe(n.$slots,"page-nav")]),G("div",_f,[xe(n.$slots,"entry"),G("div",wf,[xe(n.$slots,"settings")]),xe(n.$slots,"full-screen"),xe(n.$slots,"play"),xe(n.$slots,"break-first")])]),G("div",{class:Te(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":n.rtl}])},[xe(n.$slots,"progress")],2)],2),!n.fullScreen||n.zooming?(z(),q("div",xf,[xe(n.$slots,"reset-zoom")])):Se("",!0)],2)])),[[t]])}}),[["styles",[`#reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;font-weight:400;height:100%;line-height:24px;overflow:hidden;overscroll-behavior:contain;pointer-events:auto;text-align:left;width:100%}
|
|
27
|
+
`]]]),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),rl=ye(we({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=J(null),i=J(0),r=J([]),s=ie(()=>r.value[i.value]),l=Ss(a,500);He(()=>{const d=Ps(o),p=Ze(()=>c({width:d.width.value,height:d.height.value}),50);p(),be(d.width,p),be(d.height,p)});function a(){i.value>=r.value.length-1?n("hide"):i.value++}function c(d){const p=u();r.value=p.map(({rect:S,text:E})=>{const g=S.top<d.height-S.bottom,k=S.left<d.width-S.right;return{text:E,style:{left:`${S.left}px`,top:`${S.top}px`,width:`${S.width}px`,height:`${S.height}px`},textStyle:{left:k?`${S.left-12}px`:void 0,right:k?void 0:`${d.width-S.left}px`,top:g?`${S.bottom+12}px`:`${S.top+20}px`,textAlign:g?void 0:"right",transform:g?void 0:"translateY(-50%)"}}}),i.value>=r.value.length&&(i.value=r.value.length-1)}function u(){var S;const d=(S=o.value)==null?void 0:S.parentElement;if(!d)return[];const p=[];return d.querySelectorAll("[data-tour]").forEach(E=>{var I;const g=(I=E.getAttribute("data-tour"))==null?void 0:I.trim();if(!(g!=null&&g.length))return;const k=E.getBoundingClientRect();p.push({rect:k,text:g})}),p}return(d,p)=>{var S,E;return z(),q(ke,null,[G("div",{class:Te(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),G("div",{ref_key:"root",ref:o,class:"tour",onClick:p[0]||(p[0]=je((...g)=>Z(l)&&Z(l)(...g),["stop"]))},[s.value?(z(),q("div",{key:i.value,class:"tour__target",style:Ae(s.value.style)},null,4)):Se("",!0),(z(),q("div",{key:i.value,class:"tour__text",style:Ae((S=s.value)==null?void 0:S.textStyle)},qe(((E=s.value)==null?void 0:E.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100%;left:0;overflow:hidden;position:fixed;top:0;width:100%;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
28
|
+
`]]]),kf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),Cf={},If={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[G("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Ef(e,t){return z(),q("svg",If,Tf)}const sl=ye(Cf,[["render",Ef]]),$f=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),Mf={},Pf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Of=[G("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)];function zf(e,t){return z(),q("svg",Pf,Of)}const ll=ye(Mf,[["render",zf]]),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),Af={},Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jf=[G("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)];function Df(e,t){return z(),q("svg",Bf,jf)}const al=ye(Af,[["render",Df]]),Rf=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),Nf={},Ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Hf=[G("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Vf(e,t){return z(),q("svg",Ff,Hf)}const cl=ye(Nf,[["render",Vf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),Kf={},Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},qf=[G("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Yf(e,t){return z(),q("svg",Uf,qf)}const ul=ye(Kf,[["render",Yf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),Xf={},Gf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Jf=[G("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)];function Qf(e,t){return z(),q("svg",Gf,Jf)}const dl=ye(Xf,[["render",Qf]]),ep=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"})),tp={},np={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},op=[G("g",{fill:"none"},[G("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"}),G("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)];function ip(e,t){return z(),q("svg",np,op)}const fl=ye(tp,[["render",ip]]),rp=Object.freeze(Object.defineProperty({__proto__:null,default:fl},Symbol.toStringTag,{value:"Module"})),sp={},lp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ap=[G("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function cp(e,t){return z(),q("svg",lp,ap)}const pl=ye(sp,[["render",cp]]),up=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),dp={},fp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},pp=[G("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function hp(e,t){return z(),q("svg",fp,pp)}const hl=ye(dp,[["render",hp]]),gp=Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})),mp={},vp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bp=[G("path",{fill:"currentColor",d:"M19 12.998h-6v6h-2v-6H5v-2h6v-6h2v6h6z"},null,-1)];function yp(e,t){return z(),q("svg",vp,bp)}const gl=ye(mp,[["render",yp]]),_p=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),wp={},xp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Sp=[G("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function kp(e,t){return z(),q("svg",xp,Sp)}const ml=ye(wp,[["render",kp]]),Cp=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"}));function $n(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=l=>{if(!l)return r(void 0);const a=URL.createObjectURL(l);r(a)};try{n.toBlob(s,"image/jpeg",1)}catch{r(void 0)}})};return t(e,!1)}async function Ip(e,t){if(!t.startsWith("blob:"))return t;if(e.complete||await new Promise(a=>{let c=0;const u=setInterval(()=>{e.complete?(a(),clearInterval(u)):++c>=30&&a()},100)}),!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),i=o.getContext("2d"),r=e.naturalWidth,s=e.naturalHeight;return o.width=r,o.height=s,i==null||i.drawImage(e,0,0,r,s),await vl(o)}function Tp(e){const t=new Set,n=e.getAttributeNames(),o=n.indexOf("src");o!==-1&&(n.splice(o,1),n.push("src"));for(const i of n){if(i==="srcset"||i!=="data-url"&&i!=="data-original"&&!i.includes("src"))continue;const r=e.getAttribute(i);r&&(i==="src"&&e.naturalWidth&&e.naturalWidth<200||t.add(r.replace(/(\n|\t)/g," ").trim()))}return Array.from(t)}function xi(e,t){return e>=75&&t>=50&&(e>=200||t>=200)}class Ep{constructor({onChanged:t}){Le(this,"isMounted",!0);Le(this,"elsDisposeCallbacksMap",new Map);Le(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 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(l=>{l.some(c=>{if(c.attributeName!=="src")return!1;const u=r;return r=n.getAttribute("src"),!!r&&u!==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),l=r.putImageData.bind(r),a=(c,u,d)=>(setTimeout(()=>this.download(t),100),c.apply(u,d));r.drawImage=new Proxy(s,{apply:a}),r.putImageData=new Proxy(l,{apply:a}),this.elsDisposeCallbacksMap.set(n,()=>{r.drawImage=s,r.putImageData=l})}}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 Ip(o,r):r;if(!s||!this.isMounted)return;const l=await $p(s,o,a=>{this.isMounted&&this.onChanged(t,{src:s,size:a,isLoading:!1,hasError:!1})});if(l.ok||!this.isMounted)return;i===n.length-1&&this.onChanged(t,{src:s,isLoading:!1,hasError:!!l.error,invalid:!!l.invalid})}}}async function $p(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:l}=i;l&&s&&(xi(s,l)?n({width:s,height:l}):o({invalid:!0}),clearInterval(r))},20);i.onerror=()=>{o({error:!0}),clearInterval(r)},i.onload=()=>setTimeout(()=>o({ok:!0}),25),i.src=e})}const Mp=3;class Pp{constructor(t){Le(this,"download");Le(this,"threads");Le(this,"completedItems");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(Mp,()=>{const s=n[o];if(!s){this.completedItems=n;return}return i&&o===n.length-1?(i=!1,o=t-2):i?o++:o--,this.download(s)}),this.threads.exec()}}class Op{constructor(t,n){Le(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 $n(20),this.next())}}class bl{constructor(){Le(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 zp(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 Si(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 Lp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=await an(50,30,()=>document.querySelector(n));return i?(Si(i),await $n(),!0):!1}class Ap{constructor({spec:t,onChanged:n}){Le(this,"spec");Le(this,"onChanged");Le(this,"rawImages",[]);Le(this,"isMounted",!0);Le(this,"loadRawImagesTs");Le(this,"disconnectObservers");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 s;let t;const n=Ze(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),i=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Ze(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),i==null||i.disconnect()};let r=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),i==null||i.disconnect(),o.observe(t,{childList:!0,subtree:!0}),i==null||i.observe(t),r?n():(r=!0,this.loadRawImages(t)))})}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 l;const n=await Lp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let i=await an(n?100:1,10,()=>{for(const a of o.split(",")){const c=document.querySelector(a);if(c)return c}});if(!i)return;t(i);let r=0;const s=async()=>{if(this.isMounted&&!(i!=null&&i.isConnected)){if(r=0,i=await an(50,20,()=>{const a=document.querySelector(o);return a!=null&&a.isConnected&&a!==i?a: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 Bp(t,o):yl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function Bp(e,t){const n=zp(t,e);if(!n.length)return yl(e);const o=new bl;return n.map(r=>{const s=Array.from(r.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(_l(l))return{el:l,parentEl:r}}else if(l instanceof HTMLImageElement&&wl(l))return{el:l,parentEl:r}}return{parentEl:r}})}function yl(e){const t=[],n={},o=new bl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)_l(r)&&t.push({el:r});else if(r instanceof HTMLImageElement&&wl(r)){const s=r.getAttribute("src");if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push({el:r})}}}),t}function _l(e){return e.isConnected&&xi(e.width,e.height)}function wl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||xi(t.width,t.height)}const ki="mp-scroll-container";class Ci{constructor(){Le(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),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??(l.src?document.querySelector(`img[src^="${l.src}"]`):void 0);if(!a)return;const c=a.getBoundingClientRect();if(o&&c.top<=0&&c.top+c.height>0)return;const u=Ci.getScrollable(a,r);if(!u)return;const{el:d,top:p}=u;r!==document.documentElement&&!d.classList.contains(ki)&&(d.classList.add(ki),this.unmountedCallbacks.has(d)||this.unmountedCallbacks.set(d,()=>{d.classList.remove(ki)}));const S=n>=t.length?c.height:i?Math.max(0,c.height-window.innerHeight+100):n%1*c.height,E={top:p+S,behavior:"instant"};d.scrollTo(E),d===document.body&&document.documentElement.scrollTo(E)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:l}=i;if(l&&s&&r.set(l,Math.max(r.get(l)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let c=0;return r.forEach((u,d)=>{c+=d===l?u-s:u}),{el:i,top:c}};return o(t,new Map)}}function xl(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 jp(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 xl(n)}function Dp(e){var M,j,Y;const t=(M=e.raw.value)==null?void 0:M.isWebtoon,n=J(t===!1),o=J(t);let i=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),s=((Y=(j=e.raw.value)==null?void 0:j.imgs)==null?void 0:Y.filter(Boolean))??[];let l=e.isAutoShow!==!1?e.page.value:s.length?jp(s):void 0,a=s.map(m=>({src:m})),c,u;const d=new Map,p=({src:m,el:w})=>{const H=w??m;return H?d.get(H):void 0},S=J(s.map(m=>({src:m,isLoading:!0,hasError:!1}))),E=()=>{const m=[];a.forEach(w=>{const{src:H,el:_}=w,A=_??H,K=A?d.get(A):void 0;(A&&!(K!=null&&K.invalid)||w.parentEl)&&m.push(K)}),S.value=m};let g=setTimeout(e.onTimeout,2e4);const k=()=>{g&&(clearTimeout(g),g=void 0)};let I=0,X=0;const L=4,V=new Ep({onChanged(m,w){const H=m.el??m.src;if(!H||(d.set(H,w),E(),w.isLoading))return;if(w.hasError){if(u||o.value!==void 0)return;u=setTimeout(()=>{u=void 0,o.value===void 0&&e.onError("Failed to load images")},3e3);return}const{size:_,invalid:A}=w;if(!(!_||A)){if(!o.value&&X<L){const K=i?a:a.filter(({el:Ee,src:$e})=>$e||!(Ee&&Ee instanceof HTMLImageElement&&!d.has(Ee)));let y=K.indexOf(m);if(i&&y>4||y===-1&&(m.el&&(y=K.findIndex(Ee=>Ee.el===m.el)),y===-1))return;const Q=y>Math.min(1,K.length-3)&&y<Math.max(K.length-2,3),de=_.width/_.height;de>2&&I++;const ce=de<.5||I>=L,ge=!ce&&.65<de&&de<.75;ge&&X++,o.value!==ce&&(Q||ce)&&(o.value=ce),Q&&n.value!=ge&&(n.value=!0),o.value===void 0&&ge&&X===L&&(o.value=!1)}b()}}}),C=new Pp({download:async m=>{!(m.el&&d.has(m.el))&&!(m.src&&d.has(m.src))&&await V.download(m)}}),T=()=>{C.run({items:a,activeIndex:Math.min(a.length-1,Math.floor(e.page.value))})},W=new Ci;if(s.length)T();else{let m=!1;c=new Ap({spec:e.spec,async onChanged(w){var H;if(a=w,E(),!e.raw.value&&!w.length){e.onError("no_img");return}(H=e.spec)!=null&&H.imgDivs&&!m&&e.isAutoShow!==!1&&e.page.value&&(m=!0,W.scrollTo({rawImages:w,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:r?document.body:document.documentElement}),await $n(1)),l===void 0&&e.isAutoShow===!1&&(l=xl(w)),T()}})}Wo(()=>{V.dispose(),C.dispose(),c==null||c.dispose(),u&&clearTimeout(u),W.dispose(),i&&W.scrollTo({rawImages:a,page:e.page.value,fallbackScrollEl:document.documentElement})});function b(){if(i||o.value===void 0||l===void 0)return;const m=Math.max(0,Math.min(l,a.length)),w=Math.min(Math.floor(m),a.length-1);if(w>=1){const _=a[w];if(!_||!p(_)){e.isAutoShow&&W.scrollTo({rawImages:a,page:w,fallbackScrollEl:r?document.body:document.documentElement});return}for(let A=w;A<a.length;A++){const K=p(a[A]);if(!K)return;if(!K.invalid){if(!K.size&&!K.hasError)return;break}}for(let A=w-1;A>=0;A--){const{src:K,el:y}=a[A],Q=y??K;if(!Q)break;const de=d.get(Q);if(!de)return;if(!de.invalid){if(!de.size&&!de.hasError)return;break}}}if(i)return;i=!0,k(),e.onReady(m);let H=!0;be(()=>Math.floor(e.page.value),(_,A)=>{_===A&&!H||(W.scrollTo({rawImages:a,page:_,isScrollDown:A===void 0||_>A||a.length===1,skipIfVisible:H&&a.length>1,fallbackScrollEl:r?document.body:document.documentElement}),H=!1,A??(A=-1),T())},{immediate:!0})}return{asyncImgs:ie(()=>S.value),isWebtoon:ie(()=>o.value??!1),isManga:ie(()=>n.value)}}function Rp(e,t,n){return ie(()=>t.value?Sl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function Sl(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,l)=>({img:s,index:n+l})),...Sl(e.slice(r.length),t&&i,n+r.length)]}function Np(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=J(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 Fp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Ii=40;function Hp({page:e,totalImgs:t,direction:n,style:o,isLongStrip:i,isVertical:r,isRTL:s,spaceTop:l,scrollEl:a,isWebtoon:c,interferePlayer:u,onChangedPage:d,onInitialized:p,onFinished:S}){let E=!1,g=!1,k=!1,I;const X=Ze(j,300),L=Ss(()=>{j(),X()},300),V=y=>(W(y),Ze(W,50)(y));async function C(){b(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function T(){var y;g=!0,p(),Y(),(y=a.value)==null||y.addEventListener("scroll",L),setTimeout(()=>{const{width:Q,height:de}=As();be(Q,()=>{r.value&&V(e.value)}),be(de,()=>{r.value||V(e.value)}),be(o,()=>V(e.value)),be(n,()=>V(e.value)),/iPad|iPhone|iPod/.test(navigator.userAgent)&&be(t,()=>{s.value&&V(e.value)})},300)}async function W(y){if(!(!g||E)){if(E=!0,await vt(),w()===y){E=!1;return}b(y)}}function b(y,{smooth:Q,ensureLastImgVisibility:de=!1}={smooth:!1}){const ce=a.value;if(!ce)return;E=!0;const ge=async()=>{await vt(),E=!1,g||T()},Ee=Math.floor(y),$e=wi(ce,Ee);if(!$e){ge();return}u(async()=>{await M(ce,!i.value&&Q,async()=>{await K(ce,$e,{smooth:Q,page:y,ensureLastImgVisibility:de})}),await ge()})}async function M(y,Q,de){Q&&y.style.setProperty("scroll-snap-type","none"),await de(),Q&&y.style.removeProperty("scroll-snap-type")}function j(){if(E)return;const y=w();y!==void 0&&y!==e.value&&d(y),Y()}function Y(){k||!k&&m()&&(k=!0,S())}function m(){const y=a.value;if(!y)return!1;const Q=i.value?c.value?3:!r.value&&y.clientWidth>y.clientHeight?2.25:2.5:2;return r.value?y.scrollHeight-y.scrollTop<y.clientHeight*Q:y.scrollWidth-(s.value?-y.scrollLeft:y.scrollLeft)<y.clientWidth*Q}function w(){const y=H();return y?(+y.getAttribute("data-index")||0)+(i.value?_(y):0):void 0}function H(){var Q;if(I??(I=a.value.getRootNode()),!I)return;const y=(Q=I.elementsFromPoint)==null?void 0:Q.call(I,r.value||!i.value?window.innerWidth/2:s.value?window.innerWidth-Ii:Ii,r.value&&i.value?l.value||Ii:window.innerHeight/2);if(y)for(let de=0;de<y.length;de++){const ce=y[de];if(ce.hasAttribute("data-index"))return ce;if(ce===a.value)break}}function _(y){const Q=y.getBoundingClientRect();return r.value?Math.abs(Q.top-l.value)/Q.height:s.value?Math.max(0,Q.right-a.value.clientWidth)/Q.width:Math.abs(Q.left)/Q.width}let A=!1;async function K(y,Q,de){if(A)return;const ce=Q.getBoundingClientRect();if(!i.value){if(r.value){if(ce.top<=0&&ce.bottom>=y.clientHeight)return}else if(ce.left<=0&&ce.right>=y.clientWidth)return}A=!0;const ge=r.value?y.scrollTop:y.scrollLeft,Ee=de.page,$e=i.value?Ee%1:0,ft=await an(30,10,async()=>{await $n();let Oe;if(!(Q.offsetHeight<10))return i.value?r.value?Oe=Q.offsetTop+$e*Q.offsetHeight-l.value:s.value?Oe=Q.offsetLeft-y.clientWidth+Q.offsetWidth-$e*Q.offsetWidth:Oe=Q.offsetLeft+$e*Q.offsetWidth:r.value?Oe=Q.offsetTop+(ce.top>0?0:ce.height-y.clientHeight):Oe=Q.offsetLeft+(ce.left>0?0:ce.width-y.clientWidth),Ee>.5&&Math.abs(Oe)<100?void 0:Oe})??0,De=de.ensureLastImgVisibility?r.value?Math.min(ft,y.scrollHeight-y.clientHeight*2):s.value?Math.max(ft,-(y.scrollWidth-y.clientWidth*2)):Math.min(ft,y.scrollWidth-y.clientWidth*2):ft;if(!de.smooth){r.value?y.scrollTop=De:y.scrollLeft=De,A=!1;return}const yt=De-ge,Bt=30;let jt=0;return new Promise(Oe=>{(function it(){const rt=Vp(jt,ge,yt,Bt);r.value?y.scrollTop=rt:y.scrollLeft=rt,jt++,jt<=Bt?requestAnimationFrame(it):(Oe(),A=!1)})()})}return{init:C,goToPage:b}}function Vp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Wp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=J(typeof l=="string"?l==="true":e),c=ie({get:()=>a.value,set:b=>{a.value=b,sessionStorage.setItem("tk:playing",b?"true":"false")}}),u=J(!1);let d,p;const S=Ze(T,100),E=Ze(()=>{u.value=!0},t?2e3:1e3),g=()=>setTimeout(()=>{u.value=!1,E()},30);g(),t||Lt(window,"mousemove",g);const k=$s();He(()=>{be(k,b=>{c.value&&(b==="visible"?T():p==null||p())}),be(s,()=>I()),be(r,b=>{b||L()})}),Vt(L);async function I(b){c.value&&(p==null||p()),b&&(await vt(),await b()),c.value&&S()}function X(){c.value?L():V()}function L(){c.value&&(c.value=!1,p==null||p(),g())}function V(){!c.value&&r.value&&(c.value=!0,T(),g())}function C(){p==null||p()}function T(){const b=n.value;if(!c.value||!b)return;const M=o.value?b.scrollHeight-b.clientHeight:b.scrollWidth-b.clientWidth,j=W();if(M<=j){L();return}p=()=>{d=Date.now(),p=void 0};const Y=Date.now();d=Y;const m=.1*s.value,w=o.value?"scrollTop":"scrollLeft";let H=Date.now(),_=0;const A=()=>{if(d!==Y)return;const K=Date.now(),y=K-H;H=K;const Q=m*y+_;Q>=1?(_=Q%1,b[w]+=(Q-_)*(i.value?-1:1)):_=Q,setTimeout(A,1)};A()}function W(){const b=n.value;return o.value?b.scrollTop:i.value?-b.scrollLeft:b.scrollLeft}return{isPlaying:c,isIdle:u,toggle:X,play:V,pause:C,resume:T,stop:L,interfere:I,awake:g}}function Kp({raw:e,spec:t,siteMeta:n,onSelect:o}){var j,Y,m;const{vol:i,inferVol:r,chap:s,title:l,slug:a,basePath:c}=e,u=t==null?void 0:t.chapter;let d=-1;async function p(w,H){if(o){o({...w});return}if(w.slug){S(w.slug,H);return}if(w.elIndex===void 0||!(u!=null&&u.sel))return;let _=null;document.querySelector(u.sel)||(u!=null&&u.trigger&&(_=document.querySelector(u.trigger)),_&&(_.click(),await new Promise(K=>setTimeout(()=>K(),50))));const A=u&&u.sel&&!u.url?document.querySelectorAll(u.sel):void 0;A!=null&&A[w.elIndex]&&(Si(A[w.elIndex]),_&&document.querySelector(u.sel)&&_.click())}function S(w,H){const _=Up(c,w,(n==null?void 0:n.trailing)??!0);H?window.open(_,"_blank","noopener"):location.href=_}function E(w){const H=L[w];return H?_=>p(H,_):void 0}function g(w,H,_){if(w){const A=document.querySelector(w);A&&Si(A);return}H&&S(H,_)}const k=i??r,I=u==null?void 0:u.url,X=((j=l.chapters)==null?void 0:j.filter(w=>w.slug||!I&&w.elIndex!==void 0))??[],L=X.length>1?X:[],V=(Y=e.prev)==null?void 0:Y.slug,C=(m=e.next)==null?void 0:m.slug,{prevBtn:T,nextBtn:W}=t??{};let b=V||T&&!L.length&&document.body.querySelector(T)?w=>g(T,V,w):void 0,M=C||W&&!L.length&&document.body.querySelector(W)?w=>g(W,C,w):void 0;if(L.length){if(I&&(d=L.findIndex(w=>w.slug===e.slug)),d===-1&&(d=L.findIndex(w=>(w.vol??w.inferVol)===k&&w.chap===s)),I&&d===-1&&(d=L.findIndex(w=>w.slug&&a.startsWith(`${w.slug}-`)&&a.length-w.slug.length>3)),d!==-1)b??(b=E(d+1)),M??(M=E(d-1));else if(!V&&!C){const w=L.findIndex(H=>{const _=H.vol??H.inferVol;return k===void 0||_===void 0||k===_?H.chap<s:_<k});w!==-1?(b=E(w),M=E(w-1)):M=E(L.length-1)}}return{activeIndex:d,activeLabel:kl({vol:i,chap:s}),prev:b,next:M,chapters:L.map(w=>({label:kl(w),select:H=>p(w,H)}))}}function kl({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 vo=(e=>(e[e.never=0]="never",e[e.move=1]="move",e[e.firstMove=2]="firstMove",e))(vo||{});const qp={class:"flex justify-center items-center gap-1 pl-1 pr-2 h-full"},Yp=G("span",{class:"text-sm"},"Add to library",-1),Zp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Cl=ye(we({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},siteMeta:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean},offlineMode:{type:Boolean},autoNextSeconds:{},defaultGap:{},hideControlsEvent:{},progressSize:{}},emits:["error","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,r;const s=J(!1),l=J(!1),a=Cu({touchDevice:n.touchDevice}),c=Np(n.page,n.isAutoShow),u=ie(()=>n.immediate||s.value?n.spaceTop??0:0),{asyncImgs:d,isWebtoon:p,isManga:S}=Dp({raw:ie(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,async onReady(v){De(v),s.value=!0},onError:()=>{o("error"),N()},onTimeout:()=>o("timeout")}),{direction:E,style:g,isRTL:k,isDouble:I,isVertical:X,isLongStrip:L,gap:V,speed:C,zoom:T,breakFirst:W,autoNextSeconds:b}=ud({isWebtoon:p,isManga:S,titleName:ie(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),defaultStyle:ie(()=>n.readerStyle),defaultDirection:ie(()=>n.direction),defaultGap:ie(()=>n.defaultGap)}),M=J(!1),j=Rp(d,I,W),Y=ie(()=>d.value.length),m=ie(()=>c.value>=Y.value),w=ie(()=>n.raw?Kp({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta,onSelect:n.offlineMode?v=>o("selectChapter",v):void 0}):void 0),H=J(null),_=Es(),A=J(!1),K=J(!1),y=Wp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var v;return(v=H.value)==null?void 0:v.$el}),speed:C,isRTL:k,isVertical:X,isLongStrip:L}),Q=ie(()=>!n.touchDevice&&y.isIdle.value&&!a.value&&!M.value),de=ie({get(){return T.value},set(v){y.interfere(()=>{T.value=v})}}),ce=Hp({page:c,totalImgs:Y,style:g,direction:E,isLongStrip:L,isVertical:X,isRTL:k,spaceTop:u,isWebtoon:p,scrollEl:ie(()=>{var v;return(v=H.value)==null?void 0:v.$el}),interferePlayer:v=>y.interfere(v),onChangedPage:De,onInitialized(){o("ready"),l.value=!0,r=yt()},onFinished:()=>o("finished")}),ge=ie(()=>Math.floor(c.value)),Ee=ie(()=>L.value?c.value:I.value?D():Math.floor(c.value)),$e=()=>y.interfere(()=>$n(100));Au().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const B=L.value&&X.value,re=L.value&&!X.value,pe=!L.value&&X.value,pt=!L.value&&!X.value;switch(v.key){case" ":v.preventDefault(),L.value?(ue(!1),y.toggle()):$();break;case"ArrowUp":case"PageUp":B?$e():pe&&ge.value!==0&&(v.preventDefault(),R());break;case"ArrowDown":case"PageDown":B?$e():pe&&!m.value&&(v.preventDefault(),F());break;case"ArrowLeft":re?$e():pt?(v.preventDefault(),P()):X.value&&rt();break;case"ArrowRight":re?$e():pt?(v.preventDefault(),O()):X.value&&it();break;case"Escape":v.preventDefault();break}},onKeyUp:v=>{switch(v.key){case"b":W.value=!W.value;break;case"f":ne();break;case"t":U();break;case"h":ue();break}}}),vu(()=>o("hapticFeedback")),Lt("fullscreenchange",()=>{A.value=!!document.fullscreenElement}),be(y.isPlaying,v=>{v||$(!1),o("playingChanged",v)}),be(y.isIdle,v=>{y.isPlaying.value&&$(v)}),be(a,v=>{!v&&y.isIdle.value?y.awake():v&&n.fullScreen&&$()});function De(v){if(c.value===v)return;const B=d.value.length;if(v<0||v>=B+1)return;const re=Math.floor(v*100)/100;if(re===c.value)return;const pe=c.value;if(c.value=re,o("pageChanged",re),v>=B){$(!1),y.stop();return}if(v<.01&&pe>v){$(!1),y.awake();return}const Mn=n.hideControlsEvent??vo.firstMove;if(!i&&Mn===vo.firstMove){(L.value?r!==void 0&&Math.abs(yt()-r)>300:Math.abs(pe-v)>=1)&&$(!0);return}!y.isPlaying.value&&Mn===vo.move&&$(!0)}function yt(){var B;const v=(B=H.value)==null?void 0:B.$el;return v?X.value?v.scrollTop:k.value?-v.scrollLeft:v.scrollLeft:0}function Bt(){!n.touchDevice&&!L.value&&ce.goToPage(ge.value,{smooth:!0})}function jt(){if(y.isPlaying.value){!n.fullScreen||!n.touchDevice?y.stop():y.awake();return}$()}function Oe(v){n.offlineMode&&(v.preventDefault(),o("pressedBack"))}function it(v=!1){var B,re;(re=(B=w.value)==null?void 0:B.next)==null||re.call(B,v)}function rt(v=!1){var B,re;(re=(B=w.value)==null?void 0:B.prev)==null||re.call(B,v)}function f(v){k.value?it(x(v)):rt(x(v))}function h(v){k.value?rt(x(v)):it(x(v))}function x(v){return!n.touchDevice&&(v.ctrlKey||v.metaKey)}function P(){k.value?F():R()}function O(){k.value?R():F()}function R(){var re;const v=j.value,B=m.value?v[v.length-1][0].index:(re=v[D()-1])==null?void 0:re[0].index;B!==void 0?ce.goToPage(B):rt()}function F(){var v,B;if(m.value)it();else{const re=((B=(v=j.value[D()+1])==null?void 0:v[0])==null?void 0:B.index)??d.value.length;ce.goToPage(re)}}function D(){const v=ge.value,B=j.value.findIndex(re=>re.some(({index:pe})=>pe===v));return B===-1?j.value.length-1:B}function N(){if(n.offlineMode){o("pressedBack");return}Fp(),o("dispose")}async function $(v){if(a.value&&!n.fullScreen)return;const B=typeof v=="boolean"?v:!n.fullScreen;B!==n.fullScreen&&(i=!0,o("fullScreenChanged",B),B&&setTimeout(()=>{n.fullScreen&&a.value&&o("fullScreenChanged",!1)},100))}function U(){n.entryId?se():te()}function ne(){var v,B;document.fullscreenElement?document.exitFullscreen():(B=(v=_.value)==null?void 0:v.querySelector("#reader-layout"))==null||B.requestFullscreen()}function te(){y.stop(),o("addEntry")}function se(){y.stop(),o("openEntry",n.entryId)}function ue(v){K.value!==v&&(K.value=!K.value,K.value&&y.isPlaying.value&&y.stop())}return(v,B)=>v.immediate||s.value?(z(),ve(il,{key:0,loading:!l.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,zooming:M.value,idle:Q.value,"space-top":u.value,rtl:Z(k),onClick:B[15]||(B[15]=je(()=>{},["stop"]))},Ko({settings:le(()=>{var re;return[ee(Ws,{"reader-style":Z(g),"onUpdate:readerStyle":B[6]||(B[6]=pe=>Me(g)?g.value=pe:null),direction:Z(E),"onUpdate:direction":B[7]||(B[7]=pe=>Me(E)?E.value=pe:null),gap:Z(V),"onUpdate:gap":B[8]||(B[8]=pe=>Me(V)?V.value=pe:null),speed:Z(C),"onUpdate:speed":B[9]||(B[9]=pe=>Me(C)?C.value=pe:null),zoom:de.value,"onUpdate:zoom":B[10]||(B[10]=pe=>de.value=pe),"auto-next-seconds":Z(b),"onUpdate:autoNextSeconds":B[11]||(B[11]=pe=>Me(b)?b.value=pe:null),name:(re=v.raw)==null?void 0:re.title.name,webtoon:Z(p),disabled:!s.value,"hide-auto-next":v.autoNextSeconds!==void 0,onHelp:ue},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled","hide-auto-next"])]}),"reset-zoom":le(()=>[ee(rn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[M.value||Z(T)!==1?(z(),ve(Us,{key:0,zoom:de.value,onClick:B[14]||(B[14]=je(()=>de.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):Se("",!0)]),_:1})]),default:le(()=>{var re;return[s.value?(z(),ve(ol,{key:0,ref_key:"body",ref:H,zoom:de.value,"onUpdate:zoom":B[0]||(B[0]=pe=>de.value=pe),zooming:M.value,"onUpdate:zooming":B[1]||(B[1]=pe=>M.value=pe),page:Z(c),"page-index":ge.value,pages:Z(j),"total-imgs":Z(d).length,direction:Z(E),gap:Z(V),"is-long-strip":Z(L),isRTL:Z(k),"is-double":Z(I),"is-vertical":Z(X),"space-top":u.value,busy:Z(a),idle:Q.value,"play-controller":Z(y),"touch-device":v.touchDevice,"has-next":!!((re=w.value)!=null&&re.next),onReady:Z(ce).init,onPrev:R,onNext:F,onClick:jt,onDragEnd:Bt,onWheelPassive:B[2]||(B[2]=()=>Z(y).interfere())},Ko({_:2},[s.value&&Z(d).length?{name:"end",fn:le(()=>{var pe;return[ee(Bs,{"has-next":!!((pe=w.value)!=null&&pe.next),"offline-mode":!!v.offlineMode,seconds:v.autoNextSeconds??Z(b),onNext:it,onHide:N},Ko({_:2},[Z(T)===1&&!v.entryId&&v.raw&&!v.offlineMode?{name:"bottom-center",fn:le(()=>[ee(gi,{class:"bg-primary w-min !h-9 !bg-opacity-100",onClick:U},{default:le(()=>[G("div",qp,[ee(gl,{class:"flex-shrink-0 w-auto"}),Yp])]),_: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"])):Se("",!0),l.value&&!m.value&&!v.tourEnabled?(z(),ve(Gs,{key:1,direction:Z(E)},null,8,["direction"])):Se("",!0),l.value&&!m.value?(z(),ve(el,{key:2,playing:!!Z(y).isPlaying.value},null,8,["playing"])):Se("",!0),K.value?(z(),ve(Js,{key:3,"touch-device":v.touchDevice,onHide:ue},null,8,["touch-device"])):Se("",!0),v.tourEnabled?(z(),ve(rl,{key:4,onHide:B[3]||(B[3]=()=>o("tourEnabledChanged",!1))})):Se("",!0)]}),_:2},[v.raw||v.offlineMode?{name:"back",fn:le(()=>[ee(nt,{href:v.offlineMode||!v.raw?"#":v.raw.title.url,title:"Back to manga","enable-haptic-feedback":"",onClick:Oe},{default:le(()=>[ee(sl)]),_:1},8,["href"])]),key:"0"}:void 0,!v.touchDevice&&!v.offlineMode?{name:"exit",fn:le(()=>[ee(nt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:N},{default:le(()=>[ee(ml)]),_:1})]),key:"1"}:void 0,w.value?{name:"chapter-nav",fn:le(()=>{var re;return[ee(Zs,{"touch-device":v.touchDevice,"chapter-spec":(re=v.spec)==null?void 0:re.chapter,data:w.value,onGetHiddenChapters:B[4]||(B[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:B[5]||(B[5]=()=>$(!0))},null,8,["touch-device","chapter-spec","data"]),w.value.next||w.value.prev?(z(),q("div",Zp,[ee(nt,{title:`${Z(k)?"Next":"Prev"} chapter (←)`,disabled:Z(k)?!w.value.next:!w.value.prev,class:"!rounded-r-none","enable-haptic-feedback":"",onClick:f},{default:le(()=>[ee(cl)]),_:1},8,["title","disabled"]),ee(nt,{title:`${Z(k)?"Prev":"Next"} chapter (→)`,disabled:Z(k)?!w.value.prev:!w.value.next,class:"!rounded-l-none","enable-haptic-feedback":"",onClick:h},{default:le(()=>[ee(ul)]),_:1},8,["title","disabled"])])):Se("",!0)]}),key:"2"}:void 0,Z(j).length?{name:"page-nav",fn:le(()=>[ee(Qs,{"model-value":ge.value,disabled:!l.value,pages:Z(j),"total-imgs":Z(d).length,"onUpdate:modelValue":Z(ce).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,!v.offlineMode&&v.raw?{name:"entry",fn:le(()=>[ee(nt,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:U},{default:le(()=>[v.entryId?(z(),ve(al,{key:0})):(z(),ve(ll,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:le(()=>[ee(nt,{title:`${A.value?"Exit":"Enter"} fullscreen (F)`,onClick:ne},{default:le(()=>[A.value?(z(),ve(hl,{key:0})):(z(),ve(pl,{key:1}))]),_:1},8,["title"])]),key:"5"},Z(L)?{name:"play",fn:le(()=>[ee(nt,{"data-tour":"Press here to play like a video",title:`${Z(y).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:B[12]||(B[12]=()=>Z(y).toggle())},{default:le(()=>[Z(y).isPlaying.value?(z(),ve(bi,{key:0})):(z(),ve(yi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Z(I)?{name:"break-first",fn:le(()=>[ee(nt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:B[13]||(B[13]=()=>W.value=!Z(W))},{default:le(()=>[Z(W)?(z(),ve(fl,{key:0})):(z(),ve(dl,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0,v.progressSize!==0&&!m.value?{name:"progress",fn:le(()=>[ee(tl,{value:Ee.value,total:Z(j).length,"long-strip":Z(L),height:v.progressSize??2,rtl:Z(k)},null,8,["value","total","long-strip","height","rtl"])]),key:"8"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):Se("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.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{inset: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{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.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))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(184 92 56/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-textPrimary{--tw-bg-opacity:1;background-color:rgb(251 130 82/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.\\!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))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.text-textPrimary{--tw-text-opacity:1;color:rgb(251 130 82/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\: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
|
+
`]]]),Xp=Object.freeze(Object.defineProperty({__proto__:null,default:Cl},Symbol.toStringTag,{value:"Module"})),Gp=Object.freeze(Object.defineProperty({__proto__:null,default:we({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=J(null),i=J(!1);return He(async()=>{await vt();let r=!1;fi(o,s=>{const l=s.some(a=>a.isIntersecting);l!==i.value&&(i.value=l),l&&!r&&n("visible")})}),(r,s)=>(z(),q("div",{ref_key:"root",ref:o},[xe(r.$slots,"default",{visible:i.value})],512))}})},Symbol.toStringTag,{value:"Module"})),Jp={},Qp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},eh=[G("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function th(e,t){return z(),q("svg",Qp,eh)}const nh=Object.freeze(Object.defineProperty({__proto__:null,default:ye(Jp,[["render",th]])},Symbol.toStringTag,{value:"Module"})),oh=`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
|
+
`,Xt="gear-second",Ti={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,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},Xe={promise:void 0,data:Wn({...Ti})};async function ih(e){return Xe.promise?(Xe.data.raw=e.raw,await Xe.promise):(Xe.promise=new Promise(t=>{let n=!1,o=!1,i,r,s=0;const l=!!e.spaceTop||!!e.isAutoShow&&!!e.page,a=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(Xt),Object.assign(Xe.data,Ti),Xe.promise=void 0)},c=Ze(p=>{var S;return!n&&((S=e.onPageChanged)==null?void 0:S.call(e,p))},300);Object.assign(Xe.data,Ti,e,{immediate:l,onReady(){l||(u(),document.documentElement.classList.add(Xt))},onError(){var p,S;a(),o?((p=e.onDispose)==null||p.call(e),(S=e.onError)==null||S.call(e)):d()},onDispose:()=>{var p;a(),(p=e==null?void 0:e.onDispose)==null||p.call(e)},onFullScreenChanged:p=>{var S;Xe.data.fullScreen=p,(S=e.onFullScreenChanged)==null||S.call(e,p)},onPageChanged:p=>{Xe.data.page=p,!(s>=p)&&(s=p,c(p))},onTourEnabledChanged:p=>{Xe.data.tourEnabled=p}}),rh().then(()=>{if(n){d();return}r=document.createElement(Xt),l?(document.documentElement.classList.add(Xt),document.body.appendChild(r),setTimeout(u)):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(Xt),document.body.appendChild(r))},100)});function u(){o||(o=!0,t({updateArgs(p){Object.assign(Xe.data,p)},dispose:a}))}function d(){o||t(void 0)}}),await Xe.promise)}async function rh(){if(window.customElements.get(Xt))return;const e=document.createElement("style"),t=oh;e.appendChild(document.createTextNode(t)),document.head.appendChild(e);const n=Yc({styles:[await sh()],data:()=>({readerData:Xe.data}),render(){return ts(Cl,this.readerData)}});window.customElements.define(Xt,n)}async function sh(){const e=Object.assign({"./App.vue":Xp,"./components/AutoNext.vue":ku,"./components/BaseButton.vue":Tu,"./components/BottomSheet.vue":Ru,"./components/ButtonDropdown.vue":Ad,"./components/ButtonIcon.vue":Eu,"./components/ButtonReaderSettings.vue":fd,"./components/ButtonResetZoom.vue":_d,"./components/ChapterNav.vue":Bd,"./components/DirectionToast.vue":Hd,"./components/GesturesContainer.vue":rf,"./components/HelpScreen.vue":Wd,"./components/InputPercentage.vue":Hu,"./components/InputSelect.vue":Wu,"./components/IntersectionWrapper.vue":Gp,"./components/LoadingIndicator.vue":uf,"./components/PageNav.vue":Kd,"./components/PauseToast.vue":nf,"./components/ProgressBar.vue":of,"./components/ReaderBody.vue":gf,"./components/ReaderLayout.vue":Sf,"./components/ReaderTour.vue":kf,"./components/TableField.vue":qu,"./components/icons/IconBack.vue":$f,"./components/icons/IconBookmarkNew.vue":Lf,"./components/icons/IconBookmarked.vue":Rf,"./components/icons/IconChevronLeft.vue":Wf,"./components/icons/IconChevronRight.vue":Zf,"./components/icons/IconClose.vue":zu,"./components/icons/IconDouble.vue":ep,"./components/icons/IconDoubleSkip.vue":rp,"./components/icons/IconExclamationCircle.vue":nh,"./components/icons/IconFullscreen.vue":up,"./components/icons/IconFullscreenExit.vue":gp,"./components/icons/IconHelp.vue":Ju,"./components/icons/IconLoading.vue":Cd,"./components/icons/IconNext.vue":Fd,"./components/icons/IconPause.vue":Xd,"./components/icons/IconPlay.vue":tf,"./components/icons/IconPlus.vue":_p,"./components/icons/IconReaderExit.vue":Cp,"./components/icons/IconSettings.vue":od,"./components/icons/IconTriangle.vue":Md,"./components/icons/IconZoom.vue":vd}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return ih});
|