k5web/assets/dep-71c4f289.42b742c7.js
2024-10-09 23:16:10 +08:00

256 lines
113 KiB
JavaScript

import{P as Ne,Q as ze,S as He,T as qn,f as L,b as te,ae as Zn,af as Qn,a9 as ea,ag as ta,ah as na,ai as jn,aj as aa,ak as ra,al as la,am as ua,n as pe,e as Ke,ac as An,Y as Be,i as Re,a3 as De,d as rt,Z as vt,an as ia,c as Qe,m as _t,h as ft,w as Pe,g as Ye,k as Le,ao as it,p as Mn,ap as En,a2 as Dn,aq as oa,ar as ca,a1 as nt,l as Rn,as as sa,O as Ot,at as jt,au as va,av as fa,aw as da,ax as ha,ay as ga}from"./index.cb3e7091.js";import{_ as dt,I as Tn,b as Xe,c as At,C as pa,i as ba,d as ya}from"./index.98ce9939.js";import{d as ue,c as m,j as z,g as Vn,r as Mt,w as ge,o as et,t as be,n as at,aI as M,aV as we,aY as ma,h as Ge,aU as ht,b as gt,i as pt,a as Ca,p as Pt,aK as Et}from"./arco.9755215d.js";import{P as Sa,d as $n,I as Oa,C as _a,a as Pa}from"./index.bfcac842.js";import{a as Ia}from"./form-model.13b193b5.js";import{a as Bn}from"./slot.c4dbb40e.js";function Dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Rt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dt(Object(n),!0).forEach(function(a){He(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var wa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M18.41 7.5l-4.5 4.5 4.5 4.5L17 17.91 11.09 12 17 6.09l1.41 1.41zm-6.5 0L7.41 12l4.5 4.5-1.41 1.41L4.59 12l5.91-5.91 1.41 1.41z"}}]},ka=ue({name:"ChevronLeftDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=m(()=>t.size),{className:r,style:l}=Ne(a),u=m(()=>["t-icon","t-icon-chevron-left-double",r.value]),i=m(()=>Rt(Rt({},l.value),n.style)),c=m(()=>({class:u.value,style:i.value,onClick:f=>{var s;return(s=t.onClick)===null||s===void 0?void 0:s.call(t,{e:f})}}));return()=>ze(wa,c.value)}});const xa=ka;function Tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Vt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tt(Object(n),!0).forEach(function(a){He(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var ja={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15.91 17.5l-5.5-5.5 5.5-5.5-1.41-1.41L7.59 12l6.91 6.91 1.41-1.41z"}}]},Aa=ue({name:"ChevronLeftIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=m(()=>t.size),{className:r,style:l}=Ne(a),u=m(()=>["t-icon","t-icon-chevron-left",r.value]),i=m(()=>Vt(Vt({},l.value),n.style)),c=m(()=>({class:u.value,style:i.value,onClick:f=>{var s;return(s=t.onClick)===null||s===void 0?void 0:s.call(t,{e:f})}}));return()=>ze(ja,c.value)}});const Fn=Aa;function $t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Bt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$t(Object(n),!0).forEach(function(a){He(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Ma={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.59 16.5l4.5-4.5-4.5-4.5L7 6.09 12.91 12 7 17.91 5.59 16.5zm6.5 0l4.5-4.5-4.5-4.5 1.41-1.41L19.41 12l-5.91 5.91-1.41-1.41z"}}]},Ea=ue({name:"ChevronRightDoubleIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=m(()=>t.size),{className:r,style:l}=Ne(a),u=m(()=>["t-icon","t-icon-chevron-right-double",r.value]),i=m(()=>Bt(Bt({},l.value),n.style)),c=m(()=>({class:u.value,style:i.value,onClick:f=>{var s;return(s=t.onClick)===null||s===void 0?void 0:s.call(t,{e:f})}}));return()=>ze(Ma,c.value)}});const Da=Ea;function Ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Lt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ft(Object(n),!0).forEach(function(a){He(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Ra={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.09 17.5l5.5-5.5-5.5-5.5L9.5 5.09 16.41 12 9.5 18.91 8.09 17.5z"}}]},Ta=ue({name:"ChevronRightIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=m(()=>t.size),{className:r,style:l}=Ne(a),u=m(()=>["t-icon","t-icon-chevron-right",r.value]),i=m(()=>Lt(Lt({},l.value),n.style)),c=m(()=>({class:u.value,style:i.value,onClick:f=>{var s;return(s=t.onClick)===null||s===void 0?void 0:s.call(t,{e:f})}}));return()=>ze(Ra,c.value)}});const Ln=Ta;function Nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function zt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nt(Object(n),!0).forEach(function(a){He(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Va={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3 10.5h3v3H3v-3zm7.5 0h3v3h-3v-3zm7.5 0h3v3h-3v-3z"}}]},$a=ue({name:"EllipsisIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=m(()=>t.size),{className:r,style:l}=Ne(a),u=m(()=>["t-icon","t-icon-ellipsis",r.value]),i=m(()=>zt(zt({},l.value),n.style)),c=m(()=>({class:u.value,style:i.value,onClick:f=>{var s;return(s=t.onClick)===null||s===void 0?void 0:s.call(t,{e:f})}}));return()=>ze(Va,c.value)}});const Ba=$a;function Ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Kt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ht(Object(n),!0).forEach(function(a){He(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Fa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.5 5v14h-2V5h2zm9.16 1.75L12.41 12l5.25 5.25-1.41 1.41L9.59 12l6.66-6.66 1.41 1.41z"}}]},La=ue({name:"PageFirstIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=m(()=>t.size),{className:r,style:l}=Ne(a),u=m(()=>["t-icon","t-icon-page-first",r.value]),i=m(()=>Kt(Kt({},l.value),n.style)),c=m(()=>({class:u.value,style:i.value,onClick:f=>{var s;return(s=t.onClick)===null||s===void 0?void 0:s.call(t,{e:f})}}));return()=>ze(Fa,c.value)}});const Na=La;function Wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ut(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wt(Object(n),!0).forEach(function(a){He(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var za={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M17.5 5v14h-2V5h2zm-9.75.34L14.41 12l-6.66 6.66-1.41-1.41L11.59 12 6.34 6.75l1.41-1.41z"}}]},Ha=ue({name:"PageLastIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=m(()=>t.size),{className:r,style:l}=Ne(a),u=m(()=>["t-icon","t-icon-page-last",r.value]),i=m(()=>Ut(Ut({},l.value),n.style)),c=m(()=>({class:u.value,style:i.value,onClick:f=>{var s;return(s=t.onClick)===null||s===void 0?void 0:s.call(t,{e:f})}}));return()=>ze(za,c.value)}});const Ka=Ha;function Gt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Yt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gt(Object(n),!0).forEach(function(a){He(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Wa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 6a6 6 0 100 12 6 6 0 000-12zm-8 6a8 8 0 1116 0 8 8 0 01-16 0z"}}]},Ua=ue({name:"RoundIcon",props:{size:{type:String},onClick:{type:Function}},setup(t,e){var{attrs:n}=e,a=m(()=>t.size),{className:r,style:l}=Ne(a),u=m(()=>["t-icon","t-icon-round",r.value]),i=m(()=>Yt(Yt({},l.value),n.style)),c=m(()=>({class:u.value,style:i.value,onClick:f=>{var s;return(s=t.onClick)===null||s===void 0?void 0:s.call(t,{e:f})}}));return()=>ze(Wa,c.value)}});const Ga=Ua;/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function Ze(t,e,n,a){var r=Vn(),l=r.emit,u=r.vnode,i=z(),c=u.props||{},f=Object.prototype.hasOwnProperty.call(c,a)||Object.prototype.hasOwnProperty.call(c,qn(a));return f?[t,function(s){l("update:".concat(a),s);for(var v=arguments.length,o=new Array(v>1?v-1:0),d=1;d<v;d++)o[d-1]=arguments[d];n==null||n.apply(void 0,[s].concat(o))}]:(i.value=e,[i,function(s){i.value=s;for(var v=arguments.length,o=new Array(v>1?v-1:0),d=1;d<v;d++)o[d-1]=arguments[d];n==null||n.apply(void 0,[s].concat(o))}])}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function Xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Jt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xt(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Ya=function(e){var n=e.data,a=e.container,r=e.fixedHeight,l=r===void 0?!1:r,u=e.lineHeight,i=u===void 0?30:u,c=e.bufferSize,f=c===void 0?20:c,s=e.threshold,v=s===void 0?100:s,o=Mt({visibleData:[],cachedHeight:[],cachedScrollY:[]}),d=m(function(){return n.value.length>v}),g=z(0),_=new Map,P=0,x=0,I=0,w=0,O=0,k=0,S=function(){n.value.forEach(function(T,R){T.$index=R,l&&(o.cachedScrollY[R]=R*i)}),l||(o.cachedScrollY[n.value.length-1]=void 0)};S();var y=m(function(){var j=o.cachedHeight,T=j.length;if(T){var R=j.reduce(function(H,K){return H+K||i},0);if(j.length===n.value.length)return R;var F=R/j.length;return R+(n.value.length-j.length)*F}return d.value?n.value.length*i:0}),h=m(function(){var j=o.visibleData,T=j[0];return T?j.length===1?0:o.cachedScrollY[T.$index]:0}),p=function(){k=Math.min(O+P+f*2,n.value.length),o.visibleData=n.value.slice(O,k)},b=function(){var T,R=_.get(I);if(!!R){var F=R==null||(T=R.getBoundingClientRect())===null||T===void 0?void 0:T.height;o.cachedScrollY[I]=a.value.scrollTop-w,o.cachedHeight[I]=F;for(var H=I+1;H<=((K=o.visibleData[o.visibleData.length-1])===null||K===void 0?void 0:K.$index);H++){var K,G=_.get(H),Z=(G==null?void 0:G.getBoundingClientRect())||{},J=Z.height;o.cachedHeight[H]=J;var ne=o.cachedScrollY[H-1]+o.cachedHeight[H-1];o.cachedScrollY.splice(H,1,ne)}for(var ie=I-1;ie>=((oe=o.visibleData[0])===null||oe===void 0?void 0:oe.$index);ie--){var oe,Me=_.get(ie),he=(Me==null?void 0:Me.getBoundingClientRect())||{},ke=he.height;o.cachedHeight[ie]=ke;var Te=o.cachedScrollY[ie+1]-o.cachedHeight[ie];o.cachedScrollY.splice(ie,1,Te)}if(o.cachedScrollY[0]>0){for(var Se=o.cachedScrollY[0],se=Math.min(k,n.value.length),q=0;q<se;q++)o.cachedScrollY.splice(q,1,o.cachedScrollY[q]-Se);var W=o.cachedScrollY[I-1]?o.cachedScrollY[I-1]+w:w;a.value.scrollTop=W,x=W}if(o.cachedScrollY[O]<0){var Y=o.cachedHeight.slice(0,Math.max(0,I)).reduce(function(de,ce){return de+ce},0)+w;a.value.scrollTop=Y,x=Y,Y===0&&(I=0,w=0)}at(function(){var de=a.value,ce=de.scrollTop,X=de.scrollHeight,Fe=de.clientHeight;if(ce+Fe===X)for(var Ce=k-1;Ce>=O;Ce--)Ce===k-1?o.cachedScrollY.splice(Ce,1,X.value-o.cachedHeight[Ce]):o.cachedScrollY.splice(Ce,1,o.cachedScrollY[Ce+1]-o.cachedHeight[Ce])})}},C=function(){if(!!d.value){var T=a.value.scrollTop,R=T-x;x=T,R+=w;var F=I;if(!!R){if(R>=0){for(;F<n.value.length&&R>(o.cachedHeight[F]||i);)o.cachedHeight[F]||(o.cachedHeight[F]=i),R-=o.cachedHeight[F],F++;F>=n.value.length?(I=n.value.length-1,w=0):(I=F,w=R);var H=a.value,K=H.clientHeight,G=H.scrollHeight;T+K===G&&(I=n.value.length-P+1),O<=I-f&&(O=Math.min(n.value.length-P,I-f),O<0&&(O=0))}else{for(;R<0;)F--,o.cachedHeight[F]||(o.cachedHeight[F]=i),R+=o.cachedHeight[F];F<0?(I=0,w=0):(I=F,w=R),b(),O>I-f&&(O=Math.max(0,I-f))}p()}}};!l&&ge(g,b,{flush:"post"});var A=function(){!d.value||g.value++};ge(n,function(){S(),o.visibleData=[],o.cachedScrollY=[],o.cachedHeight=[],x=0,I=0,w=0,O=0,_.clear(),n.value.length<=v?o.visibleData=n.value:p(),a.value&&(a.value.scrollTop=0)});var D=!1,E=function(){D&&(P=Math.ceil(a.value.offsetHeight/i),p())};return et(function(){if(!(!window||!window.IntersectionObserver)){var j=new window.IntersectionObserver(function(T){var R=T[0];(R.isIntersecting||R.intersectionRatio)&&(D=!0,d.value&&E(),j.unobserve(a.value))});a.value&&j.observe(a.value)}}),Jt(Jt({trs:_,scrollHeight:y},be(o)),{},{translateY:h,handleScroll:C,handleRowMounted:A,refreshContainer:E,fixedHeight:l,calculateScrollY:b})};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Xa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qt(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function ui(t,e){for(var n=Xa({},t),a=0;a<e.length;a++){var r=e[a];delete n[r]}return n}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Ja=ue({name:"TFakeArrow",props:{isActive:{type:Boolean},overlayClassName:{type:[String,Object,Array]},overlayStyle:{type:Object||String}},setup:function(e){var n=te("fake-arrow"),a=m(function(){return[n.value,L({},"".concat(n.value,"--active"),e.isActive),e.overlayClassName]});return{classes:a}},render:function(){return M("svg",{class:this.classes,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:this.overlayStyle},[M("path",{d:"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921",stroke:"black","stroke-opacity":"0.9","stroke-width":"1.3"},null)])}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var qa=Qn,Za=Ia,Qa=ea;function er(t,e,n){for(var a=-1,r=e.length,l={};++a<r;){var u=e[a],i=qa(t,u);n(i,u)&&Za(l,Qa(u,t),i)}return l}var tr=er,nr=tr,ar=ta;function rr(t,e){return nr(t,e,function(n,a){return ar(t,a)})}var lr=rr,ur=lr,ir=Zn,or=ir(function(t,e){return t==null?{}:ur(t,e)}),Nn=or;/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function cr(t,e,n,a){for(var r=t.length,l=n+(a?1:-1);a?l--:++l<r;)if(e(t[l],l,t))return l;return-1}var sr=cr;function vr(t){return t!==t}var fr=vr;function dr(t,e,n){for(var a=n-1,r=t.length;++a<r;)if(t[a]===e)return a;return-1}var hr=dr,gr=sr,pr=fr,br=hr;function yr(t,e,n){return e===e?br(t,e,n):gr(t,pr,n)}var mr=yr,Cr=mr;function Sr(t,e){var n=t==null?0:t.length;return!!n&&Cr(t,e,0)>-1}var Or=Sr;function _r(t,e,n){for(var a=-1,r=t==null?0:t.length;++a<r;)if(n(e,t[a]))return!0;return!1}var Pr=_r;/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Ir=aa,wr=Or,kr=Pr,xr=jn,jr=ra,Zt=la,Ar=Math.min;function Mr(t,e,n){for(var a=n?kr:wr,r=t[0].length,l=t.length,u=l,i=Array(l),c=1/0,f=[];u--;){var s=t[u];u&&e&&(s=xr(s,jr(e))),c=Ar(s.length,c),i[u]=!n&&(e||r>=120&&s.length>=120)?new Ir(u&&s):void 0}s=t[0];var v=-1,o=i[0];e:for(;++v<r&&f.length<c;){var d=s[v],g=e?e(d):d;if(d=n||d!==0?d:0,!(o?Zt(o,g):a(f,g,n))){for(u=l;--u;){var _=i[u];if(!(_?Zt(_,g):a(t[u],g,n)))continue e}o&&o.push(g),f.push(d)}}return f}var Er=Mr,Dr=ua;function Rr(t){return Dr(t)?t:[]}var Tr=Rr,Vr=jn,$r=Er,Br=na,Fr=Tr,Lr=Br(function(t){var e=Vr(t,Fr);return e.length&&e[0]===t[0]?$r(e):[]}),It=Lr;/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Nr={allowInput:Boolean,autoWidth:Boolean,autofocus:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:{type:Boolean,default:void 0},inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},label:{type:[String,Function]},loading:Boolean,minCollapsedNum:{type:Number,default:0},multiple:Boolean,panel:{type:[String,Function]},placeholder:{type:String,default:""},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:Boolean,prefixIcon:{type:Function},readonly:Boolean,reserveKeyword:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Boolean,Object,Array,Date],default:void 0},valueDisplay:{type:[String,Function]},onBlur:Function,onClear:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onPopupVisibleChange:Function,onTagChange:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var zr=["tips"];function Qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function me(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qt(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Hr=["status","clearable","disabled","label","placeholder","readonly","prefixIcon","suffix","suffixIcon","onPaste","onMouseenter","onMouseleave","size","autofocus"],Kr={label:"label",value:"value",children:"children"};function Wr(t,e){var n=me(me({},Kr),e);return Be(t)?t[n.label]:t}function Ur(t,e,n){var a,r=be(t),l=r.value,u=r.keys,i=r.inputValue,c=te(),f=z(t.autofocus),s=z(),v=Ze(i,(a=t.defaultInputValue)!==null&&a!==void 0?a:"",t.onInputChange,"inputValue"),o=pe(v,2),d=o[0],g=o[1],_=Re(),P=Ke(),x=m(function(){return me(me({},Nn(t,Hr)),{},{disabled:P.value})}),I=function(p){var b,C;p==null||(b=p.e)===null||b===void 0||b.stopPropagation(),(C=t.onClear)===null||C===void 0||C.call(t,p),g("",{trigger:"clear"})},w=function(p,b){t.allowInput&&g(p,me(me({},b),{},{trigger:b.trigger||"input"}))},O=function(p){var b,C=_("valueDisplay"),A=p&&t.allowInput?d.value:Wr(l.value,u.value),D=k(C,p),E=me(me({},x.value),{},{value:S(C,A,p),label:D.length?function(){return D}:void 0,autoWidth:t.autoWidth,readonly:!t.allowInput||t.readonly,placeholder:y(C),suffixIcon:!P.value&&t.loading?function(){return M(An,{loading:!0,size:"small"},null)}:t.suffixIcon,showClearIconOnEmpty:Boolean(t.clearable&&(d.value||A)&&!P.value&&!t.readonly)},t.inputProps),j=e.slots;j.tips;var T=dt(j,zr),R=p?["".concat(c.value,"-input--focused"),"".concat(c.value,"-is-focused"),E==null?void 0:E.inputClass]:E==null?void 0:E.inputClass,F=function(Z,J){var ne;(ne=t.onEnter)===null||ne===void 0||ne.call(t,l.value,me(me({},J),{},{inputValue:Z}))},H=function(Z,J){var ne,ie,oe=(ne=n.value)===null||ne===void 0?void 0:ne.getOverlayState();f.value||oe!=null&&oe.hover||(f.value=!0,(ie=t.onFocus)===null||ie===void 0||ie.call(t,l.value,me(me({},J),{},{inputValue:Z})))},K=function(Z,J){var ne,ie,oe=(ne=n.value)===null||ne===void 0?void 0:ne.getOverlayState();oe!=null&&oe.hover||(f.value=!1,(ie=t.onBlur)===null||ie===void 0||ie.call(t,l.value,me(me({},J),{},{inputValue:Z})))};return M(Tn,we({ref:s,style:(b=e.attrs)===null||b===void 0?void 0:b.style},me({onChange:w,onClear:I,onEnter:F,onFocus:H,onBlur:K},E),{inputClass:R}),T)},k=function(p,b){var C=_("label");if(!C&&!p)return[];if(p){var A,D;if((A=t.valueDisplayOptions)!==null&&A!==void 0&&A.usePlaceholder&&!l.value||(D=t.valueDisplayOptions)!==null&&D!==void 0&&D.useInputDisplay&&b)return[C]}return[C,p]},S=function(p,b,C){if(p){var A,D;if(!((A=t.valueDisplayOptions)!==null&&A!==void 0&&A.useInputDisplay)||(D=t.valueDisplayOptions)!==null&&D!==void 0&&D.useInputDisplay&&!C)return}return b},y=function(p){if(p){var b,C;if(!((b=t.valueDisplayOptions)!==null&&b!==void 0&&b.usePlaceholder)||(C=t.valueDisplayOptions)!==null&&C!==void 0&&C.usePlaceholder&&l.value)return""}return t.placeholder};return{inputRef:s,isSingleFocus:f,commonInputProps:x,singleInputValue:d,onInnerClear:I,renderSelectSingle:O}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Gr={autoWidth:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},disabled:{type:Boolean,default:void 0},dragSort:Boolean,excessTagsDisplayType:{type:String,default:"break-line",validator:function(e){return e?["scroll","break-line"].includes(e):!0}},inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number],default:""},label:{type:[String,Function]},max:{type:Number},minCollapsedNum:{type:Number,default:0},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:{type:Boolean,default:void 0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tag:{type:[String,Function]},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},valueDisplay:{type:[String,Function]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onDragSort:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onRemove:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function Yr(t){var e=z(),n=be(t),a=n.excessTagsDisplayType,r=n.readonly,l=n.disabled,u=z(0),i=z(),c=z(),f=z(!1),s=function(k){var S=k.children[0];i.value=S},v=function(){u.value=i.value.scrollWidth-i.value.clientWidth},o=function(k){var S;!De((S=i.value)===null||S===void 0?void 0:S.scroll)||i.value.scroll({left:k,behavior:"smooth"})},d=function(){v(),o(u.value),setTimeout(function(){f.value=!0},200)},g=function(){o(0)},_=function(k){var S=k.e;if(!(r.value||l.value)&&!!i.value)if(S.deltaX>0){var y=Math.min(i.value.scrollLeft+120,u.value);o(y)}else{var h=Math.max(i.value.scrollLeft-120,0);o(h)}},P=function(){a.value==="scroll"&&(c.value=setTimeout(function(){d(),clearTimeout(c.value)},100))},x=function(){a.value==="scroll"&&(f.value=!1,o(0),clearTimeout(c.value))},I=function(){var k,S=(k=e.value)===null||k===void 0?void 0:k.$el;!S||s(S)},w=function(){clearTimeout(c.value)};return et(I),ma(w),{tagInputRef:e,scrollElement:i,scrollDistance:u,scrollTo:o,scrollToRight:d,scrollToLeft:g,updateScrollElement:s,updateScrollDistance:v,onWheel:_,scrollToRightOnEnter:P,scrollToLeftOnLeave:x,isScrollable:f}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function st(t){return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},st(t)}var Xr=/^\s+/,Jr=/\s+$/;function B(t,e){if(t=t||"",e=e||{},t instanceof B)return t;if(!(this instanceof B))return new B(t,e);var n=qr(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}B.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,a,r,l,u,i;return n=e.r/255,a=e.g/255,r=e.b/255,n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),a<=.03928?u=a/12.92:u=Math.pow((a+.055)/1.055,2.4),r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),.2126*l+.7152*u+.0722*i},setAlpha:function(e){return this._a=zn(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=tn(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=tn(this._r,this._g,this._b),n=Math.round(e.h*360),a=Math.round(e.s*100),r=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+a+"%, "+r+"%)":"hsva("+n+", "+a+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=en(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=en(this._r,this._g,this._b),n=Math.round(e.h*360),a=Math.round(e.s*100),r=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+a+"%, "+r+"%)":"hsla("+n+", "+a+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return nn(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return tl(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(le(this._r,255)*100)+"%",g:Math.round(le(this._g,255)*100)+"%",b:Math.round(le(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(le(this._r,255)*100)+"%, "+Math.round(le(this._g,255)*100)+"%, "+Math.round(le(this._b,255)*100)+"%)":"rgba("+Math.round(le(this._r,255)*100)+"%, "+Math.round(le(this._g,255)*100)+"%, "+Math.round(le(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:dl[nn(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+an(this._r,this._g,this._b,this._a),a=n,r=this._gradientType?"GradientType = 1, ":"";if(e){var l=B(e);a="#"+an(l._r,l._g,l._b,l._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+n+",endColorstr="+a+")"},toString:function(e){var n=!!e;e=e||this._format;var a=!1,r=this._a<1&&this._a>=0,l=!n&&r&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return l?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(a=this.toRgbString()),e==="prgb"&&(a=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(a=this.toHexString()),e==="hex3"&&(a=this.toHexString(!0)),e==="hex4"&&(a=this.toHex8String(!0)),e==="hex8"&&(a=this.toHex8String()),e==="name"&&(a=this.toName()),e==="hsl"&&(a=this.toHslString()),e==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},clone:function(){return B(this.toString())},_applyModification:function(e,n){var a=e.apply(null,[this].concat([].slice.call(n)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(ll,arguments)},brighten:function(){return this._applyModification(ul,arguments)},darken:function(){return this._applyModification(il,arguments)},desaturate:function(){return this._applyModification(nl,arguments)},saturate:function(){return this._applyModification(al,arguments)},greyscale:function(){return this._applyModification(rl,arguments)},spin:function(){return this._applyModification(ol,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(vl,arguments)},complement:function(){return this._applyCombination(cl,arguments)},monochromatic:function(){return this._applyCombination(fl,arguments)},splitcomplement:function(){return this._applyCombination(sl,arguments)},triad:function(){return this._applyCombination(rn,[3])},tetrad:function(){return this._applyCombination(rn,[4])}};B.fromRatio=function(t,e){if(st(t)=="object"){var n={};for(var a in t)t.hasOwnProperty(a)&&(a==="a"?n[a]=t[a]:n[a]=tt(t[a]));t=n}return B(t,e)};function qr(t){var e={r:0,g:0,b:0},n=1,a=null,r=null,l=null,u=!1,i=!1;return typeof t=="string"&&(t=bl(t)),st(t)=="object"&&(Ve(t.r)&&Ve(t.g)&&Ve(t.b)?(e=Zr(t.r,t.g,t.b),u=!0,i=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ve(t.h)&&Ve(t.s)&&Ve(t.v)?(a=tt(t.s),r=tt(t.v),e=el(t.h,a,r),u=!0,i="hsv"):Ve(t.h)&&Ve(t.s)&&Ve(t.l)&&(a=tt(t.s),l=tt(t.l),e=Qr(t.h,a,l),u=!0,i="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=zn(n),{ok:u,format:t.format||i,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function Zr(t,e,n){return{r:le(t,255)*255,g:le(e,255)*255,b:le(n,255)*255}}function en(t,e,n){t=le(t,255),e=le(e,255),n=le(n,255);var a=Math.max(t,e,n),r=Math.min(t,e,n),l,u,i=(a+r)/2;if(a==r)l=u=0;else{var c=a-r;switch(u=i>.5?c/(2-a-r):c/(a+r),a){case t:l=(e-n)/c+(e<n?6:0);break;case e:l=(n-t)/c+2;break;case n:l=(t-e)/c+4;break}l/=6}return{h:l,s:u,l:i}}function Qr(t,e,n){var a,r,l;t=le(t,360),e=le(e,100),n=le(n,100);function u(f,s,v){return v<0&&(v+=1),v>1&&(v-=1),v<1/6?f+(s-f)*6*v:v<1/2?s:v<2/3?f+(s-f)*(2/3-v)*6:f}if(e===0)a=r=l=n;else{var i=n<.5?n*(1+e):n+e-n*e,c=2*n-i;a=u(c,i,t+1/3),r=u(c,i,t),l=u(c,i,t-1/3)}return{r:a*255,g:r*255,b:l*255}}function tn(t,e,n){t=le(t,255),e=le(e,255),n=le(n,255);var a=Math.max(t,e,n),r=Math.min(t,e,n),l,u,i=a,c=a-r;if(u=a===0?0:c/a,a==r)l=0;else{switch(a){case t:l=(e-n)/c+(e<n?6:0);break;case e:l=(n-t)/c+2;break;case n:l=(t-e)/c+4;break}l/=6}return{h:l,s:u,v:i}}function el(t,e,n){t=le(t,360)*6,e=le(e,100),n=le(n,100);var a=Math.floor(t),r=t-a,l=n*(1-e),u=n*(1-r*e),i=n*(1-(1-r)*e),c=a%6,f=[n,u,l,l,i,n][c],s=[i,n,n,u,l,l][c],v=[l,l,i,n,n,u][c];return{r:f*255,g:s*255,b:v*255}}function nn(t,e,n,a){var r=[Ae(Math.round(t).toString(16)),Ae(Math.round(e).toString(16)),Ae(Math.round(n).toString(16))];return a&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function tl(t,e,n,a,r){var l=[Ae(Math.round(t).toString(16)),Ae(Math.round(e).toString(16)),Ae(Math.round(n).toString(16)),Ae(Hn(a))];return r&&l[0].charAt(0)==l[0].charAt(1)&&l[1].charAt(0)==l[1].charAt(1)&&l[2].charAt(0)==l[2].charAt(1)&&l[3].charAt(0)==l[3].charAt(1)?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function an(t,e,n,a){var r=[Ae(Hn(a)),Ae(Math.round(t).toString(16)),Ae(Math.round(e).toString(16)),Ae(Math.round(n).toString(16))];return r.join("")}B.equals=function(t,e){return!t||!e?!1:B(t).toRgbString()==B(e).toRgbString()};B.random=function(){return B.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function nl(t,e){e=e===0?0:e||10;var n=B(t).toHsl();return n.s-=e/100,n.s=bt(n.s),B(n)}function al(t,e){e=e===0?0:e||10;var n=B(t).toHsl();return n.s+=e/100,n.s=bt(n.s),B(n)}function rl(t){return B(t).desaturate(100)}function ll(t,e){e=e===0?0:e||10;var n=B(t).toHsl();return n.l+=e/100,n.l=bt(n.l),B(n)}function ul(t,e){e=e===0?0:e||10;var n=B(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),B(n)}function il(t,e){e=e===0?0:e||10;var n=B(t).toHsl();return n.l-=e/100,n.l=bt(n.l),B(n)}function ol(t,e){var n=B(t).toHsl(),a=(n.h+e)%360;return n.h=a<0?360+a:a,B(n)}function cl(t){var e=B(t).toHsl();return e.h=(e.h+180)%360,B(e)}function rn(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=B(t).toHsl(),a=[B(t)],r=360/e,l=1;l<e;l++)a.push(B({h:(n.h+l*r)%360,s:n.s,l:n.l}));return a}function sl(t){var e=B(t).toHsl(),n=e.h;return[B(t),B({h:(n+72)%360,s:e.s,l:e.l}),B({h:(n+216)%360,s:e.s,l:e.l})]}function vl(t,e,n){e=e||6,n=n||30;var a=B(t).toHsl(),r=360/n,l=[B(t)];for(a.h=(a.h-(r*e>>1)+720)%360;--e;)a.h=(a.h+r)%360,l.push(B(a));return l}function fl(t,e){e=e||6;for(var n=B(t).toHsv(),a=n.h,r=n.s,l=n.v,u=[],i=1/e;e--;)u.push(B({h:a,s:r,v:l})),l=(l+i)%1;return u}B.mix=function(t,e,n){n=n===0?0:n||50;var a=B(t).toRgb(),r=B(e).toRgb(),l=n/100,u={r:(r.r-a.r)*l+a.r,g:(r.g-a.g)*l+a.g,b:(r.b-a.b)*l+a.b,a:(r.a-a.a)*l+a.a};return B(u)};B.readability=function(t,e){var n=B(t),a=B(e);return(Math.max(n.getLuminance(),a.getLuminance())+.05)/(Math.min(n.getLuminance(),a.getLuminance())+.05)};B.isReadable=function(t,e,n){var a=B.readability(t,e),r,l;switch(l=!1,r=yl(n),r.level+r.size){case"AAsmall":case"AAAlarge":l=a>=4.5;break;case"AAlarge":l=a>=3;break;case"AAAsmall":l=a>=7;break}return l};B.mostReadable=function(t,e,n){var a=null,r=0,l,u,i,c;n=n||{},u=n.includeFallbackColors,i=n.level,c=n.size;for(var f=0;f<e.length;f++)l=B.readability(t,e[f]),l>r&&(r=l,a=B(e[f]));return B.isReadable(t,a,{level:i,size:c})||!u?a:(n.includeFallbackColors=!1,B.mostReadable(t,["#fff","#000"],n))};var wt=B.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},dl=B.hexNames=hl(wt);function hl(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function zn(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function le(t,e){gl(t)&&(t="100%");var n=pl(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function bt(t){return Math.min(1,Math.max(0,t))}function Oe(t){return parseInt(t,16)}function gl(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function pl(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Ae(t){return t.length==1?"0"+t:""+t}function tt(t){return t<=1&&(t=t*100+"%"),t}function Hn(t){return Math.round(parseFloat(t)*255).toString(16)}function ln(t){return Oe(t)/255}var je=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+a),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+a),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+a),hsva:new RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ve(t){return!!je.CSS_UNIT.exec(t)}function bl(t){t=t.replace(Xr,"").replace(Jr,"").toLowerCase();var e=!1;if(wt[t])t=wt[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=je.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=je.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=je.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=je.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=je.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=je.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=je.hex8.exec(t))?{r:Oe(n[1]),g:Oe(n[2]),b:Oe(n[3]),a:ln(n[4]),format:e?"name":"hex8"}:(n=je.hex6.exec(t))?{r:Oe(n[1]),g:Oe(n[2]),b:Oe(n[3]),format:e?"name":"hex"}:(n=je.hex4.exec(t))?{r:Oe(n[1]+""+n[1]),g:Oe(n[2]+""+n[2]),b:Oe(n[3]+""+n[3]),a:ln(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=je.hex3.exec(t))?{r:Oe(n[1]+""+n[1]),g:Oe(n[2]+""+n[2]),b:Oe(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function yl(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var ml={closable:Boolean,color:{type:String,default:""},content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,icon:{type:Function,default:void 0},maxWidth:{type:[String,Number]},shape:{type:String,default:"square",validator:function(e){return e?["square","round","mark"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","warning","danger","success"].includes(e):!0}},variant:{type:String,default:"dark",validator:function(e){return e?["dark","light","outline","light-outline"].includes(e):!0}},onClick:Function,onClose:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function un(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Cl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?un(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Kn=ue({name:"TTag",props:ml,setup:function(e){var n=rt("tag"),a=n.globalConfig,r=te("tag"),l=vt({CloseIcon:ia}),u=l.CloseIcon,i=Re(),c=ft(),f=Qe(),s=f.SIZE,v=m(function(){return["".concat(r.value),"".concat(r.value,"--").concat(e.theme),"".concat(r.value,"--").concat(e.variant),L(L(L(L({},"".concat(r.value,"--ellipsis"),e.maxWidth),"".concat(r.value,"--close"),e.closable),"".concat(r.value,"--disabled"),e.disabled),s.value[e.size],e.size!=="medium"),e.shape!=="square"&&"".concat(r.value,"--").concat(e.shape)]}),o=m(function(){var P=e.maxWidth,x=d();return e.maxWidth?Cl({maxWidth:isNaN(Number(P))?String(P):"".concat(P,"px")},x):x}),d=function(){var x=e.color,I=e.variant;if(!x)return{};var w=B(x).getLuminance(),O={color:w>.5?"black":"white"};if((I==="outline"||I==="light-outline")&&(O.borderColor=x),I!=="outline"){var k=function(){var y=B(x).toRgb(),h=y.r,p=y.g,b=y.b;return"rgba(".concat(h,", ").concat(p,", ").concat(b,", 0.1)")};O.backgroundColor=I==="dark"?x:k()}return I!=="dark"&&(O.color=x),O},g=function(x){var I;e.disabled||(I=e.onClick)===null||I===void 0||I.call(e,{e:x})},_=function(){if(!e.closable)return null;var x="".concat(r.value,"__icon-close");return a.value.closeIcon?Ge(a.value.closeIcon(Ge),{class:x}):M(u,{onClick:function(w){var O,k=w.e;k.stopPropagation(),(O=e.onClose)===null||O===void 0||O.call(e,{e:k})},class:x},null)};return function(){var P=_(),x=c("default","content"),I=i("icon"),w=_t(x)?x:"",O=w&&e.maxWidth?w:void 0;return M("div",{class:v.value,style:o.value,onClick:g},[I,M("span",{class:"".concat(r.value,"--text"),title:O},[x]),!e.disabled&&P])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Sl={checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,checkedProps:{type:Object},content:{type:[String,Number,Array,Function]},default:{type:[String,Function]},disabled:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},uncheckedProps:{type:Object},value:{type:[String,Number]},onChange:Function,onClick:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var ii=/^ArrowDown$/i,oi=/^ArrowUp$/i,ci=/^Escape$/i,Ol=/^Space$/i,_l=/^Enter$/i,si=/^(Shift|ShiftLeft|ShiftRight)$/i,vi=/^KeyC$/i,fi=/^(KeyA|KeyL)$/i,on=/^(Enter|Space)$/i;/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function sn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function Pl(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!ht(t)}var Wn=ue({name:"TCheckTag",props:Sl,setup:function(e){var n=te("tag"),a=Qe(),r=a.SIZE,l=ft(),u=be(e),i=u.checked,c=u.modelValue,f=Xe(i,c,e.defaultChecked,e.onChange,"checked"),s=pe(f,2),v=s[0],o=s[1],d=m(function(){return["".concat(n.value),"".concat(n.value,"--check"),r.value[e.size],L(L({},"".concat(n.value,"--checked"),v.value),"".concat(n.value,"--disabled"),e.disabled)]}),g=m(function(){var w=sn({theme:"primary"},e.checkedProps),O=sn({},e.uncheckedProps);return v.value?w:O}),_=function(O){var k=O.e;if(!e.disabled){var S;(S=e.onClick)===null||S===void 0||S.call(e,{e:k}),o(!v.value,{e:k,value:e.value})}},P=function(O){var k,S=O.code||((k=O.key)===null||k===void 0?void 0:k.trim()),y=Ol.test(S)||_l.test(S);y&&(O.preventDefault(),o(!v.value,{e:O,value:e.value}))},x=function(O){O.currentTarget.addEventListener("keydown",P)},I=function(O){O.currentTarget.removeEventListener("keydown",P)};return function(){var w=l("default","content");return M(Kn,we({class:d.value,disabled:e.disabled,tabindex:e.disabled?void 0:"0",onFocus:x,onBlur:I},g.value,{onClick:_}),Pl(w)?w:{default:function(){return[w]}})}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Il={checkedProps:{type:Object},multiple:Boolean,options:{type:Array},uncheckedProps:{type:Object},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function wl(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!ht(t)}var kl=ue({name:"TCheckTagGroup",props:Il,setup:function(e,n){var a=be(e),r=a.value,l=a.modelValue,u=a.options,i=te("check-tag-group"),c=m(function(){return[i.value]}),f=Xe(r,l,e.defaultValue,e.onChange),s=pe(f,2),v=s[0],o=s[1],d=function(P,x){var I=x.value;if(P)e.multiple?o(v.value.concat(I),{e:x.e,type:"check",value:I}):o([I],{e:x.e,type:"check",value:I});else{var w=[];e.multiple&&(w=v.value.filter(function(O){return O!==I})),o(w,{e:x.e,type:"uncheck",value:I})}},g=function(P){return n.slots.option?n.slots.option(P):n.slots.label?n.slots.label(P):P.label?De(P.label)?P.label(Ge):P.label:P.content&&De(P.content)?P.content(Ge):P.default&&De(P.default)?P.default(Ge):P.value};return function(){return M("div",{class:c.value},[(u.value||[]).map(function(_){var P;return M(Wn,{key:_.value,value:_.value,checkedProps:e.checkedProps,uncheckedProps:e.uncheckedProps,checked:v.value.includes(_.value),onChange:d,disabled:_.disabled,size:_.size,"data-value":_.value},wl(P=g(_))?P:{default:function(){return[P]}})})])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var vn=Pe(Kn);Pe(Wn);Pe(kl);/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function qe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function xl(t){var e=Re(),n=te(),a=be(t),r=a.value,l=a.modelValue,u=a.onRemove,i=a.max,c=a.minCollapsedNum,f=a.size,s=a.tagProps,v=a.getDragProps,o=Xe(r,l,t.defaultValue||[],t.onChange),d=pe(o,2),g=d[0],_=d[1],P=z(),x=Ke(),I=At(),w=function(b){var C,A=Ye(g.value),D=A.splice(b.index,1),E=pe(D,1),j=E[0];_(A,qe(qe({trigger:"tag-remove"},b),{},{item:j})),(C=u.value)===null||C===void 0||C.call(u,qe(qe({},b),{},{item:j,trigger:"tag-remove",value:A}))},O=function(b){_([],{trigger:"clear",e:b.e})},k=function(b,C){var A,D,E=b?String(b).trim():"",j=i&&((A=g.value)===null||A===void 0?void 0:A.length)>=i.value,T=g.value;!j&&E&&(T=g.value instanceof Array?g.value.concat(String(E)):[E],_(T,{trigger:"enter",index:T.length-1,item:E,e:C.e})),t==null||(D=t.onEnter)===null||D===void 0||D.call(t,T,qe(qe({},C),{},{inputValue:b}))},S=function(b){!g.value||!g.value.length||(P.value=b)},y=function(b,C){var A=C.e;if(!(!g.value||!g.value.length||A.key==="Process")){var D=/(Backspace|NumpadDelete)/i.test(A.code)||/(Backspace|NumpadDelete)/i.test(A.key);if(!b&&D){var E,j=g.value.length-1,T=g.value[j],R="backspace",F=g.value.slice(0,-1);_(F,{e:A,index:j,item:T,trigger:R}),(E=u.value)===null||E===void 0||E.call(u,{e:A,index:j,item:T,trigger:R,value:F})}P.value=b}},h=function(b){var C,A=b.displayNode,D=b.label,E=c.value?g.value.slice(0,c.value):g.value,j=A?[A]:(E==null||(C=E.map)===null||C===void 0?void 0:C.call(E,function(F,H){var K,G=e("tag",{params:{value:F}});return M(vn,we({key:"".concat(F).concat(H),size:f.value,disabled:x.value,onClose:function(J){return w({e:J.e,index:H})},closable:!I.value&&!x.value},(K=v.value)===null||K===void 0?void 0:K.call(v,H,F),s.value),{default:function(){return[G!=null?G:F]}})}))||[];if([null,void 0,""].includes(D)||j.unshift(M("div",{class:"".concat(n.value,"-tag-input__prefix"),key:"label"},[D])),E.length!==(g.value||[]).length){var T=g.value.length-E.length,R=e("collapsedItems",{params:{value:g.value,count:g.value.length-c.value,collapsedTags:g.value.slice(c.value,g.value.length),collapsedSelectedItems:g.value.slice(c.value,g.value.length),onClose:w}});j.push(R!=null?R:M(vn,we({key:"more",size:f.value},s.value),{default:function(){return["+",T]}}))}return j};return{tagValue:g,clearAll:O,onClose:w,onInnerEnter:k,onInputBackspaceKeyUp:S,onInputBackspaceKeyDown:y,renderLabel:h}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function jl(t){var e=t.disabled,n=t.readonly,a=t.onMouseenter,r=t.onMouseleave,l=z(!1),u=function(f){n||e||(l.value=!0,a==null||a(f))},i=function(f){n||e||(l.value=!1,r==null||r(f))};return{isHover:l,addHover:u,cancelHover:i}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function Al(t){var e=t.sortOnDraggable,n=t.onDragSort,a=t.onDragOverCheck,r=z(-1),l=z(null),u=z(null),i=Mt({nodeX:0,nodeWidth:0,mouseX:0}),c=function(g,_,P){if(g.preventDefault(),!(r.value===_||r.value===-1)){var x=g.target;if(!(a!=null&&a.targetClassNameRegExp&&!(a!=null&&a.targetClassNameRegExp.test(x.className)))){if(a!=null&&a.x&&x){if(!i.nodeWidth)return;var I=x.getBoundingClientRect(),w=I.x,O=I.width,k=w+O/2,S=g.clientX-(i.mouseX-i.nodeX),y=S+i.nodeWidth,h=!1;if(S>w&&S<w+O?h=S<k:h=y>k,!h)return}n==null||n({currentIndex:r.value,current:l,target:P,targetIndex:_}),r.value=_}}};if(!e)return{};function f(d,g,_){r.value=g,l.value=_;var P=d.target;if(a&&P){var x=P.getBoundingClientRect(),I=x.x,w=x.width;i.nodeX=I,i.nodeWidth=w,i.mouseX=d.clientX}}function s(){u.value=!0}function v(){u.value,u.value=!1,r.value=-1,l.value=null}function o(d,g){return e?{draggable:!0,onDragstart:function(P){f(P,d,g)},onDragover:function(P){c(P,d,g)},onDrop:function(){s()},onDragend:function(){v()}}:{}}return{onDragStart:f,onDragOver:c,onDrop:s,onDragEnd:v,getDragProps:o,dragging:r.value!==-1}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function We(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Ml=function(){return{NAME_CLASS:te("tag-input"),CLEAR_CLASS:te("tag-input__suffix-clear"),BREAK_LINE_CLASS:te("tag-input--break-line")}},El=ue({name:"TTagInput",props:We({},Gr),setup:function(e){var n=Ml(),a=n.NAME_CLASS,r=n.CLEAR_CLASS,l=n.BREAK_LINE_CLASS,u=vt({CloseCircleFilledIcon:pa}),i=u.CloseCircleFilledIcon,c=Ke(),f=At(),s=be(e),v=s.inputValue,o=s.inputProps,d=Ze(v,e.defaultInputValue,e.onInputChange,"inputValue"),g=pe(d,2),_=g[0],P=g[1],x=be(e),I=x.excessTagsDisplayType,w=x.clearable,O=x.placeholder,k=jl({readonly:f.value,disabled:c.value,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave}),S=k.isHover,y=k.addHover,h=k.cancelHover,p=z(!1),b=rt(),C=b.classPrefix,A=z(!1),D=Al(We(We({},e),{},{sortOnDraggable:e.dragSort,onDragOverCheck:{x:!0,targetClassNameRegExp:new RegExp("^".concat(C.value,"-tag"))}})),E=D.getDragProps,j=Yr(e),T=j.scrollToRight,R=j.onWheel,F=j.scrollToRightOnEnter,H=j.scrollToLeftOnLeave,K=j.tagInputRef,G=j.isScrollable,Z=xl(Mt(We(We({},be(e)),{},{getDragProps:E}))),J=Z.tagValue,ne=Z.onInnerEnter,ie=Z.onInputBackspaceKeyUp,oe=Z.onInputBackspaceKeyDown,Me=Z.clearAll,he=Z.renderLabel,ke=Z.onClose,Te=m(function(){var ae=!(Le(J.value)&&J.value.length);return[a.value,L(L(L({},l.value,I.value==="break-line"),"".concat(C.value,"-is-empty"),ae),"".concat(C.value,"-tag-input--with-tag"),!ae)]}),Se=m(function(){var ae;return(ae=J.value)!==null&&ae!==void 0&&ae.length?"":O.value}),se=m(function(){var ae;return Boolean(!f.value&&!c.value&&w.value&&S.value&&(((ae=J.value)===null||ae===void 0?void 0:ae.length)||_.value))}),q=function(Q,ee){var V,$;(V=ee.e)===null||V===void 0||($=V.preventDefault)===null||$===void 0||$.call(V),P("",{e:ee.e,trigger:"enter"}),!p.value&&ne(Q,ee),at(function(){T(),p.value=!1})},W=function(Q,ee){var V,$;p.value=!0,(V=o.value)===null||V===void 0||($=V.onCompositionstart)===null||$===void 0||$.call(V,Q,ee)},Y=function(Q,ee){var V,$;p.value=!1,(V=o.value)===null||V===void 0||($=V.onCompositionend)===null||$===void 0||$.call(V,Q,ee)},de=function(Q){var ee;c.value||(A.value=!0,K.value.focus(),(ee=e.onClick)===null||ee===void 0||ee.call(e,Q))},ce=function(Q){var ee;Me(Q),P("",{e:Q.e,trigger:"clear"}),(ee=e.onClear)===null||ee===void 0||ee.call(e,Q)},X=function(){K.value.focus()},Fe=function(){K.value.blur()},Ce=function(Q){y(Q),F()},mt=function(Q){h(Q),H()},lt=function(Q,ee){var V;A.value||(A.value=!0,(V=e.onFocus)===null||V===void 0||V.call(e,J.value,{e:ee.e,inputValue:Q}))},Ct=function(Q,ee){var V;A.value=!1,P("",{e:ee.e,trigger:"blur"}),(V=e.onBlur)===null||V===void 0||V.call(e,J.value,{e:ee.e,inputValue:Q})},St=function(Q,ee){P(Q,We(We({},ee),{},{trigger:"input"}))};return ge(function(){return G.value},function(ae){if(e.excessTagsDisplayType==="scroll"){var Q="".concat(C.value,"-input__prefix"),ee=K.value.$el.querySelector(".".concat(Q));ae?ee.classList.add("".concat(Q,"--scrollable")):ee.classList.remove("".concat(Q,"--scrollable"))}}),{CLEAR_CLASS:r,CloseCircleFilledIcon:i,tagValue:J,tInputValue:_,isHover:S,tagInputPlaceholder:Se,showClearIcon:se,tagInputRef:K,classPrefix:C,isFocused:A,focus:X,blur:Fe,setTInputValue:P,onMouseEnter:Ce,onMouseLeave:mt,onInnerFocus:lt,onInnerBlur:Ct,onInnerChange:St,addHover:y,cancelHover:h,onInputEnter:q,onInnerEnter:ne,onInputBackspaceKeyUp:ie,onInputBackspaceKeyDown:oe,renderLabel:he,onWheel:R,scrollToRightOnEnter:F,scrollToLeftOnLeave:H,onClick:de,onClearClick:ce,onClose:ke,onInputCompositionstart:W,onInputCompositionend:Y,classes:Te,isDisabled:c,isReadonly:f}},render:function(){var e=this,n,a=this.CloseCircleFilledIcon,r=this.showClearIcon?M(a,{class:this.CLEAR_CLASS,onClick:this.onClearClick},null):it(this,"suffixIcon"),l=it(this,"prefixIcon"),u="".concat(this.classPrefix,"-tag-input__with-suffix-icon");r&&!this.classes.includes(u)&&this.classes.push(u);var i=it(this,"valueDisplay",{params:{value:this.tagValue,onClose:function(o){return e.onClose({index:o})}}}),c=it(this,"label",{silent:!0}),f=this.inputProps,s=this.isReadonly||(f==null?void 0:f.readonly);return M(Tn,we({ref:"tagInputRef",borderless:this.borderless,readonly:s,showInput:!s||!this.tagValue||!((n=this.tagValue)!==null&&n!==void 0&&n.length),value:this.tInputValue,autoWidth:!0,size:this.size,disabled:this.isDisabled,label:function(){return e.renderLabel({displayNode:i,label:c})},class:this.classes,tips:this.tips,status:this.status,placeholder:this.tagInputPlaceholder,suffix:this.suffix,suffixIcon:function(){return r},prefixIcon:function(){return l},keepWrapperWidth:!this.autoWidth,onWheel:this.onWheel,onChange:this.onInnerChange,onPaste:this.onPaste,onEnter:this.onInputEnter,onKeyup:this.onInputBackspaceKeyUp,onKeydown:this.onInputBackspaceKeyDown,onMouseenter:this.onMouseEnter,onMouseleave:this.onMouseLeave,onFocus:this.onInnerFocus,onBlur:this.onInnerBlur,onClick:this.onClick,onCompositionstart:this.onInputCompositionstart,onCompositionend:this.onInputCompositionend},this.inputProps),{suffix:this.$slots.suffix})}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Dl=Pe(El);/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Rl=["tips"];function hn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function xe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Tl={label:"label",key:"key",children:"children"};function Vl(t,e,n){var a=be(t),r=a.inputValue,l=te(),u=z(),i=z(t.autofocus),c=Ze(r,t.defaultInputValue,t.onInputChange,"inputValue"),f=pe(c,2),s=f[0],v=f[1],o=Ke(),d=m(function(){return xe(xe({},Tl),t.keys)}),g=m(function(){return t.value instanceof Array?t.value.map(function(S){return Be(S)?S[d.value.label]:S}):Be(t.value)?[t.value[d.value.label]]:[t.value]}),_=m(function(){return!g.value||!g.value.length?t.placeholder:""}),P=function(y,h){var p;if(h.trigger==="tag-remove"){var b;(b=h.e)===null||b===void 0||b.stopPropagation()}(p=t.onTagChange)===null||p===void 0||p.call(t,y,h)},x=function(y,h){h.trigger==="enter"||h.trigger==="blur"||v(y,{trigger:h.trigger,e:h.e})},I=function(y,h){var p,b,C=(p=n.value)===null||p===void 0?void 0:p.getOverlayState();C!=null&&C.hover||(i.value=!1,(b=t.onBlur)===null||b===void 0||b.call(t,t.value,xe(xe({},h),{},{tagInputValue:y})))},w=function(y,h){var p,b,C=(p=n.value)===null||p===void 0?void 0:p.getOverlayState();if(!(i.value||C!=null&&C.hover)){i.value=!0;var A=xe(xe({},h),{},{tagInputValue:y});(b=t.onFocus)===null||b===void 0||b.call(t,t.value,A)}},O=function(y,h){var p,b=xe(xe({},h),{},{tagInputValue:y});(p=t.onEnter)===null||p===void 0||p.call(t,t.value,b)},k=function(y){var h=xe(xe({},y.commonInputProps),{},{tagProps:t.tagProps,label:t.label,autoWidth:t.autoWidth,readonly:t.readonly,placeholder:_.value,minCollapsedNum:t.minCollapsedNum,collapsedItems:t.collapsedItems,tag:t.tag,value:g.value,valueDisplay:t.valueDisplay,inputValue:y.popupVisible&&y.allowInput?s.value:"",inputProps:xe({readonly:!t.allowInput||t.readonly,inputClass:L({},"".concat(l.value,"-input--focused"),y.popupVisible)},t.inputProps),suffixIcon:!o.value&&t.loading?function(){return M(An,{loading:!0,size:"small"},null)}:t.suffixIcon},t.tagInputProps),p=e.slots;p.tips;var b=dt(p,Rl);return M(Dl,we({ref:u},h,{onInputChange:x,onChange:P,onClear:y.onInnerClear,onBlur:I,onEnter:O,onFocus:w}),b)};return{tags:g,tPlaceholder:_,tagInputRef:u,isMultipleFocus:i,multipleInputValue:s,renderSelectMultiple:k}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function gn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function pn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var $l=1e3,Bl=0;function Fl(t){var e=be(t),n=e.popupProps,a=e.autoWidth,r=z(!1),l=Ke(),u=function(v,o){var d=o.scrollHeight>o.offsetHeight?Bl:0,g=o.offsetWidth+d>=v.offsetWidth?o.offsetWidth:v.offsetWidth,_={};return n.value&&Mn(n.value.overlayInnerStyle)==="object"&&!n.value.overlayInnerStyle.width&&(_=n.value.overlayInnerStyle),pn({width:"".concat(Math.min(g,$l),"px")},_)},i=function(v,o){if(!(l.value||t.readonly)){var d=o.trigger==="trigger-element-click"&&t.allowInput?!0:v;if(t.popupVisible!==d){var g;r.value=d,(g=t.onPopupVisibleChange)===null||g===void 0||g.call(t,d,o)}}},c=function(v,o){var d;return pn({width:"".concat(Math.max(v.offsetWidth,o.offsetWidth),"px")},(d=n.value)===null||d===void 0?void 0:d.overlayInnerStyle)},f=m(function(){var s,v={},o=((s=n.value)===null||s===void 0?void 0:s.overlayInnerStyle)||{};return De(o)||Be(o)&&o.width?v=o:a.value?v=c:v=u,v});return{tOverlayInnerStyle:f,innerPopupVisible:r,onInnerPopupVisibleChange:i}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function $e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Ll=function(){return{NAME_CLASS:te("select-input"),BASE_CLASS_BORDERLESS:te("select-input--borderless"),BASE_CLASS_MULTIPLE:te("select-input--multiple"),BASE_CLASS_POPUP_VISIBLE:te("select-input--popup-visible"),BASE_CLASS_EMPTY:te("select-input--empty")}},Nl=ue({name:"TSelectInput",props:$e($e({},Nr),{},{valueDisplayOptions:{type:Object}}),setup:function(e,n){var a=Ll(),r=a.NAME_CLASS,l=a.BASE_CLASS_BORDERLESS,u=a.BASE_CLASS_MULTIPLE,i=a.BASE_CLASS_POPUP_VISIBLE,c=a.BASE_CLASS_EMPTY,f=te(),s=Re(),v=z(),o=z(),d=be(e),g=d.multiple,_=d.value,P=d.popupVisible,x=d.borderless,I=Fl(e),w=I.tOverlayInnerStyle,O=I.innerPopupVisible,k=I.onInnerPopupVisibleChange,S=Ur(e,n,o),y=S.isSingleFocus,h=S.commonInputProps,p=S.onInnerClear,b=S.renderSelectSingle,C=Vl(e,n,o),A=C.isMultipleFocus,D=C.tagInputRef,E=C.renderSelectMultiple,j=m(function(){return e.multiple?A.value:y.value}),T=m(function(){var H;return["".concat(r.value),L(L(L(L({},u.value,g.value),l.value,x.value),i.value,(H=P.value)!==null&&H!==void 0?H:O.value),c.value,_.value instanceof Array?!_.value.length:!_.value)]}),R=function(K){var G,Z=K.code||((G=K.key)===null||G===void 0?void 0:G.trim());if(/(ArrowDown|ArrowUp)/.test(Z)&&!P.value){var J,ne=$e($e({},n),{},{trigger:"trigger-element-focus"});(J=e.onPopupVisibleChange)===null||J===void 0||J.call(e,!0,ne)}};ge([j],function(H){var K=pe(H,1),G=K[0];P.value||(G?v.value.addEventListener("keydown",R):v.value.removeEventListener("keydown",R))}),et(function(){!P.value&&j&&v.value.addEventListener("keydown",R)}),gt(function(){v.value.removeEventListener("keydown",R)});var F=function(K){var G,Z;(G=K.e)===null||G===void 0||G.stopPropagation(),!(K.e.target.tabIndex>=0)&&e.multiple&&((Z=D.value)===null||Z===void 0||Z.focus())};return{classPrefix:f,NAME_CLASS:r,innerPopupVisible:O,commonInputProps:h,tOverlayInnerStyle:w,selectInputRef:v,popupRef:o,classes:T,onInnerClear:p,renderTNodeJSX:s,renderSelectSingle:b,renderSelectMultiple:E,onOverlayClick:F,onInnerPopupVisibleChange:k}},render:function(){var e,n,a=this,r={visible:(e=this.popupVisible)!==null&&e!==void 0?e:this.innerPopupVisible},l=M(Sa,we({ref:"popupRef",trigger:((n=this.popupProps)===null||n===void 0?void 0:n.trigger)||"click",placement:"bottom-left"},r,{content:this.panel,hideEmptyPopup:!0},$e($e({onVisibleChange:this.onInnerPopupVisibleChange,onOverlayClick:this.onOverlayClick},this.popupProps),{},{overlayInnerStyle:this.tOverlayInnerStyle})),$e({default:function(){return[a.multiple?a.renderSelectMultiple({commonInputProps:a.commonInputProps,onInnerClear:a.onInnerClear,popupVisible:r.visible,allowInput:a.allowInput}):a.renderSelectSingle(r.visible)]}},$e($e({},this.$slots),{},{content:this.$slots.panel}))),u=this.renderTNodeJSX("tips"),i=["".concat(this.classPrefix,"-input__tips"),"".concat(this.classPrefix,"-tips"),"".concat(this.classPrefix,"-is-").concat(this.status)];return M("div",{ref:"selectInputRef",class:this.classes},[l,u&&M("div",{class:i},[u])])}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var zl=Pe(Nl);/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Hl={checkAll:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,label:{type:String,default:""},title:{type:String,default:""},value:{type:[String,Number]}};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Kl={checkAll:Boolean,checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},indeterminate:Boolean,label:{type:[String,Function]},lazyLoad:Boolean,name:{type:String,default:""},value:{type:[String,Number,Boolean]},onChange:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Un=Symbol("CheckboxGroupProvide");/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function Wl(t,e,n,a){if(typeof window>"u")return null;if(!window||!window.IntersectionObserver)return n(),null;var r=null;try{r=new window.IntersectionObserver(function(l){var u=l[0];u.isIntersecting&&(n(),r.unobserve(t))},{rootMargin:"0px 0px ".concat(a,"px 0px"),root:e}),r.observe(t)}catch(l){console.error(l),n()}return r}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function Ul(t,e){var n=z(),a=z(!0),r=function(){if(!!e.value){a.value=!1;var u=Wl(t.value,null,function(){a.value=!0},0);n.value=u}};return et(r),ge([e,t],r),gt(function(){!e.value||n.value.unobserve(t.value)}),{showCheckbox:a}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function Gl(t){var e=function(l){var u=on.test(l.key)||on.test(l.code);if(u){l.preventDefault();var i=l.currentTarget.querySelector("input"),c=i.disabled;!c&&t(l)}},n=function(l){l.currentTarget.addEventListener("keydown",e)},a=function(l){l.currentTarget.removeEventListener("keydown",e)};return{onCheckboxFocus:n,onCheckboxBlur:a}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function yn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function mn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Gn=ue({name:"TCheckbox",props:mn(mn({},Kl),{},{needRipple:Boolean,stopLabelTrigger:Boolean,index:Number,data:Object}),setup:function(e){var n=z();e.needRipple&&En(n);var a=Qe(),r=a.STATUS,l=be(e),u=l.checked,i=l.modelValue,c=l.lazyLoad,f=Xe(u,i,e.defaultChecked,e.onChange,"checked"),s=pe(f,2),v=s[0],o=s[1],d=pt(Un,void 0),g=z();ge(function(){return[e.name,d==null?void 0:d.value.name].join("_")},function(){var R=e.name||(d==null?void 0:d.value.name);R&&(g.value=R)},{immediate:!0});var _=z(!1),P=function(){var F=e.value,H=e.checkAll;return H?d==null?void 0:d.value.isCheckAll:d!=null&&d.value?d.value.checkedValues.includes(F):v.value};ge(function(){var R;return[v.value,d==null?void 0:d.value.isCheckAll,d==null||(R=d.value.checkedValues)===null||R===void 0?void 0:R.join(",")]},function(){_.value=P()},{immediate:!0});var x=m(function(){return!e.checkAll&&!_.value&&d!==null&&d!==void 0&&d.value.maxExceeded?!0:null}),I=m(function(){return d==null?void 0:d.value.disabled}),w=Ke({beforeDisabled:x,afterDisabled:I}),O=m(function(){return d==null?void 0:d.value.readonly}),k=At({afterReadonly:O}),S=z(!1);ge(function(){return[e.checkAll,e.indeterminate,d==null?void 0:d.value.indeterminate]},function(){S.value=e.checkAll?d==null?void 0:d.value.indeterminate:e.indeterminate},{immediate:!0});var y=te("checkbox"),h=z({});ge([_,w,S],function(){h.value=["".concat(y.value),L(L(L({},r.value.checked,_.value),r.value.disabled,w.value),r.value.indeterminate,S.value)]},{immediate:!0});var p=function(F){if(!k.value){var H=!_.value;o(H,{e:F}),d!=null&&d.value.handleCheckboxChange&&d.value.onCheckedChange({checked:H,checkAll:e.checkAll,e:F,option:e})}},b=ft(),C=function(F){e.stopLabelTrigger&&F.preventDefault()},A=Ul(n,c),D=A.showCheckbox,E=Gl(p),j=E.onCheckboxFocus,T=E.onCheckboxBlur;return function(){return M("label",{ref:n,class:h.value,tabindex:w.value?void 0:"0",onFocus:j,onBlur:T},[D.value?[M("input",{type:"checkbox",tabindex:"-1",class:"".concat(y.value,"__former"),disabled:w.value,readonly:k.value,indeterminate:S.value,name:g.value,value:e.value?e.value:void 0,checked:_.value,onChange:p,key:"input"},null),M("span",{class:"".concat(y.value,"__input"),key:"input-span"},null),M("span",{class:"".concat(y.value,"__label"),key:"label",onClick:C},[b("default","label")])]:null])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Yl={disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},lazyLoad:Boolean,max:{type:Number,default:void 0},name:{type:String,default:""},options:{type:Array},value:{type:Array,default:void 0},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:function(){return[]}},onChange:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Xl=ue({name:"TCheckboxGroup",props:Yl,setup:function(e){var n=te("checkbox-group"),a=Re(),r=Array.isArray,l=be(e),u=l.value,i=l.modelValue,c=Xe(u,i,e.defaultValue,e.onChange),f=pe(c,2),s=f[0],v=f[1],o=z([]),d=m(function(){if(!r(s.value))return 0;var y=o.value.map(function(p){return p.value}),h=It(s.value,y);return h.length}),g=m(function(){var y=o.value.filter(function(p){return!p.disabled&&!p.readonly&&!p.checkAll}).map(function(p){return p.value}),h=It(y,s.value);return h.length===y.length}),_=m(function(){return!g.value&&d.value<o.value.length&&d.value!==0}),P=m(function(){return!ba(e.max)&&s.value.length===e.max});Ca(function(){if(!e.options)return[];o.value=e.options.map(function(y){return Be(y)?y:{label:String(y),value:y}})});var x=function(){for(var h=new Set,p=0,b=o.value.length;p<b;p++){var C=o.value[p];if(!C.checkAll&&!C.disabled&&!C.readonly&&(h.add(C.value),P.value))break}return Ye(h)},I=function(h,p){var b=h?x():[];v(b,{e:p.e,type:h?"check":"uncheck",current:void 0,option:void 0})},w=function(h){var p=h.option.value;if(!r(s.value)){console.warn("TDesign CheckboxGroup Warn: `value` must be an array, instead of ".concat(Mn(s.value)));return}var b=Ye(s.value);if(h.checked)b.push(p);else{var C=b.indexOf(p);b.splice(C,1)}v(b,{e:h.e,current:h.option.value,option:h.option,type:h.checked?"check":"uncheck"})},O=function(h){var p=h.checked,b=h.checkAll,C=h.e;b?I(p,{e:C}):w(h)},k=Bn(),S=function(){var h=k("Checkbox"),p=[];return h==null||h.forEach(function(b){var C=b.props;!C||((C["check-all"]===""||C["check-all"]===!0)&&(C.checkAll=!0),p.push(C))}),p};return Pt(Un,m(function(){return{name:e.name,isCheckAll:g.value,checkedValues:s.value||[],maxExceeded:P.value,disabled:e.disabled,readonly:e.readonly,indeterminate:_.value,handleCheckboxChange:w,onCheckedChange:O}})),function(){var y,h=null;if((y=e.options)!==null&&y!==void 0&&y.length){var p;h=(p=o.value)===null||p===void 0?void 0:p.map(function(C,A){var D;return M(Gn,we({key:"".concat(C.value||"").concat(A),lazyLoad:e.lazyLoad},C,{index:A,checked:(D=s.value)===null||D===void 0?void 0:D.includes(C.value),data:C}),null)})}else{var b=a("default");o.value=S(),h=b}return M("div",{class:n.value,role:"group","aria-label":"checkbox-group"},[h])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Jl=Pe(Gn),di=Pe(Xl);/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function ql(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Zl(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(f){throw f},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,u=!0,i=!1;return{s:function(){n=n.call(t)},n:function(){var f=n.next();return u=f.done,f},e:function(f){i=!0,l=f},f:function(){try{u||n.return==null||n.return()}finally{if(i)throw l}}}}function Zl(t,e){if(t){if(typeof t=="string")return Cn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cn(t,e):void 0}}function Cn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}var yt=Symbol("selectProvide"),kt=function(e,n){var a=n.value.get(e);return(a==null?void 0:a.label)||(e==null?void 0:e.toString())},Ql=function(e,n){var a=[],r=ql(e),l;try{for(r.s();!(l=r.n()).done;){var u=l.value,i=kt(u,n);i&&a.push(i)}}catch(c){r.e(c)}finally{r.f()}return a},Yn=function(e,n){var a=Dn(e),r=a.indexOf(n);return r<0?a.push(n):a.splice(r,1),{value:a,isCheck:r<0}};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function Sn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function On(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Sn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function eu(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!ht(t)}var xt=ue({name:"TOption",props:On(On({},Hl),{},{createAble:Boolean,multiple:Boolean,index:Number,rowIndex:Number,trs:Map,scrollType:String,isVirtual:Boolean,bufferSize:Number,checkAll:Boolean}),emits:["row-mounted"],setup:function(e,n){var a=pt(yt),r=Ke(),l=m(function(){return a.value.max!==0&&a.value.max<=a.value.selectValue.length}),u=m(function(){return r.value||e.multiple&&l.value&&!g.value&&!a.value.isCheckAll}),i=ft(),c=te("select"),f=Qe(),s=f.STATUS,v=f.SIZE,o=z(),d=z(!1),g=m(function(){return a.value.isCheckAll&&!e.disabled?!0:e.multiple?a.value.selectValue.includes(e.value):a.value.selectValue===e.value}),_=m(function(){return e.checkAll?a.value.indeterminate:!1}),P=m(function(){return["".concat(c.value,"-option"),[v.value[a.value.size]],L(L(L({},s.value.disabled,u.value),s.value.selected,g.value),"".concat(c.value,"-option__hover"),(d.value||a.value.hoverIndex===e.index)&&!u.value)]}),x=m(function(){return e.label||e.value}),I=function(k){if(!(e.disabled||u.value)){if(e.multiple){w(!g.value,{e:k}),k.preventDefault();return}if(e.createAble){var S,y;if((S=(y=a.value).handleCreate)===null||S===void 0||S.call(y,e.value),a.value.multiple){a.value.handleValueChange([].concat(Ye(a.value.selectValue),[e.value]),{selectedOptions:a.value.getSelectedOptions(),trigger:"check",e:k});return}}var h=a.value.getSelectedOptions(e.value);a.value.handleValueChange(e.value,{option:h==null?void 0:h[0],selectedOptions:h,trigger:"check",e:k}),a.value.handlePopupVisibleChange(!1,{e:k})}},w=function(k,S){if(e.checkAll){a.value.onCheckAllChange(k);return}var y=Yn(a.value.selectValue,e.value),h=a.value.getSelectedOptions(y.value);a.value.handleValueChange(y.value,{option:h.find(function(p){return p.value===e.value}),selectedOptions:h,trigger:k?"check":"uncheck",e:S.e}),a.value.reserveKeyword||a.value.handlerInputChange("")};return et(function(){var O=e.trs,k=e.rowIndex,S=e.isVirtual;S&&(O.set(k,o.value),n.emit("row-mounted"))}),gt(function(){if(e.isVirtual){var O=e.trs,k=e.rowIndex;O.delete(k)}}),En(o),function(){var O=i("default","content")||x.value;return M("li",{ref:o,class:P.value,title:e.title||"".concat(x.value),onMouseenter:function(){return d.value=!0},onMouseleave:function(){return d.value=!1},onClick:I},[a&&e.multiple?M(Jl,{checked:g.value,disabled:u.value,onChange:w,indeterminate:_.value},eu(O)?O:{default:function(){return[O]}}):M("span",null,[O])])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var tu={divider:{type:Boolean,default:!0},label:{type:String,default:""}};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function _n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function nu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_n(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var Xn=ue({name:"TOptionGroup",props:nu({},tu),setup:function(e){var n=pt(yt),a=te("select-option-group"),r=Qe(),l=r.SIZE,u=Re(),i=m(function(){return[a.value,l.value[n.value.size],L({},"".concat(a.value,"__divider"),e.divider)]});return function(){return M("li",{class:i.value},[M("div",{class:"".concat(a.value,"__header")},[e.label]),u("default")])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var _e={autoWidth:Boolean,autofocus:Boolean,borderless:Boolean,clearable:Boolean,collapsedItems:{type:Function},creatable:Boolean,disabled:{type:Boolean,default:void 0},empty:{type:[String,Function]},filter:{type:Function},filterable:Boolean,inputProps:{type:Object},inputValue:{type:[String,Number],default:void 0},defaultInputValue:{type:[String,Number]},keys:{type:Object},label:{type:[String,Function]},loading:Boolean,loadingText:{type:[String,Function]},max:{type:Number,default:0},minCollapsedNum:{type:Number,default:0},multiple:Boolean,options:{type:Array},panelBottomContent:{type:[String,Function]},panelTopContent:{type:[String,Function]},placeholder:{type:String,default:void 0},popupProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:Boolean,prefixIcon:{type:Function},readonly:Boolean,reserveKeyword:Boolean,scroll:{type:Object},selectInputProps:{type:Object},showArrow:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},status:{type:String,default:"default",validator:function(e){return e?["default","success","warning","error"].includes(e):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tagInputProps:{type:Object},tagProps:{type:Object},tips:{type:[String,Function]},value:{type:[String,Number,Boolean,Object,Array],default:void 0},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:void 0},valueDisplay:{type:[String,Function]},valueType:{type:String,default:"value",validator:function(e){return e?["value","object"].includes(e):!0}},onBlur:Function,onChange:Function,onClear:Function,onCreate:Function,onEnter:Function,onFocus:Function,onInputChange:Function,onPopupVisibleChange:Function,onRemove:Function,onSearch:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var au=function(e){var n,a,r,l,u,i=m(function(){var p,b,C;return((p=e.scroll)===null||p===void 0?void 0:p.type)==="virtual"&&((b=e.options.value)===null||b===void 0?void 0:b.length)>(((C=e.scroll)===null||C===void 0?void 0:C.threshold)||100)}),c=((n=e.scroll)===null||n===void 0?void 0:n.type)==="virtual"?Ya({container:e.popupContentRef,data:e.options,fixedHeight:((a=e.scroll)===null||a===void 0?void 0:a.isFixedRowHeight)||!1,lineHeight:((r=e.scroll)===null||r===void 0?void 0:r.rowHeight)||28,bufferSize:((l=e.scroll)===null||l===void 0?void 0:l.bufferSize)||20,threshold:((u=e.scroll)===null||u===void 0?void 0:u.threshold)||100}):{},f=c.trs,s=f===void 0?null:f,v=c.visibleData,o=v===void 0?null:v,d=c.handleScroll,g=d===void 0?null:d,_=c.scrollHeight,P=_===void 0?null:_,x=c.translateY,I=x===void 0?null:x,w=c.handleRowMounted,O=w===void 0?null:w,k=-1,S=function(b){if(!!i.value){var C=b.target,A=C.scrollTop;Math.abs(k-A)>5?(g(),k=A):k=-1}};et(function(){var p;(p=e.popupContentRef.value)===null||p===void 0||p.addEventListener("scroll",S)}),gt(function(){var p;(p=e.popupContentRef.value)===null||p===void 0||p.removeEventListener("scroll",S)});var y=m(function(){return{position:"absolute",width:"1px",height:"1px",transition:"transform 0.2s",transform:"translate(0, ".concat(P.value,"px)"),"-ms-transform":"translate(0, ".concat(P.value,"px)"),"-moz-transform":"translate(0, ".concat(P.value,"px)"),"-webkit-transform":"translate(0, ".concat(P.value,"px)")}}),h=m(function(){return{transform:"translate(0, ".concat(I.value,"px)"),"-ms-transform":"translate(0, ".concat(I.value,"px)"),"-moz-transform":"translate(0, ".concat(I.value,"px)"),"-webkit-transform":"translate(0, ".concat(I.value,"px)")}});return{trs:s,scrollHeight:P,translateY:I,visibleData:o,handleRowMounted:O,isVirtual:i,cursorStyle:y,panelStyle:h}};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function ru(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!ht(t)}var lu=ue({name:"TSelectPanel",props:{inputValue:_e.inputValue,panelTopContent:_e.panelTopContent,panelBottomContent:_e.panelBottomContent,empty:_e.empty,creatable:_e.creatable,loading:_e.loading,loadingText:_e.loadingText,multiple:_e.multiple,filterable:_e.filterable,filter:_e.filter,scroll:_e.scroll,size:_e.size},setup:function(e,n){var a=n.expose,r=te("select"),l=Re(),u=oa(),i=rt("select"),c=i.t,f=i.globalConfig,s=pt(yt),v=z(null),o=m(function(){return s.value.popupContentRef.value}),d=m(function(){return e.creatable&&e.filterable&&e.inputValue}),g=m(function(){return s.value.displayOptions}),_=au({scroll:e.scroll,popupContentRef:o,options:g}),P=_.trs,x=_.visibleData,I=_.handleRowMounted,w=_.isVirtual,O=_.panelStyle,k=_.cursorStyle,S=m(function(){return!g.value.length}),y=function(){return M("ul",{class:["".concat(r.value,"__create-option"),"".concat(r.value,"__list")]},[M(xt,{value:e.inputValue,label:"".concat(e.inputValue),createAble:!0,class:"".concat(r.value,"__create-option--special")},null)])},h=function(A){return M("ul",{class:"".concat(r.value,"__list")},[A.map(function(D,E){var j,T;if(D.group){var R;return M(Xn,{label:D.group,divider:D.divider},ru(R=h(D.children))?R:{default:function(){return[R]}})}return M(xt,we(ca(D,"index","$index","className","tagName"),w.value?{rowIndex:D.$index,trs:P,scrollType:(j=e.scroll)===null||j===void 0?void 0:j.type,isVirtual:w.value,bufferSize:(T=e.scroll)===null||T===void 0?void 0:T.bufferSize,key:"".concat(D.$index||"","_").concat(E)}:{key:"".concat(E,"_").concat(D.value)},{index:E,multiple:e.multiple,onRowMounted:I}),D.slots)})])},p=m(function(){return{small:"s",medium:"m",large:"l"}[s.value.size]});a({innerRef:v,visibleData:x,isVirtual:w,displayOptions:g});var b=function(A,D){return M("div",{ref:v,class:["".concat(r.value,"__dropdown-inner"),"".concat(r.value,"__dropdown-inner--size-").concat(p.value)],style:D},[d.value&&y(),e.loading&&u("loadingText",{defaultNode:M("div",{class:"".concat(r.value,"__loading-tips")},[c(f.value.loadingText)])}),!e.loading&&S.value&&!d.value&&u("empty",{defaultNode:M("div",{class:"".concat(r.value,"__empty")},[c(f.value.empty)])}),!S.value&&!e.loading&&h(A)])};return{renderPanel:b,panelStyle:O,cursorStyle:k,isVirtual:w,displayOptions:g,visibleData:x,renderTNodeJSX:l}},render:function(){return this.isVirtual?M(Et,null,[this.renderTNodeJSX("panelTopContent"),M("div",null,[M("div",{style:this.cursorStyle},null),this.renderPanel(this.visibleData,this.panelStyle)]),this.renderTNodeJSX("panelBottomContent")]):M(Et,null,[this.renderTNodeJSX("panelTopContent"),this.renderPanel(this.displayOptions),this.renderTNodeJSX("panelBottomContent")])}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function ot(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=uu(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(f){throw f},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,u=!0,i=!1;return{s:function(){n=n.call(t)},n:function(){var f=n.next();return u=f.done,f},e:function(f){i=!0,l=f},f:function(){try{u||n.return==null||n.return()}finally{if(i)throw l}}}}function uu(t,e){if(t){if(typeof t=="string")return Pn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(t,e):void 0}}function Pn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function In(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?In(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var iu=function(e,n,a){var r=Bn(),l=z([]),u=m(function(){var s,v=0,o=((s=e.options)===null||s===void 0?void 0:s.map(function(C){var A=function(E){var j=n.value,T=j.value,R=j.label,F=j.disabled,H=Ie(Ie({},E),{},{index:v,label:nt(E,R),value:nt(E,T),disabled:nt(E,F)});return v++,H};return C.group&&C.children?Ie(Ie({},C),{},{children:C.children.map(function(D){return A(D)})}):A(C)}))||[],d=r("Option"),g=r("OptionGroup");if(Le(g)){var _=ot(g),P;try{for(_.s();!(P=_.n()).done;){var x,I=P.value,w=Ie(Ie({group:(x=I.props)===null||x===void 0?void 0:x.label},I.props),{},{children:[]}),O=r("Option",I.children);if(!!Le(O)){var k=ot(O),S;try{for(k.s();!(S=k.n()).done;){var y=S.value;w.children.push(Ie(Ie({},y.props),{},{slots:y.children,index:v})),v++}}catch(C){k.e(C)}finally{k.f()}o.push(w)}}}catch(C){_.e(C)}finally{_.f()}}if(Le(d)){var h=ot(d),p;try{for(h.s();!(p=h.n()).done;){var b=p.value;o.push(Ie(Ie({},b.props),{},{slots:b.children,index:v})),v++}}catch(C){h.e(C)}finally{h.f()}}return o}),i=m(function(){var s=[],v=function(d){var g=ot(d),_;try{for(g.s();!(_=g.n()).done;){var P=_.value;P.group?v(P.children):s.push(P)}}catch(x){g.e(x)}finally{g.f()}};return v(u.value),s}),c=m(function(){var s=new Map;return l.value.concat(i.value).forEach(function(v){s.set(v.value,v)}),s}),f=m(function(){if(e.onSearch&&e.filterable||!a.value||!(e.filterable||De(e.filter)))return u.value;var s=function(d){var g,_;return De(e.filter)?e.filter("".concat(a.value),d):((g=d.label)===null||g===void 0||(_=g.toLowerCase)===null||_===void 0?void 0:_.call(g).indexOf("".concat(a.value).toLowerCase()))>-1},v=[];return u.value.forEach(function(o){o.group&&o.children&&v.push(Ie(Ie({},o),{},{children:o.children.filter(s)})),s(o)&&v.push(o)}),v});return{options:u,optionsMap:c,optionsList:i,optionsCache:l,displayOptions:f}};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function ou(t){var e=t.displayOptions,n=t.optionsList,a=t.innerPopupVisible,r=t.setInnerPopupVisible,l=t.selectPanelRef,u=t.isFilterable,i=t.isRemoteSearch,c=t.getSelectedOptions,f=t.setInnerValue,s=t.innerValue,v=t.popupContentRef,o=t.multiple,d=t.max,g=z(-1),_=z([]),P=z([]),x=te(),I=function(O){var k,S,y=e.value.length,h=g.value;switch(O.code){case"ArrowUp":O.preventDefault(),g.value===-1?h=0:g.value===0||g.value>e.value.length-1?h=y-1:h--,(k=n.value[h])!==null&&k!==void 0&&k.disabled&&h--,g.value=h;break;case"ArrowDown":O.preventDefault(),g.value===-1||g.value>=y-1?h=0:h++,(S=n.value[h])!==null&&S!==void 0&&S.disabled&&h++,g.value=h;break;case"Enter":if(g.value===-1)break;var p=l.value.isVirtual&&u.value&&P.value.length?P.value:i.value?n.value:_.value;if(p.length||(p=n.value),!a.value){r(!0,{e:O});break}if(o){var C;if(g.value===-1)return;var A=(C=p[g.value])===null||C===void 0?void 0:C.value;if(!A)return;var D=Yn(s.value,A);if(d>0&&D.value.length>d)return;var E=c(D.value);f(D.value,{option:E.find(function(j){return j.value==A}),selectedOptions:E,trigger:D.isCheck?"check":"uncheck",e:O}),_.value=[]}else{var b=c(p[g.value].value);f(p[g.value].value,{option:b==null?void 0:b[0],selectedOptions:c(p[g.value].value),trigger:"check",e:O}),r(!1,{e:O})}break;case"Escape":r(!1,{e:O});break}};return ge(a,function(w){w&&(g.value=-1,P.value=[],_.value=[])}),ge(g,function(w){var O,k=(O=l.value)===null||O===void 0||(O=O.innerRef)===null||O===void 0?void 0:O.querySelector(".".concat(x.value,"-select-option")).clientHeight,S=k*w;v.value.scrollTo({top:S,behavior:"smooth"})}),{hoverIndex:g,handleKeyDown:I,virtualFilteredOptions:P,filteredOptions:_}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var cu=["overlayClassName"];function su(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=vu(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(f){throw f},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,u=!0,i=!1;return{s:function(){n=n.call(t)},n:function(){var f=n.next();return u=f.done,f},e:function(f){i=!0,l=f},f:function(){try{u||n.return==null||n.return()}finally{if(i)throw l}}}}function vu(t,e){if(t){if(typeof t=="string")return wn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wn(t,e):void 0}}function wn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function kn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function Ee(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var fu=ue({name:"TSelect",props:Ee(Ee({},_e),{},{valueDisplayOptions:{type:Object}}),setup:function(e,n){var a=n.slots,r=te(),l=Ke(),u=Re(),i=te("select"),c=rt("select"),f=c.globalConfig,s=c.t,v=be(e),o=v.popupVisible,d=v.inputValue,g=v.modelValue,_=v.value,P=Ze(d,e.defaultInputValue,e.onInputChange,"inputValue"),x=pe(P,2),I=x[0],w=x[1],O=Xe(_,g,e.defaultValue,e.onChange),k=pe(O,2),S=k[0],y=k[1],h=z(null),p=z(null),b=m(function(){var V,$,N;return{label:((V=e.keys)===null||V===void 0?void 0:V.label)||"label",value:(($=e.keys)===null||$===void 0?void 0:$.value)||"value",disabled:((N=e.keys)===null||N===void 0?void 0:N.disabled)||"disabled"}}),C=iu(e,b,I),A=C.optionsMap,D=C.optionsList,E=C.optionsCache,j=C.displayOptions,T=m(function(){return S.value===void 0?e.multiple?[]:void 0:e.valueType==="object"?e.multiple?S.value.map(function(V){return V[b.value.value]}):S.value[b.value.value]:S.value}),R=function($,N){if(e.valueType==="object"){var U=b.value,re=U.value,ve=U.label,fe=function(Je){if(Je!==void 0){var ut=A.value.get(Je);return L(L({},re,nt(ut,re)),ve,nt(ut,ve))}};$=e.multiple?$.map(function(ye){return fe(ye)}):fe($)}$!==S.value&&y($,Ee({selectedOptions:Se($)},N))},F=Ze(o,!1,function(V,$){var N;(N=e.onPopupVisibleChange)===null||N===void 0||N.call(e,V,$)},"popupVisible"),H=pe(F,2),K=H[0],G=H[1],Z=m(function(){var V;return(V=!e.multiple&&K.value&&kt(T.value,A)||e.placeholder)!==null&&V!==void 0?V:s(f.value.placeholder)}),J=m(function(){return e.multiple?Ql(T.value,A):kt(T.value,A)}),ne=m(function(){var V=e.multiple&&Le(T.value)?T.value.map(function(U){var re;return{value:U,label:(re=A.value.get(U))===null||re===void 0?void 0:re.label}}):T.value,$={value:V,onClose:e.multiple?function(U){return Me(U)}:function(){}};if(e.minCollapsedNum&&e.multiple){var N;return Ee(Ee({},$),{},{displayValue:V==null||(N=V.slice)===null||N===void 0?void 0:N.call(V,0,e.minCollapsedNum)})}return $}),ie=m(function(){return Boolean(e.filterable||f.value.filterable||De(e.filter))}),oe=m(function(){return Boolean((e.filterable||f.value.filterable)&&De(e.onSearch))}),Me=function($,N){var U;N&&N.stopPropagation();var re=Dn(T.value),ve=re[$];re.splice($,1),R(re,{selectedOptions:Se(re),trigger:"tag-remove",e:N}),(U=e.onRemove)===null||U===void 0||U.call(e,{value:ve,data:A.value.get(ve),e:N})},he=function(){var $;!I.value||(($=e.onCreate)===null||$===void 0||$.call(e,I.value),w(""))},ke=m(function(){var V;return(V=p.value)===null||V===void 0?void 0:V.popupRef.getOverlay()}),Te=m(function(){return D.value.filter(function(V){return!V.disabled&&!V["check-all"]&&!V.checkAll})}),Se=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:T.value;return D.value.filter(function(N){if(!N.checkAll)return Le($)?$.includes(N.value):$===N.value})},se=ou({displayOptions:j,optionsList:D,innerPopupVisible:K,setInnerPopupVisible:G,selectPanelRef:h,isFilterable:ie,isRemoteSearch:oe,getSelectedOptions:Se,setInnerValue:R,innerValue:T,popupContentRef:ke,multiple:e.multiple,max:e.max}),q=se.hoverIndex,W=se.virtualFilteredOptions,Y=se.handleKeyDown,de=se.filteredOptions,ce=function($){if(!!e.multiple){var N=$?Te.value.map(function(U){return U.value}):[];R(N,{selectedOptions:Se(N),trigger:$?"check":"clear"})}},X=m(function(){var V=Te.value.map(function(N){return N.value}),$=It(T.value,V);return $.length}),Fe=m(function(){return X.value===Te.value.length}),Ce=m(function(){return!Fe.value&&X.value!==0}),mt=m(function(){return{max:e.max,multiple:e.multiple,hoverIndex:q.value,selectValue:T.value,reserveKeyword:e.reserveKeyword,handleValueChange:R,handlerInputChange:w,handlePopupVisibleChange:G,handleCreate:he,size:e.size,popupContentRef:ke,indeterminate:Ce.value,isCheckAll:Fe.value,onCheckAllChange:ce,getSelectedOptions:Se,displayOptions:j.value}});Pt(yt,mt);var lt=function(){!e.multiple&&Le(S.value)&&y(void 0,{selectedOptions:[],trigger:"default"}),e.multiple&&!Le(S.value)&&y([],{selectedOptions:[],trigger:"default"})},Ct=$n(function(V,$){var N,U=$.e;(N=e.onSearch)===null||N===void 0||N.call(e,"".concat(V),{e:U})},300),St=function($,N){$&&!K.value&&G(!0,{e:N.e}),w($),Ct("".concat($),{e:N.e}),at(function(){var U,re;W.value=(U=h.value)===null||U===void 0?void 0:U.visibleData,de.value=(re=h.value)===null||re===void 0?void 0:re.displayOptions})},ae=function($,N){G($,N),$&&N.trigger==="trigger-element-click"&&w("")},Q=function($){if(e.multiple){var N=[],U=su($||[]),re;try{for(U.s();!(re=U.n()).done;){var ve=re.value,fe=A.value.get(ve);fe&&N.push(fe)}}catch(Je){U.e(Je)}finally{U.f()}E.value=Array.from(new Set([].concat(N,Ye(E.value))))}else{var ye=A.value.get($);ye&&(E.value=Array.from(new Set([ye].concat(Ye(E.value)))))}};ge(S,function(V){lt(),at(function(){Q(V)})},{immediate:!0}),ge(function(){return e.multiple},function(){lt()});var ee=function($){var N;if(!!h.value){var U=(N=h.value)===null||N===void 0||(N=N.innerRef)===null||N===void 0?void 0:N.querySelector(".".concat(r.value,"-is-selected"));at(function(){if(U&&$){var re=getComputedStyle(U),ve=re.paddingBottom,fe=getComputedStyle($),ye=fe.marginBottom,Je=parseInt(ve,10)+parseInt(ye,10),ut=U.offsetTop-$.offsetTop-($.clientHeight-U.clientHeight)+Je;$.scrollTop=ut}})}};return Pt("updateScrollTop",ee),function(){var V=e.popupProps||{},$=V.overlayClassName,N=dt(V,cu);return M("div",{class:"".concat(i.value,"__wrap")},[M(zl,we({autoWidth:e.autoWidth,readonly:e.readonly,borderless:e.borderless,multiple:e.multiple,clearable:e.clearable,loading:e.loading,status:e.status,tips:e.tips,minCollapsedNum:e.minCollapsedNum,autofocus:e.autofocus,suffix:e.suffix,valueDisplayOptions:e.valueDisplayOptions},{ref:p,class:i.value,value:J.value,disabled:l.value,popupVisible:K.value,inputValue:K.value?I.value:"",placeholder:"".concat(Z.value),allowInput:ie.value,"collapsed-items":e.collapsedItems,inputProps:Ee(Ee({size:e.size,autofocus:e.autofocus},e.inputProps),{},{onkeydown:Y}),tagInputProps:Ee({size:e.size},e.tagInputProps),onTagChange:function(re,ve){Me(ve.index)},tagProps:Ee({},e.tagProps),popupProps:Ee({overlayClassName:["".concat(i.value,"__dropdown"),$]},N),label:e.label,prefixIcon:e.prefixIcon,suffix:e.suffix,suffixIcon:function(){return e.suffixIcon||a.suffixIcon?u("suffixIcon"):e.showArrow&&M(Ja,{overlayClassName:"".concat(i.value,"__right-icon"),isActive:K.value},null)},valueDisplay:function(){return u("valueDisplay",{params:ne.value})},onPopupVisibleChange:ae,onInputChange:St,onClear:function(re){var ve,fe=re.e;R(e.multiple?[]:void 0,{option:null,selectedOptions:Se(e.multiple?[]:void 0),trigger:"clear",e:fe}),(ve=e.onClear)===null||ve===void 0||ve.call(e,{e:fe})},onEnter:function(re,ve){var fe=ve.e;setTimeout(function(){var ye;(ye=e.onEnter)===null||ye===void 0||ye.call(e,{inputValue:"".concat(I.value),e:fe,value:T.value}),he()},0)},onBlur:function(re,ve){var fe,ye=ve.e;(fe=e.onBlur)===null||fe===void 0||fe.call(e,{e:ye,value:T.value})},onFocus:function(re,ve){var fe,ye=ve.e;(fe=e.onFocus)===null||fe===void 0||fe.call(e,{e:ye,value:T.value})}},e.selectInputProps),{label:a.label,prefixIcon:a.prefixIcon,suffix:a.suffix,panel:function(){return M(lu,we({ref:h},Nn(e,["size","multiple","empty","loading","loadingText","filterable","creatable","panelTopContent","panelBottomContent","filter","scroll"]),{inputValue:I.value}),a)},collapsedItems:a.collapsedItems})])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var du=Pe(fu);Pe(xt);Pe(Xn);/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var hu={append:{type:[String,Function]},prepend:{type:[String,Function]}};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var gu=ue({name:"TInputAdornment",inheritAttrs:!1,props:hu,setup:function(e,n){var a=n.slots,r=te("input-adornment"),l=Re(),u=function(c,f,s){var v,o=_t(s)||Rn(s);return!a[f]&&_t(s)&&!s?null:(a[f]?a[f](null).length===1&&typeof a[f](null)[0].children=="string"?v=M("span",{class:"".concat(r.value,"__text")},[a[f](null)]):v=a[f](null):De(s)?v=s(c):v=o?M("span",{class:"".concat(r.value,"__text")},[s]):s,v&&M("span",{class:"".concat(r.value,"__").concat(f)},[v]))};return function(){var i=u(Ge,"prepend",e.prepend),c=u(Ge,"append",e.append),f=l("default")||[null],s=[r.value,L(L({},"".concat(r.value,"--prepend"),i),"".concat(r.value,"--append"),c)];return!i&&!c?f[0]:M("div",{class:s},[i,f[0],c])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var pu=Pe(gu);/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var bu={current:{type:Number,default:void 0},modelValue:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},disabled:Boolean,foldedMaxPageBtn:{type:Number,default:5},maxPageBtn:{type:Number,default:10},pageEllipsisMode:{type:String,default:"mid",validator:function(e){return e?["mid","both-ends"].includes(e):!0}},pageSize:{type:Number,default:void 0},defaultPageSize:{type:Number,default:10},pageSizeOptions:{type:Array,default:function(){return[5,10,20,50]}},selectProps:{type:Object},showFirstAndLastPageBtn:Boolean,showJumper:Boolean,showPageNumber:{type:Boolean,default:!0},showPageSize:{type:Boolean,default:!0},showPreviousAndNextBtn:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium"].includes(e):!0}},theme:{type:String,default:"default",validator:function(e){return e?["default","simple"].includes(e):!0}},total:{type:Number,default:0},totalContent:{type:[Boolean,Function],default:!0},onChange:Function,onCurrentChange:Function,onPageSizeChange:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function yu(t,e,n,a){var r=Qe(),l=r.SIZE,u=r.STATUS,i=m(function(){var w=Math.ceil(t.total/n.value);return w>0?w:1}),c=m(function(){return["".concat(a.value),l.value[t.size],L(L({},u.value.disabled,t.disabled),"".concat(a.value,"-ie"),sa()<11)]}),f=m(function(){return["".concat(a.value,"__total")]}),s=m(function(){return["".concat(a.value,"__select")]}),v=m(function(){return["".concat(a.value,"__btn"),"".concat(a.value,"__btn-prev"),L({},u.value.disabled,t.disabled||e.value===1)]}),o=m(function(){return["".concat(a.value,"__btn"),"".concat(a.value,"__btn-next"),L({},u.value.disabled,t.disabled||e.value===i.value)]}),d=m(function(){return["".concat(a.value,"__pager")]}),g=m(function(){return["".concat(a.value,"__number"),"".concat(a.value,"__number--more"),L({},u.value.disabled,t.disabled)]}),_=m(function(){return["".concat(a.value,"__jump")]}),P=m(function(){return["".concat(a.value,"__input")]}),x=m(function(){return["".concat(a.value,"__select")]}),I=function(O){return["".concat(a.value,"__number"),L(L({},u.value.disabled,t.disabled),u.value.current,e.value===O)]};return{pageCount:i,paginationClass:c,totalClass:f,sizerClass:s,preBtnClass:v,nextBtnClass:o,btnWrapClass:d,btnMoreClass:g,jumperClass:_,jumperInputClass:P,simpleClass:x,getButtonClass:I}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function mu(t,e,n){var a=z(!1),r=z(!1),l=m(function(){return Math.ceil((t.foldedMaxPageBtn-1)/2)}),u=m(function(){return Math.floor((t.foldedMaxPageBtn-1)/2)}),i=m(function(){return 2+l.value<n.value}),c=m(function(){return e.value-1-u.value>n.value});return{prevMore:a,nextMore:r,curPageLeftCount:l,curPageRightCount:u,isPrevMoreShow:i,isNextMoreShow:c}}/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Cu=Rn;function Su(t){return Cu(t)&&t!=+t}var Ou=Su,_u=["pageCount"],Ue=1,Pu=ue({name:"TPagination",props:bu,setup:function(e){var n=Vn(),a=n.emit,r=be(e),l=r.modelValue,u=r.pageSize,i=r.current,c=Re(),f=Xe(i,l,e.defaultCurrent,e.onCurrentChange,"current"),s=pe(f,2),v=s[0],o=s[1],d=Ze(u,e.defaultPageSize,e.onPageSizeChange,"pageSize"),g=pe(d,2),_=g[0],P=g[1],x=rt("pagination"),I=x.t,w=x.globalConfig,O=te("pagination"),k=vt({PageFirstIcon:Na,PageLastIcon:Ka,ChevronLeftIcon:Fn,ChevronRightIcon:Ln,ChevronLeftDoubleIcon:xa,ChevronRightDoubleIcon:Da,EllipsisIcon:Ba}),S=k.PageFirstIcon,y=k.PageLastIcon,h=k.ChevronLeftIcon,p=k.ChevronRightIcon,b=k.ChevronLeftDoubleIcon,C=k.ChevronRightDoubleIcon,A=k.EllipsisIcon,D=yu(e,v,_,O),E=D.pageCount,j=dt(D,_u),T=mu(e,E,v),R=T.prevMore,F=T.isPrevMoreShow,H=T.curPageLeftCount,K=T.nextMore,G=T.isNextMoreShow,Z=T.curPageRightCount,J=z(v.value),ne=m(function(){return E.value>e.maxPageBtn}),ie=m(function(){var se=e.pageSizeOptions,q=se.map(function(W){return Be(W)?W:{label:I(w.value.itemsPerPage,{size:W}),value:Number(W)}});return q.sort(function(W,Y){return W.value-Y.value})}),oe=m(function(){return e.pageEllipsisMode==="mid"}),Me=m(function(){var se=[],q,W;if(ne.value)if(F.value&&G.value)q=v.value-H.value,W=v.value+Z.value;else{var Y=oe.value?2:1,de=oe.value?E.value-1:E.value;F.value?q=Math.min(v.value-1,E.value-e.foldedMaxPageBtn+1):q=Y,G.value?W=Math.max(v.value+1,e.foldedMaxPageBtn):W=de}else q=1,W=E.value;for(var ce=q;ce<=W;ce++)se.push(ce);return se});ge(function(){return E.value},function(){v.value>E.value&&(v.value=1)}),ge(function(){return v.value},function(se){return J.value=se});var he=function(q,W){if(!e.disabled){var Y=q;if(q<Ue?Y=Ue:q>E.value&&(Y=E.value),v.value!==Y){var de=v.value;if(W=W||{current:Y,previous:de,pageSize:_.value},W){var ce;o(Y,W),(ce=e.onChange)===null||ce===void 0||ce.call(e,W)}else a("update:modelValue",Y)}}},ke=function(q){var W={prevPage:function(){return he(v.value-1)},nextPage:function(){return he(v.value+1)},prevMorePage:function(){return he(Math.max(2,v.value-e.foldedMaxPageBtn))},nextMorePage:function(){return he(Math.min(v.value+e.foldedMaxPageBtn,E.value-1))}};W[q]()},Te=function(q){if(!e.disabled){var W=parseInt(q,10),Y=1;W>0&&(Y=Math.max(Math.ceil(e.total/W),1));var de=!1;v.value>Y&&(de=!0);var ce={current:de?Y:v.value,previous:v.value,pageSize:W};if(P(W,ce),de)he(Y,ce);else{var X;(X=e.onChange)===null||X===void 0||X.call(e,ce)}}},Se=function(q){var W=Math.trunc(+q);Ou(W)||(J.value=W,he(W))};return function(){var se=e.total,q=e.pageSizeOptions,W=e.size,Y=e.disabled,de=e.showPageSize;if(E.value<1)return null;var ce=M("div",{class:j.jumperClass.value},[I(w.value.jumpTo),M(pu,{append:"/ ".concat(E.value," ").concat(I(w.value.page))},{default:function(){return[M(Oa,{class:j.jumperInputClass.value,modelValue:J.value,"onUpdate:modelValue":function(Ce){return J.value=Ce},onBlur:Se,onEnter:Se,max:E.value,min:Ue,size:W,disabled:Y,theme:"normal",placeholder:""},null)]}})]);return M("div",{class:j.paginationClass.value},[c("totalContent",M("div",{class:j.totalClass.value},[I(w.value.total,{total:se})])),de&&q.length>0&&M(du,we({size:W,value:_,disabled:Y,class:j.sizerClass.value,autoWidth:!0,onChange:Te,options:ie.value},e.selectProps),null),e.showFirstAndLastPageBtn?M("div",{class:j.preBtnClass.value,onClick:function(){return he(1)},disabled:e.disabled||e.current===Ue},[M(S,null,null)]):null,e.showPreviousAndNextBtn?M("div",{class:j.preBtnClass.value,onClick:function(){return ke("prevPage")},disabled:Y||v.value===Ue},[M(h,null,null)]):null,e.showPageNumber&&e.theme==="default"?M("ul",{class:j.btnWrapClass.value},[ne.value&&oe.value&&M("li",{class:j.getButtonClass(1),onClick:function(){return he(Ue)}},[Ue]),ne.value&&F.value&&oe.value?M("li",{class:j.btnMoreClass.value,onClick:function(){return ke("prevMorePage")},onMouseOver:function(){return R.value=!0},onMouseOut:function(){return R.value=!1}},[R.value?M(b,null,null):M(A,null,null)]):null,Me.value.map(function(X){return M("li",{class:j.getButtonClass(X),key:X,onClick:function(){return he(X)}},[X])}),ne.value&&G.value&&oe.value?M("li",{class:j.btnMoreClass.value,onClick:function(){return ke("nextMorePage")},onMouseOver:function(){return K.value=!0},onMouseOut:function(){return K.value=!1}},[K.value?M(C,null,null):M(A,null,null)]):null,ne.value&&oe.value?M("li",{class:j.getButtonClass(E.value),onClick:function(){return he(E.value)}},[E.value]):null]):null,e.theme==="simple"&&ce,e.showPreviousAndNextBtn?M("div",{class:j.nextBtnClass.value,onClick:function(){return ke("nextPage")},disabled:Y||v.value===E.value},[M(p,null,null)]):null,e.showFirstAndLastPageBtn?M("div",{class:j.nextBtnClass.value,onClick:function(){return he(E.value)},disabled:Y||v.value===E.value},[M(y,null,null)]):null,e.theme==="default"&&e.showJumper&&ce])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Iu={disabled:{type:[Boolean,Object]},layout:{type:String,default:"horizontal",validator:function(e){return e?["horizontal","vertical"].includes(e):!0}},showCurrent:{type:Boolean,default:!0},size:{type:String,default:"medium",validator:function(e){return e?["small","medium","large"].includes(e):!0}},tips:{type:Object},variant:{type:String,default:"text",validator:function(e){return e?["text","outline"].includes(e):!0}},onChange:Function};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function xn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,a)}return n}function wu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xn(Object(n),!0).forEach(function(a){L(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var ku=ue({name:"TPaginationMini",props:wu({},Iu),setup:function(e){var n=te("pagination-mini"),a=vt({ChevronLeftIcon:Fn,RoundIcon:Ga,ChevronRightIcon:Ln,ChevronUpIcon:_a,ChevronDownIcon:Pa}),r=a.ChevronLeftIcon,l=a.RoundIcon,u=a.ChevronRightIcon,i=a.ChevronUpIcon,c=a.ChevronDownIcon,f=m(function(){return Be(e.tips)?e.tips:e.tips===!0?{prev:"\u4E0A\u4E00\u9875",current:"\u5F53\u524D",next:"\u4E0B\u4E00\u9875"}:{}}),s=m(function(){return Be(e.disabled)?e.disabled:e.disabled===!0?{prev:!0,current:!0,next:!0}:{prev:!1,current:!1,next:!1}});return function(){var v=[n.value,L({},"".concat(n.value,"--outline"),e.variant==="outline")];return M("div",{class:v},[M(Ot,{title:f.value.prev,variant:e.variant,size:e.size,shape:"square",onClick:function(d){var g;return(g=e.onChange)===null||g===void 0?void 0:g.call(e,{e:d,trigger:"prev"})},icon:e.layout==="horizontal"?function(){return M(r,null,null)}:function(){return M(i,null,null)},class:"".concat(n.value,"__prev"),disabled:s.value.prev},null),e.showCurrent&&M(Ot,{title:f.value.current,variant:e.variant,size:e.size,shape:"square",onClick:function(d){var g;return(g=e.onChange)===null||g===void 0?void 0:g.call(e,{e:d,trigger:"current"})},icon:function(){return M(l,null,null)},class:"".concat(n.value,"__current"),disabled:s.value.current},null),M(Ot,{title:f.value.next,variant:e.variant,size:e.size,shape:"square",onClick:function(d){var g;return(g=e.onChange)===null||g===void 0?void 0:g.call(e,{e:d,trigger:"next"})},icon:e.layout==="horizontal"?function(){return M(u,null,null)}:function(){return M(c,null,null)},class:"".concat(n.value,"__next"),disabled:s.value.next},null)])}}});/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var hi=Pe(Pu);Pe(ku);/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var xu=$n,ju=Be,Au="Expected a function";function Mu(t,e,n){var a=!0,r=!0;if(typeof t!="function")throw new TypeError(Au);return ju(n)&&(a="leading"in n?!!n.leading:a,r="trailing"in n?!!n.trailing:r),xu(t,e,{leading:a,maxWait:e,trailing:r})}var Eu=Mu;/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/var Du=va;function Ru(t,e,n){for(var a=-1,r=t.length;++a<r;){var l=t[a],u=e(l);if(u!=null&&(i===void 0?u===u&&!Du(u):n(u,i)))var i=u,c=l}return c}var Jn=Ru;function Tu(t,e){return t>e}var Vu=Tu,$u=Jn,Bu=Vu,Fu=jt;function Lu(t){return t&&t.length?$u(t,Fu,Bu):void 0}var Nu=Lu;function zu(t,e){return t<e}var Hu=zu,Ku=Jn,Wu=Hu,Uu=jt;function Gu(t){return t&&t.length?Ku(t,Uu,Wu):void 0}var Yu=Gu;function Xu(t,e){for(var n,a=-1,r=t.length;++a<r;){var l=e(t[a]);l!==void 0&&(n=n===void 0?l:n+l)}return n}var Ju=Xu,qu=Ju,Zu=jt;function Qu(t){return t&&t.length?qu(t,Zu):0}var ct=Qu,gi=function(e,n){var a,r,l=z([]),u=z((((a=n.value.data)===null||a===void 0?void 0:a.length)||0)*(((r=n.value.scroll)===null||r===void 0?void 0:r.rowHeight)||50)),i=z(0),c=[],f=z(0),s=z(0),v=z([0,15]),o=m(function(){var S,y,h=n.value.scroll;return h?{bufferSize:h.bufferSize||10,isFixedRowHeight:(S=h.isFixedRowHeight)!==null&&S!==void 0?S:!1,rowHeight:h.rowHeight||47,threshold:h.threshold||100,type:h.type,fixedRows:(y=h.fixedRows)!==null&&y!==void 0?y:[0,0]}:{}}),d=m(function(){var S=n.value.data;return o.value.type==="virtual"&&o.value.threshold<S.length});function g(){for(var S,y,h=(S=(y=e.value)===null||y===void 0?void 0:y.scrollTop)!==null&&S!==void 0?S:0,p=o.value.fixedRows[0],b=[],C=0,A=-1,D=-1,E=0,j=0,T=n.value.data.length;j<T;j++){var R,F=(R=c[j])!==null&&R!==void 0?R:o.value.rowHeight;if(E=E+F,E>h&&A===-1&&(A=j,A-o.value.bufferSize>0&&(C=E-F-ct(b))),A===-1&&(b.push(F),b.length>o.value.bufferSize&&b.shift()),D===-1&&(E>f.value+h||j===n.value.data.length-1)&&(D=j),A!==-1&&D!==-1)break}var H=Nu([A-o.value.bufferSize,0]),K=Yu([D+o.value.bufferSize,n.value.data.length]),G=ct(c.slice(0,Math.min(H,p)));return{startIndex:H,endIndex:K,translateY:C-G}}var _=Eu(function(){var S=g(),y=S.startIndex,h=S.endIndex,p=S.translateY,b=o.value.fixedRows,C=pe(b,2),A=C[0],D=C[1],E=A?n.value.data.slice(0,A):[];A&&y<A&&(E=E.slice(0,y));var j=D?n.value.data.slice(n.value.data.length-D):[],T=h-n.value.data.length+1+(D!=null?D:0);D&&T>0&&(j=j.slice(T)),v.value.join()!==[y,h].join()&&y>=0&&(u.value=p,l.value=E.concat(n.value.data.slice(y,h),j),v.value=[y,h])},100),P=function(y){var h;if(!(!d.value||!y||o.value.isFixedRowHeight||!e.value)){var p=((h=y.ref.value)===null||h===void 0?void 0:h.getBoundingClientRect().height)||o.value.rowHeight,b=y.data.VIRTUAL_SCROLL_INDEX;if(c[b]!==p){var C=p-c[b];c[b]=p,i.value=i.value+C}}},x=function(){!d.value||_()},I=function(y){var h=pe(y,1),p=h[0].contentRect,b=16;Math.abs(p.width-s.value)>b&&(e.value.scrollTop=0,u.value=0),s.value=p.width,f.value=p.height},w=function(y){y.forEach(function(h,p){h.VIRTUAL_SCROLL_INDEX=p})},O=function(y){var h=y.index,p=y.top,b=p===void 0?0:p,C=y.behavior,A=ct(c.slice(0,h+1))-b;e.value.scrollTo({top:A,behavior:C||"auto"})},k=function(y){if(O(y),!o.value.isFixedRowHeight)var h,p=(h=y.time)!==null&&h!==void 0?h:60,b=setTimeout(function(){O(y),clearTimeout(b)},p)};return ya(m(function(){return d.value?e.value:void 0}),I),ge(function(){return[Ye(n.value.data),o.value,d.value,e.value]},function(){if(!(!d.value||!e.value)){var S=n.value.data;if(w(S),f.value=e.value.getBoundingClientRect().height,c.length!==n.value.data.length){var y=Array.from(c);y.length=n.value.data.length,y.fill(o.value.rowHeight||47),c=y}i.value=ct(c),v.value=[0,0],_()}},{immediate:!0}),ge(function(){return f.value},function(){_()}),{visibleData:l,translateY:u,scrollHeight:i,isVirtualScroll:d,handleScroll:x,handleRowMounted:P,scrollToElement:k}};/**
* tdesign v1.9.9
* (c) 2024 tdesign
* @license MIT
*/function pi(t){return fa(t)||da(t)||ha(t)||ga()}export{ii as A,Jl as C,ci as E,hi as P,du as S,vn as T,Or as _,di as a,Pr as b,on as c,Wl as d,oi as e,Ol as f,si as g,vi as h,fi as i,gi as j,It as k,pi as l,Fn as m,ui as o,Nn as p,Eu as t,Ze as u};