MCPcopy
hub / github.com/helloxz/onenav / update

Method update

templates/default2/assets/index.js:120–120  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

118**//*! #__NO_SIDE_EFFECTS__ */function oSe(e,t){const n=new Set(e.split(","));return o=>n.has(o)}const S_={},rSe=[],Ds=()=>{},aSe=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ou=Object.assign,lSe=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sSe=Object.prototype.hasOwnProperty,j2=(e,t)=>sSe.call(e,t),Vn=Array.isArray,wd=e=>dy(e)==="[object Map]",lN=e=>dy(e)==="[object Set]",Kn=e=>typeof e=="function",Nl=e=>typeof e=="string",hc=e=>typeof e=="symbol",ar=e=>e!==null&&typeof e=="object",sN=e=>(ar(e)||Kn(e))&&Kn(e.then)&&Kn(e.catch),iN=Object.prototype.toString,dy=e=>iN.call(e),iSe=e=>dy(e).slice(8,-1),uN=e=>dy(e)==="[object Object]",C_=e=>Nl(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ac=(e,t)=>!Object.is(e,t),uSe=e=>{const t=Nl(e)?Number(e):NaN;return isNaN(t)?e:t};let $O;const cSe=()=>$O||($O=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function __(e){if(Vn(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Nl(o)?hSe(o):__(o);if(r)for(const l in r)t[l]=r[l]}return t}else if(Nl(e)||ar(e))return e}const dSe=/;(?![^(]*\))/g,fSe=/:([^]+)/,pSe=/\/\*[^]*?\*\//g;function hSe(e){const t={};return e.replace(pSe,"").split(dSe).forEach(n=>{if(n){const o=n.split(fSe);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Sd(e){let t="";if(Nl(e))t=e;else if(Vn(e))for(let n=0;n<e.length;n++){const o=Sd(e[n]);o&&(t+=o+" ")}else if(ar(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const cN=e=>!!(e&&e.__v_isRef===!0),dN=e=>Nl(e)?e:e==null?"":Vn(e)||ar(e)&&(e.toString===iN||!Kn(e.toString))?cN(e)?dN(e.value):JSON.stringify(e,fN,2):String(e),fN=(e,t)=>cN(t)?fN(e,t.value):wd(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],l)=>(n[N1(o,l)+" =>"]=r,n),{})}:lN(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>N1(n))}:hc(t)?N1(t):ar(t)&&!Vn(t)&&!uN(t)?String(t):t,N1=(e,t="")=>{var n;return hc(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Jn;const L1=new WeakSet;class vSe{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,L1.has(this)&&(L1.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=kp,kp=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,MO(this),hN(this);const t=Jn,n=Tl;Jn=this,Tl=!0;try{return this.fn()}finally{vN(this),Jn=t,Tl=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)x_(t);this.deps=this.depsTail=void 0,MO(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?L1.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){U2(this)&&this.run()}get dirty(){return U2(this)}}let pN=0,kp;function k_(){pN++}function E_(){if(--pN>0)return;let e;for(;kp;){let t=kp;for(kp=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function hN(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vN(e){let t,n=e.depsTail;for(let o=n;o;o=o.prevDep)o.version===-1?(o===n&&(n=o.prevDep),x_(o),gSe(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function U2(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&gN(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function gN(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===uh))return;e.globalVersion=uh;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!U2(e)){e.flags&=-3;return}const n=Jn,o=Tl;Jn=e,Tl=!0;try{hN(e);const r=e.fn(e._value);(t.version===0||ac(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Jn=n,Tl=o,vN(e),e.flags&=-3}}function x_(e){const{dep:t,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)x_(r)}}function gSe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Tl=!0;const mN=[];function jh(){mN.push(Tl),Tl=!1}function Uh(){const e=mN.pop();Tl=e===void 0?!0:e}function MO(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Jn;Jn=void 0;try{t()}finally{Jn=n}}}let uh=0;class yN{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!Jn||!Tl||Jn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Jn)n=this.activeLink={dep:this,sub:Jn,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},Jn.deps?(n.prevDep=Jn.depsTail,Jn.depsTail.nextDep=n,Jn.depsTail=n):Jn.deps=Jn.depsTail=n,Jn.flags&4&&bN(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Jn.depsTail,n.nextDep=void 0,Jn.depsTail.nextDep=n,Jn.depsTail=n,Jn.deps===n&&(Jn.deps=o)}return n}trigger(t){this.version++,uh++,this.notify(t)}notify(t){k_();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{E_()}}}function bN(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)bN(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const G2=new WeakMap,Ku=Symbol(""),Y2=Symbol(""),ch=Symbol("");function ia(e,t,n){if(Tl&&Jn){let o=G2.get(e);o||G2.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new yN),r.track()}}function Ai(e,t,n,o,r,l){const a=G2.get(e);if(!a){uh++;return}let s=[];if(t==="clear")s=[...a.values()];else{const i=Vn(e),u=i&&C_(n);if(i&&n==="length"){const d=Number(o);a.forEach((c,h)=>{(h==="length"||h===ch||!hc(h)&&h>=d)&&s.push(c)})}else{const d=c=>c&&s.push(c);switch(n!==void 0&&d(a.get(n)),u&&d(a.get(ch)),t){case"add":i?u&&d(a.get("length")):(d(a.get(Ku)),wd(e)&&d(a.get(Y2)));break;case"delete":i||(d(a.get(Ku)),wd(e)&&d(a.get(Y2)));break;case"set":wd(e)&&d(a.get(Ku));break}}}k_();for(const i of s)i.trigger();E_()}function Kc(e){const t=fo(e);return t===e?t:(ia(t,"iterate",ch),os(e)?t:t.map(wa))}function T_(e){return ia(e=fo(e),"iterate",ch),e}const mSe={__proto__:null,[Symbol.iterator](){return D1(this,Symbol.iterator,wa)},concat(...e){return Kc(this).concat(...e.map(t=>Vn(t)?Kc(t):t))},entries(){return D1(this,"entries",e=>(e[1]=wa(e[1]),e))},every(e,t){return Os(this,"every",e,t,void 0,arguments)},filter(e,t){return Os(this,"filter",e,t,n=>n.map(wa),arguments)},find(e,t){return Os(this,"find",e,t,wa,arguments)},findIndex(e,t){return Os(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Os(this,"findLast",e,t,wa,arguments)},findLastIndex(e,t){return Os(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Os(this,"forEach",e,t,void 0,arguments)},includes(...e){return B1(this,"includes",e)},indexOf(...e){return B1(this,"indexOf",e)},join(e){return Kc(this).join(e)},lastIndexOf(...e){return B1(this,"lastIndexOf",e)},map(e,t){return Os(this,"map",e,t,void 0,arguments)},pop(){return Kf(this,"pop")},push(...e){return Kf(this,"push",e)},reduce(e,...t){return RO(this,"reduce",e,t)},reduceRight(e,...t){return RO(this,"reduceRight",e,t)},shift(){return Kf(this,"shift")},some(e,t){return Os(this,"some",e,t,void 0,arguments)},splice(...e){return Kf(this,"splice",e)},toReversed(){return Kc(this).toReversed()},toSorted(e){return Kc(this).toSorted(e)},toSpliced(...e){return Kc(this).toSpliced(...e)},unshift(...e){return Kf(this,"unshift",e)},values(){return D1(this,"values",wa)}};function D1(e,t,n){const o=T_(e),r=o[t]();return o!==e&&!os(e)&&(r._next=r.next,r.next=()=>{const l=r._next();return l.value&&(l.value=n(l.value)),l}),r}const ySe=Array.prototype;function Os(e,t,n,o,r,l){const a=T_(e),s=a!==e&&!os(e),i=a[t];if(i!==ySe[t]){const c=i.apply(e,l);return s?wa(c):c}let u=n;a!==e&&(s?u=function(c,h){return n.call(this,wa(c),h,e)}:n.length>2&&(u=function(c,h){return n.call(this,c,h,e)}));const d=i.call(a,u,o);return s&&r?r(d):d}function RO(e,t,n,o){const r=T_(e);let l=n;return r!==e&&(os(e)?n.length>3&&(l=function(a,s,i){return n.call(this,a,s,i,e)}):l=function(a,s,i){return n.call(this,a,wa(s),i,e)}),r[t](l,...o)}function B1(e,t,n){const o=fo(e);ia(o,"iterate",ch);const r=o[t](...n);return(r===-1||r===!1)&&$_(n[0])?(n[0]=fo(n[0]),o[t](...n)):r}function Kf(e,t,n=[]){jh(),k_();const o=fo(e)[t].apply(e,n);return E_(),Uh(),o}const bSe=oSe("__proto__,__v_isRef,__isVue"),wN=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hc));function wSe(e){hc(e)||(e=String(e));const t=fo(this);return ia(t,"has",e),t.hasOwnProperty(e)}class SN{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return o===(r?l?ASe:kN:l?RSe:_N).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=Vn(t);if(!r){let i;if(a&&(i=mSe[n]))return i;if(n==="hasOwnProperty")return wSe}const s=Reflect.get(t,n,Ia(t)?t:o);return(hc(n)?wN.has(n):bSe(n))||(r||ia(t,"get",n),l)?s:Ia(s)?a&&C_(n)?s:s.value:ar(s)?r?EN(s):I_(s):s}}class SSe extends SN{constructor(t=!1){super(!1,t)}set(t,n,o,r){let l=t[n];if(!this._isShallow){const i=qd(l);if(!os(o)&&!qd(o)&&(l=fo(l),o=fo(o)),!Vn(t)&&Ia(l)&&!Ia(o))return i?!1:(l.value=o,!0)}const a=Vn(t)&&C_(n)?Number(n)<t.length:j2(t,n),s=Reflect.set(t,n,o,Ia(t)?t:r);return t===fo(r)&&(a?ac(o,l)&&Ai(t,"set",n,o):Ai(t,"add",n,o)),s}deleteProperty(t,n){const o=j2(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&Ai(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!hc(n)||!wN.has(n))&&ia(t,"has",n),o}ownKeys(t){return ia(t,"iterate",Vn(t)?"length":Ku),Reflect.ownKeys(t)}}class CSe extends SN{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const _Se=new SSe,kSe=new CSe,O_=e=>e,fy=e=>Reflect.getPrototypeOf(e);function vg(e,t,n=!1,o=!1){e=e.__v_raw;const r=fo(e),l=fo(t);n||(ac(t,l)&&ia(r,"get",t),ia(r,"get",l));const{has:a}=fy(r),s=o?O_:n?M_:wa;if(a.call(r,t))return s(e.get(t));if(a.call(r,l))return s(e.get(l));e!==r&&e.get(t)}function gg(e,t=!1){const n=this.__v_raw,o=fo(n),r=fo(e);return t||(ac(e,r)&&ia(o,"has",e),ia(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function mg(e,t=!1){return e=e.__v_raw,!t&&ia(fo(e),"iterate",Ku),Reflect.get(e,"size",e)}function AO(e,t=!1){!t&&!os(e)&&!qd(e)&&(e=fo(e));const n=fo(this);return fy(n).has.call(n,e)||(n.add(e),Ai(n,"add",e,e)),this}function PO(e,t,n=!1){!n&&!os(t)&&!qd(t)&&(t=fo(t));const o=fo(this),{has:r,get:l}=fy(o);let a=r.call(o,e);a||(e=fo(e),a=r.call(o,e));const s=l.call(o,e);return o.set(e,t),a?ac(t,s)&&Ai(o,"set",e,t):Ai(o,"add",e,t),this}function NO(e){const t=fo(this),{has:n,get:o}=fy(t);let r=n.call(t,e);r||(e=fo(e),r=n.call(t,e)),o&&o.call(t,e);const l=t.delete(e);return r&&Ai(t,"delete",e,void 0),l}function LO(){const e=fo(this),t=e.size!==0,n=e.clear();return t&&Ai(e,"clear",void 0,void 0),n}function yg(e,t){return function(n,o){const r=this,l=r.__v_raw,a=fo(l),s=t?O_:e?M_:wa;return!e&&ia(a,"iterate",Ku),l.forEach((i,u)=>n.call(o,s(i),s(u),r))}}function bg(e,t,n){return function(...o){const r=this.__v_raw,l=fo(r),a=wd(l),s=e==="entries"||e===Symbol.iterator&&a,i=e==="keys"&&a,u=r[e](...o),d=n?O_:t?M_:wa;return!t&&ia(l,"iterate",i?Y2:Ku),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[d(c[0]),d(c[1])]:d(c),done:h}},[Symbol.iterator](){return this}}}}function ui(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ESe(){const e={get(r){return vg(this,r)},get size(){return mg(this)},has:gg,add:AO,set:PO,delete:NO,clear:LO,forEach:yg(!1,!1)},t={get(r){return vg(this,r,!1,!0)},get size(){return mg(this)},has:gg,add(r){return AO.call(this,r,!0)},set(r,l){return PO.call(this,r,l,!0)},delete:NO,clear:LO,forEach:yg(!1,!0)},n={get(r){return vg(this,r,!0)},get size(){return mg(this,!0)},has(r){return gg.call(this,r,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:yg(!0,!1)},o={get(r){return vg(this,r,!0,!0)},get size(){return mg(this,!0)},has(r){return gg.call(this,r,!0)},add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear"),forEach:yg(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=bg(r,!1,!1),n[r]=bg(r,!0,!1),t[r]=bg(r,!1,!0),o[r]=bg(r,!0,!0)}),[e,n,t,o]}const[xSe,TSe,OSe,ISe]=ESe();function CN(e,t){const n=t?e?ISe:OSe:e?TSe:xSe;return(o,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(j2(n,r)&&r in o?n:o,r,l)}const $Se={get:CN(!1,!1)},MSe={get:CN(!0,!1)},_N=new WeakMap,RSe=new WeakMap,kN=new WeakMap,ASe=new WeakMap;function PSe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function NSe(e){return e.__v_skip||!Object.isExtensible(e)?0:PSe(iSe(e))}function I_(e){return qd(e)?e:xN(e,!1,_Se,$Se,_N)}function EN(e){return xN(e,!0,kSe,MSe,kN)}function xN(e,t,n,o,r){if(!ar(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const a=NSe(e);if(a===0)return e;const s=new Proxy(e,a===2?o:n);return r.set(e,s),s}function Ep(e){return qd(e)?Ep(e.__v_raw):!!(e&&e.__v_isReactive)}function qd(e){return!!(e&&e.__v_isReadonly)}function os(e){return!!(e&&e.__v_isShallow)}function $_(e){return e?!!e.__v_raw:!1}function fo(e){const t=e&&e.__v_raw;return t?fo(t):e}const wa=e=>ar(e)?I_(e):e,M_=e=>ar(e)?EN(e):e;function Ia(e){return e?e.__v_isRef===!0:!1}function em(e){return Ia(e)?e.value:e}const LSe={get:(e,t,n)=>t==="__v_raw"?e:em(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ia(r)&&!Ia(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function DSe(e){return Ep(e)?e:new Proxy(e,LSe)}class BSe{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new yN(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=uh-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){Jn!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return gN(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function FSe(e,t,n=!1){let o,r;return Kn(e)?o=e:(o=e.get,r=e.set),new BSe(o,r,n)}const wg={},Gm=new WeakMap;let ku;function VSe(e,t=!1,n=ku){if(n){let o=Gm.get(n);o||Gm.set(n,o=[]),o.push(e)}}function HSe(e,t,n=S_){const{immediate:o,deep:r,once:l,scheduler:a,augmentJob:s,call:i}=n,u=S=>r?S:os(S)||r===!1||r===0?Ei(S,1):Ei(S);let d,c,h,v,m=!1,g=!1;if(Ia(e)?(c=()=>e.value,m=os(e)):Ep(e)?(c=()=>u(e),m=!0):Vn(e)?(g=!0,m=e.some(S=>Ep(S)||os(S)),c=()=>e.map(S=>{if(Ia(S))return S.value;if(Ep(S))return u(S);if(Kn(S))return i?i(S,2):S()})):Kn(e)?t?c=i?()=>i(e,2):e:c=()=>{if(h){jh();try{h()}finally{Uh()}}const S=ku;ku=d;try{return i?i(e,3,[v]):e(v)}finally{ku=S}}:c=Ds,t&&r){const S=c,C=r===!0?1/0:r;c=()=>Ei(S(),C)}const w=()=>{d.stop()};if(l)if(t){const S=t;t=(...C)=>{S(...C),w()}}else{const S=c;c=()=>{S(),w()}}let b=g?new Array(e.length).fill(wg):wg;const E=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const C=d.run();if(r||m||(g?C.some((_,k)=>ac(_,b[k])):ac(C,b))){h&&h();const _=ku;ku=d;try{const k=[C,b===wg?void 0:g&&b[0]===wg?[]:b,v];i?i(t,3,k):t(...k),b=C}finally{ku=_}}}else d.run()};return s&&s(E),d=new vSe(c),d.scheduler=a?()=>a(E,!1):E,v=S=>VSe(S,!1,d),h=d.onStop=()=>{const S=Gm.get(d);if(S){if(i)i(S,4);else for(const C of S)C();Gm.delete(d)}},t?o?E(!0):b=d.run():a?a(E.bind(null,!0),!0):d.run(),w.pause=d.pause.bind(d),w.resume=d.resume.bind(d),w.stop=w,w}function Ei(e,t=1/0,n){if(t<=0||!ar(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ia(e))Ei(e.value,t,n);else if(Vn(e))for(let o=0;o<e.length;o++)Ei(e[o],t,n);else if(lN(e)||wd(e))e.forEach(o=>{Ei(o,t,n)});else if(uN(e)){for(const o in e)Ei(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ei(e[o],t,n)}return e}function R_(e,t,n,o){try{return o?e(...o):e()}catch(r){A_(r,t,n)}}function py(e,t,n,o){if(Kn(e)){const r=R_(e,t,n,o);return r&&sN(r)&&r.catch(l=>{A_(l,t,n)}),r}if(Vn(e)){const r=[];for(let l=0;l<e.length;l++)r.push(py(e[l],t,n,o));return r}}function A_(e,t,n,o=!0){const r=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||S_;if(t){let s=t.parent;const i=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let c=0;c<d.length;c++)if(d[c](e,i,u)===!1)return}s=s.parent}if(l){jh(),R_(l,null,10,[e,i,u]),Uh();return}}zSe(e,n,r,o,a)}function zSe(e,t,n,o=!0,r=!1){{if(r)throw e;console.error(e)}}let Ym=!1,q2=!1;const Ga=[];let Is=0;const Cd=[];let Ci=null,ed=0;const WSe=Promise.resolve();function KSe(e){let t=Ym?Is+1:0,n=Ga.length;for(;t<n;){const o=t+n>>>1,r=Ga[o],l=dh(r);l<e||l===e&&r.flags&2?t=o+1:n=o}return t}function jSe(e){if(!(e.flags&1)){const t=dh(e),n=Ga[Ga.length-1];!n||!(e.flags&2)&&t>=dh(n)?Ga.push(e):Ga.splice(KSe(t),0,e),e.flags|=1,TN()}}function TN(){!Ym&&!q2&&(q2=!0,WSe.then(ON))}function X2(e){Vn(e)?Cd.push(...e):Ci&&e.id===-1?Ci.splice(ed+1,0,e):e.flags&1||(Cd.push(e),e.flags|=1),TN()}function USe(e){if(Cd.length){const t=[...new Set(Cd)].sort((n,o)=>dh(n)-dh(o));if(Cd.length=0,Ci){Ci.push(...t);return}for(Ci=t,ed=0;ed<Ci.length;ed++){const n=Ci[ed];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ci=null,ed=0}}const dh=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ON(e){q2=!1,Ym=!0;try{for(Is=0;Is<Ga.length;Is++){const t=Ga[Is];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),R_(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;Is<Ga.length;Is++){const t=Ga[Is];t&&(t.flags&=-2)}Is=0,Ga.length=0,USe(),Ym=!1,(Ga.length||Cd.length)&&ON()}}let _l=null,IN=null;function DO(e){const t=_l;return _l=e,IN=e&&e.type.__scopeId||null,t}function GSe(e,t=_l,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&WO(-1);const l=DO(t);let a;try{a=e(...r)}finally{DO(l),o._d&&WO(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}const YSe=e=>e.__isTeleport;function $N(e,t){e.shapeFlag&6&&e.component?(e.transition=t,$N(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function MN(e,t){return Kn(e)?ou({name:e.name},t,{setup:e}):e}function qSe(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const XSe=e=>e.type.__isKeepAlive;function ZSe(e,t){RN(e,"a",t)}function JSe(e,t){RN(e,"da",t)}function RN(e,t,n=mr){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(hy(t,o,n),n){let r=n.parent;for(;r&&r.parent;)XSe(r.parent.vnode)&&QSe(o,t,n,r),r=r.parent}}function QSe(e,t,n,o){const r=hy(t,e,o,!0);AN(()=>{lSe(o[t],r)},n)}function hy(e,t,n=mr,o=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...a)=>{jh();const s=Qm(n),i=py(t,n,e,a);return s(),Uh(),i});return o?r.unshift(l):r.push(l),l}}const qs=e=>(t,n=mr)=>{(!vy||e==="sp")&&hy(e,(...o)=>t(...o),n)},eCe=qs("bm"),tCe=qs("m"),nCe=qs("bu"),oCe=qs("u"),rCe=qs("bum"),AN=qs("um"),aCe=qs("sp"),lCe=qs("rtg"),sCe=qs("rtc");function iCe(e,t=mr){hy("ec",e,t)}const uCe=Symbol.for("v-ndc");function BO(e){return Vn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function cCe(e){const t=HCe();let n=e();return zCe(),sN(n)&&(n=n.catch(o=>{throw Qm(t),o})),[n,()=>Qm(t)]}function dCe(e){const t=pCe(e),n=e.proxy,o=e.ctx;t.beforeCreate&&FO(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:a,watch:s,provide:i,inject:u,created:d,beforeMount:c,mounted:h,beforeUpdate:v,updated:m,activated:g,deactivated:w,beforeDestroy:b,beforeUnmount:E,destroyed:S,unmounted:C,render:_,renderTracked:k,renderTriggered:O,errorCaptured:I,serverPrefetch:T,expose:M,inheritAttrs:R,components:$,directives:L,filters:V}=t;if(u&&fCe(u,o,null),a)for(const H in a){const B=a[H];Kn(B)&&(o[H]=B.bind(n))}if(r){const H=r.call(n,n);ar(H)&&(e.data=I_(H))}if(l)for(const H in l){const B=l[H],z=Kn(B)?B.bind(n,n):Kn(B.get)?B.get.bind(n,n):Ds,q=!Kn(B)&&Kn(B.set)?B.set.bind(n):Ds,Z=UCe({get:z,set:q});Object.defineProperty(o,H,{enumerable:!0,configurable:!0,get:()=>Z.value,set:ie=>Z.value=ie})}if(s)for(const H in s)PN(s[H],o,n,H);if(i){const H=Kn(i)?i.call(n):i;Reflect.ownKeys(H).forEach(B=>{yCe(B,H[B])})}d&&FO(d,e,"c");function N(H,B){Vn(B)?B.forEach(z=>H(z.bind(n))):B&&H(B.bind(n))}if(N(eCe,c),N(tCe,h),N(nCe,v),N(oCe,m),N(ZSe,g),N(JSe,w),N(iCe,I),N(sCe,k),N(lCe,O),N(rCe,E),N(AN,C),N(aCe,T),Vn(M))if(M.length){const H=e.exposed||(e.exposed={});M.forEach(B=>{Object.defineProperty(H,B,{get:()=>n[B],set:z=>n[B]=z})})}else e.exposed||(e.exposed={});_&&e.render===Ds&&(e.render=_),R!=null&&(e.inheritAttrs=R),$&&(e.components=$),L&&(e.directives=L),T&&qSe(e)}function fCe(e,t,n=Ds){Vn(e)&&(e=Z2(e));for(const o in e){const r=e[o];let l;ar(r)?"default"in r?l=tm(r.from||o,r.default,!0):l=tm(r.from||o):l=tm(r),Ia(l)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function FO(e,t,n){py(Vn(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function PN(e,t,n,o){let r=o.includes(".")?kCe(n,o):()=>n[o];if(Nl(e)){const l=t[e];Kn(l)&&F1(r,l)}else if(Kn(e))F1(r,e.bind(n));else if(ar(e))if(Vn(e))e.forEach(l=>PN(l,t,n,o));else{const l=Kn(e.handler)?e.handler.bind(n):t[e.handler];Kn(l)&&F1(r,l,e)}}function pCe(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:a}}=e.appContext,s=l.get(t);let i;return s?i=s:!r.length&&!n&&!o?i=t:(i={},r.length&&r.forEach(u=>qm(i,u,a,!0)),qm(i,t,a)),ar(t)&&l.set(t,i),i}function qm(e,t,n,o=!1){const{mixins:r,extends:l}=t;l&&qm(e,l,n,!0),r&&r.forEach(a=>qm(e,a,n,!0));for(const a in t)if(!(o&&a==="expose")){const s=hCe[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const hCe={data:VO,props:HO,emits:HO,methods:np,computed:np,beforeCreate:Mr,created:Mr,beforeMount:Mr,mounted:Mr,beforeUpdate:Mr,updated:Mr,beforeDestroy:Mr,beforeUnmount:Mr,destroyed:Mr,unmounted:Mr,activated:Mr,deactivated:Mr,errorCaptured:Mr,serverPrefetch:Mr,components:np,directives:np,watch:gCe,provide:VO,inject:vCe};function VO(e,t){return t?e?function(){return ou(Kn(e)?e.call(this,this):e,Kn(t)?t.call(this,this):t)}:t:e}function vCe(e,t){return np(Z2(e),Z2(t))}function Z2(e){if(Vn(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Mr(e,t){return e?[...new Set([].concat(e,t))]:t}function np(e,t){return e?ou(Object.create(null),e,t):t}function HO(e,t){return e?Vn(e)&&Vn(t)?[...new Set([...e,...t])]:ou(Object.create(null),BO(e),BO(t??{})):t}function gCe(e,t){if(!e)return t;if(!t)return e;const n=ou(Object.create(null),e);for(const o in t)n[o]=Mr(e[o],t[o]);return n}let mCe=null;function yCe(e,t){if(mr){let n=mr.provides;const o=mr.parent&&mr.parent.provides;o===n&&(n=mr.provides=Object.create(o)),n[e]=t}}function tm(e,t,n=!1){const o=mr||_l;if(o||mCe){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Kn(t)?t.call(o&&o.proxy):t}}const bCe={},NN=e=>Object.getPrototypeOf(e)===bCe,wCe=ACe,SCe=Symbol.for("v-scx"),CCe=()=>tm(SCe);function F1(e,t,n){return _Ce(e,t,n)}function _Ce(e,t,n=S_){const{immediate:o,deep:r,flush:l,once:a}=n,s=ou({},n);let i;if(vy)if(l==="sync"){const h=CCe();i=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||o)s.once=!0;else return{stop:Ds,resume:Ds,pause:Ds};const u=mr;s.call=(h,v,m)=>py(h,u,v,m);let d=!1;l==="post"?s.scheduler=h=>{wCe(h,u&&u.suspense)}:l!=="sync"&&(d=!0,s.scheduler=(h,v)=>{v?h():jSe(h)}),s.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const c=HSe(e,t,s);return i&&i.push(c),c}function kCe(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 ECe(e,t=!0){let n;for(let o=0;o<e.length;o++){const r=e[o];if(zN(r)){if(r.type!==Xd||r.children==="v-if"){if(n)return;n=r}}else return}return n}function LN({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const xCe=e=>e.__isSuspense;let J2=0;const TCe={name:"Suspense",__isSuspense:!0,process(e,t,n,o,r,l,a,s,i,u){if(e==null)ICe(t,n,o,r,l,a,s,i,u);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}$Ce(e,t,n,o,r,a,s,i,u)}},hydrate:MCe,normalize:RCe},OCe=TCe;function fh(e,t){const n=e.props&&e.props[t];Kn(n)&&n()}function ICe(e,t,n,o,r,l,a,s,i){const{p:u,o:{createElement:d}}=i,c=d("div"),h=e.suspense=DN(e,r,o,t,c,n,l,a,s,i);u(null,h.pendingBranch=e.ssContent,c,null,o,h,l,a),h.deps>0?(fh(e,"onPending"),fh(e,"onFallback"),u(null,e.ssFallback,t,n,o,null,l,a),_d(h,e.ssFallback)):h.resolve(!1,!0)}function $Ce(e,t,n,o,r,l,a,s,{p:i,um:u,o:{createElement:d}}){const c=t.suspense=e.suspense;c.vnode=t,t.el=e.el;const h=t.ssContent,v=t.ssFallback,{activeBranch:m,pendingBranch:g,isInFallback:w,isHydrating:b}=c;if(g)c.pendingBranch=h,H1(h,g)?(i(g,h,c.hiddenContainer,null,r,c,l,a,s),c.deps<=0?c.resolve():w&&(b||(i(m,v,n,o,r,null,l,a,s),_d(c,v)))):(c.pendingId=J2++,b?(c.isHydrating=!1,c.activeBranch=g):u(g,r,c),c.deps=0,c.effects.length=0,c.hiddenContainer=d("div"),w?(i(null,h,c.hiddenContainer,null,r,c,l,a,s),c.deps<=0?c.resolve():(i(m,v,n,o,r,null,l,a,s),_d(c,v))):m&&H1(h,m)?(i(m,h,n,o,r,c,l,a,s),c.resolve(!0)):(i(null,h,c.hiddenContainer,null,r,c,l,a,s),c.deps<=0&&c.resolve()));else if(m&&H1(h,m))i(m,h,n,o,r,c,l,a,s),_d(c,h);else if(fh(t,"onPending"),c.pendingBranch=h,h.shapeFlag&512?c.pendingId=h.component.suspenseId:c.pendingId=J2++,i(null,h,c.hiddenContainer,null,r,c,l,a,s),c.deps<=0)c.resolve();else{const{timeout:E,pendingId:S}=c;E>0?setTimeout(()=>{c.pendingId===S&&c.fallback(v)},E):E===0&&c.fallback(v)}}function DN(e,t,n,o,r,l,a,s,i,u,d=!1){const{p:c,m:h,um:v,n:m,o:{parentNode:g,remove:w}}=u;let b;const E=PCe(e);E&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const S=e.props?uSe(e.props.timeout):void 0,C=l,_={vnode:e,parent:t,parentComponent:n,namespace:a,container:o,hiddenContainer:r,deps:0,pendingId:J2++,timeout:typeof S=="number"?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(k=!1,O=!1){const{vnode:I,activeBranch:T,pendingBranch:M,pendingId:R,effects:$,parentComponent:L,container:V}=_;let D=!1;_.isHydrating?_.isHydrating=!1:k||(D=T&&M.transition&&M.transition.mode==="out-in",D&&(T.transition.afterLeave=()=>{R===_.pendingId&&(h(M,V,l===C?m(T):l,0),X2($))}),T&&(g(T.el)===V&&(l=m(T)),v(T,L,_,!0)),D||h(M,V,l,0)),_d(_,M),_.pendingBranch=null,_.isInFallback=!1;let N=_.parent,H=!1;for(;N;){if(N.pendingBranch){N.effects.push(...$),H=!0;break}N=N.parent}!H&&!D&&X2($),_.effects=[],E&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!O&&t.resolve()),fh(I,"onResolve")},fallback(k){if(!_.pendingBranch)return;const{vnode:O,activeBranch:I,parentComponent:T,container:M,namespace:R}=_;fh(O,"onFallback");const $=m(I),L=()=>{_.isInFallback&&(c(null,k,M,$,T,null,R,s,i),_d(_,k))},V=k.transition&&k.transition.mode==="out-in";V&&(I.transition.afterLeave=L),_.isInFallback=!0,v(I,T,null,!0),V||L()},move(k,O,I){_.activeBranch&&h(_.activeBranch,k,O,I),_.container=k},next(){return _.activeBranch&&m(_.activeBranch)},registerDep(k,O,I){const T=!!_.pendingBranch;T&&_.deps++;const M=k.vnode.el;k.asyncDep.catch(R=>{A_(R,k,0)}).then(R=>{if(k.isUnmounted||_.isUnmounted||_.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:$}=k;WCe(k,R),M&&($.el=M);const L=!M&&k.subTree.el;O(k,$,g(M||k.subTree.el),M?null:m(k.subTree),_,a,I),L&&w(L),LN(k,$.el),T&&--_.deps===0&&_.resolve()})},unmount(k,O){_.isUnmounted=!0,_.activeBranch&&v(_.activeBranch,n,k,O),_.pendingBranch&&v(_.pendingBranch,n,k,O)}};return _}function MCe(e,t,n,o,r,l,a,s,i){const u=t.suspense=DN(t,o,n,e.parentNode,document.createElement("div"),null,r,l,a,s,!0),d=i(e,u.pendingBranch=t.ssContent,n,u,l,a);return u.deps===0&&u.resolve(!1,!0),d}function RCe(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=zO(o?n.default:n),e.ssFallback=o?zO(n.fallback):Pi(Xd)}function zO(e){let t;if(Kn(e)){const n=Zd&&e._c;n&&(e._d=!1,kd()),e=e(),n&&(e._d=!0,t=na,FN())}return Vn(e)&&(e=ECe(e)),e=BCe(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function ACe(e,t){t&&t.pendingBranch?Vn(e)?t.effects.push(...e):t.effects.push(e):X2(e)}function _d(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,o&&o.subTree===n&&(o.vnode.el=r,LN(o,r))}function PCe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const P_=Symbol.for("v-fgt"),BN=Symbol.for("v-txt"),Xd=Symbol.for("v-cmt"),nm=[];let na=null;function kd(e=!1){nm.push(na=e?null:[])}function FN(){nm.pop(),na=nm[nm.length-1]||null}let Zd=1;function WO(e){Zd+=e,e<0&&na&&(na.hasOnce=!0)}function VN(e){return e.dynamicChildren=Zd>0?na||rSe:null,FN(),Zd>0&&na&&na.push(e),e}function V1(e,t,n,o,r,l){return VN(Xm(e,t,n,o,r,l,!0))}function HN(e,t,n,o,r){return VN(Pi(e,t,n,o,r,!0))}function zN(e){return e?e.__v_isVNode===!0:!1}function H1(e,t){return e.type===t.type&&e.key===t.key}const WN=({key:e})=>e??null,om=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Nl(e)||Ia(e)||Kn(e)?{i:_l,r:e,k:t,f:!!n}:e:null);function Xm(e,t=null,n=null,o=0,r=null,l=e===P_?0:1,a=!1,s=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&WN(t),ref:t&&om(t),scopeId:IN,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:_l};return s?(N_(i,n),l&128&&e.normalize(i)):n&&(i.shapeFlag|=Nl(n)?8:16),Zd>0&&!a&&na&&(i.patchFlag>0||l&6)&&i.patchFlag!==32&&na.push(i),i}const Pi=NCe;function NCe(e,t=null,n=null,o=0,r=null,l=!1){if((!e||e===uCe)&&(e=Xd),zN(e)){const s=Zm(e,t,!0);return n&&N_(s,n),Zd>0&&!l&&na&&(s.shapeFlag&6?na[na.indexOf(e)]=s:na.push(s)),s.patchFlag=-2,s}if(jCe(e)&&(e=e.__vccOpts),t){t=LCe(t);let{class:s,style:i}=t;s&&!Nl(s)&&(t.class=Sd(s)),ar(i)&&($_(i)&&!Vn(i)&&(i=ou({},i)),t.style=__(i))}const a=Nl(e)?1:xCe(e)?128:YSe(e)?64:ar(e)?4:Kn(e)?2:0;return Xm(e,t,n,o,r,a,l,!0)}function LCe(e){return e?$_(e)||NN(e)?ou({},e):e:null}function Zm(e,t,n=!1,o=!1){const{props:r,ref:l,patchFlag:a,children:s,transition:i}=e,u=t?VCe(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&WN(u),ref:t&&t.ref?n&&l?Vn(l)?l.concat(om(t)):[l,om(t)]:om(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==P_?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zm(e.ssContent),ssFallback:e.ssFallback&&Zm(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&o&&$N(d,i.clone(d)),d}function DCe(e=" ",t=0){return Pi(BN,null,e,t)}function KO(e="",t=!1){return t?(kd(),HN(Xd,null,e)):Pi(Xd,null,e)}function BCe(e){return e==null||typeof e=="boolean"?Pi(Xd):Vn(e)?Pi(P_,null,e.slice()):typeof e=="object"?FCe(e):Pi(BN,null,String(e))}function FCe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zm(e)}function N_(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Vn(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),N_(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!NN(t)?t._ctx=_l:r===3&&_l&&(_l.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Kn(t)?(t={default:t,_ctx:_l},n=32):(t=String(t),o&64?(n=16,t=[DCe(t)]):n=8);e.children=t,e.shapeFlag|=n}function VCe(...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=Sd([t.class,o.class]));else if(r==="style")t.style=__([t.style,o.style]);else if(aSe(r)){const l=t[r],a=o[r];a&&l!==a&&!(Vn(l)&&l.includes(a))&&(t[r]=l?[].concat(l,a):a)}else r!==""&&(t[r]=o[r])}return t}let mr=null;const HCe=()=>mr||_l;let Jm;{const e=cSe(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),l=>{r.length>1?r.forEach(a=>a(l)):r[0](l)}};Jm=t("__VUE_INSTANCE_SETTERS__",n=>mr=n),t("__VUE_SSR_SETTERS__",n=>vy=n)}const Qm=e=>{const t=mr;return Jm(e),e.scope.on(),()=>{e.scope.off(),Jm(t)}},zCe=()=>{mr&&mr.scope.off(),Jm(null)};let vy=!1;function WCe(e,t,n){Kn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ar(t)&&(e.setupState=DSe(t)),KCe(e)}function KCe(e,t,n){const o=e.type;e.render||(e.render=o.render||Ds);{const r=Qm(e);jh();try{dCe(e)}finally{Uh(),r()}}}function jCe(e){return Kn(e)&&"__vccOpts"in e}const UCe=(e,t)=>FSe(e,t,vy),z1={numeric:"Numeric",alphanumeric:"Alphanumeric",byte:"Byte"};function GCe(e){switch(!0){case/^[0-9]*$/.test(e):return z1.numeric;case/^[0-9A-Z $%*+\-./:]*$/.test(e):return z1.alphanumeric;default:return z1.byte}}const Sg=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function e0(e,...t){if(!t.length)return e;const n=t.shift();return n===void 0||!Sg(e)||!Sg(n)?e:(e={...e},Object.keys(n).forEach(o=>{const r=e[o],l=n[o];Array.isArray(r)&&Array.isArray(l)?e[o]=l:Sg(r)&&Sg(l)?e[o]=e0(Object.assign({},r),l):e[o]=l}),e0(e,...t))}function YCe(e,t){const n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function qCe({originalHeight:e,originalWidth:t,maxHiddenDots:n,maxHiddenAxisDots:o,dotSize:r}){const l={x:0,y:0},a={x:0,y:0};if(e<=0||t<=0||n<=0||r<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const s=e/t;return l.x=Math.floor(Math.sqrt(n/s)),l.x<=0&&(l.x=1),o&&o<l.x&&(l.x=o),l.x%2===0&&l.x--,a.x=l.x*r,l.y=1+2*Math.ceil((l.x*s-1)/2),a.y=Math.round(a.x*s),(l.y*l.x>n||o&&o<l.y)&&(o&&o<l.y?(l.y=o,l.y%2===0&&l.x--):l.y-=2,a.y=l.y*r,l.x=1+2*Math.ceil((l.y/s-1)/2),a.x=Math.round(a.y/s)),{height:a.y,width:a.x,hideYDots:l.y,hideXDots:l.x}}const XCe={L:.07,M:.15,Q:.25,H:.3},jc={dots:"dots",rounded:"rounded",classy:"classy",classyRounded:"classy-rounded",square:"square",extraRounded:"extra-rounded"};class W1{constructor({context:t,type:n}){Dr(this,"_context"),Dr(this,"_type"),this._context=t,this._type=n}draw(t,n,o,r){const l=this._context,a=this._type;let s;switch(a){case jc.dots:s=this._drawDot;break;case jc.classy:s=this._drawClassy;break;case jc.classyRounded:s=this._drawClassyRounded;break;case jc.rounded:s=this._drawRounded;break;case jc.extraRounded:s=this._drawExtraRounded;break;case jc.square:default:s=this._drawSquare}s.call(this,{x:t,y:n,size:o,context:l,getNeighbor:r})}_rotateFigure({x:t,y:n,size:o,context:r,rotation:l,draw:a}){const s=t+o/2,i=n+o/2;r.translate(s,i),l&&r.rotate(l),a(),r.closePath(),l&&r.rotate(-l),r.translate(-s,-i)}_basicDot(t){const{size:n,context:o}=t;this._rotateFigure({...t,draw:()=>{o.moveTo(0,0),o.arc(0,0,n/2,0,Math.PI*2)}})}_basicSquare(t){const{size:n,context:o}=t;this._rotateFigure({...t,draw:()=>{o.moveTo(0,0),o.rect(-n/2,-n/2,n,n)}})}_basicSideRounded(t){const{size:n,context:o}=t;this._rotateFigure({...t,draw:()=>{o.moveTo(0,0),o.arc(0,0,n/2,-Math.PI/2,Math.PI/2),o.lineTo(-n/2,n/2),o.lineTo(-n/2,-n/2),o.lineTo(0,-n/2)}})}_basicCornerRounded(t){const{size:n,context:o}=t;this._rotateFigure({...t,draw:()=>{o.moveTo(0,0),o.arc(0,0,n/2,-Math.PI/2,0),o.lineTo(n/2,n/2),o.lineTo(-n/2,n/2),o.lineTo(-n/2,-n/2),o.lineTo(0,-n/2)}})}_basicCornerExtraRounded(t){const{size:n,context:o}=t;this._rotateFigure({...t,draw:()=>{o.moveTo(0,0),o.arc(-n/2,n/2,n,-Math.PI/2,0),o.lineTo(-n/2,n/2),o.lineTo(-n/2,-n/2)}})}_basicCornersRounded(t){const{size:n,context:o}=t;this._rotateFigure({...t,draw:()=>{o.moveTo(0,0),o.arc(0,0,n/2,-Math.PI/2,0),o.lineTo(n/2,n/2),o.lineTo(0,n/2),o.arc(0,0,n/2,Math.PI/2,Math.PI),o.lineTo(-n/2,-n/2),o.lineTo(0,-n/2)}})}_basicCornersExtraRounded(t){const{size:n,context:o}=t;this._rotateFigure({...t,draw:()=>{o.moveTo(0,0),o.arc(-n/2,n/2,n,-Math.PI/2,0),o.arc(n/2,-n/2,n,Math.PI/2,Math.PI)}})}_drawDot({x:t,y:n,size:o,context:r}){this._basicDot({x:t,y:n,size:o,context:r,rotation:0})}_drawSquare({x:t,y:n,size:o,context:r}){this._basicSquare({x:t,y:n,size:o,context:r,rotation:0})}_drawRounded({x:t,y:n,size:o,context:r,getNeighbor:l}){const a=+l(-1,0),s=+l(1,0),i=+l(0,-1),u=+l(0,1),d=a+s+i+u;if(d===0){this._basicDot({x:t,y:n,size:o,context:r,rotation:0});return}if(d>2||a&&s||i&&u){this._basicSquare({x:t,y:n,size:o,context:r,rotation:0});return}if(d===2){let c=0;a&&i?c=Math.PI/2:i&&s?c=Math.PI:s&&u&&(c=-Math.PI/2),this._basicCornerRounded({x:t,y:n,size:o,context:r,rotation:c});return}if(d===1){let c=0;i?c=Math.PI/2:s?c=Math.PI:u&&(c=-Math.PI/2),this._basicSideRounded({x:t,y:n,size:o,context:r,rotation:c})}}_drawExtraRounded({x:t,y:n,size:o,context:r,getNeighbor:l}){const a=+l(-1,0),s=+l(1,0),i=+l(0,-1),u=+l(0,1),d=a+s+i+u;if(d===0){this._basicDot({x:t,y:n,size:o,context:r,rotation:0});return}if(d>2||a&&s||i&&u){this._basicSquare({x:t,y:n,size:o,context:r,rotation:0});return}if(d===2){let c=0;a&&i?c=Math.PI/2:i&&s?c=Math.PI:s&&u&&(c=-Math.PI/2),this._basicCornerExtraRounded({x:t,y:n,size:o,context:r,rotation:c});return}if(d===1){let c=0;i?c=Math.PI/2:s?c=Math.PI:u&&(c=-Math.PI/2),this._basicSideRounded({x:t,y:n,size:o,context:r,rotation:c})}}_drawClassy({x:t,y:n,size:o,context:r,getNeighbor:l}){const a=+l(-1,0),s=+l(1,0),i=+l(0,-1),u=+l(0,1);if(a+s+i+u===0){this._basicCornersRounded({x:t,y:n,size:o,context:r,rotation:Math.PI/2});return}if(!a&&!i){this._basicCornerRounded({x:t,y:n,size:o,context:r,rotation:-Math.PI/2});return}if(!s&&!u){this._basicCornerRounded({x:t,y:n,size:o,context:r,rotation:Math.PI/2});return}this._basicSquare({x:t,y:n,size:o,context:r,rotation:0})}_drawClassyRounded({x:t,y:n,size:o,context:r,getNeighbor:l}){const a=+l(-1,0),s=+l(1,0),i=+l(0,-1),u=+l(0,1);if(a+s+i+u===0){this._basicCornersRounded({x:t,y:n,size:o,context:r,rotation:Math.PI/2});return}if(!a&&!i){this._basicCornerExtraRounded({x:t,y:n,size:o,context:r,rotation:-Math.PI/2});return}if(!s&&!u){this._basicCornerExtraRounded({x:t,y:n,size:o,context:r,rotation:Math.PI/2});return}this._basicSquare({x:t,y:n,size:o,context:r,rotation:0})}}const K1={dot:"dot",square:"square",extraRounded:"extra-rounded"};class ZCe{constructor({context:t,type:n}){Dr(this,"_context"),Dr(this,"_type"),this._context=t,this._type=n}draw(t,n,o,r){const l=this._context,a=this._type;let s;switch(a){case K1.square:s=this._drawSquare;break;case K1.extraRounded:s=this._drawExtraRounded;break;case K1.dot:default:s=this._drawDot}s.call(this,{x:t,y:n,size:o,context:l,rotation:r})}_rotateFigure({x:t,y:n,size:o,context:r,rotation:l,draw:a}){const s=t+o/2,i=n+o/2;r.translate(s,i),l&&r.rotate(l),a(),r.closePath(),l&&r.rotate(-l),r.translate(-s,-i)}_basicDot(t){const{size:n,context:o}=t,r=n/7;this._rotateFigure({...t,draw:()=>{o.arc(0,0,n/2,0,Math.PI*2),o.arc(0,0,n/2-r,0,Math.PI*2)}})}_basicSquare(t){const{size:n,context:o}=t,r=n/7;this._rotateFigure({...t,draw:()=>{o.rect(-n/2,-n/2,n,n),o.rect(-n/2+r,-n/2+r,n-2*r,n-2*r)}})}_basicExtraRounded(t){const{size:n,context:o}=t,r=n/7;this._rotateFigure({...t,draw:()=>{o.arc(-r,-r,2.5*r,Math.PI,-Math.PI/2),o.lineTo(r,-3.5*r),o.arc(r,-r,2.5*r,-Math.PI/2,0),o.lineTo(3.5*r,-r),o.arc(r,r,2.5*r,0,Math.PI/2),o.lineTo(-r,3.5*r),o.arc(-r,r,2.5*r,Math.PI/2,Math.PI),o.lineTo(-3.5*r,-r),o.arc(-r,-r,1.5*r,Math.PI,-Math.PI/2),o.lineTo(r,-2.5*r),o.arc(r,-r,1.5*r,-Math.PI/2,0),o.lineTo(2.5*r,-r),o.arc(r,r,1.5*r,0,Math.PI/2),o.lineTo(-r,2.5*r),o.arc(-r,r,1.5*r,Math.PI/2,Math.PI),o.lineTo(-2.5*r,-r)}})}_drawDot({x:t,y:n,size:o,context:r,rotation:l}){this._basicDot({x:t,y:n,size:o,context:r,rotation:l})}_drawSquare({x:t,y:n,size:o,context:r,rotation:l}){this._basicSquare({x:t,y:n,size:o,context:r,rotation:l})}_drawExtraRounded({x:t,y:n,size:o,context:r,rotation:l}){this._basicExtraRounded({x:t,y:n,size:o,context:r,rotation:l})}}const jO={dot:"dot",square:"square"};class JCe{constructor({context:t,type:n}){Dr(this,"_context"),Dr(this,"_type"),this._context=t,this._type=n}draw(t,n,o,r){const l=this._context;switch(this._type){case jO.square:this._drawSquare({x:t,y:n,size:o,context:l,rotation:r});break;case jO.dot:default:this._drawDot({x:t,y:n,size:o,context:l,rotation:r})}}_rotateFigure({x:t,y:n,size:o,context:r,rotation:l,draw:a}){const s=t+o/2,i=n+o/2;r.moveTo(0,0),r.translate(s,i),l&&r.rotate(l),a(),r.closePath(),l&&r.rotate(-l),r.translate(-s,-i)}_drawDot(t){const{size:n,context:o}=t;this._rotateFigure({...t,draw:()=>{o.moveTo(0,0),o.arc(0,0,n/2,0,Math.PI*2)}})}_drawSquare(t){const{size:n,context:o}=t;this._rotateFigure({...t,draw:()=>{o.moveTo(0,0),o.rect(-n/2,-n/2,n,n)}})}}const QCe={radial:"radial"},Su=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],Cu=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class e_e{constructor(t){Dr(this,"_canvas"),Dr(this,"_options"),Dr(this,"_qr"),Dr(this,"_image"),this._canvas=document.createElement("canvas"),this._canvas.width=t.width,this._canvas.height=t.height,this._options=t}get context(){return this._canvas.getContext("2d")}get width(){return this._canvas.width}get height(){return this._canvas.height}getCanvas(){return this._canvas}clear(){const t=this.context;t&&t.clearRect(0,0,this._canvas.width,this._canvas.height)}async drawQR(t){const n=t.getModuleCount(),o=Math.min(this._options.width,this._options.height)-this._options.margin*2,r=Math.floor(o/n);let l={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=t,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:a,qrOptions:s}=this._options,i=a.imageSize*XCe[s.errorCorrectionLevel],u=Math.floor(i*n*n);l=qCe({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:u,maxHiddenAxisDots:n-14,dotSize:r})}this.clear(),this.drawBackground(),this.drawDots((a,s)=>{var i,u,d,c,h,v;return!(this._options.imageOptions.hideBackgroundDots&&a>=(n-l.hideXDots)/2&&a<(n+l.hideXDots)/2&&s>=(n-l.hideYDots)/2&&s<(n+l.hideYDots)/2||(i=Su[a])!=null&&i[s]||(u=Su[a-n+7])!=null&&u[s]||(d=Su[a])!=null&&d[s-n+7]||(c=Cu[a])!=null&&c[s]||(h=Cu[a-n+7])!=null&&h[s]||(v=Cu[a])!=null&&v[s-n+7])}),this.drawCorners(),this._options.image&&this.drawImage({width:l.width,height:l.height,count:n,dotSize:r})}drawBackground(){const t=this.context,n=this._options;if(t){if(n.backgroundOptions.gradient){const o=n.backgroundOptions.gradient,r=this._createGradient({context:t,options:o,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});o.colorStops.forEach(({offset:l,color:a})=>{r.addColorStop(l,a)}),t.fillStyle=r}else n.backgroundOptions.color&&(t.fillStyle=n.backgroundOptions.color);t.fillRect(0,0,this._canvas.width,this._canvas.height)}}drawDots(t){if(!this._qr)throw"QR code is not defined";const n=this.context;if(!n)throw"QR code is not defined";const o=this._options,r=this._qr.getModuleCount();if(r>o.width||r>o.height)throw"The canvas is too small.";const l=Math.min(o.width,o.height)-o.margin*2,a=Math.floor(l/r),s=Math.floor((o.width-r*a)/2),i=Math.floor((o.height-r*a)/2),u=new W1({context:n,type:o.dotsOptions.type});n.beginPath();for(let d=0;d<r;d++)for(let c=0;c<r;c++)t&&!t(d,c)||this._qr.isDark(d,c)&&u.draw(s+d*a,i+c*a,a,(h,v)=>d+h<0||c+v<0||d+h>=r||c+v>=r||t&&!t(d+h,c+v)?!1:!!this._qr&&this._qr.isDark(d+h,c+v));if(o.dotsOptions.gradient){const d=o.dotsOptions.gradient,c=this._createGradient({context:n,options:d,additionalRotation:0,x:s,y:i,size:r*a});d.colorStops.forEach(({offset:h,color:v})=>{c.addColorStop(h,v)}),n.fillStyle=n.strokeStyle=c}else o.dotsOptions.color&&(n.fillStyle=n.strokeStyle=o.dotsOptions.color);n.fill("evenodd")}drawCorners(t){if(!this._qr)throw"QR code is not defined";const n=this.context;if(!n)throw"QR code is not defined";const o=this._options,r=this._qr.getModuleCount(),l=Math.min(o.width,o.height)-o.margin*2,a=Math.floor(l/r),s=a*7,i=a*3,u=Math.floor((o.width-r*a)/2),d=Math.floor((o.height-r*a)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([c,h,v])=>{var m,g,w,b,E,S,C,_,k,O;if(t&&!t(c,h))return;const I=u+c*a*(r-7),T=d+h*a*(r-7);if((m=o.cornersSquareOptions)!=null&&m.type){const M=new ZCe({context:n,type:(g=o.cornersSquareOptions)==null?void 0:g.type});n.beginPath(),M.draw(I,T,s,v)}else{const M=new W1({context:n,type:o.dotsOptions.type});n.beginPath();for(let R=0;R<Su.length;R++)for(let $=0;$<Su[R].length;$++)(w=Su[R])!=null&&w[$]&&M.draw(I+R*a,T+$*a,a,(L,V)=>{var D;return!!((D=Su[R+L])!=null&&D[$+V])})}if((b=o.cornersSquareOptions)!=null&&b.gradient){const M=o.cornersSquareOptions.gradient,R=this._createGradient({context:n,options:M,additionalRotation:v,x:I,y:T,size:s});M.colorStops.forEach(({offset:$,color:L})=>{R.addColorStop($,L)}),n.fillStyle=n.strokeStyle=R}else(E=o.cornersSquareOptions)!=null&&E.color&&(n.fillStyle=n.strokeStyle=o.cornersSquareOptions.color);if(n.fill("evenodd"),(S=o.cornersDotOptions)!=null&&S.type){const M=new JCe({context:n,type:(C=o.cornersDotOptions)==null?void 0:C.type});n.beginPath(),M.draw(I+a*2,T+a*2,i,v)}else{const M=new W1({context:n,type:o.dotsOptions.type});n.beginPath();for(let R=0;R<Cu.length;R++)for(let $=0;$<Cu[R].length;$++)(_=Cu[R])!=null&&_[$]&&M.draw(I+R*a,T+$*a,a,(L,V)=>{var D;return!!((D=Cu[R+L])!=null&&D[$+V])})}if((k=o.cornersDotOptions)!=null&&k.gradient){const M=o.cornersDotOptions.gradient,R=this._createGradient({context:n,options:M,additionalRotation:v,x:I+a*2,y:T+a*2,size:i});M.colorStops.forEach(({offset:$,color:L})=>{R.addColorStop($,L)}),n.fillStyle=n.strokeStyle=R}else(O=o.cornersDotOptions)!=null&&O.color&&(n.fillStyle=n.strokeStyle=o.cornersDotOptions.color);n.fill("evenodd")})}loadImage(){return new Promise((t,n)=>{const o=this._options,r=new Image;if(!o.image)return n("Image is not defined");typeof o.imageOptions.crossOrigin=="string"&&(r.crossOrigin=o.imageOptions.crossOrigin),this._image=r,r.onload=()=>{t()},r.src=o.image})}drawImage({width:t,height:n,count:o,dotSize:r}){const l=this.context;if(!l)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";const a=this._options,s=Math.floor((a.width-o*r)/2),i=Math.floor((a.height-o*r)/2),u=s+a.imageOptions.margin+(o*r-t)/2,d=i+a.imageOptions.margin+(o*r-n)/2,c=t-a.imageOptions.margin*2,h=n-a.imageOptions.margin*2;l.drawImage(this._image,u,d,c<0?0:c,h<0?0:h)}_createGradient({context:t,options:n,additionalRotation:o,x:r,y:l,size:a}){let s;if(n.type===QCe.radial)s=t.createRadialGradient(r+a/2,l+a/2,0,r+a/2,l+a/2,a/2);else{const i=((n.rotation||0)+o)%(2*Math.PI),u=(i+2*Math.PI)%(2*Math.PI);let d=r+a/2,c=l+a/2,h=r+a/2,v=l+a/2;u>=0&&u<=.25*Math.PI||u>1.75*Math.PI&&u<=2*Math.PI?(d=d-a/2,c=c-a/2*Math.tan(i),h=h+a/2,v=v+a/2*Math.tan(i)):u>.25*Math.PI&&u<=.75*Math.PI?(c=c-a/2,d=d-a/2/Math.tan(i),v=v+a/2,h=h+a/2/Math.tan(i)):u>.75*Math.PI&&u<=1.25*Math.PI?(d=d+a/2,c=c+a/2*Math.tan(i),h=h-a/2,v=v-a/2*Math.tan(i)):u>1.25*Math.PI&&u<=1.75*Math.PI&&(c=c+a/2,d=d+a/2/Math.tan(i),v=v-a/2,h=h-a/2/Math.tan(i)),s=t.createLinearGradient(Math.round(d),Math.round(c),Math.round(h),Math.round(v))}return s}}const KN={};for(let e=0;e<=40;e++)KN[e]=e;const t_e={Q:"Q"},UO={width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:KN[0],mode:void 0,errorCorrectionLevel:t_e.Q},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};function Cg(e){const t={...e};if(!t.colorStops||!t.colorStops.length)throw"Field 'colorStops' is required in gradient";return t.rotation?t.rotation=Number(t.rotation):t.rotation=0,t.colorStops=t.colorStops.map(n=>({...n,offset:Number(n.offset)})),t}function GO(e){const t={...e};return t.width=Number(t.width),t.height=Number(t.height),t.margin=Number(t.margin),t.imageOptions={...t.imageOptions,hideBackgroundDots:!!t.imageOptions.hideBackgroundDots,imageSize:Number(t.imageOptions.imageSize),margin:Number(t.imageOptions.margin)},t.margin>Math.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions={...t.dotsOptions},t.dotsOptions.gradient&&(t.dotsOptions.gradient=Cg(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions={...t.cornersSquareOptions},t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=Cg(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions={...t.cornersDotOptions},t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=Cg(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions={...t.backgroundOptions},t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=Cg(t.backgroundOptions.gradient))),t}function n_e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jN={exports:{}};(function(e,t){var n=function(){var o=function(_,k){var O=236,I=17,T=_,M=l[k],R=null,$=0,L=null,V=[],D={},N=function(ae,te){$=T*4+17,R=function(pe){for(var he=new Array(pe),se=0;se<pe;se+=1){he[se]=new Array(pe);for(var Y=0;Y<pe;Y+=1)he[se][Y]=null}return he}($),H(0,0),H($-7,0),H(0,$-7),q(),z(),ie(ae,te),T>=7&&Z(ae),L==null&&(L=Ce(T,M,V)),re(L,te)},H=function(ae,te){for(var pe=-1;pe<=7;pe+=1)if(!(ae+pe<=-1||$<=ae+pe))for(var he=-1;he<=7;he+=1)te+he<=-1||$<=te+he||(0<=pe&&pe<=6&&(he==0||he==6)||0<=he&&he<=6&&(pe==0||pe==6)||2<=pe&&pe<=4&&2<=he&&he<=4?R[ae+pe][te+he]=!0:R[ae+pe][te+he]=!1)},B=function(){for(var ae=0,te=0,pe=0;pe<8;pe+=1){N(!0,pe);var he=s.getLostPoint(D);(pe==0||ae>he)&&(ae=he,te=pe)}return te},z=function(){for(var ae=8;ae<$-8;ae+=1)R[ae][6]==null&&(R[ae][6]=ae%2==0);for(var te=8;te<$-8;te+=1)R[6][te]==null&&(R[6][te]=te%2==0)},q=function(){for(var ae=s.getPatternPosition(T),te=0;te<ae.length;te+=1)for(var pe=0;pe<ae.length;pe+=1){var he=ae[te],se=ae[pe];if(R[he][se]==null)for(var Y=-2;Y<=2;Y+=1)for(var ne=-2;ne<=2;ne+=1)Y==-2||Y==2||ne==-2||ne==2||Y==0&&ne==0?R[he+Y][se+ne]=!0:R[he+Y][se+ne]=!1}},Z=function(ae){for(var te=s.getBCHTypeNumber(T),pe=0;pe<18;pe+=1){var he=!ae&&(te>>pe&1)==1;R[Math.floor(pe/3)][pe%3+$-8-3]=he}for(var pe=0;pe<18;pe+=1){var he=!ae&&(te>>pe&1)==1;R[pe%3+$-8-3][Math.floor(pe/3)]=he}},ie=function(ae,te){for(var pe=M<<3|te,he=s.getBCHTypeInfo(pe),se=0;se<15;se+=1){var Y=!ae&&(he>>se&1)==1;se<6?R[se][8]=Y:se<8?R[se+1][8]=Y:R[$-15+se][8]=Y}for(var se=0;se<15;se+=1){var Y=!ae&&(he>>se&1)==1;se<8?R[8][$-se-1]=Y:se<9?R[8][15-se-1+1]=Y:R[8][15-se-1]=Y}R[$-8][8]=!ae},re=function(ae,te){for(var pe=-1,he=$-1,se=7,Y=0,ne=s.getMaskFunction(te),ye=$-1;ye>0;ye-=2)for(ye==6&&(ye-=1);;){for(var Re=0;Re<2;Re+=1)if(R[he][ye-Re]==null){var Se=!1;Y<ae.length&&(Se=(ae[Y]>>>se&1)==1);var _e=ne(he,ye-Re);_e&&(Se=!Se),R[he][ye-Re]=Se,se-=1,se==-1&&(Y+=1,se=7)}if(he+=pe,he<0||$<=he){he-=pe,pe=-pe;break}}},ve=function(ae,te){for(var pe=0,he=0,se=0,Y=new Array(te.length),ne=new Array(te.length),ye=0;ye<te.length;ye+=1){var Re=te[ye].dataCount,Se=te[ye].totalCount-Re;he=Math.max(he,Re),se=Math.max(se,Se),Y[ye]=new Array(Re);for(var _e=0;_e<Y[ye].length;_e+=1)Y[ye][_e]=255&ae.getBuffer()[_e+pe];pe+=Re;var Ae=s.getErrorCorrectPolynomial(Se),Le=u(Y[ye],Ae.getLength()-1),He=Le.mod(Ae);ne[ye]=new Array(Ae.getLength()-1);for(var _e=0;_e<ne[ye].length;_e+=1){var Ke=_e+He.getLength()-ne[ye].length;ne[ye][_e]=Ke>=0?He.getAt(Ke):0}}for(var ot=0,_e=0;_e<te.length;_e+=1)ot+=te[_e].totalCount;for(var ue=new Array(ot),Ie=0,_e=0;_e<he;_e+=1)for(var ye=0;ye<te.length;ye+=1)_e<Y[ye].length&&(ue[Ie]=Y[ye][_e],Ie+=1);for(var _e=0;_e<se;_e+=1)for(var ye=0;ye<te.length;ye+=1)_e<ne[ye].length&&(ue[Ie]=ne[ye][_e],Ie+=1);return ue},Ce=function(ae,te,pe){for(var he=d.getRSBlocks(ae,te),se=c(),Y=0;Y<pe.length;Y+=1){var ne=pe[Y];se.put(ne.getMode(),4),se.put(ne.getLength(),s.getLengthInBits(ne.getMode(),ae)),ne.write(se)}for(var ye=0,Y=0;Y<he.length;Y+=1)ye+=he[Y].dataCount;if(se.getLengthInBits()>ye*8)throw"code length overflow. ("+se.getLengthInBits()+">"+ye*8+")";for(se.getLengthInBits()+4<=ye*8&&se.put(0,4);se.getLengthInBits()%8!=0;)se.putBit(!1);for(;!(se.getLengthInBits()>=ye*8||(se.put(O,8),se.getLengthInBits()>=ye*8));)se.put(I,8);return ve(se,he)};D.addData=function(ae,te){te=te||"Byte";var pe=null;switch(te){case"Numeric":pe=h(ae);break;case"Alphanumeric":pe=v(ae);break;case"Byte":pe=m(ae);break;case"Kanji":pe=g(ae);break;default:throw"mode:"+te}V.push(pe),L=null},D.isDark=function(ae,te){if(ae<0||$<=ae||te<0||$<=te)throw ae+","+te;return R[ae][te]},D.getModuleCount=function(){return $},D.make=function(){if(T<1){for(var ae=1;ae<40;ae++){for(var te=d.getRSBlocks(ae,M),pe=c(),he=0;he<V.length;he++){var se=V[he];pe.put(se.getMode(),4),pe.put(se.getLength(),s.getLengthInBits(se.getMode(),ae)),se.write(pe)}for(var Y=0,he=0;he<te.length;he++)Y+=te[he].dataCount;if(pe.getLengthInBits()<=Y*8)break}T=ae}N(!1,B())},D.createTableTag=function(ae,te){ae=ae||2,te=typeof te>"u"?ae*4:te;var pe="";pe+='<table style="',pe+=" border-width: 0px; border-style: none;",pe+=" border-collapse: collapse;",pe+=" padding: 0px; margin: "+te+"px;",pe+='">',pe+="<tbody>";for(var he=0;he<D.getModuleCount();he+=1){pe+="<tr>";for(var se=0;se<D.getModuleCount();se+=1)pe+='<td style="',pe+=" border-width: 0px; border-style: none;",pe+=" border-collapse: collapse;",pe+=" padding: 0px; margin: 0px;",pe+=" width: "+ae+"px;",pe+=" height: "+ae+"px;",pe+=" background-color: ",pe+=D.isDark(he,se)?"#000000":"#ffffff",pe+=";",pe+='"/>';pe+="</tr>"}return pe+="</tbody>",pe+="</table>",pe},D.createSvgTag=function(ae,te,pe,he){var se={};typeof arguments[0]=="object"&&(se=arguments[0],ae=se.cellSize,te=se.margin,pe=se.alt,he=se.title),ae=ae||2,te=typeof te>"u"?ae*4:te,pe=typeof pe=="string"?{text:pe}:pe||{},pe.text=pe.text||null,pe.id=pe.text?pe.id||"qrcode-description":null,he=typeof he=="string"?{text:he}:he||{},he.text=he.text||null,he.id=he.text?he.id||"qrcode-title":null;var Y=D.getModuleCount()*ae+te*2,ne,ye,Re,Se,_e="",Ae;for(Ae="l"+ae+",0 0,"+ae+" -"+ae+",0 0,-"+ae+"z ",_e+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',_e+=se.scalable?"":' width="'+Y+'px" height="'+Y+'px"',_e+=' viewBox="0 0 '+Y+" "+Y+'" ',_e+=' preserveAspectRatio="xMinYMin meet"',_e+=he.text||pe.text?' role="img" aria-labelledby="'+Ee([he.id,pe.id].join(" ").trim())+'"':"",_e+=">",_e+=he.text?'<title id="'+Ee(he.id)+'">'+Ee(he.text)+"</title>":"",_e+=pe.text?'<description id="'+Ee(pe.id)+'">'+Ee(pe.text)+"</description>":"",_e+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',_e+='<path d="',Re=0;Re<D.getModuleCount();Re+=1)for(Se=Re*ae+te,ne=0;ne<D.getModuleCount();ne+=1)D.isDark(Re,ne)&&(ye=ne*ae+te,_e+="M"+ye+","+Se+Ae);return _e+='" stroke="transparent" fill="black"/>',_e+="</svg>",_e},D.createDataURL=function(ae,te){ae=ae||2,te=typeof te>"u"?ae*4:te;var pe=D.getModuleCount()*ae+te*2,he=te,se=pe-te;return C(pe,pe,function(Y,ne){if(he<=Y&&Y<se&&he<=ne&&ne<se){var ye=Math.floor((Y-he)/ae),Re=Math.floor((ne-he)/ae);return D.isDark(Re,ye)?0:1}else return 1})},D.createImgTag=function(ae,te,pe){ae=ae||2,te=typeof te>"u"?ae*4:te;var he=D.getModuleCount()*ae+te*2,se="";return se+="<img",se+=' src="',se+=D.createDataURL(ae,te),se+='"',se+=' width="',se+=he,se+='"',se+=' height="',se+=he,se+='"',pe&&(se+=' alt="',se+=Ee(pe),se+='"'),se+="/>",se};var Ee=function(ae){for(var te="",pe=0;pe<ae.length;pe+=1){var he=ae.charAt(pe);switch(he){case"<":te+="&lt;";break;case">":te+="&gt;";break;case"&":te+="&amp;";break;case'"':te+="&quot;";break;default:te+=he;break}}return te},ee=function(ae){var te=1;ae=typeof ae>"u"?te*2:ae;var pe=D.getModuleCount()*te+ae*2,he=ae,se=pe-ae,Y,ne,ye,Re,Se,_e={"██":"█","█ ":"▀"," █":"▄"," ":" "},Ae={"██":"▀","█ ":"▀"," █":" "," ":" "},Le="";for(Y=0;Y<pe;Y+=2){for(ye=Math.floor((Y-he)/te),Re=Math.floor((Y+1-he)/te),ne=0;ne<pe;ne+=1)Se="█",he<=ne&&ne<se&&he<=Y&&Y<se&&D.isDark(ye,Math.floor((ne-he)/te))&&(Se=" "),he<=ne&&ne<se&&he<=Y+1&&Y+1<se&&D.isDark(Re,Math.floor((ne-he)/te))?Se+=" ":Se+="█",Le+=ae<1&&Y+1>=se?Ae[Se]:_e[Se];Le+=`
119`}return pe%2&&ae>0?Le.substring(0,Le.length-pe-1)+Array(pe+1).join("▀"):Le.substring(0,Le.length-1)};return D.createASCII=function(ae,te){if(ae=ae||1,ae<2)return ee(te);ae-=1,te=typeof te>"u"?ae*2:te;var pe=D.getModuleCount()*ae+te*2,he=te,se=pe-te,Y,ne,ye,Re,Se=Array(ae+1).join("██"),_e=Array(ae+1).join(" "),Ae="",Le="";for(Y=0;Y<pe;Y+=1){for(ye=Math.floor((Y-he)/ae),Le="",ne=0;ne<pe;ne+=1)Re=1,he<=ne&&ne<se&&he<=Y&&Y<se&&D.isDark(ye,Math.floor((ne-he)/ae))&&(Re=0),Le+=Re?Se:_e;for(ye=0;ye<ae;ye+=1)Ae+=Le+`
120`}return Ae.substring(0,Ae.length-1)},D.renderTo2dContext=function(ae,te){te=te||2;for(var pe=D.getModuleCount(),he=0;he<pe;he++)for(var se=0;se<pe;se++)ae.fillStyle=D.isDark(he,se)?"black":"white",ae.fillRect(he*te,se*te,te,te)},D};o.stringToBytesFuncs={default:function(_){for(var k=[],O=0;O<_.length;O+=1){var I=_.charCodeAt(O);k.push(I&255)}return k}},o.stringToBytes=o.stringToBytesFuncs.default,o.createStringToBytes=function(_,k){var O=function(){for(var T=E(_),M=function(){var z=T.read();if(z==-1)throw"eof";return z},R=0,$={};;){var L=T.read();if(L==-1)break;var V=M(),D=M(),N=M(),H=String.fromCharCode(L<<8|V),B=D<<8|N;$[H]=B,R+=1}if(R!=k)throw R+" != "+k;return $}(),I=63;return function(T){for(var M=[],R=0;R<T.length;R+=1){var $=T.charCodeAt(R);if($<128)M.push($);else{var L=O[T.charAt(R)];typeof L=="number"?(L&255)==L?M.push(L):(M.push(L>>>8),M.push(L&255)):M.push(I)}}return M}};var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},l={L:1,M:0,Q:3,H:2},a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var _=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],k=1335,O=7973,I=21522,T={},M=function(R){for(var $=0;R!=0;)$+=1,R>>>=1;return $};return T.getBCHTypeInfo=function(R){for(var $=R<<10;M($)-M(k)>=0;)$^=k<<M($)-M(k);return(R<<10|$)^I},T.getBCHTypeNumber=function(R){for(var $=R<<12;M($)-M(O)>=0;)$^=O<<M($)-M(O);return R<<12|$},T.getPatternPosition=function(R){return _[R-1]},T.getMaskFunction=function(R){switch(R){case a.PATTERN000:return function($,L){return($+L)%2==0};case a.PATTERN001:return function($,L){return $%2==0};case a.PATTERN010:return function($,L){return L%3==0};case a.PATTERN011:return function($,L){return($+L)%3==0};case a.PATTERN100:return function($,L){return(Math.floor($/2)+Math.floor(L/3))%2==0};case a.PATTERN101:return function($,L){return $*L%2+$*L%3==0};case a.PATTERN110:return function($,L){return($*L%2+$*L%3)%2==0};case a.PATTERN111:return function($,L){return($*L%3+($+L)%2)%2==0};default:throw"bad maskPattern:"+R}},T.getErrorCorrectPolynomial=function(R){for(var $=u([1],0),L=0;L<R;L+=1)$=$.multiply(u([1,i.gexp(L)],0));return $},T.getLengthInBits=function(R,$){if(1<=$&&$<10)switch(R){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw"mode:"+R}else if($<27)switch(R){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw"mode:"+R}else if($<41)switch(R){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw"mode:"+R}else throw"type:"+$},T.getLostPoint=function(R){for(var $=R.getModuleCount(),L=0,V=0;V<$;V+=1)for(var D=0;D<$;D+=1){for(var N=0,H=R.isDark(V,D),B=-1;B<=1;B+=1)if(!(V+B<0||$<=V+B))for(var z=-1;z<=1;z+=1)D+z<0||$<=D+z||B==0&&z==0||H==R.isDark(V+B,D+z)&&(N+=1);N>5&&(L+=3+N-5)}for(var V=0;V<$-1;V+=1)for(var D=0;D<$-1;D+=1){var q=0;R.isDark(V,D)&&(q+=1),R.isDark(V+1,D)&&(q+=1),R.isDark(V,D+1)&&(q+=1),R.isDark(V+1,D+1)&&(q+=1),(q==0||q==4)&&(L+=3)}for(var V=0;V<$;V+=1)for(var D=0;D<$-6;D+=1)R.isDark(V,D)&&!R.isDark(V,D+1)&&R.isDark(V,D+2)&&R.isDark(V,D+3)&&R.isDark(V,D+4)&&!R.isDark(V,D+5)&&R.isDark(V,D+6)&&(L+=40);for(var D=0;D<$;D+=1)for(var V=0;V<$-6;V+=1)R.isDark(V,D)&&!R.isDark(V+1,D)&&R.isDark(V+2,D)&&R.isDark(V+3,D)&&R.isDark(V+4,D)&&!R.isDark(V+5,D)&&R.isDark(V+6,D)&&(L+=40);for(var Z=0,D=0;D<$;D+=1)for(var V=0;V<$;V+=1)R.isDark(V,D)&&(Z+=1);var ie=Math.abs(100*Z/$/$-50)/5;return L+=ie*10,L},T}(),i=function(){for(var _=new Array(256),k=new Array(256),O=0;O<8;O+=1)_[O]=1<<O;for(var O=8;O<256;O+=1)_[O]=_[O-4]^_[O-5]^_[O-6]^_[O-8];for(var O=0;O<255;O+=1)k[_[O]]=O;var I={};return I.glog=function(T){if(T<1)throw"glog("+T+")";return k[T]},I.gexp=function(T){for(;T<0;)T+=255;for(;T>=256;)T-=255;return _[T]},I}();function u(_,k){if(typeof _.length>"u")throw _.length+"/"+k;var O=function(){for(var T=0;T<_.length&&_[T]==0;)T+=1;for(var M=new Array(_.length-T+k),R=0;R<_.length-T;R+=1)M[R]=_[R+T];return M}(),I={};return I.getAt=function(T){return O[T]},I.getLength=function(){return O.length},I.multiply=function(T){for(var M=new Array(I.getLength()+T.getLength()-1),R=0;R<I.getLength();R+=1)for(var $=0;$<T.getLength();$+=1)M[R+$]^=i.gexp(i.glog(I.getAt(R))+i.glog(T.getAt($)));return u(M,0)},I.mod=function(T){if(I.getLength()-T.getLength()<0)return I;for(var M=i.glog(I.getAt(0))-i.glog(T.getAt(0)),R=new Array(I.getLength()),$=0;$<I.getLength();$+=1)R[$]=I.getAt($);for(var $=0;$<T.getLength();$+=1)R[$]^=i.gexp(i.glog(T.getAt($))+M);return u(R,0).mod(T)},I}var d=function(){var _=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],k=function(T,M){var R={};return R.totalCount=T,R.dataCount=M,R},O={},I=function(T,M){switch(M){case l.L:return _[(T-1)*4+0];case l.M:return _[(T-1)*4+1];case l.Q:return _[(T-1)*4+2];case l.H:return _[(T-1)*4+3];default:return}};return O.getRSBlocks=function(T,M){var R=I(T,M);if(typeof R>"u")throw"bad rs block @ typeNumber:"+T+"/errorCorrectionLevel:"+M;for(var $=R.length/3,L=[],V=0;V<$;V+=1)for(var D=R[V*3+0],N=R[V*3+1],H=R[V*3+2],B=0;B<D;B+=1)L.push(k(N,H));return L},O}(),c=function(){var _=[],k=0,O={};return O.getBuffer=function(){return _},O.getAt=function(I){var T=Math.floor(I/8);return(_[T]>>>7-I%8&1)==1},O.put=function(I,T){for(var M=0;M<T;M+=1)O.putBit((I>>>T-M-1&1)==1)},O.getLengthInBits=function(){return k},O.putBit=function(I){var T=Math.floor(k/8);_.length<=T&&_.push(0),I&&(_[T]|=128>>>k%8),k+=1},O},h=function(_){var k=r.MODE_NUMBER,O=_,I={};I.getMode=function(){return k},I.getLength=function(R){return O.length},I.write=function(R){for(var $=O,L=0;L+2<$.length;)R.put(T($.substring(L,L+3)),10),L+=3;L<$.length&&($.length-L==1?R.put(T($.substring(L,L+1)),4):$.length-L==2&&R.put(T($.substring(L,L+2)),7))};var T=function(R){for(var $=0,L=0;L<R.length;L+=1)$=$*10+M(R.charAt(L));return $},M=function(R){if("0"<=R&&R<="9")return R.charCodeAt(0)-48;throw"illegal char :"+R};return I},v=function(_){var k=r.MODE_ALPHA_NUM,O=_,I={};I.getMode=function(){return k},I.getLength=function(M){return O.length},I.write=function(M){for(var R=O,$=0;$+1<R.length;)M.put(T(R.charAt($))*45+T(R.charAt($+1)),11),$+=2;$<R.length&&M.put(T(R.charAt($)),6)};var T=function(M){if("0"<=M&&M<="9")return M.charCodeAt(0)-48;if("A"<=M&&M<="Z")return M.charCodeAt(0)-65+10;switch(M){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+M}};return I},m=function(_){var k=r.MODE_8BIT_BYTE,O=o.stringToBytes(_),I={};return I.getMode=function(){return k},I.getLength=function(T){return O.length},I.write=function(T){for(var M=0;M<O.length;M+=1)T.put(O[M],8)},I},g=function(_){var k=r.MODE_KANJI,O=o.stringToBytesFuncs.SJIS;if(!O)throw"sjis not supported.";(function(M,R){var $=O(M);if($.length!=2||($[0]<<8|$[1])!=R)throw"sjis not supported."})("友",38726);var I=O(_),T={};return T.getMode=function(){return k},T.getLength=function(M){return~~(I.length/2)},T.write=function(M){for(var R=I,$=0;$+1<R.length;){var L=(255&R[$])<<8|255&R[$+1];if(33088<=L&&L<=40956)L-=33088;else if(57408<=L&&L<=60351)L-=49472;else throw"illegal char at "+($+1)+"/"+L;L=(L>>>8&255)*192+(L&255),M.put(L,13),$+=2}if($<R.length)throw"illegal char at "+($+1)},T},w=function(){var _=[],k={};return k.writeByte=function(O){_.push(O&255)},k.writeShort=function(O){k.writeByte(O),k.writeByte(O>>>8)},k.writeBytes=function(O,I,T){I=I||0,T=T||O.length;for(var M=0;M<T;M+=1)k.writeByte(O[M+I])},k.writeString=function(O){for(var I=0;I<O.length;I+=1)k.writeByte(O.charCodeAt(I))},k.toByteArray=function(){return _},k.toString=function(){var O="";O+="[";for(var I=0;I<_.length;I+=1)I>0&&(O+=","),O+=_[I];return O+="]",O},k},b=function(){var _=0,k=0,O=0,I="",T={},M=function($){I+=String.fromCharCode(R($&63))},R=function($){if(!($<0)){if($<26)return 65+$;if($<52)return 97+($-26);if($<62)return 48+($-52);if($==62)return 43;if($==63)return 47}throw"n:"+$};return T.writeByte=function($){for(_=_<<8|$&255,k+=8,O+=1;k>=6;)M(_>>>k-6),k-=6},T.flush=function(){if(k>0&&(M(_<<6-k),_=0,k=0),O%3!=0)for(var $=3-O%3,L=0;L<$;L+=1)I+="="},T.toString=function(){return I},T},E=function(_){var k=_,O=0,I=0,T=0,M={};M.read=function(){for(;T<8;){if(O>=k.length){if(T==0)return-1;throw"unexpected end of file./"+T}var $=k.charAt(O);if(O+=1,$=="=")return T=0,-1;$.match(/^\s$/)||(I=I<<6|R($.charCodeAt(0)),T+=6)}var L=I>>>T-8&255;return T-=8,L};var R=function($){if(65<=$&&$<=90)return $-65;if(97<=$&&$<=122)return $-97+26;if(48<=$&&$<=57)return $-48+52;if($==43)return 62;if($==47)return 63;throw"c:"+$};return M},S=function(_,k){var O=_,I=k,T=new Array(_*k),M={};M.setPixel=function(V,D,N){T[D*O+V]=N},M.write=function(V){V.writeString("GIF87a"),V.writeShort(O),V.writeShort(I),V.writeByte(128),V.writeByte(0),V.writeByte(0),V.writeByte(0),V.writeByte(0),V.writeByte(0),V.writeByte(255),V.writeByte(255),V.writeByte(255),V.writeString(","),V.writeShort(0),V.writeShort(0),V.writeShort(O),V.writeShort(I),V.writeByte(0);var D=2,N=$(D);V.writeByte(D);for(var H=0;N.length-H>255;)V.writeByte(255),V.writeBytes(N,H,255),H+=255;V.writeByte(N.length-H),V.writeBytes(N,H,N.length-H),V.writeByte(0),V.writeString(";")};var R=function(V){var D=V,N=0,H=0,B={};return B.write=function(z,q){if(z>>>q)throw"length over";for(;N+q>=8;)D.writeByte(255&(z<<N|H)),q-=8-N,z>>>=8-N,H=0,N=0;H=z<<N|H,N=N+q},B.flush=function(){N>0&&D.writeByte(H)},B},$=function(V){for(var D=1<<V,N=(1<<V)+1,H=V+1,B=L(),z=0;z<D;z+=1)B.add(String.fromCharCode(z));B.add(String.fromCharCode(D)),B.add(String.fromCharCode(N));var q=w(),Z=R(q);Z.write(D,H);var ie=0,re=String.fromCharCode(T[ie]);for(ie+=1;ie<T.length;){var ve=String.fromCharCode(T[ie]);ie+=1,B.contains(re+ve)?re=re+ve:(Z.write(B.indexOf(re),H),B.size()<4095&&(B.size()==1<<H&&(H+=1),B.add(re+ve)),re=ve)}return Z.write(B.indexOf(re),H),Z.write(N,H),Z.flush(),q.toByteArray()},L=function(){var V={},D=0,N={};return N.add=function(H){if(N.contains(H))throw"dup key:"+H;V[H]=D,D+=1},N.size=function(){return D},N.indexOf=function(H){return V[H]},N.contains=function(H){return typeof V[H]<"u"},N};return M},C=function(_,k,O){for(var I=S(_,k),T=0;T<k;T+=1)for(var M=0;M<_;M+=1)I.setPixel(M,T,O(M,T));var R=w();I.write(R);for(var $=b(),L=R.toByteArray(),V=0;V<L.length;V+=1)$.writeByte(L[V]);return $.flush(),"data:image/gif;base64,"+$};return o}();(function(){n.stringToBytesFuncs["UTF-8"]=function(o){function r(l){for(var a=[],s=0;s<l.length;s++){var i=l.charCodeAt(s);i<128?a.push(i):i<2048?a.push(192|i>>6,128|i&63):i<55296||i>=57344?a.push(224|i>>12,128|i>>6&63,128|i&63):(s++,i=65536+((i&1023)<<10|l.charCodeAt(s)&1023),a.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|i&63))}return a}return r(o)}})(),function(o){e.exports=o()}(function(){return n})})(jN);var o_e=jN.exports;const r_e=n_e(o_e);class L_{constructor(t){Dr(this,"_options"),Dr(this,"_container"),Dr(this,"_canvas"),Dr(this,"_qr"),Dr(this,"_drawingPromise"),this._options=t?GO(e0(UO,t)):UO,this.update()}static _clearContainer(t){t&&(t.innerHTML="")}update(t){L_._clearContainer(this._container),this._options=t?GO(e0(this._options,t)):this._options,this._options.data&&(this._qr=r_e(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||GCe(this._options.data)),this._qr.make(),this._canvas=new e_e(this._options),this._drawingPromise=this._canvas.drawQR(this._qr),this.append(this._container))}append(t){if(t){if(typeof t.appendChild!="function")throw"Container should be a single DOM node";this._canvas&&t.appendChild(this._canvas.getCanvas()),this._container=t}}async getImageUrl(t){return this._drawingPromise&&await this._drawingPromise===void 0&&this._canvas?this._canvas.getCanvas().toDataURL(`image/${t}`):""}download(t){this._drawingPromise&&this._drawingPromise.then(()=>{if(!this._canvas)return;const n=t,o=n.extension||"png",r=n.name||"qr",l=this._canvas.getCanvas().toDataURL(`image/${o}`);YCe(l,`${r}.${o}`)})}}const a_e=["src"],l_e={key:1},s_e=MN({__name:"QRCodeVue3Async",props:{value:{default:""},width:{default:300},height:{default:300},margin:{default:0},imgclass:{default:""},myclass:{default:""},downloadButton:{default:""},buttonName:{default:"Download"},qrOptions:{default:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"}},imageOptions:{default:{hideBackgroundDots:!0,imageSize:.4,margin:0}},dotsOptions:{default:{type:"dots",color:"#6a1a4c",gradient:{type:"linear",rotation:0,colorStops:[{offset:0,color:"#6a1a4c"},{offset:1,color:"#6a1a4c"}]}}},backgroundOptions:{default:{color:"#ffffff"}},cornersSquareOptions:{default:{type:"dot",color:"#000000"}},cornersDotOptions:{default:{type:void 0,color:"#000000"}},fileExt:{default:"png"},image:{default:""},download:{type:Boolean,default:!1},downloadOptions:{default:{name:"vqr",extension:"png"}}},async setup(e){let t,n;const o=e,r=new L_({data:o.value,width:o.width,height:o.height,margin:o.margin,qrOptions:o.qrOptions,imageOptions:o.imageOptions,dotsOptions:o.dotsOptions,backgroundOptions:o.backgroundOptions,image:o.image,cornersSquareOptions:o.cornersSquareOptions,cornersDotOptions:o.cornersDotOptions});let l=([t,n]=cCe(()=>r.getImageUrl(o.fileExt)),t=await t,n(),t);function a(){r.download(o.downloadOptions)}return(s,i)=>(kd(),V1("div",null,[em(l)?(kd(),V1("div",{key:0,class:Sd(s.myclass)},[Xm("img",{src:em(l),class:Sd(s.imgclass),crossorigin:"anonymous"},null,10,a_e)],2)):KO("",!0),em(l)&&s.download?(kd(),V1("div",l_e,[Xm("button",{onClick:a,class:Sd(s.downloadButton)},dN(s.buttonName),3)])):KO("",!0)]))}}),i_e=MN({__name:"QRCodeVue3",props:{value:{default:""},width:{default:300},height:{default:300},margin:{default:0},imgclass:{default:""},myclass:{default:""},downloadButton:{default:""},buttonName:{default:"Download"},qrOptions:{default:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"}},imageOptions:{default:{hideBackgroundDots:!0,imageSize:.4,margin:0}},dotsOptions:{default:{type:"dots",color:"#6a1a4c",gradient:{type:"linear",rotation:0,colorStops:[{offset:0,color:"#6a1a4c"},{offset:1,color:"#6a1a4c"}]}}},backgroundOptions:{default:{color:"#ffffff"}},cornersSquareOptions:{default:{type:"dot",color:"#000000"}},cornersDotOptions:{default:{type:void 0,color:"#000000"}},fileExt:{default:"png"},image:{default:""},download:{type:Boolean,default:!1},downloadOptions:{default:{name:"vqr",extension:"png"}}},setup(e){const t=e;return(n,o)=>(kd(),HN(OCe,null,{default:GSe(()=>[Pi(s_e,{"background-options":t.backgroundOptions,"button-name":t.buttonName,"corners-dot-options":t.cornersDotOptions,"corners-square-options":t.cornersSquareOptions,"dots-options":t.dotsOptions,download:t.download,"download-button":t.downloadButton,"download-options":t.downloadOptions,"file-ext":t.fileExt,height:t.height,image:t.image,"image-options":t.imageOptions,imgclass:t.imgclass,margin:t.margin,value:t.value,myclass:t.myclass,"qr-options":t.qrOptions,width:t.width},null,8,["background-options","button-name","corners-dot-options","corners-square-options","dots-options","download","download-button","download-options","file-ext","height","image","image-options","imgclass","margin","value","myclass","qr-options","width"])]),_:1}))}});var Q2={exports:{}};(function(e,t){(function(n,o){o(t,YP)})(hr,function(n,o){let r=null;function l(){return r!==null}function a(ue){r&&i(),r=ue}function s(ue){ue===r&&(r=null)}function i(){r&&(r.closeMenu(),r=null)}const u={defaultDirection:"br",defaultMinWidth:100,defaultMaxWidth:600,defaultZindex:100,defaultZoom:1,defaultAdjustPadding:{x:0,y:10}};function d(ue,Ie){let Ye=ue.offsetTop;return ue.offsetParent!=null&&ue.offsetParent!=Ie&&(Ye-=ue.offsetParent.scrollTop,Ye+=d(ue.offsetParent,Ie)),Ye}function c(ue,Ie){let Ye=ue.offsetLeft;return ue.offsetParent!=null&&ue.offsetParent!=Ie&&(Ye-=ue.offsetParent.scrollLeft,Ye+=c(ue.offsetParent,Ie)),Ye}function h(ue,Ie,Ye,at){return{x:c(ue,at)+Ie,y:d(ue,at)+Ye}}const v="mx-menu-default-container",m="mx-menu-container-";let g=0;function w(ue){const{getContainer:Ie,zIndex:Ye}=ue;if(Ie){const st=typeof Ie=="function"?Ie():Ie;if(st){let ke=st.getAttribute("id");return ke||(ke=m+g++,st.setAttribute("id",ke)),{eleId:ke,container:st,isNew:!1}}}let at=document.getElementById(v);return at||(at=document.createElement("div"),at.setAttribute("id",v),at.setAttribute("class","mx-menu-ghost-host fullscreen"),document.body.appendChild(at)),at.style.zIndex=(Ye==null?void 0:Ye.toString())||u.defaultZindex.toString(),{eleId:v,container:at,isNew:!0}}function b(ue){return typeof ue=="number"?`${ue}px`:ue}const E=o.defineComponent({props:{vnode:{type:null},data:{type:null,default:null}},setup(ue){const{vnode:Ie,data:Ye}=o.toRefs(ue);return()=>typeof Ie.value=="function"?Ie.value(Ye.value):Ie.value}}),S=(ue,Ie)=>{const Ye=ue.__vccOpts||ue;for(const[at,st]of Ie)Ye[at]=st;return Ye},C={},_={class:"mx-checked-mark","aria-hidden":"true",viewBox:"0 0 1024 1024"},k=[o.createElementVNode("path",{d:"M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z"},null,-1)];function O(ue,Ie){return o.openBlock(),o.createElementBlock("svg",_,k)}const I=S(C,[["render",O]]),T={},M={class:"mx-right-arrow","aria-hidden":"true",viewBox:"0 0 1024 1024"},R=[o.createElementVNode("path",{d:"M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z"},null,-1)];function $(ue,Ie){return o.openBlock(),o.createElementBlock("svg",M,R)}const L=S(T,[["render",$]]),V={class:"mx-item-row"},D=["xlink:href"],N={key:1,class:"label"},H={class:"mx-item-row"},B={class:"mx-shortcut"},z=o.defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},customRender:{type:Function,default:null},customClass:{type:String,default:""},clickHandler:{type:Function,default:null},label:{type:[String,Object,Function],default:""},icon:{type:[String,Object,Function],default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},clickableWhenHasChildren:{type:Boolean,default:!1},rawMenuItem:{type:Object,default:void 0}},emits:["click","subMenuOpen","subMenuClose"],setup(ue,{expose:Ie,emit:Ye}){const at=ue,st=Ye,{clickHandler:ke,clickClose:Oe,clickableWhenHasChildren:Me,disabled:ce,hidden:$e,label:Q,icon:Te,iconFontClass:oe,showRightArrow:Be,shortcut:Ze,hasChildren:et}=o.toRefs(at),it=o.ref(!1),pt=o.ref(!1),bt=o.ref(),Mt=o.inject("globalOptions"),Et=o.inject("globalHasSlot"),kn=o.inject("globalRenderSlot"),Jt=o.inject("globalCloseMenu"),$n=o.inject("menuContext"),qn={getSubMenuInstance:()=>{},showSubMenu:()=>it.value?($n.markActiveMenuItem(qn,!0),!0):et.value?(Io(),!0):!1,hideSubMenu:()=>{$n.closeOtherSubMenu()},isDisabledOrHidden:()=>ce.value||$e.value,getElement:()=>bt.value,focus:()=>pt.value=!0,blur:()=>pt.value=!1,click:Do};o.provide("menuItemInstance",qn),o.onMounted(()=>{$n.isMenuItemDataCollectedFlag()?o.nextTick(()=>{let on=0;const po=$n.getElement();if(po){let _r=0;for(let Kr=0;Kr<po.children.length;Kr++){const ua=po.children[Kr];if(ua.getAttribute("data-type")==="ContextMenuItem"){if(ua===bt.value){on=_r;break}_r++}}}$n.addChildMenuItem(qn,on)}):$n.addChildMenuItem(qn)}),o.onBeforeUnmount(()=>{$n.removeChildMenuItem(qn)});function Do(on){if(!ce.value){if(on){const po=on.target;if(po.classList.contains("mx-context-no-clickable")||Mt.value.ignoreClickClassName&&po.classList.contains(Mt.value.ignoreClickClassName))return;if(Mt.value.clickCloseClassName&&po.classList.contains(Mt.value.clickCloseClassName)){on.stopPropagation(),Jt(at.rawMenuItem);return}}et.value?Me.value?(typeof ke.value=="function"&&ke.value(on),st("click",on)):it.value||Io():(typeof ke.value=="function"&&ke.value(on),st("click",on),Oe.value&&Jt(at.rawMenuItem))}}function Io(on){pt.value=!1,$n.checkCloseOtherSubMenuTimeOut()||$n.closeOtherSubMenu(),ce.value||($n.markActiveMenuItem(qn),et.value&&(on||$n.markThisOpenedByKeyBoard(),$n.addOpenedSubMenu(lr),it.value=!0,o.nextTick(()=>st("subMenuOpen",qn))))}function lr(){pt.value=!1,it.value=!1,st("subMenuClose",qn)}function $o(){return{disabled:ce.value,label:Q.value,icon:Te.value,iconFontClass:oe.value,showRightArrow:Be.value,clickClose:Oe.value,clickableWhenHasChildren:Me.value,shortcut:Ze.value,theme:Mt.value.theme,isOpen:it,hasChildren:et,onClick:Do,onMouseEnter:Io,closeMenu:Jt}}return Ie(qn),(on,po)=>o.unref($e)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mx-context-menu-item-wrapper",ref_key:"menuItemRef",ref:bt,"data-type":"ContextMenuItem"},[o.unref(Et)("itemRender")?(o.openBlock(),o.createBlock(o.unref(E),{key:0,vnode:()=>o.unref(kn)("itemRender",$o())},null,8,["vnode"])):ue.customRender?(o.openBlock(),o.createBlock(o.unref(E),{key:1,vnode:ue.customRender,data:$o()},null,8,["vnode","data"])):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["mx-context-menu-item",o.unref(ce)?"disabled":"",pt.value?"keyboard-focus":"",ue.customClass?" "+ue.customClass:"",it.value?"open":""]),onClick:Do,onMouseenter:Io},[o.renderSlot(on.$slots,"default",{},()=>[o.createElementVNode("div",V,[o.createElementVNode("div",{class:o.normalizeClass(["mx-icon-placeholder",ue.preserveIconWidth?"preserve-width":""])},[o.renderSlot(on.$slots,"icon",{},()=>[o.unref(Et)("itemIconRender")?(o.openBlock(),o.createBlock(o.unref(E),{key:0,vnode:()=>o.unref(kn)("itemIconRender",$o())},null,8,["vnode"])):typeof ue.svgIcon=="string"&&ue.svgIcon?(o.openBlock(),o.createElementBlock("svg",o.mergeProps({key:1,class:"icon svg"},ue.svgProps),[o.createElementVNode("use",{"xlink:href":ue.svgIcon},null,8,D)],16)):typeof o.unref(Te)!="string"?(o.openBlock(),o.createBlock(o.unref(E),{key:2,vnode:o.unref(Te),data:o.unref(Te)},null,8,["vnode","data"])):typeof o.unref(Te)=="string"&&o.unref(Te)!==""?(o.openBlock(),o.createElementBlock("i",{key:3,class:o.normalizeClass(o.unref(Te)+" icon "+o.unref(oe)+" "+o.unref(Mt).iconFontClass)},null,2)):o.createCommentVNode("",!0)]),ue.checked?o.renderSlot(on.$slots,"check",{key:0},()=>[o.unref(Et)("itemCheckRender")?(o.openBlock(),o.createBlock(o.unref(E),{key:0,vnode:()=>o.unref(kn)("itemCheckRender",$o())},null,8,["vnode"])):o.createCommentVNode("",!0),o.createVNode(I)]):o.createCommentVNode("",!0)],2),o.renderSlot(on.$slots,"label",{},()=>[o.unref(Et)("itemLabelRender")?(o.openBlock(),o.createBlock(o.unref(E),{key:0,vnode:()=>o.unref(kn)("itemLabelRender",$o())},null,8,["vnode"])):typeof o.unref(Q)=="string"?(o.openBlock(),o.createElementBlock("span",N,o.toDisplayString(o.unref(Q)),1)):(o.openBlock(),o.createBlock(o.unref(E),{key:2,vnode:o.unref(Q),data:o.unref(Q)},null,8,["vnode","data"]))])]),o.createElementVNode("div",H,[o.unref(Ze)?o.renderSlot(on.$slots,"shortcut",{key:0},()=>[o.unref(Et)("itemShortcutRender")?(o.openBlock(),o.createBlock(o.unref(E),{key:0,vnode:()=>o.unref(kn)("itemShortcutRender",$o())},null,8,["vnode"])):o.createCommentVNode("",!0),o.createElementVNode("span",B,o.toDisplayString(o.unref(Ze)),1)]):o.createCommentVNode("",!0),o.unref(Be)?o.renderSlot(on.$slots,"rightArrow",{key:1},()=>[o.unref(Et)("itemRightArrowRender")?(o.openBlock(),o.createBlock(o.unref(E),{key:0,vnode:()=>o.unref(kn)("itemRightArrowRender",$o())},null,8,["vnode"])):o.createCommentVNode("",!0),o.createVNode(L)]):o.createCommentVNode("",!0)])])],34)),o.unref(Mt).menuTransitionProps?(o.openBlock(),o.createBlock(o.Transition,o.normalizeProps(o.mergeProps({key:3},o.unref(Mt).menuTransitionProps)),{default:o.withCtx(()=>[it.value?o.renderSlot(on.$slots,"submenu",{key:0}):o.createCommentVNode("",!0)]),_:3},16)):it.value?o.renderSlot(on.$slots,"submenu",{key:4}):o.createCommentVNode("",!0)],512))}}),q=o.defineComponent({name:"ContextMenuSperator",components:{VNodeRender:E},setup(){const ue=o.inject("globalHasSlot"),Ie=o.inject("globalRenderSlot");return{globalHasSlot:ue,globalRenderSlot:Ie}}}),Z={key:1,class:"mx-context-menu-item-sperator mx-context-no-clickable"};function ie(ue,Ie,Ye,at,st,ke){const Oe=o.resolveComponent("VNodeRender");return ue.globalHasSlot("separatorRender")?(o.openBlock(),o.createBlock(Oe,{key:0,vnode:()=>ue.globalRenderSlot("separatorRender",{})},null,8,["vnode"])):(o.openBlock(),o.createElementBlock("div",Z))}const re=S(q,[["render",ie]]),ve=o.defineComponent({name:"ContextSubMenu",components:{ContextMenuItem:z,ContextMenuSeparator:re,ContextMenuIconRight:L},props:{items:{type:Object,default:null},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},adjustPosition:{type:Boolean,default:!0},direction:{type:String,default:"br"}},setup(ue){const Ie=o.inject("menuContext"),Ye=o.inject("globalOptions"),at=o.inject("globalHasSlot"),st=o.inject("globalRenderSlot"),{zIndex:ke,getParentWidth:Oe,getParentHeight:Me,getZoom:ce}=Ie,{adjustPosition:$e}=o.toRefs(ue),Q=o.ref(),Te=o.ref(),oe=o.ref(),Be=o.ref(),Ze=[],et=o.inject("globalSetCurrentSubMenu"),it=[];let pt=null,bt=0;function Mt(){pt&&pt.blur()}function Et(Ct,nn){if(Ct){for(let Ln=nn!==void 0?nn:0;Ln<it.length;Ln++)if(!it[Ln].isDisabledOrHidden()){kn(Ln);break}}else for(let Ln=nn!==void 0?nn:it.length-1;Ln>=0;Ln--)if(!it[Ln].isDisabledOrHidden()){kn(Ln);break}}function kn(Ct){if(pt&&Mt(),Ct!==void 0&&(pt=it[Math.max(0,Math.min(Ct,it.length-1))]),!!pt&&(pt.focus(),ca.value)){const nn=pt.getElement();nn&&(on.value=Math.min(Math.max(-po.value,-nn.offsetTop-nn.offsetHeight+St.value),0))}}function Jt(){et($n)}const $n={isTopLevel:()=>Ie.getParentContext()===null,closeSelfAndActiveParent:()=>{const Ct=Io.getParentContext();if(Ct){Ct.closeOtherSubMenu();const nn=Ct.getSubMenuInstanceContext();if(nn)return nn.focusCurrentItem(),!0}return!1},closeCurrentSubMenu:()=>{var Ct;return(Ct=Io.getParentContext())==null?void 0:Ct.closeOtherSubMenu()},moveCurrentItemFirst:()=>Et(!0),moveCurrentItemLast:()=>Et(!1),moveCurrentItemDown:()=>Et(!0,pt?it.indexOf(pt)+1:0),moveCurrentItemUp:()=>Et(!1,pt?it.indexOf(pt)-1:0),focusCurrentItem:()=>kn(),openCurrentItemSubMenu:()=>pt?pt==null?void 0:pt.showSubMenu():!1,triggerCurrentItemClick:Ct=>pt==null?void 0:pt.click(Ct)};let qn=!1,Do=!1;const Io={zIndex:ke+1,container:Ie.container,adjustPadding:Ye.value.adjustPadding||u.defaultAdjustPadding,getParentWidth:()=>{var Ct;return((Ct=Te.value)==null?void 0:Ct.offsetWidth)||0},getParentHeight:()=>{var Ct;return((Ct=Te.value)==null?void 0:Ct.offsetHeight)||0},getParentX:()=>je.value.x,getParentY:()=>je.value.y,getParentAbsX:()=>Te.value?c(Te.value,Ie.container):0,getParentAbsY:()=>Te.value?d(Te.value,Ie.container):0,getPositon:()=>[0,0],getZoom:()=>Ye.value.zoom||u.defaultZoom,addOpenedSubMenu(Ct){Ze.push(Ct)},closeOtherSubMenu(){Ze.forEach(Ct=>Ct()),Ze.splice(0,Ze.length),et($n)},checkCloseOtherSubMenuTimeOut(){return bt?(clearTimeout(bt),bt=0,!0):!1},closeOtherSubMenuWithTimeOut(){bt=setTimeout(()=>{bt=0,this.closeOtherSubMenu()},200)},addChildMenuItem:(Ct,nn)=>{nn===void 0?it.push(Ct):it.splice(nn,0,Ct)},removeChildMenuItem:Ct=>{it.splice(it.indexOf(Ct),1),Ct.getSubMenuInstance=()=>{}},markActiveMenuItem:(Ct,nn=!1)=>{Mt(),pt=Ct,nn&&kn()},markThisOpenedByKeyBoard:()=>{qn=!0},isOpenedByKeyBoardFlag:()=>qn?(qn=!1,!0):!1,isMenuItemDataCollectedFlag:()=>Do,getElement:()=>Te.value||null,getParentContext:()=>Ie,getSubMenuInstanceContext:()=>$n};o.provide("menuContext",Io);const lr={getChildItem:Ct=>it[Ct],getMenuDimensions:()=>Q.value?{width:Q.value.offsetWidth,height:Q.value.offsetHeight}:{width:0,height:0},getSubmenuRoot:()=>Q.value,getMenu:()=>Te.value,getScrollValue:()=>on.value,setScrollValue:Ct=>on.value=Ct,getScrollHeight:()=>po.value,getMaxHeight:()=>St.value,getPosition:()=>je.value,setPosition:(Ct,nn)=>{je.value.x=Ct,je.value.y=nn}},$o=o.inject("menuItemInstance",void 0);$o&&($o.getSubMenuInstance=()=>lr);const on=o.ref(0),po=o.ref(0);function _r(Ct){Ct?on.value=Math.min(Math.max(on.value-50,-po.value),0):on.value=Math.min(on.value+50,0)}function Kr(Ct){Ct.preventDefault(),Ct.stopPropagation(),_r(Ct.deltaY>0)}function ua(Ct){Ye.value.mouseScroll&&(Ct.preventDefault(),Ct.stopPropagation(),_r(Ct.deltaY>0))}const ca=o.ref(!1),je=o.ref({x:0,y:0}),St=o.ref(0);return o.onMounted(()=>{const Ct=Ie.getPositon();je.value={x:(Ct[0]??Ye.value.xOffset??0)/ce(),y:(Ct[1]??Ye.value.yOffset??0)/ce()},et($n),o.nextTick(()=>{var nn,Ln;const to=Te.value;if(to&&oe.value){const{container:Vo}=Ie,jr=(Oe==null?void 0:Oe())??0,Ra=(Me==null?void 0:Me())??0,Aa=typeof Ie.adjustPadding=="number"?Ie.adjustPadding:((nn=Ie.adjustPadding)==null?void 0:nn.x)??0,qe=typeof Ie.adjustPadding=="number"?Ie.adjustPadding:((Ln=Ie.adjustPadding)==null?void 0:Ln.y)??0,xt=Ra>0?qe:0,Ht=document.documentElement.scrollHeight/ce(),Qt=document.documentElement.scrollWidth/ce(),Ho=Math.min(Qt,Vo.offsetWidth),kr=Math.min(Ht,Vo.offsetHeight);let gc=c(to,Vo),mc=d(to,Vo);ue.direction.includes("l")?je.value.x-=to.offsetWidth+Aa:ue.direction.includes("r")?je.value.x+=jr+Aa:(je.value.x+=jr/2,je.value.x-=(to.offsetWidth+Aa)/2),ue.direction.includes("t")?je.value.y-=(to.offsetHeight+qe*2)/ce():ue.direction.includes("b")?je.value.y-=qe/ce():(je.value.y+=Ra/2/ce(),je.value.y-=(to.offsetHeight+qe)/2/ce()),$e.value&&o.nextTick(()=>{gc=c(to,Vo),mc=d(to,Vo);const Yh=gc+to.offsetWidth-Ho,qh=mc+to.offsetHeight+xt*2-kr;if(ca.value=qh>0,po.value=to.offsetHeight-kr+xt*2,Yh>0){const ru=jr+to.offsetWidth-Aa,au=gc;ru>au?je.value.x-=au:je.value.x-=ru}if(ca.value){const ru=qh,au=mc;ru>au?je.value.y-=au-xt:je.value.y-=ru-xt,St.value=kr-xt*2}else St.value=0})}to==null||to.focus({preventScroll:!0}),Ie.isOpenedByKeyBoardFlag()&&Et(!0),Do=!0})}),o.onBeforeUnmount(()=>{$o&&($o.getSubMenuInstance=()=>{})}),{submenuRoot:Q,menu:Te,scroll:oe,options:Ye,zIndex:ke,constOptions:u,scrollValue:on,upScrollButton:Be,overflow:ca,position:je,scrollHeight:po,maxHeight:St,...lr,globalHasSlot:at,globalRenderSlot:st,onScroll:_r,onSubMenuBodyClick:Jt,onMouseWhell:ua,onMouseWhellMx:Kr,solveNumberOrStringSize:b}}}),Ce={key:0,class:"mx-context-menu-updown placeholder"},Ee={key:1,class:"mx-context-menu-updown placeholder"},ee={class:"mx-context-menu-scroll",ref:"scroll"};function ae(ue,Ie,Ye,at,st,ke){const Oe=o.resolveComponent("ContextMenuSeparator"),Me=o.resolveComponent("ContextSubMenu",!0),ce=o.resolveComponent("ContextMenuItem"),$e=o.resolveComponent("ContextMenuIconRight");return o.openBlock(),o.createElementBlock("div",{ref:"submenuRoot",class:o.normalizeClass(["mx-context-menu",ue.options.customClass?ue.options.customClass:"",ue.options.theme??""]),style:o.normalizeStyle({maxWidth:ue.maxWidth?ue.solveNumberOrStringSize(ue.maxWidth):`${ue.constOptions.defaultMaxWidth}px`,minWidth:ue.minWidth?ue.solveNumberOrStringSize(ue.minWidth):`${ue.constOptions.defaultMinWidth}px`,maxHeight:ue.overflow&&ue.maxHeight>0?`${ue.maxHeight}px`:void 0,zIndex:ue.zIndex,left:`${ue.position.x}px`,top:`${ue.position.y}px`}),"data-type":"ContextSubMenu",onClick:Ie[4]||(Ie[4]=(...Q)=>ue.onSubMenuBodyClick&&ue.onSubMenuBodyClick(...Q)),onWheel:Ie[5]||(Ie[5]=(...Q)=>ue.onMouseWhell&&ue.onMouseWhell(...Q))},[o.createElementVNode("div",{class:o.normalizeClass(["mx-context-menu-items"]),ref:"menu",style:o.normalizeStyle({top:`${ue.scrollValue}px`})},[o.renderSlot(ue.$slots,"default",{},()=>[ue.overflow&&ue.options.updownButtonSpaceholder?(o.openBlock(),o.createElementBlock("div",Ce)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(ue.items,(Q,Te)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:Te},[Q.hidden!==!0&&Q.divided==="up"?(o.openBlock(),o.createBlock(Oe,{key:0})):o.createCommentVNode("",!0),Q.hidden!==!0&&Q.divided==="self"?(o.openBlock(),o.createBlock(Oe,{key:1})):(o.openBlock(),o.createBlock(ce,{key:2,clickHandler:Q.onClick?oe=>Q.onClick(oe):void 0,disabled:Q.disabled,hidden:Q.hidden,icon:Q.icon,iconFontClass:Q.iconFontClass,svgIcon:Q.svgIcon,svgProps:Q.svgProps,label:Q.label,customRender:Q.customRender,customClass:Q.customClass,checked:Q.checked,shortcut:Q.shortcut,clickClose:Q.clickClose,clickableWhenHasChildren:Q.clickableWhenHasChildren,preserveIconWidth:Q.preserveIconWidth!==void 0?Q.preserveIconWidth:ue.options.preserveIconWidth,showRightArrow:Q.children&&Q.children.length>0,hasChildren:Q.children&&Q.children.length>0,rawMenuItem:Q,onSubMenuOpen:oe=>{var Be;return(Be=Q.onSubMenuOpen)==null?void 0:Be.call(Q,oe)},onSubMenuClose:oe=>{var Be;return(Be=Q.onSubMenuClose)==null?void 0:Be.call(Q,oe)}},o.createSlots({_:2},[Q.children&&Q.children.length>0?{name:"submenu",fn:o.withCtx(()=>[o.createVNode(Me,{items:Q.children,maxWidth:Q.maxWidth,minWidth:Q.minWidth,adjustPosition:Q.adjustSubMenuPosition!==void 0?Q.adjustSubMenuPosition:ue.options.adjustPosition,direction:Q.direction!==void 0?Q.direction:ue.options.direction},null,8,["items","maxWidth","minWidth","adjustPosition","direction"])]),key:"0"}:void 0]),1032,["clickHandler","disabled","hidden","icon","iconFontClass","svgIcon","svgProps","label","customRender","customClass","checked","shortcut","clickClose","clickableWhenHasChildren","preserveIconWidth","showRightArrow","hasChildren","rawMenuItem","onSubMenuOpen","onSubMenuClose"])),Q.hidden!==!0&&(Q.divided==="down"||Q.divided===!0)?(o.openBlock(),o.createBlock(Oe,{key:3})):o.createCommentVNode("",!0)],64))),128)),ue.overflow&&ue.options.updownButtonSpaceholder?(o.openBlock(),o.createElementBlock("div",Ee)):o.createCommentVNode("",!0)])],4),o.createElementVNode("div",ee,[o.withDirectives(o.createElementVNode("div",{ref:"upScrollButton",class:o.normalizeClass("mx-context-menu-updown mx-context-no-clickable up"+(ue.overflow&&ue.scrollValue<0?"":" disabled")),onClick:Ie[0]||(Ie[0]=Q=>ue.onScroll(!1)),onWheel:Ie[1]||(Ie[1]=(...Q)=>ue.onMouseWhellMx&&ue.onMouseWhellMx(...Q))},[o.createVNode($e)],34),[[o.vShow,ue.overflow]]),o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass("mx-context-menu-updown mx-context-no-clickable down"+(ue.overflow&&ue.scrollValue>-ue.scrollHeight?"":" disabled")),onClick:Ie[2]||(Ie[2]=Q=>ue.onScroll(!0)),onWheel:Ie[3]||(Ie[3]=(...Q)=>ue.onMouseWhellMx&&ue.onMouseWhellMx(...Q))},[o.createVNode($e)],34),[[o.vShow,ue.overflow]])],512)],38)}const te=S(ve,[["render",ae]]),pe={class:"mx-menu-ghost-host"},he=o.defineComponent({__name:"ContextSubMenuWrapper",props:{options:{type:Object,default:null},show:{type:Object,default:null},container:{type:Object,default:null},isFullScreenContainer:{type:Boolean,default:!0}},emits:["close","closeAnimFinished"],setup(ue,{expose:Ie,emit:Ye}){const at=ue,st=Ye,ke=o.useSlots(),Oe=o.ref(),{options:Me,show:ce,container:$e}=o.toRefs(at);o.onMounted(()=>{ce.value&&oe()}),o.onBeforeUnmount(()=>{it()}),o.watch(ce,Jt=>{Jt?oe():(s(Q),it())});const Q={closeMenu:Be,isClosed:Ze,getMenuRef:()=>Oe.value,getMenuDimensions:()=>{var Jt;return((Jt=Oe.value)==null?void 0:Jt.getMenuDimensions())??{width:0,height:0}}};let Te=!1;function oe(){et(),a(Q)}function Be(Jt){Te=!0,st("close",Jt),Me.value.menuTransitionProps||st("closeAnimFinished"),s(Q)}function Ze(){return Te}function et(){setTimeout(()=>{document.addEventListener("click",Et,!0),document.addEventListener("contextmenu",Et,!0),document.addEventListener("scroll",Mt,!0),!at.isFullScreenContainer&&$e.value&&$e.value.addEventListener("scroll",Mt,!0),Me.value.keyboardControl!==!1&&document.addEventListener("keydown",bt)},50)}function it(){document.removeEventListener("contextmenu",Et,!0),document.removeEventListener("click",Et,!0),document.removeEventListener("scroll",Mt,!0),!at.isFullScreenContainer&&$e.value&&$e.value.removeEventListener("scroll",Mt,!0),Me.value.keyboardControl!==!1&&document.removeEventListener("keydown",bt)}const pt=o.ref();o.provide("globalSetCurrentSubMenu",Jt=>pt.value=Jt);function bt(Jt){var $n,qn,Do,Io,lr,$o,on,po,_r,Kr,ua,ca,je;let St=!0;switch(Jt.key){case"Escape":{(($n=pt.value)==null?void 0:$n.isTopLevel())===!1?(qn=pt.value)==null||qn.closeCurrentSubMenu():Be();break}case"ArrowDown":(Do=pt.value)==null||Do.moveCurrentItemDown();break;case"ArrowUp":(Io=pt.value)==null||Io.moveCurrentItemUp();break;case"Home":(lr=pt.value)==null||lr.moveCurrentItemFirst();break;case"End":($o=pt.value)==null||$o.moveCurrentItemLast();break;case"ArrowLeft":{(on=pt.value)!=null&&on.closeSelfAndActiveParent()||(_r=(po=Me.value).onKeyFocusMoveLeft)==null||_r.call(po);break}case"ArrowRight":(Kr=pt.value)!=null&&Kr.openCurrentItemSubMenu()||(ca=(ua=Me.value).onKeyFocusMoveRight)==null||ca.call(ua);break;case"Enter":(je=pt.value)==null||je.triggerCurrentItemClick(Jt);break;default:St=!1;break}St&&pt.value&&(Jt.stopPropagation(),Jt.preventDefault())}function Mt(){Me.value.closeWhenScroll!==!1&&Be()}function Et(Jt){kn(Jt.target,Jt)}function kn(Jt,$n){for(var qn,Do;Jt;){if(Jt.classList&&Jt.classList.contains("mx-menu-host"))return;Jt=Jt.parentNode}Me.value.clickCloseOnOutside!==!1?(it(),Be()):(Do=(qn=Me.value).onClickOnOutside)==null||Do.call(qn,$n)}return o.provide("globalOptions",Me),o.provide("globalCloseMenu",Be),o.provide("globalIsFullScreenContainer",at.isFullScreenContainer),o.provide("globalHasSlot",Jt=>ke[Jt]!==void 0),o.provide("globalRenderSlot",(Jt,$n)=>o.renderSlot(ke,Jt,{...$n},()=>[o.h("span","Render slot failed")],!1)),o.provide("menuContext",{zIndex:Me.value.zIndex||u.defaultZindex,container:$e.value,adjustPadding:{x:0,y:0},getParentAbsY:()=>Me.value.x,getParentAbsX:()=>Me.value.y,getZoom:()=>Me.value.zoom||u.defaultZoom,getParentX:()=>0,getParentY:()=>0,getParentWidth:()=>0,getParentHeight:()=>0,getPositon:()=>[Me.value.x,Me.value.y],closeOtherSubMenuWithTimeOut:()=>{},checkCloseOtherSubMenuTimeOut:()=>!1,addOpenedSubMenu:()=>{},closeOtherSubMenu:()=>{},getParentContext:()=>null,getSubMenuInstanceContext:()=>null,getElement:()=>null,addChildMenuItem:()=>{},removeChildMenuItem:()=>{},markActiveMenuItem:()=>{},markThisOpenedByKeyBoard:()=>{},isOpenedByKeyBoardFlag:()=>!1,isMenuItemDataCollectedFlag:()=>!1}),Ie(Q),(Jt,$n)=>(o.openBlock(),o.createElementBlock("div",pe,[o.unref(Me).menuTransitionProps?(o.openBlock(),o.createBlock(o.Transition,o.mergeProps({key:0,appear:""},o.unref(Me).menuTransitionProps,{onAfterLeave:$n[0]||($n[0]=qn=>st("closeAnimFinished"))}),{default:o.withCtx(()=>[o.unref(ce)?(o.openBlock(),o.createBlock(te,{key:0,ref_key:"submenuInstance",ref:Oe,class:"mx-menu-host",items:o.unref(Me).items,adjustPosition:o.unref(Me).adjustPosition,maxWidth:o.unref(Me).maxWidth||o.unref(u).defaultMaxWidth,minWidth:o.unref(Me).minWidth||o.unref(u).defaultMinWidth,direction:o.unref(Me).direction||o.unref(u).defaultDirection},{default:o.withCtx(()=>[o.renderSlot(Jt.$slots,"default")]),_:3},8,["items","adjustPosition","maxWidth","minWidth","direction"])):o.createCommentVNode("",!0)]),_:3},16)):o.unref(ce)?(o.openBlock(),o.createBlock(te,{key:1,ref_key:"submenuInstance",ref:Oe,class:"mx-menu-host",items:o.unref(Me).items,adjustPosition:o.unref(Me).adjustPosition,maxWidth:o.unref(Me).maxWidth||o.unref(u).defaultMaxWidth,minWidth:o.unref(Me).minWidth||o.unref(u).defaultMinWidth,direction:o.unref(Me).direction||o.unref(u).defaultDirection},{default:o.withCtx(()=>[o.renderSlot(Jt.$slots,"default")]),_:3},8,["items","adjustPosition","maxWidth","minWidth","direction"])):o.createCommentVNode("",!0)]))}}),se=o.defineComponent({name:"ContextMenu",emits:["update:show","close"],props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},setup(ue,Ie){const{options:Ye,show:at}=o.toRefs(ue),st=o.ref(null);return Ie.expose({closeMenu:()=>Ie.emit("update:show",!1),isClosed:()=>!at.value,getMenuRef:()=>{var ke;return(ke=st.value)==null?void 0:ke.getMenuRef()},getMenuDimensions:()=>{var ke;return((ke=st.value)==null?void 0:ke.getMenuDimensions())??{width:0,height:0}}}),()=>{const{isNew:ke,container:Oe,eleId:Me}=w(Ye.value);return[o.h(o.Teleport,{to:`#${Me}`},[o.h(he,{ref:st,options:Ye,show:at,container:Oe,isFullScreenContainer:!ke,onClose:ce=>{var $e,Q;Ie.emit("update:show",!1),Ie.emit("close"),(Q=($e=Ye.value).onClose)==null||Q.call($e,ce)}},Ie.slots)])]}}}),Y=o.defineComponent({name:"ContextMenuGroup",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},clickHandler:{type:Function,default:null},label:{type:String,default:""},icon:{type:String,default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},adjustSubMenuPosition:{type:Boolean,default:void 0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0}},setup(ue,Ie){const Ye=o.inject("globalOptions"),{adjustSubMenuPosition:at,maxWidth:st,minWidth:ke}=o.toRefs(ue),Oe=typeof at.value<"u"?at.value:Ye.value.adjustPosition,Me=o.ref(),ce=o.ref();return Ie.expose({getSubMenuRef:()=>Me.value,getMenuItemRef:()=>ce.value}),()=>o.h(z,{...ue,ref:ce,showRightArrow:!0,maxWidth:void 0,minWidth:void 0,adjustSubMenuPosition:void 0,hasChildren:typeof Ie.slots.default!==void 0},Ie.slots.default?{submenu:()=>o.h(te,{ref:Me,maxWidth:st.value,minWidth:ke.value,adjustPosition:Oe},{default:Ie.slots.default})}:void 0)}});function ne(ue,Ie,Ye,at){const st=o.ref(!0),ke=o.h(he,{options:ue,show:st,container:Ie,isFullScreenContainer:!Ye,onCloseAnimFinished:()=>{o.render(null,Ie)},onClose:Oe=>{var Me;(Me=ue.onClose)==null||Me.call(ue,Oe),st.value=!1}},at);return o.render(ke,Ie),ke.component}function ye(ue,Ie){const Ye=w(ue);return ne(ue,Ye.container,Ye.isNew,Ie).exposed}const Re={install(ue){ue.config.globalProperties.$contextmenu=ye,ue.component("ContextMenu",se),ue.component("ContextMenuItem",z),ue.component("ContextMenuGroup",Y),ue.component("ContextMenuSperator",re),ue.component("ContextMenuSeparator",re),ue.component("ContextSubMenu",te)},showContextMenu(ue,Ie){return ye(ue,Ie)},isAnyContextMenuOpen(){return l()},closeContextMenu:i,transformMenuPosition:h},Se={},_e={class:"mx-menu-bar-icon-menu",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},Ae=[o.createElementVNode("path",{d:"M133.310936 296.552327l757.206115 0c19.781623 0 35.950949-16.169326 35.950949-35.950949 0-19.781623-15.997312-35.950949-35.950949-35.950949L133.310936 224.650428c-19.781623 0-35.950949 16.169326-35.950949 35.950949C97.359987 280.383 113.529313 296.552327 133.310936 296.552327z"},null,-1),o.createElementVNode("path",{d:"M890.51705 476.135058 133.310936 476.135058c-19.781623 0-35.950949 16.169326-35.950949 35.950949 0 19.781623 16.169326 35.950949 35.950949 35.950949l757.206115 0c19.781623 0 35.950949-16.169326 35.950949-35.950949C926.467999 492.304384 910.298673 476.135058 890.51705 476.135058z"},null,-1),o.createElementVNode("path",{d:"M890.51705 727.447673 133.310936 727.447673c-19.781623 0-35.950949 15.997312-35.950949 35.950949s16.169326 35.950949 35.950949 35.950949l757.206115 0c19.781623 0 35.950949-15.997312 35.950949-35.950949S910.298673 727.447673 890.51705 727.447673z"},null,-1)];function Le(ue,Ie){return o.openBlock(),o.createElementBlock("svg",_e,Ae)}const He=S(Se,[["render",Le]]),Ke=["onClick","onMouseenter"],ot=o.defineComponent({__name:"MenuBar",props:{options:{type:Object,default:null}},setup(ue){const Ie=ue,Ye=o.ref(),at=o.ref(!1),st=o.ref([]),ke=o.ref(null);function Oe(){at.value=!0}function Me(){at.value=!1}o.onMounted(()=>{st.value=Ie.options.items||[]}),o.watch(()=>Ie.options,()=>{st.value=Ie.options.items||[]});let ce=null,$e=-1;function Q(){$e<st.value.length-1?$e++:$e=0,Be($e,st.value[$e])}function Te(){$e>0?$e--:$e=st.value.length-1,Be($e,st.value[$e])}function oe(pt){const bt=Ie.options.barPopDirection??"bl";let Mt=0,Et=0;return bt.startsWith("b")?Et=d(pt)+pt.offsetHeight:bt.startsWith("t")?Et=d(pt):Et=d(pt)+pt.offsetHeight/2,bt.endsWith("l")?Mt=c(pt):bt.startsWith("r")?Mt=c(pt)+pt.offsetWidth:Mt=c(pt)+pt.offsetWidth/2,{x:Mt,y:Et}}function Be(pt,bt){var Mt;if($e=pt,!bt.children)return;ce&&(ce.closeMenu(),ce=null,at.value=!0),ke.value=bt;const Et=(Mt=Ye.value)==null?void 0:Mt.children[pt];if(Et){const{x:kn,y:Jt}=oe(Et);ce=Re.showContextMenu({...Ie.options,items:bt.children,x:kn,y:Jt,onKeyFocusMoveLeft(){Te()},onKeyFocusMoveRight(){Q()},onClose(){ke.value==bt&&(at.value=!1,ke.value=null)}})}}function Ze(){$e=0;const pt=Ye.value;if(pt){const{x:bt,y:Mt}=oe(pt);ce=Re.showContextMenu({...Ie.options,x:bt,y:Mt})}}function et(pt,bt){bt?(at.value=!0,Be(pt,bt),bt.onClick&&(bt.clickableWhenHasChildren===!0&&bt.children&&bt.children.length>0||!bt.children||bt.children.length===0)&&bt.onClick()):Ze()}function it(pt,bt){at.value&&Be(pt,bt)}return(pt,bt)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["mx-menu-bar",ue.options.theme??"",ue.options.mini?"mini":""]),onFocus:Oe,onBlur:Me},[o.renderSlot(pt.$slots,"prefix"),ue.options.mini?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"menuBarContent",ref:Ye,class:"mx-menu-bar-content"},[o.createElementVNode("div",{class:"mx-menu-bar-item",onClick:bt[0]||(bt[0]=Mt=>et(0,null))},[o.createVNode(He)])],512)):(o.openBlock(),o.createElementBlock("div",{key:1,ref_key:"menuBarContent",ref:Ye,class:"mx-menu-bar-content"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(st.value,(Mt,Et)=>(o.openBlock(),o.createElementBlock("div",{key:Et,class:o.normalizeClass(["mx-menu-bar-item",Mt==ke.value?"active":""]),onClick:kn=>et(Et,Mt),onMouseenter:kn=>it(Et,Mt)},o.toDisplayString(Mt.label),43,Ke))),128))],512)),o.renderSlot(pt.$slots,"suffix")],34))}});n.ContextMenu=se,n.ContextMenuGroup=Y,n.ContextMenuItem=z,n.ContextMenuSeparator=re,n.MenuBar=ot,n.default=Re,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(Q2,Q2.exports);var ci=Q2.exports;const u_e={class:"qrcode"},c_e={__name:"RightMenu",props:["show","x","y","link"],setup(e){const t=e,n=Ma(),o=W(!1),r=W(!1),l=A(()=>({zIndex:10,minWidth:180,x:t.x,y:t.y})),a=()=>{let u=t.link.url;navigator.clipboard.writeText(u).then(function(){vn({message:"链接已复制!",type:"success"})},function(){vn({message:"链接复制失败!",type:"error"})})},s=u=>{var d=t.link.url;u==="url"?d=t.link.url:u==="standby"&&(d=t.link.url_standby),window.open(d)},i=()=>{const u=t.link.fid,d=t.link.id;var c=t.link.title;eP.confirm(`您将删除【${c}】,此操作将无法恢复,是否继续?`,"确认删除?",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",icon:Qa(UM)}).then(()=>{Qn.post("/index.php?c=api&method=del_link",ts({id:t.link.id})).then(v=>{let m=v.data;m.code===0?vn({type:"success",message:"删除成功!"}):vn({type:"error",message:m.err_msg}),n.limitedLinks[u]=n.limitedLinks[u].filter(g=>g.id!==d),n.allLinks[u]=n.allLinks[u].filter(g=>g.id!==d)})}).catch(()=>{vn({type:"error",message:"删除时出现错误!"})})};return(u,d)=>{const c=df,h=UP;return P(),G(tt,null,[U(f(ci.ContextMenu),{show:f(n).contextMenuVisible,"onUpdate:show":d[4]||(d[4]=v=>f(n).contextMenuVisible=v),options:l.value},{default:X(()=>[U(f(ci.ContextMenuItem),{label:"打开链接",onClick:d[0]||(d[0]=v=>s("url"))}),t.link.url_standby!=""&&t.link.url_standby!==null?(P(),we(f(ci.ContextMenuItem),{key:0,label:"打开备用链接",onClick:d[1]||(d[1]=v=>s("standby"))})):me("",!0),U(f(ci.ContextMenuItem),{label:"复制链接",onClick:a}),U(f(ci.ContextMenuItem),{label:"显示二维码",onClick:d[2]||(d[2]=v=>o.value=!0)}),f(n).isLogin?(P(),G(tt,{key:1},[U(f(ci.ContextMenuSeparator)),U(f(ci.ContextMenuItem),{label:"编辑",onClick:d[3]||(d[3]=v=>r.value=!0)}),U(f(ci.ContextMenuItem),{label:"删除",onClick:i})],64)):me("",!0)]),_:1},8,["show","options"]),U(c,{"lock-scroll":!1,top:f(n).dialogTop,width:240,center:"",modelValue:o.value,"onUpdate:modelValue":d[5]||(d[5]=v=>o.value=v),"destroy-on-close":!0,title:"扫码访问"},{default:X(()=>[j("div",u_e,[U(f(i_e),{width:200,height:200,value:t.link.url,dotsOptions:{color:"#000000",type:"square"}},null,8,["value"])])]),_:1},8,["top","modelValue"]),U(bd,{"lock-scroll":!1,top:f(n).dialogTop,width:f(n).dialogWidth,modal:"","destroy-on-close":!0,modelValue:r.value,"onUpdate:modelValue":d[7]||(d[7]=v=>r.value=v),title:"编辑链接"},{default:X(()=>[U(h,{addLinkVisible:r.value,"onUpdate:addLinkVisible":d[6]||(d[6]=v=>r.value=v),id:t.link.id},null,8,["addLinkVisible","id"])]),_:1},8,["top","width","modelValue"])],64)}}},d_e=Cr(c_e,[["__scopeId","data-v-a900efb8"]]),f_e=lP("search",{state:()=>({engines:[{name:"百度",url:"https://www.baidu.com/s?wd=",key:"baidu"},{name:"Google",url:"https://www.google.com/search?q=",key:"google"},{name:"Bing",url:"https://cn.bing.com/search?q=",key:"bing"},{name:"搜狗",url:"https://www.sogou.com/web?query=",key:"sogou"},{name:"360",url:"https://www.so.com/s?q=",key:"so"},{name:"知乎",url:"https://www.zhihu.com/search?q=",key:"zhihu"},{name:"Github",url:"https://github.com/search?type=repositories&q=",key:"github"}],currentEngine:"baidu"}),actions:{changeEngine(e){localStorage.setItem("searchEngine",this.currentEngine)},changeDefaultEngine(){let e=localStorage.getItem("searchEngine");e&&(this.currentEngine=e)}}});function p_e(e){return vh()?(gh(e),!0):!1}const j1=new WeakMap,h_e=(...e)=>{var t;const n=e[0],o=(t=$t())==null?void 0:t.proxy;if(o==null&&!S0())throw new Error("injectLocal must be called in setup");return o&&j1.has(o)&&n in j1.get(o)?j1.get(o)[n]:Je(...e)},v_e=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const g_e=Object.prototype.toString,m_e=e=>g_e.call(e)==="[object Object]",y_e=()=>{};function UN(...e){if(e.length!==1)return sn(...e);const t=e[0];return typeof t=="function"?zs(v0(()=>({get:t,set:y_e}))):W(t)}function b_e(e,t){function n(...o){return new Promise((r,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(l)})}return n}const GN=e=>e();function w_e(e=GN,t={}){const{initialState:n="active"}=t,o=UN(n==="active");function r(){o.value=!1}function l(){o.value=!0}const a=(...s)=>{o.value&&e(...s)};return{isActive:zs(o),pause:r,resume:l,eventFilter:a}}function YO(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function U1(e){return Array.isArray(e)?e:[e]}function S_e(e){return $t()}function C_e(e,t,n={}){const{eventFilter:o=GN,...r}=n;return Pe(e,b_e(o,t),r)}function __e(e,t,n={}){const{eventFilter:o,initialState:r="active",...l}=n,{eventFilter:a,pause:s,resume:i,isActive:u}=w_e(o,{initialState:r});return{stop:C_e(e,t,{...l,eventFilter:a}),pause:s,resume:i,isActive:u}}function YN(e,t=!0,n){S_e()?kt(e,n):t?e():dt(e)}function k_e(e=!1,t={}){const{truthyValue:n=!0,falsyValue:o=!1}=t,r=wn(e),l=gn(e);function a(s){if(arguments.length)return l.value=s,l.value;{const i=El(n);return l.value=l.value===i?El(o):i,l.value}}return r?a:[l,a]}function E_e(e,t,n){return Pe(e,t,{...n,immediate:!0})}const ph=v_e?window:void 0;function qN(e){var t;const n=El(e);return(t=n==null?void 0:n.$el)!=null?t:n}function eS(...e){const t=[],n=()=>{t.forEach(s=>s()),t.length=0},o=(s,i,u,d)=>(s.addEventListener(i,u,d),()=>s.removeEventListener(i,u,d)),r=A(()=>{const s=U1(El(e[0])).filter(i=>i!=null);return s.every(i=>typeof i!="string")?s:void 0}),l=E_e(()=>{var s,i;return[(i=(s=r.value)==null?void 0:s.map(u=>qN(u)))!=null?i:[ph].filter(u=>u!=null),U1(El(r.value?e[1]:e[0])),U1(f(r.value?e[2]:e[1])),El(r.value?e[3]:e[2])]},([s,i,u,d])=>{if(n(),!(s!=null&&s.length)||!(i!=null&&i.length)||!(u!=null&&u.length))return;const c=m_e(d)?{...d}:d;t.push(...s.flatMap(h=>i.flatMap(v=>u.map(m=>o(h,v,m,c)))))},{flush:"post"}),a=()=>{l(),n()};return p_e(n),a}function x_e(){const e=gn(!1),t=$t();return t&&kt(()=>{e.value=!0},t),e}function T_e(e){const t=x_e();return A(()=>(t.value,!!e()))}const O_e=Symbol("vueuse-ssr-width");function I_e(){const e=S0()?h_e(O_e,null):null;return typeof e=="number"?e:void 0}function $_e(e,t={}){const{window:n=ph,ssrWidth:o=I_e()}=t,r=T_e(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=gn(typeof o=="number"),a=gn(),s=gn(!1),i=u=>{s.value=u.matches};return qo(()=>{if(l.value){l.value=!r.value;const u=El(e).split(",");s.value=u.some(d=>{const c=d.includes("not all"),h=d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),v=d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let m=!!(h||v);return h&&m&&(m=o>=YO(h[1])),v&&m&&(m=o<=YO(v[1])),c?!m:m});return}r.value&&(a.value=n.matchMedia(El(e)),s.value=a.value.matches)}),eS(a,"change",i,{passive:!0}),A(()=>s.value)}const _g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},kg="__vueuse_ssr_handlers__",M_e=R_e();function R_e(){return kg in _g||(_g[kg]=_g[kg]||{}),_g[kg]}function XN(e,t){return M_e[e]||t}function A_e(e){return $_e("(prefers-color-scheme: dark)",e)}function P_e(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"}const N_e={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()}},qO="vueuse-storage";function L_e(e,t,n,o={}){var r;const{flush:l="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:d,window:c=ph,eventFilter:h,onError:v=V=>{console.error(V)},initOnMounted:m}=o,g=(d?gn:W)(typeof t=="function"?t():t),w=A(()=>El(e));if(!n)try{n=XN("getDefaultStorage",()=>{var V;return(V=ph)==null?void 0:V.localStorage})()}catch(V){v(V)}if(!n)return g;const b=El(t),E=P_e(b),S=(r=o.serializer)!=null?r:N_e[E],{pause:C,resume:_}=__e(g,()=>M(g.value),{flush:l,deep:a,eventFilter:h});Pe(w,()=>$(),{flush:l});let k=!1;const O=V=>{m&&!k||$(V)},I=V=>{m&&!k||L(V)};c&&s&&(n instanceof Storage?eS(c,"storage",O,{passive:!0}):eS(c,qO,I)),m?YN(()=>{k=!0,$()}):$();function T(V,D){if(c){const N={key:w.value,oldValue:V,newValue:D,storageArea:n};c.dispatchEvent(n instanceof Storage?new StorageEvent("storage",N):new CustomEvent(qO,{detail:N}))}}function M(V){try{const D=n.getItem(w.value);if(V==null)T(D,null),n.removeItem(w.value);else{const N=S.write(V);D!==N&&(n.setItem(w.value,N),T(D,N))}}catch(D){v(D)}}function R(V){const D=V?V.newValue:n.getItem(w.value);if(D==null)return i&&b!=null&&n.setItem(w.value,S.write(b)),b;if(!V&&u){const N=S.read(D);return typeof u=="function"?u(N,b):E==="object"&&!Array.isArray(N)?{...b,...N}:N}else return typeof D!="string"?D:S.read(D)}function $(V){if(!(V&&V.storageArea!==n)){if(V&&V.key==null){g.value=b;return}if(!(V&&V.key!==w.value)){C();try{(V==null?void 0:V.newValue)!==S.write(g.value)&&(g.value=R(V))}catch(D){v(D)}finally{V?dt(_):_()}}}}function L(V){$(V.detail)}return g}const D_e="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function B_e(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=ph,storage:l,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:i,emitAuto:u,disableTransition:d=!0}=e,c={auto:"",light:"light",dark:"dark",...e.modes||{}},h=A_e({window:r}),v=A(()=>h.value?"dark":"light"),m=i||(a==null?UN(o):L_e(a,o,l,{window:r,listenToStorageChanges:s})),g=A(()=>m.value==="auto"?v.value:m.value),w=XN("updateHTMLAttrs",(C,_,k)=>{const O=typeof C=="string"?r==null?void 0:r.document.querySelector(C):qN(C);if(!O)return;const I=new Set,T=new Set;let M=null;if(_==="class"){const $=k.split(/\s/g);Object.values(c).flatMap(L=>(L||"").split(/\s/g)).filter(Boolean).forEach(L=>{$.includes(L)?I.add(L):T.add(L)})}else M={key:_,value:k};if(I.size===0&&T.size===0&&M===null)return;let R;d&&(R=r.document.createElement("style"),R.appendChild(document.createTextNode(D_e)),r.document.head.appendChild(R));for(const $ of I)O.classList.add($);for(const $ of T)O.classList.remove($);M&&O.setAttribute(M.key,M.value),d&&(r.getComputedStyle(R).opacity,document.head.removeChild(R))});function b(C){var _;w(t,n,(_=c[C])!=null?_:C)}function E(C){e.onChanged?e.onChanged(C,b):b(C)}Pe(g,E,{flush:"post",immediate:!0}),YN(()=>E(g.value));const S=A({get(){return u?m.value:g.value},set(C){m.value=C}});return Object.assign(S,{store:m,system:v,state:g})}function F_e(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=B_e({...e,onChanged:(a,s)=>{var i;e.onChanged?(i=e.onChanged)==null||i.call(e,a==="dark",s,a):s(a)},modes:{dark:t,light:n}}),r=A(()=>o.system.value);return A({get(){return o.value==="dark"},set(a){const s=a?"dark":"light";r.value===s?o.value="auto":o.value=s}})}const V_e={class:"float-btn"},H_e={class:"btns"},z_e={class:"item"},W_e={class:"dialog-footer"},K_e={__name:"FloatBtn",setup(e){const t=Ma(),n=W(!1),o=W(!1),r=W({username:"",password:""}),l=F_e(),a=k_e(l),s=A(()=>l.value?fZ:MX),i=W(!1),u=()=>{i.value=window.scrollY>500},d=()=>{window.scrollTo({top:0,behavior:"smooth"})},c=()=>{o.value=!0},h=()=>{n.value=!0},v=()=>{sessionStorage.removeItem("categorys"),t.categorys=[],t.getCategorys(),vn({message:"分类已刷新!",type:"success"})},m=()=>{let w="/index.php?c=login&check=login";const b=new FormData;b.append("user",r.value.username),b.append("password",r.value.password),Qn.post(w,b).then(E=>{let S=E.data;S.code===0?(Au({title:"Success",message:"登录成功!",type:"success"}),t.isLogin=!0,o.value=!1,sessionStorage.removeItem("subscribe"),t.getSubscribeStatus(),sessionStorage.removeItem("categorys"),t.getCategorys().then(()=>{t.getLinks()})):Au({title:"Error",message:S.err_msg,type:"error"})})},g=()=>{Qn.get("/index.php?c=admin&page=logout").then(b=>{b.status===200&&(t.isLogin=!1,Au({title:"Success",message:"您已退出!",type:"success"}),sessionStorage.removeItem("categorys"),t.getCategorys().then(()=>{t.getLinks()}))}).catch(b=>{console.log(b),Au({title:"Error",message:"退出失败!",type:"error"})})};return kt(()=>{window.addEventListener("scroll",u)}),Ll(()=>{window.removeEventListener("scroll",u)}),(w,b)=>{const E=lt,S=Lo,C=co,_=eu,k=Qi,O=Un;return P(),G("div",V_e,[j("div",H_e,[f(t).isLogin?(P(),G(tt,{key:0},[U(S,{class:"box-item",effect:"light",content:"添加分类",placement:"left"},{default:X(()=>[j("div",{class:"item",onClick:h},[U(E,null,{default:X(()=>[U(f(P0))]),_:1})])]),_:1}),U(S,{class:"box-item",effect:"light",content:"刷新分类",placement:"left"},{default:X(()=>[j("div",{class:"item",onClick:v},[U(E,null,{default:X(()=>[U(f(ZX))]),_:1})])]),_:1})],64)):me("",!0),f(t).isLogin?(P(),we(S,{key:2,class:"box-item",effect:"light",content:"退出登录",placement:"left"},{default:X(()=>[j("div",{class:"item",onClick:g},[U(E,null,{default:X(()=>[U(f(hZ))]),_:1})])]),_:1})):(P(),we(S,{key:1,class:"box-item",effect:"light",content:"管理员登录",placement:"left"},{default:X(()=>[j("div",{class:"item",onClick:c},[U(E,null,{default:X(()=>[U(f(kw))]),_:1})])]),_:1})),U(S,{class:"box-item",effect:"light",content:"模式切换",placement:"left"},{default:X(()=>[j("div",z_e,[U(E,null,{default:X(()=>[(P(),we(Ft(s.value),{onClick:b[0]||(b[0]=I=>f(a)())}))]),_:1})])]),_:1}),i.value?(P(),we(S,{key:3,class:"box-item",effect:"light",content:"返回顶部",placement:"left"},{default:X(()=>[j("div",{class:"item",onClick:d},[U(E,null,{default:X(()=>[U(f(yZ))]),_:1})])]),_:1})):me("",!0)]),U(bd,{"lock-scroll":!1,top:f(t).dialogTop,width:f(t).dialogWidth,center:!0,"append-to-body":!0,modelValue:o.value,"onUpdate:modelValue":b[4]||(b[4]=I=>o.value=I),title:"管理员登录"},{footer:X(()=>[j("div",W_e,[U(O,{style:{flex:"1"},round:"",onClick:b[3]||(b[3]=I=>o.value=!1)},{default:X(()=>b[7]||(b[7]=[_t("取消")])),_:1}),U(O,{style:{flex:"1"},round:"",type:"primary",onClick:m},{default:X(()=>b[8]||(b[8]=[_t(" 登录 ")])),_:1})])]),default:X(()=>[U(k,{model:r.value,"label-position":"top"},{default:X(()=>[U(_,{label:"用户名"},{default:X(()=>[U(C,{"prefix-icon":f(kw),placeholder:"请输入用户名",modelValue:r.value.username,"onUpdate:modelValue":b[1]||(b[1]=I=>r.value.username=I),autocomplete:"off"},null,8,["prefix-icon","modelValue"])]),_:1}),U(_,{label:"密码"},{default:X(()=>[U(C,{"prefix-icon":f(GM),placeholder:"请输入密码",type:"password",modelValue:r.value.password,"onUpdate:modelValue":b[2]||(b[2]=I=>r.value.password=I),autocomplete:"off",onKeyup:dn(m,["enter"])},null,8,["prefix-icon","modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["top","width","modelValue"]),U(bd,{"lock-scroll":!1,"append-to-body":!0,"destroy-on-close":!0,modelValue:n.value,"onUpdate:modelValue":b[6]||(b[6]=I=>n.value=I),title:"添加分类",width:f(t).dialogWidth},{default:X(()=>[U(g_,{addCategoryState:n.value,"onUpdate:addCategoryState":b[5]||(b[5]=I=>n.value=I)},null,8,["addCategoryState"])]),_:1},8,["modelValue","width"])])}}},j_e=Cr(K_e,[["__scopeId","data-v-8d2d5284"]]),U_e={class:"main-top"},G_e={class:"header"},Y_e={class:"search-box"},q_e={key:0,class:"result-list"},X_e={class:"result-icon"},Z_e=["src"],J_e={class:"result-text"},Q_e=["href","title"],eke={class:"search-engine"},tke={class:""},nke={class:"content"},oke={class:"cat-left"},rke={class:"ctitle"},ake={key:0,class:"lock"},lke=["onClick"],ske={class:"link"},ike={key:0,class:"badge",title:"该链接是私有状态,仅登录后可见!"},uke=["src"],cke=["onContextmenu"],dke=["title"],fke=["title"],pke={class:"more",title:"点击展开更多链接"},hke={style:{height:"80px"}},vke={class:"footer"},gke=["innerHTML"],mke={__name:"Main",setup(e){const t=W({}),n=Ma(),o=f_e(),r=W(0),l=W(0),a=W(null),s=W(!1),i=L=>{a.value=L,s.value=!0},u=(L,V)=>L===null||L===""?"https://favicon.png.pub/v1/"+M(V):L.startsWith("http")?L:n.domain+"/"+L,d=A(()=>"custom_footer"in n.siteInfo&&d!==""&&n.siteInfo.custom_footer!==null?n.siteInfo.custom_footer:'Copyright ©2024. Powered by <a title="OneNav是一款开源免费的书签管理器" href = "https://www.onenav.top/" target="_blank">OneNav</a>.'),c=L=>{E()},h=W({}),v=L=>{const V=n.limitedLinks[L];V.forEach((D,N)=>{D.weight=V.length-N}),g(L,V)},m=()=>{n.categoryMaskVisible=!0,n.menuVisible="block"},g=async(L,V)=>{const D=V.map(N=>({id:N.id,weight:N.weight}));try{(await Qn.post(`/index.php?c=api&method=update_link_order&category_id=${L}`,D)).data.code==200?vn({message:"排序已更新!",type:"success"}):vn({message:"排序更新失败!",type:"error"})}catch{vn({message:"排序更新失败!",type:"error"})}},w=L=>{L.preventDefault()},b=(L,V)=>{r.value=L.clientX,l.value=L.clientY,h.value=V,L.preventDefault(),n.contextMenuVisible=!0},E=()=>{const L=o.currentEngine,V=C.value;if(V===""){vn({message:"请输入关键词!",type:"warning"});return}const N=o.engines.find(H=>H.key===L).url+encodeURIComponent(V);window.open(N)},S=W(12),C=W(""),_=W([]),k=()=>{C.value="",_.value=[]},O=L=>{n.limitedLinks[L]=n.allLinks[L]},I=eSe.debounce(()=>{const L=C.value;if(L.length<2){_.value=[];return}const V=[];n.categorys.forEach(D=>{n.allLinks[D.id].forEach(N=>{(D.name&&D.name.toLowerCase().includes(L.toLowerCase())||N.title&&N.title.toLowerCase().includes(L.toLowerCase())||N.url&&N.url.toLowerCase().includes(L.toLowerCase())||N.description&&N.description.toLowerCase().includes(L.toLowerCase())||N.url_standby&&N.url_standby.toLowerCase().includes(L.toLowerCase()))&&V.push(N)})}),_.value=V.slice(0,10)},300),T=L=>{const V=t.value[L];if(V){const D=V.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:D,behavior:"smooth"})}};Pe(()=>n.categoryId,L=>{L!==null&&T(L)}),Pe(()=>n.links,L=>{L.length>0&&n.categorys.forEach(V=>{const D=L.filter(N=>N.fid==V.id);n.limitedLinks[V.id]=D.slice(0,S.value),n.allLinks[V.id]=D})},{immediate:!0});const M=L=>{const V=new URL(L),D=V.protocol||"http:",N=V.hostname,H=V.port?`:${V.port}`:"",B=D+"//"+N+H;return btoa(B)},R=L=>!L||L.trim()===""?"没有描述":L.trim(),$=L=>{if(n.transitionPage.control==="off"){console.log(n.transitionPage.control),window.open(L.url);return}if(n.isLogin&&n.transitionPage.control==="on"&&n.transitionPage.admin_stay_time===0){window.open(L.url);return}window.open("/index.php?theme=default2#/go/"+L.id)};return kt(()=>{n.getSiteInfo().then(()=>{var V;const L=(V=n.siteInfo)==null?void 0:V.link_num;L?S.value=L:S.value=12}),o.changeDefaultEngine(),n.getTransitionPage()}),(L,V)=>{const D=lt,N=Ui,H=Al,B=co,z=Lo,q=Bh,Z=nu,ie=tu,re=df;return P(),G(tt,null,[j("div",U_e,[j("div",G_e,[j("div",{class:"menu-switch",onClick:m},[U(D,null,{default:X(()=>[U(f(LX))]),_:1})]),j("div",Y_e,[_.value.length>0?(P(),G("div",q_e,[(P(!0),G(tt,null,Dt(_.value,ve=>(P(),G("div",{key:ve.id,class:"result-item"},[j("div",X_e,[j("img",{loading:"lazy",src:u(ve.font_icon,ve.url),width:"16",height:"16"},null,8,Z_e)]),j("div",J_e,[j("a",{href:ve.url,target:"_blank",rel:"nofollow",title:ve.title},[j("span",null,"["+We(f(n).getCategoryNameById(ve.fid))+"] - ",1),_t(" "+We(ve.title),1)],8,Q_e)])]))),128))])):me("",!0),j("div",eke,[U(H,{modelValue:f(o).currentEngine,"onUpdate:modelValue":V[0]||(V[0]=ve=>f(o).currentEngine=ve),placeholder:"Select",size:"large",style:{width:"98px","-webkit-tap-highlight-color":"transparent"},onChange:f(o).changeEngine},{default:X(()=>[(P(!0),G(tt,null,Dt(f(o).engines,ve=>(P(),we(N,{key:ve.key,label:ve.name,value:ve.key},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),j("div",tke,[U(B,{autofocus:!0,modelValue:C.value,"onUpdate:modelValue":V[1]||(V[1]=ve=>C.value=ve),clearable:!0,onInput:f(I),class:"search-input",size:"large",placeholder:"请输入关键词",onKeyup:[dn(k,["esc"]),dn(c,["enter"])]},null,8,["modelValue","onInput"])]),j("div",{class:"search-btn",onClick:E,title:"点击搜索"},[U(D,null,{default:X(()=>[U(f(YM))]),_:1})])])])]),j("div",nke,[U(ie,null,{default:X(()=>[(P(!0),G(tt,null,Dt(f(n).categorys,ve=>(P(),we(Z,{lg:24},{default:X(()=>[(P(),G("div",{key:"cid"+ve.id,class:"category",ref_for:!0,ref:Ce=>t.value[ve.id]=Ce},[j("div",oke,[j("h2",rke,We(ve.name),1),ve.property==="1"?(P(),G("span",ake,[U(z,{class:"box-item",effect:"light",content:"该分类是私有状态,仅登录后可见!",placement:"top"},{default:X(()=>[U(D,null,{default:X(()=>[U(f(G4))]),_:1})]),_:1})])):me("",!0)]),f(n).isLogin?(P(),G("div",{key:0,onClick:Ce=>i(ve.id),title:"编辑分类",class:"cat-right"},[U(D,null,{default:X(()=>[U(f(gX))]),_:1})],8,lke)):me("",!0)])),U(ie,null,{default:X(()=>[Tt(U(q,{rows:3,animated:""},null,512),[[jt,!f(n).limitedLinks[ve.id]]]),f(n).limitedLinks[ve.id]?(P(),we(f(Q2e),{key:0,list:f(n).limitedLinks[ve.id],group:`category-${ve.id}`,"item-key":"id",onEnd:Ce=>v(ve.id),class:"draggable-box",disabled:!f(n).isLogin,handle:".ico"},{item:X(({element:Ce})=>[(P(),we(Z,{onClick:Ee=>$(Ce),key:Ce.id,xs:24,sm:12,md:8,lg:6},{default:X(()=>[j("div",ske,[Ce.property==="1"?(P(),G("span",ike,[U(D,null,{default:X(()=>[U(f(G4))]),_:1})])):me("",!0),j("div",{class:"ico",onContextmenu:wt(w,["prevent"])},[j("img",{loading:"lazy",src:u(Ce.font_icon,Ce.url),width:"16",height:"16"},null,8,uke)],32),j("div",{class:"link-content",onContextmenu:Ee=>b(Ee,Ce)},[j("div",{class:"link-title",title:Ce.title},[j("b",null,We(Ce.title),1)],8,dke),j("div",{class:"link-description",title:Ce.description},We(R(Ce.description)),9,fke)],40,cke)])]),_:2},1032,["onClick"]))]),_:2},1032,["list","group","onEnd","disabled"])):me("",!0),f(n).allLinks[ve.id]&&f(n).allLinks[ve.id].length>S.value&&f(n).limitedLinks[ve.id].length<=S.value?(P(),we(Z,{key:1,draggable:!1,onClick:Ce=>O(ve.id),lg:24},{default:X(()=>[j("div",pke,[V[4]||(V[4]=j("div",null,"查看更多",-1)),U(D,null,{default:X(()=>[U(f(Kq))]),_:1})])]),_:2},1032,["onClick"])):me("",!0)]),_:2},1024)]),_:2},1024))),256))]),_:1})]),Tt(j("div",hke,null,512),[[jt,f(n).isLogin]]),U(re,{top:f(n).dialogTop,width:f(n).dialogWidth,modal:"","append-to-body":!0,"destroy-on-close":!0,modelValue:s.value,"onUpdate:modelValue":V[3]||(V[3]=ve=>s.value=ve),title:"编辑分类"},{default:X(()=>[U(g_,{id:a.value,addCategoryState:s.value,"onUpdate:addCategoryState":V[2]||(V[2]=ve=>s.value=ve)},null,8,["id","addCategoryState"])]),_:1},8,["top","width","modelValue"]),U(d_e,{link:h.value,x:r.value,y:l.value},null,8,["link","x","y"]),Tt(j("div",vke,[j("div",{id:"footer-content",innerHTML:d.value},null,8,gke)],512),[[jt,!f(n).isLogin]]),f(n).isLogin?(P(),we(h2e,{key:0})):me("",!0),U(j_e)],64)}}},yke=Cr(mke,[["__scopeId","data-v-89786d4e"]]),bke={class:"common-layout"},wke={__name:"HomeView",setup(e){const t=Ma();return kt(()=>{document.body.clientWidth<768&&(t.menuVisible="none"),t.getSubscribeStatus()}),(n,o)=>{const r=Z6,l=J6,a=X6;return P(),G(tt,null,[f(t).categoryMaskVisible?(P(),G("div",{key:0,onClick:o[0]||(o[0]=(...s)=>f(t).closeMenu&&f(t).closeMenu(...s)),class:"category-mask"})):me("",!0),j("div",bke,[U(a,null,{default:X(()=>[U(So,null,{default:X(()=>[Tt(U(r,{class:"left-menu"},{default:X(()=>[U(Awe)]),_:1},512),[[jt,f(t).menuVisible=="block"]])]),_:1}),U(l,{class:"main"},{default:X(()=>[U(yke)]),_:1})]),_:1})])],64)}}},Ske=Cr(wke,[["__scopeId","data-v-b8f6b6e0"]]),Cke={class:"error-box"},_ke={class:"err-title"},kke={class:"ico"},Eke={class:"text"},xke=["innerHTML"],Tke={__name:"ErrorPage",props:["code"],setup(e){const t=e,n=W({title:"",msg:""});return kt(()=>{switch(t.code){case 401:n.value.title="未授权",n.value.msg=`<p>很抱歉,您无权访问此页面!</p>
121 <p>如果您是管理员,请尝试登录OneNav后台并重新访问!</p>`;break;case 403:n.value.title="禁止访问",n.value.msg=`<p>很抱歉,您无权访问此页面!</p>
122 <p>如果您是管理员,请尝试登录OneNav后台并重新访问!</p>`;break;case 404:n.value.title="页面不存在",n.value.msg=`<p>很抱歉,您访问的页面不存在!</p>
123 <p>请检查您输入的网址是否正确!</p>`;break;case 500:n.value.title="服务器错误",n.value.msg=`<p>很抱歉,服务器发生错误!</p>

Callers 15

constructorMethod · 0.95
layui.jsFile · 0.80
tFunction · 0.80
PopperFunction · 0.80
finishPromiseProcessFunction · 0.80
aFunction · 0.80
setupFunction · 0.80
GFunction · 0.80
qiFunction · 0.80
AFunction · 0.80

Calls 6

appendMethod · 0.95
GOFunction · 0.85
e0Function · 0.85
GCeFunction · 0.85
_clearContainerMethod · 0.80
drawQRMethod · 0.80

Tested by

no test coverage detected