From b75874f3d98f9c3f1cdb50d25955557e7ba38504 Mon Sep 17 00:00:00 2001 From: Eternal-Rise Date: Tue, 13 Feb 2024 12:55:21 +0200 Subject: [PATCH] deploy --- assets/index-9oERzSPo.css | 1 - assets/index-Ujv8sLDG.js | 1784 ------------------------------------- assets/index-jqs7T2OX.js | 1784 +++++++++++++++++++++++++++++++++++++ assets/index-tb7iAgXe.css | 1 + index.html | 4 +- 5 files changed, 1787 insertions(+), 1787 deletions(-) delete mode 100644 assets/index-9oERzSPo.css delete mode 100644 assets/index-Ujv8sLDG.js create mode 100644 assets/index-jqs7T2OX.js create mode 100644 assets/index-tb7iAgXe.css diff --git a/assets/index-9oERzSPo.css b/assets/index-9oERzSPo.css deleted file mode 100644 index bfb0652..0000000 --- a/assets/index-9oERzSPo.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:v-sans;font-weight:400;src:url(/p2p-cinema/assets/LatoLatin-Regular-5pc9VNAW.woff2)}@font-face{font-family:v-sans;font-weight:600;src:url(/p2p-cinema/assets/LatoLatin-Semibold-25PNadg5.woff2)}html,body,#app,.n-layout,.h-100{height:100%}.app-video{position:relative}.app-video video{width:100%;height:100%}.app-video._show-controls .app-video__controls,.app-video__controls:active,.app-video__controls:focus-within{display:flex}.app-video__controls{align-items:last baseline;box-shadow:inset 0 -50px 50px -50px #cf3ee280;display:none;gap:.5rem;top:0;right:0;bottom:0;left:0;justify-content:center;position:absolute}.view-session{display:flex;flex-direction:column;height:100%}.view-session__media{display:grid;flex:1}.view-session__controls{grid-column:1 / -1;padding:1rem}@media (min-width: 768px){.view-session__media{grid-template-columns:repeat(auto-fit,minmax(500px,1fr))}} diff --git a/assets/index-Ujv8sLDG.js b/assets/index-Ujv8sLDG.js deleted file mode 100644 index bc30168..0000000 --- a/assets/index-Ujv8sLDG.js +++ /dev/null @@ -1,1784 +0,0 @@ -var W0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Yn=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)};var W4=W0((fr,hr)=>{function V0(e,t){for(var r=0;ro[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();/** -* @vue/shared v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function zc(e,t){const r=new Set(e.split(","));return t?o=>r.has(o.toLowerCase()):o=>r.has(o)}const ut={},yn=[],br=()=>{},U0=()=>!1,fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mc=e=>e.startsWith("onUpdate:"),wt=Object.assign,Ac=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},K0=Object.prototype.hasOwnProperty,Ze=(e,t)=>K0.call(e,t),Be=Array.isArray,Cn=e=>hs(e)==="[object Map]",Sh=e=>hs(e)==="[object Set]",Fe=e=>typeof e=="function",_t=e=>typeof e=="string",Fn=e=>typeof e=="symbol",ht=e=>e!==null&&typeof e=="object",wh=e=>(ht(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),_h=Object.prototype.toString,hs=e=>_h.call(e),q0=e=>hs(e).slice(8,-1),Ph=e=>hs(e)==="[object Object]",Oc=e=>_t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ta=zc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ps=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},G0=/-(\w)/g,Rn=ps(e=>e.replace(G0,(t,r)=>r?r.toUpperCase():"")),Y0=/\B([A-Z])/g,Qo=ps(e=>e.replace(Y0,"-$1").toLowerCase()),Th=ps(e=>e.charAt(0).toUpperCase()+e.slice(1)),Us=ps(e=>e?`on${Th(e)}`:""),go=(e,t)=>!Object.is(e,t),Ks=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},X0=e=>{const t=parseFloat(e);return isNaN(t)?e:t},J0=e=>{const t=_t(e)?Number(e):NaN;return isNaN(t)?e:t};let Gd;const kh=()=>Gd||(Gd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dc(e){if(Be(e)){const t={};for(let r=0;r{if(r){const o=r.split(Q0);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ms(e){let t="";if(_t(e))t=e;else if(Be(e))for(let r=0;r_t(e)?e:e==null?"":Be(e)||ht(e)&&(e.toString===_h||!Fe(e.toString))?JSON.stringify(e,Rh,2):String(e),Rh=(e,t)=>t&&t.__v_isRef?Rh(e,t.value):Cn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,n],i)=>(r[qs(o,i)+" =>"]=n,r),{})}:Sh(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>qs(r))}:Fn(t)?qs(t):ht(t)&&!Be(t)&&!Ph(t)?String(t):t,qs=(e,t="")=>{var r;return Fn(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** -* @vue/reactivity v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let dr;class Ih{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=dr,!t&&dr&&(this.index=(dr.scopes||(dr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=dr;try{return dr=this,t()}finally{dr=r}}}on(){dr=this}off(){dr=this.parent}stop(t){if(this._active){let r,o;for(r=0,o=this.effects.length;r=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),tn()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ho,r=Vo;try{return ho=!0,Vo=this,this._runnings++,Yd(this),this.fn()}finally{Xd(this),this._runnings--,Vo=r,ho=t}}stop(){var t;this.active&&(Yd(this),Xd(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function ab(e){return e.value}function Yd(e){e._trackId++,e._depsLength=0}function Xd(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const r=new Map;return r.cleanup=e,r.computed=t,r},Wa=new WeakMap,Uo=Symbol(""),$l=Symbol("");function ir(e,t,r){if(ho&&Vo){let o=Wa.get(e);o||Wa.set(e,o=new Map);let n=o.get(r);n||o.set(r,n=Fh(()=>o.delete(r))),Oh(Vo,n)}}function Ur(e,t,r,o,n,i){const a=Wa.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(r==="length"&&Be(e)){const l=Number(o);a.forEach((c,d)=>{(d==="length"||!Fn(d)&&d>=l)&&s.push(c)})}else switch(r!==void 0&&s.push(a.get(r)),t){case"add":Be(e)?Oc(r)&&s.push(a.get("length")):(s.push(a.get(Uo)),Cn(e)&&s.push(a.get($l)));break;case"delete":Be(e)||(s.push(a.get(Uo)),Cn(e)&&s.push(a.get($l)));break;case"set":Cn(e)&&s.push(a.get(Uo));break}Lc();for(const l of s)l&&Dh(l,2);Hc()}function sb(e,t){var r;return(r=Wa.get(e))==null?void 0:r.get(t)}const lb=zc("__proto__,__v_isRef,__isVue"),Lh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Fn)),Jd=cb();function cb(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const o=Ge(this);for(let i=0,a=this.length;i{e[t]=function(...r){en(),Lc();const o=Ge(this)[t].apply(this,r);return Hc(),tn(),o}}),e}function db(e){const t=Ge(this);return ir(t,"has",e),t.hasOwnProperty(e)}class Hh{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,o){const n=this._isReadonly,i=this._shallow;if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_isShallow")return i;if(r==="__v_raw")return o===(n?i?wb:Vh:i?Wh:Nh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=Be(t);if(!n){if(a&&Ze(Jd,r))return Reflect.get(Jd,r,o);if(r==="hasOwnProperty")return db}const s=Reflect.get(t,r,o);return(Fn(r)?Lh.has(r):lb(r))||(n||ir(t,"get",r),i)?s:Pt(s)?a&&Oc(r)?s:s.value:ht(s)?n?vo(s):Kr(s):s}}class jh extends Hh{constructor(t=!1){super(!1,t)}set(t,r,o,n){let i=t[r];if(!this._shallow){const l=In(i);if(!Va(o)&&!In(o)&&(i=Ge(i),o=Ge(o)),!Be(t)&&Pt(i)&&!Pt(o))return l?!1:(i.value=o,!0)}const a=Be(t)&&Oc(r)?Number(r)e,gs=e=>Reflect.getPrototypeOf(e);function na(e,t,r=!1,o=!1){e=e.__v_raw;const n=Ge(e),i=Ge(t);r||(go(t,i)&&ir(n,"get",t),ir(n,"get",i));const{has:a}=gs(n),s=o?jc:r?Vc:yi;if(a.call(n,t))return s(e.get(t));if(a.call(n,i))return s(e.get(i));e!==n&&e.get(t)}function ia(e,t=!1){const r=this.__v_raw,o=Ge(r),n=Ge(e);return t||(go(e,n)&&ir(o,"has",e),ir(o,"has",n)),e===n?r.has(e):r.has(e)||r.has(n)}function aa(e,t=!1){return e=e.__v_raw,!t&&ir(Ge(e),"iterate",Uo),Reflect.get(e,"size",e)}function Zd(e){e=Ge(e);const t=Ge(this);return gs(t).has.call(t,e)||(t.add(e),Ur(t,"add",e,e)),this}function Qd(e,t){t=Ge(t);const r=Ge(this),{has:o,get:n}=gs(r);let i=o.call(r,e);i||(e=Ge(e),i=o.call(r,e));const a=n.call(r,e);return r.set(e,t),i?go(t,a)&&Ur(r,"set",e,t):Ur(r,"add",e,t),this}function eu(e){const t=Ge(this),{has:r,get:o}=gs(t);let n=r.call(t,e);n||(e=Ge(e),n=r.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return n&&Ur(t,"delete",e,void 0),i}function tu(){const e=Ge(this),t=e.size!==0,r=e.clear();return t&&Ur(e,"clear",void 0,void 0),r}function sa(e,t){return function(o,n){const i=this,a=i.__v_raw,s=Ge(a),l=t?jc:e?Vc:yi;return!e&&ir(s,"iterate",Uo),a.forEach((c,d)=>o.call(n,l(c),l(d),i))}}function la(e,t,r){return function(...o){const n=this.__v_raw,i=Ge(n),a=Cn(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=n[e](...o),d=r?jc:t?Vc:yi;return!t&&ir(i,"iterate",l?$l:Uo),{next(){const{value:u,done:f}=c.next();return f?{value:u,done:f}:{value:s?[d(u[0]),d(u[1])]:d(u),done:f}},[Symbol.iterator](){return this}}}}function eo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mb(){const e={get(i){return na(this,i)},get size(){return aa(this)},has:ia,add:Zd,set:Qd,delete:eu,clear:tu,forEach:sa(!1,!1)},t={get(i){return na(this,i,!1,!0)},get size(){return aa(this)},has:ia,add:Zd,set:Qd,delete:eu,clear:tu,forEach:sa(!1,!0)},r={get(i){return na(this,i,!0)},get size(){return aa(this,!0)},has(i){return ia.call(this,i,!0)},add:eo("add"),set:eo("set"),delete:eo("delete"),clear:eo("clear"),forEach:sa(!0,!1)},o={get(i){return na(this,i,!0,!0)},get size(){return aa(this,!0)},has(i){return ia.call(this,i,!0)},add:eo("add"),set:eo("set"),delete:eo("delete"),clear:eo("clear"),forEach:sa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=la(i,!1,!1),r[i]=la(i,!0,!1),t[i]=la(i,!1,!0),o[i]=la(i,!0,!0)}),[e,r,t,o]}const[gb,vb,bb,xb]=mb();function Nc(e,t){const r=t?e?xb:bb:e?vb:gb;return(o,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?o:Reflect.get(Ze(r,n)&&n in o?r:o,n,i)}const yb={get:Nc(!1,!1)},Cb={get:Nc(!1,!0)},Sb={get:Nc(!0,!1)},Nh=new WeakMap,Wh=new WeakMap,Vh=new WeakMap,wb=new WeakMap;function _b(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pb(e){return e.__v_skip||!Object.isExtensible(e)?0:_b(q0(e))}function Kr(e){return In(e)?e:Wc(e,!1,fb,yb,Nh)}function Tb(e){return Wc(e,!1,pb,Cb,Wh)}function vo(e){return Wc(e,!0,hb,Sb,Vh)}function Wc(e,t,r,o,n){if(!ht(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=n.get(e);if(i)return i;const a=Pb(e);if(a===0)return e;const s=new Proxy(e,a===2?o:r);return n.set(e,s),s}function po(e){return In(e)?po(e.__v_raw):!!(e&&e.__v_isReactive)}function In(e){return!!(e&&e.__v_isReadonly)}function Va(e){return!!(e&&e.__v_isShallow)}function Uh(e){return po(e)||In(e)}function Ge(e){const t=e&&e.__v_raw;return t?Ge(t):e}function En(e){return Na(e,"__v_skip",!0),e}const yi=e=>ht(e)?Kr(e):e,Vc=e=>ht(e)?vo(e):e;class Kh{constructor(t,r,o,n){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Fc(()=>t(this._value),()=>ka(this,1),()=>this.dep&&Bh(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=o}get value(){const t=Ge(this);return(!t._cacheable||t.effect.dirty)&&go(t._value,t._value=t.effect.run())&&ka(t,2),qh(t),t.effect._dirtyLevel>=1&&ka(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function kb(e,t,r=!1){let o,n;const i=Fe(e);return i?(o=e,n=br):(o=e.get,n=e.set),new Kh(o,n,i||!n,r)}function qh(e){ho&&Vo&&(e=Ge(e),Oh(Vo,e.dep||(e.dep=Fh(()=>e.dep=void 0,e instanceof Kh?e:void 0))))}function ka(e,t=2,r){e=Ge(e);const o=e.dep;o&&Dh(o,t)}function Pt(e){return!!(e&&e.__v_isRef===!0)}function J(e){return Gh(e,!1)}function Er(e){return Gh(e,!0)}function Gh(e,t){return Pt(e)?e:new $b(e,t)}class $b{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Ge(t),this._value=r?t:yi(t)}get value(){return qh(this),this._value}set value(t){const r=this.__v_isShallow||Va(t)||In(t);t=r?t:Ge(t),go(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:yi(t),ka(this,2))}}function Pe(e){return Pt(e)?e.value:e}const Rb={get:(e,t,r)=>Pe(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const n=e[t];return Pt(n)&&!Pt(r)?(n.value=r,!0):Reflect.set(e,t,r,o)}};function Yh(e){return po(e)?e:new Proxy(e,Rb)}function Ib(e){const t=Be(e)?new Array(e.length):{};for(const r in e)t[r]=Xh(e,r);return t}class Eb{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return sb(Ge(this._object),this._key)}}class zb{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function et(e,t,r){return Pt(e)?e:Fe(e)?new zb(e):ht(e)&&arguments.length>1?Xh(e,t,r):J(e)}function Xh(e,t,r){const o=e[t];return Pt(o)?o:new Eb(e,t,r)}/** -* @vue/runtime-core v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function mo(e,t,r,o){let n;try{n=o?e(...o):e()}catch(i){vs(i,t,r)}return n}function xr(e,t,r,o){if(Fe(e)){const i=mo(e,t,r,o);return i&&wh(i)&&i.catch(a=>{vs(a,t,r)}),i}const n=[];for(let i=0;i>>1,n=Kt[o],i=Si(n);iAr&&Kt.splice(t,1)}function Db(e){Be(e)?Sn.push(...e):(!so||!so.includes(e,e.allowRecurse?Do+1:Do))&&Sn.push(e),Zh()}function ru(e,t,r=Ci?Ar+1:0){for(;rSi(r)-Si(o));if(Sn.length=0,so){so.push(...t);return}for(so=t,Do=0;Doe.id==null?1/0:e.id,Bb=(e,t)=>{const r=Si(e)-Si(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function ep(e){Rl=!1,Ci=!0,Kt.sort(Bb);try{for(Ar=0;Ar_t(p)?p.trim():p)),u&&(n=r.map(X0))}let s,l=o[s=Us(t)]||o[s=Us(Rn(t))];!l&&i&&(l=o[s=Us(Qo(t))]),l&&xr(l,e,6,n);const c=o[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,xr(c,e,6,n)}}function tp(e,t,r=!1){const o=t.emitsCache,n=o.get(e);if(n!==void 0)return n;const i=e.emits;let a={},s=!1;if(!Fe(e)){const l=c=>{const d=tp(c,t,!0);d&&(s=!0,wt(a,d))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(ht(e)&&o.set(e,null),null):(Be(i)?i.forEach(l=>a[l]=null):wt(a,i),ht(e)&&o.set(e,a),a)}function bs(e,t){return!e||!fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ze(e,t[0].toLowerCase()+t.slice(1))||Ze(e,Qo(t))||Ze(e,t))}let It=null,rp=null;function Ua(e){const t=It;return It=e,rp=e&&e.type.__scopeId||null,t}function Ne(e,t=It,r){if(!t||e._n)return e;const o=(...n)=>{o._d&&mu(-1);const i=Ua(t);let a;try{a=e(...n)}finally{Ua(i),o._d&&mu(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}function Gs(e){const{type:t,vnode:r,proxy:o,withProxy:n,props:i,propsOptions:[a],slots:s,attrs:l,emit:c,render:d,renderCache:u,data:f,setupState:p,ctx:h,inheritAttrs:m}=e;let v,g;const k=Ua(e);try{if(r.shapeFlag&4){const T=n||o,R=T;v=Mr(d.call(R,T,u,i,p,f,h)),g=l}else{const T=t;v=Mr(T.length>1?T(i,{attrs:l,slots:s,emit:c}):T(i,null)),g=t.props?l:Lb(l)}}catch(T){ui.length=0,vs(T,e,1),v=ze(Jt)}let w=v;if(g&&m!==!1){const T=Object.keys(g),{shapeFlag:R}=w;T.length&&R&7&&(a&&T.some(Mc)&&(g=Hb(g,a)),w=qr(w,g))}return r.dirs&&(w=qr(w),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),v=w,Ua(k),v}const Lb=e=>{let t;for(const r in e)(r==="class"||r==="style"||fs(r))&&((t||(t={}))[r]=e[r]);return t},Hb=(e,t)=>{const r={};for(const o in e)(!Mc(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function jb(e,t,r){const{props:o,children:n,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return o?ou(o,a,c):!!a;if(l&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;function Ub(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):Db(e)}const Kb=Symbol.for("v-scx"),qb=()=>Ae(Kb);function Lr(e,t){return qc(e,null,t)}const ca={};function tt(e,t,r){return qc(e,t,r)}function qc(e,t,{immediate:r,deep:o,flush:n,once:i,onTrack:a,onTrigger:s}=ut){if(t&&i){const B=t;t=(...x)=>{B(...x),R()}}const l=Ht,c=B=>o===!0?B:Lo(B,o===!1?1:void 0);let d,u=!1,f=!1;if(Pt(e)?(d=()=>e.value,u=Va(e)):po(e)?(d=()=>c(e),u=!0):Be(e)?(f=!0,u=e.some(B=>po(B)||Va(B)),d=()=>e.map(B=>{if(Pt(B))return B.value;if(po(B))return c(B);if(Fe(B))return mo(B,l,2)})):Fe(e)?t?d=()=>mo(e,l,2):d=()=>(p&&p(),xr(e,l,3,[h])):d=br,t&&o){const B=d;d=()=>Lo(B())}let p,h=B=>{p=w.onStop=()=>{mo(B,l,4),p=w.onStop=void 0}},m;if(ws)if(h=br,t?r&&xr(t,l,3,[d(),f?[]:void 0,h]):d(),n==="sync"){const B=qb();m=B.__watcherHandles||(B.__watcherHandles=[])}else return br;let v=f?new Array(e.length).fill(ca):ca;const g=()=>{if(!(!w.active||!w.dirty))if(t){const B=w.run();(o||u||(f?B.some((x,S)=>go(x,v[S])):go(B,v)))&&(p&&p(),xr(t,l,3,[B,v===ca?void 0:f&&v[0]===ca?[]:v,h]),v=B)}else w.run()};g.allowRecurse=!!t;let k;n==="sync"?k=g:n==="post"?k=()=>tr(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),k=()=>Kc(g));const w=new Fc(d,br,k),T=Bc(),R=()=>{w.stop(),T&&Ac(T.effects,w)};return t?r?g():v=w.run():n==="post"?tr(w.run.bind(w),l&&l.suspense):w.run(),m&&m.push(R),R}function Gb(e,t,r){const o=this.proxy,n=_t(e)?e.includes(".")?op(o,e):()=>o[e]:e.bind(o,o);let i;Fe(t)?i=t:(i=t.handler,r=t);const a=Ki(this),s=qc(n,i.bind(o),r);return a(),s}function op(e,t){const r=t.split(".");return()=>{let o=e;for(let n=0;n0){if(r>=t)return e;r++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Pt(e))Lo(e.value,t,r,o);else if(Be(e))for(let n=0;n{Lo(n,t,r,o)});else if(Ph(e))for(const n in e)Lo(e[n],t,r,o);return e}function Wi(e,t){if(It===null)return e;const r=_s(It)||It.proxy,o=e.dirs||(e.dirs=[]);for(let n=0;n{e.isMounted=!0}),Qt(()=>{e.isUnmounting=!0}),e}const mr=[Function,Array],ip={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mr,onEnter:mr,onAfterEnter:mr,onEnterCancelled:mr,onBeforeLeave:mr,onLeave:mr,onAfterLeave:mr,onLeaveCancelled:mr,onBeforeAppear:mr,onAppear:mr,onAfterAppear:mr,onAppearCancelled:mr},Yb={name:"BaseTransition",props:ip,setup(e,{slots:t}){const r=So(),o=np();let n;return()=>{const i=t.default&&Gc(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const m of i)if(m.type!==Jt){a=m;break}}const s=Ge(e),{mode:l}=s;if(o.isLeaving)return Ys(a);const c=nu(a);if(!c)return Ys(a);const d=wi(c,s,o,r);_i(c,d);const u=r.subTree,f=u&&nu(u);let p=!1;const{getTransitionKey:h}=c.type;if(h){const m=h();n===void 0?n=m:m!==n&&(n=m,p=!0)}if(f&&f.type!==Jt&&(!Bo(c,f)||p)){const m=wi(f,s,o,r);if(_i(f,m),l==="out-in")return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Ys(a);l==="in-out"&&c.type!==Jt&&(m.delayLeave=(v,g,k)=>{const w=ap(o,f);w[String(f.key)]=f,v[lo]=()=>{g(),v[lo]=void 0,delete d.delayedLeave},d.delayedLeave=k})}return a}}},Xb=Yb;function ap(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function wi(e,t,r,o){const{appear:n,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:f,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:m,onAppear:v,onAfterAppear:g,onAppearCancelled:k}=t,w=String(e.key),T=ap(r,e),R=(S,z)=>{S&&xr(S,o,9,z)},B=(S,z)=>{const O=z[1];R(S,z),Be(S)?S.every(Q=>Q.length<=1)&&O():S.length<=1&&O()},x={mode:i,persisted:a,beforeEnter(S){let z=s;if(!r.isMounted)if(n)z=m||s;else return;S[lo]&&S[lo](!0);const O=T[w];O&&Bo(e,O)&&O.el[lo]&&O.el[lo](),R(z,[S])},enter(S){let z=l,O=c,Q=d;if(!r.isMounted)if(n)z=v||l,O=g||c,Q=k||d;else return;let A=!1;const y=S[da]=M=>{A||(A=!0,M?R(Q,[S]):R(O,[S]),x.delayedLeave&&x.delayedLeave(),S[da]=void 0)};z?B(z,[S,y]):y()},leave(S,z){const O=String(e.key);if(S[da]&&S[da](!0),r.isUnmounting)return z();R(u,[S]);let Q=!1;const A=S[lo]=y=>{Q||(Q=!0,z(),y?R(h,[S]):R(p,[S]),S[lo]=void 0,T[O]===e&&delete T[O])};T[O]=e,f?B(f,[S,A]):A()},clone(S){return wi(S,t,r,o)}};return x}function Ys(e){if(xs(e))return e=qr(e),e.children=null,e}function nu(e){return xs(e)?e.children?e.children[0]:void 0:e}function _i(e,t){e.shapeFlag&6&&e.component?_i(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 Gc(e,t=!1,r){let o=[],n=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,xs=e=>e.type.__isKeepAlive;function sp(e,t){cp(e,"a",t)}function lp(e,t){cp(e,"da",t)}function cp(e,t,r=Ht){const o=e.__wdc||(e.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(ys(t,o,r),r){let n=r.parent;for(;n&&n.parent;)xs(n.parent.vnode)&&Jb(o,t,r,n),n=n.parent}}function Jb(e,t,r,o){const n=ys(t,e,o,!0);fp(()=>{Ac(o[t],n)},r)}function ys(e,t,r=Ht,o=!1){if(r){const n=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(r.isUnmounted)return;en();const s=Ki(r),l=xr(t,r,e,a);return s(),tn(),l});return o?n.unshift(i):n.push(i),i}}const Xr=e=>(t,r=Ht)=>(!ws||e==="sp")&&ys(e,(...o)=>t(...o),r),Vi=Xr("bm"),Ft=Xr("m"),dp=Xr("bu"),up=Xr("u"),Qt=Xr("bum"),fp=Xr("um"),Zb=Xr("sp"),Qb=Xr("rtg"),ex=Xr("rtc");function tx(e,t=Ht){ys("ec",e,t)}function Cs(e,t,r={},o,n){if(It.isCE||It.parent&&li(It.parent)&&It.parent.isCE)return t!=="default"&&(r.name=t),ze("slot",r,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Qe();const a=i&&hp(i(r)),s=St(st,{key:r.key||a&&a.key||`_${t}`},a||(o?o():[]),a&&e._===1?64:-2);return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function hp(e){return e.some(t=>ki(t)?!(t.type===Jt||t.type===st&&!hp(t.children)):!0)?e:null}const Il=e=>e?Pp(e)?_s(e)||e.proxy:Il(e.parent):null,ci=wt(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=>Il(e.parent),$root:e=>Il(e.root),$emit:e=>e.emit,$options:e=>Yc(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Kc(e.update)}),$nextTick:e=>e.n||(e.n=nr.bind(e.proxy)),$watch:e=>Gb.bind(e)}),Xs=(e,t)=>e!==ut&&!e.__isScriptSetup&&Ze(e,t),rx={get({_:e},t){const{ctx:r,setupState:o,data:n,props:i,accessCache:a,type:s,appContext:l}=e;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return n[t];case 4:return r[t];case 3:return i[t]}else{if(Xs(o,t))return a[t]=1,o[t];if(n!==ut&&Ze(n,t))return a[t]=2,n[t];if((c=e.propsOptions[0])&&Ze(c,t))return a[t]=3,i[t];if(r!==ut&&Ze(r,t))return a[t]=4,r[t];El&&(a[t]=0)}}const d=ci[t];let u,f;if(d)return t==="$attrs"&&ir(e,"get",t),d(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(r!==ut&&Ze(r,t))return a[t]=4,r[t];if(f=l.config.globalProperties,Ze(f,t))return f[t]},set({_:e},t,r){const{data:o,setupState:n,ctx:i}=e;return Xs(n,t)?(n[t]=r,!0):o!==ut&&Ze(o,t)?(o[t]=r,!0):Ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:n,propsOptions:i}},a){let s;return!!r[a]||e!==ut&&Ze(e,a)||Xs(t,a)||(s=i[0])&&Ze(s,a)||Ze(o,a)||Ze(ci,a)||Ze(n.config.globalProperties,a)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ze(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function iu(e){return Be(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let El=!0;function ox(e){const t=Yc(e),r=e.proxy,o=e.ctx;El=!1,t.beforeCreate&&au(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:a,watch:s,provide:l,inject:c,created:d,beforeMount:u,mounted:f,beforeUpdate:p,updated:h,activated:m,deactivated:v,beforeDestroy:g,beforeUnmount:k,destroyed:w,unmounted:T,render:R,renderTracked:B,renderTriggered:x,errorCaptured:S,serverPrefetch:z,expose:O,inheritAttrs:Q,components:A,directives:y,filters:M}=t;if(c&&nx(c,o,null),a)for(const _ in a){const V=a[_];Fe(V)&&(o[_]=V.bind(r))}if(n){const _=n.call(r,r);ht(_)&&(e.data=Kr(_))}if(El=!0,i)for(const _ in i){const V=i[_],ne=Fe(V)?V.bind(r,r):Fe(V.get)?V.get.bind(r,r):br,de=!Fe(V)&&Fe(V.set)?V.set.bind(r):br,G=N({get:ne,set:de});Object.defineProperty(o,_,{enumerable:!0,configurable:!0,get:()=>G.value,set:oe=>G.value=oe})}if(s)for(const _ in s)pp(s[_],o,r,_);if(l){const _=Fe(l)?l.call(r):l;Reflect.ownKeys(_).forEach(V=>{nt(V,_[V])})}d&&au(d,e,"c");function I(_,V){Be(V)?V.forEach(ne=>_(ne.bind(r))):V&&_(V.bind(r))}if(I(Vi,u),I(Ft,f),I(dp,p),I(up,h),I(sp,m),I(lp,v),I(tx,S),I(ex,B),I(Qb,x),I(Qt,k),I(fp,T),I(Zb,z),Be(O))if(O.length){const _=e.exposed||(e.exposed={});O.forEach(V=>{Object.defineProperty(_,V,{get:()=>r[V],set:ne=>r[V]=ne})})}else e.exposed||(e.exposed={});R&&e.render===br&&(e.render=R),Q!=null&&(e.inheritAttrs=Q),A&&(e.components=A),y&&(e.directives=y)}function nx(e,t,r=br){Be(e)&&(e=zl(e));for(const o in e){const n=e[o];let i;ht(n)?"default"in n?i=Ae(n.from||o,n.default,!0):i=Ae(n.from||o):i=Ae(n),Pt(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[o]=i}}function au(e,t,r){xr(Be(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function pp(e,t,r,o){const n=o.includes(".")?op(r,o):()=>r[o];if(_t(e)){const i=t[e];Fe(i)&&tt(n,i)}else if(Fe(e))tt(n,e.bind(r));else if(ht(e))if(Be(e))e.forEach(i=>pp(i,t,r,o));else{const i=Fe(e.handler)?e.handler.bind(r):t[e.handler];Fe(i)&&tt(n,i,e)}}function Yc(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!n.length&&!r&&!o?l=t:(l={},n.length&&n.forEach(c=>Ka(l,c,a,!0)),Ka(l,t,a)),ht(t)&&i.set(t,l),l}function Ka(e,t,r,o=!1){const{mixins:n,extends:i}=t;i&&Ka(e,i,r,!0),n&&n.forEach(a=>Ka(e,a,r,!0));for(const a in t)if(!(o&&a==="expose")){const s=ix[a]||r&&r[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const ix={data:su,props:lu,emits:lu,methods:oi,computed:oi,beforeCreate:Yt,created:Yt,beforeMount:Yt,mounted:Yt,beforeUpdate:Yt,updated:Yt,beforeDestroy:Yt,beforeUnmount:Yt,destroyed:Yt,unmounted:Yt,activated:Yt,deactivated:Yt,errorCaptured:Yt,serverPrefetch:Yt,components:oi,directives:oi,watch:sx,provide:su,inject:ax};function su(e,t){return t?e?function(){return wt(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function ax(e,t){return oi(zl(e),zl(t))}function zl(e){if(Be(e)){const t={};for(let r=0;r1)return r&&Fe(t)?t.call(o&&o.proxy):t}}function dx(){return!!(Ht||It||Pi)}function ux(e,t,r,o=!1){const n={},i={};Na(i,Ss,1),e.propsDefaults=Object.create(null),gp(e,t,n,i);for(const a in e.propsOptions[0])a in n||(n[a]=void 0);r?e.props=o?n:Tb(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function fx(e,t,r,o){const{props:n,attrs:i,vnode:{patchFlag:a}}=e,s=Ge(n),[l]=e.propsOptions;let c=!1;if((o||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[f,p]=vp(u,t,!0);wt(a,f),p&&s.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!l)return ht(e)&&o.set(e,yn),yn;if(Be(i))for(let d=0;d-1,p[1]=m<0||h-1||Ze(p,"default"))&&s.push(u)}}}const c=[a,s];return ht(e)&&o.set(e,c),c}function cu(e){return e[0]!=="$"}function du(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function uu(e,t){return du(e)===du(t)}function fu(e,t){return Be(t)?t.findIndex(r=>uu(r,e)):Fe(t)&&uu(t,e)?0:-1}const bp=e=>e[0]==="_"||e==="$stable",Xc=e=>Be(e)?e.map(Mr):[Mr(e)],hx=(e,t,r)=>{if(t._n)return t;const o=Ne((...n)=>Xc(t(...n)),r);return o._c=!1,o},xp=(e,t,r)=>{const o=e._ctx;for(const n in e){if(bp(n))continue;const i=e[n];if(Fe(i))t[n]=hx(n,i,o);else if(i!=null){const a=Xc(i);t[n]=()=>a}}},yp=(e,t)=>{const r=Xc(t);e.slots.default=()=>r},px=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Ge(t),Na(t,"_",r)):xp(t,e.slots={})}else e.slots={},t&&yp(e,t);Na(e.slots,Ss,1)},mx=(e,t,r)=>{const{vnode:o,slots:n}=e;let i=!0,a=ut;if(o.shapeFlag&32){const s=t._;s?r&&s===1?i=!1:(wt(n,t),!r&&s===1&&delete n._):(i=!t.$stable,xp(t,n)),a=t}else t&&(yp(e,t),a={default:1});if(i)for(const s in n)!bp(s)&&a[s]==null&&delete n[s]};function Al(e,t,r,o,n=!1){if(Be(e)){e.forEach((f,p)=>Al(f,t&&(Be(t)?t[p]:t),r,o,n));return}if(li(o)&&!n)return;const i=o.shapeFlag&4?_s(o.component)||o.component.proxy:o.el,a=n?null:i,{i:s,r:l}=e,c=t&&t.r,d=s.refs===ut?s.refs={}:s.refs,u=s.setupState;if(c!=null&&c!==l&&(_t(c)?(d[c]=null,Ze(u,c)&&(u[c]=null)):Pt(c)&&(c.value=null)),Fe(l))mo(l,s,12,[a,d]);else{const f=_t(l),p=Pt(l),h=e.f;if(f||p){const m=()=>{if(h){const v=f?Ze(u,l)?u[l]:d[l]:l.value;n?Be(v)&&Ac(v,i):Be(v)?v.includes(i)||v.push(i):f?(d[l]=[i],Ze(u,l)&&(u[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else f?(d[l]=a,Ze(u,l)&&(u[l]=a)):p&&(l.value=a,e.k&&(d[e.k]=a))};n||h?m():(m.id=-1,tr(m,r))}}}const tr=Ub;function gx(e){return vx(e)}function vx(e,t){const r=kh();r.__VUE__=!0;const{insert:o,remove:n,patchProp:i,createElement:a,createText:s,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:f,setScopeId:p=br,insertStaticContent:h}=e,m=(C,E,q,ae=null,se=null,he=null,ge=void 0,ee=null,ue=!!E.dynamicChildren)=>{if(C===E)return;C&&!Bo(C,E)&&(ae=$e(C),oe(C,se,he,!0),C=null),E.patchFlag===-2&&(ue=!1,E.dynamicChildren=null);const{type:ie,ref:F,shapeFlag:U}=E;switch(ie){case Ui:v(C,E,q,ae);break;case Jt:g(C,E,q,ae);break;case Zs:C==null&&k(E,q,ae,ge);break;case st:A(C,E,q,ae,se,he,ge,ee,ue);break;default:U&1?R(C,E,q,ae,se,he,ge,ee,ue):U&6?y(C,E,q,ae,se,he,ge,ee,ue):(U&64||U&128)&&ie.process(C,E,q,ae,se,he,ge,ee,ue,Oe)}F!=null&&se&&Al(F,C&&C.ref,he,E||C,!E)},v=(C,E,q,ae)=>{if(C==null)o(E.el=s(E.children),q,ae);else{const se=E.el=C.el;E.children!==C.children&&c(se,E.children)}},g=(C,E,q,ae)=>{C==null?o(E.el=l(E.children||""),q,ae):E.el=C.el},k=(C,E,q,ae)=>{[C.el,C.anchor]=h(C.children,E,q,ae,C.el,C.anchor)},w=({el:C,anchor:E},q,ae)=>{let se;for(;C&&C!==E;)se=f(C),o(C,q,ae),C=se;o(E,q,ae)},T=({el:C,anchor:E})=>{let q;for(;C&&C!==E;)q=f(C),n(C),C=q;n(E)},R=(C,E,q,ae,se,he,ge,ee,ue)=>{E.type==="svg"?ge="svg":E.type==="math"&&(ge="mathml"),C==null?B(E,q,ae,se,he,ge,ee,ue):z(C,E,se,he,ge,ee,ue)},B=(C,E,q,ae,se,he,ge,ee)=>{let ue,ie;const{props:F,shapeFlag:U,transition:Z,dirs:pe}=C;if(ue=C.el=a(C.type,he,F&&F.is,F),U&8?d(ue,C.children):U&16&&S(C.children,ue,null,ae,se,Js(C,he),ge,ee),pe&&Ro(C,null,ae,"created"),x(ue,C,C.scopeId,ge,ae),F){for(const Ie in F)Ie!=="value"&&!Ta(Ie)&&i(ue,Ie,null,F[Ie],he,C.children,ae,se,Te);"value"in F&&i(ue,"value",null,F.value,he),(ie=F.onVnodeBeforeMount)&&kr(ie,ae,C)}pe&&Ro(C,null,ae,"beforeMount");const Se=bx(se,Z);Se&&Z.beforeEnter(ue),o(ue,E,q),((ie=F&&F.onVnodeMounted)||Se||pe)&&tr(()=>{ie&&kr(ie,ae,C),Se&&Z.enter(ue),pe&&Ro(C,null,ae,"mounted")},se)},x=(C,E,q,ae,se)=>{if(q&&p(C,q),ae)for(let he=0;he{for(let ie=ue;ie{const ee=E.el=C.el;let{patchFlag:ue,dynamicChildren:ie,dirs:F}=E;ue|=C.patchFlag&16;const U=C.props||ut,Z=E.props||ut;let pe;if(q&&Io(q,!1),(pe=Z.onVnodeBeforeUpdate)&&kr(pe,q,E,C),F&&Ro(E,C,q,"beforeUpdate"),q&&Io(q,!0),ie?O(C.dynamicChildren,ie,ee,q,ae,Js(E,se),he):ge||V(C,E,ee,null,q,ae,Js(E,se),he,!1),ue>0){if(ue&16)Q(ee,E,U,Z,q,ae,se);else if(ue&2&&U.class!==Z.class&&i(ee,"class",null,Z.class,se),ue&4&&i(ee,"style",U.style,Z.style,se),ue&8){const Se=E.dynamicProps;for(let Ie=0;Ie{pe&&kr(pe,q,E,C),F&&Ro(E,C,q,"updated")},ae)},O=(C,E,q,ae,se,he,ge)=>{for(let ee=0;ee{if(q!==ae){if(q!==ut)for(const ee in q)!Ta(ee)&&!(ee in ae)&&i(C,ee,q[ee],null,ge,E.children,se,he,Te);for(const ee in ae){if(Ta(ee))continue;const ue=ae[ee],ie=q[ee];ue!==ie&&ee!=="value"&&i(C,ee,ie,ue,ge,E.children,se,he,Te)}"value"in ae&&i(C,"value",q.value,ae.value,ge)}},A=(C,E,q,ae,se,he,ge,ee,ue)=>{const ie=E.el=C?C.el:s(""),F=E.anchor=C?C.anchor:s("");let{patchFlag:U,dynamicChildren:Z,slotScopeIds:pe}=E;pe&&(ee=ee?ee.concat(pe):pe),C==null?(o(ie,q,ae),o(F,q,ae),S(E.children||[],q,F,se,he,ge,ee,ue)):U>0&&U&64&&Z&&C.dynamicChildren?(O(C.dynamicChildren,Z,q,se,he,ge,ee),(E.key!=null||se&&E===se.subTree)&&Jc(C,E,!0)):V(C,E,q,F,se,he,ge,ee,ue)},y=(C,E,q,ae,se,he,ge,ee,ue)=>{E.slotScopeIds=ee,C==null?E.shapeFlag&512?se.ctx.activate(E,q,ae,ge,ue):M(E,q,ae,se,he,ge,ue):P(C,E,ue)},M=(C,E,q,ae,se,he,ge)=>{const ee=C.component=$x(C,ae,se);if(xs(C)&&(ee.ctx.renderer=Oe),Rx(ee),ee.asyncDep){if(se&&se.registerDep(ee,I),!C.el){const ue=ee.subTree=ze(Jt);g(null,ue,E,q)}}else I(ee,C,E,q,se,he,ge)},P=(C,E,q)=>{const ae=E.component=C.component;if(jb(C,E,q))if(ae.asyncDep&&!ae.asyncResolved){_(ae,E,q);return}else ae.next=E,Ob(ae.update),ae.effect.dirty=!0,ae.update();else E.el=C.el,ae.vnode=E},I=(C,E,q,ae,se,he,ge)=>{const ee=()=>{if(C.isMounted){let{next:F,bu:U,u:Z,parent:pe,vnode:Se}=C;{const kt=Cp(C);if(kt){F&&(F.el=Se.el,_(C,F,ge)),kt.asyncDep.then(()=>{C.isUnmounted||ee()});return}}let Ie=F,je;Io(C,!1),F?(F.el=Se.el,_(C,F,ge)):F=Se,U&&Ks(U),(je=F.props&&F.props.onVnodeBeforeUpdate)&&kr(je,pe,F,Se),Io(C,!0);const Le=Gs(C),Xe=C.subTree;C.subTree=Le,m(Xe,Le,u(Xe.el),$e(Xe),C,se,he),F.el=Le.el,Ie===null&&Nb(C,Le.el),Z&&tr(Z,se),(je=F.props&&F.props.onVnodeUpdated)&&tr(()=>kr(je,pe,F,Se),se)}else{let F;const{el:U,props:Z}=E,{bm:pe,m:Se,parent:Ie}=C,je=li(E);if(Io(C,!1),pe&&Ks(pe),!je&&(F=Z&&Z.onVnodeBeforeMount)&&kr(F,Ie,E),Io(C,!0),U&&We){const Le=()=>{C.subTree=Gs(C),We(U,C.subTree,C,se,null)};je?E.type.__asyncLoader().then(()=>!C.isUnmounted&&Le()):Le()}else{const Le=C.subTree=Gs(C);m(null,Le,q,ae,C,se,he),E.el=Le.el}if(Se&&tr(Se,se),!je&&(F=Z&&Z.onVnodeMounted)){const Le=E;tr(()=>kr(F,Ie,Le),se)}(E.shapeFlag&256||Ie&&li(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&C.a&&tr(C.a,se),C.isMounted=!0,E=q=ae=null}},ue=C.effect=new Fc(ee,br,()=>Kc(ie),C.scope),ie=C.update=()=>{ue.dirty&&ue.run()};ie.id=C.uid,Io(C,!0),ie()},_=(C,E,q)=>{E.component=C;const ae=C.vnode.props;C.vnode=E,C.next=null,fx(C,E.props,ae,q),mx(C,E.children,q),en(),ru(C),tn()},V=(C,E,q,ae,se,he,ge,ee,ue=!1)=>{const ie=C&&C.children,F=C?C.shapeFlag:0,U=E.children,{patchFlag:Z,shapeFlag:pe}=E;if(Z>0){if(Z&128){de(ie,U,q,ae,se,he,ge,ee,ue);return}else if(Z&256){ne(ie,U,q,ae,se,he,ge,ee,ue);return}}pe&8?(F&16&&Te(ie,se,he),U!==ie&&d(q,U)):F&16?pe&16?de(ie,U,q,ae,se,he,ge,ee,ue):Te(ie,se,he,!0):(F&8&&d(q,""),pe&16&&S(U,q,ae,se,he,ge,ee,ue))},ne=(C,E,q,ae,se,he,ge,ee,ue)=>{C=C||yn,E=E||yn;const ie=C.length,F=E.length,U=Math.min(ie,F);let Z;for(Z=0;ZF?Te(C,se,he,!0,!1,U):S(E,q,ae,se,he,ge,ee,ue,U)},de=(C,E,q,ae,se,he,ge,ee,ue)=>{let ie=0;const F=E.length;let U=C.length-1,Z=F-1;for(;ie<=U&&ie<=Z;){const pe=C[ie],Se=E[ie]=ue?co(E[ie]):Mr(E[ie]);if(Bo(pe,Se))m(pe,Se,q,null,se,he,ge,ee,ue);else break;ie++}for(;ie<=U&&ie<=Z;){const pe=C[U],Se=E[Z]=ue?co(E[Z]):Mr(E[Z]);if(Bo(pe,Se))m(pe,Se,q,null,se,he,ge,ee,ue);else break;U--,Z--}if(ie>U){if(ie<=Z){const pe=Z+1,Se=peZ)for(;ie<=U;)oe(C[ie],se,he,!0),ie++;else{const pe=ie,Se=ie,Ie=new Map;for(ie=Se;ie<=Z;ie++){const ce=E[ie]=ue?co(E[ie]):Mr(E[ie]);ce.key!=null&&Ie.set(ce.key,ie)}let je,Le=0;const Xe=Z-Se+1;let kt=!1,wr=0;const Mt=new Array(Xe);for(ie=0;ie=Xe){oe(ce,se,he,!0);continue}let be;if(ce.key!=null)be=Ie.get(ce.key);else for(je=Se;je<=Z;je++)if(Mt[je-Se]===0&&Bo(ce,E[je])){be=je;break}be===void 0?oe(ce,se,he,!0):(Mt[be-Se]=ie+1,be>=wr?wr=be:kt=!0,m(ce,E[be],q,null,se,he,ge,ee,ue),Le++)}const Po=kt?xx(Mt):yn;for(je=Po.length-1,ie=Xe-1;ie>=0;ie--){const ce=Se+ie,be=E[ce],Ee=ce+1{const{el:he,type:ge,transition:ee,children:ue,shapeFlag:ie}=C;if(ie&6){G(C.component.subTree,E,q,ae);return}if(ie&128){C.suspense.move(E,q,ae);return}if(ie&64){ge.move(C,E,q,Oe);return}if(ge===st){o(he,E,q);for(let U=0;Uee.enter(he),se);else{const{leave:U,delayLeave:Z,afterLeave:pe}=ee,Se=()=>o(he,E,q),Ie=()=>{U(he,()=>{Se(),pe&&pe()})};Z?Z(he,Se,Ie):Ie()}else o(he,E,q)},oe=(C,E,q,ae=!1,se=!1)=>{const{type:he,props:ge,ref:ee,children:ue,dynamicChildren:ie,shapeFlag:F,patchFlag:U,dirs:Z}=C;if(ee!=null&&Al(ee,null,q,C,!0),F&256){E.ctx.deactivate(C);return}const pe=F&1&&Z,Se=!li(C);let Ie;if(Se&&(Ie=ge&&ge.onVnodeBeforeUnmount)&&kr(Ie,E,C),F&6)xe(C.component,q,ae);else{if(F&128){C.suspense.unmount(q,ae);return}pe&&Ro(C,null,E,"beforeUnmount"),F&64?C.type.remove(C,E,q,se,Oe,ae):ie&&(he!==st||U>0&&U&64)?Te(ie,E,q,!1,!0):(he===st&&U&384||!se&&F&16)&&Te(ue,E,q),ae&&X(C)}(Se&&(Ie=ge&&ge.onVnodeUnmounted)||pe)&&tr(()=>{Ie&&kr(Ie,E,C),pe&&Ro(C,null,E,"unmounted")},q)},X=C=>{const{type:E,el:q,anchor:ae,transition:se}=C;if(E===st){re(q,ae);return}if(E===Zs){T(C);return}const he=()=>{n(q),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(C.shapeFlag&1&&se&&!se.persisted){const{leave:ge,delayLeave:ee}=se,ue=()=>ge(q,he);ee?ee(C.el,he,ue):ue()}else he()},re=(C,E)=>{let q;for(;C!==E;)q=f(C),n(C),C=q;n(E)},xe=(C,E,q)=>{const{bum:ae,scope:se,update:he,subTree:ge,um:ee}=C;ae&&Ks(ae),se.stop(),he&&(he.active=!1,oe(ge,C,E,q)),ee&&tr(ee,E),tr(()=>{C.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},Te=(C,E,q,ae=!1,se=!1,he=0)=>{for(let ge=he;geC.shapeFlag&6?$e(C.component.subTree):C.shapeFlag&128?C.suspense.next():f(C.anchor||C.el);let Ye=!1;const Y=(C,E,q)=>{C==null?E._vnode&&oe(E._vnode,null,null,!0):m(E._vnode||null,C,E,null,null,null,q),Ye||(Ye=!0,ru(),Qh(),Ye=!1),E._vnode=C},Oe={p:m,um:oe,m:G,r:X,mt:M,mc:S,pc:V,pbc:O,n:$e,o:e};let De,We;return t&&([De,We]=t(Oe)),{render:Y,hydrate:De,createApp:cx(Y,De)}}function Js({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Io({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function bx(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Jc(e,t,r=!1){const o=e.children,n=t.children;if(Be(o)&&Be(n))for(let i=0;i>1,e[r[s]]0&&(t[o]=r[i-1]),r[i]=o)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=t[a];return r}function Cp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cp(t)}const yx=e=>e.__isTeleport,di=e=>e&&(e.disabled||e.disabled===""),hu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ol=(e,t)=>{const r=e&&e.to;return _t(r)?t?t(r):null:r},Cx={name:"Teleport",__isTeleport:!0,process(e,t,r,o,n,i,a,s,l,c){const{mc:d,pc:u,pbc:f,o:{insert:p,querySelector:h,createText:m,createComment:v}}=c,g=di(t.props);let{shapeFlag:k,children:w,dynamicChildren:T}=t;if(e==null){const R=t.el=m(""),B=t.anchor=m("");p(R,r,o),p(B,r,o);const x=t.target=Ol(t.props,h),S=t.targetAnchor=m("");x&&(p(S,x),a==="svg"||hu(x)?a="svg":(a==="mathml"||pu(x))&&(a="mathml"));const z=(O,Q)=>{k&16&&d(w,O,Q,n,i,a,s,l)};g?z(r,B):x&&z(x,S)}else{t.el=e.el;const R=t.anchor=e.anchor,B=t.target=e.target,x=t.targetAnchor=e.targetAnchor,S=di(e.props),z=S?r:B,O=S?R:x;if(a==="svg"||hu(B)?a="svg":(a==="mathml"||pu(B))&&(a="mathml"),T?(f(e.dynamicChildren,T,z,n,i,a,s),Jc(e,t,!0)):l||u(e,t,z,O,n,i,a,s,!1),g)S?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ua(t,r,R,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Q=t.target=Ol(t.props,h);Q&&ua(t,Q,null,c,0)}else S&&ua(t,B,x,c,1)}Sp(t)},remove(e,t,r,o,{um:n,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:d,target:u,props:f}=e;if(u&&i(d),a&&i(c),s&16){const p=a||!di(f);for(let h=0;h0?Pr||yn:null,wx(),Ti>0&&Pr&&Pr.push(e),e}function pr(e,t,r,o,n,i){return wp(pt(e,t,r,o,n,i,!0))}function St(e,t,r,o,n){return wp(ze(e,t,r,o,n,!0))}function ki(e){return e?e.__v_isVNode===!0:!1}function Bo(e,t){return e.type===t.type&&e.key===t.key}const Ss="__vInternal",_p=({key:e})=>e??null,$a=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?_t(e)||Pt(e)||Fe(e)?{i:It,r:e,k:t,f:!!r}:e:null);function pt(e,t=null,r=null,o=0,n=null,i=e===st?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&_p(t),ref:t&&$a(t),scopeId:rp,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:It};return s?(Qc(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=_t(r)?8:16),Ti>0&&!a&&Pr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Pr.push(l),l}const ze=_x;function _x(e,t=null,r=null,o=0,n=null,i=!1){if((!e||e===Wb)&&(e=Jt),ki(e)){const s=qr(e,t,!0);return r&&Qc(s,r),Ti>0&&!i&&Pr&&(s.shapeFlag&6?Pr[Pr.indexOf(e)]=s:Pr.push(s)),s.patchFlag|=-2,s}if(Mx(e)&&(e=e.__vccOpts),t){t=Px(t);let{class:s,style:l}=t;s&&!_t(s)&&(t.class=ms(s)),ht(l)&&(Uh(l)&&!Be(l)&&(l=wt({},l)),t.style=Dc(l))}const a=_t(e)?1:Vb(e)?128:yx(e)?64:ht(e)?4:Fe(e)?2:0;return pt(e,t,r,o,n,a,i,!0)}function Px(e){return e?Uh(e)||Ss in e?wt({},e):e:null}function qr(e,t,r=!1){const{props:o,ref:n,patchFlag:i,children:a}=e,s=t?Ln(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&_p(s),ref:t&&t.ref?r&&n?Be(n)?n.concat($a(t)):[n,$a(t)]:$a(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==st?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qr(e.ssContent),ssFallback:e.ssFallback&&qr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function yr(e=" ",t=0){return ze(Ui,null,e,t)}function wn(e="",t=!1){return t?(Qe(),St(Jt,null,e)):ze(Jt,null,e)}function Mr(e){return e==null||typeof e=="boolean"?ze(Jt):Be(e)?ze(st,null,e.slice()):typeof e=="object"?co(e):ze(Ui,null,String(e))}function co(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qr(e)}function Qc(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Be(t))r=16;else if(typeof t=="object")if(o&65){const n=t.default;n&&(n._c&&(n._d=!1),Qc(e,n()),n._c&&(n._d=!0));return}else{r=32;const n=t._;!n&&!(Ss in t)?t._ctx=It:n===3&&It&&(It.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fe(t)?(t={default:t,_ctx:It},r=32):(t=String(t),o&64?(r=16,t=[yr(t)]):r=8);e.children=t,e.shapeFlag|=r}function Ln(...e){const t={};for(let r=0;rHt||It;let qa,Dl;{const e=kh(),t=(r,o)=>{let n;return(n=e[r])||(n=e[r]=[]),n.push(o),i=>{n.length>1?n.forEach(a=>a(i)):n[0](i)}};qa=t("__VUE_INSTANCE_SETTERS__",r=>Ht=r),Dl=t("__VUE_SSR_SETTERS__",r=>ws=r)}const Ki=e=>{const t=Ht;return qa(e),e.scope.on(),()=>{e.scope.off(),qa(t)}},gu=()=>{Ht&&Ht.scope.off(),qa(null)};function Pp(e){return e.vnode.shapeFlag&4}let ws=!1;function Rx(e,t=!1){t&&Dl(t);const{props:r,children:o}=e.vnode,n=Pp(e);ux(e,r,n,t),px(e,o);const i=n?Ix(e,t):void 0;return t&&Dl(!1),i}function Ix(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=En(new Proxy(e.ctx,rx));const{setup:o}=r;if(o){const n=e.setupContext=o.length>1?zx(e):null,i=Ki(e);en();const a=mo(o,e,0,[e.props,n]);if(tn(),i(),wh(a)){if(a.then(gu,gu),t)return a.then(s=>{vu(e,s,t)}).catch(s=>{vs(s,e,0)});e.asyncDep=a}else vu(e,a,t)}else Tp(e,t)}function vu(e,t,r){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ht(t)&&(e.setupState=Yh(t)),Tp(e,r)}let bu;function Tp(e,t,r){const o=e.type;if(!e.render){if(!t&&bu&&!o.render){const n=o.template||Yc(e).template;if(n){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=o,c=wt(wt({isCustomElement:i,delimiters:s},a),l);o.render=bu(n,c)}}e.render=o.render||br}{const n=Ki(e);en();try{ox(e)}finally{tn(),n()}}}function Ex(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return ir(e,"get","$attrs"),t[r]}}))}function zx(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Ex(e)},slots:e.slots,emit:e.emit,expose:t}}function _s(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yh(En(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in ci)return ci[r](e)},has(t,r){return r in t||r in ci}}))}function Mx(e){return Fe(e)&&"__vccOpts"in e}const N=(e,t)=>kb(e,t,ws);function b(e,t,r){const o=arguments.length;return o===2?ht(t)&&!Be(t)?ki(t)?ze(e,null,[t]):ze(e,t):ze(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&ki(r)&&(r=[r]),ze(e,t,r))}const Ax="3.4.15";/** -* @vue/runtime-dom v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const Ox="http://www.w3.org/2000/svg",Dx="http://www.w3.org/1998/Math/MathML",uo=typeof document<"u"?document:null,xu=uo&&uo.createElement("template"),Bx={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const n=t==="svg"?uo.createElementNS(Ox,e):t==="mathml"?uo.createElementNS(Dx,e):uo.createElement(e,r?{is:r}:void 0);return e==="select"&&o&&o.multiple!=null&&n.setAttribute("multiple",o.multiple),n},createText:e=>uo.createTextNode(e),createComment:e=>uo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>uo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,n,i){const a=r?r.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),r),!(n===i||!(n=n.nextSibling)););else{xu.innerHTML=o==="svg"?`${e}`:o==="mathml"?`${e}`:e;const s=xu.content;if(o==="svg"||o==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[a?a.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},to="transition",Xn="animation",zn=Symbol("_vtc"),Tr=(e,{slots:t})=>b(Xb,$p(e),t);Tr.displayName="Transition";const kp={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},Fx=Tr.props=wt({},ip,kp),Eo=(e,t=[])=>{Be(e)?e.forEach(r=>r(...t)):e&&e(...t)},yu=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function $p(e){const t={};for(const A in e)A in kp||(t[A]=e[A]);if(e.css===!1)return t;const{name:r="v",type:o,duration:n,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:d=s,leaveFromClass:u=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,h=Lx(n),m=h&&h[0],v=h&&h[1],{onBeforeEnter:g,onEnter:k,onEnterCancelled:w,onLeave:T,onLeaveCancelled:R,onBeforeAppear:B=g,onAppear:x=k,onAppearCancelled:S=w}=t,z=(A,y,M)=>{io(A,y?d:s),io(A,y?c:a),M&&M()},O=(A,y)=>{A._isLeaving=!1,io(A,u),io(A,p),io(A,f),y&&y()},Q=A=>(y,M)=>{const P=A?x:k,I=()=>z(y,A,M);Eo(P,[y,I]),Cu(()=>{io(y,A?l:i),Vr(y,A?d:s),yu(P)||Su(y,o,m,I)})};return wt(t,{onBeforeEnter(A){Eo(g,[A]),Vr(A,i),Vr(A,a)},onBeforeAppear(A){Eo(B,[A]),Vr(A,l),Vr(A,c)},onEnter:Q(!1),onAppear:Q(!0),onLeave(A,y){A._isLeaving=!0;const M=()=>O(A,y);Vr(A,u),Ip(),Vr(A,f),Cu(()=>{A._isLeaving&&(io(A,u),Vr(A,p),yu(T)||Su(A,o,v,M))}),Eo(T,[A,M])},onEnterCancelled(A){z(A,!1),Eo(w,[A])},onAppearCancelled(A){z(A,!0),Eo(S,[A])},onLeaveCancelled(A){O(A),Eo(R,[A])}})}function Lx(e){if(e==null)return null;if(ht(e))return[Qs(e.enter),Qs(e.leave)];{const t=Qs(e);return[t,t]}}function Qs(e){return J0(e)}function Vr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[zn]||(e[zn]=new Set)).add(t)}function io(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[zn];r&&(r.delete(t),r.size||(e[zn]=void 0))}function Cu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hx=0;function Su(e,t,r,o){const n=e._endId=++Hx,i=()=>{n===e._endId&&o()};if(r)return setTimeout(i,r);const{type:a,timeout:s,propCount:l}=Rp(e,t);if(!a)return o();const c=a+"end";let d=0;const u=()=>{e.removeEventListener(c,f),i()},f=p=>{p.target===e&&++d>=l&&u()};setTimeout(()=>{d(r[h]||"").split(", "),n=o(`${to}Delay`),i=o(`${to}Duration`),a=wu(n,i),s=o(`${Xn}Delay`),l=o(`${Xn}Duration`),c=wu(s,l);let d=null,u=0,f=0;t===to?a>0&&(d=to,u=a,f=i.length):t===Xn?c>0&&(d=Xn,u=c,f=l.length):(u=Math.max(a,c),d=u>0?a>c?to:Xn:null,f=d?d===to?i.length:l.length:0);const p=d===to&&/\b(transform|all)(,|$)/.test(o(`${to}Property`).toString());return{type:d,timeout:u,propCount:f,hasTransform:p}}function wu(e,t){for(;e.length_u(r)+_u(e[o])))}function _u(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ip(){return document.body.offsetHeight}function jx(e,t,r){const o=e[zn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const ed=Symbol("_vod"),Ep={beforeMount(e,{value:t},{transition:r}){e[ed]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Jn(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),Jn(e,!0),o.enter(e)):o.leave(e,()=>{Jn(e,!1)}):Jn(e,t))},beforeUnmount(e,{value:t}){Jn(e,t)}};function Jn(e,t){e.style.display=t?e[ed]:"none"}const Nx=Symbol("");function Wx(e,t,r){const o=e.style,n=o.display,i=_t(r);if(r&&!i){if(t&&!_t(t))for(const a in t)r[a]==null&&Bl(o,a,"");for(const a in r)Bl(o,a,r[a])}else if(i){if(t!==r){const a=o[Nx];a&&(r+=";"+a),o.cssText=r}}else t&&e.removeAttribute("style");ed in e&&(o.display=n)}const Pu=/\s*!important$/;function Bl(e,t,r){if(Be(r))r.forEach(o=>Bl(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=Vx(e,t);Pu.test(r)?e.setProperty(Qo(o),r.replace(Pu,""),"important"):e[o]=r}}const Tu=["Webkit","Moz","ms"],el={};function Vx(e,t){const r=el[t];if(r)return r;let o=Rn(t);if(o!=="filter"&&o in e)return el[t]=o;o=Th(o);for(let n=0;ntl||(Jx.then(()=>tl=0),tl=Date.now());function Qx(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;xr(ey(o,r.value),t,5,[o])};return r.value=e,r.attached=Zx(),r}function ey(e,t){if(Be(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>n=>!n._stopped&&o&&o(n))}else return t}const Iu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ty=(e,t,r,o,n,i,a,s,l)=>{const c=n==="svg";t==="class"?jx(e,o,c):t==="style"?Wx(e,r,o):fs(t)?Mc(t)||Yx(e,t,r,o,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ry(e,t,o,c))?Kx(e,t,o,i,a,s,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ux(e,t,o,c))};function ry(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Iu(t)&&Fe(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Iu(t)&&_t(r)?!1:t in e}const zp=new WeakMap,Mp=new WeakMap,Ga=Symbol("_moveCb"),Eu=Symbol("_enterCb"),Ap={name:"TransitionGroup",props:wt({},Fx,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=So(),o=np();let n,i;return up(()=>{if(!n.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!ly(n[0].el,r.vnode.el,a))return;n.forEach(iy),n.forEach(ay);const s=n.filter(sy);Ip(),s.forEach(l=>{const c=l.el,d=c.style;Vr(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Ga]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",u),c[Ga]=null,io(c,a))};c.addEventListener("transitionend",u)})}),()=>{const a=Ge(e),s=$p(a);let l=a.tag||st;n=i,i=t.default?Gc(t.default()):[];for(let c=0;cdelete e.mode;Ap.props;const ny=Ap;function iy(e){const t=e.el;t[Ga]&&t[Ga](),t[Eu]&&t[Eu]()}function ay(e){Mp.set(e,e.el.getBoundingClientRect())}function sy(e){const t=zp.get(e),r=Mp.get(e),o=t.left-r.left,n=t.top-r.top;if(o||n){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${n}px)`,i.transitionDuration="0s",e}}function ly(e,t,r){const o=e.cloneNode(),n=e[zn];n&&n.forEach(s=>{s.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&o.classList.add(s)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:a}=Rp(o);return i.removeChild(o),a}const cy=["ctrl","shift","alt","meta"],dy={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>cy.some(r=>e[`${r}Key`]&&!t.includes(r))},uy=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(n,...i)=>{for(let a=0;a{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=n=>{if(!("key"in n))return;const i=Qo(n.key);if(t.some(a=>a===i||fy[a]===i))return e(n)})},py=wt({patchProp:ty},Bx);let zu;function my(){return zu||(zu=gx(py))}const gy=(...e)=>{const t=my().createApp(...e),{mount:r}=t;return t.mount=o=>{const n=by(o);if(!n)return;const i=t._component;!Fe(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.innerHTML="";const a=r(n,!1,vy(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},t};function vy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function by(e){return _t(e)?document.querySelector(e):e}var xy=!1;/*! - * pinia v2.1.7 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */let Op;const Ps=e=>Op=e,Dp=Symbol();function Fl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fi||(fi={}));function yy(){const e=Eh(!0),t=e.run(()=>J({}));let r=[],o=[];const n=En({install(i){Ps(n),n._a=i,i.provide(Dp,n),i.config.globalProperties.$pinia=n,o.forEach(a=>r.push(a)),o=[]},use(i){return!this._a&&!xy?o.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return n}const Bp=()=>{};function Mu(e,t,r,o=Bp){e.push(t);const n=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!r&&Bc()&&zh(n),n}function fn(e,...t){e.slice().forEach(r=>{r(...t)})}const Cy=e=>e();function Ll(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,o)=>e.set(o,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const o=t[r],n=e[r];Fl(n)&&Fl(o)&&e.hasOwnProperty(r)&&!Pt(o)&&!po(o)?e[r]=Ll(n,o):e[r]=o}return e}const Sy=Symbol();function wy(e){return!Fl(e)||!e.hasOwnProperty(Sy)}const{assign:ao}=Object;function _y(e){return!!(Pt(e)&&e.effect)}function Py(e,t,r,o){const{state:n,actions:i,getters:a}=t,s=r.state.value[e];let l;function c(){s||(r.state.value[e]=n?n():{});const d=Ib(r.state.value[e]);return ao(d,i,Object.keys(a||{}).reduce((u,f)=>(u[f]=En(N(()=>{Ps(r);const p=r._s.get(e);return a[f].call(p,p)})),u),{}))}return l=Fp(e,c,t,r,o,!0),l}function Fp(e,t,r={},o,n,i){let a;const s=ao({actions:{}},r),l={deep:!0};let c,d,u=[],f=[],p;const h=o.state.value[e];!i&&!h&&(o.state.value[e]={}),J({});let m;function v(S){let z;c=d=!1,typeof S=="function"?(S(o.state.value[e]),z={type:fi.patchFunction,storeId:e,events:p}):(Ll(o.state.value[e],S),z={type:fi.patchObject,payload:S,storeId:e,events:p});const O=m=Symbol();nr().then(()=>{m===O&&(c=!0)}),d=!0,fn(u,z,o.state.value[e])}const g=i?function(){const{state:z}=r,O=z?z():{};this.$patch(Q=>{ao(Q,O)})}:Bp;function k(){a.stop(),u=[],f=[],o._s.delete(e)}function w(S,z){return function(){Ps(o);const O=Array.from(arguments),Q=[],A=[];function y(I){Q.push(I)}function M(I){A.push(I)}fn(f,{args:O,name:S,store:R,after:y,onError:M});let P;try{P=z.apply(this&&this.$id===e?this:R,O)}catch(I){throw fn(A,I),I}return P instanceof Promise?P.then(I=>(fn(Q,I),I)).catch(I=>(fn(A,I),Promise.reject(I))):(fn(Q,P),P)}}const T={_p:o,$id:e,$onAction:Mu.bind(null,f),$patch:v,$reset:g,$subscribe(S,z={}){const O=Mu(u,S,z.detached,()=>Q()),Q=a.run(()=>tt(()=>o.state.value[e],A=>{(z.flush==="sync"?d:c)&&S({storeId:e,type:fi.direct,events:p},A)},ao({},l,z)));return O},$dispose:k},R=Kr(T);o._s.set(e,R);const x=(o._a&&o._a.runWithContext||Cy)(()=>o._e.run(()=>(a=Eh()).run(t)));for(const S in x){const z=x[S];if(Pt(z)&&!_y(z)||po(z))i||(h&&wy(z)&&(Pt(z)?z.value=h[S]:Ll(z,h[S])),o.state.value[e][S]=z);else if(typeof z=="function"){const O=w(S,z);x[S]=O,s.actions[S]=z}}return ao(R,x),ao(Ge(R),x),Object.defineProperty(R,"$state",{get:()=>o.state.value[e],set:S=>{v(z=>{ao(z,S)})}}),o._p.forEach(S=>{ao(R,a.run(()=>S({store:R,app:o._a,pinia:o,options:s})))}),h&&i&&r.hydrate&&r.hydrate(R.$state,h),c=!0,d=!0,R}function Ty(e,t,r){let o,n;const i=typeof t=="function";typeof e=="string"?(o=e,n=i?r:t):(n=e,o=e.id);function a(s,l){const c=dx();return s=s||(c?Ae(Dp,null):null),s&&Ps(s),s=Op,s._s.has(o)||(i?Fp(o,t,n,s):Py(o,n,s)),s._s.get(o)}return a.$id=o,a}let Ya=[];const Lp=new WeakMap;function ky(){Ya.forEach(e=>e(...Lp.get(e))),Ya=[]}function $y(e,...t){Lp.set(e,t),!Ya.includes(e)&&Ya.push(e)===1&&requestAnimationFrame(ky)}function Au(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Xa(e){return e.composedPath()[0]||null}function Ou(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Ts(e,t){const r=e.trim().split(/\s+/g),o={top:r[0]};switch(r.length){case 1:o.right=r[0],o.bottom=r[0],o.left=r[0];break;case 2:o.right=r[1],o.left=r[1],o.bottom=r[0];break;case 3:o.right=r[1],o.bottom=r[2],o.left=r[1];break;case 4:o.right=r[1],o.bottom=r[2],o.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}function Ry(e,t){const[r,o]=e.split(" ");return t?t==="row"?r:o:{row:r,col:o||r}}const Du={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},Hn="^\\s*",jn="\\s*$",Ho="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",jo="([0-9A-Fa-f])",No="([0-9A-Fa-f]{2})",Iy=new RegExp(`${Hn}rgb\\s*\\(${Ho},${Ho},${Ho}\\)${jn}`),Ey=new RegExp(`${Hn}rgba\\s*\\(${Ho},${Ho},${Ho},${Ho}\\)${jn}`),zy=new RegExp(`${Hn}#${jo}${jo}${jo}${jn}`),My=new RegExp(`${Hn}#${No}${No}${No}${jn}`),Ay=new RegExp(`${Hn}#${jo}${jo}${jo}${jo}${jn}`),Oy=new RegExp(`${Hn}#${No}${No}${No}${No}${jn}`);function er(e){return parseInt(e,16)}function Gr(e){try{let t;if(t=My.exec(e))return[er(t[1]),er(t[2]),er(t[3]),1];if(t=Iy.exec(e))return[Ut(t[1]),Ut(t[5]),Ut(t[9]),1];if(t=Ey.exec(e))return[Ut(t[1]),Ut(t[5]),Ut(t[9]),hi(t[13])];if(t=zy.exec(e))return[er(t[1]+t[1]),er(t[2]+t[2]),er(t[3]+t[3]),1];if(t=Oy.exec(e))return[er(t[1]),er(t[2]),er(t[3]),hi(er(t[4])/255)];if(t=Ay.exec(e))return[er(t[1]+t[1]),er(t[2]+t[2]),er(t[3]+t[3]),hi(er(t[4]+t[4])/255)];if(e in Du)return Gr(Du[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Dy(e){return e>1?1:e<0?0:e}function Hl(e,t,r,o){return`rgba(${Ut(e)}, ${Ut(t)}, ${Ut(r)}, ${Dy(o)})`}function rl(e,t,r,o,n){return Ut((e*t*(1-o)+r*o)/n)}function ke(e,t){Array.isArray(e)||(e=Gr(e)),Array.isArray(t)||(t=Gr(t));const r=e[3],o=t[3],n=hi(r+o-r*o);return Hl(rl(e[0],r,t[0],o,n),rl(e[1],r,t[1],o,n),rl(e[2],r,t[2],o,n),n)}function fe(e,t){const[r,o,n,i=1]=Array.isArray(e)?e:Gr(e);return t.alpha?Hl(r,o,n,t.alpha):Hl(r,o,n,i)}function yt(e,t){const[r,o,n,i=1]=Array.isArray(e)?e:Gr(e),{lightness:a=1,alpha:s=1}=t;return By([r*a,o*a,n*a,i*s])}function hi(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Ut(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function By(e){const[t,r,o]=e;return 3 in e?`rgba(${Ut(t)}, ${Ut(r)}, ${Ut(o)}, ${hi(e[3])})`:`rgba(${Ut(t)}, ${Ut(r)}, ${Ut(o)}, 1)`}function Mn(e=8){return Math.random().toString(16).slice(2,2+e)}function Fy(e,t="default",r=[]){const n=e.$slots[t];return n===void 0?r:n()}function _n(e,t=[],r){const o={};return t.forEach(n=>{o[n]=e[n]}),Object.assign(o,r)}function Hp(e,t=[],r){const o={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(o[i]=e[i])}),Object.assign(o,r)}function Ja(e,t=!0,r=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&r.push(yr(String(o)));return}if(Array.isArray(o)){Ja(o,t,r);return}if(o.type===st){if(o.children===null)return;Array.isArray(o.children)&&Ja(o.children,t,r)}else{if(o.type===Jt&&t)return;r.push(o)}}}),r}function Ve(e,...t){if(Array.isArray(e))e.forEach(r=>Ve(r,...t));else return e(...t)}function An(e){return Object.keys(e)}const Lt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?yr(e):typeof e=="number"?yr(String(e)):null;function Xo(e,t){console.error(`[naive/${e}]: ${t}`)}function td(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Bu(e,t="default",r=void 0){const o=e[t];if(!o)return Xo("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=Ja(o(r));return n.length===1?n[0]:(Xo("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Ly(e){return t=>{t?e.value=t.$el:e.value=null}}function qi(e){return e.some(t=>ki(t)?!(t.type===Jt||t.type===st&&!qi(t.children)):!0)?e:null}function Pn(e,t){return e&&qi(e())||t()}function Hy(e,t,r){return e&&qi(e(t))||r(t)}function Bt(e,t){const r=e&&qi(e());return t(r||null)}function jl(e){return!(e&&qi(e()))}const Fu=Ce({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),jy=/^(\d|\.)+$/,Lu=/(\d|\.)+/;function Ko(e,{c:t=1,offset:r=0,attachPx:o=!0}={}){if(typeof e=="number"){const n=(e+r)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(jy.test(e)){const n=(Number(e)+r)*t;return o?n===0?"0":`${n}px`:`${n}`}else{const n=Lu.exec(e);return n?e.replace(Lu,String((Number(n[0])+r)*t)):e}return e}function Za(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function Ny(e){let t=0;for(let r=0;r{let n=Ny(o);if(n){if(n===1){e.forEach(a=>{r.push(o.replace("&",a))});return}}else{e.forEach(a=>{r.push((a&&a+" ")+o)});return}let i=[o];for(;n--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>r.push(a))}),r}function Uy(e,t){const r=[];return t.split(jp).forEach(o=>{e.forEach(n=>{r.push((n&&n+" ")+o)})}),r}function Ky(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),r&&(r.includes("&")?t=Vy(t,r):t=Uy(t,r))}),t.join(", ").replace(Wy," ")}function Hu(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function ks(e){return document.querySelector(`style[cssr-id="${e}"]`)}function qy(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function fa(e){return e?/^\s*@(s|m)/.test(e):!1}const Gy=/[A-Z]/g;function Np(e){return e.replace(Gy,t=>"-"+t.toLowerCase())}function Yy(e,t=" "){return typeof e=="object"&&e!==null?` { -`+Object.entries(e).map(r=>t+` ${Np(r[0])}: ${r[1]};`).join(` -`)+` -`+t+"}":`: ${e};`}function Xy(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function ju(e,t,r,o){if(!t)return"";const n=Xy(t,r,o);if(!n)return"";if(typeof n=="string")return`${e} { -${n} -}`;const i=Object.keys(n);if(i.length===0)return r.config.keepEmptyBlock?e+` { -}`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=n[s];if(s==="raw"){a.push(` -`+l+` -`);return}s=Np(s),l!=null&&a.push(` ${s}${Yy(l)}`)}),e&&a.push("}"),a.join(` -`)}function Nl(e,t,r){e&&e.forEach(o=>{if(Array.isArray(o))Nl(o,t,r);else if(typeof o=="function"){const n=o(t);Array.isArray(n)?Nl(n,t,r):n&&r(n)}else o&&r(o)})}function Wp(e,t,r,o,n,i){const a=e.$;let s="";if(!a||typeof a=="string")fa(a)?s=a:t.push(a);else if(typeof a=="function"){const d=a({context:o.context,props:n});fa(d)?s=d:t.push(d)}else if(a.before&&a.before(o.context),!a.$||typeof a.$=="string")fa(a.$)?s=a.$:t.push(a.$);else if(a.$){const d=a.$({context:o.context,props:n});fa(d)?s=d:t.push(d)}const l=Ky(t),c=ju(l,e.props,o,n);s?(r.push(`${s} {`),i&&c&&i.insertRule(`${s} { -${c} -} -`)):(i&&c&&i.insertRule(c),!i&&c.length&&r.push(c)),e.children&&Nl(e.children,{context:o.context,props:n},d=>{if(typeof d=="string"){const u=ju(l,{raw:d},o,n);i?i.insertRule(u):r.push(u)}else Wp(d,t,r,o,n,i)}),t.pop(),s&&r.push("}"),a&&a.after&&a.after(o.context)}function Vp(e,t,r,o=!1){const n=[];return Wp(e,[],n,t,r,o?e.instance.__styleSheet:void 0),o?"":n.join(` - -`)}function $i(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Jy(e,t,r){const{els:o}=t;if(r===void 0)o.forEach(Hu),t.els=[];else{const n=ks(r);n&&o.includes(n)&&(Hu(n),t.els=o.filter(i=>i!==n))}}function Nu(e,t){e.push(t)}function Zy(e,t,r,o,n,i,a,s,l){if(i&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const f=window.__cssrContext;f[r]||(f[r]=!0,Vp(t,e,o,i));return}let c;if(r===void 0&&(c=t.render(o),r=$i(c)),l){l.adapter(r,c??t.render(o));return}const d=ks(r);if(d!==null&&!a)return d;const u=d??qy(r);if(c===void 0&&(c=t.render(o)),u.textContent=c,d!==null)return d;if(s){const f=document.head.querySelector(`meta[name="${s}"]`);if(f)return document.head.insertBefore(u,f),Nu(t.els,u),u}return n?document.head.insertBefore(u,document.head.querySelector("style, link")):document.head.appendChild(u),Nu(t.els,u),u}function Qy(e){return Vp(this,this.instance,e)}function eC(e={}){const{id:t,ssr:r,props:o,head:n=!1,silent:i=!1,force:a=!1,anchorMetaName:s}=e;return Zy(this.instance,this,t,o,n,i,a,s,r)}function tC(e={}){const{id:t}=e;Jy(this.instance,this,t)}const ha=function(e,t,r,o){return{instance:e,$:t,props:r,children:o,els:[],render:Qy,mount:eC,unmount:tC}},rC=function(e,t,r,o){return Array.isArray(t)?ha(e,{$:null},null,t):Array.isArray(r)?ha(e,t,null,r):Array.isArray(o)?ha(e,t,r,o):ha(e,t,r,null)};function Up(e={}){let t=null;const r={c:(...o)=>rC(r,...o),use:(o,...n)=>o.install(r,...n),find:ks,context:{},config:e,get __styleSheet(){if(!t){const o=document.createElement("style");return document.head.appendChild(o),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function oC(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return ks(e)!==null}function nC(e){let t=".",r="__",o="--",n;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(r=h),h=e.modifierPrefix,h&&(o=h)}const i={install(h){n=h.c;const m=h.context;m.bem={},m.bem.b=null,m.bem.els=null}};function a(h){let m,v;return{before(g){m=g.bem.b,v=g.bem.els,g.bem.els=null},after(g){g.bem.b=m,g.bem.els=v},$({context:g,props:k}){return h=typeof h=="string"?h:h({context:g,props:k}),g.bem.b=h,`${(k==null?void 0:k.bPrefix)||t}${g.bem.b}`}}}function s(h){let m;return{before(v){m=v.bem.els},after(v){v.bem.els=m},$({context:v,props:g}){return h=typeof h=="string"?h:h({context:v,props:g}),v.bem.els=h.split(",").map(k=>k.trim()),v.bem.els.map(k=>`${(g==null?void 0:g.bPrefix)||t}${v.bem.b}${r}${k}`).join(", ")}}}function l(h){return{$({context:m,props:v}){h=typeof h=="string"?h:h({context:m,props:v});const g=h.split(",").map(T=>T.trim());function k(T){return g.map(R=>`&${(v==null?void 0:v.bPrefix)||t}${m.bem.b}${T!==void 0?`${r}${T}`:""}${o}${R}`).join(", ")}const w=m.bem.els;return w!==null?k(w[0]):k()}}}function c(h){return{$({context:m,props:v}){h=typeof h=="string"?h:h({context:m,props:v});const g=m.bem.els;return`&:not(${(v==null?void 0:v.bPrefix)||t}${m.bem.b}${g!==null&&g.length>0?`${r}${g[0]}`:""}${o}${h})`}}}return Object.assign(i,{cB:(...h)=>n(a(h[0]),h[1],h[2]),cE:(...h)=>n(s(h[0]),h[1],h[2]),cM:(...h)=>n(l(h[0]),h[1],h[2]),cNotM:(...h)=>n(c(h[0]),h[1],h[2])}),i}const iC="n",Ri=`.${iC}-`,aC="__",sC="--",Kp=Up(),qp=nC({blockPrefix:Ri,elementPrefix:aC,modifierPrefix:sC});Kp.use(qp);const{c:H,find:U4}=Kp,{cB:L,cE:W,cM:K,cNotM:xt}=qp;function Gp(e){return H(({props:{bPrefix:t}})=>`${t||Ri}modal, ${t||Ri}drawer`,[e])}function Yp(e){return H(({props:{bPrefix:t}})=>`${t||Ri}popover`,[e])}function lC(e){return H(({props:{bPrefix:t}})=>`&${t||Ri}modal`,e)}const cC=(...e)=>H(">",[L(...e)]);function ve(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}let ol;function dC(){return ol===void 0&&(ol=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),ol}const $s=typeof document<"u"&&typeof window<"u";function uC(e,t,r){var o;const n=Ae(e,null);if(n===null)return;const i=(o=So())===null||o===void 0?void 0:o.proxy;tt(r,a),a(r.value),Qt(()=>{a(void 0,r.value)});function a(c,d){if(!n)return;const u=n[t];d!==void 0&&s(u,d),c!==void 0&&l(u,c)}function s(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(u=>u===i),1)}function l(c,d){c[d]||(c[d]=[]),~c[d].findIndex(u=>u===i)||c[d].push(i)}}function fC(e,t,r){if(!t)return e;const o=J(e.value);let n=null;return tt(e,i=>{n!==null&&window.clearTimeout(n),i===!0?r&&!r.value?o.value=!0:n=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}function hC(e){const t=J(!!e.value);if(t.value)return vo(t);const r=tt(e,o=>{o&&(t.value=!0,r())});return vo(t)}function jt(e){const t=N(e),r=J(t.value);return tt(t,o=>{r.value=o}),typeof e=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(o){e.set(o)}}}function pC(){return So()!==null}const mC=typeof window<"u";let Tn,pi;const gC=()=>{var e,t;Tn=mC?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,pi=!1,Tn!==void 0?Tn.then(()=>{pi=!0}):pi=!0};gC();function vC(e){if(pi)return;let t=!1;Ft(()=>{pi||Tn==null||Tn.then(()=>{t||e()})}),Qt(()=>{t=!0})}function Ra(e){return e.composedPath()[0]}const bC={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function xC(e,t,r){if(e==="mousemoveoutside"){const o=n=>{t.contains(Ra(n))||r(n)};return{mousemove:o,touchstart:o}}else if(e==="clickoutside"){let o=!1;const n=a=>{o=!t.contains(Ra(a))},i=a=>{o&&(t.contains(Ra(a))||r(a))};return{mousedown:n,mouseup:i,touchstart:n,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Xp(e,t,r){const o=bC[e];let n=o.get(t);n===void 0&&o.set(t,n=new WeakMap);let i=n.get(r);return i===void 0&&n.set(r,i=xC(e,t,r)),i}function yC(e,t,r,o){if(e==="mousemoveoutside"||e==="clickoutside"){const n=Xp(e,t,r);return Object.keys(n).forEach(i=>{ft(i,document,n[i],o)}),!0}return!1}function CC(e,t,r,o){if(e==="mousemoveoutside"||e==="clickoutside"){const n=Xp(e,t,r);return Object.keys(n).forEach(i=>{ot(i,document,n[i],o)}),!0}return!1}function SC(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function r(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function n(x,S,z){const O=x[S];return x[S]=function(){return z.apply(x,arguments),O.apply(x,arguments)},x}function i(x,S){x[S]=Event.prototype[S]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var x;return(x=a.get(this))!==null&&x!==void 0?x:null}function c(x,S){s!==void 0&&Object.defineProperty(x,"currentTarget",{configurable:!0,enumerable:!0,get:S??s.get})}const d={bubble:{},capture:{}},u={};function f(){const x=function(S){const{type:z,eventPhase:O,bubbles:Q}=S,A=Ra(S);if(O===2)return;const y=O===1?"capture":"bubble";let M=A;const P=[];for(;M===null&&(M=window),P.push(M),M!==window;)M=M.parentNode||null;const I=d.capture[z],_=d.bubble[z];if(n(S,"stopPropagation",r),n(S,"stopImmediatePropagation",o),c(S,l),y==="capture"){if(I===void 0)return;for(let V=P.length-1;V>=0&&!e.has(S);--V){const ne=P[V],de=I.get(ne);if(de!==void 0){a.set(S,ne);for(const G of de){if(t.has(S))break;G(S)}}if(V===0&&!Q&&_!==void 0){const G=_.get(ne);if(G!==void 0)for(const oe of G){if(t.has(S))break;oe(S)}}}}else if(y==="bubble"){if(_===void 0)return;for(let V=0;VA(S))};return x.displayName="evtdUnifiedWindowEventHandler",x}const h=f(),m=p();function v(x,S){const z=d[x];return z[S]===void 0&&(z[S]=new Map,window.addEventListener(S,h,x==="capture")),z[S]}function g(x){return u[x]===void 0&&(u[x]=new Set,window.addEventListener(x,m)),u[x]}function k(x,S){let z=x.get(S);return z===void 0&&x.set(S,z=new Set),z}function w(x,S,z,O){const Q=d[S][z];if(Q!==void 0){const A=Q.get(x);if(A!==void 0&&A.has(O))return!0}return!1}function T(x,S){const z=u[x];return!!(z!==void 0&&z.has(S))}function R(x,S,z,O){let Q;if(typeof O=="object"&&O.once===!0?Q=I=>{B(x,S,Q,O),z(I)}:Q=z,yC(x,S,Q,O))return;const y=O===!0||typeof O=="object"&&O.capture===!0?"capture":"bubble",M=v(y,x),P=k(M,S);if(P.has(Q)||P.add(Q),S===window){const I=g(x);I.has(Q)||I.add(Q)}}function B(x,S,z,O){if(CC(x,S,z,O))return;const A=O===!0||typeof O=="object"&&O.capture===!0,y=A?"capture":"bubble",M=v(y,x),P=k(M,S);if(S===window&&!w(S,A?"bubble":"capture",x,z)&&T(x,z)){const _=u[x];_.delete(z),_.size===0&&(window.removeEventListener(x,m),u[x]=void 0)}P.has(z)&&P.delete(z),P.size===0&&M.delete(S),M.size===0&&(window.removeEventListener(x,h,y==="capture"),d[y][x]=void 0)}return{on:R,off:B}}const{on:ft,off:ot}=SC();function On(e,t){return tt(e,r=>{r!==void 0&&(t.value=r)}),N(()=>e.value===void 0?t.value:e.value)}function Rs(){const e=J(!1);return Ft(()=>{e.value=!0}),vo(e)}function rd(e,t){return N(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}const wC=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function _C(){return wC}function PC(e={},t){const r=Kr({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:n}=e,i=l=>{switch(l.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==l.key)return;const d=o[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},a=l=>{switch(l.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==l.key)return;const d=n[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},s=()=>{(t===void 0||t.value)&&(ft("keydown",document,i),ft("keyup",document,a)),t!==void 0&&tt(t,l=>{l?(ft("keydown",document,i),ft("keyup",document,a)):(ot("keydown",document,i),ot("keyup",document,a))})};return pC()?(Vi(s),Qt(()=>{(t===void 0||t.value)&&(ot("keydown",document,i),ot("keyup",document,a))})):s(),vo(r)}const TC="n-internal-select-menu-body",od="n-modal-body",nd="n-drawer-body",Is="n-popover-body",Jp="__disabled__";function Yr(e){const t=Ae(od,null),r=Ae(nd,null),o=Ae(Is,null),n=Ae(TC,null),i=J();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Ft(()=>{ft("fullscreenchange",document,a)}),Qt(()=>{ot("fullscreenchange",document,a)})}return jt(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?Jp:s===!0?i.value||"body":s:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:s??(i.value||"body")})}Yr.tdkey=Jp;Yr.propTo={type:[String,Object,Boolean],default:void 0};function Wl(e,t,r="default"){const o=t[r];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);return o()}function Vl(e,t=!0,r=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&r.push(yr(String(o)));return}if(Array.isArray(o)){Vl(o,t,r);return}if(o.type===st){if(o.children===null)return;Array.isArray(o.children)&&Vl(o.children,t,r)}else o.type!==Jt&&r.push(o)}}),r}function Wu(e,t,r="default"){const o=t[r];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);const n=Vl(o());if(n.length===1)return n[0];throw new Error(`[vueuc/${e}]: slot[${r}] should have exactly one child.`)}let ro=null;function Zp(){if(ro===null&&(ro=document.getElementById("v-binder-view-measurer"),ro===null)){ro=document.createElement("div"),ro.id="v-binder-view-measurer";const{style:e}=ro;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ro)}return ro.getBoundingClientRect()}function kC(e,t){const r=Zp();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function nl(e){const t=e.getBoundingClientRect(),r=Zp();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function $C(e){return e.nodeType===9?null:e.parentNode}function Qp(e){if(e===null)return null;const t=$C(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:o,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+n+o))return t}return Qp(t)}const RC=Ce({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;nt("VBinder",(t=So())===null||t===void 0?void 0:t.proxy);const r=Ae("VBinder",null),o=J(null),n=g=>{o.value=g,r&&e.syncTargetWithParent&&r.setTargetRef(g)};let i=[];const a=()=>{let g=o.value;for(;g=Qp(g),g!==null;)i.push(g);for(const k of i)ft("scroll",k,u,!0)},s=()=>{for(const g of i)ot("scroll",g,u,!0);i=[]},l=new Set,c=g=>{l.size===0&&a(),l.has(g)||l.add(g)},d=g=>{l.has(g)&&l.delete(g),l.size===0&&s()},u=()=>{$y(f)},f=()=>{l.forEach(g=>g())},p=new Set,h=g=>{p.size===0&&ft("resize",window,v),p.has(g)||p.add(g)},m=g=>{p.has(g)&&p.delete(g),p.size===0&&ot("resize",window,v)},v=()=>{p.forEach(g=>g())};return Qt(()=>{ot("resize",window,v),s()}),{targetRef:o,setTargetRef:n,addScrollListener:c,removeScrollListener:d,addResizeListener:h,removeResizeListener:m}},render(){return Wl("binder",this.$slots)}}),id=RC,ad=Ce({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Ae("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Wi(Wu("follower",this.$slots),[[t]]):Wu("follower",this.$slots)}}),hn="@@mmoContext",IC={mounted(e,{value:t}){e[hn]={handler:void 0},typeof t=="function"&&(e[hn].handler=t,ft("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[hn];typeof t=="function"?r.handler?r.handler!==t&&(ot("mousemoveoutside",e,r.handler),r.handler=t,ft("mousemoveoutside",e,t)):(e[hn].handler=t,ft("mousemoveoutside",e,t)):r.handler&&(ot("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[hn];t&&ot("mousemoveoutside",e,t),e[hn].handler=void 0}},EC=IC,pn="@@coContext",zC={mounted(e,{value:t,modifiers:r}){e[pn]={handler:void 0},typeof t=="function"&&(e[pn].handler=t,ft("clickoutside",e,t,{capture:r.capture}))},updated(e,{value:t,modifiers:r}){const o=e[pn];typeof t=="function"?o.handler?o.handler!==t&&(ot("clickoutside",e,o.handler,{capture:r.capture}),o.handler=t,ft("clickoutside",e,t,{capture:r.capture})):(e[pn].handler=t,ft("clickoutside",e,t,{capture:r.capture})):o.handler&&(ot("clickoutside",e,o.handler,{capture:r.capture}),o.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:r}=e[pn];r&&ot("clickoutside",e,r,{capture:t.capture}),e[pn].handler=void 0}},Vu=zC;function MC(e,t){console.error(`[vdirs/${e}]: ${t}`)}class AC{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,r){const{elementZIndex:o}=this;if(r!==void 0){t.style.zIndex=`${r}`,o.delete(t);return}const{nextZIndex:n}=this;o.has(t)&&o.get(t)+1===this.nextZIndex||(t.style.zIndex=`${n}`,o.set(t,n),this.nextZIndex=n+1,this.squashState())}unregister(t,r){const{elementZIndex:o}=this;o.has(t)?o.delete(t):r===void 0&&MC("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((r,o)=>r[1]-o[1]),this.nextZIndex=2e3,t.forEach(r=>{const o=r[0],n=this.nextZIndex++;`${n}`!==o.style.zIndex&&(o.style.zIndex=`${n}`)})}}const il=new AC,mn="@@ziContext",OC={mounted(e,t){const{value:r={}}=t,{zIndex:o,enabled:n}=r;e[mn]={enabled:!!n,initialized:!1},n&&(il.ensureZIndex(e,o),e[mn].initialized=!0)},updated(e,t){const{value:r={}}=t,{zIndex:o,enabled:n}=r,i=e[mn].enabled;n&&!i&&(il.ensureZIndex(e,o),e[mn].initialized=!0),e[mn].enabled=!!n},unmounted(e,t){if(!e[mn].initialized)return;const{value:r={}}=t,{zIndex:o}=r;il.unregister(e,o)}},em=OC,tm=Symbol("@css-render/vue3-ssr");function DC(e,t){return``}function BC(e,t){const r=Ae(tm,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:o,ids:n}=r;n.has(e)||o!==null&&(n.add(e),o.push(DC(e,t)))}const FC=typeof document<"u";function Nn(){if(FC)return;const e=Ae(tm,null);if(e!==null)return{adapter:BC,context:e}}function Uu(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:ni}=Up(),rm="vueuc-style";function Ku(e){return typeof e=="string"?document.querySelector(e):e()}const LC=Ce({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:hC(et(e,"show")),mergedTo:N(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Wl("lazy-teleport",this.$slots):b(Zc,{disabled:this.disabled,to:this.mergedTo},Wl("lazy-teleport",this.$slots)):null}}),pa={top:"bottom",bottom:"top",left:"right",right:"left"},qu={start:"end",center:"center",end:"start"},al={top:"height",bottom:"height",left:"width",right:"width"},HC={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},jC={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},NC={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Gu={top:!0,bottom:!1,left:!0,right:!1},Yu={top:"end",bottom:"start",left:"end",right:"start"};function WC(e,t,r,o,n,i){if(!n||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",c={top:0,left:0};const d=(p,h,m)=>{let v=0,g=0;const k=r[p]-t[h]-t[p];return k>0&&o&&(m?g=Gu[h]?k:-k:v=Gu[h]?k:-k),{left:v,top:g}},u=a==="left"||a==="right";if(l!=="center"){const p=NC[e],h=pa[p],m=al[p];if(r[m]>t[m]){if(t[p]+t[m]t[h]&&(l=qu[s])}else{const p=a==="bottom"||a==="top"?"left":"top",h=pa[p],m=al[p],v=(r[m]-t[m])/2;(t[p]t[h]?(l=Yu[p],c=d(m,p,u)):(l=Yu[h],c=d(m,h,u)))}let f=a;return t[a] *",{pointerEvents:"all"})])]),sd=Ce({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Ae("VBinder"),r=jt(()=>e.enabled!==void 0?e.enabled:e.show),o=J(null),n=J(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Ft(()=>{r.value&&(l(),i())});const s=Nn();KC.mount({id:"vueuc/binder",head:!0,anchorMetaName:rm,ssr:s}),Qt(()=>{a()}),vC(()=>{r.value&&l()});const l=()=>{if(!r.value)return;const f=o.value;if(f===null)return;const p=t.targetRef,{x:h,y:m,overlap:v}=e,g=h!==void 0&&m!==void 0?kC(h,m):nl(p);f.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:k,minWidth:w,placement:T,internalShift:R,flip:B}=e;f.setAttribute("v-placement",T),v?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:x}=f;k==="target"?x.width=`${g.width}px`:k!==void 0?x.width=k:x.width="",w==="target"?x.minWidth=`${g.width}px`:w!==void 0?x.minWidth=w:x.minWidth="";const S=nl(f),z=nl(n.value),{left:O,top:Q,placement:A}=WC(T,g,S,R,B,v),y=VC(A,v),{left:M,top:P,transform:I}=UC(A,z,g,Q,O,v);f.setAttribute("v-placement",A),f.style.setProperty("--v-offset-left",`${Math.round(O)}px`),f.style.setProperty("--v-offset-top",`${Math.round(Q)}px`),f.style.transform=`translateX(${M}) translateY(${P}) ${I}`,f.style.setProperty("--v-transform-origin",y),f.style.transformOrigin=y};tt(r,f=>{f?(i(),c()):a()});const c=()=>{nr().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{tt(et(e,f),l)}),["teleportDisabled"].forEach(f=>{tt(et(e,f),c)}),tt(et(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const d=Rs(),u=jt(()=>{const{to:f}=e;if(f!==void 0)return f;d.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:n,followerRef:o,mergedTo:u,syncPosition:l}},render(){return b(LC,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=b("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[b("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?Wi(r,[[em,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var qo=[],qC=function(){return qo.some(function(e){return e.activeTargets.length>0})},GC=function(){return qo.some(function(e){return e.skippedTargets.length>0})},Xu="ResizeObserver loop completed with undelivered notifications.",YC=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Xu}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Xu),window.dispatchEvent(e)},Ii;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ii||(Ii={}));var Go=function(e){return Object.freeze(e)},XC=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Go(this)}return e}(),om=function(){function e(t,r,o,n){return this.x=t,this.y=r,this.width=o,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Go(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,o=t.y,n=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:r,y:o,top:n,right:i,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ld=function(e){return e instanceof SVGElement&&"getBBox"in e},nm=function(e){if(ld(e)){var t=e.getBBox(),r=t.width,o=t.height;return!r&&!o}var n=e,i=n.offsetWidth,a=n.offsetHeight;return!(i||a||e.getClientRects().length)},Ju=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},JC=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},mi=typeof window<"u"?window:{},ma=new WeakMap,Zu=/auto|scroll/,ZC=/^tb|vertical/,QC=/msie|trident/i.test(mi.navigator&&mi.navigator.userAgent),$r=function(e){return parseFloat(e||"0")},kn=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new XC((r?t:e)||0,(r?e:t)||0)},Qu=Go({devicePixelContentBoxSize:kn(),borderBoxSize:kn(),contentBoxSize:kn(),contentRect:new om(0,0,0,0)}),im=function(e,t){if(t===void 0&&(t=!1),ma.has(e)&&!t)return ma.get(e);if(nm(e))return ma.set(e,Qu),Qu;var r=getComputedStyle(e),o=ld(e)&&e.ownerSVGElement&&e.getBBox(),n=!QC&&r.boxSizing==="border-box",i=ZC.test(r.writingMode||""),a=!o&&Zu.test(r.overflowY||""),s=!o&&Zu.test(r.overflowX||""),l=o?0:$r(r.paddingTop),c=o?0:$r(r.paddingRight),d=o?0:$r(r.paddingBottom),u=o?0:$r(r.paddingLeft),f=o?0:$r(r.borderTopWidth),p=o?0:$r(r.borderRightWidth),h=o?0:$r(r.borderBottomWidth),m=o?0:$r(r.borderLeftWidth),v=u+c,g=l+d,k=m+p,w=f+h,T=s?e.offsetHeight-w-e.clientHeight:0,R=a?e.offsetWidth-k-e.clientWidth:0,B=n?v+k:0,x=n?g+w:0,S=o?o.width:$r(r.width)-B-R,z=o?o.height:$r(r.height)-x-T,O=S+v+R+k,Q=z+g+T+w,A=Go({devicePixelContentBoxSize:kn(Math.round(S*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:kn(O,Q,i),contentBoxSize:kn(S,z,i),contentRect:new om(u,l,S,z)});return ma.set(e,A),A},am=function(e,t,r){var o=im(e,r),n=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case Ii.DEVICE_PIXEL_CONTENT_BOX:return a;case Ii.BORDER_BOX:return n;default:return i}},e1=function(){function e(t){var r=im(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Go([r.borderBoxSize]),this.contentBoxSize=Go([r.contentBoxSize]),this.devicePixelContentBoxSize=Go([r.devicePixelContentBoxSize])}return e}(),sm=function(e){if(nm(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},t1=function(){var e=1/0,t=[];qo.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var d=new e1(c.target),u=sm(c.target);s.push(d),c.lastReportedSize=am(c.target,c.observedBox),ue?r.activeTargets.push(n):r.skippedTargets.push(n))})})},r1=function(){var e=0;for(ef(e);qC();)e=t1(),ef(e);return GC()&&YC(),e>0},sl,lm=[],o1=function(){return lm.splice(0).forEach(function(e){return e()})},n1=function(e){if(!sl){var t=0,r=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return o1()}).observe(r,o),sl=function(){r.textContent="".concat(t?t--:t++)}}lm.push(e),sl()},i1=function(e){n1(function(){requestAnimationFrame(e)})},Ia=0,a1=function(){return!!Ia},s1=250,l1={attributes:!0,characterData:!0,childList:!0,subtree:!0},tf=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],rf=function(e){return e===void 0&&(e=0),Date.now()+e},ll=!1,c1=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=s1),!ll){ll=!0;var o=rf(t);i1(function(){var n=!1;try{n=r1()}finally{if(ll=!1,t=o-rf(),!a1())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,l1)};document.body?r():mi.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),tf.forEach(function(r){return mi.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),tf.forEach(function(r){return mi.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),Ul=new c1,of=function(e){!Ia&&e>0&&Ul.start(),Ia+=e,!Ia&&Ul.stop()},d1=function(e){return!ld(e)&&!JC(e)&&getComputedStyle(e).display==="inline"},u1=function(){function e(t,r){this.target=t,this.observedBox=r||Ii.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=am(this.target,this.observedBox,!0);return d1(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),f1=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),ga=new WeakMap,nf=function(e,t){for(var r=0;r=0&&(i&&qo.splice(qo.indexOf(o),1),o.observationTargets.splice(n,1),of(-1))},e.disconnect=function(t){var r=this,o=ga.get(t);o.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),h1=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");va.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ju(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");va.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ju(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");va.unobserve(this,t)},e.prototype.disconnect=function(){va.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class p1{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||h1)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const r of t){const o=this.elHandlersMap.get(r.target);o!==void 0&&o(r)}}registerHandler(t,r){this.elHandlersMap.set(t,r),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const af=new p1,Qa=Ce({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const r=So().proxy;function o(n){const{onResize:i}=e;i!==void 0&&i(n)}Ft(()=>{const n=r.$el;if(n===void 0){Uu("resize-observer","$el does not exist.");return}if(n.nextElementSibling!==n.nextSibling&&n.nodeType===3&&n.nodeValue!==""){Uu("resize-observer","$el can not be observed (it may be a text node).");return}n.nextElementSibling!==null&&(af.registerHandler(n.nextElementSibling,o),t=!0)}),Qt(()=>{t&&af.unregisterHandler(r.$el.nextElementSibling)})},render(){return Cs(this.$slots,"default")}}),Nr="v-hidden",m1=ni("[v-hidden]",{display:"none!important"}),g1=Ce({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const r=J(null),o=J(null);function n(a){const{value:s}=r,{getCounter:l,getTail:c}=e;let d;if(l!==void 0?d=l():d=o.value,!s||!d)return;d.hasAttribute(Nr)&&d.removeAttribute(Nr);const{children:u}=s;if(a.showAllItemsBeforeCalculate)for(const w of u)w.hasAttribute(Nr)&&w.removeAttribute(Nr);const f=s.offsetWidth,p=[],h=t.tail?c==null?void 0:c():null;let m=h?h.offsetWidth:0,v=!1;const g=s.children.length-(t.tail?1:0);for(let w=0;wf){const{updateCounter:B}=e;for(let x=w;x>=0;--x){const S=g-1-x;B!==void 0?B(S):d.textContent=`${S}`;const z=d.offsetWidth;if(m-=p[x],m+z<=f||x===0){v=!0,w=x-1,h&&(w===-1?(h.style.maxWidth=`${f-z}px`,h.style.boxSizing="border-box"):h.style.maxWidth="");const{onUpdateCount:O}=e;O&&O(S);break}}}}const{onUpdateOverflow:k}=e;v?k!==void 0&&k(!0):(k!==void 0&&k(!1),d.setAttribute(Nr,""))}const i=Nn();return m1.mount({id:"vueuc/overflow",head:!0,anchorMetaName:rm,ssr:i}),Ft(()=>n({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:o,sync:n}},render(){const{$slots:e}=this;return nr(()=>this.sync({showAllItemsBeforeCalculate:!1})),b("div",{class:"v-overflow",ref:"selfRef"},[Cs(e,"default"),e.counter?e.counter():b("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function cm(e){return e instanceof HTMLElement}function dm(e){for(let t=0;t=0;t--){const r=e.childNodes[t];if(cm(r)&&(fm(r)||um(r)))return!0}return!1}function fm(e){if(!v1(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function v1(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Zn=[];const b1=Ce({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Mn(),r=J(null),o=J(null);let n=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return Zn[Zn.length-1]===t}function l(v){var g;v.code==="Escape"&&s()&&((g=e.onEsc)===null||g===void 0||g.call(e,v))}Ft(()=>{tt(()=>e.active,v=>{v?(u(),ft("keydown",document,l)):(ot("keydown",document,l),n&&f())},{immediate:!0})}),Qt(()=>{ot("keydown",document,l),n&&f()});function c(v){if(!i&&s()){const g=d();if(g===null||g.contains(Xa(v)))return;p("first")}}function d(){const v=r.value;if(v===null)return null;let g=v;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function u(){var v;if(!e.disabled){if(Zn.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?p("first"):(v=Ku(g))===null||v===void 0||v.focus({preventScroll:!0})}n=!0,document.addEventListener("focus",c,!0)}}function f(){var v;if(e.disabled||(document.removeEventListener("focus",c,!0),Zn=Zn.filter(k=>k!==t),s()))return;const{finalFocusTo:g}=e;g!==void 0?(v=Ku(g))===null||v===void 0||v.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function p(v){if(s()&&e.active){const g=r.value,k=o.value;if(g!==null&&k!==null){const w=d();if(w==null||w===k){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const T=v==="first"?dm(w):um(w);i=!1,T||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function h(v){if(i)return;const g=d();g!==null&&(v.relatedTarget!==null&&g.contains(v.relatedTarget)?p("last"):p("first"))}function m(v){i||(v.relatedTarget!==null&&v.relatedTarget===r.value?p("last"):p("first"))}return{focusableStartRef:r,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:m}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:r}=this;return b(st,null,[b("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:r,onFocus:this.handleStartFocus}),e(),b("div",{"aria-hidden":"true",style:r,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function hm(e){const t={isDeactivated:!1};let r=!1;return sp(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),lp(()=>{t.isDeactivated=!0,r||(r=!0)}),t}const Kl="n-form-item";function cd(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:o}={}){const n=Ae(Kl,null);nt(Kl,null);const i=N(r?()=>r(n):()=>{const{size:l}=e;if(l)return l;if(n){const{mergedSize:c}=n;if(c.value!==void 0)return c.value}return t}),a=N(o?()=>o(n):()=>{const{disabled:l}=e;return l!==void 0?l:n?n.disabled.value:!1}),s=N(()=>{const{status:l}=e;return l||(n==null?void 0:n.mergedValidationStatus.value)});return Qt(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var pm=typeof global=="object"&&global&&global.Object===Object&&global,x1=typeof self=="object"&&self&&self.Object===Object&&self,Hr=pm||x1||Function("return this")(),bo=Hr.Symbol,mm=Object.prototype,y1=mm.hasOwnProperty,C1=mm.toString,Qn=bo?bo.toStringTag:void 0;function S1(e){var t=y1.call(e,Qn),r=e[Qn];try{e[Qn]=void 0;var o=!0}catch{}var n=C1.call(e);return o&&(t?e[Qn]=r:delete e[Qn]),n}var w1=Object.prototype,_1=w1.toString;function P1(e){return _1.call(e)}var T1="[object Null]",k1="[object Undefined]",sf=bo?bo.toStringTag:void 0;function rn(e){return e==null?e===void 0?k1:T1:sf&&sf in Object(e)?S1(e):P1(e)}function xo(e){return e!=null&&typeof e=="object"}var $1="[object Symbol]";function dd(e){return typeof e=="symbol"||xo(e)&&rn(e)==$1}function gm(e,t){for(var r=-1,o=e==null?0:e.length,n=Array(o);++r0){if(++t>=Y1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Q1(e){return function(){return e}}var es=function(){try{var e=nn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),eS=es?function(e,t){return es(e,"toString",{configurable:!0,enumerable:!1,value:Q1(t),writable:!0})}:ud;const tS=eS;var rS=Z1(tS),oS=9007199254740991,nS=/^(?:0|[1-9]\d*)$/;function hd(e,t){var r=typeof e;return t=t??oS,!!t&&(r=="number"||r!="symbol"&&nS.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=uS}function Wn(e){return e!=null&&md(e.length)&&!fd(e)}function fS(e,t,r){if(!wo(r))return!1;var o=typeof t;return(o=="number"?Wn(r)&&hd(t,r.length):o=="string"&&t in r)?Gi(r[t],e):!1}function hS(e){return dS(function(t,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,a&&fS(r[0],r[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++o-1}function _w(e,t){var r=this.__data__,o=Es(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}function Jr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++tn?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++o=o?e:Uw(e,t,r)}var qw="\\ud800-\\udfff",Gw="\\u0300-\\u036f",Yw="\\ufe20-\\ufe2f",Xw="\\u20d0-\\u20ff",Jw=Gw+Yw+Xw,Zw="\\ufe0e\\ufe0f",Qw="\\u200d",e_=RegExp("["+Qw+qw+Jw+Zw+"]");function Rm(e){return e_.test(e)}function t_(e){return e.split("")}var Im="\\ud800-\\udfff",r_="\\u0300-\\u036f",o_="\\ufe20-\\ufe2f",n_="\\u20d0-\\u20ff",i_=r_+o_+n_,a_="\\ufe0e\\ufe0f",s_="["+Im+"]",Gl="["+i_+"]",Yl="\\ud83c[\\udffb-\\udfff]",l_="(?:"+Gl+"|"+Yl+")",Em="[^"+Im+"]",zm="(?:\\ud83c[\\udde6-\\uddff]){2}",Mm="[\\ud800-\\udbff][\\udc00-\\udfff]",c_="\\u200d",Am=l_+"?",Om="["+a_+"]?",d_="(?:"+c_+"(?:"+[Em,zm,Mm].join("|")+")"+Om+Am+")*",u_=Om+Am+d_,f_="(?:"+[Em+Gl+"?",Gl,zm,Mm,s_].join("|")+")",h_=RegExp(Yl+"(?="+Yl+")|"+f_+u_,"g");function p_(e){return e.match(h_)||[]}function m_(e){return Rm(e)?p_(e):t_(e)}function g_(e){return function(t){t=_m(t);var r=Rm(t)?m_(t):void 0,o=r?r[0]:t.charAt(0),n=r?Kw(r,1).join(""):t.slice(1);return o[e]()+n}}var v_=g_("toUpperCase");function b_(){this.__data__=new Jr,this.size=0}function x_(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function y_(e){return this.__data__.get(e)}function C_(e){return this.__data__.has(e)}var S_=200;function w_(e,t){var r=this.__data__;if(r instanceof Jr){var o=r.__data__;if(!zi||o.lengths))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,p=r&Y_?new ns:void 0;for(i.set(e,t),i.set(t,e);++u{const d=i==null?void 0:i.value;r.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Mi,ssr:a}),s!=null&&s.preflightStyleDisabled||Nm.mount({id:"n-global",head:!0,anchorMetaName:Mi,ssr:a})};a?c():Vi(c)}return N(()=>{var c;const{theme:{common:d,self:u,peers:f={}}={},themeOverrides:p={},builtinThemeOverrides:h={}}=n,{common:m,peers:v}=p,{common:g=void 0,[e]:{common:k=void 0,self:w=void 0,peers:T={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:R=void 0,[e]:B={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:x,peers:S={}}=B,z=ii({},d||k||g||o.common,R,x,m),O=ii((c=u||w||o.self)===null||c===void 0?void 0:c(z),h,B,p);return{common:z,self:O,peers:ii({},o.peers,T,f),peerOverrides:ii({},h.peers,S,v)}})}He.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const is="n";function Ct(e={},t={defaultBordered:!0}){const r=Ae(yo,null);return{inlineThemeDisabled:r==null?void 0:r.inlineThemeDisabled,mergedRtlRef:r==null?void 0:r.mergedRtlRef,mergedComponentPropsRef:r==null?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:r==null?void 0:r.mergedBreakpointsRef,mergedBorderedRef:N(()=>{var o,n;const{bordered:i}=e;return i!==void 0?i:(n=(o=r==null?void 0:r.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:r?r.mergedClsPrefixRef:Er(is),namespaceRef:N(()=>r==null?void 0:r.mergedNamespaceRef.value)}}const K2={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},q2=K2;function fl(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,o=e.formats[r]||e.formats[e.defaultWidth];return o}}function ei(e){return function(t,r){var o=r!=null&&r.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;n=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return n[c]}}function ti(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Y2(s,function(u){return u.test(a)}):G2(s,function(u){return u.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function G2(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Y2(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var n=o[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(n.length);return{value:a,rest:s}}}var J2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Z2=function(t,r,o){var n,i=J2[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n};const Q2=Z2;var eP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},tP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oP={date:fl({formats:eP,defaultWidth:"full"}),time:fl({formats:tP,defaultWidth:"full"}),dateTime:fl({formats:rP,defaultWidth:"full"})};const nP=oP;var iP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},aP=function(t,r,o,n){return iP[t]};const sP=aP;var lP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},uP={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},fP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pP=function(t,r){var o=Number(t),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},mP={ordinalNumber:pP,era:ei({values:lP,defaultWidth:"wide"}),quarter:ei({values:cP,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ei({values:dP,defaultWidth:"wide"}),day:ei({values:uP,defaultWidth:"wide"}),dayPeriod:ei({values:fP,defaultWidth:"wide",formattingValues:hP,defaultFormattingWidth:"wide"})};const gP=mP;var vP=/^(\d+)(th|st|nd|rd)?/i,bP=/\d+/i,xP={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yP={any:[/^b/i,/^(a|c)/i]},CP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},SP={any:[/1/i,/2/i,/3/i,/4/i]},wP={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_P={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},PP={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},TP={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kP={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$P={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},RP={ordinalNumber:X2({matchPattern:vP,parsePattern:bP,valueCallback:function(t){return parseInt(t,10)}}),era:ti({matchPatterns:xP,defaultMatchWidth:"wide",parsePatterns:yP,defaultParseWidth:"any"}),quarter:ti({matchPatterns:CP,defaultMatchWidth:"wide",parsePatterns:SP,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ti({matchPatterns:wP,defaultMatchWidth:"wide",parsePatterns:_P,defaultParseWidth:"any"}),day:ti({matchPatterns:PP,defaultMatchWidth:"wide",parsePatterns:TP,defaultParseWidth:"any"}),dayPeriod:ti({matchPatterns:kP,defaultMatchWidth:"any",parsePatterns:$P,defaultParseWidth:"any"})};const IP=RP;var EP={code:"en-US",formatDistance:Q2,formatLong:nP,formatRelative:sP,localize:gP,match:IP,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zP=EP,MP={name:"en-US",locale:zP},AP=MP;function OP(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=Ae(yo,null)||{},o=N(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:q2[e]});return{dateLocaleRef:N(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:AP}),localeRef:o}}function Vn(e,t,r){if(!t)return;const o=Nn(),n=Ae(yo,null),i=()=>{const a=r.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Mi,props:{bPrefix:a?`.${a}-`:void 0},ssr:o}),n!=null&&n.preflightStyleDisabled||Nm.mount({id:"n-global",head:!0,anchorMetaName:Mi,ssr:o})};o?i():Vi(i)}function Nt(e,t,r,o){var n;r||td("useThemeClass","cssVarsRef is not passed");const i=(n=Ae(yo,null))===null||n===void 0?void 0:n.mergedThemeHashRef,a=J(""),s=Nn();let l;const c=`__${e}`,d=()=>{let u=c;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(u+="-"+p),f&&(u+="-"+f);const{themeOverrides:h,builtinThemeOverrides:m}=o;h&&(u+="-"+$i(JSON.stringify(h))),m&&(u+="-"+$i(JSON.stringify(m))),a.value=u,l=()=>{const v=r.value;let g="";for(const k in v)g+=`${k}: ${v[k]};`;H(`.${u}`,g).mount({id:u,ssr:s}),l=void 0}};return Lr(()=>{d()}),{themeClass:a,onRender:()=>{l==null||l()}}}function _o(e,t,r){if(!t)return;const o=Nn(),n=N(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{Lr(()=>{const{value:a}=r,s=`${a}${e}Rtl`;if(oC(s,o))return;const{value:l}=n;l&&l.style.mount({id:s,head:!0,anchorMetaName:Mi,props:{bPrefix:a?`.${a}-`:void 0},ssr:o})})};return o?i():Vi(i),n}function Un(e,t){return Ce({name:v_(e),setup(){var r;const o=(r=Ae(yo,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var n;const i=(n=o==null?void 0:o.value)===null||n===void 0?void 0:n[e];return i?i():t}}})}const DP=Ce({name:"ChevronRight",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),BP=Un("close",b("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},b("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},b("g",{fill:"currentColor","fill-rule":"nonzero"},b("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),FP=Ce({name:"Eye",render(){return b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},b("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),b("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),LP=Ce({name:"EyeOff",render(){return b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},b("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),b("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),b("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),b("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),b("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),Wm=Un("error",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Vm=Un("info",b("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Um=Un("success",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Km=Un("warning",b("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),HP=Ce({name:"ChevronDown",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),jP=Un("clear",b("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},b("g",{fill:"currentColor","fill-rule":"nonzero"},b("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),NP=Ce({name:"ChevronDownFilled",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),As=Ce({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=Rs();return()=>b(Tr,{name:"icon-switch-transition",appear:r.value},t)}}),wd=Ce({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function o(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function n(s){e.width?s.style.maxWidth="":s.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(s){if(s.style.transition="none",e.width){const l=s.offsetWidth;s.style.maxWidth="0",s.offsetWidth,s.style.transition="",s.style.maxWidth=`${l}px`}else if(e.reverse)s.style.maxHeight=`${s.offsetHeight}px`,s.offsetHeight,s.style.transition="",s.style.maxHeight="0";else{const l=s.offsetHeight;s.style.maxHeight="0",s.offsetWidth,s.style.transition="",s.style.maxHeight=`${l}px`}s.offsetWidth}function a(s){var l;e.width?s.style.maxWidth="":e.reverse||(s.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:s,width:l,appear:c,mode:d}=e,u=s?ny:Tr,f={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:r,onLeave:o,onAfterLeave:n};return s||(f.mode=d),b(u,f,t)}}}),WP=L("base-icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[H("svg",` - height: 1em; - width: 1em; - `)]),Co=Ce({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Vn("-base-icon",WP,et(e,"clsPrefix"))},render(){return b("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),VP=L("base-close",` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[K("absolute",` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),H("&::before",` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),xt("disabled",[H("&:hover",` - color: var(--n-close-icon-color-hover); - `),H("&:hover::before",` - background-color: var(--n-close-color-hover); - `),H("&:focus::before",` - background-color: var(--n-close-color-hover); - `),H("&:active",` - color: var(--n-close-icon-color-pressed); - `),H("&:active::before",` - background-color: var(--n-close-color-pressed); - `)]),K("disabled",` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),K("round",[H("&::before",` - border-radius: 50%; - `)])]),Os=Ce({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Vn("-base-close",VP,et(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r,absolute:o,round:n,isButtonTag:i}=e;return b(i?"button":"div",{type:i?"button":void 0,tabindex:r||!e.focusable?-1:0,"aria-disabled":r,"aria-label":"close",role:i?void 0:"button",disabled:r,class:[`${t}-base-close`,o&&`${t}-base-close--absolute`,r&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},b(Co,{clsPrefix:t},{default:()=>b(BP,null)}))}}}),{cubicBezierEaseInOut:UP}=Qr;function Ai({originalTransform:e="",left:t=0,top:r=0,transition:o=`all .3s ${UP} !important`}={}){return[H("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),H("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),H("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:o})]}const KP=H([H("@keyframes rotator",` - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - }`),L("base-loading",` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[W("transition-wrapper",` - position: absolute; - width: 100%; - height: 100%; - `,[Ai()]),W("placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Ai({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),W("container",` - animation: rotator 3s linear infinite both; - `,[W("icon",` - height: 1em; - width: 1em; - `)])])]),hl="1.6s",qP={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},_d=Ce({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},qP),setup(e){Vn("-base-loading",KP,et(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:o,scale:n}=this,i=t/n;return b("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},b(As,null,{default:()=>this.show?b("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},b("div",{class:`${e}-base-loading__container`},b("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},b("g",null,b("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:hl,fill:"freeze",repeatCount:"indefinite"}),b("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},b("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:hl,fill:"freeze",repeatCount:"indefinite"}),b("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:hl,fill:"freeze",repeatCount:"indefinite"})))))):b("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function Mf(e){return Array.isArray(e)?e:[e]}const tc={STOP:"STOP"};function qm(e,t){const r=t(e);e.children!==void 0&&r!==tc.STOP&&e.children.forEach(o=>qm(o,t))}function GP(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?a=>{a.isLeaf||(o.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||o.push(a.key),i(a.children))};function i(a){a.forEach(n)}return i(e),o}function YP(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function XP(e){return e.children}function JP(e){return e.key}function ZP(){return!1}function QP(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function eT(e){return e.disabled===!0}function tT(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function pl(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function ml(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function rT(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function oT(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function nT(e){return(e==null?void 0:e.type)==="group"}class iT extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function aT(e,t,r,o){return as(t.concat(e),r,o,!1)}function sT(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function lT(e,t,r,o){const n=as(t,r,o,!1),i=as(e,r,o,!0),a=sT(e,r),s=[];return n.forEach(l=>{(i.has(l)||a.has(l))&&s.push(l)}),s.forEach(l=>n.delete(l)),n}function gl(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return o!==void 0?{checkedKeys:rT(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:oT(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let u;n!==void 0?u=lT(n,r,t,c):o!==void 0?u=aT(o,r,t,c):u=as(r,t,c,!1);const f=l==="parent",p=l==="child"||s,h=u,m=new Set,v=Math.max.apply(null,Array.from(d.keys()));for(let g=v;g>=0;g-=1){const k=g===0,w=d.get(g);for(const T of w){if(T.isLeaf)continue;const{key:R,shallowLoaded:B}=T;if(p&&B&&T.children.forEach(O=>{!O.disabled&&!O.isLeaf&&O.shallowLoaded&&h.has(O.key)&&h.delete(O.key)}),T.disabled||!B)continue;let x=!0,S=!1,z=!0;for(const O of T.children){const Q=O.key;if(!O.disabled){if(z&&(z=!1),h.has(Q))S=!0;else if(m.has(Q)){S=!0,x=!1;break}else if(x=!1,S)break}}x&&!z?(f&&T.children.forEach(O=>{!O.disabled&&h.has(O.key)&&h.delete(O.key)}),h.add(R)):S&&m.add(R),k&&p&&h.has(R)&&h.delete(R)}}return{checkedKeys:Array.from(h),indeterminateKeys:Array.from(m)}}function as(e,t,r,o){const{treeNodeMap:n,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach(l=>{const c=n.get(l);c!==void 0&&qm(c,d=>{if(d.disabled)return tc.STOP;const{key:u}=d;if(!a.has(u)&&(a.add(u),s.add(u),tT(d.rawNode,i))){if(o)return tc.STOP;if(!r)throw new iT}})}),s}function cT(e,{includeGroup:t=!1,includeSelf:r=!0},o){var n;const i=o.treeNodeMap;let a=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return s.treeNode=null,s;for(;a;)!a.ignored&&(t||!a.isGroup)&&s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function dT(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function uT(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n+1)%o]:n===r.length-1?null:r[n+1]}function Af(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?fT:uT,i={reverse:t==="prev"};let a=!1,s=null;function l(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!c.disabled||o)&&!c.ignored&&!c.isGroup){s=c;return}if(c.isGroup){const d=Pd(c,i);d!==null?s=d:l(n(c,r))}else{const d=n(c,!1);if(d!==null)l(d);else{const u=hT(c);u!=null&&u.isGroup?l(n(u,r)):r&&l(n(c,!0))}}}}return l(e),s}function fT(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n-1+o)%o]:n===0?null:r[n-1]}function hT(e){return e.parent}function Pd(e,t={}){const{reverse:r=!1}=t,{children:o}=e;if(o){const{length:n}=o,i=r?n-1:0,a=r?-1:n,s=r?-1:1;for(let l=i;l!==a;l+=s){const c=o[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=Pd(c,t);if(d!==null)return d}else return c}}return null}const pT={getChild(){return this.ignored?null:Pd(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Af(this,"next",e)},getPrev(e={}){return Af(this,"prev",e)}};function mT(e,t){const r=t?new Set(t):void 0,o=[];function n(i){i.forEach(a=>{o.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||r===void 0||r.has(a.key))&&n(a.children)})}return n(e),o}function gT(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function Gm(e,t,r,o,n,i=null,a=0){const s=[];return e.forEach((l,c)=>{var d;const u=Object.create(o);if(u.rawNode=l,u.siblings=s,u.level=a,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const f=n(l);Array.isArray(f)&&(u.children=Gm(f,t,r,o,n,u,a+1))}s.push(u),t.set(u.key,u),r.has(a)||r.set(a,[]),(d=r.get(a))===null||d===void 0||d.push(u)}),s}function Ea(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=eT,getIgnored:a=ZP,getIsGroup:s=nT,getKey:l=JP}=t,c=(r=t.getChildren)!==null&&r!==void 0?r:XP,d=t.ignoreEmptyChildren?T=>{const R=c(T);return Array.isArray(R)?R.length?R:null:R}:c,u=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return YP(this.rawNode,d)},get shallowLoaded(){return QP(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(T){return gT(this,T)}},pT),f=Gm(e,o,n,u,d);function p(T){if(T==null)return null;const R=o.get(T);return R&&!R.isGroup&&!R.ignored?R:null}function h(T){if(T==null)return null;const R=o.get(T);return R&&!R.ignored?R:null}function m(T,R){const B=h(T);return B?B.getPrev(R):null}function v(T,R){const B=h(T);return B?B.getNext(R):null}function g(T){const R=h(T);return R?R.getParent():null}function k(T){const R=h(T);return R?R.getChild():null}const w={treeNodes:f,treeNodeMap:o,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:d,getFlattenedNodes(T){return mT(f,T)},getNode:p,getPrev:m,getNext:v,getParent:g,getChild:k,getFirstAvailableNode(){return dT(f)},getPath(T,R={}){return cT(T,R,w)},getCheckedKeys(T,R={}){const{cascade:B=!0,leafOnly:x=!1,checkStrategy:S="all",allowNotLoaded:z=!1}=R;return gl({checkedKeys:pl(T),indeterminateKeys:ml(T),cascade:B,leafOnly:x,checkStrategy:S,allowNotLoaded:z},w)},check(T,R,B={}){const{cascade:x=!0,leafOnly:S=!1,checkStrategy:z="all",allowNotLoaded:O=!1}=B;return gl({checkedKeys:pl(R),indeterminateKeys:ml(R),keysToCheck:T==null?[]:Mf(T),cascade:x,leafOnly:S,checkStrategy:z,allowNotLoaded:O},w)},uncheck(T,R,B={}){const{cascade:x=!0,leafOnly:S=!1,checkStrategy:z="all",allowNotLoaded:O=!1}=B;return gl({checkedKeys:pl(R),indeterminateKeys:ml(R),keysToUncheck:T==null?[]:Mf(T),cascade:x,leafOnly:S,checkStrategy:z,allowNotLoaded:O},w)},getNonLeafKeys(T={}){return GP(f,T)}};return w}const ye={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},vT=Gr(ye.neutralBase),Ym=Gr(ye.neutralInvertBase),bT="rgba("+Ym.slice(0,3).join(", ")+", ";function Je(e){return bT+String(e)+")"}function xT(e){const t=Array.from(Ym);return t[3]=Number(e),ke(vT,t)}const yT=Object.assign(Object.assign({name:"common"},Qr),{baseColor:ye.neutralBase,primaryColor:ye.primaryDefault,primaryColorHover:ye.primaryHover,primaryColorPressed:ye.primaryActive,primaryColorSuppl:ye.primarySuppl,infoColor:ye.infoDefault,infoColorHover:ye.infoHover,infoColorPressed:ye.infoActive,infoColorSuppl:ye.infoSuppl,successColor:ye.successDefault,successColorHover:ye.successHover,successColorPressed:ye.successActive,successColorSuppl:ye.successSuppl,warningColor:ye.warningDefault,warningColorHover:ye.warningHover,warningColorPressed:ye.warningActive,warningColorSuppl:ye.warningSuppl,errorColor:ye.errorDefault,errorColorHover:ye.errorHover,errorColorPressed:ye.errorActive,errorColorSuppl:ye.errorSuppl,textColorBase:ye.neutralTextBase,textColor1:Je(ye.alpha1),textColor2:Je(ye.alpha2),textColor3:Je(ye.alpha3),textColorDisabled:Je(ye.alpha4),placeholderColor:Je(ye.alpha4),placeholderColorDisabled:Je(ye.alpha5),iconColor:Je(ye.alpha4),iconColorDisabled:Je(ye.alpha5),iconColorHover:Je(Number(ye.alpha4)*1.25),iconColorPressed:Je(Number(ye.alpha4)*.8),opacity1:ye.alpha1,opacity2:ye.alpha2,opacity3:ye.alpha3,opacity4:ye.alpha4,opacity5:ye.alpha5,dividerColor:Je(ye.alphaDivider),borderColor:Je(ye.alphaBorder),closeIconColorHover:Je(Number(ye.alphaClose)),closeIconColor:Je(Number(ye.alphaClose)),closeIconColorPressed:Je(Number(ye.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Je(ye.alpha4),clearColorHover:yt(Je(ye.alpha4),{alpha:1.25}),clearColorPressed:yt(Je(ye.alpha4),{alpha:.8}),scrollbarColor:Je(ye.alphaScrollbar),scrollbarColorHover:Je(ye.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Je(ye.alphaProgressRail),railColor:Je(ye.alphaRail),popoverColor:ye.neutralPopover,tableColor:ye.neutralCard,cardColor:ye.neutralCard,modalColor:ye.neutralModal,bodyColor:ye.neutralBody,tagColor:xT(ye.alphaTag),avatarColor:Je(ye.alphaAvatar),invertedColor:ye.neutralBase,inputColor:Je(ye.alphaInput),codeColor:Je(ye.alphaCode),tabColor:Je(ye.alphaTab),actionColor:Je(ye.alphaAction),tableHeaderColor:Je(ye.alphaAction),hoverColor:Je(ye.alphaPending),tableColorHover:Je(ye.alphaTablePending),tableColorStriped:Je(ye.alphaTableStriped),pressedColor:Je(ye.alphaPressed),opacityDisabled:ye.alphaDisabled,inputColorDisabled:Je(ye.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),me=yT,Re={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},CT=Gr(Re.neutralBase),Xm=Gr(Re.neutralInvertBase),ST="rgba("+Xm.slice(0,3).join(", ")+", ";function Of(e){return ST+String(e)+")"}function Vt(e){const t=Array.from(Xm);return t[3]=Number(e),ke(CT,t)}const wT=Object.assign(Object.assign({name:"common"},Qr),{baseColor:Re.neutralBase,primaryColor:Re.primaryDefault,primaryColorHover:Re.primaryHover,primaryColorPressed:Re.primaryActive,primaryColorSuppl:Re.primarySuppl,infoColor:Re.infoDefault,infoColorHover:Re.infoHover,infoColorPressed:Re.infoActive,infoColorSuppl:Re.infoSuppl,successColor:Re.successDefault,successColorHover:Re.successHover,successColorPressed:Re.successActive,successColorSuppl:Re.successSuppl,warningColor:Re.warningDefault,warningColorHover:Re.warningHover,warningColorPressed:Re.warningActive,warningColorSuppl:Re.warningSuppl,errorColor:Re.errorDefault,errorColorHover:Re.errorHover,errorColorPressed:Re.errorActive,errorColorSuppl:Re.errorSuppl,textColorBase:Re.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Vt(Re.alpha4),placeholderColor:Vt(Re.alpha4),placeholderColorDisabled:Vt(Re.alpha5),iconColor:Vt(Re.alpha4),iconColorHover:yt(Vt(Re.alpha4),{lightness:.75}),iconColorPressed:yt(Vt(Re.alpha4),{lightness:.9}),iconColorDisabled:Vt(Re.alpha5),opacity1:Re.alpha1,opacity2:Re.alpha2,opacity3:Re.alpha3,opacity4:Re.alpha4,opacity5:Re.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Vt(Number(Re.alphaClose)),closeIconColorHover:Vt(Number(Re.alphaClose)),closeIconColorPressed:Vt(Number(Re.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Vt(Re.alpha4),clearColorHover:yt(Vt(Re.alpha4),{lightness:.75}),clearColorPressed:yt(Vt(Re.alpha4),{lightness:.9}),scrollbarColor:Of(Re.alphaScrollbar),scrollbarColorHover:Of(Re.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Vt(Re.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Re.neutralPopover,tableColor:Re.neutralCard,cardColor:Re.neutralCard,modalColor:Re.neutralModal,bodyColor:Re.neutralBody,tagColor:"#eee",avatarColor:Vt(Re.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Vt(Re.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Re.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Wt=wT,_T={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},Jm=e=>{const{textColorDisabled:t,iconColor:r,textColor2:o,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},_T),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:o})},PT={name:"Empty",common:Wt,self:Jm},TT=PT,kT={name:"Empty",common:me,self:Jm},an=kT,Zm=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},$T={name:"Scrollbar",common:Wt,self:Zm},Td=$T,RT={name:"Scrollbar",common:me,self:Zm},ar=RT,{cubicBezierEaseInOut:Df}=Qr;function IT({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:o=Df,leaveCubicBezier:n=Df}={}){return[H(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),H(`&.${e}-transition-leave-active`,{transition:`all ${r} ${n}!important`}),H(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),H(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const ET=L("scrollbar",` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[H(">",[L("scrollbar-container",` - width: 100%; - overflow: scroll; - height: 100%; - min-height: inherit; - max-height: inherit; - scrollbar-width: none; - `,[H("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),H(">",[L("scrollbar-content",` - box-sizing: border-box; - min-width: 100%; - `)])])]),H(">, +",[L("scrollbar-rail",` - position: absolute; - pointer-events: none; - user-select: none; - -webkit-user-select: none; - `,[K("horizontal",` - left: 2px; - right: 2px; - bottom: 4px; - height: var(--n-scrollbar-height); - `,[H(">",[W("scrollbar",` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),K("vertical",` - right: 4px; - top: 2px; - bottom: 2px; - width: var(--n-scrollbar-width); - `,[H(">",[W("scrollbar",` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),K("disabled",[H(">",[W("scrollbar","pointer-events: none;")])]),H(">",[W("scrollbar",` - z-index: 1; - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[IT(),H("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),zT=Object.assign(Object.assign({},He.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Qm=Ce({name:"Scrollbar",props:zT,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:o}=Ct(e),n=_o("Scrollbar",o,t),i=J(null),a=J(null),s=J(null),l=J(null),c=J(null),d=J(null),u=J(null),f=J(null),p=J(null),h=J(null),m=J(null),v=J(0),g=J(0),k=J(!1),w=J(!1);let T=!1,R=!1,B,x,S=0,z=0,O=0,Q=0;const A=_C(),y=N(()=>{const{value:ce}=f,{value:be}=d,{value:Ee}=h;return ce===null||be===null||Ee===null?0:Math.min(ce,Ee*ce/be+e.size*1.5)}),M=N(()=>`${y.value}px`),P=N(()=>{const{value:ce}=p,{value:be}=u,{value:Ee}=m;return ce===null||be===null||Ee===null?0:Ee*ce/be+e.size*1.5}),I=N(()=>`${P.value}px`),_=N(()=>{const{value:ce}=f,{value:be}=v,{value:Ee}=d,{value:rt}=h;if(ce===null||Ee===null||rt===null)return 0;{const mt=Ee-ce;return mt?be/mt*(rt-y.value):0}}),V=N(()=>`${_.value}px`),ne=N(()=>{const{value:ce}=p,{value:be}=g,{value:Ee}=u,{value:rt}=m;if(ce===null||Ee===null||rt===null)return 0;{const mt=Ee-ce;return mt?be/mt*(rt-P.value):0}}),de=N(()=>`${ne.value}px`),G=N(()=>{const{value:ce}=f,{value:be}=d;return ce!==null&&be!==null&&be>ce}),oe=N(()=>{const{value:ce}=p,{value:be}=u;return ce!==null&&be!==null&&be>ce}),X=N(()=>{const{trigger:ce}=e;return ce==="none"||k.value}),re=N(()=>{const{trigger:ce}=e;return ce==="none"||w.value}),xe=N(()=>{const{container:ce}=e;return ce?ce():a.value}),Te=N(()=>{const{content:ce}=e;return ce?ce():s.value}),$e=hm(()=>{e.container||Oe({top:v.value,left:g.value})}),Ye=()=>{$e.isDeactivated||U()},Y=ce=>{if($e.isDeactivated)return;const{onResize:be}=e;be&&be(ce),U()},Oe=(ce,be)=>{if(!e.scrollable)return;if(typeof ce=="number"){We(be??0,ce,0,!1,"auto");return}const{left:Ee,top:rt,index:mt,elSize:At,position:lr,behavior:lt,el:Gt,debounce:jr=!0}=ce;(Ee!==void 0||rt!==void 0)&&We(Ee??0,rt??0,0,!1,lt),Gt!==void 0?We(0,Gt.offsetTop,Gt.offsetHeight,jr,lt):mt!==void 0&&At!==void 0?We(0,mt*At,At,jr,lt):lr==="bottom"?We(0,Number.MAX_SAFE_INTEGER,0,!1,lt):lr==="top"&&We(0,0,0,!1,lt)},De=(ce,be)=>{if(!e.scrollable)return;const{value:Ee}=xe;Ee&&(typeof ce=="object"?Ee.scrollBy(ce):Ee.scrollBy(ce,be||0))};function We(ce,be,Ee,rt,mt){const{value:At}=xe;if(At){if(rt){const{scrollTop:lr,offsetHeight:lt}=At;if(be>lr){be+Ee<=lr+lt||At.scrollTo({left:ce,top:be+Ee-lt,behavior:mt});return}}At.scrollTo({left:ce,top:be,behavior:mt})}}function C(){he(),ge(),U()}function E(){q()}function q(){ae(),se()}function ae(){x!==void 0&&window.clearTimeout(x),x=window.setTimeout(()=>{w.value=!1},e.duration)}function se(){B!==void 0&&window.clearTimeout(B),B=window.setTimeout(()=>{k.value=!1},e.duration)}function he(){B!==void 0&&window.clearTimeout(B),k.value=!0}function ge(){x!==void 0&&window.clearTimeout(x),w.value=!0}function ee(ce){const{onScroll:be}=e;be&&be(ce),ue()}function ue(){const{value:ce}=xe;ce&&(v.value=ce.scrollTop,g.value=ce.scrollLeft*(n!=null&&n.value?-1:1))}function ie(){const{value:ce}=Te;ce&&(d.value=ce.offsetHeight,u.value=ce.offsetWidth);const{value:be}=xe;be&&(f.value=be.offsetHeight,p.value=be.offsetWidth);const{value:Ee}=c,{value:rt}=l;Ee&&(m.value=Ee.offsetWidth),rt&&(h.value=rt.offsetHeight)}function F(){const{value:ce}=xe;ce&&(v.value=ce.scrollTop,g.value=ce.scrollLeft*(n!=null&&n.value?-1:1),f.value=ce.offsetHeight,p.value=ce.offsetWidth,d.value=ce.scrollHeight,u.value=ce.scrollWidth);const{value:be}=c,{value:Ee}=l;be&&(m.value=be.offsetWidth),Ee&&(h.value=Ee.offsetHeight)}function U(){e.scrollable&&(e.useUnifiedContainer?F():(ie(),ue()))}function Z(ce){var be;return!(!((be=i.value)===null||be===void 0)&&be.contains(Xa(ce)))}function pe(ce){ce.preventDefault(),ce.stopPropagation(),R=!0,ft("mousemove",window,Se,!0),ft("mouseup",window,Ie,!0),z=g.value,O=n!=null&&n.value?window.innerWidth-ce.clientX:ce.clientX}function Se(ce){if(!R)return;B!==void 0&&window.clearTimeout(B),x!==void 0&&window.clearTimeout(x);const{value:be}=p,{value:Ee}=u,{value:rt}=P;if(be===null||Ee===null)return;const At=(n!=null&&n.value?window.innerWidth-ce.clientX-O:ce.clientX-O)*(Ee-be)/(be-rt),lr=Ee-be;let lt=z+At;lt=Math.min(lr,lt),lt=Math.max(lt,0);const{value:Gt}=xe;if(Gt){Gt.scrollLeft=lt*(n!=null&&n.value?-1:1);const{internalOnUpdateScrollLeft:jr}=e;jr&&jr(lt)}}function Ie(ce){ce.preventDefault(),ce.stopPropagation(),ot("mousemove",window,Se,!0),ot("mouseup",window,Ie,!0),R=!1,U(),Z(ce)&&q()}function je(ce){ce.preventDefault(),ce.stopPropagation(),T=!0,ft("mousemove",window,Le,!0),ft("mouseup",window,Xe,!0),S=v.value,Q=ce.clientY}function Le(ce){if(!T)return;B!==void 0&&window.clearTimeout(B),x!==void 0&&window.clearTimeout(x);const{value:be}=f,{value:Ee}=d,{value:rt}=y;if(be===null||Ee===null)return;const At=(ce.clientY-Q)*(Ee-be)/(be-rt),lr=Ee-be;let lt=S+At;lt=Math.min(lr,lt),lt=Math.max(lt,0);const{value:Gt}=xe;Gt&&(Gt.scrollTop=lt)}function Xe(ce){ce.preventDefault(),ce.stopPropagation(),ot("mousemove",window,Le,!0),ot("mouseup",window,Xe,!0),T=!1,U(),Z(ce)&&q()}Lr(()=>{const{value:ce}=oe,{value:be}=G,{value:Ee}=t,{value:rt}=c,{value:mt}=l;rt&&(ce?rt.classList.remove(`${Ee}-scrollbar-rail--disabled`):rt.classList.add(`${Ee}-scrollbar-rail--disabled`)),mt&&(be?mt.classList.remove(`${Ee}-scrollbar-rail--disabled`):mt.classList.add(`${Ee}-scrollbar-rail--disabled`))}),Ft(()=>{e.container||U()}),Qt(()=>{B!==void 0&&window.clearTimeout(B),x!==void 0&&window.clearTimeout(x),ot("mousemove",window,Le,!0),ot("mouseup",window,Xe,!0)});const kt=He("Scrollbar","-scrollbar",ET,Td,e,t),wr=N(()=>{const{common:{cubicBezierEaseInOut:ce,scrollbarBorderRadius:be,scrollbarHeight:Ee,scrollbarWidth:rt},self:{color:mt,colorHover:At}}=kt.value;return{"--n-scrollbar-bezier":ce,"--n-scrollbar-color":mt,"--n-scrollbar-color-hover":At,"--n-scrollbar-border-radius":be,"--n-scrollbar-width":rt,"--n-scrollbar-height":Ee}}),Mt=r?Nt("scrollbar",void 0,wr,e):void 0;return Object.assign(Object.assign({},{scrollTo:Oe,scrollBy:De,sync:U,syncUnifiedContainer:F,handleMouseEnterWrapper:C,handleMouseLeaveWrapper:E}),{mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:G,needXBar:oe,yBarSizePx:M,xBarSizePx:I,yBarTopPx:V,xBarLeftPx:de,isShowXBar:X,isShowYBar:re,isIos:A,handleScroll:ee,handleContentResize:Ye,handleContainerResize:Y,handleYScrollMouseDown:je,handleXScrollMouseDown:pe,cssVars:r?void 0:wr,themeClass:Mt==null?void 0:Mt.themeClass,onRender:Mt==null?void 0:Mt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:o,rtlEnabled:n,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=(d,u)=>b("div",{ref:"yRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--vertical`,d],"data-scrollbar-rail":!0,style:[u||"",this.verticalRailStyle],"aria-hiddens":!0},b(a?Fu:Tr,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?b("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var d,u;return(d=this.onRender)===null||d===void 0||d.call(this),b("div",Ln(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass,n&&`${r}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?(u=t.default)===null||u===void 0?void 0:u.call(t):b("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},b(Qa,{onResize:this.handleContentResize},{default:()=>b("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0,void 0),this.xScrollable&&b("div",{ref:"xRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},b(a?Fu:Tr,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?b("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:n?this.xBarLeftPx:void 0,left:n?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?l():b(Qa,{onResize:this.handleContainerResize},{default:l});return i?b(st,null,c,s(this.themeClass,this.cssVars)):c}}),kd=Qm,eg=Qm,MT={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},AT=e=>{const{borderRadius:t,popoverColor:r,textColor3:o,dividerColor:n,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:h,heightSmall:m,heightMedium:v,heightLarge:g,heightHuge:k}=e;return Object.assign(Object.assign({},MT),{optionFontSizeSmall:u,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:h,optionHeightSmall:m,optionHeightMedium:v,optionHeightLarge:g,optionHeightHuge:k,borderRadius:t,color:r,groupHeaderTextColor:o,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:l})},OT={name:"InternalSelectMenu",common:me,peers:{Scrollbar:ar,Empty:an},self:AT},Yi=OT,{cubicBezierEaseIn:Bf,cubicBezierEaseOut:Ff}=Qr;function rc({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:o="",originalTransition:n=""}={}){return[H("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Bf}, transform ${t} ${Bf} ${n&&","+n}`}),H("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Ff}, transform ${t} ${Ff} ${n&&","+n}`}),H("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${r})`}),H("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}const DT=L("base-wave",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),BT=Ce({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Vn("-base-wave",DT,et(e,"clsPrefix"));const t=J(null),r=J(!1);let o=null;return Qt(()=>{o!==null&&window.clearTimeout(o)}),{active:r,selfRef:t,play(){o!==null&&(window.clearTimeout(o),r.value=!1,o=null),nr(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,r.value=!0,o=window.setTimeout(()=>{r.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return b("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),FT={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},tg=e=>{const{boxShadow2:t,popoverColor:r,textColor2:o,borderRadius:n,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},FT),{fontSize:i,borderRadius:n,color:r,dividerColor:a,textColor:o,boxShadow:t})},LT={name:"Popover",common:Wt,self:tg},$d=LT,HT={name:"Popover",common:me,self:tg},sn=HT,vl={top:"bottom",bottom:"top",left:"right",right:"left"},$t="var(--n-arrow-height) * 1.414",jT=H([L("popover",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - position: relative; - font-size: var(--n-font-size); - color: var(--n-text-color); - box-shadow: var(--n-box-shadow); - word-break: break-word; - `,[H(">",[L("scrollbar",` - height: inherit; - max-height: inherit; - `)]),xt("raw",` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[xt("scrollable",[xt("show-header-or-footer","padding: var(--n-padding);")])]),W("header",` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),W("footer",` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),K("scrollable, show-header-or-footer",[W("content",` - padding: var(--n-padding); - `)])]),L("popover-shared",` - transform-origin: inherit; - `,[L("popover-arrow-wrapper",` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[L("popover-arrow",` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${$t}); - height: calc(${$t}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),H("&.popover-transition-enter-from, &.popover-transition-leave-to",` - opacity: 0; - transform: scale(.85); - `),H("&.popover-transition-enter-to, &.popover-transition-leave-from",` - transform: scale(1); - opacity: 1; - `),H("&.popover-transition-enter-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),H("&.popover-transition-leave-active",` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),gr("top-start",` - top: calc(${$t} / -2); - left: calc(${Wr("top-start")} - var(--v-offset-left)); - `),gr("top",` - top: calc(${$t} / -2); - transform: translateX(calc(${$t} / -2)) rotate(45deg); - left: 50%; - `),gr("top-end",` - top: calc(${$t} / -2); - right: calc(${Wr("top-end")} + var(--v-offset-left)); - `),gr("bottom-start",` - bottom: calc(${$t} / -2); - left: calc(${Wr("bottom-start")} - var(--v-offset-left)); - `),gr("bottom",` - bottom: calc(${$t} / -2); - transform: translateX(calc(${$t} / -2)) rotate(45deg); - left: 50%; - `),gr("bottom-end",` - bottom: calc(${$t} / -2); - right: calc(${Wr("bottom-end")} + var(--v-offset-left)); - `),gr("left-start",` - left: calc(${$t} / -2); - top: calc(${Wr("left-start")} - var(--v-offset-top)); - `),gr("left",` - left: calc(${$t} / -2); - transform: translateY(calc(${$t} / -2)) rotate(45deg); - top: 50%; - `),gr("left-end",` - left: calc(${$t} / -2); - bottom: calc(${Wr("left-end")} + var(--v-offset-top)); - `),gr("right-start",` - right: calc(${$t} / -2); - top: calc(${Wr("right-start")} - var(--v-offset-top)); - `),gr("right",` - right: calc(${$t} / -2); - transform: translateY(calc(${$t} / -2)) rotate(45deg); - top: 50%; - `),gr("right-end",` - right: calc(${$t} / -2); - bottom: calc(${Wr("right-end")} + var(--v-offset-top)); - `),...N2({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),o=r?"width":"height";return e.map(n=>{const i=n.split("-")[1]==="end",s=`calc((${`var(--v-target-${o}, 0px)`} - ${$t}) / 2)`,l=Wr(n);return H(`[v-placement="${n}"] >`,[L("popover-shared",[K("center-arrow",[L("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function Wr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function gr(e,t){const r=e.split("-")[0],o=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return H(`[v-placement="${e}"] >`,[L("popover-shared",` - margin-${vl[r]}: var(--n-space); - `,[K("show-arrow",` - margin-${vl[r]}: var(--n-space-arrow); - `),K("overlap",` - margin: 0; - `),cC("popover-arrow-wrapper",` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${r}: 100%; - ${vl[r]}: auto; - ${o} - `,[L("popover-arrow",t)])])])}const rg=Object.assign(Object.assign({},He.props),{to:Yr.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),og=({arrowClass:e,arrowStyle:t,arrowWrapperClass:r,arrowWrapperStyle:o,clsPrefix:n})=>b("div",{key:"__popover-arrow__",style:o,class:[`${n}-popover-arrow-wrapper`,r]},b("div",{class:[`${n}-popover-arrow`,e],style:t})),NT=Ce({name:"PopoverBody",inheritAttrs:!1,props:rg,setup(e,{slots:t,attrs:r}){const{namespaceRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:i}=Ct(e),a=He("Popover","-popover",jT,$d,e,n),s=J(null),l=Ae("NPopover"),c=J(null),d=J(e.show),u=J(!1);Lr(()=>{const{show:x}=e;x&&!dC()&&!e.internalDeactivateImmediately&&(u.value=!0)});const f=N(()=>{const{trigger:x,onClickoutside:S}=e,z=[],{positionManuallyRef:{value:O}}=l;return O||(x==="click"&&!S&&z.push([Vu,T,void 0,{capture:!0}]),x==="hover"&&z.push([EC,w])),S&&z.push([Vu,T,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&u.value)&&z.push([Ep,e.show]),z}),p=N(()=>{const x=e.width==="trigger"?void 0:Ko(e.width),S=[];x&&S.push({width:x});const{maxWidth:z,minWidth:O}=e;return z&&S.push({maxWidth:Ko(z)}),O&&S.push({maxWidth:Ko(O)}),i||S.push(h.value),S}),h=N(()=>{const{common:{cubicBezierEaseInOut:x,cubicBezierEaseIn:S,cubicBezierEaseOut:z},self:{space:O,spaceArrow:Q,padding:A,fontSize:y,textColor:M,dividerColor:P,color:I,boxShadow:_,borderRadius:V,arrowHeight:ne,arrowOffset:de,arrowOffsetVertical:G}}=a.value;return{"--n-box-shadow":_,"--n-bezier":x,"--n-bezier-ease-in":S,"--n-bezier-ease-out":z,"--n-font-size":y,"--n-text-color":M,"--n-color":I,"--n-divider-color":P,"--n-border-radius":V,"--n-arrow-height":ne,"--n-arrow-offset":de,"--n-arrow-offset-vertical":G,"--n-padding":A,"--n-space":O,"--n-space-arrow":Q}}),m=i?Nt("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:v}),Qt(()=>{l.setBodyInstance(null)}),tt(et(e,"show"),x=>{e.animated||(x?d.value=!0:d.value=!1)});function v(){var x;(x=s.value)===null||x===void 0||x.syncPosition()}function g(x){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(x)}function k(x){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(x)}function w(x){e.trigger==="hover"&&!R().contains(Xa(x))&&l.handleMouseMoveOutside(x)}function T(x){(e.trigger==="click"&&!R().contains(Xa(x))||e.onClickoutside)&&l.handleClickOutside(x)}function R(){return l.getTriggerElement()}nt(Is,c),nt(nd,null),nt(od,null);function B(){if(m==null||m.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&u.value))return null;let S;const z=l.internalRenderBodyRef.value,{value:O}=n;if(z)S=z([`${O}-popover-shared`,m==null?void 0:m.themeClass.value,e.overlap&&`${O}-popover-shared--overlap`,e.showArrow&&`${O}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${O}-popover-shared--center-arrow`],c,p.value,g,k);else{const{value:Q}=l.extraClassRef,{internalTrapFocus:A}=e,y=!jl(t.header)||!jl(t.footer),M=()=>{var P,I;const _=y?b(st,null,Bt(t.header,de=>de?b("div",{class:[`${O}-popover__header`,e.headerClass],style:e.headerStyle},de):null),Bt(t.default,de=>de?b("div",{class:[`${O}-popover__content`,e.contentClass],style:e.contentStyle},t):null),Bt(t.footer,de=>de?b("div",{class:[`${O}-popover__footer`,e.footerClass],style:e.footerStyle},de):null)):e.scrollable?(P=t.default)===null||P===void 0?void 0:P.call(t):b("div",{class:[`${O}-popover__content`,e.contentClass],style:e.contentStyle},t),V=e.scrollable?b(eg,{contentClass:y?void 0:`${O}-popover__content ${(I=e.contentClass)!==null&&I!==void 0?I:""}`,contentStyle:y?void 0:e.contentStyle},{default:()=>_}):_,ne=e.showArrow?og({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:O}):null;return[V,ne]};S=b("div",Ln({class:[`${O}-popover`,`${O}-popover-shared`,m==null?void 0:m.themeClass.value,Q.map(P=>`${O}-${P}`),{[`${O}-popover--scrollable`]:e.scrollable,[`${O}-popover--show-header-or-footer`]:y,[`${O}-popover--raw`]:e.raw,[`${O}-popover-shared--overlap`]:e.overlap,[`${O}-popover-shared--show-arrow`]:e.showArrow,[`${O}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:l.handleKeydown,onMouseenter:g,onMouseleave:k},r),A?b(b1,{active:e.show,autoFocus:!0},{default:M}):M())}return Wi(S,f.value)}return{displayed:u,namespace:o,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:Yr(e),followerEnabled:d,renderContentNode:B}},render(){return b(sd,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Yr.tdkey},{default:()=>this.animated?b(Tr,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),WT=Object.keys(rg),VT={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function UT(e,t,r){VT[t].forEach(o=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[o],i=r[o];n?e.props[o]=(...a)=>{n(...a),i(...a)}:e.props[o]=i})}const Ds={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Yr.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},KT=Object.assign(Object.assign(Object.assign({},He.props),Ds),{internalOnAfterLeave:Function,internalRenderBody:Function}),ng=Ce({name:"Popover",inheritAttrs:!1,props:KT,__popover__:!0,setup(e){const t=Rs(),r=J(null),o=N(()=>e.show),n=J(e.defaultShow),i=On(o,n),a=jt(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:P}=e;return!!(P!=null&&P())},l=()=>s()?!1:i.value,c=rd(e,["arrow","showArrow"]),d=N(()=>e.overlap?!1:c.value);let u=null;const f=J(null),p=J(null),h=jt(()=>e.x!==void 0&&e.y!==void 0);function m(P){const{"onUpdate:show":I,onUpdateShow:_,onShow:V,onHide:ne}=e;n.value=P,I&&Ve(I,P),_&&Ve(_,P),P&&V&&Ve(V,!0),P&&ne&&Ve(ne,!1)}function v(){u&&u.syncPosition()}function g(){const{value:P}=f;P&&(window.clearTimeout(P),f.value=null)}function k(){const{value:P}=p;P&&(window.clearTimeout(P),p.value=null)}function w(){const P=s();if(e.trigger==="focus"&&!P){if(l())return;m(!0)}}function T(){const P=s();if(e.trigger==="focus"&&!P){if(!l())return;m(!1)}}function R(){const P=s();if(e.trigger==="hover"&&!P){if(k(),f.value!==null||l())return;const I=()=>{m(!0),f.value=null},{delay:_}=e;_===0?I():f.value=window.setTimeout(I,_)}}function B(){const P=s();if(e.trigger==="hover"&&!P){if(g(),p.value!==null||!l())return;const I=()=>{m(!1),p.value=null},{duration:_}=e;_===0?I():p.value=window.setTimeout(I,_)}}function x(){B()}function S(P){var I;l()&&(e.trigger==="click"&&(g(),k(),m(!1)),(I=e.onClickoutside)===null||I===void 0||I.call(e,P))}function z(){if(e.trigger==="click"&&!s()){g(),k();const P=!l();m(P)}}function O(P){e.internalTrapFocus&&P.key==="Escape"&&(g(),k(),m(!1))}function Q(P){n.value=P}function A(){var P;return(P=r.value)===null||P===void 0?void 0:P.targetRef}function y(P){u=P}return nt("NPopover",{getTriggerElement:A,handleKeydown:O,handleMouseEnter:R,handleMouseLeave:B,handleClickOutside:S,handleMouseMoveOutside:x,setBodyInstance:y,positionManuallyRef:h,isMountedRef:t,zIndexRef:et(e,"zIndex"),extraClassRef:et(e,"internalExtraClass"),internalRenderBodyRef:et(e,"internalRenderBody")}),Lr(()=>{i.value&&s()&&m(!1)}),{binderInstRef:r,positionManually:h,mergedShowConsideringDisabledProp:a,uncontrolledShow:n,mergedShowArrow:d,getMergedShow:l,setShow:Q,handleClick:z,handleMouseEnter:R,handleMouseLeave:B,handleFocus:w,handleBlur:T,syncPosition:v}},render(){var e;const{positionManually:t,$slots:r}=this;let o,n=!1;if(!t&&(r.activator?o=Bu(r,"activator"):o=Bu(r,"trigger"),o)){o=qr(o),o=o.type===Ui?b("span",[o]):o;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=o.type)===null||e===void 0)&&e.__popover__)n=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[i,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(d=>{d.onBlur(c)})},onFocus:c=>{s.forEach(d=>{d.onFocus(c)})},onClick:c=>{s.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{s.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{s.forEach(d=>{d.onMouseleave(c)})}};UT(o,a?"nested":t?"manual":this.trigger,l)}}return b(id,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?Wi(b("div",{style:{position:"fixed",inset:0}}),[[em,{enabled:i,zIndex:this.zIndex}]]):null,t?null:b(ad,null,{default:()=>o}),b(NT,_n(this.$props,WT,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),ig={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},qT={name:"Tag",common:me,self(e){const{textColor2:t,primaryColorHover:r,primaryColorPressed:o,primaryColor:n,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:d,tagColor:u,opacityDisabled:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:v,closeColorPressed:g,borderRadiusSmall:k,fontSizeMini:w,fontSizeTiny:T,fontSizeSmall:R,fontSizeMedium:B,heightMini:x,heightTiny:S,heightSmall:z,heightMedium:O,buttonColor2Hover:Q,buttonColor2Pressed:A,fontWeightStrong:y}=e;return Object.assign(Object.assign({},ig),{closeBorderRadius:k,heightTiny:x,heightSmall:S,heightMedium:z,heightLarge:O,borderRadius:k,opacityDisabled:f,fontSizeTiny:w,fontSizeSmall:T,fontSizeMedium:R,fontSizeLarge:B,fontWeightStrong:y,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:Q,colorPressedCheckable:A,colorChecked:n,colorCheckedHover:r,colorCheckedPressed:o,border:`1px solid ${d}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:v,closeColorPressed:g,borderPrimary:`1px solid ${fe(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:fe(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:yt(n,{lightness:.7}),closeIconColorHoverPrimary:yt(n,{lightness:.7}),closeIconColorPressedPrimary:yt(n,{lightness:.7}),closeColorHoverPrimary:fe(n,{alpha:.16}),closeColorPressedPrimary:fe(n,{alpha:.12}),borderInfo:`1px solid ${fe(i,{alpha:.3})}`,textColorInfo:i,colorInfo:fe(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:yt(i,{alpha:.7}),closeIconColorHoverInfo:yt(i,{alpha:.7}),closeIconColorPressedInfo:yt(i,{alpha:.7}),closeColorHoverInfo:fe(i,{alpha:.16}),closeColorPressedInfo:fe(i,{alpha:.12}),borderSuccess:`1px solid ${fe(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:fe(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:yt(a,{alpha:.7}),closeIconColorHoverSuccess:yt(a,{alpha:.7}),closeIconColorPressedSuccess:yt(a,{alpha:.7}),closeColorHoverSuccess:fe(a,{alpha:.16}),closeColorPressedSuccess:fe(a,{alpha:.12}),borderWarning:`1px solid ${fe(s,{alpha:.3})}`,textColorWarning:s,colorWarning:fe(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:yt(s,{alpha:.7}),closeIconColorHoverWarning:yt(s,{alpha:.7}),closeIconColorPressedWarning:yt(s,{alpha:.7}),closeColorHoverWarning:fe(s,{alpha:.16}),closeColorPressedWarning:fe(s,{alpha:.11}),borderError:`1px solid ${fe(l,{alpha:.3})}`,textColorError:l,colorError:fe(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:yt(l,{alpha:.7}),closeIconColorHoverError:yt(l,{alpha:.7}),closeIconColorPressedError:yt(l,{alpha:.7}),closeColorHoverError:fe(l,{alpha:.16}),closeColorPressedError:fe(l,{alpha:.12})})}},ag=qT,GT=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:o,primaryColor:n,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:d,opacityDisabled:u,tagColor:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,borderRadiusSmall:v,fontSizeMini:g,fontSizeTiny:k,fontSizeSmall:w,fontSizeMedium:T,heightMini:R,heightTiny:B,heightSmall:x,heightMedium:S,closeColorHover:z,closeColorPressed:O,buttonColor2Hover:Q,buttonColor2Pressed:A,fontWeightStrong:y}=e;return Object.assign(Object.assign({},ig),{closeBorderRadius:v,heightTiny:R,heightSmall:B,heightMedium:x,heightLarge:S,borderRadius:v,opacityDisabled:u,fontSizeTiny:g,fontSizeSmall:k,fontSizeMedium:w,fontSizeLarge:T,fontWeightStrong:y,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:Q,colorPressedCheckable:A,colorChecked:n,colorCheckedHover:r,colorCheckedPressed:o,border:`1px solid ${d}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:z,closeColorPressed:O,borderPrimary:`1px solid ${fe(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:fe(n,{alpha:.12}),colorBorderedPrimary:fe(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:fe(n,{alpha:.12}),closeColorPressedPrimary:fe(n,{alpha:.18}),borderInfo:`1px solid ${fe(i,{alpha:.3})}`,textColorInfo:i,colorInfo:fe(i,{alpha:.12}),colorBorderedInfo:fe(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:fe(i,{alpha:.12}),closeColorPressedInfo:fe(i,{alpha:.18}),borderSuccess:`1px solid ${fe(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:fe(a,{alpha:.12}),colorBorderedSuccess:fe(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:fe(a,{alpha:.12}),closeColorPressedSuccess:fe(a,{alpha:.18}),borderWarning:`1px solid ${fe(s,{alpha:.35})}`,textColorWarning:s,colorWarning:fe(s,{alpha:.15}),colorBorderedWarning:fe(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:fe(s,{alpha:.12}),closeColorPressedWarning:fe(s,{alpha:.18}),borderError:`1px solid ${fe(l,{alpha:.23})}`,textColorError:l,colorError:fe(l,{alpha:.1}),colorBorderedError:fe(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:fe(l,{alpha:.12}),closeColorPressedError:fe(l,{alpha:.18})})},YT={name:"Tag",common:Wt,self:GT},XT=YT,JT={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},ZT=L("tag",` - --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[K("strong",` - font-weight: var(--n-font-weight-strong); - `),W("border",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),W("icon",` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),W("avatar",` - display: flex; - margin: 0 6px 0 0; - `),W("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),K("round",` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[W("icon",` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),W("avatar",` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),K("closable",` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),K("icon, avatar",[K("round",` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),K("disabled",` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),K("checkable",` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[xt("disabled",[H("&:hover","background-color: var(--n-color-hover-checkable);",[xt("checked","color: var(--n-text-color-hover-checkable);")]),H("&:active","background-color: var(--n-color-pressed-checkable);",[xt("checked","color: var(--n-text-color-pressed-checkable);")])]),K("checked",` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[xt("disabled",[H("&:hover","background-color: var(--n-color-checked-hover);"),H("&:active","background-color: var(--n-color-checked-pressed);")])])])]),QT=Object.assign(Object.assign(Object.assign({},He.props),JT),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),ek="n-tag",tk=Ce({name:"Tag",props:QT,setup(e){const t=J(null),{mergedBorderedRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:i}=Ct(e),a=He("Tag","-tag",ZT,XT,e,o);nt(ek,{roundRef:et(e,"round")});function s(p){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:m,onUpdateChecked:v,"onUpdate:checked":g}=e;v&&v(!h),g&&g(!h),m&&m(!h)}}function l(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&Ve(h,p)}}const c={setTextContent(p){const{value:h}=t;h&&(h.textContent=p)}},d=_o("Tag",i,o),u=N(()=>{const{type:p,size:h,color:{color:m,textColor:v}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:k,closeMargin:w,borderRadius:T,opacityDisabled:R,textColorCheckable:B,textColorHoverCheckable:x,textColorPressedCheckable:S,textColorChecked:z,colorCheckable:O,colorHoverCheckable:Q,colorPressedCheckable:A,colorChecked:y,colorCheckedHover:M,colorCheckedPressed:P,closeBorderRadius:I,fontWeightStrong:_,[ve("colorBordered",p)]:V,[ve("closeSize",h)]:ne,[ve("closeIconSize",h)]:de,[ve("fontSize",h)]:G,[ve("height",h)]:oe,[ve("color",p)]:X,[ve("textColor",p)]:re,[ve("border",p)]:xe,[ve("closeIconColor",p)]:Te,[ve("closeIconColorHover",p)]:$e,[ve("closeIconColorPressed",p)]:Ye,[ve("closeColorHover",p)]:Y,[ve("closeColorPressed",p)]:Oe}}=a.value,De=Ts(w);return{"--n-font-weight-strong":_,"--n-avatar-size-override":`calc(${oe} - 8px)`,"--n-bezier":g,"--n-border-radius":T,"--n-border":xe,"--n-close-icon-size":de,"--n-close-color-pressed":Oe,"--n-close-color-hover":Y,"--n-close-border-radius":I,"--n-close-icon-color":Te,"--n-close-icon-color-hover":$e,"--n-close-icon-color-pressed":Ye,"--n-close-icon-color-disabled":Te,"--n-close-margin-top":De.top,"--n-close-margin-right":De.right,"--n-close-margin-bottom":De.bottom,"--n-close-margin-left":De.left,"--n-close-size":ne,"--n-color":m||(r.value?V:X),"--n-color-checkable":O,"--n-color-checked":y,"--n-color-checked-hover":M,"--n-color-checked-pressed":P,"--n-color-hover-checkable":Q,"--n-color-pressed-checkable":A,"--n-font-size":G,"--n-height":oe,"--n-opacity-disabled":R,"--n-padding":k,"--n-text-color":v||re,"--n-text-color-checkable":B,"--n-text-color-checked":z,"--n-text-color-hover-checkable":x,"--n-text-color-pressed-checkable":S}}),f=n?Nt("tag",N(()=>{let p="";const{type:h,size:m,color:{color:v,textColor:g}={}}=e;return p+=h[0],p+=m[0],v&&(p+=`a${Za(v)}`),g&&(p+=`b${Za(g)}`),r.value&&(p+="c"),p}),u,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:o,contentRef:t,mergedBordered:r,handleClick:s,handleCloseClick:l,cssVars:n?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:o,closable:n,color:{borderColor:i}={},round:a,onRender:s,$slots:l}=this;s==null||s();const c=Bt(l.avatar,u=>u&&b("div",{class:`${r}-tag__avatar`},u)),d=Bt(l.icon,u=>u&&b("div",{class:`${r}-tag__icon`},u));return b("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:o,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:a,[`${r}-tag--avatar`]:c,[`${r}-tag--icon`]:d,[`${r}-tag--closable`]:n}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,b("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&n?b(Os,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?b("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}}),rk=L("base-clear",` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[H(">",[W("clear",` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[H("&:hover",` - color: var(--n-clear-color-hover)!important; - `),H("&:active",` - color: var(--n-clear-color-pressed)!important; - `)]),W("placeholder",` - display: flex; - `),W("clear, placeholder",` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[Ai({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),oc=Ce({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Vn("-base-clear",rk,et(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return b("div",{class:`${e}-base-clear`},b(As,null,{default:()=>{var t,r;return this.show?b("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Pn(this.$slots.icon,()=>[b(Co,{clsPrefix:e},{default:()=>b(jP,null)})])):b("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t))}}))}}),ok=Ce({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:r}=e;return b(_d,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?b(oc,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>b(Co,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>Pn(t.default,()=>[b(HP,null)])})}):null})}}}),nk={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},ik={name:"InternalSelection",common:me,peers:{Popover:sn},self(e){const{borderRadius:t,textColor2:r,textColorDisabled:o,inputColor:n,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,iconColor:f,iconColorDisabled:p,clearColor:h,clearColorHover:m,clearColorPressed:v,placeholderColor:g,placeholderColorDisabled:k,fontSizeTiny:w,fontSizeSmall:T,fontSizeMedium:R,fontSizeLarge:B,heightTiny:x,heightSmall:S,heightMedium:z,heightLarge:O}=e;return Object.assign(Object.assign({},nk),{fontSizeTiny:w,fontSizeSmall:T,fontSizeMedium:R,fontSizeLarge:B,heightTiny:x,heightSmall:S,heightMedium:z,heightLarge:O,borderRadius:t,textColor:r,textColorDisabled:o,placeholderColor:g,placeholderColorDisabled:k,color:n,colorDisabled:i,colorActive:fe(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${fe(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${fe(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${fe(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${fe(l,{alpha:.4})}`,colorActiveWarning:fe(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${fe(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${fe(d,{alpha:.4})}`,colorActiveError:fe(d,{alpha:.1}),caretColorError:d,clearColor:h,clearColorHover:m,clearColorPressed:v})}},Rd=ik,{cubicBezierEaseInOut:oo}=Qr;function ak({duration:e=".2s",delay:t=".1s"}={}){return[H("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),H("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),H("&.fade-in-width-expand-transition-leave-active",` - overflow: hidden; - transition: - opacity ${e} ${oo}, - max-width ${e} ${oo} ${t}, - margin-left ${e} ${oo} ${t}, - margin-right ${e} ${oo} ${t}; - `),H("&.fade-in-width-expand-transition-enter-active",` - overflow: hidden; - transition: - opacity ${e} ${oo} ${t}, - max-width ${e} ${oo}, - margin-left ${e} ${oo}, - margin-right ${e} ${oo}; - `)]}const sk={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},lk={name:"Alert",common:me,self(e){const{lineHeight:t,borderRadius:r,fontWeightStrong:o,dividerColor:n,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:m,errorColorSuppl:v,fontSize:g}=e;return Object.assign(Object.assign({},sk),{fontSize:g,lineHeight:t,titleFontWeight:o,borderRadius:r,border:`1px solid ${n}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:r,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderInfo:`1px solid ${fe(p,{alpha:.35})}`,colorInfo:fe(p,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:d,closeIconColorHoverInfo:u,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${fe(h,{alpha:.35})}`,colorSuccess:fe(h,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:h,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:d,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${fe(m,{alpha:.35})}`,colorWarning:fe(m,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:d,closeIconColorHoverWarning:u,closeIconColorPressedWarning:f,borderError:`1px solid ${fe(v,{alpha:.35})}`,colorError:fe(v,{alpha:.25}),titleTextColorError:a,iconColorError:v,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:d,closeIconColorHoverError:u,closeIconColorPressedError:f})}},ck=lk,{cubicBezierEaseInOut:Rr,cubicBezierEaseOut:dk,cubicBezierEaseIn:uk}=Qr;function sg({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:o="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[H(`&.fade-in-height-expand-transition-${c}-from, - &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),H(`&.fade-in-height-expand-transition-${c}-to, - &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),H(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${Rr} ${o}, - opacity ${t} ${dk} ${o}, - margin-top ${t} ${Rr} ${o}, - margin-bottom ${t} ${Rr} ${o}, - padding-top ${t} ${Rr} ${o}, - padding-bottom ${t} ${Rr} ${o} - ${r?","+r:""} - `),H(`&.fade-in-height-expand-transition-${l}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${Rr}, - opacity ${t} ${uk}, - margin-top ${t} ${Rr}, - margin-bottom ${t} ${Rr}, - padding-top ${t} ${Rr}, - padding-bottom ${t} ${Rr} - ${r?","+r:""} - `)]}const fk={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},hk=e=>{const{borderRadius:t,railColor:r,primaryColor:o,primaryColorHover:n,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},fk),{borderRadius:t,railColor:r,railColorActive:o,linkColor:fe(o,{alpha:.15}),linkTextColor:a,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:o})},pk={name:"Anchor",common:me,self:hk},mk=pk,gk=$s&&"chrome"in window;$s&&navigator.userAgent.includes("Firefox");const lg=$s&&navigator.userAgent.includes("Safari")&&!gk,cg={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},vk={name:"Input",common:me,self(e){const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderRadius:f,lineHeight:p,fontSizeTiny:h,fontSizeSmall:m,fontSizeMedium:v,fontSizeLarge:g,heightTiny:k,heightSmall:w,heightMedium:T,heightLarge:R,clearColor:B,clearColorHover:x,clearColorPressed:S,placeholderColor:z,placeholderColorDisabled:O,iconColor:Q,iconColorDisabled:A,iconColorHover:y,iconColorPressed:M}=e;return Object.assign(Object.assign({},cg),{countTextColorDisabled:o,countTextColor:r,heightTiny:k,heightSmall:w,heightMedium:T,heightLarge:R,fontSizeTiny:h,fontSizeSmall:m,fontSizeMedium:v,fontSizeLarge:g,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:z,placeholderColorDisabled:O,color:a,colorDisabled:s,colorFocus:fe(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${fe(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:fe(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${fe(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,colorFocusError:fe(d,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${fe(d,{alpha:.3})}`,caretColorError:d,clearColor:B,clearColorHover:x,clearColorPressed:S,iconColor:Q,iconColorDisabled:A,iconColorHover:y,iconColorPressed:M,suffixTextColor:t})}},Sr=vk,bk=e=>{const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:s,borderColor:l,warningColor:c,warningColorHover:d,errorColor:u,errorColorHover:f,borderRadius:p,lineHeight:h,fontSizeTiny:m,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:k,heightTiny:w,heightSmall:T,heightMedium:R,heightLarge:B,actionColor:x,clearColor:S,clearColorHover:z,clearColorPressed:O,placeholderColor:Q,placeholderColorDisabled:A,iconColor:y,iconColorDisabled:M,iconColorHover:P,iconColorPressed:I}=e;return Object.assign(Object.assign({},cg),{countTextColorDisabled:o,countTextColor:r,heightTiny:w,heightSmall:T,heightMedium:R,heightLarge:B,fontSizeTiny:m,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:k,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:x,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:n,placeholderColor:Q,placeholderColorDisabled:A,color:a,colorDisabled:s,colorFocus:a,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${fe(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${fe(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:a,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${fe(u,{alpha:.2})}`,caretColorError:u,clearColor:S,clearColorHover:z,clearColorPressed:O,iconColor:y,iconColorDisabled:M,iconColorHover:P,iconColorPressed:I,suffixTextColor:t})},xk={name:"Input",common:Wt,self:bk},yk=xk,dg="n-input";function Ck(e){let t=0;for(const r of e)t++;return t}function xa(e){return e===""||e==null}function Sk(e){const t=J(null);function r(){const{value:i}=e;if(!(i!=null&&i.focus)){n();return}const{selectionStart:a,selectionEnd:s,value:l}=i;if(a==null||s==null){n();return}t.value={start:a,end:s,beforeText:l.slice(0,a),afterText:l.slice(s)}}function o(){var i;const{value:a}=t,{value:s}=e;if(!a||!s)return;const{value:l}=s,{start:c,beforeText:d,afterText:u}=a;let f=l.length;if(l.endsWith(u))f=l.length-u.length;else if(l.startsWith(d))f=d.length;else{const p=d[c-1],h=l.indexOf(p,c-1);h!==-1&&(f=h+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,f,f)}function n(){t.value=null}return tt(e,n),{recordCursor:r,restoreCursor:o}}const Lf=Ce({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:o,mergedClsPrefixRef:n,countGraphemesRef:i}=Ae(dg),a=N(()=>{const{value:s}=r;return s===null||Array.isArray(s)?0:(i.value||Ck)(s)});return()=>{const{value:s}=o,{value:l}=r;return b("span",{class:`${n.value}-input-word-count`},Hy(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[s===void 0?a.value:`${a.value} / ${s}`]))}}}),wk=L("input",` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[W("input, textarea",` - overflow: hidden; - flex-grow: 1; - position: relative; - `),W("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),W("input-el, textarea-el",` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[H("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` - width: 0; - height: 0; - display: none; - `),H("&::placeholder",` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),H("&:-webkit-autofill ~",[W("placeholder","display: none;")])]),K("round",[xt("textarea","border-radius: calc(var(--n-height) / 2);")]),W("placeholder",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[H("span",` - width: 100%; - display: inline-block; - `)]),K("textarea",[W("placeholder","overflow: visible;")]),xt("autosize","width: 100%;"),K("autosize",[W("textarea-el, input-el",` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),L("input-wrapper",` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),W("input-mirror",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),W("input-el",` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[H("&[type=password]::-ms-reveal","display: none;"),H("+",[W("placeholder",` - display: flex; - align-items: center; - `)])]),xt("textarea",[W("placeholder","white-space: nowrap;")]),W("eye",` - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `),K("textarea","width: 100%;",[L("input-word-count",` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),K("resizable",[L("input-wrapper",` - resize: vertical; - min-height: var(--n-height); - `)]),W("textarea-el, textarea-mirror, placeholder",` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - scroll-padding-block-end: var(--n-padding-vertical); - `),W("textarea-mirror",` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),K("pair",[W("input-el, placeholder","text-align: center;"),W("separator",` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[L("icon",` - color: var(--n-icon-color); - `),L("base-icon",` - color: var(--n-icon-color); - `)])]),K("disabled",` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[W("border","border: var(--n-border-disabled);"),W("input-el, textarea-el",` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),W("placeholder","color: var(--n-placeholder-color-disabled);"),W("separator","color: var(--n-text-color-disabled);",[L("icon",` - color: var(--n-icon-color-disabled); - `),L("base-icon",` - color: var(--n-icon-color-disabled); - `)]),L("input-word-count",` - color: var(--n-count-text-color-disabled); - `),W("suffix, prefix","color: var(--n-text-color-disabled);",[L("icon",` - color: var(--n-icon-color-disabled); - `),L("internal-icon",` - color: var(--n-icon-color-disabled); - `)])]),xt("disabled",[W("eye",` - color: var(--n-icon-color); - cursor: pointer; - `,[H("&:hover",` - color: var(--n-icon-color-hover); - `),H("&:active",` - color: var(--n-icon-color-pressed); - `)]),H("&:hover",[W("state-border","border: var(--n-border-hover);")]),K("focus","background-color: var(--n-color-focus);",[W("state-border",` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),W("border, state-border",` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),W("state-border",` - border-color: #0000; - z-index: 1; - `),W("prefix","margin-right: 4px;"),W("suffix",` - margin-left: 4px; - `),W("suffix, prefix",` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[L("base-loading",` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),L("base-clear",` - font-size: var(--n-icon-size); - `,[W("placeholder",[L("base-icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),H(">",[L("icon",` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),L("base-icon",` - font-size: var(--n-icon-size); - `)]),L("input-word-count",` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),["warning","error"].map(e=>K(`${e}-status`,[xt("disabled",[L("base-loading",` - color: var(--n-loading-color-${e}) - `),W("input-el, textarea-el",` - caret-color: var(--n-caret-color-${e}); - `),W("state-border",` - border: var(--n-border-${e}); - `),H("&:hover",[W("state-border",` - border: var(--n-border-hover-${e}); - `)]),H("&:focus",` - background-color: var(--n-color-focus-${e}); - `,[W("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),K("focus",` - background-color: var(--n-color-focus-${e}); - `,[W("state-border",` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),_k=L("input",[K("disabled",[W("input-el, textarea-el",` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]),Pk=Object.assign(Object.assign({},He.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Tk=Ce({name:"Input",props:Pk,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:o,mergedRtlRef:n}=Ct(e),i=He("Input","-input",wk,yk,e,t);lg&&Vn("-input-safari",_k,t);const a=J(null),s=J(null),l=J(null),c=J(null),d=J(null),u=J(null),f=J(null),p=Sk(f),h=J(null),{localeRef:m}=OP("Input"),v=J(e.defaultValue),g=et(e,"value"),k=On(g,v),w=cd(e),{mergedSizeRef:T,mergedDisabledRef:R,mergedStatusRef:B}=w,x=J(!1),S=J(!1),z=J(!1),O=J(!1);let Q=null;const A=N(()=>{const{placeholder:D,pair:le}=e;return le?Array.isArray(D)?D:D===void 0?["",""]:[D,D]:D===void 0?[m.value.placeholder]:[D]}),y=N(()=>{const{value:D}=z,{value:le}=k,{value:Me}=A;return!D&&(xa(le)||Array.isArray(le)&&xa(le[0]))&&Me[0]}),M=N(()=>{const{value:D}=z,{value:le}=k,{value:Me}=A;return!D&&Me[1]&&(xa(le)||Array.isArray(le)&&xa(le[1]))}),P=jt(()=>e.internalForceFocus||x.value),I=jt(()=>{if(R.value||e.readonly||!e.clearable||!P.value&&!S.value)return!1;const{value:D}=k,{value:le}=P;return e.pair?!!(Array.isArray(D)&&(D[0]||D[1]))&&(S.value||le):!!D&&(S.value||le)}),_=N(()=>{const{showPasswordOn:D}=e;if(D)return D;if(e.showPasswordToggle)return"click"}),V=J(!1),ne=N(()=>{const{textDecoration:D}=e;return D?Array.isArray(D)?D.map(le=>({textDecoration:le})):[{textDecoration:D}]:["",""]}),de=J(void 0),G=()=>{var D,le;if(e.type==="textarea"){const{autosize:Me}=e;if(Me&&(de.value=(le=(D=h.value)===null||D===void 0?void 0:D.$el)===null||le===void 0?void 0:le.offsetWidth),!s.value||typeof Me=="boolean")return;const{paddingTop:at,paddingBottom:gt,lineHeight:it}=window.getComputedStyle(s.value),To=Number(at.slice(0,-2)),ko=Number(gt.slice(0,-2)),$o=Number(it.slice(0,-2)),{value:qn}=l;if(!qn)return;if(Me.minRows){const Gn=Math.max(Me.minRows,1),Vs=`${To+ko+$o*Gn}px`;qn.style.minHeight=Vs}if(Me.maxRows){const Gn=`${To+ko+$o*Me.maxRows}px`;qn.style.maxHeight=Gn}}},oe=N(()=>{const{maxlength:D}=e;return D===void 0?void 0:Number(D)});Ft(()=>{const{value:D}=k;Array.isArray(D)||Gt(D)});const X=So().proxy;function re(D,le){const{onUpdateValue:Me,"onUpdate:value":at,onInput:gt}=e,{nTriggerFormInput:it}=w;Me&&Ve(Me,D,le),at&&Ve(at,D,le),gt&&Ve(gt,D,le),v.value=D,it()}function xe(D,le){const{onChange:Me}=e,{nTriggerFormChange:at}=w;Me&&Ve(Me,D,le),v.value=D,at()}function Te(D){const{onBlur:le}=e,{nTriggerFormBlur:Me}=w;le&&Ve(le,D),Me()}function $e(D){const{onFocus:le}=e,{nTriggerFormFocus:Me}=w;le&&Ve(le,D),Me()}function Ye(D){const{onClear:le}=e;le&&Ve(le,D)}function Y(D){const{onInputBlur:le}=e;le&&Ve(le,D)}function Oe(D){const{onInputFocus:le}=e;le&&Ve(le,D)}function De(){const{onDeactivate:D}=e;D&&Ve(D)}function We(){const{onActivate:D}=e;D&&Ve(D)}function C(D){const{onClick:le}=e;le&&Ve(le,D)}function E(D){const{onWrapperFocus:le}=e;le&&Ve(le,D)}function q(D){const{onWrapperBlur:le}=e;le&&Ve(le,D)}function ae(){z.value=!0}function se(D){z.value=!1,D.target===u.value?he(D,1):he(D,0)}function he(D,le=0,Me="input"){const at=D.target.value;if(Gt(at),D instanceof InputEvent&&!D.isComposing&&(z.value=!1),e.type==="textarea"){const{value:it}=h;it&&it.syncUnifiedContainer()}if(Q=at,z.value)return;p.recordCursor();const gt=ge(at);if(gt)if(!e.pair)Me==="input"?re(at,{source:le}):xe(at,{source:le});else{let{value:it}=k;Array.isArray(it)?it=[it[0],it[1]]:it=["",""],it[le]=at,Me==="input"?re(it,{source:le}):xe(it,{source:le})}X.$forceUpdate(),gt||nr(p.restoreCursor)}function ge(D){const{countGraphemes:le,maxlength:Me,minlength:at}=e;if(le){let it;if(Me!==void 0&&(it===void 0&&(it=le(D)),it>Number(Me))||at!==void 0&&(it===void 0&&(it=le(D)),it{at.preventDefault(),ot("mouseup",document,le)};if(ft("mouseup",document,le),_.value!=="mousedown")return;V.value=!0;const Me=()=>{V.value=!1,ot("mouseup",document,Me)};ft("mouseup",document,Me)}function Mt(D){e.onKeyup&&Ve(e.onKeyup,D)}function Po(D){switch(e.onKeydown&&Ve(e.onKeydown,D),D.key){case"Escape":be();break;case"Enter":ce(D);break}}function ce(D){var le,Me;if(e.passivelyActivated){const{value:at}=O;if(at){e.internalDeactivateOnEnter&&be();return}D.preventDefault(),e.type==="textarea"?(le=s.value)===null||le===void 0||le.focus():(Me=d.value)===null||Me===void 0||Me.focus()}}function be(){e.passivelyActivated&&(O.value=!1,nr(()=>{var D;(D=a.value)===null||D===void 0||D.focus()}))}function Ee(){var D,le,Me;R.value||(e.passivelyActivated?(D=a.value)===null||D===void 0||D.focus():((le=s.value)===null||le===void 0||le.focus(),(Me=d.value)===null||Me===void 0||Me.focus()))}function rt(){var D;!((D=a.value)===null||D===void 0)&&D.contains(document.activeElement)&&document.activeElement.blur()}function mt(){var D,le;(D=s.value)===null||D===void 0||D.select(),(le=d.value)===null||le===void 0||le.select()}function At(){R.value||(s.value?s.value.focus():d.value&&d.value.focus())}function lr(){const{value:D}=a;D!=null&&D.contains(document.activeElement)&&D!==document.activeElement&&be()}function lt(D){if(e.type==="textarea"){const{value:le}=s;le==null||le.scrollTo(D)}else{const{value:le}=d;le==null||le.scrollTo(D)}}function Gt(D){const{type:le,pair:Me,autosize:at}=e;if(!Me&&at)if(le==="textarea"){const{value:gt}=l;gt&&(gt.textContent=(D??"")+`\r -`)}else{const{value:gt}=c;gt&&(D?gt.textContent=D:gt.innerHTML=" ")}}function jr(){G()}const ta=J({top:"0"});function Ws(D){var le;const{scrollTop:Me}=D.target;ta.value.top=`${-Me}px`,(le=h.value)===null||le===void 0||le.syncUnifiedContainer()}let ra=null;Lr(()=>{const{autosize:D,type:le}=e;D&&le==="textarea"?ra=tt(k,Me=>{!Array.isArray(Me)&&Me!==Q&&Gt(Me)}):ra==null||ra()});let oa=null;Lr(()=>{e.type==="textarea"?oa=tt(k,D=>{var le;!Array.isArray(D)&&D!==Q&&((le=h.value)===null||le===void 0||le.syncUnifiedContainer())}):oa==null||oa()}),nt(dg,{mergedValueRef:k,maxlengthRef:oe,mergedClsPrefixRef:t,countGraphemesRef:et(e,"countGraphemes")});const o0={wrapperElRef:a,inputElRef:d,textareaElRef:s,isCompositing:z,clear:Ie,focus:Ee,blur:rt,select:mt,deactivate:lr,activate:At,scrollTo:lt},n0=_o("Input",n,t),qd=N(()=>{const{value:D}=T,{common:{cubicBezierEaseInOut:le},self:{color:Me,borderRadius:at,textColor:gt,caretColor:it,caretColorError:To,caretColorWarning:ko,textDecorationColor:$o,border:qn,borderDisabled:Gn,borderHover:Vs,borderFocus:i0,placeholderColor:a0,placeholderColorDisabled:s0,lineHeightTextarea:l0,colorDisabled:c0,colorFocus:d0,textColorDisabled:u0,boxShadowFocus:f0,iconSize:h0,colorFocusWarning:p0,boxShadowFocusWarning:m0,borderWarning:g0,borderFocusWarning:v0,borderHoverWarning:b0,colorFocusError:x0,boxShadowFocusError:y0,borderError:C0,borderFocusError:S0,borderHoverError:w0,clearSize:_0,clearColor:P0,clearColorHover:T0,clearColorPressed:k0,iconColor:$0,iconColorDisabled:R0,suffixTextColor:I0,countTextColor:E0,countTextColorDisabled:z0,iconColorHover:M0,iconColorPressed:A0,loadingColor:O0,loadingColorError:D0,loadingColorWarning:B0,[ve("padding",D)]:F0,[ve("fontSize",D)]:L0,[ve("height",D)]:H0}}=i.value,{left:j0,right:N0}=Ts(F0);return{"--n-bezier":le,"--n-count-text-color":E0,"--n-count-text-color-disabled":z0,"--n-color":Me,"--n-font-size":L0,"--n-border-radius":at,"--n-height":H0,"--n-padding-left":j0,"--n-padding-right":N0,"--n-text-color":gt,"--n-caret-color":it,"--n-text-decoration-color":$o,"--n-border":qn,"--n-border-disabled":Gn,"--n-border-hover":Vs,"--n-border-focus":i0,"--n-placeholder-color":a0,"--n-placeholder-color-disabled":s0,"--n-icon-size":h0,"--n-line-height-textarea":l0,"--n-color-disabled":c0,"--n-color-focus":d0,"--n-text-color-disabled":u0,"--n-box-shadow-focus":f0,"--n-loading-color":O0,"--n-caret-color-warning":ko,"--n-color-focus-warning":p0,"--n-box-shadow-focus-warning":m0,"--n-border-warning":g0,"--n-border-focus-warning":v0,"--n-border-hover-warning":b0,"--n-loading-color-warning":B0,"--n-caret-color-error":To,"--n-color-focus-error":x0,"--n-box-shadow-focus-error":y0,"--n-border-error":C0,"--n-border-focus-error":S0,"--n-border-hover-error":w0,"--n-loading-color-error":D0,"--n-clear-color":P0,"--n-clear-size":_0,"--n-clear-color-hover":T0,"--n-clear-color-pressed":k0,"--n-icon-color":$0,"--n-icon-color-hover":M0,"--n-icon-color-pressed":A0,"--n-icon-color-disabled":R0,"--n-suffix-text-color":I0}}),un=o?Nt("input",N(()=>{const{value:D}=T;return D[0]}),qd,e):void 0;return Object.assign(Object.assign({},o0),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:u,textareaElRef:s,textareaMirrorElRef:l,textareaScrollbarInstRef:h,rtlEnabled:n0,uncontrolledValue:v,mergedValue:k,passwordVisible:V,mergedPlaceholder:A,showPlaceholder1:y,showPlaceholder2:M,mergedFocus:P,isComposing:z,activated:O,showClearButton:I,mergedSize:T,mergedDisabled:R,textDecorationStyle:ne,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:_,placeholderStyle:ta,mergedStatus:B,textAreaScrollContainerWidth:de,handleTextAreaScroll:Ws,handleCompositionStart:ae,handleCompositionEnd:se,handleInput:he,handleInputBlur:ee,handleInputFocus:ue,handleWrapperBlur:ie,handleWrapperFocus:F,handleMouseEnter:Le,handleMouseLeave:Xe,handleMouseDown:je,handleChange:Z,handleClick:pe,handleClear:Se,handlePasswordToggleClick:kt,handlePasswordToggleMousedown:wr,handleWrapperKeydown:Po,handleWrapperKeyup:Mt,handleTextAreaMirrorResize:jr,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:o?void 0:qd,themeClass:un==null?void 0:un.themeClass,onRender:un==null?void 0:un.onRender})},render(){var e,t;const{mergedClsPrefix:r,mergedStatus:o,themeClass:n,type:i,countGraphemes:a,onRender:s}=this,l=this.$slots;return s==null||s(),b("div",{ref:"wrapperElRef",class:[`${r}-input`,n,o&&`${r}-input--${o}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:i==="textarea",[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&i!=="textarea",[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},b("div",{class:`${r}-input-wrapper`},Bt(l.prefix,c=>c&&b("div",{class:`${r}-input__prefix`},c)),i==="textarea"?b(kd,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:u}=this,f={width:this.autosize&&u&&`${u}px`};return b(st,null,b("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,f],onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?b("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?b(Qa,{onResize:this.handleTextAreaMirrorResize},{default:()=>b("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):b("div",{class:`${r}-input__input`},b("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${r}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?b("div",{class:`${r}-input__placeholder`},b("span",null,this.mergedPlaceholder[0])):null,this.autosize?b("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Bt(l.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?b("div",{class:`${r}-input__suffix`},[Bt(l["clear-icon-placeholder"],d=>(this.clearable||d)&&b(oc,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var u,f;return(f=(u=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(u)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?b(ok,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?b(Lf,null,{default:d=>{var u;return(u=l.count)===null||u===void 0?void 0:u.call(l,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?b("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Pn(l["password-visible-icon"],()=>[b(Co,{clsPrefix:r},{default:()=>b(FP,null)})]):Pn(l["password-invisible-icon"],()=>[b(Co,{clsPrefix:r},{default:()=>b(LP,null)})])):null]):null)),this.pair?b("span",{class:`${r}-input__separator`},Pn(l.separator,()=>[this.separator])):null,this.pair?b("div",{class:`${r}-input-wrapper`},b("div",{class:`${r}-input__input`},b("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?b("div",{class:`${r}-input__placeholder`},b("span",null,this.mergedPlaceholder[1])):null),Bt(l.suffix,c=>(this.clearable||c)&&b("div",{class:`${r}-input__suffix`},[this.clearable&&b(oc,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=l["clear-icon"])===null||d===void 0?void 0:d.call(l)},placeholder:()=>{var d;return(d=l["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(l)}}),c]))):null,this.mergedBordered?b("div",{class:`${r}-input__border`}):null,this.mergedBordered?b("div",{class:`${r}-input__state-border`}):null,this.showCount&&i==="textarea"?b(Lf,null,{default:c=>{var d;const{renderCount:u}=this;return u?u(c):(d=l.count)===null||d===void 0?void 0:d.call(l,c)}}):null)}});function kk(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const $k={name:"AutoComplete",common:me,peers:{InternalSelectMenu:Yi,Input:Sr},self:kk},Rk=$k,Ik=e=>{const{borderRadius:t,avatarColor:r,cardColor:o,fontSize:n,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:d,popoverColor:u}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${o}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:ke(o,r),colorModal:ke(d,r),colorPopover:ke(u,r)}},Ek={name:"Avatar",common:me,self:Ik},ug=Ek,zk=()=>({gap:"-12px"}),Mk={name:"AvatarGroup",common:me,peers:{Avatar:ug},self:zk},Ak=Mk,Ok={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},Dk={name:"BackTop",common:me,self(e){const{popoverColor:t,textColor2:r,primaryColorHover:o,primaryColorPressed:n}=e;return Object.assign(Object.assign({},Ok),{color:t,textColor:r,iconColor:r,iconColorHover:o,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},Bk=Dk,Fk={name:"Badge",common:me,self(e){const{errorColorSuppl:t,infoColorSuppl:r,successColorSuppl:o,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:o,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},Lk=Fk,Hk={fontWeightActive:"400"},jk=e=>{const{fontSize:t,textColor3:r,textColor2:o,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},Hk),{fontSize:t,itemLineHeight:"1.25",itemTextColor:r,itemTextColorHover:o,itemTextColorPressed:o,itemTextColorActive:o,itemBorderRadius:n,itemColorHover:i,itemColorPressed:a,separatorColor:r})},Nk={name:"Breadcrumb",common:me,self:jk},Wk=Nk;function zo(e){return ke(e,[255,255,255,.16])}function ya(e){return ke(e,[0,0,0,.12])}const Vk="n-button-group",Uk={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},fg=e=>{const{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:d,textColor2:u,textColor3:f,primaryColorHover:p,primaryColorPressed:h,borderColor:m,primaryColor:v,baseColor:g,infoColor:k,infoColorHover:w,infoColorPressed:T,successColor:R,successColorHover:B,successColorPressed:x,warningColor:S,warningColorHover:z,warningColorPressed:O,errorColor:Q,errorColorHover:A,errorColorPressed:y,fontWeight:M,buttonColor2:P,buttonColor2Hover:I,buttonColor2Pressed:_,fontWeightStrong:V}=e;return Object.assign(Object.assign({},Uk),{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:P,colorSecondaryHover:I,colorSecondaryPressed:_,colorTertiary:P,colorTertiaryHover:I,colorTertiaryPressed:_,colorQuaternary:"#0000",colorQuaternaryHover:I,colorQuaternaryPressed:_,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:f,textColorHover:p,textColorPressed:h,textColorFocus:p,textColorDisabled:u,textColorText:u,textColorTextHover:p,textColorTextPressed:h,textColorTextFocus:p,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:p,textColorGhostPressed:h,textColorGhostFocus:p,textColorGhostDisabled:u,border:`1px solid ${m}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${m}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:p,colorPressedPrimary:h,colorFocusPrimary:p,colorDisabledPrimary:v,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:v,textColorTextHoverPrimary:p,textColorTextPressedPrimary:h,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:u,textColorGhostPrimary:v,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:k,colorHoverInfo:w,colorPressedInfo:T,colorFocusInfo:w,colorDisabledInfo:k,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:k,textColorTextHoverInfo:w,textColorTextPressedInfo:T,textColorTextFocusInfo:w,textColorTextDisabledInfo:u,textColorGhostInfo:k,textColorGhostHoverInfo:w,textColorGhostPressedInfo:T,textColorGhostFocusInfo:w,textColorGhostDisabledInfo:k,borderInfo:`1px solid ${k}`,borderHoverInfo:`1px solid ${w}`,borderPressedInfo:`1px solid ${T}`,borderFocusInfo:`1px solid ${w}`,borderDisabledInfo:`1px solid ${k}`,rippleColorInfo:k,colorSuccess:R,colorHoverSuccess:B,colorPressedSuccess:x,colorFocusSuccess:B,colorDisabledSuccess:R,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:R,textColorTextHoverSuccess:B,textColorTextPressedSuccess:x,textColorTextFocusSuccess:B,textColorTextDisabledSuccess:u,textColorGhostSuccess:R,textColorGhostHoverSuccess:B,textColorGhostPressedSuccess:x,textColorGhostFocusSuccess:B,textColorGhostDisabledSuccess:R,borderSuccess:`1px solid ${R}`,borderHoverSuccess:`1px solid ${B}`,borderPressedSuccess:`1px solid ${x}`,borderFocusSuccess:`1px solid ${B}`,borderDisabledSuccess:`1px solid ${R}`,rippleColorSuccess:R,colorWarning:S,colorHoverWarning:z,colorPressedWarning:O,colorFocusWarning:z,colorDisabledWarning:S,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:S,textColorTextHoverWarning:z,textColorTextPressedWarning:O,textColorTextFocusWarning:z,textColorTextDisabledWarning:u,textColorGhostWarning:S,textColorGhostHoverWarning:z,textColorGhostPressedWarning:O,textColorGhostFocusWarning:z,textColorGhostDisabledWarning:S,borderWarning:`1px solid ${S}`,borderHoverWarning:`1px solid ${z}`,borderPressedWarning:`1px solid ${O}`,borderFocusWarning:`1px solid ${z}`,borderDisabledWarning:`1px solid ${S}`,rippleColorWarning:S,colorError:Q,colorHoverError:A,colorPressedError:y,colorFocusError:A,colorDisabledError:Q,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:Q,textColorTextHoverError:A,textColorTextPressedError:y,textColorTextFocusError:A,textColorTextDisabledError:u,textColorGhostError:Q,textColorGhostHoverError:A,textColorGhostPressedError:y,textColorGhostFocusError:A,textColorGhostDisabledError:Q,borderError:`1px solid ${Q}`,borderHoverError:`1px solid ${A}`,borderPressedError:`1px solid ${y}`,borderFocusError:`1px solid ${A}`,borderDisabledError:`1px solid ${Q}`,rippleColorError:Q,waveOpacity:"0.6",fontWeight:M,fontWeightStrong:V})},Kk={name:"Button",common:Wt,self:fg},qk=Kk,Gk={name:"Button",common:me,self(e){const t=fg(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},sr=Gk,Yk=H([L("button",` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[K("color",[W("border",{borderColor:"var(--n-border-color)"}),K("disabled",[W("border",{borderColor:"var(--n-border-color-disabled)"})]),xt("disabled",[H("&:focus",[W("state-border",{borderColor:"var(--n-border-color-focus)"})]),H("&:hover",[W("state-border",{borderColor:"var(--n-border-color-hover)"})]),H("&:active",[W("state-border",{borderColor:"var(--n-border-color-pressed)"})]),K("pressed",[W("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),K("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[W("border",{border:"var(--n-border-disabled)"})]),xt("disabled",[H("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[W("state-border",{border:"var(--n-border-focus)"})]),H("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[W("state-border",{border:"var(--n-border-hover)"})]),H("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[W("state-border",{border:"var(--n-border-pressed)"})]),K("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[W("state-border",{border:"var(--n-border-pressed)"})])]),K("loading","cursor: wait;"),L("base-wave",` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[K("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),$s&&"MozBoxSizing"in document.createElement("div").style?H("&::moz-focus-inner",{border:0}):null,W("border, state-border",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),W("border",{border:"var(--n-border)"}),W("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),W("icon",` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[L("icon-slot",` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[Ai({top:"50%",originalTransform:"translateY(-50%)"})]),ak()]),W("content",` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[H("~",[W("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),K("block",` - display: flex; - width: 100%; - `),K("dashed",[W("border, state-border",{borderStyle:"dashed !important"})]),K("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),H("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),H("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),Xk=Object.assign(Object.assign({},He.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!lg}}),Jk=Ce({name:"Button",props:Xk,setup(e){const t=J(null),r=J(null),o=J(!1),n=jt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Ae(Vk,{}),{mergedSizeRef:a}=cd({},{defaultSize:"medium",mergedSize:T=>{const{size:R}=e;if(R)return R;const{size:B}=i;if(B)return B;const{mergedSize:x}=T||{};return x?x.value:"medium"}}),s=N(()=>e.focusable&&!e.disabled),l=T=>{var R;s.value||T.preventDefault(),!e.nativeFocusBehavior&&(T.preventDefault(),!e.disabled&&s.value&&((R=t.value)===null||R===void 0||R.focus({preventScroll:!0})))},c=T=>{var R;if(!e.disabled&&!e.loading){const{onClick:B}=e;B&&Ve(B,T),e.text||(R=r.value)===null||R===void 0||R.play()}},d=T=>{switch(T.key){case"Enter":if(!e.keyboard)return;o.value=!1}},u=T=>{switch(T.key){case"Enter":if(!e.keyboard||e.loading){T.preventDefault();return}o.value=!0}},f=()=>{o.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:h,mergedRtlRef:m}=Ct(e),v=He("Button","-button",Yk,qk,e,h),g=_o("Button",m,h),k=N(()=>{const T=v.value,{common:{cubicBezierEaseInOut:R,cubicBezierEaseOut:B},self:x}=T,{rippleDuration:S,opacityDisabled:z,fontWeight:O,fontWeightStrong:Q}=x,A=a.value,{dashed:y,type:M,ghost:P,text:I,color:_,round:V,circle:ne,textColor:de,secondary:G,tertiary:oe,quaternary:X,strong:re}=e,xe={"font-weight":re?Q:O};let Te={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const $e=M==="tertiary",Ye=M==="default",Y=$e?"default":M;if(I){const ee=de||_;Te={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ee||x[ve("textColorText",Y)],"--n-text-color-hover":ee?zo(ee):x[ve("textColorTextHover",Y)],"--n-text-color-pressed":ee?ya(ee):x[ve("textColorTextPressed",Y)],"--n-text-color-focus":ee?zo(ee):x[ve("textColorTextHover",Y)],"--n-text-color-disabled":ee||x[ve("textColorTextDisabled",Y)]}}else if(P||y){const ee=de||_;Te={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":_||x[ve("rippleColor",Y)],"--n-text-color":ee||x[ve("textColorGhost",Y)],"--n-text-color-hover":ee?zo(ee):x[ve("textColorGhostHover",Y)],"--n-text-color-pressed":ee?ya(ee):x[ve("textColorGhostPressed",Y)],"--n-text-color-focus":ee?zo(ee):x[ve("textColorGhostHover",Y)],"--n-text-color-disabled":ee||x[ve("textColorGhostDisabled",Y)]}}else if(G){const ee=Ye?x.textColor:$e?x.textColorTertiary:x[ve("color",Y)],ue=_||ee,ie=M!=="default"&&M!=="tertiary";Te={"--n-color":ie?fe(ue,{alpha:Number(x.colorOpacitySecondary)}):x.colorSecondary,"--n-color-hover":ie?fe(ue,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-pressed":ie?fe(ue,{alpha:Number(x.colorOpacitySecondaryPressed)}):x.colorSecondaryPressed,"--n-color-focus":ie?fe(ue,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-disabled":x.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ue,"--n-text-color-hover":ue,"--n-text-color-pressed":ue,"--n-text-color-focus":ue,"--n-text-color-disabled":ue}}else if(oe||X){const ee=Ye?x.textColor:$e?x.textColorTertiary:x[ve("color",Y)],ue=_||ee;oe?(Te["--n-color"]=x.colorTertiary,Te["--n-color-hover"]=x.colorTertiaryHover,Te["--n-color-pressed"]=x.colorTertiaryPressed,Te["--n-color-focus"]=x.colorSecondaryHover,Te["--n-color-disabled"]=x.colorTertiary):(Te["--n-color"]=x.colorQuaternary,Te["--n-color-hover"]=x.colorQuaternaryHover,Te["--n-color-pressed"]=x.colorQuaternaryPressed,Te["--n-color-focus"]=x.colorQuaternaryHover,Te["--n-color-disabled"]=x.colorQuaternary),Te["--n-ripple-color"]="#0000",Te["--n-text-color"]=ue,Te["--n-text-color-hover"]=ue,Te["--n-text-color-pressed"]=ue,Te["--n-text-color-focus"]=ue,Te["--n-text-color-disabled"]=ue}else Te={"--n-color":_||x[ve("color",Y)],"--n-color-hover":_?zo(_):x[ve("colorHover",Y)],"--n-color-pressed":_?ya(_):x[ve("colorPressed",Y)],"--n-color-focus":_?zo(_):x[ve("colorFocus",Y)],"--n-color-disabled":_||x[ve("colorDisabled",Y)],"--n-ripple-color":_||x[ve("rippleColor",Y)],"--n-text-color":de||(_?x.textColorPrimary:$e?x.textColorTertiary:x[ve("textColor",Y)]),"--n-text-color-hover":de||(_?x.textColorHoverPrimary:x[ve("textColorHover",Y)]),"--n-text-color-pressed":de||(_?x.textColorPressedPrimary:x[ve("textColorPressed",Y)]),"--n-text-color-focus":de||(_?x.textColorFocusPrimary:x[ve("textColorFocus",Y)]),"--n-text-color-disabled":de||(_?x.textColorDisabledPrimary:x[ve("textColorDisabled",Y)])};let Oe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};I?Oe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Oe={"--n-border":x[ve("border",Y)],"--n-border-hover":x[ve("borderHover",Y)],"--n-border-pressed":x[ve("borderPressed",Y)],"--n-border-focus":x[ve("borderFocus",Y)],"--n-border-disabled":x[ve("borderDisabled",Y)]};const{[ve("height",A)]:De,[ve("fontSize",A)]:We,[ve("padding",A)]:C,[ve("paddingRound",A)]:E,[ve("iconSize",A)]:q,[ve("borderRadius",A)]:ae,[ve("iconMargin",A)]:se,waveOpacity:he}=x,ge={"--n-width":ne&&!I?De:"initial","--n-height":I?"initial":De,"--n-font-size":We,"--n-padding":ne||I?"initial":V?E:C,"--n-icon-size":q,"--n-icon-margin":se,"--n-border-radius":I?"initial":ne||V?De:ae};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":R,"--n-bezier-ease-out":B,"--n-ripple-duration":S,"--n-opacity-disabled":z,"--n-wave-opacity":he},xe),Te),Oe),ge)}),w=p?Nt("button",N(()=>{let T="";const{dashed:R,type:B,ghost:x,text:S,color:z,round:O,circle:Q,textColor:A,secondary:y,tertiary:M,quaternary:P,strong:I}=e;R&&(T+="a"),x&&(T+="b"),S&&(T+="c"),O&&(T+="d"),Q&&(T+="e"),y&&(T+="f"),M&&(T+="g"),P&&(T+="h"),I&&(T+="i"),z&&(T+="j"+Za(z)),A&&(T+="k"+Za(A));const{value:_}=a;return T+="l"+_[0],T+="m"+B[0],T}),k,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:h,mergedFocusable:s,mergedSize:a,showBorder:n,enterPressed:o,rtlEnabled:g,handleMousedown:l,handleKeydown:u,handleBlur:f,handleKeyup:d,handleClick:c,customColorCssVars:N(()=>{const{color:T}=e;if(!T)return null;const R=zo(T);return{"--n-border-color":T,"--n-border-color-hover":R,"--n-border-color-pressed":ya(T),"--n-border-color-focus":R,"--n-border-color-disabled":T}}),cssVars:p?void 0:k,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;r==null||r();const o=Bt(this.$slots.default,n=>n&&b("span",{class:`${e}-button__content`},n));return b(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&o,b(wd,{width:!0},{default:()=>Bt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&b("span",{class:`${e}-button__icon`,style:{margin:jl(this.$slots.default)?"0":""}},b(As,null,{default:()=>this.loading?b(_d,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):b("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&o,this.text?null:b(BT,{ref:"waveElRef",clsPrefix:e}),this.showBorder?b("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?b("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Or=Jk,Zk={titleFontSize:"22px"},Qk=e=>{const{borderRadius:t,fontSize:r,lineHeight:o,textColor2:n,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:d,hoverColor:u,cardColor:f,modalColor:p,popoverColor:h}=e;return Object.assign(Object.assign({},Zk),{borderRadius:t,borderColor:ke(f,s),borderColorModal:ke(p,s),borderColorPopover:ke(h,s),textColor:n,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:r,lineHeight:o,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:ke(f,u),cellColorHoverModal:ke(p,u),cellColorHoverPopover:ke(h,u),cellColor:f,cellColorModal:p,cellColorPopover:h,barColor:c})},e$={name:"Calendar",common:me,peers:{Button:sr},self:Qk},t$=e$,r$=e=>{const{fontSize:t,boxShadow2:r,popoverColor:o,textColor2:n,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:r,color:o,textColor:n,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:p}},o$={name:"ColorPicker",common:me,peers:{Input:Sr,Button:sr},self:r$},n$=o$,i$={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},hg=e=>{const{primaryColor:t,borderRadius:r,lineHeight:o,fontSize:n,cardColor:i,textColor2:a,textColor1:s,dividerColor:l,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:h,modalColor:m,boxShadow1:v,popoverColor:g,actionColor:k}=e;return Object.assign(Object.assign({},i$),{lineHeight:o,color:i,colorModal:m,colorPopover:g,colorTarget:t,colorEmbedded:k,colorEmbeddedModal:k,colorEmbeddedPopover:k,textColor:a,titleTextColor:s,borderColor:l,actionColor:k,titleFontWeight:c,closeColorHover:p,closeColorPressed:h,closeBorderRadius:r,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:v,borderRadius:r})},a$={name:"Card",common:Wt,self:hg},s$=a$,l$={name:"Card",common:me,self(e){const t=hg(e),{cardColor:r,modalColor:o,popoverColor:n}=e;return t.colorEmbedded=r,t.colorEmbeddedModal=o,t.colorEmbeddedPopover=n,t}},pg=l$,c$=H([L("card",` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[lC({background:"var(--n-color-modal)"}),K("hoverable",[H("&:hover","box-shadow: var(--n-box-shadow);")]),K("content-segmented",[H(">",[W("content",{paddingTop:"var(--n-padding-bottom)"})])]),K("content-soft-segmented",[H(">",[W("content",` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])]),K("footer-segmented",[H(">",[W("footer",{paddingTop:"var(--n-padding-bottom)"})])]),K("footer-soft-segmented",[H(">",[W("footer",` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),H(">",[L("card-header",` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[W("main",` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),W("extra",` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),W("close",` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),W("action",` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),W("content","flex: 1; min-width: 0;"),W("content, footer",` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[H("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),W("action",` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),L("card-cover",` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[H("img",` - display: block; - width: 100%; - `)]),K("bordered",` - border: 1px solid var(--n-border-color); - `,[H("&:target","border-color: var(--n-color-target);")]),K("action-segmented",[H(">",[W("action",[H("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),K("content-segmented, content-soft-segmented",[H(">",[W("content",{transition:"border-color 0.3s var(--n-bezier)"},[H("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),K("footer-segmented, footer-soft-segmented",[H(">",[W("footer",{transition:"border-color 0.3s var(--n-bezier)"},[H("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),K("embedded",` - background-color: var(--n-color-embedded); - `)]),Gp(L("card",` - background: var(--n-color-modal); - `,[K("embedded",` - background-color: var(--n-color-embedded-modal); - `)])),Yp(L("card",` - background: var(--n-color-popover); - `,[K("embedded",` - background-color: var(--n-color-embedded-popover); - `)]))]),d$={title:String,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},u$=Object.assign(Object.assign({},He.props),d$),f$=Ce({name:"Card",props:u$,setup(e){const t=()=>{const{onClose:c}=e;c&&Ve(c)},{inlineThemeDisabled:r,mergedClsPrefixRef:o,mergedRtlRef:n}=Ct(e),i=He("Card","-card",c$,s$,e,o),a=_o("Card",n,o),s=N(()=>{const{size:c}=e,{self:{color:d,colorModal:u,colorTarget:f,textColor:p,titleTextColor:h,titleFontWeight:m,borderColor:v,actionColor:g,borderRadius:k,lineHeight:w,closeIconColor:T,closeIconColorHover:R,closeIconColorPressed:B,closeColorHover:x,closeColorPressed:S,closeBorderRadius:z,closeIconSize:O,closeSize:Q,boxShadow:A,colorPopover:y,colorEmbedded:M,colorEmbeddedModal:P,colorEmbeddedPopover:I,[ve("padding",c)]:_,[ve("fontSize",c)]:V,[ve("titleFontSize",c)]:ne},common:{cubicBezierEaseInOut:de}}=i.value,{top:G,left:oe,bottom:X}=Ts(_);return{"--n-bezier":de,"--n-border-radius":k,"--n-color":d,"--n-color-modal":u,"--n-color-popover":y,"--n-color-embedded":M,"--n-color-embedded-modal":P,"--n-color-embedded-popover":I,"--n-color-target":f,"--n-text-color":p,"--n-line-height":w,"--n-action-color":g,"--n-title-text-color":h,"--n-title-font-weight":m,"--n-close-icon-color":T,"--n-close-icon-color-hover":R,"--n-close-icon-color-pressed":B,"--n-close-color-hover":x,"--n-close-color-pressed":S,"--n-border-color":v,"--n-box-shadow":A,"--n-padding-top":G,"--n-padding-bottom":X,"--n-padding-left":oe,"--n-font-size":V,"--n-title-font-size":ne,"--n-close-size":Q,"--n-close-icon-size":O,"--n-close-border-radius":z}}),l=r?Nt("card",N(()=>e.size[0]),s,e):void 0;return{rtlEnabled:a,mergedClsPrefix:o,mergedTheme:i,handleCloseClick:t,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:o,rtlEnabled:n,onRender:i,embedded:a,tag:s,$slots:l}=this;return i==null||i(),b(s,{class:[`${o}-card`,this.themeClass,a&&`${o}-card--embedded`,{[`${o}-card--rtl`]:n,[`${o}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${o}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${o}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:r}],style:this.cssVars,role:this.role},Bt(l.cover,c=>c&&b("div",{class:`${o}-card-cover`,role:"none"},c)),Bt(l.header,c=>c||this.title||this.closable?b("div",{class:[`${o}-card-header`,this.headerClass],style:this.headerStyle},b("div",{class:`${o}-card-header__main`,role:"heading"},c||this.title),Bt(l["header-extra"],d=>d&&b("div",{class:[`${o}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},d)),this.closable?b(Os,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Bt(l.default,c=>c&&b("div",{class:[`${o}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)),Bt(l.footer,c=>c&&[b("div",{class:[`${o}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},c)]),Bt(l.action,c=>c&&b("div",{class:`${o}-card__action`,role:"none"},c)))}}),h$=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),p$={name:"Carousel",common:me,self:h$},m$=p$,g$={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},v$=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:o,modalColor:n,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},g$),{labelLineHeight:h,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:l,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:o,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${fe(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})},b$={name:"Checkbox",common:me,self(e){const{cardColor:t}=e,r=v$(e);return r.color="#0000",r.checkMarkColor=t,r}},Kn=b$,x$=e=>{const{borderRadius:t,boxShadow2:r,popoverColor:o,textColor2:n,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:d,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:o,menuBoxShadow:r,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:d,optionColorHover:c,optionTextColor:n,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},y$={name:"Cascader",common:me,peers:{InternalSelectMenu:Yi,InternalSelection:Rd,Scrollbar:ar,Checkbox:Kn,Empty:TT},self:x$},C$=y$,S$={name:"Code",common:me,self(e){const{textColor2:t,fontSize:r,fontWeightStrong:o,textColor3:n}=e;return{textColor:t,fontSize:r,fontWeightStrong:o,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}},mg=S$,w$=e=>{const{fontWeight:t,textColor1:r,textColor2:o,textColorDisabled:n,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:r,titleTextColorDisabled:n,fontSize:a,textColor:o,arrowColor:o,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},_$={name:"Collapse",common:me,self:w$},P$=_$,T$=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},k$={name:"CollapseTransition",common:me,self:T$},$$=k$,R$={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:is},locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Xo("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},I$=Ce({name:"ConfigProvider",alias:["App"],props:R$,setup(e){const t=Ae(yo,null),r=N(()=>{const{theme:h}=e;if(h===null)return;const m=t==null?void 0:t.mergedThemeRef.value;return h===void 0?m:m===void 0?h:Object.assign({},m,h)}),o=N(()=>{const{themeOverrides:h}=e;if(h!==null){if(h===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const m=t==null?void 0:t.mergedThemeOverridesRef.value;return m===void 0?h:ii({},m,h)}}}),n=jt(()=>{const{namespace:h}=e;return h===void 0?t==null?void 0:t.mergedNamespaceRef.value:h}),i=jt(()=>{const{bordered:h}=e;return h===void 0?t==null?void 0:t.mergedBorderedRef.value:h}),a=N(()=>{const{icons:h}=e;return h===void 0?t==null?void 0:t.mergedIconsRef.value:h}),s=N(()=>{const{componentOptions:h}=e;return h!==void 0?h:t==null?void 0:t.mergedComponentPropsRef.value}),l=N(()=>{const{clsPrefix:h}=e;return h!==void 0?h:t?t.mergedClsPrefixRef.value:is}),c=N(()=>{var h;const{rtl:m}=e;if(m===void 0)return t==null?void 0:t.mergedRtlRef.value;const v={};for(const g of m)v[g.name]=En(g),(h=g.peers)===null||h===void 0||h.forEach(k=>{k.name in v||(v[k.name]=En(k))});return v}),d=N(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),u=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=N(()=>{const{value:h}=r,{value:m}=o,v=m&&Object.keys(m).length!==0,g=h==null?void 0:h.name;return g?v?`${g}-${$i(JSON.stringify(o.value))}`:g:v?$i(JSON.stringify(o.value)):""});return nt(yo,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:l,mergedLocaleRef:N(()=>{const{locale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedLocaleRef.value:h}),mergedDateLocaleRef:N(()=>{const{dateLocale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedDateLocaleRef.value:h}),mergedHljsRef:N(()=>{const{hljs:h}=e;return h===void 0?t==null?void 0:t.mergedHljsRef.value:h}),mergedKatexRef:N(()=>{const{katex:h}=e;return h===void 0?t==null?void 0:t.mergedKatexRef.value:h}),mergedThemeRef:r,mergedThemeOverridesRef:o,inlineThemeDisabled:u||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:n,mergedTheme:r,mergedThemeOverrides:o}},render(){var e,t,r,o;return this.abstract?(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r):b(this.as||this.tag,{class:`${this.mergedClsPrefix||is}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),E$={name:"Popselect",common:me,peers:{Popover:sn,InternalSelectMenu:Yi}},gg=E$;function z$(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const M$={name:"Select",common:me,peers:{InternalSelection:Rd,InternalSelectMenu:Yi},self:z$},vg=M$,A$={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},O$=e=>{const{textColor2:t,primaryColor:r,primaryColorHover:o,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:u,heightTiny:f,heightSmall:p,heightMedium:h}=e;return Object.assign(Object.assign({},A$),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:o,itemTextColorPressed:n,itemTextColorActive:r,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${r}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:u,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:a})},D$={name:"Pagination",common:me,peers:{Select:vg,Input:Sr,Popselect:gg},self(e){const{primaryColor:t,opacity3:r}=e,o=fe(t,{alpha:Number(r)}),n=O$(e);return n.itemBorderActive=`1px solid ${o}`,n.itemBorderDisabled="1px solid #0000",n}},bg=D$,xg={padding:"8px 14px"},B$={name:"Tooltip",common:me,peers:{Popover:sn},self(e){const{borderRadius:t,boxShadow2:r,popoverColor:o,textColor2:n}=e;return Object.assign(Object.assign({},xg),{borderRadius:t,boxShadow:r,color:o,textColor:n})}},Bs=B$,F$=e=>{const{borderRadius:t,boxShadow2:r,baseColor:o}=e;return Object.assign(Object.assign({},xg),{borderRadius:t,boxShadow:r,color:ke(o,"rgba(0, 0, 0, .85)"),textColor:o})},L$={name:"Tooltip",common:Wt,peers:{Popover:$d},self:F$},yg=L$,H$={name:"Ellipsis",common:me,peers:{Tooltip:Bs}},Cg=H$,j$={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},N$={name:"Radio",common:me,self(e){const{borderColor:t,primaryColor:r,baseColor:o,textColorDisabled:n,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:p,heightLarge:h,lineHeight:m}=e;return Object.assign(Object.assign({},j$),{labelLineHeight:m,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${fe(r,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:n,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:r,buttonColor:"#0000",buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${fe(r,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${r}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},Sg=N$,W$={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},wg=e=>{const{primaryColor:t,textColor2:r,dividerColor:o,hoverColor:n,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:f,heightMedium:p,heightLarge:h,heightHuge:m,textColor3:v,opacityDisabled:g}=e;return Object.assign(Object.assign({},W$),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:h,optionHeightHuge:m,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:r,prefixColor:r,optionColorHover:n,optionColorActive:fe(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},_g={name:"Dropdown",common:Wt,peers:{Popover:$d},self:wg},V$={name:"Dropdown",common:me,peers:{Popover:sn},self(e){const{primaryColorSuppl:t,primaryColor:r,popoverColor:o}=e,n=wg(e);return n.colorInverted=o,n.optionColorActive=fe(r,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},Id=V$,U$={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},K$=e=>{const{cardColor:t,modalColor:r,popoverColor:o,textColor2:n,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:f,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:m,dividerColor:v,heightSmall:g,opacityDisabled:k,tableColorStriped:w}=e;return Object.assign(Object.assign({},U$),{actionDividerColor:v,lineHeight:f,borderRadius:u,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:m,borderColor:ke(t,v),tdColorHover:ke(t,s),tdColorStriped:ke(t,w),thColor:ke(t,a),thColorHover:ke(ke(t,a),s),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:d,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:ke(r,v),tdColorHoverModal:ke(r,s),tdColorStripedModal:ke(r,w),thColorModal:ke(r,a),thColorHoverModal:ke(ke(r,a),s),tdColorModal:r,borderColorPopover:ke(o,v),tdColorHoverPopover:ke(o,s),tdColorStripedPopover:ke(o,w),thColorPopover:ke(o,a),thColorHoverPopover:ke(ke(o,a),s),tdColorPopover:o,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:k})},q$={name:"DataTable",common:me,peers:{Button:sr,Checkbox:Kn,Radio:Sg,Pagination:bg,Scrollbar:ar,Empty:an,Popover:sn,Ellipsis:Cg,Dropdown:Id},self(e){const t=K$(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},G$=q$,Y$=Object.assign(Object.assign({},Ds),He.props),nc=Ce({name:"Tooltip",props:Y$,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Ct(e),r=He("Tooltip","-tooltip",void 0,yg,e,t),o=J(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(i){o.value.setShow(i)}}),{popoverRef:o,mergedTheme:r,popoverThemeOverrides:N(()=>r.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return b(ng,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),Pg=Ce({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return b("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Tg=e=>{const{textColorBase:t,opacity1:r,opacity2:o,opacity3:n,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:r,opacity2Depth:o,opacity3Depth:n,opacity4Depth:i,opacity5Depth:a}},X$={name:"Icon",common:Wt,self:Tg},J$=X$,Z$={name:"Icon",common:me,self:Tg},Q$=Z$,e5=L("icon",` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; - transform: translateZ(0); -`,[K("color-transition",{transition:"color .3s var(--n-bezier)"}),K("depth",{color:"var(--n-color)"},[H("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),H("svg",{height:"1em",width:"1em"})]),t5=Object.assign(Object.assign({},He.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),fo=Ce({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:t5,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ct(e),o=He("Icon","-icon",e5,J$,e,t),n=N(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:s},self:l}=o.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=l;return{"--n-bezier":s,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=r?Nt("icon",N(()=>`${e.depth||"d"}`),n,e):void 0;return{mergedClsPrefix:t,mergedStyle:N(()=>{const{size:a,color:s}=e;return{fontSize:Ko(a),color:s}}),cssVars:r?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:o,component:n,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Xo("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),b("i",Ln(this.$attrs,{role:"img",class:[`${o}-icon`,a,{[`${o}-icon--depth`]:r,[`${o}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),n?b(n):this.$slots)}}),Ed="n-dropdown-menu",Fs="n-dropdown",Hf="n-dropdown-option";function ic(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function r5(e){return e.type==="group"}function kg(e){return e.type==="divider"}function o5(e){return e.type==="render"}const $g=Ce({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Ae(Fs),{hoverKeyRef:r,keyboardKeyRef:o,lastToggledSubmenuKeyRef:n,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:l,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:f,renderOptionRef:p,nodePropsRef:h,menuPropsRef:m}=t,v=Ae(Hf,null),g=Ae(Ed),k=Ae(Is),w=N(()=>e.tmNode.rawNode),T=N(()=>{const{value:_}=f;return ic(e.tmNode.rawNode,_)}),R=N(()=>{const{disabled:_}=e.tmNode;return _}),B=N(()=>{if(!T.value)return!1;const{key:_,disabled:V}=e.tmNode;if(V)return!1;const{value:ne}=r,{value:de}=o,{value:G}=n,{value:oe}=i;return ne!==null?oe.includes(_):de!==null?oe.includes(_)&&oe[oe.length-1]!==_:G!==null?oe.includes(_):!1}),x=N(()=>o.value===null&&!s.value),S=fC(B,300,x),z=N(()=>!!(v!=null&&v.enteringSubmenuRef.value)),O=J(!1);nt(Hf,{enteringSubmenuRef:O});function Q(){O.value=!0}function A(){O.value=!1}function y(){const{parentKey:_,tmNode:V}=e;V.disabled||l.value&&(n.value=_,o.value=null,r.value=V.key)}function M(){const{tmNode:_}=e;_.disabled||l.value&&r.value!==_.key&&y()}function P(_){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:V}=_;V&&!Au({target:V},"dropdownOption")&&!Au({target:V},"scrollbarRail")&&(r.value=null)}function I(){const{value:_}=T,{tmNode:V}=e;l.value&&!_&&!V.disabled&&(t.doSelect(V.key,V.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:m,popoverBody:k,animated:s,mergedShowSubmenu:N(()=>S.value&&!z.value),rawNode:w,hasSubmenu:T,pending:jt(()=>{const{value:_}=i,{key:V}=e.tmNode;return _.includes(V)}),childActive:jt(()=>{const{value:_}=a,{key:V}=e.tmNode,ne=_.findIndex(de=>V===de);return ne===-1?!1:ne<_.length-1}),active:jt(()=>{const{value:_}=a,{key:V}=e.tmNode,ne=_.findIndex(de=>V===de);return ne===-1?!1:ne===_.length-1}),mergedDisabled:R,renderOption:p,nodeProps:h,handleClick:I,handleMouseMove:M,handleMouseEnter:y,handleMouseLeave:P,handleSubmenuBeforeEnter:Q,handleSubmenuAfterEnter:A}},render(){var e,t;const{animated:r,rawNode:o,mergedShowSubmenu:n,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:s,renderLabel:l,renderIcon:c,renderOption:d,nodeProps:u,props:f,scrollable:p}=this;let h=null;if(n){const k=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,o,o.children);h=b(Rg,Object.assign({},k,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const m={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},v=u==null?void 0:u(o),g=b("div",Object.assign({class:[`${i}-dropdown-option`,v==null?void 0:v.class],"data-dropdown-option":!0},v),b("div",Ln(m,f),[b("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(o):Lt(o.icon)]),b("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(o):Lt((t=o[this.labelField])!==null&&t!==void 0?t:o.title)),b("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?b(fo,null,{default:()=>b(DP,null)}):null)]),this.hasSubmenu?b(id,null,{default:()=>[b(ad,null,{default:()=>b("div",{class:`${i}-dropdown-offset-container`},b(sd,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>b("div",{class:`${i}-dropdown-menu-wrapper`},r?b(Tr,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return d?d({node:g,option:o}):g}}),n5=Ce({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Ae(Ed),{renderLabelRef:r,labelFieldRef:o,nodePropsRef:n,renderOptionRef:i}=Ae(Fs);return{labelField:o,showIcon:e,hasSubmenu:t,renderLabel:r,nodeProps:n,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:r,showIcon:o,nodeProps:n,renderLabel:i,renderOption:a}=this,{rawNode:s}=this.tmNode,l=b("div",Object.assign({class:`${t}-dropdown-option`},n==null?void 0:n(s)),b("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},b("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,o&&`${t}-dropdown-option-body__prefix--show-icon`]},Lt(s.icon)),b("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):Lt((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),b("div",{class:[`${t}-dropdown-option-body__suffix`,r&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:l,option:s}):l}}),i5=Ce({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:r}=this,{children:o}=e;return b(st,null,b(n5,{clsPrefix:r,tmNode:e,key:e.key}),o==null?void 0:o.map(n=>{const{rawNode:i}=n;return i.show===!1?null:kg(i)?b(Pg,{clsPrefix:r,key:n.key}):n.isGroup?(Xo("dropdown","`group` node is not allowed to be put in `group` node."),null):b($g,{clsPrefix:r,tmNode:n,parentKey:t,key:n.key})}))}}),a5=Ce({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return b("div",t,[e==null?void 0:e()])}}),Rg=Ce({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:r}=Ae(Fs);nt(Ed,{showIconRef:N(()=>{const n=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>n?n(l):l.icon);const{rawNode:s}=i;return n?n(s):s.icon})}),hasSubmenuRef:N(()=>{const{value:n}=r;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>ic(l,n));const{rawNode:s}=i;return ic(s,n)})})});const o=J(null);return nt(od,null),nt(nd,null),nt(Is,o),{bodyRef:o}},render(){const{parentKey:e,clsPrefix:t,scrollable:r}=this,o=this.tmNodes.map(n=>{const{rawNode:i}=n;return i.show===!1?null:o5(i)?b(a5,{tmNode:n,key:n.key}):kg(i)?b(Pg,{clsPrefix:t,key:n.key}):r5(i)?b(i5,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key}):b($g,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key,props:i.props,scrollable:r})});return b("div",{class:[`${t}-dropdown-menu`,r&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},r?b(eg,{contentClass:`${t}-dropdown-menu__content`},{default:()=>o}):o,this.showArrow?og({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),s5=L("dropdown-menu",` - transform-origin: var(--v-transform-origin); - background-color: var(--n-color); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - position: relative; - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); -`,[rc(),L("dropdown-option",` - position: relative; - `,[H("a",` - text-decoration: none; - color: inherit; - outline: none; - `,[H("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),L("dropdown-option-body",` - display: flex; - cursor: pointer; - position: relative; - height: var(--n-option-height); - line-height: var(--n-option-height); - font-size: var(--n-font-size); - color: var(--n-option-text-color); - transition: color .3s var(--n-bezier); - `,[H("&::before",` - content: ""; - position: absolute; - top: 0; - bottom: 0; - left: 4px; - right: 4px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `),xt("disabled",[K("pending",` - color: var(--n-option-text-color-hover); - `,[W("prefix, suffix",` - color: var(--n-option-text-color-hover); - `),H("&::before","background-color: var(--n-option-color-hover);")]),K("active",` - color: var(--n-option-text-color-active); - `,[W("prefix, suffix",` - color: var(--n-option-text-color-active); - `),H("&::before","background-color: var(--n-option-color-active);")]),K("child-active",` - color: var(--n-option-text-color-child-active); - `,[W("prefix, suffix",` - color: var(--n-option-text-color-child-active); - `)])]),K("disabled",` - cursor: not-allowed; - opacity: var(--n-option-opacity-disabled); - `),K("group",` - font-size: calc(var(--n-font-size) - 1px); - color: var(--n-group-header-text-color); - `,[W("prefix",` - width: calc(var(--n-option-prefix-width) / 2); - `,[K("show-icon",` - width: calc(var(--n-option-icon-prefix-width) / 2); - `)])]),W("prefix",` - width: var(--n-option-prefix-width); - display: flex; - justify-content: center; - align-items: center; - color: var(--n-prefix-color); - transition: color .3s var(--n-bezier); - z-index: 1; - `,[K("show-icon",` - width: var(--n-option-icon-prefix-width); - `),L("icon",` - font-size: var(--n-option-icon-size); - `)]),W("label",` - white-space: nowrap; - flex: 1; - z-index: 1; - `),W("suffix",` - box-sizing: border-box; - flex-grow: 0; - flex-shrink: 0; - display: flex; - justify-content: flex-end; - align-items: center; - min-width: var(--n-option-suffix-width); - padding: 0 8px; - transition: color .3s var(--n-bezier); - color: var(--n-suffix-color); - z-index: 1; - `,[K("has-submenu",` - width: var(--n-option-icon-suffix-width); - `),L("icon",` - font-size: var(--n-option-icon-size); - `)]),L("dropdown-menu","pointer-events: all;")]),L("dropdown-offset-container",` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: -4px; - bottom: -4px; - `)]),L("dropdown-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 4px 0; - `),L("dropdown-menu-wrapper",` - transform-origin: var(--v-transform-origin); - width: fit-content; - `),H(">",[L("scrollbar",` - height: inherit; - max-height: inherit; - `)]),xt("scrollable",` - padding: var(--n-padding); - `),K("scrollable",[W("content",` - padding: var(--n-padding); - `)])]),l5={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},c5=Object.keys(Ds),d5=Object.assign(Object.assign(Object.assign({},Ds),l5),He.props),u5=Ce({name:"Dropdown",inheritAttrs:!1,props:d5,setup(e){const t=J(!1),r=On(et(e,"show"),t),o=N(()=>{const{keyField:A,childrenField:y}=e;return Ea(e.options,{getKey(M){return M[A]},getDisabled(M){return M.disabled===!0},getIgnored(M){return M.type==="divider"||M.type==="render"},getChildren(M){return M[y]}})}),n=N(()=>o.value.treeNodes),i=J(null),a=J(null),s=J(null),l=N(()=>{var A,y,M;return(M=(y=(A=i.value)!==null&&A!==void 0?A:a.value)!==null&&y!==void 0?y:s.value)!==null&&M!==void 0?M:null}),c=N(()=>o.value.getPath(l.value).keyPath),d=N(()=>o.value.getPath(e.value).keyPath),u=jt(()=>e.keyboard&&r.value);PC({keydown:{ArrowUp:{prevent:!0,handler:R},ArrowRight:{prevent:!0,handler:T},ArrowDown:{prevent:!0,handler:B},ArrowLeft:{prevent:!0,handler:w},Enter:{prevent:!0,handler:x},Escape:k}},u);const{mergedClsPrefixRef:f,inlineThemeDisabled:p}=Ct(e),h=He("Dropdown","-dropdown",s5,_g,e,f);nt(Fs,{labelFieldRef:et(e,"labelField"),childrenFieldRef:et(e,"childrenField"),renderLabelRef:et(e,"renderLabel"),renderIconRef:et(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:et(e,"animated"),mergedShowRef:r,nodePropsRef:et(e,"nodeProps"),renderOptionRef:et(e,"renderOption"),menuPropsRef:et(e,"menuProps"),doSelect:m,doUpdateShow:v}),tt(r,A=>{!e.animated&&!A&&g()});function m(A,y){const{onSelect:M}=e;M&&Ve(M,A,y)}function v(A){const{"onUpdate:show":y,onUpdateShow:M}=e;y&&Ve(y,A),M&&Ve(M,A),t.value=A}function g(){i.value=null,a.value=null,s.value=null}function k(){v(!1)}function w(){z("left")}function T(){z("right")}function R(){z("up")}function B(){z("down")}function x(){const A=S();A!=null&&A.isLeaf&&r.value&&(m(A.key,A.rawNode),v(!1))}function S(){var A;const{value:y}=o,{value:M}=l;return!y||M===null?null:(A=y.getNode(M))!==null&&A!==void 0?A:null}function z(A){const{value:y}=l,{value:{getFirstAvailableNode:M}}=o;let P=null;if(y===null){const I=M();I!==null&&(P=I.key)}else{const I=S();if(I){let _;switch(A){case"down":_=I.getNext();break;case"up":_=I.getPrev();break;case"right":_=I.getChild();break;case"left":_=I.getParent();break}_&&(P=_.key)}}P!==null&&(i.value=null,a.value=P)}const O=N(()=>{const{size:A,inverted:y}=e,{common:{cubicBezierEaseInOut:M},self:P}=h.value,{padding:I,dividerColor:_,borderRadius:V,optionOpacityDisabled:ne,[ve("optionIconSuffixWidth",A)]:de,[ve("optionSuffixWidth",A)]:G,[ve("optionIconPrefixWidth",A)]:oe,[ve("optionPrefixWidth",A)]:X,[ve("fontSize",A)]:re,[ve("optionHeight",A)]:xe,[ve("optionIconSize",A)]:Te}=P,$e={"--n-bezier":M,"--n-font-size":re,"--n-padding":I,"--n-border-radius":V,"--n-option-height":xe,"--n-option-prefix-width":X,"--n-option-icon-prefix-width":oe,"--n-option-suffix-width":G,"--n-option-icon-suffix-width":de,"--n-option-icon-size":Te,"--n-divider-color":_,"--n-option-opacity-disabled":ne};return y?($e["--n-color"]=P.colorInverted,$e["--n-option-color-hover"]=P.optionColorHoverInverted,$e["--n-option-color-active"]=P.optionColorActiveInverted,$e["--n-option-text-color"]=P.optionTextColorInverted,$e["--n-option-text-color-hover"]=P.optionTextColorHoverInverted,$e["--n-option-text-color-active"]=P.optionTextColorActiveInverted,$e["--n-option-text-color-child-active"]=P.optionTextColorChildActiveInverted,$e["--n-prefix-color"]=P.prefixColorInverted,$e["--n-suffix-color"]=P.suffixColorInverted,$e["--n-group-header-text-color"]=P.groupHeaderTextColorInverted):($e["--n-color"]=P.color,$e["--n-option-color-hover"]=P.optionColorHover,$e["--n-option-color-active"]=P.optionColorActive,$e["--n-option-text-color"]=P.optionTextColor,$e["--n-option-text-color-hover"]=P.optionTextColorHover,$e["--n-option-text-color-active"]=P.optionTextColorActive,$e["--n-option-text-color-child-active"]=P.optionTextColorChildActive,$e["--n-prefix-color"]=P.prefixColor,$e["--n-suffix-color"]=P.suffixColor,$e["--n-group-header-text-color"]=P.groupHeaderTextColor),$e}),Q=p?Nt("dropdown",N(()=>`${e.size[0]}${e.inverted?"i":""}`),O,e):void 0;return{mergedClsPrefix:f,mergedTheme:h,tmNodes:n,mergedShow:r,handleAfterLeave:()=>{e.animated&&g()},doUpdateShow:v,cssVars:p?void 0:O,themeClass:Q==null?void 0:Q.themeClass,onRender:Q==null?void 0:Q.onRender}},render(){const e=(o,n,i,a,s)=>{var l;const{mergedClsPrefix:c,menuProps:d}=this;(l=this.onRender)===null||l===void 0||l.call(this);const u=(d==null?void 0:d(void 0,this.tmNodes.map(p=>p.rawNode)))||{},f={ref:Ly(n),class:[o,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:s};return b(Rg,Ln(this.$attrs,f,u))},{mergedTheme:t}=this,r={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return b(ng,Object.assign({},_n(this.$props,c5),r),{trigger:()=>{var o,n;return(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o)}})}}),f5={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},h5=e=>{const{popoverColor:t,textColor2:r,primaryColor:o,hoverColor:n,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},f5),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:r,itemTextColorActive:o,itemColorHover:n,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:d})},p5={name:"TimePicker",common:me,peers:{Scrollbar:ar,Button:sr,Input:Sr},self:h5},Ig=p5,m5={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"},g5=e=>{const{hoverColor:t,fontSize:r,textColor2:o,textColorDisabled:n,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:d,dividerColor:u,boxShadow2:f,borderRadius:p,fontWeightStrong:h}=e;return Object.assign(Object.assign({},m5),{itemFontSize:r,calendarDaysFontSize:r,calendarTitleFontSize:r,itemTextColor:o,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:fe(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:o,arrowColor:l,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:o,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:h,scrollItemBorderRadius:p,iconColor:l,iconColorDisabled:c})},v5={name:"DatePicker",common:me,peers:{Input:Sr,Button:sr,TimePicker:Ig,Scrollbar:ar},self(e){const{popoverColor:t,hoverColor:r,primaryColor:o}=e,n=g5(e);return n.itemColorDisabled=ke(t,r),n.itemColorIncluded=fe(o,{alpha:.15}),n.itemColorHover=ke(t,r),n}},b5=v5;function x5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const y5={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},C5=e=>{const{tableHeaderColor:t,textColor2:r,textColor1:o,cardColor:n,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},y5),{lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:o,thColor:ke(n,t),thColorModal:ke(i,t),thColorPopover:ke(a,t),thTextColor:o,thFontWeight:c,tdTextColor:r,tdColor:n,tdColorModal:i,tdColorPopover:a,borderColor:ke(n,s),borderColorModal:ke(i,s),borderColorPopover:ke(a,s),borderRadius:l})},S5={name:"Descriptions",common:me,self:C5},w5=S5,_5={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},P5=e=>{const{textColor1:t,textColor2:r,modalColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:d,warningColor:u,errorColor:f,primaryColor:p,dividerColor:h,borderRadius:m,fontWeightStrong:v,lineHeight:g,fontSize:k}=e;return Object.assign(Object.assign({},_5),{fontSize:k,lineHeight:g,border:`1px solid ${h}`,titleTextColor:t,textColor:r,color:o,closeColorHover:s,closeColorPressed:l,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:m,iconColor:p,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:u,iconColorError:f,borderRadius:m,titleFontWeight:v})},T5={name:"Dialog",common:me,peers:{Button:sr},self:P5},Eg=T5,k5=e=>{const{modalColor:t,textColor2:r,boxShadow3:o}=e;return{color:t,textColor:r,boxShadow:o}},$5={name:"Modal",common:me,peers:{Scrollbar:ar,Dialog:Eg,Card:pg},self:k5},R5=$5,I5=e=>{const{textColor1:t,dividerColor:r,fontWeightStrong:o}=e;return{textColor:t,color:r,fontWeight:o}},E5={name:"Divider",common:me,self:I5},z5=E5,M5=e=>{const{modalColor:t,textColor1:r,textColor2:o,boxShadow3:n,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:p,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:o,titleTextColor:r,titleFontSize:"18px",titleFontWeight:a,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:h}},A5={name:"Drawer",common:me,peers:{Scrollbar:ar},self:M5},O5=A5,D5={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},B5={name:"DynamicInput",common:me,peers:{Input:Sr,Button:sr},self(){return D5}},F5=B5,L5={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},H5={name:"Space",self(){return L5}},zg=H5,j5={name:"DynamicTags",common:me,peers:{Input:Sr,Button:sr,Tag:ag,Space:zg},self(){return{inputWidth:"64px"}}},N5=j5,W5={name:"Element",common:me},V5=W5,Mg={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},U5={name:"Flex",self(){return Mg}},K5=U5,q5=()=>Mg,G5={name:"Flex",self:q5},Y5=G5,X5=Object.assign(Object.assign({},He.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),Oi=Ce({name:"Flex",props:X5,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=Ct(e),o=He("Flex","-flex",void 0,Y5,e,t);return{rtlEnabled:_o("Flex",r,t),mergedClsPrefix:t,margin:N(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ve("gap",i)]:a}}=o.value,{row:s,col:l}=Ry(a);return{horizontal:Ou(l),vertical:Ou(s)}})}},render(){const{vertical:e,reverse:t,align:r,inline:o,justify:n,margin:i,wrap:a,mergedClsPrefix:s,rtlEnabled:l}=this,c=Ja(Fy(this),!1);return c.length?b("div",{role:"none",class:[`${s}-flex`,l&&`${s}-flex--rtl`],style:{display:o?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:n,flexWrap:!a||e?"nowrap":"wrap",alignItems:r,gap:`${i.vertical}px ${i.horizontal}px`}},c):null}}),J5={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},Ag=e=>{const{heightSmall:t,heightMedium:r,heightLarge:o,textColor1:n,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},J5),{blankHeightSmall:t,blankHeightMedium:r,blankHeightLarge:o,lineHeight:s,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})},Z5={name:"Form",common:Wt,self:Ag},Og=Z5,Q5={name:"Form",common:me,self:Ag},eR=Q5,tR=L("form",[K("inline",` - width: 100%; - display: inline-flex; - align-items: flex-start; - align-content: space-around; - `,[L("form-item",{width:"auto",marginRight:"18px"},[H("&:last-child",{marginRight:0})])])]),Xi="n-form",Dg="n-form-item-insts";var rR=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(d){try{c(o.next(d))}catch(u){a(u)}}function l(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(s,l)}c((o=o.apply(e,t||[])).next())})};const oR=Object.assign(Object.assign({},He.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),nR=Ce({name:"Form",props:oR,setup(e){const{mergedClsPrefixRef:t}=Ct(e);He("Form","-form",tR,Og,e,t);const r={},o=J(void 0),n=l=>{const c=o.value;(c===void 0||l>=c)&&(o.value=l)};function i(l,c=()=>!0){return rR(this,void 0,void 0,function*(){return yield new Promise((d,u)=>{const f=[];for(const p of An(r)){const h=r[p];for(const m of h)m.path&&f.push(m.internalValidate(null,c))}Promise.all(f).then(p=>{const h=p.some(g=>!g.valid),m=[],v=[];p.forEach(g=>{var k,w;!((k=g.errors)===null||k===void 0)&&k.length&&m.push(g.errors),!((w=g.warnings)===null||w===void 0)&&w.length&&v.push(g.warnings)}),l&&l(m.length?m:void 0,{warnings:v.length?v:void 0}),h?u(m.length?m:void 0):d({warnings:v.length?v:void 0})})})})}function a(){for(const l of An(r)){const c=r[l];for(const d of c)d.restoreValidation()}}return nt(Xi,{props:e,maxChildLabelWidthRef:o,deriveMaxChildLabelWidth:n}),nt(Dg,{formItems:r}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return b("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function za(e,t,r){return aR()?za=Reflect.construct.bind():za=function(n,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(n,s),c=new l;return a&&Di(c,a.prototype),c},za.apply(null,arguments)}function sR(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sc(e){var t=typeof Map=="function"?new Map:void 0;return sc=function(o){if(o===null||!sR(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,n)}function n(){return za(o,arguments,ac(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Di(n,o)},sc(e)}var lR=/%[sdj%]/g,cR=function(){};function lc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var o=r.field;t[o]=t[o]||[],t[o].push(r)}),t}function ur(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=i)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function dR(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||dR(t)&&typeof e=="string"&&!e)}function uR(e,t,r){var o=[],n=0,i=e.length;function a(s){o.push.apply(o,s||[]),n++,n===i&&r(o)}e.forEach(function(s){t(s,a)})}function jf(e,t,r){var o=0,n=e.length;function i(a){if(a&&a.length){r(a);return}var s=o;o=o+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ai={integer:function(t){return ai.number(t)&&parseInt(t,10)===t},float:function(t){return ai.number(t)&&!ai.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ai.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Uf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(vR())},hex:function(t){return typeof t=="string"&&!!t.match(Uf.hex)}},bR=function(t,r,o,n,i){if(t.required&&r===void 0){Bg(t,r,o,n,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ai[s](r)||n.push(ur(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&n.push(ur(i.messages.types[s],t.fullField,t.type))},xR=function(t,r,o,n,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,u=null,f=typeof r=="number",p=typeof r=="string",h=Array.isArray(r);if(f?u="number":p?u="string":h&&(u="array"),!u)return!1;h&&(d=r.length),p&&(d=r.replace(c,"_").length),a?d!==t.len&&n.push(ur(i.messages[u].len,t.fullField,t.len)):s&&!l&&dt.max?n.push(ur(i.messages[u].max,t.fullField,t.max)):s&&l&&(dt.max)&&n.push(ur(i.messages[u].range,t.fullField,t.min,t.max))},gn="enum",yR=function(t,r,o,n,i){t[gn]=Array.isArray(t[gn])?t[gn]:[],t[gn].indexOf(r)===-1&&n.push(ur(i.messages[gn],t.fullField,t[gn].join(", ")))},CR=function(t,r,o,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(ur(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||n.push(ur(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ue={required:Bg,whitespace:gR,type:bR,range:xR,enum:yR,pattern:CR},SR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r,"string")&&!t.required)return o();Ue.required(t,r,n,a,i,"string"),zt(r,"string")||(Ue.type(t,r,n,a,i),Ue.range(t,r,n,a,i),Ue.pattern(t,r,n,a,i),t.whitespace===!0&&Ue.whitespace(t,r,n,a,i))}o(a)},wR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();Ue.required(t,r,n,a,i),r!==void 0&&Ue.type(t,r,n,a,i)}o(a)},_R=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),zt(r)&&!t.required)return o();Ue.required(t,r,n,a,i),r!==void 0&&(Ue.type(t,r,n,a,i),Ue.range(t,r,n,a,i))}o(a)},PR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();Ue.required(t,r,n,a,i),r!==void 0&&Ue.type(t,r,n,a,i)}o(a)},TR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();Ue.required(t,r,n,a,i),zt(r)||Ue.type(t,r,n,a,i)}o(a)},kR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();Ue.required(t,r,n,a,i),r!==void 0&&(Ue.type(t,r,n,a,i),Ue.range(t,r,n,a,i))}o(a)},$R=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();Ue.required(t,r,n,a,i),r!==void 0&&(Ue.type(t,r,n,a,i),Ue.range(t,r,n,a,i))}o(a)},RR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return o();Ue.required(t,r,n,a,i,"array"),r!=null&&(Ue.type(t,r,n,a,i),Ue.range(t,r,n,a,i))}o(a)},IR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();Ue.required(t,r,n,a,i),r!==void 0&&Ue.type(t,r,n,a,i)}o(a)},ER="enum",zR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();Ue.required(t,r,n,a,i),r!==void 0&&Ue[ER](t,r,n,a,i)}o(a)},MR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r,"string")&&!t.required)return o();Ue.required(t,r,n,a,i),zt(r,"string")||Ue.pattern(t,r,n,a,i)}o(a)},AR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r,"date")&&!t.required)return o();if(Ue.required(t,r,n,a,i),!zt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ue.type(t,l,n,a,i),l&&Ue.range(t,l.getTime(),n,a,i)}}o(a)},OR=function(t,r,o,n,i){var a=[],s=Array.isArray(r)?"array":typeof r;Ue.required(t,r,n,a,i,s),o(a)},bl=function(t,r,o,n,i){var a=t.type,s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(zt(r,a)&&!t.required)return o();Ue.required(t,r,n,s,i,a),zt(r,a)||Ue.type(t,r,n,s,i)}o(s)},DR=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();Ue.required(t,r,n,a,i)}o(a)},vi={string:SR,method:wR,number:_R,boolean:PR,regexp:TR,integer:kR,float:$R,array:RR,object:IR,enum:zR,pattern:MR,date:AR,url:bl,hex:bl,email:bl,required:OR,any:DR};function cc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var dc=cc(),Dn=function(){function e(r){this.rules=null,this._messages=dc,this.define(r)}var t=e.prototype;return t.define=function(o){var n=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var a=o[i];n.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(o){return o&&(this._messages=Vf(cc(),o)),this._messages},t.validate=function(o,n,i){var a=this;n===void 0&&(n={}),i===void 0&&(i=function(){});var s=o,l=n,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function d(m){var v=[],g={};function k(T){if(Array.isArray(T)){var R;v=(R=v).concat.apply(R,T)}else v.push(T)}for(var w=0;we.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function FR(e){const t=Ae(Xi,null),r=N(()=>{const{labelPlacement:h}=e;return h!==void 0?h:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),o=N(()=>r.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),n=N(()=>{if(r.value==="top")return;const{labelWidth:h}=e;if(h!==void 0&&h!=="auto")return Ko(h);if(o.value){const m=t==null?void 0:t.maxChildLabelWidthRef.value;return m!==void 0?Ko(m):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return Ko(t.props.labelWidth)}),i=N(()=>{const{labelAlign:h}=e;if(h)return h;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=N(()=>{var h;return[(h=e.labelProps)===null||h===void 0?void 0:h.style,e.labelStyle,{width:n.value}]}),s=N(()=>{const{showRequireMark:h}=e;return h!==void 0?h:t==null?void 0:t.props.showRequireMark}),l=N(()=>{const{requireMarkPlacement:h}=e;return h!==void 0?h:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=J(!1),d=J(!1),u=N(()=>{const{validationStatus:h}=e;if(h!==void 0)return h;if(c.value)return"error";if(d.value)return"warning"}),f=N(()=>{const{showFeedback:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),p=N(()=>{const{showLabel:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,validationWarned:d,mergedLabelStyle:a,mergedLabelPlacement:r,mergedLabelAlign:i,mergedShowRequireMark:s,mergedRequireMarkPlacement:l,mergedValidationStatus:u,mergedShowFeedback:f,mergedShowLabel:p,isAutoLabelWidth:o}}function LR(e){const t=Ae(Xi,null),r=N(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:s}=e;if(s!==void 0)return s}),o=N(()=>{const a=[],{rule:s}=e;if(s!==void 0&&(Array.isArray(s)?a.push(...s):a.push(s)),t){const{rules:l}=t.props,{value:c}=r;if(l!==void 0&&c!==void 0){const d=Cd(l,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),n=N(()=>o.value.some(a=>a.required)),i=N(()=>n.value||e.required);return{mergedRules:o,mergedRequired:i}}const{cubicBezierEaseInOut:Kf}=Qr;function HR({name:e="fade-down",fromOffset:t="-4px",enterDuration:r=".3s",leaveDuration:o=".3s",enterCubicBezier:n=Kf,leaveCubicBezier:i=Kf}={}){return[H(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),H(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),H(`&.${e}-transition-leave-active`,{transition:`opacity ${o} ${i}, transform ${o} ${i}`}),H(`&.${e}-transition-enter-active`,{transition:`opacity ${r} ${n}, transform ${r} ${n}`})]}const jR=L("form-item",` - display: grid; - line-height: var(--n-line-height); -`,[L("form-item-label",` - grid-area: label; - align-items: center; - line-height: 1.25; - text-align: var(--n-label-text-align); - font-size: var(--n-label-font-size); - min-height: var(--n-label-height); - padding: var(--n-label-padding); - color: var(--n-label-text-color); - transition: color .3s var(--n-bezier); - box-sizing: border-box; - font-weight: var(--n-label-font-weight); - `,[W("asterisk",` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - color: var(--n-asterisk-color); - transition: color .3s var(--n-bezier); - `),W("asterisk-placeholder",` - grid-area: mark; - user-select: none; - -webkit-user-select: none; - visibility: hidden; - `)]),L("form-item-blank",` - grid-area: blank; - min-height: var(--n-blank-height); - `),K("auto-label-width",[L("form-item-label","white-space: nowrap;")]),K("left-labelled",` - grid-template-areas: - "label blank" - "label feedback"; - grid-template-columns: auto minmax(0, 1fr); - grid-template-rows: auto 1fr; - align-items: flex-start; - `,[L("form-item-label",` - display: grid; - grid-template-columns: 1fr auto; - min-height: var(--n-blank-height); - height: auto; - box-sizing: border-box; - flex-shrink: 0; - flex-grow: 0; - `,[K("reverse-columns-space",` - grid-template-columns: auto 1fr; - `),K("left-mark",` - grid-template-areas: - "mark text" - ". text"; - `),K("right-mark",` - grid-template-areas: - "text mark" - "text ."; - `),K("right-hanging-mark",` - grid-template-areas: - "text mark" - "text ."; - `),W("text",` - grid-area: text; - `),W("asterisk",` - grid-area: mark; - align-self: end; - `)])]),K("top-labelled",` - grid-template-areas: - "label" - "blank" - "feedback"; - grid-template-rows: minmax(var(--n-label-height), auto) 1fr; - grid-template-columns: minmax(0, 100%); - `,[K("no-label",` - grid-template-areas: - "blank" - "feedback"; - grid-template-rows: 1fr; - `),L("form-item-label",` - display: flex; - align-items: flex-start; - justify-content: var(--n-label-text-align); - `)]),L("form-item-blank",` - box-sizing: border-box; - display: flex; - align-items: center; - position: relative; - `),L("form-item-feedback-wrapper",` - grid-area: feedback; - box-sizing: border-box; - min-height: var(--n-feedback-height); - font-size: var(--n-feedback-font-size); - line-height: 1.25; - transform-origin: top left; - `,[H("&:not(:empty)",` - padding: var(--n-feedback-padding); - `),L("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[K("warning",{color:"var(--n-feedback-text-color-warning)"}),K("error",{color:"var(--n-feedback-text-color-error)"}),HR({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var qf=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(d){try{c(o.next(d))}catch(u){a(u)}}function l(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(s,l)}c((o=o.apply(e,t||[])).next())})};const NR=Object.assign(Object.assign({},He.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object});function Gf(e,t){return(...r)=>{try{const o=e(...r);return!t&&(typeof o=="boolean"||o instanceof Error||Array.isArray(o))||o!=null&&o.then?o:(o===void 0||Xo("form-item/validate",`You return a ${typeof o} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(o){Xo("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(o);return}}}const WR=Ce({name:"FormItem",props:NR,setup(e){uC(Dg,"formItems",et(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ct(e),o=Ae(Xi,null),n=BR(e),i=FR(e),{validationErrored:a,validationWarned:s}=i,{mergedRequired:l,mergedRules:c}=LR(e),{mergedSize:d}=n,{mergedLabelPlacement:u,mergedLabelAlign:f,mergedRequireMarkPlacement:p}=i,h=J([]),m=J(Mn()),v=o?et(o.props,"disabled"):J(!1),g=He("Form","-form-item",jR,Og,e,t);tt(et(e,"path"),()=>{e.ignorePathChange||k()});function k(){h.value=[],a.value=!1,s.value=!1,e.feedback&&(m.value=Mn())}function w(){S("blur")}function T(){S("change")}function R(){S("focus")}function B(){S("input")}function x(M,P){return qf(this,void 0,void 0,function*(){let I,_,V,ne;return typeof M=="string"?(I=M,_=P):M!==null&&typeof M=="object"&&(I=M.trigger,_=M.callback,V=M.shouldRuleBeApplied,ne=M.options),yield new Promise((de,G)=>{S(I,V,ne).then(({valid:oe,errors:X,warnings:re})=>{oe?(_&&_(void 0,{warnings:re}),de({warnings:re})):(_&&_(X,{warnings:re}),G(X))})})})}const S=(M=null,P=()=>!0,I={suppressWarning:!0})=>qf(this,void 0,void 0,function*(){const{path:_}=e;I?I.first||(I.first=e.first):I={};const{value:V}=c,ne=o?Cd(o.props.model,_||""):void 0,de={},G={},oe=(M?V.filter(De=>Array.isArray(De.trigger)?De.trigger.includes(M):De.trigger===M):V).filter(P).map((De,We)=>{const C=Object.assign({},De);if(C.validator&&(C.validator=Gf(C.validator,!1)),C.asyncValidator&&(C.asyncValidator=Gf(C.asyncValidator,!0)),C.renderMessage){const E=`__renderMessage__${We}`;G[E]=C.message,C.message=E,de[E]=C.renderMessage}return C}),X=oe.filter(De=>De.level!=="warning"),re=oe.filter(De=>De.level==="warning"),xe=_??"__n_no_path__",Te=new Dn({[xe]:X}),$e=new Dn({[xe]:re}),{validateMessages:Ye}=(o==null?void 0:o.props)||{};Ye&&(Te.messages(Ye),$e.messages(Ye));const Y=De=>{h.value=De.map(We=>{const C=(We==null?void 0:We.message)||"";return{key:C,render:()=>C.startsWith("__renderMessage__")?de[C]():C}}),De.forEach(We=>{var C;!((C=We.message)===null||C===void 0)&&C.startsWith("__renderMessage__")&&(We.message=G[We.message])})},Oe={valid:!0,errors:void 0,warnings:void 0};if(X.length){const De=yield new Promise(We=>{Te.validate({[xe]:ne},I,We)});De!=null&&De.length&&(a.value=!0,Oe.valid=!1,Oe.errors=De,Y(De))}if(re.length&&!Oe.errors){const De=yield new Promise(We=>{$e.validate({[xe]:ne},I,We)});De!=null&&De.length&&(Y(De),s.value=!0,Oe.warnings=De)}return!Oe.errors&&!Oe.warnings&&k(),Oe});nt(Kl,{path:et(e,"path"),disabled:v,mergedSize:n.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:k,handleContentBlur:w,handleContentChange:T,handleContentFocus:R,handleContentInput:B});const z={validate:x,restoreValidation:k,internalValidate:S},O=J(null);Ft(()=>{if(!i.isAutoLabelWidth.value)return;const M=O.value;if(M!==null){const P=M.style.whiteSpace;M.style.whiteSpace="nowrap",M.style.width="",o==null||o.deriveMaxChildLabelWidth(Number(getComputedStyle(M).width.slice(0,-2))),M.style.whiteSpace=P}});const Q=N(()=>{var M;const{value:P}=d,{value:I}=u,_=I==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:V},self:{labelTextColor:ne,asteriskColor:de,lineHeight:G,feedbackTextColor:oe,feedbackTextColorWarning:X,feedbackTextColorError:re,feedbackPadding:xe,labelFontWeight:Te,[ve("labelHeight",P)]:$e,[ve("blankHeight",P)]:Ye,[ve("feedbackFontSize",P)]:Y,[ve("feedbackHeight",P)]:Oe,[ve("labelPadding",_)]:De,[ve("labelTextAlign",_)]:We,[ve(ve("labelFontSize",I),P)]:C}}=g.value;let E=(M=f.value)!==null&&M!==void 0?M:We;return I==="top"&&(E=E==="right"?"flex-end":"flex-start"),{"--n-bezier":V,"--n-line-height":G,"--n-blank-height":Ye,"--n-label-font-size":C,"--n-label-text-align":E,"--n-label-height":$e,"--n-label-padding":De,"--n-label-font-weight":Te,"--n-asterisk-color":de,"--n-label-text-color":ne,"--n-feedback-padding":xe,"--n-feedback-font-size":Y,"--n-feedback-height":Oe,"--n-feedback-text-color":oe,"--n-feedback-text-color-warning":X,"--n-feedback-text-color-error":re}}),A=r?Nt("form-item",N(()=>{var M;return`${d.value[0]}${u.value[0]}${((M=f.value)===null||M===void 0?void 0:M[0])||""}`}),Q,e):void 0,y=N(()=>u.value==="left"&&p.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:O,mergedClsPrefix:t,mergedRequired:l,feedbackId:m,renderExplains:h,reverseColSpace:y},i),n),z),{cssVars:r?void 0:Q,themeClass:A==null?void 0:A.themeClass,onRender:A==null?void 0:A.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:r,mergedShowRequireMark:o,mergedRequireMarkPlacement:n,onRender:i}=this,a=o!==void 0?o:this.mergedRequired;i==null||i();const s=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const c=b("span",{class:`${t}-form-item-label__text`},l),d=a?b("span",{class:`${t}-form-item-label__asterisk`},n!=="left"?" *":"* "):n==="right-hanging"&&b("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:u}=this;return b("label",Object.assign({},u,{class:[u==null?void 0:u.class,`${t}-form-item-label`,`${t}-form-item-label--${n}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),n==="left"?[d,c]:[c,d])};return b("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!r&&`${t}-form-item--no-label`],style:this.cssVars},r&&s(),b("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?b("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},b(Tr,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return Bt(e.feedback,c=>{var d;const{feedback:u}=this,f=c||u?b("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||u):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:p,render:h})=>b("div",{key:p,class:`${t}-form-item-feedback__line`},h())):null;return f?l==="warning"?b("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},f):l==="error"?b("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},f):l==="success"?b("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},f):b("div",{key:"controlled-default",class:`${t}-form-item-feedback`},f):null})}})):null)}}),VR={name:"GradientText",common:me,self(e){const{primaryColor:t,successColor:r,warningColor:o,errorColor:n,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:o,colorEndWarning:l,colorStartError:n,colorEndError:c,colorStartSuccess:r,colorEndSuccess:s}}},UR=VR,KR=e=>{const{primaryColor:t,baseColor:r}=e;return{color:t,iconColor:r}},qR={name:"IconWrapper",common:me,self:KR},GR=qR,YR={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},Fg=e=>{const{textColor2:t,successColor:r,infoColor:o,warningColor:n,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:u,textColor1:f,textColor3:p,borderRadius:h,fontWeightStrong:m,boxShadow2:v,lineHeight:g,fontSize:k}=e;return Object.assign(Object.assign({},YR),{borderRadius:h,lineHeight:g,fontSize:k,headerFontWeight:m,iconColor:t,iconColorSuccess:r,iconColorInfo:o,iconColorWarning:n,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:d,closeColorPressed:u,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:v})},XR={name:"Notification",common:Wt,peers:{Scrollbar:Td},self:Fg},JR=XR,ZR={name:"Notification",common:me,peers:{Scrollbar:ar},self:Fg},QR=ZR,e3={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},Lg=e=>{const{textColor2:t,closeIconColor:r,closeIconColorHover:o,closeIconColorPressed:n,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:d,primaryColor:u,lineHeight:f,borderRadius:p,closeColorHover:h,closeColorPressed:m}=e;return Object.assign(Object.assign({},e3),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:u,closeColorHover:h,closeColorPressed:m,closeIconColor:r,closeIconColorHover:o,closeIconColorPressed:n,closeColorHoverInfo:h,closeColorPressedInfo:m,closeIconColorInfo:r,closeIconColorHoverInfo:o,closeIconColorPressedInfo:n,closeColorHoverSuccess:h,closeColorPressedSuccess:m,closeIconColorSuccess:r,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:n,closeColorHoverError:h,closeColorPressedError:m,closeIconColorError:r,closeIconColorHoverError:o,closeIconColorPressedError:n,closeColorHoverWarning:h,closeColorPressedWarning:m,closeIconColorWarning:r,closeIconColorHoverWarning:o,closeIconColorPressedWarning:n,closeColorHoverLoading:h,closeColorPressedLoading:m,closeIconColorLoading:r,closeIconColorHoverLoading:o,closeIconColorPressedLoading:n,loadingColor:u,lineHeight:f,borderRadius:p})},t3={name:"Message",common:Wt,self:Lg},r3=t3,o3={name:"Message",common:me,self:Lg},n3=o3,i3={name:"ButtonGroup",common:me},a3=i3,s3={name:"InputNumber",common:me,peers:{Button:sr,Input:Sr},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},l3=s3,c3={name:"Layout",common:me,peers:{Scrollbar:ar},self(e){const{textColor2:t,bodyColor:r,popoverColor:o,cardColor:n,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:r,colorEmbedded:r,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:ke(r,a),siderToggleBarColorHover:ke(r,s),__invertScrollbar:"false"}}},d3=c3,u3=e=>{const{baseColor:t,textColor2:r,bodyColor:o,cardColor:n,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:r,textColorInverted:"#FFF",color:o,colorEmbedded:a,headerColor:n,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:n,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:ke(o,s),siderToggleBarColorHover:ke(o,l),__invertScrollbar:"true"}},f3={name:"Layout",common:Wt,peers:{Scrollbar:Td},self:u3},Hg=f3,h3=e=>{const{textColor2:t,cardColor:r,modalColor:o,popoverColor:n,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:r,colorHover:l,colorModal:o,colorHoverModal:ke(o,l),colorPopover:n,colorHoverPopover:ke(n,l),borderColor:i,borderColorModal:ke(o,i),borderColorPopover:ke(n,i),borderRadius:a,fontSize:s}},p3={name:"List",common:me,self:h3},m3=p3,g3={name:"LoadingBar",common:me,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},v3=g3,b3={name:"Log",common:me,peers:{Scrollbar:ar,Code:mg},self(e){const{textColor2:t,inputColor:r,fontSize:o,primaryColor:n}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:r,loaderBorder:"1px solid #0000",loadingColor:n}}},x3=b3,y3={name:"Mention",common:me,peers:{InternalSelectMenu:Yi,Input:Sr},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},C3=y3;function S3(e,t,r,o){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:r,itemTextColorChildActiveInverted:r,itemTextColorChildActiveHoverInverted:r,itemTextColorActiveInverted:r,itemTextColorActiveHoverInverted:r,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:r,itemTextColorChildActiveHorizontalInverted:r,itemTextColorChildActiveHoverHorizontalInverted:r,itemTextColorActiveHorizontalInverted:r,itemTextColorActiveHoverHorizontalInverted:r,itemIconColorInverted:e,itemIconColorHoverInverted:r,itemIconColorActiveInverted:r,itemIconColorActiveHoverInverted:r,itemIconColorChildActiveInverted:r,itemIconColorChildActiveHoverInverted:r,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:r,itemIconColorActiveHorizontalInverted:r,itemIconColorActiveHoverHorizontalInverted:r,itemIconColorChildActiveHorizontalInverted:r,itemIconColorChildActiveHoverHorizontalInverted:r,arrowColorInverted:e,arrowColorHoverInverted:r,arrowColorActiveInverted:r,arrowColorActiveHoverInverted:r,arrowColorChildActiveInverted:r,arrowColorChildActiveHoverInverted:r,groupTextColorInverted:o}}const jg=e=>{const{borderRadius:t,textColor3:r,primaryColor:o,textColor2:n,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:r,itemColorHover:l,itemColorActive:fe(o,{alpha:.1}),itemColorActiveHover:fe(o,{alpha:.1}),itemColorActiveCollapsed:fe(o,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:o,itemTextColorActiveHover:o,itemTextColorChildActive:o,itemTextColorChildActiveHover:o,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:o,itemTextColorActiveHoverHorizontal:o,itemTextColorChildActiveHorizontal:o,itemTextColorChildActiveHoverHorizontal:o,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:o,itemIconColorActiveHover:o,itemIconColorChildActive:o,itemIconColorChildActiveHover:o,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:o,itemIconColorActiveHoverHorizontal:o,itemIconColorChildActiveHorizontal:o,itemIconColorChildActiveHoverHorizontal:o,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:o,arrowColorActiveHover:o,arrowColorChildActive:o,arrowColorChildActiveHover:o,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},S3("#BBB",o,"#FFF","#AAA"))},w3={name:"Menu",common:Wt,peers:{Tooltip:yg,Dropdown:_g},self:jg},_3=w3,P3={name:"Menu",common:me,peers:{Tooltip:Bs,Dropdown:Id},self(e){const{primaryColor:t,primaryColorSuppl:r}=e,o=jg(e);return o.itemColorActive=fe(t,{alpha:.15}),o.itemColorActiveHover=fe(t,{alpha:.15}),o.itemColorActiveCollapsed=fe(t,{alpha:.15}),o.itemColorActiveInverted=r,o.itemColorActiveHoverInverted=r,o.itemColorActiveCollapsedInverted=r,o}},T3=P3,k3={titleFontSize:"18px",backSize:"22px"};function $3(e){const{textColor1:t,textColor2:r,textColor3:o,fontSize:n,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},k3),{titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:r,backColorHover:a,backColorPressed:s,subtitleTextColor:o})}const R3={name:"PageHeader",common:me,self:$3},I3={iconSize:"22px"},E3=e=>{const{fontSize:t,warningColor:r}=e;return Object.assign(Object.assign({},I3),{fontSize:t,iconColor:r})},z3={name:"Popconfirm",common:me,peers:{Button:sr,Popover:sn},self:E3},M3=z3,A3=e=>{const{infoColor:t,successColor:r,warningColor:o,errorColor:n,textColor2:i,progressRailColor:a,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:o,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:o,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},O3={name:"Progress",common:me,self(e){const t=A3(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},Ng=O3,D3={name:"Rate",common:me,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},B3=D3,F3={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},L3=e=>{const{textColor2:t,textColor1:r,errorColor:o,successColor:n,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},F3),{lineHeight:s,titleFontWeight:l,titleTextColor:r,textColor:t,iconColorError:o,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:a})},H3={name:"Result",common:me,self:L3},j3=H3,Wg={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},N3={name:"Slider",common:me,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,modalColor:o,primaryColorSuppl:n,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},Wg),{fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:d,handleColor:"#FFF",dotColor:s,dotColorModal:o,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:l,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}},W3=N3,V3=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,primaryColor:n,baseColor:i,cardColor:a,modalColor:s,popoverColor:l,borderRadius:c,fontSize:d,opacityDisabled:u}=e;return Object.assign(Object.assign({},Wg),{fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:a,dotColorModal:s,dotColorPopover:l,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})},U3={name:"Slider",common:Wt,self:V3},K3=U3,q3=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:o,heightMedium:n,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:r,sizeSmall:o,sizeMedium:n,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}},G3={name:"Spin",common:me,self:q3},Y3=G3,X3=e=>{const{textColor2:t,textColor3:r,fontSize:o,fontWeight:n}=e;return{labelFontSize:o,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:r,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},J3={name:"Statistic",common:me,self:X3},Z3=J3,Q3={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},eI=e=>{const{fontWeightStrong:t,baseColor:r,textColorDisabled:o,primaryColor:n,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},Q3),{stepHeaderFontWeight:t,indicatorTextColorProcess:r,indicatorTextColorWait:o,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:o,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:n,splitorColorError:o,headerTextColorProcess:a,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:i})},tI={name:"Steps",common:me,self:eI},rI=tI,oI={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},nI={name:"Switch",common:me,self(e){const{primaryColorSuppl:t,opacityDisabled:r,borderRadius:o,primaryColor:n,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},oI),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:r,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${fe(n,{alpha:.3})}`})}},iI=nI,aI={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},sI=e=>{const{dividerColor:t,cardColor:r,modalColor:o,popoverColor:n,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:d,lineHeight:u,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h}=e;return Object.assign(Object.assign({},aI),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h,lineHeight:u,borderRadius:c,borderColor:ke(r,t),borderColorModal:ke(o,t),borderColorPopover:ke(n,t),tdColor:r,tdColorModal:o,tdColorPopover:n,tdColorStriped:ke(r,a),tdColorStripedModal:ke(o,a),tdColorStripedPopover:ke(n,a),thColor:ke(r,i),thColorModal:ke(o,i),thColorPopover:ke(n,i),thTextColor:s,tdTextColor:l,thFontWeight:d})},lI={name:"Table",common:me,self:sI},cI=lI,dI={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},uI=e=>{const{textColor2:t,primaryColor:r,textColorDisabled:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:d,dividerColor:u,fontWeight:f,textColor1:p,borderRadius:h,fontSize:m,fontWeightStrong:v}=e;return Object.assign(Object.assign({},dI),{colorSegment:c,tabFontSizeCard:m,tabTextColorLine:p,tabTextColorActiveLine:r,tabTextColorHoverLine:r,tabTextColorDisabledLine:o,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:o,tabTextColorBar:p,tabTextColorActiveBar:r,tabTextColorHoverBar:r,tabTextColorDisabledBar:o,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:r,tabTextColorDisabledCard:o,barColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:h,tabColor:c,tabColorSegment:d,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:v})},fI={name:"Tabs",common:me,self(e){const t=uI(e),{inputColor:r}=e;return t.colorSegment=r,t.tabColorSegment=r,t}},hI=fI,pI=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:o,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:r,titleFontWeight:o}},mI={name:"Thing",common:me,self:pI},gI=mI,vI={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},bI={name:"Timeline",common:me,self(e){const{textColor3:t,infoColorSuppl:r,errorColorSuppl:o,successColorSuppl:n,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},vI),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:o,iconColorSuccess:n,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},xI=bI,yI={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},CI={name:"Transfer",common:me,peers:{Checkbox:Kn,Scrollbar:ar,Input:Sr,Empty:an,Button:sr},self(e){const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:o,fontSizeSmall:n,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:d,textColorDisabled:u,textColor2:f,textColor3:p,hoverColor:h,closeColorHover:m,closeColorPressed:v,closeIconColor:g,closeIconColorHover:k,closeIconColorPressed:w,dividerColor:T}=e;return Object.assign(Object.assign({},yI),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:o,fontSizeLarge:r,borderRadius:s,dividerColor:T,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:d,titleTextColorDisabled:u,extraTextColor:p,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:h,titleFontWeight:t,closeColorHover:m,closeColorPressed:v,closeIconColor:g,closeIconColorHover:k,closeIconColorPressed:w})}},SI=CI,wI=e=>{const{borderRadiusSmall:t,dividerColor:r,hoverColor:o,pressedColor:n,primaryColor:i,textColor3:a,textColor2:s,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:o,nodeColorPressed:n,nodeColorActive:fe(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:r}},_I={name:"Tree",common:me,peers:{Checkbox:Kn,Scrollbar:ar,Empty:an},self(e){const{primaryColor:t}=e,r=wI(e);return r.nodeColorActive=fe(t,{alpha:.15}),r}},Vg=_I,PI={name:"TreeSelect",common:me,peers:{Tree:Vg,Empty:an,InternalSelection:Rd}},TI=PI,kI={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},Ug=e=>{const{primaryColor:t,textColor2:r,borderColor:o,lineHeight:n,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:d,infoColor:u,warningColor:f,errorColor:p,successColor:h,codeColor:m}=e;return Object.assign(Object.assign({},kI),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:o,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:r,liLineHeight:n,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:r,pTextColor1Depth:c,pTextColor2Depth:r,pTextColor3Depth:d,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:h,textColor:r,textColor1Depth:c,textColor2Depth:r,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:h,textColorWarning:f,textColorError:p,codeTextColor:r,codeColor:m,codeBorder:"1px solid #0000"})},$I={name:"Typography",common:Wt,self:Ug},RI=$I,II={name:"Typography",common:me,self:Ug},EI=II,zI=e=>{const{iconColor:t,primaryColor:r,errorColor:o,textColor2:n,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:d,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:d,borderRadius:u,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:c,itemColorHoverError:fe(o,{alpha:.06}),itemTextColor:n,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${l}`}},MI={name:"Upload",common:me,peers:{Button:sr,Progress:Ng},self(e){const{errorColor:t}=e,r=zI(e);return r.itemColorHoverError=fe(t,{alpha:.09}),r}},AI=MI,OI={name:"Watermark",common:me,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},DI=OI,BI={name:"Row",common:me},FI=BI,LI={name:"Image",common:me,peers:{Tooltip:Bs},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},HI="n-layout-sider",Kg={type:String,default:"static"},jI=L("layout",` - color: var(--n-text-color); - background-color: var(--n-color); - box-sizing: border-box; - position: relative; - z-index: auto; - flex: auto; - overflow: hidden; - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); -`,[L("layout-scroll-container",` - overflow-x: hidden; - box-sizing: border-box; - height: 100%; - `),K("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),NI={embedded:Boolean,position:Kg,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},WI="n-layout";function qg(e){return Ce({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},He.props),NI),setup(t){const r=J(null),o=J(null),{mergedClsPrefixRef:n,inlineThemeDisabled:i}=Ct(t),a=He("Layout","-layout",jI,Hg,t,n);function s(m,v){if(t.nativeScrollbar){const{value:g}=r;g&&(v===void 0?g.scrollTo(m):g.scrollTo(m,v))}else{const{value:g}=o;g&&g.scrollTo(m,v)}}nt(WI,t);let l=0,c=0;const d=m=>{var v;const g=m.target;l=g.scrollLeft,c=g.scrollTop,(v=t.onScroll)===null||v===void 0||v.call(t,m)};hm(()=>{if(t.nativeScrollbar){const m=r.value;m&&(m.scrollTop=c,m.scrollLeft=l)}});const u={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:s},p=N(()=>{const{common:{cubicBezierEaseInOut:m},self:v}=a.value;return{"--n-bezier":m,"--n-color":t.embedded?v.colorEmbedded:v.color,"--n-text-color":v.textColor}}),h=i?Nt("layout",N(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:r,scrollbarInstRef:o,hasSiderStyle:u,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:p,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},f)},render(){var t;const{mergedClsPrefix:r,hasSider:o}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=o?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${r}-layout-content`,`${r}-layout`,`${r}-layout--${this.position}-positioned`];return b("div",{class:i,style:this.cssVars},this.nativeScrollbar?b("div",{ref:"scrollableElRef",class:[`${r}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):b(kd,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,n]}),this.$slots))}})}const VI=qg(!1),UI=qg(!0),KI=L("layout-header",` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - box-sizing: border-box; - width: 100%; - background-color: var(--n-color); - color: var(--n-text-color); -`,[K("absolute-positioned",` - position: absolute; - left: 0; - right: 0; - top: 0; - `),K("bordered",` - border-bottom: solid 1px var(--n-border-color); - `)]),qI={position:Kg,inverted:Boolean,bordered:{type:Boolean,default:!1}},GI=Ce({name:"LayoutHeader",props:Object.assign(Object.assign({},He.props),qI),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ct(e),o=He("Layout","-layout-header",KI,Hg,e,t),n=N(()=>{const{common:{cubicBezierEaseInOut:a},self:s}=o.value,l={"--n-bezier":a};return e.inverted?(l["--n-color"]=s.headerColorInverted,l["--n-text-color"]=s.textColorInverted,l["--n-border-color"]=s.headerBorderColorInverted):(l["--n-color"]=s.headerColor,l["--n-text-color"]=s.textColor,l["--n-border-color"]=s.headerBorderColor),l}),i=r?Nt("layout-header",N(()=>e.inverted?"a":"b"),n,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),YI={extraFontSize:"12px",width:"440px"},XI={name:"Transfer",common:me,peers:{Checkbox:Kn,Scrollbar:ar,Input:Sr,Empty:an,Button:sr},self(e){const{iconColorDisabled:t,iconColor:r,fontWeight:o,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:d,inputColor:u,tableHeaderColor:f,textColor1:p,textColorDisabled:h,textColor2:m,hoverColor:v}=e;return Object.assign(Object.assign({},YI),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:n,borderRadius:d,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:p,titleTextColorDisabled:h,extraTextColor:m,filterDividerColor:"#0000",itemTextColor:m,itemTextColorDisabled:h,itemColorPending:v,titleFontWeight:o,iconColor:r,iconColorDisabled:t})}},JI=XI,Ji="n-menu",zd="n-submenu",Md="n-menu-item-group",Sa=8;function Ad(e){const t=Ae(Ji),{props:r,mergedCollapsedRef:o}=t,n=Ae(zd,null),i=Ae(Md,null),a=N(()=>r.mode==="horizontal"),s=N(()=>a.value?r.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=N(()=>{var f;return Math.max((f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize,r.iconSize)}),c=N(()=>{var f;return!a.value&&e.root&&o.value&&(f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize}),d=N(()=>{if(a.value)return;const{collapsedWidth:f,indent:p,rootIndent:h}=r,{root:m,isGroup:v}=e,g=h===void 0?p:h;return m?o.value?f/2-l.value/2:g:i&&typeof i.paddingLeftRef.value=="number"?p/2+i.paddingLeftRef.value:n&&typeof n.paddingLeftRef.value=="number"?(v?p/2:p)+n.paddingLeftRef.value:0}),u=N(()=>{const{collapsedWidth:f,indent:p,rootIndent:h}=r,{value:m}=l,{root:v}=e;return a.value||!v||!o.value?Sa:(h===void 0?p:h)+m+Sa-(f+m)/2});return{dropdownPlacement:s,activeIconSize:c,maxIconSize:l,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:n}}const Od={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Gg=Object.assign(Object.assign({},Od),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),ZI=Ce({name:"MenuOptionGroup",props:Gg,setup(e){nt(zd,null);const t=Ad(e);nt(Md,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:r,props:o}=Ae(Ji);return function(){const{value:n}=r,i=t.paddingLeft.value,{nodeProps:a}=o,s=a==null?void 0:a(e.tmNode.rawNode);return b("div",{class:`${n}-menu-item-group`,role:"group"},b("div",Object.assign({},s,{class:[`${n}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),Lt(e.title),e.extra?b(st,null," ",Lt(e.extra)):null),b("div",null,e.tmNodes.map(l=>Dd(l,o))))}}}),Yg=Ce({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=Ae(Ji);return{menuProps:t,style:N(()=>{const{paddingLeft:r}=e;return{paddingLeft:r&&`${r}px`}}),iconStyle:N(()=>{const{maxIconSize:r,activeIconSize:o,iconMarginRight:n}=e;return{width:`${r}px`,height:`${r}px`,fontSize:`${o}px`,marginRight:`${n}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:r,renderLabel:o,renderExtra:n,expandIcon:i}}=this,a=r?r(t.rawNode):Lt(this.icon);return b("div",{onClick:s=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,s)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&b("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),b("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:o?o(t.rawNode):Lt(this.title),this.extra||n?b("span",{class:`${e}-menu-item-content-header__extra`}," ",n?n(t.rawNode):Lt(this.extra)):null),this.showArrow?b(Co,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):b(NP,null)}):null)}}),Xg=Object.assign(Object.assign({},Od),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),uc=Ce({name:"Submenu",props:Xg,setup(e){const t=Ad(e),{NMenu:r,NSubmenu:o}=t,{props:n,mergedCollapsedRef:i,mergedThemeRef:a}=r,s=N(()=>{const{disabled:f}=e;return o!=null&&o.mergedDisabledRef.value||n.disabled?!0:f}),l=J(!1);nt(zd,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),nt(Md,null);function c(){const{onClick:f}=e;f&&f()}function d(){s.value||(i.value||r.toggleExpand(e.internalKey),c())}function u(f){l.value=f}return{menuProps:n,mergedTheme:a,doSelect:r.doSelect,inverted:r.invertedRef,isHorizontal:r.isHorizontalRef,mergedClsPrefix:r.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:r.mergedValueRef,childActive:jt(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:r.activePathRef.value.includes(e.internalKey)}),collapsed:N(()=>n.mode==="horizontal"?!1:i.value?!0:!r.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:N(()=>!s.value&&(n.mode==="horizontal"||i.value)),handlePopoverShowChange:u,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:r,renderLabel:o}}=this,n=()=>{const{isHorizontal:a,paddingLeft:s,collapsed:l,mergedDisabled:c,maxIconSize:d,activeIconSize:u,title:f,childActive:p,icon:h,handleClick:m,menuProps:{nodeProps:v},dropdownShow:g,iconMarginRight:k,tmNode:w,mergedClsPrefix:T,isEllipsisPlaceholder:R,extra:B}=this,x=v==null?void 0:v(w.rawNode);return b("div",Object.assign({},x,{class:[`${T}-menu-item`,x==null?void 0:x.class],role:"menuitem"}),b(Yg,{tmNode:w,paddingLeft:s,collapsed:l,disabled:c,iconMarginRight:k,maxIconSize:d,activeIconSize:u,title:f,extra:B,showArrow:!a,childActive:p,clsPrefix:T,icon:h,hover:g,onClick:m,isEllipsisPlaceholder:R}))},i=()=>b(wd,null,{default:()=>{const{tmNodes:a,collapsed:s}=this;return s?null:b("div",{class:`${t}-submenu-children`,role:"menu"},a.map(l=>Dd(l,this.menuProps)))}});return this.root?b(u5,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:r,renderLabel:o}),{default:()=>b("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed,id:this.domId},n(),this.isHorizontal?null:i())}):b("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed,id:this.domId},n(),i())}}),Jg=Object.assign(Object.assign({},Od),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),QI=Ce({name:"MenuOption",props:Jg,setup(e){const t=Ad(e),{NSubmenu:r,NMenu:o}=t,{props:n,mergedClsPrefixRef:i,mergedCollapsedRef:a}=o,s=r?r.mergedDisabledRef:{value:!1},l=N(()=>s.value||e.disabled);function c(u){const{onClick:f}=e;f&&f(u)}function d(u){l.value||(o.doSelect(e.internalKey,e.tmNode.rawNode),c(u))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:o.mergedThemeRef,menuProps:n,dropdownEnabled:jt(()=>e.root&&a.value&&n.mode!=="horizontal"&&!l.value),selected:jt(()=>o.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:r,menuProps:{renderLabel:o,nodeProps:n}}=this,i=n==null?void 0:n(r.rawNode);return b("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),b(nc,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>o?o(r.rawNode):Lt(this.title),trigger:()=>b(Yg,{tmNode:r,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),eE=Ce({name:"MenuDivider",setup(){const e=Ae(Ji),{mergedClsPrefixRef:t,isHorizontalRef:r}=e;return()=>r.value?null:b("div",{class:`${t.value}-menu-divider`})}}),tE=An(Gg),rE=An(Jg),oE=An(Xg);function fc(e){return e.type==="divider"||e.type==="render"}function nE(e){return e.type==="divider"}function Dd(e,t){const{rawNode:r}=e,{show:o}=r;if(o===!1)return null;if(fc(r))return nE(r)?b(eE,Object.assign({key:e.key},r.props)):null;const{labelField:n}=t,{key:i,level:a,isGroup:s}=e,l=Object.assign(Object.assign({},r),{title:r.title||r[n],extra:r.titleExtra||r.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:s});return e.children?e.isGroup?b(ZI,_n(l,tE,{tmNode:e,tmNodes:e.children,key:i})):b(uc,_n(l,oE,{key:i,rawNodes:r[t.childrenField],tmNodes:e.children,tmNode:e})):b(QI,_n(l,rE,{key:i,tmNode:e}))}const Yf=[H("&::before","background-color: var(--n-item-color-hover);"),W("arrow",` - color: var(--n-arrow-color-hover); - `),W("icon",` - color: var(--n-item-icon-color-hover); - `),L("menu-item-content-header",` - color: var(--n-item-text-color-hover); - `,[H("a",` - color: var(--n-item-text-color-hover); - `),W("extra",` - color: var(--n-item-text-color-hover); - `)])],Xf=[W("icon",` - color: var(--n-item-icon-color-hover-horizontal); - `),L("menu-item-content-header",` - color: var(--n-item-text-color-hover-horizontal); - `,[H("a",` - color: var(--n-item-text-color-hover-horizontal); - `),W("extra",` - color: var(--n-item-text-color-hover-horizontal); - `)])],iE=H([L("menu",` - background-color: var(--n-color); - color: var(--n-item-text-color); - overflow: hidden; - transition: background-color .3s var(--n-bezier); - box-sizing: border-box; - font-size: var(--n-font-size); - padding-bottom: 6px; - `,[K("horizontal",` - max-width: 100%; - width: 100%; - display: flex; - overflow: hidden; - padding-bottom: 0; - `,[L("submenu","margin: 0;"),L("menu-item","margin: 0;"),L("menu-item-content",` - padding: 0 20px; - border-bottom: 2px solid #0000; - `,[H("&::before","display: none;"),K("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),L("menu-item-content",[K("selected",[W("icon","color: var(--n-item-icon-color-active-horizontal);"),L("menu-item-content-header",` - color: var(--n-item-text-color-active-horizontal); - `,[H("a","color: var(--n-item-text-color-active-horizontal);"),W("extra","color: var(--n-item-text-color-active-horizontal);")])]),K("child-active",` - border-bottom: 2px solid var(--n-border-color-horizontal); - `,[L("menu-item-content-header",` - color: var(--n-item-text-color-child-active-horizontal); - `,[H("a",` - color: var(--n-item-text-color-child-active-horizontal); - `),W("extra",` - color: var(--n-item-text-color-child-active-horizontal); - `)]),W("icon",` - color: var(--n-item-icon-color-child-active-horizontal); - `)]),xt("disabled",[xt("selected, child-active",[H("&:focus-within",Xf)]),K("selected",[Mo(null,[W("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),L("menu-item-content-header",` - color: var(--n-item-text-color-active-hover-horizontal); - `,[H("a","color: var(--n-item-text-color-active-hover-horizontal);"),W("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),K("child-active",[Mo(null,[W("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),L("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover-horizontal); - `,[H("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),W("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Mo("border-bottom: 2px solid var(--n-border-color-horizontal);",Xf)]),L("menu-item-content-header",[H("a","color: var(--n-item-text-color-horizontal);")])])]),xt("responsive",[L("menu-item-content-header",` - overflow: hidden; - text-overflow: ellipsis; - `)]),K("collapsed",[L("menu-item-content",[K("selected",[H("&::before",` - background-color: var(--n-item-color-active-collapsed) !important; - `)]),L("menu-item-content-header","opacity: 0;"),W("arrow","opacity: 0;"),W("icon","color: var(--n-item-icon-color-collapsed);")])]),L("menu-item",` - height: var(--n-item-height); - margin-top: 6px; - position: relative; - `),L("menu-item-content",` - box-sizing: border-box; - line-height: 1.75; - height: 100%; - display: grid; - grid-template-areas: "icon content arrow"; - grid-template-columns: auto 1fr auto; - align-items: center; - cursor: pointer; - position: relative; - padding-right: 18px; - transition: - background-color .3s var(--n-bezier), - padding-left .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[H("> *","z-index: 1;"),H("&::before",` - z-index: auto; - content: ""; - background-color: #0000; - position: absolute; - left: 8px; - right: 8px; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),K("disabled",` - opacity: .45; - cursor: not-allowed; - `),K("collapsed",[W("arrow","transform: rotate(0);")]),K("selected",[H("&::before","background-color: var(--n-item-color-active);"),W("arrow","color: var(--n-arrow-color-active);"),W("icon","color: var(--n-item-icon-color-active);"),L("menu-item-content-header",` - color: var(--n-item-text-color-active); - `,[H("a","color: var(--n-item-text-color-active);"),W("extra","color: var(--n-item-text-color-active);")])]),K("child-active",[L("menu-item-content-header",` - color: var(--n-item-text-color-child-active); - `,[H("a",` - color: var(--n-item-text-color-child-active); - `),W("extra",` - color: var(--n-item-text-color-child-active); - `)]),W("arrow",` - color: var(--n-arrow-color-child-active); - `),W("icon",` - color: var(--n-item-icon-color-child-active); - `)]),xt("disabled",[xt("selected, child-active",[H("&:focus-within",Yf)]),K("selected",[Mo(null,[W("arrow","color: var(--n-arrow-color-active-hover);"),W("icon","color: var(--n-item-icon-color-active-hover);"),L("menu-item-content-header",` - color: var(--n-item-text-color-active-hover); - `,[H("a","color: var(--n-item-text-color-active-hover);"),W("extra","color: var(--n-item-text-color-active-hover);")])])]),K("child-active",[Mo(null,[W("arrow","color: var(--n-arrow-color-child-active-hover);"),W("icon","color: var(--n-item-icon-color-child-active-hover);"),L("menu-item-content-header",` - color: var(--n-item-text-color-child-active-hover); - `,[H("a","color: var(--n-item-text-color-child-active-hover);"),W("extra","color: var(--n-item-text-color-child-active-hover);")])])]),K("selected",[Mo(null,[H("&::before","background-color: var(--n-item-color-active-hover);")])]),Mo(null,Yf)]),W("icon",` - grid-area: icon; - color: var(--n-item-icon-color); - transition: - color .3s var(--n-bezier), - font-size .3s var(--n-bezier), - margin-right .3s var(--n-bezier); - box-sizing: content-box; - display: inline-flex; - align-items: center; - justify-content: center; - `),W("arrow",` - grid-area: arrow; - font-size: 16px; - color: var(--n-arrow-color); - transform: rotate(180deg); - opacity: 1; - transition: - color .3s var(--n-bezier), - transform 0.2s var(--n-bezier), - opacity 0.2s var(--n-bezier); - `),L("menu-item-content-header",` - grid-area: content; - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - opacity: 1; - white-space: nowrap; - color: var(--n-item-text-color); - `,[H("a",` - outline: none; - text-decoration: none; - transition: color .3s var(--n-bezier); - color: var(--n-item-text-color); - `,[H("&::before",` - content: ""; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - `)]),W("extra",` - font-size: .93em; - color: var(--n-group-text-color); - transition: color .3s var(--n-bezier); - `)])]),L("submenu",` - cursor: pointer; - position: relative; - margin-top: 6px; - `,[L("menu-item-content",` - height: var(--n-item-height); - `),L("submenu-children",` - overflow: hidden; - padding: 0; - `,[sg({duration:".2s"})])]),L("menu-item-group",[L("menu-item-group-title",` - margin-top: 6px; - color: var(--n-group-text-color); - cursor: default; - font-size: .93em; - height: 36px; - display: flex; - align-items: center; - transition: - padding-left .3s var(--n-bezier), - color .3s var(--n-bezier); - `)])]),L("menu-tooltip",[H("a",` - color: inherit; - text-decoration: none; - `)]),L("menu-divider",` - transition: background-color .3s var(--n-bezier); - background-color: var(--n-divider-color); - height: 1px; - margin: 6px 18px; - `)]);function Mo(e,t){return[K("hover",e,t),H("&:hover",e,t)]}const aE=Object.assign(Object.assign({},He.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),sE=Ce({name:"Menu",props:aE,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ct(e),o=He("Menu","-menu",iE,_3,e,t),n=Ae(HI,null),i=N(()=>{var G;const{collapsed:oe}=e;if(oe!==void 0)return oe;if(n){const{collapseModeRef:X,collapsedRef:re}=n;if(X.value==="width")return(G=re.value)!==null&&G!==void 0?G:!1}return!1}),a=N(()=>{const{keyField:G,childrenField:oe,disabledField:X}=e;return Ea(e.items||e.options,{getIgnored(re){return fc(re)},getChildren(re){return re[oe]},getDisabled(re){return re[X]},getKey(re){var xe;return(xe=re[G])!==null&&xe!==void 0?xe:re.name}})}),s=N(()=>new Set(a.value.treeNodes.map(G=>G.key))),{watchProps:l}=e,c=J(null);l!=null&&l.includes("defaultValue")?Lr(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=et(e,"value"),u=On(d,c),f=J([]),p=()=>{f.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(u.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?Lr(p):p();const h=rd(e,["expandedNames","expandedKeys"]),m=On(h,f),v=N(()=>a.value.treeNodes),g=N(()=>a.value.getPath(u.value).keyPath);nt(Ji,{props:e,mergedCollapsedRef:i,mergedThemeRef:o,mergedValueRef:u,mergedExpandedKeysRef:m,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:N(()=>e.mode==="horizontal"),invertedRef:et(e,"inverted"),doSelect:k,toggleExpand:T});function k(G,oe){const{"onUpdate:value":X,onUpdateValue:re,onSelect:xe}=e;re&&Ve(re,G,oe),X&&Ve(X,G,oe),xe&&Ve(xe,G,oe),c.value=G}function w(G){const{"onUpdate:expandedKeys":oe,onUpdateExpandedKeys:X,onExpandedNamesChange:re,onOpenNamesChange:xe}=e;oe&&Ve(oe,G),X&&Ve(X,G),re&&Ve(re,G),xe&&Ve(xe,G),f.value=G}function T(G){const oe=Array.from(m.value),X=oe.findIndex(re=>re===G);if(~X)oe.splice(X,1);else{if(e.accordion&&s.value.has(G)){const re=oe.findIndex(xe=>s.value.has(xe));re>-1&&oe.splice(re,1)}oe.push(G)}w(oe)}const R=G=>{const oe=a.value.getPath(G??u.value,{includeSelf:!1}).keyPath;if(!oe.length)return;const X=Array.from(m.value),re=new Set([...X,...oe]);e.accordion&&s.value.forEach(xe=>{re.has(xe)&&!oe.includes(xe)&&re.delete(xe)}),w(Array.from(re))},B=N(()=>{const{inverted:G}=e,{common:{cubicBezierEaseInOut:oe},self:X}=o.value,{borderRadius:re,borderColorHorizontal:xe,fontSize:Te,itemHeight:$e,dividerColor:Ye}=X,Y={"--n-divider-color":Ye,"--n-bezier":oe,"--n-font-size":Te,"--n-border-color-horizontal":xe,"--n-border-radius":re,"--n-item-height":$e};return G?(Y["--n-group-text-color"]=X.groupTextColorInverted,Y["--n-color"]=X.colorInverted,Y["--n-item-text-color"]=X.itemTextColorInverted,Y["--n-item-text-color-hover"]=X.itemTextColorHoverInverted,Y["--n-item-text-color-active"]=X.itemTextColorActiveInverted,Y["--n-item-text-color-child-active"]=X.itemTextColorChildActiveInverted,Y["--n-item-text-color-child-active-hover"]=X.itemTextColorChildActiveInverted,Y["--n-item-text-color-active-hover"]=X.itemTextColorActiveHoverInverted,Y["--n-item-icon-color"]=X.itemIconColorInverted,Y["--n-item-icon-color-hover"]=X.itemIconColorHoverInverted,Y["--n-item-icon-color-active"]=X.itemIconColorActiveInverted,Y["--n-item-icon-color-active-hover"]=X.itemIconColorActiveHoverInverted,Y["--n-item-icon-color-child-active"]=X.itemIconColorChildActiveInverted,Y["--n-item-icon-color-child-active-hover"]=X.itemIconColorChildActiveHoverInverted,Y["--n-item-icon-color-collapsed"]=X.itemIconColorCollapsedInverted,Y["--n-item-text-color-horizontal"]=X.itemTextColorHorizontalInverted,Y["--n-item-text-color-hover-horizontal"]=X.itemTextColorHoverHorizontalInverted,Y["--n-item-text-color-active-horizontal"]=X.itemTextColorActiveHorizontalInverted,Y["--n-item-text-color-child-active-horizontal"]=X.itemTextColorChildActiveHorizontalInverted,Y["--n-item-text-color-child-active-hover-horizontal"]=X.itemTextColorChildActiveHoverHorizontalInverted,Y["--n-item-text-color-active-hover-horizontal"]=X.itemTextColorActiveHoverHorizontalInverted,Y["--n-item-icon-color-horizontal"]=X.itemIconColorHorizontalInverted,Y["--n-item-icon-color-hover-horizontal"]=X.itemIconColorHoverHorizontalInverted,Y["--n-item-icon-color-active-horizontal"]=X.itemIconColorActiveHorizontalInverted,Y["--n-item-icon-color-active-hover-horizontal"]=X.itemIconColorActiveHoverHorizontalInverted,Y["--n-item-icon-color-child-active-horizontal"]=X.itemIconColorChildActiveHorizontalInverted,Y["--n-item-icon-color-child-active-hover-horizontal"]=X.itemIconColorChildActiveHoverHorizontalInverted,Y["--n-arrow-color"]=X.arrowColorInverted,Y["--n-arrow-color-hover"]=X.arrowColorHoverInverted,Y["--n-arrow-color-active"]=X.arrowColorActiveInverted,Y["--n-arrow-color-active-hover"]=X.arrowColorActiveHoverInverted,Y["--n-arrow-color-child-active"]=X.arrowColorChildActiveInverted,Y["--n-arrow-color-child-active-hover"]=X.arrowColorChildActiveHoverInverted,Y["--n-item-color-hover"]=X.itemColorHoverInverted,Y["--n-item-color-active"]=X.itemColorActiveInverted,Y["--n-item-color-active-hover"]=X.itemColorActiveHoverInverted,Y["--n-item-color-active-collapsed"]=X.itemColorActiveCollapsedInverted):(Y["--n-group-text-color"]=X.groupTextColor,Y["--n-color"]=X.color,Y["--n-item-text-color"]=X.itemTextColor,Y["--n-item-text-color-hover"]=X.itemTextColorHover,Y["--n-item-text-color-active"]=X.itemTextColorActive,Y["--n-item-text-color-child-active"]=X.itemTextColorChildActive,Y["--n-item-text-color-child-active-hover"]=X.itemTextColorChildActiveHover,Y["--n-item-text-color-active-hover"]=X.itemTextColorActiveHover,Y["--n-item-icon-color"]=X.itemIconColor,Y["--n-item-icon-color-hover"]=X.itemIconColorHover,Y["--n-item-icon-color-active"]=X.itemIconColorActive,Y["--n-item-icon-color-active-hover"]=X.itemIconColorActiveHover,Y["--n-item-icon-color-child-active"]=X.itemIconColorChildActive,Y["--n-item-icon-color-child-active-hover"]=X.itemIconColorChildActiveHover,Y["--n-item-icon-color-collapsed"]=X.itemIconColorCollapsed,Y["--n-item-text-color-horizontal"]=X.itemTextColorHorizontal,Y["--n-item-text-color-hover-horizontal"]=X.itemTextColorHoverHorizontal,Y["--n-item-text-color-active-horizontal"]=X.itemTextColorActiveHorizontal,Y["--n-item-text-color-child-active-horizontal"]=X.itemTextColorChildActiveHorizontal,Y["--n-item-text-color-child-active-hover-horizontal"]=X.itemTextColorChildActiveHoverHorizontal,Y["--n-item-text-color-active-hover-horizontal"]=X.itemTextColorActiveHoverHorizontal,Y["--n-item-icon-color-horizontal"]=X.itemIconColorHorizontal,Y["--n-item-icon-color-hover-horizontal"]=X.itemIconColorHoverHorizontal,Y["--n-item-icon-color-active-horizontal"]=X.itemIconColorActiveHorizontal,Y["--n-item-icon-color-active-hover-horizontal"]=X.itemIconColorActiveHoverHorizontal,Y["--n-item-icon-color-child-active-horizontal"]=X.itemIconColorChildActiveHorizontal,Y["--n-item-icon-color-child-active-hover-horizontal"]=X.itemIconColorChildActiveHoverHorizontal,Y["--n-arrow-color"]=X.arrowColor,Y["--n-arrow-color-hover"]=X.arrowColorHover,Y["--n-arrow-color-active"]=X.arrowColorActive,Y["--n-arrow-color-active-hover"]=X.arrowColorActiveHover,Y["--n-arrow-color-child-active"]=X.arrowColorChildActive,Y["--n-arrow-color-child-active-hover"]=X.arrowColorChildActiveHover,Y["--n-item-color-hover"]=X.itemColorHover,Y["--n-item-color-active"]=X.itemColorActive,Y["--n-item-color-active-hover"]=X.itemColorActiveHover,Y["--n-item-color-active-collapsed"]=X.itemColorActiveCollapsed),Y}),x=r?Nt("menu",N(()=>e.inverted?"a":"b"),B,e):void 0,S=Mn(),z=J(null),O=J(null);let Q=!0;const A=()=>{var G;Q?Q=!1:(G=z.value)===null||G===void 0||G.sync({showAllItemsBeforeCalculate:!0})};function y(){return document.getElementById(S)}const M=J(-1);function P(G){M.value=e.options.length-G}function I(G){G||(M.value=-1)}const _=N(()=>{const G=M.value;return{children:G===-1?[]:e.options.slice(G)}}),V=N(()=>{const{childrenField:G,disabledField:oe,keyField:X}=e;return Ea([_.value],{getIgnored(re){return fc(re)},getChildren(re){return re[G]},getDisabled(re){return re[oe]},getKey(re){var xe;return(xe=re[X])!==null&&xe!==void 0?xe:re.name}})}),ne=N(()=>Ea([{}]).treeNodes[0]);function de(){var G;if(M.value===-1)return b(uc,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:ne.value,domId:S,isEllipsisPlaceholder:!0});const oe=V.value.treeNodes[0],X=g.value,re=!!(!((G=oe.children)===null||G===void 0)&&G.some(xe=>X.includes(xe.key)));return b(uc,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:re,tmNode:oe,domId:S,rawNodes:oe.rawNode.children||[],tmNodes:oe.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:f,mergedExpandedKeys:m,uncontrolledValue:c,mergedValue:u,activePath:g,tmNodes:v,mergedTheme:o,mergedCollapsed:i,cssVars:r?void 0:B,themeClass:x==null?void 0:x.themeClass,overflowRef:z,counterRef:O,updateCounter:()=>{},onResize:A,onUpdateOverflow:I,onUpdateCount:P,renderCounter:de,getCounter:y,onRender:x==null?void 0:x.onRender,showOption:R,deriveResponsiveState:A}},render(){const{mergedClsPrefix:e,mode:t,themeClass:r,onRender:o}=this;o==null||o();const n=()=>this.tmNodes.map(l=>Dd(l,this.$props)),a=t==="horizontal"&&this.responsive,s=()=>b("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,r,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},a?b(g1,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:n,counter:this.renderCounter}):n());return a?b(Qa,{onResize:this.onResize},{default:s}):s()}}),Zg={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},Qg="n-message-api",ev="n-message-provider",lE=H([L("message-wrapper",` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[sg({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),L("message",` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[W("content",` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),W("icon",` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[["default","info","success","warning","error","loading"].map(e=>K(`${e}-type`,[H("> *",` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),H("> *",` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[Ai()])]),W("close",` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[H("&:hover",` - color: var(--n-close-icon-color-hover); - `),H("&:active",` - color: var(--n-close-icon-color-pressed); - `)])]),L("message-container",` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[K("top",` - top: 12px; - left: 0; - right: 0; - `),K("top-left",` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),K("top-right",` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),K("bottom",` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),K("bottom-left",` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),K("bottom-right",` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),cE={info:()=>b(Vm,null),success:()=>b(Um,null),warning:()=>b(Km,null),error:()=>b(Wm,null),default:()=>null},dE=Ce({name:"Message",props:Object.assign(Object.assign({},Zg),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:r}=Ct(e),{props:o,mergedClsPrefixRef:n}=Ae(ev),i=_o("Message",r,n),a=He("Message","-message",lE,r3,o,n),s=N(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:u,margin:f,maxWidth:p,iconMargin:h,closeMargin:m,closeSize:v,iconSize:g,fontSize:k,lineHeight:w,borderRadius:T,iconColorInfo:R,iconColorSuccess:B,iconColorWarning:x,iconColorError:S,iconColorLoading:z,closeIconSize:O,closeBorderRadius:Q,[ve("textColor",c)]:A,[ve("boxShadow",c)]:y,[ve("color",c)]:M,[ve("closeColorHover",c)]:P,[ve("closeColorPressed",c)]:I,[ve("closeIconColor",c)]:_,[ve("closeIconColorPressed",c)]:V,[ve("closeIconColorHover",c)]:ne}}=a.value;return{"--n-bezier":d,"--n-margin":f,"--n-padding":u,"--n-max-width":p,"--n-font-size":k,"--n-icon-margin":h,"--n-icon-size":g,"--n-close-icon-size":O,"--n-close-border-radius":Q,"--n-close-size":v,"--n-close-margin":m,"--n-text-color":A,"--n-color":M,"--n-box-shadow":y,"--n-icon-color-info":R,"--n-icon-color-success":B,"--n-icon-color-warning":x,"--n-icon-color-error":S,"--n-icon-color-loading":z,"--n-close-color-hover":P,"--n-close-color-pressed":I,"--n-close-icon-color":_,"--n-close-icon-color-pressed":V,"--n-close-icon-color-hover":ne,"--n-line-height":w,"--n-border-radius":T}}),l=t?Nt("message",N(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:o,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:o.placement}},render(){const{render:e,type:t,closable:r,content:o,mergedClsPrefix:n,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:d}=this;s==null||s();let u;return b("div",{class:[`${n}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):b("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(u=uE(l,t,n))&&d?b("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},b(As,null,{default:()=>u})):null,b("div",{class:`${n}-message__content`},Lt(o)),r?b(Os,{clsPrefix:n,class:`${n}-message__close`,onClick:c,absolute:!0}):null))}});function uE(e,t,r){if(typeof e=="function")return e();{const o=t==="loading"?b(_d,{clsPrefix:r,strokeWidth:24,scale:.85}):cE[t]();return o?b(Co,{clsPrefix:r,key:t},{default:()=>o}):null}}const fE=Ce({name:"MessageEnvironment",props:Object.assign(Object.assign({},Zg),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const r=J(!0);Ft(()=>{o()});function o(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function n(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&o()}function a(){const{onHide:d}=e;r.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function s(){const{onClose:d}=e;d&&d(),a()}function l(){const{onAfterLeave:d,onInternalAfterLeave:u,onAfterHide:f,internalKey:p}=e;d&&d(),u&&u(p),f&&f()}function c(){a()}return{show:r,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:n,deactivate:c}},render(){return b(wd,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?b(dE,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),hE=Object.assign(Object.assign({},He.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),pE=Ce({name:"MessageProvider",props:hE,setup(e){const{mergedClsPrefixRef:t}=Ct(e),r=J([]),o=J({}),n={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:s};nt(ev,{props:e,mergedClsPrefixRef:t}),nt(Qg,n);function i(l,c){const d=Mn(),u=Kr(Object.assign(Object.assign({},c),{content:l,key:d,destroy:()=>{var p;(p=o.value[d])===null||p===void 0||p.hide()}})),{max:f}=e;return f&&r.value.length>=f&&r.value.shift(),r.value.push(u),u}function a(l){r.value.splice(r.value.findIndex(c=>c.key===l),1),delete o.value[l]}function s(){Object.values(o.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:o,messageList:r,handleAfterLeave:a},n)},render(){var e,t,r;return b(st,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?b(Zc,{to:(r=this.to)!==null&&r!==void 0?r:"body"},b("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(o=>b(fE,Object.assign({ref:n=>{n&&(this.messageRefs[o.key]=n)},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave},Hp(o,["destroy"],void 0),{duration:o.duration===void 0?this.duration:o.duration,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover,closable:o.closable===void 0?this.closable:o.closable}))))):null)}});function tv(){const e=Ae(Qg,null);return e===null&&td("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Ls="n-notification-provider",mE=Ce({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:r}=Ae(Ls),o=J(null);return Lr(()=>{var n,i;r.value>0?(n=o==null?void 0:o.value)===null||n===void 0||n.classList.add("transitioning"):(i=o==null?void 0:o.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:o,mergedTheme:e,mergedClsPrefix:t,transitioning:r}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:r,mergedTheme:o,placement:n}=this;return b("div",{ref:"selfRef",class:[`${r}-notification-container`,t&&`${r}-notification-container--scrollable`,`${r}-notification-container--${n}`]},t?b(kd,{theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),gE={info:()=>b(Vm,null),success:()=>b(Um,null),warning:()=>b(Km,null),error:()=>b(Wm,null),default:()=>null},Bd={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},vE=An(Bd),bE=Ce({name:"Notification",props:Bd,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,props:o}=Ae(Ls),{inlineThemeDisabled:n,mergedRtlRef:i}=Ct(),a=_o("Notification",i,t),s=N(()=>{const{type:c}=e,{self:{color:d,textColor:u,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:h,headerTextColor:m,descriptionTextColor:v,actionTextColor:g,borderRadius:k,headerFontWeight:w,boxShadow:T,lineHeight:R,fontSize:B,closeMargin:x,closeSize:S,width:z,padding:O,closeIconSize:Q,closeBorderRadius:A,closeColorHover:y,closeColorPressed:M,titleFontSize:P,metaFontSize:I,descriptionFontSize:_,[ve("iconColor",c)]:V},common:{cubicBezierEaseOut:ne,cubicBezierEaseIn:de,cubicBezierEaseInOut:G}}=r.value,{left:oe,right:X,top:re,bottom:xe}=Ts(O);return{"--n-color":d,"--n-font-size":B,"--n-text-color":u,"--n-description-text-color":v,"--n-action-text-color":g,"--n-title-text-color":m,"--n-title-font-weight":w,"--n-bezier":G,"--n-bezier-ease-out":ne,"--n-bezier-ease-in":de,"--n-border-radius":k,"--n-box-shadow":T,"--n-close-border-radius":A,"--n-close-color-hover":y,"--n-close-color-pressed":M,"--n-close-icon-color":f,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":h,"--n-line-height":R,"--n-icon-color":V,"--n-close-margin":x,"--n-close-size":S,"--n-close-icon-size":Q,"--n-width":z,"--n-padding-left":oe,"--n-padding-right":X,"--n-padding-top":re,"--n-padding-bottom":xe,"--n-title-font-size":P,"--n-meta-font-size":I,"--n-description-font-size":_}}),l=n?Nt("notification",N(()=>e.type[0]),s,o):void 0;return{mergedClsPrefix:t,showAvatar:N(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},b("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?b("div",{class:`${t}-notification__avatar`},this.avatar?Lt(this.avatar):this.type!=="default"?b(Co,{clsPrefix:t},{default:()=>gE[this.type]()}):null):null,this.closable?b(Os,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,b("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?b("div",{class:`${t}-notification-main__header`},Lt(this.title)):null,this.description?b("div",{class:`${t}-notification-main__description`},Lt(this.description)):null,this.content?b("pre",{class:`${t}-notification-main__content`},Lt(this.content)):null,this.meta||this.action?b("div",{class:`${t}-notification-main-footer`},this.meta?b("div",{class:`${t}-notification-main-footer__meta`},Lt(this.meta)):null,this.action?b("div",{class:`${t}-notification-main-footer__action`},Lt(this.action)):null):null)))}}),xE=Object.assign(Object.assign({},Bd),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),yE=Ce({name:"NotificationEnvironment",props:Object.assign(Object.assign({},xE),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Ae(Ls),r=J(!0);let o=null;function n(){r.value=!1,o&&window.clearTimeout(o)}function i(h){t.value++,nr(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function a(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:m,onAfterShow:v}=e;m&&m(),v&&v()}function s(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function l(h){const{onHide:m}=e;m&&m(),h.style.maxHeight="0",h.offsetHeight}function c(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:m,onAfterHide:v,internalKey:g}=e;h&&h(),m(g),v&&v()}function d(){const{duration:h}=e;h&&(o=window.setTimeout(n,h))}function u(h){h.currentTarget===h.target&&o!==null&&(window.clearTimeout(o),o=null)}function f(h){h.currentTarget===h.target&&d()}function p(){const{onClose:h}=e;h?Promise.resolve(h()).then(m=>{m!==!1&&n()}):n()}return Ft(()=>{e.duration&&(o=window.setTimeout(n,e.duration))}),{show:r,hide:n,handleClose:p,handleAfterLeave:c,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:u,handleMouseleave:f}},render(){return b(Tr,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?b(bE,Object.assign({},_n(this.$props,vE),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),CE=H([L("notification-container",` - z-index: 4000; - position: fixed; - overflow: visible; - display: flex; - flex-direction: column; - align-items: flex-end; - `,[H(">",[L("scrollbar",` - width: initial; - overflow: visible; - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[H(">",[L("scrollbar-container",` - height: -moz-fit-content !important; - height: fit-content !important; - max-height: 100vh !important; - `,[L("scrollbar-content",` - padding-top: 12px; - padding-bottom: 33px; - `)])])])]),K("top, top-right, top-left",` - top: 12px; - `,[H("&.transitioning >",[L("scrollbar",[H(">",[L("scrollbar-container",` - min-height: 100vh !important; - `)])])])]),K("bottom, bottom-right, bottom-left",` - bottom: 12px; - `,[H(">",[L("scrollbar",[H(">",[L("scrollbar-container",[L("scrollbar-content",` - padding-bottom: 12px; - `)])])])]),L("notification-wrapper",` - display: flex; - align-items: flex-end; - margin-bottom: 0; - margin-top: 12px; - `)]),K("top, bottom",` - left: 50%; - transform: translateX(-50%); - `,[L("notification-wrapper",[H("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: scale(0.85); - `),H("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: scale(1); - `)])]),K("top",[L("notification-wrapper",` - transform-origin: top center; - `)]),K("bottom",[L("notification-wrapper",` - transform-origin: bottom center; - `)]),K("top-right, bottom-right",[L("notification",` - margin-left: 28px; - margin-right: 16px; - `)]),K("top-left, bottom-left",[L("notification",` - margin-left: 16px; - margin-right: 28px; - `)]),K("top-right",` - right: 0; - `,[wa("top-right")]),K("top-left",` - left: 0; - `,[wa("top-left")]),K("bottom-right",` - right: 0; - `,[wa("bottom-right")]),K("bottom-left",` - left: 0; - `,[wa("bottom-left")]),K("scrollable",[K("top-right",` - top: 0; - `),K("top-left",` - top: 0; - `),K("bottom-right",` - bottom: 0; - `),K("bottom-left",` - bottom: 0; - `)]),L("notification-wrapper",` - margin-bottom: 12px; - `,[H("&.notification-transition-enter-from, &.notification-transition-leave-to",` - opacity: 0; - margin-top: 0 !important; - margin-bottom: 0 !important; - `),H("&.notification-transition-leave-from, &.notification-transition-enter-to",` - opacity: 1; - `),H("&.notification-transition-leave-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-in), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `),H("&.notification-transition-enter-active",` - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier-ease-out), - max-height .3s var(--n-bezier), - margin-top .3s linear, - margin-bottom .3s linear, - box-shadow .3s var(--n-bezier); - `)]),L("notification",` - background-color: var(--n-color); - color: var(--n-text-color); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - font-family: inherit; - font-size: var(--n-font-size); - font-weight: 400; - position: relative; - display: flex; - overflow: hidden; - flex-shrink: 0; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - width: var(--n-width); - max-width: calc(100vw - 16px - 16px); - border-radius: var(--n-border-radius); - box-shadow: var(--n-box-shadow); - box-sizing: border-box; - opacity: 1; - `,[W("avatar",[L("icon",` - color: var(--n-icon-color); - `),L("base-icon",` - color: var(--n-icon-color); - `)]),K("show-avatar",[L("notification-main",` - margin-left: 40px; - width: calc(100% - 40px); - `)]),K("closable",[L("notification-main",[H("> *:first-child",` - padding-right: 20px; - `)]),W("close",` - position: absolute; - top: 0; - right: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),W("avatar",` - position: absolute; - top: var(--n-padding-top); - left: var(--n-padding-left); - width: 28px; - height: 28px; - font-size: 28px; - display: flex; - align-items: center; - justify-content: center; - `,[L("icon","transition: color .3s var(--n-bezier);")]),L("notification-main",` - padding-top: var(--n-padding-top); - padding-bottom: var(--n-padding-bottom); - box-sizing: border-box; - display: flex; - flex-direction: column; - margin-left: 8px; - width: calc(100% - 8px); - `,[L("notification-main-footer",` - display: flex; - align-items: center; - justify-content: space-between; - margin-top: 12px; - `,[W("meta",` - font-size: var(--n-meta-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),W("action",` - cursor: pointer; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-action-text-color); - `)]),W("header",` - font-weight: var(--n-title-font-weight); - font-size: var(--n-title-font-size); - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-title-text-color); - `),W("description",` - margin-top: 8px; - font-size: var(--n-description-font-size); - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-description-text-color); - `),W("content",` - line-height: var(--n-line-height); - margin: 12px 0 0 0; - font-family: inherit; - white-space: pre-wrap; - word-wrap: break-word; - transition: color .3s var(--n-bezier-ease-out); - color: var(--n-text-color); - `,[H("&:first-child","margin: 0;")])])])])]);function wa(e){const r=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return L("notification-wrapper",[H("&.notification-transition-enter-from, &.notification-transition-leave-to",` - transform: translate(${r}, 0); - `),H("&.notification-transition-leave-from, &.notification-transition-enter-to",` - transform: translate(0, 0); - `)])}const rv="n-notification-api",SE=Object.assign(Object.assign({},He.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),wE=Ce({name:"NotificationProvider",props:SE,setup(e){const{mergedClsPrefixRef:t}=Ct(e),r=J([]),o={},n=new Set;function i(p){const h=Mn(),m=()=>{n.add(h),o[h]&&o[h].hide()},v=Kr(Object.assign(Object.assign({},p),{key:h,destroy:m,hide:m,deactivate:m})),{max:g}=e;if(g&&r.value.length-n.size>=g){let k=!1,w=0;for(const T of r.value){if(!n.has(T.key)){o[T.key]&&(T.destroy(),k=!0);break}w++}k||r.value.splice(w,1)}return r.value.push(v),v}const a=["info","success","warning","error"].map(p=>h=>i(Object.assign(Object.assign({},h),{type:p})));function s(p){n.delete(p),r.value.splice(r.value.findIndex(h=>h.key===p),1)}const l=He("Notification","-notification",CE,JR,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:u,destroyAll:f},d=J(0);nt(rv,c),nt(Ls,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:d});function u(p){return i(p)}function f(){Object.values(r.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:r,notificationRefs:o,handleAfterLeave:s},c)},render(){var e,t,r;const{placement:o}=this;return b(st,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?b(Zc,{to:(r=this.to)!==null&&r!==void 0?r:"body"},b(mE,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&o!=="top"&&o!=="bottom",placement:o},{default:()=>this.notificationList.map(n=>b(yE,Object.assign({ref:i=>{const a=n.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Hp(n,["destroy","hide","deactivate"]),{internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover})))})):null)}});function _E(){const e=Ae(rv,null);return e===null&&td("use-notification","No outer `n-notification-provider` found."),e}const PE={name:"QrCode",common:me,self:e=>({borderRadius:e.borderRadius})},TE=PE,kE={name:"Skeleton",common:me,self(e){const{heightSmall:t,heightMedium:r,heightLarge:o,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:r,heightLarge:o}}};function Jf(e){return window.TouchEvent&&e instanceof window.TouchEvent}function Zf(){const e=new Map,t=r=>o=>{e.set(r,o)};return dp(()=>{e.clear()}),[e,t]}const $E=H([L("slider",` - display: block; - padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; - position: relative; - z-index: 0; - width: 100%; - cursor: pointer; - user-select: none; - -webkit-user-select: none; - `,[K("reverse",[L("slider-handles",[L("slider-handle-wrapper",` - transform: translate(50%, -50%); - `)]),L("slider-dots",[L("slider-dot",` - transform: translateX(50%, -50%); - `)]),K("vertical",[L("slider-handles",[L("slider-handle-wrapper",` - transform: translate(-50%, -50%); - `)]),L("slider-marks",[L("slider-mark",` - transform: translateY(calc(-50% + var(--n-dot-height) / 2)); - `)]),L("slider-dots",[L("slider-dot",` - transform: translateX(-50%) translateY(0); - `)])])]),K("vertical",` - padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); - width: var(--n-rail-width-vertical); - height: 100%; - `,[L("slider-handles",` - top: calc(var(--n-handle-size) / 2); - right: 0; - bottom: calc(var(--n-handle-size) / 2); - left: 0; - `,[L("slider-handle-wrapper",` - top: unset; - left: 50%; - transform: translate(-50%, 50%); - `)]),L("slider-rail",` - height: 100%; - `,[W("fill",` - top: unset; - right: 0; - bottom: unset; - left: 0; - `)]),K("with-mark",` - width: var(--n-rail-width-vertical); - margin: 0 32px 0 8px; - `),L("slider-marks",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 22px; - font-size: var(--n-mark-font-size); - `,[L("slider-mark",` - transform: translateY(50%); - white-space: nowrap; - `)]),L("slider-dots",` - top: calc(var(--n-handle-size) / 2); - right: unset; - bottom: calc(var(--n-handle-size) / 2); - left: 50%; - `,[L("slider-dot",` - transform: translateX(-50%) translateY(50%); - `)])]),K("disabled",` - cursor: not-allowed; - opacity: var(--n-opacity-disabled); - `,[L("slider-handle",` - cursor: not-allowed; - `)]),K("with-mark",` - width: 100%; - margin: 8px 0 32px 0; - `),H("&:hover",[L("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[W("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),L("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),K("active",[L("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[W("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),L("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),L("slider-marks",` - position: absolute; - top: 18px; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[L("slider-mark",` - position: absolute; - transform: translateX(-50%); - white-space: nowrap; - `)]),L("slider-rail",` - width: 100%; - position: relative; - height: var(--n-rail-height); - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - border-radius: calc(var(--n-rail-height) / 2); - `,[W("fill",` - position: absolute; - top: 0; - bottom: 0; - border-radius: calc(var(--n-rail-height) / 2); - transition: background-color .3s var(--n-bezier); - background-color: var(--n-fill-color); - `)]),L("slider-handles",` - position: absolute; - top: 0; - right: calc(var(--n-handle-size) / 2); - bottom: 0; - left: calc(var(--n-handle-size) / 2); - `,[L("slider-handle-wrapper",` - outline: none; - position: absolute; - top: 50%; - transform: translate(-50%, -50%); - cursor: pointer; - display: flex; - `,[L("slider-handle",` - height: var(--n-handle-size); - width: var(--n-handle-size); - border-radius: 50%; - overflow: hidden; - transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); - background-color: var(--n-handle-color); - box-shadow: var(--n-handle-box-shadow); - `,[H("&:hover",` - box-shadow: var(--n-handle-box-shadow-hover); - `)]),H("&:focus",[L("slider-handle",` - box-shadow: var(--n-handle-box-shadow-focus); - `,[H("&:hover",` - box-shadow: var(--n-handle-box-shadow-active); - `)])])])]),L("slider-dots",` - position: absolute; - top: 50%; - left: calc(var(--n-handle-size) / 2); - right: calc(var(--n-handle-size) / 2); - `,[K("transition-disabled",[L("slider-dot","transition: none;")]),L("slider-dot",` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - transform: translate(-50%, -50%); - height: var(--n-dot-height); - width: var(--n-dot-width); - border-radius: var(--n-dot-border-radius); - overflow: hidden; - box-sizing: border-box; - border: var(--n-dot-border); - background-color: var(--n-dot-color); - `,[K("active","border: var(--n-dot-border-active);")])])]),L("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[rc()]),L("slider-handle-indicator",` - font-size: var(--n-font-size); - padding: 6px 10px; - border-radius: var(--n-indicator-border-radius); - color: var(--n-indicator-text-color); - background-color: var(--n-indicator-color); - box-shadow: var(--n-indicator-box-shadow); - `,[K("top",` - margin-bottom: 12px; - `),K("right",` - margin-left: 12px; - `),K("bottom",` - margin-top: 12px; - `),K("left",` - margin-right: 12px; - `),rc()]),Gp(L("slider",[L("slider-dot","background-color: var(--n-dot-color-modal);")])),Yp(L("slider",[L("slider-dot","background-color: var(--n-dot-color-popover);")]))]),RE=0,IE=Object.assign(Object.assign({},He.props),{to:Yr.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),EE=Ce({name:"Slider",props:IE,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:o}=Ct(e),n=He("Slider","-slider",$E,K3,e,t),i=J(null),[a,s]=Zf(),[l,c]=Zf(),d=J(new Set),u=cd(e),{mergedDisabledRef:f}=u,p=N(()=>{const{step:F}=e;if(Number(F)<=0||F==="mark")return 0;const U=F.toString();let Z=0;return U.includes(".")&&(Z=U.length-U.indexOf(".")-1),Z}),h=J(e.defaultValue),m=et(e,"value"),v=On(m,h),g=N(()=>{const{value:F}=v;return(e.range?F:[F]).map(oe)}),k=N(()=>g.value.length>2),w=N(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),T=N(()=>{const{marks:F}=e;return F?Object.keys(F).map(parseFloat):null}),R=J(-1),B=J(-1),x=J(-1),S=J(!1),z=J(!1),O=N(()=>{const{vertical:F,reverse:U}=e;return F?U?"top":"bottom":U?"right":"left"}),Q=N(()=>{if(k.value)return;const F=g.value,U=X(e.range?Math.min(...F):e.min),Z=X(e.range?Math.max(...F):F[0]),{value:pe}=O;return e.vertical?{[pe]:`${U}%`,height:`${Z-U}%`}:{[pe]:`${U}%`,width:`${Z-U}%`}}),A=N(()=>{const F=[],{marks:U}=e;if(U){const Z=g.value.slice();Z.sort((Le,Xe)=>Le-Xe);const{value:pe}=O,{value:Se}=k,{range:Ie}=e,je=Se?()=>!1:Le=>Ie?Le>=Z[0]&&Le<=Z[Z.length-1]:Le<=Z[0];for(const Le of Object.keys(U)){const Xe=Number(Le);F.push({active:je(Xe),label:U[Le],style:{[pe]:`${X(Xe)}%`}})}}return F});function y(F,U){const Z=X(F),{value:pe}=O;return{[pe]:`${Z}%`,zIndex:U===R.value?1:0}}function M(F){return e.showTooltip||x.value===F||R.value===F&&S.value}function P(F){return S.value?!(R.value===F&&B.value===F):!0}function I(F){var U;~F&&(R.value=F,(U=a.get(F))===null||U===void 0||U.focus())}function _(){l.forEach((F,U)=>{M(U)&&F.syncPosition()})}function V(F){const{"onUpdate:value":U,onUpdateValue:Z}=e,{nTriggerFormInput:pe,nTriggerFormChange:Se}=u;Z&&Ve(Z,F),U&&Ve(U,F),h.value=F,pe(),Se()}function ne(F){const{range:U}=e;if(U){if(Array.isArray(F)){const{value:Z}=g;F.join()!==Z.join()&&V(F)}}else Array.isArray(F)||g.value[0]!==F&&V(F)}function de(F,U){if(e.range){const Z=g.value.slice();Z.splice(U,1,F),ne(Z)}else ne(F)}function G(F,U,Z){const pe=Z!==void 0;Z||(Z=F-U>0?1:-1);const Se=T.value||[],{step:Ie}=e;if(Ie==="mark"){const Xe=Te(F,Se.concat(U),pe?Z:void 0);return Xe?Xe.value:U}if(Ie<=0)return U;const{value:je}=p;let Le;if(pe){const Xe=Number((U/Ie).toFixed(je)),kt=Math.floor(Xe),wr=Xe>kt?kt:kt-1,Mt=Xe0)&&(pe===null||je0?1:-1),U)}function Oe(F){var U,Z;if(f.value||!Jf(F)&&F.button!==RE)return;const pe=$e(F);if(pe===void 0)return;const Se=g.value.slice(),Ie=e.range?(Z=(U=Te(pe,Se))===null||U===void 0?void 0:U.index)!==null&&Z!==void 0?Z:-1:0;Ie!==-1&&(F.preventDefault(),I(Ie),De(),de(G(pe,g.value[Ie]),Ie))}function De(){S.value||(S.value=!0,e.onDragstart&&Ve(e.onDragstart),ft("touchend",document,E),ft("mouseup",document,E),ft("touchmove",document,C),ft("mousemove",document,C))}function We(){S.value&&(S.value=!1,e.onDragend&&Ve(e.onDragend),ot("touchend",document,E),ot("mouseup",document,E),ot("touchmove",document,C),ot("mousemove",document,C))}function C(F){const{value:U}=R;if(!S.value||U===-1){We();return}const Z=$e(F);Z!==void 0&&de(G(Z,g.value[U]),U)}function E(){We()}function q(F){R.value=F,f.value||(x.value=F)}function ae(F){R.value===F&&(R.value=-1,We()),x.value===F&&(x.value=-1)}function se(F){x.value=F}function he(F){x.value===F&&(x.value=-1)}tt(R,(F,U)=>void nr(()=>B.value=U)),tt(v,()=>{if(e.marks){if(z.value)return;z.value=!0,nr(()=>{z.value=!1})}nr(_)}),Qt(()=>{We()});const ge=N(()=>{const{self:{markFontSize:F,railColor:U,railColorHover:Z,fillColor:pe,fillColorHover:Se,handleColor:Ie,opacityDisabled:je,dotColor:Le,dotColorModal:Xe,handleBoxShadow:kt,handleBoxShadowHover:wr,handleBoxShadowActive:Mt,handleBoxShadowFocus:Po,dotBorder:ce,dotBoxShadow:be,railHeight:Ee,railWidthVertical:rt,handleSize:mt,dotHeight:At,dotWidth:lr,dotBorderRadius:lt,fontSize:Gt,dotBorderActive:jr,dotColorPopover:ta},common:{cubicBezierEaseInOut:Ws}}=n.value;return{"--n-bezier":Ws,"--n-dot-border":ce,"--n-dot-border-active":jr,"--n-dot-border-radius":lt,"--n-dot-box-shadow":be,"--n-dot-color":Le,"--n-dot-color-modal":Xe,"--n-dot-color-popover":ta,"--n-dot-height":At,"--n-dot-width":lr,"--n-fill-color":pe,"--n-fill-color-hover":Se,"--n-font-size":Gt,"--n-handle-box-shadow":kt,"--n-handle-box-shadow-active":Mt,"--n-handle-box-shadow-focus":Po,"--n-handle-box-shadow-hover":wr,"--n-handle-color":Ie,"--n-handle-size":mt,"--n-opacity-disabled":je,"--n-rail-color":U,"--n-rail-color-hover":Z,"--n-rail-height":Ee,"--n-rail-width-vertical":rt,"--n-mark-font-size":F}}),ee=o?Nt("slider",void 0,ge,e):void 0,ue=N(()=>{const{self:{fontSize:F,indicatorColor:U,indicatorBoxShadow:Z,indicatorTextColor:pe,indicatorBorderRadius:Se}}=n.value;return{"--n-font-size":F,"--n-indicator-border-radius":Se,"--n-indicator-box-shadow":Z,"--n-indicator-color":U,"--n-indicator-text-color":pe}}),ie=o?Nt("slider-indicator",void 0,ue,e):void 0;return{mergedClsPrefix:t,namespace:r,uncontrolledValue:h,mergedValue:v,mergedDisabled:f,mergedPlacement:w,isMounted:Rs(),adjustedTo:Yr(e),dotTransitionDisabled:z,markInfos:A,isShowTooltip:M,shouldKeepTooltipTransition:P,handleRailRef:i,setHandleRefs:s,setFollowerRefs:c,fillStyle:Q,getHandleStyle:y,activeIndex:R,arrifiedValues:g,followerEnabledIndexSet:d,handleRailMouseDown:Oe,handleHandleFocus:q,handleHandleBlur:ae,handleHandleMouseEnter:se,handleHandleMouseLeave:he,handleRailKeyDown:Ye,indicatorCssVars:o?void 0:ue,indicatorThemeClass:ie==null?void 0:ie.themeClass,indicatorOnRender:ie==null?void 0:ie.onRender,cssVars:o?void 0:ge,themeClass:ee==null?void 0:ee.themeClass,onRender:ee==null?void 0:ee.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:r,formatTooltip:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("div",{class:[`${t}-slider`,r,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},b("div",{class:`${t}-slider-rail`},b("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?b("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(n=>b("div",{key:n.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:n.active}],style:n.style}))):null,b("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((n,i)=>{const a=this.isShowTooltip(i);return b(id,null,{default:()=>[b(ad,null,{default:()=>b("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(n,i),onFocus:()=>{this.handleHandleFocus(i)},onBlur:()=>{this.handleHandleBlur(i)},onMouseenter:()=>{this.handleHandleMouseEnter(i)},onMouseleave:()=>{this.handleHandleMouseLeave(i)}},Pn(this.$slots.thumb,()=>[b("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&b(sd,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Yr.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>b(Tr,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var s;return a?((s=this.indicatorOnRender)===null||s===void 0||s.call(this),b("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof o=="function"?o(n):n)):null}})})]})})),this.marks?b("div",{class:`${t}-slider-marks`},this.markInfos.map(n=>b("div",{key:n.label,class:`${t}-slider-mark`,style:n.style},n.label))):null))}}),zE={name:"Split",common:me},ME=zE,AE=L("text",` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[K("strong",` - font-weight: var(--n-font-weight-strong); - `),K("italic",{fontStyle:"italic"}),K("underline",{textDecoration:"underline"}),K("code",` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),OE=Object.assign(Object.assign({},He.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),DE=Ce({name:"Text",props:OE,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=Ct(e),o=He("Typography","-text",AE,RI,e,t),n=N(()=>{const{depth:a,type:s}=e,l=s==="default"?a===void 0?"textColor":`textColor${a}Depth`:ve("textColor",s),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:u},self:{codeTextColor:f,codeBorderRadius:p,codeColor:h,codeBorder:m,[l]:v}}=o.value;return{"--n-bezier":u,"--n-text-color":v,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":p,"--n-code-text-color":f,"--n-code-color":h,"--n-code-border":m}}),i=r?Nt("text",N(()=>`${e.type[0]}${e.depth||""}`),n,e):void 0;return{mergedClsPrefix:t,compitableTag:rd(e,["as","tag"]),cssVars:r?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,r;const{mergedClsPrefix:o}=this;(e=this.onRender)===null||e===void 0||e.call(this);const n=[`${o}-text`,this.themeClass,{[`${o}-text--code`]:this.code,[`${o}-text--delete`]:this.delete,[`${o}-text--strong`]:this.strong,[`${o}-text--italic`]:this.italic,[`${o}-text--underline`]:this.underline}],i=(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t);return this.code?b("code",{class:n,style:this.cssVars},this.delete?b("del",null,i):i):this.delete?b("del",{class:n,style:this.cssVars},i):b(this.compitableTag||"span",{class:n,style:this.cssVars},i)}}),BE=()=>({}),FE={name:"Equation",common:me,self:BE},LE=FE,HE={name:"dark",common:me,Alert:ck,Anchor:mk,AutoComplete:Rk,Avatar:ug,AvatarGroup:Ak,BackTop:Bk,Badge:Lk,Breadcrumb:Wk,Button:sr,ButtonGroup:a3,Calendar:t$,Card:pg,Carousel:m$,Cascader:C$,Checkbox:Kn,Code:mg,Collapse:P$,CollapseTransition:$$,ColorPicker:n$,DataTable:G$,DatePicker:b5,Descriptions:w5,Dialog:Eg,Divider:z5,Drawer:O5,Dropdown:Id,DynamicInput:F5,DynamicTags:N5,Element:V5,Empty:an,Ellipsis:Cg,Equation:LE,Flex:K5,Form:eR,GradientText:UR,Icon:Q$,IconWrapper:GR,Image:LI,Input:Sr,InputNumber:l3,LegacyTransfer:JI,Layout:d3,List:m3,LoadingBar:v3,Log:x3,Menu:T3,Mention:C3,Message:n3,Modal:R5,Notification:QR,PageHeader:R3,Pagination:bg,Popconfirm:M3,Popover:sn,Popselect:gg,Progress:Ng,QrCode:TE,Radio:Sg,Rate:B3,Result:j3,Row:FI,Scrollbar:ar,Select:vg,Skeleton:kE,Slider:W3,Space:zg,Spin:Y3,Statistic:Z3,Steps:rI,Switch:iI,Table:cI,Tabs:hI,Tag:ag,Thing:gI,TimePicker:Ig,Timeline:xI,Tooltip:Bs,Transfer:SI,Tree:Vg,TreeSelect:TI,Typography:EI,Upload:AI,Watermark:DI,Split:ME},jE={__name:"LayoutDefault",setup(e){return(t,r)=>(Qe(),St(Pe(I$),{theme:Pe(HE),abstract:""},{default:Ne(()=>[ze(Pe(pE),null,{default:Ne(()=>[ze(Pe(wE),null,{default:Ne(()=>[ze(Pe(VI),null,{default:Ne(()=>[ze(Pe(UI),null,{default:Ne(()=>[Cs(t.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3})]),_:3},8,["theme"]))}};function ov(e){return Bc()?(zh(e),!0):!1}function Zi(e){return typeof e=="function"?e():Pe(e)}const Fd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const NE=Object.prototype.toString,WE=e=>NE.call(e)==="[object Object]",hc=()=>{};function nv(e,t){function r(...o){return new Promise((n,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(n).catch(i)})}return r}const iv=e=>e();function VE(e,t=!0,r=!0,o=!1){let n=0,i,a=!0,s=hc,l;const c=()=>{i&&(clearTimeout(i),i=void 0,s(),s=hc)};return u=>{const f=Zi(e),p=Date.now()-n,h=()=>l=u();return c(),f<=0?(n=Date.now(),h()):(p>f&&(r||!a)?(n=Date.now(),h()):t&&(l=new Promise((m,v)=>{s=o?v:m,i=setTimeout(()=>{n=Date.now(),a=!0,m(h()),c()},Math.max(0,f-p))})),!r&&!i&&(i=setTimeout(()=>a=!0,f)),a=!1,l)}}function UE(e=iv){const t=J(!0);function r(){t.value=!1}function o(){t.value=!0}const n=(...i)=>{t.value&&e(...i)};return{isActive:vo(t),pause:r,resume:o,eventFilter:n}}function KE(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const o=t;t=void 0,o&&await o},r}function qE(e,t=200,r=!1,o=!0,n=!1){return nv(VE(t,r,o,n),e)}function GE(e,t,r={}){const{eventFilter:o=iv,...n}=r;return tt(e,nv(o,t),n)}function YE(e,t,r={}){const{eventFilter:o,...n}=r,{eventFilter:i,pause:a,resume:s,isActive:l}=UE(o);return{stop:GE(e,t,{...n,eventFilter:i}),pause:a,resume:s,isActive:l}}function XE(e,t,r={}){const{immediate:o=!0}=r,n=J(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){n.value=!1,a()}function l(...c){a(),n.value=!0,i=setTimeout(()=>{n.value=!1,i=null,e(...c)},Zi(t))}return o&&(n.value=!0,Fd&&l()),ov(s),{isPending:vo(n),start:l,stop:s}}function JE(e){var t;const r=Zi(e);return(t=r==null?void 0:r.$el)!=null?t:r}const av=Fd?window:void 0,Hs=Fd?window.navigator:void 0;function ss(...e){let t,r,o,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,n]=e,t=av):[t,r,o,n]=e,!t)return hc;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const i=[],a=()=>{i.forEach(d=>d()),i.length=0},s=(d,u,f,p)=>(d.addEventListener(u,f,p),()=>d.removeEventListener(u,f,p)),l=tt(()=>[JE(t),Zi(n)],([d,u])=>{if(a(),!d)return;const f=WE(u)?{...u}:u;i.push(...r.flatMap(p=>o.map(h=>s(d,p,h,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return ov(c),c}function ZE(){const e=J(!1);return So()&&Ft(()=>{e.value=!0}),e}function js(e){const t=ZE();return N(()=>(t.value,!!e()))}function Qf(e,t={}){const{controls:r=!1,navigator:o=Hs}=t,n=js(()=>o&&"permissions"in o);let i;const a=typeof e=="string"?{name:e}:e,s=J(),l=()=>{i&&(s.value=i.state)},c=KE(async()=>{if(n.value){if(!i)try{i=await o.permissions.query(a),ss(i,"change",l),l()}catch{s.value="prompt"}return i}});return c(),r?{state:s,isSupported:n,query:c}:s}function QE(e={}){const{navigator:t=Hs,read:r=!1,source:o,copiedDuring:n=1500,legacy:i=!1}=e,a=js(()=>t&&"clipboard"in t),s=Qf("clipboard-read"),l=Qf("clipboard-write"),c=N(()=>a.value||i),d=J(""),u=J(!1),f=XE(()=>u.value=!1,n);function p(){a.value&&s.value!=="denied"?t.clipboard.readText().then(g=>{d.value=g}):d.value=v()}c.value&&r&&ss(["copy","cut"],p);async function h(g=Zi(o)){c.value&&g!=null&&(a.value&&l.value!=="denied"?await t.clipboard.writeText(g):m(g),d.value=g,u.value=!0,f.start())}function m(g){const k=document.createElement("textarea");k.value=g??"",k.style.position="absolute",k.style.opacity="0",document.body.appendChild(k),k.select(),document.execCommand("copy"),k.remove()}function v(){var g,k,w;return(w=(k=(g=document==null?void 0:document.getSelection)==null?void 0:g.call(document))==null?void 0:k.toString())!=null?w:""}return{isSupported:c,text:d,copied:u,copy:h}}function ez(e={}){var t;const r=J((t=e.enabled)!=null?t:!1),o=e.video,n=e.audio,{navigator:i=Hs}=e,a=js(()=>{var p;return(p=i==null?void 0:i.mediaDevices)==null?void 0:p.getDisplayMedia}),s={audio:n,video:o},l=Er();async function c(){if(!(!a.value||l.value))return l.value=await i.mediaDevices.getDisplayMedia(s),l.value}async function d(){var p;(p=l.value)==null||p.getTracks().forEach(h=>h.stop()),l.value=void 0}function u(){d(),r.value=!1}async function f(){return await c(),l.value&&(r.value=!0),l.value}return tt(r,p=>{p?c():d()},{immediate:!0}),{isSupported:a,stream:l,start:f,stop:u,enabled:r}}function tz(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:n=!1,write:i=!0,window:a=av}=t;if(!a)return Kr(r);const s=Kr({});function l(){if(e==="history")return a.location.search||"";if(e==="hash"){const g=a.location.hash||"",k=g.indexOf("?");return k>0?g.slice(k):""}else return(a.location.hash||"").replace(/^#/,"")}function c(g){const k=g.toString();if(e==="history")return`${k?`?${k}`:""}${a.location.hash||""}`;if(e==="hash-params")return`${a.location.search||""}${k?`#${k}`:""}`;const w=a.location.hash||"#",T=w.indexOf("?");return T>0?`${w.slice(0,T)}${k?`?${k}`:""}`:`${w}${k?`?${k}`:""}`}function d(){return new URLSearchParams(l())}function u(g){const k=new Set(Object.keys(s));for(const w of g.keys()){const T=g.getAll(w);s[w]=T.length>1?T:g.get(w)||"",k.delete(w)}Array.from(k).forEach(w=>delete s[w])}const{pause:f,resume:p}=YE(s,()=>{const g=new URLSearchParams("");Object.keys(s).forEach(k=>{const w=s[k];Array.isArray(w)?w.forEach(T=>g.append(k,T)):o&&w==null||n&&!w?g.delete(k):g.set(k,w)}),h(g)},{deep:!0});function h(g,k){f(),k&&u(g),a.history.replaceState(a.history.state,a.document.title,a.location.pathname+c(g)),p()}function m(){i&&h(d(),!0)}ss(a,"popstate",m,!1),e!=="history"&&ss(a,"hashchange",m,!1);const v=d();return v.keys().next().value?u(v):Object.assign(s,r),s}function rz(e={}){var t,r;const o=J((t=e.enabled)!=null?t:!1),n=J((r=e.autoSwitch)!=null?r:!0),i=J(e.constraints),{navigator:a=Hs}=e,s=js(()=>{var m;return(m=a==null?void 0:a.mediaDevices)==null?void 0:m.getUserMedia}),l=Er();function c(m){switch(m){case"video":{if(i.value)return i.value.video||!1;break}case"audio":{if(i.value)return i.value.audio||!1;break}}}async function d(){if(!(!s.value||l.value))return l.value=await a.mediaDevices.getUserMedia({video:c("video"),audio:c("audio")}),l.value}function u(){var m;(m=l.value)==null||m.getTracks().forEach(v=>v.stop()),l.value=void 0}function f(){u(),o.value=!1}async function p(){return await d(),l.value&&(o.value=!0),l.value}async function h(){return u(),await p()}return tt(o,m=>{m?d():u()},{immediate:!0}),tt(i,()=>{n.value&&l.value&&h()},{immediate:!0}),{isSupported:s,stream:l,start:p,stop:f,restart:h,constraints:i,enabled:o,autoSwitch:n}}const oz={__name:"FormCreatePeer",props:{loading:{type:Boolean}},emits:["submit"],setup(e,{emit:t}){const r=t;return(o,n)=>(Qe(),St(Pe(Or),{size:"large",onClick:n[0]||(n[0]=i=>r("submit")),loading:e.loading},{default:Ne(()=>[yr(" Create ")]),_:1},8,["loading"]))}};class nz{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const r of this._parts)t.push(r);return iz(t).buffer}}function iz(e){let t=0;for(const n of e)t+=n.byteLength;const r=new Uint8Array(t);let o=0;for(const n of e){const i=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);r.set(i,o),o+=n.byteLength}return r}function sv(e){return new az(e).unpack()}function lv(e){const t=new sz,r=t.pack(e);return r instanceof Promise?r.then(()=>t.getBuffer()):t.getBuffer()}class az{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let r;if((r=t^160)<=15)return this.unpack_raw(r);if((r=t^176)<=15)return this.unpack_string(r);if((r=t^144)<=15)return this.unpack_array(r);if((r=t^128)<=15)return this.unpack_map(r);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return r=this.unpack_uint16(),this.unpack_string(r);case 217:return r=this.unpack_uint32(),this.unpack_string(r);case 218:return r=this.unpack_uint16(),this.unpack_raw(r);case 219:return r=this.unpack_uint32(),this.unpack_raw(r);case 220:return r=this.unpack_uint16(),this.unpack_array(r);case 221:return r=this.unpack_uint32(),this.unpack_array(r);case 222:return r=this.unpack_uint16(),this.unpack_map(r);case 223:return r=this.unpack_uint32(),this.unpack_map(r)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),r=(t[0]&255)*256+(t[1]&255);return this.index+=2,r}unpack_uint32(){const t=this.read(4),r=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,r}unpack_uint64(){const t=this.read(8),r=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,r}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length>31,o=(t>>23&255)-127,n=t&8388607|8388608;return(r===0?1:-1)*n*2**(o-23)}unpack_double(){const t=this.unpack_uint32(),r=this.unpack_uint32(),o=t>>31,n=(t>>20&2047)-1023,a=(t&1048575|1048576)*2**(n-20)+r*2**(n-52);return(o===0?1:-1)*a}read(t){const r=this.index;if(r+t<=this.length)return this.dataView.subarray(r,r+t);throw new Error("BinaryPackFailure: read index out of range")}}class sz{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const r=t.constructor;if(t instanceof Array){const o=this.pack_array(t);if(o instanceof Promise)return o.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const o=t;this.pack_bin(new Uint8Array(o.buffer,o.byteOffset,o.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(o=>{this.pack_bin(new Uint8Array(o)),this._bufferBuilder.flush()});if(r==Object||r.toString().startsWith("class")){const o=this.pack_object(t);if(o instanceof Promise)return o.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${r.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const r=t.length;if(r<=15)this.pack_uint8(160+r);else if(r<=65535)this._bufferBuilder.append(218),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const r=this._textEncoder.encode(t),o=r.length;if(o<=15)this.pack_uint8(176+o);else if(o<=65535)this._bufferBuilder.append(216),this.pack_uint16(o);else if(o<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(o);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(r)}pack_array(t){const r=t.length;if(r<=15)this.pack_uint8(144+r);else if(r<=65535)this._bufferBuilder.append(220),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(r);else throw new Error("Invalid length");const o=n=>{if(no(n+1)):o(n+1)}};return o(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let r=0;t<0&&(r=1,t=-t);const o=Math.floor(Math.log(t)/Math.LN2),n=t/2**o-1,i=Math.floor(n*2**52),a=2**32,s=r<<31|o+1023<<20|i/a&1048575,l=i%a;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const r=Object.keys(t),o=r.length;if(o<=15)this.pack_uint8(128+o);else if(o<=65535)this._bufferBuilder.append(222),this.pack_uint16(o);else if(o<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(o);else throw new Error("Invalid length");const n=i=>{if(in(i+1))}return n(i+1)}};return n(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const r=t&4294967295;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_uint64(t){const r=t/4294967296,o=t%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((o&4278190080)>>>24),this._bufferBuilder.append((o&16711680)>>>16),this._bufferBuilder.append((o&65280)>>>8),this._bufferBuilder.append(o&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const r=Math.floor(t/4294967296),o=t%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((o&4278190080)>>>24),this._bufferBuilder.append((o&16711680)>>>16),this._bufferBuilder.append((o&65280)>>>8),this._bufferBuilder.append(o&255)}constructor(){this._bufferBuilder=new nz,this._textEncoder=new TextEncoder}}let cv=!0,dv=!0;function Ma(e,t,r){const o=e.match(t);return o&&o.length>=r&&parseInt(o[r],10)}function ln(e,t,r){if(!e.RTCPeerConnection)return;const o=e.RTCPeerConnection.prototype,n=o.addEventListener;o.addEventListener=function(a,s){if(a!==t)return n.apply(this,arguments);const l=c=>{const d=r(c);d&&(s.handleEvent?s.handleEvent(d):s(d))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),n.apply(this,[a,l])};const i=o.removeEventListener;o.removeEventListener=function(a,s){if(a!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(s))return i.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,i.apply(this,[a,l])},Object.defineProperty(o,"on"+t,{get(){return this["_on"+t]},set(a){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),a&&this.addEventListener(t,this["_on"+t]=a)},enumerable:!0,configurable:!0})}function lz(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(cv=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function cz(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(dv=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function uv(){if(typeof window=="object"){if(cv)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function Ld(e,t){dv&&console.warn(e+" is deprecated, please use "+t+" instead.")}function dz(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:r}=e;if(r.mozGetUserMedia)t.browser="firefox",t.version=Ma(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=Ma(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&r.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=Ma(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function eh(e){return Object.prototype.toString.call(e)==="[object Object]"}function fv(e){return eh(e)?Object.keys(e).reduce(function(t,r){const o=eh(e[r]),n=o?fv(e[r]):e[r],i=o&&!Object.keys(n).length;return n===void 0||i?t:Object.assign(t,{[r]:n})},{}):e}function pc(e,t,r){!t||r.has(t.id)||(r.set(t.id,t),Object.keys(t).forEach(o=>{o.endsWith("Id")?pc(e,e.get(t[o]),r):o.endsWith("Ids")&&t[o].forEach(n=>{pc(e,e.get(n),r)})}))}function th(e,t,r){const o=r?"outbound-rtp":"inbound-rtp",n=new Map;if(t===null)return n;const i=[];return e.forEach(a=>{a.type==="track"&&a.trackIdentifier===t.id&&i.push(a)}),i.forEach(a=>{e.forEach(s=>{s.type===o&&s.trackId===a.id&&pc(e,s,n)})}),n}const rh=uv;function hv(e,t){const r=e&&e.navigator;if(!r.mediaDevices)return;const o=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const d=typeof s[c]=="object"?s[c]:{ideal:s[c]};d.exact!==void 0&&typeof d.exact=="number"&&(d.min=d.max=d.exact);const u=function(f,p){return f?f+p.charAt(0).toUpperCase()+p.slice(1):p==="deviceId"?"sourceId":p};if(d.ideal!==void 0){l.optional=l.optional||[];let f={};typeof d.ideal=="number"?(f[u("min",c)]=d.ideal,l.optional.push(f),f={},f[u("max",c)]=d.ideal,l.optional.push(f)):(f[u("",c)]=d.ideal,l.optional.push(f))}d.exact!==void 0&&typeof d.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[u("",c)]=d.exact):["min","max"].forEach(f=>{d[f]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[u(f,c)]=d[f])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},n=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(d,u,f){u in d&&!(f in d)&&(d[f]=d[u],delete d[u])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=o(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const d=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(r.mediaDevices.getSupportedConstraints&&r.mediaDevices.getSupportedConstraints().facingMode&&!d)){delete s.video.facingMode;let u;if(c.exact==="environment"||c.ideal==="environment"?u=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(u=["front"]),u)return r.mediaDevices.enumerateDevices().then(f=>{f=f.filter(h=>h.kind==="videoinput");let p=f.find(h=>u.some(m=>h.label.toLowerCase().includes(m)));return!p&&f.length&&u.includes("back")&&(p=f[f.length-1]),p&&(s.video.deviceId=c.exact?{exact:p.deviceId}:{ideal:p.deviceId}),s.video=o(s.video),rh("chrome: "+JSON.stringify(s)),l(s)})}s.video=o(s.video)}return rh("chrome: "+JSON.stringify(s)),l(s)},i=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},a=function(s,l,c){n(s,d=>{r.webkitGetUserMedia(d,l,u=>{c&&c(i(u))})})};if(r.getUserMedia=a.bind(r),r.mediaDevices.getUserMedia){const s=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(l){return n(l,c=>s(c).then(d=>{if(c.audio&&!d.getAudioTracks().length||c.video&&!d.getVideoTracks().length)throw d.getTracks().forEach(u=>{u.stop()}),new DOMException("","NotFoundError");return d},d=>Promise.reject(i(d))))}}}function uz(e,t){if(!(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices)&&e.navigator.mediaDevices){if(typeof t!="function"){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}e.navigator.mediaDevices.getDisplayMedia=function(o){return t(o).then(n=>{const i=o.video&&o.video.width,a=o.video&&o.video.height,s=o.video&&o.video.frameRate;return o.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:n,maxFrameRate:s||3}},i&&(o.video.mandatory.maxWidth=i),a&&(o.video.mandatory.maxHeight=a),e.navigator.mediaDevices.getUserMedia(o)})}}}function pv(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function mv(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(r){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=r)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=o=>{o.stream.addEventListener("addtrack",n=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===n.track.id):i={track:n.track};const a=new Event("track");a.track=n.track,a.receiver=i,a.transceiver={receiver:i},a.streams=[o.stream],this.dispatchEvent(a)}),o.stream.getTracks().forEach(n=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===n.id):i={track:n};const a=new Event("track");a.track=n,a.receiver=i,a.transceiver={receiver:i},a.streams=[o.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else ln(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function gv(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(n,i){return{track:i,get dtmf(){return this._dtmf===void 0&&(i.kind==="audio"?this._dtmf=n.createDTMFSender(i):this._dtmf=null),this._dtmf},_pc:n}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=n.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){i.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(i){this._senders=this._senders||[],r.apply(this,[i]),i.getTracks().forEach(a=>{this._senders.push(t(this,a))})};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(i){this._senders=this._senders||[],o.apply(this,[i]),i.getTracks().forEach(a=>{const s=this._senders.find(l=>l.track===a);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const o=t.apply(this,[]);return o.forEach(n=>n._pc=this),o},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function vv(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[o,n,i]=arguments;if(arguments.length>0&&typeof o=="function")return t.apply(this,arguments);if(t.length===0&&(arguments.length===0||typeof o!="function"))return t.apply(this,[]);const a=function(l){const c={};return l.result().forEach(u=>{const f={id:u.id,timestamp:u.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[u.type]||u.type};u.names().forEach(p=>{f[p]=u.stat(p)}),c[f.id]=f}),c},s=function(l){return new Map(Object.keys(l).map(c=>[c,l[c]]))};if(arguments.length>=2){const l=function(c){n(s(a(c)))};return t.apply(this,[l,o])}return new Promise((l,c)=>{t.apply(this,[function(d){l(s(a(d)))},c])}).then(n,i)}}function bv(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const r=e.RTCPeerConnection.prototype.getSenders;r&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=r.apply(this,[]);return i.forEach(a=>a._pc=this),i});const o=e.RTCPeerConnection.prototype.addTrack;o&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=o.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>th(a,i.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const r=e.RTCPeerConnection.prototype.getReceivers;r&&(e.RTCPeerConnection.prototype.getReceivers=function(){const n=r.apply(this,[]);return n.forEach(i=>i._pc=this),n}),ln(e,"track",o=>(o.receiver._pc=o.srcElement,o)),e.RTCRtpReceiver.prototype.getStats=function(){const n=this;return this._pc.getStats().then(i=>th(i,n.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const o=arguments[0];let n,i,a;return this.getSenders().forEach(s=>{s.track===o&&(n?a=!0:n=s)}),this.getReceivers().forEach(s=>(s.track===o&&(i?a=!0:i=s),s.track===o)),a||n&&i?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):n?n.getStats():i?i.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function xv(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(a=>this._shimmedLocalStreams[a][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(a,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._shimmedLocalStreams=this._shimmedLocalStreams||{},a.getTracks().forEach(c=>{if(this.getSenders().find(u=>u.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();r.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[a.id]=[a].concat(l)};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[a.id],o.apply(this,arguments)};const n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},a&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(a);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),n.apply(this,arguments)}}function yv(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return xv(e);const r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const d=r.apply(this);return this._reverseStreams=this._reverseStreams||{},d.map(u=>this._reverseStreams[u.id])};const o=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(d){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},d.getTracks().forEach(u=>{if(this.getSenders().find(p=>p.track===u))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[d.id]){const u=new e.MediaStream(d.getTracks());this._streams[d.id]=u,this._reverseStreams[u.id]=d,d=u}o.apply(this,[d])};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(d){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},n.apply(this,[this._streams[d.id]||d]),delete this._reverseStreams[this._streams[d.id]?this._streams[d.id].id:d.id],delete this._streams[d.id]},e.RTCPeerConnection.prototype.addTrack=function(d,u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const f=[].slice.call(arguments,1);if(f.length!==1||!f[0].getTracks().find(m=>m===d))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(m=>m.track===d))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const h=this._streams[u.id];if(h)h.addTrack(d),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const m=new e.MediaStream([d]);this._streams[u.id]=m,this._reverseStreams[m.id]=u,this.addStream(m)}return this.getSenders().find(m=>m.track===d)};function i(c,d){let u=d.sdp;return Object.keys(c._reverseStreams||[]).forEach(f=>{const p=c._reverseStreams[f],h=c._streams[p.id];u=u.replace(new RegExp(h.id,"g"),p.id)}),new RTCSessionDescription({type:d.type,sdp:u})}function a(c,d){let u=d.sdp;return Object.keys(c._reverseStreams||[]).forEach(f=>{const p=c._reverseStreams[f],h=c._streams[p.id];u=u.replace(new RegExp(p.id,"g"),h.id)}),new RTCSessionDescription({type:d.type,sdp:u})}["createOffer","createAnswer"].forEach(function(c){const d=e.RTCPeerConnection.prototype[c],u={[c](){const f=arguments;return arguments.length&&typeof arguments[0]=="function"?d.apply(this,[h=>{const m=i(this,h);f[0].apply(null,[m])},h=>{f[1]&&f[1].apply(null,h)},arguments[2]]):d.apply(this,arguments).then(h=>i(this,h))}};e.RTCPeerConnection.prototype[c]=u[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=a(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:i(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!d._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(d._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let f;Object.keys(this._streams).forEach(p=>{this._streams[p].getTracks().find(m=>d.track===m)&&(f=this._streams[p])}),f&&(f.getTracks().length===1?this.removeStream(this._reverseStreams[f.id]):f.removeTrack(d.track),this.dispatchEvent(new Event("negotiationneeded")))}}function mc(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){const o=e.RTCPeerConnection.prototype[r],n={[r](){return arguments[0]=new(r==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),o.apply(this,arguments)}};e.RTCPeerConnection.prototype[r]=n[r]})}function Cv(e,t){ln(e,"negotiationneeded",r=>{const o=r.target;if(!((t.version<72||o.getConfiguration&&o.getConfiguration().sdpSemantics==="plan-b")&&o.signalingState!=="stable"))return r})}const oh=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:Cv,shimAddTrackRemoveTrack:yv,shimAddTrackRemoveTrackWithNative:xv,shimGetDisplayMedia:uz,shimGetSendersWithDtmf:gv,shimGetStats:vv,shimGetUserMedia:hv,shimMediaStream:pv,shimOnTrack:mv,shimPeerConnection:mc,shimSenderReceiverGetStats:bv},Symbol.toStringTag,{value:"Module"}));function Sv(e,t){const r=e&&e.navigator,o=e&&e.MediaStreamTrack;if(r.getUserMedia=function(n,i,a){Ld("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(n).then(i,a)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){const n=function(a,s,l){s in a&&!(l in a)&&(a[l]=a[s],delete a[s])},i=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(a){return typeof a=="object"&&typeof a.audio=="object"&&(a=JSON.parse(JSON.stringify(a)),n(a.audio,"autoGainControl","mozAutoGainControl"),n(a.audio,"noiseSuppression","mozNoiseSuppression")),i(a)},o&&o.prototype.getSettings){const a=o.prototype.getSettings;o.prototype.getSettings=function(){const s=a.apply(this,arguments);return n(s,"mozAutoGainControl","autoGainControl"),n(s,"mozNoiseSuppression","noiseSuppression"),s}}if(o&&o.prototype.applyConstraints){const a=o.prototype.applyConstraints;o.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),n(s,"autoGainControl","mozAutoGainControl"),n(s,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[s])}}}}function fz(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(o){if(!(o&&o.video)){const n=new DOMException("getDisplayMedia without video constraints is undefined");return n.name="NotFoundError",n.code=8,Promise.reject(n)}return o.video===!0?o.video={mediaSource:t}:o.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(o)})}function wv(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function gc(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const i=e.RTCPeerConnection.prototype[n],a={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=a[n]});const r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},o=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[i,a,s]=arguments;return o.apply(this,[i||null]).then(l=>{if(t.version<53&&!a)try{l.forEach(c=>{c.type=r[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((d,u)=>{l.set(u,Object.assign({},d,{type:r[d.type]||d.type}))})}return l}).then(a,s)}}function _v(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const n=t.apply(this,[]);return n.forEach(i=>i._pc=this),n});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const n=r.apply(this,arguments);return n._pc=this,n}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Pv(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const o=t.apply(this,[]);return o.forEach(n=>n._pc=this),o}),ln(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Tv(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){Ld("removeStream","removeTrack"),this.getSenders().forEach(o=>{o.track&&r.getTracks().includes(o.track)&&this.removeTrack(o)})})}function kv(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function $v(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let o=arguments[1]&&arguments[1].sendEncodings;o===void 0&&(o=[]),o=[...o];const n=o.length>0;n&&o.forEach(a=>{if("rid"in a&&!/^[a-z0-9]{0,16}$/i.test(a.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in a&&!(parseFloat(a.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in a&&!(parseFloat(a.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const i=t.apply(this,arguments);if(n){const{sender:a}=i,s=a.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=o,a.sendEncodings=o,this.setParametersPromises.push(a.setParameters(s).then(()=>{delete a.sendEncodings}).catch(()=>{delete a.sendEncodings})))}return i})}function Rv(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const o=t.apply(this,arguments);return"encodings"in o||(o.encodings=[].concat(this.sendEncodings||[{}])),o})}function Iv(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function Ev(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const nh=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:$v,shimCreateAnswer:Ev,shimCreateOffer:Iv,shimGetDisplayMedia:fz,shimGetParameters:Rv,shimGetUserMedia:Sv,shimOnTrack:wv,shimPeerConnection:gc,shimRTCDataChannel:kv,shimReceiverGetStats:Pv,shimRemoveStream:Tv,shimSenderGetStats:_v},Symbol.toStringTag,{value:"Module"}));function zv(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(o){this._localStreams||(this._localStreams=[]),this._localStreams.includes(o)||this._localStreams.push(o),o.getAudioTracks().forEach(n=>t.call(this,n,o)),o.getVideoTracks().forEach(n=>t.call(this,n,o))},e.RTCPeerConnection.prototype.addTrack=function(o,...n){return n&&n.forEach(i=>{this._localStreams?this._localStreams.includes(i)||this._localStreams.push(i):this._localStreams=[i]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){this._localStreams||(this._localStreams=[]);const o=this._localStreams.indexOf(r);if(o===-1)return;this._localStreams.splice(o,1);const n=r.getTracks();this.getSenders().forEach(i=>{n.includes(i.track)&&this.removeTrack(i)})})}}function Mv(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(r){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=r),this.addEventListener("track",this._onaddstreampoly=o=>{o.streams.forEach(n=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(n))return;this._remoteStreams.push(n);const i=new Event("addstream");i.stream=n,this.dispatchEvent(i)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const o=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(n){n.streams.forEach(i=>{if(o._remoteStreams||(o._remoteStreams=[]),o._remoteStreams.indexOf(i)>=0)return;o._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,o.dispatchEvent(a)})}),t.apply(o,arguments)}}}function Av(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,r=t.createOffer,o=t.createAnswer,n=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(c,d){const u=arguments.length>=2?arguments[2]:arguments[0],f=r.apply(this,[u]);return d?(f.then(c,d),Promise.resolve()):f},t.createAnswer=function(c,d){const u=arguments.length>=2?arguments[2]:arguments[0],f=o.apply(this,[u]);return d?(f.then(c,d),Promise.resolve()):f};let s=function(l,c,d){const u=n.apply(this,[l]);return d?(u.then(c,d),Promise.resolve()):u};t.setLocalDescription=s,s=function(l,c,d){const u=i.apply(this,[l]);return d?(u.then(c,d),Promise.resolve()):u},t.setRemoteDescription=s,s=function(l,c,d){const u=a.apply(this,[l]);return d?(u.then(c,d),Promise.resolve()):u},t.addIceCandidate=s}function Ov(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const r=t.mediaDevices,o=r.getUserMedia.bind(r);t.mediaDevices.getUserMedia=n=>o(Dv(n))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(o,n,i){t.mediaDevices.getUserMedia(o).then(n,i)}).bind(t))}function Dv(e){return e&&e.video!==void 0?Object.assign({},e,{video:fv(e.video)}):e}function Bv(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(o,n){if(o&&o.iceServers){const i=[];for(let a=0;aa.receiver.track.kind==="audio");o.offerToReceiveAudio===!1&&n?n.direction==="sendrecv"?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":n.direction==="recvonly"&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):o.offerToReceiveAudio===!0&&!n&&this.addTransceiver("audio",{direction:"recvonly"}),typeof o.offerToReceiveVideo<"u"&&(o.offerToReceiveVideo=!!o.offerToReceiveVideo);const i=this.getTransceivers().find(a=>a.receiver.track.kind==="video");o.offerToReceiveVideo===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):o.offerToReceiveVideo===!0&&!i&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function Hv(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const ih=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:Hv,shimCallbacksAPI:Av,shimConstraints:Dv,shimCreateOfferLegacy:Lv,shimGetUserMedia:Ov,shimLocalStreamsAPI:zv,shimRTCIceServerUrls:Bv,shimRemoteStreamsAPI:Mv,shimTrackEventTransceiver:Fv},Symbol.toStringTag,{value:"Module"}));var jv={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(r){return r.trim().split(` -`).map(o=>o.trim())},t.splitSections=function(r){return r.split(` -m=`).map((n,i)=>(i>0?"m="+n:n).trim()+`\r -`)},t.getDescription=function(r){const o=t.splitSections(r);return o&&o[0]},t.getMediaSections=function(r){const o=t.splitSections(r);return o.shift(),o},t.matchPrefix=function(r,o){return t.splitLines(r).filter(n=>n.indexOf(o)===0)},t.parseCandidate=function(r){let o;r.indexOf("a=candidate:")===0?o=r.substring(12).split(" "):o=r.substring(10).split(" ");const n={foundation:o[0],component:{1:"rtp",2:"rtcp"}[o[1]]||o[1],protocol:o[2].toLowerCase(),priority:parseInt(o[3],10),ip:o[4],address:o[4],port:parseInt(o[5],10),type:o[7]};for(let i=8;i0?o[0].split("/")[1]:"sendrecv",uri:o[1],attributes:o.slice(2).join(" ")}},t.writeExtmap=function(r){return"a=extmap:"+(r.id||r.preferredId)+(r.direction&&r.direction!=="sendrecv"?"/"+r.direction:"")+" "+r.uri+(r.attributes?" "+r.attributes:"")+`\r -`},t.parseFmtp=function(r){const o={};let n;const i=r.substring(r.indexOf(" ")+1).split(";");for(let a=0;a{r.parameters[a]!==void 0?i.push(a+"="+r.parameters[a]):i.push(a)}),o+="a=fmtp:"+n+" "+i.join(";")+`\r -`}return o},t.parseRtcpFb=function(r){const o=r.substring(r.indexOf(" ")+1).split(" ");return{type:o.shift(),parameter:o.join(" ")}},t.writeRtcpFb=function(r){let o="",n=r.payloadType;return r.preferredPayloadType!==void 0&&(n=r.preferredPayloadType),r.rtcpFeedback&&r.rtcpFeedback.length&&r.rtcpFeedback.forEach(i=>{o+="a=rtcp-fb:"+n+" "+i.type+(i.parameter&&i.parameter.length?" "+i.parameter:"")+`\r -`}),o},t.parseSsrcMedia=function(r){const o=r.indexOf(" "),n={ssrc:parseInt(r.substring(7,o),10)},i=r.indexOf(":",o);return i>-1?(n.attribute=r.substring(o+1,i),n.value=r.substring(i+1)):n.attribute=r.substring(o+1),n},t.parseSsrcGroup=function(r){const o=r.substring(13).split(" ");return{semantics:o.shift(),ssrcs:o.map(n=>parseInt(n,10))}},t.getMid=function(r){const o=t.matchPrefix(r,"a=mid:")[0];if(o)return o.substring(6)},t.parseFingerprint=function(r){const o=r.substring(14).split(" ");return{algorithm:o[0].toLowerCase(),value:o[1].toUpperCase()}},t.getDtlsParameters=function(r,o){return{role:"auto",fingerprints:t.matchPrefix(r+o,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(r,o){let n="a=setup:"+o+`\r -`;return r.fingerprints.forEach(i=>{n+="a=fingerprint:"+i.algorithm+" "+i.value+`\r -`}),n},t.parseCryptoLine=function(r){const o=r.substring(9).split(" ");return{tag:parseInt(o[0],10),cryptoSuite:o[1],keyParams:o[2],sessionParams:o.slice(3)}},t.writeCryptoLine=function(r){return"a=crypto:"+r.tag+" "+r.cryptoSuite+" "+(typeof r.keyParams=="object"?t.writeCryptoKeyParams(r.keyParams):r.keyParams)+(r.sessionParams?" "+r.sessionParams.join(" "):"")+`\r -`},t.parseCryptoKeyParams=function(r){if(r.indexOf("inline:")!==0)return null;const o=r.substring(7).split("|");return{keyMethod:"inline",keySalt:o[0],lifeTime:o[1],mkiValue:o[2]?o[2].split(":")[0]:void 0,mkiLength:o[2]?o[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(r){return r.keyMethod+":"+r.keySalt+(r.lifeTime?"|"+r.lifeTime:"")+(r.mkiValue&&r.mkiLength?"|"+r.mkiValue+":"+r.mkiLength:"")},t.getCryptoParameters=function(r,o){return t.matchPrefix(r+o,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(r,o){const n=t.matchPrefix(r+o,"a=ice-ufrag:")[0],i=t.matchPrefix(r+o,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substring(12),password:i.substring(10)}:null},t.writeIceParameters=function(r){let o="a=ice-ufrag:"+r.usernameFragment+`\r -a=ice-pwd:`+r.password+`\r -`;return r.iceLite&&(o+=`a=ice-lite\r -`),o},t.parseRtpParameters=function(r){const o={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},i=t.splitLines(r)[0].split(" ");o.profile=i[2];for(let s=3;s{o.headerExtensions.push(t.parseExtmap(s))});const a=t.matchPrefix(r,"a=rtcp-fb:* ").map(t.parseRtcpFb);return o.codecs.forEach(s=>{a.forEach(l=>{s.rtcpFeedback.find(d=>d.type===l.type&&d.parameter===l.parameter)||s.rtcpFeedback.push(l)})}),o},t.writeRtpDescription=function(r,o){let n="";n+="m="+r+" ",n+=o.codecs.length>0?"9":"0",n+=" "+(o.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=o.codecs.map(a=>a.preferredPayloadType!==void 0?a.preferredPayloadType:a.payloadType).join(" ")+`\r -`,n+=`c=IN IP4 0.0.0.0\r -`,n+=`a=rtcp:9 IN IP4 0.0.0.0\r -`,o.codecs.forEach(a=>{n+=t.writeRtpMap(a),n+=t.writeFmtp(a),n+=t.writeRtcpFb(a)});let i=0;return o.codecs.forEach(a=>{a.maxptime>i&&(i=a.maxptime)}),i>0&&(n+="a=maxptime:"+i+`\r -`),o.headerExtensions&&o.headerExtensions.forEach(a=>{n+=t.writeExtmap(a)}),n},t.parseRtpEncodingParameters=function(r){const o=[],n=t.parseRtpParameters(r),i=n.fecMechanisms.indexOf("RED")!==-1,a=n.fecMechanisms.indexOf("ULPFEC")!==-1,s=t.matchPrefix(r,"a=ssrc:").map(f=>t.parseSsrcMedia(f)).filter(f=>f.attribute==="cname"),l=s.length>0&&s[0].ssrc;let c;const d=t.matchPrefix(r,"a=ssrc-group:FID").map(f=>f.substring(17).split(" ").map(h=>parseInt(h,10)));d.length>0&&d[0].length>1&&d[0][0]===l&&(c=d[0][1]),n.codecs.forEach(f=>{if(f.name.toUpperCase()==="RTX"&&f.parameters.apt){let p={ssrc:l,codecPayloadType:parseInt(f.parameters.apt,10)};l&&c&&(p.rtx={ssrc:c}),o.push(p),i&&(p=JSON.parse(JSON.stringify(p)),p.fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},o.push(p))}}),o.length===0&&l&&o.push({ssrc:l});let u=t.matchPrefix(r,"b=");return u.length&&(u[0].indexOf("b=TIAS:")===0?u=parseInt(u[0].substring(7),10):u[0].indexOf("b=AS:")===0?u=parseInt(u[0].substring(5),10)*1e3*.95-50*40*8:u=void 0,o.forEach(f=>{f.maxBitrate=u})),o},t.parseRtcpParameters=function(r){const o={},n=t.matchPrefix(r,"a=ssrc:").map(s=>t.parseSsrcMedia(s)).filter(s=>s.attribute==="cname")[0];n&&(o.cname=n.value,o.ssrc=n.ssrc);const i=t.matchPrefix(r,"a=rtcp-rsize");o.reducedSize=i.length>0,o.compound=i.length===0;const a=t.matchPrefix(r,"a=rtcp-mux");return o.mux=a.length>0,o},t.writeRtcpParameters=function(r){let o="";return r.reducedSize&&(o+=`a=rtcp-rsize\r -`),r.mux&&(o+=`a=rtcp-mux\r -`),r.ssrc!==void 0&&r.cname&&(o+="a=ssrc:"+r.ssrc+" cname:"+r.cname+`\r -`),o},t.parseMsid=function(r){let o;const n=t.matchPrefix(r,"a=msid:");if(n.length===1)return o=n[0].substring(7).split(" "),{stream:o[0],track:o[1]};const i=t.matchPrefix(r,"a=ssrc:").map(a=>t.parseSsrcMedia(a)).filter(a=>a.attribute==="msid");if(i.length>0)return o=i[0].value.split(" "),{stream:o[0],track:o[1]}},t.parseSctpDescription=function(r){const o=t.parseMLine(r),n=t.matchPrefix(r,"a=max-message-size:");let i;n.length>0&&(i=parseInt(n[0].substring(19),10)),isNaN(i)&&(i=65536);const a=t.matchPrefix(r,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:o.fmt,maxMessageSize:i};const s=t.matchPrefix(r,"a=sctpmap:");if(s.length>0){const l=s[0].substring(10).split(" ");return{port:parseInt(l[0],10),protocol:l[1],maxMessageSize:i}}},t.writeSctpDescription=function(r,o){let n=[];return r.protocol!=="DTLS/SCTP"?n=["m="+r.kind+" 9 "+r.protocol+" "+o.protocol+`\r -`,`c=IN IP4 0.0.0.0\r -`,"a=sctp-port:"+o.port+`\r -`]:n=["m="+r.kind+" 9 "+r.protocol+" "+o.port+`\r -`,`c=IN IP4 0.0.0.0\r -`,"a=sctpmap:"+o.port+" "+o.protocol+` 65535\r -`],o.maxMessageSize!==void 0&&n.push("a=max-message-size:"+o.maxMessageSize+`\r -`),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(r,o,n){let i;const a=o!==void 0?o:2;return r?i=r:i=t.generateSessionId(),`v=0\r -o=`+(n||"thisisadapterortc")+" "+i+" "+a+` IN IP4 127.0.0.1\r -s=-\r -t=0 0\r -`},t.getDirection=function(r,o){const n=t.splitLines(r);for(let i=0;i(r.candidate&&Object.defineProperty(r,"candidate",{value:new e.RTCIceCandidate(r.candidate),writable:"false"}),r))}function vc(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||ln(e,"icecandidate",t=>{if(t.candidate){const r=$n.parseCandidate(t.candidate.candidate);r.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[r.priority>>24])}return t})}function Oa(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const r=function(s){if(!s||!s.sdp)return!1;const l=$n.splitSections(s.sdp);return l.shift(),l.some(c=>{const d=$n.parseMLine(c);return d&&d.kind==="application"&&d.protocol.indexOf("SCTP")!==-1})},o=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},n=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},i=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const d=$n.matchPrefix(s.sdp,"a=max-message-size:");return d.length>0?c=parseInt(d[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(r(arguments[0])){const l=o(arguments[0]),c=n(l),d=i(arguments[0],l);let u;c===0&&d===0?u=Number.POSITIVE_INFINITY:c===0||d===0?u=Math.max(c,d):u=Math.min(c,d);const f={};Object.defineProperty(f,"maxMessageSize",{get(){return u}}),this._sctp=f}return a.apply(this,arguments)}}function Da(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(o,n){const i=o.send;o.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(o.readyState==="open"&&n.sctp&&l>n.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+n.sctp.maxMessageSize+" bytes)");return i.apply(o,arguments)}}const r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const n=r.apply(this,arguments);return t(n,this),n},ln(e,"datachannel",o=>(t(o.channel,o.target),o))}function bc(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(r){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),r&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=r)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(r=>{const o=t[r];t[r]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=n=>{const i=n.target;if(i._lastConnectionState!==i.connectionState){i._lastConnectionState=i.connectionState;const a=new Event("connectionstatechange",n);i.dispatchEvent(a)}return n},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),o.apply(this,arguments)}})}function xc(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(n){if(n&&n.sdp&&n.sdp.indexOf(` -a=extmap-allow-mixed`)!==-1){const i=n.sdp.split(` -`).filter(a=>a.trim()!=="a=extmap-allow-mixed").join(` -`);e.RTCSessionDescription&&n instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:n.type,sdp:i}):n.sdp=i}return r.apply(this,arguments)}}function Ba(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const r=e.RTCPeerConnection.prototype.addIceCandidate;!r||r.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function Fa(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const r=e.RTCPeerConnection.prototype.setLocalDescription;!r||r.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let n=arguments[0]||{};if(typeof n!="object"||n.type&&n.sdp)return r.apply(this,arguments);if(n={type:n.type,sdp:n.sdp},!n.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":n.type="offer";break;default:n.type="answer";break}return n.sdp||n.type!=="offer"&&n.type!=="answer"?r.apply(this,[n]):(n.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>r.apply(this,[a]))})}const pz=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:xc,shimAddIceCandidateNullOrEmpty:Ba,shimConnectionState:bc,shimMaxMessageSize:Oa,shimParameterlessSetLocalDescription:Fa,shimRTCIceCandidate:Aa,shimRTCIceCandidateRelayProtocol:vc,shimSendThrowTypeError:Da},Symbol.toStringTag,{value:"Module"}));function mz({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const r=uv,o=dz(e),n={browserDetails:o,commonShim:pz,extractVersion:Ma,disableLog:lz,disableWarnings:cz,sdp:hz};switch(o.browser){case"chrome":if(!oh||!mc||!t.shimChrome)return r("Chrome shim is not included in this adapter release."),n;if(o.version===null)return r("Chrome shim can not determine version, not shimming."),n;r("adapter.js shimming chrome."),n.browserShim=oh,Ba(e,o),Fa(e),hv(e,o),pv(e),mc(e,o),mv(e),yv(e,o),gv(e),vv(e),bv(e),Cv(e,o),Aa(e),vc(e),bc(e),Oa(e,o),Da(e),xc(e,o);break;case"firefox":if(!nh||!gc||!t.shimFirefox)return r("Firefox shim is not included in this adapter release."),n;r("adapter.js shimming firefox."),n.browserShim=nh,Ba(e,o),Fa(e),Sv(e,o),gc(e,o),wv(e),Tv(e),_v(e),Pv(e),kv(e),$v(e),Rv(e),Iv(e),Ev(e),Aa(e),bc(e),Oa(e,o),Da(e);break;case"safari":if(!ih||!t.shimSafari)return r("Safari shim is not included in this adapter release."),n;r("adapter.js shimming safari."),n.browserShim=ih,Ba(e,o),Fa(e),Bv(e),Lv(e),Av(e),zv(e),Mv(e),Fv(e),Ov(e),Hv(e),Aa(e),vc(e),Oa(e,o),Da(e),xc(e,o);break;default:r("Unsupported browser!");break}return n}const ah=mz({window:typeof window>"u"?void 0:window});let yc;try{yc=new TextDecoder}catch{}let we,Yo,te=0;const gz=105,vz=57342,bz=57343,sh=57337,lh=6,vn={};let qe={},bt,ls,cs=0,Bi=0,Et,_r,Tt=[],Cc=[],or,Xt,si,ch={useRecords:!1,mapsAsObjects:!0},Fi=!1,Wv=2;try{new Function("")}catch{Wv=1/0}class Li{constructor(t){if(t&&((t.keyMap||t._keyMap)&&!t.useRecords&&(t.useRecords=!1,t.mapsAsObjects=!0),t.useRecords===!1&&t.mapsAsObjects===void 0&&(t.mapsAsObjects=!0),t.getStructures&&(t.getShared=t.getStructures),t.getShared&&!t.structures&&((t.structures=[]).uninitialized=!0),t.keyMap)){this.mapKey=new Map;for(let[r,o]of Object.entries(t.keyMap))this.mapKey.set(o,r)}Object.assign(this,t)}decodeKey(t){return this.keyMap&&this.mapKey.get(t)||t}encodeKey(t){return this.keyMap&&this.keyMap.hasOwnProperty(t)?this.keyMap[t]:t}encodeKeys(t){if(!this._keyMap)return t;let r=new Map;for(let[o,n]of Object.entries(t))r.set(this._keyMap.hasOwnProperty(o)?this._keyMap[o]:o,n);return r}decodeKeys(t){if(!this._keyMap||t.constructor.name!="Map")return t;if(!this._mapKey){this._mapKey=new Map;for(let[o,n]of Object.entries(this._keyMap))this._mapKey.set(n,o)}let r={};return t.forEach((o,n)=>r[vr(this._mapKey.has(n)?this._mapKey.get(n):n)]=o),r}mapDecode(t,r){let o=this.decode(t);if(this._keyMap)switch(o.constructor.name){case"Array":return o.map(n=>this.decodeKeys(n))}return o}decode(t,r){if(we)return qv(()=>(Pc(),this?this.decode(t,r):Li.prototype.decode.call(ch,t,r)));Yo=r>-1?r:t.length,te=0,Bi=0,ls=null,Et=null,we=t;try{Xt=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(o){throw we=null,t instanceof Uint8Array?o:new Error("Source must be a Uint8Array or Buffer but was a "+(t&&typeof t=="object"?t.constructor.name:typeof t))}if(this instanceof Li){if(qe=this,or=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return bt=this.structures,_a();(!bt||bt.length>0)&&(bt=[])}else qe=ch,(!bt||bt.length>0)&&(bt=[]),or=null;return _a()}decodeMultiple(t,r){let o,n=0;try{let i=t.length;Fi=!0;let a=this?this.decode(t,i):Nd.decode(t,i);if(r){if(r(a)===!1)return;for(;te=Et.postBundlePosition){let t=new Error("Unexpected bundle position");throw t.incomplete=!0,t}te=Et.postBundlePosition,Et=null}if(te==Yo)bt=null,we=null,_r&&(_r=null);else if(te>Yo){let t=new Error("Unexpected end of CBOR data");throw t.incomplete=!0,t}else if(!Fi)throw new Error("Data read, but end of buffer not reached");return e}catch(e){throw Pc(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function Ke(){let e=we[te++],t=e>>5;if(e=e&31,e>23)switch(e){case 24:e=we[te++];break;case 25:if(t==7)return Sz();e=Xt.getUint16(te),te+=2;break;case 26:if(t==7){let r=Xt.getFloat32(te);if(qe.useFloat32>2){let o=jd[(we[te]&127)<<1|we[te+1]>>7];return te+=4,(o*r+(r>0?.5:-.5)>>0)/o}return te+=4,r}e=Xt.getUint32(te),te+=4;break;case 27:if(t==7){let r=Xt.getFloat64(te);return te+=8,r}if(t>1){if(Xt.getUint32(te)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=Xt.getUint32(te+4)}else qe.int64AsNumber?(e=Xt.getUint32(te)*4294967296,e+=Xt.getUint32(te+4)):e=Xt.getBigUint64(te);te+=8;break;case 31:switch(t){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let r=[],o,n=0;for(;(o=Ke())!=vn;)r[n++]=o;return t==4?r:t==3?r.join(""):Buffer.concat(r);case 5:let i;if(qe.mapsAsObjects){let a={};if(qe.keyMap)for(;(i=Ke())!=vn;)a[vr(qe.decodeKey(i))]=Ke();else for(;(i=Ke())!=vn;)a[vr(i)]=Ke();return a}else{si&&(qe.mapsAsObjects=!0,si=!1);let a=new Map;if(qe.keyMap)for(;(i=Ke())!=vn;)a.set(qe.decodeKey(i),Ke());else for(;(i=Ke())!=vn;)a.set(i,Ke());return a}case 7:return vn;default:throw new Error("Invalid major type for indefinite length "+t)}default:throw new Error("Unknown token "+e)}switch(t){case 0:return e;case 1:return~e;case 2:return Cz(e);case 3:if(Bi>=te)return ls.slice(te-cs,(te+=e)-cs);if(Bi==0&&Yo<140&&e<32){let n=e<16?Vv(e):yz(e);if(n!=null)return n}return xz(e);case 4:let r=new Array(e);for(let n=0;n=sh){let n=bt[e&8191];if(n)return n.read||(n.read=Sc(n)),n.read();if(e<65536){if(e==bz){let i=xn(),a=Ke(),s=Ke();_c(a,s);let l={};if(qe.keyMap)for(let c=2;c23)switch(r){case 24:r=we[te++];break;case 25:r=Xt.getUint16(te),te+=2;break;case 26:r=Xt.getUint32(te),te+=4;break;default:throw new Error("Expected array header, but got "+we[te-1])}let o=this.compiledReader;for(;o;){if(o.propertyCount===r)return o(Ke);o=o.next}if(this.slowReads++>=Wv){let i=this.length==r?this:this.slice(0,r);return o=qe.keyMap?new Function("r","return {"+i.map(a=>qe.decodeKey(a)).map(a=>dh.test(a)?vr(a)+":r()":"["+JSON.stringify(a)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(a=>dh.test(a)?vr(a)+":r()":"["+JSON.stringify(a)+"]:r()").join(",")+"}"),this.compiledReader&&(o.next=this.compiledReader),o.propertyCount=r,this.compiledReader=o,o(Ke)}let n={};if(qe.keyMap)for(let i=0;i64&&yc)return yc.decode(we.subarray(te,te+=e));const r=te+e,o=[];for(t="";te65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|l&1023),o.push(l)}else o.push(n);o.length>=4096&&(t+=Ot.apply(String,o),o.length=0)}return o.length>0&&(t+=Ot.apply(String,o)),t}let Ot=String.fromCharCode;function yz(e){let t=te,r=new Array(e);for(let o=0;o0){te=t;return}r[o]=n}return Ot.apply(String,r)}function Vv(e){if(e<4)if(e<2){if(e===0)return"";{let t=we[te++];if((t&128)>1){te-=1;return}return Ot(t)}}else{let t=we[te++],r=we[te++];if((t&128)>0||(r&128)>0){te-=2;return}if(e<3)return Ot(t,r);let o=we[te++];if((o&128)>0){te-=3;return}return Ot(t,r,o)}else{let t=we[te++],r=we[te++],o=we[te++],n=we[te++];if((t&128)>0||(r&128)>0||(o&128)>0||(n&128)>0){te-=4;return}if(e<6){if(e===4)return Ot(t,r,o,n);{let i=we[te++];if((i&128)>0){te-=5;return}return Ot(t,r,o,n,i)}}else if(e<8){let i=we[te++],a=we[te++];if((i&128)>0||(a&128)>0){te-=6;return}if(e<7)return Ot(t,r,o,n,i,a);let s=we[te++];if((s&128)>0){te-=7;return}return Ot(t,r,o,n,i,a,s)}else{let i=we[te++],a=we[te++],s=we[te++],l=we[te++];if((i&128)>0||(a&128)>0||(s&128)>0||(l&128)>0){te-=8;return}if(e<10){if(e===8)return Ot(t,r,o,n,i,a,s,l);{let c=we[te++];if((c&128)>0){te-=9;return}return Ot(t,r,o,n,i,a,s,l,c)}}else if(e<12){let c=we[te++],d=we[te++];if((c&128)>0||(d&128)>0){te-=10;return}if(e<11)return Ot(t,r,o,n,i,a,s,l,c,d);let u=we[te++];if((u&128)>0){te-=11;return}return Ot(t,r,o,n,i,a,s,l,c,d,u)}else{let c=we[te++],d=we[te++],u=we[te++],f=we[te++];if((c&128)>0||(d&128)>0||(u&128)>0||(f&128)>0){te-=12;return}if(e<14){if(e===12)return Ot(t,r,o,n,i,a,s,l,c,d,u,f);{let p=we[te++];if((p&128)>0){te-=13;return}return Ot(t,r,o,n,i,a,s,l,c,d,u,f,p)}}else{let p=we[te++],h=we[te++];if((p&128)>0||(h&128)>0){te-=14;return}if(e<15)return Ot(t,r,o,n,i,a,s,l,c,d,u,f,p,h);let m=we[te++];if((m&128)>0){te-=15;return}return Ot(t,r,o,n,i,a,s,l,c,d,u,f,p,h,m)}}}}}function Cz(e){return qe.copyBuffers?Uint8Array.prototype.slice.call(we,te,te+=e):we.subarray(te,te+=e)}let Uv=new Float32Array(1),Pa=new Uint8Array(Uv.buffer,0,4);function Sz(){let e=we[te++],t=we[te++],r=(e&127)>>2;if(r===31)return t||e&3?NaN:e&128?-1/0:1/0;if(r===0){let o=((e&3)<<8|t)/16777216;return e&128?-o:o}return Pa[3]=e&128|(r>>1)+56,Pa[2]=(e&7)<<5|t>>3,Pa[1]=t<<5,Pa[0]=0,Uv[0]}new Array(4096);class Zo{constructor(t,r){this.value=t,this.tag=r}}Tt[0]=e=>new Date(e);Tt[1]=e=>new Date(Math.round(e*1e3));Tt[2]=e=>{let t=BigInt(0);for(let r=0,o=e.byteLength;rBigInt(-1)-Tt[2](e);Tt[4]=e=>+(e[1]+"e"+e[0]);Tt[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));const _c=(e,t)=>{e=e-57344;let r=bt[e];r&&r.isShared&&((bt.restoreStructures||(bt.restoreStructures=[]))[e]=r),bt[e]=t,t.read=Sc(t)};Tt[gz]=e=>{let t=e.length,r=e[1];_c(e[0],r);let o={};for(let n=2;nEt?Et[0].slice(Et.position0,Et.position0+=e):new Zo(e,14);Tt[15]=e=>Et?Et[1].slice(Et.position1,Et.position1+=e):new Zo(e,15);let wz={Error,RegExp};Tt[27]=e=>(wz[e[0]]||Error)(e[1],e[2]);const Kv=e=>{if(we[te++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let t=e();return or=or?t.concat(or.slice(t.length)):t,or.prefixes=e(),or.suffixes=e(),e()};Kv.handlesRead=!0;Tt[51]=Kv;Tt[lh]=e=>{if(!or)if(qe.getShared)Hd();else return new Zo(e,lh);if(typeof e=="number")return or[16+(e>=0?2*e:-2*e-1)];throw new Error("No support for non-integer packed references yet")};Tt[28]=e=>{_r||(_r=new Map,_r.id=0);let t=_r.id++,r=we[te],o;r>>5==4?o=[]:o={};let n={target:o};_r.set(t,n);let i=e();return n.used?Object.assign(o,i):(n.target=i,i)};Tt[28].handlesRead=!0;Tt[29]=e=>{let t=_r.get(e);return t.used=!0,t.target};Tt[258]=e=>new Set(e);(Tt[259]=e=>(qe.mapsAsObjects&&(qe.mapsAsObjects=!1,si=!0),e())).handlesRead=!0;function bn(e,t){return typeof e=="string"?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function Oo(){if(!or)if(qe.getShared)Hd();else throw new Error("No packed values available");return or}const _z=1399353956;Cc.push((e,t)=>{if(e>=225&&e<=255)return bn(Oo().prefixes[e-224],t);if(e>=28704&&e<=32767)return bn(Oo().prefixes[e-28672],t);if(e>=1879052288&&e<=2147483647)return bn(Oo().prefixes[e-1879048192],t);if(e>=216&&e<=223)return bn(t,Oo().suffixes[e-216]);if(e>=27647&&e<=28671)return bn(t,Oo().suffixes[e-27639]);if(e>=1811940352&&e<=1879048191)return bn(t,Oo().suffixes[e-1811939328]);if(e==_z)return{packedValues:or,structures:bt.slice(0),version:t};if(e==55799)return t});const Pz=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,uh=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array>"u"?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array>"u"?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],Tz=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e{if(!e)throw new Error("Could not find typed array for code "+t);return new e(Uint8Array.prototype.slice.call(a,0).buffer)}:a=>{if(!e)throw new Error("Could not find typed array for code "+t);let s=new DataView(a.buffer,a.byteOffset,a.byteLength),l=a.length>>i,c=new e(l),d=s[r];for(let u=0;u23)switch(e){case 24:e=we[te++];break;case 25:e=Xt.getUint16(te),te+=2;break;case 26:e=Xt.getUint32(te),te+=4;break}return e}function Hd(){if(qe.getShared){let e=qv(()=>(we=null,qe.getShared()))||{},t=e.structures||[];qe.sharedVersion=e.version,or=qe.sharedValues=e.packedValues,bt===!0?qe.structures=bt=t:bt.splice.apply(bt,[0,t.length].concat(t))}}function qv(e){let t=Yo,r=te,o=cs,n=Bi,i=ls,a=_r,s=Et,l=new Uint8Array(we.slice(0,Yo)),c=bt,d=qe,u=Fi,f=e();return Yo=t,te=r,cs=o,Bi=n,ls=i,_r=a,Et=s,we=l,Fi=u,bt=c,qe=d,Xt=new DataView(we.buffer,we.byteOffset,we.byteLength),f}function Pc(){we=null,_r=null,bt=null}const jd=new Array(147);for(let e=0;e<256;e++)jd[e]=+("1e"+Math.floor(45.15-e*.30103));let Nd=new Li({useRecords:!1});Nd.decode;Nd.decodeMultiple;let La;try{La=new TextEncoder}catch{}let Tc,Gv;const Ns=typeof globalThis=="object"&&globalThis.Buffer,Qi=typeof Ns<"u",xl=Qi?Ns.allocUnsafeSlow:Uint8Array,fh=Qi?Ns:Uint8Array,hh=256,ph=Qi?4294967296:2144337920;let yl,j,ct,$=0,no,Rt=null;const Rz=61440,Iz=/[\u0080-\uFFFF]/,cr=Symbol("record-id");class Ez extends Li{constructor(t){super(t),this.offset=0;let r,o,n,i,a;t=t||{};let s=fh.prototype.utf8Write?function(y,M,P){return j.utf8Write(y,M,P)}:La&&La.encodeInto?function(y,M){return La.encodeInto(y,j.subarray(M)).written}:!1,l=this,c=t.structures||t.saveStructures,d=t.maxSharedStructures;if(d==null&&(d=c?128:0),d>8190)throw new Error("Maximum maxSharedStructure is 8190");let u=t.sequential;u&&(d=0),this.structures||(this.structures=[]),this.saveStructures&&(this.saveShared=this.saveStructures);let f,p,h=t.sharedValues,m;if(h){m=Object.create(null);for(let y=0,M=h.length;ythis.encodeKeys(P));break}return this.encode(y,M)},this.encode=function(y,M){if(j||(j=new xl(8192),ct=new DataView(j.buffer,0,8192),$=0),no=j.length-10,no-$<2048?(j=new xl(j.length),ct=new DataView(j.buffer,0,j.length),no=j.length-10,$=0):M===bh&&($=$+7&2147483640),r=$,l.useSelfDescribedHeader&&(ct.setUint32($,3654940416),$+=3),a=l.structuredClone?new Map:null,l.bundleStrings&&typeof y!="string"?(Rt=[],Rt.size=1/0):Rt=null,o=l.structures,o){if(o.uninitialized){let I=l.getShared()||{};l.structures=o=I.structures||[],l.sharedVersion=I.version;let _=l.sharedValues=I.packedValues;if(_){m={};for(let V=0,ne=_.length;Vd&&!u&&(P=d),!o.transitions){o.transitions=Object.create(null);for(let I=0;I0){j[$++]=216,j[$++]=51,zr(4);let I=P.values;w(I),zr(0),zr(0),p=Object.create(m||null);for(let _=0,V=I.length;_no&&R($),l.offset=$;let P=Az(j.subarray(r,$),a.idsToInsert);return a=null,P}return M&bh?(j.start=r,j.end=$,j):j.subarray(r,$)}finally{if(o){if(k<10&&k++,o.length>d&&(o.length=d),g>1e4)o.transitions=null,k=0,g=0,v.length>0&&(v=[]);else if(v.length>0&&!u){for(let P=0,I=v.length;Pd&&(l.structures=l.structures.slice(0,d));let P=j.subarray(r,$);return l.updateSharedData()===!1?l.encode(y):P}M&Oz&&($=r)}},this.findCommonStringsToPack=()=>(f=new Map,m||(m=Object.create(null)),y=>{let M=y&&y.threshold||4,P=this.pack?y.maxPrivatePackedValues||16:0;h||(h=this.sharedValues=[]);for(let[I,_]of f)_.count>M&&(m[I]=P++,h.push(I),n=!0);for(;this.saveShared&&this.updateSharedData()===!1;);f=null});const w=y=>{$>no&&(j=R($));var M=typeof y,P;if(M==="string"){if(p){let ne=p[y];if(ne>=0){ne<16?j[$++]=ne+224:(j[$++]=198,ne&1?w(15-ne>>1):w(ne-16>>1));return}else if(f&&!t.pack){let de=f.get(y);de?de.count++:f.set(y,{count:1})}}let I=y.length;if(Rt&&I>=4&&I<1024){if((Rt.size+=I)>Rz){let de,G=(Rt[0]?Rt[0].length*3+Rt[1].length:0)+10;$+G>no&&(j=R($+G)),j[$++]=217,j[$++]=223,j[$++]=249,j[$++]=Rt.position?132:130,j[$++]=26,de=$-r,$+=4,Rt.position&&vh(r,w),Rt=["",""],Rt.size=0,Rt.position=de}let ne=Iz.test(y);Rt[ne?0:1]+=y,j[$++]=ne?206:207,w(I);return}let _;I<32?_=1:I<256?_=2:I<65536?_=3:_=5;let V=I*3;if($+V>no&&(j=R($+V)),I<64||!s){let ne,de,G,oe=$+_;for(ne=0;ne>6|192,j[oe++]=de&63|128):(de&64512)===55296&&((G=y.charCodeAt(ne+1))&64512)===56320?(de=65536+((de&1023)<<10)+(G&1023),ne++,j[oe++]=de>>18|240,j[oe++]=de>>12&63|128,j[oe++]=de>>6&63|128,j[oe++]=de&63|128):(j[oe++]=de>>12|224,j[oe++]=de>>6&63|128,j[oe++]=de&63|128);P=oe-$-_}else P=s(y,$+_,V);P<24?j[$++]=96|P:P<256?(_<2&&j.copyWithin($+2,$+1,$+1+P),j[$++]=120,j[$++]=P):P<65536?(_<3&&j.copyWithin($+3,$+2,$+2+P),j[$++]=121,j[$++]=P>>8,j[$++]=P&255):(_<5&&j.copyWithin($+5,$+3,$+3+P),j[$++]=122,ct.setUint32($,P),$+=4),$+=P}else if(M==="number")if(!this.alwaysUseFloat&&y>>>0===y)y<24?j[$++]=y:y<256?(j[$++]=24,j[$++]=y):y<65536?(j[$++]=25,j[$++]=y>>8,j[$++]=y&255):(j[$++]=26,ct.setUint32($,y),$+=4);else if(!this.alwaysUseFloat&&y>>0===y)y>=-24?j[$++]=31-y:y>=-256?(j[$++]=56,j[$++]=~y):y>=-65536?(j[$++]=57,ct.setUint16($,~y),$+=2):(j[$++]=58,ct.setUint32($,~y),$+=4);else{let I;if((I=this.useFloat32)>0&&y<4294967296&&y>=-2147483648){j[$++]=250,ct.setFloat32($,y);let _;if(I<4||(_=y*jd[(j[$]&127)<<1|j[$+1]>>7])>>0===_){$+=4;return}else $--}j[$++]=251,ct.setFloat64($,y),$+=8}else if(M==="object")if(!y)j[$++]=246;else{if(a){let _=a.get(y);if(_){if(j[$++]=216,j[$++]=29,j[$++]=25,!_.references){let V=a.idsToInsert||(a.idsToInsert=[]);_.references=[],V.push(_)}_.references.push($-r),$+=2;return}else a.set(y,{offset:$-r})}let I=y.constructor;if(I===Object)T(y,!0);else if(I===Array){P=y.length,P<24?j[$++]=128|P:zr(P);for(let _=0;_>8,j[$++]=P&255):(j[$++]=186,ct.setUint32($,P),$+=4),l.keyMap)for(let[_,V]of y)w(l.encodeKey(_)),w(V);else for(let[_,V]of y)w(_),w(V);else{for(let _=0,V=Tc.length;_>8,j[$++]=G&255):G>-1&&(j[$++]=218,ct.setUint32($,G),$+=4),de.encode.call(this,y,w,R);return}}if(y[Symbol.iterator]){if(yl){let _=new Error("Iterable should be serialized as iterator");throw _.iteratorNotHandled=!0,_}j[$++]=159;for(let _ of y)w(_);j[$++]=255;return}if(y[Symbol.asyncIterator]||Cl(y)){let _=new Error("Iterable/blob should be serialized as iterator");throw _.iteratorNotHandled=!0,_}if(this.useToJSON&&y.toJSON){const _=y.toJSON();if(_!==y)return w(_)}T(y,!y.hasOwnProperty)}}else if(M==="boolean")j[$++]=y?245:244;else if(M==="bigint"){if(y=0)j[$++]=27,ct.setBigUint64($,y);else if(y>-(BigInt(1)<{let M=Object.keys(y),P=Object.values(y),I=M.length;if(I<24?j[$++]=160|I:I<256?(j[$++]=184,j[$++]=I):I<65536?(j[$++]=185,j[$++]=I>>8,j[$++]=I&255):(j[$++]=186,ct.setUint32($,I),$+=4),l.keyMap)for(let _=0;_{j[$++]=185;let P=$-r;$+=2;let I=0;if(l.keyMap)for(let _ in y)(M||y.hasOwnProperty(_))&&(w(l.encodeKey(_)),w(y[_]),I++);else for(let _ in y)(M||y.hasOwnProperty(_))&&(w(_),w(y[_]),I++);j[P+++r]=I>>8,j[P+r]=I&255}:(y,M)=>{let P,I=i.transitions||(i.transitions=Object.create(null)),_=0,V=0,ne,de;if(this.keyMap){de=Object.keys(y).map(oe=>this.encodeKey(oe)),V=de.length;for(let oe=0;oe>8|224,j[$++]=G&255;else if(de||(de=I.__keys__||(I.__keys__=Object.keys(y))),ne===void 0?(G=i.nextId++,G||(G=0,i.nextId=1),G>=hh&&(i.nextId=(G=d)+1)):G=ne,i[G]=de,G>8|224,j[$++]=G&255,I=i.transitions;for(let oe=0;oe=hh-d&&(v.shift()[cr]=void 0),v.push(I),zr(V+2),w(57344+G),w(de),M===null)return;for(let oe in y)(M||y.hasOwnProperty(oe))&&w(y[oe]);return}if(V<24?j[$++]=128|V:zr(V),M!==null)for(let oe in y)(M||y.hasOwnProperty(oe))&&w(y[oe])},R=y=>{let M;if(y>16777216){if(y-r>ph)throw new Error("Encoded buffer would be larger than maximum buffer size");M=Math.min(ph,Math.round(Math.max((y-r)*(y>67108864?1.25:2),4194304)/4096)*4096)}else M=(Math.max(y-r<<2,j.length-1)>>12)+1<<12;let P=new xl(M);return ct=new DataView(P.buffer,0,M),j.copy?j.copy(P,0,r,y):P.set(j.slice(r,y)),$-=r,r=0,no=P.length-10,j=P};let B=100,x=1e3;this.encodeAsIterable=function(y,M){return Q(y,M,S)},this.encodeAsAsyncIterable=function(y,M){return Q(y,M,A)};function*S(y,M,P){let I=y.constructor;if(I===Object){let _=l.useRecords!==!1;_?T(y,null):mh(Object.keys(y).length,160);for(let V in y){let ne=y[V];_||w(V),ne&&typeof ne=="object"?M[V]?yield*S(ne,M[V]):yield*z(ne,M,V):w(ne)}}else if(I===Array){let _=y.length;zr(_);for(let V=0;V<_;V++){let ne=y[V];ne&&(typeof ne=="object"||$-r>B)?M.element?yield*S(ne,M.element):yield*z(ne,M,"element"):w(ne)}}else if(y[Symbol.iterator]){j[$++]=159;for(let _ of y)_&&(typeof _=="object"||$-r>B)?M.element?yield*S(_,M.element):yield*z(_,M,"element"):w(_);j[$++]=255}else Cl(y)?(mh(y.size,64),yield j.subarray(r,$),yield y,O()):y[Symbol.asyncIterator]?(j[$++]=159,yield j.subarray(r,$),yield y,O(),j[$++]=255):w(y);P&&$>r?yield j.subarray(r,$):$-r>B&&(yield j.subarray(r,$),O())}function*z(y,M,P){let I=$-r;try{w(y),$-r>B&&(yield j.subarray(r,$),O())}catch(_){if(_.iteratorNotHandled)M[P]={},$=r+I,yield*S.call(this,y,M[P]);else throw _}}function O(){B=x,l.encode(null,Sl)}function Q(y,M,P){return M&&M.chunkThreshold?B=x=M.chunkThreshold:B=100,y&&typeof y=="object"?(l.encode(null,Sl),P(y,l.iterateProperties||(l.iterateProperties={}),!0)):[l.encode(y)]}async function*A(y,M){for(let P of S(y,M,!0)){let I=P.constructor;if(I===fh||I===Uint8Array)yield P;else if(Cl(P)){let _=P.stream().getReader(),V;for(;!(V=await _.read()).done;)yield V.value}else if(P[Symbol.asyncIterator])for await(let _ of P)O(),_?yield*A(_,M.async||(M.async={})):yield l.encode(_);else yield P}}}useBuffer(t){j=t,ct=new DataView(j.buffer,j.byteOffset,j.byteLength),$=0}clearSharedData(){this.structures&&(this.structures=[]),this.sharedValues&&(this.sharedValues=void 0)}updateSharedData(){let t=this.sharedVersion||0;this.sharedVersion=t+1;let r=this.structures.slice(0),o=new Yv(r,this.sharedValues,this.sharedVersion),n=this.saveShared(o,i=>(i&&i.version||0)==t);return n===!1?(o=this.getShared()||{},this.structures=o.structures||[],this.sharedValues=o.packedValues,this.sharedVersion=o.version,this.structures.nextId=this.structures.length):r.forEach((i,a)=>this.structures[a]=i),n}}function mh(e,t){e<24?j[$++]=t|e:e<256?(j[$++]=t|24,j[$++]=e):e<65536?(j[$++]=t|25,j[$++]=e>>8,j[$++]=e&255):(j[$++]=t|26,ct.setUint32($,e),$+=4)}class Yv{constructor(t,r,o){this.structures=t,this.packedValues=r,this.version=o}}function zr(e){e<24?j[$++]=128|e:e<256?(j[$++]=152,j[$++]=e):e<65536?(j[$++]=153,j[$++]=e>>8,j[$++]=e&255):(j[$++]=154,ct.setUint32($,e),$+=4)}const zz=typeof Blob>"u"?function(){}:Blob;function Cl(e){if(e instanceof zz)return!0;let t=e[Symbol.toStringTag];return t==="Blob"||t==="File"}function Ha(e,t){switch(typeof e){case"string":if(e.length>3){if(t.objectMap[e]>-1||t.values.length>=t.maxValues)return;let o=t.get(e);if(o)++o.count==2&&t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let n=t.samplingPackedValues.get(e);n?n.count++:t.samplingPackedValues.set(e,{count:1})}}break;case"object":if(e)if(e instanceof Array)for(let o=0,n=e.length;o"u"?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array>"u"?function(){}:BigInt64Array,Float32Array,Float64Array,Yv];Tc=[{tag:1,encode(e,t){let r=e.getTime()/1e3;(this.useTimestamp32||e.getMilliseconds()===0)&&r>=0&&r<4294967296?(j[$++]=26,ct.setUint32($,r),$+=4):(j[$++]=251,ct.setFloat64($,r),$+=8)}},{tag:258,encode(e,t){let r=Array.from(e);t(r)}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t(["RegExp",e.source,e.flags])}},{getTag(e){return e.tag},encode(e,t){t(e.value)}},{encode(e,t,r){gh(e,r)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||Qi&&this.tagUint8Array!==!1))return 64},encode(e,t,r){gh(e,r)}},Ir(68,1),Ir(69,2),Ir(70,4),Ir(71,8),Ir(72,1),Ir(77,2),Ir(78,4),Ir(79,8),Ir(85,4),Ir(86,8),{encode(e,t){let r=e.packedValues||[],o=e.structures||[];if(r.values.length>0){j[$++]=216,j[$++]=51,zr(4);let n=r.values;t(n),zr(0),zr(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let i=0,a=n.length;i1&&(e-=4),{tag:e,encode:function(o,n){let i=o.byteLength,a=o.byteOffset||0,s=o.buffer||o;n(Qi?Ns.from(s,a,i):new Uint8Array(s,a,i))}}}function gh(e,t){let r=e.byteLength;r<24?j[$++]=64+r:r<256?(j[$++]=88,j[$++]=r):r<65536?(j[$++]=89,j[$++]=r>>8,j[$++]=r&255):(j[$++]=90,ct.setUint32($,r),$+=4),$+r>=j.length&&t($+r),j.set(e.buffer?e:new Uint8Array(e),$),$+=r}function Az(e,t){let r,o=t.length*2,n=e.length-o;t.sort((i,a)=>i.offset>a.offset?1:-1);for(let i=0;i>8,e[s]=i&255}for(;r=t.pop();){let i=r.offset;e.copyWithin(i+o,i,n),o-=2;let a=i+o;e[a++]=216,e[a++]=28,n=i}return e}function vh(e,t){ct.setUint32(Rt.position+e,$-Rt.position-e+1);let r=Rt;Rt=null,t(r[0]),t(r[1])}let Wd=new Ez({useRecords:!1});Wd.encode;Wd.encodeAsIterable;Wd.encodeAsAsyncIterable;const bh=512,Oz=1024,Sl=2048;function cn(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}class Xv{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const r=[],o=t.byteLength,n=Math.ceil(o/this.chunkedMTU);let i=0,a=0;for(;a=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return wl.browserDetails.browser}getVersion(){return wl.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=wl.browserDetails.version||0;if(e==="chrome"&&t=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let r,o=!1;try{r=new RTCPeerConnection,r.addTransceiver("audio"),o=!0}catch{}finally{r&&r.close()}return o}toString(){return`Supports: - browser:${this.getBrowser()} - version:${this.getVersion()} - isIOS:${this.isIOS} - isWebRTCSupported:${this.isWebRTCSupported()} - isBrowserSupported:${this.isBrowserSupported()} - isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=["iPad","iPhone","iPod"].includes(navigator.platform),this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},Bz=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),Jv=()=>Math.random().toString(36).slice(2),xh={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class Fz extends Xv{noop(){}blobToArrayBuffer(t,r){const o=new FileReader;return o.onload=function(n){n.target&&r(n.target.result)},o.readAsArrayBuffer(t),o}binaryStringToArrayBuffer(t){const r=new Uint8Array(t.length);for(let o=0;o=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...r){const o=[Lz,...r];for(const n in o)o[n]instanceof Error&&(o[n]="("+o[n].name+") "+o[n].message);t>=3?console.log(...o):t>=2?console.warn("WARNING",...o):t>=1&&console.error("ERROR",...o)}constructor(){this._logLevel=0}}var _e=new Hz,Vd={},jz=Object.prototype.hasOwnProperty,Zt="~";function Hi(){}Object.create&&(Hi.prototype=Object.create(null),new Hi().__proto__||(Zt=!1));function Nz(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function Zv(e,t,r,o,n){if(typeof r!="function")throw new TypeError("The listener must be a function");var i=new Nz(r,o||e,n),a=Zt?Zt+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function ja(e,t){--e._eventsCount===0?e._events=new Hi:delete e._events[t]}function qt(){this._events=new Hi,this._eventsCount=0}qt.prototype.eventNames=function(){var t=[],r,o;if(this._eventsCount===0)return t;for(o in r=this._events)jz.call(r,o)&&t.push(Zt?o.slice(1):o);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};qt.prototype.listeners=function(t){var r=Zt?Zt+t:t,o=this._events[r];if(!o)return[];if(o.fn)return[o.fn];for(var n=0,i=o.length,a=new Array(i);nFr);cn(dn,"PeerErrorType",()=>vt);cn(dn,"BaseConnectionErrorType",()=>ji);cn(dn,"DataConnectionErrorType",()=>Ni);cn(dn,"SerializationType",()=>Bn);cn(dn,"SocketEventType",()=>Dr);cn(dn,"ServerMessageType",()=>Dt);var Fr;(function(e){e.Data="data",e.Media="media"})(Fr||(Fr={}));var vt;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(vt||(vt={}));var ji;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(ji||(ji={}));var Ni;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(Ni||(Ni={}));var Bn;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(Bn||(Bn={}));var Dr;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(Dr||(Dr={}));var Dt;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(Dt||(Dt={}));var Ud={};Ud=JSON.parse('{"name":"peerjs","version":"1.5.2","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu ","afrokick ","ericz ","Jairo ","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana ","Carlos Caballero ","hc ","Muhammad Asif ","PrashoonB ","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski ","lmb ","Jairooo ","Moritz Stückler ","Simon ","Denis Lukov ","Philipp Hancke ","Hans Oksendahl ","Jess ","khankuan ","DUODVK ","XiZhao ","Matthias Lohr ","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt ","Chris Cowan ","Alex Chuev ","alxnull ","Yemel Jardi ","Ben Parnell ","Benny Lichtner ","fresheneesz ","bob.barstead@exaptive.com ","chandika ","emersion ","Christopher Van ","eddieherm ","Eduardo Pinho ","Evandro Zanatta ","Gardner Bickford ","Gian Luca ","PatrickJS ","jonnyf ","Hizkia Felix ","Hristo Oskov ","Isaac Madwed ","Ilya Konanykhin ","jasonbarry ","Jonathan Burke ","Josh Hamit ","Jordan Austin ","Joel Wetzell ","xizhao ","Alberto Torres ","Jonathan Mayol ","Jefferson Felix ","Rolf Erik Lekang ","Kevin Mai-Husan Chia ","Pepijn de Vos ","JooYoung ","Tobias Speicher ","Steve Blaurock ","Kyrylo Shegeda ","Diwank Singh Tomer ","Sören Balko ","Arpit Solanki ","Yuki Ito ","Artur Zayats "],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-cbor":"dist/serializer.cbor.mjs","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-cbor":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/Cbor.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","cbor-x":"1.5.4","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^8.0.0"},"alias":{"process":false,"buffer":false}}');class Wz extends Vd.EventEmitter{constructor(t,r,o,n,i,a=5e3){super(),this.pingInterval=a,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+r+":"+o+n+"peerjs?key="+i}start(t,r){this._id=t;const o=`${this._baseUrl}&id=${t}&token=${r}`;this._socket||!this._disconnected||(this._socket=new WebSocket(o+"&version="+Ud.version),this._disconnected=!1,this._socket.onmessage=n=>{let i;try{i=JSON.parse(n.data),_e.log("Server message received:",i)}catch{_e.log("Invalid server message",n.data);return}this.emit(Dr.Message,i)},this._socket.onclose=n=>{this._disconnected||(_e.log("Socket closed.",n),this._cleanup(),this._disconnected=!0,this.emit(Dr.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),_e.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){_e.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:Dt.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const r of t)this.send(r)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(Dr.Error,"Invalid message");return}if(!this._wsOpen())return;const r=JSON.stringify(t);this._socket.send(r)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class Qv{constructor(t){this.connection=t}startConnection(t){const r=this._startPeerConnection();if(this.connection.peerConnection=r,this.connection.type===Fr.Media&&t._stream&&this._addTracksToConnection(t._stream,r),t.originator){const o=this.connection,n={ordered:!!t.reliable},i=r.createDataChannel(o.label,n);o._initializeDataChannel(i),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){_e.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const r=this.connection.peer,o=this.connection.connectionId,n=this.connection.type,i=this.connection.provider;_e.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(_e.log(`Received ICE candidates for ${r}:`,a.candidate),i.socket.send({type:Dt.Candidate,payload:{candidate:a.candidate,type:n,connectionId:o},dst:r}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":_e.log("iceConnectionState is failed, closing connections to "+r),this.connection.emitError(ji.NegotiationFailed,"Negotiation of connection to "+r+" failed."),this.connection.close();break;case"closed":_e.log("iceConnectionState is closed, closing connections to "+r),this.connection.emitError(ji.ConnectionClosed,"Connection to "+r+" closed."),this.connection.close();break;case"disconnected":_e.log("iceConnectionState changed to disconnected on the connection with "+r);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},_e.log("Listening for data channel"),t.ondatachannel=a=>{_e.log("Received data channel");const s=a.channel;i.getConnection(r,o)._initializeDataChannel(s)},_e.log("Listening for remote stream"),t.ontrack=a=>{_e.log("Received remote stream");const s=a.streams[0],l=i.getConnection(r,o);if(l.type===Fr.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){_e.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const r=t.signalingState!=="closed";let o=!1;const n=this.connection.dataChannel;n&&(o=!!n.readyState&&n.readyState!=="closed"),(r||o)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,r=this.connection.provider;try{const o=await t.createOffer(this.connection.options.constraints);_e.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(o.sdp=this.connection.options.sdpTransform(o.sdp)||o.sdp);try{await t.setLocalDescription(o),_e.log("Set localDescription:",o,`for:${this.connection.peer}`);let n={sdp:o,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===Fr.Data){const i=this.connection;n={...n,label:i.label,reliable:i.reliable,serialization:i.serialization}}r.socket.send({type:Dt.Offer,payload:n,dst:this.connection.peer})}catch(n){n!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(r.emitError(vt.WebRTC,n),_e.log("Failed to setLocalDescription, ",n))}}catch(o){r.emitError(vt.WebRTC,o),_e.log("Failed to createOffer, ",o)}}async _makeAnswer(){const t=this.connection.peerConnection,r=this.connection.provider;try{const o=await t.createAnswer();_e.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(o.sdp=this.connection.options.sdpTransform(o.sdp)||o.sdp);try{await t.setLocalDescription(o),_e.log("Set localDescription:",o,`for:${this.connection.peer}`),r.socket.send({type:Dt.Answer,payload:{sdp:o,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(n){r.emitError(vt.WebRTC,n),_e.log("Failed to setLocalDescription, ",n)}}catch(o){r.emitError(vt.WebRTC,o),_e.log("Failed to create answer, ",o)}}async handleSDP(t,r){r=new RTCSessionDescription(r);const o=this.connection.peerConnection,n=this.connection.provider;_e.log("Setting remote description",r);const i=this;try{await o.setRemoteDescription(r),_e.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await i._makeAnswer()}catch(a){n.emitError(vt.WebRTC,a),_e.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){_e.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),_e.log(`Added ICE candidate for:${this.connection.peer}`)}catch(r){this.connection.provider.emitError(vt.WebRTC,r),_e.log("Failed to handleCandidate, ",r)}}_addTracksToConnection(t,r){if(_e.log(`add tracks from stream ${t.id} to peer connection`),!r.addTrack)return _e.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(o=>{r.addTrack(o,t)})}_addStreamToMediaConnection(t,r){_e.log(`add stream ${t.id} to media connection ${r.connectionId}`),r.addStream(t)}}class e0 extends Vd.EventEmitter{emitError(t,r){_e.error("Error:",r),this.emit("error",new Vz(`${t}`,r))}}class Vz extends Error{constructor(t,r){typeof r=="string"?super(r):(super(),Object.assign(this,r)),this.type=t}}class t0 extends e0{get open(){return this._open}constructor(t,r,o){super(),this.peer=t,this.provider=r,this.options=o,this._open=!1,this.metadata=o.metadata}}var $c;const bi=class bi extends t0{get type(){return Fr.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,r,o){super(t,r,o),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||bi.ID_PREFIX+rr.randomToken(),this._negotiator=new Qv(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{_e.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{_e.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){_e.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const r=t.type,o=t.payload;switch(t.type){case Dt.Answer:this._negotiator.handleSDP(r,o.sdp),this._open=!0;break;case Dt.Candidate:this._negotiator.handleCandidate(o.candidate);break;default:_e.warn(`Unrecognized message type:${r} from peer:${this.peer}`);break}}answer(t,r={}){if(this._localStream){_e.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,r&&r.sdpTransform&&(this.options.sdpTransform=r.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const o=this.provider._getMessages(this.connectionId);for(const n of o)this.handleMessage(n);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};$c=new WeakMap,Yn(bi,$c,bi.ID_PREFIX="mc_");let ds=bi;class Uz{constructor(t){this._options=t}_buildRequest(t){const r=this._options.secure?"https":"http",{host:o,port:n,path:i,key:a}=this._options,s=new URL(`${r}://${o}:${n}${i}${a}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",Ud.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){_e.error("Error retrieving ID",t);let r="";throw this._options.path==="/"&&this._options.host!==rr.CLOUD_HOST&&(r=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+r)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let r="";throw this._options.host===rr.CLOUD_HOST?r="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":r="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+r)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw _e.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var Rc,Ic;const Fo=class Fo extends t0{get type(){return Fr.Data}constructor(t,r,o){super(t,r,o),this.connectionId=this.options.connectionId||Fo.ID_PREFIX+Jv(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new Qv(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{_e.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=r=>{_e.log(`DC#${this.connectionId} dc onmessage:`,r.data)},this.dataChannel.onclose=()=>{_e.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,r=!1){if(!this.open){this.emitError(Ni.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,r)}async handleMessage(t){const r=t.payload;switch(t.type){case Dt.Answer:await this._negotiator.handleSDP(t.type,r.sdp);break;case Dt.Candidate:await this._negotiator.handleCandidate(r.candidate);break;default:_e.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};Rc=new WeakMap,Ic=new WeakMap,Yn(Fo,Rc,Fo.ID_PREFIX="dc_"),Yn(Fo,Ic,Fo.MAX_BUFFERED_AMOUNT=8388608);let us=Fo;class Kd extends us{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",r=>this._handleDataMessage(r))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>us.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(r){return _e.error(`DC#:${this.connectionId} Error when sending:`,r),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class _l extends Kd{close(t){super.close(t),this._chunkedData={}}constructor(t,r,o){super(t,r,o),this.chunker=new Xv,this.serialization=Bn.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const r=sv(t),o=r.__peerData;if(o){if(o.type==="close"){this.close();return}this._handleChunk(r);return}this.emit("data",r)}_handleChunk(t){const r=t.__peerData,o=this._chunkedData[r]||{data:[],count:0,total:t.total};if(o.data[t.n]=new Uint8Array(t.data),o.count++,this._chunkedData[r]=o,o.total===o.count){delete this._chunkedData[r];const n=Dz(o.data);this._handleDataMessage({data:n})}}_send(t,r){const o=lv(t);if(o instanceof Promise)return this._send_blob(o);if(!r&&o.byteLength>this.chunker.chunkedMTU){this._sendChunks(o);return}this._bufferedSend(o)}async _send_blob(t){const r=await t;if(r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}_sendChunks(t){const r=this.chunker.chunk(t);_e.log(`DC#${this.connectionId} Try to send ${r.length} chunks...`);for(const o of r)this.send(o,!0)}}class Kz extends Kd{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,r){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=Bn.None}}class qz extends Kd{_handleDataMessage({data:t}){const r=this.parse(this.decoder.decode(t)),o=r.__peerData;if(o&&o.type==="close"){this.close();return}this.emit("data",r)}_send(t,r){const o=this.encoder.encode(this.stringify(t));if(o.byteLength>=rr.chunkedMTU){this.emitError(Ni.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(o)}constructor(...t){super(...t),this.serialization=Bn.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var Ec;const xi=class xi extends e0{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[r,o]of this._connections)t[r]=o;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,r){super(),this._serializers={raw:Kz,json:qz,binary:_l,"binary-utf8":_l,default:_l},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let o;if(t&&t.constructor==Object?r=t:t&&(o=t.toString()),r={debug:0,host:rr.CLOUD_HOST,port:rr.CLOUD_PORT,path:"/",key:xi.DEFAULT_KEY,token:rr.randomToken(),config:rr.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...r},this._options=r,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==rr.CLOUD_HOST?this._options.secure=rr.isSecure():this._options.host==rr.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&_e.setLogFunction(this._options.logFunction),_e.logLevel=this._options.debug||0,this._api=new Uz(r),this._socket=this._createServerConnection(),!rr.supports.audioVideo&&!rr.supports.data){this._delayedAbort(vt.BrowserIncompatible,"The current browser does not support WebRTC");return}if(o&&!rr.validateId(o)){this._delayedAbort(vt.InvalidID,`ID "${o}" is invalid`);return}o?this._initialize(o):this._api.retrieveId().then(n=>this._initialize(n)).catch(n=>this._abort(vt.ServerError,n))}_createServerConnection(){const t=new Wz(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(Dr.Message,r=>{this._handleMessage(r)}),t.on(Dr.Error,r=>{this._abort(vt.SocketError,r)}),t.on(Dr.Disconnected,()=>{this.disconnected||(this.emitError(vt.Network,"Lost connection to server."),this.disconnect())}),t.on(Dr.Close,()=>{this.disconnected||this._abort(vt.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const r=t.type,o=t.payload,n=t.src;switch(r){case Dt.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case Dt.Error:this._abort(vt.ServerError,o.msg);break;case Dt.IdTaken:this._abort(vt.UnavailableID,`ID "${this.id}" is taken`);break;case Dt.InvalidKey:this._abort(vt.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case Dt.Leave:_e.log(`Received leave message from ${n}`),this._cleanupPeer(n),this._connections.delete(n);break;case Dt.Expire:this.emitError(vt.PeerUnavailable,`Could not connect to peer ${n}`);break;case Dt.Offer:{const i=o.connectionId;let a=this.getConnection(n,i);if(a&&(a.close(),_e.warn(`Offer received for existing Connection ID:${i}`)),o.type===Fr.Media){const l=new ds(n,this,{connectionId:i,_payload:o,metadata:o.metadata});a=l,this._addConnection(n,a),this.emit("call",l)}else if(o.type===Fr.Data){const l=new this._serializers[o.serialization](n,this,{connectionId:i,_payload:o,metadata:o.metadata,label:o.label,serialization:o.serialization,reliable:o.reliable});a=l,this._addConnection(n,a),this.emit("connection",l)}else{_e.warn(`Received malformed connection type:${o.type}`);return}const s=this._getMessages(i);for(const l of s)a.handleMessage(l);break}default:{if(!o){_e.warn(`You received a malformed message from ${n} of type ${r}`);return}const i=o.connectionId,a=this.getConnection(n,i);a&&a.peerConnection?a.handleMessage(t):i?this._storeMessage(i,t):_e.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,r){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(r)}_getMessages(t){const r=this._lostMessages.get(t);return r?(this._lostMessages.delete(t),r):[]}connect(t,r={}){if(r={serialization:"default",...r},this.disconnected){_e.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(vt.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const o=new this._serializers[r.serialization](t,this,r);return this._addConnection(t,o),o}call(t,r,o={}){if(this.disconnected){_e.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(vt.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!r){_e.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const n=new ds(t,this,{...o,_stream:r});return this._addConnection(t,n),n}_addConnection(t,r){_e.log(`add connection ${r.type}:${r.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(r)}_removeConnection(t){const r=this._connections.get(t.peer);if(r){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,r){const o=this._connections.get(t);if(!o)return null;for(const n of o)if(n.connectionId===r)return n;return null}_delayedAbort(t,r){setTimeout(()=>{this._abort(t,r)},0)}_abort(t,r){_e.error("Aborting!"),this.emitError(t,r),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(_e.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const r=this._connections.get(t);if(r)for(const o of r)o.close()}disconnect(){if(this.disconnected)return;const t=this.id;_e.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)_e.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)_e.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=r=>{}){this._api.listAllPeers().then(r=>t(r)).catch(r=>this._abort(vt.ServerError,r))}};Ec=new WeakMap,Yn(xi,Ec,xi.DEFAULT_KEY="peerjs");let kc=xi;const Pl=()=>{let e,t;return{promise:new Promise((o,n)=>{e=o,t=n}),resolve:e,reject:t}},Gz=()=>{},Yz=()=>fetch("https://cinema-vikun.metered.live/api/v1/turn/credentials?apiKey=e40e67d7e88d7bc13b3fe0e2bdb962bf0cf4").then(e=>{if(e.ok)return e.json();throw e}),ea=Ty("peer",()=>{const e=tv(),t=_E(),r=tz(),o=Er(null),n=J(),i=J(r.hostId),a=Er(null),s=Er(null),l=J(),c=Er(null),d=Er(null),u=Er(null),f=Er(null),p=J(!1),h=J(!1),m=J(!1),v=J(!1),g=J(!1),{stream:k,start:w,stop:T}=rz({constraints:{audio:!0}}),{stream:R,start:B,stop:x,isSupported:S}=ez({video:{width:{ideal:1920},height:{ideal:1080}},audio:!0}),z=async()=>{if(h.value)return;const re={user:de,screen:G},{promise:xe,resolve:Te,reject:$e}=Pl();return Yz().then(Ye=>{m.value=!0;const Y=new kc(i.value,{config:{iceServers:Ye}});Y.on("open",Oe=>{i.value=Oe,m.value=!1,h.value=!0,Te(Oe)}),Y.on("call",async Oe=>{var De,We;Gz("info","peer.on.call",Oe.metadata),(We=re[(De=Oe.metadata)==null?void 0:De.type])==null||We.call(re,Oe)}),Y.on("error",Oe=>{ne(Oe),$e(Oe)}),o.value=Y}).catch(Ye=>(ne(Ye),$e(Ye))),xe},O=qE(()=>{var re;p.value&&e.info("Call ended"),(re=o.value)==null||re.destroy(),o.value=null,n.value=void 0,i.value=void 0,l.value=void 0,c.value=null,d.value=null,u.value=null,f.value=null,p.value=!1,h.value=!1,m.value=!1,y(),I()},500),Q=async re=>{const{promise:xe,resolve:Te,reject:$e}=Pl();l.value=r.peerId,await _(),await z();const Ye=o.value.call(l.value,k.value,{metadata:{...re,type:"user"}});u.value=Ye;const Y=setTimeout(()=>{if(!p.value){const Oe=new Error("Connection failed");ne(Oe),$e(Oe)}},5e3);return Ye.on("close",O),Ye.on("error",Oe=>{ne(Oe),$e(Oe)}),Ye.on("stream",Oe=>{clearTimeout(Y),p.value=!0,c.value=Oe,Te(Oe)}),a.value=Ye,xe},A=async()=>{try{await B(),g.value=!0}catch(xe){e.error(xe.message);return}const re=o.value.call(l.value,R.value,{metadata:{type:"screen"}});s.value=re,re.on("close",()=>{}),re.on("error",xe=>{ne(xe)})},y=()=>{var re;(re=s.value)==null||re.close(),s.value=null,x(),g.value=!1},M=()=>g.value?y():A(),P=async()=>{var re;v.value=!v.value,(re=u.value.localStream)==null||re.getAudioTracks().forEach(xe=>xe.enabled=v.value)},I=()=>{var re;(re=a.value)==null||re.close(),a.value=null,T(),v.value=!1},_=async()=>{try{await w(),v.value=!0}catch(re){e.error(re.message)}},V=re=>{const{promise:xe,resolve:Te}=Pl(),$e=t.create({title:`${re.username} wants to connect`,action:()=>b(Or,{type:"primary",onClick:()=>{Te(!0),$e.destroy()}},()=>"Admit"),onClose:()=>Te(!1)});return xe},ne=re=>{switch(re==null?void 0:re.type){case"network":return oe();default:X(re)}},de=async re=>{await _(),await V(re.metadata)&&(u.value=re,re.on("close",O),re.on("stream",Te=>{c.value=Te}),re.answer(k.value),p.value=!0,l.value=re.peer)},G=re=>{f.value=re,re.on("stream",xe=>{d.value=xe}),re.on("close",()=>{d.value=null}),re.answer()},oe=re=>{t.warning({content:"Network error"}),window.addEventListener("online",()=>{var xe;e.info("Trying to reconnect..."),(xe=o.value)==null||xe.reconnect(),a.value&&Q(a.value.metadata).then(()=>e.success("Reconnected successfully")).catch(ne)},{once:!0})},X=re=>t.error({content:re.message??re.reason});return tt(R,re=>{re&&(re.oninactive=()=>y())}),{hostId:n,peerId:i,remotePeerId:l,isConnected:p,isMicrophoneEnabled:v,isScreenEnabled:g,isScreenShareSupported:S,isOpening:m,remoteScreenStream:d,remoteUserStream:c,myVoiceStream:k,query:r,connect:Q,close:O,open:z,toggleScreen:M,toggleMicrophone:P}}),Xz={__name:"ViewHome",setup(e){const t=ea(),r=()=>{t.open().then(o=>{t.query.hostId=o,nr(()=>{t.hostId=o})})};return Ft(()=>{t.hostId=t.query.hostId}),(o,n)=>(Qe(),St(Pe(Oi),{align:"center",justify:"center",class:"h-100"},{default:Ne(()=>[ze(oz,{loading:Pe(t).isOpening,onSubmit:r},null,8,["loading"])]),_:1}))}},Jz={__name:"ViewHost",setup(e){const t=ea(),r=tv(),{copy:o}=QE(),n=()=>{o(i.value),r.success("Copied to clipboard")},i=N(()=>{const{origin:a,pathname:s}=window.location;return`${a}${s}?peerId=${t.peerId}`});return Ft(()=>{t.hostId=t.query.hostId,t.peerId=t.query.hostId,t.open().catch(()=>{})}),(a,s)=>(Qe(),St(Pe(Oi),{align:"center",justify:"center",class:"h-100"},{default:Ne(()=>[ze(Pe(DE),{type:"info"},{default:Ne(()=>[yr("Link to share")]),_:1}),ze(Pe(tk),{type:"success"},{default:Ne(()=>[yr(nb(i.value),1)]),_:1}),ze(Pe(Or),{onClick:n},{default:Ne(()=>[yr(" Click to copy ")]),_:1})]),_:1}))}},Zz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},Qz=pt("g",{fill:"none"},[pt("path",{d:"M14.827 9.7l.138-.754a2.266 2.266 0 0 0-.71-2.063C12.883 5.623 10.74 4.996 7.825 5c-2.91.004-4.988.636-6.234 1.895c-.528.533-.72 1.324-.505 2.075l.216.754c.202.704.884 1.175 1.594 1.1l1.424-.149A1.35 1.35 0 0 0 5.52 9.55l.274-1.604A5.49 5.49 0 0 1 7.99 7.43c.787-.024 1.508.103 2.162.382l.442 1.714c.159.617.69 1.078 1.315 1.14l1.432.144a1.354 1.354 0 0 0 1.485-1.11z",fill:"currentColor"})],-1),e4=[Qz],t4=Ce({name:"CallEnd16Filled",render:function(t,r){return Qe(),pr("svg",Zz,e4)}}),r4={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},o4=pt("g",{fill:"none"},[pt("path",{d:"M3.75 3a.75.75 0 0 0-.75.75V5.5a.5.5 0 0 1-1 0V3.75C2 2.784 2.784 2 3.75 2H5.5a.5.5 0 0 1 0 1H3.75zM10 2.5a.5.5 0 0 1 .5-.5h1.75c.966 0 1.75.784 1.75 1.75V5.5a.5.5 0 0 1-1 0V3.75a.75.75 0 0 0-.75-.75H10.5a.5.5 0 0 1-.5-.5zM2.5 10a.5.5 0 0 1 .5.5v1.75c0 .414.336.75.75.75H5.5a.5.5 0 0 1 0 1H3.75A1.75 1.75 0 0 1 2 12.25V10.5a.5.5 0 0 1 .5-.5zm11 0a.5.5 0 0 1 .5.5v1.75A1.75 1.75 0 0 1 12.25 14H10.5a.5.5 0 0 1 0-1h1.75a.75.75 0 0 0 .75-.75V10.5a.5.5 0 0 1 .5-.5z",fill:"currentColor"})],-1),n4=[o4],i4=Ce({name:"FullScreenMaximize16Regular",render:function(t,r){return Qe(),pr("svg",r4,n4)}}),a4={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},s4=pt("g",{fill:"none"},[pt("path",{d:"M8 2a2.5 2.5 0 0 0-2.5 2.5V8a2.5 2.5 0 0 0 5 0V4.5A2.5 2.5 0 0 0 8 2zM4 7.5a.5.5 0 0 1 .5.5a3.5 3.5 0 1 0 7 0a.5.5 0 0 1 1 0a4.5 4.5 0 0 1-4 4.473V13.5a.5.5 0 0 1-1 0v-1.027A4.5 4.5 0 0 1 3.5 8a.5.5 0 0 1 .5-.5z",fill:"currentColor"})],-1),l4=[s4],c4=Ce({name:"Mic16Filled",render:function(t,r){return Qe(),pr("svg",a4,l4)}}),d4={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},u4=pt("g",{fill:"none"},[pt("path",{d:"M10.809 11.516l3.337 3.338a.5.5 0 0 0 .708-.708l-13-13a.5.5 0 1 0-.708.708L5.5 6.207V8a2.5 2.5 0 0 0 3.879 2.086l.717.717A3.5 3.5 0 0 1 4.5 8a.5.5 0 1 0-1 0a4.5 4.5 0 0 0 4 4.473V13.5a.5.5 0 1 0 1 0v-1.027a4.48 4.48 0 0 0 2.309-.957zM12.06 9.94l-.764-.764c.132-.367.203-.763.203-1.176a.5.5 0 0 1 1 0c0 .695-.157 1.353-.439 1.94zm-1.586-1.586L5.682 3.56A2.5 2.5 0 0 1 10.5 4.5V8c0 .12-.008.238-.025.354z",fill:"currentColor"})],-1),f4=[u4],h4=Ce({name:"MicOff16Filled",render:function(t,r){return Qe(),pr("svg",d4,f4)}}),p4={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},m4=pt("g",{fill:"none"},[pt("path",{d:"M2 6.25A2.25 2.25 0 0 1 4.25 4h15.5A2.25 2.25 0 0 1 22 6.25v11.5A2.25 2.25 0 0 1 19.75 20H4.25A2.25 2.25 0 0 1 2 17.75V6.25zm2.25-.75a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h15.5a.75.75 0 0 0 .75-.75V6.25a.75.75 0 0 0-.75-.75H4.25zM12 7.245a.75.75 0 0 1 .53.22l3.255 3.255a.75.75 0 1 1-1.06 1.06L12.75 9.806v6.447a.75.75 0 0 1-1.5 0V9.808L9.28 11.78a.75.75 0 1 1-1.06-1.06l3.25-3.254a.75.75 0 0 1 .53-.22z",fill:"currentColor"})],-1),g4=[m4],v4=Ce({name:"ShareScreenStart24Regular",render:function(t,r){return Qe(),pr("svg",p4,g4)}}),b4={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},x4=pt("g",{fill:"none"},[pt("path",{d:"M2 6.25A2.25 2.25 0 0 1 4.25 4h15.5A2.25 2.25 0 0 1 22 6.25v11.5A2.25 2.25 0 0 1 19.75 20H4.25A2.25 2.25 0 0 1 2 17.75V6.25zm2.25-.75a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h15.5a.75.75 0 0 0 .75-.75V6.25a.75.75 0 0 0-.75-.75H4.25zm3.97 2.715a.75.75 0 0 1 1.06 0l2.72 2.72l2.725-2.716a.75.75 0 0 1 1.06 1.062l-2.724 2.715l2.724 2.724a.75.75 0 1 1-1.06 1.06L12 13.057L9.28 15.78a.75.75 0 1 1-1.06-1.06l2.72-2.724l-2.72-2.72a.75.75 0 0 1 0-1.06z",fill:"currentColor"})],-1),y4=[x4],C4=Ce({name:"ShareScreenStop24Regular",render:function(t,r){return Qe(),pr("svg",b4,y4)}}),S4={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},w4=pt("g",{fill:"none"},[pt("path",{d:"M9 2.5a.5.5 0 0 0-.849-.358l-2.927 2.85H3.5a1.5 1.5 0 0 0-1.5 1.5v2.99a1.5 1.5 0 0 0 1.5 1.5h1.723l2.927 2.875A.5.5 0 0 0 9 13.5v-11zm1.111 2.689a.5.5 0 0 1 .703-.08l.002.001l.002.002l.005.004l.015.013l.046.04c.036.034.085.08.142.142c.113.123.26.302.405.54c.291.48.573 1.193.573 2.148c0 .954-.282 1.668-.573 2.148a3.394 3.394 0 0 1-.405.541a2.495 2.495 0 0 1-.202.196l-.008.007h-.001s-.447.243-.703-.078a.5.5 0 0 1 .075-.7l.002-.002l-.001.001l.002-.001h-.001l.018-.016c.018-.017.048-.045.085-.085a2.4 2.4 0 0 0 .284-.382c.21-.345.428-.882.428-1.63c0-.747-.218-1.283-.428-1.627a2.382 2.382 0 0 0-.368-.465a.5.5 0 0 1-.096-.717zm.079.7h-.002z",fill:"currentColor"})],-1),_4=[w4],P4=Ce({name:"Speaker116Filled",render:function(t,r){return Qe(),pr("svg",S4,_4)}}),T4={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},k4=pt("g",{fill:"none"},[pt("path",{d:"M9 2.5a.5.5 0 0 0-.849-.358l-2.927 2.85H3.5a1.5 1.5 0 0 0-1.5 1.5v2.99a1.5 1.5 0 0 0 1.5 1.5h1.723l2.927 2.875A.5.5 0 0 0 9 13.5v-11zm1.147 3.646a.5.5 0 0 1 .707 0l1.147 1.147l1.146-1.147a.5.5 0 1 1 .707.708L12.708 8l1.146 1.146a.5.5 0 1 1-.707.708L12 8.707l-1.147 1.147a.5.5 0 0 1-.707-.708L11.293 8l-1.146-1.146a.5.5 0 0 1 0-.708z",fill:"currentColor"})],-1),$4=[k4],R4=Ce({name:"SpeakerMute16Filled",render:function(t,r){return Qe(),pr("svg",T4,$4)}}),I4={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},E4=pt("g",{fill:"none"},[pt("path",{d:"M10 7a2 2 0 1 1-4 0a2 2 0 0 1 4 0zM1 4.75C1 3.784 1.784 3 2.75 3h10.5c.966 0 1.75.784 1.75 1.75v6.5A1.75 1.75 0 0 1 13.25 13H2.75A1.75 1.75 0 0 1 1 11.25v-6.5zM11 12h2.25a.75.75 0 0 0 .75-.75v-6.5a.75.75 0 0 0-.75-.75H2.75a.75.75 0 0 0-.75.75v6.5c0 .414.336.75.75.75H5v-1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1z",fill:"currentColor"})],-1),z4=[E4],M4=Ce({name:"VideoPerson16Filled",render:function(t,r){return Qe(),pr("svg",I4,z4)}}),A4={class:"app-video__controls"},Ch={__name:"AppVideo",props:{stream:{type:Object,default:null}},setup(e){const t=e,r=J(),o=J(),n=J(100),i=J(100),a=J(!0),s=J(),l=N(()=>{var m,v;return(((v=(m=t.stream)==null?void 0:m.getVideoTracks)==null?void 0:v.call(m))||[]).length>0}),c=()=>document.fullscreenElement?document.exitFullscreen():r.value.requestFullscreen(),d=h=>{nr(()=>{const m=o.value;h&&m&&(m.srcObject=h,m.play())})},u=h=>{const m=o.value;m&&(n.value=h,i.value=Math.max(h,i.value),m.volume=h===0?0:h/100)},f=()=>{u(n.value===0?i.value:0)},p=()=>{a.value=!0,clearTimeout(s.value),s.value=setTimeout(()=>{a.value=!1},3e3)};return tt(()=>t.stream,d,{immediate:!0}),tt(n,u),Ft(p),(h,m)=>(Qe(),pr("div",{ref_key:"root",ref:r,class:ms(["app-video",{"_show-controls":a.value}]),onMousemove:p},[ze(Pe(f$),{class:"h-100","content-style":"padding: 0;"},{default:Ne(()=>[l.value?wn("",!0):Cs(h.$slots,"preview",{key:0}),Wi(pt("video",{ref_key:"video",ref:o},null,512),[[Ep,l.value]]),pt("div",A4,[ze(Pe(Or),{quaternary:"",circle:"",onClick:f},{icon:Ne(()=>[ze(Pe(fo),null,{default:Ne(()=>[n.value===0?(Qe(),St(Pe(R4),{key:0})):(Qe(),St(Pe(P4),{key:1}))]),_:1})]),_:1}),ze(Pe(EE),{value:n.value,step:1,tooltip:!1,style:{width:"100px"},"on-update:value":u},null,8,["value"]),ze(Pe(Or),{quaternary:"",circle:"",onClick:c},{icon:Ne(()=>[ze(Pe(fo),null,{default:Ne(()=>[ze(Pe(i4))]),_:1})]),_:1})])]),_:3})],34))}},O4={key:0,class:"view-session"},D4={class:"view-session__media"},B4={class:"view-session__controls"},F4={__name:"ViewSession",setup(e){const t=ea();return(r,o)=>Pe(t).isConnected?(Qe(),pr("div",O4,[pt("div",D4,[ze(Ch,{stream:Pe(t).remoteUserStream},{preview:Ne(()=>[ze(Pe(Oi),{align:"center",justify:"center",class:"h-100"},{default:Ne(()=>[ze(Pe(fo),{size:100},{default:Ne(()=>[ze(Pe(M4))]),_:1})]),_:1})]),_:1},8,["stream"]),Pe(t).remoteScreenStream?(Qe(),St(Ch,{key:0,stream:Pe(t).remoteScreenStream},null,8,["stream"])):wn("",!0)]),pt("div",B4,[ze(Pe(Oi),{justify:"center"},{default:Ne(()=>[ze(Pe(Or),{type:Pe(t).isMicrophoneEnabled?"default":"error",size:"large",onClick:Pe(t).toggleMicrophone},{default:Ne(()=>[ze(Pe(fo),null,{default:Ne(()=>[Pe(t).isMicrophoneEnabled?(Qe(),St(Pe(c4),{key:0})):(Qe(),St(Pe(h4),{key:1}))]),_:1})]),_:1},8,["type","onClick"]),Pe(t).isScreenShareSupported?(Qe(),pr(st,{key:0},[Pe(t).isScreenEnabled?(Qe(),St(Pe(nc),{key:0,trigger:"hover"},{trigger:Ne(()=>[ze(Pe(Or),{type:"warning",size:"large",onClick:Pe(t).toggleScreen},{default:Ne(()=>[ze(Pe(fo),{size:24},{default:Ne(()=>[ze(Pe(C4))]),_:1})]),_:1},8,["onClick"])]),default:Ne(()=>[yr(" Stop screen sharing ")]),_:1})):(Qe(),St(Pe(nc),{key:1,trigger:"hover"},{trigger:Ne(()=>[ze(Pe(Or),{size:"large",onClick:Pe(t).toggleScreen},{default:Ne(()=>[ze(Pe(fo),{size:24},{default:Ne(()=>[ze(Pe(v4))]),_:1})]),_:1},8,["onClick"])]),default:Ne(()=>[yr(" Share screen ")]),_:1}))],64)):wn("",!0),ze(Pe(Or),{size:"large",type:"error",onClick:Pe(t).close},{default:Ne(()=>[ze(Pe(fo),null,{default:Ne(()=>[ze(Pe(t4))]),_:1})]),_:1},8,["onClick"])]),_:1})])])):wn("",!0)}},L4={__name:"ViewPeer",setup(e){const t=ea(),r=J(!1),o=J(null),n=J({username:""}),i={username:{required:!0}},a=async()=>{var s;if(!r.value)try{r.value=!0,await((s=o.value)==null?void 0:s.validate()),await t.connect(n.value)}catch{}finally{r.value=!1}};return(s,l)=>(Qe(),St(Pe(Oi),{align:"center",justify:"center",class:"h-100"},{default:Ne(()=>[ze(Pe(nR),{ref_key:"formRef",ref:o,model:n.value,rules:i,size:"large"},{default:Ne(()=>[ze(Pe(WR),{label:"Name",path:"username"},{default:Ne(()=>[ze(Pe(Tk),{value:n.value.username,"onUpdate:value":l[0]||(l[0]=c=>n.value.username=c),loading:r.value,placeholder:"Input your name",onKeydown:hy(a,["enter"])},null,8,["value","loading"])]),_:1}),ze(Pe(Or),{loading:r.value,size:"large",onClick:uy(a,["prevent"]),block:""},{default:Ne(()=>[yr(" Connect ")]),_:1},8,["loading"])]),_:1},8,["model"])]),_:1}))}},H4={__name:"AppPeer",setup(e){const t=ea(),r=J(null),o=N(()=>!t.hostId&&!t.query.peerId),n=N(()=>t.hostId&&!t.isConnected),i=N(()=>t.query.peerId&&!t.isConnected),a=N(()=>t.isConnected),s=[{key:"home",label:"Home",onClick:()=>l()}],l=()=>{t.query.peerId=void 0,t.query.hostId=void 0,nr(()=>{t.close()})};return tt(()=>t.query,c=>{r.value=c.hostId||c.peerId?null:"home"},{deep:!0,immediate:!0}),(c,d)=>(Qe(),pr(st,null,[a.value?wn("",!0):(Qe(),St(Pe(GI),{key:0},{default:Ne(()=>[ze(Pe(sE),{value:r.value,options:s,mode:"horizontal",responsive:""},null,8,["value"])]),_:1})),o.value?(Qe(),St(Xz,{key:1})):n.value?(Qe(),St(Jz,{key:2})):i.value?(Qe(),St(L4,{key:3})):a.value?(Qe(),St(F4,{key:4})):wn("",!0)],64))}},j4={__name:"App",setup(e){return(t,r)=>(Qe(),St(jE,null,{default:Ne(()=>[ze(H4)]),_:1}))}},r0=gy(j4),N4=yy();r0.use(N4);r0.mount("#app")});export default W4(); diff --git a/assets/index-jqs7T2OX.js b/assets/index-jqs7T2OX.js new file mode 100644 index 0000000..e792fb3 --- /dev/null +++ b/assets/index-jqs7T2OX.js @@ -0,0 +1,1784 @@ +var U0=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qn=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)};var Zz=U0((hr,pr)=>{function K0(e,t){for(var r=0;ro[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();/** +* @vue/shared v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Ac(e,t){const r=new Set(e.split(","));return t?o=>r.has(o.toLowerCase()):o=>r.has(o)}const ut={},Sn=[],xr=()=>{},q0=()=>!1,gs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Oc=e=>e.startsWith("onUpdate:"),wt=Object.assign,Dc=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},G0=Object.prototype.hasOwnProperty,et=(e,t)=>G0.call(e,t),De=Array.isArray,wn=e=>vs(e)==="[object Map]",Ph=e=>vs(e)==="[object Set]",He=e=>typeof e=="function",_t=e=>typeof e=="string",jn=e=>typeof e=="symbol",ht=e=>e!==null&&typeof e=="object",kh=e=>(ht(e)||He(e))&&He(e.then)&&He(e.catch),Th=Object.prototype.toString,vs=e=>Th.call(e),Y0=e=>vs(e).slice(8,-1),$h=e=>vs(e)==="[object Object]",Bc=e=>_t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ra=Ac(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bs=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},X0=/-(\w)/g,En=bs(e=>e.replace(X0,(t,r)=>r?r.toUpperCase():"")),J0=/\B([A-Z])/g,en=bs(e=>e.replace(J0,"-$1").toLowerCase()),Rh=bs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gs=bs(e=>e?`on${Rh(e)}`:""),vo=(e,t)=>!Object.is(e,t),Ys=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Z0=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Q0=e=>{const t=_t(e)?Number(e):NaN;return isNaN(t)?e:t};let Jd;const Ih=()=>Jd||(Jd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fc(e){if(De(e)){const t={};for(let r=0;r{if(r){const o=r.split(tb);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function _n(e){let t="";if(_t(e))t=e;else if(De(e))for(let r=0;r_t(e)?e:e==null?"":De(e)||ht(e)&&(e.toString===Th||!He(e.toString))?JSON.stringify(e,zh,2):String(e),zh=(e,t)=>t&&t.__v_isRef?zh(e,t.value):wn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,n],i)=>(r[Xs(o,i)+" =>"]=n,r),{})}:Ph(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Xs(r))}:jn(t)?Xs(t):ht(t)&&!De(t)&&!$h(t)?String(t):t,Xs=(e,t="")=>{var r;return jn(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** +* @vue/reactivity v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ur;class Mh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ur,!t&&ur&&(this.index=(ur.scopes||(ur.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=ur;try{return ur=this,t()}finally{ur=r}}}on(){ur=this}off(){ur=this.parent}stop(t){if(this._active){let r,o;for(r=0,o=this.effects.length;r=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),rn()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=po,r=Uo;try{return po=!0,Uo=this,this._runnings++,Zd(this),this.fn()}finally{Qd(this),this._runnings--,Uo=r,po=t}}stop(){var t;this.active&&(Zd(this),Qd(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function lb(e){return e.value}function Zd(e){e._trackId++,e._depsLength=0}function Qd(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const r=new Map;return r.cleanup=e,r.computed=t,r},Ka=new WeakMap,Ko=Symbol(""),El=Symbol("");function ar(e,t,r){if(po&&Uo){let o=Ka.get(e);o||Ka.set(e,o=new Map);let n=o.get(r);n||o.set(r,n=jh(()=>o.delete(r))),Fh(Uo,n)}}function qr(e,t,r,o,n,i){const a=Ka.get(e);if(!a)return;let s=[];if(t==="clear")s=[...a.values()];else if(r==="length"&&De(e)){const l=Number(o);a.forEach((c,d)=>{(d==="length"||!jn(d)&&d>=l)&&s.push(c)})}else switch(r!==void 0&&s.push(a.get(r)),t){case"add":De(e)?Bc(r)&&s.push(a.get("length")):(s.push(a.get(Ko)),wn(e)&&s.push(a.get(El)));break;case"delete":De(e)||(s.push(a.get(Ko)),wn(e)&&s.push(a.get(El)));break;case"set":wn(e)&&s.push(a.get(Ko));break}jc();for(const l of s)l&&Lh(l,2);Nc()}function cb(e,t){var r;return(r=Ka.get(e))==null?void 0:r.get(t)}const db=Ac("__proto__,__v_isRef,__isVue"),Nh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jn)),eu=ub();function ub(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const o=Je(this);for(let i=0,a=this.length;i{e[t]=function(...r){tn(),jc();const o=Je(this)[t].apply(this,r);return Nc(),rn(),o}}),e}function fb(e){const t=Je(this);return ar(t,"has",e),t.hasOwnProperty(e)}class Wh{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,o){const n=this._isReadonly,i=this._shallow;if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_isShallow")return i;if(r==="__v_raw")return o===(n?i?Pb:qh:i?Kh:Uh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=De(t);if(!n){if(a&&et(eu,r))return Reflect.get(eu,r,o);if(r==="hasOwnProperty")return fb}const s=Reflect.get(t,r,o);return(jn(r)?Nh.has(r):db(r))||(n||ar(t,"get",r),i)?s:Pt(s)?a&&Bc(r)?s:s.value:ht(s)?n?bo(s):Gr(s):s}}class Vh extends Wh{constructor(t=!1){super(!1,t)}set(t,r,o,n){let i=t[r];if(!this._shallow){const l=zn(i);if(!qa(o)&&!zn(o)&&(i=Je(i),o=Je(o)),!De(t)&&Pt(i)&&!Pt(o))return l?!1:(i.value=o,!0)}const a=De(t)&&Bc(r)?Number(r)e,xs=e=>Reflect.getPrototypeOf(e);function sa(e,t,r=!1,o=!1){e=e.__v_raw;const n=Je(e),i=Je(t);r||(vo(t,i)&&ar(n,"get",t),ar(n,"get",i));const{has:a}=xs(n),s=o?Wc:r?Kc:_i;if(a.call(n,t))return s(e.get(t));if(a.call(n,i))return s(e.get(i));e!==n&&e.get(t)}function la(e,t=!1){const r=this.__v_raw,o=Je(r),n=Je(e);return t||(vo(e,n)&&ar(o,"has",e),ar(o,"has",n)),e===n?r.has(e):r.has(e)||r.has(n)}function ca(e,t=!1){return e=e.__v_raw,!t&&ar(Je(e),"iterate",Ko),Reflect.get(e,"size",e)}function tu(e){e=Je(e);const t=Je(this);return xs(t).has.call(t,e)||(t.add(e),qr(t,"add",e,e)),this}function ru(e,t){t=Je(t);const r=Je(this),{has:o,get:n}=xs(r);let i=o.call(r,e);i||(e=Je(e),i=o.call(r,e));const a=n.call(r,e);return r.set(e,t),i?vo(t,a)&&qr(r,"set",e,t):qr(r,"add",e,t),this}function ou(e){const t=Je(this),{has:r,get:o}=xs(t);let n=r.call(t,e);n||(e=Je(e),n=r.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return n&&qr(t,"delete",e,void 0),i}function nu(){const e=Je(this),t=e.size!==0,r=e.clear();return t&&qr(e,"clear",void 0,void 0),r}function da(e,t){return function(o,n){const i=this,a=i.__v_raw,s=Je(a),l=t?Wc:e?Kc:_i;return!e&&ar(s,"iterate",Ko),a.forEach((c,d)=>o.call(n,l(c),l(d),i))}}function ua(e,t,r){return function(...o){const n=this.__v_raw,i=Je(n),a=wn(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=n[e](...o),d=r?Wc:t?Kc:_i;return!t&&ar(i,"iterate",l?El:Ko),{next(){const{value:u,done:f}=c.next();return f?{value:u,done:f}:{value:s?[d(u[0]),d(u[1])]:d(u),done:f}},[Symbol.iterator](){return this}}}}function ro(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vb(){const e={get(i){return sa(this,i)},get size(){return ca(this)},has:la,add:tu,set:ru,delete:ou,clear:nu,forEach:da(!1,!1)},t={get(i){return sa(this,i,!1,!0)},get size(){return ca(this)},has:la,add:tu,set:ru,delete:ou,clear:nu,forEach:da(!1,!0)},r={get(i){return sa(this,i,!0)},get size(){return ca(this,!0)},has(i){return la.call(this,i,!0)},add:ro("add"),set:ro("set"),delete:ro("delete"),clear:ro("clear"),forEach:da(!0,!1)},o={get(i){return sa(this,i,!0,!0)},get size(){return ca(this,!0)},has(i){return la.call(this,i,!0)},add:ro("add"),set:ro("set"),delete:ro("delete"),clear:ro("clear"),forEach:da(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ua(i,!1,!1),r[i]=ua(i,!0,!1),t[i]=ua(i,!1,!0),o[i]=ua(i,!0,!0)}),[e,r,t,o]}const[bb,xb,yb,Cb]=vb();function Vc(e,t){const r=t?e?Cb:yb:e?xb:bb;return(o,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?o:Reflect.get(et(r,n)&&n in o?r:o,n,i)}const Sb={get:Vc(!1,!1)},wb={get:Vc(!1,!0)},_b={get:Vc(!0,!1)},Uh=new WeakMap,Kh=new WeakMap,qh=new WeakMap,Pb=new WeakMap;function kb(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Tb(e){return e.__v_skip||!Object.isExtensible(e)?0:kb(Y0(e))}function Gr(e){return zn(e)?e:Uc(e,!1,pb,Sb,Uh)}function $b(e){return Uc(e,!1,gb,wb,Kh)}function bo(e){return Uc(e,!0,mb,_b,qh)}function Uc(e,t,r,o,n){if(!ht(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=n.get(e);if(i)return i;const a=Tb(e);if(a===0)return e;const s=new Proxy(e,a===2?o:r);return n.set(e,s),s}function mo(e){return zn(e)?mo(e.__v_raw):!!(e&&e.__v_isReactive)}function zn(e){return!!(e&&e.__v_isReadonly)}function qa(e){return!!(e&&e.__v_isShallow)}function Gh(e){return mo(e)||zn(e)}function Je(e){const t=e&&e.__v_raw;return t?Je(t):e}function Mn(e){return Ua(e,"__v_skip",!0),e}const _i=e=>ht(e)?Gr(e):e,Kc=e=>ht(e)?bo(e):e;class Yh{constructor(t,r,o,n){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Hc(()=>t(this._value),()=>Ia(this,1),()=>this.dep&&Hh(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=o}get value(){const t=Je(this);return(!t._cacheable||t.effect.dirty)&&vo(t._value,t._value=t.effect.run())&&Ia(t,2),Xh(t),t.effect._dirtyLevel>=1&&Ia(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Rb(e,t,r=!1){let o,n;const i=He(e);return i?(o=e,n=xr):(o=e.get,n=e.set),new Yh(o,n,i||!n,r)}function Xh(e){po&&Uo&&(e=Je(e),Fh(Uo,e.dep||(e.dep=jh(()=>e.dep=void 0,e instanceof Yh?e:void 0))))}function Ia(e,t=2,r){e=Je(e);const o=e.dep;o&&Lh(o,t)}function Pt(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return Jh(e,!1)}function Mr(e){return Jh(e,!0)}function Jh(e,t){return Pt(e)?e:new Ib(e,t)}class Ib{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Je(t),this._value=r?t:_i(t)}get value(){return Xh(this),this._value}set value(t){const r=this.__v_isShallow||qa(t)||zn(t);t=r?t:Je(t),vo(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:_i(t),Ia(this,2))}}function Ce(e){return Pt(e)?e.value:e}const Eb={get:(e,t,r)=>Ce(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const n=e[t];return Pt(n)&&!Pt(r)?(n.value=r,!0):Reflect.set(e,t,r,o)}};function Zh(e){return mo(e)?e:new Proxy(e,Eb)}function zb(e){const t=De(e)?new Array(e.length):{};for(const r in e)t[r]=Qh(e,r);return t}class Mb{constructor(t,r,o){this._object=t,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return cb(Je(this._object),this._key)}}class Ab{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function tt(e,t,r){return Pt(e)?e:He(e)?new Ab(e):ht(e)&&arguments.length>1?Qh(e,t,r):Y(e)}function Qh(e,t,r){const o=e[t];return Pt(o)?o:new Mb(e,t,r)}/** +* @vue/runtime-core v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function go(e,t,r,o){let n;try{n=o?e(...o):e()}catch(i){ys(i,t,r)}return n}function yr(e,t,r,o){if(He(e)){const i=go(e,t,r,o);return i&&kh(i)&&i.catch(a=>{ys(a,t,r)}),i}const n=[];for(let i=0;i>>1,n=Kt[o],i=ki(n);iDr&&Kt.splice(t,1)}function Fb(e){De(e)?Pn.push(...e):(!co||!co.includes(e,e.allowRecurse?Bo+1:Bo))&&Pn.push(e),tp()}function iu(e,t,r=Pi?Dr+1:0){for(;rki(r)-ki(o));if(Pn.length=0,co){co.push(...t);return}for(co=t,Bo=0;Boe.id==null?1/0:e.id,Lb=(e,t)=>{const r=ki(e)-ki(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function op(e){zl=!1,Pi=!0,Kt.sort(Lb);try{for(Dr=0;Dr_t(p)?p.trim():p)),u&&(n=r.map(Z0))}let s,l=o[s=Gs(t)]||o[s=Gs(En(t))];!l&&i&&(l=o[s=Gs(en(t))]),l&&yr(l,e,6,n);const c=o[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,yr(c,e,6,n)}}function np(e,t,r=!1){const o=t.emitsCache,n=o.get(e);if(n!==void 0)return n;const i=e.emits;let a={},s=!1;if(!He(e)){const l=c=>{const d=np(c,t,!0);d&&(s=!0,wt(a,d))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(ht(e)&&o.set(e,null),null):(De(i)?i.forEach(l=>a[l]=null):wt(a,i),ht(e)&&o.set(e,a),a)}function Cs(e,t){return!e||!gs(t)?!1:(t=t.slice(2).replace(/Once$/,""),et(e,t[0].toLowerCase()+t.slice(1))||et(e,en(t))||et(e,t))}let It=null,ip=null;function Ga(e){const t=It;return It=e,ip=e&&e.type.__scopeId||null,t}function Be(e,t=It,r){if(!t||e._n)return e;const o=(...n)=>{o._d&&bu(-1);const i=Ga(t);let a;try{a=e(...n)}finally{Ga(i),o._d&&bu(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}function Js(e){const{type:t,vnode:r,proxy:o,withProxy:n,props:i,propsOptions:[a],slots:s,attrs:l,emit:c,render:d,renderCache:u,data:f,setupState:p,ctx:h,inheritAttrs:m}=e;let v,g;const T=Ga(e);try{if(r.shapeFlag&4){const k=n||o,I=k;v=Or(d.call(I,k,u,i,p,f,h)),g=l}else{const k=t;v=Or(k.length>1?k(i,{attrs:l,slots:s,emit:c}):k(i,null)),g=t.props?l:jb(l)}}catch(k){mi.length=0,ys(k,e,1),v=ke(Zt)}let w=v;if(g&&m!==!1){const k=Object.keys(g),{shapeFlag:I}=w;k.length&&I&7&&(a&&k.some(Oc)&&(g=Nb(g,a)),w=Yr(w,g))}return r.dirs&&(w=Yr(w),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&(w.transition=r.transition),v=w,Ga(T),v}const jb=e=>{let t;for(const r in e)(r==="class"||r==="style"||gs(r))&&((t||(t={}))[r]=e[r]);return t},Nb=(e,t)=>{const r={};for(const o in e)(!Oc(o)||!(o.slice(9)in t))&&(r[o]=e[o]);return r};function Wb(e,t,r){const{props:o,children:n,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return o?au(o,a,c):!!a;if(l&8){const d=t.dynamicProps;for(let u=0;ue.__isSuspense;function qb(e,t){t&&t.pendingBranch?De(e)?t.effects.push(...e):t.effects.push(e):Fb(e)}const Gb=Symbol.for("v-scx"),Yb=()=>Oe(Gb);function Tr(e,t){return Yc(e,null,t)}const fa={};function Xe(e,t,r){return Yc(e,t,r)}function Yc(e,t,{immediate:r,deep:o,flush:n,once:i,onTrack:a,onTrigger:s}=ut){if(t&&i){const B=t;t=(...x)=>{B(...x),I()}}const l=Ht,c=B=>o===!0?B:Ho(B,o===!1?1:void 0);let d,u=!1,f=!1;if(Pt(e)?(d=()=>e.value,u=qa(e)):mo(e)?(d=()=>c(e),u=!0):De(e)?(f=!0,u=e.some(B=>mo(B)||qa(B)),d=()=>e.map(B=>{if(Pt(B))return B.value;if(mo(B))return c(B);if(He(B))return go(B,l,2)})):He(e)?t?d=()=>go(e,l,2):d=()=>(p&&p(),yr(e,l,3,[h])):d=xr,t&&o){const B=d;d=()=>Ho(B())}let p,h=B=>{p=w.onStop=()=>{go(B,l,4),p=w.onStop=void 0}},m;if(ks)if(h=xr,t?r&&yr(t,l,3,[d(),f?[]:void 0,h]):d(),n==="sync"){const B=Yb();m=B.__watcherHandles||(B.__watcherHandles=[])}else return xr;let v=f?new Array(e.length).fill(fa):fa;const g=()=>{if(!(!w.active||!w.dirty))if(t){const B=w.run();(o||u||(f?B.some((x,S)=>vo(x,v[S])):vo(B,v)))&&(p&&p(),yr(t,l,3,[B,v===fa?void 0:f&&v[0]===fa?[]:v,h]),v=B)}else w.run()};g.allowRecurse=!!t;let T;n==="sync"?T=g:n==="post"?T=()=>or(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),T=()=>Gc(g));const w=new Hc(d,xr,T),k=Lc(),I=()=>{w.stop(),k&&Dc(k.effects,w)};return t?r?g():v=w.run():n==="post"?or(w.run.bind(w),l&&l.suspense):w.run(),m&&m.push(I),I}function Xb(e,t,r){const o=this.proxy,n=_t(e)?e.includes(".")?ap(o,e):()=>o[e]:e.bind(o,o);let i;He(t)?i=t:(i=t.handler,r=t);const a=Yi(this),s=Yc(n,i.bind(o),r);return a(),s}function ap(e,t){const r=t.split(".");return()=>{let o=e;for(let n=0;n0){if(r>=t)return e;r++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Pt(e))Ho(e.value,t,r,o);else if(De(e))for(let n=0;n{Ho(n,t,r,o)});else if($h(e))for(const n in e)Ho(e[n],t,r,o);return e}function Ki(e,t){if(It===null)return e;const r=Ts(It)||It.proxy,o=e.dirs||(e.dirs=[]);for(let n=0;n{e.isMounted=!0}),tr(()=>{e.isUnmounting=!0}),e}const gr=[Function,Array],lp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:gr,onEnter:gr,onAfterEnter:gr,onEnterCancelled:gr,onBeforeLeave:gr,onLeave:gr,onAfterLeave:gr,onLeaveCancelled:gr,onBeforeAppear:gr,onAppear:gr,onAfterAppear:gr,onAppearCancelled:gr},Jb={name:"BaseTransition",props:lp,setup(e,{slots:t}){const r=wo(),o=sp();let n;return()=>{const i=t.default&&Xc(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const m of i)if(m.type!==Zt){a=m;break}}const s=Je(e),{mode:l}=s;if(o.isLeaving)return Zs(a);const c=su(a);if(!c)return Zs(a);const d=Ti(c,s,o,r);$i(c,d);const u=r.subTree,f=u&&su(u);let p=!1;const{getTransitionKey:h}=c.type;if(h){const m=h();n===void 0?n=m:m!==n&&(n=m,p=!0)}if(f&&f.type!==Zt&&(!Fo(c,f)||p)){const m=Ti(f,s,o,r);if($i(f,m),l==="out-in")return o.isLeaving=!0,m.afterLeave=()=>{o.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Zs(a);l==="in-out"&&c.type!==Zt&&(m.delayLeave=(v,g,T)=>{const w=cp(o,f);w[String(f.key)]=f,v[uo]=()=>{g(),v[uo]=void 0,delete d.delayedLeave},d.delayedLeave=T})}return a}}},Zb=Jb;function cp(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Ti(e,t,r,o){const{appear:n,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:f,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:m,onAppear:v,onAfterAppear:g,onAppearCancelled:T}=t,w=String(e.key),k=cp(r,e),I=(S,M)=>{S&&yr(S,o,9,M)},B=(S,M)=>{const O=M[1];I(S,M),De(S)?S.every(Z=>Z.length<=1)&&O():S.length<=1&&O()},x={mode:i,persisted:a,beforeEnter(S){let M=s;if(!r.isMounted)if(n)M=m||s;else return;S[uo]&&S[uo](!0);const O=k[w];O&&Fo(e,O)&&O.el[uo]&&O.el[uo](),I(M,[S])},enter(S){let M=l,O=c,Z=d;if(!r.isMounted)if(n)M=v||l,O=g||c,Z=T||d;else return;let A=!1;const C=S[ha]=z=>{A||(A=!0,z?I(Z,[S]):I(O,[S]),x.delayedLeave&&x.delayedLeave(),S[ha]=void 0)};M?B(M,[S,C]):C()},leave(S,M){const O=String(e.key);if(S[ha]&&S[ha](!0),r.isUnmounting)return M();I(u,[S]);let Z=!1;const A=S[uo]=C=>{Z||(Z=!0,M(),C?I(h,[S]):I(p,[S]),S[uo]=void 0,k[O]===e&&delete k[O])};k[O]=e,f?B(f,[S,A]):A()},clone(S){return Ti(S,t,r,o)}};return x}function Zs(e){if(Ss(e))return e=Yr(e),e.children=null,e}function su(e){return Ss(e)?e.children?e.children[0]:void 0:e}function $i(e,t){e.shapeFlag&6&&e.component?$i(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 Xc(e,t=!1,r){let o=[],n=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Ss=e=>e.type.__isKeepAlive;function dp(e,t){fp(e,"a",t)}function up(e,t){fp(e,"da",t)}function fp(e,t,r=Ht){const o=e.__wdc||(e.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(ws(t,o,r),r){let n=r.parent;for(;n&&n.parent;)Ss(n.parent.vnode)&&Qb(o,t,r,n),n=n.parent}}function Qb(e,t,r,o){const n=ws(t,e,o,!0);mp(()=>{Dc(o[t],n)},r)}function ws(e,t,r=Ht,o=!1){if(r){const n=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(r.isUnmounted)return;tn();const s=Yi(r),l=yr(t,r,e,a);return s(),rn(),l});return o?n.unshift(i):n.push(i),i}}const Zr=e=>(t,r=Ht)=>(!ks||e==="sp")&&ws(e,(...o)=>t(...o),r),qi=Zr("bm"),Ft=Zr("m"),hp=Zr("bu"),pp=Zr("u"),tr=Zr("bum"),mp=Zr("um"),ex=Zr("sp"),tx=Zr("rtg"),rx=Zr("rtc");function ox(e,t=Ht){ws("ec",e,t)}function _s(e,t,r={},o,n){if(It.isCE||It.parent&&fi(It.parent)&&It.parent.isCE)return t!=="default"&&(r.name=t),ke("slot",r,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Ke();const a=i&&gp(i(r)),s=Ct(st,{key:r.key||a&&a.key||`_${t}`},a||(o?o():[]),a&&e._===1?64:-2);return!n&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function gp(e){return e.some(t=>Ei(t)?!(t.type===Zt||t.type===st&&!gp(t.children)):!0)?e:null}const Ml=e=>e?$p(e)?Ts(e)||e.proxy:Ml(e.parent):null,hi=wt(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=>Ml(e.parent),$root:e=>Ml(e.root),$emit:e=>e.emit,$options:e=>Jc(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Gc(e.update)}),$nextTick:e=>e.n||(e.n=Jt.bind(e.proxy)),$watch:e=>Xb.bind(e)}),Qs=(e,t)=>e!==ut&&!e.__isScriptSetup&&et(e,t),nx={get({_:e},t){const{ctx:r,setupState:o,data:n,props:i,accessCache:a,type:s,appContext:l}=e;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return n[t];case 4:return r[t];case 3:return i[t]}else{if(Qs(o,t))return a[t]=1,o[t];if(n!==ut&&et(n,t))return a[t]=2,n[t];if((c=e.propsOptions[0])&&et(c,t))return a[t]=3,i[t];if(r!==ut&&et(r,t))return a[t]=4,r[t];Al&&(a[t]=0)}}const d=hi[t];let u,f;if(d)return t==="$attrs"&&ar(e,"get",t),d(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(r!==ut&&et(r,t))return a[t]=4,r[t];if(f=l.config.globalProperties,et(f,t))return f[t]},set({_:e},t,r){const{data:o,setupState:n,ctx:i}=e;return Qs(n,t)?(n[t]=r,!0):o!==ut&&et(o,t)?(o[t]=r,!0):et(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:n,propsOptions:i}},a){let s;return!!r[a]||e!==ut&&et(e,a)||Qs(t,a)||(s=i[0])&&et(s,a)||et(o,a)||et(hi,a)||et(n.config.globalProperties,a)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:et(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function lu(e){return De(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Al=!0;function ix(e){const t=Jc(e),r=e.proxy,o=e.ctx;Al=!1,t.beforeCreate&&cu(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:a,watch:s,provide:l,inject:c,created:d,beforeMount:u,mounted:f,beforeUpdate:p,updated:h,activated:m,deactivated:v,beforeDestroy:g,beforeUnmount:T,destroyed:w,unmounted:k,render:I,renderTracked:B,renderTriggered:x,errorCaptured:S,serverPrefetch:M,expose:O,inheritAttrs:Z,components:A,directives:C,filters:z}=t;if(c&&ax(c,o,null),a)for(const _ in a){const W=a[_];He(W)&&(o[_]=W.bind(r))}if(n){const _=n.call(r,r);ht(_)&&(e.data=Gr(_))}if(Al=!0,i)for(const _ in i){const W=i[_],le=He(W)?W.bind(r,r):He(W.get)?W.get.bind(r,r):xr,ie=!He(W)&&He(W.set)?W.set.bind(r):xr,X=N({get:le,set:ie});Object.defineProperty(o,_,{enumerable:!0,configurable:!0,get:()=>X.value,set:re=>X.value=re})}if(s)for(const _ in s)vp(s[_],o,r,_);if(l){const _=He(l)?l.call(r):l;Reflect.ownKeys(_).forEach(W=>{nt(W,_[W])})}d&&cu(d,e,"c");function R(_,W){De(W)?W.forEach(le=>_(le.bind(r))):W&&_(W.bind(r))}if(R(qi,u),R(Ft,f),R(hp,p),R(pp,h),R(dp,m),R(up,v),R(ox,S),R(rx,B),R(tx,x),R(tr,T),R(mp,k),R(ex,M),De(O))if(O.length){const _=e.exposed||(e.exposed={});O.forEach(W=>{Object.defineProperty(_,W,{get:()=>r[W],set:le=>r[W]=le})})}else e.exposed||(e.exposed={});I&&e.render===xr&&(e.render=I),Z!=null&&(e.inheritAttrs=Z),A&&(e.components=A),C&&(e.directives=C)}function ax(e,t,r=xr){De(e)&&(e=Ol(e));for(const o in e){const n=e[o];let i;ht(n)?"default"in n?i=Oe(n.from||o,n.default,!0):i=Oe(n.from||o):i=Oe(n),Pt(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[o]=i}}function cu(e,t,r){yr(De(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function vp(e,t,r,o){const n=o.includes(".")?ap(r,o):()=>r[o];if(_t(e)){const i=t[e];He(i)&&Xe(n,i)}else if(He(e))Xe(n,e.bind(r));else if(ht(e))if(De(e))e.forEach(i=>vp(i,t,r,o));else{const i=He(e.handler)?e.handler.bind(r):t[e.handler];He(i)&&Xe(n,i,e)}}function Jc(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!n.length&&!r&&!o?l=t:(l={},n.length&&n.forEach(c=>Ya(l,c,a,!0)),Ya(l,t,a)),ht(t)&&i.set(t,l),l}function Ya(e,t,r,o=!1){const{mixins:n,extends:i}=t;i&&Ya(e,i,r,!0),n&&n.forEach(a=>Ya(e,a,r,!0));for(const a in t)if(!(o&&a==="expose")){const s=sx[a]||r&&r[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const sx={data:du,props:uu,emits:uu,methods:si,computed:si,beforeCreate:Yt,created:Yt,beforeMount:Yt,mounted:Yt,beforeUpdate:Yt,updated:Yt,beforeDestroy:Yt,beforeUnmount:Yt,destroyed:Yt,unmounted:Yt,activated:Yt,deactivated:Yt,errorCaptured:Yt,serverPrefetch:Yt,components:si,directives:si,watch:cx,provide:du,inject:lx};function du(e,t){return t?e?function(){return wt(He(e)?e.call(this,this):e,He(t)?t.call(this,this):t)}:t:e}function lx(e,t){return si(Ol(e),Ol(t))}function Ol(e){if(De(e)){const t={};for(let r=0;r1)return r&&He(t)?t.call(o&&o.proxy):t}}function fx(){return!!(Ht||It||Ri)}function hx(e,t,r,o=!1){const n={},i={};Ua(i,Ps,1),e.propsDefaults=Object.create(null),xp(e,t,n,i);for(const a in e.propsOptions[0])a in n||(n[a]=void 0);r?e.props=o?n:$b(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function px(e,t,r,o){const{props:n,attrs:i,vnode:{patchFlag:a}}=e,s=Je(n),[l]=e.propsOptions;let c=!1;if((o||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let u=0;u{l=!0;const[f,p]=yp(u,t,!0);wt(a,f),p&&s.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!l)return ht(e)&&o.set(e,Sn),Sn;if(De(i))for(let d=0;d-1,p[1]=m<0||h-1||et(p,"default"))&&s.push(u)}}}const c=[a,s];return ht(e)&&o.set(e,c),c}function fu(e){return e[0]!=="$"}function hu(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function pu(e,t){return hu(e)===hu(t)}function mu(e,t){return De(t)?t.findIndex(r=>pu(r,e)):He(t)&&pu(t,e)?0:-1}const Cp=e=>e[0]==="_"||e==="$stable",Zc=e=>De(e)?e.map(Or):[Or(e)],mx=(e,t,r)=>{if(t._n)return t;const o=Be((...n)=>Zc(t(...n)),r);return o._c=!1,o},Sp=(e,t,r)=>{const o=e._ctx;for(const n in e){if(Cp(n))continue;const i=e[n];if(He(i))t[n]=mx(n,i,o);else if(i!=null){const a=Zc(i);t[n]=()=>a}}},wp=(e,t)=>{const r=Zc(t);e.slots.default=()=>r},gx=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Je(t),Ua(t,"_",r)):Sp(t,e.slots={})}else e.slots={},t&&wp(e,t);Ua(e.slots,Ps,1)},vx=(e,t,r)=>{const{vnode:o,slots:n}=e;let i=!0,a=ut;if(o.shapeFlag&32){const s=t._;s?r&&s===1?i=!1:(wt(n,t),!r&&s===1&&delete n._):(i=!t.$stable,Sp(t,n)),a=t}else t&&(wp(e,t),a={default:1});if(i)for(const s in n)!Cp(s)&&a[s]==null&&delete n[s]};function Bl(e,t,r,o,n=!1){if(De(e)){e.forEach((f,p)=>Bl(f,t&&(De(t)?t[p]:t),r,o,n));return}if(fi(o)&&!n)return;const i=o.shapeFlag&4?Ts(o.component)||o.component.proxy:o.el,a=n?null:i,{i:s,r:l}=e,c=t&&t.r,d=s.refs===ut?s.refs={}:s.refs,u=s.setupState;if(c!=null&&c!==l&&(_t(c)?(d[c]=null,et(u,c)&&(u[c]=null)):Pt(c)&&(c.value=null)),He(l))go(l,s,12,[a,d]);else{const f=_t(l),p=Pt(l),h=e.f;if(f||p){const m=()=>{if(h){const v=f?et(u,l)?u[l]:d[l]:l.value;n?De(v)&&Dc(v,i):De(v)?v.includes(i)||v.push(i):f?(d[l]=[i],et(u,l)&&(u[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else f?(d[l]=a,et(u,l)&&(u[l]=a)):p&&(l.value=a,e.k&&(d[e.k]=a))};n||h?m():(m.id=-1,or(m,r))}}}const or=qb;function bx(e){return xx(e)}function xx(e,t){const r=Ih();r.__VUE__=!0;const{insert:o,remove:n,patchProp:i,createElement:a,createText:s,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:f,setScopeId:p=xr,insertStaticContent:h}=e,m=(y,E,q,ne=null,ae=null,he=null,ge=void 0,ee=null,ue=!!E.dynamicChildren)=>{if(y===E)return;y&&!Fo(y,E)&&(ne=de(y),re(y,ae,he,!0),y=null),E.patchFlag===-2&&(ue=!1,E.dynamicChildren=null);const{type:oe,ref:F,shapeFlag:U}=E;switch(oe){case Gi:v(y,E,q,ne);break;case Zt:g(y,E,q,ne);break;case tl:y==null&&T(E,q,ne,ge);break;case st:A(y,E,q,ne,ae,he,ge,ee,ue);break;default:U&1?I(y,E,q,ne,ae,he,ge,ee,ue):U&6?C(y,E,q,ne,ae,he,ge,ee,ue):(U&64||U&128)&&oe.process(y,E,q,ne,ae,he,ge,ee,ue,je)}F!=null&&ae&&Bl(F,y&&y.ref,he,E||y,!E)},v=(y,E,q,ne)=>{if(y==null)o(E.el=s(E.children),q,ne);else{const ae=E.el=y.el;E.children!==y.children&&c(ae,E.children)}},g=(y,E,q,ne)=>{y==null?o(E.el=l(E.children||""),q,ne):E.el=y.el},T=(y,E,q,ne)=>{[y.el,y.anchor]=h(y.children,E,q,ne,y.el,y.anchor)},w=({el:y,anchor:E},q,ne)=>{let ae;for(;y&&y!==E;)ae=f(y),o(y,q,ne),y=ae;o(E,q,ne)},k=({el:y,anchor:E})=>{let q;for(;y&&y!==E;)q=f(y),n(y),y=q;n(E)},I=(y,E,q,ne,ae,he,ge,ee,ue)=>{E.type==="svg"?ge="svg":E.type==="math"&&(ge="mathml"),y==null?B(E,q,ne,ae,he,ge,ee,ue):M(y,E,ae,he,ge,ee,ue)},B=(y,E,q,ne,ae,he,ge,ee)=>{let ue,oe;const{props:F,shapeFlag:U,transition:Q,dirs:pe}=y;if(ue=y.el=a(y.type,he,F&&F.is,F),U&8?d(ue,y.children):U&16&&S(y.children,ue,null,ne,ae,el(y,he),ge,ee),pe&&Io(y,null,ne,"created"),x(ue,y,y.scopeId,ge,ne),F){for(const ze in F)ze!=="value"&&!Ra(ze)&&i(ue,ze,null,F[ze],he,y.children,ne,ae,Ie);"value"in F&&i(ue,"value",null,F.value,he),(oe=F.onVnodeBeforeMount)&&Rr(oe,ne,y)}pe&&Io(y,null,ne,"beforeMount");const we=yx(ae,Q);we&&Q.beforeEnter(ue),o(ue,E,q),((oe=F&&F.onVnodeMounted)||we||pe)&&or(()=>{oe&&Rr(oe,ne,y),we&&Q.enter(ue),pe&&Io(y,null,ne,"mounted")},ae)},x=(y,E,q,ne,ae)=>{if(q&&p(y,q),ne)for(let he=0;he{for(let oe=ue;oe{const ee=E.el=y.el;let{patchFlag:ue,dynamicChildren:oe,dirs:F}=E;ue|=y.patchFlag&16;const U=y.props||ut,Q=E.props||ut;let pe;if(q&&Eo(q,!1),(pe=Q.onVnodeBeforeUpdate)&&Rr(pe,q,E,y),F&&Io(E,y,q,"beforeUpdate"),q&&Eo(q,!0),oe?O(y.dynamicChildren,oe,ee,q,ne,el(E,ae),he):ge||W(y,E,ee,null,q,ne,el(E,ae),he,!1),ue>0){if(ue&16)Z(ee,E,U,Q,q,ne,ae);else if(ue&2&&U.class!==Q.class&&i(ee,"class",null,Q.class,ae),ue&4&&i(ee,"style",U.style,Q.style,ae),ue&8){const we=E.dynamicProps;for(let ze=0;ze{pe&&Rr(pe,q,E,y),F&&Io(E,y,q,"updated")},ne)},O=(y,E,q,ne,ae,he,ge)=>{for(let ee=0;ee{if(q!==ne){if(q!==ut)for(const ee in q)!Ra(ee)&&!(ee in ne)&&i(y,ee,q[ee],null,ge,E.children,ae,he,Ie);for(const ee in ne){if(Ra(ee))continue;const ue=ne[ee],oe=q[ee];ue!==oe&&ee!=="value"&&i(y,ee,oe,ue,ge,E.children,ae,he,Ie)}"value"in ne&&i(y,"value",q.value,ne.value,ge)}},A=(y,E,q,ne,ae,he,ge,ee,ue)=>{const oe=E.el=y?y.el:s(""),F=E.anchor=y?y.anchor:s("");let{patchFlag:U,dynamicChildren:Q,slotScopeIds:pe}=E;pe&&(ee=ee?ee.concat(pe):pe),y==null?(o(oe,q,ne),o(F,q,ne),S(E.children||[],q,F,ae,he,ge,ee,ue)):U>0&&U&64&&Q&&y.dynamicChildren?(O(y.dynamicChildren,Q,q,ae,he,ge,ee),(E.key!=null||ae&&E===ae.subTree)&&Qc(y,E,!0)):W(y,E,q,F,ae,he,ge,ee,ue)},C=(y,E,q,ne,ae,he,ge,ee,ue)=>{E.slotScopeIds=ee,y==null?E.shapeFlag&512?ae.ctx.activate(E,q,ne,ge,ue):z(E,q,ne,ae,he,ge,ue):P(y,E,ue)},z=(y,E,q,ne,ae,he,ge)=>{const ee=y.component=Ix(y,ne,ae);if(Ss(y)&&(ee.ctx.renderer=je),Ex(ee),ee.asyncDep){if(ae&&ae.registerDep(ee,R),!y.el){const ue=ee.subTree=ke(Zt);g(null,ue,E,q)}}else R(ee,y,E,q,ae,he,ge)},P=(y,E,q)=>{const ne=E.component=y.component;if(Wb(y,E,q))if(ne.asyncDep&&!ne.asyncResolved){_(ne,E,q);return}else ne.next=E,Bb(ne.update),ne.effect.dirty=!0,ne.update();else E.el=y.el,ne.vnode=E},R=(y,E,q,ne,ae,he,ge)=>{const ee=()=>{if(y.isMounted){let{next:F,bu:U,u:Q,parent:pe,vnode:we}=y;{const Tt=_p(y);if(Tt){F&&(F.el=we.el,_(y,F,ge)),Tt.asyncDep.then(()=>{y.isUnmounted||ee()});return}}let ze=F,Ve;Eo(y,!1),F?(F.el=we.el,_(y,F,ge)):F=we,U&&Ys(U),(Ve=F.props&&F.props.onVnodeBeforeUpdate)&&Rr(Ve,pe,F,we),Eo(y,!0);const Ne=Js(y),Ze=y.subTree;y.subTree=Ne,m(Ze,Ne,u(Ze.el),de(Ze),y,ae,he),F.el=Ne.el,ze===null&&Vb(y,Ne.el),Q&&or(Q,ae),(Ve=F.props&&F.props.onVnodeUpdated)&&or(()=>Rr(Ve,pe,F,we),ae)}else{let F;const{el:U,props:Q}=E,{bm:pe,m:we,parent:ze}=y,Ve=fi(E);if(Eo(y,!1),pe&&Ys(pe),!Ve&&(F=Q&&Q.onVnodeBeforeMount)&&Rr(F,ze,E),Eo(y,!0),U&&Le){const Ne=()=>{y.subTree=Js(y),Le(U,y.subTree,y,ae,null)};Ve?E.type.__asyncLoader().then(()=>!y.isUnmounted&&Ne()):Ne()}else{const Ne=y.subTree=Js(y);m(null,Ne,q,ne,y,ae,he),E.el=Ne.el}if(we&&or(we,ae),!Ve&&(F=Q&&Q.onVnodeMounted)){const Ne=E;or(()=>Rr(F,ze,Ne),ae)}(E.shapeFlag&256||ze&&fi(ze.vnode)&&ze.vnode.shapeFlag&256)&&y.a&&or(y.a,ae),y.isMounted=!0,E=q=ne=null}},ue=y.effect=new Hc(ee,xr,()=>Gc(oe),y.scope),oe=y.update=()=>{ue.dirty&&ue.run()};oe.id=y.uid,Eo(y,!0),oe()},_=(y,E,q)=>{E.component=y;const ne=y.vnode.props;y.vnode=E,y.next=null,px(y,E.props,ne,q),vx(y,E.children,q),tn(),iu(y),rn()},W=(y,E,q,ne,ae,he,ge,ee,ue=!1)=>{const oe=y&&y.children,F=y?y.shapeFlag:0,U=E.children,{patchFlag:Q,shapeFlag:pe}=E;if(Q>0){if(Q&128){ie(oe,U,q,ne,ae,he,ge,ee,ue);return}else if(Q&256){le(oe,U,q,ne,ae,he,ge,ee,ue);return}}pe&8?(F&16&&Ie(oe,ae,he),U!==oe&&d(q,U)):F&16?pe&16?ie(oe,U,q,ne,ae,he,ge,ee,ue):Ie(oe,ae,he,!0):(F&8&&d(q,""),pe&16&&S(U,q,ne,ae,he,ge,ee,ue))},le=(y,E,q,ne,ae,he,ge,ee,ue)=>{y=y||Sn,E=E||Sn;const oe=y.length,F=E.length,U=Math.min(oe,F);let Q;for(Q=0;QF?Ie(y,ae,he,!0,!1,U):S(E,q,ne,ae,he,ge,ee,ue,U)},ie=(y,E,q,ne,ae,he,ge,ee,ue)=>{let oe=0;const F=E.length;let U=y.length-1,Q=F-1;for(;oe<=U&&oe<=Q;){const pe=y[oe],we=E[oe]=ue?fo(E[oe]):Or(E[oe]);if(Fo(pe,we))m(pe,we,q,null,ae,he,ge,ee,ue);else break;oe++}for(;oe<=U&&oe<=Q;){const pe=y[U],we=E[Q]=ue?fo(E[Q]):Or(E[Q]);if(Fo(pe,we))m(pe,we,q,null,ae,he,ge,ee,ue);else break;U--,Q--}if(oe>U){if(oe<=Q){const pe=Q+1,we=peQ)for(;oe<=U;)re(y[oe],ae,he,!0),oe++;else{const pe=oe,we=oe,ze=new Map;for(oe=we;oe<=Q;oe++){const ce=E[oe]=ue?fo(E[oe]):Or(E[oe]);ce.key!=null&&ze.set(ce.key,oe)}let Ve,Ne=0;const Ze=Q-we+1;let Tt=!1,wr=0;const Mt=new Array(Ze);for(oe=0;oe=Ze){re(ce,ae,he,!0);continue}let be;if(ce.key!=null)be=ze.get(ce.key);else for(Ve=we;Ve<=Q;Ve++)if(Mt[Ve-we]===0&&Fo(ce,E[Ve])){be=Ve;break}be===void 0?re(ce,ae,he,!0):(Mt[be-we]=oe+1,be>=wr?wr=be:Tt=!0,m(ce,E[be],q,null,ae,he,ge,ee,ue),Ne++)}const ko=Tt?Cx(Mt):Sn;for(Ve=ko.length-1,oe=Ze-1;oe>=0;oe--){const ce=we+oe,be=E[ce],Me=ce+1{const{el:he,type:ge,transition:ee,children:ue,shapeFlag:oe}=y;if(oe&6){X(y.component.subTree,E,q,ne);return}if(oe&128){y.suspense.move(E,q,ne);return}if(oe&64){ge.move(y,E,q,je);return}if(ge===st){o(he,E,q);for(let U=0;Uee.enter(he),ae);else{const{leave:U,delayLeave:Q,afterLeave:pe}=ee,we=()=>o(he,E,q),ze=()=>{U(he,()=>{we(),pe&&pe()})};Q?Q(he,we,ze):ze()}else o(he,E,q)},re=(y,E,q,ne=!1,ae=!1)=>{const{type:he,props:ge,ref:ee,children:ue,dynamicChildren:oe,shapeFlag:F,patchFlag:U,dirs:Q}=y;if(ee!=null&&Bl(ee,null,q,y,!0),F&256){E.ctx.deactivate(y);return}const pe=F&1&&Q,we=!fi(y);let ze;if(we&&(ze=ge&&ge.onVnodeBeforeUnmount)&&Rr(ze,E,y),F&6)Te(y.component,q,ne);else{if(F&128){y.suspense.unmount(q,ne);return}pe&&Io(y,null,E,"beforeUnmount"),F&64?y.type.remove(y,E,q,ae,je,ne):oe&&(he!==st||U>0&&U&64)?Ie(oe,E,q,!1,!0):(he===st&&U&384||!ae&&F&16)&&Ie(ue,E,q),ne&&J(y)}(we&&(ze=ge&&ge.onVnodeUnmounted)||pe)&&or(()=>{ze&&Rr(ze,E,y),pe&&Io(y,null,E,"unmounted")},q)},J=y=>{const{type:E,el:q,anchor:ne,transition:ae}=y;if(E===st){Se(q,ne);return}if(E===tl){k(y);return}const he=()=>{n(q),ae&&!ae.persisted&&ae.afterLeave&&ae.afterLeave()};if(y.shapeFlag&1&&ae&&!ae.persisted){const{leave:ge,delayLeave:ee}=ae,ue=()=>ge(q,he);ee?ee(y.el,he,ue):ue()}else he()},Se=(y,E)=>{let q;for(;y!==E;)q=f(y),n(y),y=q;n(E)},Te=(y,E,q)=>{const{bum:ne,scope:ae,update:he,subTree:ge,um:ee}=y;ne&&Ys(ne),ae.stop(),he&&(he.active=!1,re(ge,y,E,q)),ee&&or(ee,E),or(()=>{y.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},Ie=(y,E,q,ne=!1,ae=!1,he=0)=>{for(let ge=he;gey.shapeFlag&6?de(y.component.subTree):y.shapeFlag&128?y.suspense.next():f(y.anchor||y.el);let Fe=!1;const K=(y,E,q)=>{y==null?E._vnode&&re(E._vnode,null,null,!0):m(E._vnode||null,y,E,null,null,null,q),Fe||(Fe=!0,iu(),rp(),Fe=!1),E._vnode=y},je={p:m,um:re,m:X,r:J,mt:z,mc:S,pc:W,pbc:O,n:de,o:e};let $e,Le;return t&&([$e,Le]=t(je)),{render:K,hydrate:$e,createApp:ux(K,$e)}}function el({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Eo({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function yx(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Qc(e,t,r=!1){const o=e.children,n=t.children;if(De(o)&&De(n))for(let i=0;i>1,e[r[s]]0&&(t[o]=r[i-1]),r[i]=o)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=t[a];return r}function _p(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_p(t)}const Sx=e=>e.__isTeleport,pi=e=>e&&(e.disabled||e.disabled===""),gu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,vu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Fl=(e,t)=>{const r=e&&e.to;return _t(r)?t?t(r):null:r},wx={name:"Teleport",__isTeleport:!0,process(e,t,r,o,n,i,a,s,l,c){const{mc:d,pc:u,pbc:f,o:{insert:p,querySelector:h,createText:m,createComment:v}}=c,g=pi(t.props);let{shapeFlag:T,children:w,dynamicChildren:k}=t;if(e==null){const I=t.el=m(""),B=t.anchor=m("");p(I,r,o),p(B,r,o);const x=t.target=Fl(t.props,h),S=t.targetAnchor=m("");x&&(p(S,x),a==="svg"||gu(x)?a="svg":(a==="mathml"||vu(x))&&(a="mathml"));const M=(O,Z)=>{T&16&&d(w,O,Z,n,i,a,s,l)};g?M(r,B):x&&M(x,S)}else{t.el=e.el;const I=t.anchor=e.anchor,B=t.target=e.target,x=t.targetAnchor=e.targetAnchor,S=pi(e.props),M=S?r:B,O=S?I:x;if(a==="svg"||gu(B)?a="svg":(a==="mathml"||vu(B))&&(a="mathml"),k?(f(e.dynamicChildren,k,M,n,i,a,s),Qc(e,t,!0)):l||u(e,t,M,O,n,i,a,s,!1),g)S?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):pa(t,r,I,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Z=t.target=Fl(t.props,h);Z&&pa(t,Z,null,c,0)}else S&&pa(t,B,x,c,1)}Pp(t)},remove(e,t,r,o,{um:n,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:d,target:u,props:f}=e;if(u&&i(d),a&&i(c),s&16){const p=a||!pi(f);for(let h=0;h0?Pr||Sn:null,Px(),Ii>0&&Pr&&Pr.push(e),e}function Qt(e,t,r,o,n,i){return kp(pt(e,t,r,o,n,i,!0))}function Ct(e,t,r,o,n){return kp(ke(e,t,r,o,n,!0))}function Ei(e){return e?e.__v_isVNode===!0:!1}function Fo(e,t){return e.type===t.type&&e.key===t.key}const Ps="__vInternal",Tp=({key:e})=>e??null,Ea=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?_t(e)||Pt(e)||He(e)?{i:It,r:e,k:t,f:!!r}:e:null);function pt(e,t=null,r=null,o=0,n=null,i=e===st?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tp(t),ref:t&&Ea(t),scopeId:ip,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:It};return s?(td(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=_t(r)?8:16),Ii>0&&!a&&Pr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Pr.push(l),l}const ke=kx;function kx(e,t=null,r=null,o=0,n=null,i=!1){if((!e||e===Ub)&&(e=Zt),Ei(e)){const s=Yr(e,t,!0);return r&&td(s,r),Ii>0&&!i&&Pr&&(s.shapeFlag&6?Pr[Pr.indexOf(e)]=s:Pr.push(s)),s.patchFlag|=-2,s}if(Ox(e)&&(e=e.__vccOpts),t){t=Tx(t);let{class:s,style:l}=t;s&&!_t(s)&&(t.class=_n(s)),ht(l)&&(Gh(l)&&!De(l)&&(l=wt({},l)),t.style=Fc(l))}const a=_t(e)?1:Kb(e)?128:Sx(e)?64:ht(e)?4:He(e)?2:0;return pt(e,t,r,o,n,a,i,!0)}function Tx(e){return e?Gh(e)||Ps in e?wt({},e):e:null}function Yr(e,t,r=!1){const{props:o,ref:n,patchFlag:i,children:a}=e,s=t?Nn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Tp(s),ref:t&&t.ref?r&&n?De(n)?n.concat(Ea(t)):[n,Ea(t)]:Ea(t):n,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==st?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yr(e.ssContent),ssFallback:e.ssFallback&&Yr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function mr(e=" ",t=0){return ke(Gi,null,e,t)}function An(e="",t=!1){return t?(Ke(),Ct(Zt,null,e)):ke(Zt,null,e)}function Or(e){return e==null||typeof e=="boolean"?ke(Zt):De(e)?ke(st,null,e.slice()):typeof e=="object"?fo(e):ke(Gi,null,String(e))}function fo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yr(e)}function td(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(De(t))r=16;else if(typeof t=="object")if(o&65){const n=t.default;n&&(n._c&&(n._d=!1),td(e,n()),n._c&&(n._d=!0));return}else{r=32;const n=t._;!n&&!(Ps in t)?t._ctx=It:n===3&&It&&(It.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else He(t)?(t={default:t,_ctx:It},r=32):(t=String(t),o&64?(r=16,t=[mr(t)]):r=8);e.children=t,e.shapeFlag|=r}function Nn(...e){const t={};for(let r=0;rHt||It;let Xa,Ll;{const e=Ih(),t=(r,o)=>{let n;return(n=e[r])||(n=e[r]=[]),n.push(o),i=>{n.length>1?n.forEach(a=>a(i)):n[0](i)}};Xa=t("__VUE_INSTANCE_SETTERS__",r=>Ht=r),Ll=t("__VUE_SSR_SETTERS__",r=>ks=r)}const Yi=e=>{const t=Ht;return Xa(e),e.scope.on(),()=>{e.scope.off(),Xa(t)}},xu=()=>{Ht&&Ht.scope.off(),Xa(null)};function $p(e){return e.vnode.shapeFlag&4}let ks=!1;function Ex(e,t=!1){t&&Ll(t);const{props:r,children:o}=e.vnode,n=$p(e);hx(e,r,n,t),gx(e,o);const i=n?zx(e,t):void 0;return t&&Ll(!1),i}function zx(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Mn(new Proxy(e.ctx,nx));const{setup:o}=r;if(o){const n=e.setupContext=o.length>1?Ax(e):null,i=Yi(e);tn();const a=go(o,e,0,[e.props,n]);if(rn(),i(),kh(a)){if(a.then(xu,xu),t)return a.then(s=>{yu(e,s,t)}).catch(s=>{ys(s,e,0)});e.asyncDep=a}else yu(e,a,t)}else Rp(e,t)}function yu(e,t,r){He(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ht(t)&&(e.setupState=Zh(t)),Rp(e,r)}let Cu;function Rp(e,t,r){const o=e.type;if(!e.render){if(!t&&Cu&&!o.render){const n=o.template||Jc(e).template;if(n){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=o,c=wt(wt({isCustomElement:i,delimiters:s},a),l);o.render=Cu(n,c)}}e.render=o.render||xr}{const n=Yi(e);tn();try{ix(e)}finally{rn(),n()}}}function Mx(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return ar(e,"get","$attrs"),t[r]}}))}function Ax(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Mx(e)},slots:e.slots,emit:e.emit,expose:t}}function Ts(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Zh(Mn(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in hi)return hi[r](e)},has(t,r){return r in t||r in hi}}))}function Ox(e){return He(e)&&"__vccOpts"in e}const N=(e,t)=>Rb(e,t,ks);function b(e,t,r){const o=arguments.length;return o===2?ht(t)&&!De(t)?Ei(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Ei(r)&&(r=[r]),ke(e,t,r))}const Dx="3.4.15";/** +* @vue/runtime-dom v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Bx="http://www.w3.org/2000/svg",Fx="http://www.w3.org/1998/Math/MathML",ho=typeof document<"u"?document:null,Su=ho&&ho.createElement("template"),Lx={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const n=t==="svg"?ho.createElementNS(Bx,e):t==="mathml"?ho.createElementNS(Fx,e):ho.createElement(e,r?{is:r}:void 0);return e==="select"&&o&&o.multiple!=null&&n.setAttribute("multiple",o.multiple),n},createText:e=>ho.createTextNode(e),createComment:e=>ho.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ho.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,n,i){const a=r?r.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),r),!(n===i||!(n=n.nextSibling)););else{Su.innerHTML=o==="svg"?`${e}`:o==="mathml"?`${e}`:e;const s=Su.content;if(o==="svg"||o==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[a?a.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},oo="transition",ei="animation",On=Symbol("_vtc"),$r=(e,{slots:t})=>b(Zb,Ep(e),t);$r.displayName="Transition";const Ip={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},Hx=$r.props=wt({},lp,Ip),zo=(e,t=[])=>{De(e)?e.forEach(r=>r(...t)):e&&e(...t)},wu=e=>e?De(e)?e.some(t=>t.length>1):e.length>1:!1;function Ep(e){const t={};for(const A in e)A in Ip||(t[A]=e[A]);if(e.css===!1)return t;const{name:r="v",type:o,duration:n,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:d=s,leaveFromClass:u=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,h=jx(n),m=h&&h[0],v=h&&h[1],{onBeforeEnter:g,onEnter:T,onEnterCancelled:w,onLeave:k,onLeaveCancelled:I,onBeforeAppear:B=g,onAppear:x=T,onAppearCancelled:S=w}=t,M=(A,C,z)=>{so(A,C?d:s),so(A,C?c:a),z&&z()},O=(A,C)=>{A._isLeaving=!1,so(A,u),so(A,p),so(A,f),C&&C()},Z=A=>(C,z)=>{const P=A?x:T,R=()=>M(C,A,z);zo(P,[C,R]),_u(()=>{so(C,A?l:i),Ur(C,A?d:s),wu(P)||Pu(C,o,m,R)})};return wt(t,{onBeforeEnter(A){zo(g,[A]),Ur(A,i),Ur(A,a)},onBeforeAppear(A){zo(B,[A]),Ur(A,l),Ur(A,c)},onEnter:Z(!1),onAppear:Z(!0),onLeave(A,C){A._isLeaving=!0;const z=()=>O(A,C);Ur(A,u),Mp(),Ur(A,f),_u(()=>{A._isLeaving&&(so(A,u),Ur(A,p),wu(k)||Pu(A,o,v,z))}),zo(k,[A,z])},onEnterCancelled(A){M(A,!1),zo(w,[A])},onAppearCancelled(A){M(A,!0),zo(S,[A])},onLeaveCancelled(A){O(A),zo(I,[A])}})}function jx(e){if(e==null)return null;if(ht(e))return[rl(e.enter),rl(e.leave)];{const t=rl(e);return[t,t]}}function rl(e){return Q0(e)}function Ur(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[On]||(e[On]=new Set)).add(t)}function so(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[On];r&&(r.delete(t),r.size||(e[On]=void 0))}function _u(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Nx=0;function Pu(e,t,r,o){const n=e._endId=++Nx,i=()=>{n===e._endId&&o()};if(r)return setTimeout(i,r);const{type:a,timeout:s,propCount:l}=zp(e,t);if(!a)return o();const c=a+"end";let d=0;const u=()=>{e.removeEventListener(c,f),i()},f=p=>{p.target===e&&++d>=l&&u()};setTimeout(()=>{d(r[h]||"").split(", "),n=o(`${oo}Delay`),i=o(`${oo}Duration`),a=ku(n,i),s=o(`${ei}Delay`),l=o(`${ei}Duration`),c=ku(s,l);let d=null,u=0,f=0;t===oo?a>0&&(d=oo,u=a,f=i.length):t===ei?c>0&&(d=ei,u=c,f=l.length):(u=Math.max(a,c),d=u>0?a>c?oo:ei:null,f=d?d===oo?i.length:l.length:0);const p=d===oo&&/\b(transform|all)(,|$)/.test(o(`${oo}Property`).toString());return{type:d,timeout:u,propCount:f,hasTransform:p}}function ku(e,t){for(;e.lengthTu(r)+Tu(e[o])))}function Tu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Mp(){return document.body.offsetHeight}function Wx(e,t,r){const o=e[On];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const rd=Symbol("_vod"),Ap={beforeMount(e,{value:t},{transition:r}){e[rd]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ti(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),ti(e,!0),o.enter(e)):o.leave(e,()=>{ti(e,!1)}):ti(e,t))},beforeUnmount(e,{value:t}){ti(e,t)}};function ti(e,t){e.style.display=t?e[rd]:"none"}const Vx=Symbol("");function Ux(e,t,r){const o=e.style,n=o.display,i=_t(r);if(r&&!i){if(t&&!_t(t))for(const a in t)r[a]==null&&Hl(o,a,"");for(const a in r)Hl(o,a,r[a])}else if(i){if(t!==r){const a=o[Vx];a&&(r+=";"+a),o.cssText=r}}else t&&e.removeAttribute("style");rd in e&&(o.display=n)}const $u=/\s*!important$/;function Hl(e,t,r){if(De(r))r.forEach(o=>Hl(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=Kx(e,t);$u.test(r)?e.setProperty(en(o),r.replace($u,""),"important"):e[o]=r}}const Ru=["Webkit","Moz","ms"],ol={};function Kx(e,t){const r=ol[t];if(r)return r;let o=En(t);if(o!=="filter"&&o in e)return ol[t]=o;o=Rh(o);for(let n=0;nnl||(Qx.then(()=>nl=0),nl=Date.now());function ty(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;yr(ry(o,r.value),t,5,[o])};return r.value=e,r.attached=ey(),r}function ry(e,t){if(De(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>n=>!n._stopped&&o&&o(n))}else return t}const Mu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,oy=(e,t,r,o,n,i,a,s,l)=>{const c=n==="svg";t==="class"?Wx(e,o,c):t==="style"?Ux(e,r,o):gs(t)?Oc(t)||Jx(e,t,r,o,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ny(e,t,o,c))?Gx(e,t,o,i,a,s,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),qx(e,t,o,c))};function ny(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Mu(t)&&He(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Mu(t)&&_t(r)?!1:t in e}const Op=new WeakMap,Dp=new WeakMap,Ja=Symbol("_moveCb"),Au=Symbol("_enterCb"),Bp={name:"TransitionGroup",props:wt({},Hx,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=wo(),o=sp();let n,i;return pp(()=>{if(!n.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!dy(n[0].el,r.vnode.el,a))return;n.forEach(sy),n.forEach(ly);const s=n.filter(cy);Mp(),s.forEach(l=>{const c=l.el,d=c.style;Ur(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[Ja]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",u),c[Ja]=null,so(c,a))};c.addEventListener("transitionend",u)})}),()=>{const a=Je(e),s=Ep(a);let l=a.tag||st;n=i,i=t.default?Xc(t.default()):[];for(let c=0;cdelete e.mode;Bp.props;const ay=Bp;function sy(e){const t=e.el;t[Ja]&&t[Ja](),t[Au]&&t[Au]()}function ly(e){Dp.set(e,e.el.getBoundingClientRect())}function cy(e){const t=Op.get(e),r=Dp.get(e),o=t.left-r.left,n=t.top-r.top;if(o||n){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${n}px)`,i.transitionDuration="0s",e}}function dy(e,t,r){const o=e.cloneNode(),n=e[On];n&&n.forEach(s=>{s.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&o.classList.add(s)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:a}=zp(o);return i.removeChild(o),a}const uy=["ctrl","shift","alt","meta"],fy={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>uy.some(r=>e[`${r}Key`]&&!t.includes(r))},hy=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(n,...i)=>{for(let a=0;a{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=n=>{if(!("key"in n))return;const i=en(n.key);if(t.some(a=>a===i||py[a]===i))return e(n)})},gy=wt({patchProp:oy},Lx);let Ou;function vy(){return Ou||(Ou=bx(gy))}const by=(...e)=>{const t=vy().createApp(...e),{mount:r}=t;return t.mount=o=>{const n=yy(o);if(!n)return;const i=t._component;!He(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.innerHTML="";const a=r(n,!1,xy(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},t};function xy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yy(e){return _t(e)?document.querySelector(e):e}var Cy=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let Fp;const $s=e=>Fp=e,Lp=Symbol();function jl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var gi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(gi||(gi={}));function Sy(){const e=Ah(!0),t=e.run(()=>Y({}));let r=[],o=[];const n=Mn({install(i){$s(n),n._a=i,i.provide(Lp,n),i.config.globalProperties.$pinia=n,o.forEach(a=>r.push(a)),o=[]},use(i){return!this._a&&!Cy?o.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return n}const Hp=()=>{};function Du(e,t,r,o=Hp){e.push(t);const n=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!r&&Lc()&&Oh(n),n}function pn(e,...t){e.slice().forEach(r=>{r(...t)})}const wy=e=>e();function Nl(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,o)=>e.set(o,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const o=t[r],n=e[r];jl(n)&&jl(o)&&e.hasOwnProperty(r)&&!Pt(o)&&!mo(o)?e[r]=Nl(n,o):e[r]=o}return e}const _y=Symbol();function Py(e){return!jl(e)||!e.hasOwnProperty(_y)}const{assign:lo}=Object;function ky(e){return!!(Pt(e)&&e.effect)}function Ty(e,t,r,o){const{state:n,actions:i,getters:a}=t,s=r.state.value[e];let l;function c(){s||(r.state.value[e]=n?n():{});const d=zb(r.state.value[e]);return lo(d,i,Object.keys(a||{}).reduce((u,f)=>(u[f]=Mn(N(()=>{$s(r);const p=r._s.get(e);return a[f].call(p,p)})),u),{}))}return l=jp(e,c,t,r,o,!0),l}function jp(e,t,r={},o,n,i){let a;const s=lo({actions:{}},r),l={deep:!0};let c,d,u=[],f=[],p;const h=o.state.value[e];!i&&!h&&(o.state.value[e]={}),Y({});let m;function v(S){let M;c=d=!1,typeof S=="function"?(S(o.state.value[e]),M={type:gi.patchFunction,storeId:e,events:p}):(Nl(o.state.value[e],S),M={type:gi.patchObject,payload:S,storeId:e,events:p});const O=m=Symbol();Jt().then(()=>{m===O&&(c=!0)}),d=!0,pn(u,M,o.state.value[e])}const g=i?function(){const{state:M}=r,O=M?M():{};this.$patch(Z=>{lo(Z,O)})}:Hp;function T(){a.stop(),u=[],f=[],o._s.delete(e)}function w(S,M){return function(){$s(o);const O=Array.from(arguments),Z=[],A=[];function C(R){Z.push(R)}function z(R){A.push(R)}pn(f,{args:O,name:S,store:I,after:C,onError:z});let P;try{P=M.apply(this&&this.$id===e?this:I,O)}catch(R){throw pn(A,R),R}return P instanceof Promise?P.then(R=>(pn(Z,R),R)).catch(R=>(pn(A,R),Promise.reject(R))):(pn(Z,P),P)}}const k={_p:o,$id:e,$onAction:Du.bind(null,f),$patch:v,$reset:g,$subscribe(S,M={}){const O=Du(u,S,M.detached,()=>Z()),Z=a.run(()=>Xe(()=>o.state.value[e],A=>{(M.flush==="sync"?d:c)&&S({storeId:e,type:gi.direct,events:p},A)},lo({},l,M)));return O},$dispose:T},I=Gr(k);o._s.set(e,I);const x=(o._a&&o._a.runWithContext||wy)(()=>o._e.run(()=>(a=Ah()).run(t)));for(const S in x){const M=x[S];if(Pt(M)&&!ky(M)||mo(M))i||(h&&Py(M)&&(Pt(M)?M.value=h[S]:Nl(M,h[S])),o.state.value[e][S]=M);else if(typeof M=="function"){const O=w(S,M);x[S]=O,s.actions[S]=M}}return lo(I,x),lo(Je(I),x),Object.defineProperty(I,"$state",{get:()=>o.state.value[e],set:S=>{v(M=>{lo(M,S)})}}),o._p.forEach(S=>{lo(I,a.run(()=>S({store:I,app:o._a,pinia:o,options:s})))}),h&&i&&r.hydrate&&r.hydrate(I.$state,h),c=!0,d=!0,I}function $y(e,t,r){let o,n;const i=typeof t=="function";typeof e=="string"?(o=e,n=i?r:t):(n=e,o=e.id);function a(s,l){const c=fx();return s=s||(c?Oe(Lp,null):null),s&&$s(s),s=Fp,s._s.has(o)||(i?jp(o,t,n,s):Ty(o,n,s)),s._s.get(o)}return a.$id=o,a}let Za=[];const Np=new WeakMap;function Ry(){Za.forEach(e=>e(...Np.get(e))),Za=[]}function Iy(e,...t){Np.set(e,t),!Za.includes(e)&&Za.push(e)===1&&requestAnimationFrame(Ry)}function Bu(e,t){let{target:r}=e;for(;r;){if(r.dataset&&r.dataset[t]!==void 0)return!0;r=r.parentElement}return!1}function Qa(e){return e.composedPath()[0]||null}function Fu(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Rs(e,t){const r=e.trim().split(/\s+/g),o={top:r[0]};switch(r.length){case 1:o.right=r[0],o.bottom=r[0],o.left=r[0];break;case 2:o.right=r[1],o.left=r[1],o.bottom=r[0];break;case 3:o.right=r[1],o.bottom=r[2],o.left=r[1];break;case 4:o.right=r[1],o.bottom=r[2],o.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?o:o[t]}function Ey(e,t){const[r,o]=e.split(" ");return t?t==="row"?r:o:{row:r,col:o||r}}const Lu={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},Wn="^\\s*",Vn="\\s*$",jo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",No="([0-9A-Fa-f])",Wo="([0-9A-Fa-f]{2})",zy=new RegExp(`${Wn}rgb\\s*\\(${jo},${jo},${jo}\\)${Vn}`),My=new RegExp(`${Wn}rgba\\s*\\(${jo},${jo},${jo},${jo}\\)${Vn}`),Ay=new RegExp(`${Wn}#${No}${No}${No}${Vn}`),Oy=new RegExp(`${Wn}#${Wo}${Wo}${Wo}${Vn}`),Dy=new RegExp(`${Wn}#${No}${No}${No}${No}${Vn}`),By=new RegExp(`${Wn}#${Wo}${Wo}${Wo}${Wo}${Vn}`);function rr(e){return parseInt(e,16)}function Xr(e){try{let t;if(t=Oy.exec(e))return[rr(t[1]),rr(t[2]),rr(t[3]),1];if(t=zy.exec(e))return[Ut(t[1]),Ut(t[5]),Ut(t[9]),1];if(t=My.exec(e))return[Ut(t[1]),Ut(t[5]),Ut(t[9]),vi(t[13])];if(t=Ay.exec(e))return[rr(t[1]+t[1]),rr(t[2]+t[2]),rr(t[3]+t[3]),1];if(t=By.exec(e))return[rr(t[1]),rr(t[2]),rr(t[3]),vi(rr(t[4])/255)];if(t=Dy.exec(e))return[rr(t[1]+t[1]),rr(t[2]+t[2]),rr(t[3]+t[3]),vi(rr(t[4]+t[4])/255)];if(e in Lu)return Xr(Lu[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Fy(e){return e>1?1:e<0?0:e}function Wl(e,t,r,o){return`rgba(${Ut(e)}, ${Ut(t)}, ${Ut(r)}, ${Fy(o)})`}function il(e,t,r,o,n){return Ut((e*t*(1-o)+r*o)/n)}function Re(e,t){Array.isArray(e)||(e=Xr(e)),Array.isArray(t)||(t=Xr(t));const r=e[3],o=t[3],n=vi(r+o-r*o);return Wl(il(e[0],r,t[0],o,n),il(e[1],r,t[1],o,n),il(e[2],r,t[2],o,n),n)}function fe(e,t){const[r,o,n,i=1]=Array.isArray(e)?e:Xr(e);return t.alpha?Wl(r,o,n,t.alpha):Wl(r,o,n,i)}function yt(e,t){const[r,o,n,i=1]=Array.isArray(e)?e:Xr(e),{lightness:a=1,alpha:s=1}=t;return Ly([r*a,o*a,n*a,i*s])}function vi(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Ut(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Ly(e){const[t,r,o]=e;return 3 in e?`rgba(${Ut(t)}, ${Ut(r)}, ${Ut(o)}, ${vi(e[3])})`:`rgba(${Ut(t)}, ${Ut(r)}, ${Ut(o)}, 1)`}function Dn(e=8){return Math.random().toString(16).slice(2,2+e)}function Hy(e,t="default",r=[]){const n=e.$slots[t];return n===void 0?r:n()}function kn(e,t=[],r){const o={};return t.forEach(n=>{o[n]=e[n]}),Object.assign(o,r)}function Wp(e,t=[],r){const o={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(o[i]=e[i])}),Object.assign(o,r)}function es(e,t=!0,r=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&r.push(mr(String(o)));return}if(Array.isArray(o)){es(o,t,r);return}if(o.type===st){if(o.children===null)return;Array.isArray(o.children)&&es(o.children,t,r)}else{if(o.type===Zt&&t)return;r.push(o)}}}),r}function Ue(e,...t){if(Array.isArray(e))e.forEach(r=>Ue(r,...t));else return e(...t)}function Bn(e){return Object.keys(e)}const Lt=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?mr(e):typeof e=="number"?mr(String(e)):null;function Jo(e,t){console.error(`[naive/${e}]: ${t}`)}function od(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Hu(e,t="default",r=void 0){const o=e[t];if(!o)return Jo("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=es(o(r));return n.length===1?n[0]:(Jo("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function jy(e){return t=>{t?e.value=t.$el:e.value=null}}function Xi(e){return e.some(t=>Ei(t)?!(t.type===Zt||t.type===st&&!Xi(t.children)):!0)?e:null}function Tn(e,t){return e&&Xi(e())||t()}function Ny(e,t,r){return e&&Xi(e(t))||r(t)}function Bt(e,t){const r=e&&Xi(e());return t(r||null)}function Vl(e){return!(e&&Xi(e()))}const ju=ye({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Wy=/^(\d|\.)+$/,Nu=/(\d|\.)+/;function qo(e,{c:t=1,offset:r=0,attachPx:o=!0}={}){if(typeof e=="number"){const n=(e+r)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(Wy.test(e)){const n=(Number(e)+r)*t;return o?n===0?"0":`${n}px`:`${n}`}else{const n=Nu.exec(e);return n?e.replace(Nu,String((Number(n[0])+r)*t)):e}return e}function ts(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function Vy(e){let t=0;for(let r=0;r{let n=Vy(o);if(n){if(n===1){e.forEach(a=>{r.push(o.replace("&",a))});return}}else{e.forEach(a=>{r.push((a&&a+" ")+o)});return}let i=[o];for(;n--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>r.push(a))}),r}function qy(e,t){const r=[];return t.split(Vp).forEach(o=>{e.forEach(n=>{r.push((n&&n+" ")+o)})}),r}function Gy(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),r&&(r.includes("&")?t=Ky(t,r):t=qy(t,r))}),t.join(", ").replace(Uy," ")}function Wu(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Is(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Yy(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ma(e){return e?/^\s*@(s|m)/.test(e):!1}const Xy=/[A-Z]/g;function Up(e){return e.replace(Xy,t=>"-"+t.toLowerCase())}function Jy(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(r=>t+` ${Up(r[0])}: ${r[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function Zy(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function Vu(e,t,r,o){if(!t)return"";const n=Zy(t,r,o);if(!n)return"";if(typeof n=="string")return`${e} { +${n} +}`;const i=Object.keys(n);if(i.length===0)return r.config.keepEmptyBlock?e+` { +}`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=n[s];if(s==="raw"){a.push(` +`+l+` +`);return}s=Up(s),l!=null&&a.push(` ${s}${Jy(l)}`)}),e&&a.push("}"),a.join(` +`)}function Ul(e,t,r){e&&e.forEach(o=>{if(Array.isArray(o))Ul(o,t,r);else if(typeof o=="function"){const n=o(t);Array.isArray(n)?Ul(n,t,r):n&&r(n)}else o&&r(o)})}function Kp(e,t,r,o,n,i){const a=e.$;let s="";if(!a||typeof a=="string")ma(a)?s=a:t.push(a);else if(typeof a=="function"){const d=a({context:o.context,props:n});ma(d)?s=d:t.push(d)}else if(a.before&&a.before(o.context),!a.$||typeof a.$=="string")ma(a.$)?s=a.$:t.push(a.$);else if(a.$){const d=a.$({context:o.context,props:n});ma(d)?s=d:t.push(d)}const l=Gy(t),c=Vu(l,e.props,o,n);s?(r.push(`${s} {`),i&&c&&i.insertRule(`${s} { +${c} +} +`)):(i&&c&&i.insertRule(c),!i&&c.length&&r.push(c)),e.children&&Ul(e.children,{context:o.context,props:n},d=>{if(typeof d=="string"){const u=Vu(l,{raw:d},o,n);i?i.insertRule(u):r.push(u)}else Kp(d,t,r,o,n,i)}),t.pop(),s&&r.push("}"),a&&a.after&&a.after(o.context)}function qp(e,t,r,o=!1){const n=[];return Kp(e,[],n,t,r,o?e.instance.__styleSheet:void 0),o?"":n.join(` + +`)}function zi(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function Qy(e,t,r){const{els:o}=t;if(r===void 0)o.forEach(Wu),t.els=[];else{const n=Is(r);n&&o.includes(n)&&(Wu(n),t.els=o.filter(i=>i!==n))}}function Uu(e,t){e.push(t)}function eC(e,t,r,o,n,i,a,s,l){if(i&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const f=window.__cssrContext;f[r]||(f[r]=!0,qp(t,e,o,i));return}let c;if(r===void 0&&(c=t.render(o),r=zi(c)),l){l.adapter(r,c??t.render(o));return}const d=Is(r);if(d!==null&&!a)return d;const u=d??Yy(r);if(c===void 0&&(c=t.render(o)),u.textContent=c,d!==null)return d;if(s){const f=document.head.querySelector(`meta[name="${s}"]`);if(f)return document.head.insertBefore(u,f),Uu(t.els,u),u}return n?document.head.insertBefore(u,document.head.querySelector("style, link")):document.head.appendChild(u),Uu(t.els,u),u}function tC(e){return qp(this,this.instance,e)}function rC(e={}){const{id:t,ssr:r,props:o,head:n=!1,silent:i=!1,force:a=!1,anchorMetaName:s}=e;return eC(this.instance,this,t,o,n,i,a,s,r)}function oC(e={}){const{id:t}=e;Qy(this.instance,this,t)}const ga=function(e,t,r,o){return{instance:e,$:t,props:r,children:o,els:[],render:tC,mount:rC,unmount:oC}},nC=function(e,t,r,o){return Array.isArray(t)?ga(e,{$:null},null,t):Array.isArray(r)?ga(e,t,null,r):Array.isArray(o)?ga(e,t,r,o):ga(e,t,r,null)};function Gp(e={}){let t=null;const r={c:(...o)=>nC(r,...o),use:(o,...n)=>o.install(r,...n),find:Is,context:{},config:e,get __styleSheet(){if(!t){const o=document.createElement("style");return document.head.appendChild(o),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function iC(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return Is(e)!==null}function aC(e){let t=".",r="__",o="--",n;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(r=h),h=e.modifierPrefix,h&&(o=h)}const i={install(h){n=h.c;const m=h.context;m.bem={},m.bem.b=null,m.bem.els=null}};function a(h){let m,v;return{before(g){m=g.bem.b,v=g.bem.els,g.bem.els=null},after(g){g.bem.b=m,g.bem.els=v},$({context:g,props:T}){return h=typeof h=="string"?h:h({context:g,props:T}),g.bem.b=h,`${(T==null?void 0:T.bPrefix)||t}${g.bem.b}`}}}function s(h){let m;return{before(v){m=v.bem.els},after(v){v.bem.els=m},$({context:v,props:g}){return h=typeof h=="string"?h:h({context:v,props:g}),v.bem.els=h.split(",").map(T=>T.trim()),v.bem.els.map(T=>`${(g==null?void 0:g.bPrefix)||t}${v.bem.b}${r}${T}`).join(", ")}}}function l(h){return{$({context:m,props:v}){h=typeof h=="string"?h:h({context:m,props:v});const g=h.split(",").map(k=>k.trim());function T(k){return g.map(I=>`&${(v==null?void 0:v.bPrefix)||t}${m.bem.b}${k!==void 0?`${r}${k}`:""}${o}${I}`).join(", ")}const w=m.bem.els;return w!==null?T(w[0]):T()}}}function c(h){return{$({context:m,props:v}){h=typeof h=="string"?h:h({context:m,props:v});const g=m.bem.els;return`&:not(${(v==null?void 0:v.bPrefix)||t}${m.bem.b}${g!==null&&g.length>0?`${r}${g[0]}`:""}${o}${h})`}}}return Object.assign(i,{cB:(...h)=>n(a(h[0]),h[1],h[2]),cE:(...h)=>n(s(h[0]),h[1],h[2]),cM:(...h)=>n(l(h[0]),h[1],h[2]),cNotM:(...h)=>n(c(h[0]),h[1],h[2])}),i}const sC="n",Mi=`.${sC}-`,lC="__",cC="--",Yp=Gp(),Xp=aC({blockPrefix:Mi,elementPrefix:lC,modifierPrefix:cC});Yp.use(Xp);const{c:H,find:e6}=Yp,{cB:L,cE:V,cM:G,cNotM:xt}=Xp;function Jp(e){return H(({props:{bPrefix:t}})=>`${t||Mi}modal, ${t||Mi}drawer`,[e])}function Zp(e){return H(({props:{bPrefix:t}})=>`${t||Mi}popover`,[e])}function dC(e){return H(({props:{bPrefix:t}})=>`&${t||Mi}modal`,e)}const uC=(...e)=>H(">",[L(...e)]);function ve(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}let al;function fC(){return al===void 0&&(al=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),al}const Es=typeof document<"u"&&typeof window<"u";function hC(e,t,r){var o;const n=Oe(e,null);if(n===null)return;const i=(o=wo())===null||o===void 0?void 0:o.proxy;Xe(r,a),a(r.value),tr(()=>{a(void 0,r.value)});function a(c,d){if(!n)return;const u=n[t];d!==void 0&&s(u,d),c!==void 0&&l(u,c)}function s(c,d){c[d]||(c[d]=[]),c[d].splice(c[d].findIndex(u=>u===i),1)}function l(c,d){c[d]||(c[d]=[]),~c[d].findIndex(u=>u===i)||c[d].push(i)}}function pC(e,t,r){if(!t)return e;const o=Y(e.value);let n=null;return Xe(e,i=>{n!==null&&window.clearTimeout(n),i===!0?r&&!r.value?o.value=!0:n=window.setTimeout(()=>{o.value=!0},t):o.value=!1}),o}function mC(e){const t=Y(!!e.value);if(t.value)return bo(t);const r=Xe(e,o=>{o&&(t.value=!0,r())});return bo(t)}function jt(e){const t=N(e),r=Y(t.value);return Xe(t,o=>{r.value=o}),typeof e=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(o){e.set(o)}}}function gC(){return wo()!==null}const vC=typeof window<"u";let $n,bi;const bC=()=>{var e,t;$n=vC?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,bi=!1,$n!==void 0?$n.then(()=>{bi=!0}):bi=!0};bC();function xC(e){if(bi)return;let t=!1;Ft(()=>{bi||$n==null||$n.then(()=>{t||e()})}),tr(()=>{t=!0})}function za(e){return e.composedPath()[0]}const yC={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function CC(e,t,r){if(e==="mousemoveoutside"){const o=n=>{t.contains(za(n))||r(n)};return{mousemove:o,touchstart:o}}else if(e==="clickoutside"){let o=!1;const n=a=>{o=!t.contains(za(a))},i=a=>{o&&(t.contains(za(a))||r(a))};return{mousedown:n,mouseup:i,touchstart:n,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Qp(e,t,r){const o=yC[e];let n=o.get(t);n===void 0&&o.set(t,n=new WeakMap);let i=n.get(r);return i===void 0&&n.set(r,i=CC(e,t,r)),i}function SC(e,t,r,o){if(e==="mousemoveoutside"||e==="clickoutside"){const n=Qp(e,t,r);return Object.keys(n).forEach(i=>{ft(i,document,n[i],o)}),!0}return!1}function wC(e,t,r,o){if(e==="mousemoveoutside"||e==="clickoutside"){const n=Qp(e,t,r);return Object.keys(n).forEach(i=>{ot(i,document,n[i],o)}),!0}return!1}function _C(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function r(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function n(x,S,M){const O=x[S];return x[S]=function(){return M.apply(x,arguments),O.apply(x,arguments)},x}function i(x,S){x[S]=Event.prototype[S]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var x;return(x=a.get(this))!==null&&x!==void 0?x:null}function c(x,S){s!==void 0&&Object.defineProperty(x,"currentTarget",{configurable:!0,enumerable:!0,get:S??s.get})}const d={bubble:{},capture:{}},u={};function f(){const x=function(S){const{type:M,eventPhase:O,bubbles:Z}=S,A=za(S);if(O===2)return;const C=O===1?"capture":"bubble";let z=A;const P=[];for(;z===null&&(z=window),P.push(z),z!==window;)z=z.parentNode||null;const R=d.capture[M],_=d.bubble[M];if(n(S,"stopPropagation",r),n(S,"stopImmediatePropagation",o),c(S,l),C==="capture"){if(R===void 0)return;for(let W=P.length-1;W>=0&&!e.has(S);--W){const le=P[W],ie=R.get(le);if(ie!==void 0){a.set(S,le);for(const X of ie){if(t.has(S))break;X(S)}}if(W===0&&!Z&&_!==void 0){const X=_.get(le);if(X!==void 0)for(const re of X){if(t.has(S))break;re(S)}}}}else if(C==="bubble"){if(_===void 0)return;for(let W=0;WA(S))};return x.displayName="evtdUnifiedWindowEventHandler",x}const h=f(),m=p();function v(x,S){const M=d[x];return M[S]===void 0&&(M[S]=new Map,window.addEventListener(S,h,x==="capture")),M[S]}function g(x){return u[x]===void 0&&(u[x]=new Set,window.addEventListener(x,m)),u[x]}function T(x,S){let M=x.get(S);return M===void 0&&x.set(S,M=new Set),M}function w(x,S,M,O){const Z=d[S][M];if(Z!==void 0){const A=Z.get(x);if(A!==void 0&&A.has(O))return!0}return!1}function k(x,S){const M=u[x];return!!(M!==void 0&&M.has(S))}function I(x,S,M,O){let Z;if(typeof O=="object"&&O.once===!0?Z=R=>{B(x,S,Z,O),M(R)}:Z=M,SC(x,S,Z,O))return;const C=O===!0||typeof O=="object"&&O.capture===!0?"capture":"bubble",z=v(C,x),P=T(z,S);if(P.has(Z)||P.add(Z),S===window){const R=g(x);R.has(Z)||R.add(Z)}}function B(x,S,M,O){if(wC(x,S,M,O))return;const A=O===!0||typeof O=="object"&&O.capture===!0,C=A?"capture":"bubble",z=v(C,x),P=T(z,S);if(S===window&&!w(S,A?"bubble":"capture",x,M)&&k(x,M)){const _=u[x];_.delete(M),_.size===0&&(window.removeEventListener(x,m),u[x]=void 0)}P.has(M)&&P.delete(M),P.size===0&&z.delete(S),z.size===0&&(window.removeEventListener(x,h,C==="capture"),d[C][x]=void 0)}return{on:I,off:B}}const{on:ft,off:ot}=_C();function Fn(e,t){return Xe(e,r=>{r!==void 0&&(t.value=r)}),N(()=>e.value===void 0?t.value:e.value)}function zs(){const e=Y(!1);return Ft(()=>{e.value=!0}),bo(e)}function nd(e,t){return N(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}const PC=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function kC(){return PC}function TC(e={},t){const r=Gr({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:n}=e,i=l=>{switch(l.key){case"Control":r.ctrl=!0;break;case"Meta":r.command=!0,r.win=!0;break;case"Shift":r.shift=!0;break;case"Tab":r.tab=!0;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==l.key)return;const d=o[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},a=l=>{switch(l.key){case"Control":r.ctrl=!1;break;case"Meta":r.command=!1,r.win=!1;break;case"Shift":r.shift=!1;break;case"Tab":r.tab=!1;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==l.key)return;const d=n[c];if(typeof d=="function")d(l);else{const{stop:u=!1,prevent:f=!1}=d;u&&l.stopPropagation(),f&&l.preventDefault(),d.handler(l)}})},s=()=>{(t===void 0||t.value)&&(ft("keydown",document,i),ft("keyup",document,a)),t!==void 0&&Xe(t,l=>{l?(ft("keydown",document,i),ft("keyup",document,a)):(ot("keydown",document,i),ot("keyup",document,a))})};return gC()?(qi(s),tr(()=>{(t===void 0||t.value)&&(ot("keydown",document,i),ot("keyup",document,a))})):s(),bo(r)}const $C="n-internal-select-menu-body",id="n-modal-body",ad="n-drawer-body",Ms="n-popover-body",em="__disabled__";function Jr(e){const t=Oe(id,null),r=Oe(ad,null),o=Oe(Ms,null),n=Oe($C,null),i=Y();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Ft(()=>{ft("fullscreenchange",document,a)}),tr(()=>{ot("fullscreenchange",document,a)})}return jt(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?em:s===!0?i.value||"body":s:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:s??(i.value||"body")})}Jr.tdkey=em;Jr.propTo={type:[String,Object,Boolean],default:void 0};function Kl(e,t,r="default"){const o=t[r];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);return o()}function ql(e,t=!0,r=[]){return e.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&r.push(mr(String(o)));return}if(Array.isArray(o)){ql(o,t,r);return}if(o.type===st){if(o.children===null)return;Array.isArray(o.children)&&ql(o.children,t,r)}else o.type!==Zt&&r.push(o)}}),r}function Ku(e,t,r="default"){const o=t[r];if(o===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);const n=ql(o());if(n.length===1)return n[0];throw new Error(`[vueuc/${e}]: slot[${r}] should have exactly one child.`)}let no=null;function tm(){if(no===null&&(no=document.getElementById("v-binder-view-measurer"),no===null)){no=document.createElement("div"),no.id="v-binder-view-measurer";const{style:e}=no;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(no)}return no.getBoundingClientRect()}function RC(e,t){const r=tm();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function sl(e){const t=e.getBoundingClientRect(),r=tm();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function IC(e){return e.nodeType===9?null:e.parentNode}function rm(e){if(e===null)return null;const t=IC(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:o,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+n+o))return t}return rm(t)}const EC=ye({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;nt("VBinder",(t=wo())===null||t===void 0?void 0:t.proxy);const r=Oe("VBinder",null),o=Y(null),n=g=>{o.value=g,r&&e.syncTargetWithParent&&r.setTargetRef(g)};let i=[];const a=()=>{let g=o.value;for(;g=rm(g),g!==null;)i.push(g);for(const T of i)ft("scroll",T,u,!0)},s=()=>{for(const g of i)ot("scroll",g,u,!0);i=[]},l=new Set,c=g=>{l.size===0&&a(),l.has(g)||l.add(g)},d=g=>{l.has(g)&&l.delete(g),l.size===0&&s()},u=()=>{Iy(f)},f=()=>{l.forEach(g=>g())},p=new Set,h=g=>{p.size===0&&ft("resize",window,v),p.has(g)||p.add(g)},m=g=>{p.has(g)&&p.delete(g),p.size===0&&ot("resize",window,v)},v=()=>{p.forEach(g=>g())};return tr(()=>{ot("resize",window,v),s()}),{targetRef:o,setTargetRef:n,addScrollListener:c,removeScrollListener:d,addResizeListener:h,removeResizeListener:m}},render(){return Kl("binder",this.$slots)}}),sd=EC,ld=ye({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Oe("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Ki(Ku("follower",this.$slots),[[t]]):Ku("follower",this.$slots)}}),mn="@@mmoContext",zC={mounted(e,{value:t}){e[mn]={handler:void 0},typeof t=="function"&&(e[mn].handler=t,ft("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[mn];typeof t=="function"?r.handler?r.handler!==t&&(ot("mousemoveoutside",e,r.handler),r.handler=t,ft("mousemoveoutside",e,t)):(e[mn].handler=t,ft("mousemoveoutside",e,t)):r.handler&&(ot("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[mn];t&&ot("mousemoveoutside",e,t),e[mn].handler=void 0}},MC=zC,gn="@@coContext",AC={mounted(e,{value:t,modifiers:r}){e[gn]={handler:void 0},typeof t=="function"&&(e[gn].handler=t,ft("clickoutside",e,t,{capture:r.capture}))},updated(e,{value:t,modifiers:r}){const o=e[gn];typeof t=="function"?o.handler?o.handler!==t&&(ot("clickoutside",e,o.handler,{capture:r.capture}),o.handler=t,ft("clickoutside",e,t,{capture:r.capture})):(e[gn].handler=t,ft("clickoutside",e,t,{capture:r.capture})):o.handler&&(ot("clickoutside",e,o.handler,{capture:r.capture}),o.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:r}=e[gn];r&&ot("clickoutside",e,r,{capture:t.capture}),e[gn].handler=void 0}},qu=AC;function OC(e,t){console.error(`[vdirs/${e}]: ${t}`)}class DC{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,r){const{elementZIndex:o}=this;if(r!==void 0){t.style.zIndex=`${r}`,o.delete(t);return}const{nextZIndex:n}=this;o.has(t)&&o.get(t)+1===this.nextZIndex||(t.style.zIndex=`${n}`,o.set(t,n),this.nextZIndex=n+1,this.squashState())}unregister(t,r){const{elementZIndex:o}=this;o.has(t)?o.delete(t):r===void 0&&OC("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((r,o)=>r[1]-o[1]),this.nextZIndex=2e3,t.forEach(r=>{const o=r[0],n=this.nextZIndex++;`${n}`!==o.style.zIndex&&(o.style.zIndex=`${n}`)})}}const ll=new DC,vn="@@ziContext",BC={mounted(e,t){const{value:r={}}=t,{zIndex:o,enabled:n}=r;e[vn]={enabled:!!n,initialized:!1},n&&(ll.ensureZIndex(e,o),e[vn].initialized=!0)},updated(e,t){const{value:r={}}=t,{zIndex:o,enabled:n}=r,i=e[vn].enabled;n&&!i&&(ll.ensureZIndex(e,o),e[vn].initialized=!0),e[vn].enabled=!!n},unmounted(e,t){if(!e[vn].initialized)return;const{value:r={}}=t,{zIndex:o}=r;ll.unregister(e,o)}},om=BC,nm=Symbol("@css-render/vue3-ssr");function FC(e,t){return``}function LC(e,t){const r=Oe(nm,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:o,ids:n}=r;n.has(e)||o!==null&&(n.add(e),o.push(FC(e,t)))}const HC=typeof document<"u";function Un(){if(HC)return;const e=Oe(nm,null);if(e!==null)return{adapter:LC,context:e}}function Gu(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:li}=Gp(),im="vueuc-style";function Yu(e){return typeof e=="string"?document.querySelector(e):e()}const jC=ye({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:mC(tt(e,"show")),mergedTo:N(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Kl("lazy-teleport",this.$slots):b(ed,{disabled:this.disabled,to:this.mergedTo},Kl("lazy-teleport",this.$slots)):null}}),va={top:"bottom",bottom:"top",left:"right",right:"left"},Xu={start:"end",center:"center",end:"start"},cl={top:"height",bottom:"height",left:"width",right:"width"},NC={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},WC={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},VC={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Ju={top:!0,bottom:!1,left:!0,right:!1},Zu={top:"end",bottom:"start",left:"end",right:"start"};function UC(e,t,r,o,n,i){if(!n||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s??"center",c={top:0,left:0};const d=(p,h,m)=>{let v=0,g=0;const T=r[p]-t[h]-t[p];return T>0&&o&&(m?g=Ju[h]?T:-T:v=Ju[h]?T:-T),{left:v,top:g}},u=a==="left"||a==="right";if(l!=="center"){const p=VC[e],h=va[p],m=cl[p];if(r[m]>t[m]){if(t[p]+t[m]t[h]&&(l=Xu[s])}else{const p=a==="bottom"||a==="top"?"left":"top",h=va[p],m=cl[p],v=(r[m]-t[m])/2;(t[p]t[h]?(l=Zu[p],c=d(m,p,u)):(l=Zu[h],c=d(m,h,u)))}let f=a;return t[a] *",{pointerEvents:"all"})])]),cd=ye({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Oe("VBinder"),r=jt(()=>e.enabled!==void 0?e.enabled:e.show),o=Y(null),n=Y(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(l),f.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Ft(()=>{r.value&&(l(),i())});const s=Un();GC.mount({id:"vueuc/binder",head:!0,anchorMetaName:im,ssr:s}),tr(()=>{a()}),xC(()=>{r.value&&l()});const l=()=>{if(!r.value)return;const f=o.value;if(f===null)return;const p=t.targetRef,{x:h,y:m,overlap:v}=e,g=h!==void 0&&m!==void 0?RC(h,m):sl(p);f.style.setProperty("--v-target-width",`${Math.round(g.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(g.height)}px`);const{width:T,minWidth:w,placement:k,internalShift:I,flip:B}=e;f.setAttribute("v-placement",k),v?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:x}=f;T==="target"?x.width=`${g.width}px`:T!==void 0?x.width=T:x.width="",w==="target"?x.minWidth=`${g.width}px`:w!==void 0?x.minWidth=w:x.minWidth="";const S=sl(f),M=sl(n.value),{left:O,top:Z,placement:A}=UC(k,g,S,I,B,v),C=KC(A,v),{left:z,top:P,transform:R}=qC(A,M,g,Z,O,v);f.setAttribute("v-placement",A),f.style.setProperty("--v-offset-left",`${Math.round(O)}px`),f.style.setProperty("--v-offset-top",`${Math.round(Z)}px`),f.style.transform=`translateX(${z}) translateY(${P}) ${R}`,f.style.setProperty("--v-transform-origin",C),f.style.transformOrigin=C};Xe(r,f=>{f?(i(),c()):a()});const c=()=>{Jt().then(l).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{Xe(tt(e,f),l)}),["teleportDisabled"].forEach(f=>{Xe(tt(e,f),c)}),Xe(tt(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),f.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const d=zs(),u=jt(()=>{const{to:f}=e;if(f!==void 0)return f;d.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:n,followerRef:o,mergedTo:u,syncPosition:l}},render(){return b(jC,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=b("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[b("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?Ki(r,[[om,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}});var Go=[],YC=function(){return Go.some(function(e){return e.activeTargets.length>0})},XC=function(){return Go.some(function(e){return e.skippedTargets.length>0})},Qu="ResizeObserver loop completed with undelivered notifications.",JC=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Qu}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Qu),window.dispatchEvent(e)},Ai;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ai||(Ai={}));var Yo=function(e){return Object.freeze(e)},ZC=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Yo(this)}return e}(),am=function(){function e(t,r,o,n){return this.x=t,this.y=r,this.width=o,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Yo(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,o=t.y,n=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,c=t.height;return{x:r,y:o,top:n,right:i,bottom:a,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),dd=function(e){return e instanceof SVGElement&&"getBBox"in e},sm=function(e){if(dd(e)){var t=e.getBBox(),r=t.width,o=t.height;return!r&&!o}var n=e,i=n.offsetWidth,a=n.offsetHeight;return!(i||a||e.getClientRects().length)},ef=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},QC=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},xi=typeof window<"u"?window:{},ba=new WeakMap,tf=/auto|scroll/,e1=/^tb|vertical/,t1=/msie|trident/i.test(xi.navigator&&xi.navigator.userAgent),Ir=function(e){return parseFloat(e||"0")},Rn=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new ZC((r?t:e)||0,(r?e:t)||0)},rf=Yo({devicePixelContentBoxSize:Rn(),borderBoxSize:Rn(),contentBoxSize:Rn(),contentRect:new am(0,0,0,0)}),lm=function(e,t){if(t===void 0&&(t=!1),ba.has(e)&&!t)return ba.get(e);if(sm(e))return ba.set(e,rf),rf;var r=getComputedStyle(e),o=dd(e)&&e.ownerSVGElement&&e.getBBox(),n=!t1&&r.boxSizing==="border-box",i=e1.test(r.writingMode||""),a=!o&&tf.test(r.overflowY||""),s=!o&&tf.test(r.overflowX||""),l=o?0:Ir(r.paddingTop),c=o?0:Ir(r.paddingRight),d=o?0:Ir(r.paddingBottom),u=o?0:Ir(r.paddingLeft),f=o?0:Ir(r.borderTopWidth),p=o?0:Ir(r.borderRightWidth),h=o?0:Ir(r.borderBottomWidth),m=o?0:Ir(r.borderLeftWidth),v=u+c,g=l+d,T=m+p,w=f+h,k=s?e.offsetHeight-w-e.clientHeight:0,I=a?e.offsetWidth-T-e.clientWidth:0,B=n?v+T:0,x=n?g+w:0,S=o?o.width:Ir(r.width)-B-I,M=o?o.height:Ir(r.height)-x-k,O=S+v+I+T,Z=M+g+k+w,A=Yo({devicePixelContentBoxSize:Rn(Math.round(S*devicePixelRatio),Math.round(M*devicePixelRatio),i),borderBoxSize:Rn(O,Z,i),contentBoxSize:Rn(S,M,i),contentRect:new am(u,l,S,M)});return ba.set(e,A),A},cm=function(e,t,r){var o=lm(e,r),n=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case Ai.DEVICE_PIXEL_CONTENT_BOX:return a;case Ai.BORDER_BOX:return n;default:return i}},r1=function(){function e(t){var r=lm(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Yo([r.borderBoxSize]),this.contentBoxSize=Yo([r.contentBoxSize]),this.devicePixelContentBoxSize=Yo([r.devicePixelContentBoxSize])}return e}(),dm=function(e){if(sm(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},o1=function(){var e=1/0,t=[];Go.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(c){var d=new r1(c.target),u=dm(c.target);s.push(d),c.lastReportedSize=cm(c.target,c.observedBox),ue?r.activeTargets.push(n):r.skippedTargets.push(n))})})},n1=function(){var e=0;for(of(e);YC();)e=o1(),of(e);return XC()&&JC(),e>0},dl,um=[],i1=function(){return um.splice(0).forEach(function(e){return e()})},a1=function(e){if(!dl){var t=0,r=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return i1()}).observe(r,o),dl=function(){r.textContent="".concat(t?t--:t++)}}um.push(e),dl()},s1=function(e){a1(function(){requestAnimationFrame(e)})},Ma=0,l1=function(){return!!Ma},c1=250,d1={attributes:!0,characterData:!0,childList:!0,subtree:!0},nf=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],af=function(e){return e===void 0&&(e=0),Date.now()+e},ul=!1,u1=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=c1),!ul){ul=!0;var o=af(t);s1(function(){var n=!1;try{n=n1()}finally{if(ul=!1,t=o-af(),!l1())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,d1)};document.body?r():xi.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),nf.forEach(function(r){return xi.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),nf.forEach(function(r){return xi.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),Gl=new u1,sf=function(e){!Ma&&e>0&&Gl.start(),Ma+=e,!Ma&&Gl.stop()},f1=function(e){return!dd(e)&&!QC(e)&&getComputedStyle(e).display==="inline"},h1=function(){function e(t,r){this.target=t,this.observedBox=r||Ai.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=cm(this.target,this.observedBox,!0);return f1(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),p1=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),xa=new WeakMap,lf=function(e,t){for(var r=0;r=0&&(i&&Go.splice(Go.indexOf(o),1),o.observationTargets.splice(n,1),sf(-1))},e.disconnect=function(t){var r=this,o=xa.get(t);o.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),m1=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ya.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ef(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ya.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ef(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ya.unobserve(this,t)},e.prototype.disconnect=function(){ya.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class g1{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||m1)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const r of t){const o=this.elHandlersMap.get(r.target);o!==void 0&&o(r)}}registerHandler(t,r){this.elHandlersMap.set(t,r),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const cf=new g1,rs=ye({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const r=wo().proxy;function o(n){const{onResize:i}=e;i!==void 0&&i(n)}Ft(()=>{const n=r.$el;if(n===void 0){Gu("resize-observer","$el does not exist.");return}if(n.nextElementSibling!==n.nextSibling&&n.nodeType===3&&n.nodeValue!==""){Gu("resize-observer","$el can not be observed (it may be a text node).");return}n.nextElementSibling!==null&&(cf.registerHandler(n.nextElementSibling,o),t=!0)}),tr(()=>{t&&cf.unregisterHandler(r.$el.nextElementSibling)})},render(){return _s(this.$slots,"default")}}),Wr="v-hidden",v1=li("[v-hidden]",{display:"none!important"}),b1=ye({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const r=Y(null),o=Y(null);function n(a){const{value:s}=r,{getCounter:l,getTail:c}=e;let d;if(l!==void 0?d=l():d=o.value,!s||!d)return;d.hasAttribute(Wr)&&d.removeAttribute(Wr);const{children:u}=s;if(a.showAllItemsBeforeCalculate)for(const w of u)w.hasAttribute(Wr)&&w.removeAttribute(Wr);const f=s.offsetWidth,p=[],h=t.tail?c==null?void 0:c():null;let m=h?h.offsetWidth:0,v=!1;const g=s.children.length-(t.tail?1:0);for(let w=0;wf){const{updateCounter:B}=e;for(let x=w;x>=0;--x){const S=g-1-x;B!==void 0?B(S):d.textContent=`${S}`;const M=d.offsetWidth;if(m-=p[x],m+M<=f||x===0){v=!0,w=x-1,h&&(w===-1?(h.style.maxWidth=`${f-M}px`,h.style.boxSizing="border-box"):h.style.maxWidth="");const{onUpdateCount:O}=e;O&&O(S);break}}}}const{onUpdateOverflow:T}=e;v?T!==void 0&&T(!0):(T!==void 0&&T(!1),d.setAttribute(Wr,""))}const i=Un();return v1.mount({id:"vueuc/overflow",head:!0,anchorMetaName:im,ssr:i}),Ft(()=>n({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:o,sync:n}},render(){const{$slots:e}=this;return Jt(()=>this.sync({showAllItemsBeforeCalculate:!1})),b("div",{class:"v-overflow",ref:"selfRef"},[_s(e,"default"),e.counter?e.counter():b("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function fm(e){return e instanceof HTMLElement}function hm(e){for(let t=0;t=0;t--){const r=e.childNodes[t];if(fm(r)&&(mm(r)||pm(r)))return!0}return!1}function mm(e){if(!x1(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function x1(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let ri=[];const y1=ye({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Dn(),r=Y(null),o=Y(null);let n=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return ri[ri.length-1]===t}function l(v){var g;v.code==="Escape"&&s()&&((g=e.onEsc)===null||g===void 0||g.call(e,v))}Ft(()=>{Xe(()=>e.active,v=>{v?(u(),ft("keydown",document,l)):(ot("keydown",document,l),n&&f())},{immediate:!0})}),tr(()=>{ot("keydown",document,l),n&&f()});function c(v){if(!i&&s()){const g=d();if(g===null||g.contains(Qa(v)))return;p("first")}}function d(){const v=r.value;if(v===null)return null;let g=v;for(;g=g.nextSibling,!(g===null||g instanceof Element&&g.tagName==="DIV"););return g}function u(){var v;if(!e.disabled){if(ri.push(t),e.autoFocus){const{initialFocusTo:g}=e;g===void 0?p("first"):(v=Yu(g))===null||v===void 0||v.focus({preventScroll:!0})}n=!0,document.addEventListener("focus",c,!0)}}function f(){var v;if(e.disabled||(document.removeEventListener("focus",c,!0),ri=ri.filter(T=>T!==t),s()))return;const{finalFocusTo:g}=e;g!==void 0?(v=Yu(g))===null||v===void 0||v.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function p(v){if(s()&&e.active){const g=r.value,T=o.value;if(g!==null&&T!==null){const w=d();if(w==null||w===T){i=!0,g.focus({preventScroll:!0}),i=!1;return}i=!0;const k=v==="first"?hm(w):pm(w);i=!1,k||(i=!0,g.focus({preventScroll:!0}),i=!1)}}}function h(v){if(i)return;const g=d();g!==null&&(v.relatedTarget!==null&&g.contains(v.relatedTarget)?p("last"):p("first"))}function m(v){i||(v.relatedTarget!==null&&v.relatedTarget===r.value?p("last"):p("first"))}return{focusableStartRef:r,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:m}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:r}=this;return b(st,null,[b("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:r,onFocus:this.handleStartFocus}),e(),b("div",{"aria-hidden":"true",style:r,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function gm(e){const t={isDeactivated:!1};let r=!1;return dp(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),up(()=>{t.isDeactivated=!0,r||(r=!0)}),t}const Yl="n-form-item";function ud(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:o}={}){const n=Oe(Yl,null);nt(Yl,null);const i=N(r?()=>r(n):()=>{const{size:l}=e;if(l)return l;if(n){const{mergedSize:c}=n;if(c.value!==void 0)return c.value}return t}),a=N(o?()=>o(n):()=>{const{disabled:l}=e;return l!==void 0?l:n?n.disabled.value:!1}),s=N(()=>{const{status:l}=e;return l||(n==null?void 0:n.mergedValidationStatus.value)});return tr(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}var vm=typeof global=="object"&&global&&global.Object===Object&&global,C1=typeof self=="object"&&self&&self.Object===Object&&self,jr=vm||C1||Function("return this")(),xo=jr.Symbol,bm=Object.prototype,S1=bm.hasOwnProperty,w1=bm.toString,oi=xo?xo.toStringTag:void 0;function _1(e){var t=S1.call(e,oi),r=e[oi];try{e[oi]=void 0;var o=!0}catch{}var n=w1.call(e);return o&&(t?e[oi]=r:delete e[oi]),n}var P1=Object.prototype,k1=P1.toString;function T1(e){return k1.call(e)}var $1="[object Null]",R1="[object Undefined]",df=xo?xo.toStringTag:void 0;function on(e){return e==null?e===void 0?R1:$1:df&&df in Object(e)?_1(e):T1(e)}function yo(e){return e!=null&&typeof e=="object"}var I1="[object Symbol]";function fd(e){return typeof e=="symbol"||yo(e)&&on(e)==I1}function xm(e,t){for(var r=-1,o=e==null?0:e.length,n=Array(o);++r0){if(++t>=J1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function tS(e){return function(){return e}}var os=function(){try{var e=an(Object,"defineProperty");return e({},"",{}),e}catch{}}(),rS=os?function(e,t){return os(e,"toString",{configurable:!0,enumerable:!1,value:tS(t),writable:!0})}:hd;const oS=rS;var nS=eS(oS),iS=9007199254740991,aS=/^(?:0|[1-9]\d*)$/;function md(e,t){var r=typeof e;return t=t??iS,!!t&&(r=="number"||r!="symbol"&&aS.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=hS}function Kn(e){return e!=null&&vd(e.length)&&!pd(e)}function pS(e,t,r){if(!_o(r))return!1;var o=typeof t;return(o=="number"?Kn(r)&&md(t,r.length):o=="string"&&t in r)?Ji(r[t],e):!1}function mS(e){return fS(function(t,r){var o=-1,n=r.length,i=n>1?r[n-1]:void 0,a=n>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,a&&pS(r[0],r[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++o-1}function kw(e,t){var r=this.__data__,o=As(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}function Qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++tn?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(n);++o=o?e:qw(e,t,r)}var Yw="\\ud800-\\udfff",Xw="\\u0300-\\u036f",Jw="\\ufe20-\\ufe2f",Zw="\\u20d0-\\u20ff",Qw=Xw+Jw+Zw,e2="\\ufe0e\\ufe0f",t2="\\u200d",r2=RegExp("["+t2+Yw+Qw+e2+"]");function zm(e){return r2.test(e)}function o2(e){return e.split("")}var Mm="\\ud800-\\udfff",n2="\\u0300-\\u036f",i2="\\ufe20-\\ufe2f",a2="\\u20d0-\\u20ff",s2=n2+i2+a2,l2="\\ufe0e\\ufe0f",c2="["+Mm+"]",Jl="["+s2+"]",Zl="\\ud83c[\\udffb-\\udfff]",d2="(?:"+Jl+"|"+Zl+")",Am="[^"+Mm+"]",Om="(?:\\ud83c[\\udde6-\\uddff]){2}",Dm="[\\ud800-\\udbff][\\udc00-\\udfff]",u2="\\u200d",Bm=d2+"?",Fm="["+l2+"]?",f2="(?:"+u2+"(?:"+[Am,Om,Dm].join("|")+")"+Fm+Bm+")*",h2=Fm+Bm+f2,p2="(?:"+[Am+Jl+"?",Jl,Om,Dm,c2].join("|")+")",m2=RegExp(Zl+"(?="+Zl+")|"+p2+h2,"g");function g2(e){return e.match(m2)||[]}function v2(e){return zm(e)?g2(e):o2(e)}function b2(e){return function(t){t=Tm(t);var r=zm(t)?v2(t):void 0,o=r?r[0]:t.charAt(0),n=r?Gw(r,1).join(""):t.slice(1);return o[e]()+n}}var x2=b2("toUpperCase");function y2(){this.__data__=new Qr,this.size=0}function C2(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function S2(e){return this.__data__.get(e)}function w2(e){return this.__data__.has(e)}var _2=200;function P2(e,t){var r=this.__data__;if(r instanceof Qr){var o=r.__data__;if(!Di||o.length<_2-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new eo(o)}return r.set(e,t),this.size=r.size,this}function Lr(e){var t=this.__data__=new Qr(e);this.size=t.size}Lr.prototype.clear=y2;Lr.prototype.delete=C2;Lr.prototype.get=S2;Lr.prototype.has=w2;Lr.prototype.set=P2;var Lm=typeof hr=="object"&&hr&&!hr.nodeType&&hr,Cf=Lm&&typeof pr=="object"&&pr&&!pr.nodeType&&pr,k2=Cf&&Cf.exports===Lm,Sf=k2?jr.Buffer:void 0,wf=Sf?Sf.allocUnsafe:void 0;function T2(e,t){if(t)return e.slice();var r=e.length,o=wf?wf(r):new e.constructor(r);return e.copy(o),o}function $2(e,t){for(var r=-1,o=e==null?0:e.length,n=0,i=[];++rs))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,p=r&J2?new ss:void 0;for(i.set(e,t),i.set(t,e);++u{const d=i==null?void 0:i.value;r.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:Bi,ssr:a}),s!=null&&s.preflightStyleDisabled||Um.mount({id:"n-global",head:!0,anchorMetaName:Bi,ssr:a})};a?c():qi(c)}return N(()=>{var c;const{theme:{common:d,self:u,peers:f={}}={},themeOverrides:p={},builtinThemeOverrides:h={}}=n,{common:m,peers:v}=p,{common:g=void 0,[e]:{common:T=void 0,self:w=void 0,peers:k={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:I=void 0,[e]:B={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:x,peers:S={}}=B,M=ci({},d||T||g||o.common,I,x,m),O=ci((c=u||w||o.self)===null||c===void 0?void 0:c(M),h,B,p);return{common:M,self:O,peers:ci({},o.peers,k,f),peerOverrides:ci({},h.peers,S,v)}})}We.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ls="n";function St(e={},t={defaultBordered:!0}){const r=Oe(Co,null);return{inlineThemeDisabled:r==null?void 0:r.inlineThemeDisabled,mergedRtlRef:r==null?void 0:r.mergedRtlRef,mergedComponentPropsRef:r==null?void 0:r.mergedComponentPropsRef,mergedBreakpointsRef:r==null?void 0:r.mergedBreakpointsRef,mergedBorderedRef:N(()=>{var o,n;const{bordered:i}=e;return i!==void 0?i:(n=(o=r==null?void 0:r.mergedBorderedRef.value)!==null&&o!==void 0?o:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:r?r.mergedClsPrefixRef:Mr(ls),namespaceRef:N(()=>r==null?void 0:r.mergedNamespaceRef.value)}}const G_={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},Y_=G_;function ml(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,o=e.formats[r]||e.formats[e.defaultWidth];return o}}function ni(e){return function(t,r){var o=r!=null&&r.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):i;n=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;n=e.values[l]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return n[c]}}function ii(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;var a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?J_(s,function(u){return u.test(a)}):X_(s,function(u){return u.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;var d=t.slice(a.length);return{value:c,rest:d}}}function X_(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function J_(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},o=t.match(e.matchPattern);if(!o)return null;var n=o[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;var s=t.slice(n.length);return{value:a,rest:s}}}var Q_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},eP=function(t,r,o){var n,i=Q_[t];return typeof i=="string"?n=i:r===1?n=i.one:n=i.other.replace("{{count}}",r.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n};const tP=eP;var rP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iP={date:ml({formats:rP,defaultWidth:"full"}),time:ml({formats:oP,defaultWidth:"full"}),dateTime:ml({formats:nP,defaultWidth:"full"})};const aP=iP;var sP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lP=function(t,r,o,n){return sP[t]};const cP=lP;var dP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hP={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},pP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},mP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},gP=function(t,r){var o=Number(t),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},vP={ordinalNumber:gP,era:ni({values:dP,defaultWidth:"wide"}),quarter:ni({values:uP,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ni({values:fP,defaultWidth:"wide"}),day:ni({values:hP,defaultWidth:"wide"}),dayPeriod:ni({values:pP,defaultWidth:"wide",formattingValues:mP,defaultFormattingWidth:"wide"})};const bP=vP;var xP=/^(\d+)(th|st|nd|rd)?/i,yP=/\d+/i,CP={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},SP={any:[/^b/i,/^(a|c)/i]},wP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_P={any:[/1/i,/2/i,/3/i,/4/i]},PP={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},kP={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},TP={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$P={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},RP={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},IP={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},EP={ordinalNumber:Z_({matchPattern:xP,parsePattern:yP,valueCallback:function(t){return parseInt(t,10)}}),era:ii({matchPatterns:CP,defaultMatchWidth:"wide",parsePatterns:SP,defaultParseWidth:"any"}),quarter:ii({matchPatterns:wP,defaultMatchWidth:"wide",parsePatterns:_P,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ii({matchPatterns:PP,defaultMatchWidth:"wide",parsePatterns:kP,defaultParseWidth:"any"}),day:ii({matchPatterns:TP,defaultMatchWidth:"wide",parsePatterns:$P,defaultParseWidth:"any"}),dayPeriod:ii({matchPatterns:RP,defaultMatchWidth:"any",parsePatterns:IP,defaultParseWidth:"any"})};const zP=EP;var MP={code:"en-US",formatDistance:tP,formatLong:aP,formatRelative:cP,localize:bP,match:zP,options:{weekStartsOn:0,firstWeekContainsDate:1}};const AP=MP,OP={name:"en-US",locale:AP},DP=OP;function BP(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=Oe(Co,null)||{},o=N(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:Y_[e]});return{dateLocaleRef:N(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:DP}),localeRef:o}}function qn(e,t,r){if(!t)return;const o=Un(),n=Oe(Co,null),i=()=>{const a=r.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:Bi,props:{bPrefix:a?`.${a}-`:void 0},ssr:o}),n!=null&&n.preflightStyleDisabled||Um.mount({id:"n-global",head:!0,anchorMetaName:Bi,ssr:o})};o?i():qi(i)}function Nt(e,t,r,o){var n;r||od("useThemeClass","cssVarsRef is not passed");const i=(n=Oe(Co,null))===null||n===void 0?void 0:n.mergedThemeHashRef,a=Y(""),s=Un();let l;const c=`__${e}`,d=()=>{let u=c;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(u+="-"+p),f&&(u+="-"+f);const{themeOverrides:h,builtinThemeOverrides:m}=o;h&&(u+="-"+zi(JSON.stringify(h))),m&&(u+="-"+zi(JSON.stringify(m))),a.value=u,l=()=>{const v=r.value;let g="";for(const T in v)g+=`${T}: ${v[T]};`;H(`.${u}`,g).mount({id:u,ssr:s}),l=void 0}};return Tr(()=>{d()}),{themeClass:a,onRender:()=>{l==null||l()}}}function Po(e,t,r){if(!t)return;const o=Un(),n=N(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{Tr(()=>{const{value:a}=r,s=`${a}${e}Rtl`;if(iC(s,o))return;const{value:l}=n;l&&l.style.mount({id:s,head:!0,anchorMetaName:Bi,props:{bPrefix:a?`.${a}-`:void 0},ssr:o})})};return o?i():qi(i),n}function Gn(e,t){return ye({name:x2(e),setup(){var r;const o=(r=Oe(Co,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var n;const i=(n=o==null?void 0:o.value)===null||n===void 0?void 0:n[e];return i?i():t}}})}const FP=ye({name:"ChevronRight",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),LP=Gn("close",b("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},b("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},b("g",{fill:"currentColor","fill-rule":"nonzero"},b("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),HP=ye({name:"Eye",render(){return b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},b("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),b("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),jP=ye({name:"EyeOff",render(){return b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},b("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),b("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),b("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),b("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),b("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),Km=Gn("error",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),qm=Gn("info",b("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),Gm=Gn("success",b("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Ym=Gn("warning",b("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},b("g",{"fill-rule":"nonzero"},b("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),NP=ye({name:"ChevronDown",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),WP=Gn("clear",b("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},b("g",{fill:"currentColor","fill-rule":"nonzero"},b("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),VP=ye({name:"ChevronDownFilled",render(){return b("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),Bs=ye({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=zs();return()=>b($r,{name:"icon-switch-transition",appear:r.value},t)}}),Pd=ye({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(s){e.width?s.style.maxWidth=`${s.offsetWidth}px`:s.style.maxHeight=`${s.offsetHeight}px`,s.offsetWidth}function o(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function n(s){e.width?s.style.maxWidth="":s.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(s){if(s.style.transition="none",e.width){const l=s.offsetWidth;s.style.maxWidth="0",s.offsetWidth,s.style.transition="",s.style.maxWidth=`${l}px`}else if(e.reverse)s.style.maxHeight=`${s.offsetHeight}px`,s.offsetHeight,s.style.transition="",s.style.maxHeight="0";else{const l=s.offsetHeight;s.style.maxHeight="0",s.offsetWidth,s.style.transition="",s.style.maxHeight=`${l}px`}s.offsetWidth}function a(s){var l;e.width?s.style.maxWidth="":e.reverse||(s.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:s,width:l,appear:c,mode:d}=e,u=s?ay:$r,f={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:r,onLeave:o,onAfterLeave:n};return s||(f.mode=d),b(u,f,t)}}}),UP=L("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[H("svg",` + height: 1em; + width: 1em; + `)]),So=ye({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){qn("-base-icon",UP,tt(e,"clsPrefix"))},render(){return b("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),KP=L("base-close",` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + background-color: transparent; + color: var(--n-close-icon-color); + border-radius: var(--n-close-border-radius); + height: var(--n-close-size); + width: var(--n-close-size); + font-size: var(--n-close-icon-size); + outline: none; + border: none; + position: relative; + padding: 0; +`,[G("absolute",` + height: var(--n-close-icon-size); + width: var(--n-close-icon-size); + `),H("&::before",` + content: ""; + position: absolute; + width: var(--n-close-size); + height: var(--n-close-size); + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + transition: inherit; + border-radius: inherit; + `),xt("disabled",[H("&:hover",` + color: var(--n-close-icon-color-hover); + `),H("&:hover::before",` + background-color: var(--n-close-color-hover); + `),H("&:focus::before",` + background-color: var(--n-close-color-hover); + `),H("&:active",` + color: var(--n-close-icon-color-pressed); + `),H("&:active::before",` + background-color: var(--n-close-color-pressed); + `)]),G("disabled",` + cursor: not-allowed; + color: var(--n-close-icon-color-disabled); + background-color: transparent; + `),G("round",[H("&::before",` + border-radius: 50%; + `)])]),Fs=ye({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return qn("-base-close",KP,tt(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r,absolute:o,round:n,isButtonTag:i}=e;return b(i?"button":"div",{type:i?"button":void 0,tabindex:r||!e.focusable?-1:0,"aria-disabled":r,"aria-label":"close",role:i?void 0:"button",disabled:r,class:[`${t}-base-close`,o&&`${t}-base-close--absolute`,r&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:s=>{e.focusable||s.preventDefault()},onClick:e.onClick},b(So,{clsPrefix:t},{default:()=>b(LP,null)}))}}}),{cubicBezierEaseInOut:qP}=to;function Fi({originalTransform:e="",left:t=0,top:r=0,transition:o=`all .3s ${qP} !important`}={}){return[H("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),H("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),H("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:o})]}const GP=H([H("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),L("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[V("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[Fi()]),V("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Fi({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),V("container",` + animation: rotator 3s linear infinite both; + `,[V("icon",` + height: 1em; + width: 1em; + `)])])]),gl="1.6s",YP={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},kd=ye({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},YP),setup(e){qn("-base-loading",GP,tt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:o,scale:n}=this,i=t/n;return b("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},b(Bs,null,{default:()=>this.show?b("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},b("div",{class:`${e}-base-loading__container`},b("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},b("g",null,b("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:gl,fill:"freeze",repeatCount:"indefinite"}),b("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},b("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:gl,fill:"freeze",repeatCount:"indefinite"}),b("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:gl,fill:"freeze",repeatCount:"indefinite"})))))):b("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function Df(e){return Array.isArray(e)?e:[e]}const nc={STOP:"STOP"};function Xm(e,t){const r=t(e);e.children!==void 0&&r!==nc.STOP&&e.children.forEach(o=>Xm(o,t))}function XP(e,t={}){const{preserveGroup:r=!1}=t,o=[],n=r?a=>{a.isLeaf||(o.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||o.push(a.key),i(a.children))};function i(a){a.forEach(n)}return i(e),o}function JP(e,t){const{isLeaf:r}=e;return r!==void 0?r:!t(e)}function ZP(e){return e.children}function QP(e){return e.key}function ek(){return!1}function tk(e,t){const{isLeaf:r}=e;return!(r===!1&&!Array.isArray(t(e)))}function rk(e){return e.disabled===!0}function ok(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function vl(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function bl(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function nk(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)||r.add(o)}),Array.from(r)}function ik(e,t){const r=new Set(e);return t.forEach(o=>{r.has(o)&&r.delete(o)}),Array.from(r)}function ak(e){return(e==null?void 0:e.type)==="group"}class sk extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function lk(e,t,r,o){return cs(t.concat(e),r,o,!1)}function ck(e,t){const r=new Set;return e.forEach(o=>{const n=t.treeNodeMap.get(o);if(n!==void 0){let i=n.parent;for(;i!==null&&!(i.disabled||r.has(i.key));)r.add(i.key),i=i.parent}}),r}function dk(e,t,r,o){const n=cs(t,r,o,!1),i=cs(e,r,o,!0),a=ck(e,r),s=[];return n.forEach(l=>{(i.has(l)||a.has(l))&&s.push(l)}),s.forEach(l=>n.delete(l)),n}function xl(e,t){const{checkedKeys:r,keysToCheck:o,keysToUncheck:n,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return o!==void 0?{checkedKeys:nk(r,o),indeterminateKeys:Array.from(i)}:n!==void 0?{checkedKeys:ik(r,n),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let u;n!==void 0?u=dk(n,r,t,c):o!==void 0?u=lk(o,r,t,c):u=cs(r,t,c,!1);const f=l==="parent",p=l==="child"||s,h=u,m=new Set,v=Math.max.apply(null,Array.from(d.keys()));for(let g=v;g>=0;g-=1){const T=g===0,w=d.get(g);for(const k of w){if(k.isLeaf)continue;const{key:I,shallowLoaded:B}=k;if(p&&B&&k.children.forEach(O=>{!O.disabled&&!O.isLeaf&&O.shallowLoaded&&h.has(O.key)&&h.delete(O.key)}),k.disabled||!B)continue;let x=!0,S=!1,M=!0;for(const O of k.children){const Z=O.key;if(!O.disabled){if(M&&(M=!1),h.has(Z))S=!0;else if(m.has(Z)){S=!0,x=!1;break}else if(x=!1,S)break}}x&&!M?(f&&k.children.forEach(O=>{!O.disabled&&h.has(O.key)&&h.delete(O.key)}),h.add(I)):S&&m.add(I),T&&p&&h.has(I)&&h.delete(I)}}return{checkedKeys:Array.from(h),indeterminateKeys:Array.from(m)}}function cs(e,t,r,o){const{treeNodeMap:n,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach(l=>{const c=n.get(l);c!==void 0&&Xm(c,d=>{if(d.disabled)return nc.STOP;const{key:u}=d;if(!a.has(u)&&(a.add(u),s.add(u),ok(d.rawNode,i))){if(o)return nc.STOP;if(!r)throw new sk}})}),s}function uk(e,{includeGroup:t=!1,includeSelf:r=!0},o){var n;const i=o.treeNodeMap;let a=e==null?null:(n=i.get(e))!==null&&n!==void 0?n:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(a!=null&&a.ignored)return s.treeNode=null,s;for(;a;)!a.ignored&&(t||!a.isGroup)&&s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),r||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map(l=>l.key),s}function fk(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function hk(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n+1)%o]:n===r.length-1?null:r[n+1]}function Bf(e,t,{loop:r=!1,includeDisabled:o=!1}={}){const n=t==="prev"?pk:hk,i={reverse:t==="prev"};let a=!1,s=null;function l(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!c.disabled||o)&&!c.ignored&&!c.isGroup){s=c;return}if(c.isGroup){const d=Td(c,i);d!==null?s=d:l(n(c,r))}else{const d=n(c,!1);if(d!==null)l(d);else{const u=mk(c);u!=null&&u.isGroup?l(n(u,r)):r&&l(n(c,!0))}}}}return l(e),s}function pk(e,t){const r=e.siblings,o=r.length,{index:n}=e;return t?r[(n-1+o)%o]:n===0?null:r[n-1]}function mk(e){return e.parent}function Td(e,t={}){const{reverse:r=!1}=t,{children:o}=e;if(o){const{length:n}=o,i=r?n-1:0,a=r?-1:n,s=r?-1:1;for(let l=i;l!==a;l+=s){const c=o[l];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=Td(c,t);if(d!==null)return d}else return c}}return null}const gk={getChild(){return this.ignored?null:Td(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return Bf(this,"next",e)},getPrev(e={}){return Bf(this,"prev",e)}};function vk(e,t){const r=t?new Set(t):void 0,o=[];function n(i){i.forEach(a=>{o.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||r===void 0||r.has(a.key))&&n(a.children)})}return n(e),o}function bk(e,t){const r=e.key;for(;t;){if(t.key===r)return!0;t=t.parent}return!1}function Jm(e,t,r,o,n,i=null,a=0){const s=[];return e.forEach((l,c)=>{var d;const u=Object.create(o);if(u.rawNode=l,u.siblings=s,u.level=a,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const f=n(l);Array.isArray(f)&&(u.children=Jm(f,t,r,o,n,u,a+1))}s.push(u),t.set(u.key,u),r.has(a)||r.set(a,[]),(d=r.get(a))===null||d===void 0||d.push(u)}),s}function Aa(e,t={}){var r;const o=new Map,n=new Map,{getDisabled:i=rk,getIgnored:a=ek,getIsGroup:s=ak,getKey:l=QP}=t,c=(r=t.getChildren)!==null&&r!==void 0?r:ZP,d=t.ignoreEmptyChildren?k=>{const I=c(k);return Array.isArray(I)?I.length?I:null:I}:c,u=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return JP(this.rawNode,d)},get shallowLoaded(){return tk(this.rawNode,d)},get ignored(){return a(this.rawNode)},contains(k){return bk(this,k)}},gk),f=Jm(e,o,n,u,d);function p(k){if(k==null)return null;const I=o.get(k);return I&&!I.isGroup&&!I.ignored?I:null}function h(k){if(k==null)return null;const I=o.get(k);return I&&!I.ignored?I:null}function m(k,I){const B=h(k);return B?B.getPrev(I):null}function v(k,I){const B=h(k);return B?B.getNext(I):null}function g(k){const I=h(k);return I?I.getParent():null}function T(k){const I=h(k);return I?I.getChild():null}const w={treeNodes:f,treeNodeMap:o,levelTreeNodeMap:n,maxLevel:Math.max(...n.keys()),getChildren:d,getFlattenedNodes(k){return vk(f,k)},getNode:p,getPrev:m,getNext:v,getParent:g,getChild:T,getFirstAvailableNode(){return fk(f)},getPath(k,I={}){return uk(k,I,w)},getCheckedKeys(k,I={}){const{cascade:B=!0,leafOnly:x=!1,checkStrategy:S="all",allowNotLoaded:M=!1}=I;return xl({checkedKeys:vl(k),indeterminateKeys:bl(k),cascade:B,leafOnly:x,checkStrategy:S,allowNotLoaded:M},w)},check(k,I,B={}){const{cascade:x=!0,leafOnly:S=!1,checkStrategy:M="all",allowNotLoaded:O=!1}=B;return xl({checkedKeys:vl(I),indeterminateKeys:bl(I),keysToCheck:k==null?[]:Df(k),cascade:x,leafOnly:S,checkStrategy:M,allowNotLoaded:O},w)},uncheck(k,I,B={}){const{cascade:x=!0,leafOnly:S=!1,checkStrategy:M="all",allowNotLoaded:O=!1}=B;return xl({checkedKeys:vl(I),indeterminateKeys:bl(I),keysToUncheck:k==null?[]:Df(k),cascade:x,leafOnly:S,checkStrategy:M,allowNotLoaded:O},w)},getNonLeafKeys(k={}){return XP(f,k)}};return w}const xe={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},xk=Xr(xe.neutralBase),Zm=Xr(xe.neutralInvertBase),yk="rgba("+Zm.slice(0,3).join(", ")+", ";function Qe(e){return yk+String(e)+")"}function Ck(e){const t=Array.from(Zm);return t[3]=Number(e),Re(xk,t)}const Sk=Object.assign(Object.assign({name:"common"},to),{baseColor:xe.neutralBase,primaryColor:xe.primaryDefault,primaryColorHover:xe.primaryHover,primaryColorPressed:xe.primaryActive,primaryColorSuppl:xe.primarySuppl,infoColor:xe.infoDefault,infoColorHover:xe.infoHover,infoColorPressed:xe.infoActive,infoColorSuppl:xe.infoSuppl,successColor:xe.successDefault,successColorHover:xe.successHover,successColorPressed:xe.successActive,successColorSuppl:xe.successSuppl,warningColor:xe.warningDefault,warningColorHover:xe.warningHover,warningColorPressed:xe.warningActive,warningColorSuppl:xe.warningSuppl,errorColor:xe.errorDefault,errorColorHover:xe.errorHover,errorColorPressed:xe.errorActive,errorColorSuppl:xe.errorSuppl,textColorBase:xe.neutralTextBase,textColor1:Qe(xe.alpha1),textColor2:Qe(xe.alpha2),textColor3:Qe(xe.alpha3),textColorDisabled:Qe(xe.alpha4),placeholderColor:Qe(xe.alpha4),placeholderColorDisabled:Qe(xe.alpha5),iconColor:Qe(xe.alpha4),iconColorDisabled:Qe(xe.alpha5),iconColorHover:Qe(Number(xe.alpha4)*1.25),iconColorPressed:Qe(Number(xe.alpha4)*.8),opacity1:xe.alpha1,opacity2:xe.alpha2,opacity3:xe.alpha3,opacity4:xe.alpha4,opacity5:xe.alpha5,dividerColor:Qe(xe.alphaDivider),borderColor:Qe(xe.alphaBorder),closeIconColorHover:Qe(Number(xe.alphaClose)),closeIconColor:Qe(Number(xe.alphaClose)),closeIconColorPressed:Qe(Number(xe.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Qe(xe.alpha4),clearColorHover:yt(Qe(xe.alpha4),{alpha:1.25}),clearColorPressed:yt(Qe(xe.alpha4),{alpha:.8}),scrollbarColor:Qe(xe.alphaScrollbar),scrollbarColorHover:Qe(xe.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Qe(xe.alphaProgressRail),railColor:Qe(xe.alphaRail),popoverColor:xe.neutralPopover,tableColor:xe.neutralCard,cardColor:xe.neutralCard,modalColor:xe.neutralModal,bodyColor:xe.neutralBody,tagColor:Ck(xe.alphaTag),avatarColor:Qe(xe.alphaAvatar),invertedColor:xe.neutralBase,inputColor:Qe(xe.alphaInput),codeColor:Qe(xe.alphaCode),tabColor:Qe(xe.alphaTab),actionColor:Qe(xe.alphaAction),tableHeaderColor:Qe(xe.alphaAction),hoverColor:Qe(xe.alphaPending),tableColorHover:Qe(xe.alphaTablePending),tableColorStriped:Qe(xe.alphaTableStriped),pressedColor:Qe(xe.alphaPressed),opacityDisabled:xe.alphaDisabled,inputColorDisabled:Qe(xe.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),me=Sk,Ee={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},wk=Xr(Ee.neutralBase),Qm=Xr(Ee.neutralInvertBase),_k="rgba("+Qm.slice(0,3).join(", ")+", ";function Ff(e){return _k+String(e)+")"}function Vt(e){const t=Array.from(Qm);return t[3]=Number(e),Re(wk,t)}const Pk=Object.assign(Object.assign({name:"common"},to),{baseColor:Ee.neutralBase,primaryColor:Ee.primaryDefault,primaryColorHover:Ee.primaryHover,primaryColorPressed:Ee.primaryActive,primaryColorSuppl:Ee.primarySuppl,infoColor:Ee.infoDefault,infoColorHover:Ee.infoHover,infoColorPressed:Ee.infoActive,infoColorSuppl:Ee.infoSuppl,successColor:Ee.successDefault,successColorHover:Ee.successHover,successColorPressed:Ee.successActive,successColorSuppl:Ee.successSuppl,warningColor:Ee.warningDefault,warningColorHover:Ee.warningHover,warningColorPressed:Ee.warningActive,warningColorSuppl:Ee.warningSuppl,errorColor:Ee.errorDefault,errorColorHover:Ee.errorHover,errorColorPressed:Ee.errorActive,errorColorSuppl:Ee.errorSuppl,textColorBase:Ee.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Vt(Ee.alpha4),placeholderColor:Vt(Ee.alpha4),placeholderColorDisabled:Vt(Ee.alpha5),iconColor:Vt(Ee.alpha4),iconColorHover:yt(Vt(Ee.alpha4),{lightness:.75}),iconColorPressed:yt(Vt(Ee.alpha4),{lightness:.9}),iconColorDisabled:Vt(Ee.alpha5),opacity1:Ee.alpha1,opacity2:Ee.alpha2,opacity3:Ee.alpha3,opacity4:Ee.alpha4,opacity5:Ee.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Vt(Number(Ee.alphaClose)),closeIconColorHover:Vt(Number(Ee.alphaClose)),closeIconColorPressed:Vt(Number(Ee.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Vt(Ee.alpha4),clearColorHover:yt(Vt(Ee.alpha4),{lightness:.75}),clearColorPressed:yt(Vt(Ee.alpha4),{lightness:.9}),scrollbarColor:Ff(Ee.alphaScrollbar),scrollbarColorHover:Ff(Ee.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Vt(Ee.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Ee.neutralPopover,tableColor:Ee.neutralCard,cardColor:Ee.neutralCard,modalColor:Ee.neutralModal,bodyColor:Ee.neutralBody,tagColor:"#eee",avatarColor:Vt(Ee.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Vt(Ee.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Ee.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),Wt=Pk,kk={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"},eg=e=>{const{textColorDisabled:t,iconColor:r,textColor2:o,fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},kk),{fontSizeSmall:n,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:r,extraTextColor:o})},Tk={name:"Empty",common:Wt,self:eg},$k=Tk,Rk={name:"Empty",common:me,self:eg},sn=Rk,tg=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},Ik={name:"Scrollbar",common:Wt,self:tg},$d=Ik,Ek={name:"Scrollbar",common:me,self:tg},sr=Ek,{cubicBezierEaseInOut:Lf}=to;function zk({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:o=Lf,leaveCubicBezier:n=Lf}={}){return[H(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),H(`&.${e}-transition-leave-active`,{transition:`all ${r} ${n}!important`}),H(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),H(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Mk=L("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[H(">",[L("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + min-height: inherit; + max-height: inherit; + scrollbar-width: none; + `,[H("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),H(">",[L("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),H(">, +",[L("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + -webkit-user-select: none; + `,[G("horizontal",` + left: 2px; + right: 2px; + bottom: 4px; + height: var(--n-scrollbar-height); + `,[H(">",[V("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),G("vertical",` + right: 4px; + top: 2px; + bottom: 2px; + width: var(--n-scrollbar-width); + `,[H(">",[V("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),G("disabled",[H(">",[V("scrollbar","pointer-events: none;")])]),H(">",[V("scrollbar",` + z-index: 1; + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[zk(),H("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),Ak=Object.assign(Object.assign({},We.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),rg=ye({name:"Scrollbar",props:Ak,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:o}=St(e),n=Po("Scrollbar",o,t),i=Y(null),a=Y(null),s=Y(null),l=Y(null),c=Y(null),d=Y(null),u=Y(null),f=Y(null),p=Y(null),h=Y(null),m=Y(null),v=Y(0),g=Y(0),T=Y(!1),w=Y(!1);let k=!1,I=!1,B,x,S=0,M=0,O=0,Z=0;const A=kC(),C=N(()=>{const{value:ce}=f,{value:be}=d,{value:Me}=h;return ce===null||be===null||Me===null?0:Math.min(ce,Me*ce/be+e.size*1.5)}),z=N(()=>`${C.value}px`),P=N(()=>{const{value:ce}=p,{value:be}=u,{value:Me}=m;return ce===null||be===null||Me===null?0:Me*ce/be+e.size*1.5}),R=N(()=>`${P.value}px`),_=N(()=>{const{value:ce}=f,{value:be}=v,{value:Me}=d,{value:rt}=h;if(ce===null||Me===null||rt===null)return 0;{const mt=Me-ce;return mt?be/mt*(rt-C.value):0}}),W=N(()=>`${_.value}px`),le=N(()=>{const{value:ce}=p,{value:be}=g,{value:Me}=u,{value:rt}=m;if(ce===null||Me===null||rt===null)return 0;{const mt=Me-ce;return mt?be/mt*(rt-P.value):0}}),ie=N(()=>`${le.value}px`),X=N(()=>{const{value:ce}=f,{value:be}=d;return ce!==null&&be!==null&&be>ce}),re=N(()=>{const{value:ce}=p,{value:be}=u;return ce!==null&&be!==null&&be>ce}),J=N(()=>{const{trigger:ce}=e;return ce==="none"||T.value}),Se=N(()=>{const{trigger:ce}=e;return ce==="none"||w.value}),Te=N(()=>{const{container:ce}=e;return ce?ce():a.value}),Ie=N(()=>{const{content:ce}=e;return ce?ce():s.value}),de=gm(()=>{e.container||je({top:v.value,left:g.value})}),Fe=()=>{de.isDeactivated||U()},K=ce=>{if(de.isDeactivated)return;const{onResize:be}=e;be&&be(ce),U()},je=(ce,be)=>{if(!e.scrollable)return;if(typeof ce=="number"){Le(be??0,ce,0,!1,"auto");return}const{left:Me,top:rt,index:mt,elSize:At,position:cr,behavior:lt,el:Gt,debounce:Nr=!0}=ce;(Me!==void 0||rt!==void 0)&&Le(Me??0,rt??0,0,!1,lt),Gt!==void 0?Le(0,Gt.offsetTop,Gt.offsetHeight,Nr,lt):mt!==void 0&&At!==void 0?Le(0,mt*At,At,Nr,lt):cr==="bottom"?Le(0,Number.MAX_SAFE_INTEGER,0,!1,lt):cr==="top"&&Le(0,0,0,!1,lt)},$e=(ce,be)=>{if(!e.scrollable)return;const{value:Me}=Te;Me&&(typeof ce=="object"?Me.scrollBy(ce):Me.scrollBy(ce,be||0))};function Le(ce,be,Me,rt,mt){const{value:At}=Te;if(At){if(rt){const{scrollTop:cr,offsetHeight:lt}=At;if(be>cr){be+Me<=cr+lt||At.scrollTo({left:ce,top:be+Me-lt,behavior:mt});return}}At.scrollTo({left:ce,top:be,behavior:mt})}}function y(){he(),ge(),U()}function E(){q()}function q(){ne(),ae()}function ne(){x!==void 0&&window.clearTimeout(x),x=window.setTimeout(()=>{w.value=!1},e.duration)}function ae(){B!==void 0&&window.clearTimeout(B),B=window.setTimeout(()=>{T.value=!1},e.duration)}function he(){B!==void 0&&window.clearTimeout(B),T.value=!0}function ge(){x!==void 0&&window.clearTimeout(x),w.value=!0}function ee(ce){const{onScroll:be}=e;be&&be(ce),ue()}function ue(){const{value:ce}=Te;ce&&(v.value=ce.scrollTop,g.value=ce.scrollLeft*(n!=null&&n.value?-1:1))}function oe(){const{value:ce}=Ie;ce&&(d.value=ce.offsetHeight,u.value=ce.offsetWidth);const{value:be}=Te;be&&(f.value=be.offsetHeight,p.value=be.offsetWidth);const{value:Me}=c,{value:rt}=l;Me&&(m.value=Me.offsetWidth),rt&&(h.value=rt.offsetHeight)}function F(){const{value:ce}=Te;ce&&(v.value=ce.scrollTop,g.value=ce.scrollLeft*(n!=null&&n.value?-1:1),f.value=ce.offsetHeight,p.value=ce.offsetWidth,d.value=ce.scrollHeight,u.value=ce.scrollWidth);const{value:be}=c,{value:Me}=l;be&&(m.value=be.offsetWidth),Me&&(h.value=Me.offsetHeight)}function U(){e.scrollable&&(e.useUnifiedContainer?F():(oe(),ue()))}function Q(ce){var be;return!(!((be=i.value)===null||be===void 0)&&be.contains(Qa(ce)))}function pe(ce){ce.preventDefault(),ce.stopPropagation(),I=!0,ft("mousemove",window,we,!0),ft("mouseup",window,ze,!0),M=g.value,O=n!=null&&n.value?window.innerWidth-ce.clientX:ce.clientX}function we(ce){if(!I)return;B!==void 0&&window.clearTimeout(B),x!==void 0&&window.clearTimeout(x);const{value:be}=p,{value:Me}=u,{value:rt}=P;if(be===null||Me===null)return;const At=(n!=null&&n.value?window.innerWidth-ce.clientX-O:ce.clientX-O)*(Me-be)/(be-rt),cr=Me-be;let lt=M+At;lt=Math.min(cr,lt),lt=Math.max(lt,0);const{value:Gt}=Te;if(Gt){Gt.scrollLeft=lt*(n!=null&&n.value?-1:1);const{internalOnUpdateScrollLeft:Nr}=e;Nr&&Nr(lt)}}function ze(ce){ce.preventDefault(),ce.stopPropagation(),ot("mousemove",window,we,!0),ot("mouseup",window,ze,!0),I=!1,U(),Q(ce)&&q()}function Ve(ce){ce.preventDefault(),ce.stopPropagation(),k=!0,ft("mousemove",window,Ne,!0),ft("mouseup",window,Ze,!0),S=v.value,Z=ce.clientY}function Ne(ce){if(!k)return;B!==void 0&&window.clearTimeout(B),x!==void 0&&window.clearTimeout(x);const{value:be}=f,{value:Me}=d,{value:rt}=C;if(be===null||Me===null)return;const At=(ce.clientY-Z)*(Me-be)/(be-rt),cr=Me-be;let lt=S+At;lt=Math.min(cr,lt),lt=Math.max(lt,0);const{value:Gt}=Te;Gt&&(Gt.scrollTop=lt)}function Ze(ce){ce.preventDefault(),ce.stopPropagation(),ot("mousemove",window,Ne,!0),ot("mouseup",window,Ze,!0),k=!1,U(),Q(ce)&&q()}Tr(()=>{const{value:ce}=re,{value:be}=X,{value:Me}=t,{value:rt}=c,{value:mt}=l;rt&&(ce?rt.classList.remove(`${Me}-scrollbar-rail--disabled`):rt.classList.add(`${Me}-scrollbar-rail--disabled`)),mt&&(be?mt.classList.remove(`${Me}-scrollbar-rail--disabled`):mt.classList.add(`${Me}-scrollbar-rail--disabled`))}),Ft(()=>{e.container||U()}),tr(()=>{B!==void 0&&window.clearTimeout(B),x!==void 0&&window.clearTimeout(x),ot("mousemove",window,Ne,!0),ot("mouseup",window,Ze,!0)});const Tt=We("Scrollbar","-scrollbar",Mk,$d,e,t),wr=N(()=>{const{common:{cubicBezierEaseInOut:ce,scrollbarBorderRadius:be,scrollbarHeight:Me,scrollbarWidth:rt},self:{color:mt,colorHover:At}}=Tt.value;return{"--n-scrollbar-bezier":ce,"--n-scrollbar-color":mt,"--n-scrollbar-color-hover":At,"--n-scrollbar-border-radius":be,"--n-scrollbar-width":rt,"--n-scrollbar-height":Me}}),Mt=r?Nt("scrollbar",void 0,wr,e):void 0;return Object.assign(Object.assign({},{scrollTo:je,scrollBy:$e,sync:U,syncUnifiedContainer:F,handleMouseEnterWrapper:y,handleMouseLeaveWrapper:E}),{mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:X,needXBar:re,yBarSizePx:z,xBarSizePx:R,yBarTopPx:W,xBarLeftPx:ie,isShowXBar:J,isShowYBar:Se,isIos:A,handleScroll:ee,handleContentResize:Fe,handleContainerResize:K,handleYScrollMouseDown:Ve,handleXScrollMouseDown:pe,cssVars:r?void 0:wr,themeClass:Mt==null?void 0:Mt.themeClass,onRender:Mt==null?void 0:Mt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:o,rtlEnabled:n,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=(d,u)=>b("div",{ref:"yRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--vertical`,d],"data-scrollbar-rail":!0,style:[u||"",this.verticalRailStyle],"aria-hiddens":!0},b(a?ju:$r,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?b("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var d,u;return(d=this.onRender)===null||d===void 0||d.call(this),b("div",Nn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass,n&&`${r}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?(u=t.default)===null||u===void 0?void 0:u.call(t):b("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},b(rs,{onResize:this.handleContentResize},{default:()=>b("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0,void 0),this.xScrollable&&b("div",{ref:"xRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},b(a?ju:$r,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?b("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:n?this.xBarLeftPx:void 0,left:n?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?l():b(rs,{onResize:this.handleContainerResize},{default:l});return i?b(st,null,c,s(this.themeClass,this.cssVars)):c}}),Rd=rg,og=rg,Ok={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"},Dk=e=>{const{borderRadius:t,popoverColor:r,textColor3:o,dividerColor:n,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:c,hoverColor:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:h,heightSmall:m,heightMedium:v,heightLarge:g,heightHuge:T}=e;return Object.assign(Object.assign({},Ok),{optionFontSizeSmall:u,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:h,optionHeightSmall:m,optionHeightMedium:v,optionHeightLarge:g,optionHeightHuge:T,borderRadius:t,color:r,groupHeaderTextColor:o,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:l})},Bk={name:"InternalSelectMenu",common:me,peers:{Scrollbar:sr,Empty:sn},self:Dk},Zi=Bk,{cubicBezierEaseIn:Hf,cubicBezierEaseOut:jf}=to;function ic({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:o="",originalTransition:n=""}={}){return[H("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Hf}, transform ${t} ${Hf} ${n&&","+n}`}),H("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${jf}, transform ${t} ${jf} ${n&&","+n}`}),H("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${r})`}),H("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}const Fk=L("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),Lk=ye({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){qn("-base-wave",Fk,tt(e,"clsPrefix"));const t=Y(null),r=Y(!1);let o=null;return tr(()=>{o!==null&&window.clearTimeout(o)}),{active:r,selfRef:t,play(){o!==null&&(window.clearTimeout(o),r.value=!1,o=null),Jt(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,r.value=!0,o=window.setTimeout(()=>{r.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:e}=this;return b("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),Hk={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},ng=e=>{const{boxShadow2:t,popoverColor:r,textColor2:o,borderRadius:n,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},Hk),{fontSize:i,borderRadius:n,color:r,dividerColor:a,textColor:o,boxShadow:t})},jk={name:"Popover",common:Wt,self:ng},Id=jk,Nk={name:"Popover",common:me,self:ng},ln=Nk,yl={top:"bottom",bottom:"top",left:"right",right:"left"},$t="var(--n-arrow-height) * 1.414",Wk=H([L("popover",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + font-size: var(--n-font-size); + color: var(--n-text-color); + box-shadow: var(--n-box-shadow); + word-break: break-word; + `,[H(">",[L("scrollbar",` + height: inherit; + max-height: inherit; + `)]),xt("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[xt("scrollable",[xt("show-header-or-footer","padding: var(--n-padding);")])]),V("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),V("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),G("scrollable, show-header-or-footer",[V("content",` + padding: var(--n-padding); + `)])]),L("popover-shared",` + transform-origin: inherit; + `,[L("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[L("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${$t}); + height: calc(${$t}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),H("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),H("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),H("&.popover-transition-enter-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),H("&.popover-transition-leave-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),vr("top-start",` + top: calc(${$t} / -2); + left: calc(${Vr("top-start")} - var(--v-offset-left)); + `),vr("top",` + top: calc(${$t} / -2); + transform: translateX(calc(${$t} / -2)) rotate(45deg); + left: 50%; + `),vr("top-end",` + top: calc(${$t} / -2); + right: calc(${Vr("top-end")} + var(--v-offset-left)); + `),vr("bottom-start",` + bottom: calc(${$t} / -2); + left: calc(${Vr("bottom-start")} - var(--v-offset-left)); + `),vr("bottom",` + bottom: calc(${$t} / -2); + transform: translateX(calc(${$t} / -2)) rotate(45deg); + left: 50%; + `),vr("bottom-end",` + bottom: calc(${$t} / -2); + right: calc(${Vr("bottom-end")} + var(--v-offset-left)); + `),vr("left-start",` + left: calc(${$t} / -2); + top: calc(${Vr("left-start")} - var(--v-offset-top)); + `),vr("left",` + left: calc(${$t} / -2); + transform: translateY(calc(${$t} / -2)) rotate(45deg); + top: 50%; + `),vr("left-end",` + left: calc(${$t} / -2); + bottom: calc(${Vr("left-end")} + var(--v-offset-top)); + `),vr("right-start",` + right: calc(${$t} / -2); + top: calc(${Vr("right-start")} - var(--v-offset-top)); + `),vr("right",` + right: calc(${$t} / -2); + transform: translateY(calc(${$t} / -2)) rotate(45deg); + top: 50%; + `),vr("right-end",` + right: calc(${$t} / -2); + bottom: calc(${Vr("right-end")} + var(--v-offset-top)); + `),...V_({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const r=["right","left"].includes(t),o=r?"width":"height";return e.map(n=>{const i=n.split("-")[1]==="end",s=`calc((${`var(--v-target-${o}, 0px)`} - ${$t}) / 2)`,l=Vr(n);return H(`[v-placement="${n}"] >`,[L("popover-shared",[G("center-arrow",[L("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function Vr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function vr(e,t){const r=e.split("-")[0],o=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return H(`[v-placement="${e}"] >`,[L("popover-shared",` + margin-${yl[r]}: var(--n-space); + `,[G("show-arrow",` + margin-${yl[r]}: var(--n-space-arrow); + `),G("overlap",` + margin: 0; + `),uC("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${r}: 100%; + ${yl[r]}: auto; + ${o} + `,[L("popover-arrow",t)])])])}const ig=Object.assign(Object.assign({},We.props),{to:Jr.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),ag=({arrowClass:e,arrowStyle:t,arrowWrapperClass:r,arrowWrapperStyle:o,clsPrefix:n})=>b("div",{key:"__popover-arrow__",style:o,class:[`${n}-popover-arrow-wrapper`,r]},b("div",{class:[`${n}-popover-arrow`,e],style:t})),Vk=ye({name:"PopoverBody",inheritAttrs:!1,props:ig,setup(e,{slots:t,attrs:r}){const{namespaceRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:i}=St(e),a=We("Popover","-popover",Wk,Id,e,n),s=Y(null),l=Oe("NPopover"),c=Y(null),d=Y(e.show),u=Y(!1);Tr(()=>{const{show:x}=e;x&&!fC()&&!e.internalDeactivateImmediately&&(u.value=!0)});const f=N(()=>{const{trigger:x,onClickoutside:S}=e,M=[],{positionManuallyRef:{value:O}}=l;return O||(x==="click"&&!S&&M.push([qu,k,void 0,{capture:!0}]),x==="hover"&&M.push([MC,w])),S&&M.push([qu,k,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&u.value)&&M.push([Ap,e.show]),M}),p=N(()=>{const x=e.width==="trigger"?void 0:qo(e.width),S=[];x&&S.push({width:x});const{maxWidth:M,minWidth:O}=e;return M&&S.push({maxWidth:qo(M)}),O&&S.push({maxWidth:qo(O)}),i||S.push(h.value),S}),h=N(()=>{const{common:{cubicBezierEaseInOut:x,cubicBezierEaseIn:S,cubicBezierEaseOut:M},self:{space:O,spaceArrow:Z,padding:A,fontSize:C,textColor:z,dividerColor:P,color:R,boxShadow:_,borderRadius:W,arrowHeight:le,arrowOffset:ie,arrowOffsetVertical:X}}=a.value;return{"--n-box-shadow":_,"--n-bezier":x,"--n-bezier-ease-in":S,"--n-bezier-ease-out":M,"--n-font-size":C,"--n-text-color":z,"--n-color":R,"--n-divider-color":P,"--n-border-radius":W,"--n-arrow-height":le,"--n-arrow-offset":ie,"--n-arrow-offset-vertical":X,"--n-padding":A,"--n-space":O,"--n-space-arrow":Z}}),m=i?Nt("popover",void 0,h,e):void 0;l.setBodyInstance({syncPosition:v}),tr(()=>{l.setBodyInstance(null)}),Xe(tt(e,"show"),x=>{e.animated||(x?d.value=!0:d.value=!1)});function v(){var x;(x=s.value)===null||x===void 0||x.syncPosition()}function g(x){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(x)}function T(x){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(x)}function w(x){e.trigger==="hover"&&!I().contains(Qa(x))&&l.handleMouseMoveOutside(x)}function k(x){(e.trigger==="click"&&!I().contains(Qa(x))||e.onClickoutside)&&l.handleClickOutside(x)}function I(){return l.getTriggerElement()}nt(Ms,c),nt(ad,null),nt(id,null);function B(){if(m==null||m.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&u.value))return null;let S;const M=l.internalRenderBodyRef.value,{value:O}=n;if(M)S=M([`${O}-popover-shared`,m==null?void 0:m.themeClass.value,e.overlap&&`${O}-popover-shared--overlap`,e.showArrow&&`${O}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${O}-popover-shared--center-arrow`],c,p.value,g,T);else{const{value:Z}=l.extraClassRef,{internalTrapFocus:A}=e,C=!Vl(t.header)||!Vl(t.footer),z=()=>{var P,R;const _=C?b(st,null,Bt(t.header,ie=>ie?b("div",{class:[`${O}-popover__header`,e.headerClass],style:e.headerStyle},ie):null),Bt(t.default,ie=>ie?b("div",{class:[`${O}-popover__content`,e.contentClass],style:e.contentStyle},t):null),Bt(t.footer,ie=>ie?b("div",{class:[`${O}-popover__footer`,e.footerClass],style:e.footerStyle},ie):null)):e.scrollable?(P=t.default)===null||P===void 0?void 0:P.call(t):b("div",{class:[`${O}-popover__content`,e.contentClass],style:e.contentStyle},t),W=e.scrollable?b(og,{contentClass:C?void 0:`${O}-popover__content ${(R=e.contentClass)!==null&&R!==void 0?R:""}`,contentStyle:C?void 0:e.contentStyle},{default:()=>_}):_,le=e.showArrow?ag({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:O}):null;return[W,le]};S=b("div",Nn({class:[`${O}-popover`,`${O}-popover-shared`,m==null?void 0:m.themeClass.value,Z.map(P=>`${O}-${P}`),{[`${O}-popover--scrollable`]:e.scrollable,[`${O}-popover--show-header-or-footer`]:C,[`${O}-popover--raw`]:e.raw,[`${O}-popover-shared--overlap`]:e.overlap,[`${O}-popover-shared--show-arrow`]:e.showArrow,[`${O}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:p.value,onKeydown:l.handleKeydown,onMouseenter:g,onMouseleave:T},r),A?b(y1,{active:e.show,autoFocus:!0},{default:z}):z())}return Ki(S,f.value)}return{displayed:u,namespace:o,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:Jr(e),followerEnabled:d,renderContentNode:B}},render(){return b(cd,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Jr.tdkey},{default:()=>this.animated?b($r,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),Uk=Object.keys(ig),Kk={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function qk(e,t,r){Kk[t].forEach(o=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[o],i=r[o];n?e.props[o]=(...a)=>{n(...a),i(...a)}:e.props[o]=i})}const Ls={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Jr.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},Gk=Object.assign(Object.assign(Object.assign({},We.props),Ls),{internalOnAfterLeave:Function,internalRenderBody:Function}),sg=ye({name:"Popover",inheritAttrs:!1,props:Gk,__popover__:!0,setup(e){const t=zs(),r=Y(null),o=N(()=>e.show),n=Y(e.defaultShow),i=Fn(o,n),a=jt(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:P}=e;return!!(P!=null&&P())},l=()=>s()?!1:i.value,c=nd(e,["arrow","showArrow"]),d=N(()=>e.overlap?!1:c.value);let u=null;const f=Y(null),p=Y(null),h=jt(()=>e.x!==void 0&&e.y!==void 0);function m(P){const{"onUpdate:show":R,onUpdateShow:_,onShow:W,onHide:le}=e;n.value=P,R&&Ue(R,P),_&&Ue(_,P),P&&W&&Ue(W,!0),P&&le&&Ue(le,!1)}function v(){u&&u.syncPosition()}function g(){const{value:P}=f;P&&(window.clearTimeout(P),f.value=null)}function T(){const{value:P}=p;P&&(window.clearTimeout(P),p.value=null)}function w(){const P=s();if(e.trigger==="focus"&&!P){if(l())return;m(!0)}}function k(){const P=s();if(e.trigger==="focus"&&!P){if(!l())return;m(!1)}}function I(){const P=s();if(e.trigger==="hover"&&!P){if(T(),f.value!==null||l())return;const R=()=>{m(!0),f.value=null},{delay:_}=e;_===0?R():f.value=window.setTimeout(R,_)}}function B(){const P=s();if(e.trigger==="hover"&&!P){if(g(),p.value!==null||!l())return;const R=()=>{m(!1),p.value=null},{duration:_}=e;_===0?R():p.value=window.setTimeout(R,_)}}function x(){B()}function S(P){var R;l()&&(e.trigger==="click"&&(g(),T(),m(!1)),(R=e.onClickoutside)===null||R===void 0||R.call(e,P))}function M(){if(e.trigger==="click"&&!s()){g(),T();const P=!l();m(P)}}function O(P){e.internalTrapFocus&&P.key==="Escape"&&(g(),T(),m(!1))}function Z(P){n.value=P}function A(){var P;return(P=r.value)===null||P===void 0?void 0:P.targetRef}function C(P){u=P}return nt("NPopover",{getTriggerElement:A,handleKeydown:O,handleMouseEnter:I,handleMouseLeave:B,handleClickOutside:S,handleMouseMoveOutside:x,setBodyInstance:C,positionManuallyRef:h,isMountedRef:t,zIndexRef:tt(e,"zIndex"),extraClassRef:tt(e,"internalExtraClass"),internalRenderBodyRef:tt(e,"internalRenderBody")}),Tr(()=>{i.value&&s()&&m(!1)}),{binderInstRef:r,positionManually:h,mergedShowConsideringDisabledProp:a,uncontrolledShow:n,mergedShowArrow:d,getMergedShow:l,setShow:Z,handleClick:M,handleMouseEnter:I,handleMouseLeave:B,handleFocus:w,handleBlur:k,syncPosition:v}},render(){var e;const{positionManually:t,$slots:r}=this;let o,n=!1;if(!t&&(r.activator?o=Hu(r,"activator"):o=Hu(r,"trigger"),o)){o=Yr(o),o=o.type===Gi?b("span",[o]):o;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=o.type)===null||e===void 0)&&e.__popover__)n=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[i,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:c=>{s.forEach(d=>{d.onBlur(c)})},onFocus:c=>{s.forEach(d=>{d.onFocus(c)})},onClick:c=>{s.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{s.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{s.forEach(d=>{d.onMouseleave(c)})}};qk(o,a?"nested":t?"manual":this.trigger,l)}}return b(sd,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?Ki(b("div",{style:{position:"fixed",inset:0}}),[[om,{enabled:i,zIndex:this.zIndex}]]):null,t?null:b(ld,null,{default:()=>o}),b(Vk,kn(this.$props,Uk,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),lg={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},Yk={name:"Tag",common:me,self(e){const{textColor2:t,primaryColorHover:r,primaryColorPressed:o,primaryColor:n,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:d,tagColor:u,opacityDisabled:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:v,closeColorPressed:g,borderRadiusSmall:T,fontSizeMini:w,fontSizeTiny:k,fontSizeSmall:I,fontSizeMedium:B,heightMini:x,heightTiny:S,heightSmall:M,heightMedium:O,buttonColor2Hover:Z,buttonColor2Pressed:A,fontWeightStrong:C}=e;return Object.assign(Object.assign({},lg),{closeBorderRadius:T,heightTiny:x,heightSmall:S,heightMedium:M,heightLarge:O,borderRadius:T,opacityDisabled:f,fontSizeTiny:w,fontSizeSmall:k,fontSizeMedium:I,fontSizeLarge:B,fontWeightStrong:C,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:Z,colorPressedCheckable:A,colorChecked:n,colorCheckedHover:r,colorCheckedPressed:o,border:`1px solid ${d}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:v,closeColorPressed:g,borderPrimary:`1px solid ${fe(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:fe(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:yt(n,{lightness:.7}),closeIconColorHoverPrimary:yt(n,{lightness:.7}),closeIconColorPressedPrimary:yt(n,{lightness:.7}),closeColorHoverPrimary:fe(n,{alpha:.16}),closeColorPressedPrimary:fe(n,{alpha:.12}),borderInfo:`1px solid ${fe(i,{alpha:.3})}`,textColorInfo:i,colorInfo:fe(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:yt(i,{alpha:.7}),closeIconColorHoverInfo:yt(i,{alpha:.7}),closeIconColorPressedInfo:yt(i,{alpha:.7}),closeColorHoverInfo:fe(i,{alpha:.16}),closeColorPressedInfo:fe(i,{alpha:.12}),borderSuccess:`1px solid ${fe(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:fe(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:yt(a,{alpha:.7}),closeIconColorHoverSuccess:yt(a,{alpha:.7}),closeIconColorPressedSuccess:yt(a,{alpha:.7}),closeColorHoverSuccess:fe(a,{alpha:.16}),closeColorPressedSuccess:fe(a,{alpha:.12}),borderWarning:`1px solid ${fe(s,{alpha:.3})}`,textColorWarning:s,colorWarning:fe(s,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:yt(s,{alpha:.7}),closeIconColorHoverWarning:yt(s,{alpha:.7}),closeIconColorPressedWarning:yt(s,{alpha:.7}),closeColorHoverWarning:fe(s,{alpha:.16}),closeColorPressedWarning:fe(s,{alpha:.11}),borderError:`1px solid ${fe(l,{alpha:.3})}`,textColorError:l,colorError:fe(l,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:yt(l,{alpha:.7}),closeIconColorHoverError:yt(l,{alpha:.7}),closeIconColorPressedError:yt(l,{alpha:.7}),closeColorHoverError:fe(l,{alpha:.16}),closeColorPressedError:fe(l,{alpha:.12})})}},cg=Yk,Xk=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:o,primaryColor:n,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:c,borderColor:d,opacityDisabled:u,tagColor:f,closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,borderRadiusSmall:v,fontSizeMini:g,fontSizeTiny:T,fontSizeSmall:w,fontSizeMedium:k,heightMini:I,heightTiny:B,heightSmall:x,heightMedium:S,closeColorHover:M,closeColorPressed:O,buttonColor2Hover:Z,buttonColor2Pressed:A,fontWeightStrong:C}=e;return Object.assign(Object.assign({},lg),{closeBorderRadius:v,heightTiny:I,heightSmall:B,heightMedium:x,heightLarge:S,borderRadius:v,opacityDisabled:u,fontSizeTiny:g,fontSizeSmall:T,fontSizeMedium:w,fontSizeLarge:k,fontWeightStrong:C,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:Z,colorPressedCheckable:A,colorChecked:n,colorCheckedHover:r,colorCheckedPressed:o,border:`1px solid ${d}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:p,closeIconColorHover:h,closeIconColorPressed:m,closeColorHover:M,closeColorPressed:O,borderPrimary:`1px solid ${fe(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:fe(n,{alpha:.12}),colorBorderedPrimary:fe(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:fe(n,{alpha:.12}),closeColorPressedPrimary:fe(n,{alpha:.18}),borderInfo:`1px solid ${fe(i,{alpha:.3})}`,textColorInfo:i,colorInfo:fe(i,{alpha:.12}),colorBorderedInfo:fe(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:fe(i,{alpha:.12}),closeColorPressedInfo:fe(i,{alpha:.18}),borderSuccess:`1px solid ${fe(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:fe(a,{alpha:.12}),colorBorderedSuccess:fe(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:fe(a,{alpha:.12}),closeColorPressedSuccess:fe(a,{alpha:.18}),borderWarning:`1px solid ${fe(s,{alpha:.35})}`,textColorWarning:s,colorWarning:fe(s,{alpha:.15}),colorBorderedWarning:fe(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:fe(s,{alpha:.12}),closeColorPressedWarning:fe(s,{alpha:.18}),borderError:`1px solid ${fe(l,{alpha:.23})}`,textColorError:l,colorError:fe(l,{alpha:.1}),colorBorderedError:fe(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:fe(l,{alpha:.12}),closeColorPressedError:fe(l,{alpha:.18})})},Jk={name:"Tag",common:Wt,self:Xk},Zk=Jk,Qk={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},eT=L("tag",` + --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--n-padding); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + opacity .3s var(--n-bezier); + line-height: 1; + height: var(--n-height); + font-size: var(--n-font-size); +`,[G("strong",` + font-weight: var(--n-font-weight-strong); + `),V("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-border); + transition: border-color .3s var(--n-bezier); + `),V("icon",` + display: flex; + margin: 0 4px 0 0; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + font-size: var(--n-avatar-size-override); + `),V("avatar",` + display: flex; + margin: 0 6px 0 0; + `),V("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),G("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[V("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),V("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),G("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),G("icon, avatar",[G("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),G("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),G("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[xt("disabled",[H("&:hover","background-color: var(--n-color-hover-checkable);",[xt("checked","color: var(--n-text-color-hover-checkable);")]),H("&:active","background-color: var(--n-color-pressed-checkable);",[xt("checked","color: var(--n-text-color-pressed-checkable);")])]),G("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[xt("disabled",[H("&:hover","background-color: var(--n-color-checked-hover);"),H("&:active","background-color: var(--n-color-checked-pressed);")])])])]),tT=Object.assign(Object.assign(Object.assign({},We.props),Qk),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),rT="n-tag",oT=ye({name:"Tag",props:tT,setup(e){const t=Y(null),{mergedBorderedRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:i}=St(e),a=We("Tag","-tag",eT,Zk,e,o);nt(rT,{roundRef:tt(e,"round")});function s(p){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:m,onUpdateChecked:v,"onUpdate:checked":g}=e;v&&v(!h),g&&g(!h),m&&m(!h)}}function l(p){if(e.triggerClickOnClose||p.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&Ue(h,p)}}const c={setTextContent(p){const{value:h}=t;h&&(h.textContent=p)}},d=Po("Tag",i,o),u=N(()=>{const{type:p,size:h,color:{color:m,textColor:v}={}}=e,{common:{cubicBezierEaseInOut:g},self:{padding:T,closeMargin:w,borderRadius:k,opacityDisabled:I,textColorCheckable:B,textColorHoverCheckable:x,textColorPressedCheckable:S,textColorChecked:M,colorCheckable:O,colorHoverCheckable:Z,colorPressedCheckable:A,colorChecked:C,colorCheckedHover:z,colorCheckedPressed:P,closeBorderRadius:R,fontWeightStrong:_,[ve("colorBordered",p)]:W,[ve("closeSize",h)]:le,[ve("closeIconSize",h)]:ie,[ve("fontSize",h)]:X,[ve("height",h)]:re,[ve("color",p)]:J,[ve("textColor",p)]:Se,[ve("border",p)]:Te,[ve("closeIconColor",p)]:Ie,[ve("closeIconColorHover",p)]:de,[ve("closeIconColorPressed",p)]:Fe,[ve("closeColorHover",p)]:K,[ve("closeColorPressed",p)]:je}}=a.value,$e=Rs(w);return{"--n-font-weight-strong":_,"--n-avatar-size-override":`calc(${re} - 8px)`,"--n-bezier":g,"--n-border-radius":k,"--n-border":Te,"--n-close-icon-size":ie,"--n-close-color-pressed":je,"--n-close-color-hover":K,"--n-close-border-radius":R,"--n-close-icon-color":Ie,"--n-close-icon-color-hover":de,"--n-close-icon-color-pressed":Fe,"--n-close-icon-color-disabled":Ie,"--n-close-margin-top":$e.top,"--n-close-margin-right":$e.right,"--n-close-margin-bottom":$e.bottom,"--n-close-margin-left":$e.left,"--n-close-size":le,"--n-color":m||(r.value?W:J),"--n-color-checkable":O,"--n-color-checked":C,"--n-color-checked-hover":z,"--n-color-checked-pressed":P,"--n-color-hover-checkable":Z,"--n-color-pressed-checkable":A,"--n-font-size":X,"--n-height":re,"--n-opacity-disabled":I,"--n-padding":T,"--n-text-color":v||Se,"--n-text-color-checkable":B,"--n-text-color-checked":M,"--n-text-color-hover-checkable":x,"--n-text-color-pressed-checkable":S}}),f=n?Nt("tag",N(()=>{let p="";const{type:h,size:m,color:{color:v,textColor:g}={}}=e;return p+=h[0],p+=m[0],v&&(p+=`a${ts(v)}`),g&&(p+=`b${ts(g)}`),r.value&&(p+="c"),p}),u,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:o,contentRef:t,mergedBordered:r,handleClick:s,handleCloseClick:l,cssVars:n?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:o,closable:n,color:{borderColor:i}={},round:a,onRender:s,$slots:l}=this;s==null||s();const c=Bt(l.avatar,u=>u&&b("div",{class:`${r}-tag__avatar`},u)),d=Bt(l.icon,u=>u&&b("div",{class:`${r}-tag__icon`},u));return b("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:o,[`${r}-tag--strong`]:this.strong,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:a,[`${r}-tag--avatar`]:c,[`${r}-tag--icon`]:d,[`${r}-tag--closable`]:n}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,b("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&n?b(Fs,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?b("div",{class:`${r}-tag__border`,style:{borderColor:i}}):null)}}),nT=L("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[H(">",[V("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[H("&:hover",` + color: var(--n-clear-color-hover)!important; + `),H("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),V("placeholder",` + display: flex; + `),V("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Fi({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),ac=ye({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return qn("-base-clear",nT,tt(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return b("div",{class:`${e}-base-clear`},b(Bs,null,{default:()=>{var t,r;return this.show?b("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Tn(this.$slots.icon,()=>[b(So,{clsPrefix:e},{default:()=>b(WP,null)})])):b("div",{key:"icon",class:`${e}-base-clear__placeholder`},(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t))}}))}}),iT=ye({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:r}=e;return b(kd,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?b(ac,{clsPrefix:r,show:e.showClear,onClear:e.onClear},{placeholder:()=>b(So,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>Tn(t.default,()=>[b(NP,null)])})}):null})}}}),aT={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},sT={name:"InternalSelection",common:me,peers:{Popover:ln},self(e){const{borderRadius:t,textColor2:r,textColorDisabled:o,inputColor:n,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,iconColor:f,iconColorDisabled:p,clearColor:h,clearColorHover:m,clearColorPressed:v,placeholderColor:g,placeholderColorDisabled:T,fontSizeTiny:w,fontSizeSmall:k,fontSizeMedium:I,fontSizeLarge:B,heightTiny:x,heightSmall:S,heightMedium:M,heightLarge:O}=e;return Object.assign(Object.assign({},aT),{fontSizeTiny:w,fontSizeSmall:k,fontSizeMedium:I,fontSizeLarge:B,heightTiny:x,heightSmall:S,heightMedium:M,heightLarge:O,borderRadius:t,textColor:r,textColorDisabled:o,placeholderColor:g,placeholderColorDisabled:T,color:n,colorDisabled:i,colorActive:fe(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${fe(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${fe(a,{alpha:.4})}`,caretColor:a,arrowColor:f,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${fe(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${fe(l,{alpha:.4})}`,colorActiveWarning:fe(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${fe(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${fe(d,{alpha:.4})}`,colorActiveError:fe(d,{alpha:.1}),caretColorError:d,clearColor:h,clearColorHover:m,clearColorPressed:v})}},Ed=sT,{cubicBezierEaseInOut:io}=to;function lT({duration:e=".2s",delay:t=".1s"}={}){return[H("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),H("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + opacity: 0!important; + margin-left: 0!important; + margin-right: 0!important; + `),H("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${io}, + max-width ${e} ${io} ${t}, + margin-left ${e} ${io} ${t}, + margin-right ${e} ${io} ${t}; + `),H("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${io} ${t}, + max-width ${e} ${io}, + margin-left ${e} ${io}, + margin-right ${e} ${io}; + `)]}const cT={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},dT={name:"Alert",common:me,self(e){const{lineHeight:t,borderRadius:r,fontWeightStrong:o,dividerColor:n,inputColor:i,textColor1:a,textColor2:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:h,warningColorSuppl:m,errorColorSuppl:v,fontSize:g}=e;return Object.assign(Object.assign({},cT),{fontSize:g,lineHeight:t,titleFontWeight:o,borderRadius:r,border:`1px solid ${n}`,color:i,titleTextColor:a,iconColor:s,contentTextColor:s,closeBorderRadius:r,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderInfo:`1px solid ${fe(p,{alpha:.35})}`,colorInfo:fe(p,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:l,closeColorPressedInfo:c,closeIconColorInfo:d,closeIconColorHoverInfo:u,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${fe(h,{alpha:.35})}`,colorSuccess:fe(h,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:h,contentTextColorSuccess:s,closeColorHoverSuccess:l,closeColorPressedSuccess:c,closeIconColorSuccess:d,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${fe(m,{alpha:.35})}`,colorWarning:fe(m,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:m,contentTextColorWarning:s,closeColorHoverWarning:l,closeColorPressedWarning:c,closeIconColorWarning:d,closeIconColorHoverWarning:u,closeIconColorPressedWarning:f,borderError:`1px solid ${fe(v,{alpha:.35})}`,colorError:fe(v,{alpha:.25}),titleTextColorError:a,iconColorError:v,contentTextColorError:s,closeColorHoverError:l,closeColorPressedError:c,closeIconColorError:d,closeIconColorHoverError:u,closeIconColorPressedError:f})}},uT=dT,{cubicBezierEaseInOut:Er,cubicBezierEaseOut:fT,cubicBezierEaseIn:hT}=to;function dg({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:o="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[H(`&.fade-in-height-expand-transition-${c}-from, + &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),H(`&.fade-in-height-expand-transition-${c}-to, + &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),H(`&.fade-in-height-expand-transition-${c}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Er} ${o}, + opacity ${t} ${fT} ${o}, + margin-top ${t} ${Er} ${o}, + margin-bottom ${t} ${Er} ${o}, + padding-top ${t} ${Er} ${o}, + padding-bottom ${t} ${Er} ${o} + ${r?","+r:""} + `),H(`&.fade-in-height-expand-transition-${l}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Er}, + opacity ${t} ${hT}, + margin-top ${t} ${Er}, + margin-bottom ${t} ${Er}, + padding-top ${t} ${Er}, + padding-bottom ${t} ${Er} + ${r?","+r:""} + `)]}const pT={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"},mT=e=>{const{borderRadius:t,railColor:r,primaryColor:o,primaryColorHover:n,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},pT),{borderRadius:t,railColor:r,railColorActive:o,linkColor:fe(o,{alpha:.15}),linkTextColor:a,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:o})},gT={name:"Anchor",common:me,self:mT},vT=gT,bT=Es&&"chrome"in window;Es&&navigator.userAgent.includes("Firefox");const ug=Es&&navigator.userAgent.includes("Safari")&&!bT,fg={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"},xT={name:"Input",common:me,self(e){const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:s,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderRadius:f,lineHeight:p,fontSizeTiny:h,fontSizeSmall:m,fontSizeMedium:v,fontSizeLarge:g,heightTiny:T,heightSmall:w,heightMedium:k,heightLarge:I,clearColor:B,clearColorHover:x,clearColorPressed:S,placeholderColor:M,placeholderColorDisabled:O,iconColor:Z,iconColorDisabled:A,iconColorHover:C,iconColorPressed:z}=e;return Object.assign(Object.assign({},fg),{countTextColorDisabled:o,countTextColor:r,heightTiny:T,heightSmall:w,heightMedium:k,heightLarge:I,fontSizeTiny:h,fontSizeSmall:m,fontSizeMedium:v,fontSizeLarge:g,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:M,placeholderColorDisabled:O,color:a,colorDisabled:s,colorFocus:fe(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${fe(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:fe(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${fe(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,colorFocusError:fe(d,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${fe(d,{alpha:.3})}`,caretColorError:d,clearColor:B,clearColorHover:x,clearColorPressed:S,iconColor:Z,iconColorDisabled:A,iconColorHover:C,iconColorPressed:z,suffixTextColor:t})}},Sr=xT,yT=e=>{const{textColor2:t,textColor3:r,textColorDisabled:o,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:s,borderColor:l,warningColor:c,warningColorHover:d,errorColor:u,errorColorHover:f,borderRadius:p,lineHeight:h,fontSizeTiny:m,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:T,heightTiny:w,heightSmall:k,heightMedium:I,heightLarge:B,actionColor:x,clearColor:S,clearColorHover:M,clearColorPressed:O,placeholderColor:Z,placeholderColorDisabled:A,iconColor:C,iconColorDisabled:z,iconColorHover:P,iconColorPressed:R}=e;return Object.assign(Object.assign({},fg),{countTextColorDisabled:o,countTextColor:r,heightTiny:w,heightSmall:k,heightMedium:I,heightLarge:B,fontSizeTiny:m,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:T,lineHeight:h,lineHeightTextarea:h,borderRadius:p,iconSize:"16px",groupLabelColor:x,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:n,placeholderColor:Z,placeholderColorDisabled:A,color:a,colorDisabled:s,colorFocus:a,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${fe(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${fe(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:a,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${fe(u,{alpha:.2})}`,caretColorError:u,clearColor:S,clearColorHover:M,clearColorPressed:O,iconColor:C,iconColorDisabled:z,iconColorHover:P,iconColorPressed:R,suffixTextColor:t})},CT={name:"Input",common:Wt,self:yT},ST=CT,hg="n-input";function wT(e){let t=0;for(const r of e)t++;return t}function Sa(e){return e===""||e==null}function _T(e){const t=Y(null);function r(){const{value:i}=e;if(!(i!=null&&i.focus)){n();return}const{selectionStart:a,selectionEnd:s,value:l}=i;if(a==null||s==null){n();return}t.value={start:a,end:s,beforeText:l.slice(0,a),afterText:l.slice(s)}}function o(){var i;const{value:a}=t,{value:s}=e;if(!a||!s)return;const{value:l}=s,{start:c,beforeText:d,afterText:u}=a;let f=l.length;if(l.endsWith(u))f=l.length-u.length;else if(l.startsWith(d))f=d.length;else{const p=d[c-1],h=l.indexOf(p,c-1);h!==-1&&(f=h+1)}(i=s.setSelectionRange)===null||i===void 0||i.call(s,f,f)}function n(){t.value=null}return Xe(e,n),{recordCursor:r,restoreCursor:o}}const Nf=ye({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:r,maxlengthRef:o,mergedClsPrefixRef:n,countGraphemesRef:i}=Oe(hg),a=N(()=>{const{value:s}=r;return s===null||Array.isArray(s)?0:(i.value||wT)(s)});return()=>{const{value:s}=o,{value:l}=r;return b("span",{class:`${n.value}-input-word-count`},Ny(t.default,{value:l===null||Array.isArray(l)?"":l},()=>[s===void 0?a.value:`${a.value} / ${s}`]))}}}),PT=L("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color .3s var(--n-bezier); + font-size: var(--n-font-size); + --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); +`,[V("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),V("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + -webkit-text-fill-color .3s var(--n-bezier), + caret-color .3s var(--n-bezier), + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `),V("input-el, textarea-el",` + -webkit-appearance: none; + scrollbar-width: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--n-text-decoration-color); + color: var(--n-text-color); + caret-color: var(--n-caret-color); + background-color: transparent; + `,[H("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),H("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),H("&:-webkit-autofill ~",[V("placeholder","display: none;")])]),G("round",[xt("textarea","border-radius: calc(var(--n-height) / 2);")]),V("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[H("span",` + width: 100%; + display: inline-block; + `)]),G("textarea",[V("placeholder","overflow: visible;")]),xt("autosize","width: 100%;"),G("autosize",[V("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),L("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),V("input-mirror",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre; + pointer-events: none; + `),V("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[H("&[type=password]::-ms-reveal","display: none;"),H("+",[V("placeholder",` + display: flex; + align-items: center; + `)])]),xt("textarea",[V("placeholder","white-space: nowrap;")]),V("eye",` + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `),G("textarea","width: 100%;",[L("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),G("resizable",[L("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),V("textarea-el, textarea-mirror, placeholder",` + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--n-padding-vertical); + padding-bottom: var(--n-padding-vertical); + word-break: break-word; + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--n-line-height-textarea); + margin: 0; + resize: none; + white-space: pre-wrap; + scroll-padding-block-end: var(--n-padding-vertical); + `),V("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),G("pair",[V("input-el, placeholder","text-align: center;"),V("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[L("icon",` + color: var(--n-icon-color); + `),L("base-icon",` + color: var(--n-icon-color); + `)])]),G("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[V("border","border: var(--n-border-disabled);"),V("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),V("placeholder","color: var(--n-placeholder-color-disabled);"),V("separator","color: var(--n-text-color-disabled);",[L("icon",` + color: var(--n-icon-color-disabled); + `),L("base-icon",` + color: var(--n-icon-color-disabled); + `)]),L("input-word-count",` + color: var(--n-count-text-color-disabled); + `),V("suffix, prefix","color: var(--n-text-color-disabled);",[L("icon",` + color: var(--n-icon-color-disabled); + `),L("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),xt("disabled",[V("eye",` + color: var(--n-icon-color); + cursor: pointer; + `,[H("&:hover",` + color: var(--n-icon-color-hover); + `),H("&:active",` + color: var(--n-icon-color-pressed); + `)]),H("&:hover",[V("state-border","border: var(--n-border-hover);")]),G("focus","background-color: var(--n-color-focus);",[V("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),V("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--n-border); + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),V("state-border",` + border-color: #0000; + z-index: 1; + `),V("prefix","margin-right: 4px;"),V("suffix",` + margin-left: 4px; + `),V("suffix, prefix",` + transition: color .3s var(--n-bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--n-height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-suffix-text-color); + `,[L("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),L("base-clear",` + font-size: var(--n-icon-size); + `,[V("placeholder",[L("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),H(">",[L("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),L("base-icon",` + font-size: var(--n-icon-size); + `)]),L("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--n-count-text-color); + transition: color .3s var(--n-bezier); + margin-left: 4px; + font-variant: tabular-nums; + `),["warning","error"].map(e=>G(`${e}-status`,[xt("disabled",[L("base-loading",` + color: var(--n-loading-color-${e}) + `),V("input-el, textarea-el",` + caret-color: var(--n-caret-color-${e}); + `),V("state-border",` + border: var(--n-border-${e}); + `),H("&:hover",[V("state-border",` + border: var(--n-border-hover-${e}); + `)]),H("&:focus",` + background-color: var(--n-color-focus-${e}); + `,[V("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)]),G("focus",` + background-color: var(--n-color-focus-${e}); + `,[V("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),kT=L("input",[G("disabled",[V("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]),TT=Object.assign(Object.assign({},We.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),$T=ye({name:"Input",props:TT,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:r,inlineThemeDisabled:o,mergedRtlRef:n}=St(e),i=We("Input","-input",PT,ST,e,t);ug&&qn("-input-safari",kT,t);const a=Y(null),s=Y(null),l=Y(null),c=Y(null),d=Y(null),u=Y(null),f=Y(null),p=_T(f),h=Y(null),{localeRef:m}=BP("Input"),v=Y(e.defaultValue),g=tt(e,"value"),T=Fn(g,v),w=ud(e),{mergedSizeRef:k,mergedDisabledRef:I,mergedStatusRef:B}=w,x=Y(!1),S=Y(!1),M=Y(!1),O=Y(!1);let Z=null;const A=N(()=>{const{placeholder:D,pair:se}=e;return se?Array.isArray(D)?D:D===void 0?["",""]:[D,D]:D===void 0?[m.value.placeholder]:[D]}),C=N(()=>{const{value:D}=M,{value:se}=T,{value:Ae}=A;return!D&&(Sa(se)||Array.isArray(se)&&Sa(se[0]))&&Ae[0]}),z=N(()=>{const{value:D}=M,{value:se}=T,{value:Ae}=A;return!D&&Ae[1]&&(Sa(se)||Array.isArray(se)&&Sa(se[1]))}),P=jt(()=>e.internalForceFocus||x.value),R=jt(()=>{if(I.value||e.readonly||!e.clearable||!P.value&&!S.value)return!1;const{value:D}=T,{value:se}=P;return e.pair?!!(Array.isArray(D)&&(D[0]||D[1]))&&(S.value||se):!!D&&(S.value||se)}),_=N(()=>{const{showPasswordOn:D}=e;if(D)return D;if(e.showPasswordToggle)return"click"}),W=Y(!1),le=N(()=>{const{textDecoration:D}=e;return D?Array.isArray(D)?D.map(se=>({textDecoration:se})):[{textDecoration:D}]:["",""]}),ie=Y(void 0),X=()=>{var D,se;if(e.type==="textarea"){const{autosize:Ae}=e;if(Ae&&(ie.value=(se=(D=h.value)===null||D===void 0?void 0:D.$el)===null||se===void 0?void 0:se.offsetWidth),!s.value||typeof Ae=="boolean")return;const{paddingTop:at,paddingBottom:gt,lineHeight:it}=window.getComputedStyle(s.value),To=Number(at.slice(0,-2)),$o=Number(gt.slice(0,-2)),Ro=Number(it.slice(0,-2)),{value:Jn}=l;if(!Jn)return;if(Ae.minRows){const Zn=Math.max(Ae.minRows,1),qs=`${To+$o+Ro*Zn}px`;Jn.style.minHeight=qs}if(Ae.maxRows){const Zn=`${To+$o+Ro*Ae.maxRows}px`;Jn.style.maxHeight=Zn}}},re=N(()=>{const{maxlength:D}=e;return D===void 0?void 0:Number(D)});Ft(()=>{const{value:D}=T;Array.isArray(D)||Gt(D)});const J=wo().proxy;function Se(D,se){const{onUpdateValue:Ae,"onUpdate:value":at,onInput:gt}=e,{nTriggerFormInput:it}=w;Ae&&Ue(Ae,D,se),at&&Ue(at,D,se),gt&&Ue(gt,D,se),v.value=D,it()}function Te(D,se){const{onChange:Ae}=e,{nTriggerFormChange:at}=w;Ae&&Ue(Ae,D,se),v.value=D,at()}function Ie(D){const{onBlur:se}=e,{nTriggerFormBlur:Ae}=w;se&&Ue(se,D),Ae()}function de(D){const{onFocus:se}=e,{nTriggerFormFocus:Ae}=w;se&&Ue(se,D),Ae()}function Fe(D){const{onClear:se}=e;se&&Ue(se,D)}function K(D){const{onInputBlur:se}=e;se&&Ue(se,D)}function je(D){const{onInputFocus:se}=e;se&&Ue(se,D)}function $e(){const{onDeactivate:D}=e;D&&Ue(D)}function Le(){const{onActivate:D}=e;D&&Ue(D)}function y(D){const{onClick:se}=e;se&&Ue(se,D)}function E(D){const{onWrapperFocus:se}=e;se&&Ue(se,D)}function q(D){const{onWrapperBlur:se}=e;se&&Ue(se,D)}function ne(){M.value=!0}function ae(D){M.value=!1,D.target===u.value?he(D,1):he(D,0)}function he(D,se=0,Ae="input"){const at=D.target.value;if(Gt(at),D instanceof InputEvent&&!D.isComposing&&(M.value=!1),e.type==="textarea"){const{value:it}=h;it&&it.syncUnifiedContainer()}if(Z=at,M.value)return;p.recordCursor();const gt=ge(at);if(gt)if(!e.pair)Ae==="input"?Se(at,{source:se}):Te(at,{source:se});else{let{value:it}=T;Array.isArray(it)?it=[it[0],it[1]]:it=["",""],it[se]=at,Ae==="input"?Se(it,{source:se}):Te(it,{source:se})}J.$forceUpdate(),gt||Jt(p.restoreCursor)}function ge(D){const{countGraphemes:se,maxlength:Ae,minlength:at}=e;if(se){let it;if(Ae!==void 0&&(it===void 0&&(it=se(D)),it>Number(Ae))||at!==void 0&&(it===void 0&&(it=se(D)),it{at.preventDefault(),ot("mouseup",document,se)};if(ft("mouseup",document,se),_.value!=="mousedown")return;W.value=!0;const Ae=()=>{W.value=!1,ot("mouseup",document,Ae)};ft("mouseup",document,Ae)}function Mt(D){e.onKeyup&&Ue(e.onKeyup,D)}function ko(D){switch(e.onKeydown&&Ue(e.onKeydown,D),D.key){case"Escape":be();break;case"Enter":ce(D);break}}function ce(D){var se,Ae;if(e.passivelyActivated){const{value:at}=O;if(at){e.internalDeactivateOnEnter&&be();return}D.preventDefault(),e.type==="textarea"?(se=s.value)===null||se===void 0||se.focus():(Ae=d.value)===null||Ae===void 0||Ae.focus()}}function be(){e.passivelyActivated&&(O.value=!1,Jt(()=>{var D;(D=a.value)===null||D===void 0||D.focus()}))}function Me(){var D,se,Ae;I.value||(e.passivelyActivated?(D=a.value)===null||D===void 0||D.focus():((se=s.value)===null||se===void 0||se.focus(),(Ae=d.value)===null||Ae===void 0||Ae.focus()))}function rt(){var D;!((D=a.value)===null||D===void 0)&&D.contains(document.activeElement)&&document.activeElement.blur()}function mt(){var D,se;(D=s.value)===null||D===void 0||D.select(),(se=d.value)===null||se===void 0||se.select()}function At(){I.value||(s.value?s.value.focus():d.value&&d.value.focus())}function cr(){const{value:D}=a;D!=null&&D.contains(document.activeElement)&&D!==document.activeElement&&be()}function lt(D){if(e.type==="textarea"){const{value:se}=s;se==null||se.scrollTo(D)}else{const{value:se}=d;se==null||se.scrollTo(D)}}function Gt(D){const{type:se,pair:Ae,autosize:at}=e;if(!Ae&&at)if(se==="textarea"){const{value:gt}=l;gt&&(gt.textContent=(D??"")+`\r +`)}else{const{value:gt}=c;gt&&(D?gt.textContent=D:gt.innerHTML=" ")}}function Nr(){X()}const na=Y({top:"0"});function Ks(D){var se;const{scrollTop:Ae}=D.target;na.value.top=`${-Ae}px`,(se=h.value)===null||se===void 0||se.syncUnifiedContainer()}let ia=null;Tr(()=>{const{autosize:D,type:se}=e;D&&se==="textarea"?ia=Xe(T,Ae=>{!Array.isArray(Ae)&&Ae!==Z&&Gt(Ae)}):ia==null||ia()});let aa=null;Tr(()=>{e.type==="textarea"?aa=Xe(T,D=>{var se;!Array.isArray(D)&&D!==Z&&((se=h.value)===null||se===void 0||se.syncUnifiedContainer())}):aa==null||aa()}),nt(hg,{mergedValueRef:T,maxlengthRef:re,mergedClsPrefixRef:t,countGraphemesRef:tt(e,"countGraphemes")});const i0={wrapperElRef:a,inputElRef:d,textareaElRef:s,isCompositing:M,clear:ze,focus:Me,blur:rt,select:mt,deactivate:cr,activate:At,scrollTo:lt},a0=Po("Input",n,t),Xd=N(()=>{const{value:D}=k,{common:{cubicBezierEaseInOut:se},self:{color:Ae,borderRadius:at,textColor:gt,caretColor:it,caretColorError:To,caretColorWarning:$o,textDecorationColor:Ro,border:Jn,borderDisabled:Zn,borderHover:qs,borderFocus:s0,placeholderColor:l0,placeholderColorDisabled:c0,lineHeightTextarea:d0,colorDisabled:u0,colorFocus:f0,textColorDisabled:h0,boxShadowFocus:p0,iconSize:m0,colorFocusWarning:g0,boxShadowFocusWarning:v0,borderWarning:b0,borderFocusWarning:x0,borderHoverWarning:y0,colorFocusError:C0,boxShadowFocusError:S0,borderError:w0,borderFocusError:_0,borderHoverError:P0,clearSize:k0,clearColor:T0,clearColorHover:$0,clearColorPressed:R0,iconColor:I0,iconColorDisabled:E0,suffixTextColor:z0,countTextColor:M0,countTextColorDisabled:A0,iconColorHover:O0,iconColorPressed:D0,loadingColor:B0,loadingColorError:F0,loadingColorWarning:L0,[ve("padding",D)]:H0,[ve("fontSize",D)]:j0,[ve("height",D)]:N0}}=i.value,{left:W0,right:V0}=Rs(H0);return{"--n-bezier":se,"--n-count-text-color":M0,"--n-count-text-color-disabled":A0,"--n-color":Ae,"--n-font-size":j0,"--n-border-radius":at,"--n-height":N0,"--n-padding-left":W0,"--n-padding-right":V0,"--n-text-color":gt,"--n-caret-color":it,"--n-text-decoration-color":Ro,"--n-border":Jn,"--n-border-disabled":Zn,"--n-border-hover":qs,"--n-border-focus":s0,"--n-placeholder-color":l0,"--n-placeholder-color-disabled":c0,"--n-icon-size":m0,"--n-line-height-textarea":d0,"--n-color-disabled":u0,"--n-color-focus":f0,"--n-text-color-disabled":h0,"--n-box-shadow-focus":p0,"--n-loading-color":B0,"--n-caret-color-warning":$o,"--n-color-focus-warning":g0,"--n-box-shadow-focus-warning":v0,"--n-border-warning":b0,"--n-border-focus-warning":x0,"--n-border-hover-warning":y0,"--n-loading-color-warning":L0,"--n-caret-color-error":To,"--n-color-focus-error":C0,"--n-box-shadow-focus-error":S0,"--n-border-error":w0,"--n-border-focus-error":_0,"--n-border-hover-error":P0,"--n-loading-color-error":F0,"--n-clear-color":T0,"--n-clear-size":k0,"--n-clear-color-hover":$0,"--n-clear-color-pressed":R0,"--n-icon-color":I0,"--n-icon-color-hover":O0,"--n-icon-color-pressed":D0,"--n-icon-color-disabled":E0,"--n-suffix-text-color":z0}}),hn=o?Nt("input",N(()=>{const{value:D}=k;return D[0]}),Xd,e):void 0;return Object.assign(Object.assign({},i0),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:u,textareaElRef:s,textareaMirrorElRef:l,textareaScrollbarInstRef:h,rtlEnabled:a0,uncontrolledValue:v,mergedValue:T,passwordVisible:W,mergedPlaceholder:A,showPlaceholder1:C,showPlaceholder2:z,mergedFocus:P,isComposing:M,activated:O,showClearButton:R,mergedSize:k,mergedDisabled:I,textDecorationStyle:le,mergedClsPrefix:t,mergedBordered:r,mergedShowPasswordOn:_,placeholderStyle:na,mergedStatus:B,textAreaScrollContainerWidth:ie,handleTextAreaScroll:Ks,handleCompositionStart:ne,handleCompositionEnd:ae,handleInput:he,handleInputBlur:ee,handleInputFocus:ue,handleWrapperBlur:oe,handleWrapperFocus:F,handleMouseEnter:Ne,handleMouseLeave:Ze,handleMouseDown:Ve,handleChange:Q,handleClick:pe,handleClear:we,handlePasswordToggleClick:Tt,handlePasswordToggleMousedown:wr,handleWrapperKeydown:ko,handleWrapperKeyup:Mt,handleTextAreaMirrorResize:Nr,getTextareaScrollContainer:()=>s.value,mergedTheme:i,cssVars:o?void 0:Xd,themeClass:hn==null?void 0:hn.themeClass,onRender:hn==null?void 0:hn.onRender})},render(){var e,t;const{mergedClsPrefix:r,mergedStatus:o,themeClass:n,type:i,countGraphemes:a,onRender:s}=this,l=this.$slots;return s==null||s(),b("div",{ref:"wrapperElRef",class:[`${r}-input`,n,o&&`${r}-input--${o}-status`,{[`${r}-input--rtl`]:this.rtlEnabled,[`${r}-input--disabled`]:this.mergedDisabled,[`${r}-input--textarea`]:i==="textarea",[`${r}-input--resizable`]:this.resizable&&!this.autosize,[`${r}-input--autosize`]:this.autosize,[`${r}-input--round`]:this.round&&i!=="textarea",[`${r}-input--pair`]:this.pair,[`${r}-input--focus`]:this.mergedFocus,[`${r}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},b("div",{class:`${r}-input-wrapper`},Bt(l.prefix,c=>c&&b("div",{class:`${r}-input__prefix`},c)),i==="textarea"?b(Rd,{ref:"textareaScrollbarInstRef",class:`${r}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var c,d;const{textAreaScrollContainerWidth:u}=this,f={width:this.autosize&&u&&`${u}px`};return b(st,null,b("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${r}-input__textarea-el`,(c=this.inputProps)===null||c===void 0?void 0:c.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,f],onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?b("div",{class:`${r}-input__placeholder`,style:[this.placeholderStyle,f],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?b(rs,{onResize:this.handleTextAreaMirrorResize},{default:()=>b("div",{ref:"textareaMirrorElRef",class:`${r}-input__textarea-mirror`,key:"mirror"})}):null)}}):b("div",{class:`${r}-input__input`},b("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${r}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,0)},onInput:c=>{this.handleInput(c,0)},onChange:c=>{this.handleChange(c,0)}})),this.showPlaceholder1?b("div",{class:`${r}-input__placeholder`},b("span",null,this.mergedPlaceholder[0])):null,this.autosize?b("div",{class:`${r}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&Bt(l.suffix,c=>c||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?b("div",{class:`${r}-input__suffix`},[Bt(l["clear-icon-placeholder"],d=>(this.clearable||d)&&b(ac,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var u,f;return(f=(u=this.$slots)["clear-icon"])===null||f===void 0?void 0:f.call(u)}})),this.internalLoadingBeforeSuffix?null:c,this.loading!==void 0?b(iT,{clsPrefix:r,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?c:null,this.showCount&&this.type!=="textarea"?b(Nf,null,{default:d=>{var u;return(u=l.count)===null||u===void 0?void 0:u.call(l,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?b("div",{class:`${r}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Tn(l["password-visible-icon"],()=>[b(So,{clsPrefix:r},{default:()=>b(HP,null)})]):Tn(l["password-invisible-icon"],()=>[b(So,{clsPrefix:r},{default:()=>b(jP,null)})])):null]):null)),this.pair?b("span",{class:`${r}-input__separator`},Tn(l.separator,()=>[this.separator])):null,this.pair?b("div",{class:`${r}-input-wrapper`},b("div",{class:`${r}-input__input`},b("input",{ref:"inputEl2Ref",type:this.type,class:`${r}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:c=>{this.handleInputFocus(c,1)},onInput:c=>{this.handleInput(c,1)},onChange:c=>{this.handleChange(c,1)}}),this.showPlaceholder2?b("div",{class:`${r}-input__placeholder`},b("span",null,this.mergedPlaceholder[1])):null),Bt(l.suffix,c=>(this.clearable||c)&&b("div",{class:`${r}-input__suffix`},[this.clearable&&b(ac,{clsPrefix:r,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=l["clear-icon"])===null||d===void 0?void 0:d.call(l)},placeholder:()=>{var d;return(d=l["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(l)}}),c]))):null,this.mergedBordered?b("div",{class:`${r}-input__border`}):null,this.mergedBordered?b("div",{class:`${r}-input__state-border`}):null,this.showCount&&i==="textarea"?b(Nf,null,{default:c=>{var d;const{renderCount:u}=this;return u?u(c):(d=l.count)===null||d===void 0?void 0:d.call(l,c)}}):null)}});function RT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const IT={name:"AutoComplete",common:me,peers:{InternalSelectMenu:Zi,Input:Sr},self:RT},ET=IT,zT=e=>{const{borderRadius:t,avatarColor:r,cardColor:o,fontSize:n,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,modalColor:d,popoverColor:u}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${o}`,heightTiny:i,heightSmall:a,heightMedium:s,heightLarge:l,heightHuge:c,color:Re(o,r),colorModal:Re(d,r),colorPopover:Re(u,r)}},MT={name:"Avatar",common:me,self:zT},pg=MT,AT=()=>({gap:"-12px"}),OT={name:"AvatarGroup",common:me,peers:{Avatar:pg},self:AT},DT=OT,BT={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},FT={name:"BackTop",common:me,self(e){const{popoverColor:t,textColor2:r,primaryColorHover:o,primaryColorPressed:n}=e;return Object.assign(Object.assign({},BT),{color:t,textColor:r,iconColor:r,iconColorHover:o,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},LT=FT,HT={name:"Badge",common:me,self(e){const{errorColorSuppl:t,infoColorSuppl:r,successColorSuppl:o,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:r,colorSuccess:o,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},jT=HT,NT={fontWeightActive:"400"},WT=e=>{const{fontSize:t,textColor3:r,textColor2:o,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},NT),{fontSize:t,itemLineHeight:"1.25",itemTextColor:r,itemTextColorHover:o,itemTextColorPressed:o,itemTextColorActive:o,itemBorderRadius:n,itemColorHover:i,itemColorPressed:a,separatorColor:r})},VT={name:"Breadcrumb",common:me,self:WT},UT=VT;function Mo(e){return Re(e,[255,255,255,.16])}function wa(e){return Re(e,[0,0,0,.12])}const KT="n-button-group",qT={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},mg=e=>{const{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:d,textColor2:u,textColor3:f,primaryColorHover:p,primaryColorPressed:h,borderColor:m,primaryColor:v,baseColor:g,infoColor:T,infoColorHover:w,infoColorPressed:k,successColor:I,successColorHover:B,successColorPressed:x,warningColor:S,warningColorHover:M,warningColorPressed:O,errorColor:Z,errorColorHover:A,errorColorPressed:C,fontWeight:z,buttonColor2:P,buttonColor2Hover:R,buttonColor2Pressed:_,fontWeightStrong:W}=e;return Object.assign(Object.assign({},qT),{heightTiny:t,heightSmall:r,heightMedium:o,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:P,colorSecondaryHover:R,colorSecondaryPressed:_,colorTertiary:P,colorTertiaryHover:R,colorTertiaryPressed:_,colorQuaternary:"#0000",colorQuaternaryHover:R,colorQuaternaryPressed:_,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:f,textColorHover:p,textColorPressed:h,textColorFocus:p,textColorDisabled:u,textColorText:u,textColorTextHover:p,textColorTextPressed:h,textColorTextFocus:p,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:p,textColorGhostPressed:h,textColorGhostFocus:p,textColorGhostDisabled:u,border:`1px solid ${m}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${m}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:p,colorPressedPrimary:h,colorFocusPrimary:p,colorDisabledPrimary:v,textColorPrimary:g,textColorHoverPrimary:g,textColorPressedPrimary:g,textColorFocusPrimary:g,textColorDisabledPrimary:g,textColorTextPrimary:v,textColorTextHoverPrimary:p,textColorTextPressedPrimary:h,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:u,textColorGhostPrimary:v,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:T,colorHoverInfo:w,colorPressedInfo:k,colorFocusInfo:w,colorDisabledInfo:T,textColorInfo:g,textColorHoverInfo:g,textColorPressedInfo:g,textColorFocusInfo:g,textColorDisabledInfo:g,textColorTextInfo:T,textColorTextHoverInfo:w,textColorTextPressedInfo:k,textColorTextFocusInfo:w,textColorTextDisabledInfo:u,textColorGhostInfo:T,textColorGhostHoverInfo:w,textColorGhostPressedInfo:k,textColorGhostFocusInfo:w,textColorGhostDisabledInfo:T,borderInfo:`1px solid ${T}`,borderHoverInfo:`1px solid ${w}`,borderPressedInfo:`1px solid ${k}`,borderFocusInfo:`1px solid ${w}`,borderDisabledInfo:`1px solid ${T}`,rippleColorInfo:T,colorSuccess:I,colorHoverSuccess:B,colorPressedSuccess:x,colorFocusSuccess:B,colorDisabledSuccess:I,textColorSuccess:g,textColorHoverSuccess:g,textColorPressedSuccess:g,textColorFocusSuccess:g,textColorDisabledSuccess:g,textColorTextSuccess:I,textColorTextHoverSuccess:B,textColorTextPressedSuccess:x,textColorTextFocusSuccess:B,textColorTextDisabledSuccess:u,textColorGhostSuccess:I,textColorGhostHoverSuccess:B,textColorGhostPressedSuccess:x,textColorGhostFocusSuccess:B,textColorGhostDisabledSuccess:I,borderSuccess:`1px solid ${I}`,borderHoverSuccess:`1px solid ${B}`,borderPressedSuccess:`1px solid ${x}`,borderFocusSuccess:`1px solid ${B}`,borderDisabledSuccess:`1px solid ${I}`,rippleColorSuccess:I,colorWarning:S,colorHoverWarning:M,colorPressedWarning:O,colorFocusWarning:M,colorDisabledWarning:S,textColorWarning:g,textColorHoverWarning:g,textColorPressedWarning:g,textColorFocusWarning:g,textColorDisabledWarning:g,textColorTextWarning:S,textColorTextHoverWarning:M,textColorTextPressedWarning:O,textColorTextFocusWarning:M,textColorTextDisabledWarning:u,textColorGhostWarning:S,textColorGhostHoverWarning:M,textColorGhostPressedWarning:O,textColorGhostFocusWarning:M,textColorGhostDisabledWarning:S,borderWarning:`1px solid ${S}`,borderHoverWarning:`1px solid ${M}`,borderPressedWarning:`1px solid ${O}`,borderFocusWarning:`1px solid ${M}`,borderDisabledWarning:`1px solid ${S}`,rippleColorWarning:S,colorError:Z,colorHoverError:A,colorPressedError:C,colorFocusError:A,colorDisabledError:Z,textColorError:g,textColorHoverError:g,textColorPressedError:g,textColorFocusError:g,textColorDisabledError:g,textColorTextError:Z,textColorTextHoverError:A,textColorTextPressedError:C,textColorTextFocusError:A,textColorTextDisabledError:u,textColorGhostError:Z,textColorGhostHoverError:A,textColorGhostPressedError:C,textColorGhostFocusError:A,textColorGhostDisabledError:Z,borderError:`1px solid ${Z}`,borderHoverError:`1px solid ${A}`,borderPressedError:`1px solid ${C}`,borderFocusError:`1px solid ${A}`,borderDisabledError:`1px solid ${Z}`,rippleColorError:Z,waveOpacity:"0.6",fontWeight:z,fontWeightStrong:W})},GT={name:"Button",common:Wt,self:mg},YT=GT,XT={name:"Button",common:me,self(e){const t=mg(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},lr=XT,JT=H([L("button",` + margin: 0; + font-weight: var(--n-font-weight); + line-height: 1; + font-family: inherit; + padding: var(--n-padding); + height: var(--n-height); + font-size: var(--n-font-size); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + width: var(--n-width); + white-space: nowrap; + outline: none; + position: relative; + z-index: auto; + border: none; + display: inline-flex; + flex-wrap: nowrap; + flex-shrink: 0; + align-items: center; + justify-content: center; + user-select: none; + -webkit-user-select: none; + text-align: center; + cursor: pointer; + text-decoration: none; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[G("color",[V("border",{borderColor:"var(--n-border-color)"}),G("disabled",[V("border",{borderColor:"var(--n-border-color-disabled)"})]),xt("disabled",[H("&:focus",[V("state-border",{borderColor:"var(--n-border-color-focus)"})]),H("&:hover",[V("state-border",{borderColor:"var(--n-border-color-hover)"})]),H("&:active",[V("state-border",{borderColor:"var(--n-border-color-pressed)"})]),G("pressed",[V("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),G("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[V("border",{border:"var(--n-border-disabled)"})]),xt("disabled",[H("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[V("state-border",{border:"var(--n-border-focus)"})]),H("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[V("state-border",{border:"var(--n-border-hover)"})]),H("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[V("state-border",{border:"var(--n-border-pressed)"})]),G("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[V("state-border",{border:"var(--n-border-pressed)"})])]),G("loading","cursor: wait;"),L("base-wave",` + pointer-events: none; + top: 0; + right: 0; + bottom: 0; + left: 0; + animation-iteration-count: 1; + animation-duration: var(--n-ripple-duration); + animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); + `,[G("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Es&&"MozBoxSizing"in document.createElement("div").style?H("&::moz-focus-inner",{border:0}):null,V("border, state-border",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + border-radius: inherit; + transition: border-color .3s var(--n-bezier); + pointer-events: none; + `),V("border",{border:"var(--n-border)"}),V("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),V("icon",` + margin: var(--n-icon-margin); + margin-left: 0; + height: var(--n-icon-size); + width: var(--n-icon-size); + max-width: var(--n-icon-size); + font-size: var(--n-icon-size); + position: relative; + flex-shrink: 0; + `,[L("icon-slot",` + height: var(--n-icon-size); + width: var(--n-icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `,[Fi({top:"50%",originalTransform:"translateY(-50%)"})]),lT()]),V("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + min-width: 0; + `,[H("~",[V("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),G("block",` + display: flex; + width: 100%; + `),G("dashed",[V("border, state-border",{borderStyle:"dashed !important"})]),G("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),H("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),H("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),ZT=Object.assign(Object.assign({},We.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!ug}}),QT=ye({name:"Button",props:ZT,setup(e){const t=Y(null),r=Y(null),o=Y(!1),n=jt(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Oe(KT,{}),{mergedSizeRef:a}=ud({},{defaultSize:"medium",mergedSize:k=>{const{size:I}=e;if(I)return I;const{size:B}=i;if(B)return B;const{mergedSize:x}=k||{};return x?x.value:"medium"}}),s=N(()=>e.focusable&&!e.disabled),l=k=>{var I;s.value||k.preventDefault(),!e.nativeFocusBehavior&&(k.preventDefault(),!e.disabled&&s.value&&((I=t.value)===null||I===void 0||I.focus({preventScroll:!0})))},c=k=>{var I;if(!e.disabled&&!e.loading){const{onClick:B}=e;B&&Ue(B,k),e.text||(I=r.value)===null||I===void 0||I.play()}},d=k=>{switch(k.key){case"Enter":if(!e.keyboard)return;o.value=!1}},u=k=>{switch(k.key){case"Enter":if(!e.keyboard||e.loading){k.preventDefault();return}o.value=!0}},f=()=>{o.value=!1},{inlineThemeDisabled:p,mergedClsPrefixRef:h,mergedRtlRef:m}=St(e),v=We("Button","-button",JT,YT,e,h),g=Po("Button",m,h),T=N(()=>{const k=v.value,{common:{cubicBezierEaseInOut:I,cubicBezierEaseOut:B},self:x}=k,{rippleDuration:S,opacityDisabled:M,fontWeight:O,fontWeightStrong:Z}=x,A=a.value,{dashed:C,type:z,ghost:P,text:R,color:_,round:W,circle:le,textColor:ie,secondary:X,tertiary:re,quaternary:J,strong:Se}=e,Te={"font-weight":Se?Z:O};let Ie={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const de=z==="tertiary",Fe=z==="default",K=de?"default":z;if(R){const ee=ie||_;Ie={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":ee||x[ve("textColorText",K)],"--n-text-color-hover":ee?Mo(ee):x[ve("textColorTextHover",K)],"--n-text-color-pressed":ee?wa(ee):x[ve("textColorTextPressed",K)],"--n-text-color-focus":ee?Mo(ee):x[ve("textColorTextHover",K)],"--n-text-color-disabled":ee||x[ve("textColorTextDisabled",K)]}}else if(P||C){const ee=ie||_;Ie={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":_||x[ve("rippleColor",K)],"--n-text-color":ee||x[ve("textColorGhost",K)],"--n-text-color-hover":ee?Mo(ee):x[ve("textColorGhostHover",K)],"--n-text-color-pressed":ee?wa(ee):x[ve("textColorGhostPressed",K)],"--n-text-color-focus":ee?Mo(ee):x[ve("textColorGhostHover",K)],"--n-text-color-disabled":ee||x[ve("textColorGhostDisabled",K)]}}else if(X){const ee=Fe?x.textColor:de?x.textColorTertiary:x[ve("color",K)],ue=_||ee,oe=z!=="default"&&z!=="tertiary";Ie={"--n-color":oe?fe(ue,{alpha:Number(x.colorOpacitySecondary)}):x.colorSecondary,"--n-color-hover":oe?fe(ue,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-pressed":oe?fe(ue,{alpha:Number(x.colorOpacitySecondaryPressed)}):x.colorSecondaryPressed,"--n-color-focus":oe?fe(ue,{alpha:Number(x.colorOpacitySecondaryHover)}):x.colorSecondaryHover,"--n-color-disabled":x.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ue,"--n-text-color-hover":ue,"--n-text-color-pressed":ue,"--n-text-color-focus":ue,"--n-text-color-disabled":ue}}else if(re||J){const ee=Fe?x.textColor:de?x.textColorTertiary:x[ve("color",K)],ue=_||ee;re?(Ie["--n-color"]=x.colorTertiary,Ie["--n-color-hover"]=x.colorTertiaryHover,Ie["--n-color-pressed"]=x.colorTertiaryPressed,Ie["--n-color-focus"]=x.colorSecondaryHover,Ie["--n-color-disabled"]=x.colorTertiary):(Ie["--n-color"]=x.colorQuaternary,Ie["--n-color-hover"]=x.colorQuaternaryHover,Ie["--n-color-pressed"]=x.colorQuaternaryPressed,Ie["--n-color-focus"]=x.colorQuaternaryHover,Ie["--n-color-disabled"]=x.colorQuaternary),Ie["--n-ripple-color"]="#0000",Ie["--n-text-color"]=ue,Ie["--n-text-color-hover"]=ue,Ie["--n-text-color-pressed"]=ue,Ie["--n-text-color-focus"]=ue,Ie["--n-text-color-disabled"]=ue}else Ie={"--n-color":_||x[ve("color",K)],"--n-color-hover":_?Mo(_):x[ve("colorHover",K)],"--n-color-pressed":_?wa(_):x[ve("colorPressed",K)],"--n-color-focus":_?Mo(_):x[ve("colorFocus",K)],"--n-color-disabled":_||x[ve("colorDisabled",K)],"--n-ripple-color":_||x[ve("rippleColor",K)],"--n-text-color":ie||(_?x.textColorPrimary:de?x.textColorTertiary:x[ve("textColor",K)]),"--n-text-color-hover":ie||(_?x.textColorHoverPrimary:x[ve("textColorHover",K)]),"--n-text-color-pressed":ie||(_?x.textColorPressedPrimary:x[ve("textColorPressed",K)]),"--n-text-color-focus":ie||(_?x.textColorFocusPrimary:x[ve("textColorFocus",K)]),"--n-text-color-disabled":ie||(_?x.textColorDisabledPrimary:x[ve("textColorDisabled",K)])};let je={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};R?je={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:je={"--n-border":x[ve("border",K)],"--n-border-hover":x[ve("borderHover",K)],"--n-border-pressed":x[ve("borderPressed",K)],"--n-border-focus":x[ve("borderFocus",K)],"--n-border-disabled":x[ve("borderDisabled",K)]};const{[ve("height",A)]:$e,[ve("fontSize",A)]:Le,[ve("padding",A)]:y,[ve("paddingRound",A)]:E,[ve("iconSize",A)]:q,[ve("borderRadius",A)]:ne,[ve("iconMargin",A)]:ae,waveOpacity:he}=x,ge={"--n-width":le&&!R?$e:"initial","--n-height":R?"initial":$e,"--n-font-size":Le,"--n-padding":le||R?"initial":W?E:y,"--n-icon-size":q,"--n-icon-margin":ae,"--n-border-radius":R?"initial":le||W?$e:ne};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":I,"--n-bezier-ease-out":B,"--n-ripple-duration":S,"--n-opacity-disabled":M,"--n-wave-opacity":he},Te),Ie),je),ge)}),w=p?Nt("button",N(()=>{let k="";const{dashed:I,type:B,ghost:x,text:S,color:M,round:O,circle:Z,textColor:A,secondary:C,tertiary:z,quaternary:P,strong:R}=e;I&&(k+="a"),x&&(k+="b"),S&&(k+="c"),O&&(k+="d"),Z&&(k+="e"),C&&(k+="f"),z&&(k+="g"),P&&(k+="h"),R&&(k+="i"),M&&(k+="j"+ts(M)),A&&(k+="k"+ts(A));const{value:_}=a;return k+="l"+_[0],k+="m"+B[0],k}),T,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:h,mergedFocusable:s,mergedSize:a,showBorder:n,enterPressed:o,rtlEnabled:g,handleMousedown:l,handleKeydown:u,handleBlur:f,handleKeyup:d,handleClick:c,customColorCssVars:N(()=>{const{color:k}=e;if(!k)return null;const I=Mo(k);return{"--n-border-color":k,"--n-border-color-hover":I,"--n-border-color-pressed":wa(k),"--n-border-color-focus":I,"--n-border-color-disabled":k}}),cssVars:p?void 0:T,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;r==null||r();const o=Bt(this.$slots.default,n=>n&&b("span",{class:`${e}-button__content`},n));return b(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&o,b(Pd,{width:!0},{default:()=>Bt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&b("span",{class:`${e}-button__icon`,style:{margin:Vl(this.$slots.default)?"0":""}},b(Bs,null,{default:()=>this.loading?b(kd,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):b("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&o,this.text?null:b(Lk,{ref:"waveElRef",clsPrefix:e}),this.showBorder?b("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?b("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),kr=QT,e5={titleFontSize:"22px"},t5=e=>{const{borderRadius:t,fontSize:r,lineHeight:o,textColor2:n,textColor1:i,textColorDisabled:a,dividerColor:s,fontWeightStrong:l,primaryColor:c,baseColor:d,hoverColor:u,cardColor:f,modalColor:p,popoverColor:h}=e;return Object.assign(Object.assign({},e5),{borderRadius:t,borderColor:Re(f,s),borderColorModal:Re(p,s),borderColorPopover:Re(h,s),textColor:n,titleFontWeight:l,titleTextColor:i,dayTextColor:a,fontSize:r,lineHeight:o,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:Re(f,u),cellColorHoverModal:Re(p,u),cellColorHoverPopover:Re(h,u),cellColor:f,cellColorModal:p,cellColorPopover:h,barColor:c})},r5={name:"Calendar",common:me,peers:{Button:lr},self:t5},o5=r5,n5=e=>{const{fontSize:t,boxShadow2:r,popoverColor:o,textColor2:n,borderRadius:i,borderColor:a,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:r,color:o,textColor:n,borderRadius:i,border:`1px solid ${a}`,heightSmall:s,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,dividerColor:p}},i5={name:"ColorPicker",common:me,peers:{Input:Sr,Button:lr},self:n5},a5=i5,s5={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"},gg=e=>{const{primaryColor:t,borderRadius:r,lineHeight:o,fontSize:n,cardColor:i,textColor2:a,textColor1:s,dividerColor:l,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:h,modalColor:m,boxShadow1:v,popoverColor:g,actionColor:T}=e;return Object.assign(Object.assign({},s5),{lineHeight:o,color:i,colorModal:m,colorPopover:g,colorTarget:t,colorEmbedded:T,colorEmbeddedModal:T,colorEmbeddedPopover:T,textColor:a,titleTextColor:s,borderColor:l,actionColor:T,titleFontWeight:c,closeColorHover:p,closeColorPressed:h,closeBorderRadius:r,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:v,borderRadius:r})},l5={name:"Card",common:Wt,self:gg},c5=l5,d5={name:"Card",common:me,self(e){const t=gg(e),{cardColor:r,modalColor:o,popoverColor:n}=e;return t.colorEmbedded=r,t.colorEmbeddedModal=o,t.colorEmbeddedPopover=n,t}},vg=d5,u5=H([L("card",` + font-size: var(--n-font-size); + line-height: var(--n-line-height); + display: flex; + flex-direction: column; + width: 100%; + box-sizing: border-box; + position: relative; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + color: var(--n-text-color); + word-break: break-word; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[dC({background:"var(--n-color-modal)"}),G("hoverable",[H("&:hover","box-shadow: var(--n-box-shadow);")]),G("content-segmented",[H(">",[V("content",{paddingTop:"var(--n-padding-bottom)"})])]),G("content-soft-segmented",[H(">",[V("content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `)])]),G("footer-segmented",[H(">",[V("footer",{paddingTop:"var(--n-padding-bottom)"})])]),G("footer-soft-segmented",[H(">",[V("footer",` + padding: var(--n-padding-bottom) 0; + margin: 0 var(--n-padding-left); + `)])]),H(">",[L("card-header",` + box-sizing: border-box; + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + padding: + var(--n-padding-top) + var(--n-padding-left) + var(--n-padding-bottom) + var(--n-padding-left); + `,[V("main",` + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + min-width: 0; + color: var(--n-title-text-color); + `),V("extra",` + display: flex; + align-items: center; + font-size: var(--n-font-size); + font-weight: 400; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),V("close",` + margin: 0 0 0 8px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),V("action",` + box-sizing: border-box; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + background-clip: padding-box; + background-color: var(--n-action-color); + `),V("content","flex: 1; min-width: 0;"),V("content, footer",` + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); + `,[H("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),V("action",` + background-color: var(--n-action-color); + padding: var(--n-padding-bottom) var(--n-padding-left); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `)]),L("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + `,[H("img",` + display: block; + width: 100%; + `)]),G("bordered",` + border: 1px solid var(--n-border-color); + `,[H("&:target","border-color: var(--n-color-target);")]),G("action-segmented",[H(">",[V("action",[H("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),G("content-segmented, content-soft-segmented",[H(">",[V("content",{transition:"border-color 0.3s var(--n-bezier)"},[H("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),G("footer-segmented, footer-soft-segmented",[H(">",[V("footer",{transition:"border-color 0.3s var(--n-bezier)"},[H("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),G("embedded",` + background-color: var(--n-color-embedded); + `)]),Jp(L("card",` + background: var(--n-color-modal); + `,[G("embedded",` + background-color: var(--n-color-embedded-modal); + `)])),Zp(L("card",` + background: var(--n-color-popover); + `,[G("embedded",` + background-color: var(--n-color-embedded-popover); + `)]))]),f5={title:String,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},h5=Object.assign(Object.assign({},We.props),f5),p5=ye({name:"Card",props:h5,setup(e){const t=()=>{const{onClose:c}=e;c&&Ue(c)},{inlineThemeDisabled:r,mergedClsPrefixRef:o,mergedRtlRef:n}=St(e),i=We("Card","-card",u5,c5,e,o),a=Po("Card",n,o),s=N(()=>{const{size:c}=e,{self:{color:d,colorModal:u,colorTarget:f,textColor:p,titleTextColor:h,titleFontWeight:m,borderColor:v,actionColor:g,borderRadius:T,lineHeight:w,closeIconColor:k,closeIconColorHover:I,closeIconColorPressed:B,closeColorHover:x,closeColorPressed:S,closeBorderRadius:M,closeIconSize:O,closeSize:Z,boxShadow:A,colorPopover:C,colorEmbedded:z,colorEmbeddedModal:P,colorEmbeddedPopover:R,[ve("padding",c)]:_,[ve("fontSize",c)]:W,[ve("titleFontSize",c)]:le},common:{cubicBezierEaseInOut:ie}}=i.value,{top:X,left:re,bottom:J}=Rs(_);return{"--n-bezier":ie,"--n-border-radius":T,"--n-color":d,"--n-color-modal":u,"--n-color-popover":C,"--n-color-embedded":z,"--n-color-embedded-modal":P,"--n-color-embedded-popover":R,"--n-color-target":f,"--n-text-color":p,"--n-line-height":w,"--n-action-color":g,"--n-title-text-color":h,"--n-title-font-weight":m,"--n-close-icon-color":k,"--n-close-icon-color-hover":I,"--n-close-icon-color-pressed":B,"--n-close-color-hover":x,"--n-close-color-pressed":S,"--n-border-color":v,"--n-box-shadow":A,"--n-padding-top":X,"--n-padding-bottom":J,"--n-padding-left":re,"--n-font-size":W,"--n-title-font-size":le,"--n-close-size":Z,"--n-close-icon-size":O,"--n-close-border-radius":M}}),l=r?Nt("card",N(()=>e.size[0]),s,e):void 0;return{rtlEnabled:a,mergedClsPrefix:o,mergedTheme:i,handleCloseClick:t,cssVars:r?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:o,rtlEnabled:n,onRender:i,embedded:a,tag:s,$slots:l}=this;return i==null||i(),b(s,{class:[`${o}-card`,this.themeClass,a&&`${o}-card--embedded`,{[`${o}-card--rtl`]:n,[`${o}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${o}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${o}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:r}],style:this.cssVars,role:this.role},Bt(l.cover,c=>c&&b("div",{class:`${o}-card-cover`,role:"none"},c)),Bt(l.header,c=>c||this.title||this.closable?b("div",{class:[`${o}-card-header`,this.headerClass],style:this.headerStyle},b("div",{class:`${o}-card-header__main`,role:"heading"},c||this.title),Bt(l["header-extra"],d=>d&&b("div",{class:[`${o}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},d)),this.closable?b(Fs,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),Bt(l.default,c=>c&&b("div",{class:[`${o}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},c)),Bt(l.footer,c=>c&&[b("div",{class:[`${o}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},c)]),Bt(l.action,c=>c&&b("div",{class:`${o}-card__action`,role:"none"},c)))}}),m5=e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}),g5={name:"Carousel",common:me,self:m5},v5=g5,b5={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},x5=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:o,modalColor:n,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:h}=e;return Object.assign(Object.assign({},b5),{labelLineHeight:h,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:l,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:o,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${fe(l,{alpha:.3})}`,textColor:c,textColorDisabled:a})},y5={name:"Checkbox",common:me,self(e){const{cardColor:t}=e,r=x5(e);return r.color="#0000",r.checkMarkColor=t,r}},Yn=y5,C5=e=>{const{borderRadius:t,boxShadow2:r,popoverColor:o,textColor2:n,textColor3:i,primaryColor:a,textColorDisabled:s,dividerColor:l,hoverColor:c,fontSizeMedium:d,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:o,menuBoxShadow:r,menuDividerColor:l,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:d,optionColorHover:c,optionTextColor:n,optionTextColorActive:a,optionTextColorDisabled:s,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}},S5={name:"Cascader",common:me,peers:{InternalSelectMenu:Zi,InternalSelection:Ed,Scrollbar:sr,Checkbox:Yn,Empty:$k},self:C5},w5=S5,_5={name:"Code",common:me,self(e){const{textColor2:t,fontSize:r,fontWeightStrong:o,textColor3:n}=e;return{textColor:t,fontSize:r,fontWeightStrong:o,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}},bg=_5,P5=e=>{const{fontWeight:t,textColor1:r,textColor2:o,textColorDisabled:n,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:r,titleTextColorDisabled:n,fontSize:a,textColor:o,arrowColor:o,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}},k5={name:"Collapse",common:me,self:P5},T5=k5,$5=e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}},R5={name:"CollapseTransition",common:me,self:$5},I5=R5,E5={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:{type:String,default:ls},locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Jo("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},z5=ye({name:"ConfigProvider",alias:["App"],props:E5,setup(e){const t=Oe(Co,null),r=N(()=>{const{theme:h}=e;if(h===null)return;const m=t==null?void 0:t.mergedThemeRef.value;return h===void 0?m:m===void 0?h:Object.assign({},m,h)}),o=N(()=>{const{themeOverrides:h}=e;if(h!==null){if(h===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const m=t==null?void 0:t.mergedThemeOverridesRef.value;return m===void 0?h:ci({},m,h)}}}),n=jt(()=>{const{namespace:h}=e;return h===void 0?t==null?void 0:t.mergedNamespaceRef.value:h}),i=jt(()=>{const{bordered:h}=e;return h===void 0?t==null?void 0:t.mergedBorderedRef.value:h}),a=N(()=>{const{icons:h}=e;return h===void 0?t==null?void 0:t.mergedIconsRef.value:h}),s=N(()=>{const{componentOptions:h}=e;return h!==void 0?h:t==null?void 0:t.mergedComponentPropsRef.value}),l=N(()=>{const{clsPrefix:h}=e;return h!==void 0?h:t?t.mergedClsPrefixRef.value:ls}),c=N(()=>{var h;const{rtl:m}=e;if(m===void 0)return t==null?void 0:t.mergedRtlRef.value;const v={};for(const g of m)v[g.name]=Mn(g),(h=g.peers)===null||h===void 0||h.forEach(T=>{T.name in v||(v[T.name]=Mn(T))});return v}),d=N(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),u=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),f=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),p=N(()=>{const{value:h}=r,{value:m}=o,v=m&&Object.keys(m).length!==0,g=h==null?void 0:h.name;return g?v?`${g}-${zi(JSON.stringify(o.value))}`:g:v?zi(JSON.stringify(o.value)):""});return nt(Co,{mergedThemeHashRef:p,mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:s,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:l,mergedLocaleRef:N(()=>{const{locale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedLocaleRef.value:h}),mergedDateLocaleRef:N(()=>{const{dateLocale:h}=e;if(h!==null)return h===void 0?t==null?void 0:t.mergedDateLocaleRef.value:h}),mergedHljsRef:N(()=>{const{hljs:h}=e;return h===void 0?t==null?void 0:t.mergedHljsRef.value:h}),mergedKatexRef:N(()=>{const{katex:h}=e;return h===void 0?t==null?void 0:t.mergedKatexRef.value:h}),mergedThemeRef:r,mergedThemeOverridesRef:o,inlineThemeDisabled:u||!1,preflightStyleDisabled:f||!1}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:n,mergedTheme:r,mergedThemeOverrides:o}},render(){var e,t,r,o;return this.abstract?(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r):b(this.as||this.tag,{class:`${this.mergedClsPrefix||ls}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),M5={name:"Popselect",common:me,peers:{Popover:ln,InternalSelectMenu:Zi}},xg=M5;function A5(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const O5={name:"Select",common:me,peers:{InternalSelection:Ed,InternalSelectMenu:Zi},self:A5},yg=O5,D5={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"},B5=e=>{const{textColor2:t,primaryColor:r,primaryColorHover:o,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:a,borderColor:s,borderRadius:l,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:u,heightTiny:f,heightSmall:p,heightMedium:h}=e;return Object.assign(Object.assign({},D5),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:o,itemTextColorPressed:n,itemTextColorActive:r,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${r}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:l,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:u,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:a})},F5={name:"Pagination",common:me,peers:{Select:yg,Input:Sr,Popselect:xg},self(e){const{primaryColor:t,opacity3:r}=e,o=fe(t,{alpha:Number(r)}),n=B5(e);return n.itemBorderActive=`1px solid ${o}`,n.itemBorderDisabled="1px solid #0000",n}},Cg=F5,Sg={padding:"8px 14px"},L5={name:"Tooltip",common:me,peers:{Popover:ln},self(e){const{borderRadius:t,boxShadow2:r,popoverColor:o,textColor2:n}=e;return Object.assign(Object.assign({},Sg),{borderRadius:t,boxShadow:r,color:o,textColor:n})}},Hs=L5,H5=e=>{const{borderRadius:t,boxShadow2:r,baseColor:o}=e;return Object.assign(Object.assign({},Sg),{borderRadius:t,boxShadow:r,color:Re(o,"rgba(0, 0, 0, .85)"),textColor:o})},j5={name:"Tooltip",common:Wt,peers:{Popover:Id},self:H5},wg=j5,N5={name:"Ellipsis",common:me,peers:{Tooltip:Hs}},_g=N5,W5={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},V5={name:"Radio",common:me,self(e){const{borderColor:t,primaryColor:r,baseColor:o,textColorDisabled:n,inputColorDisabled:i,textColor2:a,opacityDisabled:s,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:p,heightLarge:h,lineHeight:m}=e;return Object.assign(Object.assign({},W5),{labelLineHeight:m,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${r}`,boxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${fe(r,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${r}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:n,dotColorActive:r,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:r,buttonBorderColorHover:r,buttonColor:"#0000",buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:o,buttonTextColorHover:r,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${r}, 0 0 0 2px ${fe(r,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${r}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},Pg=V5,U5={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},kg=e=>{const{primaryColor:t,textColor2:r,dividerColor:o,hoverColor:n,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:f,heightMedium:p,heightLarge:h,heightHuge:m,textColor3:v,opacityDisabled:g}=e;return Object.assign(Object.assign({},U5),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:h,optionHeightHuge:m,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:r,optionTextColorHover:r,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:r,prefixColor:r,optionColorHover:n,optionColorActive:fe(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:g})},Tg={name:"Dropdown",common:Wt,peers:{Popover:Id},self:kg},K5={name:"Dropdown",common:me,peers:{Popover:ln},self(e){const{primaryColorSuppl:t,primaryColor:r,popoverColor:o}=e,n=kg(e);return n.colorInverted=o,n.optionColorActive=fe(r,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},zd=K5,q5={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"},G5=e=>{const{cardColor:t,modalColor:r,popoverColor:o,textColor2:n,textColor1:i,tableHeaderColor:a,tableColorHover:s,iconColor:l,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:f,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:m,dividerColor:v,heightSmall:g,opacityDisabled:T,tableColorStriped:w}=e;return Object.assign(Object.assign({},q5),{actionDividerColor:v,lineHeight:f,borderRadius:u,fontSizeSmall:p,fontSizeMedium:h,fontSizeLarge:m,borderColor:Re(t,v),tdColorHover:Re(t,s),tdColorStriped:Re(t,w),thColor:Re(t,a),thColorHover:Re(Re(t,a),s),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:d,thButtonColorHover:s,thIconColor:l,thIconColorActive:c,borderColorModal:Re(r,v),tdColorHoverModal:Re(r,s),tdColorStripedModal:Re(r,w),thColorModal:Re(r,a),thColorHoverModal:Re(Re(r,a),s),tdColorModal:r,borderColorPopover:Re(o,v),tdColorHoverPopover:Re(o,s),tdColorStripedPopover:Re(o,w),thColorPopover:Re(o,a),thColorHoverPopover:Re(Re(o,a),s),tdColorPopover:o,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:g,opacityLoading:T})},Y5={name:"DataTable",common:me,peers:{Button:lr,Checkbox:Yn,Radio:Pg,Pagination:Cg,Scrollbar:sr,Empty:sn,Popover:ln,Ellipsis:_g,Dropdown:zd},self(e){const t=G5(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}},X5=Y5,J5=Object.assign(Object.assign({},Ls),We.props),ds=ye({name:"Tooltip",props:J5,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=St(e),r=We("Tooltip","-tooltip",void 0,wg,e,t),o=Y(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(i){o.value.setShow(i)}}),{popoverRef:o,mergedTheme:r,popoverThemeOverrides:N(()=>r.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return b(sg,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),$g=ye({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return b("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Rg=e=>{const{textColorBase:t,opacity1:r,opacity2:o,opacity3:n,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:r,opacity2Depth:o,opacity3Depth:n,opacity4Depth:i,opacity5Depth:a}},Z5={name:"Icon",common:Wt,self:Rg},Q5=Z5,e$={name:"Icon",common:me,self:Rg},t$=e$,r$=L("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[G("color-transition",{transition:"color .3s var(--n-bezier)"}),G("depth",{color:"var(--n-color)"},[H("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),H("svg",{height:"1em",width:"1em"})]),o$=Object.assign(Object.assign({},We.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),Kr=ye({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:o$,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=St(e),o=We("Icon","-icon",r$,Q5,e,t),n=N(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:s},self:l}=o.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:d}=l;return{"--n-bezier":s,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":s,"--n-color":"","--n-opacity":""}}),i=r?Nt("icon",N(()=>`${e.depth||"d"}`),n,e):void 0;return{mergedClsPrefix:t,mergedStyle:N(()=>{const{size:a,color:s}=e;return{fontSize:qo(a),color:s}}),cssVars:r?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:r,mergedClsPrefix:o,component:n,onRender:i,themeClass:a}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&Jo("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),b("i",Nn(this.$attrs,{role:"img",class:[`${o}-icon`,a,{[`${o}-icon--depth`]:r,[`${o}-icon--color-transition`]:r!==void 0}],style:[this.cssVars,this.mergedStyle]}),n?b(n):this.$slots)}}),Md="n-dropdown-menu",js="n-dropdown",Wf="n-dropdown-option";function sc(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function n$(e){return e.type==="group"}function Ig(e){return e.type==="divider"}function i$(e){return e.type==="render"}const Eg=ye({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Oe(js),{hoverKeyRef:r,keyboardKeyRef:o,lastToggledSubmenuKeyRef:n,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:l,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:f,renderOptionRef:p,nodePropsRef:h,menuPropsRef:m}=t,v=Oe(Wf,null),g=Oe(Md),T=Oe(Ms),w=N(()=>e.tmNode.rawNode),k=N(()=>{const{value:_}=f;return sc(e.tmNode.rawNode,_)}),I=N(()=>{const{disabled:_}=e.tmNode;return _}),B=N(()=>{if(!k.value)return!1;const{key:_,disabled:W}=e.tmNode;if(W)return!1;const{value:le}=r,{value:ie}=o,{value:X}=n,{value:re}=i;return le!==null?re.includes(_):ie!==null?re.includes(_)&&re[re.length-1]!==_:X!==null?re.includes(_):!1}),x=N(()=>o.value===null&&!s.value),S=pC(B,300,x),M=N(()=>!!(v!=null&&v.enteringSubmenuRef.value)),O=Y(!1);nt(Wf,{enteringSubmenuRef:O});function Z(){O.value=!0}function A(){O.value=!1}function C(){const{parentKey:_,tmNode:W}=e;W.disabled||l.value&&(n.value=_,o.value=null,r.value=W.key)}function z(){const{tmNode:_}=e;_.disabled||l.value&&r.value!==_.key&&C()}function P(_){if(e.tmNode.disabled||!l.value)return;const{relatedTarget:W}=_;W&&!Bu({target:W},"dropdownOption")&&!Bu({target:W},"scrollbarRail")&&(r.value=null)}function R(){const{value:_}=k,{tmNode:W}=e;l.value&&!_&&!W.disabled&&(t.doSelect(W.key,W.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:g.showIconRef,siblingHasSubmenu:g.hasSubmenuRef,menuProps:m,popoverBody:T,animated:s,mergedShowSubmenu:N(()=>S.value&&!M.value),rawNode:w,hasSubmenu:k,pending:jt(()=>{const{value:_}=i,{key:W}=e.tmNode;return _.includes(W)}),childActive:jt(()=>{const{value:_}=a,{key:W}=e.tmNode,le=_.findIndex(ie=>W===ie);return le===-1?!1:le<_.length-1}),active:jt(()=>{const{value:_}=a,{key:W}=e.tmNode,le=_.findIndex(ie=>W===ie);return le===-1?!1:le===_.length-1}),mergedDisabled:I,renderOption:p,nodeProps:h,handleClick:R,handleMouseMove:z,handleMouseEnter:C,handleMouseLeave:P,handleSubmenuBeforeEnter:Z,handleSubmenuAfterEnter:A}},render(){var e,t;const{animated:r,rawNode:o,mergedShowSubmenu:n,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:s,renderLabel:l,renderIcon:c,renderOption:d,nodeProps:u,props:f,scrollable:p}=this;let h=null;if(n){const T=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,o,o.children);h=b(zg,Object.assign({},T,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const m={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},v=u==null?void 0:u(o),g=b("div",Object.assign({class:[`${i}-dropdown-option`,v==null?void 0:v.class],"data-dropdown-option":!0},v),b("div",Nn(m,f),[b("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(o):Lt(o.icon)]),b("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(o):Lt((t=o[this.labelField])!==null&&t!==void 0?t:o.title)),b("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?b(Kr,null,{default:()=>b(FP,null)}):null)]),this.hasSubmenu?b(sd,null,{default:()=>[b(ld,null,{default:()=>b("div",{class:`${i}-dropdown-offset-container`},b(cd,{show:this.mergedShowSubmenu,placement:this.placement,to:p&&this.popoverBody||void 0,teleportDisabled:!p},{default:()=>b("div",{class:`${i}-dropdown-menu-wrapper`},r?b($r,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return d?d({node:g,option:o}):g}}),a$=ye({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Oe(Md),{renderLabelRef:r,labelFieldRef:o,nodePropsRef:n,renderOptionRef:i}=Oe(js);return{labelField:o,showIcon:e,hasSubmenu:t,renderLabel:r,nodeProps:n,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:r,showIcon:o,nodeProps:n,renderLabel:i,renderOption:a}=this,{rawNode:s}=this.tmNode,l=b("div",Object.assign({class:`${t}-dropdown-option`},n==null?void 0:n(s)),b("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},b("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,o&&`${t}-dropdown-option-body__prefix--show-icon`]},Lt(s.icon)),b("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):Lt((e=s.title)!==null&&e!==void 0?e:s[this.labelField])),b("div",{class:[`${t}-dropdown-option-body__suffix`,r&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:l,option:s}):l}}),s$=ye({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:r}=this,{children:o}=e;return b(st,null,b(a$,{clsPrefix:r,tmNode:e,key:e.key}),o==null?void 0:o.map(n=>{const{rawNode:i}=n;return i.show===!1?null:Ig(i)?b($g,{clsPrefix:r,key:n.key}):n.isGroup?(Jo("dropdown","`group` node is not allowed to be put in `group` node."),null):b(Eg,{clsPrefix:r,tmNode:n,parentKey:t,key:n.key})}))}}),l$=ye({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return b("div",t,[e==null?void 0:e()])}}),zg=ye({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:r}=Oe(js);nt(Md,{showIconRef:N(()=>{const n=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>n?n(l):l.icon);const{rawNode:s}=i;return n?n(s):s.icon})}),hasSubmenuRef:N(()=>{const{value:n}=r;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:l})=>sc(l,n));const{rawNode:s}=i;return sc(s,n)})})});const o=Y(null);return nt(id,null),nt(ad,null),nt(Ms,o),{bodyRef:o}},render(){const{parentKey:e,clsPrefix:t,scrollable:r}=this,o=this.tmNodes.map(n=>{const{rawNode:i}=n;return i.show===!1?null:i$(i)?b(l$,{tmNode:n,key:n.key}):Ig(i)?b($g,{clsPrefix:t,key:n.key}):n$(i)?b(s$,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key}):b(Eg,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key,props:i.props,scrollable:r})});return b("div",{class:[`${t}-dropdown-menu`,r&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},r?b(og,{contentClass:`${t}-dropdown-menu__content`},{default:()=>o}):o,this.showArrow?ag({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),c$=L("dropdown-menu",` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[ic(),L("dropdown-option",` + position: relative; + `,[H("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[H("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),L("dropdown-option-body",` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[H("&::before",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),xt("disabled",[G("pending",` + color: var(--n-option-text-color-hover); + `,[V("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),H("&::before","background-color: var(--n-option-color-hover);")]),G("active",` + color: var(--n-option-text-color-active); + `,[V("prefix, suffix",` + color: var(--n-option-text-color-active); + `),H("&::before","background-color: var(--n-option-color-active);")]),G("child-active",` + color: var(--n-option-text-color-child-active); + `,[V("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),G("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),G("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[V("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[G("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),V("prefix",` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[G("show-icon",` + width: var(--n-option-icon-prefix-width); + `),L("icon",` + font-size: var(--n-option-icon-size); + `)]),V("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),V("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[G("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),L("icon",` + font-size: var(--n-option-icon-size); + `)]),L("dropdown-menu","pointer-events: all;")]),L("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),L("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),L("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),H(">",[L("scrollbar",` + height: inherit; + max-height: inherit; + `)]),xt("scrollable",` + padding: var(--n-padding); + `),G("scrollable",[V("content",` + padding: var(--n-padding); + `)])]),d$={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},u$=Object.keys(Ls),f$=Object.assign(Object.assign(Object.assign({},Ls),d$),We.props),Mg=ye({name:"Dropdown",inheritAttrs:!1,props:f$,setup(e){const t=Y(!1),r=Fn(tt(e,"show"),t),o=N(()=>{const{keyField:A,childrenField:C}=e;return Aa(e.options,{getKey(z){return z[A]},getDisabled(z){return z.disabled===!0},getIgnored(z){return z.type==="divider"||z.type==="render"},getChildren(z){return z[C]}})}),n=N(()=>o.value.treeNodes),i=Y(null),a=Y(null),s=Y(null),l=N(()=>{var A,C,z;return(z=(C=(A=i.value)!==null&&A!==void 0?A:a.value)!==null&&C!==void 0?C:s.value)!==null&&z!==void 0?z:null}),c=N(()=>o.value.getPath(l.value).keyPath),d=N(()=>o.value.getPath(e.value).keyPath),u=jt(()=>e.keyboard&&r.value);TC({keydown:{ArrowUp:{prevent:!0,handler:I},ArrowRight:{prevent:!0,handler:k},ArrowDown:{prevent:!0,handler:B},ArrowLeft:{prevent:!0,handler:w},Enter:{prevent:!0,handler:x},Escape:T}},u);const{mergedClsPrefixRef:f,inlineThemeDisabled:p}=St(e),h=We("Dropdown","-dropdown",c$,Tg,e,f);nt(js,{labelFieldRef:tt(e,"labelField"),childrenFieldRef:tt(e,"childrenField"),renderLabelRef:tt(e,"renderLabel"),renderIconRef:tt(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:tt(e,"animated"),mergedShowRef:r,nodePropsRef:tt(e,"nodeProps"),renderOptionRef:tt(e,"renderOption"),menuPropsRef:tt(e,"menuProps"),doSelect:m,doUpdateShow:v}),Xe(r,A=>{!e.animated&&!A&&g()});function m(A,C){const{onSelect:z}=e;z&&Ue(z,A,C)}function v(A){const{"onUpdate:show":C,onUpdateShow:z}=e;C&&Ue(C,A),z&&Ue(z,A),t.value=A}function g(){i.value=null,a.value=null,s.value=null}function T(){v(!1)}function w(){M("left")}function k(){M("right")}function I(){M("up")}function B(){M("down")}function x(){const A=S();A!=null&&A.isLeaf&&r.value&&(m(A.key,A.rawNode),v(!1))}function S(){var A;const{value:C}=o,{value:z}=l;return!C||z===null?null:(A=C.getNode(z))!==null&&A!==void 0?A:null}function M(A){const{value:C}=l,{value:{getFirstAvailableNode:z}}=o;let P=null;if(C===null){const R=z();R!==null&&(P=R.key)}else{const R=S();if(R){let _;switch(A){case"down":_=R.getNext();break;case"up":_=R.getPrev();break;case"right":_=R.getChild();break;case"left":_=R.getParent();break}_&&(P=_.key)}}P!==null&&(i.value=null,a.value=P)}const O=N(()=>{const{size:A,inverted:C}=e,{common:{cubicBezierEaseInOut:z},self:P}=h.value,{padding:R,dividerColor:_,borderRadius:W,optionOpacityDisabled:le,[ve("optionIconSuffixWidth",A)]:ie,[ve("optionSuffixWidth",A)]:X,[ve("optionIconPrefixWidth",A)]:re,[ve("optionPrefixWidth",A)]:J,[ve("fontSize",A)]:Se,[ve("optionHeight",A)]:Te,[ve("optionIconSize",A)]:Ie}=P,de={"--n-bezier":z,"--n-font-size":Se,"--n-padding":R,"--n-border-radius":W,"--n-option-height":Te,"--n-option-prefix-width":J,"--n-option-icon-prefix-width":re,"--n-option-suffix-width":X,"--n-option-icon-suffix-width":ie,"--n-option-icon-size":Ie,"--n-divider-color":_,"--n-option-opacity-disabled":le};return C?(de["--n-color"]=P.colorInverted,de["--n-option-color-hover"]=P.optionColorHoverInverted,de["--n-option-color-active"]=P.optionColorActiveInverted,de["--n-option-text-color"]=P.optionTextColorInverted,de["--n-option-text-color-hover"]=P.optionTextColorHoverInverted,de["--n-option-text-color-active"]=P.optionTextColorActiveInverted,de["--n-option-text-color-child-active"]=P.optionTextColorChildActiveInverted,de["--n-prefix-color"]=P.prefixColorInverted,de["--n-suffix-color"]=P.suffixColorInverted,de["--n-group-header-text-color"]=P.groupHeaderTextColorInverted):(de["--n-color"]=P.color,de["--n-option-color-hover"]=P.optionColorHover,de["--n-option-color-active"]=P.optionColorActive,de["--n-option-text-color"]=P.optionTextColor,de["--n-option-text-color-hover"]=P.optionTextColorHover,de["--n-option-text-color-active"]=P.optionTextColorActive,de["--n-option-text-color-child-active"]=P.optionTextColorChildActive,de["--n-prefix-color"]=P.prefixColor,de["--n-suffix-color"]=P.suffixColor,de["--n-group-header-text-color"]=P.groupHeaderTextColor),de}),Z=p?Nt("dropdown",N(()=>`${e.size[0]}${e.inverted?"i":""}`),O,e):void 0;return{mergedClsPrefix:f,mergedTheme:h,tmNodes:n,mergedShow:r,handleAfterLeave:()=>{e.animated&&g()},doUpdateShow:v,cssVars:p?void 0:O,themeClass:Z==null?void 0:Z.themeClass,onRender:Z==null?void 0:Z.onRender}},render(){const e=(o,n,i,a,s)=>{var l;const{mergedClsPrefix:c,menuProps:d}=this;(l=this.onRender)===null||l===void 0||l.call(this);const u=(d==null?void 0:d(void 0,this.tmNodes.map(p=>p.rawNode)))||{},f={ref:jy(n),class:[o,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:s};return b(zg,Nn(this.$attrs,f,u))},{mergedTheme:t}=this,r={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return b(sg,Object.assign({},kn(this.$props,u$),r),{trigger:()=>{var o,n;return(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o)}})}}),h$={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"},p$=e=>{const{popoverColor:t,textColor2:r,primaryColor:o,hoverColor:n,dividerColor:i,opacityDisabled:a,boxShadow2:s,borderRadius:l,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},h$),{panelColor:t,panelBoxShadow:s,panelDividerColor:i,itemTextColor:r,itemTextColorActive:o,itemColorHover:n,itemOpacityDisabled:a,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:d})},m$={name:"TimePicker",common:me,peers:{Scrollbar:sr,Button:lr,Input:Sr},self:p$},Ag=m$,g$={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"},v$=e=>{const{hoverColor:t,fontSize:r,textColor2:o,textColorDisabled:n,popoverColor:i,primaryColor:a,borderRadiusSmall:s,iconColor:l,iconColorDisabled:c,textColor1:d,dividerColor:u,boxShadow2:f,borderRadius:p,fontWeightStrong:h}=e;return Object.assign(Object.assign({},g$),{itemFontSize:r,calendarDaysFontSize:r,calendarTitleFontSize:r,itemTextColor:o,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:fe(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:s,panelColor:i,panelTextColor:o,arrowColor:l,calendarTitleTextColor:d,calendarTitleColorHover:t,calendarDaysTextColor:o,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:h,scrollItemBorderRadius:p,iconColor:l,iconColorDisabled:c})},b$={name:"DatePicker",common:me,peers:{Input:Sr,Button:lr,TimePicker:Ag,Scrollbar:sr},self(e){const{popoverColor:t,hoverColor:r,primaryColor:o}=e,n=v$(e);return n.itemColorDisabled=Re(t,r),n.itemColorIncluded=fe(o,{alpha:.15}),n.itemColorHover=Re(t,r),n}},x$=b$;function y$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const C$={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"},S$=e=>{const{tableHeaderColor:t,textColor2:r,textColor1:o,cardColor:n,modalColor:i,popoverColor:a,dividerColor:s,borderRadius:l,fontWeightStrong:c,lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},C$),{lineHeight:d,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:o,thColor:Re(n,t),thColorModal:Re(i,t),thColorPopover:Re(a,t),thTextColor:o,thFontWeight:c,tdTextColor:r,tdColor:n,tdColorModal:i,tdColorPopover:a,borderColor:Re(n,s),borderColorModal:Re(i,s),borderColorPopover:Re(a,s),borderRadius:l})},w$={name:"Descriptions",common:me,self:S$},_$=w$,P$={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"},k$=e=>{const{textColor1:t,textColor2:r,modalColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,infoColor:c,successColor:d,warningColor:u,errorColor:f,primaryColor:p,dividerColor:h,borderRadius:m,fontWeightStrong:v,lineHeight:g,fontSize:T}=e;return Object.assign(Object.assign({},P$),{fontSize:T,lineHeight:g,border:`1px solid ${h}`,titleTextColor:t,textColor:r,color:o,closeColorHover:s,closeColorPressed:l,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:m,iconColor:p,iconColorInfo:c,iconColorSuccess:d,iconColorWarning:u,iconColorError:f,borderRadius:m,titleFontWeight:v})},T$={name:"Dialog",common:me,peers:{Button:lr},self:k$},Og=T$,$$=e=>{const{modalColor:t,textColor2:r,boxShadow3:o}=e;return{color:t,textColor:r,boxShadow:o}},R$={name:"Modal",common:me,peers:{Scrollbar:sr,Dialog:Og,Card:vg},self:$$},I$=R$,E$=e=>{const{textColor1:t,dividerColor:r,fontWeightStrong:o}=e;return{textColor:t,color:r,fontWeight:o}},z$={name:"Divider",common:me,self:E$},M$=z$,A$=e=>{const{modalColor:t,textColor1:r,textColor2:o,boxShadow3:n,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,borderRadius:p,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:o,titleTextColor:r,titleFontSize:"18px",titleFontWeight:a,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:p,resizableTriggerColorHover:h}},O$={name:"Drawer",common:me,peers:{Scrollbar:sr},self:A$},D$=O$,B$={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},F$={name:"DynamicInput",common:me,peers:{Input:Sr,Button:lr},self(){return B$}},L$=F$,H$={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},j$={name:"Space",self(){return H$}},Dg=j$,N$={name:"DynamicTags",common:me,peers:{Input:Sr,Button:lr,Tag:cg,Space:Dg},self(){return{inputWidth:"64px"}}},W$=N$,V$={name:"Element",common:me},U$=V$,Bg={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},K$={name:"Flex",self(){return Bg}},q$=K$,G$=()=>Bg,Y$={name:"Flex",self:G$},X$=Y$,J$=Object.assign(Object.assign({},We.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),Qi=ye({name:"Flex",props:J$,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=St(e),o=We("Flex","-flex",void 0,X$,e,t);return{rtlEnabled:Po("Flex",r,t),mergedClsPrefix:t,margin:N(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ve("gap",i)]:a}}=o.value,{row:s,col:l}=Ey(a);return{horizontal:Fu(l),vertical:Fu(s)}})}},render(){const{vertical:e,reverse:t,align:r,inline:o,justify:n,margin:i,wrap:a,mergedClsPrefix:s,rtlEnabled:l}=this,c=es(Hy(this),!1);return c.length?b("div",{role:"none",class:[`${s}-flex`,l&&`${s}-flex--rtl`],style:{display:o?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:n,flexWrap:!a||e?"nowrap":"wrap",alignItems:r,gap:`${i.vertical}px ${i.horizontal}px`}},c):null}}),Z$={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"},Fg=e=>{const{heightSmall:t,heightMedium:r,heightLarge:o,textColor1:n,errorColor:i,warningColor:a,lineHeight:s,textColor3:l}=e;return Object.assign(Object.assign({},Z$),{blankHeightSmall:t,blankHeightMedium:r,blankHeightLarge:o,lineHeight:s,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:l})},Q$={name:"Form",common:Wt,self:Fg},Lg=Q$,e3={name:"Form",common:me,self:Fg},t3=e3,r3=L("form",[G("inline",` + width: 100%; + display: inline-flex; + align-items: flex-start; + align-content: space-around; + `,[L("form-item",{width:"auto",marginRight:"18px"},[H("&:last-child",{marginRight:0})])])]),ea="n-form",Hg="n-form-item-insts";var o3=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(d){try{c(o.next(d))}catch(u){a(u)}}function l(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(s,l)}c((o=o.apply(e,t||[])).next())})};const n3=Object.assign(Object.assign({},We.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),i3=ye({name:"Form",props:n3,setup(e){const{mergedClsPrefixRef:t}=St(e);We("Form","-form",r3,Lg,e,t);const r={},o=Y(void 0),n=l=>{const c=o.value;(c===void 0||l>=c)&&(o.value=l)};function i(l,c=()=>!0){return o3(this,void 0,void 0,function*(){return yield new Promise((d,u)=>{const f=[];for(const p of Bn(r)){const h=r[p];for(const m of h)m.path&&f.push(m.internalValidate(null,c))}Promise.all(f).then(p=>{const h=p.some(g=>!g.valid),m=[],v=[];p.forEach(g=>{var T,w;!((T=g.errors)===null||T===void 0)&&T.length&&m.push(g.errors),!((w=g.warnings)===null||w===void 0)&&w.length&&v.push(g.warnings)}),l&&l(m.length?m:void 0,{warnings:v.length?v:void 0}),h?u(m.length?m:void 0):d({warnings:v.length?v:void 0})})})})}function a(){for(const l of Bn(r)){const c=r[l];for(const d of c)d.restoreValidation()}}return nt(ea,{props:e,maxChildLabelWidthRef:o,deriveMaxChildLabelWidth:n}),nt(Hg,{formItems:r}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return b("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Oa(e,t,r){return s3()?Oa=Reflect.construct.bind():Oa=function(n,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(n,s),c=new l;return a&&Li(c,a.prototype),c},Oa.apply(null,arguments)}function l3(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function cc(e){var t=typeof Map=="function"?new Map:void 0;return cc=function(o){if(o===null||!l3(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,n)}function n(){return Oa(o,arguments,lc(this).constructor)}return n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Li(n,o)},cc(e)}var c3=/%[sdj%]/g,d3=function(){};function dc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var o=r.field;t[o]=t[o]||[],t[o].push(r)}),t}function fr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o=i)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function u3(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||u3(t)&&typeof e=="string"&&!e)}function f3(e,t,r){var o=[],n=0,i=e.length;function a(s){o.push.apply(o,s||[]),n++,n===i&&r(o)}e.forEach(function(s){t(s,a)})}function Vf(e,t,r){var o=0,n=e.length;function i(a){if(a&&a.length){r(a);return}var s=o;o=o+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},di={integer:function(t){return di.number(t)&&parseInt(t,10)===t},float:function(t){return di.number(t)&&!di.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!di.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Gf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(b3())},hex:function(t){return typeof t=="string"&&!!t.match(Gf.hex)}},x3=function(t,r,o,n,i){if(t.required&&r===void 0){jg(t,r,o,n,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?di[s](r)||n.push(fr(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&n.push(fr(i.messages.types[s],t.fullField,t.type))},y3=function(t,r,o,n,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,u=null,f=typeof r=="number",p=typeof r=="string",h=Array.isArray(r);if(f?u="number":p?u="string":h&&(u="array"),!u)return!1;h&&(d=r.length),p&&(d=r.replace(c,"_").length),a?d!==t.len&&n.push(fr(i.messages[u].len,t.fullField,t.len)):s&&!l&&dt.max?n.push(fr(i.messages[u].max,t.fullField,t.max)):s&&l&&(dt.max)&&n.push(fr(i.messages[u].range,t.fullField,t.min,t.max))},bn="enum",C3=function(t,r,o,n,i){t[bn]=Array.isArray(t[bn])?t[bn]:[],t[bn].indexOf(r)===-1&&n.push(fr(i.messages[bn],t.fullField,t[bn].join(", ")))},S3=function(t,r,o,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(fr(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||n.push(fr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},qe={required:jg,whitespace:v3,type:x3,range:y3,enum:C3,pattern:S3},w3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r,"string")&&!t.required)return o();qe.required(t,r,n,a,i,"string"),zt(r,"string")||(qe.type(t,r,n,a,i),qe.range(t,r,n,a,i),qe.pattern(t,r,n,a,i),t.whitespace===!0&&qe.whitespace(t,r,n,a,i))}o(a)},_3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();qe.required(t,r,n,a,i),r!==void 0&&qe.type(t,r,n,a,i)}o(a)},P3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),zt(r)&&!t.required)return o();qe.required(t,r,n,a,i),r!==void 0&&(qe.type(t,r,n,a,i),qe.range(t,r,n,a,i))}o(a)},k3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();qe.required(t,r,n,a,i),r!==void 0&&qe.type(t,r,n,a,i)}o(a)},T3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();qe.required(t,r,n,a,i),zt(r)||qe.type(t,r,n,a,i)}o(a)},$3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();qe.required(t,r,n,a,i),r!==void 0&&(qe.type(t,r,n,a,i),qe.range(t,r,n,a,i))}o(a)},R3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();qe.required(t,r,n,a,i),r!==void 0&&(qe.type(t,r,n,a,i),qe.range(t,r,n,a,i))}o(a)},I3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return o();qe.required(t,r,n,a,i,"array"),r!=null&&(qe.type(t,r,n,a,i),qe.range(t,r,n,a,i))}o(a)},E3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();qe.required(t,r,n,a,i),r!==void 0&&qe.type(t,r,n,a,i)}o(a)},z3="enum",M3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();qe.required(t,r,n,a,i),r!==void 0&&qe[z3](t,r,n,a,i)}o(a)},A3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r,"string")&&!t.required)return o();qe.required(t,r,n,a,i),zt(r,"string")||qe.pattern(t,r,n,a,i)}o(a)},O3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r,"date")&&!t.required)return o();if(qe.required(t,r,n,a,i),!zt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),qe.type(t,l,n,a,i),l&&qe.range(t,l.getTime(),n,a,i)}}o(a)},D3=function(t,r,o,n,i){var a=[],s=Array.isArray(r)?"array":typeof r;qe.required(t,r,n,a,i,s),o(a)},Cl=function(t,r,o,n,i){var a=t.type,s=[],l=t.required||!t.required&&n.hasOwnProperty(t.field);if(l){if(zt(r,a)&&!t.required)return o();qe.required(t,r,n,s,i,a),zt(r,a)||qe.type(t,r,n,s,i)}o(s)},B3=function(t,r,o,n,i){var a=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(zt(r)&&!t.required)return o();qe.required(t,r,n,a,i)}o(a)},Ci={string:w3,method:_3,number:P3,boolean:k3,regexp:T3,integer:$3,float:R3,array:I3,object:E3,enum:M3,pattern:A3,date:O3,url:Cl,hex:Cl,email:Cl,required:D3,any:B3};function uc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var fc=uc(),Ln=function(){function e(r){this.rules=null,this._messages=fc,this.define(r)}var t=e.prototype;return t.define=function(o){var n=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var a=o[i];n.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(o){return o&&(this._messages=qf(uc(),o)),this._messages},t.validate=function(o,n,i){var a=this;n===void 0&&(n={}),i===void 0&&(i=function(){});var s=o,l=n,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function d(m){var v=[],g={};function T(k){if(Array.isArray(k)){var I;v=(I=v).concat.apply(I,k)}else v.push(k)}for(var w=0;we.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function L3(e){const t=Oe(ea,null),r=N(()=>{const{labelPlacement:h}=e;return h!==void 0?h:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),o=N(()=>r.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),n=N(()=>{if(r.value==="top")return;const{labelWidth:h}=e;if(h!==void 0&&h!=="auto")return qo(h);if(o.value){const m=t==null?void 0:t.maxChildLabelWidthRef.value;return m!==void 0?qo(m):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return qo(t.props.labelWidth)}),i=N(()=>{const{labelAlign:h}=e;if(h)return h;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=N(()=>{var h;return[(h=e.labelProps)===null||h===void 0?void 0:h.style,e.labelStyle,{width:n.value}]}),s=N(()=>{const{showRequireMark:h}=e;return h!==void 0?h:t==null?void 0:t.props.showRequireMark}),l=N(()=>{const{requireMarkPlacement:h}=e;return h!==void 0?h:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),c=Y(!1),d=Y(!1),u=N(()=>{const{validationStatus:h}=e;if(h!==void 0)return h;if(c.value)return"error";if(d.value)return"warning"}),f=N(()=>{const{showFeedback:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),p=N(()=>{const{showLabel:h}=e;return h!==void 0?h:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:c,validationWarned:d,mergedLabelStyle:a,mergedLabelPlacement:r,mergedLabelAlign:i,mergedShowRequireMark:s,mergedRequireMarkPlacement:l,mergedValidationStatus:u,mergedShowFeedback:f,mergedShowLabel:p,isAutoLabelWidth:o}}function H3(e){const t=Oe(ea,null),r=N(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:s}=e;if(s!==void 0)return s}),o=N(()=>{const a=[],{rule:s}=e;if(s!==void 0&&(Array.isArray(s)?a.push(...s):a.push(s)),t){const{rules:l}=t.props,{value:c}=r;if(l!==void 0&&c!==void 0){const d=wd(l,c);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),n=N(()=>o.value.some(a=>a.required)),i=N(()=>n.value||e.required);return{mergedRules:o,mergedRequired:i}}const{cubicBezierEaseInOut:Yf}=to;function j3({name:e="fade-down",fromOffset:t="-4px",enterDuration:r=".3s",leaveDuration:o=".3s",enterCubicBezier:n=Yf,leaveCubicBezier:i=Yf}={}){return[H(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0,transform:`translateY(${t})`}),H(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),H(`&.${e}-transition-leave-active`,{transition:`opacity ${o} ${i}, transform ${o} ${i}`}),H(`&.${e}-transition-enter-active`,{transition:`opacity ${r} ${n}, transform ${r} ${n}`})]}const N3=L("form-item",` + display: grid; + line-height: var(--n-line-height); +`,[L("form-item-label",` + grid-area: label; + align-items: center; + line-height: 1.25; + text-align: var(--n-label-text-align); + font-size: var(--n-label-font-size); + min-height: var(--n-label-height); + padding: var(--n-label-padding); + color: var(--n-label-text-color); + transition: color .3s var(--n-bezier); + box-sizing: border-box; + font-weight: var(--n-label-font-weight); + `,[V("asterisk",` + white-space: nowrap; + user-select: none; + -webkit-user-select: none; + color: var(--n-asterisk-color); + transition: color .3s var(--n-bezier); + `),V("asterisk-placeholder",` + grid-area: mark; + user-select: none; + -webkit-user-select: none; + visibility: hidden; + `)]),L("form-item-blank",` + grid-area: blank; + min-height: var(--n-blank-height); + `),G("auto-label-width",[L("form-item-label","white-space: nowrap;")]),G("left-labelled",` + grid-template-areas: + "label blank" + "label feedback"; + grid-template-columns: auto minmax(0, 1fr); + grid-template-rows: auto 1fr; + align-items: flex-start; + `,[L("form-item-label",` + display: grid; + grid-template-columns: 1fr auto; + min-height: var(--n-blank-height); + height: auto; + box-sizing: border-box; + flex-shrink: 0; + flex-grow: 0; + `,[G("reverse-columns-space",` + grid-template-columns: auto 1fr; + `),G("left-mark",` + grid-template-areas: + "mark text" + ". text"; + `),G("right-mark",` + grid-template-areas: + "text mark" + "text ."; + `),G("right-hanging-mark",` + grid-template-areas: + "text mark" + "text ."; + `),V("text",` + grid-area: text; + `),V("asterisk",` + grid-area: mark; + align-self: end; + `)])]),G("top-labelled",` + grid-template-areas: + "label" + "blank" + "feedback"; + grid-template-rows: minmax(var(--n-label-height), auto) 1fr; + grid-template-columns: minmax(0, 100%); + `,[G("no-label",` + grid-template-areas: + "blank" + "feedback"; + grid-template-rows: 1fr; + `),L("form-item-label",` + display: flex; + align-items: flex-start; + justify-content: var(--n-label-text-align); + `)]),L("form-item-blank",` + box-sizing: border-box; + display: flex; + align-items: center; + position: relative; + `),L("form-item-feedback-wrapper",` + grid-area: feedback; + box-sizing: border-box; + min-height: var(--n-feedback-height); + font-size: var(--n-feedback-font-size); + line-height: 1.25; + transform-origin: top left; + `,[H("&:not(:empty)",` + padding: var(--n-feedback-padding); + `),L("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[G("warning",{color:"var(--n-feedback-text-color-warning)"}),G("error",{color:"var(--n-feedback-text-color-error)"}),j3({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]);var Xf=function(e,t,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(d){try{c(o.next(d))}catch(u){a(u)}}function l(d){try{c(o.throw(d))}catch(u){a(u)}}function c(d){d.done?i(d.value):n(d.value).then(s,l)}c((o=o.apply(e,t||[])).next())})};const W3=Object.assign(Object.assign({},We.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,showLabel:{type:Boolean,default:void 0},labelProps:Object});function Jf(e,t){return(...r)=>{try{const o=e(...r);return!t&&(typeof o=="boolean"||o instanceof Error||Array.isArray(o))||o!=null&&o.then?o:(o===void 0||Jo("form-item/validate",`You return a ${typeof o} typed value in the validator method, which is not recommended. Please use `+(t?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(o){Jo("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(o);return}}}const V3=ye({name:"FormItem",props:W3,setup(e){hC(Hg,"formItems",tt(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=St(e),o=Oe(ea,null),n=F3(e),i=L3(e),{validationErrored:a,validationWarned:s}=i,{mergedRequired:l,mergedRules:c}=H3(e),{mergedSize:d}=n,{mergedLabelPlacement:u,mergedLabelAlign:f,mergedRequireMarkPlacement:p}=i,h=Y([]),m=Y(Dn()),v=o?tt(o.props,"disabled"):Y(!1),g=We("Form","-form-item",N3,Lg,e,t);Xe(tt(e,"path"),()=>{e.ignorePathChange||T()});function T(){h.value=[],a.value=!1,s.value=!1,e.feedback&&(m.value=Dn())}function w(){S("blur")}function k(){S("change")}function I(){S("focus")}function B(){S("input")}function x(z,P){return Xf(this,void 0,void 0,function*(){let R,_,W,le;return typeof z=="string"?(R=z,_=P):z!==null&&typeof z=="object"&&(R=z.trigger,_=z.callback,W=z.shouldRuleBeApplied,le=z.options),yield new Promise((ie,X)=>{S(R,W,le).then(({valid:re,errors:J,warnings:Se})=>{re?(_&&_(void 0,{warnings:Se}),ie({warnings:Se})):(_&&_(J,{warnings:Se}),X(J))})})})}const S=(z=null,P=()=>!0,R={suppressWarning:!0})=>Xf(this,void 0,void 0,function*(){const{path:_}=e;R?R.first||(R.first=e.first):R={};const{value:W}=c,le=o?wd(o.props.model,_||""):void 0,ie={},X={},re=(z?W.filter($e=>Array.isArray($e.trigger)?$e.trigger.includes(z):$e.trigger===z):W).filter(P).map(($e,Le)=>{const y=Object.assign({},$e);if(y.validator&&(y.validator=Jf(y.validator,!1)),y.asyncValidator&&(y.asyncValidator=Jf(y.asyncValidator,!0)),y.renderMessage){const E=`__renderMessage__${Le}`;X[E]=y.message,y.message=E,ie[E]=y.renderMessage}return y}),J=re.filter($e=>$e.level!=="warning"),Se=re.filter($e=>$e.level==="warning"),Te=_??"__n_no_path__",Ie=new Ln({[Te]:J}),de=new Ln({[Te]:Se}),{validateMessages:Fe}=(o==null?void 0:o.props)||{};Fe&&(Ie.messages(Fe),de.messages(Fe));const K=$e=>{h.value=$e.map(Le=>{const y=(Le==null?void 0:Le.message)||"";return{key:y,render:()=>y.startsWith("__renderMessage__")?ie[y]():y}}),$e.forEach(Le=>{var y;!((y=Le.message)===null||y===void 0)&&y.startsWith("__renderMessage__")&&(Le.message=X[Le.message])})},je={valid:!0,errors:void 0,warnings:void 0};if(J.length){const $e=yield new Promise(Le=>{Ie.validate({[Te]:le},R,Le)});$e!=null&&$e.length&&(a.value=!0,je.valid=!1,je.errors=$e,K($e))}if(Se.length&&!je.errors){const $e=yield new Promise(Le=>{de.validate({[Te]:le},R,Le)});$e!=null&&$e.length&&(K($e),s.value=!0,je.warnings=$e)}return!je.errors&&!je.warnings&&T(),je});nt(Yl,{path:tt(e,"path"),disabled:v,mergedSize:n.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:T,handleContentBlur:w,handleContentChange:k,handleContentFocus:I,handleContentInput:B});const M={validate:x,restoreValidation:T,internalValidate:S},O=Y(null);Ft(()=>{if(!i.isAutoLabelWidth.value)return;const z=O.value;if(z!==null){const P=z.style.whiteSpace;z.style.whiteSpace="nowrap",z.style.width="",o==null||o.deriveMaxChildLabelWidth(Number(getComputedStyle(z).width.slice(0,-2))),z.style.whiteSpace=P}});const Z=N(()=>{var z;const{value:P}=d,{value:R}=u,_=R==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:W},self:{labelTextColor:le,asteriskColor:ie,lineHeight:X,feedbackTextColor:re,feedbackTextColorWarning:J,feedbackTextColorError:Se,feedbackPadding:Te,labelFontWeight:Ie,[ve("labelHeight",P)]:de,[ve("blankHeight",P)]:Fe,[ve("feedbackFontSize",P)]:K,[ve("feedbackHeight",P)]:je,[ve("labelPadding",_)]:$e,[ve("labelTextAlign",_)]:Le,[ve(ve("labelFontSize",R),P)]:y}}=g.value;let E=(z=f.value)!==null&&z!==void 0?z:Le;return R==="top"&&(E=E==="right"?"flex-end":"flex-start"),{"--n-bezier":W,"--n-line-height":X,"--n-blank-height":Fe,"--n-label-font-size":y,"--n-label-text-align":E,"--n-label-height":de,"--n-label-padding":$e,"--n-label-font-weight":Ie,"--n-asterisk-color":ie,"--n-label-text-color":le,"--n-feedback-padding":Te,"--n-feedback-font-size":K,"--n-feedback-height":je,"--n-feedback-text-color":re,"--n-feedback-text-color-warning":J,"--n-feedback-text-color-error":Se}}),A=r?Nt("form-item",N(()=>{var z;return`${d.value[0]}${u.value[0]}${((z=f.value)===null||z===void 0?void 0:z[0])||""}`}),Z,e):void 0,C=N(()=>u.value==="left"&&p.value==="left"&&f.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:O,mergedClsPrefix:t,mergedRequired:l,feedbackId:m,renderExplains:h,reverseColSpace:C},i),n),M),{cssVars:r?void 0:Z,themeClass:A==null?void 0:A.themeClass,onRender:A==null?void 0:A.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:r,mergedShowRequireMark:o,mergedRequireMarkPlacement:n,onRender:i}=this,a=o!==void 0?o:this.mergedRequired;i==null||i();const s=()=>{const l=this.$slots.label?this.$slots.label():this.label;if(!l)return null;const c=b("span",{class:`${t}-form-item-label__text`},l),d=a?b("span",{class:`${t}-form-item-label__asterisk`},n!=="left"?" *":"* "):n==="right-hanging"&&b("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:u}=this;return b("label",Object.assign({},u,{class:[u==null?void 0:u.class,`${t}-form-item-label`,`${t}-form-item-label--${n}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),n==="left"?[d,c]:[c,d])};return b("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!r&&`${t}-form-item--no-label`],style:this.cssVars},r&&s(),b("div",{class:[`${t}-form-item-blank`,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`]},e),this.mergedShowFeedback?b("div",{key:this.feedbackId,class:`${t}-form-item-feedback-wrapper`},b($r,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:l}=this;return Bt(e.feedback,c=>{var d;const{feedback:u}=this,f=c||u?b("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||u):this.renderExplains.length?(d=this.renderExplains)===null||d===void 0?void 0:d.map(({key:p,render:h})=>b("div",{key:p,class:`${t}-form-item-feedback__line`},h())):null;return f?l==="warning"?b("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},f):l==="error"?b("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},f):l==="success"?b("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},f):b("div",{key:"controlled-default",class:`${t}-form-item-feedback`},f):null})}})):null)}}),U3={name:"GradientText",common:me,self(e){const{primaryColor:t,successColor:r,warningColor:o,errorColor:n,infoColor:i,primaryColorSuppl:a,successColorSuppl:s,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:d,colorStartWarning:o,colorEndWarning:l,colorStartError:n,colorEndError:c,colorStartSuccess:r,colorEndSuccess:s}}},K3=U3,q3=e=>{const{primaryColor:t,baseColor:r}=e;return{color:t,iconColor:r}},G3={name:"IconWrapper",common:me,self:q3},Y3=G3,X3={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"},Ng=e=>{const{textColor2:t,successColor:r,infoColor:o,warningColor:n,errorColor:i,popoverColor:a,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:d,closeColorPressed:u,textColor1:f,textColor3:p,borderRadius:h,fontWeightStrong:m,boxShadow2:v,lineHeight:g,fontSize:T}=e;return Object.assign(Object.assign({},X3),{borderRadius:h,lineHeight:g,fontSize:T,headerFontWeight:m,iconColor:t,iconColorSuccess:r,iconColorInfo:o,iconColorWarning:n,iconColorError:i,color:a,textColor:t,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:d,closeColorPressed:u,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:v})},J3={name:"Notification",common:Wt,peers:{Scrollbar:$d},self:Ng},Z3=J3,Q3={name:"Notification",common:me,peers:{Scrollbar:sr},self:Ng},eR=Q3,tR={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},Wg=e=>{const{textColor2:t,closeIconColor:r,closeIconColorHover:o,closeIconColorPressed:n,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:d,primaryColor:u,lineHeight:f,borderRadius:p,closeColorHover:h,closeColorPressed:m}=e;return Object.assign(Object.assign({},tR),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:d,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:u,closeColorHover:h,closeColorPressed:m,closeIconColor:r,closeIconColorHover:o,closeIconColorPressed:n,closeColorHoverInfo:h,closeColorPressedInfo:m,closeIconColorInfo:r,closeIconColorHoverInfo:o,closeIconColorPressedInfo:n,closeColorHoverSuccess:h,closeColorPressedSuccess:m,closeIconColorSuccess:r,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:n,closeColorHoverError:h,closeColorPressedError:m,closeIconColorError:r,closeIconColorHoverError:o,closeIconColorPressedError:n,closeColorHoverWarning:h,closeColorPressedWarning:m,closeIconColorWarning:r,closeIconColorHoverWarning:o,closeIconColorPressedWarning:n,closeColorHoverLoading:h,closeColorPressedLoading:m,closeIconColorLoading:r,closeIconColorHoverLoading:o,closeIconColorPressedLoading:n,loadingColor:u,lineHeight:f,borderRadius:p})},rR={name:"Message",common:Wt,self:Wg},oR=rR,nR={name:"Message",common:me,self:Wg},iR=nR,aR={name:"ButtonGroup",common:me},sR=aR,lR={name:"InputNumber",common:me,peers:{Button:lr,Input:Sr},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}},cR=lR,dR={name:"Layout",common:me,peers:{Scrollbar:sr},self(e){const{textColor2:t,bodyColor:r,popoverColor:o,cardColor:n,dividerColor:i,scrollbarColor:a,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:r,colorEmbedded:r,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Re(r,a),siderToggleBarColorHover:Re(r,s),__invertScrollbar:"false"}}},uR=dR,fR=e=>{const{baseColor:t,textColor2:r,bodyColor:o,cardColor:n,dividerColor:i,actionColor:a,scrollbarColor:s,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:r,textColorInverted:"#FFF",color:o,colorEmbedded:a,headerColor:n,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:n,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:Re(o,s),siderToggleBarColorHover:Re(o,l),__invertScrollbar:"true"}},hR={name:"Layout",common:Wt,peers:{Scrollbar:$d},self:fR},Vg=hR,pR=e=>{const{textColor2:t,cardColor:r,modalColor:o,popoverColor:n,dividerColor:i,borderRadius:a,fontSize:s,hoverColor:l}=e;return{textColor:t,color:r,colorHover:l,colorModal:o,colorHoverModal:Re(o,l),colorPopover:n,colorHoverPopover:Re(n,l),borderColor:i,borderColorModal:Re(o,i),borderColorPopover:Re(n,i),borderRadius:a,fontSize:s}},mR={name:"List",common:me,self:pR},gR=mR,vR={name:"LoadingBar",common:me,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},bR=vR,xR={name:"Log",common:me,peers:{Scrollbar:sr,Code:bg},self(e){const{textColor2:t,inputColor:r,fontSize:o,primaryColor:n}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:r,loaderBorder:"1px solid #0000",loadingColor:n}}},yR=xR,CR={name:"Mention",common:me,peers:{InternalSelectMenu:Zi,Input:Sr},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},SR=CR;function wR(e,t,r,o){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:r,itemTextColorChildActiveInverted:r,itemTextColorChildActiveHoverInverted:r,itemTextColorActiveInverted:r,itemTextColorActiveHoverInverted:r,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:r,itemTextColorChildActiveHorizontalInverted:r,itemTextColorChildActiveHoverHorizontalInverted:r,itemTextColorActiveHorizontalInverted:r,itemTextColorActiveHoverHorizontalInverted:r,itemIconColorInverted:e,itemIconColorHoverInverted:r,itemIconColorActiveInverted:r,itemIconColorActiveHoverInverted:r,itemIconColorChildActiveInverted:r,itemIconColorChildActiveHoverInverted:r,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:r,itemIconColorActiveHorizontalInverted:r,itemIconColorActiveHoverHorizontalInverted:r,itemIconColorChildActiveHorizontalInverted:r,itemIconColorChildActiveHoverHorizontalInverted:r,arrowColorInverted:e,arrowColorHoverInverted:r,arrowColorActiveInverted:r,arrowColorActiveHoverInverted:r,arrowColorChildActiveInverted:r,arrowColorChildActiveHoverInverted:r,groupTextColorInverted:o}}const Ug=e=>{const{borderRadius:t,textColor3:r,primaryColor:o,textColor2:n,textColor1:i,fontSize:a,dividerColor:s,hoverColor:l,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:r,itemColorHover:l,itemColorActive:fe(o,{alpha:.1}),itemColorActiveHover:fe(o,{alpha:.1}),itemColorActiveCollapsed:fe(o,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:o,itemTextColorActiveHover:o,itemTextColorChildActive:o,itemTextColorChildActiveHover:o,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:o,itemTextColorActiveHoverHorizontal:o,itemTextColorChildActiveHorizontal:o,itemTextColorChildActiveHoverHorizontal:o,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:o,itemIconColorActiveHover:o,itemIconColorChildActive:o,itemIconColorChildActiveHover:o,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:o,itemIconColorActiveHoverHorizontal:o,itemIconColorChildActiveHorizontal:o,itemIconColorChildActiveHoverHorizontal:o,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:o,arrowColorActiveHover:o,arrowColorChildActive:o,arrowColorChildActiveHover:o,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:s},wR("#BBB",o,"#FFF","#AAA"))},_R={name:"Menu",common:Wt,peers:{Tooltip:wg,Dropdown:Tg},self:Ug},PR=_R,kR={name:"Menu",common:me,peers:{Tooltip:Hs,Dropdown:zd},self(e){const{primaryColor:t,primaryColorSuppl:r}=e,o=Ug(e);return o.itemColorActive=fe(t,{alpha:.15}),o.itemColorActiveHover=fe(t,{alpha:.15}),o.itemColorActiveCollapsed=fe(t,{alpha:.15}),o.itemColorActiveInverted=r,o.itemColorActiveHoverInverted=r,o.itemColorActiveCollapsedInverted=r,o}},TR=kR,$R={titleFontSize:"18px",backSize:"22px"};function RR(e){const{textColor1:t,textColor2:r,textColor3:o,fontSize:n,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:s}=e;return Object.assign(Object.assign({},$R),{titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:r,backColorHover:a,backColorPressed:s,subtitleTextColor:o})}const IR={name:"PageHeader",common:me,self:RR},ER={iconSize:"22px"},zR=e=>{const{fontSize:t,warningColor:r}=e;return Object.assign(Object.assign({},ER),{fontSize:t,iconColor:r})},MR={name:"Popconfirm",common:me,peers:{Button:lr,Popover:ln},self:zR},AR=MR,OR=e=>{const{infoColor:t,successColor:r,warningColor:o,errorColor:n,textColor2:i,progressRailColor:a,fontSize:s,fontWeight:l}=e;return{fontSize:s,fontSizeCircle:"28px",fontWeightCircle:l,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:o,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:o,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},DR={name:"Progress",common:me,self(e){const t=OR(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},Kg=DR,BR={name:"Rate",common:me,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},FR=BR,LR={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0},HR=e=>{const{textColor2:t,textColor1:r,errorColor:o,successColor:n,infoColor:i,warningColor:a,lineHeight:s,fontWeightStrong:l}=e;return Object.assign(Object.assign({},LR),{lineHeight:s,titleFontWeight:l,titleTextColor:r,textColor:t,iconColorError:o,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:a})},jR={name:"Result",common:me,self:HR},NR=jR,qg={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},WR={name:"Slider",common:me,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,modalColor:o,primaryColorSuppl:n,popoverColor:i,textColor2:a,cardColor:s,borderRadius:l,fontSize:c,opacityDisabled:d}=e;return Object.assign(Object.assign({},qg),{fontSize:c,markFontSize:c,railColor:r,railColorHover:r,fillColor:n,fillColorHover:n,opacityDisabled:d,handleColor:"#FFF",dotColor:s,dotColorModal:o,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:l,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}},VR=WR,UR=e=>{const t="rgba(0, 0, 0, .85)",r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,primaryColor:n,baseColor:i,cardColor:a,modalColor:s,popoverColor:l,borderRadius:c,fontSize:d,opacityDisabled:u}=e;return Object.assign(Object.assign({},qg),{fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:u,handleColor:"#FFF",dotColor:a,dotColorModal:s,dotColorPopover:l,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:r,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})},KR={name:"Slider",common:Wt,self:UR},qR=KR,GR=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:o,heightMedium:n,heightLarge:i,heightHuge:a,primaryColor:s,fontSize:l}=e;return{fontSize:l,textColor:s,sizeTiny:r,sizeSmall:o,sizeMedium:n,sizeLarge:i,sizeHuge:a,color:s,opacitySpinning:t}},YR={name:"Spin",common:me,self:GR},XR=YR,JR=e=>{const{textColor2:t,textColor3:r,fontSize:o,fontWeight:n}=e;return{labelFontSize:o,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:r,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}},ZR={name:"Statistic",common:me,self:JR},QR=ZR,eI={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"},tI=e=>{const{fontWeightStrong:t,baseColor:r,textColorDisabled:o,primaryColor:n,errorColor:i,textColor1:a,textColor2:s}=e;return Object.assign(Object.assign({},eI),{stepHeaderFontWeight:t,indicatorTextColorProcess:r,indicatorTextColorWait:o,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:o,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:n,splitorColorError:o,headerTextColorProcess:a,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:i,descriptionTextColorProcess:s,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:i})},rI={name:"Steps",common:me,self:tI},oI=rI,nI={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},iI={name:"Switch",common:me,self(e){const{primaryColorSuppl:t,opacityDisabled:r,borderRadius:o,primaryColor:n,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},nI),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:r,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${fe(n,{alpha:.3})}`})}},aI=iI,sI={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"},lI=e=>{const{dividerColor:t,cardColor:r,modalColor:o,popoverColor:n,tableHeaderColor:i,tableColorStriped:a,textColor1:s,textColor2:l,borderRadius:c,fontWeightStrong:d,lineHeight:u,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h}=e;return Object.assign(Object.assign({},sI),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:h,lineHeight:u,borderRadius:c,borderColor:Re(r,t),borderColorModal:Re(o,t),borderColorPopover:Re(n,t),tdColor:r,tdColorModal:o,tdColorPopover:n,tdColorStriped:Re(r,a),tdColorStripedModal:Re(o,a),tdColorStripedPopover:Re(n,a),thColor:Re(r,i),thColorModal:Re(o,i),thColorPopover:Re(n,i),thTextColor:s,tdTextColor:l,thFontWeight:d})},cI={name:"Table",common:me,self:lI},dI=cI,uI={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},fI=e=>{const{textColor2:t,primaryColor:r,textColorDisabled:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:c,baseColor:d,dividerColor:u,fontWeight:f,textColor1:p,borderRadius:h,fontSize:m,fontWeightStrong:v}=e;return Object.assign(Object.assign({},uI),{colorSegment:c,tabFontSizeCard:m,tabTextColorLine:p,tabTextColorActiveLine:r,tabTextColorHoverLine:r,tabTextColorDisabledLine:o,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:o,tabTextColorBar:p,tabTextColorActiveBar:r,tabTextColorHoverBar:r,tabTextColorDisabledBar:o,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:r,tabTextColorDisabledCard:o,barColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:h,tabColor:c,tabColorSegment:d,tabBorderColor:u,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:v})},hI={name:"Tabs",common:me,self(e){const t=fI(e),{inputColor:r}=e;return t.colorSegment=r,t.tabColorSegment=r,t}},pI=hI,mI=e=>{const{textColor1:t,textColor2:r,fontWeightStrong:o,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:r,titleFontWeight:o}},gI={name:"Thing",common:me,self:mI},vI=gI,bI={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},xI={name:"Timeline",common:me,self(e){const{textColor3:t,infoColorSuppl:r,errorColorSuppl:o,successColorSuppl:n,warningColorSuppl:i,textColor1:a,textColor2:s,railColor:l,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},bI),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${r}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:r,iconColorError:o,iconColorSuccess:n,iconColorWarning:i,titleTextColor:a,contentTextColor:s,metaTextColor:t,lineColor:l})}},yI=xI,CI={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},SI={name:"Transfer",common:me,peers:{Checkbox:Yn,Scrollbar:sr,Input:Sr,Empty:sn,Button:lr},self(e){const{fontWeight:t,fontSizeLarge:r,fontSizeMedium:o,fontSizeSmall:n,heightLarge:i,heightMedium:a,borderRadius:s,inputColor:l,tableHeaderColor:c,textColor1:d,textColorDisabled:u,textColor2:f,textColor3:p,hoverColor:h,closeColorHover:m,closeColorPressed:v,closeIconColor:g,closeIconColorHover:T,closeIconColorPressed:w,dividerColor:k}=e;return Object.assign(Object.assign({},CI),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:o,fontSizeLarge:r,borderRadius:s,dividerColor:k,borderColor:"#0000",listColor:l,headerColor:c,titleTextColor:d,titleTextColorDisabled:u,extraTextColor:p,extraTextColorDisabled:u,itemTextColor:f,itemTextColorDisabled:u,itemColorPending:h,titleFontWeight:t,closeColorHover:m,closeColorPressed:v,closeIconColor:g,closeIconColorHover:T,closeIconColorPressed:w})}},wI=SI,_I=e=>{const{borderRadiusSmall:t,dividerColor:r,hoverColor:o,pressedColor:n,primaryColor:i,textColor3:a,textColor2:s,textColorDisabled:l,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:o,nodeColorPressed:n,nodeColorActive:fe(i,{alpha:.1}),arrowColor:a,nodeTextColor:s,nodeTextColorDisabled:l,loadingColor:i,dropMarkColor:i,lineColor:r}},PI={name:"Tree",common:me,peers:{Checkbox:Yn,Scrollbar:sr,Empty:sn},self(e){const{primaryColor:t}=e,r=_I(e);return r.nodeColorActive=fe(t,{alpha:.15}),r}},Gg=PI,kI={name:"TreeSelect",common:me,peers:{Tree:Gg,Empty:sn,InternalSelection:Ed}},TI=kI,$I={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},Yg=e=>{const{primaryColor:t,textColor2:r,borderColor:o,lineHeight:n,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:d,infoColor:u,warningColor:f,errorColor:p,successColor:h,codeColor:m}=e;return Object.assign(Object.assign({},$I),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:o,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:r,liLineHeight:n,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:r,pTextColor1Depth:c,pTextColor2Depth:r,pTextColor3Depth:d,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:h,textColor:r,textColor1Depth:c,textColor2Depth:r,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:h,textColorWarning:f,textColorError:p,codeTextColor:r,codeColor:m,codeBorder:"1px solid #0000"})},RI={name:"Typography",common:Wt,self:Yg},II=RI,EI={name:"Typography",common:me,self:Yg},zI=EI,MI=e=>{const{iconColor:t,primaryColor:r,errorColor:o,textColor2:n,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:c,lineHeight:d,borderRadius:u,fontSize:f}=e;return{fontSize:f,lineHeight:d,borderRadius:u,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:c,itemColorHoverError:fe(o,{alpha:.06}),itemTextColor:n,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${l}`}},AI={name:"Upload",common:me,peers:{Button:lr,Progress:Kg},self(e){const{errorColor:t}=e,r=MI(e);return r.itemColorHoverError=fe(t,{alpha:.09}),r}},OI=AI,DI={name:"Watermark",common:me,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},BI=DI,FI={name:"Row",common:me},LI=FI,HI={name:"Image",common:me,peers:{Tooltip:Hs},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},jI="n-layout-sider",Xg={type:String,default:"static"},NI=L("layout",` + color: var(--n-text-color); + background-color: var(--n-color); + box-sizing: border-box; + position: relative; + z-index: auto; + flex: auto; + overflow: hidden; + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[L("layout-scroll-container",` + overflow-x: hidden; + box-sizing: border-box; + height: 100%; + `),G("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),WI={embedded:Boolean,position:Xg,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},VI="n-layout";function Jg(e){return ye({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},We.props),WI),setup(t){const r=Y(null),o=Y(null),{mergedClsPrefixRef:n,inlineThemeDisabled:i}=St(t),a=We("Layout","-layout",NI,Vg,t,n);function s(m,v){if(t.nativeScrollbar){const{value:g}=r;g&&(v===void 0?g.scrollTo(m):g.scrollTo(m,v))}else{const{value:g}=o;g&&g.scrollTo(m,v)}}nt(VI,t);let l=0,c=0;const d=m=>{var v;const g=m.target;l=g.scrollLeft,c=g.scrollTop,(v=t.onScroll)===null||v===void 0||v.call(t,m)};gm(()=>{if(t.nativeScrollbar){const m=r.value;m&&(m.scrollTop=c,m.scrollLeft=l)}});const u={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:s},p=N(()=>{const{common:{cubicBezierEaseInOut:m},self:v}=a.value;return{"--n-bezier":m,"--n-color":t.embedded?v.colorEmbedded:v.color,"--n-text-color":v.textColor}}),h=i?Nt("layout",N(()=>t.embedded?"e":""),p,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:r,scrollbarInstRef:o,hasSiderStyle:u,mergedTheme:a,handleNativeElScroll:d,cssVars:i?void 0:p,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender},f)},render(){var t;const{mergedClsPrefix:r,hasSider:o}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=o?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${r}-layout-content`,`${r}-layout`,`${r}-layout--${this.position}-positioned`];return b("div",{class:i,style:this.cssVars},this.nativeScrollbar?b("div",{ref:"scrollableElRef",class:[`${r}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):b(Rd,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,n]}),this.$slots))}})}const UI=Jg(!1),KI=Jg(!0),qI=L("layout-header",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + box-sizing: border-box; + width: 100%; + background-color: var(--n-color); + color: var(--n-text-color); +`,[G("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + `),G("bordered",` + border-bottom: solid 1px var(--n-border-color); + `)]),GI={position:Xg,inverted:Boolean,bordered:{type:Boolean,default:!1}},YI=ye({name:"LayoutHeader",props:Object.assign(Object.assign({},We.props),GI),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=St(e),o=We("Layout","-layout-header",qI,Vg,e,t),n=N(()=>{const{common:{cubicBezierEaseInOut:a},self:s}=o.value,l={"--n-bezier":a};return e.inverted?(l["--n-color"]=s.headerColorInverted,l["--n-text-color"]=s.textColorInverted,l["--n-border-color"]=s.headerBorderColorInverted):(l["--n-color"]=s.headerColor,l["--n-text-color"]=s.textColor,l["--n-border-color"]=s.headerBorderColor),l}),i=r?Nt("layout-header",N(()=>e.inverted?"a":"b"),n,e):void 0;return{mergedClsPrefix:t,cssVars:r?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),XI={extraFontSize:"12px",width:"440px"},JI={name:"Transfer",common:me,peers:{Checkbox:Yn,Scrollbar:sr,Input:Sr,Empty:sn,Button:lr},self(e){const{iconColorDisabled:t,iconColor:r,fontWeight:o,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:a,heightLarge:s,heightMedium:l,heightSmall:c,borderRadius:d,inputColor:u,tableHeaderColor:f,textColor1:p,textColorDisabled:h,textColor2:m,hoverColor:v}=e;return Object.assign(Object.assign({},XI),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:s,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:n,borderRadius:d,borderColor:"#0000",listColor:u,headerColor:f,titleTextColor:p,titleTextColorDisabled:h,extraTextColor:m,filterDividerColor:"#0000",itemTextColor:m,itemTextColorDisabled:h,itemColorPending:v,titleFontWeight:o,iconColor:r,iconColorDisabled:t})}},ZI=JI,ta="n-menu",Ad="n-submenu",Od="n-menu-item-group",Pa=8;function Dd(e){const t=Oe(ta),{props:r,mergedCollapsedRef:o}=t,n=Oe(Ad,null),i=Oe(Od,null),a=N(()=>r.mode==="horizontal"),s=N(()=>a.value?r.dropdownPlacement:"tmNodes"in e?"right-start":"right"),l=N(()=>{var f;return Math.max((f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize,r.iconSize)}),c=N(()=>{var f;return!a.value&&e.root&&o.value&&(f=r.collapsedIconSize)!==null&&f!==void 0?f:r.iconSize}),d=N(()=>{if(a.value)return;const{collapsedWidth:f,indent:p,rootIndent:h}=r,{root:m,isGroup:v}=e,g=h===void 0?p:h;return m?o.value?f/2-l.value/2:g:i&&typeof i.paddingLeftRef.value=="number"?p/2+i.paddingLeftRef.value:n&&typeof n.paddingLeftRef.value=="number"?(v?p/2:p)+n.paddingLeftRef.value:0}),u=N(()=>{const{collapsedWidth:f,indent:p,rootIndent:h}=r,{value:m}=l,{root:v}=e;return a.value||!v||!o.value?Pa:(h===void 0?p:h)+m+Pa-(f+m)/2});return{dropdownPlacement:s,activeIconSize:c,maxIconSize:l,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:n}}const Bd={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},Zg=Object.assign(Object.assign({},Bd),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),QI=ye({name:"MenuOptionGroup",props:Zg,setup(e){nt(Ad,null);const t=Dd(e);nt(Od,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:r,props:o}=Oe(ta);return function(){const{value:n}=r,i=t.paddingLeft.value,{nodeProps:a}=o,s=a==null?void 0:a(e.tmNode.rawNode);return b("div",{class:`${n}-menu-item-group`,role:"group"},b("div",Object.assign({},s,{class:[`${n}-menu-item-group-title`,s==null?void 0:s.class],style:[(s==null?void 0:s.style)||"",i!==void 0?`padding-left: ${i}px;`:""]}),Lt(e.title),e.extra?b(st,null," ",Lt(e.extra)):null),b("div",null,e.tmNodes.map(l=>Fd(l,o))))}}}),Qg=ye({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=Oe(ta);return{menuProps:t,style:N(()=>{const{paddingLeft:r}=e;return{paddingLeft:r&&`${r}px`}}),iconStyle:N(()=>{const{maxIconSize:r,activeIconSize:o,iconMarginRight:n}=e;return{width:`${r}px`,height:`${r}px`,fontSize:`${o}px`,marginRight:`${n}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:r,renderLabel:o,renderExtra:n,expandIcon:i}}=this,a=r?r(t.rawNode):Lt(this.icon);return b("div",{onClick:s=>{var l;(l=this.onClick)===null||l===void 0||l.call(this,s)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&b("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),b("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:o?o(t.rawNode):Lt(this.title),this.extra||n?b("span",{class:`${e}-menu-item-content-header__extra`}," ",n?n(t.rawNode):Lt(this.extra)):null),this.showArrow?b(So,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):b(VP,null)}):null)}}),ev=Object.assign(Object.assign({},Bd),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),hc=ye({name:"Submenu",props:ev,setup(e){const t=Dd(e),{NMenu:r,NSubmenu:o}=t,{props:n,mergedCollapsedRef:i,mergedThemeRef:a}=r,s=N(()=>{const{disabled:f}=e;return o!=null&&o.mergedDisabledRef.value||n.disabled?!0:f}),l=Y(!1);nt(Ad,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),nt(Od,null);function c(){const{onClick:f}=e;f&&f()}function d(){s.value||(i.value||r.toggleExpand(e.internalKey),c())}function u(f){l.value=f}return{menuProps:n,mergedTheme:a,doSelect:r.doSelect,inverted:r.invertedRef,isHorizontal:r.isHorizontalRef,mergedClsPrefix:r.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:l,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:r.mergedValueRef,childActive:jt(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:r.activePathRef.value.includes(e.internalKey)}),collapsed:N(()=>n.mode==="horizontal"?!1:i.value?!0:!r.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:N(()=>!s.value&&(n.mode==="horizontal"||i.value)),handlePopoverShowChange:u,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:r,renderLabel:o}}=this,n=()=>{const{isHorizontal:a,paddingLeft:s,collapsed:l,mergedDisabled:c,maxIconSize:d,activeIconSize:u,title:f,childActive:p,icon:h,handleClick:m,menuProps:{nodeProps:v},dropdownShow:g,iconMarginRight:T,tmNode:w,mergedClsPrefix:k,isEllipsisPlaceholder:I,extra:B}=this,x=v==null?void 0:v(w.rawNode);return b("div",Object.assign({},x,{class:[`${k}-menu-item`,x==null?void 0:x.class],role:"menuitem"}),b(Qg,{tmNode:w,paddingLeft:s,collapsed:l,disabled:c,iconMarginRight:T,maxIconSize:d,activeIconSize:u,title:f,extra:B,showArrow:!a,childActive:p,clsPrefix:k,icon:h,hover:g,onClick:m,isEllipsisPlaceholder:I}))},i=()=>b(Pd,null,{default:()=>{const{tmNodes:a,collapsed:s}=this;return s?null:b("div",{class:`${t}-submenu-children`,role:"menu"},a.map(l=>Fd(l,this.menuProps)))}});return this.root?b(Mg,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:r,renderLabel:o}),{default:()=>b("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed,id:this.domId},n(),this.isHorizontal?null:i())}):b("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed,id:this.domId},n(),i())}}),tv=Object.assign(Object.assign({},Bd),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),eE=ye({name:"MenuOption",props:tv,setup(e){const t=Dd(e),{NSubmenu:r,NMenu:o}=t,{props:n,mergedClsPrefixRef:i,mergedCollapsedRef:a}=o,s=r?r.mergedDisabledRef:{value:!1},l=N(()=>s.value||e.disabled);function c(u){const{onClick:f}=e;f&&f(u)}function d(u){l.value||(o.doSelect(e.internalKey,e.tmNode.rawNode),c(u))}return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:o.mergedThemeRef,menuProps:n,dropdownEnabled:jt(()=>e.root&&a.value&&n.mode!=="horizontal"&&!l.value),selected:jt(()=>o.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:d}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:r,menuProps:{renderLabel:o,nodeProps:n}}=this,i=n==null?void 0:n(r.rawNode);return b("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),b(ds,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>o?o(r.rawNode):Lt(this.title),trigger:()=>b(Qg,{tmNode:r,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),tE=ye({name:"MenuDivider",setup(){const e=Oe(ta),{mergedClsPrefixRef:t,isHorizontalRef:r}=e;return()=>r.value?null:b("div",{class:`${t.value}-menu-divider`})}}),rE=Bn(Zg),oE=Bn(tv),nE=Bn(ev);function pc(e){return e.type==="divider"||e.type==="render"}function iE(e){return e.type==="divider"}function Fd(e,t){const{rawNode:r}=e,{show:o}=r;if(o===!1)return null;if(pc(r))return iE(r)?b(tE,Object.assign({key:e.key},r.props)):null;const{labelField:n}=t,{key:i,level:a,isGroup:s}=e,l=Object.assign(Object.assign({},r),{title:r.title||r[n],extra:r.titleExtra||r.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:s});return e.children?e.isGroup?b(QI,kn(l,rE,{tmNode:e,tmNodes:e.children,key:i})):b(hc,kn(l,nE,{key:i,rawNodes:r[t.childrenField],tmNodes:e.children,tmNode:e})):b(eE,kn(l,oE,{key:i,tmNode:e}))}const Zf=[H("&::before","background-color: var(--n-item-color-hover);"),V("arrow",` + color: var(--n-arrow-color-hover); + `),V("icon",` + color: var(--n-item-icon-color-hover); + `),L("menu-item-content-header",` + color: var(--n-item-text-color-hover); + `,[H("a",` + color: var(--n-item-text-color-hover); + `),V("extra",` + color: var(--n-item-text-color-hover); + `)])],Qf=[V("icon",` + color: var(--n-item-icon-color-hover-horizontal); + `),L("menu-item-content-header",` + color: var(--n-item-text-color-hover-horizontal); + `,[H("a",` + color: var(--n-item-text-color-hover-horizontal); + `),V("extra",` + color: var(--n-item-text-color-hover-horizontal); + `)])],aE=H([L("menu",` + background-color: var(--n-color); + color: var(--n-item-text-color); + overflow: hidden; + transition: background-color .3s var(--n-bezier); + box-sizing: border-box; + font-size: var(--n-font-size); + padding-bottom: 6px; + `,[G("horizontal",` + max-width: 100%; + width: 100%; + display: flex; + overflow: hidden; + padding-bottom: 0; + `,[L("submenu","margin: 0;"),L("menu-item","margin: 0;"),L("menu-item-content",` + padding: 0 20px; + border-bottom: 2px solid #0000; + `,[H("&::before","display: none;"),G("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),L("menu-item-content",[G("selected",[V("icon","color: var(--n-item-icon-color-active-horizontal);"),L("menu-item-content-header",` + color: var(--n-item-text-color-active-horizontal); + `,[H("a","color: var(--n-item-text-color-active-horizontal);"),V("extra","color: var(--n-item-text-color-active-horizontal);")])]),G("child-active",` + border-bottom: 2px solid var(--n-border-color-horizontal); + `,[L("menu-item-content-header",` + color: var(--n-item-text-color-child-active-horizontal); + `,[H("a",` + color: var(--n-item-text-color-child-active-horizontal); + `),V("extra",` + color: var(--n-item-text-color-child-active-horizontal); + `)]),V("icon",` + color: var(--n-item-icon-color-child-active-horizontal); + `)]),xt("disabled",[xt("selected, child-active",[H("&:focus-within",Qf)]),G("selected",[Ao(null,[V("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),L("menu-item-content-header",` + color: var(--n-item-text-color-active-hover-horizontal); + `,[H("a","color: var(--n-item-text-color-active-hover-horizontal);"),V("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),G("child-active",[Ao(null,[V("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),L("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover-horizontal); + `,[H("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),V("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Ao("border-bottom: 2px solid var(--n-border-color-horizontal);",Qf)]),L("menu-item-content-header",[H("a","color: var(--n-item-text-color-horizontal);")])])]),xt("responsive",[L("menu-item-content-header",` + overflow: hidden; + text-overflow: ellipsis; + `)]),G("collapsed",[L("menu-item-content",[G("selected",[H("&::before",` + background-color: var(--n-item-color-active-collapsed) !important; + `)]),L("menu-item-content-header","opacity: 0;"),V("arrow","opacity: 0;"),V("icon","color: var(--n-item-icon-color-collapsed);")])]),L("menu-item",` + height: var(--n-item-height); + margin-top: 6px; + position: relative; + `),L("menu-item-content",` + box-sizing: border-box; + line-height: 1.75; + height: 100%; + display: grid; + grid-template-areas: "icon content arrow"; + grid-template-columns: auto 1fr auto; + align-items: center; + cursor: pointer; + position: relative; + padding-right: 18px; + transition: + background-color .3s var(--n-bezier), + padding-left .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[H("> *","z-index: 1;"),H("&::before",` + z-index: auto; + content: ""; + background-color: #0000; + position: absolute; + left: 8px; + right: 8px; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),G("disabled",` + opacity: .45; + cursor: not-allowed; + `),G("collapsed",[V("arrow","transform: rotate(0);")]),G("selected",[H("&::before","background-color: var(--n-item-color-active);"),V("arrow","color: var(--n-arrow-color-active);"),V("icon","color: var(--n-item-icon-color-active);"),L("menu-item-content-header",` + color: var(--n-item-text-color-active); + `,[H("a","color: var(--n-item-text-color-active);"),V("extra","color: var(--n-item-text-color-active);")])]),G("child-active",[L("menu-item-content-header",` + color: var(--n-item-text-color-child-active); + `,[H("a",` + color: var(--n-item-text-color-child-active); + `),V("extra",` + color: var(--n-item-text-color-child-active); + `)]),V("arrow",` + color: var(--n-arrow-color-child-active); + `),V("icon",` + color: var(--n-item-icon-color-child-active); + `)]),xt("disabled",[xt("selected, child-active",[H("&:focus-within",Zf)]),G("selected",[Ao(null,[V("arrow","color: var(--n-arrow-color-active-hover);"),V("icon","color: var(--n-item-icon-color-active-hover);"),L("menu-item-content-header",` + color: var(--n-item-text-color-active-hover); + `,[H("a","color: var(--n-item-text-color-active-hover);"),V("extra","color: var(--n-item-text-color-active-hover);")])])]),G("child-active",[Ao(null,[V("arrow","color: var(--n-arrow-color-child-active-hover);"),V("icon","color: var(--n-item-icon-color-child-active-hover);"),L("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover); + `,[H("a","color: var(--n-item-text-color-child-active-hover);"),V("extra","color: var(--n-item-text-color-child-active-hover);")])])]),G("selected",[Ao(null,[H("&::before","background-color: var(--n-item-color-active-hover);")])]),Ao(null,Zf)]),V("icon",` + grid-area: icon; + color: var(--n-item-icon-color); + transition: + color .3s var(--n-bezier), + font-size .3s var(--n-bezier), + margin-right .3s var(--n-bezier); + box-sizing: content-box; + display: inline-flex; + align-items: center; + justify-content: center; + `),V("arrow",` + grid-area: arrow; + font-size: 16px; + color: var(--n-arrow-color); + transform: rotate(180deg); + opacity: 1; + transition: + color .3s var(--n-bezier), + transform 0.2s var(--n-bezier), + opacity 0.2s var(--n-bezier); + `),L("menu-item-content-header",` + grid-area: content; + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + opacity: 1; + white-space: nowrap; + color: var(--n-item-text-color); + `,[H("a",` + outline: none; + text-decoration: none; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `,[H("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),V("extra",` + font-size: .93em; + color: var(--n-group-text-color); + transition: color .3s var(--n-bezier); + `)])]),L("submenu",` + cursor: pointer; + position: relative; + margin-top: 6px; + `,[L("menu-item-content",` + height: var(--n-item-height); + `),L("submenu-children",` + overflow: hidden; + padding: 0; + `,[dg({duration:".2s"})])]),L("menu-item-group",[L("menu-item-group-title",` + margin-top: 6px; + color: var(--n-group-text-color); + cursor: default; + font-size: .93em; + height: 36px; + display: flex; + align-items: center; + transition: + padding-left .3s var(--n-bezier), + color .3s var(--n-bezier); + `)])]),L("menu-tooltip",[H("a",` + color: inherit; + text-decoration: none; + `)]),L("menu-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 6px 18px; + `)]);function Ao(e,t){return[G("hover",e,t),H("&:hover",e,t)]}const sE=Object.assign(Object.assign({},We.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),lE=ye({name:"Menu",props:sE,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=St(e),o=We("Menu","-menu",aE,PR,e,t),n=Oe(jI,null),i=N(()=>{var X;const{collapsed:re}=e;if(re!==void 0)return re;if(n){const{collapseModeRef:J,collapsedRef:Se}=n;if(J.value==="width")return(X=Se.value)!==null&&X!==void 0?X:!1}return!1}),a=N(()=>{const{keyField:X,childrenField:re,disabledField:J}=e;return Aa(e.items||e.options,{getIgnored(Se){return pc(Se)},getChildren(Se){return Se[re]},getDisabled(Se){return Se[J]},getKey(Se){var Te;return(Te=Se[X])!==null&&Te!==void 0?Te:Se.name}})}),s=N(()=>new Set(a.value.treeNodes.map(X=>X.key))),{watchProps:l}=e,c=Y(null);l!=null&&l.includes("defaultValue")?Tr(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=tt(e,"value"),u=Fn(d,c),f=Y([]),p=()=>{f.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(u.value,{includeSelf:!1}).keyPath};l!=null&&l.includes("defaultExpandedKeys")?Tr(p):p();const h=nd(e,["expandedNames","expandedKeys"]),m=Fn(h,f),v=N(()=>a.value.treeNodes),g=N(()=>a.value.getPath(u.value).keyPath);nt(ta,{props:e,mergedCollapsedRef:i,mergedThemeRef:o,mergedValueRef:u,mergedExpandedKeysRef:m,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:N(()=>e.mode==="horizontal"),invertedRef:tt(e,"inverted"),doSelect:T,toggleExpand:k});function T(X,re){const{"onUpdate:value":J,onUpdateValue:Se,onSelect:Te}=e;Se&&Ue(Se,X,re),J&&Ue(J,X,re),Te&&Ue(Te,X,re),c.value=X}function w(X){const{"onUpdate:expandedKeys":re,onUpdateExpandedKeys:J,onExpandedNamesChange:Se,onOpenNamesChange:Te}=e;re&&Ue(re,X),J&&Ue(J,X),Se&&Ue(Se,X),Te&&Ue(Te,X),f.value=X}function k(X){const re=Array.from(m.value),J=re.findIndex(Se=>Se===X);if(~J)re.splice(J,1);else{if(e.accordion&&s.value.has(X)){const Se=re.findIndex(Te=>s.value.has(Te));Se>-1&&re.splice(Se,1)}re.push(X)}w(re)}const I=X=>{const re=a.value.getPath(X??u.value,{includeSelf:!1}).keyPath;if(!re.length)return;const J=Array.from(m.value),Se=new Set([...J,...re]);e.accordion&&s.value.forEach(Te=>{Se.has(Te)&&!re.includes(Te)&&Se.delete(Te)}),w(Array.from(Se))},B=N(()=>{const{inverted:X}=e,{common:{cubicBezierEaseInOut:re},self:J}=o.value,{borderRadius:Se,borderColorHorizontal:Te,fontSize:Ie,itemHeight:de,dividerColor:Fe}=J,K={"--n-divider-color":Fe,"--n-bezier":re,"--n-font-size":Ie,"--n-border-color-horizontal":Te,"--n-border-radius":Se,"--n-item-height":de};return X?(K["--n-group-text-color"]=J.groupTextColorInverted,K["--n-color"]=J.colorInverted,K["--n-item-text-color"]=J.itemTextColorInverted,K["--n-item-text-color-hover"]=J.itemTextColorHoverInverted,K["--n-item-text-color-active"]=J.itemTextColorActiveInverted,K["--n-item-text-color-child-active"]=J.itemTextColorChildActiveInverted,K["--n-item-text-color-child-active-hover"]=J.itemTextColorChildActiveInverted,K["--n-item-text-color-active-hover"]=J.itemTextColorActiveHoverInverted,K["--n-item-icon-color"]=J.itemIconColorInverted,K["--n-item-icon-color-hover"]=J.itemIconColorHoverInverted,K["--n-item-icon-color-active"]=J.itemIconColorActiveInverted,K["--n-item-icon-color-active-hover"]=J.itemIconColorActiveHoverInverted,K["--n-item-icon-color-child-active"]=J.itemIconColorChildActiveInverted,K["--n-item-icon-color-child-active-hover"]=J.itemIconColorChildActiveHoverInverted,K["--n-item-icon-color-collapsed"]=J.itemIconColorCollapsedInverted,K["--n-item-text-color-horizontal"]=J.itemTextColorHorizontalInverted,K["--n-item-text-color-hover-horizontal"]=J.itemTextColorHoverHorizontalInverted,K["--n-item-text-color-active-horizontal"]=J.itemTextColorActiveHorizontalInverted,K["--n-item-text-color-child-active-horizontal"]=J.itemTextColorChildActiveHorizontalInverted,K["--n-item-text-color-child-active-hover-horizontal"]=J.itemTextColorChildActiveHoverHorizontalInverted,K["--n-item-text-color-active-hover-horizontal"]=J.itemTextColorActiveHoverHorizontalInverted,K["--n-item-icon-color-horizontal"]=J.itemIconColorHorizontalInverted,K["--n-item-icon-color-hover-horizontal"]=J.itemIconColorHoverHorizontalInverted,K["--n-item-icon-color-active-horizontal"]=J.itemIconColorActiveHorizontalInverted,K["--n-item-icon-color-active-hover-horizontal"]=J.itemIconColorActiveHoverHorizontalInverted,K["--n-item-icon-color-child-active-horizontal"]=J.itemIconColorChildActiveHorizontalInverted,K["--n-item-icon-color-child-active-hover-horizontal"]=J.itemIconColorChildActiveHoverHorizontalInverted,K["--n-arrow-color"]=J.arrowColorInverted,K["--n-arrow-color-hover"]=J.arrowColorHoverInverted,K["--n-arrow-color-active"]=J.arrowColorActiveInverted,K["--n-arrow-color-active-hover"]=J.arrowColorActiveHoverInverted,K["--n-arrow-color-child-active"]=J.arrowColorChildActiveInverted,K["--n-arrow-color-child-active-hover"]=J.arrowColorChildActiveHoverInverted,K["--n-item-color-hover"]=J.itemColorHoverInverted,K["--n-item-color-active"]=J.itemColorActiveInverted,K["--n-item-color-active-hover"]=J.itemColorActiveHoverInverted,K["--n-item-color-active-collapsed"]=J.itemColorActiveCollapsedInverted):(K["--n-group-text-color"]=J.groupTextColor,K["--n-color"]=J.color,K["--n-item-text-color"]=J.itemTextColor,K["--n-item-text-color-hover"]=J.itemTextColorHover,K["--n-item-text-color-active"]=J.itemTextColorActive,K["--n-item-text-color-child-active"]=J.itemTextColorChildActive,K["--n-item-text-color-child-active-hover"]=J.itemTextColorChildActiveHover,K["--n-item-text-color-active-hover"]=J.itemTextColorActiveHover,K["--n-item-icon-color"]=J.itemIconColor,K["--n-item-icon-color-hover"]=J.itemIconColorHover,K["--n-item-icon-color-active"]=J.itemIconColorActive,K["--n-item-icon-color-active-hover"]=J.itemIconColorActiveHover,K["--n-item-icon-color-child-active"]=J.itemIconColorChildActive,K["--n-item-icon-color-child-active-hover"]=J.itemIconColorChildActiveHover,K["--n-item-icon-color-collapsed"]=J.itemIconColorCollapsed,K["--n-item-text-color-horizontal"]=J.itemTextColorHorizontal,K["--n-item-text-color-hover-horizontal"]=J.itemTextColorHoverHorizontal,K["--n-item-text-color-active-horizontal"]=J.itemTextColorActiveHorizontal,K["--n-item-text-color-child-active-horizontal"]=J.itemTextColorChildActiveHorizontal,K["--n-item-text-color-child-active-hover-horizontal"]=J.itemTextColorChildActiveHoverHorizontal,K["--n-item-text-color-active-hover-horizontal"]=J.itemTextColorActiveHoverHorizontal,K["--n-item-icon-color-horizontal"]=J.itemIconColorHorizontal,K["--n-item-icon-color-hover-horizontal"]=J.itemIconColorHoverHorizontal,K["--n-item-icon-color-active-horizontal"]=J.itemIconColorActiveHorizontal,K["--n-item-icon-color-active-hover-horizontal"]=J.itemIconColorActiveHoverHorizontal,K["--n-item-icon-color-child-active-horizontal"]=J.itemIconColorChildActiveHorizontal,K["--n-item-icon-color-child-active-hover-horizontal"]=J.itemIconColorChildActiveHoverHorizontal,K["--n-arrow-color"]=J.arrowColor,K["--n-arrow-color-hover"]=J.arrowColorHover,K["--n-arrow-color-active"]=J.arrowColorActive,K["--n-arrow-color-active-hover"]=J.arrowColorActiveHover,K["--n-arrow-color-child-active"]=J.arrowColorChildActive,K["--n-arrow-color-child-active-hover"]=J.arrowColorChildActiveHover,K["--n-item-color-hover"]=J.itemColorHover,K["--n-item-color-active"]=J.itemColorActive,K["--n-item-color-active-hover"]=J.itemColorActiveHover,K["--n-item-color-active-collapsed"]=J.itemColorActiveCollapsed),K}),x=r?Nt("menu",N(()=>e.inverted?"a":"b"),B,e):void 0,S=Dn(),M=Y(null),O=Y(null);let Z=!0;const A=()=>{var X;Z?Z=!1:(X=M.value)===null||X===void 0||X.sync({showAllItemsBeforeCalculate:!0})};function C(){return document.getElementById(S)}const z=Y(-1);function P(X){z.value=e.options.length-X}function R(X){X||(z.value=-1)}const _=N(()=>{const X=z.value;return{children:X===-1?[]:e.options.slice(X)}}),W=N(()=>{const{childrenField:X,disabledField:re,keyField:J}=e;return Aa([_.value],{getIgnored(Se){return pc(Se)},getChildren(Se){return Se[X]},getDisabled(Se){return Se[re]},getKey(Se){var Te;return(Te=Se[J])!==null&&Te!==void 0?Te:Se.name}})}),le=N(()=>Aa([{}]).treeNodes[0]);function ie(){var X;if(z.value===-1)return b(hc,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:le.value,domId:S,isEllipsisPlaceholder:!0});const re=W.value.treeNodes[0],J=g.value,Se=!!(!((X=re.children)===null||X===void 0)&&X.some(Te=>J.includes(Te.key)));return b(hc,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:Se,tmNode:re,domId:S,rawNodes:re.rawNode.children||[],tmNodes:re.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:f,mergedExpandedKeys:m,uncontrolledValue:c,mergedValue:u,activePath:g,tmNodes:v,mergedTheme:o,mergedCollapsed:i,cssVars:r?void 0:B,themeClass:x==null?void 0:x.themeClass,overflowRef:M,counterRef:O,updateCounter:()=>{},onResize:A,onUpdateOverflow:R,onUpdateCount:P,renderCounter:ie,getCounter:C,onRender:x==null?void 0:x.onRender,showOption:I,deriveResponsiveState:A}},render(){const{mergedClsPrefix:e,mode:t,themeClass:r,onRender:o}=this;o==null||o();const n=()=>this.tmNodes.map(l=>Fd(l,this.$props)),a=t==="horizontal"&&this.responsive,s=()=>b("div",{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,r,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},a?b(b1,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:n,counter:this.renderCounter}):n());return a?b(rs,{onResize:this.onResize},{default:s}):s()}}),rv={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},ov="n-message-api",nv="n-message-provider",cE=H([L("message-wrapper",` + margin: var(--n-margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[dg({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),L("message",` + box-sizing: border-box; + display: flex; + align-items: center; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier), + margin-bottom .3s var(--n-bezier); + padding: var(--n-padding); + border-radius: var(--n-border-radius); + flex-wrap: nowrap; + overflow: hidden; + max-width: var(--n-max-width); + color: var(--n-text-color); + background-color: var(--n-color); + box-shadow: var(--n-box-shadow); + `,[V("content",` + display: inline-block; + line-height: var(--n-line-height); + font-size: var(--n-font-size); + `),V("icon",` + position: relative; + margin: var(--n-icon-margin); + height: var(--n-icon-size); + width: var(--n-icon-size); + font-size: var(--n-icon-size); + flex-shrink: 0; + `,[["default","info","success","warning","error","loading"].map(e=>G(`${e}-type`,[H("> *",` + color: var(--n-icon-color-${e}); + transition: color .3s var(--n-bezier); + `)])),H("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Fi()])]),V("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + flex-shrink: 0; + `,[H("&:hover",` + color: var(--n-close-icon-color-hover); + `),H("&:active",` + color: var(--n-close-icon-color-pressed); + `)])]),L("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[G("top",` + top: 12px; + left: 0; + right: 0; + `),G("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),G("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),G("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),G("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),G("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]),dE={info:()=>b(qm,null),success:()=>b(Gm,null),warning:()=>b(Ym,null),error:()=>b(Km,null),default:()=>null},uE=ye({name:"Message",props:Object.assign(Object.assign({},rv),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:r}=St(e),{props:o,mergedClsPrefixRef:n}=Oe(nv),i=Po("Message",r,n),a=We("Message","-message",cE,oR,o,n),s=N(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:d},self:{padding:u,margin:f,maxWidth:p,iconMargin:h,closeMargin:m,closeSize:v,iconSize:g,fontSize:T,lineHeight:w,borderRadius:k,iconColorInfo:I,iconColorSuccess:B,iconColorWarning:x,iconColorError:S,iconColorLoading:M,closeIconSize:O,closeBorderRadius:Z,[ve("textColor",c)]:A,[ve("boxShadow",c)]:C,[ve("color",c)]:z,[ve("closeColorHover",c)]:P,[ve("closeColorPressed",c)]:R,[ve("closeIconColor",c)]:_,[ve("closeIconColorPressed",c)]:W,[ve("closeIconColorHover",c)]:le}}=a.value;return{"--n-bezier":d,"--n-margin":f,"--n-padding":u,"--n-max-width":p,"--n-font-size":T,"--n-icon-margin":h,"--n-icon-size":g,"--n-close-icon-size":O,"--n-close-border-radius":Z,"--n-close-size":v,"--n-close-margin":m,"--n-text-color":A,"--n-color":z,"--n-box-shadow":C,"--n-icon-color-info":I,"--n-icon-color-success":B,"--n-icon-color-warning":x,"--n-icon-color-error":S,"--n-icon-color-loading":M,"--n-close-color-hover":P,"--n-close-color-pressed":R,"--n-close-icon-color":_,"--n-close-icon-color-pressed":W,"--n-close-icon-color-hover":le,"--n-line-height":w,"--n-border-radius":k}}),l=t?Nt("message",N(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:o,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:o.placement}},render(){const{render:e,type:t,closable:r,content:o,mergedClsPrefix:n,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:d}=this;s==null||s();let u;return b("div",{class:[`${n}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):b("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(u=fE(l,t,n))&&d?b("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},b(Bs,null,{default:()=>u})):null,b("div",{class:`${n}-message__content`},Lt(o)),r?b(Fs,{clsPrefix:n,class:`${n}-message__close`,onClick:c,absolute:!0}):null))}});function fE(e,t,r){if(typeof e=="function")return e();{const o=t==="loading"?b(kd,{clsPrefix:r,strokeWidth:24,scale:.85}):dE[t]();return o?b(So,{clsPrefix:r,key:t},{default:()=>o}):null}}const hE=ye({name:"MessageEnvironment",props:Object.assign(Object.assign({},rv),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const r=Y(!0);Ft(()=>{o()});function o(){const{duration:d}=e;d&&(t=window.setTimeout(a,d))}function n(d){d.currentTarget===d.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(d){d.currentTarget===d.target&&o()}function a(){const{onHide:d}=e;r.value=!1,t&&(window.clearTimeout(t),t=null),d&&d()}function s(){const{onClose:d}=e;d&&d(),a()}function l(){const{onAfterLeave:d,onInternalAfterLeave:u,onAfterHide:f,internalKey:p}=e;d&&d(),u&&u(p),f&&f()}function c(){a()}return{show:r,hide:a,handleClose:s,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:n,deactivate:c}},render(){return b(Pd,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?b(uE,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),pE=Object.assign(Object.assign({},We.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),mE=ye({name:"MessageProvider",props:pE,setup(e){const{mergedClsPrefixRef:t}=St(e),r=Y([]),o=Y({}),n={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:s};nt(nv,{props:e,mergedClsPrefixRef:t}),nt(ov,n);function i(l,c){const d=Dn(),u=Gr(Object.assign(Object.assign({},c),{content:l,key:d,destroy:()=>{var p;(p=o.value[d])===null||p===void 0||p.hide()}})),{max:f}=e;return f&&r.value.length>=f&&r.value.shift(),r.value.push(u),u}function a(l){r.value.splice(r.value.findIndex(c=>c.key===l),1),delete o.value[l]}function s(){Object.values(o.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:o,messageList:r,handleAfterLeave:a},n)},render(){var e,t,r;return b(st,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?b(ed,{to:(r=this.to)!==null&&r!==void 0?r:"body"},b("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(o=>b(hE,Object.assign({ref:n=>{n&&(this.messageRefs[o.key]=n)},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave},Wp(o,["destroy"],void 0),{duration:o.duration===void 0?this.duration:o.duration,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover,closable:o.closable===void 0?this.closable:o.closable}))))):null)}});function iv(){const e=Oe(ov,null);return e===null&&od("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const Ns="n-notification-provider",gE=ye({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:r}=Oe(Ns),o=Y(null);return Tr(()=>{var n,i;r.value>0?(n=o==null?void 0:o.value)===null||n===void 0||n.classList.add("transitioning"):(i=o==null?void 0:o.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:o,mergedTheme:e,mergedClsPrefix:t,transitioning:r}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:r,mergedTheme:o,placement:n}=this;return b("div",{ref:"selfRef",class:[`${r}-notification-container`,t&&`${r}-notification-container--scrollable`,`${r}-notification-container--${n}`]},t?b(Rd,{theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),vE={info:()=>b(qm,null),success:()=>b(Gm,null),warning:()=>b(Ym,null),error:()=>b(Km,null),default:()=>null},Ld={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},bE=Bn(Ld),xE=ye({name:"Notification",props:Ld,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,props:o}=Oe(Ns),{inlineThemeDisabled:n,mergedRtlRef:i}=St(),a=Po("Notification",i,t),s=N(()=>{const{type:c}=e,{self:{color:d,textColor:u,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:h,headerTextColor:m,descriptionTextColor:v,actionTextColor:g,borderRadius:T,headerFontWeight:w,boxShadow:k,lineHeight:I,fontSize:B,closeMargin:x,closeSize:S,width:M,padding:O,closeIconSize:Z,closeBorderRadius:A,closeColorHover:C,closeColorPressed:z,titleFontSize:P,metaFontSize:R,descriptionFontSize:_,[ve("iconColor",c)]:W},common:{cubicBezierEaseOut:le,cubicBezierEaseIn:ie,cubicBezierEaseInOut:X}}=r.value,{left:re,right:J,top:Se,bottom:Te}=Rs(O);return{"--n-color":d,"--n-font-size":B,"--n-text-color":u,"--n-description-text-color":v,"--n-action-text-color":g,"--n-title-text-color":m,"--n-title-font-weight":w,"--n-bezier":X,"--n-bezier-ease-out":le,"--n-bezier-ease-in":ie,"--n-border-radius":T,"--n-box-shadow":k,"--n-close-border-radius":A,"--n-close-color-hover":C,"--n-close-color-pressed":z,"--n-close-icon-color":f,"--n-close-icon-color-hover":p,"--n-close-icon-color-pressed":h,"--n-line-height":I,"--n-icon-color":W,"--n-close-margin":x,"--n-close-size":S,"--n-close-icon-size":Z,"--n-width":M,"--n-padding-left":re,"--n-padding-right":J,"--n-padding-top":Se,"--n-padding-bottom":Te,"--n-title-font-size":P,"--n-meta-font-size":R,"--n-description-font-size":_}}),l=n?Nt("notification",N(()=>e.type[0]),s,o):void 0;return{mergedClsPrefix:t,showAvatar:N(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},b("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?b("div",{class:`${t}-notification__avatar`},this.avatar?Lt(this.avatar):this.type!=="default"?b(So,{clsPrefix:t},{default:()=>vE[this.type]()}):null):null,this.closable?b(Fs,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,b("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?b("div",{class:`${t}-notification-main__header`},Lt(this.title)):null,this.description?b("div",{class:`${t}-notification-main__description`},Lt(this.description)):null,this.content?b("pre",{class:`${t}-notification-main__content`},Lt(this.content)):null,this.meta||this.action?b("div",{class:`${t}-notification-main-footer`},this.meta?b("div",{class:`${t}-notification-main-footer__meta`},Lt(this.meta)):null,this.action?b("div",{class:`${t}-notification-main-footer__action`},Lt(this.action)):null):null)))}}),yE=Object.assign(Object.assign({},Ld),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),CE=ye({name:"NotificationEnvironment",props:Object.assign(Object.assign({},yE),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Oe(Ns),r=Y(!0);let o=null;function n(){r.value=!1,o&&window.clearTimeout(o)}function i(h){t.value++,Jt(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function a(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:m,onAfterShow:v}=e;m&&m(),v&&v()}function s(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function l(h){const{onHide:m}=e;m&&m(),h.style.maxHeight="0",h.offsetHeight}function c(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:m,onAfterHide:v,internalKey:g}=e;h&&h(),m(g),v&&v()}function d(){const{duration:h}=e;h&&(o=window.setTimeout(n,h))}function u(h){h.currentTarget===h.target&&o!==null&&(window.clearTimeout(o),o=null)}function f(h){h.currentTarget===h.target&&d()}function p(){const{onClose:h}=e;h?Promise.resolve(h()).then(m=>{m!==!1&&n()}):n()}return Ft(()=>{e.duration&&(o=window.setTimeout(n,e.duration))}),{show:r,hide:n,handleClose:p,handleAfterLeave:c,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:u,handleMouseleave:f}},render(){return b($r,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?b(xE,Object.assign({},kn(this.$props,bE),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),SE=H([L("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[H(">",[L("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[H(">",[L("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[L("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),G("top, top-right, top-left",` + top: 12px; + `,[H("&.transitioning >",[L("scrollbar",[H(">",[L("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),G("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[H(">",[L("scrollbar",[H(">",[L("scrollbar-container",[L("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),L("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),G("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[L("notification-wrapper",[H("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),H("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),G("top",[L("notification-wrapper",` + transform-origin: top center; + `)]),G("bottom",[L("notification-wrapper",` + transform-origin: bottom center; + `)]),G("top-right, bottom-right",[L("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),G("top-left, bottom-left",[L("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),G("top-right",` + right: 0; + `,[ka("top-right")]),G("top-left",` + left: 0; + `,[ka("top-left")]),G("bottom-right",` + right: 0; + `,[ka("bottom-right")]),G("bottom-left",` + left: 0; + `,[ka("bottom-left")]),G("scrollable",[G("top-right",` + top: 0; + `),G("top-left",` + top: 0; + `),G("bottom-right",` + bottom: 0; + `),G("bottom-left",` + bottom: 0; + `)]),L("notification-wrapper",` + margin-bottom: 12px; + `,[H("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),H("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),H("&.notification-transition-leave-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-in), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `),H("&.notification-transition-enter-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-out), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `)]),L("notification",` + background-color: var(--n-color); + color: var(--n-text-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + font-family: inherit; + font-size: var(--n-font-size); + font-weight: 400; + position: relative; + display: flex; + overflow: hidden; + flex-shrink: 0; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + width: var(--n-width); + max-width: calc(100vw - 16px - 16px); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + box-sizing: border-box; + opacity: 1; + `,[V("avatar",[L("icon",` + color: var(--n-icon-color); + `),L("base-icon",` + color: var(--n-icon-color); + `)]),G("show-avatar",[L("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),G("closable",[L("notification-main",[H("> *:first-child",` + padding-right: 20px; + `)]),V("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),V("avatar",` + position: absolute; + top: var(--n-padding-top); + left: var(--n-padding-left); + width: 28px; + height: 28px; + font-size: 28px; + display: flex; + align-items: center; + justify-content: center; + `,[L("icon","transition: color .3s var(--n-bezier);")]),L("notification-main",` + padding-top: var(--n-padding-top); + padding-bottom: var(--n-padding-bottom); + box-sizing: border-box; + display: flex; + flex-direction: column; + margin-left: 8px; + width: calc(100% - 8px); + `,[L("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[V("meta",` + font-size: var(--n-meta-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),V("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),V("header",` + font-weight: var(--n-title-font-weight); + font-size: var(--n-title-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-title-text-color); + `),V("description",` + margin-top: 8px; + font-size: var(--n-description-font-size); + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),V("content",` + line-height: var(--n-line-height); + margin: 12px 0 0 0; + font-family: inherit; + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-text-color); + `,[H("&:first-child","margin: 0;")])])])])]);function ka(e){const r=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return L("notification-wrapper",[H("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${r}, 0); + `),H("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(0, 0); + `)])}const av="n-notification-api",wE=Object.assign(Object.assign({},We.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),_E=ye({name:"NotificationProvider",props:wE,setup(e){const{mergedClsPrefixRef:t}=St(e),r=Y([]),o={},n=new Set;function i(p){const h=Dn(),m=()=>{n.add(h),o[h]&&o[h].hide()},v=Gr(Object.assign(Object.assign({},p),{key:h,destroy:m,hide:m,deactivate:m})),{max:g}=e;if(g&&r.value.length-n.size>=g){let T=!1,w=0;for(const k of r.value){if(!n.has(k.key)){o[k.key]&&(k.destroy(),T=!0);break}w++}T||r.value.splice(w,1)}return r.value.push(v),v}const a=["info","success","warning","error"].map(p=>h=>i(Object.assign(Object.assign({},h),{type:p})));function s(p){n.delete(p),r.value.splice(r.value.findIndex(h=>h.key===p),1)}const l=We("Notification","-notification",SE,Z3,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:u,destroyAll:f},d=Y(0);nt(av,c),nt(Ns,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:d});function u(p){return i(p)}function f(){Object.values(r.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:r,notificationRefs:o,handleAfterLeave:s},c)},render(){var e,t,r;const{placement:o}=this;return b(st,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?b(ed,{to:(r=this.to)!==null&&r!==void 0?r:"body"},b(gE,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&o!=="top"&&o!=="bottom",placement:o},{default:()=>this.notificationList.map(n=>b(CE,Object.assign({ref:i=>{const a=n.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Wp(n,["destroy","hide","deactivate"]),{internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:n.keepAliveOnHover===void 0?this.keepAliveOnHover:n.keepAliveOnHover})))})):null)}});function PE(){const e=Oe(av,null);return e===null&&od("use-notification","No outer `n-notification-provider` found."),e}const kE={name:"QrCode",common:me,self:e=>({borderRadius:e.borderRadius})},TE=kE,$E={name:"Skeleton",common:me,self(e){const{heightSmall:t,heightMedium:r,heightLarge:o,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:r,heightLarge:o}}};function eh(e){return window.TouchEvent&&e instanceof window.TouchEvent}function th(){const e=new Map,t=r=>o=>{e.set(r,o)};return hp(()=>{e.clear()}),[e,t]}const RE=H([L("slider",` + display: block; + padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; + position: relative; + z-index: 0; + width: 100%; + cursor: pointer; + user-select: none; + -webkit-user-select: none; + `,[G("reverse",[L("slider-handles",[L("slider-handle-wrapper",` + transform: translate(50%, -50%); + `)]),L("slider-dots",[L("slider-dot",` + transform: translateX(50%, -50%); + `)]),G("vertical",[L("slider-handles",[L("slider-handle-wrapper",` + transform: translate(-50%, -50%); + `)]),L("slider-marks",[L("slider-mark",` + transform: translateY(calc(-50% + var(--n-dot-height) / 2)); + `)]),L("slider-dots",[L("slider-dot",` + transform: translateX(-50%) translateY(0); + `)])])]),G("vertical",` + padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); + width: var(--n-rail-width-vertical); + height: 100%; + `,[L("slider-handles",` + top: calc(var(--n-handle-size) / 2); + right: 0; + bottom: calc(var(--n-handle-size) / 2); + left: 0; + `,[L("slider-handle-wrapper",` + top: unset; + left: 50%; + transform: translate(-50%, 50%); + `)]),L("slider-rail",` + height: 100%; + `,[V("fill",` + top: unset; + right: 0; + bottom: unset; + left: 0; + `)]),G("with-mark",` + width: var(--n-rail-width-vertical); + margin: 0 32px 0 8px; + `),L("slider-marks",` + top: calc(var(--n-handle-size) / 2); + right: unset; + bottom: calc(var(--n-handle-size) / 2); + left: 22px; + font-size: var(--n-mark-font-size); + `,[L("slider-mark",` + transform: translateY(50%); + white-space: nowrap; + `)]),L("slider-dots",` + top: calc(var(--n-handle-size) / 2); + right: unset; + bottom: calc(var(--n-handle-size) / 2); + left: 50%; + `,[L("slider-dot",` + transform: translateX(-50%) translateY(50%); + `)])]),G("disabled",` + cursor: not-allowed; + opacity: var(--n-opacity-disabled); + `,[L("slider-handle",` + cursor: not-allowed; + `)]),G("with-mark",` + width: 100%; + margin: 8px 0 32px 0; + `),H("&:hover",[L("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[V("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),L("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),G("active",[L("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[V("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),L("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),L("slider-marks",` + position: absolute; + top: 18px; + left: calc(var(--n-handle-size) / 2); + right: calc(var(--n-handle-size) / 2); + `,[L("slider-mark",` + position: absolute; + transform: translateX(-50%); + white-space: nowrap; + `)]),L("slider-rail",` + width: 100%; + position: relative; + height: var(--n-rail-height); + background-color: var(--n-rail-color); + transition: background-color .3s var(--n-bezier); + border-radius: calc(var(--n-rail-height) / 2); + `,[V("fill",` + position: absolute; + top: 0; + bottom: 0; + border-radius: calc(var(--n-rail-height) / 2); + transition: background-color .3s var(--n-bezier); + background-color: var(--n-fill-color); + `)]),L("slider-handles",` + position: absolute; + top: 0; + right: calc(var(--n-handle-size) / 2); + bottom: 0; + left: calc(var(--n-handle-size) / 2); + `,[L("slider-handle-wrapper",` + outline: none; + position: absolute; + top: 50%; + transform: translate(-50%, -50%); + cursor: pointer; + display: flex; + `,[L("slider-handle",` + height: var(--n-handle-size); + width: var(--n-handle-size); + border-radius: 50%; + overflow: hidden; + transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); + background-color: var(--n-handle-color); + box-shadow: var(--n-handle-box-shadow); + `,[H("&:hover",` + box-shadow: var(--n-handle-box-shadow-hover); + `)]),H("&:focus",[L("slider-handle",` + box-shadow: var(--n-handle-box-shadow-focus); + `,[H("&:hover",` + box-shadow: var(--n-handle-box-shadow-active); + `)])])])]),L("slider-dots",` + position: absolute; + top: 50%; + left: calc(var(--n-handle-size) / 2); + right: calc(var(--n-handle-size) / 2); + `,[G("transition-disabled",[L("slider-dot","transition: none;")]),L("slider-dot",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + position: absolute; + transform: translate(-50%, -50%); + height: var(--n-dot-height); + width: var(--n-dot-width); + border-radius: var(--n-dot-border-radius); + overflow: hidden; + box-sizing: border-box; + border: var(--n-dot-border); + background-color: var(--n-dot-color); + `,[G("active","border: var(--n-dot-border-active);")])])]),L("slider-handle-indicator",` + font-size: var(--n-font-size); + padding: 6px 10px; + border-radius: var(--n-indicator-border-radius); + color: var(--n-indicator-text-color); + background-color: var(--n-indicator-color); + box-shadow: var(--n-indicator-box-shadow); + `,[ic()]),L("slider-handle-indicator",` + font-size: var(--n-font-size); + padding: 6px 10px; + border-radius: var(--n-indicator-border-radius); + color: var(--n-indicator-text-color); + background-color: var(--n-indicator-color); + box-shadow: var(--n-indicator-box-shadow); + `,[G("top",` + margin-bottom: 12px; + `),G("right",` + margin-left: 12px; + `),G("bottom",` + margin-top: 12px; + `),G("left",` + margin-right: 12px; + `),ic()]),Jp(L("slider",[L("slider-dot","background-color: var(--n-dot-color-modal);")])),Zp(L("slider",[L("slider-dot","background-color: var(--n-dot-color-popover);")]))]),IE=0,EE=Object.assign(Object.assign({},We.props),{to:Jr.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),zE=ye({name:"Slider",props:EE,setup(e){const{mergedClsPrefixRef:t,namespaceRef:r,inlineThemeDisabled:o}=St(e),n=We("Slider","-slider",RE,qR,e,t),i=Y(null),[a,s]=th(),[l,c]=th(),d=Y(new Set),u=ud(e),{mergedDisabledRef:f}=u,p=N(()=>{const{step:F}=e;if(Number(F)<=0||F==="mark")return 0;const U=F.toString();let Q=0;return U.includes(".")&&(Q=U.length-U.indexOf(".")-1),Q}),h=Y(e.defaultValue),m=tt(e,"value"),v=Fn(m,h),g=N(()=>{const{value:F}=v;return(e.range?F:[F]).map(re)}),T=N(()=>g.value.length>2),w=N(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),k=N(()=>{const{marks:F}=e;return F?Object.keys(F).map(parseFloat):null}),I=Y(-1),B=Y(-1),x=Y(-1),S=Y(!1),M=Y(!1),O=N(()=>{const{vertical:F,reverse:U}=e;return F?U?"top":"bottom":U?"right":"left"}),Z=N(()=>{if(T.value)return;const F=g.value,U=J(e.range?Math.min(...F):e.min),Q=J(e.range?Math.max(...F):F[0]),{value:pe}=O;return e.vertical?{[pe]:`${U}%`,height:`${Q-U}%`}:{[pe]:`${U}%`,width:`${Q-U}%`}}),A=N(()=>{const F=[],{marks:U}=e;if(U){const Q=g.value.slice();Q.sort((Ne,Ze)=>Ne-Ze);const{value:pe}=O,{value:we}=T,{range:ze}=e,Ve=we?()=>!1:Ne=>ze?Ne>=Q[0]&&Ne<=Q[Q.length-1]:Ne<=Q[0];for(const Ne of Object.keys(U)){const Ze=Number(Ne);F.push({active:Ve(Ze),label:U[Ne],style:{[pe]:`${J(Ze)}%`}})}}return F});function C(F,U){const Q=J(F),{value:pe}=O;return{[pe]:`${Q}%`,zIndex:U===I.value?1:0}}function z(F){return e.showTooltip||x.value===F||I.value===F&&S.value}function P(F){return S.value?!(I.value===F&&B.value===F):!0}function R(F){var U;~F&&(I.value=F,(U=a.get(F))===null||U===void 0||U.focus())}function _(){l.forEach((F,U)=>{z(U)&&F.syncPosition()})}function W(F){const{"onUpdate:value":U,onUpdateValue:Q}=e,{nTriggerFormInput:pe,nTriggerFormChange:we}=u;Q&&Ue(Q,F),U&&Ue(U,F),h.value=F,pe(),we()}function le(F){const{range:U}=e;if(U){if(Array.isArray(F)){const{value:Q}=g;F.join()!==Q.join()&&W(F)}}else Array.isArray(F)||g.value[0]!==F&&W(F)}function ie(F,U){if(e.range){const Q=g.value.slice();Q.splice(U,1,F),le(Q)}else le(F)}function X(F,U,Q){const pe=Q!==void 0;Q||(Q=F-U>0?1:-1);const we=k.value||[],{step:ze}=e;if(ze==="mark"){const Ze=Ie(F,we.concat(U),pe?Q:void 0);return Ze?Ze.value:U}if(ze<=0)return U;const{value:Ve}=p;let Ne;if(pe){const Ze=Number((U/ze).toFixed(Ve)),Tt=Math.floor(Ze),wr=Ze>Tt?Tt:Tt-1,Mt=Ze0)&&(pe===null||Ve0?1:-1),U)}function je(F){var U,Q;if(f.value||!eh(F)&&F.button!==IE)return;const pe=de(F);if(pe===void 0)return;const we=g.value.slice(),ze=e.range?(Q=(U=Ie(pe,we))===null||U===void 0?void 0:U.index)!==null&&Q!==void 0?Q:-1:0;ze!==-1&&(F.preventDefault(),R(ze),$e(),ie(X(pe,g.value[ze]),ze))}function $e(){S.value||(S.value=!0,e.onDragstart&&Ue(e.onDragstart),ft("touchend",document,E),ft("mouseup",document,E),ft("touchmove",document,y),ft("mousemove",document,y))}function Le(){S.value&&(S.value=!1,e.onDragend&&Ue(e.onDragend),ot("touchend",document,E),ot("mouseup",document,E),ot("touchmove",document,y),ot("mousemove",document,y))}function y(F){const{value:U}=I;if(!S.value||U===-1){Le();return}const Q=de(F);Q!==void 0&&ie(X(Q,g.value[U]),U)}function E(){Le()}function q(F){I.value=F,f.value||(x.value=F)}function ne(F){I.value===F&&(I.value=-1,Le()),x.value===F&&(x.value=-1)}function ae(F){x.value=F}function he(F){x.value===F&&(x.value=-1)}Xe(I,(F,U)=>void Jt(()=>B.value=U)),Xe(v,()=>{if(e.marks){if(M.value)return;M.value=!0,Jt(()=>{M.value=!1})}Jt(_)}),tr(()=>{Le()});const ge=N(()=>{const{self:{markFontSize:F,railColor:U,railColorHover:Q,fillColor:pe,fillColorHover:we,handleColor:ze,opacityDisabled:Ve,dotColor:Ne,dotColorModal:Ze,handleBoxShadow:Tt,handleBoxShadowHover:wr,handleBoxShadowActive:Mt,handleBoxShadowFocus:ko,dotBorder:ce,dotBoxShadow:be,railHeight:Me,railWidthVertical:rt,handleSize:mt,dotHeight:At,dotWidth:cr,dotBorderRadius:lt,fontSize:Gt,dotBorderActive:Nr,dotColorPopover:na},common:{cubicBezierEaseInOut:Ks}}=n.value;return{"--n-bezier":Ks,"--n-dot-border":ce,"--n-dot-border-active":Nr,"--n-dot-border-radius":lt,"--n-dot-box-shadow":be,"--n-dot-color":Ne,"--n-dot-color-modal":Ze,"--n-dot-color-popover":na,"--n-dot-height":At,"--n-dot-width":cr,"--n-fill-color":pe,"--n-fill-color-hover":we,"--n-font-size":Gt,"--n-handle-box-shadow":Tt,"--n-handle-box-shadow-active":Mt,"--n-handle-box-shadow-focus":ko,"--n-handle-box-shadow-hover":wr,"--n-handle-color":ze,"--n-handle-size":mt,"--n-opacity-disabled":Ve,"--n-rail-color":U,"--n-rail-color-hover":Q,"--n-rail-height":Me,"--n-rail-width-vertical":rt,"--n-mark-font-size":F}}),ee=o?Nt("slider",void 0,ge,e):void 0,ue=N(()=>{const{self:{fontSize:F,indicatorColor:U,indicatorBoxShadow:Q,indicatorTextColor:pe,indicatorBorderRadius:we}}=n.value;return{"--n-font-size":F,"--n-indicator-border-radius":we,"--n-indicator-box-shadow":Q,"--n-indicator-color":U,"--n-indicator-text-color":pe}}),oe=o?Nt("slider-indicator",void 0,ue,e):void 0;return{mergedClsPrefix:t,namespace:r,uncontrolledValue:h,mergedValue:v,mergedDisabled:f,mergedPlacement:w,isMounted:zs(),adjustedTo:Jr(e),dotTransitionDisabled:M,markInfos:A,isShowTooltip:z,shouldKeepTooltipTransition:P,handleRailRef:i,setHandleRefs:s,setFollowerRefs:c,fillStyle:Z,getHandleStyle:C,activeIndex:I,arrifiedValues:g,followerEnabledIndexSet:d,handleRailMouseDown:je,handleHandleFocus:q,handleHandleBlur:ne,handleHandleMouseEnter:ae,handleHandleMouseLeave:he,handleRailKeyDown:Fe,indicatorCssVars:o?void 0:ue,indicatorThemeClass:oe==null?void 0:oe.themeClass,indicatorOnRender:oe==null?void 0:oe.onRender,cssVars:o?void 0:ge,themeClass:ee==null?void 0:ee.themeClass,onRender:ee==null?void 0:ee.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:r,formatTooltip:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),b("div",{class:[`${t}-slider`,r,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},b("div",{class:`${t}-slider-rail`},b("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?b("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(n=>b("div",{key:n.label,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:n.active}],style:n.style}))):null,b("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((n,i)=>{const a=this.isShowTooltip(i);return b(sd,null,{default:()=>[b(ld,null,{default:()=>b("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(n,i),onFocus:()=>{this.handleHandleFocus(i)},onBlur:()=>{this.handleHandleBlur(i)},onMouseenter:()=>{this.handleHandleMouseEnter(i)},onMouseleave:()=>{this.handleHandleMouseLeave(i)}},Tn(this.$slots.thumb,()=>[b("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&b(cd,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Jr.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>b($r,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var s;return a?((s=this.indicatorOnRender)===null||s===void 0||s.call(this),b("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof o=="function"?o(n):n)):null}})})]})})),this.marks?b("div",{class:`${t}-slider-marks`},this.markInfos.map(n=>b("div",{key:n.label,class:`${t}-slider-mark`,style:n.style},n.label))):null))}}),ME={name:"Split",common:me},AE=ME,OE=L("text",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); +`,[G("strong",` + font-weight: var(--n-font-weight-strong); + `),G("italic",{fontStyle:"italic"}),G("underline",{textDecoration:"underline"}),G("code",` + line-height: 1.4; + display: inline-block; + font-family: var(--n-font-famliy-mono); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + box-sizing: border-box; + padding: .05em .35em 0 .35em; + border-radius: var(--n-code-border-radius); + font-size: .9em; + color: var(--n-code-text-color); + background-color: var(--n-code-color); + border: var(--n-code-border); + `)]),DE=Object.assign(Object.assign({},We.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),BE=ye({name:"Text",props:DE,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=St(e),o=We("Typography","-text",OE,II,e,t),n=N(()=>{const{depth:a,type:s}=e,l=s==="default"?a===void 0?"textColor":`textColor${a}Depth`:ve("textColor",s),{common:{fontWeightStrong:c,fontFamilyMono:d,cubicBezierEaseInOut:u},self:{codeTextColor:f,codeBorderRadius:p,codeColor:h,codeBorder:m,[l]:v}}=o.value;return{"--n-bezier":u,"--n-text-color":v,"--n-font-weight-strong":c,"--n-font-famliy-mono":d,"--n-code-border-radius":p,"--n-code-text-color":f,"--n-code-color":h,"--n-code-border":m}}),i=r?Nt("text",N(()=>`${e.type[0]}${e.depth||""}`),n,e):void 0;return{mergedClsPrefix:t,compitableTag:nd(e,["as","tag"]),cssVars:r?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,r;const{mergedClsPrefix:o}=this;(e=this.onRender)===null||e===void 0||e.call(this);const n=[`${o}-text`,this.themeClass,{[`${o}-text--code`]:this.code,[`${o}-text--delete`]:this.delete,[`${o}-text--strong`]:this.strong,[`${o}-text--italic`]:this.italic,[`${o}-text--underline`]:this.underline}],i=(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t);return this.code?b("code",{class:n,style:this.cssVars},this.delete?b("del",null,i):i):this.delete?b("del",{class:n,style:this.cssVars},i):b(this.compitableTag||"span",{class:n,style:this.cssVars},i)}}),FE=()=>({}),LE={name:"Equation",common:me,self:FE},HE=LE,jE={name:"dark",common:me,Alert:uT,Anchor:vT,AutoComplete:ET,Avatar:pg,AvatarGroup:DT,BackTop:LT,Badge:jT,Breadcrumb:UT,Button:lr,ButtonGroup:sR,Calendar:o5,Card:vg,Carousel:v5,Cascader:w5,Checkbox:Yn,Code:bg,Collapse:T5,CollapseTransition:I5,ColorPicker:a5,DataTable:X5,DatePicker:x$,Descriptions:_$,Dialog:Og,Divider:M$,Drawer:D$,Dropdown:zd,DynamicInput:L$,DynamicTags:W$,Element:U$,Empty:sn,Ellipsis:_g,Equation:HE,Flex:q$,Form:t3,GradientText:K3,Icon:t$,IconWrapper:Y3,Image:HI,Input:Sr,InputNumber:cR,LegacyTransfer:ZI,Layout:uR,List:gR,LoadingBar:bR,Log:yR,Menu:TR,Mention:SR,Message:iR,Modal:I$,Notification:eR,PageHeader:IR,Pagination:Cg,Popconfirm:AR,Popover:ln,Popselect:xg,Progress:Kg,QrCode:TE,Radio:Pg,Rate:FR,Result:NR,Row:LI,Scrollbar:sr,Select:yg,Skeleton:$E,Slider:VR,Space:Dg,Spin:XR,Statistic:QR,Steps:oI,Switch:aI,Table:dI,Tabs:pI,Tag:cg,Thing:vI,TimePicker:Ag,Timeline:yI,Tooltip:Hs,Transfer:wI,Tree:Gg,TreeSelect:TI,Typography:zI,Upload:OI,Watermark:BI,Split:AE},NE={__name:"LayoutDefault",setup(e){return(t,r)=>(Ke(),Ct(Ce(z5),{theme:Ce(jE),abstract:""},{default:Be(()=>[ke(Ce(mE),null,{default:Be(()=>[ke(Ce(_E),null,{default:Be(()=>[ke(Ce(UI),null,{default:Be(()=>[ke(Ce(KI),null,{default:Be(()=>[_s(t.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3})]),_:3},8,["theme"]))}};function Ws(e){return Lc()?(Oh(e),!0):!1}function Br(e){return typeof e=="function"?e():Ce(e)}const Hd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const WE=Object.prototype.toString,VE=e=>WE.call(e)==="[object Object]",mc=()=>{};function sv(e,t){function r(...o){return new Promise((n,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(n).catch(i)})}return r}const lv=e=>e();function UE(e,t=!0,r=!0,o=!1){let n=0,i,a=!0,s=mc,l;const c=()=>{i&&(clearTimeout(i),i=void 0,s(),s=mc)};return u=>{const f=Br(e),p=Date.now()-n,h=()=>l=u();return c(),f<=0?(n=Date.now(),h()):(p>f&&(r||!a)?(n=Date.now(),h()):t&&(l=new Promise((m,v)=>{s=o?v:m,i=setTimeout(()=>{n=Date.now(),a=!0,m(h()),c()},Math.max(0,f-p))})),!r&&!i&&(i=setTimeout(()=>a=!0,f)),a=!1,l)}}function KE(e=lv){const t=Y(!0);function r(){t.value=!1}function o(){t.value=!0}const n=(...i)=>{t.value&&e(...i)};return{isActive:bo(t),pause:r,resume:o,eventFilter:n}}function qE(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const o=t;t=void 0,o&&await o},r}function GE(e,t=200,r=!1,o=!0,n=!1){return sv(UE(t,r,o,n),e)}function YE(e,t,r={}){const{eventFilter:o=lv,...n}=r;return Xe(e,sv(o,t),n)}function XE(e,t,r={}){const{eventFilter:o,...n}=r,{eventFilter:i,pause:a,resume:s,isActive:l}=KE(o);return{stop:YE(e,t,{...n,eventFilter:i}),pause:a,resume:s,isActive:l}}function JE(e,t,r={}){const{immediate:o=!0}=r,n=Y(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function s(){n.value=!1,a()}function l(...c){a(),n.value=!0,i=setTimeout(()=>{n.value=!1,i=null,e(...c)},Br(t))}return o&&(n.value=!0,Hd&&l()),Ws(s),{isPending:bo(n),start:l,stop:s}}function jd(e){var t;const r=Br(e);return(t=r==null?void 0:r.$el)!=null?t:r}const ra=Hd?window:void 0,Vs=Hd?window.navigator:void 0;function us(...e){let t,r,o,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,o,n]=e,t=ra):[t,r,o,n]=e,!t)return mc;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const i=[],a=()=>{i.forEach(d=>d()),i.length=0},s=(d,u,f,p)=>(d.addEventListener(u,f,p),()=>d.removeEventListener(u,f,p)),l=Xe(()=>[jd(t),Br(n)],([d,u])=>{if(a(),!d)return;const f=VE(u)?{...u}:u;i.push(...r.flatMap(p=>o.map(h=>s(d,p,h,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Ws(c),c}function ZE(){const e=Y(!1);return wo()&&Ft(()=>{e.value=!0}),e}function Xn(e){const t=ZE();return N(()=>(t.value,!!e()))}function QE(e,t={}){const{window:r=ra}=t,o=Xn(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let n;const i=Y(!1),a=c=>{i.value=c.matches},s=()=>{n&&("removeEventListener"in n?n.removeEventListener("change",a):n.removeListener(a))},l=Tr(()=>{o.value&&(s(),n=r.matchMedia(Br(e)),"addEventListener"in n?n.addEventListener("change",a):n.addListener(a),i.value=n.matches)});return Ws(()=>{l(),s(),n=void 0}),i}function rh(e,t={}){const{controls:r=!1,navigator:o=Vs}=t,n=Xn(()=>o&&"permissions"in o);let i;const a=typeof e=="string"?{name:e}:e,s=Y(),l=()=>{i&&(s.value=i.state)},c=qE(async()=>{if(n.value){if(!i)try{i=await o.permissions.query(a),us(i,"change",l),l()}catch{s.value="prompt"}return i}});return c(),r?{state:s,isSupported:n,query:c}:s}function e4(e={}){const{navigator:t=Vs,read:r=!1,source:o,copiedDuring:n=1500,legacy:i=!1}=e,a=Xn(()=>t&&"clipboard"in t),s=rh("clipboard-read"),l=rh("clipboard-write"),c=N(()=>a.value||i),d=Y(""),u=Y(!1),f=JE(()=>u.value=!1,n);function p(){a.value&&s.value!=="denied"?t.clipboard.readText().then(g=>{d.value=g}):d.value=v()}c.value&&r&&us(["copy","cut"],p);async function h(g=Br(o)){c.value&&g!=null&&(a.value&&l.value!=="denied"?await t.clipboard.writeText(g):m(g),d.value=g,u.value=!0,f.start())}function m(g){const T=document.createElement("textarea");T.value=g??"",T.style.position="absolute",T.style.opacity="0",document.body.appendChild(T),T.select(),document.execCommand("copy"),T.remove()}function v(){var g,T,w;return(w=(T=(g=document==null?void 0:document.getSelection)==null?void 0:g.call(document))==null?void 0:T.toString())!=null?w:""}return{isSupported:c,text:d,copied:u,copy:h}}function t4(e,t,r={}){const{window:o=ra,...n}=r;let i;const a=Xn(()=>o&&"MutationObserver"in o),s=()=>{i&&(i.disconnect(),i=void 0)},l=Xe(()=>jd(e),u=>{s(),a.value&&o&&u&&(i=new MutationObserver(t),i.observe(u,n))},{immediate:!0}),c=()=>i==null?void 0:i.takeRecords(),d=()=>{s(),l()};return Ws(d),{isSupported:a,stop:d,takeRecords:c}}function r4(e,t,r={}){const{window:o=ra,initialValue:n="",observe:i=!1}=r,a=Y(n),s=N(()=>{var c;return jd(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function l(){var c;const d=Br(e),u=Br(s);if(u&&o){const f=(c=o.getComputedStyle(u).getPropertyValue(d))==null?void 0:c.trim();a.value=f||n}}return i&&t4(s,l,{attributeFilter:["style","class"],window:o}),Xe([s,()=>Br(e)],l,{immediate:!0}),Xe(a,c=>{var d;(d=s.value)!=null&&d.style&&s.value.style.setProperty(Br(e),c)}),a}function o4(e={}){var t;const r=Y((t=e.enabled)!=null?t:!1),o=e.video,n=e.audio,{navigator:i=Vs}=e,a=Xn(()=>{var p;return(p=i==null?void 0:i.mediaDevices)==null?void 0:p.getDisplayMedia}),s={audio:n,video:o},l=Mr();async function c(){if(!(!a.value||l.value))return l.value=await i.mediaDevices.getDisplayMedia(s),l.value}async function d(){var p;(p=l.value)==null||p.getTracks().forEach(h=>h.stop()),l.value=void 0}function u(){d(),r.value=!1}async function f(){return await c(),l.value&&(r.value=!0),l.value}return Xe(r,p=>{p?c():d()},{immediate:!0}),{isSupported:a,stream:l,start:f,stop:u,enabled:r}}function n4(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:n=!1,write:i=!0,window:a=ra}=t;if(!a)return Gr(r);const s=Gr({});function l(){if(e==="history")return a.location.search||"";if(e==="hash"){const g=a.location.hash||"",T=g.indexOf("?");return T>0?g.slice(T):""}else return(a.location.hash||"").replace(/^#/,"")}function c(g){const T=g.toString();if(e==="history")return`${T?`?${T}`:""}${a.location.hash||""}`;if(e==="hash-params")return`${a.location.search||""}${T?`#${T}`:""}`;const w=a.location.hash||"#",k=w.indexOf("?");return k>0?`${w.slice(0,k)}${T?`?${T}`:""}`:`${w}${T?`?${T}`:""}`}function d(){return new URLSearchParams(l())}function u(g){const T=new Set(Object.keys(s));for(const w of g.keys()){const k=g.getAll(w);s[w]=k.length>1?k:g.get(w)||"",T.delete(w)}Array.from(T).forEach(w=>delete s[w])}const{pause:f,resume:p}=XE(s,()=>{const g=new URLSearchParams("");Object.keys(s).forEach(T=>{const w=s[T];Array.isArray(w)?w.forEach(k=>g.append(T,k)):o&&w==null||n&&!w?g.delete(T):g.set(T,w)}),h(g)},{deep:!0});function h(g,T){f(),T&&u(g),a.history.replaceState(a.history.state,a.document.title,a.location.pathname+c(g)),p()}function m(){i&&h(d(),!0)}us(a,"popstate",m,!1),e!=="history"&&us(a,"hashchange",m,!1);const v=d();return v.keys().next().value?u(v):Object.assign(s,r),s}function i4(e={}){var t,r;const o=Y((t=e.enabled)!=null?t:!1),n=Y((r=e.autoSwitch)!=null?r:!0),i=Y(e.constraints),{navigator:a=Vs}=e,s=Xn(()=>{var m;return(m=a==null?void 0:a.mediaDevices)==null?void 0:m.getUserMedia}),l=Mr();function c(m){switch(m){case"video":{if(i.value)return i.value.video||!1;break}case"audio":{if(i.value)return i.value.audio||!1;break}}}async function d(){if(!(!s.value||l.value))return l.value=await a.mediaDevices.getUserMedia({video:c("video"),audio:c("audio")}),l.value}function u(){var m;(m=l.value)==null||m.getTracks().forEach(v=>v.stop()),l.value=void 0}function f(){u(),o.value=!1}async function p(){return await d(),l.value&&(o.value=!0),l.value}async function h(){return u(),await p()}return Xe(o,m=>{m?d():u()},{immediate:!0}),Xe(i,()=>{n.value&&l.value&&h()},{immediate:!0}),{isSupported:s,stream:l,start:p,stop:f,restart:h,constraints:i,enabled:o,autoSwitch:n}}const a4={__name:"FormCreatePeer",props:{loading:{type:Boolean}},emits:["submit"],setup(e,{emit:t}){const r=t;return(o,n)=>(Ke(),Ct(Ce(kr),{size:"large",onClick:n[0]||(n[0]=i=>r("submit")),loading:e.loading},{default:Be(()=>[mr(" Create ")]),_:1},8,["loading"]))}};class s4{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const r of this._parts)t.push(r);return l4(t).buffer}}function l4(e){let t=0;for(const n of e)t+=n.byteLength;const r=new Uint8Array(t);let o=0;for(const n of e){const i=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);r.set(i,o),o+=n.byteLength}return r}function cv(e){return new c4(e).unpack()}function dv(e){const t=new d4,r=t.pack(e);return r instanceof Promise?r.then(()=>t.getBuffer()):t.getBuffer()}class c4{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let r;if((r=t^160)<=15)return this.unpack_raw(r);if((r=t^176)<=15)return this.unpack_string(r);if((r=t^144)<=15)return this.unpack_array(r);if((r=t^128)<=15)return this.unpack_map(r);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return r=this.unpack_uint16(),this.unpack_string(r);case 217:return r=this.unpack_uint32(),this.unpack_string(r);case 218:return r=this.unpack_uint16(),this.unpack_raw(r);case 219:return r=this.unpack_uint32(),this.unpack_raw(r);case 220:return r=this.unpack_uint16(),this.unpack_array(r);case 221:return r=this.unpack_uint32(),this.unpack_array(r);case 222:return r=this.unpack_uint16(),this.unpack_map(r);case 223:return r=this.unpack_uint32(),this.unpack_map(r)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),r=(t[0]&255)*256+(t[1]&255);return this.index+=2,r}unpack_uint32(){const t=this.read(4),r=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,r}unpack_uint64(){const t=this.read(8),r=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,r}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length>31,o=(t>>23&255)-127,n=t&8388607|8388608;return(r===0?1:-1)*n*2**(o-23)}unpack_double(){const t=this.unpack_uint32(),r=this.unpack_uint32(),o=t>>31,n=(t>>20&2047)-1023,a=(t&1048575|1048576)*2**(n-20)+r*2**(n-52);return(o===0?1:-1)*a}read(t){const r=this.index;if(r+t<=this.length)return this.dataView.subarray(r,r+t);throw new Error("BinaryPackFailure: read index out of range")}}class d4{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const r=t.constructor;if(t instanceof Array){const o=this.pack_array(t);if(o instanceof Promise)return o.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const o=t;this.pack_bin(new Uint8Array(o.buffer,o.byteOffset,o.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(o=>{this.pack_bin(new Uint8Array(o)),this._bufferBuilder.flush()});if(r==Object||r.toString().startsWith("class")){const o=this.pack_object(t);if(o instanceof Promise)return o.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${r.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const r=t.length;if(r<=15)this.pack_uint8(160+r);else if(r<=65535)this._bufferBuilder.append(218),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const r=this._textEncoder.encode(t),o=r.length;if(o<=15)this.pack_uint8(176+o);else if(o<=65535)this._bufferBuilder.append(216),this.pack_uint16(o);else if(o<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(o);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(r)}pack_array(t){const r=t.length;if(r<=15)this.pack_uint8(144+r);else if(r<=65535)this._bufferBuilder.append(220),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(r);else throw new Error("Invalid length");const o=n=>{if(no(n+1)):o(n+1)}};return o(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let r=0;t<0&&(r=1,t=-t);const o=Math.floor(Math.log(t)/Math.LN2),n=t/2**o-1,i=Math.floor(n*2**52),a=2**32,s=r<<31|o+1023<<20|i/a&1048575,l=i%a;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const r=Object.keys(t),o=r.length;if(o<=15)this.pack_uint8(128+o);else if(o<=65535)this._bufferBuilder.append(222),this.pack_uint16(o);else if(o<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(o);else throw new Error("Invalid length");const n=i=>{if(in(i+1))}return n(i+1)}};return n(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const r=t&4294967295;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_uint64(t){const r=t/4294967296,o=t%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((o&4278190080)>>>24),this._bufferBuilder.append((o&16711680)>>>16),this._bufferBuilder.append((o&65280)>>>8),this._bufferBuilder.append(o&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const r=Math.floor(t/4294967296),o=t%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((o&4278190080)>>>24),this._bufferBuilder.append((o&16711680)>>>16),this._bufferBuilder.append((o&65280)>>>8),this._bufferBuilder.append(o&255)}constructor(){this._bufferBuilder=new s4,this._textEncoder=new TextEncoder}}let uv=!0,fv=!0;function Da(e,t,r){const o=e.match(t);return o&&o.length>=r&&parseInt(o[r],10)}function cn(e,t,r){if(!e.RTCPeerConnection)return;const o=e.RTCPeerConnection.prototype,n=o.addEventListener;o.addEventListener=function(a,s){if(a!==t)return n.apply(this,arguments);const l=c=>{const d=r(c);d&&(s.handleEvent?s.handleEvent(d):s(d))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),n.apply(this,[a,l])};const i=o.removeEventListener;o.removeEventListener=function(a,s){if(a!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(s))return i.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,i.apply(this,[a,l])},Object.defineProperty(o,"on"+t,{get(){return this["_on"+t]},set(a){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),a&&this.addEventListener(t,this["_on"+t]=a)},enumerable:!0,configurable:!0})}function u4(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(uv=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function f4(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(fv=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function hv(){if(typeof window=="object"){if(uv)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function Nd(e,t){fv&&console.warn(e+" is deprecated, please use "+t+" instead.")}function h4(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:r}=e;if(r.mozGetUserMedia)t.browser="firefox",t.version=Da(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=Da(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&r.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=Da(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function oh(e){return Object.prototype.toString.call(e)==="[object Object]"}function pv(e){return oh(e)?Object.keys(e).reduce(function(t,r){const o=oh(e[r]),n=o?pv(e[r]):e[r],i=o&&!Object.keys(n).length;return n===void 0||i?t:Object.assign(t,{[r]:n})},{}):e}function gc(e,t,r){!t||r.has(t.id)||(r.set(t.id,t),Object.keys(t).forEach(o=>{o.endsWith("Id")?gc(e,e.get(t[o]),r):o.endsWith("Ids")&&t[o].forEach(n=>{gc(e,e.get(n),r)})}))}function nh(e,t,r){const o=r?"outbound-rtp":"inbound-rtp",n=new Map;if(t===null)return n;const i=[];return e.forEach(a=>{a.type==="track"&&a.trackIdentifier===t.id&&i.push(a)}),i.forEach(a=>{e.forEach(s=>{s.type===o&&s.trackId===a.id&&gc(e,s,n)})}),n}const ih=hv;function mv(e,t){const r=e&&e.navigator;if(!r.mediaDevices)return;const o=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const d=typeof s[c]=="object"?s[c]:{ideal:s[c]};d.exact!==void 0&&typeof d.exact=="number"&&(d.min=d.max=d.exact);const u=function(f,p){return f?f+p.charAt(0).toUpperCase()+p.slice(1):p==="deviceId"?"sourceId":p};if(d.ideal!==void 0){l.optional=l.optional||[];let f={};typeof d.ideal=="number"?(f[u("min",c)]=d.ideal,l.optional.push(f),f={},f[u("max",c)]=d.ideal,l.optional.push(f)):(f[u("",c)]=d.ideal,l.optional.push(f))}d.exact!==void 0&&typeof d.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[u("",c)]=d.exact):["min","max"].forEach(f=>{d[f]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[u(f,c)]=d[f])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},n=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(d,u,f){u in d&&!(f in d)&&(d[f]=d[u],delete d[u])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=o(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const d=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(r.mediaDevices.getSupportedConstraints&&r.mediaDevices.getSupportedConstraints().facingMode&&!d)){delete s.video.facingMode;let u;if(c.exact==="environment"||c.ideal==="environment"?u=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(u=["front"]),u)return r.mediaDevices.enumerateDevices().then(f=>{f=f.filter(h=>h.kind==="videoinput");let p=f.find(h=>u.some(m=>h.label.toLowerCase().includes(m)));return!p&&f.length&&u.includes("back")&&(p=f[f.length-1]),p&&(s.video.deviceId=c.exact?{exact:p.deviceId}:{ideal:p.deviceId}),s.video=o(s.video),ih("chrome: "+JSON.stringify(s)),l(s)})}s.video=o(s.video)}return ih("chrome: "+JSON.stringify(s)),l(s)},i=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},a=function(s,l,c){n(s,d=>{r.webkitGetUserMedia(d,l,u=>{c&&c(i(u))})})};if(r.getUserMedia=a.bind(r),r.mediaDevices.getUserMedia){const s=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(l){return n(l,c=>s(c).then(d=>{if(c.audio&&!d.getAudioTracks().length||c.video&&!d.getVideoTracks().length)throw d.getTracks().forEach(u=>{u.stop()}),new DOMException("","NotFoundError");return d},d=>Promise.reject(i(d))))}}}function p4(e,t){if(!(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices)&&e.navigator.mediaDevices){if(typeof t!="function"){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}e.navigator.mediaDevices.getDisplayMedia=function(o){return t(o).then(n=>{const i=o.video&&o.video.width,a=o.video&&o.video.height,s=o.video&&o.video.frameRate;return o.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:n,maxFrameRate:s||3}},i&&(o.video.mandatory.maxWidth=i),a&&(o.video.mandatory.maxHeight=a),e.navigator.mediaDevices.getUserMedia(o)})}}}function gv(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function vv(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(r){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=r)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=o=>{o.stream.addEventListener("addtrack",n=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===n.track.id):i={track:n.track};const a=new Event("track");a.track=n.track,a.receiver=i,a.transceiver={receiver:i},a.streams=[o.stream],this.dispatchEvent(a)}),o.stream.getTracks().forEach(n=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===n.id):i={track:n};const a=new Event("track");a.track=n,a.receiver=i,a.transceiver={receiver:i},a.streams=[o.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else cn(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function bv(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(n,i){return{track:i,get dtmf(){return this._dtmf===void 0&&(i.kind==="audio"?this._dtmf=n.createDTMFSender(i):this._dtmf=null),this._dtmf},_pc:n}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=n.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){i.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(i){this._senders=this._senders||[],r.apply(this,[i]),i.getTracks().forEach(a=>{this._senders.push(t(this,a))})};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(i){this._senders=this._senders||[],o.apply(this,[i]),i.getTracks().forEach(a=>{const s=this._senders.find(l=>l.track===a);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const o=t.apply(this,[]);return o.forEach(n=>n._pc=this),o},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function xv(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[o,n,i]=arguments;if(arguments.length>0&&typeof o=="function")return t.apply(this,arguments);if(t.length===0&&(arguments.length===0||typeof o!="function"))return t.apply(this,[]);const a=function(l){const c={};return l.result().forEach(u=>{const f={id:u.id,timestamp:u.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[u.type]||u.type};u.names().forEach(p=>{f[p]=u.stat(p)}),c[f.id]=f}),c},s=function(l){return new Map(Object.keys(l).map(c=>[c,l[c]]))};if(arguments.length>=2){const l=function(c){n(s(a(c)))};return t.apply(this,[l,o])}return new Promise((l,c)=>{t.apply(this,[function(d){l(s(a(d)))},c])}).then(n,i)}}function yv(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const r=e.RTCPeerConnection.prototype.getSenders;r&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=r.apply(this,[]);return i.forEach(a=>a._pc=this),i});const o=e.RTCPeerConnection.prototype.addTrack;o&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=o.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>nh(a,i.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const r=e.RTCPeerConnection.prototype.getReceivers;r&&(e.RTCPeerConnection.prototype.getReceivers=function(){const n=r.apply(this,[]);return n.forEach(i=>i._pc=this),n}),cn(e,"track",o=>(o.receiver._pc=o.srcElement,o)),e.RTCRtpReceiver.prototype.getStats=function(){const n=this;return this._pc.getStats().then(i=>nh(i,n.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const o=arguments[0];let n,i,a;return this.getSenders().forEach(s=>{s.track===o&&(n?a=!0:n=s)}),this.getReceivers().forEach(s=>(s.track===o&&(i?a=!0:i=s),s.track===o)),a||n&&i?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):n?n.getStats():i?i.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Cv(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(a=>this._shimmedLocalStreams[a][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(a,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._shimmedLocalStreams=this._shimmedLocalStreams||{},a.getTracks().forEach(c=>{if(this.getSenders().find(u=>u.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();r.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[a.id]=[a].concat(l)};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[a.id],o.apply(this,arguments)};const n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},a&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(a);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),n.apply(this,arguments)}}function Sv(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Cv(e);const r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const d=r.apply(this);return this._reverseStreams=this._reverseStreams||{},d.map(u=>this._reverseStreams[u.id])};const o=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(d){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},d.getTracks().forEach(u=>{if(this.getSenders().find(p=>p.track===u))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[d.id]){const u=new e.MediaStream(d.getTracks());this._streams[d.id]=u,this._reverseStreams[u.id]=d,d=u}o.apply(this,[d])};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(d){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},n.apply(this,[this._streams[d.id]||d]),delete this._reverseStreams[this._streams[d.id]?this._streams[d.id].id:d.id],delete this._streams[d.id]},e.RTCPeerConnection.prototype.addTrack=function(d,u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const f=[].slice.call(arguments,1);if(f.length!==1||!f[0].getTracks().find(m=>m===d))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(m=>m.track===d))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const h=this._streams[u.id];if(h)h.addTrack(d),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const m=new e.MediaStream([d]);this._streams[u.id]=m,this._reverseStreams[m.id]=u,this.addStream(m)}return this.getSenders().find(m=>m.track===d)};function i(c,d){let u=d.sdp;return Object.keys(c._reverseStreams||[]).forEach(f=>{const p=c._reverseStreams[f],h=c._streams[p.id];u=u.replace(new RegExp(h.id,"g"),p.id)}),new RTCSessionDescription({type:d.type,sdp:u})}function a(c,d){let u=d.sdp;return Object.keys(c._reverseStreams||[]).forEach(f=>{const p=c._reverseStreams[f],h=c._streams[p.id];u=u.replace(new RegExp(p.id,"g"),h.id)}),new RTCSessionDescription({type:d.type,sdp:u})}["createOffer","createAnswer"].forEach(function(c){const d=e.RTCPeerConnection.prototype[c],u={[c](){const f=arguments;return arguments.length&&typeof arguments[0]=="function"?d.apply(this,[h=>{const m=i(this,h);f[0].apply(null,[m])},h=>{f[1]&&f[1].apply(null,h)},arguments[2]]):d.apply(this,arguments).then(h=>i(this,h))}};e.RTCPeerConnection.prototype[c]=u[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=a(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:i(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!d._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(d._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let f;Object.keys(this._streams).forEach(p=>{this._streams[p].getTracks().find(m=>d.track===m)&&(f=this._streams[p])}),f&&(f.getTracks().length===1?this.removeStream(this._reverseStreams[f.id]):f.removeTrack(d.track),this.dispatchEvent(new Event("negotiationneeded")))}}function vc(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){const o=e.RTCPeerConnection.prototype[r],n={[r](){return arguments[0]=new(r==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),o.apply(this,arguments)}};e.RTCPeerConnection.prototype[r]=n[r]})}function wv(e,t){cn(e,"negotiationneeded",r=>{const o=r.target;if(!((t.version<72||o.getConfiguration&&o.getConfiguration().sdpSemantics==="plan-b")&&o.signalingState!=="stable"))return r})}const ah=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:wv,shimAddTrackRemoveTrack:Sv,shimAddTrackRemoveTrackWithNative:Cv,shimGetDisplayMedia:p4,shimGetSendersWithDtmf:bv,shimGetStats:xv,shimGetUserMedia:mv,shimMediaStream:gv,shimOnTrack:vv,shimPeerConnection:vc,shimSenderReceiverGetStats:yv},Symbol.toStringTag,{value:"Module"}));function _v(e,t){const r=e&&e.navigator,o=e&&e.MediaStreamTrack;if(r.getUserMedia=function(n,i,a){Nd("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(n).then(i,a)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){const n=function(a,s,l){s in a&&!(l in a)&&(a[l]=a[s],delete a[s])},i=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(a){return typeof a=="object"&&typeof a.audio=="object"&&(a=JSON.parse(JSON.stringify(a)),n(a.audio,"autoGainControl","mozAutoGainControl"),n(a.audio,"noiseSuppression","mozNoiseSuppression")),i(a)},o&&o.prototype.getSettings){const a=o.prototype.getSettings;o.prototype.getSettings=function(){const s=a.apply(this,arguments);return n(s,"mozAutoGainControl","autoGainControl"),n(s,"mozNoiseSuppression","noiseSuppression"),s}}if(o&&o.prototype.applyConstraints){const a=o.prototype.applyConstraints;o.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),n(s,"autoGainControl","mozAutoGainControl"),n(s,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[s])}}}}function m4(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(o){if(!(o&&o.video)){const n=new DOMException("getDisplayMedia without video constraints is undefined");return n.name="NotFoundError",n.code=8,Promise.reject(n)}return o.video===!0?o.video={mediaSource:t}:o.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(o)})}function Pv(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function bc(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const i=e.RTCPeerConnection.prototype[n],a={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=a[n]});const r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},o=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[i,a,s]=arguments;return o.apply(this,[i||null]).then(l=>{if(t.version<53&&!a)try{l.forEach(c=>{c.type=r[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((d,u)=>{l.set(u,Object.assign({},d,{type:r[d.type]||d.type}))})}return l}).then(a,s)}}function kv(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const n=t.apply(this,[]);return n.forEach(i=>i._pc=this),n});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const n=r.apply(this,arguments);return n._pc=this,n}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Tv(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const o=t.apply(this,[]);return o.forEach(n=>n._pc=this),o}),cn(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function $v(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){Nd("removeStream","removeTrack"),this.getSenders().forEach(o=>{o.track&&r.getTracks().includes(o.track)&&this.removeTrack(o)})})}function Rv(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function Iv(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let o=arguments[1]&&arguments[1].sendEncodings;o===void 0&&(o=[]),o=[...o];const n=o.length>0;n&&o.forEach(a=>{if("rid"in a&&!/^[a-z0-9]{0,16}$/i.test(a.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in a&&!(parseFloat(a.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in a&&!(parseFloat(a.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const i=t.apply(this,arguments);if(n){const{sender:a}=i,s=a.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=o,a.sendEncodings=o,this.setParametersPromises.push(a.setParameters(s).then(()=>{delete a.sendEncodings}).catch(()=>{delete a.sendEncodings})))}return i})}function Ev(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const o=t.apply(this,arguments);return"encodings"in o||(o.encodings=[].concat(this.sendEncodings||[{}])),o})}function zv(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function Mv(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const sh=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:Iv,shimCreateAnswer:Mv,shimCreateOffer:zv,shimGetDisplayMedia:m4,shimGetParameters:Ev,shimGetUserMedia:_v,shimOnTrack:Pv,shimPeerConnection:bc,shimRTCDataChannel:Rv,shimReceiverGetStats:Tv,shimRemoveStream:$v,shimSenderGetStats:kv},Symbol.toStringTag,{value:"Module"}));function Av(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(o){this._localStreams||(this._localStreams=[]),this._localStreams.includes(o)||this._localStreams.push(o),o.getAudioTracks().forEach(n=>t.call(this,n,o)),o.getVideoTracks().forEach(n=>t.call(this,n,o))},e.RTCPeerConnection.prototype.addTrack=function(o,...n){return n&&n.forEach(i=>{this._localStreams?this._localStreams.includes(i)||this._localStreams.push(i):this._localStreams=[i]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){this._localStreams||(this._localStreams=[]);const o=this._localStreams.indexOf(r);if(o===-1)return;this._localStreams.splice(o,1);const n=r.getTracks();this.getSenders().forEach(i=>{n.includes(i.track)&&this.removeTrack(i)})})}}function Ov(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(r){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=r),this.addEventListener("track",this._onaddstreampoly=o=>{o.streams.forEach(n=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(n))return;this._remoteStreams.push(n);const i=new Event("addstream");i.stream=n,this.dispatchEvent(i)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const o=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(n){n.streams.forEach(i=>{if(o._remoteStreams||(o._remoteStreams=[]),o._remoteStreams.indexOf(i)>=0)return;o._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,o.dispatchEvent(a)})}),t.apply(o,arguments)}}}function Dv(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,r=t.createOffer,o=t.createAnswer,n=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(c,d){const u=arguments.length>=2?arguments[2]:arguments[0],f=r.apply(this,[u]);return d?(f.then(c,d),Promise.resolve()):f},t.createAnswer=function(c,d){const u=arguments.length>=2?arguments[2]:arguments[0],f=o.apply(this,[u]);return d?(f.then(c,d),Promise.resolve()):f};let s=function(l,c,d){const u=n.apply(this,[l]);return d?(u.then(c,d),Promise.resolve()):u};t.setLocalDescription=s,s=function(l,c,d){const u=i.apply(this,[l]);return d?(u.then(c,d),Promise.resolve()):u},t.setRemoteDescription=s,s=function(l,c,d){const u=a.apply(this,[l]);return d?(u.then(c,d),Promise.resolve()):u},t.addIceCandidate=s}function Bv(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const r=t.mediaDevices,o=r.getUserMedia.bind(r);t.mediaDevices.getUserMedia=n=>o(Fv(n))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(o,n,i){t.mediaDevices.getUserMedia(o).then(n,i)}).bind(t))}function Fv(e){return e&&e.video!==void 0?Object.assign({},e,{video:pv(e.video)}):e}function Lv(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(o,n){if(o&&o.iceServers){const i=[];for(let a=0;aa.receiver.track.kind==="audio");o.offerToReceiveAudio===!1&&n?n.direction==="sendrecv"?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":n.direction==="recvonly"&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):o.offerToReceiveAudio===!0&&!n&&this.addTransceiver("audio",{direction:"recvonly"}),typeof o.offerToReceiveVideo<"u"&&(o.offerToReceiveVideo=!!o.offerToReceiveVideo);const i=this.getTransceivers().find(a=>a.receiver.track.kind==="video");o.offerToReceiveVideo===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):o.offerToReceiveVideo===!0&&!i&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function Nv(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const lh=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:Nv,shimCallbacksAPI:Dv,shimConstraints:Fv,shimCreateOfferLegacy:jv,shimGetUserMedia:Bv,shimLocalStreamsAPI:Av,shimRTCIceServerUrls:Lv,shimRemoteStreamsAPI:Ov,shimTrackEventTransceiver:Hv},Symbol.toStringTag,{value:"Module"}));var Wv={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(r){return r.trim().split(` +`).map(o=>o.trim())},t.splitSections=function(r){return r.split(` +m=`).map((n,i)=>(i>0?"m="+n:n).trim()+`\r +`)},t.getDescription=function(r){const o=t.splitSections(r);return o&&o[0]},t.getMediaSections=function(r){const o=t.splitSections(r);return o.shift(),o},t.matchPrefix=function(r,o){return t.splitLines(r).filter(n=>n.indexOf(o)===0)},t.parseCandidate=function(r){let o;r.indexOf("a=candidate:")===0?o=r.substring(12).split(" "):o=r.substring(10).split(" ");const n={foundation:o[0],component:{1:"rtp",2:"rtcp"}[o[1]]||o[1],protocol:o[2].toLowerCase(),priority:parseInt(o[3],10),ip:o[4],address:o[4],port:parseInt(o[5],10),type:o[7]};for(let i=8;i0?o[0].split("/")[1]:"sendrecv",uri:o[1],attributes:o.slice(2).join(" ")}},t.writeExtmap=function(r){return"a=extmap:"+(r.id||r.preferredId)+(r.direction&&r.direction!=="sendrecv"?"/"+r.direction:"")+" "+r.uri+(r.attributes?" "+r.attributes:"")+`\r +`},t.parseFmtp=function(r){const o={};let n;const i=r.substring(r.indexOf(" ")+1).split(";");for(let a=0;a{r.parameters[a]!==void 0?i.push(a+"="+r.parameters[a]):i.push(a)}),o+="a=fmtp:"+n+" "+i.join(";")+`\r +`}return o},t.parseRtcpFb=function(r){const o=r.substring(r.indexOf(" ")+1).split(" ");return{type:o.shift(),parameter:o.join(" ")}},t.writeRtcpFb=function(r){let o="",n=r.payloadType;return r.preferredPayloadType!==void 0&&(n=r.preferredPayloadType),r.rtcpFeedback&&r.rtcpFeedback.length&&r.rtcpFeedback.forEach(i=>{o+="a=rtcp-fb:"+n+" "+i.type+(i.parameter&&i.parameter.length?" "+i.parameter:"")+`\r +`}),o},t.parseSsrcMedia=function(r){const o=r.indexOf(" "),n={ssrc:parseInt(r.substring(7,o),10)},i=r.indexOf(":",o);return i>-1?(n.attribute=r.substring(o+1,i),n.value=r.substring(i+1)):n.attribute=r.substring(o+1),n},t.parseSsrcGroup=function(r){const o=r.substring(13).split(" ");return{semantics:o.shift(),ssrcs:o.map(n=>parseInt(n,10))}},t.getMid=function(r){const o=t.matchPrefix(r,"a=mid:")[0];if(o)return o.substring(6)},t.parseFingerprint=function(r){const o=r.substring(14).split(" ");return{algorithm:o[0].toLowerCase(),value:o[1].toUpperCase()}},t.getDtlsParameters=function(r,o){return{role:"auto",fingerprints:t.matchPrefix(r+o,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(r,o){let n="a=setup:"+o+`\r +`;return r.fingerprints.forEach(i=>{n+="a=fingerprint:"+i.algorithm+" "+i.value+`\r +`}),n},t.parseCryptoLine=function(r){const o=r.substring(9).split(" ");return{tag:parseInt(o[0],10),cryptoSuite:o[1],keyParams:o[2],sessionParams:o.slice(3)}},t.writeCryptoLine=function(r){return"a=crypto:"+r.tag+" "+r.cryptoSuite+" "+(typeof r.keyParams=="object"?t.writeCryptoKeyParams(r.keyParams):r.keyParams)+(r.sessionParams?" "+r.sessionParams.join(" "):"")+`\r +`},t.parseCryptoKeyParams=function(r){if(r.indexOf("inline:")!==0)return null;const o=r.substring(7).split("|");return{keyMethod:"inline",keySalt:o[0],lifeTime:o[1],mkiValue:o[2]?o[2].split(":")[0]:void 0,mkiLength:o[2]?o[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(r){return r.keyMethod+":"+r.keySalt+(r.lifeTime?"|"+r.lifeTime:"")+(r.mkiValue&&r.mkiLength?"|"+r.mkiValue+":"+r.mkiLength:"")},t.getCryptoParameters=function(r,o){return t.matchPrefix(r+o,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(r,o){const n=t.matchPrefix(r+o,"a=ice-ufrag:")[0],i=t.matchPrefix(r+o,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substring(12),password:i.substring(10)}:null},t.writeIceParameters=function(r){let o="a=ice-ufrag:"+r.usernameFragment+`\r +a=ice-pwd:`+r.password+`\r +`;return r.iceLite&&(o+=`a=ice-lite\r +`),o},t.parseRtpParameters=function(r){const o={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},i=t.splitLines(r)[0].split(" ");o.profile=i[2];for(let s=3;s{o.headerExtensions.push(t.parseExtmap(s))});const a=t.matchPrefix(r,"a=rtcp-fb:* ").map(t.parseRtcpFb);return o.codecs.forEach(s=>{a.forEach(l=>{s.rtcpFeedback.find(d=>d.type===l.type&&d.parameter===l.parameter)||s.rtcpFeedback.push(l)})}),o},t.writeRtpDescription=function(r,o){let n="";n+="m="+r+" ",n+=o.codecs.length>0?"9":"0",n+=" "+(o.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=o.codecs.map(a=>a.preferredPayloadType!==void 0?a.preferredPayloadType:a.payloadType).join(" ")+`\r +`,n+=`c=IN IP4 0.0.0.0\r +`,n+=`a=rtcp:9 IN IP4 0.0.0.0\r +`,o.codecs.forEach(a=>{n+=t.writeRtpMap(a),n+=t.writeFmtp(a),n+=t.writeRtcpFb(a)});let i=0;return o.codecs.forEach(a=>{a.maxptime>i&&(i=a.maxptime)}),i>0&&(n+="a=maxptime:"+i+`\r +`),o.headerExtensions&&o.headerExtensions.forEach(a=>{n+=t.writeExtmap(a)}),n},t.parseRtpEncodingParameters=function(r){const o=[],n=t.parseRtpParameters(r),i=n.fecMechanisms.indexOf("RED")!==-1,a=n.fecMechanisms.indexOf("ULPFEC")!==-1,s=t.matchPrefix(r,"a=ssrc:").map(f=>t.parseSsrcMedia(f)).filter(f=>f.attribute==="cname"),l=s.length>0&&s[0].ssrc;let c;const d=t.matchPrefix(r,"a=ssrc-group:FID").map(f=>f.substring(17).split(" ").map(h=>parseInt(h,10)));d.length>0&&d[0].length>1&&d[0][0]===l&&(c=d[0][1]),n.codecs.forEach(f=>{if(f.name.toUpperCase()==="RTX"&&f.parameters.apt){let p={ssrc:l,codecPayloadType:parseInt(f.parameters.apt,10)};l&&c&&(p.rtx={ssrc:c}),o.push(p),i&&(p=JSON.parse(JSON.stringify(p)),p.fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},o.push(p))}}),o.length===0&&l&&o.push({ssrc:l});let u=t.matchPrefix(r,"b=");return u.length&&(u[0].indexOf("b=TIAS:")===0?u=parseInt(u[0].substring(7),10):u[0].indexOf("b=AS:")===0?u=parseInt(u[0].substring(5),10)*1e3*.95-50*40*8:u=void 0,o.forEach(f=>{f.maxBitrate=u})),o},t.parseRtcpParameters=function(r){const o={},n=t.matchPrefix(r,"a=ssrc:").map(s=>t.parseSsrcMedia(s)).filter(s=>s.attribute==="cname")[0];n&&(o.cname=n.value,o.ssrc=n.ssrc);const i=t.matchPrefix(r,"a=rtcp-rsize");o.reducedSize=i.length>0,o.compound=i.length===0;const a=t.matchPrefix(r,"a=rtcp-mux");return o.mux=a.length>0,o},t.writeRtcpParameters=function(r){let o="";return r.reducedSize&&(o+=`a=rtcp-rsize\r +`),r.mux&&(o+=`a=rtcp-mux\r +`),r.ssrc!==void 0&&r.cname&&(o+="a=ssrc:"+r.ssrc+" cname:"+r.cname+`\r +`),o},t.parseMsid=function(r){let o;const n=t.matchPrefix(r,"a=msid:");if(n.length===1)return o=n[0].substring(7).split(" "),{stream:o[0],track:o[1]};const i=t.matchPrefix(r,"a=ssrc:").map(a=>t.parseSsrcMedia(a)).filter(a=>a.attribute==="msid");if(i.length>0)return o=i[0].value.split(" "),{stream:o[0],track:o[1]}},t.parseSctpDescription=function(r){const o=t.parseMLine(r),n=t.matchPrefix(r,"a=max-message-size:");let i;n.length>0&&(i=parseInt(n[0].substring(19),10)),isNaN(i)&&(i=65536);const a=t.matchPrefix(r,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:o.fmt,maxMessageSize:i};const s=t.matchPrefix(r,"a=sctpmap:");if(s.length>0){const l=s[0].substring(10).split(" ");return{port:parseInt(l[0],10),protocol:l[1],maxMessageSize:i}}},t.writeSctpDescription=function(r,o){let n=[];return r.protocol!=="DTLS/SCTP"?n=["m="+r.kind+" 9 "+r.protocol+" "+o.protocol+`\r +`,`c=IN IP4 0.0.0.0\r +`,"a=sctp-port:"+o.port+`\r +`]:n=["m="+r.kind+" 9 "+r.protocol+" "+o.port+`\r +`,`c=IN IP4 0.0.0.0\r +`,"a=sctpmap:"+o.port+" "+o.protocol+` 65535\r +`],o.maxMessageSize!==void 0&&n.push("a=max-message-size:"+o.maxMessageSize+`\r +`),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(r,o,n){let i;const a=o!==void 0?o:2;return r?i=r:i=t.generateSessionId(),`v=0\r +o=`+(n||"thisisadapterortc")+" "+i+" "+a+` IN IP4 127.0.0.1\r +s=-\r +t=0 0\r +`},t.getDirection=function(r,o){const n=t.splitLines(r);for(let i=0;i(r.candidate&&Object.defineProperty(r,"candidate",{value:new e.RTCIceCandidate(r.candidate),writable:"false"}),r))}function xc(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||cn(e,"icecandidate",t=>{if(t.candidate){const r=In.parseCandidate(t.candidate.candidate);r.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[r.priority>>24])}return t})}function Fa(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const r=function(s){if(!s||!s.sdp)return!1;const l=In.splitSections(s.sdp);return l.shift(),l.some(c=>{const d=In.parseMLine(c);return d&&d.kind==="application"&&d.protocol.indexOf("SCTP")!==-1})},o=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},n=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},i=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const d=In.matchPrefix(s.sdp,"a=max-message-size:");return d.length>0?c=parseInt(d[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(r(arguments[0])){const l=o(arguments[0]),c=n(l),d=i(arguments[0],l);let u;c===0&&d===0?u=Number.POSITIVE_INFINITY:c===0||d===0?u=Math.max(c,d):u=Math.min(c,d);const f={};Object.defineProperty(f,"maxMessageSize",{get(){return u}}),this._sctp=f}return a.apply(this,arguments)}}function La(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(o,n){const i=o.send;o.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(o.readyState==="open"&&n.sctp&&l>n.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+n.sctp.maxMessageSize+" bytes)");return i.apply(o,arguments)}}const r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const n=r.apply(this,arguments);return t(n,this),n},cn(e,"datachannel",o=>(t(o.channel,o.target),o))}function yc(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(r){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),r&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=r)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(r=>{const o=t[r];t[r]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=n=>{const i=n.target;if(i._lastConnectionState!==i.connectionState){i._lastConnectionState=i.connectionState;const a=new Event("connectionstatechange",n);i.dispatchEvent(a)}return n},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),o.apply(this,arguments)}})}function Cc(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(n){if(n&&n.sdp&&n.sdp.indexOf(` +a=extmap-allow-mixed`)!==-1){const i=n.sdp.split(` +`).filter(a=>a.trim()!=="a=extmap-allow-mixed").join(` +`);e.RTCSessionDescription&&n instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:n.type,sdp:i}):n.sdp=i}return r.apply(this,arguments)}}function Ha(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const r=e.RTCPeerConnection.prototype.addIceCandidate;!r||r.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function ja(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const r=e.RTCPeerConnection.prototype.setLocalDescription;!r||r.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let n=arguments[0]||{};if(typeof n!="object"||n.type&&n.sdp)return r.apply(this,arguments);if(n={type:n.type,sdp:n.sdp},!n.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":n.type="offer";break;default:n.type="answer";break}return n.sdp||n.type!=="offer"&&n.type!=="answer"?r.apply(this,[n]):(n.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>r.apply(this,[a]))})}const v4=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:Cc,shimAddIceCandidateNullOrEmpty:Ha,shimConnectionState:yc,shimMaxMessageSize:Fa,shimParameterlessSetLocalDescription:ja,shimRTCIceCandidate:Ba,shimRTCIceCandidateRelayProtocol:xc,shimSendThrowTypeError:La},Symbol.toStringTag,{value:"Module"}));function b4({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const r=hv,o=h4(e),n={browserDetails:o,commonShim:v4,extractVersion:Da,disableLog:u4,disableWarnings:f4,sdp:g4};switch(o.browser){case"chrome":if(!ah||!vc||!t.shimChrome)return r("Chrome shim is not included in this adapter release."),n;if(o.version===null)return r("Chrome shim can not determine version, not shimming."),n;r("adapter.js shimming chrome."),n.browserShim=ah,Ha(e,o),ja(e),mv(e,o),gv(e),vc(e,o),vv(e),Sv(e,o),bv(e),xv(e),yv(e),wv(e,o),Ba(e),xc(e),yc(e),Fa(e,o),La(e),Cc(e,o);break;case"firefox":if(!sh||!bc||!t.shimFirefox)return r("Firefox shim is not included in this adapter release."),n;r("adapter.js shimming firefox."),n.browserShim=sh,Ha(e,o),ja(e),_v(e,o),bc(e,o),Pv(e),$v(e),kv(e),Tv(e),Rv(e),Iv(e),Ev(e),zv(e),Mv(e),Ba(e),yc(e),Fa(e,o),La(e);break;case"safari":if(!lh||!t.shimSafari)return r("Safari shim is not included in this adapter release."),n;r("adapter.js shimming safari."),n.browserShim=lh,Ha(e,o),ja(e),Lv(e),jv(e),Dv(e),Av(e),Ov(e),Hv(e),Bv(e),Nv(e),Ba(e),xc(e),Fa(e,o),La(e),Cc(e,o);break;default:r("Unsupported browser!");break}return n}const ch=b4({window:typeof window>"u"?void 0:window});let Sc;try{Sc=new TextDecoder}catch{}let _e,Xo,te=0;const x4=105,y4=57342,C4=57343,dh=57337,uh=6,xn={};let Ye={},bt,fs,hs=0,Hi=0,Et,_r,kt=[],wc=[],ir,Xt,ui,fh={useRecords:!1,mapsAsObjects:!0},ji=!1,Uv=2;try{new Function("")}catch{Uv=1/0}class Ni{constructor(t){if(t&&((t.keyMap||t._keyMap)&&!t.useRecords&&(t.useRecords=!1,t.mapsAsObjects=!0),t.useRecords===!1&&t.mapsAsObjects===void 0&&(t.mapsAsObjects=!0),t.getStructures&&(t.getShared=t.getStructures),t.getShared&&!t.structures&&((t.structures=[]).uninitialized=!0),t.keyMap)){this.mapKey=new Map;for(let[r,o]of Object.entries(t.keyMap))this.mapKey.set(o,r)}Object.assign(this,t)}decodeKey(t){return this.keyMap&&this.mapKey.get(t)||t}encodeKey(t){return this.keyMap&&this.keyMap.hasOwnProperty(t)?this.keyMap[t]:t}encodeKeys(t){if(!this._keyMap)return t;let r=new Map;for(let[o,n]of Object.entries(t))r.set(this._keyMap.hasOwnProperty(o)?this._keyMap[o]:o,n);return r}decodeKeys(t){if(!this._keyMap||t.constructor.name!="Map")return t;if(!this._mapKey){this._mapKey=new Map;for(let[o,n]of Object.entries(this._keyMap))this._mapKey.set(n,o)}let r={};return t.forEach((o,n)=>r[br(this._mapKey.has(n)?this._mapKey.get(n):n)]=o),r}mapDecode(t,r){let o=this.decode(t);if(this._keyMap)switch(o.constructor.name){case"Array":return o.map(n=>this.decodeKeys(n))}return o}decode(t,r){if(_e)return Yv(()=>(Tc(),this?this.decode(t,r):Ni.prototype.decode.call(fh,t,r)));Xo=r>-1?r:t.length,te=0,Hi=0,fs=null,Et=null,_e=t;try{Xt=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(o){throw _e=null,t instanceof Uint8Array?o:new Error("Source must be a Uint8Array or Buffer but was a "+(t&&typeof t=="object"?t.constructor.name:typeof t))}if(this instanceof Ni){if(Ye=this,ir=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return bt=this.structures,Ta();(!bt||bt.length>0)&&(bt=[])}else Ye=fh,(!bt||bt.length>0)&&(bt=[]),ir=null;return Ta()}decodeMultiple(t,r){let o,n=0;try{let i=t.length;ji=!0;let a=this?this.decode(t,i):Ud.decode(t,i);if(r){if(r(a)===!1)return;for(;te=Et.postBundlePosition){let t=new Error("Unexpected bundle position");throw t.incomplete=!0,t}te=Et.postBundlePosition,Et=null}if(te==Xo)bt=null,_e=null,_r&&(_r=null);else if(te>Xo){let t=new Error("Unexpected end of CBOR data");throw t.incomplete=!0,t}else if(!ji)throw new Error("Data read, but end of buffer not reached");return e}catch(e){throw Tc(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function Ge(){let e=_e[te++],t=e>>5;if(e=e&31,e>23)switch(e){case 24:e=_e[te++];break;case 25:if(t==7)return P4();e=Xt.getUint16(te),te+=2;break;case 26:if(t==7){let r=Xt.getFloat32(te);if(Ye.useFloat32>2){let o=Vd[(_e[te]&127)<<1|_e[te+1]>>7];return te+=4,(o*r+(r>0?.5:-.5)>>0)/o}return te+=4,r}e=Xt.getUint32(te),te+=4;break;case 27:if(t==7){let r=Xt.getFloat64(te);return te+=8,r}if(t>1){if(Xt.getUint32(te)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=Xt.getUint32(te+4)}else Ye.int64AsNumber?(e=Xt.getUint32(te)*4294967296,e+=Xt.getUint32(te+4)):e=Xt.getBigUint64(te);te+=8;break;case 31:switch(t){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let r=[],o,n=0;for(;(o=Ge())!=xn;)r[n++]=o;return t==4?r:t==3?r.join(""):Buffer.concat(r);case 5:let i;if(Ye.mapsAsObjects){let a={};if(Ye.keyMap)for(;(i=Ge())!=xn;)a[br(Ye.decodeKey(i))]=Ge();else for(;(i=Ge())!=xn;)a[br(i)]=Ge();return a}else{ui&&(Ye.mapsAsObjects=!0,ui=!1);let a=new Map;if(Ye.keyMap)for(;(i=Ge())!=xn;)a.set(Ye.decodeKey(i),Ge());else for(;(i=Ge())!=xn;)a.set(i,Ge());return a}case 7:return xn;default:throw new Error("Invalid major type for indefinite length "+t)}default:throw new Error("Unknown token "+e)}switch(t){case 0:return e;case 1:return~e;case 2:return _4(e);case 3:if(Hi>=te)return fs.slice(te-hs,(te+=e)-hs);if(Hi==0&&Xo<140&&e<32){let n=e<16?Kv(e):w4(e);if(n!=null)return n}return S4(e);case 4:let r=new Array(e);for(let n=0;n=dh){let n=bt[e&8191];if(n)return n.read||(n.read=_c(n)),n.read();if(e<65536){if(e==C4){let i=Cn(),a=Ge(),s=Ge();kc(a,s);let l={};if(Ye.keyMap)for(let c=2;c23)switch(r){case 24:r=_e[te++];break;case 25:r=Xt.getUint16(te),te+=2;break;case 26:r=Xt.getUint32(te),te+=4;break;default:throw new Error("Expected array header, but got "+_e[te-1])}let o=this.compiledReader;for(;o;){if(o.propertyCount===r)return o(Ge);o=o.next}if(this.slowReads++>=Uv){let i=this.length==r?this:this.slice(0,r);return o=Ye.keyMap?new Function("r","return {"+i.map(a=>Ye.decodeKey(a)).map(a=>hh.test(a)?br(a)+":r()":"["+JSON.stringify(a)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(a=>hh.test(a)?br(a)+":r()":"["+JSON.stringify(a)+"]:r()").join(",")+"}"),this.compiledReader&&(o.next=this.compiledReader),o.propertyCount=r,this.compiledReader=o,o(Ge)}let n={};if(Ye.keyMap)for(let i=0;i64&&Sc)return Sc.decode(_e.subarray(te,te+=e));const r=te+e,o=[];for(t="";te65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|l&1023),o.push(l)}else o.push(n);o.length>=4096&&(t+=Ot.apply(String,o),o.length=0)}return o.length>0&&(t+=Ot.apply(String,o)),t}let Ot=String.fromCharCode;function w4(e){let t=te,r=new Array(e);for(let o=0;o0){te=t;return}r[o]=n}return Ot.apply(String,r)}function Kv(e){if(e<4)if(e<2){if(e===0)return"";{let t=_e[te++];if((t&128)>1){te-=1;return}return Ot(t)}}else{let t=_e[te++],r=_e[te++];if((t&128)>0||(r&128)>0){te-=2;return}if(e<3)return Ot(t,r);let o=_e[te++];if((o&128)>0){te-=3;return}return Ot(t,r,o)}else{let t=_e[te++],r=_e[te++],o=_e[te++],n=_e[te++];if((t&128)>0||(r&128)>0||(o&128)>0||(n&128)>0){te-=4;return}if(e<6){if(e===4)return Ot(t,r,o,n);{let i=_e[te++];if((i&128)>0){te-=5;return}return Ot(t,r,o,n,i)}}else if(e<8){let i=_e[te++],a=_e[te++];if((i&128)>0||(a&128)>0){te-=6;return}if(e<7)return Ot(t,r,o,n,i,a);let s=_e[te++];if((s&128)>0){te-=7;return}return Ot(t,r,o,n,i,a,s)}else{let i=_e[te++],a=_e[te++],s=_e[te++],l=_e[te++];if((i&128)>0||(a&128)>0||(s&128)>0||(l&128)>0){te-=8;return}if(e<10){if(e===8)return Ot(t,r,o,n,i,a,s,l);{let c=_e[te++];if((c&128)>0){te-=9;return}return Ot(t,r,o,n,i,a,s,l,c)}}else if(e<12){let c=_e[te++],d=_e[te++];if((c&128)>0||(d&128)>0){te-=10;return}if(e<11)return Ot(t,r,o,n,i,a,s,l,c,d);let u=_e[te++];if((u&128)>0){te-=11;return}return Ot(t,r,o,n,i,a,s,l,c,d,u)}else{let c=_e[te++],d=_e[te++],u=_e[te++],f=_e[te++];if((c&128)>0||(d&128)>0||(u&128)>0||(f&128)>0){te-=12;return}if(e<14){if(e===12)return Ot(t,r,o,n,i,a,s,l,c,d,u,f);{let p=_e[te++];if((p&128)>0){te-=13;return}return Ot(t,r,o,n,i,a,s,l,c,d,u,f,p)}}else{let p=_e[te++],h=_e[te++];if((p&128)>0||(h&128)>0){te-=14;return}if(e<15)return Ot(t,r,o,n,i,a,s,l,c,d,u,f,p,h);let m=_e[te++];if((m&128)>0){te-=15;return}return Ot(t,r,o,n,i,a,s,l,c,d,u,f,p,h,m)}}}}}function _4(e){return Ye.copyBuffers?Uint8Array.prototype.slice.call(_e,te,te+=e):_e.subarray(te,te+=e)}let qv=new Float32Array(1),$a=new Uint8Array(qv.buffer,0,4);function P4(){let e=_e[te++],t=_e[te++],r=(e&127)>>2;if(r===31)return t||e&3?NaN:e&128?-1/0:1/0;if(r===0){let o=((e&3)<<8|t)/16777216;return e&128?-o:o}return $a[3]=e&128|(r>>1)+56,$a[2]=(e&7)<<5|t>>3,$a[1]=t<<5,$a[0]=0,qv[0]}new Array(4096);class Qo{constructor(t,r){this.value=t,this.tag=r}}kt[0]=e=>new Date(e);kt[1]=e=>new Date(Math.round(e*1e3));kt[2]=e=>{let t=BigInt(0);for(let r=0,o=e.byteLength;rBigInt(-1)-kt[2](e);kt[4]=e=>+(e[1]+"e"+e[0]);kt[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));const kc=(e,t)=>{e=e-57344;let r=bt[e];r&&r.isShared&&((bt.restoreStructures||(bt.restoreStructures=[]))[e]=r),bt[e]=t,t.read=_c(t)};kt[x4]=e=>{let t=e.length,r=e[1];kc(e[0],r);let o={};for(let n=2;nEt?Et[0].slice(Et.position0,Et.position0+=e):new Qo(e,14);kt[15]=e=>Et?Et[1].slice(Et.position1,Et.position1+=e):new Qo(e,15);let k4={Error,RegExp};kt[27]=e=>(k4[e[0]]||Error)(e[1],e[2]);const Gv=e=>{if(_e[te++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let t=e();return ir=ir?t.concat(ir.slice(t.length)):t,ir.prefixes=e(),ir.suffixes=e(),e()};Gv.handlesRead=!0;kt[51]=Gv;kt[uh]=e=>{if(!ir)if(Ye.getShared)Wd();else return new Qo(e,uh);if(typeof e=="number")return ir[16+(e>=0?2*e:-2*e-1)];throw new Error("No support for non-integer packed references yet")};kt[28]=e=>{_r||(_r=new Map,_r.id=0);let t=_r.id++,r=_e[te],o;r>>5==4?o=[]:o={};let n={target:o};_r.set(t,n);let i=e();return n.used?Object.assign(o,i):(n.target=i,i)};kt[28].handlesRead=!0;kt[29]=e=>{let t=_r.get(e);return t.used=!0,t.target};kt[258]=e=>new Set(e);(kt[259]=e=>(Ye.mapsAsObjects&&(Ye.mapsAsObjects=!1,ui=!0),e())).handlesRead=!0;function yn(e,t){return typeof e=="string"?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function Do(){if(!ir)if(Ye.getShared)Wd();else throw new Error("No packed values available");return ir}const T4=1399353956;wc.push((e,t)=>{if(e>=225&&e<=255)return yn(Do().prefixes[e-224],t);if(e>=28704&&e<=32767)return yn(Do().prefixes[e-28672],t);if(e>=1879052288&&e<=2147483647)return yn(Do().prefixes[e-1879048192],t);if(e>=216&&e<=223)return yn(t,Do().suffixes[e-216]);if(e>=27647&&e<=28671)return yn(t,Do().suffixes[e-27639]);if(e>=1811940352&&e<=1879048191)return yn(t,Do().suffixes[e-1811939328]);if(e==T4)return{packedValues:ir,structures:bt.slice(0),version:t};if(e==55799)return t});const $4=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,ph=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,typeof BigUint64Array>"u"?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array>"u"?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],R4=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e{if(!e)throw new Error("Could not find typed array for code "+t);return new e(Uint8Array.prototype.slice.call(a,0).buffer)}:a=>{if(!e)throw new Error("Could not find typed array for code "+t);let s=new DataView(a.buffer,a.byteOffset,a.byteLength),l=a.length>>i,c=new e(l),d=s[r];for(let u=0;u23)switch(e){case 24:e=_e[te++];break;case 25:e=Xt.getUint16(te),te+=2;break;case 26:e=Xt.getUint32(te),te+=4;break}return e}function Wd(){if(Ye.getShared){let e=Yv(()=>(_e=null,Ye.getShared()))||{},t=e.structures||[];Ye.sharedVersion=e.version,ir=Ye.sharedValues=e.packedValues,bt===!0?Ye.structures=bt=t:bt.splice.apply(bt,[0,t.length].concat(t))}}function Yv(e){let t=Xo,r=te,o=hs,n=Hi,i=fs,a=_r,s=Et,l=new Uint8Array(_e.slice(0,Xo)),c=bt,d=Ye,u=ji,f=e();return Xo=t,te=r,hs=o,Hi=n,fs=i,_r=a,Et=s,_e=l,ji=u,bt=c,Ye=d,Xt=new DataView(_e.buffer,_e.byteOffset,_e.byteLength),f}function Tc(){_e=null,_r=null,bt=null}const Vd=new Array(147);for(let e=0;e<256;e++)Vd[e]=+("1e"+Math.floor(45.15-e*.30103));let Ud=new Ni({useRecords:!1});Ud.decode;Ud.decodeMultiple;let Na;try{Na=new TextEncoder}catch{}let $c,Xv;const Us=typeof globalThis=="object"&&globalThis.Buffer,oa=typeof Us<"u",Sl=oa?Us.allocUnsafeSlow:Uint8Array,mh=oa?Us:Uint8Array,gh=256,vh=oa?4294967296:2144337920;let wl,j,ct,$=0,ao,Rt=null;const z4=61440,M4=/[\u0080-\uFFFF]/,dr=Symbol("record-id");class A4 extends Ni{constructor(t){super(t),this.offset=0;let r,o,n,i,a;t=t||{};let s=mh.prototype.utf8Write?function(C,z,P){return j.utf8Write(C,z,P)}:Na&&Na.encodeInto?function(C,z){return Na.encodeInto(C,j.subarray(z)).written}:!1,l=this,c=t.structures||t.saveStructures,d=t.maxSharedStructures;if(d==null&&(d=c?128:0),d>8190)throw new Error("Maximum maxSharedStructure is 8190");let u=t.sequential;u&&(d=0),this.structures||(this.structures=[]),this.saveStructures&&(this.saveShared=this.saveStructures);let f,p,h=t.sharedValues,m;if(h){m=Object.create(null);for(let C=0,z=h.length;Cthis.encodeKeys(P));break}return this.encode(C,z)},this.encode=function(C,z){if(j||(j=new Sl(8192),ct=new DataView(j.buffer,0,8192),$=0),ao=j.length-10,ao-$<2048?(j=new Sl(j.length),ct=new DataView(j.buffer,0,j.length),ao=j.length-10,$=0):z===Ch&&($=$+7&2147483640),r=$,l.useSelfDescribedHeader&&(ct.setUint32($,3654940416),$+=3),a=l.structuredClone?new Map:null,l.bundleStrings&&typeof C!="string"?(Rt=[],Rt.size=1/0):Rt=null,o=l.structures,o){if(o.uninitialized){let R=l.getShared()||{};l.structures=o=R.structures||[],l.sharedVersion=R.version;let _=l.sharedValues=R.packedValues;if(_){m={};for(let W=0,le=_.length;Wd&&!u&&(P=d),!o.transitions){o.transitions=Object.create(null);for(let R=0;R0){j[$++]=216,j[$++]=51,Ar(4);let R=P.values;w(R),Ar(0),Ar(0),p=Object.create(m||null);for(let _=0,W=R.length;_ao&&I($),l.offset=$;let P=B4(j.subarray(r,$),a.idsToInsert);return a=null,P}return z&Ch?(j.start=r,j.end=$,j):j.subarray(r,$)}finally{if(o){if(T<10&&T++,o.length>d&&(o.length=d),g>1e4)o.transitions=null,T=0,g=0,v.length>0&&(v=[]);else if(v.length>0&&!u){for(let P=0,R=v.length;Pd&&(l.structures=l.structures.slice(0,d));let P=j.subarray(r,$);return l.updateSharedData()===!1?l.encode(C):P}z&F4&&($=r)}},this.findCommonStringsToPack=()=>(f=new Map,m||(m=Object.create(null)),C=>{let z=C&&C.threshold||4,P=this.pack?C.maxPrivatePackedValues||16:0;h||(h=this.sharedValues=[]);for(let[R,_]of f)_.count>z&&(m[R]=P++,h.push(R),n=!0);for(;this.saveShared&&this.updateSharedData()===!1;);f=null});const w=C=>{$>ao&&(j=I($));var z=typeof C,P;if(z==="string"){if(p){let le=p[C];if(le>=0){le<16?j[$++]=le+224:(j[$++]=198,le&1?w(15-le>>1):w(le-16>>1));return}else if(f&&!t.pack){let ie=f.get(C);ie?ie.count++:f.set(C,{count:1})}}let R=C.length;if(Rt&&R>=4&&R<1024){if((Rt.size+=R)>z4){let ie,X=(Rt[0]?Rt[0].length*3+Rt[1].length:0)+10;$+X>ao&&(j=I($+X)),j[$++]=217,j[$++]=223,j[$++]=249,j[$++]=Rt.position?132:130,j[$++]=26,ie=$-r,$+=4,Rt.position&&yh(r,w),Rt=["",""],Rt.size=0,Rt.position=ie}let le=M4.test(C);Rt[le?0:1]+=C,j[$++]=le?206:207,w(R);return}let _;R<32?_=1:R<256?_=2:R<65536?_=3:_=5;let W=R*3;if($+W>ao&&(j=I($+W)),R<64||!s){let le,ie,X,re=$+_;for(le=0;le>6|192,j[re++]=ie&63|128):(ie&64512)===55296&&((X=C.charCodeAt(le+1))&64512)===56320?(ie=65536+((ie&1023)<<10)+(X&1023),le++,j[re++]=ie>>18|240,j[re++]=ie>>12&63|128,j[re++]=ie>>6&63|128,j[re++]=ie&63|128):(j[re++]=ie>>12|224,j[re++]=ie>>6&63|128,j[re++]=ie&63|128);P=re-$-_}else P=s(C,$+_,W);P<24?j[$++]=96|P:P<256?(_<2&&j.copyWithin($+2,$+1,$+1+P),j[$++]=120,j[$++]=P):P<65536?(_<3&&j.copyWithin($+3,$+2,$+2+P),j[$++]=121,j[$++]=P>>8,j[$++]=P&255):(_<5&&j.copyWithin($+5,$+3,$+3+P),j[$++]=122,ct.setUint32($,P),$+=4),$+=P}else if(z==="number")if(!this.alwaysUseFloat&&C>>>0===C)C<24?j[$++]=C:C<256?(j[$++]=24,j[$++]=C):C<65536?(j[$++]=25,j[$++]=C>>8,j[$++]=C&255):(j[$++]=26,ct.setUint32($,C),$+=4);else if(!this.alwaysUseFloat&&C>>0===C)C>=-24?j[$++]=31-C:C>=-256?(j[$++]=56,j[$++]=~C):C>=-65536?(j[$++]=57,ct.setUint16($,~C),$+=2):(j[$++]=58,ct.setUint32($,~C),$+=4);else{let R;if((R=this.useFloat32)>0&&C<4294967296&&C>=-2147483648){j[$++]=250,ct.setFloat32($,C);let _;if(R<4||(_=C*Vd[(j[$]&127)<<1|j[$+1]>>7])>>0===_){$+=4;return}else $--}j[$++]=251,ct.setFloat64($,C),$+=8}else if(z==="object")if(!C)j[$++]=246;else{if(a){let _=a.get(C);if(_){if(j[$++]=216,j[$++]=29,j[$++]=25,!_.references){let W=a.idsToInsert||(a.idsToInsert=[]);_.references=[],W.push(_)}_.references.push($-r),$+=2;return}else a.set(C,{offset:$-r})}let R=C.constructor;if(R===Object)k(C,!0);else if(R===Array){P=C.length,P<24?j[$++]=128|P:Ar(P);for(let _=0;_>8,j[$++]=P&255):(j[$++]=186,ct.setUint32($,P),$+=4),l.keyMap)for(let[_,W]of C)w(l.encodeKey(_)),w(W);else for(let[_,W]of C)w(_),w(W);else{for(let _=0,W=$c.length;_>8,j[$++]=X&255):X>-1&&(j[$++]=218,ct.setUint32($,X),$+=4),ie.encode.call(this,C,w,I);return}}if(C[Symbol.iterator]){if(wl){let _=new Error("Iterable should be serialized as iterator");throw _.iteratorNotHandled=!0,_}j[$++]=159;for(let _ of C)w(_);j[$++]=255;return}if(C[Symbol.asyncIterator]||_l(C)){let _=new Error("Iterable/blob should be serialized as iterator");throw _.iteratorNotHandled=!0,_}if(this.useToJSON&&C.toJSON){const _=C.toJSON();if(_!==C)return w(_)}k(C,!C.hasOwnProperty)}}else if(z==="boolean")j[$++]=C?245:244;else if(z==="bigint"){if(C=0)j[$++]=27,ct.setBigUint64($,C);else if(C>-(BigInt(1)<{let z=Object.keys(C),P=Object.values(C),R=z.length;if(R<24?j[$++]=160|R:R<256?(j[$++]=184,j[$++]=R):R<65536?(j[$++]=185,j[$++]=R>>8,j[$++]=R&255):(j[$++]=186,ct.setUint32($,R),$+=4),l.keyMap)for(let _=0;_{j[$++]=185;let P=$-r;$+=2;let R=0;if(l.keyMap)for(let _ in C)(z||C.hasOwnProperty(_))&&(w(l.encodeKey(_)),w(C[_]),R++);else for(let _ in C)(z||C.hasOwnProperty(_))&&(w(_),w(C[_]),R++);j[P+++r]=R>>8,j[P+r]=R&255}:(C,z)=>{let P,R=i.transitions||(i.transitions=Object.create(null)),_=0,W=0,le,ie;if(this.keyMap){ie=Object.keys(C).map(re=>this.encodeKey(re)),W=ie.length;for(let re=0;re>8|224,j[$++]=X&255;else if(ie||(ie=R.__keys__||(R.__keys__=Object.keys(C))),le===void 0?(X=i.nextId++,X||(X=0,i.nextId=1),X>=gh&&(i.nextId=(X=d)+1)):X=le,i[X]=ie,X>8|224,j[$++]=X&255,R=i.transitions;for(let re=0;re=gh-d&&(v.shift()[dr]=void 0),v.push(R),Ar(W+2),w(57344+X),w(ie),z===null)return;for(let re in C)(z||C.hasOwnProperty(re))&&w(C[re]);return}if(W<24?j[$++]=128|W:Ar(W),z!==null)for(let re in C)(z||C.hasOwnProperty(re))&&w(C[re])},I=C=>{let z;if(C>16777216){if(C-r>vh)throw new Error("Encoded buffer would be larger than maximum buffer size");z=Math.min(vh,Math.round(Math.max((C-r)*(C>67108864?1.25:2),4194304)/4096)*4096)}else z=(Math.max(C-r<<2,j.length-1)>>12)+1<<12;let P=new Sl(z);return ct=new DataView(P.buffer,0,z),j.copy?j.copy(P,0,r,C):P.set(j.slice(r,C)),$-=r,r=0,ao=P.length-10,j=P};let B=100,x=1e3;this.encodeAsIterable=function(C,z){return Z(C,z,S)},this.encodeAsAsyncIterable=function(C,z){return Z(C,z,A)};function*S(C,z,P){let R=C.constructor;if(R===Object){let _=l.useRecords!==!1;_?k(C,null):bh(Object.keys(C).length,160);for(let W in C){let le=C[W];_||w(W),le&&typeof le=="object"?z[W]?yield*S(le,z[W]):yield*M(le,z,W):w(le)}}else if(R===Array){let _=C.length;Ar(_);for(let W=0;W<_;W++){let le=C[W];le&&(typeof le=="object"||$-r>B)?z.element?yield*S(le,z.element):yield*M(le,z,"element"):w(le)}}else if(C[Symbol.iterator]){j[$++]=159;for(let _ of C)_&&(typeof _=="object"||$-r>B)?z.element?yield*S(_,z.element):yield*M(_,z,"element"):w(_);j[$++]=255}else _l(C)?(bh(C.size,64),yield j.subarray(r,$),yield C,O()):C[Symbol.asyncIterator]?(j[$++]=159,yield j.subarray(r,$),yield C,O(),j[$++]=255):w(C);P&&$>r?yield j.subarray(r,$):$-r>B&&(yield j.subarray(r,$),O())}function*M(C,z,P){let R=$-r;try{w(C),$-r>B&&(yield j.subarray(r,$),O())}catch(_){if(_.iteratorNotHandled)z[P]={},$=r+R,yield*S.call(this,C,z[P]);else throw _}}function O(){B=x,l.encode(null,Pl)}function Z(C,z,P){return z&&z.chunkThreshold?B=x=z.chunkThreshold:B=100,C&&typeof C=="object"?(l.encode(null,Pl),P(C,l.iterateProperties||(l.iterateProperties={}),!0)):[l.encode(C)]}async function*A(C,z){for(let P of S(C,z,!0)){let R=P.constructor;if(R===mh||R===Uint8Array)yield P;else if(_l(P)){let _=P.stream().getReader(),W;for(;!(W=await _.read()).done;)yield W.value}else if(P[Symbol.asyncIterator])for await(let _ of P)O(),_?yield*A(_,z.async||(z.async={})):yield l.encode(_);else yield P}}}useBuffer(t){j=t,ct=new DataView(j.buffer,j.byteOffset,j.byteLength),$=0}clearSharedData(){this.structures&&(this.structures=[]),this.sharedValues&&(this.sharedValues=void 0)}updateSharedData(){let t=this.sharedVersion||0;this.sharedVersion=t+1;let r=this.structures.slice(0),o=new Jv(r,this.sharedValues,this.sharedVersion),n=this.saveShared(o,i=>(i&&i.version||0)==t);return n===!1?(o=this.getShared()||{},this.structures=o.structures||[],this.sharedValues=o.packedValues,this.sharedVersion=o.version,this.structures.nextId=this.structures.length):r.forEach((i,a)=>this.structures[a]=i),n}}function bh(e,t){e<24?j[$++]=t|e:e<256?(j[$++]=t|24,j[$++]=e):e<65536?(j[$++]=t|25,j[$++]=e>>8,j[$++]=e&255):(j[$++]=t|26,ct.setUint32($,e),$+=4)}class Jv{constructor(t,r,o){this.structures=t,this.packedValues=r,this.version=o}}function Ar(e){e<24?j[$++]=128|e:e<256?(j[$++]=152,j[$++]=e):e<65536?(j[$++]=153,j[$++]=e>>8,j[$++]=e&255):(j[$++]=154,ct.setUint32($,e),$+=4)}const O4=typeof Blob>"u"?function(){}:Blob;function _l(e){if(e instanceof O4)return!0;let t=e[Symbol.toStringTag];return t==="Blob"||t==="File"}function Wa(e,t){switch(typeof e){case"string":if(e.length>3){if(t.objectMap[e]>-1||t.values.length>=t.maxValues)return;let o=t.get(e);if(o)++o.count==2&&t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let n=t.samplingPackedValues.get(e);n?n.count++:t.samplingPackedValues.set(e,{count:1})}}break;case"object":if(e)if(e instanceof Array)for(let o=0,n=e.length;o"u"?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,typeof BigInt64Array>"u"?function(){}:BigInt64Array,Float32Array,Float64Array,Jv];$c=[{tag:1,encode(e,t){let r=e.getTime()/1e3;(this.useTimestamp32||e.getMilliseconds()===0)&&r>=0&&r<4294967296?(j[$++]=26,ct.setUint32($,r),$+=4):(j[$++]=251,ct.setFloat64($,r),$+=8)}},{tag:258,encode(e,t){let r=Array.from(e);t(r)}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t(["RegExp",e.source,e.flags])}},{getTag(e){return e.tag},encode(e,t){t(e.value)}},{encode(e,t,r){xh(e,r)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||oa&&this.tagUint8Array!==!1))return 64},encode(e,t,r){xh(e,r)}},zr(68,1),zr(69,2),zr(70,4),zr(71,8),zr(72,1),zr(77,2),zr(78,4),zr(79,8),zr(85,4),zr(86,8),{encode(e,t){let r=e.packedValues||[],o=e.structures||[];if(r.values.length>0){j[$++]=216,j[$++]=51,Ar(4);let n=r.values;t(n),Ar(0),Ar(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let i=0,a=n.length;i1&&(e-=4),{tag:e,encode:function(o,n){let i=o.byteLength,a=o.byteOffset||0,s=o.buffer||o;n(oa?Us.from(s,a,i):new Uint8Array(s,a,i))}}}function xh(e,t){let r=e.byteLength;r<24?j[$++]=64+r:r<256?(j[$++]=88,j[$++]=r):r<65536?(j[$++]=89,j[$++]=r>>8,j[$++]=r&255):(j[$++]=90,ct.setUint32($,r),$+=4),$+r>=j.length&&t($+r),j.set(e.buffer?e:new Uint8Array(e),$),$+=r}function B4(e,t){let r,o=t.length*2,n=e.length-o;t.sort((i,a)=>i.offset>a.offset?1:-1);for(let i=0;i>8,e[s]=i&255}for(;r=t.pop();){let i=r.offset;e.copyWithin(i+o,i,n),o-=2;let a=i+o;e[a++]=216,e[a++]=28,n=i}return e}function yh(e,t){ct.setUint32(Rt.position+e,$-Rt.position-e+1);let r=Rt;Rt=null,t(r[0]),t(r[1])}let Kd=new A4({useRecords:!1});Kd.encode;Kd.encodeAsIterable;Kd.encodeAsAsyncIterable;const Ch=512,F4=1024,Pl=2048;function dn(e,t,r,o){Object.defineProperty(e,t,{get:r,set:o,enumerable:!0,configurable:!0})}class Zv{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const r=[],o=t.byteLength,n=Math.ceil(o/this.chunkedMTU);let i=0,a=0;for(;a=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return kl.browserDetails.browser}getVersion(){return kl.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=kl.browserDetails.version||0;if(e==="chrome"&&t=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let r,o=!1;try{r=new RTCPeerConnection,r.addTransceiver("audio"),o=!0}catch{}finally{r&&r.close()}return o}toString(){return`Supports: + browser:${this.getBrowser()} + version:${this.getVersion()} + isIOS:${this.isIOS} + isWebRTCSupported:${this.isWebRTCSupported()} + isBrowserSupported:${this.isBrowserSupported()} + isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=["iPad","iPhone","iPod"].includes(navigator.platform),this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},H4=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),Qv=()=>Math.random().toString(36).slice(2),Sh={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class j4 extends Zv{noop(){}blobToArrayBuffer(t,r){const o=new FileReader;return o.onload=function(n){n.target&&r(n.target.result)},o.readAsArrayBuffer(t),o}binaryStringToArrayBuffer(t){const r=new Uint8Array(t.length);for(let o=0;o=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...r){const o=[N4,...r];for(const n in o)o[n]instanceof Error&&(o[n]="("+o[n].name+") "+o[n].message);t>=3?console.log(...o):t>=2?console.warn("WARNING",...o):t>=1&&console.error("ERROR",...o)}constructor(){this._logLevel=0}}var Pe=new W4,qd={},V4=Object.prototype.hasOwnProperty,er="~";function Wi(){}Object.create&&(Wi.prototype=Object.create(null),new Wi().__proto__||(er=!1));function U4(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function e0(e,t,r,o,n){if(typeof r!="function")throw new TypeError("The listener must be a function");var i=new U4(r,o||e,n),a=er?er+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function Va(e,t){--e._eventsCount===0?e._events=new Wi:delete e._events[t]}function qt(){this._events=new Wi,this._eventsCount=0}qt.prototype.eventNames=function(){var t=[],r,o;if(this._eventsCount===0)return t;for(o in r=this._events)V4.call(r,o)&&t.push(er?o.slice(1):o);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};qt.prototype.listeners=function(t){var r=er?er+t:t,o=this._events[r];if(!o)return[];if(o.fn)return[o.fn];for(var n=0,i=o.length,a=new Array(i);nHr);dn(un,"PeerErrorType",()=>vt);dn(un,"BaseConnectionErrorType",()=>Vi);dn(un,"DataConnectionErrorType",()=>Ui);dn(un,"SerializationType",()=>Hn);dn(un,"SocketEventType",()=>Fr);dn(un,"ServerMessageType",()=>Dt);var Hr;(function(e){e.Data="data",e.Media="media"})(Hr||(Hr={}));var vt;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(vt||(vt={}));var Vi;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(Vi||(Vi={}));var Ui;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(Ui||(Ui={}));var Hn;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(Hn||(Hn={}));var Fr;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(Fr||(Fr={}));var Dt;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(Dt||(Dt={}));var Gd={};Gd=JSON.parse('{"name":"peerjs","version":"1.5.2","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu ","afrokick ","ericz ","Jairo ","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana ","Carlos Caballero ","hc ","Muhammad Asif ","PrashoonB ","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski ","lmb ","Jairooo ","Moritz Stückler ","Simon ","Denis Lukov ","Philipp Hancke ","Hans Oksendahl ","Jess ","khankuan ","DUODVK ","XiZhao ","Matthias Lohr ","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt ","Chris Cowan ","Alex Chuev ","alxnull ","Yemel Jardi ","Ben Parnell ","Benny Lichtner ","fresheneesz ","bob.barstead@exaptive.com ","chandika ","emersion ","Christopher Van ","eddieherm ","Eduardo Pinho ","Evandro Zanatta ","Gardner Bickford ","Gian Luca ","PatrickJS ","jonnyf ","Hizkia Felix ","Hristo Oskov ","Isaac Madwed ","Ilya Konanykhin ","jasonbarry ","Jonathan Burke ","Josh Hamit ","Jordan Austin ","Joel Wetzell ","xizhao ","Alberto Torres ","Jonathan Mayol ","Jefferson Felix ","Rolf Erik Lekang ","Kevin Mai-Husan Chia ","Pepijn de Vos ","JooYoung ","Tobias Speicher ","Steve Blaurock ","Kyrylo Shegeda ","Diwank Singh Tomer ","Sören Balko ","Arpit Solanki ","Yuki Ito ","Artur Zayats "],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-cbor":"dist/serializer.cbor.mjs","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-cbor":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/Cbor.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","cbor-x":"1.5.4","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^8.0.0"},"alias":{"process":false,"buffer":false}}');class K4 extends qd.EventEmitter{constructor(t,r,o,n,i,a=5e3){super(),this.pingInterval=a,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+r+":"+o+n+"peerjs?key="+i}start(t,r){this._id=t;const o=`${this._baseUrl}&id=${t}&token=${r}`;this._socket||!this._disconnected||(this._socket=new WebSocket(o+"&version="+Gd.version),this._disconnected=!1,this._socket.onmessage=n=>{let i;try{i=JSON.parse(n.data),Pe.log("Server message received:",i)}catch{Pe.log("Invalid server message",n.data);return}this.emit(Fr.Message,i)},this._socket.onclose=n=>{this._disconnected||(Pe.log("Socket closed.",n),this._cleanup(),this._disconnected=!0,this.emit(Fr.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),Pe.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){Pe.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:Dt.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const r of t)this.send(r)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(Fr.Error,"Invalid message");return}if(!this._wsOpen())return;const r=JSON.stringify(t);this._socket.send(r)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class t0{constructor(t){this.connection=t}startConnection(t){const r=this._startPeerConnection();if(this.connection.peerConnection=r,this.connection.type===Hr.Media&&t._stream&&this._addTracksToConnection(t._stream,r),t.originator){const o=this.connection,n={ordered:!!t.reliable},i=r.createDataChannel(o.label,n);o._initializeDataChannel(i),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){Pe.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const r=this.connection.peer,o=this.connection.connectionId,n=this.connection.type,i=this.connection.provider;Pe.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(Pe.log(`Received ICE candidates for ${r}:`,a.candidate),i.socket.send({type:Dt.Candidate,payload:{candidate:a.candidate,type:n,connectionId:o},dst:r}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":Pe.log("iceConnectionState is failed, closing connections to "+r),this.connection.emitError(Vi.NegotiationFailed,"Negotiation of connection to "+r+" failed."),this.connection.close();break;case"closed":Pe.log("iceConnectionState is closed, closing connections to "+r),this.connection.emitError(Vi.ConnectionClosed,"Connection to "+r+" closed."),this.connection.close();break;case"disconnected":Pe.log("iceConnectionState changed to disconnected on the connection with "+r);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},Pe.log("Listening for data channel"),t.ondatachannel=a=>{Pe.log("Received data channel");const s=a.channel;i.getConnection(r,o)._initializeDataChannel(s)},Pe.log("Listening for remote stream"),t.ontrack=a=>{Pe.log("Received remote stream");const s=a.streams[0],l=i.getConnection(r,o);if(l.type===Hr.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){Pe.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const r=t.signalingState!=="closed";let o=!1;const n=this.connection.dataChannel;n&&(o=!!n.readyState&&n.readyState!=="closed"),(r||o)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,r=this.connection.provider;try{const o=await t.createOffer(this.connection.options.constraints);Pe.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(o.sdp=this.connection.options.sdpTransform(o.sdp)||o.sdp);try{await t.setLocalDescription(o),Pe.log("Set localDescription:",o,`for:${this.connection.peer}`);let n={sdp:o,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===Hr.Data){const i=this.connection;n={...n,label:i.label,reliable:i.reliable,serialization:i.serialization}}r.socket.send({type:Dt.Offer,payload:n,dst:this.connection.peer})}catch(n){n!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(r.emitError(vt.WebRTC,n),Pe.log("Failed to setLocalDescription, ",n))}}catch(o){r.emitError(vt.WebRTC,o),Pe.log("Failed to createOffer, ",o)}}async _makeAnswer(){const t=this.connection.peerConnection,r=this.connection.provider;try{const o=await t.createAnswer();Pe.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(o.sdp=this.connection.options.sdpTransform(o.sdp)||o.sdp);try{await t.setLocalDescription(o),Pe.log("Set localDescription:",o,`for:${this.connection.peer}`),r.socket.send({type:Dt.Answer,payload:{sdp:o,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(n){r.emitError(vt.WebRTC,n),Pe.log("Failed to setLocalDescription, ",n)}}catch(o){r.emitError(vt.WebRTC,o),Pe.log("Failed to create answer, ",o)}}async handleSDP(t,r){r=new RTCSessionDescription(r);const o=this.connection.peerConnection,n=this.connection.provider;Pe.log("Setting remote description",r);const i=this;try{await o.setRemoteDescription(r),Pe.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await i._makeAnswer()}catch(a){n.emitError(vt.WebRTC,a),Pe.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){Pe.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),Pe.log(`Added ICE candidate for:${this.connection.peer}`)}catch(r){this.connection.provider.emitError(vt.WebRTC,r),Pe.log("Failed to handleCandidate, ",r)}}_addTracksToConnection(t,r){if(Pe.log(`add tracks from stream ${t.id} to peer connection`),!r.addTrack)return Pe.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(o=>{r.addTrack(o,t)})}_addStreamToMediaConnection(t,r){Pe.log(`add stream ${t.id} to media connection ${r.connectionId}`),r.addStream(t)}}class r0 extends qd.EventEmitter{emitError(t,r){Pe.error("Error:",r),this.emit("error",new q4(`${t}`,r))}}class q4 extends Error{constructor(t,r){typeof r=="string"?super(r):(super(),Object.assign(this,r)),this.type=t}}class o0 extends r0{get open(){return this._open}constructor(t,r,o){super(),this.peer=t,this.provider=r,this.options=o,this._open=!1,this.metadata=o.metadata}}var Ic;const Si=class Si extends o0{get type(){return Hr.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,r,o){super(t,r,o),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||Si.ID_PREFIX+nr.randomToken(),this._negotiator=new t0(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Pe.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{Pe.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){Pe.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const r=t.type,o=t.payload;switch(t.type){case Dt.Answer:this._negotiator.handleSDP(r,o.sdp),this._open=!0;break;case Dt.Candidate:this._negotiator.handleCandidate(o.candidate);break;default:Pe.warn(`Unrecognized message type:${r} from peer:${this.peer}`);break}}answer(t,r={}){if(this._localStream){Pe.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,r&&r.sdpTransform&&(this.options.sdpTransform=r.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const o=this.provider._getMessages(this.connectionId);for(const n of o)this.handleMessage(n);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};Ic=new WeakMap,Qn(Si,Ic,Si.ID_PREFIX="mc_");let ps=Si;class G4{constructor(t){this._options=t}_buildRequest(t){const r=this._options.secure?"https":"http",{host:o,port:n,path:i,key:a}=this._options,s=new URL(`${r}://${o}:${n}${i}${a}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",Gd.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){Pe.error("Error retrieving ID",t);let r="";throw this._options.path==="/"&&this._options.host!==nr.CLOUD_HOST&&(r=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+r)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let r="";throw this._options.host===nr.CLOUD_HOST?r="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":r="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+r)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw Pe.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var Ec,zc;const Lo=class Lo extends o0{get type(){return Hr.Data}constructor(t,r,o){super(t,r,o),this.connectionId=this.options.connectionId||Lo.ID_PREFIX+Qv(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new t0(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{Pe.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=r=>{Pe.log(`DC#${this.connectionId} dc onmessage:`,r.data)},this.dataChannel.onclose=()=>{Pe.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,r=!1){if(!this.open){this.emitError(Ui.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,r)}async handleMessage(t){const r=t.payload;switch(t.type){case Dt.Answer:await this._negotiator.handleSDP(t.type,r.sdp);break;case Dt.Candidate:await this._negotiator.handleCandidate(r.candidate);break;default:Pe.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};Ec=new WeakMap,zc=new WeakMap,Qn(Lo,Ec,Lo.ID_PREFIX="dc_"),Qn(Lo,zc,Lo.MAX_BUFFERED_AMOUNT=8388608);let ms=Lo;class Yd extends ms{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",r=>this._handleDataMessage(r))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>ms.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(r){return Pe.error(`DC#:${this.connectionId} Error when sending:`,r),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class Tl extends Yd{close(t){super.close(t),this._chunkedData={}}constructor(t,r,o){super(t,r,o),this.chunker=new Zv,this.serialization=Hn.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const r=cv(t),o=r.__peerData;if(o){if(o.type==="close"){this.close();return}this._handleChunk(r);return}this.emit("data",r)}_handleChunk(t){const r=t.__peerData,o=this._chunkedData[r]||{data:[],count:0,total:t.total};if(o.data[t.n]=new Uint8Array(t.data),o.count++,this._chunkedData[r]=o,o.total===o.count){delete this._chunkedData[r];const n=L4(o.data);this._handleDataMessage({data:n})}}_send(t,r){const o=dv(t);if(o instanceof Promise)return this._send_blob(o);if(!r&&o.byteLength>this.chunker.chunkedMTU){this._sendChunks(o);return}this._bufferedSend(o)}async _send_blob(t){const r=await t;if(r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}_sendChunks(t){const r=this.chunker.chunk(t);Pe.log(`DC#${this.connectionId} Try to send ${r.length} chunks...`);for(const o of r)this.send(o,!0)}}class Y4 extends Yd{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,r){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=Hn.None}}class X4 extends Yd{_handleDataMessage({data:t}){const r=this.parse(this.decoder.decode(t)),o=r.__peerData;if(o&&o.type==="close"){this.close();return}this.emit("data",r)}_send(t,r){const o=this.encoder.encode(this.stringify(t));if(o.byteLength>=nr.chunkedMTU){this.emitError(Ui.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(o)}constructor(...t){super(...t),this.serialization=Hn.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var Mc;const wi=class wi extends r0{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[r,o]of this._connections)t[r]=o;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,r){super(),this._serializers={raw:Y4,json:X4,binary:Tl,"binary-utf8":Tl,default:Tl},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let o;if(t&&t.constructor==Object?r=t:t&&(o=t.toString()),r={debug:0,host:nr.CLOUD_HOST,port:nr.CLOUD_PORT,path:"/",key:wi.DEFAULT_KEY,token:nr.randomToken(),config:nr.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...r},this._options=r,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==nr.CLOUD_HOST?this._options.secure=nr.isSecure():this._options.host==nr.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&Pe.setLogFunction(this._options.logFunction),Pe.logLevel=this._options.debug||0,this._api=new G4(r),this._socket=this._createServerConnection(),!nr.supports.audioVideo&&!nr.supports.data){this._delayedAbort(vt.BrowserIncompatible,"The current browser does not support WebRTC");return}if(o&&!nr.validateId(o)){this._delayedAbort(vt.InvalidID,`ID "${o}" is invalid`);return}o?this._initialize(o):this._api.retrieveId().then(n=>this._initialize(n)).catch(n=>this._abort(vt.ServerError,n))}_createServerConnection(){const t=new K4(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(Fr.Message,r=>{this._handleMessage(r)}),t.on(Fr.Error,r=>{this._abort(vt.SocketError,r)}),t.on(Fr.Disconnected,()=>{this.disconnected||(this.emitError(vt.Network,"Lost connection to server."),this.disconnect())}),t.on(Fr.Close,()=>{this.disconnected||this._abort(vt.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const r=t.type,o=t.payload,n=t.src;switch(r){case Dt.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case Dt.Error:this._abort(vt.ServerError,o.msg);break;case Dt.IdTaken:this._abort(vt.UnavailableID,`ID "${this.id}" is taken`);break;case Dt.InvalidKey:this._abort(vt.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case Dt.Leave:Pe.log(`Received leave message from ${n}`),this._cleanupPeer(n),this._connections.delete(n);break;case Dt.Expire:this.emitError(vt.PeerUnavailable,`Could not connect to peer ${n}`);break;case Dt.Offer:{const i=o.connectionId;let a=this.getConnection(n,i);if(a&&(a.close(),Pe.warn(`Offer received for existing Connection ID:${i}`)),o.type===Hr.Media){const l=new ps(n,this,{connectionId:i,_payload:o,metadata:o.metadata});a=l,this._addConnection(n,a),this.emit("call",l)}else if(o.type===Hr.Data){const l=new this._serializers[o.serialization](n,this,{connectionId:i,_payload:o,metadata:o.metadata,label:o.label,serialization:o.serialization,reliable:o.reliable});a=l,this._addConnection(n,a),this.emit("connection",l)}else{Pe.warn(`Received malformed connection type:${o.type}`);return}const s=this._getMessages(i);for(const l of s)a.handleMessage(l);break}default:{if(!o){Pe.warn(`You received a malformed message from ${n} of type ${r}`);return}const i=o.connectionId,a=this.getConnection(n,i);a&&a.peerConnection?a.handleMessage(t):i?this._storeMessage(i,t):Pe.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,r){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(r)}_getMessages(t){const r=this._lostMessages.get(t);return r?(this._lostMessages.delete(t),r):[]}connect(t,r={}){if(r={serialization:"default",...r},this.disconnected){Pe.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(vt.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const o=new this._serializers[r.serialization](t,this,r);return this._addConnection(t,o),o}call(t,r,o={}){if(this.disconnected){Pe.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(vt.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!r){Pe.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const n=new ps(t,this,{...o,_stream:r});return this._addConnection(t,n),n}_addConnection(t,r){Pe.log(`add connection ${r.type}:${r.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(r)}_removeConnection(t){const r=this._connections.get(t.peer);if(r){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,r){const o=this._connections.get(t);if(!o)return null;for(const n of o)if(n.connectionId===r)return n;return null}_delayedAbort(t,r){setTimeout(()=>{this._abort(t,r)},0)}_abort(t,r){Pe.error("Aborting!"),this.emitError(t,r),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(Pe.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const r=this._connections.get(t);if(r)for(const o of r)o.close()}disconnect(){if(this.disconnected)return;const t=this.id;Pe.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)Pe.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)Pe.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=r=>{}){this._api.listAllPeers().then(r=>t(r)).catch(r=>this._abort(vt.ServerError,r))}};Mc=new WeakMap,Qn(wi,Mc,wi.DEFAULT_KEY="peerjs");let Rc=wi;const $l=()=>{let e,t;return{promise:new Promise((o,n)=>{e=o,t=n}),resolve:e,reject:t}},J4=()=>{},Z4=()=>fetch("https://cinema-vikun.metered.live/api/v1/turn/credentials?apiKey=e40e67d7e88d7bc13b3fe0e2bdb962bf0cf4").then(e=>{if(e.ok)return e.json();throw e}),fn=$y("peer",()=>{const e=iv(),t=PE(),r=n4(),o=Mr(null),n=Y(),i=Y(r.hostId),a=Mr(null),s=Mr(null),l=Y(),c=Mr(null),d=Mr(null),u=Mr(null),f=Mr(null),p=Y(!1),h=Y(!1),m=Y(!1),v=Y(!1),g=Y(!1),T=Y("1080p"),{stream:w,start:k,stop:I}=i4({constraints:{audio:!0}}),{stream:B,start:x,stop:S,isSupported:M}=o4({video:!0,audio:!0}),O=async()=>{if(h.value)return;const de={user:X,screen:re},{promise:Fe,resolve:K,reject:je}=$l();return Z4().then($e=>{m.value=!0;const Le=new Rc(i.value,{config:{iceServers:$e}});Le.on("open",y=>{i.value=y,m.value=!1,h.value=!0,K(y)}),Le.on("call",async y=>{var E,q;J4("info","peer.on.call",y.metadata),(q=de[(E=y.metadata)==null?void 0:E.type])==null||q.call(de,y)}),Le.on("error",y=>{ie(y),je(y)}),o.value=Le}).catch($e=>(ie($e),je($e))),Fe},Z=GE(()=>{var de;p.value&&e.info("Call ended"),(de=o.value)==null||de.destroy(),o.value=null,n.value=void 0,i.value=void 0,l.value=void 0,c.value=null,d.value=null,u.value=null,f.value=null,p.value=!1,h.value=!1,m.value=!1,z(),_()},500),A=async de=>{const{promise:Fe,resolve:K,reject:je}=$l();l.value=r.peerId,await W(),await O();const $e=o.value.call(l.value,w.value,{metadata:{...de,type:"user"}});u.value=$e;const Le=setTimeout(()=>{if(!p.value){const y=new Error("Connection failed");ie(y),je(y)}},5e3);return $e.on("close",Z),$e.on("error",y=>{ie(y),je(y)}),$e.on("stream",y=>{clearTimeout(Le),p.value=!0,c.value=y,K(y)}),a.value=$e,Fe},C=async()=>{try{await x(),g.value=!0}catch(Fe){e.error(Fe.message);return}await Ie();const de=o.value.call(l.value,B.value,{metadata:{type:"screen"}});s.value=de,de.on("close",()=>{}),de.on("error",Fe=>{ie(Fe)})},z=()=>{var de;(de=s.value)==null||de.close(),s.value=null,S(),g.value=!1},P=()=>g.value?z():C(),R=async()=>{var de;v.value=!v.value,(de=u.value.localStream)==null||de.getAudioTracks().forEach(Fe=>Fe.enabled=v.value)},_=()=>{var de;(de=a.value)==null||de.close(),a.value=null,I(),v.value=!1},W=async()=>{try{await k(),v.value=!0}catch(de){e.error(de.message)}},le=de=>{const{promise:Fe,resolve:K}=$l(),je=t.create({title:`${de.username} wants to connect`,action:()=>b(kr,{type:"primary",onClick:()=>{K(!0),je.destroy()}},()=>"Admit"),onClose:()=>K(!1)});return Fe},ie=de=>{switch(de==null?void 0:de.type){case"network":return J();default:Se(de)}},X=async de=>{await W(),await le(de.metadata)&&(u.value=de,de.on("close",Z),de.on("stream",K=>{c.value=K}),de.answer(w.value),p.value=!0,l.value=de.peer)},re=de=>{f.value=de,de.on("stream",Fe=>{d.value=Fe}),de.on("close",()=>{d.value=null}),de.answer()},J=de=>{t.warning({content:"Network error"}),window.addEventListener("online",()=>{var Fe;e.info("Trying to reconnect..."),(Fe=o.value)==null||Fe.reconnect(),a.value&&A(a.value.metadata).then(()=>e.success("Reconnected successfully")).catch(ie)},{once:!0})},Se=de=>t.error({content:de.message??de.reason}),Te=de=>{T.value=de,Ie()},Ie=()=>{var je;const de={"1440p60":{width:{ideal:2560},height:{ideal:1440},frameRate:{ideal:60}},"1080p60":{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:60}},"720p60":{width:{ideal:1280},height:{ideal:720},frameRate:{ideal:60}},"1440p":{width:{ideal:2560},height:{ideal:1440},frameRate:{ideal:30}},"1080p":{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}},"720p":{width:{ideal:1280},height:{ideal:720},frameRate:{ideal:30}}},Fe=de[T.value]??de[1080],K=(je=B.value)==null?void 0:je.getVideoTracks()[0];return K==null?void 0:K.applyConstraints(Fe).catch($e=>{})};return Xe(B,de=>{de&&(de.oninactive=()=>z())}),{hostId:n,isConnected:p,isMicrophoneEnabled:v,isOpening:m,isScreenEnabled:g,isScreenShareSupported:M,myVoiceStream:w,peerId:i,query:r,remotePeerId:l,remoteScreenStream:d,remoteUserStream:c,screenShareResolution:T,connect:A,close:Z,open:O,setScreenShareResolution:Te,toggleScreen:P,toggleMicrophone:R}}),Q4={__name:"ViewHome",setup(e){const t=fn(),r=()=>{t.open().then(o=>{t.query.hostId=o,Jt(()=>{t.hostId=o})})};return Ft(()=>{t.hostId=t.query.hostId}),(o,n)=>(Ke(),Ct(Ce(Qi),{align:"center",justify:"center",class:"h-100"},{default:Be(()=>[ke(a4,{loading:Ce(t).isOpening,onSubmit:r},null,8,["loading"])]),_:1}))}},ez={__name:"ViewHost",setup(e){const t=fn(),r=iv(),{copy:o}=e4(),n=()=>{o(i.value),r.success("Copied to clipboard")},i=N(()=>{const{origin:a,pathname:s}=window.location;return`${a}${s}?peerId=${t.peerId}`});return Ft(()=>{t.hostId=t.query.hostId,t.peerId=t.query.hostId,t.open().catch(()=>{})}),(a,s)=>(Ke(),Ct(Ce(Qi),{align:"center",justify:"center",class:"h-100"},{default:Be(()=>[ke(Ce(BE),{type:"info"},{default:Be(()=>[mr("Link to share")]),_:1}),ke(Ce(oT),{type:"success"},{default:Be(()=>[mr(ab(i.value),1)]),_:1}),ke(Ce(kr),{onClick:n},{default:Be(()=>[mr(" Click to copy ")]),_:1})]),_:1}))}},tz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},rz=pt("g",{fill:"none"},[pt("path",{d:"M14.827 9.7l.138-.754a2.266 2.266 0 0 0-.71-2.063C12.883 5.623 10.74 4.996 7.825 5c-2.91.004-4.988.636-6.234 1.895c-.528.533-.72 1.324-.505 2.075l.216.754c.202.704.884 1.175 1.594 1.1l1.424-.149A1.35 1.35 0 0 0 5.52 9.55l.274-1.604A5.49 5.49 0 0 1 7.99 7.43c.787-.024 1.508.103 2.162.382l.442 1.714c.159.617.69 1.078 1.315 1.14l1.432.144a1.354 1.354 0 0 0 1.485-1.11z",fill:"currentColor"})],-1),oz=[rz],nz=ye({name:"CallEnd16Filled",render:function(t,r){return Ke(),Qt("svg",tz,oz)}}),iz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},az=pt("g",{fill:"none"},[pt("path",{d:"M3.75 3a.75.75 0 0 0-.75.75V5.5a.5.5 0 0 1-1 0V3.75C2 2.784 2.784 2 3.75 2H5.5a.5.5 0 0 1 0 1H3.75zM10 2.5a.5.5 0 0 1 .5-.5h1.75c.966 0 1.75.784 1.75 1.75V5.5a.5.5 0 0 1-1 0V3.75a.75.75 0 0 0-.75-.75H10.5a.5.5 0 0 1-.5-.5zM2.5 10a.5.5 0 0 1 .5.5v1.75c0 .414.336.75.75.75H5.5a.5.5 0 0 1 0 1H3.75A1.75 1.75 0 0 1 2 12.25V10.5a.5.5 0 0 1 .5-.5zm11 0a.5.5 0 0 1 .5.5v1.75A1.75 1.75 0 0 1 12.25 14H10.5a.5.5 0 0 1 0-1h1.75a.75.75 0 0 0 .75-.75V10.5a.5.5 0 0 1 .5-.5z",fill:"currentColor"})],-1),sz=[az],lz=ye({name:"FullScreenMaximize16Regular",render:function(t,r){return Ke(),Qt("svg",iz,sz)}}),cz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},dz=pt("g",{fill:"none"},[pt("path",{d:"M8 2a2.5 2.5 0 0 0-2.5 2.5V8a2.5 2.5 0 0 0 5 0V4.5A2.5 2.5 0 0 0 8 2zM4 7.5a.5.5 0 0 1 .5.5a3.5 3.5 0 1 0 7 0a.5.5 0 0 1 1 0a4.5 4.5 0 0 1-4 4.473V13.5a.5.5 0 0 1-1 0v-1.027A4.5 4.5 0 0 1 3.5 8a.5.5 0 0 1 .5-.5z",fill:"currentColor"})],-1),uz=[dz],fz=ye({name:"Mic16Filled",render:function(t,r){return Ke(),Qt("svg",cz,uz)}}),hz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},pz=pt("g",{fill:"none"},[pt("path",{d:"M10.809 11.516l3.337 3.338a.5.5 0 0 0 .708-.708l-13-13a.5.5 0 1 0-.708.708L5.5 6.207V8a2.5 2.5 0 0 0 3.879 2.086l.717.717A3.5 3.5 0 0 1 4.5 8a.5.5 0 1 0-1 0a4.5 4.5 0 0 0 4 4.473V13.5a.5.5 0 1 0 1 0v-1.027a4.48 4.48 0 0 0 2.309-.957zM12.06 9.94l-.764-.764c.132-.367.203-.763.203-1.176a.5.5 0 0 1 1 0c0 .695-.157 1.353-.439 1.94zm-1.586-1.586L5.682 3.56A2.5 2.5 0 0 1 10.5 4.5V8c0 .12-.008.238-.025.354z",fill:"currentColor"})],-1),mz=[pz],gz=ye({name:"MicOff16Filled",render:function(t,r){return Ke(),Qt("svg",hz,mz)}}),vz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},bz=pt("g",{fill:"none"},[pt("path",{d:"M2.267 6.153A5.986 5.986 0 0 1 3.53 3.98a.355.355 0 0 1 .382-.095l1.36.484a.71.71 0 0 0 .935-.538l.26-1.416a.354.354 0 0 1 .274-.282a6.072 6.072 0 0 1 2.52 0c.14.03.248.141.274.282l.26 1.416a.708.708 0 0 0 .935.538l1.36-.484a.355.355 0 0 1 .382.095c.569.627 1 1.367 1.262 2.173a.352.352 0 0 1-.108.378l-1.102.931a.703.703 0 0 0 0 1.076l1.102.931c.11.093.152.242.108.378a5.985 5.985 0 0 1-1.262 2.173a.355.355 0 0 1-.382.095l-1.36-.484a.71.71 0 0 0-.935.538l-.26 1.416a.353.353 0 0 1-.275.282a6.068 6.068 0 0 1-2.519 0a.354.354 0 0 1-.275-.282l-.259-1.416a.708.708 0 0 0-.935-.538l-1.36.484a.355.355 0 0 1-.382-.095a5.986 5.986 0 0 1-1.262-2.173a.352.352 0 0 1 .108-.378l1.102-.931a.704.704 0 0 0 0-1.076l-1.102-.931a.352.352 0 0 1-.108-.378zM6.25 8a1.75 1.75 0 1 0 3.5 0a1.75 1.75 0 0 0-3.5 0z",fill:"currentColor"})],-1),xz=[bz],yz=ye({name:"Settings16Filled",render:function(t,r){return Ke(),Qt("svg",vz,xz)}}),Cz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Sz=pt("g",{fill:"none"},[pt("path",{d:"M2 6.25A2.25 2.25 0 0 1 4.25 4h15.5A2.25 2.25 0 0 1 22 6.25v11.5A2.25 2.25 0 0 1 19.75 20H4.25A2.25 2.25 0 0 1 2 17.75V6.25zm2.25-.75a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h15.5a.75.75 0 0 0 .75-.75V6.25a.75.75 0 0 0-.75-.75H4.25zM12 7.245a.75.75 0 0 1 .53.22l3.255 3.255a.75.75 0 1 1-1.06 1.06L12.75 9.806v6.447a.75.75 0 0 1-1.5 0V9.808L9.28 11.78a.75.75 0 1 1-1.06-1.06l3.25-3.254a.75.75 0 0 1 .53-.22z",fill:"currentColor"})],-1),wz=[Sz],_z=ye({name:"ShareScreenStart24Regular",render:function(t,r){return Ke(),Qt("svg",Cz,wz)}}),Pz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},kz=pt("g",{fill:"none"},[pt("path",{d:"M2 6.25A2.25 2.25 0 0 1 4.25 4h15.5A2.25 2.25 0 0 1 22 6.25v11.5A2.25 2.25 0 0 1 19.75 20H4.25A2.25 2.25 0 0 1 2 17.75V6.25zm2.25-.75a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h15.5a.75.75 0 0 0 .75-.75V6.25a.75.75 0 0 0-.75-.75H4.25zm3.97 2.715a.75.75 0 0 1 1.06 0l2.72 2.72l2.725-2.716a.75.75 0 0 1 1.06 1.062l-2.724 2.715l2.724 2.724a.75.75 0 1 1-1.06 1.06L12 13.057L9.28 15.78a.75.75 0 1 1-1.06-1.06l2.72-2.724l-2.72-2.72a.75.75 0 0 1 0-1.06z",fill:"currentColor"})],-1),Tz=[kz],$z=ye({name:"ShareScreenStop24Regular",render:function(t,r){return Ke(),Qt("svg",Pz,Tz)}}),Rz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},Iz=pt("g",{fill:"none"},[pt("path",{d:"M9 2.5a.5.5 0 0 0-.849-.358l-2.927 2.85H3.5a1.5 1.5 0 0 0-1.5 1.5v2.99a1.5 1.5 0 0 0 1.5 1.5h1.723l2.927 2.875A.5.5 0 0 0 9 13.5v-11zm1.111 2.689a.5.5 0 0 1 .703-.08l.002.001l.002.002l.005.004l.015.013l.046.04c.036.034.085.08.142.142c.113.123.26.302.405.54c.291.48.573 1.193.573 2.148c0 .954-.282 1.668-.573 2.148a3.394 3.394 0 0 1-.405.541a2.495 2.495 0 0 1-.202.196l-.008.007h-.001s-.447.243-.703-.078a.5.5 0 0 1 .075-.7l.002-.002l-.001.001l.002-.001h-.001l.018-.016c.018-.017.048-.045.085-.085a2.4 2.4 0 0 0 .284-.382c.21-.345.428-.882.428-1.63c0-.747-.218-1.283-.428-1.627a2.382 2.382 0 0 0-.368-.465a.5.5 0 0 1-.096-.717zm.079.7h-.002z",fill:"currentColor"})],-1),Ez=[Iz],zz=ye({name:"Speaker116Filled",render:function(t,r){return Ke(),Qt("svg",Rz,Ez)}}),Mz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},Az=pt("g",{fill:"none"},[pt("path",{d:"M9 2.5a.5.5 0 0 0-.849-.358l-2.927 2.85H3.5a1.5 1.5 0 0 0-1.5 1.5v2.99a1.5 1.5 0 0 0 1.5 1.5h1.723l2.927 2.875A.5.5 0 0 0 9 13.5v-11zm1.147 3.646a.5.5 0 0 1 .707 0l1.147 1.147l1.146-1.147a.5.5 0 1 1 .707.708L12.708 8l1.146 1.146a.5.5 0 1 1-.707.708L12 8.707l-1.147 1.147a.5.5 0 0 1-.707-.708L11.293 8l-1.146-1.146a.5.5 0 0 1 0-.708z",fill:"currentColor"})],-1),Oz=[Az],Dz=ye({name:"SpeakerMute16Filled",render:function(t,r){return Ke(),Qt("svg",Mz,Oz)}}),Bz={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16"},Fz=pt("g",{fill:"none"},[pt("path",{d:"M10 7a2 2 0 1 1-4 0a2 2 0 0 1 4 0zM1 4.75C1 3.784 1.784 3 2.75 3h10.5c.966 0 1.75.784 1.75 1.75v6.5A1.75 1.75 0 0 1 13.25 13H2.75A1.75 1.75 0 0 1 1 11.25v-6.5zM11 12h2.25a.75.75 0 0 0 .75-.75v-6.5a.75.75 0 0 0-.75-.75H2.75a.75.75 0 0 0-.75.75v6.5c0 .414.336.75.75.75H5v-1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1z",fill:"currentColor"})],-1),Lz=[Fz],Hz=ye({name:"VideoPerson16Filled",render:function(t,r){return Ke(),Qt("svg",Bz,Lz)}}),jz={class:"peer-video"},Nz={class:"peer-video__controls"},_h={__name:"PeerVideo",props:{stream:{type:Object,default:null}},emits:["fullscreen"],setup(e,{emit:t}){const r=e,o=t,n=Y(),i=Y(1),a=Y(1),s=N(()=>{var f,p;return(((p=(f=r.stream)==null?void 0:f.getVideoTracks)==null?void 0:p.call(f))||[]).length>0}),l=u=>{Jt(()=>{const f=n.value;u&&f&&(f.srcObject=u,f.play())})},c=u=>{const f=n.value;f&&(i.value=u,a.value=u,f.volume=u)},d=()=>{c(i.value===0?a.value:0)};return Xe(()=>r.stream,l,{immediate:!0}),Xe(i,c),(u,f)=>(Ke(),Qt("div",jz,[ke(Ce(p5),{class:"h-100","content-style":"padding: 0;"},{default:Be(()=>[s.value?An("",!0):_s(u.$slots,"preview",{key:0}),Ki(pt("video",{ref_key:"video",ref:n},null,512),[[Ap,s.value]]),pt("div",Nz,[ke(Ce(kr),{quaternary:"",circle:"",onClick:d},{icon:Be(()=>[ke(Ce(Kr),null,{default:Be(()=>[i.value===0?(Ke(),Ct(Ce(Dz),{key:0})):(Ke(),Ct(Ce(zz),{key:1}))]),_:1})]),_:1}),ke(Ce(zE),{max:1,min:0,step:.01,style:{width:"100px"},tooltip:!1,value:i.value,"on-update:value":c},null,8,["value"]),ke(Ce(kr),{quaternary:"",circle:"",onClick:f[0]||(f[0]=p=>o("fullscreen"))},{icon:Be(()=>[ke(Ce(Kr),null,{default:Be(()=>[ke(Ce(lz))]),_:1})]),_:1})])]),_:3})]))}},Wz={__name:"SelectScreenShareResolution",setup(e){const t=fn(),r=Y(!1),o=Y(!1),n=N(()=>[{label:"1440p60",key:"1440p60"},{label:"1080p60",key:"1080p60"},{label:"720p60",key:"720p60"},{label:"1440p",key:"1440p"},{label:"1080p",key:"1080p"},{label:"720p",key:"720p"}]),i=l=>{o.value=l,r.value=l?!1:r.value},a=()=>{r.value=!0},s=()=>{r.value=!1};return(l,c)=>(Ke(),Ct(Ce(Mg),{value:Ce(t).screenShareResolution,options:n.value,trigger:"click",placement:"top-start","onUpdate:show":i,onSelect:Ce(t).setScreenShareResolution},{default:Be(()=>[ke(Ce(ds),{show:r.value,trigger:"manual"},{trigger:Be(()=>[ke(Ce(kr),{size:"large",onMouseenter:a,onMouseleave:s,onFocus:a,onBlur:s},{default:Be(()=>[ke(Ce(Kr),{size:24},{default:Be(()=>[ke(Ce(yz))]),_:1})]),_:1})]),default:Be(()=>[mr(" Select ideal quality of shared screen video. (Actual quality still may be different) ")]),_:1},8,["show"])]),_:1},8,["value","options","onSelect"]))}},Vz={class:"peer-session-controls"},Uz={__name:"PeerSessionControls",setup(e){const t=fn();return(r,o)=>(Ke(),Qt("div",Vz,[ke(Ce(Qi),{justify:"center"},{default:Be(()=>[ke(Ce(kr),{type:Ce(t).isMicrophoneEnabled?"default":"error",size:"large",onClick:Ce(t).toggleMicrophone},{default:Be(()=>[ke(Ce(Kr),{size:24},{default:Be(()=>[Ce(t).isMicrophoneEnabled?(Ke(),Ct(Ce(fz),{key:0})):(Ke(),Ct(Ce(gz),{key:1}))]),_:1})]),_:1},8,["type","onClick"]),Ce(t).isScreenShareSupported?(Ke(),Qt(st,{key:0},[Ce(t).isScreenEnabled?(Ke(),Ct(Ce(ds),{key:0,trigger:"hover"},{trigger:Be(()=>[ke(Ce(kr),{type:"warning",size:"large",onClick:Ce(t).toggleScreen},{default:Be(()=>[ke(Ce(Kr),{size:24},{default:Be(()=>[ke(Ce($z))]),_:1})]),_:1},8,["onClick"])]),default:Be(()=>[mr(" Stop screen sharing ")]),_:1})):(Ke(),Ct(Ce(ds),{key:1,trigger:"hover"},{trigger:Be(()=>[ke(Ce(kr),{size:"large",onClick:Ce(t).toggleScreen},{default:Be(()=>[ke(Ce(Kr),{size:24},{default:Be(()=>[ke(Ce(_z))]),_:1})]),_:1},8,["onClick"])]),default:Be(()=>[mr(" Share screen ")]),_:1}))],64)):An("",!0),ke(Wz),ke(Ce(kr),{size:"large",type:"error",onClick:Ce(t).close},{default:Be(()=>[ke(Ce(Kr),{size:24},{default:Be(()=>[ke(Ce(nz))]),_:1})]),_:1},8,["onClick"])]),_:1})]))}},Kz={class:"view-session__media"},qz={__name:"ViewSession",setup(e){const t=fn();QE("(display-mode: fullscreen)");const r=Y(null),o=Y(null),n=Y(!0),i=Y(),a=Y(),s=()=>document.fullscreenElement?document.exitFullscreen():r.value.requestFullscreen(),l=()=>{n.value=!0,clearTimeout(i.value),i.value=setTimeout(()=>{n.value=!1},3e3)},c=p=>a.value===p,d=p=>a.value=p,u=()=>{Jt(()=>{var h;const p=((h=o.value)==null?void 0:h.$el.clientHeight)??80;f.value=`${p}px`})},f=r4("--session-controls-height",r);return Ft(()=>{l(),u()}),(p,h)=>Ce(t).isConnected?(Ke(),Qt("div",{key:0,ref_key:"root",ref:r,class:_n(["view-session",{"show-controls":n.value}]),onMousemove:l},[pt("div",Kz,[ke(_h,{class:_n(["view-session__media-item",{_primary:c("user")}]),stream:Ce(t).remoteUserStream,onFullscreen:h[0]||(h[0]=m=>(s(),d("user")))},{preview:Be(()=>[ke(Ce(Qi),{align:"center",justify:"center",class:"h-100"},{default:Be(()=>[ke(Ce(Kr),{size:100},{default:Be(()=>[ke(Ce(Hz))]),_:1})]),_:1})]),_:1},8,["class","stream"]),Ce(t).remoteScreenStream?(Ke(),Ct(_h,{key:0,class:_n(["view-session__media-item",{_primary:c("screen")}]),stream:Ce(t).remoteScreenStream,onFullscreen:h[1]||(h[1]=m=>(s(),d("screen")))},null,8,["class","stream"])):An("",!0)]),ke(Uz,{ref_key:"sessionControls",ref:o,class:"view-session__controls"},null,512)],34)):An("",!0)}},Gz={__name:"ViewPeer",setup(e){const t=fn(),r=Y(!1),o=Y(null),n=Y({username:""}),i={username:{required:!0}},a=async()=>{var s;if(!r.value)try{r.value=!0,await((s=o.value)==null?void 0:s.validate()),await t.connect(n.value)}catch{}finally{r.value=!1}};return(s,l)=>(Ke(),Ct(Ce(Qi),{align:"center",justify:"center",class:"h-100"},{default:Be(()=>[ke(Ce(i3),{ref_key:"formRef",ref:o,model:n.value,rules:i,size:"large"},{default:Be(()=>[ke(Ce(V3),{label:"Name",path:"username"},{default:Be(()=>[ke(Ce($T),{value:n.value.username,"onUpdate:value":l[0]||(l[0]=c=>n.value.username=c),loading:r.value,placeholder:"Input your name",onKeydown:my(a,["enter"])},null,8,["value","loading"])]),_:1}),ke(Ce(kr),{loading:r.value,size:"large",onClick:hy(a,["prevent"]),block:""},{default:Be(()=>[mr(" Connect ")]),_:1},8,["loading"])]),_:1},8,["model"])]),_:1}))}},Yz={__name:"AppPeer",setup(e){const t=fn(),r=Y(null),o=N(()=>!t.hostId&&!t.query.peerId),n=N(()=>t.hostId&&!t.isConnected),i=N(()=>t.query.peerId&&!t.isConnected),a=N(()=>t.isConnected),s=[{key:"home",label:"Home",onClick:()=>l()}],l=()=>{t.query.peerId=void 0,t.query.hostId=void 0,Jt(()=>{t.close()})};return Xe(()=>t.query,c=>{r.value=c.hostId||c.peerId?null:"home"},{deep:!0,immediate:!0}),(c,d)=>(Ke(),Qt(st,null,[a.value?An("",!0):(Ke(),Ct(Ce(YI),{key:0,position:"absolute"},{default:Be(()=>[ke(Ce(lE),{value:r.value,options:s,mode:"horizontal",responsive:""},null,8,["value"])]),_:1})),o.value?(Ke(),Ct(Q4,{key:1})):n.value?(Ke(),Ct(ez,{key:2})):i.value?(Ke(),Ct(Gz,{key:3})):a.value?(Ke(),Ct(qz,{key:4})):An("",!0)],64))}},Xz={__name:"App",setup(e){return(t,r)=>(Ke(),Ct(NE,null,{default:Be(()=>[ke(Yz)]),_:1}))}},n0=by(Xz),Jz=Sy();n0.use(Jz);n0.mount("#app")});export default Zz(); diff --git a/assets/index-tb7iAgXe.css b/assets/index-tb7iAgXe.css new file mode 100644 index 0000000..4108b6b --- /dev/null +++ b/assets/index-tb7iAgXe.css @@ -0,0 +1 @@ +@font-face{font-family:v-sans;font-weight:400;src:url(/p2p-cinema/assets/LatoLatin-Regular-5pc9VNAW.woff2)}@font-face{font-family:v-sans;font-weight:600;src:url(/p2p-cinema/assets/LatoLatin-Semibold-25PNadg5.woff2)}html,body,#app,.n-layout,.h-100{height:100%}.peer-video{position:relative}.peer-video video{width:100%;height:100%;object-fit:contain}.show-controls .peer-video__controls,.peer-video__controls:active,.peer-video__controls:focus-within{display:flex}.peer-video__controls{align-items:last baseline;box-shadow:inset 0 -50px 50px -50px #cf3ee280;display:none;gap:.5rem;top:0;right:0;bottom:0;left:0;justify-content:center;padding:1rem;position:absolute}@media (display-mode: fullscreen){.peer-video__controls{justify-content:flex-end}}.peer-session-controls{padding:1rem}.view-session{display:flex;flex-direction:column;height:100%}.view-session__media{display:grid;flex:1;isolation:isolate}.view-session__media-item{height:100%;max-height:calc(100vh - var(--session-controls-height))}.view-session__controls{grid-column:1 / -1;padding:1rem}@media (min-width: 768px){.view-session__media{grid-template-columns:repeat(auto-fit,minmax(500px,1fr))}}@media (display-mode: fullscreen){.view-session:not(.show-controls:has(.view-session__media-item._primary)) .view-session__media-item:not(._primary){display:none}.view-session:not(.show-controls) .view-session__controls{display:none}.view-session__controls{bottom:0;left:50%;position:absolute;transform:translate(-50%);z-index:3}.view-session__media-item:not(._primary){grid-column:1 / 2;grid-row-start:1;margin:1rem 0 0 1rem;z-index:2}.view-session__media-item._primary{grid-column:1 / -1;grid-row:1 / -1;z-index:1;max-height:100vh}}@media (min-width: 768px) and (display-mode: fullscreen){.view-session__media:has(.view-session__media-item._primary){grid-template-columns:minmax(200px,20%) 1fr}.view-session__media:has(.view-session__media-item._primary) .view-session__media-item:not(._primary){max-height:200px}} diff --git a/index.html b/index.html index c7f755d..0c7ea80 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ P2P Cinema - - + +