From e421e967a0f46748742d0b50d07c05743673cff8 Mon Sep 17 00:00:00 2001 From: weiwait Date: Fri, 3 Jun 2022 16:51:16 +0800 Subject: [PATCH] first commit --- .gitignore | 7 + README.md | 55 + composer.json | 35 + resources/assets/css/index.css | 1 + resources/assets/js/index.js | 1235 +++++++++++++++++++ resources/views/file.blade.php | 17 + src/DcatVueServiceProvider.php | 95 ++ src/Field/File.php | 66 + src/Field/MultipleFile.php | 66 + src/Field/Vue.php | 100 ++ src/Forms/FilesystemConfig.php | 80 ++ src/Http/Controllers/DcatVueController.php | 87 ++ src/Http/routes.php | 16 + src/Models/FilesystemConfig.php | 64 + src/Models/WeiwaitUpload.php | 23 + src/Setting.php | 45 + updates/create_filesystem_configs_table.php | 34 + updates/create_weiwait_uploads_table.php | 35 + version.php | 12 + 19 files changed, 2073 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 composer.json create mode 100644 resources/assets/css/index.css create mode 100644 resources/assets/js/index.js create mode 100644 resources/views/file.blade.php create mode 100644 src/DcatVueServiceProvider.php create mode 100644 src/Field/File.php create mode 100644 src/Field/MultipleFile.php create mode 100644 src/Field/Vue.php create mode 100644 src/Forms/FilesystemConfig.php create mode 100644 src/Http/Controllers/DcatVueController.php create mode 100644 src/Http/routes.php create mode 100644 src/Models/FilesystemConfig.php create mode 100644 src/Models/WeiwaitUpload.php create mode 100644 src/Setting.php create mode 100644 updates/create_filesystem_configs_table.php create mode 100644 updates/create_weiwait_uploads_table.php create mode 100644 version.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d4b362 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.DS_Store +phpunit.phar +/vendor +composer.phar +composer.lock +*.project +.idea/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..3e0bb88 --- /dev/null +++ b/README.md @@ -0,0 +1,55 @@ +# Dcat Admin Extension + +##### 此扩展为大合一扩展,以后使用vue3构建的组件都将合并在一起 + +### 演示地址 +[demo: http://dcat.weiwait.cn (admin:admin)](http://dcat.weiwait.cn/admin/demo-settings 'user: admin psw: admin') + +### 依赖扩展 +[freyo/flysystem-qcloud-cos-v5](https://github.com/freyo/flysystem-qcloud-cos-v5) + +[overtrue/laravel-filesystem-qiniu](https://github.com/overtrue/laravel-filesystem-qiniu) + +[iiDestiny/laravel-filesystem-oss](https://github.com/iiDestiny/laravel-filesystem-oss) + +### 通过 composer 安装扩展 +```shell + composer require weiwait/dcat-vue +``` + +### 通过选项卡使用 +```php + public function index(Content $content): Content + { + $tab = Tab::make(); + $tab->add('文件存储', new \Weiwait\DcatVue\Forms\FilesystemConfig()); + + return $content->title('配置') + ->body($tab->withCard()); + } +``` + +### 通过一级菜单使用 + +![](https://github.com/weiwait/images/blob/main/dcat-smtp-menu.png?raw=true) + +### 示例图片 + +![示例图片](https://raw.githubusercontent.com/weiwait/images/main/dcat-filesystem-config.png) + +### 直传表单组件 +```php + // 默认替换了原有的组件 + $form->file('file'); + $form->mutipleFile('files'); +``` + +[comment]: <> (### Donate) + +[comment]: <> (![示例图片](https://github.com/weiwait/images/blob/main/donate.png?raw=true)) + +### Dcat-admin 扩展列表 +1. [单图裁剪](https://github.com/weiwait/dcat-cropper) +2. [区划级联+坐标拾取](https://github.com/weiwait/dcat-distpicker) +3. [smtp快速便捷配置](https://github.com/weiwait/dcat-smtp) +4. [sms channel 快速便捷配置](https://github.com/weiwait/dcat-easy-sms) diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..0487d42 --- /dev/null +++ b/composer.json @@ -0,0 +1,35 @@ +{ + "name": "weiwait/dcat-vue", + "alias": "", + "description": "基于vue3构建的综合型扩展", + "type": "library", + "keywords": ["dcat-admin", "extension", "filesystem", "file-upload"], + "homepage": "https://github.com/weiwait/dcat-vue", + "license": "MIT", + "authors": [ + { + "name": "weiwait", + "email": "mail@weiwait.cn" + } + ], + "require": { + "php": ">=8.0", + "dcat/laravel-admin": "~2.0", + "iidestiny/laravel-filesystem-oss": "^3.1", + "overtrue/laravel-filesystem-qiniu": "^2.1", + "freyo/flysystem-qcloud-cos-v5": "^2.0" + }, + "autoload": { + "psr-4": { + "Weiwait\\DcatVue\\": "src/" + } + }, + "extra": { + "dcat-admin": "Weiwait\\DcatVue\\DcatVueServiceProvider", + "laravel": { + "providers": [ + "Weiwait\\DcatVue\\DcatVueServiceProvider" + ] + } + } +} diff --git a/resources/assets/css/index.css b/resources/assets/css/index.css new file mode 100644 index 0000000..0f1bf1b --- /dev/null +++ b/resources/assets/css/index.css @@ -0,0 +1 @@ +.file-list-wrap[data-v-04125442]{margin-top:2px!important} diff --git a/resources/assets/js/index.js b/resources/assets/js/index.js new file mode 100644 index 0000000..f412957 --- /dev/null +++ b/resources/assets/js/index.js @@ -0,0 +1,1235 @@ +const Sf=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}};Sf();function Ta(e,t){const r=Object.create(null),n=e.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const _f="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Tf=Ta(_f);function $c(e){return!!e||e===""}function Pa(e){if(de(e)){const t={};for(let r=0;r{if(r){const n=r.split(Ef);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ea(e){let t="";if(We(e))t=e;else if(de(e))for(let r=0;rWe(e)?e:e==null?"":de(e)||Ue(e)&&(e.toString===Pc||!he(e.toString))?JSON.stringify(e,Sc,2):String(e),Sc=(e,t)=>t&&t.__v_isRef?Sc(e,t.value):Gr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o])=>(r[`${n} =>`]=o,r),{})}:_c(t)?{[`Set(${t.size})`]:[...t.values()]}:Ue(t)&&!de(t)&&!Ec(t)?String(t):t,Ee={},Yr=[],Ft=()=>{},Bf=()=>!1,zf=/^on[^a-z]/,Xo=e=>zf.test(e),Ra=e=>e.startsWith("onUpdate:"),Je=Object.assign,Oa=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Af=Object.prototype.hasOwnProperty,be=(e,t)=>Af.call(e,t),de=Array.isArray,Gr=e=>Ko(e)==="[object Map]",_c=e=>Ko(e)==="[object Set]",he=e=>typeof e=="function",We=e=>typeof e=="string",Ba=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",Tc=e=>Ue(e)&&he(e.then)&&he(e.catch),Pc=Object.prototype.toString,Ko=e=>Pc.call(e),kf=e=>Ko(e).slice(8,-1),Ec=e=>Ko(e)==="[object Object]",za=e=>We(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Po=Ta(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yo=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Mf=/-(\w)/g,Dt=Yo(e=>e.replace(Mf,(t,r)=>r?r.toUpperCase():"")),Lf=/\B([A-Z])/g,ln=Yo(e=>e.replace(Lf,"-$1").toLowerCase()),Go=Yo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Si=Yo(e=>e?`on${Go(e)}`:""),Dn=(e,t)=>!Object.is(e,t),_i=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Rc=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ps;const Ff=()=>Ps||(Ps=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let At;class Oc{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&At&&(this.parent=At,this.index=(At.scopes||(At.scopes=[])).push(this)-1)}run(t){if(this.active){const r=At;try{return At=this,t()}finally{At=r}}}on(){At=this}off(){At=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},Bc=e=>(e.w&fr)>0,zc=e=>(e.n&fr)>0,Hf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(u==="length"||u>=n)&&s.push(l)});else switch(r!==void 0&&s.push(a.get(r)),t){case"add":de(e)?za(r)&&s.push(a.get("length")):(s.push(a.get(Rr)),Gr(e)&&s.push(a.get(Yi)));break;case"delete":de(e)||(s.push(a.get(Rr)),Gr(e)&&s.push(a.get(Yi)));break;case"set":Gr(e)&&s.push(a.get(Rr));break}if(s.length===1)s[0]&&Gi(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);Gi(Aa(l))}}function Gi(e,t){const r=de(e)?e:[...e];for(const n of r)n.computed&&Rs(n);for(const n of r)n.computed||Rs(n)}function Rs(e,t){(e!==Tt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const jf=Ta("__proto__,__v_isRef,__isVue"),Mc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ba)),Wf=Ma(),Uf=Ma(!1,!0),Vf=Ma(!0),Os=qf();function qf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ye(this);for(let i=0,a=this.length;i{e[t]=function(...r){cn();const n=ye(this)[t].apply(this,r);return un(),n}}),e}function Ma(e=!1,t=!1){return function(n,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?lh:Hc:t?Dc:Ic).get(n))return n;const a=de(n);if(!e&&a&&be(Os,o))return Reflect.get(Os,o,i);const s=Reflect.get(n,o,i);return(Ba(o)?Mc.has(o):jf(o))||(e||xt(n,"get",o),t)?s:Ze(s)?a&&za(o)?s:s.value:Ue(s)?e?Hn(s):Jo(s):s}}const Xf=Lc(),Kf=Lc(!0);function Lc(e=!1){return function(r,n,o,i){let a=r[n];if(Nn(a)&&Ze(a)&&!Ze(o))return!1;if(!e&&!Nn(o)&&(Zi(o)||(o=ye(o),a=ye(a)),!de(r)&&Ze(a)&&!Ze(o)))return a.value=o,!0;const s=de(r)&&za(n)?Number(n)e,Zo=e=>Reflect.getPrototypeOf(e);function ao(e,t,r=!1,n=!1){e=e.__v_raw;const o=ye(e),i=ye(t);r||(t!==i&&xt(o,"get",t),xt(o,"get",i));const{has:a}=Zo(o),s=n?La:r?Ha:jn;if(a.call(o,t))return s(e.get(t));if(a.call(o,i))return s(e.get(i));e!==o&&e.get(t)}function so(e,t=!1){const r=this.__v_raw,n=ye(r),o=ye(e);return t||(e!==o&&xt(n,"has",e),xt(n,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function lo(e,t=!1){return e=e.__v_raw,!t&&xt(ye(e),"iterate",Rr),Reflect.get(e,"size",e)}function Bs(e){e=ye(e);const t=ye(this);return Zo(t).has.call(t,e)||(t.add(e),Gt(t,"add",e,e)),this}function zs(e,t){t=ye(t);const r=ye(this),{has:n,get:o}=Zo(r);let i=n.call(r,e);i||(e=ye(e),i=n.call(r,e));const a=o.call(r,e);return r.set(e,t),i?Dn(t,a)&&Gt(r,"set",e,t):Gt(r,"add",e,t),this}function As(e){const t=ye(this),{has:r,get:n}=Zo(t);let o=r.call(t,e);o||(e=ye(e),o=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return o&&Gt(t,"delete",e,void 0),i}function ks(){const e=ye(this),t=e.size!==0,r=e.clear();return t&&Gt(e,"clear",void 0,void 0),r}function co(e,t){return function(n,o){const i=this,a=i.__v_raw,s=ye(a),l=t?La:e?Ha:jn;return!e&&xt(s,"iterate",Rr),a.forEach((u,c)=>n.call(o,l(u),l(c),i))}}function uo(e,t,r){return function(...n){const o=this.__v_raw,i=ye(o),a=Gr(i),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=o[e](...n),c=r?La:t?Ha:jn;return!t&&xt(i,"iterate",l?Yi:Rr),{next(){const{value:d,done:h}=u.next();return h?{value:d,done:h}:{value:s?[c(d[0]),c(d[1])]:c(d),done:h}},[Symbol.iterator](){return this}}}}function rr(e){return function(...t){return e==="delete"?!1:this}}function eh(){const e={get(i){return ao(this,i)},get size(){return lo(this)},has:so,add:Bs,set:zs,delete:As,clear:ks,forEach:co(!1,!1)},t={get(i){return ao(this,i,!1,!0)},get size(){return lo(this)},has:so,add:Bs,set:zs,delete:As,clear:ks,forEach:co(!1,!0)},r={get(i){return ao(this,i,!0)},get size(){return lo(this,!0)},has(i){return so.call(this,i,!0)},add:rr("add"),set:rr("set"),delete:rr("delete"),clear:rr("clear"),forEach:co(!0,!1)},n={get(i){return ao(this,i,!0,!0)},get size(){return lo(this,!0)},has(i){return so.call(this,i,!0)},add:rr("add"),set:rr("set"),delete:rr("delete"),clear:rr("clear"),forEach:co(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=uo(i,!1,!1),r[i]=uo(i,!0,!1),t[i]=uo(i,!1,!0),n[i]=uo(i,!0,!0)}),[e,r,t,n]}const[th,rh,nh,oh]=eh();function Fa(e,t){const r=t?e?oh:nh:e?rh:th;return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(be(r,o)&&o in n?r:n,o,i)}const ih={get:Fa(!1,!1)},ah={get:Fa(!1,!0)},sh={get:Fa(!0,!1)},Ic=new WeakMap,Dc=new WeakMap,Hc=new WeakMap,lh=new WeakMap;function ch(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uh(e){return e.__v_skip||!Object.isExtensible(e)?0:ch(kf(e))}function Jo(e){return Nn(e)?e:Ia(e,!1,Fc,ih,Ic)}function dh(e){return Ia(e,!1,Qf,ah,Dc)}function Hn(e){return Ia(e,!0,Jf,sh,Hc)}function Ia(e,t,r,n,o){if(!Ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=uh(e);if(a===0)return e;const s=new Proxy(e,a===2?n:r);return o.set(e,s),s}function Zr(e){return Nn(e)?Zr(e.__v_raw):!!(e&&e.__v_isReactive)}function Nn(e){return!!(e&&e.__v_isReadonly)}function Zi(e){return!!(e&&e.__v_isShallow)}function Nc(e){return Zr(e)||Nn(e)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}function Da(e){return zo(e,"__v_skip",!0),e}const jn=e=>Ue(e)?Jo(e):e,Ha=e=>Ue(e)?Hn(e):e;function jc(e){ur&&Tt&&(e=ye(e),kc(e.dep||(e.dep=Aa())))}function Wc(e,t){e=ye(e),e.dep&&Gi(e.dep)}function Ze(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return fh(e,!1)}function fh(e,t){return Ze(e)?e:new hh(e,t)}class hh{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ye(t),this._value=r?t:jn(t)}get value(){return jc(this),this._value}set value(t){t=this.__v_isShallow?t:ye(t),Dn(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:jn(t),Wc(this))}}function ct(e){return Ze(e)?e.value:e}const ph={get:(e,t,r)=>ct(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return Ze(o)&&!Ze(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function Uc(e){return Zr(e)?e:new Proxy(e,ph)}class gh{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,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}}function xe(e,t,r){const n=e[t];return Ze(n)?n:new gh(e,t,r)}class vh{constructor(t,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ka(t,()=>{this._dirty||(this._dirty=!0,Wc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=ye(this);return jc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function mh(e,t,r=!1){let n,o;const i=he(e);return i?(n=e,o=Ft):(n=e.get,o=e.set),new vh(n,o,i||!o,r)}function dr(e,t,r,n){let o;try{o=n?e(...n):e()}catch(i){Qo(i,t,r)}return o}function Ct(e,t,r,n){if(he(e)){const i=dr(e,t,r,n);return i&&Tc(i)&&i.catch(a=>{Qo(a,t,r)}),i}const o=[];for(let i=0;i>>1;Wn(ht[n])Kt&&ht.splice(t,1)}function Kc(e,t,r,n){de(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),Xc()}function wh(e){Kc(e,En,Rn,Xr)}function Ch(e){Kc(e,ar,On,Kr)}function ei(e,t=null){if(Rn.length){for(Qi=t,En=[...new Set(Rn)],Rn.length=0,Xr=0;XrWn(r)-Wn(n)),Kr=0;Kre.id==null?1/0:e.id;function Gc(e){Ji=!1,Ao=!0,ei(e),ht.sort((r,n)=>Wn(r)-Wn(n));const t=Ft;try{for(Kt=0;Ktg.trim())),d&&(o=r.map(Rc))}let s,l=n[s=Si(t)]||n[s=Si(Dt(t))];!l&&i&&(l=n[s=Si(ln(t))]),l&&Ct(l,e,6,o);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ct(u,e,6,o)}}function Zc(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let a={},s=!1;if(!he(e)){const l=u=>{const c=Zc(u,t,!0);c&&(s=!0,Je(a,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(n.set(e,null),null):(de(i)?i.forEach(l=>a[l]=null):Je(a,i),n.set(e,a),a)}function ti(e,t){return!e||!Xo(t)?!1:(t=t.slice(2).replace(/Once$/,""),be(e,t[0].toLowerCase()+t.slice(1))||be(e,ln(t))||be(e,t))}let nt=null,Jc=null;function ko(e){const t=nt;return nt=e,Jc=e&&e.type.__scopeId||null,t}function Yt(e,t=nt,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&qs(-1);const i=ko(t),a=e(...o);return ko(i),n._d&&qs(1),a};return n._n=!0,n._c=!0,n._d=!0,n}function Ti(e){const{type:t,vnode:r,proxy:n,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:l,emit:u,render:c,renderCache:d,data:h,setupState:g,ctx:p,inheritAttrs:m}=e;let x,v;const S=ko(e);try{if(r.shapeFlag&4){const $=o||n;x=Mt(c.call($,$,d,i,g,h,p)),v=l}else{const $=t;x=Mt($.length>1?$(i,{attrs:l,slots:s,emit:u}):$(i,null)),v=t.props?l:Sh(l)}}catch($){kn.length=0,Qo($,e,1),x=He(bt)}let T=x;if(v&&m!==!1){const $=Object.keys(v),{shapeFlag:E}=T;$.length&&E&7&&(a&&$.some(Ra)&&(v=_h(v,a)),T=Zt(T,v))}return r.dirs&&(T=Zt(T),T.dirs=T.dirs?T.dirs.concat(r.dirs):r.dirs),r.transition&&(T.transition=r.transition),x=T,ko(S),x}const Sh=e=>{let t;for(const r in e)(r==="class"||r==="style"||Xo(r))&&((t||(t={}))[r]=e[r]);return t},_h=(e,t)=>{const r={};for(const n in e)(!Ra(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Th(e,t,r){const{props:n,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Ms(n,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;function Rh(e,t){t&&t.pendingBranch?de(e)?t.effects.push(...e):t.effects.push(e):Ch(e)}function mt(e,t){if(Ge){let r=Ge.provides;const n=Ge.parent&&Ge.parent.provides;n===r&&(r=Ge.provides=Object.create(n)),r[e]=t}}function ve(e,t,r=!1){const n=Ge||nt;if(n){const o=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return r&&he(t)?t.call(n.proxy):t}}function dn(e,t){return ja(e,null,t)}const Ls={};function pt(e,t,r){return ja(e,t,r)}function ja(e,t,{immediate:r,deep:n,flush:o,onTrack:i,onTrigger:a}=Ee){const s=Ge;let l,u=!1,c=!1;if(Ze(e)?(l=()=>e.value,u=Zi(e)):Zr(e)?(l=()=>e,n=!0):de(e)?(c=!0,u=e.some(v=>Zr(v)||Zi(v)),l=()=>e.map(v=>{if(Ze(v))return v.value;if(Zr(v))return _r(v);if(he(v))return dr(v,s,2)})):he(e)?t?l=()=>dr(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return d&&d(),Ct(e,s,3,[h])}:l=Ft,t&&n){const v=l;l=()=>_r(v())}let d,h=v=>{d=x.onStop=()=>{dr(v,s,4)}};if(Yn)return h=Ft,t?r&&Ct(t,s,3,[l(),c?[]:void 0,h]):l(),Ft;let g=c?[]:Ls;const p=()=>{if(!!x.active)if(t){const v=x.run();(n||u||(c?v.some((S,T)=>Dn(S,g[T])):Dn(v,g)))&&(d&&d(),Ct(t,s,3,[v,g===Ls?void 0:g,h]),g=v)}else x.run()};p.allowRecurse=!!t;let m;o==="sync"?m=p:o==="post"?m=()=>lt(p,s&&s.suspense):m=()=>wh(p);const x=new ka(l,m);return t?r?p():g=x.run():o==="post"?lt(x.run.bind(x),s&&s.suspense):x.run(),()=>{x.stop(),s&&s.scope&&Oa(s.scope.effects,x)}}function Oh(e,t,r){const n=this.proxy,o=We(e)?e.includes(".")?Qc(n,e):()=>n[e]:e.bind(n,n);let i;he(t)?i=t:(i=t.handler,r=t);const a=Ge;tn(this);const s=ja(o,i.bind(n),r);return a?tn(a):Or(),s}function Qc(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o{_r(r,t)});else if(Ec(e))for(const r in e)_r(e[r],t);return e}function eu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qt(()=>{e.isMounted=!0}),St(()=>{e.isUnmounting=!0}),e}const yt=[Function,Array],Bh={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yt,onEnter:yt,onAfterEnter:yt,onEnterCancelled:yt,onBeforeLeave:yt,onLeave:yt,onAfterLeave:yt,onLeaveCancelled:yt,onBeforeAppear:yt,onAppear:yt,onAfterAppear:yt,onAppearCancelled:yt},setup(e,{slots:t}){const r=ai(),n=eu();let o;return()=>{const i=t.default&&Wa(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const m of i)if(m.type!==bt){a=m;break}}const s=ye(e),{mode:l}=s;if(n.isLeaving)return Pi(a);const u=Fs(a);if(!u)return Pi(a);const c=Un(u,s,n,r);Vn(u,c);const d=r.subTree,h=d&&Fs(d);let g=!1;const{getTransitionKey:p}=u.type;if(p){const m=p();o===void 0?o=m:m!==o&&(o=m,g=!0)}if(h&&h.type!==bt&&(!$r(u,h)||g)){const m=Un(h,s,n,r);if(Vn(h,m),l==="out-in")return n.isLeaving=!0,m.afterLeave=()=>{n.isLeaving=!1,r.update()},Pi(a);l==="in-out"&&u.type!==bt&&(m.delayLeave=(x,v,S)=>{const T=ru(n,h);T[String(h.key)]=h,x._leaveCb=()=>{v(),x._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=S})}return a}}},tu=Bh;function ru(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Un(e,t,r,n){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:h,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:m,onAppear:x,onAfterAppear:v,onAppearCancelled:S}=t,T=String(e.key),$=ru(r,e),E=(C,_)=>{C&&Ct(C,n,9,_)},P=(C,_)=>{const z=_[1];E(C,_),de(C)?C.every(D=>D.length<=1)&&z():C.length<=1&&z()},y={mode:i,persisted:a,beforeEnter(C){let _=s;if(!r.isMounted)if(o)_=m||s;else return;C._leaveCb&&C._leaveCb(!0);const z=$[T];z&&$r(e,z)&&z.el._leaveCb&&z.el._leaveCb(),E(_,[C])},enter(C){let _=l,z=u,D=c;if(!r.isMounted)if(o)_=x||l,z=v||u,D=S||c;else return;let R=!1;const K=C._enterCb=M=>{R||(R=!0,M?E(D,[C]):E(z,[C]),y.delayedLeave&&y.delayedLeave(),C._enterCb=void 0)};_?P(_,[C,K]):K()},leave(C,_){const z=String(e.key);if(C._enterCb&&C._enterCb(!0),r.isUnmounting)return _();E(d,[C]);let D=!1;const R=C._leaveCb=K=>{D||(D=!0,_(),K?E(p,[C]):E(g,[C]),C._leaveCb=void 0,$[z]===e&&delete $[z])};$[z]=e,h?P(h,[C,R]):R()},clone(C){return Un(C,t,r,n)}};return y}function Pi(e){if(ri(e))return e=Zt(e),e.children=null,e}function Fs(e){return ri(e)?e.children?e.children[0]:void 0:e}function Vn(e,t){e.shapeFlag&6&&e.component?Vn(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 Wa(e,t=!1,r){let n=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,ri=e=>e.type.__isKeepAlive;function zh(e,t){nu(e,"a",t)}function Ah(e,t){nu(e,"da",t)}function nu(e,t,r=Ge){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ni(t,n,r),r){let o=r.parent;for(;o&&o.parent;)ri(o.parent.vnode)&&kh(n,t,r,o),o=o.parent}}function kh(e,t,r,n){const o=ni(t,e,n,!0);iu(()=>{Oa(n[t],o)},r)}function ni(e,t,r=Ge,n=!1){if(r){const o=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(r.isUnmounted)return;cn(),tn(r);const s=Ct(t,r,e,a);return Or(),un(),s});return n?o.unshift(i):o.push(i),i}}const Jt=e=>(t,r=Ge)=>(!Yn||e==="sp")&&ni(e,t,r),oi=Jt("bm"),Qt=Jt("m"),Mh=Jt("bu"),ou=Jt("u"),St=Jt("bum"),iu=Jt("um"),Lh=Jt("sp"),Fh=Jt("rtg"),Ih=Jt("rtc");function Dh(e,t=Ge){ni("ec",e,t)}function en(e,t){const r=nt;if(r===null)return e;const n=si(r)||r.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(a,s,void 0,i&&i[s]));else{const a=Object.keys(e);o=new Array(a.length);for(let s=0,l=a.length;sKn(t)?!(t.type===bt||t.type===Pe&&!lu(t.children)):!0)?e:null}const ea=e=>e?xu(e)?si(e)||e.proxy:ea(e.parent):null,Mo=Je(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=>ea(e.parent),$root:e=>ea(e.root),$emit:e=>e.emit,$options:e=>uu(e),$forceUpdate:e=>e.f||(e.f=()=>qc(e.update)),$nextTick:e=>e.n||(e.n=no.bind(e.proxy)),$watch:e=>Oh.bind(e)}),Wh={get({_:e},t){const{ctx:r,setupState:n,data:o,props:i,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const g=a[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return i[t]}else{if(n!==Ee&&be(n,t))return a[t]=1,n[t];if(o!==Ee&&be(o,t))return a[t]=2,o[t];if((u=e.propsOptions[0])&&be(u,t))return a[t]=3,i[t];if(r!==Ee&&be(r,t))return a[t]=4,r[t];ta&&(a[t]=0)}}const c=Mo[t];let d,h;if(c)return t==="$attrs"&&xt(e,"get",t),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(r!==Ee&&be(r,t))return a[t]=4,r[t];if(h=l.config.globalProperties,be(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:i}=e;return o!==Ee&&be(o,t)?(o[t]=r,!0):n!==Ee&&be(n,t)?(n[t]=r,!0):be(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:i}},a){let s;return!!r[a]||e!==Ee&&be(e,a)||t!==Ee&&be(t,a)||(s=i[0])&&be(s,a)||be(n,a)||be(Mo,a)||be(o.config.globalProperties,a)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:be(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let ta=!0;function Uh(e){const t=uu(e),r=e.proxy,n=e.ctx;ta=!1,t.beforeCreate&&Ds(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:d,mounted:h,beforeUpdate:g,updated:p,activated:m,deactivated:x,beforeDestroy:v,beforeUnmount:S,destroyed:T,unmounted:$,render:E,renderTracked:P,renderTriggered:y,errorCaptured:C,serverPrefetch:_,expose:z,inheritAttrs:D,components:R,directives:K,filters:M}=t;if(u&&Vh(u,n,null,e.appContext.config.unwrapInjectedRef),a)for(const U in a){const G=a[U];he(G)&&(n[U]=G.bind(r))}if(o){const U=o.call(r,r);Ue(U)&&(e.data=Jo(U))}if(ta=!0,i)for(const U in i){const G=i[U],pe=he(G)?G.bind(r,r):he(G.get)?G.get.bind(r,r):Ft,$e=!he(G)&&he(G.set)?G.set.bind(r):Ft,Se=X({get:pe,set:$e});Object.defineProperty(n,U,{enumerable:!0,configurable:!0,get:()=>Se.value,set:Fe=>Se.value=Fe})}if(s)for(const U in s)cu(s[U],n,r,U);if(l){const U=he(l)?l.call(r):l;Reflect.ownKeys(U).forEach(G=>{mt(G,U[G])})}c&&Ds(c,e,"c");function W(U,G){de(G)?G.forEach(pe=>U(pe.bind(r))):G&&U(G.bind(r))}if(W(oi,d),W(Qt,h),W(Mh,g),W(ou,p),W(zh,m),W(Ah,x),W(Dh,C),W(Ih,P),W(Fh,y),W(St,S),W(iu,$),W(Lh,_),de(z))if(z.length){const U=e.exposed||(e.exposed={});z.forEach(G=>{Object.defineProperty(U,G,{get:()=>r[G],set:pe=>r[G]=pe})})}else e.exposed||(e.exposed={});E&&e.render===Ft&&(e.render=E),D!=null&&(e.inheritAttrs=D),R&&(e.components=R),K&&(e.directives=K)}function Vh(e,t,r,n=!1){de(e)&&(e=ra(e));for(const o in e){const i=e[o];let a;Ue(i)?"default"in i?a=ve(i.from||o,i.default,!0):a=ve(i.from||o):a=ve(i),Ze(a)&&n?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[o]=a}}function Ds(e,t,r){Ct(de(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function cu(e,t,r,n){const o=n.includes(".")?Qc(r,n):()=>r[n];if(We(e)){const i=t[e];he(i)&&pt(o,i)}else if(he(e))pt(o,e.bind(r));else if(Ue(e))if(de(e))e.forEach(i=>cu(i,t,r,n));else{const i=he(e.handler)?e.handler.bind(r):t[e.handler];he(i)&&pt(o,i,e)}}function uu(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(u=>Lo(l,u,a,!0)),Lo(l,t,a)),i.set(t,l),l}function Lo(e,t,r,n=!1){const{mixins:o,extends:i}=t;i&&Lo(e,i,r,!0),o&&o.forEach(a=>Lo(e,a,r,!0));for(const a in t)if(!(n&&a==="expose")){const s=qh[a]||r&&r[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const qh={data:Hs,props:wr,emits:wr,methods:wr,computed:wr,beforeCreate:ot,created:ot,beforeMount:ot,mounted:ot,beforeUpdate:ot,updated:ot,beforeDestroy:ot,beforeUnmount:ot,destroyed:ot,unmounted:ot,activated:ot,deactivated:ot,errorCaptured:ot,serverPrefetch:ot,components:wr,directives:wr,watch:Kh,provide:Hs,inject:Xh};function Hs(e,t){return t?e?function(){return Je(he(e)?e.call(this,this):e,he(t)?t.call(this,this):t)}:t:e}function Xh(e,t){return wr(ra(e),ra(t))}function ra(e){if(de(e)){const t={};for(let r=0;r0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[h,g]=fu(d,t,!0);Je(a,h),g&&s.push(...g)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return n.set(e,Yr),Yr;if(de(i))for(let c=0;c-1,g[1]=m<0||p-1||be(g,"default"))&&s.push(d)}}}const u=[a,s];return n.set(e,u),u}function Ns(e){return e[0]!=="$"}function js(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Ws(e,t){return js(e)===js(t)}function Us(e,t){return de(t)?t.findIndex(r=>Ws(r,e)):he(t)&&Ws(t,e)?0:-1}const hu=e=>e[0]==="_"||e==="$stable",Ua=e=>de(e)?e.map(Mt):[Mt(e)],Zh=(e,t,r)=>{if(t._n)return t;const n=Yt((...o)=>Ua(t(...o)),r);return n._c=!1,n},pu=(e,t,r)=>{const n=e._ctx;for(const o in e){if(hu(o))continue;const i=e[o];if(he(i))t[o]=Zh(o,i,n);else if(i!=null){const a=Ua(i);t[o]=()=>a}}},gu=(e,t)=>{const r=Ua(t);e.slots.default=()=>r},Jh=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=ye(t),zo(t,"_",r)):pu(t,e.slots={})}else e.slots={},t&&gu(e,t);zo(e.slots,ii,1)},Qh=(e,t,r)=>{const{vnode:n,slots:o}=e;let i=!0,a=Ee;if(n.shapeFlag&32){const s=t._;s?r&&s===1?i=!1:(Je(o,t),!r&&s===1&&delete o._):(i=!t.$stable,pu(t,o)),a=t}else t&&(gu(e,t),a={default:1});if(i)for(const s in o)!hu(s)&&!(s in a)&&delete o[s]};function vu(){return{app:null,config:{isNativeTag:Bf,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ep=0;function tp(e,t){return function(n,o=null){he(n)||(n=Object.assign({},n)),o!=null&&!Ue(o)&&(o=null);const i=vu(),a=new Set;let s=!1;const l=i.app={_uid:ep++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:yp,get config(){return i.config},set config(u){},use(u,...c){return a.has(u)||(u&&he(u.install)?(a.add(u),u.install(l,...c)):he(u)&&(a.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,d){if(!s){const h=He(n,o);return h.appContext=i,c&&t?t(h,u):e(h,u,d),s=!0,l._container=u,u.__vue_app__=l,si(h.component)||h.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l}};return l}}function oa(e,t,r,n,o=!1){if(de(e)){e.forEach((h,g)=>oa(h,t&&(de(t)?t[g]:t),r,n,o));return}if(Bn(n)&&!o)return;const i=n.shapeFlag&4?si(n.component)||n.component.proxy:n.el,a=o?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Ee?s.refs={}:s.refs,d=s.setupState;if(u!=null&&u!==l&&(We(u)?(c[u]=null,be(d,u)&&(d[u]=null)):Ze(u)&&(u.value=null)),he(l))dr(l,s,12,[a,c]);else{const h=We(l),g=Ze(l);if(h||g){const p=()=>{if(e.f){const m=h?c[l]:l.value;o?de(m)&&Oa(m,i):de(m)?m.includes(i)||m.push(i):h?(c[l]=[i],be(d,l)&&(d[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else h?(c[l]=a,be(d,l)&&(d[l]=a)):Ze(l)&&(l.value=a,e.k&&(c[e.k]=a))};a?(p.id=-1,lt(p,r)):p()}}}const lt=Rh;function rp(e){return np(e)}function np(e,t){const r=Ff();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:h,setScopeId:g=Ft,cloneNode:p,insertStaticContent:m}=e,x=(b,w,O,L=null,F=null,j=null,V=!1,k=null,H=!!w.dynamicChildren)=>{if(b===w)return;b&&!$r(b,w)&&(L=Ae(b),Ie(b,F,j,!0),b=null),w.patchFlag===-2&&(H=!1,w.dynamicChildren=null);const{type:I,ref:ne,shapeFlag:te}=w;switch(I){case Xa:v(b,w,O,L);break;case bt:S(b,w,O,L);break;case Ei:b==null&&T(w,O,L,V);break;case Pe:K(b,w,O,L,F,j,V,k,H);break;default:te&1?P(b,w,O,L,F,j,V,k,H):te&6?M(b,w,O,L,F,j,V,k,H):(te&64||te&128)&&I.process(b,w,O,L,F,j,V,k,H,Re)}ne!=null&&F&&oa(ne,b&&b.ref,j,w||b,!w)},v=(b,w,O,L)=>{if(b==null)n(w.el=s(w.children),O,L);else{const F=w.el=b.el;w.children!==b.children&&u(F,w.children)}},S=(b,w,O,L)=>{b==null?n(w.el=l(w.children||""),O,L):w.el=b.el},T=(b,w,O,L)=>{[b.el,b.anchor]=m(b.children,w,O,L,b.el,b.anchor)},$=({el:b,anchor:w},O,L)=>{let F;for(;b&&b!==w;)F=h(b),n(b,O,L),b=F;n(w,O,L)},E=({el:b,anchor:w})=>{let O;for(;b&&b!==w;)O=h(b),o(b),b=O;o(w)},P=(b,w,O,L,F,j,V,k,H)=>{V=V||w.type==="svg",b==null?y(w,O,L,F,j,V,k,H):z(b,w,F,j,V,k,H)},y=(b,w,O,L,F,j,V,k)=>{let H,I;const{type:ne,props:te,shapeFlag:re,transition:le,patchFlag:ge,dirs:_e}=b;if(b.el&&p!==void 0&&ge===-1)H=b.el=p(b.el);else{if(H=b.el=a(b.type,j,te&&te.is,te),re&8?c(H,b.children):re&16&&_(b.children,H,null,L,F,j&&ne!=="foreignObject",V,k),_e&&mr(b,null,L,"created"),te){for(const Oe in te)Oe!=="value"&&!Po(Oe)&&i(H,Oe,null,te[Oe],j,b.children,L,F,Q);"value"in te&&i(H,"value",null,te.value),(I=te.onVnodeBeforeMount)&&Ot(I,L,b)}C(H,b,b.scopeId,V,L)}_e&&mr(b,null,L,"beforeMount");const me=(!F||F&&!F.pendingBranch)&&le&&!le.persisted;me&&le.beforeEnter(H),n(H,w,O),((I=te&&te.onVnodeMounted)||me||_e)&<(()=>{I&&Ot(I,L,b),me&&le.enter(H),_e&&mr(b,null,L,"mounted")},F)},C=(b,w,O,L,F)=>{if(O&&g(b,O),L)for(let j=0;j{for(let I=H;I{const k=w.el=b.el;let{patchFlag:H,dynamicChildren:I,dirs:ne}=w;H|=b.patchFlag&16;const te=b.props||Ee,re=w.props||Ee;let le;O&&br(O,!1),(le=re.onVnodeBeforeUpdate)&&Ot(le,O,w,b),ne&&mr(w,b,O,"beforeUpdate"),O&&br(O,!0);const ge=F&&w.type!=="foreignObject";if(I?D(b.dynamicChildren,I,k,O,L,ge,j):V||pe(b,w,k,null,O,L,ge,j,!1),H>0){if(H&16)R(k,w,te,re,O,L,F);else if(H&2&&te.class!==re.class&&i(k,"class",null,re.class,F),H&4&&i(k,"style",te.style,re.style,F),H&8){const _e=w.dynamicProps;for(let me=0;me<_e.length;me++){const Oe=_e[me],N=te[Oe],ee=re[Oe];(ee!==N||Oe==="value")&&i(k,Oe,N,ee,F,b.children,O,L,Q)}}H&1&&b.children!==w.children&&c(k,w.children)}else!V&&I==null&&R(k,w,te,re,O,L,F);((le=re.onVnodeUpdated)||ne)&<(()=>{le&&Ot(le,O,w,b),ne&&mr(w,b,O,"updated")},L)},D=(b,w,O,L,F,j,V)=>{for(let k=0;k{if(O!==L){for(const k in L){if(Po(k))continue;const H=L[k],I=O[k];H!==I&&k!=="value"&&i(b,k,I,H,V,w.children,F,j,Q)}if(O!==Ee)for(const k in O)!Po(k)&&!(k in L)&&i(b,k,O[k],null,V,w.children,F,j,Q);"value"in L&&i(b,"value",O.value,L.value)}},K=(b,w,O,L,F,j,V,k,H)=>{const I=w.el=b?b.el:s(""),ne=w.anchor=b?b.anchor:s("");let{patchFlag:te,dynamicChildren:re,slotScopeIds:le}=w;le&&(k=k?k.concat(le):le),b==null?(n(I,O,L),n(ne,O,L),_(w.children,O,ne,F,j,V,k,H)):te>0&&te&64&&re&&b.dynamicChildren?(D(b.dynamicChildren,re,O,F,j,V,k),(w.key!=null||F&&w===F.subTree)&&Va(b,w,!0)):pe(b,w,O,ne,F,j,V,k,H)},M=(b,w,O,L,F,j,V,k,H)=>{w.slotScopeIds=k,b==null?w.shapeFlag&512?F.ctx.activate(w,O,L,V,H):q(w,O,L,F,j,V,H):W(b,w,H)},q=(b,w,O,L,F,j,V)=>{const k=b.component=hp(b,L,F);if(ri(b)&&(k.ctx.renderer=Re),pp(k),k.asyncDep){if(F&&F.registerDep(k,U),!b.el){const H=k.subTree=He(bt);S(null,H,w,O)}return}U(k,b,w,O,F,j,V)},W=(b,w,O)=>{const L=w.component=b.component;if(Th(b,w,O))if(L.asyncDep&&!L.asyncResolved){G(L,w,O);return}else L.next=w,yh(L.update),L.update();else w.el=b.el,L.vnode=w},U=(b,w,O,L,F,j,V)=>{const k=()=>{if(b.isMounted){let{next:ne,bu:te,u:re,parent:le,vnode:ge}=b,_e=ne,me;br(b,!1),ne?(ne.el=ge.el,G(b,ne,V)):ne=ge,te&&_i(te),(me=ne.props&&ne.props.onVnodeBeforeUpdate)&&Ot(me,le,ne,ge),br(b,!0);const Oe=Ti(b),N=b.subTree;b.subTree=Oe,x(N,Oe,d(N.el),Ae(N),b,F,j),ne.el=Oe.el,_e===null&&Ph(b,Oe.el),re&<(re,F),(me=ne.props&&ne.props.onVnodeUpdated)&<(()=>Ot(me,le,ne,ge),F)}else{let ne;const{el:te,props:re}=w,{bm:le,m:ge,parent:_e}=b,me=Bn(w);if(br(b,!1),le&&_i(le),!me&&(ne=re&&re.onVnodeBeforeMount)&&Ot(ne,_e,w),br(b,!0),te&&tt){const Oe=()=>{b.subTree=Ti(b),tt(te,b.subTree,b,F,null)};me?w.type.__asyncLoader().then(()=>!b.isUnmounted&&Oe()):Oe()}else{const Oe=b.subTree=Ti(b);x(null,Oe,O,L,b,F,j),w.el=Oe.el}if(ge&<(ge,F),!me&&(ne=re&&re.onVnodeMounted)){const Oe=w;lt(()=>Ot(ne,_e,Oe),F)}(w.shapeFlag&256||_e&&Bn(_e.vnode)&&_e.vnode.shapeFlag&256)&&b.a&<(b.a,F),b.isMounted=!0,w=O=L=null}},H=b.effect=new ka(k,()=>qc(I),b.scope),I=b.update=()=>H.run();I.id=b.uid,br(b,!0),I()},G=(b,w,O)=>{w.component=b;const L=b.vnode.props;b.vnode=w,b.next=null,Gh(b,w.props,L,O),Qh(b,w.children,O),cn(),ei(void 0,b.update),un()},pe=(b,w,O,L,F,j,V,k,H=!1)=>{const I=b&&b.children,ne=b?b.shapeFlag:0,te=w.children,{patchFlag:re,shapeFlag:le}=w;if(re>0){if(re&128){Se(I,te,O,L,F,j,V,k,H);return}else if(re&256){$e(I,te,O,L,F,j,V,k,H);return}}le&8?(ne&16&&Q(I,F,j),te!==I&&c(O,te)):ne&16?le&16?Se(I,te,O,L,F,j,V,k,H):Q(I,F,j,!0):(ne&8&&c(O,""),le&16&&_(te,O,L,F,j,V,k,H))},$e=(b,w,O,L,F,j,V,k,H)=>{b=b||Yr,w=w||Yr;const I=b.length,ne=w.length,te=Math.min(I,ne);let re;for(re=0;rene?Q(b,F,j,!0,!1,te):_(w,O,L,F,j,V,k,H,te)},Se=(b,w,O,L,F,j,V,k,H)=>{let I=0;const ne=w.length;let te=b.length-1,re=ne-1;for(;I<=te&&I<=re;){const le=b[I],ge=w[I]=H?lr(w[I]):Mt(w[I]);if($r(le,ge))x(le,ge,O,null,F,j,V,k,H);else break;I++}for(;I<=te&&I<=re;){const le=b[te],ge=w[re]=H?lr(w[re]):Mt(w[re]);if($r(le,ge))x(le,ge,O,null,F,j,V,k,H);else break;te--,re--}if(I>te){if(I<=re){const le=re+1,ge=lere)for(;I<=te;)Ie(b[I],F,j,!0),I++;else{const le=I,ge=I,_e=new Map;for(I=ge;I<=re;I++){const Te=w[I]=H?lr(w[I]):Mt(w[I]);Te.key!=null&&_e.set(Te.key,I)}let me,Oe=0;const N=re-ge+1;let ee=!1,ue=0;const we=new Array(N);for(I=0;I=N){Ie(Te,F,j,!0);continue}let Ne;if(Te.key!=null)Ne=_e.get(Te.key);else for(me=ge;me<=re;me++)if(we[me-ge]===0&&$r(Te,w[me])){Ne=me;break}Ne===void 0?Ie(Te,F,j,!0):(we[Ne-ge]=I+1,Ne>=ue?ue=Ne:ee=!0,x(Te,w[Ne],O,null,F,j,V,k,H),Oe++)}const De=ee?op(we):Yr;for(me=De.length-1,I=N-1;I>=0;I--){const Te=ge+I,Ne=w[Te],ke=Te+1{const{el:j,type:V,transition:k,children:H,shapeFlag:I}=b;if(I&6){Fe(b.component.subTree,w,O,L);return}if(I&128){b.suspense.move(w,O,L);return}if(I&64){V.move(b,w,O,Re);return}if(V===Pe){n(j,w,O);for(let te=0;tek.enter(j),F);else{const{leave:te,delayLeave:re,afterLeave:le}=k,ge=()=>n(j,w,O),_e=()=>{te(j,()=>{ge(),le&&le()})};re?re(j,ge,_e):_e()}else n(j,w,O)},Ie=(b,w,O,L=!1,F=!1)=>{const{type:j,props:V,ref:k,children:H,dynamicChildren:I,shapeFlag:ne,patchFlag:te,dirs:re}=b;if(k!=null&&oa(k,null,O,b,!0),ne&256){w.ctx.deactivate(b);return}const le=ne&1&&re,ge=!Bn(b);let _e;if(ge&&(_e=V&&V.onVnodeBeforeUnmount)&&Ot(_e,w,b),ne&6)ae(b.component,O,L);else{if(ne&128){b.suspense.unmount(O,L);return}le&&mr(b,null,w,"beforeUnmount"),ne&64?b.type.remove(b,w,O,F,Re,L):I&&(j!==Pe||te>0&&te&64)?Q(I,w,O,!1,!0):(j===Pe&&te&384||!F&&ne&16)&&Q(H,w,O),L&&Ve(b)}(ge&&(_e=V&&V.onVnodeUnmounted)||le)&<(()=>{_e&&Ot(_e,w,b),le&&mr(b,null,w,"unmounted")},O)},Ve=b=>{const{type:w,el:O,anchor:L,transition:F}=b;if(w===Pe){ie(O,L);return}if(w===Ei){E(b);return}const j=()=>{o(O),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(b.shapeFlag&1&&F&&!F.persisted){const{leave:V,delayLeave:k}=F,H=()=>V(O,j);k?k(b.el,j,H):H()}else j()},ie=(b,w)=>{let O;for(;b!==w;)O=h(b),o(b),b=O;o(w)},ae=(b,w,O)=>{const{bum:L,scope:F,update:j,subTree:V,um:k}=b;L&&_i(L),F.stop(),j&&(j.active=!1,Ie(V,b,w,O)),k&<(k,w),lt(()=>{b.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve())},Q=(b,w,O,L=!1,F=!1,j=0)=>{for(let V=j;Vb.shapeFlag&6?Ae(b.component.subTree):b.shapeFlag&128?b.suspense.next():h(b.anchor||b.el),ce=(b,w,O)=>{b==null?w._vnode&&Ie(w._vnode,null,null,!0):x(w._vnode||null,b,w,null,null,null,O),Yc(),w._vnode=b},Re={p:x,um:Ie,m:Fe,r:Ve,mt:q,mc:_,pc:pe,pbc:D,n:Ae,o:e};let qe,tt;return t&&([qe,tt]=t(Re)),{render:ce,hydrate:qe,createApp:tp(ce,qe)}}function br({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Va(e,t,r=!1){const n=e.children,o=t.children;if(de(n)&&de(o))for(let i=0;i>1,e[r[s]]0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=t[a];return r}const ip=e=>e.__isTeleport,An=e=>e&&(e.disabled||e.disabled===""),Vs=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,ia=(e,t)=>{const r=e&&e.to;return We(r)?t?t(r):null:r},ap={__isTeleport:!0,process(e,t,r,n,o,i,a,s,l,u){const{mc:c,pc:d,pbc:h,o:{insert:g,querySelector:p,createText:m,createComment:x}}=u,v=An(t.props);let{shapeFlag:S,children:T,dynamicChildren:$}=t;if(e==null){const E=t.el=m(""),P=t.anchor=m("");g(E,r,n),g(P,r,n);const y=t.target=ia(t.props,p),C=t.targetAnchor=m("");y&&(g(C,y),a=a||Vs(y));const _=(z,D)=>{S&16&&c(T,z,D,o,i,a,s,l)};v?_(r,P):y&&_(y,C)}else{t.el=e.el;const E=t.anchor=e.anchor,P=t.target=e.target,y=t.targetAnchor=e.targetAnchor,C=An(e.props),_=C?r:P,z=C?E:y;if(a=a||Vs(P),$?(h(e.dynamicChildren,$,_,o,i,a,s),Va(e,t,!0)):l||d(e,t,_,z,o,i,a,s,!1),v)C||fo(t,r,E,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=ia(t.props,p);D&&fo(t,D,null,u,0)}else C&&fo(t,P,y,u,1)}},remove(e,t,r,n,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:h}=e;if(d&&i(c),(a||!An(h))&&(i(u),s&16))for(let g=0;g0?Pt||Yr:null,lp(),qn>0&&Pt&&Pt.push(e),e}function kt(e,t,r,n,o,i){return mu(Ka(e,t,r,n,o,i,!0))}function Xn(e,t,r,n,o){return mu(He(e,t,r,n,o,!0))}function Kn(e){return e?e.__v_isVNode===!0:!1}function $r(e,t){return e.type===t.type&&e.key===t.key}const ii="__vInternal",bu=({key:e})=>e!=null?e:null,Eo=({ref:e,ref_key:t,ref_for:r})=>e!=null?We(e)||Ze(e)||he(e)?{i:nt,r:e,k:t,f:!!r}:e:null;function Ka(e,t=null,r=null,n=0,o=null,i=e===Pe?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bu(t),ref:t&&Eo(t),scopeId:Jc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null};return s?(Ya(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=We(r)?8:16),qn>0&&!a&&Pt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Pt.push(l),l}const He=cp;function cp(e,t=null,r=null,n=0,o=null,i=!1){if((!e||e===su)&&(e=bt),Kn(e)){const s=Zt(e,t,!0);return r&&Ya(s,r),qn>0&&!i&&Pt&&(s.shapeFlag&6?Pt[Pt.indexOf(e)]=s:Pt.push(s)),s.patchFlag|=-2,s}if(xp(e)&&(e=e.__vccOpts),t){t=up(t);let{class:s,style:l}=t;s&&!We(s)&&(t.class=Ea(s)),Ue(l)&&(Nc(l)&&!de(l)&&(l=Je({},l)),t.style=Pa(l))}const a=We(e)?1:Eh(e)?128:ip(e)?64:Ue(e)?4:he(e)?2:0;return Ka(e,t,r,n,o,a,i,!0)}function up(e){return e?Nc(e)||ii in e?Je({},e):e:null}function Zt(e,t,r=!1){const{props:n,ref:o,patchFlag:i,children:a}=e,s=t?Ga(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&bu(s),ref:t&&t.ref?r&&o?de(o)?o.concat(Eo(t)):[o,Eo(t)]:Eo(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?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&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor}}function hr(e=" ",t=0){return He(Xa,null,e,t)}function Mt(e){return e==null||typeof e=="boolean"?He(bt):de(e)?He(Pe,null,e.slice()):typeof e=="object"?lr(e):He(Xa,null,String(e))}function lr(e){return e.el===null||e.memo?e:Zt(e)}function Ya(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(de(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),Ya(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(ii in t)?t._ctx=nt:o===3&&nt&&(nt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else he(t)?(t={default:t,_ctx:nt},r=32):(t=String(t),n&64?(r=16,t=[hr(t)]):r=8);e.children=t,e.shapeFlag|=r}function Ga(...e){const t={};for(let r=0;rGe||nt,tn=e=>{Ge=e,e.scope.on()},Or=()=>{Ge&&Ge.scope.off(),Ge=null};function xu(e){return e.vnode.shapeFlag&4}let Yn=!1;function pp(e,t=!1){Yn=t;const{props:r,children:n}=e.vnode,o=xu(e);Yh(e,r,o,t),Jh(e,n);const i=o?gp(e,t):void 0;return Yn=!1,i}function gp(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Da(new Proxy(e.ctx,Wh));const{setup:n}=r;if(n){const o=e.setupContext=n.length>1?mp(e):null;tn(e),cn();const i=dr(n,e,0,[e.props,o]);if(un(),Or(),Tc(i)){if(i.then(Or,Or),t)return i.then(a=>{Xs(e,a,t)}).catch(a=>{Qo(a,e,0)});e.asyncDep=i}else Xs(e,i,t)}else yu(e,t)}function Xs(e,t,r){he(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ue(t)&&(e.setupState=Uc(t)),yu(e,r)}let Ks;function yu(e,t,r){const n=e.type;if(!e.render){if(!t&&Ks&&!n.render){const o=n.template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Je(Je({isCustomElement:i,delimiters:s},a),l);n.render=Ks(o,u)}}e.render=n.render||Ft}tn(e),cn(),Uh(e),un(),Or()}function vp(e){return new Proxy(e.attrs,{get(t,r){return xt(e,"get","$attrs"),t[r]}})}function mp(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=vp(e))},slots:e.slots,emit:e.emit,expose:t}}function si(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Uc(Da(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Mo)return Mo[r](e)}}))}function bp(e){return he(e)&&e.displayName||e.name}function xp(e){return he(e)&&"__vccOpts"in e}const X=(e,t)=>mh(e,t,Yn);function f(e,t,r){const n=arguments.length;return n===2?Ue(t)&&!de(t)?Kn(t)?He(e,null,[t]):He(e,t):He(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Kn(r)&&(r=[r]),He(e,t,r))}const yp="3.2.36",wp="http://www.w3.org/2000/svg",Sr=typeof document!="undefined"?document:null,Ys=Sr&&Sr.createElement("template"),Cp={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t?Sr.createElementNS(wp,e):Sr.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Sr.createTextNode(e),createComment:e=>Sr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Sr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,n,o,i){const a=r?r.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{Ys.innerHTML=n?`${e}`:e;const s=Ys.content;if(n){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]}};function $p(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function Sp(e,t,r){const n=e.style,o=We(r);if(r&&!o){for(const i in r)aa(n,i,r[i]);if(t&&!We(t))for(const i in t)r[i]==null&&aa(n,i,"")}else{const i=n.display;o?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=i)}}const Gs=/\s*!important$/;function aa(e,t,r){if(de(r))r.forEach(n=>aa(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=_p(e,t);Gs.test(r)?e.setProperty(ln(n),r.replace(Gs,""),"important"):e[n]=r}}const Zs=["Webkit","Moz","ms"],Ri={};function _p(e,t){const r=Ri[t];if(r)return r;let n=Dt(t);if(n!=="filter"&&n in e)return Ri[t]=n;n=Go(n);for(let o=0;o{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const r=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(r&&Number(r[1])<=53)}return[e,t]})();let sa=0;const Rp=Promise.resolve(),Op=()=>{sa=0},Bp=()=>sa||(Rp.then(Op),sa=wu());function zp(e,t,r,n){e.addEventListener(t,r,n)}function Ap(e,t,r,n){e.removeEventListener(t,r,n)}function kp(e,t,r,n,o=null){const i=e._vei||(e._vei={}),a=i[t];if(n&&a)a.value=n;else{const[s,l]=Mp(t);if(n){const u=i[t]=Lp(n,o);zp(e,s,u,l)}else a&&(Ap(e,s,a,l),i[t]=void 0)}}const Qs=/(?:Once|Passive|Capture)$/;function Mp(e){let t;if(Qs.test(e)){t={};let r;for(;r=e.match(Qs);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[ln(e.slice(2)),t]}function Lp(e,t){const r=n=>{const o=n.timeStamp||wu();(Ep||o>=r.attached-1)&&Ct(Fp(n,r.value),t,5,[n])};return r.value=e,r.attached=Bp(),r}function Fp(e,t){if(de(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const el=/^on[a-z]/,Ip=(e,t,r,n,o=!1,i,a,s,l)=>{t==="class"?$p(e,n,o):t==="style"?Sp(e,r,n):Xo(t)?Ra(t)||kp(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Dp(e,t,n,o))?Pp(e,t,n,i,a,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Tp(e,t,n,o))};function Dp(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&el.test(t)&&he(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||el.test(t)&&We(r)?!1:t in e}const nr="transition",yn="animation",Et=(e,{slots:t})=>f(tu,$u(e),t);Et.displayName="Transition";const Cu={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},Hp=Et.props=Je({},tu.props,Cu),xr=(e,t)=>{de(e)?e.forEach(r=>r(...t)):e&&e(...t)},tl=e=>e?de(e)?e.some(t=>t.length>1):e.length>1:!1;function $u(e){const t={};for(const R in e)R in Cu||(t[R]=e[R]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:g=`${r}-leave-to`}=e,p=Np(o),m=p&&p[0],x=p&&p[1],{onBeforeEnter:v,onEnter:S,onEnterCancelled:T,onLeave:$,onLeaveCancelled:E,onBeforeAppear:P=v,onAppear:y=S,onAppearCancelled:C=T}=t,_=(R,K,M)=>{sr(R,K?c:s),sr(R,K?u:a),M&&M()},z=(R,K)=>{R._isLeaving=!1,sr(R,d),sr(R,g),sr(R,h),K&&K()},D=R=>(K,M)=>{const q=R?y:S,W=()=>_(K,R,M);xr(q,[K,W]),rl(()=>{sr(K,R?l:i),qt(K,R?c:s),tl(q)||nl(K,n,m,W)})};return Je(t,{onBeforeEnter(R){xr(v,[R]),qt(R,i),qt(R,a)},onBeforeAppear(R){xr(P,[R]),qt(R,l),qt(R,u)},onEnter:D(!1),onAppear:D(!0),onLeave(R,K){R._isLeaving=!0;const M=()=>z(R,K);qt(R,d),_u(),qt(R,h),rl(()=>{!R._isLeaving||(sr(R,d),qt(R,g),tl($)||nl(R,n,x,M))}),xr($,[R,M])},onEnterCancelled(R){_(R,!1),xr(T,[R])},onAppearCancelled(R){_(R,!0),xr(C,[R])},onLeaveCancelled(R){z(R),xr(E,[R])}})}function Np(e){if(e==null)return null;if(Ue(e))return[Oi(e.enter),Oi(e.leave)];{const t=Oi(e);return[t,t]}}function Oi(e){return Rc(e)}function qt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function sr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function rl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jp=0;function nl(e,t,r,n){const o=e._endId=++jp,i=()=>{o===e._endId&&n()};if(r)return setTimeout(i,r);const{type:a,timeout:s,propCount:l}=Su(e,t);if(!a)return n();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,h),i()},h=g=>{g.target===e&&++c>=l&&d()};setTimeout(()=>{c(r[p]||"").split(", "),o=n(nr+"Delay"),i=n(nr+"Duration"),a=ol(o,i),s=n(yn+"Delay"),l=n(yn+"Duration"),u=ol(s,l);let c=null,d=0,h=0;t===nr?a>0&&(c=nr,d=a,h=i.length):t===yn?u>0&&(c=yn,d=u,h=l.length):(d=Math.max(a,u),c=d>0?a>u?nr:yn:null,h=c?c===nr?i.length:l.length:0);const g=c===nr&&/\b(transform|all)(,|$)/.test(r[nr+"Property"]);return{type:c,timeout:d,propCount:h,hasTransform:g}}function ol(e,t){for(;e.lengthil(r)+il(e[n])))}function il(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function _u(){return document.body.offsetHeight}const Tu=new WeakMap,Pu=new WeakMap,Wp={name:"TransitionGroup",props:Je({},Hp,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=ai(),n=eu();let o,i;return ou(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!Kp(o[0].el,r.vnode.el,a))return;o.forEach(Vp),o.forEach(qp);const s=o.filter(Xp);_u(),s.forEach(l=>{const u=l.el,c=u.style;qt(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const d=u._moveCb=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",d),u._moveCb=null,sr(u,a))};u.addEventListener("transitionend",d)})}),()=>{const a=ye(e),s=$u(a);let l=a.tag||Pe;o=i,i=t.default?Wa(t.default()):[];for(let u=0;u{a.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),r.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:i}=Su(n);return o.removeChild(n),i}const Eu={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):wn(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),wn(e,!0),n.enter(e)):n.leave(e,()=>{wn(e,!1)}):wn(e,t))},beforeUnmount(e,{value:t}){wn(e,t)}};function wn(e,t){e.style.display=t?e._vod:"none"}const Yp=Je({patchProp:Ip},Cp);let al;function Gp(){return al||(al=rp(Yp))}const Zp=(...e)=>{const t=Gp().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=Jp(n);if(!o)return;const i=t._component;!he(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Jp(e){return We(e)?document.querySelector(e):e}let Fo=[];const Ru=new WeakMap;function Qp(){Fo.forEach(e=>e(...Ru.get(e))),Fo=[]}function Ou(e,...t){Ru.set(e,t),!Fo.includes(e)&&Fo.push(e)===1&&requestAnimationFrame(Qp)}function sl(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function eg(e,t){const r=e.trim().split(/\s+/g),n={top:r[0]};switch(r.length){case 1:n.right=r[0],n.bottom=r[0],n.left=r[0];break;case 2:n.right=r[1],n.left=r[1],n.bottom=r[0];break;case 3:n.right=r[1],n.bottom=r[2],n.left=r[1];break;case 4:n.right=r[1],n.bottom=r[2],n.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}function tg(e,t){const[r,n]=e.split(" ");return t?t==="row"?r:n:{row:r,col:n||r}}var ll={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"};const fn="^\\s*",hn="\\s*$",Tr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Pr="([0-9A-Fa-f])",Er="([0-9A-Fa-f]{2})",rg=new RegExp(`${fn}rgb\\s*\\(${Tr},${Tr},${Tr}\\)${hn}`),ng=new RegExp(`${fn}rgba\\s*\\(${Tr},${Tr},${Tr},${Tr}\\)${hn}`),og=new RegExp(`${fn}#${Pr}${Pr}${Pr}${hn}`),ig=new RegExp(`${fn}#${Er}${Er}${Er}${hn}`),ag=new RegExp(`${fn}#${Pr}${Pr}${Pr}${Pr}${hn}`),sg=new RegExp(`${fn}#${Er}${Er}${Er}${Er}${hn}`);function st(e){return parseInt(e,16)}function Ar(e){try{let t;if(t=ig.exec(e))return[st(t[1]),st(t[2]),st(t[3]),1];if(t=rg.exec(e))return[rt(t[1]),rt(t[5]),rt(t[9]),1];if(t=ng.exec(e))return[rt(t[1]),rt(t[5]),rt(t[9]),Mn(t[13])];if(t=og.exec(e))return[st(t[1]+t[1]),st(t[2]+t[2]),st(t[3]+t[3]),1];if(t=sg.exec(e))return[st(t[1]),st(t[2]),st(t[3]),Mn(st(t[4])/255)];if(t=ag.exec(e))return[st(t[1]+t[1]),st(t[2]+t[2]),st(t[3]+t[3]),Mn(st(t[4]+t[4])/255)];if(e in ll)return Ar(ll[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function lg(e){return e>1?1:e<0?0:e}function la(e,t,r,n){return`rgba(${rt(e)}, ${rt(t)}, ${rt(r)}, ${lg(n)})`}function Bi(e,t,r,n,o){return rt((e*t*(1-n)+r*n)/o)}function li(e,t){Array.isArray(e)||(e=Ar(e)),Array.isArray(t)||(t=Ar(t));const r=e[3],n=t[3],o=Mn(r+n-r*n);return la(Bi(e[0],r,t[0],n,o),Bi(e[1],r,t[1],n,o),Bi(e[2],r,t[2],n,o),o)}function Ce(e,t){const[r,n,o,i=1]=Array.isArray(e)?e:Ar(e);return t.alpha?la(r,n,o,t.alpha):la(r,n,o,i)}function ho(e,t){const[r,n,o,i=1]=Array.isArray(e)?e:Ar(e),{lightness:a=1,alpha:s=1}=t;return cg([r*a,n*a,o*a,i*s])}function Mn(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function rt(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function cg(e){const[t,r,n]=e;return 3 in e?`rgba(${rt(t)}, ${rt(r)}, ${rt(n)}, ${Mn(e[3])})`:`rgba(${rt(t)}, ${rt(r)}, ${rt(n)}, 1)`}globalThis&&globalThis.__awaiter;function rn(e=8){return Math.random().toString(16).slice(2,2+e)}function ug(e,t="default",r=[]){const o=e.$slots[t];return o===void 0?r:o()}function Bu(e,t=[],r){const n={};return t.forEach(o=>{n[o]=e[o]}),Object.assign(n,r)}function dg(e,t,r){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,r)}function Io(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(hr(String(n)));return}if(Array.isArray(n)){Io(n,t,r);return}if(n.type===Pe){if(n.children===null)return;Array.isArray(n.children)&&Io(n.children,t,r)}else n.type!==bt&&r.push(n)}}),r}function Me(e,...t){if(Array.isArray(e))e.forEach(r=>Me(r,...t));else return e(...t)}function fg(e){return Object.keys(e)}const Nr=(e,...t)=>typeof e=="function"?e(...t):typeof e=="string"?hr(e):typeof e=="number"?hr(String(e)):null;function ca(e,t){console.error(`[naive/${e}]: ${t}`)}function pn(e,t){throw new Error(`[naive/${e}]: ${t}`)}function cl(e,t,r=void 0){const n=e[t];if(!n)return ca("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Io(n(r));return o.length===1?o[0]:(ca("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function Za(e){return e.some(t=>Kn(t)?!(t.type===bt||t.type===Pe&&!Za(t.children)):!0)?e:null}function Do(e,t){const r=e&&Za(e());return t(r||null)}function zu(e){return!(e&&Za(e()))}const hg=/^(\d|\.)+$/,ul=/(\d|\.)+/;function Xt(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if(typeof e=="number"){const o=(e+r)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(hg.test(e)){const o=(Number(e)+r)*t;return n?o===0?"0":`${o}px`:`${o}`}else{const o=ul.exec(e);return o?e.replace(ul,String((Number(o[0])+r)*t)):e}return e}function Ho(e){return e.replace(/#|\(|\)|,|\s/g,"_")}function pg(e){let t=0;for(let r=0;r{let o=pg(n);if(o){if(o===1){e.forEach(a=>{r.push(n.replace("&",a))});return}}else{e.forEach(a=>{r.push((a&&a+" ")+n)});return}let i=[n];for(;o--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>r.push(a))}),r}function mg(e,t){const r=[];return t.split(Au).forEach(n=>{e.forEach(o=>{r.push((o&&o+" ")+n)})}),r}function bg(e){let t=[""];return e.forEach(r=>{r=r&&r.trim(),r&&(r.includes("&")?t=vg(t,r):t=mg(t,r))}),t.join(", ").replace(gg," ")}function dl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function ci(e){return document.querySelector(`style[cssr-id="${e}"]`)}function xg(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function po(e){return e?/^\s*@(s|m)/.test(e):!1}const yg=/[A-Z]/g;function ku(e){return e.replace(yg,t=>"-"+t.toLowerCase())}function wg(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(r=>t+` ${ku(r[0])}: ${r[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function Cg(e,t,r){return typeof e=="function"?e({context:t.context,props:r}):e}function fl(e,t,r,n){if(!t)return"";const o=Cg(t,r,n);if(!o)return"";if(typeof o=="string")return`${e} { +${o} +}`;const i=Object.keys(o);if(i.length===0)return r.config.keepEmptyBlock?e+` { +}`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=o[s];if(s==="raw"){a.push(` +`+l+` +`);return}s=ku(s),l!=null&&a.push(` ${s}${wg(l)}`)}),e&&a.push("}"),a.join(` +`)}function ua(e,t,r){!e||e.forEach(n=>{if(Array.isArray(n))ua(n,t,r);else if(typeof n=="function"){const o=n(t);Array.isArray(o)?ua(o,t,r):o&&r(o)}else n&&r(n)})}function Mu(e,t,r,n,o,i){const a=e.$;let s="";if(!a||typeof a=="string")po(a)?s=a:t.push(a);else if(typeof a=="function"){const c=a({context:n.context,props:o});po(c)?s=c:t.push(c)}else if(a.before&&a.before(n.context),!a.$||typeof a.$=="string")po(a.$)?s=a.$:t.push(a.$);else if(a.$){const c=a.$({context:n.context,props:o});po(c)?s=c:t.push(c)}const l=bg(t),u=fl(l,e.props,n,o);s?(r.push(`${s} {`),i&&u&&i.insertRule(`${s} { +${u} +} +`)):(i&&u&&i.insertRule(u),!i&&u.length&&r.push(u)),e.children&&ua(e.children,{context:n.context,props:o},c=>{if(typeof c=="string"){const d=fl(l,{raw:c},n,o);i?i.insertRule(d):r.push(d)}else Mu(c,t,r,n,o,i)}),t.pop(),s&&r.push("}"),a&&a.after&&a.after(n.context)}function Lu(e,t,r,n=!1){const o=[];return Mu(e,[],o,t,r,n?e.instance.__styleSheet:void 0),n?"":o.join(` + +`)}function da(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&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(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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!="undefined"&&(window.__cssrContext={});function $g(e,t,r){const{els:n}=t;if(r===void 0)n.forEach(dl),t.els=[];else{const o=ci(r);o&&n.includes(o)&&(dl(o),t.els=n.filter(i=>i!==o))}}function hl(e,t){e.push(t)}function Sg(e,t,r,n,o,i,a,s,l){if(i&&!l){if(r===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const h=window.__cssrContext;h[r]||(h[r]=!0,Lu(t,e,n,i));return}let u;if(r===void 0&&(u=t.render(n),r=da(u)),l){l.adapter(r,u!=null?u:t.render(n));return}const c=ci(r);if(c!==null&&!a)return c;const d=c!=null?c:xg(r);if(u===void 0&&(u=t.render(n)),d.textContent=u,c!==null)return c;if(s){const h=document.head.querySelector(`meta[name="${s}"]`);if(h)return document.head.insertBefore(d,h),hl(t.els,d),d}return o?document.head.insertBefore(d,document.head.querySelector("style, link")):document.head.appendChild(d),hl(t.els,d),d}function _g(e){return Lu(this,this.instance,e)}function Tg(e){const{id:t,ssr:r,props:n,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:s}=e;return Sg(this.instance,this,t,n,o,i,a,s,r)}function Pg(e){const{id:t}=e;$g(this.instance,this,t)}const go=function(e,t,r,n){return{instance:e,$:t,props:r,children:n,els:[],render:_g,mount:Tg,unmount:Pg}},Eg=function(e,t,r,n){return Array.isArray(t)?go(e,{$:null},null,t):Array.isArray(r)?go(e,t,null,r):Array.isArray(n)?go(e,t,r,n):go(e,t,r,null)};function Fu(e={}){let t=null;const r={c:(...n)=>Eg(r,...n),use:(n,...o)=>n.install(r,...o),find:ci,context:{},config:e,get __styleSheet(){if(!t){const n=document.createElement("style");return document.head.appendChild(n),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return r}function Rg(e,t){if(e===void 0)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return ci(e)!==null}function Og(e){let t=".",r="__",n="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(r=p),p=e.modifierPrefix,p&&(n=p)}const i={install(p){o=p.c;const m=p.context;m.bem={},m.bem.b=null,m.bem.els=null}};function a(p){let m,x;return{before(v){m=v.bem.b,x=v.bem.els,v.bem.els=null},after(v){v.bem.b=m,v.bem.els=x},$({context:v,props:S}){return p=typeof p=="string"?p:p({context:v,props:S}),v.bem.b=p,`${(S==null?void 0:S.bPrefix)||t}${v.bem.b}`}}}function s(p){let m;return{before(x){m=x.bem.els},after(x){x.bem.els=m},$({context:x,props:v}){return p=typeof p=="string"?p:p({context:x,props:v}),x.bem.els=p.split(",").map(S=>S.trim()),x.bem.els.map(S=>`${(v==null?void 0:v.bPrefix)||t}${x.bem.b}${r}${S}`).join(", ")}}}function l(p){return{$({context:m,props:x}){p=typeof p=="string"?p:p({context:m,props:x});const v=p.split(",").map($=>$.trim());function S($){return v.map(E=>`&${(x==null?void 0:x.bPrefix)||t}${m.bem.b}${$!==void 0?`${r}${$}`:""}${n}${E}`).join(", ")}const T=m.bem.els;return T!==null?S(T[0]):S()}}}function u(p){return{$({context:m,props:x}){p=typeof p=="string"?p:p({context:m,props:x});const v=m.bem.els;return`&:not(${(x==null?void 0:x.bPrefix)||t}${m.bem.b}${v!==null&&v.length>0?`${r}${v[0]}`:""}${n}${p})`}}}return Object.assign(i,{cB:(...p)=>o(a(p[0]),p[1],p[2]),cE:(...p)=>o(s(p[0]),p[1],p[2]),cM:(...p)=>o(l(p[0]),p[1],p[2]),cNotM:(...p)=>o(u(p[0]),p[1],p[2])}),i}function se(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,r=>r.toUpperCase()))}se("abc","def");const Bg="n",Gn=`.${Bg}-`,zg="__",Ag="--",Iu=Fu(),Du=Og({blockPrefix:Gn,elementPrefix:zg,modifierPrefix:Ag});Iu.use(Du);const{c:A,find:t3}=Iu,{cB:B,cE:J,cM:Y,cNotM:Lt}=Du;function kg(e){return A(({props:{bPrefix:t}})=>`${t||Gn}modal, ${t||Gn}drawer`,[e])}function Mg(e){return A(({props:{bPrefix:t}})=>`${t||Gn}popover:not(${t||Gn}tooltip)`,[e])}const Lg=(...e)=>A(">",[B(...e)]);function Fg(e){const t=Z(!!e.value);if(t.value)return Hn(t);const r=pt(e,n=>{n&&(t.value=!0,r())});return Hn(t)}function kr(e){const t=X(e),r=Z(t.value);return pt(t,n=>{r.value=n}),typeof e=="function"?r:{__v_isRef:!0,get value(){return r.value},set value(n){e.set(n)}}}const Ig=typeof window!="undefined";let Jr,Ln;const Dg=()=>{var e,t;Jr=Ig?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Ln=!1,Jr!==void 0?Jr.then(()=>{Ln=!0}):Ln=!0};Dg();function Hg(e){if(Ln)return;let t=!1;Qt(()=>{Ln||Jr==null||Jr.then(()=>{t||e()})}),St(()=>{t=!0})}const Ng={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function jg(e,t,r){if(e==="mousemoveoutside"){const n=o=>{t.contains(o.target)||r(o)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const o=a=>{n=!t.contains(a.target)},i=a=>{!n||t.contains(a.target)||r(a)};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Hu(e,t,r){const n=Ng[e];let o=n.get(t);o===void 0&&n.set(t,o=new WeakMap);let i=o.get(r);return i===void 0&&o.set(r,i=jg(e,t,r)),i}function Wg(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Hu(e,t,r);return Object.keys(o).forEach(i=>{Ke(i,document,o[i],n)}),!0}return!1}function Ug(e,t,r,n){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Hu(e,t,r);return Object.keys(o).forEach(i=>{Le(i,document,o[i],n)}),!0}return!1}function Vg(){if(typeof window=="undefined")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function r(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function o(y,C,_){const z=y[C];return y[C]=function(){return _.apply(y,arguments),z.apply(y,arguments)},y}function i(y,C){y[C]=Event.prototype[C]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var y;return(y=a.get(this))!==null&&y!==void 0?y:null}function u(y,C){s!==void 0&&Object.defineProperty(y,"currentTarget",{configurable:!0,enumerable:!0,get:C!=null?C:s.get})}const c={bubble:{},capture:{}},d={};function h(){const y=function(C){const{type:_,eventPhase:z,target:D,bubbles:R}=C;if(z===2)return;const K=z===1?"capture":"bubble";let M=D;const q=[];for(;M===null&&(M=window),q.push(M),M!==window;)M=M.parentNode||null;const W=c.capture[_],U=c.bubble[_];if(o(C,"stopPropagation",r),o(C,"stopImmediatePropagation",n),u(C,l),K==="capture"){if(W===void 0)return;for(let G=q.length-1;G>=0&&!e.has(C);--G){const pe=q[G],$e=W.get(pe);if($e!==void 0){a.set(C,pe);for(const Se of $e){if(t.has(C))break;Se(C)}}if(G===0&&!R&&U!==void 0){const Se=U.get(pe);if(Se!==void 0)for(const Fe of Se){if(t.has(C))break;Fe(C)}}}}else if(K==="bubble"){if(U===void 0)return;for(let G=0;GR(C))};return y.displayName="evtdUnifiedWindowEventHandler",y}const p=h(),m=g();function x(y,C){const _=c[y];return _[C]===void 0&&(_[C]=new Map,window.addEventListener(C,p,y==="capture")),_[C]}function v(y){return d[y]===void 0&&(d[y]=new Set,window.addEventListener(y,m)),d[y]}function S(y,C){let _=y.get(C);return _===void 0&&y.set(C,_=new Set),_}function T(y,C,_,z){const D=c[C][_];if(D!==void 0){const R=D.get(y);if(R!==void 0&&R.has(z))return!0}return!1}function $(y,C){const _=d[y];return!!(_!==void 0&&_.has(C))}function E(y,C,_,z){let D;if(typeof z=="object"&&z.once===!0?D=W=>{P(y,C,D,z),_(W)}:D=_,Wg(y,C,D,z))return;const K=z===!0||typeof z=="object"&&z.capture===!0?"capture":"bubble",M=x(K,y),q=S(M,C);if(q.has(D)||q.add(D),C===window){const W=v(y);W.has(D)||W.add(D)}}function P(y,C,_,z){if(Ug(y,C,_,z))return;const R=z===!0||typeof z=="object"&&z.capture===!0,K=R?"capture":"bubble",M=x(K,y),q=S(M,C);if(C===window&&!T(C,R?"bubble":"capture",y,_)&&$(y,_)){const U=d[y];U.delete(_),U.size===0&&(window.removeEventListener(y,m),d[y]=void 0)}q.has(_)&&q.delete(_),q.size===0&&M.delete(C),M.size===0&&(window.removeEventListener(y,p,K==="capture"),c[K][y]=void 0)}return{on:E,off:P}}const{on:Ke,off:Le}=Vg();function ui(e,t){return pt(e,r=>{r!==void 0&&(t.value=r)}),X(()=>e.value===void 0?t.value:e.value)}function di(){const e=Z(!1);return Qt(()=>{e.value=!0}),Hn(e)}function Nu(e,t){return X(()=>{for(const r of t)if(e[r]!==void 0)return e[r];return e[t[t.length-1]]})}const qg=(typeof window=="undefined"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Xg(){return qg}const Kg="n-internal-select-menu-body",ju="n-modal-body",Wu="n-drawer-body",Uu="n-popover-body",Vu="__disabled__";function nn(e){const t=ve(ju,null),r=ve(Wu,null),n=ve(Uu,null),o=ve(Kg,null),i=Z();if(typeof document!="undefined"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Qt(()=>{Ke("fullscreenchange",document,a)}),St(()=>{Le("fullscreenchange",document,a)})}return kr(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?Vu: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:n!=null&&n.value?n.value:o!=null&&o.value?o.value:s!=null?s:i.value||"body"})}nn.tdkey=Vu;nn.propTo={type:[String,Object,Boolean],default:void 0};function fa(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);return n()}function ha(e,t=!0,r=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&r.push(hr(String(n)));return}if(Array.isArray(n)){ha(n,t,r);return}if(n.type===Pe){if(n.children===null)return;Array.isArray(n.children)&&ha(n.children,t,r)}else n.type!==bt&&r.push(n)}}),r}function pl(e,t,r="default"){const n=t[r];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${r}] is empty.`);const o=ha(n());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${r}] should have exactly one child.`)}let or=null;function qu(){if(or===null&&(or=document.getElementById("v-binder-view-measurer"),or===null)){or=document.createElement("div"),or.id="v-binder-view-measurer";const{style:e}=or;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(or)}return or.getBoundingClientRect()}function Yg(e,t){const r=qu();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function zi(e){const t=e.getBoundingClientRect(),r=qu();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 Gg(e){return e.nodeType===9?null:e.parentNode}function Xu(e){if(e===null)return null;const t=Gg(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return Xu(t)}const Zg=fe({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;mt("VBinder",(t=ai())===null||t===void 0?void 0:t.proxy);const r=ve("VBinder",null),n=Z(null),o=v=>{n.value=v,r&&e.syncTargetWithParent&&r.setTargetRef(v)};let i=[];const a=()=>{let v=n.value;for(;v=Xu(v),v!==null;)i.push(v);for(const S of i)Ke("scroll",S,d,!0)},s=()=>{for(const v of i)Le("scroll",v,d,!0);i=[]},l=new Set,u=v=>{l.size===0&&a(),l.has(v)||l.add(v)},c=v=>{l.has(v)&&l.delete(v),l.size===0&&s()},d=()=>{Ou(h)},h=()=>{l.forEach(v=>v())},g=new Set,p=v=>{g.size===0&&Ke("resize",window,x),g.has(v)||g.add(v)},m=v=>{g.has(v)&&g.delete(v),g.size===0&&Le("resize",window,x)},x=()=>{g.forEach(v=>v())};return St(()=>{Le("resize",window,x),s()}),{targetRef:n,setTargetRef:o,addScrollListener:u,removeScrollListener:c,addResizeListener:p,removeResizeListener:m}},render(){return fa("binder",this.$slots)}});var Jg=Zg,Qg=fe({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ve("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?en(pl("follower",this.$slots),[[t]]):pl("follower",this.$slots)}});const jr="@@mmoContext",ev={mounted(e,{value:t}){e[jr]={handler:void 0},typeof t=="function"&&(e[jr].handler=t,Ke("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[jr];typeof t=="function"?r.handler?r.handler!==t&&(Le("mousemoveoutside",e,r.handler),r.handler=t,Ke("mousemoveoutside",e,t)):(e[jr].handler=t,Ke("mousemoveoutside",e,t)):r.handler&&(Le("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[jr];t&&Le("mousemoveoutside",e,t),e[jr].handler=void 0}};var tv=ev;const Wr="@@coContext",rv={mounted(e,{value:t,modifiers:r}){e[Wr]={handler:void 0},typeof t=="function"&&(e[Wr].handler=t,Ke("clickoutside",e,t,{capture:r.capture}))},updated(e,{value:t,modifiers:r}){const n=e[Wr];typeof t=="function"?n.handler?n.handler!==t&&(Le("clickoutside",e,n.handler,{capture:r.capture}),n.handler=t,Ke("clickoutside",e,t,{capture:r.capture})):(e[Wr].handler=t,Ke("clickoutside",e,t,{capture:r.capture})):n.handler&&(Le("clickoutside",e,n.handler,{capture:r.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:r}=e[Wr];r&&Le("clickoutside",e,r,{capture:t.capture}),e[Wr].handler=void 0}};var gl=rv;function nv(e,t){console.error(`[vdirs/${e}]: ${t}`)}class ov{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,r){const{elementZIndex:n}=this;if(r!==void 0){t.style.zIndex=`${r}`,n.delete(t);return}const{nextZIndex:o}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,n.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,r){const{elementZIndex:n}=this;n.has(t)?n.delete(t):r===void 0&&nv("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,n)=>r[1]-n[1]),this.nextZIndex=2e3,t.forEach(r=>{const n=r[0],o=this.nextZIndex++;`${o}`!==n.style.zIndex&&(n.style.zIndex=`${o}`)})}}var Ai=new ov;const Ur="@@ziContext",iv={mounted(e,t){const{value:r={}}=t,{zIndex:n,enabled:o}=r;e[Ur]={enabled:!!o,initialized:!1},o&&(Ai.ensureZIndex(e,n),e[Ur].initialized=!0)},updated(e,t){const{value:r={}}=t,{zIndex:n,enabled:o}=r,i=e[Ur].enabled;o&&!i&&(Ai.ensureZIndex(e,n),e[Ur].initialized=!0),e[Ur].enabled=!!o},unmounted(e,t){if(!e[Ur].initialized)return;const{value:r={}}=t,{zIndex:n}=r;Ai.unregister(e,n)}};var Ja=iv;const Ku=Symbol("@css-render/vue3-ssr");function av(e,t){return``}function sv(e,t){const r=ve(Ku,null);if(r===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:n,ids:o}=r;o.has(e)||n!==null&&(o.add(e),n.push(av(e,t)))}const lv=typeof document!="undefined";function oo(){if(lv)return;const e=ve(Ku,null);if(e!==null)return{adapter:sv,context:e}}function vl(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:vo}=Fu(),cv="vueuc-style";function ml(e){return typeof e=="string"?document.querySelector(e):e()}var Yu=fe({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Fg(xe(e,"show")),mergedTo:X(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?fa("lazy-teleport",this.$slots):f(qa,{disabled:this.disabled,to:this.mergedTo},fa("lazy-teleport",this.$slots)):null}});const mo={top:"bottom",bottom:"top",left:"right",right:"left"},bl={start:"end",center:"center",end:"start"},ki={top:"height",bottom:"height",left:"width",right:"width"},uv={"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"},dv={"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"},fv={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},xl={top:!0,bottom:!1,left:!0,right:!1},yl={top:"end",bottom:"start",left:"end",right:"start"};function hv(e,t,r,n,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s!=null?s:"center",u={top:0,left:0};const c=(g,p,m)=>{let x=0,v=0;const S=r[g]-t[p]-t[g];return S>0&&n&&(m?v=xl[p]?S:-S:x=xl[p]?S:-S),{left:x,top:v}},d=a==="left"||a==="right";if(l!=="center"){const g=fv[e],p=mo[g],m=ki[g];if(r[m]>t[m]){if(t[g]+t[m]t[p]&&(l=bl[s])}else{const g=a==="bottom"||a==="top"?"left":"top",p=mo[g],m=ki[g],x=(r[m]-t[m])/2;(t[g]t[p]?(l=yl[g],u=c(m,g,d)):(l=yl[p],u=c(m,p,d)))}let h=a;return t[a] *",{pointerEvents:"all"})])]);var mv=fe({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=ve("VBinder"),r=kr(()=>e.enabled!==void 0?e.enabled:e.show),n=Z(null),o=Z(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(l),h.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Qt(()=>{r.value&&(l(),i())});const s=oo();vv.mount({id:"vueuc/binder",head:!0,anchorMetaName:cv,ssr:s}),St(()=>{a()}),Hg(()=>{r.value&&l()});const l=()=>{if(!r.value)return;const h=n.value;if(h===null)return;const g=t.targetRef,{x:p,y:m,overlap:x}=e,v=p!==void 0&&m!==void 0?Yg(p,m):zi(g);h.style.setProperty("--v-target-width",`${Math.round(v.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(v.height)}px`);const{width:S,minWidth:T,placement:$,internalShift:E,flip:P}=e;h.setAttribute("v-placement",$),x?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:y}=h;S==="target"?y.width=`${v.width}px`:S!==void 0?y.width=S:y.width="",T==="target"?y.minWidth=`${v.width}px`:T!==void 0?y.minWidth=T:y.minWidth="";const C=zi(h),_=zi(o.value),{left:z,top:D,placement:R}=hv($,v,C,E,P,x),K=pv(R,x),{left:M,top:q,transform:W}=gv(R,_,v,D,z,x);h.setAttribute("v-placement",R),h.style.setProperty("--v-offset-left",`${Math.round(z)}px`),h.style.setProperty("--v-offset-top",`${Math.round(D)}px`),h.style.transform=`translateX(${M}) translateY(${q}) ${W}`,h.style.transformOrigin=K};pt(r,h=>{h?(i(),u()):a()});const u=()=>{no().then(l).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{pt(xe(e,h),l)}),["teleportDisabled"].forEach(h=>{pt(xe(e,h),u)}),pt(xe(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),h.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const c=di(),d=kr(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:r,offsetContainerRef:o,followerRef:n,mergedTo:d,syncPosition:l}},render(){return f(Yu,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const r=f("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[f("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?en(r,[[Ja,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):r}})}}),Br=[],bv=function(){return Br.some(function(e){return e.activeTargets.length>0})},xv=function(){return Br.some(function(e){return e.skippedTargets.length>0})},wl="ResizeObserver loop completed with undelivered notifications.",yv=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:wl}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=wl),window.dispatchEvent(e)},Zn;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Zn||(Zn={}));var zr=function(e){return Object.freeze(e)},wv=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,zr(this)}return e}(),Gu=function(){function e(t,r,n,o){return this.x=t,this.y=r,this.width=n,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,zr(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,u=t.height;return{x:r,y:n,top:o,right:i,bottom:a,left:s,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Qa=function(e){return e instanceof SVGElement&&"getBBox"in e},Zu=function(e){if(Qa(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Cl=function(e){var t,r;if(e instanceof Element)return!0;var n=(r=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(n&&e instanceof n.Element)},Cv=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},Fn=typeof window!="undefined"?window:{},bo=new WeakMap,$l=/auto|scroll/,$v=/^tb|vertical/,Sv=/msie|trident/i.test(Fn.navigator&&Fn.navigator.userAgent),Bt=function(e){return parseFloat(e||"0")},Qr=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new wv((r?t:e)||0,(r?e:t)||0)},Sl=zr({devicePixelContentBoxSize:Qr(),borderBoxSize:Qr(),contentBoxSize:Qr(),contentRect:new Gu(0,0,0,0)}),Ju=function(e,t){if(t===void 0&&(t=!1),bo.has(e)&&!t)return bo.get(e);if(Zu(e))return bo.set(e,Sl),Sl;var r=getComputedStyle(e),n=Qa(e)&&e.ownerSVGElement&&e.getBBox(),o=!Sv&&r.boxSizing==="border-box",i=$v.test(r.writingMode||""),a=!n&&$l.test(r.overflowY||""),s=!n&&$l.test(r.overflowX||""),l=n?0:Bt(r.paddingTop),u=n?0:Bt(r.paddingRight),c=n?0:Bt(r.paddingBottom),d=n?0:Bt(r.paddingLeft),h=n?0:Bt(r.borderTopWidth),g=n?0:Bt(r.borderRightWidth),p=n?0:Bt(r.borderBottomWidth),m=n?0:Bt(r.borderLeftWidth),x=d+u,v=l+c,S=m+g,T=h+p,$=s?e.offsetHeight-T-e.clientHeight:0,E=a?e.offsetWidth-S-e.clientWidth:0,P=o?x+S:0,y=o?v+T:0,C=n?n.width:Bt(r.width)-P-E,_=n?n.height:Bt(r.height)-y-$,z=C+x+E+S,D=_+v+$+T,R=zr({devicePixelContentBoxSize:Qr(Math.round(C*devicePixelRatio),Math.round(_*devicePixelRatio),i),borderBoxSize:Qr(z,D,i),contentBoxSize:Qr(C,_,i),contentRect:new Gu(d,l,C,_)});return bo.set(e,R),R},Qu=function(e,t,r){var n=Ju(e,r),o=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case Zn.DEVICE_PIXEL_CONTENT_BOX:return a;case Zn.BORDER_BOX:return o;default:return i}},_v=function(){function e(t){var r=Ju(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=zr([r.borderBoxSize]),this.contentBoxSize=zr([r.contentBoxSize]),this.devicePixelContentBoxSize=zr([r.devicePixelContentBoxSize])}return e}(),ed=function(e){if(Zu(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},Tv=function(){var e=1/0,t=[];Br.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var c=new _v(u.target),d=ed(u.target);s.push(c),u.lastReportedSize=Qu(u.target,u.observedBox),de?r.activeTargets.push(o):r.skippedTargets.push(o))})})},Pv=function(){var e=0;for(_l(e);bv();)e=Tv(),_l(e);return xv()&&yv(),e>0},Mi,td=[],Ev=function(){return td.splice(0).forEach(function(e){return e()})},Rv=function(e){if(!Mi){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Ev()}).observe(r,n),Mi=function(){r.textContent=""+(t?t--:t++)}}td.push(e),Mi()},Ov=function(e){Rv(function(){requestAnimationFrame(e)})},Ro=0,Bv=function(){return!!Ro},zv=250,Av={attributes:!0,characterData:!0,childList:!0,subtree:!0},Tl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Pl=function(e){return e===void 0&&(e=0),Date.now()+e},Li=!1,kv=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=zv),!Li){Li=!0;var n=Pl(t);Ov(function(){var o=!1;try{o=Pv()}finally{if(Li=!1,t=n-Pl(),!Bv())return;o?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,Av)};document.body?r():Fn.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Tl.forEach(function(r){return Fn.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Tl.forEach(function(r){return Fn.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),pa=new kv,El=function(e){!Ro&&e>0&&pa.start(),Ro+=e,!Ro&&pa.stop()},Mv=function(e){return!Qa(e)&&!Cv(e)&&getComputedStyle(e).display==="inline"},Lv=function(){function e(t,r){this.target=t,this.observedBox=r||Zn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Qu(this.target,this.observedBox,!0);return Mv(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Fv=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),xo=new WeakMap,Rl=function(e,t){for(var r=0;r=0&&(i&&Br.splice(Br.indexOf(n),1),n.observationTargets.splice(o,1),El(-1))},e.disconnect=function(t){var r=this,n=xo.get(t);n.observationTargets.slice().forEach(function(o){return r.unobserve(t,o.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Iv=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.");yo.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(!Cl(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");yo.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(!Cl(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");yo.unobserve(this,t)},e.prototype.disconnect=function(){yo.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Dv{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new Iv(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const r of t){const n=this.elHandlersMap.get(r.target);n!==void 0&&n(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))}}var Ol=new Dv,Bl=fe({name:"ResizeObserver",props:{onResize:Function},setup(e){return{registered:!1,handleResize(t){const{onResize:r}=e;r!==void 0&&r(t)}}},mounted(){const e=this.$el;if(e===void 0){vl("resize-observer","$el does not exist.");return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==""){vl("resize-observer","$el can not be observed (it may be a text node).");return}e.nextElementSibling!==null&&(Ol.registerHandler(e.nextElementSibling,this.handleResize),this.registered=!0)},beforeUnmount(){this.registered&&Ol.unregisterHandler(this.$el.nextElementSibling)},render(){return jh(this.$slots,"default")}});function rd(e){return e instanceof HTMLElement}function nd(e){for(let t=0;t=0;t--){const r=e.childNodes[t];if(rd(r)&&(id(r)||od(r)))return!0}return!1}function id(e){if(!Hv(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Hv(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 Cn=[];const Nv=fe({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=rn(),r=Z(null),n=Z(null);let o=!1,i=!1;const a=document.activeElement;function s(){return Cn[Cn.length-1]===t}function l(x){var v;x.code==="Escape"&&s()&&((v=e.onEsc)===null||v===void 0||v.call(e))}Qt(()=>{pt(()=>e.active,x=>{x?(d(),Ke("keydown",document,l)):(Le("keydown",document,l),o&&h())},{immediate:!0})}),St(()=>{Le("keydown",document,l),o&&h()});function u(x){if(!i&&s()){const v=c();if(v===null||v.contains(x.target))return;g("first")}}function c(){const x=r.value;if(x===null)return null;let v=x;for(;v=v.nextSibling,!(v===null||v instanceof Element&&v.tagName==="DIV"););return v}function d(){var x;if(!e.disabled){if(Cn.push(t),e.autoFocus){const{initialFocusTo:v}=e;v===void 0?g("first"):(x=ml(v))===null||x===void 0||x.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",u,!0)}}function h(){var x;if(e.disabled||(document.removeEventListener("focus",u,!0),Cn=Cn.filter(S=>S!==t),s()))return;const{finalFocusTo:v}=e;v!==void 0?(x=ml(v))===null||x===void 0||x.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function g(x){if(!!s()&&e.active){const v=r.value,S=n.value;if(v!==null&&S!==null){const T=c();if(T==null||T===S){i=!0,v.focus({preventScroll:!0}),i=!1;return}i=!0;const $=x==="first"?nd(T):od(T);i=!1,$||(i=!0,v.focus({preventScroll:!0}),i=!1)}}}function p(x){if(i)return;const v=c();v!==null&&(x.relatedTarget!==null&&v.contains(x.relatedTarget)?g("last"):g("first"))}function m(x){i||(x.relatedTarget!==null&&x.relatedTarget===r.value?g("last"):g("first"))}return{focusableStartRef:r,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,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 f(Pe,null,[f("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:r,onFocus:this.handleStartFocus}),e(),f("div",{"aria-hidden":"true",style:r,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}}),zl="n-form-item";function fi(e,{defaultSize:t="medium",mergedSize:r,mergedDisabled:n}={}){const o=ve(zl,null);mt(zl,null);const i=X(r?()=>r(o):()=>{const{size:l}=e;if(l)return l;if(o){const{mergedSize:u}=o;if(u.value!==void 0)return u.value}return t}),a=X(n?()=>n(o):()=>{const{disabled:l}=e;return l!==void 0?l:o?o.disabled.value:!1}),s=X(()=>{const{status:l}=e;return l||(o==null?void 0:o.mergedValidationStatus.value)});return St(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var jv=typeof global=="object"&&global&&global.Object===Object&&global,ad=jv,Wv=typeof self=="object"&&self&&self.Object===Object&&self,Uv=ad||Wv||Function("return this")(),Ht=Uv,Vv=Ht.Symbol,pr=Vv,sd=Object.prototype,qv=sd.hasOwnProperty,Xv=sd.toString,$n=pr?pr.toStringTag:void 0;function Kv(e){var t=qv.call(e,$n),r=e[$n];try{e[$n]=void 0;var n=!0}catch{}var o=Xv.call(e);return n&&(t?e[$n]=r:delete e[$n]),o}var Yv=Object.prototype,Gv=Yv.toString;function Zv(e){return Gv.call(e)}var Jv="[object Null]",Qv="[object Undefined]",Al=pr?pr.toStringTag:void 0;function Lr(e){return e==null?e===void 0?Qv:Jv:Al&&Al in Object(e)?Kv(e):Zv(e)}function gr(e){return e!=null&&typeof e=="object"}var e0="[object Symbol]";function es(e){return typeof e=="symbol"||gr(e)&&Lr(e)==e0}function ld(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r0){if(++t>=_0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function R0(e){return function(){return e}}var O0=function(){try{var e=Ir(Object,"defineProperty");return e({},"",{}),e}catch{}}(),No=O0,B0=No?function(e,t){return No(e,"toString",{configurable:!0,enumerable:!1,value:R0(t),writable:!0})}:ts,z0=B0,A0=E0(z0),k0=A0,M0=9007199254740991,L0=/^(?:0|[1-9]\d*)$/;function ns(e,t){var r=typeof e;return t=t==null?M0:t,!!t&&(r=="number"||r!="symbol"&&L0.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=W0}function gn(e){return e!=null&&is(e.length)&&!rs(e)}function U0(e,t,r){if(!vr(r))return!1;var n=typeof t;return(n=="number"?gn(r)&&ns(t,r.length):n=="string"&&t in r)?io(r[t],e):!1}function V0(e){return j0(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&U0(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n-1}function lb(e,t){var r=this.__data__,n=hi(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function er(e){var t=-1,r=e==null?0:e.length;for(this.clear();++to?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n=n?e:Ab(e,t,r)}var Mb="\\ud800-\\udfff",Lb="\\u0300-\\u036f",Fb="\\ufe20-\\ufe2f",Ib="\\u20d0-\\u20ff",Db=Lb+Fb+Ib,Hb="\\ufe0e\\ufe0f",Nb="\\u200d",jb=RegExp("["+Nb+Mb+Db+Hb+"]");function wd(e){return jb.test(e)}function Wb(e){return e.split("")}var Cd="\\ud800-\\udfff",Ub="\\u0300-\\u036f",Vb="\\ufe20-\\ufe2f",qb="\\u20d0-\\u20ff",Xb=Ub+Vb+qb,Kb="\\ufe0e\\ufe0f",Yb="["+Cd+"]",va="["+Xb+"]",ma="\\ud83c[\\udffb-\\udfff]",Gb="(?:"+va+"|"+ma+")",$d="[^"+Cd+"]",Sd="(?:\\ud83c[\\udde6-\\uddff]){2}",_d="[\\ud800-\\udbff][\\udc00-\\udfff]",Zb="\\u200d",Td=Gb+"?",Pd="["+Kb+"]?",Jb="(?:"+Zb+"(?:"+[$d,Sd,_d].join("|")+")"+Pd+Td+")*",Qb=Pd+Td+Jb,e1="(?:"+[$d+va+"?",va,Sd,_d,Yb].join("|")+")",t1=RegExp(ma+"(?="+ma+")|"+e1+Qb,"g");function r1(e){return e.match(t1)||[]}function n1(e){return wd(e)?r1(e):Wb(e)}function o1(e){return function(t){t=vd(t);var r=wd(t)?n1(t):void 0,n=r?r[0]:t.charAt(0),o=r?kb(r,1).join(""):t.slice(1);return n[e]()+o}}var i1=o1("toUpperCase"),a1=i1;function s1(){this.__data__=new er,this.size=0}function l1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function c1(e){return this.__data__.get(e)}function u1(e){return this.__data__.has(e)}var d1=200;function f1(e,t){var r=this.__data__;if(r instanceof er){var n=r.__data__;if(!Qn||n.lengths))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,g=r&N1?new Vo:void 0;for(i.set(e,t),i.set(t,e);++d{const c=i==null?void 0:i.value;r.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:eo,ssr:a}),s!=null&&s.preflightStyleDisabled||kd.mount({id:"n-global",head:!0,anchorMetaName:eo,ssr:a})};a?u():oi(u)}return X(()=>{var u;const{theme:{common:c,self:d,peers:h={}}={},themeOverrides:g={},builtinThemeOverrides:p={}}=o,{common:m,peers:x}=g,{common:v=void 0,[e]:{common:S=void 0,self:T=void 0,peers:$={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:E=void 0,[e]:P={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:y,peers:C={}}=P,_=Co({},c||S||v||n.common,E,y,m),z=Co((u=d||T||n.self)===null||u===void 0?void 0:u(_),p,P,g);return{common:_,self:z,peers:Co({},n.peers,$,h),peerOverrides:Co({},C,x)}})}Be.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const Nx="n";function at(e={},t={defaultBordered:!0}){const r=ve(vn,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:X(()=>{var n,o;const{bordered:i}=e;return i!==void 0?i:(o=(n=r==null?void 0:r.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:X(()=>(r==null?void 0:r.mergedClsPrefixRef.value)||Nx),namespaceRef:X(()=>r==null?void 0:r.mergedNamespaceRef.value)}}const jx={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm"},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",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",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"},Transfer:{sourceTitle:"Source",targetTitle:"Target"},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},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 (\u2190)",tipNext:"Next picture (\u2192)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)"}};var Wx=jx;function Hi(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}function Sn(e){return function(t,r){var n=r||{},o=n.context?String(n.context):"standalone",i;if(o==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,s=n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{var l=e.defaultWidth,u=n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[l]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}function Ux(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[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(o.length);return{value:a,rest:s}}}function _n(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?qx(s,function(d){return d.test(a)}):Vx(s,function(d){return d.test(a)}),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var c=t.slice(a.length);return{value:u,rest:c}}}function Vx(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function qx(e,t){for(var r=0;r0?"in "+n:n+" ago":n},Yx=Kx,Gx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qx={date:Hi({formats:Gx,defaultWidth:"full"}),time:Hi({formats:Zx,defaultWidth:"full"}),dateTime:Hi({formats:Jx,defaultWidth:"full"})},ey=Qx,ty={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ry=function(e,t,r,n){return ty[e]},ny=ry,oy={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},iy={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ay={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"]},sy={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"]},ly={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"}},cy={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"}},uy=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},dy={ordinalNumber:uy,era:Sn({values:oy,defaultWidth:"wide"}),quarter:Sn({values:iy,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Sn({values:ay,defaultWidth:"wide"}),day:Sn({values:sy,defaultWidth:"wide"}),dayPeriod:Sn({values:ly,defaultWidth:"wide",formattingValues:cy,defaultFormattingWidth:"wide"})},fy=dy,hy=/^(\d+)(th|st|nd|rd)?/i,py=/\d+/i,gy={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},vy={any:[/^b/i,/^(a|c)/i]},my={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},by={any:[/1/i,/2/i,/3/i,/4/i]},xy={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},yy={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]},wy={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},Cy={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]},$y={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},Sy={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}},_y={ordinalNumber:Ux({matchPattern:hy,parsePattern:py,valueCallback:function(e){return parseInt(e,10)}}),era:_n({matchPatterns:gy,defaultMatchWidth:"wide",parsePatterns:vy,defaultParseWidth:"any"}),quarter:_n({matchPatterns:my,defaultMatchWidth:"wide",parsePatterns:by,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:_n({matchPatterns:xy,defaultMatchWidth:"wide",parsePatterns:yy,defaultParseWidth:"any"}),day:_n({matchPatterns:wy,defaultMatchWidth:"wide",parsePatterns:Cy,defaultParseWidth:"any"}),dayPeriod:_n({matchPatterns:$y,defaultMatchWidth:"any",parsePatterns:Sy,defaultParseWidth:"any"})},Ty=_y,Py={code:"en-US",formatDistance:Yx,formatLong:ey,formatRelative:ny,localize:fy,match:Ty,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ey=Py;const Ry={name:"en-US",locale:Ey};var Oy=Ry;function By(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=ve(vn,null)||{},n=X(()=>{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:Wx[e]});return{dateLocaleRef:X(()=>{var i;return(i=r==null?void 0:r.value)!==null&&i!==void 0?i:Oy}),localeRef:n}}function vi(e,t,r){if(!t)return;const n=oo(),o=ve(vn,null),i=()=>{const a=r==null?void 0:r.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:eo,props:{bPrefix:a?`.${a}-`:void 0},ssr:n}),o!=null&&o.preflightStyleDisabled||kd.mount({id:"n-global",head:!0,anchorMetaName:eo,ssr:n})};n?i():oi(i)}function Nt(e,t,r,n){var o;r||pn("useThemeClass","cssVarsRef is not passed");const i=(o=ve(vn,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=Z(""),s=oo();let l;const u=`__${e}`,c=()=>{let d=u;const h=t?t.value:void 0,g=i==null?void 0:i.value;g&&(d+="-"+g),h&&(d+="-"+h);const{themeOverrides:p,builtinThemeOverrides:m}=n;p&&(d+="-"+da(JSON.stringify(p))),m&&(d+="-"+da(JSON.stringify(m))),a.value=d,l=()=>{const x=r.value;let v="";for(const S in x)v+=`${S}: ${x[S]};`;A(`.${d}`,v).mount({id:d,ssr:s}),l=void 0}};return dn(()=>{c()}),{themeClass:a,onRender:()=>{l==null||l()}}}var zy=fe({name:"Add",render(){return f("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}});function dt(e,t){return fe({name:a1(e),setup(){var r;const n=(r=ve(vn,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var o;const i=(o=n==null?void 0:n.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}var Ay=dt("attach",f("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),ky=dt("close",f("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("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"}))))),My=fe({name:"Eye",render(){return f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},f("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"}),f("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),Ly=dt("trash",f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},f("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),f("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),f("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),f("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),Fy=dt("download",f("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),fs=dt("error",f("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("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"}))))),hs=dt("info",f("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("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"}))))),ps=dt("success",f("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("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"}))))),gs=dt("warning",f("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},f("g",{"fill-rule":"nonzero"},f("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"}))))),Iy=dt("cancel",f("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},f("g",{fill:"currentColor","fill-rule":"nonzero"},f("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),Dy=dt("retry",f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},f("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),f("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),Hy=dt("rotateClockwise",f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),f("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),Ny=dt("rotateClockwise",f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),f("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),jy=dt("zoomIn",f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),f("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),Wy=dt("zoomOut",f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),f("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),mi=fe({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=di();return()=>f(Et,{name:"icon-switch-transition",appear:r.value},t)}}),vs=fe({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 n(s){e.width?s.style.maxWidth="0":s.style.maxHeight="0",s.offsetWidth;const{onLeave:l}=e;l&&l()}function o(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 s=e.group?Up:Et;return f(s,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:a,onBeforeLeave:r,onLeave:n,onAfterLeave:o},t)}}}),Uy=B("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; + transform: translateZ(0); +`,[A("svg",{height:"1em",width:"1em"})]),je=fe({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){vi("-base-icon",Uy,xe(e,"clsPrefix"))},render(){return f("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)}}),Vy=B("base-close",` + cursor: pointer; + color: var(--n-close-color); +`,[A("&:hover",{color:"var(--n-close-color-hover)"}),A("&:active",{color:"var(--n-close-color-pressed)"}),Y("disabled",{cursor:"not-allowed!important",color:"var(--n-close-color-disabled)"})]),Md=fe({name:"BaseClose",props:{clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},onClick:Function},setup(e){return vi("-base-close",Vy,xe(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:r}=e;return f(je,{role:"button",ariaDisabled:r,ariaLabel:"close",clsPrefix:t,class:[`${t}-base-close`,r&&`${t}-base-close--disabled`],onClick:r?void 0:e.onClick},{default:()=>f(ky,null)})}}});const{cubicBezierEaseInOut:qy}=Dr;function to({originalTransform:e="",left:t=0,top:r=0,transition:n=`all .3s ${qy} !important`}={}){return[A("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),A("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),A("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:n})]}var Xy=A([A("@keyframes loading-container-rotate",` + to { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } + `),A("@keyframes loading-layer-rotate",` + 12.5% { + -webkit-transform: rotate(135deg); + transform: rotate(135deg); + } + 25% { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); + } + 37.5% { + -webkit-transform: rotate(405deg); + transform: rotate(405deg); + } + 50% { + -webkit-transform: rotate(540deg); + transform: rotate(540deg); + } + 62.5% { + -webkit-transform: rotate(675deg); + transform: rotate(675deg); + } + 75% { + -webkit-transform: rotate(810deg); + transform: rotate(810deg); + } + 87.5% { + -webkit-transform: rotate(945deg); + transform: rotate(945deg); + } + 100% { + -webkit-transform: rotate(1080deg); + transform: rotate(1080deg); + } + `),A("@keyframes loading-left-spin",` + from { + -webkit-transform: rotate(265deg); + transform: rotate(265deg); + } + 50% { + -webkit-transform: rotate(130deg); + transform: rotate(130deg); + } + to { + -webkit-transform: rotate(265deg); + transform: rotate(265deg); + } + `),A("@keyframes loading-right-spin",` + from { + -webkit-transform: rotate(-265deg); + transform: rotate(-265deg); + } + 50% { + -webkit-transform: rotate(-130deg); + transform: rotate(-130deg); + } + to { + -webkit-transform: rotate(-265deg); + transform: rotate(-265deg); + } + `),B("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[J("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[to()]),J("container",` + display: inline-flex; + position: relative; + direction: ltr; + line-height: 0; + animation: loading-container-rotate 1568.2352941176ms linear infinite; + font-size: 0; + letter-spacing: 0; + white-space: nowrap; + opacity: 1; + width: 100%; + height: 100%; + `,[J("svg",` + stroke: var(--n-text-color); + fill: transparent; + position: absolute; + height: 100%; + overflow: hidden; + `),J("container-layer",` + position: absolute; + width: 100%; + height: 100%; + animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; + `,[J("container-layer-left",` + display: inline-flex; + position: relative; + width: 50%; + height: 100%; + overflow: hidden; + `,[J("svg",` + animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; + width: 200%; + `)]),J("container-layer-patch",` + position: absolute; + top: 0; + left: 47.5%; + box-sizing: border-box; + width: 5%; + height: 100%; + overflow: hidden; + `,[J("svg",` + left: -900%; + width: 2000%; + transform: rotate(180deg); + `)]),J("container-layer-right",` + display: inline-flex; + position: relative; + width: 50%; + height: 100%; + overflow: hidden; + `,[J("svg",` + animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both; + left: -100%; + width: 200%; + `)])])]),J("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[to({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),Ky=fe({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},scale:{type:Number,default:1},radius:{type:Number,default:100},strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},show:{type:Boolean,default:!0}},setup(e){vi("-base-loading",Xy,xe(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:n,scale:o}=this,i=t/o;return f("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},f(mi,null,{default:()=>this.show?f("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},f("div",{class:`${e}-base-loading__container`},f("div",{class:`${e}-base-loading__container-layer`},f("div",{class:`${e}-base-loading__container-layer-left`},f("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},f("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),f("div",{class:`${e}-base-loading__container-layer-patch`},f("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},f("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),f("div",{class:`${e}-base-loading__container-layer-right`},f("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},f("circle",{fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:i,cy:i,r:t-r/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):f("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});const oe={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.52",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"},Yy=Ar(oe.neutralBase),Ld=Ar(oe.neutralInvertBase),Gy="rgba("+Ld.slice(0,3).join(", ")+", ";function ic(e){return Gy+String(e)+")"}function Qe(e){const t=Array.from(Ld);return t[3]=Number(e),li(Yy,t)}const Zy=Object.assign(Object.assign({name:"common"},Dr),{baseColor:oe.neutralBase,primaryColor:oe.primaryDefault,primaryColorHover:oe.primaryHover,primaryColorPressed:oe.primaryActive,primaryColorSuppl:oe.primarySuppl,infoColor:oe.infoDefault,infoColorHover:oe.infoHover,infoColorPressed:oe.infoActive,infoColorSuppl:oe.infoSuppl,successColor:oe.successDefault,successColorHover:oe.successHover,successColorPressed:oe.successActive,successColorSuppl:oe.successSuppl,warningColor:oe.warningDefault,warningColorHover:oe.warningHover,warningColorPressed:oe.warningActive,warningColorSuppl:oe.warningSuppl,errorColor:oe.errorDefault,errorColorHover:oe.errorHover,errorColorPressed:oe.errorActive,errorColorSuppl:oe.errorSuppl,textColorBase:oe.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Qe(oe.alpha4),placeholderColor:Qe(oe.alpha4),placeholderColorDisabled:Qe(oe.alpha5),iconColor:Qe(oe.alpha4),iconColorHover:ho(Qe(oe.alpha4),{lightness:.75}),iconColorPressed:ho(Qe(oe.alpha4),{lightness:.9}),iconColorDisabled:Qe(oe.alpha5),opacity1:oe.alpha1,opacity2:oe.alpha2,opacity3:oe.alpha3,opacity4:oe.alpha4,opacity5:oe.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeColor:Qe(Number(oe.alphaClose)),closeColorHover:Qe(Number(oe.alphaClose)*1.25),closeColorPressed:Qe(Number(oe.alphaClose)*.8),closeColorDisabled:Qe(oe.alpha4),clearColor:Qe(oe.alpha4),clearColorHover:ho(Qe(oe.alpha4),{lightness:.75}),clearColorPressed:ho(Qe(oe.alpha4),{lightness:.9}),scrollbarColor:ic(oe.alphaScrollbar),scrollbarColorHover:ic(oe.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Qe(oe.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:oe.neutralPopover,tableColor:oe.neutralCard,cardColor:oe.neutralCard,modalColor:oe.neutralModal,bodyColor:oe.neutralBody,tagColor:"rgb(250, 250, 252)",avatarColor:Qe(oe.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Qe(oe.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:oe.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)"});var Rt=Zy;const Jy=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},Qy={name:"Scrollbar",common:Rt,self:Jy};var Fd=Qy;const{cubicBezierEaseInOut:ac}=Dr;function $a({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:n=ac,leaveCubicBezier:o=ac}={}){return[A(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),A(`&.${e}-transition-leave-active`,{transition:`all ${r} ${o}!important`}),A(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),A(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var ew=B("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[A(">",[B("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + max-height: inherit; + scrollbar-width: none; + `,[A("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),A(">",[B("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])]),B("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + `,[Y("horizontal",` + left: 2px; + right: 2px; + bottom: 4px; + height: var(--n-scrollbar-height); + `,[A(">",[J("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),Y("vertical",` + right: 4px; + top: 2px; + bottom: 2px; + width: var(--n-scrollbar-width); + `,[A(">",[J("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),Y("disabled",[A(">",[J("scrollbar",{pointerEvents:"none"})])]),A(">",[J("scrollbar",` + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[$a(),A("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]);const tw=Object.assign(Object.assign({},Be.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function}),Id=fe({name:"Scrollbar",props:tw,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=at(e),n=Z(null),o=Z(null),i=Z(null),a=Z(null),s=Z(null),l=Z(null),u=Z(null),c=Z(null),d=Z(null),h=Z(null),g=Z(null),p=Z(0),m=Z(0),x=Z(!1),v=Z(!1);let S=!1,T=!1,$,E,P=0,y=0,C=0,_=0;const z=Xg(),D=X(()=>{const{value:N}=c,{value:ee}=l,{value:ue}=h;return N===null||ee===null||ue===null?0:Math.min(N,ue*N/ee+e.size*1.5)}),R=X(()=>`${D.value}px`),K=X(()=>{const{value:N}=d,{value:ee}=u,{value:ue}=g;return N===null||ee===null||ue===null?0:ue*N/ee+e.size*1.5}),M=X(()=>`${K.value}px`),q=X(()=>{const{value:N}=c,{value:ee}=p,{value:ue}=l,{value:we}=h;if(N===null||ue===null||we===null)return 0;{const De=ue-N;return De?ee/De*(we-D.value):0}}),W=X(()=>`${q.value}px`),U=X(()=>{const{value:N}=d,{value:ee}=m,{value:ue}=u,{value:we}=g;if(N===null||ue===null||we===null)return 0;{const De=ue-N;return De?ee/De*(we-K.value):0}}),G=X(()=>`${U.value}px`),pe=X(()=>{const{value:N}=c,{value:ee}=l;return N!==null&&ee!==null&&ee>N}),$e=X(()=>{const{value:N}=d,{value:ee}=u;return N!==null&&ee!==null&&ee>N}),Se=X(()=>{const{container:N}=e;return N?N():o.value}),Fe=X(()=>{const{content:N}=e;return N?N():i.value}),Ie=V,Ve=N=>{const{onResize:ee}=e;ee&&ee(N),V()},ie=(N,ee)=>{if(!e.scrollable)return;if(typeof N=="number"){Q(N,ee!=null?ee:0,0,!1,"auto");return}const{left:ue,top:we,index:De,elSize:Te,position:Ne,behavior:ke,el:jt,debounce:xn=!0}=N;(ue!==void 0||we!==void 0)&&Q(ue!=null?ue:0,we!=null?we:0,0,!1,ke),jt!==void 0?Q(0,jt.offsetTop,jt.offsetHeight,xn,ke):De!==void 0&&Te!==void 0?Q(0,De*Te,Te,xn,ke):Ne==="bottom"?Q(0,Number.MAX_SAFE_INTEGER,0,!1,ke):Ne==="top"&&Q(0,0,0,!1,ke)},ae=(N,ee)=>{if(!e.scrollable)return;const{value:ue}=Se;!ue||(typeof N=="object"?ue.scrollBy(N):ue.scrollBy(N,ee||0))};function Q(N,ee,ue,we,De){const{value:Te}=Se;if(!!Te){if(we){const{scrollTop:Ne,offsetHeight:ke}=Te;if(ee>Ne){ee+ue<=Ne+ke||Te.scrollTo({left:N,top:ee+ue-ke,behavior:De});return}}Te.scrollTo({left:N,top:ee,behavior:De})}}function Ae(){b(),w(),V()}function ce(){Re()}function Re(){qe(),tt()}function qe(){E!==void 0&&window.clearTimeout(E),E=window.setTimeout(()=>{v.value=!1},e.duration)}function tt(){$!==void 0&&window.clearTimeout($),$=window.setTimeout(()=>{x.value=!1},e.duration)}function b(){$!==void 0&&window.clearTimeout($),x.value=!0}function w(){E!==void 0&&window.clearTimeout(E),v.value=!0}function O(N){const{onScroll:ee}=e;ee&&ee(N),L()}function L(){const{value:N}=Se;N&&(p.value=N.scrollTop,m.value=N.scrollLeft)}function F(){const{value:N}=Fe;N&&(l.value=N.offsetHeight,u.value=N.offsetWidth);const{value:ee}=Se;ee&&(c.value=ee.offsetHeight,d.value=ee.offsetWidth);const{value:ue}=s,{value:we}=a;ue&&(g.value=ue.offsetWidth),we&&(h.value=we.offsetHeight)}function j(){const{value:N}=Se;N&&(p.value=N.scrollTop,m.value=N.scrollLeft,c.value=N.offsetHeight,d.value=N.offsetWidth,l.value=N.scrollHeight,u.value=N.scrollWidth);const{value:ee}=s,{value:ue}=a;ee&&(g.value=ee.offsetWidth),ue&&(h.value=ue.offsetHeight)}function V(){!e.scrollable||(e.useUnifiedContainer?j():(F(),L()))}function k(N){var ee;return!(!((ee=n.value)===null||ee===void 0)&&ee.contains(N.target))}function H(N){N.preventDefault(),N.stopPropagation(),T=!0,Ke("mousemove",window,I,!0),Ke("mouseup",window,ne,!0),y=m.value,C=N.clientX}function I(N){if(!T)return;$!==void 0&&window.clearTimeout($),E!==void 0&&window.clearTimeout(E);const{value:ee}=d,{value:ue}=u,{value:we}=K;if(ee===null||ue===null)return;const Te=(N.clientX-C)*(ue-ee)/(ee-we),Ne=ue-ee;let ke=y+Te;ke=Math.min(Ne,ke),ke=Math.max(ke,0);const{value:jt}=Se;if(jt){jt.scrollLeft=ke;const{internalOnUpdateScrollLeft:xn}=e;xn&&xn(ke)}}function ne(N){N.preventDefault(),N.stopPropagation(),Le("mousemove",window,I,!0),Le("mouseup",window,ne,!0),T=!1,V(),k(N)&&Re()}function te(N){N.preventDefault(),N.stopPropagation(),S=!0,Ke("mousemove",window,re,!0),Ke("mouseup",window,le,!0),P=p.value,_=N.clientY}function re(N){if(!S)return;$!==void 0&&window.clearTimeout($),E!==void 0&&window.clearTimeout(E);const{value:ee}=c,{value:ue}=l,{value:we}=D;if(ee===null||ue===null)return;const Te=(N.clientY-_)*(ue-ee)/(ee-we),Ne=ue-ee;let ke=P+Te;ke=Math.min(Ne,ke),ke=Math.max(ke,0);const{value:jt}=Se;jt&&(jt.scrollTop=ke)}function le(N){N.preventDefault(),N.stopPropagation(),Le("mousemove",window,re,!0),Le("mouseup",window,le,!0),S=!1,V(),k(N)&&Re()}dn(()=>{const{value:N}=$e,{value:ee}=pe,{value:ue}=t,{value:we}=s,{value:De}=a;we&&(N?we.classList.remove(`${ue}-scrollbar-rail--disabled`):we.classList.add(`${ue}-scrollbar-rail--disabled`)),De&&(ee?De.classList.remove(`${ue}-scrollbar-rail--disabled`):De.classList.add(`${ue}-scrollbar-rail--disabled`))}),Qt(()=>{e.container||V()}),St(()=>{$!==void 0&&window.clearTimeout($),E!==void 0&&window.clearTimeout(E),Le("mousemove",window,re,!0),Le("mouseup",window,le,!0)});const ge=Be("Scrollbar","-scrollbar",ew,Fd,e,t),_e=X(()=>{const{common:{cubicBezierEaseInOut:N,scrollbarBorderRadius:ee,scrollbarHeight:ue,scrollbarWidth:we},self:{color:De,colorHover:Te}}=ge.value;return{"--n-scrollbar-bezier":N,"--n-scrollbar-color":De,"--n-scrollbar-color-hover":Te,"--n-scrollbar-border-radius":ee,"--n-scrollbar-width":we,"--n-scrollbar-height":ue}}),me=r?Nt("scrollbar",void 0,_e,e):void 0;return Object.assign(Object.assign({},{scrollTo:ie,scrollBy:ae,sync:V,syncUnifiedContainer:j,handleMouseEnterWrapper:Ae,handleMouseLeaveWrapper:ce}),{mergedClsPrefix:t,containerScrollTop:p,wrapperRef:n,containerRef:o,contentRef:i,yRailRef:a,xRailRef:s,needYBar:pe,needXBar:$e,yBarSizePx:R,xBarSizePx:M,yBarTopPx:W,xBarLeftPx:G,isShowXBar:x,isShowYBar:v,isIos:z,handleScroll:O,handleContentResize:Ie,handleContainerResize:Ve,handleYScrollMouseDown:te,handleXScrollMouseDown:H,cssVars:r?void 0:_e,themeClass:me==null?void 0:me.themeClass,onRender:me==null?void 0:me.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:n}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const o=()=>{var i,a;return(i=this.onRender)===null||i===void 0||i.call(this),f("div",Ga(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(a=t.default)===null||a===void 0?void 0:a.call(t):f("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},f(Bl,{onResize:this.handleContentResize},{default:()=>f("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),f("div",{ref:"yRailRef",class:`${r}-scrollbar-rail ${r}-scrollbar-rail--vertical`,style:this.horizontalRailStyle,"aria-hidden":!0},f(Et,{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?f("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f("div",{ref:"xRailRef",class:`${r}-scrollbar-rail ${r}-scrollbar-rail--horizontal`,style:this.verticalRailStyle,"aria-hidden":!0},f(Et,{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?f("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,left:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])};return this.container?o():f(Bl,{onResize:this.handleContainerResize},{default:o})}});var rw=Id;const nw=Id,{cubicBezierEaseIn:sc,cubicBezierEaseOut:lc}=Dr;function ow({transformOrigin:e="inherit",duration:t=".2s",enterScale:r=".9",originalTransform:n="",originalTransition:o=""}={}){return[A("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${sc}, transform ${t} ${sc} ${o&&","+o}`}),A("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${lc}, transform ${t} ${lc} ${o&&","+o}`}),A("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${r})`}),A("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}var iw=B("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),aw=fe({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){vi("-base-wave",iw,xe(e,"clsPrefix"));const t=Z(null),r=Z(!1);let n=null;return St(()=>{n!==null&&window.clearTimeout(n)}),{active:r,selfRef:t,play(){n!==null&&(window.clearTimeout(n),r.value=!1,n=null),no(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,r.value=!0,n=window.setTimeout(()=>{r.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return f("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),sw={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};const lw=e=>{const{boxShadow2:t,popoverColor:r,textColor2:n,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},sw),{fontSize:i,borderRadius:o,color:r,dividerColor:a,textColor:n,boxShadow:t})},cw={name:"Popover",common:Rt,self:lw};var Dd=cw;const Ni={top:"bottom",bottom:"top",left:"right",right:"left"},Xe="var(--n-arrow-height) * 1.414";var uw=A([B("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); + `,[A(">",[B("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Lt("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[Lt("scrollable",[Lt("show-header","padding: var(--n-padding);")])]),J("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),Y("scrollable, show-header",[J("content",` + padding: var(--n-padding); + `)]),B("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[B("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${Xe}); + height: calc(${Xe}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)])]),B("popover-shared",` + transform-origin: inherit; + `,[A("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),A("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),A("&.popover-transition-enter-active",` + transition: + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),A("&.popover-transition-leave-active",` + transition: + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),wt("top-start",` + top: calc(${Xe} / -2 + 1px); + left: calc(${Wt("top-start")} - var(--v-offset-left)); + `),wt("top",` + top: calc(${Xe} / -2 + 1px); + transform: translateX(calc(${Xe} / -2)) rotate(45deg); + left: 50%; + `),wt("top-end",` + top: calc(${Xe} / -2 + 1px); + right: calc(${Wt("top-end")} + var(--v-offset-left)); + `),wt("bottom-start",` + bottom: calc(${Xe} / -2 + 1px); + left: calc(${Wt("bottom-start")} - var(--v-offset-left)); + `),wt("bottom",` + bottom: calc(${Xe} / -2 + 1px); + transform: translateX(calc(${Xe} / -2)) rotate(45deg); + left: 50%; + `),wt("bottom-end",` + bottom: calc(${Xe} / -2 + 1px); + right: calc(${Wt("bottom-end")} + var(--v-offset-left)); + `),wt("left-start",` + left: calc(${Xe} / -2 + 1px); + top: calc(${Wt("left-start")} - var(--v-offset-top)); + `),wt("left",` + left: calc(${Xe} / -2 + 1px); + transform: translateY(calc(${Xe} / -2)) rotate(45deg); + top: 50%; + `),wt("left-end",` + left: calc(${Xe} / -2 + 1px); + bottom: calc(${Wt("left-end")} + var(--v-offset-top)); + `),wt("right-start",` + right: calc(${Xe} / -2 + 1px); + top: calc(${Wt("right-start")} - var(--v-offset-top)); + `),wt("right",` + right: calc(${Xe} / -2 + 1px); + transform: translateY(calc(${Xe} / -2)) rotate(45deg); + top: 50%; + `),wt("right-end",` + right: calc(${Xe} / -2 + 1px); + bottom: calc(${Wt("right-end")} + var(--v-offset-top)); + `),...Lx({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),n=r?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${n}, 0px)`} - ${Xe}) / 2)`,l=Wt(o);return A(`[v-placement="${o}"] >`,[B("popover-shared",[Y("center-arrow",[B("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])})})]);function Wt(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function wt(e,t){const r=e.split("-")[0],n=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return A(`[v-placement="${e}"] >`,[B("popover-shared",` + margin-${Ni[r]}: var(--n-space); + `,[Y("show-arrow",` + margin-${Ni[r]}: var(--n-space-arrow); + `),Y("overlap",` + margin: 0; + `),Lg("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${r}: calc(100% - 1px); + ${Ni[r]}: auto; + ${n} + `,[B("popover-arrow",t)])])])}const Hd=Object.assign(Object.assign({},Be.props),{to:nn.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,minWidth:Number,maxWidth:Number}),dw=({arrowStyle:e,clsPrefix:t})=>f("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},f("div",{class:`${t}-popover-arrow`,style:e}));var fw=fe({name:"PopoverBody",inheritAttrs:!1,props:Hd,setup(e,{slots:t,attrs:r}){const{namespaceRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:i}=at(e),a=Be("Popover","-popover",uw,Dd,e,o),s=Z(null),l=ve("NPopover"),u=Z(null),c=Z(e.show),d=X(()=>{const{trigger:P,onClickoutside:y}=e,C=[],{positionManuallyRef:{value:_}}=l;return _||(P==="click"&&!y&&C.push([gl,T,void 0,{capture:!0}]),P==="hover"&&C.push([tv,S])),y&&C.push([gl,T,void 0,{capture:!0}]),e.displayDirective==="show"&&C.push([Eu,e.show]),C}),h=X(()=>[{width:e.width==="trigger"?"":Xt(e.width)},e.maxWidth?{maxWidth:Xt(e.maxWidth)}:{},e.minWidth?{minWidth:Xt(e.minWidth)}:{},i?void 0:g.value]),g=X(()=>{const{common:{cubicBezierEaseInOut:P,cubicBezierEaseIn:y,cubicBezierEaseOut:C},self:{space:_,spaceArrow:z,padding:D,fontSize:R,textColor:K,dividerColor:M,color:q,boxShadow:W,borderRadius:U,arrowHeight:G,arrowOffset:pe,arrowOffsetVertical:$e}}=a.value;return{"--n-box-shadow":W,"--n-bezier":P,"--n-bezier-ease-in":y,"--n-bezier-ease-out":C,"--n-font-size":R,"--n-text-color":K,"--n-color":q,"--n-divider-color":M,"--n-border-radius":U,"--n-arrow-height":G,"--n-arrow-offset":pe,"--n-arrow-offset-vertical":$e,"--n-padding":D,"--n-space":_,"--n-space-arrow":z}}),p=i?Nt("popover",void 0,g,e):void 0;l.setBodyInstance({syncPosition:m}),St(()=>{l.setBodyInstance(null)}),pt(xe(e,"show"),P=>{e.animated||(P?c.value=!0:c.value=!1)});function m(){var P;(P=s.value)===null||P===void 0||P.syncPosition()}function x(P){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseEnter(P)}function v(P){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(P)}function S(P){e.trigger==="hover"&&!$().contains(P.target)&&l.handleMouseMoveOutside(P)}function T(P){(e.trigger==="click"&&!$().contains(P.target)||e.onClickoutside)&&l.handleClickOutside(P)}function $(){return l.getTriggerElement()}mt(Uu,u),mt(Wu,null),mt(ju,null);function E(){p==null||p.onRender();let P;const{internalRenderBodyRef:{value:y}}=l,{value:C}=o;if(y)P=y([`${C}-popover-shared`,p==null?void 0:p.themeClass.value,e.overlap&&`${C}-popover-shared--overlap`],u,h.value,x,v);else{const{value:_}=l.extraClassRef,{internalTrapFocus:z}=e,D=()=>{const R=Do(t.header,M=>{var q;const W=M?[f("div",{class:`${C}-popover__header`,style:e.headerStyle},M),f("div",{class:`${C}-popover__content`,style:e.contentStyle},t)]:e.scrollable?(q=t.default)===null||q===void 0?void 0:q.call(t):f("div",{class:`${C}-popover__content`,style:e.contentStyle},t);return e.scrollable?f(nw,{contentClass:M?void 0:`${C}-popover__content`,contentStyle:M?void 0:e.contentStyle},{default:()=>W}):W}),K=e.showArrow?dw({arrowStyle:e.arrowStyle,clsPrefix:C}):null;return[R,K]};P=f("div",Ga({class:[`${C}-popover`,`${C}-popover-shared`,p==null?void 0:p.themeClass.value,_.map(R=>`${C}-${R}`),{[`${C}-popover--scrollable`]:e.scrollable,[`${C}-popover--show-header`]:!zu(t.header),[`${C}-popover--raw`]:e.raw,[`${C}-popover-shared--overlap`]:e.overlap,[`${C}-popover-shared--show-arrow`]:e.showArrow,[`${C}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:h.value,onKeydown:l.handleKeydown,onMouseenter:x,onMouseleave:v},r),z?f(Nv,{active:e.show,autoFocus:!0},{default:D}):D())}return e.displayDirective==="show"||e.show?en(P,d.value):null}return{namespace:n,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:nn(e),followerEnabled:c,renderContentNode:E}},render(){return f(mv,{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,ref:"followerRef",overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===nn.tdkey},{default:()=>this.animated?f(Et,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{this.followerEnabled=!1}},{default:this.renderContentNode}):this.renderContentNode()})}});const hw=Object.keys(Hd),pw={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function gw(e,t,r){pw[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[n],i=r[n];o?e.props[n]=(...a)=>{o(...a),i(...a)}:e.props[n]=i})}const vw=hr("").type,Nd={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"},arrowStyle:[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:nn.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],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},mw=Object.assign(Object.assign(Object.assign({},Be.props),Nd),{internalRenderBody:Function});var bw=fe({name:"Popover",inheritAttrs:!1,props:mw,__popover__:!0,setup(e){const t=di(),r=Z(null),n=X(()=>e.show),o=Z(e.defaultShow),i=ui(n,o),a=kr(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:M}=e;return!!(M!=null&&M())},l=()=>s()?!1:i.value,u=Nu(e,["arrow","showArrow"]),c=X(()=>e.overlap?!1:u.value);let d=null;const h=Z(null),g=Z(null),p=kr(()=>e.x!==void 0&&e.y!==void 0);function m(M){const{"onUpdate:show":q,onUpdateShow:W,onShow:U,onHide:G}=e;o.value=M,q&&Me(q,M),W&&Me(W,M),M&&U&&Me(U,!0),M&&G&&Me(G,!1)}function x(){d&&d.syncPosition()}function v(){const{value:M}=h;M&&(window.clearTimeout(M),h.value=null)}function S(){const{value:M}=g;M&&(window.clearTimeout(M),g.value=null)}function T(){const M=s();if(e.trigger==="focus"&&!M){if(l())return;m(!0)}}function $(){const M=s();if(e.trigger==="focus"&&!M){if(!l())return;m(!1)}}function E(){const M=s();if(e.trigger==="hover"&&!M){if(S(),h.value!==null||l())return;const q=()=>{m(!0),h.value=null},{delay:W}=e;W===0?q():h.value=window.setTimeout(q,W)}}function P(){const M=s();if(e.trigger==="hover"&&!M){if(v(),g.value!==null||!l())return;const q=()=>{m(!1),g.value=null},{duration:W}=e;W===0?q():g.value=window.setTimeout(q,W)}}function y(){P()}function C(M){var q;!l()||(e.trigger==="click"&&(v(),S(),m(!1)),(q=e.onClickoutside)===null||q===void 0||q.call(e,M))}function _(){if(e.trigger==="click"&&!s()){v(),S();const M=!l();m(M)}}function z(M){!e.internalTrapFocus||M.code==="Escape"&&(v(),S(),m(!1))}function D(M){o.value=M}function R(){var M;return(M=r.value)===null||M===void 0?void 0:M.targetRef}function K(M){d=M}return mt("NPopover",{getTriggerElement:R,handleKeydown:z,handleMouseEnter:E,handleMouseLeave:P,handleClickOutside:C,handleMouseMoveOutside:y,setBodyInstance:K,positionManuallyRef:p,isMountedRef:t,zIndexRef:xe(e,"zIndex"),extraClassRef:xe(e,"internalExtraClass"),internalRenderBodyRef:xe(e,"internalRenderBody")}),{binderInstRef:r,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:c,getMergedShow:l,setShow:D,handleClick:_,handleMouseEnter:E,handleMouseLeave:P,handleFocus:T,handleBlur:$,syncPosition:x}},render(){var e;const{positionManually:t,$slots:r}=this;let n,o=!1;if(!t&&(r.activator?n=cl(r,"activator"):n=cl(r,"trigger"),n)){n=Zt(n),n=n.type===vw?f("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)o=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:u=>{s.forEach(c=>{c.onBlur(u)})},onFocus:u=>{s.forEach(c=>{c.onFocus(u)})},onClick:u=>{s.forEach(c=>{c.onClick(u)})},onMouseenter:u=>{s.forEach(c=>{c.onMouseenter(u)})},onMouseleave:u=>{s.forEach(c=>{c.onMouseleave(u)})}};gw(n,a?"nested":t?"manual":this.trigger,l)}}return f(Jg,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?en(f("div",{style:{position:"fixed",inset:0}}),[[Ja,{enabled:i,zIndex:this.zIndex}]]):null,t?null:f(Qg,null,{default:()=>n}),f(fw,Bu(this.$props,hw,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)}})]}})}}),xw={closeSizeTiny:"12px",closeSizeSmall:"14px",closeSizeMedium:"14px",closeSizeLarge:"14px",padding:"0 7px",closeMargin:"0 0 0 3px",closeMarginRtl:"0 3px 0 0"};const yw=e=>{const{textColor2:t,primaryColorHover:r,primaryColorPressed:n,primaryColor:o,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:u,borderColor:c,opacityDisabled:d,tagColor:h,closeColor:g,closeColorHover:p,closeColorPressed:m,borderRadiusSmall:x,fontSizeMini:v,fontSizeTiny:S,fontSizeSmall:T,fontSizeMedium:$,heightMini:E,heightTiny:P,heightSmall:y,heightMedium:C}=e;return Object.assign(Object.assign({},xw),{heightTiny:E,heightSmall:P,heightMedium:y,heightLarge:C,borderRadius:x,opacityDisabled:d,fontSizeTiny:v,fontSizeSmall:S,fontSizeMedium:T,fontSizeLarge:$,textColorCheckable:t,textColorHoverCheckable:r,textColorPressedCheckable:n,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:"#0000",colorPressedCheckable:"#0000",colorChecked:o,colorCheckedHover:r,colorCheckedPressed:n,border:`1px solid ${c}`,textColor:t,color:h,closeColor:g,closeColorHover:p,closeColorPressed:m,borderPrimary:`1px solid ${Ce(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:Ce(o,{alpha:.1}),closeColorPrimary:Ce(o,{alpha:.75}),closeColorHoverPrimary:Ce(o,{alpha:.6}),closeColorPressedPrimary:Ce(o,{alpha:.9}),borderInfo:`1px solid ${Ce(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Ce(i,{alpha:.1}),closeColorInfo:Ce(i,{alpha:.75}),closeColorHoverInfo:Ce(i,{alpha:.6}),closeColorPressedInfo:Ce(i,{alpha:.9}),borderSuccess:`1px solid ${Ce(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Ce(a,{alpha:.1}),closeColorSuccess:Ce(a,{alpha:.75}),closeColorHoverSuccess:Ce(a,{alpha:.6}),closeColorPressedSuccess:Ce(a,{alpha:.9}),borderWarning:`1px solid ${Ce(s,{alpha:.35})}`,textColorWarning:s,colorWarning:Ce(s,{alpha:.12}),closeColorWarning:Ce(s,{alpha:.75}),closeColorHoverWarning:Ce(s,{alpha:.6}),closeColorPressedWarning:Ce(s,{alpha:.9}),borderError:`1px solid ${Ce(l,{alpha:.23})}`,textColorError:l,colorError:Ce(l,{alpha:.08}),closeColorError:Ce(l,{alpha:.65}),closeColorHoverError:Ce(l,{alpha:.5}),closeColorPressedError:Ce(l,{alpha:.8})})},ww={name:"Tag",common:Rt,self:yw};var Cw=ww,$w={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},Sw=B("tag",` + 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); +`,[J("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); + `),J("avatar",` + display: flex; + margin-right: 6px; + `),J("close",` + font-size: var(--n-close-size); + margin: var(--n-close-margin); + transition: color .3s var(--n-bezier); + cursor: pointer; + `),Y("round",` + padding: 0 calc(var(--n-height) / 2); + border-radius: calc(var(--n-height) / 2); + `,[J("avatar",` + margin-left: calc((var(--n-height) - 8px) / -2); + `)]),Y("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),Y("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[Lt("disabled",[A("&:hover","background-color: var(--n-color-hover-checkable);",[Lt("checked","color: var(--n-text-color-hover-checkable);")]),A("&:active","background-color: var(--n-color-pressed-checkable);",[Lt("checked","color: var(--n-text-color-pressed-checkable);")])]),Y("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[Lt("disabled",[A("&:hover","background-color: var(--n-color-checked-hover);"),A("&:active","background-color: var(--n-color-checked-pressed);")])])])]);function bi(e,t,r){if(!t)return;const n=oo(),o=X(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(!!s)return s}),i=()=>{dn(()=>{const{value:a}=r,s=`${a}${e}Rtl`;if(Rg(s,n))return;const{value:l}=o;!l||l.style.mount({id:s,head:!0,anchorMetaName:eo,props:{bPrefix:a?`.${a}-`:void 0},ssr:n})})};return n?i():oi(i),o}const _w=Object.assign(Object.assign(Object.assign({},Be.props),$w),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalStopClickPropagation:Boolean,onCheckedChange:{type:Function,validator:()=>!0,default:void 0}}),Tw="n-tag";var Pw=fe({name:"Tag",props:_w,setup(e){const t=Z(null),{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:i}=at(e),a=Be("Tag","-tag",Sw,Cw,e,n);mt(Tw,{roundRef:xe(e,"round")});function s(g){if(!e.disabled&&e.checkable){const{checked:p,onCheckedChange:m,onUpdateChecked:x,"onUpdate:checked":v}=e;x&&x(!p),v&&v(!p),m&&m(!p)}}function l(g){if(e.internalStopClickPropagation&&g.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&Me(p,g)}}const u={setTextContent(g){const{value:p}=t;p&&(p.textContent=g)}},c=bi("Tag",i,n),d=X(()=>{const{type:g,size:p,color:{color:m,textColor:x}={}}=e,{common:{cubicBezierEaseInOut:v},self:{padding:S,closeMargin:T,closeMarginRtl:$,borderRadius:E,opacityDisabled:P,textColorCheckable:y,textColorHoverCheckable:C,textColorPressedCheckable:_,textColorChecked:z,colorCheckable:D,colorHoverCheckable:R,colorPressedCheckable:K,colorChecked:M,colorCheckedHover:q,colorCheckedPressed:W,[se("closeSize",p)]:U,[se("fontSize",p)]:G,[se("height",p)]:pe,[se("color",g)]:$e,[se("textColor",g)]:Se,[se("border",g)]:Fe,[se("closeColor",g)]:Ie,[se("closeColorHover",g)]:Ve,[se("closeColorPressed",g)]:ie}}=a.value;return{"--n-avatar-size-override":`calc(${pe} - 8px)`,"--n-bezier":v,"--n-border-radius":E,"--n-border":Fe,"--n-close-color":Ie,"--n-close-color-hover":Ve,"--n-close-color-pressed":ie,"--n-close-color-disabled":Ie,"--n-close-margin":T,"--n-close-margin-rtl":$,"--n-close-size":U,"--n-color":m||$e,"--n-color-checkable":D,"--n-color-checked":M,"--n-color-checked-hover":q,"--n-color-checked-pressed":W,"--n-color-hover-checkable":R,"--n-color-pressed-checkable":K,"--n-font-size":G,"--n-height":pe,"--n-opacity-disabled":P,"--n-padding":S,"--n-text-color":x||Se,"--n-text-color-checkable":y,"--n-text-color-checked":z,"--n-text-color-hover-checkable":C,"--n-text-color-pressed-checkable":_}}),h=o?Nt("tag",X(()=>{let g="";const{type:p,size:m,color:{color:x,textColor:v}={}}=e;return g+=p[0],g+=m[0],x&&(g+=`a${Ho(x)}`),v&&(g+=`b${Ho(v)}`),g}),d,e):void 0;return Object.assign(Object.assign({},u),{rtlEnabled:c,mergedClsPrefix:n,contentRef:t,mergedBordered:r,handleClick:s,handleCloseClick:l,cssVars:o?void 0:d,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:r,rtlEnabled:n,color:{borderColor:o}={},onRender:i,$slots:a}=this;return i==null||i(),f("div",{class:[`${r}-tag`,this.themeClass,{[`${r}-tag--rtl`]:n,[`${r}-tag--disabled`]:this.disabled,[`${r}-tag--checkable`]:this.checkable,[`${r}-tag--checked`]:this.checkable&&this.checked,[`${r}-tag--round`]:this.round}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},Do(a.avatar,s=>s&&f("div",{class:`${r}-tag__avatar`},s)),f("span",{class:`${r}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&this.closable?f(Md,{clsPrefix:r,class:`${r}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick}):null,!this.checkable&&this.mergedBordered?f("div",{class:`${r}-tag__border`,style:{borderColor:o}}):null)}});const{cubicBezierEaseInOut:ir}=Dr;function Ew({duration:e=".2s",delay:t=".1s"}={}){return[A("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),A("&.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; + `),A("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${ir}, + max-width ${e} ${ir} ${t}, + margin-left ${e} ${ir} ${t}, + margin-right ${e} ${ir} ${t}; + `),A("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${ir} ${t}, + max-width ${e} ${ir}, + margin-left ${e} ${ir}, + margin-right ${e} ${ir}; + `)]}const{cubicBezierEaseInOut:zt,cubicBezierEaseOut:Rw,cubicBezierEaseIn:Ow}=Dr;function cc({overflow:e="hidden",duration:t=".3s",originalTransition:r="",leavingDelay:n="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:s=!1}={}){const l=s?"leave":"enter",u=s?"enter":"leave";return[A(`&.fade-in-height-expand-transition-${u}-from, + &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),A(`&.fade-in-height-expand-transition-${u}-to, + &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),A(`&.fade-in-height-expand-transition-${u}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${zt} ${n}, + opacity ${t} ${Rw} ${n}, + margin-top ${t} ${zt} ${n}, + margin-bottom ${t} ${zt} ${n}, + padding-top ${t} ${zt} ${n}, + padding-bottom ${t} ${zt} ${n} + ${r?","+r:""} + `),A(`&.fade-in-height-expand-transition-${l}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${zt}, + opacity ${t} ${Ow}, + margin-top ${t} ${zt}, + margin-bottom ${t} ${zt}, + padding-top ${t} ${zt}, + padding-bottom ${t} ${zt} + ${r?","+r:""} + `)]}function yr(e){return li(e,[255,255,255,.16])}function $o(e){return li(e,[0,0,0,.12])}var Bw={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"};const zw=e=>{const{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:u,opacityDisabled:c,textColor2:d,textColor3:h,primaryColorHover:g,primaryColorPressed:p,borderColor:m,primaryColor:x,baseColor:v,infoColor:S,infoColorHover:T,infoColorPressed:$,successColor:E,successColorHover:P,successColorPressed:y,warningColor:C,warningColorHover:_,warningColorPressed:z,errorColor:D,errorColorHover:R,errorColorPressed:K,fontWeight:M,buttonColor2:q,buttonColor2Hover:W,buttonColor2Pressed:U,fontWeightStrong:G}=e;return Object.assign(Object.assign({},Bw),{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:u,opacityDisabled:c,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:q,colorSecondaryHover:W,colorSecondaryPressed:U,colorTertiary:q,colorTertiaryHover:W,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:W,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:h,textColorHover:g,textColorPressed:p,textColorFocus:g,textColorDisabled:d,textColorText:d,textColorTextHover:g,textColorTextPressed:p,textColorTextFocus:g,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:g,textColorGhostPressed:p,textColorGhostFocus:g,textColorGhostDisabled:d,border:`1px solid ${m}`,borderHover:`1px solid ${g}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${g}`,borderDisabled:`1px solid ${m}`,rippleColor:x,colorPrimary:x,colorHoverPrimary:g,colorPressedPrimary:p,colorFocusPrimary:g,colorDisabledPrimary:x,textColorPrimary:v,textColorHoverPrimary:v,textColorPressedPrimary:v,textColorFocusPrimary:v,textColorDisabledPrimary:v,textColorTextPrimary:x,textColorTextHoverPrimary:g,textColorTextPressedPrimary:p,textColorTextFocusPrimary:g,textColorTextDisabledPrimary:d,textColorGhostPrimary:x,textColorGhostHoverPrimary:g,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:g,textColorGhostDisabledPrimary:x,borderPrimary:`1px solid ${x}`,borderHoverPrimary:`1px solid ${g}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${g}`,borderDisabledPrimary:`1px solid ${x}`,rippleColorPrimary:x,colorInfo:S,colorHoverInfo:T,colorPressedInfo:$,colorFocusInfo:T,colorDisabledInfo:S,textColorInfo:v,textColorHoverInfo:v,textColorPressedInfo:v,textColorFocusInfo:v,textColorDisabledInfo:v,textColorTextInfo:S,textColorTextHoverInfo:T,textColorTextPressedInfo:$,textColorTextFocusInfo:T,textColorTextDisabledInfo:d,textColorGhostInfo:S,textColorGhostHoverInfo:T,textColorGhostPressedInfo:$,textColorGhostFocusInfo:T,textColorGhostDisabledInfo:S,borderInfo:`1px solid ${S}`,borderHoverInfo:`1px solid ${T}`,borderPressedInfo:`1px solid ${$}`,borderFocusInfo:`1px solid ${T}`,borderDisabledInfo:`1px solid ${S}`,rippleColorInfo:S,colorSuccess:E,colorHoverSuccess:P,colorPressedSuccess:y,colorFocusSuccess:P,colorDisabledSuccess:E,textColorSuccess:v,textColorHoverSuccess:v,textColorPressedSuccess:v,textColorFocusSuccess:v,textColorDisabledSuccess:v,textColorTextSuccess:E,textColorTextHoverSuccess:P,textColorTextPressedSuccess:y,textColorTextFocusSuccess:P,textColorTextDisabledSuccess:d,textColorGhostSuccess:E,textColorGhostHoverSuccess:P,textColorGhostPressedSuccess:y,textColorGhostFocusSuccess:P,textColorGhostDisabledSuccess:E,borderSuccess:`1px solid ${E}`,borderHoverSuccess:`1px solid ${P}`,borderPressedSuccess:`1px solid ${y}`,borderFocusSuccess:`1px solid ${P}`,borderDisabledSuccess:`1px solid ${E}`,rippleColorSuccess:E,colorWarning:C,colorHoverWarning:_,colorPressedWarning:z,colorFocusWarning:_,colorDisabledWarning:C,textColorWarning:v,textColorHoverWarning:v,textColorPressedWarning:v,textColorFocusWarning:v,textColorDisabledWarning:v,textColorTextWarning:C,textColorTextHoverWarning:_,textColorTextPressedWarning:z,textColorTextFocusWarning:_,textColorTextDisabledWarning:d,textColorGhostWarning:C,textColorGhostHoverWarning:_,textColorGhostPressedWarning:z,textColorGhostFocusWarning:_,textColorGhostDisabledWarning:C,borderWarning:`1px solid ${C}`,borderHoverWarning:`1px solid ${_}`,borderPressedWarning:`1px solid ${z}`,borderFocusWarning:`1px solid ${_}`,borderDisabledWarning:`1px solid ${C}`,rippleColorWarning:C,colorError:D,colorHoverError:R,colorPressedError:K,colorFocusError:R,colorDisabledError:D,textColorError:v,textColorHoverError:v,textColorPressedError:v,textColorFocusError:v,textColorDisabledError:v,textColorTextError:D,textColorTextHoverError:R,textColorTextPressedError:K,textColorTextFocusError:R,textColorTextDisabledError:d,textColorGhostError:D,textColorGhostHoverError:R,textColorGhostPressedError:K,textColorGhostFocusError:R,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${R}`,borderPressedError:`1px solid ${K}`,borderFocusError:`1px solid ${R}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:"0.6",fontWeight:M,fontWeightStrong:G})},Aw={name:"Button",common:Rt,self:zw};var jd=Aw;const kw="n-button-group";var Mw=A([B("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; + 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); + `,[Y("color",[J("border",{borderColor:"var(--n-border-color)"}),Y("disabled",[J("border",{borderColor:"var(--n-border-color-disabled)"})]),Lt("disabled",[A("&:focus",[J("state-border",{borderColor:"var(--n-border-color-focus)"})]),A("&:hover",[J("state-border",{borderColor:"var(--n-border-color-hover)"})]),A("&:active",[J("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Y("pressed",[J("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Y("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[J("border",{border:"var(--n-border-disabled)"})]),Lt("disabled",[A("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[J("state-border",{border:"var(--n-border-focus)"})]),A("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[J("state-border",{border:"var(--n-border-hover)"})]),A("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[J("state-border",{border:"var(--n-border-pressed)"})]),Y("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[J("state-border",{border:"var(--n-border-pressed)"})])]),Y("loading","cursor: wait;"),B("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); + `,[Y("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),typeof window!="undefined"&&"MozBoxSizing"in document.createElement("div").style?A("&::moz-focus-inner",{border:0}):null,J("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; + `),J("border",{border:"var(--n-border)"}),J("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),J("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; + `,[B("icon-slot",` + height: var(--n-icon-size); + width: var(--n-icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + `,[to({top:"50%",originalTransform:"translateY(-50%)"})]),Ew()]),J("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + `,[A("~",[J("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Y("block",` + display: flex; + width: 100%; + `),Y("dashed",[J("border, state-border",{borderStyle:"dashed !important"})]),Y("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),A("@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)"}}),A("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]);const Lw=Object.assign(Object.assign({},Be.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,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:Boolean}),Fw=fe({name:"Button",props:Lw,setup(e){const t=Z(null),r=Z(null),n=Z(!1),o=kr(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=ve(kw,{}),{mergedSizeRef:a}=fi({},{defaultSize:"medium",mergedSize:$=>{const{size:E}=e;if(E)return E;const{size:P}=i;if(P)return P;const{mergedSize:y}=$||{};return y?y.value:"medium"}}),s=X(()=>e.focusable&&!e.disabled),l=$=>{var E;e.disabled||e.nativeFocusBehavior||s.value&&($.preventDefault(),(E=t.value)===null||E===void 0||E.focus({preventScroll:!0}))},u=$=>{var E;if(!e.disabled&&!e.loading){const{onClick:P}=e;P&&Me(P,$),e.text||(E=r.value)===null||E===void 0||E.play()}},c=$=>{switch($.code){case"Enter":case"NumpadEnter":if(!e.keyboard)return;n.value=!1}},d=$=>{switch($.code){case"Enter":case"NumpadEnter":if(!e.keyboard||e.loading){$.preventDefault();return}n.value=!0}},h=()=>{n.value=!1},{inlineThemeDisabled:g,mergedClsPrefixRef:p,mergedRtlRef:m}=at(e),x=Be("Button","-button",Mw,jd,e,p),v=bi("Button",m,p),S=X(()=>{const $=x.value,{common:{cubicBezierEaseInOut:E,cubicBezierEaseOut:P},self:y}=$,{rippleDuration:C,opacityDisabled:_,fontWeight:z,fontWeightStrong:D}=y,R=a.value,{dashed:K,type:M,ghost:q,text:W,color:U,round:G,circle:pe,textColor:$e,secondary:Se,tertiary:Fe,quaternary:Ie,strong:Ve}=e,ie={"font-weight":Ve?D:z};let ae={"--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 Q=M==="tertiary",Ae=M==="default",ce=Q?"default":M;if(W){const k=$e||U,H=k||y[se("textColorText",ce)];ae={"--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":H,"--n-text-color-hover":k?yr(k):y[se("textColorTextHover",ce)],"--n-text-color-pressed":k?$o(k):y[se("textColorTextPressed",ce)],"--n-text-color-focus":k?yr(k):y[se("textColorTextHover",ce)],"--n-text-color-disabled":k||y[se("textColorTextDisabled",ce)]}}else if(q||K){const k=$e||U;ae={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||y[se("rippleColor",ce)],"--n-text-color":k||y[se("textColorGhost",ce)],"--n-text-color-hover":k?yr(k):y[se("textColorGhostHover",ce)],"--n-text-color-pressed":k?$o(k):y[se("textColorGhostPressed",ce)],"--n-text-color-focus":k?yr(k):y[se("textColorGhostHover",ce)],"--n-text-color-disabled":k||y[se("textColorGhostDisabled",ce)]}}else if(Se){const k=Ae?y.textColor:Q?y.textColorTertiary:y[se("color",ce)],H=U||k,I=M!=="default"&&M!=="tertiary";ae={"--n-color":I?Ce(H,{alpha:Number(y.colorOpacitySecondary)}):y.colorSecondary,"--n-color-hover":I?Ce(H,{alpha:Number(y.colorOpacitySecondaryHover)}):y.colorSecondaryHover,"--n-color-pressed":I?Ce(H,{alpha:Number(y.colorOpacitySecondaryPressed)}):y.colorSecondaryPressed,"--n-color-focus":I?Ce(H,{alpha:Number(y.colorOpacitySecondaryHover)}):y.colorSecondaryHover,"--n-color-disabled":y.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":H,"--n-text-color-hover":H,"--n-text-color-pressed":H,"--n-text-color-focus":H,"--n-text-color-disabled":H}}else if(Fe||Ie){const k=Ae?y.textColor:Q?y.textColorTertiary:y[se("color",ce)],H=U||k;Fe?(ae["--n-color"]=y.colorTertiary,ae["--n-color-hover"]=y.colorTertiaryHover,ae["--n-color-pressed"]=y.colorTertiaryPressed,ae["--n-color-focus"]=y.colorSecondaryHover,ae["--n-color-disabled"]=y.colorTertiary):(ae["--n-color"]=y.colorQuaternary,ae["--n-color-hover"]=y.colorQuaternaryHover,ae["--n-color-pressed"]=y.colorQuaternaryPressed,ae["--n-color-focus"]=y.colorQuaternaryHover,ae["--n-color-disabled"]=y.colorQuaternary),ae["--n-ripple-color"]="#0000",ae["--n-text-color"]=H,ae["--n-text-color-hover"]=H,ae["--n-text-color-pressed"]=H,ae["--n-text-color-focus"]=H,ae["--n-text-color-disabled"]=H}else ae={"--n-color":U||y[se("color",ce)],"--n-color-hover":U?yr(U):y[se("colorHover",ce)],"--n-color-pressed":U?$o(U):y[se("colorPressed",ce)],"--n-color-focus":U?yr(U):y[se("colorFocus",ce)],"--n-color-disabled":U||y[se("colorDisabled",ce)],"--n-ripple-color":U||y[se("rippleColor",ce)],"--n-text-color":$e||(U?y.textColorPrimary:Q?y.textColorTertiary:y[se("textColor",ce)]),"--n-text-color-hover":$e||(U?y.textColorHoverPrimary:y[se("textColorHover",ce)]),"--n-text-color-pressed":$e||(U?y.textColorPressedPrimary:y[se("textColorPressed",ce)]),"--n-text-color-focus":$e||(U?y.textColorFocusPrimary:y[se("textColorFocus",ce)]),"--n-text-color-disabled":$e||(U?y.textColorDisabledPrimary:y[se("textColorDisabled",ce)])};let Re={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};W?Re={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Re={"--n-border":y[se("border",ce)],"--n-border-hover":y[se("borderHover",ce)],"--n-border-pressed":y[se("borderPressed",ce)],"--n-border-focus":y[se("borderFocus",ce)],"--n-border-disabled":y[se("borderDisabled",ce)]};const{[se("height",R)]:qe,[se("fontSize",R)]:tt,[se("padding",R)]:b,[se("paddingRound",R)]:w,[se("iconSize",R)]:O,[se("borderRadius",R)]:L,[se("iconMargin",R)]:F,waveOpacity:j}=y,V={"--n-width":pe&&!W?qe:"initial","--n-height":W?"initial":qe,"--n-font-size":tt,"--n-padding":pe||W?"initial":G?w:b,"--n-icon-size":O,"--n-icon-margin":F,"--n-border-radius":W?"initial":pe||G?qe:L};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":E,"--n-bezier-ease-out":P,"--n-ripple-duration":C,"--n-opacity-disabled":_,"--n-wave-opacity":j},ie),ae),Re),V)}),T=g?Nt("button",X(()=>{let $="";const{dashed:E,type:P,ghost:y,text:C,color:_,round:z,circle:D,textColor:R,secondary:K,tertiary:M,quaternary:q,strong:W}=e;E&&($+="a"),y&&($+="b"),C&&($+="c"),z&&($+="d"),D&&($+="e"),K&&($+="f"),M&&($+="g"),q&&($+="h"),W&&($+="i"),_&&($+="j"+Ho(_)),R&&($+="k"+Ho(R));const{value:U}=a;return $+="l"+U[0],$+="m"+P[0],$}),S,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:p,mergedFocusable:s,mergedSize:a,showBorder:o,enterPressed:n,rtlEnabled:v,handleMousedown:l,handleKeydown:d,handleBlur:h,handleKeyup:c,handleClick:u,customColorCssVars:X(()=>{const{color:$}=e;if(!$)return null;const E=yr($);return{"--n-border-color":$,"--n-border-color-hover":E,"--n-border-color-pressed":$o($),"--n-border-color-focus":E,"--n-border-color-disabled":$}}),cssVars:g?void 0:S,themeClass:T==null?void 0:T.themeClass,onRender:T==null?void 0:T.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;r==null||r();const n=Do(this.$slots.default,o=>o&&f("span",{class:`${e}-button__content`},o));return f(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"&&n,f(vs,{width:!0},{default:()=>Do(this.$slots.icon,o=>(this.loading||o)&&f("span",{class:`${e}-button__icon`,style:{margin:zu(this.$slots.default)?"0":""}},f(mi,null,{default:()=>this.loading?f(Ky,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):f("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},o)})))}),this.iconPlacement==="left"&&n,this.text?null:f(aw,{ref:"waveElRef",clsPrefix:e}),this.showBorder?f("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?f("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}});var So=Fw,Iw={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px"};const Dw=e=>{const{baseColor:t,inputColorDisabled:r,cardColor:n,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:s,primaryColor:l,textColor2:u,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:h,borderRadiusSmall:g,lineHeight:p}=e;return Object.assign(Object.assign({},Iw),{labelLineHeight:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:h,borderRadius:g,color:t,colorChecked:l,colorDisabled:r,colorDisabledChecked:r,colorTableHeader:n,colorTableHeaderModal:o,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 ${Ce(l,{alpha:.3})}`,textColor:u,textColorDisabled:a})},Hw={name:"Checkbox",common:Rt,self:Dw};var Nw=Hw,jw=f("svg",{viewBox:"0 0 64 64",class:"check-icon"},f("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),Ww=f("svg",{viewBox:"0 0 100 100",class:"line-icon"},f("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"}));const Wd="n-checkbox-group",Uw={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:{type:[Function,Array],validator:()=>!0,default:void 0}};var Vw=fe({name:"CheckboxGroup",props:Uw,setup(e){const{mergedClsPrefixRef:t}=at(e),r=fi(e),{mergedSizeRef:n,mergedDisabledRef:o}=r,i=Z(e.defaultValue),a=X(()=>e.value),s=ui(a,i),l=X(()=>{var d;return((d=s.value)===null||d===void 0?void 0:d.length)||0}),u=X(()=>Array.isArray(s.value)?new Set(s.value):new Set);function c(d,h){const{nTriggerFormInput:g,nTriggerFormChange:p}=r,{onChange:m,"onUpdate:value":x,onUpdateValue:v}=e;if(Array.isArray(s.value)){const S=Array.from(s.value),T=S.findIndex($=>$===h);d?~T||(S.push(h),v&&Me(v,S),x&&Me(x,S),g(),p(),i.value=S,m&&Me(m,S)):~T&&(S.splice(T,1),v&&Me(v,S),x&&Me(x,S),m&&Me(m,S),i.value=S,g(),p())}else d?(v&&Me(v,[h]),x&&Me(x,[h]),m&&Me(m,[h]),i.value=[h],g(),p()):(v&&Me(v,[]),x&&Me(x,[]),m&&Me(m,[]),i.value=[],g(),p())}return mt(Wd,{checkedCountRef:l,maxRef:xe(e,"max"),minRef:xe(e,"min"),valueSetRef:u,disabledRef:o,mergedSizeRef:n,toggleCheckbox:c}),{mergedClsPrefix:t}},render(){return f("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),qw=A([B("checkbox",` + line-height: var(--n-label-line-height); + font-size: var(--n-font-size); + outline: none; + cursor: pointer; + display: inline-flex; + flex-wrap: nowrap; + align-items: flex-start; + word-break: break-word; + --n-merged-color-table: var(--n-color-table); + `,[A("&:hover",[B("checkbox-box",[J("border",{border:"var(--n-border-checked)"})])]),A("&:focus:not(:active)",[B("checkbox-box",[J("border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),Y("inside-table",[B("checkbox-box",` + background-color: var(--n-merged-color-table); + `)]),Y("checked",[B("checkbox-box",` + background-color: var(--n-color-checked); + `,[B("checkbox-icon",[A(".check-icon",` + opacity: 1; + transform: scale(1); + `)])])]),Y("indeterminate",[B("checkbox-box",[B("checkbox-icon",[A(".check-icon",` + opacity: 0; + transform: scale(.5); + `),A(".line-icon",` + opacity: 1; + transform: scale(1); + `)])])]),Y("checked, indeterminate",[A("&:focus:not(:active)",[B("checkbox-box",[J("border",` + border: var(--n-border-checked); + box-shadow: var(--n-box-shadow-focus); + `)])]),B("checkbox-box",` + background-color: var(--n-color-checked); + border-left: 0; + border-top: 0; + `,[J("border",{border:"var(--n-border-checked)"})])]),Y("disabled",{cursor:"not-allowed"},[Y("checked",[B("checkbox-box",` + background-color: var(--n-color-disabled-checked); + `,[J("border",{border:"var(--n-border-disabled-checked)"}),B("checkbox-icon",[A(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),B("checkbox-box",` + background-color: var(--n-color-disabled); + `,[J("border",{border:"var(--n-border-disabled)"}),B("checkbox-icon",[A(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),J("label",{color:"var(--n-text-color-disabled)"})]),B("checkbox-box-wrapper",` + position: relative; + width: var(--n-size); + flex-shrink: 0; + flex-grow: 0; + user-select: none; + `),B("checkbox-box",` + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + height: var(--n-size); + width: var(--n-size); + display: inline-block; + box-sizing: border-box; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color 0.3s var(--n-bezier); + `,[J("border",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border: var(--n-border); + `),B("checkbox-icon",` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[A(".check-icon, .line-icon",` + width: 100%; + fill: var(--n-check-mark-color); + opacity: 0; + transform: scale(0.5); + transform-origin: center; + transition: + fill 0.3s var(--n-bezier), + transform 0.3s var(--n-bezier), + opacity 0.3s var(--n-bezier), + border-color 0.3s var(--n-bezier); + `),to({left:"1px",top:"1px"})])]),J("label",` + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + user-select: none; + padding: var(--n-label-padding); + `,[A("&:empty",{display:"none"})])]),kg(B("checkbox",` + --n-merged-color-table: var(--n-color-table-modal); + `)),Mg(B("checkbox",` + --n-merged-color-table: var(--n-color-table-popover); + `))]);const Xw=Object.assign(Object.assign({},Be.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]});var Kw=fe({name:"Checkbox",props:Xw,setup(e){const t=Z(null),{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=at(e),i=fi(e,{mergedSize(P){const{size:y}=e;if(y!==void 0)return y;if(l){const{value:C}=l.mergedSizeRef;if(C!==void 0)return C}if(P){const{mergedSize:C}=P;if(C!==void 0)return C.value}return"medium"},mergedDisabled(P){const{disabled:y}=e;if(y!==void 0)return y;if(l){if(l.disabledRef.value)return!0;const{maxRef:{value:C},checkedCountRef:_}=l;if(C!==void 0&&_.value>=C&&!h.value)return!0;const{minRef:{value:z}}=l;if(z!==void 0&&_.value<=z&&h.value)return!0}return P?P.disabled.value:!1}}),{mergedDisabledRef:a,mergedSizeRef:s}=i,l=ve(Wd,null),u=Z(e.defaultChecked),c=xe(e,"checked"),d=ui(c,u),h=kr(()=>{if(l){const P=l.valueSetRef.value;return P&&e.value!==void 0?P.has(e.value):!1}else return d.value===e.checkedValue}),g=Be("Checkbox","-checkbox",qw,Nw,e,r);function p(P){if(l&&e.value!==void 0)l.toggleCheckbox(!h.value,e.value);else{const{onChange:y,"onUpdate:checked":C,onUpdateChecked:_}=e,{nTriggerFormInput:z,nTriggerFormChange:D}=i,R=h.value?e.uncheckedValue:e.checkedValue;C&&Me(C,R,P),_&&Me(_,R,P),y&&Me(y,R,P),z(),D(),u.value=R}}function m(P){a.value||p(P)}function x(P){if(!a.value)switch(P.code){case"Space":case"Enter":case"NumpadEnter":p(P)}}function v(P){switch(P.code){case"Space":P.preventDefault()}}const S={focus:()=>{var P;(P=t.value)===null||P===void 0||P.focus()},blur:()=>{var P;(P=t.value)===null||P===void 0||P.blur()}},T=bi("Checkbox",o,r),$=X(()=>{const{value:P}=s,{common:{cubicBezierEaseInOut:y},self:{borderRadius:C,color:_,colorChecked:z,colorDisabled:D,colorTableHeader:R,colorTableHeaderModal:K,colorTableHeaderPopover:M,checkMarkColor:q,checkMarkColorDisabled:W,border:U,borderFocus:G,borderDisabled:pe,borderChecked:$e,boxShadowFocus:Se,textColor:Fe,textColorDisabled:Ie,checkMarkColorDisabledChecked:Ve,colorDisabledChecked:ie,borderDisabledChecked:ae,labelPadding:Q,labelLineHeight:Ae,[se("fontSize",P)]:ce,[se("size",P)]:Re}}=g.value;return{"--n-label-line-height":Ae,"--n-size":Re,"--n-bezier":y,"--n-border-radius":C,"--n-border":U,"--n-border-checked":$e,"--n-border-focus":G,"--n-border-disabled":pe,"--n-border-disabled-checked":ae,"--n-box-shadow-focus":Se,"--n-color":_,"--n-color-checked":z,"--n-color-table":R,"--n-color-table-modal":K,"--n-color-table-popover":M,"--n-color-disabled":D,"--n-color-disabled-checked":ie,"--n-text-color":Fe,"--n-text-color-disabled":Ie,"--n-check-mark-color":q,"--n-check-mark-color-disabled":W,"--n-check-mark-color-disabled-checked":Ve,"--n-font-size":ce,"--n-label-padding":Q}}),E=n?Nt("checkbox",X(()=>s.value[0]),$,e):void 0;return Object.assign(i,S,{rtlEnabled:T,selfRef:t,mergedClsPrefix:r,mergedDisabled:a,renderedChecked:h,mergedTheme:g,labelId:rn(),handleClick:m,handleKeyUp:x,handleKeyDown:v,cssVars:n?void 0:$,themeClass:E==null?void 0:E.themeClass,onRender:E==null?void 0:E.onRender})},render(){var e;const{$slots:t,renderedChecked:r,mergedDisabled:n,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:s,label:l,mergedClsPrefix:u,focusable:c,handleKeyUp:d,handleKeyDown:h,handleClick:g}=this;return(e=this.onRender)===null||e===void 0||e.call(this),f("div",{ref:"selfRef",class:[`${u}-checkbox`,this.themeClass,this.rtlEnabled&&`${u}-checkbox--rtl`,r&&`${u}-checkbox--checked`,n&&`${u}-checkbox--disabled`,o&&`${u}-checkbox--indeterminate`,i&&`${u}-checkbox--inside-table`],tabindex:n||!c?void 0:0,role:"checkbox","aria-checked":o?"mixed":r,"aria-labelledby":s,style:a,onKeyup:d,onKeydown:h,onClick:g,onMousedown:()=>{Ke("selectstart",window,p=>{p.preventDefault()},{once:!0})}},f("div",{class:`${u}-checkbox-box-wrapper`},"\xA0",f("div",{class:`${u}-checkbox-box`},f(mi,null,{default:()=>this.indeterminate?f("div",{key:"indeterminate",class:`${u}-checkbox-icon`},Ww):f("div",{key:"check",class:`${u}-checkbox-icon`},jw)}),f("div",{class:`${u}-checkbox-box__border`}))),l!==null||t.default?f("span",{class:`${u}-checkbox__label`,id:s},t.default?t.default():l):null)}}),Yw={padding:"8px 14px"};const Gw=e=>{const{borderRadius:t,boxShadow2:r,baseColor:n}=e;return Object.assign(Object.assign({},Yw),{borderRadius:t,boxShadow:r,color:li(n,"rgba(0, 0, 0, .85)"),textColor:n})},Zw={name:"Tooltip",common:Rt,peers:{Popover:Dd},self:Gw};var Ud=Zw;const Jw=Object.assign(Object.assign({},Nd),Be.props);var Qw=fe({name:"Tooltip",props:Jw,__popover__:!0,setup(e){const t=Be("Tooltip","-tooltip",void 0,Ud,e),r=Z(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(o){r.value.setShow(o)}}),{popoverRef:r,mergedTheme:t,popoverThemeOverrides:X(()=>t.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return f(bw,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)}}),eC={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const tC=()=>eC,rC={name:"Space",self:tC};var nC=rC;const oC=Object.assign(Object.assign({},Be.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},itemStyle:[String,Object],wrap:{type:Boolean,default:!0}});var Vd=fe({name:"Space",props:oC,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=at(e),n=Be("Space","-space",void 0,nC,e,t);return{rtlEnabled:bi("Space",r,t),mergedClsPrefix:t,margin:X(()=>{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:{[se("gap",i)]:a}}=n.value,{row:s,col:l}=tg(a);return{horizontal:sl(l),vertical:sl(s)}})}},render(){const{vertical:e,align:t,inline:r,justify:n,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:s,rtlEnabled:l}=this,u=Io(ug(this));if(!u.length)return null;const c=`${i.horizontal}px`,d=`${i.horizontal/2}px`,h=`${i.vertical}px`,g=`${i.vertical/2}px`,p=u.length-1,m=n.startsWith("space-");return f("div",{role:"none",class:[`${s}-space`,l&&`${s}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(n)?"flex-"+n:n,flexWrap:!a||e?"nowrap":"wrap",marginTop:e?"":`-${g}`,marginBottom:e?"":`-${g}`,alignItems:t}},u.map((x,v)=>f("div",{role:"none",style:[o,{maxWidth:"100%"},e?{marginBottom:v!==p?h:""}:l?{marginLeft:m?n==="space-between"&&v===p?"":d:v!==p?c:"",marginRight:m?n==="space-between"&&v===0?"":d:"",paddingTop:g,paddingBottom:g}:{marginRight:m?n==="space-between"&&v===p?"":d:v!==p?c:"",marginLeft:m?n==="space-between"&&v===0?"":d:"",paddingTop:g,paddingBottom:g}]},x)))}});function iC(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const aC={name:"Image",common:Rt,peers:{Tooltip:Ud},self:iC};var sC={closeMargin:"18px 14px",closeSize:"16px",width:"365px",padding:"16px"};const lC=e=>{const{textColor2:t,successColor:r,infoColor:n,warningColor:o,errorColor:i,popoverColor:a,closeColor:s,closeColorHover:l,textColor1:u,textColor3:c,borderRadius:d,fontWeightStrong:h,boxShadow2:g,lineHeight:p,fontSize:m}=e;return Object.assign(Object.assign({},sC),{borderRadius:d,lineHeight:p,fontSize:m,headerFontWeight:h,iconColor:t,iconColorSuccess:r,iconColorInfo:n,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeColor:s,closeColorHover:l,closeColorPressed:s,headerTextColor:u,descriptionTextColor:c,actionTextColor:t,boxShadow:g})},cC={name:"Notification",common:Rt,peers:{Scrollbar:Fd},self:lC};var uC=cC;const dC=e=>{const{infoColor:t,successColor:r,warningColor:n,errorColor:o,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:n,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:n,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},fC={name:"Progress",common:Rt,self:dC};var qd=fC,hC={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"};const pC=e=>{const{primaryColor:t,textColor2:r,borderColor:n,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:u,textColor3:c,infoColor:d,warningColor:h,errorColor:g,successColor:p,codeColor:m}=e;return Object.assign(Object.assign({},hC),{aTextColor:t,blockquoteTextColor:r,blockquotePrefixColor:n,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:r,liLineHeight:o,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:u,pTextColor:r,pTextColor1Depth:u,pTextColor2Depth:r,pTextColor3Depth:c,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:g,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:r,textColor1Depth:u,textColor2Depth:r,textColor3Depth:c,textColorPrimary:t,textColorInfo:d,textColorSuccess:p,textColorWarning:h,textColorError:g,codeTextColor:r,codeColor:m,codeBorder:"1px solid #0000"})},gC={name:"Typography",common:Rt,self:pC};var vC=gC;const mC=e=>{const{iconColor:t,primaryColor:r,errorColor:n,textColor2:o,successColor:i,opacityDisabled:a,actionColor:s,borderColor:l,hoverColor:u,lineHeight:c,borderRadius:d,fontSize:h}=e;return{fontSize:h,lineHeight:c,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${r}`,itemColorHover:u,itemColorHoverError:Ce(n,{alpha:.06}),itemTextColor:o,itemTextColorError:n,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${n}`,itemBorderImageCard:`1px solid ${l}`}},bC={name:"Upload",common:Rt,peers:{Button:jd,Progress:qd},self:mC};var xC=bC;const yC=f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),wC=f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),CC=f("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},f("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),ms=Object.assign(Object.assign({},Be.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean});var $C=A([A("body >",[B("image-container","position: fixed;")]),B("image-preview-container",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + `),B("image-preview-overlay",` + z-index: -1; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + background: rgba(0, 0, 0, .3); + `,[$a()]),B("image-preview-toolbar",` + z-index: 1; + position: absolute; + left: 50%; + transform: translateX(-50%); + border-radius: var(--n-toolbar-border-radius); + height: 48px; + bottom: 40px; + padding: 0 12px; + background: var(--n-toolbar-color); + box-shadow: var(--n-toolbar-box-shadow); + color: var(--n-toolbar-icon-color); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[B("base-icon",` + padding: 0 8px; + font-size: 28px; + cursor: pointer; + `),$a()]),B("image-preview-wrapper",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + pointer-events: none; + `,[ow()]),B("image-preview",` + user-select: none; + pointer-events: all; + margin: auto; + max-height: 100vh; + max-width: 100vw; + transition: transform .3s var(--n-bezier); + `),B("image",` + display: inline-flex; + max-height: 100%; + max-width: 100%; + `,[Lt("preview-disabled",` + cursor: pointer; + `),A("img",` + border-radius: inherit; + `)])]),Xd=fe({name:"ImagePreview",props:Object.assign(Object.assign({},ms),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Be("Image","-image",$C,aC,e,xe(e,"clsPrefix"));let r=null;const n=Z(null),o=Z(null),i=Z(void 0),a=Z(!1),s=Z(!1),{localeRef:l}=By("Image");function u(){const{value:ie}=o;if(!r||!ie)return;const{style:ae}=ie,Q=r.getBoundingClientRect(),Ae=Q.left+Q.width/2,ce=Q.top+Q.height/2;ae.transformOrigin=`${Ae}px ${ce}px`}function c(ie){var ae,Q;switch(ie.code){case"ArrowLeft":(ae=e.onPrev)===null||ae===void 0||ae.call(e);break;case"ArrowRight":(Q=e.onNext)===null||Q===void 0||Q.call(e);break;case"Escape":pe();break}}pt(a,ie=>{ie?Ke("keydown",document,c):Le("keydown",document,c)}),St(()=>{Le("keydown",document,c)});let d=0,h=0,g=0,p=0,m=0,x=0,v=0,S=0,T=!1;function $(ie){const{clientX:ae,clientY:Q}=ie;g=ae-d,p=Q-h,Ou(G)}function E(ie){const{mouseUpClientX:ae,mouseUpClientY:Q,mouseDownClientX:Ae,mouseDownClientY:ce}=ie,Re=Ae-ae,qe=ce-Q,tt=`vertical${qe>0?"Top":"Bottom"}`,b=`horizontal${Re>0?"Left":"Right"}`;return{moveVerticalDirection:tt,moveHorizontalDirection:b,deltaHorizontal:Re,deltaVertical:qe}}function P(ie){const{value:ae}=n;if(!ae)return{offsetX:0,offsetY:0};const Q=ae.getBoundingClientRect(),{moveVerticalDirection:Ae,moveHorizontalDirection:ce,deltaHorizontal:Re,deltaVertical:qe}=ie||{};let tt=0,b=0;return Q.width<=window.innerWidth?tt=0:Q.left>0?tt=(Q.width-window.innerWidth)/2:Q.right0?b=(Q.height-window.innerHeight)/2:Q.bottom.5){z-=.5,G(!1);const ie=P();z+=.5,G(!1),z-=.5,g=ie.offsetX,p=ie.offsetY,G()}}function G(ie=!0){const{value:ae}=n;if(!ae)return;const{style:Q}=ae,Ae=`transform-origin: center; transform: translateX(${g}px) translateY(${p}px) rotate(${D}deg) scale(${z});`;T?Q.cssText="cursor: grabbing; transition: none;"+Ae:Q.cssText="cursor: grab;"+Ae+(ie?"":"transition: none;"),ie||ae.offsetHeight}function pe(){a.value=!a.value,s.value=!0}const $e={setPreviewSrc:ie=>{i.value=ie},setThumbnailEl:ie=>{r=ie},toggleShow:pe};function Se(ie,ae){if(e.showToolbarTooltip){const{value:Q}=t;return f(Qw,{to:!1,theme:Q.peers.Tooltip,themeOverrides:Q.peerOverrides.Tooltip},{default:()=>l.value[ae],trigger:()=>ie})}else return ie}const Fe=X(()=>{const{common:{cubicBezierEaseInOut:ie},self:{toolbarIconColor:ae,toolbarBorderRadius:Q,toolbarBoxShadow:Ae,toolbarColor:ce}}=t.value;return{"--n-bezier":ie,"--n-toolbar-icon-color":ae,"--n-toolbar-color":ce,"--n-toolbar-border-radius":Q,"--n-toolbar-box-shadow":Ae}}),{inlineThemeDisabled:Ie}=at(),Ve=Ie?Nt("image-preview",void 0,Fe,e):void 0;return Object.assign({previewRef:n,previewWrapperRef:o,previewSrc:i,show:a,appear:di(),displayed:s,handleWheel(ie){ie.preventDefault()},handlePreviewMousedown:C,handlePreviewDblclick:_,syncTransformOrigin:u,handleAfterLeave:()=>{D=0,z=1,s.value=!1},handleDragStart:ie=>{ie.preventDefault()},zoomIn:W,zoomOut:U,rotateCounterclockwise:M,rotateClockwise:q,handleSwitchPrev:R,handleSwitchNext:K,withTooltip:Se,cssVars:Ie?void 0:Fe,themeClass:Ve==null?void 0:Ve.themeClass,onRender:Ve==null?void 0:Ve.onRender},$e)},render(){var e,t;const{clsPrefix:r}=this;return f(Pe,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),f(Yu,{show:this.show},{default:()=>{var n;return this.show||this.displayed?((n=this.onRender)===null||n===void 0||n.call(this),en(f("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},f(Et,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?f("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?f(Et,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return f("div",{class:`${r}-image-preview-toolbar`},this.onPrev?f(Pe,null,o(f(je,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>yC}),"tipPrevious"),o(f(je,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>wC}),"tipNext")):null,o(f(je,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>f(Ny,null)}),"tipCounterclockwise"),o(f(je,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>f(Hy,null)}),"tipClockwise"),o(f(je,{clsPrefix:r,onClick:this.zoomOut},{default:()=>f(Wy,null)}),"tipZoomOut"),o(f(je,{clsPrefix:r,onClick:this.zoomIn},{default:()=>f(jy,null)}),"tipZoomIn"),o(f(je,{clsPrefix:r,onClick:this.toggleShow},{default:()=>CC}),"tipClose"))}}):null,f(Et,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>en(f("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},f("img",{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:`${r}-image-preview`,key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart})),[[Eu,this.show]])})),[[Ja,{enabled:this.show}]])):null}}))}});const Kd="n-image-group",SC=ms;var _C=fe({name:"ImageGroup",props:SC,setup(e){let t;const{mergedClsPrefixRef:r}=at(e),n=`c${rn()}`,o=ai(),i=l=>{var u;t=l,(u=s.value)===null||u===void 0||u.setPreviewSrc(l)};function a(l){if(!(o!=null&&o.proxy))return;const c=o.proxy.$el.parentElement.querySelectorAll(`.${n}:not([data-error=true])`);if(!c.length)return;const d=Array.from(c).findIndex(h=>h.dataset.previewSrc===t);~d?i(c[(d+l+c.length)%c.length].dataset.previewSrc):i(c[0].dataset.previewSrc)}mt(Kd,{mergedClsPrefixRef:r,setPreviewSrc:i,setThumbnailEl:l=>{var u;(u=s.value)===null||u===void 0||u.setThumbnailEl(l)},toggleShow:()=>{var l;(l=s.value)===null||l===void 0||l.toggleShow()},groupId:n});const s=Z(null);return{mergedClsPrefix:r,previewInstRef:s,next:()=>a(1),prev:()=>a(-1)}},render(){return f(Xd,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}});const TC=Object.assign({alt:String,height:[String,Number],imgProps:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},ms);var PC=fe({name:"Image",props:TC,inheritAttrs:!1,setup(e){const t=Z(null),r=Z(!1),n=xe(e,"imgProps"),o=Z(null),i=ve(Kd,null),{mergedClsPrefixRef:a}=i||at(e),s={click:()=>{if(e.previewDisabled||r.value)return;const l=e.previewSrc||e.src;if(i){i.setPreviewSrc(l),i.setThumbnailEl(t.value),i.toggleShow();return}const{value:u}=o;!u||(u.setPreviewSrc(l),u.setThumbnailEl(t.value),u.toggleShow())}};return dn(()=>{var l;e.src,(l=e.imgProps)===null||l===void 0||l.src,r.value=!1}),Object.assign({mergedClsPrefix:a,groupId:i==null?void 0:i.groupId,previewInstRef:o,imageRef:t,imgProps:n,showError:r,mergedOnError:l=>{r.value=!0;const{onError:u,imgProps:{onError:c}={}}=e;u==null||u(l),c==null||c(l)},mergedOnLoad:l=>{const{onLoad:u,imgProps:{onLoad:c}={}}=e;u==null||u(l),c==null||c(l)}},s)},render(){const{mergedClsPrefix:e,imgProps:t={},$attrs:r}=this,n=f("img",Object.assign({},t,{class:[this.groupId,t.class],ref:"imageRef",width:this.width||t.width,height:this.height||t.height,src:this.showError?this.fallbackSrc:this.src||t.src,alt:this.alt||t.alt,"aria-label":this.alt||t.alt,onClick:this.click,onError:this.mergedOnError,onLoad:this.mergedOnLoad,style:[t.style||"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return f("div",Object.assign({},r,{role:"none",class:[r.class,`${e}-image`,(this.previewDisabled||this.showError)&&`${e}-image--preview-disabled`]}),this.groupId?n:f(Xd,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:e,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>n}))}});const xi="n-notification-provider",EC=fe({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:r}=ve(xi),n=Z(null);return dn(()=>{var o,i;r.value>0?(o=n==null?void 0:n.value)===null||o===void 0||o.classList.add("transitioning"):(i=n==null?void 0:n.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:n,mergedTheme:e,mergedClsPrefix:t,transitioning:r}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:r,mergedTheme:n,placement:o}=this;return f("div",{ref:"selfRef",class:[`${r}-notification-container`,t&&`${r}-notification-container--scrollable`,`${r}-notification-container--${o}`]},t?f(rw,{theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar},e):e)}}),RC={info:()=>f(hs,null),success:()=>f(ps,null),warning:()=>f(gs,null),error:()=>f(fs,null),default:()=>null},bs={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}},OC=fg(bs),BC=fe({name:"Notification",props:bs,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:r,props:n}=ve(xi),{inlineThemeDisabled:o}=at(),i=X(()=>{const{type:s}=e,{self:{color:l,textColor:u,closeColor:c,closeColorHover:d,closeColorPressed:h,headerTextColor:g,descriptionTextColor:p,actionTextColor:m,borderRadius:x,headerFontWeight:v,boxShadow:S,lineHeight:T,fontSize:$,closeMargin:E,closeSize:P,width:y,padding:C,[se("iconColor",s)]:_},common:{cubicBezierEaseOut:z,cubicBezierEaseIn:D,cubicBezierEaseInOut:R}}=r.value,{left:K,right:M,top:q,bottom:W}=eg(C);return{"--n-color":l,"--n-font-size":$,"--n-text-color":u,"--n-description-text-color":p,"--n-action-text-color":m,"--n-title-text-color":g,"--n-title-font-weight":v,"--n-bezier":R,"--n-bezier-ease-out":z,"--n-bezier-ease-in":D,"--n-border-radius":x,"--n-box-shadow":S,"--n-close-color":c,"--n-close-color-hover":d,"--n-close-color-pressed":h,"--n-line-height":T,"--n-icon-color":_,"--n-close-margin":E,"--n-close-size":P,"--n-width":y,"--n-padding-left":K,"--n-padding-right":M,"--n-padding-top":q,"--n-padding-bottom":W}}),a=o?Nt("notification",X(()=>e.type[0]),i,n):void 0;return{mergedClsPrefix:t,showAvatar:X(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},cssVars:o?void 0:i,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),f("div",{class:[`${t}-notification-wrapper`,this.themeClass],style:this.cssVars},f("div",{class:[`${t}-notification`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?f("div",{class:`${t}-notification__avatar`},this.avatar?Nr(this.avatar):this.type!=="default"?f(je,{clsPrefix:t},{default:()=>RC[this.type]()}):null):null,this.closable?f(Md,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,f("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?f("div",{class:`${t}-notification-main__header`},Nr(this.title)):null,this.description?f("div",{class:`${t}-notification-main__description`},Nr(this.description)):null,this.content?f("pre",{class:`${t}-notification-main__content`},Nr(this.content)):null,this.meta||this.action?f("div",{class:`${t}-notification-main-footer`},this.meta?f("div",{class:`${t}-notification-main-footer__meta`},Nr(this.meta)):null,this.action?f("div",{class:`${t}-notification-main-footer__action`},Nr(this.action)):null):null)))}}),zC=Object.assign(Object.assign({},bs),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),AC=fe({name:"NotificationEnvironment",props:Object.assign(Object.assign({},zC),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=ve(xi),r=Z(!0);let n=null;function o(){r.value=!1,n&&window.clearTimeout(n)}function i(d){t.value++,no(()=>{d.style.height=`${d.offsetHeight}px`,d.style.maxHeight="0",d.style.transition="none",d.offsetHeight,d.style.transition="",d.style.maxHeight=d.style.height})}function a(d){t.value--,d.style.height="",d.style.maxHeight="";const{onAfterEnter:h,onAfterShow:g}=e;h&&h(),g&&g()}function s(d){t.value++,d.style.maxHeight=`${d.offsetHeight}px`,d.style.height=`${d.offsetHeight}px`,d.offsetHeight}function l(d){const{onHide:h}=e;h&&h(),d.style.maxHeight="0",d.offsetHeight}function u(){t.value--;const{onAfterLeave:d,onInternalAfterLeave:h,onAfterHide:g,internalKey:p}=e;d&&d(),h(p),g&&g()}function c(){const{onClose:d}=e;d?Promise.resolve(d()).then(h=>{h!==!1&&o()}):o()}return Qt(()=>{e.duration&&(n=window.setTimeout(o,e.duration))}),{show:r,hide:o,handleClose:c,handleAfterLeave:u,handleLeave:l,handleBeforeLeave:s,handleAfterEnter:a,handleBeforeEnter:i}},render(){return f(Et,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?f(BC,Object.assign({},Bu(this.$props,OC),{onClose:this.handleClose})):null})}});var kC=A([B("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[A(">",[B("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[A(">",[B("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[B("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),Y("top, top-right, top-left",` + top: 12px; + `,[A("&.transitioning >",[B("scrollbar",[A(">",[B("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),Y("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[A(">",[B("scrollbar",[A(">",[B("scrollbar-container",[B("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),B("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),Y("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[B("notification-wrapper",[A("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),A("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),Y("top",[B("notification-wrapper",` + transform-origin: top center; + `)]),Y("bottom",[B("notification-wrapper",` + transform-origin: bottom center; + `)]),Y("top-right, bottom-right",[B("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),Y("top-left, bottom-left",[B("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),Y("top-right",` + right: 0; + `,[_o("top-right")]),Y("top-left",` + left: 0; + `,[_o("top-left")]),Y("bottom-right",` + right: 0; + `,[_o("bottom-right")]),Y("bottom-left",` + left: 0; + `,[_o("bottom-left")]),Y("scrollable",[Y("top-right",` + top: 0; + `),Y("top-left",` + top: 0; + `),Y("bottom-right",` + bottom: 0; + `),Y("bottom-left",` + bottom: 0; + `)]),B("notification-wrapper",` + margin-bottom: 12px; + `,[A("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),A("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),A("&.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); + `),A("&.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); + `)]),B("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); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + box-sizing: border-box; + opacity: 1; + `,[J("avatar",[B("icon",{color:"var(--n-icon-color)"}),B("base-icon",{color:"var(--n-icon-color)"})]),Y("show-avatar",[B("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),Y("closable",[B("notification-main",[A("> *:first-child",{paddingRight:"20px"})]),J("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + font-size: var(--n-close-size); + transition: color .3s var(--n-bezier); + `)]),J("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; + `,[B("icon",{transition:"color .3s var(--n-bezier)"})]),B("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); + `,[B("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[J("meta",` + font-size: 12px; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),J("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),J("header",` + font-weight: var(--n-title-font-weight); + font-size: 16px; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-title-text-color); + `),J("description",` + margin-top: 8px; + font-size: 12px; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),J("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); + `,[A("&:first-child",{margin:0})])])])])]);function _o(e){const r=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",n="0";return B("notification-wrapper",[A("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${r}, 0); + `),A("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(${n}, 0); + `)])}const Yd="n-notification-api",MC=Object.assign(Object.assign({},Be.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"}});var LC=fe({name:"NotificationProvider",props:MC,setup(e){const{mergedClsPrefixRef:t}=at(e),r=Z([]),n={},o=new Set;function i(g){const p=rn(),m=()=>{o.add(p),n[p]&&n[p].hide()},x=Jo(Object.assign(Object.assign({},g),{key:p,destroy:m,hide:m,deactivate:m})),{max:v}=e;if(v&&r.value.length-o.size>=v){let S=!1,T=0;for(const $ of r.value){if(!o.has($.key)){n[$.key]&&($.destroy(),S=!0);break}T++}S||r.value.splice(T,1)}return r.value.push(x),x}const a=["info","success","warning","error"].map(g=>p=>i(Object.assign(Object.assign({},p),{type:g})));function s(g){o.delete(g),r.value.splice(r.value.findIndex(p=>p.key===g),1)}const l=Be("Notification","-notification",kC,uC,e,t),u={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:d,destroyAll:h},c=Z(0);mt(Yd,u),mt(xi,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:c});function d(g){return i(g)}function h(){Object.values(r.value).forEach(g=>{g.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:r,notificationRefs:n,handleAfterLeave:s},u)},render(){var e,t,r;const{placement:n}=this;return f(Pe,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?f(qa,{to:(r=this.to)!==null&&r!==void 0?r:"body"},f(EC,{style:this.containerStyle,scrollable:this.scrollable&&n!=="top"&&n!=="bottom",placement:n},{default:()=>this.notificationList.map(o=>f(AC,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},dg(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave})))})):null)}});function FC(){const e=ve(Yd,null);return e===null&&pn("use-notification","No outer `n-notification-provider` found."),e}var IC=A([B("progress",{display:"inline-block"},[B("progress-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + `),Y("line",` + width: 100%; + display: block; + `,[B("progress-content",` + display: flex; + align-items: center; + `,[B("progress-graph",{flex:1})]),B("progress-custom-content",{marginLeft:"14px"}),B("progress-icon",` + width: 30px; + padding-left: 14px; + height: var(--n-icon-size-line); + line-height: var(--n-icon-size-line); + font-size: var(--n-icon-size-line); + `,[Y("as-text",` + color: var(--n-text-color-line-outer); + text-align: center; + width: 40px; + font-size: var(--n-font-size); + padding-left: 4px; + transition: color .3s var(--n-bezier); + `)])]),Y("circle, dashboard",{width:"120px"},[B("progress-custom-content",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `),B("progress-text",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: inherit; + font-size: var(--n-font-size-circle); + color: var(--n-text-color-circle); + font-weight: var(--n-font-weight-circle); + transition: color .3s var(--n-bezier); + white-space: nowrap; + `),B("progress-icon",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: var(--n-icon-color); + font-size: var(--n-icon-size-circle); + `)]),Y("multiple-circle",` + width: 200px; + color: inherit; + `,[B("progress-text",` + font-weight: var(--n-font-weight-circle); + color: var(--n-text-color-circle); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `)]),B("progress-content",{position:"relative"}),B("progress-graph",{position:"relative"},[B("progress-graph-circle",[A("svg",{verticalAlign:"bottom"}),B("progress-graph-circle-fill",` + stroke: var(--n-fill-color); + transition: + opacity .3s var(--n-bezier), + stroke .3s var(--n-bezier), + stroke-dasharray .3s var(--n-bezier); + `,[Y("empty",{opacity:0})]),B("progress-graph-circle-rail",` + transition: stroke .3s var(--n-bezier); + overflow: hidden; + stroke: var(--n-rail-color); + `)]),B("progress-graph-line",[Y("indicator-inside",[B("progress-graph-line-rail",` + height: 16px; + line-height: 16px; + border-radius: 10px; + `,[B("progress-graph-line-fill",` + height: inherit; + border-radius: 10px; + `),B("progress-graph-line-indicator",` + background: #0000; + white-space: nowrap; + text-align: right; + margin-left: 14px; + margin-right: 14px; + height: inherit; + font-size: 12px; + color: var(--n-text-color-line-inner); + transition: color .3s var(--n-bezier); + `)])]),Y("indicator-inside-label",` + height: 16px; + display: flex; + align-items: center; + `,[B("progress-graph-line-rail",` + flex: 1; + transition: background-color .3s var(--n-bezier); + `),B("progress-graph-line-indicator",` + background: var(--n-fill-color); + font-size: 12px; + transform: translateZ(0); + display: flex; + vertical-align: middle; + height: 16px; + line-height: 16px; + padding: 0 10px; + border-radius: 10px; + position: absolute; + white-space: nowrap; + color: var(--n-text-color-line-inner); + transition: + right .2s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `)]),B("progress-graph-line-rail",` + position: relative; + overflow: hidden; + height: var(--n-rail-height); + border-radius: 5px; + background-color: var(--n-rail-color); + transition: background-color .3s var(--n-bezier); + `,[B("progress-graph-line-fill",` + background: var(--n-fill-color); + position: relative; + border-radius: 5px; + height: inherit; + width: 100%; + max-width: 0%; + transition: + background-color .3s var(--n-bezier), + max-width .2s var(--n-bezier); + `,[Y("processing",[A("&::after",` + content: ""; + background-image: var(--n-line-bg-processing); + animation: progress-processing-animation 2s var(--n-bezier) infinite; + `)])])])])])]),A("@keyframes progress-processing-animation",` + 0% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 100%; + opacity: 1; + } + 66% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + 100% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + `)]);const DC={success:f(ps,null),error:f(fs,null),warning:f(gs,null),info:f(hs,null)};var HC=fe({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const r=X(()=>Xt(e.height)),n=X(()=>e.railBorderRadius!==void 0?Xt(e.railBorderRadius):e.height!==void 0?Xt(e.height,{c:.5}):""),o=X(()=>e.fillBorderRadius!==void 0?Xt(e.fillBorderRadius):e.railBorderRadius!==void 0?Xt(e.railBorderRadius):e.height!==void 0?Xt(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:i,railColor:a,railStyle:s,percentage:l,unit:u,indicatorTextColor:c,status:d,showIndicator:h,fillColor:g,processing:p,clsPrefix:m}=e;return f("div",{class:`${m}-progress-content`,role:"none"},f("div",{class:`${m}-progress-graph`,"aria-hidden":!0},f("div",{class:[`${m}-progress-graph-line`,{[`${m}-progress-graph-line--indicator-${i}`]:!0}]},f("div",{class:`${m}-progress-graph-line-rail`,style:[{backgroundColor:a,height:r.value,borderRadius:n.value},s]},f("div",{class:[`${m}-progress-graph-line-fill`,p&&`${m}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:g,height:r.value,lineHeight:r.value,borderRadius:o.value}},i==="inside"?f("div",{class:`${m}-progress-graph-line-indicator`},l,u):null)))),h&&i==="outside"?f("div",null,t.default?f("div",{class:`${m}-progress-custom-content`,style:{color:c},role:"none"},t.default()):d==="default"?f("div",{role:"none",class:`${m}-progress-icon ${m}-progress-icon--as-text`,style:{color:c}},l,u):f("div",{class:`${m}-progress-icon`,"aria-hidden":!0},f(je,{clsPrefix:m},{default:()=>DC[d]}))):null)}}});const NC={success:f(ps,null),error:f(fs,null),warning:f(gs,null),info:f(hs,null)};var jC=fe({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function r(n,o,i){const{gapDegree:a,viewBoxWidth:s}=e,l=50,u=0,c=l,d=0,h=2*l,g=`M 55,55 m ${u},${c} + a ${l},${l} 0 1 1 ${d},${-h} + a ${l},${l} 0 1 1 ${-d},${h}`,p=Math.PI*2*l,m={stroke:i,strokeDasharray:`${n/100*(p-a)}px ${s*8}px`,strokeDashoffset:`-${a/2+Math.PI/3.6*o}px`};return{pathString:g,pathStyle:m}}return()=>{const{fillColor:n,railColor:o,strokeWidth:i,offsetDegree:a,status:s,percentage:l,showIndicator:u,indicatorTextColor:c,unit:d,gapOffsetDegree:h,clsPrefix:g}=e,{pathString:p,pathStyle:m}=r(100,0,o),{pathString:x,pathStyle:v}=r(l,a,n);return f("div",{class:`${g}-progress-content`,role:"none"},f("div",{class:`${g}-progress-graph`,"aria-hidden":!0},f("div",{class:`${g}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},f("svg",{viewBox:"0 0 110 110"},f("g",null,f("path",{class:`${g}-progress-graph-circle-rail`,d:p,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:m})),f("g",null,f("path",{class:[`${g}-progress-graph-circle-fill`,l===0&&`${g}-progress-graph-circle-fill--empty`],d:x,"stroke-width":i,"stroke-linecap":"round",fill:"none",style:v}))))),u?f("div",null,t.default?f("div",{class:`${g}-progress-custom-content`,role:"none"},t.default()):s!=="default"?f("div",{class:`${g}-progress-icon`,"aria-hidden":!0},f(je,{clsPrefix:g},{default:()=>NC[s]})):f("div",{class:`${g}-progress-text`,style:{color:c},role:"none"},f("span",{class:`${g}-progress-text__percentage`},l),f("span",{class:`${g}-progress-text__unit`},d))):null)}}});function uc(e,t,r=100){return`m ${r/2} ${r/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}var WC=fe({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const r=X(()=>e.percentage.map((o,i)=>`${Math.PI*o/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*i)-e.circleGap*i)*2}, ${e.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:n,strokeWidth:o,circleGap:i,showIndicator:a,fillColor:s,railColor:l,railStyle:u,percentage:c,clsPrefix:d}=e;return f("div",{class:`${d}-progress-content`,role:"none"},f("div",{class:`${d}-progress-graph`,"aria-hidden":!0},f("div",{class:`${d}-progress-graph-circle`},f("svg",{viewBox:`0 0 ${n} ${n}`},c.map((h,g)=>f("g",{key:g},f("path",{class:`${d}-progress-graph-circle-rail`,d:uc(n/2-o/2*(1+2*g)-i*g,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:l[g]},u[g]]}),f("path",{class:[`${d}-progress-graph-circle-fill`,h===0&&`${d}-progress-graph-circle-fill--empty`],d:uc(n/2-o/2*(1+2*g)-i*g,o,n),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:r.value[g],strokeDashoffset:0,stroke:s[g]}})))))),a&&t.default?f("div",null,f("div",{class:`${d}-progress-text`},t.default())):null)}}});const UC=Object.assign(Object.assign({},Be.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number});var Gd=fe({name:"Progress",props:UC,setup(e){const t=X(()=>e.indicatorPlacement||e.indicatorPosition),r=X(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=at(e),i=Be("Progress","-progress",IC,qd,e,n),a=X(()=>{const{status:l}=e,{common:{cubicBezierEaseInOut:u},self:{fontSize:c,fontSizeCircle:d,railColor:h,railHeight:g,iconSizeCircle:p,iconSizeLine:m,textColorCircle:x,textColorLineInner:v,textColorLineOuter:S,lineBgProcessing:T,fontWeightCircle:$,[se("iconColor",l)]:E,[se("fillColor",l)]:P}}=i.value;return{"--n-bezier":u,"--n-fill-color":P,"--n-font-size":c,"--n-font-size-circle":d,"--n-font-weight-circle":$,"--n-icon-color":E,"--n-icon-size-circle":p,"--n-icon-size-line":m,"--n-line-bg-processing":T,"--n-rail-color":h,"--n-rail-height":g,"--n-text-color-circle":x,"--n-text-color-line-inner":v,"--n-text-color-line-outer":S}}),s=o?Nt("progress",X(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:n,mergedIndicatorPlacement:t,gapDeg:r,cssVars:o?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:r,showIndicator:n,status:o,railColor:i,railStyle:a,color:s,percentage:l,viewBoxWidth:u,strokeWidth:c,mergedIndicatorPlacement:d,unit:h,borderRadius:g,fillBorderRadius:p,height:m,processing:x,circleGap:v,mergedClsPrefix:S,gapDeg:T,gapOffsetDegree:$,themeClass:E,$slots:P,onRender:y}=this;return y==null||y(),f("div",{class:[E,`${S}-progress`,`${S}-progress--${e}`,`${S}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?f(jC,{clsPrefix:S,status:o,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:s,railStyle:a,offsetDegree:this.offsetDegree,percentage:l,viewBoxWidth:u,strokeWidth:c,gapDegree:T===void 0?e==="dashboard"?75:0:T,gapOffsetDegree:$,unit:h},P):e==="line"?f(HC,{clsPrefix:S,status:o,showIndicator:n,indicatorTextColor:r,railColor:i,fillColor:s,railStyle:a,percentage:l,processing:x,indicatorPlacement:d,unit:h,fillBorderRadius:p,railBorderRadius:g,height:m},P):e==="multiple-circle"?f(WC,{clsPrefix:S,strokeWidth:c,railColor:i,fillColor:s,railStyle:a,viewBoxWidth:u,percentage:l,showIndicator:n,circleGap:v},P):null)}}),VC=B("text",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); +`,[Y("strong",` + font-weight: var(--n-font-weight-strong); + `),Y("italic",{fontStyle:"italic"}),Y("underline",{textDecoration:"underline"}),Y("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); + `)]);const qC=Object.assign(Object.assign({},Be.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}});var XC=fe({name:"Text",props:qC,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=at(e),n=Be("Typography","-text",VC,vC,e,t),o=X(()=>{const{depth:a,type:s}=e,l=s==="default"?a===void 0?"textColor":`textColor${a}Depth`:se("textColor",s),{common:{fontWeightStrong:u,fontFamilyMono:c,cubicBezierEaseInOut:d},self:{codeTextColor:h,codeBorderRadius:g,codeColor:p,codeBorder:m,[l]:x}}=n.value;return{"--n-bezier":d,"--n-text-color":x,"--n-font-weight-strong":u,"--n-font-famliy-mono":c,"--n-code-border-radius":g,"--n-code-text-color":h,"--n-code-color":p,"--n-code-border":m}}),i=r?Nt("text",X(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Nu(e,["as","tag"]),cssVars:r?void 0:o,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,r;const{mergedClsPrefix:n}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${n}-text`,this.themeClass,{[`${n}-text--code`]:this.code,[`${n}-text--delete`]:this.delete,[`${n}-text--strong`]:this.strong,[`${n}-text--italic`]:this.italic,[`${n}-text--underline`]:this.underline}],i=(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t);return this.code?f("code",{class:o,style:this.cssVars},this.delete?f("del",null,i):i):this.delete?f("del",{class:o,style:this.cssVars},i):f(this.compitableTag||"span",{class:o,style:this.cssVars},i)}});const mn="n-upload",Zd="__UPLOAD_DRAGGER__";var Jd=fe({name:"UploadDragger",[Zd]:!0,setup(e,{slots:t}){const r=ve(mn,null);return r||pn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:n},mergedDisabledRef:{value:o}}=r;return f("div",{class:[`${n}-upload-dragger`,o&&`${n}-upload-dragger--disabled`]},t)}}}),Qd=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(c){try{u(n.next(c))}catch(d){a(d)}}function l(c){try{u(n.throw(c))}catch(d){a(d)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const ef=e=>e.includes("image/"),KC=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},YC=e=>{if(e.type)return ef(e.type);const t=e.thumbnailUrl||e.url||"",r=KC(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r)?!0:!(/^data:/.test(t)||r)};function GC(e){return Qd(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!ef(e.type)){t("");return}const r=new Image;r.src=window.URL.createObjectURL(e),r.onload=()=>{const{width:n,height:o}=r,i=document.createElement("canvas"),a=i.getContext("2d");i.width=n,i.height=o,i.style.cssText=`position: fixed; left: 0; top: 0; width: ${n}px; height: ${o}px; z-index: 9999; display: none;`,document.body.appendChild(i),a==null||a.drawImage(r,0,0,n,o);const s=i.toDataURL();document.body.removeChild(i),t(s)}})})}const ZC=typeof document!="undefined"&&typeof window!="undefined"&&window.FileReader&&window.File;function JC(e){return e.isDirectory}function QC(e){return e.isFile}function e2(e,t){return Qd(this,void 0,void 0,function*(){const r=[];let n,o=0;function i(){o++}function a(){o--,o||n(r)}function s(l){l.forEach(u=>{if(!!u){if(i(),t&&JC(u)){const c=u.createReader();i(),c.readEntries(d=>{s(d),a()},()=>{a()})}else QC(u)&&(i(),u.file(c=>{r.push({file:c,entry:u,source:"dnd"}),a()},()=>{a()}));a()}})}return yield new Promise(l=>{n=l,s(e)}),r})}function ro(e){const{id:t,name:r,percentage:n,status:o,url:i,file:a,thumbnailUrl:s,type:l,fullPath:u,batchId:c}=e;return{id:t,name:r,percentage:n!=null?n:null,status:o,url:i!=null?i:null,file:a!=null?a:null,thumbnailUrl:s!=null?s:null,type:l!=null?l:null,fullPath:u!=null?u:null,batchId:c!=null?c:null}}function t2(e,t,r){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),r=r.toLocaleLowerCase(),r.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[s,l]=o.split("/");if((s==="*"||i&&s&&s===i)&&(l==="*"||a&&l&&l===a))return!0}else return!0;return!1})}var tf=fe({name:"UploadTrigger",props:{abstract:Boolean},setup(e,{slots:t}){const r=ve(mn,null);r||pn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:n,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:s,openOpenFileDialog:l,draggerInsideRef:u,handleFileAddition:c,mergedDirectoryDndRef:d}=r,h=X(()=>a.value==="image-card");function g(){o.value||i.value||l()}function p(S){S.preventDefault(),s.value=!0}function m(S){S.preventDefault(),s.value=!0}function x(S){S.preventDefault(),s.value=!1}function v(S){var T;if(S.preventDefault(),!u.value||o.value||i.value){s.value=!1;return}const $=(T=S.dataTransfer)===null||T===void 0?void 0:T.items;$!=null&&$.length?e2(Array.from($).map(E=>E.webkitGetAsEntry()),d.value).then(E=>{c(E)}).finally(()=>{s.value=!1}):s.value=!1}return()=>{var S;const{value:T}=n;return e.abstract?(S=t.default)===null||S===void 0?void 0:S.call(t,{handleClick:g,handleDrop:v,handleDragOver:p,handleDragEnter:m,handleDragLeave:x}):f("div",{class:[`${T}-upload-trigger`,(o.value||i.value)&&`${T}-upload-trigger--disabled`,h.value&&`${T}-upload-trigger--image-card`],onClick:g,onDrop:v,onDragover:p,onDragenter:m,onDragleave:x},h.value?f(Jd,null,{default:t.default||(()=>f(je,{clsPrefix:T},{default:()=>f(zy,null)}))}):t)}}}),r2=fe({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:ve(mn).mergedThemeRef}},render(){return f(vs,null,{default:()=>this.show?f(Gd,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}});const n2=f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},f("g",{fill:"none"},f("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"}))),o2=f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},f("g",{fill:"none"},f("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})));var i2=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(c){try{u(n.next(c))}catch(d){a(d)}}function l(c){try{u(n.throw(c))}catch(d){a(d)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},a2=fe({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=ve(mn),r=Z(null),n=Z(""),o=X(()=>{const{file:$}=e;return $.status==="finished"?"success":$.status==="error"?"error":"info"}),i=X(()=>{const{file:$}=e;if($.status==="error")return"error"}),a=X(()=>{const{file:$}=e;return $.status==="uploading"}),s=X(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:$}=e;return["uploading","pending","error"].includes($.status)}),l=X(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:$}=e;return["finished"].includes($.status)}),u=X(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:$}=e;return["finished"].includes($.status)}),c=X(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:$}=e;return["error"].includes($.status)}),d=X(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:$,url:E},listType:P}=e;return["finished"].includes($)&&(E||n.value)&&P==="image-card"});function h(){t.submit(e.file.id)}function g($){$.preventDefault();const{file:E}=e;["finished","pending","error"].includes(E.status)?m(E):["uploading"].includes(E.status)?v(E):ca("upload","The button clicked type is unknown.")}function p($){$.preventDefault(),x(e.file)}function m($){const{XhrMap:E,doChange:P,onRemoveRef:{value:y},mergedFileListRef:{value:C}}=t;Promise.resolve(y?y({file:Object.assign({},$),fileList:C}):!0).then(_=>{if(_===!1)return;const z=Object.assign({},$,{status:"removed"});E.delete($.id),P(z,void 0,{remove:!0})})}function x($){const{onDownloadRef:{value:E}}=t;Promise.resolve(E?E(Object.assign({},$)):!0).then(P=>{})}function v($){const{XhrMap:E}=t,P=E.get($.id);P==null||P.abort(),m(Object.assign({},$))}function S(){const{onPreviewRef:{value:$}}=t;if($)$(e.file);else if(e.listType==="image-card"){const{value:E}=r;if(!E)return;E.click()}}const T=()=>i2(this,void 0,void 0,function*(){const{listType:$}=e;$!=="image"&&$!=="image-card"||!ZC||!(e.file.file instanceof File)||(n.value=yield t.getFileThumbnailUrl(e.file))});return dn(()=>{T()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:s,showRemoveButton:l,showDownloadButton:u,showRetryButton:c,showPreviewButton:d,thumbnailUrl:n,imageRef:r,handleRemoveOrCancelClick:g,handleDownloadClick:p,handleRetryClick:h,handlePreviewClick:S}},render(){const{clsPrefix:e,mergedTheme:t,listType:r,file:n}=this;let o;const i=r==="image";i||r==="image-card"?o=YC(n)?(n.url||this.thumbnailUrl)&&n.status!=="error"?f("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},r==="image-card"?f(PC,{src:this.thumbnailUrl||n.thumbnailUrl||n.url||void 0,previewSrc:n.url||void 0,alt:n.name,ref:"imageRef"}):f("img",{src:this.thumbnailUrl||n.thumbnailUrl||n.url||void 0,alt:n.name})):f("span",{class:`${e}-upload-file-info__thumbnail`},f(je,{clsPrefix:e},{default:()=>n2})):f("span",{class:`${e}-upload-file-info__thumbnail`},f(je,{clsPrefix:e},{default:()=>o2})):o=f("span",{class:`${e}-upload-file-info__thumbnail`},f(je,{clsPrefix:e},{default:()=>f(Ay,null)}));const s=f(r2,{show:this.showProgress,percentage:n.percentage||0,status:this.progressStatus}),l=r==="text"||r==="image";return f("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,n.url&&n.status!=="error"&&r!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${r}-type`]},f("div",{class:`${e}-upload-file-info`},o,f("div",{class:`${e}-upload-file-info__name`},l&&(n.url&&n.status!=="error"?f("a",{rel:"noopener noreferer",target:"_blank",href:n.url||void 0,onClick:this.handlePreviewClick},n.name):f("span",{onClick:this.handlePreviewClick},n.name)),i&&s),f("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${r}-type`]},this.showPreviewButton?f(So,{key:"preview",text:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button},{icon:()=>f(je,{clsPrefix:e},{default:()=>f(My,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&f(So,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,text:!0,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>f(mi,null,{default:()=>this.showRemoveButton?f(je,{clsPrefix:e,key:"trash"},{default:()=>f(Ly,null)}):f(je,{clsPrefix:e,key:"cancel"},{default:()=>f(Iy,null)})})}),this.showRetryButton&&!this.disabled&&f(So,{key:"retry",text:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button},{icon:()=>f(je,{clsPrefix:e},{default:()=>f(Dy,null)})}),this.showDownloadButton?f(So,{key:"download",text:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button},{icon:()=>f(je,{clsPrefix:e},{default:()=>f(Fy,null)})}):null)),!i&&s)}}),s2=fe({name:"UploadFileList",setup(e,{slots:t}){const r=ve(mn,null);r||pn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:n,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListStyleRef:s,cssVarsRef:l,themeClassRef:u,maxReachedRef:c,showTriggerRef:d,imageGroupPropsRef:h}=r,g=X(()=>i.value==="image-card"),p=()=>a.value.map(x=>f(a2,{clsPrefix:o.value,key:x.id,file:x,listType:i.value})),m=()=>g.value?f(_C,Object.assign({},h.value),{default:p}):f(vs,{group:!0},{default:p});return()=>{const{value:x}=o,{value:v}=n;return f("div",{class:[`${x}-upload-file-list`,g.value&&`${x}-upload-file-list--grid`,v?u==null?void 0:u.value:void 0],style:[v&&l?l.value:"",s.value]},m(),d.value&&!c.value&&g.value&&f(tf,null,t))}}}),l2=A([B("upload","width: 100%;",[Y("dragger-inside",[J("trigger",` + display: block; + `)]),Y("drag-over",[B("upload-dragger",` + border: var(--n-dragger-border-hover); + `)])]),B("upload-dragger",` + cursor: pointer; + box-sizing: border-box; + width: 100%; + text-align: center; + border-radius: var(--n-border-radius); + padding: 24px; + opacity: 1; + transition: + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background-color: var(--n-dragger-color); + border: var(--n-dragger-border); + `,[A("&:hover",` + border: var(--n-dragger-border-hover); + `),Y("disabled",` + opacity: var(--n-item-disabled-opacity); + cursor: not-allowed; + `)]),B("upload-trigger",` + display: inline-block; + box-sizing: border-box; + opacity: 1; + transition: opacity .3s var(--n-bezier); + `,[A("+",[B("upload-file-list","margin-top: 8px;")]),Y("disabled",` + opacity: var(--n-item-disabled-opacity); + cursor: not-allowed; + `),Y("image-card",` + width: 96px; + height: 96px; + `,[B("base-icon",` + font-size: 24px; + `),B("upload-dragger",` + padding: 0; + height: 100%; + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `)])]),B("upload-file-list",` + line-height: var(--n-line-height); + opacity: 1; + transition: opacity .3s var(--n-bezier); + `,[Y("disabled",` + opacity: var(--n-item-disabled-opacity); + cursor: not-allowed; + `,[B("upload-file","cursor: not-allowed;")]),Y("grid",` + display: grid; + grid-template-columns: repeat(auto-fill, 96px); + grid-gap: 8px; + margin-top: 0; + `),B("upload-file",` + display: block; + box-sizing: border-box; + cursor: default; + padding: 0px 12px 0 6px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `,[cc(),B("progress",[cc({foldPadding:!0})]),A("&:hover",` + background-color: var(--n-item-color-hover); + `,[B("upload-file-info",[J("action",` + opacity: 1; + `)])]),Y("image-type",` + border-radius: var(--n-border-radius); + text-decoration: underline; + text-decoration-color: #0000; + `,[B("upload-file-info",` + padding-top: 0px; + padding-bottom: 0px; + width: 100%; + height: 100%; + display: flex; + justify-content: space-between; + align-items: center; + padding: 6px 0; + `,[B("progress",` + padding: 2px 0; + margin-bottom: 0; + `),J("name",` + padding: 0 8px; + `),J("thumbnail",` + width: 32px; + height: 32px; + font-size: 28px; + display: flex; + justify-content: center; + align-items: center; + `,[A("img",` + width: 100%; + `)])])]),Y("text-type",[B("progress",` + box-sizing: border-box; + padding-bottom: 6px; + margin-bottom: 6px; + `)]),Y("image-card-type",` + position: relative; + width: 96px; + height: 96px; + border: var(--n-item-border-image-card); + border-radius: var(--n-border-radius); + padding: 0; + display: flex; + align-items: center; + justify-content: center; + transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `,[B("progress",` + position: absolute; + left: 8px; + bottom: 8px; + right: 8px; + width: unset; + `),B("upload-file-info",` + padding: 0; + width: 100%; + height: 100%; + `,[J("thumbnail",` + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: 36px; + `,[A("img",` + width: 100%; + `)])]),A("&::before",` + position: absolute; + z-index: 1; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + opacity: 0; + transition: opacity .2s var(--n-bezier); + content: ""; + `),A("&:hover",[A("&::before","opacity: 1;"),B("upload-file-info",[J("thumbnail","opacity: .12;")])])]),Y("error-status",[A("&:hover",` + background-color: var(--n-item-color-hover-error); + `),B("upload-file-info",[J("name","color: var(--n-item-text-color-error);"),J("thumbnail","color: var(--n-item-text-color-error);")]),Y("image-card-type",` + border: var(--n-item-border-image-card-error); + `)]),Y("with-url",` + cursor: pointer; + `,[B("upload-file-info",[J("name",` + color: var(--n-item-text-color-success); + text-decoration-color: var(--n-item-text-color-success); + `,[A("a",` + text-decoration: underline; + `)])])]),B("upload-file-info",` + position: relative; + padding-top: 6px; + padding-bottom: 6px; + display: flex; + flex-wrap: nowrap; + `,[J("thumbnail",` + font-size: 18px; + opacity: 1; + transition: opacity .2s var(--n-bezier); + color: var(--n-item-icon-color); + `,[B("base-icon",` + margin-right: 2px; + vertical-align: middle; + transition: color .3s var(--n-bezier); + `)]),J("action",` + padding-top: inherit; + padding-bottom: inherit; + position: absolute; + right: 0; + top: 0; + bottom: 0; + width: 80px; + display: flex; + align-items: center; + transition: opacity .2s var(--n-bezier); + justify-content: flex-end; + opacity: 0; + `,[B("button",[A("&:not(:last-child)",{marginRight:"4px"}),B("base-icon",[A("svg",[to()])])]),Y("image-type",` + position: relative; + max-width: 80px; + width: auto; + `),Y("image-card-type",` + z-index: 2; + position: absolute; + width: 100%; + height: 100%; + left: 0; + right: 0; + bottom: 0; + top: 0; + display: flex; + justify-content: center; + align-items: center; + `)]),J("name",` + color: var(--n-item-text-color); + flex: 1; + display: flex; + justify-content: center; + text-overflow: ellipsis; + overflow: hidden; + flex-direction: column; + text-decoration-color: #0000; + font-size: var(--n-font-size); + transition: + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `,[A("a",` + color: inherit; + text-decoration: underline; + `)])])])]),B("upload-file-input",` + display: block; + width: 0; + height: 0; + opacity: 0; + `)]),ji=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(c){try{u(n.next(c))}catch(d){a(d)}}function l(c){try{u(n.throw(c))}catch(d){a(d)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};function c2(e,t,r){const{doChange:n,XhrMap:o}=e;let i=0;function a(l){var u;let c=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),c=ro(((u=e.onError)===null||u===void 0?void 0:u.call(e,{file:c,event:l}))||c),n(c,l)}function s(l){var u;if(r.status<200||r.status>=300){a(l);return}let c=Object.assign({},t,{status:"finished",percentage:i,file:null});o.delete(t.id),c=ro(((u=e.onFinish)===null||u===void 0?void 0:u.call(e,{file:c,event:l}))||c),n(c,l)}return{handleXHRLoad:s,handleXHRError:a,handleXHRAbort(l){const u=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),n(u,l)},handleXHRProgress(l){const u=Object.assign({},t,{status:"uploading"});if(l.lengthComputable){const c=Math.ceil(l.loaded/l.total*100);u.percentage=c,i=c}n(u,l)}}}function u2(e){const{inst:t,file:r,data:n,headers:o,withCredentials:i,action:a,customRequest:s}=e,{doChange:l}=e.inst;let u=0;s({file:r,data:n,headers:o,withCredentials:i,action:a,onProgress(c){const d=Object.assign({},r,{status:"uploading"}),h=c.percent;d.percentage=h,u=h,l(d)},onFinish(){var c;let d=Object.assign({},r,{status:"finished",percentage:u,file:null});d=ro(((c=t.onFinish)===null||c===void 0?void 0:c.call(t,{file:d}))||d),l(d)},onError(){var c;let d=Object.assign({},r,{status:"error",percentage:u});d=ro(((c=t.onError)===null||c===void 0?void 0:c.call(t,{file:d}))||d),l(d)}})}function d2(e,t,r){const n=c2(e,t,r);r.onabort=n.handleXHRAbort,r.onerror=n.handleXHRError,r.onload=n.handleXHRLoad,r.upload&&(r.upload.onprogress=n.handleXHRProgress)}function rf(e,t){return typeof e=="function"?e({file:t}):e||{}}function f2(e,t,r){const n=rf(t,r);!n||Object.keys(n).forEach(o=>{e.setRequestHeader(o,n[o])})}function h2(e,t,r){const n=rf(t,r);!n||Object.keys(n).forEach(o=>{e.append(o,n[o])})}function p2(e,t,r,{method:n,action:o,withCredentials:i,headers:a,data:s}){const l=new XMLHttpRequest;e.XhrMap.set(r.id,l),l.withCredentials=i;const u=new FormData;if(h2(u,s,r),u.append(t,r.file),d2(e,r,l),o!==void 0){l.open(n.toUpperCase(),o),f2(l,a,r),l.send(u);const c=Object.assign({},r,{status:"uploading"});e.doChange(c)}}const g2=Object.assign(Object.assign({},Be.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onBeforeUpload:Function,onDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object});var v2=fe({name:"Upload",props:g2,setup(e){e.abstract&&e.listType==="image-card"&&pn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=at(e),n=Be("Upload","-upload",l2,xC,e,t),o=fi(e),i=X(()=>{const{max:_}=e;return _!==void 0?g.value.length>=_:!1}),a=Z(e.defaultFileList),s=xe(e,"fileList"),l=Z(null),u={value:!1},c=Z(!1),d=new Map,h=ui(s,a),g=X(()=>h.value.map(ro));function p(){var _;(_=l.value)===null||_===void 0||_.click()}function m(_){const z=_.target;S(z.files?Array.from(z.files).map(D=>({file:D,entry:null,source:"input"})):null,_),z.value=""}function x(_){const{"onUpdate:fileList":z,onUpdateFileList:D}=e;z&&Me(z,_),D&&Me(D,_),a.value=_}const v=X(()=>e.multiple||e.directory);function S(_,z){if(!_||_.length===0)return;const{onBeforeUpload:D}=e;_=v.value?_:[_[0]];const{max:R,accept:K}=e;_=_.filter(({file:q,source:W})=>W==="dnd"&&(K==null?void 0:K.trim())?t2(q.name,q.type,K):!0),R&&(_=_.slice(0,R-g.value.length));const M=rn();Promise.all(_.map(({file:q,entry:W})=>ji(this,void 0,void 0,function*(){var U;const G={id:rn(),batchId:M,name:q.name,status:"pending",percentage:0,file:q,url:null,type:q.type,thumbnailUrl:null,fullPath:(U=W==null?void 0:W.fullPath)!==null&&U!==void 0?U:`/${q.webkitRelativePath||q.name}`};return!D||(yield D({file:G,fileList:g.value}))!==!1?G:null}))).then(q=>ji(this,void 0,void 0,function*(){let W=Promise.resolve();return q.forEach(U=>{W=W.then(no).then(()=>{U&&$(U,z,{append:!0})})}),yield W})).then(()=>{e.defaultUpload&&T()})}function T(_){const{method:z,action:D,withCredentials:R,headers:K,data:M,name:q}=e,W=_!==void 0?g.value.filter(G=>G.id===_):g.value,U=_!==void 0;W.forEach(G=>{const{status:pe}=G;(pe==="pending"||pe==="error"&&U)&&(e.customRequest?u2({inst:{doChange:$,XhrMap:d,onFinish:e.onFinish,onError:e.onError},file:G,action:D,withCredentials:R,headers:K,data:M,customRequest:e.customRequest}):p2({doChange:$,XhrMap:d,onFinish:e.onFinish,onError:e.onError},q,G,{method:z,action:D,withCredentials:R,headers:K,data:M}))})}const $=(_,z,D={append:!1,remove:!1})=>{const{append:R,remove:K}=D,M=Array.from(g.value),q=M.findIndex(W=>W.id===_.id);if(R||K||~q){R?M.push(_):K?M.splice(q,1):M.splice(q,1,_);const{onChange:W}=e;W&&W({file:_,fileList:M,event:z}),x(M)}};function E(_){return ji(this,void 0,void 0,function*(){const{createThumbnailUrl:z}=e;return z?yield z(_.file):yield GC(_.file)})}const P=X(()=>{const{common:{cubicBezierEaseInOut:_},self:{draggerColor:z,draggerBorder:D,draggerBorderHover:R,itemColorHover:K,itemColorHoverError:M,itemTextColorError:q,itemTextColorSuccess:W,itemTextColor:U,itemIconColor:G,itemDisabledOpacity:pe,lineHeight:$e,borderRadius:Se,fontSize:Fe,itemBorderImageCardError:Ie,itemBorderImageCard:Ve}}=n.value;return{"--n-bezier":_,"--n-border-radius":Se,"--n-dragger-border":D,"--n-dragger-border-hover":R,"--n-dragger-color":z,"--n-font-size":Fe,"--n-item-color-hover":K,"--n-item-color-hover-error":M,"--n-item-disabled-opacity":pe,"--n-item-icon-color":G,"--n-item-text-color":U,"--n-item-text-color-error":q,"--n-item-text-color-success":W,"--n-line-height":$e,"--n-item-border-image-card-error":Ie,"--n-item-border-image-card":Ve}}),y=r?Nt("upload",void 0,P,e):void 0;mt(mn,{mergedClsPrefixRef:t,mergedThemeRef:n,showCancelButtonRef:xe(e,"showCancelButton"),showDownloadButtonRef:xe(e,"showDownloadButton"),showRemoveButtonRef:xe(e,"showRemoveButton"),showRetryButtonRef:xe(e,"showRetryButton"),onRemoveRef:xe(e,"onRemove"),onDownloadRef:xe(e,"onDownload"),mergedFileListRef:g,XhrMap:d,submit:T,doChange:$,showPreviewButtonRef:xe(e,"showPreviewButton"),onPreviewRef:xe(e,"onPreview"),getFileThumbnailUrl:E,listTypeRef:xe(e,"listType"),dragOverRef:c,openOpenFileDialog:p,draggerInsideRef:u,handleFileAddition:S,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:i,fileListStyleRef:xe(e,"fileListStyle"),abstractRef:xe(e,"abstract"),acceptRef:xe(e,"accept"),cssVarsRef:r?void 0:P,themeClassRef:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender,showTriggerRef:xe(e,"showTrigger"),imageGroupPropsRef:xe(e,"imageGroupProps"),mergedDirectoryDndRef:X(()=>{var _;return(_=e.directoryDnd)!==null&&_!==void 0?_:e.directory})});const C={clear:()=>{a.value=[]},submit:T,openOpenFileDialog:p};return Object.assign({mergedClsPrefix:t,draggerInsideRef:u,inputElRef:l,mergedTheme:n,dragOver:c,mergedMultiple:v,cssVars:r?void 0:P,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender,handleFileInputChange:m},C)},render(){var e,t;const{draggerInsideRef:r,mergedClsPrefix:n,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const l=o.default()[0];!((e=l==null?void 0:l.type)===null||e===void 0)&&e[Zd]&&(r.value=!0)}const s=f("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${n}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i,directory:i}));return this.abstract?f(Pe,null,(t=o.default)===null||t===void 0?void 0:t.call(o),f(qa,{to:"body"},s)):(a==null||a(),f("div",{class:[`${n}-upload`,r.value&&`${n}-upload--dragger-inside`,this.dragOver&&`${n}-upload--drag-over`,this.themeClass],style:this.cssVars},s,this.showTrigger&&this.listType!=="image-card"&&f(tf,null,o),this.showFileList&&f(s2,null,o)))}});const m2=fe({name:"App",setup(e){const t=ve("provides");return(r,n)=>(it(),Xn(ct(LC),null,{default:Yt(()=>[(it(),Xn(Hh(ct(t).component)))]),_:1}))}});var b2=!1;/*! + * pinia v2.0.14 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const x2=Symbol();var dc;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(dc||(dc={}));function y2(){const e=If(!0),t=e.run(()=>Z({}));let r=[],n=[];const o=Da({install(i){o._a=i,i.provide(x2,o),i.config.globalProperties.$pinia=o,n.forEach(a=>r.push(a)),n=[]},use(i){return!this._a&&!b2?n.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return o}var nf={};Object.defineProperty(nf,"__esModule",{value:!0});var of=function(){function e(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}return e.hashStr=function(t,r){return r===void 0&&(r=!1),this.onePassHasher.start().appendStr(t).end(r)},e.hashAsciiStr=function(t,r){return r===void 0&&(r=!1),this.onePassHasher.start().appendAsciiStr(t).end(r)},e._hex=function(t){var r=e.hexChars,n=e.hexOut,o,i,a,s;for(s=0;s<4;s+=1)for(i=s*8,o=t[s],a=0;a<8;a+=2)n[i+1+a]=r.charAt(o&15),o>>>=4,n[i+0+a]=r.charAt(o&15),o>>>=4;return n.join("")},e._md5cycle=function(t,r){var n=t[0],o=t[1],i=t[2],a=t[3];n+=(o&i|~o&a)+r[0]-680876936|0,n=(n<<7|n>>>25)+o|0,a+=(n&o|~n&i)+r[1]-389564586|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&o)+r[2]+606105819|0,i=(i<<17|i>>>15)+a|0,o+=(i&a|~i&n)+r[3]-1044525330|0,o=(o<<22|o>>>10)+i|0,n+=(o&i|~o&a)+r[4]-176418897|0,n=(n<<7|n>>>25)+o|0,a+=(n&o|~n&i)+r[5]+1200080426|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&o)+r[6]-1473231341|0,i=(i<<17|i>>>15)+a|0,o+=(i&a|~i&n)+r[7]-45705983|0,o=(o<<22|o>>>10)+i|0,n+=(o&i|~o&a)+r[8]+1770035416|0,n=(n<<7|n>>>25)+o|0,a+=(n&o|~n&i)+r[9]-1958414417|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&o)+r[10]-42063|0,i=(i<<17|i>>>15)+a|0,o+=(i&a|~i&n)+r[11]-1990404162|0,o=(o<<22|o>>>10)+i|0,n+=(o&i|~o&a)+r[12]+1804603682|0,n=(n<<7|n>>>25)+o|0,a+=(n&o|~n&i)+r[13]-40341101|0,a=(a<<12|a>>>20)+n|0,i+=(a&n|~a&o)+r[14]-1502002290|0,i=(i<<17|i>>>15)+a|0,o+=(i&a|~i&n)+r[15]+1236535329|0,o=(o<<22|o>>>10)+i|0,n+=(o&a|i&~a)+r[1]-165796510|0,n=(n<<5|n>>>27)+o|0,a+=(n&i|o&~i)+r[6]-1069501632|0,a=(a<<9|a>>>23)+n|0,i+=(a&o|n&~o)+r[11]+643717713|0,i=(i<<14|i>>>18)+a|0,o+=(i&n|a&~n)+r[0]-373897302|0,o=(o<<20|o>>>12)+i|0,n+=(o&a|i&~a)+r[5]-701558691|0,n=(n<<5|n>>>27)+o|0,a+=(n&i|o&~i)+r[10]+38016083|0,a=(a<<9|a>>>23)+n|0,i+=(a&o|n&~o)+r[15]-660478335|0,i=(i<<14|i>>>18)+a|0,o+=(i&n|a&~n)+r[4]-405537848|0,o=(o<<20|o>>>12)+i|0,n+=(o&a|i&~a)+r[9]+568446438|0,n=(n<<5|n>>>27)+o|0,a+=(n&i|o&~i)+r[14]-1019803690|0,a=(a<<9|a>>>23)+n|0,i+=(a&o|n&~o)+r[3]-187363961|0,i=(i<<14|i>>>18)+a|0,o+=(i&n|a&~n)+r[8]+1163531501|0,o=(o<<20|o>>>12)+i|0,n+=(o&a|i&~a)+r[13]-1444681467|0,n=(n<<5|n>>>27)+o|0,a+=(n&i|o&~i)+r[2]-51403784|0,a=(a<<9|a>>>23)+n|0,i+=(a&o|n&~o)+r[7]+1735328473|0,i=(i<<14|i>>>18)+a|0,o+=(i&n|a&~n)+r[12]-1926607734|0,o=(o<<20|o>>>12)+i|0,n+=(o^i^a)+r[5]-378558|0,n=(n<<4|n>>>28)+o|0,a+=(n^o^i)+r[8]-2022574463|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^o)+r[11]+1839030562|0,i=(i<<16|i>>>16)+a|0,o+=(i^a^n)+r[14]-35309556|0,o=(o<<23|o>>>9)+i|0,n+=(o^i^a)+r[1]-1530992060|0,n=(n<<4|n>>>28)+o|0,a+=(n^o^i)+r[4]+1272893353|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^o)+r[7]-155497632|0,i=(i<<16|i>>>16)+a|0,o+=(i^a^n)+r[10]-1094730640|0,o=(o<<23|o>>>9)+i|0,n+=(o^i^a)+r[13]+681279174|0,n=(n<<4|n>>>28)+o|0,a+=(n^o^i)+r[0]-358537222|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^o)+r[3]-722521979|0,i=(i<<16|i>>>16)+a|0,o+=(i^a^n)+r[6]+76029189|0,o=(o<<23|o>>>9)+i|0,n+=(o^i^a)+r[9]-640364487|0,n=(n<<4|n>>>28)+o|0,a+=(n^o^i)+r[12]-421815835|0,a=(a<<11|a>>>21)+n|0,i+=(a^n^o)+r[15]+530742520|0,i=(i<<16|i>>>16)+a|0,o+=(i^a^n)+r[2]-995338651|0,o=(o<<23|o>>>9)+i|0,n+=(i^(o|~a))+r[0]-198630844|0,n=(n<<6|n>>>26)+o|0,a+=(o^(n|~i))+r[7]+1126891415|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~o))+r[14]-1416354905|0,i=(i<<15|i>>>17)+a|0,o+=(a^(i|~n))+r[5]-57434055|0,o=(o<<21|o>>>11)+i|0,n+=(i^(o|~a))+r[12]+1700485571|0,n=(n<<6|n>>>26)+o|0,a+=(o^(n|~i))+r[3]-1894986606|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~o))+r[10]-1051523|0,i=(i<<15|i>>>17)+a|0,o+=(a^(i|~n))+r[1]-2054922799|0,o=(o<<21|o>>>11)+i|0,n+=(i^(o|~a))+r[8]+1873313359|0,n=(n<<6|n>>>26)+o|0,a+=(o^(n|~i))+r[15]-30611744|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~o))+r[6]-1560198380|0,i=(i<<15|i>>>17)+a|0,o+=(a^(i|~n))+r[13]+1309151649|0,o=(o<<21|o>>>11)+i|0,n+=(i^(o|~a))+r[4]-145523070|0,n=(n<<6|n>>>26)+o|0,a+=(o^(n|~i))+r[11]-1120210379|0,a=(a<<10|a>>>22)+n|0,i+=(n^(a|~o))+r[2]+718787259|0,i=(i<<15|i>>>17)+a|0,o+=(a^(i|~n))+r[9]-343485551|0,o=(o<<21|o>>>11)+i|0,t[0]=n+t[0]|0,t[1]=o+t[1]|0,t[2]=i+t[2]|0,t[3]=a+t[3]|0},e.prototype.start=function(){return this._dataLength=0,this._bufferLength=0,this._state.set(e.stateIdentity),this},e.prototype.appendStr=function(t){var r=this._buffer8,n=this._buffer32,o=this._bufferLength,i,a;for(a=0;a>>6)+192,r[o++]=i&63|128;else if(i<55296||i>56319)r[o++]=(i>>>12)+224,r[o++]=i>>>6&63|128,r[o++]=i&63|128;else{if(i=(i-55296)*1024+(t.charCodeAt(++a)-56320)+65536,i>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");r[o++]=(i>>>18)+240,r[o++]=i>>>12&63|128,r[o++]=i>>>6&63|128,r[o++]=i&63|128}o>=64&&(this._dataLength+=64,e._md5cycle(this._state,n),o-=64,n[0]=n[16])}return this._bufferLength=o,this},e.prototype.appendAsciiStr=function(t){for(var r=this._buffer8,n=this._buffer32,o=this._bufferLength,i,a=0;;){for(i=Math.min(t.length-a,64-o);i--;)r[o++]=t.charCodeAt(a++);if(o<64)break;this._dataLength+=64,e._md5cycle(this._state,n),o=0}return this._bufferLength=o,this},e.prototype.appendByteArray=function(t){for(var r=this._buffer8,n=this._buffer32,o=this._bufferLength,i,a=0;;){for(i=Math.min(t.length-a,64-o);i--;)r[o++]=t[a++];if(o<64)break;this._dataLength+=64,e._md5cycle(this._state,n),o=0}return this._bufferLength=o,this},e.prototype.getState=function(){var t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}},e.prototype.setState=function(t){var r=t.buffer,n=t.state,o=this._state,i;for(this._dataLength=t.length,this._bufferLength=t.buflen,o[0]=n[0],o[1]=n[1],o[2]=n[2],o[3]=n[3],i=0;i>2)+1;this._dataLength+=r;var a=this._dataLength*8;if(n[r]=128,n[r+1]=n[r+2]=n[r+3]=0,o.set(e.buffer32Identity.subarray(i),i),r>55&&(e._md5cycle(this._state,o),o.set(e.buffer32Identity)),a<=4294967295)o[14]=a;else{var s=a.toString(16).match(/(.*?)(.{0,8})$/);if(s===null)return;var l=parseInt(s[2],16),u=parseInt(s[1],16)||0;o[14]=l,o[15]=u}return e._md5cycle(this._state,o),t?this._state:e._hex(this._state)},e.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),e.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),e.hexChars="0123456789abcdef",e.hexOut=[],e.onePassHasher=new e,e}(),w2=nf.Md5=of;if(of.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");function C2(e){const t=e.substring(e.lastIndexOf("."));return w2.hashStr(e+Math.random().toString())+t}var xs={exports:{}},af=function(t,r){return function(){for(var o=new Array(arguments.length),i=0;i0;)i=n[o],a[i]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function N2(e,t,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r}function j2(e){if(!e)return null;var t=e.length;if(qo(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r}var W2=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array)),et={isArray:Cs,isArrayBuffer:sf,isBuffer:S2,isFormData:A2,isArrayBufferView:_2,isString:T2,isNumber:P2,isObject:lf,isPlainObject:Oo,isUndefined:qo,isDate:E2,isFile:R2,isBlob:O2,isFunction:$s,isStream:z2,isURLSearchParams:k2,isStandardBrowserEnv:L2,forEach:Ss,merge:Sa,extend:F2,trim:M2,stripBOM:I2,inherits:D2,toFlatObject:H2,kindOf:ws,kindOfTest:Hr,endsWith:N2,toArray:j2,isTypedArray:W2,isFileList:B2},Vr=et;function fc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var cf=function(t,r,n){if(!r)return t;var o;if(n)o=n(r);else if(Vr.isURLSearchParams(r))o=r.toString();else{var i=[];Vr.forEach(r,function(l,u){l===null||typeof l=="undefined"||(Vr.isArray(l)?u=u+"[]":l=[l],Vr.forEach(l,function(d){Vr.isDate(d)?d=d.toISOString():Vr.isObject(d)&&(d=JSON.stringify(d)),i.push(fc(u)+"="+fc(d))}))}),o=i.join("&")}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},U2=et;function yi(){this.handlers=[]}yi.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};yi.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};yi.prototype.forEach=function(t){U2.forEach(this.handlers,function(n){n!==null&&t(n)})};var V2=yi,q2=et,X2=function(t,r){q2.forEach(t,function(o,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[i])})},uf=et;function on(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}uf.inherits(on,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var df=on.prototype,ff={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){ff[e]={value:e}});Object.defineProperties(on,ff);Object.defineProperty(df,"isAxiosError",{value:!0});on.from=function(e,t,r,n,o,i){var a=Object.create(df);return uf.toFlatObject(e,a,function(l){return l!==Error.prototype}),on.call(a,e.message,t,r,n,o),a.name=e.name,i&&Object.assign(a,i),a};var bn=on,hf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_t=et;function K2(e,t){t=t||new FormData;var r=[];function n(i){return i===null?"":_t.isDate(i)?i.toISOString():_t.isArrayBuffer(i)||_t.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):Buffer.from(i):i}function o(i,a){if(_t.isPlainObject(i)||_t.isArray(i)){if(r.indexOf(i)!==-1)throw Error("Circular reference detected in "+a);r.push(i),_t.forEach(i,function(l,u){if(!_t.isUndefined(l)){var c=a?a+"."+u:u,d;if(l&&!a&&typeof l=="object"){if(_t.endsWith(u,"{}"))l=JSON.stringify(l);else if(_t.endsWith(u,"[]")&&(d=_t.toArray(l))){d.forEach(function(h){!_t.isUndefined(h)&&t.append(c,n(h))});return}}o(l,c)}}),r.pop()}else t.append(a,n(i))}return o(e),t}var pf=K2,Wi=bn,Y2=function(t,r,n){var o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):r(new Wi("Request failed with status code "+n.status,[Wi.ERR_BAD_REQUEST,Wi.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))},To=et,G2=To.isStandardBrowserEnv()?function(){return{write:function(r,n,o,i,a,s){var l=[];l.push(r+"="+encodeURIComponent(n)),To.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),To.isString(i)&&l.push("path="+i),To.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Z2=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},J2=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t},Q2=Z2,e5=J2,gf=function(t,r){return t&&!Q2(r)?e5(t,r):r},Ui=et,t5=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],r5=function(t){var r={},n,o,i;return t&&Ui.forEach(t.split(` +`),function(s){if(i=s.indexOf(":"),n=Ui.trim(s.substr(0,i)).toLowerCase(),o=Ui.trim(s.substr(i+1)),n){if(r[n]&&t5.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([o]):r[n]=r[n]?r[n]+", "+o:o}}),r},hc=et,n5=hc.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(i){var a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(a){var s=hc.isString(a)?o(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),_a=bn,o5=et;function vf(e){_a.call(this,e==null?"canceled":e,_a.ERR_CANCELED),this.name="CanceledError"}o5.inherits(vf,_a,{__CANCEL__:!0});var wi=vf,i5=function(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""},Tn=et,a5=Y2,s5=G2,l5=cf,c5=gf,u5=r5,d5=n5,f5=hf,Ut=bn,h5=wi,p5=i5,pc=function(t){return new Promise(function(n,o){var i=t.data,a=t.headers,s=t.responseType,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}Tn.isFormData(i)&&Tn.isStandardBrowserEnv()&&delete a["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(d+":"+h)}var g=c5(t.baseURL,t.url);c.open(t.method.toUpperCase(),l5(g,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function p(){if(!!c){var v="getAllResponseHeaders"in c?u5(c.getAllResponseHeaders()):null,S=!s||s==="text"||s==="json"?c.responseText:c.response,T={data:S,status:c.status,statusText:c.statusText,headers:v,config:t,request:c};a5(function(E){n(E),u()},function(E){o(E),u()},T),c=null}}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){!c||(o(new Ut("Request aborted",Ut.ECONNABORTED,t,c)),c=null)},c.onerror=function(){o(new Ut("Network Error",Ut.ERR_NETWORK,t,c,c)),c=null},c.ontimeout=function(){var S=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",T=t.transitional||f5;t.timeoutErrorMessage&&(S=t.timeoutErrorMessage),o(new Ut(S,T.clarifyTimeoutError?Ut.ETIMEDOUT:Ut.ECONNABORTED,t,c)),c=null},Tn.isStandardBrowserEnv()){var m=(t.withCredentials||d5(g))&&t.xsrfCookieName?s5.read(t.xsrfCookieName):void 0;m&&(a[t.xsrfHeaderName]=m)}"setRequestHeader"in c&&Tn.forEach(a,function(S,T){typeof i=="undefined"&&T.toLowerCase()==="content-type"?delete a[T]:c.setRequestHeader(T,S)}),Tn.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(l=function(v){!c||(o(!v||v&&v.type?new h5:v),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l))),i||(i=null);var x=p5(g);if(x&&["http","https","file"].indexOf(x)===-1){o(new Ut("Unsupported protocol "+x+":",Ut.ERR_BAD_REQUEST,t));return}c.send(i)})},g5=null,Ye=et,gc=X2,vc=bn,v5=hf,m5=pf,b5={"Content-Type":"application/x-www-form-urlencoded"};function mc(e,t){!Ye.isUndefined(e)&&Ye.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function x5(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=pc),e}function y5(e,t,r){if(Ye.isString(e))try{return(t||JSON.parse)(e),Ye.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Ci={transitional:v5,adapter:x5(),transformRequest:[function(t,r){if(gc(r,"Accept"),gc(r,"Content-Type"),Ye.isFormData(t)||Ye.isArrayBuffer(t)||Ye.isBuffer(t)||Ye.isStream(t)||Ye.isFile(t)||Ye.isBlob(t))return t;if(Ye.isArrayBufferView(t))return t.buffer;if(Ye.isURLSearchParams(t))return mc(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n=Ye.isObject(t),o=r&&r["Content-Type"],i;if((i=Ye.isFileList(t))||n&&o==="multipart/form-data"){var a=this.env&&this.env.FormData;return m5(i?{"files[]":t}:t,a&&new a)}else if(n||o==="application/json")return mc(r,"application/json"),y5(t);return t}],transformResponse:[function(t){var r=this.transitional||Ci.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&Ye.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?vc.from(a,vc.ERR_BAD_RESPONSE,this,null,this.response):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:g5},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ye.forEach(["delete","get","head"],function(t){Ci.headers[t]={}});Ye.forEach(["post","put","patch"],function(t){Ci.headers[t]=Ye.merge(b5)});var _s=Ci,w5=et,C5=_s,$5=function(t,r,n){var o=this||C5;return w5.forEach(n,function(a){t=a.call(o,t,r)}),t},mf=function(t){return!!(t&&t.__CANCEL__)},bc=et,Vi=$5,S5=mf,_5=_s,T5=wi;function qi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new T5}var P5=function(t){qi(t),t.headers=t.headers||{},t.data=Vi.call(t,t.data,t.headers,t.transformRequest),t.headers=bc.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),bc.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||_5.adapter;return r(t).then(function(o){return qi(t),o.data=Vi.call(t,o.data,o.headers,t.transformResponse),o},function(o){return S5(o)||(qi(t),o&&o.response&&(o.response.data=Vi.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},ft=et,bf=function(t,r){r=r||{};var n={};function o(c,d){return ft.isPlainObject(c)&&ft.isPlainObject(d)?ft.merge(c,d):ft.isPlainObject(d)?ft.merge({},d):ft.isArray(d)?d.slice():d}function i(c){if(ft.isUndefined(r[c])){if(!ft.isUndefined(t[c]))return o(void 0,t[c])}else return o(t[c],r[c])}function a(c){if(!ft.isUndefined(r[c]))return o(void 0,r[c])}function s(c){if(ft.isUndefined(r[c])){if(!ft.isUndefined(t[c]))return o(void 0,t[c])}else return o(void 0,r[c])}function l(c){if(c in r)return o(t[c],r[c]);if(c in t)return o(void 0,t[c])}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return ft.forEach(Object.keys(t).concat(Object.keys(r)),function(d){var h=u[d]||i,g=h(d);ft.isUndefined(g)&&h!==l||(n[d]=g)}),n},xf={version:"0.27.2"},E5=xf.version,cr=bn,Ts={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Ts[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var xc={};Ts.transitional=function(t,r,n){function o(i,a){return"[Axios v"+E5+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return function(i,a,s){if(t===!1)throw new cr(o(a," has been removed"+(r?" in "+r:"")),cr.ERR_DEPRECATED);return r&&!xc[a]&&(xc[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};function R5(e,t,r){if(typeof e!="object")throw new cr("options must be an object",cr.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new cr("option "+i+" must be "+l,cr.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new cr("Unknown option "+i,cr.ERR_BAD_OPTION)}}var O5={assertOptions:R5,validators:Ts},yf=et,B5=cf,yc=V2,wc=P5,$i=bf,z5=gf,wf=O5,qr=wf.validators;function an(e){this.defaults=e,this.interceptors={request:new yc,response:new yc}}an.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=$i(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&wf.assertOptions(n,{silentJSONParsing:qr.transitional(qr.boolean),forcedJSONParsing:qr.transitional(qr.boolean),clarifyTimeoutError:qr.transitional(qr.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(i=i&&g.synchronous,o.unshift(g.fulfilled,g.rejected))});var a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});var s;if(!i){var l=[wc,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(a),s=Promise.resolve(r);l.length;)s=s.then(l.shift(),l.shift());return s}for(var u=r;o.length;){var c=o.shift(),d=o.shift();try{u=c(u)}catch(h){d(h);break}}try{s=wc(u)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};an.prototype.getUri=function(t){t=$i(this.defaults,t);var r=z5(t.baseURL,t.url);return B5(r,t.params,t.paramsSerializer)};yf.forEach(["delete","get","head","options"],function(t){an.prototype[t]=function(r,n){return this.request($i(n||{},{method:t,url:r,data:(n||{}).data}))}});yf.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request($i(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}an.prototype[t]=r(),an.prototype[t+"Form"]=r(!0)});var A5=an,k5=wi;function sn(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;this.promise.then(function(n){if(!!r._listeners){var o,i=r._listeners.length;for(o=0;o{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const W5={style:{"margin-bottom":"12px"}},U5=hr(" \u70B9\u51FB\u6216\u8005\u62D6\u52A8\u6587\u4EF6\u5230\u8BE5\u533A\u57DF\u6765\u4E0A\u4F20 "),V5=["name","value"],q5=["name","value"],X5=fe({name:"File",setup(e){var g;const t=ve("provides");console.log(t);const r=Z(t.value),n=Z(t.column);Z((g=t.disabled)!=null?g:[]);const o=Z(0),i=FC(),a=Z([]),s=async({file:p})=>{const m=t.dir+"/"+C2(p.name);p.status="uploading",p.name=m;const x=t.disk,{data:v}=await Vt.get(t.obs_config_url,{params:{disk:x,filename:m}});switch(x){case"oss":l(p,m,o,v);break;case"qiniu":u(p,m,o,v);break;case"cos":case"cosv5":c(p,m,o,v);break;default:d(p,m,o,v)}};function l(p,m,x,v){const S=new FormData;S.append("name",p.name),S.append("key",m),S.append("policy",v.policy),S.append("OSSAccessKeyId",v.accessid),S.append("success_action_status","200"),S.append("callback",""),S.append("signature",v.signature),S.append("file",p.file,p.name),Vt.post(v.host,S,{onUploadProgress:T=>{x.value=~~(T.loaded/T.total*100)}}).then(T=>{p.status="finished",t.multiple?r.value.push(m):r.value[0]=m,Vt.post(t.uploaded_url,{files:m,disk:t.disk}),i.success({content:`${p.name}`,meta:"\u4E0A\u4F20\u6210\u529F"})}).catch(T=>{console.log(T),p.status="error",i.error({content:T.message,meta:"\u4E0A\u4F20\u5931\u8D25"})})}function u(p,m,x,v){const S=new FormData;S.append("token",v.token),S.append("key",m),S.append("file",p.file,p.name),Vt.post(v.host,S,{onUploadProgress:T=>{x.value=~~(T.loaded/T.total*100)}}).then(T=>{p.status="finished",t.multiple?r.value.push(m):r.value[0]=m,Vt.post(t.uploaded_url,{files:m,disk:t.disk}),i.success({content:`${p.name}`,meta:"\u4E0A\u4F20\u6210\u529F"})}).catch(T=>{console.log(T),p.status="error",i.error({content:T.message,meta:"\u4E0A\u4F20\u5931\u8D25"})})}function c(p,m,x,v){const S=new FormData;S.append("file",p.file,p.name),Vt.put(v.host,S,{headers:{Authorization:v.auth.Credentials.Token},onUploadProgress:T=>{x.value=~~(T.loaded/T.total*100)}}).then(T=>{p.status="finished",t.multiple?r.value.push(m):r.value[0]=m,Vt.post(t.uploaded_url,{files:m,disk:t.disk}),i.success({content:`${p.name}`,meta:"\u4E0A\u4F20\u6210\u529F"})}).catch(T=>{console.log(T),p.status="error",i.error({content:T.message,meta:"\u4E0A\u4F20\u5931\u8D25"})})}function d(p,m,x,v){const S=new FormData;S.append("key",m),S.append("file",p.file,p.name),Vt.post(v.host,S,{onUploadProgress:T=>{x.value=~~(T.loaded/T.total*100)}}).then(T=>{p.status="finished",t.multiple?r.value.push(m):r.value[0]=m,Vt.post(t.uploaded_url,{files:m,disk:t.disk}),i.success({content:`${p.name}`,meta:"\u4E0A\u4F20\u6210\u529F"})}).catch(T=>{console.log(T),p.status="error",i.error({content:T.message,meta:"\u4E0A\u4F20\u5931\u8D25"})})}function h(p){r.value.splice(p,1)}return(p,m)=>(it(),kt(Pe,null,[He(ct(v2),{"custom-request":s,multiple:ct(t).multiple,"show-file-list":!1,"file-list":a.value,"onUpdate:file-list":m[0]||(m[0]=x=>a.value=x)},{default:Yt(()=>[He(ct(Jd),null,{default:Yt(()=>[Ka("div",W5,[He(ct(Gd),{type:"circle",percentage:o.value},null,8,["percentage"])]),He(ct(XC),{style:{"font-size":"16px"}},{default:Yt(()=>[U5]),_:1})]),_:1})]),_:1},8,["multiple","file-list"]),(it(!0),kt(Pe,null,zn(r.value,(x,v)=>(it(),Xn(ct(Vd),{class:"file-list-wrap"},{default:Yt(()=>[He(ct(Pw),{closable:!0,type:"success",onClose:S=>h(v)},{default:Yt(()=>[hr(Of(x),1)]),_:2},1032,["onClose"])]),_:2},1024))),256)),ct(t).multiple?(it(!0),kt(Pe,{key:0},zn(r.value,x=>(it(),kt("input",{type:"hidden",name:n.value+"[]",value:x},null,8,V5))),256)):(it(!0),kt(Pe,{key:1},zn(r.value,x=>(it(),kt("input",{type:"hidden",name:n.value,value:x},null,8,q5))),256))],64))}});var K5=j5(X5,[["__scopeId","data-v-04125442"]]);const Y5=["name","value"],G5=fe({name:"CheckBox",setup(e){var l;const t=ve("provides"),r=Z(),n=Z(t.checked),o=Z(t.column),i=Z((l=t.disabled)!=null?l:[]);r.value=t.options.map((u,c)=>({value:c,attr:{name:u,disabled:i.value.length>0?i.value.includes(c):!1}}));function a(u){document.dispatchEvent(new CustomEvent(`${o.value}:change`,{detail:{value:[...n.value]}}))}return t.watch.forEach(({type:u,handler:c})=>{document.addEventListener(u,({detail:d})=>Function(c)()({setDisabled(h,g=!1){var p;i.value=[...h],r.value=(p=r.value)==null?void 0:p.map(m=>({value:m.value,attr:{name:m.attr.name,disabled:i.value.includes(m.value)}})),g&&(n.value=n.value.filter(m=>!i.value.includes(m)))},getDisabled(){return[...i.value]}},[...d.value]))}),(u,c)=>(it(),kt(Pe,null,[He(ct(Vw),{value:n.value,"onUpdate:value":c[0]||(c[0]=d=>n.value=d),onChange:c[1]||(c[1]=d=>a())},{default:Yt(()=>[He(ct(Vd),{"item-style":"display: flex;"},{default:Yt(()=>[(it(!0),kt(Pe,null,zn(r.value,d=>(it(),Xn(ct(Kw),{key:u.k,value:d.value,label:d.attr.name,size:"medium",disabled:d.attr.disabled},null,8,["value","label","disabled"]))),128))]),_:1})]),_:1},8,["value"]),(it(!0),kt(Pe,null,zn(n.value,d=>(it(),kt("input",{type:"hidden",name:o.value+"[]",value:d},null,8,Y5))),256))],64))}});function Z5(e){return e.component("File",K5).component("CheckBox",G5),e}const J5=function(){const e=Zp(m2);return e.use(y2()),Z5(e),e};export default J5; diff --git a/resources/views/file.blade.php b/resources/views/file.blade.php new file mode 100644 index 0000000..b408ad7 --- /dev/null +++ b/resources/views/file.blade.php @@ -0,0 +1,17 @@ +@php($id = $column . random_int(123456, 987654)) + +
+ + + +
+ +
+
+ diff --git a/src/DcatVueServiceProvider.php b/src/DcatVueServiceProvider.php new file mode 100644 index 0000000..f2aca3d --- /dev/null +++ b/src/DcatVueServiceProvider.php @@ -0,0 +1,95 @@ +hackConfigs(); + +// Form::extend('vue', Vue::class); + Form::extend('file', File::class); + Form::extend('multipleFile', MultipleFile::class); + + Admin::asset()->css(Admin::asset()->getAlias('@weiwait.dcat-vue')['css']); + + $this->publishable(); + } + + public function settingForm() + { + return new Setting($this); + } + + protected function hackConfigs() + { + app()->booted(function () { + config()->set('filesystems.disks.oss', [ + 'access_key' => FilesystemConfig::get('oss_access_key'), + 'secret_key' => FilesystemConfig::get('oss_secret_key'), + 'endpoint' => FilesystemConfig::get('oss_endpoint'), + 'bucket' => FilesystemConfig::get('oss_bucket'), + 'driver' => 'oss', + 'root' => '', + 'isCName' => false, + ]); + + config()->set('filesystems.disks.qiniu', [ + 'access_key' => FilesystemConfig::get('qiniu_access_key'), + 'secret_key' => FilesystemConfig::get('qiniu_secret_key'), + 'domain' => FilesystemConfig::get('qiniu_domain'), + 'bucket' => FilesystemConfig::get('qiniu_bucket'), + 'driver' => 'qiniu', + ]); + + config()->set('filesystems.disks.cosv5', [ + 'driver' => 'cosv5', + 'region' => FilesystemConfig::get('cos_region'), + 'credentials' => [ + 'appId' => FilesystemConfig::get('cos_app_id'), + 'secretId' => FilesystemConfig::get('cos_secret_id'), + 'secretKey' => FilesystemConfig::get('cos_secret_key'), + 'token' => null, + ], + 'timeout' => 60, + 'connect_timeout' => 60, + 'bucket' => FilesystemConfig::get('cos_bucket'), + 'cdn' => FilesystemConfig::get('cos_cdn'), + 'scheme' => config('admin.https') ? 'https' : 'http', + 'read_from_cdn' => false, + 'cdn_key' => null, + 'encrypt' => false, + ]); + + config()->set('filesystems.default', FilesystemConfig::get('disk', config('filesystems.default'))); + }); + + Event::listen('admin:booted', function () { + config()->set('admin.upload.disk', FilesystemConfig::get('disk', config('admin.upload.disk'))); + }); + } +} diff --git a/src/Field/File.php b/src/Field/File.php new file mode 100644 index 0000000..fc476f9 --- /dev/null +++ b/src/Field/File.php @@ -0,0 +1,66 @@ +whereIn('name', (array) $file)->delete(); + + return parent::prepareInputValue($file); + } + + public function render() + { + if (!$this->shouldRender()) { + return ''; + } + + $this->setDefaultClass(); + + $this->callComposing(); + + $this->withScript(); + + $this->withProvides(); + + $this->addVariables([ + 'provides' => $this->variables(), + ]); + + return view($this->view(), $this->variables()); + } + + protected function formatAttributes() + { + return $this->attributes; + } + + protected function withProvides() + { + $disk = config('admin.upload.disk', config('filesystems.default')); + + $this->addVariables([ + 'component' => 'File', + 'multiple' => false, + 'disk' => $this->disk ?? $disk, + 'dir' => $this->getDirectory(), + 'uploaded_url' => route('dcat.admin.weiwait.file.uploaded'), + 'obs_config_url' => route('dcat.admin.weiwait.file.obs-config'), + ]); + } + + public function disk($disk): self + { + $this->disk = $disk; + + return parent::disk($disk); + } +} diff --git a/src/Field/MultipleFile.php b/src/Field/MultipleFile.php new file mode 100644 index 0000000..1879500 --- /dev/null +++ b/src/Field/MultipleFile.php @@ -0,0 +1,66 @@ +whereIn('name', (array) $file)->delete(); + + return parent::prepareInputValue($file); + } + + public function render() + { + if (!$this->shouldRender()) { + return ''; + } + + $this->setDefaultClass(); + + $this->callComposing(); + + $this->withScript(); + + $this->withProvides(); + + $this->addVariables([ + 'provides' => $this->variables(), + ]); + + return view($this->view(), $this->variables()); + } + + protected function formatAttributes() + { + return $this->attributes; + } + + protected function withProvides() + { + $disk = config('admin.upload.disk', config('filesystems.default')); + + $this->addVariables([ + 'component' => 'File', + 'multiple' => true, + 'disk' => $this->disk ?? $disk, + 'dir' => $this->getDirectory(), + 'uploaded_url' => route('dcat.admin.weiwait.file.uploaded'), + 'obs_config_url' => route('dcat.admin.weiwait.file.obs-config'), + ]); + } + + public function disk($disk): self + { + $this->disk = $disk; + + return parent::disk($disk); + } +} diff --git a/src/Field/Vue.php b/src/Field/Vue.php new file mode 100644 index 0000000..30780ae --- /dev/null +++ b/src/Field/Vue.php @@ -0,0 +1,100 @@ +checkboxRender(); + $this->selectRender(); + + if (! $this->shouldRender()) { + return ''; + } + + $this->setDefaultClass(); + + $this->callComposing(); + + $this->withScript(); + + $this->addVariables([ + 'checked' => $this->checked, + 'watch' => $this->watch, + ]); + + $this->addVariables([ + 'provides' => $this->variables(), + ]); + + return view($this->view(), $this->variables()); + } + + protected function formatAttributes() + { + return $this->attributes; + } + + public function disabled($disabled): Vue + { + $this->addVariables([ + 'disabled' => (array) $disabled + ]); + + return $this; + } + + public function watch($column, $handler): Vue + { + $this->watch[] = [ + 'type' => "$column:change", + 'handler' => $handler, + ]; + + return $this; + } + + protected function checkboxRender() + { + if ($this->options instanceof \Closure) { + $this->options( + $this->options->call($this->values(), $this->value(), $this) + ); + } + + $this->addCascadeScript(); + } + + protected function selectRender() + { + $this->addDefaultConfig([ + 'allowClear' => true, + 'placeholder' => [ + 'id' => '', + 'text' => $this->placeholder(), + ], + ]); + + $this->formatOptions(); + + $this->addVariables([ + 'options' => $this->options, + 'groups' => $this->groups, + 'configs' => $this->config, + 'cascadeScript' => $this->getCascadeScript(), + ]); + + $this->initSize(); + + $this->attribute('data-value', implode(',', Helper::array($this->value()))); + } +} diff --git a/src/Forms/FilesystemConfig.php b/src/Forms/FilesystemConfig.php new file mode 100644 index 0000000..ca56394 --- /dev/null +++ b/src/Forms/FilesystemConfig.php @@ -0,0 +1,80 @@ +radio('disk', '存储位置') + ->options(['public' => '本地', 'oss' => '阿里云', 'cosv5' => '腾讯云', 'qiniu' => '七牛云']) + ->default('public') + ->when('oss', function (Form $form) { + $form->text('oss_access_key', 'AccessKey'); + $form->text('oss_secret_key', 'SecretKey'); + $form->text('oss_bucket', 'Bucket'); + $form->text('oss_endpoint', 'Endpoint'); + }) + ->when('cosv5', function (Form $form) { + $form->text('cos_app_id', 'Appid'); + $form->text('cos_secret_id', 'SecretId'); + $form->text('cos_secret_key', 'SecretKey'); + $form->text('cos_region', 'Region'); + $form->text('cos_bucket', 'Bucket'); + $form->text('cos_cdn', 'CDN'); + }) + ->when('qiniu', function (Form $form) { + $form->text('qiniu_access_key', 'AccessKey'); + $form->text('qiniu_secret_key', 'SecretKey'); + $form->text('qiniu_bucket', 'Bucket'); + $form->text('qiniu_domain', '域名'); + }); + } + + /** + * The data of the form. + * + * @return array + */ + public function default(): array + { + return Model::get([ + 'disk', + 'oss_access_key', + 'oss_secret_key', + 'oss_endpoint', + 'oss_bucket', + + 'qiniu_access_key', + 'qiniu_secret_key', + 'qiniu_bucket', + 'qiniu_domain', + + + 'cos_app_id', + 'cos_secret_id', + 'cos_secret_key', + 'cos_region', + 'cos_bucket', + 'cos_cdn', + ]); + } +} diff --git a/src/Http/Controllers/DcatVueController.php b/src/Http/Controllers/DcatVueController.php new file mode 100644 index 0000000..79efe85 --- /dev/null +++ b/src/Http/Controllers/DcatVueController.php @@ -0,0 +1,87 @@ +title('Title') + ->description('Description') + ->body(Admin::view('weiwait.dcat-vue::index')); + } + + public function uploaded(Request $request) + { + WeiwaitUpload::clearUnusedFiles(); + + WeiwaitUpload::query() + ->insert(array_map(fn($item) => ['name' => $item, 'created_at' => now(), 'disk' => $request['disk']], + (array)$request['files'] + )); + } + + public function obsConfig(Request $request) + { + switch ($request['disk']) { + case 'oss': + return json_decode( + Storage::disk('oss')->getAdapter()->signatureConfig(prefix: config('admin.upload.directory.file'), expire: 3600), + true + ); + + case 'qiniu': + $url = (new Config())->getUpHost( + config('filesystems.disks.qiniu.access_key'), + config('filesystems.disks.qiniu.bucket') + ); + return [ + 'token' => Storage::disk('qiniu')->getAdapter()->getUploadToken($request['filename'], 3600), + 'host' => $url, + ]; + case 'cos': + case 'cosv5': + $url = parse_url(Storage::disk('cosv5')->url('')); + return [ + 'auth' => Storage::disk('cosv5')->getFederationTokenV3($request['filename']), + 'host' => $url['scheme'] . '://' . $url['host'] . '/' . $request['filename'], + ]; + default: + return [ + 'host' => route('dcat.admin.weiwait.file.upload'), + ]; + } + } + + public function upload(Request $request) + { + if ($file = $request->file('file')) { + $name = basename($request['key']); + $path = dirname($request['key']); + + Storage::disk()->putFileAs($path, $file, $name); + + return [ + 'key' => $request['key'] + ]; + } + + return response($request->all(), 400); + } + + public function filesystem(Content $content): Content + { + return $content + ->body(new FilesystemConfig()); + } +} diff --git a/src/Http/routes.php b/src/Http/routes.php new file mode 100644 index 0000000..93d4879 --- /dev/null +++ b/src/Http/routes.php @@ -0,0 +1,16 @@ +name('weiwait.file.obs-config'); +// 文件上传后回调 +Route::post('weiwait/file/uploaded', [Controllers\DcatVueController::class, 'uploaded']) + ->name('weiwait.file.uploaded'); +// 本地上传 +Route::post('weiwait/file/upload', [Controllers\DcatVueController::class, 'upload']) + ->name('weiwait.file.upload'); diff --git a/src/Models/FilesystemConfig.php b/src/Models/FilesystemConfig.php new file mode 100644 index 0000000..98b6273 --- /dev/null +++ b/src/Models/FilesystemConfig.php @@ -0,0 +1,64 @@ +where('key', $keys)->value('value'); + + Cache::put('setting.wechat.config.' . $keys, $value, now()->addDay()); + } + + return $value ?? $default; + } + + /** + * 设置配置项 + */ + public static function set(array $settings) + { + foreach ($settings as $key => $value) { + self::query()->updateOrCreate(['key' => $key], ['value' => $value ?? '']); + + Cache::put('setting.wechat.config.' . $key, $value, now()->addDay()); + } + } + + public static function adminFormHandle(Form $form, array $input): \Dcat\Admin\Http\JsonResponse + { + try { + self::set($input); + } catch (\Exception $exception) { + return $form + ->response() + ->error($exception->getMessage()); + } + + return $form + ->response() + ->success('修改成功'); + } +} diff --git a/src/Models/WeiwaitUpload.php b/src/Models/WeiwaitUpload.php new file mode 100644 index 0000000..47fc0f5 --- /dev/null +++ b/src/Models/WeiwaitUpload.php @@ -0,0 +1,23 @@ +where('created_at', '<', now()->subDay()) + ->get() + ->map(function (self $file) { + $file->delete(); + Storage::disk($file->disk)->delete($file->name); + }); + } +} diff --git a/src/Setting.php b/src/Setting.php new file mode 100644 index 0000000..f36bcbc --- /dev/null +++ b/src/Setting.php @@ -0,0 +1,45 @@ +switch('independent', '独立菜单') + ->default(FilesystemConfig::get(FilesystemConfig::INDEPENDENT, false)); + $this->text('menu_name', '菜单名称')->default(__('文件存储')); + } + + public function handle(array $input): \Dcat\Admin\Http\JsonResponse + { + FilesystemConfig::set(['independent' => (boolean)$input['independent']]); + + /** @var Menu $menu */ + $menu = config('admin.database.menu_model'); + + if ($input['independent']) { + $res = $menu::query()->updateOrCreate( + ['uri' => 'dcat-filesystem-config'], + [ + 'title' => $input['menu_name'], + 'show' => 1, + 'icon' => 'fa-envelope', + ] + ); + + FilesystemConfig::set(['independent_menu_id' => $res->getKey()]); + + return $this->response()->success('菜单已生成')->refresh(); + } else { + if ($menu = $menu::query()->find(FilesystemConfig::get('independent_menu_id'))) { + $menu->delete(); + } + + return $this->response()->success('菜单已删除')->refresh(); + } + } +} diff --git a/updates/create_filesystem_configs_table.php b/updates/create_filesystem_configs_table.php new file mode 100644 index 0000000..90c2079 --- /dev/null +++ b/updates/create_filesystem_configs_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('key', 50)->unique()->comment('配置key'); + $table->string('name')->default('')->comment('配置名称'); + $table->text('value')->comment('配置值'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('filesystem_configs'); + } +} diff --git a/updates/create_weiwait_uploads_table.php b/updates/create_weiwait_uploads_table.php new file mode 100644 index 0000000..ea775a3 --- /dev/null +++ b/updates/create_weiwait_uploads_table.php @@ -0,0 +1,35 @@ +increments('id'); + $table->string('name')->comment('文件'); + $table->string('disk')->nullable()->comment('磁盘'); + $table->timestamps(); + }); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('weiwait_uploads'); + } +} diff --git a/version.php b/version.php new file mode 100644 index 0000000..5b65a42 --- /dev/null +++ b/version.php @@ -0,0 +1,12 @@ + [ + 'Initialize extension.', + ], + '1.1.0' => [ + '增加文件直传表单组件', + 'create_weiwait_uploads_table.php', + 'create_filesystem_configs_table.php', + ] +];