From f64b742e96625dcda1bf8ea512e2400615926450 Mon Sep 17 00:00:00 2001 From: Jero Soler Date: Wed, 6 Sep 2023 15:34:53 +0200 Subject: [PATCH] Add Github Pages. --- docs/assets/index-508dc44f.js | 8 ++++++++ docs/assets/index-aebfe953.css | 1 + docs/index.html | 15 +++++++++++++++ docs/vite.svg | 1 + vite.config.js | 3 +++ 5 files changed, 28 insertions(+) create mode 100644 docs/assets/index-508dc44f.js create mode 100644 docs/assets/index-aebfe953.css create mode 100644 docs/index.html create mode 100644 docs/vite.svg diff --git a/docs/assets/index-508dc44f.js b/docs/assets/index-508dc44f.js new file mode 100644 index 0000000..7a2e7ae --- /dev/null +++ b/docs/assets/index-508dc44f.js @@ -0,0 +1,8 @@ +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function ni(t,e){const r=Object.create(null),n=t.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const pt={},fr=[],te=()=>{},rc=()=>!1,nc=/^on[^a-z]/,Zn=t=>nc.test(t),oi=t=>t.startsWith("onUpdate:"),bt=Object.assign,ii=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},oc=Object.prototype.hasOwnProperty,st=(t,e)=>oc.call(t,e),tt=Array.isArray,Yr=t=>Qn(t)==="[object Map]",ic=t=>Qn(t)==="[object Set]",rt=t=>typeof t=="function",Pt=t=>typeof t=="string",si=t=>typeof t=="symbol",wt=t=>t!==null&&typeof t=="object",ga=t=>wt(t)&&rt(t.then)&&rt(t.catch),sc=Object.prototype.toString,Qn=t=>sc.call(t),ac=t=>Qn(t).slice(8,-1),lc=t=>Qn(t)==="[object Object]",ai=t=>Pt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,xn=ni(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),to=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},cc=/-(\w)/g,br=to(t=>t.replace(cc,(e,r)=>r?r.toUpperCase():"")),uc=/\B([A-Z])/g,Tr=to(t=>t.replace(uc,"-$1").toLowerCase()),ya=to(t=>t.charAt(0).toUpperCase()+t.slice(1)),mo=to(t=>t?`on${ya(t)}`:""),Qr=(t,e)=>!Object.is(t,e),En=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},No=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Ki;const Lo=()=>Ki||(Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function li(t){if(tt(t)){const e={};for(let r=0;r{if(r){const n=r.split(hc);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function ci(t){let e="";if(Pt(t))e=t;else if(tt(t))for(let r=0;r{const e=new Set(t);return e.w=0,e.n=0,e},ma=t=>(t.w&Ce)>0,wa=t=>(t.n&Ce)>0,_c=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{(d==="length"||d>=a)&&l.push(u)})}else switch(r!==void 0&&l.push(s.get(r)),e){case"add":tt(t)?ai(r)&&l.push(s.get("length")):(l.push(s.get(Xe)),Yr(t)&&l.push(s.get(Fo)));break;case"delete":tt(t)||(l.push(s.get(Xe)),Yr(t)&&l.push(s.get(Fo)));break;case"set":Yr(t)&&l.push(s.get(Xe));break}if(l.length===1)l[0]&&Bo(l[0]);else{const a=[];for(const u of l)u&&a.push(...u);Bo(ui(a))}}function Bo(t,e){const r=tt(t)?t:[...t];for(const n of r)n.computed&&Gi(n);for(const n of r)n.computed||Gi(n)}function Gi(t,e){(t!==Vt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Pc=ni("__proto__,__v_isRef,__isVue"),Pa=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(si)),Oc=hi(),Mc=hi(!1,!0),Sc=hi(!0),Zi=Ac();function Ac(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=lt(this);for(let i=0,s=this.length;i{t[e]=function(...r){xr();const n=lt(this)[e].apply(this,r);return Er(),n}}),t}function Tc(t){const e=lt(this);return Lt(e,"has",t),e.hasOwnProperty(t)}function hi(t=!1,e=!1){return function(n,o,i){if(o==="__v_isReactive")return!t;if(o==="__v_isReadonly")return t;if(o==="__v_isShallow")return e;if(o==="__v_raw"&&i===(t?e?Jc:Ta:e?Aa:Sa).get(n))return n;const s=tt(n);if(!t){if(s&&st(Zi,o))return Reflect.get(Zi,o,i);if(o==="hasOwnProperty")return Tc}const l=Reflect.get(n,o,i);return(si(o)?Pa.has(o):Pc(o))||(t||Lt(n,"get",o),e)?l:xt(l)?s&&ai(o)?l:l.value:wt(l)?t?xa(l):gi(l):l}}const xc=Oa(),Ec=Oa(!0);function Oa(t=!1){return function(r,n,o,i){let s=r[n];if(Pr(s)&&xt(s)&&!xt(o))return!1;if(!t&&(!jn(o)&&!Pr(o)&&(s=lt(s),o=lt(o)),!tt(r)&&xt(s)&&!xt(o)))return s.value=o,!0;const l=tt(r)&&ai(n)?Number(n)t,eo=t=>Reflect.getPrototypeOf(t);function hn(t,e,r=!1,n=!1){t=t.__v_raw;const o=lt(t),i=lt(e);r||(e!==i&&Lt(o,"get",e),Lt(o,"get",i));const{has:s}=eo(o),l=n?di:r?vi:tn;if(s.call(o,e))return l(t.get(e));if(s.call(o,i))return l(t.get(i));t!==o&&t.get(e)}function dn(t,e=!1){const r=this.__v_raw,n=lt(r),o=lt(t);return e||(t!==o&&Lt(n,"has",t),Lt(n,"has",o)),t===o?r.has(t):r.has(t)||r.has(o)}function pn(t,e=!1){return t=t.__v_raw,!e&&Lt(lt(t),"iterate",Xe),Reflect.get(t,"size",t)}function Qi(t){t=lt(t);const e=lt(this);return eo(e).has.call(e,t)||(e.add(t),ve(e,"add",t,t)),this}function ts(t,e){e=lt(e);const r=lt(this),{has:n,get:o}=eo(r);let i=n.call(r,t);i||(t=lt(t),i=n.call(r,t));const s=o.call(r,t);return r.set(t,e),i?Qr(e,s)&&ve(r,"set",t,e):ve(r,"add",t,e),this}function es(t){const e=lt(this),{has:r,get:n}=eo(e);let o=r.call(e,t);o||(t=lt(t),o=r.call(e,t)),n&&n.call(e,t);const i=e.delete(t);return o&&ve(e,"delete",t,void 0),i}function rs(){const t=lt(this),e=t.size!==0,r=t.clear();return e&&ve(t,"clear",void 0,void 0),r}function gn(t,e){return function(n,o){const i=this,s=i.__v_raw,l=lt(s),a=e?di:t?vi:tn;return!t&&Lt(l,"iterate",Xe),s.forEach((u,d)=>n.call(o,a(u),a(d),i))}}function yn(t,e,r){return function(...n){const o=this.__v_raw,i=lt(o),s=Yr(i),l=t==="entries"||t===Symbol.iterator&&s,a=t==="keys"&&s,u=o[t](...n),d=r?di:e?vi:tn;return!e&&Lt(i,"iterate",a?Fo:Xe),{next(){const{value:f,done:v}=u.next();return v?{value:f,done:v}:{value:l?[d(f[0]),d(f[1])]:d(f),done:v}},[Symbol.iterator](){return this}}}}function Pe(t){return function(...e){return t==="delete"?!1:this}}function Rc(){const t={get(i){return hn(this,i)},get size(){return pn(this)},has:dn,add:Qi,set:ts,delete:es,clear:rs,forEach:gn(!1,!1)},e={get(i){return hn(this,i,!1,!0)},get size(){return pn(this)},has:dn,add:Qi,set:ts,delete:es,clear:rs,forEach:gn(!1,!0)},r={get(i){return hn(this,i,!0)},get size(){return pn(this,!0)},has(i){return dn.call(this,i,!0)},add:Pe("add"),set:Pe("set"),delete:Pe("delete"),clear:Pe("clear"),forEach:gn(!0,!1)},n={get(i){return hn(this,i,!0,!0)},get size(){return pn(this,!0)},has(i){return dn.call(this,i,!0)},add:Pe("add"),set:Pe("set"),delete:Pe("delete"),clear:Pe("clear"),forEach:gn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=yn(i,!1,!1),r[i]=yn(i,!0,!1),e[i]=yn(i,!1,!0),n[i]=yn(i,!0,!0)}),[t,r,e,n]}const[Dc,Fc,Bc,zc]=Rc();function pi(t,e){const r=e?t?zc:Bc:t?Fc:Dc;return(n,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(st(r,o)&&o in n?r:n,o,i)}const jc={get:pi(!1,!1)},Uc={get:pi(!1,!0)},$c={get:pi(!0,!1)},Sa=new WeakMap,Aa=new WeakMap,Ta=new WeakMap,Jc=new WeakMap;function qc(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xc(t){return t.__v_skip||!Object.isExtensible(t)?0:qc(ac(t))}function gi(t){return Pr(t)?t:yi(t,!1,Ma,jc,Sa)}function Wc(t){return yi(t,!1,Lc,Uc,Aa)}function xa(t){return yi(t,!0,Nc,$c,Ta)}function yi(t,e,r,n,o){if(!wt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=o.get(t);if(i)return i;const s=Xc(t);if(s===0)return t;const l=new Proxy(t,s===2?n:r);return o.set(t,l),l}function hr(t){return Pr(t)?hr(t.__v_raw):!!(t&&t.__v_isReactive)}function Pr(t){return!!(t&&t.__v_isReadonly)}function jn(t){return!!(t&&t.__v_isShallow)}function Ea(t){return hr(t)||Pr(t)}function lt(t){const e=t&&t.__v_raw;return e?lt(e):t}function Ia(t){return zn(t,"__v_skip",!0),t}const tn=t=>wt(t)?gi(t):t,vi=t=>wt(t)?xa(t):t;function Ca(t){Ae&&Vt&&(t=lt(t),ba(t.dep||(t.dep=ui())))}function ka(t,e){t=lt(t);const r=t.dep;r&&Bo(r)}function xt(t){return!!(t&&t.__v_isRef===!0)}function Re(t){return Hc(t,!1)}function Hc(t,e){return xt(t)?t:new Vc(t,e)}class Vc{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:lt(e),this._value=r?e:tn(e)}get value(){return Ca(this),this._value}set value(e){const r=this.__v_isShallow||jn(e)||Pr(e);e=r?e:lt(e),Qr(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:tn(e),ka(this))}}function Na(t){return xt(t)?t.value:t}const Kc={get:(t,e,r)=>Na(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const o=t[e];return xt(o)&&!xt(r)?(o.value=r,!0):Reflect.set(t,e,r,n)}};function La(t){return hr(t)?t:new Proxy(t,Kc)}class Yc{constructor(e,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new fi(e,()=>{this._dirty||(this._dirty=!0,ka(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=lt(this);return Ca(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Gc(t,e,r=!1){let n,o;const i=rt(t);return i?(n=t,o=te):(n=t.get,o=t.set),new Yc(n,o,i||!o,r)}function Te(t,e,r,n){let o;try{o=n?t(...n):t()}catch(i){ro(i,e,r)}return o}function ee(t,e,r,n){if(rt(t)){const i=Te(t,e,r,n);return i&&ga(i)&&i.catch(s=>{ro(s,e,r)}),i}const o=[];for(let i=0;i>>1;rn(St[n])ue&&St.splice(e,1)}function ru(t){tt(t)?dr.push(...t):(!he||!he.includes(t,t.allowRecurse?je+1:je))&&dr.push(t),Da()}function ns(t,e=en?ue+1:0){for(;ern(r)-rn(n)),je=0;jet.id==null?1/0:t.id,nu=(t,e)=>{const r=rn(t)-rn(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function Ba(t){zo=!1,en=!0,St.sort(nu);const e=te;try{for(ue=0;uePt(C)?C.trim():C)),f&&(o=r.map(No))}let l,a=n[l=mo(e)]||n[l=mo(br(e))];!a&&i&&(a=n[l=mo(Tr(e))]),a&&ee(a,t,6,o);const u=n[l+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,ee(u,t,6,o)}}function za(t,e,r=!1){const n=e.emitsCache,o=n.get(t);if(o!==void 0)return o;const i=t.emits;let s={},l=!1;if(!rt(t)){const a=u=>{const d=za(u,e,!0);d&&(l=!0,bt(s,d))};!r&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!i&&!l?(wt(t)&&n.set(t,null),null):(tt(i)?i.forEach(a=>s[a]=null):bt(s,i),wt(t)&&n.set(t,s),s)}function no(t,e){return!t||!Zn(e)?!1:(e=e.slice(2).replace(/Once$/,""),st(t,e[0].toLowerCase()+e.slice(1))||st(t,Tr(e))||st(t,e))}let Gt=null,oo=null;function Un(t){const e=Gt;return Gt=t,oo=t&&t.type.__scopeId||null,e}function iu(t){oo=t}function su(){oo=null}function au(t,e=Gt,r){if(!e||t._n)return t;const n=(...o)=>{n._d&&ds(-1);const i=Un(e);let s;try{s=t(...o)}finally{Un(i),n._d&&ds(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function wo(t){const{type:e,vnode:r,proxy:n,withProxy:o,props:i,propsOptions:[s],slots:l,attrs:a,emit:u,render:d,renderCache:f,data:v,setupState:C,ctx:N,inheritAttrs:H}=t;let et,Q;const J=Un(t);try{if(r.shapeFlag&4){const U=o||n;et=ce(d.call(U,U,f,i,C,v,N)),Q=a}else{const U=e;et=ce(U.length>1?U(i,{attrs:a,slots:l,emit:u}):U(i,null)),Q=e.props?a:lu(a)}}catch(U){Zr.length=0,ro(U,t,1),et=ye(Ve)}let Y=et;if(Q&&H!==!1){const U=Object.keys(Q),{shapeFlag:k}=Y;U.length&&k&7&&(s&&U.some(oi)&&(Q=cu(Q,s)),Y=Or(Y,Q))}return r.dirs&&(Y=Or(Y),Y.dirs=Y.dirs?Y.dirs.concat(r.dirs):r.dirs),r.transition&&(Y.transition=r.transition),et=Y,Un(J),et}const lu=t=>{let e;for(const r in t)(r==="class"||r==="style"||Zn(r))&&((e||(e={}))[r]=t[r]);return e},cu=(t,e)=>{const r={};for(const n in t)(!oi(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function uu(t,e,r){const{props:n,children:o,component:i}=t,{props:s,children:l,patchFlag:a}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&a>=0){if(a&1024)return!0;if(a&16)return n?os(n,s,u):!!s;if(a&8){const d=e.dynamicProps;for(let f=0;ft.__isSuspense;function du(t,e){e&&e.pendingBranch?tt(t)?e.effects.push(...t):e.effects.push(t):ru(t)}function pu(t,e){return _i(t,null,e)}const vn={};function _o(t,e,r){return _i(t,e,r)}function _i(t,e,{immediate:r,deep:n,flush:o,onTrack:i,onTrigger:s}=pt){var l;const a=wc()===((l=At)==null?void 0:l.scope)?At:null;let u,d=!1,f=!1;if(xt(t)?(u=()=>t.value,d=jn(t)):hr(t)?(u=()=>t,n=!0):tt(t)?(f=!0,d=t.some(U=>hr(U)||jn(U)),u=()=>t.map(U=>{if(xt(U))return U.value;if(hr(U))return qe(U);if(rt(U))return Te(U,a,2)})):rt(t)?e?u=()=>Te(t,a,2):u=()=>{if(!(a&&a.isUnmounted))return v&&v(),ee(t,a,3,[C])}:u=te,e&&n){const U=u;u=()=>qe(U())}let v,C=U=>{v=J.onStop=()=>{Te(U,a,4)}},N;if(on)if(C=te,e?r&&ee(e,a,3,[u(),f?[]:void 0,C]):u(),o==="sync"){const U=ff();N=U.__watcherHandles||(U.__watcherHandles=[])}else return te;let H=f?new Array(t.length).fill(vn):vn;const et=()=>{if(J.active)if(e){const U=J.run();(n||d||(f?U.some((k,j)=>Qr(k,H[j])):Qr(U,H)))&&(v&&v(),ee(e,a,3,[U,H===vn?void 0:f&&H[0]===vn?[]:H,C]),H=U)}else J.run()};et.allowRecurse=!!e;let Q;o==="sync"?Q=et:o==="post"?Q=()=>Nt(et,a&&a.suspense):(et.pre=!0,a&&(et.id=a.uid),Q=()=>wi(et));const J=new fi(u,Q);e?r?et():H=J.run():o==="post"?Nt(J.run.bind(J),a&&a.suspense):J.run();const Y=()=>{J.stop(),a&&a.scope&&ii(a.scope.effects,J)};return N&&N.push(Y),Y}function gu(t,e,r){const n=this.proxy,o=Pt(t)?t.includes(".")?ja(n,t):()=>n[t]:t.bind(n,n);let i;rt(e)?i=e:(i=e.handler,r=e);const s=At;Mr(this);const l=_i(o,i.bind(n),r);return s?Mr(s):We(),l}function ja(t,e){const r=e.split(".");return()=>{let n=t;for(let o=0;o{qe(r,e)});else if(lc(t))for(const r in t)qe(t[r],e);return t}function nr(t,e){const r=Gt;if(r===null)return t;const n=lo(r)||r.proxy,o=t.dirs||(t.dirs=[]);for(let i=0;i!!t.type.__asyncLoader,Ua=t=>t.type.__isKeepAlive;function yu(t,e){$a(t,"a",e)}function vu(t,e){$a(t,"da",e)}function $a(t,e,r=At){const n=t.__wdc||(t.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(io(e,n,r),r){let o=r.parent;for(;o&&o.parent;)Ua(o.parent.vnode)&&mu(n,e,r,o),o=o.parent}}function mu(t,e,r,n){const o=io(e,t,n,!0);Ja(()=>{ii(n[e],o)},r)}function io(t,e,r=At,n=!1){if(r){const o=r[t]||(r[t]=[]),i=e.__weh||(e.__weh=(...s)=>{if(r.isUnmounted)return;xr(),Mr(r);const l=ee(e,r,t,s);return We(),Er(),l});return n?o.unshift(i):o.push(i),i}}const we=t=>(e,r=At)=>(!on||t==="sp")&&io(t,(...n)=>e(...n),r),wu=we("bm"),_u=we("m"),bu=we("bu"),Pu=we("u"),Ou=we("bum"),Ja=we("um"),Mu=we("sp"),Su=we("rtg"),Au=we("rtc");function Tu(t,e=At){io("ec",t,e)}const xu=Symbol.for("v-ndc"),jo=t=>t?el(t)?lo(t)||t.proxy:jo(t.parent):null,Gr=bt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>jo(t.parent),$root:t=>jo(t.root),$emit:t=>t.emit,$options:t=>bi(t),$forceUpdate:t=>t.f||(t.f=()=>wi(t.update)),$nextTick:t=>t.n||(t.n=Qc.bind(t.proxy)),$watch:t=>gu.bind(t)}),bo=(t,e)=>t!==pt&&!t.__isScriptSetup&&st(t,e),Eu={get({_:t},e){const{ctx:r,setupState:n,data:o,props:i,accessCache:s,type:l,appContext:a}=t;let u;if(e[0]!=="$"){const C=s[e];if(C!==void 0)switch(C){case 1:return n[e];case 2:return o[e];case 4:return r[e];case 3:return i[e]}else{if(bo(n,e))return s[e]=1,n[e];if(o!==pt&&st(o,e))return s[e]=2,o[e];if((u=t.propsOptions[0])&&st(u,e))return s[e]=3,i[e];if(r!==pt&&st(r,e))return s[e]=4,r[e];Uo&&(s[e]=0)}}const d=Gr[e];let f,v;if(d)return e==="$attrs"&&Lt(t,"get",e),d(t);if((f=l.__cssModules)&&(f=f[e]))return f;if(r!==pt&&st(r,e))return s[e]=4,r[e];if(v=a.config.globalProperties,st(v,e))return v[e]},set({_:t},e,r){const{data:n,setupState:o,ctx:i}=t;return bo(o,e)?(o[e]=r,!0):n!==pt&&st(n,e)?(n[e]=r,!0):st(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:o,propsOptions:i}},s){let l;return!!r[s]||t!==pt&&st(t,s)||bo(e,s)||(l=i[0])&&st(l,s)||st(n,s)||st(Gr,s)||st(o.config.globalProperties,s)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:st(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function is(t){return tt(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let Uo=!0;function Iu(t){const e=bi(t),r=t.proxy,n=t.ctx;Uo=!1,e.beforeCreate&&ss(e.beforeCreate,t,"bc");const{data:o,computed:i,methods:s,watch:l,provide:a,inject:u,created:d,beforeMount:f,mounted:v,beforeUpdate:C,updated:N,activated:H,deactivated:et,beforeDestroy:Q,beforeUnmount:J,destroyed:Y,unmounted:U,render:k,renderTracked:j,renderTriggered:T,errorCaptured:A,serverPrefetch:w,expose:P,inheritAttrs:g,components:p,directives:I,filters:E}=e;if(u&&Cu(u,n,null),s)for(const z in s){const $=s[z];rt($)&&(n[z]=$.bind(r))}if(o){const z=o.call(r,r);wt(z)&&(t.data=gi(z))}if(Uo=!0,i)for(const z in i){const $=i[z],it=rt($)?$.bind(r,r):rt($.get)?$.get.bind(r,r):te,gt=!rt($)&&rt($.set)?$.set.bind(r):te,vt=cf({get:it,set:gt});Object.defineProperty(n,z,{enumerable:!0,configurable:!0,get:()=>vt.value,set:yt=>vt.value=yt})}if(l)for(const z in l)qa(l[z],n,r,z);if(a){const z=rt(a)?a.call(r):a;Reflect.ownKeys(z).forEach($=>{Fu($,z[$])})}d&&ss(d,t,"c");function q(z,$){tt($)?$.forEach(it=>z(it.bind(r))):$&&z($.bind(r))}if(q(wu,f),q(_u,v),q(bu,C),q(Pu,N),q(yu,H),q(vu,et),q(Tu,A),q(Au,j),q(Su,T),q(Ou,J),q(Ja,U),q(Mu,w),tt(P))if(P.length){const z=t.exposed||(t.exposed={});P.forEach($=>{Object.defineProperty(z,$,{get:()=>r[$],set:it=>r[$]=it})})}else t.exposed||(t.exposed={});k&&t.render===te&&(t.render=k),g!=null&&(t.inheritAttrs=g),p&&(t.components=p),I&&(t.directives=I)}function Cu(t,e,r=te){tt(t)&&(t=$o(t));for(const n in t){const o=t[n];let i;wt(o)?"default"in o?i=Cn(o.from||n,o.default,!0):i=Cn(o.from||n):i=Cn(o),xt(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):e[n]=i}}function ss(t,e,r){ee(tt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function qa(t,e,r,n){const o=n.includes(".")?ja(r,n):()=>r[n];if(Pt(t)){const i=e[t];rt(i)&&_o(o,i)}else if(rt(t))_o(o,t.bind(r));else if(wt(t))if(tt(t))t.forEach(i=>qa(i,e,r,n));else{const i=rt(t.handler)?t.handler.bind(r):e[t.handler];rt(i)&&_o(o,i,t)}}function bi(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=t.appContext,l=i.get(e);let a;return l?a=l:!o.length&&!r&&!n?a=e:(a={},o.length&&o.forEach(u=>$n(a,u,s,!0)),$n(a,e,s)),wt(e)&&i.set(e,a),a}function $n(t,e,r,n=!1){const{mixins:o,extends:i}=e;i&&$n(t,i,r,!0),o&&o.forEach(s=>$n(t,s,r,!0));for(const s in e)if(!(n&&s==="expose")){const l=ku[s]||r&&r[s];t[s]=l?l(t[s],e[s]):e[s]}return t}const ku={data:as,props:ls,emits:ls,methods:Hr,computed:Hr,beforeCreate:Et,created:Et,beforeMount:Et,mounted:Et,beforeUpdate:Et,updated:Et,beforeDestroy:Et,beforeUnmount:Et,destroyed:Et,unmounted:Et,activated:Et,deactivated:Et,errorCaptured:Et,serverPrefetch:Et,components:Hr,directives:Hr,watch:Lu,provide:as,inject:Nu};function as(t,e){return e?t?function(){return bt(rt(t)?t.call(this,this):t,rt(e)?e.call(this,this):e)}:e:t}function Nu(t,e){return Hr($o(t),$o(e))}function $o(t){if(tt(t)){const e={};for(let r=0;r1)return r&&rt(e)?e.call(n&&n.proxy):e}}function Bu(t,e,r,n=!1){const o={},i={};zn(i,ao,1),t.propsDefaults=Object.create(null),Wa(t,e,o,i);for(const s in t.propsOptions[0])s in o||(o[s]=void 0);r?t.props=n?o:Wc(o):t.type.props?t.props=o:t.props=i,t.attrs=i}function zu(t,e,r,n){const{props:o,attrs:i,vnode:{patchFlag:s}}=t,l=lt(o),[a]=t.propsOptions;let u=!1;if((n||s>0)&&!(s&16)){if(s&8){const d=t.vnode.dynamicProps;for(let f=0;f{a=!0;const[v,C]=Ha(f,e,!0);bt(s,v),C&&l.push(...C)};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!i&&!a)return wt(t)&&n.set(t,fr),fr;if(tt(i))for(let d=0;d-1,C[1]=H<0||N-1||st(C,"default"))&&l.push(f)}}}const u=[s,l];return wt(t)&&n.set(t,u),u}function cs(t){return t[0]!=="$"}function us(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function fs(t,e){return us(t)===us(e)}function hs(t,e){return tt(e)?e.findIndex(r=>fs(r,t)):rt(e)&&fs(e,t)?0:-1}const Va=t=>t[0]==="_"||t==="$stable",Pi=t=>tt(t)?t.map(ce):[ce(t)],ju=(t,e,r)=>{if(e._n)return e;const n=au((...o)=>Pi(e(...o)),r);return n._c=!1,n},Ka=(t,e,r)=>{const n=t._ctx;for(const o in t){if(Va(o))continue;const i=t[o];if(rt(i))e[o]=ju(o,i,n);else if(i!=null){const s=Pi(i);e[o]=()=>s}}},Ya=(t,e)=>{const r=Pi(e);t.slots.default=()=>r},Uu=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=lt(e),zn(e,"_",r)):Ka(e,t.slots={})}else t.slots={},e&&Ya(t,e);zn(t.slots,ao,1)},$u=(t,e,r)=>{const{vnode:n,slots:o}=t;let i=!0,s=pt;if(n.shapeFlag&32){const l=e._;l?r&&l===1?i=!1:(bt(o,e),!r&&l===1&&delete o._):(i=!e.$stable,Ka(e,o)),s=e}else e&&(Ya(t,e),s={default:1});if(i)for(const l in o)!Va(l)&&!(l in s)&&delete o[l]};function qo(t,e,r,n,o=!1){if(tt(t)){t.forEach((v,C)=>qo(v,e&&(tt(e)?e[C]:e),r,n,o));return}if(In(n)&&!o)return;const i=n.shapeFlag&4?lo(n.component)||n.component.proxy:n.el,s=o?null:i,{i:l,r:a}=t,u=e&&e.r,d=l.refs===pt?l.refs={}:l.refs,f=l.setupState;if(u!=null&&u!==a&&(Pt(u)?(d[u]=null,st(f,u)&&(f[u]=null)):xt(u)&&(u.value=null)),rt(a))Te(a,l,12,[s,d]);else{const v=Pt(a),C=xt(a);if(v||C){const N=()=>{if(t.f){const H=v?st(f,a)?f[a]:d[a]:a.value;o?tt(H)&&ii(H,i):tt(H)?H.includes(i)||H.push(i):v?(d[a]=[i],st(f,a)&&(f[a]=d[a])):(a.value=[i],t.k&&(d[t.k]=a.value))}else v?(d[a]=s,st(f,a)&&(f[a]=s)):C&&(a.value=s,t.k&&(d[t.k]=s))};s?(N.id=-1,Nt(N,r)):N()}}}const Nt=du;function Ju(t){return qu(t)}function qu(t,e){const r=Lo();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:s,createText:l,createComment:a,setText:u,setElementText:d,parentNode:f,nextSibling:v,setScopeId:C=te,insertStaticContent:N}=t,H=(c,h,y,m=null,b=null,L=null,O=!1,D=null,B=!!h.dynamicChildren)=>{if(c===h)return;c&&!Cr(c,h)&&(m=er(c),yt(c,b,L,!0),c=null),h.patchFlag===-2&&(B=!1,h.dynamicChildren=null);const{type:F,ref:K,shapeFlag:W}=h;switch(F){case so:et(c,h,y,m);break;case Ve:Q(c,h,y,m);break;case Po:c==null&&J(h,y,m,O);break;case le:p(c,h,y,m,b,L,O,D,B);break;default:W&1?k(c,h,y,m,b,L,O,D,B):W&6?I(c,h,y,m,b,L,O,D,B):(W&64||W&128)&&F.process(c,h,y,m,b,L,O,D,B,M)}K!=null&&b&&qo(K,c&&c.ref,L,h||c,!h)},et=(c,h,y,m)=>{if(c==null)n(h.el=l(h.children),y,m);else{const b=h.el=c.el;h.children!==c.children&&u(b,h.children)}},Q=(c,h,y,m)=>{c==null?n(h.el=a(h.children||""),y,m):h.el=c.el},J=(c,h,y,m)=>{[c.el,c.anchor]=N(c.children,h,y,m,c.el,c.anchor)},Y=({el:c,anchor:h},y,m)=>{let b;for(;c&&c!==h;)b=v(c),n(c,y,m),c=b;n(h,y,m)},U=({el:c,anchor:h})=>{let y;for(;c&&c!==h;)y=v(c),o(c),c=y;o(h)},k=(c,h,y,m,b,L,O,D,B)=>{O=O||h.type==="svg",c==null?j(h,y,m,b,L,O,D,B):w(c,h,b,L,O,D,B)},j=(c,h,y,m,b,L,O,D)=>{let B,F;const{type:K,props:W,shapeFlag:V,transition:G,dirs:ot}=c;if(B=c.el=s(c.type,L,W&&W.is,W),V&8?d(B,c.children):V&16&&A(c.children,B,null,m,b,L&&K!=="foreignObject",O,D),ot&&De(c,null,m,"created"),T(B,c,c.scopeId,O,m),W){for(const ut in W)ut!=="value"&&!xn(ut)&&i(B,ut,null,W[ut],L,c.children,m,b,Mt);"value"in W&&i(B,"value",null,W.value),(F=W.onVnodeBeforeMount)&&se(F,m,c)}ot&&De(c,null,m,"beforeMount");const ht=(!b||b&&!b.pendingBranch)&&G&&!G.persisted;ht&&G.beforeEnter(B),n(B,h,y),((F=W&&W.onVnodeMounted)||ht||ot)&&Nt(()=>{F&&se(F,m,c),ht&&G.enter(B),ot&&De(c,null,m,"mounted")},b)},T=(c,h,y,m,b)=>{if(y&&C(c,y),m)for(let L=0;L{for(let F=B;F{const D=h.el=c.el;let{patchFlag:B,dynamicChildren:F,dirs:K}=h;B|=c.patchFlag&16;const W=c.props||pt,V=h.props||pt;let G;y&&Fe(y,!1),(G=V.onVnodeBeforeUpdate)&&se(G,y,h,c),K&&De(h,c,y,"beforeUpdate"),y&&Fe(y,!0);const ot=b&&h.type!=="foreignObject";if(F?P(c.dynamicChildren,F,D,y,m,ot,L):O||$(c,h,D,null,y,m,ot,L,!1),B>0){if(B&16)g(D,h,W,V,y,m,b);else if(B&2&&W.class!==V.class&&i(D,"class",null,V.class,b),B&4&&i(D,"style",W.style,V.style,b),B&8){const ht=h.dynamicProps;for(let ut=0;ut{G&&se(G,y,h,c),K&&De(h,c,y,"updated")},m)},P=(c,h,y,m,b,L,O)=>{for(let D=0;D{if(y!==m){if(y!==pt)for(const D in y)!xn(D)&&!(D in m)&&i(c,D,y[D],null,O,h.children,b,L,Mt);for(const D in m){if(xn(D))continue;const B=m[D],F=y[D];B!==F&&D!=="value"&&i(c,D,F,B,O,h.children,b,L,Mt)}"value"in m&&i(c,"value",y.value,m.value)}},p=(c,h,y,m,b,L,O,D,B)=>{const F=h.el=c?c.el:l(""),K=h.anchor=c?c.anchor:l("");let{patchFlag:W,dynamicChildren:V,slotScopeIds:G}=h;G&&(D=D?D.concat(G):G),c==null?(n(F,y,m),n(K,y,m),A(h.children,y,K,b,L,O,D,B)):W>0&&W&64&&V&&c.dynamicChildren?(P(c.dynamicChildren,V,y,b,L,O,D),(h.key!=null||b&&h===b.subTree)&&Ga(c,h,!0)):$(c,h,y,K,b,L,O,D,B)},I=(c,h,y,m,b,L,O,D,B)=>{h.slotScopeIds=D,c==null?h.shapeFlag&512?b.ctx.activate(h,y,m,O,B):E(h,y,m,b,L,O,B):R(c,h,B)},E=(c,h,y,m,b,L,O)=>{const D=c.component=rf(c,m,b);if(Ua(c)&&(D.ctx.renderer=M),nf(D),D.asyncDep){if(b&&b.registerDep(D,q),!c.el){const B=D.subTree=ye(Ve);Q(null,B,h,y)}return}q(D,c,h,y,b,L,O)},R=(c,h,y)=>{const m=h.component=c.component;if(uu(c,h,y))if(m.asyncDep&&!m.asyncResolved){z(m,h,y);return}else m.next=h,eu(m.update),m.update();else h.el=c.el,m.vnode=h},q=(c,h,y,m,b,L,O)=>{const D=()=>{if(c.isMounted){let{next:K,bu:W,u:V,parent:G,vnode:ot}=c,ht=K,ut;Fe(c,!1),K?(K.el=ot.el,z(c,K,O)):K=ot,W&&En(W),(ut=K.props&&K.props.onVnodeBeforeUpdate)&&se(ut,G,K,ot),Fe(c,!0);const mt=wo(c),Wt=c.subTree;c.subTree=mt,H(Wt,mt,f(Wt.el),er(Wt),c,b,L),K.el=mt.el,ht===null&&fu(c,mt.el),V&&Nt(V,b),(ut=K.props&&K.props.onVnodeUpdated)&&Nt(()=>se(ut,G,K,ot),b)}else{let K;const{el:W,props:V}=h,{bm:G,m:ot,parent:ht}=c,ut=In(h);if(Fe(c,!1),G&&En(G),!ut&&(K=V&&V.onVnodeBeforeMount)&&se(K,ht,h),Fe(c,!0),W&&x){const mt=()=>{c.subTree=wo(c),x(W,c.subTree,c,b,null)};ut?h.type.__asyncLoader().then(()=>!c.isUnmounted&&mt()):mt()}else{const mt=c.subTree=wo(c);H(null,mt,y,m,c,b,L),h.el=mt.el}if(ot&&Nt(ot,b),!ut&&(K=V&&V.onVnodeMounted)){const mt=h;Nt(()=>se(K,ht,mt),b)}(h.shapeFlag&256||ht&&In(ht.vnode)&&ht.vnode.shapeFlag&256)&&c.a&&Nt(c.a,b),c.isMounted=!0,h=y=m=null}},B=c.effect=new fi(D,()=>wi(F),c.scope),F=c.update=()=>B.run();F.id=c.uid,Fe(c,!0),F()},z=(c,h,y)=>{h.component=c;const m=c.vnode.props;c.vnode=h,c.next=null,zu(c,h.props,m,y),$u(c,h.children,y),xr(),ns(),Er()},$=(c,h,y,m,b,L,O,D,B=!1)=>{const F=c&&c.children,K=c?c.shapeFlag:0,W=h.children,{patchFlag:V,shapeFlag:G}=h;if(V>0){if(V&128){gt(F,W,y,m,b,L,O,D,B);return}else if(V&256){it(F,W,y,m,b,L,O,D,B);return}}G&8?(K&16&&Mt(F,b,L),W!==F&&d(y,W)):K&16?G&16?gt(F,W,y,m,b,L,O,D,B):Mt(F,b,L,!0):(K&8&&d(y,""),G&16&&A(W,y,m,b,L,O,D,B))},it=(c,h,y,m,b,L,O,D,B)=>{c=c||fr,h=h||fr;const F=c.length,K=h.length,W=Math.min(F,K);let V;for(V=0;VK?Mt(c,b,L,!0,!1,W):A(h,y,m,b,L,O,D,B,W)},gt=(c,h,y,m,b,L,O,D,B)=>{let F=0;const K=h.length;let W=c.length-1,V=K-1;for(;F<=W&&F<=V;){const G=c[F],ot=h[F]=B?Me(h[F]):ce(h[F]);if(Cr(G,ot))H(G,ot,y,null,b,L,O,D,B);else break;F++}for(;F<=W&&F<=V;){const G=c[W],ot=h[V]=B?Me(h[V]):ce(h[V]);if(Cr(G,ot))H(G,ot,y,null,b,L,O,D,B);else break;W--,V--}if(F>W){if(F<=V){const G=V+1,ot=GV)for(;F<=W;)yt(c[F],b,L,!0),F++;else{const G=F,ot=F,ht=new Map;for(F=ot;F<=V;F++){const Ft=h[F]=B?Me(h[F]):ce(h[F]);Ft.key!=null&&ht.set(Ft.key,F)}let ut,mt=0;const Wt=V-ot+1;let rr=!1,Wi=0;const Ir=new Array(Wt);for(F=0;F=Wt){yt(Ft,b,L,!0);continue}let ie;if(Ft.key!=null)ie=ht.get(Ft.key);else for(ut=ot;ut<=V;ut++)if(Ir[ut-ot]===0&&Cr(Ft,h[ut])){ie=ut;break}ie===void 0?yt(Ft,b,L,!0):(Ir[ie-ot]=F+1,ie>=Wi?Wi=ie:rr=!0,H(Ft,h[ie],y,null,b,L,O,D,B),mt++)}const Hi=rr?Xu(Ir):fr;for(ut=Hi.length-1,F=Wt-1;F>=0;F--){const Ft=ot+F,ie=h[Ft],Vi=Ft+1{const{el:L,type:O,transition:D,children:B,shapeFlag:F}=c;if(F&6){vt(c.component.subTree,h,y,m);return}if(F&128){c.suspense.move(h,y,m);return}if(F&64){O.move(c,h,y,M);return}if(O===le){n(L,h,y);for(let W=0;WD.enter(L),b);else{const{leave:W,delayLeave:V,afterLeave:G}=D,ot=()=>n(L,h,y),ht=()=>{W(L,()=>{ot(),G&&G()})};V?V(L,ot,ht):ht()}else n(L,h,y)},yt=(c,h,y,m=!1,b=!1)=>{const{type:L,props:O,ref:D,children:B,dynamicChildren:F,shapeFlag:K,patchFlag:W,dirs:V}=c;if(D!=null&&qo(D,null,y,c,!0),K&256){h.ctx.deactivate(c);return}const G=K&1&&V,ot=!In(c);let ht;if(ot&&(ht=O&&O.onVnodeBeforeUnmount)&&se(ht,h,c),K&6)vo(c.component,y,m);else{if(K&128){c.suspense.unmount(y,m);return}G&&De(c,null,h,"beforeUnmount"),K&64?c.type.remove(c,h,y,b,M,m):F&&(L!==le||W>0&&W&64)?Mt(F,h,y,!1,!0):(L===le&&W&384||!b&&K&16)&&Mt(B,h,y),m&&zt(c)}(ot&&(ht=O&&O.onVnodeUnmounted)||G)&&Nt(()=>{ht&&se(ht,h,c),G&&De(c,null,h,"unmounted")},y)},zt=c=>{const{type:h,el:y,anchor:m,transition:b}=c;if(h===le){be(y,m);return}if(h===Po){U(c);return}const L=()=>{o(y),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(c.shapeFlag&1&&b&&!b.persisted){const{leave:O,delayLeave:D}=b,B=()=>O(y,L);D?D(c.el,L,B):B()}else L()},be=(c,h)=>{let y;for(;c!==h;)y=v(c),o(c),c=y;o(h)},vo=(c,h,y)=>{const{bum:m,scope:b,update:L,subTree:O,um:D}=c;m&&En(m),b.stop(),L&&(L.active=!1,yt(O,c,h,y)),D&&Nt(D,h),Nt(()=>{c.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Mt=(c,h,y,m=!1,b=!1,L=0)=>{for(let O=L;Oc.shapeFlag&6?er(c.component.subTree):c.shapeFlag&128?c.suspense.next():v(c.anchor||c.el),S=(c,h,y)=>{c==null?h._vnode&&yt(h._vnode,null,null,!0):H(h._vnode||null,c,h,null,null,null,y),ns(),Fa(),h._vnode=c},M={p:H,um:yt,m:vt,r:zt,mt:E,mc:A,pc:$,pbc:P,n:er,o:t};let _,x;return e&&([_,x]=e(M)),{render:S,hydrate:_,createApp:Du(S,_)}}function Fe({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Ga(t,e,r=!1){const n=t.children,o=e.children;if(tt(n)&&tt(o))for(let i=0;i>1,t[r[l]]0&&(e[n]=r[i-1]),r[i]=n)}}for(i=r.length,s=r[i-1];i-- >0;)r[i]=s,s=e[s];return r}const Wu=t=>t.__isTeleport,le=Symbol.for("v-fgt"),so=Symbol.for("v-txt"),Ve=Symbol.for("v-cmt"),Po=Symbol.for("v-stc"),Zr=[];let Zt=null;function kn(t=!1){Zr.push(Zt=t?null:[])}function Hu(){Zr.pop(),Zt=Zr[Zr.length-1]||null}let nn=1;function ds(t){nn+=t}function Za(t){return t.dynamicChildren=nn>0?Zt||fr:null,Hu(),nn>0&&Zt&&Zt.push(t),t}function ps(t,e,r,n,o,i){return Za(ae(t,e,r,n,o,i,!0))}function Qa(t,e,r,n,o){return Za(ye(t,e,r,n,o,!0))}function Vu(t){return t?t.__v_isVNode===!0:!1}function Cr(t,e){return t.type===e.type&&t.key===e.key}const ao="__vInternal",tl=({key:t})=>t??null,Nn=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Pt(t)||xt(t)||rt(t)?{i:Gt,r:t,k:e,f:!!r}:t:null);function ae(t,e=null,r=null,n=0,o=null,i=t===le?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&tl(e),ref:e&&Nn(e),scopeId:oo,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Gt};return l?(Oi(a,r),i&128&&t.normalize(a)):r&&(a.shapeFlag|=Pt(r)?8:16),nn>0&&!s&&Zt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Zt.push(a),a}const ye=Ku;function Ku(t,e=null,r=null,n=0,o=null,i=!1){if((!t||t===xu)&&(t=Ve),Vu(t)){const l=Or(t,e,!0);return r&&Oi(l,r),nn>0&&!i&&Zt&&(l.shapeFlag&6?Zt[Zt.indexOf(t)]=l:Zt.push(l)),l.patchFlag|=-2,l}if(lf(t)&&(t=t.__vccOpts),e){e=Yu(e);let{class:l,style:a}=e;l&&!Pt(l)&&(e.class=ci(l)),wt(a)&&(Ea(a)&&!tt(a)&&(a=bt({},a)),e.style=li(a))}const s=Pt(t)?1:hu(t)?128:Wu(t)?64:wt(t)?4:rt(t)?2:0;return ae(t,e,r,n,o,s,i,!0)}function Yu(t){return t?Ea(t)||ao in t?bt({},t):t:null}function Or(t,e,r=!1){const{props:n,ref:o,patchFlag:i,children:s}=t,l=e?Qu(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&tl(l),ref:e&&e.ref?r&&o?tt(o)?o.concat(Nn(e)):[o,Nn(e)]:Nn(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==le?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Or(t.ssContent),ssFallback:t.ssFallback&&Or(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Gu(t=" ",e=0){return ye(so,null,t,e)}function Zu(t="",e=!1){return e?(kn(),Qa(Ve,null,t)):ye(Ve,null,t)}function ce(t){return t==null||typeof t=="boolean"?ye(Ve):tt(t)?ye(le,null,t.slice()):typeof t=="object"?Me(t):ye(so,null,String(t))}function Me(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Or(t)}function Oi(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(tt(e))r=16;else if(typeof e=="object")if(n&65){const o=e.default;o&&(o._c&&(o._d=!1),Oi(t,o()),o._c&&(o._d=!0));return}else{r=32;const o=e._;!o&&!(ao in e)?e._ctx=Gt:o===3&&Gt&&(Gt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else rt(e)?(e={default:e,_ctx:Gt},r=32):(e=String(e),n&64?(r=16,e=[Gu(e)]):r=8);t.children=e,t.shapeFlag|=r}function Qu(...t){const e={};for(let r=0;rAt=t),Mi=t=>{or.length>1?or.forEach(e=>e(t)):or[0](t)};const Mr=t=>{Mi(t),t.scope.on()},We=()=>{At&&At.scope.off(),Mi(null)};function el(t){return t.vnode.shapeFlag&4}let on=!1;function nf(t,e=!1){on=e;const{props:r,children:n}=t.vnode,o=el(t);Bu(t,r,o,e),Uu(t,n);const i=o?of(t,e):void 0;return on=!1,i}function of(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Ia(new Proxy(t.ctx,Eu));const{setup:n}=r;if(n){const o=t.setupContext=n.length>1?af(t):null;Mr(t),xr();const i=Te(n,t,0,[t.props,o]);if(Er(),We(),ga(i)){if(i.then(We,We),e)return i.then(s=>{ys(t,s,e)}).catch(s=>{ro(s,t,0)});t.asyncDep=i}else ys(t,i,e)}else rl(t,e)}function ys(t,e,r){rt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:wt(e)&&(t.setupState=La(e)),rl(t,r)}let vs;function rl(t,e,r){const n=t.type;if(!t.render){if(!e&&vs&&!n.render){const o=n.template||bi(t).template;if(o){const{isCustomElement:i,compilerOptions:s}=t.appContext.config,{delimiters:l,compilerOptions:a}=n,u=bt(bt({isCustomElement:i,delimiters:l},s),a);n.render=vs(o,u)}}t.render=n.render||te}Mr(t),xr(),Iu(t),Er(),We()}function sf(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return Lt(t,"get","$attrs"),e[r]}}))}function af(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return sf(t)},slots:t.slots,emit:t.emit,expose:e}}function lo(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(La(Ia(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in Gr)return Gr[r](t)},has(e,r){return r in e||r in Gr}}))}function lf(t){return rt(t)&&"__vccOpts"in t}const cf=(t,e)=>Gc(t,e,on),uf=Symbol.for("v-scx"),ff=()=>Cn(uf),hf="3.3.4",df="http://www.w3.org/2000/svg",Ue=typeof document<"u"?document:null,ms=Ue&&Ue.createElement("template"),pf={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const o=e?Ue.createElementNS(df,t):Ue.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:t=>Ue.createTextNode(t),createComment:t=>Ue.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ue.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,o,i){const s=r?r.previousSibling:e.lastChild;if(o&&(o===i||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{ms.innerHTML=n?`${t}`:t;const l=ms.content;if(n){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}e.insertBefore(l,r)}return[s?s.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function gf(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function yf(t,e,r){const n=t.style,o=Pt(r);if(r&&!o){if(e&&!Pt(e))for(const i in e)r[i]==null&&Xo(n,i,"");for(const i in r)Xo(n,i,r[i])}else{const i=n.display;o?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=i)}}const ws=/\s*!important$/;function Xo(t,e,r){if(tt(r))r.forEach(n=>Xo(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=vf(t,e);ws.test(r)?t.setProperty(Tr(n),r.replace(ws,""),"important"):t[n]=r}}const _s=["Webkit","Moz","ms"],Oo={};function vf(t,e){const r=Oo[e];if(r)return r;let n=br(e);if(n!=="filter"&&n in t)return Oo[e]=n;n=ya(n);for(let o=0;o<_s.length;o++){const i=_s[o]+n;if(i in t)return Oo[e]=i}return e}const bs="http://www.w3.org/1999/xlink";function mf(t,e,r,n,o){if(n&&e.startsWith("xlink:"))r==null?t.removeAttributeNS(bs,e.slice(6,e.length)):t.setAttributeNS(bs,e,r);else{const i=yc(e);r==null||i&&!va(r)?t.removeAttribute(e):t.setAttribute(e,i?"":r)}}function wf(t,e,r,n,o,i,s){if(e==="innerHTML"||e==="textContent"){n&&s(n,o,i),t[e]=r??"";return}const l=t.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){t._value=r;const u=l==="OPTION"?t.getAttribute("value"):t.value,d=r??"";u!==d&&(t.value=d),r==null&&t.removeAttribute(e);return}let a=!1;if(r===""||r==null){const u=typeof t[e];u==="boolean"?r=va(r):r==null&&u==="string"?(r="",a=!0):u==="number"&&(r=0,a=!0)}try{t[e]=r}catch{}a&&t.removeAttribute(e)}function cr(t,e,r,n){t.addEventListener(e,r,n)}function _f(t,e,r,n){t.removeEventListener(e,r,n)}function bf(t,e,r,n,o=null){const i=t._vei||(t._vei={}),s=i[e];if(n&&s)s.value=n;else{const[l,a]=Pf(e);if(n){const u=i[e]=Sf(n,o);cr(t,l,u,a)}else s&&(_f(t,l,s,a),i[e]=void 0)}}const Ps=/(?:Once|Passive|Capture)$/;function Pf(t){let e;if(Ps.test(t)){e={};let n;for(;n=t.match(Ps);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Tr(t.slice(2)),e]}let Mo=0;const Of=Promise.resolve(),Mf=()=>Mo||(Of.then(()=>Mo=0),Mo=Date.now());function Sf(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;ee(Af(n,r.value),e,5,[n])};return r.value=t,r.attached=Mf(),r}function Af(t,e){if(tt(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>o=>!o._stopped&&n&&n(o))}else return e}const Os=/^on[a-z]/,Tf=(t,e,r,n,o=!1,i,s,l,a)=>{e==="class"?gf(t,n,o):e==="style"?yf(t,r,n):Zn(e)?oi(e)||bf(t,e,r,n,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):xf(t,e,n,o))?wf(t,e,n,i,s,l,a):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),mf(t,e,n,o))};function xf(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&Os.test(e)&&rt(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Os.test(e)&&Pt(r)?!1:e in t}const Ms=t=>{const e=t.props["onUpdate:modelValue"]||!1;return tt(e)?r=>En(e,r):e};function Ef(t){t.target.composing=!0}function Ss(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ir={created(t,{modifiers:{lazy:e,trim:r,number:n}},o){t._assign=Ms(o);const i=n||o.props&&o.props.type==="number";cr(t,e?"change":"input",s=>{if(s.target.composing)return;let l=t.value;r&&(l=l.trim()),i&&(l=No(l)),t._assign(l)}),r&&cr(t,"change",()=>{t.value=t.value.trim()}),e||(cr(t,"compositionstart",Ef),cr(t,"compositionend",Ss),cr(t,"change",Ss))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:o}},i){if(t._assign=Ms(i),t.composing||document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===e||(o||t.type==="number")&&No(t.value)===e))return;const s=e??"";t.value!==s&&(t.value=s)}},If=bt({patchProp:Tf},pf);let As;function Cf(){return As||(As=Ju(If))}const kf=(...t)=>{const e=Cf().createApp(...t),{mount:r}=e;return e.mount=n=>{const o=Nf(n);if(!o)return;const i=e._component;!rt(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},e};function Nf(t){return Pt(t)?document.querySelector(t):t}var Lf=Object.defineProperty,Rf=(t,e,r)=>e in t?Lf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ct=(t,e,r)=>(Rf(t,typeof e!="symbol"?e+"":e,r),r);function Df(t,e){const r=Object.create(null),n=t.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const Ff={},Bf=[],xe=()=>{},zf=/^on[^a-z]/,jf=t=>zf.test(t),me=Object.assign,nl=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Uf=Object.prototype.hasOwnProperty,co=(t,e)=>Uf.call(t,e),ct=Array.isArray,pr=t=>uo(t)==="[object Map]",ol=t=>uo(t)==="[object Set]",ft=t=>typeof t=="function",re=t=>typeof t=="string",Si=t=>typeof t=="symbol",Ot=t=>t!==null&&typeof t=="object",il=t=>Ot(t)&&ft(t.then)&&ft(t.catch),sl=Object.prototype.toString,uo=t=>sl.call(t),$f=t=>uo(t).slice(8,-1),al=t=>uo(t)==="[object Object]",Ai=t=>re(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,qn=(t,e)=>!Object.is(t,e),Jf=t=>{const e=re(t)?Number(t):NaN;return isNaN(e)?t:e};let Ts;const xs=()=>Ts||(Ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ti(t){if(ct(t)){const e={};for(let r=0;r{if(r){const n=r.split(Xf);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function gr(t){let e="";if(re(t))e=t;else if(ct(t))for(let r=0;rre(t)?t:t==null?"":ct(t)||Ot(t)&&(t.toString===sl||!ft(t.toString))?JSON.stringify(t,ll,2):String(t),ll=(t,e)=>e&&e.__v_isRef?ll(t,e.value):pr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,o])=>(r[`${n} =>`]=o,r),{})}:ol(e)?{[`Set(${e.size})`]:[...e.values()]}:Ot(e)&&!ct(e)&&!al(e)?String(e):e;let cl;function Kf(t,e=cl){e&&e.active&&e.effects.push(t)}function Yf(){return cl}const xi=t=>{const e=new Set(t);return e.w=0,e.n=0,e},ul=t=>(t.w&ke)>0,fl=t=>(t.n&ke)>0,Gf=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{(d==="length"||d>=a)&&l.push(u)})}else switch(r!==void 0&&l.push(s.get(r)),e){case"add":ct(t)?Ai(r)&&l.push(s.get("length")):(l.push(s.get(He)),pr(t)&&l.push(s.get(Vo)));break;case"delete":ct(t)||(l.push(s.get(He)),pr(t)&&l.push(s.get(Vo)));break;case"set":pr(t)&&l.push(s.get(He));break}if(l.length===1)l[0]&&Ko(l[0]);else{const a=[];for(const u of l)u&&a.push(...u);Ko(xi(a))}}function Ko(t,e){const r=ct(t)?t:[...t];for(const n of r)n.computed&&Is(n);for(const n of r)n.computed||Is(n)}function Is(t,e){(t!==Kt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Qf=Df("__proto__,__v_isRef,__isVue"),gl=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Si)),th=yl(),eh=yl(!0),Cs=rh();function rh(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=dt(this);for(let i=0,s=this.length;i{t[e]=function(...r){Ei();const n=dt(this)[e].apply(this,r);return Ii(),n}}),t}function nh(t){const e=dt(this);return Jt(e,"has",t),e.hasOwnProperty(t)}function yl(t=!1,e=!1){return function(r,n,o){if(n==="__v_isReactive")return!t;if(n==="__v_isReadonly")return t;if(n==="__v_isShallow")return e;if(n==="__v_raw"&&o===(t?e?wh:wl:e?mh:ml).get(r))return r;const i=ct(r);if(!t){if(i&&co(Cs,n))return Reflect.get(Cs,n,o);if(n==="hasOwnProperty")return nh}const s=Reflect.get(r,n,o);return(Si(n)?gl.has(n):Qf(n))||(t||Jt(r,"get",n),e)?s:Bt(s)?i&&Ai(n)?s:s.value:Ot(s)?t?_l(s):ki(s):s}}const oh=ih();function ih(t=!1){return function(e,r,n,o){let i=e[r];if(sn(i)&&Bt(i)&&!Bt(n))return!1;if(!t&&(!Yo(n)&&!sn(n)&&(i=dt(i),n=dt(n)),!ct(e)&&Bt(i)&&!Bt(n)))return i.value=n,!0;const s=ct(e)&&Ai(r)?Number(r)t,fo=t=>Reflect.getPrototypeOf(t);function mn(t,e,r=!1,n=!1){t=t.__v_raw;const o=dt(t),i=dt(e);r||(e!==i&&Jt(o,"get",e),Jt(o,"get",i));const{has:s}=fo(o),l=n?Ci:r?Li:Ni;if(s.call(o,e))return l(t.get(e));if(s.call(o,i))return l(t.get(i));t!==o&&t.get(e)}function wn(t,e=!1){const r=this.__v_raw,n=dt(r),o=dt(t);return e||(t!==o&&Jt(n,"has",t),Jt(n,"has",o)),t===o?r.has(t):r.has(t)||r.has(o)}function _n(t,e=!1){return t=t.__v_raw,!e&&Jt(dt(t),"iterate",He),Reflect.get(t,"size",t)}function ks(t){t=dt(t);const e=dt(this);return fo(e).has.call(e,t)||(e.add(t),Ne(e,"add",t,t)),this}function Ns(t,e){e=dt(e);const r=dt(this),{has:n,get:o}=fo(r);let i=n.call(r,t);i||(t=dt(t),i=n.call(r,t));const s=o.call(r,t);return r.set(t,e),i?qn(e,s)&&Ne(r,"set",t,e):Ne(r,"add",t,e),this}function Ls(t){const e=dt(this),{has:r,get:n}=fo(e);let o=r.call(e,t);o||(t=dt(t),o=r.call(e,t)),n&&n.call(e,t);const i=e.delete(t);return o&&Ne(e,"delete",t,void 0),i}function Rs(){const t=dt(this),e=t.size!==0,r=t.clear();return e&&Ne(t,"clear",void 0,void 0),r}function bn(t,e){return function(r,n){const o=this,i=o.__v_raw,s=dt(i),l=e?Ci:t?Li:Ni;return!t&&Jt(s,"iterate",He),i.forEach((a,u)=>r.call(n,l(a),l(u),o))}}function Pn(t,e,r){return function(...n){const o=this.__v_raw,i=dt(o),s=pr(i),l=t==="entries"||t===Symbol.iterator&&s,a=t==="keys"&&s,u=o[t](...n),d=r?Ci:e?Li:Ni;return!e&&Jt(i,"iterate",a?Vo:He),{next(){const{value:f,done:v}=u.next();return v?{value:f,done:v}:{value:l?[d(f[0]),d(f[1])]:d(f),done:v}},[Symbol.iterator](){return this}}}}function Oe(t){return function(...e){return t==="delete"?!1:this}}function fh(){const t={get(o){return mn(this,o)},get size(){return _n(this)},has:wn,add:ks,set:Ns,delete:Ls,clear:Rs,forEach:bn(!1,!1)},e={get(o){return mn(this,o,!1,!0)},get size(){return _n(this)},has:wn,add:ks,set:Ns,delete:Ls,clear:Rs,forEach:bn(!1,!0)},r={get(o){return mn(this,o,!0)},get size(){return _n(this,!0)},has(o){return wn.call(this,o,!0)},add:Oe("add"),set:Oe("set"),delete:Oe("delete"),clear:Oe("clear"),forEach:bn(!0,!1)},n={get(o){return mn(this,o,!0,!0)},get size(){return _n(this,!0)},has(o){return wn.call(this,o,!0)},add:Oe("add"),set:Oe("set"),delete:Oe("delete"),clear:Oe("clear"),forEach:bn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Pn(o,!1,!1),r[o]=Pn(o,!0,!1),e[o]=Pn(o,!1,!0),n[o]=Pn(o,!0,!0)}),[t,r,e,n]}const[hh,dh,ph,gh]=fh();function vl(t,e){const r=e?t?gh:ph:t?dh:hh;return(n,o,i)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?n:Reflect.get(co(r,o)&&o in n?r:n,o,i)}const yh={get:vl(!1,!1)},vh={get:vl(!0,!1)},ml=new WeakMap,mh=new WeakMap,wl=new WeakMap,wh=new WeakMap;function _h(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bh(t){return t.__v_skip||!Object.isExtensible(t)?0:_h($f(t))}function ki(t){return sn(t)?t:bl(t,!1,ch,yh,ml)}function _l(t){return bl(t,!0,uh,vh,wl)}function bl(t,e,r,n,o){if(!Ot(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=o.get(t);if(i)return i;const s=bh(t);if(s===0)return t;const l=new Proxy(t,s===2?n:r);return o.set(t,l),l}function yr(t){return sn(t)?yr(t.__v_raw):!!(t&&t.__v_isReactive)}function sn(t){return!!(t&&t.__v_isReadonly)}function Yo(t){return!!(t&&t.__v_isShallow)}function Pl(t){return yr(t)||sn(t)}function dt(t){const e=t&&t.__v_raw;return e?dt(e):t}const Ni=t=>Ot(t)?ki(t):t,Li=t=>Ot(t)?_l(t):t;function Ph(t){Ee&&Kt&&(t=dt(t),pl(t.dep||(t.dep=xi())))}function Oh(t,e){t=dt(t);const r=t.dep;r&&Ko(r)}function Bt(t){return!!(t&&t.__v_isRef===!0)}function Ln(t){return Bt(t)?t.value:t}const Mh={get:(t,e,r)=>Ln(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const o=t[e];return Bt(o)&&!Bt(r)?(o.value=r,!0):Reflect.set(t,e,r,n)}};function Sh(t){return yr(t)?t:new Proxy(t,Mh)}class Ah{constructor(e,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new hl(e,()=>{this._dirty||(this._dirty=!0,Oh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=dt(this);return Ph(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Th(t,e,r=!1){let n,o;const i=ft(t);return i?(n=t,o=xe):(n=t.get,o=t.set),new Ah(n,o,i||!o,r)}function vr(t,e,r,n){let o;try{o=n?t(...n):t()}catch(i){Ri(i,e,r)}return o}function an(t,e,r,n){if(ft(t)){const i=vr(t,e,r,n);return i&&il(i)&&i.catch(s=>{Ri(s,e,r)}),i}const o=[];for(let i=0;i>>1;ln(Yt[n])ln(r)-ln(n)),$e=0;$et.id==null?1/0:t.id,Nh=(t,e)=>{const r=ln(t)-ln(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function Sl(t){Go=!1,Xn=!0,Yt.sort(Nh);const e=xe;try{for(Se=0;Se{n._d&&qs(-1);const i=Ds(e);let s;try{s=t(...o)}finally{Ds(i),n._d&&qs(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function Rh(t){let e;for(let r=0;rt.__isSuspense,Fh={name:"Suspense",__isSuspense:!0,process(t,e,r,n,o,i,s,l,a,u){t==null?zh(e,r,n,o,i,s,l,a,u):jh(t,e,r,n,o,s,l,a,u)},hydrate:Uh,create:Di,normalize:$h},Bh=Fh;function cn(t,e){const r=t.props&&t.props[e];ft(r)&&r()}function zh(t,e,r,n,o,i,s,l,a){const{p:u,o:{createElement:d}}=a,f=d("div"),v=t.suspense=Di(t,o,n,e,f,r,i,s,l,a);u(null,v.pendingBranch=t.ssContent,f,null,n,v,i,s),v.deps>0?(cn(t,"onPending"),cn(t,"onFallback"),u(null,t.ssFallback,e,r,n,null,i,s),wr(v,t.ssFallback)):v.resolve(!1,!0)}function jh(t,e,r,n,o,i,s,l,{p:a,um:u,o:{createElement:d}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const v=e.ssContent,C=e.ssFallback,{activeBranch:N,pendingBranch:H,isInFallback:et,isHydrating:Q}=f;if(H)f.pendingBranch=v,xo(v,H)?(a(H,v,f.hiddenContainer,null,o,f,i,s,l),f.deps<=0?f.resolve():et&&(a(N,C,r,n,o,null,i,s,l),wr(f,C))):(f.pendingId++,Q?(f.isHydrating=!1,f.activeBranch=H):u(H,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=d("div"),et?(a(null,v,f.hiddenContainer,null,o,f,i,s,l),f.deps<=0?f.resolve():(a(N,C,r,n,o,null,i,s,l),wr(f,C))):N&&xo(v,N)?(a(N,v,r,n,o,f,i,s,l),f.resolve(!0)):(a(null,v,f.hiddenContainer,null,o,f,i,s,l),f.deps<=0&&f.resolve()));else if(N&&xo(v,N))a(N,v,r,n,o,f,i,s,l),wr(f,v);else if(cn(e,"onPending"),f.pendingBranch=v,f.pendingId++,a(null,v,f.hiddenContainer,null,o,f,i,s,l),f.deps<=0)f.resolve();else{const{timeout:J,pendingId:Y}=f;J>0?setTimeout(()=>{f.pendingId===Y&&f.fallback(C)},J):J===0&&f.fallback(C)}}function Di(t,e,r,n,o,i,s,l,a,u,d=!1){const{p:f,m:v,um:C,n:N,o:{parentNode:H,remove:et}}=u;let Q;const J=qh(t);J&&e!=null&&e.pendingBranch&&(Q=e.pendingId,e.deps++);const Y=t.props?Jf(t.props.timeout):void 0,U={vnode:t,parent:e,parentComponent:r,isSVG:s,container:n,hiddenContainer:o,anchor:i,deps:0,pendingId:0,timeout:typeof Y=="number"?Y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(k=!1,j=!1){const{vnode:T,activeBranch:A,pendingBranch:w,pendingId:P,effects:g,parentComponent:p,container:I}=U;if(U.isHydrating)U.isHydrating=!1;else if(!k){const q=A&&w.transition&&w.transition.mode==="out-in";q&&(A.transition.afterLeave=()=>{P===U.pendingId&&v(w,I,z,0)});let{anchor:z}=U;A&&(z=N(A),C(A,p,U,!0)),q||v(w,I,z,0)}wr(U,w),U.pendingBranch=null,U.isInFallback=!1;let E=U.parent,R=!1;for(;E;){if(E.pendingBranch){E.effects.push(...g),R=!0;break}E=E.parent}R||Ml(g),U.effects=[],J&&e&&e.pendingBranch&&Q===e.pendingId&&(e.deps--,e.deps===0&&!j&&e.resolve()),cn(T,"onResolve")},fallback(k){if(!U.pendingBranch)return;const{vnode:j,activeBranch:T,parentComponent:A,container:w,isSVG:P}=U;cn(j,"onFallback");const g=N(T),p=()=>{U.isInFallback&&(f(null,k,w,g,A,null,P,l,a),wr(U,k))},I=k.transition&&k.transition.mode==="out-in";I&&(T.transition.afterLeave=p),U.isInFallback=!0,C(T,A,null,!0),I||p()},move(k,j,T){U.activeBranch&&v(U.activeBranch,k,j,T),U.container=k},next(){return U.activeBranch&&N(U.activeBranch)},registerDep(k,j){const T=!!U.pendingBranch;T&&U.deps++;const A=k.vnode.el;k.asyncDep.catch(w=>{Ri(w,k,0)}).then(w=>{if(k.isUnmounted||U.isUnmounted||U.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:P}=k;Od(k,w,!1),A&&(P.el=A);const g=!A&&k.subTree.el;j(k,P,H(A||k.subTree.el),A?null:N(k.subTree),U,s,a),g&&et(g),Tl(k,P.el),T&&--U.deps===0&&U.resolve()})},unmount(k,j){U.isUnmounted=!0,U.activeBranch&&C(U.activeBranch,r,k,j),U.pendingBranch&&C(U.pendingBranch,r,k,j)}};return U}function Uh(t,e,r,n,o,i,s,l,a){const u=e.suspense=Di(e,n,r,t.parentNode,document.createElement("div"),null,o,i,s,l,!0),d=a(t,u.pendingBranch=e.ssContent,r,u,i,s);return u.deps===0&&u.resolve(!1,!0),d}function $h(t){const{shapeFlag:e,children:r}=t,n=e&32;t.ssContent=Fs(n?r.default:r),t.ssFallback=n?Fs(r.fallback):Ie(Sr)}function Fs(t){let e;if(ft(t)){const r=Ar&&t._c;r&&(t._d=!1,_r()),t=t(),r&&(t._d=!0,e=jt,Ll())}return ct(t)&&(t=Rh(t)),t=md(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function Jh(t,e){e&&e.pendingBranch?ct(t)?e.effects.push(...t):e.effects.push(t):Ml(t)}function wr(t,e){t.activeBranch=e;const{vnode:r,parentComponent:n}=t,o=r.el=e.el;n&&n.subTree===r&&(n.vnode.el=o,Tl(n,o))}function qh(t){var e;return((e=t.props)==null?void 0:e.suspensible)!=null&&t.props.suspensible!==!1}const On={};function So(t,e,r){return Xh(t,e,r)}function Xh(t,e,{immediate:r,deep:n,flush:o,onTrack:i,onTrigger:s}=Ff){var l;const a=Yf()===((l=Tt)==null?void 0:l.scope)?Tt:null;let u,d=!1,f=!1;if(Bt(t)?(u=()=>t.value,d=Yo(t)):yr(t)?(u=()=>t,n=!0):ct(t)?(f=!0,d=t.some(J=>yr(J)||Yo(J)),u=()=>t.map(J=>{if(Bt(J))return J.value;if(yr(J))return ur(J);if(ft(J))return vr(J,a,2)})):ft(t)?e?u=()=>vr(t,a,2):u=()=>{if(!(a&&a.isUnmounted))return v&&v(),an(t,a,3,[C])}:u=xe,e&&n){const J=u;u=()=>ur(J())}let v,C=J=>{v=Q.onStop=()=>{vr(J,a,4)}},N=f?new Array(t.length).fill(On):On;const H=()=>{if(Q.active)if(e){const J=Q.run();(n||d||(f?J.some((Y,U)=>qn(Y,N[U])):qn(J,N)))&&(v&&v(),an(e,a,3,[J,N===On?void 0:f&&N[0]===On?[]:N,C]),N=J)}else Q.run()};H.allowRecurse=!!e;let et;o==="sync"?et=H:o==="post"?et=()=>Js(H,a&&a.suspense):(H.pre=!0,a&&(H.id=a.uid),et=()=>Ch(H));const Q=new hl(u,et);return e?r?H():N=Q.run():o==="post"?Js(Q.run.bind(Q),a&&a.suspense):Q.run(),()=>{Q.stop(),a&&a.scope&&nl(a.scope.effects,Q)}}function Wh(t,e){const r=e.split(".");return()=>{let n=t;for(let o=0;o{ur(r,e)});else if(al(t))for(const r in t)ur(t[r],e);return t}function xl(t,e){return ft(t)?(()=>me({name:t.name},e,{setup:t}))():t}const Hh=t=>t.type.__isKeepAlive;function Vh(t,e){El(t,"a",e)}function Kh(t,e){El(t,"da",e)}function El(t,e,r=Tt){const n=t.__wdc||(t.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(ho(e,n,r),r){let o=r.parent;for(;o&&o.parent;)Hh(o.parent.vnode)&&Yh(n,e,r,o),o=o.parent}}function Yh(t,e,r,n){const o=ho(e,t,n,!0);Il(()=>{nl(n[e],o)},r)}function ho(t,e,r=Tt,n=!1){if(r){const o=r[t]||(r[t]=[]),i=e.__weh||(e.__weh=(...s)=>{if(r.isUnmounted)return;Ei(),Kn(r);const l=an(e,r,t,s);return ji(),Ii(),l});return n?o.unshift(i):o.push(i),i}}const _e=t=>(e,r=Tt)=>ho(t,(...n)=>e(...n),r),Gh=_e("bm"),Zh=_e("m"),Qh=_e("bu"),td=_e("u"),ed=_e("bum"),Il=_e("um"),rd=_e("sp"),nd=_e("rtg"),od=_e("rtc");function id(t,e=Tt){ho("ec",t,e)}const sd=Symbol.for("v-ndc");function Bs(t){return ct(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function ad(t){const e=bd();let r=t();return ji(),il(r)&&(r=r.catch(n=>{throw Kn(e),n})),[r,()=>Kn(e)]}function ld(t){const e=kl(t),r=t.proxy,n=t.ctx;e.beforeCreate&&zs(e.beforeCreate,t,"bc");const{data:o,computed:i,methods:s,watch:l,provide:a,inject:u,created:d,beforeMount:f,mounted:v,beforeUpdate:C,updated:N,activated:H,deactivated:et,beforeDestroy:Q,beforeUnmount:J,destroyed:Y,unmounted:U,render:k,renderTracked:j,renderTriggered:T,errorCaptured:A,serverPrefetch:w,expose:P,inheritAttrs:g,components:p,directives:I,filters:E}=e;if(u&&cd(u,n,null),s)for(const z in s){const $=s[z];ft($)&&(n[z]=$.bind(r))}if(o){const z=o.call(r,r);Ot(z)&&(t.data=ki(z))}if(i)for(const z in i){const $=i[z],it=ft($)?$.bind(r,r):ft($.get)?$.get.bind(r,r):xe,gt=!ft($)&&ft($.set)?$.set.bind(r):xe,vt=Ad({get:it,set:gt});Object.defineProperty(n,z,{enumerable:!0,configurable:!0,get:()=>vt.value,set:yt=>vt.value=yt})}if(l)for(const z in l)Cl(l[z],n,r,z);if(a){const z=ft(a)?a.call(r):a;Reflect.ownKeys(z).forEach($=>{dd($,z[$])})}d&&zs(d,t,"c");function q(z,$){ct($)?$.forEach(it=>z(it.bind(r))):$&&z($.bind(r))}if(q(Gh,f),q(Zh,v),q(Qh,C),q(td,N),q(Vh,H),q(Kh,et),q(id,A),q(od,j),q(nd,T),q(ed,J),q(Il,U),q(rd,w),ct(P))if(P.length){const z=t.exposed||(t.exposed={});P.forEach($=>{Object.defineProperty(z,$,{get:()=>r[$],set:it=>r[$]=it})})}else t.exposed||(t.exposed={});k&&t.render===xe&&(t.render=k),g!=null&&(t.inheritAttrs=g),p&&(t.components=p),I&&(t.directives=I)}function cd(t,e,r=xe){ct(t)&&(t=Zo(t));for(const n in t){const o=t[n];let i;Ot(o)?"default"in o?i=Ao(o.from||n,o.default,!0):i=Ao(o.from||n):i=Ao(o),Bt(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):e[n]=i}}function zs(t,e,r){an(ct(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function Cl(t,e,r,n){const o=n.includes(".")?Wh(r,n):()=>r[n];if(re(t)){const i=e[t];ft(i)&&So(o,i)}else if(ft(t))So(o,t.bind(r));else if(Ot(t))if(ct(t))t.forEach(i=>Cl(i,e,r,n));else{const i=ft(t.handler)?t.handler.bind(r):e[t.handler];ft(i)&&So(o,i,t)}}function kl(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=t.appContext,l=i.get(e);let a;return l?a=l:!o.length&&!r&&!n?a=e:(a={},o.length&&o.forEach(u=>Wn(a,u,s,!0)),Wn(a,e,s)),Ot(e)&&i.set(e,a),a}function Wn(t,e,r,n=!1){const{mixins:o,extends:i}=e;i&&Wn(t,i,r,!0),o&&o.forEach(s=>Wn(t,s,r,!0));for(const s in e)if(!(n&&s==="expose")){const l=ud[s]||r&&r[s];t[s]=l?l(t[s],e[s]):e[s]}return t}const ud={data:js,props:Us,emits:Us,methods:Kr,computed:Kr,beforeCreate:It,created:It,beforeMount:It,mounted:It,beforeUpdate:It,updated:It,beforeDestroy:It,beforeUnmount:It,destroyed:It,unmounted:It,activated:It,deactivated:It,errorCaptured:It,serverPrefetch:It,components:Kr,directives:Kr,watch:hd,provide:js,inject:fd};function js(t,e){return e?t?function(){return me(ft(t)?t.call(this,this):t,ft(e)?e.call(this,this):e)}:e:t}function fd(t,e){return Kr(Zo(t),Zo(e))}function Zo(t){if(ct(t)){const e={};for(let r=0;r1)return r&&ft(e)?e.call(n&&n.proxy):e}}const Js=Jh,pd=t=>t.__isTeleport,Fi=Symbol.for("v-fgt"),Nl=Symbol.for("v-txt"),Sr=Symbol.for("v-cmt"),Rn=[];let jt=null;function _r(t=!1){Rn.push(jt=t?null:[])}function Ll(){Rn.pop(),jt=Rn[Rn.length-1]||null}let Ar=1;function qs(t){Ar+=t}function Rl(t){return t.dynamicChildren=Ar>0?jt||Bf:null,Ll(),Ar>0&&jt&&jt.push(t),t}function To(t,e,r,n,o,i){return Rl(Hn(t,e,r,n,o,i,!0))}function Dl(t,e,r,n,o){return Rl(Ie(t,e,r,n,o,!0))}function Fl(t){return t?t.__v_isVNode===!0:!1}function xo(t,e){return t.type===e.type&&t.key===e.key}const Bl="__vInternal",zl=({key:t})=>t??null,Dn=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?re(t)||Bt(t)||ft(t)?{i:Qt,r:t,k:e,f:!!r}:t:null);function Hn(t,e=null,r=null,n=0,o=null,i=t===Fi?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&zl(e),ref:e&&Dn(e),scopeId:Al,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Qt};return l?(Bi(a,r),i&128&&t.normalize(a)):r&&(a.shapeFlag|=re(r)?8:16),Ar>0&&!s&&jt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&jt.push(a),a}const Ie=gd;function gd(t,e=null,r=null,n=0,o=null,i=!1){if((!t||t===sd)&&(t=Sr),Fl(t)){const l=Vn(t,e,!0);return r&&Bi(l,r),Ar>0&&!i&&jt&&(l.shapeFlag&6?jt[jt.indexOf(t)]=l:jt.push(l)),l.patchFlag|=-2,l}if(Sd(t)&&(t=t.__vccOpts),e){e=yd(e);let{class:l,style:a}=e;l&&!re(l)&&(e.class=gr(l)),Ot(a)&&(Pl(a)&&!ct(a)&&(a=me({},a)),e.style=Ti(a))}const s=re(t)?1:Dh(t)?128:pd(t)?64:Ot(t)?4:ft(t)?2:0;return Hn(t,e,r,n,o,s,i,!0)}function yd(t){return t?Pl(t)||Bl in t?me({},t):t:null}function Vn(t,e,r=!1){const{props:n,ref:o,patchFlag:i,children:s}=t,l=e?_d(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&zl(l),ref:e&&e.ref?r&&o?ct(o)?o.concat(Dn(e)):[o,Dn(e)]:Dn(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Fi?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Vn(t.ssContent),ssFallback:t.ssFallback&&Vn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function vd(t=" ",e=0){return Ie(Nl,null,t,e)}function Xs(t="",e=!1){return e?(_r(),Dl(Sr,null,t)):Ie(Sr,null,t)}function md(t){return t==null||typeof t=="boolean"?Ie(Sr):ct(t)?Ie(Fi,null,t.slice()):typeof t=="object"?wd(t):Ie(Nl,null,String(t))}function wd(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Vn(t)}function Bi(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(ct(e))r=16;else if(typeof e=="object")if(n&65){const o=e.default;o&&(o._c&&(o._d=!1),Bi(t,o()),o._c&&(o._d=!0));return}else{r=32;const o=e._;!o&&!(Bl in e)?e._ctx=Qt:o===3&&Qt&&(Qt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ft(e)?(e={default:e,_ctx:Qt},r=32):(e=String(e),n&64?(r=16,e=[vd(e)]):r=8);t.children=e,t.shapeFlag|=r}function _d(...t){const e={};for(let r=0;rTt||Qt;let zi,sr,Ws="__VUE_INSTANCE_SETTERS__";(sr=xs()[Ws])||(sr=xs()[Ws]=[]),sr.push(t=>Tt=t),zi=t=>{sr.length>1?sr.forEach(e=>e(t)):sr[0](t)};const Kn=t=>{zi(t),t.scope.on()},ji=()=>{Tt&&Tt.scope.off(),zi(null)};let Pd=!1;function Od(t,e,r){ft(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ot(e)&&(t.setupState=Sh(e)),Md(t,r)}let Hs;function Md(t,e,r){const n=t.type;if(!t.render){if(!e&&Hs&&!n.render){const o=n.template||kl(t).template;if(o){const{isCustomElement:i,compilerOptions:s}=t.appContext.config,{delimiters:l,compilerOptions:a}=n,u=me(me({isCustomElement:i,delimiters:l},s),a);n.render=Hs(o,u)}}t.render=n.render||xe}Kn(t),Ei(),ld(t),Ii(),ji()}function Sd(t){return ft(t)&&"__vccOpts"in t}const Ad=(t,e)=>Th(t,e,Pd),Eo={numeric:"Numeric",alphanumeric:"Alphanumeric",byte:"Byte",kanji:"Kanji"};function Td(t){switch(!0){case/^[0-9]*$/.test(t):return Eo.numeric;case/^[0-9A-Z $%*+\-./:]*$/.test(t):return Eo.alphanumeric;default:return Eo.byte}}const Mn=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function Yn(t,...e){if(!e.length)return t;const r=e.shift();return r===void 0||!Mn(t)||!Mn(r)?t:(t={...t},Object.keys(r).forEach(n=>{const o=t[n],i=r[n];Array.isArray(o)&&Array.isArray(i)?t[n]=i:Mn(o)&&Mn(i)?t[n]=Yn(Object.assign({},o),i):t[n]=i}),Yn(t,...e))}function xd(t,e){const r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function Ed({originalHeight:t,originalWidth:e,maxHiddenDots:r,maxHiddenAxisDots:n,dotSize:o}){const i={x:0,y:0},s={x:0,y:0};if(t<=0||e<=0||r<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const l=t/e;return i.x=Math.floor(Math.sqrt(r/l)),i.x<=0&&(i.x=1),n&&nr||n&&n{n.moveTo(0,0),n.arc(0,0,r/2,0,Math.PI*2)}})}_basicSquare(e){const{size:r,context:n}=e;this._rotateFigure({...e,draw:()=>{n.moveTo(0,0),n.rect(-r/2,-r/2,r,r)}})}_basicSideRounded(e){const{size:r,context:n}=e;this._rotateFigure({...e,draw:()=>{n.moveTo(0,0),n.arc(0,0,r/2,-Math.PI/2,Math.PI/2),n.lineTo(-r/2,r/2),n.lineTo(-r/2,-r/2),n.lineTo(0,-r/2)}})}_basicCornerRounded(e){const{size:r,context:n}=e;this._rotateFigure({...e,draw:()=>{n.moveTo(0,0),n.arc(0,0,r/2,-Math.PI/2,0),n.lineTo(r/2,r/2),n.lineTo(-r/2,r/2),n.lineTo(-r/2,-r/2),n.lineTo(0,-r/2)}})}_basicCornerExtraRounded(e){const{size:r,context:n}=e;this._rotateFigure({...e,draw:()=>{n.moveTo(0,0),n.arc(-r/2,r/2,r,-Math.PI/2,0),n.lineTo(-r/2,r/2),n.lineTo(-r/2,-r/2)}})}_basicCornersRounded(e){const{size:r,context:n}=e;this._rotateFigure({...e,draw:()=>{n.moveTo(0,0),n.arc(0,0,r/2,-Math.PI/2,0),n.lineTo(r/2,r/2),n.lineTo(0,r/2),n.arc(0,0,r/2,Math.PI/2,Math.PI),n.lineTo(-r/2,-r/2),n.lineTo(0,-r/2)}})}_basicCornersExtraRounded(e){const{size:r,context:n}=e;this._rotateFigure({...e,draw:()=>{n.moveTo(0,0),n.arc(-r/2,r/2,r,-Math.PI/2,0),n.arc(r/2,-r/2,r,Math.PI/2,Math.PI)}})}_drawDot({x:e,y:r,size:n,context:o}){this._basicDot({x:e,y:r,size:n,context:o,rotation:0})}_drawSquare({x:e,y:r,size:n,context:o}){this._basicSquare({x:e,y:r,size:n,context:o,rotation:0})}_drawRounded({x:e,y:r,size:n,context:o,getNeighbor:i}){const s=+i(-1,0),l=+i(1,0),a=+i(0,-1),u=+i(0,1),d=s+l+a+u;if(d===0){this._basicDot({x:e,y:r,size:n,context:o,rotation:0});return}if(d>2||s&&l||a&&u){this._basicSquare({x:e,y:r,size:n,context:o,rotation:0});return}if(d===2){let f=0;s&&a?f=Math.PI/2:a&&l?f=Math.PI:l&&u&&(f=-Math.PI/2),this._basicCornerRounded({x:e,y:r,size:n,context:o,rotation:f});return}if(d===1){let f=0;a?f=Math.PI/2:l?f=Math.PI:u&&(f=-Math.PI/2),this._basicSideRounded({x:e,y:r,size:n,context:o,rotation:f})}}_drawExtraRounded({x:e,y:r,size:n,context:o,getNeighbor:i}){const s=+i(-1,0),l=+i(1,0),a=+i(0,-1),u=+i(0,1),d=s+l+a+u;if(d===0){this._basicDot({x:e,y:r,size:n,context:o,rotation:0});return}if(d>2||s&&l||a&&u){this._basicSquare({x:e,y:r,size:n,context:o,rotation:0});return}if(d===2){let f=0;s&&a?f=Math.PI/2:a&&l?f=Math.PI:l&&u&&(f=-Math.PI/2),this._basicCornerExtraRounded({x:e,y:r,size:n,context:o,rotation:f});return}if(d===1){let f=0;a?f=Math.PI/2:l?f=Math.PI:u&&(f=-Math.PI/2),this._basicSideRounded({x:e,y:r,size:n,context:o,rotation:f})}}_drawClassy({x:e,y:r,size:n,context:o,getNeighbor:i}){const s=+i(-1,0),l=+i(1,0),a=+i(0,-1),u=+i(0,1);if(s+l+a+u===0){this._basicCornersRounded({x:e,y:r,size:n,context:o,rotation:Math.PI/2});return}if(!s&&!a){this._basicCornerRounded({x:e,y:r,size:n,context:o,rotation:-Math.PI/2});return}if(!l&&!u){this._basicCornerRounded({x:e,y:r,size:n,context:o,rotation:Math.PI/2});return}this._basicSquare({x:e,y:r,size:n,context:o,rotation:0})}_drawClassyRounded({x:e,y:r,size:n,context:o,getNeighbor:i}){const s=+i(-1,0),l=+i(1,0),a=+i(0,-1),u=+i(0,1);if(s+l+a+u===0){this._basicCornersRounded({x:e,y:r,size:n,context:o,rotation:Math.PI/2});return}if(!s&&!a){this._basicCornerExtraRounded({x:e,y:r,size:n,context:o,rotation:-Math.PI/2});return}if(!l&&!u){this._basicCornerExtraRounded({x:e,y:r,size:n,context:o,rotation:Math.PI/2});return}this._basicSquare({x:e,y:r,size:n,context:o,rotation:0})}}const Co={dot:"dot",square:"square",extraRounded:"extra-rounded"};class Cd{constructor({context:e,type:r}){Ct(this,"_context"),Ct(this,"_type"),this._context=e,this._type=r}draw(e,r,n,o){const i=this._context,s=this._type;let l;switch(s){case Co.square:l=this._drawSquare;break;case Co.extraRounded:l=this._drawExtraRounded;break;case Co.dot:default:l=this._drawDot}l.call(this,{x:e,y:r,size:n,context:i,rotation:o})}_rotateFigure({x:e,y:r,size:n,context:o,rotation:i,draw:s}){const l=e+n/2,a=r+n/2;o.translate(l,a),i&&o.rotate(i),s(),o.closePath(),i&&o.rotate(-i),o.translate(-l,-a)}_basicDot(e){const{size:r,context:n}=e,o=r/7;this._rotateFigure({...e,draw:()=>{n.arc(0,0,r/2,0,Math.PI*2),n.arc(0,0,r/2-o,0,Math.PI*2)}})}_basicSquare(e){const{size:r,context:n}=e,o=r/7;this._rotateFigure({...e,draw:()=>{n.rect(-r/2,-r/2,r,r),n.rect(-r/2+o,-r/2+o,r-2*o,r-2*o)}})}_basicExtraRounded(e){const{size:r,context:n}=e,o=r/7;this._rotateFigure({...e,draw:()=>{n.arc(-o,-o,2.5*o,Math.PI,-Math.PI/2),n.lineTo(o,-3.5*o),n.arc(o,-o,2.5*o,-Math.PI/2,0),n.lineTo(3.5*o,-o),n.arc(o,o,2.5*o,0,Math.PI/2),n.lineTo(-o,3.5*o),n.arc(-o,o,2.5*o,Math.PI/2,Math.PI),n.lineTo(-3.5*o,-o),n.arc(-o,-o,1.5*o,Math.PI,-Math.PI/2),n.lineTo(o,-2.5*o),n.arc(o,-o,1.5*o,-Math.PI/2,0),n.lineTo(2.5*o,-o),n.arc(o,o,1.5*o,0,Math.PI/2),n.lineTo(-o,2.5*o),n.arc(-o,o,1.5*o,Math.PI/2,Math.PI),n.lineTo(-2.5*o,-o)}})}_drawDot({x:e,y:r,size:n,context:o,rotation:i}){this._basicDot({x:e,y:r,size:n,context:o,rotation:i})}_drawSquare({x:e,y:r,size:n,context:o,rotation:i}){this._basicSquare({x:e,y:r,size:n,context:o,rotation:i})}_drawExtraRounded({x:e,y:r,size:n,context:o,rotation:i}){this._basicExtraRounded({x:e,y:r,size:n,context:o,rotation:i})}}const Vs={dot:"dot",square:"square"};class kd{constructor({context:e,type:r}){Ct(this,"_context"),Ct(this,"_type"),this._context=e,this._type=r}draw(e,r,n,o){const i=this._context;switch(this._type){case Vs.square:this._drawSquare({x:e,y:r,size:n,context:i,rotation:o});break;case Vs.dot:default:this._drawDot({x:e,y:r,size:n,context:i,rotation:o})}}_rotateFigure({x:e,y:r,size:n,context:o,rotation:i,draw:s}){const l=e+n/2,a=r+n/2;o.moveTo(0,0),o.translate(l,a),i&&o.rotate(i),s(),o.closePath(),i&&o.rotate(-i),o.translate(-l,-a)}_drawDot(e){const{size:r,context:n}=e;this._rotateFigure({...e,draw:()=>{n.moveTo(0,0),n.arc(0,0,r/2,0,Math.PI*2)}})}_drawSquare(e){const{size:r,context:n}=e;this._rotateFigure({...e,draw:()=>{n.moveTo(0,0),n.rect(-r/2,-r/2,r,r)}})}}const Nd={radial:"radial",linear:"linear"},Be=[[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]],ze=[[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 Ld{constructor(e){Ct(this,"_canvas"),Ct(this,"_options"),Ct(this,"_qr"),Ct(this,"_image"),this._canvas=document.createElement("canvas"),this._canvas.width=e.width,this._canvas.height=e.height,this._options=e}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 e=this.context;e&&e.clearRect(0,0,this._canvas.width,this._canvas.height)}async drawQR(e){const r=e.getModuleCount(),n=Math.min(this._options.width,this._options.height)-this._options.margin*2,o=Math.floor(n/r);let i={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=e,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:s,qrOptions:l}=this._options,a=s.imageSize*Id[l.errorCorrectionLevel],u=Math.floor(a*r*r);i=Ed({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:u,maxHiddenAxisDots:r-14,dotSize:o})}this.clear(),this.drawBackground(),this.drawDots((s,l)=>{var a,u,d,f,v,C;return!(this._options.imageOptions.hideBackgroundDots&&s>=(r-i.hideXDots)/2&&s<(r+i.hideXDots)/2&&l>=(r-i.hideYDots)/2&&l<(r+i.hideYDots)/2||(a=Be[s])!=null&&a[l]||(u=Be[s-r+7])!=null&&u[l]||(d=Be[s])!=null&&d[l-r+7]||(f=ze[s])!=null&&f[l]||(v=ze[s-r+7])!=null&&v[l]||(C=ze[s])!=null&&C[l-r+7])}),this.drawCorners(),this._options.image&&this.drawImage({width:i.width,height:i.height,count:r,dotSize:o})}drawBackground(){const e=this.context,r=this._options;if(e){if(r.backgroundOptions.gradient){const n=r.backgroundOptions.gradient,o=this._createGradient({context:e,options:n,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});n.colorStops.forEach(({offset:i,color:s})=>{o.addColorStop(i,s)}),e.fillStyle=o}else r.backgroundOptions.color&&(e.fillStyle=r.backgroundOptions.color);e.fillRect(0,0,this._canvas.width,this._canvas.height)}}drawDots(e){if(!this._qr)throw"QR code is not defined";const r=this.context;if(!r)throw"QR code is not defined";const n=this._options,o=this._qr.getModuleCount();if(o>n.width||o>n.height)throw"The canvas is too small.";const i=Math.min(n.width,n.height)-n.margin*2,s=Math.floor(i/o),l=Math.floor((n.width-o*s)/2),a=Math.floor((n.height-o*s)/2),u=new Io({context:r,type:n.dotsOptions.type});r.beginPath();for(let d=0;dd+v<0||f+C<0||d+v>=o||f+C>=o||e&&!e(d+v,f+C)?!1:!!this._qr&&this._qr.isDark(d+v,f+C));if(n.dotsOptions.gradient){const d=n.dotsOptions.gradient,f=this._createGradient({context:r,options:d,additionalRotation:0,x:l,y:a,size:o*s});d.colorStops.forEach(({offset:v,color:C})=>{f.addColorStop(v,C)}),r.fillStyle=r.strokeStyle=f}else n.dotsOptions.color&&(r.fillStyle=r.strokeStyle=n.dotsOptions.color);r.fill("evenodd")}drawCorners(e){if(!this._qr)throw"QR code is not defined";const r=this.context;if(!r)throw"QR code is not defined";const n=this._options,o=this._qr.getModuleCount(),i=Math.min(n.width,n.height)-n.margin*2,s=Math.floor(i/o),l=s*7,a=s*3,u=Math.floor((n.width-o*s)/2),d=Math.floor((n.height-o*s)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([f,v,C])=>{var N,H,et,Q,J,Y,U,k,j,T;if(e&&!e(f,v))return;const A=u+f*s*(o-7),w=d+v*s*(o-7);if((N=n.cornersSquareOptions)!=null&&N.type){const P=new Cd({context:r,type:(H=n.cornersSquareOptions)==null?void 0:H.type});r.beginPath(),P.draw(A,w,l,C)}else{const P=new Io({context:r,type:n.dotsOptions.type});r.beginPath();for(let g=0;g{var R;return!!((R=Be[g+I])!=null&&R[p+E])})}if((Q=n.cornersSquareOptions)!=null&&Q.gradient){const P=n.cornersSquareOptions.gradient,g=this._createGradient({context:r,options:P,additionalRotation:C,x:A,y:w,size:l});P.colorStops.forEach(({offset:p,color:I})=>{g.addColorStop(p,I)}),r.fillStyle=r.strokeStyle=g}else(J=n.cornersSquareOptions)!=null&&J.color&&(r.fillStyle=r.strokeStyle=n.cornersSquareOptions.color);if(r.fill("evenodd"),(Y=n.cornersDotOptions)!=null&&Y.type){const P=new kd({context:r,type:(U=n.cornersDotOptions)==null?void 0:U.type});r.beginPath(),P.draw(A+s*2,w+s*2,a,C)}else{const P=new Io({context:r,type:n.dotsOptions.type});r.beginPath();for(let g=0;g{var R;return!!((R=ze[g+I])!=null&&R[p+E])})}if((j=n.cornersDotOptions)!=null&&j.gradient){const P=n.cornersDotOptions.gradient,g=this._createGradient({context:r,options:P,additionalRotation:C,x:A+s*2,y:w+s*2,size:a});P.colorStops.forEach(({offset:p,color:I})=>{g.addColorStop(p,I)}),r.fillStyle=r.strokeStyle=g}else(T=n.cornersDotOptions)!=null&&T.color&&(r.fillStyle=r.strokeStyle=n.cornersDotOptions.color);r.fill("evenodd")})}loadImage(){return new Promise((e,r)=>{const n=this._options,o=new Image;if(!n.image)return r("Image is not defined");typeof n.imageOptions.crossOrigin=="string"&&(o.crossOrigin=n.imageOptions.crossOrigin),this._image=o,o.onload=()=>{e()},o.src=n.image})}drawImage({width:e,height:r,count:n,dotSize:o}){const i=this.context;if(!i)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";const s=this._options,l=Math.floor((s.width-n*o)/2),a=Math.floor((s.height-n*o)/2),u=l+s.imageOptions.margin+(n*o-e)/2,d=a+s.imageOptions.margin+(n*o-r)/2,f=e-s.imageOptions.margin*2,v=r-s.imageOptions.margin*2;i.drawImage(this._image,u,d,f<0?0:f,v<0?0:v)}_createGradient({context:e,options:r,additionalRotation:n,x:o,y:i,size:s}){let l;if(r.type===Nd.radial)l=e.createRadialGradient(o+s/2,i+s/2,0,o+s/2,i+s/2,s/2);else{const a=((r.rotation||0)+n)%(2*Math.PI),u=(a+2*Math.PI)%(2*Math.PI);let d=o+s/2,f=i+s/2,v=o+s/2,C=i+s/2;u>=0&&u<=.25*Math.PI||u>1.75*Math.PI&&u<=2*Math.PI?(d=d-s/2,f=f-s/2*Math.tan(a),v=v+s/2,C=C+s/2*Math.tan(a)):u>.25*Math.PI&&u<=.75*Math.PI?(f=f-s/2,d=d-s/2/Math.tan(a),C=C+s/2,v=v+s/2/Math.tan(a)):u>.75*Math.PI&&u<=1.25*Math.PI?(d=d+s/2,f=f+s/2*Math.tan(a),v=v-s/2,C=C-s/2*Math.tan(a)):u>1.25*Math.PI&&u<=1.75*Math.PI&&(f=f+s/2,d=d+s/2/Math.tan(a),C=C-s/2,v=v-s/2/Math.tan(a)),l=e.createLinearGradient(Math.round(d),Math.round(f),Math.round(v),Math.round(C))}return l}}const jl={};for(let t=0;t<=40;t++)jl[t]=t;const Rd={L:"L",M:"M",Q:"Q",H:"H"},Ks={width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:jl[0],mode:void 0,errorCorrectionLevel:Rd.Q},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};function Sn(t){const e={...t};if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map(r=>({...r,offset:Number(r.offset)})),e}function Ys(t){const e={...t};return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions={...e.imageOptions,hideBackgroundDots:!!e.imageOptions.hideBackgroundDots,imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)},e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions={...e.dotsOptions},e.dotsOptions.gradient&&(e.dotsOptions.gradient=Sn(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions={...e.cornersSquareOptions},e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=Sn(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions={...e.cornersDotOptions},e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=Sn(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions={...e.backgroundOptions},e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=Sn(e.backgroundOptions.gradient))),e}function Dd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ul={exports:{}};(function(t,e){var r=function(){var n=function(k,j){var T=236,A=17,w=k,P=i[j],g=null,p=0,I=null,E=[],R={},q=function(S,M){p=w*4+17,g=function(_){for(var x=new Array(_),c=0;c<_;c+=1){x[c]=new Array(_);for(var h=0;h<_;h+=1)x[c][h]=null}return x}(p),z(0,0),z(p-7,0),z(0,p-7),gt(),it(),yt(S,M),w>=7&&vt(S),I==null&&(I=vo(w,P,E)),zt(I,M)},z=function(S,M){for(var _=-1;_<=7;_+=1)if(!(S+_<=-1||p<=S+_))for(var x=-1;x<=7;x+=1)M+x<=-1||p<=M+x||(0<=_&&_<=6&&(x==0||x==6)||0<=x&&x<=6&&(_==0||_==6)||2<=_&&_<=4&&2<=x&&x<=4?g[S+_][M+x]=!0:g[S+_][M+x]=!1)},$=function(){for(var S=0,M=0,_=0;_<8;_+=1){q(!0,_);var x=l.getLostPoint(R);(_==0||S>x)&&(S=x,M=_)}return M},it=function(){for(var S=8;S>_&1)==1;g[Math.floor(_/3)][_%3+p-8-3]=x}for(var _=0;_<18;_+=1){var x=!S&&(M>>_&1)==1;g[_%3+p-8-3][Math.floor(_/3)]=x}},yt=function(S,M){for(var _=P<<3|M,x=l.getBCHTypeInfo(_),c=0;c<15;c+=1){var h=!S&&(x>>c&1)==1;c<6?g[c][8]=h:c<8?g[c+1][8]=h:g[p-15+c][8]=h}for(var c=0;c<15;c+=1){var h=!S&&(x>>c&1)==1;c<8?g[8][p-c-1]=h:c<9?g[8][15-c-1+1]=h:g[8][15-c-1]=h}g[p-8][8]=!S},zt=function(S,M){for(var _=-1,x=p-1,c=7,h=0,y=l.getMaskFunction(M),m=p-1;m>0;m-=2)for(m==6&&(m-=1);;){for(var b=0;b<2;b+=1)if(g[x][m-b]==null){var L=!1;h>>c&1)==1);var O=y(x,m-b);O&&(L=!L),g[x][m-b]=L,c-=1,c==-1&&(h+=1,c=7)}if(x+=_,x<0||p<=x){x-=_,_=-_;break}}},be=function(S,M){for(var _=0,x=0,c=0,h=new Array(M.length),y=new Array(M.length),m=0;m=0?F.getAt(K):0}}for(var W=0,O=0;Om*8)throw"code length overflow. ("+c.getLengthInBits()+">"+m*8+")";for(c.getLengthInBits()+4<=m*8&&c.put(0,4);c.getLengthInBits()%8!=0;)c.putBit(!1);for(;!(c.getLengthInBits()>=m*8||(c.put(T,8),c.getLengthInBits()>=m*8));)c.put(A,8);return be(c,x)};R.addData=function(S,M){M=M||"Byte";var _=null;switch(M){case"Numeric":_=v(S);break;case"Alphanumeric":_=C(S);break;case"Byte":_=N(S);break;case"Kanji":_=H(S);break;default:throw"mode:"+M}E.push(_),I=null},R.isDark=function(S,M){if(S<0||p<=S||M<0||p<=M)throw S+","+M;return g[S][M]},R.getModuleCount=function(){return p},R.make=function(){if(w<1){for(var S=1;S<40;S++){for(var M=d.getRSBlocks(S,P),_=f(),x=0;x"u"?S*4:M;var _="";_+='";for(var c=0;c';_+=""}return _+="",_+="
",_},R.createSvgTag=function(S,M,_,x){var c={};typeof arguments[0]=="object"&&(c=arguments[0],S=c.cellSize,M=c.margin,_=c.alt,x=c.title),S=S||2,M=typeof M>"u"?S*4:M,_=typeof _=="string"?{text:_}:_||{},_.text=_.text||null,_.id=_.text?_.id||"qrcode-description":null,x=typeof x=="string"?{text:x}:x||{},x.text=x.text||null,x.id=x.text?x.id||"qrcode-title":null;var h=R.getModuleCount()*S+M*2,y,m,b,L,O="",D;for(D="l"+S+",0 0,"+S+" -"+S+",0 0,-"+S+"z ",O+=''+Mt(x.text)+"":"",O+=_.text?''+Mt(_.text)+"":"",O+='',O+='"u"?S*4:M;var _=R.getModuleCount()*S+M*2,x=M,c=_-M;return U(_,_,function(h,y){if(x<=h&&h"u"?S*4:M;var x=R.getModuleCount()*S+M*2,c="";return c+="",c};var Mt=function(S){for(var M="",_=0;_":M+=">";break;case"&":M+="&";break;case'"':M+=""";break;default:M+=x;break}}return M},er=function(S){var M=1;S=typeof S>"u"?M*2:S;var _=R.getModuleCount()*M+S*2,x=S,c=_-S,h,y,m,b,L,O={"██":"█","█ ":"▀"," █":"▄"," ":" "},D={"██":"▀","█ ":"▀"," █":" "," ":" "},B="";for(h=0;h<_;h+=2){for(m=Math.floor((h-x)/M),b=Math.floor((h+1-x)/M),y=0;y<_;y+=1)L="█",x<=y&&y=c?D[L]:O[L];B+=` +`}return _%2&&S>0?B.substring(0,B.length-_-1)+Array(_+1).join("▀"):B.substring(0,B.length-1)};return R.createASCII=function(S,M){if(S=S||1,S<2)return er(M);S-=1,M=typeof M>"u"?S*2:M;var _=R.getModuleCount()*S+M*2,x=M,c=_-M,h,y,m,b,L=Array(S+1).join("██"),O=Array(S+1).join(" "),D="",B="";for(h=0;h<_;h+=1){for(m=Math.floor((h-x)/S),B="",y=0;y<_;y+=1)b=1,x<=y&&y>>8),P.push(I&255)):P.push(A)}}return P}};var o={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},s={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},l=function(){var k=[[],[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]],j=1335,T=7973,A=21522,w={},P=function(g){for(var p=0;g!=0;)p+=1,g>>>=1;return p};return w.getBCHTypeInfo=function(g){for(var p=g<<10;P(p)-P(j)>=0;)p^=j<=0;)p^=T<5&&(I+=3+q-5)}for(var E=0;E=256;)w-=255;return k[w]},A}();function u(k,j){if(typeof k.length>"u")throw k.length+"/"+j;var T=function(){for(var w=0;w"u")throw"bad rs block @ typeNumber:"+w+"/errorCorrectionLevel:"+P;for(var p=g.length/3,I=[],E=0;E>>7-A%8&1)==1},T.put=function(A,w){for(var P=0;P>>w-P-1&1)==1)},T.getLengthInBits=function(){return j},T.putBit=function(A){var w=Math.floor(j/8);k.length<=w&&k.push(0),A&&(k[w]|=128>>>j%8),j+=1},T},v=function(k){var j=o.MODE_NUMBER,T=k,A={};A.getMode=function(){return j},A.getLength=function(g){return T.length},A.write=function(g){for(var p=T,I=0;I+2>>8&255)*192+(I&255),P.put(I,13),p+=2}if(p>>8)},j.writeBytes=function(T,A,w){A=A||0,w=w||T.length;for(var P=0;P0&&(T+=","),T+=k[A];return T+="]",T},j},Q=function(){var k=0,j=0,T=0,A="",w={},P=function(p){A+=String.fromCharCode(g(p&63))},g=function(p){if(!(p<0)){if(p<26)return 65+p;if(p<52)return 97+(p-26);if(p<62)return 48+(p-52);if(p==62)return 43;if(p==63)return 47}throw"n:"+p};return w.writeByte=function(p){for(k=k<<8|p&255,j+=8,T+=1;j>=6;)P(k>>>j-6),j-=6},w.flush=function(){if(j>0&&(P(k<<6-j),k=0,j=0),T%3!=0)for(var p=3-T%3,I=0;I=j.length){if(w==0)return-1;throw"unexpected end of file./"+w}var p=j.charAt(T);if(T+=1,p=="=")return w=0,-1;p.match(/^\s$/)||(A=A<<6|g(p.charCodeAt(0)),w+=6)}var I=A>>>w-8&255;return w-=8,I};var g=function(p){if(65<=p&&p<=90)return p-65;if(97<=p&&p<=122)return p-97+26;if(48<=p&&p<=57)return p-48+52;if(p==43)return 62;if(p==47)return 63;throw"c:"+p};return P},Y=function(k,j){var T=k,A=j,w=new Array(k*j),P={};P.setPixel=function(E,R,q){w[R*T+E]=q},P.write=function(E){E.writeString("GIF87a"),E.writeShort(T),E.writeShort(A),E.writeByte(128),E.writeByte(0),E.writeByte(0),E.writeByte(0),E.writeByte(0),E.writeByte(0),E.writeByte(255),E.writeByte(255),E.writeByte(255),E.writeString(","),E.writeShort(0),E.writeShort(0),E.writeShort(T),E.writeShort(A),E.writeByte(0);var R=2,q=p(R);E.writeByte(R);for(var z=0;q.length-z>255;)E.writeByte(255),E.writeBytes(q,z,255),z+=255;E.writeByte(q.length-z),E.writeBytes(q,z,q.length-z),E.writeByte(0),E.writeString(";")};var g=function(E){var R=E,q=0,z=0,$={};return $.write=function(it,gt){if(it>>>gt)throw"length over";for(;q+gt>=8;)R.writeByte(255&(it<>>=8-q,z=0,q=0;z=it<0&&R.writeByte(z)},$},p=function(E){for(var R=1<>6,128|a&63):a<55296||a>=57344?s.push(224|a>>12,128|a>>6&63,128|a&63):(l++,a=65536+((a&1023)<<10|i.charCodeAt(l)&1023),s.push(240|a>>18,128|a>>12&63,128|a>>6&63,128|a&63))}return s}return o(n)}})(),function(n){t.exports=n()}(function(){return r})})(Ul);var Fd=Ul.exports;const Bd=Dd(Fd);class Ui{constructor(e){Ct(this,"_options"),Ct(this,"_container"),Ct(this,"_canvas"),Ct(this,"_qr"),Ct(this,"_drawingPromise"),this._options=e?Ys(Yn(Ks,e)):Ks,this.update()}static _clearContainer(e){e&&(e.innerHTML="")}update(e){Ui._clearContainer(this._container),this._options=e?Ys(Yn(this._options,e)):this._options,this._options.data&&(this._qr=Bd(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||Td(this._options.data)),this._qr.make(),this._canvas=new Ld(this._options),this._drawingPromise=this._canvas.drawQR(this._qr),this.append(this._container))}append(e){if(e){if(typeof e.appendChild!="function")throw"Container should be a single DOM node";this._canvas&&e.appendChild(this._canvas.getCanvas()),this._container=e}}async getImageUrl(e){return this._drawingPromise&&await this._drawingPromise===void 0&&this._canvas?this._canvas.getCanvas().toDataURL(`image/${e}`):""}download(e){this._drawingPromise&&this._drawingPromise.then(()=>{if(!this._canvas)return;const r=e,n=r.extension||"png",o=r.name||"qr",i=this._canvas.getCanvas().toDataURL(`image/${n}`);xd(i,`${o}.${n}`)})}}const zd=["src"],jd={key:1},Ud=xl({__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(t){let e,r;const n=t,o=new Ui({data:n.value,width:n.width,height:n.height,margin:n.margin,qrOptions:n.qrOptions,imageOptions:n.imageOptions,dotsOptions:n.dotsOptions,backgroundOptions:n.backgroundOptions,image:n.image,cornersSquareOptions:n.cornersSquareOptions,cornersDotOptions:n.cornersDotOptions});let i=([e,r]=ad(()=>o.getImageUrl(n.fileExt)),e=await e,r(),e);function s(){o.download(n.downloadOptions)}return(l,a)=>(_r(),To("div",null,[Ln(i)?(_r(),To("div",{key:0,class:gr(l.myclass)},[Hn("img",{src:Ln(i),class:gr(l.imgclass),crossorigin:"anonymous"},null,10,zd)],2)):Xs("",!0),Ln(i)&&l.download?(_r(),To("div",jd,[Hn("button",{onClick:s,class:gr(l.downloadButton)},Vf(l.ButtonName),3)])):Xs("",!0)]))}}),$d=xl({__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(t){const e=t;return(r,n)=>(_r(),Dl(Bh,null,{default:Lh(()=>[Ie(Ud,{"background-options":e.backgroundOptions,"button-name":e.ButtonName,"corners-dot-options":e.cornersDotOptions,"corners-square-options":e.cornersSquareOptions,"dots-options":e.dotsOptions,download:e.download,"download-button":e.downloadButton,"download-options":e.downloadOptions,"file-ext":e.fileExt,height:e.height,image:e.image,"image-options":e.imageOptions,imgclass:e.imgclass,margin:e.margin,value:e.value,myclass:e.myclass,"qr-options":e.qrOptions,width:e.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}))}});function Gs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function qt(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fn(t,e,r){return $l()?Fn=Reflect.construct.bind():Fn=function(o,i,s){var l=[null];l.push.apply(l,i);var a=Function.bind.apply(o,l),u=new a;return s&&fn(u,s.prototype),u},Fn.apply(null,arguments)}function Jd(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Gn(t){var e=typeof Map=="function"?new Map:void 0;return Gn=function(n){if(n===null||!Jd(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,o)}function o(){return Fn(n,arguments,un(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),fn(o,n)},Gn(t)}function X(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qd(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X(t)}function oe(t){var e=$l();return function(){var n=un(t),o;if(e){var i=un(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return qd(this,o)}}function Qo(t){return Xd(t)||Wd(t)||Jl(t)||Hd()}function Xd(t){if(Array.isArray(t))return ti(t)}function Wd(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Jl(t,e){if(t){if(typeof t=="string")return ti(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ti(t,e)}}function ti(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(a){throw a},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){r=r.call(t)},n:function(){var a=r.next();return i=a.done,a},e:function(a){s=!0,l=a},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(s)throw l}}}}function Z(t,e){var r=ql(t,e,"get");return Vd(t,r)}function kt(t,e,r){var n=ql(t,e,"set");return Kd(t,n,r),r}function ql(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Vd(t,e){return e.get?e.get.call(t):e.value}function Kd(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Ut(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function Xl(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _t(t,e,r){Xl(t,e),e.set(t,r)}function $t(t,e){Xl(t,e),e.add(t)}var Xt=function(t){ne(r,t);var e=oe(r);function r(n){var o;return Rt(this,r),o=e.call(this,n),o.name="MissingArgument",o}return Dt(r)}(Gn(Error));Object.freeze(Xt);var at=function(t){ne(r,t);var e=oe(r);function r(n){var o;return Rt(this,r),o=e.call(this,n),o.name="InvalidArgument",o}return Dt(r)}(Gn(Error));Object.freeze(at);var kr=new WeakMap,ta=new WeakSet,$i=function(){function t(e){Rt(this,t),$t(this,ta),_t(this,kr,{writable:!0,value:void 0}),Ut(this,ta,Yd).call(this,e),kt(this,kr,e),Object.freeze(this)}return Dt(t,[{key:"repr",value:function(){var r=`\r +`,n="";return n+="BEGIN:VCARD"+r,n+="VERSION:4.0"+r,n+=Z(this,kr).reduce(function(o,i){return o.push(i.repr()),o},[]).join(r)+r,n+="END:VCARD"+r,n}},{key:"reprXML",value:function(){var r="";return r+='',r+='',r+="",r+=Z(this,kr).reduce(function(n,o){return n+o.reprXML()},""),r+="",r+="",r}},{key:"reprJSON",value:function(){return["vcard",Z(this,kr).reduce(function(r,n){return n.constructor.identifier==="Group"?r=r.concat(n.reprJSON()):r.push(n.reprJSON()),r},[])]}}]),t}();function Yd(t){if(typeof t>"u")throw new Xt("Properties for VCARD must be supplied");if(!Array.isArray(t))throw new at("Properties for VCARD must be passed in an array");var e=new Map([["FNProperty",0],["AnniversaryProperty",0],["BdayProperty",0],["GenderProperty",0],["BirthplaceProperty",0],["DeathplaceProperty",0],["DeathdateProperty",0],["KindProperty",0],["NProperty",0],["ProdidProperty",0],["RevProperty",0],["UIDProperty",0]]),r=!1,n=!1,o=Qs(t),i;try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!/(?:^Group$|Property$)/.test(s.constructor.identifier))throw new at("Unidentified item included in properties");var l=void 0;switch(s.constructor.identifier){case"MemberProperty":r=!0;break;case"KindProperty":/^group$/i.test(s.value)&&(n=!0);break;case"Group":s.hasMemberProperty&&(r=!0),s.kindPropertyIsGroup&&(n=!0);var a=Qs(s.propertyInstanceCount.keys()),u;try{for(a.s();!(u=a.n()).done;){var d=u.value,f=s.propertyInstanceCount.get(d),v=e.get(d);l=f+v,e.set(d,l)}}catch(C){a.e(C)}finally{a.f()}break;default:if(!e.has(s.constructor.identifier))continue;l=e.get(s.constructor.identifier),l++,e.set(s.constructor.identifier,l)}}}catch(C){o.e(C)}finally{o.f()}if(Array.from(this.constructor.cardinalityNoneOrOneProps.keys()).some(function(C){return e.get(C)>1}))throw new at("AnniversaryProperty, BdayProperty, GenderProperty, KindProperty, NProperty, ProdidProperty, RevProperty and UIDProperty must not have more than one instance supplied");if(e.get("FNProperty")<1)throw new Xt("One or more FNProperty instances must be supplied");if(r&&!n)throw new at('MemberProperty should only be used if the value of the KindProperty is "group"')}nt($i,"cardinalityNoneOrOneProps",new Set(["AnniversaryProperty","BdayProperty","GenderProperty","BirthplaceProperty","DeathplaceProperty","DeathdateProperty","KindProperty","NProperty","ProdidProperty","RevProperty","UIDProperty"]));Object.freeze($i);var ea=new WeakMap,po=function(){function t(){if(Rt(this,t),_t(this,ea,{writable:!0,value:["type","value","valueXML","valueJSON","identifier"]}),this.constructor===t)throw new Error("Cannot create instance of base class")}return Dt(t,[{key:"checkAbstractPropertiesAndMethods",value:function(){var r=this;if(!Z(this,ea).every(function(n){return Object.prototype.hasOwnProperty.call(r,n)||Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(r),n)||Object.prototype.hasOwnProperty.call(r.constructor,n)}))throw new Error("All abstract properties and methods in abstract base class must be defined in child class")}},{key:"repr",value:function(){return this.value}},{key:"reprXML",value:function(){return this.valueXML}},{key:"reprJSON",value:function(){return this.valueJSON}}]),t}();Object.freeze(po);var lr=new WeakMap,ra=new WeakSet,na=new WeakSet,oa=new WeakSet,pe=function(t){ne(r,t);var e=oe(r);function r(n){var o;return Rt(this,r),o=e.call(this),$t(X(o),oa),$t(X(o),na),$t(X(o),ra),_t(X(o),lr,{writable:!0,value:void 0}),Ut(X(o),ra,Gd).call(X(o),n),kt(X(o),lr,n),o.checkAbstractPropertiesAndMethods(),Object.freeze(X(o)),o}return Dt(r,[{key:"value",get:function(){return Ut(this,na,Zd).call(this,Z(this,lr))}},{key:"valueXML",get:function(){return"<".concat(this.constructor.type.toLowerCase(),">").concat(Ut(this,oa,Qd).call(this,Z(this,lr)),"")}},{key:"valueJSON",get:function(){return[this.constructor.type.toLowerCase(),Z(this,lr)]}},{key:"_unsafe_raw_value",get:function(){return Z(this,lr)}}]),r}(po);function Gd(t){if(typeof t>"u")throw new Xt("Value for TextType must be supplied");if(typeof t!="string")throw new TypeError("Only type string allowed for TextType value")}function Zd(t){return t.replaceAll("\\","\\\\").replaceAll(",","\\,").replaceAll(":","\\:").replaceAll(";","\\;").replaceAll(` +`,"\\n")}function Qd(t){return t.replaceAll("&","&").replaceAll(">",">").replaceAll("<","<").replaceAll('"',""").replaceAll("'","'")}nt(pe,"type","TEXT");nt(pe,"identifier","TextType");Object.freeze(pe);var Nr=new WeakMap,Wl=new WeakMap,ia=new WeakSet,go=function(t){ne(r,t);var e=oe(r);function r(n){var o;return Rt(this,r),o=e.call(this),$t(X(o),ia),_t(X(o),Nr,{writable:!0,value:void 0}),_t(X(o),Wl,{writable:!0,value:new RegExp("([A-Za-z][A-Za-z0-9+\\-.]*):(?:(//)(?:((?:[A-Za-z0-9\\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*)@)?((?:\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\.[A-Za-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*))(?::([0-9]*))?((?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)|/((?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?)|((?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)|)(?:\\?((?:[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*))?(?:\\#((?:[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*))?")}),Ut(X(o),ia,tp).call(X(o),n),kt(X(o),Nr,n),o.checkAbstractPropertiesAndMethods(),Object.freeze(X(o)),o}return Dt(r,[{key:"value",get:function(){return Z(this,Nr)}},{key:"valueXML",get:function(){return"<".concat(this.constructor.type.toLowerCase(),">").concat(Z(this,Nr),"")}},{key:"valueJSON",get:function(){return[this.constructor.type.toLowerCase(),Z(this,Nr)]}}]),r}(po);function tp(t){if(typeof t>"u")throw new Xt("Value for URIType must be supplied");if(typeof t!="string")throw new TypeError("Value for URIType should be of type string");if(!Z(this,Wl).test(t))throw new at("Invalid URI")}nt(go,"type","URI");nt(go,"identifier","URIType");Object.freeze(go);var sa=new WeakSet,yo=function(t){ne(r,t);var e=oe(r);function r(n,o){var i;return Rt(this,r),i=e.call(this),$t(X(i),sa),Ut(X(i),sa,ep).call(X(i),n,o),i.targetProp=o.toUpperCase(),i.checkAbstractPropertiesAndMethods(),Object.freeze(X(i)),i}return Dt(r)}(po);function ep(t,e){var r,n,o,i;if(typeof t>"u"||typeof e>"u")throw new Xt("Value and target property for SpecialValueType must be supplied");var s=/^(?:individual|group|org|location|application|A-GNSS|A-GPS|AOA|best-guess|Cell|DBH|DBH_HELO|Derived|Device-Assisted_A-GPS|Device-Assisted_EOTD|Device-Based_A-GPS|Device-Based_EOTD|DHCP|E-CID|ELS-BLE|ELS-WiFi|GNSS|GPS|Handset_AFLT|Handset_EFLT|Hybrid_A-GPS|hybridAGPS_AFLT|hybridCellSector_AGPS|hybridTDOA_AOA|hybridTDOA_AGPS|hybridTDOA_AGPS_AOA|IPDL|LLDP-MED|Manual|MBS|MPL|NEAD-BLE|NEAD-WiFi|networkRFFingerprinting|networkTDOA|networkTOA|NMR|OTDOA|RFID|RSSI|RSSI-RTT|RTT|TA|TA-NMR|Triangulation|UTDOA|Wiremap|802\.11|x-[A-Za-z0-9]+)$/i,l,a;switch(!0){case/^KindProperty$/i.test(e):if(typeof t!="string"||!s.test(t))throw new at("Invalid value for SpecialValueType for KindProperty");this.value=t,this.valueXML="".concat(t,""),this.valueJSON=[this.constructor.type.toLowerCase(),t];break;case/^NProperty$/i.test(e):if(!Array.isArray(t)||t.length!==5)throw new at("Invalid value for SpecialValueType for NProperty. It should be an array with a length of 5");for(var u=0;u","surname>"),a=t[f].reprJSON(),a.length===2?this.valueJSON[f]=a.pop():(a.shift(),this.valueJSON[f]=a)):(this.valueXML+="",this.valueJSON[f]="");break;case 1:t[f]?(this.valueXML+=t[f].reprXML().replaceAll("text>","given>"),a=t[f].reprJSON(),a.length===2?this.valueJSON[f]=a.pop():(a.shift(),this.valueJSON[f]=a)):(this.valueXML+="",this.valueJSON[f]="");break;case 2:t[f]?(this.valueXML+=t[f].reprXML().replaceAll("text>","additional>"),a=t[f].reprJSON(),a.length===2?this.valueJSON[f]=a.pop():(a.shift(),this.valueJSON[f]=a)):(this.valueXML+="",this.valueJSON[f]="");break;case 3:t[f]?(this.valueXML+=t[f].reprXML().replaceAll("text>","prefix>"),a=t[f].reprJSON(),a.length===2?this.valueJSON[f]=a.pop():(a.shift(),this.valueJSON[f]=a)):(this.valueXML+="",this.valueJSON[f]="");break;case 4:t[f]?(this.valueXML+=t[f].reprXML().replaceAll("text>","suffix>"),a=t[f].reprJSON(),a.length===2?this.valueJSON[f]=a.pop():(a.shift(),this.valueJSON[f]=a)):(this.valueXML+="",this.valueJSON[f]="")}this.valueJSON=[this.constructor.type.toLowerCase(),this.valueJSON];break;case/^GenderProperty$/i.test(e):if(!Array.isArray(t)||t.length!==2)throw new at("Invalid value for SpecialValueType for GenderProperty. It should be an array with a length of 2");if(t[0]&&t[0].constructor.identifier!=="SexType")throw new TypeError("Invalid value for SpecialValueType for GenderProperty. The first item in the array, if present, should be of type SexType");if(!t[0]&&!t[1]||t[1]&&t[1].constructor.identifier!=="TextType")throw new TypeError("Invalid value for SpecialValueType for GenderProperty. The second item in the array, if present, should be of type TextType");this.value=t.reduce(function(J,Y){return J?"".concat(J,";").concat(Y.repr()):Y.repr()},""),this.valueXML=t.reduce(function(J,Y){return J+Y.reprXML()},""),this.valueJSON=t.reduce(function(J,Y){return J.push(Y.reprJSON().pop()),J},[]),this.valueJSON.length===1?this.valueJSON.unshift(this.constructor.type.toLowerCase()):this.valueJSON=[this.constructor.type.toLowerCase(),this.valueJSON];break;case/^AdrProperty$/i.test(e):if(!Array.isArray(t)||t.length!==7)throw new at("Invalid value for SpecialValueType for AdrProperty. It should be an array with a length of 7");for(var v=0;v","pobox>"),a=t[N].reprJSON(),a.length===2?this.valueJSON[N]=a.pop():(a.shift(),this.valueJSON[N]=a)):(this.valueXML+="",this.valueJSON[N]="");break;case 1:t[N]?(this.valueXML+=t[N].reprXML().replaceAll("text>","ext>"),a=t[N].reprJSON(),a.length===2?this.valueJSON[N]=a.pop():(a.shift(),this.valueJSON[N]=a)):(this.valueXML+="",this.valueJSON[N]="");break;case 2:t[N]?(this.valueXML+=t[N].reprXML().replaceAll("text>","street>"),a=t[N].reprJSON(),a.length===2?this.valueJSON[N]=a.pop():(a.shift(),this.valueJSON[N]=a)):(this.valueXML+="",this.valueJSON[N]="");break;case 3:t[N]?(this.valueXML+=t[N].reprXML().replaceAll("text>","locality>"),a=t[N].reprJSON(),a.length===2?this.valueJSON[N]=a.pop():(a.shift(),this.valueJSON[N]=a)):(this.valueXML+="",this.valueJSON[N]="");break;case 4:t[N]?(this.valueXML+=t[N].reprXML().replaceAll("text>","region>"),a=t[N].reprJSON(),a.length===2?this.valueJSON[N]=a.pop():(a.shift(),this.valueJSON[N]=a)):(this.valueXML+="",this.valueJSON[N]="");break;case 5:t[N]?(this.valueXML+=t[N].reprXML().replaceAll("text>","code>"),a=t[N].reprJSON(),a.length===2?this.valueJSON[N]=a.pop():(a.shift(),this.valueJSON[N]=a)):(this.valueXML+="",this.valueJSON[N]="");break;case 6:t[N]?(this.valueXML+=t[N].reprXML().replaceAll("text>","country>"),a=t[N].reprJSON(),a.length===2?this.valueJSON[N]=a.pop():(a.shift(),this.valueJSON[N]=a)):(this.valueXML+="",this.valueJSON[N]="")}this.valueJSON=[this.constructor.type.toLowerCase(),this.valueJSON];break;case/^OrgProperty$/i.test(e):if(!Array.isArray(t)||!(t.length>=1))throw new at("Invalid value for SpecialValueType for OrgProperty. It should be an array with at least one item");for(var H=0;H=Number(t[0].repr()))throw new at("Invalid value for SpecialValueType for ClientpidmapProperty. The first item in the array should be a positive integer of type IntegerType. Zero is not allowed");if(((o=t[1])===null||o===void 0||(i=o.constructor)===null||i===void 0?void 0:i.identifier)!=="URIType")throw new TypeError("Invalid value for SpecialValueType for ClientpidmapProperty. The second item in the array should be of type URIType");this.value=t.reduce(function(J,Y){return J?"".concat(J,";").concat(Y.repr()):Y.repr()},""),this.valueXML=t.reduce(function(J,Y){return J+Y.reprXML()},""),this.valueJSON=["unknown",t.reduce(function(J,Y){return J.push(Y.reprJSON().pop()),J},[])];break;default:throw new at("Invalid target property for SpecialValueType")}}nt(yo,"identifier","SpecialValueType");nt(yo,"type","TEXT");Object.freeze(yo);var aa=new WeakMap,Ke=function(){function t(){if(Rt(this,t),_t(this,aa,{writable:!0,value:["prop","cardinality","acceptableParamTypes","acceptableValTypes","params","paramsXML","paramsJSON","value","valueXML","valueJSON","identifier"]}),this.constructor===t)throw new Error("Cannot create instance of base class")}return Dt(t,[{key:"checkAbstractPropertiesAndMethods",value:function(){var r=this;if(!Z(this,aa).every(function(n){return Object.prototype.hasOwnProperty.call(r,n)||Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(r),n)||Object.prototype.hasOwnProperty.call(r.constructor,n)}))throw new Error("All abstract properties and methods in base class must be defined in child class")}},{key:"repr",value:function(){var r=this.params===""?"".concat(this.constructor.prop||this.prop,":").concat(this.value):"".concat(this.constructor.prop||this.prop,";").concat(this.params,":").concat(this.value),n=`\r + `,o=75;if(r.length<=o)return r;for(var i="",s=0;s0&&s%o===0?i+=n+r[s]:i+=r[s];return i}},{key:"reprXML",value:function(){var r,n,o=((r=this.constructor.prop)===null||r===void 0?void 0:r.toLowerCase())||((n=this.prop)===null||n===void 0?void 0:n.toLowerCase());return o==="xml"?this.valueXML:this.paramsXML===""?"<".concat(o,">").concat(this.valueXML,""):"<".concat(o,">").concat(this.paramsXML,"").concat(this.valueXML,"")}},{key:"reprJSON",value:function(){var r,n;return[((r=this.constructor.prop)===null||r===void 0?void 0:r.toLowerCase())||((n=this.prop)===null||n===void 0?void 0:n.toLowerCase()),this.paramsJSON].concat(Qo(this.valueJSON))}}]),t}();Object.freeze(Ke);var Lr=new WeakMap,Rr=new WeakMap,la=new WeakSet,Le=function(t){ne(r,t);var e=oe(r);function r(n,o){var i;return Rt(this,r),i=e.call(this),$t(X(i),la),_t(X(i),Lr,{writable:!0,value:void 0}),_t(X(i),Rr,{writable:!0,value:void 0}),Ut(X(i),la,rp).call(X(i),n,o),kt(X(i),Lr,n),kt(X(i),Rr,o),i.checkAbstractPropertiesAndMethods(),Object.freeze(X(i)),i}return Dt(r,[{key:"params",get:function(){return Z(this,Lr).reduce(function(o,i){return o.push(i.repr()),o},[]).join(";")}},{key:"paramsXML",get:function(){return Z(this,Lr).reduce(function(o,i){return o+i.reprXML()},"")}},{key:"paramsJSON",get:function(){return Z(this,Lr).reduce(function(o,i){return qt(qt({},i.reprJSON()),o)},{})}},{key:"value",get:function(){return Z(this,Rr).repr()}},{key:"valueXML",get:function(){return Z(this,Rr).reprXML()}},{key:"valueJSON",get:function(){return Z(this,Rr).reprJSON()}}]),r}(Ke);function rp(t,e){var r=this;if(typeof t>"u"||typeof e>"u")throw new Xt("Parameters and value for FNProperty must be supplied");if(!Array.isArray(t))throw new at("Parameters for FNProperty must be passed in an array");var n=new Set;if(t.every(function(o){if(o.constructor.identifier!=="AnyParameter"){if(n.has(o.constructor.identifier))throw new at("Parameters must not have more than one instance supplied");n.add(o.constructor.identifier)}else{if(n.has(o.param))throw new at("Parameters must not have more than one instance supplied");n.add(o.param)}return o.constructor.identifier==="TypeParameter"?!/^(?:Related|Tel)Property$/i.test(o.targetProp):o.constructor.identifier==="ValueParameter"?o.value==="text":r.constructor.acceptableParamTypes.has(o.constructor.identifier)})){if(e.constructor.identifier!==this.constructor.acceptableValTypes)throw new TypeError("Invalid type for value of FNProperty")}else throw new TypeError("Some of the parameters passed are not valid parameters for FNProperty")}nt(Le,"identifier","FNProperty");nt(Le,"prop","FN");nt(Le,"cardinality","1*");nt(Le,"acceptableParamTypes",new Set(["ValueParameter","TypeParameter","LanguageParameter","AltidParameter","PIDParameter","PrefParameter","IndexParameter","AnyParameter"]));nt(Le,"acceptableValTypes","TextType");Object.freeze(Le);var Dr=new WeakMap,Fr=new WeakMap,ca=new WeakSet,Ye=function(t){ne(r,t);var e=oe(r);function r(n,o){var i;return Rt(this,r),i=e.call(this),$t(X(i),ca),_t(X(i),Dr,{writable:!0,value:void 0}),_t(X(i),Fr,{writable:!0,value:void 0}),Ut(X(i),ca,np).call(X(i),n,o),kt(X(i),Dr,n),kt(X(i),Fr,o),i.checkAbstractPropertiesAndMethods(),Object.freeze(X(i)),i}return Dt(r,[{key:"params",get:function(){return Z(this,Dr).reduce(function(o,i){return o.push(i.repr()),o},[]).join(";")}},{key:"paramsXML",get:function(){return Z(this,Dr).reduce(function(o,i){return o+i.reprXML()},"")}},{key:"paramsJSON",get:function(){return Z(this,Dr).reduce(function(o,i){return qt(qt({},i.reprJSON()),o)},{})}},{key:"value",get:function(){return Z(this,Fr).repr()}},{key:"valueXML",get:function(){return Z(this,Fr).reprXML()}},{key:"valueJSON",get:function(){return Z(this,Fr).reprJSON()}}]),r}(Ke);function np(t,e){var r=this;if(typeof t>"u"||typeof e>"u")throw new Xt("Parameters and value for TelProperty must be supplied");if(!Array.isArray(t))throw new at("Parameters for TelProperty must be passed in an array");var n=new Set;if(t.every(function(o){if(o.constructor.identifier!=="AnyParameter"){if(n.has(o.constructor.identifier))throw new at("Parameters must not have more than one instance supplied");n.add(o.constructor.identifier)}else{if(n.has(o.param))throw new at("Parameters must not have more than one instance supplied");n.add(o.param)}return o.constructor.identifier==="TypeParameter"?/^TelProperty$/i.test(o.targetProp):o.constructor.identifier==="ValueParameter"?o.value==="uri"&&e.constructor.identifier==="URIType"||o.value==="text"&&e.constructor.identifier==="TextType":o.constructor.identifier==="MediatypeParameter"?e.constructor.identifier==="URIType":r.constructor.acceptableParamTypes.has(o.constructor.identifier)})){if(!this.constructor.acceptableValTypes.has(e.constructor.identifier))throw new TypeError("Invalid type for value of TelProperty")}else throw new TypeError("Some of the parameters passed are not valid parameters for TelProperty")}nt(Ye,"identifier","TelProperty");nt(Ye,"prop","TEL");nt(Ye,"cardinality","*");nt(Ye,"acceptableParamTypes",new Set(["ValueParameter","MediatypeParameter","TypeParameter","PIDParameter","PrefParameter","IndexParameter","AltidParameter","AnyParameter"]));nt(Ye,"acceptableValTypes",new Set(["URIType","TextType"]));Object.freeze(Ye);var Br=new WeakMap,zr=new WeakMap,ua=new WeakSet,Ge=function(t){ne(r,t);var e=oe(r);function r(n,o){var i;return Rt(this,r),i=e.call(this),$t(X(i),ua),_t(X(i),Br,{writable:!0,value:void 0}),_t(X(i),zr,{writable:!0,value:void 0}),Ut(X(i),ua,op).call(X(i),n,o),kt(X(i),Br,n),kt(X(i),zr,o),i.checkAbstractPropertiesAndMethods(),Object.freeze(X(i)),i}return Dt(r,[{key:"params",get:function(){return Z(this,Br).reduce(function(o,i){return o.push(i.repr()),o},[]).join(";")}},{key:"paramsXML",get:function(){return Z(this,Br).reduce(function(o,i){return o+i.reprXML()},"")}},{key:"paramsJSON",get:function(){return Z(this,Br).reduce(function(o,i){return qt(qt({},i.reprJSON()),o)},{})}},{key:"value",get:function(){return Z(this,zr).repr()}},{key:"valueXML",get:function(){return Z(this,zr).reprXML()}},{key:"valueJSON",get:function(){return Z(this,zr).reprJSON()}}]),r}(Ke);function op(t,e){var r=this;if(typeof t>"u"||typeof e>"u")throw new Xt("Parameters and value for EmailProperty must be supplied");if(!Array.isArray(t))throw new at("Parameters for EmailProperty must be passed in an array");var n=new Set;if(t.every(function(o){if(o.constructor.identifier!=="AnyParameter"){if(n.has(o.constructor.identifier))throw new at("Parameters must not have more than one instance supplied");n.add(o.constructor.identifier)}else{if(n.has(o.param))throw new at("Parameters must not have more than one instance supplied");n.add(o.param)}return o.constructor.identifier==="TypeParameter"?!/^(?:Related|Tel)Property$/i.test(o.targetProp):o.constructor.identifier==="ValueParameter"?o.value==="text":r.constructor.acceptableParamTypes.has(o.constructor.identifier)})){if(e.constructor.identifier!==this.constructor.acceptableValTypes)throw new TypeError("Invalid type for value of EmailProperty")}else throw new TypeError("Some of the parameters passed are not valid parameters for EmailProperty")}nt(Ge,"identifier","EmailProperty");nt(Ge,"prop","EMAIL");nt(Ge,"cardinality","*");nt(Ge,"acceptableParamTypes",new Set(["ValueParameter","PIDParameter","PrefParameter","IndexParameter","TypeParameter","AltidParameter","AnyParameter"]));nt(Ge,"acceptableValTypes","TextType");Object.freeze(Ge);var jr=new WeakMap,Ur=new WeakMap,fa=new WeakSet,Ze=function(t){ne(r,t);var e=oe(r);function r(n,o){var i;return Rt(this,r),i=e.call(this),$t(X(i),fa),_t(X(i),jr,{writable:!0,value:void 0}),_t(X(i),Ur,{writable:!0,value:void 0}),Ut(X(i),fa,ip).call(X(i),n,o),kt(X(i),jr,n),kt(X(i),Ur,o),i.checkAbstractPropertiesAndMethods(),Object.freeze(X(i)),i}return Dt(r,[{key:"params",get:function(){return Z(this,jr).reduce(function(o,i){return o.push(i.repr()),o},[]).join(";")}},{key:"paramsXML",get:function(){return Z(this,jr).reduce(function(o,i){return o+i.reprXML()},"")}},{key:"paramsJSON",get:function(){return Z(this,jr).reduce(function(o,i){return qt(qt({},i.reprJSON()),o)},{})}},{key:"value",get:function(){return Z(this,Ur).repr()}},{key:"valueXML",get:function(){return Z(this,Ur).reprXML()}},{key:"valueJSON",get:function(){return Z(this,Ur).reprJSON()}}]),r}(Ke);function ip(t,e){var r=this;if(typeof t>"u"||typeof e>"u")throw new Xt("Parameters and value for TitleProperty must be supplied");if(!Array.isArray(t))throw new at("Parameters for TitleProperty must be passed in an array");var n=new Set;if(t.every(function(o){if(o.constructor.identifier!=="AnyParameter"){if(n.has(o.constructor.identifier))throw new at("Parameters must not have more than one instance supplied");n.add(o.constructor.identifier)}else{if(n.has(o.param))throw new at("Parameters must not have more than one instance supplied");n.add(o.param)}return o.constructor.identifier==="TypeParameter"?!/^(?:Related|Tel)Property$/i.test(o.targetProp):o.constructor.identifier==="ValueParameter"?o.value==="text":r.constructor.acceptableParamTypes.has(o.constructor.identifier)})){if(e.constructor.identifier!==this.constructor.acceptableValTypes)throw new TypeError("Invalid type for value of TitleProperty")}else throw new TypeError("Some of the parameters passed are not valid parameters for TitleProperty")}nt(Ze,"identifier","TitleProperty");nt(Ze,"prop","TITLE");nt(Ze,"cardinality","*");nt(Ze,"acceptableParamTypes",new Set(["ValueParameter","LanguageParameter","PIDParameter","PrefParameter","IndexParameter","AltidParameter","TypeParameter","AnyParameter"]));nt(Ze,"acceptableValTypes","TextType");Object.freeze(Ze);var $r=new WeakMap,Jr=new WeakMap,ha=new WeakSet,Qe=function(t){ne(r,t);var e=oe(r);function r(n,o){var i;return Rt(this,r),i=e.call(this),$t(X(i),ha),_t(X(i),$r,{writable:!0,value:void 0}),_t(X(i),Jr,{writable:!0,value:void 0}),Ut(X(i),ha,sp).call(X(i),n,o),kt(X(i),$r,n),kt(X(i),Jr,o),i.checkAbstractPropertiesAndMethods(),Object.freeze(X(i)),i}return Dt(r,[{key:"params",get:function(){return Z(this,$r).reduce(function(o,i){return o.push(i.repr()),o},[]).join(";")}},{key:"paramsXML",get:function(){return Z(this,$r).reduce(function(o,i){return o+i.reprXML()},"")}},{key:"paramsJSON",get:function(){return Z(this,$r).reduce(function(o,i){return qt(qt({},i.reprJSON()),o)},{})}},{key:"value",get:function(){return Z(this,Jr).repr()}},{key:"valueXML",get:function(){return Z(this,Jr).reprXML()}},{key:"valueJSON",get:function(){return Z(this,Jr).reprJSON()}}]),r}(Ke);function sp(t,e){var r=this;if(typeof t>"u"||typeof e>"u")throw new Xt("Parameters and value for OrgProperty must be supplied");if(!Array.isArray(t))throw new at("Parameters for OrgProperty must be passed in an array");var n=new Set;if(t.every(function(o){if(o.constructor.identifier!=="AnyParameter"){if(n.has(o.constructor.identifier))throw new at("Parameters must not have more than one instance supplied");n.add(o.constructor.identifier)}else{if(n.has(o.param))throw new at("Parameters must not have more than one instance supplied");n.add(o.param)}return o.constructor.identifier==="TypeParameter"?!/^(?:Related|Tel)Property$/i.test(o.targetProp):o.constructor.identifier==="ValueParameter"?o.value==="text":r.constructor.acceptableParamTypes.has(o.constructor.identifier)})){if(e.constructor.identifier!==this.constructor.acceptableValTypes||!/^OrgProperty$/i.test(e.targetProp))throw new TypeError("Invalid type for value of OrgProperty")}else throw new TypeError("Some of the parameters passed are not valid parameters for OrgProperty")}nt(Qe,"identifier","OrgProperty");nt(Qe,"prop","ORG");nt(Qe,"cardinality","*");nt(Qe,"acceptableParamTypes",new Set(["ValueParameter","SortAsParameter","LanguageParameter","PIDParameter","PrefParameter","IndexParameter","AltidParameter","TypeParameter","AnyParameter"]));nt(Qe,"acceptableValTypes","SpecialValueType");Object.freeze(Qe);var qr=new WeakMap,Xr=new WeakMap,da=new WeakSet,tr=function(t){ne(r,t);var e=oe(r);function r(n,o){var i;return Rt(this,r),i=e.call(this),$t(X(i),da),_t(X(i),qr,{writable:!0,value:void 0}),_t(X(i),Xr,{writable:!0,value:void 0}),Ut(X(i),da,ap).call(X(i),n,o),kt(X(i),qr,n),kt(X(i),Xr,o),i.checkAbstractPropertiesAndMethods(),Object.freeze(X(i)),i}return Dt(r,[{key:"params",get:function(){return Z(this,qr).reduce(function(o,i){return o.push(i.repr()),o},[]).join(";")}},{key:"paramsXML",get:function(){return Z(this,qr).reduce(function(o,i){return o+i.reprXML()},"")}},{key:"paramsJSON",get:function(){return Z(this,qr).reduce(function(o,i){return qt(qt({},i.reprJSON()),o)},{})}},{key:"value",get:function(){return Z(this,Xr).repr()}},{key:"valueXML",get:function(){return Z(this,Xr).reprXML()}},{key:"valueJSON",get:function(){return Z(this,Xr).reprJSON()}}]),r}(Ke);function ap(t,e){var r=this;if(typeof t>"u"||typeof e>"u")throw new Xt("Parameters and value for URLProperty must be supplied");if(!Array.isArray(t))throw new at("Parameters for URLProperty must be passed in an array");var n=new Set;if(t.every(function(o){if(o.constructor.identifier!=="AnyParameter"){if(n.has(o.constructor.identifier))throw new at("Parameters must not have more than one instance supplied");n.add(o.constructor.identifier)}else{if(n.has(o.param))throw new at("Parameters must not have more than one instance supplied");n.add(o.param)}return o.constructor.identifier==="TypeParameter"?!/^(?:Related|Tel)Property$/i.test(o.targetProp):o.constructor.identifier==="ValueParameter"?o.value==="uri":r.constructor.acceptableParamTypes.has(o.constructor.identifier)})){if(e.constructor.identifier!==this.constructor.acceptableValTypes)throw new TypeError("Invalid type for value of URLProperty")}else throw new TypeError("Some of the parameters passed are not valid parameters for URLProperty")}nt(tr,"identifier","URLProperty");nt(tr,"prop","URL");nt(tr,"cardinality","*");nt(tr,"acceptableParamTypes",new Set(["ValueParameter","PIDParameter","PrefParameter","IndexParameter","TypeParameter","MediatypeParameter","AltidParameter","AnyParameter"]));nt(tr,"acceptableValTypes","URIType");Object.freeze(tr);var Je=(t=>(t[t.Border=-1]="Border",t[t.Data=0]="Data",t[t.Function=1]="Function",t[t.Position=2]="Position",t[t.Timing=3]="Timing",t[t.Alignment=4]="Alignment",t))(Je||{}),lp=Object.defineProperty,cp=(t,e,r)=>e in t?lp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,An=(t,e,r)=>(cp(t,typeof e!="symbol"?e+"":e,r),r);const up=[0,1],Hl=[1,0],Vl=[2,3],Kl=[3,2],fp={L:up,M:Hl,Q:Vl,H:Kl},hp=/^[0-9]*$/,dp=/^[A-Z0-9 $%*+.\/:-]*$/,ko="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Ji=1,qi=40,pa=3,pp=3,Tn=40,gp=10,Yl=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Gl=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class yp{constructor(e,r,n,o){if(this.version=e,this.ecc=r,An(this,"size"),An(this,"mask"),An(this,"modules",[]),An(this,"types",[]),eqi)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;const i=Array.from({length:this.size},()=>!1);for(let l=0;l0));this.drawFunctionPatterns();const s=this.addEccAndInterleave(n);if(this.drawCodewords(s),o===-1){let l=1e9;for(let a=0;a<8;a++){this.applyMask(a),this.drawFormatBits(a);const u=this.getPenaltyScore();u=0&&e=0&&r>>9)*1335;const o=(r<<10|n)^21522;for(let i=0;i<=5;i++)this.setFunctionModule(8,i,fe(o,i));this.setFunctionModule(8,7,fe(o,6)),this.setFunctionModule(8,8,fe(o,7)),this.setFunctionModule(7,8,fe(o,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,fe(o,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,fe(o,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,fe(o,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^(e>>>11)*7973;const r=this.version<<12|e;for(let n=0;n<18;n++){const o=fe(r,n),i=this.size-11+n%3,s=Math.floor(n/3);this.setFunctionModule(i,s,o),this.setFunctionModule(s,i,o)}}drawFinderPattern(e,r){for(let n=-4;n<=4;n++)for(let o=-4;o<=4;o++){const i=Math.max(Math.abs(o),Math.abs(n)),s=e+o,l=r+n;s>=0&&s=0&&l{(v!==a-i||N>=l)&&f.push(C[v])});return f}drawCodewords(e){if(e.length!==Math.floor(ei(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let n=this.size-1;n>=1;n-=2){n===6&&(n=5);for(let o=0;o>>3],7-(r&7)),r++)}}}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let r=0;r5&&e++):(this.finderPenaltyAddHistory(l,a),s||(e+=this.finderPenaltyCountPatterns(a)*Tn),s=this.modules[i][u],l=1);e+=this.finderPenaltyTerminateAndCount(s,l,a)*Tn}for(let i=0;i5&&e++):(this.finderPenaltyAddHistory(l,a),s||(e+=this.finderPenaltyCountPatterns(a)*Tn),s=this.modules[u][i],l=1);e+=this.finderPenaltyTerminateAndCount(s,l,a)*Tn}for(let i=0;is+(l?1:0),r);const n=this.size*this.size,o=Math.ceil(Math.abs(r*20-n*10)/n)-1;return e+=o*gp,e}getAlignmentPatternPositions(){if(this.version===1)return[];{const e=Math.floor(this.version/7)+2,r=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let o=this.size-7;n.length0&&e[2]===r&&e[3]===r*3&&e[4]===r&&e[5]===r;return(n&&e[0]>=r*4&&e[6]>=r?1:0)+(n&&e[6]>=r*4&&e[0]>=r?1:0)}finderPenaltyTerminateAndCount(e,r,n){return e&&(this.finderPenaltyAddHistory(r,n),r=0),r+=this.size,this.finderPenaltyAddHistory(r,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,r){r[0]===0&&(e+=this.size),r.pop(),r.unshift(e)}}function ge(t,e,r){if(e<0||e>31||t>>>e)throw new RangeError("Value out of range");for(let n=e-1;n>=0;n--)r.push(t>>>n&1)}function fe(t,e){return(t>>>e&1)!==0}class Xi{constructor(e,r,n){if(this.mode=e,this.numChars=r,this.bitData=n,r<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}getData(){return this.bitData.slice()}}const vp=[1,10,12,14],mp=[2,9,11,13],wp=[4,8,16,16];function Zl(t,e){return t[Math.floor((e+7)/17)+1]}function Ql(t){const e=[];for(const r of t)ge(r,8,e);return new Xi(wp,t.length,e)}function _p(t){if(!tc(t))throw new RangeError("String contains non-numeric characters");const e=[];for(let r=0;r=1<qi)throw new RangeError("Version number out of range");let e=(16*t+128)*t+64;if(t>=2){const r=Math.floor(t/7)+2;e-=(25*r-10)*r-55,t>=7&&(e-=36)}return e}function Bn(t,e){return Math.floor(ei(t)/8)-Yl[e[0]][t]*Gl[e[0]][t]}function Sp(t){if(t<1||t>255)throw new RangeError("Degree out of range");const e=[];for(let n=0;n0);for(const n of t){const o=n^r.shift();r.push(0),e.forEach((i,s)=>r[s]^=ri(i,o))}return r}function ri(t,e){if(t>>>8||e>>>8)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(e>>>n&1)*t;return r}function Tp(t,e,r=1,n=40,o=-1,i=!0){if(!(Ji<=r&&r<=n&&n<=qi)||o<-1||o>7)throw new RangeError("Invalid value");let s,l;for(s=r;;s++){const f=Bn(s,e)*8,v=Op(t,s);if(v<=f){l=v;break}if(s>=n)throw new RangeError("Data too long")}for(const f of[Hl,Vl,Kl])i&&l<=Bn(s,f)*8&&(e=f);const a=[];for(const f of t){ge(f.mode[0],4,a),ge(f.numChars,Zl(f.mode,s),a);for(const v of f.getData())a.push(v)}const u=Bn(s,e)*8;ge(0,Math.min(4,u-a.length),a),ge(0,(8-a.length%8)%8,a);for(let f=236;a.length0);return a.forEach((f,v)=>d[v>>>3]|=f<<7-(v&7)),new yp(s,e,d,o)}function xp(t,e){var f;const{ecc:r="L",boostEcc:n=!1,minVersion:o=1,maxVersion:i=40,maskPattern:s=-1,border:l=1}=e||{},a=typeof t=="string"?Pp(t):Array.isArray(t)?[Ql(t)]:void 0;if(!a)throw new Error(`uqr only supports encoding string and binary data, but got: ${typeof t}`);const u=Tp(a,fp[r],o,i,s,n),d=Ep({version:u.version,maskPattern:u.mask,size:u.size,data:u.modules,types:u.types},l);return e!=null&&e.invert&&(d.data=d.data.map(v=>v.map(C=>!C))),(f=e==null?void 0:e.onEncoded)==null||f.call(e,d),d}function Ep(t,e=1){if(!e)return t;const{size:r}=t,n=r+e*2;t.size=n,t.data.forEach(i=>{for(let s=0;s!1)),t.data.push(Array.from({length:n},s=>!1));const o=Je.Border;t.types.forEach(i=>{for(let s=0;so)),t.types.push(Array.from({length:n},s=>o));return t}function Ip(t,e={}){const r=xp(t,e),{pixelSize:n=10,whiteColor:o="white",blackColor:i="black"}=e,s=r.size*n,l=r.size*n;let a=``;const u=[];for(let d=0;d`,a+=``,a+="",a}const Cp=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},kp=t=>(iu("data-v-347e8234"),t=t(),su(),t),Np=kp(()=>ae("h1",null,"Vcard generator",-1)),Lp={class:"form"},Rp={__name:"App",setup(t){const e=Re(""),r=Re(""),n=Re(""),o=Re(""),i=Re(""),s=Re(""),l=Re("");function a(){const u=Ip(l.value),d=new Blob([u],{type:"image/svg+xml;charset=utf-8"}),f=URL.createObjectURL(d),v=document.createElement("a");v.href=f,v.download="vcard-qr",document.body.appendChild(v),v.click(),document.body.removeChild(v)}return pu(()=>{const u=[];if(e.value!==""){const d=new Le([],new pe(e.value));u.push(d)}if(r.value!==""){const d=new Ye([],new pe(`${r.value}`));u.push(d)}if(n.value!==""){const d=new Ge([],new pe(n.value));u.push(d)}if(o.value!==""){const d=o.value.startsWith("http")?o.value:`https://${o.value}`,f=new tr([],new go(d));u.push(f)}if(i.value!==""){const d=new Qe([],new yo([new pe(i.value)],"orgproperty"));u.push(d)}if(s.value!==""){const d=new Ze([],new pe(s.value));u.push(d)}if(u.length!==0){if(e.value===""){const f=new Le([],new pe(" "));u.push(f)}const d=new $i(u);l.value=d.repr()}else l.value=""}),(u,d)=>(kn(),ps(le,null,[Np,ae("div",Lp,[nr(ae("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>e.value=f),placeholder:"Fullname"},null,512),[[ir,e.value]]),nr(ae("input",{"onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f),placeholder:"Phone: ex: +34 600 600 600"},null,512),[[ir,r.value]]),nr(ae("input",{"onUpdate:modelValue":d[2]||(d[2]=f=>n.value=f),type:"email",placeholder:"E-mail"},null,512),[[ir,n.value]]),nr(ae("input",{"onUpdate:modelValue":d[3]||(d[3]=f=>o.value=f),placeholder:"Websit: ex: https://google.es"},null,512),[[ir,o.value]]),nr(ae("input",{"onUpdate:modelValue":d[4]||(d[4]=f=>i.value=f),placeholder:"company Name"},null,512),[[ir,i.value]]),nr(ae("input",{"onUpdate:modelValue":d[5]||(d[5]=f=>s.value=f),placeholder:"Job Title"},null,512),[[ir,s.value]])]),(kn(),Qa(Na($d),{value:l.value,width:200,height:200,margin:0,key:l.value,"qr-options":{errorCorrectionLevel:"H"},dotsOptions:{type:"square",color:"#000000"},cornersSquareOptions:{type:"square",color:"#000000"},cornersDotOptions:{type:void 0,color:"#000000"},fileExt:"png",download:!0,downloadButton:"download",downloadOptions:{name:"vcard-qr",extension:"png"}},null,8,["value"])),l.value!==""?(kn(),ps("button",{key:0,class:"download",onClick:a},"Download SVG")):Zu("",!0)],64))}},Dp=Cp(Rp,[["__scopeId","data-v-347e8234"]]);kf(Dp).mount("#app"); diff --git a/docs/assets/index-aebfe953.css b/docs/assets/index-aebfe953.css new file mode 100644 index 0000000..3e054df --- /dev/null +++ b/docs/assets/index-aebfe953.css @@ -0,0 +1 @@ +:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:auto;display:flex;justify-content:center;max-width:600px;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1;margin:15px}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{max-width:1280px;margin:0 auto;padding:0;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}input{padding:5px;font-size:16px;border-radius:4px;border:2px solid black}.form[data-v-347e8234]{display:flex;flex-direction:column;gap:18px;margin-bottom:20px}.download[data-v-347e8234]{margin-top:20px} diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..14625ff --- /dev/null +++ b/docs/index.html @@ -0,0 +1,15 @@ + + + + + + + Vite + Vue + + + + +
+ + + diff --git a/docs/vite.svg b/docs/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/docs/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 05c1740..7026af7 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,4 +4,7 @@ import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], + build: { + outDir: 'docs' + } })