gear-second 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(De,se){typeof exports=="object"&&typeof module<"u"?module.exports=se():typeof define=="function"&&define.amd?define(se):(De=typeof globalThis<"u"?globalThis:De||self,De._gearSecond_=se())})(this,function(){"use strict";var Bp=Object.defineProperty;var Dp=(De,se,Ke)=>se in De?Bp(De,se,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):De[se]=Ke;var rl=(De,se,Ke)=>(Dp(De,typeof se!="symbol"?se+"":se,Ke),Ke);function De(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const se={},Ke=[],tt=()=>{},sl=()=>!1,il=/^on[^a-z]/,kn=e=>il.test(e),ao=e=>e.startsWith("onUpdate:"),ve=Object.assign,co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ll=Object.prototype.hasOwnProperty,ae=(e,t)=>ll.call(e,t),ee=Array.isArray,Ht=e=>Sn(e)==="[object Map]",_r=e=>Sn(e)==="[object Set]",ne=e=>typeof e=="function",be=e=>typeof e=="string",uo=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",br=e=>pe(e)&&ne(e.then)&&ne(e.catch),yr=Object.prototype.toString,Sn=e=>yr.call(e),al=e=>Sn(e).slice(8,-1),wr=e=>Sn(e)==="[object Object]",fo=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=De(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),In=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,Re=In(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),ul=/\B([A-Z])/g,Ye=In(e=>e.replace(ul,"-$1").toLowerCase()),Tn=In(e=>e.charAt(0).toUpperCase()+e.slice(1)),po=In(e=>e?`on${Tn(e)}`:""),on=(e,t)=>!Object.is(e,t),Pn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},En=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ho=e=>{const t=parseFloat(e);return isNaN(t)?e:t},go=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let xr;const mo=()=>xr||(xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=be(o)?hl(o):Oe(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(be(e))return e;if(pe(e))return e}}const fl=/;(?![^(]*\))/g,dl=/:([^]+)/,pl=/\/\*[^]*?\*\//g;function hl(e){const t={};return e.replace(pl,"").split(fl).forEach(n=>{if(n){const o=n.split(dl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ke(e){let t="";if(be(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=ke(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gl=De("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Cr(e){return!!e||e===""}const Xe=e=>be(e)?e:e==null?"":ee(e)||pe(e)&&(e.toString===yr||!ne(e.toString))?JSON.stringify(e,kr,2):String(e),kr=(e,t)=>t&&t.__v_isRef?kr(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:_r(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!ee(t)&&!wr(t)?String(t):t;let Ne;class ml{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){Ne=this}off(){Ne=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function vl(e,t=Ne){t&&t.active&&t.effects.push(e)}function Sr(){return Ne}function _l(e){Ne&&Ne.cleanups.push(e)}const vo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},$r=e=>(e.w&_t)>0,Ir=e=>(e.n&_t)>0,bl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=_t},yl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];$r(r)&&!Ir(r)?r.delete(e):t[n++]=r,r.w&=~_t,r.n&=~_t}t.length=n}},_o=new WeakMap;let rn=0,_t=1;const bo=30;let nt;const Et=Symbol(""),yo=Symbol("");class wo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,vl(this,o)}run(){if(!this.active)return this.fn();let t=nt,n=bt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=nt,nt=this,bt=!0,_t=1<<++rn,rn<=bo?bl(this):Tr(this),this.fn()}finally{rn<=bo&&yl(this),_t=1<<--rn,nt=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){nt===this?this.deferStop=!0:this.active&&(Tr(this),this.onStop&&this.onStop(),this.active=!1)}}function Tr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let bt=!0;const Pr=[];function Wt(){Pr.push(bt),bt=!1}function Ut(){const e=Pr.pop();bt=e===void 0?!0:e}function Ae(e,t,n){if(bt&&nt){let o=_o.get(e);o||_o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=vo()),Er(r)}}function Er(e,t){let n=!1;rn<=bo?Ir(e)||(e.n|=_t,n=!$r(e)):n=!e.has(nt),n&&(e.add(nt),nt.deps.push(e))}function ft(e,t,n,o,r,s){const i=_o.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&ee(e)){const l=Number(o);i.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ee(e)?fo(n)&&a.push(i.get("length")):(a.push(i.get(Et)),Ht(e)&&a.push(i.get(yo)));break;case"delete":ee(e)||(a.push(i.get(Et)),Ht(e)&&a.push(i.get(yo)));break;case"set":Ht(e)&&a.push(i.get(Et));break}if(a.length===1)a[0]&&xo(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);xo(vo(l))}}function xo(e,t){const n=ee(e)?e:[...e];for(const o of n)o.computed&&Or(o);for(const o of n)o.computed||Or(o)}function Or(e,t){(e!==nt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const wl=De("__proto__,__v_isRef,__isVue"),Mr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(uo)),xl=Co(),Cl=Co(!1,!0),kl=Co(!0),Lr=Sl();function Sl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let s=0,i=this.length;s<i;s++)Ae(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Wt();const o=ce(this)[t].apply(this,n);return Ut(),o}}),e}function $l(e){const t=ce(this);return Ae(t,"has",e),t.hasOwnProperty(e)}function Co(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?Vl:Vr:t?Fr:Nr).get(o))return o;const i=ee(o);if(!e){if(i&&ae(Lr,r))return Reflect.get(Lr,r,s);if(r==="hasOwnProperty")return $l}const a=Reflect.get(o,r,s);return(uo(r)?Mr.has(r):wl(r))||(e||Ae(o,"get",r),t)?a:ye(a)?i&&fo(r)?a:a.value:pe(a)?e?$o(a):sn(a):a}}const Il=zr(),Tl=zr(!0);function zr(e=!1){return function(n,o,r,s){let i=n[o];if(Yt(i)&&ye(i)&&!ye(r))return!1;if(!e&&(!Bn(r)&&!Yt(r)&&(i=ce(i),r=ce(r)),!ee(n)&&ye(i)&&!ye(r)))return i.value=r,!0;const a=ee(n)&&fo(o)?Number(o)<n.length:ae(n,o),l=Reflect.set(n,o,r,s);return n===ce(s)&&(a?on(r,i)&&ft(n,"set",o,r):ft(n,"add",o,r)),l}}function Pl(e,t){const n=ae(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ft(e,"delete",t,void 0),o}function El(e,t){const n=Reflect.has(e,t);return(!uo(t)||!Mr.has(t))&&Ae(e,"has",t),n}function Ol(e){return Ae(e,"iterate",ee(e)?"length":Et),Reflect.ownKeys(e)}const jr={get:xl,set:Il,deleteProperty:Pl,has:El,ownKeys:Ol},Ml={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ll=ve({},jr,{get:Cl,set:Tl}),ko=e=>e,On=e=>Reflect.getPrototypeOf(e);function Mn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),s=ce(t);n||(t!==s&&Ae(r,"get",t),Ae(r,"get",s));const{has:i}=On(r),a=o?ko:n?To:ln;if(i.call(r,t))return a(e.get(t));if(i.call(r,s))return a(e.get(s));e!==r&&e.get(t)}function Ln(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(e!==r&&Ae(o,"has",e),Ae(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function zn(e,t=!1){return e=e.__v_raw,!t&&Ae(ce(e),"iterate",Et),Reflect.get(e,"size",e)}function Ar(e){e=ce(e);const t=ce(this);return On(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function Br(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=On(n);let s=o.call(n,e);s||(e=ce(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?on(t,i)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function Dr(e){const t=ce(this),{has:n,get:o}=On(t);let r=n.call(t,e);r||(e=ce(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ft(t,"delete",e,void 0),s}function Rr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&ft(e,"clear",void 0,void 0),n}function jn(e,t){return function(o,r){const s=this,i=s.__v_raw,a=ce(i),l=t?ko:e?To:ln;return!e&&Ae(a,"iterate",Et),i.forEach((c,u)=>o.call(r,l(c),l(u),s))}}function An(e,t,n){return function(...o){const r=this.__v_raw,s=ce(r),i=Ht(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...o),u=n?ko:t?To:ln;return!t&&Ae(s,"iterate",l?yo:Et),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:a?[u(d[0]),u(d[1])]:u(d),done:m}},[Symbol.iterator](){return this}}}}function yt(e){return function(...t){return e==="delete"?!1:this}}function zl(){const e={get(s){return Mn(this,s)},get size(){return zn(this)},has:Ln,add:Ar,set:Br,delete:Dr,clear:Rr,forEach:jn(!1,!1)},t={get(s){return Mn(this,s,!1,!0)},get size(){return zn(this)},has:Ln,add:Ar,set:Br,delete:Dr,clear:Rr,forEach:jn(!1,!0)},n={get(s){return Mn(this,s,!0)},get size(){return zn(this,!0)},has(s){return Ln.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:jn(!0,!1)},o={get(s){return Mn(this,s,!0,!0)},get size(){return zn(this,!0)},has(s){return Ln.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=An(s,!1,!1),n[s]=An(s,!0,!1),t[s]=An(s,!1,!0),o[s]=An(s,!0,!0)}),[e,n,t,o]}const[jl,Al,Bl,Dl]=zl();function So(e,t){const n=t?e?Dl:Bl:e?Al:jl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ae(n,r)&&r in o?n:o,r,s)}const Rl={get:So(!1,!1)},Nl={get:So(!1,!0)},Fl={get:So(!0,!1)},Nr=new WeakMap,Fr=new WeakMap,Vr=new WeakMap,Vl=new WeakMap;function Hl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Hl(al(e))}function sn(e){return Yt(e)?e:Io(e,!1,jr,Rl,Nr)}function Ul(e){return Io(e,!1,Ll,Nl,Fr)}function $o(e){return Io(e,!0,Ml,Fl,Vr)}function Io(e,t,n,o,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Wl(e);if(i===0)return e;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Kt(e){return Yt(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function Bn(e){return!!(e&&e.__v_isShallow)}function Hr(e){return Kt(e)||Yt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Wr(e){return En(e,"__v_skip",!0),e}const ln=e=>pe(e)?sn(e):e,To=e=>pe(e)?$o(e):e;function Ur(e){bt&&nt&&(e=ce(e),Er(e.dep||(e.dep=vo())))}function Kr(e,t){e=ce(e);const n=e.dep;n&&xo(n)}function ye(e){return!!(e&&e.__v_isRef===!0)}function J(e){return Yr(e,!1)}function Kl(e){return Yr(e,!0)}function Yr(e,t){return ye(e)?e:new Yl(e,t)}class Yl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:ln(t)}get value(){return Ur(this),this._value}set value(t){const n=this.__v_isShallow||Bn(t)||Yt(t);t=n?t:ce(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Kr(this))}}function K(e){return ye(e)?e.value:e}const Xl={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Xr(e){return Kt(e)?e:new Proxy(e,Xl)}class ql{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new wo(t,()=>{this._dirty||(this._dirty=!0,Kr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return Ur(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zl(e,t,n=!1){let o,r;const s=ne(e);return s?(o=e,r=tt):(o=e.get,r=e.set),new ql(o,r,s||!r,n)}function Np(e,...t){}function wt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Dn(s,t,n)}return r}function qe(e,t,n,o){if(ne(e)){const s=wt(e,t,n,o);return s&&br(s)&&s.catch(i=>{Dn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(qe(e[s],t,n,o));return r}function Dn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=n;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){wt(l,null,10,[e,i,a]);return}}Jl(e,n,r,o)}function Jl(e,t,n,o=!0){console.error(e)}let an=!1,Po=!1;const Te=[];let lt=0;const Xt=[];let dt=null,Ot=0;const qr=Promise.resolve();let Eo=null;function Ze(e){const t=Eo||qr;return e?t.then(this?e.bind(this):e):t}function Ql(e){let t=lt+1,n=Te.length;for(;t<n;){const o=t+n>>>1;cn(Te[o])<e?t=o+1:n=o}return t}function Oo(e){(!Te.length||!Te.includes(e,an&&e.allowRecurse?lt+1:lt))&&(e.id==null?Te.push(e):Te.splice(Ql(e.id),0,e),Zr())}function Zr(){!an&&!Po&&(Po=!0,Eo=qr.then(Gr))}function Gl(e){const t=Te.indexOf(e);t>lt&&Te.splice(t,1)}function ea(e){ee(e)?Xt.push(...e):(!dt||!dt.includes(e,e.allowRecurse?Ot+1:Ot))&&Xt.push(e),Zr()}function Jr(e,t=an?lt+1:0){for(;t<Te.length;t++){const n=Te[t];n&&n.pre&&(Te.splice(t,1),t--,n())}}function Qr(e){if(Xt.length){const t=[...new Set(Xt)];if(Xt.length=0,dt){dt.push(...t);return}for(dt=t,dt.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<dt.length;Ot++)dt[Ot]();dt=null,Ot=0}}const cn=e=>e.id==null?1/0:e.id,ta=(e,t)=>{const n=cn(e)-cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gr(e){Po=!1,an=!0,Te.sort(ta);const t=tt;try{for(lt=0;lt<Te.length;lt++){const n=Te[lt];n&&n.active!==!1&&wt(n,null,14)}}finally{lt=0,Te.length=0,Qr(),an=!1,Eo=null,(Te.length||Xt.length)&&Gr()}}function na(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||se;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:m}=o[u]||se;m&&(r=n.map(x=>be(x)?x.trim():x)),d&&(r=n.map(ho))}let a,l=o[a=po(t)]||o[a=po(Re(t))];!l&&s&&(l=o[a=po(Ye(t))]),l&&qe(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(c,e,6,r)}}function es(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},a=!1;if(!ne(e)){const l=c=>{const u=es(c,t,!0);u&&(a=!0,ve(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(pe(e)&&o.set(e,null),null):(ee(s)?s.forEach(l=>i[l]=null):ve(i,s),pe(e)&&o.set(e,i),i)}function Rn(e,t){return!e||!kn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ye(t))||ae(e,t))}let Ie=null,ts=null;function Nn(e){const t=Ie;return Ie=e,ts=e&&e.type.__scopeId||null,t}function oe(e,t=Ie,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Os(-1);const s=Nn(t);let i;try{i=e(...r)}finally{Nn(s),o._d&&Os(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Fp(){}function Mo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:m,setupState:x,ctx:z,inheritAttrs:I}=e;let F,O;const j=Nn(e);try{if(n.shapeFlag&4){const g=r||o;F=ct(u.call(g,g,d,s,x,m,z)),O=l}else{const g=t;F=ct(g.length>1?g(s,{attrs:l,slots:a,emit:c}):g(s,null)),O=t.props?l:oa(l)}}catch(g){hn.length=0,Dn(g,e,1),F=q(Qe)}let H=F;if(O&&I!==!1){const g=Object.keys(O),{shapeFlag:L}=H;g.length&&L&7&&(i&&g.some(ao)&&(O=ra(O,i)),H=xt(H,O))}return n.dirs&&(H=xt(H),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&(H.transition=n.transition),F=H,Nn(j),F}const oa=e=>{let t;for(const n in e)(n==="class"||n==="style"||kn(n))&&((t||(t={}))[n]=e[n]);return t},ra=(e,t)=>{const n={};for(const o in e)(!ao(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function sa(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?ns(o,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const m=u[d];if(i[m]!==o[m]&&!Rn(c,m))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?ns(o,i,c):!0:!!i;return!1}function ns(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!Rn(n,s))return!0}return!1}function ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const la=e=>e.__isSuspense;function aa(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ea(e)}function ca(e,t){return Lo(e,null,t)}const Fn={};function ue(e,t,n){return Lo(e,t,n)}function Lo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=se){var a;const l=Sr()===((a=Se)==null?void 0:a.scope)?Se:null;let c,u=!1,d=!1;if(ye(e)?(c=()=>e.value,u=Bn(e)):Kt(e)?(c=()=>e,o=!0):ee(e)?(d=!0,u=e.some(g=>Kt(g)||Bn(g)),c=()=>e.map(g=>{if(ye(g))return g.value;if(Kt(g))return Mt(g);if(ne(g))return wt(g,l,2)})):ne(e)?t?c=()=>wt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return m&&m(),qe(e,l,3,[x])}:c=tt,t&&o){const g=c;c=()=>Mt(g())}let m,x=g=>{m=j.onStop=()=>{wt(g,l,4)}},z;if(mn)if(x=tt,t?n&&qe(t,l,3,[c(),d?[]:void 0,x]):c(),r==="sync"){const g=tc();z=g.__watcherHandles||(g.__watcherHandles=[])}else return tt;let I=d?new Array(e.length).fill(Fn):Fn;const F=()=>{if(j.active)if(t){const g=j.run();(o||u||(d?g.some((L,_)=>on(L,I[_])):on(g,I)))&&(m&&m(),qe(t,l,3,[g,I===Fn?void 0:d&&I[0]===Fn?[]:I,x]),I=g)}else j.run()};F.allowRecurse=!!t;let O;r==="sync"?O=F:r==="post"?O=()=>Be(F,l&&l.suspense):(F.pre=!0,l&&(F.id=l.uid),O=()=>Oo(F));const j=new wo(c,O);t?n?F():I=j.run():r==="post"?Be(j.run.bind(j),l&&l.suspense):j.run();const H=()=>{j.stop(),l&&l.scope&&co(l.scope.effects,j)};return z&&z.push(H),H}function ua(e,t,n){const o=this.proxy,r=be(e)?e.includes(".")?os(o,e):()=>o[e]:e.bind(o,o);let s;ne(t)?s=t:(s=t.handler,n=t);const i=Se;Zt(this);const a=Lo(r,s.bind(o),n);return i?Zt(i):Bt(),a}function os(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Mt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ye(e))Mt(e.value,t);else if(ee(e))for(let n=0;n<e.length;n++)Mt(e[n],t);else if(_r(e)||Ht(e))e.forEach(n=>{Mt(n,t)});else if(wr(e))for(const n in e)Mt(e[n],t);return e}function at(e,t){const n=Ie;if(n===null)return e;const o=Qn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,l,c=se]=t[s];i&&(ne(i)&&(i={mounted:i,updated:i}),i.deep&&Mt(a),r.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function Lt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];s&&(a.oldValue=s[i].value);let l=a.dir[o];l&&(Wt(),qe(l,n,8,[e.el,a,e,t]),Ut())}}function fa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fe(()=>{e.isMounted=!0}),cs(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],rs={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},da={name:"BaseTransition",props:rs,setup(e,{slots:t}){const n=zs(),o=fa();let r;return()=>{const s=t.default&&ls(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const I of s)if(I.type!==Qe){i=I;break}}const a=ce(e),{mode:l}=a;if(o.isLeaving)return jo(i);const c=is(i);if(!c)return jo(i);const u=zo(c,a,o,n);Ao(c,u);const d=n.subTree,m=d&&is(d);let x=!1;const{getTransitionKey:z}=c.type;if(z){const I=z();r===void 0?r=I:I!==r&&(r=I,x=!0)}if(m&&m.type!==Qe&&(!At(c,m)||x)){const I=zo(m,a,o,n);if(Ao(m,I),l==="out-in")return o.isLeaving=!0,I.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(i);l==="in-out"&&c.type!==Qe&&(I.delayLeave=(F,O,j)=>{const H=ss(o,m);H[String(m.key)]=m,F._leaveCb=()=>{O(),F._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=j})}return i}}};function ss(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function zo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:m,onAfterLeave:x,onLeaveCancelled:z,onBeforeAppear:I,onAppear:F,onAfterAppear:O,onAppearCancelled:j}=t,H=String(e.key),g=ss(n,e),L=(v,C)=>{v&&qe(v,o,9,C)},_=(v,C)=>{const w=C[1];L(v,C),ee(v)?v.every(A=>A.length<=1)&&w():v.length<=1&&w()},k={mode:s,persisted:i,beforeEnter(v){let C=a;if(!n.isMounted)if(r)C=I||a;else return;v._leaveCb&&v._leaveCb(!0);const w=g[H];w&&At(e,w)&&w.el._leaveCb&&w.el._leaveCb(),L(C,[v])},enter(v){let C=l,w=c,A=u;if(!n.isMounted)if(r)C=F||l,w=O||c,A=j||u;else return;let T=!1;const M=v._enterCb=G=>{T||(T=!0,G?L(A,[v]):L(w,[v]),k.delayedLeave&&k.delayedLeave(),v._enterCb=void 0)};C?_(C,[v,M]):M()},leave(v,C){const w=String(e.key);if(v._enterCb&&v._enterCb(!0),n.isUnmounting)return C();L(d,[v]);let A=!1;const T=v._leaveCb=M=>{A||(A=!0,C(),M?L(z,[v]):L(x,[v]),v._leaveCb=void 0,g[w]===e&&delete g[w])};g[w]=e,m?_(m,[v,T]):T()},clone(v){return zo(v,t,n,o)}};return k}function jo(e){if(Vn(e))return e=xt(e),e.children=null,e}function is(e){return Vn(e)?e.children?e.children[0]:void 0:e}function Ao(e,t){e.shapeFlag&6&&e.component?Ao(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ls(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ge?(i.patchFlag&128&&r++,o=o.concat(ls(i.children,t,a))):(t||i.type!==Qe)&&o.push(a!=null?xt(i,{key:a}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function we(e,t){return ne(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Vn=e=>e.type.__isKeepAlive;function pa(e,t){as(e,"a",t)}function ha(e,t){as(e,"da",t)}function as(e,t,n=Se){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Hn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Vn(r.parent.vnode)&&ga(o,t,n,r),r=r.parent}}function ga(e,t,n,o){const r=Hn(t,e,o,!0);Ve(()=>{co(o[t],r)},n)}function Hn(e,t,n=Se,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Wt(),Zt(n);const a=qe(t,n,e,i);return Bt(),Ut(),a});return o?r.unshift(s):r.push(s),s}}const pt=e=>(t,n=Se)=>(!mn||e==="sp")&&Hn(e,(...o)=>t(...o),n),ma=pt("bm"),Fe=pt("m"),va=pt("bu"),_a=pt("u"),cs=pt("bum"),Ve=pt("um"),ba=pt("sp"),ya=pt("rtg"),wa=pt("rtc");function xa(e,t=Se){Hn("ec",e,t)}const us="components",fs=Symbol.for("v-ndc");function Ca(e){return be(e)?ka(us,e,!1)||e:e||fs}function ka(e,t,n=!0,o=!1){const r=Ie||Se;if(r){const s=r.type;if(e===us){const a=Qa(s,!1);if(a&&(a===t||a===Re(t)||a===Tn(Re(t))))return s}const i=ds(r[e]||s[e],t)||ds(r.appContext[e],t);return!i&&o?s:i}}function ds(e,t){return e&&(e[t]||e[Re(t)]||e[Tn(Re(t))])}function fn(e,t,n,o){let r;const s=n&&n[o];if(ee(e)||be(e)){r=new Array(e.length);for(let i=0,a=e.length;i<a;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(pe(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];r[a]=t(e[c],c,a,s&&s[a])}}else r=[];return n&&(n[o]=r),r}function ps(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function xe(e,t,n={},o,r){if(Ie.isCE||Ie.parent&&un(Ie.parent)&&Ie.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),D();const i=s&&hs(s(n)),a=Ce(ge,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function hs(e){return e.some(t=>Xn(t)?!(t.type===Qe||t.type===ge&&!hs(t.children)):!0)?e:null}const Bo=e=>e?As(e)?Qn(e)||e.proxy:Bo(e.parent):null,dn=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>Oo(e.update)),$nextTick:e=>e.n||(e.n=Ze.bind(e.proxy)),$watch:e=>ua.bind(e)}),Do=(e,t)=>e!==se&&!e.__isScriptSetup&&ae(e,t),Sa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Do(o,t))return i[t]=1,o[t];if(r!==se&&ae(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ae(c,t))return i[t]=3,s[t];if(n!==se&&ae(n,t))return i[t]=4,n[t];Ro&&(i[t]=0)}}const u=dn[t];let d,m;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==se&&ae(n,t))return i[t]=4,n[t];if(m=l.config.globalProperties,ae(m,t))return m[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Do(r,t)?(r[t]=n,!0):o!==se&&ae(o,t)?(o[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let a;return!!n[i]||e!==se&&ae(e,i)||Do(t,i)||(a=s[0])&&ae(a,i)||ae(o,i)||ae(dn,i)||ae(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function gs(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function $a(e){const t=No(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&ms(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:m,beforeUpdate:x,updated:z,activated:I,deactivated:F,beforeDestroy:O,beforeUnmount:j,destroyed:H,unmounted:g,render:L,renderTracked:_,renderTriggered:k,errorCaptured:v,serverPrefetch:C,expose:w,inheritAttrs:A,components:T,directives:M,filters:G}=t;if(c&&Ia(c,o,null),i)for(const N in i){const U=i[N];ne(U)&&(o[N]=U.bind(n))}if(r){const N=r.call(n,n);pe(N)&&(e.data=sn(N))}if(Ro=!0,s)for(const N in s){const U=s[N],fe=ne(U)?U.bind(n,n):ne(U.get)?U.get.bind(n,n):tt,Ge=!ne(U)&&ne(U.set)?U.set.bind(n):tt,_e=ie({get:fe,set:Ge});Object.defineProperty(o,N,{enumerable:!0,configurable:!0,get:()=>_e.value,set:Pe=>_e.value=Pe})}if(a)for(const N in a)vs(a[N],o,n,N);if(l){const N=ne(l)?l.call(n):l;Reflect.ownKeys(N).forEach(U=>{Kn(U,N[U])})}u&&ms(u,e,"c");function $(N,U){ee(U)?U.forEach(fe=>N(fe.bind(n))):U&&N(U.bind(n))}if($(ma,d),$(Fe,m),$(va,x),$(_a,z),$(pa,I),$(ha,F),$(xa,v),$(wa,_),$(ya,k),$(cs,j),$(Ve,g),$(ba,C),ee(w))if(w.length){const N=e.exposed||(e.exposed={});w.forEach(U=>{Object.defineProperty(N,U,{get:()=>n[U],set:fe=>n[U]=fe})})}else e.exposed||(e.exposed={});L&&e.render===tt&&(e.render=L),A!=null&&(e.inheritAttrs=A),T&&(e.components=T),M&&(e.directives=M)}function Ia(e,t,n=tt){ee(e)&&(e=Fo(e));for(const o in e){const r=e[o];let s;pe(r)?"default"in r?s=zt(r.from||o,r.default,!0):s=zt(r.from||o):s=zt(r),ye(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function ms(e,t,n){qe(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function vs(e,t,n,o){const r=o.includes(".")?os(n,o):()=>n[o];if(be(e)){const s=t[e];ne(s)&&ue(r,s)}else if(ne(e))ue(r,e.bind(n));else if(pe(e))if(ee(e))e.forEach(s=>vs(s,t,n,o));else{const s=ne(e.handler)?e.handler.bind(n):t[e.handler];ne(s)&&ue(r,s,e)}}function No(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Wn(l,c,i,!0)),Wn(l,t,i)),pe(t)&&s.set(t,l),l}function Wn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Wn(e,s,n,!0),r&&r.forEach(i=>Wn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=Ta[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ta={data:_s,props:bs,emits:bs,methods:pn,computed:pn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:pn,directives:pn,watch:Ea,provide:_s,inject:Pa};function _s(e,t){return t?e?function(){return ve(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function Pa(e,t){return pn(Fo(e),Fo(t))}function Fo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ve(Object.create(null),e,t):t}function bs(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:ve(Object.create(null),gs(e),gs(t??{})):t}function Ea(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Me(e[o],t[o]);return n}function ys(){return{app:null,config:{isNativeTag:sl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Oa=0;function Ma(e,t){return function(o,r=null){ne(o)||(o=ve({},o)),r!=null&&!pe(r)&&(r=null);const s=ys(),i=new Set;let a=!1;const l=s.app={_uid:Oa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:nc,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&ne(c.install)?(i.add(c),c.install(l,...u)):ne(c)&&(i.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,d){if(!a){const m=q(o,r);return m.appContext=s,u&&t?t(m,c):e(m,c,d),a=!0,l._container=c,c.__vue_app__=l,Qn(m.component)||m.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,l},runWithContext(c){Un=l;try{return c()}finally{Un=null}}};return l}}let Un=null;function Kn(e,t){if(Se){let n=Se.provides;const o=Se.parent&&Se.parent.provides;o===n&&(n=Se.provides=Object.create(o)),n[e]=t}}function zt(e,t,n=!1){const o=Se||Ie;if(o||Un){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Un._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ne(t)?t.call(o&&o.proxy):t}}function La(e,t,n,o=!1){const r={},s={};En(s,qn,1),e.propsDefaults=Object.create(null),ws(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function za(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,a=ce(r),[l]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let m=u[d];if(Rn(e.emitsOptions,m))continue;const x=t[m];if(l)if(ae(s,m))x!==s[m]&&(s[m]=x,c=!0);else{const z=Re(m);r[z]=Vo(l,a,z,x,e,!1)}else x!==s[m]&&(s[m]=x,c=!0)}}}else{ws(e,t,r,s)&&(c=!0);let u;for(const d in a)(!t||!ae(t,d)&&((u=Ye(d))===d||!ae(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Vo(l,a,d,void 0,e,!0)):delete r[d]);if(s!==a)for(const d in s)(!t||!ae(t,d))&&(delete s[d],c=!0)}c&&ft(e,"set","$attrs")}function ws(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if($n(l))continue;const c=t[l];let u;r&&ae(r,u=Re(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:Rn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,i=!0)}if(s){const l=ce(n),c=a||se;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Vo(r,l,d,c[d],e,!ae(c,d))}}return i}function Vo(e,t,n,o,r,s){const i=e[n];if(i!=null){const a=ae(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ne(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Zt(r),o=c[n]=l.call(null,t),Bt())}else o=l}i[0]&&(s&&!a?o=!1:i[1]&&(o===""||o===Ye(n))&&(o=!0))}return o}function xs(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},a=[];let l=!1;if(!ne(e)){const u=d=>{l=!0;const[m,x]=xs(d,t,!0);ve(i,m),x&&a.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return pe(e)&&o.set(e,Ke),Ke;if(ee(s))for(let u=0;u<s.length;u++){const d=Re(s[u]);Cs(d)&&(i[d]=se)}else if(s)for(const u in s){const d=Re(u);if(Cs(d)){const m=s[u],x=i[d]=ee(m)||ne(m)?{type:m}:ve({},m);if(x){const z=$s(Boolean,x.type),I=$s(String,x.type);x[0]=z>-1,x[1]=I<0||z<I,(z>-1||ae(x,"default"))&&a.push(d)}}}const c=[i,a];return pe(e)&&o.set(e,c),c}function Cs(e){return e[0]!=="$"}function ks(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ss(e,t){return ks(e)===ks(t)}function $s(e,t){return ee(t)?t.findIndex(n=>Ss(n,e)):ne(t)&&Ss(t,e)?0:-1}const Is=e=>e[0]==="_"||e==="$stable",Ho=e=>ee(e)?e.map(ct):[ct(e)],ja=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>Ho(t(...r)),n);return o._c=!1,o},Ts=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Is(r))continue;const s=e[r];if(ne(s))t[r]=ja(r,s,o);else if(s!=null){const i=Ho(s);t[r]=()=>i}}},Ps=(e,t)=>{const n=Ho(t);e.slots.default=()=>n},Aa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),En(t,"_",n)):Ts(t,e.slots={})}else e.slots={},t&&Ps(e,t);En(e.slots,qn,1)},Ba=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=se;if(o.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(ve(r,t),!n&&a===1&&delete r._):(s=!t.$stable,Ts(t,r)),i=t}else t&&(Ps(e,t),i={default:1});if(s)for(const a in r)!Is(a)&&!(a in i)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(ee(e)){e.forEach((m,x)=>Wo(m,t&&(ee(t)?t[x]:t),n,o,r));return}if(un(o)&&!r)return;const s=o.shapeFlag&4?Qn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===se?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(be(c)?(u[c]=null,ae(d,c)&&(d[c]=null)):ye(c)&&(c.value=null)),ne(l))wt(l,a,12,[i,u]);else{const m=be(l),x=ye(l);if(m||x){const z=()=>{if(e.f){const I=m?ae(d,l)?d[l]:u[l]:l.value;r?ee(I)&&co(I,s):ee(I)?I.includes(s)||I.push(s):m?(u[l]=[s],ae(d,l)&&(d[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else m?(u[l]=i,ae(d,l)&&(d[l]=i)):x&&(l.value=i,e.k&&(u[e.k]=i))};i?(z.id=-1,Be(z,n)):z()}}}const Be=aa;function Da(e){return Ra(e)}function Ra(e,t){const n=mo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:m,setScopeId:x=tt,insertStaticContent:z}=e,I=(f,p,y,P=null,E=null,B=null,R=!1,h=null,b=!!p.dynamicChildren)=>{if(f===p)return;f&&!At(f,p)&&(P=tn(f),Pe(f,E,B,!0),f=null),p.patchFlag===-2&&(b=!1,p.dynamicChildren=null);const{type:S,ref:W,shapeFlag:V}=p;switch(S){case Yn:F(f,p,y,P);break;case Qe:O(f,p,y,P);break;case Uo:f==null&&j(p,y,P,R);break;case ge:T(f,p,y,P,E,B,R,h,b);break;default:V&1?L(f,p,y,P,E,B,R,h,b):V&6?M(f,p,y,P,E,B,R,h,b):(V&64||V&128)&&S.process(f,p,y,P,E,B,R,h,b,it)}W!=null&&E&&Wo(W,f&&f.ref,B,p||f,!p)},F=(f,p,y,P)=>{if(f==null)o(p.el=a(p.children),y,P);else{const E=p.el=f.el;p.children!==f.children&&c(E,p.children)}},O=(f,p,y,P)=>{f==null?o(p.el=l(p.children||""),y,P):p.el=f.el},j=(f,p,y,P)=>{[f.el,f.anchor]=z(f.children,p,y,P,f.el,f.anchor)},H=({el:f,anchor:p},y,P)=>{let E;for(;f&&f!==p;)E=m(f),o(f,y,P),f=E;o(p,y,P)},g=({el:f,anchor:p})=>{let y;for(;f&&f!==p;)y=m(f),r(f),f=y;r(p)},L=(f,p,y,P,E,B,R,h,b)=>{R=R||p.type==="svg",f==null?_(p,y,P,E,B,R,h,b):C(f,p,E,B,R,h,b)},_=(f,p,y,P,E,B,R,h)=>{let b,S;const{type:W,props:V,shapeFlag:Q,transition:te,dirs:re}=f;if(b=f.el=i(f.type,B,V&&V.is,V),Q&8?u(b,f.children):Q&16&&v(f.children,b,null,P,E,B&&W!=="foreignObject",R,h),re&&Lt(f,null,P,"created"),k(b,f,f.scopeId,R,P),V){for(const de in V)de!=="value"&&!$n(de)&&s(b,de,null,V[de],B,f.children,P,E,Ee);"value"in V&&s(b,"value",null,V.value),(S=V.onVnodeBeforeMount)&&ut(S,P,f)}re&&Lt(f,null,P,"beforeMount");const le=(!E||E&&!E.pendingBranch)&&te&&!te.persisted;le&&te.beforeEnter(b),o(b,p,y),((S=V&&V.onVnodeMounted)||le||re)&&Be(()=>{S&&ut(S,P,f),le&&te.enter(b),re&&Lt(f,null,P,"mounted")},E)},k=(f,p,y,P,E)=>{if(y&&x(f,y),P)for(let B=0;B<P.length;B++)x(f,P[B]);if(E){let B=E.subTree;if(p===B){const R=E.vnode;k(f,R,R.scopeId,R.slotScopeIds,E.parent)}}},v=(f,p,y,P,E,B,R,h,b=0)=>{for(let S=b;S<f.length;S++){const W=f[S]=h?kt(f[S]):ct(f[S]);I(null,W,p,y,P,E,B,R,h)}},C=(f,p,y,P,E,B,R)=>{const h=p.el=f.el;let{patchFlag:b,dynamicChildren:S,dirs:W}=p;b|=f.patchFlag&16;const V=f.props||se,Q=p.props||se;let te;y&&jt(y,!1),(te=Q.onVnodeBeforeUpdate)&&ut(te,y,p,f),W&&Lt(p,f,y,"beforeUpdate"),y&&jt(y,!0);const re=E&&p.type!=="foreignObject";if(S?w(f.dynamicChildren,S,h,y,P,re,B):R||U(f,p,h,null,y,P,re,B,!1),b>0){if(b&16)A(h,p,V,Q,y,P,E);else if(b&2&&V.class!==Q.class&&s(h,"class",null,Q.class,E),b&4&&s(h,"style",V.style,Q.style,E),b&8){const le=p.dynamicProps;for(let de=0;de<le.length;de++){const me=le[de],Ue=V[me],Pt=Q[me];(Pt!==Ue||me==="value")&&s(h,me,Ue,Pt,E,f.children,y,P,Ee)}}b&1&&f.children!==p.children&&u(h,p.children)}else!R&&S==null&&A(h,p,V,Q,y,P,E);((te=Q.onVnodeUpdated)||W)&&Be(()=>{te&&ut(te,y,p,f),W&&Lt(p,f,y,"updated")},P)},w=(f,p,y,P,E,B,R)=>{for(let h=0;h<p.length;h++){const b=f[h],S=p[h],W=b.el&&(b.type===ge||!At(b,S)||b.shapeFlag&70)?d(b.el):y;I(b,S,W,null,P,E,B,R,!0)}},A=(f,p,y,P,E,B,R)=>{if(y!==P){if(y!==se)for(const h in y)!$n(h)&&!(h in P)&&s(f,h,y[h],null,R,p.children,E,B,Ee);for(const h in P){if($n(h))continue;const b=P[h],S=y[h];b!==S&&h!=="value"&&s(f,h,S,b,R,p.children,E,B,Ee)}"value"in P&&s(f,"value",y.value,P.value)}},T=(f,p,y,P,E,B,R,h,b)=>{const S=p.el=f?f.el:a(""),W=p.anchor=f?f.anchor:a("");let{patchFlag:V,dynamicChildren:Q,slotScopeIds:te}=p;te&&(h=h?h.concat(te):te),f==null?(o(S,y,P),o(W,y,P),v(p.children,y,W,E,B,R,h,b)):V>0&&V&64&&Q&&f.dynamicChildren?(w(f.dynamicChildren,Q,y,E,B,R,h),(p.key!=null||E&&p===E.subTree)&&Es(f,p,!0)):U(f,p,y,W,E,B,R,h,b)},M=(f,p,y,P,E,B,R,h,b)=>{p.slotScopeIds=h,f==null?p.shapeFlag&512?E.ctx.activate(p,y,P,R,b):G(p,y,P,E,B,R,b):Z(f,p,b)},G=(f,p,y,P,E,B,R)=>{const h=f.component=Ya(f,P,E);if(Vn(f)&&(h.ctx.renderer=it),Xa(h),h.asyncDep){if(E&&E.registerDep(h,$),!f.el){const b=h.subTree=q(Qe);O(null,b,p,y)}return}$(h,f,p,y,E,B,R)},Z=(f,p,y)=>{const P=p.component=f.component;if(sa(f,p,y))if(P.asyncDep&&!P.asyncResolved){N(P,p,y);return}else P.next=p,Gl(P.update),P.update();else p.el=f.el,P.vnode=p},$=(f,p,y,P,E,B,R)=>{const h=()=>{if(f.isMounted){let{next:W,bu:V,u:Q,parent:te,vnode:re}=f,le=W,de;jt(f,!1),W?(W.el=re.el,N(f,W,R)):W=re,V&&Pn(V),(de=W.props&&W.props.onVnodeBeforeUpdate)&&ut(de,te,W,re),jt(f,!0);const me=Mo(f),Ue=f.subTree;f.subTree=me,I(Ue,me,d(Ue.el),tn(Ue),f,E,B),W.el=me.el,le===null&&ia(f,me.el),Q&&Be(Q,E),(de=W.props&&W.props.onVnodeUpdated)&&Be(()=>ut(de,te,W,re),E)}else{let W;const{el:V,props:Q}=p,{bm:te,m:re,parent:le}=f,de=un(p);if(jt(f,!1),te&&Pn(te),!de&&(W=Q&&Q.onVnodeBeforeMount)&&ut(W,le,p),jt(f,!0),V&&nn){const me=()=>{f.subTree=Mo(f),nn(V,f.subTree,f,E,null)};de?p.type.__asyncLoader().then(()=>!f.isUnmounted&&me()):me()}else{const me=f.subTree=Mo(f);I(null,me,y,P,f,E,B),p.el=me.el}if(re&&Be(re,E),!de&&(W=Q&&Q.onVnodeMounted)){const me=p;Be(()=>ut(W,le,me),E)}(p.shapeFlag&256||le&&un(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Be(f.a,E),f.isMounted=!0,p=y=P=null}},b=f.effect=new wo(h,()=>Oo(S),f.scope),S=f.update=()=>b.run();S.id=f.uid,jt(f,!0),S()},N=(f,p,y)=>{p.component=f;const P=f.vnode.props;f.vnode=p,f.next=null,za(f,p.props,P,y),Ba(f,p.children,y),Wt(),Jr(),Ut()},U=(f,p,y,P,E,B,R,h,b=!1)=>{const S=f&&f.children,W=f?f.shapeFlag:0,V=p.children,{patchFlag:Q,shapeFlag:te}=p;if(Q>0){if(Q&128){Ge(S,V,y,P,E,B,R,h,b);return}else if(Q&256){fe(S,V,y,P,E,B,R,h,b);return}}te&8?(W&16&&Ee(S,E,B),V!==S&&u(y,V)):W&16?te&16?Ge(S,V,y,P,E,B,R,h,b):Ee(S,E,B,!0):(W&8&&u(y,""),te&16&&v(V,y,P,E,B,R,h,b))},fe=(f,p,y,P,E,B,R,h,b)=>{f=f||Ke,p=p||Ke;const S=f.length,W=p.length,V=Math.min(S,W);let Q;for(Q=0;Q<V;Q++){const te=p[Q]=b?kt(p[Q]):ct(p[Q]);I(f[Q],te,y,null,E,B,R,h,b)}S>W?Ee(f,E,B,!0,!1,V):v(p,y,P,E,B,R,h,b,V)},Ge=(f,p,y,P,E,B,R,h,b)=>{let S=0;const W=p.length;let V=f.length-1,Q=W-1;for(;S<=V&&S<=Q;){const te=f[S],re=p[S]=b?kt(p[S]):ct(p[S]);if(At(te,re))I(te,re,y,null,E,B,R,h,b);else break;S++}for(;S<=V&&S<=Q;){const te=f[V],re=p[Q]=b?kt(p[Q]):ct(p[Q]);if(At(te,re))I(te,re,y,null,E,B,R,h,b);else break;V--,Q--}if(S>V){if(S<=Q){const te=Q+1,re=te<W?p[te].el:P;for(;S<=Q;)I(null,p[S]=b?kt(p[S]):ct(p[S]),y,re,E,B,R,h,b),S++}}else if(S>Q)for(;S<=V;)Pe(f[S],E,B,!0),S++;else{const te=S,re=S,le=new Map;for(S=re;S<=Q;S++){const ze=p[S]=b?kt(p[S]):ct(p[S]);ze.key!=null&&le.set(ze.key,S)}let de,me=0;const Ue=Q-re+1;let Pt=!1,so=0;const Vt=new Array(Ue);for(S=0;S<Ue;S++)Vt[S]=0;for(S=te;S<=V;S++){const ze=f[S];if(me>=Ue){Pe(ze,E,B,!0);continue}let et;if(ze.key!=null)et=le.get(ze.key);else for(de=re;de<=Q;de++)if(Vt[de-re]===0&&At(ze,p[de])){et=de;break}et===void 0?Pe(ze,E,B,!0):(Vt[et-re]=S+1,et>=so?so=et:Pt=!0,I(ze,p[et],y,null,E,B,R,h,b),me++)}const io=Pt?Na(Vt):Ke;for(de=io.length-1,S=Ue-1;S>=0;S--){const ze=re+S,et=p[ze],lo=ze+1<W?p[ze+1].el:P;Vt[S]===0?I(null,et,y,lo,E,B,R,h,b):Pt&&(de<0||S!==io[de]?_e(et,y,lo,2):de--)}}},_e=(f,p,y,P,E=null)=>{const{el:B,type:R,transition:h,children:b,shapeFlag:S}=f;if(S&6){_e(f.component.subTree,p,y,P);return}if(S&128){f.suspense.move(p,y,P);return}if(S&64){R.move(f,p,y,it);return}if(R===ge){o(B,p,y);for(let V=0;V<b.length;V++)_e(b[V],p,y,P);o(f.anchor,p,y);return}if(R===Uo){H(f,p,y);return}if(P!==2&&S&1&&h)if(P===0)h.beforeEnter(B),o(B,p,y),Be(()=>h.enter(B),E);else{const{leave:V,delayLeave:Q,afterLeave:te}=h,re=()=>o(B,p,y),le=()=>{V(B,()=>{re(),te&&te()})};Q?Q(B,re,le):le()}else o(B,p,y)},Pe=(f,p,y,P=!1,E=!1)=>{const{type:B,props:R,ref:h,children:b,dynamicChildren:S,shapeFlag:W,patchFlag:V,dirs:Q}=f;if(h!=null&&Wo(h,null,y,f,!0),W&256){p.ctx.deactivate(f);return}const te=W&1&&Q,re=!un(f);let le;if(re&&(le=R&&R.onVnodeBeforeUnmount)&&ut(le,p,f),W&6)en(f.component,y,P);else{if(W&128){f.suspense.unmount(y,P);return}te&&Lt(f,null,p,"beforeUnmount"),W&64?f.type.remove(f,p,y,E,it,P):S&&(B!==ge||V>0&&V&64)?Ee(S,p,y,!1,!0):(B===ge&&V&384||!E&&W&16)&&Ee(b,p,y),P&&We(f)}(re&&(le=R&&R.onVnodeUnmounted)||te)&&Be(()=>{le&&ut(le,p,f),te&&Lt(f,null,p,"unmounted")},y)},We=f=>{const{type:p,el:y,anchor:P,transition:E}=f;if(p===ge){mt(y,P);return}if(p===Uo){g(f);return}const B=()=>{r(y),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(f.shapeFlag&1&&E&&!E.persisted){const{leave:R,delayLeave:h}=E,b=()=>R(y,B);h?h(f.el,B,b):b()}else B()},mt=(f,p)=>{let y;for(;f!==p;)y=m(f),r(f),f=y;r(p)},en=(f,p,y)=>{const{bum:P,scope:E,update:B,subTree:R,um:h}=f;P&&Pn(P),E.stop(),B&&(B.active=!1,Pe(R,f,p,y)),h&&Be(h,p),Be(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ee=(f,p,y,P=!1,E=!1,B=0)=>{for(let R=B;R<f.length;R++)Pe(f[R],p,y,P,E)},tn=f=>f.shapeFlag&6?tn(f.component.subTree):f.shapeFlag&128?f.suspense.next():m(f.anchor||f.el),ro=(f,p,y)=>{f==null?p._vnode&&Pe(p._vnode,null,null,!0):I(p._vnode||null,f,p,null,null,null,y),Jr(),Qr(),p._vnode=f},it={p:I,um:Pe,m:_e,r:We,mt:G,mc:v,pc:U,pbc:w,n:tn,o:e};let vt,nn;return t&&([vt,nn]=t(it)),{render:ro,hydrate:vt,createApp:Ma(ro,vt)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Es(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(r))for(let s=0;s<o.length;s++){const i=o[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=kt(r[s]),a.el=i.el),n||Es(i,a)),a.type===Yn&&(a.el=i.el)}}function Na(e){const t=e.slice(),n=[0];let o,r,s,i,a;const l=e.length;for(o=0;o<l;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Fa=e=>e.__isTeleport,ge=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),Qe=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let ot=null;function D(e=!1){hn.push(ot=e?null:[])}function Va(){hn.pop(),ot=hn[hn.length-1]||null}let gn=1;function Os(e){gn+=e}function Ms(e){return e.dynamicChildren=gn>0?ot||Ke:null,Va(),gn>0&&ot&&ot.push(e),e}function Y(e,t,n,o,r,s){return Ms(X(e,t,n,o,r,s,!0))}function Ce(e,t,n,o,r){return Ms(q(e,t,n,o,r,!0))}function Xn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const qn="__vInternal",Ls=({key:e})=>e??null,Zn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||ye(e)||ne(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,s=e===ge?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ls(t),ref:t&&Zn(t),scopeId:ts,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return a?(Ko(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=be(n)?8:16),gn>0&&!i&&ot&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&ot.push(l),l}const q=Ha;function Ha(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===fs)&&(e=Qe),Xn(e)){const a=xt(e,t,!0);return n&&Ko(a,n),gn>0&&!s&&ot&&(a.shapeFlag&6?ot[ot.indexOf(e)]=a:ot.push(a)),a.patchFlag|=-2,a}if(Ga(e)&&(e=e.__vccOpts),t){t=Wa(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=ke(a)),pe(l)&&(Hr(l)&&!ee(l)&&(l=ve({},l)),t.style=Oe(l))}const i=be(e)?1:la(e)?128:Fa(e)?64:pe(e)?4:ne(e)?2:0;return X(e,t,n,o,r,i,s,!0)}function Wa(e){return e?Hr(e)||qn in e?ve({},e):e:null}function xt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,a=t?Jn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ls(a),ref:t&&t.ref?n&&r?ee(r)?r.concat(Zn(t)):[r,Zn(t)]:Zn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return q(Yn,null,e,t)}function Le(e="",t=!1){return t?(D(),Ce(Qe,null,e)):q(Qe,null,e)}function ct(e){return e==null||typeof e=="boolean"?q(Qe):ee(e)?q(ge,null,e.slice()):typeof e=="object"?kt(e):q(Yn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ko(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(qn in t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=ke([t.class,o.class]));else if(r==="style")t.style=Oe([t.style,o.style]);else if(kn(r)){const s=t[r],i=o[r];i&&s!==i&&!(ee(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){qe(e,t,7,[n,o])}const Ua=ys();let Ka=0;function Ya(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ua,s={uid:Ka++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ml(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xs(o,r),emitsOptions:es(o,r),emit:null,emitted:null,propsDefaults:se,inheritAttrs:o.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=na.bind(null,s),e.ce&&e.ce(s),s}let Se=null;const zs=()=>Se||Ie;let Yo,qt,js="__VUE_INSTANCE_SETTERS__";(qt=mo()[js])||(qt=mo()[js]=[]),qt.push(e=>Se=e),Yo=e=>{qt.length>1?qt.forEach(t=>t(e)):qt[0](e)};const Zt=e=>{Yo(e),e.scope.on()},Bt=()=>{Se&&Se.scope.off(),Yo(null)};function As(e){return e.vnode.shapeFlag&4}let mn=!1;function Xa(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=As(e);La(e,n,r,t),Aa(e,o);const s=r?qa(e,t):void 0;return mn=!1,s}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Wr(new Proxy(e.ctx,Sa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ja(e):null;Zt(e),Wt();const s=wt(o,e,0,[e.props,r]);if(Ut(),Bt(),br(s)){if(s.then(Bt,Bt),t)return s.then(i=>{Bs(e,i,t)}).catch(i=>{Dn(i,e,0)});e.asyncDep=s}else Bs(e,s,t)}else Rs(e,t)}function Bs(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Xr(t)),Rs(e,n)}let Ds;function Rs(e,t,n){const o=e.type;if(!e.render){if(!t&&Ds&&!o.render){const r=o.template||No(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=ve(ve({isCustomElement:s,delimiters:a},i),l);o.render=Ds(r,c)}}e.render=o.render||tt}Zt(e),Wt(),$a(e),Ut(),Bt()}function Za(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function Ja(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Za(e)},slots:e.slots,emit:e.emit,expose:t}}function Qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Xr(Wr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}}))}function Qa(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Ga(e){return ne(e)&&"__vccOpts"in e}const ie=(e,t)=>Zl(e,t,mn);function Ns(e,t,n){const o=arguments.length;return o===2?pe(t)&&!ee(t)?Xn(t)?q(e,null,[t]):q(e,t):q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Xn(n)&&(n=[n]),q(e,t,n))}const ec=Symbol.for("v-scx"),tc=()=>zt(ec),nc="3.3.4",oc="http://www.w3.org/2000/svg",Dt=typeof document<"u"?document:null,Fs=Dt&&Dt.createElement("template"),rc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Dt.createElementNS(oc,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Fs.innerHTML=o?`<svg>${e}</svg>`:e;const a=Fs.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sc(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ic(e,t,n){const o=e.style,r=be(n);if(n&&!r){if(t&&!be(t))for(const s in t)n[s]==null&&Xo(o,s,"");for(const s in n)Xo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const Vs=/\s*!important$/;function Xo(e,t,n){if(ee(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=lc(e,t);Vs.test(n)?e.setProperty(Ye(o),n.replace(Vs,""),"important"):e[o]=n}}const Hs=["Webkit","Moz","ms"],qo={};function lc(e,t){const n=qo[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return qo[t]=o;o=Tn(o);for(let r=0;r<Hs.length;r++){const s=Hs[r]+o;if(s in e)return qo[t]=s}return t}const Ws="http://www.w3.org/1999/xlink";function ac(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ws,t.slice(6,t.length)):e.setAttributeNS(Ws,t,n);else{const s=gl(t);n==null||s&&!Cr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function cc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Cr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Jt(e,t,n,o){e.addEventListener(t,n,o)}function uc(e,t,n,o){e.removeEventListener(t,n,o)}function fc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[a,l]=dc(t);if(o){const c=s[t]=gc(o,r);Jt(e,a,c,l)}else i&&(uc(e,a,i,l),s[t]=void 0)}}const Us=/(?:Once|Passive|Capture)$/;function dc(e){let t;if(Us.test(e)){t={};let o;for(;o=e.match(Us);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ye(e.slice(2)),t]}let Zo=0;const pc=Promise.resolve(),hc=()=>Zo||(pc.then(()=>Zo=0),Zo=Date.now());function gc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;qe(mc(o,n.value),t,5,[o])};return n.value=e,n.attached=hc(),n}function mc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Ks=/^on[a-z]/,vc=(e,t,n,o,r=!1,s,i,a,l)=>{t==="class"?sc(e,o,r):t==="style"?ic(e,n,o):kn(t)?ao(t)||fc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_c(e,t,o,r))?cc(e,t,o,s,i,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ac(e,t,o,r))};function _c(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ks.test(t)&&ne(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ks.test(t)&&be(n)?!1:t in e}function bc(e,t){const n=we(e);class o extends Jo{constructor(s){super(n,s,t)}}return o.def=n,o}const yc=typeof HTMLElement<"u"?HTMLElement:class{};class Jo extends yc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Ze(()=>{this._connected||(oi(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let a;if(s&&!ee(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=go(this._props[l])),(a||(a=Object.create(null)))[Re(l)]=!0)}this._numberProps=a,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Re))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Re(t);this._numberProps&&this._numberProps[o]&&(n=go(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ye(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ye(t),n+""):n||this.removeAttribute(Ye(t))))}_update(){oi(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,ve({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ye(s)!==s&&o(Ye(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Jo){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const St="transition",vn="animation",Qt=(e,{slots:t})=>Ns(da,wc(e),t);Qt.displayName="Transition";const Ys={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Qt.props=ve({},rs,Ys);const Rt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xs=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function wc(e){const t={};for(const T in e)T in Ys||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,z=xc(r),I=z&&z[0],F=z&&z[1],{onBeforeEnter:O,onEnter:j,onEnterCancelled:H,onLeave:g,onLeaveCancelled:L,onBeforeAppear:_=O,onAppear:k=j,onAppearCancelled:v=H}=t,C=(T,M,G)=>{Nt(T,M?u:a),Nt(T,M?c:i),G&&G()},w=(T,M)=>{T._isLeaving=!1,Nt(T,d),Nt(T,x),Nt(T,m),M&&M()},A=T=>(M,G)=>{const Z=T?k:j,$=()=>C(M,T,G);Rt(Z,[M,$]),qs(()=>{Nt(M,T?l:s),$t(M,T?u:a),Xs(Z)||Zs(M,o,I,$)})};return ve(t,{onBeforeEnter(T){Rt(O,[T]),$t(T,s),$t(T,i)},onBeforeAppear(T){Rt(_,[T]),$t(T,l),$t(T,c)},onEnter:A(!1),onAppear:A(!0),onLeave(T,M){T._isLeaving=!0;const G=()=>w(T,M);$t(T,d),Sc(),$t(T,m),qs(()=>{T._isLeaving&&(Nt(T,d),$t(T,x),Xs(g)||Zs(T,o,F,G))}),Rt(g,[T,G])},onEnterCancelled(T){C(T,!1),Rt(H,[T])},onAppearCancelled(T){C(T,!0),Rt(v,[T])},onLeaveCancelled(T){w(T),Rt(L,[T])}})}function xc(e){if(e==null)return null;if(pe(e))return[Qo(e.enter),Qo(e.leave)];{const t=Qo(e);return[t,t]}}function Qo(e){return go(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Nt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function qs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function Zs(e,t,n,o){const r=e._endId=++Cc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,m),s()},m=x=>{x.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,m)}function kc(e,t){const n=window.getComputedStyle(e),o=z=>(n[z]||"").split(", "),r=o(`${St}Delay`),s=o(`${St}Duration`),i=Js(r,s),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=Js(a,l);let u=null,d=0,m=0;t===St?i>0&&(u=St,d=i,m=s.length):t===vn?c>0&&(u=vn,d=c,m=l.length):(d=Math.max(i,c),u=d>0?i>c?St:vn:null,m=u?u===St?s.length:l.length:0);const x=u===St&&/\b(transform|all)(,|$)/.test(o(`${St}Property`).toString());return{type:u,timeout:d,propCount:m,hasTransform:x}}function Js(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Qs(n)+Qs(e[o])))}function Qs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}const Gs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Pn(t,n):t};function $c(e){e.target.composing=!0}function ei(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ic={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Gs(r);const s=o||r.props&&r.props.type==="number";Jt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ho(a)),e._assign(a)}),n&&Jt(e,"change",()=>{e.value=e.value.trim()}),t||(Jt(e,"compositionstart",$c),Jt(e,"compositionend",ei),Jt(e,"change",ei))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Gs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&ho(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Tc=["ctrl","shift","alt","meta"],Pc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Tc.some(n=>e[`${n}Key`]&&!t.includes(n))},rt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=Pc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Ec={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ti=(e,t)=>n=>{if(!("key"in n))return;const o=Ye(n.key);if(t.some(r=>r===o||Ec[r]===o))return e(n)},Go={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),_n(e,!0),o.enter(e)):o.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e._vod:"none"}const Oc=ve({patchProp:vc},rc);let ni;function Mc(){return ni||(ni=Da(Oc))}const oi=(...e)=>{Mc().render(...e)},Lc={class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3"},zc={class:"flex justify-between items-end"},jc={class:"inline-block children-pointer-events-auto w-1/3"},Ac={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Bc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Dc={class:"inline-block z-20 relative"},ri=we({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(D(),Y("div",{class:ke(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[xe(t.$slots,"default"),X("div",{id:"controls",class:ke(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between pb-4 sm:pb-3 md:pb-2 lg:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Oe({paddingTop:`${t.spaceTop||0}px`})},[X("div",Lc,[xe(t.$slots,"back"),xe(t.$slots,"exit"),xe(t.$slots,"chapter-nav")]),X("div",zc,[X("div",jc,[xe(t.$slots,"page-nav")]),X("div",Ac,[xe(t.$slots,"reset-zoom")]),X("div",Bc,[xe(t.$slots,"entry"),X("div",Dc,[xe(t.$slots,"settings")]),xe(t.$slots,"full-screen"),xe(t.$slots,"play")])]),X("div",{class:ke(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[xe(t.$slots,"progress")],2)],6)],2))}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"}));var si;const er=typeof window<"u",Nc=e=>typeof e=="function",Fc=e=>typeof e=="string",It=()=>{};er&&((si=window==null?void 0:window.navigator)!=null&&si.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function bn(e){return typeof e=="function"?e():K(e)}function tr(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ii=e=>e();function Vc(e,t={}){let n,o,r=It;const s=a=>{clearTimeout(a),r(),r=It};return a=>{const l=bn(e),c=bn(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(a())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(a())},l)})}}function Hc(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,a=It,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=It)};return d=>{const m=bn(e),x=Date.now()-r,z=()=>l=d();if(c(),m<=0)return r=Date.now(),z();if(x>m&&(n||!i))r=Date.now(),z();else if(t)return new Promise((I,F)=>{a=o?F:I,s=setTimeout(()=>{r=Date.now(),i=!0,I(z()),c()},m-x)});return!n&&!s&&(s=setTimeout(()=>i=!0,m)),i=!1,l}}function Wc(e=ii){const t=J(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:$o(t),pause:n,resume:o,eventFilter:r}}function Uc(e){return e}function nr(e){return Sr()?(_l(e),!0):!1}function He(e,t=200,n={}){return tr(Vc(t,n),e)}function li(e,t=200,n=!1,o=!0,r=!1){return tr(Hc(t,n,o,r),e)}function ai(e,t=!0){zs()?Fe(e):t?e():Ze(e)}var ci=Object.getOwnPropertySymbols,Kc=Object.prototype.hasOwnProperty,Yc=Object.prototype.propertyIsEnumerable,Xc=(e,t)=>{var n={};for(var o in e)Kc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ci)for(var o of ci(e))t.indexOf(o)<0&&Yc.call(e,o)&&(n[o]=e[o]);return n};function qc(e,t,n={}){const o=n,{eventFilter:r=ii}=o,s=Xc(o,["eventFilter"]);return ue(e,tr(r,t),s)}var Zc=Object.defineProperty,Jc=Object.defineProperties,Qc=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,di=(e,t,n)=>t in e?Zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gc=(e,t)=>{for(var n in t||(t={}))ui.call(t,n)&&di(e,n,t[n]);if(Gn)for(var n of Gn(t))fi.call(t,n)&&di(e,n,t[n]);return e},eu=(e,t)=>Jc(e,Qc(t)),tu=(e,t)=>{var n={};for(var o in e)ui.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Gn)for(var o of Gn(e))t.indexOf(o)<0&&fi.call(e,o)&&(n[o]=e[o]);return n};function nu(e,t,n={}){const o=n,{eventFilter:r}=o,s=tu(o,["eventFilter"]),{eventFilter:i,pause:a,resume:l,isActive:c}=Wc(r);return{stop:qc(e,t,eu(Gc({},s),{eventFilter:i})),pause:a,resume:l,isActive:c}}function Ft(e){var t;const n=bn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ht=er?window:void 0,ou=er?window.document:void 0;function Tt(...e){let t,n,o,r;if(Fc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=ht):[t,n,o,r]=e,!t)return It;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,d,m)=>(u.addEventListener(d,m,r),()=>u.removeEventListener(d,m,r)),l=ue(()=>Ft(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(m=>a(u,d,m))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return nr(c),c}function pi(e,t=!1){const n=J(),o=()=>n.value=!!e();return o(),ai(o,t),n}const or=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rr="__vueuse_ssr_handlers__";or[rr]=or[rr]||{};const ru=or[rr];function su(e,t){return ru[e]||t}function iu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var lu=Object.defineProperty,hi=Object.getOwnPropertySymbols,au=Object.prototype.hasOwnProperty,cu=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?lu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mi=(e,t)=>{for(var n in t||(t={}))au.call(t,n)&&gi(e,n,t[n]);if(hi)for(var n of hi(t))cu.call(t,n)&&gi(e,n,t[n]);return e};const uu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function vi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=ht,eventFilter:m,onError:x=k=>{console.error(k)}}=o,z=(u?Kl:J)(t);if(!n)try{n=su("getDefaultStorage",()=>{var k;return(k=ht)==null?void 0:k.localStorage})()}catch(k){x(k)}if(!n)return z;const I=bn(t),F=iu(I),O=(r=o.serializer)!=null?r:uu[F],{pause:j,resume:H}=nu(z,()=>g(z.value),{flush:s,deep:i,eventFilter:m});return d&&a&&Tt(d,"storage",_),_(),z;function g(k){try{if(k==null)n.removeItem(e);else{const v=O.write(k),C=n.getItem(e);C!==v&&(n.setItem(e,v),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:C,newValue:v,storageArea:n}))))}}catch(v){x(v)}}function L(k){const v=k?k.newValue:n.getItem(e);if(v==null)return l&&I!==null&&n.setItem(e,O.write(I)),I;if(!k&&c){const C=O.read(v);return Nc(c)?c(C,I):F==="object"&&!Array.isArray(C)?mi(mi({},I),C):C}else return typeof v!="string"?v:O.read(v)}function _(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){z.value=I;return}if(!(k&&k.key!==e)){j();try{z.value=L(k)}catch(v){x(v)}finally{k?Ze(H):H()}}}}}function _i({document:e=ou}={}){if(!e)return J("visible");const t=J(e.visibilityState);return Tt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,pu=(e,t)=>{var n={};for(var o in e)fu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&du.call(e,o)&&(n[o]=e[o]);return n};function hu(e,t,n={}){const o=n,{window:r=ht}=o,s=pu(o,["window"]);let i;const a=pi(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=ue(()=>Ft(e),d=>{l(),a.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return nr(u),{isSupported:a,stop:u}}function sr(e,t={width:0,height:0},n={}){const{window:o=ht,box:r="content-box"}=n,s=ie(()=>{var l,c;return(c=(l=Ft(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),i=J(t.width),a=J(t.height);return hu(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const u=Ft(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),a.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:m})=>d+m,0),a.value=u.reduce((d,{blockSize:m})=>d+m,0)}else i.value=l.contentRect.width,a.value=l.contentRect.height},n),ue(()=>Ft(e),l=>{i.value=l?t.width:0,a.value=l?t.height:0}),{width:i,height:a}}function ir(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=ht}=n,a=pi(()=>i&&"IntersectionObserver"in i);let l=It;const c=a.value?ue(()=>({el:Ft(e),root:Ft(o)}),({el:d,root:m})=>{if(l(),!d)return;const x=new IntersectionObserver(t,{root:m,rootMargin:r,threshold:s});x.observe(d),l=()=>{x.disconnect(),l=It}},{immediate:!0,flush:"post"}):It,u=()=>{l(),c()};return nr(u),{isSupported:a,stop:u}}function gu(e,t,n={}){const{window:o=ht}=n;return vi(e,t,o==null?void 0:o.localStorage,n)}var yi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(yi||(yi={}));function lr(e,t,n={}){const{window:o=ht}=n;return vi(e,t,o==null?void 0:o.sessionStorage,n)}var mu=Object.defineProperty,wi=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,xi=(e,t,n)=>t in e?mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bu=(e,t)=>{for(var n in t||(t={}))vu.call(t,n)&&xi(e,n,t[n]);if(wi)for(var n of wi(t))_u.call(t,n)&&xi(e,n,t[n]);return e};bu({linear:Uc},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function yu(e={}){const{window:t=ht,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=J(n),a=J(o),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ai(l),Tt("resize",l,{passive:!0}),r&&Tt("orientationchange",l,{passive:!0}),{width:i,height:a}}const wu=we({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=J(null),o=J(0),r=J([]),s=ie(()=>r.value[o.value]),i=li(a,500);Fe(()=>{const u=sr(n),d=He(()=>l({width:u.width.value,height:u.height.value}),50);d(),ue(u.width,d),ue(u.height,d)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const d=c();r.value=d.map(({rect:m,text:x})=>{const z=m.top<u.height-m.bottom,I=m.left<u.width-m.right;return{text:x,style:{left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`},textStyle:{left:I?`${m.left-12}px`:void 0,right:I?void 0:`${u.width-m.left}px`,top:z?`${m.bottom+12}px`:`${m.top+20}px`,textAlign:z?void 0:"right",transform:z?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var m;const u=(m=n.value)==null?void 0:m.parentElement;if(!u)return[];const d=[];return u.querySelectorAll("[data-tour]").forEach(x=>{var F;const z=(F=x.getAttribute("data-tour"))==null?void 0:F.trim();if(!(z!=null&&z.length))return;const I=x.getBoundingClientRect();d.push({rect:I,text:z})}),d}return(u,d)=>{var m,x;return D(),Y(ge,null,[X("div",{class:ke(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),X("div",{ref_key:"root",ref:n,class:"tour",onClick:d[0]||(d[0]=rt((...z)=>K(i)&&K(i)(...z),["stop"]))},[s.value?(D(),Y("div",{key:o.value,class:"tour__target",style:Oe(s.value.style)},null,4)):Le("",!0),(D(),Y("div",{key:o.value,class:"tour__text",style:Oe((m=s.value)==null?void 0:m.textStyle)},Xe(((x=s.value)==null?void 0:x.text)??""),5))],512)],64)}}}),xu=`.tour{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
2
|
-
`,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ci=he(wu,[["styles",[xu]]]),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),ku=X("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),ki=we({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=J(null),r=J([]);Fe(async()=>{const l=sr(o),c=He(()=>{s({width:l.width.value,height:l.height.value})},50);c(),ue(l.width,c),ue(l.height,c)});function s(l){var d;const c=(d=o.value)==null?void 0:d.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=i(u,l))}function i(l,c){const u=[],d=[];let m=0,x=0;const z=50,I=25;l.forEach(g=>{var C;const L=(C=g.getAttribute("title"))==null?void 0:C.trim(),_=g.getBoundingClientRect();if(!L||!_.height||!_.width)return;const k=Math.ceil((_.top-10)/z),v=Math.ceil((_.left-10)/z);d.push({isTour:!1,title:L,rect:_,fromX:v,toX:Math.max(v+1,Math.ceil((_.right+10)/z)),fromY:k,toY:Math.max(k+1,Math.ceil((_.bottom+10)/z))})}),d.forEach(g=>{for(let L=g.fromY;L<g.toY;L++){u[L]??(u[L]=[]);for(let _=g.fromX;_<g.toX;_++)u[L][_]=g;g.toY>m+1&&(m=g.toY-1),g.toX>x+1&&(x=g.toX-1)}});let F=x/2;d.forEach(g=>{g.isAlignRight=g.fromX>F});const O=(g,L)=>{u[L]??(u[L]=[]);const _=L>=g.toY;if(g.isTour)for(let k=g.fromX;k<g.toX;k++)delete u[g.fromY][k],g.fromY=L,g.toY=L+(_?1:-1),u[L][k]=g;else{const k=g.isAlignRight?g.fromX-3:g.fromX,v=k+3;g.helpItem={fromX:k,toX:v,fromY:L,toY:L+1,isTour:!0,isAlignRight:g.isAlignRight};for(let C=k;C<v;C++)u[L][C]=g.helpItem}},j=(g,L)=>{if(L>m||L<0)return!1;const _=L>=g.toY,k=u[L];if(!k)return O(g,L),!0;const v=k[g.fromX];if(v&&!v.isTour)return!1;if(v&&v.isTour)return j(v,_?L+1:L-1)?(O(g,L),!0):!1;if(!v){const C=g.isAlignRight?-1:1;return k[g.fromX+C]||k[g.fromX+C*2]?j(g,_?L+1:L-1):(O(g,L),!0)}return!1};d.forEach(g=>{if(!j(g,g.toY)){if(g.isAlignRight){const L=u[g.fromY]??[];if(!L.slice(g.fromX-3,g.fromX).filter(Boolean).length){const k=g.fromX-3,v=g.fromX;g.helpItem={isTour:!0,isAlignRight:!0,fromX:k,toX:v,fromY:g.fromY,toY:g.toY};for(let C=g.fromX-3;C<g.fromX;C++)L[C]=g.helpItem;return}}j(g,g.fromY-1)}});const H=[];return d.forEach(g=>{const{title:L,helpItem:_,rect:k,isAlignRight:v,fromX:C,fromY:w,toY:A}=g;if(!L||!_||!k)return;const T=_.fromY>=A,M=_.toY<=w;H.push({title:a(L),style:{top:T?`${k.bottom+(_.fromY-A)*z+I}px`:M?void 0:`${k.top+8}px`,bottom:M?`${c.height-k.top+(_.toY-w)*z+I}px`:void 0,left:v?void 0:`${k.left}px`,right:v?T?`${c.width-k.right}px`:`${c.width-k.right+k.width+I}px`:void 0},arrowStyle:{width:M||T?"2px":`${Math.abs(_.toX-C)*z+I-5}px`,height:M||T?`${(T?_.fromY-A:w-_.toY)*z+I}px`:"2px",top:T?`${k.bottom}px`:M?void 0:`${k.top+20}px`,bottom:M?`${c.height-k.top}px`:void 0,left:v?void 0:`${k.left+k.width/2}px`,right:v?T?`${c.width-k.right+k.width/2}px`:`${c.width-k.right+k.width}px`:void 0}})}),H}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(D(),Y(ge,null,[ku,X("div",{ref_key:"root",ref:o,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=rt(u=>t("hide"),["stop"]))},[(D(!0),Y(ge,null,fn(r.value,u=>(D(),Y(ge,{key:u.title},[X("div",{class:"absolute",style:Oe(u.style)},Xe(u.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),Su=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),$u={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Tu=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Pu(e,t){return D(),Y("svg",Iu,Tu)}const Si=he($u,[["render",Pu]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Ou={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},Mu={class:"block w-4 h-4"},Lu={class:"w-12"},$i=we({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Si;return t.zoom!==1?(D(),Y("button",Ou,[X("div",Mu,[q(o)]),X("div",Lu,Xe(Math.ceil(t.zoom*100))+"%",1)])):Le("",!0)}}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),ju={},Au={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Bu=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Du(e,t){return D(),Y("svg",Au,Bu)}const ar=he(ju,[["render",Du]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),Nu={},Fu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vu=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Hu(e,t){return D(),Y("svg",Fu,Vu)}const cr=he(Nu,[["render",Hu]]),Wu=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"}));function Uu({touchDevice:e}){const t=J(!1);let n=0;return Kn("busy:touchDevice",e),Kn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function ur(){const e=zt("busy:touchDevice"),t=zt("setBusyState");let n=!1;return Ve(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Ku=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(l,20);a();function a(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function l(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Gt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Ku(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Yu={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},eo=we({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=ur();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>at((D(),Ce(Ca(l.href?"a":"button"),Jn(l.href?{href:l.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":l.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!l.disabled,"bg-black bg-opacity-50":!l.transparent}],onClick:rt(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[X("div",Yu,[xe(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[K(Gt),l.disabled?0:15]])}}),Xu=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),qu={},Zu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ju=[X("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Qu(e,t){return D(),Y("svg",Zu,Ju)}const Ii=he(qu,[["render",Qu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"}));class ef{constructor(){rl(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function tf(){const e=new ef;return Ve(()=>e.dispose()),Kn("keyController",e),e}function to(e){const t=zt("keyController");Fe(()=>t.addListener(e)),Ve(()=>t.removeListener(e))}const nf={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},of={class:"text-xl font-medium text-ellipsis overflow-hidden whitespace-nowrap px-3"},rf={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ti=we({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;to({onKeyDown:r});const o=ur();ue(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const a=Ii,l=eo;return D(),Y("div",{class:ke(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[q(Qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(D(),Y("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=rt(()=>{},["stop"]))},[X("div",nf,[q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[q(a)]),_:1}),X("div",of,Xe(s.name),1),xe(s.$slots,"actions")]),X("div",rf,[xe(s.$slots,"default")])])):Le("",!0)]),_:3})],2)}}}),sf=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),lf=["min","max","step"],af={class:"flex-shrink-0"},Pi=he(we({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(D(),Y("div",{class:ke(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Oe({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[at(X("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,lf),[[Ic,o.value]]),X("p",af,[xe(r.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
3
|
-
`]]]),cf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),uf={class:"flex items-center mb-8 last:mb-0"},ff={class:"flex-grow overflow-hidden"},Ei=we({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(D(),Y("div",uf,[X("div",{class:ke(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),X("div",ff,[xe(t.$slots,"default")])]))}}),df=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),pf=["onClick","onKeyup"],Oi=we({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J({width:"",left:""});Fe(()=>{let i=!1;ue(()=>n.modelValue,a=>{var c;const l=(c=o.value)==null?void 0:c.children[a+1];l&&(r.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,a)=>(D(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(r.value)},null,4),(D(!0),Y(ge,null,fn(n.items,(l,c)=>at((D(),Y("div",{key:c,tabindex:"0",class:ke(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[ti(()=>s(c),["enter"]),ti(()=>s(c),["space"])]},[Ct(Xe(l),1)],42,pf)),[[K(Gt),30]])),128))],512))}}),hf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),gf={},mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},vf=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function _f(e,t){return D(),Y("svg",mf,vf)}const Mi=he(gf,[["render",_f]]),bf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),yf={},wf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},xf=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Cf(e,t){return D(),Y("svg",wf,xf)}const Li=he(yf,[["render",Cf]]),kf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function Sf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var st=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(st||{}),gt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(gt||{});const $f=.25,If=5,Tf=.25,yn=.25,wn=5,Pf=.05,Ef=0,Of=4;function Mf(e){var O,j,H,g,L;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?Sf(t):location.pathname}`,s=gu(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(_){const k={};return _?(_.style!==void 0&&Object.values(gt).includes(_.style)&&(k.style=_.style),_.direction!==void 0&&Object.values(st).includes(_.direction)&&(k.direction=_.direction),_.gap!==void 0&&_.gap>=Ef&&_.gap<=Of&&(k.gap=_.gap),_.speed!==void 0&&_.speed>=yn&&_.speed<=wn&&(k.speed=_.speed),_.zoom!==void 0&&_.zoom>=yn&&_.zoom<=wn&&(k.zoom=_.zoom),Object.keys(k).length?k:void 0):k}}),i=_=>{if(!s.value){s.value=_;return}const k={...s.value};Object.entries(_).forEach(([v,C])=>{C===void 0?delete k[v]:k[v]=C}),Object.keys(k).length?s.value=k:(s.value=void 0,localStorage.removeItem(r))},a=J(((O=s.value)==null?void 0:O.style)??gt.longStrip),l=J(((j=s.value)==null?void 0:j.direction)??st.vertical),c=J((H=s.value)==null?void 0:H.gap),u=J(((g=s.value)==null?void 0:g.speed)??1),d=J(((L=s.value)==null?void 0:L.zoom)??1),m=ie({get(){return n.value?gt.longStrip:a.value??gt.longStrip},set:_=>{a.value=_,i({style:_===gt.longStrip?void 0:_}),_!==gt.longStrip&&l.value===st.vertical&&(x.value=st.rtl)}}),x=ie({get:()=>n.value?st.vertical:l.value,set:_=>{l.value=_,i({direction:_===st.vertical?void 0:_})}}),z=ie({get:()=>c.value??(n.value?0:1),set(_){c.value=_,i({gap:_})}}),I=ie({get:()=>u.value,set(_){u.value=_,i({speed:_===1?void 0:_})}}),F=ie({get:()=>d.value,set(_){d.value=_,i({zoom:_===1?void 0:_})}});return{direction:x,style:m,gap:z,speed:I,zoom:F,isLongStrip:ie(()=>m.value===gt.longStrip),isDouble:ie(()=>m.value===gt.double),isRTL:ie(()=>x.value===st.rtl),isVertical:ie(()=>x.value===st.vertical)}}const zi=we({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=J(!1);to({onKeyUp:s=>{s.key==="s"&&!s.metaKey&&!s.ctrlKey&&(n.value=!n.value)}});function o(s){t("update:zoom",Math.round(s)/100)}function r(){n.value=!1,t("help")}return(s,i)=>{const a=Li,l=eo,c=Mi,u=Oi,d=Ei,m=Pi,x=Ti;return D(),Y(ge,null,[q(l,{title:"Reader settings (S)",disabled:s.disabled,onClick:i[0]||(i[0]=()=>n.value=!0)},{default:oe(()=>[q(a)]),_:1},8,["disabled"]),q(x,{modelValue:n.value,"onUpdate:modelValue":i[5]||(i[5]=z=>n.value=z),name:s.name},{actions:oe(()=>[q(l,{transparent:"",onClick:r},{default:oe(()=>[q(c)]),_:1})]),default:oe(()=>[q(d,{label:"Style"},{default:oe(()=>[q(u,{"model-value":s.readerStyle,items:s.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":i[1]||(i[1]=z=>t("update:reader-style",z))},null,8,["model-value","items"])]),_:1}),q(d,{label:"Direction"},{default:oe(()=>[q(u,{"model-value":s.direction,items:s.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":i[2]||(i[2]=z=>t("update:direction",z))},null,8,["model-value","items"])]),_:1}),q(d,{label:"Gap"},{default:oe(()=>[q(u,{"model-value":s.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":i[3]||(i[3]=z=>t("update:gap",z))},null,8,["model-value"])]),_:1}),q(d,{label:"Speed"},{default:oe(()=>[q(m,{"model-value":s.speed,min:K($f),max:K(If),step:K(Tf),suffix:"x","onUpdate:modelValue":i[4]||(i[4]=z=>t("update:speed",z))},{suffix:oe(()=>[Ct(Xe(s.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),q(d,{label:"Zoom"},{default:oe(()=>[q(m,{"model-value":Math.ceil(s.zoom*100),min:K(yn)*100,max:K(wn)*100,step:K(Pf)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[Ct(Xe(Math.ceil(s.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),zf={},jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Af=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Bf(e,t){return D(),Y("svg",jf,Af)}const ji=he(zf,[["render",Bf]]),Df=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Rf={},Nf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Ff=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Vf(e,t){return D(),Y("svg",Nf,Ff)}const Ai=he(Rf,[["render",Vf]]),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Wf={},Uf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kf=[X("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Yf(e,t){return D(),Y("svg",Uf,Kf)}const Bi=he(Wf,[["render",Yf]]),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),qf={},Zf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jf=[X("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),X("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Qf(e,t){return D(),Y("svg",Zf,Jf)}const Di=he(qf,[["render",Qf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),ed={},td={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},nd=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function od(e,t){return D(),Y("svg",td,nd)}const Ri=he(ed,[["render",od]]),rd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),sd=["aria-hidden"],id=["onClick"],ld=["onClick"],ad={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},cd={class:"whitespace-nowrap"},fr=we({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J(!1),s=J(null),i=J(!1),a=J(!1),l=J(!1);to({onKeyDown:x});const c=ur();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),Ze(()=>setTimeout(()=>{var g,L;(L=(g=s.value)==null?void 0:g.children[n.modelValue])==null||L.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),I(o.value)):setTimeout(F,250)}function d(){const g=o.value;if(g){const L=g.getBoundingClientRect(),_=L.x+L.width/2;i.value=L.y>window.innerHeight/2,a.value=_<window.innerWidth/3,l.value=_>window.innerWidth/3*2}}function m(g){g!=n.modelValue&&t("update:modelValue",g),u()}function x(g){r.value&&g.key==="Escape"&&(u(),g.preventDefault())}let z=[];function I(g){const L=window.getComputedStyle(g).zIndex,_=g.style.zIndex;(!L||!(+L>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",z.push({el:g,zIndex:_})),g.parentElement&&I(g.parentElement))}function F(){z.forEach(({el:g,zIndex:L})=>{g.style.zIndex=L??""}),z=[]}let O=!1;function j(){O||(O=!0,c(!0,{desktopOnly:!0}))}function H(){O&&(O=!1,c(!1,{desktopOnly:!0}))}return(g,L)=>{const _=Ri;return D(),Y("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(D(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Le("",!0),g.items.length?(D(),Ce(Qt,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:oe(()=>[r.value?(D(),Y("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:ke(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:L[0]||(L[0]=rt(()=>{},["stop"]))},[(D(!0),Y(ge,null,fn(g.items,(k,v)=>at((D(),Y("li",{key:v,tabindex:"-1",class:ke(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":v===g.modelValue}]),onClick:()=>m(v)},[X("div",{class:ke(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},[xe(g.$slots,"item",{item:k},()=>[Ct(Xe(k),1)])],2)],10,id)),[[K(Gt),30]])),128))],42,sd)):Le("",!0)]),_:3})):Le("",!0),at((D(),Y("button",Jn({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":g.disabled}]},g.title?{title:g.title}:{},{onClick:rt(u,["stop"]),onMouseenter:j,onMouseleave:H}),[X("div",ad,[X("span",cd,Xe(g.label),1),g.items.length?(D(),Y("span",{key:0,class:ke(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[q(_)],2)):Le("",!0)])],16,ld)),[[K(Gt),30]])],512)}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),Ni=we({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie(()=>n.pages.map(l=>l.map(({index:c})=>`${c+1}`).join("-"))),r=ie(()=>{const l=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:d})=>d===l));return c===-1?n.pages.length-1:c}),s=ie(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function i(l){const c=n.pages[l][0].index;a(c)}function a(l){t("update:modelValue",l)}return(l,c)=>{const u=fr;return D(),Ce(u,{"model-value":r.value,label:s.value,title:"Current page",items:o.value,disabled:l.disabled,"onUpdate:modelValue":i},null,8,["model-value","label","items","disabled"])}}}),fd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),dd={},pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hd=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function gd(e,t){return D(),Y("svg",pd,hd)}const Fi=he(dd,[["render",gd]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),vd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bd=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function yd(e,t){return D(),Y("svg",_d,bd)}const Vi=he(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),xd={},Cd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},kd=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Sd(e,t){return D(),Y("svg",Cd,kd)}const Hi=he(xd,[["render",Sd]]),$d=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),Id={},Td={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pd=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Ed(e,t){return D(),Y("svg",Td,Pd)}const Wi=he(Id,[["render",Ed]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),Ui=he(we({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=J(0);return ue(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=ar,i=cr;return n.value?(D(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(D(),Ce(s,{key:0})):(D(),Ce(i,{key:1}))])):Le("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
4
|
-
`]]]),
|
|
5
|
-
`,
|
|
6
|
-
`]]]),
|
|
7
|
-
`]]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:Ji},Symbol.toStringTag,{value:"Module"}));async function xn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const s=await xn(e-1,t,n);r(s)},t)})}function oo(e=0){return new Promise(t=>setTimeout(t,e))}const rp=3;function sp(e){var k;let t=[];const n=J(((k=e.raw.imgs)==null?void 0:k.filter(Boolean))??[]),o=sn({}),r=[],s=new WeakMap;let i=!0,a=0,l,c=n.value.length?cp(n.value):void 0;const u=J(e.raw.isWebtoon),d=J(u.value===void 0||c===void 0),m=He(g,100),x=He(I,50);d.value?n.value.length?I():O():Ze(()=>setTimeout(()=>z(c),10)),Ve(()=>{i=!1,r.forEach(v=>URL.revokeObjectURL(v))});async function z(v){d.value=!1,await Ze(),e.onReady(v),ue(()=>Math.floor(e.page.value),async(C,w)=>{el({contentEl:l,imgEls:t,page:C,smooth:!0}),w??(w=-1),C!==w&&(a=Math.max(0,a-Math.abs(C-w))),x()},{immediate:!0})}function I(){const v=Math.floor(e.page.value),C=w=>{a>rp||F(w)};for(let w=v;w<n.value.length;w++)C(w);for(let w=v-1;w>=0;w--)C(w)}async function F(v){const C=n.value[v];if(!(!i||!C||o[C])){if(!o[C]){o[C]={src:C,isLoading:!0,hasError:!1},a++;const w=await ap(C);if(o[C]={src:C,size:w,isLoading:!1,hasError:!w},a=Math.max(0,a-1),w&&!u.value&&v>Math.min(1,n.value.length-2)){const A=w.height/w.width>2.5;u.value!==A&&(u.value=A)}d.value&&u.value!==void 0&&c!==void 0&&z(c)}x()}}function O(){let v=!1;const C=new MutationObserver(()=>{l&&m(l)});Ve(async()=>{C.disconnect();const w=e.page.value;await oo(),el({contentEl:l,imgEls:t,page:w})}),j(w=>{l!==w&&(l=w,C.disconnect(),C.observe(l,{childList:!0,subtree:!0}),v?m(l):(v=!0,g(l)))})}async function j(v){var G;const C=(G=e.spec)==null?void 0:G.content;if(!C)return;const w=await ip(e.spec);let A=C?await xn(w?100:1,10,()=>document.querySelector(C)):void 0;if(!A)return;v(A);let T=0;const M=async()=>{if(i&&!(A!=null&&A.isConnected)){if(T=0,A=await xn(50,20,()=>{const Z=document.querySelector(C);return Z!=null&&Z.isConnected&&Z!==A?Z:void 0}),!A)return;v(A)}!i||++T>=10||setTimeout(M,200)};setTimeout(M,200)}let H=0;async function g(v){var M;if(!i||!v.isConnected)return;const C=Date.now();H=C;let w,A;const T=(M=e.spec)==null?void 0:M.imgDivs;if(T){if(A=Array.from(v.querySelectorAll(T)),w=await Promise.all(A.map(async(G,Z)=>{const $=Array.from(G.querySelectorAll("img,canvas"));for(const N of $){const U=await _({ts:C,el:N,index:Z,total:A.length,onImgLoad:()=>m(v)});if(U)return U}})),!i||!v.isConnected||H!==C)return}else{const G=Array.from(v.querySelectorAll("img,canvas")),Z=await Promise.all(G.map((N,U)=>_({ts:C,el:N,index:U,total:G.length,onImgLoad:()=>m(v)})));if(!i||!v.isConnected||H!==C)return;A=G.filter((N,U)=>Z[U]),w=Z.filter(Boolean);const $=w.filter((N,U)=>N&&U!==w.lastIndexOf(N));$.length&&(w=w.filter(N=>N&&!$.includes(N)))}c??(c=Gi(A)),(w.length!==n.value.length||w.some((G,Z)=>n.value[Z]!==G))&&(t=A,n.value=w,x(),c!==void 0&&d.value&&u.value!==void 0&&n.value.some(Boolean)&&z(c))}const L=Date.now();async function _({ts:v,el:C,index:w,total:A,onImgLoad:T}){const M=s.get(C);let G,Z;if(C.tagName.toLowerCase()==="canvas"){if(M)return M.src;G=await Qi(C)}else{if(C._tkLoadId_!==L&&(C._tkLoadId_=L,C.addEventListener("load",T),Ve(()=>{C._tkLoadId_===L&&delete C._tkLoadId_,C.removeEventListener("load",T)})),Z=up(C),!Z)return;if(Z===(M==null?void 0:M.originalSrc))return M.src;if(G=await lp(C,Z),!i||H!==v)return;if(u.value===void 0&&w>Math.min(1,A-2)){const N=+(C.getAttribute("width")??0),U=+(C.getAttribute("height")??0);N&&U&&(u.value=U/N>2.5)}}return G&&(s.set(C,{src:G,originalSrc:Z}),G.startsWith("blob:")&&r.push(G)),G}return{isLoading:ie(()=>d.value),asyncImgs:ie(()=>n.value.map(v=>v?o[v]:void 0)),isWebtoon:ie(()=>u.value??!1)}}async function ip(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await xn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const s=i=>i.preventDefault();r.addEventListener("click",s),Ve(()=>{delete r._tkDirty_,r.removeEventListener("click",s)})}return r.click(),await oo(),!0}function Qi(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function lp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await Qi(o)}function ap(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({width:r,height:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function cp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Gi(n)}function Gi(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:Math.floor(-o/n.height*100)/100)}return 0}function up(e){const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const s of o){if(s!=="data-url"&&s!=="data-original"&&!s.includes("src"))continue;const i=e.getAttribute(s);if(i)return s==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function el({contentEl:e,imgEls:t,page:n,smooth:o}){var a;const r=n>=t.length,s=o?"smooth":"instant";if(r){(a=t[t.length-1])==null||a.scrollIntoView({block:"end",behavior:s});return}const i=t[Math.floor(n)];i&&setTimeout(()=>{const l=pr(e??document.documentElement),c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l==null||l.scrollTo({top:c,behavior:s})})}function pr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?pr(document.documentElement)??e:e:pr(e.parentElement??void 0)}function fp(e,t){return ie(()=>t.value?tl(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function tl(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...tl(e.slice(r.length),t+r.length)]}function dp(e){const t=typeof e=="number"?Math.max(0,e):0,n=sessionStorage.getItem("tk:page:path");return n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page")),lr("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function pp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const hr=40;function hp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:a,interferePlayer:l,onChangedPage:c}){let u=!1,d=!1,m;const x=He(g,300),z=li(()=>{g(),x()},300),I=He(()=>d=!0,100);function F(){let w=null;ca(async()=>{a.value&&a.value!==w&&(w=a.value,j(e.value),w==null||w.removeEventListener("scroll",z),a.value.addEventListener("scroll",z))});const{width:A,height:T}=yu();ue(A,O),ue(T,O),ue(n,O),ue(t,O)}async function O(){u=!0;const w=e.value;if(await Ze(),L()===w){u=!1;return}j(w)}function j(w,{smooth:A}={smooth:!1}){const T=a.value;if(!T)return;u=!0;const M=async()=>{await Ze(),u=!1,I()},G=Math.floor(w),Z=T.querySelector(`[data-index="${G}"],[data-index2="${G}"]`);if(!Z){M();return}l(async()=>{await H(T,!o.value&&A,async()=>{await C(T,Z,{smooth:A,page:w})}),await M()})}async function H(w,A,T){A&&w.style.setProperty("scroll-snap-type","none"),await T(),A&&w.style.removeProperty("scroll-snap-type")}function g(){if(!a.value||u||!d)return;const w=L();w!==void 0&&w!==e.value&&c(w)}function L(){const w=_();return w?(+w.getAttribute("data-index")||0)+(o.value?k(w):0):void 0}function _(){m??(m=a.value.getRootNode());const w=m.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-hr:hr,r.value&&o.value?i.value||hr:window.innerHeight/2);for(let A=0;A<w.length;A++){const T=w[A];if(T.hasAttribute("data-index"))return T;if(T===a.value)break}}function k(w){const A=w.getBoundingClientRect();return r.value?Math.abs(A.top-(i.value||0))/A.height:s.value?Math.max(0,A.right-a.value.clientWidth)/A.width:Math.abs(A.left)/A.width}let v=!1;async function C(w,A,T){if(v)return;const M=A.getBoundingClientRect();if(!o.value){if(r.value){if(M.top<=0&&M.bottom>=w.clientHeight)return}else if(M.left<=0&&M.right>=w.clientWidth)return}v=!0;const G=r.value?w.scrollTop:w.scrollLeft,Z=T.page,$=o.value?Z%1:0,N=await xn(30,10,async()=>{await oo();let _e;return o.value?r.value?_e=A.offsetTop+$*A.offsetHeight-(i.value??0):s.value?_e=A.offsetLeft-w.clientWidth+A.offsetWidth-$*A.offsetWidth:_e=A.offsetLeft+$*A.offsetWidth:r.value?_e=A.offsetTop+(M.top>0?0:M.height-w.clientHeight):_e=A.offsetLeft+(M.left>0?0:M.width-w.clientWidth),Z>.5&&Math.abs(_e)<100?void 0:_e})??0;if(!T.smooth){r.value?w.scrollTop=N:w.scrollLeft=N,v=!1;return}const U=N-G,fe=30;let Ge=0;return new Promise(_e=>{(function Pe(){const We=gp(Ge,G,U,fe);r.value?w.scrollTop=We:w.scrollLeft=We,Ge++,Ge<=fe?requestAnimationFrame(Pe):(_e(),v=!1)})()})}return{init:F,goToPage:j}}function gp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function mp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:a}){const l=lr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(v,C)=>v===void 0?C:v===!0||v==="true"}),c=J(!1);let u,d;const m=He(_,100);let x;const z=He(()=>{c.value=!0,clearTimeout(x),x=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),I=()=>setTimeout(()=>{c.value=!1,z(),x&&(clearTimeout(x),x=void 0)},30);I(),t||Tt(window,"mousemove",I);const F=_i();Fe(()=>{ue(F,v=>{l.value&&(v==="visible"?_():d==null||d())}),ue(i,()=>O()),ue(s,v=>{v||H()})}),Ve(()=>{clearTimeout(x),x=void 0});async function O(v){l.value&&(d==null||d()),v&&(await Ze(),await v()),l.value&&m()}function j(){l.value?H():g()}function H(){l.value&&(l.value=!1,d==null||d(),I())}function g(){!l.value&&s.value&&(l.value=!0,_(),I())}function L(){d==null||d()}function _(){const v=n.value;if(!l.value||!v)return;const C=o.value?v.scrollHeight-v.clientHeight:v.scrollWidth-v.clientWidth,w=k();if(C<=w){H();return}d=()=>{u=Date.now(),d=void 0};const A=Date.now();u=A;const T=.05*i.value,M=o.value?"scrollTop":"scrollLeft";let G=Date.now(),Z=0;const $=()=>{if(u!==A)return;const N=Date.now(),U=N-G;G=N;const fe=T*U+Z;fe>=1?(Z=fe%1,v[M]+=(fe-Z)*(r.value?-1:1)):Z=fe,setTimeout($,1)};$()}function k(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:l,isIdle:c,toggle:j,play:g,pause:L,resume:_,stop:H,interfere:O,awake:I}}function vp(e){var x,z,I,F,O;let t=-1,n=(x=e.prev)==null?void 0:x.slug,o=(z=e.next)==null?void 0:z.slug;const{vol:r,inferVol:s,chap:i,title:a,slug:l,basePath:c}=e,u=r??s,d=a.chapters??[],m=(d==null?void 0:d.length)>1?d:[];if(m.length){if(t=m.findIndex(j=>j.slug===e.slug),t===-1&&(t=m.findIndex(j=>(j.vol??j.inferVol)===u&&j.chap===i)),t===-1&&(t=m.findIndex(j=>l.startsWith(`${j.slug}-`)&&l.length-j.slug.length>3)),t!==-1)n??(n=(I=m[t+1])==null?void 0:I.slug),o??(o=(F=m[t-1])==null?void 0:F.slug);else if(!n&&!o){const j=m.findIndex(H=>{const g=H.vol??H.inferVol;return u===void 0||g===void 0||u===g?H.chap<i:g<u});j!==-1?(n=m[j].slug,o=(O=m[j-1])==null?void 0:O.slug):o=m[m.length-1].slug}}return{activeIndex:t,activeLabel:nl({vol:r,chap:i}),chapters:m.map(j=>({label:nl(j),path:gr(c,j.slug)})),prevPath:gr(c,n),nextPath:gr(c,o)}}function gr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function nl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const _p={key:0,class:"flex justify-center items-center w-full h-full"},bp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},yp=we({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","longIdle","finished"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,s;const i=Uu({touchDevice:n.touchDevice}),a=dp(n.page),{asyncImgs:l,isLoading:c,isWebtoon:u}=sp({raw:n.raw,spec:n.spec,page:a,onReady(h){n.isAutoShow===!1?a.value=h:a.value>l.value.length&&(a.value=Math.max(0,l.value.length-1)),$.init(),setTimeout(()=>{s=U()},50)},onError:()=>{}}),{direction:d,style:m,isRTL:x,isDouble:z,isVertical:I,isLongStrip:F,gap:O,speed:j,zoom:H}=Mf({titleName:n.raw.title.name,isWebtoon:u}),g=fp(l,z),L=ie(()=>a.value>=l.value.length),_=ie(()=>vp(n.raw)),k=ie(()=>{var h,b;return x.value?(h=_.value)==null?void 0:h.nextPath:(b=_.value)==null?void 0:b.prevPath}),v=ie(()=>{var h,b;return x.value?(h=_.value)==null?void 0:h.prevPath:(b=_.value)==null?void 0:b.nextPath}),C=J(null),w=J(null),A=J(!1),T=J(!1),M=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var h;return(h=C.value)==null?void 0:h.$el}),speed:j,isRTL:x,isVertical:I,isLongStrip:F,onLongIdle:()=>t("longIdle")});ue(M.isPlaying,h=>{h||p(!1),t("playingChanged",h)}),ue(M.isIdle,h=>{M.isPlaying.value&&p(h)}),ue(i,h=>{!h&&M.isIdle.value?M.awake():h&&n.fullScreen&&p()});const G=ie(()=>!n.touchDevice&&M.isIdle.value&&!i.value),Z=ie({get(){return H.value},set(h){M.interfere(()=>{H.value=h})}}),$=hp({page:a,style:m,direction:d,isLongStrip:F,isVertical:I,isRTL:x,spaceTop:ie(()=>n.spaceTop),scrollEl:ie(()=>{var h;return(h=C.value)==null?void 0:h.$el}),interferePlayer:h=>M.interfere(h),onChangedPage(h){const b=l.value.length;if(h<0||h>=b+1)return;const S=a.value;a.value=h,t("pageChanged",Math.floor(h*100)/100),h>=b?(p(!1),M.stop()):h===0?p(!1):r||(F.value?s!==void 0&&U()-s>300&&p(!0):Math.abs(S-h)===1&&p(!0)),!o&&h>=b-2&&(o=!0,t("finished"))}}),N=ie(()=>Math.floor(a.value));function U(){var b;const h=(b=C.value)==null?void 0:b.$el;return h?I.value?h.scrollTop:x.value?-h.scrollLeft:h.scrollLeft:0}const fe=()=>M.interfere(()=>oo(100));tf().addListener({onKeyDown:h=>{if(n.tourEnabled)return;const b=F.value&&I.value,S=F.value&&!I.value,W=!F.value&&I.value,V=!F.value&&!I.value;switch(h.key){case" ":h.preventDefault(),F.value?(R(!1),M.toggle()):vt();break;case"ArrowUp":case"PageUp":b?fe():W&&(h.preventDefault(),it());break;case"ArrowDown":case"PageDown":b?fe():W&&(h.preventDefault(),vt());break;case"ArrowLeft":S?fe():V?(h.preventDefault(),tn()):I.value&&mt();break;case"ArrowRight":S?fe():V?(h.preventDefault(),ro()):I.value&&We();break}},onKeyUp:h=>{switch(h.key){case"f":P();break;case"t":y();break;case"h":R();break}}}),Fe(()=>{Tt("fullscreenchange",()=>{A.value=!!document.fullscreenElement})});function _e(){!n.touchDevice&&!F.value&&$.goToPage(N.value,{smooth:!0})}function Pe(){if(M.isPlaying.value){!n.fullScreen||!n.touchDevice?M.stop():M.awake();return}p()}function We(){var h;Ee((h=_.value)==null?void 0:h.nextPath)}function mt(){var h;Ee((h=_.value)==null?void 0:h.prevPath)}function en(h){var S,W,V;const b=(V=(W=(S=_.value)==null?void 0:S.chapters)==null?void 0:W[h])==null?void 0:V.path;b&&Ee(b)}function Ee(h){h&&(location.href=h.includes("://")?h:location.origin+h)}function tn(){x.value?vt():it()}function ro(){x.value?it():vt()}function it(){var S;const h=g.value,b=L.value?h[h.length-1][0].index:(S=h[nn()-1])==null?void 0:S[0].index;b!==void 0?$.goToPage(b):mt()}function vt(){var b;const h=L.value?N.value+1:((b=g.value[nn()+1])==null?void 0:b[0].index)??l.value.length;$.goToPage(h)}function nn(){const h=N.value,b=g.value.findIndex(S=>S.some(({index:W})=>W===h));return b===-1?g.value.length-1:b}function f(){pp(),M.stop(),t("dispose")}async function p(h){if(i.value&&!n.fullScreen)return;r=!0;const b=typeof h=="boolean"?h:!n.fullScreen;t("fullScreenChanged",b),b&&setTimeout(()=>{n.fullScreen&&i.value&&t("fullScreenChanged",!1)},100)}function y(){n.entryId?B():E()}function P(){var h,b;document.fullscreenElement?document.exitFullscreen():(b=(h=w.value)==null?void 0:h.$el)==null||b.requestFullscreen()}function E(){M.stop(),t("addEntry")}function B(){M.stop(),t("openEntry",n.entryId)}function R(h){T.value!==h&&(T.value=!T.value,T.value&&M.isPlaying&&M.stop())}return(h,b)=>{const S=dr,W=Ji,V=Zi,Q=Yi,te=Ui,re=Wi,le=eo,de=Hi,me=fr,Ue=Vi,Pt=Fi,so=Ni,Vt=Di,io=Bi,ze=Ai,et=ji,lo=zi,Op=cr,Mp=ar,Lp=$i,zp=ki,jp=Ci,Ap=ri;return D(),Ce(Ap,{ref_key:"root",ref:w,"full-screen":!!h.fullScreen,idle:G.value,"space-top":n.spaceTop,"touch-device":h.touchDevice,rtl:K(x),onClick:b[11]||(b[11]=rt(()=>{},["stop"]))},ps({back:oe(()=>[q(le,{href:h.raw.title.url,title:"Back to manga"},{default:oe(()=>[q(re)]),_:1},8,["href"])]),"chapter-nav":oe(()=>[q(me,{modelValue:_.value.activeIndex,label:_.value.activeLabel,title:"Select chapter",items:_.value.chapters,"onUpdate:modelValue":en},{item:oe(({item:je})=>[Ct(Xe(je.label),1)]),_:1},8,["modelValue","label","items"]),k.value||v.value?(D(),Y("div",bp,[q(le,{title:`${K(x)?"Next":"Prev"} chapter (←)`,href:k.value,disabled:!k.value,class:"!rounded-r-none"},{default:oe(()=>[q(Ue)]),_:1},8,["title","href","disabled"]),q(le,{title:`${K(x)?"Prev":"Next"} chapter (→)`,href:v.value,disabled:!v.value,class:"!rounded-l-none"},{default:oe(()=>[q(Pt)]),_:1},8,["title","href","disabled"])])):Le("",!0)]),entry:oe(()=>[q(le,{title:h.entryId?"View entry (T)":"Add to Trackkun (T)","data-tour":"Press here to add this manga to your Trackkun collection",onClick:y},{default:oe(()=>[h.entryId?(D(),Ce(Vt,{key:0})):(D(),Ce(io,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[q(lo,{"reader-style":K(m),"onUpdate:readerStyle":b[3]||(b[3]=je=>ye(m)?m.value=je:null),direction:K(d),"onUpdate:direction":b[4]||(b[4]=je=>ye(d)?d.value=je:null),gap:K(O),"onUpdate:gap":b[5]||(b[5]=je=>ye(O)?O.value=je:null),speed:K(j),"onUpdate:speed":b[6]||(b[6]=je=>ye(j)?j.value=je:null),zoom:Z.value,"onUpdate:zoom":b[7]||(b[7]=je=>Z.value=je),name:h.raw.title.name,webtoon:K(u),disabled:K(c),onHelp:R},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]),"reset-zoom":oe(()=>[q(Qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[q(Lp,{zoom:Z.value,onClick:b[9]||(b[9]=rt(()=>Z.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Oe({width:`${K(a)/(K(l).length-1)*100}%`})},null,4)]),default:oe(()=>[K(c)||!K(l).length?(D(),Y("div",_p,[q(S)])):(D(),Y(ge,{key:1},[q(V,{ref_key:"body",ref:C,zoom:Z.value,"onUpdate:zoom":b[0]||(b[0]=je=>Z.value=je),"page-index":N.value,pages:K(g),"total-imgs":K(l).length,direction:K(d),gap:K(O),"is-long-strip":K(F),isRTL:K(x),"is-vertical":K(I),"space-top":h.spaceTop,busy:K(i),idle:G.value,"play-controller":K(M),"touch-device":h.touchDevice,onPrev:it,onNext:vt,onClick:Pe,onDragEnd:_e,onWheelPassive:b[1]||(b[1]=()=>K(M).interfere())},ps({_:2},[!K(c)&&K(l).length?{name:"end",fn:oe(()=>[q(W,{"has-next":!!_.value.nextPath,onNext:We,onHide:f},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device"]),at(q(Q,{direction:K(d)},null,8,["direction"]),[[Go,!L.value&&!h.tourEnabled&&!T.value]]),L.value?Le("",!0):(D(),Ce(te,{key:0,playing:!!K(M).isPlaying.value},null,8,["playing"]))],64)),T.value?(D(),Ce(zp,{key:2,"touch-device":h.touchDevice,onHide:R},null,8,["touch-device"])):Le("",!0),h.tourEnabled?(D(),Ce(jp,{key:3,onHide:b[10]||(b[10]=()=>t("tourEnabledChanged",!1))})):Le("",!0)]),_:2},[h.touchDevice?void 0:{name:"exit",fn:oe(()=>[q(le,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:f},{default:oe(()=>[q(de)]),_:1})]),key:"0"},K(g).length?{name:"page-nav",fn:oe(()=>[q(so,{"model-value":N.value,disabled:K(c),pages:K(g),"total-imgs":K(l).length,"onUpdate:modelValue":b[2]||(b[2]=je=>K($).goToPage(je))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"1"}:void 0,h.touchDevice?void 0:{name:"full-screen",fn:oe(()=>[q(le,{title:`${A.value?"Exit":"Enter"} fullscreen (F)`,onClick:P},{default:oe(()=>[A.value?(D(),Ce(ze,{key:0})):(D(),Ce(et,{key:1}))]),_:1},8,["title"])]),key:"2"},K(F)?{name:"play",fn:oe(()=>[q(le,{"data-tour":"Press here to play like a video",title:`${K(M).isPlaying.value?"Pause":"Play"} (Space)`,disabled:K(c),onClick:b[8]||(b[8]=()=>K(M).toggle())},{default:oe(()=>[K(M).isPlaying.value?(D(),Ce(Op,{key:0})):(D(),Ce(Mp,{key:1}))]),_:1},8,["title","disabled"])]),key:"3"}:void 0]),1032,["full-screen","idle","space-top","touch-device","rtl"])}}}),ol=he(yp,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:8px;left:8px;right:8px;top:8px}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:4px}.z-50{z-index:50}.z-20{z-index:20}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.ml-auto{margin-left:auto}.-ml-20{margin-left:-80px}.ml-1{margin-left:4px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-0\\.5{height:2px}.h-0{height:0}.h-12{height:48px}.h-\\[27rem\\]{height:432px}.h-16{height:64px}.h-10{height:40px}.h-4{height:16px}.h-9{height:36px}.h-24{height:96px}.h-1\\.5{height:6px}.h-1{height:4px}.h-7{height:28px}.h-8{height:32px}.h-6{height:24px}.h-20{height:80px}.h-screen{height:100vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:112px}.w-40{width:160px}.w-4{width:16px}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-screen{width:100vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:72px}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1,.translate-y-1\\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1{--tw-translate-y:4px}.-translate-x-1\\/2,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:24px}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-2xl{border-radius:16px}.rounded-sm{border-radius:2px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-90{--tw-bg-opacity:.9}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:24px}.p-2{padding:8px}.p-4{padding:16px}.p-1{padding:4px}.px-6{padding-left:24px;padding-right:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-1{padding-bottom:4px;padding-top:4px}.pt-3{padding-top:12px}.pb-12{padding-bottom:48px}.pl-1{padding-left:4px}.pb-4{padding-bottom:16px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-xl{font-size:20px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:inset-3{bottom:12px;left:12px;right:12px;top:12px}.sm\\:w-\\[32rem\\]{width:512px}.sm\\:pb-3{padding-bottom:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-2{padding-bottom:8px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-0{padding-bottom:0}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
8
|
-
`]]]),
|
|
9
|
-
`,
|
|
1
|
+
(function(Ne,le){typeof exports=="object"&&typeof module<"u"?module.exports=le():typeof define=="function"&&define.amd?define(le):(Ne=typeof globalThis<"u"?globalThis:Ne||self,Ne._gearSecond_=le())})(this,function(){"use strict";var Dp=Object.defineProperty;var Np=(Ne,le,Ke)=>le in Ne?Dp(Ne,le,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ne[le]=Ke;var rl=(Ne,le,Ke)=>(Np(Ne,typeof le!="symbol"?le+"":le,Ke),Ke);function Ne(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const le={},Ke=[],et=()=>{},sl=()=>!1,il=/^on[^a-z]/,Sn=e=>il.test(e),co=e=>e.startsWith("onUpdate:"),we=Object.assign,uo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ll=Object.prototype.hasOwnProperty,ce=(e,t)=>ll.call(e,t),ee=Array.isArray,Wt=e=>In(e)==="[object Map]",br=e=>In(e)==="[object Set]",oe=e=>typeof e=="function",xe=e=>typeof e=="string",fo=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",yr=e=>ve(e)&&oe(e.then)&&oe(e.catch),wr=Object.prototype.toString,In=e=>wr.call(e),al=e=>In(e).slice(8,-1),xr=e=>In(e)==="[object Object]",po=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=Ne(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,Re=Tn(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),ul=/\B([A-Z])/g,Ye=Tn(e=>e.replace(ul,"-$1").toLowerCase()),Pn=Tn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ho=Tn(e=>e?`on${Pn(e)}`:""),rn=(e,t)=>!Object.is(e,t),En=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},On=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},go=e=>{const t=parseFloat(e);return isNaN(t)?e:t},mo=e=>{const t=xe(e)?Number(e):NaN;return isNaN(t)?e:t};let Cr;const vo=()=>Cr||(Cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Le(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=xe(o)?hl(o):Le(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(xe(e))return e;if(ve(e))return e}}const fl=/;(?![^(]*\))/g,dl=/:([^]+)/,pl=/\/\*[^]*?\*\//g;function hl(e){const t={};return e.replace(pl,"").split(fl).forEach(n=>{if(n){const o=n.split(dl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function $e(e){let t="";if(xe(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=$e(e[n]);o&&(t+=o+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gl=Ne("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function kr(e){return!!e||e===""}const Xe=e=>xe(e)?e:e==null?"":ee(e)||ve(e)&&(e.toString===wr||!oe(e.toString))?JSON.stringify(e,Sr,2):String(e),Sr=(e,t)=>t&&t.__v_isRef?Sr(e,t.value):Wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:br(t)?{[`Set(${t.size})`]:[...t.values()]}:ve(t)&&!ee(t)&&!xr(t)?String(t):t;let Fe;class ml{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function vl(e,t=Fe){t&&t.active&&t.effects.push(e)}function Ir(){return Fe}function _l(e){Fe&&Fe.cleanups.push(e)}const _o=e=>{const t=new Set(e);return t.w=0,t.n=0,t},$r=e=>(e.w&_t)>0,Tr=e=>(e.n&_t)>0,bl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=_t},yl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];$r(r)&&!Tr(r)?r.delete(e):t[n++]=r,r.w&=~_t,r.n&=~_t}t.length=n}},bo=new WeakMap;let sn=0,_t=1;const yo=30;let tt;const Ot=Symbol(""),wo=Symbol("");class xo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,vl(this,o)}run(){if(!this.active)return this.fn();let t=tt,n=bt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=tt,tt=this,bt=!0,_t=1<<++sn,sn<=yo?bl(this):Pr(this),this.fn()}finally{sn<=yo&&yl(this),_t=1<<--sn,tt=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){tt===this?this.deferStop=!0:this.active&&(Pr(this),this.onStop&&this.onStop(),this.active=!1)}}function Pr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let bt=!0;const Er=[];function Ut(){Er.push(bt),bt=!1}function Kt(){const e=Er.pop();bt=e===void 0?!0:e}function Be(e,t,n){if(bt&&tt){let o=bo.get(e);o||bo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=_o()),Or(r)}}function Or(e,t){let n=!1;sn<=yo?Tr(e)||(e.n|=_t,n=!$r(e)):n=!e.has(tt),n&&(e.add(tt),tt.deps.push(e))}function ft(e,t,n,o,r,s){const i=bo.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&ee(e)){const l=Number(o);i.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ee(e)?po(n)&&a.push(i.get("length")):(a.push(i.get(Ot)),Wt(e)&&a.push(i.get(wo)));break;case"delete":ee(e)||(a.push(i.get(Ot)),Wt(e)&&a.push(i.get(wo)));break;case"set":Wt(e)&&a.push(i.get(Ot));break}if(a.length===1)a[0]&&Co(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Co(_o(l))}}function Co(e,t){const n=ee(e)?e:[...e];for(const o of n)o.computed&&Mr(o);for(const o of n)o.computed||Mr(o)}function Mr(e,t){(e!==tt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const wl=Ne("__proto__,__v_isRef,__isVue"),Lr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(fo)),xl=ko(),Cl=ko(!1,!0),kl=ko(!0),zr=Sl();function Sl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ue(this);for(let s=0,i=this.length;s<i;s++)Be(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ue)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ut();const o=ue(this)[t].apply(this,n);return Kt(),o}}),e}function Il(e){const t=ue(this);return Be(t,"has",e),t.hasOwnProperty(e)}function ko(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?Vl:Hr:t?Vr:Fr).get(o))return o;const i=ee(o);if(!e){if(i&&ce(zr,r))return Reflect.get(zr,r,s);if(r==="hasOwnProperty")return Il}const a=Reflect.get(o,r,s);return(fo(r)?Lr.has(r):wl(r))||(e||Be(o,"get",r),t)?a:Ce(a)?i&&po(r)?a:a.value:ve(a)?e?$o(a):ln(a):a}}const $l=jr(),Tl=jr(!0);function jr(e=!1){return function(n,o,r,s){let i=n[o];if(Xt(i)&&Ce(i)&&!Ce(r))return!1;if(!e&&(!Dn(r)&&!Xt(r)&&(i=ue(i),r=ue(r)),!ee(n)&&Ce(i)&&!Ce(r)))return i.value=r,!0;const a=ee(n)&&po(o)?Number(o)<n.length:ce(n,o),l=Reflect.set(n,o,r,s);return n===ue(s)&&(a?rn(r,i)&&ft(n,"set",o,r):ft(n,"add",o,r)),l}}function Pl(e,t){const n=ce(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ft(e,"delete",t,void 0),o}function El(e,t){const n=Reflect.has(e,t);return(!fo(t)||!Lr.has(t))&&Be(e,"has",t),n}function Ol(e){return Be(e,"iterate",ee(e)?"length":Ot),Reflect.ownKeys(e)}const Ar={get:xl,set:$l,deleteProperty:Pl,has:El,ownKeys:Ol},Ml={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ll=we({},Ar,{get:Cl,set:Tl}),So=e=>e,Mn=e=>Reflect.getPrototypeOf(e);function Ln(e,t,n=!1,o=!1){e=e.__v_raw;const r=ue(e),s=ue(t);n||(t!==s&&Be(r,"get",t),Be(r,"get",s));const{has:i}=Mn(r),a=o?So:n?Po:an;if(i.call(r,t))return a(e.get(t));if(i.call(r,s))return a(e.get(s));e!==r&&e.get(t)}function zn(e,t=!1){const n=this.__v_raw,o=ue(n),r=ue(e);return t||(e!==r&&Be(o,"has",e),Be(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function jn(e,t=!1){return e=e.__v_raw,!t&&Be(ue(e),"iterate",Ot),Reflect.get(e,"size",e)}function Br(e){e=ue(e);const t=ue(this);return Mn(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function Dr(e,t){t=ue(t);const n=ue(this),{has:o,get:r}=Mn(n);let s=o.call(n,e);s||(e=ue(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?rn(t,i)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function Nr(e){const t=ue(this),{has:n,get:o}=Mn(t);let r=n.call(t,e);r||(e=ue(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ft(t,"delete",e,void 0),s}function Rr(){const e=ue(this),t=e.size!==0,n=e.clear();return t&&ft(e,"clear",void 0,void 0),n}function An(e,t){return function(o,r){const s=this,i=s.__v_raw,a=ue(i),l=t?So:e?Po:an;return!e&&Be(a,"iterate",Ot),i.forEach((c,u)=>o.call(r,l(c),l(u),s))}}function Bn(e,t,n){return function(...o){const r=this.__v_raw,s=ue(r),i=Wt(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...o),u=n?So:t?Po:an;return!t&&Be(s,"iterate",l?wo:Ot),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:a?[u(d[0]),u(d[1])]:u(d),done:m}},[Symbol.iterator](){return this}}}}function yt(e){return function(...t){return e==="delete"?!1:this}}function zl(){const e={get(s){return Ln(this,s)},get size(){return jn(this)},has:zn,add:Br,set:Dr,delete:Nr,clear:Rr,forEach:An(!1,!1)},t={get(s){return Ln(this,s,!1,!0)},get size(){return jn(this)},has:zn,add:Br,set:Dr,delete:Nr,clear:Rr,forEach:An(!1,!0)},n={get(s){return Ln(this,s,!0)},get size(){return jn(this,!0)},has(s){return zn.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:An(!0,!1)},o={get(s){return Ln(this,s,!0,!0)},get size(){return jn(this,!0)},has(s){return zn.call(this,s,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:An(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Bn(s,!1,!1),n[s]=Bn(s,!0,!1),t[s]=Bn(s,!1,!0),o[s]=Bn(s,!0,!0)}),[e,n,t,o]}const[jl,Al,Bl,Dl]=zl();function Io(e,t){const n=t?e?Dl:Bl:e?Al:jl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ce(n,r)&&r in o?n:o,r,s)}const Nl={get:Io(!1,!1)},Rl={get:Io(!1,!0)},Fl={get:Io(!0,!1)},Fr=new WeakMap,Vr=new WeakMap,Hr=new WeakMap,Vl=new WeakMap;function Hl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Hl(al(e))}function ln(e){return Xt(e)?e:To(e,!1,Ar,Nl,Fr)}function Ul(e){return To(e,!1,Ll,Rl,Vr)}function $o(e){return To(e,!0,Ml,Fl,Hr)}function To(e,t,n,o,r){if(!ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Wl(e);if(i===0)return e;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Yt(e){return Xt(e)?Yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Xt(e){return!!(e&&e.__v_isReadonly)}function Dn(e){return!!(e&&e.__v_isShallow)}function Wr(e){return Yt(e)||Xt(e)}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function Ur(e){return On(e,"__v_skip",!0),e}const an=e=>ve(e)?ln(e):e,Po=e=>ve(e)?$o(e):e;function Kr(e){bt&&tt&&(e=ue(e),Or(e.dep||(e.dep=_o())))}function Yr(e,t){e=ue(e);const n=e.dep;n&&Co(n)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function Q(e){return Xr(e,!1)}function Kl(e){return Xr(e,!0)}function Xr(e,t){return Ce(e)?e:new Yl(e,t)}class Yl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ue(t),this._value=n?t:an(t)}get value(){return Kr(this),this._value}set value(t){const n=this.__v_isShallow||Dn(t)||Xt(t);t=n?t:ue(t),rn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:an(t),Yr(this))}}function Z(e){return Ce(e)?e.value:e}const Xl={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function qr(e){return Yt(e)?e:new Proxy(e,Xl)}class ql{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new xo(t,()=>{this._dirty||(this._dirty=!0,Yr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ue(this);return Kr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zl(e,t,n=!1){let o,r;const s=oe(e);return s?(o=e,r=et):(o=e.get,r=e.set),new ql(o,r,s||!r,n)}function Fp(e,...t){}function wt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Nn(s,t,n)}return r}function qe(e,t,n,o){if(oe(e)){const s=wt(e,t,n,o);return s&&yr(s)&&s.catch(i=>{Nn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(qe(e[s],t,n,o));return r}function Nn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=n;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){wt(l,null,10,[e,i,a]);return}}Jl(e,n,r,o)}function Jl(e,t,n,o=!0){console.error(e)}let cn=!1,Eo=!1;const Oe=[];let lt=0;const qt=[];let dt=null,Mt=0;const Zr=Promise.resolve();let Oo=null;function Ze(e){const t=Oo||Zr;return e?t.then(this?e.bind(this):e):t}function Ql(e){let t=lt+1,n=Oe.length;for(;t<n;){const o=t+n>>>1;un(Oe[o])<e?t=o+1:n=o}return t}function Mo(e){(!Oe.length||!Oe.includes(e,cn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Oe.push(e):Oe.splice(Ql(e.id),0,e),Jr())}function Jr(){!cn&&!Eo&&(Eo=!0,Oo=Zr.then(es))}function Gl(e){const t=Oe.indexOf(e);t>lt&&Oe.splice(t,1)}function ea(e){ee(e)?qt.push(...e):(!dt||!dt.includes(e,e.allowRecurse?Mt+1:Mt))&&qt.push(e),Jr()}function Qr(e,t=cn?lt+1:0){for(;t<Oe.length;t++){const n=Oe[t];n&&n.pre&&(Oe.splice(t,1),t--,n())}}function Gr(e){if(qt.length){const t=[...new Set(qt)];if(qt.length=0,dt){dt.push(...t);return}for(dt=t,dt.sort((n,o)=>un(n)-un(o)),Mt=0;Mt<dt.length;Mt++)dt[Mt]();dt=null,Mt=0}}const un=e=>e.id==null?1/0:e.id,ta=(e,t)=>{const n=un(e)-un(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function es(e){Eo=!1,cn=!0,Oe.sort(ta);const t=et;try{for(lt=0;lt<Oe.length;lt++){const n=Oe[lt];n&&n.active!==!1&&wt(n,null,14)}}finally{lt=0,Oe.length=0,Gr(),cn=!1,Oo=null,(Oe.length||qt.length)&&es()}}function na(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||le;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:m}=o[u]||le;m&&(r=n.map(y=>xe(y)?y.trim():y)),d&&(r=n.map(go))}let a,l=o[a=ho(t)]||o[a=ho(Re(t))];!l&&s&&(l=o[a=ho(Ye(t))]),l&&qe(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(c,e,6,r)}}function ts(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},a=!1;if(!oe(e)){const l=c=>{const u=ts(c,t,!0);u&&(a=!0,we(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(ve(e)&&o.set(e,null),null):(ee(s)?s.forEach(l=>i[l]=null):we(i,s),ve(e)&&o.set(e,i),i)}function Rn(e,t){return!e||!Sn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,Ye(t))||ce(e,t))}let Ee=null,ns=null;function Fn(e){const t=Ee;return Ee=e,ns=e&&e.type.__scopeId||null,t}function re(e,t=Ee,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ms(-1);const s=Fn(t);let i;try{i=e(...r)}finally{Fn(s),o._d&&Ms(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Vp(){}function Lo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:m,setupState:y,ctx:O,inheritAttrs:k}=e;let j,U;const V=Fn(e);try{if(n.shapeFlag&4){const p=r||o;j=ct(u.call(p,p,d,s,y,m,O)),U=l}else{const p=t;j=ct(p.length>1?p(s,{attrs:l,slots:a,emit:c}):p(s,null)),U=t.props?l:oa(l)}}catch(p){gn.length=0,Nn(p,e,1),j=J(Qe)}let M=j;if(U&&k!==!1){const p=Object.keys(U),{shapeFlag:I}=M;p.length&&I&7&&(i&&p.some(co)&&(U=ra(U,i)),M=xt(M,U))}return n.dirs&&(M=xt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),j=M,Fn(V),j}const oa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sn(n))&&((t||(t={}))[n]=e[n]);return t},ra=(e,t)=>{const n={};for(const o in e)(!co(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function sa(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?os(o,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const m=u[d];if(i[m]!==o[m]&&!Rn(c,m))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?os(o,i,c):!0:!!i;return!1}function os(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!Rn(n,s))return!0}return!1}function ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const la=e=>e.__isSuspense;function aa(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ea(e)}function ca(e,t){return zo(e,null,t)}const Vn={};function fe(e,t,n){return zo(e,t,n)}function zo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=le){var a;const l=Ir()===((a=Te)==null?void 0:a.scope)?Te:null;let c,u=!1,d=!1;if(Ce(e)?(c=()=>e.value,u=Dn(e)):Yt(e)?(c=()=>e,o=!0):ee(e)?(d=!0,u=e.some(p=>Yt(p)||Dn(p)),c=()=>e.map(p=>{if(Ce(p))return p.value;if(Yt(p))return Lt(p);if(oe(p))return wt(p,l,2)})):oe(e)?t?c=()=>wt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return m&&m(),qe(e,l,3,[y])}:c=et,t&&o){const p=c;c=()=>Lt(p())}let m,y=p=>{m=V.onStop=()=>{wt(p,l,4)}},O;if(vn)if(y=et,t?n&&qe(t,l,3,[c(),d?[]:void 0,y]):c(),r==="sync"){const p=tc();O=p.__watcherHandles||(p.__watcherHandles=[])}else return et;let k=d?new Array(e.length).fill(Vn):Vn;const j=()=>{if(V.active)if(t){const p=V.run();(o||u||(d?p.some((I,S)=>rn(I,k[S])):rn(p,k)))&&(m&&m(),qe(t,l,3,[p,k===Vn?void 0:d&&k[0]===Vn?[]:k,y]),k=p)}else V.run()};j.allowRecurse=!!t;let U;r==="sync"?U=j:r==="post"?U=()=>De(j,l&&l.suspense):(j.pre=!0,l&&(j.id=l.uid),U=()=>Mo(j));const V=new xo(c,U);t?n?j():k=V.run():r==="post"?De(V.run.bind(V),l&&l.suspense):V.run();const M=()=>{V.stop(),l&&l.scope&&uo(l.scope.effects,V)};return O&&O.push(M),M}function ua(e,t,n){const o=this.proxy,r=xe(e)?e.includes(".")?rs(o,e):()=>o[e]:e.bind(o,o);let s;oe(t)?s=t:(s=t.handler,n=t);const i=Te;Jt(this);const a=zo(r,s.bind(o),n);return i?Jt(i):Dt(),a}function rs(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Lt(e,t){if(!ve(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ce(e))Lt(e.value,t);else if(ee(e))for(let n=0;n<e.length;n++)Lt(e[n],t);else if(br(e)||Wt(e))e.forEach(n=>{Lt(n,t)});else if(xr(e))for(const n in e)Lt(e[n],t);return e}function at(e,t){const n=Ee;if(n===null)return e;const o=Gn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,l,c=le]=t[s];i&&(oe(i)&&(i={mounted:i,updated:i}),i.deep&&Lt(a),r.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function zt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];s&&(a.oldValue=s[i].value);let l=a.dir[o];l&&(Ut(),qe(l,n,8,[e.el,a,e,t]),Kt())}}function fa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ve(()=>{e.isMounted=!0}),us(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],ss={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},da={name:"BaseTransition",props:ss,setup(e,{slots:t}){const n=js(),o=fa();let r;return()=>{const s=t.default&&as(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const k of s)if(k.type!==Qe){i=k;break}}const a=ue(e),{mode:l}=a;if(o.isLeaving)return Ao(i);const c=ls(i);if(!c)return Ao(i);const u=jo(c,a,o,n);Bo(c,u);const d=n.subTree,m=d&&ls(d);let y=!1;const{getTransitionKey:O}=c.type;if(O){const k=O();r===void 0?r=k:k!==r&&(r=k,y=!0)}if(m&&m.type!==Qe&&(!Bt(c,m)||y)){const k=jo(m,a,o,n);if(Bo(m,k),l==="out-in")return o.isLeaving=!0,k.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Ao(i);l==="in-out"&&c.type!==Qe&&(k.delayLeave=(j,U,V)=>{const M=is(o,m);M[String(m.key)]=m,j._leaveCb=()=>{U(),j._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=V})}return i}}};function is(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 jo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:m,onAfterLeave:y,onLeaveCancelled:O,onBeforeAppear:k,onAppear:j,onAfterAppear:U,onAppearCancelled:V}=t,M=String(e.key),p=is(n,e),I=(v,D)=>{v&&qe(v,o,9,D)},S=(v,D)=>{const A=D[1];I(v,D),ee(v)?v.every(H=>H.length<=1)&&A():v.length<=1&&A()},P={mode:s,persisted:i,beforeEnter(v){let D=a;if(!n.isMounted)if(r)D=k||a;else return;v._leaveCb&&v._leaveCb(!0);const A=p[M];A&&Bt(e,A)&&A.el._leaveCb&&A.el._leaveCb(),I(D,[v])},enter(v){let D=l,A=c,H=u;if(!n.isMounted)if(r)D=j||l,A=U||c,H=V||u;else return;let E=!1;const x=v._enterCb=N=>{E||(E=!0,N?I(H,[v]):I(A,[v]),P.delayedLeave&&P.delayedLeave(),v._enterCb=void 0)};D?S(D,[v,x]):x()},leave(v,D){const A=String(e.key);if(v._enterCb&&v._enterCb(!0),n.isUnmounting)return D();I(d,[v]);let H=!1;const E=v._leaveCb=x=>{H||(H=!0,D(),x?I(O,[v]):I(y,[v]),v._leaveCb=void 0,p[A]===e&&delete p[A])};p[A]=e,m?S(m,[v,E]):E()},clone(v){return jo(v,t,n,o)}};return P}function Ao(e){if(Hn(e))return e=xt(e),e.children=null,e}function ls(e){return Hn(e)?e.children?e.children[0]:void 0:e}function Bo(e,t){e.shapeFlag&6&&e.component?Bo(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 as(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===be?(i.patchFlag&128&&r++,o=o.concat(as(i.children,t,a))):(t||i.type!==Qe)&&o.push(a!=null?xt(i,{key:a}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function ke(e,t){return oe(e)?(()=>we({name:e.name},t,{setup:e}))():e}const fn=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function pa(e,t){cs(e,"a",t)}function ha(e,t){cs(e,"da",t)}function cs(e,t,n=Te){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Wn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Hn(r.parent.vnode)&&ga(o,t,n,r),r=r.parent}}function ga(e,t,n,o){const r=Wn(t,e,o,!0);He(()=>{uo(o[t],r)},n)}function Wn(e,t,n=Te,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ut(),Jt(n);const a=qe(t,n,e,i);return Dt(),Kt(),a});return o?r.unshift(s):r.push(s),s}}const pt=e=>(t,n=Te)=>(!vn||e==="sp")&&Wn(e,(...o)=>t(...o),n),ma=pt("bm"),Ve=pt("m"),va=pt("bu"),_a=pt("u"),us=pt("bum"),He=pt("um"),ba=pt("sp"),ya=pt("rtg"),wa=pt("rtc");function xa(e,t=Te){Wn("ec",e,t)}const fs="components",ds=Symbol.for("v-ndc");function Ca(e){return xe(e)?ka(fs,e,!1)||e:e||ds}function ka(e,t,n=!0,o=!1){const r=Ee||Te;if(r){const s=r.type;if(e===fs){const a=Qa(s,!1);if(a&&(a===t||a===Re(t)||a===Pn(Re(t))))return s}const i=ps(r[e]||s[e],t)||ps(r.appContext[e],t);return!i&&o?s:i}}function ps(e,t){return e&&(e[t]||e[Re(t)]||e[Pn(Re(t))])}function dn(e,t,n,o){let r;const s=n&&n[o];if(ee(e)||xe(e)){r=new Array(e.length);for(let i=0,a=e.length;i<a;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(ve(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];r[a]=t(e[c],c,a,s&&s[a])}}else r=[];return n&&(n[o]=r),r}function hs(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function Se(e,t,n={},o,r){if(Ee.isCE||Ee.parent&&fn(Ee.parent)&&Ee.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),B();const i=s&&gs(s(n)),a=Ie(be,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function gs(e){return e.some(t=>qn(t)?!(t.type===Qe||t.type===be&&!gs(t.children)):!0)?e:null}const Do=e=>e?Bs(e)?Gn(e)||e.proxy:Do(e.parent):null,pn=we(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=>Do(e.parent),$root:e=>Do(e.root),$emit:e=>e.emit,$options:e=>Fo(e),$forceUpdate:e=>e.f||(e.f=()=>Mo(e.update)),$nextTick:e=>e.n||(e.n=Ze.bind(e.proxy)),$watch:e=>ua.bind(e)}),No=(e,t)=>e!==le&&!e.__isScriptSetup&&ce(e,t),Sa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(No(o,t))return i[t]=1,o[t];if(r!==le&&ce(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ce(c,t))return i[t]=3,s[t];if(n!==le&&ce(n,t))return i[t]=4,n[t];Ro&&(i[t]=0)}}const u=pn[t];let d,m;if(u)return t==="$attrs"&&Be(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==le&&ce(n,t))return i[t]=4,n[t];if(m=l.config.globalProperties,ce(m,t))return m[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return No(r,t)?(r[t]=n,!0):o!==le&&ce(o,t)?(o[t]=n,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let a;return!!n[i]||e!==le&&ce(e,i)||No(t,i)||(a=s[0])&&ce(a,i)||ce(o,i)||ce(pn,i)||ce(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ms(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function Ia(e){const t=Fo(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&vs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:m,beforeUpdate:y,updated:O,activated:k,deactivated:j,beforeDestroy:U,beforeUnmount:V,destroyed:M,unmounted:p,render:I,renderTracked:S,renderTriggered:P,errorCaptured:v,serverPrefetch:D,expose:A,inheritAttrs:H,components:E,directives:x,filters:N}=t;if(c&&$a(c,o,null),i)for(const F in i){const Y=i[F];oe(Y)&&(o[F]=Y.bind(n))}if(r){const F=r.call(n,n);ve(F)&&(e.data=ln(F))}if(Ro=!0,s)for(const F in s){const Y=s[F],te=oe(Y)?Y.bind(n,n):oe(Y.get)?Y.get.bind(n,n):et,he=!oe(Y)&&oe(Y.set)?Y.set.bind(n):et,ge=se({get:te,set:he});Object.defineProperty(o,F,{enumerable:!0,configurable:!0,get:()=>ge.value,set:de=>ge.value=de})}if(a)for(const F in a)_s(a[F],o,n,F);if(l){const F=oe(l)?l.call(n):l;Reflect.ownKeys(F).forEach(Y=>{Yn(Y,F[Y])})}u&&vs(u,e,"c");function b(F,Y){ee(Y)?Y.forEach(te=>F(te.bind(n))):Y&&F(Y.bind(n))}if(b(ma,d),b(Ve,m),b(va,y),b(_a,O),b(pa,k),b(ha,j),b(xa,v),b(wa,S),b(ya,P),b(us,V),b(He,p),b(ba,D),ee(A))if(A.length){const F=e.exposed||(e.exposed={});A.forEach(Y=>{Object.defineProperty(F,Y,{get:()=>n[Y],set:te=>n[Y]=te})})}else e.exposed||(e.exposed={});I&&e.render===et&&(e.render=I),H!=null&&(e.inheritAttrs=H),E&&(e.components=E),x&&(e.directives=x)}function $a(e,t,n=et){ee(e)&&(e=Vo(e));for(const o in e){const r=e[o];let s;ve(r)?"default"in r?s=jt(r.from||o,r.default,!0):s=jt(r.from||o):s=jt(r),Ce(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function vs(e,t,n){qe(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function _s(e,t,n,o){const r=o.includes(".")?rs(n,o):()=>n[o];if(xe(e)){const s=t[e];oe(s)&&fe(r,s)}else if(oe(e))fe(r,e.bind(n));else if(ve(e))if(ee(e))e.forEach(s=>_s(s,t,n,o));else{const s=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(s)&&fe(r,s,e)}}function Fo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Un(l,c,i,!0)),Un(l,t,i)),ve(t)&&s.set(t,l),l}function Un(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Un(e,s,n,!0),r&&r.forEach(i=>Un(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=Ta[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ta={data:bs,props:ys,emits:ys,methods:hn,computed:hn,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:hn,directives:hn,watch:Ea,provide:bs,inject:Pa};function bs(e,t){return t?e?function(){return we(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function Pa(e,t){return hn(Vo(e),Vo(t))}function Vo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function hn(e,t){return e?we(Object.create(null),e,t):t}function ys(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:we(Object.create(null),ms(e),ms(t??{})):t}function Ea(e,t){if(!e)return t;if(!t)return e;const n=we(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function ws(){return{app:null,config:{isNativeTag:sl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Oa=0;function Ma(e,t){return function(o,r=null){oe(o)||(o=we({},o)),r!=null&&!ve(r)&&(r=null);const s=ws(),i=new Set;let a=!1;const l=s.app={_uid:Oa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:nc,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&oe(c.install)?(i.add(c),c.install(l,...u)):oe(c)&&(i.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,d){if(!a){const m=J(o,r);return m.appContext=s,u&&t?t(m,c):e(m,c,d),a=!0,l._container=c,c.__vue_app__=l,Gn(m.component)||m.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,l},runWithContext(c){Kn=l;try{return c()}finally{Kn=null}}};return l}}let Kn=null;function Yn(e,t){if(Te){let n=Te.provides;const o=Te.parent&&Te.parent.provides;o===n&&(n=Te.provides=Object.create(o)),n[e]=t}}function jt(e,t,n=!1){const o=Te||Ee;if(o||Kn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Kn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&oe(t)?t.call(o&&o.proxy):t}}function La(e,t,n,o=!1){const r={},s={};On(s,Zn,1),e.propsDefaults=Object.create(null),xs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function za(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,a=ue(r),[l]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let m=u[d];if(Rn(e.emitsOptions,m))continue;const y=t[m];if(l)if(ce(s,m))y!==s[m]&&(s[m]=y,c=!0);else{const O=Re(m);r[O]=Ho(l,a,O,y,e,!1)}else y!==s[m]&&(s[m]=y,c=!0)}}}else{xs(e,t,r,s)&&(c=!0);let u;for(const d in a)(!t||!ce(t,d)&&((u=Ye(d))===d||!ce(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Ho(l,a,d,void 0,e,!0)):delete r[d]);if(s!==a)for(const d in s)(!t||!ce(t,d))&&(delete s[d],c=!0)}c&&ft(e,"set","$attrs")}function xs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if($n(l))continue;const c=t[l];let u;r&&ce(r,u=Re(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:Rn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,i=!0)}if(s){const l=ue(n),c=a||le;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Ho(r,l,d,c[d],e,!ce(c,d))}}return i}function Ho(e,t,n,o,r,s){const i=e[n];if(i!=null){const a=ce(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&oe(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Jt(r),o=c[n]=l.call(null,t),Dt())}else o=l}i[0]&&(s&&!a?o=!1:i[1]&&(o===""||o===Ye(n))&&(o=!0))}return o}function Cs(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},a=[];let l=!1;if(!oe(e)){const u=d=>{l=!0;const[m,y]=Cs(d,t,!0);we(i,m),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return ve(e)&&o.set(e,Ke),Ke;if(ee(s))for(let u=0;u<s.length;u++){const d=Re(s[u]);ks(d)&&(i[d]=le)}else if(s)for(const u in s){const d=Re(u);if(ks(d)){const m=s[u],y=i[d]=ee(m)||oe(m)?{type:m}:we({},m);if(y){const O=$s(Boolean,y.type),k=$s(String,y.type);y[0]=O>-1,y[1]=k<0||O<k,(O>-1||ce(y,"default"))&&a.push(d)}}}const c=[i,a];return ve(e)&&o.set(e,c),c}function ks(e){return e[0]!=="$"}function Ss(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Is(e,t){return Ss(e)===Ss(t)}function $s(e,t){return ee(t)?t.findIndex(n=>Is(n,e)):oe(t)&&Is(t,e)?0:-1}const Ts=e=>e[0]==="_"||e==="$stable",Wo=e=>ee(e)?e.map(ct):[ct(e)],ja=(e,t,n)=>{if(t._n)return t;const o=re((...r)=>Wo(t(...r)),n);return o._c=!1,o},Ps=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ts(r))continue;const s=e[r];if(oe(s))t[r]=ja(r,s,o);else if(s!=null){const i=Wo(s);t[r]=()=>i}}},Es=(e,t)=>{const n=Wo(t);e.slots.default=()=>n},Aa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ue(t),On(t,"_",n)):Ps(t,e.slots={})}else e.slots={},t&&Es(e,t);On(e.slots,Zn,1)},Ba=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=le;if(o.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(we(r,t),!n&&a===1&&delete r._):(s=!t.$stable,Ps(t,r)),i=t}else t&&(Es(e,t),i={default:1});if(s)for(const a in r)!Ts(a)&&!(a in i)&&delete r[a]};function Uo(e,t,n,o,r=!1){if(ee(e)){e.forEach((m,y)=>Uo(m,t&&(ee(t)?t[y]:t),n,o,r));return}if(fn(o)&&!r)return;const s=o.shapeFlag&4?Gn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===le?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(xe(c)?(u[c]=null,ce(d,c)&&(d[c]=null)):Ce(c)&&(c.value=null)),oe(l))wt(l,a,12,[i,u]);else{const m=xe(l),y=Ce(l);if(m||y){const O=()=>{if(e.f){const k=m?ce(d,l)?d[l]:u[l]:l.value;r?ee(k)&&uo(k,s):ee(k)?k.includes(s)||k.push(s):m?(u[l]=[s],ce(d,l)&&(d[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else m?(u[l]=i,ce(d,l)&&(d[l]=i)):y&&(l.value=i,e.k&&(u[e.k]=i))};i?(O.id=-1,De(O,n)):O()}}}const De=aa;function Da(e){return Na(e)}function Na(e,t){const n=vo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:m,setScopeId:y=et,insertStaticContent:O}=e,k=(f,h,w,$=null,T=null,z=null,R=!1,g=null,_=!!h.dynamicChildren)=>{if(f===h)return;f&&!Bt(f,h)&&($=nn(f),de(f,T,z,!0),f=null),h.patchFlag===-2&&(_=!1,h.dynamicChildren=null);const{type:C,ref:K,shapeFlag:W}=h;switch(C){case Xn:j(f,h,w,$);break;case Qe:U(f,h,w,$);break;case Ko:f==null&&V(h,w,$,R);break;case be:E(f,h,w,$,T,z,R,g,_);break;default:W&1?I(f,h,w,$,T,z,R,g,_):W&6?x(f,h,w,$,T,z,R,g,_):(W&64||W&128)&&C.process(f,h,w,$,T,z,R,g,_,st)}K!=null&&T&&Uo(K,f&&f.ref,z,h||f,!h)},j=(f,h,w,$)=>{if(f==null)o(h.el=a(h.children),w,$);else{const T=h.el=f.el;h.children!==f.children&&c(T,h.children)}},U=(f,h,w,$)=>{f==null?o(h.el=l(h.children||""),w,$):h.el=f.el},V=(f,h,w,$)=>{[f.el,f.anchor]=O(f.children,h,w,$,f.el,f.anchor)},M=({el:f,anchor:h},w,$)=>{let T;for(;f&&f!==h;)T=m(f),o(f,w,$),f=T;o(h,w,$)},p=({el:f,anchor:h})=>{let w;for(;f&&f!==h;)w=m(f),r(f),f=w;r(h)},I=(f,h,w,$,T,z,R,g,_)=>{R=R||h.type==="svg",f==null?S(h,w,$,T,z,R,g,_):D(f,h,T,z,R,g,_)},S=(f,h,w,$,T,z,R,g)=>{let _,C;const{type:K,props:W,shapeFlag:G,transition:ne,dirs:ie}=f;if(_=f.el=i(f.type,z,W&&W.is,W),G&8?u(_,f.children):G&16&&v(f.children,_,null,$,T,z&&K!=="foreignObject",R,g),ie&&zt(f,null,$,"created"),P(_,f,f.scopeId,R,$),W){for(const pe in W)pe!=="value"&&!$n(pe)&&s(_,pe,null,W[pe],z,f.children,$,T,Me);"value"in W&&s(_,"value",null,W.value),(C=W.onVnodeBeforeMount)&&ut(C,$,f)}ie&&zt(f,null,$,"beforeMount");const ae=(!T||T&&!T.pendingBranch)&&ne&&!ne.persisted;ae&&ne.beforeEnter(_),o(_,h,w),((C=W&&W.onVnodeMounted)||ae||ie)&&De(()=>{C&&ut(C,$,f),ae&&ne.enter(_),ie&&zt(f,null,$,"mounted")},T)},P=(f,h,w,$,T)=>{if(w&&y(f,w),$)for(let z=0;z<$.length;z++)y(f,$[z]);if(T){let z=T.subTree;if(h===z){const R=T.vnode;P(f,R,R.scopeId,R.slotScopeIds,T.parent)}}},v=(f,h,w,$,T,z,R,g,_=0)=>{for(let C=_;C<f.length;C++){const K=f[C]=g?kt(f[C]):ct(f[C]);k(null,K,h,w,$,T,z,R,g)}},D=(f,h,w,$,T,z,R)=>{const g=h.el=f.el;let{patchFlag:_,dynamicChildren:C,dirs:K}=h;_|=f.patchFlag&16;const W=f.props||le,G=h.props||le;let ne;w&&At(w,!1),(ne=G.onVnodeBeforeUpdate)&&ut(ne,w,h,f),K&&zt(h,f,w,"beforeUpdate"),w&&At(w,!0);const ie=T&&h.type!=="foreignObject";if(C?A(f.dynamicChildren,C,g,w,$,ie,z):R||Y(f,h,g,null,w,$,ie,z,!1),_>0){if(_&16)H(g,h,W,G,w,$,T);else if(_&2&&W.class!==G.class&&s(g,"class",null,G.class,T),_&4&&s(g,"style",W.style,G.style,T),_&8){const ae=h.dynamicProps;for(let pe=0;pe<ae.length;pe++){const ye=ae[pe],Ue=W[ye],Et=G[ye];(Et!==Ue||ye==="value")&&s(g,ye,Ue,Et,T,f.children,w,$,Me)}}_&1&&f.children!==h.children&&u(g,h.children)}else!R&&C==null&&H(g,h,W,G,w,$,T);((ne=G.onVnodeUpdated)||K)&&De(()=>{ne&&ut(ne,w,h,f),K&&zt(h,f,w,"updated")},$)},A=(f,h,w,$,T,z,R)=>{for(let g=0;g<h.length;g++){const _=f[g],C=h[g],K=_.el&&(_.type===be||!Bt(_,C)||_.shapeFlag&70)?d(_.el):w;k(_,C,K,null,$,T,z,R,!0)}},H=(f,h,w,$,T,z,R)=>{if(w!==$){if(w!==le)for(const g in w)!$n(g)&&!(g in $)&&s(f,g,w[g],null,R,h.children,T,z,Me);for(const g in $){if($n(g))continue;const _=$[g],C=w[g];_!==C&&g!=="value"&&s(f,g,C,_,R,h.children,T,z,Me)}"value"in $&&s(f,"value",w.value,$.value)}},E=(f,h,w,$,T,z,R,g,_)=>{const C=h.el=f?f.el:a(""),K=h.anchor=f?f.anchor:a("");let{patchFlag:W,dynamicChildren:G,slotScopeIds:ne}=h;ne&&(g=g?g.concat(ne):ne),f==null?(o(C,w,$),o(K,w,$),v(h.children,w,K,T,z,R,g,_)):W>0&&W&64&&G&&f.dynamicChildren?(A(f.dynamicChildren,G,w,T,z,R,g),(h.key!=null||T&&h===T.subTree)&&Os(f,h,!0)):Y(f,h,w,K,T,z,R,g,_)},x=(f,h,w,$,T,z,R,g,_)=>{h.slotScopeIds=g,f==null?h.shapeFlag&512?T.ctx.activate(h,w,$,R,_):N(h,w,$,T,z,R,_):L(f,h,_)},N=(f,h,w,$,T,z,R)=>{const g=f.component=Ya(f,$,T);if(Hn(f)&&(g.ctx.renderer=st),Xa(g),g.asyncDep){if(T&&T.registerDep(g,b),!f.el){const _=g.subTree=J(Qe);U(null,_,h,w)}return}b(g,f,h,w,T,z,R)},L=(f,h,w)=>{const $=h.component=f.component;if(sa(f,h,w))if($.asyncDep&&!$.asyncResolved){F($,h,w);return}else $.next=h,Gl($.update),$.update();else h.el=f.el,$.vnode=h},b=(f,h,w,$,T,z,R)=>{const g=()=>{if(f.isMounted){let{next:K,bu:W,u:G,parent:ne,vnode:ie}=f,ae=K,pe;At(f,!1),K?(K.el=ie.el,F(f,K,R)):K=ie,W&&En(W),(pe=K.props&&K.props.onVnodeBeforeUpdate)&&ut(pe,ne,K,ie),At(f,!0);const ye=Lo(f),Ue=f.subTree;f.subTree=ye,k(Ue,ye,d(Ue.el),nn(Ue),f,T,z),K.el=ye.el,ae===null&&ia(f,ye.el),G&&De(G,T),(pe=K.props&&K.props.onVnodeUpdated)&&De(()=>ut(pe,ne,K,ie),T)}else{let K;const{el:W,props:G}=h,{bm:ne,m:ie,parent:ae}=f,pe=fn(h);if(At(f,!1),ne&&En(ne),!pe&&(K=G&&G.onVnodeBeforeMount)&&ut(K,ae,h),At(f,!0),W&&on){const ye=()=>{f.subTree=Lo(f),on(W,f.subTree,f,T,null)};pe?h.type.__asyncLoader().then(()=>!f.isUnmounted&&ye()):ye()}else{const ye=f.subTree=Lo(f);k(null,ye,w,$,f,T,z),h.el=ye.el}if(ie&&De(ie,T),!pe&&(K=G&&G.onVnodeMounted)){const ye=h;De(()=>ut(K,ae,ye),T)}(h.shapeFlag&256||ae&&fn(ae.vnode)&&ae.vnode.shapeFlag&256)&&f.a&&De(f.a,T),f.isMounted=!0,h=w=$=null}},_=f.effect=new xo(g,()=>Mo(C),f.scope),C=f.update=()=>_.run();C.id=f.uid,At(f,!0),C()},F=(f,h,w)=>{h.component=f;const $=f.vnode.props;f.vnode=h,f.next=null,za(f,h.props,$,w),Ba(f,h.children,w),Ut(),Qr(),Kt()},Y=(f,h,w,$,T,z,R,g,_=!1)=>{const C=f&&f.children,K=f?f.shapeFlag:0,W=h.children,{patchFlag:G,shapeFlag:ne}=h;if(G>0){if(G&128){he(C,W,w,$,T,z,R,g,_);return}else if(G&256){te(C,W,w,$,T,z,R,g,_);return}}ne&8?(K&16&&Me(C,T,z),W!==C&&u(w,W)):K&16?ne&16?he(C,W,w,$,T,z,R,g,_):Me(C,T,z,!0):(K&8&&u(w,""),ne&16&&v(W,w,$,T,z,R,g,_))},te=(f,h,w,$,T,z,R,g,_)=>{f=f||Ke,h=h||Ke;const C=f.length,K=h.length,W=Math.min(C,K);let G;for(G=0;G<W;G++){const ne=h[G]=_?kt(h[G]):ct(h[G]);k(f[G],ne,w,null,T,z,R,g,_)}C>K?Me(f,T,z,!0,!1,W):v(h,w,$,T,z,R,g,_,W)},he=(f,h,w,$,T,z,R,g,_)=>{let C=0;const K=h.length;let W=f.length-1,G=K-1;for(;C<=W&&C<=G;){const ne=f[C],ie=h[C]=_?kt(h[C]):ct(h[C]);if(Bt(ne,ie))k(ne,ie,w,null,T,z,R,g,_);else break;C++}for(;C<=W&&C<=G;){const ne=f[W],ie=h[G]=_?kt(h[G]):ct(h[G]);if(Bt(ne,ie))k(ne,ie,w,null,T,z,R,g,_);else break;W--,G--}if(C>W){if(C<=G){const ne=G+1,ie=ne<K?h[ne].el:$;for(;C<=G;)k(null,h[C]=_?kt(h[C]):ct(h[C]),w,ie,T,z,R,g,_),C++}}else if(C>G)for(;C<=W;)de(f[C],T,z,!0),C++;else{const ne=C,ie=C,ae=new Map;for(C=ie;C<=G;C++){const Ae=h[C]=_?kt(h[C]):ct(h[C]);Ae.key!=null&&ae.set(Ae.key,C)}let pe,ye=0;const Ue=G-ie+1;let Et=!1,io=0;const Ht=new Array(Ue);for(C=0;C<Ue;C++)Ht[C]=0;for(C=ne;C<=W;C++){const Ae=f[C];if(ye>=Ue){de(Ae,T,z,!0);continue}let Ge;if(Ae.key!=null)Ge=ae.get(Ae.key);else for(pe=ie;pe<=G;pe++)if(Ht[pe-ie]===0&&Bt(Ae,h[pe])){Ge=pe;break}Ge===void 0?de(Ae,T,z,!0):(Ht[Ge-ie]=C+1,Ge>=io?io=Ge:Et=!0,k(Ae,h[Ge],w,null,T,z,R,g,_),ye++)}const lo=Et?Ra(Ht):Ke;for(pe=lo.length-1,C=Ue-1;C>=0;C--){const Ae=ie+C,Ge=h[Ae],ao=Ae+1<K?h[Ae+1].el:$;Ht[C]===0?k(null,Ge,w,ao,T,z,R,g,_):Et&&(pe<0||C!==lo[pe]?ge(Ge,w,ao,2):pe--)}}},ge=(f,h,w,$,T=null)=>{const{el:z,type:R,transition:g,children:_,shapeFlag:C}=f;if(C&6){ge(f.component.subTree,h,w,$);return}if(C&128){f.suspense.move(h,w,$);return}if(C&64){R.move(f,h,w,st);return}if(R===be){o(z,h,w);for(let W=0;W<_.length;W++)ge(_[W],h,w,$);o(f.anchor,h,w);return}if(R===Ko){M(f,h,w);return}if($!==2&&C&1&&g)if($===0)g.beforeEnter(z),o(z,h,w),De(()=>g.enter(z),T);else{const{leave:W,delayLeave:G,afterLeave:ne}=g,ie=()=>o(z,h,w),ae=()=>{W(z,()=>{ie(),ne&&ne()})};G?G(z,ie,ae):ae()}else o(z,h,w)},de=(f,h,w,$=!1,T=!1)=>{const{type:z,props:R,ref:g,children:_,dynamicChildren:C,shapeFlag:K,patchFlag:W,dirs:G}=f;if(g!=null&&Uo(g,null,w,f,!0),K&256){h.ctx.deactivate(f);return}const ne=K&1&&G,ie=!fn(f);let ae;if(ie&&(ae=R&&R.onVnodeBeforeUnmount)&&ut(ae,h,f),K&6)tn(f.component,w,$);else{if(K&128){f.suspense.unmount(w,$);return}ne&&zt(f,null,h,"beforeUnmount"),K&64?f.type.remove(f,h,w,T,st,$):C&&(z!==be||W>0&&W&64)?Me(C,h,w,!1,!0):(z===be&&W&384||!T&&K&16)&&Me(_,h,w),$&&me(f)}(ie&&(ae=R&&R.onVnodeUnmounted)||ne)&&De(()=>{ae&&ut(ae,h,f),ne&&zt(f,null,h,"unmounted")},w)},me=f=>{const{type:h,el:w,anchor:$,transition:T}=f;if(h===be){gt(w,$);return}if(h===Ko){p(f);return}const z=()=>{r(w),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:R,delayLeave:g}=T,_=()=>R(w,z);g?g(f.el,z,_):_()}else z()},gt=(f,h)=>{let w;for(;f!==h;)w=m(f),r(f),f=w;r(h)},tn=(f,h,w)=>{const{bum:$,scope:T,update:z,subTree:R,um:g}=f;$&&En($),T.stop(),z&&(z.active=!1,de(R,f,h,w)),g&&De(g,h),De(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Me=(f,h,w,$=!1,T=!1,z=0)=>{for(let R=z;R<f.length;R++)de(f[R],h,w,$,T)},nn=f=>f.shapeFlag&6?nn(f.component.subTree):f.shapeFlag&128?f.suspense.next():m(f.anchor||f.el),so=(f,h,w)=>{f==null?h._vnode&&de(h._vnode,null,null,!0):k(h._vnode||null,f,h,null,null,null,w),Qr(),Gr(),h._vnode=f},st={p:k,um:de,m:ge,r:me,mt:N,mc:v,pc:Y,pbc:A,n:nn,o:e};let mt,on;return t&&([mt,on]=t(st)),{render:so,hydrate:mt,createApp:Ma(so,mt)}}function At({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Os(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(r))for(let s=0;s<o.length;s++){const i=o[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=kt(r[s]),a.el=i.el),n||Os(i,a)),a.type===Xn&&(a.el=i.el)}}function Ra(e){const t=e.slice(),n=[0];let o,r,s,i,a;const l=e.length;for(o=0;o<l;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Fa=e=>e.__isTeleport,be=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Qe=Symbol.for("v-cmt"),Ko=Symbol.for("v-stc"),gn=[];let nt=null;function B(e=!1){gn.push(nt=e?null:[])}function Va(){gn.pop(),nt=gn[gn.length-1]||null}let mn=1;function Ms(e){mn+=e}function Ls(e){return e.dynamicChildren=mn>0?nt||Ke:null,Va(),mn>0&&nt&&nt.push(e),e}function X(e,t,n,o,r,s){return Ls(q(e,t,n,o,r,s,!0))}function Ie(e,t,n,o,r){return Ls(J(e,t,n,o,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function Bt(e,t){return e.type===t.type&&e.key===t.key}const Zn="__vInternal",zs=({key:e})=>e??null,Jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Ce(e)||oe(e)?{i:Ee,r:e,k:t,f:!!n}:e:null);function q(e,t=null,n=null,o=0,r=null,s=e===be?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zs(t),ref:t&&Jn(t),scopeId:ns,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ee};return a?(Yo(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=xe(n)?8:16),mn>0&&!i&&nt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&nt.push(l),l}const J=Ha;function Ha(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===ds)&&(e=Qe),qn(e)){const a=xt(e,t,!0);return n&&Yo(a,n),mn>0&&!s&&nt&&(a.shapeFlag&6?nt[nt.indexOf(e)]=a:nt.push(a)),a.patchFlag|=-2,a}if(Ga(e)&&(e=e.__vccOpts),t){t=Wa(t);let{class:a,style:l}=t;a&&!xe(a)&&(t.class=$e(a)),ve(l)&&(Wr(l)&&!ee(l)&&(l=we({},l)),t.style=Le(l))}const i=xe(e)?1:la(e)?128:Fa(e)?64:ve(e)?4:oe(e)?2:0;return q(e,t,n,o,r,i,s,!0)}function Wa(e){return e?Wr(e)||Zn in e?we({},e):e:null}function xt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,a=t?Qn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&zs(a),ref:t&&t.ref?n&&r?ee(r)?r.concat(Jn(t)):[r,Jn(t)]:Jn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return J(Xn,null,e,t)}function je(e="",t=!1){return t?(B(),Ie(Qe,null,e)):J(Qe,null,e)}function ct(e){return e==null||typeof e=="boolean"?J(Qe):ee(e)?J(be,null,e.slice()):typeof e=="object"?kt(e):J(Xn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Yo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Yo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Zn in t)?t._ctx=Ee:r===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Ee},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=$e([t.class,o.class]));else if(r==="style")t.style=Le([t.style,o.style]);else if(Sn(r)){const s=t[r],i=o[r];i&&s!==i&&!(ee(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){qe(e,t,7,[n,o])}const Ua=ws();let Ka=0;function Ya(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ua,s={uid:Ka++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ml(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Cs(o,r),emitsOptions:ts(o,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:o.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=na.bind(null,s),e.ce&&e.ce(s),s}let Te=null;const js=()=>Te||Ee;let Xo,Zt,As="__VUE_INSTANCE_SETTERS__";(Zt=vo()[As])||(Zt=vo()[As]=[]),Zt.push(e=>Te=e),Xo=e=>{Zt.length>1?Zt.forEach(t=>t(e)):Zt[0](e)};const Jt=e=>{Xo(e),e.scope.on()},Dt=()=>{Te&&Te.scope.off(),Xo(null)};function Bs(e){return e.vnode.shapeFlag&4}let vn=!1;function Xa(e,t=!1){vn=t;const{props:n,children:o}=e.vnode,r=Bs(e);La(e,n,r,t),Aa(e,o);const s=r?qa(e,t):void 0;return vn=!1,s}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ur(new Proxy(e.ctx,Sa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ja(e):null;Jt(e),Ut();const s=wt(o,e,0,[e.props,r]);if(Kt(),Dt(),yr(s)){if(s.then(Dt,Dt),t)return s.then(i=>{Ds(e,i,t)}).catch(i=>{Nn(i,e,0)});e.asyncDep=s}else Ds(e,s,t)}else Rs(e,t)}function Ds(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=qr(t)),Rs(e,n)}let Ns;function Rs(e,t,n){const o=e.type;if(!e.render){if(!t&&Ns&&!o.render){const r=o.template||Fo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=we(we({isCustomElement:s,delimiters:a},i),l);o.render=Ns(r,c)}}e.render=o.render||et}Jt(e),Ut(),Ia(e),Kt(),Dt()}function Za(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Be(e,"get","$attrs"),t[n]}}))}function Ja(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Za(e)},slots:e.slots,emit:e.emit,expose:t}}function Gn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(qr(Ur(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pn)return pn[n](e)},has(t,n){return n in t||n in pn}}))}function Qa(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ga(e){return oe(e)&&"__vccOpts"in e}const se=(e,t)=>Zl(e,t,vn);function Fs(e,t,n){const o=arguments.length;return o===2?ve(t)&&!ee(t)?qn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),J(e,t,n))}const ec=Symbol.for("v-scx"),tc=()=>jt(ec),nc="3.3.4",oc="http://www.w3.org/2000/svg",Nt=typeof document<"u"?document:null,Vs=Nt&&Nt.createElement("template"),rc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Nt.createElementNS(oc,e):Nt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Vs.innerHTML=o?`<svg>${e}</svg>`:e;const a=Vs.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sc(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ic(e,t,n){const o=e.style,r=xe(n);if(n&&!r){if(t&&!xe(t))for(const s in t)n[s]==null&&qo(o,s,"");for(const s in n)qo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const Hs=/\s*!important$/;function qo(e,t,n){if(ee(n))n.forEach(o=>qo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=lc(e,t);Hs.test(n)?e.setProperty(Ye(o),n.replace(Hs,""),"important"):e[o]=n}}const Ws=["Webkit","Moz","ms"],Zo={};function lc(e,t){const n=Zo[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return Zo[t]=o;o=Pn(o);for(let r=0;r<Ws.length;r++){const s=Ws[r]+o;if(s in e)return Zo[t]=s}return t}const Us="http://www.w3.org/1999/xlink";function ac(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Us,t.slice(6,t.length)):e.setAttributeNS(Us,t,n);else{const s=gl(t);n==null||s&&!kr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function cc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=kr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Qt(e,t,n,o){e.addEventListener(t,n,o)}function uc(e,t,n,o){e.removeEventListener(t,n,o)}function fc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[a,l]=dc(t);if(o){const c=s[t]=gc(o,r);Qt(e,a,c,l)}else i&&(uc(e,a,i,l),s[t]=void 0)}}const Ks=/(?:Once|Passive|Capture)$/;function dc(e){let t;if(Ks.test(e)){t={};let o;for(;o=e.match(Ks);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ye(e.slice(2)),t]}let Jo=0;const pc=Promise.resolve(),hc=()=>Jo||(pc.then(()=>Jo=0),Jo=Date.now());function gc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;qe(mc(o,n.value),t,5,[o])};return n.value=e,n.attached=hc(),n}function mc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Ys=/^on[a-z]/,vc=(e,t,n,o,r=!1,s,i,a,l)=>{t==="class"?sc(e,o,r):t==="style"?ic(e,n,o):Sn(t)?co(t)||fc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_c(e,t,o,r))?cc(e,t,o,s,i,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ac(e,t,o,r))};function _c(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ys.test(t)&&oe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ys.test(t)&&xe(n)?!1:t in e}function bc(e,t){const n=ke(e);class o extends Qo{constructor(s){super(n,s,t)}}return o.def=n,o}const yc=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends yc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Ze(()=>{this._connected||(ri(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let a;if(s&&!ee(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=mo(this._props[l])),(a||(a=Object.create(null)))[Re(l)]=!0)}this._numberProps=a,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Re))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Re(t);this._numberProps&&this._numberProps[o]&&(n=mo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ye(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ye(t),n+""):n||this.removeAttribute(Ye(t))))}_update(){ri(this._createVNode(),this.shadowRoot)}_createVNode(){const t=J(this._def,we({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ye(s)!==s&&o(Ye(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Qo){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const St="transition",_n="animation",Gt=(e,{slots:t})=>Fs(da,wc(e),t);Gt.displayName="Transition";const Xs={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};Gt.props=we({},ss,Xs);const Rt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},qs=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function wc(e){const t={};for(const E in e)E in Xs||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,O=xc(r),k=O&&O[0],j=O&&O[1],{onBeforeEnter:U,onEnter:V,onEnterCancelled:M,onLeave:p,onLeaveCancelled:I,onBeforeAppear:S=U,onAppear:P=V,onAppearCancelled:v=M}=t,D=(E,x,N)=>{Ft(E,x?u:a),Ft(E,x?c:i),N&&N()},A=(E,x)=>{E._isLeaving=!1,Ft(E,d),Ft(E,y),Ft(E,m),x&&x()},H=E=>(x,N)=>{const L=E?P:V,b=()=>D(x,E,N);Rt(L,[x,b]),Zs(()=>{Ft(x,E?l:s),It(x,E?u:a),qs(L)||Js(x,o,k,b)})};return we(t,{onBeforeEnter(E){Rt(U,[E]),It(E,s),It(E,i)},onBeforeAppear(E){Rt(S,[E]),It(E,l),It(E,c)},onEnter:H(!1),onAppear:H(!0),onLeave(E,x){E._isLeaving=!0;const N=()=>A(E,x);It(E,d),Sc(),It(E,m),Zs(()=>{E._isLeaving&&(Ft(E,d),It(E,y),qs(p)||Js(E,o,j,N))}),Rt(p,[E,N])},onEnterCancelled(E){D(E,!1),Rt(M,[E])},onAppearCancelled(E){D(E,!0),Rt(v,[E])},onLeaveCancelled(E){A(E),Rt(I,[E])}})}function xc(e){if(e==null)return null;if(ve(e))return[Go(e.enter),Go(e.leave)];{const t=Go(e);return[t,t]}}function Go(e){return mo(e)}function It(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ft(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Zs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function Js(e,t,n,o){const r=e._endId=++Cc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,m),s()},m=y=>{y.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,m)}function kc(e,t){const n=window.getComputedStyle(e),o=O=>(n[O]||"").split(", "),r=o(`${St}Delay`),s=o(`${St}Duration`),i=Qs(r,s),a=o(`${_n}Delay`),l=o(`${_n}Duration`),c=Qs(a,l);let u=null,d=0,m=0;t===St?i>0&&(u=St,d=i,m=s.length):t===_n?c>0&&(u=_n,d=c,m=l.length):(d=Math.max(i,c),u=d>0?i>c?St:_n:null,m=u?u===St?s.length:l.length:0);const y=u===St&&/\b(transform|all)(,|$)/.test(o(`${St}Property`).toString());return{type:u,timeout:d,propCount:m,hasTransform:y}}function Qs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Gs(n)+Gs(e[o])))}function Gs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}const ei=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>En(t,n):t};function Ic(e){e.target.composing=!0}function ti(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=ei(r);const s=o||r.props&&r.props.type==="number";Qt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=go(a)),e._assign(a)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",Ic),Qt(e,"compositionend",ti),Qt(e,"change",ti))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=ei(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&go(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Tc=["ctrl","shift","alt","meta"],Pc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Tc.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=Pc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Ec={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ni=(e,t)=>n=>{if(!("key"in n))return;const o=Ye(n.key);if(t.some(r=>r===o||Ec[r]===o))return e(n)},er={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):bn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),bn(e,!0),o.enter(e)):o.leave(e,()=>{bn(e,!1)}):bn(e,t))},beforeUnmount(e,{value:t}){bn(e,t)}};function bn(e,t){e.style.display=t?e._vod:"none"}const Oc=we({patchProp:vc},rc);let oi;function Mc(){return oi||(oi=Da(Oc))}const ri=(...e)=>{Mc().render(...e)},Lc={class:"flex justify-between items-end"},zc={class:"inline-block children-pointer-events-auto w-1/3"},jc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Ac={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Bc={class:"inline-block z-20 relative"},si=ke({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(B(),X("div",{class:$e(["fixed top-0 left-0 w-screen h-screen bg-black visible z-[9999999999] text-stone-100 font-sans text-base overflow-auto scrollbar-none overscroll-contain",{"cursor-none":t.idle}])},[Se(t.$slots,"default"),q("div",{id:"controls",class:$e(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[q("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Le({paddingTop:`${t.spaceTop||0}px`})},[Se(t.$slots,"back"),Se(t.$slots,"exit"),Se(t.$slots,"chapter-nav")],4),q("div",Lc,[q("div",zc,[Se(t.$slots,"page-nav")]),q("div",jc,[Se(t.$slots,"reset-zoom")]),q("div",Ac,[Se(t.$slots,"entry"),q("div",Bc,[Se(t.$slots,"settings")]),Se(t.$slots,"full-screen"),Se(t.$slots,"play")])]),q("div",{class:$e(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Se(t.$slots,"progress")],2)],2)],2))}}),Dc=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"}));var ii;const tr=typeof window<"u",Nc=e=>typeof e=="function",Rc=e=>typeof e=="string",$t=()=>{};tr&&((ii=window==null?void 0:window.navigator)!=null&&ii.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function yn(e){return typeof e=="function"?e():Z(e)}function nr(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const li=e=>e();function Fc(e,t={}){let n,o,r=$t;const s=a=>{clearTimeout(a),r(),r=$t};return a=>{const l=yn(e),c=yn(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(a())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(a())},l)})}}function Vc(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,a=$t,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=$t)};return d=>{const m=yn(e),y=Date.now()-r,O=()=>l=d();if(c(),m<=0)return r=Date.now(),O();if(y>m&&(n||!i))r=Date.now(),O();else if(t)return new Promise((k,j)=>{a=o?j:k,s=setTimeout(()=>{r=Date.now(),i=!0,k(O()),c()},m-y)});return!n&&!s&&(s=setTimeout(()=>i=!0,m)),i=!1,l}}function Hc(e=li){const t=Q(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:$o(t),pause:n,resume:o,eventFilter:r}}function Wc(e){return e}function or(e){return Ir()?(_l(e),!0):!1}function We(e,t=200,n={}){return nr(Fc(t,n),e)}function ai(e,t=200,n=!1,o=!0,r=!1){return nr(Vc(t,n,o,r),e)}function ci(e,t=!0){js()?Ve(e):t?e():Ze(e)}var ui=Object.getOwnPropertySymbols,Uc=Object.prototype.hasOwnProperty,Kc=Object.prototype.propertyIsEnumerable,Yc=(e,t)=>{var n={};for(var o in e)Uc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ui)for(var o of ui(e))t.indexOf(o)<0&&Kc.call(e,o)&&(n[o]=e[o]);return n};function Xc(e,t,n={}){const o=n,{eventFilter:r=li}=o,s=Yc(o,["eventFilter"]);return fe(e,nr(r,t),s)}var qc=Object.defineProperty,Zc=Object.defineProperties,Jc=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qc=(e,t)=>{for(var n in t||(t={}))fi.call(t,n)&&pi(e,n,t[n]);if(eo)for(var n of eo(t))di.call(t,n)&&pi(e,n,t[n]);return e},Gc=(e,t)=>Zc(e,Jc(t)),eu=(e,t)=>{var n={};for(var o in e)fi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&eo)for(var o of eo(e))t.indexOf(o)<0&&di.call(e,o)&&(n[o]=e[o]);return n};function tu(e,t,n={}){const o=n,{eventFilter:r}=o,s=eu(o,["eventFilter"]),{eventFilter:i,pause:a,resume:l,isActive:c}=Hc(r);return{stop:Xc(e,t,Gc(Qc({},s),{eventFilter:i})),pause:a,resume:l,isActive:c}}function Vt(e){var t;const n=yn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Tt=tr?window:void 0,nu=tr?window.document:void 0;function Pt(...e){let t,n,o,r;if(Rc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Tt):[t,n,o,r]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,d,m)=>(u.addEventListener(d,m,r),()=>u.removeEventListener(d,m,r)),l=fe(()=>Vt(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(m=>a(u,d,m))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return or(c),c}function hi(e,t=!1){const n=Q(),o=()=>n.value=!!e();return o(),ci(o,t),n}const rr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sr="__vueuse_ssr_handlers__";rr[sr]=rr[sr]||{};const ou=rr[sr];function ru(e,t){return ou[e]||t}function su(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var iu=Object.defineProperty,gi=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t)=>{for(var n in t||(t={}))lu.call(t,n)&&mi(e,n,t[n]);if(gi)for(var n of gi(t))au.call(t,n)&&mi(e,n,t[n]);return e};const cu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function uu(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=Tt,eventFilter:m,onError:y=P=>{console.error(P)}}=o,O=(u?Kl:Q)(t);if(!n)try{n=ru("getDefaultStorage",()=>{var P;return(P=Tt)==null?void 0:P.localStorage})()}catch(P){y(P)}if(!n)return O;const k=yn(t),j=su(k),U=(r=o.serializer)!=null?r:cu[j],{pause:V,resume:M}=tu(O,()=>p(O.value),{flush:s,deep:i,eventFilter:m});return d&&a&&Pt(d,"storage",S),S(),O;function p(P){try{if(P==null)n.removeItem(e);else{const v=U.write(P),D=n.getItem(e);D!==v&&(n.setItem(e,v),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:D,newValue:v,storageArea:n}))))}}catch(v){y(v)}}function I(P){const v=P?P.newValue:n.getItem(e);if(v==null)return l&&k!==null&&n.setItem(e,U.write(k)),k;if(!P&&c){const D=U.read(v);return Nc(c)?c(D,k):j==="object"&&!Array.isArray(D)?vi(vi({},k),D):D}else return typeof v!="string"?v:U.read(v)}function S(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){O.value=k;return}if(!(P&&P.key!==e)){V();try{O.value=I(P)}catch(v){y(v)}finally{P?Ze(M):M()}}}}}function _i({document:e=nu}={}){if(!e)return Q("visible");const t=Q(e.visibilityState);return Pt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,pu=(e,t)=>{var n={};for(var o in e)fu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&du.call(e,o)&&(n[o]=e[o]);return n};function hu(e,t,n={}){const o=n,{window:r=Tt}=o,s=pu(o,["window"]);let i;const a=hi(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=fe(()=>Vt(e),d=>{l(),a.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return or(u),{isSupported:a,stop:u}}function ir(e,t={width:0,height:0},n={}){const{window:o=Tt,box:r="content-box"}=n,s=se(()=>{var l,c;return(c=(l=Vt(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),i=Q(t.width),a=Q(t.height);return hu(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const u=Vt(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),a.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:m})=>d+m,0),a.value=u.reduce((d,{blockSize:m})=>d+m,0)}else i.value=l.contentRect.width,a.value=l.contentRect.height},n),fe(()=>Vt(e),l=>{i.value=l?t.width:0,a.value=l?t.height:0}),{width:i,height:a}}function lr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=Tt}=n,a=hi(()=>i&&"IntersectionObserver"in i);let l=$t;const c=a.value?fe(()=>({el:Vt(e),root:Vt(o)}),({el:d,root:m})=>{if(l(),!d)return;const y=new IntersectionObserver(t,{root:m,rootMargin:r,threshold:s});y.observe(d),l=()=>{y.disconnect(),l=$t}},{immediate:!0,flush:"post"}):$t,u=()=>{l(),c()};return or(u),{isSupported:a,stop:u}}var yi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(yi||(yi={}));function ar(e,t,n={}){const{window:o=Tt}=n;return uu(e,t,o==null?void 0:o.sessionStorage,n)}var gu=Object.defineProperty,wi=Object.getOwnPropertySymbols,mu=Object.prototype.hasOwnProperty,vu=Object.prototype.propertyIsEnumerable,xi=(e,t,n)=>t in e?gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_u=(e,t)=>{for(var n in t||(t={}))mu.call(t,n)&&xi(e,n,t[n]);if(wi)for(var n of wi(t))vu.call(t,n)&&xi(e,n,t[n]);return e};_u({linear:Wc},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function bu(e={}){const{window:t=Tt,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=Q(n),a=Q(o),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ci(l),Pt("resize",l,{passive:!0}),r&&Pt("orientationchange",l,{passive:!0}),{width:i,height:a}}const yu=ke({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Q(null),o=Q(0),r=Q([]),s=se(()=>r.value[o.value]),i=ai(a,500);Ve(()=>{const u=ir(n),d=We(()=>l({width:u.width.value,height:u.height.value}),50);d(),fe(u.width,d),fe(u.height,d)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const d=c();r.value=d.map(({rect:m,text:y})=>{const O=m.top<u.height-m.bottom,k=m.left<u.width-m.right;return{text:y,style:{left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`},textStyle:{left:k?`${m.left-12}px`:void 0,right:k?void 0:`${u.width-m.left}px`,top:O?`${m.bottom+12}px`:`${m.top+20}px`,textAlign:O?void 0:"right",transform:O?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var m;const u=(m=n.value)==null?void 0:m.parentElement;if(!u)return[];const d=[];return u.querySelectorAll("[data-tour]").forEach(y=>{var j;const O=(j=y.getAttribute("data-tour"))==null?void 0:j.trim();if(!(O!=null&&O.length))return;const k=y.getBoundingClientRect();d.push({rect:k,text:O})}),d}return(u,d)=>{var m,y;return B(),X(be,null,[q("div",{class:$e(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),q("div",{ref_key:"root",ref:n,class:"tour",onClick:d[0]||(d[0]=ot((...O)=>Z(i)&&Z(i)(...O),["stop"]))},[s.value?(B(),X("div",{key:o.value,class:"tour__target",style:Le(s.value.style)},null,4)):je("",!0),(B(),X("div",{key:o.value,class:"tour__text",style:Le((m=s.value)==null?void 0:m.textStyle)},Xe(((y=s.value)==null?void 0:y.text)??""),5))],512)],64)}}}),wu=`.tour{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
2
|
+
`,_e=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ci=_e(yu,[["styles",[wu]]]),xu=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),Cu=q("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),ki=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q([]);Ve(async()=>{const l=ir(o),c=We(()=>{s({width:l.width.value,height:l.height.value})},50);c(),fe(l.width,c),fe(l.height,c)});function s(l){var d;const c=(d=o.value)==null?void 0:d.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=i(u,l))}function i(l,c){const u=[],d=[];let m=0,y=0;const O=50,k=25;l.forEach(p=>{var D;const I=(D=p.getAttribute("title"))==null?void 0:D.trim(),S=p.getBoundingClientRect();if(!I||!S.height||!S.width)return;const P=Math.ceil((S.top-10)/O),v=Math.ceil((S.left-10)/O);d.push({isTour:!1,title:I,rect:S,fromX:v,toX:Math.max(v+1,Math.ceil((S.right+10)/O)),fromY:P,toY:Math.max(P+1,Math.ceil((S.bottom+10)/O))})}),d.forEach(p=>{for(let I=p.fromY;I<p.toY;I++){u[I]??(u[I]=[]);for(let S=p.fromX;S<p.toX;S++)u[I][S]=p;p.toY>m+1&&(m=p.toY-1),p.toX>y+1&&(y=p.toX-1)}});let j=y/2;d.forEach(p=>{p.isAlignRight=p.fromX>j});const U=(p,I)=>{u[I]??(u[I]=[]);const S=I>=p.toY;if(p.isTour)for(let P=p.fromX;P<p.toX;P++)delete u[p.fromY][P],p.fromY=I,p.toY=I+(S?1:-1),u[I][P]=p;else{const P=p.isAlignRight?p.fromX-3:p.fromX,v=P+3;p.helpItem={fromX:P,toX:v,fromY:I,toY:I+1,isTour:!0,isAlignRight:p.isAlignRight};for(let D=P;D<v;D++)u[I][D]=p.helpItem}},V=(p,I)=>{if(I>m||I<0)return!1;const S=I>=p.toY,P=u[I];if(!P)return U(p,I),!0;const v=P[p.fromX];if(v&&!v.isTour)return!1;if(v&&v.isTour)return V(v,S?I+1:I-1)?(U(p,I),!0):!1;if(!v){const D=p.isAlignRight?-1:1;return P[p.fromX+D]||P[p.fromX+D*2]?V(p,S?I+1:I-1):(U(p,I),!0)}return!1};d.forEach(p=>{if(!V(p,p.toY)){if(p.isAlignRight){const I=u[p.fromY]??[];if(!I.slice(p.fromX-3,p.fromX).filter(Boolean).length){const P=p.fromX-3,v=p.fromX;p.helpItem={isTour:!0,isAlignRight:!0,fromX:P,toX:v,fromY:p.fromY,toY:p.toY};for(let D=p.fromX-3;D<p.fromX;D++)I[D]=p.helpItem;return}}V(p,p.fromY-1)}});const M=[];return d.forEach(p=>{const{title:I,helpItem:S,rect:P,isAlignRight:v,fromX:D,fromY:A,toY:H}=p;if(!I||!S||!P)return;const E=S.fromY>=H,x=S.toY<=A;M.push({title:a(I),style:{top:E?`${P.bottom+(S.fromY-H)*O+k}px`:x?void 0:`${P.top+8}px`,bottom:x?`${c.height-P.top+(S.toY-A)*O+k}px`:void 0,left:v?void 0:`${P.left}px`,right:v?E?`${c.width-P.right}px`:`${c.width-P.right+P.width+k}px`:void 0},arrowStyle:{width:x||E?"2px":`${Math.abs(S.toX-D)*O+k-5}px`,height:x||E?`${(E?S.fromY-H:A-S.toY)*O+k}px`:"2px",top:E?`${P.bottom}px`:x?void 0:`${P.top+20}px`,bottom:x?`${c.height-P.top}px`:void 0,left:v?void 0:`${P.left+P.width/2}px`,right:v?E?`${c.width-P.right+P.width/2}px`:`${c.width-P.right+P.width}px`:void 0}})}),M}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(B(),X(be,null,[Cu,q("div",{ref_key:"root",ref:o,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=ot(u=>t("hide"),["stop"]))},[(B(!0),X(be,null,dn(r.value,u=>(B(),X(be,{key:u.title},[q("div",{class:"absolute",style:Le(u.style)},Xe(u.title),5),q("div",{class:"absolute bg-stone-300 rounded-lg",style:Le(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),ku=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),Su={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},$u=[q("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[q("circle",{cx:"14",cy:"14",r:"12"}),q("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Tu(e,t){return B(),X("svg",Iu,$u)}const Si=_e(Su,[["render",Tu]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Eu={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},Ou={class:"block w-4 h-4"},Mu={class:"w-12"},Ii=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Si;return t.zoom!==1?(B(),X("button",Eu,[q("div",Ou,[J(o)]),q("div",Mu,Xe(Math.ceil(t.zoom*100))+"%",1)])):je("",!0)}}}),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),zu={},ju={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Au=[q("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Bu(e,t){return B(),X("svg",ju,Au)}const cr=_e(zu,[["render",Bu]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),Nu={},Ru={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Fu=[q("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),q("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Vu(e,t){return B(),X("svg",Ru,Fu)}const ur=_e(Nu,[["render",Vu]]),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"}));function Wu({touchDevice:e}){const t=Q(!1);let n=0;return Yn("busy:touchDevice",e),Yn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function fr(){const e=jt("busy:touchDevice"),t=jt("setBusyState");let n=!1;return He(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Uu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(l,20);a();function a(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function l(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},en={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Uu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Ku={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},to=ke({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=fr();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>at((B(),Ie(Ca(l.href?"a":"button"),Qn(l.href?{href:l.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":l.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!l.disabled,"bg-black bg-opacity-50":!l.transparent}],onClick:ot(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:re(()=>[q("div",Ku,[Se(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[Z(en),l.disabled?0:15]])}}),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:to},Symbol.toStringTag,{value:"Module"})),Xu={},qu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Zu=[q("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Ju(e,t){return B(),X("svg",qu,Zu)}const $i=_e(Xu,[["render",Ju]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"}));class Gu{constructor(){rl(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function ef(){const e=new Gu;return He(()=>e.dispose()),Yn("keyController",e),e}function no(e){const t=jt("keyController");Ve(()=>t.addListener(e)),He(()=>t.removeListener(e))}const tf={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},nf={class:"text-xl font-medium text-ellipsis overflow-hidden whitespace-nowrap px-3"},of={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ti=ke({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;no({onKeyDown:r});const o=fr();fe(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const a=$i,l=to;return B(),X("div",{class:$e(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[J(Gt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:re(()=>[n.modelValue?(B(),X("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=ot(()=>{},["stop"]))},[q("div",tf,[J(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:re(()=>[J(a)]),_:1}),q("div",nf,Xe(s.name),1),Se(s.$slots,"actions")]),q("div",of,[Se(s.$slots,"default")])])):je("",!0)]),_:3})],2)}}}),rf=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),sf=["min","max","step"],lf={class:"flex-shrink-0"},Pi=_e(ke({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=se({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(B(),X("div",{class:$e(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Le({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[at(q("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,sf),[[$c,o.value]]),q("p",lf,[Se(r.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
3
|
+
`]]]),af=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),cf={class:"flex items-center mb-8 last:mb-0"},uf={class:"flex-grow overflow-hidden"},Ei=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(B(),X("div",cf,[q("div",{class:$e(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),q("div",uf,[Se(t.$slots,"default")])]))}}),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),df=["onClick","onKeyup"],Oi=ke({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q({width:"",left:""});Ve(()=>{let i=!1;fe(()=>n.modelValue,a=>{var c;const l=(c=o.value)==null?void 0:c.children[a+1];l&&(r.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,a)=>(B(),X("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[q("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Le(r.value)},null,4),(B(!0),X(be,null,dn(n.items,(l,c)=>at((B(),X("div",{key:c,tabindex:"0",class:$e(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[ni(()=>s(c),["enter"]),ni(()=>s(c),["space"])]},[Ct(Xe(l),1)],42,df)),[[Z(en),30]])),128))],512))}}),pf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),hf={},gf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},mf=[q("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function vf(e,t){return B(),X("svg",gf,mf)}const Mi=_e(hf,[["render",vf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),bf={},yf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},wf=[q("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),q("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function xf(e,t){return B(),X("svg",yf,wf)}const Li=_e(bf,[["render",xf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function kf(e){if(e)try{return JSON.parse(e)}catch{return}}function Sf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var rt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(rt||{}),ht=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(ht||{});const If=.25,$f=5,Tf=.25,wn=.25,xn=5,Pf=.05,Ef=0,Of=4;function Mf(e){var U,V,M,p,I;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Sf(t.value):location.hostname),r=Q(Lf(`tkr:${o.value}`)),s=S=>{r.value=S;const P=`tkr:${o.value}`;!S||!Object.keys(S).length?localStorage.removeItem(P):localStorage.setItem(P,JSON.stringify(S))},i=S=>{if(!r.value){s(S);return}const P={...r.value};Object.entries(S).forEach(([v,D])=>{D===void 0?delete P[v]:P[v]=D}),s(P)},a=Q(((U=r.value)==null?void 0:U.style)??ht.longStrip),l=Q(((V=r.value)==null?void 0:V.direction)??rt.vertical),c=Q((M=r.value)==null?void 0:M.gap),u=Q(((p=r.value)==null?void 0:p.speed)??1),d=Q(((I=r.value)==null?void 0:I.zoom)??1),m=se({get(){return n.value?ht.longStrip:a.value??ht.longStrip},set:S=>{a.value=S,i({style:S===ht.longStrip?void 0:S}),S!==ht.longStrip&&l.value===rt.vertical&&(y.value=rt.rtl)}}),y=se({get:()=>n.value?rt.vertical:l.value,set:S=>{l.value=S,i({direction:S===rt.vertical?void 0:S})}}),O=se({get:()=>c.value??(n.value?0:1),set(S){c.value=S,i({gap:S})}}),k=se({get:()=>u.value,set(S){u.value=S,i({speed:S===1?void 0:S})}}),j=se({get:()=>d.value,set(S){d.value=S,i({zoom:S===1?void 0:S})}});return{direction:y,style:m,gap:O,speed:k,zoom:j,isLongStrip:se(()=>m.value===ht.longStrip),isDouble:se(()=>m.value===ht.double),isRTL:se(()=>y.value===rt.rtl),isVertical:se(()=>y.value===rt.vertical)}}function Lf(e){const t=localStorage.getItem(e),n=kf(t),o={};return n?(n.style!==void 0&&Object.values(ht).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(rt).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Ef&&n.gap<=Of&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=wn&&n.speed<=xn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=wn&&n.zoom<=xn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const zi=ke({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=Q(!1),r=se(()=>n.name??location.hostname);no({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(o.value=!o.value)}});function s(a){t("update:zoom",Math.round(a)/100)}function i(){o.value=!1,t("help")}return(a,l)=>{const c=Li,u=to,d=Mi,m=Oi,y=Ei,O=Pi,k=Ti;return B(),X(be,null,[J(u,{title:"Reader settings (S)",disabled:a.disabled,onClick:l[0]||(l[0]=()=>o.value=!0)},{default:re(()=>[J(c)]),_:1},8,["disabled"]),J(k,{modelValue:o.value,"onUpdate:modelValue":l[5]||(l[5]=j=>o.value=j),name:r.value},{actions:re(()=>[J(u,{transparent:"",onClick:i},{default:re(()=>[J(d)]),_:1})]),default:re(()=>[J(y,{label:"Style"},{default:re(()=>[J(m,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":l[1]||(l[1]=j=>t("update:reader-style",j))},null,8,["model-value","items"])]),_:1}),J(y,{label:"Direction"},{default:re(()=>[J(m,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":l[2]||(l[2]=j=>t("update:direction",j))},null,8,["model-value","items"])]),_:1}),J(y,{label:"Gap"},{default:re(()=>[J(m,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":l[3]||(l[3]=j=>t("update:gap",j))},null,8,["model-value"])]),_:1}),J(y,{label:"Speed"},{default:re(()=>[J(O,{"model-value":a.speed,min:Z(If),max:Z($f),step:Z(Tf),suffix:"x","onUpdate:modelValue":l[4]||(l[4]=j=>t("update:speed",j))},{suffix:re(()=>[Ct(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),J(y,{label:"Zoom"},{default:re(()=>[J(O,{"model-value":Math.ceil(a.zoom*100),min:Z(wn)*100,max:Z(xn)*100,step:Z(Pf)*100,"onUpdate:modelValue":s},{suffix:re(()=>[Ct(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),zf=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),jf={},Af={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Bf=[q("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Df(e,t){return B(),X("svg",Af,Bf)}const ji=_e(jf,[["render",Df]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Rf={},Ff={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Vf=[q("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Hf(e,t){return B(),X("svg",Ff,Vf)}const Ai=_e(Rf,[["render",Hf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Uf={},Kf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yf=[q("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),q("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),q("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Xf(e,t){return B(),X("svg",Kf,Yf)}const Bi=_e(Uf,[["render",Xf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Zf={},Jf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qf=[q("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),q("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),q("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Gf(e,t){return B(),X("svg",Jf,Qf)}const Di=_e(Zf,[["render",Gf]]),ed=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),td={},nd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},od=[q("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function rd(e,t){return B(),X("svg",nd,od)}const Ni=_e(td,[["render",rd]]),sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),id=["aria-hidden"],ld=["onClick"],ad=["onClick"],cd={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"},ud={class:"whitespace-nowrap"},dr=ke({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q(!1),s=Q(null),i=Q(!1),a=Q(!1),l=Q(!1);no({onKeyDown:y});const c=fr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),Ze(()=>setTimeout(()=>{var p,I;(I=(p=s.value)==null?void 0:p.children[n.modelValue])==null||I.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),k(o.value)):setTimeout(j,250)}function d(){const p=o.value;if(p){const I=p.getBoundingClientRect(),S=I.x+I.width/2;i.value=I.y>window.innerHeight/2,a.value=S<window.innerWidth/3,l.value=S>window.innerWidth/3*2}}function m(p){p!=n.modelValue&&t("update:modelValue",p),u()}function y(p){r.value&&p.key==="Escape"&&(u(),p.preventDefault())}let O=[];function k(p){const I=window.getComputedStyle(p).zIndex,S=p.style.zIndex;(!I||!(+I>0))&&((!p.parentElement||p.parentElement.childElementCount>1)&&(p.style.zIndex="1",O.push({el:p,zIndex:S})),p.parentElement&&k(p.parentElement))}function j(){O.forEach(({el:p,zIndex:I})=>{p.style.zIndex=I??""}),O=[]}let U=!1;function V(){U||(U=!0,c(!0,{desktopOnly:!0}))}function M(){U&&(U=!1,c(!1,{desktopOnly:!0}))}return(p,I)=>{const S=Ni;return B(),X("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(B(),X("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):je("",!0),p.items.length?(B(),Ie(Gt,{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:re(()=>[r.value?(B(),X("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:$e(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:I[0]||(I[0]=ot(()=>{},["stop"]))},[(B(!0),X(be,null,dn(p.items,(P,v)=>at((B(),X("li",{key:v,tabindex:"-1",class:$e(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":v===p.modelValue}]),onClick:()=>m(v)},[q("div",{class:$e(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},[Se(p.$slots,"item",{item:P},()=>[Ct(Xe(P),1)])],2)],10,ld)),[[Z(en),30]])),128))],42,id)):je("",!0)]),_:3})):je("",!0),at((B(),X("button",Qn({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":p.disabled}]},p.title?{title:p.title}:{},{onClick:ot(u,["stop"]),onMouseenter:V,onMouseleave:M}),[q("div",cd,[q("span",ud,Xe(p.label),1),p.items.length?(B(),X("span",{key:0,class:$e(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[J(S)],2)):je("",!0)])],16,ad)),[[Z(en),30]])],512)}}}),fd=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),Ri=ke({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=se(()=>n.pages.map(l=>l.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const l=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:d})=>d===l));return c===-1?n.pages.length-1:c}),s=se(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function i(l){const c=n.pages[l][0].index;a(c)}function a(l){t("update:modelValue",l)}return(l,c)=>{const u=dr;return B(),Ie(u,{"model-value":r.value,label:s.value,title:"Current page",items:o.value,disabled:l.disabled,"onUpdate:modelValue":i},null,8,["model-value","label","items","disabled"])}}}),dd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),pd={},hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gd=[q("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function md(e,t){return B(),X("svg",hd,gd)}const Fi=_e(pd,[["render",md]]),vd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),_d={},bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yd=[q("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function wd(e,t){return B(),X("svg",bd,yd)}const Vi=_e(_d,[["render",wd]]),xd=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Cd={},kd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Sd=[q("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 Id(e,t){return B(),X("svg",kd,Sd)}const Hi=_e(Cd,[["render",Id]]),$d=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),Td={},Pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ed=[q("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 Od(e,t){return B(),X("svg",Pd,Ed)}const Wi=_e(Td,[["render",Od]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),Ui=_e(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Q(0);return fe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=cr,i=ur;return n.value?(B(),X("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?(B(),Ie(s,{key:0})):(B(),Ie(i,{key:1}))])):je("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
4
|
+
`]]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),zd={},jd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ad=[q("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 Bd(e,t){return B(),X("svg",jd,Ad)}const Ki=_e(zd,[["render",Bd]]),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),Yi=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=ar("tk:dir",null,{writeDefaults:!1,serializer:{read(r){return r===""||+r!==t.direction},write(r){return r?"":t.direction+""}}}),o=We(()=>n.value=!1,1250);return fe(()=>t.direction,()=>{n.value=!0,o()}),Ve(()=>{o();let r;const s=_i();fe(s,i=>{i!=="visible"?r=Date.now():Date.now()-r>3e4&&(n.value=!0,o())})}),(r,s)=>{const i=Ki;return B(),Ie(Gt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:re(()=>[Z(n)?(B(),X("div",{key:0,class:$e(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":r.direction===Z(rt).vertical,"rotate-180":r.direction===Z(rt).rtl}])},[J(i)],2)):je("",!0)]),_:1})}}}),Nd=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),oo=[];function Rd(e){oo.push(e),He(()=>{const t=oo.indexOf(e);t!==-1&&oo.splice(t,1)})}function Fd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;oo.forEach(i=>i(r,s))}const Vd=["onClick"],Xi=ke({__name:"ZoomWrapper",props:{modelValue:{},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","dragEnd","click"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q(Math.min(xn,Math.max(wn,n.modelValue))),s=Q(!1),i=Q(!1),a=Q(!1),l=Q(!1);fe(()=>n.modelValue,b=>L(b)),Ve(()=>{n.touchDevice?(Pt(window,"touchstart",V),Rd(H)):(Pt(o,"mousedown",O),fe(()=>n.horizontal,b=>{b?window.addEventListener("wheel",S,{passive:!1}):window.removeEventListener("wheel",S)},{immediate:!0}))}),He(()=>{window.removeEventListener("wheel",S)});let c;no({onKeyDown:b=>{var te;if(n.busy)return;(te=o.value)==null||te.focus();const F=b.key==="Meta",Y=b.key==="Control";if(F||Y)s.value=!0,window.addEventListener("wheel",d,{passive:!1}),c=()=>{s.value=!1,window.removeEventListener("wheel",d),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c);else if(b.ctrlKey||b.metaKey)switch(b.key){case"0":L(1);break;case"-":L(r.value-.2),b.preventDefault();break;case"=":case"+":L(r.value+.2),b.preventDefault();break}},onKeyUp:()=>{s.value==!0&&(c==null||c())}});function u(b){a.value!==b&&(a.value=b,b?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function d(b){b.stopPropagation(),b.preventDefault();const F=Math.ceil((r.value+b.deltaY*-.01)*100)/100;L(F,{x:b.clientX,y:b.clientY})}let m={x:0,y:0},y={x:0,y:0};function O(b){b.button===0&&(m={x:b.clientX,y:b.clientY},y={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",k),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",k),setTimeout(()=>u(!1))},{once:!0}),b.preventDefault(),b.stopPropagation())}function k(b){u(!0);const F=b.clientX-m.x,Y=b.clientY-m.y,te=o.value;te.scrollLeft=y.x-F,te.scrollTop=y.y-Y}let j=!1,U={distance:0,zoom:r.value,x:0,y:0};function V(b){n.busy||(j=b.touches.length===2,j&&(u(!0),b.stopPropagation(),b.preventDefault(),U={distance:P(b),zoom:r.value,x:(b.touches[0].clientX+b.touches[1].clientX)/2,y:(b.touches[0].clientY+b.touches[1].clientY)/2}),(j||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",p),window.addEventListener("touchend",M,{once:!0})))}function M(){if(window.removeEventListener("touchmove",p),j){u(!1),j=!1;return}if(!a.value)return;const b=We(()=>{u(!1),o.value.removeEventListener("scroll",Y)},100),F=setTimeout(b,100);o.value.addEventListener("scroll",Y);function Y(){clearTimeout(F),b()}}function p(b){if(u(!0),j){b.stopPropagation(),b.preventDefault();const Y=P(b)/U.distance;L(Math.ceil(Y*U.zoom*100)/100,U)}}const I=We(()=>i.value=!1,100);function S(b){n.busy||(i.value||(i.value=!0),I(),b.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=b.deltaY*(n.rtl?-1:1)),b.preventDefault()))}function P(b){return Math.hypot(b.touches[0].clientX-b.touches[1].clientX,b.touches[0].clientY-b.touches[1].clientY)}let v=0,D;function A(b){if(!a.value){if(!n.touchDevice){t("click",b);return}v++,D&&clearTimeout(D),v===2&&H(b.clientX,b.clientY),D=setTimeout(()=>{!a.value&&v===1&&t("click",b),D=void 0,v=0},300)}}function H(b,F){if(!v)return;v=0;const Y=r.value===1?2:1;L(Y,{x:b,y:F})}let E;const x=We(()=>{l.value=!1,E=void 0},150);function N(){if(!l.value){const b=o.value;if(!b)return;const F=b.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;F&&(E={el:F,rect:F.getBoundingClientRect()},l.value=!0)}if(E)return x(),E}async function L(b,F){const Y=o.value,te=Math.min(xn,Math.max(wn,b));if(!Y||r.value===te)return;const he=N();if(!he)return;const ge=(F==null?void 0:F.x)??Y.clientWidth/2,de=(F==null?void 0:F.y)??Y.clientHeight/2;r.value=te,t("update:modelValue",te),await Ze();const{el:me,rect:gt}=he,tn=me.offsetWidth/gt.width,Me=me.offsetHeight/gt.height;Y.scrollLeft=me.offsetLeft-gt.left*tn+ge*(tn-1),Y.scrollTop=me.offsetTop-gt.top*Me+de*(Me-1)}return(b,F)=>(B(),X("div",{ref_key:"root",ref:o,tabindex:"0",class:$e(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!b.longStrip&&(a.value||i.value||l.value),"cursor-grabbing":a.value,"overflow-hidden":l.value}]),style:Le({"font-size":`${r.value}px`}),onClick:ot(A,["stop"])},[Se(b.$slots,"default")],14,Vd))}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"})),qi=ke({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=Q(null),o=Q(!1);return Ve(async()=>{await Ze();let r=!1;lr(n,s=>{o.value=s.some(i=>i.isIntersecting),o.value&&!r&&t("visible")})}),(r,s)=>(B(),X("div",{ref_key:"root",ref:n},[Se(r.$slots,"default",{visible:o.value})],512))}}),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"})),Ud=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
|
|
5
|
+
`,Kd={},Yd={class:"loading-indicator"};function Xd(e,t){return B(),X("div",Yd)}const pr=_e(Kd,[["render",Xd],["styles",[Ud]]]),qd=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"})),Zd={key:0,class:"page--loading"},Jd=["src"],Qd=["src"],Gd=["data-index"],Zi=_e(ke({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=Q(null),r=se(()=>{var M;return(M=o.value)==null?void 0:M.$el}),s=Q(null),i=ir(r),a=se(()=>{const{width:M,height:p}=i,I=n.isLongStrip?n.isVertical?M.value:p.value:Math.min(M.value,p.value);return Math.min(4,Math.max(1,Math.ceil(I/400-1)))*n.gap}),l=Q(n.pageIndex),c=Q(n.pageIndex+3);let u=n.pageIndex,d=n.pageIndex;const m=We(j,50);fe(()=>n.pageIndex,()=>{u>n.pageIndex&&(u=n.pageIndex)});const y=se(()=>{const{width:{value:M},height:{value:p}}=i;return n.pages.map(I=>{var N;const S=I.some(L=>{var b;return(b=L.img)==null?void 0:b.isLoading}),P=I.map(L=>L.index),v={isLoading:S,indexes:P};if(S||P[P.length-1]<l.value-1||P[0]>c.value+2)return v;const D=I.map(({img:L})=>L).filter(Boolean);if(!D.length||(v.srcs=D.map(({src:L})=>L),D.every(L=>L.hasError)))return v;const H=(N=D.find(L=>!L.hasError))==null?void 0:N.size,E=D.reduce((L,b)=>{var F;return L+(((F=b.size)==null?void 0:F.width)??H.width)},0),x=D.reduce((L,b)=>{var F;return L+(((F=b.size)==null?void 0:F.height)??H.height)},0)/D.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&M/E<p/x?(v.width=Math.min(M,E),v.height=x*v.width/E):v.height=Math.min(p,x),v})}),O=se(()=>{const M=n.isVertical?"width":"height";return y.value.map(p=>p[M]).filter(Boolean).sort((p,I)=>I-p)[0]});function k(M){const p=M.indexes[M.indexes.length-1];p!==void 0&&d<p&&(d=p),m()}function j(){l.value!==u&&(l.value=u),c.value!==d&&(c.value=d)}function U(){n.isLongStrip?j():m()}function V(M){if(!n.isLongStrip){const p=n.isVertical?i.height.value:i.width.value,S=(n.isVertical?M.clientY:n.isRTL?p-M.clientX:M.clientX)/p;if(S<=.2){t("prev");return}else if(S>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(M,p)=>{const I=pr,S=qi,P=Xi;return B(),Ie(P,{ref_key:"root",ref:o,"model-value":M.zoom,"page-index":M.pageIndex,class:$e(["reader-body",{"reader-body--long-strip":M.isLongStrip,"reader-body--pages":!M.isLongStrip,"reader-body--vertical":M.isVertical,"reader-body--rtl":M.isRTL,"reader-body--idle":M.idle}]),"play-controller":M.playController,horizontal:!M.isVertical,rtl:M.isRTL,"touch-device":M.touchDevice,busy:M.busy,"long-strip":M.isLongStrip,style:Le({"--gap":`${a.value}em`,"--space-top":(M.spaceTop||0)+"em","--screen-width-em":Z(i).width.value+"em","--screen-height-em":Z(i).height.value+"em",...M.isLongStrip?{"--max-size-em":O.value+"em"}:{}}),"onUpdate:modelValue":p[0]||(p[0]=v=>t("update:zoom",v)),onDragEnd:p[1]||(p[1]=()=>t("dragEnd")),onClick:V,onScroll:U},{default:re(()=>[(B(!0),X(be,null,dn(y.value,v=>(B(),Ie(S,Qn({key:M.direction+"_"+v.indexes[0],"data-index":v.indexes[0]},v.indexes.length>1?{"data-index2":v.indexes[1]}:{},{onVisible:()=>k(v)}),{default:re(({visible:D})=>{var A;return[!((A=v.srcs)!=null&&A.length)||v.isLoading?(B(),X("div",Zd,[at(J(I,null,null,512),[[er,D]])])):v.srcs.length==1?(B(),X("img",{key:1,src:v.srcs[0],style:Le({height:v.height!==void 0?v.height+"em":""})},null,12,Jd)):(B(),X("div",{key:2,class:$e(["page--double",{"flex-row-reverse":M.isRTL}]),style:Le({width:v.width!==void 0?v.width+"em":"",height:v.height!==void 0?v.height+"em":""})},[(B(!0),X(be,null,dn(v.srcs,H=>(B(),X("div",{key:H},[q("img",{src:H},null,8,Qd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),q("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":M.totalImgs},[Se(M.$slots,"end")],8,Gd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:var(--screen-height-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:var(--screen-width-em)}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
6
|
+
`]]]),ep=Object.freeze(Object.defineProperty({__proto__:null,default:Zi},Symbol.toStringTag,{value:"Module"})),tp={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},np={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},op={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Ji=_e(ke({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=Q(null),o=Q(null),r=Q(!1),s=Q(!1),i=Q(3);return Ve(()=>{let a;lr(o,l=>{s.value=l.some(c=>c.isIntersecting),i.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{i.value-=1,i.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),lr(n,l=>{r.value=l.some(c=>c.isIntersecting)}),He(()=>a&&clearInterval(a))}),(a,l)=>(B(),X("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[at(q("div",tp,[a.hasNext?(B(),X("div",np,[s.value?(B(),X("div",op)):je("",!0),at((B(),X("button",{ref_key:"nextButton",ref:o,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[0]||(l[0]=ot(()=>t("next"),["stop"]))},[Ct(" Next in "+Xe(i.value),1)])),[[Z(en)]])])):je("",!0),at((B(),X("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[1]||(l[1]=ot(()=>t("hide"),["stop"]))},[Ct(" Hide ")])),[[Z(en)]])],512),[[er,r.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
7
|
+
`]]]),rp=Object.freeze(Object.defineProperty({__proto__:null,default:Ji},Symbol.toStringTag,{value:"Module"}));async function Cn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const s=await Cn(e-1,t,n);r(s)},t)})}function ro(e=0){return new Promise(t=>setTimeout(t,e))}const sp=3;function ip(e){var A,H,E;const t=((H=(A=e.raw.value)==null?void 0:A.imgs)==null?void 0:H.filter(Boolean))??[];let n=!!t.length;const o=Q(t),r=ln({}),s=[],i=new WeakMap,a=Date.now();let l=!0,c=0,u=0,d,m=[],y=n?up(t):void 0;const O=Q((E=e.raw.value)==null?void 0:E.isWebtoon),k=Q(O.value===void 0||y===void 0),j=We(v,100),U=We(p,50);k.value?n?p():S():Ze(()=>setTimeout(()=>V(y),10)),fe(()=>{var x;return(x=e.raw.value)==null?void 0:x.imgs},x=>{x&&x!==o.value&&(n=!0,M(x))}),He(()=>{l=!1,s.forEach(x=>URL.revokeObjectURL(x))});async function V(x){k.value=!1,await Ze(),e.onReady(x),fe(()=>Math.floor(e.page.value),async(N,L)=>{el({contentEl:d,imgEls:m,page:N,smooth:!0}),L??(L=-1),N!==L&&(c=Math.max(0,c-Math.abs(N-L))),U()},{immediate:!0})}function M(x,N){(x.length!==o.value.length||x.some((L,b)=>o.value[b]!==L))&&(N&&(m=N),o.value=x,U(),y!==void 0&&k.value&&O.value!==void 0&&o.value.some(Boolean)&&V(y))}function p(){const x=Math.floor(e.page.value),N=L=>{c>sp||I(L)};for(let L=x;L<o.value.length;L++)N(L);for(let L=x-1;L>=0;L--)N(L)}async function I(x){const N=o.value[x];if(!(!l||!N||r[N])){if(!r[N]){r[N]={src:N,isLoading:!0,hasError:!1},c++;const L=await cp(N);if(r[N]={src:N,size:L,isLoading:!1,hasError:!L},c=Math.max(0,c-1),L&&!O.value&&x>Math.min(1,o.value.length-2)){const b=L.height/L.width>2.5;O.value!==b&&(O.value=b)}k.value&&O.value!==void 0&&y!==void 0&&V(y)}U()}}function S(){let x=!1;const N=new MutationObserver(()=>{d&&j(d)});He(async()=>{N.disconnect();const L=e.page.value;await ro(),el({contentEl:d,imgEls:m,page:L})}),P(L=>{d!==L&&(d=L,N.disconnect(),N.observe(d,{childList:!0,subtree:!0}),x?j(d):(x=!0,v(d)))})}async function P(x){var te;const N=(te=e.spec)==null?void 0:te.content;if(!N){x(document.body);return}const L=await lp(e.spec);let b=N?await Cn(L?100:1,10,()=>document.querySelector(N)):void 0;if(!b)return;x(b);let F=0;const Y=async()=>{if(l&&!(b!=null&&b.isConnected)&&!n){if(F=0,b=await Cn(50,20,()=>{const he=document.querySelector(N);return he!=null&&he.isConnected&&he!==b?he:void 0}),!b)return;x(b)}!l||n||++F>=10||setTimeout(Y,200)};setTimeout(Y,200)}async function v(x){var Y;if(!l||!x.isConnected||n)return;const N=Date.now();u=N;let L,b;const F=(Y=e.spec)==null?void 0:Y.imgDivs;if(F){if(b=Array.from(x.querySelectorAll(F)),L=await Promise.all(b.map(async(te,he)=>{const ge=Array.from(te.querySelectorAll("img,canvas"));for(const de of ge){const me=await D({ts:N,el:de,index:he,total:b.length,onImgLoad:()=>j(x)});if(me)return me}})),!l||!x.isConnected||u!==N||n)return}else{const te=Array.from(x.querySelectorAll("img,canvas")),he=await Promise.all(te.map((de,me)=>D({ts:N,el:de,index:me,total:te.length,onImgLoad:()=>j(x)})));if(!l||!x.isConnected||u!==N||n)return;b=te.filter((de,me)=>he[me]),L=he.filter(Boolean);const ge=L.filter((de,me)=>de&&me!==L.lastIndexOf(de));ge.length&&(L=L.filter(de=>de&&!ge.includes(de)))}!e.raw.value&&!L.some(Boolean)&&e.onError("no_img"),y??(y=Gi(b)),M(L,b)}async function D({ts:x,el:N,index:L,total:b,onImgLoad:F}){const Y=i.get(N);let te,he;if(N.tagName.toLowerCase()==="canvas"){if(Y)return Y.src;te=await Qi(N)}else{if(N._tkLoadId_!==a&&(N._tkLoadId_=a,N.addEventListener("load",F),He(()=>{N._tkLoadId_===a&&delete N._tkLoadId_,N.removeEventListener("load",F)})),he=fp(N),!he)return;if(he===(Y==null?void 0:Y.originalSrc))return Y.src;if(te=await ap(N,he),!l||u!==x)return;if(O.value===void 0&&L>Math.min(1,b-2)){const de=+(N.getAttribute("width")??0),me=+(N.getAttribute("height")??0);de&&me&&(O.value=me/de>2.5)}}return te&&(i.set(N,{src:te,originalSrc:he}),te.startsWith("blob:")&&s.push(te)),te}return{isLoading:se(()=>k.value),asyncImgs:se(()=>o.value.map(x=>x?r[x]:void 0)),isWebtoon:se(()=>O.value??!1)}}async function lp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await Cn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const s=i=>i.preventDefault();r.addEventListener("click",s),He(()=>{delete r._tkDirty_,r.removeEventListener("click",s)})}return r.click(),await ro(),!0}function Qi(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function ap(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await Qi(o)}function cp(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({width:r,height:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function up(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Gi(n)}function Gi(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:Math.floor(-o/n.height*100)/100)}return 0}function fp(e){const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const s of o){if(s!=="data-url"&&s!=="data-original"&&!s.includes("src"))continue;const i=e.getAttribute(s);if(i)return s==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function el({contentEl:e,imgEls:t,page:n,smooth:o}){var a;const r=n>=t.length,s=o?"smooth":"instant";if(r){(a=t[t.length-1])==null||a.scrollIntoView({block:"end",behavior:s});return}const i=t[Math.floor(n)];i&&setTimeout(()=>{const l=hr(e??document.documentElement);if(l){const c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l.scrollTo({top:c,behavior:s})}else i.scrollIntoView({block:"start",behavior:s})})}function hr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?hr(document.documentElement)??e:e:hr(e.parentElement??void 0)}function dp(e,t){return se(()=>t.value?tl(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function tl(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...tl(e.slice(r.length),t+r.length)]}function pp(e){const t=typeof e=="number"?Math.max(0,e):0,n=sessionStorage.getItem("tk:page:path");return n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page")),ar("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function hp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const gr=40;function gp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:a,interferePlayer:l,onChangedPage:c}){let u=!1,d=!1,m;const y=We(p,300),O=ai(()=>{p(),y()},300),k=We(()=>d=!0,100);function j(){let A=null;ca(async()=>{a.value&&a.value!==A&&(A=a.value,V(e.value),A==null||A.removeEventListener("scroll",O),a.value.addEventListener("scroll",O))});const{width:H,height:E}=bu();fe(H,U),fe(E,U),fe(n,U),fe(t,U)}async function U(){u=!0;const A=e.value;if(await Ze(),I()===A){u=!1;return}V(A)}function V(A,{smooth:H}={smooth:!1}){const E=a.value;if(!E)return;u=!0;const x=async()=>{await Ze(),u=!1,k()},N=Math.floor(A),L=E.querySelector(`[data-index="${N}"],[data-index2="${N}"]`);if(!L){x();return}l(async()=>{await M(E,!o.value&&H,async()=>{await D(E,L,{smooth:H,page:A})}),await x()})}async function M(A,H,E){H&&A.style.setProperty("scroll-snap-type","none"),await E(),H&&A.style.removeProperty("scroll-snap-type")}function p(){if(!a.value||u||!d)return;const A=I();A!==void 0&&A!==e.value&&c(A)}function I(){const A=S();return A?(+A.getAttribute("data-index")||0)+(o.value?P(A):0):void 0}function S(){m??(m=a.value.getRootNode());const A=m.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-gr:gr,r.value&&o.value?i.value||gr:window.innerHeight/2);for(let H=0;H<A.length;H++){const E=A[H];if(E.hasAttribute("data-index"))return E;if(E===a.value)break}}function P(A){const H=A.getBoundingClientRect();return r.value?Math.abs(H.top-(i.value||0))/H.height:s.value?Math.max(0,H.right-a.value.clientWidth)/H.width:Math.abs(H.left)/H.width}let v=!1;async function D(A,H,E){if(v)return;const x=H.getBoundingClientRect();if(!o.value){if(r.value){if(x.top<=0&&x.bottom>=A.clientHeight)return}else if(x.left<=0&&x.right>=A.clientWidth)return}v=!0;const N=r.value?A.scrollTop:A.scrollLeft,L=E.page,b=o.value?L%1:0,F=await Cn(30,10,async()=>{await ro();let ge;return o.value?r.value?ge=H.offsetTop+b*H.offsetHeight-(i.value??0):s.value?ge=H.offsetLeft-A.clientWidth+H.offsetWidth-b*H.offsetWidth:ge=H.offsetLeft+b*H.offsetWidth:r.value?ge=H.offsetTop+(x.top>0?0:x.height-A.clientHeight):ge=H.offsetLeft+(x.left>0?0:x.width-A.clientWidth),L>.5&&Math.abs(ge)<100?void 0:ge})??0;if(!E.smooth){r.value?A.scrollTop=F:A.scrollLeft=F,v=!1;return}const Y=F-N,te=30;let he=0;return new Promise(ge=>{(function de(){const me=mp(he,N,Y,te);r.value?A.scrollTop=me:A.scrollLeft=me,he++,he<=te?requestAnimationFrame(de):(ge(),v=!1)})()})}return{init:j,goToPage:V}}function mp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function vp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:a}){const l=ar("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(v,D)=>v===void 0?D:v===!0||v==="true"}),c=Q(!1);let u,d;const m=We(S,100);let y;const O=We(()=>{c.value=!0,clearTimeout(y),y=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),k=()=>setTimeout(()=>{c.value=!1,O(),y&&(clearTimeout(y),y=void 0)},30);k(),t||Pt(window,"mousemove",k);const j=_i();Ve(()=>{fe(j,v=>{l.value&&(v==="visible"?S():d==null||d())}),fe(i,()=>U()),fe(s,v=>{v||M()})}),He(()=>{clearTimeout(y),y=void 0});async function U(v){l.value&&(d==null||d()),v&&(await Ze(),await v()),l.value&&m()}function V(){l.value?M():p()}function M(){l.value&&(l.value=!1,d==null||d(),k())}function p(){!l.value&&s.value&&(l.value=!0,S(),k())}function I(){d==null||d()}function S(){const v=n.value;if(!l.value||!v)return;const D=o.value?v.scrollHeight-v.clientHeight:v.scrollWidth-v.clientWidth,A=P();if(D<=A){M();return}d=()=>{u=Date.now(),d=void 0};const H=Date.now();u=H;const E=.05*i.value,x=o.value?"scrollTop":"scrollLeft";let N=Date.now(),L=0;const b=()=>{if(u!==H)return;const F=Date.now(),Y=F-N;N=F;const te=E*Y+L;te>=1?(L=te%1,v[x]+=(te-L)*(r.value?-1:1)):L=te,setTimeout(b,1)};b()}function P(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:l,isIdle:c,toggle:V,play:p,pause:I,resume:S,stop:M,interfere:U,awake:k}}function _p(e){var y,O,k,j,U;let t=-1,n=(y=e.prev)==null?void 0:y.slug,o=(O=e.next)==null?void 0:O.slug;const{vol:r,inferVol:s,chap:i,title:a,slug:l,basePath:c}=e,u=r??s,d=a.chapters??[],m=(d==null?void 0:d.length)>1?d:[];if(m.length){if(t=m.findIndex(V=>V.slug===e.slug),t===-1&&(t=m.findIndex(V=>(V.vol??V.inferVol)===u&&V.chap===i)),t===-1&&(t=m.findIndex(V=>l.startsWith(`${V.slug}-`)&&l.length-V.slug.length>3)),t!==-1)n??(n=(k=m[t+1])==null?void 0:k.slug),o??(o=(j=m[t-1])==null?void 0:j.slug);else if(!n&&!o){const V=m.findIndex(M=>{const p=M.vol??M.inferVol;return u===void 0||p===void 0||u===p?M.chap<i:p<u});V!==-1?(n=m[V].slug,o=(U=m[V-1])==null?void 0:U.slug):o=m[m.length-1].slug}}return{activeIndex:t,activeLabel:nl({vol:r,chap:i}),chapters:m.map(V=>({label:nl(V),path:mr(c,V.slug)})),prevPath:mr(c,n),nextPath:mr(c,o)}}function mr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function nl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const bp={key:0,class:"flex justify-center items-center w-full h-full"},yp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},wp=ke({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","longIdle","finished","error"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,s;const i=Wu({touchDevice:n.touchDevice}),a=pp(n.page),{asyncImgs:l,isLoading:c,isWebtoon:u}=ip({raw:se(()=>n.raw),spec:n.spec,page:a,onReady(g){n.isAutoShow===!1?a.value=g:a.value>l.value.length&&(a.value=Math.max(0,l.value.length-1)),b.init(),setTimeout(()=>{s=Y()},50)},onError:g=>{t("error",g),f()}}),{direction:d,style:m,isRTL:y,isDouble:O,isVertical:k,isLongStrip:j,gap:U,speed:V,zoom:M}=Mf({titleName:se(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:u}),p=dp(l,O),I=se(()=>a.value>=l.value.length),S=se(()=>n.raw?_p(n.raw):void 0),P=se(()=>{var g,_;return y.value?(g=S.value)==null?void 0:g.nextPath:(_=S.value)==null?void 0:_.prevPath}),v=se(()=>{var g,_;return y.value?(g=S.value)==null?void 0:g.prevPath:(_=S.value)==null?void 0:_.nextPath}),D=Q(null),A=Q(null),H=Q(!1),E=Q(!1),x=vp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var g;return(g=D.value)==null?void 0:g.$el}),speed:V,isRTL:y,isVertical:k,isLongStrip:j,onLongIdle:()=>t("longIdle")});fe(x.isPlaying,g=>{g||h(!1),t("playingChanged",g)}),fe(x.isIdle,g=>{x.isPlaying.value&&h(g)}),fe(i,g=>{!g&&x.isIdle.value?x.awake():g&&n.fullScreen&&h()});const N=se(()=>!n.touchDevice&&x.isIdle.value&&!i.value),L=se({get(){return M.value},set(g){x.interfere(()=>{M.value=g})}}),b=gp({page:a,style:m,direction:d,isLongStrip:j,isVertical:k,isRTL:y,spaceTop:se(()=>n.spaceTop),scrollEl:se(()=>{var g;return(g=D.value)==null?void 0:g.$el}),interferePlayer:g=>x.interfere(g),onChangedPage(g){const _=l.value.length;if(g<0||g>=_+1)return;const C=a.value;a.value=g,t("pageChanged",Math.floor(g*100)/100),g>=_?(h(!1),x.stop()):g===0?h(!1):r||(j.value?s!==void 0&&Y()-s>300&&h(!0):Math.abs(C-g)===1&&h(!0)),!o&&g>=_-2&&(o=!0,t("finished"))}}),F=se(()=>Math.floor(a.value));function Y(){var _;const g=(_=D.value)==null?void 0:_.$el;return g?k.value?g.scrollTop:y.value?-g.scrollLeft:g.scrollLeft:0}const te=()=>x.interfere(()=>ro(100));ef().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const _=j.value&&k.value,C=j.value&&!k.value,K=!j.value&&k.value,W=!j.value&&!k.value;switch(g.key){case" ":g.preventDefault(),j.value?(R(!1),x.toggle()):mt();break;case"ArrowUp":case"PageUp":_?te():K&&F.value!==0&&(g.preventDefault(),st());break;case"ArrowDown":case"PageDown":_?te():K&&!I.value&&(g.preventDefault(),mt());break;case"ArrowLeft":C?te():W?(g.preventDefault(),nn()):k.value&>();break;case"ArrowRight":C?te():W?(g.preventDefault(),so()):k.value&&me();break}},onKeyUp:g=>{switch(g.key){case"f":$();break;case"t":w();break;case"h":R();break}}}),Ve(()=>{Pt("fullscreenchange",()=>{H.value=!!document.fullscreenElement})});function ge(){!n.touchDevice&&!j.value&&b.goToPage(F.value,{smooth:!0})}function de(){if(x.isPlaying.value){!n.fullScreen||!n.touchDevice?x.stop():x.awake();return}h()}function me(){var g;Me((g=S.value)==null?void 0:g.nextPath)}function gt(){var g;Me((g=S.value)==null?void 0:g.prevPath)}function tn(g){var C,K,W;const _=(W=(K=(C=S.value)==null?void 0:C.chapters)==null?void 0:K[g])==null?void 0:W.path;_&&Me(_)}function Me(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function nn(){y.value?mt():st()}function so(){y.value?st():mt()}function st(){var C;const g=p.value,_=I.value?g[g.length-1][0].index:(C=g[on()-1])==null?void 0:C[0].index;_!==void 0?b.goToPage(_):gt()}function mt(){var g,_;if(I.value)me();else{const C=((_=(g=p.value[on()+1])==null?void 0:g[0])==null?void 0:_.index)??l.value.length;b.goToPage(C)}}function on(){const g=F.value,_=p.value.findIndex(C=>C.some(({index:K})=>K===g));return _===-1?p.value.length-1:_}function f(){hp(),x.stop(),t("dispose")}async function h(g){if(i.value&&!n.fullScreen)return;r=!0;const _=typeof g=="boolean"?g:!n.fullScreen;t("fullScreenChanged",_),_&&setTimeout(()=>{n.fullScreen&&i.value&&t("fullScreenChanged",!1)},100)}function w(){n.entryId?z():T()}function $(){var g,_;document.fullscreenElement?document.exitFullscreen():(_=(g=A.value)==null?void 0:g.$el)==null||_.requestFullscreen()}function T(){x.stop(),t("addEntry")}function z(){x.stop(),t("openEntry",n.entryId)}function R(g){E.value!==g&&(E.value=!E.value,E.value&&x.isPlaying&&x.stop())}return(g,_)=>{const C=pr,K=Ji,W=Zi,G=Yi,ne=Ui,ie=Wi,ae=to,pe=Hi,ye=dr,Ue=Vi,Et=Fi,io=Ri,Ht=Di,lo=Bi,Ae=Ai,Ge=ji,ao=zi,Mp=ur,Lp=cr,zp=Ii,jp=ki,Ap=Ci,Bp=si;return B(),Ie(Bp,{ref_key:"root",ref:A,"full-screen":!!g.fullScreen,idle:N.value,"space-top":n.spaceTop,"touch-device":g.touchDevice,rtl:Z(y),onClick:_[11]||(_[11]=ot(()=>{},["stop"]))},hs({settings:re(()=>{var it;return[J(ao,{"reader-style":Z(m),"onUpdate:readerStyle":_[3]||(_[3]=vt=>Ce(m)?m.value=vt:null),direction:Z(d),"onUpdate:direction":_[4]||(_[4]=vt=>Ce(d)?d.value=vt:null),gap:Z(U),"onUpdate:gap":_[5]||(_[5]=vt=>Ce(U)?U.value=vt:null),speed:Z(V),"onUpdate:speed":_[6]||(_[6]=vt=>Ce(V)?V.value=vt:null),zoom:L.value,"onUpdate:zoom":_[7]||(_[7]=vt=>L.value=vt),name:(it=g.raw)==null?void 0:it.title.name,webtoon:Z(u),disabled:Z(c),onHelp:R},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":re(()=>[J(Gt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:re(()=>[J(zp,{zoom:L.value,onClick:_[9]||(_[9]=ot(()=>L.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:re(()=>[q("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Le({width:`${Z(a)/(Z(l).length-1)*100}%`})},null,4)]),default:re(()=>[Z(c)||!Z(l).length?(B(),X("div",bp,[J(C)])):(B(),X(be,{key:1},[J(W,{ref_key:"body",ref:D,zoom:L.value,"onUpdate:zoom":_[0]||(_[0]=it=>L.value=it),"page-index":F.value,pages:Z(p),"total-imgs":Z(l).length,direction:Z(d),gap:Z(U),"is-long-strip":Z(j),isRTL:Z(y),"is-vertical":Z(k),"space-top":g.spaceTop,busy:Z(i),idle:N.value,"play-controller":Z(x),"touch-device":g.touchDevice,onPrev:st,onNext:mt,onClick:de,onDragEnd:ge,onWheelPassive:_[1]||(_[1]=()=>Z(x).interfere())},hs({_:2},[!Z(c)&&Z(l).length?{name:"end",fn:re(()=>{var it;return[J(K,{"has-next":!!((it=S.value)!=null&&it.nextPath),onNext:me,onHide:f},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device"]),at(J(G,{direction:Z(d)},null,8,["direction"]),[[er,!I.value&&!g.tourEnabled&&!E.value]]),I.value?je("",!0):(B(),Ie(ne,{key:0,playing:!!Z(x).isPlaying.value},null,8,["playing"]))],64)),E.value?(B(),Ie(jp,{key:2,"touch-device":g.touchDevice,onHide:R},null,8,["touch-device"])):je("",!0),g.tourEnabled?(B(),Ie(Ap,{key:3,onHide:_[10]||(_[10]=()=>t("tourEnabledChanged",!1))})):je("",!0)]),_:2},[g.raw?{name:"back",fn:re(()=>[J(ae,{href:g.raw.title.url,title:"Back to manga"},{default:re(()=>[J(ie)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:re(()=>[J(ae,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:f},{default:re(()=>[J(pe)]),_:1})]),key:"1"},S.value?{name:"chapter-nav",fn:re(()=>[J(ye,{modelValue:S.value.activeIndex,label:S.value.activeLabel,title:"Select chapter",items:S.value.chapters,"onUpdate:modelValue":tn},{item:re(({item:it})=>[Ct(Xe(it.label),1)]),_:1},8,["modelValue","label","items"]),P.value||v.value?(B(),X("div",yp,[J(ae,{title:`${Z(y)?"Next":"Prev"} chapter (←)`,href:P.value,disabled:!P.value,class:"!rounded-r-none"},{default:re(()=>[J(Ue)]),_:1},8,["title","href","disabled"]),J(ae,{title:`${Z(y)?"Prev":"Next"} chapter (→)`,href:v.value,disabled:!v.value,class:"!rounded-l-none"},{default:re(()=>[J(Et)]),_:1},8,["title","href","disabled"])])):je("",!0)]),key:"2"}:void 0,Z(p).length?{name:"page-nav",fn:re(()=>[J(io,{"model-value":F.value,disabled:Z(c),pages:Z(p),"total-imgs":Z(l).length,"onUpdate:modelValue":_[2]||(_[2]=it=>Z(b).goToPage(it))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:re(()=>[J(ae,{title:g.entryId?"View entry (T)":"Add to Trackkun (T)","data-tour":"Prress here to add to your collection",onClick:w},{default:re(()=>[g.entryId?(B(),Ie(Ht,{key:0})):(B(),Ie(lo,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:re(()=>[J(ae,{title:`${H.value?"Exit":"Enter"} fullscreen (F)`,onClick:$},{default:re(()=>[H.value?(B(),Ie(Ae,{key:0})):(B(),Ie(Ge,{key:1}))]),_:1},8,["title"])]),key:"5"},Z(j)?{name:"play",fn:re(()=>[J(ae,{"data-tour":"Press here to play like a video",title:`${Z(x).isPlaying.value?"Pause":"Play"} (Space)`,disabled:Z(c),onClick:_[8]||(_[8]=()=>Z(x).toggle())},{default:re(()=>[Z(x).isPlaying.value?(B(),Ie(Mp,{key:0})):(B(),Ie(Lp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["full-screen","idle","space-top","touch-device","rtl"])}}}),ol=_e(wp,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:4px}.z-50{z-index:50}.z-20{z-index:20}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.ml-auto{margin-left:auto}.-ml-20{margin-left:-80px}.ml-1{margin-left:4px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-0\\.5{height:2px}.h-0{height:0}.h-12{height:48px}.h-\\[27rem\\]{height:432px}.h-16{height:64px}.h-10{height:40px}.h-4{height:16px}.h-9{height:36px}.h-24{height:96px}.h-1\\.5{height:6px}.h-1{height:4px}.h-7{height:28px}.h-8{height:32px}.h-6{height:24px}.h-20{height:80px}.h-screen{height:100vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:112px}.w-40{width:160px}.w-4{width:16px}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-screen{width:100vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:72px}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1,.translate-y-1\\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1{--tw-translate-y:4px}.-translate-x-1\\/2,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:24px}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-2xl{border-radius:16px}.rounded-sm{border-radius:2px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-90{--tw-bg-opacity:.9}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:24px}.p-2{padding:8px}.p-4{padding:16px}.p-1{padding:4px}.px-6{padding-left:24px;padding-right:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-1{padding-bottom:4px;padding-top:4px}.pt-3{padding-top:12px}.pb-12{padding-bottom:48px}.pl-1{padding-left:4px}.pb-6{padding-bottom:24px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-xl{font-size:20px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\: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}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
8
|
+
`]]]),xp=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),Cp={},kp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Sp=[q("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 Ip(e,t){return B(),X("svg",kp,Sp)}const $p=Object.freeze(Object.defineProperty({__proto__:null,default:_e(Cp,[["render",Ip]])},Symbol.toStringTag,{value:"Module"})),Tp=`html.gear-second,html.gear-second *{scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body iframe,html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;height:0!important;min-height:0!important;min-width:0!important;visibility:hidden!important;width:0!important}html.gear-second body :not(gear-second){opacity:0!important;pointer-events:none!important}html.gear-second body gear-second{bottom:0!important;display:block!important;filter:none!important;left:0!important;opacity:1!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;transform:none!important;visibility:visible!important;z-index:10000000000000000}
|
|
9
|
+
`,kn="gear-second",vr={raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,isAutoShow:void 0,textScaleFactor:void 0,isGuest:void 0,tourEnabled:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0,onError:void 0},Pe={el:void 0,controller:void 0,data:ln({...vr})};async function Pp(e){if(Pe.controller)return Pe.data.raw=e.raw,Pe.controller;const t=()=>{Pe.el&&(document.body.removeChild(Pe.el),Pe.el=void 0),document.documentElement.classList.remove(kn),Object.assign(Pe.data,vr),Pe.controller=void 0};return Pe.controller={triggerDoubleTap:(n,o)=>Fd(n,o),updateArgs(n){Object.assign(Pe.data,n),_r()},dispose:t},document.documentElement.classList.add(kn),await Ep(),Object.assign(Pe.data,vr,e,{onDispose:()=>{var n;t(),(n=e==null?void 0:e.onDispose)==null||n.call(e)}}),_r(),Pe.el||(Pe.el=document.createElement(kn),document.body.appendChild(Pe.el)),Pe.controller}async function Ep(){if(window.customElements.get(kn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Tp)),document.head.appendChild(e);const t=bc({styles:[await Op()],data:()=>({readerData:Pe.data}),render(){return Fs(ol,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),_r()},onPageChanged:n=>{var o,r;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n)},onTourEnabledChanged:n=>{this.readerData.tourEnabled=n}})}});window.customElements.define(kn,t)}async function Op(){const e=Object.assign({"./TrackkunReader.vue":xp,"./components/AutoNext.vue":rp,"./components/BottomSheet.vue":rf,"./components/ButtonDropdown.vue":fd,"./components/ButtonIcon.vue":Yu,"./components/ButtonReaderSettings.vue":zf,"./components/ButtonResetZoom.vue":Lu,"./components/DirectionToast.vue":Nd,"./components/HelpScreen.vue":ku,"./components/InputPercentage.vue":af,"./components/InputSelect.vue":pf,"./components/IntersectionWrapper.vue":Wd,"./components/LoadingIndicator.vue":qd,"./components/PageNav.vue":dd,"./components/PauseToast.vue":Ld,"./components/ReaderBody.vue":ep,"./components/ReaderLayout.vue":Dc,"./components/ReaderTour.vue":xu,"./components/TableField.vue":ff,"./components/ZoomWrapper.vue":Hd,"./components/icons/IconBack.vue":Md,"./components/icons/IconBookmarkNew.vue":qf,"./components/icons/IconBookmarked.vue":ed,"./components/icons/IconChevronLeft.vue":xd,"./components/icons/IconChevronRight.vue":vd,"./components/icons/IconClose.vue":Qu,"./components/icons/IconExclamationCircle.vue":$p,"./components/icons/IconFullscreen.vue":Nf,"./components/icons/IconFullscreenExit.vue":Wf,"./components/icons/IconHelp.vue":_f,"./components/icons/IconNext.vue":Dd,"./components/icons/IconPause.vue":Hu,"./components/icons/IconPlay.vue":Du,"./components/icons/IconReaderExit.vue":$d,"./components/icons/IconSettings.vue":Cf,"./components/icons/IconTriangle.vue":sd,"./components/icons/IconZoom.vue":Pu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function _r(){if(Pe.data.adBlock)return;const{spaceTop:e,fullScreen:t}=Pe.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}return Pp});
|