diff --git a/demo/assets/index-1f9fdec1.css b/demo/assets/index-36f5fc1a.css similarity index 99% rename from demo/assets/index-1f9fdec1.css rename to demo/assets/index-36f5fc1a.css index 34eff1d..5667f20 100644 --- a/demo/assets/index-1f9fdec1.css +++ b/demo/assets/index-36f5fc1a.css @@ -1,4 +1,4 @@ -@charset "UTF-8";.vue-modal[data-v-1421616b]{position:fixed;top:0;left:0;width:100%;height:100%;overflow-y:auto;opacity:0;visibility:hidden;display:flex;justify-content:center;flex-wrap:wrap}.vue-modal.vue-modal--slideDown[data-v-1421616b]{transform:translateY(-40px)}.vue-modal.vue-modal--slideUp[data-v-1421616b]{transform:translateY(40px)}.vue-modal.vue-modal--slideLeft[data-v-1421616b]{transform:translate(-40px)}.vue-modal.vue-modal--slideRight[data-v-1421616b]{transform:translate(40px)}.vue-modal.vue-modal--center[data-v-1421616b]{align-items:center}.vue-modal.vue-modal--top[data-v-1421616b]{align-items:flex-start}.vue-modal.vue-modal--active[data-v-1421616b]:not(.vue-modal--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-48abfbb2]{width:0}.vue-modals[data-v-48abfbb2] *{box-sizing:border-box}.vue-modals-overlay[data-v-48abfbb2]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-48abfbb2]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}.notifications[data-v-7aa35284]{position:fixed;right:unset!important;left:100vw;transform:translate(-100%);margin-left:-15px}/*! +@charset "UTF-8";.vue-modal[data-v-0195a498]{position:fixed;top:0;left:0;width:100%;height:100%;overflow-y:auto;opacity:0;visibility:hidden;display:flex;justify-content:center;flex-wrap:wrap}.vue-modal.vue-modal--slideDown[data-v-0195a498]{transform:translateY(-40px)}.vue-modal.vue-modal--slideUp[data-v-0195a498]{transform:translateY(40px)}.vue-modal.vue-modal--slideLeft[data-v-0195a498]{transform:translate(-40px)}.vue-modal.vue-modal--slideRight[data-v-0195a498]{transform:translate(40px)}.vue-modal.vue-modal--center[data-v-0195a498]{align-items:center}.vue-modal.vue-modal--top[data-v-0195a498]{align-items:flex-start}.vue-modal.vue-modal--active[data-v-0195a498]:not(.vue-modal--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-90fab32e]{width:0}.vue-modals[data-v-90fab32e] *{box-sizing:border-box}.vue-modals-overlay[data-v-90fab32e]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-90fab32e]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}.notifications[data-v-64d9dd35]{position:fixed;right:unset!important;left:100vw;transform:translate(-100%);margin-left:-15px}/*! * Bootstrap v5.3.0 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) diff --git a/demo/assets/index-d2029235.js b/demo/assets/index-ad437199.js similarity index 54% rename from demo/assets/index-d2029235.js rename to demo/assets/index-ad437199.js index 4fe4da9..f63e4a3 100644 --- a/demo/assets/index-d2029235.js +++ b/demo/assets/index-ad437199.js @@ -1,2 +1,2 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function ns(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const K={},_t=[],Me=()=>{},Fr=()=>!1,Nr=/^on[^a-z]/,hn=e=>Nr.test(e),ss=e=>e.startsWith("onUpdate:"),te=Object.assign,os=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lr=Object.prototype.hasOwnProperty,L=(e,t)=>Lr.call(e,t),M=Array.isArray,xt=e=>mn(e)==="[object Map]",bo=e=>mn(e)==="[object Set]",P=e=>typeof e=="function",Z=e=>typeof e=="string",rs=e=>typeof e=="symbol",W=e=>e!==null&&typeof e=="object",vo=e=>W(e)&&P(e.then)&&P(e.catch),_o=Object.prototype.toString,mn=e=>_o.call(e),Rr=e=>mn(e).slice(8,-1),xo=e=>mn(e)==="[object Object]",is=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kr=/-(\w)/g,ke=gn(e=>e.replace(kr,(t,n)=>n?n.toUpperCase():"")),Dr=/\B([A-Z])/g,At=gn(e=>e.replace(Dr,"-$1").toLowerCase()),yn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pn=gn(e=>e?`on${yn(e)}`:""),Ht=(e,t)=>!Object.is(e,t),Fn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Br=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Hr=e=>{const t=Z(e)?Number(e):NaN;return isNaN(t)?e:t};let Ns;const Un=()=>Ns||(Ns=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nt(e){if(M(e)){const t={};for(let n=0;n{if(n){const s=n.split(Ur);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ke(e){let t="";if(Z(e))t=e;else if(M(e))for(let n=0;nZ(e)?e:e==null?"":M(e)||W(e)&&(e.toString===_o||!P(e.toString))?JSON.stringify(e,Eo,2):String(e),Eo=(e,t)=>t&&t.__v_isRef?Eo(e,t.value):xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:bo(t)?{[`Set(${t.size})`]:[...t.values()]}:W(t)&&!M(t)&&!xo(t)?String(t):t;let we;class Jr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=we;try{return we=this,t()}finally{we=n}}}on(){we=this}off(){we=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},To=e=>(e.w&st)>0,wo=e=>(e.n&st)>0,Zr=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(d==="length"||d>=a)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":M(e)?is(n)&&l.push(i.get("length")):(l.push(i.get(ft)),xt(e)&&l.push(i.get(Wn)));break;case"delete":M(e)||(l.push(i.get(ft)),xt(e)&&l.push(i.get(Wn)));break;case"set":xt(e)&&l.push(i.get(ft));break}if(l.length===1)l[0]&&Vn(l[0]);else{const a=[];for(const u of l)u&&a.push(...u);Vn(ls(a))}}function Vn(e,t){const n=M(e)?e:[...e];for(const s of n)s.computed&&Rs(s);for(const s of n)s.computed||Rs(s)}function Rs(e,t){(e!==Se||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Gr=ns("__proto__,__v_isRef,__isVue"),Mo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rs)),ei=as(),ti=as(!1,!0),ni=as(!0),ks=si();function si(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=D(this);for(let r=0,i=this.length;r{e[t]=function(...n){Mt();const s=D(this)[t].apply(this,n);return Ot(),s}}),e}function oi(e){const t=D(this);return me(t,"has",e),t.hasOwnProperty(e)}function as(e=!1,t=!1){return function(s,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?_i:Fo:t?Po:$o).get(s))return s;const i=M(s);if(!e){if(i&&L(ks,o))return Reflect.get(ks,o,r);if(o==="hasOwnProperty")return oi}const l=Reflect.get(s,o,r);return(rs(o)?Mo.has(o):Gr(o))||(e||me(s,"get",o),t)?l:ue(l)?i&&is(o)?l:l.value:W(l)?e?No(l):Vt(l):l}}const ri=Oo(),ii=Oo(!0);function Oo(e=!1){return function(n,s,o,r){let i=n[s];if(Tt(i)&&ue(i)&&!ue(o))return!1;if(!e&&(!an(o)&&!Tt(o)&&(i=D(i),o=D(o)),!M(n)&&ue(i)&&!ue(o)))return i.value=o,!0;const l=M(n)&&is(s)?Number(s)e,vn=e=>Reflect.getPrototypeOf(e);function Xt(e,t,n=!1,s=!1){e=e.__v_raw;const o=D(e),r=D(t);n||(t!==r&&me(o,"get",t),me(o,"get",r));const{has:i}=vn(o),l=s?us:n?hs:jt;if(i.call(o,t))return l(e.get(t));if(i.call(o,r))return l(e.get(r));e!==o&&e.get(t)}function Zt(e,t=!1){const n=this.__v_raw,s=D(n),o=D(e);return t||(e!==o&&me(s,"has",e),me(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Qt(e,t=!1){return e=e.__v_raw,!t&&me(D(e),"iterate",ft),Reflect.get(e,"size",e)}function Ds(e){e=D(e);const t=D(this);return vn(t).has.call(t,e)||(t.add(e),We(t,"add",e,e)),this}function Bs(e,t){t=D(t);const n=D(this),{has:s,get:o}=vn(n);let r=s.call(n,e);r||(e=D(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Ht(t,i)&&We(n,"set",e,t):We(n,"add",e,t),this}function Hs(e){const t=D(this),{has:n,get:s}=vn(t);let o=n.call(t,e);o||(e=D(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&We(t,"delete",e,void 0),r}function js(){const e=D(this),t=e.size!==0,n=e.clear();return t&&We(e,"clear",void 0,void 0),n}function Gt(e,t){return function(s,o){const r=this,i=r.__v_raw,l=D(i),a=t?us:e?hs:jt;return!e&&me(l,"iterate",ft),i.forEach((u,d)=>s.call(o,a(u),a(d),r))}}function en(e,t,n){return function(...s){const o=this.__v_raw,r=D(o),i=xt(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=o[e](...s),d=n?us:t?hs:jt;return!t&&me(r,"iterate",a?Wn:ft),{next(){const{value:g,done:v}=u.next();return v?{value:g,done:v}:{value:l?[d(g[0]),d(g[1])]:d(g),done:v}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){return e==="delete"?!1:this}}function di(){const e={get(r){return Xt(this,r)},get size(){return Qt(this)},has:Zt,add:Ds,set:Bs,delete:Hs,clear:js,forEach:Gt(!1,!1)},t={get(r){return Xt(this,r,!1,!0)},get size(){return Qt(this)},has:Zt,add:Ds,set:Bs,delete:Hs,clear:js,forEach:Gt(!1,!0)},n={get(r){return Xt(this,r,!0)},get size(){return Qt(this,!0)},has(r){return Zt.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Gt(!0,!1)},s={get(r){return Xt(this,r,!0,!0)},get size(){return Qt(this,!0)},has(r){return Zt.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Gt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=en(r,!1,!1),n[r]=en(r,!0,!1),t[r]=en(r,!1,!0),s[r]=en(r,!0,!0)}),[e,n,t,s]}const[pi,hi,mi,gi]=di();function fs(e,t){const n=t?e?gi:mi:e?hi:pi;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(L(n,o)&&o in s?n:s,o,r)}const yi={get:fs(!1,!1)},bi={get:fs(!1,!0)},vi={get:fs(!0,!1)},$o=new WeakMap,Po=new WeakMap,Fo=new WeakMap,_i=new WeakMap;function xi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ci(e){return e.__v_skip||!Object.isExtensible(e)?0:xi(Rr(e))}function Vt(e){return Tt(e)?e:ds(e,!1,Io,yi,$o)}function Ei(e){return ds(e,!1,fi,bi,Po)}function No(e){return ds(e,!0,ui,vi,Fo)}function ds(e,t,n,s,o){if(!W(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Ci(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return o.set(e,l),l}function Ct(e){return Tt(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function an(e){return!!(e&&e.__v_isShallow)}function Lo(e){return Ct(e)||Tt(e)}function D(e){const t=e&&e.__v_raw;return t?D(t):e}function ps(e){return cn(e,"__v_skip",!0),e}const jt=e=>W(e)?Vt(e):e,hs=e=>W(e)?No(e):e;function Ro(e){Ge&&Se&&(e=D(e),Ao(e.dep||(e.dep=ls())))}function ko(e,t){e=D(e);const n=e.dep;n&&Vn(n)}function ue(e){return!!(e&&e.__v_isRef===!0)}function ms(e){return Ti(e,!1)}function Ti(e,t){return ue(e)?e:new wi(e,t)}class wi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:D(t),this._value=n?t:jt(t)}get value(){return Ro(this),this._value}set value(t){const n=this.__v_isShallow||an(t)||Tt(t);t=n?t:D(t),Ht(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:jt(t),ko(this))}}function ve(e){return ue(e)?e.value:e}const Si={get:(e,t,n)=>ve(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return ue(o)&&!ue(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Do(e){return Ct(e)?e:new Proxy(e,Si)}class Ai{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new cs(t,()=>{this._dirty||(this._dirty=!0,ko(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=D(this);return Ro(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Mi(e,t,n=!1){let s,o;const r=P(e);return r?(s=e,o=Me):(s=e.get,o=e.set),new Ai(s,o,r||!o,n)}function et(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){_n(r,t,n)}return o}function Ee(e,t,n,s){if(P(e)){const r=et(e,t,n,s);return r&&vo(r)&&r.catch(i=>{_n(i,t,n)}),r}const o=[];for(let r=0;r>>1;zt(ae[s])Re&&ae.splice(t,1)}function Fi(e){M(e)?Et.push(...e):(!Ue||!Ue.includes(e,e.allowRecurse?at+1:at))&&Et.push(e),Ho()}function Us(e,t=Ut?Re+1:0){for(;tzt(n)-zt(s)),at=0;ate.id==null?1/0:e.id,Ni=(e,t)=>{const n=zt(e)-zt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Uo(e){qn=!1,Ut=!0,ae.sort(Ni);const t=Me;try{for(Re=0;ReZ(T)?T.trim():T)),g&&(o=n.map(Br))}let l,a=s[l=Pn(t)]||s[l=Pn(ke(t))];!a&&r&&(a=s[l=Pn(At(t))]),a&&Ee(a,e,6,o);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ee(u,e,6,o)}}function zo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!P(e)){const a=u=>{const d=zo(u,t,!0);d&&(l=!0,te(i,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(W(e)&&s.set(e,null),null):(M(r)?r.forEach(a=>i[a]=null):te(i,r),W(e)&&s.set(e,i),i)}function xn(e,t){return!e||!hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),L(e,t[0].toLowerCase()+t.slice(1))||L(e,At(t))||L(e,t))}let fe=null,Cn=null;function un(e){const t=fe;return fe=e,Cn=e&&e.type.__scopeId||null,t}function Ri(e){Cn=e}function ki(){Cn=null}function Oe(e,t=fe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Gs(-1);const r=un(t);let i;try{i=e(...o)}finally{un(r),s._d&&Gs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Nn(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:l,attrs:a,emit:u,render:d,renderCache:g,data:v,setupState:T,ctx:R,inheritAttrs:$}=e;let J,Q;const G=un(e);try{if(n.shapeFlag&4){const O=o||s;J=Le(d.call(O,O,g,r,T,v,R)),Q=a}else{const O=t;J=Le(O.length>1?O(r,{attrs:a,slots:l,emit:u}):O(r,null)),Q=t.props?a:Di(a)}}catch(O){Dt.length=0,_n(O,e,1),J=he(Ve)}let ee=J;if(Q&&$!==!1){const O=Object.keys(Q),{shapeFlag:se}=ee;O.length&&se&7&&(i&&O.some(ss)&&(Q=Bi(Q,i)),ee=pt(ee,Q))}return n.dirs&&(ee=pt(ee),ee.dirs=ee.dirs?ee.dirs.concat(n.dirs):n.dirs),n.transition&&(ee.transition=n.transition),J=ee,un(G),J}const Di=e=>{let t;for(const n in e)(n==="class"||n==="style"||hn(n))&&((t||(t={}))[n]=e[n]);return t},Bi=(e,t)=>{const n={};for(const s in e)(!ss(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Hi(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?zs(s,i,u):!!i;if(a&8){const d=t.dynamicProps;for(let g=0;ge.__isSuspense;function zi(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Fi(e)}const tn={};function Ln(e,t,n){return Ko(e,t,n)}function Ko(e,t,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=K){var l;const a=Xr()===((l=ie)==null?void 0:l.scope)?ie:null;let u,d=!1,g=!1;if(ue(e)?(u=()=>e.value,d=an(e)):Ct(e)?(u=()=>e,s=!0):M(e)?(g=!0,d=e.some(O=>Ct(O)||an(O)),u=()=>e.map(O=>{if(ue(O))return O.value;if(Ct(O))return vt(O);if(P(O))return et(O,a,2)})):P(e)?t?u=()=>et(e,a,2):u=()=>{if(!(a&&a.isUnmounted))return v&&v(),Ee(e,a,3,[T])}:u=Me,t&&s){const O=u;u=()=>vt(O())}let v,T=O=>{v=G.onStop=()=>{et(O,a,4)}},R;if(Wt)if(T=Me,t?n&&Ee(t,a,3,[u(),g?[]:void 0,T]):u(),o==="sync"){const O=kl();R=O.__watcherHandles||(O.__watcherHandles=[])}else return Me;let $=g?new Array(e.length).fill(tn):tn;const J=()=>{if(G.active)if(t){const O=G.run();(s||d||(g?O.some((se,Ie)=>Ht(se,$[Ie])):Ht(O,$)))&&(v&&v(),Ee(t,a,3,[O,$===tn?void 0:g&&$[0]===tn?[]:$,T]),$=O)}else G.run()};J.allowRecurse=!!t;let Q;o==="sync"?Q=J:o==="post"?Q=()=>pe(J,a&&a.suspense):(J.pre=!0,a&&(J.id=a.uid),Q=()=>ys(J));const G=new cs(u,Q);t?n?J():$=G.run():o==="post"?pe(G.run.bind(G),a&&a.suspense):G.run();const ee=()=>{G.stop(),a&&a.scope&&os(a.scope.effects,G)};return R&&R.push(ee),ee}function Ki(e,t,n){const s=this.proxy,o=Z(e)?e.includes(".")?Wo(s,e):()=>s[e]:e.bind(s,s);let r;P(t)?r=t:(r=t.handler,n=t);const i=ie;St(this);const l=Ko(o,r.bind(s),n);return i?St(i):dt(),l}function Wo(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o{vt(n,t)});else if(xo(e))for(const n in e)vt(e[n],t);return e}function it(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i{e.isMounted=!0}),wn(()=>{e.isUnmounting=!0}),e}const xe=[Function,Array],Vi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xe,onEnter:xe,onAfterEnter:xe,onEnterCancelled:xe,onBeforeLeave:xe,onLeave:xe,onAfterLeave:xe,onLeaveCancelled:xe,onBeforeAppear:xe,onAppear:xe,onAfterAppear:xe,onAppearCancelled:xe};function qi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Jn(e,t,n,s){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:g,onLeave:v,onAfterLeave:T,onLeaveCancelled:R,onBeforeAppear:$,onAppear:J,onAfterAppear:Q,onAppearCancelled:G}=t,ee=String(e.key),O=qi(n,e),se=(F,Y)=>{F&&Ee(F,s,9,Y)},Ie=(F,Y)=>{const U=Y[1];se(F,Y),M(F)?F.every(le=>le.length<=1)&&U():F.length<=1&&U()},$e={mode:r,persisted:i,beforeEnter(F){let Y=l;if(!n.isMounted)if(o)Y=$||l;else return;F._leaveCb&&F._leaveCb(!0);const U=O[ee];U&&bt(e,U)&&U.el._leaveCb&&U.el._leaveCb(),se(Y,[F])},enter(F){let Y=a,U=u,le=d;if(!n.isMounted)if(o)Y=J||a,U=Q||u,le=G||d;else return;let w=!1;const V=F._enterCb=ge=>{w||(w=!0,ge?se(le,[F]):se(U,[F]),$e.delayedLeave&&$e.delayedLeave(),F._enterCb=void 0)};Y?Ie(Y,[F,V]):V()},leave(F,Y){const U=String(e.key);if(F._enterCb&&F._enterCb(!0),n.isUnmounting)return Y();se(g,[F]);let le=!1;const w=F._leaveCb=V=>{le||(le=!0,Y(),V?se(R,[F]):se(T,[F]),F._leaveCb=void 0,O[U]===e&&delete O[U])};O[U]=e,v?Ie(v,[F,w]):w()},clone(F){return Jn(F,t,n,s)}};return $e}function Yn(e,t){e.shapeFlag&6&&e.component?Yn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vo(e,t=!1,n){let s=[],o=0;for(let r=0;r1)for(let r=0;rte({name:e.name},t,{setup:e}))():e}const Rt=e=>!!e.type.__asyncLoader,qo=e=>e.type.__isKeepAlive;function Ji(e,t){Jo(e,"a",t)}function Yi(e,t){Jo(e,"da",t)}function Jo(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(En(t,s,n),n){let o=n.parent;for(;o&&o.parent;)qo(o.parent.vnode)&&Xi(s,t,n,o),o=o.parent}}function Xi(e,t,n,s){const o=En(t,e,s,!0);Xo(()=>{os(s[t],o)},n)}function En(e,t,n=ie,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Mt(),St(n);const l=Ee(t,n,e,i);return dt(),Ot(),l});return s?o.unshift(r):o.push(r),r}}const qe=e=>(t,n=ie)=>(!Wt||e==="sp")&&En(e,(...s)=>t(...s),n),Zi=qe("bm"),Tn=qe("m"),Qi=qe("bu"),Yo=qe("u"),wn=qe("bum"),Xo=qe("um"),Gi=qe("sp"),el=qe("rtg"),tl=qe("rtc");function nl(e,t=ie){En("ec",e,t)}const bs="components";function Sn(e,t){return Go(bs,e,!0,t)||e}const Zo=Symbol.for("v-ndc");function Qo(e){return Z(e)?Go(bs,e,!1)||e:e||Zo}function Go(e,t,n=!0,s=!1){const o=fe||ie;if(o){const r=o.type;if(e===bs){const l=Nl(r,!1);if(l&&(l===t||l===ke(t)||l===yn(ke(t))))return r}const i=Ks(o[e]||r[e],t)||Ks(o.appContext[e],t);return!i&&s?r:i}}function Ks(e,t){return e&&(e[t]||e[ke(t)]||e[yn(ke(t))])}function er(e,t,n,s){let o;const r=n&&n[s];if(M(e)||Z(e)){o=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,r&&r[l]));else{const i=Object.keys(e);o=new Array(i.length);for(let l=0,a=i.length;lfr(t)?!(t.type===Ve||t.type===ce&&!tr(t.children)):!0)?e:null}const Xn=e=>e?mr(e)?Es(e)||e.proxy:Xn(e.parent):null,kt=te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xn(e.parent),$root:e=>Xn(e.root),$emit:e=>e.emit,$options:e=>vs(e),$forceUpdate:e=>e.f||(e.f=()=>ys(e.update)),$nextTick:e=>e.n||(e.n=Ii.bind(e.proxy)),$watch:e=>Ki.bind(e)}),Rn=(e,t)=>e!==K&&!e.__isScriptSetup&&L(e,t),sl={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const T=i[t];if(T!==void 0)switch(T){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Rn(s,t))return i[t]=1,s[t];if(o!==K&&L(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&L(u,t))return i[t]=3,r[t];if(n!==K&&L(n,t))return i[t]=4,n[t];Zn&&(i[t]=0)}}const d=kt[t];let g,v;if(d)return t==="$attrs"&&me(e,"get",t),d(e);if((g=l.__cssModules)&&(g=g[t]))return g;if(n!==K&&L(n,t))return i[t]=4,n[t];if(v=a.config.globalProperties,L(v,t))return v[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Rn(o,t)?(o[t]=n,!0):s!==K&&L(s,t)?(s[t]=n,!0):L(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let l;return!!n[i]||e!==K&&L(e,i)||Rn(t,i)||(l=r[0])&&L(l,i)||L(s,i)||L(kt,i)||L(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:L(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ol(){return rl().slots}function rl(){const e=hr();return e.setupContext||(e.setupContext=yr(e))}function Ws(e){return M(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zn=!0;function il(e){const t=vs(e),n=e.proxy,s=e.ctx;Zn=!1,t.beforeCreate&&Vs(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:u,created:d,beforeMount:g,mounted:v,beforeUpdate:T,updated:R,activated:$,deactivated:J,beforeDestroy:Q,beforeUnmount:G,destroyed:ee,unmounted:O,render:se,renderTracked:Ie,renderTriggered:$e,errorCaptured:F,serverPrefetch:Y,expose:U,inheritAttrs:le,components:w,directives:V,filters:ge}=t;if(u&&ll(u,s,null),i)for(const X in i){const H=i[X];P(H)&&(s[X]=H.bind(n))}if(o){const X=o.call(n,n);W(X)&&(e.data=Vt(X))}if(Zn=!0,r)for(const X in r){const H=r[X],ot=P(H)?H.bind(n,n):P(H.get)?H.get.bind(n,n):Me,Jt=!P(H)&&P(H.set)?H.set.bind(n):Me,rt=Qe({get:ot,set:Jt});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Pe=>rt.value=Pe})}if(l)for(const X in l)nr(l[X],s,n,X);if(a){const X=P(a)?a.call(n):a;Reflect.ownKeys(X).forEach(H=>{pl(H,X[H])})}d&&Vs(d,e,"c");function oe(X,H){M(H)?H.forEach(ot=>X(ot.bind(n))):H&&X(H.bind(n))}if(oe(Zi,g),oe(Tn,v),oe(Qi,T),oe(Yo,R),oe(Ji,$),oe(Yi,J),oe(nl,F),oe(tl,Ie),oe(el,$e),oe(wn,G),oe(Xo,O),oe(Gi,Y),M(U))if(U.length){const X=e.exposed||(e.exposed={});U.forEach(H=>{Object.defineProperty(X,H,{get:()=>n[H],set:ot=>n[H]=ot})})}else e.exposed||(e.exposed={});se&&e.render===Me&&(e.render=se),le!=null&&(e.inheritAttrs=le),w&&(e.components=w),V&&(e.directives=V)}function ll(e,t,n=Me){M(e)&&(e=Qn(e));for(const s in e){const o=e[s];let r;W(o)?"default"in o?r=on(o.from||s,o.default,!0):r=on(o.from||s):r=on(o),ue(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Vs(e,t,n){Ee(M(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function nr(e,t,n,s){const o=s.includes(".")?Wo(n,s):()=>n[s];if(Z(e)){const r=t[e];P(r)&&Ln(o,r)}else if(P(e))Ln(o,e.bind(n));else if(W(e))if(M(e))e.forEach(r=>nr(r,t,n,s));else{const r=P(e.handler)?e.handler.bind(n):t[e.handler];P(r)&&Ln(o,r,e)}}function vs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(u=>fn(a,u,i,!0)),fn(a,t,i)),W(t)&&r.set(t,a),a}function fn(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&fn(e,r,n,!0),o&&o.forEach(i=>fn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=cl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const cl={data:qs,props:Js,emits:Js,methods:Nt,computed:Nt,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:Nt,directives:Nt,watch:ul,provide:qs,inject:al};function qs(e,t){return t?e?function(){return te(P(e)?e.call(this,this):e,P(t)?t.call(this,this):t)}:t:e}function al(e,t){return Nt(Qn(e),Qn(t))}function Qn(e){if(M(e)){const t={};for(let n=0;n1)return n&&P(t)?t.call(s&&s.proxy):t}}function hl(e,t,n,s=!1){const o={},r={};cn(r,Mn,1),e.propsDefaults=Object.create(null),or(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Ei(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ml(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=D(o),[a]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let g=0;g{a=!0;const[v,T]=rr(g,t,!0);te(i,v),T&&l.push(...T)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!a)return W(e)&&s.set(e,_t),_t;if(M(r))for(let d=0;d-1,T[1]=$<0||R<$,(R>-1||L(T,"default"))&&l.push(g)}}}const u=[i,l];return W(e)&&s.set(e,u),u}function Ys(e){return e[0]!=="$"}function Xs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Zs(e,t){return Xs(e)===Xs(t)}function Qs(e,t){return M(t)?t.findIndex(n=>Zs(n,e)):P(t)&&Zs(t,e)?0:-1}const ir=e=>e[0]==="_"||e==="$stable",_s=e=>M(e)?e.map(Le):[Le(e)],gl=(e,t,n)=>{if(t._n)return t;const s=Oe((...o)=>_s(t(...o)),n);return s._c=!1,s},lr=(e,t,n)=>{const s=e._ctx;for(const o in e){if(ir(o))continue;const r=e[o];if(P(r))t[o]=gl(o,r,s);else if(r!=null){const i=_s(r);t[o]=()=>i}}},cr=(e,t)=>{const n=_s(t);e.slots.default=()=>n},yl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=D(t),cn(t,"_",n)):lr(t,e.slots={})}else e.slots={},t&&cr(e,t);cn(e.slots,Mn,1)},bl=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=K;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(te(o,t),!n&&l===1&&delete o._):(r=!t.$stable,lr(t,o)),i=t}else t&&(cr(e,t),i={default:1});if(r)for(const l in o)!ir(l)&&!(l in i)&&delete o[l]};function es(e,t,n,s,o=!1){if(M(e)){e.forEach((v,T)=>es(v,t&&(M(t)?t[T]:t),n,s,o));return}if(Rt(s)&&!o)return;const r=s.shapeFlag&4?Es(s.component)||s.component.proxy:s.el,i=o?null:r,{i:l,r:a}=e,u=t&&t.r,d=l.refs===K?l.refs={}:l.refs,g=l.setupState;if(u!=null&&u!==a&&(Z(u)?(d[u]=null,L(g,u)&&(g[u]=null)):ue(u)&&(u.value=null)),P(a))et(a,l,12,[i,d]);else{const v=Z(a),T=ue(a);if(v||T){const R=()=>{if(e.f){const $=v?L(g,a)?g[a]:d[a]:a.value;o?M($)&&os($,r):M($)?$.includes(r)||$.push(r):v?(d[a]=[r],L(g,a)&&(g[a]=d[a])):(a.value=[r],e.k&&(d[e.k]=a.value))}else v?(d[a]=i,L(g,a)&&(g[a]=i)):T&&(a.value=i,e.k&&(d[e.k]=i))};i?(R.id=-1,pe(R,n)):R()}}}const pe=zi;function vl(e){return _l(e)}function _l(e,t){const n=Un();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:u,setElementText:d,parentNode:g,nextSibling:v,setScopeId:T=Me,insertStaticContent:R}=e,$=(c,f,p,m=null,h=null,_=null,C=!1,b=null,x=!!f.dynamicChildren)=>{if(c===f)return;c&&!bt(c,f)&&(m=Yt(c),Pe(c,h,_,!0),c=null),f.patchFlag===-2&&(x=!1,f.dynamicChildren=null);const{type:y,ref:S,shapeFlag:E}=f;switch(y){case An:J(c,f,p,m);break;case Ve:Q(c,f,p,m);break;case rn:c==null&&G(f,p,m,C);break;case ce:w(c,f,p,m,h,_,C,b,x);break;default:E&1?se(c,f,p,m,h,_,C,b,x):E&6?V(c,f,p,m,h,_,C,b,x):(E&64||E&128)&&y.process(c,f,p,m,h,_,C,b,x,mt)}S!=null&&h&&es(S,c&&c.ref,_,f||c,!f)},J=(c,f,p,m)=>{if(c==null)s(f.el=l(f.children),p,m);else{const h=f.el=c.el;f.children!==c.children&&u(h,f.children)}},Q=(c,f,p,m)=>{c==null?s(f.el=a(f.children||""),p,m):f.el=c.el},G=(c,f,p,m)=>{[c.el,c.anchor]=R(c.children,f,p,m,c.el,c.anchor)},ee=({el:c,anchor:f},p,m)=>{let h;for(;c&&c!==f;)h=v(c),s(c,p,m),c=h;s(f,p,m)},O=({el:c,anchor:f})=>{let p;for(;c&&c!==f;)p=v(c),o(c),c=p;o(f)},se=(c,f,p,m,h,_,C,b,x)=>{C=C||f.type==="svg",c==null?Ie(f,p,m,h,_,C,b,x):Y(c,f,h,_,C,b,x)},Ie=(c,f,p,m,h,_,C,b)=>{let x,y;const{type:S,props:E,shapeFlag:A,transition:I,dirs:N}=c;if(x=c.el=i(c.type,_,E&&E.is,E),A&8?d(x,c.children):A&16&&F(c.children,x,null,m,h,_&&S!=="foreignObject",C,b),N&&it(c,null,m,"created"),$e(x,c,c.scopeId,C,m),E){for(const B in E)B!=="value"&&!sn(B)&&r(x,B,null,E[B],_,c.children,m,h,He);"value"in E&&r(x,"value",null,E.value),(y=E.onVnodeBeforeMount)&&Ne(y,m,c)}N&&it(c,null,m,"beforeMount");const j=(!h||h&&!h.pendingBranch)&&I&&!I.persisted;j&&I.beforeEnter(x),s(x,f,p),((y=E&&E.onVnodeMounted)||j||N)&&pe(()=>{y&&Ne(y,m,c),j&&I.enter(x),N&&it(c,null,m,"mounted")},h)},$e=(c,f,p,m,h)=>{if(p&&T(c,p),m)for(let _=0;_{for(let y=x;y{const b=f.el=c.el;let{patchFlag:x,dynamicChildren:y,dirs:S}=f;x|=c.patchFlag&16;const E=c.props||K,A=f.props||K;let I;p&<(p,!1),(I=A.onVnodeBeforeUpdate)&&Ne(I,p,f,c),S&&it(f,c,p,"beforeUpdate"),p&<(p,!0);const N=h&&f.type!=="foreignObject";if(y?U(c.dynamicChildren,y,b,p,m,N,_):C||H(c,f,b,null,p,m,N,_,!1),x>0){if(x&16)le(b,f,E,A,p,m,h);else if(x&2&&E.class!==A.class&&r(b,"class",null,A.class,h),x&4&&r(b,"style",E.style,A.style,h),x&8){const j=f.dynamicProps;for(let B=0;B{I&&Ne(I,p,f,c),S&&it(f,c,p,"updated")},m)},U=(c,f,p,m,h,_,C)=>{for(let b=0;b{if(p!==m){if(p!==K)for(const b in p)!sn(b)&&!(b in m)&&r(c,b,p[b],null,C,f.children,h,_,He);for(const b in m){if(sn(b))continue;const x=m[b],y=p[b];x!==y&&b!=="value"&&r(c,b,y,x,C,f.children,h,_,He)}"value"in m&&r(c,"value",p.value,m.value)}},w=(c,f,p,m,h,_,C,b,x)=>{const y=f.el=c?c.el:l(""),S=f.anchor=c?c.anchor:l("");let{patchFlag:E,dynamicChildren:A,slotScopeIds:I}=f;I&&(b=b?b.concat(I):I),c==null?(s(y,p,m),s(S,p,m),F(f.children,p,S,h,_,C,b,x)):E>0&&E&64&&A&&c.dynamicChildren?(U(c.dynamicChildren,A,p,h,_,C,b),(f.key!=null||h&&f===h.subTree)&&ar(c,f,!0)):H(c,f,p,S,h,_,C,b,x)},V=(c,f,p,m,h,_,C,b,x)=>{f.slotScopeIds=b,c==null?f.shapeFlag&512?h.ctx.activate(f,p,m,C,x):ge(f,p,m,h,_,C,x):It(c,f,x)},ge=(c,f,p,m,h,_,C)=>{const b=c.component=Il(c,m,h);if(qo(c)&&(b.ctx.renderer=mt),$l(b),b.asyncDep){if(h&&h.registerDep(b,oe),!c.el){const x=b.subTree=he(Ve);Q(null,x,f,p)}return}oe(b,c,f,p,h,_,C)},It=(c,f,p)=>{const m=f.component=c.component;if(Hi(c,f,p))if(m.asyncDep&&!m.asyncResolved){X(m,f,p);return}else m.next=f,Pi(m.update),m.update();else f.el=c.el,m.vnode=f},oe=(c,f,p,m,h,_,C)=>{const b=()=>{if(c.isMounted){let{next:S,bu:E,u:A,parent:I,vnode:N}=c,j=S,B;lt(c,!1),S?(S.el=N.el,X(c,S,C)):S=N,E&&Fn(E),(B=S.props&&S.props.onVnodeBeforeUpdate)&&Ne(B,I,S,N),lt(c,!0);const ne=Nn(c),Te=c.subTree;c.subTree=ne,$(Te,ne,g(Te.el),Yt(Te),c,h,_),S.el=ne.el,j===null&&ji(c,ne.el),A&&pe(A,h),(B=S.props&&S.props.onVnodeUpdated)&&pe(()=>Ne(B,I,S,N),h)}else{let S;const{el:E,props:A}=f,{bm:I,m:N,parent:j}=c,B=Rt(f);if(lt(c,!1),I&&Fn(I),!B&&(S=A&&A.onVnodeBeforeMount)&&Ne(S,j,f),lt(c,!0),E&&$n){const ne=()=>{c.subTree=Nn(c),$n(E,c.subTree,c,h,null)};B?f.type.__asyncLoader().then(()=>!c.isUnmounted&&ne()):ne()}else{const ne=c.subTree=Nn(c);$(null,ne,p,m,c,h,_),f.el=ne.el}if(N&&pe(N,h),!B&&(S=A&&A.onVnodeMounted)){const ne=f;pe(()=>Ne(S,j,ne),h)}(f.shapeFlag&256||j&&Rt(j.vnode)&&j.vnode.shapeFlag&256)&&c.a&&pe(c.a,h),c.isMounted=!0,f=p=m=null}},x=c.effect=new cs(b,()=>ys(y),c.scope),y=c.update=()=>x.run();y.id=c.uid,lt(c,!0),y()},X=(c,f,p)=>{f.component=c;const m=c.vnode.props;c.vnode=f,c.next=null,ml(c,f.props,m,p),bl(c,f.children,p),Mt(),Us(),Ot()},H=(c,f,p,m,h,_,C,b,x=!1)=>{const y=c&&c.children,S=c?c.shapeFlag:0,E=f.children,{patchFlag:A,shapeFlag:I}=f;if(A>0){if(A&128){Jt(y,E,p,m,h,_,C,b,x);return}else if(A&256){ot(y,E,p,m,h,_,C,b,x);return}}I&8?(S&16&&He(y,h,_),E!==y&&d(p,E)):S&16?I&16?Jt(y,E,p,m,h,_,C,b,x):He(y,h,_,!0):(S&8&&d(p,""),I&16&&F(E,p,m,h,_,C,b,x))},ot=(c,f,p,m,h,_,C,b,x)=>{c=c||_t,f=f||_t;const y=c.length,S=f.length,E=Math.min(y,S);let A;for(A=0;AS?He(c,h,_,!0,!1,E):F(f,p,m,h,_,C,b,x,E)},Jt=(c,f,p,m,h,_,C,b,x)=>{let y=0;const S=f.length;let E=c.length-1,A=S-1;for(;y<=E&&y<=A;){const I=c[y],N=f[y]=x?Ze(f[y]):Le(f[y]);if(bt(I,N))$(I,N,p,null,h,_,C,b,x);else break;y++}for(;y<=E&&y<=A;){const I=c[E],N=f[A]=x?Ze(f[A]):Le(f[A]);if(bt(I,N))$(I,N,p,null,h,_,C,b,x);else break;E--,A--}if(y>E){if(y<=A){const I=A+1,N=IA)for(;y<=E;)Pe(c[y],h,_,!0),y++;else{const I=y,N=y,j=new Map;for(y=N;y<=A;y++){const ye=f[y]=x?Ze(f[y]):Le(f[y]);ye.key!=null&&j.set(ye.key,y)}let B,ne=0;const Te=A-N+1;let gt=!1,$s=0;const $t=new Array(Te);for(y=0;y=Te){Pe(ye,h,_,!0);continue}let Fe;if(ye.key!=null)Fe=j.get(ye.key);else for(B=N;B<=A;B++)if($t[B-N]===0&&bt(ye,f[B])){Fe=B;break}Fe===void 0?Pe(ye,h,_,!0):($t[Fe-N]=y+1,Fe>=$s?$s=Fe:gt=!0,$(ye,f[Fe],p,null,h,_,C,b,x),ne++)}const Ps=gt?xl($t):_t;for(B=Ps.length-1,y=Te-1;y>=0;y--){const ye=N+y,Fe=f[ye],Fs=ye+1{const{el:_,type:C,transition:b,children:x,shapeFlag:y}=c;if(y&6){rt(c.component.subTree,f,p,m);return}if(y&128){c.suspense.move(f,p,m);return}if(y&64){C.move(c,f,p,mt);return}if(C===ce){s(_,f,p);for(let E=0;Eb.enter(_),h);else{const{leave:E,delayLeave:A,afterLeave:I}=b,N=()=>s(_,f,p),j=()=>{E(_,()=>{N(),I&&I()})};A?A(_,N,j):j()}else s(_,f,p)},Pe=(c,f,p,m=!1,h=!1)=>{const{type:_,props:C,ref:b,children:x,dynamicChildren:y,shapeFlag:S,patchFlag:E,dirs:A}=c;if(b!=null&&es(b,null,p,c,!0),S&256){f.ctx.deactivate(c);return}const I=S&1&&A,N=!Rt(c);let j;if(N&&(j=C&&C.onVnodeBeforeUnmount)&&Ne(j,f,c),S&6)Pr(c.component,p,m);else{if(S&128){c.suspense.unmount(p,m);return}I&&it(c,null,f,"beforeUnmount"),S&64?c.type.remove(c,f,p,h,mt,m):y&&(_!==ce||E>0&&E&64)?He(y,f,p,!1,!0):(_===ce&&E&384||!h&&S&16)&&He(x,f,p),m&&Os(c)}(N&&(j=C&&C.onVnodeUnmounted)||I)&&pe(()=>{j&&Ne(j,f,c),I&&it(c,null,f,"unmounted")},p)},Os=c=>{const{type:f,el:p,anchor:m,transition:h}=c;if(f===ce){$r(p,m);return}if(f===rn){O(c);return}const _=()=>{o(p),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(c.shapeFlag&1&&h&&!h.persisted){const{leave:C,delayLeave:b}=h,x=()=>C(p,_);b?b(c.el,_,x):x()}else _()},$r=(c,f)=>{let p;for(;c!==f;)p=v(c),o(c),c=p;o(f)},Pr=(c,f,p)=>{const{bum:m,scope:h,update:_,subTree:C,um:b}=c;m&&Fn(m),h.stop(),_&&(_.active=!1,Pe(C,c,f,p)),b&&pe(b,f),pe(()=>{c.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},He=(c,f,p,m=!1,h=!1,_=0)=>{for(let C=_;Cc.shapeFlag&6?Yt(c.component.subTree):c.shapeFlag&128?c.suspense.next():v(c.anchor||c.el),Is=(c,f,p)=>{c==null?f._vnode&&Pe(f._vnode,null,null,!0):$(f._vnode||null,c,f,null,null,null,p),Us(),jo(),f._vnode=c},mt={p:$,um:Pe,m:rt,r:Os,mt:ge,mc:F,pc:H,pbc:U,n:Yt,o:e};let In,$n;return t&&([In,$n]=t(mt)),{render:Is,hydrate:In,createApp:dl(Is,In)}}function lt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ar(e,t,n=!1){const s=e.children,o=t.children;if(M(s)&&M(o))for(let r=0;r>1,e[n[l]]0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const Cl=e=>e.__isTeleport,ce=Symbol.for("v-fgt"),An=Symbol.for("v-txt"),Ve=Symbol.for("v-cmt"),rn=Symbol.for("v-stc"),Dt=[];let Ae=null;function q(e=!1){Dt.push(Ae=e?null:[])}function El(){Dt.pop(),Ae=Dt[Dt.length-1]||null}let Kt=1;function Gs(e){Kt+=e}function ur(e){return e.dynamicChildren=Kt>0?Ae||_t:null,El(),Kt>0&&Ae&&Ae.push(e),e}function be(e,t,n,s,o,r){return ur(k(e,t,n,s,o,r,!0))}function De(e,t,n,s,o){return ur(he(e,t,n,s,o,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function bt(e,t){return e.type===t.type&&e.key===t.key}const Mn="__vInternal",dr=({key:e})=>e??null,ln=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||ue(e)||P(e)?{i:fe,r:e,k:t,f:!!n}:e:null);function k(e,t=null,n=null,s=0,o=null,r=e===ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dr(t),ref:t&&ln(t),scopeId:Cn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:fe};return l?(xs(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Z(n)?8:16),Kt>0&&!i&&Ae&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ae.push(a),a}const he=Tl;function Tl(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Zo)&&(e=Ve),fr(e)){const l=pt(e,t,!0);return n&&xs(l,n),Kt>0&&!r&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag|=-2,l}if(Ll(e)&&(e=e.__vccOpts),t){t=pr(t);let{class:l,style:a}=t;l&&!Z(l)&&(t.class=Ke(l)),W(a)&&(Lo(a)&&!M(a)&&(a=te({},a)),t.style=nt(a))}const i=Z(e)?1:Ui(e)?128:Cl(e)?64:W(e)?4:P(e)?2:0;return k(e,t,n,s,o,i,r,!0)}function pr(e){return e?Lo(e)||Mn in e?te({},e):e:null}function pt(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,l=t?Al(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&dr(l),ref:t&&t.ref?n&&o?M(o)?o.concat(ln(t)):[o,ln(t)]:ln(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wl(e=" ",t=0){return he(An,null,e,t)}function Sl(e,t){const n=he(rn,null,e);return n.staticCount=t,n}function Lt(e="",t=!1){return t?(q(),De(Ve,null,e)):he(Ve,null,e)}function Le(e){return e==null||typeof e=="boolean"?he(Ve):M(e)?he(ce,null,e.slice()):typeof e=="object"?Ze(e):he(An,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function xs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(M(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),xs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Mn in t)?t._ctx=fe:o===3&&fe&&(fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else P(t)?(t={default:t,_ctx:fe},n=32):(t=String(t),s&64?(n=16,t=[wl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Al(...e){const t={};for(let n=0;nie||fe;let Cs,yt,eo="__VUE_INSTANCE_SETTERS__";(yt=Un()[eo])||(yt=Un()[eo]=[]),yt.push(e=>ie=e),Cs=e=>{yt.length>1?yt.forEach(t=>t(e)):yt[0](e)};const St=e=>{Cs(e),e.scope.on()},dt=()=>{ie&&ie.scope.off(),Cs(null)};function mr(e){return e.vnode.shapeFlag&4}let Wt=!1;function $l(e,t=!1){Wt=t;const{props:n,children:s}=e.vnode,o=mr(e);hl(e,n,o,t),yl(e,s);const r=o?Pl(e,t):void 0;return Wt=!1,r}function Pl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,sl));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?yr(e):null;St(e),Mt();const r=et(s,e,0,[e.props,o]);if(Ot(),dt(),vo(r)){if(r.then(dt,dt),t)return r.then(i=>{to(e,i,t)}).catch(i=>{_n(i,e,0)});e.asyncDep=r}else to(e,r,t)}else gr(e,t)}function to(e,t,n){P(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:W(t)&&(e.setupState=Do(t)),gr(e,n)}let no;function gr(e,t,n){const s=e.type;if(!e.render){if(!t&&no&&!s.render){const o=s.template||vs(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,u=te(te({isCustomElement:r,delimiters:l},i),a);s.render=no(o,u)}}e.render=s.render||Me}St(e),Mt(),il(e),Ot(),dt()}function Fl(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return me(e,"get","$attrs"),t[n]}}))}function yr(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Fl(e)},slots:e.slots,emit:e.emit,expose:t}}function Es(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Do(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kt)return kt[n](e)},has(t,n){return n in t||n in kt}}))}function Nl(e,t=!0){return P(e)?e.displayName||e.name:e.name||t&&e.__name}function Ll(e){return P(e)&&"__vccOpts"in e}const Qe=(e,t)=>Mi(e,t,Wt),Rl=Symbol.for("v-scx"),kl=()=>on(Rl),Dl="3.3.4",Bl="http://www.w3.org/2000/svg",ut=typeof document<"u"?document:null,so=ut&&ut.createElement("template"),Hl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t?ut.createElementNS(Bl,e):ut.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{so.innerHTML=s?`${e}`:e;const l=so.content;if(s){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function jl(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ul(e,t,n){const s=e.style,o=Z(n);if(n&&!o){if(t&&!Z(t))for(const r in t)n[r]==null&&ts(s,r,"");for(const r in n)ts(s,r,n[r])}else{const r=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=r)}}const oo=/\s*!important$/;function ts(e,t,n){if(M(n))n.forEach(s=>ts(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=zl(e,t);oo.test(n)?e.setProperty(At(s),n.replace(oo,""),"important"):e[s]=n}}const ro=["Webkit","Moz","ms"],kn={};function zl(e,t){const n=kn[t];if(n)return n;let s=ke(t);if(s!=="filter"&&s in e)return kn[t]=s;s=yn(s);for(let o=0;oDn||(Xl.then(()=>Dn=0),Dn=Date.now());function Ql(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ee(Gl(s,n.value),t,5,[s])};return n.value=e,n.attached=Zl(),n}function Gl(e,t){if(M(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const co=/^on[a-z]/,ec=(e,t,n,s,o=!1,r,i,l,a)=>{t==="class"?jl(e,s,o):t==="style"?Ul(e,n,s):hn(t)?ss(t)||Jl(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tc(e,t,s,o))?Wl(e,t,s,r,i,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Kl(e,t,s,o))};function tc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&co.test(t)&&P(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||co.test(t)&&Z(n)?!1:t in e}const Ye="transition",Pt="animation",br={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},nc=te({},Vi,br),ct=(e,t=[])=>{M(e)?e.forEach(n=>n(...t)):e&&e(...t)},ao=e=>e?M(e)?e.some(t=>t.length>1):e.length>1:!1;function sc(e){const t={};for(const w in e)w in br||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:u=i,appearToClass:d=l,leaveFromClass:g=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:T=`${n}-leave-to`}=e,R=oc(o),$=R&&R[0],J=R&&R[1],{onBeforeEnter:Q,onEnter:G,onEnterCancelled:ee,onLeave:O,onLeaveCancelled:se,onBeforeAppear:Ie=Q,onAppear:$e=G,onAppearCancelled:F=ee}=t,Y=(w,V,ge)=>{Xe(w,V?d:l),Xe(w,V?u:i),ge&&ge()},U=(w,V)=>{w._isLeaving=!1,Xe(w,g),Xe(w,T),Xe(w,v),V&&V()},le=w=>(V,ge)=>{const It=w?$e:G,oe=()=>Y(V,w,ge);ct(It,[V,oe]),uo(()=>{Xe(V,w?a:r),je(V,w?d:l),ao(It)||fo(V,s,$,oe)})};return te(t,{onBeforeEnter(w){ct(Q,[w]),je(w,r),je(w,i)},onBeforeAppear(w){ct(Ie,[w]),je(w,a),je(w,u)},onEnter:le(!1),onAppear:le(!0),onLeave(w,V){w._isLeaving=!0;const ge=()=>U(w,V);je(w,g),_r(),je(w,v),uo(()=>{w._isLeaving&&(Xe(w,g),je(w,T),ao(O)||fo(w,s,J,ge))}),ct(O,[w,ge])},onEnterCancelled(w){Y(w,!1),ct(ee,[w])},onAppearCancelled(w){Y(w,!0),ct(F,[w])},onLeaveCancelled(w){U(w),ct(se,[w])}})}function oc(e){if(e==null)return null;if(W(e))return[Bn(e.enter),Bn(e.leave)];{const t=Bn(e);return[t,t]}}function Bn(e){return Hr(e)}function je(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Xe(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function uo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rc=0;function fo(e,t,n,s){const o=e._endId=++rc,r=()=>{o===e._endId&&s()};if(n)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=vr(e,t);if(!i)return s();const u=i+"end";let d=0;const g=()=>{e.removeEventListener(u,v),r()},v=T=>{T.target===e&&++d>=a&&g()};setTimeout(()=>{d(n[R]||"").split(", "),o=s(`${Ye}Delay`),r=s(`${Ye}Duration`),i=po(o,r),l=s(`${Pt}Delay`),a=s(`${Pt}Duration`),u=po(l,a);let d=null,g=0,v=0;t===Ye?i>0&&(d=Ye,g=i,v=r.length):t===Pt?u>0&&(d=Pt,g=u,v=a.length):(g=Math.max(i,u),d=g>0?i>u?Ye:Pt:null,v=d?d===Ye?r.length:a.length:0);const T=d===Ye&&/\b(transform|all)(,|$)/.test(s(`${Ye}Property`).toString());return{type:d,timeout:g,propCount:v,hasTransform:T}}function po(e,t){for(;e.lengthho(n)+ho(e[s])))}function ho(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function _r(){return document.body.offsetHeight}const xr=new WeakMap,Cr=new WeakMap,Er={name:"TransitionGroup",props:te({},nc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=hr(),s=Wi();let o,r;return Yo(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!uc(o[0].el,n.vnode.el,i))return;o.forEach(lc),o.forEach(cc);const l=o.filter(ac);_r(),l.forEach(a=>{const u=a.el,d=u.style;je(u,i),d.transform=d.webkitTransform=d.transitionDuration="";const g=u._moveCb=v=>{v&&v.target!==u||(!v||/transform$/.test(v.propertyName))&&(u.removeEventListener("transitionend",g),u._moveCb=null,Xe(u,i))};u.addEventListener("transitionend",g)})}),()=>{const i=D(e),l=sc(i);let a=i.tag||ce;o=r,r=t.default?Vo(t.default()):[];for(let u=0;udelete e.mode;Er.props;const Tr=Er;function lc(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function cc(e){Cr.set(e,e.el.getBoundingClientRect())}function ac(e){const t=xr.get(e),n=Cr.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${o}px)`,r.transitionDuration="0s",e}}function uc(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=vr(s);return o.removeChild(s),r}const fc=te({patchProp:ec},Hl);let mo;function dc(){return mo||(mo=vl(fc))}const pc=(...e)=>{const t=dc().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=hc(s);if(!o)return;const r=t._component;!P(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function hc(e){return Z(e)?document.querySelector(e):e}function mc(e){return{all:e=e||new Map,on:function(t,n){var s=e.get(t);s?s.push(n):e.set(t,[n])},off:function(t,n){var s=e.get(t);s&&(n?s.splice(s.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var s=e.get(t);s&&s.slice().map(function(o){o(n)}),(s=e.get("*"))&&s.slice().map(function(o){o(t,n)})}}}const pn=mc(),wr=new Map,go={x:["left","center","right"],y:["top","bottom"]},gc=(e=>()=>e++)(0),yc=e=>typeof e!="string"?[]:e.split(/\s+/gi).filter(t=>t),bc=e=>{typeof e=="string"&&(e=yc(e));let t=null,n=null;return e.forEach(s=>{go.y.indexOf(s)!==-1&&(n=s),go.x.indexOf(s)!==-1&&(t=s)}),{x:t,y:n}};class vc{constructor(t,n,s){this.remaining=n,this.callback=t,this.notifyItem=s,this.resume()}pause(){clearTimeout(this.notifyItem.timer),this.remaining-=Date.now()-this.start}resume(){this.start=Date.now(),clearTimeout(this.notifyItem.timer),this.notifyItem.timer=setTimeout(this.callback,this.remaining)}}const Hn={position:["top","right"],cssAnimation:"vn-fade",velocityAnimation:{enter:e=>({height:[e.clientHeight,0],opacity:[1,0]}),leave:{height:0,opacity:[0,1]}}},_c=Be({name:"velocity-group",emits:["after-leave","leave","enter"],methods:{enter(e,t){this.$emit("enter",e,t)},leave(e,t){this.$emit("leave",e,t)},afterLeave(){this.$emit("after-leave")}}}),Ts=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n};function xc(e,t,n,s,o,r){return q(),De(Tr,{tag:"span",css:!1,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.afterLeave},{default:Oe(()=>[wt(e.$slots,"default")]),_:3},8,["onEnter","onLeave","onAfterLeave"])}const Cc=Ts(_c,[["render",xc]]),Ec=Be({name:"css-group",inheritAttrs:!1,props:{name:{type:String,required:!0}}});function Tc(e,t,n,s,o,r){return q(),De(Tr,{tag:"span",name:e.name},{default:Oe(()=>[wt(e.$slots,"default")]),_:3},8,["name"])}const wc=Ts(Ec,[["render",Tc]]),jn="[-+]?[0-9]*.?[0-9]+",yo=[{name:"px",regexp:new RegExp(`^${jn}px$`)},{name:"%",regexp:new RegExp(`^${jn}%$`)},{name:"px",regexp:new RegExp(`^${jn}$`)}],Sc=e=>{if(e==="auto")return{type:e,value:0};for(let t=0;t{switch(typeof e){case"number":return{type:"px",value:e};case"string":return Sc(e);default:return{type:"",value:e}}},nn={IDLE:0,DESTROYED:2},Mc=Be({name:"notifications",components:{VelocityGroup:Cc,CssGroup:wc},props:{group:{type:String,default:""},width:{type:[Number,String],default:300},reverse:{type:Boolean,default:!1},position:{type:[String,Array],default:Hn.position},classes:{type:String,default:"vue-notification"},animationType:{type:String,default:"css"},animation:{type:Object,default:Hn.velocityAnimation},animationName:{type:String,default:Hn.cssAnimation},speed:{type:Number,default:300},cooldown:{type:Number,default:0},duration:{type:Number,default:3e3},delay:{type:Number,default:0},max:{type:Number,default:1/0},ignoreDuplicates:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!1}},emits:["click","destroy","start"],data(){return{list:[],velocity:wr.get("velocity"),timerControl:null}},computed:{actualWidth(){return Ac(this.width)},isVA(){return this.animationType==="velocity"},componentName(){return this.isVA?"velocity-group":"css-group"},styles(){const{x:e,y:t}=bc(this.position),n=this.actualWidth.value,s=this.actualWidth.type,o={width:n+s};return t&&(o[t]="0px"),e&&(e==="center"?o.left=`calc(50% - ${+n/2}${s})`:o[e]="0px"),o},active(){return this.list.filter(e=>e.state!==nn.DESTROYED)},botToTop(){return this.styles.hasOwnProperty("bottom")}},mounted(){pn.on("add",this.addItem),pn.on("close",this.closeItem)},methods:{destroyIfNecessary(e){this.$emit("click",e),this.closeOnClick&&this.destroy(e)},pauseTimeout(){var e;this.pauseOnHover&&((e=this.timerControl)==null||e.pause())},resumeTimeout(){var e;this.pauseOnHover&&((e=this.timerControl)==null||e.resume())},addItem(e={}){if(e.group||(e.group=""),e.data||(e.data={}),this.group!==e.group)return;if(e.clean||e.clear){this.destroyAll();return}const t=typeof e.duration=="number"?e.duration:this.duration,n=typeof e.speed=="number"?e.speed:this.speed,s=typeof e.ignoreDuplicates=="boolean"?e.ignoreDuplicates:this.ignoreDuplicates,{title:o,text:r,type:i,data:l,id:a}=e,u={id:a||gc(),title:o,text:r,type:i,state:nn.IDLE,speed:n,length:t+2*n,data:l};t>=0&&(this.timerControl=new vc(()=>this.destroy(u),u.length,u));const d=this.reverse?!this.botToTop:this.botToTop;let g=-1;const v=this.active.some(T=>T.title===e.title&&T.text===e.text);(!s||!v)&&(d?(this.list.push(u),this.$emit("start",u),this.active.length>this.max&&(g=0)):(this.list.unshift(u),this.$emit("start",u),this.active.length>this.max&&(g=this.active.length-1)),g!==-1&&this.destroy(this.active[g]))},closeItem(e){this.destroyById(e)},notifyClass(e){return["vue-notification-template",this.classes,e.type||""]},notifyWrapperStyle(e){return this.isVA?void 0:{transition:`all ${e.speed}ms`}},destroy(e){clearTimeout(e.timer),e.state=nn.DESTROYED,this.clean(),this.$emit("destroy",e)},destroyById(e){const t=this.list.find(n=>n.id===e);t&&this.destroy(t)},destroyAll(){this.active.forEach(this.destroy)},getAnimation(e,t){var n;const s=(n=this.animation)==null?void 0:n[e];return typeof s=="function"?s.call(this,t):s},enter(e,t){if(!this.isVA)return;const n=this.getAnimation("enter",e);this.velocity(e,n,{duration:this.speed,complete:t})},leave(e,t){if(!this.isVA)return;const n=this.getAnimation("leave",e);this.velocity(e,n,{duration:this.speed,complete:t})},clean(){this.list=this.list.filter(e=>e.state!==nn.DESTROYED)}}}),Oc=["data-id"],Ic=["onClick"],$c=["innerHTML"],Pc=["innerHTML"];function Fc(e,t,n,s,o,r){return q(),be("div",{class:"vue-notification-group",style:nt(e.styles)},[(q(),De(Qo(e.componentName),{name:e.animationName,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.clean},{default:Oe(()=>[(q(!0),be(ce,null,er(e.active,i=>(q(),be("div",{key:i.id,class:"vue-notification-wrapper",style:nt(e.notifyWrapperStyle(i)),"data-id":i.id,onMouseenter:t[0]||(t[0]=(...l)=>e.pauseTimeout&&e.pauseTimeout(...l)),onMouseleave:t[1]||(t[1]=(...l)=>e.resumeTimeout&&e.resumeTimeout(...l))},[wt(e.$slots,"body",{class:Ke([e.classes,i.type]),item:i,close:()=>e.destroy(i)},()=>[k("div",{class:Ke(e.notifyClass(i)),onClick:l=>e.destroyIfNecessary(i)},[i.title?(q(),be("div",{key:0,class:"notification-title",innerHTML:i.title},null,8,$c)):Lt("",!0),k("div",{class:"notification-content",innerHTML:i.text},null,8,Pc)],10,Ic)])],44,Oc))),128))]),_:3},40,["name","onEnter","onLeave","onAfterLeave"]))],4)}const Nc=Ts(Mc,[["render",Fc]]),Ce=e=>{typeof e=="string"&&(e={title:"",text:e}),typeof e=="object"&&pn.emit("add",e)};Ce.close=e=>{pn.emit("close",e)};function Lc(e,t={}){Object.entries(t).forEach(s=>wr.set(...s));const n=t.name||"notify";e.config.globalProperties["$"+n]=Ce,e.component(t.componentName||"Notifications",Nc)}const Rc={install:Lc};(function(){var e;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,t.appendChild(document.createTextNode(".vue-notification-group{display:block;position:fixed;z-index:5000}.vue-notification-wrapper{display:block;overflow:hidden;width:100%;margin:0;padding:0}.notification-title{font-weight:600}.vue-notification-template{display:block;box-sizing:border-box;background:white;text-align:left}.vue-notification{display:block;box-sizing:border-box;text-align:left;font-size:12px;padding:10px;margin:0 5px 5px;color:#fff;background:#44A4FC;border-left:5px solid #187FE7}.vue-notification.warn{background:#ffb648;border-left-color:#f48a06}.vue-notification.error{background:#E54D42;border-left-color:#b82e24}.vue-notification.success{background:#68CD86;border-left-color:#42a85f}.vn-fade-enter-active,.vn-fade-leave-active,.vn-fade-move{transition:all .5s}.vn-fade-enter-from,.vn-fade-leave-to{opacity:0}")),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const re=Vt({transitionTime:200,animationType:"slideDown",modalStyle:{padding:void 0,align:"center","z-index":201},overlayStyle:{"background-color":"rgba(0, 0, 0, 0.9)","z-index":200}});function kc(e){var t,n,s,o,r;e!=null&&e.transitionTime&&(re.transitionTime=e.transitionTime),e!=null&&e.animationType&&(re.animationType=e.animationType),e!=null&&e.modalStyle&&((t=e.modalStyle)!=null&&t.padding&&(re.modalStyle.padding=e.modalStyle.padding),(n=e.modalStyle)!=null&&n.align&&(re.modalStyle.align=e.modalStyle.align),(s=e.modalStyle)!=null&&s["z-index"]&&(re.modalStyle["z-index"]=e.modalStyle["z-index"])),(o=e==null?void 0:e.overlayStyle)!=null&&o["z-index"]&&(re.overlayStyle["z-index"]=e.overlayStyle["z-index"]),(r=e==null?void 0:e.overlayStyle)!=null&&r["background-color"]&&(re.overlayStyle["background-color"]=e.overlayStyle["background-color"])}const _e=Vt({modals:[]});Qe(()=>_e.modals.length>0);function Dc(e,t,n){_e.modals.push(ps({component:e,props:t,options:n}))}function Bc(){_e.modals.pop()}var Hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sr={exports:{}};(function(e,t){(function(n,s){e.exports=s(),e.exports.default=e.exports})(Hc,function(){var n=function(){this.listeners={},this.registerListener=function(o,r,i){var l=o.constructor.name;i=this.validateNumber(i||"any"),l!=="Array"&&(o=[o]),o.forEach(function(a){if(a.constructor.name!=="String")throw new Error("Only `String` and array of `String` are accepted for the event names!");s.listeners[a]=s.listeners[a]||[],s.listeners[a].push({callback:r,number:i})})},this.validateNumber=function(o){var r=o.constructor.name;if(r==="Number")return o;if(r==="String"&&o.toLowerCase()==="any")return"any";throw new Error("Only `Number` and `any` are accepted in the number of possible executions!")},this.toBeRemoved=function(o){var r=o.number;return o.execution=o.execution||0,o.execution++,!(r==="any"||o.execution=0)){var a=l.replace(/\*\*/,"([^.]+.?)+");a=a.replace(/\*/g,"[^.]+");var u=o.match(a);u&&o===u[0]&&Array.prototype.push.apply(i,s.listeners[l])}var d=arguments;r=r||this,i.forEach(function(g,v){var T=g.callback;g.number,r&&(T=T.bind(r));var R=[];Object.keys(d).map(function($){$>1&&R.push(d[$])}),s.toBeRemoved(g)&&s.listeners[o].splice(v,1),T.apply(null,R)})}}};return n})})(Sr);var Uc=Sr.exports;const zc=jc(Uc),ws=new zc;function ht(e,...t){ws.emit(e,null,...t)}function ze(e,t){ws.on(e,t)}function tt(e,t){ws.detach(e,t)}var z=(e=>(e.Open="open",e.Opened="opened",e.Close="close",e.Closed="closed",e))(z||{});function Kc(e){return"key"in e?e.key==="Escape"||e.key==="Esc":e.keyCode===27}async function Bt(e,t,n){n!=null&&n.force&&_e.modals.length&&await As(!1);const s=_e.modals.length;return Dc(e,t),ht(z.Open),new Promise((o,r)=>{function i(l){l.index===s&&(tt(z.Closed,i),l.success?o(l.data):r())}ze(z.Closed,i)})}function Ss(e){return new Promise(t=>{function n(s){tt(z.Closed,n),t(s.data)}ze(z.Closed,n),ht(z.Close,{success:!0,data:e})})}function qt(){return new Promise(e=>{function t(){tt(z.Closed,t),e()}ze(z.Closed,t),ht(z.Close,{success:!1})})}function As(e=!0){return new Promise(t=>{function n(){tt(z.Closed,n);for(let s=_e.modals.length-1;s>=0;s--)_e.modals.splice(s,1),ht(z.Closed,{index:s,success:!1});t()}ze(z.Closed,n),ht(z.Close,{success:!1,forceCloseAll:e})})}const Wc=Be({__name:"BaseModal",props:{index:{type:Number,required:!0}},setup(e){const t=e,n=ms(!1),s=Qe(()=>t.index!==_e.modals.length-1),o=Qe(()=>re.animationType!=="none"&&re.transitionTime||0),r=Qe(()=>{var u,d;return{padding:(u=re.modalStyle)==null?void 0:u.padding,"z-index":(d=re.modalStyle)==null?void 0:d["z-index"],transition:`opacity ${o.value}ms ease, visibility ${o.value}ms ease, transform ${o.value}ms ease`}}),i=Qe(()=>{var u;return[{"vue-modal--active":n.value,"vue-modal--hide":s.value},`vue-modal--${(u=re.modalStyle)==null?void 0:u.align}`,`vue-modal--${re.animationType}`]});function l(u){_e.modals.length-1===t.index&&(n.value=!1,setTimeout(ht,o.value,z.Closed,{index:t.index,success:u.success,data:u.data}))}function a(u){Kc(u)&&_e.modals.length-1===t.index&&qt()}return Tn(()=>{setTimeout(()=>{n.value=!0},t.index>0?o.value:0),ze(z.Close,l),document.addEventListener("keydown",a),ht(z.Opened)}),wn(()=>{tt(z.Close,l),document.removeEventListener("keydown",a)}),(u,d)=>(q(),be("div",{class:Ke(["vue-modal",i.value]),style:nt(r.value)},[wt(u.$slots,"default",{},void 0,!0)],6))}});const On=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Vc=On(Wc,[["__scopeId","data-v-1421616b"]]);function qc(){var s;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;return(s=e.parentNode)==null||s.removeChild(e),n}function Jc(){const e=ms(qc());function t(){document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>document.documentElement.clientHeight&&(document.body.style.paddingRight=`${e.value}px`)}function n(){document.documentElement.style.overflow="auto",document.body.style.paddingRight="0px"}function s(o){o?t():n()}return{paddingSize:e,toggleLock:s}}const Yc={class:"vue-modals"},Xc=Be({__name:"ModalTarget",setup(e){const t=re.animationType!=="none"&&re.transitionTime||0,n=Qe(()=>({...re==null?void 0:re.overlayStyle,transition:`opacity ${t}ms ease, visibility ${t}ms ease`})),s=ms(!1),o=Qe(()=>_e.modals.length&&!s.value);function r({forceCloseAll:u}){(_e.modals.length===1&&u!==!1||u)&&(s.value=!0,setTimeout(()=>{s.value=!1},t))}const i=Jc();function l(){i.toggleLock(!1)}function a(){i.toggleLock(!0)}return Tn(()=>{ze(z.Close,r),ze(z.Closed,l),ze(z.Open,a)}),wn(()=>{tt(z.Close,r),tt(z.Closed,l),tt(z.Open,a)}),(u,d)=>(q(),be("div",Yc,[(q(!0),be(ce,null,er(ve(_e).modals,(g,v)=>(q(),De(Vc,{index:v,key:v},{default:Oe(()=>[(q(),De(Qo(g.component),Wr(pr(g.props)),null,16))]),_:2},1032,["index"]))),128)),k("div",{class:Ke(["vue-modals-overlay",{active:o.value}]),style:nt(n.value)},null,6)]))}});const Ar=On(Xc,[["__scopeId","data-v-48abfbb2"]]),Zc={key:0,class:"vue-modal-header"},Qc={key:0,class:"vue-modal-title"},Gc={class:"vue-modal-body"},ea={key:1,class:"vue-modal-footer"},ta=Be({__name:"SimpleModal",props:{title:{},showClose:{type:Boolean,default:!0},size:{type:String,default:"sm",validator(e){return["sm","md","lg","xl","xxl"].includes(e)}}},setup(e){const t=e,n=ol();return(s,o)=>(q(),be("div",{class:Ke(["vue-modal-content",`size-${t.size}`])},[t.title||t.showClose?(q(),be("div",Zc,[t.title?(q(),be("h1",Qc,bn(t.title),1)):Lt("",!0),t.showClose?(q(),be("button",{key:1,onClick:o[0]||(o[0]=r=>ve(qt)()),class:"vue-modal-btn-close","aria-label":"Close"})):Lt("",!0)])):Lt("",!0),k("div",Gc,[wt(s.$slots,"default",{},void 0,!0)]),ve(n).footer?(q(),be("div",ea,[wt(s.$slots,"footer",{},void 0,!0)])):Lt("",!0)],2))}});const na=On(ta,[["__scopeId","data-v-39a87773"]]);function sa(e){return{install(t){kc(e||{}),t.component("ModalTarget",Ar),t.component("SimpleModal",na),ze(z.Closed,Bc)}}}const Mr=Be({__name:"Test3Modal",props:{test:{}},setup(e){const t=e;return(n,s)=>{const o=Sn("SimpleModal");return q(),De(o,{title:"Modal3",size:"sm"},{footer:Oe(()=>[k("button",{onClick:s[0]||(s[0]=r=>ve(As)()),class:"btn btn-outline-danger"}," Close All "),k("button",{onClick:s[1]||(s[1]=r=>ve(qt)()),class:"btn btn-danger"}," Close "),k("button",{onClick:s[2]||(s[2]=r=>ve(Ss)({test:"modal3"})),class:"btn btn-success"}," Confirm ")]),default:Oe(()=>[k("pre",null,"props: "+bn(t),1)]),_:1})}}}),oa={class:"gap-2 d-flex"},Or=Be({__name:"Test2Modal",props:{test:{}},setup(e){const t=e;function n(s=!1){Bt(Mr,{test:"modal3 from modal2"},{force:s}).then(o=>{Ce({type:"success",title:"Success modal3 from modal2",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal3 from modal2"})})}return(s,o)=>{const r=Sn("SimpleModal");return q(),De(r,{title:"Modal2",size:"sm"},{footer:Oe(()=>[k("button",{onClick:o[2]||(o[2]=i=>ve(As)()),class:"btn btn-outline-danger"}," Close All "),k("button",{onClick:o[3]||(o[3]=i=>ve(qt)()),class:"btn btn-danger"}," Close "),k("button",{onClick:o[4]||(o[4]=i=>ve(Ss)({test:"modal2"})),class:"btn btn-success"}," Confirm ")]),default:Oe(()=>[k("pre",null,"props: "+bn(t),1),k("div",oa,[k("button",{onClick:o[0]||(o[0]=i=>n(!0)),class:"btn btn-primary"}," Force open modal3 "),k("button",{onClick:o[1]||(o[1]=i=>n()),class:"btn btn-primary"}," Open modal3 ")])]),_:1})}}}),ra={class:"gap-2 d-flex"},ia=Be({__name:"Test1Modal",props:{test:{}},setup(e){const t=e;function n(s=!1){Bt(Or,{test:"modal2 from modal1"},{force:s}).then(o=>{Ce({type:"success",title:"Success modal2 from modal1",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal2 from modal1"})})}return(s,o)=>{const r=Sn("SimpleModal");return q(),De(r,{title:"Modal1"},{footer:Oe(()=>[k("button",{onClick:o[2]||(o[2]=i=>ve(qt)()),class:"btn btn-danger"}," Close "),k("button",{onClick:o[3]||(o[3]=i=>ve(Ss)({test:"modal1"})),class:"btn btn-success"}," Confirm ")]),default:Oe(()=>[k("pre",null,"props: "+bn(t),1),k("div",ra,[k("button",{onClick:o[0]||(o[0]=i=>n(!0)),class:"btn btn-primary"}," Force open modal2 "),k("button",{onClick:o[1]||(o[1]=i=>n()),class:"btn btn-primary"}," Open modal2 ")])]),_:1})}}}),Ir=e=>(Ri("data-v-7aa35284"),e=e(),ki(),e),la=Ir(()=>k("div",{class:"mb-3 d-grid gap-2 d-sm-flex"},[k("img",{src:"https://img.shields.io/static/v1?label=Made%20with&message=VueJS&color=limegreen&style=for-the-badge&logo=vue.js",alt:"vuejs"})],-1)),ca=Ir(()=>k("iframe",{src:"https://ghbtns.com/github-btn.html?user=kolirt&repo=vue-modal&type=star&count=true&size=large",frameborder:"0",scrolling:"0",width:"170",height:"30",title:"GitHub",class:"mb-3"},` - `,-1)),aa=Sl('

Vue3 modal package

Easy to use and highly customizable Vue3 modal package

',3),ua=Be({__name:"App",setup(e){function t(){Bt(ia,{test:"modal1"}).then(o=>{Ce({type:"success",title:"Success modal1",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal1"})})}function n(){Bt(Or,{test:"modal2"}).then(o=>{Ce({type:"success",title:"Success modal2",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal2"})})}function s(){Bt(Mr,{test:"modal3"}).then(o=>{Ce({type:"success",title:"Success modal3",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal3"})})}return(o,r)=>{const i=Sn("notifications");return q(),be(ce,null,[k("div",{class:"container py-5"},[k("div",{class:"bg-body-secondary p-5 rounded"},[la,ca,aa,k("div",{class:"d-grid gap-2 d-sm-flex"},[k("button",{onClick:t,class:"btn btn-primary"}," Open modal1 "),k("button",{onClick:n,class:"btn btn-primary"}," Open modal2 "),k("button",{onClick:s,class:"btn btn-primary"}," Open modal3 ")])])]),he(i,{class:"notifications"}),he(ve(Ar))],64)}}});const fa=On(ua,[["__scopeId","data-v-7aa35284"]]);const Ms=pc(fa);Ms.use(Rc);Ms.use(sa({transitionTime:200,animationType:"slideUp",modalStyle:{padding:"2rem 1rem"},overlayStyle:{"background-color":"rgba(0,0,0,.3)"}}));Ms.mount("#app"); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function ns(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const W={},bt=[],Me=()=>{},Fr=()=>!1,Nr=/^on[^a-z]/,hn=e=>Nr.test(e),ss=e=>e.startsWith("onUpdate:"),te=Object.assign,os=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lr=Object.prototype.hasOwnProperty,R=(e,t)=>Lr.call(e,t),M=Array.isArray,xt=e=>mn(e)==="[object Map]",vo=e=>mn(e)==="[object Set]",P=e=>typeof e=="function",Z=e=>typeof e=="string",rs=e=>typeof e=="symbol",V=e=>e!==null&&typeof e=="object",_o=e=>V(e)&&P(e.then)&&P(e.catch),bo=Object.prototype.toString,mn=e=>bo.call(e),Rr=e=>mn(e).slice(8,-1),xo=e=>mn(e)==="[object Object]",is=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kr=/-(\w)/g,ke=gn(e=>e.replace(kr,(t,n)=>n?n.toUpperCase():"")),Dr=/\B([A-Z])/g,At=gn(e=>e.replace(Dr,"-$1").toLowerCase()),yn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pn=gn(e=>e?`on${yn(e)}`:""),jt=(e,t)=>!Object.is(e,t),Fn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Br=e=>{const t=parseFloat(e);return isNaN(t)?e:t},jr=e=>{const t=Z(e)?Number(e):NaN;return isNaN(t)?e:t};let Ns;const Un=()=>Ns||(Ns=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nt(e){if(M(e)){const t={};for(let n=0;n{if(n){const s=n.split(Ur);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ke(e){let t="";if(Z(e))t=e;else if(M(e))for(let n=0;nZ(e)?e:e==null?"":M(e)||V(e)&&(e.toString===bo||!P(e.toString))?JSON.stringify(e,Eo,2):String(e),Eo=(e,t)=>t&&t.__v_isRef?Eo(e,t.value):xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:vo(t)?{[`Set(${t.size})`]:[...t.values()]}:V(t)&&!M(t)&&!xo(t)?String(t):t;let Se;class Jr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Se,!t&&Se&&(this.index=(Se.scopes||(Se.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Se;try{return Se=this,t()}finally{Se=n}}}on(){Se=this}off(){Se=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},To=e=>(e.w&st)>0,So=e=>(e.n&st)>0,Zr=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(d==="length"||d>=a)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":M(e)?is(n)&&l.push(i.get("length")):(l.push(i.get(ft)),xt(e)&&l.push(i.get(Wn)));break;case"delete":M(e)||(l.push(i.get(ft)),xt(e)&&l.push(i.get(Wn)));break;case"set":xt(e)&&l.push(i.get(ft));break}if(l.length===1)l[0]&&Vn(l[0]);else{const a=[];for(const u of l)u&&a.push(...u);Vn(ls(a))}}function Vn(e,t){const n=M(e)?e:[...e];for(const s of n)s.computed&&Rs(s);for(const s of n)s.computed||Rs(s)}function Rs(e,t){(e!==we||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Gr=ns("__proto__,__v_isRef,__isVue"),Mo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rs)),ei=as(),ti=as(!1,!0),ni=as(!0),ks=si();function si(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=D(this);for(let r=0,i=this.length;r{e[t]=function(...n){Mt();const s=D(this)[t].apply(this,n);return Ot(),s}}),e}function oi(e){const t=D(this);return me(t,"has",e),t.hasOwnProperty(e)}function as(e=!1,t=!1){return function(s,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?bi:Fo:t?Po:$o).get(s))return s;const i=M(s);if(!e){if(i&&R(ks,o))return Reflect.get(ks,o,r);if(o==="hasOwnProperty")return oi}const l=Reflect.get(s,o,r);return(rs(o)?Mo.has(o):Gr(o))||(e||me(s,"get",o),t)?l:ue(l)?i&&is(o)?l:l.value:V(l)?e?No(l):Vt(l):l}}const ri=Oo(),ii=Oo(!0);function Oo(e=!1){return function(n,s,o,r){let i=n[s];if(Tt(i)&&ue(i)&&!ue(o))return!1;if(!e&&(!an(o)&&!Tt(o)&&(i=D(i),o=D(o)),!M(n)&&ue(i)&&!ue(o)))return i.value=o,!0;const l=M(n)&&is(s)?Number(s)e,_n=e=>Reflect.getPrototypeOf(e);function Xt(e,t,n=!1,s=!1){e=e.__v_raw;const o=D(e),r=D(t);n||(t!==r&&me(o,"get",t),me(o,"get",r));const{has:i}=_n(o),l=s?us:n?hs:Ht;if(i.call(o,t))return l(e.get(t));if(i.call(o,r))return l(e.get(r));e!==o&&e.get(t)}function Zt(e,t=!1){const n=this.__v_raw,s=D(n),o=D(e);return t||(e!==o&&me(s,"has",e),me(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Qt(e,t=!1){return e=e.__v_raw,!t&&me(D(e),"iterate",ft),Reflect.get(e,"size",e)}function Ds(e){e=D(e);const t=D(this);return _n(t).has.call(t,e)||(t.add(e),We(t,"add",e,e)),this}function Bs(e,t){t=D(t);const n=D(this),{has:s,get:o}=_n(n);let r=s.call(n,e);r||(e=D(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?jt(t,i)&&We(n,"set",e,t):We(n,"add",e,t),this}function js(e){const t=D(this),{has:n,get:s}=_n(t);let o=n.call(t,e);o||(e=D(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&We(t,"delete",e,void 0),r}function Hs(){const e=D(this),t=e.size!==0,n=e.clear();return t&&We(e,"clear",void 0,void 0),n}function Gt(e,t){return function(s,o){const r=this,i=r.__v_raw,l=D(i),a=t?us:e?hs:Ht;return!e&&me(l,"iterate",ft),i.forEach((u,d)=>s.call(o,a(u),a(d),r))}}function en(e,t,n){return function(...s){const o=this.__v_raw,r=D(o),i=xt(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=o[e](...s),d=n?us:t?hs:Ht;return!t&&me(r,"iterate",a?Wn:ft),{next(){const{value:h,done:v}=u.next();return v?{value:h,done:v}:{value:l?[d(h[0]),d(h[1])]:d(h),done:v}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){return e==="delete"?!1:this}}function di(){const e={get(r){return Xt(this,r)},get size(){return Qt(this)},has:Zt,add:Ds,set:Bs,delete:js,clear:Hs,forEach:Gt(!1,!1)},t={get(r){return Xt(this,r,!1,!0)},get size(){return Qt(this)},has:Zt,add:Ds,set:Bs,delete:js,clear:Hs,forEach:Gt(!1,!0)},n={get(r){return Xt(this,r,!0)},get size(){return Qt(this,!0)},has(r){return Zt.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Gt(!0,!1)},s={get(r){return Xt(this,r,!0,!0)},get size(){return Qt(this,!0)},has(r){return Zt.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Gt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=en(r,!1,!1),n[r]=en(r,!0,!1),t[r]=en(r,!1,!0),s[r]=en(r,!0,!0)}),[e,n,t,s]}const[pi,hi,mi,gi]=di();function fs(e,t){const n=t?e?gi:mi:e?hi:pi;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(R(n,o)&&o in s?n:s,o,r)}const yi={get:fs(!1,!1)},vi={get:fs(!1,!0)},_i={get:fs(!0,!1)},$o=new WeakMap,Po=new WeakMap,Fo=new WeakMap,bi=new WeakMap;function xi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ci(e){return e.__v_skip||!Object.isExtensible(e)?0:xi(Rr(e))}function Vt(e){return Tt(e)?e:ds(e,!1,Io,yi,$o)}function Ei(e){return ds(e,!1,fi,vi,Po)}function No(e){return ds(e,!0,ui,_i,Fo)}function ds(e,t,n,s,o){if(!V(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Ci(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return o.set(e,l),l}function Ct(e){return Tt(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function an(e){return!!(e&&e.__v_isShallow)}function Lo(e){return Ct(e)||Tt(e)}function D(e){const t=e&&e.__v_raw;return t?D(t):e}function ps(e){return cn(e,"__v_skip",!0),e}const Ht=e=>V(e)?Vt(e):e,hs=e=>V(e)?No(e):e;function Ro(e){Ge&&we&&(e=D(e),Ao(e.dep||(e.dep=ls())))}function ko(e,t){e=D(e);const n=e.dep;n&&Vn(n)}function ue(e){return!!(e&&e.__v_isRef===!0)}function ms(e){return Ti(e,!1)}function Ti(e,t){return ue(e)?e:new Si(e,t)}class Si{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:D(t),this._value=n?t:Ht(t)}get value(){return Ro(this),this._value}set value(t){const n=this.__v_isShallow||an(t)||Tt(t);t=n?t:D(t),jt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ht(t),ko(this))}}function _e(e){return ue(e)?e.value:e}const wi={get:(e,t,n)=>_e(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return ue(o)&&!ue(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Do(e){return Ct(e)?e:new Proxy(e,wi)}class Ai{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new cs(t,()=>{this._dirty||(this._dirty=!0,ko(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=D(this);return Ro(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Mi(e,t,n=!1){let s,o;const r=P(e);return r?(s=e,o=Me):(s=e.get,o=e.set),new Ai(s,o,r||!o,n)}function et(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){bn(r,t,n)}return o}function Ee(e,t,n,s){if(P(e)){const r=et(e,t,n,s);return r&&_o(r)&&r.catch(i=>{bn(i,t,n)}),r}const o=[];for(let r=0;r>>1;zt(ae[s])Re&&ae.splice(t,1)}function Fi(e){M(e)?Et.push(...e):(!Ue||!Ue.includes(e,e.allowRecurse?at+1:at))&&Et.push(e),jo()}function Us(e,t=Ut?Re+1:0){for(;tzt(n)-zt(s)),at=0;ate.id==null?1/0:e.id,Ni=(e,t)=>{const n=zt(e)-zt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Uo(e){qn=!1,Ut=!0,ae.sort(Ni);const t=Me;try{for(Re=0;ReZ(T)?T.trim():T)),h&&(o=n.map(Br))}let l,a=s[l=Pn(t)]||s[l=Pn(ke(t))];!a&&r&&(a=s[l=Pn(At(t))]),a&&Ee(a,e,6,o);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ee(u,e,6,o)}}function zo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!P(e)){const a=u=>{const d=zo(u,t,!0);d&&(l=!0,te(i,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(V(e)&&s.set(e,null),null):(M(r)?r.forEach(a=>i[a]=null):te(i,r),V(e)&&s.set(e,i),i)}function xn(e,t){return!e||!hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),R(e,t[0].toLowerCase()+t.slice(1))||R(e,At(t))||R(e,t))}let fe=null,Cn=null;function un(e){const t=fe;return fe=e,Cn=e&&e.type.__scopeId||null,t}function Ri(e){Cn=e}function ki(){Cn=null}function Oe(e,t=fe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Gs(-1);const r=un(t);let i;try{i=e(...o)}finally{un(r),s._d&&Gs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Nn(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:l,attrs:a,emit:u,render:d,renderCache:h,data:v,setupState:T,ctx:L,inheritAttrs:$}=e;let U,Q;const G=un(e);try{if(n.shapeFlag&4){const O=o||s;U=Le(d.call(O,O,h,r,T,v,L)),Q=a}else{const O=t;U=Le(O.length>1?O(r,{attrs:a,slots:l,emit:u}):O(r,null)),Q=t.props?a:Di(a)}}catch(O){Dt.length=0,bn(O,e,1),U=he(Ve)}let ee=U;if(Q&&$!==!1){const O=Object.keys(Q),{shapeFlag:se}=ee;O.length&&se&7&&(i&&O.some(ss)&&(Q=Bi(Q,i)),ee=pt(ee,Q))}return n.dirs&&(ee=pt(ee),ee.dirs=ee.dirs?ee.dirs.concat(n.dirs):n.dirs),n.transition&&(ee.transition=n.transition),U=ee,un(G),U}const Di=e=>{let t;for(const n in e)(n==="class"||n==="style"||hn(n))&&((t||(t={}))[n]=e[n]);return t},Bi=(e,t)=>{const n={};for(const s in e)(!ss(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ji(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?zs(s,i,u):!!i;if(a&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function zi(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Fi(e)}const tn={};function Ln(e,t,n){return Ko(e,t,n)}function Ko(e,t,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=W){var l;const a=Xr()===((l=ie)==null?void 0:l.scope)?ie:null;let u,d=!1,h=!1;if(ue(e)?(u=()=>e.value,d=an(e)):Ct(e)?(u=()=>e,s=!0):M(e)?(h=!0,d=e.some(O=>Ct(O)||an(O)),u=()=>e.map(O=>{if(ue(O))return O.value;if(Ct(O))return _t(O);if(P(O))return et(O,a,2)})):P(e)?t?u=()=>et(e,a,2):u=()=>{if(!(a&&a.isUnmounted))return v&&v(),Ee(e,a,3,[T])}:u=Me,t&&s){const O=u;u=()=>_t(O())}let v,T=O=>{v=G.onStop=()=>{et(O,a,4)}},L;if(Wt)if(T=Me,t?n&&Ee(t,a,3,[u(),h?[]:void 0,T]):u(),o==="sync"){const O=kl();L=O.__watcherHandles||(O.__watcherHandles=[])}else return Me;let $=h?new Array(e.length).fill(tn):tn;const U=()=>{if(G.active)if(t){const O=G.run();(s||d||(h?O.some((se,Ie)=>jt(se,$[Ie])):jt(O,$)))&&(v&&v(),Ee(t,a,3,[O,$===tn?void 0:h&&$[0]===tn?[]:$,T]),$=O)}else G.run()};U.allowRecurse=!!t;let Q;o==="sync"?Q=U:o==="post"?Q=()=>pe(U,a&&a.suspense):(U.pre=!0,a&&(U.id=a.uid),Q=()=>ys(U));const G=new cs(u,Q);t?n?U():$=G.run():o==="post"?pe(G.run.bind(G),a&&a.suspense):G.run();const ee=()=>{G.stop(),a&&a.scope&&os(a.scope.effects,G)};return L&&L.push(ee),ee}function Ki(e,t,n){const s=this.proxy,o=Z(e)?e.includes(".")?Wo(s,e):()=>s[e]:e.bind(s,s);let r;P(t)?r=t:(r=t.handler,n=t);const i=ie;wt(this);const l=Ko(o,r.bind(s),n);return i?wt(i):dt(),l}function Wo(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o{_t(n,t)});else if(xo(e))for(const n in e)_t(e[n],t);return e}function it(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i{e.isMounted=!0}),Sn(()=>{e.isUnmounting=!0}),e}const xe=[Function,Array],Vi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xe,onEnter:xe,onAfterEnter:xe,onEnterCancelled:xe,onBeforeLeave:xe,onLeave:xe,onAfterLeave:xe,onLeaveCancelled:xe,onBeforeAppear:xe,onAppear:xe,onAfterAppear:xe,onAppearCancelled:xe};function qi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Jn(e,t,n,s){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:v,onAfterLeave:T,onLeaveCancelled:L,onBeforeAppear:$,onAppear:U,onAfterAppear:Q,onAppearCancelled:G}=t,ee=String(e.key),O=qi(n,e),se=(F,Y)=>{F&&Ee(F,s,9,Y)},Ie=(F,Y)=>{const z=Y[1];se(F,Y),M(F)?F.every(le=>le.length<=1)&&z():F.length<=1&&z()},$e={mode:r,persisted:i,beforeEnter(F){let Y=l;if(!n.isMounted)if(o)Y=$||l;else return;F._leaveCb&&F._leaveCb(!0);const z=O[ee];z&&vt(e,z)&&z.el._leaveCb&&z.el._leaveCb(),se(Y,[F])},enter(F){let Y=a,z=u,le=d;if(!n.isMounted)if(o)Y=U||a,z=Q||u,le=G||d;else return;let S=!1;const q=F._enterCb=ge=>{S||(S=!0,ge?se(le,[F]):se(z,[F]),$e.delayedLeave&&$e.delayedLeave(),F._enterCb=void 0)};Y?Ie(Y,[F,q]):q()},leave(F,Y){const z=String(e.key);if(F._enterCb&&F._enterCb(!0),n.isUnmounting)return Y();se(h,[F]);let le=!1;const S=F._leaveCb=q=>{le||(le=!0,Y(),q?se(L,[F]):se(T,[F]),F._leaveCb=void 0,O[z]===e&&delete O[z])};O[z]=e,v?Ie(v,[F,S]):S()},clone(F){return Jn(F,t,n,s)}};return $e}function Yn(e,t){e.shapeFlag&6&&e.component?Yn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vo(e,t=!1,n){let s=[],o=0;for(let r=0;r1)for(let r=0;rte({name:e.name},t,{setup:e}))():e}const Rt=e=>!!e.type.__asyncLoader,qo=e=>e.type.__isKeepAlive;function Ji(e,t){Jo(e,"a",t)}function Yi(e,t){Jo(e,"da",t)}function Jo(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(En(t,s,n),n){let o=n.parent;for(;o&&o.parent;)qo(o.parent.vnode)&&Xi(s,t,n,o),o=o.parent}}function Xi(e,t,n,s){const o=En(t,e,s,!0);Xo(()=>{os(s[t],o)},n)}function En(e,t,n=ie,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Mt(),wt(n);const l=Ee(t,n,e,i);return dt(),Ot(),l});return s?o.unshift(r):o.push(r),r}}const qe=e=>(t,n=ie)=>(!Wt||e==="sp")&&En(e,(...s)=>t(...s),n),Zi=qe("bm"),Tn=qe("m"),Qi=qe("bu"),Yo=qe("u"),Sn=qe("bum"),Xo=qe("um"),Gi=qe("sp"),el=qe("rtg"),tl=qe("rtc");function nl(e,t=ie){En("ec",e,t)}const vs="components";function wn(e,t){return Go(vs,e,!0,t)||e}const Zo=Symbol.for("v-ndc");function Qo(e){return Z(e)?Go(vs,e,!1)||e:e||Zo}function Go(e,t,n=!0,s=!1){const o=fe||ie;if(o){const r=o.type;if(e===vs){const l=Nl(r,!1);if(l&&(l===t||l===ke(t)||l===yn(ke(t))))return r}const i=Ks(o[e]||r[e],t)||Ks(o.appContext[e],t);return!i&&s?r:i}}function Ks(e,t){return e&&(e[t]||e[ke(t)]||e[yn(ke(t))])}function er(e,t,n,s){let o;const r=n&&n[s];if(M(e)||Z(e)){o=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,r&&r[l]));else{const i=Object.keys(e);o=new Array(i.length);for(let l=0,a=i.length;lfr(t)?!(t.type===Ve||t.type===ce&&!tr(t.children)):!0)?e:null}const Xn=e=>e?mr(e)?Es(e)||e.proxy:Xn(e.parent):null,kt=te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xn(e.parent),$root:e=>Xn(e.root),$emit:e=>e.emit,$options:e=>_s(e),$forceUpdate:e=>e.f||(e.f=()=>ys(e.update)),$nextTick:e=>e.n||(e.n=Ii.bind(e.proxy)),$watch:e=>Ki.bind(e)}),Rn=(e,t)=>e!==W&&!e.__isScriptSetup&&R(e,t),sl={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const T=i[t];if(T!==void 0)switch(T){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Rn(s,t))return i[t]=1,s[t];if(o!==W&&R(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&R(u,t))return i[t]=3,r[t];if(n!==W&&R(n,t))return i[t]=4,n[t];Zn&&(i[t]=0)}}const d=kt[t];let h,v;if(d)return t==="$attrs"&&me(e,"get",t),d(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==W&&R(n,t))return i[t]=4,n[t];if(v=a.config.globalProperties,R(v,t))return v[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Rn(o,t)?(o[t]=n,!0):s!==W&&R(s,t)?(s[t]=n,!0):R(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let l;return!!n[i]||e!==W&&R(e,i)||Rn(t,i)||(l=r[0])&&R(l,i)||R(s,i)||R(kt,i)||R(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:R(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ol(){return rl().slots}function rl(){const e=hr();return e.setupContext||(e.setupContext=yr(e))}function Ws(e){return M(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zn=!0;function il(e){const t=_s(e),n=e.proxy,s=e.ctx;Zn=!1,t.beforeCreate&&Vs(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:u,created:d,beforeMount:h,mounted:v,beforeUpdate:T,updated:L,activated:$,deactivated:U,beforeDestroy:Q,beforeUnmount:G,destroyed:ee,unmounted:O,render:se,renderTracked:Ie,renderTriggered:$e,errorCaptured:F,serverPrefetch:Y,expose:z,inheritAttrs:le,components:S,directives:q,filters:ge}=t;if(u&&ll(u,s,null),i)for(const X in i){const j=i[X];P(j)&&(s[X]=j.bind(n))}if(o){const X=o.call(n,n);V(X)&&(e.data=Vt(X))}if(Zn=!0,r)for(const X in r){const j=r[X],ot=P(j)?j.bind(n,n):P(j.get)?j.get.bind(n,n):Me,Jt=!P(j)&&P(j.set)?j.set.bind(n):Me,rt=Qe({get:ot,set:Jt});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Pe=>rt.value=Pe})}if(l)for(const X in l)nr(l[X],s,n,X);if(a){const X=P(a)?a.call(n):a;Reflect.ownKeys(X).forEach(j=>{pl(j,X[j])})}d&&Vs(d,e,"c");function oe(X,j){M(j)?j.forEach(ot=>X(ot.bind(n))):j&&X(j.bind(n))}if(oe(Zi,h),oe(Tn,v),oe(Qi,T),oe(Yo,L),oe(Ji,$),oe(Yi,U),oe(nl,F),oe(tl,Ie),oe(el,$e),oe(Sn,G),oe(Xo,O),oe(Gi,Y),M(z))if(z.length){const X=e.exposed||(e.exposed={});z.forEach(j=>{Object.defineProperty(X,j,{get:()=>n[j],set:ot=>n[j]=ot})})}else e.exposed||(e.exposed={});se&&e.render===Me&&(e.render=se),le!=null&&(e.inheritAttrs=le),S&&(e.components=S),q&&(e.directives=q)}function ll(e,t,n=Me){M(e)&&(e=Qn(e));for(const s in e){const o=e[s];let r;V(o)?"default"in o?r=on(o.from||s,o.default,!0):r=on(o.from||s):r=on(o),ue(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Vs(e,t,n){Ee(M(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function nr(e,t,n,s){const o=s.includes(".")?Wo(n,s):()=>n[s];if(Z(e)){const r=t[e];P(r)&&Ln(o,r)}else if(P(e))Ln(o,e.bind(n));else if(V(e))if(M(e))e.forEach(r=>nr(r,t,n,s));else{const r=P(e.handler)?e.handler.bind(n):t[e.handler];P(r)&&Ln(o,r,e)}}function _s(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(u=>fn(a,u,i,!0)),fn(a,t,i)),V(t)&&r.set(t,a),a}function fn(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&fn(e,r,n,!0),o&&o.forEach(i=>fn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=cl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const cl={data:qs,props:Js,emits:Js,methods:Nt,computed:Nt,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:Nt,directives:Nt,watch:ul,provide:qs,inject:al};function qs(e,t){return t?e?function(){return te(P(e)?e.call(this,this):e,P(t)?t.call(this,this):t)}:t:e}function al(e,t){return Nt(Qn(e),Qn(t))}function Qn(e){if(M(e)){const t={};for(let n=0;n1)return n&&P(t)?t.call(s&&s.proxy):t}}function hl(e,t,n,s=!1){const o={},r={};cn(r,Mn,1),e.propsDefaults=Object.create(null),or(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Ei(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ml(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=D(o),[a]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let h=0;h{a=!0;const[v,T]=rr(h,t,!0);te(i,v),T&&l.push(...T)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!a)return V(e)&&s.set(e,bt),bt;if(M(r))for(let d=0;d-1,T[1]=$<0||L<$,(L>-1||R(T,"default"))&&l.push(h)}}}const u=[i,l];return V(e)&&s.set(e,u),u}function Ys(e){return e[0]!=="$"}function Xs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Zs(e,t){return Xs(e)===Xs(t)}function Qs(e,t){return M(t)?t.findIndex(n=>Zs(n,e)):P(t)&&Zs(t,e)?0:-1}const ir=e=>e[0]==="_"||e==="$stable",bs=e=>M(e)?e.map(Le):[Le(e)],gl=(e,t,n)=>{if(t._n)return t;const s=Oe((...o)=>bs(t(...o)),n);return s._c=!1,s},lr=(e,t,n)=>{const s=e._ctx;for(const o in e){if(ir(o))continue;const r=e[o];if(P(r))t[o]=gl(o,r,s);else if(r!=null){const i=bs(r);t[o]=()=>i}}},cr=(e,t)=>{const n=bs(t);e.slots.default=()=>n},yl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=D(t),cn(t,"_",n)):lr(t,e.slots={})}else e.slots={},t&&cr(e,t);cn(e.slots,Mn,1)},vl=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=W;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(te(o,t),!n&&l===1&&delete o._):(r=!t.$stable,lr(t,o)),i=t}else t&&(cr(e,t),i={default:1});if(r)for(const l in o)!ir(l)&&!(l in i)&&delete o[l]};function es(e,t,n,s,o=!1){if(M(e)){e.forEach((v,T)=>es(v,t&&(M(t)?t[T]:t),n,s,o));return}if(Rt(s)&&!o)return;const r=s.shapeFlag&4?Es(s.component)||s.component.proxy:s.el,i=o?null:r,{i:l,r:a}=e,u=t&&t.r,d=l.refs===W?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==a&&(Z(u)?(d[u]=null,R(h,u)&&(h[u]=null)):ue(u)&&(u.value=null)),P(a))et(a,l,12,[i,d]);else{const v=Z(a),T=ue(a);if(v||T){const L=()=>{if(e.f){const $=v?R(h,a)?h[a]:d[a]:a.value;o?M($)&&os($,r):M($)?$.includes(r)||$.push(r):v?(d[a]=[r],R(h,a)&&(h[a]=d[a])):(a.value=[r],e.k&&(d[e.k]=a.value))}else v?(d[a]=i,R(h,a)&&(h[a]=i)):T&&(a.value=i,e.k&&(d[e.k]=i))};i?(L.id=-1,pe(L,n)):L()}}}const pe=zi;function _l(e){return bl(e)}function bl(e,t){const n=Un();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:u,setElementText:d,parentNode:h,nextSibling:v,setScopeId:T=Me,insertStaticContent:L}=e,$=(c,f,p,g=null,m=null,b=null,C=!1,_=null,x=!!f.dynamicChildren)=>{if(c===f)return;c&&!vt(c,f)&&(g=Yt(c),Pe(c,m,b,!0),c=null),f.patchFlag===-2&&(x=!1,f.dynamicChildren=null);const{type:y,ref:w,shapeFlag:E}=f;switch(y){case An:U(c,f,p,g);break;case Ve:Q(c,f,p,g);break;case rn:c==null&&G(f,p,g,C);break;case ce:S(c,f,p,g,m,b,C,_,x);break;default:E&1?se(c,f,p,g,m,b,C,_,x):E&6?q(c,f,p,g,m,b,C,_,x):(E&64||E&128)&&y.process(c,f,p,g,m,b,C,_,x,mt)}w!=null&&m&&es(w,c&&c.ref,b,f||c,!f)},U=(c,f,p,g)=>{if(c==null)s(f.el=l(f.children),p,g);else{const m=f.el=c.el;f.children!==c.children&&u(m,f.children)}},Q=(c,f,p,g)=>{c==null?s(f.el=a(f.children||""),p,g):f.el=c.el},G=(c,f,p,g)=>{[c.el,c.anchor]=L(c.children,f,p,g,c.el,c.anchor)},ee=({el:c,anchor:f},p,g)=>{let m;for(;c&&c!==f;)m=v(c),s(c,p,g),c=m;s(f,p,g)},O=({el:c,anchor:f})=>{let p;for(;c&&c!==f;)p=v(c),o(c),c=p;o(f)},se=(c,f,p,g,m,b,C,_,x)=>{C=C||f.type==="svg",c==null?Ie(f,p,g,m,b,C,_,x):Y(c,f,m,b,C,_,x)},Ie=(c,f,p,g,m,b,C,_)=>{let x,y;const{type:w,props:E,shapeFlag:A,transition:I,dirs:N}=c;if(x=c.el=i(c.type,b,E&&E.is,E),A&8?d(x,c.children):A&16&&F(c.children,x,null,g,m,b&&w!=="foreignObject",C,_),N&&it(c,null,g,"created"),$e(x,c,c.scopeId,C,g),E){for(const B in E)B!=="value"&&!sn(B)&&r(x,B,null,E[B],b,c.children,g,m,je);"value"in E&&r(x,"value",null,E.value),(y=E.onVnodeBeforeMount)&&Ne(y,g,c)}N&&it(c,null,g,"beforeMount");const H=(!m||m&&!m.pendingBranch)&&I&&!I.persisted;H&&I.beforeEnter(x),s(x,f,p),((y=E&&E.onVnodeMounted)||H||N)&&pe(()=>{y&&Ne(y,g,c),H&&I.enter(x),N&&it(c,null,g,"mounted")},m)},$e=(c,f,p,g,m)=>{if(p&&T(c,p),g)for(let b=0;b{for(let y=x;y{const _=f.el=c.el;let{patchFlag:x,dynamicChildren:y,dirs:w}=f;x|=c.patchFlag&16;const E=c.props||W,A=f.props||W;let I;p&<(p,!1),(I=A.onVnodeBeforeUpdate)&&Ne(I,p,f,c),w&&it(f,c,p,"beforeUpdate"),p&<(p,!0);const N=m&&f.type!=="foreignObject";if(y?z(c.dynamicChildren,y,_,p,g,N,b):C||j(c,f,_,null,p,g,N,b,!1),x>0){if(x&16)le(_,f,E,A,p,g,m);else if(x&2&&E.class!==A.class&&r(_,"class",null,A.class,m),x&4&&r(_,"style",E.style,A.style,m),x&8){const H=f.dynamicProps;for(let B=0;B{I&&Ne(I,p,f,c),w&&it(f,c,p,"updated")},g)},z=(c,f,p,g,m,b,C)=>{for(let _=0;_{if(p!==g){if(p!==W)for(const _ in p)!sn(_)&&!(_ in g)&&r(c,_,p[_],null,C,f.children,m,b,je);for(const _ in g){if(sn(_))continue;const x=g[_],y=p[_];x!==y&&_!=="value"&&r(c,_,y,x,C,f.children,m,b,je)}"value"in g&&r(c,"value",p.value,g.value)}},S=(c,f,p,g,m,b,C,_,x)=>{const y=f.el=c?c.el:l(""),w=f.anchor=c?c.anchor:l("");let{patchFlag:E,dynamicChildren:A,slotScopeIds:I}=f;I&&(_=_?_.concat(I):I),c==null?(s(y,p,g),s(w,p,g),F(f.children,p,w,m,b,C,_,x)):E>0&&E&64&&A&&c.dynamicChildren?(z(c.dynamicChildren,A,p,m,b,C,_),(f.key!=null||m&&f===m.subTree)&&ar(c,f,!0)):j(c,f,p,w,m,b,C,_,x)},q=(c,f,p,g,m,b,C,_,x)=>{f.slotScopeIds=_,c==null?f.shapeFlag&512?m.ctx.activate(f,p,g,C,x):ge(f,p,g,m,b,C,x):It(c,f,x)},ge=(c,f,p,g,m,b,C)=>{const _=c.component=Il(c,g,m);if(qo(c)&&(_.ctx.renderer=mt),$l(_),_.asyncDep){if(m&&m.registerDep(_,oe),!c.el){const x=_.subTree=he(Ve);Q(null,x,f,p)}return}oe(_,c,f,p,m,b,C)},It=(c,f,p)=>{const g=f.component=c.component;if(ji(c,f,p))if(g.asyncDep&&!g.asyncResolved){X(g,f,p);return}else g.next=f,Pi(g.update),g.update();else f.el=c.el,g.vnode=f},oe=(c,f,p,g,m,b,C)=>{const _=()=>{if(c.isMounted){let{next:w,bu:E,u:A,parent:I,vnode:N}=c,H=w,B;lt(c,!1),w?(w.el=N.el,X(c,w,C)):w=N,E&&Fn(E),(B=w.props&&w.props.onVnodeBeforeUpdate)&&Ne(B,I,w,N),lt(c,!0);const ne=Nn(c),Te=c.subTree;c.subTree=ne,$(Te,ne,h(Te.el),Yt(Te),c,m,b),w.el=ne.el,H===null&&Hi(c,ne.el),A&&pe(A,m),(B=w.props&&w.props.onVnodeUpdated)&&pe(()=>Ne(B,I,w,N),m)}else{let w;const{el:E,props:A}=f,{bm:I,m:N,parent:H}=c,B=Rt(f);if(lt(c,!1),I&&Fn(I),!B&&(w=A&&A.onVnodeBeforeMount)&&Ne(w,H,f),lt(c,!0),E&&$n){const ne=()=>{c.subTree=Nn(c),$n(E,c.subTree,c,m,null)};B?f.type.__asyncLoader().then(()=>!c.isUnmounted&&ne()):ne()}else{const ne=c.subTree=Nn(c);$(null,ne,p,g,c,m,b),f.el=ne.el}if(N&&pe(N,m),!B&&(w=A&&A.onVnodeMounted)){const ne=f;pe(()=>Ne(w,H,ne),m)}(f.shapeFlag&256||H&&Rt(H.vnode)&&H.vnode.shapeFlag&256)&&c.a&&pe(c.a,m),c.isMounted=!0,f=p=g=null}},x=c.effect=new cs(_,()=>ys(y),c.scope),y=c.update=()=>x.run();y.id=c.uid,lt(c,!0),y()},X=(c,f,p)=>{f.component=c;const g=c.vnode.props;c.vnode=f,c.next=null,ml(c,f.props,g,p),vl(c,f.children,p),Mt(),Us(),Ot()},j=(c,f,p,g,m,b,C,_,x=!1)=>{const y=c&&c.children,w=c?c.shapeFlag:0,E=f.children,{patchFlag:A,shapeFlag:I}=f;if(A>0){if(A&128){Jt(y,E,p,g,m,b,C,_,x);return}else if(A&256){ot(y,E,p,g,m,b,C,_,x);return}}I&8?(w&16&&je(y,m,b),E!==y&&d(p,E)):w&16?I&16?Jt(y,E,p,g,m,b,C,_,x):je(y,m,b,!0):(w&8&&d(p,""),I&16&&F(E,p,g,m,b,C,_,x))},ot=(c,f,p,g,m,b,C,_,x)=>{c=c||bt,f=f||bt;const y=c.length,w=f.length,E=Math.min(y,w);let A;for(A=0;Aw?je(c,m,b,!0,!1,E):F(f,p,g,m,b,C,_,x,E)},Jt=(c,f,p,g,m,b,C,_,x)=>{let y=0;const w=f.length;let E=c.length-1,A=w-1;for(;y<=E&&y<=A;){const I=c[y],N=f[y]=x?Ze(f[y]):Le(f[y]);if(vt(I,N))$(I,N,p,null,m,b,C,_,x);else break;y++}for(;y<=E&&y<=A;){const I=c[E],N=f[A]=x?Ze(f[A]):Le(f[A]);if(vt(I,N))$(I,N,p,null,m,b,C,_,x);else break;E--,A--}if(y>E){if(y<=A){const I=A+1,N=IA)for(;y<=E;)Pe(c[y],m,b,!0),y++;else{const I=y,N=y,H=new Map;for(y=N;y<=A;y++){const ye=f[y]=x?Ze(f[y]):Le(f[y]);ye.key!=null&&H.set(ye.key,y)}let B,ne=0;const Te=A-N+1;let gt=!1,$s=0;const $t=new Array(Te);for(y=0;y=Te){Pe(ye,m,b,!0);continue}let Fe;if(ye.key!=null)Fe=H.get(ye.key);else for(B=N;B<=A;B++)if($t[B-N]===0&&vt(ye,f[B])){Fe=B;break}Fe===void 0?Pe(ye,m,b,!0):($t[Fe-N]=y+1,Fe>=$s?$s=Fe:gt=!0,$(ye,f[Fe],p,null,m,b,C,_,x),ne++)}const Ps=gt?xl($t):bt;for(B=Ps.length-1,y=Te-1;y>=0;y--){const ye=N+y,Fe=f[ye],Fs=ye+1{const{el:b,type:C,transition:_,children:x,shapeFlag:y}=c;if(y&6){rt(c.component.subTree,f,p,g);return}if(y&128){c.suspense.move(f,p,g);return}if(y&64){C.move(c,f,p,mt);return}if(C===ce){s(b,f,p);for(let E=0;E_.enter(b),m);else{const{leave:E,delayLeave:A,afterLeave:I}=_,N=()=>s(b,f,p),H=()=>{E(b,()=>{N(),I&&I()})};A?A(b,N,H):H()}else s(b,f,p)},Pe=(c,f,p,g=!1,m=!1)=>{const{type:b,props:C,ref:_,children:x,dynamicChildren:y,shapeFlag:w,patchFlag:E,dirs:A}=c;if(_!=null&&es(_,null,p,c,!0),w&256){f.ctx.deactivate(c);return}const I=w&1&&A,N=!Rt(c);let H;if(N&&(H=C&&C.onVnodeBeforeUnmount)&&Ne(H,f,c),w&6)Pr(c.component,p,g);else{if(w&128){c.suspense.unmount(p,g);return}I&&it(c,null,f,"beforeUnmount"),w&64?c.type.remove(c,f,p,m,mt,g):y&&(b!==ce||E>0&&E&64)?je(y,f,p,!1,!0):(b===ce&&E&384||!m&&w&16)&&je(x,f,p),g&&Os(c)}(N&&(H=C&&C.onVnodeUnmounted)||I)&&pe(()=>{H&&Ne(H,f,c),I&&it(c,null,f,"unmounted")},p)},Os=c=>{const{type:f,el:p,anchor:g,transition:m}=c;if(f===ce){$r(p,g);return}if(f===rn){O(c);return}const b=()=>{o(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:_}=m,x=()=>C(p,b);_?_(c.el,b,x):x()}else b()},$r=(c,f)=>{let p;for(;c!==f;)p=v(c),o(c),c=p;o(f)},Pr=(c,f,p)=>{const{bum:g,scope:m,update:b,subTree:C,um:_}=c;g&&Fn(g),m.stop(),b&&(b.active=!1,Pe(C,c,f,p)),_&&pe(_,f),pe(()=>{c.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},je=(c,f,p,g=!1,m=!1,b=0)=>{for(let C=b;Cc.shapeFlag&6?Yt(c.component.subTree):c.shapeFlag&128?c.suspense.next():v(c.anchor||c.el),Is=(c,f,p)=>{c==null?f._vnode&&Pe(f._vnode,null,null,!0):$(f._vnode||null,c,f,null,null,null,p),Us(),Ho(),f._vnode=c},mt={p:$,um:Pe,m:rt,r:Os,mt:ge,mc:F,pc:j,pbc:z,n:Yt,o:e};let In,$n;return t&&([In,$n]=t(mt)),{render:Is,hydrate:In,createApp:dl(Is,In)}}function lt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ar(e,t,n=!1){const s=e.children,o=t.children;if(M(s)&&M(o))for(let r=0;r>1,e[n[l]]0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const Cl=e=>e.__isTeleport,ce=Symbol.for("v-fgt"),An=Symbol.for("v-txt"),Ve=Symbol.for("v-cmt"),rn=Symbol.for("v-stc"),Dt=[];let Ae=null;function J(e=!1){Dt.push(Ae=e?null:[])}function El(){Dt.pop(),Ae=Dt[Dt.length-1]||null}let Kt=1;function Gs(e){Kt+=e}function ur(e){return e.dynamicChildren=Kt>0?Ae||bt:null,El(),Kt>0&&Ae&&Ae.push(e),e}function ve(e,t,n,s,o,r){return ur(k(e,t,n,s,o,r,!0))}function De(e,t,n,s,o){return ur(he(e,t,n,s,o,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function vt(e,t){return e.type===t.type&&e.key===t.key}const Mn="__vInternal",dr=({key:e})=>e??null,ln=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||ue(e)||P(e)?{i:fe,r:e,k:t,f:!!n}:e:null);function k(e,t=null,n=null,s=0,o=null,r=e===ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dr(t),ref:t&&ln(t),scopeId:Cn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:fe};return l?(xs(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Z(n)?8:16),Kt>0&&!i&&Ae&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ae.push(a),a}const he=Tl;function Tl(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Zo)&&(e=Ve),fr(e)){const l=pt(e,t,!0);return n&&xs(l,n),Kt>0&&!r&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag|=-2,l}if(Ll(e)&&(e=e.__vccOpts),t){t=pr(t);let{class:l,style:a}=t;l&&!Z(l)&&(t.class=Ke(l)),V(a)&&(Lo(a)&&!M(a)&&(a=te({},a)),t.style=nt(a))}const i=Z(e)?1:Ui(e)?128:Cl(e)?64:V(e)?4:P(e)?2:0;return k(e,t,n,s,o,i,r,!0)}function pr(e){return e?Lo(e)||Mn in e?te({},e):e:null}function pt(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,l=t?Al(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&dr(l),ref:t&&t.ref?n&&o?M(o)?o.concat(ln(t)):[o,ln(t)]:ln(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Sl(e=" ",t=0){return he(An,null,e,t)}function wl(e,t){const n=he(rn,null,e);return n.staticCount=t,n}function Lt(e="",t=!1){return t?(J(),De(Ve,null,e)):he(Ve,null,e)}function Le(e){return e==null||typeof e=="boolean"?he(Ve):M(e)?he(ce,null,e.slice()):typeof e=="object"?Ze(e):he(An,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function xs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(M(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),xs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Mn in t)?t._ctx=fe:o===3&&fe&&(fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else P(t)?(t={default:t,_ctx:fe},n=32):(t=String(t),s&64?(n=16,t=[Sl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Al(...e){const t={};for(let n=0;nie||fe;let Cs,yt,eo="__VUE_INSTANCE_SETTERS__";(yt=Un()[eo])||(yt=Un()[eo]=[]),yt.push(e=>ie=e),Cs=e=>{yt.length>1?yt.forEach(t=>t(e)):yt[0](e)};const wt=e=>{Cs(e),e.scope.on()},dt=()=>{ie&&ie.scope.off(),Cs(null)};function mr(e){return e.vnode.shapeFlag&4}let Wt=!1;function $l(e,t=!1){Wt=t;const{props:n,children:s}=e.vnode,o=mr(e);hl(e,n,o,t),yl(e,s);const r=o?Pl(e,t):void 0;return Wt=!1,r}function Pl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,sl));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?yr(e):null;wt(e),Mt();const r=et(s,e,0,[e.props,o]);if(Ot(),dt(),_o(r)){if(r.then(dt,dt),t)return r.then(i=>{to(e,i,t)}).catch(i=>{bn(i,e,0)});e.asyncDep=r}else to(e,r,t)}else gr(e,t)}function to(e,t,n){P(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:V(t)&&(e.setupState=Do(t)),gr(e,n)}let no;function gr(e,t,n){const s=e.type;if(!e.render){if(!t&&no&&!s.render){const o=s.template||_s(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,u=te(te({isCustomElement:r,delimiters:l},i),a);s.render=no(o,u)}}e.render=s.render||Me}wt(e),Mt(),il(e),Ot(),dt()}function Fl(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return me(e,"get","$attrs"),t[n]}}))}function yr(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Fl(e)},slots:e.slots,emit:e.emit,expose:t}}function Es(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Do(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kt)return kt[n](e)},has(t,n){return n in t||n in kt}}))}function Nl(e,t=!0){return P(e)?e.displayName||e.name:e.name||t&&e.__name}function Ll(e){return P(e)&&"__vccOpts"in e}const Qe=(e,t)=>Mi(e,t,Wt),Rl=Symbol.for("v-scx"),kl=()=>on(Rl),Dl="3.3.4",Bl="http://www.w3.org/2000/svg",ut=typeof document<"u"?document:null,so=ut&&ut.createElement("template"),jl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t?ut.createElementNS(Bl,e):ut.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{so.innerHTML=s?`${e}`:e;const l=so.content;if(s){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Hl(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ul(e,t,n){const s=e.style,o=Z(n);if(n&&!o){if(t&&!Z(t))for(const r in t)n[r]==null&&ts(s,r,"");for(const r in n)ts(s,r,n[r])}else{const r=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=r)}}const oo=/\s*!important$/;function ts(e,t,n){if(M(n))n.forEach(s=>ts(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=zl(e,t);oo.test(n)?e.setProperty(At(s),n.replace(oo,""),"important"):e[s]=n}}const ro=["Webkit","Moz","ms"],kn={};function zl(e,t){const n=kn[t];if(n)return n;let s=ke(t);if(s!=="filter"&&s in e)return kn[t]=s;s=yn(s);for(let o=0;oDn||(Xl.then(()=>Dn=0),Dn=Date.now());function Ql(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ee(Gl(s,n.value),t,5,[s])};return n.value=e,n.attached=Zl(),n}function Gl(e,t){if(M(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const co=/^on[a-z]/,ec=(e,t,n,s,o=!1,r,i,l,a)=>{t==="class"?Hl(e,s,o):t==="style"?Ul(e,n,s):hn(t)?ss(t)||Jl(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tc(e,t,s,o))?Wl(e,t,s,r,i,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Kl(e,t,s,o))};function tc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&co.test(t)&&P(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||co.test(t)&&Z(n)?!1:t in e}const Ye="transition",Pt="animation",vr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},nc=te({},Vi,vr),ct=(e,t=[])=>{M(e)?e.forEach(n=>n(...t)):e&&e(...t)},ao=e=>e?M(e)?e.some(t=>t.length>1):e.length>1:!1;function sc(e){const t={};for(const S in e)S in vr||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:u=i,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:T=`${n}-leave-to`}=e,L=oc(o),$=L&&L[0],U=L&&L[1],{onBeforeEnter:Q,onEnter:G,onEnterCancelled:ee,onLeave:O,onLeaveCancelled:se,onBeforeAppear:Ie=Q,onAppear:$e=G,onAppearCancelled:F=ee}=t,Y=(S,q,ge)=>{Xe(S,q?d:l),Xe(S,q?u:i),ge&&ge()},z=(S,q)=>{S._isLeaving=!1,Xe(S,h),Xe(S,T),Xe(S,v),q&&q()},le=S=>(q,ge)=>{const It=S?$e:G,oe=()=>Y(q,S,ge);ct(It,[q,oe]),uo(()=>{Xe(q,S?a:r),He(q,S?d:l),ao(It)||fo(q,s,$,oe)})};return te(t,{onBeforeEnter(S){ct(Q,[S]),He(S,r),He(S,i)},onBeforeAppear(S){ct(Ie,[S]),He(S,a),He(S,u)},onEnter:le(!1),onAppear:le(!0),onLeave(S,q){S._isLeaving=!0;const ge=()=>z(S,q);He(S,h),br(),He(S,v),uo(()=>{S._isLeaving&&(Xe(S,h),He(S,T),ao(O)||fo(S,s,U,ge))}),ct(O,[S,ge])},onEnterCancelled(S){Y(S,!1),ct(ee,[S])},onAppearCancelled(S){Y(S,!0),ct(F,[S])},onLeaveCancelled(S){z(S),ct(se,[S])}})}function oc(e){if(e==null)return null;if(V(e))return[Bn(e.enter),Bn(e.leave)];{const t=Bn(e);return[t,t]}}function Bn(e){return jr(e)}function He(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Xe(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function uo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rc=0;function fo(e,t,n,s){const o=e._endId=++rc,r=()=>{o===e._endId&&s()};if(n)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=_r(e,t);if(!i)return s();const u=i+"end";let d=0;const h=()=>{e.removeEventListener(u,v),r()},v=T=>{T.target===e&&++d>=a&&h()};setTimeout(()=>{d(n[L]||"").split(", "),o=s(`${Ye}Delay`),r=s(`${Ye}Duration`),i=po(o,r),l=s(`${Pt}Delay`),a=s(`${Pt}Duration`),u=po(l,a);let d=null,h=0,v=0;t===Ye?i>0&&(d=Ye,h=i,v=r.length):t===Pt?u>0&&(d=Pt,h=u,v=a.length):(h=Math.max(i,u),d=h>0?i>u?Ye:Pt:null,v=d?d===Ye?r.length:a.length:0);const T=d===Ye&&/\b(transform|all)(,|$)/.test(s(`${Ye}Property`).toString());return{type:d,timeout:h,propCount:v,hasTransform:T}}function po(e,t){for(;e.lengthho(n)+ho(e[s])))}function ho(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function br(){return document.body.offsetHeight}const xr=new WeakMap,Cr=new WeakMap,Er={name:"TransitionGroup",props:te({},nc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=hr(),s=Wi();let o,r;return Yo(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!uc(o[0].el,n.vnode.el,i))return;o.forEach(lc),o.forEach(cc);const l=o.filter(ac);br(),l.forEach(a=>{const u=a.el,d=u.style;He(u,i),d.transform=d.webkitTransform=d.transitionDuration="";const h=u._moveCb=v=>{v&&v.target!==u||(!v||/transform$/.test(v.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,Xe(u,i))};u.addEventListener("transitionend",h)})}),()=>{const i=D(e),l=sc(i);let a=i.tag||ce;o=r,r=t.default?Vo(t.default()):[];for(let u=0;udelete e.mode;Er.props;const Tr=Er;function lc(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function cc(e){Cr.set(e,e.el.getBoundingClientRect())}function ac(e){const t=xr.get(e),n=Cr.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${o}px)`,r.transitionDuration="0s",e}}function uc(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=_r(s);return o.removeChild(s),r}const fc=te({patchProp:ec},jl);let mo;function dc(){return mo||(mo=_l(fc))}const pc=(...e)=>{const t=dc().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=hc(s);if(!o)return;const r=t._component;!P(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function hc(e){return Z(e)?document.querySelector(e):e}function mc(e){return{all:e=e||new Map,on:function(t,n){var s=e.get(t);s?s.push(n):e.set(t,[n])},off:function(t,n){var s=e.get(t);s&&(n?s.splice(s.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var s=e.get(t);s&&s.slice().map(function(o){o(n)}),(s=e.get("*"))&&s.slice().map(function(o){o(t,n)})}}}const pn=mc(),Sr=new Map,go={x:["left","center","right"],y:["top","bottom"]},gc=(e=>()=>e++)(0),yc=e=>typeof e!="string"?[]:e.split(/\s+/gi).filter(t=>t),vc=e=>{typeof e=="string"&&(e=yc(e));let t=null,n=null;return e.forEach(s=>{go.y.indexOf(s)!==-1&&(n=s),go.x.indexOf(s)!==-1&&(t=s)}),{x:t,y:n}};class _c{constructor(t,n,s){this.remaining=n,this.callback=t,this.notifyItem=s,this.resume()}pause(){clearTimeout(this.notifyItem.timer),this.remaining-=Date.now()-this.start}resume(){this.start=Date.now(),clearTimeout(this.notifyItem.timer),this.notifyItem.timer=setTimeout(this.callback,this.remaining)}}const jn={position:["top","right"],cssAnimation:"vn-fade",velocityAnimation:{enter:e=>({height:[e.clientHeight,0],opacity:[1,0]}),leave:{height:0,opacity:[0,1]}}},bc=Be({name:"velocity-group",emits:["after-leave","leave","enter"],methods:{enter(e,t){this.$emit("enter",e,t)},leave(e,t){this.$emit("leave",e,t)},afterLeave(){this.$emit("after-leave")}}}),Ts=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n};function xc(e,t,n,s,o,r){return J(),De(Tr,{tag:"span",css:!1,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.afterLeave},{default:Oe(()=>[St(e.$slots,"default")]),_:3},8,["onEnter","onLeave","onAfterLeave"])}const Cc=Ts(bc,[["render",xc]]),Ec=Be({name:"css-group",inheritAttrs:!1,props:{name:{type:String,required:!0}}});function Tc(e,t,n,s,o,r){return J(),De(Tr,{tag:"span",name:e.name},{default:Oe(()=>[St(e.$slots,"default")]),_:3},8,["name"])}const Sc=Ts(Ec,[["render",Tc]]),Hn="[-+]?[0-9]*.?[0-9]+",yo=[{name:"px",regexp:new RegExp(`^${Hn}px$`)},{name:"%",regexp:new RegExp(`^${Hn}%$`)},{name:"px",regexp:new RegExp(`^${Hn}$`)}],wc=e=>{if(e==="auto")return{type:e,value:0};for(let t=0;t{switch(typeof e){case"number":return{type:"px",value:e};case"string":return wc(e);default:return{type:"",value:e}}},nn={IDLE:0,DESTROYED:2},Mc=Be({name:"notifications",components:{VelocityGroup:Cc,CssGroup:Sc},props:{group:{type:String,default:""},width:{type:[Number,String],default:300},reverse:{type:Boolean,default:!1},position:{type:[String,Array],default:jn.position},classes:{type:String,default:"vue-notification"},animationType:{type:String,default:"css"},animation:{type:Object,default:jn.velocityAnimation},animationName:{type:String,default:jn.cssAnimation},speed:{type:Number,default:300},cooldown:{type:Number,default:0},duration:{type:Number,default:3e3},delay:{type:Number,default:0},max:{type:Number,default:1/0},ignoreDuplicates:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!1}},emits:["click","destroy","start"],data(){return{list:[],velocity:Sr.get("velocity"),timerControl:null}},computed:{actualWidth(){return Ac(this.width)},isVA(){return this.animationType==="velocity"},componentName(){return this.isVA?"velocity-group":"css-group"},styles(){const{x:e,y:t}=vc(this.position),n=this.actualWidth.value,s=this.actualWidth.type,o={width:n+s};return t&&(o[t]="0px"),e&&(e==="center"?o.left=`calc(50% - ${+n/2}${s})`:o[e]="0px"),o},active(){return this.list.filter(e=>e.state!==nn.DESTROYED)},botToTop(){return this.styles.hasOwnProperty("bottom")}},mounted(){pn.on("add",this.addItem),pn.on("close",this.closeItem)},methods:{destroyIfNecessary(e){this.$emit("click",e),this.closeOnClick&&this.destroy(e)},pauseTimeout(){var e;this.pauseOnHover&&((e=this.timerControl)==null||e.pause())},resumeTimeout(){var e;this.pauseOnHover&&((e=this.timerControl)==null||e.resume())},addItem(e={}){if(e.group||(e.group=""),e.data||(e.data={}),this.group!==e.group)return;if(e.clean||e.clear){this.destroyAll();return}const t=typeof e.duration=="number"?e.duration:this.duration,n=typeof e.speed=="number"?e.speed:this.speed,s=typeof e.ignoreDuplicates=="boolean"?e.ignoreDuplicates:this.ignoreDuplicates,{title:o,text:r,type:i,data:l,id:a}=e,u={id:a||gc(),title:o,text:r,type:i,state:nn.IDLE,speed:n,length:t+2*n,data:l};t>=0&&(this.timerControl=new _c(()=>this.destroy(u),u.length,u));const d=this.reverse?!this.botToTop:this.botToTop;let h=-1;const v=this.active.some(T=>T.title===e.title&&T.text===e.text);(!s||!v)&&(d?(this.list.push(u),this.$emit("start",u),this.active.length>this.max&&(h=0)):(this.list.unshift(u),this.$emit("start",u),this.active.length>this.max&&(h=this.active.length-1)),h!==-1&&this.destroy(this.active[h]))},closeItem(e){this.destroyById(e)},notifyClass(e){return["vue-notification-template",this.classes,e.type||""]},notifyWrapperStyle(e){return this.isVA?void 0:{transition:`all ${e.speed}ms`}},destroy(e){clearTimeout(e.timer),e.state=nn.DESTROYED,this.clean(),this.$emit("destroy",e)},destroyById(e){const t=this.list.find(n=>n.id===e);t&&this.destroy(t)},destroyAll(){this.active.forEach(this.destroy)},getAnimation(e,t){var n;const s=(n=this.animation)==null?void 0:n[e];return typeof s=="function"?s.call(this,t):s},enter(e,t){if(!this.isVA)return;const n=this.getAnimation("enter",e);this.velocity(e,n,{duration:this.speed,complete:t})},leave(e,t){if(!this.isVA)return;const n=this.getAnimation("leave",e);this.velocity(e,n,{duration:this.speed,complete:t})},clean(){this.list=this.list.filter(e=>e.state!==nn.DESTROYED)}}}),Oc=["data-id"],Ic=["onClick"],$c=["innerHTML"],Pc=["innerHTML"];function Fc(e,t,n,s,o,r){return J(),ve("div",{class:"vue-notification-group",style:nt(e.styles)},[(J(),De(Qo(e.componentName),{name:e.animationName,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.clean},{default:Oe(()=>[(J(!0),ve(ce,null,er(e.active,i=>(J(),ve("div",{key:i.id,class:"vue-notification-wrapper",style:nt(e.notifyWrapperStyle(i)),"data-id":i.id,onMouseenter:t[0]||(t[0]=(...l)=>e.pauseTimeout&&e.pauseTimeout(...l)),onMouseleave:t[1]||(t[1]=(...l)=>e.resumeTimeout&&e.resumeTimeout(...l))},[St(e.$slots,"body",{class:Ke([e.classes,i.type]),item:i,close:()=>e.destroy(i)},()=>[k("div",{class:Ke(e.notifyClass(i)),onClick:l=>e.destroyIfNecessary(i)},[i.title?(J(),ve("div",{key:0,class:"notification-title",innerHTML:i.title},null,8,$c)):Lt("",!0),k("div",{class:"notification-content",innerHTML:i.text},null,8,Pc)],10,Ic)])],44,Oc))),128))]),_:3},40,["name","onEnter","onLeave","onAfterLeave"]))],4)}const Nc=Ts(Mc,[["render",Fc]]),Ce=e=>{typeof e=="string"&&(e={title:"",text:e}),typeof e=="object"&&pn.emit("add",e)};Ce.close=e=>{pn.emit("close",e)};function Lc(e,t={}){Object.entries(t).forEach(s=>Sr.set(...s));const n=t.name||"notify";e.config.globalProperties["$"+n]=Ce,e.component(t.componentName||"Notifications",Nc)}const Rc={install:Lc};(function(){var e;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,t.appendChild(document.createTextNode(".vue-notification-group{display:block;position:fixed;z-index:5000}.vue-notification-wrapper{display:block;overflow:hidden;width:100%;margin:0;padding:0}.notification-title{font-weight:600}.vue-notification-template{display:block;box-sizing:border-box;background:white;text-align:left}.vue-notification{display:block;box-sizing:border-box;text-align:left;font-size:12px;padding:10px;margin:0 5px 5px;color:#fff;background:#44A4FC;border-left:5px solid #187FE7}.vue-notification.warn{background:#ffb648;border-left-color:#f48a06}.vue-notification.error{background:#E54D42;border-left-color:#b82e24}.vue-notification.success{background:#68CD86;border-left-color:#42a85f}.vn-fade-enter-active,.vn-fade-leave-active,.vn-fade-move{transition:all .5s}.vn-fade-enter-from,.vn-fade-leave-to{opacity:0}")),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const re=Vt({transitionTime:200,animationType:"slideDown",modalStyle:{padding:void 0,align:"center","z-index":201},overlayStyle:{"background-color":"rgba(0, 0, 0, 0.9)","z-index":200}});function kc(e){var t,n,s,o,r;e!=null&&e.transitionTime&&(re.transitionTime=e.transitionTime),e!=null&&e.animationType&&(re.animationType=e.animationType),e!=null&&e.modalStyle&&((t=e.modalStyle)!=null&&t.padding&&(re.modalStyle.padding=e.modalStyle.padding),(n=e.modalStyle)!=null&&n.align&&(re.modalStyle.align=e.modalStyle.align),(s=e.modalStyle)!=null&&s["z-index"]&&(re.modalStyle["z-index"]=e.modalStyle["z-index"])),(o=e==null?void 0:e.overlayStyle)!=null&&o["z-index"]&&(re.overlayStyle["z-index"]=e.overlayStyle["z-index"]),(r=e==null?void 0:e.overlayStyle)!=null&&r["background-color"]&&(re.overlayStyle["background-color"]=e.overlayStyle["background-color"])}const be=Vt({modals:[]});Qe(()=>be.modals.length>0);function Dc(e,t,n){be.modals.push(ps({component:e,props:t,options:n}))}function Bc(){be.modals.pop()}var jc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wr={exports:{}};(function(e,t){(function(n,s){e.exports=s(),e.exports.default=e.exports})(jc,function(){var n=function(){this.listeners={},this.registerListener=function(o,r,i){var l=o.constructor.name;i=this.validateNumber(i||"any"),l!=="Array"&&(o=[o]),o.forEach(function(a){if(a.constructor.name!=="String")throw new Error("Only `String` and array of `String` are accepted for the event names!");s.listeners[a]=s.listeners[a]||[],s.listeners[a].push({callback:r,number:i})})},this.validateNumber=function(o){var r=o.constructor.name;if(r==="Number")return o;if(r==="String"&&o.toLowerCase()==="any")return"any";throw new Error("Only `Number` and `any` are accepted in the number of possible executions!")},this.toBeRemoved=function(o){var r=o.number;return o.execution=o.execution||0,o.execution++,!(r==="any"||o.execution=0)){var a=l.replace(/\*\*/,"([^.]+.?)+");a=a.replace(/\*/g,"[^.]+");var u=o.match(a);u&&o===u[0]&&Array.prototype.push.apply(i,s.listeners[l])}var d=arguments;r=r||this,i.forEach(function(h,v){var T=h.callback;h.number,r&&(T=T.bind(r));var L=[];Object.keys(d).map(function($){$>1&&L.push(d[$])}),s.toBeRemoved(h)&&s.listeners[o].splice(v,1),T.apply(null,L)})}}};return n})})(wr);var Uc=wr.exports;const zc=Hc(Uc),Ss=new zc;function ht(e,...t){Ss.emit(e,null,...t)}function ze(e,t){Ss.on(e,t)}function tt(e,t){Ss.detach(e,t)}var K=(e=>(e.Open="open",e.Opened="opened",e.Close="close",e.Closed="closed",e))(K||{});function Kc(e){return"key"in e?e.key==="Escape"||e.key==="Esc":e.keyCode===27}async function Bt(e,t,n){n!=null&&n.force&&be.modals.length&&await As(!1);const s=be.modals.length;return Dc(e,t,n),ht(K.Open),new Promise((o,r)=>{function i(l){l.index===s&&(tt(K.Closed,i),l.success?o(l.data):r())}ze(K.Closed,i)})}function ws(e){return new Promise(t=>{function n(s){tt(K.Closed,n),t(s.data)}ze(K.Closed,n),ht(K.Close,{success:!0,data:e})})}function qt(){return new Promise(e=>{function t(){tt(K.Closed,t),e()}ze(K.Closed,t),ht(K.Close,{success:!1})})}function As(e=!0){return new Promise(t=>{function n(){tt(K.Closed,n);for(let s=be.modals.length-1;s>=0;s--)be.modals.splice(s,1),ht(K.Closed,{index:s,success:!1});t()}ze(K.Closed,n),ht(K.Close,{success:!1,forceCloseAll:e})})}const Wc=Be({__name:"BaseModal",props:{index:{type:Number,required:!0},item:{type:Object}},setup(e){const t=e,n=ms(!1),s=Qe(()=>t.index!==be.modals.length-1),o=Qe(()=>re.animationType!=="none"&&re.transitionTime||0),r=Qe(()=>{var u,d,h,v,T,L,$,U;return{padding:((h=(d=(u=t.item)==null?void 0:u.options)==null?void 0:d.modalStyle)==null?void 0:h.padding)??((v=re.modalStyle)==null?void 0:v.padding),"z-index":(($=(L=(T=t.item)==null?void 0:T.options)==null?void 0:L.modalStyle)==null?void 0:$["z-index"])??((U=re.modalStyle)==null?void 0:U["z-index"]),transition:`opacity ${o.value}ms ease, visibility ${o.value}ms ease, transform ${o.value}ms ease`}}),i=Qe(()=>{var u,d,h,v;return[{"vue-modal--active":n.value,"vue-modal--hide":s.value},`vue-modal--${((h=(d=(u=t.item)==null?void 0:u.options)==null?void 0:d.modalStyle)==null?void 0:h.align)??((v=re.modalStyle)==null?void 0:v.align)}`,`vue-modal--${re.animationType}`]});function l(u){be.modals.length-1===t.index&&(n.value=!1,setTimeout(ht,o.value,K.Closed,{index:t.index,success:u.success,data:u.data}))}function a(u){Kc(u)&&be.modals.length-1===t.index&&qt()}return Tn(()=>{setTimeout(()=>{n.value=!0},t.index>0?o.value:0),ze(K.Close,l),document.addEventListener("keydown",a),ht(K.Opened)}),Sn(()=>{tt(K.Close,l),document.removeEventListener("keydown",a)}),(u,d)=>(J(),ve("div",{class:Ke(["vue-modal",i.value]),style:nt(r.value)},[St(u.$slots,"default",{},void 0,!0)],6))}});const On=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Vc=On(Wc,[["__scopeId","data-v-0195a498"]]);function qc(){var s;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;return(s=e.parentNode)==null||s.removeChild(e),n}function Jc(){const e=ms(qc());function t(){document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>document.documentElement.clientHeight&&(document.body.style.paddingRight=`${e.value}px`)}function n(){document.documentElement.style.overflow="auto",document.body.style.paddingRight="0px"}function s(o){o?t():n()}return{paddingSize:e,toggleLock:s}}const Yc={class:"vue-modals"},Xc=Be({__name:"ModalTarget",setup(e){const t=re.animationType!=="none"&&re.transitionTime||0,n=Qe(()=>({...re==null?void 0:re.overlayStyle,transition:`opacity ${t}ms ease, visibility ${t}ms ease`})),s=ms(!1),o=Qe(()=>be.modals.length&&!s.value);function r({forceCloseAll:u}){(be.modals.length===1&&u!==!1||u)&&(s.value=!0,setTimeout(()=>{s.value=!1},t))}const i=Jc();function l(){i.toggleLock(!1)}function a(){i.toggleLock(!0)}return Tn(()=>{ze(K.Close,r),ze(K.Closed,l),ze(K.Open,a)}),Sn(()=>{tt(K.Close,r),tt(K.Closed,l),tt(K.Open,a)}),(u,d)=>(J(),ve("div",Yc,[(J(!0),ve(ce,null,er(_e(be).modals,(h,v)=>(J(),De(Vc,{index:v,item:h,key:v},{default:Oe(()=>[(J(),De(Qo(h.component),Wr(pr(h.props)),null,16))]),_:2},1032,["index","item"]))),128)),k("div",{class:Ke(["vue-modals-overlay",{active:o.value}]),style:nt(n.value)},null,6)]))}});const Ar=On(Xc,[["__scopeId","data-v-90fab32e"]]),Zc={key:0,class:"vue-modal-header"},Qc={key:0,class:"vue-modal-title"},Gc={class:"vue-modal-body"},ea={key:1,class:"vue-modal-footer"},ta=Be({__name:"SimpleModal",props:{title:{},showClose:{type:Boolean,default:!0},size:{type:String,default:"sm",validator(e){return["sm","md","lg","xl","xxl"].includes(e)}}},setup(e){const t=e,n=ol();return(s,o)=>(J(),ve("div",{class:Ke(["vue-modal-content",`size-${t.size}`])},[t.title||t.showClose?(J(),ve("div",Zc,[t.title?(J(),ve("h1",Qc,vn(t.title),1)):Lt("",!0),t.showClose?(J(),ve("button",{key:1,onClick:o[0]||(o[0]=r=>_e(qt)()),class:"vue-modal-btn-close","aria-label":"Close"})):Lt("",!0)])):Lt("",!0),k("div",Gc,[St(s.$slots,"default",{},void 0,!0)]),_e(n).footer?(J(),ve("div",ea,[St(s.$slots,"footer",{},void 0,!0)])):Lt("",!0)],2))}});const na=On(ta,[["__scopeId","data-v-39a87773"]]);function sa(e){return{install(t){kc(e||{}),t.component("ModalTarget",Ar),t.component("SimpleModal",na),ze(K.Closed,Bc)}}}const Mr=Be({__name:"Test3Modal",props:{test:{}},setup(e){const t=e;return(n,s)=>{const o=wn("SimpleModal");return J(),De(o,{title:"Modal3",size:"sm"},{footer:Oe(()=>[k("button",{onClick:s[0]||(s[0]=r=>_e(As)()),class:"btn btn-outline-danger"}," Close All "),k("button",{onClick:s[1]||(s[1]=r=>_e(qt)()),class:"btn btn-danger"}," Close "),k("button",{onClick:s[2]||(s[2]=r=>_e(ws)({test:"modal3"})),class:"btn btn-success"}," Confirm ")]),default:Oe(()=>[k("pre",null,"props: "+vn(t),1)]),_:1})}}}),oa={class:"gap-2 d-flex"},Or=Be({__name:"Test2Modal",props:{test:{}},setup(e){const t=e;function n(s=!1){Bt(Mr,{test:"modal3 from modal2"},{force:s}).then(o=>{Ce({type:"success",title:"Success modal3 from modal2",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal3 from modal2"})})}return(s,o)=>{const r=wn("SimpleModal");return J(),De(r,{title:"Modal2",size:"sm"},{footer:Oe(()=>[k("button",{onClick:o[2]||(o[2]=i=>_e(As)()),class:"btn btn-outline-danger"}," Close All "),k("button",{onClick:o[3]||(o[3]=i=>_e(qt)()),class:"btn btn-danger"}," Close "),k("button",{onClick:o[4]||(o[4]=i=>_e(ws)({test:"modal2"})),class:"btn btn-success"}," Confirm ")]),default:Oe(()=>[k("pre",null,"props: "+vn(t),1),k("div",oa,[k("button",{onClick:o[0]||(o[0]=i=>n(!0)),class:"btn btn-primary"}," Force open modal3 "),k("button",{onClick:o[1]||(o[1]=i=>n()),class:"btn btn-primary"}," Open modal3 ")])]),_:1})}}}),ra={class:"gap-2 d-flex"},ia=Be({__name:"Test1Modal",props:{test:{}},setup(e){const t=e;function n(s=!1){Bt(Or,{test:"modal2 from modal1"},{force:s}).then(o=>{Ce({type:"success",title:"Success modal2 from modal1",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal2 from modal1"})})}return(s,o)=>{const r=wn("SimpleModal");return J(),De(r,{title:"Modal1"},{footer:Oe(()=>[k("button",{onClick:o[2]||(o[2]=i=>_e(qt)()),class:"btn btn-danger"}," Close "),k("button",{onClick:o[3]||(o[3]=i=>_e(ws)({test:"modal1"})),class:"btn btn-success"}," Confirm ")]),default:Oe(()=>[k("pre",null,"props: "+vn(t),1),k("div",ra,[k("button",{onClick:o[0]||(o[0]=i=>n(!0)),class:"btn btn-primary"}," Force open modal2 "),k("button",{onClick:o[1]||(o[1]=i=>n()),class:"btn btn-primary"}," Open modal2 ")])]),_:1})}}}),Ir=e=>(Ri("data-v-64d9dd35"),e=e(),ki(),e),la=Ir(()=>k("div",{class:"mb-3 d-grid gap-2 d-sm-flex"},[k("img",{src:"https://img.shields.io/static/v1?label=Made%20with&message=VueJS&color=limegreen&style=for-the-badge&logo=vue.js",alt:"vuejs"})],-1)),ca=Ir(()=>k("iframe",{src:"https://ghbtns.com/github-btn.html?user=kolirt&repo=vue-modal&type=star&count=true&size=large",frameborder:"0",scrolling:"0",width:"170",height:"30",title:"GitHub",class:"mb-3"},` + `,-1)),aa=wl('

Vue3 modal package

Easy to use and highly customizable Vue3 modal package

',3),ua=Be({__name:"App",setup(e){function t(){Bt(ia,{test:"modal1"},{modalStyle:{align:"top"}}).then(o=>{Ce({type:"success",title:"Success modal1",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal1"})})}function n(){Bt(Or,{test:"modal2"}).then(o=>{Ce({type:"success",title:"Success modal2",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal2"})})}function s(){Bt(Mr,{test:"modal3"}).then(o=>{Ce({type:"success",title:"Success modal3",text:JSON.stringify(o)})}).catch(()=>{Ce({type:"error",title:"Error modal3"})})}return(o,r)=>{const i=wn("notifications");return J(),ve(ce,null,[k("div",{class:"container py-5"},[k("div",{class:"bg-body-secondary p-5 rounded"},[la,ca,aa,k("div",{class:"d-grid gap-2 d-sm-flex"},[k("button",{onClick:t,class:"btn btn-primary"}," Open modal1 "),k("button",{onClick:n,class:"btn btn-primary"}," Open modal2 "),k("button",{onClick:s,class:"btn btn-primary"}," Open modal3 ")])])]),he(i,{class:"notifications"}),he(_e(Ar))],64)}}});const fa=On(ua,[["__scopeId","data-v-64d9dd35"]]);const Ms=pc(fa);Ms.use(Rc);Ms.use(sa({transitionTime:200,animationType:"slideUp",modalStyle:{padding:"2rem 1rem"},overlayStyle:{"background-color":"rgba(0,0,0,.3)"}}));Ms.mount("#app"); diff --git a/demo/index.html b/demo/index.html index 5598866..36d3133 100644 --- a/demo/index.html +++ b/demo/index.html @@ -8,8 +8,8 @@ - - + +
diff --git a/dist/vue-modal.d.ts b/dist/vue-modal.d.ts index 8d6ee9a..b05663a 100644 --- a/dist/vue-modal.d.ts +++ b/dist/vue-modal.d.ts @@ -44,6 +44,7 @@ export declare function openModal(component: Component, props?: {}, declare type OpenModalOptions = { force?: boolean; + modalStyle?: ModalStyle; }; declare type Options = { diff --git a/dist/vue-modal.js b/dist/vue-modal.js index 9596d00..0b0f762 100644 --- a/dist/vue-modal.js +++ b/dist/vue-modal.js @@ -1,7 +1,7 @@ -(function(){var e;"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,a.appendChild(document.createTextNode(`.vue-modal[data-v-1421616b]{position:fixed;top:0;left:0;width:100%;height:100%;overflow-y:auto;opacity:0;visibility:hidden;display:flex;justify-content:center;flex-wrap:wrap}.vue-modal.vue-modal--slideDown[data-v-1421616b]{transform:translateY(-40px)}.vue-modal.vue-modal--slideUp[data-v-1421616b]{transform:translateY(40px)}.vue-modal.vue-modal--slideLeft[data-v-1421616b]{transform:translate(-40px)}.vue-modal.vue-modal--slideRight[data-v-1421616b]{transform:translate(40px)}.vue-modal.vue-modal--center[data-v-1421616b]{align-items:center}.vue-modal.vue-modal--top[data-v-1421616b]{align-items:flex-start}.vue-modal.vue-modal--active[data-v-1421616b]:not(.vue-modal--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-48abfbb2]{width:0}.vue-modals[data-v-48abfbb2] *{box-sizing:border-box}.vue-modals-overlay[data-v-48abfbb2]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-48abfbb2]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}`)),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); -import { reactive as L, computed as _, markRaw as I, defineComponent as k, ref as b, onMounted as P, onBeforeUnmount as N, openBlock as r, createElementBlock as f, normalizeClass as T, normalizeStyle as R, renderSlot as S, Fragment as H, renderList as V, unref as x, createBlock as B, withCtx as q, resolveDynamicComponent as F, normalizeProps as U, guardReactiveProps as j, createElementVNode as W, useSlots as A, toDisplayString as G, createCommentVNode as h } from "vue"; -import J from "js-event-bus"; -const s = L({ +(function(){var e;"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,a.appendChild(document.createTextNode(`.vue-modal[data-v-0195a498]{position:fixed;top:0;left:0;width:100%;height:100%;overflow-y:auto;opacity:0;visibility:hidden;display:flex;justify-content:center;flex-wrap:wrap}.vue-modal.vue-modal--slideDown[data-v-0195a498]{transform:translateY(-40px)}.vue-modal.vue-modal--slideUp[data-v-0195a498]{transform:translateY(40px)}.vue-modal.vue-modal--slideLeft[data-v-0195a498]{transform:translate(-40px)}.vue-modal.vue-modal--slideRight[data-v-0195a498]{transform:translate(40px)}.vue-modal.vue-modal--center[data-v-0195a498]{align-items:center}.vue-modal.vue-modal--top[data-v-0195a498]{align-items:flex-start}.vue-modal.vue-modal--active[data-v-0195a498]:not(.vue-modal--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-90fab32e]{width:0}.vue-modals[data-v-90fab32e] *{box-sizing:border-box}.vue-modals-overlay[data-v-90fab32e]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-90fab32e]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}`)),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); +import { reactive as W, computed as C, markRaw as q, defineComponent as b, ref as M, onMounted as D, onBeforeUnmount as I, openBlock as r, createElementBlock as v, normalizeClass as z, normalizeStyle as H, renderSlot as k, Fragment as F, renderList as U, unref as T, createBlock as R, withCtx as A, resolveDynamicComponent as G, normalizeProps as J, guardReactiveProps as K, createElementVNode as V, useSlots as Q, toDisplayString as X, createCommentVNode as x } from "vue"; +import Y from "js-event-bus"; +const d = W({ transitionTime: 200, animationType: "slideDown", modalStyle: { @@ -14,132 +14,129 @@ const s = L({ "z-index": 200 } }); -function K(e) { +function Z(e) { var o, t, l, a, c; - e != null && e.transitionTime && (s.transitionTime = e.transitionTime), e != null && e.animationType && (s.animationType = e.animationType), e != null && e.modalStyle && ((o = e.modalStyle) != null && o.padding && (s.modalStyle.padding = e.modalStyle.padding), (t = e.modalStyle) != null && t.align && (s.modalStyle.align = e.modalStyle.align), (l = e.modalStyle) != null && l["z-index"] && (s.modalStyle["z-index"] = e.modalStyle["z-index"])), (a = e == null ? void 0 : e.overlayStyle) != null && a["z-index"] && (s.overlayStyle["z-index"] = e.overlayStyle["z-index"]), (c = e == null ? void 0 : e.overlayStyle) != null && c["background-color"] && (s.overlayStyle["background-color"] = e.overlayStyle["background-color"]); + e != null && e.transitionTime && (d.transitionTime = e.transitionTime), e != null && e.animationType && (d.animationType = e.animationType), e != null && e.modalStyle && ((o = e.modalStyle) != null && o.padding && (d.modalStyle.padding = e.modalStyle.padding), (t = e.modalStyle) != null && t.align && (d.modalStyle.align = e.modalStyle.align), (l = e.modalStyle) != null && l["z-index"] && (d.modalStyle["z-index"] = e.modalStyle["z-index"])), (a = e == null ? void 0 : e.overlayStyle) != null && a["z-index"] && (d.overlayStyle["z-index"] = e.overlayStyle["z-index"]), (c = e == null ? void 0 : e.overlayStyle) != null && c["background-color"] && (d.overlayStyle["background-color"] = e.overlayStyle["background-color"]); } -const i = L({ +const i = W({ modals: [] -}), fe = _(() => i.modals.length > 0); -function Q(e, o, t) { - i.modals.push(I({ component: e, props: o, options: t })); +}), ge = C(() => i.modals.length > 0); +function w(e, o, t) { + i.modals.push(q({ component: e, props: o, options: t })); } -function X() { +function O() { i.modals.pop(); } -const M = new J(); -function g(e, ...o) { - M.emit(e, null, ...o); +const $ = new Y(); +function h(e, ...o) { + $.emit(e, null, ...o); } -function m(e, o) { - M.on(e, o); +function y(e, o) { + $.on(e, o); } -function v(e, o) { - M.detach(e, o); +function _(e, o) { + $.detach(e, o); } var n = /* @__PURE__ */ ((e) => (e.Open = "open", e.Opened = "opened", e.Close = "close", e.Closed = "closed", e))(n || {}); -function Y(e) { +function ee(e) { return "key" in e ? e.key === "Escape" || e.key === "Esc" : e.keyCode === 27; } -async function ve(e, o, t) { - t != null && t.force && i.modals.length && await Z(!1); +async function pe(e, o, t) { + t != null && t.force && i.modals.length && await oe(!1); const l = i.modals.length; - return Q( - e, - o - /*, options*/ - ), g(n.Open), new Promise((a, c) => { - function y(u) { - u.index === l && (v(n.Closed, y), u.success ? a(u.data) : c()); + return w(e, o, t), h(n.Open), new Promise((a, c) => { + function g(u) { + u.index === l && (_(n.Closed, g), u.success ? a(u.data) : c()); } - m(n.Closed, y); + y(n.Closed, g); }); } -function ye(e) { +function Ce(e) { return new Promise((o) => { function t(l) { - v(n.Closed, t), o(l.data); + _(n.Closed, t), o(l.data); } - m(n.Closed, t), g(n.Close, { success: !0, data: e }); + y(n.Closed, t), h(n.Close, { success: !0, data: e }); }); } -function D() { +function j() { return new Promise((e) => { function o() { - v(n.Closed, o), e(); + _(n.Closed, o), e(); } - m(n.Closed, o), g(n.Close, { success: !1 }); + y(n.Closed, o), h(n.Close, { success: !1 }); }); } -function Z(e = !0) { +function oe(e = !0) { return new Promise((o) => { function t() { - v(n.Closed, t); + _(n.Closed, t); for (let l = i.modals.length - 1; l >= 0; l--) - i.modals.splice(l, 1), g(n.Closed, { + i.modals.splice(l, 1), h(n.Closed, { index: l, success: !1 }); o(); } - m(n.Closed, t), g(n.Close, { success: !1, forceCloseAll: e }); + y(n.Closed, t), h(n.Close, { success: !1, forceCloseAll: e }); }); } -const w = /* @__PURE__ */ k({ +const te = /* @__PURE__ */ b({ __name: "BaseModal", props: { - index: { type: Number, required: !0 } + index: { type: Number, required: !0 }, + item: { type: Object } }, setup(e) { - const o = e, t = b(!1), l = _(() => o.index !== i.modals.length - 1), a = _(() => s.animationType !== "none" && s.transitionTime || 0), c = _(() => { - var d, C; + const o = e, t = M(!1), l = C(() => o.index !== i.modals.length - 1), a = C(() => d.animationType !== "none" && d.transitionTime || 0), c = C(() => { + var s, p, m, f, B, L, P, N; return { - padding: (d = s.modalStyle) == null ? void 0 : d.padding, - "z-index": (C = s.modalStyle) == null ? void 0 : C["z-index"], + padding: ((m = (p = (s = o.item) == null ? void 0 : s.options) == null ? void 0 : p.modalStyle) == null ? void 0 : m.padding) ?? ((f = d.modalStyle) == null ? void 0 : f.padding), + "z-index": ((P = (L = (B = o.item) == null ? void 0 : B.options) == null ? void 0 : L.modalStyle) == null ? void 0 : P["z-index"]) ?? ((N = d.modalStyle) == null ? void 0 : N["z-index"]), transition: `opacity ${a.value}ms ease, visibility ${a.value}ms ease, transform ${a.value}ms ease` }; - }), y = _(() => { - var d; + }), g = C(() => { + var s, p, m, f; return [ { "vue-modal--active": t.value, "vue-modal--hide": l.value }, - `vue-modal--${(d = s.modalStyle) == null ? void 0 : d.align}`, - `vue-modal--${s.animationType}` + `vue-modal--${((m = (p = (s = o.item) == null ? void 0 : s.options) == null ? void 0 : p.modalStyle) == null ? void 0 : m.align) ?? ((f = d.modalStyle) == null ? void 0 : f.align)}`, + `vue-modal--${d.animationType}` ]; }); - function u(d) { - i.modals.length - 1 === o.index && (t.value = !1, setTimeout(g, a.value, n.Closed, { + function u(s) { + i.modals.length - 1 === o.index && (t.value = !1, setTimeout(h, a.value, n.Closed, { index: o.index, - success: d.success, - data: d.data + success: s.success, + data: s.data })); } - function p(d) { - Y(d) && i.modals.length - 1 === o.index && D(); + function S(s) { + ee(s) && i.modals.length - 1 === o.index && j(); } - return P(() => { + return D(() => { setTimeout(() => { t.value = !0; - }, o.index > 0 ? a.value : 0), m(n.Close, u), document.addEventListener("keydown", p), g(n.Opened); - }), N(() => { - v(n.Close, u), document.removeEventListener("keydown", p); - }), (d, C) => (r(), f("div", { - class: T(["vue-modal", y.value]), - style: R(c.value) + }, o.index > 0 ? a.value : 0), y(n.Close, u), document.addEventListener("keydown", S), h(n.Opened); + }), I(() => { + _(n.Close, u), document.removeEventListener("keydown", S); + }), (s, p) => (r(), v("div", { + class: z(["vue-modal", g.value]), + style: H(c.value) }, [ - S(d.$slots, "default", {}, void 0, !0) + k(s.$slots, "default", {}, void 0, !0) ], 6)); } }); -const $ = (e, o) => { +const E = (e, o) => { const t = e.__vccOpts || e; for (const [l, a] of o) t[l] = a; return t; -}, O = /* @__PURE__ */ $(w, [["__scopeId", "data-v-1421616b"]]); -function ee() { +}, le = /* @__PURE__ */ E(te, [["__scopeId", "data-v-0195a498"]]); +function ne() { var l; const e = document.createElement("div"); e.style.visibility = "hidden", e.style.overflow = "scroll", document.body.appendChild(e); @@ -148,8 +145,8 @@ function ee() { const t = e.offsetWidth - o.offsetWidth; return (l = e.parentNode) == null || l.removeChild(e), t; } -function oe() { - const e = b(ee()); +function ae() { + const e = M(ne()); function o() { document.documentElement.style.overflow = "hidden", document.documentElement.scrollHeight > document.documentElement.clientHeight && (document.body.style.paddingRight = `${e.value}px`); } @@ -164,56 +161,57 @@ function oe() { toggleLock: l }; } -const te = { class: "vue-modals" }, le = /* @__PURE__ */ k({ +const de = { class: "vue-modals" }, se = /* @__PURE__ */ b({ __name: "ModalTarget", setup(e) { - const o = s.animationType !== "none" && s.transitionTime || 0, t = _(() => ({ - ...s == null ? void 0 : s.overlayStyle, + const o = d.animationType !== "none" && d.transitionTime || 0, t = C(() => ({ + ...d == null ? void 0 : d.overlayStyle, transition: `opacity ${o}ms ease, visibility ${o}ms ease` - })), l = b(!1), a = _(() => i.modals.length && !l.value); - function c({ forceCloseAll: d }) { - (i.modals.length === 1 && d !== !1 || d) && (l.value = !0, setTimeout(() => { + })), l = M(!1), a = C(() => i.modals.length && !l.value); + function c({ forceCloseAll: s }) { + (i.modals.length === 1 && s !== !1 || s) && (l.value = !0, setTimeout(() => { l.value = !1; }, o)); } - const y = oe(); + const g = ae(); function u() { - y.toggleLock(!1); + g.toggleLock(!1); } - function p() { - y.toggleLock(!0); + function S() { + g.toggleLock(!0); } - return P(() => { - m(n.Close, c), m(n.Closed, u), m(n.Open, p); - }), N(() => { - v(n.Close, c), v(n.Closed, u), v(n.Open, p); - }), (d, C) => (r(), f("div", te, [ - (r(!0), f(H, null, V(x(i).modals, (z, E) => (r(), B(O, { - index: E, - key: E + return D(() => { + y(n.Close, c), y(n.Closed, u), y(n.Open, S); + }), I(() => { + _(n.Close, c), _(n.Closed, u), _(n.Open, S); + }), (s, p) => (r(), v("div", de, [ + (r(!0), v(F, null, U(T(i).modals, (m, f) => (r(), R(le, { + index: f, + item: m, + key: f }, { - default: q(() => [ - (r(), B(F(z.component), U(j(z.props)), null, 16)) + default: A(() => [ + (r(), R(G(m.component), J(K(m.props)), null, 16)) ]), _: 2 - }, 1032, ["index"]))), 128)), - W("div", { - class: T(["vue-modals-overlay", { active: a.value }]), - style: R(t.value) + }, 1032, ["index", "item"]))), 128)), + V("div", { + class: z(["vue-modals-overlay", { active: a.value }]), + style: H(t.value) }, null, 6) ])); } }); -const ne = /* @__PURE__ */ $(le, [["__scopeId", "data-v-48abfbb2"]]), ae = { +const ie = /* @__PURE__ */ E(se, [["__scopeId", "data-v-90fab32e"]]), ce = { key: 0, class: "vue-modal-header" -}, se = { +}, re = { key: 0, class: "vue-modal-title" -}, de = { class: "vue-modal-body" }, ie = { +}, ue = { class: "vue-modal-body" }, me = { key: 1, class: "vue-modal-footer" -}, ce = /* @__PURE__ */ k({ +}, ye = /* @__PURE__ */ b({ __name: "SimpleModal", props: { title: {}, @@ -227,46 +225,46 @@ const ne = /* @__PURE__ */ $(le, [["__scopeId", "data-v-48abfbb2"]]), ae = { } }, setup(e) { - const o = e, t = A(); - return (l, a) => (r(), f("div", { - class: T(["vue-modal-content", `size-${o.size}`]) + const o = e, t = Q(); + return (l, a) => (r(), v("div", { + class: z(["vue-modal-content", `size-${o.size}`]) }, [ - o.title || o.showClose ? (r(), f("div", ae, [ - o.title ? (r(), f("h1", se, G(o.title), 1)) : h("", !0), - o.showClose ? (r(), f("button", { + o.title || o.showClose ? (r(), v("div", ce, [ + o.title ? (r(), v("h1", re, X(o.title), 1)) : x("", !0), + o.showClose ? (r(), v("button", { key: 1, - onClick: a[0] || (a[0] = (c) => x(D)()), + onClick: a[0] || (a[0] = (c) => T(j)()), class: "vue-modal-btn-close", "aria-label": "Close" - })) : h("", !0) - ])) : h("", !0), - W("div", de, [ - S(l.$slots, "default", {}, void 0, !0) + })) : x("", !0) + ])) : x("", !0), + V("div", ue, [ + k(l.$slots, "default", {}, void 0, !0) ]), - x(t).footer ? (r(), f("div", ie, [ - S(l.$slots, "footer", {}, void 0, !0) - ])) : h("", !0) + T(t).footer ? (r(), v("div", me, [ + k(l.$slots, "footer", {}, void 0, !0) + ])) : x("", !0) ], 2)); } }); -const re = /* @__PURE__ */ $(ce, [["__scopeId", "data-v-39a87773"]]); -function _e(e) { +const fe = /* @__PURE__ */ E(ye, [["__scopeId", "data-v-39a87773"]]); +function he(e) { return { install(o) { - K(e || {}), o.component("ModalTarget", ne), o.component("SimpleModal", re), m(n.Closed, X); + Z(e || {}), o.component("ModalTarget", ie), o.component("SimpleModal", fe), y(n.Closed, O); } }; } export { - v as $off, - m as $on, + _ as $off, + y as $on, n as Events, - ne as ModalTarget, - Z as closeAllModals, - D as closeModal, - ye as confirmModal, - _e as createModal, - fe as isOpened, - ve as openModal, - oe as useLock + ie as ModalTarget, + oe as closeAllModals, + j as closeModal, + Ce as confirmModal, + he as createModal, + ge as isOpened, + pe as openModal, + ae as useLock }; diff --git a/dist/vue-modal.umd.cjs b/dist/vue-modal.umd.cjs index 2854411..840a427 100644 --- a/dist/vue-modal.umd.cjs +++ b/dist/vue-modal.umd.cjs @@ -1,2 +1,2 @@ -(function(){var e;"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,a.appendChild(document.createTextNode(`.vue-modal[data-v-1421616b]{position:fixed;top:0;left:0;width:100%;height:100%;overflow-y:auto;opacity:0;visibility:hidden;display:flex;justify-content:center;flex-wrap:wrap}.vue-modal.vue-modal--slideDown[data-v-1421616b]{transform:translateY(-40px)}.vue-modal.vue-modal--slideUp[data-v-1421616b]{transform:translateY(40px)}.vue-modal.vue-modal--slideLeft[data-v-1421616b]{transform:translate(-40px)}.vue-modal.vue-modal--slideRight[data-v-1421616b]{transform:translate(40px)}.vue-modal.vue-modal--center[data-v-1421616b]{align-items:center}.vue-modal.vue-modal--top[data-v-1421616b]{align-items:flex-start}.vue-modal.vue-modal--active[data-v-1421616b]:not(.vue-modal--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-48abfbb2]{width:0}.vue-modals[data-v-48abfbb2] *{box-sizing:border-box}.vue-modals-overlay[data-v-48abfbb2]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-48abfbb2]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}`)),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); -(function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("js-event-bus")):typeof define=="function"&&define.amd?define(["exports","vue","js-event-bus"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s["vue-modal"]={},s.vue,s.jsEventBus))})(this,function(s,o,x){"use strict";const c=o.reactive({transitionTime:200,animationType:"slideDown",modalStyle:{padding:void 0,align:"center","z-index":201},overlayStyle:{"background-color":"rgba(0, 0, 0, 0.9)","z-index":200}});function E(e){var t,l,n,d,u;e!=null&&e.transitionTime&&(c.transitionTime=e.transitionTime),e!=null&&e.animationType&&(c.animationType=e.animationType),e!=null&&e.modalStyle&&((t=e.modalStyle)!=null&&t.padding&&(c.modalStyle.padding=e.modalStyle.padding),(l=e.modalStyle)!=null&&l.align&&(c.modalStyle.align=e.modalStyle.align),(n=e.modalStyle)!=null&&n["z-index"]&&(c.modalStyle["z-index"]=e.modalStyle["z-index"])),(d=e==null?void 0:e.overlayStyle)!=null&&d["z-index"]&&(c.overlayStyle["z-index"]=e.overlayStyle["z-index"]),(u=e==null?void 0:e.overlayStyle)!=null&&u["background-color"]&&(c.overlayStyle["background-color"]=e.overlayStyle["background-color"])}const r=o.reactive({modals:[]}),z=o.computed(()=>r.modals.length>0);function $(e,t,l){r.modals.push(o.markRaw({component:e,props:t,options:l}))}function L(){r.modals.pop()}const k=new x;function _(e,...t){k.emit(e,null,...t)}function m(e,t){k.on(e,t)}function f(e,t){k.detach(e,t)}var a=(e=>(e.Open="open",e.Opened="opened",e.Close="close",e.Closed="closed",e))(a||{});function N(e){return"key"in e?e.key==="Escape"||e.key==="Esc":e.keyCode===27}async function P(e,t,l){l!=null&&l.force&&r.modals.length&&await b(!1);const n=r.modals.length;return $(e,t),_(a.Open),new Promise((d,u)=>{function p(y){y.index===n&&(f(a.Closed,p),y.success?d(y.data):u())}m(a.Closed,p)})}function V(e){return new Promise(t=>{function l(n){f(a.Closed,l),t(n.data)}m(a.Closed,l),_(a.Close,{success:!0,data:e})})}function h(){return new Promise(e=>{function t(){f(a.Closed,t),e()}m(a.Closed,t),_(a.Close,{success:!1})})}function b(e=!0){return new Promise(t=>{function l(){f(a.Closed,l);for(let n=r.modals.length-1;n>=0;n--)r.modals.splice(n,1),_(a.Closed,{index:n,success:!1});t()}m(a.Closed,l),_(a.Close,{success:!1,forceCloseAll:e})})}const j=o.defineComponent({__name:"BaseModal",props:{index:{type:Number,required:!0}},setup(e){const t=e,l=o.ref(!1),n=o.computed(()=>t.index!==r.modals.length-1),d=o.computed(()=>c.animationType!=="none"&&c.transitionTime||0),u=o.computed(()=>{var i,C;return{padding:(i=c.modalStyle)==null?void 0:i.padding,"z-index":(C=c.modalStyle)==null?void 0:C["z-index"],transition:`opacity ${d.value}ms ease, visibility ${d.value}ms ease, transform ${d.value}ms ease`}}),p=o.computed(()=>{var i;return[{"vue-modal--active":l.value,"vue-modal--hide":n.value},`vue-modal--${(i=c.modalStyle)==null?void 0:i.align}`,`vue-modal--${c.animationType}`]});function y(i){r.modals.length-1===t.index&&(l.value=!1,setTimeout(_,d.value,a.Closed,{index:t.index,success:i.success,data:i.data}))}function g(i){N(i)&&r.modals.length-1===t.index&&h()}return o.onMounted(()=>{setTimeout(()=>{l.value=!0},t.index>0?d.value:0),m(a.Close,y),document.addEventListener("keydown",g),_(a.Opened)}),o.onBeforeUnmount(()=>{f(a.Close,y),document.removeEventListener("keydown",g)}),(i,C)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vue-modal",p.value]),style:o.normalizeStyle(u.value)},[o.renderSlot(i.$slots,"default",{},void 0,!0)],6))}}),K="",S=(e,t)=>{const l=e.__vccOpts||e;for(const[n,d]of t)l[n]=d;return l},R=S(j,[["__scopeId","data-v-1421616b"]]);function W(){var n;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const l=e.offsetWidth-t.offsetWidth;return(n=e.parentNode)==null||n.removeChild(e),l}function v(){const e=o.ref(W());function t(){document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>document.documentElement.clientHeight&&(document.body.style.paddingRight=`${e.value}px`)}function l(){document.documentElement.style.overflow="auto",document.body.style.paddingRight="0px"}function n(d){d?t():l()}return{paddingSize:e,toggleLock:n}}const q={class:"vue-modals"},D=o.defineComponent({__name:"ModalTarget",setup(e){const t=c.animationType!=="none"&&c.transitionTime||0,l=o.computed(()=>({...c==null?void 0:c.overlayStyle,transition:`opacity ${t}ms ease, visibility ${t}ms ease`})),n=o.ref(!1),d=o.computed(()=>r.modals.length&&!n.value);function u({forceCloseAll:i}){(r.modals.length===1&&i!==!1||i)&&(n.value=!0,setTimeout(()=>{n.value=!1},t))}const p=v();function y(){p.toggleLock(!1)}function g(){p.toggleLock(!0)}return o.onMounted(()=>{m(a.Close,u),m(a.Closed,y),m(a.Open,g)}),o.onBeforeUnmount(()=>{f(a.Close,u),f(a.Closed,y),f(a.Open,g)}),(i,C)=>(o.openBlock(),o.createElementBlock("div",q,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r).modals,(M,T)=>(o.openBlock(),o.createBlock(R,{index:T,key:T},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(M.component),o.normalizeProps(o.guardReactiveProps(M.props)),null,16))]),_:2},1032,["index"]))),128)),o.createElementVNode("div",{class:o.normalizeClass(["vue-modals-overlay",{active:d.value}]),style:o.normalizeStyle(l.value)},null,6)]))}}),Q="",B=S(D,[["__scopeId","data-v-48abfbb2"]]),I={key:0,class:"vue-modal-header"},H={key:0,class:"vue-modal-title"},U={class:"vue-modal-body"},A={key:1,class:"vue-modal-footer"},F=o.defineComponent({__name:"SimpleModal",props:{title:{},showClose:{type:Boolean,default:!0},size:{type:String,default:"sm",validator(e){return["sm","md","lg","xl","xxl"].includes(e)}}},setup(e){const t=e,l=o.useSlots();return(n,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vue-modal-content",`size-${t.size}`])},[t.title||t.showClose?(o.openBlock(),o.createElementBlock("div",I,[t.title?(o.openBlock(),o.createElementBlock("h1",H,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0),t.showClose?(o.openBlock(),o.createElementBlock("button",{key:1,onClick:d[0]||(d[0]=u=>o.unref(h)()),class:"vue-modal-btn-close","aria-label":"Close"})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",U,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),o.unref(l).footer?(o.openBlock(),o.createElementBlock("div",A,[o.renderSlot(n.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],2))}}),X="",G=S(F,[["__scopeId","data-v-39a87773"]]);function J(e){return{install(t){E(e||{}),t.component("ModalTarget",B),t.component("SimpleModal",G),m(a.Closed,L)}}}s.$off=f,s.$on=m,s.Events=a,s.ModalTarget=B,s.closeAllModals=b,s.closeModal=h,s.confirmModal=V,s.createModal=J,s.isOpened=z,s.openModal=P,s.useLock=v,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}); +(function(){var e;"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,a.appendChild(document.createTextNode(`.vue-modal[data-v-0195a498]{position:fixed;top:0;left:0;width:100%;height:100%;overflow-y:auto;opacity:0;visibility:hidden;display:flex;justify-content:center;flex-wrap:wrap}.vue-modal.vue-modal--slideDown[data-v-0195a498]{transform:translateY(-40px)}.vue-modal.vue-modal--slideUp[data-v-0195a498]{transform:translateY(40px)}.vue-modal.vue-modal--slideLeft[data-v-0195a498]{transform:translate(-40px)}.vue-modal.vue-modal--slideRight[data-v-0195a498]{transform:translate(40px)}.vue-modal.vue-modal--center[data-v-0195a498]{align-items:center}.vue-modal.vue-modal--top[data-v-0195a498]{align-items:flex-start}.vue-modal.vue-modal--active[data-v-0195a498]:not(.vue-modal--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-90fab32e]{width:0}.vue-modals[data-v-90fab32e] *{box-sizing:border-box}.vue-modals-overlay[data-v-90fab32e]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-90fab32e]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}`)),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); +(function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("js-event-bus")):typeof define=="function"&&define.amd?define(["exports","vue","js-event-bus"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s["vue-modal"]={},s.vue,s.jsEventBus))})(this,function(s,o,L){"use strict";const c=o.reactive({transitionTime:200,animationType:"slideDown",modalStyle:{padding:void 0,align:"center","z-index":201},overlayStyle:{"background-color":"rgba(0, 0, 0, 0.9)","z-index":200}});function N(e){var t,l,n,d,u;e!=null&&e.transitionTime&&(c.transitionTime=e.transitionTime),e!=null&&e.animationType&&(c.animationType=e.animationType),e!=null&&e.modalStyle&&((t=e.modalStyle)!=null&&t.padding&&(c.modalStyle.padding=e.modalStyle.padding),(l=e.modalStyle)!=null&&l.align&&(c.modalStyle.align=e.modalStyle.align),(n=e.modalStyle)!=null&&n["z-index"]&&(c.modalStyle["z-index"]=e.modalStyle["z-index"])),(d=e==null?void 0:e.overlayStyle)!=null&&d["z-index"]&&(c.overlayStyle["z-index"]=e.overlayStyle["z-index"]),(u=e==null?void 0:e.overlayStyle)!=null&&u["background-color"]&&(c.overlayStyle["background-color"]=e.overlayStyle["background-color"])}const r=o.reactive({modals:[]}),P=o.computed(()=>r.modals.length>0);function j(e,t,l){r.modals.push(o.markRaw({component:e,props:t,options:l}))}function V(){r.modals.pop()}const S=new L;function g(e,...t){S.emit(e,null,...t)}function m(e,t){S.on(e,t)}function f(e,t){S.detach(e,t)}var a=(e=>(e.Open="open",e.Opened="opened",e.Close="close",e.Closed="closed",e))(a||{});function R(e){return"key"in e?e.key==="Escape"||e.key==="Esc":e.keyCode===27}async function W(e,t,l){l!=null&&l.force&&r.modals.length&&await M(!1);const n=r.modals.length;return j(e,t,l),g(a.Open),new Promise((d,u)=>{function C(y){y.index===n&&(f(a.Closed,C),y.success?d(y.data):u())}m(a.Closed,C)})}function q(e){return new Promise(t=>{function l(n){f(a.Closed,l),t(n.data)}m(a.Closed,l),g(a.Close,{success:!0,data:e})})}function v(){return new Promise(e=>{function t(){f(a.Closed,t),e()}m(a.Closed,t),g(a.Close,{success:!1})})}function M(e=!0){return new Promise(t=>{function l(){f(a.Closed,l);for(let n=r.modals.length-1;n>=0;n--)r.modals.splice(n,1),g(a.Closed,{index:n,success:!1});t()}m(a.Closed,l),g(a.Close,{success:!1,forceCloseAll:e})})}const D=o.defineComponent({__name:"BaseModal",props:{index:{type:Number,required:!0},item:{type:Object}},setup(e){const t=e,l=o.ref(!1),n=o.computed(()=>t.index!==r.modals.length-1),d=o.computed(()=>c.animationType!=="none"&&c.transitionTime||0),u=o.computed(()=>{var i,k,p,_,x,z,E,$;return{padding:((p=(k=(i=t.item)==null?void 0:i.options)==null?void 0:k.modalStyle)==null?void 0:p.padding)??((_=c.modalStyle)==null?void 0:_.padding),"z-index":((E=(z=(x=t.item)==null?void 0:x.options)==null?void 0:z.modalStyle)==null?void 0:E["z-index"])??(($=c.modalStyle)==null?void 0:$["z-index"]),transition:`opacity ${d.value}ms ease, visibility ${d.value}ms ease, transform ${d.value}ms ease`}}),C=o.computed(()=>{var i,k,p,_;return[{"vue-modal--active":l.value,"vue-modal--hide":n.value},`vue-modal--${((p=(k=(i=t.item)==null?void 0:i.options)==null?void 0:k.modalStyle)==null?void 0:p.align)??((_=c.modalStyle)==null?void 0:_.align)}`,`vue-modal--${c.animationType}`]});function y(i){r.modals.length-1===t.index&&(l.value=!1,setTimeout(g,d.value,a.Closed,{index:t.index,success:i.success,data:i.data}))}function h(i){R(i)&&r.modals.length-1===t.index&&v()}return o.onMounted(()=>{setTimeout(()=>{l.value=!0},t.index>0?d.value:0),m(a.Close,y),document.addEventListener("keydown",h),g(a.Opened)}),o.onBeforeUnmount(()=>{f(a.Close,y),document.removeEventListener("keydown",h)}),(i,k)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vue-modal",C.value]),style:o.normalizeStyle(u.value)},[o.renderSlot(i.$slots,"default",{},void 0,!0)],6))}}),Z="",B=(e,t)=>{const l=e.__vccOpts||e;for(const[n,d]of t)l[n]=d;return l},I=B(D,[["__scopeId","data-v-0195a498"]]);function H(){var n;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const l=e.offsetWidth-t.offsetWidth;return(n=e.parentNode)==null||n.removeChild(e),l}function T(){const e=o.ref(H());function t(){document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>document.documentElement.clientHeight&&(document.body.style.paddingRight=`${e.value}px`)}function l(){document.documentElement.style.overflow="auto",document.body.style.paddingRight="0px"}function n(d){d?t():l()}return{paddingSize:e,toggleLock:n}}const U={class:"vue-modals"},A=o.defineComponent({__name:"ModalTarget",setup(e){const t=c.animationType!=="none"&&c.transitionTime||0,l=o.computed(()=>({...c==null?void 0:c.overlayStyle,transition:`opacity ${t}ms ease, visibility ${t}ms ease`})),n=o.ref(!1),d=o.computed(()=>r.modals.length&&!n.value);function u({forceCloseAll:i}){(r.modals.length===1&&i!==!1||i)&&(n.value=!0,setTimeout(()=>{n.value=!1},t))}const C=T();function y(){C.toggleLock(!1)}function h(){C.toggleLock(!0)}return o.onMounted(()=>{m(a.Close,u),m(a.Closed,y),m(a.Open,h)}),o.onBeforeUnmount(()=>{f(a.Close,u),f(a.Closed,y),f(a.Open,h)}),(i,k)=>(o.openBlock(),o.createElementBlock("div",U,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r).modals,(p,_)=>(o.openBlock(),o.createBlock(I,{index:_,item:p,key:_},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.component),o.normalizeProps(o.guardReactiveProps(p.props)),null,16))]),_:2},1032,["index","item"]))),128)),o.createElementVNode("div",{class:o.normalizeClass(["vue-modals-overlay",{active:d.value}]),style:o.normalizeStyle(l.value)},null,6)]))}}),w="",b=B(A,[["__scopeId","data-v-90fab32e"]]),F={key:0,class:"vue-modal-header"},G={key:0,class:"vue-modal-title"},J={class:"vue-modal-body"},K={key:1,class:"vue-modal-footer"},Q=o.defineComponent({__name:"SimpleModal",props:{title:{},showClose:{type:Boolean,default:!0},size:{type:String,default:"sm",validator(e){return["sm","md","lg","xl","xxl"].includes(e)}}},setup(e){const t=e,l=o.useSlots();return(n,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vue-modal-content",`size-${t.size}`])},[t.title||t.showClose?(o.openBlock(),o.createElementBlock("div",F,[t.title?(o.openBlock(),o.createElementBlock("h1",G,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0),t.showClose?(o.openBlock(),o.createElementBlock("button",{key:1,onClick:d[0]||(d[0]=u=>o.unref(v)()),class:"vue-modal-btn-close","aria-label":"Close"})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",J,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),o.unref(l).footer?(o.openBlock(),o.createElementBlock("div",K,[o.renderSlot(n.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],2))}}),O="",X=B(Q,[["__scopeId","data-v-39a87773"]]);function Y(e){return{install(t){N(e||{}),t.component("ModalTarget",b),t.component("SimpleModal",X),m(a.Closed,V)}}}s.$off=f,s.$on=m,s.Events=a,s.ModalTarget=b,s.closeAllModals=M,s.closeModal=v,s.confirmModal=q,s.createModal=Y,s.isOpened=P,s.openModal=W,s.useLock=T,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}); diff --git a/package.json b/package.json index 845a547..9c1273e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kolirt/vue-modal", - "version": "0.0.11", + "version": "0.0.12", "description": "Simple Vue3 modal package", "author": "kolirt", "license": "MIT",