From 5097ff4bf0a28e98cc4b8dda4e0d97189b9125c7 Mon Sep 17 00:00:00 2001 From: eoao Date: Tue, 26 Aug 2025 23:34:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=9B=BE=E7=89=87=E5=8A=A0=E8=BD=BD=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail-vue/src/init/init.js | 2 -- mail-vue/src/router/index.js | 30 ++++++++++++---- mail-vue/vite.config.js | 8 +++++ ...ccount-oNHhuyWU.js => account-DtcKrNwO.js} | 2 +- ...mail-DJotz4SZ.js => all-email-hZpif8BK.js} | 2 +- .../{day-BW7T5RG_.js => day-B6NtfdPE.js} | 2 +- ....min-C-kYcQPD.js => dayjs.min-BjOfKEma.js} | 2 +- .../assets/{db-g4gtlRdf.js => db-0ez5p68O.js} | 2 +- ...ox-BC0redCa.js => el-checkbox-DjYzjb3f.js} | 2 +- ...alog-CaeF0tY4.js => el-dialog-wajnArIT.js} | 2 +- ...kf7cCi.js => el-dropdown-item-DnH71j3m.js} | 2 +- ...empty-BvlQK5UB.js => el-empty-BRrnteWe.js} | 2 +- ...qafIo0e.js => el-image-viewer-BT4BRtUp.js} | 2 +- ...qvIaVQO.js => el-input-number-C8iF0RkI.js} | 2 +- ...g-C1CHa0Q0.js => el-input-tag-BGLP1t7V.js} | 2 +- ...AuX_c4BW.js => el-radio-group-B1EzGjdW.js} | 2 +- ...r-UsUjrt3r.js => el-scrollbar-DIXSy-7M.js} | 2 +- ...lect-bzu4tt0u.js => el-select-BvsCrs4t.js} | 2 +- ...lYuew7G.js => el-table-column-CnNqCN60.js} | 2 +- ...{el-tag-Bx7m9zwB.js => el-tag-CjAzCWMf.js} | 2 +- .../{email-BtoX8In9.js => email-BqixZxSP.js} | 2 +- .../{email-B8ELHxI0.js => email-CsVstZMr.js} | 2 +- ...conify-DCkxz_hX.js => iconify-CxZjXnJf.js} | 2 +- .../{index-Df9kcgT7.js => index-9tEZWj9_.js} | 2 +- .../{index-BHMvmcLh.js => index-B-FK5jOI.js} | 2 +- mail-worker/dist/assets/index-B5hVPBeq.js | 1 - .../{index-mPHfnfYT.js => index-BMdPKuCq.js} | 2 +- .../{index-DbkD_KH_.js => index-BNuSkFtR.js} | 2 +- .../{index-D2TRjCYc.js => index-BWeK8p2T.js} | 2 +- .../{index-bleeiSZ_.js => index-BZSmnu4J.js} | 2 +- .../{index-QGwCycAj.js => index-BaLnvoTT.js} | 2 +- .../{index-mWeHkudn.js => index-Bm-x70H-.js} | 2 +- .../{index-CPZaUP-e.js => index-BwwknpnX.js} | 2 +- .../{index-BpaAmbKJ.js => index-C0tLZtMD.js} | 2 +- .../{index-BoOHko_Y.js => index-CG5rsyL2.js} | 2 +- .../{index-zwxqoeO9.js => index-CQNiUQj6.js} | 2 +- .../{index-CKeGEg12.js => index-CcAtbSPY.js} | 2 +- .../{index-DvW7zc8X.js => index-CnE-eit-.js} | 2 +- .../{index-9WXMv97T.js => index-D0hfgu8l.js} | 2 +- .../{index-DbudBMlZ.js => index-D7KcZu8a.js} | 2 +- mail-worker/dist/assets/index-DAaoiK0T.js | 1 + .../{index-Z4co2PX5.js => index-DHJzkJHb.js} | 2 +- .../{index-DVz-XGR6.js => index-DpIeRhXZ.js} | 2 +- .../{index-C-CeCRdr.js => index-DpP8vbvu.js} | 36 +++++++++---------- .../{index-QA-dEUY0.js => index-DvzrPJbI.js} | 2 +- .../{index-BQPZOUCW.js => index-RyhddZNp.js} | 2 +- .../{index-CDAJLwwD.js => index-dQfRzLGT.js} | 2 +- .../{index-CLyGXQrq.js => index-v7AaNdhX.js} | 2 +- .../{index-BxDydAee.js => index-zULkQDu-.js} | 2 +- .../{login-BOozTb9X.js => login-D6mP2A2s.js} | 2 +- ...ition-C4-LB8VC.js => position-5hNBDW7r.js} | 2 +- .../{role-CRvB_y4r.js => role-DdyTsX8A.js} | 2 +- .../{star-CDDcKDKH.js => star-DxhhrwZA.js} | 2 +- ...ottle-CyPLJsF9.js => throttle-BCwYugI2.js} | 2 +- ...ils-CZDurPPv.js => time-utils-B0cDvgwY.js} | 2 +- .../{vnode-iQPJucW4.js => vnode-DPqF99Zc.js} | 2 +- mail-worker/dist/index.html | 2 +- 57 files changed, 102 insertions(+), 78 deletions(-) rename mail-worker/dist/assets/{account-oNHhuyWU.js => account-DtcKrNwO.js} (82%) rename mail-worker/dist/assets/{all-email-DJotz4SZ.js => all-email-hZpif8BK.js} (65%) rename mail-worker/dist/assets/{day-BW7T5RG_.js => day-B6NtfdPE.js} (98%) rename mail-worker/dist/assets/{dayjs.min-C-kYcQPD.js => dayjs.min-BjOfKEma.js} (99%) rename mail-worker/dist/assets/{db-g4gtlRdf.js => db-0ez5p68O.js} (99%) rename mail-worker/dist/assets/{el-checkbox-BC0redCa.js => el-checkbox-DjYzjb3f.js} (98%) rename mail-worker/dist/assets/{el-dialog-CaeF0tY4.js => el-dialog-wajnArIT.js} (96%) rename mail-worker/dist/assets/{el-dropdown-item-C7kf7cCi.js => el-dropdown-item-DnH71j3m.js} (97%) rename mail-worker/dist/assets/{el-empty-BvlQK5UB.js => el-empty-BRrnteWe.js} (97%) rename mail-worker/dist/assets/{el-image-viewer-XqafIo0e.js => el-image-viewer-BT4BRtUp.js} (97%) rename mail-worker/dist/assets/{el-input-number-DqvIaVQO.js => el-input-number-C8iF0RkI.js} (96%) rename mail-worker/dist/assets/{el-input-tag-C1CHa0Q0.js => el-input-tag-BGLP1t7V.js} (95%) rename mail-worker/dist/assets/{el-radio-group-AuX_c4BW.js => el-radio-group-B1EzGjdW.js} (97%) rename mail-worker/dist/assets/{el-scrollbar-UsUjrt3r.js => el-scrollbar-DIXSy-7M.js} (98%) rename mail-worker/dist/assets/{el-select-bzu4tt0u.js => el-select-BvsCrs4t.js} (98%) rename mail-worker/dist/assets/{el-table-column-ClYuew7G.js => el-table-column-CnNqCN60.js} (99%) rename mail-worker/dist/assets/{el-tag-Bx7m9zwB.js => el-tag-CjAzCWMf.js} (99%) rename mail-worker/dist/assets/{email-BtoX8In9.js => email-BqixZxSP.js} (77%) rename mail-worker/dist/assets/{email-B8ELHxI0.js => email-CsVstZMr.js} (84%) rename mail-worker/dist/assets/{iconify-DCkxz_hX.js => iconify-CxZjXnJf.js} (99%) rename mail-worker/dist/assets/{index-Df9kcgT7.js => index-9tEZWj9_.js} (93%) rename mail-worker/dist/assets/{index-BHMvmcLh.js => index-B-FK5jOI.js} (91%) delete mode 100644 mail-worker/dist/assets/index-B5hVPBeq.js rename mail-worker/dist/assets/{index-mPHfnfYT.js => index-BMdPKuCq.js} (97%) rename mail-worker/dist/assets/{index-DbkD_KH_.js => index-BNuSkFtR.js} (88%) rename mail-worker/dist/assets/{index-D2TRjCYc.js => index-BWeK8p2T.js} (99%) rename mail-worker/dist/assets/{index-bleeiSZ_.js => index-BZSmnu4J.js} (62%) rename mail-worker/dist/assets/{index-QGwCycAj.js => index-BaLnvoTT.js} (61%) rename mail-worker/dist/assets/{index-mWeHkudn.js => index-Bm-x70H-.js} (92%) rename mail-worker/dist/assets/{index-CPZaUP-e.js => index-BwwknpnX.js} (61%) rename mail-worker/dist/assets/{index-BpaAmbKJ.js => index-C0tLZtMD.js} (97%) rename mail-worker/dist/assets/{index-BoOHko_Y.js => index-CG5rsyL2.js} (96%) rename mail-worker/dist/assets/{index-zwxqoeO9.js => index-CQNiUQj6.js} (99%) rename mail-worker/dist/assets/{index-CKeGEg12.js => index-CcAtbSPY.js} (98%) rename mail-worker/dist/assets/{index-DvW7zc8X.js => index-CnE-eit-.js} (65%) rename mail-worker/dist/assets/{index-9WXMv97T.js => index-D0hfgu8l.js} (74%) rename mail-worker/dist/assets/{index-DbudBMlZ.js => index-D7KcZu8a.js} (95%) create mode 100644 mail-worker/dist/assets/index-DAaoiK0T.js rename mail-worker/dist/assets/{index-Z4co2PX5.js => index-DHJzkJHb.js} (96%) rename mail-worker/dist/assets/{index-DVz-XGR6.js => index-DpIeRhXZ.js} (97%) rename mail-worker/dist/assets/{index-C-CeCRdr.js => index-DpP8vbvu.js} (70%) rename mail-worker/dist/assets/{index-QA-dEUY0.js => index-DvzrPJbI.js} (96%) rename mail-worker/dist/assets/{index-BQPZOUCW.js => index-RyhddZNp.js} (98%) rename mail-worker/dist/assets/{index-CDAJLwwD.js => index-dQfRzLGT.js} (89%) rename mail-worker/dist/assets/{index-CLyGXQrq.js => index-v7AaNdhX.js} (95%) rename mail-worker/dist/assets/{index-BxDydAee.js => index-zULkQDu-.js} (79%) rename mail-worker/dist/assets/{login-BOozTb9X.js => login-D6mP2A2s.js} (70%) rename mail-worker/dist/assets/{position-C4-LB8VC.js => position-5hNBDW7r.js} (85%) rename mail-worker/dist/assets/{role-CRvB_y4r.js => role-DdyTsX8A.js} (88%) rename mail-worker/dist/assets/{star-CDDcKDKH.js => star-DxhhrwZA.js} (75%) rename mail-worker/dist/assets/{throttle-CyPLJsF9.js => throttle-BCwYugI2.js} (60%) rename mail-worker/dist/assets/{time-utils-CZDurPPv.js => time-utils-B0cDvgwY.js} (93%) rename mail-worker/dist/assets/{vnode-iQPJucW4.js => vnode-DPqF99Zc.js} (99%) diff --git a/mail-vue/src/init/init.js b/mail-vue/src/init/init.js index cbffe3a..3288d25 100644 --- a/mail-vue/src/init/init.js +++ b/mail-vue/src/init/init.js @@ -67,10 +67,8 @@ export async function init() { }; img.onerror = () => { - console.warn('背景图片加载失败:', img.src); removeLoading(); - }; } diff --git a/mail-vue/src/router/index.js b/mail-vue/src/router/index.js index 6317c91..dcde259 100644 --- a/mail-vue/src/router/index.js +++ b/mail-vue/src/router/index.js @@ -1,6 +1,8 @@ import {createRouter, createWebHistory} from 'vue-router' import NProgress from 'nprogress'; import {useUiStore} from "@/store/ui.js"; +import {useSettingStore} from "@/store/setting.js"; +import {cvtR2Url} from "@/utils/convert.js"; const routes = [ { @@ -83,7 +85,7 @@ NProgress.configure({ let timer -router.beforeEach(async (to, from, next) => { +router.beforeEach((to, from, next) => { if (timer) { clearTimeout(timer) @@ -97,14 +99,12 @@ router.beforeEach(async (to, from, next) => { const token = localStorage.getItem('token') if (!token && to.name !== 'login') { - - return next({ - name: 'login', - }) + return next({name: 'login'}) } if (!token && to.name === 'login') { - return next() + loadBackground(next) + return } if (token && to.name === 'login') { @@ -115,6 +115,24 @@ router.beforeEach(async (to, from, next) => { }) +function loadBackground(next) { + console.log(131231) + const settingStore = useSettingStore(); + const src = cvtR2Url(settingStore.settings.background); + + const img = new Image(); + img.src = src; + + img.onload = () => { + next() + }; + + img.onerror = () => { + console.warn("背景图片加载失败:", img.src); + next() + }; +} + router.afterEach((to) => { clearTimeout(timer) diff --git a/mail-vue/vite.config.js b/mail-vue/vite.config.js index dea4a52..e150395 100644 --- a/mail-vue/vite.config.js +++ b/mail-vue/vite.config.js @@ -32,6 +32,14 @@ export default defineConfig(({mode}) => { outDir: '../mail-worker/dist', emptyOutDir: true, assetsInclude: ['**/*.json'], + rollupOptions: { + output: { + // 保证 chunk 文件名可预测 + chunkFileNames: 'assets/[name]-[hash].js', + entryFileNames: 'assets/[name]-[hash].js', + assetFileNames: 'assets/[name]-[hash].[ext]' + } + } } } }) diff --git a/mail-worker/dist/assets/account-oNHhuyWU.js b/mail-worker/dist/assets/account-DtcKrNwO.js similarity index 82% rename from mail-worker/dist/assets/account-oNHhuyWU.js rename to mail-worker/dist/assets/account-DtcKrNwO.js index b97378e..eddae74 100644 --- a/mail-worker/dist/assets/account-oNHhuyWU.js +++ b/mail-worker/dist/assets/account-DtcKrNwO.js @@ -1 +1 @@ -import{aB as c}from"./index-C-CeCRdr.js";function e(t,a){return c.get("/account/list",{params:{accountId:t,size:a}})}function u(t,a){return c.post("/account/add",{email:t,token:a})}function o(t,a){return c.put("/account/setName",{name:a,accountId:t})}function r(t){return c.delete("/account/delete",{params:{accountId:t}})}export{e as a,r as b,u as c,o as d}; +import{aB as c}from"./index-DpP8vbvu.js";function e(t,a){return c.get("/account/list",{params:{accountId:t,size:a}})}function u(t,a){return c.post("/account/add",{email:t,token:a})}function o(t,a){return c.put("/account/setName",{name:a,accountId:t})}function r(t){return c.delete("/account/delete",{params:{accountId:t}})}export{e as a,r as b,u as c,o as d}; diff --git a/mail-worker/dist/assets/all-email-DJotz4SZ.js b/mail-worker/dist/assets/all-email-hZpif8BK.js similarity index 65% rename from mail-worker/dist/assets/all-email-DJotz4SZ.js rename to mail-worker/dist/assets/all-email-hZpif8BK.js index 15657d8..c02b7da 100644 --- a/mail-worker/dist/assets/all-email-DJotz4SZ.js +++ b/mail-worker/dist/assets/all-email-hZpif8BK.js @@ -1 +1 @@ -import{aB as a}from"./index-C-CeCRdr.js";function t(l){return a.get("/allEmail/list",{params:{...l}})}function i(l){return a.delete("/allEmail/delete?emailIds="+l)}export{i as a,t as b}; +import{aB as a}from"./index-DpP8vbvu.js";function t(l){return a.get("/allEmail/list",{params:{...l}})}function i(l){return a.delete("/allEmail/delete?emailIds="+l)}export{i as a,t as b}; diff --git a/mail-worker/dist/assets/day-BW7T5RG_.js b/mail-worker/dist/assets/day-B6NtfdPE.js similarity index 98% rename from mail-worker/dist/assets/day-BW7T5RG_.js rename to mail-worker/dist/assets/day-B6NtfdPE.js index d421918..01c8a47 100644 --- a/mail-worker/dist/assets/day-BW7T5RG_.js +++ b/mail-worker/dist/assets/day-B6NtfdPE.js @@ -1 +1 @@ -import{r as I,d as M}from"./dayjs.min-C-kYcQPD.js";import{aJ as A,af as N}from"./index-C-CeCRdr.js";var H={exports:{}},j=H.exports,Z;function F(){return Z||(Z=1,function(d,n){(function(a,f){d.exports=f(I())})(j,function(a){function f(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var _=f(a),Y={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,$){return $==="W"?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,$){var r=100*e+$;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return _.default.locale(Y,null,!0),Y})}(H)),H.exports}F();var T={exports:{}},k=T.exports,q;function E(){return q||(q=1,function(d,n){(function(a,f){d.exports=f()})(k,function(){var a="minute",f=/[+-]\d\d(?::?\d\d)?/g,_=/([+-]|\d\d)/g;return function(Y,e,$){var r=e.prototype;$.utc=function(t){var i={date:t,utc:!0,args:arguments};return new e(i)},r.utc=function(t){var i=$(this.toDate(),{locale:this.$L,utc:!0});return t?i.add(this.utcOffset(),a):i},r.local=function(){return $(this.toDate(),{locale:this.$L,utc:!1})};var S=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),S.call(this,t)};var x=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else x.call(this)};var O=r.utcOffset;r.utcOffset=function(t,i){var m=this.$utils().u;if(m(t))return this.$u?0:m(this.$offset)?O.call(this):this.$offset;if(typeof t=="string"&&(t=function(h){h===void 0&&(h="");var g=h.match(f);if(!g)return null;var D=(""+g[0]).match(_)||["-",0,0],y=D[0],p=60*+D[1]+ +D[2];return p===0?0:y==="+"?p:-p}(t),t===null))return this;var l=Math.abs(t)<=16?60*t:t,u=this;if(i)return u.$offset=l,u.$u=t===0,u;if(t!==0){var v=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(u=this.local().add(l+v,a)).$offset=l,u.$x.$localOffset=v}else u=this.utc();return u};var o=r.format;r.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return o.call(this,i)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var c=r.toDate;r.toDate=function(t){return t==="s"&&this.$offset?$(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var s=r.diff;r.diff=function(t,i,m){if(t&&this.$u===t.$u)return s.call(this,t,i,m);var l=this.local(),u=$(t).local();return s.call(l,u,i,m)}}})}(T)),T.exports}var R=E();const J=A(R);var L={exports:{}},W=L.exports,b;function P(){return b||(b=1,function(d,n){(function(a,f){d.exports=f()})(W,function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},f={};return function(_,Y,e){var $,r=function(o,c,s){s===void 0&&(s={});var t=new Date(o),i=function(m,l){l===void 0&&(l={});var u=l.timeZoneName||"short",v=m+"|"+u,h=f[v];return h||(h=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:m,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:u}),f[v]=h),h}(c,s);return i.formatToParts(t)},S=function(o,c){for(var s=r(o,c),t=[],i=0;i=0&&(t[v]=parseInt(u,10))}var h=t[3],g=h===24?0:h,D=t[0]+"-"+t[1]+"-"+t[2]+" "+g+":"+t[4]+":"+t[5]+":000",y=+o;return(e.utc(D).valueOf()-(y-=y%1e3))/6e4},x=Y.prototype;x.tz=function(o,c){o===void 0&&(o=$);var s,t=this.utcOffset(),i=this.toDate(),m=i.toLocaleString("en-US",{timeZone:o}),l=Math.round((i-new Date(m))/1e3/60),u=15*-Math.round(i.getTimezoneOffset()/15)-l;if(!Number(u))s=this.utcOffset(0,c);else if(s=e(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),c){var v=s.utcOffset();s=s.add(t-v,"minute")}return s.$x.$timezone=o,s},x.offsetName=function(o){var c=this.$x.$timezone||e.tz.guess(),s=r(this.valueOf(),c,{timeZoneName:o}).find(function(t){return t.type.toLowerCase()==="timezonename"});return s&&s.value};var O=x.startOf;x.startOf=function(o,c){if(!this.$x||!this.$x.$timezone)return O.call(this,o,c);var s=e(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return O.call(s,o,c).tz(this.$x.$timezone,!0)},e.tz=function(o,c,s){var t=s&&c,i=s||c||$,m=S(+e(),i);if(typeof o!="string")return e(o).tz(i);var l=function(g,D,y){var p=g-60*D*1e3,z=S(p,y);if(D===z)return[p,D];var C=S(p-=60*(z-D)*1e3,y);return z===C?[p,z]:[g-60*Math.min(z,C)*1e3,Math.max(z,C)]}(e.utc(o,t).valueOf(),m,i),u=l[0],v=l[1],h=e(u).utcOffset(v);return h.$x.$timezone=i,h},e.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},e.tz.setDefault=function(o){$=o}}})}(L)),L.exports}var B=P();const G=A(B),w=N();M.extend(J);M.extend(G);M.locale(w.lang==="en"?"en":"zh-cn");const U=Intl.DateTimeFormat().resolvedOptions().timeZone;function V(d){const n=M.utc(d).tz(U),a=M(),f=a.diff(n,"second"),_=a.diff(n,"minute"),Y=a.diff(n,"hour"),e=a.isSame(n,"day");return w.lang==="en"?e?f<60?"Just now":_<60?`${_} min ago`:Y<2?`${Y} hour${Y>1?"s":""} ago`:n.format("hh:mm A"):a.subtract(1,"day").isSame(n,"day")||n.year()===a.year()?n.format("MMM D"):n.format("YYYY/MM/DD"):e?f<60?"几秒前":_<60?`${_}分钟前`:Y>=1&&Y<2?"1小时前":n.format("HH:mm"):a.subtract(1,"day").isSame(n,"day")?`昨天 ${n.format("HH:mm")}`:a.subtract(2,"day").isSame(n,"day")?`前天 ${n.format("HH:mm")}`:n.year()===a.year()?n.format("M月D日"):n.format("YYYY/M/D")}function X(d){const n=M.utc(d).tz(U),f=M().year()===n.year();return w.lang==="en"?f?n.format("ddd, MMM D, h:mm A"):n.format("ddd, MMM D, YYYY, h:mm A"):n.format("YYYY年M月D日 ddd AH:mm")}function tt(d){return M.utc(d).tz(U)}function et(d){M.locale(d)}export{V as a,X as f,et as s,tt as t}; +import{r as I,d as M}from"./dayjs.min-BjOfKEma.js";import{aJ as A,af as N}from"./index-DpP8vbvu.js";var H={exports:{}},j=H.exports,Z;function F(){return Z||(Z=1,function(d,n){(function(a,f){d.exports=f(I())})(j,function(a){function f(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var _=f(a),Y={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,$){return $==="W"?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,$){var r=100*e+$;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return _.default.locale(Y,null,!0),Y})}(H)),H.exports}F();var T={exports:{}},k=T.exports,q;function E(){return q||(q=1,function(d,n){(function(a,f){d.exports=f()})(k,function(){var a="minute",f=/[+-]\d\d(?::?\d\d)?/g,_=/([+-]|\d\d)/g;return function(Y,e,$){var r=e.prototype;$.utc=function(t){var i={date:t,utc:!0,args:arguments};return new e(i)},r.utc=function(t){var i=$(this.toDate(),{locale:this.$L,utc:!0});return t?i.add(this.utcOffset(),a):i},r.local=function(){return $(this.toDate(),{locale:this.$L,utc:!1})};var S=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),S.call(this,t)};var x=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else x.call(this)};var O=r.utcOffset;r.utcOffset=function(t,i){var m=this.$utils().u;if(m(t))return this.$u?0:m(this.$offset)?O.call(this):this.$offset;if(typeof t=="string"&&(t=function(h){h===void 0&&(h="");var g=h.match(f);if(!g)return null;var D=(""+g[0]).match(_)||["-",0,0],y=D[0],p=60*+D[1]+ +D[2];return p===0?0:y==="+"?p:-p}(t),t===null))return this;var l=Math.abs(t)<=16?60*t:t,u=this;if(i)return u.$offset=l,u.$u=t===0,u;if(t!==0){var v=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(u=this.local().add(l+v,a)).$offset=l,u.$x.$localOffset=v}else u=this.utc();return u};var o=r.format;r.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return o.call(this,i)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var c=r.toDate;r.toDate=function(t){return t==="s"&&this.$offset?$(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var s=r.diff;r.diff=function(t,i,m){if(t&&this.$u===t.$u)return s.call(this,t,i,m);var l=this.local(),u=$(t).local();return s.call(l,u,i,m)}}})}(T)),T.exports}var R=E();const J=A(R);var L={exports:{}},W=L.exports,b;function P(){return b||(b=1,function(d,n){(function(a,f){d.exports=f()})(W,function(){var a={year:0,month:1,day:2,hour:3,minute:4,second:5},f={};return function(_,Y,e){var $,r=function(o,c,s){s===void 0&&(s={});var t=new Date(o),i=function(m,l){l===void 0&&(l={});var u=l.timeZoneName||"short",v=m+"|"+u,h=f[v];return h||(h=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:m,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:u}),f[v]=h),h}(c,s);return i.formatToParts(t)},S=function(o,c){for(var s=r(o,c),t=[],i=0;i=0&&(t[v]=parseInt(u,10))}var h=t[3],g=h===24?0:h,D=t[0]+"-"+t[1]+"-"+t[2]+" "+g+":"+t[4]+":"+t[5]+":000",y=+o;return(e.utc(D).valueOf()-(y-=y%1e3))/6e4},x=Y.prototype;x.tz=function(o,c){o===void 0&&(o=$);var s,t=this.utcOffset(),i=this.toDate(),m=i.toLocaleString("en-US",{timeZone:o}),l=Math.round((i-new Date(m))/1e3/60),u=15*-Math.round(i.getTimezoneOffset()/15)-l;if(!Number(u))s=this.utcOffset(0,c);else if(s=e(m,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),c){var v=s.utcOffset();s=s.add(t-v,"minute")}return s.$x.$timezone=o,s},x.offsetName=function(o){var c=this.$x.$timezone||e.tz.guess(),s=r(this.valueOf(),c,{timeZoneName:o}).find(function(t){return t.type.toLowerCase()==="timezonename"});return s&&s.value};var O=x.startOf;x.startOf=function(o,c){if(!this.$x||!this.$x.$timezone)return O.call(this,o,c);var s=e(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return O.call(s,o,c).tz(this.$x.$timezone,!0)},e.tz=function(o,c,s){var t=s&&c,i=s||c||$,m=S(+e(),i);if(typeof o!="string")return e(o).tz(i);var l=function(g,D,y){var p=g-60*D*1e3,z=S(p,y);if(D===z)return[p,D];var C=S(p-=60*(z-D)*1e3,y);return z===C?[p,z]:[g-60*Math.min(z,C)*1e3,Math.max(z,C)]}(e.utc(o,t).valueOf(),m,i),u=l[0],v=l[1],h=e(u).utcOffset(v);return h.$x.$timezone=i,h},e.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},e.tz.setDefault=function(o){$=o}}})}(L)),L.exports}var B=P();const G=A(B),w=N();M.extend(J);M.extend(G);M.locale(w.lang==="en"?"en":"zh-cn");const U=Intl.DateTimeFormat().resolvedOptions().timeZone;function V(d){const n=M.utc(d).tz(U),a=M(),f=a.diff(n,"second"),_=a.diff(n,"minute"),Y=a.diff(n,"hour"),e=a.isSame(n,"day");return w.lang==="en"?e?f<60?"Just now":_<60?`${_} min ago`:Y<2?`${Y} hour${Y>1?"s":""} ago`:n.format("hh:mm A"):a.subtract(1,"day").isSame(n,"day")||n.year()===a.year()?n.format("MMM D"):n.format("YYYY/MM/DD"):e?f<60?"几秒前":_<60?`${_}分钟前`:Y>=1&&Y<2?"1小时前":n.format("HH:mm"):a.subtract(1,"day").isSame(n,"day")?`昨天 ${n.format("HH:mm")}`:a.subtract(2,"day").isSame(n,"day")?`前天 ${n.format("HH:mm")}`:n.year()===a.year()?n.format("M月D日"):n.format("YYYY/M/D")}function X(d){const n=M.utc(d).tz(U),f=M().year()===n.year();return w.lang==="en"?f?n.format("ddd, MMM D, h:mm A"):n.format("ddd, MMM D, YYYY, h:mm A"):n.format("YYYY年M月D日 ddd AH:mm")}function tt(d){return M.utc(d).tz(U)}function et(d){M.locale(d)}export{V as a,X as f,et as s,tt as t}; diff --git a/mail-worker/dist/assets/dayjs.min-C-kYcQPD.js b/mail-worker/dist/assets/dayjs.min-BjOfKEma.js similarity index 99% rename from mail-worker/dist/assets/dayjs.min-C-kYcQPD.js rename to mail-worker/dist/assets/dayjs.min-BjOfKEma.js index c66c73b..66759d2 100644 --- a/mail-worker/dist/assets/dayjs.min-C-kYcQPD.js +++ b/mail-worker/dist/assets/dayjs.min-BjOfKEma.js @@ -1 +1 @@ -import{aJ as G}from"./index-C-CeCRdr.js";var W={exports:{}},K=W.exports,E;function X(){return E||(E=1,function(V,et){(function(A,x){V.exports=x()})(K,function(){var A=1e3,x=6e4,N=36e5,I="millisecond",S="second",w="minute",_="hour",M="day",H="week",m="month",U="quarter",y="year",O="date",Z="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},F=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},R={s:F,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+F(n,2,"0")+":"+F(e,2,"0")},m:function s(r,t){if(r.date()1)return s(u[0])}else{var o=r.name;D[o]=r,e=o}return!n&&e&&(k=e),e||!n&&k},f=function(s,r){if(J(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new C(t)},a=R;a.l=T,a.i=J,a.w=function(s,r){return f(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var C=function(){function s(t){this.$L=T(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[q]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(B);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==Z},r.isSame=function(t,n){var e=f(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return f(t)=r?s:""+Array(r+1-n.length).join(t)+s},R={s:F,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+F(n,2,"0")+":"+F(e,2,"0")},m:function s(r,t){if(r.date()1)return s(u[0])}else{var o=r.name;D[o]=r,e=o}return!n&&e&&(k=e),e||!n&&k},f=function(s,r){if(J(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new C(t)},a=R;a.l=T,a.i=J,a.w=function(s,r){return f(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var C=function(){function s(t){this.$L=T(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[q]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(B);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==Z},r.isSame=function(t,n){var e=f(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return f(t)({refreshList:0,setDraft:{}})});var Fn={exports:{}},fi=Fn.exports,vr;function hi(){return vr||(vr=1,function(wr,pi){(function(Nn,C){wr.exports=C()})(fi,function(){var Nn=function(e,n){return(Nn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(e,n)},C=function(){return(C=Object.assign||function(e){for(var n,t=1,r=arguments.length;t"u"||$.Promise||($.Promise=Promise);var De=Object.getPrototypeOf,_r={}.hasOwnProperty;function J(e,n){return _r.call(e,n)}function Te(e,n){typeof n=="function"&&(n=n(De(e))),(typeof Reflect>"u"?z:Reflect.ownKeys)(n).forEach(function(t){fe(e,t,n[t])})}var jt=Object.defineProperty;function fe(e,n,t,r){jt(e,n,Z(t&&J(t,"get")&&typeof t.get=="function"?{get:t.get,set:t.set,configurable:!0}:{value:t,configurable:!0,writable:!0},r))}function qe(e){return{from:function(n){return e.prototype=Object.create(n.prototype),fe(e.prototype,"constructor",e),{extend:Te.bind(null,e.prototype)}}}}var xr=Object.getOwnPropertyDescriptor,kr=[].slice;function cn(e,n,t){return kr.call(e,n,t)}function At(e,n){return n(e)}function We(e){if(!e)throw new Error("Assertion Failed")}function Ct(e){$.setImmediate?setImmediate(e):setTimeout(e,0)}function ue(e,n){if(typeof n=="string"&&J(e,n))return e[n];if(!n)return e;if(typeof n!="string"){for(var t=[],r=0,i=n.length;r({refreshList:0,setDraft:{}})});var Fn={exports:{}},fi=Fn.exports,vr;function hi(){return vr||(vr=1,function(wr,pi){(function(Nn,C){wr.exports=C()})(fi,function(){var Nn=function(e,n){return(Nn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(e,n)},C=function(){return(C=Object.assign||function(e){for(var n,t=1,r=arguments.length;t"u"||$.Promise||($.Promise=Promise);var De=Object.getPrototypeOf,_r={}.hasOwnProperty;function J(e,n){return _r.call(e,n)}function Te(e,n){typeof n=="function"&&(n=n(De(e))),(typeof Reflect>"u"?z:Reflect.ownKeys)(n).forEach(function(t){fe(e,t,n[t])})}var jt=Object.defineProperty;function fe(e,n,t,r){jt(e,n,Z(t&&J(t,"get")&&typeof t.get=="function"?{get:t.get,set:t.set,configurable:!0}:{value:t,configurable:!0,writable:!0},r))}function qe(e){return{from:function(n){return e.prototype=Object.create(n.prototype),fe(e.prototype,"constructor",e),{extend:Te.bind(null,e.prototype)}}}}var xr=Object.getOwnPropertyDescriptor,kr=[].slice;function cn(e,n,t){return kr.call(e,n,t)}function At(e,n){return n(e)}function We(e){if(!e)throw new Error("Assertion Failed")}function Ct(e){$.setImmediate?setImmediate(e):setTimeout(e,0)}function ue(e,n){if(typeof n=="string"&&J(e,n))return e[n];if(!n)return e;if(typeof n!="string"){for(var t=[],r=0,i=n.length;r"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,De(e),e];var n=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[n,De(n),e]}(),Ge=xe[0],re=xe[1],xe=xe[2],re=re&&re.then,ke=Ge&&Ge.constructor,Yn=!!xe,Xe=function(e,n){He.push([e,n]),hn&&(queueMicrotask(Ir),hn=!1)},$n=!0,hn=!0,Oe=[],dn=[],Qn=$e,he={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:F,pgp:!1,env:{},finalize:F},j=he,He=[],Pe=0,pn=[];function E(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var n=this._PSD=j;if(typeof e!="function"){if(e!==Qe)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&Xn(this,this._value))}this._state=null,this._value=null,++n.ref,function t(r,i){try{i(function(o){if(r._state===null){if(o===r)throw new TypeError("A promise cannot be resolved with itself.");var a=r._lib&&Fe();o&&typeof o.then=="function"?t(r,function(u,c){o instanceof E?o._then(u,c):o.then(u,c)}):(r._state=!0,r._value=o,Nt(r)),a&&Me()}},Xn.bind(null,r))}catch(o){Xn(r,o)}}(this,e)}var Gn={get:function(){var e=j,n=gn;function t(r,i){var o=this,a=!e.global&&(e!==j||n!==gn),u=a&&!pe(),c=new E(function(f,p){Hn(o,new Mt(Ut(r,e,a,u),Ut(i,e,a,u),f,p,e))});return this._consoleTask&&(c._consoleTask=this._consoleTask),c}return t.prototype=Qe,t},set:function(e){fe(this,"then",e&&e.prototype===Qe?Gn:{get:function(){return e},set:Gn.set})}};function Mt(e,n,t,r,i){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof n=="function"?n:null,this.resolve=t,this.reject=r,this.psd=i}function Xn(e,n){var t,r;dn.push(n),e._state===null&&(t=e._lib&&Fe(),n=Qn(n),e._state=!1,e._value=n,r=e,Oe.some(function(i){return i._value===r._value})||Oe.push(r),Nt(e),t&&Me())}function Nt(e){var n=e._listeners;e._listeners=[];for(var t=0,r=n.length;t.",Vt="String expected.",Le=[],wn="__dbnames",et="readonly",nt="readwrite";function Se(e,n){return e?n?function(){return e.apply(this,arguments)&&n.apply(this,arguments)}:e:n}var zt={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function _n(e){return typeof e!="string"||/\./.test(e)?function(n){return n}:function(n){return n[e]===void 0&&e in n&&delete(n=be(n))[e],n}}function Wt(){throw A.Type()}function B(e,n){try{var t=Yt(e),r=Yt(n);if(t!==r)return t==="Array"?1:r==="Array"?-1:t==="binary"?1:r==="binary"?-1:t==="string"?1:r==="string"?-1:t==="Date"?1:r!=="Date"?NaN:-1;switch(t){case"number":case"Date":case"string":return nb+w&&m(b+p)})})}var g=Ue(t)&&t.limit===1/0&&(typeof e!="function"||e===it)&&{index:t.index,range:t.range};return m(0).then(function(){if(0=v})).length!==0?(p.forEach(function(m){y.push(function(){var g=h,b=m._cfg.dbschema;jn(s,g,d),jn(s,b,d),h=s._dbSchema=b;var w=lt(g,b);w.add.forEach(function(K){ft(d,K[0],K[1].primKey,K[1].indexes)}),w.change.forEach(function(K){if(K.recreate)throw new A.Upgrade("Not yet support for changing primary key");var O=d.objectStore(K.name);K.add.forEach(function(S){return En(O,S)}),K.change.forEach(function(S){O.deleteIndex(S.name),En(O,S)}),K.del.forEach(function(S){return O.deleteIndex(S)})});var _=m._cfg.contentUpgrade;if(_&&m._cfg.version>v){Pn(s,d),l._memoizedTables={};var P=Dt(b);w.del.forEach(function(K){P[K]=g[K]}),ct(s,[s.Transaction.prototype]),Kn(s,[s.Transaction.prototype],z(P),P),l.schema=P;var x,k=Vn(_);return k&&Ne(),w=E.follow(function(){var K;(x=_(l))&&k&&(K=pe.bind(null,null),x.then(K,K))}),x&&typeof x.then=="function"?E.resolve(x):w.then(function(){return x})}}),y.push(function(g){var b,w,_=m._cfg.dbschema;b=_,w=g,[].slice.call(w.db.objectStoreNames).forEach(function(P){return b[P]==null&&w.db.deleteObjectStore(P)}),ct(s,[s.Transaction.prototype]),Kn(s,[s.Transaction.prototype],s._storeNames,s._dbSchema),l.schema=s._dbSchema}),y.push(function(g){s.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(s.idbdb.version/10)===m._cfg.version?(s.idbdb.deleteObjectStore("$meta"),delete s._dbSchema.$meta,s._storeNames=s._storeNames.filter(function(b){return b!=="$meta"})):g.objectStore("$meta").put(m._cfg.version,"version"))})}),function m(){return y.length?E.resolve(y.shift()(l.idbtrans)).then(m):E.resolve()}().then(function(){tr(h,d)})):E.resolve();var s,v,l,d,y,h}).catch(a)):(z(i).forEach(function(p){ft(t,p,i[p].primKey,i[p].indexes)}),Pn(e,t),void E.follow(function(){return e.on.populate.fire(o)}).catch(a));var c,f})}function Qr(e,n){tr(e._dbSchema,n),n.db.version%10!=0||n.objectStoreNames.contains("$meta")||n.db.createObjectStore("$meta").add(Math.ceil(n.db.version/10-1),"version");var t=Sn(0,e.idbdb,n);jn(e,e._dbSchema,n);for(var r=0,i=lt(t,e._dbSchema).change;rMath.pow(2,62)?0:h.oldVersion,s=h<1,e.idbdb=y.result,o&&Qr(e,p),$r(e,h/10,p,l))},l),y.onsuccess=N(function(){p=null;var h,m,g,b,w,_=e.idbdb=y.result,P=cn(_.objectStoreNames);if(0"u"?E.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(v){function l(){return indexedDB.databases().finally(v)}c=setInterval(l,100),l()}).finally(function(){return clearInterval(c)}):Promise.resolve()).then(u)]).then(function(){return a(),n.onReadyBeingFired=[],E.resolve(pt(function(){return e.on.ready.fire(e.vip)})).then(function v(){if(0n.limit?v.length=n.limit:e.length===n.limit&&v.length=m.limit&&(!m.values||_.req.values)&&ni(_.req.query.range,m.query.range)}),!1,g,b];case"count":return w=b.find(function(_){return dr(_.req.query.range,m.query.range)}),[w,!!w,g,b]}}(n,t,"query",o),p=f[0],s=f[1],v=f[2],l=f[3];return p&&s?p.obsSet=o.obsSet:(s=r.query(o).then(function(d){var y=d.result;if(p&&(p.res=y),a){for(var h=0,m=y.length;hgr.user.email,()=>br());export{Et as d,vi as u}; diff --git a/mail-worker/dist/assets/el-checkbox-BC0redCa.js b/mail-worker/dist/assets/el-checkbox-DjYzjb3f.js similarity index 98% rename from mail-worker/dist/assets/el-checkbox-BC0redCa.js rename to mail-worker/dist/assets/el-checkbox-DjYzjb3f.js index b814e6e..4027f13 100644 --- a/mail-worker/dist/assets/el-checkbox-BC0redCa.js +++ b/mail-worker/dist/assets/el-checkbox-DjYzjb3f.js @@ -1 +1 @@ -import{M as W,aQ as J,aU as D,aS as ee,y as F,k as f,C as P,H as ae,F as le,$ as ne,z as T,S as I,a0 as A,U as ge,au as X,_ as R,a as E,j as te,u as j,m as oe,o as x,p as ue,f as Y,c as S,e as M,n as C,g as n,N,a7 as $,bb as z,c6 as G,r as K,P as Ce,h as se,t as ie,a6 as re,i as xe,b as Ve,d as ye,G as Se,bS as Le,w as Be,l as ce}from"./index-C-CeCRdr.js";import{u as de,d as be,p as Ee}from"./index-mPHfnfYT.js";import{U,C as O}from"./event-BB_Ol6Sd.js";import{d as _e,b as H,a as Z,c as ve,u as w}from"./index-DbudBMlZ.js";import{i as Ie}from"./el-tag-Bx7m9zwB.js";const me={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:ee,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...de(["ariaControls"])},fe={[U]:e=>W(e)||J(e)||D(e),change:e=>W(e)||J(e)||D(e)},_=Symbol("checkboxGroupContextKey"),Fe=({model:e,isChecked:c})=>{const i=F(_,void 0),l=f(()=>{var r,d;const t=(r=i?.max)==null?void 0:r.value,v=(d=i?.min)==null?void 0:d.value;return!P(t)&&e.value.length>=t&&!c.value||!P(v)&&e.value.length<=v&&c.value});return{isDisabled:_e(f(()=>i?.disabled.value||l.value)),isLimitDisabled:l}},Ne=(e,{model:c,isLimitExceeded:i,hasOwnLabel:l,isDisabled:b,isLabeledByFormItem:r})=>{const d=F(_,void 0),{formItem:t}=H(),{emit:v}=ae();function s(a){var h,k,u,p;return[!0,e.trueValue,e.trueLabel].includes(a)?(k=(h=e.trueValue)!=null?h:e.trueLabel)!=null?k:!0:(p=(u=e.falseValue)!=null?u:e.falseLabel)!=null?p:!1}function o(a,h){v(O,s(a),h)}function m(a){if(i.value)return;const h=a.target;v(O,s(h.checked),a)}async function V(a){i.value||!l.value&&!b.value&&r.value&&(a.composedPath().some(u=>u.tagName==="LABEL")||(c.value=s([!1,e.falseValue,e.falseLabel].includes(c.value)),await ne(),o(c.value,a)))}const L=f(()=>d?.validateEvent||e.validateEvent);return le(()=>e.modelValue,()=>{L.value&&t?.validate("change").catch(a=>be())}),{handleChange:m,onClickRoot:V}},$e=e=>{const c=T(!1),{emit:i}=ae(),l=F(_,void 0),b=f(()=>P(l)===!1),r=T(!1),d=f({get(){var t,v;return b.value?(t=l?.modelValue)==null?void 0:t.value:(v=e.modelValue)!=null?v:c.value},set(t){var v,s;b.value&&I(t)?(r.value=((v=l?.max)==null?void 0:v.value)!==void 0&&t.length>l?.max.value&&t.length>d.value.length,r.value===!1&&((s=l?.changeEvent)==null||s.call(l,t))):(i(U,t),c.value=t)}});return{model:d,isGroup:b,isLimitExceeded:r}},ze=(e,c,{model:i})=>{const l=F(_,void 0),b=T(!1),r=f(()=>A(e.value)?e.label:e.value),d=f(()=>{const o=i.value;return D(o)?o:I(o)?ge(r.value)?o.map(X).some(m=>Ie(m,r.value)):o.map(X).includes(r.value):o!=null?o===e.trueValue||o===e.trueLabel:!!o}),t=Z(f(()=>{var o;return(o=l?.size)==null?void 0:o.value}),{prop:!0}),v=Z(f(()=>{var o;return(o=l?.size)==null?void 0:o.value})),s=f(()=>!!c.default||!A(r.value));return{checkboxButtonSize:t,isChecked:d,isFocused:b,checkboxSize:v,hasOwnLabel:s,actualValue:r}},he=(e,c)=>{const{formItem:i}=H(),{model:l,isGroup:b,isLimitExceeded:r}=$e(e),{isFocused:d,isChecked:t,checkboxButtonSize:v,checkboxSize:s,hasOwnLabel:o,actualValue:m}=ze(e,c,{model:l}),{isDisabled:V}=Fe({model:l,isChecked:t}),{inputId:L,isLabeledByFormItem:a}=ve(e,{formItemContext:i,disableIdGeneration:o,disableIdManagement:b}),{handleChange:h,onClickRoot:k}=Ne(e,{model:l,isLimitExceeded:r,hasOwnLabel:o,isDisabled:V,isLabeledByFormItem:a});return(()=>{function p(){var y,g;I(l.value)&&!l.value.includes(m.value)?l.value.push(m.value):l.value=(g=(y=e.trueValue)!=null?y:e.trueLabel)!=null?g:!0}e.checked&&p()})(),w({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},f(()=>b.value&&A(e.value))),w({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},f(()=>!!e.trueLabel)),w({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},f(()=>!!e.falseLabel)),{inputId:L,isLabeledByFormItem:a,isChecked:t,isDisabled:V,isFocused:d,checkboxButtonSize:v,checkboxSize:s,hasOwnLabel:o,model:l,actualValue:m,handleChange:h,onClickRoot:k}},Ge=E({name:"ElCheckbox"}),Ue=E({...Ge,props:me,emits:fe,setup(e){const c=e,i=te(),{inputId:l,isLabeledByFormItem:b,isChecked:r,isDisabled:d,isFocused:t,checkboxSize:v,hasOwnLabel:s,model:o,actualValue:m,handleChange:V,onClickRoot:L}=he(c,i),a=j("checkbox"),h=f(()=>[a.b(),a.m(v.value),a.is("disabled",d.value),a.is("bordered",c.border),a.is("checked",r.value)]),k=f(()=>[a.e("input"),a.is("disabled",d.value),a.is("checked",r.value),a.is("indeterminate",c.indeterminate),a.is("focus",t.value)]);return(u,p)=>(x(),oe(re(!n(s)&&n(b)?"span":"label"),{class:C(n(h)),"aria-controls":u.indeterminate?u.ariaControls:null,onClick:n(L)},{default:ue(()=>{var y,g,q,Q;return[Y("span",{class:C(n(k))},[u.trueValue||u.falseValue||u.trueLabel||u.falseLabel?N((x(),S("input",{key:0,id:n(l),"onUpdate:modelValue":B=>z(o)?o.value=B:null,class:C(n(a).e("original")),type:"checkbox",indeterminate:u.indeterminate,name:u.name,tabindex:u.tabindex,disabled:n(d),"true-value":(g=(y=u.trueValue)!=null?y:u.trueLabel)!=null?g:!0,"false-value":(Q=(q=u.falseValue)!=null?q:u.falseLabel)!=null?Q:!1,onChange:n(V),onFocus:B=>t.value=!0,onBlur:B=>t.value=!1,onClick:$(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[G,n(o)]]):N((x(),S("input",{key:1,id:n(l),"onUpdate:modelValue":B=>z(o)?o.value=B:null,class:C(n(a).e("original")),type:"checkbox",indeterminate:u.indeterminate,disabled:n(d),value:n(m),name:u.name,tabindex:u.tabindex,onChange:n(V),onFocus:B=>t.value=!0,onBlur:B=>t.value=!1,onClick:$(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[G,n(o)]]),Y("span",{class:C(n(a).e("inner"))},null,2)],2),n(s)?(x(),S("span",{key:0,class:C(n(a).e("label"))},[K(u.$slots,"default"),u.$slots.default?M("v-if",!0):(x(),S(Ce,{key:0},[se(ie(u.label),1)],64))],2)):M("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var we=R(Ue,[["__file","checkbox.vue"]]);const De=E({name:"ElCheckboxButton"}),Pe=E({...De,props:me,emits:fe,setup(e){const c=e,i=te(),{isFocused:l,isChecked:b,isDisabled:r,checkboxButtonSize:d,model:t,actualValue:v,handleChange:s}=he(c,i),o=F(_,void 0),m=j("checkbox"),V=f(()=>{var a,h,k,u;const p=(h=(a=o?.fill)==null?void 0:a.value)!=null?h:"";return{backgroundColor:p,borderColor:p,color:(u=(k=o?.textColor)==null?void 0:k.value)!=null?u:"",boxShadow:p?`-1px 0 0 0 ${p}`:void 0}}),L=f(()=>[m.b("button"),m.bm("button",d.value),m.is("disabled",r.value),m.is("checked",b.value),m.is("focus",l.value)]);return(a,h)=>{var k,u,p,y;return x(),S("label",{class:C(n(L))},[a.trueValue||a.falseValue||a.trueLabel||a.falseLabel?N((x(),S("input",{key:0,"onUpdate:modelValue":g=>z(t)?t.value=g:null,class:C(n(m).be("button","original")),type:"checkbox",name:a.name,tabindex:a.tabindex,disabled:n(r),"true-value":(u=(k=a.trueValue)!=null?k:a.trueLabel)!=null?u:!0,"false-value":(y=(p=a.falseValue)!=null?p:a.falseLabel)!=null?y:!1,onChange:n(s),onFocus:g=>l.value=!0,onBlur:g=>l.value=!1,onClick:$(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[G,n(t)]]):N((x(),S("input",{key:1,"onUpdate:modelValue":g=>z(t)?t.value=g:null,class:C(n(m).be("button","original")),type:"checkbox",name:a.name,tabindex:a.tabindex,disabled:n(r),value:n(v),onChange:n(s),onFocus:g=>l.value=!0,onBlur:g=>l.value=!1,onClick:$(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[G,n(t)]]),a.$slots.default||a.label?(x(),S("span",{key:2,class:C(n(m).be("button","inner")),style:xe(n(b)?n(V):void 0)},[K(a.$slots,"default",{},()=>[se(ie(a.label),1)])],6)):M("v-if",!0)],2)}}});var ke=R(Pe,[["__file","checkbox-button.vue"]]);const Te=Ve({modelValue:{type:ye(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ee,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...de(["ariaLabel"])}),Ae={[U]:e=>I(e),change:e=>I(e)},Me=E({name:"ElCheckboxGroup"}),Oe=E({...Me,props:Te,emits:Ae,setup(e,{emit:c}){const i=e,l=j("checkbox"),{formItem:b}=H(),{inputId:r,isLabeledByFormItem:d}=ve(i,{formItemContext:b}),t=async s=>{c(U,s),await ne(),c(O,s)},v=f({get(){return i.modelValue},set(s){t(s)}});return Se(_,{...Ee(Le(i),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:v,changeEvent:t}),le(()=>i.modelValue,()=>{i.validateEvent&&b?.validate("change").catch(s=>be())}),(s,o)=>{var m;return x(),oe(re(s.tag),{id:n(r),class:C(n(l).b("group")),role:"group","aria-label":n(d)?void 0:s.ariaLabel||"checkbox-group","aria-labelledby":n(d)?(m=n(b))==null?void 0:m.labelId:void 0},{default:ue(()=>[K(s.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var pe=R(Oe,[["__file","checkbox-group.vue"]]);const Qe=Be(we,{CheckboxButton:ke,CheckboxGroup:pe});ce(ke);ce(pe);export{Qe as E}; +import{M as W,aQ as J,aU as D,aS as ee,y as F,k as f,C as P,H as ae,F as le,$ as ne,z as T,S as I,a0 as A,U as ge,au as X,_ as R,a as E,j as te,u as j,m as oe,o as x,p as ue,f as Y,c as S,e as M,n as C,g as n,N,a7 as $,bb as z,c6 as G,r as K,P as Ce,h as se,t as ie,a6 as re,i as xe,b as Ve,d as ye,G as Se,bS as Le,w as Be,l as ce}from"./index-DpP8vbvu.js";import{u as de,d as be,p as Ee}from"./index-BMdPKuCq.js";import{U,C as O}from"./event-BB_Ol6Sd.js";import{d as _e,b as H,a as Z,c as ve,u as w}from"./index-D7KcZu8a.js";import{i as Ie}from"./el-tag-CjAzCWMf.js";const me={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:ee,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...de(["ariaControls"])},fe={[U]:e=>W(e)||J(e)||D(e),change:e=>W(e)||J(e)||D(e)},_=Symbol("checkboxGroupContextKey"),Fe=({model:e,isChecked:c})=>{const i=F(_,void 0),l=f(()=>{var r,d;const t=(r=i?.max)==null?void 0:r.value,v=(d=i?.min)==null?void 0:d.value;return!P(t)&&e.value.length>=t&&!c.value||!P(v)&&e.value.length<=v&&c.value});return{isDisabled:_e(f(()=>i?.disabled.value||l.value)),isLimitDisabled:l}},Ne=(e,{model:c,isLimitExceeded:i,hasOwnLabel:l,isDisabled:b,isLabeledByFormItem:r})=>{const d=F(_,void 0),{formItem:t}=H(),{emit:v}=ae();function s(a){var h,k,u,p;return[!0,e.trueValue,e.trueLabel].includes(a)?(k=(h=e.trueValue)!=null?h:e.trueLabel)!=null?k:!0:(p=(u=e.falseValue)!=null?u:e.falseLabel)!=null?p:!1}function o(a,h){v(O,s(a),h)}function m(a){if(i.value)return;const h=a.target;v(O,s(h.checked),a)}async function V(a){i.value||!l.value&&!b.value&&r.value&&(a.composedPath().some(u=>u.tagName==="LABEL")||(c.value=s([!1,e.falseValue,e.falseLabel].includes(c.value)),await ne(),o(c.value,a)))}const L=f(()=>d?.validateEvent||e.validateEvent);return le(()=>e.modelValue,()=>{L.value&&t?.validate("change").catch(a=>be())}),{handleChange:m,onClickRoot:V}},$e=e=>{const c=T(!1),{emit:i}=ae(),l=F(_,void 0),b=f(()=>P(l)===!1),r=T(!1),d=f({get(){var t,v;return b.value?(t=l?.modelValue)==null?void 0:t.value:(v=e.modelValue)!=null?v:c.value},set(t){var v,s;b.value&&I(t)?(r.value=((v=l?.max)==null?void 0:v.value)!==void 0&&t.length>l?.max.value&&t.length>d.value.length,r.value===!1&&((s=l?.changeEvent)==null||s.call(l,t))):(i(U,t),c.value=t)}});return{model:d,isGroup:b,isLimitExceeded:r}},ze=(e,c,{model:i})=>{const l=F(_,void 0),b=T(!1),r=f(()=>A(e.value)?e.label:e.value),d=f(()=>{const o=i.value;return D(o)?o:I(o)?ge(r.value)?o.map(X).some(m=>Ie(m,r.value)):o.map(X).includes(r.value):o!=null?o===e.trueValue||o===e.trueLabel:!!o}),t=Z(f(()=>{var o;return(o=l?.size)==null?void 0:o.value}),{prop:!0}),v=Z(f(()=>{var o;return(o=l?.size)==null?void 0:o.value})),s=f(()=>!!c.default||!A(r.value));return{checkboxButtonSize:t,isChecked:d,isFocused:b,checkboxSize:v,hasOwnLabel:s,actualValue:r}},he=(e,c)=>{const{formItem:i}=H(),{model:l,isGroup:b,isLimitExceeded:r}=$e(e),{isFocused:d,isChecked:t,checkboxButtonSize:v,checkboxSize:s,hasOwnLabel:o,actualValue:m}=ze(e,c,{model:l}),{isDisabled:V}=Fe({model:l,isChecked:t}),{inputId:L,isLabeledByFormItem:a}=ve(e,{formItemContext:i,disableIdGeneration:o,disableIdManagement:b}),{handleChange:h,onClickRoot:k}=Ne(e,{model:l,isLimitExceeded:r,hasOwnLabel:o,isDisabled:V,isLabeledByFormItem:a});return(()=>{function p(){var y,g;I(l.value)&&!l.value.includes(m.value)?l.value.push(m.value):l.value=(g=(y=e.trueValue)!=null?y:e.trueLabel)!=null?g:!0}e.checked&&p()})(),w({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},f(()=>b.value&&A(e.value))),w({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},f(()=>!!e.trueLabel)),w({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},f(()=>!!e.falseLabel)),{inputId:L,isLabeledByFormItem:a,isChecked:t,isDisabled:V,isFocused:d,checkboxButtonSize:v,checkboxSize:s,hasOwnLabel:o,model:l,actualValue:m,handleChange:h,onClickRoot:k}},Ge=E({name:"ElCheckbox"}),Ue=E({...Ge,props:me,emits:fe,setup(e){const c=e,i=te(),{inputId:l,isLabeledByFormItem:b,isChecked:r,isDisabled:d,isFocused:t,checkboxSize:v,hasOwnLabel:s,model:o,actualValue:m,handleChange:V,onClickRoot:L}=he(c,i),a=j("checkbox"),h=f(()=>[a.b(),a.m(v.value),a.is("disabled",d.value),a.is("bordered",c.border),a.is("checked",r.value)]),k=f(()=>[a.e("input"),a.is("disabled",d.value),a.is("checked",r.value),a.is("indeterminate",c.indeterminate),a.is("focus",t.value)]);return(u,p)=>(x(),oe(re(!n(s)&&n(b)?"span":"label"),{class:C(n(h)),"aria-controls":u.indeterminate?u.ariaControls:null,onClick:n(L)},{default:ue(()=>{var y,g,q,Q;return[Y("span",{class:C(n(k))},[u.trueValue||u.falseValue||u.trueLabel||u.falseLabel?N((x(),S("input",{key:0,id:n(l),"onUpdate:modelValue":B=>z(o)?o.value=B:null,class:C(n(a).e("original")),type:"checkbox",indeterminate:u.indeterminate,name:u.name,tabindex:u.tabindex,disabled:n(d),"true-value":(g=(y=u.trueValue)!=null?y:u.trueLabel)!=null?g:!0,"false-value":(Q=(q=u.falseValue)!=null?q:u.falseLabel)!=null?Q:!1,onChange:n(V),onFocus:B=>t.value=!0,onBlur:B=>t.value=!1,onClick:$(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[G,n(o)]]):N((x(),S("input",{key:1,id:n(l),"onUpdate:modelValue":B=>z(o)?o.value=B:null,class:C(n(a).e("original")),type:"checkbox",indeterminate:u.indeterminate,disabled:n(d),value:n(m),name:u.name,tabindex:u.tabindex,onChange:n(V),onFocus:B=>t.value=!0,onBlur:B=>t.value=!1,onClick:$(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[G,n(o)]]),Y("span",{class:C(n(a).e("inner"))},null,2)],2),n(s)?(x(),S("span",{key:0,class:C(n(a).e("label"))},[K(u.$slots,"default"),u.$slots.default?M("v-if",!0):(x(),S(Ce,{key:0},[se(ie(u.label),1)],64))],2)):M("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var we=R(Ue,[["__file","checkbox.vue"]]);const De=E({name:"ElCheckboxButton"}),Pe=E({...De,props:me,emits:fe,setup(e){const c=e,i=te(),{isFocused:l,isChecked:b,isDisabled:r,checkboxButtonSize:d,model:t,actualValue:v,handleChange:s}=he(c,i),o=F(_,void 0),m=j("checkbox"),V=f(()=>{var a,h,k,u;const p=(h=(a=o?.fill)==null?void 0:a.value)!=null?h:"";return{backgroundColor:p,borderColor:p,color:(u=(k=o?.textColor)==null?void 0:k.value)!=null?u:"",boxShadow:p?`-1px 0 0 0 ${p}`:void 0}}),L=f(()=>[m.b("button"),m.bm("button",d.value),m.is("disabled",r.value),m.is("checked",b.value),m.is("focus",l.value)]);return(a,h)=>{var k,u,p,y;return x(),S("label",{class:C(n(L))},[a.trueValue||a.falseValue||a.trueLabel||a.falseLabel?N((x(),S("input",{key:0,"onUpdate:modelValue":g=>z(t)?t.value=g:null,class:C(n(m).be("button","original")),type:"checkbox",name:a.name,tabindex:a.tabindex,disabled:n(r),"true-value":(u=(k=a.trueValue)!=null?k:a.trueLabel)!=null?u:!0,"false-value":(y=(p=a.falseValue)!=null?p:a.falseLabel)!=null?y:!1,onChange:n(s),onFocus:g=>l.value=!0,onBlur:g=>l.value=!1,onClick:$(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[G,n(t)]]):N((x(),S("input",{key:1,"onUpdate:modelValue":g=>z(t)?t.value=g:null,class:C(n(m).be("button","original")),type:"checkbox",name:a.name,tabindex:a.tabindex,disabled:n(r),value:n(v),onChange:n(s),onFocus:g=>l.value=!0,onBlur:g=>l.value=!1,onClick:$(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[G,n(t)]]),a.$slots.default||a.label?(x(),S("span",{key:2,class:C(n(m).be("button","inner")),style:xe(n(b)?n(V):void 0)},[K(a.$slots,"default",{},()=>[se(ie(a.label),1)])],6)):M("v-if",!0)],2)}}});var ke=R(Pe,[["__file","checkbox-button.vue"]]);const Te=Ve({modelValue:{type:ye(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ee,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...de(["ariaLabel"])}),Ae={[U]:e=>I(e),change:e=>I(e)},Me=E({name:"ElCheckboxGroup"}),Oe=E({...Me,props:Te,emits:Ae,setup(e,{emit:c}){const i=e,l=j("checkbox"),{formItem:b}=H(),{inputId:r,isLabeledByFormItem:d}=ve(i,{formItemContext:b}),t=async s=>{c(U,s),await ne(),c(O,s)},v=f({get(){return i.modelValue},set(s){t(s)}});return Se(_,{...Ee(Le(i),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:v,changeEvent:t}),le(()=>i.modelValue,()=>{i.validateEvent&&b?.validate("change").catch(s=>be())}),(s,o)=>{var m;return x(),oe(re(s.tag),{id:n(r),class:C(n(l).b("group")),role:"group","aria-label":n(d)?void 0:s.ariaLabel||"checkbox-group","aria-labelledby":n(d)?(m=n(b))==null?void 0:m.labelId:void 0},{default:ue(()=>[K(s.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var pe=R(Oe,[["__file","checkbox-group.vue"]]);const Qe=Be(we,{CheckboxButton:ke,CheckboxGroup:pe});ce(ke);ce(pe);export{Qe as E}; diff --git a/mail-worker/dist/assets/el-dialog-CaeF0tY4.js b/mail-worker/dist/assets/el-dialog-wajnArIT.js similarity index 96% rename from mail-worker/dist/assets/el-dialog-CaeF0tY4.js rename to mail-worker/dist/assets/el-dialog-wajnArIT.js index e194aab..1d4f190 100644 --- a/mail-worker/dist/assets/el-dialog-CaeF0tY4.js +++ b/mail-worker/dist/assets/el-dialog-wajnArIT.js @@ -1 +1 @@ -import{b as J,R as le,ac as ae,_ as Q,a as M,aK as se,y as G,k as I,c as U,o as D,f as N,e as K,r as E,n as m,g as e,t as te,ab as z,p as g,m as j,a6 as ne,bV as re,L as ie,i as W,aU as de,d as ue,H as ce,bi as fe,z as k,bW as ve,aV as ye,F as q,I as pe,bX as me,Q as Z,a8 as ge,$ as Ce,j as be,u as he,T as Ee,N as ke,q as Ie,aD as we,O as De,G as Se,w as Te}from"./index-C-CeCRdr.js";import{u as Fe,a as Be,b as Pe,c as Ae}from"./index-CKeGEg12.js";import{F as $e,e as Le,a as Oe,b as Re}from"./vnode-iQPJucW4.js";import{U as X}from"./event-BB_Ol6Sd.js";import{e as H,u as Ne}from"./index-DbudBMlZ.js";const Y=Symbol("dialogInjectionKey"),x=J({center:Boolean,alignCenter:Boolean,closeIcon:{type:le},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),ze={close:()=>!0},Me=(...o)=>n=>{o.forEach(a=>{ae(a)?a(n):a.value=n})},Ve=M({name:"ElDialogContent"}),Ue=M({...Ve,props:x,emits:ze,setup(o,{expose:n}){const a=o,{t:A}=se(),{Close:i}=re,{dialogRef:f,headerRef:C,bodyId:b,ns:s,style:d}=G(Y),{focusTrapRef:y}=G($e),p=I(()=>[s.b(),s.is("fullscreen",a.fullscreen),s.is("draggable",a.draggable),s.is("align-center",a.alignCenter),{[s.m("center")]:a.center}]),h=Me(y,f),u=I(()=>a.draggable),v=I(()=>a.overflow),{resetPosition:S,updatePosition:T}=Fe(f,C,u,v);return n({resetPosition:S,updatePosition:T}),(t,w)=>(D(),U("div",{ref:e(h),class:m(e(p)),style:W(e(d)),tabindex:"-1"},[N("header",{ref_key:"headerRef",ref:C,class:m([e(s).e("header"),t.headerClass,{"show-close":t.showClose}])},[E(t.$slots,"header",{},()=>[N("span",{role:"heading","aria-level":t.ariaLevel,class:m(e(s).e("title"))},te(t.title),11,["aria-level"])]),t.showClose?(D(),U("button",{key:0,"aria-label":e(A)("el.dialog.close"),class:m(e(s).e("headerbtn")),type:"button",onClick:$=>t.$emit("close")},[z(e(ie),{class:m(e(s).e("close"))},{default:g(()=>[(D(),j(ne(t.closeIcon||e(i))))]),_:1},8,["class"])],10,["aria-label","onClick"])):K("v-if",!0)],2),N("div",{id:e(b),class:m([e(s).e("body"),t.bodyClass])},[E(t.$slots,"default")],10,["id"]),t.$slots.footer?(D(),U("footer",{key:0,class:m([e(s).e("footer"),t.footerClass])},[E(t.$slots,"footer")],2)):K("v-if",!0)],6))}});var qe=Q(Ue,[["__file","dialog-content.vue"]]);const Ke=J({...x,appendToBody:Boolean,appendTo:{type:Le.to.type,default:"body"},beforeClose:{type:ue(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),je={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[X]:o=>de(o),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},_e=(o,n)=>{var a;const i=ce().emit,{nextZIndex:f}=fe();let C="";const b=H(),s=H(),d=k(!1),y=k(!1),p=k(!1),h=k((a=o.zIndex)!=null?a:f());let u,v;const S=ve("namespace",me),T=I(()=>{const r={},c=`--${S.value}-dialog`;return o.fullscreen||(o.top&&(r[`${c}-margin-top`]=o.top),o.width&&(r[`${c}-width`]=ye(o.width))),r}),t=I(()=>o.alignCenter?{display:"flex"}:{});function w(){i("opened")}function $(){i("closed"),i(X,!1),o.destroyOnClose&&(p.value=!1)}function V(){i("close")}function L(){v?.(),u?.(),o.openDelay&&o.openDelay>0?{stop:u}=Z(()=>O(),o.openDelay):O()}function F(){u?.(),v?.(),o.closeDelay&&o.closeDelay>0?{stop:v}=Z(()=>R(),o.closeDelay):R()}function B(){function r(c){c||(y.value=!0,d.value=!1)}o.beforeClose?o.beforeClose(r):F()}function P(){o.closeOnClickModal&&B()}function O(){ge&&(d.value=!0)}function R(){d.value=!1}function l(){i("openAutoFocus")}function _(){i("closeAutoFocus")}function ee(r){var c;((c=r.detail)==null?void 0:c.focusReason)==="pointer"&&r.preventDefault()}o.lockScroll&&Be(d);function oe(){o.closeOnPressEscape&&B()}return q(()=>o.zIndex,()=>{var r;h.value=(r=o.zIndex)!=null?r:f()}),q(()=>o.modelValue,r=>{var c;r?(y.value=!1,L(),p.value=!0,h.value=(c=o.zIndex)!=null?c:f(),Ce(()=>{i("open"),n.value&&(n.value.parentElement.scrollTop=0,n.value.parentElement.scrollLeft=0,n.value.scrollTop=0)})):d.value&&F()}),q(()=>o.fullscreen,r=>{n.value&&(r?(C=n.value.style.transform,n.value.style.transform=""):n.value.style.transform=C)}),pe(()=>{o.modelValue&&(d.value=!0,p.value=!0,L())}),{afterEnter:w,afterLeave:$,beforeLeave:V,handleClose:B,onModalClick:P,close:F,doClose:R,onOpenAutoFocus:l,onCloseAutoFocus:_,onCloseRequested:oe,onFocusoutPrevented:ee,titleId:b,bodyId:s,closed:y,style:T,overlayDialogStyle:t,rendered:p,visible:d,zIndex:h}},Ge=M({name:"ElDialog",inheritAttrs:!1}),Ze=M({...Ge,props:Ke,emits:je,setup(o,{expose:n}){const a=o,A=be();Ne({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},I(()=>!!A.title));const i=he("dialog"),f=k(),C=k(),b=k(),{visible:s,titleId:d,bodyId:y,style:p,overlayDialogStyle:h,rendered:u,zIndex:v,afterEnter:S,afterLeave:T,beforeLeave:t,handleClose:w,onModalClick:$,onOpenAutoFocus:V,onCloseAutoFocus:L,onCloseRequested:F,onFocusoutPrevented:B}=_e(a,f);Se(Y,{dialogRef:f,headerRef:C,bodyId:y,ns:i,rendered:u,style:p});const P=Ae($),O=I(()=>a.draggable&&!a.fullscreen);return n({visible:s,dialogContentRef:b,resetPosition:()=>{var l;(l=b.value)==null||l.resetPosition()},handleClose:w}),(l,_)=>(D(),j(e(Re),{to:l.appendTo,disabled:l.appendTo!=="body"?!1:!l.appendToBody},{default:g(()=>[z(Ee,{name:"dialog-fade",onAfterEnter:e(S),onAfterLeave:e(T),onBeforeLeave:e(t),persisted:""},{default:g(()=>[ke(z(e(Pe),{"custom-mask-event":"",mask:l.modal,"overlay-class":l.modalClass,"z-index":e(v)},{default:g(()=>[N("div",{role:"dialog","aria-modal":"true","aria-label":l.title||void 0,"aria-labelledby":l.title?void 0:e(d),"aria-describedby":e(y),class:m(`${e(i).namespace.value}-overlay-dialog`),style:W(e(h)),onClick:e(P).onClick,onMousedown:e(P).onMousedown,onMouseup:e(P).onMouseup},[z(e(Oe),{loop:"",trapped:e(s),"focus-start-el":"container",onFocusAfterTrapped:e(V),onFocusAfterReleased:e(L),onFocusoutPrevented:e(B),onReleaseRequested:e(F)},{default:g(()=>[e(u)?(D(),j(qe,Ie({key:0,ref_key:"dialogContentRef",ref:b},l.$attrs,{center:l.center,"align-center":l.alignCenter,"close-icon":l.closeIcon,draggable:e(O),overflow:l.overflow,fullscreen:l.fullscreen,"header-class":l.headerClass,"body-class":l.bodyClass,"footer-class":l.footerClass,"show-close":l.showClose,title:l.title,"aria-level":l.headerAriaLevel,onClose:e(w)}),we({header:g(()=>[l.$slots.title?E(l.$slots,"title",{key:1}):E(l.$slots,"header",{key:0,close:e(w),titleId:e(d),titleClass:e(i).e("title")})]),default:g(()=>[E(l.$slots,"default")]),_:2},[l.$slots.footer?{name:"footer",fn:g(()=>[E(l.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):K("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[De,e(s)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var He=Q(Ze,[["__file","dialog.vue"]]);const xe=Te(He);export{xe as E,Me as c}; +import{b as J,R as le,ac as ae,_ as Q,a as M,aK as se,y as G,k as I,c as U,o as D,f as N,e as K,r as E,n as m,g as e,t as te,ab as z,p as g,m as j,a6 as ne,bV as re,L as ie,i as W,aU as de,d as ue,H as ce,bi as fe,z as k,bW as ve,aV as ye,F as q,I as pe,bX as me,Q as Z,a8 as ge,$ as Ce,j as be,u as he,T as Ee,N as ke,q as Ie,aD as we,O as De,G as Se,w as Te}from"./index-DpP8vbvu.js";import{u as Fe,a as Be,b as Pe,c as Ae}from"./index-CcAtbSPY.js";import{F as $e,e as Le,a as Oe,b as Re}from"./vnode-DPqF99Zc.js";import{U as X}from"./event-BB_Ol6Sd.js";import{e as H,u as Ne}from"./index-D7KcZu8a.js";const Y=Symbol("dialogInjectionKey"),x=J({center:Boolean,alignCenter:Boolean,closeIcon:{type:le},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),ze={close:()=>!0},Me=(...o)=>n=>{o.forEach(a=>{ae(a)?a(n):a.value=n})},Ve=M({name:"ElDialogContent"}),Ue=M({...Ve,props:x,emits:ze,setup(o,{expose:n}){const a=o,{t:A}=se(),{Close:i}=re,{dialogRef:f,headerRef:C,bodyId:b,ns:s,style:d}=G(Y),{focusTrapRef:y}=G($e),p=I(()=>[s.b(),s.is("fullscreen",a.fullscreen),s.is("draggable",a.draggable),s.is("align-center",a.alignCenter),{[s.m("center")]:a.center}]),h=Me(y,f),u=I(()=>a.draggable),v=I(()=>a.overflow),{resetPosition:S,updatePosition:T}=Fe(f,C,u,v);return n({resetPosition:S,updatePosition:T}),(t,w)=>(D(),U("div",{ref:e(h),class:m(e(p)),style:W(e(d)),tabindex:"-1"},[N("header",{ref_key:"headerRef",ref:C,class:m([e(s).e("header"),t.headerClass,{"show-close":t.showClose}])},[E(t.$slots,"header",{},()=>[N("span",{role:"heading","aria-level":t.ariaLevel,class:m(e(s).e("title"))},te(t.title),11,["aria-level"])]),t.showClose?(D(),U("button",{key:0,"aria-label":e(A)("el.dialog.close"),class:m(e(s).e("headerbtn")),type:"button",onClick:$=>t.$emit("close")},[z(e(ie),{class:m(e(s).e("close"))},{default:g(()=>[(D(),j(ne(t.closeIcon||e(i))))]),_:1},8,["class"])],10,["aria-label","onClick"])):K("v-if",!0)],2),N("div",{id:e(b),class:m([e(s).e("body"),t.bodyClass])},[E(t.$slots,"default")],10,["id"]),t.$slots.footer?(D(),U("footer",{key:0,class:m([e(s).e("footer"),t.footerClass])},[E(t.$slots,"footer")],2)):K("v-if",!0)],6))}});var qe=Q(Ue,[["__file","dialog-content.vue"]]);const Ke=J({...x,appendToBody:Boolean,appendTo:{type:Le.to.type,default:"body"},beforeClose:{type:ue(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),je={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[X]:o=>de(o),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},_e=(o,n)=>{var a;const i=ce().emit,{nextZIndex:f}=fe();let C="";const b=H(),s=H(),d=k(!1),y=k(!1),p=k(!1),h=k((a=o.zIndex)!=null?a:f());let u,v;const S=ve("namespace",me),T=I(()=>{const r={},c=`--${S.value}-dialog`;return o.fullscreen||(o.top&&(r[`${c}-margin-top`]=o.top),o.width&&(r[`${c}-width`]=ye(o.width))),r}),t=I(()=>o.alignCenter?{display:"flex"}:{});function w(){i("opened")}function $(){i("closed"),i(X,!1),o.destroyOnClose&&(p.value=!1)}function V(){i("close")}function L(){v?.(),u?.(),o.openDelay&&o.openDelay>0?{stop:u}=Z(()=>O(),o.openDelay):O()}function F(){u?.(),v?.(),o.closeDelay&&o.closeDelay>0?{stop:v}=Z(()=>R(),o.closeDelay):R()}function B(){function r(c){c||(y.value=!0,d.value=!1)}o.beforeClose?o.beforeClose(r):F()}function P(){o.closeOnClickModal&&B()}function O(){ge&&(d.value=!0)}function R(){d.value=!1}function l(){i("openAutoFocus")}function _(){i("closeAutoFocus")}function ee(r){var c;((c=r.detail)==null?void 0:c.focusReason)==="pointer"&&r.preventDefault()}o.lockScroll&&Be(d);function oe(){o.closeOnPressEscape&&B()}return q(()=>o.zIndex,()=>{var r;h.value=(r=o.zIndex)!=null?r:f()}),q(()=>o.modelValue,r=>{var c;r?(y.value=!1,L(),p.value=!0,h.value=(c=o.zIndex)!=null?c:f(),Ce(()=>{i("open"),n.value&&(n.value.parentElement.scrollTop=0,n.value.parentElement.scrollLeft=0,n.value.scrollTop=0)})):d.value&&F()}),q(()=>o.fullscreen,r=>{n.value&&(r?(C=n.value.style.transform,n.value.style.transform=""):n.value.style.transform=C)}),pe(()=>{o.modelValue&&(d.value=!0,p.value=!0,L())}),{afterEnter:w,afterLeave:$,beforeLeave:V,handleClose:B,onModalClick:P,close:F,doClose:R,onOpenAutoFocus:l,onCloseAutoFocus:_,onCloseRequested:oe,onFocusoutPrevented:ee,titleId:b,bodyId:s,closed:y,style:T,overlayDialogStyle:t,rendered:p,visible:d,zIndex:h}},Ge=M({name:"ElDialog",inheritAttrs:!1}),Ze=M({...Ge,props:Ke,emits:je,setup(o,{expose:n}){const a=o,A=be();Ne({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},I(()=>!!A.title));const i=he("dialog"),f=k(),C=k(),b=k(),{visible:s,titleId:d,bodyId:y,style:p,overlayDialogStyle:h,rendered:u,zIndex:v,afterEnter:S,afterLeave:T,beforeLeave:t,handleClose:w,onModalClick:$,onOpenAutoFocus:V,onCloseAutoFocus:L,onCloseRequested:F,onFocusoutPrevented:B}=_e(a,f);Se(Y,{dialogRef:f,headerRef:C,bodyId:y,ns:i,rendered:u,style:p});const P=Ae($),O=I(()=>a.draggable&&!a.fullscreen);return n({visible:s,dialogContentRef:b,resetPosition:()=>{var l;(l=b.value)==null||l.resetPosition()},handleClose:w}),(l,_)=>(D(),j(e(Re),{to:l.appendTo,disabled:l.appendTo!=="body"?!1:!l.appendToBody},{default:g(()=>[z(Ee,{name:"dialog-fade",onAfterEnter:e(S),onAfterLeave:e(T),onBeforeLeave:e(t),persisted:""},{default:g(()=>[ke(z(e(Pe),{"custom-mask-event":"",mask:l.modal,"overlay-class":l.modalClass,"z-index":e(v)},{default:g(()=>[N("div",{role:"dialog","aria-modal":"true","aria-label":l.title||void 0,"aria-labelledby":l.title?void 0:e(d),"aria-describedby":e(y),class:m(`${e(i).namespace.value}-overlay-dialog`),style:W(e(h)),onClick:e(P).onClick,onMousedown:e(P).onMousedown,onMouseup:e(P).onMouseup},[z(e(Oe),{loop:"",trapped:e(s),"focus-start-el":"container",onFocusAfterTrapped:e(V),onFocusAfterReleased:e(L),onFocusoutPrevented:e(B),onReleaseRequested:e(F)},{default:g(()=>[e(u)?(D(),j(qe,Ie({key:0,ref_key:"dialogContentRef",ref:b},l.$attrs,{center:l.center,"align-center":l.alignCenter,"close-icon":l.closeIcon,draggable:e(O),overflow:l.overflow,fullscreen:l.fullscreen,"header-class":l.headerClass,"body-class":l.bodyClass,"footer-class":l.footerClass,"show-close":l.showClose,title:l.title,"aria-level":l.headerAriaLevel,onClose:e(w)}),we({header:g(()=>[l.$slots.title?E(l.$slots,"title",{key:1}):E(l.$slots,"header",{key:0,close:e(w),titleId:e(d),titleClass:e(i).e("title")})]),default:g(()=>[E(l.$slots,"default")]),_:2},[l.$slots.footer?{name:"footer",fn:g(()=>[E(l.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):K("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[De,e(s)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var He=Q(Ze,[["__file","dialog.vue"]]);const xe=Te(He);export{xe as E,Me as c}; diff --git a/mail-worker/dist/assets/el-dropdown-item-C7kf7cCi.js b/mail-worker/dist/assets/el-dropdown-item-DnH71j3m.js similarity index 97% rename from mail-worker/dist/assets/el-dropdown-item-C7kf7cCi.js rename to mail-worker/dist/assets/el-dropdown-item-DnH71j3m.js index 5197b8f..dc382be 100644 --- a/mail-worker/dist/assets/el-dropdown-item-C7kf7cCi.js +++ b/mail-worker/dist/assets/el-dropdown-item-DnH71j3m.js @@ -1 +1 @@ -import{E as fe}from"./index-D2TRjCYc.js";import{d as P,u as de,r as Re,b as ke,O as Pe,E as Be,w as ce}from"./el-tag-Bx7m9zwB.js";import{E as Ke}from"./el-scrollbar-UsUjrt3r.js";import{_ as L,a as D,r as B,z as C,y as h,I as Le,g as O,J as me,G as J,b as X,d as k,k as $,a1 as V,bC as De,F as ve,a5 as Me,aq as I,m as U,o as K,p as _,ab as S,b3 as Ae,b4 as Ge,R as ze,E as y,c as W,e as x,aD as Ye,q,n as Q,A as Je,L as ge,u as oe,aK as Ue,aV as He,H as be,$ as Ve,f as je,a6 as We,a7 as ee,P as qe,i as Qe,w as Xe,l as _e}from"./index-C-CeCRdr.js";import{a as Ze,e as Ie}from"./index-DbudBMlZ.js";import{c as xe}from"./el-select-bzu4tt0u.js";import{c as we}from"./el-dialog-CaeF0tY4.js";import{F as eo}from"./vnode-iQPJucW4.js";const oo=D({inheritAttrs:!1});function no(e,n,s,t,d,a){return B(e.$slots,"default")}var to=L(oo,[["render",no],["__file","collection.vue"]]);const lo=D({name:"ElCollectionItem",inheritAttrs:!1});function ro(e,n,s,t,d,a){return B(e.$slots,"default")}var so=L(lo,[["render",ro],["__file","collection-item.vue"]]);const Ee="data-el-collection-item",Ce=e=>{const n=`El${e}Collection`,s=`${n}Item`,t=Symbol(n),d=Symbol(s),a={...to,name:n,setup(){const r=C(),u=new Map;J(t,{itemMap:u,getItems:()=>{const m=O(r);if(!m)return[];const f=Array.from(m.querySelectorAll(`[${Ee}]`));return[...u.values()].sort((o,i)=>f.indexOf(o.ref)-f.indexOf(i.ref))},collectionRef:r})}},c={...so,name:s,setup(r,{attrs:u}){const v=C(),m=h(t,void 0);J(d,{collectionItemRef:v}),Le(()=>{const f=O(v);f&&m.itemMap.set(f,{ref:f,...u})}),me(()=>{const f=O(v);m.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:t,COLLECTION_ITEM_INJECTION_KEY:d,ElCollection:a,ElCollectionItem:c}},ao=X({style:{type:k([String,Array,Object])},currentTabId:{type:k(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:k(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:io,ElCollectionItem:co,COLLECTION_INJECTION_KEY:ne,COLLECTION_ITEM_INJECTION_KEY:uo}=Ce("RovingFocusGroup"),te=Symbol("elRovingFocusGroup"),he=Symbol("elRovingFocusGroupItem"),po={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},fo=(e,n)=>e,mo=(e,n,s)=>{const t=fo(e.code);return po[t]},vo=(e,n)=>e.map((s,t)=>e[(t+n)%e.length]),le=e=>{const{activeElement:n}=document;for(const s of e)if(s===n||(s.focus(),n!==document.activeElement))return},ue="currentTabIdChange",pe="rovingFocusGroup.entryFocus",go={bubbles:!1,cancelable:!0},bo=D({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ao,emits:[ue,"entryFocus"],setup(e,{emit:n}){var s;const t=C((s=e.currentTabId||e.defaultCurrentTabId)!=null?s:null),d=C(!1),a=C(!1),c=C(),{getItems:r}=h(ne,void 0),u=$(()=>[{outline:"none"},e.style]),v=p=>{n(ue,p)},m=()=>{d.value=!0},f=P(p=>{var g;(g=e.onMousedown)==null||g.call(e,p)},()=>{a.value=!0}),w=P(p=>{var g;(g=e.onFocus)==null||g.call(e,p)},p=>{const g=!O(a),{target:M,currentTarget:F}=p;if(M===F&&g&&!O(d)){const A=new Event(pe,go);if(F?.dispatchEvent(A),!A.defaultPrevented){const b=r().filter(N=>N.focusable),R=b.find(N=>N.active),E=b.find(N=>N.id===O(t)),z=[R,E,...b].filter(Boolean).map(N=>N.ref);le(z)}}a.value=!1}),o=P(p=>{var g;(g=e.onBlur)==null||g.call(e,p)},()=>{d.value=!1}),i=(...p)=>{n("entryFocus",...p)};J(te,{currentTabbedId:De(t),loop:V(e,"loop"),tabIndex:$(()=>O(d)?-1:0),rovingFocusGroupRef:c,rovingFocusGroupRootStyle:u,orientation:V(e,"orientation"),dir:V(e,"dir"),onItemFocus:v,onItemShiftTab:m,onBlur:o,onFocus:w,onMousedown:f}),ve(()=>e.currentTabId,p=>{t.value=p??null}),Me(c,pe,i)}});function _o(e,n,s,t,d,a){return B(e.$slots,"default")}var Io=L(bo,[["render",_o],["__file","roving-focus-group-impl.vue"]]);const wo=D({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:io,ElRovingFocusGroupImpl:Io}});function Eo(e,n,s,t,d,a){const c=I("el-roving-focus-group-impl"),r=I("el-focus-group-collection");return K(),U(r,null,{default:_(()=>[S(c,Ae(Ge(e.$attrs)),{default:_(()=>[B(e.$slots,"default")]),_:3},16)]),_:3})}var Co=L(wo,[["render",Eo],["__file","roving-focus-group.vue"]]);const ho=X({trigger:ke.trigger,triggerKeys:{type:k(Array),default:()=>[y.enter,y.numpadEnter,y.space,y.down]},effect:{...de.effect,default:"light"},type:{type:k(String)},placement:{type:k(String),default:"bottom"},popperOptions:{type:k(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:k([Number,String]),default:0},maxHeight:{type:k([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:Re,default:"menu"},buttonProps:{type:k(Object)},teleported:de.teleported,persistent:{type:Boolean,default:!0}}),ye=X({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:ze}}),yo=X({onKeydown:{type:k(Function)}}),To=[y.down,y.pageDown,y.home],Te=[y.up,y.pageUp,y.end],$o=[...To,...Te],{ElCollection:Oo,ElCollectionItem:Fo,COLLECTION_INJECTION_KEY:No,COLLECTION_ITEM_INJECTION_KEY:So}=Ce("Dropdown"),Z=Symbol("elDropdown"),$e="elDropdown",{ButtonGroup:Ro}=fe,ko=D({name:"ElDropdown",components:{ElButton:fe,ElButtonGroup:Ro,ElScrollbar:Ke,ElDropdownCollection:Oo,ElTooltip:Be,ElRovingFocusGroup:Co,ElOnlyChild:Pe,ElIcon:ge,ArrowDown:Je},props:ho,emits:["visible-change","click","command"],setup(e,{emit:n}){const s=be(),t=oe("dropdown"),{t:d}=Ue(),a=C(),c=C(),r=C(),u=C(),v=C(null),m=C(null),f=C(!1),w=$(()=>({maxHeight:He(e.maxHeight)})),o=$(()=>[t.m(b.value)]),i=$(()=>xe(e.trigger)),p=Ie().value,g=$(()=>e.id||p);ve([a,i],([l,T],[Y])=>{var se,ae,ie;(se=Y?.$el)!=null&&se.removeEventListener&&Y.$el.removeEventListener("pointerenter",E),(ae=l?.$el)!=null&&ae.removeEventListener&&l.$el.removeEventListener("pointerenter",E),(ie=l?.$el)!=null&&ie.addEventListener&&T.includes("hover")&&l.$el.addEventListener("pointerenter",E)},{immediate:!0}),me(()=>{var l,T;(T=(l=a.value)==null?void 0:l.$el)!=null&&T.removeEventListener&&a.value.$el.removeEventListener("pointerenter",E)});function M(){F()}function F(){var l;(l=r.value)==null||l.onClose()}function A(){var l;(l=r.value)==null||l.onOpen()}const b=Ze();function R(...l){n("command",...l)}function E(){var l,T;(T=(l=a.value)==null?void 0:l.$el)==null||T.focus()}function G(){}function z(){const l=O(u);i.value.includes("hover")&&l?.focus(),m.value=null}function N(l){m.value=l}function re(l){f.value||(l.preventDefault(),l.stopImmediatePropagation())}function j(){n("visible-change",!0)}function H(l){var T;l?.type==="keydown"&&((T=u.value)==null||T.focus())}function Se(){n("visible-change",!1)}return J(Z,{contentRef:u,role:$(()=>e.role),triggerId:g,isUsingKeyboard:f,onItemEnter:G,onItemLeave:z}),J($e,{instance:s,dropdownSize:b,handleClick:M,commandHandler:R,trigger:V(e,"trigger"),hideOnClick:V(e,"hideOnClick")}),{t:d,ns:t,scrollbar:v,wrapStyle:w,dropdownTriggerKls:o,dropdownSize:b,triggerId:g,currentTabId:m,handleCurrentTabIdChange:N,handlerMainButtonClick:l=>{n("click",l)},handleEntryFocus:re,handleClose:F,handleOpen:A,handleBeforeShowTooltip:j,handleShowTooltip:H,handleBeforeHideTooltip:Se,onFocusAfterTrapped:l=>{var T,Y;l.preventDefault(),(Y=(T=u.value)==null?void 0:T.focus)==null||Y.call(T,{preventScroll:!0})},popperRef:r,contentRef:u,triggeringElementRef:a,referenceElementRef:c}}});function Po(e,n,s,t,d,a){var c;const r=I("el-dropdown-collection"),u=I("el-roving-focus-group"),v=I("el-scrollbar"),m=I("el-only-child"),f=I("el-tooltip"),w=I("el-button"),o=I("arrow-down"),i=I("el-icon"),p=I("el-button-group");return K(),W("div",{class:Q([e.ns.b(),e.ns.is("disabled",e.disabled)])},[S(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(c=e.referenceElementRef)==null?void 0:c.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ye({content:_(()=>[S(v,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:_(()=>[S(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:_(()=>[S(r,null,{default:_(()=>[B(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:_(()=>[S(m,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:_(()=>[B(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(K(),U(p,{key:0},{default:_(()=>[S(w,q({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:_(()=>[B(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),S(w,q({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:_(()=>[S(i,{class:Q(e.ns.e("icon"))},{default:_(()=>[S(o)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):x("v-if",!0)],2)}var Bo=L(ko,[["render",Po],["__file","dropdown.vue"]]);const Ko=D({components:{ElRovingFocusCollectionItem:co},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:n}){const{currentTabbedId:s,loop:t,onItemFocus:d,onItemShiftTab:a}=h(te,void 0),{getItems:c}=h(ne,void 0),r=Ie(),u=C(),v=P(o=>{n("mousedown",o)},o=>{e.focusable?d(O(r)):o.preventDefault()}),m=P(o=>{n("focus",o)},()=>{d(O(r))}),f=P(o=>{n("keydown",o)},o=>{const{code:i,shiftKey:p,target:g,currentTarget:M}=o;if(i===y.tab&&p){a();return}if(g!==M)return;const F=mo(o);if(F){o.preventDefault();let b=c().filter(R=>R.focusable).map(R=>R.ref);switch(F){case"last":{b.reverse();break}case"prev":case"next":{F==="prev"&&b.reverse();const R=b.indexOf(M);b=t.value?vo(b,R+1):b.slice(R+1);break}}Ve(()=>{le(b)})}}),w=$(()=>s.value===O(r));return J(he,{rovingFocusGroupItemRef:u,tabIndex:$(()=>O(w)?0:-1),handleMousedown:v,handleFocus:m,handleKeydown:f}),{id:r,handleKeydown:f,handleFocus:m,handleMousedown:v}}});function Lo(e,n,s,t,d,a){const c=I("el-roving-focus-collection-item");return K(),U(c,{id:e.id,focusable:e.focusable,active:e.active},{default:_(()=>[B(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Do=L(Ko,[["render",Lo],["__file","roving-focus-item.vue"]]);const Mo=D({name:"DropdownItemImpl",components:{ElIcon:ge},props:ye,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:n}){const s=oe("dropdown"),{role:t}=h(Z,void 0),{collectionItemRef:d}=h(So,void 0),{collectionItemRef:a}=h(uo,void 0),{rovingFocusGroupItemRef:c,tabIndex:r,handleFocus:u,handleKeydown:v,handleMousedown:m}=h(he,void 0),f=we(d,a,c),w=$(()=>t.value==="menu"?"menuitem":t.value==="navigation"?"link":"button"),o=P(i=>{if([y.enter,y.numpadEnter,y.space].includes(i.code))return i.preventDefault(),i.stopImmediatePropagation(),n("clickimpl",i),!0},v);return{ns:s,itemRef:f,dataset:{[Ee]:""},role:w,tabIndex:r,handleFocus:u,handleKeydown:o,handleMousedown:m}}});function Ao(e,n,s,t,d,a){const c=I("el-icon");return K(),W(qe,null,[e.divided?(K(),W("li",{key:0,role:"separator",class:Q(e.ns.bem("menu","item","divided"))},null,2)):x("v-if",!0),je("li",q({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:r=>e.$emit("clickimpl",r),onFocus:e.handleFocus,onKeydown:ee(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:r=>e.$emit("pointermove",r),onPointerleave:r=>e.$emit("pointerleave",r)}),[e.icon?(K(),U(c,{key:0},{default:_(()=>[(K(),U(We(e.icon)))]),_:1})):x("v-if",!0),B(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var Go=L(Mo,[["render",Ao],["__file","dropdown-item-impl.vue"]]);const Oe=()=>{const e=h($e,{}),n=$(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:n}},zo=D({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Fo,ElRovingFocusItem:Do,ElDropdownItemImpl:Go},inheritAttrs:!1,props:ye,emits:["pointermove","pointerleave","click"],setup(e,{emit:n,attrs:s}){const{elDropdown:t}=Oe(),d=be(),a=C(null),c=$(()=>{var o,i;return(i=(o=O(a))==null?void 0:o.textContent)!=null?i:""}),{onItemEnter:r,onItemLeave:u}=h(Z,void 0),v=P(o=>(n("pointermove",o),o.defaultPrevented),ce(o=>{if(e.disabled){u(o);return}const i=o.currentTarget;i===document.activeElement||i.contains(document.activeElement)||(r(o),o.defaultPrevented||i?.focus())})),m=P(o=>(n("pointerleave",o),o.defaultPrevented),ce(u)),f=P(o=>{if(!e.disabled)return n("click",o),o.type!=="keydown"&&o.defaultPrevented},o=>{var i,p,g;if(e.disabled){o.stopImmediatePropagation();return}(i=t?.hideOnClick)!=null&&i.value&&((p=t.handleClick)==null||p.call(t)),(g=t.commandHandler)==null||g.call(t,e.command,d,o)}),w=$(()=>({...e,...s}));return{handleClick:f,handlePointerMove:v,handlePointerLeave:m,textContent:c,propsAndAttrs:w}}});function Yo(e,n,s,t,d,a){var c;const r=I("el-dropdown-item-impl"),u=I("el-roving-focus-item"),v=I("el-dropdown-collection-item");return K(),U(v,{disabled:e.disabled,"text-value":(c=e.textValue)!=null?c:e.textContent},{default:_(()=>[S(u,{focusable:!e.disabled},{default:_(()=>[S(r,q(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:_(()=>[B(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Fe=L(zo,[["render",Yo],["__file","dropdown-item.vue"]]);const Jo=D({name:"ElDropdownMenu",props:yo,setup(e){const n=oe("dropdown"),{_elDropdownSize:s}=Oe(),t=s.value,{focusTrapRef:d,onKeydown:a}=h(eo,void 0),{contentRef:c,role:r,triggerId:u}=h(Z,void 0),{collectionRef:v,getItems:m}=h(No,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:w,tabIndex:o,onBlur:i,onFocus:p,onMousedown:g}=h(te,void 0),{collectionRef:M}=h(ne,void 0),F=$(()=>[n.b("menu"),n.bm("menu",t?.value)]),A=we(c,v,d,f,M),b=P(E=>{var G;(G=e.onKeydown)==null||G.call(e,E)},E=>{const{currentTarget:G,code:z,target:N}=E;if(G.contains(N),y.tab===z&&E.stopImmediatePropagation(),E.preventDefault(),N!==O(c)||!$o.includes(z))return;const j=m().filter(H=>!H.disabled).map(H=>H.ref);Te.includes(z)&&j.reverse(),le(j)});return{size:t,rovingFocusGroupRootStyle:w,tabIndex:o,dropdownKls:F,role:r,triggerId:u,dropdownListWrapperRef:A,handleKeydown:E=>{b(E),a(E)},onBlur:i,onFocus:p,onMousedown:g}}});function Uo(e,n,s,t,d,a){return K(),W("ul",{ref:e.dropdownListWrapperRef,class:Q(e.dropdownKls),style:Qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:ee(e.handleKeydown,["self"]),onMousedown:ee(e.onMousedown,["self"])},[B(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var Ne=L(Jo,[["render",Uo],["__file","dropdown-menu.vue"]]);const on=Xe(Bo,{DropdownItem:Fe,DropdownMenu:Ne}),nn=_e(Fe),tn=_e(Ne);export{tn as E,nn as a,on as b,ho as d}; +import{E as fe}from"./index-BWeK8p2T.js";import{d as P,u as de,r as Re,b as ke,O as Pe,E as Be,w as ce}from"./el-tag-CjAzCWMf.js";import{E as Ke}from"./el-scrollbar-DIXSy-7M.js";import{_ as L,a as D,r as B,z as C,y as h,I as Le,g as O,J as me,G as J,b as X,d as k,k as $,a1 as V,bC as De,F as ve,a5 as Me,aq as I,m as U,o as K,p as _,ab as S,b3 as Ae,b4 as Ge,R as ze,E as y,c as W,e as x,aD as Ye,q,n as Q,A as Je,L as ge,u as oe,aK as Ue,aV as He,H as be,$ as Ve,f as je,a6 as We,a7 as ee,P as qe,i as Qe,w as Xe,l as _e}from"./index-DpP8vbvu.js";import{a as Ze,e as Ie}from"./index-D7KcZu8a.js";import{c as xe}from"./el-select-BvsCrs4t.js";import{c as we}from"./el-dialog-wajnArIT.js";import{F as eo}from"./vnode-DPqF99Zc.js";const oo=D({inheritAttrs:!1});function no(e,n,s,t,d,a){return B(e.$slots,"default")}var to=L(oo,[["render",no],["__file","collection.vue"]]);const lo=D({name:"ElCollectionItem",inheritAttrs:!1});function ro(e,n,s,t,d,a){return B(e.$slots,"default")}var so=L(lo,[["render",ro],["__file","collection-item.vue"]]);const Ee="data-el-collection-item",Ce=e=>{const n=`El${e}Collection`,s=`${n}Item`,t=Symbol(n),d=Symbol(s),a={...to,name:n,setup(){const r=C(),u=new Map;J(t,{itemMap:u,getItems:()=>{const m=O(r);if(!m)return[];const f=Array.from(m.querySelectorAll(`[${Ee}]`));return[...u.values()].sort((o,i)=>f.indexOf(o.ref)-f.indexOf(i.ref))},collectionRef:r})}},c={...so,name:s,setup(r,{attrs:u}){const v=C(),m=h(t,void 0);J(d,{collectionItemRef:v}),Le(()=>{const f=O(v);f&&m.itemMap.set(f,{ref:f,...u})}),me(()=>{const f=O(v);m.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:t,COLLECTION_ITEM_INJECTION_KEY:d,ElCollection:a,ElCollectionItem:c}},ao=X({style:{type:k([String,Array,Object])},currentTabId:{type:k(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:k(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:io,ElCollectionItem:co,COLLECTION_INJECTION_KEY:ne,COLLECTION_ITEM_INJECTION_KEY:uo}=Ce("RovingFocusGroup"),te=Symbol("elRovingFocusGroup"),he=Symbol("elRovingFocusGroupItem"),po={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},fo=(e,n)=>e,mo=(e,n,s)=>{const t=fo(e.code);return po[t]},vo=(e,n)=>e.map((s,t)=>e[(t+n)%e.length]),le=e=>{const{activeElement:n}=document;for(const s of e)if(s===n||(s.focus(),n!==document.activeElement))return},ue="currentTabIdChange",pe="rovingFocusGroup.entryFocus",go={bubbles:!1,cancelable:!0},bo=D({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ao,emits:[ue,"entryFocus"],setup(e,{emit:n}){var s;const t=C((s=e.currentTabId||e.defaultCurrentTabId)!=null?s:null),d=C(!1),a=C(!1),c=C(),{getItems:r}=h(ne,void 0),u=$(()=>[{outline:"none"},e.style]),v=p=>{n(ue,p)},m=()=>{d.value=!0},f=P(p=>{var g;(g=e.onMousedown)==null||g.call(e,p)},()=>{a.value=!0}),w=P(p=>{var g;(g=e.onFocus)==null||g.call(e,p)},p=>{const g=!O(a),{target:M,currentTarget:F}=p;if(M===F&&g&&!O(d)){const A=new Event(pe,go);if(F?.dispatchEvent(A),!A.defaultPrevented){const b=r().filter(N=>N.focusable),R=b.find(N=>N.active),E=b.find(N=>N.id===O(t)),z=[R,E,...b].filter(Boolean).map(N=>N.ref);le(z)}}a.value=!1}),o=P(p=>{var g;(g=e.onBlur)==null||g.call(e,p)},()=>{d.value=!1}),i=(...p)=>{n("entryFocus",...p)};J(te,{currentTabbedId:De(t),loop:V(e,"loop"),tabIndex:$(()=>O(d)?-1:0),rovingFocusGroupRef:c,rovingFocusGroupRootStyle:u,orientation:V(e,"orientation"),dir:V(e,"dir"),onItemFocus:v,onItemShiftTab:m,onBlur:o,onFocus:w,onMousedown:f}),ve(()=>e.currentTabId,p=>{t.value=p??null}),Me(c,pe,i)}});function _o(e,n,s,t,d,a){return B(e.$slots,"default")}var Io=L(bo,[["render",_o],["__file","roving-focus-group-impl.vue"]]);const wo=D({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:io,ElRovingFocusGroupImpl:Io}});function Eo(e,n,s,t,d,a){const c=I("el-roving-focus-group-impl"),r=I("el-focus-group-collection");return K(),U(r,null,{default:_(()=>[S(c,Ae(Ge(e.$attrs)),{default:_(()=>[B(e.$slots,"default")]),_:3},16)]),_:3})}var Co=L(wo,[["render",Eo],["__file","roving-focus-group.vue"]]);const ho=X({trigger:ke.trigger,triggerKeys:{type:k(Array),default:()=>[y.enter,y.numpadEnter,y.space,y.down]},effect:{...de.effect,default:"light"},type:{type:k(String)},placement:{type:k(String),default:"bottom"},popperOptions:{type:k(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:k([Number,String]),default:0},maxHeight:{type:k([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:Re,default:"menu"},buttonProps:{type:k(Object)},teleported:de.teleported,persistent:{type:Boolean,default:!0}}),ye=X({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:ze}}),yo=X({onKeydown:{type:k(Function)}}),To=[y.down,y.pageDown,y.home],Te=[y.up,y.pageUp,y.end],$o=[...To,...Te],{ElCollection:Oo,ElCollectionItem:Fo,COLLECTION_INJECTION_KEY:No,COLLECTION_ITEM_INJECTION_KEY:So}=Ce("Dropdown"),Z=Symbol("elDropdown"),$e="elDropdown",{ButtonGroup:Ro}=fe,ko=D({name:"ElDropdown",components:{ElButton:fe,ElButtonGroup:Ro,ElScrollbar:Ke,ElDropdownCollection:Oo,ElTooltip:Be,ElRovingFocusGroup:Co,ElOnlyChild:Pe,ElIcon:ge,ArrowDown:Je},props:ho,emits:["visible-change","click","command"],setup(e,{emit:n}){const s=be(),t=oe("dropdown"),{t:d}=Ue(),a=C(),c=C(),r=C(),u=C(),v=C(null),m=C(null),f=C(!1),w=$(()=>({maxHeight:He(e.maxHeight)})),o=$(()=>[t.m(b.value)]),i=$(()=>xe(e.trigger)),p=Ie().value,g=$(()=>e.id||p);ve([a,i],([l,T],[Y])=>{var se,ae,ie;(se=Y?.$el)!=null&&se.removeEventListener&&Y.$el.removeEventListener("pointerenter",E),(ae=l?.$el)!=null&&ae.removeEventListener&&l.$el.removeEventListener("pointerenter",E),(ie=l?.$el)!=null&&ie.addEventListener&&T.includes("hover")&&l.$el.addEventListener("pointerenter",E)},{immediate:!0}),me(()=>{var l,T;(T=(l=a.value)==null?void 0:l.$el)!=null&&T.removeEventListener&&a.value.$el.removeEventListener("pointerenter",E)});function M(){F()}function F(){var l;(l=r.value)==null||l.onClose()}function A(){var l;(l=r.value)==null||l.onOpen()}const b=Ze();function R(...l){n("command",...l)}function E(){var l,T;(T=(l=a.value)==null?void 0:l.$el)==null||T.focus()}function G(){}function z(){const l=O(u);i.value.includes("hover")&&l?.focus(),m.value=null}function N(l){m.value=l}function re(l){f.value||(l.preventDefault(),l.stopImmediatePropagation())}function j(){n("visible-change",!0)}function H(l){var T;l?.type==="keydown"&&((T=u.value)==null||T.focus())}function Se(){n("visible-change",!1)}return J(Z,{contentRef:u,role:$(()=>e.role),triggerId:g,isUsingKeyboard:f,onItemEnter:G,onItemLeave:z}),J($e,{instance:s,dropdownSize:b,handleClick:M,commandHandler:R,trigger:V(e,"trigger"),hideOnClick:V(e,"hideOnClick")}),{t:d,ns:t,scrollbar:v,wrapStyle:w,dropdownTriggerKls:o,dropdownSize:b,triggerId:g,currentTabId:m,handleCurrentTabIdChange:N,handlerMainButtonClick:l=>{n("click",l)},handleEntryFocus:re,handleClose:F,handleOpen:A,handleBeforeShowTooltip:j,handleShowTooltip:H,handleBeforeHideTooltip:Se,onFocusAfterTrapped:l=>{var T,Y;l.preventDefault(),(Y=(T=u.value)==null?void 0:T.focus)==null||Y.call(T,{preventScroll:!0})},popperRef:r,contentRef:u,triggeringElementRef:a,referenceElementRef:c}}});function Po(e,n,s,t,d,a){var c;const r=I("el-dropdown-collection"),u=I("el-roving-focus-group"),v=I("el-scrollbar"),m=I("el-only-child"),f=I("el-tooltip"),w=I("el-button"),o=I("arrow-down"),i=I("el-icon"),p=I("el-button-group");return K(),W("div",{class:Q([e.ns.b(),e.ns.is("disabled",e.disabled)])},[S(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(c=e.referenceElementRef)==null?void 0:c.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ye({content:_(()=>[S(v,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:_(()=>[S(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:_(()=>[S(r,null,{default:_(()=>[B(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:_(()=>[S(m,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:_(()=>[B(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(K(),U(p,{key:0},{default:_(()=>[S(w,q({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:_(()=>[B(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),S(w,q({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:_(()=>[S(i,{class:Q(e.ns.e("icon"))},{default:_(()=>[S(o)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):x("v-if",!0)],2)}var Bo=L(ko,[["render",Po],["__file","dropdown.vue"]]);const Ko=D({components:{ElRovingFocusCollectionItem:co},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:n}){const{currentTabbedId:s,loop:t,onItemFocus:d,onItemShiftTab:a}=h(te,void 0),{getItems:c}=h(ne,void 0),r=Ie(),u=C(),v=P(o=>{n("mousedown",o)},o=>{e.focusable?d(O(r)):o.preventDefault()}),m=P(o=>{n("focus",o)},()=>{d(O(r))}),f=P(o=>{n("keydown",o)},o=>{const{code:i,shiftKey:p,target:g,currentTarget:M}=o;if(i===y.tab&&p){a();return}if(g!==M)return;const F=mo(o);if(F){o.preventDefault();let b=c().filter(R=>R.focusable).map(R=>R.ref);switch(F){case"last":{b.reverse();break}case"prev":case"next":{F==="prev"&&b.reverse();const R=b.indexOf(M);b=t.value?vo(b,R+1):b.slice(R+1);break}}Ve(()=>{le(b)})}}),w=$(()=>s.value===O(r));return J(he,{rovingFocusGroupItemRef:u,tabIndex:$(()=>O(w)?0:-1),handleMousedown:v,handleFocus:m,handleKeydown:f}),{id:r,handleKeydown:f,handleFocus:m,handleMousedown:v}}});function Lo(e,n,s,t,d,a){const c=I("el-roving-focus-collection-item");return K(),U(c,{id:e.id,focusable:e.focusable,active:e.active},{default:_(()=>[B(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Do=L(Ko,[["render",Lo],["__file","roving-focus-item.vue"]]);const Mo=D({name:"DropdownItemImpl",components:{ElIcon:ge},props:ye,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:n}){const s=oe("dropdown"),{role:t}=h(Z,void 0),{collectionItemRef:d}=h(So,void 0),{collectionItemRef:a}=h(uo,void 0),{rovingFocusGroupItemRef:c,tabIndex:r,handleFocus:u,handleKeydown:v,handleMousedown:m}=h(he,void 0),f=we(d,a,c),w=$(()=>t.value==="menu"?"menuitem":t.value==="navigation"?"link":"button"),o=P(i=>{if([y.enter,y.numpadEnter,y.space].includes(i.code))return i.preventDefault(),i.stopImmediatePropagation(),n("clickimpl",i),!0},v);return{ns:s,itemRef:f,dataset:{[Ee]:""},role:w,tabIndex:r,handleFocus:u,handleKeydown:o,handleMousedown:m}}});function Ao(e,n,s,t,d,a){const c=I("el-icon");return K(),W(qe,null,[e.divided?(K(),W("li",{key:0,role:"separator",class:Q(e.ns.bem("menu","item","divided"))},null,2)):x("v-if",!0),je("li",q({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:r=>e.$emit("clickimpl",r),onFocus:e.handleFocus,onKeydown:ee(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:r=>e.$emit("pointermove",r),onPointerleave:r=>e.$emit("pointerleave",r)}),[e.icon?(K(),U(c,{key:0},{default:_(()=>[(K(),U(We(e.icon)))]),_:1})):x("v-if",!0),B(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var Go=L(Mo,[["render",Ao],["__file","dropdown-item-impl.vue"]]);const Oe=()=>{const e=h($e,{}),n=$(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:n}},zo=D({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Fo,ElRovingFocusItem:Do,ElDropdownItemImpl:Go},inheritAttrs:!1,props:ye,emits:["pointermove","pointerleave","click"],setup(e,{emit:n,attrs:s}){const{elDropdown:t}=Oe(),d=be(),a=C(null),c=$(()=>{var o,i;return(i=(o=O(a))==null?void 0:o.textContent)!=null?i:""}),{onItemEnter:r,onItemLeave:u}=h(Z,void 0),v=P(o=>(n("pointermove",o),o.defaultPrevented),ce(o=>{if(e.disabled){u(o);return}const i=o.currentTarget;i===document.activeElement||i.contains(document.activeElement)||(r(o),o.defaultPrevented||i?.focus())})),m=P(o=>(n("pointerleave",o),o.defaultPrevented),ce(u)),f=P(o=>{if(!e.disabled)return n("click",o),o.type!=="keydown"&&o.defaultPrevented},o=>{var i,p,g;if(e.disabled){o.stopImmediatePropagation();return}(i=t?.hideOnClick)!=null&&i.value&&((p=t.handleClick)==null||p.call(t)),(g=t.commandHandler)==null||g.call(t,e.command,d,o)}),w=$(()=>({...e,...s}));return{handleClick:f,handlePointerMove:v,handlePointerLeave:m,textContent:c,propsAndAttrs:w}}});function Yo(e,n,s,t,d,a){var c;const r=I("el-dropdown-item-impl"),u=I("el-roving-focus-item"),v=I("el-dropdown-collection-item");return K(),U(v,{disabled:e.disabled,"text-value":(c=e.textValue)!=null?c:e.textContent},{default:_(()=>[S(u,{focusable:!e.disabled},{default:_(()=>[S(r,q(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:_(()=>[B(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Fe=L(zo,[["render",Yo],["__file","dropdown-item.vue"]]);const Jo=D({name:"ElDropdownMenu",props:yo,setup(e){const n=oe("dropdown"),{_elDropdownSize:s}=Oe(),t=s.value,{focusTrapRef:d,onKeydown:a}=h(eo,void 0),{contentRef:c,role:r,triggerId:u}=h(Z,void 0),{collectionRef:v,getItems:m}=h(No,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:w,tabIndex:o,onBlur:i,onFocus:p,onMousedown:g}=h(te,void 0),{collectionRef:M}=h(ne,void 0),F=$(()=>[n.b("menu"),n.bm("menu",t?.value)]),A=we(c,v,d,f,M),b=P(E=>{var G;(G=e.onKeydown)==null||G.call(e,E)},E=>{const{currentTarget:G,code:z,target:N}=E;if(G.contains(N),y.tab===z&&E.stopImmediatePropagation(),E.preventDefault(),N!==O(c)||!$o.includes(z))return;const j=m().filter(H=>!H.disabled).map(H=>H.ref);Te.includes(z)&&j.reverse(),le(j)});return{size:t,rovingFocusGroupRootStyle:w,tabIndex:o,dropdownKls:F,role:r,triggerId:u,dropdownListWrapperRef:A,handleKeydown:E=>{b(E),a(E)},onBlur:i,onFocus:p,onMousedown:g}}});function Uo(e,n,s,t,d,a){return K(),W("ul",{ref:e.dropdownListWrapperRef,class:Q(e.dropdownKls),style:Qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:ee(e.handleKeydown,["self"]),onMousedown:ee(e.onMousedown,["self"])},[B(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var Ne=L(Jo,[["render",Uo],["__file","dropdown-menu.vue"]]);const on=Xe(Bo,{DropdownItem:Fe,DropdownMenu:Ne}),nn=_e(Fe),tn=_e(Ne);export{tn as E,nn as a,on as b,ho as d}; diff --git a/mail-worker/dist/assets/el-empty-BvlQK5UB.js b/mail-worker/dist/assets/el-empty-BRrnteWe.js similarity index 97% rename from mail-worker/dist/assets/el-empty-BvlQK5UB.js rename to mail-worker/dist/assets/el-empty-BRrnteWe.js index c0848f4..bef72f3 100644 --- a/mail-worker/dist/assets/el-empty-BvlQK5UB.js +++ b/mail-worker/dist/assets/el-empty-BRrnteWe.js @@ -1 +1 @@ -import{_ as u,a as c,u as y,c as r,o as n,f as l,g as a,b as k,aK as v,k as d,aV as $,e as h,r as f,ab as _,i as N,n as i,t as w,w as B}from"./index-C-CeCRdr.js";import{e as V}from"./index-DbudBMlZ.js";const x=c({name:"ImgEmpty"}),E=c({...x,setup(m){const s=y("empty"),e=V();return(o,p)=>(n(),r("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[l("defs",null,[l("linearGradient",{id:`linearGradient-1-${a(e)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[l("stop",{"stop-color":`var(${a(s).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${a(s).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("linearGradient",{id:`linearGradient-2-${a(e)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[l("stop",{"stop-color":`var(${a(s).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${a(s).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("rect",{id:`path-3-${a(e)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),l("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(-1268.000000, -535.000000)"},[l("g",{transform:"translate(1268.000000, 535.000000)"},[l("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${a(s).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),l("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),l("rect",{fill:`url(#linearGradient-1-${a(e)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),l("rect",{fill:`url(#linearGradient-2-${a(e)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),l("g",{transform:"translate(53.000000, 45.000000)"},[l("use",{fill:`var(${a(s).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${a(e)}`},null,8,["fill","xlink:href"]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${a(e)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var S=u(E,[["__file","img-empty.vue"]]);const b=k({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),C=c({name:"ElEmpty"}),G=c({...C,props:b,setup(m){const s=m,{t:e}=v(),o=y("empty"),p=d(()=>s.description||e("el.table.emptyText")),g=d(()=>({width:$(s.imageSize)}));return(t,I)=>(n(),r("div",{class:i(a(o).b())},[l("div",{class:i(a(o).e("image")),style:N(a(g))},[t.image?(n(),r("img",{key:0,src:t.image,ondragstart:"return false"},null,8,["src"])):f(t.$slots,"image",{key:1},()=>[_(S)])],6),l("div",{class:i(a(o).e("description"))},[t.$slots.description?f(t.$slots,"description",{key:0}):(n(),r("p",{key:1},w(a(p)),1))],2),t.$slots.default?(n(),r("div",{key:0,class:i(a(o).e("bottom"))},[f(t.$slots,"default")],2)):h("v-if",!0)],2))}});var z=u(G,[["__file","empty.vue"]]);const K=B(z);export{K as E}; +import{_ as u,a as c,u as y,c as r,o as n,f as l,g as a,b as k,aK as v,k as d,aV as $,e as h,r as f,ab as _,i as N,n as i,t as w,w as B}from"./index-DpP8vbvu.js";import{e as V}from"./index-D7KcZu8a.js";const x=c({name:"ImgEmpty"}),E=c({...x,setup(m){const s=y("empty"),e=V();return(o,p)=>(n(),r("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[l("defs",null,[l("linearGradient",{id:`linearGradient-1-${a(e)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[l("stop",{"stop-color":`var(${a(s).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${a(s).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("linearGradient",{id:`linearGradient-2-${a(e)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[l("stop",{"stop-color":`var(${a(s).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),l("stop",{"stop-color":`var(${a(s).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),l("rect",{id:`path-3-${a(e)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),l("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[l("g",{transform:"translate(-1268.000000, -535.000000)"},[l("g",{transform:"translate(1268.000000, 535.000000)"},[l("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${a(s).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),l("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),l("rect",{fill:`url(#linearGradient-1-${a(e)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),l("rect",{fill:`url(#linearGradient-2-${a(e)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),l("g",{transform:"translate(53.000000, 45.000000)"},[l("use",{fill:`var(${a(s).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${a(e)}`},null,8,["fill","xlink:href"]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${a(e)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),l("polygon",{fill:`var(${a(s).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var S=u(E,[["__file","img-empty.vue"]]);const b=k({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),C=c({name:"ElEmpty"}),G=c({...C,props:b,setup(m){const s=m,{t:e}=v(),o=y("empty"),p=d(()=>s.description||e("el.table.emptyText")),g=d(()=>({width:$(s.imageSize)}));return(t,I)=>(n(),r("div",{class:i(a(o).b())},[l("div",{class:i(a(o).e("image")),style:N(a(g))},[t.image?(n(),r("img",{key:0,src:t.image,ondragstart:"return false"},null,8,["src"])):f(t.$slots,"image",{key:1},()=>[_(S)])],6),l("div",{class:i(a(o).e("description"))},[t.$slots.description?f(t.$slots,"description",{key:0}):(n(),r("p",{key:1},w(a(p)),1))],2),t.$slots.default?(n(),r("div",{key:0,class:i(a(o).e("bottom"))},[f(t.$slots,"default")],2)):h("v-if",!0)],2))}});var z=u(G,[["__file","empty.vue"]]);const K=B(z);export{K as E}; diff --git a/mail-worker/dist/assets/el-image-viewer-XqafIo0e.js b/mail-worker/dist/assets/el-image-viewer-BT4BRtUp.js similarity index 97% rename from mail-worker/dist/assets/el-image-viewer-XqafIo0e.js rename to mail-worker/dist/assets/el-image-viewer-BT4BRtUp.js index f5cb389..2fe337c 100644 --- a/mail-worker/dist/assets/el-image-viewer-XqafIo0e.js +++ b/mail-worker/dist/assets/el-image-viewer-BT4BRtUp.js @@ -1 +1 @@ -import{aQ as Q,b as ye,d as J,Z as Ie,_ as Ce,a as se,bf as U,bg as xe,bh as Ne,aK as ze,u as Ee,bi as Le,z as y,bj as Te,as as Oe,k as b,F as ee,I as Re,a5 as z,m as ae,o as w,p as d,ab as l,T as $e,f as v,i as te,n as c,g as a,e as h,c as E,r as A,a7 as Se,L as k,a2 as Me,P as B,aT as Pe,B as Ve,h as Ye,t as Ae,bk as Be,bl as De,a6 as Xe,bm as Fe,bn as He,ap as Ke,av as We,E as I,$ as Ze,w as je}from"./index-C-CeCRdr.js";import{a as qe,b as Ge}from"./vnode-iQPJucW4.js";import{t as D}from"./throttle-CyPLJsF9.js";const Qe=ye({urlList:{type:J(Array),default:()=>Ie([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),Je={close:()=>!0,switch:C=>Q(C),rotate:C=>Q(C)},Ue=se({name:"ElImageViewer"}),ea=se({...Ue,props:Qe,emits:Je,setup(C,{expose:ne,emit:L}){var X;const r=C,x={CONTAIN:{name:"contain",icon:U(Ne)},ORIGINAL:{name:"original",icon:U(xe)}};let $,F="";const{t:oe}=ze(),s=Ee("image-viewer"),{nextZIndex:le}=Le(),S=y(),H=y([]),K=Te(),_=y(!0),u=y(r.initialIndex),T=Oe(x.CONTAIN),n=y({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),re=y((X=r.zIndex)!=null?X:le()),ie=b(()=>{const{urlList:e}=r;return e.length<=1}),W=b(()=>u.value===0),Z=b(()=>u.value===r.urlList.length-1),ce=b(()=>r.urlList[u.value]),ue=b(()=>[s.e("btn"),s.e("prev"),s.is("disabled",!r.infinite&&W.value)]),de=b(()=>[s.e("btn"),s.e("next"),s.is("disabled",!r.infinite&&Z.value)]),fe=b(()=>{const{scale:e,deg:o,offsetX:t,offsetY:i,enableTransition:f}=n.value;let m=t/e,g=i/e;const N=o*Math.PI/180,q=Math.cos(N),G=Math.sin(N);m=m*q+g*G,g=g*q-t/e*G;const Y={transform:`scale(${e}) rotate(${o}deg) translate(${m}px, ${g}px)`,transition:f?"transform .3s":""};return T.value.name===x.CONTAIN.name&&(Y.maxWidth=Y.maxHeight="100%"),Y}),me=b(()=>`${u.value+1} / ${r.urlList.length}`);function O(){pe(),$?.(),document.body.style.overflow=F,L("close")}function ve(){const e=D(t=>{switch(t.code){case I.esc:r.closeOnPressEscape&&O();break;case I.space:M();break;case I.left:P();break;case I.up:p("zoomIn");break;case I.right:V();break;case I.down:p("zoomOut");break}}),o=D(t=>{const i=t.deltaY||t.deltaX;p(i<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});K.run(()=>{z(document,"keydown",e),z(document,"wheel",o)})}function pe(){K.stop()}function ge(){_.value=!1}function be(e){_.value=!1,e.target.alt=oe("el.image.error")}function ke(e){if(_.value||e.button!==0||!S.value)return;n.value.enableTransition=!1;const{offsetX:o,offsetY:t}=n.value,i=e.pageX,f=e.pageY,m=D(N=>{n.value={...n.value,offsetX:o+N.pageX-i,offsetY:t+N.pageY-f}}),g=z(document,"mousemove",m);z(document,"mouseup",()=>{g()}),e.preventDefault()}function j(){n.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function M(){if(_.value)return;const e=We(x),o=Object.values(x),t=T.value.name,f=(o.findIndex(m=>m.name===t)+1)%e.length;T.value=x[e[f]],j()}function R(e){const o=r.urlList.length;u.value=(e+o)%o}function P(){W.value&&!r.infinite||R(u.value-1)}function V(){Z.value&&!r.infinite||R(u.value+1)}function p(e,o={}){if(_.value)return;const{minScale:t,maxScale:i}=r,{zoomRate:f,rotateDeg:m,enableTransition:g}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...o};switch(e){case"zoomOut":n.value.scale>t&&(n.value.scale=Number.parseFloat((n.value.scale/f).toFixed(3)));break;case"zoomIn":n.value.scale0)return e.preventDefault(),!1}}return ee(ce,()=>{Ze(()=>{const e=H.value[0];e?.complete||(_.value=!0)})}),ee(u,e=>{j(),L("switch",e)}),Re(()=>{ve(),$=z("wheel",_e,{passive:!1}),F=document.body.style.overflow,document.body.style.overflow="hidden"}),ne({setActiveItem:R}),(e,o)=>(w(),ae(a(Ge),{to:"body",disabled:!e.teleported},{default:d(()=>[l($e,{name:"viewer-fade",appear:""},{default:d(()=>[v("div",{ref_key:"wrapper",ref:S,tabindex:-1,class:c(a(s).e("wrapper")),style:te({zIndex:re.value})},[l(a(qe),{loop:"",trapped:"","focus-trap-el":S.value,"focus-start-el":"container",onFocusoutPrevented:we,onReleaseRequested:he},{default:d(()=>[v("div",{class:c(a(s).e("mask")),onClick:Se(t=>e.hideOnClickModal&&O(),["self"])},null,10,["onClick"]),h(" CLOSE "),v("span",{class:c([a(s).e("btn"),a(s).e("close")]),onClick:O},[l(a(k),null,{default:d(()=>[l(a(Me))]),_:1})],2),h(" ARROW "),a(ie)?h("v-if",!0):(w(),E(B,{key:0},[v("span",{class:c(a(ue)),onClick:P},[l(a(k),null,{default:d(()=>[l(a(Pe))]),_:1})],2),v("span",{class:c(a(de)),onClick:V},[l(a(k),null,{default:d(()=>[l(a(Ve))]),_:1})],2)],64)),e.$slots.progress||e.showProgress?(w(),E("div",{key:1,class:c([a(s).e("btn"),a(s).e("progress")])},[A(e.$slots,"progress",{activeIndex:u.value,total:e.urlList.length},()=>[Ye(Ae(a(me)),1)])],2)):h("v-if",!0),h(" ACTIONS "),v("div",{class:c([a(s).e("btn"),a(s).e("actions")])},[v("div",{class:c(a(s).e("actions__inner"))},[A(e.$slots,"toolbar",{actions:p,prev:P,next:V,reset:M,activeIndex:u.value,setActiveItem:R},()=>[l(a(k),{onClick:t=>p("zoomOut")},{default:d(()=>[l(a(Be))]),_:1},8,["onClick"]),l(a(k),{onClick:t=>p("zoomIn")},{default:d(()=>[l(a(De))]),_:1},8,["onClick"]),v("i",{class:c(a(s).e("actions__divider"))},null,2),l(a(k),{onClick:M},{default:d(()=>[(w(),ae(Xe(a(T).icon)))]),_:1}),v("i",{class:c(a(s).e("actions__divider"))},null,2),l(a(k),{onClick:t=>p("anticlockwise")},{default:d(()=>[l(a(Fe))]),_:1},8,["onClick"]),l(a(k),{onClick:t=>p("clockwise")},{default:d(()=>[l(a(He))]),_:1},8,["onClick"])])],2)],2),h(" CANVAS "),v("div",{class:c(a(s).e("canvas"))},[(w(!0),E(B,null,Ke(e.urlList,(t,i)=>(w(),E(B,{key:i},[i===u.value?(w(),E("img",{key:0,ref_for:!0,ref:f=>H.value[i]=f,src:t,style:te(a(fe)),class:c(a(s).e("img")),crossorigin:e.crossorigin,onLoad:ge,onError:be,onMousedown:ke},null,46,["src","crossorigin"])):h("v-if",!0)],64))),128))],2),A(e.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var aa=Ce(ea,[["__file","image-viewer.vue"]]);const oa=je(aa);export{oa as E}; +import{aQ as Q,b as ye,d as J,Z as Ie,_ as Ce,a as se,bf as U,bg as xe,bh as Ne,aK as ze,u as Ee,bi as Le,z as y,bj as Te,as as Oe,k as b,F as ee,I as Re,a5 as z,m as ae,o as w,p as d,ab as l,T as $e,f as v,i as te,n as c,g as a,e as h,c as E,r as A,a7 as Se,L as k,a2 as Me,P as B,aT as Pe,B as Ve,h as Ye,t as Ae,bk as Be,bl as De,a6 as Xe,bm as Fe,bn as He,ap as Ke,av as We,E as I,$ as Ze,w as je}from"./index-DpP8vbvu.js";import{a as qe,b as Ge}from"./vnode-DPqF99Zc.js";import{t as D}from"./throttle-BCwYugI2.js";const Qe=ye({urlList:{type:J(Array),default:()=>Ie([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),Je={close:()=>!0,switch:C=>Q(C),rotate:C=>Q(C)},Ue=se({name:"ElImageViewer"}),ea=se({...Ue,props:Qe,emits:Je,setup(C,{expose:ne,emit:L}){var X;const r=C,x={CONTAIN:{name:"contain",icon:U(Ne)},ORIGINAL:{name:"original",icon:U(xe)}};let $,F="";const{t:oe}=ze(),s=Ee("image-viewer"),{nextZIndex:le}=Le(),S=y(),H=y([]),K=Te(),_=y(!0),u=y(r.initialIndex),T=Oe(x.CONTAIN),n=y({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),re=y((X=r.zIndex)!=null?X:le()),ie=b(()=>{const{urlList:e}=r;return e.length<=1}),W=b(()=>u.value===0),Z=b(()=>u.value===r.urlList.length-1),ce=b(()=>r.urlList[u.value]),ue=b(()=>[s.e("btn"),s.e("prev"),s.is("disabled",!r.infinite&&W.value)]),de=b(()=>[s.e("btn"),s.e("next"),s.is("disabled",!r.infinite&&Z.value)]),fe=b(()=>{const{scale:e,deg:o,offsetX:t,offsetY:i,enableTransition:f}=n.value;let m=t/e,g=i/e;const N=o*Math.PI/180,q=Math.cos(N),G=Math.sin(N);m=m*q+g*G,g=g*q-t/e*G;const Y={transform:`scale(${e}) rotate(${o}deg) translate(${m}px, ${g}px)`,transition:f?"transform .3s":""};return T.value.name===x.CONTAIN.name&&(Y.maxWidth=Y.maxHeight="100%"),Y}),me=b(()=>`${u.value+1} / ${r.urlList.length}`);function O(){pe(),$?.(),document.body.style.overflow=F,L("close")}function ve(){const e=D(t=>{switch(t.code){case I.esc:r.closeOnPressEscape&&O();break;case I.space:M();break;case I.left:P();break;case I.up:p("zoomIn");break;case I.right:V();break;case I.down:p("zoomOut");break}}),o=D(t=>{const i=t.deltaY||t.deltaX;p(i<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});K.run(()=>{z(document,"keydown",e),z(document,"wheel",o)})}function pe(){K.stop()}function ge(){_.value=!1}function be(e){_.value=!1,e.target.alt=oe("el.image.error")}function ke(e){if(_.value||e.button!==0||!S.value)return;n.value.enableTransition=!1;const{offsetX:o,offsetY:t}=n.value,i=e.pageX,f=e.pageY,m=D(N=>{n.value={...n.value,offsetX:o+N.pageX-i,offsetY:t+N.pageY-f}}),g=z(document,"mousemove",m);z(document,"mouseup",()=>{g()}),e.preventDefault()}function j(){n.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function M(){if(_.value)return;const e=We(x),o=Object.values(x),t=T.value.name,f=(o.findIndex(m=>m.name===t)+1)%e.length;T.value=x[e[f]],j()}function R(e){const o=r.urlList.length;u.value=(e+o)%o}function P(){W.value&&!r.infinite||R(u.value-1)}function V(){Z.value&&!r.infinite||R(u.value+1)}function p(e,o={}){if(_.value)return;const{minScale:t,maxScale:i}=r,{zoomRate:f,rotateDeg:m,enableTransition:g}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...o};switch(e){case"zoomOut":n.value.scale>t&&(n.value.scale=Number.parseFloat((n.value.scale/f).toFixed(3)));break;case"zoomIn":n.value.scale0)return e.preventDefault(),!1}}return ee(ce,()=>{Ze(()=>{const e=H.value[0];e?.complete||(_.value=!0)})}),ee(u,e=>{j(),L("switch",e)}),Re(()=>{ve(),$=z("wheel",_e,{passive:!1}),F=document.body.style.overflow,document.body.style.overflow="hidden"}),ne({setActiveItem:R}),(e,o)=>(w(),ae(a(Ge),{to:"body",disabled:!e.teleported},{default:d(()=>[l($e,{name:"viewer-fade",appear:""},{default:d(()=>[v("div",{ref_key:"wrapper",ref:S,tabindex:-1,class:c(a(s).e("wrapper")),style:te({zIndex:re.value})},[l(a(qe),{loop:"",trapped:"","focus-trap-el":S.value,"focus-start-el":"container",onFocusoutPrevented:we,onReleaseRequested:he},{default:d(()=>[v("div",{class:c(a(s).e("mask")),onClick:Se(t=>e.hideOnClickModal&&O(),["self"])},null,10,["onClick"]),h(" CLOSE "),v("span",{class:c([a(s).e("btn"),a(s).e("close")]),onClick:O},[l(a(k),null,{default:d(()=>[l(a(Me))]),_:1})],2),h(" ARROW "),a(ie)?h("v-if",!0):(w(),E(B,{key:0},[v("span",{class:c(a(ue)),onClick:P},[l(a(k),null,{default:d(()=>[l(a(Pe))]),_:1})],2),v("span",{class:c(a(de)),onClick:V},[l(a(k),null,{default:d(()=>[l(a(Ve))]),_:1})],2)],64)),e.$slots.progress||e.showProgress?(w(),E("div",{key:1,class:c([a(s).e("btn"),a(s).e("progress")])},[A(e.$slots,"progress",{activeIndex:u.value,total:e.urlList.length},()=>[Ye(Ae(a(me)),1)])],2)):h("v-if",!0),h(" ACTIONS "),v("div",{class:c([a(s).e("btn"),a(s).e("actions")])},[v("div",{class:c(a(s).e("actions__inner"))},[A(e.$slots,"toolbar",{actions:p,prev:P,next:V,reset:M,activeIndex:u.value,setActiveItem:R},()=>[l(a(k),{onClick:t=>p("zoomOut")},{default:d(()=>[l(a(Be))]),_:1},8,["onClick"]),l(a(k),{onClick:t=>p("zoomIn")},{default:d(()=>[l(a(De))]),_:1},8,["onClick"]),v("i",{class:c(a(s).e("actions__divider"))},null,2),l(a(k),{onClick:M},{default:d(()=>[(w(),ae(Xe(a(T).icon)))]),_:1}),v("i",{class:c(a(s).e("actions__divider"))},null,2),l(a(k),{onClick:t=>p("anticlockwise")},{default:d(()=>[l(a(Fe))]),_:1},8,["onClick"]),l(a(k),{onClick:t=>p("clockwise")},{default:d(()=>[l(a(He))]),_:1},8,["onClick"])])],2)],2),h(" CANVAS "),v("div",{class:c(a(s).e("canvas"))},[(w(!0),E(B,null,Ke(e.urlList,(t,i)=>(w(),E(B,{key:i},[i===u.value?(w(),E("img",{key:0,ref_for:!0,ref:f=>H.value[i]=f,src:t,style:te(a(fe)),class:c(a(s).e("img")),crossorigin:e.crossorigin,onLoad:ge,onError:be,onMousedown:ke},null,46,["src","crossorigin"])):h("v-if",!0)],64))),128))],2),A(e.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var aa=Ce(ea,[["__file","image-viewer.vue"]]);const oa=je(aa);export{oa as E}; diff --git a/mail-worker/dist/assets/el-input-number-DqvIaVQO.js b/mail-worker/dist/assets/el-input-number-C8iF0RkI.js similarity index 96% rename from mail-worker/dist/assets/el-input-number-DqvIaVQO.js rename to mail-worker/dist/assets/el-input-number-C8iF0RkI.js index ff28304..f82e8a4 100644 --- a/mail-worker/dist/assets/el-input-number-DqvIaVQO.js +++ b/mail-worker/dist/assets/el-input-number-C8iF0RkI.js @@ -1 +1 @@ -import{ac as Q,aQ as b,X as y,b as de,d as ce,aS as me,_ as pe,a as ee,aK as fe,u as be,z as ve,D as Ne,k as h,C as A,F as Ee,I as Ve,aX as he,c as $,o as v,N as Y,e as j,ab as z,g as a,aP as P,n as K,r as F,p as T,m as C,A as ye,bD as Ie,L as q,bB as ge,bE as we,aD as _e,a7 as G,M as Se,w as Ae}from"./index-C-CeCRdr.js";import{E as Pe}from"./vnode-iQPJucW4.js";import{u as Fe,d as J,t as Te}from"./index-mPHfnfYT.js";import{U as N,I as D,C as ne}from"./event-BB_Ol6Sd.js";import{b as Ce,a as De,d as Me}from"./index-DbudBMlZ.js";const ke=100,Be=600,Z={beforeMount(l,E){const i=E.value,{interval:r=ke,delay:I=Be}=Q(i)?{}:i;let d,m;const u=()=>Q(i)?i():i.handler(),p=()=>{m&&(clearTimeout(m),m=void 0),d&&(clearInterval(d),d=void 0)};l.addEventListener("mousedown",g=>{g.button===0&&(p(),u(),document.addEventListener("mouseup",()=>p(),{once:!0}),m=setTimeout(()=>{d=setInterval(()=>{u()},r)},I))})}},xe=de({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:me,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:l=>l===null||b(l)||["min","max"].includes(l),default:null},name:String,placeholder:String,precision:{type:Number,validator:l=>l>=0&&l===Number.parseInt(`${l}`,10)},validateEvent:{type:Boolean,default:!0},...Fe(["ariaLabel"]),inputmode:{type:ce(String),default:void 0}}),Le={[ne]:(l,E)=>E!==l,blur:l=>l instanceof FocusEvent,focus:l=>l instanceof FocusEvent,[D]:l=>b(l)||y(l),[N]:l=>b(l)||y(l)},Re=ee({name:"ElInputNumber"}),$e=ee({...Re,props:xe,emits:Le,setup(l,{expose:E,emit:i}){const r=l,{t:I}=fe(),d=be("input-number"),m=ve(),u=Ne({currentValue:r.modelValue,userInput:null}),{formItem:p}=Ce(),g=h(()=>b(r.modelValue)&&r.modelValue<=r.min),O=h(()=>b(r.modelValue)&&r.modelValue>=r.max),te=h(()=>{const e=X(r.step);return A(r.precision)?Math.max(X(r.modelValue),e):(e>r.precision,r.precision)}),M=h(()=>r.controls&&r.controlsPosition==="right"),U=De(),V=Me(),k=h(()=>{if(u.userInput!==null)return u.userInput;let e=u.currentValue;if(y(e))return"";if(b(e)){if(Number.isNaN(e))return"";A(r.precision)||(e=e.toFixed(r.precision))}return e}),B=(e,n)=>{if(A(n)&&(n=te.value),n===0)return Math.round(e);let t=String(e);const s=t.indexOf(".");if(s===-1||!t.replace(".","").split("")[s+n])return e;const _=t.length;return t.charAt(_-1)==="5"&&(t=`${t.slice(0,Math.max(0,_-1))}6`),Number.parseFloat(Number(t).toFixed(n))},X=e=>{if(y(e))return 0;const n=e.toString(),t=n.indexOf(".");let s=0;return t!==-1&&(s=n.length-t-1),s},W=(e,n=1)=>b(e)?e>=Number.MAX_SAFE_INTEGER&&n===1||e<=Number.MIN_SAFE_INTEGER&&n===-1?e:B(e+r.step*n):u.currentValue,x=()=>{if(r.readonly||V.value||O.value)return;const e=Number(k.value)||0,n=W(e);w(n),i(D,u.currentValue),R()},L=()=>{if(r.readonly||V.value||g.value)return;const e=Number(k.value)||0,n=W(e,-1);w(n),i(D,u.currentValue),R()},H=(e,n)=>{const{max:t,min:s,step:o,precision:f,stepStrictly:_,valueOnClear:S}=r;tt||ct?t:s,n&&i(N,c)),c},w=(e,n=!0)=>{var t;const s=u.currentValue,o=H(e);if(!n){i(N,o);return}s===o&&e||(u.userInput=null,i(N,o),s!==o&&i(ne,o,s),r.validateEvent&&((t=p?.validate)==null||t.call(p,"change").catch(f=>J())),u.currentValue=o)},ae=e=>{u.userInput=e;const n=e===""?null:Number(e);i(D,n),w(n,!1)},re=e=>{const n=e!==""?Number(e):"";(b(n)&&!Number.isNaN(n)||e==="")&&w(n),R(),u.userInput=null},ue=()=>{var e,n;(n=(e=m.value)==null?void 0:e.focus)==null||n.call(e)},le=()=>{var e,n;(n=(e=m.value)==null?void 0:e.blur)==null||n.call(e)},se=e=>{i("focus",e)},oe=e=>{var n,t;u.userInput=null,u.currentValue===null&&((n=m.value)!=null&&n.input)&&(m.value.input.value=""),i("blur",e),r.validateEvent&&((t=p?.validate)==null||t.call(p,"blur").catch(s=>J()))},R=()=>{u.currentValue!==r.modelValue&&(u.currentValue=r.modelValue)},ie=e=>{document.activeElement===e.target&&e.preventDefault()};return Ee(()=>r.modelValue,(e,n)=>{const t=H(e,!0);u.userInput===null&&t!==n&&(u.currentValue=t)},{immediate:!0}),Ve(()=>{var e;const{min:n,max:t,modelValue:s}=r,o=(e=m.value)==null?void 0:e.input;if(o.setAttribute("role","spinbutton"),Number.isFinite(t)?o.setAttribute("aria-valuemax",String(t)):o.removeAttribute("aria-valuemax"),Number.isFinite(n)?o.setAttribute("aria-valuemin",String(n)):o.removeAttribute("aria-valuemin"),o.setAttribute("aria-valuenow",u.currentValue||u.currentValue===0?String(u.currentValue):""),o.setAttribute("aria-disabled",String(V.value)),!b(s)&&s!=null){let f=Number(s);Number.isNaN(f)&&(f=null),i(N,f)}o.addEventListener("wheel",ie,{passive:!1})}),he(()=>{var e,n;const t=(e=m.value)==null?void 0:e.input;t?.setAttribute("aria-valuenow",`${(n=u.currentValue)!=null?n:""}`)}),E({focus:ue,blur:le}),(e,n)=>(v(),$("div",{class:K([a(d).b(),a(d).m(a(U)),a(d).is("disabled",a(V)),a(d).is("without-controls",!e.controls),a(d).is("controls-right",a(M))]),onDragstart:G(()=>{},["prevent"])},[e.controls?Y((v(),$("span",{key:0,role:"button","aria-label":a(I)("el.inputNumber.decrease"),class:K([a(d).e("decrease"),a(d).is("disabled",a(g))]),onKeydown:P(L,["enter"])},[F(e.$slots,"decrease-icon",{},()=>[z(a(q),null,{default:T(()=>[a(M)?(v(),C(a(ye),{key:0})):(v(),C(a(Ie),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[a(Z),L]]):j("v-if",!0),e.controls?Y((v(),$("span",{key:1,role:"button","aria-label":a(I)("el.inputNumber.increase"),class:K([a(d).e("increase"),a(d).is("disabled",a(O))]),onKeydown:P(x,["enter"])},[F(e.$slots,"increase-icon",{},()=>[z(a(q),null,{default:T(()=>[a(M)?(v(),C(a(ge),{key:0})):(v(),C(a(we),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[a(Z),x]]):j("v-if",!0),z(a(Pe),{id:e.id,ref_key:"input",ref:m,type:"number",step:e.step,"model-value":a(k),placeholder:e.placeholder,readonly:e.readonly,disabled:a(V),size:a(U),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:[P(G(x,["prevent"]),["up"]),P(G(L,["prevent"]),["down"])],onBlur:oe,onFocus:se,onInput:ae,onChange:re},_e({_:2},[e.$slots.prefix?{name:"prefix",fn:T(()=>[F(e.$slots,"prefix")])}:void 0,e.$slots.suffix?{name:"suffix",fn:T(()=>[F(e.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode","onKeydown"])],42,["onDragstart"]))}});var ze=pe($e,[["__file","input-number.vue"]]);const We=Ae(ze);export{We as E,Z as v}; +import{ac as Q,aQ as b,X as y,b as de,d as ce,aS as me,_ as pe,a as ee,aK as fe,u as be,z as ve,D as Ne,k as h,C as A,F as Ee,I as Ve,aX as he,c as $,o as v,N as Y,e as j,ab as z,g as a,aP as P,n as K,r as F,p as T,m as C,A as ye,bD as Ie,L as q,bB as ge,bE as we,aD as _e,a7 as G,M as Se,w as Ae}from"./index-DpP8vbvu.js";import{E as Pe}from"./vnode-DPqF99Zc.js";import{u as Fe,d as J,t as Te}from"./index-BMdPKuCq.js";import{U as N,I as D,C as ne}from"./event-BB_Ol6Sd.js";import{b as Ce,a as De,d as Me}from"./index-D7KcZu8a.js";const ke=100,Be=600,Z={beforeMount(l,E){const i=E.value,{interval:r=ke,delay:I=Be}=Q(i)?{}:i;let d,m;const u=()=>Q(i)?i():i.handler(),p=()=>{m&&(clearTimeout(m),m=void 0),d&&(clearInterval(d),d=void 0)};l.addEventListener("mousedown",g=>{g.button===0&&(p(),u(),document.addEventListener("mouseup",()=>p(),{once:!0}),m=setTimeout(()=>{d=setInterval(()=>{u()},r)},I))})}},xe=de({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:me,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:l=>l===null||b(l)||["min","max"].includes(l),default:null},name:String,placeholder:String,precision:{type:Number,validator:l=>l>=0&&l===Number.parseInt(`${l}`,10)},validateEvent:{type:Boolean,default:!0},...Fe(["ariaLabel"]),inputmode:{type:ce(String),default:void 0}}),Le={[ne]:(l,E)=>E!==l,blur:l=>l instanceof FocusEvent,focus:l=>l instanceof FocusEvent,[D]:l=>b(l)||y(l),[N]:l=>b(l)||y(l)},Re=ee({name:"ElInputNumber"}),$e=ee({...Re,props:xe,emits:Le,setup(l,{expose:E,emit:i}){const r=l,{t:I}=fe(),d=be("input-number"),m=ve(),u=Ne({currentValue:r.modelValue,userInput:null}),{formItem:p}=Ce(),g=h(()=>b(r.modelValue)&&r.modelValue<=r.min),O=h(()=>b(r.modelValue)&&r.modelValue>=r.max),te=h(()=>{const e=X(r.step);return A(r.precision)?Math.max(X(r.modelValue),e):(e>r.precision,r.precision)}),M=h(()=>r.controls&&r.controlsPosition==="right"),U=De(),V=Me(),k=h(()=>{if(u.userInput!==null)return u.userInput;let e=u.currentValue;if(y(e))return"";if(b(e)){if(Number.isNaN(e))return"";A(r.precision)||(e=e.toFixed(r.precision))}return e}),B=(e,n)=>{if(A(n)&&(n=te.value),n===0)return Math.round(e);let t=String(e);const s=t.indexOf(".");if(s===-1||!t.replace(".","").split("")[s+n])return e;const _=t.length;return t.charAt(_-1)==="5"&&(t=`${t.slice(0,Math.max(0,_-1))}6`),Number.parseFloat(Number(t).toFixed(n))},X=e=>{if(y(e))return 0;const n=e.toString(),t=n.indexOf(".");let s=0;return t!==-1&&(s=n.length-t-1),s},W=(e,n=1)=>b(e)?e>=Number.MAX_SAFE_INTEGER&&n===1||e<=Number.MIN_SAFE_INTEGER&&n===-1?e:B(e+r.step*n):u.currentValue,x=()=>{if(r.readonly||V.value||O.value)return;const e=Number(k.value)||0,n=W(e);w(n),i(D,u.currentValue),R()},L=()=>{if(r.readonly||V.value||g.value)return;const e=Number(k.value)||0,n=W(e,-1);w(n),i(D,u.currentValue),R()},H=(e,n)=>{const{max:t,min:s,step:o,precision:f,stepStrictly:_,valueOnClear:S}=r;tt||ct?t:s,n&&i(N,c)),c},w=(e,n=!0)=>{var t;const s=u.currentValue,o=H(e);if(!n){i(N,o);return}s===o&&e||(u.userInput=null,i(N,o),s!==o&&i(ne,o,s),r.validateEvent&&((t=p?.validate)==null||t.call(p,"change").catch(f=>J())),u.currentValue=o)},ae=e=>{u.userInput=e;const n=e===""?null:Number(e);i(D,n),w(n,!1)},re=e=>{const n=e!==""?Number(e):"";(b(n)&&!Number.isNaN(n)||e==="")&&w(n),R(),u.userInput=null},ue=()=>{var e,n;(n=(e=m.value)==null?void 0:e.focus)==null||n.call(e)},le=()=>{var e,n;(n=(e=m.value)==null?void 0:e.blur)==null||n.call(e)},se=e=>{i("focus",e)},oe=e=>{var n,t;u.userInput=null,u.currentValue===null&&((n=m.value)!=null&&n.input)&&(m.value.input.value=""),i("blur",e),r.validateEvent&&((t=p?.validate)==null||t.call(p,"blur").catch(s=>J()))},R=()=>{u.currentValue!==r.modelValue&&(u.currentValue=r.modelValue)},ie=e=>{document.activeElement===e.target&&e.preventDefault()};return Ee(()=>r.modelValue,(e,n)=>{const t=H(e,!0);u.userInput===null&&t!==n&&(u.currentValue=t)},{immediate:!0}),Ve(()=>{var e;const{min:n,max:t,modelValue:s}=r,o=(e=m.value)==null?void 0:e.input;if(o.setAttribute("role","spinbutton"),Number.isFinite(t)?o.setAttribute("aria-valuemax",String(t)):o.removeAttribute("aria-valuemax"),Number.isFinite(n)?o.setAttribute("aria-valuemin",String(n)):o.removeAttribute("aria-valuemin"),o.setAttribute("aria-valuenow",u.currentValue||u.currentValue===0?String(u.currentValue):""),o.setAttribute("aria-disabled",String(V.value)),!b(s)&&s!=null){let f=Number(s);Number.isNaN(f)&&(f=null),i(N,f)}o.addEventListener("wheel",ie,{passive:!1})}),he(()=>{var e,n;const t=(e=m.value)==null?void 0:e.input;t?.setAttribute("aria-valuenow",`${(n=u.currentValue)!=null?n:""}`)}),E({focus:ue,blur:le}),(e,n)=>(v(),$("div",{class:K([a(d).b(),a(d).m(a(U)),a(d).is("disabled",a(V)),a(d).is("without-controls",!e.controls),a(d).is("controls-right",a(M))]),onDragstart:G(()=>{},["prevent"])},[e.controls?Y((v(),$("span",{key:0,role:"button","aria-label":a(I)("el.inputNumber.decrease"),class:K([a(d).e("decrease"),a(d).is("disabled",a(g))]),onKeydown:P(L,["enter"])},[F(e.$slots,"decrease-icon",{},()=>[z(a(q),null,{default:T(()=>[a(M)?(v(),C(a(ye),{key:0})):(v(),C(a(Ie),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[a(Z),L]]):j("v-if",!0),e.controls?Y((v(),$("span",{key:1,role:"button","aria-label":a(I)("el.inputNumber.increase"),class:K([a(d).e("increase"),a(d).is("disabled",a(O))]),onKeydown:P(x,["enter"])},[F(e.$slots,"increase-icon",{},()=>[z(a(q),null,{default:T(()=>[a(M)?(v(),C(a(ge),{key:0})):(v(),C(a(we),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[a(Z),x]]):j("v-if",!0),z(a(Pe),{id:e.id,ref_key:"input",ref:m,type:"number",step:e.step,"model-value":a(k),placeholder:e.placeholder,readonly:e.readonly,disabled:a(V),size:a(U),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:[P(G(x,["prevent"]),["up"]),P(G(L,["prevent"]),["down"])],onBlur:oe,onFocus:se,onInput:ae,onChange:re},_e({_:2},[e.$slots.prefix?{name:"prefix",fn:T(()=>[F(e.$slots,"prefix")])}:void 0,e.$slots.suffix?{name:"suffix",fn:T(()=>[F(e.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode","onKeydown"])],42,["onDragstart"]))}});var ze=pe($e,[["__file","input-number.vue"]]);const We=Ae(ze);export{We as E,Z as v}; diff --git a/mail-worker/dist/assets/el-input-tag-C1CHa0Q0.js b/mail-worker/dist/assets/el-input-tag-BGLP1t7V.js similarity index 95% rename from mail-worker/dist/assets/el-input-tag-C1CHa0Q0.js rename to mail-worker/dist/assets/el-input-tag-BGLP1t7V.js index 43faf74..a956cd9 100644 --- a/mail-worker/dist/assets/el-input-tag-C1CHa0Q0.js +++ b/mail-worker/dist/assets/el-input-tag-BGLP1t7V.js @@ -1 +1 @@ -import{M as Q,S as Z,C as L,b as Ie,aS as Ve,E as G,d as le,as as ce,z as ne,k as y,F as Me,u as te,bo as Ne,bp as ke,aY as Pe,j as fe,_ as Be,a as ve,bq as Re,c as H,o as k,e as W,f as O,g as a,n as V,r as ee,N as oe,P as xe,ap as ze,m as j,p as ae,h as Le,t as se,a7 as re,br as Fe,q as $e,bb as Ae,O as Oe,ab as Ke,bs as Ue,a_ as qe,L as ie,a6 as He,i as We,w as je}from"./index-C-CeCRdr.js";import{t as ue,a as Ge}from"./el-tag-Bx7m9zwB.js";import{I as ge,C as z,U as K}from"./event-BB_Ol6Sd.js";import{d as Xe,a as Ye,b as Je,c as Qe}from"./index-DbudBMlZ.js";import{c as Ze,d as ea,u as aa}from"./vnode-iQPJucW4.js";import{d as de}from"./index-mPHfnfYT.js";import{c as ta,u as na}from"./el-select-bzu4tt0u.js";const la=Ie({modelValue:{type:le(Array)},max:Number,tagType:{...ue.type,default:"info"},tagEffect:ue.effect,trigger:{type:le(String),default:G.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:Ve,clearable:Boolean,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},saveOnBlur:{type:Boolean,default:!0},ariaLabel:String}),oa={[K]:e=>Z(e)||L(e),[z]:e=>Z(e)||L(e),[ge]:e=>Q(e),"add-tag":e=>Q(e)||Z(e),"remove-tag":e=>Q(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function sa({props:e,emit:s,formItem:d}){const p=Xe(),T=Ye(),h=ce(),l=ne(),c=y(()=>["small"].includes(T.value)?"small":"default"),C=y(()=>{var t;return(t=e.modelValue)!=null&&t.length?void 0:e.placeholder}),i=y(()=>!(e.readonly||p.value)),f=y(()=>{var t,n;return L(e.max)?!1:((n=(t=e.modelValue)==null?void 0:t.length)!=null?n:0)>=e.max}),r=t=>{var n;const g=[...(n=e.modelValue)!=null?n:[],...ta(t)];s(K,g),s(z,g),s("add-tag",t),l.value=void 0},P=t=>{var n,g;const E=t.split(e.delimiter).filter(S=>S&&S!==t);if(e.max){const S=e.max-((g=(n=e.modelValue)==null?void 0:n.length)!=null?g:0);E.splice(S)}return E.length===1?E[0]:E},w=t=>{if(f.value){l.value=void 0;return}if(!_.value){if(e.delimiter&&l.value){const n=P(l.value);n.length&&r(n)}s(ge,t.target.value)}},v=t=>{var n;if(!_.value)switch(t.code){case e.trigger:t.preventDefault(),t.stopPropagation(),o();break;case G.numpadEnter:e.trigger===G.enter&&(t.preventDefault(),t.stopPropagation(),o());break;case G.backspace:!l.value&&((n=e.modelValue)!=null&&n.length)&&(t.preventDefault(),t.stopPropagation(),m(e.modelValue.length-1));break}},o=()=>{var t;const n=(t=l.value)==null?void 0:t.trim();!n||f.value||r(n)},m=t=>{var n;const g=((n=e.modelValue)!=null?n:[]).slice(),[E]=g.splice(t,1);s(K,g),s(z,g),s("remove-tag",E)},I=()=>{l.value=void 0,s(K,void 0),s(z,void 0),s("clear")},b=(t,n,g)=>{var E;const S=((E=e.modelValue)!=null?E:[]).slice(),[X]=S.splice(t,1),Y=n>t&&g==="before"?-1:n{var t;(t=h.value)==null||t.focus()},R=()=>{var t;(t=h.value)==null||t.blur()},{wrapperRef:F,isFocused:x}=Ze(h,{disabled:p,afterBlur(){var t;e.saveOnBlur?o():l.value=void 0,e.validateEvent&&((t=d?.validate)==null||t.call(d,"blur").catch(n=>de()))}}),{isComposing:_,handleCompositionStart:M,handleCompositionUpdate:$,handleCompositionEnd:B}=ea({afterComposition:w});return Me(()=>e.modelValue,()=>{var t;e.validateEvent&&((t=d?.validate)==null||t.call(d,z).catch(n=>de()))}),{inputRef:h,wrapperRef:F,isFocused:x,isComposing:_,inputValue:l,size:T,tagSize:c,placeholder:C,closable:i,disabled:p,inputLimit:f,handleDragged:b,handleInput:w,handleKeydown:v,handleAddTag:o,handleRemoveTag:m,handleClear:I,handleCompositionStart:M,handleCompositionUpdate:$,handleCompositionEnd:B,focus:D,blur:R}}function ra(){const e=ne(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function ia({wrapperRef:e,handleDragged:s,afterDragged:d}){const p=te("input-tag"),T=ce(),h=ne(!1);let l,c,C,i;function f(v){return`.${p.e("inner")} .${p.namespace.value}-tag:nth-child(${v+1})`}function r(v,o){l=o,c=e.value.querySelector(f(o)),c&&(c.style.opacity="0.5"),v.dataTransfer.effectAllowed="move"}function P(v,o){if(C=o,v.preventDefault(),v.dataTransfer.dropEffect="move",L(l)||l===o){h.value=!1;return}const m=e.value.querySelector(f(o)).getBoundingClientRect(),I=l+1!==o,b=l-1!==o,D=v.clientX-m.left,R=I?b?.5:1:-1,F=b?I?.5:0:1;D<=m.width*R?i="before":D>m.width*F?i="after":i=void 0;const x=e.value.querySelector(`.${p.e("inner")}`),_=x.getBoundingClientRect(),M=Number.parseFloat(Ne(x,"gap"))/2,$=m.top-_.top;let B=-9999;if(i==="before")B=Math.max(m.left-_.left-M,Math.floor(-M/2));else if(i==="after"){const t=m.right-_.left;B=t+(_.width===t?Math.floor(M/2):M)}ke(T.value,{top:`${$}px`,left:`${B}px`}),h.value=!!i}function w(v){v.preventDefault(),c&&(c.style.opacity=""),i&&!L(l)&&!L(C)&&l!==C&&s(l,C,i),h.value=!1,l=void 0,c=null,C=void 0,i=void 0,d?.()}return{dropIndicatorRef:T,showDropIndicator:h,handleDragStart:r,handleDragOver:P,handleDragEnd:w}}function ua({props:e,isFocused:s,hovering:d,disabled:p,inputValue:T,size:h,validateState:l,validateIcon:c,needStatusIcon:C}){const i=Pe(),f=fe(),r=te("input-tag"),P=te("input"),w=y(()=>[r.b(),r.is("focused",s.value),r.is("hovering",d.value),r.is("disabled",p.value),r.m(h.value),r.e("wrapper"),i.class]),v=y(()=>[i.style]),o=y(()=>{var b,D;return[r.e("inner"),r.is("draggable",e.draggable),r.is("left-space",!((b=e.modelValue)!=null&&b.length)&&!f.prefix),r.is("right-space",!((D=e.modelValue)!=null&&D.length)&&!I.value)]}),m=y(()=>{var b;return e.clearable&&!p.value&&!e.readonly&&(((b=e.modelValue)==null?void 0:b.length)||T.value)&&(s.value||d.value)}),I=y(()=>f.suffix||m.value||l.value&&c.value&&C.value);return{ns:r,nsInput:P,containerKls:w,containerStyle:v,innerKls:o,showClear:m,showSuffix:I}}const da=ve({name:"ElInputTag",inheritAttrs:!1}),ca=ve({...da,props:la,emits:oa,setup(e,{expose:s,emit:d}){const p=e,T=aa(),h=fe(),{form:l,formItem:c}=Je(),{inputId:C}=Qe(p,{formItemContext:c}),i=y(()=>{var u;return(u=l?.statusIcon)!=null?u:!1}),f=y(()=>c?.validateState||""),r=y(()=>f.value&&Re[f.value]),{inputRef:P,wrapperRef:w,isFocused:v,inputValue:o,size:m,tagSize:I,placeholder:b,closable:D,disabled:R,handleDragged:F,handleInput:x,handleKeydown:_,handleRemoveTag:M,handleClear:$,handleCompositionStart:B,handleCompositionUpdate:t,handleCompositionEnd:n,focus:g,blur:E}=sa({props:p,emit:d,formItem:c}),{hovering:S,handleMouseEnter:X,handleMouseLeave:Y}=ra(),{calculatorRef:pe,inputStyle:me}=na(),{dropIndicatorRef:he,showDropIndicator:be,handleDragStart:ye,handleDragOver:Ce,handleDragEnd:Ee}=ia({wrapperRef:w,handleDragged:F,afterDragged:g}),{ns:N,nsInput:J,containerKls:Se,containerStyle:De,innerKls:_e,showClear:Te,showSuffix:we}=ua({props:p,hovering:S,isFocused:v,inputValue:o,disabled:R,size:m,validateState:f,validateIcon:r,needStatusIcon:i});return s({focus:g,blur:E}),(u,va)=>(k(),H("div",{ref_key:"wrapperRef",ref:w,class:V(a(Se)),style:We(a(De)),onMouseenter:a(X),onMouseleave:a(Y)},[a(h).prefix?(k(),H("div",{key:0,class:V(a(N).e("prefix"))},[ee(u.$slots,"prefix")],2)):W("v-if",!0),O("div",{class:V(a(_e))},[(k(!0),H(xe,null,ze(u.modelValue,(U,A)=>(k(),j(a(Ge),{key:A,size:a(I),closable:a(D),type:u.tagType,effect:u.tagEffect,draggable:a(D)&&u.draggable,"disable-transitions":"",onClose:q=>a(M)(A),onDragstart:q=>a(ye)(q,A),onDragover:q=>a(Ce)(q,A),onDragend:a(Ee),onDrop:re(()=>{},["stop"])},{default:ae(()=>[ee(u.$slots,"tag",{value:U,index:A},()=>[Le(se(U),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"]))),128)),O("div",{class:V(a(N).e("input-wrapper"))},[oe(O("input",$e({id:a(C),ref_key:"inputRef",ref:P,"onUpdate:modelValue":U=>Ae(o)?o.value=U:null},a(T),{type:"text",minlength:u.minlength,maxlength:u.maxlength,disabled:a(R),readonly:u.readonly,autocomplete:u.autocomplete,tabindex:u.tabindex,placeholder:a(b),autofocus:u.autofocus,ariaLabel:u.ariaLabel,class:a(N).e("input"),style:a(me),onCompositionstart:a(B),onCompositionupdate:a(t),onCompositionend:a(n),onInput:a(x),onKeydown:a(_)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[Fe,a(o)]]),O("span",{ref_key:"calculatorRef",ref:pe,"aria-hidden":"true",class:V(a(N).e("input-calculator")),textContent:se(a(o))},null,10,["textContent"])],2),oe(O("div",{ref_key:"dropIndicatorRef",ref:he,class:V(a(N).e("drop-indicator"))},null,2),[[Oe,a(be)]])],2),a(we)?(k(),H("div",{key:1,class:V(a(N).e("suffix"))},[ee(u.$slots,"suffix"),a(Te)?(k(),j(a(ie),{key:0,class:V([a(N).e("icon"),a(N).e("clear")]),onMousedown:re(a(qe),["prevent"]),onClick:a($)},{default:ae(()=>[Ke(a(Ue))]),_:1},8,["class","onMousedown","onClick"])):W("v-if",!0),a(f)&&a(r)&&a(i)?(k(),j(a(ie),{key:1,class:V([a(J).e("icon"),a(J).e("validateIcon"),a(J).is("loading",a(f)==="validating")])},{default:ae(()=>[(k(),j(He(a(r))))]),_:1},8,["class"])):W("v-if",!0)],2)):W("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var fa=Be(ca,[["__file","input-tag.vue"]]);const Ea=je(fa);export{Ea as E}; +import{M as Q,S as Z,C as L,b as Ie,aS as Ve,E as G,d as le,as as ce,z as ne,k as y,F as Me,u as te,bo as Ne,bp as ke,aY as Pe,j as fe,_ as Be,a as ve,bq as Re,c as H,o as k,e as W,f as O,g as a,n as V,r as ee,N as oe,P as xe,ap as ze,m as j,p as ae,h as Le,t as se,a7 as re,br as Fe,q as $e,bb as Ae,O as Oe,ab as Ke,bs as Ue,a_ as qe,L as ie,a6 as He,i as We,w as je}from"./index-DpP8vbvu.js";import{t as ue,a as Ge}from"./el-tag-CjAzCWMf.js";import{I as ge,C as z,U as K}from"./event-BB_Ol6Sd.js";import{d as Xe,a as Ye,b as Je,c as Qe}from"./index-D7KcZu8a.js";import{c as Ze,d as ea,u as aa}from"./vnode-DPqF99Zc.js";import{d as de}from"./index-BMdPKuCq.js";import{c as ta,u as na}from"./el-select-BvsCrs4t.js";const la=Ie({modelValue:{type:le(Array)},max:Number,tagType:{...ue.type,default:"info"},tagEffect:ue.effect,trigger:{type:le(String),default:G.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:Ve,clearable:Boolean,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},saveOnBlur:{type:Boolean,default:!0},ariaLabel:String}),oa={[K]:e=>Z(e)||L(e),[z]:e=>Z(e)||L(e),[ge]:e=>Q(e),"add-tag":e=>Q(e)||Z(e),"remove-tag":e=>Q(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function sa({props:e,emit:s,formItem:d}){const p=Xe(),T=Ye(),h=ce(),l=ne(),c=y(()=>["small"].includes(T.value)?"small":"default"),C=y(()=>{var t;return(t=e.modelValue)!=null&&t.length?void 0:e.placeholder}),i=y(()=>!(e.readonly||p.value)),f=y(()=>{var t,n;return L(e.max)?!1:((n=(t=e.modelValue)==null?void 0:t.length)!=null?n:0)>=e.max}),r=t=>{var n;const g=[...(n=e.modelValue)!=null?n:[],...ta(t)];s(K,g),s(z,g),s("add-tag",t),l.value=void 0},P=t=>{var n,g;const E=t.split(e.delimiter).filter(S=>S&&S!==t);if(e.max){const S=e.max-((g=(n=e.modelValue)==null?void 0:n.length)!=null?g:0);E.splice(S)}return E.length===1?E[0]:E},w=t=>{if(f.value){l.value=void 0;return}if(!_.value){if(e.delimiter&&l.value){const n=P(l.value);n.length&&r(n)}s(ge,t.target.value)}},v=t=>{var n;if(!_.value)switch(t.code){case e.trigger:t.preventDefault(),t.stopPropagation(),o();break;case G.numpadEnter:e.trigger===G.enter&&(t.preventDefault(),t.stopPropagation(),o());break;case G.backspace:!l.value&&((n=e.modelValue)!=null&&n.length)&&(t.preventDefault(),t.stopPropagation(),m(e.modelValue.length-1));break}},o=()=>{var t;const n=(t=l.value)==null?void 0:t.trim();!n||f.value||r(n)},m=t=>{var n;const g=((n=e.modelValue)!=null?n:[]).slice(),[E]=g.splice(t,1);s(K,g),s(z,g),s("remove-tag",E)},I=()=>{l.value=void 0,s(K,void 0),s(z,void 0),s("clear")},b=(t,n,g)=>{var E;const S=((E=e.modelValue)!=null?E:[]).slice(),[X]=S.splice(t,1),Y=n>t&&g==="before"?-1:n{var t;(t=h.value)==null||t.focus()},R=()=>{var t;(t=h.value)==null||t.blur()},{wrapperRef:F,isFocused:x}=Ze(h,{disabled:p,afterBlur(){var t;e.saveOnBlur?o():l.value=void 0,e.validateEvent&&((t=d?.validate)==null||t.call(d,"blur").catch(n=>de()))}}),{isComposing:_,handleCompositionStart:M,handleCompositionUpdate:$,handleCompositionEnd:B}=ea({afterComposition:w});return Me(()=>e.modelValue,()=>{var t;e.validateEvent&&((t=d?.validate)==null||t.call(d,z).catch(n=>de()))}),{inputRef:h,wrapperRef:F,isFocused:x,isComposing:_,inputValue:l,size:T,tagSize:c,placeholder:C,closable:i,disabled:p,inputLimit:f,handleDragged:b,handleInput:w,handleKeydown:v,handleAddTag:o,handleRemoveTag:m,handleClear:I,handleCompositionStart:M,handleCompositionUpdate:$,handleCompositionEnd:B,focus:D,blur:R}}function ra(){const e=ne(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function ia({wrapperRef:e,handleDragged:s,afterDragged:d}){const p=te("input-tag"),T=ce(),h=ne(!1);let l,c,C,i;function f(v){return`.${p.e("inner")} .${p.namespace.value}-tag:nth-child(${v+1})`}function r(v,o){l=o,c=e.value.querySelector(f(o)),c&&(c.style.opacity="0.5"),v.dataTransfer.effectAllowed="move"}function P(v,o){if(C=o,v.preventDefault(),v.dataTransfer.dropEffect="move",L(l)||l===o){h.value=!1;return}const m=e.value.querySelector(f(o)).getBoundingClientRect(),I=l+1!==o,b=l-1!==o,D=v.clientX-m.left,R=I?b?.5:1:-1,F=b?I?.5:0:1;D<=m.width*R?i="before":D>m.width*F?i="after":i=void 0;const x=e.value.querySelector(`.${p.e("inner")}`),_=x.getBoundingClientRect(),M=Number.parseFloat(Ne(x,"gap"))/2,$=m.top-_.top;let B=-9999;if(i==="before")B=Math.max(m.left-_.left-M,Math.floor(-M/2));else if(i==="after"){const t=m.right-_.left;B=t+(_.width===t?Math.floor(M/2):M)}ke(T.value,{top:`${$}px`,left:`${B}px`}),h.value=!!i}function w(v){v.preventDefault(),c&&(c.style.opacity=""),i&&!L(l)&&!L(C)&&l!==C&&s(l,C,i),h.value=!1,l=void 0,c=null,C=void 0,i=void 0,d?.()}return{dropIndicatorRef:T,showDropIndicator:h,handleDragStart:r,handleDragOver:P,handleDragEnd:w}}function ua({props:e,isFocused:s,hovering:d,disabled:p,inputValue:T,size:h,validateState:l,validateIcon:c,needStatusIcon:C}){const i=Pe(),f=fe(),r=te("input-tag"),P=te("input"),w=y(()=>[r.b(),r.is("focused",s.value),r.is("hovering",d.value),r.is("disabled",p.value),r.m(h.value),r.e("wrapper"),i.class]),v=y(()=>[i.style]),o=y(()=>{var b,D;return[r.e("inner"),r.is("draggable",e.draggable),r.is("left-space",!((b=e.modelValue)!=null&&b.length)&&!f.prefix),r.is("right-space",!((D=e.modelValue)!=null&&D.length)&&!I.value)]}),m=y(()=>{var b;return e.clearable&&!p.value&&!e.readonly&&(((b=e.modelValue)==null?void 0:b.length)||T.value)&&(s.value||d.value)}),I=y(()=>f.suffix||m.value||l.value&&c.value&&C.value);return{ns:r,nsInput:P,containerKls:w,containerStyle:v,innerKls:o,showClear:m,showSuffix:I}}const da=ve({name:"ElInputTag",inheritAttrs:!1}),ca=ve({...da,props:la,emits:oa,setup(e,{expose:s,emit:d}){const p=e,T=aa(),h=fe(),{form:l,formItem:c}=Je(),{inputId:C}=Qe(p,{formItemContext:c}),i=y(()=>{var u;return(u=l?.statusIcon)!=null?u:!1}),f=y(()=>c?.validateState||""),r=y(()=>f.value&&Re[f.value]),{inputRef:P,wrapperRef:w,isFocused:v,inputValue:o,size:m,tagSize:I,placeholder:b,closable:D,disabled:R,handleDragged:F,handleInput:x,handleKeydown:_,handleRemoveTag:M,handleClear:$,handleCompositionStart:B,handleCompositionUpdate:t,handleCompositionEnd:n,focus:g,blur:E}=sa({props:p,emit:d,formItem:c}),{hovering:S,handleMouseEnter:X,handleMouseLeave:Y}=ra(),{calculatorRef:pe,inputStyle:me}=na(),{dropIndicatorRef:he,showDropIndicator:be,handleDragStart:ye,handleDragOver:Ce,handleDragEnd:Ee}=ia({wrapperRef:w,handleDragged:F,afterDragged:g}),{ns:N,nsInput:J,containerKls:Se,containerStyle:De,innerKls:_e,showClear:Te,showSuffix:we}=ua({props:p,hovering:S,isFocused:v,inputValue:o,disabled:R,size:m,validateState:f,validateIcon:r,needStatusIcon:i});return s({focus:g,blur:E}),(u,va)=>(k(),H("div",{ref_key:"wrapperRef",ref:w,class:V(a(Se)),style:We(a(De)),onMouseenter:a(X),onMouseleave:a(Y)},[a(h).prefix?(k(),H("div",{key:0,class:V(a(N).e("prefix"))},[ee(u.$slots,"prefix")],2)):W("v-if",!0),O("div",{class:V(a(_e))},[(k(!0),H(xe,null,ze(u.modelValue,(U,A)=>(k(),j(a(Ge),{key:A,size:a(I),closable:a(D),type:u.tagType,effect:u.tagEffect,draggable:a(D)&&u.draggable,"disable-transitions":"",onClose:q=>a(M)(A),onDragstart:q=>a(ye)(q,A),onDragover:q=>a(Ce)(q,A),onDragend:a(Ee),onDrop:re(()=>{},["stop"])},{default:ae(()=>[ee(u.$slots,"tag",{value:U,index:A},()=>[Le(se(U),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"]))),128)),O("div",{class:V(a(N).e("input-wrapper"))},[oe(O("input",$e({id:a(C),ref_key:"inputRef",ref:P,"onUpdate:modelValue":U=>Ae(o)?o.value=U:null},a(T),{type:"text",minlength:u.minlength,maxlength:u.maxlength,disabled:a(R),readonly:u.readonly,autocomplete:u.autocomplete,tabindex:u.tabindex,placeholder:a(b),autofocus:u.autofocus,ariaLabel:u.ariaLabel,class:a(N).e("input"),style:a(me),onCompositionstart:a(B),onCompositionupdate:a(t),onCompositionend:a(n),onInput:a(x),onKeydown:a(_)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[Fe,a(o)]]),O("span",{ref_key:"calculatorRef",ref:pe,"aria-hidden":"true",class:V(a(N).e("input-calculator")),textContent:se(a(o))},null,10,["textContent"])],2),oe(O("div",{ref_key:"dropIndicatorRef",ref:he,class:V(a(N).e("drop-indicator"))},null,2),[[Oe,a(be)]])],2),a(we)?(k(),H("div",{key:1,class:V(a(N).e("suffix"))},[ee(u.$slots,"suffix"),a(Te)?(k(),j(a(ie),{key:0,class:V([a(N).e("icon"),a(N).e("clear")]),onMousedown:re(a(qe),["prevent"]),onClick:a($)},{default:ae(()=>[Ke(a(Ue))]),_:1},8,["class","onMousedown","onClick"])):W("v-if",!0),a(f)&&a(r)&&a(i)?(k(),j(a(ie),{key:1,class:V([a(J).e("icon"),a(J).e("validateIcon"),a(J).is("loading",a(f)==="validating")])},{default:ae(()=>[(k(),j(He(a(r))))]),_:1},8,["class"])):W("v-if",!0)],2)):W("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var fa=Be(ca,[["__file","input-tag.vue"]]);const Ea=je(fa);export{Ea as E}; diff --git a/mail-worker/dist/assets/el-radio-group-AuX_c4BW.js b/mail-worker/dist/assets/el-radio-group-B1EzGjdW.js similarity index 97% rename from mail-worker/dist/assets/el-radio-group-AuX_c4BW.js rename to mail-worker/dist/assets/el-radio-group-B1EzGjdW.js index 6d7df60..bfcd7ee 100644 --- a/mail-worker/dist/assets/el-radio-group-AuX_c4BW.js +++ b/mail-worker/dist/assets/el-radio-group-B1EzGjdW.js @@ -1 +1 @@ -import{M as $,aQ as w,aU as z,b as B,aS as P,z as E,y as W,k as f,a0 as F,_ as R,a as _,u as V,c as k,o as I,f as y,N as U,cr as D,g as e,a7 as h,n as v,bb as A,r as C,h as K,t as x,$ as L,i as J,I as X,G as Y,D as Z,bS as ee,F as ae,l as M,w as oe}from"./index-C-CeCRdr.js";import{C as G,U as N}from"./event-BB_Ol6Sd.js";import{a as le,d as se,u as te,e as ne,b as re,c as ie}from"./index-DbudBMlZ.js";import{u as de,d as ue}from"./index-mPHfnfYT.js";const T=B({modelValue:{type:[String,Number,Boolean],default:void 0},size:P,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ce=B({...T,border:Boolean}),j={[N]:o=>$(o)||w(o)||z(o),[G]:o=>$(o)||w(o)||z(o)},q=Symbol("radioGroupKey"),H=(o,u)=>{const s=E(),a=W(q,void 0),i=f(()=>!!a),c=f(()=>F(o.value)?o.label:o.value),r=f({get(){return i.value?a.modelValue:o.modelValue},set(t){i.value?a.changeEvent(t):u&&u(N,t),s.value.checked=o.modelValue===c.value}}),d=le(f(()=>a?.size)),l=se(f(()=>a?.disabled)),n=E(!1),p=f(()=>l.value||i.value&&r.value!==c.value?-1:0);return te({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},f(()=>i.value&&F(o.value))),{radioRef:s,isGroup:i,radioGroup:a,focus:n,size:d,disabled:l,tabIndex:p,modelValue:r,actualValue:c}},pe=_({name:"ElRadio"}),me=_({...pe,props:ce,emits:j,setup(o,{emit:u}){const s=o,a=V("radio"),{radioRef:i,radioGroup:c,focus:r,size:d,disabled:l,modelValue:n,actualValue:p}=H(s,u);function t(){L(()=>u(G,n.value))}return(m,g)=>{var b;return I(),k("label",{class:v([e(a).b(),e(a).is("disabled",e(l)),e(a).is("focus",e(r)),e(a).is("bordered",m.border),e(a).is("checked",e(n)===e(p)),e(a).m(e(d))])},[y("span",{class:v([e(a).e("input"),e(a).is("disabled",e(l)),e(a).is("checked",e(n)===e(p))])},[U(y("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":S=>A(n)?n.value=S:null,class:v(e(a).e("original")),value:e(p),name:m.name||((b=e(c))==null?void 0:b.name),disabled:e(l),checked:e(n)===e(p),type:"radio",onFocus:S=>r.value=!0,onBlur:S=>r.value=!1,onChange:t,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[D,e(n)]]),y("span",{class:v(e(a).e("inner"))},null,2)],2),y("span",{class:v(e(a).e("label")),onKeydown:h(()=>{},["stop"])},[C(m.$slots,"default",{},()=>[K(x(m.label),1)])],42,["onKeydown"])],2)}}});var fe=R(me,[["__file","radio.vue"]]);const ve=B({...T}),be=_({name:"ElRadioButton"}),ye=_({...be,props:ve,setup(o){const u=o,s=V("radio"),{radioRef:a,focus:i,size:c,disabled:r,modelValue:d,radioGroup:l,actualValue:n}=H(u),p=f(()=>({backgroundColor:l?.fill||"",borderColor:l?.fill||"",boxShadow:l?.fill?`-1px 0 0 0 ${l.fill}`:"",color:l?.textColor||""}));return(t,m)=>{var g;return I(),k("label",{class:v([e(s).b("button"),e(s).is("active",e(d)===e(n)),e(s).is("disabled",e(r)),e(s).is("focus",e(i)),e(s).bm("button",e(c))])},[U(y("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":b=>A(d)?d.value=b:null,class:v(e(s).be("button","original-radio")),value:e(n),type:"radio",name:t.name||((g=e(l))==null?void 0:g.name),disabled:e(r),onFocus:b=>i.value=!0,onBlur:b=>i.value=!1,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[D,e(d)]]),y("span",{class:v(e(s).be("button","inner")),style:J(e(d)===e(n)?e(p):{}),onKeydown:h(()=>{},["stop"])},[C(t.$slots,"default",{},()=>[K(x(t.label),1)])],46,["onKeydown"])],2)}}});var O=R(ye,[["__file","radio-button.vue"]]);const _e=B({id:{type:String,default:void 0},size:P,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...de(["ariaLabel"])}),ge=j,he=_({name:"ElRadioGroup"}),Be=_({...he,props:_e,emits:ge,setup(o,{emit:u}){const s=o,a=V("radio"),i=ne(),c=E(),{formItem:r}=re(),{inputId:d,isLabeledByFormItem:l}=ie(s,{formItemContext:r}),n=t=>{u(N,t),L(()=>u(G,t))};X(()=>{const t=c.value.querySelectorAll("[type=radio]"),m=t[0];!Array.from(t).some(g=>g.checked)&&m&&(m.tabIndex=0)});const p=f(()=>s.name||i.value);return Y(q,Z({...ee(s),changeEvent:n,name:p})),ae(()=>s.modelValue,()=>{s.validateEvent&&r?.validate("change").catch(t=>ue())}),(t,m)=>(I(),k("div",{id:e(d),ref_key:"radioGroupRef",ref:c,class:v(e(a).b("group")),role:"radiogroup","aria-label":e(l)?void 0:t.ariaLabel||"radio-group","aria-labelledby":e(l)?e(r).labelId:void 0},[C(t.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var Q=R(Be,[["__file","radio-group.vue"]]);const ke=oe(fe,{RadioButton:O,RadioGroup:Q}),Ie=M(Q),Ce=M(O);export{Ie as E,ke as a,Ce as b}; +import{M as $,aQ as w,aU as z,b as B,aS as P,z as E,y as W,k as f,a0 as F,_ as R,a as _,u as V,c as k,o as I,f as y,N as U,cr as D,g as e,a7 as h,n as v,bb as A,r as C,h as K,t as x,$ as L,i as J,I as X,G as Y,D as Z,bS as ee,F as ae,l as M,w as oe}from"./index-DpP8vbvu.js";import{C as G,U as N}from"./event-BB_Ol6Sd.js";import{a as le,d as se,u as te,e as ne,b as re,c as ie}from"./index-D7KcZu8a.js";import{u as de,d as ue}from"./index-BMdPKuCq.js";const T=B({modelValue:{type:[String,Number,Boolean],default:void 0},size:P,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ce=B({...T,border:Boolean}),j={[N]:o=>$(o)||w(o)||z(o),[G]:o=>$(o)||w(o)||z(o)},q=Symbol("radioGroupKey"),H=(o,u)=>{const s=E(),a=W(q,void 0),i=f(()=>!!a),c=f(()=>F(o.value)?o.label:o.value),r=f({get(){return i.value?a.modelValue:o.modelValue},set(t){i.value?a.changeEvent(t):u&&u(N,t),s.value.checked=o.modelValue===c.value}}),d=le(f(()=>a?.size)),l=se(f(()=>a?.disabled)),n=E(!1),p=f(()=>l.value||i.value&&r.value!==c.value?-1:0);return te({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},f(()=>i.value&&F(o.value))),{radioRef:s,isGroup:i,radioGroup:a,focus:n,size:d,disabled:l,tabIndex:p,modelValue:r,actualValue:c}},pe=_({name:"ElRadio"}),me=_({...pe,props:ce,emits:j,setup(o,{emit:u}){const s=o,a=V("radio"),{radioRef:i,radioGroup:c,focus:r,size:d,disabled:l,modelValue:n,actualValue:p}=H(s,u);function t(){L(()=>u(G,n.value))}return(m,g)=>{var b;return I(),k("label",{class:v([e(a).b(),e(a).is("disabled",e(l)),e(a).is("focus",e(r)),e(a).is("bordered",m.border),e(a).is("checked",e(n)===e(p)),e(a).m(e(d))])},[y("span",{class:v([e(a).e("input"),e(a).is("disabled",e(l)),e(a).is("checked",e(n)===e(p))])},[U(y("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":S=>A(n)?n.value=S:null,class:v(e(a).e("original")),value:e(p),name:m.name||((b=e(c))==null?void 0:b.name),disabled:e(l),checked:e(n)===e(p),type:"radio",onFocus:S=>r.value=!0,onBlur:S=>r.value=!1,onChange:t,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[D,e(n)]]),y("span",{class:v(e(a).e("inner"))},null,2)],2),y("span",{class:v(e(a).e("label")),onKeydown:h(()=>{},["stop"])},[C(m.$slots,"default",{},()=>[K(x(m.label),1)])],42,["onKeydown"])],2)}}});var fe=R(me,[["__file","radio.vue"]]);const ve=B({...T}),be=_({name:"ElRadioButton"}),ye=_({...be,props:ve,setup(o){const u=o,s=V("radio"),{radioRef:a,focus:i,size:c,disabled:r,modelValue:d,radioGroup:l,actualValue:n}=H(u),p=f(()=>({backgroundColor:l?.fill||"",borderColor:l?.fill||"",boxShadow:l?.fill?`-1px 0 0 0 ${l.fill}`:"",color:l?.textColor||""}));return(t,m)=>{var g;return I(),k("label",{class:v([e(s).b("button"),e(s).is("active",e(d)===e(n)),e(s).is("disabled",e(r)),e(s).is("focus",e(i)),e(s).bm("button",e(c))])},[U(y("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":b=>A(d)?d.value=b:null,class:v(e(s).be("button","original-radio")),value:e(n),type:"radio",name:t.name||((g=e(l))==null?void 0:g.name),disabled:e(r),onFocus:b=>i.value=!0,onBlur:b=>i.value=!1,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[D,e(d)]]),y("span",{class:v(e(s).be("button","inner")),style:J(e(d)===e(n)?e(p):{}),onKeydown:h(()=>{},["stop"])},[C(t.$slots,"default",{},()=>[K(x(t.label),1)])],46,["onKeydown"])],2)}}});var O=R(ye,[["__file","radio-button.vue"]]);const _e=B({id:{type:String,default:void 0},size:P,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...de(["ariaLabel"])}),ge=j,he=_({name:"ElRadioGroup"}),Be=_({...he,props:_e,emits:ge,setup(o,{emit:u}){const s=o,a=V("radio"),i=ne(),c=E(),{formItem:r}=re(),{inputId:d,isLabeledByFormItem:l}=ie(s,{formItemContext:r}),n=t=>{u(N,t),L(()=>u(G,t))};X(()=>{const t=c.value.querySelectorAll("[type=radio]"),m=t[0];!Array.from(t).some(g=>g.checked)&&m&&(m.tabIndex=0)});const p=f(()=>s.name||i.value);return Y(q,Z({...ee(s),changeEvent:n,name:p})),ae(()=>s.modelValue,()=>{s.validateEvent&&r?.validate("change").catch(t=>ue())}),(t,m)=>(I(),k("div",{id:e(d),ref_key:"radioGroupRef",ref:c,class:v(e(a).b("group")),role:"radiogroup","aria-label":e(l)?void 0:t.ariaLabel||"radio-group","aria-labelledby":e(l)?e(r).labelId:void 0},[C(t.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var Q=R(Be,[["__file","radio-group.vue"]]);const ke=oe(fe,{RadioButton:O,RadioGroup:Q}),Ie=M(Q),Ce=M(O);export{Ie as E,ke as a,Ce as b}; diff --git a/mail-worker/dist/assets/el-scrollbar-UsUjrt3r.js b/mail-worker/dist/assets/el-scrollbar-DIXSy-7M.js similarity index 98% rename from mail-worker/dist/assets/el-scrollbar-UsUjrt3r.js rename to mail-worker/dist/assets/el-scrollbar-DIXSy-7M.js index b493219..5a664f5 100644 --- a/mail-worker/dist/assets/el-scrollbar-UsUjrt3r.js +++ b/mail-worker/dist/assets/el-scrollbar-DIXSy-7M.js @@ -1 +1 @@ -import{b as D,_ as j,a as x,y as G,u as J,z as u,k as L,J as ee,a5 as O,a1 as X,m as W,o as P,p as Q,N as te,f as A,a7 as le,n as R,g,i as $,O as ae,T as oe,a8 as se,c as Z,ab as Y,P as re,aQ as N,d as ne,aV as V,F as I,W as ie,$ as q,G as ce,D as ue,bY as ve,I as fe,aX as de,e as me,r as pe,a6 as he,U as be,w as ye}from"./index-C-CeCRdr.js";import{t as ge,u as Se}from"./index-mPHfnfYT.js";const k=4,we={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ze=({move:m,size:v,bar:s})=>({[s.size]:v,transform:`translate${s.axis}(${m}%)`}),K=Symbol("scrollbarContextKey"),_e=D({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Ee="Thumb",He=x({__name:"thumb",props:_e,setup(m){const v=m,s=G(K),a=J("scrollbar");s||ge(Ee,"can not inject scrollbar context");const c=u(),f=u(),p=u({}),i=u(!1);let n=!1,d=!1,T=0,l=0,o=se?document.onselectstart:null;const t=L(()=>we[v.vertical?"vertical":"horizontal"]),h=L(()=>ze({size:v.size,move:v.move,bar:t.value})),w=L(()=>c.value[t.value.offset]**2/s.wrapElement[t.value.scrollSize]/v.ratio/f.value[t.value.offset]),E=r=>{var y;if(r.stopPropagation(),r.ctrlKey||[1,2].includes(r.button))return;(y=window.getSelection())==null||y.removeAllRanges(),z(r);const H=r.currentTarget;H&&(p.value[t.value.axis]=H[t.value.offset]-(r[t.value.client]-H.getBoundingClientRect()[t.value.direction]))},S=r=>{if(!f.value||!c.value||!s.wrapElement)return;const y=Math.abs(r.target.getBoundingClientRect()[t.value.direction]-r[t.value.client]),H=f.value[t.value.offset]/2,M=(y-H)*100*w.value/c.value[t.value.offset];s.wrapElement[t.value.scroll]=M*s.wrapElement[t.value.scrollSize]/100},z=r=>{r.stopImmediatePropagation(),n=!0,T=s.wrapElement.scrollHeight,l=s.wrapElement.scrollWidth,document.addEventListener("mousemove",B),document.addEventListener("mouseup",C),o=document.onselectstart,document.onselectstart=()=>!1},B=r=>{if(!c.value||!f.value||n===!1)return;const y=p.value[t.value.axis];if(!y)return;const H=(c.value.getBoundingClientRect()[t.value.direction]-r[t.value.client])*-1,M=f.value[t.value.offset]-y,U=(H-M)*100*w.value/c.value[t.value.offset];t.value.scroll==="scrollLeft"?s.wrapElement[t.value.scroll]=U*l/100:s.wrapElement[t.value.scroll]=U*T/100},C=()=>{n=!1,p.value[t.value.axis]=0,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",C),b(),d&&(i.value=!1)},_=()=>{d=!1,i.value=!!v.size},e=()=>{d=!0,i.value=n};ee(()=>{b(),document.removeEventListener("mouseup",C)});const b=()=>{document.onselectstart!==o&&(document.onselectstart=o)};return O(X(s,"scrollbarElement"),"mousemove",_),O(X(s,"scrollbarElement"),"mouseleave",e),(r,y)=>(P(),W(oe,{name:g(a).b("fade"),persisted:""},{default:Q(()=>[te(A("div",{ref_key:"instance",ref:c,class:R([g(a).e("bar"),g(a).is(g(t).key)]),onMousedown:S,onClick:le(()=>{},["stop"])},[A("div",{ref_key:"thumb",ref:f,class:R(g(a).e("thumb")),style:$(g(h)),onMousedown:E},null,38)],42,["onClick"]),[[ae,r.always||i.value]])]),_:1},8,["name"]))}});var F=j(He,[["__file","thumb.vue"]]);const Te=D({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),ke=x({__name:"bar",props:Te,setup(m,{expose:v}){const s=m,a=G(K),c=u(0),f=u(0),p=u(""),i=u(""),n=u(1),d=u(1);return v({handleScroll:o=>{if(o){const t=o.offsetHeight-k,h=o.offsetWidth-k;f.value=o.scrollTop*100/t*n.value,c.value=o.scrollLeft*100/h*d.value}},update:()=>{const o=a?.wrapElement;if(!o)return;const t=o.offsetHeight-k,h=o.offsetWidth-k,w=t**2/o.scrollHeight,E=h**2/o.scrollWidth,S=Math.max(w,s.minSize),z=Math.max(E,s.minSize);n.value=w/(t-w)/(S/(t-S)),d.value=E/(h-E)/(z/(h-z)),i.value=S+k(P(),Z(re,null,[Y(F,{move:c.value,ratio:d.value,size:p.value,always:o.always},null,8,["move","ratio","size","always"]),Y(F,{move:f.value,ratio:n.value,size:i.value,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Le=j(ke,[["__file","bar.vue"]]);const Ce=D({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ne([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Se(["ariaLabel","ariaOrientation"])}),Ne={"end-reached":m=>["left","right","top","bottom"].includes(m),scroll:({scrollTop:m,scrollLeft:v})=>[m,v].every(N)},Pe="ElScrollbar",Re=x({name:Pe}),Be=x({...Re,props:Ce,emits:Ne,setup(m,{expose:v,emit:s}){const a=m,c=J("scrollbar");let f,p,i=0,n=0,d="";const T=u(),l=u(),o=u(),t=u(),h=L(()=>{const e={};return a.height&&(e.height=V(a.height)),a.maxHeight&&(e.maxHeight=V(a.maxHeight)),[a.wrapStyle,e]}),w=L(()=>[a.wrapClass,c.e("wrap"),{[c.em("wrap","hidden-default")]:!a.native}]),E=L(()=>[c.e("view"),a.viewClass]),S=()=>{var e;if(l.value){(e=t.value)==null||e.handleScroll(l.value);const b=i,r=n;i=l.value.scrollTop,n=l.value.scrollLeft;const y={bottom:i+l.value.clientHeight>=l.value.scrollHeight,top:i<=0&&b!==0,right:n+l.value.clientWidth>=l.value.scrollWidth&&r!==n,left:n<=0&&r!==0};b!==i&&(d=i>b?"bottom":"top"),r!==n&&(d=n>r?"right":"left"),s("scroll",{scrollTop:i,scrollLeft:n}),y[d]&&s("end-reached",d)}};function z(e,b){be(e)?l.value.scrollTo(e):N(e)&&N(b)&&l.value.scrollTo(e,b)}const B=e=>{N(e)&&(l.value.scrollTop=e)},C=e=>{N(e)&&(l.value.scrollLeft=e)},_=()=>{var e;(e=t.value)==null||e.update()};return I(()=>a.noresize,e=>{e?(f?.(),p?.()):({stop:f}=ie(o,_),p=O("resize",_))},{immediate:!0}),I(()=>[a.maxHeight,a.height],()=>{a.native||q(()=>{var e;_(),l.value&&((e=t.value)==null||e.handleScroll(l.value))})}),ce(K,ue({scrollbarElement:T,wrapElement:l})),ve(()=>{l.value&&(l.value.scrollTop=i,l.value.scrollLeft=n)}),fe(()=>{a.native||q(()=>{_()})}),de(()=>_()),v({wrapRef:l,update:_,scrollTo:z,setScrollTop:B,setScrollLeft:C,handleScroll:S}),(e,b)=>(P(),Z("div",{ref_key:"scrollbarRef",ref:T,class:R(g(c).b())},[A("div",{ref_key:"wrapRef",ref:l,class:R(g(w)),style:$(g(h)),tabindex:e.tabindex,onScroll:S},[(P(),W(he(e.tag),{id:e.id,ref_key:"resizeRef",ref:o,class:R(g(E)),style:$(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:Q(()=>[pe(e.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),e.native?me("v-if",!0):(P(),W(Le,{key:0,ref_key:"barRef",ref:t,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});var xe=j(Be,[["__file","scrollbar.vue"]]);const We=ye(xe);export{We as E,Ne as s}; +import{b as D,_ as j,a as x,y as G,u as J,z as u,k as L,J as ee,a5 as O,a1 as X,m as W,o as P,p as Q,N as te,f as A,a7 as le,n as R,g,i as $,O as ae,T as oe,a8 as se,c as Z,ab as Y,P as re,aQ as N,d as ne,aV as V,F as I,W as ie,$ as q,G as ce,D as ue,bY as ve,I as fe,aX as de,e as me,r as pe,a6 as he,U as be,w as ye}from"./index-DpP8vbvu.js";import{t as ge,u as Se}from"./index-BMdPKuCq.js";const k=4,we={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ze=({move:m,size:v,bar:s})=>({[s.size]:v,transform:`translate${s.axis}(${m}%)`}),K=Symbol("scrollbarContextKey"),_e=D({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Ee="Thumb",He=x({__name:"thumb",props:_e,setup(m){const v=m,s=G(K),a=J("scrollbar");s||ge(Ee,"can not inject scrollbar context");const c=u(),f=u(),p=u({}),i=u(!1);let n=!1,d=!1,T=0,l=0,o=se?document.onselectstart:null;const t=L(()=>we[v.vertical?"vertical":"horizontal"]),h=L(()=>ze({size:v.size,move:v.move,bar:t.value})),w=L(()=>c.value[t.value.offset]**2/s.wrapElement[t.value.scrollSize]/v.ratio/f.value[t.value.offset]),E=r=>{var y;if(r.stopPropagation(),r.ctrlKey||[1,2].includes(r.button))return;(y=window.getSelection())==null||y.removeAllRanges(),z(r);const H=r.currentTarget;H&&(p.value[t.value.axis]=H[t.value.offset]-(r[t.value.client]-H.getBoundingClientRect()[t.value.direction]))},S=r=>{if(!f.value||!c.value||!s.wrapElement)return;const y=Math.abs(r.target.getBoundingClientRect()[t.value.direction]-r[t.value.client]),H=f.value[t.value.offset]/2,M=(y-H)*100*w.value/c.value[t.value.offset];s.wrapElement[t.value.scroll]=M*s.wrapElement[t.value.scrollSize]/100},z=r=>{r.stopImmediatePropagation(),n=!0,T=s.wrapElement.scrollHeight,l=s.wrapElement.scrollWidth,document.addEventListener("mousemove",B),document.addEventListener("mouseup",C),o=document.onselectstart,document.onselectstart=()=>!1},B=r=>{if(!c.value||!f.value||n===!1)return;const y=p.value[t.value.axis];if(!y)return;const H=(c.value.getBoundingClientRect()[t.value.direction]-r[t.value.client])*-1,M=f.value[t.value.offset]-y,U=(H-M)*100*w.value/c.value[t.value.offset];t.value.scroll==="scrollLeft"?s.wrapElement[t.value.scroll]=U*l/100:s.wrapElement[t.value.scroll]=U*T/100},C=()=>{n=!1,p.value[t.value.axis]=0,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",C),b(),d&&(i.value=!1)},_=()=>{d=!1,i.value=!!v.size},e=()=>{d=!0,i.value=n};ee(()=>{b(),document.removeEventListener("mouseup",C)});const b=()=>{document.onselectstart!==o&&(document.onselectstart=o)};return O(X(s,"scrollbarElement"),"mousemove",_),O(X(s,"scrollbarElement"),"mouseleave",e),(r,y)=>(P(),W(oe,{name:g(a).b("fade"),persisted:""},{default:Q(()=>[te(A("div",{ref_key:"instance",ref:c,class:R([g(a).e("bar"),g(a).is(g(t).key)]),onMousedown:S,onClick:le(()=>{},["stop"])},[A("div",{ref_key:"thumb",ref:f,class:R(g(a).e("thumb")),style:$(g(h)),onMousedown:E},null,38)],42,["onClick"]),[[ae,r.always||i.value]])]),_:1},8,["name"]))}});var F=j(He,[["__file","thumb.vue"]]);const Te=D({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),ke=x({__name:"bar",props:Te,setup(m,{expose:v}){const s=m,a=G(K),c=u(0),f=u(0),p=u(""),i=u(""),n=u(1),d=u(1);return v({handleScroll:o=>{if(o){const t=o.offsetHeight-k,h=o.offsetWidth-k;f.value=o.scrollTop*100/t*n.value,c.value=o.scrollLeft*100/h*d.value}},update:()=>{const o=a?.wrapElement;if(!o)return;const t=o.offsetHeight-k,h=o.offsetWidth-k,w=t**2/o.scrollHeight,E=h**2/o.scrollWidth,S=Math.max(w,s.minSize),z=Math.max(E,s.minSize);n.value=w/(t-w)/(S/(t-S)),d.value=E/(h-E)/(z/(h-z)),i.value=S+k(P(),Z(re,null,[Y(F,{move:c.value,ratio:d.value,size:p.value,always:o.always},null,8,["move","ratio","size","always"]),Y(F,{move:f.value,ratio:n.value,size:i.value,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Le=j(ke,[["__file","bar.vue"]]);const Ce=D({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ne([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Se(["ariaLabel","ariaOrientation"])}),Ne={"end-reached":m=>["left","right","top","bottom"].includes(m),scroll:({scrollTop:m,scrollLeft:v})=>[m,v].every(N)},Pe="ElScrollbar",Re=x({name:Pe}),Be=x({...Re,props:Ce,emits:Ne,setup(m,{expose:v,emit:s}){const a=m,c=J("scrollbar");let f,p,i=0,n=0,d="";const T=u(),l=u(),o=u(),t=u(),h=L(()=>{const e={};return a.height&&(e.height=V(a.height)),a.maxHeight&&(e.maxHeight=V(a.maxHeight)),[a.wrapStyle,e]}),w=L(()=>[a.wrapClass,c.e("wrap"),{[c.em("wrap","hidden-default")]:!a.native}]),E=L(()=>[c.e("view"),a.viewClass]),S=()=>{var e;if(l.value){(e=t.value)==null||e.handleScroll(l.value);const b=i,r=n;i=l.value.scrollTop,n=l.value.scrollLeft;const y={bottom:i+l.value.clientHeight>=l.value.scrollHeight,top:i<=0&&b!==0,right:n+l.value.clientWidth>=l.value.scrollWidth&&r!==n,left:n<=0&&r!==0};b!==i&&(d=i>b?"bottom":"top"),r!==n&&(d=n>r?"right":"left"),s("scroll",{scrollTop:i,scrollLeft:n}),y[d]&&s("end-reached",d)}};function z(e,b){be(e)?l.value.scrollTo(e):N(e)&&N(b)&&l.value.scrollTo(e,b)}const B=e=>{N(e)&&(l.value.scrollTop=e)},C=e=>{N(e)&&(l.value.scrollLeft=e)},_=()=>{var e;(e=t.value)==null||e.update()};return I(()=>a.noresize,e=>{e?(f?.(),p?.()):({stop:f}=ie(o,_),p=O("resize",_))},{immediate:!0}),I(()=>[a.maxHeight,a.height],()=>{a.native||q(()=>{var e;_(),l.value&&((e=t.value)==null||e.handleScroll(l.value))})}),ce(K,ue({scrollbarElement:T,wrapElement:l})),ve(()=>{l.value&&(l.value.scrollTop=i,l.value.scrollLeft=n)}),fe(()=>{a.native||q(()=>{_()})}),de(()=>_()),v({wrapRef:l,update:_,scrollTo:z,setScrollTop:B,setScrollLeft:C,handleScroll:S}),(e,b)=>(P(),Z("div",{ref_key:"scrollbarRef",ref:T,class:R(g(c).b())},[A("div",{ref_key:"wrapRef",ref:l,class:R(g(w)),style:$(g(h)),tabindex:e.tabindex,onScroll:S},[(P(),W(he(e.tag),{id:e.id,ref_key:"resizeRef",ref:o,class:R(g(E)),style:$(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:Q(()=>[pe(e.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),e.native?me("v-if",!0):(P(),W(Le,{key:0,ref_key:"barRef",ref:t,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});var xe=j(Be,[["__file","scrollbar.vue"]]);const We=ye(xe);export{We as E,Ne as s}; diff --git a/mail-worker/dist/assets/el-select-bzu4tt0u.js b/mail-worker/dist/assets/el-select-BvsCrs4t.js similarity index 98% rename from mail-worker/dist/assets/el-select-bzu4tt0u.js rename to mail-worker/dist/assets/el-select-BvsCrs4t.js index ac9c25b..d955d5e 100644 --- a/mail-worker/dist/assets/el-select-bzu4tt0u.js +++ b/mail-worker/dist/assets/el-select-BvsCrs4t.js @@ -1 +1 @@ -import{bN as ot,bF as cl,b$ as it,c0 as rt,bR as X,c1 as fl,S as P,aa as pl,a8 as ut,as as vl,z as I,k as f,W as j,b as dt,y as ye,U as A,au as ml,F as q,H as Se,_ as Ce,a as ue,N as se,O as Me,c as E,o as S,r as R,f as V,t as F,a7 as B,n as y,u as ie,g as Ve,bS as De,D as re,J as ct,$ as K,e as $,i as ge,I as $e,aK as hl,bw as bl,bq as gl,C as be,c2 as Ye,V as yl,ac as ae,E as Sl,c3 as Cl,aQ as Ol,M as wl,bv as El,d as le,A as Il,R as Ze,bs as Vl,aS as Tl,aq as Q,ah as Rl,ab as J,p as L,m as H,P as _e,ap as xe,h as et,aP as ne,br as Ml,a6 as Te,c4 as Dl,L as $l,G as ft,c5 as kl,a9 as Ll,w as Nl,l as pt}from"./index-C-CeCRdr.js";import{S as Bl,l as vt,k as Pl,i as oe,u as tt,c as Fl,t as lt,E as Al,a as Wl}from"./el-tag-Bx7m9zwB.js";import{s as zl,E as Hl}from"./el-scrollbar-UsUjrt3r.js";import{h as Kl,i as Ul,t as Gl,d as nt,u as ql}from"./index-mPHfnfYT.js";import{e as mt,b as Ql,c as Jl,a as jl}from"./index-DbudBMlZ.js";import{d as Xl,c as Yl,s as Zl,f as _l}from"./vnode-iQPJucW4.js";import{U as Z,C as ht}from"./event-BB_Ol6Sd.js";import{d as xl}from"./iconify-DCkxz_hX.js";function en(e,n,s,i){e.length;for(var o=s+1;o--;)if(n(e[o],o,e))return o;return-1}function G(){if(!arguments.length)return[];var e=arguments[0];return ot(e)?e:[e]}var tn=1,ln=2;function nn(e,n,s,i){var o=s.length,m=o;if(e==null)return!m;for(e=Object(e);o--;){var l=s[o];if(l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++oe=n),document.addEventListener("mouseup",n=>{if(e){for(const s of U.values())for(const{documentHandler:i}of s)i(n,e);e=void 0}})}function at(e,n){let s=[];return P(n.arg)?s=n.arg:pl(n.arg)&&s.push(n.arg),function(i,o){const m=n.instance.popperRef,l=i.target,h=o?.target,b=!n||!n.instance,g=!l||!h,v=e.contains(l)||e.contains(h),d=e===l,u=s.length&&s.some(p=>p?.contains(l))||s.length&&s.includes(h),r=m&&(m.contains(l)||m.contains(h));b||g||v||d||u||r||n.value(i,o)}}const mn={beforeMount(e,n){U.has(e)||U.set(e,[]),U.get(e).push({documentHandler:at(e,n),bindingFn:n.value})},updated(e,n){U.has(e)||U.set(e,[]);const s=U.get(e),i=s.findIndex(m=>m.bindingFn===n.oldValue),o={documentHandler:at(e,n),bindingFn:n.value};i>=0?s.splice(i,1,o):s.push(o)},unmounted(e){U.delete(e)}};function hn(){const e=vl(),n=I(0),s=11,i=f(()=>({minWidth:`${Math.max(n.value,s)}px`}));return j(e,()=>{var m,l;n.value=(l=(m=e.value)==null?void 0:m.getBoundingClientRect().width)!=null?l:0}),{calculatorRef:e,calculatorWidth:n,inputStyle:i}}const yt=Symbol("ElSelectGroup"),Oe=Symbol("ElSelect"),Re="ElOption",bn=dt({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),gn=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function yn(e,n){const s=ye(Oe);s||Gl(Re,"usage: ");const i=ye(yt,{disabled:!1}),o=f(()=>v(G(s.props.modelValue),e.value)),m=f(()=>{var r;if(s.props.multiple){const p=G((r=s.props.modelValue)!=null?r:[]);return!o.value&&p.length>=s.props.multipleLimit&&s.props.multipleLimit>0}else return!1}),l=f(()=>{var r;return(r=e.label)!=null?r:A(e.value)?"":e.value}),h=f(()=>e.value||e.label||""),b=f(()=>e.disabled||n.groupDisabled||m.value),g=Se(),v=(r=[],p)=>{if(A(e.value)){const w=s.props.valueKey;return r&&r.some(T=>ml(X(T,w))===X(p,w))}else return r&&r.includes(p)},d=()=>{!e.disabled&&!i.disabled&&(s.states.hoveringIndex=s.optionsArray.indexOf(g.proxy))},u=r=>{const p=new RegExp(gn(r),"i");n.visible=p.test(String(l.value))||e.created};return q(()=>l.value,()=>{!e.created&&!s.props.remote&&s.setSelected()}),q(()=>e.value,(r,p)=>{const{remote:w,valueKey:T}=s.props;if((w?r!==p:!oe(r,p))&&(s.onOptionDestroy(p,g.proxy),s.onOptionCreate(g.proxy)),!e.created&&!w){if(T&&A(r)&&A(p)&&r[T]===p[T])return;s.setSelected()}}),q(()=>i.disabled,()=>{n.groupDisabled=i.disabled},{immediate:!0}),{select:s,currentLabel:l,currentValue:h,itemSelected:o,isDisabled:b,hoverItem:d,updateOption:u}}const Sn=ue({name:Re,componentName:Re,props:bn,setup(e){const n=ie("select"),s=mt(),i=f(()=>[n.be("dropdown","item"),n.is("disabled",Ve(h)),n.is("selected",Ve(l)),n.is("hovering",Ve(u))]),o=re({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:m,itemSelected:l,isDisabled:h,select:b,hoverItem:g,updateOption:v}=yn(e,o),{visible:d,hover:u}=De(o),r=Se().proxy;b.onOptionCreate(r),ct(()=>{const w=r.value,{selected:T}=b.states,M=T.some(C=>C.value===r.value);K(()=>{b.states.cachedOptions.get(w)===r&&!M&&b.states.cachedOptions.delete(w)}),b.onOptionDestroy(w,r)});function p(){h.value||b.handleOptionSelect(r)}return{ns:n,id:s,containerKls:i,currentLabel:m,itemSelected:l,isDisabled:h,select:b,visible:d,hover:u,states:o,hoverItem:g,updateOption:v,selectOptionClick:p}}});function Cn(e,n){return se((S(),E("li",{id:e.id,class:y(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:B(e.selectOptionClick,["stop"])},[R(e.$slots,"default",{},()=>[V("span",null,F(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[Me,e.visible]])}var ke=Ce(Sn,[["render",Cn],["__file","option.vue"]]);const On=ue({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=ye(Oe),n=ie("select"),s=f(()=>e.props.popperClass),i=f(()=>e.props.multiple),o=f(()=>e.props.fitInputWidth),m=I("");function l(){var h;m.value=`${(h=e.selectRef)==null?void 0:h.offsetWidth}px`}return $e(()=>{l(),j(e.selectRef,l)}),{ns:n,minWidth:m,popperClass:s,isMultiple:i,isFitInputWidth:o}}});function wn(e,n,s,i,o,m){return S(),E("div",{class:y([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ge({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(S(),E("div",{key:0,class:y(e.ns.be("dropdown","header"))},[R(e.$slots,"header")],2)):$("v-if",!0),R(e.$slots,"default"),e.$slots.footer?(S(),E("div",{key:1,class:y(e.ns.be("dropdown","footer"))},[R(e.$slots,"footer")],2)):$("v-if",!0)],6)}var En=Ce(On,[["render",wn],["__file","select-dropdown.vue"]]);const In=(e,n)=>{const{t:s}=hl(),i=mt(),o=ie("select"),m=ie("input"),l=re({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),h=I(),b=I(),g=I(),v=I(),d=I(),u=I(),r=I(),p=I(),w=I(),T=I(),M=I(),C=I(!1),N=I(),{form:de,formItem:W}=Ql(),{inputId:Ct}=Jl(e,{formItemContext:W}),{valueOnClear:Ot,isEmptyValue:wt}=bl(e),{isComposing:Le,handleCompositionStart:Et,handleCompositionUpdate:It,handleCompositionEnd:Vt}=Xl({afterComposition:t=>Ue(t)}),_=f(()=>e.disabled||!!de?.disabled),{wrapperRef:Ne,isFocused:Be,handleBlur:Tt}=Yl(d,{disabled:_,afterFocus(){e.automaticDropdown&&!C.value&&(C.value=!0,l.menuVisibleOnFocus=!0)},beforeBlur(t){var a,c;return((a=g.value)==null?void 0:a.isFocusInsideContent(t))||((c=v.value)==null?void 0:c.isFocusInsideContent(t))},afterBlur(){var t;C.value=!1,l.menuVisibleOnFocus=!1,e.validateEvent&&((t=W?.validate)==null||t.call(W,"blur").catch(a=>nt()))}}),we=f(()=>P(e.modelValue)?e.modelValue.length>0:!wt(e.modelValue)),Rt=f(()=>{var t;return(t=de?.statusIcon)!=null?t:!1}),Mt=f(()=>e.clearable&&!_.value&&l.inputHovering&&we.value),Pe=f(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Dt=f(()=>o.is("reverse",!!(Pe.value&&C.value))),Ee=f(()=>W?.validateState||""),$t=f(()=>Ee.value&&gl[Ee.value]),kt=f(()=>e.remote?300:0),Lt=f(()=>e.remote&&!l.inputValue&&l.options.size===0),Nt=f(()=>e.loading?e.loadingText||s("el.select.loading"):e.filterable&&l.inputValue&&l.options.size>0&&x.value===0?e.noMatchText||s("el.select.noMatch"):l.options.size===0?e.noDataText||s("el.select.noData"):null),x=f(()=>D.value.filter(t=>t.visible).length),D=f(()=>{const t=Array.from(l.options.values()),a=[];return l.optionValues.forEach(c=>{const O=t.findIndex(k=>k.value===c);O>-1&&a.push(t[O])}),a.length>=t.length?a:t}),Bt=f(()=>Array.from(l.cachedOptions.values())),Pt=f(()=>{const t=D.value.filter(a=>!a.created).some(a=>a.currentLabel===l.inputValue);return e.filterable&&e.allowCreate&&l.inputValue!==""&&!t}),Fe=()=>{e.filterable&&ae(e.filterMethod)||e.filterable&&e.remote&&ae(e.remoteMethod)||D.value.forEach(t=>{var a;(a=t.updateOption)==null||a.call(t,l.inputValue)})},Ae=jl(),Ft=f(()=>["small"].includes(Ae.value)?"small":"default"),At=f({get(){return C.value&&!Lt.value},set(t){C.value=t}}),Wt=f(()=>{if(e.multiple&&!be(e.modelValue))return G(e.modelValue).length===0&&!l.inputValue;const t=P(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||be(t)?!l.inputValue:!0}),zt=f(()=>{var t;const a=(t=e.placeholder)!=null?t:s("el.select.placeholder");return e.multiple||!we.value?a:l.selectedLabel}),Ht=f(()=>Ye?null:"mouseenter");q(()=>e.modelValue,(t,a)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(l.inputValue="",ce("")),fe(),!oe(t,a)&&e.validateEvent&&W?.validate("change").catch(c=>nt())},{flush:"post",deep:!0}),q(()=>C.value,t=>{t?ce(l.inputValue):(l.inputValue="",l.previousQuery=null,l.isBeforeHide=!0),n("visible-change",t)}),q(()=>l.options.entries(),()=>{ut&&(fe(),e.defaultFirstOption&&(e.filterable||e.remote)&&x.value&&We())},{flush:"post"}),q([()=>l.hoveringIndex,D],([t])=>{Ol(t)&&t>-1?N.value=D.value[t]||{}:N.value={},D.value.forEach(a=>{a.hover=N.value===a})}),yl(()=>{l.isBeforeHide||Fe()});const ce=t=>{l.previousQuery===t||Le.value||(l.previousQuery=t,e.filterable&&ae(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&ae(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&x.value?K(We):K(Kt))},We=()=>{const t=D.value.filter(k=>k.visible&&!k.disabled&&!k.states.groupDisabled),a=t.find(k=>k.created),c=t[0],O=D.value.map(k=>k.value);l.hoveringIndex=Je(O,a||c)},fe=()=>{if(e.multiple)l.selectedLabel="";else{const a=P(e.modelValue)?e.modelValue[0]:e.modelValue,c=ze(a);l.selectedLabel=c.currentLabel,l.selected=[c];return}const t=[];be(e.modelValue)||G(e.modelValue).forEach(a=>{t.push(ze(a))}),l.selected=t},ze=t=>{let a;const c=Cl(t);for(let Y=l.cachedOptions.size-1;Y>=0;Y--){const z=Bt.value[Y];if(c?X(z.value,e.valueKey)===X(t,e.valueKey):z.value===t){a={value:t,currentLabel:z.currentLabel,get isDisabled(){return z.isDisabled}};break}}if(a)return a;const O=c?t.label:t??"";return{value:t,currentLabel:O}},Kt=()=>{l.hoveringIndex=D.value.findIndex(t=>l.selected.some(a=>me(a)===me(t)))},Ut=()=>{l.selectionWidth=Number.parseFloat(window.getComputedStyle(b.value).width)},Gt=()=>{l.collapseItemWidth=T.value.getBoundingClientRect().width},Ie=()=>{var t,a;(a=(t=g.value)==null?void 0:t.updatePopper)==null||a.call(t)},He=()=>{var t,a;(a=(t=v.value)==null?void 0:t.updatePopper)==null||a.call(t)},Ke=()=>{l.inputValue.length>0&&!C.value&&(C.value=!0),ce(l.inputValue)},Ue=t=>{if(l.inputValue=t.target.value,e.remote)Ge();else return Ke()},Ge=xl(()=>{Ke()},kt.value),ee=t=>{oe(e.modelValue,t)||n(ht,t)},qt=t=>vn(t,a=>{const c=l.cachedOptions.get(a);return c&&!c.disabled&&!c.states.groupDisabled}),Qt=t=>{if(e.multiple&&t.code!==Sl.delete&&t.target.value.length<=0){const a=G(e.modelValue).slice(),c=qt(a);if(c<0)return;const O=a[c];a.splice(c,1),n(Z,a),ee(a),n("remove-tag",O)}},Jt=(t,a)=>{const c=l.selected.indexOf(a);if(c>-1&&!_.value){const O=G(e.modelValue).slice();O.splice(c,1),n(Z,O),ee(O),n("remove-tag",a.value)}t.stopPropagation(),ve()},qe=t=>{t.stopPropagation();const a=e.multiple?[]:Ot.value;if(e.multiple)for(const c of l.selected)c.isDisabled&&a.push(c.value);n(Z,a),ee(a),l.hoveringIndex=-1,C.value=!1,n("clear"),ve()},Qe=t=>{var a;if(e.multiple){const c=G((a=e.modelValue)!=null?a:[]).slice(),O=Je(c,t);O>-1?c.splice(O,1):(e.multipleLimit<=0||c.length{pe(t)})},Je=(t,a)=>be(a)?-1:A(a.value)?t.findIndex(c=>oe(X(c,e.valueKey),me(a))):t.indexOf(a.value),pe=t=>{var a,c,O,k,Y;const z=P(t)?t[0]:t;let he=null;if(z?.value){const te=D.value.filter(dl=>dl.value===z.value);te.length>0&&(he=te[0].$el)}if(g.value&&he){const te=(k=(O=(c=(a=g.value)==null?void 0:a.popperRef)==null?void 0:c.contentRef)==null?void 0:O.querySelector)==null?void 0:k.call(O,`.${o.be("dropdown","wrap")}`);te&&Zl(te,he)}(Y=M.value)==null||Y.handleScroll()},jt=t=>{l.options.set(t.value,t),l.cachedOptions.set(t.value,t)},Xt=(t,a)=>{l.options.get(t)===a&&l.options.delete(t)},Yt=f(()=>{var t,a;return(a=(t=g.value)==null?void 0:t.popperRef)==null?void 0:a.contentRef}),Zt=()=>{l.isBeforeHide=!1,K(()=>{var t;(t=M.value)==null||t.update(),pe(l.selected)})},ve=()=>{var t;(t=d.value)==null||t.focus()},_t=()=>{var t;if(C.value){C.value=!1,K(()=>{var a;return(a=d.value)==null?void 0:a.blur()});return}(t=d.value)==null||t.blur()},xt=t=>{qe(t)},el=t=>{if(C.value=!1,Be.value){const a=new FocusEvent("focus",t);K(()=>Tt(a))}},tl=()=>{l.inputValue.length>0?l.inputValue="":C.value=!1},je=()=>{_.value||(Ye&&(l.inputHovering=!0),l.menuVisibleOnFocus?l.menuVisibleOnFocus=!1:C.value=!C.value)},ll=()=>{if(!C.value)je();else{const t=D.value[l.hoveringIndex];t&&!t.isDisabled&&Qe(t)}},me=t=>A(t.value)?X(t.value,e.valueKey):t.value,nl=f(()=>D.value.filter(t=>t.visible).every(t=>t.isDisabled)),al=f(()=>e.multiple?e.collapseTags?l.selected.slice(0,e.maxCollapseTags):l.selected:[]),sl=f(()=>e.multiple?e.collapseTags?l.selected.slice(e.maxCollapseTags):[]:[]),Xe=t=>{if(!C.value){C.value=!0;return}if(!(l.options.size===0||x.value===0||Le.value)&&!nl.value){t==="next"?(l.hoveringIndex++,l.hoveringIndex===l.options.size&&(l.hoveringIndex=0)):t==="prev"&&(l.hoveringIndex--,l.hoveringIndex<0&&(l.hoveringIndex=l.options.size-1));const a=D.value[l.hoveringIndex];(a.isDisabled||!a.visible)&&Xe(t),K(()=>pe(N.value))}},ol=()=>{if(!b.value)return 0;const t=window.getComputedStyle(b.value);return Number.parseFloat(t.gap||"6px")},il=f(()=>{const t=ol();return{maxWidth:`${T.value&&e.maxCollapseTags===1?l.selectionWidth-l.collapseItemWidth-t:l.selectionWidth}px`}}),rl=f(()=>({maxWidth:`${l.selectionWidth}px`})),ul=t=>{n("popup-scroll",t)};return j(b,Ut),j(p,Ie),j(Ne,Ie),j(w,He),j(T,Gt),$e(()=>{fe()}),{inputId:Ct,contentId:i,nsSelect:o,nsInput:m,states:l,isFocused:Be,expanded:C,optionsArray:D,hoverOption:N,selectSize:Ae,filteredOptionsCount:x,updateTooltip:Ie,updateTagTooltip:He,debouncedOnInputChange:Ge,onInput:Ue,deletePrevTag:Qt,deleteTag:Jt,deleteSelected:qe,handleOptionSelect:Qe,scrollToOption:pe,hasModelValue:we,shouldShowPlaceholder:Wt,currentPlaceholder:zt,mouseEnterEventName:Ht,needStatusIcon:Rt,showClose:Mt,iconComponent:Pe,iconReverse:Dt,validateState:Ee,validateIcon:$t,showNewOption:Pt,updateOptions:Fe,collapseTagSize:Ft,setSelected:fe,selectDisabled:_,emptyText:Nt,handleCompositionStart:Et,handleCompositionUpdate:It,handleCompositionEnd:Vt,onOptionCreate:jt,onOptionDestroy:Xt,handleMenuEnter:Zt,focus:ve,blur:_t,handleClearClick:xt,handleClickOutside:el,handleEsc:tl,toggleMenu:je,selectOption:ll,getValueKey:me,navigateOptions:Xe,dropdownMenuVisible:At,showTagList:al,collapseTagList:sl,popupScroll:ul,tagStyle:il,collapseTagStyle:rl,popperRef:Yt,inputRef:d,tooltipRef:g,tagTooltipRef:v,prefixRef:u,suffixRef:r,selectRef:h,wrapperRef:Ne,selectionRef:b,scrollbarRef:M,menuRef:p,tagMenuRef:w,collapseItemRef:T}};var Vn=ue({name:"ElOptions",setup(e,{slots:n}){const s=ye(Oe);let i=[];return()=>{var o,m;const l=(o=n.default)==null?void 0:o.call(n),h=[];function b(g){P(g)&&g.forEach(v=>{var d,u,r,p;const w=(d=v?.type||{})==null?void 0:d.name;w==="ElOptionGroup"?b(!wl(v.children)&&!P(v.children)&&ae((u=v.children)==null?void 0:u.default)?(r=v.children)==null?void 0:r.default():v.children):w==="ElOption"?h.push((p=v.props)==null?void 0:p.value):P(v.children)&&b(v.children)})}return l.length&&b((m=l[0])==null?void 0:m.children),oe(h,i)||(i=h,s&&(s.states.optionValues=h)),l}}});const Tn=dt({name:String,id:String,modelValue:{type:le([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Tl,effect:{type:le(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:tt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ze,default:Vl},fitInputWidth:Boolean,suffixIcon:{type:Ze,default:Il},tagType:{...lt.type,default:"info"},tagEffect:{...lt.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:le(String),values:Fl,default:"bottom-start"},fallbackPlacements:{type:le(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:tt.appendTo,...El,...ql(["ariaLabel"])});zl.scroll;const st="ElSelect",Rn=ue({name:st,componentName:st,components:{ElSelectMenu:En,ElOption:ke,ElOptions:Vn,ElTag:Wl,ElScrollbar:Hl,ElTooltip:Al,ElIcon:$l},directives:{ClickOutside:mn},props:Tn,emits:[Z,ht,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:n,slots:s}){const i=Se();i.appContext.config.warnHandler=(...u)=>{!u[0]||u[0].includes('Slot "default" invoked outside of the render function')||console.warn(...u)};const o=f(()=>{const{modelValue:u,multiple:r}=e,p=r?[]:void 0;return P(u)?r?u:p:r?p:u}),m=re({...De(e),modelValue:o}),l=In(m,n),{calculatorRef:h,inputStyle:b}=hn(),g=u=>u.reduce((r,p)=>(r.push(p),p.children&&p.children.length>0&&r.push(...g(p.children)),r),[]),v=u=>{_l(u||[]).forEach(p=>{var w;if(A(p)&&(p.type.name==="ElOption"||p.type.name==="ElTree")){const T=p.type.name;if(T==="ElTree"){const M=((w=p.props)==null?void 0:w.data)||[];g(M).forEach(N=>{N.currentLabel=N.label||(A(N.value)?"":N.value),l.onOptionCreate(N)})}else if(T==="ElOption"){const M={...p.props};M.currentLabel=M.label||(A(M.value)?"":M.value),l.onOptionCreate(M)}}})};q(()=>{var u;return(u=s.default)==null?void 0:u.call(s)},u=>{e.persistent||v(u)},{immediate:!0}),ft(Oe,re({props:m,states:l.states,selectRef:l.selectRef,optionsArray:l.optionsArray,setSelected:l.setSelected,handleOptionSelect:l.handleOptionSelect,onOptionCreate:l.onOptionCreate,onOptionDestroy:l.onOptionDestroy}));const d=f(()=>e.multiple?l.states.selected.map(u=>u.currentLabel):l.states.selectedLabel);return ct(()=>{i.appContext.config.warnHandler=void 0}),{...l,modelValue:o,selectedLabel:d,calculatorRef:h,inputStyle:b}}});function Mn(e,n){const s=Q("el-tag"),i=Q("el-tooltip"),o=Q("el-icon"),m=Q("el-option"),l=Q("el-options"),h=Q("el-scrollbar"),b=Q("el-select-menu"),g=Rl("click-outside");return se((S(),E("div",{ref:"selectRef",class:y([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Dl(e.mouseEnterEventName)]:v=>e.states.inputHovering=!0,onMouseleave:v=>e.states.inputHovering=!1},[J(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:v=>e.states.isBeforeHide=!1},{default:L(()=>{var v;return[V("div",{ref:"wrapperRef",class:y([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:B(e.toggleMenu,["prevent"])},[e.$slots.prefix?(S(),E("div",{key:0,ref:"prefixRef",class:y(e.nsSelect.e("prefix"))},[R(e.$slots,"prefix")],2)):$("v-if",!0),V("div",{ref:"selectionRef",class:y([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?R(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(S(!0),E(_e,null,xe(e.showTagList,d=>(S(),E("div",{key:e.getValueKey(d),class:y(e.nsSelect.e("selected-item"))},[J(s,{closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ge(e.tagStyle),onClose:u=>e.deleteTag(u,d)},{default:L(()=>[V("span",{class:y(e.nsSelect.e("tags-text"))},[R(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[et(F(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(S(),H(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,teleported:e.teleported},{default:L(()=>[V("div",{ref:"collapseItemRef",class:y(e.nsSelect.e("selected-item"))},[J(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ge(e.collapseTagStyle)},{default:L(()=>[V("span",{class:y(e.nsSelect.e("tags-text"))}," + "+F(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:L(()=>[V("div",{ref:"tagMenuRef",class:y(e.nsSelect.e("selection"))},[(S(!0),E(_e,null,xe(e.collapseTagList,d=>(S(),E("div",{key:e.getValueKey(d),class:y(e.nsSelect.e("selected-item"))},[J(s,{class:"in-tooltip",closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:u=>e.deleteTag(u,d)},{default:L(()=>[V("span",{class:y(e.nsSelect.e("tags-text"))},[R(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[et(F(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","teleported"])):$("v-if",!0)]):$("v-if",!0),V("div",{class:y([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[se(V("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":d=>e.states.inputValue=d,type:"text",name:e.name,class:y([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ge(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[ne(B(d=>e.navigateOptions("next"),["stop","prevent"]),["down"]),ne(B(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),ne(B(e.handleEsc,["stop","prevent"]),["esc"]),ne(B(e.selectOption,["stop","prevent"]),["enter"]),ne(B(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:B(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Ml,e.states.inputValue]]),e.filterable?(S(),E("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:y(e.nsSelect.e("input-calculator")),textContent:F(e.states.inputValue)},null,10,["textContent"])):$("v-if",!0)],2),e.shouldShowPlaceholder?(S(),E("div",{key:1,class:y([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?R(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[V("span",null,F(e.currentPlaceholder),1)]):(S(),E("span",{key:1},F(e.currentPlaceholder),1))],2)):$("v-if",!0)],2),V("div",{ref:"suffixRef",class:y(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(S(),H(o,{key:0,class:y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:L(()=>[(S(),H(Te(e.iconComponent)))]),_:1},8,["class"])):$("v-if",!0),e.showClose&&e.clearIcon?(S(),H(o,{key:1,class:y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:L(()=>[(S(),H(Te(e.clearIcon)))]),_:1},8,["class","onClick"])):$("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),H(o,{key:2,class:y([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:L(()=>[(S(),H(Te(e.validateIcon)))]),_:1},8,["class"])):$("v-if",!0)],2)],10,["onClick"])]}),content:L(()=>[J(b,{ref:"menuRef"},{default:L(()=>[e.$slots.header?(S(),E("div",{key:0,class:y(e.nsSelect.be("dropdown","header")),onClick:B(()=>{},["stop"])},[R(e.$slots,"header")],10,["onClick"])):$("v-if",!0),se(J(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:y([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:L(()=>[e.showNewOption?(S(),H(m,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):$("v-if",!0),J(l,null,{default:L(()=>[R(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[Me,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(S(),E("div",{key:1,class:y(e.nsSelect.be("dropdown","loading"))},[R(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(S(),E("div",{key:2,class:y(e.nsSelect.be("dropdown","empty"))},[R(e.$slots,"empty",{},()=>[V("span",null,F(e.emptyText),1)])],2)):$("v-if",!0),e.$slots.footer?(S(),E("div",{key:3,class:y(e.nsSelect.be("dropdown","footer")),onClick:B(()=>{},["stop"])},[R(e.$slots,"footer")],10,["onClick"])):$("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[g,e.handleClickOutside,e.popperRef]])}var Dn=Ce(Rn,[["render",Mn],["__file","select.vue"]]);const $n=ue({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const n=ie("select"),s=I(),i=Se(),o=I([]);ft(yt,re({...De(e)}));const m=f(()=>o.value.some(g=>g.visible===!0)),l=g=>{var v;return g.type.name==="ElOption"&&!!((v=g.component)!=null&&v.proxy)},h=g=>{const v=G(g),d=[];return v.forEach(u=>{var r;Ll(u)&&(l(u)?d.push(u.component.proxy):P(u.children)&&u.children.length?d.push(...h(u.children)):(r=u.component)!=null&&r.subTree&&d.push(...h(u.component.subTree)))}),d},b=()=>{o.value=h(i.subTree)};return $e(()=>{b()}),kl(s,b,{attributes:!0,subtree:!0,childList:!0}),{groupRef:s,visible:m,ns:n}}});function kn(e,n,s,i,o,m){return se((S(),E("ul",{ref:"groupRef",class:y(e.ns.be("group","wrap"))},[V("li",{class:y(e.ns.be("group","title"))},F(e.label),3),V("li",null,[V("ul",{class:y(e.ns.b("group"))},[R(e.$slots,"default")],2)])],2)),[[Me,e.visible]])}var St=Ce($n,[["render",kn],["__file","option-group.vue"]]);const Hn=Nl(Dn,{Option:ke,OptionGroup:St}),Kn=pt(ke);pt(St);export{mn as C,Hn as E,Kn as a,pn as b,G as c,Oe as s,hn as u}; +import{bN as ot,bF as cl,b$ as it,c0 as rt,bR as X,c1 as fl,S as P,aa as pl,a8 as ut,as as vl,z as I,k as f,W as j,b as dt,y as ye,U as A,au as ml,F as q,H as Se,_ as Ce,a as ue,N as se,O as Me,c as E,o as S,r as R,f as V,t as F,a7 as B,n as y,u as ie,g as Ve,bS as De,D as re,J as ct,$ as K,e as $,i as ge,I as $e,aK as hl,bw as bl,bq as gl,C as be,c2 as Ye,V as yl,ac as ae,E as Sl,c3 as Cl,aQ as Ol,M as wl,bv as El,d as le,A as Il,R as Ze,bs as Vl,aS as Tl,aq as Q,ah as Rl,ab as J,p as L,m as H,P as _e,ap as xe,h as et,aP as ne,br as Ml,a6 as Te,c4 as Dl,L as $l,G as ft,c5 as kl,a9 as Ll,w as Nl,l as pt}from"./index-DpP8vbvu.js";import{S as Bl,l as vt,k as Pl,i as oe,u as tt,c as Fl,t as lt,E as Al,a as Wl}from"./el-tag-CjAzCWMf.js";import{s as zl,E as Hl}from"./el-scrollbar-DIXSy-7M.js";import{h as Kl,i as Ul,t as Gl,d as nt,u as ql}from"./index-BMdPKuCq.js";import{e as mt,b as Ql,c as Jl,a as jl}from"./index-D7KcZu8a.js";import{d as Xl,c as Yl,s as Zl,f as _l}from"./vnode-DPqF99Zc.js";import{U as Z,C as ht}from"./event-BB_Ol6Sd.js";import{d as xl}from"./iconify-CxZjXnJf.js";function en(e,n,s,i){e.length;for(var o=s+1;o--;)if(n(e[o],o,e))return o;return-1}function G(){if(!arguments.length)return[];var e=arguments[0];return ot(e)?e:[e]}var tn=1,ln=2;function nn(e,n,s,i){var o=s.length,m=o;if(e==null)return!m;for(e=Object(e);o--;){var l=s[o];if(l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++oe=n),document.addEventListener("mouseup",n=>{if(e){for(const s of U.values())for(const{documentHandler:i}of s)i(n,e);e=void 0}})}function at(e,n){let s=[];return P(n.arg)?s=n.arg:pl(n.arg)&&s.push(n.arg),function(i,o){const m=n.instance.popperRef,l=i.target,h=o?.target,b=!n||!n.instance,g=!l||!h,v=e.contains(l)||e.contains(h),d=e===l,u=s.length&&s.some(p=>p?.contains(l))||s.length&&s.includes(h),r=m&&(m.contains(l)||m.contains(h));b||g||v||d||u||r||n.value(i,o)}}const mn={beforeMount(e,n){U.has(e)||U.set(e,[]),U.get(e).push({documentHandler:at(e,n),bindingFn:n.value})},updated(e,n){U.has(e)||U.set(e,[]);const s=U.get(e),i=s.findIndex(m=>m.bindingFn===n.oldValue),o={documentHandler:at(e,n),bindingFn:n.value};i>=0?s.splice(i,1,o):s.push(o)},unmounted(e){U.delete(e)}};function hn(){const e=vl(),n=I(0),s=11,i=f(()=>({minWidth:`${Math.max(n.value,s)}px`}));return j(e,()=>{var m,l;n.value=(l=(m=e.value)==null?void 0:m.getBoundingClientRect().width)!=null?l:0}),{calculatorRef:e,calculatorWidth:n,inputStyle:i}}const yt=Symbol("ElSelectGroup"),Oe=Symbol("ElSelect"),Re="ElOption",bn=dt({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),gn=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function yn(e,n){const s=ye(Oe);s||Gl(Re,"usage: ");const i=ye(yt,{disabled:!1}),o=f(()=>v(G(s.props.modelValue),e.value)),m=f(()=>{var r;if(s.props.multiple){const p=G((r=s.props.modelValue)!=null?r:[]);return!o.value&&p.length>=s.props.multipleLimit&&s.props.multipleLimit>0}else return!1}),l=f(()=>{var r;return(r=e.label)!=null?r:A(e.value)?"":e.value}),h=f(()=>e.value||e.label||""),b=f(()=>e.disabled||n.groupDisabled||m.value),g=Se(),v=(r=[],p)=>{if(A(e.value)){const w=s.props.valueKey;return r&&r.some(T=>ml(X(T,w))===X(p,w))}else return r&&r.includes(p)},d=()=>{!e.disabled&&!i.disabled&&(s.states.hoveringIndex=s.optionsArray.indexOf(g.proxy))},u=r=>{const p=new RegExp(gn(r),"i");n.visible=p.test(String(l.value))||e.created};return q(()=>l.value,()=>{!e.created&&!s.props.remote&&s.setSelected()}),q(()=>e.value,(r,p)=>{const{remote:w,valueKey:T}=s.props;if((w?r!==p:!oe(r,p))&&(s.onOptionDestroy(p,g.proxy),s.onOptionCreate(g.proxy)),!e.created&&!w){if(T&&A(r)&&A(p)&&r[T]===p[T])return;s.setSelected()}}),q(()=>i.disabled,()=>{n.groupDisabled=i.disabled},{immediate:!0}),{select:s,currentLabel:l,currentValue:h,itemSelected:o,isDisabled:b,hoverItem:d,updateOption:u}}const Sn=ue({name:Re,componentName:Re,props:bn,setup(e){const n=ie("select"),s=mt(),i=f(()=>[n.be("dropdown","item"),n.is("disabled",Ve(h)),n.is("selected",Ve(l)),n.is("hovering",Ve(u))]),o=re({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:m,itemSelected:l,isDisabled:h,select:b,hoverItem:g,updateOption:v}=yn(e,o),{visible:d,hover:u}=De(o),r=Se().proxy;b.onOptionCreate(r),ct(()=>{const w=r.value,{selected:T}=b.states,M=T.some(C=>C.value===r.value);K(()=>{b.states.cachedOptions.get(w)===r&&!M&&b.states.cachedOptions.delete(w)}),b.onOptionDestroy(w,r)});function p(){h.value||b.handleOptionSelect(r)}return{ns:n,id:s,containerKls:i,currentLabel:m,itemSelected:l,isDisabled:h,select:b,visible:d,hover:u,states:o,hoverItem:g,updateOption:v,selectOptionClick:p}}});function Cn(e,n){return se((S(),E("li",{id:e.id,class:y(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:B(e.selectOptionClick,["stop"])},[R(e.$slots,"default",{},()=>[V("span",null,F(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[Me,e.visible]])}var ke=Ce(Sn,[["render",Cn],["__file","option.vue"]]);const On=ue({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=ye(Oe),n=ie("select"),s=f(()=>e.props.popperClass),i=f(()=>e.props.multiple),o=f(()=>e.props.fitInputWidth),m=I("");function l(){var h;m.value=`${(h=e.selectRef)==null?void 0:h.offsetWidth}px`}return $e(()=>{l(),j(e.selectRef,l)}),{ns:n,minWidth:m,popperClass:s,isMultiple:i,isFitInputWidth:o}}});function wn(e,n,s,i,o,m){return S(),E("div",{class:y([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ge({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(S(),E("div",{key:0,class:y(e.ns.be("dropdown","header"))},[R(e.$slots,"header")],2)):$("v-if",!0),R(e.$slots,"default"),e.$slots.footer?(S(),E("div",{key:1,class:y(e.ns.be("dropdown","footer"))},[R(e.$slots,"footer")],2)):$("v-if",!0)],6)}var En=Ce(On,[["render",wn],["__file","select-dropdown.vue"]]);const In=(e,n)=>{const{t:s}=hl(),i=mt(),o=ie("select"),m=ie("input"),l=re({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),h=I(),b=I(),g=I(),v=I(),d=I(),u=I(),r=I(),p=I(),w=I(),T=I(),M=I(),C=I(!1),N=I(),{form:de,formItem:W}=Ql(),{inputId:Ct}=Jl(e,{formItemContext:W}),{valueOnClear:Ot,isEmptyValue:wt}=bl(e),{isComposing:Le,handleCompositionStart:Et,handleCompositionUpdate:It,handleCompositionEnd:Vt}=Xl({afterComposition:t=>Ue(t)}),_=f(()=>e.disabled||!!de?.disabled),{wrapperRef:Ne,isFocused:Be,handleBlur:Tt}=Yl(d,{disabled:_,afterFocus(){e.automaticDropdown&&!C.value&&(C.value=!0,l.menuVisibleOnFocus=!0)},beforeBlur(t){var a,c;return((a=g.value)==null?void 0:a.isFocusInsideContent(t))||((c=v.value)==null?void 0:c.isFocusInsideContent(t))},afterBlur(){var t;C.value=!1,l.menuVisibleOnFocus=!1,e.validateEvent&&((t=W?.validate)==null||t.call(W,"blur").catch(a=>nt()))}}),we=f(()=>P(e.modelValue)?e.modelValue.length>0:!wt(e.modelValue)),Rt=f(()=>{var t;return(t=de?.statusIcon)!=null?t:!1}),Mt=f(()=>e.clearable&&!_.value&&l.inputHovering&&we.value),Pe=f(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Dt=f(()=>o.is("reverse",!!(Pe.value&&C.value))),Ee=f(()=>W?.validateState||""),$t=f(()=>Ee.value&&gl[Ee.value]),kt=f(()=>e.remote?300:0),Lt=f(()=>e.remote&&!l.inputValue&&l.options.size===0),Nt=f(()=>e.loading?e.loadingText||s("el.select.loading"):e.filterable&&l.inputValue&&l.options.size>0&&x.value===0?e.noMatchText||s("el.select.noMatch"):l.options.size===0?e.noDataText||s("el.select.noData"):null),x=f(()=>D.value.filter(t=>t.visible).length),D=f(()=>{const t=Array.from(l.options.values()),a=[];return l.optionValues.forEach(c=>{const O=t.findIndex(k=>k.value===c);O>-1&&a.push(t[O])}),a.length>=t.length?a:t}),Bt=f(()=>Array.from(l.cachedOptions.values())),Pt=f(()=>{const t=D.value.filter(a=>!a.created).some(a=>a.currentLabel===l.inputValue);return e.filterable&&e.allowCreate&&l.inputValue!==""&&!t}),Fe=()=>{e.filterable&&ae(e.filterMethod)||e.filterable&&e.remote&&ae(e.remoteMethod)||D.value.forEach(t=>{var a;(a=t.updateOption)==null||a.call(t,l.inputValue)})},Ae=jl(),Ft=f(()=>["small"].includes(Ae.value)?"small":"default"),At=f({get(){return C.value&&!Lt.value},set(t){C.value=t}}),Wt=f(()=>{if(e.multiple&&!be(e.modelValue))return G(e.modelValue).length===0&&!l.inputValue;const t=P(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||be(t)?!l.inputValue:!0}),zt=f(()=>{var t;const a=(t=e.placeholder)!=null?t:s("el.select.placeholder");return e.multiple||!we.value?a:l.selectedLabel}),Ht=f(()=>Ye?null:"mouseenter");q(()=>e.modelValue,(t,a)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(l.inputValue="",ce("")),fe(),!oe(t,a)&&e.validateEvent&&W?.validate("change").catch(c=>nt())},{flush:"post",deep:!0}),q(()=>C.value,t=>{t?ce(l.inputValue):(l.inputValue="",l.previousQuery=null,l.isBeforeHide=!0),n("visible-change",t)}),q(()=>l.options.entries(),()=>{ut&&(fe(),e.defaultFirstOption&&(e.filterable||e.remote)&&x.value&&We())},{flush:"post"}),q([()=>l.hoveringIndex,D],([t])=>{Ol(t)&&t>-1?N.value=D.value[t]||{}:N.value={},D.value.forEach(a=>{a.hover=N.value===a})}),yl(()=>{l.isBeforeHide||Fe()});const ce=t=>{l.previousQuery===t||Le.value||(l.previousQuery=t,e.filterable&&ae(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&ae(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&x.value?K(We):K(Kt))},We=()=>{const t=D.value.filter(k=>k.visible&&!k.disabled&&!k.states.groupDisabled),a=t.find(k=>k.created),c=t[0],O=D.value.map(k=>k.value);l.hoveringIndex=Je(O,a||c)},fe=()=>{if(e.multiple)l.selectedLabel="";else{const a=P(e.modelValue)?e.modelValue[0]:e.modelValue,c=ze(a);l.selectedLabel=c.currentLabel,l.selected=[c];return}const t=[];be(e.modelValue)||G(e.modelValue).forEach(a=>{t.push(ze(a))}),l.selected=t},ze=t=>{let a;const c=Cl(t);for(let Y=l.cachedOptions.size-1;Y>=0;Y--){const z=Bt.value[Y];if(c?X(z.value,e.valueKey)===X(t,e.valueKey):z.value===t){a={value:t,currentLabel:z.currentLabel,get isDisabled(){return z.isDisabled}};break}}if(a)return a;const O=c?t.label:t??"";return{value:t,currentLabel:O}},Kt=()=>{l.hoveringIndex=D.value.findIndex(t=>l.selected.some(a=>me(a)===me(t)))},Ut=()=>{l.selectionWidth=Number.parseFloat(window.getComputedStyle(b.value).width)},Gt=()=>{l.collapseItemWidth=T.value.getBoundingClientRect().width},Ie=()=>{var t,a;(a=(t=g.value)==null?void 0:t.updatePopper)==null||a.call(t)},He=()=>{var t,a;(a=(t=v.value)==null?void 0:t.updatePopper)==null||a.call(t)},Ke=()=>{l.inputValue.length>0&&!C.value&&(C.value=!0),ce(l.inputValue)},Ue=t=>{if(l.inputValue=t.target.value,e.remote)Ge();else return Ke()},Ge=xl(()=>{Ke()},kt.value),ee=t=>{oe(e.modelValue,t)||n(ht,t)},qt=t=>vn(t,a=>{const c=l.cachedOptions.get(a);return c&&!c.disabled&&!c.states.groupDisabled}),Qt=t=>{if(e.multiple&&t.code!==Sl.delete&&t.target.value.length<=0){const a=G(e.modelValue).slice(),c=qt(a);if(c<0)return;const O=a[c];a.splice(c,1),n(Z,a),ee(a),n("remove-tag",O)}},Jt=(t,a)=>{const c=l.selected.indexOf(a);if(c>-1&&!_.value){const O=G(e.modelValue).slice();O.splice(c,1),n(Z,O),ee(O),n("remove-tag",a.value)}t.stopPropagation(),ve()},qe=t=>{t.stopPropagation();const a=e.multiple?[]:Ot.value;if(e.multiple)for(const c of l.selected)c.isDisabled&&a.push(c.value);n(Z,a),ee(a),l.hoveringIndex=-1,C.value=!1,n("clear"),ve()},Qe=t=>{var a;if(e.multiple){const c=G((a=e.modelValue)!=null?a:[]).slice(),O=Je(c,t);O>-1?c.splice(O,1):(e.multipleLimit<=0||c.length{pe(t)})},Je=(t,a)=>be(a)?-1:A(a.value)?t.findIndex(c=>oe(X(c,e.valueKey),me(a))):t.indexOf(a.value),pe=t=>{var a,c,O,k,Y;const z=P(t)?t[0]:t;let he=null;if(z?.value){const te=D.value.filter(dl=>dl.value===z.value);te.length>0&&(he=te[0].$el)}if(g.value&&he){const te=(k=(O=(c=(a=g.value)==null?void 0:a.popperRef)==null?void 0:c.contentRef)==null?void 0:O.querySelector)==null?void 0:k.call(O,`.${o.be("dropdown","wrap")}`);te&&Zl(te,he)}(Y=M.value)==null||Y.handleScroll()},jt=t=>{l.options.set(t.value,t),l.cachedOptions.set(t.value,t)},Xt=(t,a)=>{l.options.get(t)===a&&l.options.delete(t)},Yt=f(()=>{var t,a;return(a=(t=g.value)==null?void 0:t.popperRef)==null?void 0:a.contentRef}),Zt=()=>{l.isBeforeHide=!1,K(()=>{var t;(t=M.value)==null||t.update(),pe(l.selected)})},ve=()=>{var t;(t=d.value)==null||t.focus()},_t=()=>{var t;if(C.value){C.value=!1,K(()=>{var a;return(a=d.value)==null?void 0:a.blur()});return}(t=d.value)==null||t.blur()},xt=t=>{qe(t)},el=t=>{if(C.value=!1,Be.value){const a=new FocusEvent("focus",t);K(()=>Tt(a))}},tl=()=>{l.inputValue.length>0?l.inputValue="":C.value=!1},je=()=>{_.value||(Ye&&(l.inputHovering=!0),l.menuVisibleOnFocus?l.menuVisibleOnFocus=!1:C.value=!C.value)},ll=()=>{if(!C.value)je();else{const t=D.value[l.hoveringIndex];t&&!t.isDisabled&&Qe(t)}},me=t=>A(t.value)?X(t.value,e.valueKey):t.value,nl=f(()=>D.value.filter(t=>t.visible).every(t=>t.isDisabled)),al=f(()=>e.multiple?e.collapseTags?l.selected.slice(0,e.maxCollapseTags):l.selected:[]),sl=f(()=>e.multiple?e.collapseTags?l.selected.slice(e.maxCollapseTags):[]:[]),Xe=t=>{if(!C.value){C.value=!0;return}if(!(l.options.size===0||x.value===0||Le.value)&&!nl.value){t==="next"?(l.hoveringIndex++,l.hoveringIndex===l.options.size&&(l.hoveringIndex=0)):t==="prev"&&(l.hoveringIndex--,l.hoveringIndex<0&&(l.hoveringIndex=l.options.size-1));const a=D.value[l.hoveringIndex];(a.isDisabled||!a.visible)&&Xe(t),K(()=>pe(N.value))}},ol=()=>{if(!b.value)return 0;const t=window.getComputedStyle(b.value);return Number.parseFloat(t.gap||"6px")},il=f(()=>{const t=ol();return{maxWidth:`${T.value&&e.maxCollapseTags===1?l.selectionWidth-l.collapseItemWidth-t:l.selectionWidth}px`}}),rl=f(()=>({maxWidth:`${l.selectionWidth}px`})),ul=t=>{n("popup-scroll",t)};return j(b,Ut),j(p,Ie),j(Ne,Ie),j(w,He),j(T,Gt),$e(()=>{fe()}),{inputId:Ct,contentId:i,nsSelect:o,nsInput:m,states:l,isFocused:Be,expanded:C,optionsArray:D,hoverOption:N,selectSize:Ae,filteredOptionsCount:x,updateTooltip:Ie,updateTagTooltip:He,debouncedOnInputChange:Ge,onInput:Ue,deletePrevTag:Qt,deleteTag:Jt,deleteSelected:qe,handleOptionSelect:Qe,scrollToOption:pe,hasModelValue:we,shouldShowPlaceholder:Wt,currentPlaceholder:zt,mouseEnterEventName:Ht,needStatusIcon:Rt,showClose:Mt,iconComponent:Pe,iconReverse:Dt,validateState:Ee,validateIcon:$t,showNewOption:Pt,updateOptions:Fe,collapseTagSize:Ft,setSelected:fe,selectDisabled:_,emptyText:Nt,handleCompositionStart:Et,handleCompositionUpdate:It,handleCompositionEnd:Vt,onOptionCreate:jt,onOptionDestroy:Xt,handleMenuEnter:Zt,focus:ve,blur:_t,handleClearClick:xt,handleClickOutside:el,handleEsc:tl,toggleMenu:je,selectOption:ll,getValueKey:me,navigateOptions:Xe,dropdownMenuVisible:At,showTagList:al,collapseTagList:sl,popupScroll:ul,tagStyle:il,collapseTagStyle:rl,popperRef:Yt,inputRef:d,tooltipRef:g,tagTooltipRef:v,prefixRef:u,suffixRef:r,selectRef:h,wrapperRef:Ne,selectionRef:b,scrollbarRef:M,menuRef:p,tagMenuRef:w,collapseItemRef:T}};var Vn=ue({name:"ElOptions",setup(e,{slots:n}){const s=ye(Oe);let i=[];return()=>{var o,m;const l=(o=n.default)==null?void 0:o.call(n),h=[];function b(g){P(g)&&g.forEach(v=>{var d,u,r,p;const w=(d=v?.type||{})==null?void 0:d.name;w==="ElOptionGroup"?b(!wl(v.children)&&!P(v.children)&&ae((u=v.children)==null?void 0:u.default)?(r=v.children)==null?void 0:r.default():v.children):w==="ElOption"?h.push((p=v.props)==null?void 0:p.value):P(v.children)&&b(v.children)})}return l.length&&b((m=l[0])==null?void 0:m.children),oe(h,i)||(i=h,s&&(s.states.optionValues=h)),l}}});const Tn=dt({name:String,id:String,modelValue:{type:le([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Tl,effect:{type:le(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:tt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ze,default:Vl},fitInputWidth:Boolean,suffixIcon:{type:Ze,default:Il},tagType:{...lt.type,default:"info"},tagEffect:{...lt.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:le(String),values:Fl,default:"bottom-start"},fallbackPlacements:{type:le(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:tt.appendTo,...El,...ql(["ariaLabel"])});zl.scroll;const st="ElSelect",Rn=ue({name:st,componentName:st,components:{ElSelectMenu:En,ElOption:ke,ElOptions:Vn,ElTag:Wl,ElScrollbar:Hl,ElTooltip:Al,ElIcon:$l},directives:{ClickOutside:mn},props:Tn,emits:[Z,ht,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:n,slots:s}){const i=Se();i.appContext.config.warnHandler=(...u)=>{!u[0]||u[0].includes('Slot "default" invoked outside of the render function')||console.warn(...u)};const o=f(()=>{const{modelValue:u,multiple:r}=e,p=r?[]:void 0;return P(u)?r?u:p:r?p:u}),m=re({...De(e),modelValue:o}),l=In(m,n),{calculatorRef:h,inputStyle:b}=hn(),g=u=>u.reduce((r,p)=>(r.push(p),p.children&&p.children.length>0&&r.push(...g(p.children)),r),[]),v=u=>{_l(u||[]).forEach(p=>{var w;if(A(p)&&(p.type.name==="ElOption"||p.type.name==="ElTree")){const T=p.type.name;if(T==="ElTree"){const M=((w=p.props)==null?void 0:w.data)||[];g(M).forEach(N=>{N.currentLabel=N.label||(A(N.value)?"":N.value),l.onOptionCreate(N)})}else if(T==="ElOption"){const M={...p.props};M.currentLabel=M.label||(A(M.value)?"":M.value),l.onOptionCreate(M)}}})};q(()=>{var u;return(u=s.default)==null?void 0:u.call(s)},u=>{e.persistent||v(u)},{immediate:!0}),ft(Oe,re({props:m,states:l.states,selectRef:l.selectRef,optionsArray:l.optionsArray,setSelected:l.setSelected,handleOptionSelect:l.handleOptionSelect,onOptionCreate:l.onOptionCreate,onOptionDestroy:l.onOptionDestroy}));const d=f(()=>e.multiple?l.states.selected.map(u=>u.currentLabel):l.states.selectedLabel);return ct(()=>{i.appContext.config.warnHandler=void 0}),{...l,modelValue:o,selectedLabel:d,calculatorRef:h,inputStyle:b}}});function Mn(e,n){const s=Q("el-tag"),i=Q("el-tooltip"),o=Q("el-icon"),m=Q("el-option"),l=Q("el-options"),h=Q("el-scrollbar"),b=Q("el-select-menu"),g=Rl("click-outside");return se((S(),E("div",{ref:"selectRef",class:y([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Dl(e.mouseEnterEventName)]:v=>e.states.inputHovering=!0,onMouseleave:v=>e.states.inputHovering=!1},[J(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:v=>e.states.isBeforeHide=!1},{default:L(()=>{var v;return[V("div",{ref:"wrapperRef",class:y([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:B(e.toggleMenu,["prevent"])},[e.$slots.prefix?(S(),E("div",{key:0,ref:"prefixRef",class:y(e.nsSelect.e("prefix"))},[R(e.$slots,"prefix")],2)):$("v-if",!0),V("div",{ref:"selectionRef",class:y([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?R(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(S(!0),E(_e,null,xe(e.showTagList,d=>(S(),E("div",{key:e.getValueKey(d),class:y(e.nsSelect.e("selected-item"))},[J(s,{closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ge(e.tagStyle),onClose:u=>e.deleteTag(u,d)},{default:L(()=>[V("span",{class:y(e.nsSelect.e("tags-text"))},[R(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[et(F(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(S(),H(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,teleported:e.teleported},{default:L(()=>[V("div",{ref:"collapseItemRef",class:y(e.nsSelect.e("selected-item"))},[J(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:ge(e.collapseTagStyle)},{default:L(()=>[V("span",{class:y(e.nsSelect.e("tags-text"))}," + "+F(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:L(()=>[V("div",{ref:"tagMenuRef",class:y(e.nsSelect.e("selection"))},[(S(!0),E(_e,null,xe(e.collapseTagList,d=>(S(),E("div",{key:e.getValueKey(d),class:y(e.nsSelect.e("selected-item"))},[J(s,{class:"in-tooltip",closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:u=>e.deleteTag(u,d)},{default:L(()=>[V("span",{class:y(e.nsSelect.e("tags-text"))},[R(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[et(F(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","teleported"])):$("v-if",!0)]):$("v-if",!0),V("div",{class:y([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[se(V("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":d=>e.states.inputValue=d,type:"text",name:e.name,class:y([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ge(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[ne(B(d=>e.navigateOptions("next"),["stop","prevent"]),["down"]),ne(B(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),ne(B(e.handleEsc,["stop","prevent"]),["esc"]),ne(B(e.selectOption,["stop","prevent"]),["enter"]),ne(B(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:B(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Ml,e.states.inputValue]]),e.filterable?(S(),E("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:y(e.nsSelect.e("input-calculator")),textContent:F(e.states.inputValue)},null,10,["textContent"])):$("v-if",!0)],2),e.shouldShowPlaceholder?(S(),E("div",{key:1,class:y([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?R(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[V("span",null,F(e.currentPlaceholder),1)]):(S(),E("span",{key:1},F(e.currentPlaceholder),1))],2)):$("v-if",!0)],2),V("div",{ref:"suffixRef",class:y(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(S(),H(o,{key:0,class:y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:L(()=>[(S(),H(Te(e.iconComponent)))]),_:1},8,["class"])):$("v-if",!0),e.showClose&&e.clearIcon?(S(),H(o,{key:1,class:y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:L(()=>[(S(),H(Te(e.clearIcon)))]),_:1},8,["class","onClick"])):$("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(S(),H(o,{key:2,class:y([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:L(()=>[(S(),H(Te(e.validateIcon)))]),_:1},8,["class"])):$("v-if",!0)],2)],10,["onClick"])]}),content:L(()=>[J(b,{ref:"menuRef"},{default:L(()=>[e.$slots.header?(S(),E("div",{key:0,class:y(e.nsSelect.be("dropdown","header")),onClick:B(()=>{},["stop"])},[R(e.$slots,"header")],10,["onClick"])):$("v-if",!0),se(J(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:y([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:L(()=>[e.showNewOption?(S(),H(m,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):$("v-if",!0),J(l,null,{default:L(()=>[R(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[Me,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(S(),E("div",{key:1,class:y(e.nsSelect.be("dropdown","loading"))},[R(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(S(),E("div",{key:2,class:y(e.nsSelect.be("dropdown","empty"))},[R(e.$slots,"empty",{},()=>[V("span",null,F(e.emptyText),1)])],2)):$("v-if",!0),e.$slots.footer?(S(),E("div",{key:3,class:y(e.nsSelect.be("dropdown","footer")),onClick:B(()=>{},["stop"])},[R(e.$slots,"footer")],10,["onClick"])):$("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[g,e.handleClickOutside,e.popperRef]])}var Dn=Ce(Rn,[["render",Mn],["__file","select.vue"]]);const $n=ue({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const n=ie("select"),s=I(),i=Se(),o=I([]);ft(yt,re({...De(e)}));const m=f(()=>o.value.some(g=>g.visible===!0)),l=g=>{var v;return g.type.name==="ElOption"&&!!((v=g.component)!=null&&v.proxy)},h=g=>{const v=G(g),d=[];return v.forEach(u=>{var r;Ll(u)&&(l(u)?d.push(u.component.proxy):P(u.children)&&u.children.length?d.push(...h(u.children)):(r=u.component)!=null&&r.subTree&&d.push(...h(u.component.subTree)))}),d},b=()=>{o.value=h(i.subTree)};return $e(()=>{b()}),kl(s,b,{attributes:!0,subtree:!0,childList:!0}),{groupRef:s,visible:m,ns:n}}});function kn(e,n,s,i,o,m){return se((S(),E("ul",{ref:"groupRef",class:y(e.ns.be("group","wrap"))},[V("li",{class:y(e.ns.be("group","title"))},F(e.label),3),V("li",null,[V("ul",{class:y(e.ns.b("group"))},[R(e.$slots,"default")],2)])],2)),[[Me,e.visible]])}var St=Ce($n,[["render",kn],["__file","option-group.vue"]]);const Hn=Nl(Dn,{Option:ke,OptionGroup:St}),Kn=pt(ke);pt(St);export{mn as C,Hn as E,Kn as a,pn as b,G as c,Oe as s,hn as u}; diff --git a/mail-worker/dist/assets/el-table-column-ClYuew7G.js b/mail-worker/dist/assets/el-table-column-CnNqCN60.js similarity index 99% rename from mail-worker/dist/assets/el-table-column-ClYuew7G.js rename to mail-worker/dist/assets/el-table-column-CnNqCN60.js index 341ab99..ec90c98 100644 --- a/mail-worker/dist/assets/el-table-column-ClYuew7G.js +++ b/mail-worker/dist/assets/el-table-column-CnNqCN60.js @@ -1,4 +1,4 @@ -import{bF as Ie,bG as Xt,bH as Ql,bI as Jl,bJ as Gt,bK as Qt,bL as Zl,bM as en,bN as st,bO as tn,bP as ln,a8 as He,aZ as Ke,C as we,aQ as We,M as fe,ac as de,S as ie,ab as ve,ad as Tt,aU as Ne,bQ as Jt,a9 as nn,U as tt,bR as Wt,z as E,H as re,g as le,k as B,F as ce,bS as on,u as pe,$ as Ae,bb as rn,_ as wt,a as xe,aq as ue,ah as Zt,m as Te,o as Q,p as Re,N as Xe,c as se,n as q,r as Se,f as ae,P as it,ap as Mt,h as el,t as Fe,bB as an,A as sn,L as St,aK as tl,a0 as Ge,bT as ll,I as De,aX as un,at as xt,y as ye,v as _e,x as ze,aa as dn,s as lt,K as P,D as cn,V as Be,a5 as Ht,W as At,aS as fn,e as Ee,i as $e,O as Pt,J as nl,G as hn,B as ol,a$ as vn,bU as pn,w as gn,l as mn}from"./index-C-CeCRdr.js";import{E as rl}from"./el-scrollbar-UsUjrt3r.js";import{e as Ve,f as al,g as yn,o as bn,U as kt,k as Cn,h as wn,j as Sn,S as xn,E as sl,u as En}from"./el-tag-Bx7m9zwB.js";import{s as Rn,o as Nn,i as Ln,a as $t,b as On,t as Fn}from"./index-mPHfnfYT.js";import{b as Tn,c as il,C as Wn}from"./el-select-bzu4tt0u.js";import{d as nt}from"./iconify-DCkxz_hX.js";import{E as Pe}from"./el-checkbox-BC0redCa.js";import{a as Mn}from"./index-DbudBMlZ.js";var _t=Object.create,Hn=function(){function e(){}return function(t){if(!Ie(t))return{};if(_t)return _t(t);e.prototype=t;var l=new e;return e.prototype=void 0,l}}();function An(e,t){var l=-1,n=e.length;for(t||(t=Array(n));++l1?l[r-1]:void 0,s=r>2?l[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,s&&$n(l[0],l[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++nHe?window.requestAnimationFrame(e):setTimeout(e,16),rt=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},co=function(e,t,l,n,r){if(!t&&!n&&(!r||ie(r)&&!r.length))return e;fe(l)?l=l==="descending"?-1:1:l=l&&l<0?-1:1;const a=n?null:function(o,u){return r?pl(il(r),i=>fe(i)?Wt(o,i):i(o,u,e)):(t!=="$key"&&tt(o)&&"$value"in o&&(o=o.$value),[tt(o)?t?Wt(o,t):null:o])},s=function(o,u){var i,d,f,m,p,v;if(n)return n(o.value,u.value);for(let y=0,b=(d=(i=o.key)==null?void 0:i.length)!=null?d:0;y((v=u.key)==null?void 0:v[y]))return 1}return 0};return e.map((o,u)=>({value:o,index:u,key:a?a(o,u):null})).sort((o,u)=>{let i=s(o,u);return i||(i=o.index-u.index),i*+l}).map(o=>o.value)},ml=function(e,t){let l=null;return e.columns.forEach(n=>{n.id===t&&(l=n)}),l},fo=function(e,t){let l=null;for(let n=0;n{if(!e)throw new Error("Row is required when get row identity");if(fe(t)){if(!t.includes("."))return l?e[t]:`${e[t]}`;const n=t.split(".");let r=e;for(const a of n)r=r[a];return l?r:`${r}`}else if(de(t))return t.call(null,e);return""},Me=function(e,t,l=!1,n="children"){const r=e||[],a={};return r.forEach((s,o)=>{if(a[te(s,t)]={row:s,index:o},l){const u=s[n];ie(u)&&Object.assign(a,Me(u,t,!0,n))}}),a};function ho(e,t){const l={};let n;for(n in e)l[n]=e[n];for(n in t)if(Ke(t,n)){const r=t[n];we(r)||(l[n]=r)}return l}function Et(e){return e===""||we(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function yl(e){return e===""||we(e)||(e=Et(e),Number.isNaN(e)&&(e=80)),e}function vo(e){return We(e)?e:fe(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function po(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,l)=>(...n)=>t(l(...n)))}function ot(e,t,l,n,r,a,s){let o=a??0,u=!1;const d=(()=>{if(!s)return e.indexOf(t);const y=te(t,s);return e.findIndex(b=>te(b,s)===y)})(),f=d!==-1,m=r?.call(null,t,o),p=y=>{y==="add"?e.push(t):e.splice(d,1),u=!0},v=y=>{let b=0;const F=n?.children&&y[n.children];return F&&ie(F)&&(b+=F.length,F.forEach(N=>{b+=v(N)})),b};return(!r||m)&&(Ne(l)?l&&!f?p("add"):!l&&f&&p("remove"):p(f?"remove":"add")),!n?.checkStrictly&&n?.children&&ie(t[n.children])&&t[n.children].forEach(y=>{const b=ot(e,y,l??!f,n,r,o+1,s);o+=v(y)+1,b&&(u=b)}),u}function go(e,t,l="children",n="hasChildren",r=!1){const a=o=>!(ie(o)&&o.length);function s(o,u,i){t(o,u,i),u.forEach(d=>{if(d[n]&&r){t(d,null,i+1);return}const f=d[l];a(f)||s(d,f,i+1)})}e.forEach(o=>{if(o[n]&&r){t(o,null,0);return}const u=o[l];a(u)||s(o,u,0)})}const mo=(e,t,l,n)=>{const r={strategy:"fixed",...e.popperOptions},a=de(n?.tooltipFormatter)?n.tooltipFormatter({row:l,column:n,cellValue:Jt(l,n.property).value}):void 0;return nn(a)?{slotContent:a,content:null,...e,popperOptions:r}:{slotContent:null,content:a??t,...e,popperOptions:r}};let oe=null;function yo(e,t,l,n,r,a){var s;const o=mo(e,t,l,n),u={...o,slotContent:void 0};if(oe?.trigger===r){const v=(s=oe.vm)==null?void 0:s.component;gl(v?.props,u),v&&o.slotContent&&(v.slots.content=()=>[o.slotContent]);return}oe?.();const i=a?.refs.tableWrapper,d=i?.dataset.prefix,f=ve(sl,{virtualTriggering:!0,virtualRef:r,appendTo:i,placement:"top",transition:"none",offset:0,hideAfter:0,...u},o.slotContent?{content:()=>o.slotContent}:void 0);f.appContext={...a.appContext,...a};const m=document.createElement("div");Tt(f,m),f.component.exposed.onOpen();const p=i?.querySelector(`.${d}-scrollbar__wrap`);oe=()=>{Tt(null,m),p?.removeEventListener("scroll",oe),oe=null},oe.trigger=r??void 0,oe.vm=f,p?.addEventListener("scroll",oe)}function bl(e){return e.children?pl(e.children,bl):[e]}function It(e,t){return e+t.colSpan}const Cl=(e,t,l,n)=>{let r=0,a=e;const s=l.states.columns.value;if(n){const u=bl(n[e]);r=s.slice(0,s.indexOf(u[0])).reduce(It,0),a=r+u.reduce(It,0)-1}else r=e;let o;switch(t){case"left":a=s.length-l.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:a=s.length-l.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:r,after:a}:{}},Rt=(e,t,l,n,r,a=0)=>{const s=[],{direction:o,start:u,after:i}=Cl(t,l,n,r);if(o){const d=o==="left";s.push(`${e}-fixed-column--${o}`),d&&i+a===n.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!d&&u-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function Dt(e,t){return e+(je(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Nt=(e,t,l,n)=>{const{direction:r,start:a=0,after:s=0}=Cl(e,t,l,n);if(!r)return;const o={},u=r==="left",i=l.states.columns.value;return u?o.left=i.slice(0,a).reduce(Dt,0):o.right=i.slice(s+1).reverse().reduce(Dt,0),o},ke=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function bo(e){const t=re(),l=E(!1),n=E([]);return{updateExpandRows:()=>{const u=e.data.value||[],i=e.rowKey.value;if(l.value)n.value=u.slice();else if(i){const d=Me(n.value,i);n.value=u.reduce((f,m)=>{const p=te(m,i);return d[p]&&f.push(m),f},[])}else n.value=[]},toggleRowExpansion:(u,i)=>{ot(n.value,u,i,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",u,n.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const i=e.data.value||[],d=e.rowKey.value,f=Me(i,d);n.value=u.reduce((m,p)=>{const v=f[p];return v&&m.push(v.row),m},[])},isRowExpanded:u=>{const i=e.rowKey.value;return i?!!Me(n.value,i)[te(u,i)]:n.value.includes(u)},states:{expandRows:n,defaultExpandAll:l}}}function Co(e){const t=re(),l=E(null),n=E(null),r=i=>{t.store.assertRowKey(),l.value=i,s(i)},a=()=>{l.value=null},s=i=>{var d;const{data:f,rowKey:m}=e;let p=null;m.value&&(p=(d=(le(f)||[]).find(v=>te(v,m.value)===i))!=null?d:null),n.value=p??null,t.emit("current-change",n.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:a,setCurrentRowByKey:s,updateCurrentRow:i=>{const d=n.value;if(i&&i!==d){n.value=i,t.emit("current-change",n.value,d);return}!i&&d&&(n.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const i=e.rowKey.value,d=e.data.value||[],f=n.value;if(f&&!d.includes(f)){if(i){const m=te(f,i);s(m)}else n.value=null;je(n.value)&&t.emit("current-change",null,f)}else l.value&&(s(l.value),a())},states:{_currentRowKey:l,currentRow:n}}}function wo(e){const t=E([]),l=E({}),n=E(16),r=E(!1),a=E({}),s=E("hasChildren"),o=E("children"),u=E(!1),i=re(),d=B(()=>{if(!e.rowKey.value)return{};const c=e.data.value||[];return m(c)}),f=B(()=>{const c=e.rowKey.value,g=Object.keys(a.value),C={};return g.length&&g.forEach(h=>{if(a.value[h].length){const w={children:[]};a.value[h].forEach(R=>{const W=te(R,c);w.children.push(W),R[s.value]&&!C[W]&&(C[W]={children:[]})}),C[h]=w}}),C}),m=c=>{const g=e.rowKey.value,C=new Map;return go(c,(h,w,R)=>{const W=te(h,g,!0);ie(w)?C.set(W,{children:w.map(H=>H[g]),level:R}):r.value&&C.set(W,{children:[],lazy:!0,level:R})},o.value,s.value,r.value),C},p=(c=!1,g)=>{var C,h;g||(g=(C=i.store)==null?void 0:C.states.defaultExpandAll.value);const w=d.value,R=f.value,W={};if(w instanceof Map&&w.size){const H=le(l),M=[],z=(K,I)=>{if(c)return t.value?g||t.value.includes(I):!!(g||K?.expanded);{const L=g||t.value&&t.value.includes(I);return!!(K?.expanded||L)}};w.forEach((K,I)=>{const L=H[I],T={...w.get(I)};if(T.expanded=z(L,I),T.lazy){const{loaded:x=!1,loading:A=!1}=L||{};T.loaded=!!x,T.loading=!!A,M.push(I)}W[I]=T});const j=Object.keys(R);r.value&&j.length&&M.length&&j.forEach(K=>{var I;const L=H[K],T=R[K].children;if(M.includes(K)){if(((I=W[K].children)==null?void 0:I.length)!==0)throw new Error("[ElTable]children must be an empty array.");W[K].children=T}else{const{loaded:x=!1,loading:A=!1}=L||{};W[K]={lazy:!0,loaded:!!x,loading:!!A,expanded:z(L,K),children:T,level:void 0}}})}l.value=W,(h=i.store)==null||h.updateTableScrollY()};ce(()=>t.value,()=>{p(!0)}),ce(()=>d.value,()=>{p()}),ce(()=>f.value,()=>{p()});const v=c=>{t.value=c,p()},y=c=>r.value&&c&&"loaded"in c&&!c.loaded,b=(c,g)=>{i.store.assertRowKey();const C=e.rowKey.value,h=te(c,C),w=h&&l.value[h];if(h&&w&&"expanded"in w){const R=w.expanded;g=we(g)?!w.expanded:g,l.value[h].expanded=g,R!==g&&i.emit("expand-change",c,g),y(w)&&N(c,h,w),i.store.updateTableScrollY()}},F=c=>{i.store.assertRowKey();const g=e.rowKey.value,C=te(c,g),h=l.value[C];y(h)?N(c,C,h):b(c,void 0)},N=(c,g,C)=>{const{load:h}=i.props;h&&!l.value[g].loaded&&(l.value[g].loading=!0,h(c,C,w=>{if(!ie(w))throw new TypeError("[ElTable] data must be an array");l.value[g].loading=!1,l.value[g].loaded=!0,l.value[g].expanded=!0,w.length&&(a.value[g]=w),i.emit("expand-change",c,!0)}))};return{loadData:N,loadOrToggle:F,toggleTreeExpansion:b,updateTreeExpandKeys:v,updateTreeData:p,updateKeyChildren:(c,g)=>{const{lazy:C,rowKey:h}=i.props;if(C){if(!h)throw new Error("[Table] rowKey is required in updateKeyChild");a.value[c]&&(a.value[c]=g)}},normalize:m,states:{expandRowKeys:t,treeData:l,indent:n,lazy:r,lazyTreeNodeMap:a,lazyColumnIdentifier:s,childrenColumnName:o,checkStrictly:u}}}const So=(e,t)=>{const l=t.sortingColumn;return!l||fe(l.sortable)?e:co(e,t.sortProp,t.sortOrder,l.sortMethod,l.sortBy)},Qe=e=>{const t=[];return e.forEach(l=>{l.children&&l.children.length>0?t.push.apply(t,Qe(l.children)):t.push(l)}),t};function xo(){var e;const t=re(),{size:l}=on((e=t.proxy)==null?void 0:e.$props),n=E(null),r=E([]),a=E([]),s=E(!1),o=E([]),u=E([]),i=E([]),d=E([]),f=E([]),m=E([]),p=E([]),v=E([]),y=[],b=E(0),F=E(0),N=E(0),S=E(!1),c=E([]),g=E(!1),C=E(!1),h=E(null),w=E({}),R=E(null),W=E(null),H=E(null),M=E(null),z=E(null),j=B(()=>n.value?Me(c.value,n.value):void 0);ce(r,()=>{var O;t.state&&(T(!1),t.props.tableLayout==="auto"&&((O=t.refs.tableHeaderRef)==null||O.updateFixedColumnStyle()))},{deep:!0});const K=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},I=O=>{var k;(k=O.children)==null||k.forEach(_=>{_.fixed=O.fixed,I(_)})},L=()=>{o.value.forEach(Y=>{I(Y)}),d.value=o.value.filter(Y=>[!0,"left"].includes(Y.fixed));const O=o.value.find(Y=>Y.type==="selection");let k;O&&O.fixed!=="right"&&!d.value.includes(O)&&o.value.indexOf(O)===0&&d.value.length&&(d.value.unshift(O),k=!0),f.value=o.value.filter(Y=>Y.fixed==="right");const _=o.value.filter(Y=>(k?Y.type!=="selection":!0)&&!Y.fixed);u.value=Array.from(d.value).concat(_).concat(f.value);const $=Qe(_),D=Qe(d.value),V=Qe(f.value);b.value=$.length,F.value=D.length,N.value=V.length,i.value=Array.from(D).concat($).concat(V),s.value=d.value.length>0||f.value.length>0},T=(O,k=!1)=>{O&&L(),k?t.state.doLayout():t.state.debouncedUpdateLayout()},x=O=>j.value?!!j.value[te(O,n.value)]:c.value.includes(O),A=()=>{S.value=!1;const O=c.value;c.value=[],O.length&&t.emit("selection-change",[])},U=()=>{var O,k;let _;if(n.value){_=[];const $=(k=(O=t?.store)==null?void 0:O.states)==null?void 0:k.childrenColumnName.value,D=Me(r.value,n.value,!0,$);for(const V in j.value)Ke(j.value,V)&&!D[V]&&_.push(j.value[V].row)}else _=c.value.filter($=>!r.value.includes($));if(_.length){const $=c.value.filter(D=>!_.includes(D));c.value=$,t.emit("selection-change",$.slice())}},X=()=>(c.value||[]).slice(),G=(O,k,_=!0,$=!1)=>{var D,V,Y,be;const Ce={children:(V=(D=t?.store)==null?void 0:D.states)==null?void 0:V.childrenColumnName.value,checkStrictly:(be=(Y=t?.store)==null?void 0:Y.states)==null?void 0:be.checkStrictly.value};if(ot(c.value,O,k,Ce,$?void 0:h.value,r.value.indexOf(O),n.value)){const qe=(c.value||[]).slice();_&&t.emit("select",qe,O),t.emit("selection-change",qe)}},ee=()=>{var O,k;const _=C.value?!S.value:!(S.value||c.value.length);S.value=_;let $=!1,D=0;const V=(k=(O=t?.store)==null?void 0:O.states)==null?void 0:k.rowKey.value,{childrenColumnName:Y}=t.store.states,be={children:Y.value,checkStrictly:!1};r.value.forEach((Ce,Ye)=>{const qe=Ye+D;ot(c.value,Ce,_,be,h.value,qe,V)&&($=!0),D+=J(te(Ce,V))}),$&&t.emit("selection-change",c.value?c.value.slice():[]),t.emit("select-all",(c.value||[]).slice())},he=()=>{var O;if(((O=r.value)==null?void 0:O.length)===0){S.value=!1;return}const{childrenColumnName:k}=t.store.states;let _=0,$=0;const D=Y=>{var be;for(const Ce of Y){const Ye=h.value&&h.value.call(null,Ce,_);if(x(Ce))$++;else if(!h.value||Ye)return!1;if(_++,(be=Ce[k.value])!=null&&be.length&&!D(Ce[k.value]))return!1}return!0},V=D(r.value||[]);S.value=$===0?!1:V},J=O=>{var k;if(!t||!t.store)return 0;const{treeData:_}=t.store.states;let $=0;const D=(k=_.value[O])==null?void 0:k.children;return D&&($+=D.length,D.forEach(V=>{$+=J(V)})),$},me=(O,k)=>{const _={};return il(O).forEach($=>{w.value[$.id]=k,_[$.columnKey||$.id]=k}),_},Z=(O,k,_)=>{W.value&&W.value!==O&&(W.value.order=null),W.value=O,H.value=k,M.value=_},Oe=()=>{let O=le(a);Object.keys(w.value).forEach(k=>{const _=w.value[k];if(!_||_.length===0)return;const $=ml({columns:i.value},k);$&&$.filterMethod&&(O=O.filter(D=>_.some(V=>$.filterMethod.call(null,V,D,$))))}),R.value=O},Ue=()=>{var O;r.value=So((O=R.value)!=null?O:[],{sortingColumn:W.value,sortProp:H.value,sortOrder:M.value})},Al=(O=void 0)=>{O?.filter||Oe(),Ue()},Pl=O=>{const{tableHeaderRef:k}=t.refs;if(!k)return;const _=Object.assign({},k.filterPanels),$=Object.keys(_);if($.length)if(fe(O)&&(O=[O]),ie(O)){const D=O.map(V=>fo({columns:i.value},V));$.forEach(V=>{const Y=D.find(be=>be.id===V);Y&&(Y.filteredValue=[])}),t.store.commit("filterChange",{column:D,values:[],silent:!0,multi:!0})}else $.forEach(D=>{const V=i.value.find(Y=>Y.id===D);V&&(V.filteredValue=[])}),w.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},kl=()=>{W.value&&(Z(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:$l,toggleRowExpansion:Ft,updateExpandRows:_l,states:Bl,isRowExpanded:Kl}=bo({data:r,rowKey:n}),{updateTreeExpandKeys:zl,toggleTreeExpansion:Il,updateTreeData:Dl,updateKeyChildren:Vl,loadOrToggle:jl,states:Ul}=wo({data:r,rowKey:n}),{updateCurrentRowData:Yl,updateCurrentRow:ql,setCurrentRowKey:Xl,states:Gl}=Co({data:r,rowKey:n});return{assertRowKey:K,updateColumns:L,scheduleLayout:T,isSelected:x,clearSelection:A,cleanSelection:U,getSelectionRows:X,toggleRowSelection:G,_toggleAllSelection:ee,toggleAllSelection:null,updateAllSelected:he,updateFilters:me,updateCurrentRow:ql,updateSort:Z,execFilter:Oe,execSort:Ue,execQuery:Al,clearFilter:Pl,clearSort:kl,toggleRowExpansion:Ft,setExpandRowKeysAdapter:O=>{$l(O),zl(O)},setCurrentRowKey:Xl,toggleRowExpansionAdapter:(O,k)=>{i.value.some(({type:$})=>$==="expand")?Ft(O,k):Il(O,k)},isRowExpanded:Kl,updateExpandRows:_l,updateCurrentRowData:Yl,loadOrToggle:jl,updateTreeData:Dl,updateKeyChildren:Vl,states:{tableSize:l,rowKey:n,data:r,_data:a,isComplex:s,_columns:o,originColumns:u,columns:i,fixedColumns:d,rightFixedColumns:f,leafColumns:m,fixedLeafColumns:p,rightFixedLeafColumns:v,updateOrderFns:y,leafColumnsLength:b,fixedLeafColumnsLength:F,rightFixedLeafColumnsLength:N,isAllSelected:S,selection:c,reserveSelection:g,selectOnIndeterminate:C,selectable:h,filters:w,filteredData:R,sortingColumn:W,sortProp:H,sortOrder:M,hoverRow:z,...Bl,...Ul,...Gl}}}function ct(e,t){return e.map(l=>{var n;return l.id===t.id?t:((n=l.children)!=null&&n.length&&(l.children=ct(l.children,t)),l)})}function ft(e){e.forEach(t=>{var l,n;t.no=(l=t.getColumnIndex)==null?void 0:l.call(t),(n=t.children)!=null&&n.length&&ft(t.children)}),e.sort((t,l)=>t.no-l.no)}function Eo(){const e=re(),t=xo();return{ns:pe("table"),...t,mutations:{setData(s,o){const u=le(s._data)!==o;s.data.value=o,s._data.value=o,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),le(s.reserveSelection)?e.store.assertRowKey():u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,o,u,i){var d;const f=le(s._columns);let m=[];u?(u&&!u.children&&(u.children=[]),(d=u.children)==null||d.push(o),m=ct(f,u)):(f.push(o),m=f),ft(m),s._columns.value=m,s.updateOrderFns.push(i),o.type==="selection"&&(s.selectable.value=o.selectable,s.reserveSelection.value=o.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,o){var u;((u=o.getColumnIndex)==null?void 0:u.call(o))!==o.no&&(ft(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,o,u,i){var d;const f=le(s._columns)||[];if(u)(d=u.children)==null||d.splice(u.children.findIndex(p=>p.id===o.id),1),Ae(()=>{var p;((p=u.children)==null?void 0:p.length)===0&&delete u.children}),s._columns.value=ct(f,u);else{const p=f.indexOf(o);p>-1&&(f.splice(p,1),s._columns.value=f)}const m=s.updateOrderFns.indexOf(i);m>-1&&s.updateOrderFns.splice(m,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,o){const{prop:u,order:i,init:d}=o;if(u){const f=le(s.columns).find(m=>m.property===u);f&&(f.order=i,e.store.updateSort(f,u,i),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(s,o){const{sortingColumn:u,sortProp:i,sortOrder:d}=s,f=le(u),m=le(i),p=le(d);je(p)&&(s.sortingColumn.value=null,s.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!o||!(o.silent||o.init))&&e.emit("sort-change",{column:f,prop:m,order:p}),e.store.updateTableScrollY()},filterChange(s,o){const{column:u,values:i,silent:d}=o,f=e.store.updateFilters(u,i);e.store.execQuery(),d||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){var s,o;(o=(s=e.store).toggleAllSelection)==null||o.call(s)},rowSelectedChanged(s,o){e.store.toggleRowSelection(o),e.store.updateAllSelected()},setHoverRow(s,o){s.hoverRow.value=o},setCurrentRow(s,o){e.store.updateCurrentRow(o)}},commit:function(s,...o){const u=e.store.mutations;if(u[s])u[s].apply(e,[e.store.states,...o]);else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Ae(()=>e.layout.updateScrollY.apply(e.layout))}}}const Lt={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function Ro(e,t){if(!e)throw new Error("Table is required.");const l=Eo();return l.toggleAllSelection=nt(l._toggleAllSelection,10),Object.keys(Lt).forEach(n=>{wl(Sl(t,n),n,l)}),No(l,t),l}function No(e,t){Object.keys(Lt).forEach(l=>{ce(()=>Sl(t,l),n=>{wl(n,l,e)})})}function wl(e,t,l){let n=e,r=Lt[t];tt(r)&&(n=n||r.default,r=r.key),l.states[r].value=n}function Sl(e,t){if(t.includes(".")){const l=t.split(".");let n=e;return l.forEach(r=>{n=n[r]}),n}else return e[t]}class Lo{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=E(null),this.scrollX=E(!1),this.scrollY=E(!1),this.bodyWidth=E(null),this.fixedWidth=E(null),this.rightFixedWidth=E(null),this.gutterWidth=0;for(const l in t)Ke(t,l)&&(rn(this[l])?this[l].value=t[l]:this[l]=t[l]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(je(t))return!1;const l=this.table.refs.scrollBarRef;if(this.table.vnode.el&&l?.wrapRef){let n=!0;const r=this.scrollY.value;return n=l.wrapRef.scrollHeight>l.wrapRef.clientHeight,this.scrollY.value=n,r!==n}return!1}setHeight(t,l="height"){if(!He)return;const n=this.table.vnode.el;if(t=vo(t),this.height.value=Number(t),!n&&(t||t===0)){Ae(()=>this.setHeight(t,l));return}n&&We(t)?(n.style[l]=`${t}px`,this.updateElsHeight()):n&&fe(t)&&(n.style[l]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let l=t;for(;l.tagName!=="DIV";){if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}updateColumnsWidth(){var t;if(!He)return;const l=this.fit,n=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let r=0;const a=this.getFlattenColumns(),s=a.filter(i=>!We(i.width));if(a.forEach(i=>{We(i.width)&&i.realWidth&&(i.realWidth=null)}),s.length>0&&l){if(a.forEach(i=>{r+=Number(i.width||i.minWidth||80)}),r<=n){this.scrollX.value=!1;const i=n-r;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+i;else{const d=s.reduce((p,v)=>p+Number(v.minWidth||80),0),f=i/d;let m=0;s.forEach((p,v)=>{if(v===0)return;const y=Math.floor(Number(p.minWidth||80)*f);m+=y,p.realWidth=Number(p.minWidth||80)+y}),s[0].realWidth=Number(s[0].minWidth||80)+i-m}}else this.scrollX.value=!0,s.forEach(i=>{i.realWidth=Number(i.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(i=>{!i.width&&!i.minWidth?i.realWidth=80:i.realWidth=Number(i.width||i.minWidth),r+=i.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let i=0;o.forEach(d=>{i+=Number(d.realWidth||d.width)}),this.fixedWidth.value=i}const u=this.store.states.rightFixedColumns.value;if(u.length>0){let i=0;u.forEach(d=>{i+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=i}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const l=this.observers.indexOf(t);l!==-1&&this.observers.splice(l,1)}notifyObservers(t){this.observers.forEach(n=>{var r,a;switch(t){case"columns":(r=n.state)==null||r.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Oo}=Pe,Fo=xe({name:"ElTableFilterPanel",components:{ElCheckbox:Pe,ElCheckboxGroup:Oo,ElScrollbar:rl,ElTooltip:sl,ElIcon:St,ArrowDown:sn,ArrowUp:an},directives:{ClickOutside:Wn},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:En.appendTo},setup(e){const t=re(),{t:l}=tl(),n=pe("table-filter"),r=t?.parent;e.column&&!r.filterPanels.value[e.column.id]&&(r.filterPanels.value[e.column.id]=t);const a=E(!1),s=E(null),o=B(()=>e.column&&e.column.filters),u=B(()=>e.column&&e.column.filterClassName?`${n.b()} ${e.column.filterClassName}`:n.b()),i=B({get:()=>{var g;return(((g=e.column)==null?void 0:g.filteredValue)||[])[0]},set:g=>{d.value&&(Ge(g)?d.value.splice(0,1):d.value.splice(0,1,g))}}),d=B({get(){return e.column?e.column.filteredValue||[]:[]},set(g){var C;e.column&&((C=e.upDataColumn)==null||C.call(e,"filteredValue",g))}}),f=B(()=>e.column?e.column.filterMultiple:!0),m=g=>g.value===i.value,p=()=>{a.value=!1},v=g=>{g.stopPropagation(),a.value=!a.value},y=()=>{a.value=!1},b=()=>{S(d.value),p()},F=()=>{d.value=[],S(d.value),p()},N=g=>{i.value=g,Ge(g)?S([]):S(d.value),p()},S=g=>{var C,h;(C=e.store)==null||C.commit("filterChange",{column:e.column,values:g}),(h=e.store)==null||h.updateAllSelected()};ce(a,g=>{var C;e.column&&((C=e.upDataColumn)==null||C.call(e,"filterOpened",g))},{immediate:!0});const c=B(()=>{var g,C;return(C=(g=s.value)==null?void 0:g.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:a,multiple:f,filterClassName:u,filteredValue:d,filterValue:i,filters:o,handleConfirm:b,handleReset:F,handleSelect:N,isPropAbsent:Ge,isActive:m,t:l,ns:n,showFilterPanel:v,hideFilterPanel:y,popperPaneRef:c,tooltip:s}}});function To(e,t,l,n,r,a){const s=ue("el-checkbox"),o=ue("el-checkbox-group"),u=ue("el-scrollbar"),i=ue("arrow-up"),d=ue("arrow-down"),f=ue("el-icon"),m=ue("el-tooltip"),p=Zt("click-outside");return Q(),Te(m,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:Re(()=>[e.multiple?(Q(),se("div",{key:0},[ae("div",{class:q(e.ns.e("content"))},[ve(u,{"wrap-class":e.ns.e("wrap")},{default:Re(()=>[ve(o,{modelValue:e.filteredValue,"onUpdate:modelValue":v=>e.filteredValue=v,class:q(e.ns.e("checkbox-group"))},{default:Re(()=>[(Q(!0),se(it,null,Mt(e.filters,v=>(Q(),Te(s,{key:v.value,value:v.value},{default:Re(()=>[el(Fe(v.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),ae("div",{class:q(e.ns.e("bottom"))},[ae("button",{class:q({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},Fe(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),ae("button",{type:"button",onClick:e.handleReset},Fe(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(Q(),se("ul",{key:1,class:q(e.ns.e("list"))},[ae("li",{class:q([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:v=>e.handleSelect(null)},Fe(e.t("el.table.clearFilter")),11,["onClick"]),(Q(!0),se(it,null,Mt(e.filters,v=>(Q(),se("li",{key:v.value,class:q([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:y=>e.handleSelect(v.value)},Fe(v.text),11,["label","onClick"]))),128))],2))]),default:Re(()=>[Xe((Q(),se("span",{class:q([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[ve(f,null,{default:Re(()=>[Se(e.$slots,"filter-icon",{},()=>{var v;return[(v=e.column)!=null&&v.filterOpened?(Q(),Te(i,{key:0})):(Q(),Te(d,{key:1}))]})]),_:3})],10,["onClick"])),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var Wo=wt(Fo,[["render",To],["__file","filter-panel.vue"]]);function Ot(e){const t=re();ll(()=>{l.value.addObserver(t)}),De(()=>{n(l.value),r(l.value)}),un(()=>{n(l.value),r(l.value)}),xt(()=>{l.value.removeObserver(t)});const l=B(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),n=a=>{var s;const o=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!o.length)return;const u=a.getFlattenColumns(),i={};u.forEach(d=>{i[d.id]=d});for(let d=0,f=o.length;d{var s,o;const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=u.length;d{y.stopPropagation()},a=(y,b)=>{!b.filters&&b.sortable?v(y,b,!1):b.filterable&&!b.sortable&&r(y),n?.emit("header-click",b,y)},s=(y,b)=>{n?.emit("header-contextmenu",b,y)},o=E(null),u=E(!1),i=E(),d=(y,b)=>{var F,N;if(He&&!(b.children&&b.children.length>0)&&o.value&&e.border){u.value=!0;const S=n;t("set-drag-visible",!0);const c=S?.vnode.el,g=c?.getBoundingClientRect().left,C=(N=(F=l?.vnode)==null?void 0:F.el)==null?void 0:N.querySelector(`th.${b.id}`),h=C.getBoundingClientRect(),w=h.left-g+30;lt(C,"noclick"),i.value={startMouseLeft:y.clientX,startLeft:h.right-g,startColumnLeft:h.left-g,tableLeft:g};const R=S?.refs.resizeProxy;R.style.left=`${i.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const W=M=>{const z=M.clientX-i.value.startMouseLeft,j=i.value.startLeft+z;R.style.left=`${Math.max(w,j)}px`},H=()=>{if(u.value){const{startColumnLeft:M,startLeft:z}=i.value,K=Number.parseInt(R.style.left,10)-M;b.width=b.realWidth=K,S?.emit("header-dragend",b.width,z-M,b,y),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,o.value=null,i.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",H),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ze(C,"noclick")},0)};document.addEventListener("mousemove",W),document.addEventListener("mouseup",H)}},f=(y,b)=>{var F;if(b.children&&b.children.length>0)return;const N=y.target;if(!dn(N))return;const S=N?.closest("th");if(!(!b||!b.resizable||!S)&&!u.value&&e.border){const c=S.getBoundingClientRect(),g=document.body.style,C=((F=S.parentNode)==null?void 0:F.lastElementChild)===S,h=e.allowDragLastColumn||!C;c.width>12&&c.right-y.clientX<8&&h?(g.cursor="col-resize",_e(S,"is-sortable")&&(S.style.cursor="col-resize"),o.value=b):u.value||(g.cursor="",_e(S,"is-sortable")&&(S.style.cursor="pointer"),o.value=null)}},m=()=>{He&&(document.body.style.cursor="")},p=({order:y,sortOrders:b})=>{if(y==="")return b[0];const F=b.indexOf(y||null);return b[F>b.length-2?0:F+1]},v=(y,b,F)=>{var N;y.stopPropagation();const S=b.order===F?null:F||p(b),c=(N=y.target)==null?void 0:N.closest("th");if(c&&_e(c,"noclick")){ze(c,"noclick");return}if(!b.sortable)return;const g=y.currentTarget;if(["ascending","descending"].some(W=>_e(g,W)&&!b.sortOrders.includes(W)))return;const C=e.store.states;let h=C.sortProp.value,w;const R=C.sortingColumn.value;(R!==b||R===b&&je(R.order))&&(R&&(R.order=null),C.sortingColumn.value=b,h=b.property),S?w=b.order=S:w=b.order=null,C.sortProp.value=h,C.sortOrder.value=w,n?.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:s,handleMouseDown:d,handleMouseMove:f,handleMouseOut:m,handleSortClick:v,handleFilterClick:r}}function Ho(e){const t=ye(ge),l=pe("table");return{getHeaderRowStyle:o=>{const u=t?.props.headerRowStyle;return de(u)?u.call(null,{rowIndex:o}):u},getHeaderRowClass:o=>{const u=[],i=t?.props.headerRowClassName;return fe(i)?u.push(i):de(i)&&u.push(i.call(null,{rowIndex:o})),u.join(" ")},getHeaderCellStyle:(o,u,i,d)=>{var f;let m=(f=t?.props.headerCellStyle)!=null?f:{};de(m)&&(m=m.call(null,{rowIndex:o,columnIndex:u,row:i,column:d}));const p=Nt(u,d.fixed,e.store,i);return ke(p,"left"),ke(p,"right"),Object.assign({},m,p)},getHeaderCellClass:(o,u,i,d)=>{const f=Rt(l.b(),u,d.fixed,e.store,i),m=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||m.push("is-leaf"),d.sortable&&m.push("is-sortable");const p=t?.props.headerCellClassName;return fe(p)?m.push(p):de(p)&&m.push(p.call(null,{rowIndex:o,columnIndex:u,row:i,column:d})),m.push(l.e("cell")),m.filter(v=>!!v).join(" ")}}}const xl=e=>{const t=[];return e.forEach(l=>{l.children?(t.push(l),t.push.apply(t,xl(l.children))):t.push(l)}),t},El=e=>{let t=1;const l=(a,s)=>{if(s&&(a.level=s.level+1,t{l(u,a),o+=u.colSpan}),a.colSpan=o}else a.colSpan=1};e.forEach(a=>{a.level=1,l(a,void 0)});const n=[];for(let a=0;a{a.children?(a.rowSpan=1,a.children.forEach(s=>s.isSubColumn=!0)):a.rowSpan=t-a.level+1,n[a.level-1].push(a)}),n};function Ao(e){const t=ye(ge),l=B(()=>El(e.store.states.originColumns.value));return{isGroup:B(()=>{const a=l.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t?.store.commit("toggleAllSelection")},columnRows:l}}var Po=xe({name:"ElTableHeader",components:{ElCheckbox:Pe},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const l=re(),n=ye(ge),r=pe("table"),a=E({}),{onColumnsChange:s,onScrollableChange:o}=Ot(n),u=n?.props.tableLayout==="auto",i=cn(new Map),d=E(),f=()=>{setTimeout(()=>{i.size>0&&(i.forEach((W,H)=>{const M=d.value.querySelector(`.${H.replace(/\s/g,".")}`);if(M){const z=M.getBoundingClientRect().width;W.width=z}}),i.clear())})};ce(i,f),De(async()=>{await Ae(),await Ae();const{prop:W,order:H}=e.defaultSort;n?.store.commit("sort",{prop:W,order:H,init:!0}),f()});const{handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:y,handleMouseOut:b,handleSortClick:F,handleFilterClick:N}=Mo(e,t),{getHeaderRowStyle:S,getHeaderRowClass:c,getHeaderCellStyle:g,getHeaderCellClass:C}=Ho(e),{isGroup:h,toggleAllSelection:w,columnRows:R}=Ao(e);return l.state={onColumnsChange:s,onScrollableChange:o},l.filterPanels=a,{ns:r,filterPanels:a,onColumnsChange:s,onScrollableChange:o,columnRows:R,getHeaderRowClass:c,getHeaderRowStyle:S,getHeaderCellClass:C,getHeaderCellStyle:g,handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:y,handleMouseOut:b,handleSortClick:F,handleFilterClick:N,isGroup:h,toggleAllSelection:w,saveIndexSelection:i,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:f}},render(){const{ns:e,isGroup:t,columnRows:l,getHeaderCellStyle:n,getHeaderCellClass:r,getHeaderRowClass:a,getHeaderRowStyle:s,handleHeaderClick:o,handleHeaderContextMenu:u,handleMouseDown:i,handleMouseMove:d,handleSortClick:f,handleMouseOut:m,store:p,$parent:v,saveIndexSelection:y,isTableLayoutAuto:b}=this;let F=1;return P("thead",{ref:"theadRef",class:{[e.is("group")]:t}},l.map((N,S)=>P("tr",{class:a(S),key:S,style:s(S)},N.map((c,g)=>{c.rowSpan>F&&(F=c.rowSpan);const C=r(S,g,N,c);return b&&c.fixed&&y.set(C,c),P("th",{class:C,colspan:c.colSpan,key:`${c.id}-thead`,rowspan:c.rowSpan,style:n(S,g,N,c),onClick:h=>{var w;(w=h.currentTarget)!=null&&w.classList.contains("noclick")||o(h,c)},onContextmenu:h=>u(h,c),onMousedown:h=>i(h,c),onMousemove:h=>d(h,c),onMouseout:m},[P("div",{class:["cell",c.filteredValue&&c.filteredValue.length>0?"highlight":""]},[c.renderHeader?c.renderHeader({column:c,$index:g,store:p,_self:v}):c.label,c.sortable&&P("span",{onClick:h=>f(h,c),class:"caret-wrapper"},[P("i",{onClick:h=>f(h,c,"ascending"),class:"sort-caret ascending"}),P("i",{onClick:h=>f(h,c,"descending"),class:"sort-caret descending"})]),c.filterable&&P(Wo,{store:p,placement:c.filterPlacement||"bottom-start",appendTo:v?.appendFilterPanelTo,column:c,upDataColumn:(h,w)=>{c[h]=w}},{"filter-icon":()=>c.renderFilterIcon?c.renderFilterIcon({filterOpened:c.filterOpened}):null})])])}))))}});function at(e,t,l=.03){return e-t>l}function ko(e){const t=ye(ge),l=E(""),n=E(P("div")),r=(v,y,b)=>{var F,N,S;const c=t,g=rt(v);let C=null;const h=(F=c?.vnode.el)==null?void 0:F.dataset.prefix;g&&(C=zt({columns:(S=(N=e.store)==null?void 0:N.states.columns.value)!=null?S:[]},g,h),C&&c?.emit(`cell-${b}`,y,C,g,v)),c?.emit(`row-${b}`,y,C,v)},a=(v,y)=>{r(v,y,"dblclick")},s=(v,y)=>{var b;(b=e.store)==null||b.commit("setCurrentRow",y),r(v,y,"click")},o=(v,y)=>{r(v,y,"contextmenu")},u=nt(v=>{var y;(y=e.store)==null||y.commit("setHoverRow",v)},30),i=nt(()=>{var v;(v=e.store)==null||v.commit("setHoverRow",null)},30),d=v=>{const y=window.getComputedStyle(v,null),b=Number.parseInt(y.paddingLeft,10)||0,F=Number.parseInt(y.paddingRight,10)||0,N=Number.parseInt(y.paddingTop,10)||0,S=Number.parseInt(y.paddingBottom,10)||0;return{left:b,right:F,top:N,bottom:S}},f=(v,y,b)=>{var F;let N=(F=y?.target)==null?void 0:F.parentNode;for(;v>1&&(N=N?.nextSibling,!(!N||N.nodeName!=="TR"));)b(N,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:a,handleClick:s,handleContextMenu:o,handleMouseEnter:u,handleMouseLeave:i,handleCellMouseEnter:(v,y,b)=>{var F,N,S,c,g,C;if(!t)return;const h=t,w=rt(v),R=(F=h?.vnode.el)==null?void 0:F.dataset.prefix;let W=null;if(w){if(W=zt({columns:(S=(N=e.store)==null?void 0:N.states.columns.value)!=null?S:[]},w,R),!W)return;w.rowSpan>1&&f(w.rowSpan,v,lt);const G=h.hoverState={cell:w,column:W,row:y};h?.emit("cell-mouse-enter",G.row,G.column,G.cell,v)}if(!b)return;const H=v.target.querySelector(".cell");if(!(_e(H,`${R}-tooltip`)&&H.childNodes.length))return;const M=document.createRange();M.setStart(H,0),M.setEnd(H,H.childNodes.length);const{width:z,height:j}=M.getBoundingClientRect(),{width:K,height:I}=H.getBoundingClientRect(),{top:L,left:T,right:x,bottom:A}=d(H),U=T+x,X=L+A;at(z+U,K)||at(j+X,I)||at(H.scrollWidth,K)?yo(b,(c=w?.innerText||w?.textContent)!=null?c:"",y,W,w,h):((g=oe)==null?void 0:g.trigger)===w&&((C=oe)==null||C())},handleCellMouseLeave:v=>{const y=rt(v);if(!y)return;y.rowSpan>1&&f(y.rowSpan,v,ze);const b=t?.hoverState;t?.emit("cell-mouse-leave",b?.row,b?.column,b?.cell,v)},tooltipContent:l,tooltipTrigger:n}}function $o(e){const t=ye(ge),l=pe("table");return{getRowStyle:(i,d)=>{const f=t?.props.rowStyle;return de(f)?f.call(null,{row:i,rowIndex:d}):f||null},getRowClass:(i,d)=>{var f;const m=[l.e("row")];t?.props.highlightCurrentRow&&i===((f=e.store)==null?void 0:f.states.currentRow.value)&&m.push("current-row"),e.stripe&&d%2===1&&m.push(l.em("row","striped"));const p=t?.props.rowClassName;return fe(p)?m.push(p):de(p)&&m.push(p.call(null,{row:i,rowIndex:d})),m},getCellStyle:(i,d,f,m)=>{const p=t?.props.cellStyle;let v=p??{};de(p)&&(v=p.call(null,{rowIndex:i,columnIndex:d,row:f,column:m}));const y=Nt(d,e?.fixed,e.store);return ke(y,"left"),ke(y,"right"),Object.assign({},v,y)},getCellClass:(i,d,f,m,p)=>{const v=Rt(l.b(),d,e?.fixed,e.store,void 0,p),y=[m.id,m.align,m.className,...v],b=t?.props.cellClassName;return fe(b)?y.push(b):de(b)&&y.push(b.call(null,{rowIndex:i,columnIndex:d,row:f,column:m})),y.push(l.e("cell")),y.filter(F=>!!F).join(" ")},getSpan:(i,d,f,m)=>{let p=1,v=1;const y=t?.props.spanMethod;if(de(y)){const b=y({row:i,column:d,rowIndex:f,columnIndex:m});ie(b)?(p=b[0],v=b[1]):tt(b)&&(p=b.rowspan,v=b.colspan)}return{rowspan:p,colspan:v}},getColspanRealWidth:(i,d,f)=>{if(d<1)return i[f].realWidth;const m=i.map(({realWidth:p,width:v})=>p||v).slice(f,f+d);return Number(m.reduce((p,v)=>Number(p)+Number(v),-1))}}}const _o=xe({name:"TableTdWrapper"}),Bo=xe({..._o,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,l)=>(Q(),se("td",{colspan:e.colspan,rowspan:e.rowspan},[Se(t.$slots,"default")],8,["colspan","rowspan"]))}});var Ko=wt(Bo,[["__file","td-wrapper.vue"]]);function zo(e){const t=ye(ge),l=pe("table"),{handleDoubleClick:n,handleClick:r,handleContextMenu:a,handleMouseEnter:s,handleMouseLeave:o,handleCellMouseEnter:u,handleCellMouseLeave:i,tooltipContent:d,tooltipTrigger:f}=ko(e),{getRowStyle:m,getRowClass:p,getCellStyle:v,getCellClass:y,getSpan:b,getColspanRealWidth:F}=$o(e),N=B(()=>{var h;return(h=e.store)==null?void 0:h.states.columns.value.findIndex(({type:w})=>w==="default")}),S=(h,w)=>{var R;const W=(R=t?.props)==null?void 0:R.rowKey;return W?te(h,W):w},c=(h,w,R,W=!1)=>{const{tooltipEffect:H,tooltipOptions:M,store:z}=e,{indent:j,columns:K}=z.states,I=p(h,w);let L=!0;return R&&(I.push(l.em("row",`level-${R.level}`)),L=!!R.display),P("tr",{style:[L?null:{display:"none"},m(h,w)],class:I,key:S(h,w),onDblclick:x=>n(x,h),onClick:x=>r(x,h),onContextmenu:x=>a(x,h),onMouseenter:()=>s(w),onMouseleave:o},K.value.map((x,A)=>{const{rowspan:U,colspan:X}=b(h,x,w,A);if(!U||!X)return null;const G=Object.assign({},x);G.realWidth=F(K.value,X,A);const ee={store:z,_self:e.context||t,column:G,row:h,$index:w,cellIndex:A,expanded:W};A===N.value&&R&&(ee.treeNode={indent:R.level&&R.level*j.value,level:R.level},Ne(R.expanded)&&(ee.treeNode.expanded=R.expanded,"loading"in R&&(ee.treeNode.loading=R.loading),"noLazyChildren"in R&&(ee.treeNode.noLazyChildren=R.noLazyChildren)));const he=`${S(h,w)},${A}`,J=G.columnKey||G.rawColumnKey||"",me=x.showOverflowTooltip&&gl({effect:H},M,x.showOverflowTooltip);return P(Ko,{style:v(w,A,h,x),class:y(w,A,h,x,X-1),key:`${J}${he}`,rowspan:U,colspan:X,onMouseenter:Z=>u(Z,h,me),onMouseleave:i},{default:()=>g(A,x,ee)})}))},g=(h,w,R)=>w.renderCell(R);return{wrappedRowRender:(h,w)=>{const R=e.store,{isRowExpanded:W,assertRowKey:H}=R,{treeData:M,lazyTreeNodeMap:z,childrenColumnName:j,rowKey:K}=R.states,I=R.states.columns.value;if(I.some(({type:T})=>T==="expand")){const T=W(h),x=c(h,w,void 0,T),A=t?.renderExpanded;if(!A)return console.error("[Element Error]renderExpanded is required."),x;const U=[[x]];return(t.props.preserveExpandedContent||T)&&U[0].push(P("tr",{key:`expanded-row__${x.key}`,style:{display:T?"":"none"}},[P("td",{colspan:I.length,class:`${l.e("cell")} ${l.e("expanded-cell")}`},[A({row:h,$index:w,store:R,expanded:T})])])),U}else if(Object.keys(M.value).length){H();const T=te(h,K.value);let x=M.value[T],A=null;x&&(A={expanded:x.expanded,level:x.level,display:!0,noLazyChildren:void 0,loading:void 0},Ne(x.lazy)&&(A&&Ne(x.loaded)&&x.loaded&&(A.noLazyChildren=!(x.children&&x.children.length)),A.loading=x.loading));const U=[c(h,w,A??void 0)];if(x){let X=0;const G=(he,J)=>{he&&he.length&&J&&he.forEach(me=>{const Z={display:J.display&&J.expanded,level:J.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Oe=te(me,K.value);if(Ge(Oe))throw new Error("For nested data item, row-key is required.");if(x={...M.value[Oe]},x&&(Z.expanded=x.expanded,x.level=x.level||Z.level,x.display=!!(x.expanded&&Z.display),Ne(x.lazy)&&(Ne(x.loaded)&&x.loaded&&(Z.noLazyChildren=!(x.children&&x.children.length)),Z.loading=x.loading)),X++,U.push(c(me,w+X,Z)),x){const Ue=z.value[Oe]||me[j.value];G(Ue,x)}})};x.display=!0;const ee=z.value[T]||h[j.value];G(ee,x)}return U}else return c(h,w,void 0)},tooltipContent:d,tooltipTrigger:f}}const Io={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Do=xe({name:"ElTableBody",props:Io,setup(e){var t;const l=re(),n=ye(ge),r=pe("table"),{wrappedRowRender:a,tooltipContent:s,tooltipTrigger:o}=zo(e),{onColumnsChange:u,onScrollableChange:i}=Ot(n),d=[];return ce((t=e.store)==null?void 0:t.states.hoverRow,(f,m)=>{var p,v;const y=l?.vnode.el,b=Array.from(y?.children||[]).filter(S=>S?.classList.contains(`${r.e("row")}`));let F=f;const N=(p=b[F])==null?void 0:p.childNodes;if(N?.length){let S=0;Array.from(N).reduce((g,C,h)=>{var w,R;return((w=N[h])==null?void 0:w.colSpan)>1&&(S=(R=N[h])==null?void 0:R.colSpan),C.nodeName!=="TD"&&S===0&&g.push(h),S>0&&S--,g},[]).forEach(g=>{var C;for(F=f;F>0;){const h=(C=b[F-1])==null?void 0:C.childNodes;if(h[g]&&h[g].nodeName==="TD"&&h[g].rowSpan>1){lt(h[g],"hover-cell"),d.push(h[g]);break}F--}})}else d.forEach(S=>ze(S,"hover-cell")),d.length=0;!((v=e.store)!=null&&v.states.isComplex.value)||!He||uo(()=>{const S=b[m],c=b[f];S&&!S.classList.contains("hover-fixed-row")&&ze(S,"hover-row"),c&<(c,"hover-row")})}),xt(()=>{var f;(f=oe)==null||f()}),{ns:r,onColumnsChange:u,onScrollableChange:i,wrappedRowRender:a,tooltipContent:s,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,l=t?.states.data.value||[];return P("tbody",{tabIndex:-1},[l.reduce((n,r)=>n.concat(e(r,n.length)),[])])}});function Vo(){const e=ye(ge),t=e?.store,l=B(()=>{var o;return(o=t?.states.fixedLeafColumnsLength.value)!=null?o:0}),n=B(()=>{var o;return(o=t?.states.rightFixedColumns.value.length)!=null?o:0}),r=B(()=>{var o;return(o=t?.states.columns.value.length)!=null?o:0}),a=B(()=>{var o;return(o=t?.states.fixedColumns.value.length)!=null?o:0}),s=B(()=>{var o;return(o=t?.states.rightFixedColumns.value.length)!=null?o:0});return{leftFixedLeafCount:l,rightFixedLeafCount:n,columnsCount:r,leftFixedCount:a,rightFixedCount:s,columns:B(()=>{var o;return(o=t?.states.columns.value)!=null?o:[]})}}function jo(e){const{columns:t}=Vo(),l=pe("table");return{getCellClasses:(a,s)=>{const o=a[s],u=[l.e("cell"),o.id,o.align,o.labelClassName,...Rt(l.b(),s,o.fixed,e.store)];return o.className&&u.push(o.className),o.children||u.push(l.is("leaf")),u},getCellStyles:(a,s)=>{const o=Nt(s,a.fixed,e.store);return ke(o,"left"),ke(o,"right"),o},columns:t}}var Uo=xe({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=ye(ge),l=pe("table"),{getCellClasses:n,getCellStyles:r,columns:a}=jo(e),{onScrollableChange:s,onColumnsChange:o}=Ot(t);return{ns:l,onScrollableChange:s,onColumnsChange:o,getCellClasses:n,getCellStyles:r,columns:a}},render(){const{columns:e,getCellStyles:t,getCellClasses:l,summaryMethod:n,sumText:r}=this,a=this.store.states.data.value;let s=[];return n?s=n({columns:e,data:a}):e.forEach((o,u)=>{if(u===0){s[u]=r;return}const i=a.map(p=>Number(p[o.property])),d=[];let f=!0;i.forEach(p=>{if(!Number.isNaN(+p)){f=!1;const v=`${p}`.split(".")[1];d.push(v?v.length:0)}});const m=Math.max.apply(null,d);f?s[u]="":s[u]=i.reduce((p,v)=>{const y=Number(v);return Number.isNaN(+y)?p:Number.parseFloat((p+v).toFixed(Math.min(m,20)))},0)}),P(P("tfoot",[P("tr",{},[...e.map((o,u)=>P("td",{key:u,colspan:o.colSpan,rowspan:o.rowSpan,class:l(e,u),style:t(o,u)},[P("div",{class:["cell",o.labelClassName]},[s[u]])]))])]))}});function Yo(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,m,p=!0)=>{e.toggleRowSelection(f,m,!1,p),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,m)=>{e.toggleRowExpansionAdapter(f,m)},clearSort:()=>{e.clearSort()},sort:(f,m)=>{e.commit("sort",{prop:f,order:m})},updateKeyChildren:(f,m)=>{e.updateKeyChildren(f,m)}}}function qo(e,t,l,n){const r=E(!1),a=E(null),s=E(!1),o=L=>{s.value=L},u=E({width:null,height:null,headerHeight:null}),i=E(!1),d={display:"inline-block",verticalAlign:"middle"},f=E(),m=E(0),p=E(0),v=E(0),y=E(0),b=E(0);Be(()=>{var L;t.setHeight((L=e.height)!=null?L:null)}),Be(()=>{var L;t.setMaxHeight((L=e.maxHeight)!=null?L:null)}),ce(()=>[e.currentRowKey,l.states.rowKey],([L,T])=>{!le(T)||!le(L)||l.setCurrentRowKey(`${L}`)},{immediate:!0}),ce(()=>e.data,L=>{n.store.commit("setData",L)},{immediate:!0,deep:!0}),Be(()=>{e.expandRowKeys&&l.setExpandRowKeysAdapter(e.expandRowKeys)});const F=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},N=(L,T)=>{const{pixelX:x,pixelY:A}=T;Math.abs(x)>=Math.abs(A)&&(n.refs.bodyWrapper.scrollLeft+=T.pixelX/5)},S=B(()=>e.height||e.maxHeight||l.states.fixedColumns.value.length>0||l.states.rightFixedColumns.value.length>0),c=B(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),g=()=>{S.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(R)};De(async()=>{await Ae(),l.updateColumns(),W(),requestAnimationFrame(g);const L=n.vnode.el,T=n.refs.headerWrapper;e.flexible&&L&&L.parentElement&&(L.parentElement.style.minWidth="0"),u.value={width:f.value=L.offsetWidth,height:L.offsetHeight,headerHeight:e.showHeader&&T?T.offsetHeight:null},l.states.columns.value.forEach(x=>{x.filteredValue&&x.filteredValue.length&&n.store.commit("filterChange",{column:x,values:x.filteredValue,silent:!0})}),n.$ready=!0});const C=(L,T)=>{if(!L)return;const x=Array.from(L.classList).filter(A=>!A.startsWith("is-scrolling-"));x.push(t.scrollX.value?T:"is-scrolling-none"),L.className=x.join(" ")},h=L=>{const{tableWrapper:T}=n.refs;C(T,L)},w=L=>{const{tableWrapper:T}=n.refs;return!!(T&&T.classList.contains(L))},R=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const ee="is-scrolling-none";w(ee)||h(ee);return}const L=n.refs.scrollBarRef.wrapRef;if(!L)return;const{scrollLeft:T,offsetWidth:x,scrollWidth:A}=L,{headerWrapper:U,footerWrapper:X}=n.refs;U&&(U.scrollLeft=T),X&&(X.scrollLeft=T);const G=A-x-1;T>=G?h("is-scrolling-right"):h(T===0?"is-scrolling-left":"is-scrolling-middle")},W=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&Ht(n.refs.scrollBarRef.wrapRef,"scroll",R,{passive:!0}),e.fit?At(n.vnode.el,H):Ht(window,"resize",H),At(n.refs.bodyWrapper,()=>{var L,T;H(),(T=(L=n.refs)==null?void 0:L.scrollBarRef)==null||T.update()}))},H=()=>{var L,T,x,A;const U=n.vnode.el;if(!n.$ready||!U)return;let X=!1;const{width:G,height:ee,headerHeight:he}=u.value,J=f.value=U.offsetWidth;G!==J&&(X=!0);const me=U.offsetHeight;(e.height||S.value)&&ee!==me&&(X=!0);const Z=e.tableLayout==="fixed"?n.refs.headerWrapper:(L=n.refs.tableHeaderRef)==null?void 0:L.$el;e.showHeader&&Z?.offsetHeight!==he&&(X=!0),m.value=((T=n.refs.tableWrapper)==null?void 0:T.scrollHeight)||0,v.value=Z?.scrollHeight||0,y.value=((x=n.refs.footerWrapper)==null?void 0:x.offsetHeight)||0,b.value=((A=n.refs.appendWrapper)==null?void 0:A.offsetHeight)||0,p.value=m.value-v.value-y.value-b.value,X&&(u.value={width:J,height:me,headerHeight:e.showHeader&&Z?.offsetHeight||0},g())},M=Mn(),z=B(()=>{const{bodyWidth:L,scrollY:T,gutterWidth:x}=t;return L.value?`${L.value-(T.value?x:0)}px`:""}),j=B(()=>e.maxHeight?"fixed":e.tableLayout),K=B(()=>{if(e.data&&e.data.length)return;let L="100%";e.height&&p.value&&(L=`${p.value}px`);const T=f.value;return{width:T?`${T}px`:"",height:L}}),I=B(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+y.value}px)`}:{maxHeight:`${+e.maxHeight-v.value-y.value}px`}:{});return{isHidden:r,renderExpanded:a,setDragVisible:o,isGroup:i,handleMouseLeave:F,handleHeaderFooterMousewheel:N,tableSize:M,emptyBlockStyle:K,resizeProxyVisible:s,bodyWidth:z,resizeState:u,doLayout:g,tableBodyStyles:c,tableLayout:j,scrollbarViewStyle:d,scrollbarStyle:I}}function Xo(e){const t=E(),l=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),a={childList:!0,subtree:!0},s=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{s.forEach(o=>o())}),t.value.observe(r,a)};De(()=>{l()}),xt(()=>{var n;(n=t.value)==null||n.disconnect()})}var Go={data:{type:Array,default:()=>[]},size:fn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean};function Rl(e){const t=e.tableLayout==="auto";let l=e.columns||[];t&&l.every(({width:r})=>we(r))&&(l=[]);const n=r=>{const a={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?a.style={width:`${r.width}px`}:a.name=r.id,a};return P("colgroup",{},l.map(r=>P("col",n(r))))}Rl.props=["columns","tableLayout"];const Qo=()=>{const e=E(),t=(a,s)=>{const o=e.value;o&&o.scrollTo(a,s)},l=(a,s)=>{const o=e.value;o&&We(s)&&["Top","Left"].includes(a)&&o[`setScroll${a}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>l("Top",a),setScrollLeft:a=>l("Left",a)}};var Vt=!1,Le,ht,vt,Je,Ze,Nl,et,pt,gt,mt,Ll,yt,bt,Ol,Fl;function ne(){if(!Vt){Vt=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),l=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(yt=/\b(iPhone|iP[ao]d)/.exec(e),bt=/\b(iP[ao]d)/.exec(e),mt=/Android/i.exec(e),Ol=/FBAN\/\w+;/i.exec(e),Fl=/Mobile/i.exec(e),Ll=!!/Win64/.exec(e),t){Le=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Le&&document&&document.documentMode&&(Le=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);Nl=n?parseFloat(n[1])+4:Le,ht=t[2]?parseFloat(t[2]):NaN,vt=t[3]?parseFloat(t[3]):NaN,Je=t[4]?parseFloat(t[4]):NaN,Je?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ze=t&&t[1]?parseFloat(t[1]):NaN):Ze=NaN}else Le=ht=vt=Ze=Je=NaN;if(l){if(l[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);et=r?parseFloat(r[1].replace("_",".")):!0}else et=!1;pt=!!l[2],gt=!!l[3]}else et=pt=gt=!1}}var Ct={ie:function(){return ne()||Le},ieCompatibilityMode:function(){return ne()||Nl>Le},ie64:function(){return Ct.ie()&&Ll},firefox:function(){return ne()||ht},opera:function(){return ne()||vt},webkit:function(){return ne()||Je},safari:function(){return Ct.webkit()},chrome:function(){return ne()||Ze},windows:function(){return ne()||pt},osx:function(){return ne()||et},linux:function(){return ne()||gt},iphone:function(){return ne()||yt},mobile:function(){return ne()||yt||bt||mt||Fl},nativeApp:function(){return ne()||Ol},android:function(){return ne()||mt},ipad:function(){return ne()||bt}},Jo=Ct,Zo=!!(typeof window<"u"&&window.document&&window.document.createElement),er={canUseDOM:Zo},Tl=er,Wl;Tl.canUseDOM&&(Wl=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function tr(e,t){if(!Tl.canUseDOM||t&&!("addEventListener"in document))return!1;var l="on"+e,n=l in document;if(!n){var r=document.createElement("div");r.setAttribute(l,"return;"),n=typeof r[l]=="function"}return!n&&Wl&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var lr=tr,jt=10,Ut=40,Yt=800;function Ml(e){var t=0,l=0,n=0,r=0;return"detail"in e&&(l=e.detail),"wheelDelta"in e&&(l=-e.wheelDelta/120),"wheelDeltaY"in e&&(l=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=l,l=0),n=t*jt,r=l*jt,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(e.deltaMode==1?(n*=Ut,r*=Ut):(n*=Yt,r*=Yt)),n&&!t&&(t=n<1?-1:1),r&&!l&&(l=r<1?-1:1),{spinX:t,spinY:l,pixelX:n,pixelY:r}}Ml.getEventType=function(){return Jo.firefox()?"DOMMouseScroll":lr("wheel")?"wheel":"mousewheel"};var nr=Ml;/** +import{bF as Ie,bG as Xt,bH as Ql,bI as Jl,bJ as Gt,bK as Qt,bL as Zl,bM as en,bN as st,bO as tn,bP as ln,a8 as He,aZ as Ke,C as we,aQ as We,M as fe,ac as de,S as ie,ab as ve,ad as Tt,aU as Ne,bQ as Jt,a9 as nn,U as tt,bR as Wt,z as E,H as re,g as le,k as B,F as ce,bS as on,u as pe,$ as Ae,bb as rn,_ as wt,a as xe,aq as ue,ah as Zt,m as Te,o as Q,p as Re,N as Xe,c as se,n as q,r as Se,f as ae,P as it,ap as Mt,h as el,t as Fe,bB as an,A as sn,L as St,aK as tl,a0 as Ge,bT as ll,I as De,aX as un,at as xt,y as ye,v as _e,x as ze,aa as dn,s as lt,K as P,D as cn,V as Be,a5 as Ht,W as At,aS as fn,e as Ee,i as $e,O as Pt,J as nl,G as hn,B as ol,a$ as vn,bU as pn,w as gn,l as mn}from"./index-DpP8vbvu.js";import{E as rl}from"./el-scrollbar-DIXSy-7M.js";import{e as Ve,f as al,g as yn,o as bn,U as kt,k as Cn,h as wn,j as Sn,S as xn,E as sl,u as En}from"./el-tag-CjAzCWMf.js";import{s as Rn,o as Nn,i as Ln,a as $t,b as On,t as Fn}from"./index-BMdPKuCq.js";import{b as Tn,c as il,C as Wn}from"./el-select-BvsCrs4t.js";import{d as nt}from"./iconify-CxZjXnJf.js";import{E as Pe}from"./el-checkbox-DjYzjb3f.js";import{a as Mn}from"./index-D7KcZu8a.js";var _t=Object.create,Hn=function(){function e(){}return function(t){if(!Ie(t))return{};if(_t)return _t(t);e.prototype=t;var l=new e;return e.prototype=void 0,l}}();function An(e,t){var l=-1,n=e.length;for(t||(t=Array(n));++l1?l[r-1]:void 0,s=r>2?l[2]:void 0;for(a=e.length>3&&typeof a=="function"?(r--,a):void 0,s&&$n(l[0],l[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++nHe?window.requestAnimationFrame(e):setTimeout(e,16),rt=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},co=function(e,t,l,n,r){if(!t&&!n&&(!r||ie(r)&&!r.length))return e;fe(l)?l=l==="descending"?-1:1:l=l&&l<0?-1:1;const a=n?null:function(o,u){return r?pl(il(r),i=>fe(i)?Wt(o,i):i(o,u,e)):(t!=="$key"&&tt(o)&&"$value"in o&&(o=o.$value),[tt(o)?t?Wt(o,t):null:o])},s=function(o,u){var i,d,f,m,p,v;if(n)return n(o.value,u.value);for(let y=0,b=(d=(i=o.key)==null?void 0:i.length)!=null?d:0;y((v=u.key)==null?void 0:v[y]))return 1}return 0};return e.map((o,u)=>({value:o,index:u,key:a?a(o,u):null})).sort((o,u)=>{let i=s(o,u);return i||(i=o.index-u.index),i*+l}).map(o=>o.value)},ml=function(e,t){let l=null;return e.columns.forEach(n=>{n.id===t&&(l=n)}),l},fo=function(e,t){let l=null;for(let n=0;n{if(!e)throw new Error("Row is required when get row identity");if(fe(t)){if(!t.includes("."))return l?e[t]:`${e[t]}`;const n=t.split(".");let r=e;for(const a of n)r=r[a];return l?r:`${r}`}else if(de(t))return t.call(null,e);return""},Me=function(e,t,l=!1,n="children"){const r=e||[],a={};return r.forEach((s,o)=>{if(a[te(s,t)]={row:s,index:o},l){const u=s[n];ie(u)&&Object.assign(a,Me(u,t,!0,n))}}),a};function ho(e,t){const l={};let n;for(n in e)l[n]=e[n];for(n in t)if(Ke(t,n)){const r=t[n];we(r)||(l[n]=r)}return l}function Et(e){return e===""||we(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function yl(e){return e===""||we(e)||(e=Et(e),Number.isNaN(e)&&(e=80)),e}function vo(e){return We(e)?e:fe(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function po(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,l)=>(...n)=>t(l(...n)))}function ot(e,t,l,n,r,a,s){let o=a??0,u=!1;const d=(()=>{if(!s)return e.indexOf(t);const y=te(t,s);return e.findIndex(b=>te(b,s)===y)})(),f=d!==-1,m=r?.call(null,t,o),p=y=>{y==="add"?e.push(t):e.splice(d,1),u=!0},v=y=>{let b=0;const F=n?.children&&y[n.children];return F&&ie(F)&&(b+=F.length,F.forEach(N=>{b+=v(N)})),b};return(!r||m)&&(Ne(l)?l&&!f?p("add"):!l&&f&&p("remove"):p(f?"remove":"add")),!n?.checkStrictly&&n?.children&&ie(t[n.children])&&t[n.children].forEach(y=>{const b=ot(e,y,l??!f,n,r,o+1,s);o+=v(y)+1,b&&(u=b)}),u}function go(e,t,l="children",n="hasChildren",r=!1){const a=o=>!(ie(o)&&o.length);function s(o,u,i){t(o,u,i),u.forEach(d=>{if(d[n]&&r){t(d,null,i+1);return}const f=d[l];a(f)||s(d,f,i+1)})}e.forEach(o=>{if(o[n]&&r){t(o,null,0);return}const u=o[l];a(u)||s(o,u,0)})}const mo=(e,t,l,n)=>{const r={strategy:"fixed",...e.popperOptions},a=de(n?.tooltipFormatter)?n.tooltipFormatter({row:l,column:n,cellValue:Jt(l,n.property).value}):void 0;return nn(a)?{slotContent:a,content:null,...e,popperOptions:r}:{slotContent:null,content:a??t,...e,popperOptions:r}};let oe=null;function yo(e,t,l,n,r,a){var s;const o=mo(e,t,l,n),u={...o,slotContent:void 0};if(oe?.trigger===r){const v=(s=oe.vm)==null?void 0:s.component;gl(v?.props,u),v&&o.slotContent&&(v.slots.content=()=>[o.slotContent]);return}oe?.();const i=a?.refs.tableWrapper,d=i?.dataset.prefix,f=ve(sl,{virtualTriggering:!0,virtualRef:r,appendTo:i,placement:"top",transition:"none",offset:0,hideAfter:0,...u},o.slotContent?{content:()=>o.slotContent}:void 0);f.appContext={...a.appContext,...a};const m=document.createElement("div");Tt(f,m),f.component.exposed.onOpen();const p=i?.querySelector(`.${d}-scrollbar__wrap`);oe=()=>{Tt(null,m),p?.removeEventListener("scroll",oe),oe=null},oe.trigger=r??void 0,oe.vm=f,p?.addEventListener("scroll",oe)}function bl(e){return e.children?pl(e.children,bl):[e]}function It(e,t){return e+t.colSpan}const Cl=(e,t,l,n)=>{let r=0,a=e;const s=l.states.columns.value;if(n){const u=bl(n[e]);r=s.slice(0,s.indexOf(u[0])).reduce(It,0),a=r+u.reduce(It,0)-1}else r=e;let o;switch(t){case"left":a=s.length-l.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:a=s.length-l.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:r,after:a}:{}},Rt=(e,t,l,n,r,a=0)=>{const s=[],{direction:o,start:u,after:i}=Cl(t,l,n,r);if(o){const d=o==="left";s.push(`${e}-fixed-column--${o}`),d&&i+a===n.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!d&&u-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function Dt(e,t){return e+(je(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Nt=(e,t,l,n)=>{const{direction:r,start:a=0,after:s=0}=Cl(e,t,l,n);if(!r)return;const o={},u=r==="left",i=l.states.columns.value;return u?o.left=i.slice(0,a).reduce(Dt,0):o.right=i.slice(s+1).reverse().reduce(Dt,0),o},ke=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function bo(e){const t=re(),l=E(!1),n=E([]);return{updateExpandRows:()=>{const u=e.data.value||[],i=e.rowKey.value;if(l.value)n.value=u.slice();else if(i){const d=Me(n.value,i);n.value=u.reduce((f,m)=>{const p=te(m,i);return d[p]&&f.push(m),f},[])}else n.value=[]},toggleRowExpansion:(u,i)=>{ot(n.value,u,i,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",u,n.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const i=e.data.value||[],d=e.rowKey.value,f=Me(i,d);n.value=u.reduce((m,p)=>{const v=f[p];return v&&m.push(v.row),m},[])},isRowExpanded:u=>{const i=e.rowKey.value;return i?!!Me(n.value,i)[te(u,i)]:n.value.includes(u)},states:{expandRows:n,defaultExpandAll:l}}}function Co(e){const t=re(),l=E(null),n=E(null),r=i=>{t.store.assertRowKey(),l.value=i,s(i)},a=()=>{l.value=null},s=i=>{var d;const{data:f,rowKey:m}=e;let p=null;m.value&&(p=(d=(le(f)||[]).find(v=>te(v,m.value)===i))!=null?d:null),n.value=p??null,t.emit("current-change",n.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:a,setCurrentRowByKey:s,updateCurrentRow:i=>{const d=n.value;if(i&&i!==d){n.value=i,t.emit("current-change",n.value,d);return}!i&&d&&(n.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const i=e.rowKey.value,d=e.data.value||[],f=n.value;if(f&&!d.includes(f)){if(i){const m=te(f,i);s(m)}else n.value=null;je(n.value)&&t.emit("current-change",null,f)}else l.value&&(s(l.value),a())},states:{_currentRowKey:l,currentRow:n}}}function wo(e){const t=E([]),l=E({}),n=E(16),r=E(!1),a=E({}),s=E("hasChildren"),o=E("children"),u=E(!1),i=re(),d=B(()=>{if(!e.rowKey.value)return{};const c=e.data.value||[];return m(c)}),f=B(()=>{const c=e.rowKey.value,g=Object.keys(a.value),C={};return g.length&&g.forEach(h=>{if(a.value[h].length){const w={children:[]};a.value[h].forEach(R=>{const W=te(R,c);w.children.push(W),R[s.value]&&!C[W]&&(C[W]={children:[]})}),C[h]=w}}),C}),m=c=>{const g=e.rowKey.value,C=new Map;return go(c,(h,w,R)=>{const W=te(h,g,!0);ie(w)?C.set(W,{children:w.map(H=>H[g]),level:R}):r.value&&C.set(W,{children:[],lazy:!0,level:R})},o.value,s.value,r.value),C},p=(c=!1,g)=>{var C,h;g||(g=(C=i.store)==null?void 0:C.states.defaultExpandAll.value);const w=d.value,R=f.value,W={};if(w instanceof Map&&w.size){const H=le(l),M=[],z=(K,I)=>{if(c)return t.value?g||t.value.includes(I):!!(g||K?.expanded);{const L=g||t.value&&t.value.includes(I);return!!(K?.expanded||L)}};w.forEach((K,I)=>{const L=H[I],T={...w.get(I)};if(T.expanded=z(L,I),T.lazy){const{loaded:x=!1,loading:A=!1}=L||{};T.loaded=!!x,T.loading=!!A,M.push(I)}W[I]=T});const j=Object.keys(R);r.value&&j.length&&M.length&&j.forEach(K=>{var I;const L=H[K],T=R[K].children;if(M.includes(K)){if(((I=W[K].children)==null?void 0:I.length)!==0)throw new Error("[ElTable]children must be an empty array.");W[K].children=T}else{const{loaded:x=!1,loading:A=!1}=L||{};W[K]={lazy:!0,loaded:!!x,loading:!!A,expanded:z(L,K),children:T,level:void 0}}})}l.value=W,(h=i.store)==null||h.updateTableScrollY()};ce(()=>t.value,()=>{p(!0)}),ce(()=>d.value,()=>{p()}),ce(()=>f.value,()=>{p()});const v=c=>{t.value=c,p()},y=c=>r.value&&c&&"loaded"in c&&!c.loaded,b=(c,g)=>{i.store.assertRowKey();const C=e.rowKey.value,h=te(c,C),w=h&&l.value[h];if(h&&w&&"expanded"in w){const R=w.expanded;g=we(g)?!w.expanded:g,l.value[h].expanded=g,R!==g&&i.emit("expand-change",c,g),y(w)&&N(c,h,w),i.store.updateTableScrollY()}},F=c=>{i.store.assertRowKey();const g=e.rowKey.value,C=te(c,g),h=l.value[C];y(h)?N(c,C,h):b(c,void 0)},N=(c,g,C)=>{const{load:h}=i.props;h&&!l.value[g].loaded&&(l.value[g].loading=!0,h(c,C,w=>{if(!ie(w))throw new TypeError("[ElTable] data must be an array");l.value[g].loading=!1,l.value[g].loaded=!0,l.value[g].expanded=!0,w.length&&(a.value[g]=w),i.emit("expand-change",c,!0)}))};return{loadData:N,loadOrToggle:F,toggleTreeExpansion:b,updateTreeExpandKeys:v,updateTreeData:p,updateKeyChildren:(c,g)=>{const{lazy:C,rowKey:h}=i.props;if(C){if(!h)throw new Error("[Table] rowKey is required in updateKeyChild");a.value[c]&&(a.value[c]=g)}},normalize:m,states:{expandRowKeys:t,treeData:l,indent:n,lazy:r,lazyTreeNodeMap:a,lazyColumnIdentifier:s,childrenColumnName:o,checkStrictly:u}}}const So=(e,t)=>{const l=t.sortingColumn;return!l||fe(l.sortable)?e:co(e,t.sortProp,t.sortOrder,l.sortMethod,l.sortBy)},Qe=e=>{const t=[];return e.forEach(l=>{l.children&&l.children.length>0?t.push.apply(t,Qe(l.children)):t.push(l)}),t};function xo(){var e;const t=re(),{size:l}=on((e=t.proxy)==null?void 0:e.$props),n=E(null),r=E([]),a=E([]),s=E(!1),o=E([]),u=E([]),i=E([]),d=E([]),f=E([]),m=E([]),p=E([]),v=E([]),y=[],b=E(0),F=E(0),N=E(0),S=E(!1),c=E([]),g=E(!1),C=E(!1),h=E(null),w=E({}),R=E(null),W=E(null),H=E(null),M=E(null),z=E(null),j=B(()=>n.value?Me(c.value,n.value):void 0);ce(r,()=>{var O;t.state&&(T(!1),t.props.tableLayout==="auto"&&((O=t.refs.tableHeaderRef)==null||O.updateFixedColumnStyle()))},{deep:!0});const K=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},I=O=>{var k;(k=O.children)==null||k.forEach(_=>{_.fixed=O.fixed,I(_)})},L=()=>{o.value.forEach(Y=>{I(Y)}),d.value=o.value.filter(Y=>[!0,"left"].includes(Y.fixed));const O=o.value.find(Y=>Y.type==="selection");let k;O&&O.fixed!=="right"&&!d.value.includes(O)&&o.value.indexOf(O)===0&&d.value.length&&(d.value.unshift(O),k=!0),f.value=o.value.filter(Y=>Y.fixed==="right");const _=o.value.filter(Y=>(k?Y.type!=="selection":!0)&&!Y.fixed);u.value=Array.from(d.value).concat(_).concat(f.value);const $=Qe(_),D=Qe(d.value),V=Qe(f.value);b.value=$.length,F.value=D.length,N.value=V.length,i.value=Array.from(D).concat($).concat(V),s.value=d.value.length>0||f.value.length>0},T=(O,k=!1)=>{O&&L(),k?t.state.doLayout():t.state.debouncedUpdateLayout()},x=O=>j.value?!!j.value[te(O,n.value)]:c.value.includes(O),A=()=>{S.value=!1;const O=c.value;c.value=[],O.length&&t.emit("selection-change",[])},U=()=>{var O,k;let _;if(n.value){_=[];const $=(k=(O=t?.store)==null?void 0:O.states)==null?void 0:k.childrenColumnName.value,D=Me(r.value,n.value,!0,$);for(const V in j.value)Ke(j.value,V)&&!D[V]&&_.push(j.value[V].row)}else _=c.value.filter($=>!r.value.includes($));if(_.length){const $=c.value.filter(D=>!_.includes(D));c.value=$,t.emit("selection-change",$.slice())}},X=()=>(c.value||[]).slice(),G=(O,k,_=!0,$=!1)=>{var D,V,Y,be;const Ce={children:(V=(D=t?.store)==null?void 0:D.states)==null?void 0:V.childrenColumnName.value,checkStrictly:(be=(Y=t?.store)==null?void 0:Y.states)==null?void 0:be.checkStrictly.value};if(ot(c.value,O,k,Ce,$?void 0:h.value,r.value.indexOf(O),n.value)){const qe=(c.value||[]).slice();_&&t.emit("select",qe,O),t.emit("selection-change",qe)}},ee=()=>{var O,k;const _=C.value?!S.value:!(S.value||c.value.length);S.value=_;let $=!1,D=0;const V=(k=(O=t?.store)==null?void 0:O.states)==null?void 0:k.rowKey.value,{childrenColumnName:Y}=t.store.states,be={children:Y.value,checkStrictly:!1};r.value.forEach((Ce,Ye)=>{const qe=Ye+D;ot(c.value,Ce,_,be,h.value,qe,V)&&($=!0),D+=J(te(Ce,V))}),$&&t.emit("selection-change",c.value?c.value.slice():[]),t.emit("select-all",(c.value||[]).slice())},he=()=>{var O;if(((O=r.value)==null?void 0:O.length)===0){S.value=!1;return}const{childrenColumnName:k}=t.store.states;let _=0,$=0;const D=Y=>{var be;for(const Ce of Y){const Ye=h.value&&h.value.call(null,Ce,_);if(x(Ce))$++;else if(!h.value||Ye)return!1;if(_++,(be=Ce[k.value])!=null&&be.length&&!D(Ce[k.value]))return!1}return!0},V=D(r.value||[]);S.value=$===0?!1:V},J=O=>{var k;if(!t||!t.store)return 0;const{treeData:_}=t.store.states;let $=0;const D=(k=_.value[O])==null?void 0:k.children;return D&&($+=D.length,D.forEach(V=>{$+=J(V)})),$},me=(O,k)=>{const _={};return il(O).forEach($=>{w.value[$.id]=k,_[$.columnKey||$.id]=k}),_},Z=(O,k,_)=>{W.value&&W.value!==O&&(W.value.order=null),W.value=O,H.value=k,M.value=_},Oe=()=>{let O=le(a);Object.keys(w.value).forEach(k=>{const _=w.value[k];if(!_||_.length===0)return;const $=ml({columns:i.value},k);$&&$.filterMethod&&(O=O.filter(D=>_.some(V=>$.filterMethod.call(null,V,D,$))))}),R.value=O},Ue=()=>{var O;r.value=So((O=R.value)!=null?O:[],{sortingColumn:W.value,sortProp:H.value,sortOrder:M.value})},Al=(O=void 0)=>{O?.filter||Oe(),Ue()},Pl=O=>{const{tableHeaderRef:k}=t.refs;if(!k)return;const _=Object.assign({},k.filterPanels),$=Object.keys(_);if($.length)if(fe(O)&&(O=[O]),ie(O)){const D=O.map(V=>fo({columns:i.value},V));$.forEach(V=>{const Y=D.find(be=>be.id===V);Y&&(Y.filteredValue=[])}),t.store.commit("filterChange",{column:D,values:[],silent:!0,multi:!0})}else $.forEach(D=>{const V=i.value.find(Y=>Y.id===D);V&&(V.filteredValue=[])}),w.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},kl=()=>{W.value&&(Z(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:$l,toggleRowExpansion:Ft,updateExpandRows:_l,states:Bl,isRowExpanded:Kl}=bo({data:r,rowKey:n}),{updateTreeExpandKeys:zl,toggleTreeExpansion:Il,updateTreeData:Dl,updateKeyChildren:Vl,loadOrToggle:jl,states:Ul}=wo({data:r,rowKey:n}),{updateCurrentRowData:Yl,updateCurrentRow:ql,setCurrentRowKey:Xl,states:Gl}=Co({data:r,rowKey:n});return{assertRowKey:K,updateColumns:L,scheduleLayout:T,isSelected:x,clearSelection:A,cleanSelection:U,getSelectionRows:X,toggleRowSelection:G,_toggleAllSelection:ee,toggleAllSelection:null,updateAllSelected:he,updateFilters:me,updateCurrentRow:ql,updateSort:Z,execFilter:Oe,execSort:Ue,execQuery:Al,clearFilter:Pl,clearSort:kl,toggleRowExpansion:Ft,setExpandRowKeysAdapter:O=>{$l(O),zl(O)},setCurrentRowKey:Xl,toggleRowExpansionAdapter:(O,k)=>{i.value.some(({type:$})=>$==="expand")?Ft(O,k):Il(O,k)},isRowExpanded:Kl,updateExpandRows:_l,updateCurrentRowData:Yl,loadOrToggle:jl,updateTreeData:Dl,updateKeyChildren:Vl,states:{tableSize:l,rowKey:n,data:r,_data:a,isComplex:s,_columns:o,originColumns:u,columns:i,fixedColumns:d,rightFixedColumns:f,leafColumns:m,fixedLeafColumns:p,rightFixedLeafColumns:v,updateOrderFns:y,leafColumnsLength:b,fixedLeafColumnsLength:F,rightFixedLeafColumnsLength:N,isAllSelected:S,selection:c,reserveSelection:g,selectOnIndeterminate:C,selectable:h,filters:w,filteredData:R,sortingColumn:W,sortProp:H,sortOrder:M,hoverRow:z,...Bl,...Ul,...Gl}}}function ct(e,t){return e.map(l=>{var n;return l.id===t.id?t:((n=l.children)!=null&&n.length&&(l.children=ct(l.children,t)),l)})}function ft(e){e.forEach(t=>{var l,n;t.no=(l=t.getColumnIndex)==null?void 0:l.call(t),(n=t.children)!=null&&n.length&&ft(t.children)}),e.sort((t,l)=>t.no-l.no)}function Eo(){const e=re(),t=xo();return{ns:pe("table"),...t,mutations:{setData(s,o){const u=le(s._data)!==o;s.data.value=o,s._data.value=o,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),le(s.reserveSelection)?e.store.assertRowKey():u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,o,u,i){var d;const f=le(s._columns);let m=[];u?(u&&!u.children&&(u.children=[]),(d=u.children)==null||d.push(o),m=ct(f,u)):(f.push(o),m=f),ft(m),s._columns.value=m,s.updateOrderFns.push(i),o.type==="selection"&&(s.selectable.value=o.selectable,s.reserveSelection.value=o.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,o){var u;((u=o.getColumnIndex)==null?void 0:u.call(o))!==o.no&&(ft(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,o,u,i){var d;const f=le(s._columns)||[];if(u)(d=u.children)==null||d.splice(u.children.findIndex(p=>p.id===o.id),1),Ae(()=>{var p;((p=u.children)==null?void 0:p.length)===0&&delete u.children}),s._columns.value=ct(f,u);else{const p=f.indexOf(o);p>-1&&(f.splice(p,1),s._columns.value=f)}const m=s.updateOrderFns.indexOf(i);m>-1&&s.updateOrderFns.splice(m,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,o){const{prop:u,order:i,init:d}=o;if(u){const f=le(s.columns).find(m=>m.property===u);f&&(f.order=i,e.store.updateSort(f,u,i),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(s,o){const{sortingColumn:u,sortProp:i,sortOrder:d}=s,f=le(u),m=le(i),p=le(d);je(p)&&(s.sortingColumn.value=null,s.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!o||!(o.silent||o.init))&&e.emit("sort-change",{column:f,prop:m,order:p}),e.store.updateTableScrollY()},filterChange(s,o){const{column:u,values:i,silent:d}=o,f=e.store.updateFilters(u,i);e.store.execQuery(),d||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){var s,o;(o=(s=e.store).toggleAllSelection)==null||o.call(s)},rowSelectedChanged(s,o){e.store.toggleRowSelection(o),e.store.updateAllSelected()},setHoverRow(s,o){s.hoverRow.value=o},setCurrentRow(s,o){e.store.updateCurrentRow(o)}},commit:function(s,...o){const u=e.store.mutations;if(u[s])u[s].apply(e,[e.store.states,...o]);else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Ae(()=>e.layout.updateScrollY.apply(e.layout))}}}const Lt={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function Ro(e,t){if(!e)throw new Error("Table is required.");const l=Eo();return l.toggleAllSelection=nt(l._toggleAllSelection,10),Object.keys(Lt).forEach(n=>{wl(Sl(t,n),n,l)}),No(l,t),l}function No(e,t){Object.keys(Lt).forEach(l=>{ce(()=>Sl(t,l),n=>{wl(n,l,e)})})}function wl(e,t,l){let n=e,r=Lt[t];tt(r)&&(n=n||r.default,r=r.key),l.states[r].value=n}function Sl(e,t){if(t.includes(".")){const l=t.split(".");let n=e;return l.forEach(r=>{n=n[r]}),n}else return e[t]}class Lo{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=E(null),this.scrollX=E(!1),this.scrollY=E(!1),this.bodyWidth=E(null),this.fixedWidth=E(null),this.rightFixedWidth=E(null),this.gutterWidth=0;for(const l in t)Ke(t,l)&&(rn(this[l])?this[l].value=t[l]:this[l]=t[l]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(je(t))return!1;const l=this.table.refs.scrollBarRef;if(this.table.vnode.el&&l?.wrapRef){let n=!0;const r=this.scrollY.value;return n=l.wrapRef.scrollHeight>l.wrapRef.clientHeight,this.scrollY.value=n,r!==n}return!1}setHeight(t,l="height"){if(!He)return;const n=this.table.vnode.el;if(t=vo(t),this.height.value=Number(t),!n&&(t||t===0)){Ae(()=>this.setHeight(t,l));return}n&&We(t)?(n.style[l]=`${t}px`,this.updateElsHeight()):n&&fe(t)&&(n.style[l]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let l=t;for(;l.tagName!=="DIV";){if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}updateColumnsWidth(){var t;if(!He)return;const l=this.fit,n=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let r=0;const a=this.getFlattenColumns(),s=a.filter(i=>!We(i.width));if(a.forEach(i=>{We(i.width)&&i.realWidth&&(i.realWidth=null)}),s.length>0&&l){if(a.forEach(i=>{r+=Number(i.width||i.minWidth||80)}),r<=n){this.scrollX.value=!1;const i=n-r;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+i;else{const d=s.reduce((p,v)=>p+Number(v.minWidth||80),0),f=i/d;let m=0;s.forEach((p,v)=>{if(v===0)return;const y=Math.floor(Number(p.minWidth||80)*f);m+=y,p.realWidth=Number(p.minWidth||80)+y}),s[0].realWidth=Number(s[0].minWidth||80)+i-m}}else this.scrollX.value=!0,s.forEach(i=>{i.realWidth=Number(i.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(i=>{!i.width&&!i.minWidth?i.realWidth=80:i.realWidth=Number(i.width||i.minWidth),r+=i.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let i=0;o.forEach(d=>{i+=Number(d.realWidth||d.width)}),this.fixedWidth.value=i}const u=this.store.states.rightFixedColumns.value;if(u.length>0){let i=0;u.forEach(d=>{i+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=i}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const l=this.observers.indexOf(t);l!==-1&&this.observers.splice(l,1)}notifyObservers(t){this.observers.forEach(n=>{var r,a;switch(t){case"columns":(r=n.state)==null||r.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Oo}=Pe,Fo=xe({name:"ElTableFilterPanel",components:{ElCheckbox:Pe,ElCheckboxGroup:Oo,ElScrollbar:rl,ElTooltip:sl,ElIcon:St,ArrowDown:sn,ArrowUp:an},directives:{ClickOutside:Wn},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:En.appendTo},setup(e){const t=re(),{t:l}=tl(),n=pe("table-filter"),r=t?.parent;e.column&&!r.filterPanels.value[e.column.id]&&(r.filterPanels.value[e.column.id]=t);const a=E(!1),s=E(null),o=B(()=>e.column&&e.column.filters),u=B(()=>e.column&&e.column.filterClassName?`${n.b()} ${e.column.filterClassName}`:n.b()),i=B({get:()=>{var g;return(((g=e.column)==null?void 0:g.filteredValue)||[])[0]},set:g=>{d.value&&(Ge(g)?d.value.splice(0,1):d.value.splice(0,1,g))}}),d=B({get(){return e.column?e.column.filteredValue||[]:[]},set(g){var C;e.column&&((C=e.upDataColumn)==null||C.call(e,"filteredValue",g))}}),f=B(()=>e.column?e.column.filterMultiple:!0),m=g=>g.value===i.value,p=()=>{a.value=!1},v=g=>{g.stopPropagation(),a.value=!a.value},y=()=>{a.value=!1},b=()=>{S(d.value),p()},F=()=>{d.value=[],S(d.value),p()},N=g=>{i.value=g,Ge(g)?S([]):S(d.value),p()},S=g=>{var C,h;(C=e.store)==null||C.commit("filterChange",{column:e.column,values:g}),(h=e.store)==null||h.updateAllSelected()};ce(a,g=>{var C;e.column&&((C=e.upDataColumn)==null||C.call(e,"filterOpened",g))},{immediate:!0});const c=B(()=>{var g,C;return(C=(g=s.value)==null?void 0:g.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:a,multiple:f,filterClassName:u,filteredValue:d,filterValue:i,filters:o,handleConfirm:b,handleReset:F,handleSelect:N,isPropAbsent:Ge,isActive:m,t:l,ns:n,showFilterPanel:v,hideFilterPanel:y,popperPaneRef:c,tooltip:s}}});function To(e,t,l,n,r,a){const s=ue("el-checkbox"),o=ue("el-checkbox-group"),u=ue("el-scrollbar"),i=ue("arrow-up"),d=ue("arrow-down"),f=ue("el-icon"),m=ue("el-tooltip"),p=Zt("click-outside");return Q(),Te(m,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:Re(()=>[e.multiple?(Q(),se("div",{key:0},[ae("div",{class:q(e.ns.e("content"))},[ve(u,{"wrap-class":e.ns.e("wrap")},{default:Re(()=>[ve(o,{modelValue:e.filteredValue,"onUpdate:modelValue":v=>e.filteredValue=v,class:q(e.ns.e("checkbox-group"))},{default:Re(()=>[(Q(!0),se(it,null,Mt(e.filters,v=>(Q(),Te(s,{key:v.value,value:v.value},{default:Re(()=>[el(Fe(v.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),ae("div",{class:q(e.ns.e("bottom"))},[ae("button",{class:q({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},Fe(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),ae("button",{type:"button",onClick:e.handleReset},Fe(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(Q(),se("ul",{key:1,class:q(e.ns.e("list"))},[ae("li",{class:q([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:v=>e.handleSelect(null)},Fe(e.t("el.table.clearFilter")),11,["onClick"]),(Q(!0),se(it,null,Mt(e.filters,v=>(Q(),se("li",{key:v.value,class:q([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:y=>e.handleSelect(v.value)},Fe(v.text),11,["label","onClick"]))),128))],2))]),default:Re(()=>[Xe((Q(),se("span",{class:q([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[ve(f,null,{default:Re(()=>[Se(e.$slots,"filter-icon",{},()=>{var v;return[(v=e.column)!=null&&v.filterOpened?(Q(),Te(i,{key:0})):(Q(),Te(d,{key:1}))]})]),_:3})],10,["onClick"])),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var Wo=wt(Fo,[["render",To],["__file","filter-panel.vue"]]);function Ot(e){const t=re();ll(()=>{l.value.addObserver(t)}),De(()=>{n(l.value),r(l.value)}),un(()=>{n(l.value),r(l.value)}),xt(()=>{l.value.removeObserver(t)});const l=B(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),n=a=>{var s;const o=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!o.length)return;const u=a.getFlattenColumns(),i={};u.forEach(d=>{i[d.id]=d});for(let d=0,f=o.length;d{var s,o;const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=u.length;d{y.stopPropagation()},a=(y,b)=>{!b.filters&&b.sortable?v(y,b,!1):b.filterable&&!b.sortable&&r(y),n?.emit("header-click",b,y)},s=(y,b)=>{n?.emit("header-contextmenu",b,y)},o=E(null),u=E(!1),i=E(),d=(y,b)=>{var F,N;if(He&&!(b.children&&b.children.length>0)&&o.value&&e.border){u.value=!0;const S=n;t("set-drag-visible",!0);const c=S?.vnode.el,g=c?.getBoundingClientRect().left,C=(N=(F=l?.vnode)==null?void 0:F.el)==null?void 0:N.querySelector(`th.${b.id}`),h=C.getBoundingClientRect(),w=h.left-g+30;lt(C,"noclick"),i.value={startMouseLeft:y.clientX,startLeft:h.right-g,startColumnLeft:h.left-g,tableLeft:g};const R=S?.refs.resizeProxy;R.style.left=`${i.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const W=M=>{const z=M.clientX-i.value.startMouseLeft,j=i.value.startLeft+z;R.style.left=`${Math.max(w,j)}px`},H=()=>{if(u.value){const{startColumnLeft:M,startLeft:z}=i.value,K=Number.parseInt(R.style.left,10)-M;b.width=b.realWidth=K,S?.emit("header-dragend",b.width,z-M,b,y),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,o.value=null,i.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",H),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ze(C,"noclick")},0)};document.addEventListener("mousemove",W),document.addEventListener("mouseup",H)}},f=(y,b)=>{var F;if(b.children&&b.children.length>0)return;const N=y.target;if(!dn(N))return;const S=N?.closest("th");if(!(!b||!b.resizable||!S)&&!u.value&&e.border){const c=S.getBoundingClientRect(),g=document.body.style,C=((F=S.parentNode)==null?void 0:F.lastElementChild)===S,h=e.allowDragLastColumn||!C;c.width>12&&c.right-y.clientX<8&&h?(g.cursor="col-resize",_e(S,"is-sortable")&&(S.style.cursor="col-resize"),o.value=b):u.value||(g.cursor="",_e(S,"is-sortable")&&(S.style.cursor="pointer"),o.value=null)}},m=()=>{He&&(document.body.style.cursor="")},p=({order:y,sortOrders:b})=>{if(y==="")return b[0];const F=b.indexOf(y||null);return b[F>b.length-2?0:F+1]},v=(y,b,F)=>{var N;y.stopPropagation();const S=b.order===F?null:F||p(b),c=(N=y.target)==null?void 0:N.closest("th");if(c&&_e(c,"noclick")){ze(c,"noclick");return}if(!b.sortable)return;const g=y.currentTarget;if(["ascending","descending"].some(W=>_e(g,W)&&!b.sortOrders.includes(W)))return;const C=e.store.states;let h=C.sortProp.value,w;const R=C.sortingColumn.value;(R!==b||R===b&&je(R.order))&&(R&&(R.order=null),C.sortingColumn.value=b,h=b.property),S?w=b.order=S:w=b.order=null,C.sortProp.value=h,C.sortOrder.value=w,n?.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:s,handleMouseDown:d,handleMouseMove:f,handleMouseOut:m,handleSortClick:v,handleFilterClick:r}}function Ho(e){const t=ye(ge),l=pe("table");return{getHeaderRowStyle:o=>{const u=t?.props.headerRowStyle;return de(u)?u.call(null,{rowIndex:o}):u},getHeaderRowClass:o=>{const u=[],i=t?.props.headerRowClassName;return fe(i)?u.push(i):de(i)&&u.push(i.call(null,{rowIndex:o})),u.join(" ")},getHeaderCellStyle:(o,u,i,d)=>{var f;let m=(f=t?.props.headerCellStyle)!=null?f:{};de(m)&&(m=m.call(null,{rowIndex:o,columnIndex:u,row:i,column:d}));const p=Nt(u,d.fixed,e.store,i);return ke(p,"left"),ke(p,"right"),Object.assign({},m,p)},getHeaderCellClass:(o,u,i,d)=>{const f=Rt(l.b(),u,d.fixed,e.store,i),m=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||m.push("is-leaf"),d.sortable&&m.push("is-sortable");const p=t?.props.headerCellClassName;return fe(p)?m.push(p):de(p)&&m.push(p.call(null,{rowIndex:o,columnIndex:u,row:i,column:d})),m.push(l.e("cell")),m.filter(v=>!!v).join(" ")}}}const xl=e=>{const t=[];return e.forEach(l=>{l.children?(t.push(l),t.push.apply(t,xl(l.children))):t.push(l)}),t},El=e=>{let t=1;const l=(a,s)=>{if(s&&(a.level=s.level+1,t{l(u,a),o+=u.colSpan}),a.colSpan=o}else a.colSpan=1};e.forEach(a=>{a.level=1,l(a,void 0)});const n=[];for(let a=0;a{a.children?(a.rowSpan=1,a.children.forEach(s=>s.isSubColumn=!0)):a.rowSpan=t-a.level+1,n[a.level-1].push(a)}),n};function Ao(e){const t=ye(ge),l=B(()=>El(e.store.states.originColumns.value));return{isGroup:B(()=>{const a=l.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t?.store.commit("toggleAllSelection")},columnRows:l}}var Po=xe({name:"ElTableHeader",components:{ElCheckbox:Pe},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const l=re(),n=ye(ge),r=pe("table"),a=E({}),{onColumnsChange:s,onScrollableChange:o}=Ot(n),u=n?.props.tableLayout==="auto",i=cn(new Map),d=E(),f=()=>{setTimeout(()=>{i.size>0&&(i.forEach((W,H)=>{const M=d.value.querySelector(`.${H.replace(/\s/g,".")}`);if(M){const z=M.getBoundingClientRect().width;W.width=z}}),i.clear())})};ce(i,f),De(async()=>{await Ae(),await Ae();const{prop:W,order:H}=e.defaultSort;n?.store.commit("sort",{prop:W,order:H,init:!0}),f()});const{handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:y,handleMouseOut:b,handleSortClick:F,handleFilterClick:N}=Mo(e,t),{getHeaderRowStyle:S,getHeaderRowClass:c,getHeaderCellStyle:g,getHeaderCellClass:C}=Ho(e),{isGroup:h,toggleAllSelection:w,columnRows:R}=Ao(e);return l.state={onColumnsChange:s,onScrollableChange:o},l.filterPanels=a,{ns:r,filterPanels:a,onColumnsChange:s,onScrollableChange:o,columnRows:R,getHeaderRowClass:c,getHeaderRowStyle:S,getHeaderCellClass:C,getHeaderCellStyle:g,handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:y,handleMouseOut:b,handleSortClick:F,handleFilterClick:N,isGroup:h,toggleAllSelection:w,saveIndexSelection:i,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:f}},render(){const{ns:e,isGroup:t,columnRows:l,getHeaderCellStyle:n,getHeaderCellClass:r,getHeaderRowClass:a,getHeaderRowStyle:s,handleHeaderClick:o,handleHeaderContextMenu:u,handleMouseDown:i,handleMouseMove:d,handleSortClick:f,handleMouseOut:m,store:p,$parent:v,saveIndexSelection:y,isTableLayoutAuto:b}=this;let F=1;return P("thead",{ref:"theadRef",class:{[e.is("group")]:t}},l.map((N,S)=>P("tr",{class:a(S),key:S,style:s(S)},N.map((c,g)=>{c.rowSpan>F&&(F=c.rowSpan);const C=r(S,g,N,c);return b&&c.fixed&&y.set(C,c),P("th",{class:C,colspan:c.colSpan,key:`${c.id}-thead`,rowspan:c.rowSpan,style:n(S,g,N,c),onClick:h=>{var w;(w=h.currentTarget)!=null&&w.classList.contains("noclick")||o(h,c)},onContextmenu:h=>u(h,c),onMousedown:h=>i(h,c),onMousemove:h=>d(h,c),onMouseout:m},[P("div",{class:["cell",c.filteredValue&&c.filteredValue.length>0?"highlight":""]},[c.renderHeader?c.renderHeader({column:c,$index:g,store:p,_self:v}):c.label,c.sortable&&P("span",{onClick:h=>f(h,c),class:"caret-wrapper"},[P("i",{onClick:h=>f(h,c,"ascending"),class:"sort-caret ascending"}),P("i",{onClick:h=>f(h,c,"descending"),class:"sort-caret descending"})]),c.filterable&&P(Wo,{store:p,placement:c.filterPlacement||"bottom-start",appendTo:v?.appendFilterPanelTo,column:c,upDataColumn:(h,w)=>{c[h]=w}},{"filter-icon":()=>c.renderFilterIcon?c.renderFilterIcon({filterOpened:c.filterOpened}):null})])])}))))}});function at(e,t,l=.03){return e-t>l}function ko(e){const t=ye(ge),l=E(""),n=E(P("div")),r=(v,y,b)=>{var F,N,S;const c=t,g=rt(v);let C=null;const h=(F=c?.vnode.el)==null?void 0:F.dataset.prefix;g&&(C=zt({columns:(S=(N=e.store)==null?void 0:N.states.columns.value)!=null?S:[]},g,h),C&&c?.emit(`cell-${b}`,y,C,g,v)),c?.emit(`row-${b}`,y,C,v)},a=(v,y)=>{r(v,y,"dblclick")},s=(v,y)=>{var b;(b=e.store)==null||b.commit("setCurrentRow",y),r(v,y,"click")},o=(v,y)=>{r(v,y,"contextmenu")},u=nt(v=>{var y;(y=e.store)==null||y.commit("setHoverRow",v)},30),i=nt(()=>{var v;(v=e.store)==null||v.commit("setHoverRow",null)},30),d=v=>{const y=window.getComputedStyle(v,null),b=Number.parseInt(y.paddingLeft,10)||0,F=Number.parseInt(y.paddingRight,10)||0,N=Number.parseInt(y.paddingTop,10)||0,S=Number.parseInt(y.paddingBottom,10)||0;return{left:b,right:F,top:N,bottom:S}},f=(v,y,b)=>{var F;let N=(F=y?.target)==null?void 0:F.parentNode;for(;v>1&&(N=N?.nextSibling,!(!N||N.nodeName!=="TR"));)b(N,"hover-row hover-fixed-row"),v--};return{handleDoubleClick:a,handleClick:s,handleContextMenu:o,handleMouseEnter:u,handleMouseLeave:i,handleCellMouseEnter:(v,y,b)=>{var F,N,S,c,g,C;if(!t)return;const h=t,w=rt(v),R=(F=h?.vnode.el)==null?void 0:F.dataset.prefix;let W=null;if(w){if(W=zt({columns:(S=(N=e.store)==null?void 0:N.states.columns.value)!=null?S:[]},w,R),!W)return;w.rowSpan>1&&f(w.rowSpan,v,lt);const G=h.hoverState={cell:w,column:W,row:y};h?.emit("cell-mouse-enter",G.row,G.column,G.cell,v)}if(!b)return;const H=v.target.querySelector(".cell");if(!(_e(H,`${R}-tooltip`)&&H.childNodes.length))return;const M=document.createRange();M.setStart(H,0),M.setEnd(H,H.childNodes.length);const{width:z,height:j}=M.getBoundingClientRect(),{width:K,height:I}=H.getBoundingClientRect(),{top:L,left:T,right:x,bottom:A}=d(H),U=T+x,X=L+A;at(z+U,K)||at(j+X,I)||at(H.scrollWidth,K)?yo(b,(c=w?.innerText||w?.textContent)!=null?c:"",y,W,w,h):((g=oe)==null?void 0:g.trigger)===w&&((C=oe)==null||C())},handleCellMouseLeave:v=>{const y=rt(v);if(!y)return;y.rowSpan>1&&f(y.rowSpan,v,ze);const b=t?.hoverState;t?.emit("cell-mouse-leave",b?.row,b?.column,b?.cell,v)},tooltipContent:l,tooltipTrigger:n}}function $o(e){const t=ye(ge),l=pe("table");return{getRowStyle:(i,d)=>{const f=t?.props.rowStyle;return de(f)?f.call(null,{row:i,rowIndex:d}):f||null},getRowClass:(i,d)=>{var f;const m=[l.e("row")];t?.props.highlightCurrentRow&&i===((f=e.store)==null?void 0:f.states.currentRow.value)&&m.push("current-row"),e.stripe&&d%2===1&&m.push(l.em("row","striped"));const p=t?.props.rowClassName;return fe(p)?m.push(p):de(p)&&m.push(p.call(null,{row:i,rowIndex:d})),m},getCellStyle:(i,d,f,m)=>{const p=t?.props.cellStyle;let v=p??{};de(p)&&(v=p.call(null,{rowIndex:i,columnIndex:d,row:f,column:m}));const y=Nt(d,e?.fixed,e.store);return ke(y,"left"),ke(y,"right"),Object.assign({},v,y)},getCellClass:(i,d,f,m,p)=>{const v=Rt(l.b(),d,e?.fixed,e.store,void 0,p),y=[m.id,m.align,m.className,...v],b=t?.props.cellClassName;return fe(b)?y.push(b):de(b)&&y.push(b.call(null,{rowIndex:i,columnIndex:d,row:f,column:m})),y.push(l.e("cell")),y.filter(F=>!!F).join(" ")},getSpan:(i,d,f,m)=>{let p=1,v=1;const y=t?.props.spanMethod;if(de(y)){const b=y({row:i,column:d,rowIndex:f,columnIndex:m});ie(b)?(p=b[0],v=b[1]):tt(b)&&(p=b.rowspan,v=b.colspan)}return{rowspan:p,colspan:v}},getColspanRealWidth:(i,d,f)=>{if(d<1)return i[f].realWidth;const m=i.map(({realWidth:p,width:v})=>p||v).slice(f,f+d);return Number(m.reduce((p,v)=>Number(p)+Number(v),-1))}}}const _o=xe({name:"TableTdWrapper"}),Bo=xe({..._o,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,l)=>(Q(),se("td",{colspan:e.colspan,rowspan:e.rowspan},[Se(t.$slots,"default")],8,["colspan","rowspan"]))}});var Ko=wt(Bo,[["__file","td-wrapper.vue"]]);function zo(e){const t=ye(ge),l=pe("table"),{handleDoubleClick:n,handleClick:r,handleContextMenu:a,handleMouseEnter:s,handleMouseLeave:o,handleCellMouseEnter:u,handleCellMouseLeave:i,tooltipContent:d,tooltipTrigger:f}=ko(e),{getRowStyle:m,getRowClass:p,getCellStyle:v,getCellClass:y,getSpan:b,getColspanRealWidth:F}=$o(e),N=B(()=>{var h;return(h=e.store)==null?void 0:h.states.columns.value.findIndex(({type:w})=>w==="default")}),S=(h,w)=>{var R;const W=(R=t?.props)==null?void 0:R.rowKey;return W?te(h,W):w},c=(h,w,R,W=!1)=>{const{tooltipEffect:H,tooltipOptions:M,store:z}=e,{indent:j,columns:K}=z.states,I=p(h,w);let L=!0;return R&&(I.push(l.em("row",`level-${R.level}`)),L=!!R.display),P("tr",{style:[L?null:{display:"none"},m(h,w)],class:I,key:S(h,w),onDblclick:x=>n(x,h),onClick:x=>r(x,h),onContextmenu:x=>a(x,h),onMouseenter:()=>s(w),onMouseleave:o},K.value.map((x,A)=>{const{rowspan:U,colspan:X}=b(h,x,w,A);if(!U||!X)return null;const G=Object.assign({},x);G.realWidth=F(K.value,X,A);const ee={store:z,_self:e.context||t,column:G,row:h,$index:w,cellIndex:A,expanded:W};A===N.value&&R&&(ee.treeNode={indent:R.level&&R.level*j.value,level:R.level},Ne(R.expanded)&&(ee.treeNode.expanded=R.expanded,"loading"in R&&(ee.treeNode.loading=R.loading),"noLazyChildren"in R&&(ee.treeNode.noLazyChildren=R.noLazyChildren)));const he=`${S(h,w)},${A}`,J=G.columnKey||G.rawColumnKey||"",me=x.showOverflowTooltip&&gl({effect:H},M,x.showOverflowTooltip);return P(Ko,{style:v(w,A,h,x),class:y(w,A,h,x,X-1),key:`${J}${he}`,rowspan:U,colspan:X,onMouseenter:Z=>u(Z,h,me),onMouseleave:i},{default:()=>g(A,x,ee)})}))},g=(h,w,R)=>w.renderCell(R);return{wrappedRowRender:(h,w)=>{const R=e.store,{isRowExpanded:W,assertRowKey:H}=R,{treeData:M,lazyTreeNodeMap:z,childrenColumnName:j,rowKey:K}=R.states,I=R.states.columns.value;if(I.some(({type:T})=>T==="expand")){const T=W(h),x=c(h,w,void 0,T),A=t?.renderExpanded;if(!A)return console.error("[Element Error]renderExpanded is required."),x;const U=[[x]];return(t.props.preserveExpandedContent||T)&&U[0].push(P("tr",{key:`expanded-row__${x.key}`,style:{display:T?"":"none"}},[P("td",{colspan:I.length,class:`${l.e("cell")} ${l.e("expanded-cell")}`},[A({row:h,$index:w,store:R,expanded:T})])])),U}else if(Object.keys(M.value).length){H();const T=te(h,K.value);let x=M.value[T],A=null;x&&(A={expanded:x.expanded,level:x.level,display:!0,noLazyChildren:void 0,loading:void 0},Ne(x.lazy)&&(A&&Ne(x.loaded)&&x.loaded&&(A.noLazyChildren=!(x.children&&x.children.length)),A.loading=x.loading));const U=[c(h,w,A??void 0)];if(x){let X=0;const G=(he,J)=>{he&&he.length&&J&&he.forEach(me=>{const Z={display:J.display&&J.expanded,level:J.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Oe=te(me,K.value);if(Ge(Oe))throw new Error("For nested data item, row-key is required.");if(x={...M.value[Oe]},x&&(Z.expanded=x.expanded,x.level=x.level||Z.level,x.display=!!(x.expanded&&Z.display),Ne(x.lazy)&&(Ne(x.loaded)&&x.loaded&&(Z.noLazyChildren=!(x.children&&x.children.length)),Z.loading=x.loading)),X++,U.push(c(me,w+X,Z)),x){const Ue=z.value[Oe]||me[j.value];G(Ue,x)}})};x.display=!0;const ee=z.value[T]||h[j.value];G(ee,x)}return U}else return c(h,w,void 0)},tooltipContent:d,tooltipTrigger:f}}const Io={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Do=xe({name:"ElTableBody",props:Io,setup(e){var t;const l=re(),n=ye(ge),r=pe("table"),{wrappedRowRender:a,tooltipContent:s,tooltipTrigger:o}=zo(e),{onColumnsChange:u,onScrollableChange:i}=Ot(n),d=[];return ce((t=e.store)==null?void 0:t.states.hoverRow,(f,m)=>{var p,v;const y=l?.vnode.el,b=Array.from(y?.children||[]).filter(S=>S?.classList.contains(`${r.e("row")}`));let F=f;const N=(p=b[F])==null?void 0:p.childNodes;if(N?.length){let S=0;Array.from(N).reduce((g,C,h)=>{var w,R;return((w=N[h])==null?void 0:w.colSpan)>1&&(S=(R=N[h])==null?void 0:R.colSpan),C.nodeName!=="TD"&&S===0&&g.push(h),S>0&&S--,g},[]).forEach(g=>{var C;for(F=f;F>0;){const h=(C=b[F-1])==null?void 0:C.childNodes;if(h[g]&&h[g].nodeName==="TD"&&h[g].rowSpan>1){lt(h[g],"hover-cell"),d.push(h[g]);break}F--}})}else d.forEach(S=>ze(S,"hover-cell")),d.length=0;!((v=e.store)!=null&&v.states.isComplex.value)||!He||uo(()=>{const S=b[m],c=b[f];S&&!S.classList.contains("hover-fixed-row")&&ze(S,"hover-row"),c&<(c,"hover-row")})}),xt(()=>{var f;(f=oe)==null||f()}),{ns:r,onColumnsChange:u,onScrollableChange:i,wrappedRowRender:a,tooltipContent:s,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,l=t?.states.data.value||[];return P("tbody",{tabIndex:-1},[l.reduce((n,r)=>n.concat(e(r,n.length)),[])])}});function Vo(){const e=ye(ge),t=e?.store,l=B(()=>{var o;return(o=t?.states.fixedLeafColumnsLength.value)!=null?o:0}),n=B(()=>{var o;return(o=t?.states.rightFixedColumns.value.length)!=null?o:0}),r=B(()=>{var o;return(o=t?.states.columns.value.length)!=null?o:0}),a=B(()=>{var o;return(o=t?.states.fixedColumns.value.length)!=null?o:0}),s=B(()=>{var o;return(o=t?.states.rightFixedColumns.value.length)!=null?o:0});return{leftFixedLeafCount:l,rightFixedLeafCount:n,columnsCount:r,leftFixedCount:a,rightFixedCount:s,columns:B(()=>{var o;return(o=t?.states.columns.value)!=null?o:[]})}}function jo(e){const{columns:t}=Vo(),l=pe("table");return{getCellClasses:(a,s)=>{const o=a[s],u=[l.e("cell"),o.id,o.align,o.labelClassName,...Rt(l.b(),s,o.fixed,e.store)];return o.className&&u.push(o.className),o.children||u.push(l.is("leaf")),u},getCellStyles:(a,s)=>{const o=Nt(s,a.fixed,e.store);return ke(o,"left"),ke(o,"right"),o},columns:t}}var Uo=xe({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=ye(ge),l=pe("table"),{getCellClasses:n,getCellStyles:r,columns:a}=jo(e),{onScrollableChange:s,onColumnsChange:o}=Ot(t);return{ns:l,onScrollableChange:s,onColumnsChange:o,getCellClasses:n,getCellStyles:r,columns:a}},render(){const{columns:e,getCellStyles:t,getCellClasses:l,summaryMethod:n,sumText:r}=this,a=this.store.states.data.value;let s=[];return n?s=n({columns:e,data:a}):e.forEach((o,u)=>{if(u===0){s[u]=r;return}const i=a.map(p=>Number(p[o.property])),d=[];let f=!0;i.forEach(p=>{if(!Number.isNaN(+p)){f=!1;const v=`${p}`.split(".")[1];d.push(v?v.length:0)}});const m=Math.max.apply(null,d);f?s[u]="":s[u]=i.reduce((p,v)=>{const y=Number(v);return Number.isNaN(+y)?p:Number.parseFloat((p+v).toFixed(Math.min(m,20)))},0)}),P(P("tfoot",[P("tr",{},[...e.map((o,u)=>P("td",{key:u,colspan:o.colSpan,rowspan:o.rowSpan,class:l(e,u),style:t(o,u)},[P("div",{class:["cell",o.labelClassName]},[s[u]])]))])]))}});function Yo(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,m,p=!0)=>{e.toggleRowSelection(f,m,!1,p),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,m)=>{e.toggleRowExpansionAdapter(f,m)},clearSort:()=>{e.clearSort()},sort:(f,m)=>{e.commit("sort",{prop:f,order:m})},updateKeyChildren:(f,m)=>{e.updateKeyChildren(f,m)}}}function qo(e,t,l,n){const r=E(!1),a=E(null),s=E(!1),o=L=>{s.value=L},u=E({width:null,height:null,headerHeight:null}),i=E(!1),d={display:"inline-block",verticalAlign:"middle"},f=E(),m=E(0),p=E(0),v=E(0),y=E(0),b=E(0);Be(()=>{var L;t.setHeight((L=e.height)!=null?L:null)}),Be(()=>{var L;t.setMaxHeight((L=e.maxHeight)!=null?L:null)}),ce(()=>[e.currentRowKey,l.states.rowKey],([L,T])=>{!le(T)||!le(L)||l.setCurrentRowKey(`${L}`)},{immediate:!0}),ce(()=>e.data,L=>{n.store.commit("setData",L)},{immediate:!0,deep:!0}),Be(()=>{e.expandRowKeys&&l.setExpandRowKeysAdapter(e.expandRowKeys)});const F=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},N=(L,T)=>{const{pixelX:x,pixelY:A}=T;Math.abs(x)>=Math.abs(A)&&(n.refs.bodyWrapper.scrollLeft+=T.pixelX/5)},S=B(()=>e.height||e.maxHeight||l.states.fixedColumns.value.length>0||l.states.rightFixedColumns.value.length>0),c=B(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),g=()=>{S.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(R)};De(async()=>{await Ae(),l.updateColumns(),W(),requestAnimationFrame(g);const L=n.vnode.el,T=n.refs.headerWrapper;e.flexible&&L&&L.parentElement&&(L.parentElement.style.minWidth="0"),u.value={width:f.value=L.offsetWidth,height:L.offsetHeight,headerHeight:e.showHeader&&T?T.offsetHeight:null},l.states.columns.value.forEach(x=>{x.filteredValue&&x.filteredValue.length&&n.store.commit("filterChange",{column:x,values:x.filteredValue,silent:!0})}),n.$ready=!0});const C=(L,T)=>{if(!L)return;const x=Array.from(L.classList).filter(A=>!A.startsWith("is-scrolling-"));x.push(t.scrollX.value?T:"is-scrolling-none"),L.className=x.join(" ")},h=L=>{const{tableWrapper:T}=n.refs;C(T,L)},w=L=>{const{tableWrapper:T}=n.refs;return!!(T&&T.classList.contains(L))},R=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const ee="is-scrolling-none";w(ee)||h(ee);return}const L=n.refs.scrollBarRef.wrapRef;if(!L)return;const{scrollLeft:T,offsetWidth:x,scrollWidth:A}=L,{headerWrapper:U,footerWrapper:X}=n.refs;U&&(U.scrollLeft=T),X&&(X.scrollLeft=T);const G=A-x-1;T>=G?h("is-scrolling-right"):h(T===0?"is-scrolling-left":"is-scrolling-middle")},W=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&Ht(n.refs.scrollBarRef.wrapRef,"scroll",R,{passive:!0}),e.fit?At(n.vnode.el,H):Ht(window,"resize",H),At(n.refs.bodyWrapper,()=>{var L,T;H(),(T=(L=n.refs)==null?void 0:L.scrollBarRef)==null||T.update()}))},H=()=>{var L,T,x,A;const U=n.vnode.el;if(!n.$ready||!U)return;let X=!1;const{width:G,height:ee,headerHeight:he}=u.value,J=f.value=U.offsetWidth;G!==J&&(X=!0);const me=U.offsetHeight;(e.height||S.value)&&ee!==me&&(X=!0);const Z=e.tableLayout==="fixed"?n.refs.headerWrapper:(L=n.refs.tableHeaderRef)==null?void 0:L.$el;e.showHeader&&Z?.offsetHeight!==he&&(X=!0),m.value=((T=n.refs.tableWrapper)==null?void 0:T.scrollHeight)||0,v.value=Z?.scrollHeight||0,y.value=((x=n.refs.footerWrapper)==null?void 0:x.offsetHeight)||0,b.value=((A=n.refs.appendWrapper)==null?void 0:A.offsetHeight)||0,p.value=m.value-v.value-y.value-b.value,X&&(u.value={width:J,height:me,headerHeight:e.showHeader&&Z?.offsetHeight||0},g())},M=Mn(),z=B(()=>{const{bodyWidth:L,scrollY:T,gutterWidth:x}=t;return L.value?`${L.value-(T.value?x:0)}px`:""}),j=B(()=>e.maxHeight?"fixed":e.tableLayout),K=B(()=>{if(e.data&&e.data.length)return;let L="100%";e.height&&p.value&&(L=`${p.value}px`);const T=f.value;return{width:T?`${T}px`:"",height:L}}),I=B(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+y.value}px)`}:{maxHeight:`${+e.maxHeight-v.value-y.value}px`}:{});return{isHidden:r,renderExpanded:a,setDragVisible:o,isGroup:i,handleMouseLeave:F,handleHeaderFooterMousewheel:N,tableSize:M,emptyBlockStyle:K,resizeProxyVisible:s,bodyWidth:z,resizeState:u,doLayout:g,tableBodyStyles:c,tableLayout:j,scrollbarViewStyle:d,scrollbarStyle:I}}function Xo(e){const t=E(),l=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),a={childList:!0,subtree:!0},s=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{s.forEach(o=>o())}),t.value.observe(r,a)};De(()=>{l()}),xt(()=>{var n;(n=t.value)==null||n.disconnect()})}var Go={data:{type:Array,default:()=>[]},size:fn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean};function Rl(e){const t=e.tableLayout==="auto";let l=e.columns||[];t&&l.every(({width:r})=>we(r))&&(l=[]);const n=r=>{const a={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?a.style={width:`${r.width}px`}:a.name=r.id,a};return P("colgroup",{},l.map(r=>P("col",n(r))))}Rl.props=["columns","tableLayout"];const Qo=()=>{const e=E(),t=(a,s)=>{const o=e.value;o&&o.scrollTo(a,s)},l=(a,s)=>{const o=e.value;o&&We(s)&&["Top","Left"].includes(a)&&o[`setScroll${a}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>l("Top",a),setScrollLeft:a=>l("Left",a)}};var Vt=!1,Le,ht,vt,Je,Ze,Nl,et,pt,gt,mt,Ll,yt,bt,Ol,Fl;function ne(){if(!Vt){Vt=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),l=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(yt=/\b(iPhone|iP[ao]d)/.exec(e),bt=/\b(iP[ao]d)/.exec(e),mt=/Android/i.exec(e),Ol=/FBAN\/\w+;/i.exec(e),Fl=/Mobile/i.exec(e),Ll=!!/Win64/.exec(e),t){Le=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Le&&document&&document.documentMode&&(Le=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);Nl=n?parseFloat(n[1])+4:Le,ht=t[2]?parseFloat(t[2]):NaN,vt=t[3]?parseFloat(t[3]):NaN,Je=t[4]?parseFloat(t[4]):NaN,Je?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ze=t&&t[1]?parseFloat(t[1]):NaN):Ze=NaN}else Le=ht=vt=Ze=Je=NaN;if(l){if(l[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);et=r?parseFloat(r[1].replace("_",".")):!0}else et=!1;pt=!!l[2],gt=!!l[3]}else et=pt=gt=!1}}var Ct={ie:function(){return ne()||Le},ieCompatibilityMode:function(){return ne()||Nl>Le},ie64:function(){return Ct.ie()&&Ll},firefox:function(){return ne()||ht},opera:function(){return ne()||vt},webkit:function(){return ne()||Je},safari:function(){return Ct.webkit()},chrome:function(){return ne()||Ze},windows:function(){return ne()||pt},osx:function(){return ne()||et},linux:function(){return ne()||gt},iphone:function(){return ne()||yt},mobile:function(){return ne()||yt||bt||mt||Fl},nativeApp:function(){return ne()||Ol},android:function(){return ne()||mt},ipad:function(){return ne()||bt}},Jo=Ct,Zo=!!(typeof window<"u"&&window.document&&window.document.createElement),er={canUseDOM:Zo},Tl=er,Wl;Tl.canUseDOM&&(Wl=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function tr(e,t){if(!Tl.canUseDOM||t&&!("addEventListener"in document))return!1;var l="on"+e,n=l in document;if(!n){var r=document.createElement("div");r.setAttribute(l,"return;"),n=typeof r[l]=="function"}return!n&&Wl&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var lr=tr,jt=10,Ut=40,Yt=800;function Ml(e){var t=0,l=0,n=0,r=0;return"detail"in e&&(l=e.detail),"wheelDelta"in e&&(l=-e.wheelDelta/120),"wheelDeltaY"in e&&(l=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=l,l=0),n=t*jt,r=l*jt,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(e.deltaMode==1?(n*=Ut,r*=Ut):(n*=Yt,r*=Yt)),n&&!t&&(t=n<1?-1:1),r&&!l&&(l=r<1?-1:1),{spinX:t,spinY:l,pixelX:n,pixelY:r}}Ml.getEventType=function(){return Jo.firefox()?"DOMMouseScroll":lr("wheel")?"wheel":"mousewheel"};var nr=Ml;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, diff --git a/mail-worker/dist/assets/el-tag-Bx7m9zwB.js b/mail-worker/dist/assets/el-tag-CjAzCWMf.js similarity index 99% rename from mail-worker/dist/assets/el-tag-Bx7m9zwB.js rename to mail-worker/dist/assets/el-tag-CjAzCWMf.js index f90d7c1..1da3402 100644 --- a/mail-worker/dist/assets/el-tag-Bx7m9zwB.js +++ b/mail-worker/dist/assets/el-tag-CjAzCWMf.js @@ -1 +1 @@ -import{c8 as tt,bM as _e,bO as pr,bK as ft,bL as ht,c9 as dr,bI as vr,bN as Xe,ca as wt,cb as Ye,cc as An,cd as Ce,ce as Wt,bJ as gr,b as oe,_ as le,a as D,z as k,k as C,r as ne,G as Fe,u as ge,y as me,J as He,c as De,o as U,i as ct,n as ae,g as f,d as x,a_ as pt,N as _n,cf as mr,U as yr,P as br,cg as hr,bU as wr,ab as ve,I as nt,F as H,aa as je,m as te,e as he,p as K,q as Tt,bA as Cn,X as Pn,a8 as Ie,as as Tr,b2 as zt,bi as Or,aQ as Kt,w as Ot,E as st,ch as Sn,H as Er,ac as Ge,aU as Rn,S as Ar,a1 as Me,bT as _r,ci as Cr,cj as Pr,T as xn,O as Sr,bz as Rr,bC as xr,ck as Mr,t as jr,aL as Ir,f as it,a2 as qt,a7 as Gt,L as Vt}from"./index-C-CeCRdr.js";import{c as Mn,a as $r,e as Br,u as jn}from"./index-mPHfnfYT.js";import{i as Zt,a as Lr,e as Fr,b as Dr,j as Nr}from"./vnode-iQPJucW4.js";import{u as kr,a as Hr}from"./index-CDAJLwwD.js";import{f as Jt,g as Ur,e as Wr,a as zr}from"./index-DbudBMlZ.js";var dt=tt(_e,"WeakMap");function Kr(e){return e!=null&&Mn(e.length)&&!pr(e)}var qr=Object.prototype;function Gr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qr;return e===n}function Vr(e,t){for(var n=-1,r=Array(e);++nu))return!1;var s=a.get(e),p=a.get(t);if(s&&p)return s==t&&p==e;var d=-1,v=!0,m=n&aa?new Qe:void 0;for(a.set(e,t),a.set(t,e);++dn.role),l={triggerRef:r,popperInstanceRef:o,contentRef:a,referenceRef:i,role:u};return t(l),Fe(Et,l),(s,p)=>ne(s.$slots,"default")}});var Ia=le(ja,[["__file","popper.vue"]]);const $a=D({name:"ElPopperArrow",inheritAttrs:!1}),Ba=D({...$a,setup(e,{expose:t}){const n=ge("popper"),{arrowRef:r,arrowStyle:o}=me(Dn,void 0);return He(()=>{r.value=void 0}),t({arrowRef:r}),(a,i)=>(U(),De("span",{ref_key:"arrowRef",ref:r,class:ae(f(n).e("arrow")),style:ct(f(o)),"data-popper-arrow":""},null,6))}});var La=le(Ba,[["__file","arrow.vue"]]);const kn=oe({virtualRef:{type:x(Object)},virtualTriggering:Boolean,onMouseenter:{type:x(Function)},onMouseleave:{type:x(Function)},onClick:{type:x(Function)},onKeydown:{type:x(Function)},onFocus:{type:x(Function)},onBlur:{type:x(Function)},onContextmenu:{type:x(Function)},id:String,open:Boolean}),Hn=Symbol("elForwardRef"),Fa=e=>{Fe(Hn,{setForwardRef:n=>{e.value=n}})},Da=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Na="ElOnlyChild",ka=D({name:Na,setup(e,{slots:t,attrs:n}){var r;const o=me(Hn),a=Da((r=o?.setForwardRef)!=null?r:pt);return()=>{var i;const u=(i=t.default)==null?void 0:i.call(t,n);if(!u||u.length>1)return null;const l=Un(u);return l?_n(mr(l,n),[[a]]):null}}});function Un(e){if(!e)return null;const t=e;for(const n of t){if(yr(n))switch(n.type){case wr:continue;case hr:case"svg":return vn(n);case br:return Un(n.children);default:return n}return vn(n)}return null}function vn(e){const t=ge("only-child");return ve("span",{class:t.e("content")},[e])}const Ha=D({name:"ElPopperTrigger",inheritAttrs:!1}),Ua=D({...Ha,props:kn,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=me(Et,void 0);Fa(o);const a=C(()=>u.value?n.id:void 0),i=C(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),u=C(()=>{if(r&&r.value!=="tooltip")return r.value}),l=C(()=>u.value?`${n.open}`:void 0);let s;const p=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return nt(()=>{H(()=>n.virtualRef,d=>{d&&(o.value=Cn(d))},{immediate:!0}),H(o,(d,v)=>{s?.(),s=void 0,je(d)&&(p.forEach(m=>{var y;const g=n[m];g&&(d.addEventListener(m.slice(2).toLowerCase(),g),(y=v?.removeEventListener)==null||y.call(v,m.slice(2).toLowerCase(),g))}),Zt(d)&&(s=H([a,i,u,l],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((y,g)=>{Pn(m[g])?d.removeAttribute(y):d.setAttribute(y,m[g])})},{immediate:!0}))),je(v)&&Zt(v)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>v.removeAttribute(m))},{immediate:!0})}),He(()=>{if(s?.(),s=void 0,o.value&&je(o.value)){const d=o.value;p.forEach(v=>{const m=n[v];m&&d.removeEventListener(v.slice(2).toLowerCase(),m)}),o.value=void 0}}),t({triggerRef:o}),(d,v)=>d.virtualTriggering?he("v-if",!0):(U(),te(f(ka),Tt({key:0},d.$attrs,{"aria-controls":f(a),"aria-describedby":f(i),"aria-expanded":f(l),"aria-haspopup":f(u)}),{default:K(()=>[ne(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Wa=le(Ua,[["__file","trigger.vue"]]),W="top",G="bottom",V="right",z="left",At="auto",Ue=[W,G,V,z],we="start",Ne="end",za="clippingParents",Wn="viewport",xe="popper",Ka="reference",gn=Ue.reduce(function(e,t){return e.concat([t+"-"+we,t+"-"+Ne])},[]),_t=[].concat(Ue,[At]).reduce(function(e,t){return e.concat([t,t+"-"+we,t+"-"+Ne])},[]),qa="beforeRead",Ga="read",Va="afterRead",Za="beforeMain",Ja="main",Xa="afterMain",Ya="beforeWrite",Qa="write",es="afterWrite",ts=[qa,Ga,Va,Za,Ja,Xa,Ya,Qa,es];function Y(e){return e?(e.nodeName||"").toLowerCase():null}function J(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Te(e){var t=J(e).Element;return e instanceof t||e instanceof Element}function q(e){var t=J(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ct(e){if(typeof ShadowRoot>"u")return!1;var t=J(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ns(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!q(a)||!Y(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var u=o[i];u===!1?a.removeAttribute(i):a.setAttribute(i,u===!0?"":u)}))})}function rs(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=i.reduce(function(l,s){return l[s]="",l},{});!q(o)||!Y(o)||(Object.assign(o.style,u),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}var zn={name:"applyStyles",enabled:!0,phase:"write",fn:ns,effect:rs,requires:["computeStyles"]};function X(e){return e.split("-")[0]}var de=Math.max,et=Math.min,Oe=Math.round;function Ee(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(q(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Oe(n.width)/i||1),a>0&&(o=Oe(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Pt(e){var t=Ee(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ct(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return J(e).getComputedStyle(e)}function os(e){return["table","td","th"].indexOf(Y(e))>=0}function ue(e){return((Te(e)?e.ownerDocument:e.document)||window.document).documentElement}function rt(e){return Y(e)==="html"?e:e.assignedSlot||e.parentNode||(Ct(e)?e.host:null)||ue(e)}function mn(e){return!q(e)||re(e).position==="fixed"?null:e.offsetParent}function as(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&q(e)){var r=re(e);if(r.position==="fixed")return null}var o=rt(e);for(Ct(o)&&(o=o.host);q(o)&&["html","body"].indexOf(Y(o))<0;){var a=re(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function We(e){for(var t=J(e),n=mn(e);n&&os(n)&&re(n).position==="static";)n=mn(n);return n&&(Y(n)==="html"||Y(n)==="body"&&re(n).position==="static")?t:n||as(e)||t}function St(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Be(e,t,n){return de(e,et(t,n))}function ss(e,t,n){var r=Be(e,t,n);return r>n?n:r}function qn(){return{top:0,right:0,bottom:0,left:0}}function Gn(e){return Object.assign({},qn(),e)}function Vn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var is=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Gn(typeof e!="number"?e:Vn(e,Ue))};function ls(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,u=X(n.placement),l=St(u),s=[z,V].indexOf(u)>=0,p=s?"height":"width";if(!(!a||!i)){var d=is(o.padding,n),v=Pt(a),m=l==="y"?W:z,y=l==="y"?G:V,g=n.rects.reference[p]+n.rects.reference[l]-i[l]-n.rects.popper[p],w=i[l]-n.rects.reference[l],h=We(a),O=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,c=g/2-w/2,b=d[m],A=O-v[p]-d[y],P=O/2-v[p]/2+c,E=Be(b,P,A),_=l;n.modifiersData[r]=(t={},t[_]=E,t.centerOffset=E-P,t)}}function us(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!Kn(t.elements.popper,o)||(t.elements.arrow=o))}var fs={name:"arrow",enabled:!0,phase:"main",fn:ls,effect:us,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ae(e){return e.split("-")[1]}var cs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ps(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Oe(t*o)/o||0,y:Oe(n*o)/o||0}}function yn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,u=e.position,l=e.gpuAcceleration,s=e.adaptive,p=e.roundOffsets,d=e.isFixed,v=i.x,m=v===void 0?0:v,y=i.y,g=y===void 0?0:y,w=typeof p=="function"?p({x:m,y:g}):{x:m,y:g};m=w.x,g=w.y;var h=i.hasOwnProperty("x"),O=i.hasOwnProperty("y"),c=z,b=W,A=window;if(s){var P=We(n),E="clientHeight",_="clientWidth";if(P===J(n)&&(P=ue(n),re(P).position!=="static"&&u==="absolute"&&(E="scrollHeight",_="scrollWidth")),P=P,o===W||(o===z||o===V)&&a===Ne){b=G;var R=d&&P===A&&A.visualViewport?A.visualViewport.height:P[E];g-=R-r.height,g*=l?1:-1}if(o===z||(o===W||o===G)&&a===Ne){c=V;var I=d&&P===A&&A.visualViewport?A.visualViewport.width:P[_];m-=I-r.width,m*=l?1:-1}}var M=Object.assign({position:u},s&&cs),j=p===!0?ps({x:m,y:g}):{x:m,y:g};if(m=j.x,g=j.y,l){var B;return Object.assign({},M,(B={},B[b]=O?"0":"",B[c]=h?"0":"",B.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",B))}return Object.assign({},M,(t={},t[b]=O?g+"px":"",t[c]=h?m+"px":"",t.transform="",t))}function ds(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,u=n.roundOffsets,l=u===void 0?!0:u,s={placement:X(t.placement),variation:Ae(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yn(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yn(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Zn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ds,data:{}},Ze={passive:!0};function vs(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,u=i===void 0?!0:i,l=J(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&s.forEach(function(p){p.addEventListener("scroll",n.update,Ze)}),u&&l.addEventListener("resize",n.update,Ze),function(){a&&s.forEach(function(p){p.removeEventListener("scroll",n.update,Ze)}),u&&l.removeEventListener("resize",n.update,Ze)}}var Jn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vs,data:{}},gs={left:"right",right:"left",bottom:"top",top:"bottom"};function Je(e){return e.replace(/left|right|bottom|top/g,function(t){return gs[t]})}var ms={start:"end",end:"start"};function bn(e){return e.replace(/start|end/g,function(t){return ms[t]})}function Rt(e){var t=J(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xt(e){return Ee(ue(e)).left+Rt(e).scrollLeft}function ys(e){var t=J(e),n=ue(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,u=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,u=r.offsetTop)),{width:o,height:a,x:i+xt(e),y:u}}function bs(e){var t,n=ue(e),r=Rt(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=de(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=de(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+xt(e),l=-r.scrollTop;return re(o||n).direction==="rtl"&&(u+=de(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:u,y:l}}function Mt(e){var t=re(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Xn(e){return["html","body","#document"].indexOf(Y(e))>=0?e.ownerDocument.body:q(e)&&Mt(e)?e:Xn(rt(e))}function Le(e,t){var n;t===void 0&&(t=[]);var r=Xn(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=J(r),i=o?[a].concat(a.visualViewport||[],Mt(r)?r:[]):r,u=t.concat(i);return o?u:u.concat(Le(rt(i)))}function bt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hs(e){var t=Ee(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function hn(e,t){return t===Wn?bt(ys(e)):Te(t)?hs(t):bt(bs(ue(e)))}function ws(e){var t=Le(rt(e)),n=["absolute","fixed"].indexOf(re(e).position)>=0,r=n&&q(e)?We(e):e;return Te(r)?t.filter(function(o){return Te(o)&&Kn(o,r)&&Y(o)!=="body"}):[]}function Ts(e,t,n){var r=t==="clippingParents"?ws(e):[].concat(t),o=[].concat(r,[n]),a=o[0],i=o.reduce(function(u,l){var s=hn(e,l);return u.top=de(s.top,u.top),u.right=et(s.right,u.right),u.bottom=et(s.bottom,u.bottom),u.left=de(s.left,u.left),u},hn(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Yn(e){var t=e.reference,n=e.element,r=e.placement,o=r?X(r):null,a=r?Ae(r):null,i=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,l;switch(o){case W:l={x:i,y:t.y-n.height};break;case G:l={x:i,y:t.y+t.height};break;case V:l={x:t.x+t.width,y:u};break;case z:l={x:t.x-n.width,y:u};break;default:l={x:t.x,y:t.y}}var s=o?St(o):null;if(s!=null){var p=s==="y"?"height":"width";switch(a){case we:l[s]=l[s]-(t[p]/2-n[p]/2);break;case Ne:l[s]=l[s]+(t[p]/2-n[p]/2);break}}return l}function ke(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.boundary,i=a===void 0?za:a,u=n.rootBoundary,l=u===void 0?Wn:u,s=n.elementContext,p=s===void 0?xe:s,d=n.altBoundary,v=d===void 0?!1:d,m=n.padding,y=m===void 0?0:m,g=Gn(typeof y!="number"?y:Vn(y,Ue)),w=p===xe?Ka:xe,h=e.rects.popper,O=e.elements[v?w:p],c=Ts(Te(O)?O:O.contextElement||ue(e.elements.popper),i,l),b=Ee(e.elements.reference),A=Yn({reference:b,element:h,placement:o}),P=bt(Object.assign({},h,A)),E=p===xe?P:b,_={top:c.top-E.top+g.top,bottom:E.bottom-c.bottom+g.bottom,left:c.left-E.left+g.left,right:E.right-c.right+g.right},R=e.modifiersData.offset;if(p===xe&&R){var I=R[o];Object.keys(_).forEach(function(M){var j=[V,G].indexOf(M)>=0?1:-1,B=[W,G].indexOf(M)>=0?"y":"x";_[M]+=I[B]*j})}return _}function Os(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,u=n.flipVariations,l=n.allowedAutoPlacements,s=l===void 0?_t:l,p=Ae(r),d=p?u?gn:gn.filter(function(y){return Ae(y)===p}):Ue,v=d.filter(function(y){return s.indexOf(y)>=0});v.length===0&&(v=d);var m=v.reduce(function(y,g){return y[g]=ke(e,{placement:g,boundary:o,rootBoundary:a,padding:i})[X(g)],y},{});return Object.keys(m).sort(function(y,g){return m[y]-m[g]})}function Es(e){if(X(e)===At)return[];var t=Je(e);return[bn(e),t,bn(t)]}function As(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,u=i===void 0?!0:i,l=n.fallbackPlacements,s=n.padding,p=n.boundary,d=n.rootBoundary,v=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,g=n.allowedAutoPlacements,w=t.options.placement,h=X(w),O=h===w,c=l||(O||!y?[Je(w)]:Es(w)),b=[w].concat(c).reduce(function(ce,Q){return ce.concat(X(Q)===At?Os(t,{placement:Q,boundary:p,rootBoundary:d,padding:s,flipVariations:y,allowedAutoPlacements:g}):Q)},[]),A=t.rects.reference,P=t.rects.popper,E=new Map,_=!0,R=b[0],I=0;I=0,Z=N?"width":"height",$=ke(t,{placement:M,boundary:p,rootBoundary:d,altBoundary:v,padding:s}),F=N?B?V:z:B?G:W;A[Z]>P[Z]&&(F=Je(F));var T=Je(F),L=[];if(a&&L.push($[j]<=0),u&&L.push($[F]<=0,$[T]<=0),L.every(function(ce){return ce})){R=M,_=!1;break}E.set(M,L)}if(_)for(var fe=y?3:1,Pe=function(ce){var Q=b.find(function(Ke){var Re=E.get(Ke);if(Re)return Re.slice(0,ce).every(function(ye){return ye})});if(Q)return R=Q,"break"},Se=fe;Se>0;Se--){var ze=Pe(Se);if(ze==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}var _s={name:"flip",enabled:!0,phase:"main",fn:As,requiresIfExists:["offset"],data:{_skip:!1}};function wn(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tn(e){return[W,V,G,z].some(function(t){return e[t]>=0})}function Cs(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=ke(t,{elementContext:"reference"}),u=ke(t,{altBoundary:!0}),l=wn(i,r),s=wn(u,o,a),p=Tn(l),d=Tn(s);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:p,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":d})}var Ps={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cs};function Ss(e,t,n){var r=X(e),o=[z,W].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],u=a[1];return i=i||0,u=(u||0)*o,[z,V].indexOf(r)>=0?{x:u,y:i}:{x:i,y:u}}function Rs(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=_t.reduce(function(p,d){return p[d]=Ss(d,t.rects,a),p},{}),u=i[t.placement],l=u.x,s=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=i}var xs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rs};function Ms(e){var t=e.state,n=e.name;t.modifiersData[n]=Yn({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Qn={name:"popperOffsets",enabled:!0,phase:"read",fn:Ms,data:{}};function js(e){return e==="x"?"y":"x"}function Is(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,u=i===void 0?!1:i,l=n.boundary,s=n.rootBoundary,p=n.altBoundary,d=n.padding,v=n.tether,m=v===void 0?!0:v,y=n.tetherOffset,g=y===void 0?0:y,w=ke(t,{boundary:l,rootBoundary:s,padding:d,altBoundary:p}),h=X(t.placement),O=Ae(t.placement),c=!O,b=St(h),A=js(b),P=t.modifiersData.popperOffsets,E=t.rects.reference,_=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(P){if(a){var B,N=b==="y"?W:z,Z=b==="y"?G:V,$=b==="y"?"height":"width",F=P[b],T=F+w[N],L=F-w[Z],fe=m?-_[$]/2:0,Pe=O===we?E[$]:_[$],Se=O===we?-_[$]:-E[$],ze=t.elements.arrow,ce=m&&ze?Pt(ze):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qn(),Ke=Q[N],Re=Q[Z],ye=Be(0,E[$],ce[$]),ar=c?E[$]/2-fe-ye-Ke-I.mainAxis:Pe-ye-Ke-I.mainAxis,sr=c?-E[$]/2+fe+ye+Re+I.mainAxis:Se+ye+Re+I.mainAxis,ot=t.elements.arrow&&We(t.elements.arrow),ir=ot?b==="y"?ot.clientTop||0:ot.clientLeft||0:0,$t=(B=M?.[b])!=null?B:0,lr=F+ar-$t-ir,ur=F+sr-$t,Bt=Be(m?et(T,lr):T,F,m?de(L,ur):L);P[b]=Bt,j[b]=Bt-F}if(u){var Lt,fr=b==="x"?W:z,cr=b==="x"?G:V,pe=P[A],qe=A==="y"?"height":"width",Ft=pe+w[fr],Dt=pe-w[cr],at=[W,z].indexOf(h)!==-1,Nt=(Lt=M?.[A])!=null?Lt:0,kt=at?Ft:pe-E[qe]-_[qe]-Nt+I.altAxis,Ht=at?pe+E[qe]+_[qe]-Nt-I.altAxis:Dt,Ut=m&&at?ss(kt,pe,Ht):Be(m?kt:Ft,pe,m?Ht:Dt);P[A]=Ut,j[A]=Ut-pe}t.modifiersData[r]=j}}var $s={name:"preventOverflow",enabled:!0,phase:"main",fn:Is,requiresIfExists:["offset"]};function Bs(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ls(e){return e===J(e)||!q(e)?Rt(e):Bs(e)}function Fs(e){var t=e.getBoundingClientRect(),n=Oe(t.width)/e.offsetWidth||1,r=Oe(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ds(e,t,n){n===void 0&&(n=!1);var r=q(t),o=q(t)&&Fs(t),a=ue(t),i=Ee(e,o),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Y(t)!=="body"||Mt(a))&&(u=Ls(t)),q(t)?(l=Ee(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=xt(a))),{x:i.left+u.scrollLeft-l.x,y:i.top+u.scrollTop-l.y,width:i.width,height:i.height}}function Ns(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(u){if(!n.has(u)){var l=t.get(u);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function ks(e){var t=Ns(e);return ts.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Hs(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Us(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var On={placement:"bottom",modifiers:[],strategy:"absolute"};function En(){for(var e=arguments.length,t=new Array(e),n=0;n({})},strategy:{type:String,values:qs,default:"absolute"}}),tr=oe({...Gs,...er,id:String,style:{type:x([String,Array,Object])},className:{type:x([String,Array,Object])},effect:{type:x(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:x([String,Array,Object])},popperStyle:{type:x([String,Array,Object])},referenceEl:{type:x(Object)},triggerTargetEl:{type:x(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...jn(["ariaLabel"])}),Vs={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Zs=(e,t)=>{const n=k(!1),r=k();return{focusStartRef:r,trapped:n,onFocusAfterReleased:s=>{var p;((p=s.detail)==null?void 0:p.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:s=>{e.visible&&!n.value&&(s.target&&(r.value=s.target),n.value=!0)},onFocusoutPrevented:s=>{e.trapping||(s.detail.focusReason==="pointer"&&s.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Js=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,a={placement:n,strategy:r,...o,modifiers:[...Ys(e),...t]};return Qs(a,o?.modifiers),a},Xs=e=>{if(Ie)return Cn(e)};function Ys(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Qs(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const ei=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const s=ti(l);Object.assign(i.value,s)},requires:["computeStyles"]},o=C(()=>{const{onFirstUpdate:l,placement:s,strategy:p,modifiers:d}=f(n);return{onFirstUpdate:l,placement:s||"bottom",strategy:p||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),a=Tr(),i=k({styles:{popper:{position:f(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return H(o,l=>{const s=f(a);s&&s.setOptions(l)},{deep:!0}),H([e,t],([l,s])=>{u(),!(!l||!s)&&(a.value=Ks(l,s,f(o)))}),He(()=>{u()}),{state:C(()=>{var l;return{...((l=f(a))==null?void 0:l.state)||{}}}),styles:C(()=>f(i).styles),attributes:C(()=>f(i).attributes),update:()=>{var l;return(l=f(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=f(a))==null?void 0:l.forceUpdate()},instanceRef:C(()=>f(a))}};function ti(e){const t=Object.keys(e.elements),n=zt(t.map(o=>[o,e.styles[o]||{}])),r=zt(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const ni=0,ri=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=me(Et,void 0),a=k(),i=C(()=>e.arrowOffset),u=C(()=>({name:"eventListeners",enabled:!!e.visible})),l=C(()=>{var h;const O=f(a),c=(h=f(i))!=null?h:ni;return{name:"arrow",enabled:!Ra(O),options:{element:O,padding:c}}}),s=C(()=>({onFirstUpdate:()=>{y()},...Js(e,[f(l),f(u)])})),p=C(()=>Xs(e.referenceEl)||f(r)),{attributes:d,state:v,styles:m,update:y,forceUpdate:g,instanceRef:w}=ei(p,n,s);return H(w,h=>t.value=h,{flush:"sync"}),nt(()=>{H(()=>{var h;return(h=f(p))==null?void 0:h.getBoundingClientRect()},()=>{y()})}),{attributes:d,arrowRef:a,contentRef:n,instanceRef:w,state:v,styles:m,role:o,forceUpdate:g,update:y}},oi=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=Or(),a=ge("popper"),i=C(()=>f(t).popper),u=k(Kt(e.zIndex)?e.zIndex:o()),l=C(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),s=C(()=>[{zIndex:f(u)},f(n).popper,e.popperStyle||{}]),p=C(()=>r.value==="dialog"?"false":void 0),d=C(()=>f(n).arrow||{});return{ariaModal:p,arrowStyle:d,contentAttrs:i,contentClass:l,contentStyle:s,contentZIndex:u,updateZIndex:()=>{u.value=Kt(e.zIndex)?e.zIndex:o()}}},ai=D({name:"ElPopperContent"}),si=D({...ai,props:tr,emits:Vs,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:a,onFocusAfterReleased:i,onFocusAfterTrapped:u,onFocusInTrap:l,onFocusoutPrevented:s,onReleaseRequested:p}=Zs(r,n),{attributes:d,arrowRef:v,contentRef:m,styles:y,instanceRef:g,role:w,update:h}=ri(r),{ariaModal:O,arrowStyle:c,contentAttrs:b,contentClass:A,contentStyle:P,updateZIndex:E}=oi(r,{styles:y,attributes:d,role:w}),_=me(Jt,void 0);Fe(Dn,{arrowStyle:c,arrowRef:v}),_&&Fe(Jt,{..._,addInputId:pt,removeInputId:pt});let R;const I=(j=!0)=>{h(),j&&E()},M=()=>{I(!1),r.visible&&r.focusOnShow?a.value=!0:r.visible===!1&&(a.value=!1)};return nt(()=>{H(()=>r.triggerTargetEl,(j,B)=>{R?.(),R=void 0;const N=f(j||m.value),Z=f(B||m.value);je(N)&&(R=H([w,()=>r.ariaLabel,O,()=>r.id],$=>{["role","aria-label","aria-modal","id"].forEach((F,T)=>{Pn($[T])?N.removeAttribute(F):N.setAttribute(F,$[T])})},{immediate:!0})),Z!==N&&je(Z)&&["role","aria-label","aria-modal","id"].forEach($=>{Z.removeAttribute($)})},{immediate:!0}),H(()=>r.visible,M,{immediate:!0})}),He(()=>{R?.(),R=void 0}),t({popperContentRef:m,popperInstanceRef:g,updatePopper:I,contentStyle:P}),(j,B)=>(U(),De("div",Tt({ref_key:"contentRef",ref:m},f(b),{style:f(P),class:f(A),tabindex:"-1",onMouseenter:N=>j.$emit("mouseenter",N),onMouseleave:N=>j.$emit("mouseleave",N)}),[ve(f(Lr),{trapped:f(a),"trap-on-focus-in":!0,"focus-trap-el":f(m),"focus-start-el":f(o),onFocusAfterTrapped:f(u),onFocusAfterReleased:f(i),onFocusin:f(l),onFocusoutPrevented:f(s),onReleaseRequested:f(p)},{default:K(()=>[ne(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var ii=le(si,[["__file","content.vue"]]);const li=Ot(Ia),It=Symbol("elTooltip"),nr=oe({...kr,...tr,appendTo:{type:Fr.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:x(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...jn(["ariaLabel"])}),rr=oe({...kn,disabled:Boolean,trigger:{type:x([String,Array]),default:"hover"},triggerKeys:{type:x(Array),default:()=>[st.enter,st.numpadEnter,st.space]}}),ui=Sn({type:x(Boolean),default:null}),fi=Sn({type:x(Function)}),ci=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:ui,[n]:fi};return{useModelToggle:({indicator:i,toggleReason:u,shouldHideWhenRouteChanges:l,shouldProceed:s,onShow:p,onHide:d})=>{const v=Er(),{emit:m}=v,y=v.props,g=C(()=>Ge(y[n])),w=C(()=>y[e]===null),h=E=>{i.value!==!0&&(i.value=!0,u&&(u.value=E),Ge(p)&&p(E))},O=E=>{i.value!==!1&&(i.value=!1,u&&(u.value=E),Ge(d)&&d(E))},c=E=>{if(y.disabled===!0||Ge(s)&&!s())return;const _=g.value&&Ie;_&&m(t,!0),(w.value||!_)&&h(E)},b=E=>{if(y.disabled===!0||!Ie)return;const _=g.value&&Ie;_&&m(t,!1),(w.value||!_)&&O(E)},A=E=>{Rn(E)&&(y.disabled&&E?g.value&&m(t,!1):i.value!==E&&(E?h():O()))},P=()=>{i.value?b():c()};return H(()=>y[e],A),l&&v.appContext.config.globalProperties.$route!==void 0&&H(()=>({...v.proxy.$route}),()=>{l.value&&i.value&&b()}),nt(()=>{A(y[e])}),{hide:b,show:c,toggle:P,hasUpdateHandler:g}},useModelToggleProps:o,useModelToggleEmits:r}},{useModelToggleProps:pi,useModelToggleEmits:di,useModelToggle:vi}=ci("visible"),gi=oe({...Nn,...pi,...nr,...rr,...er,showArrow:{type:Boolean,default:!0}}),mi=[...di,"before-show","before-hide","show","hide","open","close"],yi=(e,t)=>Ar(e)?e.includes(t):e===t,be=(e,t,n)=>r=>{yi(f(e),t)&&n(r)},ee=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const a=e?.(o);if(n===!1||!a)return t?.(o)},ki=e=>t=>t.pointerType==="mouse"?e(t):void 0,bi=D({name:"ElTooltipTrigger"}),hi=D({...bi,props:rr,setup(e,{expose:t}){const n=e,r=ge("tooltip"),{controlled:o,id:a,open:i,onOpen:u,onClose:l,onToggle:s}=me(It,void 0),p=k(null),d=()=>{if(f(o)||n.disabled)return!0},v=Me(n,"trigger"),m=ee(d,be(v,"hover",u)),y=ee(d,be(v,"hover",l)),g=ee(d,be(v,"click",b=>{b.button===0&&s(b)})),w=ee(d,be(v,"focus",u)),h=ee(d,be(v,"focus",l)),O=ee(d,be(v,"contextmenu",b=>{b.preventDefault(),s(b)})),c=ee(d,b=>{const{code:A}=b;n.triggerKeys.includes(A)&&(b.preventDefault(),s(b))});return t({triggerRef:p}),(b,A)=>(U(),te(f(Wa),{id:f(a),"virtual-ref":b.virtualRef,open:f(i),"virtual-triggering":b.virtualTriggering,class:ae(f(r).e("trigger")),onBlur:f(h),onClick:f(g),onContextmenu:f(O),onFocus:f(w),onMouseenter:f(m),onMouseleave:f(y),onKeydown:f(c)},{default:K(()=>[ne(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var wi=le(hi,[["__file","trigger.vue"]]);const or=()=>{const e=Cr(),t=Ur(),n=C(()=>`${e.value}-popper-container-${t.prefix}`),r=C(()=>`#${n.value}`);return{id:n,selector:r}},Ti=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Oi=()=>{const{id:e,selector:t}=or();return _r(()=>{Ie&&(document.body.querySelector(t.value)||Ti(e.value))}),{id:e,selector:t}},Ei=D({name:"ElTooltipContent",inheritAttrs:!1}),Ai=D({...Ei,props:nr,setup(e,{expose:t}){const n=e,{selector:r}=or(),o=ge("tooltip"),a=k(),i=Pr(()=>{var T;return(T=a.value)==null?void 0:T.popperContentRef});let u;const{controlled:l,id:s,open:p,trigger:d,onClose:v,onOpen:m,onShow:y,onHide:g,onBeforeShow:w,onBeforeHide:h}=me(It,void 0),O=C(()=>n.transition||`${o.namespace.value}-fade-in-linear`),c=C(()=>n.persistent);He(()=>{u?.()});const b=C(()=>f(c)?!0:f(p)),A=C(()=>n.disabled?!1:f(p)),P=C(()=>n.appendTo||r.value),E=C(()=>{var T;return(T=n.style)!=null?T:{}}),_=k(!0),R=()=>{g(),F()&&Nr(document.body),_.value=!0},I=()=>{if(f(l))return!0},M=ee(I,()=>{n.enterable&&f(d)==="hover"&&m()}),j=ee(I,()=>{f(d)==="hover"&&v()}),B=()=>{var T,L;(L=(T=a.value)==null?void 0:T.updatePopper)==null||L.call(T),w?.()},N=()=>{h?.()},Z=()=>{y()},$=()=>{n.virtualTriggering||v()},F=T=>{var L;const fe=(L=a.value)==null?void 0:L.popperContentRef,Pe=T?.relatedTarget||document.activeElement;return fe?.contains(Pe)};return H(()=>f(p),T=>{T?(_.value=!1,u=Rr(i,()=>{if(f(l))return;f(d)!=="hover"&&v()})):u?.()},{flush:"post"}),H(()=>n.content,()=>{var T,L;(L=(T=a.value)==null?void 0:T.updatePopper)==null||L.call(T)}),t({contentRef:a,isFocusInsideContent:F}),(T,L)=>(U(),te(f(Dr),{disabled:!T.teleported,to:f(P)},{default:K(()=>[ve(xn,{name:f(O),onAfterLeave:R,onBeforeEnter:B,onAfterEnter:Z,onBeforeLeave:N},{default:K(()=>[f(b)?_n((U(),te(f(ii),Tt({key:0,id:f(s),ref_key:"contentRef",ref:a},T.$attrs,{"aria-label":T.ariaLabel,"aria-hidden":_.value,"boundaries-padding":T.boundariesPadding,"fallback-placements":T.fallbackPlacements,"gpu-acceleration":T.gpuAcceleration,offset:T.offset,placement:T.placement,"popper-options":T.popperOptions,"arrow-offset":T.arrowOffset,strategy:T.strategy,effect:T.effect,enterable:T.enterable,pure:T.pure,"popper-class":T.popperClass,"popper-style":[T.popperStyle,f(E)],"reference-el":T.referenceEl,"trigger-target-el":T.triggerTargetEl,visible:f(A),"z-index":T.zIndex,onMouseenter:f(M),onMouseleave:f(j),onBlur:$,onClose:f(v)}),{default:K(()=>[ne(T.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Sr,f(A)]]):he("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var _i=le(Ai,[["__file","content.vue"]]);const Ci=D({name:"ElTooltip"}),Pi=D({...Ci,props:gi,emits:mi,setup(e,{expose:t,emit:n}){const r=e;Oi();const o=ge("tooltip"),a=Wr(),i=k(),u=k(),l=()=>{var c;const b=f(i);b&&((c=b.popperInstanceRef)==null||c.update())},s=k(!1),p=k(),{show:d,hide:v,hasUpdateHandler:m}=vi({indicator:s,toggleReason:p}),{onOpen:y,onClose:g}=Hr({showAfter:Me(r,"showAfter"),hideAfter:Me(r,"hideAfter"),autoClose:Me(r,"autoClose"),open:d,close:v}),w=C(()=>Rn(r.visible)&&!m.value),h=C(()=>[o.b(),r.popperClass]);Fe(It,{controlled:w,id:a,open:xr(s),trigger:Me(r,"trigger"),onOpen:c=>{y(c)},onClose:c=>{g(c)},onToggle:c=>{f(s)?g(c):y(c)},onShow:()=>{n("show",p.value)},onHide:()=>{n("hide",p.value)},onBeforeShow:()=>{n("before-show",p.value)},onBeforeHide:()=>{n("before-hide",p.value)},updatePopper:l}),H(()=>r.disabled,c=>{c&&s.value&&(s.value=!1)});const O=c=>{var b;return(b=u.value)==null?void 0:b.isFocusInsideContent(c)};return Mr(()=>s.value&&v()),t({popperRef:i,contentRef:u,isFocusInsideContent:O,updatePopper:l,onOpen:y,onClose:g,hide:v}),(c,b)=>(U(),te(f(li),{ref_key:"popperRef",ref:i,role:c.role},{default:K(()=>[ve(wi,{disabled:c.disabled,trigger:c.trigger,"trigger-keys":c.triggerKeys,"virtual-ref":c.virtualRef,"virtual-triggering":c.virtualTriggering},{default:K(()=>[c.$slots.default?ne(c.$slots,"default",{key:0}):he("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ve(_i,{ref_key:"contentRef",ref:u,"aria-label":c.ariaLabel,"boundaries-padding":c.boundariesPadding,content:c.content,disabled:c.disabled,effect:c.effect,enterable:c.enterable,"fallback-placements":c.fallbackPlacements,"hide-after":c.hideAfter,"gpu-acceleration":c.gpuAcceleration,offset:c.offset,persistent:c.persistent,"popper-class":f(h),"popper-style":c.popperStyle,placement:c.placement,"popper-options":c.popperOptions,"arrow-offset":c.arrowOffset,pure:c.pure,"raw-content":c.rawContent,"reference-el":c.referenceEl,"trigger-target-el":c.triggerTargetEl,"show-after":c.showAfter,strategy:c.strategy,teleported:c.teleported,transition:c.transition,"virtual-triggering":c.virtualTriggering,"z-index":c.zIndex,"append-to":c.appendTo},{default:K(()=>[ne(c.$slots,"content",{},()=>[c.rawContent?(U(),De("span",{key:0,innerHTML:c.content},null,8,["innerHTML"])):(U(),De("span",{key:1},jr(c.content),1))]),c.showArrow?(U(),te(f(La),{key:0})):he("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Si=le(Pi,[["__file","tooltip.vue"]]);const Hi=Ot(Si),Ri=oe({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Ir},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),xi={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Mi=D({name:"ElTag"}),ji=D({...Mi,props:Ri,emits:xi,setup(e,{emit:t}){const n=e,r=zr(),o=ge("tag"),a=C(()=>{const{type:s,hit:p,effect:d,closable:v,round:m}=n;return[o.b(),o.is("closable",v),o.m(s||"primary"),o.m(r.value),o.m(d),o.is("hit",p),o.is("round",m)]}),i=s=>{t("close",s)},u=s=>{t("click",s)},l=s=>{var p,d,v;(v=(d=(p=s?.component)==null?void 0:p.subTree)==null?void 0:d.component)!=null&&v.bum&&(s.component.subTree.component.bum=null)};return(s,p)=>s.disableTransitions?(U(),De("span",{key:0,class:ae(f(a)),style:ct({backgroundColor:s.color}),onClick:u},[it("span",{class:ae(f(o).e("content"))},[ne(s.$slots,"default")],2),s.closable?(U(),te(f(Vt),{key:0,class:ae(f(o).e("close")),onClick:Gt(i,["stop"])},{default:K(()=>[ve(f(qt))]),_:1},8,["class","onClick"])):he("v-if",!0)],6)):(U(),te(xn,{key:1,name:`${f(o).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:l},{default:K(()=>[it("span",{class:ae(f(a)),style:ct({backgroundColor:s.color}),onClick:u},[it("span",{class:ae(f(o).e("content"))},[ne(s.$slots,"default")],2),s.closable?(U(),te(f(Vt),{key:0,class:ae(f(o).e("close")),onClick:Gt(i,["stop"])},{default:K(()=>[ve(f(qt))]),_:1},8,["class","onClick"])):he("v-if",!0)],6)]),_:3},8,["name"]))}});var Ii=le(ji,[["__file","tag.vue"]]);const Ui=Ot(Ii);export{Hi as E,ka as O,ie as S,It as T,un as U,Ui as a,rr as b,_t as c,ee as d,Kr as e,Gr as f,So as g,vt as h,Ni as i,Bn as j,$o as k,Fn as l,Ro as o,xa as r,Ri as t,nr as u,ki as w}; +import{c8 as tt,bM as _e,bO as pr,bK as ft,bL as ht,c9 as dr,bI as vr,bN as Xe,ca as wt,cb as Ye,cc as An,cd as Ce,ce as Wt,bJ as gr,b as oe,_ as le,a as D,z as k,k as C,r as ne,G as Fe,u as ge,y as me,J as He,c as De,o as U,i as ct,n as ae,g as f,d as x,a_ as pt,N as _n,cf as mr,U as yr,P as br,cg as hr,bU as wr,ab as ve,I as nt,F as H,aa as je,m as te,e as he,p as K,q as Tt,bA as Cn,X as Pn,a8 as Ie,as as Tr,b2 as zt,bi as Or,aQ as Kt,w as Ot,E as st,ch as Sn,H as Er,ac as Ge,aU as Rn,S as Ar,a1 as Me,bT as _r,ci as Cr,cj as Pr,T as xn,O as Sr,bz as Rr,bC as xr,ck as Mr,t as jr,aL as Ir,f as it,a2 as qt,a7 as Gt,L as Vt}from"./index-DpP8vbvu.js";import{c as Mn,a as $r,e as Br,u as jn}from"./index-BMdPKuCq.js";import{i as Zt,a as Lr,e as Fr,b as Dr,j as Nr}from"./vnode-DPqF99Zc.js";import{u as kr,a as Hr}from"./index-dQfRzLGT.js";import{f as Jt,g as Ur,e as Wr,a as zr}from"./index-D7KcZu8a.js";var dt=tt(_e,"WeakMap");function Kr(e){return e!=null&&Mn(e.length)&&!pr(e)}var qr=Object.prototype;function Gr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qr;return e===n}function Vr(e,t){for(var n=-1,r=Array(e);++nu))return!1;var s=a.get(e),p=a.get(t);if(s&&p)return s==t&&p==e;var d=-1,v=!0,m=n&aa?new Qe:void 0;for(a.set(e,t),a.set(t,e);++dn.role),l={triggerRef:r,popperInstanceRef:o,contentRef:a,referenceRef:i,role:u};return t(l),Fe(Et,l),(s,p)=>ne(s.$slots,"default")}});var Ia=le(ja,[["__file","popper.vue"]]);const $a=D({name:"ElPopperArrow",inheritAttrs:!1}),Ba=D({...$a,setup(e,{expose:t}){const n=ge("popper"),{arrowRef:r,arrowStyle:o}=me(Dn,void 0);return He(()=>{r.value=void 0}),t({arrowRef:r}),(a,i)=>(U(),De("span",{ref_key:"arrowRef",ref:r,class:ae(f(n).e("arrow")),style:ct(f(o)),"data-popper-arrow":""},null,6))}});var La=le(Ba,[["__file","arrow.vue"]]);const kn=oe({virtualRef:{type:x(Object)},virtualTriggering:Boolean,onMouseenter:{type:x(Function)},onMouseleave:{type:x(Function)},onClick:{type:x(Function)},onKeydown:{type:x(Function)},onFocus:{type:x(Function)},onBlur:{type:x(Function)},onContextmenu:{type:x(Function)},id:String,open:Boolean}),Hn=Symbol("elForwardRef"),Fa=e=>{Fe(Hn,{setForwardRef:n=>{e.value=n}})},Da=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Na="ElOnlyChild",ka=D({name:Na,setup(e,{slots:t,attrs:n}){var r;const o=me(Hn),a=Da((r=o?.setForwardRef)!=null?r:pt);return()=>{var i;const u=(i=t.default)==null?void 0:i.call(t,n);if(!u||u.length>1)return null;const l=Un(u);return l?_n(mr(l,n),[[a]]):null}}});function Un(e){if(!e)return null;const t=e;for(const n of t){if(yr(n))switch(n.type){case wr:continue;case hr:case"svg":return vn(n);case br:return Un(n.children);default:return n}return vn(n)}return null}function vn(e){const t=ge("only-child");return ve("span",{class:t.e("content")},[e])}const Ha=D({name:"ElPopperTrigger",inheritAttrs:!1}),Ua=D({...Ha,props:kn,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=me(Et,void 0);Fa(o);const a=C(()=>u.value?n.id:void 0),i=C(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),u=C(()=>{if(r&&r.value!=="tooltip")return r.value}),l=C(()=>u.value?`${n.open}`:void 0);let s;const p=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return nt(()=>{H(()=>n.virtualRef,d=>{d&&(o.value=Cn(d))},{immediate:!0}),H(o,(d,v)=>{s?.(),s=void 0,je(d)&&(p.forEach(m=>{var y;const g=n[m];g&&(d.addEventListener(m.slice(2).toLowerCase(),g),(y=v?.removeEventListener)==null||y.call(v,m.slice(2).toLowerCase(),g))}),Zt(d)&&(s=H([a,i,u,l],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((y,g)=>{Pn(m[g])?d.removeAttribute(y):d.setAttribute(y,m[g])})},{immediate:!0}))),je(v)&&Zt(v)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>v.removeAttribute(m))},{immediate:!0})}),He(()=>{if(s?.(),s=void 0,o.value&&je(o.value)){const d=o.value;p.forEach(v=>{const m=n[v];m&&d.removeEventListener(v.slice(2).toLowerCase(),m)}),o.value=void 0}}),t({triggerRef:o}),(d,v)=>d.virtualTriggering?he("v-if",!0):(U(),te(f(ka),Tt({key:0},d.$attrs,{"aria-controls":f(a),"aria-describedby":f(i),"aria-expanded":f(l),"aria-haspopup":f(u)}),{default:K(()=>[ne(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Wa=le(Ua,[["__file","trigger.vue"]]),W="top",G="bottom",V="right",z="left",At="auto",Ue=[W,G,V,z],we="start",Ne="end",za="clippingParents",Wn="viewport",xe="popper",Ka="reference",gn=Ue.reduce(function(e,t){return e.concat([t+"-"+we,t+"-"+Ne])},[]),_t=[].concat(Ue,[At]).reduce(function(e,t){return e.concat([t,t+"-"+we,t+"-"+Ne])},[]),qa="beforeRead",Ga="read",Va="afterRead",Za="beforeMain",Ja="main",Xa="afterMain",Ya="beforeWrite",Qa="write",es="afterWrite",ts=[qa,Ga,Va,Za,Ja,Xa,Ya,Qa,es];function Y(e){return e?(e.nodeName||"").toLowerCase():null}function J(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Te(e){var t=J(e).Element;return e instanceof t||e instanceof Element}function q(e){var t=J(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ct(e){if(typeof ShadowRoot>"u")return!1;var t=J(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ns(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!q(a)||!Y(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var u=o[i];u===!1?a.removeAttribute(i):a.setAttribute(i,u===!0?"":u)}))})}function rs(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=i.reduce(function(l,s){return l[s]="",l},{});!q(o)||!Y(o)||(Object.assign(o.style,u),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}var zn={name:"applyStyles",enabled:!0,phase:"write",fn:ns,effect:rs,requires:["computeStyles"]};function X(e){return e.split("-")[0]}var de=Math.max,et=Math.min,Oe=Math.round;function Ee(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(q(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(r=Oe(n.width)/i||1),a>0&&(o=Oe(n.height)/a||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Pt(e){var t=Ee(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Kn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ct(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return J(e).getComputedStyle(e)}function os(e){return["table","td","th"].indexOf(Y(e))>=0}function ue(e){return((Te(e)?e.ownerDocument:e.document)||window.document).documentElement}function rt(e){return Y(e)==="html"?e:e.assignedSlot||e.parentNode||(Ct(e)?e.host:null)||ue(e)}function mn(e){return!q(e)||re(e).position==="fixed"?null:e.offsetParent}function as(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&q(e)){var r=re(e);if(r.position==="fixed")return null}var o=rt(e);for(Ct(o)&&(o=o.host);q(o)&&["html","body"].indexOf(Y(o))<0;){var a=re(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function We(e){for(var t=J(e),n=mn(e);n&&os(n)&&re(n).position==="static";)n=mn(n);return n&&(Y(n)==="html"||Y(n)==="body"&&re(n).position==="static")?t:n||as(e)||t}function St(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Be(e,t,n){return de(e,et(t,n))}function ss(e,t,n){var r=Be(e,t,n);return r>n?n:r}function qn(){return{top:0,right:0,bottom:0,left:0}}function Gn(e){return Object.assign({},qn(),e)}function Vn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var is=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Gn(typeof e!="number"?e:Vn(e,Ue))};function ls(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,u=X(n.placement),l=St(u),s=[z,V].indexOf(u)>=0,p=s?"height":"width";if(!(!a||!i)){var d=is(o.padding,n),v=Pt(a),m=l==="y"?W:z,y=l==="y"?G:V,g=n.rects.reference[p]+n.rects.reference[l]-i[l]-n.rects.popper[p],w=i[l]-n.rects.reference[l],h=We(a),O=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,c=g/2-w/2,b=d[m],A=O-v[p]-d[y],P=O/2-v[p]/2+c,E=Be(b,P,A),_=l;n.modifiersData[r]=(t={},t[_]=E,t.centerOffset=E-P,t)}}function us(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!Kn(t.elements.popper,o)||(t.elements.arrow=o))}var fs={name:"arrow",enabled:!0,phase:"main",fn:ls,effect:us,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ae(e){return e.split("-")[1]}var cs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ps(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Oe(t*o)/o||0,y:Oe(n*o)/o||0}}function yn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,u=e.position,l=e.gpuAcceleration,s=e.adaptive,p=e.roundOffsets,d=e.isFixed,v=i.x,m=v===void 0?0:v,y=i.y,g=y===void 0?0:y,w=typeof p=="function"?p({x:m,y:g}):{x:m,y:g};m=w.x,g=w.y;var h=i.hasOwnProperty("x"),O=i.hasOwnProperty("y"),c=z,b=W,A=window;if(s){var P=We(n),E="clientHeight",_="clientWidth";if(P===J(n)&&(P=ue(n),re(P).position!=="static"&&u==="absolute"&&(E="scrollHeight",_="scrollWidth")),P=P,o===W||(o===z||o===V)&&a===Ne){b=G;var R=d&&P===A&&A.visualViewport?A.visualViewport.height:P[E];g-=R-r.height,g*=l?1:-1}if(o===z||(o===W||o===G)&&a===Ne){c=V;var I=d&&P===A&&A.visualViewport?A.visualViewport.width:P[_];m-=I-r.width,m*=l?1:-1}}var M=Object.assign({position:u},s&&cs),j=p===!0?ps({x:m,y:g}):{x:m,y:g};if(m=j.x,g=j.y,l){var B;return Object.assign({},M,(B={},B[b]=O?"0":"",B[c]=h?"0":"",B.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",B))}return Object.assign({},M,(t={},t[b]=O?g+"px":"",t[c]=h?m+"px":"",t.transform="",t))}function ds(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,u=n.roundOffsets,l=u===void 0?!0:u,s={placement:X(t.placement),variation:Ae(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yn(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yn(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Zn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ds,data:{}},Ze={passive:!0};function vs(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,u=i===void 0?!0:i,l=J(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&s.forEach(function(p){p.addEventListener("scroll",n.update,Ze)}),u&&l.addEventListener("resize",n.update,Ze),function(){a&&s.forEach(function(p){p.removeEventListener("scroll",n.update,Ze)}),u&&l.removeEventListener("resize",n.update,Ze)}}var Jn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vs,data:{}},gs={left:"right",right:"left",bottom:"top",top:"bottom"};function Je(e){return e.replace(/left|right|bottom|top/g,function(t){return gs[t]})}var ms={start:"end",end:"start"};function bn(e){return e.replace(/start|end/g,function(t){return ms[t]})}function Rt(e){var t=J(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xt(e){return Ee(ue(e)).left+Rt(e).scrollLeft}function ys(e){var t=J(e),n=ue(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,u=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,u=r.offsetTop)),{width:o,height:a,x:i+xt(e),y:u}}function bs(e){var t,n=ue(e),r=Rt(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=de(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=de(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+xt(e),l=-r.scrollTop;return re(o||n).direction==="rtl"&&(u+=de(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:u,y:l}}function Mt(e){var t=re(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Xn(e){return["html","body","#document"].indexOf(Y(e))>=0?e.ownerDocument.body:q(e)&&Mt(e)?e:Xn(rt(e))}function Le(e,t){var n;t===void 0&&(t=[]);var r=Xn(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=J(r),i=o?[a].concat(a.visualViewport||[],Mt(r)?r:[]):r,u=t.concat(i);return o?u:u.concat(Le(rt(i)))}function bt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hs(e){var t=Ee(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function hn(e,t){return t===Wn?bt(ys(e)):Te(t)?hs(t):bt(bs(ue(e)))}function ws(e){var t=Le(rt(e)),n=["absolute","fixed"].indexOf(re(e).position)>=0,r=n&&q(e)?We(e):e;return Te(r)?t.filter(function(o){return Te(o)&&Kn(o,r)&&Y(o)!=="body"}):[]}function Ts(e,t,n){var r=t==="clippingParents"?ws(e):[].concat(t),o=[].concat(r,[n]),a=o[0],i=o.reduce(function(u,l){var s=hn(e,l);return u.top=de(s.top,u.top),u.right=et(s.right,u.right),u.bottom=et(s.bottom,u.bottom),u.left=de(s.left,u.left),u},hn(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Yn(e){var t=e.reference,n=e.element,r=e.placement,o=r?X(r):null,a=r?Ae(r):null,i=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,l;switch(o){case W:l={x:i,y:t.y-n.height};break;case G:l={x:i,y:t.y+t.height};break;case V:l={x:t.x+t.width,y:u};break;case z:l={x:t.x-n.width,y:u};break;default:l={x:t.x,y:t.y}}var s=o?St(o):null;if(s!=null){var p=s==="y"?"height":"width";switch(a){case we:l[s]=l[s]-(t[p]/2-n[p]/2);break;case Ne:l[s]=l[s]+(t[p]/2-n[p]/2);break}}return l}function ke(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.boundary,i=a===void 0?za:a,u=n.rootBoundary,l=u===void 0?Wn:u,s=n.elementContext,p=s===void 0?xe:s,d=n.altBoundary,v=d===void 0?!1:d,m=n.padding,y=m===void 0?0:m,g=Gn(typeof y!="number"?y:Vn(y,Ue)),w=p===xe?Ka:xe,h=e.rects.popper,O=e.elements[v?w:p],c=Ts(Te(O)?O:O.contextElement||ue(e.elements.popper),i,l),b=Ee(e.elements.reference),A=Yn({reference:b,element:h,placement:o}),P=bt(Object.assign({},h,A)),E=p===xe?P:b,_={top:c.top-E.top+g.top,bottom:E.bottom-c.bottom+g.bottom,left:c.left-E.left+g.left,right:E.right-c.right+g.right},R=e.modifiersData.offset;if(p===xe&&R){var I=R[o];Object.keys(_).forEach(function(M){var j=[V,G].indexOf(M)>=0?1:-1,B=[W,G].indexOf(M)>=0?"y":"x";_[M]+=I[B]*j})}return _}function Os(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,u=n.flipVariations,l=n.allowedAutoPlacements,s=l===void 0?_t:l,p=Ae(r),d=p?u?gn:gn.filter(function(y){return Ae(y)===p}):Ue,v=d.filter(function(y){return s.indexOf(y)>=0});v.length===0&&(v=d);var m=v.reduce(function(y,g){return y[g]=ke(e,{placement:g,boundary:o,rootBoundary:a,padding:i})[X(g)],y},{});return Object.keys(m).sort(function(y,g){return m[y]-m[g]})}function Es(e){if(X(e)===At)return[];var t=Je(e);return[bn(e),t,bn(t)]}function As(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,u=i===void 0?!0:i,l=n.fallbackPlacements,s=n.padding,p=n.boundary,d=n.rootBoundary,v=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,g=n.allowedAutoPlacements,w=t.options.placement,h=X(w),O=h===w,c=l||(O||!y?[Je(w)]:Es(w)),b=[w].concat(c).reduce(function(ce,Q){return ce.concat(X(Q)===At?Os(t,{placement:Q,boundary:p,rootBoundary:d,padding:s,flipVariations:y,allowedAutoPlacements:g}):Q)},[]),A=t.rects.reference,P=t.rects.popper,E=new Map,_=!0,R=b[0],I=0;I=0,Z=N?"width":"height",$=ke(t,{placement:M,boundary:p,rootBoundary:d,altBoundary:v,padding:s}),F=N?B?V:z:B?G:W;A[Z]>P[Z]&&(F=Je(F));var T=Je(F),L=[];if(a&&L.push($[j]<=0),u&&L.push($[F]<=0,$[T]<=0),L.every(function(ce){return ce})){R=M,_=!1;break}E.set(M,L)}if(_)for(var fe=y?3:1,Pe=function(ce){var Q=b.find(function(Ke){var Re=E.get(Ke);if(Re)return Re.slice(0,ce).every(function(ye){return ye})});if(Q)return R=Q,"break"},Se=fe;Se>0;Se--){var ze=Pe(Se);if(ze==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}var _s={name:"flip",enabled:!0,phase:"main",fn:As,requiresIfExists:["offset"],data:{_skip:!1}};function wn(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tn(e){return[W,V,G,z].some(function(t){return e[t]>=0})}function Cs(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=ke(t,{elementContext:"reference"}),u=ke(t,{altBoundary:!0}),l=wn(i,r),s=wn(u,o,a),p=Tn(l),d=Tn(s);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:p,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":d})}var Ps={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cs};function Ss(e,t,n){var r=X(e),o=[z,W].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],u=a[1];return i=i||0,u=(u||0)*o,[z,V].indexOf(r)>=0?{x:u,y:i}:{x:i,y:u}}function Rs(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=_t.reduce(function(p,d){return p[d]=Ss(d,t.rects,a),p},{}),u=i[t.placement],l=u.x,s=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=i}var xs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rs};function Ms(e){var t=e.state,n=e.name;t.modifiersData[n]=Yn({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Qn={name:"popperOffsets",enabled:!0,phase:"read",fn:Ms,data:{}};function js(e){return e==="x"?"y":"x"}function Is(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,u=i===void 0?!1:i,l=n.boundary,s=n.rootBoundary,p=n.altBoundary,d=n.padding,v=n.tether,m=v===void 0?!0:v,y=n.tetherOffset,g=y===void 0?0:y,w=ke(t,{boundary:l,rootBoundary:s,padding:d,altBoundary:p}),h=X(t.placement),O=Ae(t.placement),c=!O,b=St(h),A=js(b),P=t.modifiersData.popperOffsets,E=t.rects.reference,_=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(P){if(a){var B,N=b==="y"?W:z,Z=b==="y"?G:V,$=b==="y"?"height":"width",F=P[b],T=F+w[N],L=F-w[Z],fe=m?-_[$]/2:0,Pe=O===we?E[$]:_[$],Se=O===we?-_[$]:-E[$],ze=t.elements.arrow,ce=m&&ze?Pt(ze):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qn(),Ke=Q[N],Re=Q[Z],ye=Be(0,E[$],ce[$]),ar=c?E[$]/2-fe-ye-Ke-I.mainAxis:Pe-ye-Ke-I.mainAxis,sr=c?-E[$]/2+fe+ye+Re+I.mainAxis:Se+ye+Re+I.mainAxis,ot=t.elements.arrow&&We(t.elements.arrow),ir=ot?b==="y"?ot.clientTop||0:ot.clientLeft||0:0,$t=(B=M?.[b])!=null?B:0,lr=F+ar-$t-ir,ur=F+sr-$t,Bt=Be(m?et(T,lr):T,F,m?de(L,ur):L);P[b]=Bt,j[b]=Bt-F}if(u){var Lt,fr=b==="x"?W:z,cr=b==="x"?G:V,pe=P[A],qe=A==="y"?"height":"width",Ft=pe+w[fr],Dt=pe-w[cr],at=[W,z].indexOf(h)!==-1,Nt=(Lt=M?.[A])!=null?Lt:0,kt=at?Ft:pe-E[qe]-_[qe]-Nt+I.altAxis,Ht=at?pe+E[qe]+_[qe]-Nt-I.altAxis:Dt,Ut=m&&at?ss(kt,pe,Ht):Be(m?kt:Ft,pe,m?Ht:Dt);P[A]=Ut,j[A]=Ut-pe}t.modifiersData[r]=j}}var $s={name:"preventOverflow",enabled:!0,phase:"main",fn:Is,requiresIfExists:["offset"]};function Bs(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ls(e){return e===J(e)||!q(e)?Rt(e):Bs(e)}function Fs(e){var t=e.getBoundingClientRect(),n=Oe(t.width)/e.offsetWidth||1,r=Oe(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ds(e,t,n){n===void 0&&(n=!1);var r=q(t),o=q(t)&&Fs(t),a=ue(t),i=Ee(e,o),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Y(t)!=="body"||Mt(a))&&(u=Ls(t)),q(t)?(l=Ee(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=xt(a))),{x:i.left+u.scrollLeft-l.x,y:i.top+u.scrollTop-l.y,width:i.width,height:i.height}}function Ns(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(u){if(!n.has(u)){var l=t.get(u);l&&o(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function ks(e){var t=Ns(e);return ts.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Hs(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Us(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var On={placement:"bottom",modifiers:[],strategy:"absolute"};function En(){for(var e=arguments.length,t=new Array(e),n=0;n({})},strategy:{type:String,values:qs,default:"absolute"}}),tr=oe({...Gs,...er,id:String,style:{type:x([String,Array,Object])},className:{type:x([String,Array,Object])},effect:{type:x(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:x([String,Array,Object])},popperStyle:{type:x([String,Array,Object])},referenceEl:{type:x(Object)},triggerTargetEl:{type:x(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...jn(["ariaLabel"])}),Vs={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Zs=(e,t)=>{const n=k(!1),r=k();return{focusStartRef:r,trapped:n,onFocusAfterReleased:s=>{var p;((p=s.detail)==null?void 0:p.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:s=>{e.visible&&!n.value&&(s.target&&(r.value=s.target),n.value=!0)},onFocusoutPrevented:s=>{e.trapping||(s.detail.focusReason==="pointer"&&s.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Js=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,a={placement:n,strategy:r,...o,modifiers:[...Ys(e),...t]};return Qs(a,o?.modifiers),a},Xs=e=>{if(Ie)return Cn(e)};function Ys(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Qs(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const ei=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const s=ti(l);Object.assign(i.value,s)},requires:["computeStyles"]},o=C(()=>{const{onFirstUpdate:l,placement:s,strategy:p,modifiers:d}=f(n);return{onFirstUpdate:l,placement:s||"bottom",strategy:p||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),a=Tr(),i=k({styles:{popper:{position:f(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return H(o,l=>{const s=f(a);s&&s.setOptions(l)},{deep:!0}),H([e,t],([l,s])=>{u(),!(!l||!s)&&(a.value=Ks(l,s,f(o)))}),He(()=>{u()}),{state:C(()=>{var l;return{...((l=f(a))==null?void 0:l.state)||{}}}),styles:C(()=>f(i).styles),attributes:C(()=>f(i).attributes),update:()=>{var l;return(l=f(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=f(a))==null?void 0:l.forceUpdate()},instanceRef:C(()=>f(a))}};function ti(e){const t=Object.keys(e.elements),n=zt(t.map(o=>[o,e.styles[o]||{}])),r=zt(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}const ni=0,ri=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=me(Et,void 0),a=k(),i=C(()=>e.arrowOffset),u=C(()=>({name:"eventListeners",enabled:!!e.visible})),l=C(()=>{var h;const O=f(a),c=(h=f(i))!=null?h:ni;return{name:"arrow",enabled:!Ra(O),options:{element:O,padding:c}}}),s=C(()=>({onFirstUpdate:()=>{y()},...Js(e,[f(l),f(u)])})),p=C(()=>Xs(e.referenceEl)||f(r)),{attributes:d,state:v,styles:m,update:y,forceUpdate:g,instanceRef:w}=ei(p,n,s);return H(w,h=>t.value=h,{flush:"sync"}),nt(()=>{H(()=>{var h;return(h=f(p))==null?void 0:h.getBoundingClientRect()},()=>{y()})}),{attributes:d,arrowRef:a,contentRef:n,instanceRef:w,state:v,styles:m,role:o,forceUpdate:g,update:y}},oi=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=Or(),a=ge("popper"),i=C(()=>f(t).popper),u=k(Kt(e.zIndex)?e.zIndex:o()),l=C(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),s=C(()=>[{zIndex:f(u)},f(n).popper,e.popperStyle||{}]),p=C(()=>r.value==="dialog"?"false":void 0),d=C(()=>f(n).arrow||{});return{ariaModal:p,arrowStyle:d,contentAttrs:i,contentClass:l,contentStyle:s,contentZIndex:u,updateZIndex:()=>{u.value=Kt(e.zIndex)?e.zIndex:o()}}},ai=D({name:"ElPopperContent"}),si=D({...ai,props:tr,emits:Vs,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:a,onFocusAfterReleased:i,onFocusAfterTrapped:u,onFocusInTrap:l,onFocusoutPrevented:s,onReleaseRequested:p}=Zs(r,n),{attributes:d,arrowRef:v,contentRef:m,styles:y,instanceRef:g,role:w,update:h}=ri(r),{ariaModal:O,arrowStyle:c,contentAttrs:b,contentClass:A,contentStyle:P,updateZIndex:E}=oi(r,{styles:y,attributes:d,role:w}),_=me(Jt,void 0);Fe(Dn,{arrowStyle:c,arrowRef:v}),_&&Fe(Jt,{..._,addInputId:pt,removeInputId:pt});let R;const I=(j=!0)=>{h(),j&&E()},M=()=>{I(!1),r.visible&&r.focusOnShow?a.value=!0:r.visible===!1&&(a.value=!1)};return nt(()=>{H(()=>r.triggerTargetEl,(j,B)=>{R?.(),R=void 0;const N=f(j||m.value),Z=f(B||m.value);je(N)&&(R=H([w,()=>r.ariaLabel,O,()=>r.id],$=>{["role","aria-label","aria-modal","id"].forEach((F,T)=>{Pn($[T])?N.removeAttribute(F):N.setAttribute(F,$[T])})},{immediate:!0})),Z!==N&&je(Z)&&["role","aria-label","aria-modal","id"].forEach($=>{Z.removeAttribute($)})},{immediate:!0}),H(()=>r.visible,M,{immediate:!0})}),He(()=>{R?.(),R=void 0}),t({popperContentRef:m,popperInstanceRef:g,updatePopper:I,contentStyle:P}),(j,B)=>(U(),De("div",Tt({ref_key:"contentRef",ref:m},f(b),{style:f(P),class:f(A),tabindex:"-1",onMouseenter:N=>j.$emit("mouseenter",N),onMouseleave:N=>j.$emit("mouseleave",N)}),[ve(f(Lr),{trapped:f(a),"trap-on-focus-in":!0,"focus-trap-el":f(m),"focus-start-el":f(o),onFocusAfterTrapped:f(u),onFocusAfterReleased:f(i),onFocusin:f(l),onFocusoutPrevented:f(s),onReleaseRequested:f(p)},{default:K(()=>[ne(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var ii=le(si,[["__file","content.vue"]]);const li=Ot(Ia),It=Symbol("elTooltip"),nr=oe({...kr,...tr,appendTo:{type:Fr.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:x(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...jn(["ariaLabel"])}),rr=oe({...kn,disabled:Boolean,trigger:{type:x([String,Array]),default:"hover"},triggerKeys:{type:x(Array),default:()=>[st.enter,st.numpadEnter,st.space]}}),ui=Sn({type:x(Boolean),default:null}),fi=Sn({type:x(Function)}),ci=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:ui,[n]:fi};return{useModelToggle:({indicator:i,toggleReason:u,shouldHideWhenRouteChanges:l,shouldProceed:s,onShow:p,onHide:d})=>{const v=Er(),{emit:m}=v,y=v.props,g=C(()=>Ge(y[n])),w=C(()=>y[e]===null),h=E=>{i.value!==!0&&(i.value=!0,u&&(u.value=E),Ge(p)&&p(E))},O=E=>{i.value!==!1&&(i.value=!1,u&&(u.value=E),Ge(d)&&d(E))},c=E=>{if(y.disabled===!0||Ge(s)&&!s())return;const _=g.value&&Ie;_&&m(t,!0),(w.value||!_)&&h(E)},b=E=>{if(y.disabled===!0||!Ie)return;const _=g.value&&Ie;_&&m(t,!1),(w.value||!_)&&O(E)},A=E=>{Rn(E)&&(y.disabled&&E?g.value&&m(t,!1):i.value!==E&&(E?h():O()))},P=()=>{i.value?b():c()};return H(()=>y[e],A),l&&v.appContext.config.globalProperties.$route!==void 0&&H(()=>({...v.proxy.$route}),()=>{l.value&&i.value&&b()}),nt(()=>{A(y[e])}),{hide:b,show:c,toggle:P,hasUpdateHandler:g}},useModelToggleProps:o,useModelToggleEmits:r}},{useModelToggleProps:pi,useModelToggleEmits:di,useModelToggle:vi}=ci("visible"),gi=oe({...Nn,...pi,...nr,...rr,...er,showArrow:{type:Boolean,default:!0}}),mi=[...di,"before-show","before-hide","show","hide","open","close"],yi=(e,t)=>Ar(e)?e.includes(t):e===t,be=(e,t,n)=>r=>{yi(f(e),t)&&n(r)},ee=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const a=e?.(o);if(n===!1||!a)return t?.(o)},ki=e=>t=>t.pointerType==="mouse"?e(t):void 0,bi=D({name:"ElTooltipTrigger"}),hi=D({...bi,props:rr,setup(e,{expose:t}){const n=e,r=ge("tooltip"),{controlled:o,id:a,open:i,onOpen:u,onClose:l,onToggle:s}=me(It,void 0),p=k(null),d=()=>{if(f(o)||n.disabled)return!0},v=Me(n,"trigger"),m=ee(d,be(v,"hover",u)),y=ee(d,be(v,"hover",l)),g=ee(d,be(v,"click",b=>{b.button===0&&s(b)})),w=ee(d,be(v,"focus",u)),h=ee(d,be(v,"focus",l)),O=ee(d,be(v,"contextmenu",b=>{b.preventDefault(),s(b)})),c=ee(d,b=>{const{code:A}=b;n.triggerKeys.includes(A)&&(b.preventDefault(),s(b))});return t({triggerRef:p}),(b,A)=>(U(),te(f(Wa),{id:f(a),"virtual-ref":b.virtualRef,open:f(i),"virtual-triggering":b.virtualTriggering,class:ae(f(r).e("trigger")),onBlur:f(h),onClick:f(g),onContextmenu:f(O),onFocus:f(w),onMouseenter:f(m),onMouseleave:f(y),onKeydown:f(c)},{default:K(()=>[ne(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var wi=le(hi,[["__file","trigger.vue"]]);const or=()=>{const e=Cr(),t=Ur(),n=C(()=>`${e.value}-popper-container-${t.prefix}`),r=C(()=>`#${n.value}`);return{id:n,selector:r}},Ti=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Oi=()=>{const{id:e,selector:t}=or();return _r(()=>{Ie&&(document.body.querySelector(t.value)||Ti(e.value))}),{id:e,selector:t}},Ei=D({name:"ElTooltipContent",inheritAttrs:!1}),Ai=D({...Ei,props:nr,setup(e,{expose:t}){const n=e,{selector:r}=or(),o=ge("tooltip"),a=k(),i=Pr(()=>{var T;return(T=a.value)==null?void 0:T.popperContentRef});let u;const{controlled:l,id:s,open:p,trigger:d,onClose:v,onOpen:m,onShow:y,onHide:g,onBeforeShow:w,onBeforeHide:h}=me(It,void 0),O=C(()=>n.transition||`${o.namespace.value}-fade-in-linear`),c=C(()=>n.persistent);He(()=>{u?.()});const b=C(()=>f(c)?!0:f(p)),A=C(()=>n.disabled?!1:f(p)),P=C(()=>n.appendTo||r.value),E=C(()=>{var T;return(T=n.style)!=null?T:{}}),_=k(!0),R=()=>{g(),F()&&Nr(document.body),_.value=!0},I=()=>{if(f(l))return!0},M=ee(I,()=>{n.enterable&&f(d)==="hover"&&m()}),j=ee(I,()=>{f(d)==="hover"&&v()}),B=()=>{var T,L;(L=(T=a.value)==null?void 0:T.updatePopper)==null||L.call(T),w?.()},N=()=>{h?.()},Z=()=>{y()},$=()=>{n.virtualTriggering||v()},F=T=>{var L;const fe=(L=a.value)==null?void 0:L.popperContentRef,Pe=T?.relatedTarget||document.activeElement;return fe?.contains(Pe)};return H(()=>f(p),T=>{T?(_.value=!1,u=Rr(i,()=>{if(f(l))return;f(d)!=="hover"&&v()})):u?.()},{flush:"post"}),H(()=>n.content,()=>{var T,L;(L=(T=a.value)==null?void 0:T.updatePopper)==null||L.call(T)}),t({contentRef:a,isFocusInsideContent:F}),(T,L)=>(U(),te(f(Dr),{disabled:!T.teleported,to:f(P)},{default:K(()=>[ve(xn,{name:f(O),onAfterLeave:R,onBeforeEnter:B,onAfterEnter:Z,onBeforeLeave:N},{default:K(()=>[f(b)?_n((U(),te(f(ii),Tt({key:0,id:f(s),ref_key:"contentRef",ref:a},T.$attrs,{"aria-label":T.ariaLabel,"aria-hidden":_.value,"boundaries-padding":T.boundariesPadding,"fallback-placements":T.fallbackPlacements,"gpu-acceleration":T.gpuAcceleration,offset:T.offset,placement:T.placement,"popper-options":T.popperOptions,"arrow-offset":T.arrowOffset,strategy:T.strategy,effect:T.effect,enterable:T.enterable,pure:T.pure,"popper-class":T.popperClass,"popper-style":[T.popperStyle,f(E)],"reference-el":T.referenceEl,"trigger-target-el":T.triggerTargetEl,visible:f(A),"z-index":T.zIndex,onMouseenter:f(M),onMouseleave:f(j),onBlur:$,onClose:f(v)}),{default:K(()=>[ne(T.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Sr,f(A)]]):he("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var _i=le(Ai,[["__file","content.vue"]]);const Ci=D({name:"ElTooltip"}),Pi=D({...Ci,props:gi,emits:mi,setup(e,{expose:t,emit:n}){const r=e;Oi();const o=ge("tooltip"),a=Wr(),i=k(),u=k(),l=()=>{var c;const b=f(i);b&&((c=b.popperInstanceRef)==null||c.update())},s=k(!1),p=k(),{show:d,hide:v,hasUpdateHandler:m}=vi({indicator:s,toggleReason:p}),{onOpen:y,onClose:g}=Hr({showAfter:Me(r,"showAfter"),hideAfter:Me(r,"hideAfter"),autoClose:Me(r,"autoClose"),open:d,close:v}),w=C(()=>Rn(r.visible)&&!m.value),h=C(()=>[o.b(),r.popperClass]);Fe(It,{controlled:w,id:a,open:xr(s),trigger:Me(r,"trigger"),onOpen:c=>{y(c)},onClose:c=>{g(c)},onToggle:c=>{f(s)?g(c):y(c)},onShow:()=>{n("show",p.value)},onHide:()=>{n("hide",p.value)},onBeforeShow:()=>{n("before-show",p.value)},onBeforeHide:()=>{n("before-hide",p.value)},updatePopper:l}),H(()=>r.disabled,c=>{c&&s.value&&(s.value=!1)});const O=c=>{var b;return(b=u.value)==null?void 0:b.isFocusInsideContent(c)};return Mr(()=>s.value&&v()),t({popperRef:i,contentRef:u,isFocusInsideContent:O,updatePopper:l,onOpen:y,onClose:g,hide:v}),(c,b)=>(U(),te(f(li),{ref_key:"popperRef",ref:i,role:c.role},{default:K(()=>[ve(wi,{disabled:c.disabled,trigger:c.trigger,"trigger-keys":c.triggerKeys,"virtual-ref":c.virtualRef,"virtual-triggering":c.virtualTriggering},{default:K(()=>[c.$slots.default?ne(c.$slots,"default",{key:0}):he("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ve(_i,{ref_key:"contentRef",ref:u,"aria-label":c.ariaLabel,"boundaries-padding":c.boundariesPadding,content:c.content,disabled:c.disabled,effect:c.effect,enterable:c.enterable,"fallback-placements":c.fallbackPlacements,"hide-after":c.hideAfter,"gpu-acceleration":c.gpuAcceleration,offset:c.offset,persistent:c.persistent,"popper-class":f(h),"popper-style":c.popperStyle,placement:c.placement,"popper-options":c.popperOptions,"arrow-offset":c.arrowOffset,pure:c.pure,"raw-content":c.rawContent,"reference-el":c.referenceEl,"trigger-target-el":c.triggerTargetEl,"show-after":c.showAfter,strategy:c.strategy,teleported:c.teleported,transition:c.transition,"virtual-triggering":c.virtualTriggering,"z-index":c.zIndex,"append-to":c.appendTo},{default:K(()=>[ne(c.$slots,"content",{},()=>[c.rawContent?(U(),De("span",{key:0,innerHTML:c.content},null,8,["innerHTML"])):(U(),De("span",{key:1},jr(c.content),1))]),c.showArrow?(U(),te(f(La),{key:0})):he("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Si=le(Pi,[["__file","tooltip.vue"]]);const Hi=Ot(Si),Ri=oe({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Ir},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),xi={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Mi=D({name:"ElTag"}),ji=D({...Mi,props:Ri,emits:xi,setup(e,{emit:t}){const n=e,r=zr(),o=ge("tag"),a=C(()=>{const{type:s,hit:p,effect:d,closable:v,round:m}=n;return[o.b(),o.is("closable",v),o.m(s||"primary"),o.m(r.value),o.m(d),o.is("hit",p),o.is("round",m)]}),i=s=>{t("close",s)},u=s=>{t("click",s)},l=s=>{var p,d,v;(v=(d=(p=s?.component)==null?void 0:p.subTree)==null?void 0:d.component)!=null&&v.bum&&(s.component.subTree.component.bum=null)};return(s,p)=>s.disableTransitions?(U(),De("span",{key:0,class:ae(f(a)),style:ct({backgroundColor:s.color}),onClick:u},[it("span",{class:ae(f(o).e("content"))},[ne(s.$slots,"default")],2),s.closable?(U(),te(f(Vt),{key:0,class:ae(f(o).e("close")),onClick:Gt(i,["stop"])},{default:K(()=>[ve(f(qt))]),_:1},8,["class","onClick"])):he("v-if",!0)],6)):(U(),te(xn,{key:1,name:`${f(o).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:l},{default:K(()=>[it("span",{class:ae(f(a)),style:ct({backgroundColor:s.color}),onClick:u},[it("span",{class:ae(f(o).e("content"))},[ne(s.$slots,"default")],2),s.closable?(U(),te(f(Vt),{key:0,class:ae(f(o).e("close")),onClick:Gt(i,["stop"])},{default:K(()=>[ve(f(qt))]),_:1},8,["class","onClick"])):he("v-if",!0)],6)]),_:3},8,["name"]))}});var Ii=le(ji,[["__file","tag.vue"]]);const Ui=Ot(Ii);export{Hi as E,ka as O,ie as S,It as T,un as U,Ui as a,rr as b,_t as c,ee as d,Kr as e,Gr as f,So as g,vt as h,Ni as i,Bn as j,$o as k,Fn as l,Ro as o,xa as r,Ri as t,nr as u,ki as w}; diff --git a/mail-worker/dist/assets/email-BtoX8In9.js b/mail-worker/dist/assets/email-BqixZxSP.js similarity index 77% rename from mail-worker/dist/assets/email-BtoX8In9.js rename to mail-worker/dist/assets/email-BqixZxSP.js index 71e0068..e5d3e16 100644 --- a/mail-worker/dist/assets/email-BtoX8In9.js +++ b/mail-worker/dist/assets/email-BqixZxSP.js @@ -1 +1 @@ -import{aH as l}from"./index-C-CeCRdr.js";const t=l("email",{state:()=>({deleteIds:0,starScroll:null,emailScroll:null,cancelStarEmailId:0,addStarEmailId:0,contentData:{email:null,delType:null,showStar:!0,showReply:!0},sendScroll:null}),persist:{pick:["contentData"]}});export{t as u}; +import{aH as l}from"./index-DpP8vbvu.js";const t=l("email",{state:()=>({deleteIds:0,starScroll:null,emailScroll:null,cancelStarEmailId:0,addStarEmailId:0,contentData:{email:null,delType:null,showStar:!0,showReply:!0},sendScroll:null}),persist:{pick:["contentData"]}});export{t as u}; diff --git a/mail-worker/dist/assets/email-B8ELHxI0.js b/mail-worker/dist/assets/email-CsVstZMr.js similarity index 84% rename from mail-worker/dist/assets/email-B8ELHxI0.js rename to mail-worker/dist/assets/email-CsVstZMr.js index ad23ca0..5a5ecd7 100644 --- a/mail-worker/dist/assets/email-B8ELHxI0.js +++ b/mail-worker/dist/assets/email-CsVstZMr.js @@ -1 +1 @@ -import{aB as a}from"./index-C-CeCRdr.js";function l(e,t,s,n,r){return a.get("/email/list",{params:{accountId:e,emailId:t,timeSort:s,size:n,type:r}})}function m(e){return a.delete("/email/delete?emailIds="+e)}function o(e,t){return a.get("/email/latest",{params:{emailId:e,accountId:t},noMsg:!0})}function u(e,t){return a.post("/email/send",e,{onUploadProgress:s=>{t(s)},noMsg:!0})}export{o as a,m as b,l as c,u as e}; +import{aB as a}from"./index-DpP8vbvu.js";function l(e,t,s,n,r){return a.get("/email/list",{params:{accountId:e,emailId:t,timeSort:s,size:n,type:r}})}function m(e){return a.delete("/email/delete?emailIds="+e)}function o(e,t){return a.get("/email/latest",{params:{emailId:e,accountId:t},noMsg:!0})}function u(e,t){return a.post("/email/send",e,{onUploadProgress:s=>{t(s)},noMsg:!0})}export{o as a,m as b,l as c,u as e}; diff --git a/mail-worker/dist/assets/iconify-DCkxz_hX.js b/mail-worker/dist/assets/iconify-CxZjXnJf.js similarity index 99% rename from mail-worker/dist/assets/iconify-DCkxz_hX.js rename to mail-worker/dist/assets/iconify-CxZjXnJf.js index 04e4ba7..5054187 100644 --- a/mail-worker/dist/assets/iconify-DCkxz_hX.js +++ b/mail-worker/dist/assets/iconify-CxZjXnJf.js @@ -1 +1 @@ -import{cs as Ie,bF as z,bM as ve,a as we,K as G}from"./index-C-CeCRdr.js";var Se=/\s/;function Te(e){for(var t=e.length;t--&&Se.test(e.charAt(t)););return t}var ke=/^\s+/;function Ce(e){return e&&e.slice(0,Te(e)+1).replace(ke,"")}var K=NaN,Ee=/^[-+]0x[0-9a-f]+$/i,Pe=/^0b[01]+$/i,je=/^0o[0-7]+$/i,Le=parseInt;function X(e){if(typeof e=="number")return e;if(Ie(e))return K;if(z(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=z(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ce(e);var i=Pe.test(e);return i||je.test(e)?Le(e.slice(2),i?2:8):Ee.test(e)?K:+e}var _=function(){return ve.Date.now()},Oe="Expected a function",Fe=Math.max,Ae=Math.min;function Mt(e,t,i){var o,n,r,s,c,l,f=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(Oe);t=X(t)||0,z(i)&&(d=!!i.leading,h="maxWait"in i,r=h?Fe(X(i.maxWait)||0,t):r,p="trailing"in i?!!i.trailing:p);function y(u){var g=o,w=n;return o=n=void 0,f=u,s=e.apply(w,g),s}function I(u){return f=u,c=setTimeout(v,t),d?y(u):s}function m(u){var g=u-l,w=u-f,k=t-g;return h?Ae(k,r-w):k}function a(u){var g=u-l,w=u-f;return l===void 0||g>=t||g<0||h&&w>=r}function v(){var u=_();if(a(u))return S(u);c=setTimeout(v,m(u))}function S(u){return c=void 0,p&&o?y(u):(o=n=void 0,s)}function x(){c!==void 0&&clearTimeout(c),f=0,o=l=n=c=void 0}function b(){return c===void 0?s:S(_())}function T(){var u=_(),g=a(u);if(o=arguments,n=this,l=u,g){if(c===void 0)return I(l);if(h)return clearTimeout(c),c=setTimeout(v,t),y(l)}return c===void 0&&(c=setTimeout(v,t)),s}return T.cancel=x,T.flush=b,T}const fe=/^[a-z0-9]+(-[a-z0-9]+)*$/,N=(e,t,i,o="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;o=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const c=n.pop(),l=n.pop(),f={provider:n.length>0?n[0]:o,prefix:l,name:c};return t&&!O(f)?null:f}const r=n[0],s=r.split("-");if(s.length>1){const c={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!O(c)?null:c}if(i&&o===""){const c={provider:o,prefix:"",name:r};return t&&!O(c,i)?null:c}return null},O=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,ue=Object.freeze({left:0,top:0,width:16,height:16}),M=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),R=Object.freeze({...ue,...M}),Q=Object.freeze({...R,body:"",hidden:!1});function Me(e,t){const i={};!e.hFlip!=!t.hFlip&&(i.hFlip=!0),!e.vFlip!=!t.vFlip&&(i.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(i.rotate=o),i}function J(e,t){const i=Me(e,t);for(const o in Q)o in M?o in e&&!(o in i)&&(i[o]=M[o]):o in t?i[o]=t[o]:o in e&&(i[o]=e[o]);return i}function Ne(e,t){const i=e.icons,o=e.aliases||Object.create(null),n=Object.create(null);function r(s){if(i[s])return n[s]=[];if(!(s in n)){n[s]=null;const c=o[s]&&o[s].parent,l=c&&r(c);l&&(n[s]=[c].concat(l))}return n[s]}return Object.keys(i).concat(Object.keys(o)).forEach(r),n}function Re(e,t,i){const o=e.icons,n=e.aliases||Object.create(null);let r={};function s(c){r=J(o[c]||n[c],r)}return s(t),i.forEach(s),J(e,r)}function ae(e,t){const i=[];if(typeof e!="object"||typeof e.icons!="object")return i;e.not_found instanceof Array&&e.not_found.forEach(n=>{t(n,null),i.push(n)});const o=Ne(e);for(const n in o){const r=o[n];r&&(t(n,Re(e,n,r)),i.push(n))}return i}const _e={provider:"",aliases:{},not_found:{},...ue};function D(e,t){for(const i in t)if(i in e&&typeof e[i]!=typeof t[i])return!1;return!0}function de(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!D(e,_e))return null;const i=t.icons;for(const n in i){const r=i[n];if(!n||typeof r.body!="string"||!D(r,Q))return null}const o=t.aliases||Object.create(null);for(const n in o){const r=o[n],s=r.parent;if(!n||typeof s!="string"||!i[s]&&!o[s]||!D(r,Q))return null}return t}const Y=Object.create(null);function De(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function E(e,t){const i=Y[e]||(Y[e]=Object.create(null));return i[t]||(i[t]=De(e,t))}function he(e,t){return de(t)?ae(t,(i,o)=>{o?e.icons[i]=o:e.missing.add(i)}):[]}function $e(e,t,i){try{if(typeof i.body=="string")return e.icons[t]={...i},!0}catch{}return!1}let L=!1;function pe(e){return typeof e=="boolean"&&(L=e),L}function ze(e){const t=typeof e=="string"?N(e,!0,L):e;if(t){const i=E(t.provider,t.prefix),o=t.name;return i.icons[o]||(i.missing.has(o)?null:void 0)}}function Qe(e,t){const i=N(e,!0,L);if(!i)return!1;const o=E(i.provider,i.prefix);return t?$e(o,i.name,t):(o.missing.add(i.name),!0)}function Ue(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),L&&!t&&!e.prefix){let n=!1;return de(e)&&(e.prefix="",ae(e,(r,s)=>{Qe(r,s)&&(n=!0)})),n}const i=e.prefix;if(!O({prefix:i,name:"a"}))return!1;const o=E(t,i);return!!he(o,e)}const ge=Object.freeze({width:null,height:null}),me=Object.freeze({...ge,...M}),qe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,He=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Z(e,t,i){if(t===1)return e;if(i=i||100,typeof e=="number")return Math.ceil(e*t*i)/i;if(typeof e!="string")return e;const o=e.split(qe);if(o===null||!o.length)return e;const n=[];let r=o.shift(),s=He.test(r);for(;;){if(s){const c=parseFloat(r);isNaN(c)?n.push(r):n.push(Math.ceil(c*t*i)/i)}else n.push(r);if(r=o.shift(),r===void 0)return n.join("");s=!s}}function We(e,t="defs"){let i="";const o=e.indexOf("<"+t);for(;o>=0;){const n=e.indexOf(">",o),r=e.indexOf("",r);if(s===-1)break;i+=e.slice(n+1,r).trim(),e=e.slice(0,o).trim()+e.slice(s+1)}return{defs:i,content:e}}function Be(e,t){return e?""+e+""+t:t}function Ve(e,t,i){const o=We(e);return Be(o.defs,t+o.content+i)}const Ge=e=>e==="unset"||e==="undefined"||e==="none";function Ke(e,t){const i={...R,...e},o={...me,...t},n={left:i.left,top:i.top,width:i.width,height:i.height};let r=i.body;[i,o].forEach(m=>{const a=[],v=m.hFlip,S=m.vFlip;let x=m.rotate;v?S?x+=2:(a.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),a.push("scale(-1 1)"),n.top=n.left=0):S&&(a.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),a.push("scale(1 -1)"),n.top=n.left=0);let b;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:b=n.height/2+n.top,a.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:a.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:b=n.width/2+n.left,a.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}x%2===1&&(n.left!==n.top&&(b=n.left,n.left=n.top,n.top=b),n.width!==n.height&&(b=n.width,n.width=n.height,n.height=b)),a.length&&(r=Ve(r,'',""))});const s=o.width,c=o.height,l=n.width,f=n.height;let d,h;s===null?(h=c===null?"1em":c==="auto"?f:c,d=Z(h,l/f)):(d=s==="auto"?l:s,h=c===null?Z(d,f/l):c==="auto"?f:c);const p={},y=(m,a)=>{Ge(a)||(p[m]=a.toString())};y("width",d),y("height",h);const I=[n.left,n.top,l,f];return p.viewBox=I.join(" "),{attributes:p,viewBox:I,body:r}}const Xe=/\sid="(\S+)"/g,Je="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ye=0;function Ze(e,t=Je){const i=[];let o;for(;o=Xe.exec(e);)i.push(o[1]);if(!i.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return i.forEach(r=>{const s=typeof t=="function"?t(r):t+(Ye++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}const U=Object.create(null);function et(e,t){U[e]=t}function q(e){return U[e]||U[""]}function W(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const B=Object.create(null),P=["https://api.simplesvg.com","https://api.unisvg.com"],F=[];for(;P.length>0;)P.length===1||Math.random()>.5?F.push(P.shift()):F.push(P.pop());B[""]=W({resources:["https://api.iconify.design"].concat(F)});function tt(e,t){const i=W(t);return i===null?!1:(B[e]=i,!0)}function V(e){return B[e]}const nt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ee=nt();function it(e,t){const i=V(e);if(!i)return 0;let o;if(!i.maxURL)o=0;else{let n=0;i.resources.forEach(s=>{n=Math.max(n,s.length)});const r=t+".json?icons=";o=i.maxURL-n-i.path.length-r.length}return o}function ot(e){return e===404}const rt=(e,t,i)=>{const o=[],n=it(e,t),r="icons";let s={type:r,provider:e,prefix:t,icons:[]},c=0;return i.forEach((l,f)=>{c+=l.length+1,c>=n&&f>0&&(o.push(s),s={type:r,provider:e,prefix:t,icons:[]},c=l.length),s.icons.push(l)}),o.push(s),o};function st(e){if(typeof e=="string"){const t=V(e);if(t)return t.path}return"/"}const ct=(e,t,i)=>{if(!ee){i("abort",424);return}let o=st(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});o+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:i("abort",400);return}let n=503;ee(e+o).then(r=>{const s=r.status;if(s!==200){setTimeout(()=>{i(ot(s)?"abort":"next",s)});return}return n=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?i("abort",r):i("next",n)});return}setTimeout(()=>{i("success",r)})}).catch(()=>{i("next",n)})},lt={prepare:rt,send:ct};function ft(e){const t={loaded:[],missing:[],pending:[]},i=Object.create(null);e.sort((n,r)=>n.provider!==r.provider?n.provider.localeCompare(r.provider):n.prefix!==r.prefix?n.prefix.localeCompare(r.prefix):n.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(n=>{if(o.name===n.name&&o.prefix===n.prefix&&o.provider===n.provider)return;o=n;const r=n.provider,s=n.prefix,c=n.name,l=i[r]||(i[r]=Object.create(null)),f=l[s]||(l[s]=E(r,s));let d;c in f.icons?d=t.loaded:s===""||f.missing.has(c)?d=t.missing:d=t.pending;const h={provider:r,prefix:s,name:c};d.push(h)}),t}function ye(e,t){e.forEach(i=>{const o=i.loaderCallbacks;o&&(i.loaderCallbacks=o.filter(n=>n.id!==t))})}function ut(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let i=!1;const o=e.provider,n=e.prefix;t.forEach(r=>{const s=r.icons,c=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==n)return!0;const f=l.name;if(e.icons[f])s.loaded.push({provider:o,prefix:n,name:f});else if(e.missing.has(f))s.missing.push({provider:o,prefix:n,name:f});else return i=!0,!0;return!1}),s.pending.length!==c&&(i||ye([e],r.id),r.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),r.abort))})}))}let at=0;function dt(e,t,i){const o=at++,n=ye.bind(null,i,o);if(!t.pending.length)return n;const r={id:o,icons:t,callback:e,abort:n};return i.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(r)}),n}function ht(e,t=!0,i=!1){const o=[];return e.forEach(n=>{const r=typeof n=="string"?N(n,t,i):n;r&&o.push(r)}),o}var pt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function gt(e,t,i,o){const n=e.resources.length,r=e.random?Math.floor(Math.random()*n):e.index;let s;if(e.random){let u=e.resources.slice(0);for(s=[];u.length>1;){const g=Math.floor(Math.random()*u.length);s.push(u[g]),u=u.slice(0,g).concat(u.slice(g+1))}s=s.concat(u)}else s=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let l="pending",f=0,d,h=null,p=[],y=[];typeof o=="function"&&y.push(o);function I(){h&&(clearTimeout(h),h=null)}function m(){l==="pending"&&(l="aborted"),I(),p.forEach(u=>{u.status==="pending"&&(u.status="aborted")}),p=[]}function a(u,g){g&&(y=[]),typeof u=="function"&&y.push(u)}function v(){return{startTime:c,payload:t,status:l,queriesSent:f,queriesPending:p.length,subscribe:a,abort:m}}function S(){l="failed",y.forEach(u=>{u(void 0,d)})}function x(){p.forEach(u=>{u.status==="pending"&&(u.status="aborted")}),p=[]}function b(u,g,w){const k=g!=="success";switch(p=p.filter(C=>C!==u),l){case"pending":break;case"failed":if(k||!e.dataAfterTimeout)return;break;default:return}if(g==="abort"){d=w,S();return}if(k){d=w,p.length||(s.length?T():S());return}if(I(),x(),!e.random){const C=e.resources.indexOf(u.resource);C!==-1&&C!==e.index&&(e.index=C)}l="completed",y.forEach(C=>{C(w)})}function T(){if(l!=="pending")return;I();const u=s.shift();if(u===void 0){if(p.length){h=setTimeout(()=>{I(),l==="pending"&&(x(),S())},e.timeout);return}S();return}const g={status:"pending",resource:u,callback:(w,k)=>{b(g,w,k)}};p.push(g),f++,h=setTimeout(T,e.rotate),i(u,t,g.callback)}return setTimeout(T),v}function be(e){const t={...pt,...e};let i=[];function o(){i=i.filter(c=>c().status==="pending")}function n(c,l,f){const d=gt(t,c,l,(h,p)=>{o(),f&&f(h,p)});return i.push(d),d}function r(c){return i.find(l=>c(l))||null}return{query:n,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function te(){}const $=Object.create(null);function mt(e){if(!$[e]){const t=V(e);if(!t)return;const i=be(t),o={config:t,redundancy:i};$[e]=o}return $[e]}function yt(e,t,i){let o,n;if(typeof e=="string"){const r=q(e);if(!r)return i(void 0,424),te;n=r.send;const s=mt(e);s&&(o=s.redundancy)}else{const r=W(e);if(r){o=be(r);const s=e.resources?e.resources[0]:"",c=q(s);c&&(n=c.send)}}return!o||!n?(i(void 0,424),te):o.query(t,n,i)().abort}function ne(){}function bt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ut(e)}))}function xt(e){const t=[],i=[];return e.forEach(o=>{(o.match(fe)?t:i).push(o)}),{valid:t,invalid:i}}function j(e,t,i){function o(){const n=e.pendingIcons;t.forEach(r=>{n&&n.delete(r),e.icons[r]||e.missing.add(r)})}if(i&&typeof i=="object")try{if(!he(e,i).length){o();return}}catch(n){console.error(n)}o(),bt(e)}function ie(e,t){e instanceof Promise?e.then(i=>{t(i)}).catch(()=>{t(null)}):t(e)}function It(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:i,prefix:o}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const r=e.loadIcon;if(e.loadIcons&&(n.length>1||!r)){ie(e.loadIcons(n,o,i),d=>{j(e,n,d)});return}if(r){n.forEach(d=>{const h=r(d,o,i);ie(h,p=>{const y=p?{prefix:o,icons:{[d]:p}}:null;j(e,[d],y)})});return}const{valid:s,invalid:c}=xt(n);if(c.length&&j(e,c,null),!s.length)return;const l=o.match(fe)?q(i):null;if(!l){j(e,s,null);return}l.prepare(i,o,s).forEach(d=>{yt(i,d,h=>{j(e,d.icons,h)})})}))}const vt=(e,t)=>{const i=ht(e,!0,pe()),o=ft(i);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,ne)}),()=>{l=!1}}const n=Object.create(null),r=[];let s,c;return o.pending.forEach(l=>{const{provider:f,prefix:d}=l;if(d===c&&f===s)return;s=f,c=d,r.push(E(f,d));const h=n[f]||(n[f]=Object.create(null));h[d]||(h[d]=[])}),o.pending.forEach(l=>{const{provider:f,prefix:d,name:h}=l,p=E(f,d),y=p.pendingIcons||(p.pendingIcons=new Set);y.has(h)||(y.add(h),n[f][d].push(h))}),r.forEach(l=>{const f=n[l.provider][l.prefix];f.length&&It(l,f)}),t?dt(t,o,r):ne};function wt(e,t){const i={...e};for(const o in t){const n=t[o],r=typeof n;o in ge?(n===null||n&&(r==="string"||r==="number"))&&(i[o]=n):r===typeof i[o]&&(i[o]=o==="rotate"?n%4:n)}return i}const St=/[\s,]+/;function Tt(e,t){t.split(St).forEach(i=>{switch(i.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function kt(e,t=0){const i=e.replace(/^-?[0-9.]*/,"");function o(n){for(;n<0;)n+=4;return n%4}if(i===""){const n=parseInt(e);return isNaN(n)?0:o(n)}else if(i!==e){let n=0;switch(i){case"%":n=25;break;case"deg":n=90}if(n){let r=parseFloat(e.slice(0,e.length-i.length));return isNaN(r)?0:(r=r/n,r%1===0?o(r):0)}}return t}function Ct(e,t){let i=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)i+=" "+o+'="'+t[o]+'"';return'"+e+""}function Et(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Pt(e){return"data:image/svg+xml,"+Et(e)}function jt(e){return'url("'+Pt(e)+'")'}const oe={...me,inline:!1},Lt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ot={display:"inline-block"},H={backgroundColor:"currentColor"},xe={backgroundColor:"transparent"},re={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},se={webkitMask:H,mask:H,background:xe};for(const e in se){const t=se[e];for(const i in re)t[e+i]=re[i]}const A={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";A[e+"-flip"]=t,A[e.slice(0,1)+"-flip"]=t,A[e+"Flip"]=t});function ce(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const le=(e,t)=>{const i=wt(oe,t),o={...Lt},n=t.mode||"svg",r={},s=t.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let m in t){const a=t[m];if(a!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":i[m]=a===!0||a==="true"||a===1;break;case"flip":typeof a=="string"&&Tt(i,a);break;case"color":r.color=a;break;case"rotate":typeof a=="string"?i[m]=kt(a):typeof a=="number"&&(i[m]=a);break;case"ariaHidden":case"aria-hidden":a!==!0&&a!=="true"&&delete o["aria-hidden"];break;default:{const v=A[m];v?(a===!0||a==="true"||a===1)&&(i[v]=!0):oe[m]===void 0&&(o[m]=a)}}}const l=Ke(e,i),f=l.attributes;if(i.inline&&(r.verticalAlign="-0.125em"),n==="svg"){o.style={...r,...c},Object.assign(o,f);let m=0,a=t.id;return typeof a=="string"&&(a=a.replace(/-/g,"_")),o.innerHTML=Ze(l.body,a?()=>a+"ID"+m++:"iconifyVue"),G("svg",o)}const{body:d,width:h,height:p}=e,y=n==="mask"||(n==="bg"?!1:d.indexOf("currentColor")!==-1),I=Ct(d,{...f,width:h+"",height:p+""});return o.style={...r,"--svg":jt(I),width:ce(f.width),height:ce(f.height),...Ot,...y?H:xe,...c},G("span",o)};pe(!0);et("",lt);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ue(o))&&console.error(i)}catch{console.error(i)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let i in t){const o="IconifyProviders["+i+"] is invalid.";try{const n=t[i];if(typeof n!="object"||!n||n.resources===void 0)continue;tt(i,n)||console.error(o)}catch{console.error(o)}}}}const Ft={...R,body:""},Nt=we({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,i){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let o;if(typeof e!="string"||(o=N(e,!1,!0))===null)return this.abortLoading(),null;let n=ze(o);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:vt([o],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),i){n=Object.assign({},n);const s=i(n.body,o.name,o.prefix,o.provider);typeof s=="string"&&(n.body=s)}const r=["iconify"];return o.prefix!==""&&r.push("iconify--"+o.prefix),o.provider!==""&&r.push("iconify--"+o.provider),{data:n,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return le(Ft,e);let i=e;return t.classes&&(i={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),le({...R,...t.data},i)}});export{Nt as I,Mt as d}; +import{cs as Ie,bF as z,bM as ve,a as we,K as G}from"./index-DpP8vbvu.js";var Se=/\s/;function Te(e){for(var t=e.length;t--&&Se.test(e.charAt(t)););return t}var ke=/^\s+/;function Ce(e){return e&&e.slice(0,Te(e)+1).replace(ke,"")}var K=NaN,Ee=/^[-+]0x[0-9a-f]+$/i,Pe=/^0b[01]+$/i,je=/^0o[0-7]+$/i,Le=parseInt;function X(e){if(typeof e=="number")return e;if(Ie(e))return K;if(z(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=z(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ce(e);var i=Pe.test(e);return i||je.test(e)?Le(e.slice(2),i?2:8):Ee.test(e)?K:+e}var _=function(){return ve.Date.now()},Oe="Expected a function",Fe=Math.max,Ae=Math.min;function Mt(e,t,i){var o,n,r,s,c,l,f=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(Oe);t=X(t)||0,z(i)&&(d=!!i.leading,h="maxWait"in i,r=h?Fe(X(i.maxWait)||0,t):r,p="trailing"in i?!!i.trailing:p);function y(u){var g=o,w=n;return o=n=void 0,f=u,s=e.apply(w,g),s}function I(u){return f=u,c=setTimeout(v,t),d?y(u):s}function m(u){var g=u-l,w=u-f,k=t-g;return h?Ae(k,r-w):k}function a(u){var g=u-l,w=u-f;return l===void 0||g>=t||g<0||h&&w>=r}function v(){var u=_();if(a(u))return S(u);c=setTimeout(v,m(u))}function S(u){return c=void 0,p&&o?y(u):(o=n=void 0,s)}function x(){c!==void 0&&clearTimeout(c),f=0,o=l=n=c=void 0}function b(){return c===void 0?s:S(_())}function T(){var u=_(),g=a(u);if(o=arguments,n=this,l=u,g){if(c===void 0)return I(l);if(h)return clearTimeout(c),c=setTimeout(v,t),y(l)}return c===void 0&&(c=setTimeout(v,t)),s}return T.cancel=x,T.flush=b,T}const fe=/^[a-z0-9]+(-[a-z0-9]+)*$/,N=(e,t,i,o="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;o=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const c=n.pop(),l=n.pop(),f={provider:n.length>0?n[0]:o,prefix:l,name:c};return t&&!O(f)?null:f}const r=n[0],s=r.split("-");if(s.length>1){const c={provider:o,prefix:s.shift(),name:s.join("-")};return t&&!O(c)?null:c}if(i&&o===""){const c={provider:o,prefix:"",name:r};return t&&!O(c,i)?null:c}return null},O=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,ue=Object.freeze({left:0,top:0,width:16,height:16}),M=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),R=Object.freeze({...ue,...M}),Q=Object.freeze({...R,body:"",hidden:!1});function Me(e,t){const i={};!e.hFlip!=!t.hFlip&&(i.hFlip=!0),!e.vFlip!=!t.vFlip&&(i.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(i.rotate=o),i}function J(e,t){const i=Me(e,t);for(const o in Q)o in M?o in e&&!(o in i)&&(i[o]=M[o]):o in t?i[o]=t[o]:o in e&&(i[o]=e[o]);return i}function Ne(e,t){const i=e.icons,o=e.aliases||Object.create(null),n=Object.create(null);function r(s){if(i[s])return n[s]=[];if(!(s in n)){n[s]=null;const c=o[s]&&o[s].parent,l=c&&r(c);l&&(n[s]=[c].concat(l))}return n[s]}return Object.keys(i).concat(Object.keys(o)).forEach(r),n}function Re(e,t,i){const o=e.icons,n=e.aliases||Object.create(null);let r={};function s(c){r=J(o[c]||n[c],r)}return s(t),i.forEach(s),J(e,r)}function ae(e,t){const i=[];if(typeof e!="object"||typeof e.icons!="object")return i;e.not_found instanceof Array&&e.not_found.forEach(n=>{t(n,null),i.push(n)});const o=Ne(e);for(const n in o){const r=o[n];r&&(t(n,Re(e,n,r)),i.push(n))}return i}const _e={provider:"",aliases:{},not_found:{},...ue};function D(e,t){for(const i in t)if(i in e&&typeof e[i]!=typeof t[i])return!1;return!0}function de(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!D(e,_e))return null;const i=t.icons;for(const n in i){const r=i[n];if(!n||typeof r.body!="string"||!D(r,Q))return null}const o=t.aliases||Object.create(null);for(const n in o){const r=o[n],s=r.parent;if(!n||typeof s!="string"||!i[s]&&!o[s]||!D(r,Q))return null}return t}const Y=Object.create(null);function De(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function E(e,t){const i=Y[e]||(Y[e]=Object.create(null));return i[t]||(i[t]=De(e,t))}function he(e,t){return de(t)?ae(t,(i,o)=>{o?e.icons[i]=o:e.missing.add(i)}):[]}function $e(e,t,i){try{if(typeof i.body=="string")return e.icons[t]={...i},!0}catch{}return!1}let L=!1;function pe(e){return typeof e=="boolean"&&(L=e),L}function ze(e){const t=typeof e=="string"?N(e,!0,L):e;if(t){const i=E(t.provider,t.prefix),o=t.name;return i.icons[o]||(i.missing.has(o)?null:void 0)}}function Qe(e,t){const i=N(e,!0,L);if(!i)return!1;const o=E(i.provider,i.prefix);return t?$e(o,i.name,t):(o.missing.add(i.name),!0)}function Ue(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),L&&!t&&!e.prefix){let n=!1;return de(e)&&(e.prefix="",ae(e,(r,s)=>{Qe(r,s)&&(n=!0)})),n}const i=e.prefix;if(!O({prefix:i,name:"a"}))return!1;const o=E(t,i);return!!he(o,e)}const ge=Object.freeze({width:null,height:null}),me=Object.freeze({...ge,...M}),qe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,He=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Z(e,t,i){if(t===1)return e;if(i=i||100,typeof e=="number")return Math.ceil(e*t*i)/i;if(typeof e!="string")return e;const o=e.split(qe);if(o===null||!o.length)return e;const n=[];let r=o.shift(),s=He.test(r);for(;;){if(s){const c=parseFloat(r);isNaN(c)?n.push(r):n.push(Math.ceil(c*t*i)/i)}else n.push(r);if(r=o.shift(),r===void 0)return n.join("");s=!s}}function We(e,t="defs"){let i="";const o=e.indexOf("<"+t);for(;o>=0;){const n=e.indexOf(">",o),r=e.indexOf("",r);if(s===-1)break;i+=e.slice(n+1,r).trim(),e=e.slice(0,o).trim()+e.slice(s+1)}return{defs:i,content:e}}function Be(e,t){return e?""+e+""+t:t}function Ve(e,t,i){const o=We(e);return Be(o.defs,t+o.content+i)}const Ge=e=>e==="unset"||e==="undefined"||e==="none";function Ke(e,t){const i={...R,...e},o={...me,...t},n={left:i.left,top:i.top,width:i.width,height:i.height};let r=i.body;[i,o].forEach(m=>{const a=[],v=m.hFlip,S=m.vFlip;let x=m.rotate;v?S?x+=2:(a.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),a.push("scale(-1 1)"),n.top=n.left=0):S&&(a.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),a.push("scale(1 -1)"),n.top=n.left=0);let b;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:b=n.height/2+n.top,a.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:a.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:b=n.width/2+n.left,a.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}x%2===1&&(n.left!==n.top&&(b=n.left,n.left=n.top,n.top=b),n.width!==n.height&&(b=n.width,n.width=n.height,n.height=b)),a.length&&(r=Ve(r,'',""))});const s=o.width,c=o.height,l=n.width,f=n.height;let d,h;s===null?(h=c===null?"1em":c==="auto"?f:c,d=Z(h,l/f)):(d=s==="auto"?l:s,h=c===null?Z(d,f/l):c==="auto"?f:c);const p={},y=(m,a)=>{Ge(a)||(p[m]=a.toString())};y("width",d),y("height",h);const I=[n.left,n.top,l,f];return p.viewBox=I.join(" "),{attributes:p,viewBox:I,body:r}}const Xe=/\sid="(\S+)"/g,Je="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ye=0;function Ze(e,t=Je){const i=[];let o;for(;o=Xe.exec(e);)i.push(o[1]);if(!i.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return i.forEach(r=>{const s=typeof t=="function"?t(r):t+(Ye++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}const U=Object.create(null);function et(e,t){U[e]=t}function q(e){return U[e]||U[""]}function W(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const B=Object.create(null),P=["https://api.simplesvg.com","https://api.unisvg.com"],F=[];for(;P.length>0;)P.length===1||Math.random()>.5?F.push(P.shift()):F.push(P.pop());B[""]=W({resources:["https://api.iconify.design"].concat(F)});function tt(e,t){const i=W(t);return i===null?!1:(B[e]=i,!0)}function V(e){return B[e]}const nt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ee=nt();function it(e,t){const i=V(e);if(!i)return 0;let o;if(!i.maxURL)o=0;else{let n=0;i.resources.forEach(s=>{n=Math.max(n,s.length)});const r=t+".json?icons=";o=i.maxURL-n-i.path.length-r.length}return o}function ot(e){return e===404}const rt=(e,t,i)=>{const o=[],n=it(e,t),r="icons";let s={type:r,provider:e,prefix:t,icons:[]},c=0;return i.forEach((l,f)=>{c+=l.length+1,c>=n&&f>0&&(o.push(s),s={type:r,provider:e,prefix:t,icons:[]},c=l.length),s.icons.push(l)}),o.push(s),o};function st(e){if(typeof e=="string"){const t=V(e);if(t)return t.path}return"/"}const ct=(e,t,i)=>{if(!ee){i("abort",424);return}let o=st(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});o+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;o+=r.slice(0,1)==="/"?r.slice(1):r;break}default:i("abort",400);return}let n=503;ee(e+o).then(r=>{const s=r.status;if(s!==200){setTimeout(()=>{i(ot(s)?"abort":"next",s)});return}return n=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?i("abort",r):i("next",n)});return}setTimeout(()=>{i("success",r)})}).catch(()=>{i("next",n)})},lt={prepare:rt,send:ct};function ft(e){const t={loaded:[],missing:[],pending:[]},i=Object.create(null);e.sort((n,r)=>n.provider!==r.provider?n.provider.localeCompare(r.provider):n.prefix!==r.prefix?n.prefix.localeCompare(r.prefix):n.name.localeCompare(r.name));let o={provider:"",prefix:"",name:""};return e.forEach(n=>{if(o.name===n.name&&o.prefix===n.prefix&&o.provider===n.provider)return;o=n;const r=n.provider,s=n.prefix,c=n.name,l=i[r]||(i[r]=Object.create(null)),f=l[s]||(l[s]=E(r,s));let d;c in f.icons?d=t.loaded:s===""||f.missing.has(c)?d=t.missing:d=t.pending;const h={provider:r,prefix:s,name:c};d.push(h)}),t}function ye(e,t){e.forEach(i=>{const o=i.loaderCallbacks;o&&(i.loaderCallbacks=o.filter(n=>n.id!==t))})}function ut(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let i=!1;const o=e.provider,n=e.prefix;t.forEach(r=>{const s=r.icons,c=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==n)return!0;const f=l.name;if(e.icons[f])s.loaded.push({provider:o,prefix:n,name:f});else if(e.missing.has(f))s.missing.push({provider:o,prefix:n,name:f});else return i=!0,!0;return!1}),s.pending.length!==c&&(i||ye([e],r.id),r.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),r.abort))})}))}let at=0;function dt(e,t,i){const o=at++,n=ye.bind(null,i,o);if(!t.pending.length)return n;const r={id:o,icons:t,callback:e,abort:n};return i.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(r)}),n}function ht(e,t=!0,i=!1){const o=[];return e.forEach(n=>{const r=typeof n=="string"?N(n,t,i):n;r&&o.push(r)}),o}var pt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function gt(e,t,i,o){const n=e.resources.length,r=e.random?Math.floor(Math.random()*n):e.index;let s;if(e.random){let u=e.resources.slice(0);for(s=[];u.length>1;){const g=Math.floor(Math.random()*u.length);s.push(u[g]),u=u.slice(0,g).concat(u.slice(g+1))}s=s.concat(u)}else s=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let l="pending",f=0,d,h=null,p=[],y=[];typeof o=="function"&&y.push(o);function I(){h&&(clearTimeout(h),h=null)}function m(){l==="pending"&&(l="aborted"),I(),p.forEach(u=>{u.status==="pending"&&(u.status="aborted")}),p=[]}function a(u,g){g&&(y=[]),typeof u=="function"&&y.push(u)}function v(){return{startTime:c,payload:t,status:l,queriesSent:f,queriesPending:p.length,subscribe:a,abort:m}}function S(){l="failed",y.forEach(u=>{u(void 0,d)})}function x(){p.forEach(u=>{u.status==="pending"&&(u.status="aborted")}),p=[]}function b(u,g,w){const k=g!=="success";switch(p=p.filter(C=>C!==u),l){case"pending":break;case"failed":if(k||!e.dataAfterTimeout)return;break;default:return}if(g==="abort"){d=w,S();return}if(k){d=w,p.length||(s.length?T():S());return}if(I(),x(),!e.random){const C=e.resources.indexOf(u.resource);C!==-1&&C!==e.index&&(e.index=C)}l="completed",y.forEach(C=>{C(w)})}function T(){if(l!=="pending")return;I();const u=s.shift();if(u===void 0){if(p.length){h=setTimeout(()=>{I(),l==="pending"&&(x(),S())},e.timeout);return}S();return}const g={status:"pending",resource:u,callback:(w,k)=>{b(g,w,k)}};p.push(g),f++,h=setTimeout(T,e.rotate),i(u,t,g.callback)}return setTimeout(T),v}function be(e){const t={...pt,...e};let i=[];function o(){i=i.filter(c=>c().status==="pending")}function n(c,l,f){const d=gt(t,c,l,(h,p)=>{o(),f&&f(h,p)});return i.push(d),d}function r(c){return i.find(l=>c(l))||null}return{query:n,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function te(){}const $=Object.create(null);function mt(e){if(!$[e]){const t=V(e);if(!t)return;const i=be(t),o={config:t,redundancy:i};$[e]=o}return $[e]}function yt(e,t,i){let o,n;if(typeof e=="string"){const r=q(e);if(!r)return i(void 0,424),te;n=r.send;const s=mt(e);s&&(o=s.redundancy)}else{const r=W(e);if(r){o=be(r);const s=e.resources?e.resources[0]:"",c=q(s);c&&(n=c.send)}}return!o||!n?(i(void 0,424),te):o.query(t,n,i)().abort}function ne(){}function bt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ut(e)}))}function xt(e){const t=[],i=[];return e.forEach(o=>{(o.match(fe)?t:i).push(o)}),{valid:t,invalid:i}}function j(e,t,i){function o(){const n=e.pendingIcons;t.forEach(r=>{n&&n.delete(r),e.icons[r]||e.missing.add(r)})}if(i&&typeof i=="object")try{if(!he(e,i).length){o();return}}catch(n){console.error(n)}o(),bt(e)}function ie(e,t){e instanceof Promise?e.then(i=>{t(i)}).catch(()=>{t(null)}):t(e)}function It(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:i,prefix:o}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const r=e.loadIcon;if(e.loadIcons&&(n.length>1||!r)){ie(e.loadIcons(n,o,i),d=>{j(e,n,d)});return}if(r){n.forEach(d=>{const h=r(d,o,i);ie(h,p=>{const y=p?{prefix:o,icons:{[d]:p}}:null;j(e,[d],y)})});return}const{valid:s,invalid:c}=xt(n);if(c.length&&j(e,c,null),!s.length)return;const l=o.match(fe)?q(i):null;if(!l){j(e,s,null);return}l.prepare(i,o,s).forEach(d=>{yt(i,d,h=>{j(e,d.icons,h)})})}))}const vt=(e,t)=>{const i=ht(e,!0,pe()),o=ft(i);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,ne)}),()=>{l=!1}}const n=Object.create(null),r=[];let s,c;return o.pending.forEach(l=>{const{provider:f,prefix:d}=l;if(d===c&&f===s)return;s=f,c=d,r.push(E(f,d));const h=n[f]||(n[f]=Object.create(null));h[d]||(h[d]=[])}),o.pending.forEach(l=>{const{provider:f,prefix:d,name:h}=l,p=E(f,d),y=p.pendingIcons||(p.pendingIcons=new Set);y.has(h)||(y.add(h),n[f][d].push(h))}),r.forEach(l=>{const f=n[l.provider][l.prefix];f.length&&It(l,f)}),t?dt(t,o,r):ne};function wt(e,t){const i={...e};for(const o in t){const n=t[o],r=typeof n;o in ge?(n===null||n&&(r==="string"||r==="number"))&&(i[o]=n):r===typeof i[o]&&(i[o]=o==="rotate"?n%4:n)}return i}const St=/[\s,]+/;function Tt(e,t){t.split(St).forEach(i=>{switch(i.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function kt(e,t=0){const i=e.replace(/^-?[0-9.]*/,"");function o(n){for(;n<0;)n+=4;return n%4}if(i===""){const n=parseInt(e);return isNaN(n)?0:o(n)}else if(i!==e){let n=0;switch(i){case"%":n=25;break;case"deg":n=90}if(n){let r=parseFloat(e.slice(0,e.length-i.length));return isNaN(r)?0:(r=r/n,r%1===0?o(r):0)}}return t}function Ct(e,t){let i=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)i+=" "+o+'="'+t[o]+'"';return'"+e+""}function Et(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Pt(e){return"data:image/svg+xml,"+Et(e)}function jt(e){return'url("'+Pt(e)+'")'}const oe={...me,inline:!1},Lt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ot={display:"inline-block"},H={backgroundColor:"currentColor"},xe={backgroundColor:"transparent"},re={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},se={webkitMask:H,mask:H,background:xe};for(const e in se){const t=se[e];for(const i in re)t[e+i]=re[i]}const A={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";A[e+"-flip"]=t,A[e.slice(0,1)+"-flip"]=t,A[e+"Flip"]=t});function ce(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const le=(e,t)=>{const i=wt(oe,t),o={...Lt},n=t.mode||"svg",r={},s=t.style,c=typeof s=="object"&&!(s instanceof Array)?s:{};for(let m in t){const a=t[m];if(a!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":i[m]=a===!0||a==="true"||a===1;break;case"flip":typeof a=="string"&&Tt(i,a);break;case"color":r.color=a;break;case"rotate":typeof a=="string"?i[m]=kt(a):typeof a=="number"&&(i[m]=a);break;case"ariaHidden":case"aria-hidden":a!==!0&&a!=="true"&&delete o["aria-hidden"];break;default:{const v=A[m];v?(a===!0||a==="true"||a===1)&&(i[v]=!0):oe[m]===void 0&&(o[m]=a)}}}const l=Ke(e,i),f=l.attributes;if(i.inline&&(r.verticalAlign="-0.125em"),n==="svg"){o.style={...r,...c},Object.assign(o,f);let m=0,a=t.id;return typeof a=="string"&&(a=a.replace(/-/g,"_")),o.innerHTML=Ze(l.body,a?()=>a+"ID"+m++:"iconifyVue"),G("svg",o)}const{body:d,width:h,height:p}=e,y=n==="mask"||(n==="bg"?!1:d.indexOf("currentColor")!==-1),I=Ct(d,{...f,width:h+"",height:p+""});return o.style={...r,"--svg":jt(I),width:ce(f.width),height:ce(f.height),...Ot,...y?H:xe,...c},G("span",o)};pe(!0);et("",lt);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ue(o))&&console.error(i)}catch{console.error(i)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let i in t){const o="IconifyProviders["+i+"] is invalid.";try{const n=t[i];if(typeof n!="object"||!n||n.resources===void 0)continue;tt(i,n)||console.error(o)}catch{console.error(o)}}}}const Ft={...R,body:""},Nt=we({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,i){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let o;if(typeof e!="string"||(o=N(e,!1,!0))===null)return this.abortLoading(),null;let n=ze(o);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:vt([o],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),i){n=Object.assign({},n);const s=i(n.body,o.name,o.prefix,o.provider);typeof s=="string"&&(n.body=s)}const r=["iconify"];return o.prefix!==""&&r.push("iconify--"+o.prefix),o.provider!==""&&r.push("iconify--"+o.provider),{data:n,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return le(Ft,e);let i=e;return t.classes&&(i={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),le({...R,...t.data},i)}});export{Nt as I,Mt as d}; diff --git a/mail-worker/dist/assets/index-Df9kcgT7.js b/mail-worker/dist/assets/index-9tEZWj9_.js similarity index 93% rename from mail-worker/dist/assets/index-Df9kcgT7.js rename to mail-worker/dist/assets/index-9tEZWj9_.js index 3f853e1..c1f1548 100644 --- a/mail-worker/dist/assets/index-Df9kcgT7.js +++ b/mail-worker/dist/assets/index-9tEZWj9_.js @@ -1 +1 @@ -import{aj as Z,ao as ee,ak as te,al as oe,af as le,z as w,D as L,$ as I,k as z,ay as se,c as u,f as r,g as n,aC as ae,i as re,N as P,e as V,t as i,O as A,ab as f,aD as ne,p as h,n as ie,m as b,P as K,h as M,aE as de,o as a,a7 as R,ap as x,an as c,aF as ue,aG as ce,ai as j}from"./index-C-CeCRdr.js";/* empty css *//* empty css */import"./el-tag-Bx7m9zwB.js";import{E as pe,a as me}from"./el-select-bzu4tt0u.js";import"./el-scrollbar-UsUjrt3r.js";import{a as ge,r as fe}from"./login-BOozTb9X.js";import{i as G}from"./verify-utils-D6Av2NDy.js";import{I as J}from"./iconify-DCkxz_hX.js";import{_ as ve}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{E as ye}from"./vnode-iQPJucW4.js";import{E as we}from"./index-D2TRjCYc.js";import"./index-mPHfnfYT.js";import"./index-CDAJLwwD.js";import"./index-DbudBMlZ.js";import"./event-BB_Ol6Sd.js";const ke={id:"login-box"},Ve={key:0,id:"background-wrap"},he={class:"form-wrapper"},be={class:"container"},Se={class:"form-title"},$e={key:0,class:"form-desc"},Ee={key:1,class:"form-desc"},Me={style:{color:"var(--el-text-color-primary)"}},Ce=["data-sitekey"],Ue={key:0,style:{"font-size":"12px",color:"#F56C6C"}},_e={__name:"index",setup(Te){de(e=>({"3610c848":Q.value}));const{t:d}=Z(),q=ee(),H=te(),O=oe(),s=le(),C=w(!1),m=w("login"),v=L({email:"",password:""}),U=w(),p=w(""),l=L({email:"",password:"",confirmPassword:"",code:null}),_=s.domainList,E=w(!1);p.value=_[0];const S=w(!1);let $="",y=null,T=w(!1),D=0;window.onTurnstileSuccess=e=>{$=e},window.onTurnstileError=e=>{D>=4||(D++,console.warn("人机验加载失败",e),setTimeout(()=>{I(()=>{y?window.turnstile.reset(y):y=window.turnstile.render(".register-turnstile")})},1500))},window.loadAfter=e=>{console.log("loadAfter")},window.loadBefore=e=>{console.log("loadBefore")};const Q=z(()=>{const e=s.settings.loginOpacity;return O.dark?`rgba(0, 0, 0, ${e})`:`rgba(255, 255, 255, ${e})`}),W=z(()=>s.settings.background?{"background-image":`url(${se(s.settings.background)})`,"background-repeat":"no-repeat","background-size":"cover","background-position":"center"}:""),N=()=>{U.value.toggleMenu()},X=()=>{if(!v.email){c({message:d("emptyEmailMsg"),type:"error",plain:!0});return}let e=v.email+(s.settings.loginDomain===0?p.value:"");if(!G(e)){c({message:d("notEmailMsg"),type:"error",plain:!0});return}if(!v.password){c({message:d("emptyPwdMsg"),type:"error",plain:!0});return}C.value=!0,ge(e,v.password).then(async t=>{localStorage.setItem("token",t.token);const k=await ue();q.currentAccountId=k.accountId,H.user=k,ce(k.permKeys).forEach(g=>{j.addRoute("layout",g)}),await j.replace({name:"layout"}),O.showNotice()}).finally(()=>{C.value=!1})};function Y(){if(!l.email){c({message:d("emptyEmailMsg"),type:"error",plain:!0});return}if(!G(l.email+p.value)){c({message:d("notEmailMsg"),type:"error",plain:!0});return}if(!l.password){c({message:d("emptyPwdMsg"),type:"error",plain:!0});return}if(l.password.length<6){c({message:d("pwdLengthMsg"),type:"error",plain:!0});return}if(l.password!==l.confirmPassword){c({message:d("confirmPwdFailMsg"),type:"error",plain:!0});return}if(s.settings.regKey===0&&!l.code){c({message:d("emptyRegKeyMsg"),type:"error",plain:!0});return}if(!$&&(s.settings.registerVerify===0||s.settings.registerVerify===2&&s.settings.regVerifyOpen)){S.value?T.value||c({message:d("botVerifyMsg"),type:"error",plain:!0}):(S.value=!0,I(()=>{if(y)window.turnstile.reset(".register-turnstile");else try{y=window.turnstile.render(".register-turnstile")}catch{T.value=!0,console.log("人机验证js加载失败")}}));return}E.value=!0;const e={email:l.email+p.value,password:l.password,token:$,code:l.code};fe(e).then(({regVerifyOpen:t})=>{m.value="login",l.email="",l.password="",l.confirmPassword="",l.code="",E.value=!1,$="",s.settings.regVerifyOpen=t,S.value=!1,c({message:d("regSuccessMsg"),type:"success",plain:!0})}).catch(t=>{E.value=!1,t.code===400&&($="",s.settings.regVerifyOpen=!0,y?window.turnstile.reset(y):I(()=>{y=window.turnstile.render(".register-turnstile")}),S.value=!0)})}return(e,t)=>{const k=me,B=pe,g=ye,F=we;return a(),u("div",ke,[n(s).settings.background?(a(),u("div",{key:1,style:re(W.value)},null,4)):(a(),u("div",Ve,t[11]||(t[11]=[ae('
',5)]))),r("div",he,[r("div",be,[r("span",Se,i(n(s).settings.title),1),m.value==="login"?(a(),u("span",$e,i(e.$t("loginTitle")),1)):(a(),u("span",Ee,i(e.$t("regTitle")),1)),P(r("div",null,[f(g,{class:ie(n(s).settings.loginDomain===0?"email-input":""),modelValue:v.email,"onUpdate:modelValue":t[1]||(t[1]=o=>v.email=o),type:"text",placeholder:e.$t("emailAccount"),autocomplete:"off"},ne({_:2},[n(s).settings.loginDomain===0?{name:"append",fn:h(()=>[r("div",{onClick:R(N,["stop"])},[m.value==="login"?(a(),b(B,{key:0,ref_key:"mySelect",ref:U,modelValue:p.value,"onUpdate:modelValue":t[0]||(t[0]=o=>p.value=o),placeholder:e.$t("select"),class:"select"},{default:h(()=>[(a(!0),u(K,null,x(n(_),o=>(a(),b(k,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):V("",!0),r("div",Me,[r("span",null,i(p.value),1),f(n(J),{class:"setting-icon",icon:"mingcute:down-small-fill",width:"20",height:"20"})])])]),key:"0"}:void 0]),1032,["class","modelValue","placeholder"]),f(g,{modelValue:v.password,"onUpdate:modelValue":t[2]||(t[2]=o=>v.password=o),placeholder:e.$t("password"),type:"password",autocomplete:"off"},null,8,["modelValue","placeholder"]),f(F,{class:"btn",type:"primary",onClick:X,loading:C.value},{default:h(()=>[M(i(e.$t("loginBtn")),1)]),_:1},8,["loading"])],512),[[A,m.value==="login"]]),P(r("div",null,[f(g,{class:"email-input",modelValue:l.email,"onUpdate:modelValue":t[4]||(t[4]=o=>l.email=o),type:"text",placeholder:e.$t("emailAccount"),autocomplete:"off"},{append:h(()=>[r("div",{onClick:R(N,["stop"])},[m.value!=="login"?(a(),b(B,{key:0,ref_key:"mySelect",ref:U,modelValue:p.value,"onUpdate:modelValue":t[3]||(t[3]=o=>p.value=o),placeholder:e.$t("select"),class:"select"},{default:h(()=>[(a(!0),u(K,null,x(n(_),o=>(a(),b(k,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):V("",!0),r("div",null,[r("span",null,i(p.value),1),f(n(J),{class:"setting-icon",icon:"mingcute:down-small-fill",width:"20",height:"20"})])])]),_:1},8,["modelValue","placeholder"]),f(g,{modelValue:l.password,"onUpdate:modelValue":t[5]||(t[5]=o=>l.password=o),placeholder:e.$t("password"),type:"password",autocomplete:"off"},null,8,["modelValue","placeholder"]),f(g,{modelValue:l.confirmPassword,"onUpdate:modelValue":t[6]||(t[6]=o=>l.confirmPassword=o),placeholder:e.$t("confirmPwd"),type:"password",autocomplete:"off"},null,8,["modelValue","placeholder"]),n(s).settings.regKey===0?(a(),b(g,{key:0,modelValue:l.code,"onUpdate:modelValue":t[7]||(t[7]=o=>l.code=o),placeholder:e.$t("regKey"),type:"text",autocomplete:"off"},null,8,["modelValue","placeholder"])):V("",!0),n(s).settings.regKey===2?(a(),b(g,{key:1,modelValue:l.code,"onUpdate:modelValue":t[8]||(t[8]=o=>l.code=o),placeholder:e.$t("regKeyOptional"),type:"text",autocomplete:"off"},null,8,["modelValue","placeholder"])):V("",!0),P(r("div",{class:"register-turnstile","data-sitekey":n(s).settings.siteKey,"data-callback":"onTurnstileSuccess","data-error-callback":"onTurnstileError","data-after-interactive-callback":"loadAfter","data-before-interactive-callback":"loadBefore"},[n(T)?(a(),u("span",Ue,i(e.$t("verifyModuleFailed")),1)):V("",!0)],8,Ce),[[A,S.value]]),f(F,{class:"btn",type:"primary",onClick:Y,loading:E.value},{default:h(()=>[M(i(e.$t("regBtn")),1)]),_:1},8,["loading"])],512),[[A,m.value!=="login"]]),n(s).settings.register===0?(a(),u(K,{key:2},[m.value==="login"?(a(),u("div",{key:0,class:"switch",onClick:t[9]||(t[9]=o=>m.value="register")},[M(i(e.$t("noAccount"))+" ",1),r("span",null,i(e.$t("regSwitch")),1)])):(a(),u("div",{key:1,class:"switch",onClick:t[10]||(t[10]=o=>m.value="login")},[M(i(e.$t("hasAccount"))+" ",1),r("span",null,i(e.$t("loginSwitch")),1)]))],64)):V("",!0)])])])}}},qe=ve(_e,[["__scopeId","data-v-1de51574"]]);export{qe as default}; +import{aj as Z,ao as ee,ak as te,al as oe,af as le,z as w,D as L,$ as I,k as z,ay as se,c as u,f as r,g as n,aC as ae,i as re,N as P,e as V,t as i,O as A,ab as f,aD as ne,p as h,n as ie,m as b,P as K,h as M,aE as de,o as a,a7 as R,ap as x,an as c,aF as ue,aG as ce,ai as j}from"./index-DpP8vbvu.js";/* empty css *//* empty css */import"./el-tag-CjAzCWMf.js";import{E as pe,a as me}from"./el-select-BvsCrs4t.js";import"./el-scrollbar-DIXSy-7M.js";import{a as ge,r as fe}from"./login-D6mP2A2s.js";import{i as G}from"./verify-utils-D6Av2NDy.js";import{I as J}from"./iconify-CxZjXnJf.js";import{_ as ve}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{E as ye}from"./vnode-DPqF99Zc.js";import{E as we}from"./index-BWeK8p2T.js";import"./index-BMdPKuCq.js";import"./index-dQfRzLGT.js";import"./index-D7KcZu8a.js";import"./event-BB_Ol6Sd.js";const ke={id:"login-box"},Ve={key:0,id:"background-wrap"},he={class:"form-wrapper"},be={class:"container"},Se={class:"form-title"},$e={key:0,class:"form-desc"},Ee={key:1,class:"form-desc"},Me={style:{color:"var(--el-text-color-primary)"}},Ce=["data-sitekey"],Ue={key:0,style:{"font-size":"12px",color:"#F56C6C"}},_e={__name:"index",setup(Te){de(e=>({"3610c848":Q.value}));const{t:d}=Z(),q=ee(),H=te(),O=oe(),s=le(),C=w(!1),m=w("login"),v=L({email:"",password:""}),U=w(),p=w(""),l=L({email:"",password:"",confirmPassword:"",code:null}),_=s.domainList,E=w(!1);p.value=_[0];const S=w(!1);let $="",y=null,T=w(!1),D=0;window.onTurnstileSuccess=e=>{$=e},window.onTurnstileError=e=>{D>=4||(D++,console.warn("人机验加载失败",e),setTimeout(()=>{I(()=>{y?window.turnstile.reset(y):y=window.turnstile.render(".register-turnstile")})},1500))},window.loadAfter=e=>{console.log("loadAfter")},window.loadBefore=e=>{console.log("loadBefore")};const Q=z(()=>{const e=s.settings.loginOpacity;return O.dark?`rgba(0, 0, 0, ${e})`:`rgba(255, 255, 255, ${e})`}),W=z(()=>s.settings.background?{"background-image":`url(${se(s.settings.background)})`,"background-repeat":"no-repeat","background-size":"cover","background-position":"center"}:""),N=()=>{U.value.toggleMenu()},X=()=>{if(!v.email){c({message:d("emptyEmailMsg"),type:"error",plain:!0});return}let e=v.email+(s.settings.loginDomain===0?p.value:"");if(!G(e)){c({message:d("notEmailMsg"),type:"error",plain:!0});return}if(!v.password){c({message:d("emptyPwdMsg"),type:"error",plain:!0});return}C.value=!0,ge(e,v.password).then(async t=>{localStorage.setItem("token",t.token);const k=await ue();q.currentAccountId=k.accountId,H.user=k,ce(k.permKeys).forEach(g=>{j.addRoute("layout",g)}),await j.replace({name:"layout"}),O.showNotice()}).finally(()=>{C.value=!1})};function Y(){if(!l.email){c({message:d("emptyEmailMsg"),type:"error",plain:!0});return}if(!G(l.email+p.value)){c({message:d("notEmailMsg"),type:"error",plain:!0});return}if(!l.password){c({message:d("emptyPwdMsg"),type:"error",plain:!0});return}if(l.password.length<6){c({message:d("pwdLengthMsg"),type:"error",plain:!0});return}if(l.password!==l.confirmPassword){c({message:d("confirmPwdFailMsg"),type:"error",plain:!0});return}if(s.settings.regKey===0&&!l.code){c({message:d("emptyRegKeyMsg"),type:"error",plain:!0});return}if(!$&&(s.settings.registerVerify===0||s.settings.registerVerify===2&&s.settings.regVerifyOpen)){S.value?T.value||c({message:d("botVerifyMsg"),type:"error",plain:!0}):(S.value=!0,I(()=>{if(y)window.turnstile.reset(".register-turnstile");else try{y=window.turnstile.render(".register-turnstile")}catch{T.value=!0,console.log("人机验证js加载失败")}}));return}E.value=!0;const e={email:l.email+p.value,password:l.password,token:$,code:l.code};fe(e).then(({regVerifyOpen:t})=>{m.value="login",l.email="",l.password="",l.confirmPassword="",l.code="",E.value=!1,$="",s.settings.regVerifyOpen=t,S.value=!1,c({message:d("regSuccessMsg"),type:"success",plain:!0})}).catch(t=>{E.value=!1,t.code===400&&($="",s.settings.regVerifyOpen=!0,y?window.turnstile.reset(y):I(()=>{y=window.turnstile.render(".register-turnstile")}),S.value=!0)})}return(e,t)=>{const k=me,B=pe,g=ye,F=we;return a(),u("div",ke,[n(s).settings.background?(a(),u("div",{key:1,style:re(W.value)},null,4)):(a(),u("div",Ve,t[11]||(t[11]=[ae('
',5)]))),r("div",he,[r("div",be,[r("span",Se,i(n(s).settings.title),1),m.value==="login"?(a(),u("span",$e,i(e.$t("loginTitle")),1)):(a(),u("span",Ee,i(e.$t("regTitle")),1)),P(r("div",null,[f(g,{class:ie(n(s).settings.loginDomain===0?"email-input":""),modelValue:v.email,"onUpdate:modelValue":t[1]||(t[1]=o=>v.email=o),type:"text",placeholder:e.$t("emailAccount"),autocomplete:"off"},ne({_:2},[n(s).settings.loginDomain===0?{name:"append",fn:h(()=>[r("div",{onClick:R(N,["stop"])},[m.value==="login"?(a(),b(B,{key:0,ref_key:"mySelect",ref:U,modelValue:p.value,"onUpdate:modelValue":t[0]||(t[0]=o=>p.value=o),placeholder:e.$t("select"),class:"select"},{default:h(()=>[(a(!0),u(K,null,x(n(_),o=>(a(),b(k,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):V("",!0),r("div",Me,[r("span",null,i(p.value),1),f(n(J),{class:"setting-icon",icon:"mingcute:down-small-fill",width:"20",height:"20"})])])]),key:"0"}:void 0]),1032,["class","modelValue","placeholder"]),f(g,{modelValue:v.password,"onUpdate:modelValue":t[2]||(t[2]=o=>v.password=o),placeholder:e.$t("password"),type:"password",autocomplete:"off"},null,8,["modelValue","placeholder"]),f(F,{class:"btn",type:"primary",onClick:X,loading:C.value},{default:h(()=>[M(i(e.$t("loginBtn")),1)]),_:1},8,["loading"])],512),[[A,m.value==="login"]]),P(r("div",null,[f(g,{class:"email-input",modelValue:l.email,"onUpdate:modelValue":t[4]||(t[4]=o=>l.email=o),type:"text",placeholder:e.$t("emailAccount"),autocomplete:"off"},{append:h(()=>[r("div",{onClick:R(N,["stop"])},[m.value!=="login"?(a(),b(B,{key:0,ref_key:"mySelect",ref:U,modelValue:p.value,"onUpdate:modelValue":t[3]||(t[3]=o=>p.value=o),placeholder:e.$t("select"),class:"select"},{default:h(()=>[(a(!0),u(K,null,x(n(_),o=>(a(),b(k,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])):V("",!0),r("div",null,[r("span",null,i(p.value),1),f(n(J),{class:"setting-icon",icon:"mingcute:down-small-fill",width:"20",height:"20"})])])]),_:1},8,["modelValue","placeholder"]),f(g,{modelValue:l.password,"onUpdate:modelValue":t[5]||(t[5]=o=>l.password=o),placeholder:e.$t("password"),type:"password",autocomplete:"off"},null,8,["modelValue","placeholder"]),f(g,{modelValue:l.confirmPassword,"onUpdate:modelValue":t[6]||(t[6]=o=>l.confirmPassword=o),placeholder:e.$t("confirmPwd"),type:"password",autocomplete:"off"},null,8,["modelValue","placeholder"]),n(s).settings.regKey===0?(a(),b(g,{key:0,modelValue:l.code,"onUpdate:modelValue":t[7]||(t[7]=o=>l.code=o),placeholder:e.$t("regKey"),type:"text",autocomplete:"off"},null,8,["modelValue","placeholder"])):V("",!0),n(s).settings.regKey===2?(a(),b(g,{key:1,modelValue:l.code,"onUpdate:modelValue":t[8]||(t[8]=o=>l.code=o),placeholder:e.$t("regKeyOptional"),type:"text",autocomplete:"off"},null,8,["modelValue","placeholder"])):V("",!0),P(r("div",{class:"register-turnstile","data-sitekey":n(s).settings.siteKey,"data-callback":"onTurnstileSuccess","data-error-callback":"onTurnstileError","data-after-interactive-callback":"loadAfter","data-before-interactive-callback":"loadBefore"},[n(T)?(a(),u("span",Ue,i(e.$t("verifyModuleFailed")),1)):V("",!0)],8,Ce),[[A,S.value]]),f(F,{class:"btn",type:"primary",onClick:Y,loading:E.value},{default:h(()=>[M(i(e.$t("regBtn")),1)]),_:1},8,["loading"])],512),[[A,m.value!=="login"]]),n(s).settings.register===0?(a(),u(K,{key:2},[m.value==="login"?(a(),u("div",{key:0,class:"switch",onClick:t[9]||(t[9]=o=>m.value="register")},[M(i(e.$t("noAccount"))+" ",1),r("span",null,i(e.$t("regSwitch")),1)])):(a(),u("div",{key:1,class:"switch",onClick:t[10]||(t[10]=o=>m.value="login")},[M(i(e.$t("hasAccount"))+" ",1),r("span",null,i(e.$t("loginSwitch")),1)]))],64)):V("",!0)])])])}}},qe=ve(_e,[["__scopeId","data-v-1de51574"]]);export{qe as default}; diff --git a/mail-worker/dist/assets/index-BHMvmcLh.js b/mail-worker/dist/assets/index-B-FK5jOI.js similarity index 91% rename from mail-worker/dist/assets/index-BHMvmcLh.js rename to mail-worker/dist/assets/index-B-FK5jOI.js index 35719ec..5b03536 100644 --- a/mail-worker/dist/assets/index-BHMvmcLh.js +++ b/mail-worker/dist/assets/index-B-FK5jOI.js @@ -1,4 +1,4 @@ -import{C as Q,b as Z,av as ee,a4 as W,_ as te,a as q,j as se,u as oe,z as A,k as z,a1 as F,a8 as ae,m,o as n,p as D,N as j,f as s,n as k,g as e,e as u,L as O,r as R,a6 as ne,c as h,h as P,t as d,P as J,ab as C,aw as le,O as ie,T as ce,w as re,I as de,F as X,al as me,af as ue,ao as he,D as pe,aj as fe,ax as ge,ah as ye,ap as _e,ay as U,an as V}from"./index-C-CeCRdr.js";import{E as ve}from"./el-image-viewer-XqafIo0e.js";import{E as we}from"./el-scrollbar-UsUjrt3r.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as ke}from"./email-B8ELHxI0.js";import{I as w}from"./iconify-DCkxz_hX.js";import{u as Se}from"./email-BtoX8In9.js";import{f as be}from"./day-BW7T5RG_.js";import{s as Ie,a as Ce}from"./star-CDDcKDKH.js";import{a as Ee,g as $e}from"./file-utils-xSqLUDrh.js";import{g as De}from"./icon-utils-BF6YYqhF.js";import{a as Te}from"./all-email-DJotz4SZ.js";import{u as Be,a as Ae}from"./index-CDAJLwwD.js";import{E as Me}from"./index-CKeGEg12.js";import"./vnode-iQPJucW4.js";import"./index-mPHfnfYT.js";import"./event-BB_Ol6Sd.js";import"./index-DbudBMlZ.js";import"./throttle-CyPLJsF9.js";import"./dayjs.min-C-kYcQPD.js";import"./index-D2TRjCYc.js";const Ne=["light","dark"],Fe=Z({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:ee(W),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Ne,default:"light"},...Be}),Re={open:()=>!0,close:S=>Q(S)||S instanceof Event},je=q({name:"ElAlert"}),He=q({...je,props:Fe,emits:Re,setup(S,{emit:v}){const p=S,{Close:b}=le,l=se(),i=oe("alert"),t=A(!1),y=z(()=>W[p.type]),c=z(()=>!!(p.description||l.default)),r=()=>{t.value=!0,v("open")},_=a=>{t.value=!1,v("close",a)},{onOpen:I,onClose:E}=Ae({showAfter:F(p,"showAfter"),hideAfter:F(p,"hideAfter"),autoClose:F(p,"autoClose"),open:r,close:_});return ae&&I(),(a,$)=>(n(),m(ce,{name:e(i).b("fade"),persisted:""},{default:D(()=>[j(s("div",{class:k([e(i).b(),e(i).m(a.type),e(i).is("center",a.center),e(i).is(a.effect)]),role:"alert"},[a.showIcon&&(a.$slots.icon||e(y))?(n(),m(e(O),{key:0,class:k([e(i).e("icon"),{[e(i).is("big")]:e(c)}])},{default:D(()=>[R(a.$slots,"icon",{},()=>[(n(),m(ne(e(y))))])]),_:3},8,["class"])):u("v-if",!0),s("div",{class:k(e(i).e("content"))},[a.title||a.$slots.title?(n(),h("span",{key:0,class:k([e(i).e("title"),{"with-description":e(c)}])},[R(a.$slots,"title",{},()=>[P(d(a.title),1)])],2)):u("v-if",!0),e(c)?(n(),h("p",{key:1,class:k(e(i).e("description"))},[R(a.$slots,"default",{},()=>[P(d(a.description),1)])],2)):u("v-if",!0),a.closable?(n(),h(J,{key:2},[a.closeText?(n(),h("div",{key:0,class:k([e(i).e("close-btn"),e(i).is("customed")]),onClick:_},d(a.closeText),3)):(n(),m(e(O),{key:1,class:k(e(i).e("close-btn")),onClick:e(E)},{default:D(()=>[C(e(b))]),_:1},8,["class","onClick"]))],64)):u("v-if",!0)],2)],2),[[ie,t.value]])]),_:3},8,["name"]))}});var Le=te(He,[["__file","alert.vue"]]);const xe=re(Le),ze={__name:"index",props:{html:{type:String,required:!0}},setup(S){const v=S,p=A(null),b=A(null);let l=null;function i(){const c=document.createElement("style");document.head.appendChild(c)}function t(){if(!l)return;const c=/]*style="([^"]*)"[^>]*>/i,r=v.html.match(c),_=r?r[1]:"",I=v.html.replace(/<\/?body[^>]*>/gi,"");l.innerHTML=` +import{C as Q,b as Z,av as ee,a4 as W,_ as te,a as q,j as se,u as oe,z as A,k as z,a1 as F,a8 as ae,m,o as n,p as D,N as j,f as s,n as k,g as e,e as u,L as O,r as R,a6 as ne,c as h,h as P,t as d,P as J,ab as C,aw as le,O as ie,T as ce,w as re,I as de,F as X,al as me,af as ue,ao as he,D as pe,aj as fe,ax as ge,ah as ye,ap as _e,ay as U,an as V}from"./index-DpP8vbvu.js";import{E as ve}from"./el-image-viewer-BT4BRtUp.js";import{E as we}from"./el-scrollbar-DIXSy-7M.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as ke}from"./email-CsVstZMr.js";import{I as w}from"./iconify-CxZjXnJf.js";import{u as Se}from"./email-BqixZxSP.js";import{f as be}from"./day-B6NtfdPE.js";import{s as Ie,a as Ce}from"./star-DxhhrwZA.js";import{a as Ee,g as $e}from"./file-utils-xSqLUDrh.js";import{g as De}from"./icon-utils-BF6YYqhF.js";import{a as Te}from"./all-email-hZpif8BK.js";import{u as Be,a as Ae}from"./index-dQfRzLGT.js";import{E as Me}from"./index-CcAtbSPY.js";import"./vnode-DPqF99Zc.js";import"./index-BMdPKuCq.js";import"./event-BB_Ol6Sd.js";import"./index-D7KcZu8a.js";import"./throttle-BCwYugI2.js";import"./dayjs.min-BjOfKEma.js";import"./index-BWeK8p2T.js";const Ne=["light","dark"],Fe=Z({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:ee(W),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Ne,default:"light"},...Be}),Re={open:()=>!0,close:S=>Q(S)||S instanceof Event},je=q({name:"ElAlert"}),He=q({...je,props:Fe,emits:Re,setup(S,{emit:v}){const p=S,{Close:b}=le,l=se(),i=oe("alert"),t=A(!1),y=z(()=>W[p.type]),c=z(()=>!!(p.description||l.default)),r=()=>{t.value=!0,v("open")},_=a=>{t.value=!1,v("close",a)},{onOpen:I,onClose:E}=Ae({showAfter:F(p,"showAfter"),hideAfter:F(p,"hideAfter"),autoClose:F(p,"autoClose"),open:r,close:_});return ae&&I(),(a,$)=>(n(),m(ce,{name:e(i).b("fade"),persisted:""},{default:D(()=>[j(s("div",{class:k([e(i).b(),e(i).m(a.type),e(i).is("center",a.center),e(i).is(a.effect)]),role:"alert"},[a.showIcon&&(a.$slots.icon||e(y))?(n(),m(e(O),{key:0,class:k([e(i).e("icon"),{[e(i).is("big")]:e(c)}])},{default:D(()=>[R(a.$slots,"icon",{},()=>[(n(),m(ne(e(y))))])]),_:3},8,["class"])):u("v-if",!0),s("div",{class:k(e(i).e("content"))},[a.title||a.$slots.title?(n(),h("span",{key:0,class:k([e(i).e("title"),{"with-description":e(c)}])},[R(a.$slots,"title",{},()=>[P(d(a.title),1)])],2)):u("v-if",!0),e(c)?(n(),h("p",{key:1,class:k(e(i).e("description"))},[R(a.$slots,"default",{},()=>[P(d(a.description),1)])],2)):u("v-if",!0),a.closable?(n(),h(J,{key:2},[a.closeText?(n(),h("div",{key:0,class:k([e(i).e("close-btn"),e(i).is("customed")]),onClick:_},d(a.closeText),3)):(n(),m(e(O),{key:1,class:k(e(i).e("close-btn")),onClick:e(E)},{default:D(()=>[C(e(b))]),_:1},8,["class","onClick"]))],64)):u("v-if",!0)],2)],2),[[ie,t.value]])]),_:3},8,["name"]))}});var Le=te(He,[["__file","alert.vue"]]);const xe=re(Le),ze={__name:"index",props:{html:{type:String,required:!0}},setup(S){const v=S,p=A(null),b=A(null);let l=null;function i(){const c=document.createElement("style");document.head.appendChild(c)}function t(){if(!l)return;const c=/]*style="([^"]*)"[^>]*>/i,r=v.html.match(c),_=r?r[1]:"",I=v.html.replace(/<\/?body[^>]*>/gi,"");l.innerHTML=`