ss-component-new 1.2.111 → 1.2.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-hWX_D7j7.js → MTLLoader-CxvMDUe0.js} +1 -1
- package/dist/{MTLLoader-BgOTItOM.cjs → MTLLoader-DGjQiY9j.cjs} +1 -1
- package/dist/{OBJLoader-C3tq7BYe.cjs → OBJLoader-DJpc8vUj.cjs} +1 -1
- package/dist/{OBJLoader-BukOM4Nu.js → OBJLoader-qAJoaDam.js} +1 -1
- package/dist/{OrbitControls-jkIlFyOy.js → OrbitControls-BMEUSilq.js} +1 -1
- package/dist/{OrbitControls-DKRnuekm.cjs → OrbitControls-Y0_MwO63.cjs} +1 -1
- package/dist/{URDFLoader-VSdgVBcE.js → URDFLoader-DFaB1rOB.js} +97 -97
- package/dist/{URDFLoader-CX_gwIob.cjs → URDFLoader-z_OD751c.cjs} +1 -1
- package/dist/{animationData-B6OrW5p6.js → animationData-Clde34ha.js} +7 -7
- package/dist/{animationData-C7dHVqYg.cjs → animationData-DcdD2uXH.cjs} +1 -1
- package/dist/{array-B_QF2OoW.js → array-DdC5qADi.js} +1 -1
- package/dist/{array-BgZ91brz.cjs → array-DyI9Z7da.cjs} +1 -1
- package/dist/{iconfont-BgB-_U_6.js → iconfont-BXKkx1g6.js} +88 -88
- package/dist/iconfont-Bi9FnKuf.cjs +1 -0
- package/dist/{index-d_PGJZkK.js → index-4PVKlafX.js} +1 -1
- package/dist/{index-CT0ojXx1.cjs → index-6hYePeg5.cjs} +1 -1
- package/dist/{index-cgzu94nF.cjs → index-B1DG30Df.cjs} +1 -1
- package/dist/{index-azgr74so.js → index-B8eH4yd_.js} +1 -1
- package/dist/{index-CUKZC4Nj.js → index-BAvTpFlb.js} +1 -1
- package/dist/{index-CbzP4t5J.cjs → index-BDUgsfdc.cjs} +1 -1
- package/dist/{index-DkTkLUFp.js → index-BGYM_yzB.js} +1 -1
- package/dist/index-BUC9msP6.cjs +1 -0
- package/dist/{index-9Bq99VYB.cjs → index-BWdy2G65.cjs} +1 -1
- package/dist/{index-BOfis0vA.js → index-BZBOlP5a.js} +3 -3
- package/dist/{index-Bx40M9YE.js → index-BfVijxl4.js} +1 -1
- package/dist/{index-CcCFQb0J.cjs → index-BgMxvBrj.cjs} +1 -1
- package/dist/{index-BheoHyAf.cjs → index-BsyhUS4V.cjs} +1 -1
- package/dist/{index-B2-FEPjF.js → index-BxrVd7R_.js} +1 -1
- package/dist/{index-BcQjNx-Q.cjs → index-C5pOxrIu.cjs} +1 -1
- package/dist/{index-Co-G3YR2.cjs → index-C6VrMmAM.cjs} +1 -1
- package/dist/{index-Cyq0NQxD.js → index-CH7VgZsg.js} +4 -4
- package/dist/{index-DTM9dTrs.js → index-CKtVnHqz.js} +1 -1
- package/dist/{index-D4M6WyOm.js → index-CL-M8PGp.js} +3422 -3421
- package/dist/{index-BPP3Oi4x.js → index-CNyI4C5D.js} +4 -4
- package/dist/{index-ClqfqYxq.cjs → index-CWUgMjDD.cjs} +1 -1
- package/dist/{index-C1XnW8VT.cjs → index-CXPAg3zi.cjs} +1 -1
- package/dist/{index-DPGM3-ZE.js → index-Cag9EKDi.js} +9 -9
- package/dist/{index-BNGaTEx5.cjs → index-Ce63svvK.cjs} +1 -1
- package/dist/{index-Dll9lcYi.js → index-Cfh6xox2.js} +1 -1
- package/dist/{index-D-h6ztpZ.cjs → index-CoVIQ7yB.cjs} +1 -1
- package/dist/{index-ygHebc1d.js → index-CrLgmQwX.js} +16 -16
- package/dist/{index-DaMyMwHq.js → index-Ct7FxVrb.js} +1 -1
- package/dist/{index-BKWeM8bu.js → index-D2J4nD2U.js} +3 -3
- package/dist/{index-CCixZ8x2.cjs → index-D6gzqbUQ.cjs} +1 -1
- package/dist/{index-DQW-r04P.js → index-D7uWgp_G.js} +1 -1
- package/dist/{index-Cs6-4hum.js → index-DZ6iK-To.js} +2 -2
- package/dist/{index-B_CKxC0N.cjs → index-Ddk7mQP9.cjs} +1 -1
- package/dist/{index-DbDdlA5q.js → index-Ddl5YPaT.js} +7 -7
- package/dist/{index-BE67ZntN.js → index-Dn7a-X3Y.js} +2 -2
- package/dist/index-DnoDETkE.cjs +1 -0
- package/dist/{index-9ASTWGRl.cjs → index-DvR7fcc6.cjs} +1 -1
- package/dist/{index-i-fwIxhy.cjs → index-Dw15nvpm.cjs} +1 -1
- package/dist/{index-DalbUyWu.cjs → index-DyLovBRT.cjs} +1 -1
- package/dist/{index-Cjs5dfSY.cjs → index-Md9bylWp.cjs} +1 -1
- package/dist/{index-Bnhk2Wum.js → index-OXqTOaYL.js} +1 -1
- package/dist/{index-6kcPKvxJ.cjs → index-PGBtNsFS.cjs} +1 -1
- package/dist/{index-VMUoElNW.js → index-bNwKGgV2.js} +4 -4
- package/dist/{index-Cf1Y1Sze.cjs → index-lOzwjQZi.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BgpRnb6p.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-D1CNkdop.js} +9 -9
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-cYS0o50W.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DzZjQSCB.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dgy71NC0.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DV9lk-8w.js} +22 -31
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-o8Cf7V1D.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D_eVz0Sp.cjs} +149 -149
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-D5E2HyCn.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Bo97w4bj.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BEM7doEB.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Deyo5lI4.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-C6g1KtOz.cjs → index.vue_vue_type_style_index_1_lang-BwsR7epS.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-Cqs4qqQV.js → index.vue_vue_type_style_index_1_lang-Duqg1WtV.js} +4 -4
- package/dist/{loaderUtil-BFbM8t6R.js → loaderUtil-1wRb28no.js} +1 -1
- package/dist/{loaderUtil-DWuLgv1P.cjs → loaderUtil-Cq8QCp9W.cjs} +1 -1
- package/dist/{main-BlxcR1aO.js → main-5e5sWLUD.js} +3 -3
- package/dist/{main-BIJA7Oyr.cjs → main-CBFpUWMt.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-wFgYGhPU.cjs → threeModel-BbUQzHU5.cjs} +1 -1
- package/dist/{threeModel-B8-8TvnY.js → threeModel-BqpIaxlN.js} +4 -4
- package/dist/{threePreview-vuENkCyX.cjs → threePreview-Aib1ZmEj.cjs} +1 -1
- package/dist/{threePreview-BgJvhDAL.js → threePreview-B-BL8PZx.js} +4 -4
- package/dist/{threeSceneView-D18FzdLv.js → threeSceneView-BVK89QUf.js} +8 -8
- package/dist/{threeSceneView-B7qSJrwR.cjs → threeSceneView-CLF-6z2y.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-RT8liwZe.js → threeSceneViewForCPMPIP-BjV_TpZd.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-9yi6jiex.cjs → threeSceneViewForCPMPIP-wW_fS1HP.cjs} +1 -1
- package/dist/threeTrackPathView-BwlIgu4k.js +605 -0
- package/dist/threeTrackPathView-CjpKhUbd.cjs +1 -0
- package/dist/{threeViewerHost-DeU3hwnv.js → threeViewerHost-D3LMGTE2.js} +2 -2
- package/dist/{threeViewerHost-LpwVv2oj.cjs → threeViewerHost-EljVz9SK.cjs} +1 -1
- package/dist/{urdfTree-DLpxOUSk.js → urdfTree-C1_9e3Ka.js} +1 -1
- package/dist/{urdfTree-DE-KsOZc.cjs → urdfTree-W9sGK4ua.cjs} +1 -1
- package/dist/{workpieceTreePanel-D2M5yIk2.js → workpieceTreePanel-B5YNWinu.js} +47 -47
- package/dist/{workpieceTreePanel-D0Y23OeS.cjs → workpieceTreePanel-DrSgMdW9.cjs} +1 -1
- package/package.json +1 -1
- package/dist/iconfont-DU9A12zM.cjs +0 -1
- package/dist/index-B-6muHKY.cjs +0 -1
- package/dist/index-CRIDwb3u.cjs +0 -1
- package/dist/threeTrackPathView-DWGdVtPl.js +0 -1458
- package/dist/threeTrackPathView-cB27_BKX.cjs +0 -370
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const $e=require("./index-CRIDwb3u.cjs"),e=require("vue"),L=require("./index-DOCHgBta.cjs"),a=require("./index-C8qRkCgn.cjs"),Pf=require("vue-router"),Ut=require("./index-9hspBVrQ.cjs"),No=require("./index-DalbUyWu.cjs"),me=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-o8Cf7V1D.cjs"),Bv=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Pv=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),To=require("./index-CCixZ8x2.cjs"),Vv=require("./index-CbzP4t5J.cjs"),Dv=require("./index-BbzUzdxF.cjs"),_o=require("./array-BgZ91brz.cjs"),Iv=require("./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-D5E2HyCn.cjs");function Ov(){}function Vf(t,n,o,l){for(var r=t.length,s=o+(l?1:-1);l?s--:++s<r;)if(n(t[s],s,t))return s;return-1}function $v(t){return t!==t}function Mv(t,n,o){for(var l=o-1,r=t.length;++l<r;)if(t[l]===n)return l;return-1}function xv(t,n,o){return n===n?Mv(t,n,o):Vf(t,$v,o)}function Av(t,n){var o=t==null?0:t.length;return!!o&&xv(t,n,0)>-1}function zv(t,n,o){var l=-1,r=t.length;n<0&&(n=-n>r?0:r+n),o=o>r?r:o,o<0&&(o+=r),r=n>o?0:o-n>>>0,n>>>=0;for(var s=Array(r);++l<r;)s[l]=t[l+n];return s}function Ct(){if(!arguments.length)return[];var t=arguments[0];return a.isArray(t)?t:[t]}function Rv(t,n,o){return t===t&&(o!==void 0&&(t=t<=o?t:o),n!==void 0&&(t=t>=n?t:n)),t}function vr(t,n,o){return o===void 0&&(o=n,n=void 0),o!==void 0&&(o=$e.toNumber(o),o=o===o?o:0),n!==void 0&&(n=$e.toNumber(n),n=n===n?n:0),Rv($e.toNumber(t),n,o)}var Lv=4;function $u(t){return a.baseClone(t,Lv)}var Fv=1,Kv=2;function Hv(t,n,o,l){var r=o.length,s=r;if(t==null)return!s;for(t=Object(t);r--;){var i=o[r];if(i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++r<s;){i=o[r];var c=i[0],u=t[c],d=i[1];if(i[2]){if(u===void 0&&!(c in t))return!1}else{var f=new a.Stack,p;if(!(p===void 0?a.baseIsEqual(d,u,Fv|Kv,l,f):p))return!1}}return!0}function Df(t){return t===t&&!a.isObject(t)}function jv(t){for(var n=a.keys(t),o=n.length;o--;){var l=n[o],r=t[l];n[o]=[l,r,Df(r)]}return n}function If(t,n){return function(o){return o==null?!1:o[t]===n&&(n!==void 0||t in Object(o))}}function Wv(t){var n=jv(t);return n.length==1&&n[0][2]?If(n[0][0],n[0][1]):function(o){return o===t||Hv(o,t,n)}}var Uv=1,qv=2;function Yv(t,n){return a.isKey(t)&&Df(n)?If(a.toKey(t),n):function(o){var l=a.get(o,t);return l===void 0&&l===n?L.hasIn(o,t):a.baseIsEqual(n,l,Uv|qv)}}function Gv(t){return function(n){return n==null?void 0:n[t]}}function Xv(t){return function(n){return a.baseGet(n,t)}}function Jv(t){return a.isKey(t)?Gv(a.toKey(t)):Xv(t)}function Of(t){return typeof t=="function"?t:t==null?L.identity:typeof t=="object"?a.isArray(t)?Yv(t[0],t[1]):Wv(t):Jv(t)}function Zv(t,n){return t&&me.baseFor(t,n,a.keys)}function Qv(t,n){return function(o,l){if(o==null)return o;if(!a.isArrayLike(o))return t(o,l);for(var r=o.length,s=-1,i=Object(o);++s<r&&l(i[s],s,i)!==!1;);return o}}var eg=Qv(Zv);function tg(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}function $f(t,n,o){var l=t==null?0:t.length;if(!l)return-1;var r=l-1;return Vf(t,Of(n),r,!0)}function ng(t,n){var o=-1,l=a.isArrayLike(t)?Array(t.length):[];return eg(t,function(r,s,i){l[++o]=n(r,s,i)}),l}function og(t,n){var o=a.isArray(t)?a.arrayMap:ng;return o(t,Of(n))}function Mf(t,n){return L.baseFlatten(og(t,n),1)}var lg=1/0;function ag(t){var n=t==null?0:t.length;return n?L.baseFlatten(t,lg):[]}function rg(t,n){return n.length<2?t:a.baseGet(t,zv(n,0,-1))}function Ql(t){return t===null}function sg(t,n){return n=a.castPath(n,t),t=rg(t,n),t==null||delete t[a.toKey(tg(n))]}function ig(t){return me.isPlainObject(t)?void 0:t}var cg=1,ug=2,dg=4,gr=L.flatRest(function(t,n){var o={};if(t==null)return o;var l=!1;n=a.arrayMap(n,function(s){return s=a.castPath(s,t),l||(l=s.length>1),s}),a.copyObject(t,a.getAllKeysIn(t),o),l&&(o=a.baseClone(o,cg|ug|dg,ig));for(var r=n.length;r--;)sg(o,n[r]);return o}),fg="Expected a function";function to(t,n,o){var l=!0,r=!0;if(typeof t!="function")throw new TypeError(fg);return a.isObject(o)&&(l="leading"in o?!!o.leading:l,r="trailing"in o?!!o.trailing:r),$e.debounce(t,n,{leading:l,maxWait:n,trailing:r})}var pg=1/0,mg=a.Set&&1/a.setToArray(new a.Set([,-0]))[1]==pg?function(t){return new a.Set(t)}:Ov,hg=200;function vg(t,n,o){var l=-1,r=Av,s=t.length,i=!0,c=[],u=c;if(s>=hg){var d=mg(t);if(d)return a.setToArray(d);i=!1,r=a.cacheHas,u=new a.SetCache}else u=c;e:for(;++l<s;){var f=t[l],p=f;if(f=f!==0?f:0,i&&p===p){for(var v=u.length;v--;)if(u[v]===p)continue e;c.push(f)}else r(u,p,o)||(u!==c&&u.push(p),c.push(f))}return c}var Ir=me.baseRest(function(t){return vg(L.baseFlatten(t,1,me.isArrayLikeObject,!0))});const gg="2.11.7",Mu=Symbol("INSTALLED_KEY"),yg=(t=[])=>({version:gg,install:(o,l)=>{o[Mu]||(o[Mu]=!0,t.forEach(r=>o.use(r)),l&&a.provideGlobalConfig(l,o,!0))}}),bg=a.buildProps({zIndex:{type:a.definePropType([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Cg={scroll:({scrollTop:t,fixed:n})=>a.isNumber(t)&&a.isBoolean(n),[L.CHANGE_EVENT]:t=>a.isBoolean(t)},xf="ElAffix",kg=e.defineComponent({name:xf}),Eg=e.defineComponent({...kg,props:bg,emits:Cg,setup(t,{expose:n,emit:o}){const l=t,r=a.useNamespace("affix"),s=e.shallowRef(),i=e.shallowRef(),c=e.shallowRef(),{height:u}=a.useWindowSize(),{height:d,width:f,top:p,bottom:v,update:m}=a.useElementBounding(i,{windowScroll:!1}),y=a.useElementBounding(s),h=e.ref(!1),g=e.ref(0),C=e.ref(0),E=e.computed(()=>({height:h.value?`${d.value}px`:"",width:h.value?`${f.value}px`:""})),k=e.computed(()=>{if(!h.value)return{};const _=l.offset?a.addUnit(l.offset):0;return{height:`${d.value}px`,width:`${f.value}px`,top:l.position==="top"?_:"",bottom:l.position==="bottom"?_:"",transform:C.value?`translateY(${C.value}px)`:"",zIndex:l.zIndex}}),b=()=>{if(!c.value)return;g.value=c.value instanceof Window?document.documentElement.scrollTop:c.value.scrollTop||0;const{position:_,target:P,offset:B}=l,T=B+d.value;if(_==="top")if(P){const N=y.bottom.value-T;h.value=B>p.value&&y.bottom.value>0,C.value=N<0?N:0}else h.value=B>p.value;else if(P){const N=u.value-y.top.value-T;h.value=u.value-B<v.value&&u.value>y.top.value,C.value=N<0?-N:0}else h.value=u.value-B<v.value},w=async()=>{if(!h.value){m();return}h.value=!1,await e.nextTick(),m(),h.value=!0},S=async()=>{m(),await e.nextTick(),o("scroll",{scrollTop:g.value,fixed:h.value})};return e.watch(h,_=>o(L.CHANGE_EVENT,_)),e.onMounted(()=>{var _;l.target?(s.value=(_=document.querySelector(l.target))!=null?_:void 0,s.value||a.throwError(xf,`Target does not exist: ${l.target}`)):s.value=document.documentElement,c.value=L.getScrollContainer(i.value,!0),m()}),a.useEventListener(c,"scroll",S),e.watchEffect(b),n({update:b,updateRoot:w}),(_,P)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:i,class:e.normalizeClass(e.unref(r).b()),style:e.normalizeStyle(e.unref(E))},[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(r).m("fixed")]:h.value}),style:e.normalizeStyle(e.unref(k))},[e.renderSlot(_.$slots,"default")],6)],6))}});var wg=a._export_sfc(Eg,[["__file","affix.vue"]]);const Sg=a.withInstall(wg);function xu(){let t;const n=(l,r)=>{o(),t=window.setTimeout(l,r)},o=()=>window.clearTimeout(t);return a.tryOnScopeDispose(()=>o()),{registerTimeout:n,cancelTimeout:o}}const Af=a.buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),zf=({showAfter:t,hideAfter:n,autoClose:o,open:l,close:r})=>{const{registerTimeout:s}=xu(),{registerTimeout:i,cancelTimeout:c}=xu();return{onOpen:(f,p=e.unref(t))=>{s(()=>{l(f);const v=e.unref(o);a.isNumber(v)&&v>0&&i(()=>{r(f)},v)},p)},onClose:(f,p=e.unref(n))=>{c(),s(()=>{r(f)},p)}}},Ng=["light","dark"],Tg=a.buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:a.keysOf(a.TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Ng,default:"light"},...Af,showAfter:Number}),_g={open:()=>!0,close:t=>a.isUndefined(t)||t instanceof Event},Bg=e.defineComponent({name:"ElAlert"}),Pg=e.defineComponent({...Bg,props:Tg,emits:_g,setup(t,{emit:n}){const o=t,{Close:l}=a.TypeComponents,r=e.useSlots(),s=a.useNamespace("alert"),i=e.ref(a.isUndefined(o.showAfter)),c=e.computed(()=>a.TypeComponentsMap[o.type]),u=e.computed(()=>!!(o.description||r.default)),d=()=>{i.value=!0,n("open")},f=m=>{i.value=!1,n("close",m)},{onOpen:p,onClose:v}=zf({showAfter:e.toRef(o,"showAfter",0),hideAfter:e.toRef(o,"hideAfter"),autoClose:e.toRef(o,"autoClose"),open:d,close:f});return a.isClient&&p(),(m,y)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(s).b(),e.unref(s).m(m.type),e.unref(s).is("center",m.center),e.unref(s).is(m.effect)]),role:"alert"},[m.showIcon&&(m.$slots.icon||e.unref(c))?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(s).is("big",e.unref(u))])},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c))))])]),_:3},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("content"))},[m.title||m.$slots.title?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(s).e("title"),{"with-description":e.unref(u)}])},[e.renderSlot(m.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(m.title),1)])],2)):e.createCommentVNode("v-if",!0),e.unref(u)?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(e.unref(s).e("description"))},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.description),1)])],2)):e.createCommentVNode("v-if",!0),m.closable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.closeText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(s).e("close-btn"),e.unref(s).is("customed")]),onClick:f},e.toDisplayString(m.closeText),3)):(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:1,class:e.normalizeClass(e.unref(s).e("close-btn")),onClick:e.unref(v)},{default:e.withCtx(()=>[e.createVNode(e.unref(l))]),_:1},8,["class","onClick"]))],64)):e.createCommentVNode("v-if",!0)],2)],2),[[e.vShow,i.value]])]),_:3},8,["name"]))}});var Vg=a._export_sfc(Pg,[["__file","alert.vue"]]);const Dg=a.withInstall(Vg),uo=4,Rf={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"}},Ig=({move:t,size:n,bar:o})=>({[o.size]:n,transform:`translate${o.axis}(${t}%)`}),ei=Symbol("scrollbarContextKey"),Og=a.buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),$g="Thumb",Mg=e.defineComponent({__name:"thumb",props:Og,setup(t){const n=t,o=e.inject(ei),l=a.useNamespace("scrollbar");o||a.throwError($g,"can not inject scrollbar context");const r=e.ref(),s=e.ref(),i=e.ref({}),c=e.ref(!1);let u=!1,d=!1,f=0,p=0,v=a.isClient?document.onselectstart:null;const m=e.computed(()=>Rf[n.vertical?"vertical":"horizontal"]),y=e.computed(()=>Ig({size:n.size,move:n.move,bar:m.value})),h=e.computed(()=>r.value[m.value.offset]**2/o.wrapElement[m.value.scrollSize]/n.ratio/s.value[m.value.offset]),g=P=>{var B;if(P.stopPropagation(),P.ctrlKey||[1,2].includes(P.button))return;(B=window.getSelection())==null||B.removeAllRanges(),E(P);const T=P.currentTarget;T&&(i.value[m.value.axis]=T[m.value.offset]-(P[m.value.client]-T.getBoundingClientRect()[m.value.direction]))},C=P=>{if(!s.value||!r.value||!o.wrapElement)return;const B=Math.abs(P.target.getBoundingClientRect()[m.value.direction]-P[m.value.client]),T=s.value[m.value.offset]/2,N=(B-T)*100*h.value/r.value[m.value.offset];o.wrapElement[m.value.scroll]=N*o.wrapElement[m.value.scrollSize]/100},E=P=>{P.stopImmediatePropagation(),u=!0,f=o.wrapElement.scrollHeight,p=o.wrapElement.scrollWidth,document.addEventListener("mousemove",k),document.addEventListener("mouseup",b),v=document.onselectstart,document.onselectstart=()=>!1},k=P=>{if(!r.value||!s.value||u===!1)return;const B=i.value[m.value.axis];if(!B)return;const T=(r.value.getBoundingClientRect()[m.value.direction]-P[m.value.client])*-1,N=s.value[m.value.offset]-B,V=(T-N)*100*h.value/r.value[m.value.offset];m.value.scroll==="scrollLeft"?o.wrapElement[m.value.scroll]=V*p/100:o.wrapElement[m.value.scroll]=V*f/100},b=()=>{u=!1,i.value[m.value.axis]=0,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",b),_(),d&&(c.value=!1)},w=()=>{d=!1,c.value=!!n.size},S=()=>{d=!0,c.value=u};e.onBeforeUnmount(()=>{_(),document.removeEventListener("mouseup",b)});const _=()=>{document.onselectstart!==v&&(document.onselectstart=v)};return a.useEventListener(e.toRef(o,"scrollbarElement"),"mousemove",w),a.useEventListener(e.toRef(o,"scrollbarElement"),"mouseleave",S),(P,B)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(l).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"instance",ref:r,class:e.normalizeClass([e.unref(l).e("bar"),e.unref(l).is(e.unref(m).key)]),onMousedown:C,onClick:e.withModifiers(()=>{},["stop"])},[e.createElementVNode("div",{ref_key:"thumb",ref:s,class:e.normalizeClass(e.unref(l).e("thumb")),style:e.normalizeStyle(e.unref(y)),onMousedown:g},null,38)],42,["onClick"]),[[e.vShow,P.always||c.value]])]),_:1},8,["name"]))}});var Au=a._export_sfc(Mg,[["__file","thumb.vue"]]);const xg=a.buildProps({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Ag=e.defineComponent({__name:"bar",props:xg,setup(t,{expose:n}){const o=t,l=e.inject(ei),r=e.ref(0),s=e.ref(0),i=e.ref(""),c=e.ref(""),u=e.ref(1),d=e.ref(1);return n({handleScroll:v=>{if(v){const m=v.offsetHeight-uo,y=v.offsetWidth-uo;s.value=v.scrollTop*100/m*u.value,r.value=v.scrollLeft*100/y*d.value}},update:()=>{const v=l==null?void 0:l.wrapElement;if(!v)return;const m=v.offsetHeight-uo,y=v.offsetWidth-uo,h=m**2/v.scrollHeight,g=y**2/v.scrollWidth,C=Math.max(h,o.minSize),E=Math.max(g,o.minSize);u.value=h/(m-h)/(C/(m-C)),d.value=g/(y-g)/(E/(y-E)),c.value=C+uo<m?`${C}px`:"",i.value=E+uo<y?`${E}px`:""}}),(v,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Au,{move:r.value,ratio:d.value,size:i.value,always:v.always},null,8,["move","ratio","size","always"]),e.createVNode(Au,{move:s.value,ratio:u.value,size:c.value,vertical:"",always:v.always},null,8,["move","ratio","size","always"])],64))}});var zg=a._export_sfc(Ag,[["__file","bar.vue"]]);const Rg=a.buildProps({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:a.definePropType([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,...L.useAriaProps(["ariaLabel","ariaOrientation"])}),Lf={"end-reached":t=>["left","right","top","bottom"].includes(t),scroll:({scrollTop:t,scrollLeft:n})=>[t,n].every(a.isNumber)},ns="ElScrollbar",Lg=e.defineComponent({name:ns}),Fg=e.defineComponent({...Lg,props:Rg,emits:Lf,setup(t,{expose:n,emit:o}){const l=t,r=a.useNamespace("scrollbar");let s,i,c,u=0,d=0,f="";const p={bottom:!1,top:!1,right:!1,left:!1},v=e.ref(),m=e.ref(),y=e.ref(),h=e.ref(),g=e.computed(()=>{const N={};return l.height&&(N.height=a.addUnit(l.height)),l.maxHeight&&(N.maxHeight=a.addUnit(l.maxHeight)),[l.wrapStyle,N]}),C=e.computed(()=>[l.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!l.native}]),E=e.computed(()=>[r.e("view"),l.viewClass]),k=N=>{var V;return(V=p[N])!=null?V:!1},b={top:"bottom",bottom:"top",left:"right",right:"left"},w=N=>{const V=b[f];if(!V)return;const R=N[f],j=N[V];R&&!p[f]&&(p[f]=!0),!j&&p[V]&&(p[V]=!1)},S=()=>{var N;if(m.value){(N=h.value)==null||N.handleScroll(m.value);const V=u,R=d;u=m.value.scrollTop,d=m.value.scrollLeft;const j={bottom:u+m.value.clientHeight>=m.value.scrollHeight-l.distance,top:u<=l.distance&&V!==0,right:d+m.value.clientWidth>=m.value.scrollWidth-l.distance&&R!==d,left:d<=l.distance&&R!==0};if(o("scroll",{scrollTop:u,scrollLeft:d}),V!==u&&(f=u>V?"bottom":"top"),R!==d&&(f=d>R?"right":"left"),l.distance>0){if(k(f))return;w(j)}j[f]&&o("end-reached",f)}};function _(N,V){a.isObject$1(N)?m.value.scrollTo(N):a.isNumber(N)&&a.isNumber(V)&&m.value.scrollTo(N,V)}const P=N=>{if(!a.isNumber(N)){a.debugWarn(ns,"value must be a number");return}m.value.scrollTop=N},B=N=>{if(!a.isNumber(N)){a.debugWarn(ns,"value must be a number");return}m.value.scrollLeft=N},T=()=>{var N;(N=h.value)==null||N.update(),p[f]=!1};return e.watch(()=>l.noresize,N=>{N?(s==null||s(),i==null||i(),c==null||c()):({stop:s}=a.useResizeObserver(y,T),{stop:i}=a.useResizeObserver(m,T),c=a.useEventListener("resize",T))},{immediate:!0}),e.watch(()=>[l.maxHeight,l.height],()=>{l.native||e.nextTick(()=>{var N;T(),m.value&&((N=h.value)==null||N.handleScroll(m.value))})}),e.provide(ei,e.reactive({scrollbarElement:v,wrapElement:m})),e.onActivated(()=>{m.value&&(m.value.scrollTop=u,m.value.scrollLeft=d)}),e.onMounted(()=>{l.native||e.nextTick(()=>{T()})}),e.onUpdated(()=>T()),n({wrapRef:m,update:T,scrollTo:_,setScrollTop:P,setScrollLeft:B,handleScroll:S}),(N,V)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollbarRef",ref:v,class:e.normalizeClass(e.unref(r).b())},[e.createElementVNode("div",{ref_key:"wrapRef",ref:m,class:e.normalizeClass(e.unref(C)),style:e.normalizeStyle(e.unref(g)),tabindex:N.tabindex,onScroll:S},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N.tag),{id:N.id,ref_key:"resizeRef",ref:y,class:e.normalizeClass(e.unref(E)),style:e.normalizeStyle(N.viewStyle),role:N.role,"aria-label":N.ariaLabel,"aria-orientation":N.ariaOrientation},{default:e.withCtx(()=>[e.renderSlot(N.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),N.native?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(zg,{key:0,ref_key:"barRef",ref:h,always:N.always,"min-size":N.minSize},null,8,["always","min-size"]))],2))}});var Kg=a._export_sfc(Fg,[["__file","scrollbar.vue"]]);const Zt=a.withInstall(Kg),ti=Symbol("popper"),Ff=Symbol("popperContent"),Kf=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Hf=a.buildProps({role:{type:String,values:Kf,default:"tooltip"}}),Hg=e.defineComponent({name:"ElPopper",inheritAttrs:!1}),jg=e.defineComponent({...Hg,props:Hf,setup(t,{expose:n}){const o=t,l=e.ref(),r=e.ref(),s=e.ref(),i=e.ref(),c=e.computed(()=>o.role),u={triggerRef:l,popperInstanceRef:r,contentRef:s,referenceRef:i,role:c};return n(u),e.provide(ti,u),(d,f)=>e.renderSlot(d.$slots,"default")}});var Wg=a._export_sfc(jg,[["__file","popper.vue"]]);const Ug=e.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),qg=e.defineComponent({...Ug,setup(t,{expose:n}){const o=a.useNamespace("popper"),{arrowRef:l,arrowStyle:r}=e.inject(Ff,void 0);return e.onBeforeUnmount(()=>{l.value=void 0}),n({arrowRef:l}),(s,i)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"arrowRef",ref:l,class:e.normalizeClass(e.unref(o).e("arrow")),style:e.normalizeStyle(e.unref(r)),"data-popper-arrow":""},null,6))}});var Yg=a._export_sfc(qg,[["__file","arrow.vue"]]);const jf=a.buildProps({virtualRef:{type:a.definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:a.definePropType(Function)},onMouseleave:{type:a.definePropType(Function)},onClick:{type:a.definePropType(Function)},onKeydown:{type:a.definePropType(Function)},onFocus:{type:a.definePropType(Function)},onBlur:{type:a.definePropType(Function)},onContextmenu:{type:a.definePropType(Function)},id:String,open:Boolean}),Wf=Symbol("elForwardRef"),Gg=t=>{const n=o=>{t.value=o};e.provide(Wf,{setForwardRef:n})},Xg=t=>({mounted(n){t(n)},updated(n){t(n)},unmounted(){t(null)}}),Or="ElOnlyChild",Uf=e.defineComponent({name:Or,setup(t,{slots:n,attrs:o}){var l;const r=e.inject(Wf),s=Xg((l=r==null?void 0:r.setForwardRef)!=null?l:a.NOOP);return()=>{var i;const c=(i=n.default)==null?void 0:i.call(n,o);if(!c)return null;const[u,d]=qf(c);return u?(d>1&&a.debugWarn(Or,"requires exact only one valid child."),e.withDirectives(e.cloneVNode(u,o),[[s]])):(a.debugWarn(Or,"no valid child node found"),null)}}});function qf(t){if(!t)return[null,0];const n=t,o=n.filter(l=>l.type!==e.Comment).length;for(const l of n){if(a.isObject$1(l))switch(l.type){case e.Comment:continue;case e.Text:case"svg":return[zu(l),o];case e.Fragment:return qf(l.children);default:return[l,o]}return[zu(l),o]}return[null,0]}function zu(t){const n=a.useNamespace("only-child");return e.createVNode("span",{class:n.e("content")},[t])}const Jg=e.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),Zg=e.defineComponent({...Jg,props:jf,setup(t,{expose:n}){const o=t,{role:l,triggerRef:r}=e.inject(ti,void 0);Gg(r);const s=e.computed(()=>c.value?o.id:void 0),i=e.computed(()=>{if(l&&l.value==="tooltip")return o.open&&o.id?o.id:void 0}),c=e.computed(()=>{if(l&&l.value!=="tooltip")return l.value}),u=e.computed(()=>c.value?`${o.open}`:void 0);let d;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return e.onMounted(()=>{e.watch(()=>o.virtualRef,p=>{p&&(r.value=a.unrefElement(p))},{immediate:!0}),e.watch(r,(p,v)=>{d==null||d(),d=void 0,a.isElement(p)&&(f.forEach(m=>{var y;const h=o[m];h&&(p.addEventListener(m.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(m)),(y=v==null?void 0:v.removeEventListener)==null||y.call(v,m.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(m)))}),L.isFocusable(p)&&(d=e.watch([s,i,c,u],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((y,h)=>{a.isNil(m[h])?p.removeAttribute(y):p.setAttribute(y,m[h])})},{immediate:!0}))),a.isElement(v)&&L.isFocusable(v)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>v.removeAttribute(m))},{immediate:!0})}),e.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,r.value&&a.isElement(r.value)){const p=r.value;f.forEach(v=>{const m=o[v];m&&p.removeEventListener(v.slice(2).toLowerCase(),m,["onFocus","onBlur"].includes(v))}),r.value=void 0}}),n({triggerRef:r}),(p,v)=>p.virtualTriggering?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(Uf),e.mergeProps({key:0},p.$attrs,{"aria-controls":e.unref(s),"aria-describedby":e.unref(i),"aria-expanded":e.unref(u),"aria-haspopup":e.unref(c)}),{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Qg=a._export_sfc(Zg,[["__file","trigger.vue"]]),Mt="top",Gt="bottom",Xt="right",xt="left",ni="auto",ea=[Mt,Gt,Xt,xt],Bo="start",Al="end",ey="clippingParents",Yf="viewport",kl="popper",ty="reference",Ru=ea.reduce(function(t,n){return t.concat([n+"-"+Bo,n+"-"+Al])},[]),_n=[].concat(ea,[ni]).reduce(function(t,n){return t.concat([n,n+"-"+Bo,n+"-"+Al])},[]),ny="beforeRead",oy="read",ly="afterRead",ay="beforeMain",ry="main",sy="afterMain",iy="beforeWrite",cy="write",uy="afterWrite",dy=[ny,oy,ly,ay,ry,sy,iy,cy,uy];function hn(t){return t?(t.nodeName||"").toLowerCase():null}function nn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Po(t){var n=nn(t).Element;return t instanceof n||t instanceof Element}function Yt(t){var n=nn(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function oi(t){if(typeof ShadowRoot>"u")return!1;var n=nn(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function fy(t){var n=t.state;Object.keys(n.elements).forEach(function(o){var l=n.styles[o]||{},r=n.attributes[o]||{},s=n.elements[o];!Yt(s)||!hn(s)||(Object.assign(s.style,l),Object.keys(r).forEach(function(i){var c=r[i];c===!1?s.removeAttribute(i):s.setAttribute(i,c===!0?"":c)}))})}function py(t){var n=t.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(l){var r=n.elements[l],s=n.attributes[l]||{},i=Object.keys(n.styles.hasOwnProperty(l)?n.styles[l]:o[l]),c=i.reduce(function(u,d){return u[d]="",u},{});!Yt(r)||!hn(r)||(Object.assign(r.style,c),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}var Gf={name:"applyStyles",enabled:!0,phase:"write",fn:fy,effect:py,requires:["computeStyles"]};function fn(t){return t.split("-")[0]}var no=Math.max,Ya=Math.min,Vo=Math.round;function Do(t,n){n===void 0&&(n=!1);var o=t.getBoundingClientRect(),l=1,r=1;if(Yt(t)&&n){var s=t.offsetHeight,i=t.offsetWidth;i>0&&(l=Vo(o.width)/i||1),s>0&&(r=Vo(o.height)/s||1)}return{width:o.width/l,height:o.height/r,top:o.top/r,right:o.right/l,bottom:o.bottom/r,left:o.left/l,x:o.left/l,y:o.top/r}}function li(t){var n=Do(t),o=t.offsetWidth,l=t.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-l)<=1&&(l=n.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:l}}function Xf(t,n){var o=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(o&&oi(o)){var l=n;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Sn(t){return nn(t).getComputedStyle(t)}function my(t){return["table","td","th"].indexOf(hn(t))>=0}function jn(t){return((Po(t)?t.ownerDocument:t.document)||window.document).documentElement}function yr(t){return hn(t)==="html"?t:t.assignedSlot||t.parentNode||(oi(t)?t.host:null)||jn(t)}function Lu(t){return!Yt(t)||Sn(t).position==="fixed"?null:t.offsetParent}function hy(t){var n=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&Yt(t)){var l=Sn(t);if(l.position==="fixed")return null}var r=yr(t);for(oi(r)&&(r=r.host);Yt(r)&&["html","body"].indexOf(hn(r))<0;){var s=Sn(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function ta(t){for(var n=nn(t),o=Lu(t);o&&my(o)&&Sn(o).position==="static";)o=Lu(o);return o&&(hn(o)==="html"||hn(o)==="body"&&Sn(o).position==="static")?n:o||hy(t)||n}function ai(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $l(t,n,o){return no(t,Ya(n,o))}function vy(t,n,o){var l=$l(t,n,o);return l>o?o:l}function Jf(){return{top:0,right:0,bottom:0,left:0}}function Zf(t){return Object.assign({},Jf(),t)}function Qf(t,n){return n.reduce(function(o,l){return o[l]=t,o},{})}var gy=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Zf(typeof t!="number"?t:Qf(t,ea))};function yy(t){var n,o=t.state,l=t.name,r=t.options,s=o.elements.arrow,i=o.modifiersData.popperOffsets,c=fn(o.placement),u=ai(c),d=[xt,Xt].indexOf(c)>=0,f=d?"height":"width";if(!(!s||!i)){var p=gy(r.padding,o),v=li(s),m=u==="y"?Mt:xt,y=u==="y"?Gt:Xt,h=o.rects.reference[f]+o.rects.reference[u]-i[u]-o.rects.popper[f],g=i[u]-o.rects.reference[u],C=ta(s),E=C?u==="y"?C.clientHeight||0:C.clientWidth||0:0,k=h/2-g/2,b=p[m],w=E-v[f]-p[y],S=E/2-v[f]/2+k,_=$l(b,S,w),P=u;o.modifiersData[l]=(n={},n[P]=_,n.centerOffset=_-S,n)}}function by(t){var n=t.state,o=t.options,l=o.element,r=l===void 0?"[data-popper-arrow]":l;r!=null&&(typeof r=="string"&&(r=n.elements.popper.querySelector(r),!r)||!Xf(n.elements.popper,r)||(n.elements.arrow=r))}var Cy={name:"arrow",enabled:!0,phase:"main",fn:yy,effect:by,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Io(t){return t.split("-")[1]}var ky={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ey(t){var n=t.x,o=t.y,l=window,r=l.devicePixelRatio||1;return{x:Vo(n*r)/r||0,y:Vo(o*r)/r||0}}function Fu(t){var n,o=t.popper,l=t.popperRect,r=t.placement,s=t.variation,i=t.offsets,c=t.position,u=t.gpuAcceleration,d=t.adaptive,f=t.roundOffsets,p=t.isFixed,v=i.x,m=v===void 0?0:v,y=i.y,h=y===void 0?0:y,g=typeof f=="function"?f({x:m,y:h}):{x:m,y:h};m=g.x,h=g.y;var C=i.hasOwnProperty("x"),E=i.hasOwnProperty("y"),k=xt,b=Mt,w=window;if(d){var S=ta(o),_="clientHeight",P="clientWidth";if(S===nn(o)&&(S=jn(o),Sn(S).position!=="static"&&c==="absolute"&&(_="scrollHeight",P="scrollWidth")),S=S,r===Mt||(r===xt||r===Xt)&&s===Al){b=Gt;var B=p&&S===w&&w.visualViewport?w.visualViewport.height:S[_];h-=B-l.height,h*=u?1:-1}if(r===xt||(r===Mt||r===Gt)&&s===Al){k=Xt;var T=p&&S===w&&w.visualViewport?w.visualViewport.width:S[P];m-=T-l.width,m*=u?1:-1}}var N=Object.assign({position:c},d&&ky),V=f===!0?Ey({x:m,y:h}):{x:m,y:h};if(m=V.x,h=V.y,u){var R;return Object.assign({},N,(R={},R[b]=E?"0":"",R[k]=C?"0":"",R.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",R))}return Object.assign({},N,(n={},n[b]=E?h+"px":"",n[k]=C?m+"px":"",n.transform="",n))}function wy(t){var n=t.state,o=t.options,l=o.gpuAcceleration,r=l===void 0?!0:l,s=o.adaptive,i=s===void 0?!0:s,c=o.roundOffsets,u=c===void 0?!0:c,d={placement:fn(n.placement),variation:Io(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Fu(Object.assign({},d,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i,roundOffsets:u})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Fu(Object.assign({},d,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var ep={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wy,data:{}},fa={passive:!0};function Sy(t){var n=t.state,o=t.instance,l=t.options,r=l.scroll,s=r===void 0?!0:r,i=l.resize,c=i===void 0?!0:i,u=nn(n.elements.popper),d=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&d.forEach(function(f){f.addEventListener("scroll",o.update,fa)}),c&&u.addEventListener("resize",o.update,fa),function(){s&&d.forEach(function(f){f.removeEventListener("scroll",o.update,fa)}),c&&u.removeEventListener("resize",o.update,fa)}}var tp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Sy,data:{}},Ny={left:"right",right:"left",bottom:"top",top:"bottom"};function wa(t){return t.replace(/left|right|bottom|top/g,function(n){return Ny[n]})}var Ty={start:"end",end:"start"};function Ku(t){return t.replace(/start|end/g,function(n){return Ty[n]})}function ri(t){var n=nn(t),o=n.pageXOffset,l=n.pageYOffset;return{scrollLeft:o,scrollTop:l}}function si(t){return Do(jn(t)).left+ri(t).scrollLeft}function _y(t){var n=nn(t),o=jn(t),l=n.visualViewport,r=o.clientWidth,s=o.clientHeight,i=0,c=0;return l&&(r=l.width,s=l.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=l.offsetLeft,c=l.offsetTop)),{width:r,height:s,x:i+si(t),y:c}}function By(t){var n,o=jn(t),l=ri(t),r=(n=t.ownerDocument)==null?void 0:n.body,s=no(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=no(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),c=-l.scrollLeft+si(t),u=-l.scrollTop;return Sn(r||o).direction==="rtl"&&(c+=no(o.clientWidth,r?r.clientWidth:0)-s),{width:s,height:i,x:c,y:u}}function ii(t){var n=Sn(t),o=n.overflow,l=n.overflowX,r=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+l)}function np(t){return["html","body","#document"].indexOf(hn(t))>=0?t.ownerDocument.body:Yt(t)&&ii(t)?t:np(yr(t))}function Ml(t,n){var o;n===void 0&&(n=[]);var l=np(t),r=l===((o=t.ownerDocument)==null?void 0:o.body),s=nn(l),i=r?[s].concat(s.visualViewport||[],ii(l)?l:[]):l,c=n.concat(i);return r?c:c.concat(Ml(yr(i)))}function os(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Py(t){var n=Do(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Hu(t,n){return n===Yf?os(_y(t)):Po(n)?Py(n):os(By(jn(t)))}function Vy(t){var n=Ml(yr(t)),o=["absolute","fixed"].indexOf(Sn(t).position)>=0,l=o&&Yt(t)?ta(t):t;return Po(l)?n.filter(function(r){return Po(r)&&Xf(r,l)&&hn(r)!=="body"}):[]}function Dy(t,n,o){var l=n==="clippingParents"?Vy(t):[].concat(n),r=[].concat(l,[o]),s=r[0],i=r.reduce(function(c,u){var d=Hu(t,u);return c.top=no(d.top,c.top),c.right=Ya(d.right,c.right),c.bottom=Ya(d.bottom,c.bottom),c.left=no(d.left,c.left),c},Hu(t,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function op(t){var n=t.reference,o=t.element,l=t.placement,r=l?fn(l):null,s=l?Io(l):null,i=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2,u;switch(r){case Mt:u={x:i,y:n.y-o.height};break;case Gt:u={x:i,y:n.y+n.height};break;case Xt:u={x:n.x+n.width,y:c};break;case xt:u={x:n.x-o.width,y:c};break;default:u={x:n.x,y:n.y}}var d=r?ai(r):null;if(d!=null){var f=d==="y"?"height":"width";switch(s){case Bo:u[d]=u[d]-(n[f]/2-o[f]/2);break;case Al:u[d]=u[d]+(n[f]/2-o[f]/2);break}}return u}function zl(t,n){n===void 0&&(n={});var o=n,l=o.placement,r=l===void 0?t.placement:l,s=o.boundary,i=s===void 0?ey:s,c=o.rootBoundary,u=c===void 0?Yf:c,d=o.elementContext,f=d===void 0?kl:d,p=o.altBoundary,v=p===void 0?!1:p,m=o.padding,y=m===void 0?0:m,h=Zf(typeof y!="number"?y:Qf(y,ea)),g=f===kl?ty:kl,C=t.rects.popper,E=t.elements[v?g:f],k=Dy(Po(E)?E:E.contextElement||jn(t.elements.popper),i,u),b=Do(t.elements.reference),w=op({reference:b,element:C,placement:r}),S=os(Object.assign({},C,w)),_=f===kl?S:b,P={top:k.top-_.top+h.top,bottom:_.bottom-k.bottom+h.bottom,left:k.left-_.left+h.left,right:_.right-k.right+h.right},B=t.modifiersData.offset;if(f===kl&&B){var T=B[r];Object.keys(P).forEach(function(N){var V=[Xt,Gt].indexOf(N)>=0?1:-1,R=[Mt,Gt].indexOf(N)>=0?"y":"x";P[N]+=T[R]*V})}return P}function Iy(t,n){n===void 0&&(n={});var o=n,l=o.placement,r=o.boundary,s=o.rootBoundary,i=o.padding,c=o.flipVariations,u=o.allowedAutoPlacements,d=u===void 0?_n:u,f=Io(l),p=f?c?Ru:Ru.filter(function(y){return Io(y)===f}):ea,v=p.filter(function(y){return d.indexOf(y)>=0});v.length===0&&(v=p);var m=v.reduce(function(y,h){return y[h]=zl(t,{placement:h,boundary:r,rootBoundary:s,padding:i})[fn(h)],y},{});return Object.keys(m).sort(function(y,h){return m[y]-m[h]})}function Oy(t){if(fn(t)===ni)return[];var n=wa(t);return[Ku(t),n,Ku(n)]}function $y(t){var n=t.state,o=t.options,l=t.name;if(!n.modifiersData[l]._skip){for(var r=o.mainAxis,s=r===void 0?!0:r,i=o.altAxis,c=i===void 0?!0:i,u=o.fallbackPlacements,d=o.padding,f=o.boundary,p=o.rootBoundary,v=o.altBoundary,m=o.flipVariations,y=m===void 0?!0:m,h=o.allowedAutoPlacements,g=n.options.placement,C=fn(g),E=C===g,k=u||(E||!y?[wa(g)]:Oy(g)),b=[g].concat(k).reduce(function(Y,W){return Y.concat(fn(W)===ni?Iy(n,{placement:W,boundary:f,rootBoundary:p,padding:d,flipVariations:y,allowedAutoPlacements:h}):W)},[]),w=n.rects.reference,S=n.rects.popper,_=new Map,P=!0,B=b[0],T=0;T<b.length;T++){var N=b[T],V=fn(N),R=Io(N)===Bo,j=[Mt,Gt].indexOf(V)>=0,q=j?"width":"height",D=zl(n,{placement:N,boundary:f,rootBoundary:p,altBoundary:v,padding:d}),$=j?R?Xt:xt:R?Gt:Mt;w[q]>S[q]&&($=wa($));var A=wa($),O=[];if(s&&O.push(D[V]<=0),c&&O.push(D[$]<=0,D[A]<=0),O.every(function(Y){return Y})){B=N,P=!1;break}_.set(N,O)}if(P)for(var M=y?3:1,F=function(Y){var W=b.find(function(te){var re=_.get(te);if(re)return re.slice(0,Y).every(function(Q){return Q})});if(W)return B=W,"break"},x=M;x>0;x--){var K=F(x);if(K==="break")break}n.placement!==B&&(n.modifiersData[l]._skip=!0,n.placement=B,n.reset=!0)}}var My={name:"flip",enabled:!0,phase:"main",fn:$y,requiresIfExists:["offset"],data:{_skip:!1}};function ju(t,n,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-n.height-o.y,right:t.right-n.width+o.x,bottom:t.bottom-n.height+o.y,left:t.left-n.width-o.x}}function Wu(t){return[Mt,Xt,Gt,xt].some(function(n){return t[n]>=0})}function xy(t){var n=t.state,o=t.name,l=n.rects.reference,r=n.rects.popper,s=n.modifiersData.preventOverflow,i=zl(n,{elementContext:"reference"}),c=zl(n,{altBoundary:!0}),u=ju(i,l),d=ju(c,r,s),f=Wu(u),p=Wu(d);n.modifiersData[o]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:p},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}var Ay={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xy};function zy(t,n,o){var l=fn(t),r=[xt,Mt].indexOf(l)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},n,{placement:t})):o,i=s[0],c=s[1];return i=i||0,c=(c||0)*r,[xt,Xt].indexOf(l)>=0?{x:c,y:i}:{x:i,y:c}}function Ry(t){var n=t.state,o=t.options,l=t.name,r=o.offset,s=r===void 0?[0,0]:r,i=_n.reduce(function(f,p){return f[p]=zy(p,n.rects,s),f},{}),c=i[n.placement],u=c.x,d=c.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=u,n.modifiersData.popperOffsets.y+=d),n.modifiersData[l]=i}var Ly={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ry};function Fy(t){var n=t.state,o=t.name;n.modifiersData[o]=op({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}var lp={name:"popperOffsets",enabled:!0,phase:"read",fn:Fy,data:{}};function Ky(t){return t==="x"?"y":"x"}function Hy(t){var n=t.state,o=t.options,l=t.name,r=o.mainAxis,s=r===void 0?!0:r,i=o.altAxis,c=i===void 0?!1:i,u=o.boundary,d=o.rootBoundary,f=o.altBoundary,p=o.padding,v=o.tether,m=v===void 0?!0:v,y=o.tetherOffset,h=y===void 0?0:y,g=zl(n,{boundary:u,rootBoundary:d,padding:p,altBoundary:f}),C=fn(n.placement),E=Io(n.placement),k=!E,b=ai(C),w=Ky(b),S=n.modifiersData.popperOffsets,_=n.rects.reference,P=n.rects.popper,B=typeof h=="function"?h(Object.assign({},n.rects,{placement:n.placement})):h,T=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),N=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,V={x:0,y:0};if(S){if(s){var R,j=b==="y"?Mt:xt,q=b==="y"?Gt:Xt,D=b==="y"?"height":"width",$=S[b],A=$+g[j],O=$-g[q],M=m?-P[D]/2:0,F=E===Bo?_[D]:P[D],x=E===Bo?-P[D]:-_[D],K=n.elements.arrow,Y=m&&K?li(K):{width:0,height:0},W=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Jf(),te=W[j],re=W[q],Q=$l(0,_[D],Y[D]),X=k?_[D]/2-M-Q-te-T.mainAxis:F-Q-te-T.mainAxis,G=k?-_[D]/2+M+Q+re+T.mainAxis:x+Q+re+T.mainAxis,I=n.elements.arrow&&ta(n.elements.arrow),H=I?b==="y"?I.clientTop||0:I.clientLeft||0:0,Z=(R=N==null?void 0:N[b])!=null?R:0,J=$+X-Z-H,le=$+G-Z,oe=$l(m?Ya(A,J):A,$,m?no(O,le):O);S[b]=oe,V[b]=oe-$}if(c){var ee,U=b==="x"?Mt:xt,se=b==="x"?Gt:Xt,z=S[w],ne=w==="y"?"height":"width",_e=z+g[U],ye=z-g[se],Pe=[Mt,xt].indexOf(C)!==-1,Ve=(ee=N==null?void 0:N[w])!=null?ee:0,Ae=Pe?_e:z-_[ne]-P[ne]-Ve+T.altAxis,ue=Pe?z+_[ne]+P[ne]-Ve-T.altAxis:ye,we=m&&Pe?vy(Ae,z,ue):$l(m?Ae:_e,z,m?ue:ye);S[w]=we,V[w]=we-z}n.modifiersData[l]=V}}var jy={name:"preventOverflow",enabled:!0,phase:"main",fn:Hy,requiresIfExists:["offset"]};function Wy(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Uy(t){return t===nn(t)||!Yt(t)?ri(t):Wy(t)}function qy(t){var n=t.getBoundingClientRect(),o=Vo(n.width)/t.offsetWidth||1,l=Vo(n.height)/t.offsetHeight||1;return o!==1||l!==1}function Yy(t,n,o){o===void 0&&(o=!1);var l=Yt(n),r=Yt(n)&&qy(n),s=jn(n),i=Do(t,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(l||!l&&!o)&&((hn(n)!=="body"||ii(s))&&(c=Uy(n)),Yt(n)?(u=Do(n,!0),u.x+=n.clientLeft,u.y+=n.clientTop):s&&(u.x=si(s))),{x:i.left+c.scrollLeft-u.x,y:i.top+c.scrollTop-u.y,width:i.width,height:i.height}}function Gy(t){var n=new Map,o=new Set,l=[];t.forEach(function(s){n.set(s.name,s)});function r(s){o.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(c){if(!o.has(c)){var u=n.get(c);u&&r(u)}}),l.push(s)}return t.forEach(function(s){o.has(s.name)||r(s)}),l}function Xy(t){var n=Gy(t);return dy.reduce(function(o,l){return o.concat(n.filter(function(r){return r.phase===l}))},[])}function Jy(t){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(t())})})),n}}function Zy(t){var n=t.reduce(function(o,l){var r=o[l.name];return o[l.name]=r?Object.assign({},r,l,{options:Object.assign({},r.options,l.options),data:Object.assign({},r.data,l.data)}):l,o},{});return Object.keys(n).map(function(o){return n[o]})}var Uu={placement:"bottom",modifiers:[],strategy:"absolute"};function qu(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return!n.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function ci(t){t===void 0&&(t={});var n=t,o=n.defaultModifiers,l=o===void 0?[]:o,r=n.defaultOptions,s=r===void 0?Uu:r;return function(i,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Uu,s),modifiersData:{},elements:{reference:i,popper:c},attributes:{},styles:{}},f=[],p=!1,v={state:d,setOptions:function(h){var g=typeof h=="function"?h(d.options):h;y(),d.options=Object.assign({},s,d.options,g),d.scrollParents={reference:Po(i)?Ml(i):i.contextElement?Ml(i.contextElement):[],popper:Ml(c)};var C=Xy(Zy([].concat(l,d.options.modifiers)));return d.orderedModifiers=C.filter(function(E){return E.enabled}),m(),v.update()},forceUpdate:function(){if(!p){var h=d.elements,g=h.reference,C=h.popper;if(qu(g,C)){d.rects={reference:Yy(g,ta(C),d.options.strategy==="fixed"),popper:li(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var k=d.orderedModifiers[E],b=k.fn,w=k.options,S=w===void 0?{}:w,_=k.name;typeof b=="function"&&(d=b({state:d,options:S,name:_,instance:v})||d)}}}},update:Jy(function(){return new Promise(function(h){v.forceUpdate(),h(d)})}),destroy:function(){y(),p=!0}};if(!qu(i,c))return v;v.setOptions(u).then(function(h){!p&&u.onFirstUpdate&&u.onFirstUpdate(h)});function m(){d.orderedModifiers.forEach(function(h){var g=h.name,C=h.options,E=C===void 0?{}:C,k=h.effect;if(typeof k=="function"){var b=k({state:d,name:g,instance:v,options:E}),w=function(){};f.push(b||w)}})}function y(){f.forEach(function(h){return h()}),f=[]}return v}}ci();var Qy=[tp,lp,ep,Gf];ci({defaultModifiers:Qy});var eb=[tp,lp,ep,Gf,Ly,My,jy,Cy,Ay],tb=ci({defaultModifiers:eb});const ap=a.buildProps({arrowOffset:{type:Number,default:5}}),nb=["fixed","absolute"],ob=a.buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:a.definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:_n,default:"bottom"},popperOptions:{type:a.definePropType(Object),default:()=>({})},strategy:{type:String,values:nb,default:"absolute"}}),rp=a.buildProps({...ob,...ap,id:String,style:{type:a.definePropType([String,Array,Object])},className:{type:a.definePropType([String,Array,Object])},effect:{type:a.definePropType(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:a.definePropType([String,Array,Object])},popperStyle:{type:a.definePropType([String,Array,Object])},referenceEl:{type:a.definePropType(Object)},triggerTargetEl:{type:a.definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...L.useAriaProps(["ariaLabel"]),loop:Boolean}),lb={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},ab=(t,n)=>{const o=e.ref(!1),l=e.ref();return{focusStartRef:l,trapped:o,onFocusAfterReleased:d=>{var f;((f=d.detail)==null?void 0:f.focusReason)!=="pointer"&&(l.value="first",n("blur"))},onFocusAfterTrapped:()=>{n("focus")},onFocusInTrap:d=>{t.visible&&!o.value&&(d.target&&(l.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{t.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,n("close")}}},rb=(t,n=[])=>{const{placement:o,strategy:l,popperOptions:r}=t,s={placement:o,strategy:l,...r,modifiers:[...ib(t),...n]};return cb(s,r==null?void 0:r.modifiers),s},sb=t=>{if(a.isClient)return a.unrefElement(t)};function ib(t){const{offset:n,gpuAcceleration:o,fallbackPlacements:l}=t;return[{name:"offset",options:{offset:[0,n??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:l}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function cb(t,n){n&&(t.modifiers=[...t.modifiers,...n??[]])}const ub=(t,n,o={})=>{const l={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=db(u);Object.assign(i.value,d)},requires:["computeStyles"]},r=e.computed(()=>{const{onFirstUpdate:u,placement:d,strategy:f,modifiers:p}=e.unref(o);return{onFirstUpdate:u,placement:d||"bottom",strategy:f||"absolute",modifiers:[...p||[],l,{name:"applyStyles",enabled:!1}]}}),s=e.shallowRef(),i=e.ref({styles:{popper:{position:e.unref(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return e.watch(r,u=>{const d=e.unref(s);d&&d.setOptions(u)},{deep:!0}),e.watch([t,n],([u,d])=>{c(),!(!u||!d)&&(s.value=tb(u,d,e.unref(r)))}),e.onBeforeUnmount(()=>{c()}),{state:e.computed(()=>{var u;return{...((u=e.unref(s))==null?void 0:u.state)||{}}}),styles:e.computed(()=>e.unref(i).styles),attributes:e.computed(()=>e.unref(i).attributes),update:()=>{var u;return(u=e.unref(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=e.unref(s))==null?void 0:u.forceUpdate()},instanceRef:e.computed(()=>e.unref(s))}};function db(t){const n=Object.keys(t.elements),o=a.fromPairs(n.map(r=>[r,t.styles[r]||{}])),l=a.fromPairs(n.map(r=>[r,t.attributes[r]]));return{styles:o,attributes:l}}const fb=0,pb=t=>{const{popperInstanceRef:n,contentRef:o,triggerRef:l,role:r}=e.inject(ti,void 0),s=e.ref(),i=e.computed(()=>t.arrowOffset),c=e.computed(()=>({name:"eventListeners",enabled:!!t.visible})),u=e.computed(()=>{var C;const E=e.unref(s),k=(C=e.unref(i))!=null?C:fb;return{name:"arrow",enabled:!$e.isUndefined(E),options:{element:E,padding:k}}}),d=e.computed(()=>({onFirstUpdate:()=>{y()},...rb(t,[e.unref(u),e.unref(c)])})),f=e.computed(()=>sb(t.referenceEl)||e.unref(l)),{attributes:p,state:v,styles:m,update:y,forceUpdate:h,instanceRef:g}=ub(f,o,d);return e.watch(g,C=>n.value=C,{flush:"sync"}),e.onMounted(()=>{e.watch(()=>{var C,E;return(E=(C=e.unref(f))==null?void 0:C.getBoundingClientRect)==null?void 0:E.call(C)},()=>{y()})}),{attributes:p,arrowRef:s,contentRef:o,instanceRef:g,state:v,styles:m,role:r,forceUpdate:h,update:y}},mb=(t,{attributes:n,styles:o,role:l})=>{const{nextZIndex:r}=a.useZIndex(),s=a.useNamespace("popper"),i=e.computed(()=>e.unref(n).popper),c=e.ref(a.isNumber(t.zIndex)?t.zIndex:r()),u=e.computed(()=>[s.b(),s.is("pure",t.pure),s.is(t.effect),t.popperClass]),d=e.computed(()=>[{zIndex:e.unref(c)},e.unref(o).popper,t.popperStyle||{}]),f=e.computed(()=>l.value==="dialog"?"false":void 0),p=e.computed(()=>e.unref(o).arrow||{});return{ariaModal:f,arrowStyle:p,contentAttrs:i,contentClass:u,contentStyle:d,contentZIndex:c,updateZIndex:()=>{c.value=a.isNumber(t.zIndex)?t.zIndex:r()}}},hb=e.defineComponent({name:"ElPopperContent"}),vb=e.defineComponent({...hb,props:rp,emits:lb,setup(t,{expose:n,emit:o}){const l=t,{focusStartRef:r,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:c,onFocusInTrap:u,onFocusoutPrevented:d,onReleaseRequested:f}=ab(l,o),{attributes:p,arrowRef:v,contentRef:m,styles:y,instanceRef:h,role:g,update:C}=pb(l),{ariaModal:E,arrowStyle:k,contentAttrs:b,contentClass:w,contentStyle:S,updateZIndex:_}=mb(l,{styles:y,attributes:p,role:g}),P=e.inject(L.formItemContextKey,void 0);e.provide(Ff,{arrowStyle:k,arrowRef:v}),P&&e.provide(L.formItemContextKey,{...P,addInputId:a.NOOP,removeInputId:a.NOOP});let B;const T=(V=!0)=>{C(),V&&_()},N=()=>{T(!1),l.visible&&l.focusOnShow?s.value=!0:l.visible===!1&&(s.value=!1)};return e.onMounted(()=>{e.watch(()=>l.triggerTargetEl,(V,R)=>{B==null||B(),B=void 0;const j=e.unref(V||m.value),q=e.unref(R||m.value);a.isElement(j)&&(B=e.watch([g,()=>l.ariaLabel,E,()=>l.id],D=>{["role","aria-label","aria-modal","id"].forEach(($,A)=>{a.isNil(D[A])?j.removeAttribute($):j.setAttribute($,D[A])})},{immediate:!0})),q!==j&&a.isElement(q)&&["role","aria-label","aria-modal","id"].forEach(D=>{q.removeAttribute(D)})},{immediate:!0}),e.watch(()=>l.visible,N,{immediate:!0})}),e.onBeforeUnmount(()=>{B==null||B(),B=void 0}),n({popperContentRef:m,popperInstanceRef:h,updatePopper:T,contentStyle:S}),(V,R)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"contentRef",ref:m},e.unref(b),{style:e.unref(S),class:e.unref(w),tabindex:"-1",onMouseenter:j=>V.$emit("mouseenter",j),onMouseleave:j=>V.$emit("mouseleave",j)}),[e.createVNode(e.unref(L.ElFocusTrap),{loop:V.loop,trapped:e.unref(s),"trap-on-focus-in":!0,"focus-trap-el":e.unref(m),"focus-start-el":e.unref(r),onFocusAfterTrapped:e.unref(c),onFocusAfterReleased:e.unref(i),onFocusin:e.unref(u),onFocusoutPrevented:e.unref(d),onReleaseRequested:e.unref(f)},{default:e.withCtx(()=>[e.renderSlot(V.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var gb=a._export_sfc(vb,[["__file","content.vue"]]);const sp=a.withInstall(Wg),ui=Symbol("elTooltip"),br=a.buildProps({to:{type:a.definePropType([String,Object]),required:!0},disabled:Boolean}),qe=a.buildProps({...Af,...rp,appendTo:{type:br.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:a.definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...L.useAriaProps(["ariaLabel"])}),pn=a.buildProps({...jf,disabled:Boolean,trigger:{type:a.definePropType([String,Array]),default:"hover"},triggerKeys:{type:a.definePropType(Array),default:()=>[a.EVENT_CODE.enter,a.EVENT_CODE.numpadEnter,a.EVENT_CODE.space]},focusOnTarget:Boolean}),yb=a.buildProp({type:a.definePropType(Boolean),default:null}),bb=a.buildProp({type:a.definePropType(Function)}),Cb=t=>{const n=`update:${t}`,o=`onUpdate:${t}`,l=[n],r={[t]:yb,[o]:bb};return{useModelToggle:({indicator:i,toggleReason:c,shouldHideWhenRouteChanges:u,shouldProceed:d,onShow:f,onHide:p})=>{const v=e.getCurrentInstance(),{emit:m}=v,y=v.props,h=e.computed(()=>a.isFunction(y[o])),g=e.computed(()=>y[t]===null),C=_=>{i.value!==!0&&(i.value=!0,c&&(c.value=_),a.isFunction(f)&&f(_))},E=_=>{i.value!==!1&&(i.value=!1,c&&(c.value=_),a.isFunction(p)&&p(_))},k=_=>{if(y.disabled===!0||a.isFunction(d)&&!d())return;const P=h.value&&a.isClient;P&&m(n,!0),(g.value||!P)&&C(_)},b=_=>{if(y.disabled===!0||!a.isClient)return;const P=h.value&&a.isClient;P&&m(n,!1),(g.value||!P)&&E(_)},w=_=>{a.isBoolean(_)&&(y.disabled&&_?h.value&&m(n,!1):i.value!==_&&(_?C():E()))},S=()=>{i.value?b():k()};return e.watch(()=>y[t],w),u&&v.appContext.config.globalProperties.$route!==void 0&&e.watch(()=>({...v.proxy.$route}),()=>{u.value&&i.value&&b()}),e.onMounted(()=>{w(y[t])}),{hide:b,show:k,toggle:S,hasUpdateHandler:h}},useModelToggleProps:r,useModelToggleEmits:l}},{useModelToggleProps:kb,useModelToggleEmits:Eb,useModelToggle:wb}=Cb("visible"),Sb=a.buildProps({...Hf,...kb,...qe,...pn,...ap,showArrow:{type:Boolean,default:!0}}),Nb=[...Eb,"before-show","before-hide","show","hide","open","close"],ls=(t,n)=>a.isArray$1(t)?t.includes(n):t===n,fo=(t,n,o)=>l=>{ls(e.unref(t),n)&&o(l)},Tb=e.defineComponent({name:"ElTooltipTrigger"}),_b=e.defineComponent({...Tb,props:pn,setup(t,{expose:n}){const o=t,l=a.useNamespace("tooltip"),{controlled:r,id:s,open:i,onOpen:c,onClose:u,onToggle:d}=e.inject(ui,void 0),f=e.ref(null),p=()=>{if(e.unref(r)||o.disabled)return!0},v=e.toRef(o,"trigger"),m=a.composeEventHandlers(p,fo(v,"hover",b=>{c(b),o.focusOnTarget&&b.target&&e.nextTick(()=>{L.focusElement(b.target,{preventScroll:!0})})})),y=a.composeEventHandlers(p,fo(v,"hover",u)),h=a.composeEventHandlers(p,fo(v,"click",b=>{b.button===0&&d(b)})),g=a.composeEventHandlers(p,fo(v,"focus",c)),C=a.composeEventHandlers(p,fo(v,"focus",u)),E=a.composeEventHandlers(p,fo(v,"contextmenu",b=>{b.preventDefault(),d(b)})),k=a.composeEventHandlers(p,b=>{const w=a.getEventCode(b);o.triggerKeys.includes(w)&&(b.preventDefault(),d(b))});return n({triggerRef:f}),(b,w)=>(e.openBlock(),e.createBlock(e.unref(Qg),{id:e.unref(s),"virtual-ref":b.virtualRef,open:e.unref(i),"virtual-triggering":b.virtualTriggering,class:e.normalizeClass(e.unref(l).e("trigger")),onBlur:e.unref(C),onClick:e.unref(h),onContextmenu:e.unref(E),onFocus:e.unref(g),onMouseenter:e.unref(m),onMouseleave:e.unref(y),onKeydown:e.unref(k)},{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Bb=a._export_sfc(_b,[["__file","trigger.vue"]]);const Pb=e.defineComponent({__name:"teleport",props:br,setup(t){return(n,o)=>n.disabled?e.renderSlot(n.$slots,"default",{key:0}):(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:n.to},[e.renderSlot(n.$slots,"default")],8,["to"]))}});var Vb=a._export_sfc(Pb,[["__file","teleport.vue"]]);const na=a.withInstall(Vb),ip=()=>{const t=a.useGetDerivedNamespace(),n=L.useIdInjection(),o=e.computed(()=>`${t.value}-popper-container-${n.prefix}`),l=e.computed(()=>`#${o.value}`);return{id:o,selector:l}},Db=t=>{const n=document.createElement("div");return n.id=t,document.body.appendChild(n),n},Ib=()=>{const{id:t,selector:n}=ip();return e.onBeforeMount(()=>{a.isClient&&(document.body.querySelector(n.value)||Db(t.value))}),{id:t,selector:n}},Yu=t=>[...new Set(t)],El=t=>a.isArray$1(t)?t[0]:t,Pt=t=>!t&&t!==0?[]:a.isArray$1(t)?t:[t],Ob=e.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),$b=e.defineComponent({...Ob,props:qe,setup(t,{expose:n}){const o=t,{selector:l}=ip(),r=a.useNamespace("tooltip"),s=e.ref(),i=a.computedEager(()=>{var A;return(A=s.value)==null?void 0:A.popperContentRef});let c;const{controlled:u,id:d,open:f,trigger:p,onClose:v,onOpen:m,onShow:y,onHide:h,onBeforeShow:g,onBeforeHide:C}=e.inject(ui,void 0),E=e.computed(()=>o.transition||`${r.namespace.value}-fade-in-linear`),k=e.computed(()=>o.persistent);e.onBeforeUnmount(()=>{c==null||c()});const b=e.computed(()=>e.unref(k)?!0:e.unref(f)),w=e.computed(()=>o.disabled?!1:e.unref(f)),S=e.computed(()=>o.appendTo||l.value),_=e.computed(()=>{var A;return(A=o.style)!=null?A:{}}),P=e.ref(!0),B=()=>{h(),$()&&L.focusElement(document.body,{preventScroll:!0}),P.value=!0},T=()=>{if(e.unref(u))return!0},N=a.composeEventHandlers(T,()=>{o.enterable&&ls(e.unref(p),"hover")&&m()}),V=a.composeEventHandlers(T,()=>{ls(e.unref(p),"hover")&&v()}),R=()=>{var A,O;(O=(A=s.value)==null?void 0:A.updatePopper)==null||O.call(A),g==null||g()},j=()=>{C==null||C()},q=()=>{y()},D=()=>{o.virtualTriggering||v()},$=A=>{var O;const M=(O=s.value)==null?void 0:O.popperContentRef,F=(A==null?void 0:A.relatedTarget)||document.activeElement;return M==null?void 0:M.contains(F)};return e.watch(()=>e.unref(f),A=>{A?(P.value=!1,c=a.onClickOutside(i,()=>{if(e.unref(u))return;Pt(e.unref(p)).every(M=>M!=="hover"&&M!=="focus")&&v()},{detectIframe:!0})):c==null||c()},{flush:"post"}),e.watch(()=>o.content,()=>{var A,O;(O=(A=s.value)==null?void 0:A.updatePopper)==null||O.call(A)}),n({contentRef:s,isFocusInsideContent:$}),(A,O)=>(e.openBlock(),e.createBlock(e.unref(na),{disabled:!A.teleported,to:e.unref(S)},{default:e.withCtx(()=>[e.unref(b)||!P.value?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:e.unref(E),appear:!e.unref(k),onAfterLeave:B,onBeforeEnter:R,onAfterEnter:q,onBeforeLeave:j,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(gb),e.mergeProps({id:e.unref(d),ref_key:"contentRef",ref:s},A.$attrs,{"aria-label":A.ariaLabel,"aria-hidden":P.value,"boundaries-padding":A.boundariesPadding,"fallback-placements":A.fallbackPlacements,"gpu-acceleration":A.gpuAcceleration,offset:A.offset,placement:A.placement,"popper-options":A.popperOptions,"arrow-offset":A.arrowOffset,strategy:A.strategy,effect:A.effect,enterable:A.enterable,pure:A.pure,"popper-class":A.popperClass,"popper-style":[A.popperStyle,e.unref(_)],"reference-el":A.referenceEl,"trigger-target-el":A.triggerTargetEl,visible:e.unref(w),"z-index":A.zIndex,loop:A.loop,onMouseenter:e.unref(N),onMouseleave:e.unref(V),onBlur:D,onClose:e.unref(v)}),{default:e.withCtx(()=>[e.renderSlot(A.$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","loop","onMouseenter","onMouseleave","onClose"]),[[e.vShow,e.unref(w)]])]),_:3},8,["name","appear"])):e.createCommentVNode("v-if",!0)]),_:3},8,["disabled","to"]))}});var Mb=a._export_sfc($b,[["__file","content.vue"]]);const xb=e.defineComponent({name:"ElTooltip"}),Ab=e.defineComponent({...xb,props:Sb,emits:Nb,setup(t,{expose:n,emit:o}){const l=t;Ib();const r=a.useNamespace("tooltip"),s=L.useId(),i=e.ref(),c=e.ref(),u=()=>{var k;const b=e.unref(i);b&&((k=b.popperInstanceRef)==null||k.update())},d=e.ref(!1),f=e.ref(),{show:p,hide:v,hasUpdateHandler:m}=wb({indicator:d,toggleReason:f}),{onOpen:y,onClose:h}=zf({showAfter:e.toRef(l,"showAfter"),hideAfter:e.toRef(l,"hideAfter"),autoClose:e.toRef(l,"autoClose"),open:p,close:v}),g=e.computed(()=>a.isBoolean(l.visible)&&!m.value),C=e.computed(()=>[r.b(),l.popperClass]);e.provide(ui,{controlled:g,id:s,open:e.readonly(d),trigger:e.toRef(l,"trigger"),onOpen:y,onClose:h,onToggle:k=>{e.unref(d)?h(k):y(k)},onShow:()=>{o("show",f.value)},onHide:()=>{o("hide",f.value)},onBeforeShow:()=>{o("before-show",f.value)},onBeforeHide:()=>{o("before-hide",f.value)},updatePopper:u}),e.watch(()=>l.disabled,k=>{k&&d.value&&(d.value=!1)});const E=k=>{var b;return(b=c.value)==null?void 0:b.isFocusInsideContent(k)};return e.onDeactivated(()=>d.value&&v()),n({popperRef:i,contentRef:c,isFocusInsideContent:E,updatePopper:u,onOpen:y,onClose:h,hide:v}),(k,b)=>(e.openBlock(),e.createBlock(e.unref(sp),{ref_key:"popperRef",ref:i,role:k.role},{default:e.withCtx(()=>[e.createVNode(Bb,{disabled:k.disabled,trigger:k.trigger,"trigger-keys":k.triggerKeys,"virtual-ref":k.virtualRef,"virtual-triggering":k.virtualTriggering,"focus-on-target":k.focusOnTarget},{default:e.withCtx(()=>[k.$slots.default?e.renderSlot(k.$slots,"default",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),e.createVNode(Mb,{ref_key:"contentRef",ref:c,"aria-label":k.ariaLabel,"boundaries-padding":k.boundariesPadding,content:k.content,disabled:k.disabled,effect:k.effect,enterable:k.enterable,"fallback-placements":k.fallbackPlacements,"hide-after":k.hideAfter,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,persistent:k.persistent,"popper-class":e.unref(C),"popper-style":k.popperStyle,placement:k.placement,"popper-options":k.popperOptions,"arrow-offset":k.arrowOffset,pure:k.pure,"raw-content":k.rawContent,"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,"show-after":k.showAfter,strategy:k.strategy,teleported:k.teleported,transition:k.transition,"virtual-triggering":k.virtualTriggering,"z-index":k.zIndex,"append-to":k.appendTo,loop:k.loop},{default:e.withCtx(()=>[e.renderSlot(k.$slots,"content",{},()=>[k.rawContent?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:k.content},null,8,["innerHTML"])):(e.openBlock(),e.createElementBlock("span",{key:1},e.toDisplayString(k.content),1))]),k.showArrow?(e.openBlock(),e.createBlock(e.unref(Yg),{key:0})):e.createCommentVNode("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","loop"])]),_:3},8,["role"]))}});var zb=a._export_sfc(Ab,[["__file","tooltip.vue"]]);const Nt=a.withInstall(zb),Rb=a.buildProps({...L.inputProps,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:a.definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:a.definePropType([Function,Array]),default:a.NOOP},popperClass:qe.popperClass,popperStyle:qe.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:qe.teleported,appendTo:qe.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),Lb={[L.UPDATE_MODEL_EVENT]:t=>a.isString(t)||a.isNumber(t),[L.INPUT_EVENT]:t=>a.isString(t)||a.isNumber(t),[L.CHANGE_EVENT]:t=>a.isString(t)||a.isNumber(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>a.isObject$1(t)},cp="ElAutocomplete",Fb=e.defineComponent({name:cp,inheritAttrs:!1}),Kb=e.defineComponent({...Fb,props:Rb,emits:Lb,setup(t,{expose:n,emit:o}){const l=t,r=e.computed(()=>L.pick(l,Object.keys(L.inputProps))),s=e.useAttrs(),i=L.useFormDisabled(),c=a.useNamespace("autocomplete"),u=e.ref(),d=e.ref(),f=e.ref(),p=e.ref();let v=!1,m=!1;const y=e.ref([]),h=e.ref(-1),g=e.ref(""),C=e.ref(!1),E=e.ref(!1),k=e.ref(!1),b=L.useId(),w=e.computed(()=>s.style),S=e.computed(()=>(y.value.length>0||k.value)&&C.value),_=e.computed(()=>!l.hideLoading&&k.value),P=e.computed(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),B=()=>{S.value&&(g.value=`${u.value.$el.offsetWidth}px`)},T=()=>{h.value=-1},N=async G=>{if(E.value)return;const I=H=>{k.value=!1,!E.value&&(a.isArray$1(H)?(y.value=H,h.value=l.highlightFirstItem?0:-1):a.throwError(cp,"autocomplete suggestions must be an array"))};if(k.value=!0,a.isArray$1(l.fetchSuggestions))I(l.fetchSuggestions);else{const H=await l.fetchSuggestions(G,I);a.isArray$1(H)&&I(H)}},V=e.computed(()=>l.debounce),R=a.useDebounceFn(N,V),j=G=>{const I=!!G;if(o(L.INPUT_EVENT,G),o(L.UPDATE_MODEL_EVENT,G),E.value=!1,C.value||(C.value=I),!l.triggerOnFocus&&!G){E.value=!0,y.value=[];return}R(G)},q=G=>{var I;i.value||(((I=G.target)==null?void 0:I.tagName)!=="INPUT"||P.value.includes(document.activeElement))&&(C.value=!0)},D=G=>{o(L.CHANGE_EVENT,G)},$=G=>{var I;if(m)m=!1;else{C.value=!0,o("focus",G);const H=(I=l.modelValue)!=null?I:"";l.triggerOnFocus&&!v&&R(String(H))}},A=G=>{setTimeout(()=>{var I;if((I=f.value)!=null&&I.isFocusInsideContent()){m=!0;return}C.value&&x(),o("blur",G)})},O=()=>{C.value=!1,o(L.UPDATE_MODEL_EVENT,""),o("clear")},M=async()=>{var G;(G=u.value)!=null&&G.isComposing||(S.value&&h.value>=0&&h.value<y.value.length?W(y.value[h.value]):(l.selectWhenUnmatched&&(o("select",{value:l.modelValue}),y.value=[],h.value=-1),C.value=!0,R(String(l.modelValue))))},F=G=>{S.value&&(G.preventDefault(),G.stopPropagation(),x())},x=()=>{C.value=!1},K=()=>{var G;(G=u.value)==null||G.focus()},Y=()=>{var G;(G=u.value)==null||G.blur()},W=async G=>{o(L.INPUT_EVENT,G[l.valueKey]),o(L.UPDATE_MODEL_EVENT,G[l.valueKey]),o("select",G),y.value=[],h.value=-1},te=G=>{var I,H;if(!S.value||k.value)return;if(G<0){if(!l.loopNavigation){h.value=-1;return}G=y.value.length-1}G>=y.value.length&&(G=l.loopNavigation?0:y.value.length-1);const[Z,J]=re(),le=J[G],oe=Z.scrollTop,{offsetTop:ee,scrollHeight:U}=le;ee+U>oe+Z.clientHeight&&(Z.scrollTop=ee+U-Z.clientHeight),ee<oe&&(Z.scrollTop=ee),h.value=G,(H=(I=u.value)==null?void 0:I.ref)==null||H.setAttribute("aria-activedescendant",`${b.value}-item-${h.value}`)},re=()=>{const G=d.value.querySelector(`.${c.be("suggestion","wrap")}`),I=G.querySelectorAll(`.${c.be("suggestion","list")} li`);return[G,I]},Q=a.onClickOutside(p,()=>{var G;(G=f.value)!=null&&G.isFocusInsideContent()||S.value&&x()}),X=G=>{switch(a.getEventCode(G)){case a.EVENT_CODE.up:G.preventDefault(),te(h.value-1);break;case a.EVENT_CODE.down:G.preventDefault(),te(h.value+1);break;case a.EVENT_CODE.enter:G.preventDefault(),M();break;case a.EVENT_CODE.tab:x();break;case a.EVENT_CODE.esc:F(G);break;case a.EVENT_CODE.home:G.preventDefault(),te(0);break;case a.EVENT_CODE.end:G.preventDefault(),te(y.value.length-1);break;case a.EVENT_CODE.pageUp:G.preventDefault(),te(Math.max(0,h.value-10));break;case a.EVENT_CODE.pageDown:G.preventDefault(),te(Math.min(y.value.length-1,h.value+10));break}};return e.onBeforeUnmount(()=>{Q==null||Q()}),e.onMounted(()=>{var G;const I=(G=u.value)==null?void 0:G.ref;I&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:"id"},{key:"aria-activedescendant",value:`${b.value}-item-${h.value}`}].forEach(({key:H,value:Z})=>I.setAttribute(H,Z)),v=I.hasAttribute("readonly"))}),n({highlightedIndex:h,activated:C,loading:k,inputRef:u,popperRef:f,suggestions:y,handleSelect:W,handleKeyEnter:M,focus:K,blur:Y,close:x,highlight:te,getData:N}),(G,I)=>(e.openBlock(),e.createBlock(e.unref(Nt),{ref_key:"popperRef",ref:f,visible:e.unref(S),placement:G.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[e.unref(c).e("popper"),G.popperClass],"popper-style":G.popperStyle,teleported:G.teleported,"append-to":G.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${e.unref(c).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:B,onHide:T},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"regionRef",ref:d,class:e.normalizeClass([e.unref(c).b("suggestion"),e.unref(c).is("loading",e.unref(_))]),style:e.normalizeStyle({[G.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[G.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(c).be("suggestion","header")),onClick:e.withModifiers(()=>{},["stop"])},[e.renderSlot(G.$slots,"header")],10,["onClick"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(Zt),{id:e.unref(b),tag:"ul","wrap-class":e.unref(c).be("suggestion","wrap"),"view-class":e.unref(c).be("suggestion","list"),role:"listbox"},{default:e.withCtx(()=>[e.unref(_)?(e.openBlock(),e.createElementBlock("li",{key:0},[e.renderSlot(G.$slots,"loading",{},()=>[e.createVNode(e.unref(a.ElIcon),{class:e.normalizeClass(e.unref(c).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(a.loading_default))]),_:1},8,["class"])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(y.value,(H,Z)=>(e.openBlock(),e.createElementBlock("li",{id:`${e.unref(b)}-item-${Z}`,key:Z,class:e.normalizeClass({highlighted:h.value===Z}),role:"option","aria-selected":h.value===Z,onClick:J=>W(H)},[e.renderSlot(G.$slots,"default",{item:H},()=>[e.createTextVNode(e.toDisplayString(H[G.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"]),G.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(c).be("suggestion","footer")),onClick:e.withModifiers(()=>{},["stop"])},[e.renderSlot(G.$slots,"footer")],10,["onClick"])):e.createCommentVNode("v-if",!0)],6)]),default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"listboxRef",ref:p,class:e.normalizeClass([e.unref(c).b(),G.$attrs.class]),style:e.normalizeStyle(e.unref(w)),role:"combobox","aria-haspopup":"listbox","aria-expanded":e.unref(S),"aria-owns":e.unref(b)},[e.createVNode(e.unref(L.ElInput),e.mergeProps({ref_key:"inputRef",ref:u},e.mergeProps(e.unref(r),G.$attrs),{"model-value":G.modelValue,disabled:e.unref(i),onInput:j,onChange:D,onFocus:$,onBlur:A,onClear:O,onKeydown:X,onMousedown:q}),e.createSlots({_:2},[G.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(G.$slots,"prepend")])}:void 0,G.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(G.$slots,"append")])}:void 0,G.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(G.$slots,"prefix")])}:void 0,G.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(G.$slots,"suffix")])}:void 0]),1040,["model-value","disabled"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});var Hb=a._export_sfc(Kb,[["__file","autocomplete.vue"]]);const jb=a.withInstall(Hb),Wb=a.buildProps({size:{type:[Number,String],values:a.componentSizes,default:"",validator:t=>a.isNumber(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:a.iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:a.definePropType(String),default:"cover"}}),Ub={error:t=>t instanceof Event},qb=e.defineComponent({name:"ElAvatar"}),Yb=e.defineComponent({...qb,props:Wb,emits:Ub,setup(t,{emit:n}){const o=t,l=a.useNamespace("avatar"),r=e.ref(!1),s=e.computed(()=>{const{size:d,icon:f,shape:p}=o,v=[l.b()];return a.isString(d)&&v.push(l.m(d)),f&&v.push(l.m("icon")),p&&v.push(l.m(p)),v}),i=e.computed(()=>{const{size:d}=o;return a.isNumber(d)?l.cssVarBlock({size:a.addUnit(d)||""}):void 0}),c=e.computed(()=>({objectFit:o.fit}));e.watch(()=>o.src,()=>r.value=!1);function u(d){r.value=!0,n("error",d)}return(d,f)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(s)),style:e.normalizeStyle(e.unref(i))},[(d.src||d.srcSet)&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:d.src,alt:d.alt,srcset:d.srcSet,style:e.normalizeStyle(e.unref(c)),onError:u},null,44,["src","alt","srcset"])):d.icon?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon)))]),_:1})):e.renderSlot(d.$slots,"default",{key:2})],6))}});var Gb=a._export_sfc(Yb,[["__file","avatar.vue"]]);const Xb=a.withInstall(Gb),Jb={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Zb={click:t=>t instanceof MouseEvent},Qb=(t,n,o)=>{const l=e.shallowRef(),r=e.shallowRef(),s=e.ref(!1),i=()=>{l.value&&(s.value=l.value.scrollTop>=t.visibilityHeight)},c=d=>{var f;(f=l.value)==null||f.scrollTo({top:0,behavior:"smooth"}),n("click",d)},u=a.useThrottleFn(i,300,!0);return a.useEventListener(r,"scroll",u),e.onMounted(()=>{var d;r.value=document,l.value=document.documentElement,t.target&&(l.value=(d=document.querySelector(t.target))!=null?d:void 0,l.value||a.throwError(o,`target does not exist: ${t.target}`),r.value=l.value),i()}),{visible:s,handleClick:c}},up="ElBacktop",eC=e.defineComponent({name:up}),tC=e.defineComponent({...eC,props:Jb,emits:Zb,setup(t,{emit:n}){const o=t,l=a.useNamespace("backtop"),{handleClick:r,visible:s}=Qb(o,n,up),i=e.computed(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`}));return(c,u)=>(e.openBlock(),e.createBlock(e.Transition,{name:`${e.unref(l).namespace.value}-fade-in`},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(e.unref(i)),class:e.normalizeClass(e.unref(l).b()),onClick:e.withModifiers(e.unref(r),["stop"])},[e.renderSlot(c.$slots,"default",{},()=>[e.createVNode(e.unref(a.ElIcon),{class:e.normalizeClass(e.unref(l).e("icon"))},{default:e.withCtx(()=>[e.createVNode(e.unref(a.caret_top_default))]),_:1},8,["class"])])],14,["onClick"])):e.createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var nC=a._export_sfc(tC,[["__file","backtop.vue"]]);const oC=a.withInstall(nC),dp=Symbol("breadcrumbKey"),lC=a.buildProps({separator:{type:String,default:"/"},separatorIcon:{type:a.iconPropType}}),aC=e.defineComponent({name:"ElBreadcrumb"}),rC=e.defineComponent({...aC,props:lC,setup(t){const n=t,{t:o}=a.useLocale(),l=a.useNamespace("breadcrumb"),r=e.ref();return e.provide(dp,n),e.onMounted(()=>{const s=r.value.querySelectorAll(`.${l.e("item")}`);s.length&&s[s.length-1].setAttribute("aria-current","page")}),(s,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"breadcrumb",ref:r,class:e.normalizeClass(e.unref(l).b()),"aria-label":e.unref(o)("el.breadcrumb.label"),role:"navigation"},[e.renderSlot(s.$slots,"default")],10,["aria-label"]))}});var sC=a._export_sfc(rC,[["__file","breadcrumb.vue"]]);const iC=a.buildProps({to:{type:a.definePropType([String,Object]),default:""},replace:Boolean}),cC=e.defineComponent({name:"ElBreadcrumbItem"}),uC=e.defineComponent({...cC,props:iC,setup(t){const n=t,o=e.getCurrentInstance(),l=e.inject(dp,void 0),r=a.useNamespace("breadcrumb"),s=o.appContext.config.globalProperties.$router,i=e.ref(),c=()=>{!n.to||!s||(n.replace?s.replace(n.to):s.push(n.to))};return(u,d)=>{var f,p;return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(r).e("item"))},[e.createElementVNode("span",{ref_key:"link",ref:i,class:e.normalizeClass([e.unref(r).e("inner"),e.unref(r).is("link",!!u.to)]),role:"link",onClick:c},[e.renderSlot(u.$slots,"default")],2),(f=e.unref(l))!=null&&f.separatorIcon?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass(e.unref(r).e("separator"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l).separatorIcon)))]),_:1},8,["class"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r).e("separator")),role:"presentation"},e.toDisplayString((p=e.unref(l))==null?void 0:p.separator),3))],2)}}});var fp=a._export_sfc(uC,[["__file","breadcrumb-item.vue"]]);const dC=a.withInstall(sC,{BreadcrumbItem:fp}),fC=a.withNoopInstall(fp),$r=(t,n)=>[t>0?t-1:void 0,t,t<n?t+1:void 0],Kn=t=>Array.from(Array.from({length:t}).keys()),pp=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),mp=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Gu=function(t,n){const o=a.isDate(t),l=a.isDate(n);return o&&l?t.getTime()===n.getTime():!o&&!l?t===n:!1},hp=function(t,n){const o=a.isArray$1(t),l=a.isArray$1(n);return o&&l?t.length!==n.length?!1:t.every((r,s)=>Gu(r,n[s])):!o&&!l?Gu(t,n):!1},Xu=function(t,n,o){const l=a.isEmpty(n)||n==="x"?me.dayjs(t).locale(o):me.dayjs(t,n).locale(o);return l.isValid()?l:void 0},Ju=function(t,n,o){return a.isEmpty(n)?t:n==="x"?+t:me.dayjs(t).locale(o).format(n)},Mr=(t,n)=>{var o;const l=[],r=n==null?void 0:n();for(let s=0;s<t;s++)l.push((o=r==null?void 0:r.includes(s))!=null?o:!1);return l},Sa=t=>a.isArray$1(t)?t.map(n=>n.toDate()):t.toDate(),pC=(t,n)=>{const o=t.subtract(1,"month").endOf("month").date();return Kn(n).map((l,r)=>o-(n-r-1))},mC=t=>{const n=t.daysInMonth();return Kn(n).map((o,l)=>l+1)},hC=t=>Kn(t.length/7).map(n=>{const o=n*7;return t.slice(o,o+7)}),vC=a.buildProps({selectedDay:{type:a.definePropType(Object)},range:{type:a.definePropType(Array)},date:{type:a.definePropType(Object),required:!0},hideHeader:{type:Boolean}}),gC={pick:t=>a.isObject$1(t)};var Na={exports:{}},yC=Na.exports,Zu;function bC(){return Zu||(Zu=1,function(t,n){(function(o,l){t.exports=l()})(yC,function(){return function(o,l,r){var s=l.prototype,i=function(p){return p&&(p.indexOf?p:p.s)},c=function(p,v,m,y,h){var g=p.name?p:p.$locale(),C=i(g[v]),E=i(g[m]),k=C||E.map(function(w){return w.slice(0,y)});if(!h)return k;var b=g.weekStart;return k.map(function(w,S){return k[(S+(b||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(p,v){return p.formats[v]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,h,g){return h||g.slice(1)})}(p.formats[v.toUpperCase()])},f=function(){var p=this;return{months:function(v){return v?v.format("MMMM"):c(p,"months")},monthsShort:function(v){return v?v.format("MMM"):c(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):c(p,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):c(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):c(p,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(p.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return f.bind(this)()},r.localeData=function(){var p=u();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return d(p,v)},meridiem:p.meridiem,ordinal:p.ordinal}},r.months=function(){return c(u(),"months")},r.monthsShort=function(){return c(u(),"monthsShort","months",3)},r.weekdays=function(p){return c(u(),"weekdays",null,null,p)},r.weekdaysShort=function(p){return c(u(),"weekdaysShort","weekdays",3,p)},r.weekdaysMin=function(p){return c(u(),"weekdaysMin","weekdays",2,p)}}})}(Na)),Na.exports}var CC=bC();const vp=me.getDefaultExportFromCjs(CC),kC=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],xr=["sun","mon","tue","wed","thu","fri","sat"],EC=(t,n)=>{me.dayjs.extend(vp);const o=me.dayjs.localeData().firstDayOfWeek(),{t:l,lang:r}=a.useLocale(),s=me.dayjs().locale(r.value),i=e.computed(()=>!!t.range&&!!t.range.length),c=e.computed(()=>{let v=[];if(i.value){const[m,y]=t.range,h=Kn(y.date()-m.date()+1).map(E=>({text:m.date()+E,type:"current"}));let g=h.length%7;g=g===0?0:7-g;const C=Kn(g).map((E,k)=>({text:k+1,type:"next"}));v=h.concat(C)}else{const m=t.date.startOf("month").day(),y=pC(t.date,(m-o+7)%7).map(E=>({text:E,type:"prev"})),h=mC(t.date).map(E=>({text:E,type:"current"}));v=[...y,...h];const g=7-(v.length%7||7),C=Kn(g).map((E,k)=>({text:k+1,type:"next"}));v=v.concat(C)}return hC(v)}),u=e.computed(()=>{const v=o;return v===0?xr.map(m=>l(`el.datepicker.weeks.${m}`)):xr.slice(v).concat(xr.slice(0,v)).map(m=>l(`el.datepicker.weeks.${m}`))}),d=(v,m)=>{switch(m){case"prev":return t.date.startOf("month").subtract(1,"month").date(v);case"next":return t.date.startOf("month").add(1,"month").date(v);case"current":return t.date.date(v)}};return{now:s,isInRange:i,rows:c,weekDays:u,getFormattedDate:d,handlePickDay:({text:v,type:m})=>{const y=d(v,m);n("pick",y)},getSlotData:({text:v,type:m})=>{const y=d(v,m);return{isSelected:y.isSame(t.selectedDay),type:`${m}-month`,day:y.format("YYYY-MM-DD"),date:y.toDate()}}}},wC=e.defineComponent({name:"DateTable"}),SC=e.defineComponent({...wC,props:vC,emits:gC,setup(t,{expose:n,emit:o}){const l=t,{isInRange:r,now:s,rows:i,weekDays:c,getFormattedDate:u,handlePickDay:d,getSlotData:f}=EC(l,o),p=a.useNamespace("calendar-table"),v=a.useNamespace("calendar-day"),m=({text:y,type:h})=>{const g=[h];if(h==="current"){const C=u(y,h);C.isSame(l.selectedDay,"day")&&g.push(v.is("selected")),C.isSame(s,"day")&&g.push(v.is("today"))}return g};return n({getFormattedDate:u}),(y,h)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass([e.unref(p).b(),e.unref(p).is("range",e.unref(r))]),cellspacing:"0",cellpadding:"0"},[y.hideHeader?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("thead",{key:0},[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),g=>(e.openBlock(),e.createElementBlock("th",{key:g,scope:"col"},e.toDisplayString(g),1))),128))])])),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(g,C)=>(e.openBlock(),e.createElementBlock("tr",{key:C,class:e.normalizeClass({[e.unref(p).e("row")]:!0,[e.unref(p).em("row","hide-border")]:C===0&&y.hideHeader})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g,(E,k)=>(e.openBlock(),e.createElementBlock("td",{key:k,class:e.normalizeClass(m(E)),onClick:b=>e.unref(d)(E)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(v).b())},[e.renderSlot(y.$slots,"date-cell",{data:e.unref(f)(E)},()=>[e.createElementVNode("span",null,e.toDisplayString(E.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var Qu=a._export_sfc(SC,[["__file","date-table.vue"]]);const NC=(t,n)=>{const o=t.endOf("month"),l=n.startOf("month"),s=o.isSame(l,"week")?l.add(1,"week"):l;return[[t,o],[s.startOf("week"),n]]},TC=(t,n)=>{const o=t.endOf("month"),l=t.add(1,"month").startOf("month"),r=o.isSame(l,"week")?l.add(1,"week"):l,s=r.endOf("month"),i=n.startOf("month"),c=s.isSame(i,"week")?i.add(1,"week"):i;return[[t,o],[r.startOf("week"),s],[c.startOf("week"),n]]},_C=(t,n,o)=>{const{lang:l}=a.useLocale(),r=e.ref(),s=me.dayjs().locale(l.value),i=e.computed({get(){return t.modelValue?u.value:r.value},set(g){if(!g)return;r.value=g;const C=g.toDate();n(L.INPUT_EVENT,C),n(L.UPDATE_MODEL_EVENT,C)}}),c=e.computed(()=>{if(!t.range||!a.isArray$1(t.range)||t.range.length!==2||t.range.some(k=>!a.isDate(k)))return[];const g=t.range.map(k=>me.dayjs(k).locale(l.value)),[C,E]=g;return C.isAfter(E)?(a.debugWarn(o,"end time should be greater than start time"),[]):C.isSame(E,"month")?m(C,E):C.add(1,"month").month()!==E.month()?(a.debugWarn(o,"start time and end time interval must not exceed two months"),[]):m(C,E)}),u=e.computed(()=>t.modelValue?me.dayjs(t.modelValue).locale(l.value):i.value||(c.value.length?c.value[0][0]:s)),d=e.computed(()=>u.value.subtract(1,"month").date(1)),f=e.computed(()=>u.value.add(1,"month").date(1)),p=e.computed(()=>u.value.subtract(1,"year").date(1)),v=e.computed(()=>u.value.add(1,"year").date(1)),m=(g,C)=>{const E=g.startOf("week"),k=C.endOf("week"),b=E.get("month"),w=k.get("month");return b===w?[[E,k]]:(b+1)%12===w?NC(E,k):b+2===w||(b+1)%11===w?TC(E,k):(a.debugWarn(o,"start time and end time interval must not exceed two months"),[])},y=g=>{i.value=g};return{calculateValidatedDateRange:m,date:u,realSelectedDay:i,pickDay:y,selectDate:g=>{const E={"prev-month":d.value,"next-month":f.value,"prev-year":p.value,"next-year":v.value,today:s}[g];E.isSame(u.value,"day")||y(E)},validatedRange:c}},BC=t=>a.isArray$1(t)&&t.length===2&&t.every(n=>a.isDate(n)),PC=a.buildProps({modelValue:{type:Date},range:{type:a.definePropType(Array),validator:BC}}),VC={[L.UPDATE_MODEL_EVENT]:t=>a.isDate(t),[L.INPUT_EVENT]:t=>a.isDate(t)},gp="ElCalendar",DC=e.defineComponent({name:gp}),IC=e.defineComponent({...DC,props:PC,emits:VC,setup(t,{expose:n,emit:o}){const l=t,r=a.useNamespace("calendar"),{calculateValidatedDateRange:s,date:i,pickDay:c,realSelectedDay:u,selectDate:d,validatedRange:f}=_C(l,o,gp),{t:p}=a.useLocale(),v=e.computed(()=>{const m=`el.datepicker.month${i.value.format("M")}`;return`${i.value.year()} ${p("el.datepicker.year")} ${p(m)}`});return n({selectedDay:u,pickDay:c,selectDate:d,calculateValidatedDateRange:s}),(m,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("header"))},[e.renderSlot(m.$slots,"header",{date:e.unref(v)},()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("title"))},e.toDisplayString(e.unref(v)),3),e.unref(f).length===0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).e("button-group"))},[e.createVNode(e.unref(L.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(L.ElButton),{size:"small",onClick:h=>e.unref(d)("prev-month")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(L.ElButton),{size:"small",onClick:h=>e.unref(d)("today")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("el.datepicker.today")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(L.ElButton),{size:"small",onClick:h=>e.unref(d)("next-month")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):e.createCommentVNode("v-if",!0)])],2),e.unref(f).length===0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).e("body"))},[e.createVNode(Qu,{date:e.unref(i),"selected-day":e.unref(u),onPick:e.unref(c)},e.createSlots({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:e.withCtx(h=>[e.renderSlot(m.$slots,"date-cell",e.normalizeProps(e.guardReactiveProps(h)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r).e("body"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(h,g)=>(e.openBlock(),e.createBlock(Qu,{key:g,date:h[0],"selected-day":e.unref(u),range:h,"hide-header":g!==0,onPick:e.unref(c)},e.createSlots({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:e.withCtx(C=>[e.renderSlot(m.$slots,"date-cell",e.normalizeProps(e.guardReactiveProps(C)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var OC=a._export_sfc(IC,[["__file","calendar.vue"]]);const $C=a.withInstall(OC),MC=a.buildProps({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:a.definePropType([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),xC=e.defineComponent({name:"ElCard"}),AC=e.defineComponent({...xC,props:MC,setup(t){const n=a.useGlobalConfig("card"),o=a.useNamespace("card");return(l,r)=>{var s;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o).b(),e.unref(o).is(`${l.shadow||((s=e.unref(n))==null?void 0:s.shadow)||"always"}-shadow`)])},[l.$slots.header||l.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(o).e("header"),l.headerClass])},[e.renderSlot(l.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(l.header),1)])],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(o).e("body"),l.bodyClass]),style:e.normalizeStyle(l.bodyStyle)},[e.renderSlot(l.$slots,"default")],6),l.$slots.footer||l.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(o).e("footer"),l.footerClass])},[e.renderSlot(l.$slots,"footer",{},()=>[e.createTextVNode(e.toDisplayString(l.footer),1)])],2)):e.createCommentVNode("v-if",!0)],2)}}});var zC=a._export_sfc(AC,[["__file","card.vue"]]);const RC=a.withInstall(zC),LC=a.buildProps({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),FC={change:(t,n)=>[t,n].every(a.isNumber)},yp=Symbol("carouselContextKey"),Rl="ElCarouselItem",KC=(t,n,o)=>L.flattedChildren(t.subTree).filter(s=>{var i;return e.isVNode(s)&&((i=s.type)==null?void 0:i.name)===n&&!!s.component}).map(s=>s.component.uid).map(s=>o[s]).filter(s=>!!s),Cr=(t,n)=>{const o=e.shallowRef({}),l=e.shallowRef([]),r=new WeakMap,s=f=>{o.value[f.uid]=f,e.triggerRef(o),e.onMounted(()=>{const p=f.getVnode().el,v=p.parentNode;if(!r.has(v)){r.set(v,[]);const m=v.insertBefore.bind(v);v.insertBefore=(y,h)=>(r.get(v).some(C=>y===C||h===C)&&e.triggerRef(o),m(y,h))}r.get(v).push(p)})},i=f=>{delete o.value[f.uid],e.triggerRef(o);const p=f.getVnode().el,v=p.parentNode,m=r.get(v),y=m.indexOf(p);m.splice(y,1)},c=()=>{l.value=KC(t,n,o.value)},u=f=>f.render(),d=e.defineComponent({setup(f,{slots:p}){return()=>(c(),p.default?e.h(u,{render:p.default}):null)}});return{children:l,addChild:s,removeChild:i,ChildrenSorter:d}},ed=300,HC=(t,n,o)=>{const{children:l,addChild:r,removeChild:s,ChildrenSorter:i}=Cr(e.getCurrentInstance(),Rl),c=e.useSlots(),u=e.ref(-1),d=e.ref(null),f=e.ref(!1),p=e.ref(),v=e.ref(0),m=e.ref(!0),y=e.computed(()=>t.arrow!=="never"&&!e.unref(C)),h=e.computed(()=>l.value.some(W=>W.props.label.toString().length>0)),g=e.computed(()=>t.type==="card"),C=e.computed(()=>t.direction==="vertical"),E=e.computed(()=>t.height!=="auto"?{height:t.height}:{height:`${v.value}px`,overflow:"hidden"}),k=to(W=>{B(W)},ed,{trailing:!0}),b=to(W=>{$(W)},ed),w=W=>m.value?u.value<=1?W<=1:W>1:!0;function S(){d.value&&(clearInterval(d.value),d.value=null)}function _(){t.interval<=0||!t.autoplay||d.value||(d.value=setInterval(()=>P(),t.interval))}const P=()=>{u.value<l.value.length-1?u.value=u.value+1:t.loop&&(u.value=0)};function B(W){if(a.isString(W)){const Q=l.value.filter(X=>X.props.name===W);Q.length>0&&(W=l.value.indexOf(Q[0]))}if(W=Number(W),Number.isNaN(W)||W!==Math.floor(W)){a.debugWarn(o,"index must be integer.");return}const te=l.value.length,re=u.value;W<0?u.value=t.loop?te-1:0:W>=te?u.value=t.loop?0:te-1:u.value=W,re===u.value&&T(re),M()}function T(W){l.value.forEach((te,re)=>{te.translateItem(re,u.value,W)})}function N(W,te){var re,Q,X,G;const I=e.unref(l),H=I.length;if(H===0||!W.states.inStage)return!1;const Z=te+1,J=te-1,le=H-1,oe=I[le].states.active,ee=I[0].states.active,U=(Q=(re=I[Z])==null?void 0:re.states)==null?void 0:Q.active,se=(G=(X=I[J])==null?void 0:X.states)==null?void 0:G.active;return te===le&&ee||U?"left":te===0&&oe||se?"right":!1}function V(){f.value=!0,t.pauseOnHover&&S()}function R(){f.value=!1,_()}function j(W){e.unref(C)||l.value.forEach((te,re)=>{W===N(te,re)&&(te.states.hover=!0)})}function q(){e.unref(C)||l.value.forEach(W=>{W.states.hover=!1})}function D(W){u.value=W}function $(W){t.trigger==="hover"&&W!==u.value&&(u.value=W)}function A(){B(u.value-1)}function O(){B(u.value+1)}function M(){S(),t.pauseOnHover||_()}function F(W){t.height==="auto"&&(v.value=W)}function x(){var W;const te=(W=c.default)==null?void 0:W.call(c);if(!te)return null;const Q=L.flattedChildren(te).filter(X=>e.isVNode(X)&&X.type.name===Rl);return(Q==null?void 0:Q.length)===2&&t.loop&&!g.value?(m.value=!0,Q):(m.value=!1,null)}e.watch(()=>u.value,(W,te)=>{T(te),m.value&&(W=W%2,te=te%2),te>-1&&n(L.CHANGE_EVENT,W,te)});const K=e.computed({get:()=>m.value?u.value%2:u.value,set:W=>u.value=W});e.watch(()=>t.autoplay,W=>{W?_():S()}),e.watch(()=>t.loop,()=>{B(u.value)}),e.watch(()=>t.interval,()=>{M()});const Y=e.shallowRef();return e.onMounted(()=>{e.watch(()=>l.value,()=>{l.value.length>0&&B(t.initialIndex)},{immediate:!0}),Y.value=a.useResizeObserver(p.value,()=>{T()}),_()}),e.onBeforeUnmount(()=>{S(),p.value&&Y.value&&Y.value.stop()}),e.provide(yp,{root:p,isCardType:g,isVertical:C,items:l,loop:t.loop,cardScale:t.cardScale,addItem:r,removeItem:s,setActiveItem:B,setContainerHeight:F}),{root:p,activeIndex:u,exposeActiveIndex:K,arrowDisplay:y,hasLabel:h,hover:f,isCardType:g,items:l,isVertical:C,containerStyle:E,isItemsTwoLength:m,handleButtonEnter:j,handleButtonLeave:q,handleIndicatorClick:D,handleMouseEnter:V,handleMouseLeave:R,setActiveItem:B,prev:A,next:O,PlaceholderItem:x,isTwoLengthShow:w,ItemsSorter:i,throttledArrowClick:k,throttledIndicatorHover:b}},bp="ElCarousel",jC=e.defineComponent({name:bp}),WC=e.defineComponent({...jC,props:LC,emits:FC,setup(t,{expose:n,emit:o}){const l=t,{root:r,activeIndex:s,exposeActiveIndex:i,arrowDisplay:c,hasLabel:u,hover:d,isCardType:f,items:p,isVertical:v,containerStyle:m,handleButtonEnter:y,handleButtonLeave:h,handleIndicatorClick:g,handleMouseEnter:C,handleMouseLeave:E,setActiveItem:k,prev:b,next:w,PlaceholderItem:S,isTwoLengthShow:_,ItemsSorter:P,throttledArrowClick:B,throttledIndicatorHover:T}=HC(l,o,bp),N=a.useNamespace("carousel"),{t:V}=a.useLocale(),R=e.computed(()=>{const $=[N.b(),N.m(l.direction)];return e.unref(f)&&$.push(N.m("card")),$}),j=e.computed(()=>{const $=[N.e("indicators"),N.em("indicators",l.direction)];return e.unref(u)&&$.push(N.em("indicators","labels")),l.indicatorPosition==="outside"&&$.push(N.em("indicators","outside")),e.unref(v)&&$.push(N.em("indicators","right")),$});function q($){if(!l.motionBlur)return;const A=e.unref(v)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;$.currentTarget.classList.add(A)}function D($){if(!l.motionBlur)return;const A=e.unref(v)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;$.currentTarget.classList.remove(A)}return n({activeIndex:i,setActiveItem:k,prev:b,next:w}),($,A)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:r,class:e.normalizeClass(e.unref(R)),onMouseenter:e.withModifiers(e.unref(C),["stop"]),onMouseleave:e.withModifiers(e.unref(E),["stop"])},[e.unref(c)?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(N).e("arrow"),e.unref(N).em("arrow","left")]),"aria-label":e.unref(V)("el.carousel.leftArrow"),onMouseenter:O=>e.unref(y)("left"),onMouseleave:e.unref(h),onClick:e.withModifiers(O=>e.unref(B)(e.unref(s)-1),["stop"])},[e.createVNode(e.unref(a.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(a.arrow_left_default))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[e.vShow,($.arrow==="always"||e.unref(d))&&($.loop||e.unref(s)>0)]])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(c)?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(N).e("arrow"),e.unref(N).em("arrow","right")]),"aria-label":e.unref(V)("el.carousel.rightArrow"),onMouseenter:O=>e.unref(y)("right"),onMouseleave:e.unref(h),onClick:e.withModifiers(O=>e.unref(B)(e.unref(s)+1),["stop"])},[e.createVNode(e.unref(a.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(a.arrow_right_default))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[e.vShow,($.arrow==="always"||e.unref(d))&&($.loop||e.unref(s)<e.unref(p).length-1)]])]),_:1})):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(N).e("container")),style:e.normalizeStyle(e.unref(m)),onTransitionstart:q,onTransitionend:D},[e.createVNode(e.unref(S)),e.renderSlot($.$slots,"default")],38),e.createVNode(e.unref(P),null,{default:e.withCtx(()=>[$.indicatorPosition!=="none"?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass(e.unref(j))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(O,M)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:M,class:e.normalizeClass([e.unref(N).e("indicator"),e.unref(N).em("indicator",$.direction),e.unref(N).is("active",M===e.unref(s))]),onMouseenter:F=>e.unref(T)(M),onClick:e.withModifiers(F=>e.unref(g)(M),["stop"])},[e.createElementVNode("button",{class:e.normalizeClass(e.unref(N).e("button")),"aria-label":e.unref(V)("el.carousel.indicator",{index:M+1})},[e.unref(u)?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(O.props.label),1)):e.createCommentVNode("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[e.vShow,e.unref(_)(M)]])),128))],2)):e.createCommentVNode("v-if",!0)]),_:1}),$.motionBlur?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:"elCarouselHorizontal"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),e.createElementVNode("filter",{id:"elCarouselVertical"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):e.createCommentVNode("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var UC=a._export_sfc(WC,[["__file","carousel.vue"]]);const qC=a.buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),YC=t=>{const n=e.inject(yp),o=e.getCurrentInstance();n||a.debugWarn(Rl,"usage: <el-carousel></el-carousel-item></el-carousel>"),o||a.debugWarn(Rl,"compositional hook can only be invoked inside setups");const l=e.ref(),r=e.ref(!1),s=e.ref(0),i=e.ref(1),c=e.ref(!1),u=e.ref(!1),d=e.ref(!1),f=e.ref(!1),{isCardType:p,isVertical:v,cardScale:m}=n;function y(b,w,S){const _=S-1,P=w-1,B=w+1,T=S/2;return w===0&&b===_?-1:w===_&&b===0?S:b<P&&w-b>=T?S+1:b>B&&b-w>=T?-2:b}function h(b,w){var S,_;const P=e.unref(v)?((S=n.root.value)==null?void 0:S.offsetHeight)||0:((_=n.root.value)==null?void 0:_.offsetWidth)||0;return d.value?P*((2-m)*(b-w)+1)/4:b<w?-(1+m)*P/4:(3+m)*P/4}function g(b,w,S){const _=n.root.value;return _?((S?_.offsetHeight:_.offsetWidth)||0)*(b-w):0}const C=(b,w,S)=>{var _;const P=e.unref(p),B=(_=n.items.value.length)!=null?_:Number.NaN,T=b===w;!P&&!a.isUndefined(S)&&(f.value=T||b===S),!T&&B>2&&n.loop&&(b=y(b,w,B));const N=e.unref(v);c.value=T,P?(d.value=Math.round(Math.abs(b-w))<=1,s.value=h(b,w),i.value=e.unref(c)?1:m):s.value=g(b,w,N),u.value=!0,T&&l.value&&n.setContainerHeight(l.value.offsetHeight)};function E(){if(n&&e.unref(p)){const b=n.items.value.findIndex(({uid:w})=>w===o.uid);n.setActiveItem(b)}}const k={props:t,states:e.reactive({hover:r,translate:s,scale:i,active:c,ready:u,inStage:d,animating:f}),uid:o.uid,getVnode:()=>o.vnode,translateItem:C};return n.addItem(k),e.onBeforeUnmount(()=>{n.removeItem(k)}),{carouselItemRef:l,active:c,animating:f,hover:r,inStage:d,isVertical:v,translate:s,isCardType:p,scale:i,ready:u,handleItemClick:E}},GC=e.defineComponent({name:Rl}),XC=e.defineComponent({...GC,props:qC,setup(t){const n=t,o=a.useNamespace("carousel"),{carouselItemRef:l,active:r,animating:s,hover:i,inStage:c,isVertical:u,translate:d,isCardType:f,scale:p,ready:v,handleItemClick:m}=YC(n),y=e.computed(()=>[o.e("item"),o.is("active",r.value),o.is("in-stage",c.value),o.is("hover",i.value),o.is("animating",s.value),{[o.em("item","card")]:f.value,[o.em("item","card-vertical")]:f.value&&u.value}]),h=e.computed(()=>{const C=`${`translate${e.unref(u)?"Y":"X"}`}(${e.unref(d)}px)`,E=`scale(${e.unref(p)})`;return{transform:[C,E].join(" ")}});return(g,C)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"carouselItemRef",ref:l,class:e.normalizeClass(e.unref(y)),style:e.normalizeStyle(e.unref(h)),onClick:e.unref(m)},[e.unref(f)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).e("mask"))},null,2)),[[e.vShow,!e.unref(r)]]):e.createCommentVNode("v-if",!0),e.renderSlot(g.$slots,"default")],14,["onClick"])),[[e.vShow,e.unref(v)]])}});var Cp=a._export_sfc(XC,[["__file","carousel-item.vue"]]);const JC=a.withInstall(UC,{CarouselItem:Cp}),ZC=a.withNoopInstall(Cp),kp={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:a.useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...L.useAriaProps(["ariaControls"])},Ep={[L.UPDATE_MODEL_EVENT]:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t),change:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t)},Fo=Symbol("checkboxGroupContextKey"),QC=({model:t,isChecked:n})=>{const o=e.inject(Fo,void 0),l=e.computed(()=>{var s,i;const c=(s=o==null?void 0:o.max)==null?void 0:s.value,u=(i=o==null?void 0:o.min)==null?void 0:i.value;return!a.isUndefined(c)&&t.value.length>=c&&!n.value||!a.isUndefined(u)&&t.value.length<=u&&n.value});return{isDisabled:L.useFormDisabled(e.computed(()=>(o==null?void 0:o.disabled.value)||l.value)),isLimitDisabled:l}},ek=(t,{model:n,isLimitExceeded:o,hasOwnLabel:l,isDisabled:r,isLabeledByFormItem:s})=>{const i=e.inject(Fo,void 0),{formItem:c}=L.useFormItem(),{emit:u}=e.getCurrentInstance();function d(y){var h,g,C,E;return[!0,t.trueValue,t.trueLabel].includes(y)?(g=(h=t.trueValue)!=null?h:t.trueLabel)!=null?g:!0:(E=(C=t.falseValue)!=null?C:t.falseLabel)!=null?E:!1}function f(y,h){u(L.CHANGE_EVENT,d(y),h)}function p(y){if(o.value)return;const h=y.target;u(L.CHANGE_EVENT,d(h.checked),y)}async function v(y){o.value||!l.value&&!r.value&&s.value&&(y.composedPath().some(C=>C.tagName==="LABEL")||(n.value=d([!1,t.falseValue,t.falseLabel].includes(n.value)),await e.nextTick(),f(n.value,y)))}const m=e.computed(()=>(i==null?void 0:i.validateEvent)||t.validateEvent);return e.watch(()=>t.modelValue,()=>{m.value&&(c==null||c.validate("change").catch(y=>a.debugWarn(y)))}),{handleChange:p,onClickRoot:v}},tk=t=>{const n=e.ref(!1),{emit:o}=e.getCurrentInstance(),l=e.inject(Fo,void 0),r=e.computed(()=>a.isUndefined(l)===!1),s=e.ref(!1),i=e.computed({get(){var c,u;return r.value?(c=l==null?void 0:l.modelValue)==null?void 0:c.value:(u=t.modelValue)!=null?u:n.value},set(c){var u,d;r.value&&a.isArray$1(c)?(s.value=((u=l==null?void 0:l.max)==null?void 0:u.value)!==void 0&&c.length>(l==null?void 0:l.max.value)&&c.length>i.value.length,s.value===!1&&((d=l==null?void 0:l.changeEvent)==null||d.call(l,c))):(o(L.UPDATE_MODEL_EVENT,c),n.value=c)}});return{model:i,isGroup:r,isLimitExceeded:s}},nk=(t,n,{model:o})=>{const l=e.inject(Fo,void 0),r=e.ref(!1),s=e.computed(()=>a.isPropAbsent(t.value)?t.label:t.value),i=e.computed(()=>{const f=o.value;return a.isBoolean(f)?f:a.isArray$1(f)?a.isObject$1(s.value)?f.map(e.toRaw).some(p=>a.isEqual(p,s.value)):f.map(e.toRaw).includes(s.value):f!=null?f===t.trueValue||f===t.trueLabel:!!f}),c=L.useFormSize(e.computed(()=>{var f;return(f=l==null?void 0:l.size)==null?void 0:f.value}),{prop:!0}),u=L.useFormSize(e.computed(()=>{var f;return(f=l==null?void 0:l.size)==null?void 0:f.value})),d=e.computed(()=>!!n.default||!a.isPropAbsent(s.value));return{checkboxButtonSize:c,isChecked:i,isFocused:r,checkboxSize:u,hasOwnLabel:d,actualValue:s}},wp=(t,n)=>{const{formItem:o}=L.useFormItem(),{model:l,isGroup:r,isLimitExceeded:s}=tk(t),{isFocused:i,isChecked:c,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:f,actualValue:p}=nk(t,n,{model:l}),{isDisabled:v}=QC({model:l,isChecked:c}),{inputId:m,isLabeledByFormItem:y}=L.useFormItemInputId(t,{formItemContext:o,disableIdGeneration:f,disableIdManagement:r}),{handleChange:h,onClickRoot:g}=ek(t,{model:l,isLimitExceeded:s,hasOwnLabel:f,isDisabled:v,isLabeledByFormItem:y});return(()=>{function E(){var k,b;a.isArray$1(l.value)&&!l.value.includes(p.value)?l.value.push(p.value):l.value=(b=(k=t.trueValue)!=null?k:t.trueLabel)!=null?b:!0}t.checked&&E()})(),L.useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>r.value&&a.isPropAbsent(t.value))),L.useDeprecated({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>!!t.trueLabel)),L.useDeprecated({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>!!t.falseLabel)),{inputId:m,isLabeledByFormItem:y,isChecked:c,isDisabled:v,isFocused:i,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:f,model:l,actualValue:p,handleChange:h,onClickRoot:g}},ok=e.defineComponent({name:"ElCheckbox"}),lk=e.defineComponent({...ok,props:kp,emits:Ep,setup(t){const n=t,o=e.useSlots(),{inputId:l,isLabeledByFormItem:r,isChecked:s,isDisabled:i,isFocused:c,checkboxSize:u,hasOwnLabel:d,model:f,actualValue:p,handleChange:v,onClickRoot:m}=wp(n,o),y=e.computed(()=>{var E,k,b,w;return n.trueValue||n.falseValue||n.trueLabel||n.falseLabel?{"true-value":(k=(E=n.trueValue)!=null?E:n.trueLabel)!=null?k:!0,"false-value":(w=(b=n.falseValue)!=null?b:n.falseLabel)!=null?w:!1}:{value:p.value}}),h=a.useNamespace("checkbox"),g=e.computed(()=>[h.b(),h.m(u.value),h.is("disabled",i.value),h.is("bordered",n.border),h.is("checked",s.value)]),C=e.computed(()=>[h.e("input"),h.is("disabled",i.value),h.is("checked",s.value),h.is("indeterminate",n.indeterminate),h.is("focus",c.value)]);return(E,k)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(!e.unref(d)&&e.unref(r)?"span":"label"),{class:e.normalizeClass(e.unref(g)),"aria-controls":E.indeterminate?E.ariaControls:null,onClick:e.unref(m)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(C))},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(l),"onUpdate:modelValue":b=>e.isRef(f)?f.value=b:null,class:e.unref(h).e("original"),type:"checkbox",indeterminate:E.indeterminate,name:E.name,tabindex:E.tabindex,disabled:e.unref(i)},e.unref(y),{onChange:e.unref(v),onFocus:b=>c.value=!0,onBlur:b=>c.value=!1,onClick:e.withModifiers(()=>{},["stop"])}),null,16,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","onChange","onFocus","onBlur","onClick"]),[[e.vModelCheckbox,e.unref(f)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(h).e("inner"))},null,2)],2),e.unref(d)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(h).e("label"))},[e.renderSlot(E.$slots,"default"),E.$slots.default?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(E.label),1)],64))],2)):e.createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Sp=a._export_sfc(lk,[["__file","checkbox.vue"]]);const ak=e.defineComponent({name:"ElCheckboxButton"}),rk=e.defineComponent({...ak,props:kp,emits:Ep,setup(t){const n=t,o=e.useSlots(),{isFocused:l,isChecked:r,isDisabled:s,checkboxButtonSize:i,model:c,actualValue:u,handleChange:d}=wp(n,o),f=e.computed(()=>{var h,g,C,E;return n.trueValue||n.falseValue||n.trueLabel||n.falseLabel?{"true-value":(g=(h=n.trueValue)!=null?h:n.trueLabel)!=null?g:!0,"false-value":(E=(C=n.falseValue)!=null?C:n.falseLabel)!=null?E:!1}:{value:u.value}}),p=e.inject(Fo,void 0),v=a.useNamespace("checkbox"),m=e.computed(()=>{var h,g,C,E;const k=(g=(h=p==null?void 0:p.fill)==null?void 0:h.value)!=null?g:"";return{backgroundColor:k,borderColor:k,color:(E=(C=p==null?void 0:p.textColor)==null?void 0:C.value)!=null?E:"",boxShadow:k?`-1px 0 0 0 ${k}`:void 0}}),y=e.computed(()=>[v.b("button"),v.bm("button",i.value),v.is("disabled",s.value),v.is("checked",r.value),v.is("focus",l.value)]);return(h,g)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(y))},[e.withDirectives(e.createElementVNode("input",e.mergeProps({"onUpdate:modelValue":C=>e.isRef(c)?c.value=C:null,class:e.unref(v).be("button","original"),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:e.unref(s)},e.unref(f),{onChange:e.unref(d),onFocus:C=>l.value=!0,onBlur:C=>l.value=!1,onClick:e.withModifiers(()=>{},["stop"])}),null,16,["onUpdate:modelValue","name","tabindex","disabled","onChange","onFocus","onBlur","onClick"]),[[e.vModelCheckbox,e.unref(c)]]),h.$slots.default||h.label?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(v).be("button","inner")),style:e.normalizeStyle(e.unref(r)?e.unref(m):void 0)},[e.renderSlot(h.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(h.label),1)])],6)):e.createCommentVNode("v-if",!0)],2))}});var di=a._export_sfc(rk,[["__file","checkbox-button.vue"]]);const sk=a.buildProps({modelValue:{type:a.definePropType(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:a.useSizeProp,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:a.definePropType(Array)},props:{type:a.definePropType(Object),default:()=>Np},type:{type:String,values:["checkbox","button"],default:"checkbox"},...L.useAriaProps(["ariaLabel"])}),ik={[L.UPDATE_MODEL_EVENT]:t=>a.isArray$1(t),change:t=>a.isArray$1(t)},Np={label:"label",value:"value",disabled:"disabled"},ck=e.defineComponent({name:"ElCheckboxGroup"}),uk=e.defineComponent({...ck,props:sk,emits:ik,setup(t,{emit:n}){const o=t,l=a.useNamespace("checkbox"),{formItem:r}=L.useFormItem(),{inputId:s,isLabeledByFormItem:i}=L.useFormItemInputId(o,{formItemContext:r}),c=async v=>{n(L.UPDATE_MODEL_EVENT,v),await e.nextTick(),n(L.CHANGE_EVENT,v)},u=e.computed({get(){return o.modelValue},set(v){c(v)}}),d=e.computed(()=>({...Np,...o.props})),f=v=>{const{label:m,value:y,disabled:h}=d.value,g={label:v[m],value:v[y],disabled:v[h]};return{...gr(v,[m,y,h]),...g}},p=e.computed(()=>o.type==="button"?di:Sp);return e.provide(Fo,{...L.pick(e.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:c}),e.watch(()=>o.modelValue,(v,m)=>{o.validateEvent&&!a.isEqual(v,m)&&(r==null||r.validate("change").catch(y=>a.debugWarn(y)))}),(v,m)=>{var y;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.tag),{id:e.unref(s),class:e.normalizeClass(e.unref(l).b("group")),role:"group","aria-label":e.unref(i)?void 0:v.ariaLabel||"checkbox-group","aria-labelledby":e.unref(i)?(y=e.unref(r))==null?void 0:y.labelId:void 0},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.options,(h,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p)),e.mergeProps({key:g},f(h)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Tp=a._export_sfc(uk,[["__file","checkbox-group.vue"]]);const Jt=a.withInstall(Sp,{CheckboxButton:di,CheckboxGroup:Tp}),dk=a.withNoopInstall(di),_p=a.withNoopInstall(Tp),Bp=a.buildProps({modelValue:{type:[String,Number,Boolean],default:void 0},size:a.useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),fk=a.buildProps({...Bp,border:Boolean}),Pp={[L.UPDATE_MODEL_EVENT]:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t),[L.CHANGE_EVENT]:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t)},Vp=Symbol("radioGroupKey"),Dp=(t,n)=>{const o=e.ref(),l=e.inject(Vp,void 0),r=e.computed(()=>!!l),s=e.computed(()=>a.isPropAbsent(t.value)?t.label:t.value),i=e.computed({get(){return r.value?l.modelValue:t.modelValue},set(p){r.value?l.changeEvent(p):n&&n(L.UPDATE_MODEL_EVENT,p),o.value.checked=t.modelValue===s.value}}),c=L.useFormSize(e.computed(()=>l==null?void 0:l.size)),u=L.useFormDisabled(e.computed(()=>l==null?void 0:l.disabled)),d=e.ref(!1),f=e.computed(()=>u.value||r.value&&i.value!==s.value?-1:0);return L.useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},e.computed(()=>r.value&&a.isPropAbsent(t.value))),{radioRef:o,isGroup:r,radioGroup:l,focus:d,size:c,disabled:u,tabIndex:f,modelValue:i,actualValue:s}},pk=e.defineComponent({name:"ElRadio"}),mk=e.defineComponent({...pk,props:fk,emits:Pp,setup(t,{emit:n}){const o=t,l=a.useNamespace("radio"),{radioRef:r,radioGroup:s,focus:i,size:c,disabled:u,modelValue:d,actualValue:f}=Dp(o,n);function p(){e.nextTick(()=>n(L.CHANGE_EVENT,d.value))}return(v,m)=>{var y;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(l).b(),e.unref(l).is("disabled",e.unref(u)),e.unref(l).is("focus",e.unref(i)),e.unref(l).is("bordered",v.border),e.unref(l).is("checked",e.unref(d)===e.unref(f)),e.unref(l).m(e.unref(c))])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(l).e("input"),e.unref(l).is("disabled",e.unref(u)),e.unref(l).is("checked",e.unref(d)===e.unref(f))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":h=>e.isRef(d)?d.value=h:null,class:e.normalizeClass(e.unref(l).e("original")),value:e.unref(f),name:v.name||((y=e.unref(s))==null?void 0:y.name),disabled:e.unref(u),checked:e.unref(d)===e.unref(f),type:"radio",onFocus:h=>i.value=!0,onBlur:h=>i.value=!1,onChange:p,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[e.vModelRadio,e.unref(d)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("inner"))},null,2)],2),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("label")),onKeydown:e.withModifiers(()=>{},["stop"])},[e.renderSlot(v.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(v.label),1)])],42,["onKeydown"])],2)}}});var Ip=a._export_sfc(mk,[["__file","radio.vue"]]);const hk=a.buildProps({...Bp}),vk=e.defineComponent({name:"ElRadioButton"}),gk=e.defineComponent({...vk,props:hk,setup(t){const n=t,o=a.useNamespace("radio"),{radioRef:l,focus:r,size:s,disabled:i,modelValue:c,radioGroup:u,actualValue:d}=Dp(n),f=e.computed(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(p,v)=>{var m;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(o).b("button"),e.unref(o).is("active",e.unref(c)===e.unref(d)),e.unref(o).is("disabled",e.unref(i)),e.unref(o).is("focus",e.unref(r)),e.unref(o).bm("button",e.unref(s))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":y=>e.isRef(c)?c.value=y:null,class:e.normalizeClass(e.unref(o).be("button","original-radio")),value:e.unref(d),type:"radio",name:p.name||((m=e.unref(u))==null?void 0:m.name),disabled:e.unref(i),onFocus:y=>r.value=!0,onBlur:y=>r.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[e.vModelRadio,e.unref(c)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).be("button","inner")),style:e.normalizeStyle(e.unref(c)===e.unref(d)?e.unref(f):{}),onKeydown:e.withModifiers(()=>{},["stop"])},[e.renderSlot(p.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(p.label),1)])],46,["onKeydown"])],2)}}});var fi=a._export_sfc(gk,[["__file","radio-button.vue"]]);const yk=a.buildProps({id:{type:String,default:void 0},size:a.useSizeProp,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},options:{type:a.definePropType(Array)},props:{type:a.definePropType(Object),default:()=>Op},type:{type:String,values:["radio","button"],default:"radio"},...L.useAriaProps(["ariaLabel"])}),bk=Pp,Op={label:"label",value:"value",disabled:"disabled"},Ck=e.defineComponent({name:"ElRadioGroup"}),kk=e.defineComponent({...Ck,props:yk,emits:bk,setup(t,{emit:n}){const o=t,l=a.useNamespace("radio"),r=L.useId(),s=e.ref(),{formItem:i}=L.useFormItem(),{inputId:c,isLabeledByFormItem:u}=L.useFormItemInputId(o,{formItemContext:i}),d=y=>{n(L.UPDATE_MODEL_EVENT,y),e.nextTick(()=>n(L.CHANGE_EVENT,y))};e.onMounted(()=>{const y=s.value.querySelectorAll("[type=radio]"),h=y[0];!Array.from(y).some(g=>g.checked)&&h&&(h.tabIndex=0)});const f=e.computed(()=>o.name||r.value),p=e.computed(()=>({...Op,...o.props})),v=y=>{const{label:h,value:g,disabled:C}=p.value,E={label:y[h],value:y[g],disabled:y[C]};return{...gr(y,[h,g,C]),...E}},m=e.computed(()=>o.type==="button"?fi:Ip);return e.provide(Vp,e.reactive({...e.toRefs(o),changeEvent:d,name:f})),e.watch(()=>o.modelValue,(y,h)=>{o.validateEvent&&!a.isEqual(y,h)&&(i==null||i.validate("change").catch(g=>a.debugWarn(g)))}),(y,h)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(c),ref_key:"radioGroupRef",ref:s,class:e.normalizeClass(e.unref(l).b("group")),role:"radiogroup","aria-label":e.unref(u)?void 0:y.ariaLabel||"radio-group","aria-labelledby":e.unref(u)?e.unref(i).labelId:void 0},[e.renderSlot(y.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(g,C)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(m)),e.mergeProps({key:C},v(g)),null,16))),128))])],10,["id","aria-label","aria-labelledby"]))}});var $p=a._export_sfc(kk,[["__file","radio-group.vue"]]);const Mp=a.withInstall(Ip,{RadioButton:fi,RadioGroup:$p}),Ek=a.withNoopInstall($p),wk=a.withNoopInstall(fi),kr=Symbol();function Sk(t){return!!(a.isArray$1(t)?t.every(({type:n})=>n===e.Comment):(t==null?void 0:t.type)===e.Comment)}var Nk=e.defineComponent({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(t){const n=a.useNamespace("cascader-node"),{renderLabelFn:o}=e.inject(kr),{node:l}=t,{data:r,label:s}=l,i=()=>{const c=o==null?void 0:o({node:l,data:r});return Sk(c)?s:c??s};return()=>e.createVNode("span",{class:n.e("label")},[i()])}});const Tk=e.defineComponent({name:"ElCascaderNode"}),_k=e.defineComponent({...Tk,props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(t,{emit:n}){const o=t,l=e.inject(kr),r=a.useNamespace("cascader-node"),s=e.computed(()=>l.isHoverMenu),i=e.computed(()=>l.config.multiple),c=e.computed(()=>l.config.checkStrictly),u=e.computed(()=>l.config.showPrefix),d=e.computed(()=>{var P;return(P=l.checkedNodes[0])==null?void 0:P.uid}),f=e.computed(()=>o.node.isDisabled),p=e.computed(()=>o.node.isLeaf),v=e.computed(()=>c.value&&!p.value||!f.value),m=e.computed(()=>h(l.expandingNode)),y=e.computed(()=>c.value&&l.checkedNodes.some(h)),h=P=>{var B;const{level:T,uid:N}=o.node;return((B=P==null?void 0:P.pathNodes[T-1])==null?void 0:B.uid)===N},g=()=>{m.value||l.expandNode(o.node)},C=P=>{const{node:B}=o;P!==B.checked&&l.handleCheckChange(B,P)},E=()=>{l.lazyLoad(o.node,()=>{p.value||g()})},k=P=>{s.value&&(b(),!p.value&&n("expand",P))},b=()=>{const{node:P}=o;!v.value||P.loading||(P.loaded?g():E())},w=()=>{p.value&&!f.value&&!c.value&&!i.value?_(!0):(l.config.checkOnClickNode&&(i.value||c.value)||p.value&&l.config.checkOnClickLeaf)&&!f.value?S(!o.node.checked):s.value||b()},S=P=>{c.value?(C(P),o.node.loaded&&g()):_(P)},_=P=>{o.node.loaded?(C(P),!c.value&&g()):E()};return(P,B)=>(e.openBlock(),e.createElementBlock("li",{id:`${t.menuId}-${t.node.uid}`,role:"menuitem","aria-haspopup":!e.unref(p),"aria-owns":e.unref(p)?void 0:t.menuId,"aria-expanded":e.unref(m),tabindex:e.unref(v)?-1:void 0,class:e.normalizeClass([e.unref(r).b(),e.unref(r).is("selectable",e.unref(c)),e.unref(r).is("active",t.node.checked),e.unref(r).is("disabled",!e.unref(v)),e.unref(m)&&"in-active-path",e.unref(y)&&"in-checked-path"]),onMouseenter:k,onFocus:k,onClick:w},[e.createCommentVNode(" prefix "),e.unref(i)&&e.unref(u)?(e.openBlock(),e.createBlock(e.unref(Jt),{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:e.unref(f),onClick:e.withModifiers(()=>{},["stop"]),"onUpdate:modelValue":S},null,8,["model-value","indeterminate","disabled","onClick"])):e.unref(c)&&e.unref(u)?(e.openBlock(),e.createBlock(e.unref(Mp),{key:1,"model-value":e.unref(d),label:t.node.uid,disabled:e.unref(f),"onUpdate:modelValue":S,onClick:e.withModifiers(()=>{},["stop"])},{default:e.withCtx(()=>[e.createCommentVNode(`
|
|
1
|
+
"use strict";const $e=require("./index-BUC9msP6.cjs"),e=require("vue"),L=require("./index-DOCHgBta.cjs"),a=require("./index-C8qRkCgn.cjs"),Pf=require("vue-router"),Ut=require("./index-9hspBVrQ.cjs"),No=require("./index-DyLovBRT.cjs"),me=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D_eVz0Sp.cjs"),Bv=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Pv=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),To=require("./index-D6gzqbUQ.cjs"),Vv=require("./index-BDUgsfdc.cjs"),Dv=require("./index-BbzUzdxF.cjs"),_o=require("./array-DyI9Z7da.cjs"),Iv=require("./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Bo97w4bj.cjs");function Ov(){}function Vf(t,n,o,l){for(var r=t.length,s=o+(l?1:-1);l?s--:++s<r;)if(n(t[s],s,t))return s;return-1}function $v(t){return t!==t}function Mv(t,n,o){for(var l=o-1,r=t.length;++l<r;)if(t[l]===n)return l;return-1}function xv(t,n,o){return n===n?Mv(t,n,o):Vf(t,$v,o)}function Av(t,n){var o=t==null?0:t.length;return!!o&&xv(t,n,0)>-1}function zv(t,n,o){var l=-1,r=t.length;n<0&&(n=-n>r?0:r+n),o=o>r?r:o,o<0&&(o+=r),r=n>o?0:o-n>>>0,n>>>=0;for(var s=Array(r);++l<r;)s[l]=t[l+n];return s}function Ct(){if(!arguments.length)return[];var t=arguments[0];return a.isArray(t)?t:[t]}function Rv(t,n,o){return t===t&&(o!==void 0&&(t=t<=o?t:o),n!==void 0&&(t=t>=n?t:n)),t}function vr(t,n,o){return o===void 0&&(o=n,n=void 0),o!==void 0&&(o=$e.toNumber(o),o=o===o?o:0),n!==void 0&&(n=$e.toNumber(n),n=n===n?n:0),Rv($e.toNumber(t),n,o)}var Lv=4;function $u(t){return a.baseClone(t,Lv)}var Fv=1,Kv=2;function Hv(t,n,o,l){var r=o.length,s=r;if(t==null)return!s;for(t=Object(t);r--;){var i=o[r];if(i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++r<s;){i=o[r];var c=i[0],u=t[c],d=i[1];if(i[2]){if(u===void 0&&!(c in t))return!1}else{var f=new a.Stack,p;if(!(p===void 0?a.baseIsEqual(d,u,Fv|Kv,l,f):p))return!1}}return!0}function Df(t){return t===t&&!a.isObject(t)}function jv(t){for(var n=a.keys(t),o=n.length;o--;){var l=n[o],r=t[l];n[o]=[l,r,Df(r)]}return n}function If(t,n){return function(o){return o==null?!1:o[t]===n&&(n!==void 0||t in Object(o))}}function Wv(t){var n=jv(t);return n.length==1&&n[0][2]?If(n[0][0],n[0][1]):function(o){return o===t||Hv(o,t,n)}}var Uv=1,qv=2;function Yv(t,n){return a.isKey(t)&&Df(n)?If(a.toKey(t),n):function(o){var l=a.get(o,t);return l===void 0&&l===n?L.hasIn(o,t):a.baseIsEqual(n,l,Uv|qv)}}function Gv(t){return function(n){return n==null?void 0:n[t]}}function Xv(t){return function(n){return a.baseGet(n,t)}}function Jv(t){return a.isKey(t)?Gv(a.toKey(t)):Xv(t)}function Of(t){return typeof t=="function"?t:t==null?L.identity:typeof t=="object"?a.isArray(t)?Yv(t[0],t[1]):Wv(t):Jv(t)}function Zv(t,n){return t&&me.baseFor(t,n,a.keys)}function Qv(t,n){return function(o,l){if(o==null)return o;if(!a.isArrayLike(o))return t(o,l);for(var r=o.length,s=-1,i=Object(o);++s<r&&l(i[s],s,i)!==!1;);return o}}var eg=Qv(Zv);function tg(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}function $f(t,n,o){var l=t==null?0:t.length;if(!l)return-1;var r=l-1;return Vf(t,Of(n),r,!0)}function ng(t,n){var o=-1,l=a.isArrayLike(t)?Array(t.length):[];return eg(t,function(r,s,i){l[++o]=n(r,s,i)}),l}function og(t,n){var o=a.isArray(t)?a.arrayMap:ng;return o(t,Of(n))}function Mf(t,n){return L.baseFlatten(og(t,n),1)}var lg=1/0;function ag(t){var n=t==null?0:t.length;return n?L.baseFlatten(t,lg):[]}function rg(t,n){return n.length<2?t:a.baseGet(t,zv(n,0,-1))}function Ql(t){return t===null}function sg(t,n){return n=a.castPath(n,t),t=rg(t,n),t==null||delete t[a.toKey(tg(n))]}function ig(t){return me.isPlainObject(t)?void 0:t}var cg=1,ug=2,dg=4,gr=L.flatRest(function(t,n){var o={};if(t==null)return o;var l=!1;n=a.arrayMap(n,function(s){return s=a.castPath(s,t),l||(l=s.length>1),s}),a.copyObject(t,a.getAllKeysIn(t),o),l&&(o=a.baseClone(o,cg|ug|dg,ig));for(var r=n.length;r--;)sg(o,n[r]);return o}),fg="Expected a function";function to(t,n,o){var l=!0,r=!0;if(typeof t!="function")throw new TypeError(fg);return a.isObject(o)&&(l="leading"in o?!!o.leading:l,r="trailing"in o?!!o.trailing:r),$e.debounce(t,n,{leading:l,maxWait:n,trailing:r})}var pg=1/0,mg=a.Set&&1/a.setToArray(new a.Set([,-0]))[1]==pg?function(t){return new a.Set(t)}:Ov,hg=200;function vg(t,n,o){var l=-1,r=Av,s=t.length,i=!0,c=[],u=c;if(s>=hg){var d=mg(t);if(d)return a.setToArray(d);i=!1,r=a.cacheHas,u=new a.SetCache}else u=c;e:for(;++l<s;){var f=t[l],p=f;if(f=f!==0?f:0,i&&p===p){for(var v=u.length;v--;)if(u[v]===p)continue e;c.push(f)}else r(u,p,o)||(u!==c&&u.push(p),c.push(f))}return c}var Ir=me.baseRest(function(t){return vg(L.baseFlatten(t,1,me.isArrayLikeObject,!0))});const gg="2.11.7",Mu=Symbol("INSTALLED_KEY"),yg=(t=[])=>({version:gg,install:(o,l)=>{o[Mu]||(o[Mu]=!0,t.forEach(r=>o.use(r)),l&&a.provideGlobalConfig(l,o,!0))}}),bg=a.buildProps({zIndex:{type:a.definePropType([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Cg={scroll:({scrollTop:t,fixed:n})=>a.isNumber(t)&&a.isBoolean(n),[L.CHANGE_EVENT]:t=>a.isBoolean(t)},xf="ElAffix",kg=e.defineComponent({name:xf}),Eg=e.defineComponent({...kg,props:bg,emits:Cg,setup(t,{expose:n,emit:o}){const l=t,r=a.useNamespace("affix"),s=e.shallowRef(),i=e.shallowRef(),c=e.shallowRef(),{height:u}=a.useWindowSize(),{height:d,width:f,top:p,bottom:v,update:m}=a.useElementBounding(i,{windowScroll:!1}),y=a.useElementBounding(s),h=e.ref(!1),g=e.ref(0),C=e.ref(0),E=e.computed(()=>({height:h.value?`${d.value}px`:"",width:h.value?`${f.value}px`:""})),k=e.computed(()=>{if(!h.value)return{};const _=l.offset?a.addUnit(l.offset):0;return{height:`${d.value}px`,width:`${f.value}px`,top:l.position==="top"?_:"",bottom:l.position==="bottom"?_:"",transform:C.value?`translateY(${C.value}px)`:"",zIndex:l.zIndex}}),b=()=>{if(!c.value)return;g.value=c.value instanceof Window?document.documentElement.scrollTop:c.value.scrollTop||0;const{position:_,target:P,offset:B}=l,T=B+d.value;if(_==="top")if(P){const N=y.bottom.value-T;h.value=B>p.value&&y.bottom.value>0,C.value=N<0?N:0}else h.value=B>p.value;else if(P){const N=u.value-y.top.value-T;h.value=u.value-B<v.value&&u.value>y.top.value,C.value=N<0?-N:0}else h.value=u.value-B<v.value},w=async()=>{if(!h.value){m();return}h.value=!1,await e.nextTick(),m(),h.value=!0},S=async()=>{m(),await e.nextTick(),o("scroll",{scrollTop:g.value,fixed:h.value})};return e.watch(h,_=>o(L.CHANGE_EVENT,_)),e.onMounted(()=>{var _;l.target?(s.value=(_=document.querySelector(l.target))!=null?_:void 0,s.value||a.throwError(xf,`Target does not exist: ${l.target}`)):s.value=document.documentElement,c.value=L.getScrollContainer(i.value,!0),m()}),a.useEventListener(c,"scroll",S),e.watchEffect(b),n({update:b,updateRoot:w}),(_,P)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:i,class:e.normalizeClass(e.unref(r).b()),style:e.normalizeStyle(e.unref(E))},[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(r).m("fixed")]:h.value}),style:e.normalizeStyle(e.unref(k))},[e.renderSlot(_.$slots,"default")],6)],6))}});var wg=a._export_sfc(Eg,[["__file","affix.vue"]]);const Sg=a.withInstall(wg);function xu(){let t;const n=(l,r)=>{o(),t=window.setTimeout(l,r)},o=()=>window.clearTimeout(t);return a.tryOnScopeDispose(()=>o()),{registerTimeout:n,cancelTimeout:o}}const Af=a.buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),zf=({showAfter:t,hideAfter:n,autoClose:o,open:l,close:r})=>{const{registerTimeout:s}=xu(),{registerTimeout:i,cancelTimeout:c}=xu();return{onOpen:(f,p=e.unref(t))=>{s(()=>{l(f);const v=e.unref(o);a.isNumber(v)&&v>0&&i(()=>{r(f)},v)},p)},onClose:(f,p=e.unref(n))=>{c(),s(()=>{r(f)},p)}}},Ng=["light","dark"],Tg=a.buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:a.keysOf(a.TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Ng,default:"light"},...Af,showAfter:Number}),_g={open:()=>!0,close:t=>a.isUndefined(t)||t instanceof Event},Bg=e.defineComponent({name:"ElAlert"}),Pg=e.defineComponent({...Bg,props:Tg,emits:_g,setup(t,{emit:n}){const o=t,{Close:l}=a.TypeComponents,r=e.useSlots(),s=a.useNamespace("alert"),i=e.ref(a.isUndefined(o.showAfter)),c=e.computed(()=>a.TypeComponentsMap[o.type]),u=e.computed(()=>!!(o.description||r.default)),d=()=>{i.value=!0,n("open")},f=m=>{i.value=!1,n("close",m)},{onOpen:p,onClose:v}=zf({showAfter:e.toRef(o,"showAfter",0),hideAfter:e.toRef(o,"hideAfter"),autoClose:e.toRef(o,"autoClose"),open:d,close:f});return a.isClient&&p(),(m,y)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(s).b(),e.unref(s).m(m.type),e.unref(s).is("center",m.center),e.unref(s).is(m.effect)]),role:"alert"},[m.showIcon&&(m.$slots.icon||e.unref(c))?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass([e.unref(s).e("icon"),e.unref(s).is("big",e.unref(u))])},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c))))])]),_:3},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("content"))},[m.title||m.$slots.title?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(s).e("title"),{"with-description":e.unref(u)}])},[e.renderSlot(m.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(m.title),1)])],2)):e.createCommentVNode("v-if",!0),e.unref(u)?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(e.unref(s).e("description"))},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.description),1)])],2)):e.createCommentVNode("v-if",!0),m.closable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.closeText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(s).e("close-btn"),e.unref(s).is("customed")]),onClick:f},e.toDisplayString(m.closeText),3)):(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:1,class:e.normalizeClass(e.unref(s).e("close-btn")),onClick:e.unref(v)},{default:e.withCtx(()=>[e.createVNode(e.unref(l))]),_:1},8,["class","onClick"]))],64)):e.createCommentVNode("v-if",!0)],2)],2),[[e.vShow,i.value]])]),_:3},8,["name"]))}});var Vg=a._export_sfc(Pg,[["__file","alert.vue"]]);const Dg=a.withInstall(Vg),uo=4,Rf={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"}},Ig=({move:t,size:n,bar:o})=>({[o.size]:n,transform:`translate${o.axis}(${t}%)`}),ei=Symbol("scrollbarContextKey"),Og=a.buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),$g="Thumb",Mg=e.defineComponent({__name:"thumb",props:Og,setup(t){const n=t,o=e.inject(ei),l=a.useNamespace("scrollbar");o||a.throwError($g,"can not inject scrollbar context");const r=e.ref(),s=e.ref(),i=e.ref({}),c=e.ref(!1);let u=!1,d=!1,f=0,p=0,v=a.isClient?document.onselectstart:null;const m=e.computed(()=>Rf[n.vertical?"vertical":"horizontal"]),y=e.computed(()=>Ig({size:n.size,move:n.move,bar:m.value})),h=e.computed(()=>r.value[m.value.offset]**2/o.wrapElement[m.value.scrollSize]/n.ratio/s.value[m.value.offset]),g=P=>{var B;if(P.stopPropagation(),P.ctrlKey||[1,2].includes(P.button))return;(B=window.getSelection())==null||B.removeAllRanges(),E(P);const T=P.currentTarget;T&&(i.value[m.value.axis]=T[m.value.offset]-(P[m.value.client]-T.getBoundingClientRect()[m.value.direction]))},C=P=>{if(!s.value||!r.value||!o.wrapElement)return;const B=Math.abs(P.target.getBoundingClientRect()[m.value.direction]-P[m.value.client]),T=s.value[m.value.offset]/2,N=(B-T)*100*h.value/r.value[m.value.offset];o.wrapElement[m.value.scroll]=N*o.wrapElement[m.value.scrollSize]/100},E=P=>{P.stopImmediatePropagation(),u=!0,f=o.wrapElement.scrollHeight,p=o.wrapElement.scrollWidth,document.addEventListener("mousemove",k),document.addEventListener("mouseup",b),v=document.onselectstart,document.onselectstart=()=>!1},k=P=>{if(!r.value||!s.value||u===!1)return;const B=i.value[m.value.axis];if(!B)return;const T=(r.value.getBoundingClientRect()[m.value.direction]-P[m.value.client])*-1,N=s.value[m.value.offset]-B,V=(T-N)*100*h.value/r.value[m.value.offset];m.value.scroll==="scrollLeft"?o.wrapElement[m.value.scroll]=V*p/100:o.wrapElement[m.value.scroll]=V*f/100},b=()=>{u=!1,i.value[m.value.axis]=0,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",b),_(),d&&(c.value=!1)},w=()=>{d=!1,c.value=!!n.size},S=()=>{d=!0,c.value=u};e.onBeforeUnmount(()=>{_(),document.removeEventListener("mouseup",b)});const _=()=>{document.onselectstart!==v&&(document.onselectstart=v)};return a.useEventListener(e.toRef(o,"scrollbarElement"),"mousemove",w),a.useEventListener(e.toRef(o,"scrollbarElement"),"mouseleave",S),(P,B)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(l).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"instance",ref:r,class:e.normalizeClass([e.unref(l).e("bar"),e.unref(l).is(e.unref(m).key)]),onMousedown:C,onClick:e.withModifiers(()=>{},["stop"])},[e.createElementVNode("div",{ref_key:"thumb",ref:s,class:e.normalizeClass(e.unref(l).e("thumb")),style:e.normalizeStyle(e.unref(y)),onMousedown:g},null,38)],42,["onClick"]),[[e.vShow,P.always||c.value]])]),_:1},8,["name"]))}});var Au=a._export_sfc(Mg,[["__file","thumb.vue"]]);const xg=a.buildProps({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Ag=e.defineComponent({__name:"bar",props:xg,setup(t,{expose:n}){const o=t,l=e.inject(ei),r=e.ref(0),s=e.ref(0),i=e.ref(""),c=e.ref(""),u=e.ref(1),d=e.ref(1);return n({handleScroll:v=>{if(v){const m=v.offsetHeight-uo,y=v.offsetWidth-uo;s.value=v.scrollTop*100/m*u.value,r.value=v.scrollLeft*100/y*d.value}},update:()=>{const v=l==null?void 0:l.wrapElement;if(!v)return;const m=v.offsetHeight-uo,y=v.offsetWidth-uo,h=m**2/v.scrollHeight,g=y**2/v.scrollWidth,C=Math.max(h,o.minSize),E=Math.max(g,o.minSize);u.value=h/(m-h)/(C/(m-C)),d.value=g/(y-g)/(E/(y-E)),c.value=C+uo<m?`${C}px`:"",i.value=E+uo<y?`${E}px`:""}}),(v,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Au,{move:r.value,ratio:d.value,size:i.value,always:v.always},null,8,["move","ratio","size","always"]),e.createVNode(Au,{move:s.value,ratio:u.value,size:c.value,vertical:"",always:v.always},null,8,["move","ratio","size","always"])],64))}});var zg=a._export_sfc(Ag,[["__file","bar.vue"]]);const Rg=a.buildProps({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:a.definePropType([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,...L.useAriaProps(["ariaLabel","ariaOrientation"])}),Lf={"end-reached":t=>["left","right","top","bottom"].includes(t),scroll:({scrollTop:t,scrollLeft:n})=>[t,n].every(a.isNumber)},ns="ElScrollbar",Lg=e.defineComponent({name:ns}),Fg=e.defineComponent({...Lg,props:Rg,emits:Lf,setup(t,{expose:n,emit:o}){const l=t,r=a.useNamespace("scrollbar");let s,i,c,u=0,d=0,f="";const p={bottom:!1,top:!1,right:!1,left:!1},v=e.ref(),m=e.ref(),y=e.ref(),h=e.ref(),g=e.computed(()=>{const N={};return l.height&&(N.height=a.addUnit(l.height)),l.maxHeight&&(N.maxHeight=a.addUnit(l.maxHeight)),[l.wrapStyle,N]}),C=e.computed(()=>[l.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!l.native}]),E=e.computed(()=>[r.e("view"),l.viewClass]),k=N=>{var V;return(V=p[N])!=null?V:!1},b={top:"bottom",bottom:"top",left:"right",right:"left"},w=N=>{const V=b[f];if(!V)return;const R=N[f],j=N[V];R&&!p[f]&&(p[f]=!0),!j&&p[V]&&(p[V]=!1)},S=()=>{var N;if(m.value){(N=h.value)==null||N.handleScroll(m.value);const V=u,R=d;u=m.value.scrollTop,d=m.value.scrollLeft;const j={bottom:u+m.value.clientHeight>=m.value.scrollHeight-l.distance,top:u<=l.distance&&V!==0,right:d+m.value.clientWidth>=m.value.scrollWidth-l.distance&&R!==d,left:d<=l.distance&&R!==0};if(o("scroll",{scrollTop:u,scrollLeft:d}),V!==u&&(f=u>V?"bottom":"top"),R!==d&&(f=d>R?"right":"left"),l.distance>0){if(k(f))return;w(j)}j[f]&&o("end-reached",f)}};function _(N,V){a.isObject$1(N)?m.value.scrollTo(N):a.isNumber(N)&&a.isNumber(V)&&m.value.scrollTo(N,V)}const P=N=>{if(!a.isNumber(N)){a.debugWarn(ns,"value must be a number");return}m.value.scrollTop=N},B=N=>{if(!a.isNumber(N)){a.debugWarn(ns,"value must be a number");return}m.value.scrollLeft=N},T=()=>{var N;(N=h.value)==null||N.update(),p[f]=!1};return e.watch(()=>l.noresize,N=>{N?(s==null||s(),i==null||i(),c==null||c()):({stop:s}=a.useResizeObserver(y,T),{stop:i}=a.useResizeObserver(m,T),c=a.useEventListener("resize",T))},{immediate:!0}),e.watch(()=>[l.maxHeight,l.height],()=>{l.native||e.nextTick(()=>{var N;T(),m.value&&((N=h.value)==null||N.handleScroll(m.value))})}),e.provide(ei,e.reactive({scrollbarElement:v,wrapElement:m})),e.onActivated(()=>{m.value&&(m.value.scrollTop=u,m.value.scrollLeft=d)}),e.onMounted(()=>{l.native||e.nextTick(()=>{T()})}),e.onUpdated(()=>T()),n({wrapRef:m,update:T,scrollTo:_,setScrollTop:P,setScrollLeft:B,handleScroll:S}),(N,V)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollbarRef",ref:v,class:e.normalizeClass(e.unref(r).b())},[e.createElementVNode("div",{ref_key:"wrapRef",ref:m,class:e.normalizeClass(e.unref(C)),style:e.normalizeStyle(e.unref(g)),tabindex:N.tabindex,onScroll:S},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N.tag),{id:N.id,ref_key:"resizeRef",ref:y,class:e.normalizeClass(e.unref(E)),style:e.normalizeStyle(N.viewStyle),role:N.role,"aria-label":N.ariaLabel,"aria-orientation":N.ariaOrientation},{default:e.withCtx(()=>[e.renderSlot(N.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),N.native?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(zg,{key:0,ref_key:"barRef",ref:h,always:N.always,"min-size":N.minSize},null,8,["always","min-size"]))],2))}});var Kg=a._export_sfc(Fg,[["__file","scrollbar.vue"]]);const Zt=a.withInstall(Kg),ti=Symbol("popper"),Ff=Symbol("popperContent"),Kf=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Hf=a.buildProps({role:{type:String,values:Kf,default:"tooltip"}}),Hg=e.defineComponent({name:"ElPopper",inheritAttrs:!1}),jg=e.defineComponent({...Hg,props:Hf,setup(t,{expose:n}){const o=t,l=e.ref(),r=e.ref(),s=e.ref(),i=e.ref(),c=e.computed(()=>o.role),u={triggerRef:l,popperInstanceRef:r,contentRef:s,referenceRef:i,role:c};return n(u),e.provide(ti,u),(d,f)=>e.renderSlot(d.$slots,"default")}});var Wg=a._export_sfc(jg,[["__file","popper.vue"]]);const Ug=e.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),qg=e.defineComponent({...Ug,setup(t,{expose:n}){const o=a.useNamespace("popper"),{arrowRef:l,arrowStyle:r}=e.inject(Ff,void 0);return e.onBeforeUnmount(()=>{l.value=void 0}),n({arrowRef:l}),(s,i)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"arrowRef",ref:l,class:e.normalizeClass(e.unref(o).e("arrow")),style:e.normalizeStyle(e.unref(r)),"data-popper-arrow":""},null,6))}});var Yg=a._export_sfc(qg,[["__file","arrow.vue"]]);const jf=a.buildProps({virtualRef:{type:a.definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:a.definePropType(Function)},onMouseleave:{type:a.definePropType(Function)},onClick:{type:a.definePropType(Function)},onKeydown:{type:a.definePropType(Function)},onFocus:{type:a.definePropType(Function)},onBlur:{type:a.definePropType(Function)},onContextmenu:{type:a.definePropType(Function)},id:String,open:Boolean}),Wf=Symbol("elForwardRef"),Gg=t=>{const n=o=>{t.value=o};e.provide(Wf,{setForwardRef:n})},Xg=t=>({mounted(n){t(n)},updated(n){t(n)},unmounted(){t(null)}}),Or="ElOnlyChild",Uf=e.defineComponent({name:Or,setup(t,{slots:n,attrs:o}){var l;const r=e.inject(Wf),s=Xg((l=r==null?void 0:r.setForwardRef)!=null?l:a.NOOP);return()=>{var i;const c=(i=n.default)==null?void 0:i.call(n,o);if(!c)return null;const[u,d]=qf(c);return u?(d>1&&a.debugWarn(Or,"requires exact only one valid child."),e.withDirectives(e.cloneVNode(u,o),[[s]])):(a.debugWarn(Or,"no valid child node found"),null)}}});function qf(t){if(!t)return[null,0];const n=t,o=n.filter(l=>l.type!==e.Comment).length;for(const l of n){if(a.isObject$1(l))switch(l.type){case e.Comment:continue;case e.Text:case"svg":return[zu(l),o];case e.Fragment:return qf(l.children);default:return[l,o]}return[zu(l),o]}return[null,0]}function zu(t){const n=a.useNamespace("only-child");return e.createVNode("span",{class:n.e("content")},[t])}const Jg=e.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),Zg=e.defineComponent({...Jg,props:jf,setup(t,{expose:n}){const o=t,{role:l,triggerRef:r}=e.inject(ti,void 0);Gg(r);const s=e.computed(()=>c.value?o.id:void 0),i=e.computed(()=>{if(l&&l.value==="tooltip")return o.open&&o.id?o.id:void 0}),c=e.computed(()=>{if(l&&l.value!=="tooltip")return l.value}),u=e.computed(()=>c.value?`${o.open}`:void 0);let d;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return e.onMounted(()=>{e.watch(()=>o.virtualRef,p=>{p&&(r.value=a.unrefElement(p))},{immediate:!0}),e.watch(r,(p,v)=>{d==null||d(),d=void 0,a.isElement(p)&&(f.forEach(m=>{var y;const h=o[m];h&&(p.addEventListener(m.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(m)),(y=v==null?void 0:v.removeEventListener)==null||y.call(v,m.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(m)))}),L.isFocusable(p)&&(d=e.watch([s,i,c,u],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((y,h)=>{a.isNil(m[h])?p.removeAttribute(y):p.setAttribute(y,m[h])})},{immediate:!0}))),a.isElement(v)&&L.isFocusable(v)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>v.removeAttribute(m))},{immediate:!0})}),e.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,r.value&&a.isElement(r.value)){const p=r.value;f.forEach(v=>{const m=o[v];m&&p.removeEventListener(v.slice(2).toLowerCase(),m,["onFocus","onBlur"].includes(v))}),r.value=void 0}}),n({triggerRef:r}),(p,v)=>p.virtualTriggering?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(Uf),e.mergeProps({key:0},p.$attrs,{"aria-controls":e.unref(s),"aria-describedby":e.unref(i),"aria-expanded":e.unref(u),"aria-haspopup":e.unref(c)}),{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Qg=a._export_sfc(Zg,[["__file","trigger.vue"]]),Mt="top",Gt="bottom",Xt="right",xt="left",ni="auto",ea=[Mt,Gt,Xt,xt],Bo="start",Al="end",ey="clippingParents",Yf="viewport",kl="popper",ty="reference",Ru=ea.reduce(function(t,n){return t.concat([n+"-"+Bo,n+"-"+Al])},[]),_n=[].concat(ea,[ni]).reduce(function(t,n){return t.concat([n,n+"-"+Bo,n+"-"+Al])},[]),ny="beforeRead",oy="read",ly="afterRead",ay="beforeMain",ry="main",sy="afterMain",iy="beforeWrite",cy="write",uy="afterWrite",dy=[ny,oy,ly,ay,ry,sy,iy,cy,uy];function hn(t){return t?(t.nodeName||"").toLowerCase():null}function nn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Po(t){var n=nn(t).Element;return t instanceof n||t instanceof Element}function Yt(t){var n=nn(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function oi(t){if(typeof ShadowRoot>"u")return!1;var n=nn(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function fy(t){var n=t.state;Object.keys(n.elements).forEach(function(o){var l=n.styles[o]||{},r=n.attributes[o]||{},s=n.elements[o];!Yt(s)||!hn(s)||(Object.assign(s.style,l),Object.keys(r).forEach(function(i){var c=r[i];c===!1?s.removeAttribute(i):s.setAttribute(i,c===!0?"":c)}))})}function py(t){var n=t.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(l){var r=n.elements[l],s=n.attributes[l]||{},i=Object.keys(n.styles.hasOwnProperty(l)?n.styles[l]:o[l]),c=i.reduce(function(u,d){return u[d]="",u},{});!Yt(r)||!hn(r)||(Object.assign(r.style,c),Object.keys(s).forEach(function(u){r.removeAttribute(u)}))})}}var Gf={name:"applyStyles",enabled:!0,phase:"write",fn:fy,effect:py,requires:["computeStyles"]};function fn(t){return t.split("-")[0]}var no=Math.max,Ya=Math.min,Vo=Math.round;function Do(t,n){n===void 0&&(n=!1);var o=t.getBoundingClientRect(),l=1,r=1;if(Yt(t)&&n){var s=t.offsetHeight,i=t.offsetWidth;i>0&&(l=Vo(o.width)/i||1),s>0&&(r=Vo(o.height)/s||1)}return{width:o.width/l,height:o.height/r,top:o.top/r,right:o.right/l,bottom:o.bottom/r,left:o.left/l,x:o.left/l,y:o.top/r}}function li(t){var n=Do(t),o=t.offsetWidth,l=t.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-l)<=1&&(l=n.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:l}}function Xf(t,n){var o=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(o&&oi(o)){var l=n;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Sn(t){return nn(t).getComputedStyle(t)}function my(t){return["table","td","th"].indexOf(hn(t))>=0}function jn(t){return((Po(t)?t.ownerDocument:t.document)||window.document).documentElement}function yr(t){return hn(t)==="html"?t:t.assignedSlot||t.parentNode||(oi(t)?t.host:null)||jn(t)}function Lu(t){return!Yt(t)||Sn(t).position==="fixed"?null:t.offsetParent}function hy(t){var n=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&Yt(t)){var l=Sn(t);if(l.position==="fixed")return null}var r=yr(t);for(oi(r)&&(r=r.host);Yt(r)&&["html","body"].indexOf(hn(r))<0;){var s=Sn(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function ta(t){for(var n=nn(t),o=Lu(t);o&&my(o)&&Sn(o).position==="static";)o=Lu(o);return o&&(hn(o)==="html"||hn(o)==="body"&&Sn(o).position==="static")?n:o||hy(t)||n}function ai(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $l(t,n,o){return no(t,Ya(n,o))}function vy(t,n,o){var l=$l(t,n,o);return l>o?o:l}function Jf(){return{top:0,right:0,bottom:0,left:0}}function Zf(t){return Object.assign({},Jf(),t)}function Qf(t,n){return n.reduce(function(o,l){return o[l]=t,o},{})}var gy=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Zf(typeof t!="number"?t:Qf(t,ea))};function yy(t){var n,o=t.state,l=t.name,r=t.options,s=o.elements.arrow,i=o.modifiersData.popperOffsets,c=fn(o.placement),u=ai(c),d=[xt,Xt].indexOf(c)>=0,f=d?"height":"width";if(!(!s||!i)){var p=gy(r.padding,o),v=li(s),m=u==="y"?Mt:xt,y=u==="y"?Gt:Xt,h=o.rects.reference[f]+o.rects.reference[u]-i[u]-o.rects.popper[f],g=i[u]-o.rects.reference[u],C=ta(s),E=C?u==="y"?C.clientHeight||0:C.clientWidth||0:0,k=h/2-g/2,b=p[m],w=E-v[f]-p[y],S=E/2-v[f]/2+k,_=$l(b,S,w),P=u;o.modifiersData[l]=(n={},n[P]=_,n.centerOffset=_-S,n)}}function by(t){var n=t.state,o=t.options,l=o.element,r=l===void 0?"[data-popper-arrow]":l;r!=null&&(typeof r=="string"&&(r=n.elements.popper.querySelector(r),!r)||!Xf(n.elements.popper,r)||(n.elements.arrow=r))}var Cy={name:"arrow",enabled:!0,phase:"main",fn:yy,effect:by,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Io(t){return t.split("-")[1]}var ky={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ey(t){var n=t.x,o=t.y,l=window,r=l.devicePixelRatio||1;return{x:Vo(n*r)/r||0,y:Vo(o*r)/r||0}}function Fu(t){var n,o=t.popper,l=t.popperRect,r=t.placement,s=t.variation,i=t.offsets,c=t.position,u=t.gpuAcceleration,d=t.adaptive,f=t.roundOffsets,p=t.isFixed,v=i.x,m=v===void 0?0:v,y=i.y,h=y===void 0?0:y,g=typeof f=="function"?f({x:m,y:h}):{x:m,y:h};m=g.x,h=g.y;var C=i.hasOwnProperty("x"),E=i.hasOwnProperty("y"),k=xt,b=Mt,w=window;if(d){var S=ta(o),_="clientHeight",P="clientWidth";if(S===nn(o)&&(S=jn(o),Sn(S).position!=="static"&&c==="absolute"&&(_="scrollHeight",P="scrollWidth")),S=S,r===Mt||(r===xt||r===Xt)&&s===Al){b=Gt;var B=p&&S===w&&w.visualViewport?w.visualViewport.height:S[_];h-=B-l.height,h*=u?1:-1}if(r===xt||(r===Mt||r===Gt)&&s===Al){k=Xt;var T=p&&S===w&&w.visualViewport?w.visualViewport.width:S[P];m-=T-l.width,m*=u?1:-1}}var N=Object.assign({position:c},d&&ky),V=f===!0?Ey({x:m,y:h}):{x:m,y:h};if(m=V.x,h=V.y,u){var R;return Object.assign({},N,(R={},R[b]=E?"0":"",R[k]=C?"0":"",R.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",R))}return Object.assign({},N,(n={},n[b]=E?h+"px":"",n[k]=C?m+"px":"",n.transform="",n))}function wy(t){var n=t.state,o=t.options,l=o.gpuAcceleration,r=l===void 0?!0:l,s=o.adaptive,i=s===void 0?!0:s,c=o.roundOffsets,u=c===void 0?!0:c,d={placement:fn(n.placement),variation:Io(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:r,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Fu(Object.assign({},d,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i,roundOffsets:u})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Fu(Object.assign({},d,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var ep={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wy,data:{}},fa={passive:!0};function Sy(t){var n=t.state,o=t.instance,l=t.options,r=l.scroll,s=r===void 0?!0:r,i=l.resize,c=i===void 0?!0:i,u=nn(n.elements.popper),d=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&d.forEach(function(f){f.addEventListener("scroll",o.update,fa)}),c&&u.addEventListener("resize",o.update,fa),function(){s&&d.forEach(function(f){f.removeEventListener("scroll",o.update,fa)}),c&&u.removeEventListener("resize",o.update,fa)}}var tp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Sy,data:{}},Ny={left:"right",right:"left",bottom:"top",top:"bottom"};function wa(t){return t.replace(/left|right|bottom|top/g,function(n){return Ny[n]})}var Ty={start:"end",end:"start"};function Ku(t){return t.replace(/start|end/g,function(n){return Ty[n]})}function ri(t){var n=nn(t),o=n.pageXOffset,l=n.pageYOffset;return{scrollLeft:o,scrollTop:l}}function si(t){return Do(jn(t)).left+ri(t).scrollLeft}function _y(t){var n=nn(t),o=jn(t),l=n.visualViewport,r=o.clientWidth,s=o.clientHeight,i=0,c=0;return l&&(r=l.width,s=l.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=l.offsetLeft,c=l.offsetTop)),{width:r,height:s,x:i+si(t),y:c}}function By(t){var n,o=jn(t),l=ri(t),r=(n=t.ownerDocument)==null?void 0:n.body,s=no(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=no(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),c=-l.scrollLeft+si(t),u=-l.scrollTop;return Sn(r||o).direction==="rtl"&&(c+=no(o.clientWidth,r?r.clientWidth:0)-s),{width:s,height:i,x:c,y:u}}function ii(t){var n=Sn(t),o=n.overflow,l=n.overflowX,r=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+l)}function np(t){return["html","body","#document"].indexOf(hn(t))>=0?t.ownerDocument.body:Yt(t)&&ii(t)?t:np(yr(t))}function Ml(t,n){var o;n===void 0&&(n=[]);var l=np(t),r=l===((o=t.ownerDocument)==null?void 0:o.body),s=nn(l),i=r?[s].concat(s.visualViewport||[],ii(l)?l:[]):l,c=n.concat(i);return r?c:c.concat(Ml(yr(i)))}function os(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Py(t){var n=Do(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Hu(t,n){return n===Yf?os(_y(t)):Po(n)?Py(n):os(By(jn(t)))}function Vy(t){var n=Ml(yr(t)),o=["absolute","fixed"].indexOf(Sn(t).position)>=0,l=o&&Yt(t)?ta(t):t;return Po(l)?n.filter(function(r){return Po(r)&&Xf(r,l)&&hn(r)!=="body"}):[]}function Dy(t,n,o){var l=n==="clippingParents"?Vy(t):[].concat(n),r=[].concat(l,[o]),s=r[0],i=r.reduce(function(c,u){var d=Hu(t,u);return c.top=no(d.top,c.top),c.right=Ya(d.right,c.right),c.bottom=Ya(d.bottom,c.bottom),c.left=no(d.left,c.left),c},Hu(t,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function op(t){var n=t.reference,o=t.element,l=t.placement,r=l?fn(l):null,s=l?Io(l):null,i=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2,u;switch(r){case Mt:u={x:i,y:n.y-o.height};break;case Gt:u={x:i,y:n.y+n.height};break;case Xt:u={x:n.x+n.width,y:c};break;case xt:u={x:n.x-o.width,y:c};break;default:u={x:n.x,y:n.y}}var d=r?ai(r):null;if(d!=null){var f=d==="y"?"height":"width";switch(s){case Bo:u[d]=u[d]-(n[f]/2-o[f]/2);break;case Al:u[d]=u[d]+(n[f]/2-o[f]/2);break}}return u}function zl(t,n){n===void 0&&(n={});var o=n,l=o.placement,r=l===void 0?t.placement:l,s=o.boundary,i=s===void 0?ey:s,c=o.rootBoundary,u=c===void 0?Yf:c,d=o.elementContext,f=d===void 0?kl:d,p=o.altBoundary,v=p===void 0?!1:p,m=o.padding,y=m===void 0?0:m,h=Zf(typeof y!="number"?y:Qf(y,ea)),g=f===kl?ty:kl,C=t.rects.popper,E=t.elements[v?g:f],k=Dy(Po(E)?E:E.contextElement||jn(t.elements.popper),i,u),b=Do(t.elements.reference),w=op({reference:b,element:C,placement:r}),S=os(Object.assign({},C,w)),_=f===kl?S:b,P={top:k.top-_.top+h.top,bottom:_.bottom-k.bottom+h.bottom,left:k.left-_.left+h.left,right:_.right-k.right+h.right},B=t.modifiersData.offset;if(f===kl&&B){var T=B[r];Object.keys(P).forEach(function(N){var V=[Xt,Gt].indexOf(N)>=0?1:-1,R=[Mt,Gt].indexOf(N)>=0?"y":"x";P[N]+=T[R]*V})}return P}function Iy(t,n){n===void 0&&(n={});var o=n,l=o.placement,r=o.boundary,s=o.rootBoundary,i=o.padding,c=o.flipVariations,u=o.allowedAutoPlacements,d=u===void 0?_n:u,f=Io(l),p=f?c?Ru:Ru.filter(function(y){return Io(y)===f}):ea,v=p.filter(function(y){return d.indexOf(y)>=0});v.length===0&&(v=p);var m=v.reduce(function(y,h){return y[h]=zl(t,{placement:h,boundary:r,rootBoundary:s,padding:i})[fn(h)],y},{});return Object.keys(m).sort(function(y,h){return m[y]-m[h]})}function Oy(t){if(fn(t)===ni)return[];var n=wa(t);return[Ku(t),n,Ku(n)]}function $y(t){var n=t.state,o=t.options,l=t.name;if(!n.modifiersData[l]._skip){for(var r=o.mainAxis,s=r===void 0?!0:r,i=o.altAxis,c=i===void 0?!0:i,u=o.fallbackPlacements,d=o.padding,f=o.boundary,p=o.rootBoundary,v=o.altBoundary,m=o.flipVariations,y=m===void 0?!0:m,h=o.allowedAutoPlacements,g=n.options.placement,C=fn(g),E=C===g,k=u||(E||!y?[wa(g)]:Oy(g)),b=[g].concat(k).reduce(function(Y,W){return Y.concat(fn(W)===ni?Iy(n,{placement:W,boundary:f,rootBoundary:p,padding:d,flipVariations:y,allowedAutoPlacements:h}):W)},[]),w=n.rects.reference,S=n.rects.popper,_=new Map,P=!0,B=b[0],T=0;T<b.length;T++){var N=b[T],V=fn(N),R=Io(N)===Bo,j=[Mt,Gt].indexOf(V)>=0,q=j?"width":"height",D=zl(n,{placement:N,boundary:f,rootBoundary:p,altBoundary:v,padding:d}),$=j?R?Xt:xt:R?Gt:Mt;w[q]>S[q]&&($=wa($));var A=wa($),O=[];if(s&&O.push(D[V]<=0),c&&O.push(D[$]<=0,D[A]<=0),O.every(function(Y){return Y})){B=N,P=!1;break}_.set(N,O)}if(P)for(var M=y?3:1,F=function(Y){var W=b.find(function(te){var re=_.get(te);if(re)return re.slice(0,Y).every(function(Q){return Q})});if(W)return B=W,"break"},x=M;x>0;x--){var K=F(x);if(K==="break")break}n.placement!==B&&(n.modifiersData[l]._skip=!0,n.placement=B,n.reset=!0)}}var My={name:"flip",enabled:!0,phase:"main",fn:$y,requiresIfExists:["offset"],data:{_skip:!1}};function ju(t,n,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-n.height-o.y,right:t.right-n.width+o.x,bottom:t.bottom-n.height+o.y,left:t.left-n.width-o.x}}function Wu(t){return[Mt,Xt,Gt,xt].some(function(n){return t[n]>=0})}function xy(t){var n=t.state,o=t.name,l=n.rects.reference,r=n.rects.popper,s=n.modifiersData.preventOverflow,i=zl(n,{elementContext:"reference"}),c=zl(n,{altBoundary:!0}),u=ju(i,l),d=ju(c,r,s),f=Wu(u),p=Wu(d);n.modifiersData[o]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:p},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}var Ay={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xy};function zy(t,n,o){var l=fn(t),r=[xt,Mt].indexOf(l)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},n,{placement:t})):o,i=s[0],c=s[1];return i=i||0,c=(c||0)*r,[xt,Xt].indexOf(l)>=0?{x:c,y:i}:{x:i,y:c}}function Ry(t){var n=t.state,o=t.options,l=t.name,r=o.offset,s=r===void 0?[0,0]:r,i=_n.reduce(function(f,p){return f[p]=zy(p,n.rects,s),f},{}),c=i[n.placement],u=c.x,d=c.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=u,n.modifiersData.popperOffsets.y+=d),n.modifiersData[l]=i}var Ly={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ry};function Fy(t){var n=t.state,o=t.name;n.modifiersData[o]=op({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}var lp={name:"popperOffsets",enabled:!0,phase:"read",fn:Fy,data:{}};function Ky(t){return t==="x"?"y":"x"}function Hy(t){var n=t.state,o=t.options,l=t.name,r=o.mainAxis,s=r===void 0?!0:r,i=o.altAxis,c=i===void 0?!1:i,u=o.boundary,d=o.rootBoundary,f=o.altBoundary,p=o.padding,v=o.tether,m=v===void 0?!0:v,y=o.tetherOffset,h=y===void 0?0:y,g=zl(n,{boundary:u,rootBoundary:d,padding:p,altBoundary:f}),C=fn(n.placement),E=Io(n.placement),k=!E,b=ai(C),w=Ky(b),S=n.modifiersData.popperOffsets,_=n.rects.reference,P=n.rects.popper,B=typeof h=="function"?h(Object.assign({},n.rects,{placement:n.placement})):h,T=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),N=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,V={x:0,y:0};if(S){if(s){var R,j=b==="y"?Mt:xt,q=b==="y"?Gt:Xt,D=b==="y"?"height":"width",$=S[b],A=$+g[j],O=$-g[q],M=m?-P[D]/2:0,F=E===Bo?_[D]:P[D],x=E===Bo?-P[D]:-_[D],K=n.elements.arrow,Y=m&&K?li(K):{width:0,height:0},W=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Jf(),te=W[j],re=W[q],Q=$l(0,_[D],Y[D]),X=k?_[D]/2-M-Q-te-T.mainAxis:F-Q-te-T.mainAxis,G=k?-_[D]/2+M+Q+re+T.mainAxis:x+Q+re+T.mainAxis,I=n.elements.arrow&&ta(n.elements.arrow),H=I?b==="y"?I.clientTop||0:I.clientLeft||0:0,Z=(R=N==null?void 0:N[b])!=null?R:0,J=$+X-Z-H,le=$+G-Z,oe=$l(m?Ya(A,J):A,$,m?no(O,le):O);S[b]=oe,V[b]=oe-$}if(c){var ee,U=b==="x"?Mt:xt,se=b==="x"?Gt:Xt,z=S[w],ne=w==="y"?"height":"width",_e=z+g[U],ye=z-g[se],Pe=[Mt,xt].indexOf(C)!==-1,Ve=(ee=N==null?void 0:N[w])!=null?ee:0,Ae=Pe?_e:z-_[ne]-P[ne]-Ve+T.altAxis,ue=Pe?z+_[ne]+P[ne]-Ve-T.altAxis:ye,we=m&&Pe?vy(Ae,z,ue):$l(m?Ae:_e,z,m?ue:ye);S[w]=we,V[w]=we-z}n.modifiersData[l]=V}}var jy={name:"preventOverflow",enabled:!0,phase:"main",fn:Hy,requiresIfExists:["offset"]};function Wy(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Uy(t){return t===nn(t)||!Yt(t)?ri(t):Wy(t)}function qy(t){var n=t.getBoundingClientRect(),o=Vo(n.width)/t.offsetWidth||1,l=Vo(n.height)/t.offsetHeight||1;return o!==1||l!==1}function Yy(t,n,o){o===void 0&&(o=!1);var l=Yt(n),r=Yt(n)&&qy(n),s=jn(n),i=Do(t,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(l||!l&&!o)&&((hn(n)!=="body"||ii(s))&&(c=Uy(n)),Yt(n)?(u=Do(n,!0),u.x+=n.clientLeft,u.y+=n.clientTop):s&&(u.x=si(s))),{x:i.left+c.scrollLeft-u.x,y:i.top+c.scrollTop-u.y,width:i.width,height:i.height}}function Gy(t){var n=new Map,o=new Set,l=[];t.forEach(function(s){n.set(s.name,s)});function r(s){o.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(c){if(!o.has(c)){var u=n.get(c);u&&r(u)}}),l.push(s)}return t.forEach(function(s){o.has(s.name)||r(s)}),l}function Xy(t){var n=Gy(t);return dy.reduce(function(o,l){return o.concat(n.filter(function(r){return r.phase===l}))},[])}function Jy(t){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(t())})})),n}}function Zy(t){var n=t.reduce(function(o,l){var r=o[l.name];return o[l.name]=r?Object.assign({},r,l,{options:Object.assign({},r.options,l.options),data:Object.assign({},r.data,l.data)}):l,o},{});return Object.keys(n).map(function(o){return n[o]})}var Uu={placement:"bottom",modifiers:[],strategy:"absolute"};function qu(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return!n.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function ci(t){t===void 0&&(t={});var n=t,o=n.defaultModifiers,l=o===void 0?[]:o,r=n.defaultOptions,s=r===void 0?Uu:r;return function(i,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Uu,s),modifiersData:{},elements:{reference:i,popper:c},attributes:{},styles:{}},f=[],p=!1,v={state:d,setOptions:function(h){var g=typeof h=="function"?h(d.options):h;y(),d.options=Object.assign({},s,d.options,g),d.scrollParents={reference:Po(i)?Ml(i):i.contextElement?Ml(i.contextElement):[],popper:Ml(c)};var C=Xy(Zy([].concat(l,d.options.modifiers)));return d.orderedModifiers=C.filter(function(E){return E.enabled}),m(),v.update()},forceUpdate:function(){if(!p){var h=d.elements,g=h.reference,C=h.popper;if(qu(g,C)){d.rects={reference:Yy(g,ta(C),d.options.strategy==="fixed"),popper:li(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(P){return d.modifiersData[P.name]=Object.assign({},P.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var k=d.orderedModifiers[E],b=k.fn,w=k.options,S=w===void 0?{}:w,_=k.name;typeof b=="function"&&(d=b({state:d,options:S,name:_,instance:v})||d)}}}},update:Jy(function(){return new Promise(function(h){v.forceUpdate(),h(d)})}),destroy:function(){y(),p=!0}};if(!qu(i,c))return v;v.setOptions(u).then(function(h){!p&&u.onFirstUpdate&&u.onFirstUpdate(h)});function m(){d.orderedModifiers.forEach(function(h){var g=h.name,C=h.options,E=C===void 0?{}:C,k=h.effect;if(typeof k=="function"){var b=k({state:d,name:g,instance:v,options:E}),w=function(){};f.push(b||w)}})}function y(){f.forEach(function(h){return h()}),f=[]}return v}}ci();var Qy=[tp,lp,ep,Gf];ci({defaultModifiers:Qy});var eb=[tp,lp,ep,Gf,Ly,My,jy,Cy,Ay],tb=ci({defaultModifiers:eb});const ap=a.buildProps({arrowOffset:{type:Number,default:5}}),nb=["fixed","absolute"],ob=a.buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:a.definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:_n,default:"bottom"},popperOptions:{type:a.definePropType(Object),default:()=>({})},strategy:{type:String,values:nb,default:"absolute"}}),rp=a.buildProps({...ob,...ap,id:String,style:{type:a.definePropType([String,Array,Object])},className:{type:a.definePropType([String,Array,Object])},effect:{type:a.definePropType(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:a.definePropType([String,Array,Object])},popperStyle:{type:a.definePropType([String,Array,Object])},referenceEl:{type:a.definePropType(Object)},triggerTargetEl:{type:a.definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...L.useAriaProps(["ariaLabel"]),loop:Boolean}),lb={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},ab=(t,n)=>{const o=e.ref(!1),l=e.ref();return{focusStartRef:l,trapped:o,onFocusAfterReleased:d=>{var f;((f=d.detail)==null?void 0:f.focusReason)!=="pointer"&&(l.value="first",n("blur"))},onFocusAfterTrapped:()=>{n("focus")},onFocusInTrap:d=>{t.visible&&!o.value&&(d.target&&(l.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{t.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,n("close")}}},rb=(t,n=[])=>{const{placement:o,strategy:l,popperOptions:r}=t,s={placement:o,strategy:l,...r,modifiers:[...ib(t),...n]};return cb(s,r==null?void 0:r.modifiers),s},sb=t=>{if(a.isClient)return a.unrefElement(t)};function ib(t){const{offset:n,gpuAcceleration:o,fallbackPlacements:l}=t;return[{name:"offset",options:{offset:[0,n??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:l}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function cb(t,n){n&&(t.modifiers=[...t.modifiers,...n??[]])}const ub=(t,n,o={})=>{const l={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=db(u);Object.assign(i.value,d)},requires:["computeStyles"]},r=e.computed(()=>{const{onFirstUpdate:u,placement:d,strategy:f,modifiers:p}=e.unref(o);return{onFirstUpdate:u,placement:d||"bottom",strategy:f||"absolute",modifiers:[...p||[],l,{name:"applyStyles",enabled:!1}]}}),s=e.shallowRef(),i=e.ref({styles:{popper:{position:e.unref(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return e.watch(r,u=>{const d=e.unref(s);d&&d.setOptions(u)},{deep:!0}),e.watch([t,n],([u,d])=>{c(),!(!u||!d)&&(s.value=tb(u,d,e.unref(r)))}),e.onBeforeUnmount(()=>{c()}),{state:e.computed(()=>{var u;return{...((u=e.unref(s))==null?void 0:u.state)||{}}}),styles:e.computed(()=>e.unref(i).styles),attributes:e.computed(()=>e.unref(i).attributes),update:()=>{var u;return(u=e.unref(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=e.unref(s))==null?void 0:u.forceUpdate()},instanceRef:e.computed(()=>e.unref(s))}};function db(t){const n=Object.keys(t.elements),o=a.fromPairs(n.map(r=>[r,t.styles[r]||{}])),l=a.fromPairs(n.map(r=>[r,t.attributes[r]]));return{styles:o,attributes:l}}const fb=0,pb=t=>{const{popperInstanceRef:n,contentRef:o,triggerRef:l,role:r}=e.inject(ti,void 0),s=e.ref(),i=e.computed(()=>t.arrowOffset),c=e.computed(()=>({name:"eventListeners",enabled:!!t.visible})),u=e.computed(()=>{var C;const E=e.unref(s),k=(C=e.unref(i))!=null?C:fb;return{name:"arrow",enabled:!$e.isUndefined(E),options:{element:E,padding:k}}}),d=e.computed(()=>({onFirstUpdate:()=>{y()},...rb(t,[e.unref(u),e.unref(c)])})),f=e.computed(()=>sb(t.referenceEl)||e.unref(l)),{attributes:p,state:v,styles:m,update:y,forceUpdate:h,instanceRef:g}=ub(f,o,d);return e.watch(g,C=>n.value=C,{flush:"sync"}),e.onMounted(()=>{e.watch(()=>{var C,E;return(E=(C=e.unref(f))==null?void 0:C.getBoundingClientRect)==null?void 0:E.call(C)},()=>{y()})}),{attributes:p,arrowRef:s,contentRef:o,instanceRef:g,state:v,styles:m,role:r,forceUpdate:h,update:y}},mb=(t,{attributes:n,styles:o,role:l})=>{const{nextZIndex:r}=a.useZIndex(),s=a.useNamespace("popper"),i=e.computed(()=>e.unref(n).popper),c=e.ref(a.isNumber(t.zIndex)?t.zIndex:r()),u=e.computed(()=>[s.b(),s.is("pure",t.pure),s.is(t.effect),t.popperClass]),d=e.computed(()=>[{zIndex:e.unref(c)},e.unref(o).popper,t.popperStyle||{}]),f=e.computed(()=>l.value==="dialog"?"false":void 0),p=e.computed(()=>e.unref(o).arrow||{});return{ariaModal:f,arrowStyle:p,contentAttrs:i,contentClass:u,contentStyle:d,contentZIndex:c,updateZIndex:()=>{c.value=a.isNumber(t.zIndex)?t.zIndex:r()}}},hb=e.defineComponent({name:"ElPopperContent"}),vb=e.defineComponent({...hb,props:rp,emits:lb,setup(t,{expose:n,emit:o}){const l=t,{focusStartRef:r,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:c,onFocusInTrap:u,onFocusoutPrevented:d,onReleaseRequested:f}=ab(l,o),{attributes:p,arrowRef:v,contentRef:m,styles:y,instanceRef:h,role:g,update:C}=pb(l),{ariaModal:E,arrowStyle:k,contentAttrs:b,contentClass:w,contentStyle:S,updateZIndex:_}=mb(l,{styles:y,attributes:p,role:g}),P=e.inject(L.formItemContextKey,void 0);e.provide(Ff,{arrowStyle:k,arrowRef:v}),P&&e.provide(L.formItemContextKey,{...P,addInputId:a.NOOP,removeInputId:a.NOOP});let B;const T=(V=!0)=>{C(),V&&_()},N=()=>{T(!1),l.visible&&l.focusOnShow?s.value=!0:l.visible===!1&&(s.value=!1)};return e.onMounted(()=>{e.watch(()=>l.triggerTargetEl,(V,R)=>{B==null||B(),B=void 0;const j=e.unref(V||m.value),q=e.unref(R||m.value);a.isElement(j)&&(B=e.watch([g,()=>l.ariaLabel,E,()=>l.id],D=>{["role","aria-label","aria-modal","id"].forEach(($,A)=>{a.isNil(D[A])?j.removeAttribute($):j.setAttribute($,D[A])})},{immediate:!0})),q!==j&&a.isElement(q)&&["role","aria-label","aria-modal","id"].forEach(D=>{q.removeAttribute(D)})},{immediate:!0}),e.watch(()=>l.visible,N,{immediate:!0})}),e.onBeforeUnmount(()=>{B==null||B(),B=void 0}),n({popperContentRef:m,popperInstanceRef:h,updatePopper:T,contentStyle:S}),(V,R)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"contentRef",ref:m},e.unref(b),{style:e.unref(S),class:e.unref(w),tabindex:"-1",onMouseenter:j=>V.$emit("mouseenter",j),onMouseleave:j=>V.$emit("mouseleave",j)}),[e.createVNode(e.unref(L.ElFocusTrap),{loop:V.loop,trapped:e.unref(s),"trap-on-focus-in":!0,"focus-trap-el":e.unref(m),"focus-start-el":e.unref(r),onFocusAfterTrapped:e.unref(c),onFocusAfterReleased:e.unref(i),onFocusin:e.unref(u),onFocusoutPrevented:e.unref(d),onReleaseRequested:e.unref(f)},{default:e.withCtx(()=>[e.renderSlot(V.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var gb=a._export_sfc(vb,[["__file","content.vue"]]);const sp=a.withInstall(Wg),ui=Symbol("elTooltip"),br=a.buildProps({to:{type:a.definePropType([String,Object]),required:!0},disabled:Boolean}),qe=a.buildProps({...Af,...rp,appendTo:{type:br.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:a.definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...L.useAriaProps(["ariaLabel"])}),pn=a.buildProps({...jf,disabled:Boolean,trigger:{type:a.definePropType([String,Array]),default:"hover"},triggerKeys:{type:a.definePropType(Array),default:()=>[a.EVENT_CODE.enter,a.EVENT_CODE.numpadEnter,a.EVENT_CODE.space]},focusOnTarget:Boolean}),yb=a.buildProp({type:a.definePropType(Boolean),default:null}),bb=a.buildProp({type:a.definePropType(Function)}),Cb=t=>{const n=`update:${t}`,o=`onUpdate:${t}`,l=[n],r={[t]:yb,[o]:bb};return{useModelToggle:({indicator:i,toggleReason:c,shouldHideWhenRouteChanges:u,shouldProceed:d,onShow:f,onHide:p})=>{const v=e.getCurrentInstance(),{emit:m}=v,y=v.props,h=e.computed(()=>a.isFunction(y[o])),g=e.computed(()=>y[t]===null),C=_=>{i.value!==!0&&(i.value=!0,c&&(c.value=_),a.isFunction(f)&&f(_))},E=_=>{i.value!==!1&&(i.value=!1,c&&(c.value=_),a.isFunction(p)&&p(_))},k=_=>{if(y.disabled===!0||a.isFunction(d)&&!d())return;const P=h.value&&a.isClient;P&&m(n,!0),(g.value||!P)&&C(_)},b=_=>{if(y.disabled===!0||!a.isClient)return;const P=h.value&&a.isClient;P&&m(n,!1),(g.value||!P)&&E(_)},w=_=>{a.isBoolean(_)&&(y.disabled&&_?h.value&&m(n,!1):i.value!==_&&(_?C():E()))},S=()=>{i.value?b():k()};return e.watch(()=>y[t],w),u&&v.appContext.config.globalProperties.$route!==void 0&&e.watch(()=>({...v.proxy.$route}),()=>{u.value&&i.value&&b()}),e.onMounted(()=>{w(y[t])}),{hide:b,show:k,toggle:S,hasUpdateHandler:h}},useModelToggleProps:r,useModelToggleEmits:l}},{useModelToggleProps:kb,useModelToggleEmits:Eb,useModelToggle:wb}=Cb("visible"),Sb=a.buildProps({...Hf,...kb,...qe,...pn,...ap,showArrow:{type:Boolean,default:!0}}),Nb=[...Eb,"before-show","before-hide","show","hide","open","close"],ls=(t,n)=>a.isArray$1(t)?t.includes(n):t===n,fo=(t,n,o)=>l=>{ls(e.unref(t),n)&&o(l)},Tb=e.defineComponent({name:"ElTooltipTrigger"}),_b=e.defineComponent({...Tb,props:pn,setup(t,{expose:n}){const o=t,l=a.useNamespace("tooltip"),{controlled:r,id:s,open:i,onOpen:c,onClose:u,onToggle:d}=e.inject(ui,void 0),f=e.ref(null),p=()=>{if(e.unref(r)||o.disabled)return!0},v=e.toRef(o,"trigger"),m=a.composeEventHandlers(p,fo(v,"hover",b=>{c(b),o.focusOnTarget&&b.target&&e.nextTick(()=>{L.focusElement(b.target,{preventScroll:!0})})})),y=a.composeEventHandlers(p,fo(v,"hover",u)),h=a.composeEventHandlers(p,fo(v,"click",b=>{b.button===0&&d(b)})),g=a.composeEventHandlers(p,fo(v,"focus",c)),C=a.composeEventHandlers(p,fo(v,"focus",u)),E=a.composeEventHandlers(p,fo(v,"contextmenu",b=>{b.preventDefault(),d(b)})),k=a.composeEventHandlers(p,b=>{const w=a.getEventCode(b);o.triggerKeys.includes(w)&&(b.preventDefault(),d(b))});return n({triggerRef:f}),(b,w)=>(e.openBlock(),e.createBlock(e.unref(Qg),{id:e.unref(s),"virtual-ref":b.virtualRef,open:e.unref(i),"virtual-triggering":b.virtualTriggering,class:e.normalizeClass(e.unref(l).e("trigger")),onBlur:e.unref(C),onClick:e.unref(h),onContextmenu:e.unref(E),onFocus:e.unref(g),onMouseenter:e.unref(m),onMouseleave:e.unref(y),onKeydown:e.unref(k)},{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Bb=a._export_sfc(_b,[["__file","trigger.vue"]]);const Pb=e.defineComponent({__name:"teleport",props:br,setup(t){return(n,o)=>n.disabled?e.renderSlot(n.$slots,"default",{key:0}):(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:n.to},[e.renderSlot(n.$slots,"default")],8,["to"]))}});var Vb=a._export_sfc(Pb,[["__file","teleport.vue"]]);const na=a.withInstall(Vb),ip=()=>{const t=a.useGetDerivedNamespace(),n=L.useIdInjection(),o=e.computed(()=>`${t.value}-popper-container-${n.prefix}`),l=e.computed(()=>`#${o.value}`);return{id:o,selector:l}},Db=t=>{const n=document.createElement("div");return n.id=t,document.body.appendChild(n),n},Ib=()=>{const{id:t,selector:n}=ip();return e.onBeforeMount(()=>{a.isClient&&(document.body.querySelector(n.value)||Db(t.value))}),{id:t,selector:n}},Yu=t=>[...new Set(t)],El=t=>a.isArray$1(t)?t[0]:t,Pt=t=>!t&&t!==0?[]:a.isArray$1(t)?t:[t],Ob=e.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),$b=e.defineComponent({...Ob,props:qe,setup(t,{expose:n}){const o=t,{selector:l}=ip(),r=a.useNamespace("tooltip"),s=e.ref(),i=a.computedEager(()=>{var A;return(A=s.value)==null?void 0:A.popperContentRef});let c;const{controlled:u,id:d,open:f,trigger:p,onClose:v,onOpen:m,onShow:y,onHide:h,onBeforeShow:g,onBeforeHide:C}=e.inject(ui,void 0),E=e.computed(()=>o.transition||`${r.namespace.value}-fade-in-linear`),k=e.computed(()=>o.persistent);e.onBeforeUnmount(()=>{c==null||c()});const b=e.computed(()=>e.unref(k)?!0:e.unref(f)),w=e.computed(()=>o.disabled?!1:e.unref(f)),S=e.computed(()=>o.appendTo||l.value),_=e.computed(()=>{var A;return(A=o.style)!=null?A:{}}),P=e.ref(!0),B=()=>{h(),$()&&L.focusElement(document.body,{preventScroll:!0}),P.value=!0},T=()=>{if(e.unref(u))return!0},N=a.composeEventHandlers(T,()=>{o.enterable&&ls(e.unref(p),"hover")&&m()}),V=a.composeEventHandlers(T,()=>{ls(e.unref(p),"hover")&&v()}),R=()=>{var A,O;(O=(A=s.value)==null?void 0:A.updatePopper)==null||O.call(A),g==null||g()},j=()=>{C==null||C()},q=()=>{y()},D=()=>{o.virtualTriggering||v()},$=A=>{var O;const M=(O=s.value)==null?void 0:O.popperContentRef,F=(A==null?void 0:A.relatedTarget)||document.activeElement;return M==null?void 0:M.contains(F)};return e.watch(()=>e.unref(f),A=>{A?(P.value=!1,c=a.onClickOutside(i,()=>{if(e.unref(u))return;Pt(e.unref(p)).every(M=>M!=="hover"&&M!=="focus")&&v()},{detectIframe:!0})):c==null||c()},{flush:"post"}),e.watch(()=>o.content,()=>{var A,O;(O=(A=s.value)==null?void 0:A.updatePopper)==null||O.call(A)}),n({contentRef:s,isFocusInsideContent:$}),(A,O)=>(e.openBlock(),e.createBlock(e.unref(na),{disabled:!A.teleported,to:e.unref(S)},{default:e.withCtx(()=>[e.unref(b)||!P.value?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:e.unref(E),appear:!e.unref(k),onAfterLeave:B,onBeforeEnter:R,onAfterEnter:q,onBeforeLeave:j,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(gb),e.mergeProps({id:e.unref(d),ref_key:"contentRef",ref:s},A.$attrs,{"aria-label":A.ariaLabel,"aria-hidden":P.value,"boundaries-padding":A.boundariesPadding,"fallback-placements":A.fallbackPlacements,"gpu-acceleration":A.gpuAcceleration,offset:A.offset,placement:A.placement,"popper-options":A.popperOptions,"arrow-offset":A.arrowOffset,strategy:A.strategy,effect:A.effect,enterable:A.enterable,pure:A.pure,"popper-class":A.popperClass,"popper-style":[A.popperStyle,e.unref(_)],"reference-el":A.referenceEl,"trigger-target-el":A.triggerTargetEl,visible:e.unref(w),"z-index":A.zIndex,loop:A.loop,onMouseenter:e.unref(N),onMouseleave:e.unref(V),onBlur:D,onClose:e.unref(v)}),{default:e.withCtx(()=>[e.renderSlot(A.$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","loop","onMouseenter","onMouseleave","onClose"]),[[e.vShow,e.unref(w)]])]),_:3},8,["name","appear"])):e.createCommentVNode("v-if",!0)]),_:3},8,["disabled","to"]))}});var Mb=a._export_sfc($b,[["__file","content.vue"]]);const xb=e.defineComponent({name:"ElTooltip"}),Ab=e.defineComponent({...xb,props:Sb,emits:Nb,setup(t,{expose:n,emit:o}){const l=t;Ib();const r=a.useNamespace("tooltip"),s=L.useId(),i=e.ref(),c=e.ref(),u=()=>{var k;const b=e.unref(i);b&&((k=b.popperInstanceRef)==null||k.update())},d=e.ref(!1),f=e.ref(),{show:p,hide:v,hasUpdateHandler:m}=wb({indicator:d,toggleReason:f}),{onOpen:y,onClose:h}=zf({showAfter:e.toRef(l,"showAfter"),hideAfter:e.toRef(l,"hideAfter"),autoClose:e.toRef(l,"autoClose"),open:p,close:v}),g=e.computed(()=>a.isBoolean(l.visible)&&!m.value),C=e.computed(()=>[r.b(),l.popperClass]);e.provide(ui,{controlled:g,id:s,open:e.readonly(d),trigger:e.toRef(l,"trigger"),onOpen:y,onClose:h,onToggle:k=>{e.unref(d)?h(k):y(k)},onShow:()=>{o("show",f.value)},onHide:()=>{o("hide",f.value)},onBeforeShow:()=>{o("before-show",f.value)},onBeforeHide:()=>{o("before-hide",f.value)},updatePopper:u}),e.watch(()=>l.disabled,k=>{k&&d.value&&(d.value=!1)});const E=k=>{var b;return(b=c.value)==null?void 0:b.isFocusInsideContent(k)};return e.onDeactivated(()=>d.value&&v()),n({popperRef:i,contentRef:c,isFocusInsideContent:E,updatePopper:u,onOpen:y,onClose:h,hide:v}),(k,b)=>(e.openBlock(),e.createBlock(e.unref(sp),{ref_key:"popperRef",ref:i,role:k.role},{default:e.withCtx(()=>[e.createVNode(Bb,{disabled:k.disabled,trigger:k.trigger,"trigger-keys":k.triggerKeys,"virtual-ref":k.virtualRef,"virtual-triggering":k.virtualTriggering,"focus-on-target":k.focusOnTarget},{default:e.withCtx(()=>[k.$slots.default?e.renderSlot(k.$slots,"default",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),e.createVNode(Mb,{ref_key:"contentRef",ref:c,"aria-label":k.ariaLabel,"boundaries-padding":k.boundariesPadding,content:k.content,disabled:k.disabled,effect:k.effect,enterable:k.enterable,"fallback-placements":k.fallbackPlacements,"hide-after":k.hideAfter,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,persistent:k.persistent,"popper-class":e.unref(C),"popper-style":k.popperStyle,placement:k.placement,"popper-options":k.popperOptions,"arrow-offset":k.arrowOffset,pure:k.pure,"raw-content":k.rawContent,"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,"show-after":k.showAfter,strategy:k.strategy,teleported:k.teleported,transition:k.transition,"virtual-triggering":k.virtualTriggering,"z-index":k.zIndex,"append-to":k.appendTo,loop:k.loop},{default:e.withCtx(()=>[e.renderSlot(k.$slots,"content",{},()=>[k.rawContent?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:k.content},null,8,["innerHTML"])):(e.openBlock(),e.createElementBlock("span",{key:1},e.toDisplayString(k.content),1))]),k.showArrow?(e.openBlock(),e.createBlock(e.unref(Yg),{key:0})):e.createCommentVNode("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","loop"])]),_:3},8,["role"]))}});var zb=a._export_sfc(Ab,[["__file","tooltip.vue"]]);const Nt=a.withInstall(zb),Rb=a.buildProps({...L.inputProps,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:a.definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:a.definePropType([Function,Array]),default:a.NOOP},popperClass:qe.popperClass,popperStyle:qe.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:qe.teleported,appendTo:qe.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),Lb={[L.UPDATE_MODEL_EVENT]:t=>a.isString(t)||a.isNumber(t),[L.INPUT_EVENT]:t=>a.isString(t)||a.isNumber(t),[L.CHANGE_EVENT]:t=>a.isString(t)||a.isNumber(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>a.isObject$1(t)},cp="ElAutocomplete",Fb=e.defineComponent({name:cp,inheritAttrs:!1}),Kb=e.defineComponent({...Fb,props:Rb,emits:Lb,setup(t,{expose:n,emit:o}){const l=t,r=e.computed(()=>L.pick(l,Object.keys(L.inputProps))),s=e.useAttrs(),i=L.useFormDisabled(),c=a.useNamespace("autocomplete"),u=e.ref(),d=e.ref(),f=e.ref(),p=e.ref();let v=!1,m=!1;const y=e.ref([]),h=e.ref(-1),g=e.ref(""),C=e.ref(!1),E=e.ref(!1),k=e.ref(!1),b=L.useId(),w=e.computed(()=>s.style),S=e.computed(()=>(y.value.length>0||k.value)&&C.value),_=e.computed(()=>!l.hideLoading&&k.value),P=e.computed(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),B=()=>{S.value&&(g.value=`${u.value.$el.offsetWidth}px`)},T=()=>{h.value=-1},N=async G=>{if(E.value)return;const I=H=>{k.value=!1,!E.value&&(a.isArray$1(H)?(y.value=H,h.value=l.highlightFirstItem?0:-1):a.throwError(cp,"autocomplete suggestions must be an array"))};if(k.value=!0,a.isArray$1(l.fetchSuggestions))I(l.fetchSuggestions);else{const H=await l.fetchSuggestions(G,I);a.isArray$1(H)&&I(H)}},V=e.computed(()=>l.debounce),R=a.useDebounceFn(N,V),j=G=>{const I=!!G;if(o(L.INPUT_EVENT,G),o(L.UPDATE_MODEL_EVENT,G),E.value=!1,C.value||(C.value=I),!l.triggerOnFocus&&!G){E.value=!0,y.value=[];return}R(G)},q=G=>{var I;i.value||(((I=G.target)==null?void 0:I.tagName)!=="INPUT"||P.value.includes(document.activeElement))&&(C.value=!0)},D=G=>{o(L.CHANGE_EVENT,G)},$=G=>{var I;if(m)m=!1;else{C.value=!0,o("focus",G);const H=(I=l.modelValue)!=null?I:"";l.triggerOnFocus&&!v&&R(String(H))}},A=G=>{setTimeout(()=>{var I;if((I=f.value)!=null&&I.isFocusInsideContent()){m=!0;return}C.value&&x(),o("blur",G)})},O=()=>{C.value=!1,o(L.UPDATE_MODEL_EVENT,""),o("clear")},M=async()=>{var G;(G=u.value)!=null&&G.isComposing||(S.value&&h.value>=0&&h.value<y.value.length?W(y.value[h.value]):(l.selectWhenUnmatched&&(o("select",{value:l.modelValue}),y.value=[],h.value=-1),C.value=!0,R(String(l.modelValue))))},F=G=>{S.value&&(G.preventDefault(),G.stopPropagation(),x())},x=()=>{C.value=!1},K=()=>{var G;(G=u.value)==null||G.focus()},Y=()=>{var G;(G=u.value)==null||G.blur()},W=async G=>{o(L.INPUT_EVENT,G[l.valueKey]),o(L.UPDATE_MODEL_EVENT,G[l.valueKey]),o("select",G),y.value=[],h.value=-1},te=G=>{var I,H;if(!S.value||k.value)return;if(G<0){if(!l.loopNavigation){h.value=-1;return}G=y.value.length-1}G>=y.value.length&&(G=l.loopNavigation?0:y.value.length-1);const[Z,J]=re(),le=J[G],oe=Z.scrollTop,{offsetTop:ee,scrollHeight:U}=le;ee+U>oe+Z.clientHeight&&(Z.scrollTop=ee+U-Z.clientHeight),ee<oe&&(Z.scrollTop=ee),h.value=G,(H=(I=u.value)==null?void 0:I.ref)==null||H.setAttribute("aria-activedescendant",`${b.value}-item-${h.value}`)},re=()=>{const G=d.value.querySelector(`.${c.be("suggestion","wrap")}`),I=G.querySelectorAll(`.${c.be("suggestion","list")} li`);return[G,I]},Q=a.onClickOutside(p,()=>{var G;(G=f.value)!=null&&G.isFocusInsideContent()||S.value&&x()}),X=G=>{switch(a.getEventCode(G)){case a.EVENT_CODE.up:G.preventDefault(),te(h.value-1);break;case a.EVENT_CODE.down:G.preventDefault(),te(h.value+1);break;case a.EVENT_CODE.enter:G.preventDefault(),M();break;case a.EVENT_CODE.tab:x();break;case a.EVENT_CODE.esc:F(G);break;case a.EVENT_CODE.home:G.preventDefault(),te(0);break;case a.EVENT_CODE.end:G.preventDefault(),te(y.value.length-1);break;case a.EVENT_CODE.pageUp:G.preventDefault(),te(Math.max(0,h.value-10));break;case a.EVENT_CODE.pageDown:G.preventDefault(),te(Math.min(y.value.length-1,h.value+10));break}};return e.onBeforeUnmount(()=>{Q==null||Q()}),e.onMounted(()=>{var G;const I=(G=u.value)==null?void 0:G.ref;I&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:"id"},{key:"aria-activedescendant",value:`${b.value}-item-${h.value}`}].forEach(({key:H,value:Z})=>I.setAttribute(H,Z)),v=I.hasAttribute("readonly"))}),n({highlightedIndex:h,activated:C,loading:k,inputRef:u,popperRef:f,suggestions:y,handleSelect:W,handleKeyEnter:M,focus:K,blur:Y,close:x,highlight:te,getData:N}),(G,I)=>(e.openBlock(),e.createBlock(e.unref(Nt),{ref_key:"popperRef",ref:f,visible:e.unref(S),placement:G.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[e.unref(c).e("popper"),G.popperClass],"popper-style":G.popperStyle,teleported:G.teleported,"append-to":G.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${e.unref(c).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:B,onHide:T},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"regionRef",ref:d,class:e.normalizeClass([e.unref(c).b("suggestion"),e.unref(c).is("loading",e.unref(_))]),style:e.normalizeStyle({[G.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[G.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(c).be("suggestion","header")),onClick:e.withModifiers(()=>{},["stop"])},[e.renderSlot(G.$slots,"header")],10,["onClick"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(Zt),{id:e.unref(b),tag:"ul","wrap-class":e.unref(c).be("suggestion","wrap"),"view-class":e.unref(c).be("suggestion","list"),role:"listbox"},{default:e.withCtx(()=>[e.unref(_)?(e.openBlock(),e.createElementBlock("li",{key:0},[e.renderSlot(G.$slots,"loading",{},()=>[e.createVNode(e.unref(a.ElIcon),{class:e.normalizeClass(e.unref(c).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(a.loading_default))]),_:1},8,["class"])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(y.value,(H,Z)=>(e.openBlock(),e.createElementBlock("li",{id:`${e.unref(b)}-item-${Z}`,key:Z,class:e.normalizeClass({highlighted:h.value===Z}),role:"option","aria-selected":h.value===Z,onClick:J=>W(H)},[e.renderSlot(G.$slots,"default",{item:H},()=>[e.createTextVNode(e.toDisplayString(H[G.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"]),G.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(c).be("suggestion","footer")),onClick:e.withModifiers(()=>{},["stop"])},[e.renderSlot(G.$slots,"footer")],10,["onClick"])):e.createCommentVNode("v-if",!0)],6)]),default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"listboxRef",ref:p,class:e.normalizeClass([e.unref(c).b(),G.$attrs.class]),style:e.normalizeStyle(e.unref(w)),role:"combobox","aria-haspopup":"listbox","aria-expanded":e.unref(S),"aria-owns":e.unref(b)},[e.createVNode(e.unref(L.ElInput),e.mergeProps({ref_key:"inputRef",ref:u},e.mergeProps(e.unref(r),G.$attrs),{"model-value":G.modelValue,disabled:e.unref(i),onInput:j,onChange:D,onFocus:$,onBlur:A,onClear:O,onKeydown:X,onMousedown:q}),e.createSlots({_:2},[G.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(G.$slots,"prepend")])}:void 0,G.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(G.$slots,"append")])}:void 0,G.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(G.$slots,"prefix")])}:void 0,G.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(G.$slots,"suffix")])}:void 0]),1040,["model-value","disabled"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});var Hb=a._export_sfc(Kb,[["__file","autocomplete.vue"]]);const jb=a.withInstall(Hb),Wb=a.buildProps({size:{type:[Number,String],values:a.componentSizes,default:"",validator:t=>a.isNumber(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:a.iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:a.definePropType(String),default:"cover"}}),Ub={error:t=>t instanceof Event},qb=e.defineComponent({name:"ElAvatar"}),Yb=e.defineComponent({...qb,props:Wb,emits:Ub,setup(t,{emit:n}){const o=t,l=a.useNamespace("avatar"),r=e.ref(!1),s=e.computed(()=>{const{size:d,icon:f,shape:p}=o,v=[l.b()];return a.isString(d)&&v.push(l.m(d)),f&&v.push(l.m("icon")),p&&v.push(l.m(p)),v}),i=e.computed(()=>{const{size:d}=o;return a.isNumber(d)?l.cssVarBlock({size:a.addUnit(d)||""}):void 0}),c=e.computed(()=>({objectFit:o.fit}));e.watch(()=>o.src,()=>r.value=!1);function u(d){r.value=!0,n("error",d)}return(d,f)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(s)),style:e.normalizeStyle(e.unref(i))},[(d.src||d.srcSet)&&!r.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:d.src,alt:d.alt,srcset:d.srcSet,style:e.normalizeStyle(e.unref(c)),onError:u},null,44,["src","alt","srcset"])):d.icon?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon)))]),_:1})):e.renderSlot(d.$slots,"default",{key:2})],6))}});var Gb=a._export_sfc(Yb,[["__file","avatar.vue"]]);const Xb=a.withInstall(Gb),Jb={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Zb={click:t=>t instanceof MouseEvent},Qb=(t,n,o)=>{const l=e.shallowRef(),r=e.shallowRef(),s=e.ref(!1),i=()=>{l.value&&(s.value=l.value.scrollTop>=t.visibilityHeight)},c=d=>{var f;(f=l.value)==null||f.scrollTo({top:0,behavior:"smooth"}),n("click",d)},u=a.useThrottleFn(i,300,!0);return a.useEventListener(r,"scroll",u),e.onMounted(()=>{var d;r.value=document,l.value=document.documentElement,t.target&&(l.value=(d=document.querySelector(t.target))!=null?d:void 0,l.value||a.throwError(o,`target does not exist: ${t.target}`),r.value=l.value),i()}),{visible:s,handleClick:c}},up="ElBacktop",eC=e.defineComponent({name:up}),tC=e.defineComponent({...eC,props:Jb,emits:Zb,setup(t,{emit:n}){const o=t,l=a.useNamespace("backtop"),{handleClick:r,visible:s}=Qb(o,n,up),i=e.computed(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`}));return(c,u)=>(e.openBlock(),e.createBlock(e.Transition,{name:`${e.unref(l).namespace.value}-fade-in`},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(e.unref(i)),class:e.normalizeClass(e.unref(l).b()),onClick:e.withModifiers(e.unref(r),["stop"])},[e.renderSlot(c.$slots,"default",{},()=>[e.createVNode(e.unref(a.ElIcon),{class:e.normalizeClass(e.unref(l).e("icon"))},{default:e.withCtx(()=>[e.createVNode(e.unref(a.caret_top_default))]),_:1},8,["class"])])],14,["onClick"])):e.createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var nC=a._export_sfc(tC,[["__file","backtop.vue"]]);const oC=a.withInstall(nC),dp=Symbol("breadcrumbKey"),lC=a.buildProps({separator:{type:String,default:"/"},separatorIcon:{type:a.iconPropType}}),aC=e.defineComponent({name:"ElBreadcrumb"}),rC=e.defineComponent({...aC,props:lC,setup(t){const n=t,{t:o}=a.useLocale(),l=a.useNamespace("breadcrumb"),r=e.ref();return e.provide(dp,n),e.onMounted(()=>{const s=r.value.querySelectorAll(`.${l.e("item")}`);s.length&&s[s.length-1].setAttribute("aria-current","page")}),(s,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"breadcrumb",ref:r,class:e.normalizeClass(e.unref(l).b()),"aria-label":e.unref(o)("el.breadcrumb.label"),role:"navigation"},[e.renderSlot(s.$slots,"default")],10,["aria-label"]))}});var sC=a._export_sfc(rC,[["__file","breadcrumb.vue"]]);const iC=a.buildProps({to:{type:a.definePropType([String,Object]),default:""},replace:Boolean}),cC=e.defineComponent({name:"ElBreadcrumbItem"}),uC=e.defineComponent({...cC,props:iC,setup(t){const n=t,o=e.getCurrentInstance(),l=e.inject(dp,void 0),r=a.useNamespace("breadcrumb"),s=o.appContext.config.globalProperties.$router,i=e.ref(),c=()=>{!n.to||!s||(n.replace?s.replace(n.to):s.push(n.to))};return(u,d)=>{var f,p;return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(r).e("item"))},[e.createElementVNode("span",{ref_key:"link",ref:i,class:e.normalizeClass([e.unref(r).e("inner"),e.unref(r).is("link",!!u.to)]),role:"link",onClick:c},[e.renderSlot(u.$slots,"default")],2),(f=e.unref(l))!=null&&f.separatorIcon?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass(e.unref(r).e("separator"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l).separatorIcon)))]),_:1},8,["class"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r).e("separator")),role:"presentation"},e.toDisplayString((p=e.unref(l))==null?void 0:p.separator),3))],2)}}});var fp=a._export_sfc(uC,[["__file","breadcrumb-item.vue"]]);const dC=a.withInstall(sC,{BreadcrumbItem:fp}),fC=a.withNoopInstall(fp),$r=(t,n)=>[t>0?t-1:void 0,t,t<n?t+1:void 0],Kn=t=>Array.from(Array.from({length:t}).keys()),pp=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),mp=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Gu=function(t,n){const o=a.isDate(t),l=a.isDate(n);return o&&l?t.getTime()===n.getTime():!o&&!l?t===n:!1},hp=function(t,n){const o=a.isArray$1(t),l=a.isArray$1(n);return o&&l?t.length!==n.length?!1:t.every((r,s)=>Gu(r,n[s])):!o&&!l?Gu(t,n):!1},Xu=function(t,n,o){const l=a.isEmpty(n)||n==="x"?me.dayjs(t).locale(o):me.dayjs(t,n).locale(o);return l.isValid()?l:void 0},Ju=function(t,n,o){return a.isEmpty(n)?t:n==="x"?+t:me.dayjs(t).locale(o).format(n)},Mr=(t,n)=>{var o;const l=[],r=n==null?void 0:n();for(let s=0;s<t;s++)l.push((o=r==null?void 0:r.includes(s))!=null?o:!1);return l},Sa=t=>a.isArray$1(t)?t.map(n=>n.toDate()):t.toDate(),pC=(t,n)=>{const o=t.subtract(1,"month").endOf("month").date();return Kn(n).map((l,r)=>o-(n-r-1))},mC=t=>{const n=t.daysInMonth();return Kn(n).map((o,l)=>l+1)},hC=t=>Kn(t.length/7).map(n=>{const o=n*7;return t.slice(o,o+7)}),vC=a.buildProps({selectedDay:{type:a.definePropType(Object)},range:{type:a.definePropType(Array)},date:{type:a.definePropType(Object),required:!0},hideHeader:{type:Boolean}}),gC={pick:t=>a.isObject$1(t)};var Na={exports:{}},yC=Na.exports,Zu;function bC(){return Zu||(Zu=1,function(t,n){(function(o,l){t.exports=l()})(yC,function(){return function(o,l,r){var s=l.prototype,i=function(p){return p&&(p.indexOf?p:p.s)},c=function(p,v,m,y,h){var g=p.name?p:p.$locale(),C=i(g[v]),E=i(g[m]),k=C||E.map(function(w){return w.slice(0,y)});if(!h)return k;var b=g.weekStart;return k.map(function(w,S){return k[(S+(b||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(p,v){return p.formats[v]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,h,g){return h||g.slice(1)})}(p.formats[v.toUpperCase()])},f=function(){var p=this;return{months:function(v){return v?v.format("MMMM"):c(p,"months")},monthsShort:function(v){return v?v.format("MMM"):c(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):c(p,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):c(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):c(p,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(p.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return f.bind(this)()},r.localeData=function(){var p=u();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return d(p,v)},meridiem:p.meridiem,ordinal:p.ordinal}},r.months=function(){return c(u(),"months")},r.monthsShort=function(){return c(u(),"monthsShort","months",3)},r.weekdays=function(p){return c(u(),"weekdays",null,null,p)},r.weekdaysShort=function(p){return c(u(),"weekdaysShort","weekdays",3,p)},r.weekdaysMin=function(p){return c(u(),"weekdaysMin","weekdays",2,p)}}})}(Na)),Na.exports}var CC=bC();const vp=me.getDefaultExportFromCjs(CC),kC=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],xr=["sun","mon","tue","wed","thu","fri","sat"],EC=(t,n)=>{me.dayjs.extend(vp);const o=me.dayjs.localeData().firstDayOfWeek(),{t:l,lang:r}=a.useLocale(),s=me.dayjs().locale(r.value),i=e.computed(()=>!!t.range&&!!t.range.length),c=e.computed(()=>{let v=[];if(i.value){const[m,y]=t.range,h=Kn(y.date()-m.date()+1).map(E=>({text:m.date()+E,type:"current"}));let g=h.length%7;g=g===0?0:7-g;const C=Kn(g).map((E,k)=>({text:k+1,type:"next"}));v=h.concat(C)}else{const m=t.date.startOf("month").day(),y=pC(t.date,(m-o+7)%7).map(E=>({text:E,type:"prev"})),h=mC(t.date).map(E=>({text:E,type:"current"}));v=[...y,...h];const g=7-(v.length%7||7),C=Kn(g).map((E,k)=>({text:k+1,type:"next"}));v=v.concat(C)}return hC(v)}),u=e.computed(()=>{const v=o;return v===0?xr.map(m=>l(`el.datepicker.weeks.${m}`)):xr.slice(v).concat(xr.slice(0,v)).map(m=>l(`el.datepicker.weeks.${m}`))}),d=(v,m)=>{switch(m){case"prev":return t.date.startOf("month").subtract(1,"month").date(v);case"next":return t.date.startOf("month").add(1,"month").date(v);case"current":return t.date.date(v)}};return{now:s,isInRange:i,rows:c,weekDays:u,getFormattedDate:d,handlePickDay:({text:v,type:m})=>{const y=d(v,m);n("pick",y)},getSlotData:({text:v,type:m})=>{const y=d(v,m);return{isSelected:y.isSame(t.selectedDay),type:`${m}-month`,day:y.format("YYYY-MM-DD"),date:y.toDate()}}}},wC=e.defineComponent({name:"DateTable"}),SC=e.defineComponent({...wC,props:vC,emits:gC,setup(t,{expose:n,emit:o}){const l=t,{isInRange:r,now:s,rows:i,weekDays:c,getFormattedDate:u,handlePickDay:d,getSlotData:f}=EC(l,o),p=a.useNamespace("calendar-table"),v=a.useNamespace("calendar-day"),m=({text:y,type:h})=>{const g=[h];if(h==="current"){const C=u(y,h);C.isSame(l.selectedDay,"day")&&g.push(v.is("selected")),C.isSame(s,"day")&&g.push(v.is("today"))}return g};return n({getFormattedDate:u}),(y,h)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass([e.unref(p).b(),e.unref(p).is("range",e.unref(r))]),cellspacing:"0",cellpadding:"0"},[y.hideHeader?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("thead",{key:0},[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),g=>(e.openBlock(),e.createElementBlock("th",{key:g,scope:"col"},e.toDisplayString(g),1))),128))])])),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(g,C)=>(e.openBlock(),e.createElementBlock("tr",{key:C,class:e.normalizeClass({[e.unref(p).e("row")]:!0,[e.unref(p).em("row","hide-border")]:C===0&&y.hideHeader})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g,(E,k)=>(e.openBlock(),e.createElementBlock("td",{key:k,class:e.normalizeClass(m(E)),onClick:b=>e.unref(d)(E)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(v).b())},[e.renderSlot(y.$slots,"date-cell",{data:e.unref(f)(E)},()=>[e.createElementVNode("span",null,e.toDisplayString(E.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var Qu=a._export_sfc(SC,[["__file","date-table.vue"]]);const NC=(t,n)=>{const o=t.endOf("month"),l=n.startOf("month"),s=o.isSame(l,"week")?l.add(1,"week"):l;return[[t,o],[s.startOf("week"),n]]},TC=(t,n)=>{const o=t.endOf("month"),l=t.add(1,"month").startOf("month"),r=o.isSame(l,"week")?l.add(1,"week"):l,s=r.endOf("month"),i=n.startOf("month"),c=s.isSame(i,"week")?i.add(1,"week"):i;return[[t,o],[r.startOf("week"),s],[c.startOf("week"),n]]},_C=(t,n,o)=>{const{lang:l}=a.useLocale(),r=e.ref(),s=me.dayjs().locale(l.value),i=e.computed({get(){return t.modelValue?u.value:r.value},set(g){if(!g)return;r.value=g;const C=g.toDate();n(L.INPUT_EVENT,C),n(L.UPDATE_MODEL_EVENT,C)}}),c=e.computed(()=>{if(!t.range||!a.isArray$1(t.range)||t.range.length!==2||t.range.some(k=>!a.isDate(k)))return[];const g=t.range.map(k=>me.dayjs(k).locale(l.value)),[C,E]=g;return C.isAfter(E)?(a.debugWarn(o,"end time should be greater than start time"),[]):C.isSame(E,"month")?m(C,E):C.add(1,"month").month()!==E.month()?(a.debugWarn(o,"start time and end time interval must not exceed two months"),[]):m(C,E)}),u=e.computed(()=>t.modelValue?me.dayjs(t.modelValue).locale(l.value):i.value||(c.value.length?c.value[0][0]:s)),d=e.computed(()=>u.value.subtract(1,"month").date(1)),f=e.computed(()=>u.value.add(1,"month").date(1)),p=e.computed(()=>u.value.subtract(1,"year").date(1)),v=e.computed(()=>u.value.add(1,"year").date(1)),m=(g,C)=>{const E=g.startOf("week"),k=C.endOf("week"),b=E.get("month"),w=k.get("month");return b===w?[[E,k]]:(b+1)%12===w?NC(E,k):b+2===w||(b+1)%11===w?TC(E,k):(a.debugWarn(o,"start time and end time interval must not exceed two months"),[])},y=g=>{i.value=g};return{calculateValidatedDateRange:m,date:u,realSelectedDay:i,pickDay:y,selectDate:g=>{const E={"prev-month":d.value,"next-month":f.value,"prev-year":p.value,"next-year":v.value,today:s}[g];E.isSame(u.value,"day")||y(E)},validatedRange:c}},BC=t=>a.isArray$1(t)&&t.length===2&&t.every(n=>a.isDate(n)),PC=a.buildProps({modelValue:{type:Date},range:{type:a.definePropType(Array),validator:BC}}),VC={[L.UPDATE_MODEL_EVENT]:t=>a.isDate(t),[L.INPUT_EVENT]:t=>a.isDate(t)},gp="ElCalendar",DC=e.defineComponent({name:gp}),IC=e.defineComponent({...DC,props:PC,emits:VC,setup(t,{expose:n,emit:o}){const l=t,r=a.useNamespace("calendar"),{calculateValidatedDateRange:s,date:i,pickDay:c,realSelectedDay:u,selectDate:d,validatedRange:f}=_C(l,o,gp),{t:p}=a.useLocale(),v=e.computed(()=>{const m=`el.datepicker.month${i.value.format("M")}`;return`${i.value.year()} ${p("el.datepicker.year")} ${p(m)}`});return n({selectedDay:u,pickDay:c,selectDate:d,calculateValidatedDateRange:s}),(m,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("header"))},[e.renderSlot(m.$slots,"header",{date:e.unref(v)},()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).e("title"))},e.toDisplayString(e.unref(v)),3),e.unref(f).length===0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).e("button-group"))},[e.createVNode(e.unref(L.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(L.ElButton),{size:"small",onClick:h=>e.unref(d)("prev-month")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(L.ElButton),{size:"small",onClick:h=>e.unref(d)("today")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("el.datepicker.today")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(L.ElButton),{size:"small",onClick:h=>e.unref(d)("next-month")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):e.createCommentVNode("v-if",!0)])],2),e.unref(f).length===0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).e("body"))},[e.createVNode(Qu,{date:e.unref(i),"selected-day":e.unref(u),onPick:e.unref(c)},e.createSlots({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:e.withCtx(h=>[e.renderSlot(m.$slots,"date-cell",e.normalizeProps(e.guardReactiveProps(h)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r).e("body"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(h,g)=>(e.openBlock(),e.createBlock(Qu,{key:g,date:h[0],"selected-day":e.unref(u),range:h,"hide-header":g!==0,onPick:e.unref(c)},e.createSlots({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:e.withCtx(C=>[e.renderSlot(m.$slots,"date-cell",e.normalizeProps(e.guardReactiveProps(C)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var OC=a._export_sfc(IC,[["__file","calendar.vue"]]);const $C=a.withInstall(OC),MC=a.buildProps({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:a.definePropType([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),xC=e.defineComponent({name:"ElCard"}),AC=e.defineComponent({...xC,props:MC,setup(t){const n=a.useGlobalConfig("card"),o=a.useNamespace("card");return(l,r)=>{var s;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(o).b(),e.unref(o).is(`${l.shadow||((s=e.unref(n))==null?void 0:s.shadow)||"always"}-shadow`)])},[l.$slots.header||l.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(o).e("header"),l.headerClass])},[e.renderSlot(l.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(l.header),1)])],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(o).e("body"),l.bodyClass]),style:e.normalizeStyle(l.bodyStyle)},[e.renderSlot(l.$slots,"default")],6),l.$slots.footer||l.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(o).e("footer"),l.footerClass])},[e.renderSlot(l.$slots,"footer",{},()=>[e.createTextVNode(e.toDisplayString(l.footer),1)])],2)):e.createCommentVNode("v-if",!0)],2)}}});var zC=a._export_sfc(AC,[["__file","card.vue"]]);const RC=a.withInstall(zC),LC=a.buildProps({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),FC={change:(t,n)=>[t,n].every(a.isNumber)},yp=Symbol("carouselContextKey"),Rl="ElCarouselItem",KC=(t,n,o)=>L.flattedChildren(t.subTree).filter(s=>{var i;return e.isVNode(s)&&((i=s.type)==null?void 0:i.name)===n&&!!s.component}).map(s=>s.component.uid).map(s=>o[s]).filter(s=>!!s),Cr=(t,n)=>{const o=e.shallowRef({}),l=e.shallowRef([]),r=new WeakMap,s=f=>{o.value[f.uid]=f,e.triggerRef(o),e.onMounted(()=>{const p=f.getVnode().el,v=p.parentNode;if(!r.has(v)){r.set(v,[]);const m=v.insertBefore.bind(v);v.insertBefore=(y,h)=>(r.get(v).some(C=>y===C||h===C)&&e.triggerRef(o),m(y,h))}r.get(v).push(p)})},i=f=>{delete o.value[f.uid],e.triggerRef(o);const p=f.getVnode().el,v=p.parentNode,m=r.get(v),y=m.indexOf(p);m.splice(y,1)},c=()=>{l.value=KC(t,n,o.value)},u=f=>f.render(),d=e.defineComponent({setup(f,{slots:p}){return()=>(c(),p.default?e.h(u,{render:p.default}):null)}});return{children:l,addChild:s,removeChild:i,ChildrenSorter:d}},ed=300,HC=(t,n,o)=>{const{children:l,addChild:r,removeChild:s,ChildrenSorter:i}=Cr(e.getCurrentInstance(),Rl),c=e.useSlots(),u=e.ref(-1),d=e.ref(null),f=e.ref(!1),p=e.ref(),v=e.ref(0),m=e.ref(!0),y=e.computed(()=>t.arrow!=="never"&&!e.unref(C)),h=e.computed(()=>l.value.some(W=>W.props.label.toString().length>0)),g=e.computed(()=>t.type==="card"),C=e.computed(()=>t.direction==="vertical"),E=e.computed(()=>t.height!=="auto"?{height:t.height}:{height:`${v.value}px`,overflow:"hidden"}),k=to(W=>{B(W)},ed,{trailing:!0}),b=to(W=>{$(W)},ed),w=W=>m.value?u.value<=1?W<=1:W>1:!0;function S(){d.value&&(clearInterval(d.value),d.value=null)}function _(){t.interval<=0||!t.autoplay||d.value||(d.value=setInterval(()=>P(),t.interval))}const P=()=>{u.value<l.value.length-1?u.value=u.value+1:t.loop&&(u.value=0)};function B(W){if(a.isString(W)){const Q=l.value.filter(X=>X.props.name===W);Q.length>0&&(W=l.value.indexOf(Q[0]))}if(W=Number(W),Number.isNaN(W)||W!==Math.floor(W)){a.debugWarn(o,"index must be integer.");return}const te=l.value.length,re=u.value;W<0?u.value=t.loop?te-1:0:W>=te?u.value=t.loop?0:te-1:u.value=W,re===u.value&&T(re),M()}function T(W){l.value.forEach((te,re)=>{te.translateItem(re,u.value,W)})}function N(W,te){var re,Q,X,G;const I=e.unref(l),H=I.length;if(H===0||!W.states.inStage)return!1;const Z=te+1,J=te-1,le=H-1,oe=I[le].states.active,ee=I[0].states.active,U=(Q=(re=I[Z])==null?void 0:re.states)==null?void 0:Q.active,se=(G=(X=I[J])==null?void 0:X.states)==null?void 0:G.active;return te===le&&ee||U?"left":te===0&&oe||se?"right":!1}function V(){f.value=!0,t.pauseOnHover&&S()}function R(){f.value=!1,_()}function j(W){e.unref(C)||l.value.forEach((te,re)=>{W===N(te,re)&&(te.states.hover=!0)})}function q(){e.unref(C)||l.value.forEach(W=>{W.states.hover=!1})}function D(W){u.value=W}function $(W){t.trigger==="hover"&&W!==u.value&&(u.value=W)}function A(){B(u.value-1)}function O(){B(u.value+1)}function M(){S(),t.pauseOnHover||_()}function F(W){t.height==="auto"&&(v.value=W)}function x(){var W;const te=(W=c.default)==null?void 0:W.call(c);if(!te)return null;const Q=L.flattedChildren(te).filter(X=>e.isVNode(X)&&X.type.name===Rl);return(Q==null?void 0:Q.length)===2&&t.loop&&!g.value?(m.value=!0,Q):(m.value=!1,null)}e.watch(()=>u.value,(W,te)=>{T(te),m.value&&(W=W%2,te=te%2),te>-1&&n(L.CHANGE_EVENT,W,te)});const K=e.computed({get:()=>m.value?u.value%2:u.value,set:W=>u.value=W});e.watch(()=>t.autoplay,W=>{W?_():S()}),e.watch(()=>t.loop,()=>{B(u.value)}),e.watch(()=>t.interval,()=>{M()});const Y=e.shallowRef();return e.onMounted(()=>{e.watch(()=>l.value,()=>{l.value.length>0&&B(t.initialIndex)},{immediate:!0}),Y.value=a.useResizeObserver(p.value,()=>{T()}),_()}),e.onBeforeUnmount(()=>{S(),p.value&&Y.value&&Y.value.stop()}),e.provide(yp,{root:p,isCardType:g,isVertical:C,items:l,loop:t.loop,cardScale:t.cardScale,addItem:r,removeItem:s,setActiveItem:B,setContainerHeight:F}),{root:p,activeIndex:u,exposeActiveIndex:K,arrowDisplay:y,hasLabel:h,hover:f,isCardType:g,items:l,isVertical:C,containerStyle:E,isItemsTwoLength:m,handleButtonEnter:j,handleButtonLeave:q,handleIndicatorClick:D,handleMouseEnter:V,handleMouseLeave:R,setActiveItem:B,prev:A,next:O,PlaceholderItem:x,isTwoLengthShow:w,ItemsSorter:i,throttledArrowClick:k,throttledIndicatorHover:b}},bp="ElCarousel",jC=e.defineComponent({name:bp}),WC=e.defineComponent({...jC,props:LC,emits:FC,setup(t,{expose:n,emit:o}){const l=t,{root:r,activeIndex:s,exposeActiveIndex:i,arrowDisplay:c,hasLabel:u,hover:d,isCardType:f,items:p,isVertical:v,containerStyle:m,handleButtonEnter:y,handleButtonLeave:h,handleIndicatorClick:g,handleMouseEnter:C,handleMouseLeave:E,setActiveItem:k,prev:b,next:w,PlaceholderItem:S,isTwoLengthShow:_,ItemsSorter:P,throttledArrowClick:B,throttledIndicatorHover:T}=HC(l,o,bp),N=a.useNamespace("carousel"),{t:V}=a.useLocale(),R=e.computed(()=>{const $=[N.b(),N.m(l.direction)];return e.unref(f)&&$.push(N.m("card")),$}),j=e.computed(()=>{const $=[N.e("indicators"),N.em("indicators",l.direction)];return e.unref(u)&&$.push(N.em("indicators","labels")),l.indicatorPosition==="outside"&&$.push(N.em("indicators","outside")),e.unref(v)&&$.push(N.em("indicators","right")),$});function q($){if(!l.motionBlur)return;const A=e.unref(v)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;$.currentTarget.classList.add(A)}function D($){if(!l.motionBlur)return;const A=e.unref(v)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;$.currentTarget.classList.remove(A)}return n({activeIndex:i,setActiveItem:k,prev:b,next:w}),($,A)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:r,class:e.normalizeClass(e.unref(R)),onMouseenter:e.withModifiers(e.unref(C),["stop"]),onMouseleave:e.withModifiers(e.unref(E),["stop"])},[e.unref(c)?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(N).e("arrow"),e.unref(N).em("arrow","left")]),"aria-label":e.unref(V)("el.carousel.leftArrow"),onMouseenter:O=>e.unref(y)("left"),onMouseleave:e.unref(h),onClick:e.withModifiers(O=>e.unref(B)(e.unref(s)-1),["stop"])},[e.createVNode(e.unref(a.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(a.arrow_left_default))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[e.vShow,($.arrow==="always"||e.unref(d))&&($.loop||e.unref(s)>0)]])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(c)?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(N).e("arrow"),e.unref(N).em("arrow","right")]),"aria-label":e.unref(V)("el.carousel.rightArrow"),onMouseenter:O=>e.unref(y)("right"),onMouseleave:e.unref(h),onClick:e.withModifiers(O=>e.unref(B)(e.unref(s)+1),["stop"])},[e.createVNode(e.unref(a.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(a.arrow_right_default))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[e.vShow,($.arrow==="always"||e.unref(d))&&($.loop||e.unref(s)<e.unref(p).length-1)]])]),_:1})):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(N).e("container")),style:e.normalizeStyle(e.unref(m)),onTransitionstart:q,onTransitionend:D},[e.createVNode(e.unref(S)),e.renderSlot($.$slots,"default")],38),e.createVNode(e.unref(P),null,{default:e.withCtx(()=>[$.indicatorPosition!=="none"?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass(e.unref(j))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(O,M)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:M,class:e.normalizeClass([e.unref(N).e("indicator"),e.unref(N).em("indicator",$.direction),e.unref(N).is("active",M===e.unref(s))]),onMouseenter:F=>e.unref(T)(M),onClick:e.withModifiers(F=>e.unref(g)(M),["stop"])},[e.createElementVNode("button",{class:e.normalizeClass(e.unref(N).e("button")),"aria-label":e.unref(V)("el.carousel.indicator",{index:M+1})},[e.unref(u)?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(O.props.label),1)):e.createCommentVNode("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[e.vShow,e.unref(_)(M)]])),128))],2)):e.createCommentVNode("v-if",!0)]),_:1}),$.motionBlur?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:"elCarouselHorizontal"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),e.createElementVNode("filter",{id:"elCarouselVertical"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):e.createCommentVNode("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var UC=a._export_sfc(WC,[["__file","carousel.vue"]]);const qC=a.buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),YC=t=>{const n=e.inject(yp),o=e.getCurrentInstance();n||a.debugWarn(Rl,"usage: <el-carousel></el-carousel-item></el-carousel>"),o||a.debugWarn(Rl,"compositional hook can only be invoked inside setups");const l=e.ref(),r=e.ref(!1),s=e.ref(0),i=e.ref(1),c=e.ref(!1),u=e.ref(!1),d=e.ref(!1),f=e.ref(!1),{isCardType:p,isVertical:v,cardScale:m}=n;function y(b,w,S){const _=S-1,P=w-1,B=w+1,T=S/2;return w===0&&b===_?-1:w===_&&b===0?S:b<P&&w-b>=T?S+1:b>B&&b-w>=T?-2:b}function h(b,w){var S,_;const P=e.unref(v)?((S=n.root.value)==null?void 0:S.offsetHeight)||0:((_=n.root.value)==null?void 0:_.offsetWidth)||0;return d.value?P*((2-m)*(b-w)+1)/4:b<w?-(1+m)*P/4:(3+m)*P/4}function g(b,w,S){const _=n.root.value;return _?((S?_.offsetHeight:_.offsetWidth)||0)*(b-w):0}const C=(b,w,S)=>{var _;const P=e.unref(p),B=(_=n.items.value.length)!=null?_:Number.NaN,T=b===w;!P&&!a.isUndefined(S)&&(f.value=T||b===S),!T&&B>2&&n.loop&&(b=y(b,w,B));const N=e.unref(v);c.value=T,P?(d.value=Math.round(Math.abs(b-w))<=1,s.value=h(b,w),i.value=e.unref(c)?1:m):s.value=g(b,w,N),u.value=!0,T&&l.value&&n.setContainerHeight(l.value.offsetHeight)};function E(){if(n&&e.unref(p)){const b=n.items.value.findIndex(({uid:w})=>w===o.uid);n.setActiveItem(b)}}const k={props:t,states:e.reactive({hover:r,translate:s,scale:i,active:c,ready:u,inStage:d,animating:f}),uid:o.uid,getVnode:()=>o.vnode,translateItem:C};return n.addItem(k),e.onBeforeUnmount(()=>{n.removeItem(k)}),{carouselItemRef:l,active:c,animating:f,hover:r,inStage:d,isVertical:v,translate:s,isCardType:p,scale:i,ready:u,handleItemClick:E}},GC=e.defineComponent({name:Rl}),XC=e.defineComponent({...GC,props:qC,setup(t){const n=t,o=a.useNamespace("carousel"),{carouselItemRef:l,active:r,animating:s,hover:i,inStage:c,isVertical:u,translate:d,isCardType:f,scale:p,ready:v,handleItemClick:m}=YC(n),y=e.computed(()=>[o.e("item"),o.is("active",r.value),o.is("in-stage",c.value),o.is("hover",i.value),o.is("animating",s.value),{[o.em("item","card")]:f.value,[o.em("item","card-vertical")]:f.value&&u.value}]),h=e.computed(()=>{const C=`${`translate${e.unref(u)?"Y":"X"}`}(${e.unref(d)}px)`,E=`scale(${e.unref(p)})`;return{transform:[C,E].join(" ")}});return(g,C)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"carouselItemRef",ref:l,class:e.normalizeClass(e.unref(y)),style:e.normalizeStyle(e.unref(h)),onClick:e.unref(m)},[e.unref(f)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).e("mask"))},null,2)),[[e.vShow,!e.unref(r)]]):e.createCommentVNode("v-if",!0),e.renderSlot(g.$slots,"default")],14,["onClick"])),[[e.vShow,e.unref(v)]])}});var Cp=a._export_sfc(XC,[["__file","carousel-item.vue"]]);const JC=a.withInstall(UC,{CarouselItem:Cp}),ZC=a.withNoopInstall(Cp),kp={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:a.useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...L.useAriaProps(["ariaControls"])},Ep={[L.UPDATE_MODEL_EVENT]:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t),change:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t)},Fo=Symbol("checkboxGroupContextKey"),QC=({model:t,isChecked:n})=>{const o=e.inject(Fo,void 0),l=e.computed(()=>{var s,i;const c=(s=o==null?void 0:o.max)==null?void 0:s.value,u=(i=o==null?void 0:o.min)==null?void 0:i.value;return!a.isUndefined(c)&&t.value.length>=c&&!n.value||!a.isUndefined(u)&&t.value.length<=u&&n.value});return{isDisabled:L.useFormDisabled(e.computed(()=>(o==null?void 0:o.disabled.value)||l.value)),isLimitDisabled:l}},ek=(t,{model:n,isLimitExceeded:o,hasOwnLabel:l,isDisabled:r,isLabeledByFormItem:s})=>{const i=e.inject(Fo,void 0),{formItem:c}=L.useFormItem(),{emit:u}=e.getCurrentInstance();function d(y){var h,g,C,E;return[!0,t.trueValue,t.trueLabel].includes(y)?(g=(h=t.trueValue)!=null?h:t.trueLabel)!=null?g:!0:(E=(C=t.falseValue)!=null?C:t.falseLabel)!=null?E:!1}function f(y,h){u(L.CHANGE_EVENT,d(y),h)}function p(y){if(o.value)return;const h=y.target;u(L.CHANGE_EVENT,d(h.checked),y)}async function v(y){o.value||!l.value&&!r.value&&s.value&&(y.composedPath().some(C=>C.tagName==="LABEL")||(n.value=d([!1,t.falseValue,t.falseLabel].includes(n.value)),await e.nextTick(),f(n.value,y)))}const m=e.computed(()=>(i==null?void 0:i.validateEvent)||t.validateEvent);return e.watch(()=>t.modelValue,()=>{m.value&&(c==null||c.validate("change").catch(y=>a.debugWarn(y)))}),{handleChange:p,onClickRoot:v}},tk=t=>{const n=e.ref(!1),{emit:o}=e.getCurrentInstance(),l=e.inject(Fo,void 0),r=e.computed(()=>a.isUndefined(l)===!1),s=e.ref(!1),i=e.computed({get(){var c,u;return r.value?(c=l==null?void 0:l.modelValue)==null?void 0:c.value:(u=t.modelValue)!=null?u:n.value},set(c){var u,d;r.value&&a.isArray$1(c)?(s.value=((u=l==null?void 0:l.max)==null?void 0:u.value)!==void 0&&c.length>(l==null?void 0:l.max.value)&&c.length>i.value.length,s.value===!1&&((d=l==null?void 0:l.changeEvent)==null||d.call(l,c))):(o(L.UPDATE_MODEL_EVENT,c),n.value=c)}});return{model:i,isGroup:r,isLimitExceeded:s}},nk=(t,n,{model:o})=>{const l=e.inject(Fo,void 0),r=e.ref(!1),s=e.computed(()=>a.isPropAbsent(t.value)?t.label:t.value),i=e.computed(()=>{const f=o.value;return a.isBoolean(f)?f:a.isArray$1(f)?a.isObject$1(s.value)?f.map(e.toRaw).some(p=>a.isEqual(p,s.value)):f.map(e.toRaw).includes(s.value):f!=null?f===t.trueValue||f===t.trueLabel:!!f}),c=L.useFormSize(e.computed(()=>{var f;return(f=l==null?void 0:l.size)==null?void 0:f.value}),{prop:!0}),u=L.useFormSize(e.computed(()=>{var f;return(f=l==null?void 0:l.size)==null?void 0:f.value})),d=e.computed(()=>!!n.default||!a.isPropAbsent(s.value));return{checkboxButtonSize:c,isChecked:i,isFocused:r,checkboxSize:u,hasOwnLabel:d,actualValue:s}},wp=(t,n)=>{const{formItem:o}=L.useFormItem(),{model:l,isGroup:r,isLimitExceeded:s}=tk(t),{isFocused:i,isChecked:c,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:f,actualValue:p}=nk(t,n,{model:l}),{isDisabled:v}=QC({model:l,isChecked:c}),{inputId:m,isLabeledByFormItem:y}=L.useFormItemInputId(t,{formItemContext:o,disableIdGeneration:f,disableIdManagement:r}),{handleChange:h,onClickRoot:g}=ek(t,{model:l,isLimitExceeded:s,hasOwnLabel:f,isDisabled:v,isLabeledByFormItem:y});return(()=>{function E(){var k,b;a.isArray$1(l.value)&&!l.value.includes(p.value)?l.value.push(p.value):l.value=(b=(k=t.trueValue)!=null?k:t.trueLabel)!=null?b:!0}t.checked&&E()})(),L.useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>r.value&&a.isPropAbsent(t.value))),L.useDeprecated({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>!!t.trueLabel)),L.useDeprecated({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>!!t.falseLabel)),{inputId:m,isLabeledByFormItem:y,isChecked:c,isDisabled:v,isFocused:i,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:f,model:l,actualValue:p,handleChange:h,onClickRoot:g}},ok=e.defineComponent({name:"ElCheckbox"}),lk=e.defineComponent({...ok,props:kp,emits:Ep,setup(t){const n=t,o=e.useSlots(),{inputId:l,isLabeledByFormItem:r,isChecked:s,isDisabled:i,isFocused:c,checkboxSize:u,hasOwnLabel:d,model:f,actualValue:p,handleChange:v,onClickRoot:m}=wp(n,o),y=e.computed(()=>{var E,k,b,w;return n.trueValue||n.falseValue||n.trueLabel||n.falseLabel?{"true-value":(k=(E=n.trueValue)!=null?E:n.trueLabel)!=null?k:!0,"false-value":(w=(b=n.falseValue)!=null?b:n.falseLabel)!=null?w:!1}:{value:p.value}}),h=a.useNamespace("checkbox"),g=e.computed(()=>[h.b(),h.m(u.value),h.is("disabled",i.value),h.is("bordered",n.border),h.is("checked",s.value)]),C=e.computed(()=>[h.e("input"),h.is("disabled",i.value),h.is("checked",s.value),h.is("indeterminate",n.indeterminate),h.is("focus",c.value)]);return(E,k)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(!e.unref(d)&&e.unref(r)?"span":"label"),{class:e.normalizeClass(e.unref(g)),"aria-controls":E.indeterminate?E.ariaControls:null,onClick:e.unref(m)},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(C))},[e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(l),"onUpdate:modelValue":b=>e.isRef(f)?f.value=b:null,class:e.unref(h).e("original"),type:"checkbox",indeterminate:E.indeterminate,name:E.name,tabindex:E.tabindex,disabled:e.unref(i)},e.unref(y),{onChange:e.unref(v),onFocus:b=>c.value=!0,onBlur:b=>c.value=!1,onClick:e.withModifiers(()=>{},["stop"])}),null,16,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","onChange","onFocus","onBlur","onClick"]),[[e.vModelCheckbox,e.unref(f)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(h).e("inner"))},null,2)],2),e.unref(d)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(h).e("label"))},[e.renderSlot(E.$slots,"default"),E.$slots.default?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(E.label),1)],64))],2)):e.createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Sp=a._export_sfc(lk,[["__file","checkbox.vue"]]);const ak=e.defineComponent({name:"ElCheckboxButton"}),rk=e.defineComponent({...ak,props:kp,emits:Ep,setup(t){const n=t,o=e.useSlots(),{isFocused:l,isChecked:r,isDisabled:s,checkboxButtonSize:i,model:c,actualValue:u,handleChange:d}=wp(n,o),f=e.computed(()=>{var h,g,C,E;return n.trueValue||n.falseValue||n.trueLabel||n.falseLabel?{"true-value":(g=(h=n.trueValue)!=null?h:n.trueLabel)!=null?g:!0,"false-value":(E=(C=n.falseValue)!=null?C:n.falseLabel)!=null?E:!1}:{value:u.value}}),p=e.inject(Fo,void 0),v=a.useNamespace("checkbox"),m=e.computed(()=>{var h,g,C,E;const k=(g=(h=p==null?void 0:p.fill)==null?void 0:h.value)!=null?g:"";return{backgroundColor:k,borderColor:k,color:(E=(C=p==null?void 0:p.textColor)==null?void 0:C.value)!=null?E:"",boxShadow:k?`-1px 0 0 0 ${k}`:void 0}}),y=e.computed(()=>[v.b("button"),v.bm("button",i.value),v.is("disabled",s.value),v.is("checked",r.value),v.is("focus",l.value)]);return(h,g)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(y))},[e.withDirectives(e.createElementVNode("input",e.mergeProps({"onUpdate:modelValue":C=>e.isRef(c)?c.value=C:null,class:e.unref(v).be("button","original"),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:e.unref(s)},e.unref(f),{onChange:e.unref(d),onFocus:C=>l.value=!0,onBlur:C=>l.value=!1,onClick:e.withModifiers(()=>{},["stop"])}),null,16,["onUpdate:modelValue","name","tabindex","disabled","onChange","onFocus","onBlur","onClick"]),[[e.vModelCheckbox,e.unref(c)]]),h.$slots.default||h.label?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(v).be("button","inner")),style:e.normalizeStyle(e.unref(r)?e.unref(m):void 0)},[e.renderSlot(h.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(h.label),1)])],6)):e.createCommentVNode("v-if",!0)],2))}});var di=a._export_sfc(rk,[["__file","checkbox-button.vue"]]);const sk=a.buildProps({modelValue:{type:a.definePropType(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:a.useSizeProp,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:a.definePropType(Array)},props:{type:a.definePropType(Object),default:()=>Np},type:{type:String,values:["checkbox","button"],default:"checkbox"},...L.useAriaProps(["ariaLabel"])}),ik={[L.UPDATE_MODEL_EVENT]:t=>a.isArray$1(t),change:t=>a.isArray$1(t)},Np={label:"label",value:"value",disabled:"disabled"},ck=e.defineComponent({name:"ElCheckboxGroup"}),uk=e.defineComponent({...ck,props:sk,emits:ik,setup(t,{emit:n}){const o=t,l=a.useNamespace("checkbox"),{formItem:r}=L.useFormItem(),{inputId:s,isLabeledByFormItem:i}=L.useFormItemInputId(o,{formItemContext:r}),c=async v=>{n(L.UPDATE_MODEL_EVENT,v),await e.nextTick(),n(L.CHANGE_EVENT,v)},u=e.computed({get(){return o.modelValue},set(v){c(v)}}),d=e.computed(()=>({...Np,...o.props})),f=v=>{const{label:m,value:y,disabled:h}=d.value,g={label:v[m],value:v[y],disabled:v[h]};return{...gr(v,[m,y,h]),...g}},p=e.computed(()=>o.type==="button"?di:Sp);return e.provide(Fo,{...L.pick(e.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:c}),e.watch(()=>o.modelValue,(v,m)=>{o.validateEvent&&!a.isEqual(v,m)&&(r==null||r.validate("change").catch(y=>a.debugWarn(y)))}),(v,m)=>{var y;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.tag),{id:e.unref(s),class:e.normalizeClass(e.unref(l).b("group")),role:"group","aria-label":e.unref(i)?void 0:v.ariaLabel||"checkbox-group","aria-labelledby":e.unref(i)?(y=e.unref(r))==null?void 0:y.labelId:void 0},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.options,(h,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p)),e.mergeProps({key:g},f(h)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Tp=a._export_sfc(uk,[["__file","checkbox-group.vue"]]);const Jt=a.withInstall(Sp,{CheckboxButton:di,CheckboxGroup:Tp}),dk=a.withNoopInstall(di),_p=a.withNoopInstall(Tp),Bp=a.buildProps({modelValue:{type:[String,Number,Boolean],default:void 0},size:a.useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),fk=a.buildProps({...Bp,border:Boolean}),Pp={[L.UPDATE_MODEL_EVENT]:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t),[L.CHANGE_EVENT]:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t)},Vp=Symbol("radioGroupKey"),Dp=(t,n)=>{const o=e.ref(),l=e.inject(Vp,void 0),r=e.computed(()=>!!l),s=e.computed(()=>a.isPropAbsent(t.value)?t.label:t.value),i=e.computed({get(){return r.value?l.modelValue:t.modelValue},set(p){r.value?l.changeEvent(p):n&&n(L.UPDATE_MODEL_EVENT,p),o.value.checked=t.modelValue===s.value}}),c=L.useFormSize(e.computed(()=>l==null?void 0:l.size)),u=L.useFormDisabled(e.computed(()=>l==null?void 0:l.disabled)),d=e.ref(!1),f=e.computed(()=>u.value||r.value&&i.value!==s.value?-1:0);return L.useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},e.computed(()=>r.value&&a.isPropAbsent(t.value))),{radioRef:o,isGroup:r,radioGroup:l,focus:d,size:c,disabled:u,tabIndex:f,modelValue:i,actualValue:s}},pk=e.defineComponent({name:"ElRadio"}),mk=e.defineComponent({...pk,props:fk,emits:Pp,setup(t,{emit:n}){const o=t,l=a.useNamespace("radio"),{radioRef:r,radioGroup:s,focus:i,size:c,disabled:u,modelValue:d,actualValue:f}=Dp(o,n);function p(){e.nextTick(()=>n(L.CHANGE_EVENT,d.value))}return(v,m)=>{var y;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(l).b(),e.unref(l).is("disabled",e.unref(u)),e.unref(l).is("focus",e.unref(i)),e.unref(l).is("bordered",v.border),e.unref(l).is("checked",e.unref(d)===e.unref(f)),e.unref(l).m(e.unref(c))])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(l).e("input"),e.unref(l).is("disabled",e.unref(u)),e.unref(l).is("checked",e.unref(d)===e.unref(f))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":h=>e.isRef(d)?d.value=h:null,class:e.normalizeClass(e.unref(l).e("original")),value:e.unref(f),name:v.name||((y=e.unref(s))==null?void 0:y.name),disabled:e.unref(u),checked:e.unref(d)===e.unref(f),type:"radio",onFocus:h=>i.value=!0,onBlur:h=>i.value=!1,onChange:p,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[e.vModelRadio,e.unref(d)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("inner"))},null,2)],2),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("label")),onKeydown:e.withModifiers(()=>{},["stop"])},[e.renderSlot(v.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(v.label),1)])],42,["onKeydown"])],2)}}});var Ip=a._export_sfc(mk,[["__file","radio.vue"]]);const hk=a.buildProps({...Bp}),vk=e.defineComponent({name:"ElRadioButton"}),gk=e.defineComponent({...vk,props:hk,setup(t){const n=t,o=a.useNamespace("radio"),{radioRef:l,focus:r,size:s,disabled:i,modelValue:c,radioGroup:u,actualValue:d}=Dp(n),f=e.computed(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(p,v)=>{var m;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(o).b("button"),e.unref(o).is("active",e.unref(c)===e.unref(d)),e.unref(o).is("disabled",e.unref(i)),e.unref(o).is("focus",e.unref(r)),e.unref(o).bm("button",e.unref(s))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":y=>e.isRef(c)?c.value=y:null,class:e.normalizeClass(e.unref(o).be("button","original-radio")),value:e.unref(d),type:"radio",name:p.name||((m=e.unref(u))==null?void 0:m.name),disabled:e.unref(i),onFocus:y=>r.value=!0,onBlur:y=>r.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[e.vModelRadio,e.unref(c)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).be("button","inner")),style:e.normalizeStyle(e.unref(c)===e.unref(d)?e.unref(f):{}),onKeydown:e.withModifiers(()=>{},["stop"])},[e.renderSlot(p.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(p.label),1)])],46,["onKeydown"])],2)}}});var fi=a._export_sfc(gk,[["__file","radio-button.vue"]]);const yk=a.buildProps({id:{type:String,default:void 0},size:a.useSizeProp,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},options:{type:a.definePropType(Array)},props:{type:a.definePropType(Object),default:()=>Op},type:{type:String,values:["radio","button"],default:"radio"},...L.useAriaProps(["ariaLabel"])}),bk=Pp,Op={label:"label",value:"value",disabled:"disabled"},Ck=e.defineComponent({name:"ElRadioGroup"}),kk=e.defineComponent({...Ck,props:yk,emits:bk,setup(t,{emit:n}){const o=t,l=a.useNamespace("radio"),r=L.useId(),s=e.ref(),{formItem:i}=L.useFormItem(),{inputId:c,isLabeledByFormItem:u}=L.useFormItemInputId(o,{formItemContext:i}),d=y=>{n(L.UPDATE_MODEL_EVENT,y),e.nextTick(()=>n(L.CHANGE_EVENT,y))};e.onMounted(()=>{const y=s.value.querySelectorAll("[type=radio]"),h=y[0];!Array.from(y).some(g=>g.checked)&&h&&(h.tabIndex=0)});const f=e.computed(()=>o.name||r.value),p=e.computed(()=>({...Op,...o.props})),v=y=>{const{label:h,value:g,disabled:C}=p.value,E={label:y[h],value:y[g],disabled:y[C]};return{...gr(y,[h,g,C]),...E}},m=e.computed(()=>o.type==="button"?fi:Ip);return e.provide(Vp,e.reactive({...e.toRefs(o),changeEvent:d,name:f})),e.watch(()=>o.modelValue,(y,h)=>{o.validateEvent&&!a.isEqual(y,h)&&(i==null||i.validate("change").catch(g=>a.debugWarn(g)))}),(y,h)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(c),ref_key:"radioGroupRef",ref:s,class:e.normalizeClass(e.unref(l).b("group")),role:"radiogroup","aria-label":e.unref(u)?void 0:y.ariaLabel||"radio-group","aria-labelledby":e.unref(u)?e.unref(i).labelId:void 0},[e.renderSlot(y.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(g,C)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(m)),e.mergeProps({key:C},v(g)),null,16))),128))])],10,["id","aria-label","aria-labelledby"]))}});var $p=a._export_sfc(kk,[["__file","radio-group.vue"]]);const Mp=a.withInstall(Ip,{RadioButton:fi,RadioGroup:$p}),Ek=a.withNoopInstall($p),wk=a.withNoopInstall(fi),kr=Symbol();function Sk(t){return!!(a.isArray$1(t)?t.every(({type:n})=>n===e.Comment):(t==null?void 0:t.type)===e.Comment)}var Nk=e.defineComponent({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(t){const n=a.useNamespace("cascader-node"),{renderLabelFn:o}=e.inject(kr),{node:l}=t,{data:r,label:s}=l,i=()=>{const c=o==null?void 0:o({node:l,data:r});return Sk(c)?s:c??s};return()=>e.createVNode("span",{class:n.e("label")},[i()])}});const Tk=e.defineComponent({name:"ElCascaderNode"}),_k=e.defineComponent({...Tk,props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(t,{emit:n}){const o=t,l=e.inject(kr),r=a.useNamespace("cascader-node"),s=e.computed(()=>l.isHoverMenu),i=e.computed(()=>l.config.multiple),c=e.computed(()=>l.config.checkStrictly),u=e.computed(()=>l.config.showPrefix),d=e.computed(()=>{var P;return(P=l.checkedNodes[0])==null?void 0:P.uid}),f=e.computed(()=>o.node.isDisabled),p=e.computed(()=>o.node.isLeaf),v=e.computed(()=>c.value&&!p.value||!f.value),m=e.computed(()=>h(l.expandingNode)),y=e.computed(()=>c.value&&l.checkedNodes.some(h)),h=P=>{var B;const{level:T,uid:N}=o.node;return((B=P==null?void 0:P.pathNodes[T-1])==null?void 0:B.uid)===N},g=()=>{m.value||l.expandNode(o.node)},C=P=>{const{node:B}=o;P!==B.checked&&l.handleCheckChange(B,P)},E=()=>{l.lazyLoad(o.node,()=>{p.value||g()})},k=P=>{s.value&&(b(),!p.value&&n("expand",P))},b=()=>{const{node:P}=o;!v.value||P.loading||(P.loaded?g():E())},w=()=>{p.value&&!f.value&&!c.value&&!i.value?_(!0):(l.config.checkOnClickNode&&(i.value||c.value)||p.value&&l.config.checkOnClickLeaf)&&!f.value?S(!o.node.checked):s.value||b()},S=P=>{c.value?(C(P),o.node.loaded&&g()):_(P)},_=P=>{o.node.loaded?(C(P),!c.value&&g()):E()};return(P,B)=>(e.openBlock(),e.createElementBlock("li",{id:`${t.menuId}-${t.node.uid}`,role:"menuitem","aria-haspopup":!e.unref(p),"aria-owns":e.unref(p)?void 0:t.menuId,"aria-expanded":e.unref(m),tabindex:e.unref(v)?-1:void 0,class:e.normalizeClass([e.unref(r).b(),e.unref(r).is("selectable",e.unref(c)),e.unref(r).is("active",t.node.checked),e.unref(r).is("disabled",!e.unref(v)),e.unref(m)&&"in-active-path",e.unref(y)&&"in-checked-path"]),onMouseenter:k,onFocus:k,onClick:w},[e.createCommentVNode(" prefix "),e.unref(i)&&e.unref(u)?(e.openBlock(),e.createBlock(e.unref(Jt),{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:e.unref(f),onClick:e.withModifiers(()=>{},["stop"]),"onUpdate:modelValue":S},null,8,["model-value","indeterminate","disabled","onClick"])):e.unref(c)&&e.unref(u)?(e.openBlock(),e.createBlock(e.unref(Mp),{key:1,"model-value":e.unref(d),label:t.node.uid,disabled:e.unref(f),"onUpdate:modelValue":S,onClick:e.withModifiers(()=>{},["stop"])},{default:e.withCtx(()=>[e.createCommentVNode(`
|
|
2
2
|
Add an empty element to avoid render label,
|
|
3
3
|
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
|
4
4
|
`),e.createElementVNode("span")]),_:1},8,["model-value","label","disabled","onClick"])):e.unref(p)&&t.node.checked?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:2,class:e.normalizeClass(e.unref(r).e("prefix"))},{default:e.withCtx(()=>[e.createVNode(e.unref(a.check_default))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" content "),e.createVNode(e.unref(Nk),{node:t.node},null,8,["node"]),e.createCommentVNode(" postfix "),e.unref(p)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.node.loading?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass([e.unref(r).is("loading"),e.unref(r).e("postfix")])},{default:e.withCtx(()=>[e.createVNode(e.unref(a.loading_default))]),_:1},8,["class"])):(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:1,class:e.normalizeClass(["arrow-right",e.unref(r).e("postfix")])},{default:e.withCtx(()=>[e.createVNode(e.unref(a.arrow_right_default))]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex"]))}});var Bk=a._export_sfc(_k,[["__file","node.vue"]]);const Pk=e.defineComponent({name:"ElCascaderMenu"}),Vk=e.defineComponent({...Pk,props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(t){const n=t,o=e.getCurrentInstance(),l=a.useNamespace("cascader-menu"),{t:r}=a.useLocale(),s=L.useId();let i,c;const u=e.inject(kr),d=e.ref(),f=e.computed(()=>!n.nodes.length),p=e.computed(()=>!u.initialLoaded),v=e.computed(()=>`${s.value}-${n.index}`),m=C=>{i=C.target},y=C=>{if(!(!u.isHoverMenu||!i||!d.value))if(i.contains(C.target)){h();const E=o.vnode.el,{left:k}=E.getBoundingClientRect(),{offsetWidth:b,offsetHeight:w}=E,S=C.clientX-k,_=i.offsetTop,P=_+i.offsetHeight;d.value.innerHTML=`
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
* @internal
|
|
35
35
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
36
36
|
*/const Fa="_Mousewheel",Yd=function(t,n){if(t&&t.addEventListener){yh(t);const o=function(l){const r=EV(l);n&&Reflect.apply(n,this,[l,r])};t[Fa]={wheelHandler:o},t.addEventListener("wheel",o,{passive:!0})}},yh=t=>{var n;(n=t[Fa])!=null&&n.wheelHandler&&(t.removeEventListener("wheel",t[Fa].wheelHandler),t[Fa]=null)},wV={beforeMount(t,n){Yd(t,n.value)},unmounted(t){yh(t)},updated(t,n){n.value!==n.oldValue&&Yd(t,n.value)}};let SV=1;const NV=e.defineComponent({name:"ElTable",directives:{Mousewheel:wV},components:{TableHeader:eV,TableBody:iV,TableFooter:dV,ElScrollbar:Zt,hColgroup:uh},props:hV,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(t){const{t:n}=a.useLocale(),o=a.useNamespace("table"),l=e.getCurrentInstance();e.provide(on,l);const r=jP(l,t);l.store=r;const s=new UP({store:l.store,table:l,fit:t.fit,showHeader:t.showHeader});l.layout=s;const i=e.computed(()=>(r.states.data.value||[]).length===0),{setCurrentRow:c,getSelectionRows:u,toggleRowSelection:d,clearSelection:f,clearFilter:p,toggleAllSelection:v,toggleRowExpansion:m,clearSort:y,sort:h,updateKeyChildren:g}=fV(r),{isHidden:C,renderExpanded:E,setDragVisible:k,isGroup:b,handleMouseLeave:w,handleHeaderFooterMousewheel:S,tableSize:_,emptyBlockStyle:P,resizeProxyVisible:B,bodyWidth:T,resizeState:N,doLayout:V,tableBodyStyles:R,tableLayout:j,scrollbarViewStyle:q,scrollbarStyle:D}=pV(t,s,r,l),{scrollBarRef:$,scrollTo:A,setScrollLeft:O,setScrollTop:M}=vV(),F=$e.debounce(V,50),x=`${o.namespace.value}-table_${SV++}`;l.tableId=x,l.state={isGroup:b,resizeState:N,doLayout:V,debouncedUpdateLayout:F};const K=e.computed(()=>{var te;return(te=t.sumText)!=null?te:n("el.table.sumText")}),Y=e.computed(()=>{var te;return(te=t.emptyText)!=null?te:n("el.table.emptyText")}),W=e.computed(()=>ch(r.states.originColumns.value)[0]);return mV(l),e.onBeforeUnmount(()=>{F.cancel()}),{ns:o,layout:s,store:r,columns:W,handleHeaderFooterMousewheel:S,handleMouseLeave:w,tableId:x,tableSize:_,isHidden:C,isEmpty:i,renderExpanded:E,resizeProxyVisible:B,resizeState:N,isGroup:b,bodyWidth:T,tableBodyStyles:R,emptyBlockStyle:P,debouncedUpdateLayout:F,setCurrentRow:c,getSelectionRows:u,toggleRowSelection:d,clearSelection:f,clearFilter:p,toggleAllSelection:v,toggleRowExpansion:m,clearSort:y,doLayout:V,sort:h,updateKeyChildren:g,t:n,setDragVisible:k,context:l,computedSumText:K,computedEmptyText:Y,tableLayout:j,scrollbarViewStyle:q,scrollbarStyle:D,scrollBarRef:$,scrollTo:A,setScrollLeft:O,setScrollTop:M,allowDragLastColumn:t.allowDragLastColumn}}});function TV(t,n,o,l,r,s){const i=e.resolveComponent("hColgroup"),c=e.resolveComponent("table-header"),u=e.resolveComponent("table-body"),d=e.resolveComponent("table-footer"),f=e.resolveComponent("el-scrollbar"),p=e.resolveDirective("mousewheel");return e.openBlock(),e.createElementBlock("div",{ref:"tableWrapper",class:e.normalizeClass([{[t.ns.m("fit")]:t.fit,[t.ns.m("striped")]:t.stripe,[t.ns.m("border")]:t.border||t.isGroup,[t.ns.m("hidden")]:t.isHidden,[t.ns.m("group")]:t.isGroup,[t.ns.m("fluid-height")]:t.maxHeight,[t.ns.m("scrollable-x")]:t.layout.scrollX.value,[t.ns.m("scrollable-y")]:t.layout.scrollY.value,[t.ns.m("enable-row-hover")]:!t.store.states.isComplex.value,[t.ns.m("enable-row-transition")]:(t.store.states.data.value||[]).length!==0&&(t.store.states.data.value||[]).length<100,"has-footer":t.showSummary},t.ns.m(t.tableSize),t.className,t.ns.b(),t.ns.m(`layout-${t.tableLayout}`)]),style:e.normalizeStyle(t.style),"data-prefix":t.ns.namespace.value,onMouseleave:t.handleMouseLeave},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("inner-wrapper"))},[e.createElementVNode("div",{ref:"hiddenColumns",class:"hidden-columns"},[e.renderSlot(t.$slots,"default")],512),t.showHeader&&t.tableLayout==="fixed"?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref:"headerWrapper",class:e.normalizeClass(t.ns.e("header-wrapper"))},[e.createElementVNode("table",{ref:"tableHeader",class:e.normalizeClass(t.ns.e("header")),style:e.normalizeStyle(t.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[e.createVNode(i,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),e.createVNode(c,{ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,"append-filter-panel-to":t.appendFilterPanelTo,"allow-drag-last-column":t.allowDragLastColumn,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[p,t.handleHeaderFooterMousewheel]]):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{ref:"bodyWrapper",class:e.normalizeClass(t.ns.e("body-wrapper"))},[e.createVNode(f,{ref:"scrollBarRef","view-style":t.scrollbarViewStyle,"wrap-style":t.scrollbarStyle,always:t.scrollbarAlwaysOn,tabindex:t.scrollbarTabindex,native:t.nativeScrollbar,onScroll:v=>t.$emit("scroll",v)},{default:e.withCtx(()=>[e.createElementVNode("table",{ref:"tableBody",class:e.normalizeClass(t.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:e.normalizeStyle({width:t.bodyWidth,tableLayout:t.tableLayout})},[e.createVNode(i,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),t.showHeader&&t.tableLayout==="auto"?(e.openBlock(),e.createBlock(c,{key:0,ref:"tableHeaderRef",class:e.normalizeClass(t.ns.e("body-header")),border:t.border,"default-sort":t.defaultSort,store:t.store,"append-filter-panel-to":t.appendFilterPanelTo,onSetDragVisible:t.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):e.createCommentVNode("v-if",!0),e.createVNode(u,{context:t.context,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"tooltip-effect":t.tooltipEffect,"tooltip-options":t.tooltipOptions,"row-style":t.rowStyle,store:t.store,stripe:t.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),t.showSummary&&t.tableLayout==="auto"?(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(t.ns.e("body-footer")),border:t.border,"default-sort":t.defaultSort,store:t.store,"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):e.createCommentVNode("v-if",!0)],6),t.isEmpty?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"emptyBlock",style:e.normalizeStyle(t.emptyBlockStyle),class:e.normalizeClass(t.ns.e("empty-block"))},[e.createElementVNode("span",{class:e.normalizeClass(t.ns.e("empty-text"))},[e.renderSlot(t.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(t.computedEmptyText),1)])],2)],6)):e.createCommentVNode("v-if",!0),t.$slots.append?(e.openBlock(),e.createElementBlock("div",{key:1,ref:"appendWrapper",class:e.normalizeClass(t.ns.e("append-wrapper"))},[e.renderSlot(t.$slots,"append")],2)):e.createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native","onScroll"])],2),t.showSummary&&t.tableLayout==="fixed"?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,ref:"footerWrapper",class:e.normalizeClass(t.ns.e("footer-wrapper"))},[e.createElementVNode("table",{class:e.normalizeClass(t.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:e.normalizeStyle(t.tableBodyStyles)},[e.createVNode(i,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),e.createVNode(d,{border:t.border,"default-sort":t.defaultSort,store:t.store,"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[e.vShow,!t.isEmpty],[p,t.handleHeaderFooterMousewheel]]):e.createCommentVNode("v-if",!0),t.border||t.isGroup?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.ns.e("border-left-patch"))},null,2)):e.createCommentVNode("v-if",!0)],2),e.withDirectives(e.createElementVNode("div",{ref:"resizeProxy",class:e.normalizeClass(t.ns.e("column-resize-proxy"))},null,2),[[e.vShow,t.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var _V=a._export_sfc(NV,[["render",TV],["__file","table.vue"]]);const BV={selection:"table-column--selection",expand:"table__expand-column"},PV={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},VV=t=>BV[t]||"",DV={selection:{renderHeader({store:t,column:n}){var o;function l(){return t.states.data.value&&t.states.data.value.length===0}return e.h(Jt,{disabled:l(),size:t.states.tableSize.value,indeterminate:t.states.selection.value.length>0&&!t.states.isAllSelected.value,"onUpdate:modelValue":(o=t.toggleAllSelection)!=null?o:void 0,modelValue:t.states.isAllSelected.value,ariaLabel:n.label})},renderCell({row:t,column:n,store:o,$index:l}){return e.h(Jt,{disabled:n.selectable?!n.selectable.call(null,t,l):!1,size:o.states.tableSize.value,onChange:()=>{o.commit("rowSelectedChanged",t)},onClick:r=>r.stopPropagation(),modelValue:o.isSelected(t),ariaLabel:n.label})},sortable:!1,resizable:!1},index:{renderHeader({column:t}){return t.label||"#"},renderCell({column:t,$index:n}){let o=n+1;const l=t.index;return a.isNumber(l)?o=n+l:a.isFunction(l)&&(o=l(n)),e.h("div",{},[o])},sortable:!1},expand:{renderHeader({column:t}){return t.label||""},renderCell({column:t,row:n,store:o,expanded:l}){const{ns:r}=o,s=[r.e("expand-icon")];!t.renderExpand&&l&&s.push(r.em("expand-icon","expanded"));const i=function(c){c.stopPropagation(),o.toggleRowExpansion(n)};return e.h("div",{class:s,onClick:i},{default:()=>t.renderExpand?[t.renderExpand({expanded:l})]:[e.h(a.ElIcon,null,{default:()=>[e.h(a.arrow_right_default)]})]})},sortable:!1,resizable:!1}};function IV({row:t,column:n,$index:o}){var l;const r=n.property,s=r&&a.getProp(t,r).value;return n&&n.formatter?n.formatter(t,n,s,o):((l=s==null?void 0:s.toString)==null?void 0:l.call(s))||""}function OV({row:t,treeNode:n,store:o},l=!1){const{ns:r}=o;if(!n)return l?[e.h("span",{class:r.e("placeholder")})]:null;const s=[],i=function(c){c.stopPropagation(),!n.loading&&o.loadOrToggle(t)};if(n.indent&&s.push(e.h("span",{class:r.e("indent"),style:{"padding-left":`${n.indent}px`}})),a.isBoolean(n.expanded)&&!n.noLazyChildren){const c=[r.e("expand-icon"),n.expanded?r.em("expand-icon","expanded"):""];let u=a.arrow_right_default;n.loading&&(u=a.loading_default),s.push(e.h("div",{class:c,onClick:i},{default:()=>[e.h(a.ElIcon,{class:r.is("loading",n.loading)},{default:()=>[e.h(u)]})]}))}else s.push(e.h("span",{class:r.e("placeholder")}));return s}function Gd(t,n){return t.reduce((o,l)=>(o[l]=l,o),n)}function $V(t,n){const o=e.getCurrentInstance();return{registerComplexWatchers:()=>{const s=["fixed"],i={realWidth:"width",realMinWidth:"minWidth"},c=Gd(s,i);Object.keys(c).forEach(u=>{const d=i[u];a.hasOwn(n,d)&&e.watch(()=>n[d],f=>{let p=f;d==="width"&&u==="realWidth"&&(p=Ri(f)),d==="minWidth"&&u==="realMinWidth"&&(p=oh(f)),o.columnConfig.value[d]=p,o.columnConfig.value[u]=p;const v=d==="fixed";t.value.store.scheduleLayout(v)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],i=["showOverflowTooltip"],c={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=Gd(s,c);Object.keys(u).forEach(d=>{const f=c[d];a.hasOwn(n,f)&&e.watch(()=>n[f],p=>{o.columnConfig.value[d]=p})}),i.forEach(d=>{a.hasOwn(t.value.props,d)&&e.watch(()=>t.value.props[d],f=>{o.columnConfig.value[d]=f})})}}}function MV(t,n,o){const l=e.getCurrentInstance(),r=e.ref(""),s=e.ref(!1),i=e.ref(),c=e.ref(),u=a.useNamespace("table");e.watchEffect(()=>{i.value=t.align?`is-${t.align}`:null,i.value}),e.watchEffect(()=>{c.value=t.headerAlign?`is-${t.headerAlign}`:i.value,c.value});const d=e.computed(()=>{let b=l.vnode.vParent||l.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),f=e.computed(()=>{const{store:b}=l.parent;if(!b)return!1;const{treeData:w}=b.states,S=w.value;return S&&Object.keys(S).length>0}),p=e.ref(Ri(t.width)),v=e.ref(oh(t.minWidth)),m=b=>(p.value&&(b.width=p.value),v.value&&(b.minWidth=v.value),!p.value&&v.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(a.isUndefined(b.width)?b.minWidth:b.width),b),y=b=>{const w=b.type,S=DV[w]||{};Object.keys(S).forEach(P=>{const B=S[P];P!=="className"&&!a.isUndefined(B)&&(b[P]=B)});const _=VV(w);if(_){const P=`${e.unref(u.namespace)}-${_}`;b.className=b.className?`${b.className} ${P}`:P}return b},h=b=>{a.isArray$1(b)?b.forEach(S=>w(S)):w(b);function w(S){var _;((_=S==null?void 0:S.type)==null?void 0:_.name)==="ElTableColumn"&&(S.vParent=l)}};return{columnId:r,realAlign:i,isSubColumn:s,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:m,setColumnForcedProps:y,setColumnRenders:b=>{t.renderHeader?a.debugWarn("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):b.type!=="selection"&&(b.renderHeader=S=>(l.columnConfig.value.label,e.renderSlot(n,"header",S,()=>[b.label]))),n["filter-icon"]&&(b.renderFilterIcon=S=>e.renderSlot(n,"filter-icon",S)),n.expand&&(b.renderExpand=S=>e.renderSlot(n,"expand",S));let w=b.renderCell;return b.type==="expand"?(b.renderCell=S=>e.h("div",{class:"cell"},[w(S)]),o.value.renderExpanded=S=>n.default?n.default(S):n.default):(w=w||IV,b.renderCell=S=>{let _=null;if(n.default){const R=n.default(S);_=R.some(j=>j.type!==e.Comment)?R:w(S)}else _=w(S);const{columns:P}=o.value.store.states,B=P.value.findIndex(R=>R.type==="default"),T=f.value&&S.cellIndex===B,N=OV(S,T),V={class:"cell",style:{}};return b.showOverflowTooltip&&(V.class=`${V.class} ${e.unref(u.namespace)}-tooltip`,V.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),h(_),e.h("div",V,[N,_])}),b},getPropsData:(...b)=>b.reduce((w,S)=>(a.isArray$1(S)&&S.forEach(_=>{w[_]=t[_]}),w),{}),getColumnElIndex:(b,w)=>Array.prototype.indexOf.call(b,w),updateColumnOrder:()=>{o.value.store.commit("updateColumnOrder",l.columnConfig.value)}}}var xV={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:t=>t.every(n=>["ascending","descending",null].includes(n))}};let AV=1;var bh=e.defineComponent({name:"ElTableColumn",components:{ElCheckbox:Jt},props:xV,setup(t,{slots:n}){const o=e.getCurrentInstance(),l=e.ref({}),r=e.computed(()=>{let k=o.parent;for(;k&&!k.tableId;)k=k.parent;return k}),{registerNormalWatchers:s,registerComplexWatchers:i}=$V(r,t),{columnId:c,isSubColumn:u,realHeaderAlign:d,columnOrTableParent:f,setColumnWidth:p,setColumnForcedProps:v,setColumnRenders:m,getPropsData:y,getColumnElIndex:h,realAlign:g,updateColumnOrder:C}=MV(t,n,r),E=f.value;c.value=`${"tableId"in E&&E.tableId||"columnId"in E&&E.columnId}_column_${AV++}`,e.onBeforeMount(()=>{u.value=r.value!==E;const k=t.type||"default",b=t.sortable===""?!0:t.sortable,w=k==="selection"?!1:a.isUndefined(t.showOverflowTooltip)?E.props.showOverflowTooltip:t.showOverflowTooltip,S=a.isUndefined(t.tooltipFormatter)?E.props.tooltipFormatter:t.tooltipFormatter,_={...PV[k],id:c.value,type:k,property:t.prop||t.property,align:g,headerAlign:d,showOverflowTooltip:w,tooltipFormatter:S,filterable:t.filters||t.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:b,index:t.index,rawColumnKey:o.vnode.key};let V=y(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);V=IP(_,V),V=$P(m,p,v)(V),l.value=V,s(),i()}),e.onMounted(()=>{var k,b;const w=f.value,S=u.value?(k=w.vnode.el)==null?void 0:k.children:(b=w.refs.hiddenColumns)==null?void 0:b.children,_=()=>h(S||[],o.vnode.el);l.value.getColumnIndex=_,_()>-1&&r.value.store.commit("insertColumn",l.value,u.value?"columnConfig"in w&&w.columnConfig.value:null,C)}),e.onBeforeUnmount(()=>{const k=l.value.getColumnIndex;(k?k():-1)>-1&&r.value.store.commit("removeColumn",l.value,u.value?"columnConfig"in E&&E.columnConfig.value:null,C)}),o.columnId=c.value,o.columnConfig=l},render(){var t,n,o;try{const l=(n=(t=this.$slots).default)==null?void 0:n.call(t,{row:{},column:{},$index:-1}),r=[];if(a.isArray$1(l))for(const i of l)((o=i.type)==null?void 0:o.name)==="ElTableColumn"||i.shapeFlag&2?r.push(i):i.type===e.Fragment&&a.isArray$1(i.children)&&i.children.forEach(c=>{(c==null?void 0:c.patchFlag)!==1024&&!a.isString(c==null?void 0:c.children)&&r.push(c)});return e.h("div",r)}catch{return e.h("div",[])}}});const zV=a.withInstall(_V,{TableColumn:bh}),RV=a.withNoopInstall(bh);var Yl=(t=>(t.ASC="asc",t.DESC="desc",t))(Yl||{}),Gl=(t=>(t.LEFT="left",t.CENTER="center",t.RIGHT="right",t))(Gl||{}),Ch=(t=>(t.LEFT="left",t.RIGHT="right",t))(Ch||{});const As={asc:"desc",desc:"asc"},Xl=Symbol("placeholder"),LV=(t,n,o)=>{var l;const r={flexGrow:0,flexShrink:0,...o?{}:{flexGrow:t.flexGrow||0,flexShrink:t.flexShrink||1}};o||(r.flexShrink=1);const s={...(l=t.style)!=null?l:{},...r,flexBasis:"auto",width:t.width};return n||(t.maxWidth&&(s.maxWidth=t.maxWidth),t.minWidth&&(s.minWidth=t.minWidth)),s};function FV(t,n,o){const l=e.computed(()=>e.unref(n).map((g,C)=>{var E,k;return{...g,key:(k=(E=g.key)!=null?E:g.dataKey)!=null?k:C}})),r=e.computed(()=>e.unref(l).filter(g=>!g.hidden)),s=e.computed(()=>e.unref(r).filter(g=>g.fixed==="left"||g.fixed===!0)),i=e.computed(()=>e.unref(r).filter(g=>g.fixed==="right")),c=e.computed(()=>e.unref(r).filter(g=>!g.fixed)),u=e.computed(()=>{const g=[];return e.unref(s).forEach(C=>{g.push({...C,placeholderSign:Xl})}),e.unref(c).forEach(C=>{g.push(C)}),e.unref(i).forEach(C=>{g.push({...C,placeholderSign:Xl})}),g}),d=e.computed(()=>e.unref(s).length||e.unref(i).length),f=e.computed(()=>e.unref(l).reduce((g,C)=>(g[C.key]=LV(C,e.unref(o),t.fixed),g),{})),p=e.computed(()=>e.unref(r).reduce((g,C)=>g+C.width,0)),v=g=>e.unref(l).find(C=>C.key===g),m=g=>e.unref(f)[g],y=(g,C)=>{g.width=C};function h(g){var C;const{key:E}=g.currentTarget.dataset;if(!E)return;const{sortState:k,sortBy:b}=t;let w=Yl.ASC;a.isObject$1(k)?w=As[k[E]]:w=As[b.order],(C=t.onColumnSort)==null||C.call(t,{column:v(E),key:E,order:w})}return{columns:l,columnsStyles:f,columnsTotalWidth:p,fixedColumnsOnLeft:s,fixedColumnsOnRight:i,hasFixedColumns:d,mainColumns:u,normalColumns:c,visibleColumns:r,getColumn:v,getColumnStyle:m,updateColumnWidth:y,onColumnSorted:h}}const KV=(t,{mainTableRef:n,leftTableRef:o,rightTableRef:l,onMaybeEndReached:r})=>{const s=e.ref({scrollLeft:0,scrollTop:0});function i(m){var y,h,g;const{scrollTop:C}=m;(y=n.value)==null||y.scrollTo(m),(h=o.value)==null||h.scrollToTop(C),(g=l.value)==null||g.scrollToTop(C)}function c(m){s.value=m,i(m)}function u(m){s.value.scrollTop=m,i(e.unref(s))}function d(m){var y,h;s.value.scrollLeft=m,(h=(y=n.value)==null?void 0:y.scrollTo)==null||h.call(y,e.unref(s))}function f(m){var y;c(m),(y=t.onScroll)==null||y.call(t,m)}function p({scrollTop:m}){const{scrollTop:y}=e.unref(s);m!==y&&u(m)}function v(m,y="auto"){var h;(h=n.value)==null||h.scrollToRow(m,y)}return e.watch(()=>e.unref(s).scrollTop,(m,y)=>{m>y&&r()}),{scrollPos:s,scrollTo:c,scrollToLeft:d,scrollToTop:u,scrollToRow:v,onScroll:f,onVerticalScroll:p}},HV=(t,{mainTableRef:n,leftTableRef:o,rightTableRef:l,tableInstance:r,ns:s,isScrolling:i})=>{const c=e.getCurrentInstance(),{emit:u}=c,d=e.shallowRef(!1),f=e.ref(t.defaultExpandedRowKeys||[]),p=e.ref(-1),v=e.shallowRef(null),m=e.ref({}),y=e.ref({}),h=e.shallowRef({}),g=e.shallowRef({}),C=e.shallowRef({}),E=e.computed(()=>a.isNumber(t.estimatedRowHeight));function k(T){var N;(N=t.onRowsRendered)==null||N.call(t,T),T.rowCacheEnd>e.unref(p)&&(p.value=T.rowCacheEnd)}function b({hovered:T,rowKey:N}){if(i.value)return;r.vnode.el.querySelectorAll(`[rowkey="${String(N)}"]`).forEach(j=>{T?j.classList.add(s.is("hovered")):j.classList.remove(s.is("hovered"))})}function w({expanded:T,rowData:N,rowIndex:V,rowKey:R}){var j,q;const D=[...e.unref(f)],$=D.indexOf(R);T?$===-1&&D.push(R):$>-1&&D.splice($,1),f.value=D,u("update:expandedRowKeys",D),(j=t.onRowExpand)==null||j.call(t,{expanded:T,rowData:N,rowIndex:V,rowKey:R}),(q=t.onExpandedRowsChange)==null||q.call(t,D),r.vnode.el.querySelector(`.${s.is("hovered")}[rowkey="${String(R)}"]`)&&e.nextTick(()=>b({hovered:!0,rowKey:R}))}const S=$e.debounce(()=>{var T,N,V,R;d.value=!0,m.value={...e.unref(m),...e.unref(y)},_(e.unref(v),!1),y.value={},v.value=null,(T=n.value)==null||T.forceUpdate(),(N=o.value)==null||N.forceUpdate(),(V=l.value)==null||V.forceUpdate(),(R=c.proxy)==null||R.$forceUpdate(),d.value=!1},0);function _(T,N=!1){e.unref(E)&&[n,o,l].forEach(V=>{const R=e.unref(V);R&&R.resetAfterRowIndex(T,N)})}function P(T,N,V){const R=e.unref(v);(R===null||R>V)&&(v.value=V),y.value[T]=N}function B({rowKey:T,height:N,rowIndex:V},R){R?R===Ch.RIGHT?C.value[T]=N:h.value[T]=N:g.value[T]=N;const j=Math.max(...[h,C,g].map(q=>q.value[T]||0));e.unref(m)[T]!==j&&(P(T,j,V),S())}return{expandedRowKeys:f,lastRenderedRowIndex:p,isDynamic:E,isResetting:d,rowHeights:m,resetAfterIndex:_,onRowExpanded:w,onRowHovered:b,onRowsRendered:k,onRowHeightChange:B}},jV=(t,{expandedRowKeys:n,lastRenderedRowIndex:o,resetAfterIndex:l})=>{const r=e.ref({}),s=e.computed(()=>{const c={},{data:u,rowKey:d}=t,f=e.unref(n);if(!f||!f.length)return u;const p=[],v=new Set;f.forEach(y=>v.add(y));let m=u.slice();for(m.forEach(y=>c[y[d]]=0);m.length>0;){const y=m.shift();p.push(y),v.has(y[d])&&a.isArray$1(y.children)&&y.children.length>0&&(m=[...y.children,...m],y.children.forEach(h=>c[h[d]]=c[y[d]]+1))}return r.value=c,p}),i=e.computed(()=>{const{data:c,expandColumnKey:u}=t;return u?e.unref(s):c});return e.watch(i,(c,u)=>{c!==u&&(o.value=-1,l(0,!0))}),{data:i,depthMap:r}},WV=(t,n)=>t+n,Ka=t=>a.isArray$1(t)?t.reduce(WV,0):t,ro=(t,n,o={})=>a.isFunction(t)?t(n):t??o,Ln=t=>(["width","maxWidth","minWidth","height"].forEach(n=>{t[n]=a.addUnit(t[n])}),t),kh=t=>e.isVNode(t)?n=>e.h(t,n):t,UV=(t,{columnsTotalWidth:n,rowsHeight:o,fixedColumnsOnLeft:l,fixedColumnsOnRight:r})=>{const s=e.computed(()=>{const{fixed:C,width:E,vScrollbarSize:k}=t,b=E-k;return C?Math.max(Math.round(e.unref(n)),b):b}),i=e.computed(()=>{const{height:C=0,maxHeight:E=0,footerHeight:k,hScrollbarSize:b}=t;if(E>0){const w=e.unref(v),S=e.unref(o),P=e.unref(p)+w+S+b;return Math.min(P,E-k)}return C-k}),c=e.computed(()=>{const{maxHeight:C}=t,E=e.unref(i);if(a.isNumber(C)&&C>0)return E;const k=e.unref(o)+e.unref(p)+e.unref(v);return Math.min(E,k)}),u=C=>C.width,d=e.computed(()=>Ka(e.unref(l).map(u))),f=e.computed(()=>Ka(e.unref(r).map(u))),p=e.computed(()=>Ka(t.headerHeight)),v=e.computed(()=>{var C;return(((C=t.fixedData)==null?void 0:C.length)||0)*t.rowHeight}),m=e.computed(()=>e.unref(i)-e.unref(p)-e.unref(v)),y=e.computed(()=>{const{style:C={},height:E,width:k}=t;return Ln({...C,height:E,width:k})}),h=e.computed(()=>Ln({height:t.footerHeight})),g=e.computed(()=>({top:a.addUnit(e.unref(p)),bottom:a.addUnit(t.footerHeight),width:a.addUnit(t.width)}));return{bodyWidth:s,fixedTableHeight:c,mainTableHeight:i,leftTableWidth:d,rightTableWidth:f,windowHeight:m,footerHeight:h,emptyStyle:g,rootStyle:y,headerHeight:p}};function qV(t){const n=e.ref(),o=e.ref(),l=e.ref(),{columns:r,columnsStyles:s,columnsTotalWidth:i,fixedColumnsOnLeft:c,fixedColumnsOnRight:u,hasFixedColumns:d,mainColumns:f,onColumnSorted:p}=FV(t,e.toRef(t,"columns"),e.toRef(t,"fixed")),{scrollTo:v,scrollToLeft:m,scrollToTop:y,scrollToRow:h,onScroll:g,onVerticalScroll:C,scrollPos:E}=KV(t,{mainTableRef:n,leftTableRef:o,rightTableRef:l,onMaybeEndReached:Z}),k=a.useNamespace("table-v2"),b=e.getCurrentInstance(),w=e.shallowRef(!1),{expandedRowKeys:S,lastRenderedRowIndex:_,isDynamic:P,isResetting:B,rowHeights:T,resetAfterIndex:N,onRowExpanded:V,onRowHeightChange:R,onRowHovered:j,onRowsRendered:q}=HV(t,{mainTableRef:n,leftTableRef:o,rightTableRef:l,tableInstance:b,ns:k,isScrolling:w}),{data:D,depthMap:$}=jV(t,{expandedRowKeys:S,lastRenderedRowIndex:_,resetAfterIndex:N}),A=e.computed(()=>{const{estimatedRowHeight:J,rowHeight:le}=t,oe=e.unref(D);return a.isNumber(J)?Object.values(e.unref(T)).reduce((ee,U)=>ee+U,0):oe.length*le}),{bodyWidth:O,fixedTableHeight:M,mainTableHeight:F,leftTableWidth:x,rightTableWidth:K,windowHeight:Y,footerHeight:W,emptyStyle:te,rootStyle:re,headerHeight:Q}=UV(t,{columnsTotalWidth:i,fixedColumnsOnLeft:c,fixedColumnsOnRight:u,rowsHeight:A}),X=e.ref(),G=e.computed(()=>{const J=e.unref(D).length===0;return a.isArray$1(t.fixedData)?t.fixedData.length===0&&J:J});function I(J){const{estimatedRowHeight:le,rowHeight:oe,rowKey:ee}=t;return le?e.unref(T)[e.unref(D)[J][ee]]||le:oe}const H=e.ref(!1);function Z(){const{onEndReached:J}=t;if(!J)return;const{scrollTop:le}=e.unref(E),oe=e.unref(A),ee=e.unref(Y),U=oe-(le+ee)+t.hScrollbarSize;!H.value&&e.unref(_)>=0&&oe<=le+e.unref(F)-e.unref(Q)?(H.value=!0,J(U)):H.value=!1}return e.watch(()=>e.unref(A),()=>H.value=!1),e.watch(()=>t.expandedRowKeys,J=>S.value=J,{deep:!0}),{columns:r,containerRef:X,mainTableRef:n,leftTableRef:o,rightTableRef:l,isDynamic:P,isResetting:B,isScrolling:w,hasFixedColumns:d,columnsStyles:s,columnsTotalWidth:i,data:D,expandedRowKeys:S,depthMap:$,fixedColumnsOnLeft:c,fixedColumnsOnRight:u,mainColumns:f,bodyWidth:O,emptyStyle:te,rootStyle:re,footerHeight:W,mainTableHeight:F,fixedTableHeight:M,leftTableWidth:x,rightTableWidth:K,showEmpty:G,getRowHeight:I,onColumnSorted:p,onRowHovered:j,onRowExpanded:V,onRowsRendered:q,onRowHeightChange:R,scrollTo:v,scrollToLeft:m,scrollToTop:y,scrollToRow:h,onScroll:g,onVerticalScroll:C}}const ji=Symbol("tableV2"),Eh="tableV2GridScrollLeft",wh=String,sa={type:a.definePropType(Array),required:!0},Wi={type:a.definePropType(Array)},Sh={...Wi,required:!0},YV=String,Xd={type:a.definePropType(Array),default:()=>a.mutable([])},Jn={type:Number,required:!0},Nh={type:a.definePropType([String,Number,Symbol]),default:"id"},Jd={type:a.definePropType(Object)},eo=a.buildProps({class:String,columns:sa,columnsStyles:{type:a.definePropType(Object),required:!0},depth:Number,expandColumnKey:YV,estimatedRowHeight:{...oo.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:a.definePropType(Function)},onRowHover:{type:a.definePropType(Function)},onRowHeightChange:{type:a.definePropType(Function)},rowData:{type:a.definePropType(Object),required:!0},rowEventHandlers:{type:a.definePropType(Object)},rowIndex:{type:Number,required:!0},rowKey:Nh,style:{type:a.definePropType(Object)}}),Yr={type:Number,required:!0},Ui=a.buildProps({class:String,columns:sa,fixedHeaderData:{type:a.definePropType(Array)},headerData:{type:a.definePropType(Array),required:!0},headerHeight:{type:a.definePropType([Number,Array]),default:50},rowWidth:Yr,rowHeight:{type:Number,default:50},height:Yr,width:Yr}),Ha=a.buildProps({columns:sa,data:Sh,fixedData:Wi,estimatedRowHeight:eo.estimatedRowHeight,width:Jn,height:Jn,headerWidth:Jn,headerHeight:Ui.headerHeight,bodyWidth:Jn,rowHeight:Jn,cache:Wm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:oo.scrollbarAlwaysOn,scrollbarStartGap:oo.scrollbarStartGap,scrollbarEndGap:oo.scrollbarEndGap,class:wh,style:Jd,containerStyle:Jd,getRowHeight:{type:a.definePropType(Function),required:!0},rowKey:eo.rowKey,onRowsRendered:{type:a.definePropType(Function)},onScroll:{type:a.definePropType(Function)}}),GV=a.buildProps({cache:Ha.cache,estimatedRowHeight:eo.estimatedRowHeight,rowKey:Nh,headerClass:{type:a.definePropType([String,Function])},headerProps:{type:a.definePropType([Object,Function])},headerCellProps:{type:a.definePropType([Object,Function])},headerHeight:Ui.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:a.definePropType([String,Function])},rowProps:{type:a.definePropType([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:a.definePropType([Object,Function])},columns:sa,data:Sh,dataGetter:{type:a.definePropType(Function)},fixedData:Wi,expandColumnKey:eo.expandColumnKey,expandedRowKeys:Xd,defaultExpandedRowKeys:Xd,class:wh,fixed:Boolean,style:{type:a.definePropType(Object)},width:Jn,height:Jn,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:oo.hScrollbarSize,vScrollbarSize:oo.vScrollbarSize,scrollbarAlwaysOn:Ym.alwaysOn,sortBy:{type:a.definePropType(Object),default:()=>({})},sortState:{type:a.definePropType(Object),default:void 0},onColumnSort:{type:a.definePropType(Function)},onExpandedRowsChange:{type:a.definePropType(Function)},onEndReached:{type:a.definePropType(Function)},onRowExpand:eo.onRowExpand,onScroll:Ha.onScroll,onRowsRendered:Ha.onRowsRendered,rowEventHandlers:eo.rowEventHandlers}),XV="ElTableV2Header",JV=e.defineComponent({name:XV,props:Ui,setup(t,{slots:n,expose:o}){const l=a.useNamespace("table-v2"),r=e.inject(Eh),s=e.ref(),i=e.computed(()=>Ln({width:t.width,height:t.height})),c=e.computed(()=>Ln({width:t.rowWidth,height:t.height})),u=e.computed(()=>Ct(e.unref(t.headerHeight))),d=v=>{const m=e.unref(s);e.nextTick(()=>{m!=null&&m.scroll&&m.scroll({left:v})})},f=()=>{const v=l.e("fixed-header-row"),{columns:m,fixedHeaderData:y,rowHeight:h}=t;return y==null?void 0:y.map((g,C)=>{var E;const k=Ln({height:h,width:"100%"});return(E=n.fixed)==null?void 0:E.call(n,{class:v,columns:m,rowData:g,rowIndex:-(C+1),style:k})})},p=()=>{const v=l.e("dynamic-header-row"),{columns:m}=t;return e.unref(u).map((y,h)=>{var g;const C=Ln({width:"100%",height:y});return(g=n.dynamic)==null?void 0:g.call(n,{class:v,columns:m,headerIndex:h,style:C})})};return e.onUpdated(()=>{r!=null&&r.value&&d(r.value)}),o({scrollToLeft:d}),()=>{if(!(t.height<=0))return e.createVNode("div",{ref:s,class:t.class,style:e.unref(i),role:"rowgroup"},[e.createVNode("div",{style:e.unref(c),class:l.e("header")},[p(),f()])])}}});var ZV=JV;const QV=({atXEndEdge:t,atXStartEdge:n,atYEndEdge:o,atYStartEdge:l},r)=>{let s=null,i=0,c=0;const u=(f,p)=>{const v=f<=0&&n.value||f>=0&&t.value,m=p<=0&&l.value||p>=0&&o.value;return v&&m};return{hasReachedEdge:u,onWheel:f=>{L.cAF(s);let p=f.deltaX,v=f.deltaY;Math.abs(p)>Math.abs(v)?v=0:p=0,f.shiftKey&&v!==0&&(p=v,v=0),!(u(i,c)&&u(i+p,c+v))&&(i+=p,c+=v,f.preventDefault(),s=L.rAF(()=>{r(i,c),i=0,c=0}))}}},Th=({name:t,clearCache:n,getColumnPosition:o,getColumnStartIndexForOffset:l,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:s,getEstimatedTotalWidth:i,getColumnOffset:c,getRowOffset:u,getRowPosition:d,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:p,initCache:v,injectToInstance:m,validateProps:y})=>e.defineComponent({name:t??"ElVirtualList",props:oo,emits:[nr,or],setup(h,{emit:g,expose:C,slots:E}){const k=a.useNamespace("vl");y(h);const b=e.getCurrentInstance(),w=e.ref(v(h,b));m==null||m(b,w);const S=e.ref(),_=e.ref(),P=e.ref(),B=e.ref(null),T=e.ref({isScrolling:!1,scrollLeft:a.isNumber(h.initScrollLeft)?h.initScrollLeft:0,scrollTop:a.isNumber(h.initScrollTop)?h.initScrollTop:0,updateRequested:!1,xAxisScrollDir:bo,yAxisScrollDir:bo}),N=Fm(),V=e.computed(()=>Number.parseInt(`${h.height}`,10)),R=e.computed(()=>Number.parseInt(`${h.width}`,10)),j=e.computed(()=>{const{totalColumn:ee,totalRow:U,columnCache:se}=h,{isScrolling:z,xAxisScrollDir:ne,scrollLeft:_e}=e.unref(T);if(ee===0||U===0)return[0,0,0,0];const ye=l(h,_e,e.unref(w)),Pe=r(h,ye,_e,e.unref(w)),Ve=!z||ne===lr?Math.max(1,se):1,Ae=!z||ne===bo?Math.max(1,se):1;return[Math.max(0,ye-Ve),Math.max(0,Math.min(ee-1,Pe+Ae)),ye,Pe]}),q=e.computed(()=>{const{totalColumn:ee,totalRow:U,rowCache:se}=h,{isScrolling:z,yAxisScrollDir:ne,scrollTop:_e}=e.unref(T);if(ee===0||U===0)return[0,0,0,0];const ye=f(h,_e,e.unref(w)),Pe=p(h,ye,_e,e.unref(w)),Ve=!z||ne===lr?Math.max(1,se):1,Ae=!z||ne===bo?Math.max(1,se):1;return[Math.max(0,ye-Ve),Math.max(0,Math.min(U-1,Pe+Ae)),ye,Pe]}),D=e.computed(()=>s(h,e.unref(w))),$=e.computed(()=>i(h,e.unref(w))),A=e.computed(()=>{var ee;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:h.direction,height:a.isNumber(h.height)?`${h.height}px`:h.height,width:a.isNumber(h.width)?`${h.width}px`:h.width},(ee=h.style)!=null?ee:{}]}),O=e.computed(()=>{const ee=`${e.unref($)}px`;return{height:`${e.unref(D)}px`,pointerEvents:e.unref(T).isScrolling?"none":void 0,width:ee}}),M=()=>{const{totalColumn:ee,totalRow:U}=h;if(ee>0&&U>0){const[Pe,Ve,Ae,ue]=e.unref(j),[we,Me,Ie,pe]=e.unref(q);g(nr,{columnCacheStart:Pe,columnCacheEnd:Ve,rowCacheStart:we,rowCacheEnd:Me,columnVisibleStart:Ae,columnVisibleEnd:ue,rowVisibleStart:Ie,rowVisibleEnd:pe})}const{scrollLeft:se,scrollTop:z,updateRequested:ne,xAxisScrollDir:_e,yAxisScrollDir:ye}=e.unref(T);g(or,{xAxisScrollDir:_e,scrollLeft:se,yAxisScrollDir:ye,scrollTop:z,updateRequested:ne})},F=ee=>{const{clientHeight:U,clientWidth:se,scrollHeight:z,scrollLeft:ne,scrollTop:_e,scrollWidth:ye}=ee.currentTarget,Pe=e.unref(T);if(Pe.scrollTop===_e&&Pe.scrollLeft===ne)return;let Ve=ne;if($d(h.direction))switch(rr()){case Ul:Ve=-ne;break;case zi:Ve=ye-se-ne;break}T.value={...Pe,isScrolling:!0,scrollLeft:Ve,scrollTop:Math.max(0,Math.min(_e,z-U)),updateRequested:!0,xAxisScrollDir:Qn(Pe.scrollLeft,Ve),yAxisScrollDir:Qn(Pe.scrollTop,_e)},e.nextTick(()=>Q()),X(),M()},x=(ee,U)=>{const se=e.unref(V),z=(D.value-se)/U*ee;W({scrollTop:Math.min(D.value-se,z)})},K=(ee,U)=>{const se=e.unref(R),z=($.value-se)/U*ee;W({scrollLeft:Math.min($.value-se,z)})},{onWheel:Y}=QV({atXStartEdge:e.computed(()=>T.value.scrollLeft<=0),atXEndEdge:e.computed(()=>T.value.scrollLeft>=$.value-e.unref(R)),atYStartEdge:e.computed(()=>T.value.scrollTop<=0),atYEndEdge:e.computed(()=>T.value.scrollTop>=D.value-e.unref(V))},(ee,U)=>{var se,z,ne,_e;(z=(se=_.value)==null?void 0:se.onMouseUp)==null||z.call(se),(_e=(ne=P.value)==null?void 0:ne.onMouseUp)==null||_e.call(ne);const ye=e.unref(R),Pe=e.unref(V);W({scrollLeft:Math.min(T.value.scrollLeft+ee,$.value-ye),scrollTop:Math.min(T.value.scrollTop+U,D.value-Pe)})});a.useEventListener(S,"wheel",Y,{passive:!1});const W=({scrollLeft:ee=T.value.scrollLeft,scrollTop:U=T.value.scrollTop})=>{ee=Math.max(ee,0),U=Math.max(U,0);const se=e.unref(T);U===se.scrollTop&&ee===se.scrollLeft||(T.value={...se,xAxisScrollDir:Qn(se.scrollLeft,ee),yAxisScrollDir:Qn(se.scrollTop,U),scrollLeft:ee,scrollTop:U,updateRequested:!0},e.nextTick(()=>Q()),X(),M())},te=(ee=0,U=0,se=qt)=>{const z=e.unref(T);U=Math.max(0,Math.min(U,h.totalColumn-1)),ee=Math.max(0,Math.min(ee,h.totalRow-1));const ne=L.getScrollBarWidth(k.namespace.value),_e=e.unref(w),ye=s(h,_e),Pe=i(h,_e);W({scrollLeft:c(h,U,se,z.scrollLeft,_e,Pe>h.width?ne:0),scrollTop:u(h,ee,se,z.scrollTop,_e,ye>h.height?ne:0)})},re=(ee,U)=>{const{columnWidth:se,direction:z,rowHeight:ne}=h,_e=N.value(n&&se,n&&ne,n&&z),ye=`${ee},${U}`;if(a.hasOwn(_e,ye))return _e[ye];{const[,Pe]=o(h,U,e.unref(w)),Ve=e.unref(w),Ae=$d(z),[ue,we]=d(h,ee,Ve),[Me]=o(h,U,Ve);return _e[ye]={position:"absolute",left:Ae?void 0:`${Pe}px`,right:Ae?`${Pe}px`:void 0,top:`${we}px`,height:`${ue}px`,width:`${Me}px`},_e[ye]}},Q=()=>{T.value.isScrolling=!1,e.nextTick(()=>{N.value(-1,null,null)})};e.onMounted(()=>{if(!a.isClient)return;const{initScrollLeft:ee,initScrollTop:U}=h,se=e.unref(S);se&&(a.isNumber(ee)&&(se.scrollLeft=ee),a.isNumber(U)&&(se.scrollTop=U)),M()});const X=()=>{const{direction:ee}=h,{scrollLeft:U,scrollTop:se,updateRequested:z}=e.unref(T),ne=e.unref(S);if(z&&ne){if(ee===ko)switch(rr()){case Ul:{ne.scrollLeft=-U;break}case Ai:{ne.scrollLeft=U;break}default:{const{clientWidth:_e,scrollWidth:ye}=ne;ne.scrollLeft=ye-_e-U;break}}else ne.scrollLeft=Math.max(0,U);ne.scrollTop=Math.max(0,se)}},{resetAfterColumnIndex:G,resetAfterRowIndex:I,resetAfter:H}=b.proxy;C({windowRef:S,innerRef:B,getItemStyleCache:N,scrollTo:W,scrollToItem:te,states:T,resetAfterColumnIndex:G,resetAfterRowIndex:I,resetAfter:H});const Z=()=>{const{scrollbarAlwaysOn:ee,scrollbarStartGap:U,scrollbarEndGap:se,totalColumn:z,totalRow:ne}=h,_e=e.unref(R),ye=e.unref(V),Pe=e.unref($),Ve=e.unref(D),{scrollLeft:Ae,scrollTop:ue}=e.unref(T),we=e.h(Ns,{ref:_,alwaysOn:ee,startGap:U,endGap:se,class:k.e("horizontal"),clientSize:_e,layout:"horizontal",onScroll:K,ratio:_e*100/Pe,scrollFrom:Ae/(Pe-_e),total:ne,visible:!0}),Me=e.h(Ns,{ref:P,alwaysOn:ee,startGap:U,endGap:se,class:k.e("vertical"),clientSize:ye,layout:"vertical",onScroll:x,ratio:ye*100/Ve,scrollFrom:ue/(Ve-ye),total:z,visible:!0});return{horizontalScrollbar:we,verticalScrollbar:Me}},J=()=>{var ee;const[U,se]=e.unref(j),[z,ne]=e.unref(q),{data:_e,totalColumn:ye,totalRow:Pe,useIsScrolling:Ve,itemKey:Ae}=h,ue=[];if(Pe>0&&ye>0)for(let we=z;we<=ne;we++)for(let Me=U;Me<=se;Me++){const Ie=Ae({columnIndex:Me,data:_e,rowIndex:we});ue.push(e.h(e.Fragment,{key:Ie},(ee=E.default)==null?void 0:ee.call(E,{columnIndex:Me,data:_e,isScrolling:Ve?e.unref(T).isScrolling:void 0,style:re(we,Me),rowIndex:we})))}return ue},le=()=>{const ee=e.resolveDynamicComponent(h.innerElement),U=J();return[e.h(ee,e.mergeProps(h.innerProps,{style:e.unref(O),ref:B}),a.isString(ee)?U:{default:()=>U})]};return()=>{const ee=e.resolveDynamicComponent(h.containerElement),{horizontalScrollbar:U,verticalScrollbar:se}=Z(),z=le();return e.h("div",{key:0,class:k.e("wrapper"),role:h.role},[e.h(ee,{class:h.className,style:e.unref(A),onScroll:F,ref:S},a.isString(ee)?z:{default:()=>z}),U,se])}}}),{max:cr,min:_h,floor:Bh}=Math,eD={column:"columnWidth",row:"rowHeight"},zs={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},kn=(t,n,o,l)=>{const[r,s,i]=[o[l],t[eD[l]],o[zs[l]]];if(n>i){let c=0;if(i>=0){const u=r[i];c=u.offset+u.size}for(let u=i+1;u<=n;u++){const d=s(u);r[u]={offset:c,size:d},c+=d}o[zs[l]]=n}return r[n]},Ph=(t,n,o,l,r,s)=>{for(;o<=l;){const i=o+Bh((l-o)/2),c=kn(t,i,n,s).offset;if(c===r)return i;c<r?o=i+1:l=i-1}return cr(0,o-1)},tD=(t,n,o,l,r)=>{const s=r==="column"?t.totalColumn:t.totalRow;let i=1;for(;o<s&&kn(t,o,n,r).offset<l;)o+=i,i*=2;return Ph(t,n,Bh(o/2),_h(o,s-1),l,r)},Zd=(t,n,o,l)=>{const[r,s]=[n[l],n[zs[l]]];return(s>0?r[s].offset:0)>=o?Ph(t,n,0,s,o,l):tD(t,n,cr(0,s),o,l)},Vh=({totalRow:t},{estimatedRowHeight:n,lastVisitedRowIndex:o,row:l})=>{let r=0;if(o>=t&&(o=t-1),o>=0){const c=l[o];r=c.offset+c.size}const i=(t-o-1)*n;return r+i},Dh=({totalColumn:t},{column:n,estimatedColumnWidth:o,lastVisitedColumnIndex:l})=>{let r=0;if(l>t&&(l=t-1),l>=0){const c=n[l];r=c.offset+c.size}const i=(t-l-1)*o;return r+i},nD={column:Dh,row:Vh},Qd=(t,n,o,l,r,s,i)=>{const[c,u]=[s==="row"?t.height:t.width,nD[s]],d=kn(t,n,r,s),f=u(t,r),p=cr(0,_h(f-c,d.offset)),v=cr(0,d.offset-c+i+d.size);switch(o===Nr&&(l>=v-c&&l<=p+c?o=qt:o=dn),o){case jl:return p;case Wl:return v;case dn:return Math.round(v+(p-v)/2);case qt:default:return l>=v&&l<=p?l:v>p||l<v?v:p}},oD=Th({name:"ElDynamicSizeGrid",getColumnPosition:(t,n,o)=>{const l=kn(t,n,o,"column");return[l.size,l.offset]},getRowPosition:(t,n,o)=>{const l=kn(t,n,o,"row");return[l.size,l.offset]},getColumnOffset:(t,n,o,l,r,s)=>Qd(t,n,o,l,r,"column",s),getRowOffset:(t,n,o,l,r,s)=>Qd(t,n,o,l,r,"row",s),getColumnStartIndexForOffset:(t,n,o)=>Zd(t,o,n,"column"),getColumnStopIndexForStartIndex:(t,n,o,l)=>{const r=kn(t,n,l,"column"),s=o+t.width;let i=r.offset+r.size,c=n;for(;c<t.totalColumn-1&&i<s;)c++,i+=kn(t,n,l,"column").size;return c},getEstimatedTotalHeight:Vh,getEstimatedTotalWidth:Dh,getRowStartIndexForOffset:(t,n,o)=>Zd(t,o,n,"row"),getRowStopIndexForStartIndex:(t,n,o,l)=>{const{totalRow:r,height:s}=t,i=kn(t,n,l,"row"),c=o+s;let u=i.size+i.offset,d=n;for(;d<r-1&&u<c;)d++,u+=kn(t,d,l,"row").size;return d},injectToInstance:(t,n)=>{const o=({columnIndex:s,rowIndex:i},c)=>{var u,d;c=a.isUndefined(c)?!0:c,a.isNumber(s)&&(n.value.lastVisitedColumnIndex=Math.min(n.value.lastVisitedColumnIndex,s-1)),a.isNumber(i)&&(n.value.lastVisitedRowIndex=Math.min(n.value.lastVisitedRowIndex,i-1)),(u=t.exposed)==null||u.getItemStyleCache.value(-1,null,null),c&&((d=t.proxy)==null||d.$forceUpdate())},l=(s,i)=>{o({columnIndex:s},i)},r=(s,i)=>{o({rowIndex:s},i)};Object.assign(t.proxy,{resetAfterColumnIndex:l,resetAfterRowIndex:r,resetAfter:o})},initCache:({estimatedColumnWidth:t=bs,estimatedRowHeight:n=bs})=>({column:{},estimatedColumnWidth:t,estimatedRowHeight:n,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:t,rowHeight:n})=>{}}),lD=Th({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:t},n)=>[t,n*t],getRowPosition:({rowHeight:t},n)=>[t,n*t],getEstimatedTotalHeight:({totalRow:t,rowHeight:n})=>n*t,getEstimatedTotalWidth:({totalColumn:t,columnWidth:n})=>n*t,getColumnOffset:({totalColumn:t,columnWidth:n,width:o},l,r,s,i,c)=>{o=Number(o);const u=Math.max(0,t*n-o),d=Math.min(u,l*n),f=Math.max(0,l*n-o+c+n);switch(r==="smart"&&(s>=f-o&&s<=d+o?r=qt:r=dn),r){case jl:return d;case Wl:return f;case dn:{const p=Math.round(f+(d-f)/2);return p<Math.ceil(o/2)?0:p>u+Math.floor(o/2)?u:p}case qt:default:return s>=f&&s<=d?s:f>d||s<f?f:d}},getRowOffset:({rowHeight:t,height:n,totalRow:o},l,r,s,i,c)=>{n=Number(n);const u=Math.max(0,o*t-n),d=Math.min(u,l*t),f=Math.max(0,l*t-n+c+t);switch(r===Nr&&(s>=f-n&&s<=d+n?r=qt:r=dn),r){case jl:return d;case Wl:return f;case dn:{const p=Math.round(f+(d-f)/2);return p<Math.ceil(n/2)?0:p>u+Math.floor(n/2)?u:p}case qt:default:return s>=f&&s<=d?s:f>d||s<f?f:d}},getColumnStartIndexForOffset:({columnWidth:t,totalColumn:n},o)=>Math.max(0,Math.min(n-1,Math.floor(o/t))),getColumnStopIndexForStartIndex:({columnWidth:t,totalColumn:n,width:o},l,r)=>{const s=l*t,i=Math.ceil((o+r-s)/t);return Math.max(0,Math.min(n-1,l+i-1))},getRowStartIndexForOffset:({rowHeight:t,totalRow:n},o)=>Math.max(0,Math.min(n-1,Math.floor(o/t))),getRowStopIndexForStartIndex:({rowHeight:t,totalRow:n,height:o},l,r)=>{const s=l*t,i=Math.ceil((o+r-s)/t);return Math.max(0,Math.min(n-1,l+i-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:t,rowHeight:n})=>{}}),aD="ElTableV2Grid",rD=t=>{const n=e.ref(),o=e.ref(),l=e.ref(0),r=e.computed(()=>{const{data:g,rowHeight:C,estimatedRowHeight:E}=t;if(!E)return g.length*C}),s=e.computed(()=>{const{fixedData:g,rowHeight:C}=t;return((g==null?void 0:g.length)||0)*C}),i=e.computed(()=>Ka(t.headerHeight)),c=e.computed(()=>{const{height:g}=t;return Math.max(0,g-e.unref(i)-e.unref(s))}),u=e.computed(()=>e.unref(i)+e.unref(s)>0),d=({data:g,rowIndex:C})=>g[C][t.rowKey];function f({rowCacheStart:g,rowCacheEnd:C,rowVisibleStart:E,rowVisibleEnd:k}){var b;(b=t.onRowsRendered)==null||b.call(t,{rowCacheStart:g,rowCacheEnd:C,rowVisibleStart:E,rowVisibleEnd:k})}function p(g,C){var E;(E=o.value)==null||E.resetAfterRowIndex(g,C)}function v(g,C){const E=e.unref(n),k=e.unref(o);a.isObject$1(g)?(E==null||E.scrollToLeft(g.scrollLeft),l.value=g.scrollLeft,k==null||k.scrollTo(g)):(E==null||E.scrollToLeft(g),l.value=g,k==null||k.scrollTo({scrollLeft:g,scrollTop:C}))}function m(g){var C;(C=e.unref(o))==null||C.scrollTo({scrollTop:g})}function y(g,C){var E;(E=e.unref(o))==null||E.scrollToItem(g,1,C)}function h(){var g,C;(g=e.unref(o))==null||g.$forceUpdate(),(C=e.unref(n))==null||C.$forceUpdate()}return e.watch(()=>t.bodyWidth,()=>{var g;a.isNumber(t.estimatedRowHeight)&&((g=o.value)==null||g.resetAfter({columnIndex:0},!1))}),{bodyRef:o,forceUpdate:h,fixedRowHeight:s,gridHeight:c,hasHeader:u,headerHeight:i,headerRef:n,totalHeight:r,itemKey:d,onItemRendered:f,resetAfterRowIndex:p,scrollTo:v,scrollToTop:m,scrollToRow:y,scrollLeft:l}},sD=e.defineComponent({name:aD,props:Ha,setup(t,{slots:n,expose:o}){const{ns:l}=e.inject(ji),{bodyRef:r,fixedRowHeight:s,gridHeight:i,hasHeader:c,headerRef:u,headerHeight:d,totalHeight:f,forceUpdate:p,itemKey:v,onItemRendered:m,resetAfterRowIndex:y,scrollTo:h,scrollToTop:g,scrollToRow:C,scrollLeft:E}=rD(t);e.provide(Eh,E),e.onActivated(async()=>{var b;await e.nextTick();const w=(b=r.value)==null?void 0:b.states.scrollTop;w&&g(Math.round(w)+1)}),o({forceUpdate:p,totalHeight:f,scrollTo:h,scrollToTop:g,scrollToRow:C,resetAfterRowIndex:y});const k=()=>t.bodyWidth;return()=>{const{cache:b,columns:w,data:S,fixedData:_,useIsScrolling:P,scrollbarAlwaysOn:B,scrollbarEndGap:T,scrollbarStartGap:N,style:V,rowHeight:R,bodyWidth:j,estimatedRowHeight:q,headerWidth:D,height:$,width:A,getRowHeight:O,onScroll:M}=t,F=a.isNumber(q),x=F?oD:lD,K=e.unref(d);return e.createVNode("div",{role:"table",class:[l.e("table"),t.class],style:V},[e.createVNode(x,{ref:r,data:S,useIsScrolling:P,itemKey:v,columnCache:0,columnWidth:F?k:j,totalColumn:1,totalRow:S.length,rowCache:b,rowHeight:F?O:R,width:A,height:e.unref(i),class:l.e("body"),role:"rowgroup",scrollbarStartGap:N,scrollbarEndGap:T,scrollbarAlwaysOn:B,onScroll:M,onItemRendered:m,perfMode:!1},{default:Y=>{var W;const te=S[Y.rowIndex];return(W=n.row)==null?void 0:W.call(n,{...Y,columns:w,rowData:te})}}),e.unref(c)&&e.createVNode(ZV,{ref:u,class:l.e("header-wrapper"),columns:w,headerData:S,headerHeight:t.headerHeight,fixedHeaderData:_,rowWidth:D,rowHeight:R,width:A,height:Math.min(K+e.unref(s),$)},{dynamic:n.header,fixed:n.row})])}}});var qi=sD;function iD(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const cD=(t,{slots:n})=>{const{mainTableRef:o,...l}=t;return e.createVNode(qi,e.mergeProps({ref:o},l),iD(n)?n:{default:()=>[n]})};var uD=cD;function dD(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const fD=(t,{slots:n})=>{if(!t.columns.length)return;const{leftTableRef:o,...l}=t;return e.createVNode(qi,e.mergeProps({ref:o},l),dD(n)?n:{default:()=>[n]})};var pD=fD;function mD(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const hD=(t,{slots:n})=>{if(!t.columns.length)return;const{rightTableRef:o,...l}=t;return e.createVNode(qi,e.mergeProps({ref:o},l),mD(n)?n:{default:()=>[n]})};var vD=hD;const gD=t=>{const{isScrolling:n}=e.inject(ji),o=e.ref(!1),l=e.ref(),r=e.computed(()=>a.isNumber(t.estimatedRowHeight)&&t.rowIndex>=0),s=(u=!1)=>{const d=e.unref(l);if(!d)return;const{columns:f,onRowHeightChange:p,rowKey:v,rowIndex:m,style:y}=t,{height:h}=d.getBoundingClientRect();o.value=!0,e.nextTick(()=>{if(u||h!==Number.parseInt(y.height)){const g=f[0],C=(g==null?void 0:g.placeholderSign)===Xl;p==null||p({rowKey:v,height:h,rowIndex:m},g&&!C&&g.fixed)}})},i=e.computed(()=>{const{rowData:u,rowIndex:d,rowKey:f,onRowHover:p}=t,v=t.rowEventHandlers||{},m={};return Object.entries(v).forEach(([y,h])=>{a.isFunction(h)&&(m[y]=g=>{h({event:g,rowData:u,rowIndex:d,rowKey:f})})}),p&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:y,hovered:h})=>{const g=m[y];m[y]=C=>{p({event:C,hovered:h,rowData:u,rowIndex:d,rowKey:f}),g==null||g(C)}}),m}),c=u=>{const{onRowExpand:d,rowData:f,rowIndex:p,rowKey:v}=t;d==null||d({expanded:u,rowData:f,rowIndex:p,rowKey:v})};return e.onMounted(()=>{e.unref(r)&&s(!0)}),{isScrolling:n,measurable:r,measured:o,rowRef:l,eventHandlers:i,onExpand:c}},yD="ElTableV2TableRow",bD=e.defineComponent({name:yD,props:eo,setup(t,{expose:n,slots:o,attrs:l}){const{eventHandlers:r,isScrolling:s,measurable:i,measured:c,rowRef:u,onExpand:d}=gD(t);return n({onExpand:d}),()=>{const{columns:f,columnsStyles:p,expandColumnKey:v,depth:m,rowData:y,rowIndex:h,style:g}=t;let C=f.map((E,k)=>{const b=a.isArray$1(y.children)&&y.children.length>0&&E.key===v;return o.cell({column:E,columns:f,columnIndex:k,depth:m,style:p[E.key],rowData:y,rowIndex:h,isScrolling:e.unref(s),expandIconProps:b?{rowData:y,rowIndex:h,onExpand:d}:void 0})});if(o.row&&(C=o.row({cells:C.map(E=>a.isArray$1(E)&&E.length===1?E[0]:E),style:g,columns:f,depth:m,rowData:y,rowIndex:h,isScrolling:e.unref(s)})),e.unref(i)){const{height:E,...k}=g||{},b=e.unref(c);return e.createVNode("div",e.mergeProps({ref:u,class:t.class,style:b?g:k,role:"row"},l,e.unref(r)),[C])}return e.createVNode("div",e.mergeProps(l,{ref:u,class:t.class,style:g,role:"row"},e.unref(r)),[C])}}});var CD=bD;function kD(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const ED=(t,{slots:n})=>{const{columns:o,columnsStyles:l,depthMap:r,expandColumnKey:s,expandedRowKeys:i,estimatedRowHeight:c,hasFixedColumns:u,rowData:d,rowIndex:f,style:p,isScrolling:v,rowProps:m,rowClass:y,rowKey:h,rowEventHandlers:g,ns:C,onRowHovered:E,onRowExpanded:k}=t,b=ro(y,{columns:o,rowData:d,rowIndex:f},""),w=ro(m,{columns:o,rowData:d,rowIndex:f}),S=d[h],_=r[S]||0,P=!!s,B=f<0,T=[C.e("row"),b,C.is("expanded",P&&i.includes(S)),C.is("fixed",!_&&B),C.is("customized",!!n.row),{[C.e(`row-depth-${_}`)]:P&&f>=0}],N=u?E:void 0,V={...w,columns:o,columnsStyles:l,class:T,depth:_,expandColumnKey:s,estimatedRowHeight:B?void 0:c,isScrolling:v,rowIndex:f,rowData:d,rowKey:S,rowEventHandlers:g,style:p},R=q=>{N==null||N({hovered:!0,rowKey:S,event:q,rowData:d,rowIndex:f})},j=q=>{N==null||N({hovered:!1,rowKey:S,event:q,rowData:d,rowIndex:f})};return e.createVNode(CD,e.mergeProps(V,{onRowExpand:k,onMouseenter:R,onMouseleave:j,rowkey:S}),kD(n)?n:{default:()=>[n]})};var wD=ED;const Yi=(t,{slots:n})=>{var o;const{cellData:l,style:r}=t,s=((o=l==null?void 0:l.toString)==null?void 0:o.call(l))||"",i=e.renderSlot(n,"default",t,()=>[s]);return e.createVNode("div",{class:t.class,title:s,style:r},[i])};Yi.displayName="ElTableV2Cell";Yi.inheritAttrs=!1;var SD=Yi;const ND=t=>{const{expanded:n,expandable:o,onExpand:l,style:r,size:s}=t,i={onClick:o?()=>l(!n):void 0,class:t.class};return e.createVNode(a.ElIcon,e.mergeProps(i,{size:s,style:r}),{default:()=>[e.createVNode(a.arrow_right_default,null,null)]})};var TD=ND;const Ih=({columns:t,column:n,columnIndex:o,depth:l,expandIconProps:r,isScrolling:s,rowData:i,rowIndex:c,style:u,expandedRowKeys:d,ns:f,cellProps:p,expandColumnKey:v,indentSize:m,iconSize:y,rowKey:h},{slots:g})=>{const C=Ln(u);if(n.placeholderSign===Xl)return e.createVNode("div",{class:f.em("row-cell","placeholder"),style:C},null);const{cellRenderer:E,dataKey:k,dataGetter:b}=n,w=a.isFunction(b)?b({columns:t,column:n,columnIndex:o,rowData:i,rowIndex:c}):a.get(i,k??""),S=ro(p,{cellData:w,columns:t,column:n,columnIndex:o,rowIndex:c,rowData:i}),_={class:f.e("cell-text"),columns:t,column:n,columnIndex:o,cellData:w,isScrolling:s,rowData:i,rowIndex:c},P=kh(E),B=P?P(_):e.renderSlot(g,"default",_,()=>[e.createVNode(SD,_,null)]),T=[f.e("row-cell"),n.class,n.align===Gl.CENTER&&f.is("align-center"),n.align===Gl.RIGHT&&f.is("align-right")],N=c>=0&&v&&n.key===v,V=c>=0&&d.includes(i[h]);let R;const j=`margin-inline-start: ${l*m}px;`;return N&&(a.isObject$1(r)?R=e.createVNode(TD,e.mergeProps(r,{class:[f.e("expand-icon"),f.is("expanded",V)],size:y,expanded:V,style:j,expandable:!0}),null):R=e.createVNode("div",{style:[j,`width: ${y}px; height: ${y}px;`].join(" ")},null)),e.createVNode("div",e.mergeProps({class:T,style:C},S,{role:"cell"}),[R,B])};Ih.inheritAttrs=!1;var ef=Ih;const _D=a.buildProps({class:String,columns:sa,columnsStyles:{type:a.definePropType(Object),required:!0},headerIndex:Number,style:{type:a.definePropType(Object)}}),BD=e.defineComponent({name:"ElTableV2HeaderRow",props:_D,setup(t,{slots:n}){return()=>{const{columns:o,columnsStyles:l,headerIndex:r,style:s}=t;let i=o.map((c,u)=>n.cell({columns:o,column:c,columnIndex:u,headerIndex:r,style:l[c.key]}));return n.header&&(i=n.header({cells:i.map(c=>a.isArray$1(c)&&c.length===1?c[0]:c),columns:o,headerIndex:r})),e.createVNode("div",{class:t.class,style:s,role:"row"},[i])}}});var PD=BD;function VD(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const DD=({columns:t,columnsStyles:n,headerIndex:o,style:l,headerClass:r,headerProps:s,ns:i},{slots:c})=>{const u={columns:t,headerIndex:o},d=[i.e("header-row"),ro(r,u,""),i.is("customized",!!c.header)],f={...ro(s,u),columnsStyles:n,class:d,columns:t,headerIndex:o,style:l};return e.createVNode(PD,f,VD(c)?c:{default:()=>[c]})};var ID=DD;const Gi=(t,{slots:n})=>e.renderSlot(n,"default",t,()=>{var o,l;return[e.createVNode("div",{class:t.class,title:(o=t.column)==null?void 0:o.title},[(l=t.column)==null?void 0:l.title])]});Gi.displayName="ElTableV2HeaderCell";Gi.inheritAttrs=!1;var OD=Gi;const $D=t=>{const{sortOrder:n}=t;return e.createVNode(a.ElIcon,{size:14,class:t.class},{default:()=>[n===Yl.ASC?e.createVNode(a.sort_up_default,null,null):e.createVNode(a.sort_down_default,null,null)]})};var MD=$D;const xD=(t,{slots:n})=>{const{column:o,ns:l,style:r,onColumnSorted:s}=t,i=Ln(r);if(o.placeholderSign===Xl)return e.createVNode("div",{class:l.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:c,headerClass:u,sortable:d}=o,f={...t,class:l.e("header-cell-text")},p=kh(c),v=p?p(f):e.renderSlot(n,"default",f,()=>[e.createVNode(OD,f,null)]),{sortBy:m,sortState:y,headerCellProps:h}=t;let g,C;if(y){const b=y[o.key];g=!!As[b],C=g?b:Yl.ASC}else g=o.key===m.key,C=g?m.order:Yl.ASC;const E=[l.e("header-cell"),ro(u,t,""),o.align===Gl.CENTER&&l.is("align-center"),o.align===Gl.RIGHT&&l.is("align-right"),d&&l.is("sortable")],k={...ro(h,t),onClick:o.sortable?s:void 0,class:E,style:i,"data-key":o.key};return e.createVNode("div",e.mergeProps(k,{role:"columnheader"}),[v,d&&e.createVNode(MD,{class:[l.e("sort-icon"),g&&l.is("sorting")],sortOrder:C},null)])};var tf=xD;const Oh=(t,{slots:n})=>{var o;return e.createVNode("div",{class:t.class,style:t.style},[(o=n.default)==null?void 0:o.call(n)])};Oh.displayName="ElTableV2Footer";var AD=Oh;const $h=(t,{slots:n})=>{const o=e.renderSlot(n,"default",{},()=>[e.createVNode(Tm,null,null)]);return e.createVNode("div",{class:t.class,style:t.style},[o])};$h.displayName="ElTableV2Empty";var zD=$h;const Mh=(t,{slots:n})=>{var o;return e.createVNode("div",{class:t.class,style:t.style},[(o=n.default)==null?void 0:o.call(n)])};Mh.displayName="ElTableV2Overlay";var RD=Mh;function Nl(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const LD="ElTableV2",FD=e.defineComponent({name:LD,props:GV,setup(t,{slots:n,expose:o}){const l=a.useNamespace("table-v2"),{columnsStyles:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:i,mainColumns:c,mainTableHeight:u,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:p,data:v,depthMap:m,expandedRowKeys:y,hasFixedColumns:h,mainTableRef:g,leftTableRef:C,rightTableRef:E,isDynamic:k,isResetting:b,isScrolling:w,bodyWidth:S,emptyStyle:_,rootStyle:P,footerHeight:B,showEmpty:T,scrollTo:N,scrollToLeft:V,scrollToTop:R,scrollToRow:j,getRowHeight:q,onColumnSorted:D,onRowHeightChange:$,onRowHovered:A,onRowExpanded:O,onRowsRendered:M,onScroll:F,onVerticalScroll:x}=qV(t);return o({scrollTo:N,scrollToLeft:V,scrollToTop:R,scrollToRow:j}),e.provide(ji,{ns:l,isResetting:b,isScrolling:w}),()=>{const{cache:K,cellProps:Y,estimatedRowHeight:W,expandColumnKey:te,fixedData:re,headerHeight:Q,headerClass:X,headerProps:G,headerCellProps:I,sortBy:H,sortState:Z,rowHeight:J,rowClass:le,rowEventHandlers:oe,rowKey:ee,rowProps:U,scrollbarAlwaysOn:se,indentSize:z,iconSize:ne,useIsScrolling:_e,vScrollbarSize:ye,width:Pe}=t,Ve=e.unref(v),Ae={cache:K,class:l.e("main"),columns:e.unref(c),data:Ve,fixedData:re,estimatedRowHeight:W,bodyWidth:e.unref(S),headerHeight:Q,headerWidth:e.unref(S),height:e.unref(u),mainTableRef:g,rowKey:ee,rowHeight:J,scrollbarAlwaysOn:se,scrollbarStartGap:2,scrollbarEndGap:ye,useIsScrolling:_e,width:Pe,getRowHeight:q,onRowsRendered:M,onScroll:F},ue=e.unref(f),we=e.unref(d),Me={cache:K,class:l.e("left"),columns:e.unref(s),data:Ve,fixedData:re,estimatedRowHeight:W,leftTableRef:C,rowHeight:J,bodyWidth:ue,headerWidth:ue,headerHeight:Q,height:we,rowKey:ee,scrollbarAlwaysOn:se,scrollbarStartGap:2,scrollbarEndGap:ye,useIsScrolling:_e,width:ue,getRowHeight:q,onScroll:x},Ie=e.unref(p),pe={cache:K,class:l.e("right"),columns:e.unref(i),data:Ve,fixedData:re,estimatedRowHeight:W,rightTableRef:E,rowHeight:J,bodyWidth:Ie,headerWidth:Ie,headerHeight:Q,height:we,rowKey:ee,scrollbarAlwaysOn:se,scrollbarStartGap:2,scrollbarEndGap:ye,width:Ie,style:`${l.cssVarName("table-scrollbar-size")}: ${ye}px`,useIsScrolling:_e,getRowHeight:q,onScroll:x},ke=e.unref(r),ae={ns:l,depthMap:e.unref(m),columnsStyles:ke,expandColumnKey:te,expandedRowKeys:e.unref(y),estimatedRowHeight:W,hasFixedColumns:e.unref(h),rowProps:U,rowClass:le,rowKey:ee,rowEventHandlers:oe,onRowHovered:A,onRowExpanded:O,onRowHeightChange:$},ve={cellProps:Y,expandColumnKey:te,indentSize:z,iconSize:ne,rowKey:ee,expandedRowKeys:e.unref(y),ns:l},Se={ns:l,headerClass:X,headerProps:G,columnsStyles:ke},ce={ns:l,sortBy:H,sortState:Z,headerCellProps:I,onColumnSorted:D},Ce={row:Ne=>e.createVNode(wD,e.mergeProps(Ne,ae),{row:n.row,cell:Re=>{let Ye;return n.cell?e.createVNode(ef,e.mergeProps(Re,ve,{style:ke[Re.column.key]}),Nl(Ye=n.cell(Re))?Ye:{default:()=>[Ye]}):e.createVNode(ef,e.mergeProps(Re,ve,{style:ke[Re.column.key]}),null)}}),header:Ne=>e.createVNode(ID,e.mergeProps(Ne,Se),{header:n.header,cell:Re=>{let Ye;return n["header-cell"]?e.createVNode(tf,e.mergeProps(Re,ce,{style:ke[Re.column.key]}),Nl(Ye=n["header-cell"](Re))?Ye:{default:()=>[Ye]}):e.createVNode(tf,e.mergeProps(Re,ce,{style:ke[Re.column.key]}),null)}})},ie=[t.class,l.b(),l.e("root"),l.is("dynamic",e.unref(k))],be={class:l.e("footer"),style:e.unref(B)};return e.createVNode("div",{class:ie,style:e.unref(P)},[e.createVNode(uD,Ae,Nl(Ce)?Ce:{default:()=>[Ce]}),e.createVNode(pD,Me,Nl(Ce)?Ce:{default:()=>[Ce]}),e.createVNode(vD,pe,Nl(Ce)?Ce:{default:()=>[Ce]}),n.footer&&e.createVNode(AD,be,{default:n.footer}),e.unref(T)&&e.createVNode(zD,{class:l.e("empty"),style:e.unref(_)},{default:n.empty}),n.overlay&&e.createVNode(RD,{class:l.e("overlay")},{default:n.overlay})])}}});var KD=FD;const HD=a.buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:a.definePropType(Function)}}),jD=t=>{const n=e.ref(),o=e.ref(0),l=e.ref(0);let r;return e.onMounted(()=>{r=a.useResizeObserver(n,([s])=>{const{width:i,height:c}=s.contentRect,{paddingLeft:u,paddingRight:d,paddingTop:f,paddingBottom:p}=getComputedStyle(s.target),v=Number.parseInt(u)||0,m=Number.parseInt(d)||0,y=Number.parseInt(f)||0,h=Number.parseInt(p)||0;o.value=i-v-m,l.value=c-y-h}).stop}),e.onBeforeUnmount(()=>{r==null||r()}),e.watch([o,l],([s,i])=>{var c;(c=t.onResize)==null||c.call(t,{width:s,height:i})}),{sizer:n,width:o,height:l}},WD=e.defineComponent({name:"ElAutoResizer",props:HD,setup(t,{slots:n}){const o=a.useNamespace("auto-resizer"),{height:l,width:r,sizer:s}=jD(t),i={width:"100%",height:"100%"};return()=>{var c;return e.createVNode("div",{ref:s,class:o.b(),style:i},[(c=n.default)==null?void 0:c.call(n,{height:l.value,width:r.value})])}}});var UD=WD;const qD=a.withInstall(KD),YD=a.withInstall(UD),Tr=Symbol("tabsRootContextKey"),GD=a.buildProps({tabs:{type:a.definePropType(Array),default:()=>a.mutable([])},tabRefs:{type:a.definePropType(Object),default:()=>a.mutable({})}}),xh="ElTabBar",XD=e.defineComponent({name:xh}),JD=e.defineComponent({...XD,props:GD,setup(t,{expose:n}){const o=t,l=e.inject(Tr);l||a.throwError(xh,"<el-tabs><el-tab-bar /></el-tabs>");const r=a.useNamespace("tabs"),s=e.ref(),i=e.ref(),c=()=>{let v=0,m=0;const y=["top","bottom"].includes(l.props.tabPosition)?"width":"height",h=y==="width"?"x":"y",g=h==="x"?"left":"top";return o.tabs.every(C=>{if(a.isUndefined(C.paneName))return!1;const E=o.tabRefs[C.paneName];if(!E)return!1;if(!C.active)return!0;v=E[`offset${Rn(g)}`],m=E[`client${Rn(y)}`];const k=window.getComputedStyle(E);return y==="width"&&(m-=Number.parseFloat(k.paddingLeft)+Number.parseFloat(k.paddingRight),v+=Number.parseFloat(k.paddingLeft)),!1}),{[y]:`${m}px`,transform:`translate${Rn(h)}(${v}px)`}},u=()=>i.value=c(),d=[],f=()=>{d.forEach(v=>v.stop()),d.length=0,Object.values(o.tabRefs).forEach(v=>{d.push(a.useResizeObserver(v,u))})};e.watch(()=>o.tabs,async()=>{await e.nextTick(),u(),f()},{immediate:!0});const p=a.useResizeObserver(s,()=>u());return e.onBeforeUnmount(()=>{d.forEach(v=>v.stop()),d.length=0,p.stop()}),n({ref:s,update:u}),(v,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"barRef",ref:s,class:e.normalizeClass([e.unref(r).e("active-bar"),e.unref(r).is(e.unref(l).props.tabPosition)]),style:e.normalizeStyle(i.value)},null,6))}});var ZD=a._export_sfc(JD,[["__file","tab-bar.vue"]]);const QD=a.buildProps({panes:{type:a.definePropType(Array),default:()=>a.mutable([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),eI={tabClick:(t,n,o)=>o instanceof Event,tabRemove:(t,n)=>n instanceof Event},nf="ElTabNav",tI=e.defineComponent({name:nf,props:QD,emits:eI,setup(t,{expose:n,emit:o}){const l=e.inject(Tr);l||a.throwError(nf,"<el-tabs><tab-nav /></el-tabs>");const r=a.useNamespace("tabs"),s=a.useDocumentVisibility(),i=a.useWindowFocus(),c=e.ref(),u=e.ref(),d=e.ref(),f=e.ref({}),p=e.ref(),v=e.ref(!1),m=e.ref(0),y=e.ref(!1),h=e.ref(!0),g=e.shallowRef(),C=e.computed(()=>["top","bottom"].includes(l.props.tabPosition)),E=e.computed(()=>C.value?"width":"height"),k=e.computed(()=>({transform:`translate${E.value==="width"?"X":"Y"}(-${m.value}px)`})),{width:b,height:w}=a.useElementSize(c),{width:S,height:_}=a.useElementSize(u,{width:0,height:0},{box:"border-box"}),P=e.computed(()=>C.value?b.value:w.value),B=e.computed(()=>C.value?S.value:_.value),{onWheel:T}=Km({atStartEdge:e.computed(()=>m.value<=0),atEndEdge:e.computed(()=>B.value-m.value<=P.value),layout:e.computed(()=>C.value?"horizontal":"vertical")},M=>{m.value=vr(m.value+M,0,B.value-P.value)}),N=()=>{if(!c.value)return;const M=c.value[`offset${Rn(E.value)}`],F=m.value;if(!F)return;const x=F>M?F-M:0;m.value=x},V=()=>{if(!c.value||!u.value)return;const M=u.value[`offset${Rn(E.value)}`],F=c.value[`offset${Rn(E.value)}`],x=m.value;if(M-x<=F)return;const K=M-x>F*2?x+F:M-F;m.value=K},R=async()=>{const M=u.value;if(!v.value||!d.value||!c.value||!M)return;await e.nextTick();const F=f.value[t.currentName];if(!F)return;const x=c.value,K=F.getBoundingClientRect(),Y=x.getBoundingClientRect(),W=C.value?M.offsetWidth-Y.width:M.offsetHeight-Y.height,te=m.value;let re=te;C.value?(K.left<Y.left&&(re=te-(Y.left-K.left)),K.right>Y.right&&(re=te+K.right-Y.right)):(K.top<Y.top&&(re=te-(Y.top-K.top)),K.bottom>Y.bottom&&(re=te+(K.bottom-Y.bottom))),re=Math.max(re,0),m.value=Math.min(re,W)},j=()=>{var M;if(!u.value||!c.value)return;t.stretch&&((M=p.value)==null||M.update());const F=u.value[`offset${Rn(E.value)}`],x=c.value[`offset${Rn(E.value)}`],K=m.value;x<F?(v.value=v.value||{},v.value.prev=K,v.value.next=K+x<F,F-K<x&&(m.value=F-x)):(v.value=!1,K>0&&(m.value=0))},q=M=>{const F=a.getEventCode(M);let x=0;switch(F){case a.EVENT_CODE.left:case a.EVENT_CODE.up:x=-1;break;case a.EVENT_CODE.right:case a.EVENT_CODE.down:x=1;break;default:return}const K=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let W=K.indexOf(M.target)+x;W<0?W=K.length-1:W>=K.length&&(W=0),K[W].focus({preventScroll:!0}),K[W].click(),D()},D=()=>{h.value&&(y.value=!0)},$=()=>y.value=!1,A=(M,F)=>{f.value[F]=M},O=async()=>{await e.nextTick();const M=f.value[t.currentName];M==null||M.focus({preventScroll:!0})};return e.watch(s,M=>{M==="hidden"?h.value=!1:M==="visible"&&setTimeout(()=>h.value=!0,50)}),e.watch(i,M=>{M?setTimeout(()=>h.value=!0,50):h.value=!1}),a.useResizeObserver(d,j),e.onMounted(()=>setTimeout(()=>R(),0)),e.onUpdated(()=>j()),n({scrollToActiveTab:R,removeFocus:$,focusActiveTab:O,tabListRef:u,tabBarRef:p,scheduleRender:()=>e.triggerRef(g)}),()=>{const M=v.value?[e.createVNode("span",{class:[r.e("nav-prev"),r.is("disabled",!v.value.prev)],onClick:N},[e.createVNode(a.ElIcon,null,{default:()=>[e.createVNode(a.arrow_left_default,null,null)]})]),e.createVNode("span",{class:[r.e("nav-next"),r.is("disabled",!v.value.next)],onClick:V},[e.createVNode(a.ElIcon,null,{default:()=>[e.createVNode(a.arrow_right_default,null,null)]})])]:null,F=t.panes.map((x,K)=>{var Y,W,te,re,Q;const X=x.uid,G=x.props.disabled,I=(W=(Y=x.props.name)!=null?Y:x.index)!=null?W:`${K}`,H=!G&&(x.isClosable||x.props.closable!==!1&&t.editable);x.index=`${K}`;const Z=H?e.createVNode(a.ElIcon,{class:"is-icon-close",onClick:oe=>o("tabRemove",x,oe)},{default:()=>[e.createVNode(a.close_default,null,null)]}):null,J=((re=(te=x.slots).label)==null?void 0:re.call(te))||x.props.label,le=!G&&x.active?(Q=t.tabindex)!=null?Q:l.props.tabindex:-1;return e.createVNode("div",{ref:oe=>A(oe,I),class:[r.e("item"),r.is(l.props.tabPosition),r.is("active",x.active),r.is("disabled",G),r.is("closable",H),r.is("focus",y.value)],id:`tab-${I}`,key:`tab-${X}`,"aria-controls":`pane-${I}`,role:"tab","aria-selected":x.active,tabindex:le,onFocus:()=>D(),onBlur:()=>$(),onClick:oe=>{$(),o("tabClick",x,I,oe)},onKeydown:oe=>{const ee=a.getEventCode(oe);H&&(ee===a.EVENT_CODE.delete||ee===a.EVENT_CODE.backspace)&&o("tabRemove",x,oe)}},[J,Z])});return g.value,e.createVNode("div",{ref:d,class:[r.e("nav-wrap"),r.is("scrollable",!!v.value),r.is(l.props.tabPosition)]},[M,e.createVNode("div",{class:r.e("nav-scroll"),ref:c},[t.panes.length>0?e.createVNode("div",{class:[r.e("nav"),r.is(l.props.tabPosition),r.is("stretch",t.stretch&&["top","bottom"].includes(l.props.tabPosition))],ref:u,style:k.value,role:"tablist",onKeydown:q,onWheel:T},[t.type?null:e.createVNode(ZD,{ref:p,tabs:[...t.panes],tabRefs:f.value},null),F]):null])])}}}),nI=a.buildProps({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:a.definePropType(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),Gr=t=>a.isString(t)||a.isNumber(t),oI={[L.UPDATE_MODEL_EVENT]:t=>Gr(t),tabClick:(t,n)=>n instanceof Event,tabChange:t=>Gr(t),edit:(t,n)=>["remove","add"].includes(n),tabRemove:t=>Gr(t),tabAdd:()=>!0},lI=e.defineComponent({name:"ElTabs",props:nI,emits:oI,setup(t,{emit:n,slots:o,expose:l}){var r;const s=a.useNamespace("tabs"),i=e.computed(()=>["left","right"].includes(t.tabPosition)),{children:c,addChild:u,removeChild:d,ChildrenSorter:f}=Cr(e.getCurrentInstance(),"ElTabPane"),p=e.ref(),v=e.ref((r=t.modelValue)!=null?r:"0"),m=async(k,b=!1)=>{var w,S,_,P;if(!(v.value===k||a.isUndefined(k)))try{let B;if(t.beforeLeave){const T=t.beforeLeave(k,v.value);B=T instanceof Promise?await T:T}else B=!0;if(B!==!1){const T=(w=c.value.find(N=>N.paneName===v.value))==null?void 0:w.isFocusInsidePane();v.value=k,b&&(n(L.UPDATE_MODEL_EVENT,k),n("tabChange",k)),(_=(S=p.value)==null?void 0:S.removeFocus)==null||_.call(S),T&&((P=p.value)==null||P.focusActiveTab())}}catch{}},y=(k,b,w)=>{k.props.disabled||(n("tabClick",k,w),m(b,!0))},h=(k,b)=>{k.props.disabled||a.isUndefined(k.props.name)||(b.stopPropagation(),n("edit",k.props.name,"remove"),n("tabRemove",k.props.name))},g=()=>{n("edit",void 0,"add"),n("tabAdd")},C=k=>{const b=a.getEventCode(k);[a.EVENT_CODE.enter,a.EVENT_CODE.numpadEnter].includes(b)&&g()},E=k=>{const b=k.el.firstChild,w=["bottom","right"].includes(t.tabPosition)?k.children[0].el:k.children[1].el;b!==w&&b.before(w)};return e.watch(()=>t.modelValue,k=>m(k)),e.watch(v,async()=>{var k;await e.nextTick(),(k=p.value)==null||k.scrollToActiveTab()}),e.provide(Tr,{props:t,currentName:v,registerPane:u,unregisterPane:d,nav$:p}),l({currentName:v,get tabNavRef(){return gr(p.value,["scheduleRender"])}}),()=>{const k=o["add-icon"],b=t.editable||t.addable?e.createVNode("div",{class:[s.e("new-tab"),i.value&&s.e("new-tab-vertical")],tabindex:t.tabindex,onClick:g,onKeydown:C},[k?e.renderSlot(o,"add-icon"):e.createVNode(a.ElIcon,{class:s.is("icon-plus")},{default:()=>[e.createVNode(a.plus_default,null,null)]})]):null,w=()=>e.createVNode(tI,{ref:p,currentName:v.value,editable:t.editable,type:t.type,panes:c.value,stretch:t.stretch,onTabClick:y,onTabRemove:h},null),S=e.createVNode("div",{class:[s.e("header"),i.value&&s.e("header-vertical"),s.is(t.tabPosition)]},[e.createVNode(f,null,{default:w,$stable:!0}),b]),_=e.createVNode("div",{class:s.e("content")},[e.renderSlot(o,"default")]);return e.createVNode("div",{class:[s.b(),s.m(t.tabPosition),{[s.m("card")]:t.type==="card",[s.m("border-card")]:t.type==="border-card"}],onVnodeMounted:E,onVnodeUpdated:E},[_,S])}}});var aI=lI;const rI=a.buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Ah="ElTabPane",sI=e.defineComponent({name:Ah}),iI=e.defineComponent({...sI,props:rI,setup(t){const n=t,o=e.getCurrentInstance(),l=e.useSlots(),r=e.inject(Tr);r||a.throwError(Ah,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const s=a.useNamespace("tab-pane"),i=e.ref(),c=e.ref(),u=e.computed(()=>{var h;return(h=n.closable)!=null?h:r.props.closable}),d=a.computedEager(()=>{var h;return r.currentName.value===((h=n.name)!=null?h:c.value)}),f=e.ref(d.value),p=e.computed(()=>{var h;return(h=n.name)!=null?h:c.value}),v=a.computedEager(()=>!n.lazy||f.value||d.value),m=()=>{var h;return(h=i.value)==null?void 0:h.contains(document.activeElement)};e.watch(d,h=>{h&&(f.value=!0)});const y=e.reactive({uid:o.uid,getVnode:()=>o.vnode,slots:l,props:n,paneName:p,active:d,index:c,isClosable:u,isFocusInsidePane:m});return r.registerPane(y),e.onBeforeUnmount(()=>{r.unregisterPane(y)}),e.onBeforeUpdate(()=>{var h;l.label&&((h=r.nav$.value)==null||h.scheduleRender())}),(h,g)=>e.unref(v)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,id:`pane-${e.unref(p)}`,ref_key:"paneRef",ref:i,class:e.normalizeClass(e.unref(s).b()),role:"tabpanel","aria-hidden":!e.unref(d),"aria-labelledby":`tab-${e.unref(p)}`},[e.renderSlot(h.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[e.vShow,e.unref(d)]]):e.createCommentVNode("v-if",!0)}});var zh=a._export_sfc(iI,[["__file","tab-pane.vue"]]);const cI=a.withInstall(aI,{TabPane:zh}),uI=a.withNoopInstall(zh),dI=a.buildProps({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:a.componentSizes,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),fI=e.defineComponent({name:"ElText"}),pI=e.defineComponent({...fI,props:dI,setup(t){const n=t,o=e.ref(),l=L.useFormSize(),r=a.useNamespace("text"),s=e.computed(()=>[r.b(),r.m(n.type),r.m(l.value),r.is("truncated",n.truncated),r.is("line-clamp",!a.isUndefined(n.lineClamp))]),i=()=>{var c,u,d,f,p,v,m;if(e.useAttrs().title)return;let h=!1;const g=((c=o.value)==null?void 0:c.textContent)||"";if(n.truncated){const C=(u=o.value)==null?void 0:u.offsetWidth,E=(d=o.value)==null?void 0:d.scrollWidth;C&&E&&E>C&&(h=!0)}else if(!a.isUndefined(n.lineClamp)){const C=(f=o.value)==null?void 0:f.offsetHeight,E=(p=o.value)==null?void 0:p.scrollHeight;C&&E&&E>C&&(h=!0)}h?(v=o.value)==null||v.setAttribute("title",g):(m=o.value)==null||m.removeAttribute("title")};return e.onMounted(i),e.onUpdated(i),(c,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.tag),{ref_key:"textRef",ref:o,class:e.normalizeClass(e.unref(s)),style:e.normalizeStyle({"-webkit-line-clamp":c.lineClamp})},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["class","style"]))}});var mI=a._export_sfc(pI,[["__file","text.vue"]]);const Xi=a.withInstall(mI),hI=a.buildProps({format:{type:String,default:"HH:mm"},modelValue:{type:a.definePropType(String)},disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:a.definePropType(String),default:"light"},clearable:{type:Boolean,default:!0},size:a.useSizeProp,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:a.definePropType(String)},maxTime:{type:a.definePropType(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:a.definePropType([String,Object]),default:()=>a.clock_default},clearIcon:{type:a.definePropType([String,Object]),default:()=>a.circle_close_default},popperClass:{type:String,default:""},popperStyle:{type:a.definePropType([String,Object])},...a.useEmptyValuesProps}),En=t=>{const n=(t||"").split(":");if(n.length>=2){let o=Number.parseInt(n[0],10);const l=Number.parseInt(n[1],10),r=t.toUpperCase();return r.includes("AM")&&o===12?o=0:r.includes("PM")&&o!==12&&(o+=12),{hours:o,minutes:l}}return null},Xr=(t,n)=>{const o=En(t);if(!o)return-1;const l=En(n);if(!l)return-1;const r=o.minutes+o.hours*60,s=l.minutes+l.hours*60;return r===s?0:r>s?1:-1},of=t=>`${t}`.padStart(2,"0"),go=t=>`${of(t.hours)}:${of(t.minutes)}`,vI=(t,n)=>{const o=En(t);if(!o)return"";const l=En(n);if(!l)return"";const r={hours:o.hours,minutes:o.minutes};return r.minutes+=l.minutes,r.hours+=l.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,go(r)},gI=e.defineComponent({name:"ElTimeSelect"}),yI=e.defineComponent({...gI,props:hI,emits:[L.CHANGE_EVENT,"blur","focus","clear",L.UPDATE_MODEL_EVENT],setup(t,{expose:n}){const o=t;me.dayjs.extend(pi);const{Option:l}=ao,r=a.useNamespace("input"),s=e.ref(),i=L.useFormDisabled(),{lang:c}=a.useLocale(),u=e.computed(()=>o.modelValue),d=e.computed(()=>{const C=En(o.start);return C?go(C):null}),f=e.computed(()=>{const C=En(o.end);return C?go(C):null}),p=e.computed(()=>{const C=En(o.step);return C?go(C):null}),v=e.computed(()=>{const C=En(o.minTime||"");return C?go(C):null}),m=e.computed(()=>{const C=En(o.maxTime||"");return C?go(C):null}),y=e.computed(()=>{var C;const E=[],k=(b,w)=>{E.push({value:b,disabled:Xr(w,v.value||"-1:-1")<=0||Xr(w,m.value||"100:100")>=0})};if(o.start&&o.end&&o.step){let b=d.value,w;for(;b&&f.value&&Xr(b,f.value)<=0;)w=me.dayjs(b,"HH:mm").locale(c.value).format(o.format),k(w,b),b=vI(b,p.value);if(o.includeEndTime&&f.value&&((C=E[E.length-1])==null?void 0:C.value)!==f.value){const S=me.dayjs(f.value,"HH:mm").locale(c.value).format(o.format);k(S,f.value)}}return E});return n({blur:()=>{var C,E;(E=(C=s.value)==null?void 0:C.blur)==null||E.call(C)},focus:()=>{var C,E;(E=(C=s.value)==null?void 0:C.focus)==null||E.call(C)}}),(C,E)=>(e.openBlock(),e.createBlock(e.unref(ao),{ref_key:"select",ref:s,"model-value":e.unref(u),disabled:e.unref(i),clearable:C.clearable,"clear-icon":C.clearIcon,size:C.size,effect:C.effect,placeholder:C.placeholder,"default-first-option":"",filterable:C.editable,"empty-values":C.emptyValues,"value-on-clear":C.valueOnClear,"popper-class":C.popperClass,"popper-style":C.popperStyle,"onUpdate:modelValue":k=>C.$emit(e.unref(L.UPDATE_MODEL_EVENT),k),onChange:k=>C.$emit(e.unref(L.CHANGE_EVENT),k),onBlur:k=>C.$emit("blur",k),onFocus:k=>C.$emit("focus",k),onClear:()=>C.$emit("clear")},{prefix:e.withCtx(()=>[C.prefixIcon?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass(e.unref(r).e("prefix-icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.prefixIcon)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),k=>(e.openBlock(),e.createBlock(e.unref(l),{key:k.value,label:k.value,value:k.value,disabled:k.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var bI=a._export_sfc(yI,[["__file","time-select.vue"]]);const CI=a.withInstall(bI),kI="timeline",EI=e.defineComponent({name:"ElTimeline",setup(t,{slots:n}){const o=a.useNamespace("timeline");return e.provide(kI,n),()=>e.h("ul",{class:[o.b()]},[e.renderSlot(n,"default")])}}),wI=a.buildProps({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:a.iconPropType},hollow:Boolean}),SI=e.defineComponent({name:"ElTimelineItem"}),NI=e.defineComponent({...SI,props:wI,setup(t){const n=t,o=a.useNamespace("timeline-item"),l=e.computed(()=>[o.e("node"),o.em("node",n.size||""),o.em("node",n.type||""),o.is("hollow",n.hollow)]);return(r,s)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([e.unref(o).b(),{[e.unref(o).e("center")]:r.center}])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("tail"))},null,2),r.$slots.dot?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l)),style:e.normalizeStyle({backgroundColor:r.color})},[r.icon?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass(e.unref(o).e("icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0)],6)),r.$slots.dot?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).e("dot"))},[e.renderSlot(r.$slots,"dot")],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(o).e("timestamp"),e.unref(o).is("top")])},e.toDisplayString(r.timestamp),3)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("content"))},[e.renderSlot(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(o).e("timestamp"),e.unref(o).is("bottom")])},e.toDisplayString(r.timestamp),3)):e.createCommentVNode("v-if",!0)],2)],2))}});var Rh=a._export_sfc(NI,[["__file","timeline-item.vue"]]);const TI=a.withInstall(EI,{TimelineItem:Rh}),_I=a.withNoopInstall(Rh),Lh="left-check-change",Fh="right-check-change",yo=a.buildProps({data:{type:a.definePropType(Array),default:()=>[]},titles:{type:a.definePropType(Array),default:()=>[]},buttonTexts:{type:a.definePropType(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:a.definePropType(Function)},leftDefaultChecked:{type:a.definePropType(Array),default:()=>[]},rightDefaultChecked:{type:a.definePropType(Array),default:()=>[]},renderContent:{type:a.definePropType(Function)},modelValue:{type:a.definePropType(Array),default:()=>[]},format:{type:a.definePropType(Object),default:()=>({})},filterable:Boolean,props:{type:a.definePropType(Object),default:()=>a.mutable({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Rs=(t,n)=>[t,n].every(a.isArray$1)||a.isArray$1(t)&&a.isNil(n),BI={[L.CHANGE_EVENT]:(t,n,o)=>[t,o].every(a.isArray$1)&&["left","right"].includes(n),[L.UPDATE_MODEL_EVENT]:t=>a.isArray$1(t),[Lh]:Rs,[Fh]:Rs},Ls="checked-change",PI=a.buildProps({data:yo.data,optionRender:{type:a.definePropType(Function)},placeholder:String,title:String,filterable:Boolean,format:yo.format,filterMethod:yo.filterMethod,defaultChecked:yo.leftDefaultChecked,props:yo.props}),VI={[Ls]:Rs},ia=t=>{const n={label:"label",key:"key",disabled:"disabled"};return e.computed(()=>({...n,...t.props}))},DI=(t,n,o)=>{const l=ia(t),r=e.computed(()=>t.data.filter(f=>a.isFunction(t.filterMethod)?t.filterMethod(n.query,f):String(f[l.value.label]||f[l.value.key]).toLowerCase().includes(n.query.toLowerCase()))),s=e.computed(()=>r.value.filter(f=>!f[l.value.disabled])),i=e.computed(()=>{const f=n.checked.length,p=t.data.length,{noChecked:v,hasChecked:m}=t.format;return v&&m?f>0?m.replace(/\${checked}/g,f.toString()).replace(/\${total}/g,p.toString()):v.replace(/\${total}/g,p.toString()):`${f}/${p}`}),c=e.computed(()=>{const f=n.checked.length;return f>0&&f<s.value.length}),u=()=>{const f=s.value.map(p=>p[l.value.key]);n.allChecked=f.length>0&&f.every(p=>n.checked.includes(p))},d=f=>{n.checked=f?s.value.map(p=>p[l.value.key]):[]};return e.watch(()=>n.checked,(f,p)=>{if(u(),n.checkChangeByUser){const v=f.concat(p).filter(m=>!f.includes(m)||!p.includes(m));o(Ls,f,v)}else o(Ls,f),n.checkChangeByUser=!0}),e.watch(s,()=>{u()}),e.watch(()=>t.data,()=>{const f=[],p=r.value.map(v=>v[l.value.key]);n.checked.forEach(v=>{p.includes(v)&&f.push(v)}),n.checkChangeByUser=!1,n.checked=f}),e.watch(()=>t.defaultChecked,(f,p)=>{if(p&&f.length===p.length&&f.every(y=>p.includes(y)))return;const v=[],m=s.value.map(y=>y[l.value.key]);f.forEach(y=>{m.includes(y)&&v.push(y)}),n.checkChangeByUser=!1,n.checked=v},{immediate:!0}),{filteredData:r,checkableData:s,checkedSummary:i,isIndeterminate:c,updateAllChecked:u,handleAllCheckedChange:d}},II=e.defineComponent({name:"ElTransferPanel"}),OI=e.defineComponent({...II,props:PI,emits:VI,setup(t,{expose:n,emit:o}){const l=t,r=e.useSlots(),s=({option:k})=>k,{t:i}=a.useLocale(),c=a.useNamespace("transfer"),u=e.reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=ia(l),{filteredData:f,checkedSummary:p,isIndeterminate:v,handleAllCheckedChange:m}=DI(l,u,o),y=e.computed(()=>!a.isEmpty(u.query)&&a.isEmpty(f.value)),h=e.computed(()=>!a.isEmpty(r.default()[0].children)),{checked:g,allChecked:C,query:E}=e.toRefs(u);return n({query:E}),(k,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(c).b("panel"))},[e.createElementVNode("p",{class:e.normalizeClass(e.unref(c).be("panel","header"))},[e.createVNode(e.unref(Jt),{modelValue:e.unref(C),"onUpdate:modelValue":w=>e.isRef(C)?C.value=w:null,indeterminate:e.unref(v),"validate-event":!1,onChange:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.title)+" ",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(p)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(c).be("panel","body"),e.unref(c).is("with-footer",e.unref(h))])},[k.filterable?(e.openBlock(),e.createBlock(e.unref(L.ElInput),{key:0,modelValue:e.unref(E),"onUpdate:modelValue":w=>e.isRef(E)?E.value=w:null,class:e.normalizeClass(e.unref(c).be("panel","filter")),size:"default",placeholder:k.placeholder,"prefix-icon":e.unref(a.search_default),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(e.unref(_p),{modelValue:e.unref(g),"onUpdate:modelValue":w=>e.isRef(g)?g.value=w:null,"validate-event":!1,class:e.normalizeClass([e.unref(c).is("filterable",k.filterable),e.unref(c).be("panel","list")])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),w=>(e.openBlock(),e.createBlock(e.unref(Jt),{key:w[e.unref(d).key],class:e.normalizeClass(e.unref(c).be("panel","item")),value:w[e.unref(d).key],disabled:w[e.unref(d).disabled],"validate-event":!1},{default:e.withCtx(()=>{var S;return[e.createVNode(s,{option:(S=k.optionRender)==null?void 0:S.call(k,w)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[e.vShow,!e.unref(y)&&!e.unref(a.isEmpty)(k.data)]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).be("panel","empty"))},[e.renderSlot(k.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(y)?e.unref(i)("el.transfer.noMatch"):e.unref(i)("el.transfer.noData")),1)])],2),[[e.vShow,e.unref(y)||e.unref(a.isEmpty)(k.data)]])],2),e.unref(h)?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(c).be("panel","footer"))},[e.renderSlot(k.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],2))}});var lf=a._export_sfc(OI,[["__file","transfer-panel.vue"]]);const $I=t=>{const n=ia(t),o=e.computed(()=>t.data.reduce((s,i)=>(s[i[n.value.key]]=i)&&s,{})),l=e.computed(()=>t.data.filter(s=>!t.modelValue.includes(s[n.value.key]))),r=e.computed(()=>t.targetOrder==="original"?t.data.filter(s=>t.modelValue.includes(s[n.value.key])):t.modelValue.reduce((s,i)=>{const c=o.value[i];return c&&s.push(c),s},[]));return{sourceData:l,targetData:r}},MI=(t,n,o)=>{const l=ia(t),r=(c,u,d)=>{o(L.UPDATE_MODEL_EVENT,c),o(L.CHANGE_EVENT,c,u,d)};return{addToLeft:()=>{const c=t.modelValue.slice();n.rightChecked.forEach(u=>{const d=c.indexOf(u);d>-1&&c.splice(d,1)}),r(c,"left",n.rightChecked)},addToRight:()=>{let c=t.modelValue.slice();const u=t.data.filter(d=>{const f=d[l.value.key];return n.leftChecked.includes(f)&&!t.modelValue.includes(f)}).map(d=>d[l.value.key]);c=t.targetOrder==="unshift"?u.concat(c):c.concat(u),t.targetOrder==="original"&&(c=t.data.filter(d=>c.includes(d[l.value.key])).map(d=>d[l.value.key])),r(c,"right",n.leftChecked)}}},xI=(t,n)=>({onSourceCheckedChange:(r,s)=>{t.leftChecked=r,s&&n(Lh,r,s)},onTargetCheckedChange:(r,s)=>{t.rightChecked=r,s&&n(Fh,r,s)}}),AI=e.defineComponent({name:"ElTransfer"}),zI=e.defineComponent({...AI,props:yo,emits:BI,setup(t,{expose:n,emit:o}){const l=t,r=e.useSlots(),{t:s}=a.useLocale(),i=a.useNamespace("transfer"),{formItem:c}=L.useFormItem(),u=e.reactive({leftChecked:[],rightChecked:[]}),d=ia(l),{sourceData:f,targetData:p}=$I(l),{onSourceCheckedChange:v,onTargetCheckedChange:m}=xI(u,o),{addToLeft:y,addToRight:h}=MI(l,u,o),g=e.ref(),C=e.ref(),E=P=>{switch(P){case"left":g.value.query="";break;case"right":C.value.query="";break}},k=e.computed(()=>l.buttonTexts.length===2),b=e.computed(()=>l.titles[0]||s("el.transfer.titles.0")),w=e.computed(()=>l.titles[1]||s("el.transfer.titles.1")),S=e.computed(()=>l.filterPlaceholder||s("el.transfer.filterPlaceholder"));e.watch(()=>l.modelValue,()=>{var P;l.validateEvent&&((P=c==null?void 0:c.validate)==null||P.call(c,"change").catch(B=>a.debugWarn(B)))});const _=e.computed(()=>P=>{var B;if(l.renderContent)return l.renderContent(e.h,P);const T=(((B=r.default)==null?void 0:B.call(r,{option:P}))||[]).filter(N=>N.type!==e.Comment);return T.length?T:e.h("span",P[d.value.label]||P[d.value.key])});return n({clearQuery:E,leftPanel:g,rightPanel:C}),(P,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i).b())},[e.createVNode(lf,{ref_key:"leftPanel",ref:g,data:e.unref(f),"option-render":e.unref(_),placeholder:e.unref(S),title:e.unref(b),filterable:P.filterable,format:P.format,"filter-method":P.filterMethod,"default-checked":P.leftDefaultChecked,props:l.props,onCheckedChange:e.unref(v)},{empty:e.withCtx(()=>[e.renderSlot(P.$slots,"left-empty")]),default:e.withCtx(()=>[e.renderSlot(P.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i).e("buttons"))},[e.createVNode(e.unref(L.ElButton),{type:"primary",class:e.normalizeClass([e.unref(i).e("button"),e.unref(i).is("with-texts",e.unref(k))]),disabled:e.unref(a.isEmpty)(u.rightChecked),onClick:e.unref(y)},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(a.arrow_left_default))]),_:1}),e.unref(a.isUndefined)(P.buttonTexts[0])?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(P.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),e.createVNode(e.unref(L.ElButton),{type:"primary",class:e.normalizeClass([e.unref(i).e("button"),e.unref(i).is("with-texts",e.unref(k))]),disabled:e.unref(a.isEmpty)(u.leftChecked),onClick:e.unref(h)},{default:e.withCtx(()=>[e.unref(a.isUndefined)(P.buttonTexts[1])?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(P.buttonTexts[1]),1)),e.createVNode(e.unref(a.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(a.arrow_right_default))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),e.createVNode(lf,{ref_key:"rightPanel",ref:C,data:e.unref(p),"option-render":e.unref(_),placeholder:e.unref(S),filterable:P.filterable,format:P.format,"filter-method":P.filterMethod,title:e.unref(w),"default-checked":P.rightDefaultChecked,props:l.props,onCheckedChange:e.unref(m)},{empty:e.withCtx(()=>[e.renderSlot(P.$slots,"right-empty")]),default:e.withCtx(()=>[e.renderSlot(P.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var RI=a._export_sfc(zI,[["__file","transfer.vue"]]);const LI=a.withInstall(RI),wo="$treeNodeId",af=function(t,n){!n||n[wo]||Object.defineProperty(n,wo,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},Ji=(t,n)=>n==null?void 0:n[t||wo],Fs=(t,n,o)=>{const l=t.value.currentNode;o();const r=t.value.currentNode;l!==r&&n("current-change",r?r.data:null,r)},Ks=t=>{let n=!0,o=!0,l=!0;for(let r=0,s=t.length;r<s;r++){const i=t[r];(i.checked!==!0||i.indeterminate)&&(n=!1,i.disabled||(l=!1)),(i.checked!==!1||i.indeterminate)&&(o=!1)}return{all:n,none:o,allWithoutDisable:l,half:!n&&!o}},Vl=function(t){if(t.childNodes.length===0||t.loading)return;const{all:n,none:o,half:l}=Ks(t.childNodes);n?(t.checked=!0,t.indeterminate=!1):l?(t.checked=!1,t.indeterminate=!0):o&&(t.checked=!1,t.indeterminate=!1);const r=t.parent;!r||r.level===0||t.store.checkStrictly||Vl(r)},ya=function(t,n){const o=t.store.props,l=t.data||{},r=o[n];if(a.isFunction(r))return r(l,t);if(a.isString(r))return l[r];if(a.isUndefined(r)){const s=l[n];return a.isUndefined(s)?"":s}},Hs=function(t,n){t.forEach(o=>{o.canFocus=n,Hs(o.childNodes,n)})};let FI=0,js=class ja{constructor(n){this.isLeafByUser=void 0,this.isLeaf=void 0,this.id=FI++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const o in n)a.hasOwn(n,o)&&(this[o]=n[o]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var n;const o=this.store;if(!o)throw new Error("[Node]store is required!");o.registerNode(this);const l=o.props;if(l&&typeof l.isLeaf<"u"){const i=ya(this,"isLeaf");a.isBoolean(i)&&(this.isLeafByUser=i)}if(o.lazy!==!0&&this.data?(this.setData(this.data),o.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&o.lazy&&o.defaultExpandAll&&!this.isLeafByUser&&this.expand(),a.isArray$1(this.data)||af(this,this.data),!this.data)return;const r=o.defaultExpandedKeys,s=o.key;s&&!a.isNil(this.key)&&r&&r.includes(this.key)&&this.expand(null,o.autoExpandParent),s&&o.currentNodeKey!==void 0&&this.key===o.currentNodeKey&&(o.currentNode=this,o.currentNode.isCurrent=!0),o.lazy&&o._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((n=this.parent)==null?void 0:n.expanded)===!0)&&(this.canFocus=!0)}setData(n){a.isArray$1(n)||af(this,n),this.data=n,this.childNodes=[];let o;this.level===0&&a.isArray$1(this.data)?o=this.data:o=ya(this,"children")||[];for(let l=0,r=o.length;l<r;l++)this.insertChild({data:o[l]})}get label(){return ya(this,"label")}get key(){const n=this.store.key;return this.data?this.data[n]:null}get disabled(){return ya(this,"disabled")}get nextSibling(){const n=this.parent;if(n){const o=n.childNodes.indexOf(this);if(o>-1)return n.childNodes[o+1]}return null}get previousSibling(){const n=this.parent;if(n){const o=n.childNodes.indexOf(this);if(o>-1)return o>0?n.childNodes[o-1]:null}return null}contains(n,o=!0){return(this.childNodes||[]).some(l=>l===n||o&&l.contains(n))}remove(){const n=this.parent;n&&n.removeChild(this)}insertChild(n,o,l){if(!n)throw new Error("InsertChild error: child is required.");if(!(n instanceof ja)){if(!l){const r=this.getChildren(!0);r!=null&&r.includes(n.data)||(a.isUndefined(o)||o<0?r==null||r.push(n.data):r==null||r.splice(o,0,n.data))}Object.assign(n,{parent:this,store:this.store}),n=e.reactive(new ja(n)),n instanceof ja&&n.initialize()}n.level=this.level+1,a.isUndefined(o)||o<0?this.childNodes.push(n):this.childNodes.splice(o,0,n),this.updateLeafState()}insertBefore(n,o){let l;o&&(l=this.childNodes.indexOf(o)),this.insertChild(n,l)}insertAfter(n,o){let l;o&&(l=this.childNodes.indexOf(o),l!==-1&&(l+=1)),this.insertChild(n,l)}removeChild(n){const o=this.getChildren()||[],l=o.indexOf(n.data);l>-1&&o.splice(l,1);const r=this.childNodes.indexOf(n);r>-1&&(this.store&&this.store.deregisterNode(n),n.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(n){let o=null;for(let l=0;l<this.childNodes.length;l++)if(this.childNodes[l].data===n){o=this.childNodes[l];break}o&&this.removeChild(o)}expand(n,o){const l=()=>{if(o){let r=this.parent;for(;r&&r.level>0;)r.expanded=!0,r=r.parent}this.expanded=!0,n&&n(),Hs(this.childNodes,!0)};this.shouldLoadData()?this.loadData(r=>{a.isArray$1(r)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Vl(this),l())}):l()}doCreateChildren(n,o={}){n.forEach(l=>{this.insertChild(Object.assign({data:l},o),void 0,!0)})}collapse(){this.expanded=!1,Hs(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const n=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!n||n.length===0;return}this.isLeaf=!1}setChecked(n,o,l,r){if(this.indeterminate=n==="half",this.checked=n===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:i,allWithoutDisable:c}=Ks(this.childNodes);!this.isLeaf&&!i&&c&&(this.checked=!1,n=!1);const u=()=>{if(o){const d=this.childNodes;for(let v=0,m=d.length;v<m;v++){const y=d[v];r=r||n!==!1;const h=y.disabled?y.checked:r;y.setChecked(h,o,!0,r)}const{half:f,all:p}=Ks(d);p||(this.checked=p,this.indeterminate=f)}};if(this.shouldLoadData()){this.loadData(()=>{u(),Vl(this)},{checked:n!==!1});return}else u()}const s=this.parent;!s||s.level===0||l||Vl(s)}getChildren(n=!1){if(this.level===0)return this.data;const o=this.data;if(!o)return null;const l=this.store.props;let r="children";return l&&(r=l.children||"children"),a.isUndefined(o[r])&&(o[r]=null),n&&!o[r]&&(o[r]=[]),o[r]}updateChildren(){const n=this.getChildren()||[],o=this.childNodes.map(s=>s.data),l={},r=[];n.forEach((s,i)=>{const c=s[wo];!!c&&o.some(d=>(d==null?void 0:d[wo])===c)?l[c]={index:i,data:s}:r.push({index:i,data:s})}),this.store.lazy||o.forEach(s=>{l[s==null?void 0:s[wo]]||this.removeChildByData(s)}),r.forEach(({index:s,data:i})=>{this.insertChild({data:i},s)}),this.updateLeafState()}loadData(n,o={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(o).length)){this.loading=!0;const l=s=>{this.childNodes=[],this.doCreateChildren(s,o),this.loaded=!0,this.loading=!1,this.updateLeafState(),n&&n.call(this,s)},r=()=>{this.loading=!1};this.store.load(this,l,r)}else n&&n.call(this)}eachNode(n){const o=[this];for(;o.length;){const l=o.shift();o.unshift(...l.childNodes),n(l)}}reInitChecked(){this.store.checkStrictly||Vl(this)}};class KI{constructor(n){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const o in n)a.hasOwn(n,o)&&(this[o]=n[o]);this.nodesMap={}}initialize(){if(this.root=new js({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const n=this.load;n(this.root,o=>{this.root.doCreateChildren(o),this._initDefaultCheckedNodes()},a.NOOP)}else this._initDefaultCheckedNodes()}filter(n){const o=this.filterNodeMethod,l=this.lazy,r=async function(s){const i=s.root?s.root.childNodes:s.childNodes;for(const[c,u]of i.entries())u.visible=!!(o!=null&&o.call(u,n,u.data,u)),c%80===0&&c>0&&await e.nextTick(),await r(u);if(!s.visible&&i.length){let c=!0;c=!i.some(u=>u.visible),s.root?s.root.visible=c===!1:s.visible=c===!1}n&&s.visible&&!s.isLeaf&&(!l||s.loaded)&&s.expand()};r(this)}setData(n){n!==this.root.data?(this.nodesMap={},this.root.setData(n),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(n){if(n instanceof js)return n;const o=a.isObject$1(n)?Ji(this.key,n):n;return this.nodesMap[o]||null}insertBefore(n,o){var l;const r=this.getNode(o);(l=r.parent)==null||l.insertBefore({data:n},r)}insertAfter(n,o){var l;const r=this.getNode(o);(l=r.parent)==null||l.insertAfter({data:n},r)}remove(n){const o=this.getNode(n);o&&o.parent&&(o===this.currentNode&&(this.currentNode=null),o.parent.removeChild(o))}append(n,o){const l=a.isPropAbsent(o)?this.root:this.getNode(o);l&&l.insertChild({data:n})}_initDefaultCheckedNodes(){const n=this.defaultCheckedKeys||[],o=this.nodesMap;n.forEach(l=>{const r=o[l];r&&r.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(n){const o=this.defaultCheckedKeys||[];!a.isNil(n.key)&&o.includes(n.key)&&n.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(n){n!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=n,this._initDefaultCheckedNodes())}registerNode(n){const o=this.key;if(!(!n||!n.data))if(!o)this.nodesMap[n.id]=n;else{const l=n.key;a.isNil(l)||(this.nodesMap[l]=n)}}deregisterNode(n){!this.key||!n||!n.data||(n.childNodes.forEach(l=>{this.deregisterNode(l)}),delete this.nodesMap[n.key])}getCheckedNodes(n=!1,o=!1){const l=[],r=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(c=>{(c.checked||o&&c.indeterminate)&&(!n||n&&c.isLeaf)&&l.push(c.data),r(c)})};return r(this),l}getCheckedKeys(n=!1){return this.getCheckedNodes(n).map(o=>(o||{})[this.key])}getHalfCheckedNodes(){const n=[],o=function(l){(l.root?l.root.childNodes:l.childNodes).forEach(s=>{s.indeterminate&&n.push(s.data),o(s)})};return o(this),n}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(n=>(n||{})[this.key])}_getAllNodes(){const n=[],o=this.nodesMap;for(const l in o)a.hasOwn(o,l)&&n.push(o[l]);return n}updateChildren(n,o){const l=this.nodesMap[n];if(!l)return;const r=l.childNodes;for(let s=r.length-1;s>=0;s--){const i=r[s];this.remove(i.data)}for(let s=0,i=o.length;s<i;s++){const c=o[s];this.append(c,l.data)}}_setCheckedKeys(n,o=!1,l){const r=this._getAllNodes().sort((u,d)=>u.level-d.level),s=Object.create(null),i=Object.keys(l);r.forEach(u=>u.setChecked(!1,!1));const c=u=>{u.childNodes.forEach(d=>{var f;s[d.data[n]]=!0,(f=d.childNodes)!=null&&f.length&&c(d)})};for(let u=0,d=r.length;u<d;u++){const f=r[u],p=f.data[n].toString();if(!i.includes(p)){f.checked&&!s[p]&&f.setChecked(!1,!1);continue}if(f.childNodes.length&&c(f),f.isLeaf||this.checkStrictly){f.setChecked(!0,!1);continue}if(f.setChecked(!0,!0),o){f.setChecked(!1,!1);const m=function(y){y.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),m(g)})};m(f)}}}setCheckedNodes(n,o=!1){const l=this.key,r={};n.forEach(s=>{r[(s||{})[l]]=!0}),this._setCheckedKeys(l,o,r)}setCheckedKeys(n,o=!1){this.defaultCheckedKeys=n;const l=this.key,r={};n.forEach(s=>{r[s]=!0}),this._setCheckedKeys(l,o,r)}setDefaultExpandedKeys(n){n=n||[],this.defaultExpandedKeys=n,n.forEach(o=>{const l=this.getNode(o);l&&l.expand(null,this.autoExpandParent)})}setChecked(n,o,l){const r=this.getNode(n);r&&r.setChecked(!!o,l)}getCurrentNode(){return this.currentNode}setCurrentNode(n){const o=this.currentNode;o&&(o.isCurrent=!1),this.currentNode=n,this.currentNode.isCurrent=!0}setUserCurrentNode(n,o=!0){var l;const r=n[this.key],s=this.nodesMap[r];this.setCurrentNode(s),o&&this.currentNode&&this.currentNode.level>1&&((l=this.currentNode.parent)==null||l.expand(null,!0))}setCurrentNodeKey(n,o=!0){var l;if(this.currentNodeKey=n,a.isPropAbsent(n)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(n);r&&(this.setCurrentNode(r),o&&this.currentNode&&this.currentNode.level>1&&((l=this.currentNode.parent)==null||l.expand(null,!0)))}}const Zi="RootTree",Kh="NodeInstance",rf="TreeNodeMap",HI=e.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const n=a.useNamespace("tree"),o=e.inject(Kh),l=e.inject(Zi);return()=>{const r=t.node,{data:s,store:i}=r;return t.renderContent?t.renderContent(e.h,{_self:o,node:r,data:s,store:i}):e.renderSlot(l.ctx.slots,"default",{node:r,data:s},()=>[e.h(Xi,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[r.label])])}}});var jI=a._export_sfc(HI,[["__file","tree-node-content.vue"]]);function Hh(t){const n=e.inject(rf,null),o={treeNodeExpand:l=>{var r;t.node!==l&&((r=t.node)==null||r.collapse())},children:[]};return n&&n.children.push(o),e.provide(rf,o),{broadcastExpanded:l=>{if(t.accordion)for(const r of o.children)r.treeNodeExpand(l)}}}const jh=Symbol("dragEvents");function WI({props:t,ctx:n,el$:o,dropIndicator$:l,store:r}){const s=a.useNamespace("tree"),i=e.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),c=({event:f,treeNode:p})=>{if(f.dataTransfer){if(a.isFunction(t.allowDrag)&&!t.allowDrag(p.node))return f.preventDefault(),!1;f.dataTransfer.effectAllowed="move";try{f.dataTransfer.setData("text/plain","")}catch{}i.value.draggingNode=p,n.emit("node-drag-start",p.node,f)}},u=({event:f,treeNode:p})=>{if(!f.dataTransfer)return;const v=p,m=i.value.dropNode;m&&m.node.id!==v.node.id&&a.removeClass(m.$el,s.is("drop-inner"));const y=i.value.draggingNode;if(!y||!v)return;let h=!0,g=!0,C=!0,E=!0;a.isFunction(t.allowDrop)&&(h=t.allowDrop(y.node,v.node,"prev"),E=g=t.allowDrop(y.node,v.node,"inner"),C=t.allowDrop(y.node,v.node,"next")),f.dataTransfer.dropEffect=g||h||C?"move":"none",(h||g||C)&&(m==null?void 0:m.node.id)!==v.node.id&&(m&&n.emit("node-drag-leave",y.node,m.node,f),n.emit("node-drag-enter",y.node,v.node,f)),h||g||C?i.value.dropNode=v:i.value.dropNode=null,v.node.nextSibling===y.node&&(C=!1),v.node.previousSibling===y.node&&(h=!1),v.node.contains(y.node,!1)&&(g=!1),(y.node===v.node||y.node.contains(v.node))&&(h=!1,g=!1,C=!1);const k=v.$el,b=k.querySelector(`.${s.be("node","content")}`).getBoundingClientRect(),w=o.value.getBoundingClientRect(),S=o.value.scrollTop;let _;const P=h?g?.25:C?.45:1:Number.NEGATIVE_INFINITY,B=C?g?.75:h?.55:0:Number.POSITIVE_INFINITY;let T=-9999;const N=f.clientY-b.top;N<b.height*P?_="before":N>b.height*B?_="after":g?_="inner":_="none";const V=k.querySelector(`.${s.be("node","expand-icon")}`).getBoundingClientRect(),R=l.value;_==="before"?T=V.top-w.top+S:_==="after"&&(T=V.bottom-w.top+S),R.style.top=`${T}px`,R.style.left=`${V.right-w.left}px`,_==="inner"?a.addClass(k,s.is("drop-inner")):a.removeClass(k,s.is("drop-inner")),i.value.showDropIndicator=_==="before"||_==="after",i.value.allowDrop=i.value.showDropIndicator||E,i.value.dropType=_,n.emit("node-drag-over",y.node,v.node,f)},d=f=>{var p,v;const{draggingNode:m,dropType:y,dropNode:h}=i.value;if(f.preventDefault(),f.dataTransfer&&(f.dataTransfer.dropEffect="move"),m!=null&&m.node.data&&h){const g={data:m.node.data};y!=="none"&&m.node.remove(),y==="before"?(p=h.node.parent)==null||p.insertBefore(g,h.node):y==="after"?(v=h.node.parent)==null||v.insertAfter(g,h.node):y==="inner"&&h.node.insertChild(g),y!=="none"&&(r.value.registerNode(g),r.value.key&&m.node.eachNode(C=>{var E;(E=r.value.nodesMap[C.data[r.value.key]])==null||E.setChecked(C.checked,!r.value.checkStrictly)})),a.removeClass(h.$el,s.is("drop-inner")),n.emit("node-drag-end",m.node,h.node,y,f),y!=="none"&&n.emit("node-drop",m.node,h.node,y,f)}m&&!h&&n.emit("node-drag-end",m.node,null,y,f),i.value.showDropIndicator=!1,i.value.draggingNode=null,i.value.dropNode=null,i.value.allowDrop=!0};return e.provide(jh,{treeNodeDragStart:c,treeNodeDragOver:u,treeNodeDragEnd:d}),{dragState:i}}const UI=e.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:Er,ElCheckbox:Jt,NodeContent:jI,ElIcon:a.ElIcon,Loading:a.loading_default},props:{node:{type:js,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(t,n){const o=a.useNamespace("tree"),{broadcastExpanded:l}=Hh(t),r=e.inject(Zi),s=e.ref(!1),i=e.ref(!1),c=e.ref(),u=e.ref(),d=e.ref(),f=e.inject(jh),p=e.getCurrentInstance();e.provide(Kh,p),r||a.debugWarn("Tree","Can not find node's tree."),t.node.expanded&&(s.value=!0,i.value=!0);const v=r.props.props.children||"children";e.watch(()=>{var B;const T=(B=t.node.data)==null?void 0:B[v];return T&&[...T]},()=>{t.node.updateChildren()}),e.watch(()=>t.node.indeterminate,B=>{h(t.node.checked,B)}),e.watch(()=>t.node.checked,B=>{h(B,t.node.indeterminate)}),e.watch(()=>t.node.childNodes.length,()=>t.node.reInitChecked()),e.watch(()=>t.node.expanded,B=>{e.nextTick(()=>s.value=B),B&&(i.value=!0)});const m=B=>Ji(r.props.nodeKey,B.data),y=B=>{const T=t.props.class;if(!T)return{};let N;if(a.isFunction(T)){const{data:V}=B;N=T(V,B)}else N=T;return a.isString(N)?{[N]:!0}:N},h=(B,T)=>{(c.value!==B||u.value!==T)&&r.ctx.emit("check-change",t.node.data,B,T),c.value=B,u.value=T},g=B=>{Fs(r.store,r.ctx.emit,()=>{var T;if((T=r==null?void 0:r.props)==null?void 0:T.nodeKey){const V=m(t.node);r.store.value.setCurrentNodeKey(V)}else r.store.value.setCurrentNode(t.node)}),r.currentNode.value=t.node,r.props.expandOnClickNode&&E(),(r.props.checkOnClickNode||t.node.isLeaf&&r.props.checkOnClickLeaf&&t.showCheckbox)&&!t.node.disabled&&k(!t.node.checked),r.ctx.emit("node-click",t.node.data,t.node,p,B)},C=B=>{var T;(T=r.instance.vnode.props)!=null&&T.onNodeContextmenu&&(B.stopPropagation(),B.preventDefault()),r.ctx.emit("node-contextmenu",B,t.node.data,t.node,p)},E=()=>{t.node.isLeaf||(s.value?(r.ctx.emit("node-collapse",t.node.data,t.node,p),t.node.collapse()):t.node.expand(()=>{n.emit("node-expand",t.node.data,t.node,p)}))},k=B=>{t.node.setChecked(B,!(r!=null&&r.props.checkStrictly)),e.nextTick(()=>{const T=r.store.value;r.ctx.emit("check",t.node.data,{checkedNodes:T.getCheckedNodes(),checkedKeys:T.getCheckedKeys(),halfCheckedNodes:T.getHalfCheckedNodes(),halfCheckedKeys:T.getHalfCheckedKeys()})})};return{ns:o,node$:d,tree:r,expanded:s,childNodeRendered:i,oldChecked:c,oldIndeterminate:u,getNodeKey:m,getNodeClass:y,handleSelectChange:h,handleClick:g,handleContextMenu:C,handleExpandIconClick:E,handleCheckChange:k,handleChildNodeExpand:(B,T,N)=>{l(T),r.ctx.emit("node-expand",B,T,N)},handleDragStart:B=>{r.props.draggable&&f.treeNodeDragStart({event:B,treeNode:t})},handleDragOver:B=>{B.preventDefault(),r.props.draggable&&f.treeNodeDragOver({event:B,treeNode:{$el:d.value,node:t.node}})},handleDrop:B=>{B.preventDefault()},handleDragEnd:B=>{r.props.draggable&&f.treeNodeDragEnd(B)},CaretRight:a.caret_right_default}}});function qI(t,n,o,l,r,s){const i=e.resolveComponent("el-icon"),c=e.resolveComponent("el-checkbox"),u=e.resolveComponent("loading"),d=e.resolveComponent("node-content"),f=e.resolveComponent("el-tree-node"),p=e.resolveComponent("el-collapse-transition");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref:"node$",class:e.normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e.withModifiers(t.handleClick,["stop"]),onContextmenu:t.handleContextMenu,onDragstart:e.withModifiers(t.handleDragStart,["stop"]),onDragover:e.withModifiers(t.handleDragOver,["stop"]),onDragend:e.withModifiers(t.handleDragEnd,["stop"]),onDrop:e.withModifiers(t.handleDrop,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.be("node","content")),style:e.normalizeStyle({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(e.openBlock(),e.createBlock(i,{key:0,class:e.normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:e.withModifiers(t.handleExpandIconClick,["stop"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0),t.showCheckbox?(e.openBlock(),e.createBlock(c,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e.withModifiers(()=>{},["stop"]),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):e.createCommentVNode("v-if",!0),t.node.loading?(e.openBlock(),e.createBlock(i,{key:2,class:e.normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:e.withCtx(()=>[e.createVNode(u)]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createVNode(d,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),e.createVNode(p,null,{default:e.withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded,onClick:e.withModifiers(()=>{},["stop"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.childNodes,v=>(e.openBlock(),e.createBlock(f,{key:t.getNodeKey(v),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:v,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[e.vShow,t.expanded]]):e.createCommentVNode("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[e.vShow,t.node.visible]])}var YI=a._export_sfc(UI,[["render",qI],["__file","tree-node.vue"]]);function GI({el$:t},n){const o=a.useNamespace("tree");e.onMounted(()=>{s()}),e.onUpdated(()=>{Array.from(t.value.querySelectorAll("input[type=checkbox]")).forEach(c=>{c.setAttribute("tabindex","-1")})});function l(i,c){var u,d;const f=n.value.getNode(i[c].dataset.key);return f.canFocus&&f.visible&&(((u=f.parent)==null?void 0:u.expanded)||((d=f.parent)==null?void 0:d.level)===0)}const r=i=>{const c=i.target;if(!c.className.includes(o.b("node")))return;const u=a.getEventCode(i),d=Array.from(t.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`)),f=d.indexOf(c);let p;if([a.EVENT_CODE.up,a.EVENT_CODE.down].includes(u)){if(i.preventDefault(),u===a.EVENT_CODE.up){p=f===-1?0:f!==0?f-1:d.length-1;const m=p;for(;!l(d,p);){if(p--,p===m){p=-1;break}p<0&&(p=d.length-1)}}else{p=f===-1?0:f<d.length-1?f+1:0;const m=p;for(;!l(d,p);){if(p++,p===m){p=-1;break}p>=d.length&&(p=0)}}p!==-1&&d[p].focus()}[a.EVENT_CODE.left,a.EVENT_CODE.right].includes(u)&&(i.preventDefault(),c.click());const v=c.querySelector('[type="checkbox"]');[a.EVENT_CODE.enter,a.EVENT_CODE.numpadEnter,a.EVENT_CODE.space].includes(u)&&v&&(i.preventDefault(),v.click())};a.useEventListener(t,"keydown",r);const s=()=>{var i;if(!t.value)return;const c=Array.from(t.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`));Array.from(t.value.querySelectorAll("input[type=checkbox]")).forEach(f=>{f.setAttribute("tabindex","-1")});const d=t.value.querySelectorAll(`.${o.is("checked")}[role=treeitem]`);if(d.length){d[0].setAttribute("tabindex","0");return}(i=c[0])==null||i.setAttribute("tabindex","0")}}const XI={"check-change":(t,n,o)=>t&&a.isBoolean(n)&&a.isBoolean(o),"current-change":(t,n)=>!0,"node-click":(t,n,o,l)=>t&&n&&l instanceof Event,"node-contextmenu":(t,n,o,l)=>t instanceof Event&&n&&o,"node-collapse":(t,n,o)=>t&&n,"node-expand":(t,n,o)=>t&&n,check:(t,n)=>t&&n,"node-drag-start":(t,n)=>t&&n,"node-drag-end":(t,n,o,l)=>t&&l,"node-drop":(t,n,o,l)=>t&&n&&l,"node-drag-leave":(t,n,o)=>t&&n&&o,"node-drag-enter":(t,n,o)=>t&&n&&o,"node-drag-over":(t,n,o)=>t&&n&&o},JI=e.defineComponent({name:"ElTree",components:{ElTreeNode:YI},props:{data:{type:a.definePropType(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:{type:a.definePropType(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:a.definePropType(Function)},allowDrop:{type:a.definePropType(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:a.iconPropType}},emits:XI,setup(t,n){const{t:o}=a.useLocale(),l=a.useNamespace("tree"),r=e.ref(new KI({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));r.value.initialize();const s=e.ref(r.value.root),i=e.ref(null),c=e.ref(null),u=e.ref(null),{broadcastExpanded:d}=Hh(t),{dragState:f}=WI({props:t,ctx:n,el$:c,dropIndicator$:u,store:r});GI({el$:c},r);const p=e.getCurrentInstance(),v=e.computed(()=>{let O=p==null?void 0:p.parent;for(;O;){if(O.type.name==="ElTreeSelect")return!0;O=O.parent}return!1}),m=e.computed(()=>{const{childNodes:O}=s.value;return(!O||O.length===0||O.every(({visible:M})=>!M))&&!v.value});e.watch(()=>t.currentNodeKey,O=>{r.value.setCurrentNodeKey(O??null)}),e.watch(()=>t.defaultCheckedKeys,(O,M)=>{a.isEqual(O,M)||r.value.setDefaultCheckedKey(O??[])}),e.watch(()=>t.defaultExpandedKeys,O=>{r.value.setDefaultExpandedKeys(O??[])}),e.watch(()=>t.data,O=>{r.value.setData(O)},{deep:!0}),e.watch(()=>t.checkStrictly,O=>{r.value.checkStrictly=O});const y=O=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");r.value.filter(O)},h=O=>Ji(t.nodeKey,O.data),g=O=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const M=r.value.getNode(O);if(!M)return[];const F=[M.data];let x=M.parent;for(;x&&x!==s.value;)F.push(x.data),x=x.parent;return F.reverse()},C=(O,M)=>r.value.getCheckedNodes(O,M),E=O=>r.value.getCheckedKeys(O),k=()=>{const O=r.value.getCurrentNode();return O?O.data:null},b=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const O=k();return O?O[t.nodeKey]:null},w=(O,M)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");r.value.setCheckedNodes(O,M)},S=(O,M)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");r.value.setCheckedKeys(O,M)},_=(O,M,F)=>{r.value.setChecked(O,M,F)},P=()=>r.value.getHalfCheckedNodes(),B=()=>r.value.getHalfCheckedKeys(),T=(O,M=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Fs(r,n.emit,()=>{d(O),r.value.setUserCurrentNode(O,M)})},N=(O=null,M=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Fs(r,n.emit,()=>{d(),r.value.setCurrentNodeKey(O,M)})},V=O=>r.value.getNode(O),R=O=>{r.value.remove(O)},j=(O,M)=>{r.value.append(O,M)},q=(O,M)=>{r.value.insertBefore(O,M)},D=(O,M)=>{r.value.insertAfter(O,M)},$=(O,M,F)=>{d(M),n.emit("node-expand",O,M,F)},A=(O,M)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");r.value.updateChildren(O,M)};return e.provide(Zi,{ctx:n,props:t,store:r,root:s,currentNode:i,instance:p}),e.provide(L.formItemContextKey,void 0),{ns:l,store:r,root:s,currentNode:i,dragState:f,el$:c,dropIndicator$:u,isEmpty:m,filter:y,getNodeKey:h,getNodePath:g,getCheckedNodes:C,getCheckedKeys:E,getCurrentNode:k,getCurrentKey:b,setCheckedNodes:w,setCheckedKeys:S,setChecked:_,getHalfCheckedNodes:P,getHalfCheckedKeys:B,setCurrentNode:T,setCurrentKey:N,t:o,getNode:V,remove:R,append:j,insertBefore:q,insertAfter:D,handleNodeExpand:$,updateKeyChildren:A}}});function ZI(t,n,o,l,r,s){const i=e.resolveComponent("el-tree-node");return e.openBlock(),e.createElementBlock("div",{ref:"el$",class:e.normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.root.childNodes,c=>(e.openBlock(),e.createBlock(i,{key:t.getNodeKey(c),node:c,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.ns.e("empty-block"))},[e.renderSlot(t.$slots,"empty",{},()=>{var c;return[e.createElementVNode("span",{class:e.normalizeClass(t.ns.e("empty-text"))},e.toDisplayString((c=t.emptyText)!=null?c:t.t("el.tree.emptyText")),3)]})],2)):e.createCommentVNode("v-if",!0),e.withDirectives(e.createElementVNode("div",{ref:"dropIndicator$",class:e.normalizeClass(t.ns.e("drop-indicator"))},null,2),[[e.vShow,t.dragState.showDropIndicator]])],2)}var QI=a._export_sfc(JI,[["render",ZI],["__file","tree.vue"]]);const ur=a.withInstall(QI),eO=(t,{attrs:n,emit:o},{select:l,tree:r,key:s})=>{const i=a.useNamespace("tree-select");return e.watch(()=>t.data,()=>{t.filterable&&e.nextTick(()=>{var u,d;(d=r.value)==null||d.filter((u=l.value)==null?void 0:u.states.inputValue)})},{flush:"post"}),{...L.pick(e.toRefs(t),Object.keys(ao.props)),...n,class:e.computed(()=>n.class),style:e.computed(()=>n.style),"onUpdate:modelValue":u=>o(L.UPDATE_MODEL_EVENT,u),valueKey:s,popperClass:e.computed(()=>{const u=[i.e("popper")];return t.popperClass&&u.push(t.popperClass),u.join(" ")}),filterMethod:(u="")=>{var d;t.filterMethod?t.filterMethod(u):t.remoteMethod?t.remoteMethod(u):(d=r.value)==null||d.filter(u)}}},tO=e.defineComponent({extends:tr,setup(t,n){const o=tr.setup(t,n);delete o.selectOptionClick;const l=e.getCurrentInstance().proxy;return e.nextTick(()=>{o.select.states.cachedOptions.get(l.value)||o.select.onOptionCreate(l)}),e.watch(()=>n.attrs.visible,r=>{e.nextTick(()=>{o.states.visible=r})},{immediate:!0}),o},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Ws(t){return t||t===0}function Qi(t){return a.isArray$1(t)&&t.length}function vo(t){return a.isArray$1(t)?t:Ws(t)?[t]:[]}function Wa(t,n,o,l,r){for(let s=0;s<t.length;s++){const i=t[s];if(n(i,s,t,r))return l?l(i,s,t,r):i;{const c=o(i);if(Qi(c)){const u=Wa(c,n,o,l,i);if(u)return u}}}}function Ua(t,n,o,l){for(let r=0;r<t.length;r++){const s=t[r];n(s,r,t,l);const i=o(s);Qi(i)&&Ua(i,n,o,s)}}const nO=(t,{attrs:n,slots:o,emit:l},{select:r,tree:s,key:i})=>{e.watch([()=>t.modelValue,s],()=>{t.showCheckbox&&e.nextTick(()=>{const v=s.value;v&&!a.isEqual(v.getCheckedKeys(),vo(t.modelValue))&&v.setCheckedKeys(vo(t.modelValue))})},{immediate:!0,deep:!0});const c=e.computed(()=>({value:i.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...t.props})),u=(v,m)=>{var y;const h=c.value[v];return a.isFunction(h)?h(m,(y=s.value)==null?void 0:y.getNode(u("value",m))):m[h]},d=vo(t.modelValue).map(v=>Wa(t.data||[],m=>u("value",m)===v,m=>u("children",m),(m,y,h,g)=>g&&u("value",g))).filter(v=>Ws(v)),f=e.computed(()=>{if(!t.renderAfterExpand&&!t.lazy)return[];const v=[];return Ua(t.data.concat(t.cacheData),m=>{const y=u("value",m);v.push({value:y,currentLabel:u("label",m),isDisabled:u("disabled",m)})},m=>u("children",m)),v}),p=()=>{var v;return(v=s.value)==null?void 0:v.getCheckedKeys().filter(m=>{var y;const h=(y=s.value)==null?void 0:y.getNode(m);return!a.isNil(h)&&a.isEmpty(h.childNodes)})};return{...L.pick(e.toRefs(t),Object.keys(ur.props)),...n,nodeKey:i,expandOnClickNode:e.computed(()=>!t.checkStrictly&&t.expandOnClickNode),defaultExpandedKeys:e.computed(()=>t.defaultExpandedKeys?t.defaultExpandedKeys.concat(d):d),renderContent:(v,{node:m,data:y,store:h})=>v(tO,{value:u("value",y),label:u("label",y),disabled:u("disabled",y),visible:m.visible},t.renderContent?()=>t.renderContent(v,{node:m,data:y,store:h}):o.default?()=>o.default({node:m,data:y,store:h}):void 0),filterNodeMethod:(v,m,y)=>t.filterNodeMethod?t.filterNodeMethod(v,m,y):v?new RegExp(Di(v),"i").test(u("label",m)||""):!0,onNodeClick:(v,m,y)=>{var h,g,C,E;if((h=n.onNodeClick)==null||h.call(n,v,m,y),!(t.showCheckbox&&t.checkOnClickNode)){if(!t.showCheckbox&&(t.checkStrictly||m.isLeaf)){if(!u("disabled",v)){const k=(g=r.value)==null?void 0:g.states.options.get(u("value",v));(C=r.value)==null||C.handleOptionSelect(k)}}else t.expandOnClickNode&&y.proxy.handleExpandIconClick();(E=r.value)==null||E.focus()}},onCheck:(v,m)=>{var y;if(!t.showCheckbox)return;const h=u("value",v),g={};Ua([s.value.store.root],b=>g[b.key]=b,b=>b.childNodes);const C=m.checkedKeys,E=t.multiple?vo(t.modelValue).filter(b=>!(b in g)&&!C.includes(b)):[],k=E.concat(C);if(t.checkStrictly)l(L.UPDATE_MODEL_EVENT,t.multiple?k:k.includes(h)?h:void 0);else if(t.multiple){const b=p();l(L.UPDATE_MODEL_EVENT,E.concat(b))}else{const b=Wa([v],_=>!Qi(u("children",_))&&!u("disabled",_),_=>u("children",_)),w=b?u("value",b):void 0,S=Ws(t.modelValue)&&!!Wa([v],_=>u("value",_)===t.modelValue,_=>u("children",_));l(L.UPDATE_MODEL_EVENT,w===t.modelValue||S?void 0:w)}e.nextTick(()=>{var b;const w=vo(t.modelValue);s.value.setCheckedKeys(w),(b=n.onCheck)==null||b.call(n,v,{checkedKeys:s.value.getCheckedKeys(),checkedNodes:s.value.getCheckedNodes(),halfCheckedKeys:s.value.getHalfCheckedKeys(),halfCheckedNodes:s.value.getHalfCheckedNodes()})}),(y=r.value)==null||y.focus()},onNodeExpand:(v,m,y)=>{var h;(h=n.onNodeExpand)==null||h.call(n,v,m,y),e.nextTick(()=>{if(!t.checkStrictly&&t.lazy&&t.multiple&&m.checked){const g={},C=s.value.getCheckedKeys();Ua([s.value.store.root],b=>g[b.key]=b,b=>b.childNodes);const E=vo(t.modelValue).filter(b=>!(b in g)&&!C.includes(b)),k=p();l(L.UPDATE_MODEL_EVENT,E.concat(k))}})},cacheOptions:f}};var oO=e.defineComponent({props:{data:{type:Array,default:()=>[]}},setup(t){const n=e.inject(ra);return e.watch(()=>t.data,()=>{var o;t.data.forEach(r=>{n.states.cachedOptions.has(r.value)||n.states.cachedOptions.set(r.value,r)});const l=((o=n.selectRef)==null?void 0:o.querySelectorAll("input"))||[];a.isClient&&!Array.from(l).includes(document.activeElement)&&n.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const lO=e.defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...ao.props,...ur.props,cacheData:{type:Array,default:()=>[]}},setup(t,n){const{slots:o,expose:l}=n,r=e.ref(),s=e.ref(),i=e.computed(()=>t.nodeKey||t.valueKey||"value"),c=eO(t,n,{select:r,tree:s,key:i}),{cacheOptions:u,...d}=nO(t,n,{select:r,tree:s,key:i}),f=e.reactive({});return l(f),e.onMounted(()=>{Object.assign(f,{...L.pick(s.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...L.pick(r.value,["focus","blur","selectedLabel"]),treeRef:s.value,selectRef:r.value})}),()=>e.h(ao,e.reactive({...c,ref:p=>r.value=p}),{...o,default:()=>[e.h(oO,{data:u.value}),e.h(ur,e.reactive({...d,ref:p=>s.value=p}))]})}});var aO=a._export_sfc(lO,[["__file","tree-select.vue"]]);const rO=a.withInstall(aO),ec=Symbol(),sO={key:-1,level:-1,data:{}};var Dl=(t=>(t.KEY="id",t.LABEL="label",t.CHILDREN="children",t.DISABLED="disabled",t.CLASS="",t))(Dl||{}),Us=(t=>(t.ADD="add",t.DELETE="delete",t))(Us||{});const Wh={type:Number,default:26},iO=a.buildProps({data:{type:a.definePropType(Array),default:()=>a.mutable([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:a.definePropType(Object),default:()=>a.mutable({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:a.definePropType(Array),default:()=>a.mutable([])},checkStrictly:Boolean,defaultExpandedKeys:{type:a.definePropType(Array),default:()=>a.mutable([])},indent:{type:Number,default:16},itemSize:Wh,icon:{type:a.iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:a.definePropType([String,Number])},accordion:Boolean,filterMethod:{type:a.definePropType(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),cO=a.buildProps({node:{type:a.definePropType(Object),default:()=>a.mutable(sO)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:Wh}),uO=a.buildProps({node:{type:a.definePropType(Object),required:!0}}),Uh="node-click",qh="node-drop",Yh="node-expand",Gh="node-collapse",Xh="current-change",Jh="check",Zh="check-change",Qh="node-contextmenu",dO={[Uh]:(t,n,o)=>t&&n&&o,[qh]:(t,n,o)=>t&&n&&o,[Yh]:(t,n)=>t&&n,[Gh]:(t,n)=>t&&n,[Xh]:(t,n)=>t&&n,[Jh]:(t,n)=>t&&n,[Zh]:(t,n)=>t&&a.isBoolean(n),[Qh]:(t,n,o)=>t&&n&&o},fO={click:(t,n)=>!!(t&&n),drop:(t,n)=>!!(t&&n),toggle:t=>!!t,check:(t,n)=>t&&a.isBoolean(n)};function pO(t,n){const o=e.ref(new Set),l=e.ref(new Set),{emit:r}=e.getCurrentInstance();e.watch([()=>n.value,()=>t.defaultCheckedKeys],()=>e.nextTick(()=>{E(t.defaultCheckedKeys)}),{immediate:!0});const s=()=>{if(!n.value||!t.showCheckbox||t.checkStrictly)return;const{levelTreeNodeMap:k,maxLevel:b}=n.value,w=o.value,S=new Set;for(let _=b-1;_>=1;--_){const P=k.get(_);P&&P.forEach(B=>{const T=B.children;if(T){let N=!0,V=!1;for(const R of T){const j=R.key;if(w.has(j))V=!0;else if(S.has(j)){N=!1,V=!0;break}else N=!1}N?w.add(B.key):V?(S.add(B.key),w.delete(B.key)):(w.delete(B.key),S.delete(B.key))}})}l.value=S},i=k=>o.value.has(k.key),c=k=>l.value.has(k.key),u=(k,b,w=!0,S=!0)=>{const _=o.value,P=(B,T)=>{_[T?Us.ADD:Us.DELETE](B.key);const N=B.children;!t.checkStrictly&&N&&N.forEach(V=>{V.disabled||P(V,T)})};P(k,b),S&&s(),w&&d(k,b)},d=(k,b)=>{const{checkedNodes:w,checkedKeys:S}=y(),{halfCheckedNodes:_,halfCheckedKeys:P}=h();r(Jh,k.data,{checkedKeys:S,checkedNodes:w,halfCheckedKeys:P,halfCheckedNodes:_}),r(Zh,k.data,b)};function f(k=!1){return y(k).checkedKeys}function p(k=!1){return y(k).checkedNodes}function v(){return h().halfCheckedKeys}function m(){return h().halfCheckedNodes}function y(k=!1){const b=[],w=[];if(n!=null&&n.value&&t.showCheckbox){const{treeNodeMap:S}=n.value;o.value.forEach(_=>{const P=S.get(_);P&&(!k||k&&P.isLeaf)&&(w.push(_),b.push(P.data))})}return{checkedKeys:w,checkedNodes:b}}function h(){const k=[],b=[];if(n!=null&&n.value&&t.showCheckbox){const{treeNodeMap:w}=n.value;l.value.forEach(S=>{const _=w.get(S);_&&(b.push(S),k.push(_.data))})}return{halfCheckedNodes:k,halfCheckedKeys:b}}function g(k){o.value.clear(),l.value.clear(),e.nextTick(()=>{E(k)})}function C(k,b){if(n!=null&&n.value&&t.showCheckbox){const w=n.value.treeNodeMap.get(k);w&&u(w,b,!1)}}function E(k){if(n!=null&&n.value){const{treeNodeMap:b}=n.value;if(t.showCheckbox&&b&&(k==null?void 0:k.length)>0){for(const w of k){const S=b.get(w);S&&!i(S)&&u(S,!0,!1,!1)}s()}}}return{updateCheckedKeys:s,toggleCheckbox:u,isChecked:i,isIndeterminate:c,getCheckedKeys:f,getCheckedNodes:p,getHalfCheckedKeys:v,getHalfCheckedNodes:m,setChecked:C,setCheckedKeys:g}}function mO(t,n){const o=e.ref(new Set([])),l=e.ref(new Set([])),r=e.computed(()=>a.isFunction(t.filterMethod));function s(c){var u;if(!r.value)return;const d=new Set,f=l.value,p=o.value,v=[],m=((u=n.value)==null?void 0:u.treeNodes)||[],y=t.filterMethod;p.clear();function h(g){g.forEach(C=>{v.push(C),y!=null&&y(c,C.data,C)?v.forEach(k=>{d.add(k.key),k.expanded=!0}):(C.expanded=!1,C.isLeaf&&p.add(C.key));const E=C.children;if(E&&h(E),!C.isLeaf){if(!d.has(C.key))p.add(C.key);else if(E){let k=!0;for(const b of E)if(!p.has(b.key)){k=!1;break}k?f.add(C.key):f.delete(C.key)}}v.pop()})}return h(m),d}function i(c){return l.value.has(c.key)}return{hiddenExpandIconKeySet:l,hiddenNodeKeySet:o,doFilter:s,isForceHiddenExpandIcon:i}}function hO(t,n){const o=e.ref(new Set),l=e.ref(),r=e.shallowRef(),s=e.ref(),{isIndeterminate:i,isChecked:c,toggleCheckbox:u,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:p,getHalfCheckedNodes:v,setChecked:m,setCheckedKeys:y}=pO(t,r),{doFilter:h,hiddenNodeKeySet:g,isForceHiddenExpandIcon:C}=mO(t,r),E=e.computed(()=>{var I;return((I=t.props)==null?void 0:I.value)||Dl.KEY}),k=e.computed(()=>{var I;return((I=t.props)==null?void 0:I.children)||Dl.CHILDREN}),b=e.computed(()=>{var I;return((I=t.props)==null?void 0:I.disabled)||Dl.DISABLED}),w=e.computed(()=>{var I;return((I=t.props)==null?void 0:I.label)||Dl.LABEL}),S=e.computed(()=>{var I;const H=o.value,Z=g.value,J=[],le=((I=r.value)==null?void 0:I.treeNodes)||[],oe=[];for(let ee=le.length-1;ee>=0;--ee)oe.push(le[ee]);for(;oe.length;){const ee=oe.pop();if(!Z.has(ee.key)&&(J.push(ee),ee.children&&H.has(ee.key)))for(let U=ee.children.length-1;U>=0;--U)oe.push(ee.children[U])}return J}),_=e.computed(()=>S.value.length>0);function P(I){const H=new Map,Z=new Map;let J=1;function le(ee,U=1,se=void 0){var z;const ne=[];for(const _e of ee){const ye=N(_e),Pe={level:U,key:ye,data:_e};Pe.label=R(_e),Pe.parent=se;const Ve=T(_e);Pe.disabled=V(_e),Pe.isLeaf=!Ve||Ve.length===0,Pe.expanded=o.value.has(ye),Ve&&Ve.length&&(Pe.children=le(Ve,U+1,Pe)),ne.push(Pe),H.set(ye,Pe),Z.has(U)||Z.set(U,[]),(z=Z.get(U))==null||z.push(Pe)}return U>J&&(J=U),ne}const oe=le(I);return{treeNodeMap:H,levelTreeNodeMap:Z,maxLevel:J,treeNodes:oe}}function B(I){const H=h(I);H&&(o.value=H)}function T(I){return I[k.value]}function N(I){return I?I[E.value]:""}function V(I){return I[b.value]}function R(I){return I[w.value]}function j(I){o.value.has(I.key)?F(I):M(I)}function q(I){const H=new Set,Z=r.value.treeNodeMap;o.value.forEach(J=>{const le=Z.get(J);o.value.delete(le.key),le.expanded=!1}),I.forEach(J=>{let le=Z.get(J);for(;le&&!H.has(le.key);)H.add(le.key),le.expanded=!0,le=le.parent}),o.value=H}function D(I,H){n(Uh,I.data,I,H),A(I),t.expandOnClickNode&&j(I),t.showCheckbox&&(t.checkOnClickNode||I.isLeaf&&t.checkOnClickLeaf)&&!I.disabled&&u(I,!c(I),!0)}function $(I,H){n(qh,I.data,I,H)}function A(I){K(I)||(l.value=I.key,n(Xh,I.data,I))}function O(I,H){u(I,H)}function M(I){const H=o.value;if(r.value&&t.accordion){const{treeNodeMap:J}=r.value;H.forEach(le=>{const oe=J.get(le);I&&I.level===(oe==null?void 0:oe.level)&&(H.delete(le),oe.expanded=!1)})}H.add(I.key);const Z=Q(I.key);Z&&(Z.expanded=!0,n(Yh,Z.data,Z))}function F(I){o.value.delete(I.key);const H=Q(I.key);H&&(H.expanded=!1,n(Gh,H.data,H))}function x(I){return!!I.disabled}function K(I){const H=l.value;return H!==void 0&&H===I.key}function Y(){var I,H;if(l.value)return(H=(I=r.value)==null?void 0:I.treeNodeMap.get(l.value))==null?void 0:H.data}function W(){return l.value}function te(I){l.value=I}function re(I){r.value=P(I)}function Q(I){var H;const Z=a.isObject$1(I)?N(I):I;return(H=r.value)==null?void 0:H.treeNodeMap.get(Z)}function X(I,H="auto"){const Z=Q(I);Z&&s.value&&s.value.scrollToItem(S.value.indexOf(Z),H)}function G(I){var H;(H=s.value)==null||H.scrollTo(I)}return e.watch(()=>t.currentNodeKey,I=>{l.value=I},{immediate:!0}),e.watch(()=>t.defaultExpandedKeys,I=>{o.value=new Set(I)},{immediate:!0}),e.watch(()=>t.data,I=>{re(I)},{immediate:!0}),{tree:r,flattenTree:S,isNotEmpty:_,listRef:s,getKey:N,getChildren:T,toggleExpand:j,toggleCheckbox:u,isChecked:c,isIndeterminate:i,isDisabled:x,isCurrent:K,isForceHiddenExpandIcon:C,handleNodeClick:D,handleNodeDrop:$,handleNodeCheck:O,getCurrentNode:Y,getCurrentKey:W,setCurrentKey:te,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:p,getHalfCheckedNodes:v,setChecked:m,setCheckedKeys:y,filter:B,setData:re,getNode:Q,expandNode:M,collapseNode:F,setExpandedKeys:q,scrollToNode:X,scrollTo:G}}var vO=e.defineComponent({name:"ElTreeNodeContent",props:uO,setup(t){const n=e.inject(ec),o=a.useNamespace("tree");return()=>{const l=t.node,{data:r}=l;return n!=null&&n.ctx.slots.default?n.ctx.slots.default({node:l,data:r}):e.h(Xi,{tag:"span",truncated:!0,class:o.be("node","label")},()=>[l==null?void 0:l.label])}}});const gO=e.defineComponent({name:"ElTreeNode"}),yO=e.defineComponent({...gO,props:cO,emits:fO,setup(t,{emit:n}){const o=t,l=e.inject(ec),r=a.useNamespace("tree"),s=e.computed(()=>{var m;return(m=l==null?void 0:l.props.indent)!=null?m:16}),i=e.computed(()=>{var m;return(m=l==null?void 0:l.props.icon)!=null?m:a.caret_right_default}),c=m=>{const y=l==null?void 0:l.props.props.class;if(!y)return{};let h;if(a.isFunction(y)){const{data:g}=m;h=y(g,m)}else h=y;return a.isString(h)?{[h]:!0}:h},u=m=>{n("click",o.node,m)},d=m=>{n("drop",o.node,m)},f=()=>{n("toggle",o.node)},p=m=>{n("check",o.node,m)},v=m=>{var y,h,g,C;(g=(h=(y=l==null?void 0:l.instance)==null?void 0:y.vnode)==null?void 0:h.props)!=null&&g.onNodeContextmenu&&(m.stopPropagation(),m.preventDefault()),l==null||l.ctx.emit(Qh,m,(C=o.node)==null?void 0:C.data,o.node)};return(m,y)=>{var h,g,C;return e.openBlock(),e.createElementBlock("div",{ref:"node$",class:e.normalizeClass([e.unref(r).b("node"),e.unref(r).is("expanded",m.expanded),e.unref(r).is("current",m.current),e.unref(r).is("focusable",!m.disabled),e.unref(r).is("checked",!m.disabled&&m.checked),c(m.node)]),role:"treeitem",tabindex:"-1","aria-expanded":m.expanded,"aria-disabled":m.disabled,"aria-checked":m.checked,"data-key":(h=m.node)==null?void 0:h.key,onClick:e.withModifiers(u,["stop"]),onContextmenu:v,onDragover:e.withModifiers(()=>{},["prevent"]),onDragenter:e.withModifiers(()=>{},["prevent"]),onDrop:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r).be("node","content")),style:e.normalizeStyle({paddingLeft:`${(m.node.level-1)*e.unref(s)}px`,height:m.itemSize+"px"})},[e.unref(i)?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass([e.unref(r).is("leaf",!!((g=m.node)!=null&&g.isLeaf)),e.unref(r).is("hidden",m.hiddenExpandIcon),{expanded:!((C=m.node)!=null&&C.isLeaf)&&m.expanded},e.unref(r).be("node","expand-icon")]),onClick:e.withModifiers(f,["stop"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i))))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0),m.showCheckbox?(e.openBlock(),e.createBlock(e.unref(Jt),{key:1,"model-value":m.checked,indeterminate:m.indeterminate,disabled:m.disabled,onChange:p,onClick:e.withModifiers(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(vO),{node:{...m.node,expanded:m.expanded}},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var bO=a._export_sfc(yO,[["__file","tree-node.vue"]]);const CO=e.defineComponent({name:"ElTreeV2"}),kO=e.defineComponent({...CO,props:iO,emits:dO,setup(t,{expose:n,emit:o}){const l=t,r=e.useSlots(),s=e.computed(()=>l.itemSize);e.provide(ec,{ctx:{emit:o,slots:r},props:l,instance:e.getCurrentInstance()}),e.provide(L.formItemContextKey,void 0);const{t:i}=a.useLocale(),c=a.useNamespace("tree"),{flattenTree:u,isNotEmpty:d,listRef:f,toggleExpand:p,isIndeterminate:v,isChecked:m,isDisabled:y,isCurrent:h,isForceHiddenExpandIcon:g,handleNodeClick:C,handleNodeDrop:E,handleNodeCheck:k,toggleCheckbox:b,getCurrentNode:w,getCurrentKey:S,setCurrentKey:_,getCheckedKeys:P,getCheckedNodes:B,getHalfCheckedKeys:T,getHalfCheckedNodes:N,setChecked:V,setCheckedKeys:R,filter:j,setData:q,getNode:D,expandNode:$,collapseNode:A,setExpandedKeys:O,scrollToNode:M,scrollTo:F}=hO(l,o);return n({toggleCheckbox:b,getCurrentNode:w,getCurrentKey:S,setCurrentKey:_,getCheckedKeys:P,getCheckedNodes:B,getHalfCheckedKeys:T,getHalfCheckedNodes:N,setChecked:V,setCheckedKeys:R,filter:j,setData:q,getNode:D,expandNode:$,collapseNode:A,setExpandedKeys:O,scrollToNode:M,scrollTo:F}),(x,K)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c).b(),{[e.unref(c).m("highlight-current")]:x.highlightCurrent}]),role:"tree"},[e.unref(d)?(e.openBlock(),e.createBlock(e.unref(Xm),{key:0,ref_key:"listRef",ref:f,"class-name":e.unref(c).b("virtual-list"),data:e.unref(u),total:e.unref(u).length,height:x.height,"item-size":e.unref(s),"perf-mode":x.perfMode,"scrollbar-always-on":x.scrollbarAlwaysOn},{default:e.withCtx(({data:Y,index:W,style:te})=>[(e.openBlock(),e.createBlock(bO,{key:Y[W].key,style:e.normalizeStyle(te),node:Y[W],expanded:Y[W].expanded,"show-checkbox":x.showCheckbox,checked:e.unref(m)(Y[W]),indeterminate:e.unref(v)(Y[W]),"item-size":e.unref(s),disabled:e.unref(y)(Y[W]),current:e.unref(h)(Y[W]),"hidden-expand-icon":e.unref(g)(Y[W]),onClick:e.unref(C),onToggle:e.unref(p),onCheck:e.unref(k),onDrop:e.unref(E)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(c).e("empty-block"))},[e.renderSlot(x.$slots,"empty",{},()=>{var Y;return[e.createElementVNode("span",{class:e.normalizeClass(e.unref(c).e("empty-text"))},e.toDisplayString((Y=x.emptyText)!=null?Y:e.unref(i)("el.tree.emptyText")),3)]})],2))],2))}});var EO=a._export_sfc(kO,[["__file","tree.vue"]]);const wO=a.withInstall(EO),ev=Symbol("uploadContextKey"),SO=a.buildProps({files:{type:a.definePropType(Array),default:()=>a.mutable([])},disabled:Boolean,handlePreview:{type:a.definePropType(Function),default:a.NOOP},listType:{type:String,values:To.uploadListTypes,default:"text"},crossorigin:{type:a.definePropType(String)}}),NO={remove:t=>!!t},TO=e.defineComponent({name:"ElUploadList"}),_O=e.defineComponent({...TO,props:SO,emits:NO,setup(t,{emit:n}){const o=t,{t:l}=a.useLocale(),r=a.useNamespace("upload"),s=a.useNamespace("icon"),i=a.useNamespace("list"),c=L.useFormDisabled(),u=e.ref(!1),d=e.computed(()=>[r.b("list"),r.bm("list",o.listType),r.is("disabled",o.disabled)]),f=p=>{n("remove",p)};return(p,v)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{tag:"ul",class:e.normalizeClass(e.unref(d)),name:e.unref(i).b()},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.files,(m,y)=>(e.openBlock(),e.createElementBlock("li",{key:m.uid||m.name,class:e.normalizeClass([e.unref(r).be("list","item"),e.unref(r).is(m.status),{focusing:u.value}]),tabindex:e.unref(c)?void 0:0,"aria-disabled":e.unref(c),role:"button",onKeydown:e.withKeys(h=>!e.unref(c)&&f(m),["delete"]),onFocus:h=>u.value=!0,onBlur:h=>u.value=!1,onClick:h=>u.value=!1},[e.renderSlot(p.$slots,"default",{file:m,index:y},()=>[p.listType==="picture"||m.status!=="uploading"&&p.listType==="picture-card"?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(e.unref(r).be("list","item-thumbnail")),src:m.url,crossorigin:p.crossorigin,alt:""},null,10,["src","crossorigin"])):e.createCommentVNode("v-if",!0),m.status==="uploading"||p.listType!=="picture-card"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r).be("list","item-info"))},[e.createElementVNode("a",{class:e.normalizeClass(e.unref(r).be("list","item-name")),onClick:e.withModifiers(h=>p.handlePreview(m),["prevent"])},[e.createVNode(e.unref(a.ElIcon),{class:e.normalizeClass(e.unref(s).m("document"))},{default:e.withCtx(()=>[e.createVNode(e.unref(a.document_default))]),_:1},8,["class"]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(r).be("list","item-file-name")),title:m.name},e.toDisplayString(m.name),11,["title"])],10,["onClick"]),m.status==="uploading"?(e.openBlock(),e.createBlock(e.unref(Lm),{key:0,type:p.listType==="picture-card"?"circle":"line","stroke-width":p.listType==="picture-card"?6:2,percentage:Number(m.percentage),style:e.normalizeStyle(p.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("label",{class:e.normalizeClass(e.unref(r).be("list","item-status-label"))},[p.listType==="text"?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass([e.unref(s).m("upload-success"),e.unref(s).m("circle-check")])},{default:e.withCtx(()=>[e.createVNode(e.unref(a.circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(p.listType)?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:1,class:e.normalizeClass([e.unref(s).m("upload-success"),e.unref(s).m("check")])},{default:e.withCtx(()=>[e.createVNode(e.unref(a.check_default))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0)],2),e.unref(c)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:2,class:e.normalizeClass(e.unref(s).m("close")),onClick:h=>f(m)},{default:e.withCtx(()=>[e.createVNode(e.unref(a.close_default))]),_:2},1032,["class","onClick"])),e.createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),e.createCommentVNode(" This is a bug which needs to be fixed "),e.createCommentVNode(" TODO: Fix the incorrect navigation interaction "),e.unref(c)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(e.unref(s).m("close-tip"))},e.toDisplayString(e.unref(l)("el.upload.deleteTip")),3)),p.listType==="picture-card"?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(e.unref(r).be("list","item-actions"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r).be("list","item-preview")),onClick:h=>p.handlePreview(m)},[e.createVNode(e.unref(a.ElIcon),{class:e.normalizeClass(e.unref(s).m("zoom-in"))},{default:e.withCtx(()=>[e.createVNode(e.unref(a.zoom_in_default))]),_:1},8,["class"])],10,["onClick"]),e.unref(c)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r).be("list","item-delete")),onClick:h=>f(m)},[e.createVNode(e.unref(a.ElIcon),{class:e.normalizeClass(e.unref(s).m("delete"))},{default:e.withCtx(()=>[e.createVNode(e.unref(a.delete_default))]),_:1},8,["class"])],10,["onClick"]))],2)):e.createCommentVNode("v-if",!0)])],42,["tabindex","aria-disabled","onKeydown","onFocus","onBlur","onClick"]))),128)),e.renderSlot(p.$slots,"append")]),_:3},8,["class","name"]))}});var sf=a._export_sfc(_O,[["__file","upload-list.vue"]]);const BO=a.buildProps({disabled:Boolean}),PO={file:t=>a.isArray$1(t)},tv="ElUploadDrag",VO=e.defineComponent({name:tv}),DO=e.defineComponent({...VO,props:BO,emits:PO,setup(t,{emit:n}){e.inject(ev)||a.throwError(tv,"usage: <el-upload><el-upload-dragger /></el-upload>");const l=a.useNamespace("upload"),r=e.ref(!1),s=L.useFormDisabled(),i=d=>{if(s.value)return;r.value=!1,d.stopPropagation();const f=Array.from(d.dataTransfer.files),p=d.dataTransfer.items||[];f.forEach((v,m)=>{var y;const h=p[m],g=(y=h==null?void 0:h.webkitGetAsEntry)==null?void 0:y.call(h);g&&(v.isDirectory=g.isDirectory)}),n("file",f)},c=()=>{s.value||(r.value=!0)},u=d=>{d.currentTarget.contains(d.relatedTarget)||(r.value=!1)};return(d,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l).b("dragger"),e.unref(l).is("dragover",r.value)]),onDrop:e.withModifiers(i,["prevent"]),onDragover:e.withModifiers(c,["prevent"]),onDragleave:e.withModifiers(u,["prevent"])},[e.renderSlot(d.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var IO=a._export_sfc(DO,[["__file","upload-dragger.vue"]]);const OO=a.buildProps({...To.uploadBaseProps,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},onRemove:{type:a.definePropType(Function),default:a.NOOP},onStart:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP}}),$O=e.defineComponent({name:"ElUploadContent",inheritAttrs:!1}),MO=e.defineComponent({...$O,props:OO,setup(t,{expose:n}){const o=t,l=a.useNamespace("upload"),r=L.useFormDisabled(),s=e.shallowRef({}),i=e.shallowRef(),c=h=>{if(h.length===0)return;const{autoUpload:g,limit:C,fileList:E,multiple:k,onStart:b,onExceed:w}=o;if(C&&E.length+h.length>C){w(h,E);return}k||(h=h.slice(0,1));for(const S of h){const _=S;_.uid=To.genFileId(),b(_),g&&u(_)}},u=async h=>{if(i.value.value="",!o.beforeUpload)return f(h);let g,C={};try{const k=o.data,b=o.beforeUpload(h);C=a.isPlainObject(o.data)?a.cloneDeep(o.data):o.data,g=await b,a.isPlainObject(o.data)&&a.isEqual(k,C)&&(C=a.cloneDeep(o.data))}catch{g=!1}if(g===!1){o.onRemove(h);return}let E=h;g instanceof Blob&&(g instanceof File?E=g:E=new File([g],h.name,{type:h.type})),f(Object.assign(E,{uid:h.uid}),C)},d=async(h,g)=>a.isFunction(h)?h(g):h,f=async(h,g)=>{const{headers:C,data:E,method:k,withCredentials:b,name:w,action:S,onProgress:_,onSuccess:P,onError:B,httpRequest:T}=o;try{g=await d(g??E,h)}catch{o.onRemove(h);return}const{uid:N}=h,V={headers:C||{},withCredentials:b,file:h,data:g,method:k,filename:w,action:S,onProgress:j=>{_(j,h)},onSuccess:j=>{P(j,h),delete s.value[N]},onError:j=>{B(j,h),delete s.value[N]}},R=T(V);s.value[N]=R,R instanceof Promise&&R.then(V.onSuccess,V.onError)},p=h=>{const g=h.target.files;g&&c(Array.from(g))},v=()=>{r.value||(i.value.value="",i.value.click())},m=()=>{v()};return n({abort:h=>{a.entriesOf(s.value).filter(h?([C])=>String(h.uid)===C:()=>!0).forEach(([C,E])=>{E instanceof XMLHttpRequest&&E.abort(),delete s.value[C]})},upload:u}),(h,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l).b(),e.unref(l).m(h.listType),e.unref(l).is("drag",h.drag),e.unref(l).is("disabled",e.unref(r))]),tabindex:e.unref(r)?void 0:0,"aria-disabled":e.unref(r),role:"button",onClick:v,onKeydown:e.withKeys(e.withModifiers(m,["self"]),["enter","space"])},[h.drag?(e.openBlock(),e.createBlock(IO,{key:0,disabled:e.unref(r),onFile:c},{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:3},8,["disabled"])):e.renderSlot(h.$slots,"default",{key:1}),e.createElementVNode("input",{ref_key:"inputRef",ref:i,class:e.normalizeClass(e.unref(l).e("input")),name:h.name,disabled:e.unref(r),multiple:h.multiple,accept:h.accept,type:"file",onChange:p,onClick:e.withModifiers(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","aria-disabled","onKeydown"]))}});var cf=a._export_sfc(MO,[["__file","upload-content.vue"]]);const uf="ElUpload",df=t=>{var n;(n=t.url)!=null&&n.startsWith("blob:")&&URL.revokeObjectURL(t.url)},xO=(t,n)=>{const o=a.useVModel(t,"fileList",void 0,{passive:!0}),l=m=>o.value.find(y=>y.uid===m.uid);function r(m){var y;(y=n.value)==null||y.abort(m)}function s(m=["ready","uploading","success","fail"]){o.value=o.value.filter(y=>!m.includes(y.status))}function i(m){o.value=o.value.filter(y=>y.uid!==m.uid)}const c=(m,y)=>{const h=l(y);h&&(console.error(m),h.status="fail",i(h),t.onError(m,h,o.value),t.onChange(h,o.value))},u=(m,y)=>{const h=l(y);h&&(t.onProgress(m,h,o.value),h.status="uploading",h.percentage=Math.round(m.percent))},d=(m,y)=>{const h=l(y);h&&(h.status="success",h.response=m,t.onSuccess(m,h,o.value),t.onChange(h,o.value))},f=m=>{a.isNil(m.uid)&&(m.uid=To.genFileId());const y={name:m.name,percentage:0,status:"ready",size:m.size,raw:m,uid:m.uid};if(t.listType==="picture-card"||t.listType==="picture")try{y.url=URL.createObjectURL(m)}catch(h){a.debugWarn(uf,h.message),t.onError(h,y,o.value)}o.value=[...o.value,y],t.onChange(y,o.value)},p=async m=>{const y=m instanceof File?l(m):m;y||a.throwError(uf,"file to be removed not found");const h=g=>{r(g),i(g),t.onRemove(g,o.value),df(g)};t.beforeRemove?await t.beforeRemove(y,o.value)!==!1&&h(y):h(y)};function v(){o.value.filter(({status:m})=>m==="ready").forEach(({raw:m})=>{var y;return m&&((y=n.value)==null?void 0:y.upload(m))})}return e.watch(()=>t.listType,m=>{m!=="picture-card"&&m!=="picture"||(o.value=o.value.map(y=>{const{raw:h,url:g}=y;if(!g&&h)try{y.url=URL.createObjectURL(h)}catch(C){t.onError(C,y,o.value)}return y}))}),e.watch(o,m=>{for(const y of m)y.uid||(y.uid=To.genFileId()),y.status||(y.status="success")},{immediate:!0,deep:!0}),{uploadFiles:o,abort:r,clearFiles:s,handleError:c,handleProgress:u,handleStart:f,handleSuccess:d,handleRemove:p,submit:v,revokeFileObjectURL:df}},AO=e.defineComponent({name:"ElUpload"}),zO=e.defineComponent({...AO,props:To.uploadProps,setup(t,{expose:n}){const o=t,l=L.useFormDisabled(),r=e.shallowRef(),{abort:s,submit:i,clearFiles:c,uploadFiles:u,handleStart:d,handleError:f,handleRemove:p,handleSuccess:v,handleProgress:m,revokeFileObjectURL:y}=xO(o,r),h=e.computed(()=>o.listType==="picture-card"),g=e.computed(()=>({...o,fileList:u.value,onStart:d,onProgress:m,onSuccess:v,onError:f,onRemove:p}));return e.onBeforeUnmount(()=>{u.value.forEach(y)}),e.provide(ev,{accept:e.toRef(o,"accept")}),n({abort:s,submit:i,clearFiles:c,handleStart:d,handleRemove:p}),(C,E)=>(e.openBlock(),e.createElementBlock("div",null,[e.unref(h)&&C.showFileList?(e.openBlock(),e.createBlock(sf,{key:0,disabled:e.unref(l),"list-type":C.listType,files:e.unref(u),crossorigin:C.crossorigin,"handle-preview":C.onPreview,onRemove:e.unref(p)},e.createSlots({append:e.withCtx(()=>[e.createVNode(cf,e.mergeProps({ref_key:"uploadRef",ref:r},e.unref(g)),{default:e.withCtx(()=>[C.$slots.trigger?e.renderSlot(C.$slots,"trigger",{key:0}):e.createCommentVNode("v-if",!0),!C.$slots.trigger&&C.$slots.default?e.renderSlot(C.$slots,"default",{key:1}):e.createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[C.$slots.file?{name:"default",fn:e.withCtx(({file:k,index:b})=>[e.renderSlot(C.$slots,"file",{file:k,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):e.createCommentVNode("v-if",!0),!e.unref(h)||e.unref(h)&&!C.showFileList?(e.openBlock(),e.createBlock(cf,e.mergeProps({key:1,ref_key:"uploadRef",ref:r},e.unref(g)),{default:e.withCtx(()=>[C.$slots.trigger?e.renderSlot(C.$slots,"trigger",{key:0}):e.createCommentVNode("v-if",!0),!C.$slots.trigger&&C.$slots.default?e.renderSlot(C.$slots,"default",{key:1}):e.createCommentVNode("v-if",!0)]),_:3},16)):e.createCommentVNode("v-if",!0),C.$slots.trigger?e.renderSlot(C.$slots,"default",{key:2}):e.createCommentVNode("v-if",!0),e.renderSlot(C.$slots,"tip"),!e.unref(h)&&C.showFileList?(e.openBlock(),e.createBlock(sf,{key:3,disabled:e.unref(l),"list-type":C.listType,files:e.unref(u),crossorigin:C.crossorigin,"handle-preview":C.onPreview,onRemove:e.unref(p)},e.createSlots({_:2},[C.$slots.file?{name:"default",fn:e.withCtx(({file:k,index:b})=>[e.renderSlot(C.$slots,"file",{file:k,index:b})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):e.createCommentVNode("v-if",!0)]))}});var RO=a._export_sfc(zO,[["__file","upload.vue"]]);const LO=a.withInstall(RO),FO=a.buildProps({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:a.definePropType([String,Array]),default:"Element Plus"},font:{type:a.definePropType(Object)},gap:{type:a.definePropType(Array),default:()=>[100,100]},offset:{type:a.definePropType(Array)}});function KO(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function HO(t){return Object.keys(t).map(n=>`${KO(n)}: ${t[n]};`).join(" ")}function jO(){return window.devicePixelRatio||1}const WO=(t,n)=>{let o=!1;return t.removedNodes.length&&n&&(o=Array.from(t.removedNodes).includes(n)),t.type==="attributes"&&t.target===n&&(o=!0),o},UO={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function Jr(t,n,o=1){const l=document.createElement("canvas"),r=l.getContext("2d"),s=t*o,i=n*o;return l.setAttribute("width",`${s}px`),l.setAttribute("height",`${i}px`),r.save(),[r,l,s,i]}function qO(){function t(n,o,l,r,s,i,c,u,d){const[f,p,v,m]=Jr(r,s,l);if(n instanceof HTMLImageElement)f.drawImage(n,0,0,v,m);else{const{color:x,fontSize:K,fontStyle:Y,fontWeight:W,fontFamily:te,textAlign:re,textBaseline:Q}=i,X=Number(K)*l;f.font=`${Y} normal ${W} ${X}px/${s}px ${te}`,f.fillStyle=x,f.textAlign=re,f.textBaseline=Q;const G=a.isArray$1(n)?n:[n];G==null||G.forEach((I,H)=>{const[Z,J]=UO[re];f.fillText(I??"",v*Z+d*J,H*(X+i.fontGap*l))})}const y=Math.PI/180*Number(o),h=Math.max(r,s),[g,C,E]=Jr(h,h,l);g.translate(E/2,E/2),g.rotate(y),v>0&&m>0&&g.drawImage(p,-v/2,-m/2);function k(x,K){const Y=x*Math.cos(y)-K*Math.sin(y),W=x*Math.sin(y)+K*Math.cos(y);return[Y,W]}let b=0,w=0,S=0,_=0;const P=v/2,B=m/2;[[0-P,0-B],[0+P,0-B],[0+P,0+B],[0-P,0+B]].forEach(([x,K])=>{const[Y,W]=k(x,K);b=Math.min(b,Y),w=Math.max(w,Y),S=Math.min(S,W),_=Math.max(_,W)});const N=b+E/2,V=S+E/2,R=w-b,j=_-S,q=c*l,D=u*l,$=(R+q)*2,A=j+D,[O,M]=Jr($,A);function F(x=0,K=0){O.drawImage(C,N,V,R,j,x,K,R,j)}return F(),F(R+q,-j/2-D/2),F(R+q,+j/2+D/2),[M.toDataURL(),$/l,A/l]}return t}const YO=e.defineComponent({name:"ElWatermark"}),GO=e.defineComponent({...YO,props:FO,setup(t){const n=t,o={position:"relative"},l=e.computed(()=>{var N,V;return(V=(N=n.font)==null?void 0:N.fontGap)!=null?V:3}),r=e.computed(()=>{var N,V;return(V=(N=n.font)==null?void 0:N.color)!=null?V:"rgba(0,0,0,.15)"}),s=e.computed(()=>{var N,V;return(V=(N=n.font)==null?void 0:N.fontSize)!=null?V:16}),i=e.computed(()=>{var N,V;return(V=(N=n.font)==null?void 0:N.fontWeight)!=null?V:"normal"}),c=e.computed(()=>{var N,V;return(V=(N=n.font)==null?void 0:N.fontStyle)!=null?V:"normal"}),u=e.computed(()=>{var N,V;return(V=(N=n.font)==null?void 0:N.fontFamily)!=null?V:"sans-serif"}),d=e.computed(()=>{var N,V;return(V=(N=n.font)==null?void 0:N.textAlign)!=null?V:"center"}),f=e.computed(()=>{var N,V;return(V=(N=n.font)==null?void 0:N.textBaseline)!=null?V:"hanging"}),p=e.computed(()=>n.gap[0]),v=e.computed(()=>n.gap[1]),m=e.computed(()=>p.value/2),y=e.computed(()=>v.value/2),h=e.computed(()=>{var N,V;return(V=(N=n.offset)==null?void 0:N[0])!=null?V:m.value}),g=e.computed(()=>{var N,V;return(V=(N=n.offset)==null?void 0:N[1])!=null?V:y.value}),C=()=>{const N={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let V=h.value-m.value,R=g.value-y.value;return V>0&&(N.left=`${V}px`,N.width=`calc(100% - ${V}px)`,V=0),R>0&&(N.top=`${R}px`,N.height=`calc(100% - ${R}px)`,R=0),N.backgroundPosition=`${V}px ${R}px`,N},E=e.shallowRef(null),k=e.shallowRef(),b=e.ref(!1),w=()=>{k.value&&(k.value.remove(),k.value=void 0)},S=(N,V)=>{var R;E.value&&k.value&&(b.value=!0,k.value.setAttribute("style",HO({...C(),backgroundImage:`url('${N}')`,backgroundSize:`${Math.floor(V)}px`})),(R=E.value)==null||R.append(k.value),setTimeout(()=>{b.value=!1}))},_=N=>{let V=120,R=64,j=0;const{image:q,content:D,width:$,height:A,rotate:O}=n;if(!q&&N.measureText){N.font=`${Number(s.value)}px ${u.value}`;const M=a.isArray$1(D)?D:[D];let F=0,x=0;M.forEach(Y=>{const{width:W,fontBoundingBoxAscent:te,fontBoundingBoxDescent:re,actualBoundingBoxAscent:Q,actualBoundingBoxDescent:X}=N.measureText(Y),G=a.isUndefined(te)?Q+X:te+re;W>F&&(F=Math.ceil(W)),G>x&&(x=Math.ceil(G))}),V=F,R=x*M.length+(M.length-1)*l.value;const K=Math.PI/180*Number(O);j=Math.ceil(Math.abs(Math.sin(K)*R)/2),V+=j}return[$??V,A??R,j]},P=qO(),B=()=>{const V=document.createElement("canvas").getContext("2d"),R=n.image,j=n.content,q=n.rotate;if(V){k.value||(k.value=document.createElement("div"));const D=jO(),[$,A,O]=_(V),M=F=>{const[x,K]=P(F||"",q,D,$,A,{color:r.value,fontSize:s.value,fontStyle:c.value,fontWeight:i.value,fontFamily:u.value,fontGap:l.value,textAlign:d.value,textBaseline:f.value},p.value,v.value,O);S(x,K)};if(R){const F=new Image;F.onload=()=>{M(F)},F.onerror=()=>{M(j)},F.crossOrigin="anonymous",F.referrerPolicy="no-referrer",F.src=R}else M(j)}};e.onMounted(()=>{B()}),e.watch(()=>n,()=>{B()},{deep:!0,flush:"post"}),e.onBeforeUnmount(()=>{w()});const T=N=>{b.value||N.forEach(V=>{WO(V,k.value)&&(w(),B())})};return a.useMutationObserver(E,T,{attributes:!0,subtree:!0,childList:!0}),(N,V)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,style:e.normalizeStyle([o])},[e.renderSlot(N.$slots,"default")],4))}});var XO=a._export_sfc(GO,[["__file","watermark.vue"]]);const JO=a.withInstall(XO),ZO=a.buildProps({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:a.definePropType(Object)},targetAreaClickable:{type:Boolean,default:!0}}),zo=Math.min,lo=Math.max,dr=Math.round,ba=Math.floor,mn=t=>({x:t,y:t}),QO={left:"right",right:"left",bottom:"top",top:"bottom"},e$={start:"end",end:"start"};function qs(t,n,o){return lo(t,zo(n,o))}function ca(t,n){return typeof t=="function"?t(n):t}function so(t){return t.split("-")[0]}function ua(t){return t.split("-")[1]}function nv(t){return t==="x"?"y":"x"}function tc(t){return t==="y"?"height":"width"}const t$=new Set(["top","bottom"]);function Fn(t){return t$.has(so(t))?"y":"x"}function nc(t){return nv(Fn(t))}function n$(t,n,o){o===void 0&&(o=!1);const l=ua(t),r=nc(t),s=tc(r);let i=r==="x"?l===(o?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(i=fr(i)),[i,fr(i)]}function o$(t){const n=fr(t);return[Ys(t),n,Ys(n)]}function Ys(t){return t.replace(/start|end/g,n=>e$[n])}const ff=["left","right"],pf=["right","left"],l$=["top","bottom"],a$=["bottom","top"];function r$(t,n,o){switch(t){case"top":case"bottom":return o?n?pf:ff:n?ff:pf;case"left":case"right":return n?l$:a$;default:return[]}}function s$(t,n,o,l){const r=ua(t);let s=r$(so(t),o==="start",l);return r&&(s=s.map(i=>i+"-"+r),n&&(s=s.concat(s.map(Ys)))),s}function fr(t){return t.replace(/left|right|bottom|top/g,n=>QO[n])}function i$(t){return{top:0,right:0,bottom:0,left:0,...t}}function ov(t){return typeof t!="number"?i$(t):{top:t,right:t,bottom:t,left:t}}function pr(t){const{x:n,y:o,width:l,height:r}=t;return{width:l,height:r,top:o,left:n,right:n+l,bottom:o+r,x:n,y:o}}function mf(t,n,o){let{reference:l,floating:r}=t;const s=Fn(n),i=nc(n),c=tc(i),u=so(n),d=s==="y",f=l.x+l.width/2-r.width/2,p=l.y+l.height/2-r.height/2,v=l[c]/2-r[c]/2;let m;switch(u){case"top":m={x:f,y:l.y-r.height};break;case"bottom":m={x:f,y:l.y+l.height};break;case"right":m={x:l.x+l.width,y:p};break;case"left":m={x:l.x-r.width,y:p};break;default:m={x:l.x,y:l.y}}switch(ua(n)){case"start":m[i]-=v*(o&&d?-1:1);break;case"end":m[i]+=v*(o&&d?-1:1);break}return m}const c$=async(t,n,o)=>{const{placement:l="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,c=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(n));let d=await i.getElementRects({reference:t,floating:n,strategy:r}),{x:f,y:p}=mf(d,l,u),v=l,m={},y=0;for(let h=0;h<c.length;h++){const{name:g,fn:C}=c[h],{x:E,y:k,data:b,reset:w}=await C({x:f,y:p,initialPlacement:l,placement:v,strategy:r,middlewareData:m,rects:d,platform:i,elements:{reference:t,floating:n}});f=E??f,p=k??p,m={...m,[g]:{...m[g],...b}},w&&y<=50&&(y++,typeof w=="object"&&(w.placement&&(v=w.placement),w.rects&&(d=w.rects===!0?await i.getElementRects({reference:t,floating:n,strategy:r}):w.rects),{x:f,y:p}=mf(d,v,u)),h=-1)}return{x:f,y:p,placement:v,strategy:r,middlewareData:m}};async function oc(t,n){var o;n===void 0&&(n={});const{x:l,y:r,platform:s,rects:i,elements:c,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:v=!1,padding:m=0}=ca(n,t),y=ov(m),g=c[v?p==="floating"?"reference":"floating":p],C=pr(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(g)))==null||o?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:f,strategy:u})),E=p==="floating"?{x:l,y:r,width:i.floating.width,height:i.floating.height}:i.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),b=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},w=pr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:k,strategy:u}):E);return{top:(C.top-w.top+y.top)/b.y,bottom:(w.bottom-C.bottom+y.bottom)/b.y,left:(C.left-w.left+y.left)/b.x,right:(w.right-C.right+y.right)/b.x}}const u$=t=>({name:"arrow",options:t,async fn(n){const{x:o,y:l,placement:r,rects:s,platform:i,elements:c,middlewareData:u}=n,{element:d,padding:f=0}=ca(t,n)||{};if(d==null)return{};const p=ov(f),v={x:o,y:l},m=nc(r),y=tc(m),h=await i.getDimensions(d),g=m==="y",C=g?"top":"left",E=g?"bottom":"right",k=g?"clientHeight":"clientWidth",b=s.reference[y]+s.reference[m]-v[m]-s.floating[y],w=v[m]-s.reference[m],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let _=S?S[k]:0;(!_||!await(i.isElement==null?void 0:i.isElement(S)))&&(_=c.floating[k]||s.floating[y]);const P=b/2-w/2,B=_/2-h[y]/2-1,T=zo(p[C],B),N=zo(p[E],B),V=T,R=_-h[y]-N,j=_/2-h[y]/2+P,q=qs(V,j,R),D=!u.arrow&&ua(r)!=null&&j!==q&&s.reference[y]/2-(j<V?T:N)-h[y]/2<0,$=D?j<V?j-V:j-R:0;return{[m]:v[m]+$,data:{[m]:q,centerOffset:j-q-$,...D&&{alignmentOffset:$}},reset:D}}}),d$=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var o,l;const{placement:r,middlewareData:s,rects:i,initialPlacement:c,platform:u,elements:d}=n,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...g}=ca(t,n);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const C=so(r),E=Fn(c),k=so(c)===c,b=await(u.isRTL==null?void 0:u.isRTL(d.floating)),w=v||(k||!h?[fr(c)]:o$(c)),S=y!=="none";!v&&S&&w.push(...s$(c,h,y,b));const _=[c,...w],P=await oc(n,g),B=[];let T=((l=s.flip)==null?void 0:l.overflows)||[];if(f&&B.push(P[C]),p){const j=n$(r,i,b);B.push(P[j[0]],P[j[1]])}if(T=[...T,{placement:r,overflows:B}],!B.every(j=>j<=0)){var N,V;const j=(((N=s.flip)==null?void 0:N.index)||0)+1,q=_[j];if(q&&(!(p==="alignment"?E!==Fn(q):!1)||T.every(A=>Fn(A.placement)===E?A.overflows[0]>0:!0)))return{data:{index:j,overflows:T},reset:{placement:q}};let D=(V=T.filter($=>$.overflows[0]<=0).sort(($,A)=>$.overflows[1]-A.overflows[1])[0])==null?void 0:V.placement;if(!D)switch(m){case"bestFit":{var R;const $=(R=T.filter(A=>{if(S){const O=Fn(A.placement);return O===E||O==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(O=>O>0).reduce((O,M)=>O+M,0)]).sort((A,O)=>A[1]-O[1])[0])==null?void 0:R[0];$&&(D=$);break}case"initialPlacement":D=c;break}if(r!==D)return{reset:{placement:D}}}return{}}}},f$=new Set(["left","top"]);async function p$(t,n){const{placement:o,platform:l,elements:r}=t,s=await(l.isRTL==null?void 0:l.isRTL(r.floating)),i=so(o),c=ua(o),u=Fn(o)==="y",d=f$.has(i)?-1:1,f=s&&u?-1:1,p=ca(n,t);let{mainAxis:v,crossAxis:m,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof y=="number"&&(m=c==="end"?y*-1:y),u?{x:m*f,y:v*d}:{x:v*d,y:m*f}}const m$=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var o,l;const{x:r,y:s,placement:i,middlewareData:c}=n,u=await p$(n,t);return i===((o=c.offset)==null?void 0:o.placement)&&(l=c.arrow)!=null&&l.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:i}}}}},h$=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:o,y:l,placement:r}=n,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:g=>{let{x:C,y:E}=g;return{x:C,y:E}}},...u}=ca(t,n),d={x:o,y:l},f=await oc(n,u),p=Fn(so(r)),v=nv(p);let m=d[v],y=d[p];if(s){const g=v==="y"?"top":"left",C=v==="y"?"bottom":"right",E=m+f[g],k=m-f[C];m=qs(E,m,k)}if(i){const g=p==="y"?"top":"left",C=p==="y"?"bottom":"right",E=y+f[g],k=y-f[C];y=qs(E,y,k)}const h=c.fn({...n,[v]:m,[p]:y});return{...h,data:{x:h.x-o,y:h.y-l,enabled:{[v]:s,[p]:i}}}}}};function _r(){return typeof window<"u"}function Ko(t){return lv(t)?(t.nodeName||"").toLowerCase():"#document"}function Ht(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function gn(t){var n;return(n=(lv(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function lv(t){return _r()?t instanceof Node||t instanceof Ht(t).Node:!1}function en(t){return _r()?t instanceof Element||t instanceof Ht(t).Element:!1}function vn(t){return _r()?t instanceof HTMLElement||t instanceof Ht(t).HTMLElement:!1}function hf(t){return!_r()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ht(t).ShadowRoot}const v$=new Set(["inline","contents"]);function da(t){const{overflow:n,overflowX:o,overflowY:l,display:r}=tn(t);return/auto|scroll|overlay|hidden|clip/.test(n+l+o)&&!v$.has(r)}const g$=new Set(["table","td","th"]);function y$(t){return g$.has(Ko(t))}const b$=[":popover-open",":modal"];function Br(t){return b$.some(n=>{try{return t.matches(n)}catch{return!1}})}const C$=["transform","translate","scale","rotate","perspective"],k$=["transform","translate","scale","rotate","perspective","filter"],E$=["paint","layout","strict","content"];function lc(t){const n=ac(),o=en(t)?tn(t):t;return C$.some(l=>o[l]?o[l]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!n&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!n&&(o.filter?o.filter!=="none":!1)||k$.some(l=>(o.willChange||"").includes(l))||E$.some(l=>(o.contain||"").includes(l))}function w$(t){let n=Hn(t);for(;vn(n)&&!Ro(n);){if(lc(n))return n;if(Br(n))return null;n=Hn(n)}return null}function ac(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const S$=new Set(["html","body","#document"]);function Ro(t){return S$.has(Ko(t))}function tn(t){return Ht(t).getComputedStyle(t)}function Pr(t){return en(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Hn(t){if(Ko(t)==="html")return t;const n=t.assignedSlot||t.parentNode||hf(t)&&t.host||gn(t);return hf(n)?n.host:n}function av(t){const n=Hn(t);return Ro(n)?t.ownerDocument?t.ownerDocument.body:t.body:vn(n)&&da(n)?n:av(n)}function Jl(t,n,o){var l;n===void 0&&(n=[]),o===void 0&&(o=!0);const r=av(t),s=r===((l=t.ownerDocument)==null?void 0:l.body),i=Ht(r);if(s){const c=Gs(i);return n.concat(i,i.visualViewport||[],da(r)?r:[],c&&o?Jl(c):[])}return n.concat(r,Jl(r,[],o))}function Gs(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rv(t){const n=tn(t);let o=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const r=vn(t),s=r?t.offsetWidth:o,i=r?t.offsetHeight:l,c=dr(o)!==s||dr(l)!==i;return c&&(o=s,l=i),{width:o,height:l,$:c}}function rc(t){return en(t)?t:t.contextElement}function So(t){const n=rc(t);if(!vn(n))return mn(1);const o=n.getBoundingClientRect(),{width:l,height:r,$:s}=rv(n);let i=(s?dr(o.width):o.width)/l,c=(s?dr(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const N$=mn(0);function sv(t){const n=Ht(t);return!ac()||!n.visualViewport?N$:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function T$(t,n,o){return n===void 0&&(n=!1),!o||n&&o!==Ht(t)?!1:n}function io(t,n,o,l){n===void 0&&(n=!1),o===void 0&&(o=!1);const r=t.getBoundingClientRect(),s=rc(t);let i=mn(1);n&&(l?en(l)&&(i=So(l)):i=So(t));const c=T$(s,o,l)?sv(s):mn(0);let u=(r.left+c.x)/i.x,d=(r.top+c.y)/i.y,f=r.width/i.x,p=r.height/i.y;if(s){const v=Ht(s),m=l&&en(l)?Ht(l):l;let y=v,h=Gs(y);for(;h&&l&&m!==y;){const g=So(h),C=h.getBoundingClientRect(),E=tn(h),k=C.left+(h.clientLeft+parseFloat(E.paddingLeft))*g.x,b=C.top+(h.clientTop+parseFloat(E.paddingTop))*g.y;u*=g.x,d*=g.y,f*=g.x,p*=g.y,u+=k,d+=b,y=Ht(h),h=Gs(y)}}return pr({width:f,height:p,x:u,y:d})}function Vr(t,n){const o=Pr(t).scrollLeft;return n?n.left+o:io(gn(t)).left+o}function iv(t,n){const o=t.getBoundingClientRect(),l=o.left+n.scrollLeft-Vr(t,o),r=o.top+n.scrollTop;return{x:l,y:r}}function _$(t){let{elements:n,rect:o,offsetParent:l,strategy:r}=t;const s=r==="fixed",i=gn(l),c=n?Br(n.floating):!1;if(l===i||c&&s)return o;let u={scrollLeft:0,scrollTop:0},d=mn(1);const f=mn(0),p=vn(l);if((p||!p&&!s)&&((Ko(l)!=="body"||da(i))&&(u=Pr(l)),vn(l))){const m=io(l);d=So(l),f.x=m.x+l.clientLeft,f.y=m.y+l.clientTop}const v=i&&!p&&!s?iv(i,u):mn(0);return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-u.scrollLeft*d.x+f.x+v.x,y:o.y*d.y-u.scrollTop*d.y+f.y+v.y}}function B$(t){return Array.from(t.getClientRects())}function P$(t){const n=gn(t),o=Pr(t),l=t.ownerDocument.body,r=lo(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),s=lo(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let i=-o.scrollLeft+Vr(t);const c=-o.scrollTop;return tn(l).direction==="rtl"&&(i+=lo(n.clientWidth,l.clientWidth)-r),{width:r,height:s,x:i,y:c}}const vf=25;function V$(t,n){const o=Ht(t),l=gn(t),r=o.visualViewport;let s=l.clientWidth,i=l.clientHeight,c=0,u=0;if(r){s=r.width,i=r.height;const f=ac();(!f||f&&n==="fixed")&&(c=r.offsetLeft,u=r.offsetTop)}const d=Vr(l);if(d<=0){const f=l.ownerDocument,p=f.body,v=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,y=Math.abs(l.clientWidth-p.clientWidth-m);y<=vf&&(s-=y)}else d<=vf&&(s+=d);return{width:s,height:i,x:c,y:u}}const D$=new Set(["absolute","fixed"]);function I$(t,n){const o=io(t,!0,n==="fixed"),l=o.top+t.clientTop,r=o.left+t.clientLeft,s=vn(t)?So(t):mn(1),i=t.clientWidth*s.x,c=t.clientHeight*s.y,u=r*s.x,d=l*s.y;return{width:i,height:c,x:u,y:d}}function gf(t,n,o){let l;if(n==="viewport")l=V$(t,o);else if(n==="document")l=P$(gn(t));else if(en(n))l=I$(n,o);else{const r=sv(t);l={x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}return pr(l)}function cv(t,n){const o=Hn(t);return o===n||!en(o)||Ro(o)?!1:tn(o).position==="fixed"||cv(o,n)}function O$(t,n){const o=n.get(t);if(o)return o;let l=Jl(t,[],!1).filter(c=>en(c)&&Ko(c)!=="body"),r=null;const s=tn(t).position==="fixed";let i=s?Hn(t):t;for(;en(i)&&!Ro(i);){const c=tn(i),u=lc(i);!u&&c.position==="fixed"&&(r=null),(s?!u&&!r:!u&&c.position==="static"&&!!r&&D$.has(r.position)||da(i)&&!u&&cv(t,i))?l=l.filter(f=>f!==i):r=c,i=Hn(i)}return n.set(t,l),l}function $$(t){let{element:n,boundary:o,rootBoundary:l,strategy:r}=t;const i=[...o==="clippingAncestors"?Br(n)?[]:O$(n,this._c):[].concat(o),l],c=i[0],u=i.reduce((d,f)=>{const p=gf(n,f,r);return d.top=lo(p.top,d.top),d.right=zo(p.right,d.right),d.bottom=zo(p.bottom,d.bottom),d.left=lo(p.left,d.left),d},gf(n,c,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function M$(t){const{width:n,height:o}=rv(t);return{width:n,height:o}}function x$(t,n,o){const l=vn(n),r=gn(n),s=o==="fixed",i=io(t,!0,s,n);let c={scrollLeft:0,scrollTop:0};const u=mn(0);function d(){u.x=Vr(r)}if(l||!l&&!s)if((Ko(n)!=="body"||da(r))&&(c=Pr(n)),l){const m=io(n,!0,s,n);u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}else r&&d();s&&!l&&r&&d();const f=r&&!l&&!s?iv(r,c):mn(0),p=i.left+c.scrollLeft-u.x-f.x,v=i.top+c.scrollTop-u.y-f.y;return{x:p,y:v,width:i.width,height:i.height}}function Zr(t){return tn(t).position==="static"}function yf(t,n){if(!vn(t)||tn(t).position==="fixed")return null;if(n)return n(t);let o=t.offsetParent;return gn(t)===o&&(o=o.ownerDocument.body),o}function uv(t,n){const o=Ht(t);if(Br(t))return o;if(!vn(t)){let r=Hn(t);for(;r&&!Ro(r);){if(en(r)&&!Zr(r))return r;r=Hn(r)}return o}let l=yf(t,n);for(;l&&y$(l)&&Zr(l);)l=yf(l,n);return l&&Ro(l)&&Zr(l)&&!lc(l)?o:l||w$(t)||o}const A$=async function(t){const n=this.getOffsetParent||uv,o=this.getDimensions,l=await o(t.floating);return{reference:x$(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function z$(t){return tn(t).direction==="rtl"}const R$={convertOffsetParentRelativeRectToViewportRelativeRect:_$,getDocumentElement:gn,getClippingRect:$$,getOffsetParent:uv,getElementRects:A$,getClientRects:B$,getDimensions:M$,getScale:So,isElement:en,isRTL:z$};function dv(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function L$(t,n){let o=null,l;const r=gn(t);function s(){var c;clearTimeout(l),(c=o)==null||c.disconnect(),o=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const d=t.getBoundingClientRect(),{left:f,top:p,width:v,height:m}=d;if(c||n(),!v||!m)return;const y=ba(p),h=ba(r.clientWidth-(f+v)),g=ba(r.clientHeight-(p+m)),C=ba(f),k={rootMargin:-y+"px "+-h+"px "+-g+"px "+-C+"px",threshold:lo(0,zo(1,u))||1};let b=!0;function w(S){const _=S[0].intersectionRatio;if(_!==u){if(!b)return i();_?i(!1,_):l=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!dv(d,t.getBoundingClientRect())&&i(),b=!1}try{o=new IntersectionObserver(w,{...k,root:r.ownerDocument})}catch{o=new IntersectionObserver(w,k)}o.observe(t)}return i(!0),s}function F$(t,n,o,l){l===void 0&&(l={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=l,d=rc(t),f=r||s?[...d?Jl(d):[],...Jl(n)]:[];f.forEach(C=>{r&&C.addEventListener("scroll",o,{passive:!0}),s&&C.addEventListener("resize",o)});const p=d&&c?L$(d,o):null;let v=-1,m=null;i&&(m=new ResizeObserver(C=>{let[E]=C;E&&E.target===d&&m&&(m.unobserve(n),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var k;(k=m)==null||k.observe(n)})),o()}),d&&!u&&m.observe(d),m.observe(n));let y,h=u?io(t):null;u&&g();function g(){const C=io(t);h&&!dv(h,C)&&o(),h=C,y=requestAnimationFrame(g)}return o(),()=>{var C;f.forEach(E=>{r&&E.removeEventListener("scroll",o),s&&E.removeEventListener("resize",o)}),p==null||p(),(C=m)==null||C.disconnect(),m=null,u&&cancelAnimationFrame(y)}}const K$=oc,H$=m$,j$=h$,W$=d$,U$=u$,q$=(t,n,o)=>{const l=new Map,r={platform:R$,...o},s={...r.platform,_c:l};return c$(t,n,{...r,platform:s})},Y$=(t,n,o,l,r)=>{const s=e.ref(null),i=()=>{let p;return a.isString(t.value)?p=document.querySelector(t.value):a.isFunction(t.value)?p=t.value():p=t.value,p},c=()=>{const p=i();if(!p||!n.value){s.value=null;return}G$(p)||p.scrollIntoView(r.value);const{left:v,top:m,width:y,height:h}=p.getBoundingClientRect();s.value={left:v,top:m,width:y,height:h,radius:0}};e.onMounted(()=>{e.watch([n,t],()=>{c()},{immediate:!0}),window.addEventListener("resize",c)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",c)});const u=p=>{var v;return(v=a.isArray$1(o.value.offset)?o.value.offset[p]:o.value.offset)!=null?v:6},d=e.computed(()=>{var p;if(!s.value)return s.value;const v=u(0),m=u(1),y=((p=o.value)==null?void 0:p.radius)||2;return{left:s.value.left-v,top:s.value.top-m,width:s.value.width+v*2,height:s.value.height+m*2,radius:y}}),f=e.computed(()=>{const p=i();return!l.value||!p||!window.DOMRect?p||void 0:{getBoundingClientRect(){var v,m,y,h;return window.DOMRect.fromRect({width:((v=d.value)==null?void 0:v.width)||0,height:((m=d.value)==null?void 0:m.height)||0,x:((y=d.value)==null?void 0:y.left)||0,y:((h=d.value)==null?void 0:h.top)||0})}}});return{mergedPosInfo:d,triggerTarget:f}},Dr=Symbol("ElTour");function G$(t){const n=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,{top:l,right:r,bottom:s,left:i}=t.getBoundingClientRect();return l>=0&&i>=0&&r<=n&&s<=o}const X$=(t,n,o,l,r,s,i,c)=>{const u=e.ref(),d=e.ref(),f=e.ref({}),p={x:u,y:d,placement:l,strategy:r,middlewareData:f},v=e.computed(()=>{const C=[H$(e.unref(s)),W$(),j$(),J$()];return e.unref(c)&&e.unref(o)&&C.push(U$({element:e.unref(o)})),C}),m=async()=>{if(!a.isClient)return;const C=e.unref(t),E=e.unref(n);if(!C||!E)return;const k=await q$(C,E,{placement:e.unref(l),strategy:e.unref(r),middleware:e.unref(v)});a.keysOf(p).forEach(b=>{p[b].value=k[b]})},y=e.computed(()=>{if(!e.unref(t))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:e.unref(i)};const{overflow:C}=e.unref(f);return{position:e.unref(r),zIndex:e.unref(i),top:e.unref(d)!=null?`${e.unref(d)}px`:"",left:e.unref(u)!=null?`${e.unref(u)}px`:"",maxWidth:C!=null&&C.maxWidth?`${C==null?void 0:C.maxWidth}px`:""}}),h=e.computed(()=>{if(!e.unref(c))return{};const{arrow:C}=e.unref(f);return{left:(C==null?void 0:C.x)!=null?`${C==null?void 0:C.x}px`:"",top:(C==null?void 0:C.y)!=null?`${C==null?void 0:C.y}px`:""}});let g;return e.onMounted(()=>{const C=e.unref(t),E=e.unref(n);C&&E&&(g=F$(C,E,m)),e.watchEffect(()=>{m()})}),e.onBeforeUnmount(()=>{g&&g()}),{update:m,contentStyle:y,arrowStyle:h}},J$=()=>({name:"overflow",async fn(t){const n=await K$(t);let o=0;return n.left>0&&(o=n.left),n.right>0&&(o=n.right),{data:{maxWidth:t.rects.floating.width-o}}}}),Z$=e.defineComponent({name:"ElTourMask",inheritAttrs:!1}),Q$=e.defineComponent({...Z$,props:ZO,setup(t){const n=t,{ns:o}=e.inject(Dr),l=e.computed(()=>{var f,p;return(p=(f=n.pos)==null?void 0:f.radius)!=null?p:2}),r=e.computed(()=>{const f=l.value,p=`a${f},${f} 0 0 1`;return{topRight:`${p} ${f},${f}`,bottomRight:`${p} ${-f},${f}`,bottomLeft:`${p} ${-f},${-f}`,topLeft:`${p} ${f},${-f}`}}),{width:s,height:i}=a.useWindowSize(),c=e.computed(()=>{const f=s.value,p=i.value,v=r.value,m=`M${f},0 L0,0 L0,${p} L${f},${p} L${f},0 Z`,y=l.value;return n.pos?`${m} M${n.pos.left+y},${n.pos.top} h${n.pos.width-y*2} ${v.topRight} v${n.pos.height-y*2} ${v.bottomRight} h${-n.pos.width+y*2} ${v.bottomLeft} v${-n.pos.height+y*2} ${v.topLeft} z`:m}),u=e.computed(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:n.zIndex,pointerEvents:n.pos&&n.targetAreaClickable?"none":"auto"})),d=e.computed(()=>({fill:n.fill,pointerEvents:"auto",cursor:"auto"}));return L.useLockscreen(e.toRef(n,"visible"),{ns:o}),(f,p)=>f.visible?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:e.unref(o).e("mask"),style:e.unref(u)},f.$attrs),[(e.openBlock(),e.createElementBlock("svg",{style:{width:"100%",height:"100%"}},[e.createElementVNode("path",{class:e.normalizeClass(e.unref(o).e("hollow")),style:e.normalizeStyle(e.unref(d)),d:e.unref(c)},null,14,["d"])]))],16)):e.createCommentVNode("v-if",!0)}});var eM=a._export_sfc(Q$,[["__file","mask.vue"]]);const tM=["absolute","fixed"],nM=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],sc=a.buildProps({placement:{type:a.definePropType(String),values:nM,default:"bottom"},reference:{type:a.definePropType(Object),default:null},strategy:{type:a.definePropType(String),values:tM,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),oM={close:()=>!0},lM=e.defineComponent({name:"ElTourContent"}),aM=e.defineComponent({...lM,props:sc,emits:oM,setup(t,{emit:n}){const o=t,l=e.ref(o.placement),r=e.ref(o.strategy),s=e.ref(null),i=e.ref(null);e.watch(()=>o.placement,()=>{l.value=o.placement});const{contentStyle:c,arrowStyle:u}=X$(e.toRef(o,"reference"),s,i,l,r,e.toRef(o,"offset"),e.toRef(o,"zIndex"),e.toRef(o,"showArrow")),d=e.computed(()=>l.value.split("-")[0]),{ns:f}=e.inject(Dr),p=()=>{n("close")},v=m=>{m.detail.focusReason==="pointer"&&m.preventDefault()};return(m,y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"contentRef",ref:s,style:e.normalizeStyle(e.unref(c)),class:e.normalizeClass(e.unref(f).e("content")),"data-side":e.unref(d),tabindex:"-1"},[e.createVNode(e.unref(L.ElFocusTrap),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":s.value||void 0,onReleaseRequested:p,onFocusoutPrevented:v},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},8,["focus-trap-el"]),m.showArrow?(e.openBlock(),e.createElementBlock("span",{key:0,ref_key:"arrowRef",ref:i,style:e.normalizeStyle(e.unref(u)),class:e.normalizeClass(e.unref(f).e("arrow"))},null,6)):e.createCommentVNode("v-if",!0)],14,["data-side"]))}});var rM=a._export_sfc(aM,[["__file","content.vue"]]),sM=e.defineComponent({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(t,{slots:n,emit:o}){let l=0;return()=>{var r,s;const i=(r=n.default)==null?void 0:r.call(n),c=[];let u=0;function d(f){a.isArray$1(f)&&f.forEach(p=>{var v;((v=(p==null?void 0:p.type)||{})==null?void 0:v.name)==="ElTourStep"&&(c.push(p),u+=1)})}return i.length&&d(L.flattedChildren((s=i[0])==null?void 0:s.children)),l!==u&&(l=u,o("update-total",u)),c.length?c[t.current]:null}}});const iM=a.buildProps({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:a.iconPropType},placement:sc.placement,contentStyle:{type:a.definePropType([Object])},mask:{type:a.definePropType([Boolean,Object]),default:!0},gap:{type:a.definePropType(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:a.definePropType([Boolean,Object]),default:()=>({block:"center"})},type:{type:a.definePropType(String)},appendTo:{type:br.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),cM={[L.UPDATE_MODEL_EVENT]:t=>a.isBoolean(t),"update:current":t=>a.isNumber(t),close:t=>a.isNumber(t),finish:()=>!0,change:t=>a.isNumber(t)},uM=e.defineComponent({name:"ElTour"}),dM=e.defineComponent({...uM,props:iM,emits:cM,setup(t,{emit:n}){const o=t,l=a.useNamespace("tour"),r=e.ref(0),s=e.ref(),i=a.useVModel(o,"current",n,{passive:!0}),c=e.computed(()=>{var B;return(B=s.value)==null?void 0:B.target}),u=e.computed(()=>[l.b(),g.value==="primary"?l.m("primary"):""]),d=e.computed(()=>{var B;return((B=s.value)==null?void 0:B.placement)||o.placement}),f=e.computed(()=>{var B,T;return(T=(B=s.value)==null?void 0:B.contentStyle)!=null?T:o.contentStyle}),p=e.computed(()=>{var B,T;return(T=(B=s.value)==null?void 0:B.mask)!=null?T:o.mask}),v=e.computed(()=>!!p.value&&o.modelValue),m=e.computed(()=>a.isBoolean(p.value)?void 0:p.value),y=e.computed(()=>{var B,T;return!!c.value&&((T=(B=s.value)==null?void 0:B.showArrow)!=null?T:o.showArrow)}),h=e.computed(()=>{var B,T;return(T=(B=s.value)==null?void 0:B.scrollIntoViewOptions)!=null?T:o.scrollIntoViewOptions}),g=e.computed(()=>{var B,T;return(T=(B=s.value)==null?void 0:B.type)!=null?T:o.type}),{nextZIndex:C}=a.useZIndex(),E=C(),k=e.computed(()=>{var B;return(B=o.zIndex)!=null?B:E}),{mergedPosInfo:b,triggerTarget:w}=Y$(c,e.toRef(o,"modelValue"),e.toRef(o,"gap"),p,h);e.watch(()=>o.modelValue,B=>{B||(i.value=0)});const S=()=>{o.closeOnPressEscape&&(n(L.UPDATE_MODEL_EVENT,!1),n("close",i.value))},_=B=>{r.value=B},P=e.useSlots();return e.provide(Dr,{currentStep:s,current:i,total:r,showClose:e.toRef(o,"showClose"),closeIcon:e.toRef(o,"closeIcon"),mergedType:g,ns:l,slots:P,updateModelValue(B){n(L.UPDATE_MODEL_EVENT,B)},onClose(){n("close",i.value)},onFinish(){n("finish")},onChange(){n(L.CHANGE_EVENT,i.value)}}),(B,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(na),{to:B.appendTo},{default:e.withCtx(()=>{var N,V;return[e.createElementVNode("div",e.mergeProps({class:e.unref(u)},B.$attrs),[e.createVNode(eM,{visible:e.unref(v),fill:(N=e.unref(m))==null?void 0:N.color,style:e.normalizeStyle((V=e.unref(m))==null?void 0:V.style),pos:e.unref(b),"z-index":e.unref(k),"target-area-clickable":B.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),B.modelValue?(e.openBlock(),e.createBlock(rM,{key:e.unref(i),reference:e.unref(w),placement:e.unref(d),"show-arrow":e.unref(y),"z-index":e.unref(k),style:e.normalizeStyle(e.unref(f)),onClose:S},{default:e.withCtx(()=>[e.createVNode(e.unref(sM),{current:e.unref(i),onUpdateTotal:_},{default:e.withCtx(()=>[e.renderSlot(B.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):e.createCommentVNode("v-if",!0)],16)]}),_:3},8,["to"]),e.createCommentVNode(" just for IDE "),e.createCommentVNode("v-if",!0)],64))}});var fM=a._export_sfc(dM,[["__file","tour.vue"]]);const pM=a.buildProps({target:{type:a.definePropType([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:a.iconPropType},showArrow:{type:Boolean,default:void 0},placement:sc.placement,mask:{type:a.definePropType([Boolean,Object]),default:void 0},contentStyle:{type:a.definePropType([Object])},prevButtonProps:{type:a.definePropType(Object)},nextButtonProps:{type:a.definePropType(Object)},scrollIntoViewOptions:{type:a.definePropType([Boolean,Object]),default:void 0},type:{type:a.definePropType(String)}}),mM={close:()=>!0},hM=e.defineComponent({name:"ElTourStep"}),vM=e.defineComponent({...hM,props:pM,emits:mM,setup(t,{emit:n}){const o=t,{Close:l}=a.CloseComponents,{t:r}=a.useLocale(),{currentStep:s,current:i,total:c,showClose:u,closeIcon:d,mergedType:f,ns:p,slots:v,updateModelValue:m,onClose:y,onFinish:h,onChange:g}=e.inject(Dr);e.watch(o,B=>{s.value=B},{immediate:!0});const C=e.computed(()=>{var B;return(B=o.showClose)!=null?B:u.value}),E=e.computed(()=>{var B,T;return(T=(B=o.closeIcon)!=null?B:d.value)!=null?T:l}),k=B=>{if(B)return gr(B,["children","onClick"])},b=()=>{var B,T;i.value-=1,(B=o.prevButtonProps)!=null&&B.onClick&&((T=o.prevButtonProps)==null||T.onClick()),g()},w=()=>{var B;i.value>=c.value-1?S():i.value+=1,(B=o.nextButtonProps)!=null&&B.onClick&&o.nextButtonProps.onClick(),g()},S=()=>{_(),h()},_=()=>{m(!1),y(),n("close")},P=B=>{const T=B.target;if(T!=null&&T.isContentEditable)return;switch(a.getEventCode(B)){case a.EVENT_CODE.left:B.preventDefault(),i.value>0&&b();break;case a.EVENT_CODE.right:B.preventDefault(),w();break}};return e.onMounted(()=>{window.addEventListener("keydown",P)}),e.onBeforeUnmount(()=>{window.removeEventListener("keydown",P)}),(B,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(C)?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":e.unref(r)("el.tour.close"),class:e.normalizeClass(e.unref(p).e("closebtn")),type:"button",onClick:_},[e.createVNode(e.unref(a.ElIcon),{class:e.normalizeClass(e.unref(p).e("close"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(E))))]),_:1},8,["class"])],10,["aria-label"])):e.createCommentVNode("v-if",!0),e.createElementVNode("header",{class:e.normalizeClass([e.unref(p).e("header"),{"show-close":e.unref(u)}])},[e.renderSlot(B.$slots,"header",{},()=>[e.createElementVNode("span",{role:"heading",class:e.normalizeClass(e.unref(p).e("title"))},e.toDisplayString(B.title),3)])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).e("body"))},[e.renderSlot(B.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(B.description),1)])],2),e.createElementVNode("footer",{class:e.normalizeClass(e.unref(p).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).b("indicators"))},[e.unref(v).indicators?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(v).indicators),{key:0,current:e.unref(i),total:e.unref(c)},null,8,["current","total"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(c),(N,V)=>(e.openBlock(),e.createElementBlock("span",{key:N,class:e.normalizeClass([e.unref(p).b("indicator"),e.unref(p).is("active",V===e.unref(i))])},null,2))),128))],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p).b("buttons"))},[e.unref(i)>0?(e.openBlock(),e.createBlock(e.unref(L.ElButton),e.mergeProps({key:0,size:"small",type:e.unref(f)},k(B.prevButtonProps),{onClick:b}),{default:e.withCtx(()=>{var N,V;return[e.createTextVNode(e.toDisplayString((V=(N=B.prevButtonProps)==null?void 0:N.children)!=null?V:e.unref(r)("el.tour.previous")),1)]}),_:1},16,["type"])):e.createCommentVNode("v-if",!0),e.unref(i)<=e.unref(c)-1?(e.openBlock(),e.createBlock(e.unref(L.ElButton),e.mergeProps({key:1,size:"small",type:e.unref(f)==="primary"?"default":"primary"},k(B.nextButtonProps),{onClick:w}),{default:e.withCtx(()=>{var N,V;return[e.createTextVNode(e.toDisplayString((V=(N=B.nextButtonProps)==null?void 0:N.children)!=null?V:e.unref(i)===e.unref(c)-1?e.unref(r)("el.tour.finish"):e.unref(r)("el.tour.next")),1)]}),_:1},16,["type"])):e.createCommentVNode("v-if",!0)],2)],2)],64))}});var fv=a._export_sfc(vM,[["__file","step.vue"]]);const gM=a.withInstall(fM,{TourStep:fv}),yM=a.withNoopInstall(fv),bM=a.buildProps({container:{type:a.definePropType([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:a.definePropType(String),default:"default"},direction:{type:a.definePropType(String),default:"vertical"},selectScrollTop:Boolean}),CM={change:t=>a.isString(t),click:(t,n)=>t instanceof MouseEvent&&(a.isString(n)||a.isUndefined(n))},pv=Symbol("anchor"),Ca=t=>{if(!a.isClient||t==="")return null;if(a.isString(t))try{return document.querySelector(t)}catch{return null}return t};function kM(t){let n=0;const o=(...l)=>{n&&L.cAF(n),n=L.rAF(()=>{t(...l),n=0})};return o.cancel=()=>{L.cAF(n),n=0},o}const EM=e.defineComponent({name:"ElAnchor"}),wM=e.defineComponent({...EM,props:bM,emits:CM,setup(t,{expose:n,emit:o}){const l=t,r=e.useSlots(),s=e.ref(""),i=e.ref({}),c=e.ref(null),u=e.ref(null),d=e.ref(),f={};let p=!1,v=0;const m=a.useNamespace("anchor"),y=e.computed(()=>[m.b(),l.type==="underline"?m.m("underline"):"",m.m(l.direction)]),h=T=>{f[T.href]=T.el},g=T=>{delete f[T]},C=T=>{s.value!==T&&(s.value=T,o(L.CHANGE_EVENT,T))};let E=null;const k=T=>{if(!d.value)return;const N=Ca(T);if(!N)return;E&&E(),p=!0;const V=L.getScrollElement(N,d.value),R=cs(N,V),j=V.scrollHeight-V.clientHeight,q=Math.min(R-l.offset,j);E=L.animateScrollTo(d.value,v,q,l.duration,()=>{setTimeout(()=>{p=!1},20)})},b=T=>{T&&(C(T),k(T))},w=(T,N)=>{o("click",T,N),b(N)},S=kM(()=>{d.value&&(v=L.getScrollTop(d.value));const T=_();p||a.isUndefined(T)||C(T)}),_=()=>{if(!d.value)return;const T=L.getScrollTop(d.value),N=[];for(const V of Object.keys(f)){const R=Ca(V);if(!R)continue;const j=L.getScrollElement(R,d.value),q=cs(R,j);N.push({top:q-l.offset-l.bound,href:V})}N.sort((V,R)=>V.top-R.top);for(let V=0;V<N.length;V++){const R=N[V],j=N[V+1];if(V===0&&T===0)return l.selectScrollTop?R.href:"";if(R.top<=T&&(!j||j.top>T))return R.href}},P=()=>{const T=Ca(l.container);!T||a.isWindow(T)?d.value=window:d.value=T};a.useEventListener(d,"scroll",S);const B=()=>{e.nextTick(()=>{if(!c.value||!u.value||!s.value){i.value={};return}const T=f[s.value];if(!T){i.value={};return}const N=c.value.getBoundingClientRect(),V=u.value.getBoundingClientRect(),R=T.getBoundingClientRect();if(l.direction==="horizontal"){const j=R.left-N.left;i.value={left:`${j}px`,width:`${R.width}px`,opacity:1}}else{const j=R.top-N.top+(R.height-V.height)/2;i.value={top:`${j}px`,opacity:1}}})};return e.watch(s,B),e.watch(()=>{var T;return(T=r.default)==null?void 0:T.call(r)},B),e.onMounted(()=>{P();const T=decodeURIComponent(window.location.hash);Ca(T)?b(T):S()}),e.watch(()=>l.container,()=>{P()}),e.provide(pv,{ns:m,direction:l.direction,currentAnchor:s,addLink:h,removeLink:g,handleClick:w}),n({scrollTo:b}),(T,N)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"anchorRef",ref:c,class:e.normalizeClass(e.unref(y))},[T.marker?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"markerRef",ref:u,class:e.normalizeClass(e.unref(m).e("marker")),style:e.normalizeStyle(i.value)},null,6)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(m).e("list"))},[e.renderSlot(T.$slots,"default")],2)],2))}});var SM=a._export_sfc(wM,[["__file","anchor.vue"]]);const NM=a.buildProps({title:String,href:String}),TM=e.defineComponent({name:"ElAnchorLink"}),_M=e.defineComponent({...TM,props:NM,setup(t){const n=t,o=e.ref(null),{ns:l,direction:r,currentAnchor:s,addLink:i,removeLink:c,handleClick:u}=e.inject(pv),d=e.computed(()=>[l.e("link"),l.is("active",s.value===n.href)]),f=p=>{u(p,n.href)};return e.watch(()=>n.href,(p,v)=>{e.nextTick(()=>{v&&c(v),p&&i({href:p,el:o.value})})}),e.onMounted(()=>{const{href:p}=n;p&&i({href:p,el:o.value})}),e.onBeforeUnmount(()=>{const{href:p}=n;p&&c(p)}),(p,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(l).e("item"))},[e.createElementVNode("a",{ref_key:"linkRef",ref:o,class:e.normalizeClass(e.unref(d)),href:p.href,onClick:f},[e.renderSlot(p.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(p.title),1)])],10,["href"]),p.$slots["sub-link"]&&e.unref(r)==="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l).e("list"))},[e.renderSlot(p.$slots,"sub-link")],2)):e.createCommentVNode("v-if",!0)],2))}});var mv=a._export_sfc(_M,[["__file","anchor-link.vue"]]);const BM=a.withInstall(SM,{AnchorLink:mv}),PM=a.withNoopInstall(mv),hv={label:"label",value:"value",disabled:"disabled"},VM=a.buildProps({direction:{type:a.definePropType(String),default:"horizontal"},options:{type:a.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:a.definePropType(Object),default:()=>hv},block:Boolean,size:a.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...L.useAriaProps(["ariaLabel"])}),DM={[L.UPDATE_MODEL_EVENT]:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t),[L.CHANGE_EVENT]:t=>a.isString(t)||a.isNumber(t)||a.isBoolean(t)},IM=e.defineComponent({name:"ElSegmented"}),OM=e.defineComponent({...IM,props:VM,emits:DM,setup(t,{emit:n}){const o=t,l=a.useNamespace("segmented"),r=L.useId(),s=L.useFormSize(),i=L.useFormDisabled(),{formItem:c}=L.useFormItem(),{inputId:u,isLabeledByFormItem:d}=L.useFormItemInputId(o,{formItemContext:c}),f=e.ref(null),p=a.useActiveElement(),v=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),m=N=>{const V=g(N);n(L.UPDATE_MODEL_EVENT,V),n(L.CHANGE_EVENT,V)},y=e.computed(()=>({...hv,...o.props})),h=N=>N,g=N=>a.isObject$1(N)?N[y.value.value]:N,C=N=>a.isObject$1(N)?N[y.value.label]:N,E=N=>!!(i.value||a.isObject$1(N)&&N[y.value.disabled]),k=N=>o.modelValue===g(N),b=N=>o.options.find(V=>g(V)===N),w=N=>[l.e("item"),l.is("selected",k(N)),l.is("disabled",E(N))],S=()=>{if(!f.value)return;const N=f.value.querySelector(".is-selected"),V=f.value.querySelector(".is-selected input");if(!N||!V){v.width=0,v.height=0,v.translateX=0,v.translateY=0,v.focusVisible=!1;return}v.isInit=!0,o.direction==="vertical"?(v.height=N.offsetHeight,v.translateY=N.offsetTop):(v.width=N.offsetWidth,v.translateX=N.offsetLeft);try{v.focusVisible=V.matches(":focus-visible")}catch{}},_=e.computed(()=>[l.b(),l.m(s.value),l.is("block",o.block)]),P=e.computed(()=>({width:o.direction==="vertical"?"100%":`${v.width}px`,height:o.direction==="vertical"?`${v.height}px`:"100%",transform:o.direction==="vertical"?`translateY(${v.translateY}px)`:`translateX(${v.translateX}px)`,display:v.isInit?"block":"none"})),B=e.computed(()=>[l.e("item-selected"),l.is("disabled",E(b(o.modelValue))),l.is("focus-visible",v.focusVisible)]),T=e.computed(()=>o.name||r.value);return a.useResizeObserver(f,S),e.watch(p,S),e.watch(()=>o.modelValue,()=>{var N;S(),o.validateEvent&&((N=c==null?void 0:c.validate)==null||N.call(c,"change").catch(V=>a.debugWarn(V)))},{flush:"post"}),(N,V)=>N.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(u),ref_key:"segmentedRef",ref:f,class:e.normalizeClass(e.unref(_)),role:"radiogroup","aria-label":e.unref(d)?void 0:N.ariaLabel||"segmented","aria-labelledby":e.unref(d)?e.unref(c).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l).e("group"),e.unref(l).m(N.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(P)),class:e.normalizeClass(e.unref(B))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.options,(R,j)=>(e.openBlock(),e.createElementBlock("label",{key:j,class:e.normalizeClass(w(R))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(l).e("item-input")),type:"radio",name:e.unref(T),disabled:E(R),checked:k(R),onChange:q=>m(R)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("item-label"))},[e.renderSlot(N.$slots,"default",{item:h(R)},()=>[e.createTextVNode(e.toDisplayString(C(R)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var $M=a._export_sfc(OM,[["__file","segmented.vue"]]);const MM=a.withInstall($M),xM=(t,n)=>{const o=t.toLowerCase();return(n.label||n.value||"").toLowerCase().includes(o)},AM=(t,n,o)=>{const{selectionEnd:l}=t;if(l===null)return;const r=t.value,s=Ct(n);let i=-1,c;for(let u=l-1;u>=0;--u){const d=r[u];if(d===o||d===`
|
|
37
|
-
`||d==="\r"){i=u;continue}if(s.includes(d)){const f=i===-1?l:i;c={pattern:r.slice(u+1,f),start:u+1,end:f,prefix:d,prefixIndex:u,splitIndex:i,selectionEnd:l};break}}return c},zM=(t,n={debug:!1,useSelectionEnd:!1})=>{const o=t.selectionStart!==null?t.selectionStart:0,l=t.selectionEnd!==null?t.selectionEnd:0,r=n.useSelectionEnd?l:o,s=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(n.debug){const v=document.querySelector("#input-textarea-caret-position-mirror-div");v!=null&&v.parentNode&&v.parentNode.removeChild(v)}const i=document.createElement("div");i.id="input-textarea-caret-position-mirror-div",document.body.appendChild(i);const c=i.style,u=window.getComputedStyle(t),d=t.nodeName==="INPUT";c.whiteSpace=d?"nowrap":"pre-wrap",d||(c.wordWrap="break-word"),c.position="absolute",n.debug||(c.visibility="hidden"),s.forEach(v=>{if(d&&v==="lineHeight")if(u.boxSizing==="border-box"){const m=Number.parseInt(u.height),y=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),h=y+Number.parseInt(u.lineHeight);m>h?c.lineHeight=`${m-y}px`:m===h?c.lineHeight=u.lineHeight:c.lineHeight="0"}else c.lineHeight=u.height;else c[v]=u[v]}),a.isFirefox()?t.scrollHeight>Number.parseInt(u.height)&&(c.overflowY="scroll"):c.overflow="hidden",i.textContent=t.value.slice(0,Math.max(0,r)),d&&i.textContent&&(i.textContent=i.textContent.replace(/\s/g," "));const f=document.createElement("span");f.textContent=t.value.slice(Math.max(0,r))||".",f.style.position="relative",f.style.left=`${-t.scrollLeft}px`,f.style.top=`${-t.scrollTop}px`,i.appendChild(f);const p={top:f.offsetTop+Number.parseInt(u.borderTopWidth),left:f.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return n.debug?f.style.backgroundColor="#aaa":document.body.removeChild(i),p.left>=t.clientWidth&&(p.left=t.clientWidth),p},RM=a.buildProps({...L.inputProps,options:{type:a.definePropType(Array),default:()=>[]},prefix:{type:a.definePropType([String,Array]),default:"@",validator:t=>a.isString(t)?t.length===1:t.every(n=>a.isString(n)&&n.length===1)},split:{type:String,default:" ",validator:t=>t.length===1},filterOption:{type:a.definePropType([Boolean,Function]),default:()=>xM,validator:t=>t===!1?!0:a.isFunction(t)},placement:{type:a.definePropType(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:a.definePropType(Function)},modelValue:String,loading:Boolean,popperClass:qe.popperClass,popperStyle:qe.popperStyle,popperOptions:{type:a.definePropType(Object),default:()=>({})},props:{type:a.definePropType(Object),default:()=>vv}}),LM={[L.UPDATE_MODEL_EVENT]:t=>a.isString(t),"whole-remove":(t,n)=>a.isString(t)&&a.isString(n),input:t=>a.isString(t),search:(t,n)=>a.isString(t)&&a.isString(n),select:(t,n)=>a.isObject$1(t)&&a.isString(n),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},vv={value:"value",label:"label",disabled:"disabled"},FM=a.buildProps({options:{type:a.definePropType(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),KM={select:t=>a.isString(t.value)},HM=e.defineComponent({name:"ElMentionDropdown"}),jM=e.defineComponent({...HM,props:FM,emits:KM,setup(t,{expose:n,emit:o}){const l=t,r=a.useNamespace("mention"),{t:s}=a.useLocale(),i=e.ref(-1),c=e.ref(),u=e.ref(),d=e.ref(),f=(k,b)=>[r.be("dropdown","item"),r.is("hovering",i.value===b),r.is("disabled",k.disabled||l.disabled)],p=k=>{k.disabled||l.disabled||o("select",k)},v=k=>{i.value=k},m=e.computed(()=>l.disabled||l.options.every(k=>k.disabled)),y=e.computed(()=>l.options[i.value]),h=()=>{y.value&&o("select",y.value)},g=k=>{const{options:b}=l;if(b.length===0||m.value)return;k==="next"?(i.value++,i.value===b.length&&(i.value=0)):k==="prev"&&(i.value--,i.value<0&&(i.value=b.length-1));const w=b[i.value];if(w.disabled){g(k);return}e.nextTick(()=>C(w))},C=k=>{var b,w,S,_;const{options:P}=l,B=P.findIndex(N=>N.value===k.value),T=(b=u.value)==null?void 0:b[B];if(T){const N=(S=(w=d.value)==null?void 0:w.querySelector)==null?void 0:S.call(w,`.${r.be("dropdown","wrap")}`);N&&L.scrollIntoView(N,T)}(_=c.value)==null||_.handleScroll()},E=()=>{m.value||l.options.length===0?i.value=-1:i.value=0};return e.watch(()=>l.options,E,{immediate:!0}),n({hoveringIndex:i,navigateOptions:g,selectHoverOption:h,hoverOption:y}),(k,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:d,class:e.normalizeClass(e.unref(r).b("dropdown"))},[k.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).be("dropdown","header"))},[e.renderSlot(k.$slots,"header")],2)):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(e.unref(Zt),{id:k.contentId,ref_key:"scrollbarRef",ref:c,tag:"ul","wrap-class":e.unref(r).be("dropdown","wrap"),"view-class":e.unref(r).be("dropdown","list"),role:"listbox","aria-label":k.ariaLabel,"aria-orientation":"vertical"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.options,(w,S)=>(e.openBlock(),e.createElementBlock("li",{id:`${k.contentId}-${S}`,ref_for:!0,ref_key:"optionRefs",ref:u,key:S,class:e.normalizeClass(f(w,S)),role:"option","aria-disabled":w.disabled||k.disabled||void 0,"aria-selected":i.value===S,onMousemove:_=>v(S),onClick:e.withModifiers(_=>p(w),["stop"])},[e.renderSlot(k.$slots,"label",{item:w,index:S},()=>{var _;return[e.createElementVNode("span",null,e.toDisplayString((_=w.label)!=null?_:w.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[e.vShow,k.options.length>0&&!k.loading]]),k.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r).be("dropdown","loading"))},[e.renderSlot(k.$slots,"loading",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("el.mention.loading")),1)])],2)):e.createCommentVNode("v-if",!0),k.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(r).be("dropdown","footer"))},[e.renderSlot(k.$slots,"footer")],2)):e.createCommentVNode("v-if",!0)],2))}});var WM=a._export_sfc(jM,[["__file","mention-dropdown.vue"]]);const UM=e.defineComponent({name:"ElMention",inheritAttrs:!1}),qM=e.defineComponent({...UM,props:RM,emits:LM,setup(t,{expose:n,emit:o}){const l=t,r=e.computed(()=>L.pick(l,Object.keys(L.inputProps))),s=a.useNamespace("mention"),i=L.useFormDisabled(),c=L.useId(),u=e.ref(),d=e.ref(),f=e.ref(),p=e.ref(!1),v=e.ref(),m=e.ref(),y=e.computed(()=>l.showArrow?l.placement:`${l.placement}-start`),h=e.computed(()=>l.showArrow?["bottom","top"]:["bottom-start","top-start"]),g=e.computed(()=>({...vv,...l.props})),C=D=>{const $={label:D[g.value.label],value:D[g.value.value],disabled:D[g.value.disabled]};return{...D,...$}},E=e.computed(()=>l.options.map(C)),k=e.computed(()=>{const{filterOption:D}=l;return!m.value||!D?E.value:E.value.filter($=>D(m.value.pattern,$))}),b=e.computed(()=>p.value&&(!!k.value.length||l.loading)),w=e.computed(()=>{var D;return`${c.value}-${(D=f.value)==null?void 0:D.hoveringIndex}`}),S=D=>{o(L.UPDATE_MODEL_EVENT,D),o(L.INPUT_EVENT,D),R()},_=D=>{var $,A,O,M;if(($=u.value)!=null&&$.isComposing)return;const F=a.getEventCode(D);switch(F){case a.EVENT_CODE.left:case a.EVENT_CODE.right:R();break;case a.EVENT_CODE.up:case a.EVENT_CODE.down:if(!p.value)return;D.preventDefault(),(A=f.value)==null||A.navigateOptions(F===a.EVENT_CODE.up?"prev":"next");break;case a.EVENT_CODE.enter:case a.EVENT_CODE.numpadEnter:if(!p.value){l.type!=="textarea"&&R();return}D.preventDefault(),(O=f.value)!=null&&O.hoverOption?(M=f.value)==null||M.selectHoverOption():p.value=!1;break;case a.EVENT_CODE.esc:if(!p.value)return;D.preventDefault(),p.value=!1;break;case a.EVENT_CODE.backspace:if(l.whole&&m.value){const{splitIndex:x,selectionEnd:K,pattern:Y,prefixIndex:W,prefix:te}=m.value,re=V();if(!re)return;const Q=re.value,X=E.value.find(I=>I.value===Y);if((a.isFunction(l.checkIsWhole)?l.checkIsWhole(Y,te):X)&&x!==-1&&x+1===K){D.preventDefault();const I=Q.slice(0,W)+Q.slice(x+1);o(L.UPDATE_MODEL_EVENT,I),o(L.INPUT_EVENT,I),o("whole-remove",Y,te);const H=W;e.nextTick(()=>{re.selectionStart=H,re.selectionEnd=H,q()})}}}},{wrapperRef:P}=L.useFocusController(u,{disabled:i,afterFocus(){R()},beforeBlur(D){var $;return($=d.value)==null?void 0:$.isFocusInsideContent(D)},afterBlur(){p.value=!1}}),B=()=>{R()},T=D=>l.options.find($=>D.value===$[g.value.value]),N=D=>{if(!m.value)return;const $=V();if(!$)return;const A=$.value,{split:O}=l,M=A.slice(m.value.end),F=M.startsWith(O),x=`${D.value}${F?"":O}`,K=A.slice(0,m.value.start)+x+M;o(L.UPDATE_MODEL_EVENT,K),o(L.INPUT_EVENT,K),o("select",T(D),m.value.prefix);const Y=m.value.start+x.length+(F?1:0);e.nextTick(()=>{$.selectionStart=Y,$.selectionEnd=Y,$.focus(),q()})},V=()=>{var D,$;return l.type==="textarea"?(D=u.value)==null?void 0:D.textarea:($=u.value)==null?void 0:$.input},R=()=>{setTimeout(()=>{j(),q(),e.nextTick(()=>{var D;return(D=d.value)==null?void 0:D.updatePopper()})},0)},j=()=>{const D=V();if(!D)return;const $=zM(D),A=D.getBoundingClientRect(),O=P.value.getBoundingClientRect();v.value={position:"absolute",width:0,height:`${$.height}px`,left:`${$.left+A.left-O.left}px`,top:`${$.top+A.top-O.top}px`}},q=()=>{const D=V();if(document.activeElement!==D){p.value=!1;return}const{prefix:$,split:A}=l;if(m.value=AM(D,$,A),m.value&&m.value.splitIndex===-1){p.value=!0,o("search",m.value.pattern,m.value.prefix);return}p.value=!1};return n({input:u,tooltip:d,dropdownVisible:b}),(D,$)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:P,class:e.normalizeClass(e.unref(s).b())},[e.createVNode(e.unref(L.ElInput),e.mergeProps(e.mergeProps(e.unref(r),D.$attrs),{ref_key:"elInputRef",ref:u,"model-value":D.modelValue,disabled:e.unref(i),role:e.unref(b)?"combobox":void 0,"aria-activedescendant":e.unref(b)?e.unref(w)||"":void 0,"aria-controls":e.unref(b)?e.unref(c):void 0,"aria-expanded":e.unref(b)||void 0,"aria-label":D.ariaLabel,"aria-autocomplete":e.unref(b)?"none":void 0,"aria-haspopup":e.unref(b)?"listbox":void 0,onInput:S,onKeydown:_,onMousedown:B}),e.createSlots({_:2},[e.renderList(D.$slots,(A,O)=>({name:O,fn:e.withCtx(M=>[e.renderSlot(D.$slots,O,e.normalizeProps(e.guardReactiveProps(M)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),e.createVNode(e.unref(Nt),{ref_key:"tooltipRef",ref:d,visible:e.unref(b),"popper-class":[e.unref(s).e("popper"),D.popperClass],"popper-style":D.popperStyle,"popper-options":D.popperOptions,placement:e.unref(y),"fallback-placements":e.unref(h),effect:"light",pure:"",offset:D.offset,"show-arrow":D.showArrow},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(v.value)},null,4)]),content:e.withCtx(()=>{var A;return[e.createVNode(WM,{ref_key:"dropdownRef",ref:f,options:e.unref(k),disabled:e.unref(i),loading:D.loading,"content-id":e.unref(c),"aria-label":D.ariaLabel,onSelect:N,onClick:e.withModifiers((A=u.value)==null?void 0:A.focus,["stop"])},e.createSlots({_:2},[e.renderList(D.$slots,(O,M)=>({name:M,fn:e.withCtx(F=>[e.renderSlot(D.$slots,M,e.normalizeProps(e.guardReactiveProps(F)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var YM=a._export_sfc(qM,[["__file","mention.vue"]]);const GM=a.withInstall(YM),XM=a.buildProps({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),gv=Symbol("splitterRootContextKey");function JM(t){const n=e.ref(),{width:o,height:l}=a.useElementSize(n),r=e.computed(()=>t.value==="horizontal"?o.value:l.value);return{containerEl:n,containerSize:r}}function ic(t){return Number(t.slice(0,-1))/100}function cc(t){return Number(t.slice(0,-2))}function uc(t){return a.isString(t)&&t.endsWith("%")}function dc(t){return a.isString(t)&&t.endsWith("px")}function ZM(t,n){const o=e.computed(()=>t.value.map(c=>c.size)),l=e.computed(()=>t.value.length),r=e.ref([]);e.watch([o,l,n],()=>{var c;let u=[],d=0;for(let p=0;p<l.value;p+=1){const v=(c=t.value[p])==null?void 0:c.size;if(uc(v))u[p]=ic(v);else if(dc(v))u[p]=cc(v)/n.value;else if(v||v===0){const m=Number(v);Number.isNaN(m)||(u[p]=m/n.value)}else d+=1,u[p]=void 0}const f=u.reduce((p,v)=>p+(v||0),0);if(f>1||!d){const p=1/f;u=u.map(v=>v===void 0?0:v*p)}else{const p=(1-f)/d;u=u.map(v=>v===void 0?p:v)}r.value=u});const s=c=>c*n.value,i=e.computed(()=>r.value.map(s));return{percentSizes:r,pxSizes:i}}function QM(t,n,o,l){const r=g=>g*n.value||0;function s(g,C){return uc(g)?r(ic(g)):dc(g)?cc(g):g??C}const i=e.ref(0),c=e.ref(null);let u=[],d=a.NOOP;const f=e.computed(()=>t.value.map(g=>[g.min,g.max]));e.watch(l,()=>{if(i.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const p=g=>{i.value=0,c.value={index:g,confirmed:!1},u=o.value},v=(g,C)=>{var E,k;let b=null;if((!c.value||!c.value.confirmed)&&C!==0){if(C>0)b=g,c.value={index:g,confirmed:!0};else for(let R=g;R>=0;R-=1)if(u[R]>0){b=R,c.value={index:R,confirmed:!0};break}}const w=(k=b??((E=c.value)==null?void 0:E.index))!=null?k:g,S=[...u],_=w+1,P=s(f.value[w][0],0),B=s(f.value[_][0],0),T=s(f.value[w][1],n.value||0),N=s(f.value[_][1],n.value||0);let V=C;S[w]+V<P&&(V=P-S[w]),S[_]-V<B&&(V=S[_]-B),S[w]+V>T&&(V=T-S[w]),S[_]-V>N&&(V=S[_]-N),S[w]+=V,S[_]-=V,i.value=V,d=()=>{t.value.forEach((R,j)=>{R.size=S[j]}),d=a.NOOP},l.value||d()},m=()=>{l.value&&d(),i.value=0,c.value=null,u=[]},y=[];return{lazyOffset:i,onMoveStart:p,onMoving:v,onMoveEnd:m,movingIndex:c,onCollapse:(g,C)=>{y.length||y.push(...o.value);const E=o.value,k=C==="start"?g:g+1,b=C==="start"?g+1:g,w=E[k],S=E[b];if(w!==0&&S!==0)E[k]=0,E[b]+=w,y[g]=w;else{const _=w+S,P=y[g],B=_-P;E[b]=P,E[k]=B}t.value.forEach((_,P)=>{_.size=E[P]})}}}const ex=e.defineComponent({name:"ElSplitter"}),tx=e.defineComponent({...ex,props:XM,emits:["resizeStart","resize","resizeEnd","collapse"],setup(t,{emit:n}){const o=t,l=a.useNamespace("splitter"),r=e.toRef(o,"layout"),s=e.toRef(o,"lazy"),{containerEl:i,containerSize:c}=JM(r),{removeChild:u,children:d,addChild:f,ChildrenSorter:p}=Cr(e.getCurrentInstance(),"ElSplitterPanel");e.watch(d,()=>{d.value.forEach((B,T)=>{B.setIndex(T)})});const{percentSizes:v,pxSizes:m}=ZM(d,c),{lazyOffset:y,movingIndex:h,onMoveStart:g,onMoving:C,onMoveEnd:E,onCollapse:k}=QM(d,c,m,s),b=e.computed(()=>({[l.cssVarBlockName("bar-offset")]:s.value?`${y.value}px`:void 0})),w=B=>{g(B),n("resizeStart",B,m.value)},S=(B,T)=>{C(B,T),s.value||n("resize",B,m.value)},_=async B=>{E(),await e.nextTick(),n("resizeEnd",B,m.value)},P=(B,T)=>{k(B,T),n("collapse",B,T,m.value)};return e.provide(gv,e.reactive({panels:d,percentSizes:v,pxSizes:m,layout:r,lazy:s,movingIndex:h,containerSize:c,onMoveStart:w,onMoving:S,onMoveEnd:_,onCollapse:P,registerPanel:f,unregisterPanel:u})),(B,T)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerEl",ref:i,class:e.normalizeClass([e.unref(l).b(),e.unref(l).e(e.unref(r))]),style:e.normalizeStyle(e.unref(b))},[e.renderSlot(B.$slots,"default"),e.createVNode(e.unref(p)),e.createCommentVNode(" Prevent iframe touch events from breaking "),e.unref(h)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l).e("mask"),e.unref(l).e(`mask-${e.unref(r)}`)])},null,2)):e.createCommentVNode("v-if",!0)],6))}});var nx=a._export_sfc(tx,[["__file","splitter.vue"]]);function ox(t){return t&&a.isObject$1(t)?t:{start:!!t,end:!!t}}function bf(t,n,o,l){return!!(t!=null&&t.collapsible.end&&n>0||o!=null&&o.collapsible.start&&l===0&&n>0)}const lx=e.defineComponent({name:"ElSplitterBar"}),ax=e.defineComponent({...lx,props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(t,{emit:n}){const o=t,l=a.useNamespace("splitter-bar"),r=e.computed(()=>o.layout==="horizontal"),s=e.computed(()=>r.value?{width:0}:{height:0}),i=e.computed(()=>({width:r.value?"16px":"100%",height:r.value?"100%":"16px",cursor:o.resizable?r.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),c=e.computed(()=>{const C=l.e("dragger");return{[`${C}-horizontal`]:r.value,[`${C}-vertical`]:!r.value,[`${C}-active`]:!!u.value}}),u=e.ref(null),d=C=>{o.resizable&&(u.value=[C.pageX,C.pageY],n("moveStart",o.index),window.addEventListener("mouseup",m),window.addEventListener("mousemove",p))},f=C=>{if(o.resizable&&C.touches.length===1){C.preventDefault();const E=C.touches[0];u.value=[E.pageX,E.pageY],n("moveStart",o.index),window.addEventListener("touchend",y),window.addEventListener("touchmove",v)}},p=C=>{const{pageX:E,pageY:k}=C,b=E-u.value[0],w=k-u.value[1],S=r.value?b:w;n("moving",o.index,S)},v=C=>{if(C.touches.length===1){C.preventDefault();const E=C.touches[0],k=E.pageX-u.value[0],b=E.pageY-u.value[1],w=r.value?k:b;n("moving",o.index,w)}},m=()=>{u.value=null,window.removeEventListener("mouseup",m),window.removeEventListener("mousemove",p),n("moveEnd",o.index)},y=()=>{u.value=null,window.removeEventListener("touchend",y),window.removeEventListener("touchmove",v),n("moveEnd",o.index)},h=e.computed(()=>r.value?a.arrow_left_default:a.arrow_up_default),g=e.computed(()=>r.value?a.arrow_right_default:a.arrow_down_default);return(C,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l).b()]),style:e.normalizeStyle(e.unref(s))},[t.startCollapsible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l).e("collapse-icon"),e.unref(l).e(`${t.layout}-collapse-icon-start`)]),onClick:k=>n("collapse",t.index,"start")},[e.renderSlot(C.$slots,"start-collapsible",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(h)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(l).e("dragger"),e.unref(c),e.unref(l).is("disabled",!t.resizable),e.unref(l).is("lazy",t.resizable&&t.lazy)]),style:e.normalizeStyle(e.unref(i)),onMousedown:d,onTouchstart:f},null,38),t.endCollapsible?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(l).e("collapse-icon"),e.unref(l).e(`${t.layout}-collapse-icon-end`)]),onClick:k=>n("collapse",t.index,"end")},[e.renderSlot(C.$slots,"end-collapsible",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):e.createCommentVNode("v-if",!0)],6))}});var rx=a._export_sfc(ax,[["__file","split-bar.vue"]]);const sx=a.buildProps({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),yv="ElSplitterPanel",ix=e.defineComponent({name:yv}),cx=e.defineComponent({...ix,props:sx,emits:["update:size"],setup(t,{emit:n}){const o=t,l=a.useNamespace("splitter-panel"),r=e.inject(gv);r||a.throwError(yv,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:s,layout:i,lazy:c,containerSize:u,pxSizes:d}=e.toRefs(r),{registerPanel:f,unregisterPanel:p,onCollapse:v,onMoveEnd:m,onMoveStart:y,onMoving:h}=r,g=e.ref(),C=e.getCurrentInstance(),E=C.uid,k=e.ref(0),b=e.computed(()=>s.value[k.value]),w=D=>{k.value=D},S=e.computed(()=>{var D;return b.value&&(D=d.value[k.value])!=null?D:0}),_=e.computed(()=>{var D;return b.value&&(D=d.value[k.value+1])!=null?D:0}),P=e.computed(()=>b.value?s.value[k.value+1]:null),B=e.computed(()=>{var D;return P.value?o.resizable&&((D=P.value)==null?void 0:D.resizable)&&(S.value!==0||!o.min)&&(_.value!==0||!P.value.min):!1}),T=e.computed(()=>b.value?k.value!==s.value.length-1:!1),N=e.computed(()=>bf(b.value,S.value,P.value,_.value)),V=e.computed(()=>bf(P.value,_.value,b.value,S.value));function R(D){return uc(D)?ic(D)*u.value||0:dc(D)?cc(D):D??0}let j=!1;e.watch(()=>o.size,()=>{if(!j&&b.value){if(!u.value){b.value.size=o.size;return}const D=R(o.size),$=R(o.max),A=R(o.min),O=Math.min(Math.max(D,A||0),$||D);O!==D&&n("update:size",O),b.value.size=O}}),e.watch(()=>{var D;return(D=b.value)==null?void 0:D.size},D=>{D!==o.size&&(j=!0,n("update:size",D),e.nextTick(()=>j=!1))}),e.watch(()=>o.resizable,D=>{b.value&&(b.value.resizable=D)});const q=e.reactive({el:g.value,uid:E,getVnode:()=>C.vnode,setIndex:w,...o,collapsible:e.computed(()=>ox(o.collapsible))});return f(q),e.onBeforeUnmount(()=>p(q)),(D,$)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({ref_key:"panelEl",ref:g,class:[e.unref(l).b()],style:{flexBasis:`${e.unref(S)}px`}},D.$attrs),[e.renderSlot(D.$slots,"default")],16),e.unref(T)?(e.openBlock(),e.createBlock(rx,{key:0,index:k.value,layout:e.unref(i),lazy:e.unref(c),resizable:e.unref(B),"start-collapsible":e.unref(N),"end-collapsible":e.unref(V),onMoveStart:e.unref(y),onMoving:e.unref(h),onMoveEnd:e.unref(m),onCollapse:e.unref(v)},{"start-collapsible":e.withCtx(()=>[e.renderSlot(D.$slots,"start-collapsible")]),"end-collapsible":e.withCtx(()=>[e.renderSlot(D.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):e.createCommentVNode("v-if",!0)],64))}});var bv=a._export_sfc(cx,[["__file","split-panel.vue"]]);const ux=a.withInstall(nx,{SplitPanel:bv}),dx=a.withNoopInstall(bv);var fx=[Sg,Dg,jb,YD,Xb,oC,a.ElBadge,dC,fC,L.ElButton,L.ElButtonGroup,$C,RC,JC,ZC,Zk,Ap,lE,Jt,dk,_p,cE,NE,TE,Er,Gp,t0,n0,m0,h0,v0,g0,y0,Gw,cm,aS,rS,hS,gm,TS,uN,dN,fN,Tm,uT,dT,a.ElIcon,ET,Vm,L.ElInput,Dm,AT,HT,i1,c1,u1,d1,g1,i_,m_,w_,sp,Lm,Mp,wk,Ek,O_,z_,W_,Zt,ao,tr,K1,EB,DB,IB,JB,nP,Qm,pP,EP,wP,PP,zV,RV,qD,cI,uI,wn,Xi,R0,CI,TI,_I,Nt,LI,ur,rO,wO,LO,JO,gM,yM,BM,PM,MM,GM,ux,dx];const Ft="ElInfiniteScroll",px=50,mx=200,hx=0,vx={delay:{type:Number,default:mx},distance:{type:Number,default:hx},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},fc=(t,n)=>Object.entries(vx).reduce((o,[l,r])=>{var s,i;const{type:c,default:u}=r,d=t.getAttribute(`infinite-scroll-${l}`);let f=(i=(s=n[d])!=null?s:d)!=null?i:u;return f=f==="false"?!1:f,f=c(f),o[l]=Number.isNaN(f)?u:f,o},{}),Cv=t=>{const{observer:n}=t[Ft];n&&(n.disconnect(),delete t[Ft].observer)},gx=(t,n)=>{const{container:o,containerEl:l,instance:r,observer:s,lastScrollTop:i}=t[Ft],{disabled:c,distance:u}=fc(t,r),{clientHeight:d,scrollHeight:f,scrollTop:p}=l,v=p-i;if(t[Ft].lastScrollTop=p,s||c||v<0)return;let m=!1;if(o===t)m=f-(d+p)<=u;else{const{clientTop:y,scrollHeight:h}=t,g=cs(t,l);m=p+d>=g+y+h-u}m&&n.call(r)};function Qr(t,n){const{containerEl:o,instance:l}=t[Ft],{disabled:r}=fc(t,l);r||o.clientHeight===0||(o.scrollHeight<=o.clientHeight?n.call(l):Cv(t))}const yx={async mounted(t,n){const{instance:o,value:l}=n;L.useDeprecated({scope:Ft,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),a.isFunction(l)||a.throwError(Ft,"'v-infinite-scroll' binding value must be a function"),await e.nextTick();const{delay:r,immediate:s}=fc(t,o),i=L.getScrollContainer(t,!0),c=i===window?document.documentElement:i,u=to(gx.bind(null,t,l),r);if(i){if(t[Ft]={instance:o,container:i,containerEl:c,delay:r,cb:l,onScroll:u,lastScrollTop:c.scrollTop},s){const d=new MutationObserver(to(Qr.bind(null,t,l),px));t[Ft].observer=d,d.observe(t,{childList:!0,subtree:!0}),Qr(t,l)}i.addEventListener("scroll",u)}},unmounted(t){if(!t[Ft])return;const{container:n,onScroll:o}=t[Ft];n==null||n.removeEventListener("scroll",o),Cv(t)},async updated(t){if(!t[Ft])await e.nextTick();else{const{containerEl:n,cb:o,observer:l}=t[Ft];n.clientHeight&&l&&Qr(t,o)}}},Xs=yx;Xs.install=t=>{t.directive("InfiniteScroll",Xs)};const bx=Xs,kv=["primary","success","info","warning","error"],Cx=a.buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:a.iconPropType},id:{type:String,default:""},message:{type:a.definePropType([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:a.definePropType(Function),default:()=>{}},onClose:{type:a.definePropType(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...kv,""],default:""},zIndex:Number,closeIcon:{type:a.iconPropType,default:a.close_default}}),kx={destroy:()=>!0},Ex=e.defineComponent({name:"ElNotification"}),wx=e.defineComponent({...Ex,props:Cx,emits:kx,setup(t,{expose:n}){const o=t,{ns:l,zIndex:r}=a.useGlobalComponentSettings("notification"),{nextZIndex:s,currentZIndex:i}=r,c=e.ref(!1);let u;const d=e.computed(()=>{const E=o.type;return E&&a.TypeComponentsMap[o.type]?l.m(E):""}),f=e.computed(()=>o.type&&a.TypeComponentsMap[o.type]||o.icon),p=e.computed(()=>o.position.endsWith("right")?"right":"left"),v=e.computed(()=>o.position.startsWith("top")?"top":"bottom"),m=e.computed(()=>{var E;return{[v.value]:`${o.offset}px`,zIndex:(E=o.zIndex)!=null?E:i.value}});function y(){o.duration>0&&({stop:u}=a.useTimeoutFn(()=>{c.value&&g()},o.duration))}function h(){u==null||u()}function g(){c.value=!1}function C(E){switch(a.getEventCode(E)){case a.EVENT_CODE.delete:case a.EVENT_CODE.backspace:h();break;case a.EVENT_CODE.esc:c.value&&g();break;default:y();break}}return e.onMounted(()=>{y(),s(),c.value=!0}),a.useEventListener(document,"keydown",C),n({visible:c,close:g}),(E,k)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(l).b("fade"),onBeforeLeave:E.onClose,onAfterLeave:b=>E.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:E.id,class:e.normalizeClass([e.unref(l).b(),E.customClass,e.unref(p)]),style:e.normalizeStyle(e.unref(m)),role:"alert",onMouseenter:h,onMouseleave:y,onClick:E.onClick},[e.unref(f)?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass([e.unref(l).e("icon"),e.unref(d)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(f))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("group"))},[e.createElementVNode("h2",{class:e.normalizeClass(e.unref(l).e("title")),textContent:e.toDisplayString(E.title)},null,10,["textContent"]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("content")),style:e.normalizeStyle(E.title?void 0:{margin:0})},[e.renderSlot(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{innerHTML:E.message},null,8,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0},e.toDisplayString(E.message),1))])],6),[[e.vShow,E.message]]),E.showClose?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass(e.unref(l).e("closeBtn")),onClick:e.withModifiers(g,["stop"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.closeIcon)))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],2)],46,["id","onClick"]),[[e.vShow,c.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Sx=a._export_sfc(wx,[["__file","notification.vue"]]);const Lo={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},mr=16;let Nx=1;const co=function(t={},n){if(!a.isClient)return{close:()=>{}};(a.isString(t)||e.isVNode(t))&&(t={message:t});const o=t.position||"top-right";let l=t.offset||0;Lo[o].forEach(({vm:f})=>{var p;l+=(((p=f.el)==null?void 0:p.offsetHeight)||0)+mr}),l+=mr;const r=`notification_${Nx++}`,s=t.onClose,i={...t,offset:l,id:r,onClose:()=>{Tx(r,o,s)}};let c=document.body;a.isElement(t.appendTo)?c=t.appendTo:a.isString(t.appendTo)&&(c=document.querySelector(t.appendTo)),a.isElement(c)||(a.debugWarn("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),c=document.body);const u=document.createElement("div"),d=e.createVNode(Sx,i,a.isFunction(i.message)?i.message:e.isVNode(i.message)?()=>i.message:null);return d.appContext=a.isUndefined(n)?co._context:n,d.props.onDestroy=()=>{e.render(null,u)},e.render(d,u),Lo[o].push({vm:d}),c.appendChild(u.firstElementChild),{close:()=>{d.component.exposed.visible.value=!1}}};kv.forEach(t=>{co[t]=(n={},o)=>((a.isString(n)||e.isVNode(n))&&(n={message:n}),co({...n,type:t},o))});function Tx(t,n,o){const l=Lo[n],r=l.findIndex(({vm:d})=>{var f;return((f=d.component)==null?void 0:f.props.id)===t});if(r===-1)return;const{vm:s}=l[r];if(!s)return;o==null||o(s);const i=s.el.offsetHeight,c=n.split("-")[0];l.splice(r,1);const u=l.length;if(!(u<1))for(let d=r;d<u;d++){const{el:f,component:p}=l[d].vm,v=Number.parseInt(f.style[c],10)-i-mr;p.props.offset=v}}function _x(){for(const t of Object.values(Lo))t.forEach(({vm:n})=>{n.component.exposed.visible.value=!1})}function Bx(t="top-right"){var n,o,l,r;let s=((l=(o=(n=Lo[t][0])==null?void 0:n.vm.component)==null?void 0:o.props)==null?void 0:l.offset)||0;for(const{vm:i}of Lo[t])i.component.props.offset=s,s+=(((r=i.el)==null?void 0:r.offsetHeight)||0)+mr}co.closeAll=_x;co.updateOffsets=Bx;co._context=null;const Px=a.withInstallFunction(co,"$notify");var Vx=[bx,No.ElLoading,a.ElMessage,L.ElMessageBox,Px,Rm],Dx=yg([...fx,...Vx]);const Ix={key:0,class:"dialog-overlay"},Ox={class:"dialog-content"},$x={class:"dialog"},Mx={class:"dialog-value"},xx={class:"dialog-item"},Ax={class:"dialog-child"},zx={class:"dialog-actions"},Rx={__name:"index",setup(t,{expose:n}){const o=e.ref(!1),l=e.ref(null);e.ref(!0);const r=e.ref([]),s=e.ref({}),i=e.ref([{label:"保留",value:"保留"},{label:"替换",value:"替换"}]),c=f=>{var v;o.value=!0,r.value=Object.keys(f);let p={};return(v=Object.keys(f))==null||v.forEach(m=>{p[m]="替换"}),s.value=p,new Promise(m=>{l.value=m})},u=(f,p)=>{let v=a.cloneDeep(s.value);v[f]=p,s.value=v},d=()=>{var f;o.value=!1,(f=l.value)==null||f.call(l,a.cloneDeep(s.value))};return e.onUnmounted(()=>{Kx()}),n({show:c}),(f,p)=>o.value?(e.openBlock(),e.createElementBlock("div",Ix,[e.createElementVNode("div",Ox,[e.createElementVNode("div",$x,[p[1]||(p[1]=e.createElementVNode("div",{class:"dialog-title"},e.toDisplayString("冲突页面选择"),-1)),e.createElementVNode("div",Mx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,v=>(e.openBlock(),e.createElementBlock("div",xx,[e.createElementVNode("div",Ax,[e.createElementVNode("div",null,e.toDisplayString(v),1),e.createElementVNode("div",null,[e.createVNode(No.ssRadio,{content:i.value,modelValue:s.value[v],"onUpdate:modelValue":m=>s.value[v]=m,onChange:m=>u(v,m)},null,8,["content","modelValue","onUpdate:modelValue","onChange"])])])]))),256))])]),e.createElementVNode("div",zx,[e.createVNode(e.unref(Bv._sfc_main),{class:"menu-button click-button",onClickTrigger:p[0]||(p[0]=v=>d()),modelValue:"继续"})])])])):e.createCommentVNode("",!0)}},Lx=Pv._export_sfc(Rx,[["__scopeId","data-v-4033db15"]]);let qa=null,ut="$R";const Cf=L.useMenuState();let Il=null;const Fx=()=>{const t=e.createApp(Lx);t.use(Dx);const n=document.createElement("div");return document.body.appendChild(n),t.mount(n)},kf=(t,n)=>{var l;return(l=me.tableEveryContents(a.cloneDeep(t)))==null?void 0:l.map(r=>{var s,i,c,u,d;if(t.comp==="Table"){let f={comp:(s=me.tableToStruct(a.cloneDeep(r)))==null?void 0:s.comp,compData:(i=me.tableToStruct(a.cloneDeep(r)))==null?void 0:i.compData,isShow:r==null?void 0:r.isShow};return(u=(c=Object.keys(r))==null?void 0:c.filter(p=>p==null?void 0:p.includes("name")))==null||u.forEach(p=>{var v;f[p]=(v=me.tableToStruct(a.cloneDeep(r)))==null?void 0:v[p]}),{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structure",version:1,parentTable:(r==null?void 0:r.parentTableContents)??"",parentPageKey:n==null?void 0:n.parentPath},value:{pageData:f}}}else if((r==null?void 0:r.key)==="extraButton"){if(((d=Object.values(r==null?void 0:r.value))==null?void 0:d.length)!==0)return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structureMethod",version:1},value:{pageData:r.value}}}else return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structure",version:1,parentTable:(r==null?void 0:r.parentTableContents)??"",parentPageKey:n==null?void 0:n.parentPath},value:{pageData:r}}})},Kx=()=>{Il==null||Il(!0),qa=null,Il=null},Hx=async t=>(qa||(qa=Fx()),await new Promise(async n=>{Il=n;const o=await qa.show(t);n(o)})),jx=async t=>{var C,E,k,b,w,S,_,P,B;let n=[],o=[],l=await a.getInsofDataApi({key:{type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((C=l==null?void 0:l.data)==null?void 0:C.code)!==200)return;let r=new WeakMap,s=(k=(E=l==null?void 0:l.data)==null?void 0:E.result)==null?void 0:k.filter(T=>{var N;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"});(s==null?void 0:s.length)===0||s==null||s.forEach(T=>{r[T.key.pageKey]={id:T==null?void 0:T.id,contents:T==null?void 0:T.value}});const i=new WeakMap;t==null||t.forEach(T=>{r[T.name]&&(i[T.name]=r[T.name])});let c=[],u=[];if(((b=Object.keys(i))==null?void 0:b.length)>0){Cf.setImportLoading(!1);const T=await Hx(i);for(let N in T)T[N]==="保留"?c.push(N):u.push(N);Cf.setImportLoading(!0)}let d=a.cloneDeep(t);if((u==null?void 0:u.length)>0){let T=[];const N=u==null?void 0:u.map(async V=>{var j,q,D,$;const R=await a.getInsofDataApi({key:{pageKey:V,systemKey:sessionStorage.getItem("systemKey")}});((q=(j=R==null?void 0:R.data)==null?void 0:j.result)==null?void 0:q.length)>0&&(($=(D=R==null?void 0:R.data)==null?void 0:D.result)==null||$.forEach(A=>{T.push(A==null?void 0:A.id)}))});await Promise.all(N),await a.batchDeleteInsofDataApi({ids:T})}(c==null?void 0:c.length)>0&&(d=(w=a.cloneDeep(d))==null?void 0:w.filter(T=>!c.includes(T==null?void 0:T.name)));let f=[];d==null||d.map(async T=>{var N;await((N=T.compData)==null?void 0:N.forEach(async V=>{var j;const R=(j=a.cloneDeep(V==null?void 0:V.contents))==null?void 0:j.map(q=>{if(!Array.isArray(q)){const D=kf(a.cloneDeep(q),T);return D==null?void 0:D[0]}});R==null||R.forEach(q=>{f.push(q)})}))}),(f==null?void 0:f.length)>0&&await a.batchAddInsofDataApi({dataList:f});let p=new WeakMap;(_=(S=(await a.getPageInsofDataApi({systemKey:sessionStorage.getItem("systemKey"),type:"data,structure,structureMethod"})).data.result)==null?void 0:S.filter(T=>{var N,V;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"&&((V=T==null?void 0:T.key)==null?void 0:V.pageKey)!=="secret"}))==null||_.forEach(T=>{p[T.key.pageKey]?p[T.key.pageKey]=[...p[T.key.pageKey],T]:p[T.key.pageKey]=[T]});let m=[];await(d==null?void 0:d.map(async T=>{var N;(T==null?void 0:T.processMainPath)!==""&&m.push({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:T.name,type:"related"},value:{pageData:T==null?void 0:T.processMainPath}}),await((N=T.compData)==null?void 0:N.forEach(async V=>{var j,q,D;const R=(j=a.cloneDeep(V==null?void 0:V.contents))==null?void 0:j.map($=>{if(!Array.isArray($)){const A=kf(a.cloneDeep($),T);return A==null?void 0:A[0]}});o.push({parentKey:me.getParentKey((q=a.cloneDeep(T))==null?void 0:q.name),content:R}),(D=V.contents)==null||D.map(async $=>{var A;Array.isArray($)||(A=me.tableEveryContents(a.cloneDeep($)))==null||A.forEach(async O=>{var M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z,J,le,oe,ee,U,se,z,ne,_e,ye,Pe,Ve,Ae,ue,we,Me,Ie,pe,ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe;if($.comp==="Table"){let ge={comp:(M=me.tableToStruct(a.cloneDeep(O)))==null?void 0:M.comp,compData:(F=me.tableToStruct(a.cloneDeep(O)))==null?void 0:F.compData,isShow:O==null?void 0:O.isShow};(K=(x=Object.keys(O))==null?void 0:x.filter(Te=>Te==null?void 0:Te.includes("name")))==null||K.forEach(Te=>{var et;ge[Te]=(et=me.tableToStruct(a.cloneDeep(O)))==null?void 0:et[Te]});let Le=[];ge!=null&&ge.name1?Le=(Y=p==null?void 0:p[T.name])==null?void 0:Y.filter(Te=>{var et,nt,He,ot,dt,at,Tt;return((et=Te==null?void 0:Te.key)==null?void 0:et.type)==="structure"&&((He=(nt=Te==null?void 0:Te.value)==null?void 0:nt.pageData)==null?void 0:He.name)===(ge==null?void 0:ge.name)&&((dt=(ot=Te==null?void 0:Te.value)==null?void 0:ot.pageData)==null?void 0:dt.name0)===(ge==null?void 0:ge.name0)&&((Tt=(at=Te==null?void 0:Te.value)==null?void 0:at.pageData)==null?void 0:Tt.name1)===(ge==null?void 0:ge.name1)}):ge!=null&&ge.name0?Le=(W=p==null?void 0:p[T.name])==null?void 0:W.filter(Te=>{var et,nt,He,ot,dt;return((et=Te==null?void 0:Te.key)==null?void 0:et.type)==="structure"&&((He=(nt=Te==null?void 0:Te.value)==null?void 0:nt.pageData)==null?void 0:He.name)===(ge==null?void 0:ge.name)&&((dt=(ot=Te==null?void 0:Te.value)==null?void 0:ot.pageData)==null?void 0:dt.name0)===(ge==null?void 0:ge.name0)}):Le=(te=p==null?void 0:p[T.name])==null?void 0:te.filter(Te=>{var et,nt,He;return((et=Te==null?void 0:Te.key)==null?void 0:et.type)==="structure"&&((He=(nt=Te==null?void 0:Te.value)==null?void 0:nt.pageData)==null?void 0:He.name)===(ge==null?void 0:ge.name)});const Qe=(re=Le==null?void 0:Le[0])==null?void 0:re.id;if(((G=(X=(Q=ge==null?void 0:ge.compData)==null?void 0:Q.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:X.contents)==null?void 0:G.length)>2&&((Z=(H=(I=ge==null?void 0:ge.compData)==null?void 0:I.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:H.contents)!=null&&Z.find(Te=>Te==null?void 0:Te.columnPath)||((oe=(le=(J=ge==null?void 0:ge.compData)==null?void 0:J.find(Te=>(Te==null?void 0:Te.key)==="relatedFilter"))==null?void 0:le.contents)==null?void 0:oe.length)>0)){let Te=(se=(U=(ee=ge==null?void 0:ge.compData)==null?void 0:ee.find(Xe=>(Xe==null?void 0:Xe.key)==="header"))==null?void 0:U.contents)==null?void 0:se.find(Xe=>Xe==null?void 0:Xe.columnPath),et=(_e=(ne=(z=Te==null?void 0:Te.columnPath)==null?void 0:z.replace("[",ut))==null?void 0:ne.split(ut))==null?void 0:_e[0],nt=Te!=null&&Te.columnPath&&(Te==null?void 0:Te.columnPath)!==""?(Ve=(Pe=(ye=Te==null?void 0:Te.columnPath)==null?void 0:ye.replace("[",ut))==null?void 0:Pe.split(ut))==null?void 0:Ve[1]:(Ie=(Me=(we=(ue=(Ae=ge==null?void 0:ge.compData)==null?void 0:Ae.find(Xe=>(Xe==null?void 0:Xe.key)==="relatedFilter"))==null?void 0:ue.contents)==null?void 0:we.replace("[",ut))==null?void 0:Me.split(ut))==null?void 0:Ie[1],He=(ke=(pe=nt==null?void 0:nt.replace("[",ut))==null?void 0:pe.split(ut))==null?void 0:ke[0],ot=(ve=(ae=nt==null?void 0:nt.replace("[",ut))==null?void 0:ae.split(ut))==null?void 0:ve[1];ot=(be=(ie=(Ce=(ce=(Se=ot==null?void 0:ot.replace("]",ut))==null?void 0:Se.split(ut))==null?void 0:ce[0])==null?void 0:Ce.replaceAll("'",""))==null?void 0:ie.split(","))==null?void 0:be.map(Xe=>({label:Xe,prop:Xe}));let dt="";(He==null?void 0:He[(He==null?void 0:He.length)-1])===":"&&(He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1)),dt=(Ye=(Re=He==null?void 0:He.split(":"))==null?void 0:Re[((Ne=He==null?void 0:He.split(":"))==null?void 0:Ne.length)-1])==null?void 0:Ye.replaceAll("'","");let at=(Ze=(tt=p==null?void 0:p[et])==null?void 0:tt.find(Xe=>{var We,Et;return((Et=(We=Xe==null?void 0:Xe.value)==null?void 0:We.pageData)==null?void 0:Et.name)===dt}))==null?void 0:Ze.id;const Tt=(he=me.tableToContents(a.cloneDeep(O)))==null?void 0:he.map(Xe=>{var Et,Vt,bt,de,Be,ze,Ue,Ge,it,rt,mt,ht,wt,fe;let We=(bt=(Vt=(Et=me.tableToStruct(a.cloneDeep(O)))==null?void 0:Et.compData)==null?void 0:Vt.find(Ee=>(Ee==null?void 0:Ee.key)==="header"))==null?void 0:bt.contents;if(((de=We==null?void 0:We.find(Ee=>Ee==null?void 0:Ee.columnPath))==null?void 0:de.columnPathIndex)==="")We=[...ot,...We];else{let Ee=((Be=We==null?void 0:We.find(De=>De==null?void 0:De.columnPath))==null?void 0:Be.columnPathIndex)!==""&&((ze=We==null?void 0:We.find(De=>De==null?void 0:De.columnPath))!=null&&ze.columnPathIndex)?parseInt((Ue=We==null?void 0:We.find(De=>De==null?void 0:De.columnPath))==null?void 0:Ue.columnPathIndex):0,Oe=We.slice(Ee,(We==null?void 0:We.length)-1)??[];We=[...We.slice(0,Ee),...ot],We=[...We,...Oe]}if((Xe==null?void 0:Xe.length)!==0)return(ht=(mt=(rt=(it=(Ge=We==null?void 0:We.find(Ee=>Ee==null?void 0:Ee.columnPath))==null?void 0:Ge.columnPath)==null?void 0:it.split("@Sync"))==null?void 0:rt[1])==null?void 0:mt.toUpperCase())!=null&&ht.includes("NO")?{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:T.name,type:"data",tableId:Qe},value:{tableData:me.getValueToObjectValue(Xe,(wt=me.getColumnContents(We))==null?void 0:wt.filter(Ee=>Ee&&Ee!=="操作"))}}:{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:T.name,type:"data",tableId:Qe,parentId:at},value:{tableData:me.getValueToObjectValue(Xe,(fe=me.getColumnContents(We))==null?void 0:fe.filter(Ee=>Ee&&Ee!=="操作"))}}});m=[...m,...Tt]}else{const Te=(xe=me.tableToContents(a.cloneDeep(O)))==null?void 0:xe.map(et=>{var nt,He,ot,dt;if((et==null?void 0:et.length)!==0)return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:T.name,type:"data",tableId:Qe},value:{tableData:me.getValueToObjectValue(et,(dt=me.getColumnContents((ot=(He=(nt=me.tableToStruct(a.cloneDeep(O)))==null?void 0:nt.compData)==null?void 0:He.find(at=>(at==null?void 0:at.key)==="header"))==null?void 0:ot.contents))==null?void 0:dt.filter(at=>at!=="操作"))}}});m=[...m,...Te]}}})})}))})),(m==null?void 0:m.length)>0&&await a.batchAddInsofDataApi({dataList:m});let y=new WeakMap;(B=(P=(await a.getPageInsofDataApi({systemKey:sessionStorage.getItem("systemKey"),type:"data,structure,structureMethod"})).data.result)==null?void 0:P.filter(T=>{var N,V;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"&&((V=T==null?void 0:T.key)==null?void 0:V.pageKey)!=="secret"}))==null||B.forEach(T=>{y[T.key.pageKey]?y[T.key.pageKey]=[...y[T.key.pageKey],T]:y[T.key.pageKey]=[T]});let g=[];await(d==null?void 0:d.map(async T=>{var N;await((N=T.compData)==null?void 0:N.forEach(async V=>{var R;(R=V.contents)==null||R.map(async j=>{var q;Array.isArray(j)||(q=me.tableEveryContents(a.cloneDeep(j)))==null||q.forEach(async D=>{var $,A,O,M,F,x,K,Y,W;if(j.comp==="Table"){let te={comp:($=me.tableToStruct(a.cloneDeep(D)))==null?void 0:$.comp,compData:(A=me.tableToStruct(a.cloneDeep(D)))==null?void 0:A.compData,isShow:D==null?void 0:D.isShow};(M=(O=Object.keys(D))==null?void 0:O.filter(X=>X==null?void 0:X.includes("name")))==null||M.forEach(X=>{var G;te[X]=(G=me.tableToStruct(a.cloneDeep(D)))==null?void 0:G[X]});let re=[];te!=null&&te.name1?re=(F=p==null?void 0:p[T.name])==null?void 0:F.filter(X=>{var G,I,H,Z,J,le,oe;return((G=X==null?void 0:X.key)==null?void 0:G.type)==="structure"&&((H=(I=X==null?void 0:X.value)==null?void 0:I.pageData)==null?void 0:H.name)===(te==null?void 0:te.name)&&((J=(Z=X==null?void 0:X.value)==null?void 0:Z.pageData)==null?void 0:J.name0)===(te==null?void 0:te.name0)&&((oe=(le=X==null?void 0:X.value)==null?void 0:le.pageData)==null?void 0:oe.name1)===(te==null?void 0:te.name1)}):te!=null&&te.name0?re=(x=p==null?void 0:p[T.name])==null?void 0:x.filter(X=>{var G,I,H,Z,J;return((G=X==null?void 0:X.key)==null?void 0:G.type)==="structure"&&((H=(I=X==null?void 0:X.value)==null?void 0:I.pageData)==null?void 0:H.name)===(te==null?void 0:te.name)&&((J=(Z=X==null?void 0:X.value)==null?void 0:Z.pageData)==null?void 0:J.name0)===(te==null?void 0:te.name0)}):re=(K=p==null?void 0:p[T.name])==null?void 0:K.filter(X=>{var G,I,H;return((G=X==null?void 0:X.key)==null?void 0:G.type)==="structure"&&((H=(I=X==null?void 0:X.value)==null?void 0:I.pageData)==null?void 0:H.name)===(te==null?void 0:te.name)});const Q=(Y=re==null?void 0:re[0])==null?void 0:Y.id;await((W=me.tableToContents(a.cloneDeep(D)))==null?void 0:W.map(async X=>{var Z,J;let G;(X==null?void 0:X.length)!==0&&(G=(Z=y==null?void 0:y[T.name])==null?void 0:Z.filter(le=>{var oe,ee;return((oe=le==null?void 0:le.key)==null?void 0:oe.tableId)===Q&&((ee=le==null?void 0:le.key)==null?void 0:ee.type)==="data"}));const I=(J=p==null?void 0:p[T.name])==null?void 0:J.filter(le=>{var oe,ee;return((oe=le==null?void 0:le.key)==null?void 0:oe.tableId)===Q&&((ee=le==null?void 0:le.key)==null?void 0:ee.type)==="structure"});return await(I==null?void 0:I.map(async le=>{var oe,ee,U;g.push({id:le.id,key:{systemKey:le.key.systemKey,pageKey:le.key.pageKey,type:le.key.type,version:le.key.version,parentTable:le.key.parentTable===""?"":(U=(ee=(oe=G==null?void 0:G.data)==null?void 0:oe.result)==null?void 0:ee[0])==null?void 0:U.id}})}))}))}})})}))})),(g==null?void 0:g.length)>0&&await a.batchUpdateInsofDataApi({dataList:g}),await Promise.all(n),await me.getParentConstruct(o)},Ev=(t,n,o="")=>{var c,u,d,f,p,v,m,y,h,g,C,E,k,b,w,S,_,P,B;let l=(u=(c=t==null?void 0:t.replace("[",ut))==null?void 0:c.split(ut))==null?void 0:u[0],r=o,s=(m=(v=(p=(f=(d=t==null?void 0:t.replace("[",ut))==null?void 0:d.split(ut))==null?void 0:f[1])==null?void 0:p.replace("[",ut))==null?void 0:v.split(ut))==null?void 0:m[0];s=(h=s==null?void 0:s.split(":")[((y=s==null?void 0:s.split(":"))==null?void 0:y.length)-2])==null?void 0:h.replaceAll("'",""),((g=t==null?void 0:t.split("("))==null?void 0:g.length)>1&&(r=r===""?r+((C=t==null?void 0:t.split("("))==null?void 0:C[1]):r+","+((E=t==null?void 0:t.split("("))==null?void 0:E[1]));let i=(P=(_=(S=(w=(b=(k=n==null?void 0:n[l])==null?void 0:k.find(T=>{var N,V;return((V=(N=T==null?void 0:T.value)==null?void 0:N.pageData)==null?void 0:V.name)===s}))==null?void 0:b.value)==null?void 0:w.pageData)==null?void 0:S.compData)==null?void 0:_.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:P.contents;if(i!=null&&i.find(T=>T==null?void 0:T.columnPath)){let T=Ev((B=i==null?void 0:i.find(N=>N==null?void 0:N.columnPath))==null?void 0:B.columnPath,n,r);return{pageKey:T==null?void 0:T.pageKey,filter:T==null?void 0:T.filter}}else return{pageKey:l,filter:r}},Wx=async t=>{var s,i;let n=[],o=new WeakMap;(i=(s=(await a.getPageInsofDataApi({systemKey:sessionStorage.getItem("systemKey"),type:"data,structure,structureMethod"})).data.result)==null?void 0:s.filter(c=>{var u,d;return((u=c==null?void 0:c.key)==null?void 0:u.pageKey)!=="menu"&&((d=c==null?void 0:c.key)==null?void 0:d.pageKey)!=="secret"}))==null||i.forEach(c=>{o[c.key.pageKey]?o[c.key.pageKey]=[...o[c.key.pageKey],c]:o[c.key.pageKey]=[c]});let r=a.cloneDeep(t);r==null||r.map(async c=>{var u;await((u=c.compData)==null?void 0:u.forEach(async d=>{var f;(f=d.contents)==null||f.map(async p=>{var v;Array.isArray(p)||(v=me.tableEveryContents(a.cloneDeep(p)))==null||v.forEach(async m=>{var y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A,O,M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z;if(p.comp==="Table"){let J={comp:(y=me.tableToStruct(a.cloneDeep(m)))==null?void 0:y.comp,compData:(h=me.tableToStruct(a.cloneDeep(m)))==null?void 0:h.compData,isShow:m==null?void 0:m.isShow};(C=(g=Object.keys(m))==null?void 0:g.filter(U=>U==null?void 0:U.includes("name")))==null||C.forEach(U=>{var se;J[U]=(se=me.tableToStruct(a.cloneDeep(m)))==null?void 0:se[U]});const le=(E=o==null?void 0:o[c.name])==null?void 0:E.filter(U=>{var se,z,ne;return((se=U==null?void 0:U.key)==null?void 0:se.type)==="structure"&&((ne=(z=U==null?void 0:U.value)==null?void 0:z.pageData)==null?void 0:ne.name)===(J==null?void 0:J.name)}),oe=(k=le==null?void 0:le[0])==null?void 0:k.id;let ee=[];if(((S=(w=(b=J==null?void 0:J.compData)==null?void 0:b.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:w.contents)==null?void 0:S.length)>2&&((B=(P=(_=J==null?void 0:J.compData)==null?void 0:_.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:P.contents)!=null&&B.find(U=>U==null?void 0:U.columnPath))){let U=(V=(N=(T=J==null?void 0:J.compData)==null?void 0:T.find(pe=>(pe==null?void 0:pe.key)==="header"))==null?void 0:N.contents)==null?void 0:V.find(pe=>pe==null?void 0:pe.columnPath),se=Ev(U==null?void 0:U.columnPath,o),z=se==null?void 0:se.pageKey,ne=(R=se==null?void 0:se.filter)==null?void 0:R.replaceAll(")",""),_e=(D=(q=(j=U==null?void 0:U.columnPath)==null?void 0:j.replace("[",ut))==null?void 0:q.split(ut))==null?void 0:D[1],ye=(A=($=_e==null?void 0:_e.replace("[",ut))==null?void 0:$.split(ut))==null?void 0:A[0],Pe=(M=(O=_e==null?void 0:_e.replace("[",ut))==null?void 0:O.split(ut))==null?void 0:M[1];Pe=(W=(Y=(K=(x=(F=Pe==null?void 0:Pe.replace("]",ut))==null?void 0:F.split(ut))==null?void 0:x[0])==null?void 0:K.replaceAll("'",""))==null?void 0:Y.split(","))==null?void 0:W.map(pe=>({label:pe,prop:pe}));let Ve="";(ye==null?void 0:ye[(ye==null?void 0:ye.length)-1])===":"&&(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1)),Ve=(Q=(re=ye==null?void 0:ye.split(":"))==null?void 0:re[((te=ye==null?void 0:ye.split(":"))==null?void 0:te.length)-1])==null?void 0:Q.replaceAll("'","");let Ae=(G=(X=o==null?void 0:o[z])==null?void 0:X.find(pe=>{var ke,ae;return((ae=(ke=pe==null?void 0:pe.value)==null?void 0:ke.pageData)==null?void 0:ae.name)===Ve}))==null?void 0:G.id,ue=(I=o==null?void 0:o[z])==null?void 0:I.filter(pe=>{var ke;return((ke=pe==null?void 0:pe.key)==null?void 0:ke.tableId)===Ae}),we=ue,Me=(H=o==null?void 0:o[c.name])==null?void 0:H.filter(pe=>{var ke;return((ke=pe==null?void 0:pe.key)==null?void 0:ke.tableId)===oe}),Ie=await((Z=me.tableToContents(a.cloneDeep(m)))==null?void 0:Z.map(async pe=>{var ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe,ge,Le,Qe,Te,et,nt,He,ot,dt,at,Tt,Xe,We,Et,Vt,bt,de,Be,ze,Ue,Ge,it,rt,mt,ht,wt,fe,Ee,Oe,De,st,vt,Ot,At,ln,yn,an,rn,sn,Bn,Pn,Vn,Dn,In,On,$n;if((pe==null?void 0:pe.length)!==0){let lt=(ve=(ae=(ke=me.tableToStruct(a.cloneDeep(m)))==null?void 0:ke.compData)==null?void 0:ae.find(Fe=>(Fe==null?void 0:Fe.key)==="header"))==null?void 0:ve.contents;if(((Se=lt==null?void 0:lt.find(Fe=>Fe==null?void 0:Fe.columnPath))==null?void 0:Se.columnPathIndex)==="")lt=[...Pe,...lt];else{let Fe=((ce=lt==null?void 0:lt.find(ft=>ft==null?void 0:ft.columnPath))==null?void 0:ce.columnPathIndex)!==""&&((Ce=lt==null?void 0:lt.find(ft=>ft==null?void 0:ft.columnPath))!=null&&Ce.columnPathIndex)?parseInt((ie=lt==null?void 0:lt.find(ft=>ft==null?void 0:ft.columnPath))==null?void 0:ie.columnPathIndex):0,pt=lt.slice(Fe,(lt==null?void 0:lt.length)-1)??[];lt=[...lt.slice(0,Fe),...Pe],lt=[...lt,...pt]}let zt=me.getValueToObjectValue(pe,(be=me.getColumnContents(lt))==null?void 0:be.filter(Fe=>Fe!=="操作")),Dt=(tt=(Ye=(Re=(Ne=m==null?void 0:m.compData)==null?void 0:Ne.find(Fe=>(Fe==null?void 0:Fe.key)==="header"))==null?void 0:Re.contents)==null?void 0:Ye.find(Fe=>Fe==null?void 0:Fe.columnPath))==null?void 0:tt.columnPath,Mn=(Ze=Me==null?void 0:Me.find(Fe=>{var pt;return me.sameKeys(zt,(pt=Fe==null?void 0:Fe.value)==null?void 0:pt.tableData)}))==null?void 0:Ze.id;Dt=(Te=(Qe=(Le=(ge=(xe=Dt==null?void 0:Dt.split("["))==null?void 0:xe[((he=Dt==null?void 0:Dt.split("["))==null?void 0:he.length)-1])==null?void 0:ge.split("]"))==null?void 0:Le[0])==null?void 0:Qe.replaceAll("'",""))==null?void 0:Te.split(",");let cn=(et=ue==null?void 0:ue.find(Fe=>{var pt;return me.sameKeys(zt,(pt=Fe==null?void 0:Fe.value)==null?void 0:pt.tableData,Dt)}))==null?void 0:et.id,Wn=(nt=we==null?void 0:we.find(Fe=>{var pt;return me.sameKeys(zt,(pt=Fe==null?void 0:Fe.value)==null?void 0:pt.tableData,Dt)}))==null?void 0:nt.id,bn=(Xe=(Tt=(at=(dt=(ot=(He=lt==null?void 0:lt.find(Fe=>Fe==null?void 0:Fe.columnPath))==null?void 0:He.columnPath)==null?void 0:ot.split("("))==null?void 0:dt[1])==null?void 0:at.split(")"))==null?void 0:Tt[0])==null?void 0:Xe.split(",");if(((bt=(Vt=(Et=(We=bn==null?void 0:bn.find(Fe=>{var pt;return(pt=Fe==null?void 0:Fe.toUpperCase())==null?void 0:pt.includes("SYNC")}))==null?void 0:We.split(":"))==null?void 0:Et[1])==null?void 0:Vt.trim())==null?void 0:bt.toUpperCase())!=="NO"){if(!cn&&!Wn){let Fe=(mt=(rt=(it=(Ge=(Ue=(de=U==null?void 0:U.columnPath)==null?void 0:de.split("["))==null?void 0:Ue[((ze=(Be=U==null?void 0:U.columnPath)==null?void 0:Be.split("["))==null?void 0:ze.length)-1])==null?void 0:Ge.split("]"))==null?void 0:it[0])==null?void 0:rt.replaceAll("'",""))==null?void 0:mt.split(","),pt=(Ee=(fe=(wt=(ht=ne==null?void 0:ne.split(","))==null?void 0:ht.filter(Rt=>Rt==null?void 0:Rt.includes("@Condition")))==null?void 0:wt[0])==null?void 0:fe.split("&&"))==null?void 0:Ee[0],ft=(De=(Oe=pt==null?void 0:pt.split(":"))==null?void 0:Oe[1])==null?void 0:De.replaceAll("'",""),un={};for(let Rt in zt)Fe!=null&&Fe.find(qn=>qn===Rt)&&(un[Rt]=zt==null?void 0:zt[Rt]);un[(st=ft==null?void 0:ft.split("="))==null?void 0:st[0]]=(vt=ft==null?void 0:ft.split("="))==null?void 0:vt[1];let Un={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:z,type:"data",tableId:(At=(Ot=ue==null?void 0:ue[0])==null?void 0:Ot.key)==null?void 0:At.tableId,createUserId:(yn=(ln=ue==null?void 0:ue[0])==null?void 0:ln.key)==null?void 0:yn.createUserId,createUserLayer:(rn=(an=ue==null?void 0:ue[0])==null?void 0:an.key)==null?void 0:rn.createUserLayer},value:{tableData:un}},jt=await a.createInsofDataApi(Un);ue.push({id:(sn=jt==null?void 0:jt.data)==null?void 0:sn.result,key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:z,type:"data",tableId:(Pn=(Bn=ue==null?void 0:ue[0])==null?void 0:Bn.key)==null?void 0:Pn.tableId,createUserId:(Dn=(Vn=ue==null?void 0:ue[0])==null?void 0:Vn.key)==null?void 0:Dn.createUserId,createUserLayer:(On=(In=ue==null?void 0:ue[0])==null?void 0:In.key)==null?void 0:On.createUserLayer},value:{tableData:un}}),cn=($n=jt==null?void 0:jt.data)==null?void 0:$n.result}if(cn&&Mn)return{id:Mn,key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:c.name,type:"data",tableId:oe,parentId:cn}}}}}));Ie=await Promise.all(Ie),Ie=Ie==null?void 0:Ie.filter(pe=>pe),Ie&&(ee=[...ee,...Ie])}if((ee==null?void 0:ee.length)>0){const U=await a.batchUpdateInsofDataApi({dataList:ee});n.push(U)}}})})}))}),await Promise.all(n)},Tl=t=>{var l;let n="",o=[];return(l=a.cloneDeep(t).split("/"))==null||l.forEach((r,s)=>{s!==a.cloneDeep(t).split("/").length-1&&o.push(r)}),o==null||o.forEach(r=>{n=n===""?n+r:n+"/"+r}),n},Ef=(t,n)=>{var r;let o=(r=t==null?void 0:t.filter(s=>(s==null?void 0:s.label)!=="操作"))==null?void 0:r.map(s=>s==null?void 0:s.label);return n==null?void 0:n.map(s=>me.getValueToObjectValue(s,o))},wf=(t,n)=>{var o,l,r,s,i,c,u,d;return((l=(o=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="header"))==null?void 0:o.contents)==null?void 0:l.length)===0?Ef((i=(s=(r=n==null?void 0:n.value)==null?void 0:r.compData)==null?void 0:s.find(f=>(f==null?void 0:f.key)==="header"))==null?void 0:i.contents,(c=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="tableContents"))==null?void 0:c.contents):Ef((u=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="header"))==null?void 0:u.contents,(d=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="tableContents"))==null?void 0:d.contents)},Sf=(t,n)=>{var l;let o=a.cloneDeep(t);return o.compData=(l=a.cloneDeep(o.compData))==null?void 0:l.map(r=>((r==null?void 0:r.key)==="formContent"&&(r.contents=n==null?void 0:n.map(s=>{var i,c;return s.value=((c=(i=r.contents)==null?void 0:i.find(u=>u.key===s.key))==null?void 0:c.value)??"",s})),r)),o},Ux=async t=>{var i,c,u;let n=(i=a.cloneDeep(t))==null?void 0:i.map(d=>d==null?void 0:d.path);const o=await a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});if(o.data.code!==200)return;let l=new WeakMap;(c=o.data.result)==null||c.forEach(d=>{var p,v,m,y;let f=[{key:d==null?void 0:d.id,name:((v=(p=d==null?void 0:d.value)==null?void 0:p.pageData)==null?void 0:v.name)??"",value:(m=d==null?void 0:d.value)==null?void 0:m.pageData}];l[d.key.pageKey]=((y=l[d.key.pageKey])==null?void 0:y.length)>0?[...l[d.key.pageKey],...f]:f});let r=new WeakMap;n==null||n.forEach(d=>{l[d]&&(r[d]=l[d])});let s=a.cloneDeep(t);s=(u=a.cloneDeep(s))==null?void 0:u.map(d=>{var p,v,m,y;let f=(p=a.cloneDeep(d))==null?void 0:p.key;return f.tableId=(m=(v=r[d==null?void 0:d.path])==null?void 0:v.find(h=>{var g;return(h==null?void 0:h.name)===((g=a.cloneDeep(d))==null?void 0:g.name)}))==null?void 0:m.key,d={key:f,value:(y=a.cloneDeep(d))==null?void 0:y.value},d}),s.length!==0&&await a.batchAddInsofDataApi({dataList:s})},ka=(t,n)=>{var o,l,r,s,i,c,u,d,f,p,v,m,y,h,g;if(((l=(o=a.cloneDeep(t))==null?void 0:o.filter(C=>{var E;return(C==null?void 0:C.name)===((E=a.cloneDeep(n))==null?void 0:E.name)}))==null?void 0:l.length)===1)return{contents:(u=(c=(i=(s=(r=a.cloneDeep(t))==null?void 0:r.find(C=>{var E;return(C==null?void 0:C.name)===((E=a.cloneDeep(n))==null?void 0:E.name)}))==null?void 0:s.value)==null?void 0:i.compData)==null?void 0:c.find(C=>(C==null?void 0:C.key)==="formContent"))==null?void 0:u.contents,key:(f=(d=a.cloneDeep(t))==null?void 0:d.find(C=>{var E;return(C==null?void 0:C.name)===((E=a.cloneDeep(n))==null?void 0:E.name)}))==null?void 0:f.key};{let C,E,k=(y=(m=(v=(p=a.cloneDeep(n))==null?void 0:p.compData)==null?void 0:v.find(b=>(b==null?void 0:b.key)==="formContent"))==null?void 0:m.contents)==null?void 0:y.map(b=>b==null?void 0:b.key);return(g=(h=a.cloneDeep(t))==null?void 0:h.filter(b=>{var w;return(b==null?void 0:b.name)===((w=a.cloneDeep(n))==null?void 0:w.name)}))==null||g.forEach(b=>{var S,_,P,B,T,N,V,R;let w=(T=(B=(P=(_=(S=a.cloneDeep(b))==null?void 0:S.value)==null?void 0:_.compData)==null?void 0:P.find(j=>(j==null?void 0:j.key)==="formContent"))==null?void 0:B.contents)==null?void 0:T.map(j=>j==null?void 0:j.key);w&&k.every(j=>w.includes(j))&&(C=(R=(V=(N=b==null?void 0:b.value)==null?void 0:N.compData)==null?void 0:V.find(j=>(j==null?void 0:j.key)==="formContent"))==null?void 0:R.contents,E=b==null?void 0:b.key)}),{contents:C,key:E}}},qx=async t=>{var u,d,f;let n=[];(u=a.cloneDeep(t))==null||u.forEach(p=>{n.push(p.name);let v=Tl(a.cloneDeep(p.name));v!==""&&n.push(v)}),n=[...new Set(n)];const o=await a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});if(o.data.code!==200)return;let l=new WeakMap;(d=o.data.result)==null||d.forEach(p=>{var m,y,h,g;let v=[{key:p==null?void 0:p.id,name:((y=(m=p==null?void 0:p.value)==null?void 0:m.pageData)==null?void 0:y.name)??"",value:(h=p==null?void 0:p.value)==null?void 0:h.pageData}];l[p.key.pageKey]=((g=l[p.key.pageKey])==null?void 0:g.length)>0?[...l[p.key.pageKey],...v]:v});let r=new WeakMap;for(let p in l)n!=null&&n.find(v=>v===p)&&(r[p]=l[p]);let s=[],i=[],c=[];(f=a.cloneDeep(t))==null||f.forEach(p=>{var v,m;r!=null&&r[p.name]?(v=p==null?void 0:p.compData)==null||v.forEach(y=>{var h;(h=y==null?void 0:y.contents)==null||h.forEach(g=>{var C,E,k,b,w,S,_;if((g==null?void 0:g.comp)==="Table"){let P=wf((C=a.cloneDeep(g))==null?void 0:C.compData,(E=a.cloneDeep(r==null?void 0:r[p.name]))==null?void 0:E.find(B=>(B==null?void 0:B.name)===(g==null?void 0:g.name)));P==null||P.forEach(B=>{var T,N;i.push({key:{type:"data",pageKey:p==null?void 0:p.name,tableId:(N=(T=r==null?void 0:r[p.name])==null?void 0:T.find(V=>(V==null?void 0:V.name)===(g==null?void 0:g.name)))==null?void 0:N.key,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:B}})})}else if((b=ka((k=a.cloneDeep(r))==null?void 0:k[p.name],a.cloneDeep(g)))!=null&&b.contents){let P=Sf(a.cloneDeep(g),(w=ka(r==null?void 0:r[p.name],a.cloneDeep(g)))==null?void 0:w.contents);s!=null&&s.find(B=>{var T,N;return(B==null?void 0:B.id)===((N=ka((T=a.cloneDeep(r))==null?void 0:T[p.name],a.cloneDeep(g)))==null?void 0:N.key)})||s.push({id:(_=ka((S=a.cloneDeep(r))==null?void 0:S[p.name],a.cloneDeep(g)))==null?void 0:_.key,value:{pageData:P}})}})}):r!=null&&r[Tl(p.name)]&&((m=p==null?void 0:p.compData)==null||m.forEach(y=>{var h;(h=y==null?void 0:y.contents)==null||h.forEach(g=>{var C,E,k,b,w,S,_,P,B;if((g==null?void 0:g.comp)==="Table"){let T=(E=(C=r==null?void 0:r[Tl(p.name)])==null?void 0:C.find(V=>(V==null?void 0:V.name)===(g==null?void 0:g.name)))==null?void 0:E.value;i.push({key:{type:"structure",pageKey:p==null?void 0:p.name,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),version:1},value:{pageData:T}});let N=wf((k=a.cloneDeep(g))==null?void 0:k.compData,(b=a.cloneDeep(r==null?void 0:r[Tl(p.name)]))==null?void 0:b.find(V=>(V==null?void 0:V.name)===(g==null?void 0:g.name)));N==null||N.forEach(V=>{c.push({name:g.name,path:p.name,key:{type:"data",pageKey:p==null?void 0:p.name,tableId:"",systemKey:sessionStorage.getItem("systemKey")},value:{tableData:V}})})}else{let T=Sf(a.cloneDeep(g),(B=(P=(_=(S=(w=a.cloneDeep(r==null?void 0:r[Tl(p.name)]))==null?void 0:w.find(N=>(N==null?void 0:N.name)===(g==null?void 0:g.name)))==null?void 0:S.value)==null?void 0:_.compData)==null?void 0:P.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:B.contents);i.push({key:{type:"structure",pageKey:p==null?void 0:p.name,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),version:1},value:{pageData:T}})}})}))}),i.length!==0&&(await a.batchAddInsofDataApi({dataList:i}),c.length!==0&&await Ux(c),s.length!==0&&await a.batchUpdateInsofDataApi({dataList:s}))},wv=L.useMenuState(),Js=t=>t==null?void 0:t.map(n=>(n.contents&&(n.contents=n.contents.filter(o=>{var l;return((l=o.comp)==null?void 0:l.toUpperCase())!=="CALCULATOR"})),n.compData&&(n.compData=Js(n.compData)),n)),Yx=async t=>{var o,l,r,s,i,c,u,d,f,p,v,m,y,h,g,C,E,k,b,w,S,_,P;const n=await a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if((t==null?void 0:t.length)===0){if(((o=n==null?void 0:n.data)==null?void 0:o.code)===200&&(s=(r=(l=n==null?void 0:n.data)==null?void 0:l.result)==null?void 0:r[0])!=null&&s.id){const B=(c=(i=n==null?void 0:n.data)==null?void 0:i.result)==null?void 0:c[0],T=(f=(d=(u=n==null?void 0:n.data)==null?void 0:u.result)==null?void 0:d[0])==null?void 0:f.key;T.systemType="管理系统",await a.updateInsofDataApi({id:B==null?void 0:B.id,key:T})}return}try{if(((p=n==null?void 0:n.data)==null?void 0:p.code)===200&&(y=(m=(v=n==null?void 0:n.data)==null?void 0:v.result)==null?void 0:m[0])!=null&&y.id){const B=(g=(h=n==null?void 0:n.data)==null?void 0:h.result)==null?void 0:g[0],T=(k=(E=(C=n==null?void 0:n.data)==null?void 0:C.result)==null?void 0:E[0])==null?void 0:k.key,N=(b=a.cloneDeep(t))==null?void 0:b.map(V=>{var R;return(R=V.compData)==null?void 0:R[0]});T.systemType=(S=(w=N==null?void 0:N.find(V=>(V==null?void 0:V.key)==="type"))==null?void 0:w.contents)==null?void 0:S[0],T.name=(P=(_=N==null?void 0:N.find(V=>(V==null?void 0:V.key)==="name"))==null?void 0:_.contents)==null?void 0:P[0],await a.updateInsofDataApi({id:B==null?void 0:B.id,key:T})}}catch(B){return Promise.reject(B)}},Nf=async t=>{var n,o,l,r;try{const s=await a.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu",type:"structure"},value:{pageData:t}});if(((n=s==null?void 0:s.data)==null?void 0:n.code)===200){const i=(l=(o=t==null?void 0:t.compData)==null?void 0:o[0])==null?void 0:l.contents;wv.setRawMenus(i??[])}return(r=s==null?void 0:s.data)==null?void 0:r.code}catch(s){return Promise.reject(s)}},Gx=async()=>{var t,n,o,l,r,s,i,c;try{const u=await a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu",type:"structure"}});return((t=u==null?void 0:u.data)==null?void 0:t.code)===200&&((l=(o=(n=u==null?void 0:u.data)==null?void 0:n.result)==null?void 0:o[0])!=null&&l.id)&&await a.deleteInsofDataApi({id:(i=(s=(r=u==null?void 0:u.data)==null?void 0:r.result)==null?void 0:s[0])==null?void 0:i.id}),(c=u==null?void 0:u.data)==null?void 0:c.code}catch(u){return Promise.reject(u)}},Sv=async(t,n)=>{var o,l,r,s;try{const i=await a.updateInsofDataApi({id:t,value:{pageData:n}});if(((o=i==null?void 0:i.data)==null?void 0:o.code)===200){const c=(r=(l=n==null?void 0:n.compData)==null?void 0:l[0])==null?void 0:r.contents;wv.setRawMenus(c??[])}return(s=i==null?void 0:i.data)==null?void 0:s.code}catch(i){return Promise.reject(i)}},Xx=async()=>{var t;try{const n=L.generateKeyPair(),o=await a.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"secret",type:"system"},value:{cryptoInfo:{publicKey:n.publicKey,privateKey:n.privateKey}}});return((t=o==null?void 0:o.data)==null?void 0:t.code)===200}catch(n){throw n}},Jx=async()=>{var n,o,l;const t=await a.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return!(((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&((l=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:l.length)>0)},Zx=async()=>{var n,o,l;const t=await a.getInsofDataApi({key:{type:"system",pageKey:"secret",systemKey:sessionStorage.getItem("systemKey")}});return!(((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&((l=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:l.length)>0)},Qx=async t=>{var o,l;let n=a.cloneDeep(t);if(n=[...n,Vv.tempMenuPageData,Dv.tempMainMenuPageData],sessionStorage.getItem("systemKey"))if(t!=null&&t.find(r=>(r==null?void 0:r.comp)==="System")){const r=n==null?void 0:n.find(d=>d.comp==="Menu"),s=n==null?void 0:n.filter(d=>d.comp==="System"),i=await Jx(),c=await Zx();i&&await Nf(r),await Yx(s),c&&Xx();const u=(o=Js(a.cloneDeep(n)))==null?void 0:o.filter(d=>{var f,p,v;return((f=d==null?void 0:d.comp)==null?void 0:f.toUpperCase())!=="MENU"&&((p=d==null?void 0:d.comp)==null?void 0:p.toUpperCase())!=="MENUTOP"&&((v=d==null?void 0:d.comp)==null?void 0:v.toUpperCase())!=="SYSTEM"});await jx(u),await Wx(u)}else{const r=n==null?void 0:n.find(i=>i.comp==="Menu");await Gx(),await Nf(r);const s=(l=Js(a.cloneDeep(n)))==null?void 0:l.filter(i=>{var c,u,d;return((c=i==null?void 0:i.comp)==null?void 0:c.toUpperCase())!=="MENU"&&((u=i==null?void 0:i.comp)==null?void 0:u.toUpperCase())!=="MENUTOP"&&((d=i==null?void 0:i.comp)==null?void 0:d.toUpperCase())!=="SYSTEM"});await qx(s)}};function eA(t="menu"){return{name:t,components:{ssMenu:$e.ssMenu,DynamicIcon:$e._sfc_main},setup(){const n=e.defineProps({mode:{type:String,default:"vertical"}}),o=e.ref("sub-menu-more"),l=L.useMenuState(),r=L.useModelComp(a.pinia),s=e.ref(0),i=Pf.useRouter(),{rawMenus:c,activeTopMenuPath:u,isRefreshMenus:d,menuTriggerType:f,permissionSideMenus:p,platform:v,cacheInputMenu:m,activeMainMenu:y,activeMenuPath:h,linkMenuInfo:g,updateMenuStatus:C}=a.storeToRefs(l),E=a.useLoginState(),{structureData:k}=a.storeToRefs(E),b=e.ref([]),w=e.ref([]),S=e.computed(()=>n==null?void 0:n.mode),_=e.ref({}),P=I=>I==null?void 0:I.map(H=>H.children&&H.children.length>0?{...H,children:H.level===0?[]:H.children??[],childMenus:P(H.children)}:H),B=(I,H)=>{var Z,J;return(J=(Z=w.value)==null?void 0:Z.find(le=>(I.title+H).includes(le.value)))==null?void 0:J.value},T=["系统管理/角色管理","系统管理/用户管理","系统管理/个人中心"],N=(I,H="",Z=0)=>{var ee;let J=a.cloneDeep(I);const le=Array.from(new Set([...(ee=k.value)==null?void 0:ee.map(U=>{var se;return(se=U==null?void 0:U.key)==null?void 0:se.pageKey})]));return Array.isArray(J)||(J=[J]),J==null?void 0:J.map(U=>{let se,z=H?`${H}/${U.title}`:U.title;T!=null&&T.includes(z)?se=H?`/${H}/${U.title}`:U.title:se=z;const ne={...U,path:se,level:Z,show:!0,icon:B(U,Z),carryData:le==null?void 0:le.includes(z),isPenultimate:!U.children,isRouter:T==null?void 0:T.includes(z),children:[],childMenus:[]};return U.children&&U.children.length>0&&(ne.children=N(U.children,se,Z+1)),ne})},V=e.computed(()=>{let I=a.cloneDeep(b.value);if(I=[...I,...p.value],(I==null?void 0:I.length)===0)return i.push("/"),[];const H=W(I,K.value);H.isFlag||(I=H==null?void 0:H.data);const Z=P(I);return l.setMenus(Z),Z}),R=async I=>{var le,oe,ee;let H,Z;(I==null?void 0:I.level)===0?Z={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),rootNodePath:I==null?void 0:I.path,tableId:""}}:Z={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/平台管理/菜单管理/"+(I==null?void 0:I.path),tableId:""}};const J=await a.getInsofDataApi(Z);return((le=J==null?void 0:J.data)==null?void 0:le.code)===200&&(H=(ee=(oe=J.data)==null?void 0:oe.result)==null?void 0:ee.map(U=>{var se;return{id:U==null?void 0:U.id,...(se=U==null?void 0:U.value)==null?void 0:se.tableData}}),(I==null?void 0:I.level)===0&&(_.value=a.cloneDeep(H))),(H==null?void 0:H.length)>0?H:null},j=(I,H)=>{var J,le;const Z=I==null?void 0:I.find(oe=>(oe==null?void 0:oe.operateType)==="新增");return((le=(J=m.value)==null?void 0:J.data)==null?void 0:le.path)===(H==null?void 0:H.path)?Z==null?void 0:Z.menuIcon:B(H,H==null?void 0:H.level)},q=async(I,H)=>{if(!Array.isArray(H))return I;for(const Z of H)if((Z==null?void 0:Z.path)===I.path)return{...I,config:await R(I)};return I},D=e.ref(null),$=async(I,H=null)=>await Promise.all(I==null?void 0:I.map(async Z=>{var oe;let J=await q(Z,_.value);const le=(J==null?void 0:J.config)??((oe=H==null?void 0:H.filter(ee=>ee.allowInherit))==null?void 0:oe.map(ee=>{var U;return{...ee,structureIds:(U=H==null?void 0:H.find(se=>{var z;return((z=se==null?void 0:se.structureIds)==null?void 0:z.length)>0}))==null?void 0:U.structureIds}}));return J!=null&&J.childMenus&&(J==null?void 0:J.childMenus.length)>0&&(J={...J,icon:j(le,Z),config:le,children:await $(Z==null?void 0:Z.childMenus,le),childMenus:await $(Z==null?void 0:Z.childMenus,le)}),{...J,icon:j(le,Z),config:le}})),A=async I=>(D.value=null,await $(I.childMenus));e.watch(()=>g.value,I=>{var Z,J,le;if(!I)return;const H=(J=(Z=I==null?void 0:I.path)==null?void 0:Z.split("/"))==null?void 0:J[0];if(H){const oe=(le=b.value)==null?void 0:le.find(ee=>(ee==null?void 0:ee.path)===H);if(!oe||(l.setActiveTopMenuPath(H),!(oe!=null&&oe.children)))return;l.setAsideMenus(oe==null?void 0:oe.children),l.setActiveMenuPath(I==null?void 0:I.path),r.setRouteToChildPath(I==null?void 0:I.path)}},{immediate:!0});const O=async I=>{var H,Z,J,le;if(l.setLinkMenuInfo(null),l.setAsideMenuLoading(!0),r.setRouteToChildPath(""),l.setActiveTopMenuPath(I==null?void 0:I.path),l.setActiveMainMenu(I),D.value=null,I!=null&&I.childMenus&&((H=I==null?void 0:I.childMenus)==null?void 0:H.length)>0){const oe=await A(I),ee=(oe==null?void 0:oe.length)===0?I==null?void 0:I.childMenus:oe;if(l.setAsideMenus(ee),C.value){const U=(J=(Z=I==null?void 0:I.childMenus)==null?void 0:Z[0])==null?void 0:J.path;l.setActiveMenuPath(U)}else l.setUpdateMenuStatus(!0);l.setActiveAsideMenu((le=I==null?void 0:I.childMenus)==null?void 0:le[0])}else l.setAsideMenus([]);I.isRouter?i.push(I.path):i.push("/"),l.setAsideMenuLoading(!1)},M=I=>{r.setRouteToChildPath(""),f.value==="click"?s.value===1?l.setActiveMenuPath(sessionStorage.getItem("pageKey")):I!==o.value&&l.setActiveMenuPath(I):l.setMenuTriggerType("click"),I!=null&&I.startsWith("/")?i.push(I):i.push("/"),s.value++},F=I=>{I!==o.value&&l.setActiveMenuPath(I)},x=I=>{const H=document.documentElement;I==null||I.forEach(Z=>{H.style.setProperty(Z.name,Z.value)})};e.onMounted(()=>{s.value=1,w.value=No.getSvgIcons()});const K=e.computed(()=>{const I=sessionStorage.getItem("authority");return I?JSON.parse(I):[]});e.watch(()=>v.value,I=>{I==="browser"?(x(Ut.browserVerticalMenuClasses),x(Ut.browserHorizontalMenuClasses)):I==="client"?(x(Ut.clientHorizontalMenuClasses),x(Ut.clientVerticalMenuClasses)):I==="three"&&(x(Ut.threeHorizontalMenuClasses),x(Ut.threeVerticalMenuClasses))},{immediate:!0}),e.watch(()=>c.value,I=>{if(w.value=No.getSvgIcons(),I){C.value&&(l.setActiveTopMenuPath(""),l.setActiveMenuPath(""),l.setAsideMenus([]));const H=I;b.value=N(a.convertRawToTree(H))}},{immediate:!0});const Y=(I,H)=>{function Z(J){J==null||J.forEach(le=>{var ee,U;const oe=(ee=le==null?void 0:le.path)!=null&&ee.startsWith("/")?(U=le==null?void 0:le.path)==null?void 0:U.substring(1):le==null?void 0:le.path;le.show=H==null?void 0:H.some(se=>se==null?void 0:se.includes(oe)),le.children&&Z(le.children)})}return Z(I),I},W=(I,H)=>{if(Array.isArray(H)){const Z=Array.from(new Set(H==null?void 0:H.map(J=>J==null?void 0:J.substring(0,J.lastIndexOf("/")))));return{data:Y(I,Z),isFlag:!1}}else return{isFlag:(H==null?void 0:H.toUpperCase())==="SUPERADMIN"}},te=I=>{var Z;const H=[I==null?void 0:I.title];if(I!=null&&I.children&&((Z=I==null?void 0:I.children)==null?void 0:Z.length)>0){const J=I.children.map(le=>te(le));H.push(...J)}return H},re=(I,H,Z,J)=>I.map(le=>{var oe,ee;if(le.path===Z){const U={...le};return J==="create"?U.children.push(H):J==="update"?U.children=(oe=U.children)==null?void 0:oe.map(se=>(se==null?void 0:se.path)===(H==null?void 0:H.path)?H:se):J==="delete"&&(U.children=(ee=U.children)==null?void 0:ee.filter(se=>(se==null?void 0:se.path)!==(H==null?void 0:H.path))),U}else return{...le,children:re(le.children,H,Z,J)}}),Q=async I=>{var Z,J,le,oe,ee,U;const H=(Z=k.value)==null?void 0:Z.find(se=>{var z;return((z=se==null?void 0:se.key)==null?void 0:z.pageKey)==="menu"});if(H){const se={...(J=H.value)==null?void 0:J.pageData,compData:(ee=(oe=(le=H.value)==null?void 0:le.pageData)==null?void 0:oe.compData)==null?void 0:ee.map(ne=>ne.key==="menuContents"?{...ne,contents:I}:ne)};await Sv(H==null?void 0:H.id,se);const z=(U=V.value)==null?void 0:U.find(ne=>(ne==null?void 0:ne.path)===u.value);z&&await O(z),l.setAsideMenuLoading(!1),l.setIsRefreshMenus(!1)}else l.setAsideMenuLoading(!1)},X=async I=>{var J,le,oe,ee,U;const H=await a.getInsofDataApi({id:I});let Z;return((J=H==null?void 0:H.data)==null?void 0:J.code)===200&&(Z=(U=(ee=(oe=(le=H==null?void 0:H.data)==null?void 0:le.result)==null?void 0:oe[0])==null?void 0:ee.value)==null?void 0:U.pageData),Z},G=async I=>{var U,se,z;const H=(z=(se=(U=I==null?void 0:I.config)==null?void 0:U.find(ne=>(ne==null?void 0:ne.operateType)==="新增"))==null?void 0:se.structureIds)==null?void 0:z.filter(ne=>(ne==null?void 0:ne.key)==="contentConfig"),Z=H==null?void 0:H.map(ne=>ne==null?void 0:ne.id);let J=[];Z==null||Z.forEach(ne=>{ne&&J.push(X(ne))});const le=await Promise.all(J),oe=le==null?void 0:le.map(ne=>{const{id:_e,...ye}=ne;return ye}),ee=oe==null?void 0:oe.map(ne=>({key:{pageKey:I==null?void 0:I.path,systemKey:sessionStorage.getItem("systemKey"),parentTable:"",version:1,type:"structure"},value:{pageData:ne}}));await a.batchAddInsofDataApi({dataList:ee})};return e.watch(()=>d.value,async I=>{var H,Z,J,le,oe,ee,U,se;if(I)try{const z=(J=(Z=(H=m.value)==null?void 0:H.data)==null?void 0:Z.path)==null?void 0:J.split("/").slice(0,-1).join("/"),ne=re(b.value,(le=m.value)==null?void 0:le.data,z,(oe=m.value)==null?void 0:oe.type),_e=(ee=ne==null?void 0:ne.filter(Ve=>Ve.path!=="平台管理"))==null?void 0:ee.map(Ve=>te(Ve));await G((U=m.value)==null?void 0:U.data),l.setAsideMenuLoading(!0),await Q(_e);const ye=await A(y.value),Pe=(ye==null?void 0:ye.length)===0?(se=y.value)==null?void 0:se.childMenus:ye;l.setAsideMenus(Pe)}catch(z){throw a.ElMessage.error(z),new Error(z)}},{immediate:!0}),{mode:S,renderMenuList:V,clickMenu:O,openMenu:M,closeMenu:F,changeMenuStyle:x}}}}const tA=e.defineComponent(eA()),nA=e.defineComponent($e.setComponent("ThreeMenu"));function Nv(t="menu"){return{name:t,components:{ssMenu:$e.ssMenu,DynamicIcon:$e._sfc_main},setup(){const n=e.defineProps({mode:{type:String,default:"vertical"}}),o=e.ref("sub-menu-more"),l=L.useMenuState(),r=L.useModelComp(a.pinia),s=e.ref(0),i=Pf.useRouter(),{rawMenus:c,activeTopMenuPath:u,isRefreshMenus:d,menuTriggerType:f,permissionSideMenus:p,platform:v,cacheInputMenu:m,activeMainMenu:y,activeMenuPath:h,linkMenuInfo:g,updateMenuStatus:C}=a.storeToRefs(l),E=a.useLoginState(),{structureData:k}=a.storeToRefs(E),b=e.ref([]),w=e.ref([]),S=e.computed(()=>n==null?void 0:n.mode),_=e.ref({}),P=I=>I==null?void 0:I.map(H=>H.children&&H.children.length>0?{...H,children:H.level===0?[]:H.children??[],childMenus:P(H.children)}:H),B=(I,H)=>{var Z,J;return(J=(Z=w.value)==null?void 0:Z.find(le=>(I.title+H).includes(le.value)))==null?void 0:J.value},T=["系统管理/角色管理","系统管理/用户管理","系统管理/个人中心"],N=(I,H="",Z=0)=>{var ee;let J=a.cloneDeep(I);const le=Array.from(new Set([...(ee=k.value)==null?void 0:ee.map(U=>{var se;return(se=U==null?void 0:U.key)==null?void 0:se.pageKey})]));return Array.isArray(J)||(J=[J]),J==null?void 0:J.map(U=>{let se,z=H?`${H}/${U.title}`:U.title;T!=null&&T.includes(z)?se=H?`/${H}/${U.title}`:U.title:se=z;const ne={...U,path:se,level:Z,show:!0,icon:B(U,Z),carryData:le==null?void 0:le.includes(z),isPenultimate:!U.children,isRouter:T==null?void 0:T.includes(z),children:[],childMenus:[]};return U.children&&U.children.length>0&&(ne.children=N(U.children,se,Z+1)),ne})},V=e.computed(()=>{let I=a.cloneDeep(b.value);if(I=[...I,...p.value],(I==null?void 0:I.length)===0)return i.push("/"),[];const H=W(I,K.value);H.isFlag||(I=H==null?void 0:H.data);const Z=P(I);return l.setMenus(Z),Z}),R=async I=>{var le,oe,ee;let H,Z;(I==null?void 0:I.level)===0?Z={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),rootNodePath:I==null?void 0:I.path,tableId:""}}:Z={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/平台管理/菜单管理/"+(I==null?void 0:I.path),tableId:""}};const J=await a.getInsofDataApi(Z);return((le=J==null?void 0:J.data)==null?void 0:le.code)===200&&(H=(ee=(oe=J.data)==null?void 0:oe.result)==null?void 0:ee.map(U=>{var se;return{id:U==null?void 0:U.id,...(se=U==null?void 0:U.value)==null?void 0:se.tableData}}),(I==null?void 0:I.level)===0&&(_.value=a.cloneDeep(H))),(H==null?void 0:H.length)>0?H:null},j=(I,H)=>{var J,le;const Z=I==null?void 0:I.find(oe=>(oe==null?void 0:oe.operateType)==="新增");return((le=(J=m.value)==null?void 0:J.data)==null?void 0:le.path)===(H==null?void 0:H.path)?Z==null?void 0:Z.menuIcon:B(H,H==null?void 0:H.level)},q=async(I,H)=>{if(!Array.isArray(H))return I;for(const Z of H)if((Z==null?void 0:Z.path)===I.path)return{...I,config:await R(I)};return I},D=e.ref(null),$=async(I,H=null)=>await Promise.all(I==null?void 0:I.map(async Z=>{var oe;let J=await q(Z,_.value);const le=(J==null?void 0:J.config)??((oe=H==null?void 0:H.filter(ee=>ee.allowInherit))==null?void 0:oe.map(ee=>{var U;return{...ee,structureIds:(U=H==null?void 0:H.find(se=>{var z;return((z=se==null?void 0:se.structureIds)==null?void 0:z.length)>0}))==null?void 0:U.structureIds}}));return J!=null&&J.childMenus&&(J==null?void 0:J.childMenus.length)>0&&(J={...J,icon:j(le,Z),config:le,children:await $(Z==null?void 0:Z.childMenus,le),childMenus:await $(Z==null?void 0:Z.childMenus,le)}),{...J,icon:j(le,Z),config:le}})),A=async I=>(D.value=null,await $(I.childMenus));e.watch(()=>g.value,I=>{var Z,J,le;if(!I)return;const H=(J=(Z=I==null?void 0:I.path)==null?void 0:Z.split("/"))==null?void 0:J[0];if(H){const oe=(le=b.value)==null?void 0:le.find(ee=>(ee==null?void 0:ee.path)===H);if(!oe||(l.setActiveTopMenuPath(H),!(oe!=null&&oe.children)))return;l.setAsideMenus(oe==null?void 0:oe.children),l.setActiveMenuPath(I==null?void 0:I.path),r.setRouteToChildPath(I==null?void 0:I.path)}},{immediate:!0});const O=async I=>{var H,Z,J,le;if(l.setLinkMenuInfo(null),l.setAsideMenuLoading(!0),r.setRouteToChildPath(""),l.setActiveTopMenuPath(I==null?void 0:I.path),l.setActiveMainMenu(I),D.value=null,I!=null&&I.childMenus&&((H=I==null?void 0:I.childMenus)==null?void 0:H.length)>0){const oe=await A(I),ee=(oe==null?void 0:oe.length)===0?I==null?void 0:I.childMenus:oe;if(l.setAsideMenus(ee),C.value){const U=(J=(Z=I==null?void 0:I.childMenus)==null?void 0:Z[0])==null?void 0:J.path;l.setActiveMenuPath(U)}else l.setUpdateMenuStatus(!0);l.setActiveAsideMenu((le=I==null?void 0:I.childMenus)==null?void 0:le[0])}else l.setAsideMenus([]);I.isRouter?i.push(I.path):i.push("/"),l.setAsideMenuLoading(!1)},M=I=>{r.setRouteToChildPath(""),f.value==="click"?s.value===1?l.setActiveMenuPath(sessionStorage.getItem("pageKey")):I!==o.value&&l.setActiveMenuPath(I):l.setMenuTriggerType("click"),I!=null&&I.startsWith("/")?i.push(I):i.push("/"),s.value++},F=I=>{I!==o.value&&l.setActiveMenuPath(I)},x=I=>{const H=document.documentElement;I==null||I.forEach(Z=>{H.style.setProperty(Z.name,Z.value)})};e.onMounted(()=>{s.value=1,w.value=No.getSvgIcons()});const K=e.computed(()=>{const I=sessionStorage.getItem("authority");return I?JSON.parse(I):[]});e.watch(()=>v.value,I=>{I==="browser"?(x(Ut.browserVerticalMenuClasses),x(Ut.browserHorizontalMenuClasses)):I==="client"?(x(Ut.clientHorizontalMenuClasses),x(Ut.clientVerticalMenuClasses)):I==="three"&&(x(Ut.threeHorizontalMenuClasses),x(Ut.threeVerticalMenuClasses))},{immediate:!0}),e.watch(()=>c.value,I=>{if(w.value=No.getSvgIcons(),I){C.value&&(l.setActiveTopMenuPath(""),l.setActiveMenuPath(""),l.setAsideMenus([]));const H=I;b.value=N(a.convertRawToTree(H))}},{immediate:!0});const Y=(I,H)=>{function Z(J){J==null||J.forEach(le=>{var ee,U;const oe=(ee=le==null?void 0:le.path)!=null&&ee.startsWith("/")?(U=le==null?void 0:le.path)==null?void 0:U.substring(1):le==null?void 0:le.path;le.show=H==null?void 0:H.some(se=>se==null?void 0:se.includes(oe)),le.children&&Z(le.children)})}return Z(I),I},W=(I,H)=>{if(Array.isArray(H)){const Z=Array.from(new Set(H==null?void 0:H.map(J=>J==null?void 0:J.substring(0,J.lastIndexOf("/")))));return{data:Y(I,Z),isFlag:!1}}else return{isFlag:(H==null?void 0:H.toUpperCase())==="SUPERADMIN"}},te=I=>{var Z;const H=[I==null?void 0:I.title];if(I!=null&&I.children&&((Z=I==null?void 0:I.children)==null?void 0:Z.length)>0){const J=I.children.map(le=>te(le));H.push(...J)}return H},re=(I,H,Z,J)=>I.map(le=>{var oe,ee;if(le.path===Z){const U={...le};return J==="create"?U.children.push(H):J==="update"?U.children=(oe=U.children)==null?void 0:oe.map(se=>(se==null?void 0:se.path)===(H==null?void 0:H.path)?H:se):J==="delete"&&(U.children=(ee=U.children)==null?void 0:ee.filter(se=>(se==null?void 0:se.path)!==(H==null?void 0:H.path))),U}else return{...le,children:re(le.children,H,Z,J)}}),Q=async I=>{var Z,J,le,oe,ee,U;const H=(Z=k.value)==null?void 0:Z.find(se=>{var z;return((z=se==null?void 0:se.key)==null?void 0:z.pageKey)==="menu"});if(H){const se={...(J=H.value)==null?void 0:J.pageData,compData:(ee=(oe=(le=H.value)==null?void 0:le.pageData)==null?void 0:oe.compData)==null?void 0:ee.map(ne=>ne.key==="menuContents"?{...ne,contents:I}:ne)};await Sv(H==null?void 0:H.id,se);const z=(U=V.value)==null?void 0:U.find(ne=>(ne==null?void 0:ne.path)===u.value);z&&await O(z),l.setAsideMenuLoading(!1),l.setIsRefreshMenus(!1)}else l.setAsideMenuLoading(!1)},X=async I=>{var J,le,oe,ee,U;const H=await a.getInsofDataApi({id:I});let Z;return((J=H==null?void 0:H.data)==null?void 0:J.code)===200&&(Z=(U=(ee=(oe=(le=H==null?void 0:H.data)==null?void 0:le.result)==null?void 0:oe[0])==null?void 0:ee.value)==null?void 0:U.pageData),Z},G=async I=>{var U,se,z;const H=(z=(se=(U=I==null?void 0:I.config)==null?void 0:U.find(ne=>(ne==null?void 0:ne.operateType)==="新增"))==null?void 0:se.structureIds)==null?void 0:z.filter(ne=>(ne==null?void 0:ne.key)==="contentConfig"),Z=H==null?void 0:H.map(ne=>ne==null?void 0:ne.id);let J=[];Z==null||Z.forEach(ne=>{ne&&J.push(X(ne))});const le=await Promise.all(J),oe=le==null?void 0:le.map(ne=>{const{id:_e,...ye}=ne;return ye}),ee=oe==null?void 0:oe.map(ne=>({key:{pageKey:I==null?void 0:I.path,systemKey:sessionStorage.getItem("systemKey"),parentTable:"",version:1,type:"structure"},value:{pageData:ne}}));await a.batchAddInsofDataApi({dataList:ee})};return e.watch(()=>d.value,async I=>{var H,Z,J,le,oe,ee,U,se;if(I)try{const z=(J=(Z=(H=m.value)==null?void 0:H.data)==null?void 0:Z.path)==null?void 0:J.split("/").slice(0,-1).join("/"),ne=re(b.value,(le=m.value)==null?void 0:le.data,z,(oe=m.value)==null?void 0:oe.type),_e=(ee=ne==null?void 0:ne.filter(Ve=>Ve.path!=="平台管理"))==null?void 0:ee.map(Ve=>te(Ve));await G((U=m.value)==null?void 0:U.data),l.setAsideMenuLoading(!0),await Q(_e);const ye=await A(y.value),Pe=(ye==null?void 0:ye.length)===0?(se=y.value)==null?void 0:se.childMenus:ye;l.setAsideMenus(Pe)}catch(z){throw a.ElMessage.error(z),new Error(z)}},{immediate:!0}),{mode:S,renderMenuList:V,clickMenu:O,openMenu:M,closeMenu:F,changeMenuStyle:x}}}}e.defineComponent(Nv());const oA=e.defineComponent(Nv("ThreeMenu")),lA=t=>({comp:"MenuTop",compData:[{key:"menuContents",contents:JSON.parse(t==null?void 0:t.value.trim().replaceAll("'",'"'))}],name:""}),aA=t=>{const n=t==null?void 0:t.filter(l=>{var r;return!((r=l==null?void 0:l.key)!=null&&r.includes("("))}),o=n==null?void 0:n.find(l=>{var r;return me.IsJson(l.value.replaceAll("'",'"'))&&((r=JSON.parse(l.value.replaceAll("'",'"')))==null?void 0:r.every(s=>typeof s=="string"))});if(o)return lA(o)},rA=t=>{var r;let n=[];const o=t==null?void 0:t.filter(s=>{var i;return!((i=s==null?void 0:s.key)!=null&&i.includes("("))}),l=o==null?void 0:o.find(s=>{var i;return me.IsJson(s.value.replaceAll("'",'"'))&&!((i=JSON.parse(s.value.replaceAll("'",'"')))!=null&&i.every(c=>typeof c=="string"))});if(l)return(r=JSON.parse(l.value.replaceAll("'",'"')))==null||r.forEach(s=>{var i,c,u,d;((i=Object.keys(s))==null?void 0:i[0])==="类型"?n.push({comp:"System",compData:[{key:"type",contents:[(c=Object.values(s))==null?void 0:c[0]]}]}):((u=Object.keys(s))==null?void 0:u[0])==="名称"&&n.push({comp:"System",compData:[{key:"name",contents:[(d=Object.values(s))==null?void 0:d[0]]}]})}),n};e.ref(0);const sA=t=>{const n=[];let o=[];return t==null||t.forEach((l,r)=>{var s;(o==null?void 0:o.length)===0?o.push(l):(o.push(l),((s=t[r+1])==null?void 0:s.key)==="groupName"&&(n.push(o),o=[]))}),n.push(o),n},Tv=t=>{const n=[];let o=!1;return t.forEach(l=>{Array.isArray(l)&&(o=!0,l.forEach(r=>{const s=t.map(i=>i===l?r:i);n.push(...Tv(s))}))}),o?n:[t]},iA=me.useOriginalState(a.pinia),{originalPath:cA}=a.storeToRefs(iA),uA=t=>{var s,i,c;const n=(s=t.map(u=>{var f,p,v,m;let d=(m=(v=u.key.split("("))==null?void 0:v[((f=u.key.split("("))==null?void 0:f.length)-1===0?1:((p=u.key.split("("))==null?void 0:p.length)-1])==null?void 0:m.trim();return d==null?void 0:d.slice(0,d.length-1)}))==null?void 0:s.filter(u=>u),o=[];n==null||n.forEach(u=>{var f,p;const d=[];if((f=_o.contentTrans(u))==null||f.forEach(v=>{var m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j;if(v.includes("{")&&v.includes("[")){let q=a.cloneDeep(v).split(":");v=(E=(y=(m=a.cloneDeep(q))==null?void 0:m[0])==null?void 0:y.split("{"))==null?void 0:E[((C=(g=(h=a.cloneDeep(q))==null?void 0:h[0])==null?void 0:g.split("{"))==null?void 0:C.length)-1].replaceAll("'",""),d.push(v);let D=(w=(b=(k=q==null?void 0:q[(q==null?void 0:q.length)-1])==null?void 0:k.split("}"))==null?void 0:b[0])==null?void 0:w.replaceAll("'",'"'),$=[];(_=(S=D.slice(1,D.length-1))==null?void 0:S.split(","))==null||_.forEach(A=>{$.push(A)}),d.push($)}else if(v.includes("{")){let q=(P=v.split(":"))==null?void 0:P[0],D=(T=q==null?void 0:q.split("{"))==null?void 0:T[((B=q==null?void 0:q.split("{"))==null?void 0:B.length)-1].replaceAll("'","");d.push(D);let $=(N=v.split(":"))==null?void 0:N[1];if(($==null?void 0:$.replaceAll("}",""))!==""){let A=(j=(R=$==null?void 0:$.split("{"))==null?void 0:R[((V=$==null?void 0:$.split("{"))==null?void 0:V.length)-1].replaceAll("'",""))==null?void 0:j.replaceAll("}","");d.push(A)}}else d.push(v)}),!d.some(v=>Array.isArray(v)))o.push(d);else{let v=[];d==null||d.forEach((m,y)=>{y!==d.length-1&&v.push(m)}),(p=d==null?void 0:d[(d==null?void 0:d.length)-1])==null||p.forEach(m=>{let y=a.cloneDeep(v);y.push(m),o.push(y)})}});let l=[];o==null||o.forEach(u=>{var d;if(u!=null&&u.find(f=>f==null?void 0:f.includes("["))){let f=u==null?void 0:u.filter(v=>!(v!=null&&v.includes("["))),p=u==null?void 0:u.find(v=>v==null?void 0:v.includes("["));p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1),(d=p==null?void 0:p.split(","))==null||d.forEach(v=>{let m=a.cloneDeep(f);m.push(v),l.push(m)})}else l.push(u)});const r=(c=(i=l.filter(u=>u.length!==0))==null?void 0:i.filter(u=>u.length!==0))==null?void 0:c.map(u=>{let d="";return u.forEach(f=>{!f.includes("{")&&!(f!=null&&f.includes("$"))&&(d=d===""?d+a.cloneDeep(f):d+"/"+a.cloneDeep(f))}),d});return _o.menuArray([...new Set(r)])},dA=t=>({comp:"Menu",compData:[{contents:uA(a.cloneDeep(t)),key:"menuContents"}],name:""}),fA=(t,n)=>{var c,u,d,f,p,v,m,y,h,g;if(!t)return;let o=[],l=_o.getContentValue(t);if(((c=$e.newContentTransArrayToAllNoExtra(t,":"))==null?void 0:c.length)>1){let C=(y=(m=(v=(p=(f=(d=(u=$e.newContentTransArrayToAllNoExtra(t,":"))==null?void 0:u[0])==null?void 0:d.split("{"))==null?void 0:f[1])==null?void 0:p.split("}"))==null?void 0:v[0])==null?void 0:m.split(":"))==null?void 0:y[1];C!==""&&(l=l+":"+C)}const r=a.cloneDeep(l).replaceAll("{","").replaceAll("}","").trim();let s=[];return r.split(":").forEach(C=>{var E;if(C.includes("[")){const k=(E=C.slice(1,C.length-1))==null?void 0:E.split(",");s.push(k)}else s.push(C)}),(h=Tv(s))==null||h.forEach(C=>{o.push(C)}),o=[...new Set(o)],(g=o==null?void 0:o.filter(C=>C.length!==0))==null?void 0:g.map(C=>{let E="",k="",b=!0;return C.forEach(w=>{!w.includes("{")&&!(w!=null&&w.includes("$"))&&(w!=null&&w.includes("@")&&!(w!=null&&w.includes("@input"))&&!(w!=null&&w.includes("@output"))&&(w=""),E!=null&&E.includes("/")&&(n!=null&&n.includes(E))&&!(n!=null&&n.includes(E+"/"+w.trim()))&&b&&(n!=null&&n.includes(E+cA.value))&&(b=!1),b?E=E===""?E+w.trim():w.trim()===""?E+"/":(w.trim().includes("@"),E+"/"+w.trim()):E=E+"/"+w.trim()),w!=null&&w.includes("$")&&(k=w.replaceAll("$",""))}),{path:E,parentPath:k}})},pA=t=>{let n=t;const o=[];let l="";for(const r of n)r.includes("{")||l.includes("{")||r.includes("[")||l.includes("[")||r.includes("【")||l.includes("【")||r.includes("(")||l.includes("(")||r.includes("(")||l.includes("(")||r.includes("/*")||l.includes("/*")?(l+=r.trim(),l.split("{").length-1===l.split("}").length-1&&l.split("【").length-1===l.split("】").length-1&&l.split("[").length-1===l.split("]").length-1&&l.split("(").length-1===l.split(")").length-1&&l.split("(").length-1===l.split(")").length-1&&l.split("/*").length-1===l.split("*/").length-1&&(l.match(/'/g)||[]).length%2===0&&(l==null?void 0:l[(l==null?void 0:l.length)-1])===","&&(o.push(l),l="")):(l+=r.trim(),(l==null?void 0:l[(l==null?void 0:l.length)-1])===","&&(o.push(l),l=""));return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o};let yt="$R",Ol="$/";const mA=me.useOriginalState(a.pinia),{originalPath:hA}=a.storeToRefs(mA),Tf=(t,n)=>{var i,c,u,d,f,p,v,m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V;let o;if(o=(c=(i=t==null?void 0:t.replace("[",yt))==null?void 0:i.split(yt))==null?void 0:c[1],!o)return;const l=o.lastIndexOf("]"),r=o.substring(0,l)+yt+o.substring(l+1);o=(d=(u=r==null?void 0:r.split(yt))==null?void 0:u[0])==null?void 0:d.replaceAll("'",""),o=(o==null?void 0:o[0])===":"?'""'+o:o,n!=null&&n.includes("#")&&(o!=null&&o.includes("['")?o=((p=(f=n==null?void 0:n.split("#"))==null?void 0:f[0])==null?void 0:p.replaceAll("'",""))+"#("+o+")":o=((m=(v=n==null?void 0:n.split("#"))==null?void 0:v[0])==null?void 0:m.replaceAll("'",""))+"#"+o);let s=(w=(b=(k=(E=(h=(y=a.cloneDeep(t))==null?void 0:y.replace("(",yt))==null?void 0:h.split(yt))==null?void 0:E[((C=(g=t==null?void 0:t.replace("(",yt))==null?void 0:g.split(yt))==null?void 0:C.length)-1])==null?void 0:k.replace(")",yt))==null?void 0:b.split(yt))==null?void 0:w[0].replaceAll(":","/").replaceAll("'","");if(o.includes(":")&&!o.includes(":['")&&((_=s==null?void 0:s.split("/"))==null?void 0:_[((S=s==null?void 0:s.split("/"))==null?void 0:S.length)-1])!==""?o=o+"["+s+"]":o=o+"["+s+"]()",n!=null&&n.includes("#")&&((B=$e.contentTransArrayToAllNoExtra((P=n==null?void 0:n.split("#"))==null?void 0:P[1],"/"))==null?void 0:B.length)>1){let R=(T=n==null?void 0:n.split("#"))==null?void 0:T[1],j=[];(V=(N=$e.contentTransArrayToAllNoExtra(R,"/"))==null?void 0:N.filter(q=>!(q!=null&&q.includes("("))))==null||V.forEach(q=>{q!=null&&q[(q==null?void 0:q.length)-1]?j.push(q.slice(0,(q==null?void 0:q.length)-1).replaceAll("'","")):j.push(q.replaceAll("'",""))}),o=o+"&&#"+j.join(Ol)}return o},vA=t=>{var s;let n=t;const o=[];let l="",r=0;for(const i of n)r++,i.includes("(")||l.includes("(")||i.includes(")")||l.includes(")")||i.includes("&")||l.includes("&")||i.includes("|")||l.includes("|")?(l+=i.trim(),((s=a.cloneDeep(l))==null?void 0:s[(l==null?void 0:l.length)-1])===")"||a.cloneDeep(l).includes("||")||a.cloneDeep(l).includes("&&")?(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l=""):r===(t==null?void 0:t.length)&&(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):(l+=i.trim(),o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="");return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o},gA=t=>{var r;let n=(r=vA(t))==null?void 0:r.map(s=>(s!=null&&s.includes("(")&&(s="("+(s==null?void 0:s.replaceAll("(",""))),s)),o=[],l={};return n==null||n.forEach((s,i)=>{var c,u;if(s!=null&&s.includes("(")){let d=(c=s.slice(1,(s==null?void 0:s.length)-1))==null?void 0:c.split("#"),f=d[0].replaceAll("'",""),p=(u=d[1])==null?void 0:u.replaceAll("'","");(f==null?void 0:f[(f==null?void 0:f.length)-1])!=="!"?l[f]=p:l[f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)]="!"+p}else s==="&&"||s==="||"&&(o.push(l),l={});i===n.length-1&&(o.push(l),l={})}),o},yA=t=>{var o,l;let n=(l=(o=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:o.split(","))==null?void 0:l.map(r=>{var s,i,c,u,d;return(d=(u=(c=(i=(s=r==null?void 0:r.split("=="))==null?void 0:s[0])==null?void 0:i.replaceAll("'",""))==null?void 0:c.split("#"))==null?void 0:u[0])==null?void 0:d.trim()});return n=JSON.stringify(n),n},Zs=t=>{let n=a.cloneDeep(t),o=[],l="",r="",s=(n==null?void 0:n[0])==="["?$e.newContentTransArrayToAllNoExtra(n.slice(1,n.length-1),","):$e.newContentTransArrayToAllNoExtra(n,",");return s==null||s.forEach((i,c)=>{var d,f,p,v,m,y,h,g;let u=i;if(u[u.length-1]===","&&(u=u.slice(0,u.length-1)),u.slice(1,(u==null?void 0:u.length)-1).includes("[")&&(u==null?void 0:u[0])==="["){let C=Zs(u);if((s==null?void 0:s.length)===2&&((f=s==null?void 0:s[0])==null?void 0:f[((d=s==null?void 0:s[0])==null?void 0:d.length)-1])===":"){let E=s[c-1].replaceAll(",","").trim();E[E.length-1]===":"&&(E=E.slice(0,E.length-1));let k=(p=Zs(u))==null?void 0:p.parentStringContent;k="["+((v=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1))==null?void 0:v.replaceAll("'",'"'))+"]";let b={[E]:k};o.push(b)}else r=r+u+",";l=l+(C==null?void 0:C.stringContent),r=r+(C==null?void 0:C.parentStringContent),o=[...o,...C==null?void 0:C.parentColumns]}else if((u==null?void 0:u[0])!=="["&&u[u.length-1]===":")u=u.slice(0,u.length-1),l=l+u+",",r=r+((m=u==null?void 0:u.split("#"))==null?void 0:m[0])+",";else if((u==null?void 0:u[0])==="["&&s[c-1]){(h=(y=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))==null?void 0:y.split(","))==null||h.forEach(k=>{l=l+k+","});let C=s[c-1].replaceAll(",","").trim();C[C.length-1]===":"&&(C=C.slice(0,C.length-1));let E={[C]:yA(u)};o.push(E)}else l=l+u+",",r=r+((g=u==null?void 0:u.split("#"))==null?void 0:g[0])+","}),{parentColumns:o,stringContent:l,parentStringContent:r}},es=t=>{var p,v,m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A,O,M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z,J,le,oe;((p=t==null?void 0:t.split("["))==null?void 0:p.length)!==((v=t==null?void 0:t.split("]"))==null?void 0:v.length)&&(t=t.replace(":[[","]:[["));let n=$e.checkIsShowTable(t)?(m=$e.contentTransArray(a.cloneDeep(t)))==null?void 0:m[0]:"[]";const o=$e.checkIsShowTable(t)?"["+((y=$e.contentTransArray(a.cloneDeep(t)))==null?void 0:y[2])+"]":"["+t+"]";let l=[],r=[],s="",i=[],c=[],u=[];const d=(g=(h=o==null?void 0:o.trim())==null?void 0:h.slice(1,(o==null?void 0:o.trim().length)-1))==null?void 0:g.replaceAll("'",'"');me.IsJson(d)?l=JSON.parse(d):me.IsJson((k=(E=(C=d==null?void 0:d.split("}"))==null?void 0:C[0])==null?void 0:E.replace(":",""))==null?void 0:k.replaceAll("\\","\\\\"))&&(l=JSON.parse((S=(w=(b=d==null?void 0:d.split("}"))==null?void 0:b[0])==null?void 0:w.replace(":",""))==null?void 0:S.replaceAll("\\","\\\\"))),l=l!=null&&l.every(ee=>Array.isArray(ee)&&ee.every(U=>Array.isArray(U)))?l==null?void 0:l[0]:l;let f=pA(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));if(f!=null&&f.some(ee=>(ee==null?void 0:ee[0])==="["&&(ee==null?void 0:ee.includes("]#")))){let ee=[];f==null||f.forEach((U,se)=>{var z,ne,_e,ye,Pe,Ve,Ae,ue,we,Me;if((U==null?void 0:U[0])==="["&&(U!=null&&U.includes("]#"))){let Ie=(z=U==null?void 0:U.split("#"))==null?void 0:z[1];s=(ue=(Ae=(Ve=(Pe=(ye=(_e=(ne=Ie==null?void 0:Ie.replace("(",yt))==null?void 0:ne.split(yt))==null?void 0:_e[1])==null?void 0:ye.replace(")",yt))==null?void 0:Pe.split(yt))==null?void 0:Ve[0])==null?void 0:Ae.replaceAll(":","/"))==null?void 0:ue.replaceAll("'",""),s=s+((Me=(we=Ie==null?void 0:Ie.replace(")",yt))==null?void 0:we.split(yt))==null?void 0:Me[1]),(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1)+"#$%"+se)}else ee.push(U)}),n="["+(ee==null?void 0:ee.join(""))+"]"}if((_=$e.newContentTransArrayToAllNoExtra(n.slice(1,n.length-1),","))!=null&&_.some(ee=>(ee==null?void 0:ee[0])==="["||ee[(ee==null?void 0:ee.length)-1]===":")){let ee=Zs(n);u=ee==null?void 0:ee.parentColumns;let U=ee==null?void 0:ee.stringContent;n="["+(U==null?void 0:U.slice(0,(U==null?void 0:U.length)-1))+"]"}if(n!=null&&n.includes("(")){let ee=[],U=((A=($=(D=(q=(j=n==null?void 0:n.split("["))==null?void 0:j[((R=n==null?void 0:n.split("["))==null?void 0:R.length)-1])==null?void 0:q.split("]"))==null?void 0:D[0])==null?void 0:$.split(":"))==null?void 0:A.length)!==1,se=(M=(O=n==null?void 0:n.replace("=",yt))==null?void 0:O.split(yt))==null?void 0:M[0];if(((F=$e.contentTransArrayToAllNoExtra(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1),","))==null?void 0:F.length)>1||U&&(se==null?void 0:se[(se==null?void 0:se.length)-1])!=="]"){let z=(x=$e.contentTransArrayToAllNoExtra(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1),","))==null?void 0:x.map(ne=>((ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])===","&&(ne=a.cloneDeep(ne).slice(0,(ne==null?void 0:ne.length)-1)),ne));z==null||z.forEach(ne=>{var _e,ye,Pe,Ve,Ae,ue,we,Me,Ie,pe,ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe;if((ne==null?void 0:ne[0])==="("&&(ne==null?void 0:ne[ne.length-1])===")")i=gA(ne);else if(!(ne!=null&&ne.includes("(")))ne!=null&&ne.includes("/")?ee.push(ne!=null&&ne.includes('"')?((ye=(_e=ne==null?void 0:ne.replaceAll("#","&&#"))==null?void 0:_e.replaceAll("/",Ol))==null?void 0:ye.replaceAll('"',""))+"@-#isMain":(Pe=ne==null?void 0:ne.replaceAll("#","&&#"))==null?void 0:Pe.replaceAll("/",Ol)):ee.push(ne!=null&&ne.includes('"')?((Ve=ne==null?void 0:ne.replaceAll("'",""))==null?void 0:Ve.replaceAll('"',""))+"@-#isMain":ne==null?void 0:ne.replaceAll("'",""));else if(ne!=null&&ne.includes("/")&&(ne!=null&&ne.includes("#"))&&((Ae=ne==null?void 0:ne.toUpperCase())!=null&&Ae.includes("@CONDITION")))ee.push(ne!=null&&ne.includes('"')?((ue=ne==null?void 0:ne.replace("#","&&#"))==null?void 0:ue.replaceAll('"',""))+"@-#isMain":ne==null?void 0:ne.replace("#","&&#"));else if(ne!=null&&ne.includes("[")){let ge;const Le=(ie=(Ce=a.cloneDeep(ne))==null?void 0:Ce.replaceAll("{",""))==null?void 0:ie.replaceAll("}","");if(((Ne=(be=Le==null?void 0:Le.split("#"))==null?void 0:be[1])==null?void 0:Ne[0])==="["||Le[0]==="["){let Qe,Te="";Le!=null&&Le.includes("#")?(Qe=(Re=Le==null?void 0:Le.split("#"))==null?void 0:Re[1],Te=((Ye=Le==null?void 0:Le.split("#"))==null?void 0:Ye[0])+"#["):(Qe=Le,Te="["),Qe=(Ze=a.cloneDeep(Qe))==null?void 0:Ze.slice(1,((tt=a.cloneDeep(Qe))==null?void 0:tt.length)-1),(he=Qe==null?void 0:Qe.split(","))==null||he.forEach(et=>{Te=Te+Tf(et,a.cloneDeep(et))+","}),ge=(Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1))+"]"}else ge=Tf(Le,a.cloneDeep(ne));ee.push(ne!=null&&ne.includes('"')?((xe=ge==null?void 0:ge.replaceAll('"',"'"))==null?void 0:xe.replaceAll('"',""))+"@-#isMain":ge==null?void 0:ge.replaceAll('"',"'"))}else{let ge=(ke=(pe=(Ie=(Me=ne==null?void 0:ne.split(":"))==null?void 0:Me[((we=ne==null?void 0:ne.split(":"))==null?void 0:we.length)-1])==null?void 0:Ie.split(")"))==null?void 0:pe[0])==null?void 0:ke.replaceAll("'","");ge=ge+"["+((ce=(Se=(ve=ne==null?void 0:ne.split("("))==null?void 0:ve[((ae=ne==null?void 0:ne.split("("))==null?void 0:ae.length)-1])==null?void 0:Se.split(")"))==null?void 0:ce[0].replaceAll(":","/").replaceAll("'",""))+"]",ee.push(ne!=null&&ne.includes('"')?(ge==null?void 0:ge.replaceAll('"',""))+"@-#isMain":ge)}}),r=ee}else{let z=((te=(W=(Y=(K=n==null?void 0:n.slice(1,n==null?void 0:n.length))==null?void 0:K.split("("))==null?void 0:Y[1])==null?void 0:W.split(")"))==null?void 0:te[0]).replaceAll("{","").replaceAll("}","").replaceAll(":","/").replaceAll("'","");z=z.replaceAll("/[",hA.value+"[");let ne=(Q=(re=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1))==null?void 0:re.replace("[",yt))==null?void 0:Q.split(yt);s=s+z+"["+(ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])}}else if(!(n!=null&&n.includes("{"))&&me.IsJson(n==null?void 0:n.replaceAll("'",'"'))&&!(n!=null&&n.includes('"')))r=JSON.parse(n==null?void 0:n.replaceAll("'",'"'));else if(me.IsJson((B=(P=n==null?void 0:n.split("{"))==null?void 0:P[1])==null?void 0:B.replaceAll("'",'"'))&&!(n!=null&&n.includes('"')))r=JSON.parse((N=(T=n==null?void 0:n.split("{"))==null?void 0:T[1])==null?void 0:N.replaceAll("'",'"'));else{let ee=n.slice(1,n.length-1);(V=ee==null?void 0:ee.split(","))==null||V.forEach(U=>{var se,z,ne,_e,ye,Pe,Ve,Ae,ue,we;U!=null&&U.includes("#")?U!=null&&U.includes("/")?r.push(U!=null&&U.includes('"')?((Pe=(ye=U==null?void 0:U.replaceAll('"',""))==null?void 0:ye.replaceAll("#","&&#"))==null?void 0:Pe.replaceAll("/",Ol))+"@-#isMain":(Ve=U==null?void 0:U.replaceAll("#","&&#"))==null?void 0:Ve.replaceAll("/",Ol)):r.push(((z=(se=U==null?void 0:U.split("#"))==null?void 0:se[0])==null?void 0:z.replaceAll("'",""))+"@-"+((_e=(ne=U==null?void 0:U.split("#"))==null?void 0:ne[1])==null?void 0:_e.replaceAll("'",""))):r.push(U!=null&&U.includes('"')?((ue=(Ae=U.trim())==null?void 0:Ae.replaceAll('"',""))==null?void 0:ue.replaceAll("'",""))+"@-#isMain":(we=U.trim())==null?void 0:we.replaceAll("'",""))})}if(r=r==null?void 0:r.map(ee=>ee==null?void 0:ee.replaceAll("'","")),l=l!=null&&l.every(ee=>Array.isArray(ee))?l:[l],l!=null&&l.some(ee=>ee==null?void 0:ee.some(U=>Array.isArray(U)&&(U==null?void 0:U.length)===1))&&(l==null?void 0:l.length)>0&&(r==null?void 0:r.length)>0){let ee=(X=l==null?void 0:l[0])==null?void 0:X.findIndex(U=>Array.isArray(U)&&(U==null?void 0:U.length)===1);if((s==null?void 0:s.length)>0){let U=(J=(Z=(H=(I=s==null?void 0:s.split("["))==null?void 0:I[((G=s==null?void 0:s.split("["))==null?void 0:G.length)-1])==null?void 0:H.split("]"))==null?void 0:Z[0])==null?void 0:J.split(",");ee=ee-(U==null?void 0:U.length)}r=r==null?void 0:r.map((U,se)=>(se===ee&&(U=U+"@-"+U),U)),l=l==null?void 0:l.map(U=>(U!=null&&U.some(se=>Array.isArray(se)&&(se==null?void 0:se.length)===1)&&(U=U==null?void 0:U.map(se=>(Array.isArray(se)&&(se==null?void 0:se.length)===1&&(se=se==null?void 0:se[0]),se))),U))}return{tableColumns:r,tableContents:l,tablePath:(le=s==null?void 0:s.toUpperCase())!=null&&le.includes("MAPPING")?"":s,filterContents:i,childTree:c,parentColumns:u,relatedPath:(oe=s==null?void 0:s.toUpperCase())!=null&&oe.includes("MAPPING")?s:""}};let ct="$R";const bA=t=>{var o;let n="[["+t+"]]";return me.IsJson((o=n.slice(1,(n==null?void 0:n.length)-1))==null?void 0:o.replaceAll("'",'"'))},Qs=t=>{var l,r,s,i,c,u,d,f,p,v,m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A,O,M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z,J,le,oe,ee,U,se,z,ne,_e,ye,Pe,Ve,Ae;let n="";t=t==null?void 0:t.replace("=",":"),t=t.replace(/:([^=]*)==/g,":");let o=t;if(($e.checkIsShowGroup(a.cloneDeep(t))!==null||$e.checkIsShowGroupForm(a.cloneDeep(t))!==null||$e.checkIsUsingGroup(t))&&(n=(s=(r=(l=a.cloneDeep(t).replace(":",ct).split(ct))==null?void 0:l[0])==null?void 0:r.replaceAll("'",""))==null?void 0:s.replaceAll("]",""),o=(i=a.cloneDeep(t).replace(":",ct).split(ct))==null?void 0:i[1]),$e.checkIsShowTable(a.cloneDeep(o).slice(1,((c=a.cloneDeep(o))==null?void 0:c.length)-1))||$e.checkForTableContents(a.cloneDeep(o).slice(1,((u=a.cloneDeep(o))==null?void 0:u.length)-1))||$e.checkIsTableCheck(o))if((o==null?void 0:o[0])!=="["&&(o==null?void 0:o[0])!=="{"&&(o="{["+o+"]:[[]]}"),((f=a.cloneDeep(o).slice(1,((d=a.cloneDeep(o))==null?void 0:d.length)-1))==null?void 0:f[1])!=="["){const ue=es(a.cloneDeep(o).slice(1,((p=a.cloneDeep(o))==null?void 0:p.length)-1));return{groupName:n,tableColumn:ue==null?void 0:ue.tableColumns,tableContents:ue==null?void 0:ue.tableContents,tableColumnPath:ue==null?void 0:ue.tablePath,filterContents:ue==null?void 0:ue.filterContents,childTree:ue==null?void 0:ue.childTree,parentColumns:ue==null?void 0:ue.parentColumns,relatedPath:ue==null?void 0:ue.relatedPath}}else if(a.cloneDeep(o).slice(1,((v=a.cloneDeep(o))==null?void 0:v.length)-1).includes("{")){let ue=a.cloneDeep(o).slice(1,((m=a.cloneDeep(o))==null?void 0:m.length)-1),we=ue.indexOf("{"),Me=ue.slice(we,(ue==null?void 0:ue.length)-we);return(h=(y=$e.contentTransArray(Me))==null?void 0:y.filter(pe=>pe==null?void 0:pe.includes("{")))==null?void 0:h.map((pe,ke)=>{var ve;let ae=es(a.cloneDeep(pe).slice(1,((ve=a.cloneDeep(pe))==null?void 0:ve.length)-1));return{groupName:ke===0?n:"",tableColumn:ae==null?void 0:ae.tableColumns,tableContents:ae==null?void 0:ae.tableContents,tableColumnPath:ae==null?void 0:ae.tablePath,filterContents:ae==null?void 0:ae.filterContents,childTree:ae==null?void 0:ae.childTree,parentColumns:ae==null?void 0:ae.parentColumns,relatedPath:ae==null?void 0:ae.relatedPath}})}else{const ue=es(a.cloneDeep(o).slice(1,((g=a.cloneDeep(o))==null?void 0:g.length)-1));return{groupName:n,tableColumn:ue==null?void 0:ue.tableColumns,tableContents:ue==null?void 0:ue.tableContents,tableColumnPath:ue==null?void 0:ue.tablePath,filterContents:ue==null?void 0:ue.filterContents,childTree:ue==null?void 0:ue.childTree,parentColumns:ue==null?void 0:ue.parentColumns,relatedPath:ue==null?void 0:ue.relatedPath}}else{let ue=[];if(me.IsJson((C=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:C.replaceAll("'",'"')))ue=[JSON.parse((E=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:E.replaceAll("'",'"'))];else if((!o.includes("(")||bA(o))&&!((o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["))if(o="[["+o+"]]",me.IsJson((k=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:k.replaceAll("'",'"')))ue=JSON.parse((b=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:b.replaceAll("'",'"'));else if(o=o.slice(2,o.length-2),((_=(S=(w=o==null?void 0:o.replace(":",ct))==null?void 0:w.split(ct))==null?void 0:S[1])==null?void 0:_[0])!=="{"&&(o==null?void 0:o[0])!=="{"){o=((B=(P=o==null?void 0:o.replace(":",ct))==null?void 0:P.split(ct))==null?void 0:B[0])+":{["+((N=(T=o==null?void 0:o.replace(":",ct))==null?void 0:T.split(ct))==null?void 0:N[1])+"]}";const we=Qs(o);return we!=null&&we.tableColumn?{groupName:we==null?void 0:we.groupName,tableColumn:we==null?void 0:we.tableColumn,tableContents:we==null?void 0:we.tableContents,filterContents:we==null?void 0:we.filterContents,childTree:we==null?void 0:we.childTree,parentColumns:we==null?void 0:we.parentColumns,relatedPath:we==null?void 0:we.relatedPath}:{groupName:we==null?void 0:we.groupName,formContents:we==null?void 0:we.formContents}}else{let we=(R=(V=$e.contentTransArrayToAllNoExtra(o,","))==null?void 0:V.map(Ie=>Ie==null?void 0:Ie.replaceAll(",","")))==null?void 0:R.map(Ie=>$e.formToExtraContent(a.cloneDeep(Ie).slice(1,a.cloneDeep(Ie).length-1))),Me=[];return(j=a.cloneDeep(we))==null||j.forEach(Ie=>{var pe;(pe=Ie==null?void 0:Ie.formContents)==null||pe.forEach(ke=>{ke==null||ke.forEach(ae=>{Me.push(ae)})})}),{groupName:(q=we==null?void 0:we[0])==null?void 0:q.groupName,formContents:Me}}else if((o==null?void 0:o[0])!=="{"&&(o==null?void 0:o[0])!=="["){let we=(O=(A=($=(D=a.cloneDeep(o))==null?void 0:D.split("]"))==null?void 0:$[0])==null?void 0:A.split("["))==null?void 0:O[1],Me="",pe=((W=(Y=(K=(x=(F=(M=a.cloneDeep(o))==null?void 0:M.split(")"))==null?void 0:F[0])==null?void 0:x.split("("))==null?void 0:K[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:W.replaceAll("]","")).replaceAll("'","").replaceAll(":","/");(te=pe==null?void 0:pe.split("/"))==null||te.forEach((ae,ve)=>{var Se;ve!==((Se=pe==null?void 0:pe.split("/"))==null?void 0:Se.length)-1&&(Me=Me===""?Me+ae:Me+"/"+ae)});let ke;return((G=(X=(Q=(re=a.cloneDeep(o))==null?void 0:re.replace(",",ct))==null?void 0:Q.split(ct))==null?void 0:X[1])==null?void 0:G[0])==="["&&(ke=$e.getExtraContents((Z=(H=(I=a.cloneDeep(o))==null?void 0:I.replace(",",ct))==null?void 0:H.split(ct))==null?void 0:Z[1])),{groupName:"",extraButton:(le=we==null?void 0:we.split(":"))==null?void 0:le[((J=we==null?void 0:we.split(":"))==null?void 0:J.length)-1].replaceAll("'",""),extraPath:Me,extraData:ke}}else if((o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["&&(o=o.slice(1,(o==null?void 0:o.length)-1).replaceAll('"',"'")),(o==null?void 0:o[0])!=="["){let we;(o==null?void 0:o[1])==="["?we=o.slice(2,(o==null?void 0:o.length)-2):we=o;let Me=(ee=(oe=$e.contentTransArray(we))==null?void 0:oe.filter(pe=>pe!==","))==null?void 0:ee.map(pe=>$e.formToExtraContent(a.cloneDeep(pe).slice(1,a.cloneDeep(pe).length-1))),Ie=[];return(U=a.cloneDeep(Me))==null||U.forEach(pe=>{var ke;(ke=pe==null?void 0:pe.formContents)==null||ke.forEach(ae=>{ae==null||ae.forEach(ve=>{Ie.push(ve)})})}),{groupName:(se=Me==null?void 0:Me[0])==null?void 0:se.groupName,formContents:Ie}}else if((o==null?void 0:o[1])!=="["&&(o="["+o+"]"),(o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["){o=o.slice(1,(o==null?void 0:o.length)-1);let we=[],Me=[];if(((ne=(z=$e.contentTransArray(o))==null?void 0:z.filter(Ie=>Ie!==","))==null?void 0:ne.length)===1){o=o.slice(1,(o==null?void 0:o.length)-1);let Ie=(ye=(_e=$e.contentTransArrayToAllNoExtra(o,","))==null?void 0:_e.map(ke=>ke==null?void 0:ke.replaceAll(",","")))==null?void 0:ye.map(ke=>$e.formToExtraContent(a.cloneDeep(ke).slice(1,a.cloneDeep(ke).length-1))),pe=[];(Pe=a.cloneDeep(Ie))==null||Pe.forEach(ke=>{var ae;(ae=ke==null?void 0:ke.formContents)==null||ae.forEach(ve=>{ve==null||ve.forEach(Se=>{pe.push(Se)})})}),we.push(pe)}else(Ae=(Ve=$e.contentTransArray(o))==null?void 0:Ve.filter(Ie=>Ie!==","))==null||Ae.forEach(Ie=>{var pe,ke,ae,ve;if(!Ie.includes("&"))Array.isArray(Zl(Ie))||we.push((pe=Zl(Ie))==null?void 0:pe.formContents);else{let Se=(ve=(ae=(ke=a.cloneDeep(Ie))==null?void 0:ke.split("&"))==null?void 0:ae[1])==null?void 0:ve.replaceAll("'",'"');me.IsJson(Se)&&Me.push({[JSON.parse(Se)[0]]:JSON.parse(Se)})}});return{groupName:n,formContents:we,formGroup:Me}}return{groupName:n,formContents:ue}}},Zl=t=>{var r,s,i,c,u,d,f;let n=!1,o=[],l=$e.checkIsShowGroup(t.slice(1,a.cloneDeep(t).length-1))!==null||$e.checkIsShowGroupForm(t.slice(1,a.cloneDeep(t).length-1))!==null;if(l){let p=(c=(r=a.cloneDeep(t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)).replace(":",ct).split(ct))==null?void 0:r[1])==null?void 0:c.slice(1,((i=(s=a.cloneDeep(t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)).replace(":",ct).split(ct))==null?void 0:s[1])==null?void 0:i.length)-1);(p==null?void 0:p[0])==="["&&(p==null?void 0:p[1])==="["&&(p=p.slice(1,(p==null?void 0:p.length)-1));let v=(u=$e.contentTransArrayToAllNoExtra(p,","))==null?void 0:u.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m));v!=null&&v.every(m=>$e.checkIsShowGroup(m.slice(1,a.cloneDeep(m).length-1))!==null||$e.checkIsShowGroupForm(m.slice(1,a.cloneDeep(m).length-1))!==null)&&(n=!0)}return l&&n?((d=hr(t))==null||d.forEach(p=>{o.push(p)}),o):((f=$e.contentTransArray(t))==null?void 0:f.length)===1?Qs(a.cloneDeep(t).slice(1,a.cloneDeep(t).length-1)):Qs(a.cloneDeep(t).slice(1,a.cloneDeep(t).length))},hr=(t,n=0)=>{var d,f,p,v,m;let o=t.slice(1,a.cloneDeep(t).length-1),l=(f=(d=a.cloneDeep(o).replace(":",ct).split(ct))==null?void 0:d[0])==null?void 0:f.replaceAll("'",""),r=(p=a.cloneDeep(o).replace(":",ct).split(ct))==null?void 0:p[1],s=[],i=!1;r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1);let c=(v=$e.contentTransArrayToAllNoExtra(r,","))==null?void 0:v.map(y=>((y==null?void 0:y[(y==null?void 0:y.length)-1])===","&&(y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1)),y));if(c!=null&&c.every(y=>$e.checkIsShowGroup(y.slice(1,a.cloneDeep(y).length-1))!==null||$e.checkIsShowGroupForm(y.slice(1,a.cloneDeep(y).length-1))!==null||$e.checkIsQuote(y)!==null)&&(i=!0),!i)s=hr(r,n+1);else{let y=[];c!=null&&c.some(h=>$e.checkIsQuote(h)!==null)?y=c:y=(m=$e.contentTransArray(r))==null?void 0:m.filter(h=>h!==","),y==null||y.forEach(h=>{var b,w,S,_,P;let g=h.slice(1,a.cloneDeep(h).length-1),C=(_=(b=a.cloneDeep(g).replace(":",ct).split(ct))==null?void 0:b[1])==null?void 0:_.slice(1,((S=(w=a.cloneDeep(g).replace(":",ct).split(ct))==null?void 0:w[1])==null?void 0:S.length)-1);(C==null?void 0:C[0])==="["&&(C==null?void 0:C[1])==="["&&(C=C.slice(1,(C==null?void 0:C.length)-1));let E=(P=$e.contentTransArrayToAllNoExtra(C,","))==null?void 0:P.map(B=>((B==null?void 0:B[(B==null?void 0:B.length)-1])===","&&(B=B==null?void 0:B.slice(0,(B==null?void 0:B.length)-1)),B));(E==null?void 0:E.every(B=>$e.checkIsShowGroup(B.slice(1,a.cloneDeep(B).length-1))!==null||$e.checkIsShowGroupForm(B.slice(1,a.cloneDeep(B).length-1))!==null||$e.checkIsQuote(B)!==null))?s=[...s,...hr(h,n+1)]:s=[...s,..._v(h)]})}return s==null?void 0:s.map(y=>(y["groupName"+n]=l,y))},_v=t=>{var o,l,r;let n=[];if((t==null?void 0:t[0])==="["&&(t==null?void 0:t[1])==="["){let s=(o=$e.contentTransArray(t))==null?void 0:o.filter(i=>i!==",");s==null||s.forEach(i=>{n.push(Zl(i))})}else{let s=(r=(l=$e.newContentTransArrayToAllNoExtra(t,","))==null?void 0:l.filter(i=>i!==","))==null?void 0:r.map(i=>(i[(i==null?void 0:i.length)-1]===","&&(i=i.slice(0,(i==null?void 0:i.length)-1)),i));s==null||s.forEach(i=>{var d,f,p;let c=!1,u=$e.checkIsShowGroup(i.slice(1,a.cloneDeep(i).length-1))!==null||$e.checkIsShowGroupForm(i.slice(1,a.cloneDeep(i).length-1))!==null;if(u){let v=(d=a.cloneDeep(i==null?void 0:i.slice(1,(i==null?void 0:i.length)-1)).replace(":",ct).split(ct))==null?void 0:d[1];(v==null?void 0:v[0])==="["&&(v==null?void 0:v[1])==="["&&(v=v.slice(1,(v==null?void 0:v.length)-1));let m=(f=$e.contentTransArrayToAllNoExtra(v,","))==null?void 0:f.map(y=>((y==null?void 0:y[(y==null?void 0:y.length)-1])===","&&(y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1)),y));m!=null&&m.every(y=>$e.checkIsShowGroup(y.slice(1,a.cloneDeep(y).length-1))!==null||$e.checkIsShowGroupForm(y.slice(1,a.cloneDeep(y).length-1))!==null||$e.checkIsQuote(y)!==null)&&(c=!0)}u&&c?(p=hr(i))==null||p.forEach(v=>{n.push(v)}):n.push(Zl(i))})}return n},_l=e.ref(0);let Ea="$R";const CA=me.useOriginalState(a.pinia),{originalPath:ts}=a.storeToRefs(CA),kA=(t,n,o)=>{var s;let l=[],r=n==null?void 0:n.length;return(s=a.cloneDeep(n))==null||s.forEach((i,c)=>{let u=[];i==null||i.forEach(d=>{var f,p,v,m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A;if(u.push(a.cloneDeep(d)),((f=$e.newContentTransArrayToAllNoExtra(o,":"))==null?void 0:f.length)>1){let O=(E=(C=(g=(h=(y=(m=(v=(p=$e.newContentTransArrayToAllNoExtra(o,":"))==null?void 0:p[0])==null?void 0:v.replaceAll("{",""))==null?void 0:m.replaceAll("}",""))==null?void 0:y.split("("))==null?void 0:h[1])==null?void 0:g.split(")"))==null?void 0:C[0])==null?void 0:E.replaceAll(":","/");(O==null?void 0:O[(O==null?void 0:O.length)-1])==="/"&&(O=O.slice(0,(O==null?void 0:O.length)-1)),u.push({key:"parentMainPage",value:O})}if(me.IsJson(a.cloneDeep(t.trim()).replaceAll("'",'"'))&&((k=JSON.parse(a.cloneDeep(t.trim()).replaceAll("'",'"')))!=null&&k.every(O=>typeof O=="string")))(b=JSON.parse(a.cloneDeep(t.trim()).replaceAll("'",'"')))==null||b.forEach(O=>{var M,F,x;l.push([{key:(M=a.cloneDeep(d))==null?void 0:M.key,value:((F=a.cloneDeep(d))==null?void 0:F.value)+"/"+O,parentPath:(x=a.cloneDeep(d))==null?void 0:x.parentPath}])});else if(((w=a.cloneDeep(t.trim()))==null?void 0:w[0])!=="["){let O=(T=(B=(P=(_=(S=t==null?void 0:t.split("):"))==null?void 0:S[0])==null?void 0:_.split("("))==null?void 0:P[1])==null?void 0:B.replaceAll(":","/"))==null?void 0:T.replaceAll("'","");u.push({key:"parentMainPage",value:O})}else{let O=[];if(((N=a.cloneDeep(t.trim()))==null?void 0:N[0])==="["&&((V=a.cloneDeep(t.trim()))==null?void 0:V[1])==="["){let M=t.trim().slice(1,((R=t.trim())==null?void 0:R.length)-1),F=_v(M.trim());F!=null&&F.every(x=>Array.isArray(x))&&(F=F==null?void 0:F[0]),F==null||F.forEach(x=>{var K,Y,W,te,re,Q,X,G,I,H,Z,J,le;if(x!=null&&x.tableColumn)((Y=(K=Object.keys(x))==null?void 0:K.filter(oe=>oe==null?void 0:oe.includes("groupName")))==null?void 0:Y.length)===1?u.push({key:"groupName",value:x==null?void 0:x.groupName}):(te=(W=Object.keys(x))==null?void 0:W.filter(oe=>oe==null?void 0:oe.includes("groupName")))==null||te.forEach((oe,ee)=>{oe==="groupName"?u.push({key:oe,value:x==null?void 0:x[oe]}):u.push({key:"groupName"+(ee-1),value:x==null?void 0:x[oe]})}),u.push({key:"tableColumn",value:x==null?void 0:x.tableColumn}),u.push({key:"tableContents",value:x==null?void 0:x.tableContents}),u.push({key:"tablePath",value:(x==null?void 0:x.tableColumnPath)??""}),u.push({key:"tableFilter",value:(x==null?void 0:x.filterContents)??[]}),u.push({key:"relatedPath",value:(x==null?void 0:x.relatedPath)??[]}),u.push({key:"childTree",value:(x==null?void 0:x.childTree)??[]}),u.push({key:"parentColumns",value:(x==null?void 0:x.parentColumns)??[]});else if(x!=null&&x.extraButton)u.push({key:"groupName",value:x==null?void 0:x.groupName}),u.push({key:"extraButton",value:x==null?void 0:x.extraButton,path:x==null?void 0:x.extraPath,data:x==null?void 0:x.extraData});else{let oe=r===1?x==null?void 0:x.formContents:((re=x==null?void 0:x.formContents)==null?void 0:re.length)===1?(X=(Q=x==null?void 0:x.formContents)==null?void 0:Q[0])==null?void 0:X[c]:(G=x==null?void 0:x.formContents)==null?void 0:G[c];(oe==null?void 0:oe.length)>0&&(u.push({key:"groupName",value:x==null?void 0:x.groupName}),u.push({key:"formContent",value:r===1?x==null?void 0:x.formContents:((I=x==null?void 0:x.formContents)==null?void 0:I.length)===1?(Z=(H=x==null?void 0:x.formContents)==null?void 0:H[0])==null?void 0:Z[c]:(J=x==null?void 0:x.formContents)==null?void 0:J[c]}),u.push({key:"formGroup",value:r===1?x==null?void 0:x.formGroup:(le=x==null?void 0:x.formGroup)==null?void 0:le[c]}))}})}else if(O=Zl(a.cloneDeep(t.trim())),Array.isArray(O))O==null||O.forEach(M=>{var F,x,K,Y,W,te,re,Q,X,G,I,H,Z;if(M!=null&&M.tableColumn)((x=(F=Object.keys(M))==null?void 0:F.filter(J=>J==null?void 0:J.includes("groupName")))==null?void 0:x.length)===1?u.push({key:"groupName",value:M==null?void 0:M.groupName}):(Y=(K=Object.keys(M))==null?void 0:K.filter(J=>J==null?void 0:J.includes("groupName")))==null||Y.forEach(J=>{u.push({key:J,value:M==null?void 0:M[J]})}),u.push({key:"tableColumn",value:M==null?void 0:M.tableColumn}),u.push({key:"tableContents",value:M==null?void 0:M.tableContents}),u.push({key:"relatedPath",value:(M==null?void 0:M.relatedPath)??[]}),u.push({key:"tablePath",value:(M==null?void 0:M.tableColumnPath)??""}),u.push({key:"tableFilter",value:(M==null?void 0:M.filterContents)??[]}),u.push({key:"childTree",value:(M==null?void 0:M.childTree)??[]}),u.push({key:"parentColumns",value:(M==null?void 0:M.parentColumns)??[]});else if(M!=null&&M.extraButton)u.push({key:"groupName",value:M==null?void 0:M.groupName}),u.push({key:"extraButton",value:M==null?void 0:M.extraButton,path:M==null?void 0:M.extraPath,data:M==null?void 0:M.extraData});else{let J=r===1?M==null?void 0:M.formContents:((W=M==null?void 0:M.formContents)==null?void 0:W.length)===1?(re=(te=M==null?void 0:M.formContents)==null?void 0:te[0])==null?void 0:re[c]:(Q=M==null?void 0:M.formContents)==null?void 0:Q[c];(J==null?void 0:J.length)>0&&(u.push({key:"groupName",value:M==null?void 0:M.groupName}),u.push({key:"formContent",value:r===1?M==null?void 0:M.formContents:((X=M==null?void 0:M.formContents)==null?void 0:X.length)===1?(I=(G=M==null?void 0:M.formContents)==null?void 0:G[0])==null?void 0:I[c]:(H=M==null?void 0:M.formContents)==null?void 0:H[c]}),u.push({key:"formGroup",value:r===1?M==null?void 0:M.formGroup:(Z=M==null?void 0:M.formGroup)==null?void 0:Z[c]}))}});else if(O!=null&&O.tableColumn)u.push({key:"groupName",value:O==null?void 0:O.groupName}),u.push({key:"tableColumn",value:O==null?void 0:O.tableColumn}),u.push({key:"tableContents",value:r!==1?[(j=O==null?void 0:O.tableContents)==null?void 0:j[c]]:O==null?void 0:O.tableContents}),u.push({key:"relatedPath",value:(O==null?void 0:O.relatedPath)??[]}),u.push({key:"tableFilter",value:(O==null?void 0:O.filterContents)??[]}),u.push({key:"childTree",value:(O==null?void 0:O.childTree)??[]}),u.push({key:"parentColumns",value:(O==null?void 0:O.parentColumns)??[]});else{let M=r!==1?((q=O==null?void 0:O.formContents)==null?void 0:q.length)===1?[($=(D=O==null?void 0:O.formContents)==null?void 0:D[0])==null?void 0:$[c]]:[(A=O==null?void 0:O.formContents)==null?void 0:A[c]]:O==null?void 0:O.formContents;(M==null?void 0:M.length)>0&&(u.push({key:"groupName",value:O==null?void 0:O.groupName}),u.push({key:"formContent",value:M}))}}}),l.push(u)}),l},EA=(t,n)=>{var s,i,c;const o=[],l=fA((s=a.cloneDeep(t))==null?void 0:s.key,n);return l&&(l==null?void 0:l.length)>0&&(l==null||l.forEach(u=>{o.push([{key:"contentPath",value:u==null?void 0:u.path,parentPath:u==null?void 0:u.parentPath}])})),kA((i=a.cloneDeep(t))==null?void 0:i.value,o,(c=a.cloneDeep(t))==null?void 0:c.key)},_f=t=>t.length===1&&(t==null?void 0:t[0])===void 0?[]:t,wA=(t,n,o)=>{const l=new Map;o.forEach(s=>{for(const[i,c]of Object.entries(s))try{l.set(i.replaceAll("'",""),JSON.parse(c))}catch{l.set(i,[])}});const r=s=>s.map(i=>{var d;const c={...i},u=l.get(i.label);if(u!=null&&u.length){const f=u.map(p=>n.find(v=>(v==null?void 0:v.label)===p)).filter(Boolean);c.children=(c.children||[]).concat(f)}return(d=c.children)!=null&&d.length&&(c.children=r(c.children)),c});return r(t)},SA=(t,n)=>{if(!n||(n==null?void 0:n.length)===0)return t;let o=[];n==null||n.forEach(s=>{var c,u;let i=(u=(c=Object.values(s))==null?void 0:c[0])==null?void 0:u.replaceAll("'",'"');if(me.IsJson(i)){let d=JSON.parse(i);d=d==null?void 0:d.map(f=>{var p,v;return{parent:(v=(p=Object.keys(s))==null?void 0:p[0])==null?void 0:v.replaceAll("'",""),value:f}}),o=[...o,...d]}});let l=[],r=[];return t==null||t.forEach((s,i)=>{o!=null&&o.find(c=>(c==null?void 0:c.value)===(s==null?void 0:s.label))&&(t==null?void 0:t.findIndex(c=>{var u;return(c==null?void 0:c.label)===((u=o==null?void 0:o.find(d=>(d==null?void 0:d.value)===(s==null?void 0:s.label)))==null?void 0:u.parent)}))<i?r.push(s):l.push(s)}),wA(l,r,n)},Bl=t=>{const n=t.lastIndexOf(")");return n===-1?[t,""]:[t.slice(0,n),t.slice(n+1)]},NA=t=>{var o,l;return(l=(o=a.cloneDeep(t))==null?void 0:o.map(r=>{var i,c,u,d;let s=[];if((i=sA(r==null?void 0:r.filter(f=>(f==null?void 0:f.key)!=="contentPath")))==null||i.forEach(f=>{var m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A,O,M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z,J,le,oe,ee,U,se;let p=[];if(f.length===0)return;let v=(y=(m=f.find(z=>(z==null?void 0:z.key)==="tableColumn"))==null?void 0:m.value)==null?void 0:y.map(z=>({label:z}));if(Array.isArray(v)&&((h=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="tablePath"))!=null&&h.value&&((g=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="tablePath"))==null?void 0:g.value)!==""&&v.push({columnPath:(C=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="tablePath"))==null?void 0:C.value}),v=(E=a.cloneDeep(v))==null?void 0:E.map(z=>{var ne,_e,ye,Pe,Ve,Ae,ue,we,Me,Ie,pe,ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe,ge,Le,Qe,Te,et,nt,He,ot,dt,at,Tt,Xe,We,Et,Vt,bt,de,Be,ze,Ue,Ge,it,rt,mt,ht,wt,fe,Ee,Oe,De,st,vt,Ot,At,ln,yn,an,rn,sn,Bn,Pn,Vn,Dn,In,On,$n,lt,zt,Dt,Mn,cn,Wn,bn,Fe,pt,ft,un,Un,jt,Rt,qn,Ho,jo,Wo,Uo,qo,Yo,Go,Xo,Jo,Zo,Qo,el,tl,nl,ol,ll,al,rl,sl,il,cl,ul,dl,fl,pl,ml,hl,vl,gl,yl,Cn,gt,Yn,bl,xn,Wt,Cl,pc,mc,hc,vc,gc,yc,bc,Cc,kc,Ec,wc,Sc,Nc,Tc,_c,Bc,Pc,Vc,Dc,Ic,Oc,$c,Mc,xc,Ac,zc,Rc,Lc,Fc,Kc,Hc,jc,Wc,Uc,qc,Yc,Gc,Xc,Jc,Zc,Qc,eu,tu,nu,ou,lu,au,ru,su,iu,cu,uu,du,fu,pu,mu,hu,vu,gu,yu,bu,Cu,ku,Eu,wu,Su,Nu;if((ne=z==null?void 0:z.label)!=null&&ne.includes("&&#"))if((ye=(_e=z==null?void 0:z.label)==null?void 0:_e.toUpperCase())!=null&&ye.includes("@CONDITION")){let Ke=(dt=(ot=(He=a.cloneDeep(z==null?void 0:z.label))==null?void 0:He.split("&&#"))==null?void 0:ot[1])==null?void 0:dt.split("@Condition:"),je="("+(Ke==null?void 0:Ke[1]),St=[];return(We=(Xe=(Tt=(at=Ke==null?void 0:Ke[0])==null?void 0:at.replaceAll("(",""))==null?void 0:Tt.replaceAll(")",""))==null?void 0:Xe.split("||"))==null||We.forEach(Lt=>{St.push(Lt==null?void 0:Lt.split("/"))}),{label:(Be=(de=(bt=(Vt=(Et=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Et.split("&&#"))==null?void 0:Vt[0].replaceAll("'",""))==null?void 0:bt.split("#"))==null?void 0:de[0])==null?void 0:Be.replaceAll("$/","/"),isRoute:((ze=f.find(Lt=>(Lt==null?void 0:Lt.key)==="tableColumn"))==null?void 0:ze.isParent)??!1,allSelectionContents:St,selectFilter:je==null?void 0:je.replaceAll(":","="),columnPath:((Ge=(Ue=z==null?void 0:z.columnPath)==null?void 0:Ue.split("#$%"))==null?void 0:Ge[0])??"",columnPathIndex:((rt=(it=z==null?void 0:z.columnPath)==null?void 0:it.split("#$%"))==null?void 0:rt[1])??"",relatedPath:((ht=(mt=z==null?void 0:z.relatedPath)==null?void 0:mt.split("#$%"))==null?void 0:ht[0])??"",relatedPathIndex:((fe=(wt=z==null?void 0:z.relatedPath)==null?void 0:wt.split("#$%"))==null?void 0:fe[1])??"",isRun:((Ee=f.find(Lt=>(Lt==null?void 0:Lt.key)==="tableColumn"))==null?void 0:Ee.isRun)??!1,formType:"Select"}}else{let Ke=(ue=(Ae=(Ve=(Pe=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Pe.split("&&#"))==null?void 0:Ve[1].replaceAll("'",""))==null?void 0:Ae.split("$/"))==null?void 0:ue.map(St=>({label:St,value:St})),je=(ae=(ke=(pe=(we=a.cloneDeep(z==null?void 0:z.label))==null?void 0:we.split("["))==null?void 0:pe[((Ie=(Me=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Me.split("["))==null?void 0:Ie.length)-1])==null?void 0:ke.split("]"))==null?void 0:ae[0];return{label:(ie=(Ce=(ce=(Se=(ve=a.cloneDeep(z==null?void 0:z.label))==null?void 0:ve.split("&&#"))==null?void 0:Se[0].replaceAll("'",""))==null?void 0:ce.split("#"))==null?void 0:Ce[0])==null?void 0:ie.replaceAll("$/","/"),options:Ke,isRoute:((be=f.find(St=>(St==null?void 0:St.key)==="tableColumn"))==null?void 0:be.isParent)??!1,formMenuSelect:je==null?void 0:je.split("/"),groupSelect:(tt=(Ye=(Re=(Ne=a.cloneDeep(z==null?void 0:z.label).replace("#",Ea))==null?void 0:Ne.split(Ea))==null?void 0:Re[1])==null?void 0:Ye.split("["+je+"]"))==null?void 0:tt[0],columnPath:((he=(Ze=z==null?void 0:z.columnPath)==null?void 0:Ze.split("#$%"))==null?void 0:he[0])??"",columnPathIndex:((ge=(xe=z==null?void 0:z.columnPath)==null?void 0:xe.split("#$%"))==null?void 0:ge[1])??"",relatedPath:((Qe=(Le=z==null?void 0:z.relatedPath)==null?void 0:Le.split("#$%"))==null?void 0:Qe[0])??"",relatedPathIndex:((et=(Te=z==null?void 0:z.relatedPath)==null?void 0:Te.split("#$%"))==null?void 0:et[1])??"",isRun:((nt=f.find(St=>(St==null?void 0:St.key)==="tableColumn"))==null?void 0:nt.isRun)??!1,formType:"Select"}}else{if((Oe=z==null?void 0:z.label)!=null&&Oe.includes("@-"))return{label:(vt=(st=(De=a.cloneDeep(z==null?void 0:z.label))==null?void 0:De.split("@-"))==null?void 0:st[0])==null?void 0:vt.replaceAll("$/","/"),directiveLabel:(At=(Ot=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Ot.split("@-"))==null?void 0:At[1],isRoute:((ln=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:ln.isParent)??!1,isRun:((yn=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:yn.isRun)??!1};if(z!=null&&z.label&&!((an=z==null?void 0:z.label)!=null&&an.includes("[")))return{label:(rn=z==null?void 0:z.label)==null?void 0:rn.replaceAll("$/","/"),isRoute:((sn=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:sn.isParent)??!1,isRun:((Bn=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:Bn.isRun)??!1};if(z!=null&&z.label&&((Pn=z==null?void 0:z.label)!=null&&Pn.includes(":")))if((Vn=z==null?void 0:z.label)!=null&&Vn.includes("#"))if((Dn=z==null?void 0:z.label)!=null&&Dn.includes("("))if(((Xo=(Go=(Yo=z==null?void 0:z.label)==null?void 0:Yo.split("#"))==null?void 0:Go[1])==null?void 0:Xo[0])==="["){let Ke=[];return(ll=(ol=(nl=(Zo=(Jo=z==null?void 0:z.label)==null?void 0:Jo.split("#"))==null?void 0:Zo[1])==null?void 0:nl.slice(1,((tl=(el=(Qo=z==null?void 0:z.label)==null?void 0:Qo.split("#"))==null?void 0:el[1])==null?void 0:tl.length)-1))==null?void 0:ol.split(","))==null||ll.forEach(je=>{var Tu,_u,Bu,Pu,Vu,Du,Iu,Ou;let St=(Du=(Vu=(Pu=(Tu=a.cloneDeep(je))==null?void 0:Tu.split("["))==null?void 0:Pu[((Bu=(_u=a.cloneDeep(je))==null?void 0:_u.split("["))==null?void 0:Bu.length)-1])==null?void 0:Vu.split("]"))==null?void 0:Du[0],Lt=(Ou=(Iu=a.cloneDeep(je))==null?void 0:Iu.split("["+St+"]"))==null?void 0:Ou[0];Ke.push({formMenuSelect:St==null?void 0:St.split("/"),groupSelect:Lt})}),{label:(il=(sl=(rl=(al=a.cloneDeep(z==null?void 0:z.label))==null?void 0:al.split("#"))==null?void 0:rl[0])==null?void 0:sl.replaceAll("'",""))==null?void 0:il.replaceAll("$/","/"),formMenuGroup:Ke,columnPath:((ul=(cl=z==null?void 0:z.columnPath)==null?void 0:cl.split("#$%"))==null?void 0:ul[0])??"",columnPathIndex:((fl=(dl=z==null?void 0:z.columnPath)==null?void 0:dl.split("#$%"))==null?void 0:fl[1])??"",relatedPath:((ml=(pl=z==null?void 0:z.relatedPath)==null?void 0:pl.split("#$%"))==null?void 0:ml[0])??"",relatedPathIndex:((vl=(hl=z==null?void 0:z.relatedPath)==null?void 0:hl.split("#$%"))==null?void 0:vl[1])??"",isRoute:((gl=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:gl.isParent)??!1,isRun:((yl=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:yl.isRun)??!1}}else return{label:(Yn=(gt=(Cn=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Cn.split("#"))==null?void 0:gt[0])==null?void 0:Yn.replaceAll("$/","/"),formMenuSelect:(gc=(vc=(hc=(mc=(xn=(bl=Bl(a.cloneDeep(z==null?void 0:z.label)))==null?void 0:bl[1])==null?void 0:xn.split("["))==null?void 0:mc[((pc=(Cl=(Wt=Bl(a.cloneDeep(z==null?void 0:z.label)))==null?void 0:Wt[1])==null?void 0:Cl.split("["))==null?void 0:pc.length)-1])==null?void 0:hc.split("]"))==null?void 0:vc[0])==null?void 0:gc.split("/"),groupSelect:(kc=(Cc=Bl((bc=(yc=a.cloneDeep(z==null?void 0:z.label))==null?void 0:yc.split("#"))==null?void 0:bc[1]))==null?void 0:Cc[0])==null?void 0:kc.replace("(",""),columnPath:((wc=(Ec=z==null?void 0:z.columnPath)==null?void 0:Ec.split("#$%"))==null?void 0:wc[0])??"",columnPathIndex:((Nc=(Sc=z==null?void 0:z.columnPath)==null?void 0:Sc.split("#$%"))==null?void 0:Nc[1])??"",relatedPath:((_c=(Tc=z==null?void 0:z.relatedPath)==null?void 0:Tc.split("#$%"))==null?void 0:_c[0])??"",relatedPathIndex:((Pc=(Bc=z==null?void 0:z.relatedPath)==null?void 0:Bc.split("#$%"))==null?void 0:Pc[1])??"",isRoute:((Vc=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:Vc.isParent)??!1,isRun:((Dc=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:Dc.isRun)??!1};else{let Ke=(Dt=(zt=(lt=(In=a.cloneDeep(z==null?void 0:z.label))==null?void 0:In.split("["))==null?void 0:lt[(($n=(On=a.cloneDeep(z==null?void 0:z.label))==null?void 0:On.split("["))==null?void 0:$n.length)-1])==null?void 0:zt.split("]"))==null?void 0:Dt[0];return{label:(Wn=(cn=(Mn=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Mn.split("#"))==null?void 0:cn[0])==null?void 0:Wn.replaceAll("$/","/"),formMenuSelect:Ke==null?void 0:Ke.split("/"),groupSelect:(ft=(pt=(Fe=(bn=a.cloneDeep(z==null?void 0:z.label))==null?void 0:bn.split("#"))==null?void 0:Fe[1])==null?void 0:pt.split("["+Ke+"]"))==null?void 0:ft[0],columnPath:((Un=(un=z==null?void 0:z.columnPath)==null?void 0:un.split("#$%"))==null?void 0:Un[0])??"",columnPathIndex:((Rt=(jt=z==null?void 0:z.columnPath)==null?void 0:jt.split("#$%"))==null?void 0:Rt[1])??"",relatedPath:((Ho=(qn=z==null?void 0:z.relatedPath)==null?void 0:qn.split("#$%"))==null?void 0:Ho[0])??"",relatedPathIndex:((Wo=(jo=z==null?void 0:z.relatedPath)==null?void 0:jo.split("#$%"))==null?void 0:Wo[1])??"",isRoute:((Uo=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:Uo.isParent)??!1,isRun:((qo=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:qo.isRun)??!1}}else{let Ke=(zc=(Ac=(xc=(Ic=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Ic.split("["))==null?void 0:xc[((Mc=($c=(Oc=Bl(a.cloneDeep(z==null?void 0:z.label)))==null?void 0:Oc[1])==null?void 0:$c.split("["))==null?void 0:Mc.length)-1])==null?void 0:Ac.split("]"))==null?void 0:zc[0];return{label:(qc=(Uc=(Fc=(Lc=(Rc=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Rc.split("["))==null?void 0:Lc[0])==null?void 0:Fc.split(":"))==null?void 0:Uc[((Wc=(jc=(Hc=(Kc=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Kc.split("["))==null?void 0:Hc[0])==null?void 0:jc.split(":"))==null?void 0:Wc.length)-1])==null?void 0:qc.replaceAll("$/","/"),formMenuSelect:Ke==null?void 0:Ke.split("/"),groupSelect:(Gc=(Yc=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Yc.split("["+Ke+"]"))==null?void 0:Gc[0],columnPath:((Jc=(Xc=z==null?void 0:z.columnPath)==null?void 0:Xc.split("#$%"))==null?void 0:Jc[1])??"",columnPathIndex:((Qc=(Zc=z==null?void 0:z.columnPath)==null?void 0:Zc.split("#$%"))==null?void 0:Qc[1])??"",relatedPath:((tu=(eu=z==null?void 0:z.relatedPath)==null?void 0:eu.split("#$%"))==null?void 0:tu[0])??"",relatedPathIndex:((ou=(nu=z==null?void 0:z.relatedPath)==null?void 0:nu.split("#$%"))==null?void 0:ou[1])??"",isRoute:((lu=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:lu.isParent)??!1,isRun:((au=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:au.isRun)??!1}}else{let Ke=(fu=(du=(uu=(ru=a.cloneDeep(z==null?void 0:z.label))==null?void 0:ru.split("["))==null?void 0:uu[((cu=(iu=(su=Bl(a.cloneDeep(z==null?void 0:z.label)))==null?void 0:su[1])==null?void 0:iu.split("["))==null?void 0:cu.length)-1])==null?void 0:du.split("]"))==null?void 0:fu[0];return{label:(hu=(mu=(pu=a.cloneDeep(z==null?void 0:z.label))==null?void 0:pu.split("["))==null?void 0:mu[0])==null?void 0:hu.replaceAll("$/","/"),formMenuSelect:Ke==null?void 0:Ke.split("/"),columnPath:((gu=(vu=z==null?void 0:z.columnPath)==null?void 0:vu.split("#$%"))==null?void 0:gu[0])??"",columnPathIndex:((bu=(yu=z==null?void 0:z.columnPath)==null?void 0:yu.split("#$%"))==null?void 0:bu[1])??"",relatedPath:((ku=(Cu=z==null?void 0:z.relatedPath)==null?void 0:Cu.split("#$%"))==null?void 0:ku[0])??"",relatedPathIndex:((wu=(Eu=z==null?void 0:z.relatedPath)==null?void 0:Eu.split("#$%"))==null?void 0:wu[1])??"",isRoute:((Su=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:Su.isParent)??!1,isRun:((Nu=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:Nu.isRun)??!1}}}}),v=v==null?void 0:v.map(z=>{let ne=z;return ne.prop=z.label,ne.align="center",ne}),v=SA(v,(k=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="parentColumns"))==null?void 0:k.value),v.length!==0&&v.push({label:"操作"}),(b=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="parentColumns"))!=null&&b.value&&((S=(w=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="parentColumns"))==null?void 0:w.value)==null?void 0:S.length)>0&&(v=[v])),f!=null&&f.find(z=>(z==null?void 0:z.key)==="formContent")){const z=(_=f.find(ye=>(ye==null?void 0:ye.key)==="formContent"))==null?void 0:_.value,ne=((P=f.find(ye=>(ye==null?void 0:ye.key)==="formGroup"))==null?void 0:P.value)??[];let _e=[];Array.isArray(z)&&z.forEach(ye=>{let Pe=1;Array.isArray(ye)&&(ye!=null&&ye.every(Ve=>!Array.isArray(Ve)))&&(Pe=ye.length),ye&&(Array.isArray(ye)||(ye=[ye]),ye.forEach(Ve=>{Array.isArray(Ve)||(Ve=[Ve]);let Ae=[];Ve==null||Ve.forEach(ue=>{var we,Me,Ie,pe,ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe,ge,Le,Qe,Te,et,nt,He,ot,dt,at,Tt,Xe,We,Et,Vt,bt,de,Be,ze,Ue,Ge,it,rt,mt,ht,wt,fe,Ee,Oe,De,st,vt,Ot,At,ln,yn,an,rn,sn,Bn,Pn,Vn,Dn,In,On,$n,lt,zt,Dt,Mn,cn,Wn,bn,Fe,pt,ft,un,Un,jt,Rt,qn,Ho,jo,Wo,Uo,qo,Yo,Go,Xo,Jo,Zo,Qo,el,tl,nl,ol,ll,al,rl,sl,il,cl,ul,dl,fl,pl,ml,hl,vl,gl,yl;if(_l.value++,Array.isArray((we=Object.values(ue))==null?void 0:we[0]))Ae.push({id:_l.value,key:(Me=Object.keys(ue))==null?void 0:Me[0],prop:(Ie=Object.keys(ue))==null?void 0:Ie[0],label:(pe=Object.keys(ue))==null?void 0:pe[0],value:"",width:Math.max(Pe,Ve.length),type:"Select",isMain:!!(!((ae=(ke=Object.values(ue))==null?void 0:ke[0])!=null&&ae.includes("loginUser"))&&((Se=(ve=Object.values(ue))==null?void 0:ve[0])!=null&&Se.includes("@"))),optionUrl:{type:"Select",selectRelateType:"自定义绑定",defaultSelect:(ce=Object.values(ue))==null?void 0:ce[0]}});else if(!((ie=(Ce=Object.values(ue))==null?void 0:Ce[0])!=null&&ie.includes("/")&&((Ne=(be=Object.values(ue))==null?void 0:be[0])!=null&&Ne.includes("[")))||(Ye=(Re=Object.values(ue))==null?void 0:Re[0])!=null&&Ye.includes("loginUserSign"))(Ze=(tt=Object.values(ue))==null?void 0:tt[0])!=null&&Ze.includes("&&")||(xe=(he=Object.values(ue))==null?void 0:he[0])!=null&&xe.includes("loginUserSign")?Ae.push({id:_l.value,key:(ge=Object.keys(ue))==null?void 0:ge[0],prop:(Le=Object.keys(ue))==null?void 0:Le[0],label:(Qe=Object.keys(ue))==null?void 0:Qe[0],value:!((et=(Te=Object.values(ue))==null?void 0:Te[0])!=null&&et.includes("loginUser"))&&!((He=(nt=Object.values(ue))==null?void 0:nt[0])!=null&&He.includes("loginUserSign"))&&((dt=(ot=Object.values(ue))==null?void 0:ot[0])!=null&&dt.includes("@"))?"":(Xe=(Tt=(at=Object.values(ue))==null?void 0:at[0])==null?void 0:Tt.split("&&"))==null?void 0:Xe[0],isShow:((bt=(Vt=(Et=(We=Object.values(ue))==null?void 0:We[0])==null?void 0:Et.split("&&"))==null?void 0:Vt[1])==null?void 0:bt.replace("#","==="))??"originalSignature",width:Math.max(Pe,Ve.length),isMain:!!(!((Be=(de=Object.values(ue))==null?void 0:de[0])!=null&&Be.includes("loginUser"))&&!((Ue=(ze=Object.values(ue))==null?void 0:ze[0])!=null&&Ue.includes("loginUserSign"))&&((it=(Ge=Object.values(ue))==null?void 0:Ge[0])!=null&&it.includes("@")))}):Ae.push({id:_l.value,key:(rt=Object.keys(ue))==null?void 0:rt[0],prop:(mt=Object.keys(ue))==null?void 0:mt[0],label:(ht=Object.keys(ue))==null?void 0:ht[0],value:!((fe=(wt=Object.values(ue))==null?void 0:wt[0])!=null&&fe.includes("loginUser"))&&((Oe=(Ee=Object.values(ue))==null?void 0:Ee[0])!=null&&Oe.includes("@"))?"":(De=Object.values(ue))==null?void 0:De[0],width:Math.max(Pe,Ve.length),isMain:!!(!((vt=(st=Object.values(ue))==null?void 0:st[0])!=null&&vt.includes("loginUser"))&&((At=(Ot=Object.values(ue))==null?void 0:Ot[0])!=null&&At.includes("@"))&&!((yn=(ln=Object.values(ue))==null?void 0:ln[0])!=null&&yn.includes("#@"))),isMainUrl:(rn=(an=Object.values(ue))==null?void 0:an[0])==null?void 0:rn.includes("#@")});else{let Cn;if((Bn=(sn=Object.values(ue))==null?void 0:sn[0])!=null&&Bn.includes("(")){let xn;(Vn=(Pn=Object.values(ue))==null?void 0:Pn[0])!=null&&Vn.includes("$##")?xn=(zt=(lt=($n=(On=(In=(Dn=Object.values(ue))==null?void 0:Dn[0])==null?void 0:In.split("$##"))==null?void 0:On[1])==null?void 0:$n.split(")"))==null?void 0:lt[0])==null?void 0:zt.replaceAll("(",""):xn=(Wn=(cn=(Mn=(Dt=Object.values(ue))==null?void 0:Dt[0])==null?void 0:Mn.split(")"))==null?void 0:cn[0])==null?void 0:Wn.replaceAll("(",""),Cn=[],(bn=$e.contentTransArrayToAll(xn,"/"))==null||bn.forEach(Wt=>{var Cl;Wt!=null&&Wt.includes("[")?Cn.push((Cl=Wt==null?void 0:Wt.replace("/",":"))==null?void 0:Cl.replaceAll("/","")):Cn.push(Wt==null?void 0:Wt.replaceAll("/",""))})}else(pt=(Fe=Object.values(ue))==null?void 0:Fe[0])!=null&&pt.includes("$##")?Cn=(qn=(Rt=(jt=(Un=(un=(ft=Object.values(ue))==null?void 0:ft[0])==null?void 0:un.split("$##"))==null?void 0:Un[1])==null?void 0:jt.split("["))==null?void 0:Rt[0])==null?void 0:qn.split("/"):Cn=(Uo=(Wo=(jo=(Ho=Object.values(ue))==null?void 0:Ho[0])==null?void 0:jo.split("["))==null?void 0:Wo[0])==null?void 0:Uo.split("/");let gt;(Yo=(qo=Object.values(ue))==null?void 0:qo[0])!=null&&Yo.includes("$##")?gt=(Qo=(Zo=(Jo=(Xo=(Go=Object.values(ue))==null?void 0:Go[0])==null?void 0:Xo.split("$##"))==null?void 0:Jo[1])==null?void 0:Zo.split("@"))==null?void 0:Qo[0]:gt=(nl=(tl=(el=Object.values(ue))==null?void 0:el[0])==null?void 0:tl.split("@"))==null?void 0:nl[0],gt!=null&>.includes("(")&&(gt=(ol=gt==null?void 0:gt.split(")"))==null?void 0:ol[1]),gt=(al=(ll=gt==null?void 0:gt.replace("[",Ea))==null?void 0:ll.split(Ea))==null?void 0:al[1];let Yn=(sl=(rl=gt==null?void 0:gt.slice(0,gt.length-1))==null?void 0:rl.split(":"))==null?void 0:sl.map(xn=>xn.replaceAll("'","")),bl=Yn;(Yn==null?void 0:Yn.length)===1&&bl.unshift(""),Ae.push({id:_l.value,key:(il=Object.keys(ue))==null?void 0:il[0],prop:(cl=Object.keys(ue))==null?void 0:cl[0],label:(ul=Object.keys(ue))==null?void 0:ul[0],value:"",width:Math.max(Pe,Ve.length),type:"Select",isMain:!!(!((fl=(dl=Object.values(ue))==null?void 0:dl[0])!=null&&fl.includes("loginUser"))&&((pl=Object.values(ue))==null?void 0:pl[0]).includes("@")),optionUrl:{type:"Select",selectRelateType:"关联绑定列",menuSelect:Cn,groupSelect:bl,filter:(hl=(ml=Object.values(ue))==null?void 0:ml[0])!=null&&hl.includes("$##")?(yl=(gl=(vl=Object.values(ue))==null?void 0:vl[0])==null?void 0:gl.split("$##"))==null?void 0:yl[0]:""}})}}),Ae==null||Ae.forEach(ue=>{_e.push(ue)})}))}),p.push({key:"formFlex",contents:""}),p.push({key:"formGroup",contents:ne}),p.push({key:"formContent",contents:_e}),s.push({comp:"Form",compData:a.cloneDeep(p),name:(T=(B=f.find(ye=>(ye==null?void 0:ye.key)==="groupName"))==null?void 0:B.value)==null?void 0:T.replaceAll("'",""),isShow:!0})}else if(f!=null&&f.find(z=>(z==null?void 0:z.key)==="extraButton"))s.push({key:"extraButton",value:{method:(N=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="extraButton"))==null?void 0:N.value,value:[],path:(V=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="extraButton"))==null?void 0:V.path,data:(R=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="extraButton"))==null?void 0:R.data}});else if((v==null?void 0:v.length)!==0||((q=(j=f.find(z=>(z==null?void 0:z.key)==="tableContents"))==null?void 0:j.value)==null?void 0:q.length)>0||(($=(D=f.find(z=>(z==null?void 0:z.key)==="relatedPath"))==null?void 0:D.value)==null?void 0:$.length)>0)if(p.push({key:"header",contents:v}),p.push({key:"childTree",contents:_f(((A=f.find(z=>(z==null?void 0:z.key)==="childTree"))==null?void 0:A.value)??[])}),p.push({key:"tableContents",contents:_f(((O=f.find(z=>(z==null?void 0:z.key)==="tableContents"))==null?void 0:O.value)??[])}),(M=v==null?void 0:v.filter(z=>(z==null?void 0:z.label)!=="操作"))!=null&&M.every(z=>(z==null?void 0:z.isRoute)===!0)&&((K=(x=(F=r==null?void 0:r.find(z=>(z==null?void 0:z.key)==="contentPath"))==null?void 0:F.value)==null?void 0:x.split("/"))==null?void 0:K[0])!=="算法库"&&((Y=v==null?void 0:v.filter(z=>(z==null?void 0:z.label)!=="操作"))==null?void 0:Y.length)!==0?(p.push({key:"extraButton",contents:[{label:"新建"},{label:"修改模板"},{label:"批量删除"},{label:"导入",type:"upload"},{label:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}]}),p.push({key:"rowButton",contents:[{label:"复制新增"},{label:"删除"}]})):(p.push({key:"extraButton",contents:[{label:"新增"},{label:"批量删除"},{label:"导入",type:"upload"},{label:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}]}),(W=v==null?void 0:v.filter(z=>(z==null?void 0:z.label)!=="操作"))!=null&&W.every(z=>(z==null?void 0:z.isRun)===!0)||((Q=(re=(te=r==null?void 0:r.find(z=>(z==null?void 0:z.key)==="contentPath"))==null?void 0:te.value)==null?void 0:re.split("/"))==null?void 0:Q[0])==="算法库"?p.push({key:"rowButton",contents:[{label:"查看"},{label:"复制新增"},{label:"编辑"},{label:"执行"},{label:"删除"}]}):p.push({key:"rowButton",contents:[{label:"查看"},{label:"复制新增"},{label:"编辑"},{label:"删除"}]})),p.push({key:"relatedFilter",contents:(I=(G=(X=f.find(z=>(z==null?void 0:z.key)==="relatedPath"))==null?void 0:X.value)==null?void 0:G.split("#$%"))==null?void 0:I[0],index:((J=(Z=(H=f.find(z=>(z==null?void 0:z.key)==="relatedPath"))==null?void 0:H.value)==null?void 0:Z.split("#$%"))==null?void 0:J[1])??""}),p.push({key:"tableFilter",contents:(le=f.find(z=>(z==null?void 0:z.key)==="tableFilter"))==null?void 0:le.value}),((oe=f==null?void 0:f.filter(z=>{var ne;return(ne=z==null?void 0:z.key)==null?void 0:ne.includes("groupName")}))==null?void 0:oe.length)===1)s.push({comp:"Table",compData:p,name:(U=(ee=f.find(z=>(z==null?void 0:z.key)==="groupName"))==null?void 0:ee.value)==null?void 0:U.replaceAll("'",""),isShow:!0});else{let z={comp:"Table",compData:p,isShow:!0};(se=f==null?void 0:f.filter(ne=>{var _e;return(_e=ne==null?void 0:ne.key)==null?void 0:_e.includes("groupName")}))==null||se.forEach(ne=>{z[ne.key.replace("groupName","name")]=ne.value}),s.push(z)}}),(s==null?void 0:s.length)>0)return{comp:"Group",compData:[{key:"groupContents",contents:s}],name:(c=r==null?void 0:r.find(p=>(p==null?void 0:p.key)==="contentPath"))==null?void 0:c.value,parentPath:(u=r==null?void 0:r.find(p=>(p==null?void 0:p.key)==="contentPath"))==null?void 0:u.parentPath,processMainPath:((d=r==null?void 0:r.find(p=>(p==null?void 0:p.key)==="parentMainPage"))==null?void 0:d.value)??""}}))==null?void 0:l.filter(r=>r)},TA=t=>{var r,s;const n=(r=t.map(i=>{var u,d;let c=(d=(u=i.key.split("("))==null?void 0:u[1])==null?void 0:d.trim();return c==null?void 0:c.slice(0,c.length-1)}))==null?void 0:r.filter(i=>i),o=[];n==null||n.forEach(i=>{var u,d;const c=[];if((u=_o.contentTrans(i))==null||u.forEach(f=>{var p,v,m,y,h,g,C,E,k,b,w,S,_,P;if(f.includes("{")&&f.includes("[")){let B=a.cloneDeep(f).split(":");f=(g=(v=(p=a.cloneDeep(B))==null?void 0:p[0])==null?void 0:v.split("{"))==null?void 0:g[((h=(y=(m=a.cloneDeep(B))==null?void 0:m[0])==null?void 0:y.split("{"))==null?void 0:h.length)-1].replaceAll("'",""),c.push(f);let T=(k=(E=(C=B==null?void 0:B[(B==null?void 0:B.length)-1])==null?void 0:C.split("}"))==null?void 0:E[0])==null?void 0:k.replaceAll("'",'"'),N=[];(w=(b=T.slice(1,T.length-1))==null?void 0:b.split(","))==null||w.forEach(V=>{N.push(V)}),c.push(N)}else if(f.includes("{")){let B=(S=f.split(":"))==null?void 0:S[0];f=(P=B==null?void 0:B.split("{"))==null?void 0:P[((_=B==null?void 0:B.split("{"))==null?void 0:_.length)-1].replaceAll("'",""),c.push(f)}else c.push(f)}),!c.some(f=>Array.isArray(f)))o.push(c);else{let f=[];c==null||c.forEach((p,v)=>{v!==c.length-1&&f.push(p)}),(d=c==null?void 0:c[(c==null?void 0:c.length)-1])==null||d.forEach(p=>{let v=a.cloneDeep(f);v.push(p),o.push(v)})}});const l=(s=o.filter(i=>i.length!==0))==null?void 0:s.map(i=>{let c="";return i.forEach(u=>{!u.includes("{")&&!(u!=null&&u.includes("$"))&&(c=c===""?c+a.cloneDeep(u):c+"/"+a.cloneDeep(u))}),c});return[...new Set(l)]},_A=(t,n)=>{const o=t.reduce((r,s,i)=>(s.key==="groupName"&&r.push(i),r),[]);if(o.length<2)return t.slice();const l=o[n];return t.slice(l)},BA=t=>{var p,v,m,y;let n=[];const o=TA(a.cloneDeep(t)),l=dA(a.cloneDeep(t));n.push(l);const r=aA(a.cloneDeep(t));r&&n.push(r);const s=rA(a.cloneDeep(t));s&&((p=a.cloneDeep(s))==null||p.forEach(h=>{n.push(h)}));const i=(v=a.cloneDeep(t))==null?void 0:v.filter(h=>{var g;return(g=h==null?void 0:h.key)==null?void 0:g.includes("(")}).map(h=>EA(h,o)).filter(h=>(h==null?void 0:h.length)!==0);let c=[];i==null||i.forEach(h=>{h==null||h.forEach(g=>{c!=null&&c.find(C=>{var E,k;return((E=C==null?void 0:C.find(b=>(b==null?void 0:b.key)==="contentPath"))==null?void 0:E.value)===((k=g==null?void 0:g.find(b=>(b==null?void 0:b.key)==="contentPath"))==null?void 0:k.value)})?c=c==null?void 0:c.map(C=>{var k,b;return((k=C==null?void 0:C.find(w=>(w==null?void 0:w.key)==="contentPath"))==null?void 0:k.value)===((b=g==null?void 0:g.find(w=>(w==null?void 0:w.key)==="contentPath"))==null?void 0:b.value)&&(C=[...C,...g.filter(w=>(w==null?void 0:w.key)!=="contentPath")]),C}):c.push(g)})});let u=(m=a.cloneDeep(i))==null?void 0:m.map(h=>{var g,C;return(C=(g=h==null?void 0:h[0])==null?void 0:g.find(E=>(E==null?void 0:E.key)==="contentPath"))==null?void 0:C.value});u==null||u.forEach(h=>{u!=null&&u.includes(h+ts.value)}),c=(y=a.cloneDeep(c))==null?void 0:y.map(h=>{var C,E,k;let g=(C=h==null?void 0:h.find(b=>(b==null?void 0:b.key)==="contentPath"))==null?void 0:C.value;return(E=a.cloneDeep(u))!=null&&E.find(b=>b===g+ts.value)?h=h==null?void 0:h.map(b=>((b==null?void 0:b.key)==="tableColumn"&&(b.isParent=!0),b)):(g==null?void 0:g[(g==null?void 0:g.length)-1])===ts.value?h=h==null?void 0:h.map(b=>((b==null?void 0:b.key)==="tableColumn"&&(h!=null&&h.find(w=>(w==null?void 0:w.key)==="groupName"&&(w==null?void 0:w.value)==="方法明细"))&&(b.isRun=!0),b)):((k=g==null?void 0:g.split("/"))==null?void 0:k[0])==="算法程序"&&(h=h==null?void 0:h.map(b=>((b==null?void 0:b.key)==="tableColumn"&&(b.isRun=!0),b))),h});let d=[],f=[];return c==null||c.forEach(h=>{var g,C,E,k,b,w;if(d.push(h),(E=(C=(g=h==null?void 0:h.find(S=>(S==null?void 0:S.key)==="tableColumn"))==null?void 0:g.value)==null?void 0:C[0])!=null&&E.includes("@-#isMain")){let S=(k=h==null?void 0:h.find(P=>(P==null?void 0:P.key)==="contentPath"))==null?void 0:k.value,_=(w=(b=h==null?void 0:h.find(P=>(P==null?void 0:P.key)==="tableContents"))==null?void 0:b.value)==null?void 0:w.map(P=>S+"/"+(P==null?void 0:P[0]));_==null||_.forEach(P=>{var B,T;if(!(c!=null&&c.find(N=>{var V;return((V=N==null?void 0:N.find(R=>(R==null?void 0:R.key)==="contentPath"))==null?void 0:V.value)===P}))){let N=[];N.push({key:"contentPath",value:P,parentPath:""});let V=S+"/",R=c==null?void 0:c.find(j=>{var q;return((q=j==null?void 0:j.find(D=>(D==null?void 0:D.key)==="contentPath"))==null?void 0:q.value)===V});if(R)N=[...N,...c==null?void 0:c.find(j=>{var q;return((q=j==null?void 0:j.find(D=>(D==null?void 0:D.key)==="contentPath"))==null?void 0:q.value)===V}).slice(1)];else{let j=(T=(B=h==null?void 0:h.filter(q=>(q==null?void 0:q.key)==="tableColumn"))==null?void 0:B.filter(q=>{var D,$;return($=(D=q==null?void 0:q.value)==null?void 0:D[0])==null?void 0:$.includes("@-#isMain")}))==null?void 0:T.length;N=[...N,..._A(h,j)]}R&&(f.push(P),d.push(N))}})}}),f==null||f.forEach(h=>{var g,C,E,k,b;n[0].compData[0].contents=Iv.addSelectMenu((C=(g=n==null?void 0:n[0])==null?void 0:g.compData)==null?void 0:C[0].contents,(E=h==null?void 0:h.split("/"))==null?void 0:E.filter((w,S)=>{var _;return S!==((_=h==null?void 0:h.split("/"))==null?void 0:_.length)-1}),(b=(k=h==null?void 0:h.split("/"))==null?void 0:k.filter((w,S)=>{var _;return S===((_=h==null?void 0:h.split("/"))==null?void 0:_.length)-1}))==null?void 0:b[0])}),n=[...n,...NA(d)],n},Bf=t=>{var s,i,c;let n=t;const o=[];let l="",r=0;for(const u of n)r++,u.includes("'")||l.includes("'")?(l+=u.trim(),((i=(s=a.cloneDeep(l))==null?void 0:s.split("'"))==null?void 0:i.length)===3&&((c=a.cloneDeep(l))==null?void 0:c[l.length-1])==="'"?(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l=""):r===(t==null?void 0:t.length)&&(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):(l+=u.trim(),o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="");return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o},PA=t=>{var r,s,i;const n=(s=(r=_o.contentTransArray(a.cloneDeep(t)))==null?void 0:r.filter(c=>c!==""))==null?void 0:s.map(c=>c.replaceAll("==","#").replaceAll(",",","));let o=(i=n==null?void 0:n.filter(c=>!c.includes("/*")&&!c.includes("*/")))==null?void 0:i.map(c=>_o.parseGroupValue(c));return o=o==null?void 0:o.map(c=>{var p,v;let u=(p=Bf(a.cloneDeep(c).value))==null?void 0:p.map(m=>{var y;return(m==null?void 0:m.length)===1&&(m=(y=m==null?void 0:m.replaceAll("<","["))==null?void 0:y.replaceAll(">","]")),m}).join("");return{key:(v=Bf(a.cloneDeep(c).key))==null?void 0:v.map(m=>{var y;return(m==null?void 0:m.length)===1&&(m=(y=m==null?void 0:m.replaceAll("<","["))==null?void 0:y.replaceAll(">","]")),m}).join(""),value:u}}),BA(o)};exports._sfc_main=tA;exports._sfc_main$1=nA;exports._sfc_main$2=oA;exports.expandToNewContents=PA;exports.savePageDataAsync=Qx;
|
|
37
|
+
`||d==="\r"){i=u;continue}if(s.includes(d)){const f=i===-1?l:i;c={pattern:r.slice(u+1,f),start:u+1,end:f,prefix:d,prefixIndex:u,splitIndex:i,selectionEnd:l};break}}return c},zM=(t,n={debug:!1,useSelectionEnd:!1})=>{const o=t.selectionStart!==null?t.selectionStart:0,l=t.selectionEnd!==null?t.selectionEnd:0,r=n.useSelectionEnd?l:o,s=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(n.debug){const v=document.querySelector("#input-textarea-caret-position-mirror-div");v!=null&&v.parentNode&&v.parentNode.removeChild(v)}const i=document.createElement("div");i.id="input-textarea-caret-position-mirror-div",document.body.appendChild(i);const c=i.style,u=window.getComputedStyle(t),d=t.nodeName==="INPUT";c.whiteSpace=d?"nowrap":"pre-wrap",d||(c.wordWrap="break-word"),c.position="absolute",n.debug||(c.visibility="hidden"),s.forEach(v=>{if(d&&v==="lineHeight")if(u.boxSizing==="border-box"){const m=Number.parseInt(u.height),y=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),h=y+Number.parseInt(u.lineHeight);m>h?c.lineHeight=`${m-y}px`:m===h?c.lineHeight=u.lineHeight:c.lineHeight="0"}else c.lineHeight=u.height;else c[v]=u[v]}),a.isFirefox()?t.scrollHeight>Number.parseInt(u.height)&&(c.overflowY="scroll"):c.overflow="hidden",i.textContent=t.value.slice(0,Math.max(0,r)),d&&i.textContent&&(i.textContent=i.textContent.replace(/\s/g," "));const f=document.createElement("span");f.textContent=t.value.slice(Math.max(0,r))||".",f.style.position="relative",f.style.left=`${-t.scrollLeft}px`,f.style.top=`${-t.scrollTop}px`,i.appendChild(f);const p={top:f.offsetTop+Number.parseInt(u.borderTopWidth),left:f.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return n.debug?f.style.backgroundColor="#aaa":document.body.removeChild(i),p.left>=t.clientWidth&&(p.left=t.clientWidth),p},RM=a.buildProps({...L.inputProps,options:{type:a.definePropType(Array),default:()=>[]},prefix:{type:a.definePropType([String,Array]),default:"@",validator:t=>a.isString(t)?t.length===1:t.every(n=>a.isString(n)&&n.length===1)},split:{type:String,default:" ",validator:t=>t.length===1},filterOption:{type:a.definePropType([Boolean,Function]),default:()=>xM,validator:t=>t===!1?!0:a.isFunction(t)},placement:{type:a.definePropType(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:a.definePropType(Function)},modelValue:String,loading:Boolean,popperClass:qe.popperClass,popperStyle:qe.popperStyle,popperOptions:{type:a.definePropType(Object),default:()=>({})},props:{type:a.definePropType(Object),default:()=>vv}}),LM={[L.UPDATE_MODEL_EVENT]:t=>a.isString(t),"whole-remove":(t,n)=>a.isString(t)&&a.isString(n),input:t=>a.isString(t),search:(t,n)=>a.isString(t)&&a.isString(n),select:(t,n)=>a.isObject$1(t)&&a.isString(n),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},vv={value:"value",label:"label",disabled:"disabled"},FM=a.buildProps({options:{type:a.definePropType(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),KM={select:t=>a.isString(t.value)},HM=e.defineComponent({name:"ElMentionDropdown"}),jM=e.defineComponent({...HM,props:FM,emits:KM,setup(t,{expose:n,emit:o}){const l=t,r=a.useNamespace("mention"),{t:s}=a.useLocale(),i=e.ref(-1),c=e.ref(),u=e.ref(),d=e.ref(),f=(k,b)=>[r.be("dropdown","item"),r.is("hovering",i.value===b),r.is("disabled",k.disabled||l.disabled)],p=k=>{k.disabled||l.disabled||o("select",k)},v=k=>{i.value=k},m=e.computed(()=>l.disabled||l.options.every(k=>k.disabled)),y=e.computed(()=>l.options[i.value]),h=()=>{y.value&&o("select",y.value)},g=k=>{const{options:b}=l;if(b.length===0||m.value)return;k==="next"?(i.value++,i.value===b.length&&(i.value=0)):k==="prev"&&(i.value--,i.value<0&&(i.value=b.length-1));const w=b[i.value];if(w.disabled){g(k);return}e.nextTick(()=>C(w))},C=k=>{var b,w,S,_;const{options:P}=l,B=P.findIndex(N=>N.value===k.value),T=(b=u.value)==null?void 0:b[B];if(T){const N=(S=(w=d.value)==null?void 0:w.querySelector)==null?void 0:S.call(w,`.${r.be("dropdown","wrap")}`);N&&L.scrollIntoView(N,T)}(_=c.value)==null||_.handleScroll()},E=()=>{m.value||l.options.length===0?i.value=-1:i.value=0};return e.watch(()=>l.options,E,{immediate:!0}),n({hoveringIndex:i,navigateOptions:g,selectHoverOption:h,hoverOption:y}),(k,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:d,class:e.normalizeClass(e.unref(r).b("dropdown"))},[k.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r).be("dropdown","header"))},[e.renderSlot(k.$slots,"header")],2)):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(e.unref(Zt),{id:k.contentId,ref_key:"scrollbarRef",ref:c,tag:"ul","wrap-class":e.unref(r).be("dropdown","wrap"),"view-class":e.unref(r).be("dropdown","list"),role:"listbox","aria-label":k.ariaLabel,"aria-orientation":"vertical"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.options,(w,S)=>(e.openBlock(),e.createElementBlock("li",{id:`${k.contentId}-${S}`,ref_for:!0,ref_key:"optionRefs",ref:u,key:S,class:e.normalizeClass(f(w,S)),role:"option","aria-disabled":w.disabled||k.disabled||void 0,"aria-selected":i.value===S,onMousemove:_=>v(S),onClick:e.withModifiers(_=>p(w),["stop"])},[e.renderSlot(k.$slots,"label",{item:w,index:S},()=>{var _;return[e.createElementVNode("span",null,e.toDisplayString((_=w.label)!=null?_:w.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[e.vShow,k.options.length>0&&!k.loading]]),k.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r).be("dropdown","loading"))},[e.renderSlot(k.$slots,"loading",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("el.mention.loading")),1)])],2)):e.createCommentVNode("v-if",!0),k.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(r).be("dropdown","footer"))},[e.renderSlot(k.$slots,"footer")],2)):e.createCommentVNode("v-if",!0)],2))}});var WM=a._export_sfc(jM,[["__file","mention-dropdown.vue"]]);const UM=e.defineComponent({name:"ElMention",inheritAttrs:!1}),qM=e.defineComponent({...UM,props:RM,emits:LM,setup(t,{expose:n,emit:o}){const l=t,r=e.computed(()=>L.pick(l,Object.keys(L.inputProps))),s=a.useNamespace("mention"),i=L.useFormDisabled(),c=L.useId(),u=e.ref(),d=e.ref(),f=e.ref(),p=e.ref(!1),v=e.ref(),m=e.ref(),y=e.computed(()=>l.showArrow?l.placement:`${l.placement}-start`),h=e.computed(()=>l.showArrow?["bottom","top"]:["bottom-start","top-start"]),g=e.computed(()=>({...vv,...l.props})),C=D=>{const $={label:D[g.value.label],value:D[g.value.value],disabled:D[g.value.disabled]};return{...D,...$}},E=e.computed(()=>l.options.map(C)),k=e.computed(()=>{const{filterOption:D}=l;return!m.value||!D?E.value:E.value.filter($=>D(m.value.pattern,$))}),b=e.computed(()=>p.value&&(!!k.value.length||l.loading)),w=e.computed(()=>{var D;return`${c.value}-${(D=f.value)==null?void 0:D.hoveringIndex}`}),S=D=>{o(L.UPDATE_MODEL_EVENT,D),o(L.INPUT_EVENT,D),R()},_=D=>{var $,A,O,M;if(($=u.value)!=null&&$.isComposing)return;const F=a.getEventCode(D);switch(F){case a.EVENT_CODE.left:case a.EVENT_CODE.right:R();break;case a.EVENT_CODE.up:case a.EVENT_CODE.down:if(!p.value)return;D.preventDefault(),(A=f.value)==null||A.navigateOptions(F===a.EVENT_CODE.up?"prev":"next");break;case a.EVENT_CODE.enter:case a.EVENT_CODE.numpadEnter:if(!p.value){l.type!=="textarea"&&R();return}D.preventDefault(),(O=f.value)!=null&&O.hoverOption?(M=f.value)==null||M.selectHoverOption():p.value=!1;break;case a.EVENT_CODE.esc:if(!p.value)return;D.preventDefault(),p.value=!1;break;case a.EVENT_CODE.backspace:if(l.whole&&m.value){const{splitIndex:x,selectionEnd:K,pattern:Y,prefixIndex:W,prefix:te}=m.value,re=V();if(!re)return;const Q=re.value,X=E.value.find(I=>I.value===Y);if((a.isFunction(l.checkIsWhole)?l.checkIsWhole(Y,te):X)&&x!==-1&&x+1===K){D.preventDefault();const I=Q.slice(0,W)+Q.slice(x+1);o(L.UPDATE_MODEL_EVENT,I),o(L.INPUT_EVENT,I),o("whole-remove",Y,te);const H=W;e.nextTick(()=>{re.selectionStart=H,re.selectionEnd=H,q()})}}}},{wrapperRef:P}=L.useFocusController(u,{disabled:i,afterFocus(){R()},beforeBlur(D){var $;return($=d.value)==null?void 0:$.isFocusInsideContent(D)},afterBlur(){p.value=!1}}),B=()=>{R()},T=D=>l.options.find($=>D.value===$[g.value.value]),N=D=>{if(!m.value)return;const $=V();if(!$)return;const A=$.value,{split:O}=l,M=A.slice(m.value.end),F=M.startsWith(O),x=`${D.value}${F?"":O}`,K=A.slice(0,m.value.start)+x+M;o(L.UPDATE_MODEL_EVENT,K),o(L.INPUT_EVENT,K),o("select",T(D),m.value.prefix);const Y=m.value.start+x.length+(F?1:0);e.nextTick(()=>{$.selectionStart=Y,$.selectionEnd=Y,$.focus(),q()})},V=()=>{var D,$;return l.type==="textarea"?(D=u.value)==null?void 0:D.textarea:($=u.value)==null?void 0:$.input},R=()=>{setTimeout(()=>{j(),q(),e.nextTick(()=>{var D;return(D=d.value)==null?void 0:D.updatePopper()})},0)},j=()=>{const D=V();if(!D)return;const $=zM(D),A=D.getBoundingClientRect(),O=P.value.getBoundingClientRect();v.value={position:"absolute",width:0,height:`${$.height}px`,left:`${$.left+A.left-O.left}px`,top:`${$.top+A.top-O.top}px`}},q=()=>{const D=V();if(document.activeElement!==D){p.value=!1;return}const{prefix:$,split:A}=l;if(m.value=AM(D,$,A),m.value&&m.value.splitIndex===-1){p.value=!0,o("search",m.value.pattern,m.value.prefix);return}p.value=!1};return n({input:u,tooltip:d,dropdownVisible:b}),(D,$)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:P,class:e.normalizeClass(e.unref(s).b())},[e.createVNode(e.unref(L.ElInput),e.mergeProps(e.mergeProps(e.unref(r),D.$attrs),{ref_key:"elInputRef",ref:u,"model-value":D.modelValue,disabled:e.unref(i),role:e.unref(b)?"combobox":void 0,"aria-activedescendant":e.unref(b)?e.unref(w)||"":void 0,"aria-controls":e.unref(b)?e.unref(c):void 0,"aria-expanded":e.unref(b)||void 0,"aria-label":D.ariaLabel,"aria-autocomplete":e.unref(b)?"none":void 0,"aria-haspopup":e.unref(b)?"listbox":void 0,onInput:S,onKeydown:_,onMousedown:B}),e.createSlots({_:2},[e.renderList(D.$slots,(A,O)=>({name:O,fn:e.withCtx(M=>[e.renderSlot(D.$slots,O,e.normalizeProps(e.guardReactiveProps(M)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),e.createVNode(e.unref(Nt),{ref_key:"tooltipRef",ref:d,visible:e.unref(b),"popper-class":[e.unref(s).e("popper"),D.popperClass],"popper-style":D.popperStyle,"popper-options":D.popperOptions,placement:e.unref(y),"fallback-placements":e.unref(h),effect:"light",pure:"",offset:D.offset,"show-arrow":D.showArrow},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(v.value)},null,4)]),content:e.withCtx(()=>{var A;return[e.createVNode(WM,{ref_key:"dropdownRef",ref:f,options:e.unref(k),disabled:e.unref(i),loading:D.loading,"content-id":e.unref(c),"aria-label":D.ariaLabel,onSelect:N,onClick:e.withModifiers((A=u.value)==null?void 0:A.focus,["stop"])},e.createSlots({_:2},[e.renderList(D.$slots,(O,M)=>({name:M,fn:e.withCtx(F=>[e.renderSlot(D.$slots,M,e.normalizeProps(e.guardReactiveProps(F)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var YM=a._export_sfc(qM,[["__file","mention.vue"]]);const GM=a.withInstall(YM),XM=a.buildProps({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),gv=Symbol("splitterRootContextKey");function JM(t){const n=e.ref(),{width:o,height:l}=a.useElementSize(n),r=e.computed(()=>t.value==="horizontal"?o.value:l.value);return{containerEl:n,containerSize:r}}function ic(t){return Number(t.slice(0,-1))/100}function cc(t){return Number(t.slice(0,-2))}function uc(t){return a.isString(t)&&t.endsWith("%")}function dc(t){return a.isString(t)&&t.endsWith("px")}function ZM(t,n){const o=e.computed(()=>t.value.map(c=>c.size)),l=e.computed(()=>t.value.length),r=e.ref([]);e.watch([o,l,n],()=>{var c;let u=[],d=0;for(let p=0;p<l.value;p+=1){const v=(c=t.value[p])==null?void 0:c.size;if(uc(v))u[p]=ic(v);else if(dc(v))u[p]=cc(v)/n.value;else if(v||v===0){const m=Number(v);Number.isNaN(m)||(u[p]=m/n.value)}else d+=1,u[p]=void 0}const f=u.reduce((p,v)=>p+(v||0),0);if(f>1||!d){const p=1/f;u=u.map(v=>v===void 0?0:v*p)}else{const p=(1-f)/d;u=u.map(v=>v===void 0?p:v)}r.value=u});const s=c=>c*n.value,i=e.computed(()=>r.value.map(s));return{percentSizes:r,pxSizes:i}}function QM(t,n,o,l){const r=g=>g*n.value||0;function s(g,C){return uc(g)?r(ic(g)):dc(g)?cc(g):g??C}const i=e.ref(0),c=e.ref(null);let u=[],d=a.NOOP;const f=e.computed(()=>t.value.map(g=>[g.min,g.max]));e.watch(l,()=>{if(i.value){const g=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(g)}});const p=g=>{i.value=0,c.value={index:g,confirmed:!1},u=o.value},v=(g,C)=>{var E,k;let b=null;if((!c.value||!c.value.confirmed)&&C!==0){if(C>0)b=g,c.value={index:g,confirmed:!0};else for(let R=g;R>=0;R-=1)if(u[R]>0){b=R,c.value={index:R,confirmed:!0};break}}const w=(k=b??((E=c.value)==null?void 0:E.index))!=null?k:g,S=[...u],_=w+1,P=s(f.value[w][0],0),B=s(f.value[_][0],0),T=s(f.value[w][1],n.value||0),N=s(f.value[_][1],n.value||0);let V=C;S[w]+V<P&&(V=P-S[w]),S[_]-V<B&&(V=S[_]-B),S[w]+V>T&&(V=T-S[w]),S[_]-V>N&&(V=S[_]-N),S[w]+=V,S[_]-=V,i.value=V,d=()=>{t.value.forEach((R,j)=>{R.size=S[j]}),d=a.NOOP},l.value||d()},m=()=>{l.value&&d(),i.value=0,c.value=null,u=[]},y=[];return{lazyOffset:i,onMoveStart:p,onMoving:v,onMoveEnd:m,movingIndex:c,onCollapse:(g,C)=>{y.length||y.push(...o.value);const E=o.value,k=C==="start"?g:g+1,b=C==="start"?g+1:g,w=E[k],S=E[b];if(w!==0&&S!==0)E[k]=0,E[b]+=w,y[g]=w;else{const _=w+S,P=y[g],B=_-P;E[b]=P,E[k]=B}t.value.forEach((_,P)=>{_.size=E[P]})}}}const ex=e.defineComponent({name:"ElSplitter"}),tx=e.defineComponent({...ex,props:XM,emits:["resizeStart","resize","resizeEnd","collapse"],setup(t,{emit:n}){const o=t,l=a.useNamespace("splitter"),r=e.toRef(o,"layout"),s=e.toRef(o,"lazy"),{containerEl:i,containerSize:c}=JM(r),{removeChild:u,children:d,addChild:f,ChildrenSorter:p}=Cr(e.getCurrentInstance(),"ElSplitterPanel");e.watch(d,()=>{d.value.forEach((B,T)=>{B.setIndex(T)})});const{percentSizes:v,pxSizes:m}=ZM(d,c),{lazyOffset:y,movingIndex:h,onMoveStart:g,onMoving:C,onMoveEnd:E,onCollapse:k}=QM(d,c,m,s),b=e.computed(()=>({[l.cssVarBlockName("bar-offset")]:s.value?`${y.value}px`:void 0})),w=B=>{g(B),n("resizeStart",B,m.value)},S=(B,T)=>{C(B,T),s.value||n("resize",B,m.value)},_=async B=>{E(),await e.nextTick(),n("resizeEnd",B,m.value)},P=(B,T)=>{k(B,T),n("collapse",B,T,m.value)};return e.provide(gv,e.reactive({panels:d,percentSizes:v,pxSizes:m,layout:r,lazy:s,movingIndex:h,containerSize:c,onMoveStart:w,onMoving:S,onMoveEnd:_,onCollapse:P,registerPanel:f,unregisterPanel:u})),(B,T)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerEl",ref:i,class:e.normalizeClass([e.unref(l).b(),e.unref(l).e(e.unref(r))]),style:e.normalizeStyle(e.unref(b))},[e.renderSlot(B.$slots,"default"),e.createVNode(e.unref(p)),e.createCommentVNode(" Prevent iframe touch events from breaking "),e.unref(h)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l).e("mask"),e.unref(l).e(`mask-${e.unref(r)}`)])},null,2)):e.createCommentVNode("v-if",!0)],6))}});var nx=a._export_sfc(tx,[["__file","splitter.vue"]]);function ox(t){return t&&a.isObject$1(t)?t:{start:!!t,end:!!t}}function bf(t,n,o,l){return!!(t!=null&&t.collapsible.end&&n>0||o!=null&&o.collapsible.start&&l===0&&n>0)}const lx=e.defineComponent({name:"ElSplitterBar"}),ax=e.defineComponent({...lx,props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(t,{emit:n}){const o=t,l=a.useNamespace("splitter-bar"),r=e.computed(()=>o.layout==="horizontal"),s=e.computed(()=>r.value?{width:0}:{height:0}),i=e.computed(()=>({width:r.value?"16px":"100%",height:r.value?"100%":"16px",cursor:o.resizable?r.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),c=e.computed(()=>{const C=l.e("dragger");return{[`${C}-horizontal`]:r.value,[`${C}-vertical`]:!r.value,[`${C}-active`]:!!u.value}}),u=e.ref(null),d=C=>{o.resizable&&(u.value=[C.pageX,C.pageY],n("moveStart",o.index),window.addEventListener("mouseup",m),window.addEventListener("mousemove",p))},f=C=>{if(o.resizable&&C.touches.length===1){C.preventDefault();const E=C.touches[0];u.value=[E.pageX,E.pageY],n("moveStart",o.index),window.addEventListener("touchend",y),window.addEventListener("touchmove",v)}},p=C=>{const{pageX:E,pageY:k}=C,b=E-u.value[0],w=k-u.value[1],S=r.value?b:w;n("moving",o.index,S)},v=C=>{if(C.touches.length===1){C.preventDefault();const E=C.touches[0],k=E.pageX-u.value[0],b=E.pageY-u.value[1],w=r.value?k:b;n("moving",o.index,w)}},m=()=>{u.value=null,window.removeEventListener("mouseup",m),window.removeEventListener("mousemove",p),n("moveEnd",o.index)},y=()=>{u.value=null,window.removeEventListener("touchend",y),window.removeEventListener("touchmove",v),n("moveEnd",o.index)},h=e.computed(()=>r.value?a.arrow_left_default:a.arrow_up_default),g=e.computed(()=>r.value?a.arrow_right_default:a.arrow_down_default);return(C,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l).b()]),style:e.normalizeStyle(e.unref(s))},[t.startCollapsible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l).e("collapse-icon"),e.unref(l).e(`${t.layout}-collapse-icon-start`)]),onClick:k=>n("collapse",t.index,"start")},[e.renderSlot(C.$slots,"start-collapsible",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(h)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(l).e("dragger"),e.unref(c),e.unref(l).is("disabled",!t.resizable),e.unref(l).is("lazy",t.resizable&&t.lazy)]),style:e.normalizeStyle(e.unref(i)),onMousedown:d,onTouchstart:f},null,38),t.endCollapsible?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(l).e("collapse-icon"),e.unref(l).e(`${t.layout}-collapse-icon-end`)]),onClick:k=>n("collapse",t.index,"end")},[e.renderSlot(C.$slots,"end-collapsible",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(g)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):e.createCommentVNode("v-if",!0)],6))}});var rx=a._export_sfc(ax,[["__file","split-bar.vue"]]);const sx=a.buildProps({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),yv="ElSplitterPanel",ix=e.defineComponent({name:yv}),cx=e.defineComponent({...ix,props:sx,emits:["update:size"],setup(t,{emit:n}){const o=t,l=a.useNamespace("splitter-panel"),r=e.inject(gv);r||a.throwError(yv,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:s,layout:i,lazy:c,containerSize:u,pxSizes:d}=e.toRefs(r),{registerPanel:f,unregisterPanel:p,onCollapse:v,onMoveEnd:m,onMoveStart:y,onMoving:h}=r,g=e.ref(),C=e.getCurrentInstance(),E=C.uid,k=e.ref(0),b=e.computed(()=>s.value[k.value]),w=D=>{k.value=D},S=e.computed(()=>{var D;return b.value&&(D=d.value[k.value])!=null?D:0}),_=e.computed(()=>{var D;return b.value&&(D=d.value[k.value+1])!=null?D:0}),P=e.computed(()=>b.value?s.value[k.value+1]:null),B=e.computed(()=>{var D;return P.value?o.resizable&&((D=P.value)==null?void 0:D.resizable)&&(S.value!==0||!o.min)&&(_.value!==0||!P.value.min):!1}),T=e.computed(()=>b.value?k.value!==s.value.length-1:!1),N=e.computed(()=>bf(b.value,S.value,P.value,_.value)),V=e.computed(()=>bf(P.value,_.value,b.value,S.value));function R(D){return uc(D)?ic(D)*u.value||0:dc(D)?cc(D):D??0}let j=!1;e.watch(()=>o.size,()=>{if(!j&&b.value){if(!u.value){b.value.size=o.size;return}const D=R(o.size),$=R(o.max),A=R(o.min),O=Math.min(Math.max(D,A||0),$||D);O!==D&&n("update:size",O),b.value.size=O}}),e.watch(()=>{var D;return(D=b.value)==null?void 0:D.size},D=>{D!==o.size&&(j=!0,n("update:size",D),e.nextTick(()=>j=!1))}),e.watch(()=>o.resizable,D=>{b.value&&(b.value.resizable=D)});const q=e.reactive({el:g.value,uid:E,getVnode:()=>C.vnode,setIndex:w,...o,collapsible:e.computed(()=>ox(o.collapsible))});return f(q),e.onBeforeUnmount(()=>p(q)),(D,$)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({ref_key:"panelEl",ref:g,class:[e.unref(l).b()],style:{flexBasis:`${e.unref(S)}px`}},D.$attrs),[e.renderSlot(D.$slots,"default")],16),e.unref(T)?(e.openBlock(),e.createBlock(rx,{key:0,index:k.value,layout:e.unref(i),lazy:e.unref(c),resizable:e.unref(B),"start-collapsible":e.unref(N),"end-collapsible":e.unref(V),onMoveStart:e.unref(y),onMoving:e.unref(h),onMoveEnd:e.unref(m),onCollapse:e.unref(v)},{"start-collapsible":e.withCtx(()=>[e.renderSlot(D.$slots,"start-collapsible")]),"end-collapsible":e.withCtx(()=>[e.renderSlot(D.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):e.createCommentVNode("v-if",!0)],64))}});var bv=a._export_sfc(cx,[["__file","split-panel.vue"]]);const ux=a.withInstall(nx,{SplitPanel:bv}),dx=a.withNoopInstall(bv);var fx=[Sg,Dg,jb,YD,Xb,oC,a.ElBadge,dC,fC,L.ElButton,L.ElButtonGroup,$C,RC,JC,ZC,Zk,Ap,lE,Jt,dk,_p,cE,NE,TE,Er,Gp,t0,n0,m0,h0,v0,g0,y0,Gw,cm,aS,rS,hS,gm,TS,uN,dN,fN,Tm,uT,dT,a.ElIcon,ET,Vm,L.ElInput,Dm,AT,HT,i1,c1,u1,d1,g1,i_,m_,w_,sp,Lm,Mp,wk,Ek,O_,z_,W_,Zt,ao,tr,K1,EB,DB,IB,JB,nP,Qm,pP,EP,wP,PP,zV,RV,qD,cI,uI,wn,Xi,R0,CI,TI,_I,Nt,LI,ur,rO,wO,LO,JO,gM,yM,BM,PM,MM,GM,ux,dx];const Ft="ElInfiniteScroll",px=50,mx=200,hx=0,vx={delay:{type:Number,default:mx},distance:{type:Number,default:hx},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},fc=(t,n)=>Object.entries(vx).reduce((o,[l,r])=>{var s,i;const{type:c,default:u}=r,d=t.getAttribute(`infinite-scroll-${l}`);let f=(i=(s=n[d])!=null?s:d)!=null?i:u;return f=f==="false"?!1:f,f=c(f),o[l]=Number.isNaN(f)?u:f,o},{}),Cv=t=>{const{observer:n}=t[Ft];n&&(n.disconnect(),delete t[Ft].observer)},gx=(t,n)=>{const{container:o,containerEl:l,instance:r,observer:s,lastScrollTop:i}=t[Ft],{disabled:c,distance:u}=fc(t,r),{clientHeight:d,scrollHeight:f,scrollTop:p}=l,v=p-i;if(t[Ft].lastScrollTop=p,s||c||v<0)return;let m=!1;if(o===t)m=f-(d+p)<=u;else{const{clientTop:y,scrollHeight:h}=t,g=cs(t,l);m=p+d>=g+y+h-u}m&&n.call(r)};function Qr(t,n){const{containerEl:o,instance:l}=t[Ft],{disabled:r}=fc(t,l);r||o.clientHeight===0||(o.scrollHeight<=o.clientHeight?n.call(l):Cv(t))}const yx={async mounted(t,n){const{instance:o,value:l}=n;L.useDeprecated({scope:Ft,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),a.isFunction(l)||a.throwError(Ft,"'v-infinite-scroll' binding value must be a function"),await e.nextTick();const{delay:r,immediate:s}=fc(t,o),i=L.getScrollContainer(t,!0),c=i===window?document.documentElement:i,u=to(gx.bind(null,t,l),r);if(i){if(t[Ft]={instance:o,container:i,containerEl:c,delay:r,cb:l,onScroll:u,lastScrollTop:c.scrollTop},s){const d=new MutationObserver(to(Qr.bind(null,t,l),px));t[Ft].observer=d,d.observe(t,{childList:!0,subtree:!0}),Qr(t,l)}i.addEventListener("scroll",u)}},unmounted(t){if(!t[Ft])return;const{container:n,onScroll:o}=t[Ft];n==null||n.removeEventListener("scroll",o),Cv(t)},async updated(t){if(!t[Ft])await e.nextTick();else{const{containerEl:n,cb:o,observer:l}=t[Ft];n.clientHeight&&l&&Qr(t,o)}}},Xs=yx;Xs.install=t=>{t.directive("InfiniteScroll",Xs)};const bx=Xs,kv=["primary","success","info","warning","error"],Cx=a.buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:a.iconPropType},id:{type:String,default:""},message:{type:a.definePropType([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:a.definePropType(Function),default:()=>{}},onClose:{type:a.definePropType(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...kv,""],default:""},zIndex:Number,closeIcon:{type:a.iconPropType,default:a.close_default}}),kx={destroy:()=>!0},Ex=e.defineComponent({name:"ElNotification"}),wx=e.defineComponent({...Ex,props:Cx,emits:kx,setup(t,{expose:n}){const o=t,{ns:l,zIndex:r}=a.useGlobalComponentSettings("notification"),{nextZIndex:s,currentZIndex:i}=r,c=e.ref(!1);let u;const d=e.computed(()=>{const E=o.type;return E&&a.TypeComponentsMap[o.type]?l.m(E):""}),f=e.computed(()=>o.type&&a.TypeComponentsMap[o.type]||o.icon),p=e.computed(()=>o.position.endsWith("right")?"right":"left"),v=e.computed(()=>o.position.startsWith("top")?"top":"bottom"),m=e.computed(()=>{var E;return{[v.value]:`${o.offset}px`,zIndex:(E=o.zIndex)!=null?E:i.value}});function y(){o.duration>0&&({stop:u}=a.useTimeoutFn(()=>{c.value&&g()},o.duration))}function h(){u==null||u()}function g(){c.value=!1}function C(E){switch(a.getEventCode(E)){case a.EVENT_CODE.delete:case a.EVENT_CODE.backspace:h();break;case a.EVENT_CODE.esc:c.value&&g();break;default:y();break}}return e.onMounted(()=>{y(),s(),c.value=!0}),a.useEventListener(document,"keydown",C),n({visible:c,close:g}),(E,k)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(l).b("fade"),onBeforeLeave:E.onClose,onAfterLeave:b=>E.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:E.id,class:e.normalizeClass([e.unref(l).b(),E.customClass,e.unref(p)]),style:e.normalizeStyle(e.unref(m)),role:"alert",onMouseenter:h,onMouseleave:y,onClick:E.onClick},[e.unref(f)?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass([e.unref(l).e("icon"),e.unref(d)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(f))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("group"))},[e.createElementVNode("h2",{class:e.normalizeClass(e.unref(l).e("title")),textContent:e.toDisplayString(E.title)},null,10,["textContent"]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("content")),style:e.normalizeStyle(E.title?void 0:{margin:0})},[e.renderSlot(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{innerHTML:E.message},null,8,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0},e.toDisplayString(E.message),1))])],6),[[e.vShow,E.message]]),E.showClose?(e.openBlock(),e.createBlock(e.unref(a.ElIcon),{key:0,class:e.normalizeClass(e.unref(l).e("closeBtn")),onClick:e.withModifiers(g,["stop"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.closeIcon)))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],2)],46,["id","onClick"]),[[e.vShow,c.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Sx=a._export_sfc(wx,[["__file","notification.vue"]]);const Lo={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},mr=16;let Nx=1;const co=function(t={},n){if(!a.isClient)return{close:()=>{}};(a.isString(t)||e.isVNode(t))&&(t={message:t});const o=t.position||"top-right";let l=t.offset||0;Lo[o].forEach(({vm:f})=>{var p;l+=(((p=f.el)==null?void 0:p.offsetHeight)||0)+mr}),l+=mr;const r=`notification_${Nx++}`,s=t.onClose,i={...t,offset:l,id:r,onClose:()=>{Tx(r,o,s)}};let c=document.body;a.isElement(t.appendTo)?c=t.appendTo:a.isString(t.appendTo)&&(c=document.querySelector(t.appendTo)),a.isElement(c)||(a.debugWarn("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),c=document.body);const u=document.createElement("div"),d=e.createVNode(Sx,i,a.isFunction(i.message)?i.message:e.isVNode(i.message)?()=>i.message:null);return d.appContext=a.isUndefined(n)?co._context:n,d.props.onDestroy=()=>{e.render(null,u)},e.render(d,u),Lo[o].push({vm:d}),c.appendChild(u.firstElementChild),{close:()=>{d.component.exposed.visible.value=!1}}};kv.forEach(t=>{co[t]=(n={},o)=>((a.isString(n)||e.isVNode(n))&&(n={message:n}),co({...n,type:t},o))});function Tx(t,n,o){const l=Lo[n],r=l.findIndex(({vm:d})=>{var f;return((f=d.component)==null?void 0:f.props.id)===t});if(r===-1)return;const{vm:s}=l[r];if(!s)return;o==null||o(s);const i=s.el.offsetHeight,c=n.split("-")[0];l.splice(r,1);const u=l.length;if(!(u<1))for(let d=r;d<u;d++){const{el:f,component:p}=l[d].vm,v=Number.parseInt(f.style[c],10)-i-mr;p.props.offset=v}}function _x(){for(const t of Object.values(Lo))t.forEach(({vm:n})=>{n.component.exposed.visible.value=!1})}function Bx(t="top-right"){var n,o,l,r;let s=((l=(o=(n=Lo[t][0])==null?void 0:n.vm.component)==null?void 0:o.props)==null?void 0:l.offset)||0;for(const{vm:i}of Lo[t])i.component.props.offset=s,s+=(((r=i.el)==null?void 0:r.offsetHeight)||0)+mr}co.closeAll=_x;co.updateOffsets=Bx;co._context=null;const Px=a.withInstallFunction(co,"$notify");var Vx=[bx,No.ElLoading,a.ElMessage,L.ElMessageBox,Px,Rm],Dx=yg([...fx,...Vx]);const Ix={key:0,class:"dialog-overlay"},Ox={class:"dialog-content"},$x={class:"dialog"},Mx={class:"dialog-value"},xx={class:"dialog-item"},Ax={class:"dialog-child"},zx={class:"dialog-actions"},Rx={__name:"index",setup(t,{expose:n}){const o=e.ref(!1),l=e.ref(null);e.ref(!0);const r=e.ref([]),s=e.ref({}),i=e.ref([{label:"保留",value:"保留"},{label:"替换",value:"替换"}]),c=f=>{var v;o.value=!0,r.value=Object.keys(f);let p={};return(v=Object.keys(f))==null||v.forEach(m=>{p[m]="替换"}),s.value=p,new Promise(m=>{l.value=m})},u=(f,p)=>{let v=a.cloneDeep(s.value);v[f]=p,s.value=v},d=()=>{var f;o.value=!1,(f=l.value)==null||f.call(l,a.cloneDeep(s.value))};return e.onUnmounted(()=>{Kx()}),n({show:c}),(f,p)=>o.value?(e.openBlock(),e.createElementBlock("div",Ix,[e.createElementVNode("div",Ox,[e.createElementVNode("div",$x,[p[1]||(p[1]=e.createElementVNode("div",{class:"dialog-title"},e.toDisplayString("冲突页面选择"),-1)),e.createElementVNode("div",Mx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,v=>(e.openBlock(),e.createElementBlock("div",xx,[e.createElementVNode("div",Ax,[e.createElementVNode("div",null,e.toDisplayString(v),1),e.createElementVNode("div",null,[e.createVNode(No.ssRadio,{content:i.value,modelValue:s.value[v],"onUpdate:modelValue":m=>s.value[v]=m,onChange:m=>u(v,m)},null,8,["content","modelValue","onUpdate:modelValue","onChange"])])])]))),256))])]),e.createElementVNode("div",zx,[e.createVNode(e.unref(Bv._sfc_main),{class:"menu-button click-button",onClickTrigger:p[0]||(p[0]=v=>d()),modelValue:"继续"})])])])):e.createCommentVNode("",!0)}},Lx=Pv._export_sfc(Rx,[["__scopeId","data-v-4033db15"]]);let qa=null,ut="$R";const Cf=L.useMenuState();let Il=null;const Fx=()=>{const t=e.createApp(Lx);t.use(Dx);const n=document.createElement("div");return document.body.appendChild(n),t.mount(n)},kf=(t,n)=>{var l;return(l=me.tableEveryContents(a.cloneDeep(t)))==null?void 0:l.map(r=>{var s,i,c,u,d;if(t.comp==="Table"){let f={comp:(s=me.tableToStruct(a.cloneDeep(r)))==null?void 0:s.comp,compData:(i=me.tableToStruct(a.cloneDeep(r)))==null?void 0:i.compData,isShow:r==null?void 0:r.isShow};return(u=(c=Object.keys(r))==null?void 0:c.filter(p=>p==null?void 0:p.includes("name")))==null||u.forEach(p=>{var v;f[p]=(v=me.tableToStruct(a.cloneDeep(r)))==null?void 0:v[p]}),{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structure",version:1,parentTable:(r==null?void 0:r.parentTableContents)??"",parentPageKey:n==null?void 0:n.parentPath},value:{pageData:f}}}else if((r==null?void 0:r.key)==="extraButton"){if(((d=Object.values(r==null?void 0:r.value))==null?void 0:d.length)!==0)return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structureMethod",version:1},value:{pageData:r.value}}}else return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structure",version:1,parentTable:(r==null?void 0:r.parentTableContents)??"",parentPageKey:n==null?void 0:n.parentPath},value:{pageData:r}}})},Kx=()=>{Il==null||Il(!0),qa=null,Il=null},Hx=async t=>(qa||(qa=Fx()),await new Promise(async n=>{Il=n;const o=await qa.show(t);n(o)})),jx=async t=>{var C,E,k,b,w,S,_,P,B;let n=[],o=[],l=await a.getInsofDataApi({key:{type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((C=l==null?void 0:l.data)==null?void 0:C.code)!==200)return;let r=new WeakMap,s=(k=(E=l==null?void 0:l.data)==null?void 0:E.result)==null?void 0:k.filter(T=>{var N;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"});(s==null?void 0:s.length)===0||s==null||s.forEach(T=>{r[T.key.pageKey]={id:T==null?void 0:T.id,contents:T==null?void 0:T.value}});const i=new WeakMap;t==null||t.forEach(T=>{r[T.name]&&(i[T.name]=r[T.name])});let c=[],u=[];if(((b=Object.keys(i))==null?void 0:b.length)>0){Cf.setImportLoading(!1);const T=await Hx(i);for(let N in T)T[N]==="保留"?c.push(N):u.push(N);Cf.setImportLoading(!0)}let d=a.cloneDeep(t);if((u==null?void 0:u.length)>0){let T=[];const N=u==null?void 0:u.map(async V=>{var j,q,D,$;const R=await a.getInsofDataApi({key:{pageKey:V,systemKey:sessionStorage.getItem("systemKey")}});((q=(j=R==null?void 0:R.data)==null?void 0:j.result)==null?void 0:q.length)>0&&(($=(D=R==null?void 0:R.data)==null?void 0:D.result)==null||$.forEach(A=>{T.push(A==null?void 0:A.id)}))});await Promise.all(N),await a.batchDeleteInsofDataApi({ids:T})}(c==null?void 0:c.length)>0&&(d=(w=a.cloneDeep(d))==null?void 0:w.filter(T=>!c.includes(T==null?void 0:T.name)));let f=[];d==null||d.map(async T=>{var N;await((N=T.compData)==null?void 0:N.forEach(async V=>{var j;const R=(j=a.cloneDeep(V==null?void 0:V.contents))==null?void 0:j.map(q=>{if(!Array.isArray(q)){const D=kf(a.cloneDeep(q),T);return D==null?void 0:D[0]}});R==null||R.forEach(q=>{f.push(q)})}))}),(f==null?void 0:f.length)>0&&await a.batchAddInsofDataApi({dataList:f});let p=new WeakMap;(_=(S=(await a.getPageInsofDataApi({systemKey:sessionStorage.getItem("systemKey"),type:"data,structure,structureMethod"})).data.result)==null?void 0:S.filter(T=>{var N,V;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"&&((V=T==null?void 0:T.key)==null?void 0:V.pageKey)!=="secret"}))==null||_.forEach(T=>{p[T.key.pageKey]?p[T.key.pageKey]=[...p[T.key.pageKey],T]:p[T.key.pageKey]=[T]});let m=[];await(d==null?void 0:d.map(async T=>{var N;(T==null?void 0:T.processMainPath)!==""&&m.push({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:T.name,type:"related"},value:{pageData:T==null?void 0:T.processMainPath}}),await((N=T.compData)==null?void 0:N.forEach(async V=>{var j,q,D;const R=(j=a.cloneDeep(V==null?void 0:V.contents))==null?void 0:j.map($=>{if(!Array.isArray($)){const A=kf(a.cloneDeep($),T);return A==null?void 0:A[0]}});o.push({parentKey:me.getParentKey((q=a.cloneDeep(T))==null?void 0:q.name),content:R}),(D=V.contents)==null||D.map(async $=>{var A;Array.isArray($)||(A=me.tableEveryContents(a.cloneDeep($)))==null||A.forEach(async O=>{var M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z,J,le,oe,ee,U,se,z,ne,_e,ye,Pe,Ve,Ae,ue,we,Me,Ie,pe,ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe;if($.comp==="Table"){let ge={comp:(M=me.tableToStruct(a.cloneDeep(O)))==null?void 0:M.comp,compData:(F=me.tableToStruct(a.cloneDeep(O)))==null?void 0:F.compData,isShow:O==null?void 0:O.isShow};(K=(x=Object.keys(O))==null?void 0:x.filter(Te=>Te==null?void 0:Te.includes("name")))==null||K.forEach(Te=>{var et;ge[Te]=(et=me.tableToStruct(a.cloneDeep(O)))==null?void 0:et[Te]});let Le=[];ge!=null&&ge.name1?Le=(Y=p==null?void 0:p[T.name])==null?void 0:Y.filter(Te=>{var et,nt,He,ot,dt,at,Tt;return((et=Te==null?void 0:Te.key)==null?void 0:et.type)==="structure"&&((He=(nt=Te==null?void 0:Te.value)==null?void 0:nt.pageData)==null?void 0:He.name)===(ge==null?void 0:ge.name)&&((dt=(ot=Te==null?void 0:Te.value)==null?void 0:ot.pageData)==null?void 0:dt.name0)===(ge==null?void 0:ge.name0)&&((Tt=(at=Te==null?void 0:Te.value)==null?void 0:at.pageData)==null?void 0:Tt.name1)===(ge==null?void 0:ge.name1)}):ge!=null&&ge.name0?Le=(W=p==null?void 0:p[T.name])==null?void 0:W.filter(Te=>{var et,nt,He,ot,dt;return((et=Te==null?void 0:Te.key)==null?void 0:et.type)==="structure"&&((He=(nt=Te==null?void 0:Te.value)==null?void 0:nt.pageData)==null?void 0:He.name)===(ge==null?void 0:ge.name)&&((dt=(ot=Te==null?void 0:Te.value)==null?void 0:ot.pageData)==null?void 0:dt.name0)===(ge==null?void 0:ge.name0)}):Le=(te=p==null?void 0:p[T.name])==null?void 0:te.filter(Te=>{var et,nt,He;return((et=Te==null?void 0:Te.key)==null?void 0:et.type)==="structure"&&((He=(nt=Te==null?void 0:Te.value)==null?void 0:nt.pageData)==null?void 0:He.name)===(ge==null?void 0:ge.name)});const Qe=(re=Le==null?void 0:Le[0])==null?void 0:re.id;if(((G=(X=(Q=ge==null?void 0:ge.compData)==null?void 0:Q.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:X.contents)==null?void 0:G.length)>2&&((Z=(H=(I=ge==null?void 0:ge.compData)==null?void 0:I.find(Te=>(Te==null?void 0:Te.key)==="header"))==null?void 0:H.contents)!=null&&Z.find(Te=>Te==null?void 0:Te.columnPath)||((oe=(le=(J=ge==null?void 0:ge.compData)==null?void 0:J.find(Te=>(Te==null?void 0:Te.key)==="relatedFilter"))==null?void 0:le.contents)==null?void 0:oe.length)>0)){let Te=(se=(U=(ee=ge==null?void 0:ge.compData)==null?void 0:ee.find(Xe=>(Xe==null?void 0:Xe.key)==="header"))==null?void 0:U.contents)==null?void 0:se.find(Xe=>Xe==null?void 0:Xe.columnPath),et=(_e=(ne=(z=Te==null?void 0:Te.columnPath)==null?void 0:z.replace("[",ut))==null?void 0:ne.split(ut))==null?void 0:_e[0],nt=Te!=null&&Te.columnPath&&(Te==null?void 0:Te.columnPath)!==""?(Ve=(Pe=(ye=Te==null?void 0:Te.columnPath)==null?void 0:ye.replace("[",ut))==null?void 0:Pe.split(ut))==null?void 0:Ve[1]:(Ie=(Me=(we=(ue=(Ae=ge==null?void 0:ge.compData)==null?void 0:Ae.find(Xe=>(Xe==null?void 0:Xe.key)==="relatedFilter"))==null?void 0:ue.contents)==null?void 0:we.replace("[",ut))==null?void 0:Me.split(ut))==null?void 0:Ie[1],He=(ke=(pe=nt==null?void 0:nt.replace("[",ut))==null?void 0:pe.split(ut))==null?void 0:ke[0],ot=(ve=(ae=nt==null?void 0:nt.replace("[",ut))==null?void 0:ae.split(ut))==null?void 0:ve[1];ot=(be=(ie=(Ce=(ce=(Se=ot==null?void 0:ot.replace("]",ut))==null?void 0:Se.split(ut))==null?void 0:ce[0])==null?void 0:Ce.replaceAll("'",""))==null?void 0:ie.split(","))==null?void 0:be.map(Xe=>({label:Xe,prop:Xe}));let dt="";(He==null?void 0:He[(He==null?void 0:He.length)-1])===":"&&(He=He==null?void 0:He.slice(0,(He==null?void 0:He.length)-1)),dt=(Ye=(Re=He==null?void 0:He.split(":"))==null?void 0:Re[((Ne=He==null?void 0:He.split(":"))==null?void 0:Ne.length)-1])==null?void 0:Ye.replaceAll("'","");let at=(Ze=(tt=p==null?void 0:p[et])==null?void 0:tt.find(Xe=>{var We,Et;return((Et=(We=Xe==null?void 0:Xe.value)==null?void 0:We.pageData)==null?void 0:Et.name)===dt}))==null?void 0:Ze.id;const Tt=(he=me.tableToContents(a.cloneDeep(O)))==null?void 0:he.map(Xe=>{var Et,Vt,bt,de,Be,ze,Ue,Ge,it,rt,mt,ht,wt,fe;let We=(bt=(Vt=(Et=me.tableToStruct(a.cloneDeep(O)))==null?void 0:Et.compData)==null?void 0:Vt.find(Ee=>(Ee==null?void 0:Ee.key)==="header"))==null?void 0:bt.contents;if(((de=We==null?void 0:We.find(Ee=>Ee==null?void 0:Ee.columnPath))==null?void 0:de.columnPathIndex)==="")We=[...ot,...We];else{let Ee=((Be=We==null?void 0:We.find(De=>De==null?void 0:De.columnPath))==null?void 0:Be.columnPathIndex)!==""&&((ze=We==null?void 0:We.find(De=>De==null?void 0:De.columnPath))!=null&&ze.columnPathIndex)?parseInt((Ue=We==null?void 0:We.find(De=>De==null?void 0:De.columnPath))==null?void 0:Ue.columnPathIndex):0,Oe=We.slice(Ee,(We==null?void 0:We.length)-1)??[];We=[...We.slice(0,Ee),...ot],We=[...We,...Oe]}if((Xe==null?void 0:Xe.length)!==0)return(ht=(mt=(rt=(it=(Ge=We==null?void 0:We.find(Ee=>Ee==null?void 0:Ee.columnPath))==null?void 0:Ge.columnPath)==null?void 0:it.split("@Sync"))==null?void 0:rt[1])==null?void 0:mt.toUpperCase())!=null&&ht.includes("NO")?{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:T.name,type:"data",tableId:Qe},value:{tableData:me.getValueToObjectValue(Xe,(wt=me.getColumnContents(We))==null?void 0:wt.filter(Ee=>Ee&&Ee!=="操作"))}}:{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:T.name,type:"data",tableId:Qe,parentId:at},value:{tableData:me.getValueToObjectValue(Xe,(fe=me.getColumnContents(We))==null?void 0:fe.filter(Ee=>Ee&&Ee!=="操作"))}}});m=[...m,...Tt]}else{const Te=(xe=me.tableToContents(a.cloneDeep(O)))==null?void 0:xe.map(et=>{var nt,He,ot,dt;if((et==null?void 0:et.length)!==0)return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:T.name,type:"data",tableId:Qe},value:{tableData:me.getValueToObjectValue(et,(dt=me.getColumnContents((ot=(He=(nt=me.tableToStruct(a.cloneDeep(O)))==null?void 0:nt.compData)==null?void 0:He.find(at=>(at==null?void 0:at.key)==="header"))==null?void 0:ot.contents))==null?void 0:dt.filter(at=>at!=="操作"))}}});m=[...m,...Te]}}})})}))})),(m==null?void 0:m.length)>0&&await a.batchAddInsofDataApi({dataList:m});let y=new WeakMap;(B=(P=(await a.getPageInsofDataApi({systemKey:sessionStorage.getItem("systemKey"),type:"data,structure,structureMethod"})).data.result)==null?void 0:P.filter(T=>{var N,V;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"&&((V=T==null?void 0:T.key)==null?void 0:V.pageKey)!=="secret"}))==null||B.forEach(T=>{y[T.key.pageKey]?y[T.key.pageKey]=[...y[T.key.pageKey],T]:y[T.key.pageKey]=[T]});let g=[];await(d==null?void 0:d.map(async T=>{var N;await((N=T.compData)==null?void 0:N.forEach(async V=>{var R;(R=V.contents)==null||R.map(async j=>{var q;Array.isArray(j)||(q=me.tableEveryContents(a.cloneDeep(j)))==null||q.forEach(async D=>{var $,A,O,M,F,x,K,Y,W;if(j.comp==="Table"){let te={comp:($=me.tableToStruct(a.cloneDeep(D)))==null?void 0:$.comp,compData:(A=me.tableToStruct(a.cloneDeep(D)))==null?void 0:A.compData,isShow:D==null?void 0:D.isShow};(M=(O=Object.keys(D))==null?void 0:O.filter(X=>X==null?void 0:X.includes("name")))==null||M.forEach(X=>{var G;te[X]=(G=me.tableToStruct(a.cloneDeep(D)))==null?void 0:G[X]});let re=[];te!=null&&te.name1?re=(F=p==null?void 0:p[T.name])==null?void 0:F.filter(X=>{var G,I,H,Z,J,le,oe;return((G=X==null?void 0:X.key)==null?void 0:G.type)==="structure"&&((H=(I=X==null?void 0:X.value)==null?void 0:I.pageData)==null?void 0:H.name)===(te==null?void 0:te.name)&&((J=(Z=X==null?void 0:X.value)==null?void 0:Z.pageData)==null?void 0:J.name0)===(te==null?void 0:te.name0)&&((oe=(le=X==null?void 0:X.value)==null?void 0:le.pageData)==null?void 0:oe.name1)===(te==null?void 0:te.name1)}):te!=null&&te.name0?re=(x=p==null?void 0:p[T.name])==null?void 0:x.filter(X=>{var G,I,H,Z,J;return((G=X==null?void 0:X.key)==null?void 0:G.type)==="structure"&&((H=(I=X==null?void 0:X.value)==null?void 0:I.pageData)==null?void 0:H.name)===(te==null?void 0:te.name)&&((J=(Z=X==null?void 0:X.value)==null?void 0:Z.pageData)==null?void 0:J.name0)===(te==null?void 0:te.name0)}):re=(K=p==null?void 0:p[T.name])==null?void 0:K.filter(X=>{var G,I,H;return((G=X==null?void 0:X.key)==null?void 0:G.type)==="structure"&&((H=(I=X==null?void 0:X.value)==null?void 0:I.pageData)==null?void 0:H.name)===(te==null?void 0:te.name)});const Q=(Y=re==null?void 0:re[0])==null?void 0:Y.id;await((W=me.tableToContents(a.cloneDeep(D)))==null?void 0:W.map(async X=>{var Z,J;let G;(X==null?void 0:X.length)!==0&&(G=(Z=y==null?void 0:y[T.name])==null?void 0:Z.filter(le=>{var oe,ee;return((oe=le==null?void 0:le.key)==null?void 0:oe.tableId)===Q&&((ee=le==null?void 0:le.key)==null?void 0:ee.type)==="data"}));const I=(J=p==null?void 0:p[T.name])==null?void 0:J.filter(le=>{var oe,ee;return((oe=le==null?void 0:le.key)==null?void 0:oe.tableId)===Q&&((ee=le==null?void 0:le.key)==null?void 0:ee.type)==="structure"});return await(I==null?void 0:I.map(async le=>{var oe,ee,U;g.push({id:le.id,key:{systemKey:le.key.systemKey,pageKey:le.key.pageKey,type:le.key.type,version:le.key.version,parentTable:le.key.parentTable===""?"":(U=(ee=(oe=G==null?void 0:G.data)==null?void 0:oe.result)==null?void 0:ee[0])==null?void 0:U.id}})}))}))}})})}))})),(g==null?void 0:g.length)>0&&await a.batchUpdateInsofDataApi({dataList:g}),await Promise.all(n),await me.getParentConstruct(o)},Ev=(t,n,o="")=>{var c,u,d,f,p,v,m,y,h,g,C,E,k,b,w,S,_,P,B;let l=(u=(c=t==null?void 0:t.replace("[",ut))==null?void 0:c.split(ut))==null?void 0:u[0],r=o,s=(m=(v=(p=(f=(d=t==null?void 0:t.replace("[",ut))==null?void 0:d.split(ut))==null?void 0:f[1])==null?void 0:p.replace("[",ut))==null?void 0:v.split(ut))==null?void 0:m[0];s=(h=s==null?void 0:s.split(":")[((y=s==null?void 0:s.split(":"))==null?void 0:y.length)-2])==null?void 0:h.replaceAll("'",""),((g=t==null?void 0:t.split("("))==null?void 0:g.length)>1&&(r=r===""?r+((C=t==null?void 0:t.split("("))==null?void 0:C[1]):r+","+((E=t==null?void 0:t.split("("))==null?void 0:E[1]));let i=(P=(_=(S=(w=(b=(k=n==null?void 0:n[l])==null?void 0:k.find(T=>{var N,V;return((V=(N=T==null?void 0:T.value)==null?void 0:N.pageData)==null?void 0:V.name)===s}))==null?void 0:b.value)==null?void 0:w.pageData)==null?void 0:S.compData)==null?void 0:_.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:P.contents;if(i!=null&&i.find(T=>T==null?void 0:T.columnPath)){let T=Ev((B=i==null?void 0:i.find(N=>N==null?void 0:N.columnPath))==null?void 0:B.columnPath,n,r);return{pageKey:T==null?void 0:T.pageKey,filter:T==null?void 0:T.filter}}else return{pageKey:l,filter:r}},Wx=async t=>{var s,i;let n=[],o=new WeakMap;(i=(s=(await a.getPageInsofDataApi({systemKey:sessionStorage.getItem("systemKey"),type:"data,structure,structureMethod"})).data.result)==null?void 0:s.filter(c=>{var u,d;return((u=c==null?void 0:c.key)==null?void 0:u.pageKey)!=="menu"&&((d=c==null?void 0:c.key)==null?void 0:d.pageKey)!=="secret"}))==null||i.forEach(c=>{o[c.key.pageKey]?o[c.key.pageKey]=[...o[c.key.pageKey],c]:o[c.key.pageKey]=[c]});let r=a.cloneDeep(t);r==null||r.map(async c=>{var u;await((u=c.compData)==null?void 0:u.forEach(async d=>{var f;(f=d.contents)==null||f.map(async p=>{var v;Array.isArray(p)||(v=me.tableEveryContents(a.cloneDeep(p)))==null||v.forEach(async m=>{var y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A,O,M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z;if(p.comp==="Table"){let J={comp:(y=me.tableToStruct(a.cloneDeep(m)))==null?void 0:y.comp,compData:(h=me.tableToStruct(a.cloneDeep(m)))==null?void 0:h.compData,isShow:m==null?void 0:m.isShow};(C=(g=Object.keys(m))==null?void 0:g.filter(U=>U==null?void 0:U.includes("name")))==null||C.forEach(U=>{var se;J[U]=(se=me.tableToStruct(a.cloneDeep(m)))==null?void 0:se[U]});const le=(E=o==null?void 0:o[c.name])==null?void 0:E.filter(U=>{var se,z,ne;return((se=U==null?void 0:U.key)==null?void 0:se.type)==="structure"&&((ne=(z=U==null?void 0:U.value)==null?void 0:z.pageData)==null?void 0:ne.name)===(J==null?void 0:J.name)}),oe=(k=le==null?void 0:le[0])==null?void 0:k.id;let ee=[];if(((S=(w=(b=J==null?void 0:J.compData)==null?void 0:b.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:w.contents)==null?void 0:S.length)>2&&((B=(P=(_=J==null?void 0:J.compData)==null?void 0:_.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:P.contents)!=null&&B.find(U=>U==null?void 0:U.columnPath))){let U=(V=(N=(T=J==null?void 0:J.compData)==null?void 0:T.find(pe=>(pe==null?void 0:pe.key)==="header"))==null?void 0:N.contents)==null?void 0:V.find(pe=>pe==null?void 0:pe.columnPath),se=Ev(U==null?void 0:U.columnPath,o),z=se==null?void 0:se.pageKey,ne=(R=se==null?void 0:se.filter)==null?void 0:R.replaceAll(")",""),_e=(D=(q=(j=U==null?void 0:U.columnPath)==null?void 0:j.replace("[",ut))==null?void 0:q.split(ut))==null?void 0:D[1],ye=(A=($=_e==null?void 0:_e.replace("[",ut))==null?void 0:$.split(ut))==null?void 0:A[0],Pe=(M=(O=_e==null?void 0:_e.replace("[",ut))==null?void 0:O.split(ut))==null?void 0:M[1];Pe=(W=(Y=(K=(x=(F=Pe==null?void 0:Pe.replace("]",ut))==null?void 0:F.split(ut))==null?void 0:x[0])==null?void 0:K.replaceAll("'",""))==null?void 0:Y.split(","))==null?void 0:W.map(pe=>({label:pe,prop:pe}));let Ve="";(ye==null?void 0:ye[(ye==null?void 0:ye.length)-1])===":"&&(ye=ye==null?void 0:ye.slice(0,(ye==null?void 0:ye.length)-1)),Ve=(Q=(re=ye==null?void 0:ye.split(":"))==null?void 0:re[((te=ye==null?void 0:ye.split(":"))==null?void 0:te.length)-1])==null?void 0:Q.replaceAll("'","");let Ae=(G=(X=o==null?void 0:o[z])==null?void 0:X.find(pe=>{var ke,ae;return((ae=(ke=pe==null?void 0:pe.value)==null?void 0:ke.pageData)==null?void 0:ae.name)===Ve}))==null?void 0:G.id,ue=((I=o==null?void 0:o[z])==null?void 0:I.filter(pe=>{var ke;return((ke=pe==null?void 0:pe.key)==null?void 0:ke.tableId)===Ae}))??[],we=ue,Me=(H=o==null?void 0:o[c.name])==null?void 0:H.filter(pe=>{var ke;return((ke=pe==null?void 0:pe.key)==null?void 0:ke.tableId)===oe}),Ie=await((Z=me.tableToContents(a.cloneDeep(m)))==null?void 0:Z.map(async pe=>{var ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe,ge,Le,Qe,Te,et,nt,He,ot,dt,at,Tt,Xe,We,Et,Vt,bt,de,Be,ze,Ue,Ge,it,rt,mt,ht,wt,fe,Ee,Oe,De,st,vt,Ot,At,ln,yn,an,rn,sn,Bn,Pn,Vn,Dn,In,On,$n;if((pe==null?void 0:pe.length)!==0){let lt=(ve=(ae=(ke=me.tableToStruct(a.cloneDeep(m)))==null?void 0:ke.compData)==null?void 0:ae.find(Fe=>(Fe==null?void 0:Fe.key)==="header"))==null?void 0:ve.contents;if(((Se=lt==null?void 0:lt.find(Fe=>Fe==null?void 0:Fe.columnPath))==null?void 0:Se.columnPathIndex)==="")lt=[...Pe,...lt];else{let Fe=((ce=lt==null?void 0:lt.find(ft=>ft==null?void 0:ft.columnPath))==null?void 0:ce.columnPathIndex)!==""&&((Ce=lt==null?void 0:lt.find(ft=>ft==null?void 0:ft.columnPath))!=null&&Ce.columnPathIndex)?parseInt((ie=lt==null?void 0:lt.find(ft=>ft==null?void 0:ft.columnPath))==null?void 0:ie.columnPathIndex):0,pt=lt.slice(Fe,(lt==null?void 0:lt.length)-1)??[];lt=[...lt.slice(0,Fe),...Pe],lt=[...lt,...pt]}let zt=me.getValueToObjectValue(pe,(be=me.getColumnContents(lt))==null?void 0:be.filter(Fe=>Fe!=="操作")),Dt=(tt=(Ye=(Re=(Ne=m==null?void 0:m.compData)==null?void 0:Ne.find(Fe=>(Fe==null?void 0:Fe.key)==="header"))==null?void 0:Re.contents)==null?void 0:Ye.find(Fe=>Fe==null?void 0:Fe.columnPath))==null?void 0:tt.columnPath,Mn=(Ze=Me==null?void 0:Me.find(Fe=>{var pt;return me.sameKeys(zt,(pt=Fe==null?void 0:Fe.value)==null?void 0:pt.tableData)}))==null?void 0:Ze.id;Dt=(Te=(Qe=(Le=(ge=(xe=Dt==null?void 0:Dt.split("["))==null?void 0:xe[((he=Dt==null?void 0:Dt.split("["))==null?void 0:he.length)-1])==null?void 0:ge.split("]"))==null?void 0:Le[0])==null?void 0:Qe.replaceAll("'",""))==null?void 0:Te.split(",");let cn=(et=ue==null?void 0:ue.find(Fe=>{var pt;return me.sameKeys(zt,(pt=Fe==null?void 0:Fe.value)==null?void 0:pt.tableData,Dt)}))==null?void 0:et.id,Wn=(nt=we==null?void 0:we.find(Fe=>{var pt;return me.sameKeys(zt,(pt=Fe==null?void 0:Fe.value)==null?void 0:pt.tableData,Dt)}))==null?void 0:nt.id,bn=(Xe=(Tt=(at=(dt=(ot=(He=lt==null?void 0:lt.find(Fe=>Fe==null?void 0:Fe.columnPath))==null?void 0:He.columnPath)==null?void 0:ot.split("("))==null?void 0:dt[1])==null?void 0:at.split(")"))==null?void 0:Tt[0])==null?void 0:Xe.split(",");if(((bt=(Vt=(Et=(We=bn==null?void 0:bn.find(Fe=>{var pt;return(pt=Fe==null?void 0:Fe.toUpperCase())==null?void 0:pt.includes("SYNC")}))==null?void 0:We.split(":"))==null?void 0:Et[1])==null?void 0:Vt.trim())==null?void 0:bt.toUpperCase())!=="NO"){if(!cn&&!Wn){let Fe=(mt=(rt=(it=(Ge=(Ue=(de=U==null?void 0:U.columnPath)==null?void 0:de.split("["))==null?void 0:Ue[((ze=(Be=U==null?void 0:U.columnPath)==null?void 0:Be.split("["))==null?void 0:ze.length)-1])==null?void 0:Ge.split("]"))==null?void 0:it[0])==null?void 0:rt.replaceAll("'",""))==null?void 0:mt.split(","),pt=(Ee=(fe=(wt=(ht=ne==null?void 0:ne.split(","))==null?void 0:ht.filter(Rt=>Rt==null?void 0:Rt.includes("@Condition")))==null?void 0:wt[0])==null?void 0:fe.split("&&"))==null?void 0:Ee[0],ft=(De=(Oe=pt==null?void 0:pt.split(":"))==null?void 0:Oe[1])==null?void 0:De.replaceAll("'",""),un={};for(let Rt in zt)Fe!=null&&Fe.find(qn=>qn===Rt)&&(un[Rt]=zt==null?void 0:zt[Rt]);un[(st=ft==null?void 0:ft.split("="))==null?void 0:st[0]]=(vt=ft==null?void 0:ft.split("="))==null?void 0:vt[1];let Un={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:z,type:"data",tableId:(At=(Ot=ue==null?void 0:ue[0])==null?void 0:Ot.key)==null?void 0:At.tableId,createUserId:(yn=(ln=ue==null?void 0:ue[0])==null?void 0:ln.key)==null?void 0:yn.createUserId,createUserLayer:(rn=(an=ue==null?void 0:ue[0])==null?void 0:an.key)==null?void 0:rn.createUserLayer},value:{tableData:un}},jt=await a.createInsofDataApi(Un);ue.push({id:(sn=jt==null?void 0:jt.data)==null?void 0:sn.result,key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:z,type:"data",tableId:(Pn=(Bn=ue==null?void 0:ue[0])==null?void 0:Bn.key)==null?void 0:Pn.tableId,createUserId:(Dn=(Vn=ue==null?void 0:ue[0])==null?void 0:Vn.key)==null?void 0:Dn.createUserId,createUserLayer:(On=(In=ue==null?void 0:ue[0])==null?void 0:In.key)==null?void 0:On.createUserLayer},value:{tableData:un}}),cn=($n=jt==null?void 0:jt.data)==null?void 0:$n.result}if(cn&&Mn)return{id:Mn,key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:c.name,type:"data",tableId:oe,parentId:cn}}}}}));Ie=await Promise.all(Ie),Ie=Ie==null?void 0:Ie.filter(pe=>pe),Ie&&(ee=[...ee,...Ie])}if((ee==null?void 0:ee.length)>0){const U=await a.batchUpdateInsofDataApi({dataList:ee});n.push(U)}}})})}))}),await Promise.all(n)},Tl=t=>{var l;let n="",o=[];return(l=a.cloneDeep(t).split("/"))==null||l.forEach((r,s)=>{s!==a.cloneDeep(t).split("/").length-1&&o.push(r)}),o==null||o.forEach(r=>{n=n===""?n+r:n+"/"+r}),n},Ef=(t,n)=>{var r;let o=(r=t==null?void 0:t.filter(s=>(s==null?void 0:s.label)!=="操作"))==null?void 0:r.map(s=>s==null?void 0:s.label);return n==null?void 0:n.map(s=>me.getValueToObjectValue(s,o))},wf=(t,n)=>{var o,l,r,s,i,c,u,d;return((l=(o=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="header"))==null?void 0:o.contents)==null?void 0:l.length)===0?Ef((i=(s=(r=n==null?void 0:n.value)==null?void 0:r.compData)==null?void 0:s.find(f=>(f==null?void 0:f.key)==="header"))==null?void 0:i.contents,(c=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="tableContents"))==null?void 0:c.contents):Ef((u=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="header"))==null?void 0:u.contents,(d=t==null?void 0:t.find(f=>(f==null?void 0:f.key)==="tableContents"))==null?void 0:d.contents)},Sf=(t,n)=>{var l;let o=a.cloneDeep(t);return o.compData=(l=a.cloneDeep(o.compData))==null?void 0:l.map(r=>((r==null?void 0:r.key)==="formContent"&&(r.contents=n==null?void 0:n.map(s=>{var i,c;return s.value=((c=(i=r.contents)==null?void 0:i.find(u=>u.key===s.key))==null?void 0:c.value)??"",s})),r)),o},Ux=async t=>{var i,c,u;let n=(i=a.cloneDeep(t))==null?void 0:i.map(d=>d==null?void 0:d.path);const o=await a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});if(o.data.code!==200)return;let l=new WeakMap;(c=o.data.result)==null||c.forEach(d=>{var p,v,m,y;let f=[{key:d==null?void 0:d.id,name:((v=(p=d==null?void 0:d.value)==null?void 0:p.pageData)==null?void 0:v.name)??"",value:(m=d==null?void 0:d.value)==null?void 0:m.pageData}];l[d.key.pageKey]=((y=l[d.key.pageKey])==null?void 0:y.length)>0?[...l[d.key.pageKey],...f]:f});let r=new WeakMap;n==null||n.forEach(d=>{l[d]&&(r[d]=l[d])});let s=a.cloneDeep(t);s=(u=a.cloneDeep(s))==null?void 0:u.map(d=>{var p,v,m,y;let f=(p=a.cloneDeep(d))==null?void 0:p.key;return f.tableId=(m=(v=r[d==null?void 0:d.path])==null?void 0:v.find(h=>{var g;return(h==null?void 0:h.name)===((g=a.cloneDeep(d))==null?void 0:g.name)}))==null?void 0:m.key,d={key:f,value:(y=a.cloneDeep(d))==null?void 0:y.value},d}),s.length!==0&&await a.batchAddInsofDataApi({dataList:s})},ka=(t,n)=>{var o,l,r,s,i,c,u,d,f,p,v,m,y,h,g;if(((l=(o=a.cloneDeep(t))==null?void 0:o.filter(C=>{var E;return(C==null?void 0:C.name)===((E=a.cloneDeep(n))==null?void 0:E.name)}))==null?void 0:l.length)===1)return{contents:(u=(c=(i=(s=(r=a.cloneDeep(t))==null?void 0:r.find(C=>{var E;return(C==null?void 0:C.name)===((E=a.cloneDeep(n))==null?void 0:E.name)}))==null?void 0:s.value)==null?void 0:i.compData)==null?void 0:c.find(C=>(C==null?void 0:C.key)==="formContent"))==null?void 0:u.contents,key:(f=(d=a.cloneDeep(t))==null?void 0:d.find(C=>{var E;return(C==null?void 0:C.name)===((E=a.cloneDeep(n))==null?void 0:E.name)}))==null?void 0:f.key};{let C,E,k=(y=(m=(v=(p=a.cloneDeep(n))==null?void 0:p.compData)==null?void 0:v.find(b=>(b==null?void 0:b.key)==="formContent"))==null?void 0:m.contents)==null?void 0:y.map(b=>b==null?void 0:b.key);return(g=(h=a.cloneDeep(t))==null?void 0:h.filter(b=>{var w;return(b==null?void 0:b.name)===((w=a.cloneDeep(n))==null?void 0:w.name)}))==null||g.forEach(b=>{var S,_,P,B,T,N,V,R;let w=(T=(B=(P=(_=(S=a.cloneDeep(b))==null?void 0:S.value)==null?void 0:_.compData)==null?void 0:P.find(j=>(j==null?void 0:j.key)==="formContent"))==null?void 0:B.contents)==null?void 0:T.map(j=>j==null?void 0:j.key);w&&k.every(j=>w.includes(j))&&(C=(R=(V=(N=b==null?void 0:b.value)==null?void 0:N.compData)==null?void 0:V.find(j=>(j==null?void 0:j.key)==="formContent"))==null?void 0:R.contents,E=b==null?void 0:b.key)}),{contents:C,key:E}}},qx=async t=>{var u,d,f;let n=[];(u=a.cloneDeep(t))==null||u.forEach(p=>{n.push(p.name);let v=Tl(a.cloneDeep(p.name));v!==""&&n.push(v)}),n=[...new Set(n)];const o=await a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});if(o.data.code!==200)return;let l=new WeakMap;(d=o.data.result)==null||d.forEach(p=>{var m,y,h,g;let v=[{key:p==null?void 0:p.id,name:((y=(m=p==null?void 0:p.value)==null?void 0:m.pageData)==null?void 0:y.name)??"",value:(h=p==null?void 0:p.value)==null?void 0:h.pageData}];l[p.key.pageKey]=((g=l[p.key.pageKey])==null?void 0:g.length)>0?[...l[p.key.pageKey],...v]:v});let r=new WeakMap;for(let p in l)n!=null&&n.find(v=>v===p)&&(r[p]=l[p]);let s=[],i=[],c=[];(f=a.cloneDeep(t))==null||f.forEach(p=>{var v,m;r!=null&&r[p.name]?(v=p==null?void 0:p.compData)==null||v.forEach(y=>{var h;(h=y==null?void 0:y.contents)==null||h.forEach(g=>{var C,E,k,b,w,S,_;if((g==null?void 0:g.comp)==="Table"){let P=wf((C=a.cloneDeep(g))==null?void 0:C.compData,(E=a.cloneDeep(r==null?void 0:r[p.name]))==null?void 0:E.find(B=>(B==null?void 0:B.name)===(g==null?void 0:g.name)));P==null||P.forEach(B=>{var T,N;i.push({key:{type:"data",pageKey:p==null?void 0:p.name,tableId:(N=(T=r==null?void 0:r[p.name])==null?void 0:T.find(V=>(V==null?void 0:V.name)===(g==null?void 0:g.name)))==null?void 0:N.key,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:B}})})}else if((b=ka((k=a.cloneDeep(r))==null?void 0:k[p.name],a.cloneDeep(g)))!=null&&b.contents){let P=Sf(a.cloneDeep(g),(w=ka(r==null?void 0:r[p.name],a.cloneDeep(g)))==null?void 0:w.contents);s!=null&&s.find(B=>{var T,N;return(B==null?void 0:B.id)===((N=ka((T=a.cloneDeep(r))==null?void 0:T[p.name],a.cloneDeep(g)))==null?void 0:N.key)})||s.push({id:(_=ka((S=a.cloneDeep(r))==null?void 0:S[p.name],a.cloneDeep(g)))==null?void 0:_.key,value:{pageData:P}})}})}):r!=null&&r[Tl(p.name)]&&((m=p==null?void 0:p.compData)==null||m.forEach(y=>{var h;(h=y==null?void 0:y.contents)==null||h.forEach(g=>{var C,E,k,b,w,S,_,P,B;if((g==null?void 0:g.comp)==="Table"){let T=(E=(C=r==null?void 0:r[Tl(p.name)])==null?void 0:C.find(V=>(V==null?void 0:V.name)===(g==null?void 0:g.name)))==null?void 0:E.value;i.push({key:{type:"structure",pageKey:p==null?void 0:p.name,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),version:1},value:{pageData:T}});let N=wf((k=a.cloneDeep(g))==null?void 0:k.compData,(b=a.cloneDeep(r==null?void 0:r[Tl(p.name)]))==null?void 0:b.find(V=>(V==null?void 0:V.name)===(g==null?void 0:g.name)));N==null||N.forEach(V=>{c.push({name:g.name,path:p.name,key:{type:"data",pageKey:p==null?void 0:p.name,tableId:"",systemKey:sessionStorage.getItem("systemKey")},value:{tableData:V}})})}else{let T=Sf(a.cloneDeep(g),(B=(P=(_=(S=(w=a.cloneDeep(r==null?void 0:r[Tl(p.name)]))==null?void 0:w.find(N=>(N==null?void 0:N.name)===(g==null?void 0:g.name)))==null?void 0:S.value)==null?void 0:_.compData)==null?void 0:P.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:B.contents);i.push({key:{type:"structure",pageKey:p==null?void 0:p.name,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),version:1},value:{pageData:T}})}})}))}),i.length!==0&&(await a.batchAddInsofDataApi({dataList:i}),c.length!==0&&await Ux(c),s.length!==0&&await a.batchUpdateInsofDataApi({dataList:s}))},wv=L.useMenuState(),Js=t=>t==null?void 0:t.map(n=>(n.contents&&(n.contents=n.contents.filter(o=>{var l;return((l=o.comp)==null?void 0:l.toUpperCase())!=="CALCULATOR"})),n.compData&&(n.compData=Js(n.compData)),n)),Yx=async t=>{var o,l,r,s,i,c,u,d,f,p,v,m,y,h,g,C,E,k,b,w,S,_,P;const n=await a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if((t==null?void 0:t.length)===0){if(((o=n==null?void 0:n.data)==null?void 0:o.code)===200&&(s=(r=(l=n==null?void 0:n.data)==null?void 0:l.result)==null?void 0:r[0])!=null&&s.id){const B=(c=(i=n==null?void 0:n.data)==null?void 0:i.result)==null?void 0:c[0],T=(f=(d=(u=n==null?void 0:n.data)==null?void 0:u.result)==null?void 0:d[0])==null?void 0:f.key;T.systemType="管理系统",await a.updateInsofDataApi({id:B==null?void 0:B.id,key:T})}return}try{if(((p=n==null?void 0:n.data)==null?void 0:p.code)===200&&(y=(m=(v=n==null?void 0:n.data)==null?void 0:v.result)==null?void 0:m[0])!=null&&y.id){const B=(g=(h=n==null?void 0:n.data)==null?void 0:h.result)==null?void 0:g[0],T=(k=(E=(C=n==null?void 0:n.data)==null?void 0:C.result)==null?void 0:E[0])==null?void 0:k.key,N=(b=a.cloneDeep(t))==null?void 0:b.map(V=>{var R;return(R=V.compData)==null?void 0:R[0]});T.systemType=(S=(w=N==null?void 0:N.find(V=>(V==null?void 0:V.key)==="type"))==null?void 0:w.contents)==null?void 0:S[0],T.name=(P=(_=N==null?void 0:N.find(V=>(V==null?void 0:V.key)==="name"))==null?void 0:_.contents)==null?void 0:P[0],await a.updateInsofDataApi({id:B==null?void 0:B.id,key:T})}}catch(B){return Promise.reject(B)}},Nf=async t=>{var n,o,l,r;try{const s=await a.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu",type:"structure"},value:{pageData:t}});if(((n=s==null?void 0:s.data)==null?void 0:n.code)===200){const i=(l=(o=t==null?void 0:t.compData)==null?void 0:o[0])==null?void 0:l.contents;wv.setRawMenus(i??[])}return(r=s==null?void 0:s.data)==null?void 0:r.code}catch(s){return Promise.reject(s)}},Gx=async()=>{var t,n,o,l,r,s,i,c;try{const u=await a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu",type:"structure"}});return((t=u==null?void 0:u.data)==null?void 0:t.code)===200&&((l=(o=(n=u==null?void 0:u.data)==null?void 0:n.result)==null?void 0:o[0])!=null&&l.id)&&await a.deleteInsofDataApi({id:(i=(s=(r=u==null?void 0:u.data)==null?void 0:r.result)==null?void 0:s[0])==null?void 0:i.id}),(c=u==null?void 0:u.data)==null?void 0:c.code}catch(u){return Promise.reject(u)}},Sv=async(t,n)=>{var o,l,r,s;try{const i=await a.updateInsofDataApi({id:t,value:{pageData:n}});if(((o=i==null?void 0:i.data)==null?void 0:o.code)===200){const c=(r=(l=n==null?void 0:n.compData)==null?void 0:l[0])==null?void 0:r.contents;wv.setRawMenus(c??[])}return(s=i==null?void 0:i.data)==null?void 0:s.code}catch(i){return Promise.reject(i)}},Xx=async()=>{var t;try{const n=L.generateKeyPair(),o=await a.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"secret",type:"system"},value:{cryptoInfo:{publicKey:n.publicKey,privateKey:n.privateKey}}});return((t=o==null?void 0:o.data)==null?void 0:t.code)===200}catch(n){throw n}},Jx=async()=>{var n,o,l;const t=await a.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return!(((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&((l=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:l.length)>0)},Zx=async()=>{var n,o,l;const t=await a.getInsofDataApi({key:{type:"system",pageKey:"secret",systemKey:sessionStorage.getItem("systemKey")}});return!(((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&((l=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:l.length)>0)},Qx=async t=>{var o,l;let n=a.cloneDeep(t);if(n=[...n,Vv.tempMenuPageData,Dv.tempMainMenuPageData],sessionStorage.getItem("systemKey"))if(t!=null&&t.find(r=>(r==null?void 0:r.comp)==="System")){const r=n==null?void 0:n.find(d=>d.comp==="Menu"),s=n==null?void 0:n.filter(d=>d.comp==="System"),i=await Jx(),c=await Zx();i&&await Nf(r),await Yx(s),c&&Xx();const u=(o=Js(a.cloneDeep(n)))==null?void 0:o.filter(d=>{var f,p,v;return((f=d==null?void 0:d.comp)==null?void 0:f.toUpperCase())!=="MENU"&&((p=d==null?void 0:d.comp)==null?void 0:p.toUpperCase())!=="MENUTOP"&&((v=d==null?void 0:d.comp)==null?void 0:v.toUpperCase())!=="SYSTEM"});await jx(u),await Wx(u)}else{const r=n==null?void 0:n.find(i=>i.comp==="Menu");await Gx(),await Nf(r);const s=(l=Js(a.cloneDeep(n)))==null?void 0:l.filter(i=>{var c,u,d;return((c=i==null?void 0:i.comp)==null?void 0:c.toUpperCase())!=="MENU"&&((u=i==null?void 0:i.comp)==null?void 0:u.toUpperCase())!=="MENUTOP"&&((d=i==null?void 0:i.comp)==null?void 0:d.toUpperCase())!=="SYSTEM"});await qx(s)}};function eA(t="menu"){return{name:t,components:{ssMenu:$e.ssMenu,DynamicIcon:$e._sfc_main},setup(){const n=e.defineProps({mode:{type:String,default:"vertical"}}),o=e.ref("sub-menu-more"),l=L.useMenuState(),r=L.useModelComp(a.pinia),s=e.ref(0),i=Pf.useRouter(),{rawMenus:c,activeTopMenuPath:u,isRefreshMenus:d,menuTriggerType:f,permissionSideMenus:p,platform:v,cacheInputMenu:m,activeMainMenu:y,activeMenuPath:h,linkMenuInfo:g,updateMenuStatus:C}=a.storeToRefs(l),E=a.useLoginState(),{structureData:k}=a.storeToRefs(E),b=e.ref([]),w=e.ref([]),S=e.computed(()=>n==null?void 0:n.mode),_=e.ref({}),P=I=>I==null?void 0:I.map(H=>H.children&&H.children.length>0?{...H,children:H.level===0?[]:H.children??[],childMenus:P(H.children)}:H),B=(I,H)=>{var Z,J;return(J=(Z=w.value)==null?void 0:Z.find(le=>(I.title+H).includes(le.value)))==null?void 0:J.value},T=["系统管理/角色管理","系统管理/用户管理","系统管理/个人中心"],N=(I,H="",Z=0)=>{var ee;let J=a.cloneDeep(I);const le=Array.from(new Set([...(ee=k.value)==null?void 0:ee.map(U=>{var se;return(se=U==null?void 0:U.key)==null?void 0:se.pageKey})]));return Array.isArray(J)||(J=[J]),J==null?void 0:J.map(U=>{let se,z=H?`${H}/${U.title}`:U.title;T!=null&&T.includes(z)?se=H?`/${H}/${U.title}`:U.title:se=z;const ne={...U,path:se,level:Z,show:!0,icon:B(U,Z),carryData:le==null?void 0:le.includes(z),isPenultimate:!U.children,isRouter:T==null?void 0:T.includes(z),children:[],childMenus:[]};return U.children&&U.children.length>0&&(ne.children=N(U.children,se,Z+1)),ne})},V=e.computed(()=>{let I=a.cloneDeep(b.value);if(I=[...I,...p.value],(I==null?void 0:I.length)===0)return i.push("/"),[];const H=W(I,K.value);H.isFlag||(I=H==null?void 0:H.data);const Z=P(I);return l.setMenus(Z),Z}),R=async I=>{var le,oe,ee;let H,Z;(I==null?void 0:I.level)===0?Z={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),rootNodePath:I==null?void 0:I.path,tableId:""}}:Z={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/平台管理/菜单管理/"+(I==null?void 0:I.path),tableId:""}};const J=await a.getInsofDataApi(Z);return((le=J==null?void 0:J.data)==null?void 0:le.code)===200&&(H=(ee=(oe=J.data)==null?void 0:oe.result)==null?void 0:ee.map(U=>{var se;return{id:U==null?void 0:U.id,...(se=U==null?void 0:U.value)==null?void 0:se.tableData}}),(I==null?void 0:I.level)===0&&(_.value=a.cloneDeep(H))),(H==null?void 0:H.length)>0?H:null},j=(I,H)=>{var J,le;const Z=I==null?void 0:I.find(oe=>(oe==null?void 0:oe.operateType)==="新增");return((le=(J=m.value)==null?void 0:J.data)==null?void 0:le.path)===(H==null?void 0:H.path)?Z==null?void 0:Z.menuIcon:B(H,H==null?void 0:H.level)},q=async(I,H)=>{if(!Array.isArray(H))return I;for(const Z of H)if((Z==null?void 0:Z.path)===I.path)return{...I,config:await R(I)};return I},D=e.ref(null),$=async(I,H=null)=>await Promise.all(I==null?void 0:I.map(async Z=>{var oe;let J=await q(Z,_.value);const le=(J==null?void 0:J.config)??((oe=H==null?void 0:H.filter(ee=>ee.allowInherit))==null?void 0:oe.map(ee=>{var U;return{...ee,structureIds:(U=H==null?void 0:H.find(se=>{var z;return((z=se==null?void 0:se.structureIds)==null?void 0:z.length)>0}))==null?void 0:U.structureIds}}));return J!=null&&J.childMenus&&(J==null?void 0:J.childMenus.length)>0&&(J={...J,icon:j(le,Z),config:le,children:await $(Z==null?void 0:Z.childMenus,le),childMenus:await $(Z==null?void 0:Z.childMenus,le)}),{...J,icon:j(le,Z),config:le}})),A=async I=>(D.value=null,await $(I.childMenus));e.watch(()=>g.value,I=>{var Z,J,le;if(!I)return;const H=(J=(Z=I==null?void 0:I.path)==null?void 0:Z.split("/"))==null?void 0:J[0];if(H){const oe=(le=b.value)==null?void 0:le.find(ee=>(ee==null?void 0:ee.path)===H);if(!oe||(l.setActiveTopMenuPath(H),!(oe!=null&&oe.children)))return;l.setAsideMenus(oe==null?void 0:oe.children),l.setActiveMenuPath(I==null?void 0:I.path),r.setRouteToChildPath(I==null?void 0:I.path)}},{immediate:!0});const O=async I=>{var H,Z,J,le;if(l.setLinkMenuInfo(null),l.setAsideMenuLoading(!0),r.setRouteToChildPath(""),l.setActiveTopMenuPath(I==null?void 0:I.path),l.setActiveMainMenu(I),D.value=null,I!=null&&I.childMenus&&((H=I==null?void 0:I.childMenus)==null?void 0:H.length)>0){const oe=await A(I),ee=(oe==null?void 0:oe.length)===0?I==null?void 0:I.childMenus:oe;if(l.setAsideMenus(ee),C.value){const U=(J=(Z=I==null?void 0:I.childMenus)==null?void 0:Z[0])==null?void 0:J.path;l.setActiveMenuPath(U)}else l.setUpdateMenuStatus(!0);l.setActiveAsideMenu((le=I==null?void 0:I.childMenus)==null?void 0:le[0])}else l.setAsideMenus([]);I.isRouter?i.push(I.path):i.push("/"),l.setAsideMenuLoading(!1)},M=I=>{r.setRouteToChildPath(""),f.value==="click"?s.value===1?l.setActiveMenuPath(sessionStorage.getItem("pageKey")):I!==o.value&&l.setActiveMenuPath(I):l.setMenuTriggerType("click"),I!=null&&I.startsWith("/")?i.push(I):i.push("/"),s.value++},F=I=>{I!==o.value&&l.setActiveMenuPath(I)},x=I=>{const H=document.documentElement;I==null||I.forEach(Z=>{H.style.setProperty(Z.name,Z.value)})};e.onMounted(()=>{s.value=1,w.value=No.getSvgIcons()});const K=e.computed(()=>{const I=sessionStorage.getItem("authority");return I?JSON.parse(I):[]});e.watch(()=>v.value,I=>{I==="browser"?(x(Ut.browserVerticalMenuClasses),x(Ut.browserHorizontalMenuClasses)):I==="client"?(x(Ut.clientHorizontalMenuClasses),x(Ut.clientVerticalMenuClasses)):I==="three"&&(x(Ut.threeHorizontalMenuClasses),x(Ut.threeVerticalMenuClasses))},{immediate:!0}),e.watch(()=>c.value,I=>{if(w.value=No.getSvgIcons(),I){C.value&&(l.setActiveTopMenuPath(""),l.setActiveMenuPath(""),l.setAsideMenus([]));const H=I;b.value=N(a.convertRawToTree(H))}},{immediate:!0});const Y=(I,H)=>{function Z(J){J==null||J.forEach(le=>{var ee,U;const oe=(ee=le==null?void 0:le.path)!=null&&ee.startsWith("/")?(U=le==null?void 0:le.path)==null?void 0:U.substring(1):le==null?void 0:le.path;le.show=H==null?void 0:H.some(se=>se==null?void 0:se.includes(oe)),le.children&&Z(le.children)})}return Z(I),I},W=(I,H)=>{if(Array.isArray(H)){const Z=Array.from(new Set(H==null?void 0:H.map(J=>J==null?void 0:J.substring(0,J.lastIndexOf("/")))));return{data:Y(I,Z),isFlag:!1}}else return{isFlag:(H==null?void 0:H.toUpperCase())==="SUPERADMIN"}},te=I=>{var Z;const H=[I==null?void 0:I.title];if(I!=null&&I.children&&((Z=I==null?void 0:I.children)==null?void 0:Z.length)>0){const J=I.children.map(le=>te(le));H.push(...J)}return H},re=(I,H,Z,J)=>I.map(le=>{var oe,ee;if(le.path===Z){const U={...le};return J==="create"?U.children.push(H):J==="update"?U.children=(oe=U.children)==null?void 0:oe.map(se=>(se==null?void 0:se.path)===(H==null?void 0:H.path)?H:se):J==="delete"&&(U.children=(ee=U.children)==null?void 0:ee.filter(se=>(se==null?void 0:se.path)!==(H==null?void 0:H.path))),U}else return{...le,children:re(le.children,H,Z,J)}}),Q=async I=>{var Z,J,le,oe,ee,U;const H=(Z=k.value)==null?void 0:Z.find(se=>{var z;return((z=se==null?void 0:se.key)==null?void 0:z.pageKey)==="menu"});if(H){const se={...(J=H.value)==null?void 0:J.pageData,compData:(ee=(oe=(le=H.value)==null?void 0:le.pageData)==null?void 0:oe.compData)==null?void 0:ee.map(ne=>ne.key==="menuContents"?{...ne,contents:I}:ne)};await Sv(H==null?void 0:H.id,se);const z=(U=V.value)==null?void 0:U.find(ne=>(ne==null?void 0:ne.path)===u.value);z&&await O(z),l.setAsideMenuLoading(!1),l.setIsRefreshMenus(!1)}else l.setAsideMenuLoading(!1)},X=async I=>{var J,le,oe,ee,U;const H=await a.getInsofDataApi({id:I});let Z;return((J=H==null?void 0:H.data)==null?void 0:J.code)===200&&(Z=(U=(ee=(oe=(le=H==null?void 0:H.data)==null?void 0:le.result)==null?void 0:oe[0])==null?void 0:ee.value)==null?void 0:U.pageData),Z},G=async I=>{var U,se,z;const H=(z=(se=(U=I==null?void 0:I.config)==null?void 0:U.find(ne=>(ne==null?void 0:ne.operateType)==="新增"))==null?void 0:se.structureIds)==null?void 0:z.filter(ne=>(ne==null?void 0:ne.key)==="contentConfig"),Z=H==null?void 0:H.map(ne=>ne==null?void 0:ne.id);let J=[];Z==null||Z.forEach(ne=>{ne&&J.push(X(ne))});const le=await Promise.all(J),oe=le==null?void 0:le.map(ne=>{const{id:_e,...ye}=ne;return ye}),ee=oe==null?void 0:oe.map(ne=>({key:{pageKey:I==null?void 0:I.path,systemKey:sessionStorage.getItem("systemKey"),parentTable:"",version:1,type:"structure"},value:{pageData:ne}}));await a.batchAddInsofDataApi({dataList:ee})};return e.watch(()=>d.value,async I=>{var H,Z,J,le,oe,ee,U,se;if(I)try{const z=(J=(Z=(H=m.value)==null?void 0:H.data)==null?void 0:Z.path)==null?void 0:J.split("/").slice(0,-1).join("/"),ne=re(b.value,(le=m.value)==null?void 0:le.data,z,(oe=m.value)==null?void 0:oe.type),_e=(ee=ne==null?void 0:ne.filter(Ve=>Ve.path!=="平台管理"))==null?void 0:ee.map(Ve=>te(Ve));await G((U=m.value)==null?void 0:U.data),l.setAsideMenuLoading(!0),await Q(_e);const ye=await A(y.value),Pe=(ye==null?void 0:ye.length)===0?(se=y.value)==null?void 0:se.childMenus:ye;l.setAsideMenus(Pe)}catch(z){throw a.ElMessage.error(z),new Error(z)}},{immediate:!0}),{mode:S,renderMenuList:V,clickMenu:O,openMenu:M,closeMenu:F,changeMenuStyle:x}}}}const tA=e.defineComponent(eA()),nA=e.defineComponent($e.setComponent("ThreeMenu"));function Nv(t="menu"){return{name:t,components:{ssMenu:$e.ssMenu,DynamicIcon:$e._sfc_main},setup(){const n=e.defineProps({mode:{type:String,default:"vertical"}}),o=e.ref("sub-menu-more"),l=L.useMenuState(),r=L.useModelComp(a.pinia),s=e.ref(0),i=Pf.useRouter(),{rawMenus:c,activeTopMenuPath:u,isRefreshMenus:d,menuTriggerType:f,permissionSideMenus:p,platform:v,cacheInputMenu:m,activeMainMenu:y,activeMenuPath:h,linkMenuInfo:g,updateMenuStatus:C}=a.storeToRefs(l),E=a.useLoginState(),{structureData:k}=a.storeToRefs(E),b=e.ref([]),w=e.ref([]),S=e.computed(()=>n==null?void 0:n.mode),_=e.ref({}),P=I=>I==null?void 0:I.map(H=>H.children&&H.children.length>0?{...H,children:H.level===0?[]:H.children??[],childMenus:P(H.children)}:H),B=(I,H)=>{var Z,J;return(J=(Z=w.value)==null?void 0:Z.find(le=>(I.title+H).includes(le.value)))==null?void 0:J.value},T=["系统管理/角色管理","系统管理/用户管理","系统管理/个人中心"],N=(I,H="",Z=0)=>{var ee;let J=a.cloneDeep(I);const le=Array.from(new Set([...(ee=k.value)==null?void 0:ee.map(U=>{var se;return(se=U==null?void 0:U.key)==null?void 0:se.pageKey})]));return Array.isArray(J)||(J=[J]),J==null?void 0:J.map(U=>{let se,z=H?`${H}/${U.title}`:U.title;T!=null&&T.includes(z)?se=H?`/${H}/${U.title}`:U.title:se=z;const ne={...U,path:se,level:Z,show:!0,icon:B(U,Z),carryData:le==null?void 0:le.includes(z),isPenultimate:!U.children,isRouter:T==null?void 0:T.includes(z),children:[],childMenus:[]};return U.children&&U.children.length>0&&(ne.children=N(U.children,se,Z+1)),ne})},V=e.computed(()=>{let I=a.cloneDeep(b.value);if(I=[...I,...p.value],(I==null?void 0:I.length)===0)return i.push("/"),[];const H=W(I,K.value);H.isFlag||(I=H==null?void 0:H.data);const Z=P(I);return l.setMenus(Z),Z}),R=async I=>{var le,oe,ee;let H,Z;(I==null?void 0:I.level)===0?Z={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),rootNodePath:I==null?void 0:I.path,tableId:""}}:Z={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/平台管理/菜单管理/"+(I==null?void 0:I.path),tableId:""}};const J=await a.getInsofDataApi(Z);return((le=J==null?void 0:J.data)==null?void 0:le.code)===200&&(H=(ee=(oe=J.data)==null?void 0:oe.result)==null?void 0:ee.map(U=>{var se;return{id:U==null?void 0:U.id,...(se=U==null?void 0:U.value)==null?void 0:se.tableData}}),(I==null?void 0:I.level)===0&&(_.value=a.cloneDeep(H))),(H==null?void 0:H.length)>0?H:null},j=(I,H)=>{var J,le;const Z=I==null?void 0:I.find(oe=>(oe==null?void 0:oe.operateType)==="新增");return((le=(J=m.value)==null?void 0:J.data)==null?void 0:le.path)===(H==null?void 0:H.path)?Z==null?void 0:Z.menuIcon:B(H,H==null?void 0:H.level)},q=async(I,H)=>{if(!Array.isArray(H))return I;for(const Z of H)if((Z==null?void 0:Z.path)===I.path)return{...I,config:await R(I)};return I},D=e.ref(null),$=async(I,H=null)=>await Promise.all(I==null?void 0:I.map(async Z=>{var oe;let J=await q(Z,_.value);const le=(J==null?void 0:J.config)??((oe=H==null?void 0:H.filter(ee=>ee.allowInherit))==null?void 0:oe.map(ee=>{var U;return{...ee,structureIds:(U=H==null?void 0:H.find(se=>{var z;return((z=se==null?void 0:se.structureIds)==null?void 0:z.length)>0}))==null?void 0:U.structureIds}}));return J!=null&&J.childMenus&&(J==null?void 0:J.childMenus.length)>0&&(J={...J,icon:j(le,Z),config:le,children:await $(Z==null?void 0:Z.childMenus,le),childMenus:await $(Z==null?void 0:Z.childMenus,le)}),{...J,icon:j(le,Z),config:le}})),A=async I=>(D.value=null,await $(I.childMenus));e.watch(()=>g.value,I=>{var Z,J,le;if(!I)return;const H=(J=(Z=I==null?void 0:I.path)==null?void 0:Z.split("/"))==null?void 0:J[0];if(H){const oe=(le=b.value)==null?void 0:le.find(ee=>(ee==null?void 0:ee.path)===H);if(!oe||(l.setActiveTopMenuPath(H),!(oe!=null&&oe.children)))return;l.setAsideMenus(oe==null?void 0:oe.children),l.setActiveMenuPath(I==null?void 0:I.path),r.setRouteToChildPath(I==null?void 0:I.path)}},{immediate:!0});const O=async I=>{var H,Z,J,le;if(l.setLinkMenuInfo(null),l.setAsideMenuLoading(!0),r.setRouteToChildPath(""),l.setActiveTopMenuPath(I==null?void 0:I.path),l.setActiveMainMenu(I),D.value=null,I!=null&&I.childMenus&&((H=I==null?void 0:I.childMenus)==null?void 0:H.length)>0){const oe=await A(I),ee=(oe==null?void 0:oe.length)===0?I==null?void 0:I.childMenus:oe;if(l.setAsideMenus(ee),C.value){const U=(J=(Z=I==null?void 0:I.childMenus)==null?void 0:Z[0])==null?void 0:J.path;l.setActiveMenuPath(U)}else l.setUpdateMenuStatus(!0);l.setActiveAsideMenu((le=I==null?void 0:I.childMenus)==null?void 0:le[0])}else l.setAsideMenus([]);I.isRouter?i.push(I.path):i.push("/"),l.setAsideMenuLoading(!1)},M=I=>{r.setRouteToChildPath(""),f.value==="click"?s.value===1?l.setActiveMenuPath(sessionStorage.getItem("pageKey")):I!==o.value&&l.setActiveMenuPath(I):l.setMenuTriggerType("click"),I!=null&&I.startsWith("/")?i.push(I):i.push("/"),s.value++},F=I=>{I!==o.value&&l.setActiveMenuPath(I)},x=I=>{const H=document.documentElement;I==null||I.forEach(Z=>{H.style.setProperty(Z.name,Z.value)})};e.onMounted(()=>{s.value=1,w.value=No.getSvgIcons()});const K=e.computed(()=>{const I=sessionStorage.getItem("authority");return I?JSON.parse(I):[]});e.watch(()=>v.value,I=>{I==="browser"?(x(Ut.browserVerticalMenuClasses),x(Ut.browserHorizontalMenuClasses)):I==="client"?(x(Ut.clientHorizontalMenuClasses),x(Ut.clientVerticalMenuClasses)):I==="three"&&(x(Ut.threeHorizontalMenuClasses),x(Ut.threeVerticalMenuClasses))},{immediate:!0}),e.watch(()=>c.value,I=>{if(w.value=No.getSvgIcons(),I){C.value&&(l.setActiveTopMenuPath(""),l.setActiveMenuPath(""),l.setAsideMenus([]));const H=I;b.value=N(a.convertRawToTree(H))}},{immediate:!0});const Y=(I,H)=>{function Z(J){J==null||J.forEach(le=>{var ee,U;const oe=(ee=le==null?void 0:le.path)!=null&&ee.startsWith("/")?(U=le==null?void 0:le.path)==null?void 0:U.substring(1):le==null?void 0:le.path;le.show=H==null?void 0:H.some(se=>se==null?void 0:se.includes(oe)),le.children&&Z(le.children)})}return Z(I),I},W=(I,H)=>{if(Array.isArray(H)){const Z=Array.from(new Set(H==null?void 0:H.map(J=>J==null?void 0:J.substring(0,J.lastIndexOf("/")))));return{data:Y(I,Z),isFlag:!1}}else return{isFlag:(H==null?void 0:H.toUpperCase())==="SUPERADMIN"}},te=I=>{var Z;const H=[I==null?void 0:I.title];if(I!=null&&I.children&&((Z=I==null?void 0:I.children)==null?void 0:Z.length)>0){const J=I.children.map(le=>te(le));H.push(...J)}return H},re=(I,H,Z,J)=>I.map(le=>{var oe,ee;if(le.path===Z){const U={...le};return J==="create"?U.children.push(H):J==="update"?U.children=(oe=U.children)==null?void 0:oe.map(se=>(se==null?void 0:se.path)===(H==null?void 0:H.path)?H:se):J==="delete"&&(U.children=(ee=U.children)==null?void 0:ee.filter(se=>(se==null?void 0:se.path)!==(H==null?void 0:H.path))),U}else return{...le,children:re(le.children,H,Z,J)}}),Q=async I=>{var Z,J,le,oe,ee,U;const H=(Z=k.value)==null?void 0:Z.find(se=>{var z;return((z=se==null?void 0:se.key)==null?void 0:z.pageKey)==="menu"});if(H){const se={...(J=H.value)==null?void 0:J.pageData,compData:(ee=(oe=(le=H.value)==null?void 0:le.pageData)==null?void 0:oe.compData)==null?void 0:ee.map(ne=>ne.key==="menuContents"?{...ne,contents:I}:ne)};await Sv(H==null?void 0:H.id,se);const z=(U=V.value)==null?void 0:U.find(ne=>(ne==null?void 0:ne.path)===u.value);z&&await O(z),l.setAsideMenuLoading(!1),l.setIsRefreshMenus(!1)}else l.setAsideMenuLoading(!1)},X=async I=>{var J,le,oe,ee,U;const H=await a.getInsofDataApi({id:I});let Z;return((J=H==null?void 0:H.data)==null?void 0:J.code)===200&&(Z=(U=(ee=(oe=(le=H==null?void 0:H.data)==null?void 0:le.result)==null?void 0:oe[0])==null?void 0:ee.value)==null?void 0:U.pageData),Z},G=async I=>{var U,se,z;const H=(z=(se=(U=I==null?void 0:I.config)==null?void 0:U.find(ne=>(ne==null?void 0:ne.operateType)==="新增"))==null?void 0:se.structureIds)==null?void 0:z.filter(ne=>(ne==null?void 0:ne.key)==="contentConfig"),Z=H==null?void 0:H.map(ne=>ne==null?void 0:ne.id);let J=[];Z==null||Z.forEach(ne=>{ne&&J.push(X(ne))});const le=await Promise.all(J),oe=le==null?void 0:le.map(ne=>{const{id:_e,...ye}=ne;return ye}),ee=oe==null?void 0:oe.map(ne=>({key:{pageKey:I==null?void 0:I.path,systemKey:sessionStorage.getItem("systemKey"),parentTable:"",version:1,type:"structure"},value:{pageData:ne}}));await a.batchAddInsofDataApi({dataList:ee})};return e.watch(()=>d.value,async I=>{var H,Z,J,le,oe,ee,U,se;if(I)try{const z=(J=(Z=(H=m.value)==null?void 0:H.data)==null?void 0:Z.path)==null?void 0:J.split("/").slice(0,-1).join("/"),ne=re(b.value,(le=m.value)==null?void 0:le.data,z,(oe=m.value)==null?void 0:oe.type),_e=(ee=ne==null?void 0:ne.filter(Ve=>Ve.path!=="平台管理"))==null?void 0:ee.map(Ve=>te(Ve));await G((U=m.value)==null?void 0:U.data),l.setAsideMenuLoading(!0),await Q(_e);const ye=await A(y.value),Pe=(ye==null?void 0:ye.length)===0?(se=y.value)==null?void 0:se.childMenus:ye;l.setAsideMenus(Pe)}catch(z){throw a.ElMessage.error(z),new Error(z)}},{immediate:!0}),{mode:S,renderMenuList:V,clickMenu:O,openMenu:M,closeMenu:F,changeMenuStyle:x}}}}e.defineComponent(Nv());const oA=e.defineComponent(Nv("ThreeMenu")),lA=t=>({comp:"MenuTop",compData:[{key:"menuContents",contents:JSON.parse(t==null?void 0:t.value.trim().replaceAll("'",'"'))}],name:""}),aA=t=>{const n=t==null?void 0:t.filter(l=>{var r;return!((r=l==null?void 0:l.key)!=null&&r.includes("("))}),o=n==null?void 0:n.find(l=>{var r;return me.IsJson(l.value.replaceAll("'",'"'))&&((r=JSON.parse(l.value.replaceAll("'",'"')))==null?void 0:r.every(s=>typeof s=="string"))});if(o)return lA(o)},rA=t=>{var r;let n=[];const o=t==null?void 0:t.filter(s=>{var i;return!((i=s==null?void 0:s.key)!=null&&i.includes("("))}),l=o==null?void 0:o.find(s=>{var i;return me.IsJson(s.value.replaceAll("'",'"'))&&!((i=JSON.parse(s.value.replaceAll("'",'"')))!=null&&i.every(c=>typeof c=="string"))});if(l)return(r=JSON.parse(l.value.replaceAll("'",'"')))==null||r.forEach(s=>{var i,c,u,d;((i=Object.keys(s))==null?void 0:i[0])==="类型"?n.push({comp:"System",compData:[{key:"type",contents:[(c=Object.values(s))==null?void 0:c[0]]}]}):((u=Object.keys(s))==null?void 0:u[0])==="名称"&&n.push({comp:"System",compData:[{key:"name",contents:[(d=Object.values(s))==null?void 0:d[0]]}]})}),n};e.ref(0);const sA=t=>{const n=[];let o=[];return t==null||t.forEach((l,r)=>{var s;(o==null?void 0:o.length)===0?o.push(l):(o.push(l),((s=t[r+1])==null?void 0:s.key)==="groupName"&&(n.push(o),o=[]))}),n.push(o),n},Tv=t=>{const n=[];let o=!1;return t.forEach(l=>{Array.isArray(l)&&(o=!0,l.forEach(r=>{const s=t.map(i=>i===l?r:i);n.push(...Tv(s))}))}),o?n:[t]},iA=me.useOriginalState(a.pinia),{originalPath:cA}=a.storeToRefs(iA),uA=t=>{var s,i,c;const n=(s=t.map(u=>{var f,p,v,m;let d=(m=(v=u.key.split("("))==null?void 0:v[((f=u.key.split("("))==null?void 0:f.length)-1===0?1:((p=u.key.split("("))==null?void 0:p.length)-1])==null?void 0:m.trim();return d==null?void 0:d.slice(0,d.length-1)}))==null?void 0:s.filter(u=>u),o=[];n==null||n.forEach(u=>{var f,p;const d=[];if((f=_o.contentTrans(u))==null||f.forEach(v=>{var m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j;if(v.includes("{")&&v.includes("[")){let q=a.cloneDeep(v).split(":");v=(E=(y=(m=a.cloneDeep(q))==null?void 0:m[0])==null?void 0:y.split("{"))==null?void 0:E[((C=(g=(h=a.cloneDeep(q))==null?void 0:h[0])==null?void 0:g.split("{"))==null?void 0:C.length)-1].replaceAll("'",""),d.push(v);let D=(w=(b=(k=q==null?void 0:q[(q==null?void 0:q.length)-1])==null?void 0:k.split("}"))==null?void 0:b[0])==null?void 0:w.replaceAll("'",'"'),$=[];(_=(S=D.slice(1,D.length-1))==null?void 0:S.split(","))==null||_.forEach(A=>{$.push(A)}),d.push($)}else if(v.includes("{")){let q=(P=v.split(":"))==null?void 0:P[0],D=(T=q==null?void 0:q.split("{"))==null?void 0:T[((B=q==null?void 0:q.split("{"))==null?void 0:B.length)-1].replaceAll("'","");d.push(D);let $=(N=v.split(":"))==null?void 0:N[1];if(($==null?void 0:$.replaceAll("}",""))!==""){let A=(j=(R=$==null?void 0:$.split("{"))==null?void 0:R[((V=$==null?void 0:$.split("{"))==null?void 0:V.length)-1].replaceAll("'",""))==null?void 0:j.replaceAll("}","");d.push(A)}}else d.push(v)}),!d.some(v=>Array.isArray(v)))o.push(d);else{let v=[];d==null||d.forEach((m,y)=>{y!==d.length-1&&v.push(m)}),(p=d==null?void 0:d[(d==null?void 0:d.length)-1])==null||p.forEach(m=>{let y=a.cloneDeep(v);y.push(m),o.push(y)})}});let l=[];o==null||o.forEach(u=>{var d;if(u!=null&&u.find(f=>f==null?void 0:f.includes("["))){let f=u==null?void 0:u.filter(v=>!(v!=null&&v.includes("["))),p=u==null?void 0:u.find(v=>v==null?void 0:v.includes("["));p=p==null?void 0:p.slice(1,(p==null?void 0:p.length)-1),(d=p==null?void 0:p.split(","))==null||d.forEach(v=>{let m=a.cloneDeep(f);m.push(v),l.push(m)})}else l.push(u)});const r=(c=(i=l.filter(u=>u.length!==0))==null?void 0:i.filter(u=>u.length!==0))==null?void 0:c.map(u=>{let d="";return u.forEach(f=>{!f.includes("{")&&!(f!=null&&f.includes("$"))&&(d=d===""?d+a.cloneDeep(f):d+"/"+a.cloneDeep(f))}),d});return _o.menuArray([...new Set(r)])},dA=t=>({comp:"Menu",compData:[{contents:uA(a.cloneDeep(t)),key:"menuContents"}],name:""}),fA=(t,n)=>{var c,u,d,f,p,v,m,y,h,g;if(!t)return;let o=[],l=_o.getContentValue(t);if(((c=$e.newContentTransArrayToAllNoExtra(t,":"))==null?void 0:c.length)>1){let C=(y=(m=(v=(p=(f=(d=(u=$e.newContentTransArrayToAllNoExtra(t,":"))==null?void 0:u[0])==null?void 0:d.split("{"))==null?void 0:f[1])==null?void 0:p.split("}"))==null?void 0:v[0])==null?void 0:m.split(":"))==null?void 0:y[1];C!==""&&(l=l+":"+C)}const r=a.cloneDeep(l).replaceAll("{","").replaceAll("}","").trim();let s=[];return r.split(":").forEach(C=>{var E;if(C.includes("[")){const k=(E=C.slice(1,C.length-1))==null?void 0:E.split(",");s.push(k)}else s.push(C)}),(h=Tv(s))==null||h.forEach(C=>{o.push(C)}),o=[...new Set(o)],(g=o==null?void 0:o.filter(C=>C.length!==0))==null?void 0:g.map(C=>{let E="",k="",b=!0;return C.forEach(w=>{!w.includes("{")&&!(w!=null&&w.includes("$"))&&(w!=null&&w.includes("@")&&!(w!=null&&w.includes("@input"))&&!(w!=null&&w.includes("@output"))&&(w=""),E!=null&&E.includes("/")&&(n!=null&&n.includes(E))&&!(n!=null&&n.includes(E+"/"+w.trim()))&&b&&(n!=null&&n.includes(E+cA.value))&&(b=!1),b?E=E===""?E+w.trim():w.trim()===""?E+"/":(w.trim().includes("@"),E+"/"+w.trim()):E=E+"/"+w.trim()),w!=null&&w.includes("$")&&(k=w.replaceAll("$",""))}),{path:E,parentPath:k}})},pA=t=>{let n=t;const o=[];let l="";for(const r of n)r.includes("{")||l.includes("{")||r.includes("[")||l.includes("[")||r.includes("【")||l.includes("【")||r.includes("(")||l.includes("(")||r.includes("(")||l.includes("(")||r.includes("/*")||l.includes("/*")?(l+=r.trim(),l.split("{").length-1===l.split("}").length-1&&l.split("【").length-1===l.split("】").length-1&&l.split("[").length-1===l.split("]").length-1&&l.split("(").length-1===l.split(")").length-1&&l.split("(").length-1===l.split(")").length-1&&l.split("/*").length-1===l.split("*/").length-1&&(l.match(/'/g)||[]).length%2===0&&(l==null?void 0:l[(l==null?void 0:l.length)-1])===","&&(o.push(l),l="")):(l+=r.trim(),(l==null?void 0:l[(l==null?void 0:l.length)-1])===","&&(o.push(l),l=""));return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o};let yt="$R",Ol="$/";const mA=me.useOriginalState(a.pinia),{originalPath:hA}=a.storeToRefs(mA),Tf=(t,n)=>{var i,c,u,d,f,p,v,m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V;let o;if(o=(c=(i=t==null?void 0:t.replace("[",yt))==null?void 0:i.split(yt))==null?void 0:c[1],!o)return;const l=o.lastIndexOf("]"),r=o.substring(0,l)+yt+o.substring(l+1);o=(d=(u=r==null?void 0:r.split(yt))==null?void 0:u[0])==null?void 0:d.replaceAll("'",""),o=(o==null?void 0:o[0])===":"?'""'+o:o,n!=null&&n.includes("#")&&(o!=null&&o.includes("['")?o=((p=(f=n==null?void 0:n.split("#"))==null?void 0:f[0])==null?void 0:p.replaceAll("'",""))+"#("+o+")":o=((m=(v=n==null?void 0:n.split("#"))==null?void 0:v[0])==null?void 0:m.replaceAll("'",""))+"#"+o);let s=(w=(b=(k=(E=(h=(y=a.cloneDeep(t))==null?void 0:y.replace("(",yt))==null?void 0:h.split(yt))==null?void 0:E[((C=(g=t==null?void 0:t.replace("(",yt))==null?void 0:g.split(yt))==null?void 0:C.length)-1])==null?void 0:k.replace(")",yt))==null?void 0:b.split(yt))==null?void 0:w[0].replaceAll(":","/").replaceAll("'","");if(o.includes(":")&&!o.includes(":['")&&((_=s==null?void 0:s.split("/"))==null?void 0:_[((S=s==null?void 0:s.split("/"))==null?void 0:S.length)-1])!==""?o=o+"["+s+"]":o=o+"["+s+"]()",n!=null&&n.includes("#")&&((B=$e.contentTransArrayToAllNoExtra((P=n==null?void 0:n.split("#"))==null?void 0:P[1],"/"))==null?void 0:B.length)>1){let R=(T=n==null?void 0:n.split("#"))==null?void 0:T[1],j=[];(V=(N=$e.contentTransArrayToAllNoExtra(R,"/"))==null?void 0:N.filter(q=>!(q!=null&&q.includes("("))))==null||V.forEach(q=>{q!=null&&q[(q==null?void 0:q.length)-1]?j.push(q.slice(0,(q==null?void 0:q.length)-1).replaceAll("'","")):j.push(q.replaceAll("'",""))}),o=o+"&&#"+j.join(Ol)}return o},vA=t=>{var s;let n=t;const o=[];let l="",r=0;for(const i of n)r++,i.includes("(")||l.includes("(")||i.includes(")")||l.includes(")")||i.includes("&")||l.includes("&")||i.includes("|")||l.includes("|")?(l+=i.trim(),((s=a.cloneDeep(l))==null?void 0:s[(l==null?void 0:l.length)-1])===")"||a.cloneDeep(l).includes("||")||a.cloneDeep(l).includes("&&")?(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l=""):r===(t==null?void 0:t.length)&&(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):(l+=i.trim(),o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="");return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o},gA=t=>{var r;let n=(r=vA(t))==null?void 0:r.map(s=>(s!=null&&s.includes("(")&&(s="("+(s==null?void 0:s.replaceAll("(",""))),s)),o=[],l={};return n==null||n.forEach((s,i)=>{var c,u;if(s!=null&&s.includes("(")){let d=(c=s.slice(1,(s==null?void 0:s.length)-1))==null?void 0:c.split("#"),f=d[0].replaceAll("'",""),p=(u=d[1])==null?void 0:u.replaceAll("'","");(f==null?void 0:f[(f==null?void 0:f.length)-1])!=="!"?l[f]=p:l[f==null?void 0:f.slice(0,(f==null?void 0:f.length)-1)]="!"+p}else s==="&&"||s==="||"&&(o.push(l),l={});i===n.length-1&&(o.push(l),l={})}),o},yA=t=>{var o,l;let n=(l=(o=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:o.split(","))==null?void 0:l.map(r=>{var s,i,c,u,d;return(d=(u=(c=(i=(s=r==null?void 0:r.split("=="))==null?void 0:s[0])==null?void 0:i.replaceAll("'",""))==null?void 0:c.split("#"))==null?void 0:u[0])==null?void 0:d.trim()});return n=JSON.stringify(n),n},Zs=t=>{let n=a.cloneDeep(t),o=[],l="",r="",s=(n==null?void 0:n[0])==="["?$e.newContentTransArrayToAllNoExtra(n.slice(1,n.length-1),","):$e.newContentTransArrayToAllNoExtra(n,",");return s==null||s.forEach((i,c)=>{var d,f,p,v,m,y,h,g;let u=i;if(u[u.length-1]===","&&(u=u.slice(0,u.length-1)),u.slice(1,(u==null?void 0:u.length)-1).includes("[")&&(u==null?void 0:u[0])==="["){let C=Zs(u);if((s==null?void 0:s.length)===2&&((f=s==null?void 0:s[0])==null?void 0:f[((d=s==null?void 0:s[0])==null?void 0:d.length)-1])===":"){let E=s[c-1].replaceAll(",","").trim();E[E.length-1]===":"&&(E=E.slice(0,E.length-1));let k=(p=Zs(u))==null?void 0:p.parentStringContent;k="["+((v=k==null?void 0:k.slice(0,(k==null?void 0:k.length)-1))==null?void 0:v.replaceAll("'",'"'))+"]";let b={[E]:k};o.push(b)}else r=r+u+",";l=l+(C==null?void 0:C.stringContent),r=r+(C==null?void 0:C.parentStringContent),o=[...o,...C==null?void 0:C.parentColumns]}else if((u==null?void 0:u[0])!=="["&&u[u.length-1]===":")u=u.slice(0,u.length-1),l=l+u+",",r=r+((m=u==null?void 0:u.split("#"))==null?void 0:m[0])+",";else if((u==null?void 0:u[0])==="["&&s[c-1]){(h=(y=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))==null?void 0:y.split(","))==null||h.forEach(k=>{l=l+k+","});let C=s[c-1].replaceAll(",","").trim();C[C.length-1]===":"&&(C=C.slice(0,C.length-1));let E={[C]:yA(u)};o.push(E)}else l=l+u+",",r=r+((g=u==null?void 0:u.split("#"))==null?void 0:g[0])+","}),{parentColumns:o,stringContent:l,parentStringContent:r}},es=t=>{var p,v,m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A,O,M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z,J,le,oe;((p=t==null?void 0:t.split("["))==null?void 0:p.length)!==((v=t==null?void 0:t.split("]"))==null?void 0:v.length)&&(t=t.replace(":[[","]:[["));let n=$e.checkIsShowTable(t)?(m=$e.contentTransArray(a.cloneDeep(t)))==null?void 0:m[0]:"[]";const o=$e.checkIsShowTable(t)?"["+((y=$e.contentTransArray(a.cloneDeep(t)))==null?void 0:y[2])+"]":"["+t+"]";let l=[],r=[],s="",i=[],c=[],u=[];const d=(g=(h=o==null?void 0:o.trim())==null?void 0:h.slice(1,(o==null?void 0:o.trim().length)-1))==null?void 0:g.replaceAll("'",'"');me.IsJson(d)?l=JSON.parse(d):me.IsJson((k=(E=(C=d==null?void 0:d.split("}"))==null?void 0:C[0])==null?void 0:E.replace(":",""))==null?void 0:k.replaceAll("\\","\\\\"))&&(l=JSON.parse((S=(w=(b=d==null?void 0:d.split("}"))==null?void 0:b[0])==null?void 0:w.replace(":",""))==null?void 0:S.replaceAll("\\","\\\\"))),l=l!=null&&l.every(ee=>Array.isArray(ee)&&ee.every(U=>Array.isArray(U)))?l==null?void 0:l[0]:l;let f=pA(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));if(f!=null&&f.some(ee=>(ee==null?void 0:ee[0])==="["&&(ee==null?void 0:ee.includes("]#")))){let ee=[];f==null||f.forEach((U,se)=>{var z,ne,_e,ye,Pe,Ve,Ae,ue,we,Me;if((U==null?void 0:U[0])==="["&&(U!=null&&U.includes("]#"))){let Ie=(z=U==null?void 0:U.split("#"))==null?void 0:z[1];s=(ue=(Ae=(Ve=(Pe=(ye=(_e=(ne=Ie==null?void 0:Ie.replace("(",yt))==null?void 0:ne.split(yt))==null?void 0:_e[1])==null?void 0:ye.replace(")",yt))==null?void 0:Pe.split(yt))==null?void 0:Ve[0])==null?void 0:Ae.replaceAll(":","/"))==null?void 0:ue.replaceAll("'",""),s=s+((Me=(we=Ie==null?void 0:Ie.replace(")",yt))==null?void 0:we.split(yt))==null?void 0:Me[1]),(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1)+"#$%"+se)}else ee.push(U)}),n="["+(ee==null?void 0:ee.join(""))+"]"}if((_=$e.newContentTransArrayToAllNoExtra(n.slice(1,n.length-1),","))!=null&&_.some(ee=>(ee==null?void 0:ee[0])==="["||ee[(ee==null?void 0:ee.length)-1]===":")){let ee=Zs(n);u=ee==null?void 0:ee.parentColumns;let U=ee==null?void 0:ee.stringContent;n="["+(U==null?void 0:U.slice(0,(U==null?void 0:U.length)-1))+"]"}if(n!=null&&n.includes("(")){let ee=[],U=((A=($=(D=(q=(j=n==null?void 0:n.split("["))==null?void 0:j[((R=n==null?void 0:n.split("["))==null?void 0:R.length)-1])==null?void 0:q.split("]"))==null?void 0:D[0])==null?void 0:$.split(":"))==null?void 0:A.length)!==1,se=(M=(O=n==null?void 0:n.replace("=",yt))==null?void 0:O.split(yt))==null?void 0:M[0];if(((F=$e.contentTransArrayToAllNoExtra(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1),","))==null?void 0:F.length)>1||U&&(se==null?void 0:se[(se==null?void 0:se.length)-1])!=="]"){let z=(x=$e.contentTransArrayToAllNoExtra(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1),","))==null?void 0:x.map(ne=>((ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])===","&&(ne=a.cloneDeep(ne).slice(0,(ne==null?void 0:ne.length)-1)),ne));z==null||z.forEach(ne=>{var _e,ye,Pe,Ve,Ae,ue,we,Me,Ie,pe,ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe;if((ne==null?void 0:ne[0])==="("&&(ne==null?void 0:ne[ne.length-1])===")")i=gA(ne);else if(!(ne!=null&&ne.includes("(")))ne!=null&&ne.includes("/")?ee.push(ne!=null&&ne.includes('"')?((ye=(_e=ne==null?void 0:ne.replaceAll("#","&&#"))==null?void 0:_e.replaceAll("/",Ol))==null?void 0:ye.replaceAll('"',""))+"@-#isMain":(Pe=ne==null?void 0:ne.replaceAll("#","&&#"))==null?void 0:Pe.replaceAll("/",Ol)):ee.push(ne!=null&&ne.includes('"')?((Ve=ne==null?void 0:ne.replaceAll("'",""))==null?void 0:Ve.replaceAll('"',""))+"@-#isMain":ne==null?void 0:ne.replaceAll("'",""));else if(ne!=null&&ne.includes("/")&&(ne!=null&&ne.includes("#"))&&((Ae=ne==null?void 0:ne.toUpperCase())!=null&&Ae.includes("@CONDITION")))ee.push(ne!=null&&ne.includes('"')?((ue=ne==null?void 0:ne.replace("#","&&#"))==null?void 0:ue.replaceAll('"',""))+"@-#isMain":ne==null?void 0:ne.replace("#","&&#"));else if(ne!=null&&ne.includes("[")){let ge;const Le=(ie=(Ce=a.cloneDeep(ne))==null?void 0:Ce.replaceAll("{",""))==null?void 0:ie.replaceAll("}","");if(((Ne=(be=Le==null?void 0:Le.split("#"))==null?void 0:be[1])==null?void 0:Ne[0])==="["||Le[0]==="["){let Qe,Te="";Le!=null&&Le.includes("#")?(Qe=(Re=Le==null?void 0:Le.split("#"))==null?void 0:Re[1],Te=((Ye=Le==null?void 0:Le.split("#"))==null?void 0:Ye[0])+"#["):(Qe=Le,Te="["),Qe=(Ze=a.cloneDeep(Qe))==null?void 0:Ze.slice(1,((tt=a.cloneDeep(Qe))==null?void 0:tt.length)-1),(he=Qe==null?void 0:Qe.split(","))==null||he.forEach(et=>{Te=Te+Tf(et,a.cloneDeep(et))+","}),ge=(Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1))+"]"}else ge=Tf(Le,a.cloneDeep(ne));ee.push(ne!=null&&ne.includes('"')?((xe=ge==null?void 0:ge.replaceAll('"',"'"))==null?void 0:xe.replaceAll('"',""))+"@-#isMain":ge==null?void 0:ge.replaceAll('"',"'"))}else{let ge=(ke=(pe=(Ie=(Me=ne==null?void 0:ne.split(":"))==null?void 0:Me[((we=ne==null?void 0:ne.split(":"))==null?void 0:we.length)-1])==null?void 0:Ie.split(")"))==null?void 0:pe[0])==null?void 0:ke.replaceAll("'","");ge=ge+"["+((ce=(Se=(ve=ne==null?void 0:ne.split("("))==null?void 0:ve[((ae=ne==null?void 0:ne.split("("))==null?void 0:ae.length)-1])==null?void 0:Se.split(")"))==null?void 0:ce[0].replaceAll(":","/").replaceAll("'",""))+"]",ee.push(ne!=null&&ne.includes('"')?(ge==null?void 0:ge.replaceAll('"',""))+"@-#isMain":ge)}}),r=ee}else{let z=((te=(W=(Y=(K=n==null?void 0:n.slice(1,n==null?void 0:n.length))==null?void 0:K.split("("))==null?void 0:Y[1])==null?void 0:W.split(")"))==null?void 0:te[0]).replaceAll("{","").replaceAll("}","").replaceAll(":","/").replaceAll("'","");z=z.replaceAll("/[",hA.value+"[");let ne=(Q=(re=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1))==null?void 0:re.replace("[",yt))==null?void 0:Q.split(yt);s=s+z+"["+(ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])}}else if(!(n!=null&&n.includes("{"))&&me.IsJson(n==null?void 0:n.replaceAll("'",'"'))&&!(n!=null&&n.includes('"')))r=JSON.parse(n==null?void 0:n.replaceAll("'",'"'));else if(me.IsJson((B=(P=n==null?void 0:n.split("{"))==null?void 0:P[1])==null?void 0:B.replaceAll("'",'"'))&&!(n!=null&&n.includes('"')))r=JSON.parse((N=(T=n==null?void 0:n.split("{"))==null?void 0:T[1])==null?void 0:N.replaceAll("'",'"'));else{let ee=n.slice(1,n.length-1);(V=ee==null?void 0:ee.split(","))==null||V.forEach(U=>{var se,z,ne,_e,ye,Pe,Ve,Ae,ue,we;U!=null&&U.includes("#")?U!=null&&U.includes("/")?r.push(U!=null&&U.includes('"')?((Pe=(ye=U==null?void 0:U.replaceAll('"',""))==null?void 0:ye.replaceAll("#","&&#"))==null?void 0:Pe.replaceAll("/",Ol))+"@-#isMain":(Ve=U==null?void 0:U.replaceAll("#","&&#"))==null?void 0:Ve.replaceAll("/",Ol)):r.push(((z=(se=U==null?void 0:U.split("#"))==null?void 0:se[0])==null?void 0:z.replaceAll("'",""))+"@-"+((_e=(ne=U==null?void 0:U.split("#"))==null?void 0:ne[1])==null?void 0:_e.replaceAll("'",""))):r.push(U!=null&&U.includes('"')?((ue=(Ae=U.trim())==null?void 0:Ae.replaceAll('"',""))==null?void 0:ue.replaceAll("'",""))+"@-#isMain":(we=U.trim())==null?void 0:we.replaceAll("'",""))})}if(r=r==null?void 0:r.map(ee=>ee==null?void 0:ee.replaceAll("'","")),l=l!=null&&l.every(ee=>Array.isArray(ee))?l:[l],l!=null&&l.some(ee=>ee==null?void 0:ee.some(U=>Array.isArray(U)&&(U==null?void 0:U.length)===1))&&(l==null?void 0:l.length)>0&&(r==null?void 0:r.length)>0){let ee=(X=l==null?void 0:l[0])==null?void 0:X.findIndex(U=>Array.isArray(U)&&(U==null?void 0:U.length)===1);if((s==null?void 0:s.length)>0){let U=(J=(Z=(H=(I=s==null?void 0:s.split("["))==null?void 0:I[((G=s==null?void 0:s.split("["))==null?void 0:G.length)-1])==null?void 0:H.split("]"))==null?void 0:Z[0])==null?void 0:J.split(",");ee=ee-(U==null?void 0:U.length)}r=r==null?void 0:r.map((U,se)=>(se===ee&&(U=U+"@-"+U),U)),l=l==null?void 0:l.map(U=>(U!=null&&U.some(se=>Array.isArray(se)&&(se==null?void 0:se.length)===1)&&(U=U==null?void 0:U.map(se=>(Array.isArray(se)&&(se==null?void 0:se.length)===1&&(se=se==null?void 0:se[0]),se))),U))}return{tableColumns:r,tableContents:l,tablePath:(le=s==null?void 0:s.toUpperCase())!=null&&le.includes("MAPPING")?"":s,filterContents:i,childTree:c,parentColumns:u,relatedPath:(oe=s==null?void 0:s.toUpperCase())!=null&&oe.includes("MAPPING")?s:""}};let ct="$R";const bA=t=>{var o;let n="[["+t+"]]";return me.IsJson((o=n.slice(1,(n==null?void 0:n.length)-1))==null?void 0:o.replaceAll("'",'"'))},Qs=t=>{var l,r,s,i,c,u,d,f,p,v,m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A,O,M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z,J,le,oe,ee,U,se,z,ne,_e,ye,Pe,Ve,Ae;let n="";t=t==null?void 0:t.replace("=",":"),t=t.replace(/:([^=]*)==/g,":");let o=t;if(($e.checkIsShowGroup(a.cloneDeep(t))!==null||$e.checkIsShowGroupForm(a.cloneDeep(t))!==null||$e.checkIsUsingGroup(t))&&(n=(s=(r=(l=a.cloneDeep(t).replace(":",ct).split(ct))==null?void 0:l[0])==null?void 0:r.replaceAll("'",""))==null?void 0:s.replaceAll("]",""),o=(i=a.cloneDeep(t).replace(":",ct).split(ct))==null?void 0:i[1]),$e.checkIsShowTable(a.cloneDeep(o).slice(1,((c=a.cloneDeep(o))==null?void 0:c.length)-1))||$e.checkForTableContents(a.cloneDeep(o).slice(1,((u=a.cloneDeep(o))==null?void 0:u.length)-1))||$e.checkIsTableCheck(o))if((o==null?void 0:o[0])!=="["&&(o==null?void 0:o[0])!=="{"&&(o="{["+o+"]:[[]]}"),((f=a.cloneDeep(o).slice(1,((d=a.cloneDeep(o))==null?void 0:d.length)-1))==null?void 0:f[1])!=="["){const ue=es(a.cloneDeep(o).slice(1,((p=a.cloneDeep(o))==null?void 0:p.length)-1));return{groupName:n,tableColumn:ue==null?void 0:ue.tableColumns,tableContents:ue==null?void 0:ue.tableContents,tableColumnPath:ue==null?void 0:ue.tablePath,filterContents:ue==null?void 0:ue.filterContents,childTree:ue==null?void 0:ue.childTree,parentColumns:ue==null?void 0:ue.parentColumns,relatedPath:ue==null?void 0:ue.relatedPath}}else if(a.cloneDeep(o).slice(1,((v=a.cloneDeep(o))==null?void 0:v.length)-1).includes("{")){let ue=a.cloneDeep(o).slice(1,((m=a.cloneDeep(o))==null?void 0:m.length)-1),we=ue.indexOf("{"),Me=ue.slice(we,(ue==null?void 0:ue.length)-we);return(h=(y=$e.contentTransArray(Me))==null?void 0:y.filter(pe=>pe==null?void 0:pe.includes("{")))==null?void 0:h.map((pe,ke)=>{var ve;let ae=es(a.cloneDeep(pe).slice(1,((ve=a.cloneDeep(pe))==null?void 0:ve.length)-1));return{groupName:ke===0?n:"",tableColumn:ae==null?void 0:ae.tableColumns,tableContents:ae==null?void 0:ae.tableContents,tableColumnPath:ae==null?void 0:ae.tablePath,filterContents:ae==null?void 0:ae.filterContents,childTree:ae==null?void 0:ae.childTree,parentColumns:ae==null?void 0:ae.parentColumns,relatedPath:ae==null?void 0:ae.relatedPath}})}else{const ue=es(a.cloneDeep(o).slice(1,((g=a.cloneDeep(o))==null?void 0:g.length)-1));return{groupName:n,tableColumn:ue==null?void 0:ue.tableColumns,tableContents:ue==null?void 0:ue.tableContents,tableColumnPath:ue==null?void 0:ue.tablePath,filterContents:ue==null?void 0:ue.filterContents,childTree:ue==null?void 0:ue.childTree,parentColumns:ue==null?void 0:ue.parentColumns,relatedPath:ue==null?void 0:ue.relatedPath}}else{let ue=[];if(me.IsJson((C=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:C.replaceAll("'",'"')))ue=[JSON.parse((E=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:E.replaceAll("'",'"'))];else if((!o.includes("(")||bA(o))&&!((o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["))if(o="[["+o+"]]",me.IsJson((k=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:k.replaceAll("'",'"')))ue=JSON.parse((b=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:b.replaceAll("'",'"'));else if(o=o.slice(2,o.length-2),((_=(S=(w=o==null?void 0:o.replace(":",ct))==null?void 0:w.split(ct))==null?void 0:S[1])==null?void 0:_[0])!=="{"&&(o==null?void 0:o[0])!=="{"){o=((B=(P=o==null?void 0:o.replace(":",ct))==null?void 0:P.split(ct))==null?void 0:B[0])+":{["+((N=(T=o==null?void 0:o.replace(":",ct))==null?void 0:T.split(ct))==null?void 0:N[1])+"]}";const we=Qs(o);return we!=null&&we.tableColumn?{groupName:we==null?void 0:we.groupName,tableColumn:we==null?void 0:we.tableColumn,tableContents:we==null?void 0:we.tableContents,filterContents:we==null?void 0:we.filterContents,childTree:we==null?void 0:we.childTree,parentColumns:we==null?void 0:we.parentColumns,relatedPath:we==null?void 0:we.relatedPath}:{groupName:we==null?void 0:we.groupName,formContents:we==null?void 0:we.formContents}}else{let we=(R=(V=$e.contentTransArrayToAllNoExtra(o,","))==null?void 0:V.map(Ie=>Ie==null?void 0:Ie.replaceAll(",","")))==null?void 0:R.map(Ie=>$e.formToExtraContent(a.cloneDeep(Ie).slice(1,a.cloneDeep(Ie).length-1))),Me=[];return(j=a.cloneDeep(we))==null||j.forEach(Ie=>{var pe;(pe=Ie==null?void 0:Ie.formContents)==null||pe.forEach(ke=>{ke==null||ke.forEach(ae=>{Me.push(ae)})})}),{groupName:(q=we==null?void 0:we[0])==null?void 0:q.groupName,formContents:Me}}else if((o==null?void 0:o[0])!=="{"&&(o==null?void 0:o[0])!=="["){let we=(O=(A=($=(D=a.cloneDeep(o))==null?void 0:D.split("]"))==null?void 0:$[0])==null?void 0:A.split("["))==null?void 0:O[1],Me="",pe=((W=(Y=(K=(x=(F=(M=a.cloneDeep(o))==null?void 0:M.split(")"))==null?void 0:F[0])==null?void 0:x.split("("))==null?void 0:K[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:W.replaceAll("]","")).replaceAll("'","").replaceAll(":","/");(te=pe==null?void 0:pe.split("/"))==null||te.forEach((ae,ve)=>{var Se;ve!==((Se=pe==null?void 0:pe.split("/"))==null?void 0:Se.length)-1&&(Me=Me===""?Me+ae:Me+"/"+ae)});let ke;return((G=(X=(Q=(re=a.cloneDeep(o))==null?void 0:re.replace(",",ct))==null?void 0:Q.split(ct))==null?void 0:X[1])==null?void 0:G[0])==="["&&(ke=$e.getExtraContents((Z=(H=(I=a.cloneDeep(o))==null?void 0:I.replace(",",ct))==null?void 0:H.split(ct))==null?void 0:Z[1])),{groupName:"",extraButton:(le=we==null?void 0:we.split(":"))==null?void 0:le[((J=we==null?void 0:we.split(":"))==null?void 0:J.length)-1].replaceAll("'",""),extraPath:Me,extraData:ke}}else if((o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["&&(o=o.slice(1,(o==null?void 0:o.length)-1).replaceAll('"',"'")),(o==null?void 0:o[0])!=="["){let we;(o==null?void 0:o[1])==="["?we=o.slice(2,(o==null?void 0:o.length)-2):we=o;let Me=(ee=(oe=$e.contentTransArray(we))==null?void 0:oe.filter(pe=>pe!==","))==null?void 0:ee.map(pe=>$e.formToExtraContent(a.cloneDeep(pe).slice(1,a.cloneDeep(pe).length-1))),Ie=[];return(U=a.cloneDeep(Me))==null||U.forEach(pe=>{var ke;(ke=pe==null?void 0:pe.formContents)==null||ke.forEach(ae=>{ae==null||ae.forEach(ve=>{Ie.push(ve)})})}),{groupName:(se=Me==null?void 0:Me[0])==null?void 0:se.groupName,formContents:Ie}}else if((o==null?void 0:o[1])!=="["&&(o="["+o+"]"),(o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["){o=o.slice(1,(o==null?void 0:o.length)-1);let we=[],Me=[];if(((ne=(z=$e.contentTransArray(o))==null?void 0:z.filter(Ie=>Ie!==","))==null?void 0:ne.length)===1){o=o.slice(1,(o==null?void 0:o.length)-1);let Ie=(ye=(_e=$e.contentTransArrayToAllNoExtra(o,","))==null?void 0:_e.map(ke=>ke==null?void 0:ke.replaceAll(",","")))==null?void 0:ye.map(ke=>$e.formToExtraContent(a.cloneDeep(ke).slice(1,a.cloneDeep(ke).length-1))),pe=[];(Pe=a.cloneDeep(Ie))==null||Pe.forEach(ke=>{var ae;(ae=ke==null?void 0:ke.formContents)==null||ae.forEach(ve=>{ve==null||ve.forEach(Se=>{pe.push(Se)})})}),we.push(pe)}else(Ae=(Ve=$e.contentTransArray(o))==null?void 0:Ve.filter(Ie=>Ie!==","))==null||Ae.forEach(Ie=>{var pe,ke,ae,ve;if(!Ie.includes("&"))Array.isArray(Zl(Ie))||we.push((pe=Zl(Ie))==null?void 0:pe.formContents);else{let Se=(ve=(ae=(ke=a.cloneDeep(Ie))==null?void 0:ke.split("&"))==null?void 0:ae[1])==null?void 0:ve.replaceAll("'",'"');me.IsJson(Se)&&Me.push({[JSON.parse(Se)[0]]:JSON.parse(Se)})}});return{groupName:n,formContents:we,formGroup:Me}}return{groupName:n,formContents:ue}}},Zl=t=>{var r,s,i,c,u,d,f;let n=!1,o=[],l=$e.checkIsShowGroup(t.slice(1,a.cloneDeep(t).length-1))!==null||$e.checkIsShowGroupForm(t.slice(1,a.cloneDeep(t).length-1))!==null;if(l){let p=(c=(r=a.cloneDeep(t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)).replace(":",ct).split(ct))==null?void 0:r[1])==null?void 0:c.slice(1,((i=(s=a.cloneDeep(t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)).replace(":",ct).split(ct))==null?void 0:s[1])==null?void 0:i.length)-1);(p==null?void 0:p[0])==="["&&(p==null?void 0:p[1])==="["&&(p=p.slice(1,(p==null?void 0:p.length)-1));let v=(u=$e.contentTransArrayToAllNoExtra(p,","))==null?void 0:u.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m));v!=null&&v.every(m=>$e.checkIsShowGroup(m.slice(1,a.cloneDeep(m).length-1))!==null||$e.checkIsShowGroupForm(m.slice(1,a.cloneDeep(m).length-1))!==null)&&(n=!0)}return l&&n?((d=hr(t))==null||d.forEach(p=>{o.push(p)}),o):((f=$e.contentTransArray(t))==null?void 0:f.length)===1?Qs(a.cloneDeep(t).slice(1,a.cloneDeep(t).length-1)):Qs(a.cloneDeep(t).slice(1,a.cloneDeep(t).length))},hr=(t,n=0)=>{var d,f,p,v,m;let o=t.slice(1,a.cloneDeep(t).length-1),l=(f=(d=a.cloneDeep(o).replace(":",ct).split(ct))==null?void 0:d[0])==null?void 0:f.replaceAll("'",""),r=(p=a.cloneDeep(o).replace(":",ct).split(ct))==null?void 0:p[1],s=[],i=!1;r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1);let c=(v=$e.contentTransArrayToAllNoExtra(r,","))==null?void 0:v.map(y=>((y==null?void 0:y[(y==null?void 0:y.length)-1])===","&&(y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1)),y));if(c!=null&&c.every(y=>$e.checkIsShowGroup(y.slice(1,a.cloneDeep(y).length-1))!==null||$e.checkIsShowGroupForm(y.slice(1,a.cloneDeep(y).length-1))!==null||$e.checkIsQuote(y)!==null)&&(i=!0),!i)s=hr(r,n+1);else{let y=[];c!=null&&c.some(h=>$e.checkIsQuote(h)!==null)?y=c:y=(m=$e.contentTransArray(r))==null?void 0:m.filter(h=>h!==","),y==null||y.forEach(h=>{var b,w,S,_,P;let g=h.slice(1,a.cloneDeep(h).length-1),C=(_=(b=a.cloneDeep(g).replace(":",ct).split(ct))==null?void 0:b[1])==null?void 0:_.slice(1,((S=(w=a.cloneDeep(g).replace(":",ct).split(ct))==null?void 0:w[1])==null?void 0:S.length)-1);(C==null?void 0:C[0])==="["&&(C==null?void 0:C[1])==="["&&(C=C.slice(1,(C==null?void 0:C.length)-1));let E=(P=$e.contentTransArrayToAllNoExtra(C,","))==null?void 0:P.map(B=>((B==null?void 0:B[(B==null?void 0:B.length)-1])===","&&(B=B==null?void 0:B.slice(0,(B==null?void 0:B.length)-1)),B));(E==null?void 0:E.every(B=>$e.checkIsShowGroup(B.slice(1,a.cloneDeep(B).length-1))!==null||$e.checkIsShowGroupForm(B.slice(1,a.cloneDeep(B).length-1))!==null||$e.checkIsQuote(B)!==null))?s=[...s,...hr(h,n+1)]:s=[...s,..._v(h)]})}return s==null?void 0:s.map(y=>(y["groupName"+n]=l,y))},_v=t=>{var o,l,r;let n=[];if((t==null?void 0:t[0])==="["&&(t==null?void 0:t[1])==="["){let s=(o=$e.contentTransArray(t))==null?void 0:o.filter(i=>i!==",");s==null||s.forEach(i=>{n.push(Zl(i))})}else{let s=(r=(l=$e.newContentTransArrayToAllNoExtra(t,","))==null?void 0:l.filter(i=>i!==","))==null?void 0:r.map(i=>(i[(i==null?void 0:i.length)-1]===","&&(i=i.slice(0,(i==null?void 0:i.length)-1)),i));s==null||s.forEach(i=>{var d,f,p;let c=!1,u=$e.checkIsShowGroup(i.slice(1,a.cloneDeep(i).length-1))!==null||$e.checkIsShowGroupForm(i.slice(1,a.cloneDeep(i).length-1))!==null;if(u){let v=(d=a.cloneDeep(i==null?void 0:i.slice(1,(i==null?void 0:i.length)-1)).replace(":",ct).split(ct))==null?void 0:d[1];(v==null?void 0:v[0])==="["&&(v==null?void 0:v[1])==="["&&(v=v.slice(1,(v==null?void 0:v.length)-1));let m=(f=$e.contentTransArrayToAllNoExtra(v,","))==null?void 0:f.map(y=>((y==null?void 0:y[(y==null?void 0:y.length)-1])===","&&(y=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1)),y));m!=null&&m.every(y=>$e.checkIsShowGroup(y.slice(1,a.cloneDeep(y).length-1))!==null||$e.checkIsShowGroupForm(y.slice(1,a.cloneDeep(y).length-1))!==null||$e.checkIsQuote(y)!==null)&&(c=!0)}u&&c?(p=hr(i))==null||p.forEach(v=>{n.push(v)}):n.push(Zl(i))})}return n},_l=e.ref(0);let Ea="$R";const CA=me.useOriginalState(a.pinia),{originalPath:ts}=a.storeToRefs(CA),kA=(t,n,o)=>{var s;let l=[],r=n==null?void 0:n.length;return(s=a.cloneDeep(n))==null||s.forEach((i,c)=>{let u=[];i==null||i.forEach(d=>{var f,p,v,m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A;if(u.push(a.cloneDeep(d)),((f=$e.newContentTransArrayToAllNoExtra(o,":"))==null?void 0:f.length)>1){let O=(E=(C=(g=(h=(y=(m=(v=(p=$e.newContentTransArrayToAllNoExtra(o,":"))==null?void 0:p[0])==null?void 0:v.replaceAll("{",""))==null?void 0:m.replaceAll("}",""))==null?void 0:y.split("("))==null?void 0:h[1])==null?void 0:g.split(")"))==null?void 0:C[0])==null?void 0:E.replaceAll(":","/");(O==null?void 0:O[(O==null?void 0:O.length)-1])==="/"&&(O=O.slice(0,(O==null?void 0:O.length)-1)),u.push({key:"parentMainPage",value:O})}if(me.IsJson(a.cloneDeep(t.trim()).replaceAll("'",'"'))&&((k=JSON.parse(a.cloneDeep(t.trim()).replaceAll("'",'"')))!=null&&k.every(O=>typeof O=="string")))(b=JSON.parse(a.cloneDeep(t.trim()).replaceAll("'",'"')))==null||b.forEach(O=>{var M,F,x;l.push([{key:(M=a.cloneDeep(d))==null?void 0:M.key,value:((F=a.cloneDeep(d))==null?void 0:F.value)+"/"+O,parentPath:(x=a.cloneDeep(d))==null?void 0:x.parentPath}])});else if(((w=a.cloneDeep(t.trim()))==null?void 0:w[0])!=="["){let O=(T=(B=(P=(_=(S=t==null?void 0:t.split("):"))==null?void 0:S[0])==null?void 0:_.split("("))==null?void 0:P[1])==null?void 0:B.replaceAll(":","/"))==null?void 0:T.replaceAll("'","");u.push({key:"parentMainPage",value:O})}else{let O=[];if(((N=a.cloneDeep(t.trim()))==null?void 0:N[0])==="["&&((V=a.cloneDeep(t.trim()))==null?void 0:V[1])==="["){let M=t.trim().slice(1,((R=t.trim())==null?void 0:R.length)-1),F=_v(M.trim());F!=null&&F.every(x=>Array.isArray(x))&&(F=F==null?void 0:F[0]),F==null||F.forEach(x=>{var K,Y,W,te,re,Q,X,G,I,H,Z,J,le;if(x!=null&&x.tableColumn)((Y=(K=Object.keys(x))==null?void 0:K.filter(oe=>oe==null?void 0:oe.includes("groupName")))==null?void 0:Y.length)===1?u.push({key:"groupName",value:x==null?void 0:x.groupName}):(te=(W=Object.keys(x))==null?void 0:W.filter(oe=>oe==null?void 0:oe.includes("groupName")))==null||te.forEach((oe,ee)=>{oe==="groupName"?u.push({key:oe,value:x==null?void 0:x[oe]}):u.push({key:"groupName"+(ee-1),value:x==null?void 0:x[oe]})}),u.push({key:"tableColumn",value:x==null?void 0:x.tableColumn}),u.push({key:"tableContents",value:x==null?void 0:x.tableContents}),u.push({key:"tablePath",value:(x==null?void 0:x.tableColumnPath)??""}),u.push({key:"tableFilter",value:(x==null?void 0:x.filterContents)??[]}),u.push({key:"relatedPath",value:(x==null?void 0:x.relatedPath)??[]}),u.push({key:"childTree",value:(x==null?void 0:x.childTree)??[]}),u.push({key:"parentColumns",value:(x==null?void 0:x.parentColumns)??[]});else if(x!=null&&x.extraButton)u.push({key:"groupName",value:x==null?void 0:x.groupName}),u.push({key:"extraButton",value:x==null?void 0:x.extraButton,path:x==null?void 0:x.extraPath,data:x==null?void 0:x.extraData});else{let oe=r===1?x==null?void 0:x.formContents:((re=x==null?void 0:x.formContents)==null?void 0:re.length)===1?(X=(Q=x==null?void 0:x.formContents)==null?void 0:Q[0])==null?void 0:X[c]:(G=x==null?void 0:x.formContents)==null?void 0:G[c];(oe==null?void 0:oe.length)>0&&(u.push({key:"groupName",value:x==null?void 0:x.groupName}),u.push({key:"formContent",value:r===1?x==null?void 0:x.formContents:((I=x==null?void 0:x.formContents)==null?void 0:I.length)===1?(Z=(H=x==null?void 0:x.formContents)==null?void 0:H[0])==null?void 0:Z[c]:(J=x==null?void 0:x.formContents)==null?void 0:J[c]}),u.push({key:"formGroup",value:r===1?x==null?void 0:x.formGroup:(le=x==null?void 0:x.formGroup)==null?void 0:le[c]}))}})}else if(O=Zl(a.cloneDeep(t.trim())),Array.isArray(O))O==null||O.forEach(M=>{var F,x,K,Y,W,te,re,Q,X,G,I,H,Z;if(M!=null&&M.tableColumn)((x=(F=Object.keys(M))==null?void 0:F.filter(J=>J==null?void 0:J.includes("groupName")))==null?void 0:x.length)===1?u.push({key:"groupName",value:M==null?void 0:M.groupName}):(Y=(K=Object.keys(M))==null?void 0:K.filter(J=>J==null?void 0:J.includes("groupName")))==null||Y.forEach(J=>{u.push({key:J,value:M==null?void 0:M[J]})}),u.push({key:"tableColumn",value:M==null?void 0:M.tableColumn}),u.push({key:"tableContents",value:M==null?void 0:M.tableContents}),u.push({key:"relatedPath",value:(M==null?void 0:M.relatedPath)??[]}),u.push({key:"tablePath",value:(M==null?void 0:M.tableColumnPath)??""}),u.push({key:"tableFilter",value:(M==null?void 0:M.filterContents)??[]}),u.push({key:"childTree",value:(M==null?void 0:M.childTree)??[]}),u.push({key:"parentColumns",value:(M==null?void 0:M.parentColumns)??[]});else if(M!=null&&M.extraButton)u.push({key:"groupName",value:M==null?void 0:M.groupName}),u.push({key:"extraButton",value:M==null?void 0:M.extraButton,path:M==null?void 0:M.extraPath,data:M==null?void 0:M.extraData});else{let J=r===1?M==null?void 0:M.formContents:((W=M==null?void 0:M.formContents)==null?void 0:W.length)===1?(re=(te=M==null?void 0:M.formContents)==null?void 0:te[0])==null?void 0:re[c]:(Q=M==null?void 0:M.formContents)==null?void 0:Q[c];(J==null?void 0:J.length)>0&&(u.push({key:"groupName",value:M==null?void 0:M.groupName}),u.push({key:"formContent",value:r===1?M==null?void 0:M.formContents:((X=M==null?void 0:M.formContents)==null?void 0:X.length)===1?(I=(G=M==null?void 0:M.formContents)==null?void 0:G[0])==null?void 0:I[c]:(H=M==null?void 0:M.formContents)==null?void 0:H[c]}),u.push({key:"formGroup",value:r===1?M==null?void 0:M.formGroup:(Z=M==null?void 0:M.formGroup)==null?void 0:Z[c]}))}});else if(O!=null&&O.tableColumn)u.push({key:"groupName",value:O==null?void 0:O.groupName}),u.push({key:"tableColumn",value:O==null?void 0:O.tableColumn}),u.push({key:"tableContents",value:r!==1?[(j=O==null?void 0:O.tableContents)==null?void 0:j[c]]:O==null?void 0:O.tableContents}),u.push({key:"relatedPath",value:(O==null?void 0:O.relatedPath)??[]}),u.push({key:"tableFilter",value:(O==null?void 0:O.filterContents)??[]}),u.push({key:"childTree",value:(O==null?void 0:O.childTree)??[]}),u.push({key:"parentColumns",value:(O==null?void 0:O.parentColumns)??[]});else{let M=r!==1?((q=O==null?void 0:O.formContents)==null?void 0:q.length)===1?[($=(D=O==null?void 0:O.formContents)==null?void 0:D[0])==null?void 0:$[c]]:[(A=O==null?void 0:O.formContents)==null?void 0:A[c]]:O==null?void 0:O.formContents;(M==null?void 0:M.length)>0&&(u.push({key:"groupName",value:O==null?void 0:O.groupName}),u.push({key:"formContent",value:M}))}}}),l.push(u)}),l},EA=(t,n)=>{var s,i,c;const o=[],l=fA((s=a.cloneDeep(t))==null?void 0:s.key,n);return l&&(l==null?void 0:l.length)>0&&(l==null||l.forEach(u=>{o.push([{key:"contentPath",value:u==null?void 0:u.path,parentPath:u==null?void 0:u.parentPath}])})),kA((i=a.cloneDeep(t))==null?void 0:i.value,o,(c=a.cloneDeep(t))==null?void 0:c.key)},_f=t=>t.length===1&&(t==null?void 0:t[0])===void 0?[]:t,wA=(t,n,o)=>{const l=new Map;o.forEach(s=>{for(const[i,c]of Object.entries(s))try{l.set(i.replaceAll("'",""),JSON.parse(c))}catch{l.set(i,[])}});const r=s=>s.map(i=>{var d;const c={...i},u=l.get(i.label);if(u!=null&&u.length){const f=u.map(p=>n.find(v=>(v==null?void 0:v.label)===p)).filter(Boolean);c.children=(c.children||[]).concat(f)}return(d=c.children)!=null&&d.length&&(c.children=r(c.children)),c});return r(t)},SA=(t,n)=>{if(!n||(n==null?void 0:n.length)===0)return t;let o=[];n==null||n.forEach(s=>{var c,u;let i=(u=(c=Object.values(s))==null?void 0:c[0])==null?void 0:u.replaceAll("'",'"');if(me.IsJson(i)){let d=JSON.parse(i);d=d==null?void 0:d.map(f=>{var p,v;return{parent:(v=(p=Object.keys(s))==null?void 0:p[0])==null?void 0:v.replaceAll("'",""),value:f}}),o=[...o,...d]}});let l=[],r=[];return t==null||t.forEach((s,i)=>{o!=null&&o.find(c=>(c==null?void 0:c.value)===(s==null?void 0:s.label))&&(t==null?void 0:t.findIndex(c=>{var u;return(c==null?void 0:c.label)===((u=o==null?void 0:o.find(d=>(d==null?void 0:d.value)===(s==null?void 0:s.label)))==null?void 0:u.parent)}))<i?r.push(s):l.push(s)}),wA(l,r,n)},Bl=t=>{const n=t.lastIndexOf(")");return n===-1?[t,""]:[t.slice(0,n),t.slice(n+1)]},NA=t=>{var o,l;return(l=(o=a.cloneDeep(t))==null?void 0:o.map(r=>{var i,c,u,d;let s=[];if((i=sA(r==null?void 0:r.filter(f=>(f==null?void 0:f.key)!=="contentPath")))==null||i.forEach(f=>{var m,y,h,g,C,E,k,b,w,S,_,P,B,T,N,V,R,j,q,D,$,A,O,M,F,x,K,Y,W,te,re,Q,X,G,I,H,Z,J,le,oe,ee,U,se;let p=[];if(f.length===0)return;let v=(y=(m=f.find(z=>(z==null?void 0:z.key)==="tableColumn"))==null?void 0:m.value)==null?void 0:y.map(z=>({label:z}));if(Array.isArray(v)&&((h=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="tablePath"))!=null&&h.value&&((g=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="tablePath"))==null?void 0:g.value)!==""&&v.push({columnPath:(C=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="tablePath"))==null?void 0:C.value}),v=(E=a.cloneDeep(v))==null?void 0:E.map(z=>{var ne,_e,ye,Pe,Ve,Ae,ue,we,Me,Ie,pe,ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe,ge,Le,Qe,Te,et,nt,He,ot,dt,at,Tt,Xe,We,Et,Vt,bt,de,Be,ze,Ue,Ge,it,rt,mt,ht,wt,fe,Ee,Oe,De,st,vt,Ot,At,ln,yn,an,rn,sn,Bn,Pn,Vn,Dn,In,On,$n,lt,zt,Dt,Mn,cn,Wn,bn,Fe,pt,ft,un,Un,jt,Rt,qn,Ho,jo,Wo,Uo,qo,Yo,Go,Xo,Jo,Zo,Qo,el,tl,nl,ol,ll,al,rl,sl,il,cl,ul,dl,fl,pl,ml,hl,vl,gl,yl,Cn,gt,Yn,bl,xn,Wt,Cl,pc,mc,hc,vc,gc,yc,bc,Cc,kc,Ec,wc,Sc,Nc,Tc,_c,Bc,Pc,Vc,Dc,Ic,Oc,$c,Mc,xc,Ac,zc,Rc,Lc,Fc,Kc,Hc,jc,Wc,Uc,qc,Yc,Gc,Xc,Jc,Zc,Qc,eu,tu,nu,ou,lu,au,ru,su,iu,cu,uu,du,fu,pu,mu,hu,vu,gu,yu,bu,Cu,ku,Eu,wu,Su,Nu;if((ne=z==null?void 0:z.label)!=null&&ne.includes("&&#"))if((ye=(_e=z==null?void 0:z.label)==null?void 0:_e.toUpperCase())!=null&&ye.includes("@CONDITION")){let Ke=(dt=(ot=(He=a.cloneDeep(z==null?void 0:z.label))==null?void 0:He.split("&&#"))==null?void 0:ot[1])==null?void 0:dt.split("@Condition:"),je="("+(Ke==null?void 0:Ke[1]),St=[];return(We=(Xe=(Tt=(at=Ke==null?void 0:Ke[0])==null?void 0:at.replaceAll("(",""))==null?void 0:Tt.replaceAll(")",""))==null?void 0:Xe.split("||"))==null||We.forEach(Lt=>{St.push(Lt==null?void 0:Lt.split("/"))}),{label:(Be=(de=(bt=(Vt=(Et=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Et.split("&&#"))==null?void 0:Vt[0].replaceAll("'",""))==null?void 0:bt.split("#"))==null?void 0:de[0])==null?void 0:Be.replaceAll("$/","/"),isRoute:((ze=f.find(Lt=>(Lt==null?void 0:Lt.key)==="tableColumn"))==null?void 0:ze.isParent)??!1,allSelectionContents:St,selectFilter:je==null?void 0:je.replaceAll(":","="),columnPath:((Ge=(Ue=z==null?void 0:z.columnPath)==null?void 0:Ue.split("#$%"))==null?void 0:Ge[0])??"",columnPathIndex:((rt=(it=z==null?void 0:z.columnPath)==null?void 0:it.split("#$%"))==null?void 0:rt[1])??"",relatedPath:((ht=(mt=z==null?void 0:z.relatedPath)==null?void 0:mt.split("#$%"))==null?void 0:ht[0])??"",relatedPathIndex:((fe=(wt=z==null?void 0:z.relatedPath)==null?void 0:wt.split("#$%"))==null?void 0:fe[1])??"",isRun:((Ee=f.find(Lt=>(Lt==null?void 0:Lt.key)==="tableColumn"))==null?void 0:Ee.isRun)??!1,formType:"Select"}}else{let Ke=(ue=(Ae=(Ve=(Pe=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Pe.split("&&#"))==null?void 0:Ve[1].replaceAll("'",""))==null?void 0:Ae.split("$/"))==null?void 0:ue.map(St=>({label:St,value:St})),je=(ae=(ke=(pe=(we=a.cloneDeep(z==null?void 0:z.label))==null?void 0:we.split("["))==null?void 0:pe[((Ie=(Me=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Me.split("["))==null?void 0:Ie.length)-1])==null?void 0:ke.split("]"))==null?void 0:ae[0];return{label:(ie=(Ce=(ce=(Se=(ve=a.cloneDeep(z==null?void 0:z.label))==null?void 0:ve.split("&&#"))==null?void 0:Se[0].replaceAll("'",""))==null?void 0:ce.split("#"))==null?void 0:Ce[0])==null?void 0:ie.replaceAll("$/","/"),options:Ke,isRoute:((be=f.find(St=>(St==null?void 0:St.key)==="tableColumn"))==null?void 0:be.isParent)??!1,formMenuSelect:je==null?void 0:je.split("/"),groupSelect:(tt=(Ye=(Re=(Ne=a.cloneDeep(z==null?void 0:z.label).replace("#",Ea))==null?void 0:Ne.split(Ea))==null?void 0:Re[1])==null?void 0:Ye.split("["+je+"]"))==null?void 0:tt[0],columnPath:((he=(Ze=z==null?void 0:z.columnPath)==null?void 0:Ze.split("#$%"))==null?void 0:he[0])??"",columnPathIndex:((ge=(xe=z==null?void 0:z.columnPath)==null?void 0:xe.split("#$%"))==null?void 0:ge[1])??"",relatedPath:((Qe=(Le=z==null?void 0:z.relatedPath)==null?void 0:Le.split("#$%"))==null?void 0:Qe[0])??"",relatedPathIndex:((et=(Te=z==null?void 0:z.relatedPath)==null?void 0:Te.split("#$%"))==null?void 0:et[1])??"",isRun:((nt=f.find(St=>(St==null?void 0:St.key)==="tableColumn"))==null?void 0:nt.isRun)??!1,formType:"Select"}}else{if((Oe=z==null?void 0:z.label)!=null&&Oe.includes("@-"))return{label:(vt=(st=(De=a.cloneDeep(z==null?void 0:z.label))==null?void 0:De.split("@-"))==null?void 0:st[0])==null?void 0:vt.replaceAll("$/","/"),directiveLabel:(At=(Ot=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Ot.split("@-"))==null?void 0:At[1],isRoute:((ln=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:ln.isParent)??!1,isRun:((yn=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:yn.isRun)??!1};if(z!=null&&z.label&&!((an=z==null?void 0:z.label)!=null&&an.includes("[")))return{label:(rn=z==null?void 0:z.label)==null?void 0:rn.replaceAll("$/","/"),isRoute:((sn=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:sn.isParent)??!1,isRun:((Bn=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:Bn.isRun)??!1};if(z!=null&&z.label&&((Pn=z==null?void 0:z.label)!=null&&Pn.includes(":")))if((Vn=z==null?void 0:z.label)!=null&&Vn.includes("#"))if((Dn=z==null?void 0:z.label)!=null&&Dn.includes("("))if(((Xo=(Go=(Yo=z==null?void 0:z.label)==null?void 0:Yo.split("#"))==null?void 0:Go[1])==null?void 0:Xo[0])==="["){let Ke=[];return(ll=(ol=(nl=(Zo=(Jo=z==null?void 0:z.label)==null?void 0:Jo.split("#"))==null?void 0:Zo[1])==null?void 0:nl.slice(1,((tl=(el=(Qo=z==null?void 0:z.label)==null?void 0:Qo.split("#"))==null?void 0:el[1])==null?void 0:tl.length)-1))==null?void 0:ol.split(","))==null||ll.forEach(je=>{var Tu,_u,Bu,Pu,Vu,Du,Iu,Ou;let St=(Du=(Vu=(Pu=(Tu=a.cloneDeep(je))==null?void 0:Tu.split("["))==null?void 0:Pu[((Bu=(_u=a.cloneDeep(je))==null?void 0:_u.split("["))==null?void 0:Bu.length)-1])==null?void 0:Vu.split("]"))==null?void 0:Du[0],Lt=(Ou=(Iu=a.cloneDeep(je))==null?void 0:Iu.split("["+St+"]"))==null?void 0:Ou[0];Ke.push({formMenuSelect:St==null?void 0:St.split("/"),groupSelect:Lt})}),{label:(il=(sl=(rl=(al=a.cloneDeep(z==null?void 0:z.label))==null?void 0:al.split("#"))==null?void 0:rl[0])==null?void 0:sl.replaceAll("'",""))==null?void 0:il.replaceAll("$/","/"),formMenuGroup:Ke,columnPath:((ul=(cl=z==null?void 0:z.columnPath)==null?void 0:cl.split("#$%"))==null?void 0:ul[0])??"",columnPathIndex:((fl=(dl=z==null?void 0:z.columnPath)==null?void 0:dl.split("#$%"))==null?void 0:fl[1])??"",relatedPath:((ml=(pl=z==null?void 0:z.relatedPath)==null?void 0:pl.split("#$%"))==null?void 0:ml[0])??"",relatedPathIndex:((vl=(hl=z==null?void 0:z.relatedPath)==null?void 0:hl.split("#$%"))==null?void 0:vl[1])??"",isRoute:((gl=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:gl.isParent)??!1,isRun:((yl=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:yl.isRun)??!1}}else return{label:(Yn=(gt=(Cn=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Cn.split("#"))==null?void 0:gt[0])==null?void 0:Yn.replaceAll("$/","/"),formMenuSelect:(gc=(vc=(hc=(mc=(xn=(bl=Bl(a.cloneDeep(z==null?void 0:z.label)))==null?void 0:bl[1])==null?void 0:xn.split("["))==null?void 0:mc[((pc=(Cl=(Wt=Bl(a.cloneDeep(z==null?void 0:z.label)))==null?void 0:Wt[1])==null?void 0:Cl.split("["))==null?void 0:pc.length)-1])==null?void 0:hc.split("]"))==null?void 0:vc[0])==null?void 0:gc.split("/"),groupSelect:(kc=(Cc=Bl((bc=(yc=a.cloneDeep(z==null?void 0:z.label))==null?void 0:yc.split("#"))==null?void 0:bc[1]))==null?void 0:Cc[0])==null?void 0:kc.replace("(",""),columnPath:((wc=(Ec=z==null?void 0:z.columnPath)==null?void 0:Ec.split("#$%"))==null?void 0:wc[0])??"",columnPathIndex:((Nc=(Sc=z==null?void 0:z.columnPath)==null?void 0:Sc.split("#$%"))==null?void 0:Nc[1])??"",relatedPath:((_c=(Tc=z==null?void 0:z.relatedPath)==null?void 0:Tc.split("#$%"))==null?void 0:_c[0])??"",relatedPathIndex:((Pc=(Bc=z==null?void 0:z.relatedPath)==null?void 0:Bc.split("#$%"))==null?void 0:Pc[1])??"",isRoute:((Vc=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:Vc.isParent)??!1,isRun:((Dc=f.find(Ke=>(Ke==null?void 0:Ke.key)==="tableColumn"))==null?void 0:Dc.isRun)??!1};else{let Ke=(Dt=(zt=(lt=(In=a.cloneDeep(z==null?void 0:z.label))==null?void 0:In.split("["))==null?void 0:lt[(($n=(On=a.cloneDeep(z==null?void 0:z.label))==null?void 0:On.split("["))==null?void 0:$n.length)-1])==null?void 0:zt.split("]"))==null?void 0:Dt[0];return{label:(Wn=(cn=(Mn=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Mn.split("#"))==null?void 0:cn[0])==null?void 0:Wn.replaceAll("$/","/"),formMenuSelect:Ke==null?void 0:Ke.split("/"),groupSelect:(ft=(pt=(Fe=(bn=a.cloneDeep(z==null?void 0:z.label))==null?void 0:bn.split("#"))==null?void 0:Fe[1])==null?void 0:pt.split("["+Ke+"]"))==null?void 0:ft[0],columnPath:((Un=(un=z==null?void 0:z.columnPath)==null?void 0:un.split("#$%"))==null?void 0:Un[0])??"",columnPathIndex:((Rt=(jt=z==null?void 0:z.columnPath)==null?void 0:jt.split("#$%"))==null?void 0:Rt[1])??"",relatedPath:((Ho=(qn=z==null?void 0:z.relatedPath)==null?void 0:qn.split("#$%"))==null?void 0:Ho[0])??"",relatedPathIndex:((Wo=(jo=z==null?void 0:z.relatedPath)==null?void 0:jo.split("#$%"))==null?void 0:Wo[1])??"",isRoute:((Uo=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:Uo.isParent)??!1,isRun:((qo=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:qo.isRun)??!1}}else{let Ke=(zc=(Ac=(xc=(Ic=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Ic.split("["))==null?void 0:xc[((Mc=($c=(Oc=Bl(a.cloneDeep(z==null?void 0:z.label)))==null?void 0:Oc[1])==null?void 0:$c.split("["))==null?void 0:Mc.length)-1])==null?void 0:Ac.split("]"))==null?void 0:zc[0];return{label:(qc=(Uc=(Fc=(Lc=(Rc=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Rc.split("["))==null?void 0:Lc[0])==null?void 0:Fc.split(":"))==null?void 0:Uc[((Wc=(jc=(Hc=(Kc=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Kc.split("["))==null?void 0:Hc[0])==null?void 0:jc.split(":"))==null?void 0:Wc.length)-1])==null?void 0:qc.replaceAll("$/","/"),formMenuSelect:Ke==null?void 0:Ke.split("/"),groupSelect:(Gc=(Yc=a.cloneDeep(z==null?void 0:z.label))==null?void 0:Yc.split("["+Ke+"]"))==null?void 0:Gc[0],columnPath:((Jc=(Xc=z==null?void 0:z.columnPath)==null?void 0:Xc.split("#$%"))==null?void 0:Jc[1])??"",columnPathIndex:((Qc=(Zc=z==null?void 0:z.columnPath)==null?void 0:Zc.split("#$%"))==null?void 0:Qc[1])??"",relatedPath:((tu=(eu=z==null?void 0:z.relatedPath)==null?void 0:eu.split("#$%"))==null?void 0:tu[0])??"",relatedPathIndex:((ou=(nu=z==null?void 0:z.relatedPath)==null?void 0:nu.split("#$%"))==null?void 0:ou[1])??"",isRoute:((lu=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:lu.isParent)??!1,isRun:((au=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:au.isRun)??!1}}else{let Ke=(fu=(du=(uu=(ru=a.cloneDeep(z==null?void 0:z.label))==null?void 0:ru.split("["))==null?void 0:uu[((cu=(iu=(su=Bl(a.cloneDeep(z==null?void 0:z.label)))==null?void 0:su[1])==null?void 0:iu.split("["))==null?void 0:cu.length)-1])==null?void 0:du.split("]"))==null?void 0:fu[0];return{label:(hu=(mu=(pu=a.cloneDeep(z==null?void 0:z.label))==null?void 0:pu.split("["))==null?void 0:mu[0])==null?void 0:hu.replaceAll("$/","/"),formMenuSelect:Ke==null?void 0:Ke.split("/"),columnPath:((gu=(vu=z==null?void 0:z.columnPath)==null?void 0:vu.split("#$%"))==null?void 0:gu[0])??"",columnPathIndex:((bu=(yu=z==null?void 0:z.columnPath)==null?void 0:yu.split("#$%"))==null?void 0:bu[1])??"",relatedPath:((ku=(Cu=z==null?void 0:z.relatedPath)==null?void 0:Cu.split("#$%"))==null?void 0:ku[0])??"",relatedPathIndex:((wu=(Eu=z==null?void 0:z.relatedPath)==null?void 0:Eu.split("#$%"))==null?void 0:wu[1])??"",isRoute:((Su=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:Su.isParent)??!1,isRun:((Nu=f.find(je=>(je==null?void 0:je.key)==="tableColumn"))==null?void 0:Nu.isRun)??!1}}}}),v=v==null?void 0:v.map(z=>{let ne=z;return ne.prop=z.label,ne.align="center",ne}),v=SA(v,(k=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="parentColumns"))==null?void 0:k.value),v.length!==0&&v.push({label:"操作"}),(b=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="parentColumns"))!=null&&b.value&&((S=(w=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="parentColumns"))==null?void 0:w.value)==null?void 0:S.length)>0&&(v=[v])),f!=null&&f.find(z=>(z==null?void 0:z.key)==="formContent")){const z=(_=f.find(ye=>(ye==null?void 0:ye.key)==="formContent"))==null?void 0:_.value,ne=((P=f.find(ye=>(ye==null?void 0:ye.key)==="formGroup"))==null?void 0:P.value)??[];let _e=[];Array.isArray(z)&&z.forEach(ye=>{let Pe=1;Array.isArray(ye)&&(ye!=null&&ye.every(Ve=>!Array.isArray(Ve)))&&(Pe=ye.length),ye&&(Array.isArray(ye)||(ye=[ye]),ye.forEach(Ve=>{Array.isArray(Ve)||(Ve=[Ve]);let Ae=[];Ve==null||Ve.forEach(ue=>{var we,Me,Ie,pe,ke,ae,ve,Se,ce,Ce,ie,be,Ne,Re,Ye,tt,Ze,he,xe,ge,Le,Qe,Te,et,nt,He,ot,dt,at,Tt,Xe,We,Et,Vt,bt,de,Be,ze,Ue,Ge,it,rt,mt,ht,wt,fe,Ee,Oe,De,st,vt,Ot,At,ln,yn,an,rn,sn,Bn,Pn,Vn,Dn,In,On,$n,lt,zt,Dt,Mn,cn,Wn,bn,Fe,pt,ft,un,Un,jt,Rt,qn,Ho,jo,Wo,Uo,qo,Yo,Go,Xo,Jo,Zo,Qo,el,tl,nl,ol,ll,al,rl,sl,il,cl,ul,dl,fl,pl,ml,hl,vl,gl,yl;if(_l.value++,Array.isArray((we=Object.values(ue))==null?void 0:we[0]))Ae.push({id:_l.value,key:(Me=Object.keys(ue))==null?void 0:Me[0],prop:(Ie=Object.keys(ue))==null?void 0:Ie[0],label:(pe=Object.keys(ue))==null?void 0:pe[0],value:"",width:Math.max(Pe,Ve.length),type:"Select",isMain:!!(!((ae=(ke=Object.values(ue))==null?void 0:ke[0])!=null&&ae.includes("loginUser"))&&((Se=(ve=Object.values(ue))==null?void 0:ve[0])!=null&&Se.includes("@"))),optionUrl:{type:"Select",selectRelateType:"自定义绑定",defaultSelect:(ce=Object.values(ue))==null?void 0:ce[0]}});else if(!((ie=(Ce=Object.values(ue))==null?void 0:Ce[0])!=null&&ie.includes("/")&&((Ne=(be=Object.values(ue))==null?void 0:be[0])!=null&&Ne.includes("[")))||(Ye=(Re=Object.values(ue))==null?void 0:Re[0])!=null&&Ye.includes("loginUserSign"))(Ze=(tt=Object.values(ue))==null?void 0:tt[0])!=null&&Ze.includes("&&")||(xe=(he=Object.values(ue))==null?void 0:he[0])!=null&&xe.includes("loginUserSign")?Ae.push({id:_l.value,key:(ge=Object.keys(ue))==null?void 0:ge[0],prop:(Le=Object.keys(ue))==null?void 0:Le[0],label:(Qe=Object.keys(ue))==null?void 0:Qe[0],value:!((et=(Te=Object.values(ue))==null?void 0:Te[0])!=null&&et.includes("loginUser"))&&!((He=(nt=Object.values(ue))==null?void 0:nt[0])!=null&&He.includes("loginUserSign"))&&((dt=(ot=Object.values(ue))==null?void 0:ot[0])!=null&&dt.includes("@"))?"":(Xe=(Tt=(at=Object.values(ue))==null?void 0:at[0])==null?void 0:Tt.split("&&"))==null?void 0:Xe[0],isShow:((bt=(Vt=(Et=(We=Object.values(ue))==null?void 0:We[0])==null?void 0:Et.split("&&"))==null?void 0:Vt[1])==null?void 0:bt.replace("#","==="))??"originalSignature",width:Math.max(Pe,Ve.length),isMain:!!(!((Be=(de=Object.values(ue))==null?void 0:de[0])!=null&&Be.includes("loginUser"))&&!((Ue=(ze=Object.values(ue))==null?void 0:ze[0])!=null&&Ue.includes("loginUserSign"))&&((it=(Ge=Object.values(ue))==null?void 0:Ge[0])!=null&&it.includes("@")))}):Ae.push({id:_l.value,key:(rt=Object.keys(ue))==null?void 0:rt[0],prop:(mt=Object.keys(ue))==null?void 0:mt[0],label:(ht=Object.keys(ue))==null?void 0:ht[0],value:!((fe=(wt=Object.values(ue))==null?void 0:wt[0])!=null&&fe.includes("loginUser"))&&((Oe=(Ee=Object.values(ue))==null?void 0:Ee[0])!=null&&Oe.includes("@"))?"":(De=Object.values(ue))==null?void 0:De[0],width:Math.max(Pe,Ve.length),isMain:!!(!((vt=(st=Object.values(ue))==null?void 0:st[0])!=null&&vt.includes("loginUser"))&&((At=(Ot=Object.values(ue))==null?void 0:Ot[0])!=null&&At.includes("@"))&&!((yn=(ln=Object.values(ue))==null?void 0:ln[0])!=null&&yn.includes("#@"))),isMainUrl:(rn=(an=Object.values(ue))==null?void 0:an[0])==null?void 0:rn.includes("#@")});else{let Cn;if((Bn=(sn=Object.values(ue))==null?void 0:sn[0])!=null&&Bn.includes("(")){let xn;(Vn=(Pn=Object.values(ue))==null?void 0:Pn[0])!=null&&Vn.includes("$##")?xn=(zt=(lt=($n=(On=(In=(Dn=Object.values(ue))==null?void 0:Dn[0])==null?void 0:In.split("$##"))==null?void 0:On[1])==null?void 0:$n.split(")"))==null?void 0:lt[0])==null?void 0:zt.replaceAll("(",""):xn=(Wn=(cn=(Mn=(Dt=Object.values(ue))==null?void 0:Dt[0])==null?void 0:Mn.split(")"))==null?void 0:cn[0])==null?void 0:Wn.replaceAll("(",""),Cn=[],(bn=$e.contentTransArrayToAll(xn,"/"))==null||bn.forEach(Wt=>{var Cl;Wt!=null&&Wt.includes("[")?Cn.push((Cl=Wt==null?void 0:Wt.replace("/",":"))==null?void 0:Cl.replaceAll("/","")):Cn.push(Wt==null?void 0:Wt.replaceAll("/",""))})}else(pt=(Fe=Object.values(ue))==null?void 0:Fe[0])!=null&&pt.includes("$##")?Cn=(qn=(Rt=(jt=(Un=(un=(ft=Object.values(ue))==null?void 0:ft[0])==null?void 0:un.split("$##"))==null?void 0:Un[1])==null?void 0:jt.split("["))==null?void 0:Rt[0])==null?void 0:qn.split("/"):Cn=(Uo=(Wo=(jo=(Ho=Object.values(ue))==null?void 0:Ho[0])==null?void 0:jo.split("["))==null?void 0:Wo[0])==null?void 0:Uo.split("/");let gt;(Yo=(qo=Object.values(ue))==null?void 0:qo[0])!=null&&Yo.includes("$##")?gt=(Qo=(Zo=(Jo=(Xo=(Go=Object.values(ue))==null?void 0:Go[0])==null?void 0:Xo.split("$##"))==null?void 0:Jo[1])==null?void 0:Zo.split("@"))==null?void 0:Qo[0]:gt=(nl=(tl=(el=Object.values(ue))==null?void 0:el[0])==null?void 0:tl.split("@"))==null?void 0:nl[0],gt!=null&>.includes("(")&&(gt=(ol=gt==null?void 0:gt.split(")"))==null?void 0:ol[1]),gt=(al=(ll=gt==null?void 0:gt.replace("[",Ea))==null?void 0:ll.split(Ea))==null?void 0:al[1];let Yn=(sl=(rl=gt==null?void 0:gt.slice(0,gt.length-1))==null?void 0:rl.split(":"))==null?void 0:sl.map(xn=>xn.replaceAll("'","")),bl=Yn;(Yn==null?void 0:Yn.length)===1&&bl.unshift(""),Ae.push({id:_l.value,key:(il=Object.keys(ue))==null?void 0:il[0],prop:(cl=Object.keys(ue))==null?void 0:cl[0],label:(ul=Object.keys(ue))==null?void 0:ul[0],value:"",width:Math.max(Pe,Ve.length),type:"Select",isMain:!!(!((fl=(dl=Object.values(ue))==null?void 0:dl[0])!=null&&fl.includes("loginUser"))&&((pl=Object.values(ue))==null?void 0:pl[0]).includes("@")),optionUrl:{type:"Select",selectRelateType:"关联绑定列",menuSelect:Cn,groupSelect:bl,filter:(hl=(ml=Object.values(ue))==null?void 0:ml[0])!=null&&hl.includes("$##")?(yl=(gl=(vl=Object.values(ue))==null?void 0:vl[0])==null?void 0:gl.split("$##"))==null?void 0:yl[0]:""}})}}),Ae==null||Ae.forEach(ue=>{_e.push(ue)})}))}),p.push({key:"formFlex",contents:""}),p.push({key:"formGroup",contents:ne}),p.push({key:"formContent",contents:_e}),s.push({comp:"Form",compData:a.cloneDeep(p),name:(T=(B=f.find(ye=>(ye==null?void 0:ye.key)==="groupName"))==null?void 0:B.value)==null?void 0:T.replaceAll("'",""),isShow:!0})}else if(f!=null&&f.find(z=>(z==null?void 0:z.key)==="extraButton"))s.push({key:"extraButton",value:{method:(N=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="extraButton"))==null?void 0:N.value,value:[],path:(V=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="extraButton"))==null?void 0:V.path,data:(R=f==null?void 0:f.find(z=>(z==null?void 0:z.key)==="extraButton"))==null?void 0:R.data}});else if((v==null?void 0:v.length)!==0||((q=(j=f.find(z=>(z==null?void 0:z.key)==="tableContents"))==null?void 0:j.value)==null?void 0:q.length)>0||(($=(D=f.find(z=>(z==null?void 0:z.key)==="relatedPath"))==null?void 0:D.value)==null?void 0:$.length)>0)if(p.push({key:"header",contents:v}),p.push({key:"childTree",contents:_f(((A=f.find(z=>(z==null?void 0:z.key)==="childTree"))==null?void 0:A.value)??[])}),p.push({key:"tableContents",contents:_f(((O=f.find(z=>(z==null?void 0:z.key)==="tableContents"))==null?void 0:O.value)??[])}),(M=v==null?void 0:v.filter(z=>(z==null?void 0:z.label)!=="操作"))!=null&&M.every(z=>(z==null?void 0:z.isRoute)===!0)&&((K=(x=(F=r==null?void 0:r.find(z=>(z==null?void 0:z.key)==="contentPath"))==null?void 0:F.value)==null?void 0:x.split("/"))==null?void 0:K[0])!=="算法库"&&((Y=v==null?void 0:v.filter(z=>(z==null?void 0:z.label)!=="操作"))==null?void 0:Y.length)!==0?(p.push({key:"extraButton",contents:[{label:"新建"},{label:"修改模板"},{label:"批量删除"},{label:"导入",type:"upload"},{label:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}]}),p.push({key:"rowButton",contents:[{label:"复制新增"},{label:"删除"}]})):(p.push({key:"extraButton",contents:[{label:"新增"},{label:"批量删除"},{label:"导入",type:"upload"},{label:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}]}),(W=v==null?void 0:v.filter(z=>(z==null?void 0:z.label)!=="操作"))!=null&&W.every(z=>(z==null?void 0:z.isRun)===!0)||((Q=(re=(te=r==null?void 0:r.find(z=>(z==null?void 0:z.key)==="contentPath"))==null?void 0:te.value)==null?void 0:re.split("/"))==null?void 0:Q[0])==="算法库"?p.push({key:"rowButton",contents:[{label:"查看"},{label:"复制新增"},{label:"编辑"},{label:"执行"},{label:"删除"}]}):p.push({key:"rowButton",contents:[{label:"查看"},{label:"复制新增"},{label:"编辑"},{label:"删除"}]})),p.push({key:"relatedFilter",contents:(I=(G=(X=f.find(z=>(z==null?void 0:z.key)==="relatedPath"))==null?void 0:X.value)==null?void 0:G.split("#$%"))==null?void 0:I[0],index:((J=(Z=(H=f.find(z=>(z==null?void 0:z.key)==="relatedPath"))==null?void 0:H.value)==null?void 0:Z.split("#$%"))==null?void 0:J[1])??""}),p.push({key:"tableFilter",contents:(le=f.find(z=>(z==null?void 0:z.key)==="tableFilter"))==null?void 0:le.value}),((oe=f==null?void 0:f.filter(z=>{var ne;return(ne=z==null?void 0:z.key)==null?void 0:ne.includes("groupName")}))==null?void 0:oe.length)===1)s.push({comp:"Table",compData:p,name:(U=(ee=f.find(z=>(z==null?void 0:z.key)==="groupName"))==null?void 0:ee.value)==null?void 0:U.replaceAll("'",""),isShow:!0});else{let z={comp:"Table",compData:p,isShow:!0};(se=f==null?void 0:f.filter(ne=>{var _e;return(_e=ne==null?void 0:ne.key)==null?void 0:_e.includes("groupName")}))==null||se.forEach(ne=>{z[ne.key.replace("groupName","name")]=ne.value}),s.push(z)}}),(s==null?void 0:s.length)>0)return{comp:"Group",compData:[{key:"groupContents",contents:s}],name:(c=r==null?void 0:r.find(p=>(p==null?void 0:p.key)==="contentPath"))==null?void 0:c.value,parentPath:(u=r==null?void 0:r.find(p=>(p==null?void 0:p.key)==="contentPath"))==null?void 0:u.parentPath,processMainPath:((d=r==null?void 0:r.find(p=>(p==null?void 0:p.key)==="parentMainPage"))==null?void 0:d.value)??""}}))==null?void 0:l.filter(r=>r)},TA=t=>{var r,s;const n=(r=t.map(i=>{var u,d;let c=(d=(u=i.key.split("("))==null?void 0:u[1])==null?void 0:d.trim();return c==null?void 0:c.slice(0,c.length-1)}))==null?void 0:r.filter(i=>i),o=[];n==null||n.forEach(i=>{var u,d;const c=[];if((u=_o.contentTrans(i))==null||u.forEach(f=>{var p,v,m,y,h,g,C,E,k,b,w,S,_,P;if(f.includes("{")&&f.includes("[")){let B=a.cloneDeep(f).split(":");f=(g=(v=(p=a.cloneDeep(B))==null?void 0:p[0])==null?void 0:v.split("{"))==null?void 0:g[((h=(y=(m=a.cloneDeep(B))==null?void 0:m[0])==null?void 0:y.split("{"))==null?void 0:h.length)-1].replaceAll("'",""),c.push(f);let T=(k=(E=(C=B==null?void 0:B[(B==null?void 0:B.length)-1])==null?void 0:C.split("}"))==null?void 0:E[0])==null?void 0:k.replaceAll("'",'"'),N=[];(w=(b=T.slice(1,T.length-1))==null?void 0:b.split(","))==null||w.forEach(V=>{N.push(V)}),c.push(N)}else if(f.includes("{")){let B=(S=f.split(":"))==null?void 0:S[0];f=(P=B==null?void 0:B.split("{"))==null?void 0:P[((_=B==null?void 0:B.split("{"))==null?void 0:_.length)-1].replaceAll("'",""),c.push(f)}else c.push(f)}),!c.some(f=>Array.isArray(f)))o.push(c);else{let f=[];c==null||c.forEach((p,v)=>{v!==c.length-1&&f.push(p)}),(d=c==null?void 0:c[(c==null?void 0:c.length)-1])==null||d.forEach(p=>{let v=a.cloneDeep(f);v.push(p),o.push(v)})}});const l=(s=o.filter(i=>i.length!==0))==null?void 0:s.map(i=>{let c="";return i.forEach(u=>{!u.includes("{")&&!(u!=null&&u.includes("$"))&&(c=c===""?c+a.cloneDeep(u):c+"/"+a.cloneDeep(u))}),c});return[...new Set(l)]},_A=(t,n)=>{const o=t.reduce((r,s,i)=>(s.key==="groupName"&&r.push(i),r),[]);if(o.length<2)return t.slice();const l=o[n];return t.slice(l)},BA=t=>{var p,v,m,y;let n=[];const o=TA(a.cloneDeep(t)),l=dA(a.cloneDeep(t));n.push(l);const r=aA(a.cloneDeep(t));r&&n.push(r);const s=rA(a.cloneDeep(t));s&&((p=a.cloneDeep(s))==null||p.forEach(h=>{n.push(h)}));const i=(v=a.cloneDeep(t))==null?void 0:v.filter(h=>{var g;return(g=h==null?void 0:h.key)==null?void 0:g.includes("(")}).map(h=>EA(h,o)).filter(h=>(h==null?void 0:h.length)!==0);let c=[];i==null||i.forEach(h=>{h==null||h.forEach(g=>{c!=null&&c.find(C=>{var E,k;return((E=C==null?void 0:C.find(b=>(b==null?void 0:b.key)==="contentPath"))==null?void 0:E.value)===((k=g==null?void 0:g.find(b=>(b==null?void 0:b.key)==="contentPath"))==null?void 0:k.value)})?c=c==null?void 0:c.map(C=>{var k,b;return((k=C==null?void 0:C.find(w=>(w==null?void 0:w.key)==="contentPath"))==null?void 0:k.value)===((b=g==null?void 0:g.find(w=>(w==null?void 0:w.key)==="contentPath"))==null?void 0:b.value)&&(C=[...C,...g.filter(w=>(w==null?void 0:w.key)!=="contentPath")]),C}):c.push(g)})});let u=(m=a.cloneDeep(i))==null?void 0:m.map(h=>{var g,C;return(C=(g=h==null?void 0:h[0])==null?void 0:g.find(E=>(E==null?void 0:E.key)==="contentPath"))==null?void 0:C.value});u==null||u.forEach(h=>{u!=null&&u.includes(h+ts.value)}),c=(y=a.cloneDeep(c))==null?void 0:y.map(h=>{var C,E,k;let g=(C=h==null?void 0:h.find(b=>(b==null?void 0:b.key)==="contentPath"))==null?void 0:C.value;return(E=a.cloneDeep(u))!=null&&E.find(b=>b===g+ts.value)?h=h==null?void 0:h.map(b=>((b==null?void 0:b.key)==="tableColumn"&&(b.isParent=!0),b)):(g==null?void 0:g[(g==null?void 0:g.length)-1])===ts.value?h=h==null?void 0:h.map(b=>((b==null?void 0:b.key)==="tableColumn"&&(h!=null&&h.find(w=>(w==null?void 0:w.key)==="groupName"&&(w==null?void 0:w.value)==="方法明细"))&&(b.isRun=!0),b)):((k=g==null?void 0:g.split("/"))==null?void 0:k[0])==="算法程序"&&(h=h==null?void 0:h.map(b=>((b==null?void 0:b.key)==="tableColumn"&&(b.isRun=!0),b))),h});let d=[],f=[];return c==null||c.forEach(h=>{var g,C,E,k,b,w;if(d.push(h),(E=(C=(g=h==null?void 0:h.find(S=>(S==null?void 0:S.key)==="tableColumn"))==null?void 0:g.value)==null?void 0:C[0])!=null&&E.includes("@-#isMain")){let S=(k=h==null?void 0:h.find(P=>(P==null?void 0:P.key)==="contentPath"))==null?void 0:k.value,_=(w=(b=h==null?void 0:h.find(P=>(P==null?void 0:P.key)==="tableContents"))==null?void 0:b.value)==null?void 0:w.map(P=>S+"/"+(P==null?void 0:P[0]));_==null||_.forEach(P=>{var B,T;if(!(c!=null&&c.find(N=>{var V;return((V=N==null?void 0:N.find(R=>(R==null?void 0:R.key)==="contentPath"))==null?void 0:V.value)===P}))){let N=[];N.push({key:"contentPath",value:P,parentPath:""});let V=S+"/",R=c==null?void 0:c.find(j=>{var q;return((q=j==null?void 0:j.find(D=>(D==null?void 0:D.key)==="contentPath"))==null?void 0:q.value)===V});if(R)N=[...N,...c==null?void 0:c.find(j=>{var q;return((q=j==null?void 0:j.find(D=>(D==null?void 0:D.key)==="contentPath"))==null?void 0:q.value)===V}).slice(1)];else{let j=(T=(B=h==null?void 0:h.filter(q=>(q==null?void 0:q.key)==="tableColumn"))==null?void 0:B.filter(q=>{var D,$;return($=(D=q==null?void 0:q.value)==null?void 0:D[0])==null?void 0:$.includes("@-#isMain")}))==null?void 0:T.length;N=[...N,..._A(h,j)]}R&&(f.push(P),d.push(N))}})}}),f==null||f.forEach(h=>{var g,C,E,k,b;n[0].compData[0].contents=Iv.addSelectMenu((C=(g=n==null?void 0:n[0])==null?void 0:g.compData)==null?void 0:C[0].contents,(E=h==null?void 0:h.split("/"))==null?void 0:E.filter((w,S)=>{var _;return S!==((_=h==null?void 0:h.split("/"))==null?void 0:_.length)-1}),(b=(k=h==null?void 0:h.split("/"))==null?void 0:k.filter((w,S)=>{var _;return S===((_=h==null?void 0:h.split("/"))==null?void 0:_.length)-1}))==null?void 0:b[0])}),n=[...n,...NA(d)],n},Bf=t=>{var s,i,c;let n=t;const o=[];let l="",r=0;for(const u of n)r++,u.includes("'")||l.includes("'")?(l+=u.trim(),((i=(s=a.cloneDeep(l))==null?void 0:s.split("'"))==null?void 0:i.length)===3&&((c=a.cloneDeep(l))==null?void 0:c[l.length-1])==="'"?(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l=""):r===(t==null?void 0:t.length)&&(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):(l+=u.trim(),o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="");return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o},PA=t=>{var r,s,i;const n=(s=(r=_o.contentTransArray(a.cloneDeep(t)))==null?void 0:r.filter(c=>c!==""))==null?void 0:s.map(c=>c.replaceAll("==","#").replaceAll(",",","));let o=(i=n==null?void 0:n.filter(c=>!c.includes("/*")&&!c.includes("*/")))==null?void 0:i.map(c=>_o.parseGroupValue(c));return o=o==null?void 0:o.map(c=>{var p,v;let u=(p=Bf(a.cloneDeep(c).value))==null?void 0:p.map(m=>{var y;return(m==null?void 0:m.length)===1&&(m=(y=m==null?void 0:m.replaceAll("<","["))==null?void 0:y.replaceAll(">","]")),m}).join("");return{key:(v=Bf(a.cloneDeep(c).key))==null?void 0:v.map(m=>{var y;return(m==null?void 0:m.length)===1&&(m=(y=m==null?void 0:m.replaceAll("<","["))==null?void 0:y.replaceAll(">","]")),m}).join(""),value:u}}),BA(o)};exports._sfc_main=tA;exports._sfc_main$1=nA;exports._sfc_main$2=oA;exports.expandToNewContents=PA;exports.savePageDataAsync=Qx;
|