diff --git "a/.output/public/assets/form-model-BLDp9DHM.js" "b/.output/public/assets/form-model-BLDp9DHM.js" new file mode 100644--- /dev/null +++ "b/.output/public/assets/form-model-BLDp9DHM.js" @@ -0,0 +1,150 @@ +import{a as e,I as t,p as n}from"./index-CJnl5QSY.js";import{d as r,b as a,H as l,I as o,J as u,aw as i,j as c,w as s,a1 as f,aB as v,P as p,a8 as d,aC as h,at as g,aK as b,bL as y,Z as m,aA as O,q as x,L as S,B as _,a7 as w,Y as P,K as j,aD as C,W as k,bF as I,bo as A,af as F,aL as D,S as M,T as E,bE as V,X as B,U as N,aM as T,a5 as R,ar as L,bu as H,bM as z,ay as W,O as $,bm as q,ai as Y,a2 as K,ax as U,aS as X,bN as J,F as Z,bC as G,V as Q,N as ee,aX as te,bl as ne,bO as re,aY as ae,a$ as le,aU as oe,aT as ue,bP as ie,b1 as ce,aV as se,bQ as fe}from"./main-B1VD2nmz.js";import{e as ve,h as pe,i as de,j as he,k as ge,l as be,m as ye,n as me,o as Oe,p as xe,f as Se,c as _e}from"./index-BedzsCE5.js";import{C as we,i as Pe}from"./index-CRB-lJ0Y.js";function je(t,n,r){return null==t?t:e(t,n,r)}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;te.size)),{className:u,style:i}=l(r),c=a((()=>["t-icon","t-icon-chevron-up",u.value])),s=a((()=>ke(ke({},i.value),n.style))),f=a((()=>({class:c.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>o(Ie,f.value)}});function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t=1;te.size)),{className:u,style:i}=l(r),c=a((()=>["t-icon","t-icon-remove",u.value])),s=a((()=>De(De({},i.value),n.style))),f=a((()=>({class:c.value,style:s.value,onClick:t=>{var n;return null===(n=e.onClick)||void 0===n?void 0:n.call(e,{e:t})}})));return()=>o(Me,f.value)}}); +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */ +function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=gt(e,360),t=gt(t,100),n=gt(n,100),0===t)r=a=l=n;else{var u=n<.5?n*(1+t):n+t-n*t,i=2*n-u;r=o(i,u,e+1/3),a=o(i,u,e),l=o(i,u,e-1/3)}return{r:255*r,g:255*a,b:255*l}}(e.h,r,l),o=!0,u="hsl"),e.hasOwnProperty("a")&&(n=e.a));var i,c,s;return n=ht(n),{ok:o,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,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=t.format||n.format,this._gradientType=t.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}function Ze(e,t,n){e=gt(e,255),t=gt(t,255),n=gt(n,255);var r,a,l=Math.max(e,t,n),o=Math.min(e,t,n),u=(l+o)/2;if(l==o)r=a=0;else{var i=l-o;switch(a=u>.5?i/(2-l-o):i/(l+o),l){case e:r=(t-n)/i+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,l.push(Je(r));return l}function vt(e,t){t=t||6;for(var n=Je(e).toHsv(),r=n.h,a=n.s,l=n.v,o=[],u=1/t;t--;)o.push(Je({h:r,s:a,v:l})),l=(l+u)%1;return o}Je.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(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=ht(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Ge(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Ge(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=Ze(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Ze(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return Qe(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,a){var l=[mt(Math.round(e).toString(16)),mt(Math.round(t).toString(16)),mt(Math.round(n).toString(16)),mt(xt(r))];if(a&&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))return l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0);return l.join("")}(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 1==this._a?"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(100*gt(this._r,255))+"%",g:Math.round(100*gt(this._g,255))+"%",b:Math.round(100*gt(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*gt(this._r,255))+"%, "+Math.round(100*gt(this._g,255))+"%, "+Math.round(100*gt(this._b,255))+"%)":"rgba("+Math.round(100*gt(this._r,255))+"%, "+Math.round(100*gt(this._g,255))+"%, "+Math.round(100*gt(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(dt[Qe(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+et(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=Je(e);n="#"+et(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Je(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(at,arguments)},brighten:function(){return this._applyModification(lt,arguments)},darken:function(){return this._applyModification(ot,arguments)},desaturate:function(){return this._applyModification(tt,arguments)},saturate:function(){return this._applyModification(nt,arguments)},greyscale:function(){return this._applyModification(rt,arguments)},spin:function(){return this._applyModification(ut,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(ft,arguments)},complement:function(){return this._applyCombination(it,arguments)},monochromatic:function(){return this._applyCombination(vt,arguments)},splitcomplement:function(){return this._applyCombination(st,arguments)}, +// Disabled until https://github.com/bgrins/TinyColor/issues/254 +// polyad: function (number) { +// return this._applyCombination(polyad, [number]); +// }, +triad:function(){return this._applyCombination(ct,[3])},tetrad:function(){return this._applyCombination(ct,[4])}},Je.fromRatio=function(e,t){if("object"==Ke(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Ot(e[r]));e=n}return Je(e,t)},Je.equals=function(e,t){return!(!e||!t)&&Je(e).toRgbString()==Je(t).toRgbString()},Je.random=function(){return Je.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Je.mix=function(e,t,n){n=0===n?0:n||50;var r=Je(e).toRgb(),a=Je(t).toRgb(),l=n/100;return Je({r:(a.r-r.r)*l+r.r,g:(a.g-r.g)*l+r.g,b:(a.b-r.b)*l+r.b,a:(a.a-r.a)*l+r.a})},Je.readability=function(e,t){var n=Je(e),r=Je(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Je.isReadable=function(e,t,n){var r,a,l=Je.readability(e,t);switch(a=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}} +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */(n)).level+r.size){case"AAsmall":case"AAAlarge":a=l>=4.5;break;case"AAlarge":a=l>=3;break;case"AAAsmall":a=l>=7}return a},Je.mostReadable=function(e,t,n){var r,a,l,o,u=null,i=0;a=(n=n||{}).includeFallbackColors,l=n.level,o=n.size;for(var c=0;ci&&(i=r,u=Je(t[c]));return Je.isReadable(e,u,{level:l,size:o})||!a?u:(n.includeFallbackColors=!1,Je.mostReadable(e,["#fff","#000"],n))};var pt=Je.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"},dt=Je.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(pt);function ht(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function gt(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function bt(e){return Math.min(1,Math.max(0,e))}function yt(e){return parseInt(e,16)}function mt(e){return 1==e.length?"0"+e:""+e}function Ot(e){return e<=1&&(e=100*e+"%"),e}function xt(e){return Math.round(255*parseFloat(e)).toString(16)}function St(e){return yt(e)/255}var _t,wt,Pt,jt=(wt="[\\s|\\(]+("+(_t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+_t+")[,|\\s]+("+_t+")\\s*\\)?",Pt="[\\s|\\(]+("+_t+")[,|\\s]+("+_t+")[,|\\s]+("+_t+")[,|\\s]+("+_t+")\\s*\\)?",{CSS_UNIT:new RegExp(_t),rgb:new RegExp("rgb"+wt),rgba:new RegExp("rgba"+Pt),hsl:new RegExp("hsl"+wt),hsla:new RegExp("hsla"+Pt),hsv:new RegExp("hsv"+wt),hsva:new RegExp("hsva"+Pt),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 Ct(e){return!!jt.CSS_UNIT.exec(e)}var kt=r({name:"TTag",props:{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)}},size:{type:String,default:"medium",validator:function(e){return!e||["small","medium","large"].includes(e)}},theme:{type:String,default:"default",validator:function(e){return!e||["default","primary","warning","danger","success"].includes(e)}},title:{type:String,default:""},variant:{type:String,default:"dark",validator:function(e){return!e||["dark","light","outline","light-outline"].includes(e)}},onClick:Function,onClose:Function},setup:function(e){var t=M("tag").globalConfig,n=j("tag"),r=m({CloseIcon:R}).CloseIcon,l=S(),o=B(),u=E().SIZE,i=V().vnode,c=a((function(){return["".concat(n.value),"".concat(n.value,"--").concat(e.theme),"".concat(n.value,"--").concat(e.variant),p(p(p(p({},"".concat(n.value,"--ellipsis"),e.maxWidth),"".concat(n.value,"--close"),e.closable),"".concat(n.value,"--disabled"),e.disabled),u.value[e.size],"medium"!==e.size),"square"!==e.shape&&"".concat(n.value,"--").concat(e.shape)]})),s=a((function(){return v()})),f=a((function(){return e.maxWidth?{maxWidth:isNaN(Number(e.maxWidth))?String(e.maxWidth):"".concat(e.maxWidth,"px")}:{}})),v=function(){var t=e.color,n=e.variant;if(!t)return{};var r,a,l,o,u={color:Je(t).getLuminance()>.5?"black":"white"};if("outline"!==n&&"light-outline"!==n||(u.borderColor=t),"outline"!==n){u.backgroundColor="dark"===n?t:(r=Je(t).toRgb(),a=r.r,l=r.g,o=r.b,"rgba(".concat(a,", ").concat(l,", ").concat(o,", 0.1)"))}return"dark"!==n&&(u.color=t),u},d=function(t){var n;e.disabled||null===(n=e.onClick)||void 0===n||n.call(e,{e:t})};return function(){var a=function(){if(!e.closable)return null;var a="".concat(n.value,"__icon-close");return t.value.closeIcon?T(t.value.closeIcon(T),{class:a}):x(r,{onClick:function(t){var n,r=t.e;r&&r.stopPropagation(),null===(n=e.onClose)||void 0===n||n.call(e,{e:r})},class:a},null)}(),u=o("default","content"),v=l("icon"),p=function(t){if(e.maxWidth){var n=i.props||{};return Reflect.has(n,"title")?n.title||void 0:t||void 0}}(N(u)?u:"");return x("div",{class:c.value,style:s.value,onClick:d},[v,x("span",{class:e.maxWidth?"".concat(n.value,"--text"):void 0,style:f.value,title:p},[u]),!e.disabled&&a])}}}); +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */ +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */ +function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;ts&&pv))return}null==n||n({currentIndex:a.value,current:l,target:o,targetIndex:t}),a.value=t}}};if(!t)return{};function f(e,t,n){a.value=t,l.value=n;var o=e.target;if(r&&o){var i=o.getBoundingClientRect(),c=i.x,s=i.width;u.nodeX=c,u.nodeWidth=s,u.mouseX=e.clientX}}function v(){o.value=!0}function p(){o.value,o.value=!1,a.value=-1,l.value=null}return{onDragStart:f,onDragOver:s,onDrop:v,onDragEnd:p,getDragProps:function(e,n){return t?{draggable:!0,onDragstart:function(t){f(t,e,n)},onDragover:function(t){s(t,e,n)},onDrop:function(){v()},onDragend:function(){p()}}:{}},dragging:-1!==a.value}}(Nt(Nt({},e),{},{sortOnDraggable:e.dragSort,onDragOverCheck:{x:!0,targetClassNameRegExp:new RegExp("^".concat(ae.value,"-tag"))}})),ue=oe.getDragProps,ie=function(e){var t=c(),n=v(e),r=n.excessTagsDisplayType,a=n.readonly,l=n.disabled,o=c(0),u=c(),i=c(),s=c(!1),p=function(e){var t=e.children[0];u.value=t},d=function(){o.value=u.value.scrollWidth-u.value.clientWidth},h=function(e){var t;D(null===(t=u.value)||void 0===t?void 0:t.scroll)&&u.value.scroll({left:e,behavior:"smooth"})},g=function(){d(),h(o.value),setTimeout((function(){s.value=!0}),200)};return f((function(){var e,n=null===(e=t.value)||void 0===e?void 0:e.$el;n&&p(n)})),F((function(){clearTimeout(i.value)})),{tagInputRef:t,scrollElement:u,scrollDistance:o,scrollTo:h,scrollToRight:g,scrollToLeft:function(){h(0)},updateScrollElement:p,updateScrollDistance:d,onWheel:function(e){var t=e.e;if(!a.value&&!l.value&&u.value)if(t.deltaX>0){var n=Math.min(u.value.scrollLeft+120,o.value);h(n)}else{var r=Math.max(u.value.scrollLeft-120,0);h(r)}},scrollToRightOnEnter:function(){"scroll"===r.value&&(i.value=setTimeout((function(){g(),clearTimeout(i.value)}),100))},scrollToLeftOnLeave:function(){"scroll"===r.value&&(s.value=!1,h(0),clearTimeout(i.value))},isScrollable:s}}(e),ce=ie.scrollToRight,se=ie.onWheel,fe=ie.scrollToRightOnEnter,ve=ie.scrollToLeftOnLeave,pe=ie.tagInputRef,de=ie.isScrollable,he=function(e){var t=S(),n=j(),r=v(e),a=r.value,l=r.modelValue,o=r.onRemove,u=r.max,i=r.minCollapsedNum,s=r.size,f=r.tagProps,p=r.getDragProps,d=h(a,l,e.defaultValue||[],e.onChange),m=g(d,2),O=m[0],_=m[1],P=c(),C=b(),k=y(),I=function(e){var t,n=W(O.value),r=n.splice(e.index,1),a=g(r,1)[0];_(n,Vt(Vt({trigger:"tag-remove"},e),{},{item:a})),null===(t=o.value)||void 0===t||t.call(o,Vt(Vt({},e),{},{item:a,trigger:"tag-remove",value:n}))};return{tagValue:O,clearAll:function(e){_([],{trigger:"clear",e:e.e})},onClose:I,onInnerEnter:function(t,n){var r,a,l=t?String(t).trim():"",o=u&&(null===(r=O.value)||void 0===r?void 0:r.length)>=u.value,i=O.value;!o&&l&&(i=O.value instanceof Array?O.value.concat(String(l)):[l],_(i,{trigger:"enter",index:i.length-1,item:l,e:n.e})),null==e||null===(a=e.onEnter)||void 0===a||a.call(e,i,Vt(Vt({},n),{},{inputValue:t}))},onInputBackspaceKeyUp:function(e){O.value&&O.value.length&&(P.value=e)},onInputBackspaceKeyDown:function(e,t){var n=t.e;if(O.value&&O.value.length&&"Process"!==n.key&&!k.value){var r=/(Backspace|NumpadDelete)/i.test(n.code)||/(Backspace|NumpadDelete)/i.test(n.key);if(!e&&r){var a,l=O.value.length-1,u=O.value[l],i="backspace",c=O.value.slice(0,-1);_(c,{e:n,index:l,item:u,trigger:i}),null===(a=o.value)||void 0===a||a.call(o,{e:n,index:l,item:u,trigger:i,value:c})}P.value=e}},renderLabel:function(e){var r,a=e.displayNode,l=e.label,o=i.value?O.value.slice(0,i.value):O.value,u=a?[a]:(null==o||null===(r=o.map)||void 0===r?void 0:r.call(o,(function(e,n){var r,a=t("tag",{params:{value:e}});return x(Mt,w({key:"".concat(e).concat(n),size:s.value,disabled:C.value,onClose:function(e){return I({e:e.e,index:n})},closable:!k.value&&!C.value},null===(r=p.value)||void 0===r?void 0:r.call(p,n,e),f.value),{default:function(){return[null!=a?a:e]}})})))||[];if([null,void 0,""].includes(l)||u.unshift(x("div",{class:"".concat(n.value,"-tag-input__prefix"),key:"label"},[l])),o.length!==(O.value||[]).length){var c=O.value.length-o.length,v=t("collapsedItems",{params:{value:O.value,count:O.value.length-i.value,collapsedTags:O.value.slice(i.value,O.value.length),collapsedSelectedItems:O.value.slice(i.value,O.value.length),onClose:I}});u.push(null!=v?v:x(Mt,w({key:"more",size:s.value},f.value),{default:function(){return["+",c]}}))}return u}}}(i(Nt(Nt({},v(e)),{},{getDragProps:ue}))),ge=he.tagValue,be=he.onInnerEnter,ye=he.onInputBackspaceKeyUp,me=he.onInputBackspaceKeyDown,Oe=he.clearAll,xe=he.renderLabel,Se=he.onClose,we=a((function(){var e=!($(ge.value)&&ge.value.length);return[u.value,p(p(p({},_.value,"break-line"===J.value),"".concat(ae.value,"-is-empty"),e),"".concat(ae.value,"-tag-input--with-tag"),!e)]})),Pe=a((function(){var e;return null!==(e=ge.value)&&void 0!==e&&e.length?"":G.value})),je=a((function(){var e;return Boolean(!I.value&&!k.value&&Z.value&&ee.value&&((null===(e=ge.value)||void 0===e?void 0:e.length)||K.value))})),Ce=function(e,t){var n,r;null===(n=t.e)||void 0===n||null===(r=n.preventDefault)||void 0===r||r.call(n),U("",{e:t.e,trigger:"enter"}),!re.value&&be(e,t),d((function(){ce(),re.value=!1}))},ke=function(e,t){var n,r;re.value=!0,null===(n=V.value)||void 0===n||null===(r=n.onCompositionstart)||void 0===r||r.call(n,e,t)},Ie=function(e,t){var n,r;re.value=!1,null===(n=V.value)||void 0===n||null===(r=n.onCompositionend)||void 0===r||r.call(n,e,t)},Ae=function(t){var n,r;k.value||(le.value=!0,null===(n=pe.value)||void 0===n||n.focus(),null===(r=e.onClick)||void 0===r||r.call(e,t))},Fe=function(t){var n;Oe(t),U("",{e:t.e,trigger:"clear"}),null===(n=e.onClear)||void 0===n||n.call(e,t)},De=function(e){te(e),fe()},Me=function(e){ne(e),ve()},Ee=function(t,n){var r;le.value||(le.value=!0,null===(r=e.onFocus)||void 0===r||r.call(e,ge.value,{e:n.e,inputValue:t}))},Ve=function(t,n){var r;le.value=!1,U("",{e:n.e,trigger:"blur"}),null===(r=e.onBlur)||void 0===r||r.call(e,ge.value,{e:n.e,inputValue:t})},Be=function(e,t){U(e,Nt(Nt({},t),{},{trigger:"input"}))};return s((function(){return de.value}),(function(t){if("scroll"===e.excessTagsDisplayType){var n="".concat(ae.value,"-input__prefix"),r=pe.value.$el.querySelector(".".concat(n));t?r.classList.add("".concat(n,"--scrollable")):r.classList.remove("".concat(n,"--scrollable"))}})),function(){var e,n,a=je.value?x(P,{class:O.value,onClick:Fe},null):l("suffixIcon"),o=l("prefixIcon"),u="".concat(ae.value,"-tag-input__with-suffix-icon");a&&!we.value.includes(u)&&we.value.push(u);var i=l("valueDisplay",{params:{value:ge.value,onClose:function(e){return Se({index:e})}}}),c=l("label",{silent:!0}),s=I.value||(null===(e=V.value)||void 0===e?void 0:e.readonly);return x(t,w({ref:pe,borderless:B.value,readonly:s,showInput:!s||!ge.value||!(null!==(n=ge.value)&&void 0!==n&&n.length),value:K.value,autoWidth:!0,size:N.value,disabled:k.value,label:function(){return xe({displayNode:i,label:c})},class:we.value,tips:T.value,status:R.value,placeholder:Pe.value,suffix:L.value,suffixIcon:function(){return a},prefixIcon:function(){return o},keepWrapperWidth:!H.value,onWheel:se,onChange:Be,onPaste:z.value,onEnter:Ce,onKeyup:ye,onKeydown:me,onMouseenter:De,onMouseleave:Me,onFocus:Ee,onBlur:Ve,onClick:Ae,onCompositionstart:ke,onCompositionend:Ie},V.value),{suffix:r.suffix})}}})),Rt=["tips"];function Lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t=e.offsetWidth?t.offsetWidth:e.offsetWidth,l={};return n.value&&"object"===q(n.value.overlayInnerStyle)&&!n.value.overlayInnerStyle.width&&(l=n.value.overlayInnerStyle),$t({width:"".concat(Math.min(a,1e3),"px")},l)},s=function(e,t){var r;return $t({width:"".concat(Math.max(e.offsetWidth,t.offsetWidth),"px")},null===(r=n.value)||void 0===r?void 0:r.overlayInnerStyle)};return{tOverlayInnerStyle:a((function(){var e,t=(null===(e=n.value)||void 0===e?void 0:e.overlayInnerStyle)||{};return D(t)||A(t)&&t.width?t:r.value?s:i})),innerPopupVisible:l,onInnerPopupVisibleChange:function(t,n){if(!o.value&&!u.value){var r,a=!("trigger-element-click"!==n.trigger||!e.allowInput)||t;e.popupVisible!==a&&(l.value=a,null===(r=e.onPopupVisibleChange)||void 0===r||r.call(e,a,n))}}}}(e),B=V.tOverlayInnerStyle,N=V.innerPopupVisible,T=V.onInnerPopupVisibleChange,R=qe(e,t,O),L=R.isSingleFocus,H=R.commonInputProps,z=R.onInnerClear,W=R.renderSelectSingle,$=function(e,t,n){var r=v(e).inputValue,l=j(),o=c(),u=c(e.autofocus),i=C(r,e.defaultInputValue,e.onInputChange,"inputValue"),s=g(i,2),f=s[0],d=s[1],h=b(),m=y(),O=a((function(){return Ht(Ht({},zt),e.keys)})),S=a((function(){return e.value instanceof Array?e.value.map((function(e){return A(e)?e[O.value.label]:e})):A(e.value)?[e.value[O.value.label]]:[e.value]})),_=a((function(){return S.value&&S.value.length?"":e.placeholder})),P=function(t,n){var r,a;"tag-remove"===n.trigger&&(null===(a=n.e)||void 0===a||a.stopPropagation()),null===(r=e.onTagChange)||void 0===r||r.call(e,t,n)},F=function(e,t){"enter"!==t.trigger&&"blur"!==t.trigger&&d(e,{trigger:t.trigger,e:t.e})},D=function(t,r){var a,l,o=null===(a=n.value)||void 0===a?void 0:a.getOverlayState();null!=o&&o.hover||(u.value=!1,null===(l=e.onBlur)||void 0===l||l.call(e,e.value,Ht(Ht({},r),{},{tagInputValue:t})))},M=function(t,r){var a,l,o=null===(a=n.value)||void 0===a?void 0:a.getOverlayState();if(!(u.value||null!=o&&o.hover)){u.value=!0;var i=Ht(Ht({},r),{},{tagInputValue:t});null===(l=e.onFocus)||void 0===l||l.call(e,e.value,i)}},E=function(t,n){var r,a=Ht(Ht({},n),{},{tagInputValue:t});null===(r=e.onEnter)||void 0===r||r.call(e,e.value,a)};return{tags:S,tPlaceholder:_,tagInputRef:o,isMultipleFocus:u,multipleInputValue:f,renderSelectMultiple:function(n){var r=Ht(Ht({},n.commonInputProps),{},{tagProps:e.tagProps,label:e.label,autoWidth:e.autoWidth,readonly:m.value,placeholder:_.value,minCollapsedNum:e.minCollapsedNum,collapsedItems:e.collapsedItems,tag:e.tag,value:S.value,valueDisplay:e.valueDisplay,inputValue:n.popupVisible&&n.allowInput?f.value:"",inputProps:Ht({readonly:!e.allowInput||m.value,inputClass:p({},"".concat(l.value,"-input--focused"),n.popupVisible)},e.inputProps),suffixIcon:!h.value&&e.loading?function(){return x(k,{loading:!0,size:"small"},null)}:e.suffixIcon},e.tagInputProps),a=t.slots;a.tips;var u=I(a,Rt);return x(Tt,w({ref:o},r,{onInputChange:F,onChange:P,onClear:n.onInnerClear,onBlur:D,onEnter:E,onFocus:M}),u)}}}(e,t,O),Y=$.isMultipleFocus,U=$.tagInputRef,X=$.renderSelectMultiple,J=a((function(){return e.multiple?Y.value:L.value})),Z=a((function(){var e;return["".concat(r.value),p(p(p(p({},o.value,P.value),l.value,E.value),u.value,null!==(e=M.value)&&void 0!==e?e:N.value),i.value,F.value instanceof Array?!F.value.length:!F.value)]})),G=function(n){var r,a=n.code||(null===(r=n.key)||void 0===r?void 0:r.trim());if(/(ArrowDown|ArrowUp)/.test(a)&&!M.value){var l,o=Yt(Yt({},t),{},{trigger:"trigger-element-focus"});null===(l=e.onPopupVisibleChange)||void 0===l||l.call(e,!0,o)}};s([J],(function(e){var t=g(e,1)[0];M.value||(t?m.value.addEventListener("keydown",G):m.value.removeEventListener("keydown",G))})),f((function(){!M.value&&J&&m.value.addEventListener("keydown",G)})),K((function(){var e;null===(e=m.value)||void 0===e||e.removeEventListener("keydown",G)}));return{classPrefix:d,NAME_CLASS:r,innerPopupVisible:N,commonInputProps:H,tOverlayInnerStyle:B,selectInputRef:m,popupRef:O,classes:Z,onInnerClear:z,renderTNodeJSX:h,renderSelectSingle:W,renderSelectMultiple:X,onOverlayClick:function(t){var n,r,a;null===(n=t.e)||void 0===n||n.stopPropagation(),t.e.target.tabIndex>=0||e.multiple&&(null===(r=U.value)||void 0===r||null===(a=r.focus)||void 0===a||a.call(r))},onInnerPopupVisibleChange:T}},render:function(){var e,t,n=this,r={visible:null!==(e=this.popupVisible)&&void 0!==e?e:this.innerPopupVisible},a=x(Y,w({ref:"popupRef",trigger:(null===(t=this.popupProps)||void 0===t?void 0:t.trigger)||"click",placement:"bottom-left"},r,{content:this.panel,hideEmptyPopup:!0},Yt(Yt({onVisibleChange:this.onInnerPopupVisibleChange,onOverlayClick:this.onOverlayClick},this.popupProps),{},{overlayInnerStyle:this.tOverlayInnerStyle})),Yt({default:function(){return[n.multiple?n.renderSelectMultiple({commonInputProps:n.commonInputProps,onInnerClear:n.onInnerClear,popupVisible:r.visible,allowInput:n.allowInput}):n.renderSelectSingle(r.visible)]}},Yt(Yt({},this.$slots),{},{content:this.$slots.panel}))),l=this.renderTNodeJSX("tips"),o=["".concat(this.classPrefix,"-input__tips"),"".concat(this.classPrefix,"-tips"),"".concat(this.classPrefix,"-is-").concat(this.status)];return x("div",{ref:"selectInputRef",class:this.classes},[a,l&&x("div",{class:o},[l])])}})),Ut={checkAll:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:Boolean,label:{type:String,default:""},title:{type:String,default:""},value:{type:[String,Number,Boolean]}}; +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */ +function Xt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Jt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jt(e,t):void 0}}(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,l=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw l}}}}function Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n((null===(r=e.scroll)||void 0===r?void 0:r.threshold)||100)})),p="virtual"===(null===(t=e.scroll)||void 0===t?void 0:t.type)?function(e){var t=e.data,n=e.container,r=e.fixedHeight,l=void 0!==r&&r,o=e.lineHeight,u=void 0===o?30:o,p=e.bufferSize,h=void 0===p?20:p,g=e.threshold,b=void 0===g?100:g,y=i({visibleData:[],cachedHeight:[],cachedScrollY:[]}),m=a((function(){return t.value.length>b})),O=c(0),x=new Map,S=0,_=0,w=0,P=0,j=0,C=0,k=function(){t.value.forEach((function(e,t){e.$index=t,l&&(y.cachedScrollY[t]=t*u)})),l||(y.cachedScrollY[t.value.length-1]=void 0)};k();var I=a((function(){var e=y.cachedHeight;if(e.length){var n=e.reduce((function(e,t){return e+t||u}),0);if(e.length===t.value.length)return n;var r=n/e.length;return n+(t.value.length-e.length)*r}return m.value?t.value.length*u:0})),A=a((function(){var e=y.visibleData,t=e[0];return t?1===e.length?0:y.cachedScrollY[t.$index]:0})),F=function(){C=Math.min(j+S+2*h,t.value.length),y.visibleData=t.value.slice(j,C)},D=function(){var e,r=x.get(w);if(r){var a=null==r||null===(e=r.getBoundingClientRect())||void 0===e?void 0:e.height;y.cachedScrollY[w]=n.value.scrollTop-P,y.cachedHeight[w]=a;for(var l=w+1;l<=(null===(o=y.visibleData[y.visibleData.length-1])||void 0===o?void 0:o.$index);l++){var o,u=x.get(l),i=((null==u?void 0:u.getBoundingClientRect())||{}).height;y.cachedHeight[l]=i;var c=y.cachedScrollY[l-1]+y.cachedHeight[l-1];y.cachedScrollY.splice(l,1,c)}for(var s=w-1;s>=(null===(f=y.visibleData[0])||void 0===f?void 0:f.$index);s--){var f,v=x.get(s),p=((null==v?void 0:v.getBoundingClientRect())||{}).height;y.cachedHeight[s]=p;var h=y.cachedScrollY[s+1]-y.cachedHeight[s];y.cachedScrollY.splice(s,1,h)}if(y.cachedScrollY[0]>0){for(var g=y.cachedScrollY[0],b=Math.min(C,t.value.length),m=0;m=j;a--)a===C-1?y.cachedScrollY.splice(a,1,r.value-y.cachedHeight[a]):y.cachedScrollY.splice(a,1,y.cachedScrollY[a+1]-y.cachedHeight[a])}))}};!l&&s(O,D,{flush:"post"}),s(t,(function(){k(),y.visibleData=[],y.cachedScrollY=[],y.cachedHeight=[],_=0,w=0,P=0,j=0,x.clear(),t.value.length<=b?y.visibleData=t.value:F(),n.value&&(n.value.scrollTop=0)}));var M=!1,E=function(){M&&(S=Math.ceil(n.value.offsetHeight/u),F())};return f((function(){if(window&&window.IntersectionObserver){var e=new window.IntersectionObserver((function(t){var r=t[0];(r.isIntersecting||r.intersectionRatio)&&(M=!0,m.value&&E(),e.unobserve(n.value))}));n.value&&e.observe(n.value)}})),Be(Be({trs:x,scrollHeight:I},v(y)),{},{translateY:A,handleScroll:function(){if(m.value){var e=n.value.scrollTop,r=e-_;_=e;var a=w;if(r+=P){if(r>=0){for(;a(y.cachedHeight[a]||u);)y.cachedHeight[a]||(y.cachedHeight[a]=u),r-=y.cachedHeight[a],a++;a>=t.value.length?(w=t.value.length-1,P=0):(w=a,P=r);var l=n.value;e+l.clientHeight===l.scrollHeight&&(w=t.value.length-S+1),j<=w-h&&(j=Math.min(t.value.length-S,w-h))<0&&(j=0)}else{for(;r<0;)a--,y.cachedHeight[a]||(y.cachedHeight[a]=u),r+=y.cachedHeight[a];a<0?(w=0,P=0):(w=a,P=r),D(),j>w-h&&(j=Math.max(0,w-h))}F()}}},handleRowMounted:function(){m.value&&O.value++},refreshContainer:E,fixedHeight:l,calculateScrollY:D})}({container:e.popupContentRef,data:e.options,fixedHeight:(null===(n=e.scroll)||void 0===n?void 0:n.isFixedRowHeight)||!1,lineHeight:(null===(r=e.scroll)||void 0===r?void 0:r.rowHeight)||28,bufferSize:(null===(l=e.scroll)||void 0===l?void 0:l.bufferSize)||20,threshold:(null===(o=e.scroll)||void 0===o?void 0:o.threshold)||100}):{},h=p.trs,g=void 0===h?null:h,b=p.visibleData,y=void 0===b?null:b,m=p.handleScroll,O=void 0===m?null:m,x=p.scrollHeight,S=void 0===x?null:x,_=p.translateY,w=void 0===_?null:_,P=p.handleRowMounted,j=void 0===P?null:P,C=-1,k=function(e){if(u.value){var t=e.target.scrollTop;Math.abs(C-t)>5?(O(),C=t):C=-1}};f((function(){var t;null===(t=e.popupContentRef.value)||void 0===t||t.addEventListener("scroll",k)})),K((function(){var t;null===(t=e.popupContentRef.value)||void 0===t||t.removeEventListener("scroll",k)}));var I=a((function(){return{position:"absolute",width:"1px",height:"1px",transition:"transform 0.2s",transform:"translate(0, ".concat(S.value,"px)"),"-ms-transform":"translate(0, ".concat(S.value,"px)"),"-moz-transform":"translate(0, ".concat(S.value,"px)"),"-webkit-transform":"translate(0, ".concat(S.value,"px)")}})),A=a((function(){return{transform:"translate(0, ".concat(w.value,"px)"),"-ms-transform":"translate(0, ".concat(w.value,"px)"),"-moz-transform":"translate(0, ".concat(w.value,"px)"),"-webkit-transform":"translate(0, ".concat(w.value,"px)")}}));return{trs:g,scrollHeight:S,translateY:w,visibleData:y,handleRowMounted:j,isVirtual:u,cursorStyle:I,panelStyle:A}}; +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */var on=r({name:"TSelectPanel",props:{inputValue:an.inputValue,panelTopContent:an.panelTopContent,panelBottomContent:an.panelBottomContent,empty:an.empty,creatable:an.creatable,loading:an.loading,loadingText:an.loadingText,multiple:an.multiple,filterable:an.filterable,filter:an.filter,scroll:an.scroll,size:an.size},setup:function(e,t){var n=t.expose,r=j("select"),l=S(),o=G(),u=M("select"),i=u.t,s=u.globalConfig,f=X(Qt),v=c(null),p=a((function(){return f.value.popupContentRef.value})),d=a((function(){return e.creatable&&e.filterable&&e.inputValue})),h=a((function(){return f.value.displayOptions})),g=ln({scroll:e.scroll,popupContentRef:p,options:h}),b=g.trs,y=g.visibleData,m=g.handleRowMounted,O=g.isVirtual,_=g.panelStyle,P=g.cursorStyle,C=a((function(){return!h.value.length})),k=function(t){return x("ul",{class:"".concat(r.value,"__list")},[t.map((function(t,n){var r,a,l,o;return t.children?x(rn,{label:t.group,divider:t.divider},"function"==typeof(o=l=k(t.children))||"[object Object]"===Object.prototype.toString.call(o)&&!L(o)?l:{default:function(){return[l]}}):x(nn,w(Q(t,"index","$index","className","tagName"),O.value?{rowIndex:t.$index,trs:b,scrollType:null===(r=e.scroll)||void 0===r?void 0:r.type,isVirtual:O.value,bufferSize:null===(a=e.scroll)||void 0===a?void 0:a.bufferSize,key:"".concat(t.$index||"","_").concat(n,"_").concat(t.value)}:{key:"".concat(n,"_").concat(t.value)},{index:n,multiple:e.multiple,onRowMounted:m}),t.slots)}))])},I=a((function(){return{small:"s",medium:"m",large:"l"}[f.value.size]}));n({innerRef:v,visibleData:y,isVirtual:O,displayOptions:h});return{renderPanel:function(t,n){return x("div",{ref:v,class:["".concat(r.value,"__dropdown-inner"),"".concat(r.value,"__dropdown-inner--size-").concat(I.value)],style:n},[d.value&&x("ul",{class:["".concat(r.value,"__create-option"),"".concat(r.value,"__list")]},[x(nn,{value:e.inputValue,label:"".concat(e.inputValue),createAble:!0,class:"".concat(r.value,"__create-option--special")},null)]),e.loading&&o("loadingText",{defaultNode:x("div",{class:"".concat(r.value,"__loading-tips")},[i(s.value.loadingText)])}),!e.loading&&C.value&&!d.value&&x("div",{class:"".concat(r.value,"__empty")},[l("empty")||i(s.value.empty)]),!C.value&&k(t)])},panelStyle:_,cursorStyle:P,isVirtual:O,displayOptions:h,visibleData:y,renderTNodeJSX:l}},render:function(){return this.isVirtual?x(Z,null,[this.renderTNodeJSX("panelTopContent"),x("div",null,[x("div",{style:this.cursorStyle},null),this.renderPanel(this.visibleData,this.panelStyle)]),this.renderTNodeJSX("panelBottomContent")]):x(Z,null,[this.renderTNodeJSX("panelTopContent"),this.renderPanel(this.displayOptions),this.renderTNodeJSX("panelBottomContent")])}}); +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */ +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */ +function un(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return cn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cn(e,t):void 0}}(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,l=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw l}}}}function cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,o=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){u=!0,l=e},f:function(){try{o||null==n.return||n.return()}finally{if(u)throw l}}}}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n-1)},f=a((function(){if(e.onSearch&&e.filterable)return o.value;if(!n.value||!e.filterable&&!D(e.filter))return o.value;var t,r=[];if(o.value.forEach((function(e){e.children&&r.push(fn(fn({},e),{},{children:e.children.filter(s)})),!0===(null==e?void 0:e.checkAll)&&(t=e),s(e)&&r.push(e)})),!D(e.filter)){var a=r.filter((function(e){return e.label===n.value})),l=r.filter((function(e){return e.label!==n.value}));r=a.concat(l)}return r.length&&t?[t].concat(W(r)):r}));return{options:o,optionsMap:i,optionsList:u,optionsCache:l,displayOptions:f,filterMethods:s}}(e,K,N),J=X.optionsMap,Z=X.optionsList,G=X.optionsCache,Q=X.displayOptions,ue=X.filterMethods,ie=a((function(){return void 0===H.value?e.multiple?[]:void 0:"object"===e.valueType?e.multiple?H.value.map((function(e){return e[K.value.value]})):H.value[K.value.value]:H.value})),ce=function(t,n){if("object"===e.valueType){var r=K.value,a=r.value,l=r.label,o=function(e){if(void 0!==e){var t=J.value.get(e);return p(p({},a,te(t,a)),l,te(t,l))}};t=e.multiple?t.map((function(e){return o(e)})):o(t)}t!==H.value&&(e.multiple&&!e.reserveKeyword&&T(""),z(t,gn({selectedOptions:_e(t)},n)))},se=C(k,!1,(function(t,n){var r;null===(r=e.onPopupVisibleChange)||void 0===r||r.call(e,t,n)}),"popupVisible"),fe=g(se,2),ve=fe[0],pe=fe[1],de=a((function(){var t;return null!==(t=!e.multiple&&ve.value&&Zt(ie.value,J)||e.placeholder)&&void 0!==t?t:_(O.value.placeholder)})),he=a((function(){return e.multiple?function(e,t){var n,r=[],a=Xt(e);try{for(a.s();!(n=a.n()).done;){var l=n.value,o=Zt(l,t);o&&r.push(o)}}catch(u){a.e(u)}finally{a.f()}return r}(ie.value,J):Zt(ie.value,J)})),ge=a((function(){var t,n=e.multiple&&$(ie.value)?ie.value.map((function(e){var t;return{value:e,label:null===(t=J.value.get(e))||void 0===t?void 0:t.label}})):ie.value,r={value:n,onClose:e.multiple?function(e){return me(e)}:function(){}};return e.multiple||Object.assign(r,{label:he.value}),e.minCollapsedNum&&e.multiple?gn(gn({},r),{},{displayValue:null==n||null===(t=n.slice)||void 0===t?void 0:t.call(n,0,e.minCollapsedNum)}):r})),be=a((function(){return Boolean(e.filterable||O.value.filterable||D(e.filter))})),ye=a((function(){return Boolean((e.filterable||O.value.filterable)&&D(e.onSearch))})),me=function(t,n){var r,a=n||{},l=a.e,o=a.trigger,u=void 0===o?"tag-remove":o;l&&l.stopPropagation();var i=U(ie.value),c=i[t];i.splice(t,1),"clear"!==u&&ce(i,{selectedOptions:_e(i),trigger:u,e:l}),null===(r=e.onRemove)||void 0===r||r.call(e,{value:c,data:J.value.get(c),e:l})},Oe=function(){var t;N.value&&(null===(t=e.onCreate)||void 0===t||t.call(e,N.value),ve.value||T(""))},xe=a((function(){var e;return null===(e=Y.value)||void 0===e?void 0:e.popupRef.getOverlay()})),Se=a((function(){return Z.value.filter((function(e){return!e.disabled&&!e["check-all"]&&!e.checkAll&&ue(e)}))})),_e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie.value;return Z.value.filter((function(t){if(!t.checkAll)return $(e)?e.includes(t.value):e===t.value}))},we=function(e){var t=e.displayOptions,n=e.optionsList,r=e.innerPopupVisible,a=e.setInnerPopupVisible,l=e.selectPanelRef,o=e.isFilterable,u=e.isRemoteSearch,i=e.getSelectedOptions,f=e.setInnerValue,v=e.innerValue,p=e.popupContentRef,d=e.multiple,h=e.max,g=c(-1),b=c([]),y=c([]),m=j();return s(r,(function(e){e&&(g.value=-1,y.value=[],b.value=[])})),s(g,(function(e){var t,n=(null===(t=l.value)||void 0===t||null===(t=t.innerRef)||void 0===t||null===(t=t.querySelector(".".concat(m.value,"-select-option")))||void 0===t?void 0:t.clientHeight)*e;p.value.scrollTo({top:n,behavior:"smooth"})})),{hoverIndex:g,handleKeyDown:function(e){var c,s,p=t.value.length,m=g.value;switch(e.code){case"ArrowUp":e.preventDefault(),-1===g.value?m=0:0===g.value||g.value>t.value.length-1?m=p-1:m--,null!==(c=n.value[m])&&void 0!==c&&c.disabled&&m--,g.value=m;break;case"ArrowDown":e.preventDefault(),-1===g.value||g.value>=p-1?m=0:m++,null!==(s=n.value[m])&&void 0!==s&&s.disabled&&m++,g.value=m;break;case"Enter":if(-1===g.value)break;var O=l.value.isVirtual&&o.value&&y.value.length?y.value:u.value?n.value:b.value;if(O.length||(O=n.value),!r.value){a(!0,{e:e});break}if(d){var x;if(-1===g.value)return;var S=null===(x=O[g.value])||void 0===x?void 0:x.value;if(!S)return;var _=Gt(v.value,S);if(h>0&&_.value.length>h)return;var w=i(_.value);f(_.value,{option:w.find((function(e){return e.value==S})),selectedOptions:w,trigger:_.isCheck?"check":"uncheck",e:e}),b.value=[]}else{var P=i(O[g.value].value);f(O[g.value].value,{option:null==P?void 0:P[0],selectedOptions:i(O[g.value].value),trigger:"check",e:e}),a(!1,{e:e})}break;case"Escape":a(!1,{e:e})}},virtualFilteredOptions:y,filteredOptions:b}}({displayOptions:Q,optionsList:Z,innerPopupVisible:ve,setInnerPopupVisible:pe,selectPanelRef:q,isFilterable:be,isRemoteSearch:ye,getSelectedOptions:_e,setInnerValue:ce,innerValue:ie,popupContentRef:xe,multiple:e.multiple,max:e.max}),je=we.hoverIndex,Ce=we.virtualFilteredOptions,ke=we.handleKeyDown,Ie=we.filteredOptions,Ae=function(t){if(e.multiple){var n=ie.value.filter((function(e){return Z.value.find((function(t){return t.value===e&&t.disabled}))})),r=Se.value.map((function(e){return e.value})),a=W(t?new Set([].concat(W(H.value),W(r),W(n))):n);ce(a,{selectedOptions:_e(a),trigger:t?"check":"clear"})}},Fe=a((function(){var e=Se.value.map((function(e){return e.value}));return Pe(ie.value,e).length})),De=a((function(){return Fe.value===Se.value.length})),Me=a((function(){return!De.value&&0!==Fe.value})),Ee=a((function(){return{max:e.max,multiple:e.multiple,hoverIndex:je.value,selectValue:ie.value,reserveKeyword:e.reserveKeyword,handleValueChange:ce,handlerInputChange:T,handlePopupVisibleChange:pe,handleCreate:Oe,size:e.size,popupContentRef:xe,indeterminate:Me.value,isCheckAll:De.value,onCheckAllChange:Ae,getSelectedOptions:_e,displayOptions:Q.value,emitBlur:Te}}));oe(Qt,Ee);var Ve=function(){!e.multiple&&$(H.value)&&z(void 0,{selectedOptions:[],trigger:"default"}),e.multiple&&!$(H.value)&&z([],{selectedOptions:[],trigger:"default"})},Be=ne((function(t,n){var r,a=n.e;null===(r=e.onSearch)||void 0===r||r.call(e,"".concat(t),{e:a})}),300),Ne=function(e,t){e&&!ve.value&&pe(!0,{e:t.e}),T(e),Be("".concat(e),{e:t.e}),d((function(){var e,t;Ce.value=null===(e=q.value)||void 0===e?void 0:e.visibleData,Ie.value=null===(t=q.value)||void 0===t?void 0:t.displayOptions}))},Te=function(t){var n;null===(n=e.onBlur)||void 0===n||n.call(e,{e:t,value:ie.value})},Re=function(e,t){pe(e,t),e&&"trigger-element-click"===t.trigger&&T("")},Le=function(){var t=ae(le.mark((function t(n){var r,a,l;return le.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=e.popupProps,!e.loading){t.next=3;break}return t.abrupt("return");case 3:null==l||null===(r=l["on-scroll-to-bottom"])||void 0===r||r.call(l,n),null==l||null===(a=l.onScrollToBottom)||void 0===a||a.call(l,n);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();s(H,(function(t){Ve(),d((function(){!function(t){if(e.multiple){var n,r=[],a=pn(t||[]);try{for(a.s();!(n=a.n()).done;){var l=n.value,o=J.value.get(l);o&&r.push(o)}}catch(i){a.e(i)}finally{a.f()}G.value=Array.from(new Set([].concat(r,W(G.value))))}else{var u=J.value.get(t);u&&(G.value=Array.from(new Set([u].concat(W(G.value)))))}}(t)}))}),{immediate:!0}),s((function(){return e.multiple}),(function(){Ve()}));return oe("updateScrollTop",(function(e){var t;if(q.value){var n=null===(t=q.value)||void 0===t||null===(t=t.innerRef)||void 0===t?void 0:t.querySelector(".".concat(l.value,"-is-selected"));d((function(){if(n&&e){var t=getComputedStyle(n).paddingBottom,r=getComputedStyle(e).marginBottom,a=parseInt(t,10)+parseInt(r,10),l=n.offsetTop-e.offsetTop-(e.clientHeight-n.clientHeight)+a;e.scrollTop=l}}))}})),function(){var t=e.popupProps||{},a=t.overlayClassName,l=I(t,vn);return x("div",{class:"".concat(f.value,"__wrap")},[x(Kt,w({autoWidth:e.autoWidth,readonly:u.value,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:Y,class:f.value,value:he.value,disabled:o.value,popupVisible:ve.value,inputValue:ve.value?N.value:"",placeholder:"".concat(de.value),allowInput:be.value,"collapsed-items":e.collapsedItems,inputProps:gn(gn({size:e.size,autofocus:e.autofocus},e.inputProps),{},{onkeydown:ke}),tagInputProps:gn({size:e.size},e.tagInputProps),onTagChange:function(e,t){me(t.index,t)},tagProps:gn({},e.tagProps),popupProps:gn(gn({overlayClassName:["".concat(f.value,"__dropdown"),a]},l),{},{onScrollToBottom:Le}),label:e.label,prefixIcon:e.prefixIcon,suffix:e.suffix,suffixIcon:function(){return e.suffixIcon||r.suffixIcon?i("suffixIcon"):e.showArrow&&x(re,{overlayClassName:"".concat(f.value,"__right-icon"),isActive:ve.value},null)},valueDisplay:function(){return i("valueDisplay",{params:ge.value})},onPopupVisibleChange:Re,onInputChange:Ne,onClear:function(t){var n,r=t.e;ce(e.multiple?[]:void 0,{option:null,selectedOptions:_e(e.multiple?[]:void 0),trigger:"clear",e:r}),null===(n=e.onClear)||void 0===n||n.call(e,{e:r})},onEnter:function(t,n){var r=n.e;setTimeout((function(){var t;null===(t=e.onEnter)||void 0===t||t.call(e,{inputValue:"".concat(N.value),e:r,value:ie.value}),Oe()}),0)},onBlur:function(t,n){var r,a=n.e;null===(r=e.onBlur)||void 0===r||r.call(e,{e:a,value:ie.value})},onFocus:function(t,n){var r,a=n.e;null===(r=e.onFocus)||void 0===r||r.call(e,{e:a,value:ie.value})}},e.selectInputProps),{label:r.label,prefixIcon:r.prefixIcon,suffix:r.suffix,panel:function(){return x(on,w({ref:q},n(e,["size","multiple","empty","loading","loadingText","filterable","creatable","panelTopContent","panelBottomContent","filter","scroll"]),{inputValue:N.value}),r)},collapsedItems:r.collapsedItems})])}}})),yn=P(nn); +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */P(rn); +/** + * tdesign v1.11.1 + * (c) 2025 tdesign + * @license MIT + */ +var mn,On,xn={exports:{}},Sn={exports:{}};mn=Sn,On=Sn.exports,Object.defineProperty(On,"__esModule",{value:!0}),On.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},mn.exports=On.default,mn.exports.default=On.default,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,r.default)({format:t},o):(0,r.default)(t,o);if("string"==typeof e&&(O=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(O))){var n,l=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),u=t.strictMode?l:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),i=function(e,t){for(var n=[],r=Math.min(e.length,t.length),a=0;a=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){i=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(n=s.n()).done;){var f=(y=n.value,m=2,function(e){if(Array.isArray(e))return e}(y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,o,u=[],i=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t);else for(;!(i=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);i=!0);}catch(s){c=!0,a=s}finally{try{if(!i&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}(y,m)||a(y,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=f[0],p=f[1];if(v.length!==p.length)return!1;c[p.charAt(0)]=v}}catch(x){s.e(x)}finally{s.f()}var d=c.y;if(d.startsWith("-"))return!1;if(2===c.y.length){var h=parseInt(c.y,10);if(isNaN(h))return!1;d=h<(new Date).getFullYear()%100?"20".concat(c.y):"19".concat(c.y)}var g=c.m;1===c.m.length&&(g="0".concat(c.m));var b=c.d;return 1===c.d.length&&(b="0".concat(c.d)),new Date("".concat(d,"-").concat(g,"-").concat(b,"T00:00:00.000Z")).getUTCDate()===+c.d}var y,m;var O;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var n,r=(n=Sn.exports)&&n.__esModule?n:{default:n};function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n&&(void 0===l||o<=l)};var n,r=(n=Pn.exports)&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default}(jn,jn.exports);var Cn={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,r.default)(t,l)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var a=e.split("."),o=a[a.length-1];if(t.require_tld){if(a.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return a.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=a(Pn.exports),r=a(Sn.exports);function a(e){return e&&e.__esModule?e:{default:e}}var l={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default}(Cn,Cn.exports);var kn={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return o.test(t);if("6"===n)return i.test(t);return!1};var n,r=(n=Pn.exports)&&n.__esModule?n:{default:n};var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",l="(".concat(a,"[.]){3}").concat(a),o=new RegExp("^".concat(l,"$")),u="(?:[0-9a-fA-F]{1,4})",i=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(l,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(l,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(l,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(l,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(l,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(l,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(l,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(kn,kn.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,o.default)(t,i)).require_display_name||t.allow_display_name){var u=e.match(c);if(u){var g=u[1];if(e=e.replace(g,"").replace(/(^<|>$)/g,""),g.endsWith(" ")&&(g=g.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(g))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>h)return!1;var b=e.split("@"),y=b.pop(),m=y.toLowerCase();if(t.host_blacklist.includes(m))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(m))return!1;var O=b.join("@");if(t.domain_specific_validation&&("gmail.com"===m||"googlemail.com"===m)){var x=(O=O.toLowerCase()).split("+")[0];if(!(0,r.default)(x.replace(/\./g,""),{min:6,max:30}))return!1;for(var S=x.split("."),_=0;_]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,l.default)(t,i)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var o,f,v,p,d,h,g,b;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(o=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(o))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((f=g.shift()).indexOf(":")>=0&&f.split(":").length>2)return!1;var y=f.split(":"),m=(_=2,function(e){if(Array.isArray(e))return e}(S=y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,o,u=[],i=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t);else for(;!(i=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);i=!0);}catch(s){c=!0,a=s}finally{try{if(!i&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}(S,_)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(S,_)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),O=m[0],x=m[1];if(""===O&&""===x)return!1}var S,_;p=g.join("@"),h=null,b=null;var w=p.match(c);w?(v="",b=w[1],h=w[2]||null):(v=(g=p.split(":")).shift(),g.length&&(h=g.join(":")));if(null!==h&&h.length>0){if(d=parseInt(h,10),!/^[0-9]+$/.test(h)||d<=0||d>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return s(v,t.host_whitelist);if(""===v&&!t.require_host)return!0;if(!((0,a.default)(v)||(0,r.default)(v,t)||b&&(0,a.default)(b,6)))return!1;if(v=v||b,t.host_blacklist&&s(v,t.host_blacklist))return!1;return!0};var n=o(Pn.exports),r=o(Cn.exports),a=o(kn.exports),l=o(Sn.exports);function o(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t:fe(e)>=t},len:function(e,t){return fe(String(e))===t},number:function(e){return se(e)},enum:function(e,t){return t.includes(e)},idcard:function(e){return/^(\d{18,18}|\d{15,15}|\d{17,17}x)$/i.test(e)},telnumber:function(e){return/^1[3-9]\d{9}$/.test(e)},pattern:function(e,t){return t.test(e)},validator:function(e,t){return t(e)}};function Vn(e,t){return Bn.apply(this,arguments)}function Bn(){return(Bn=ae(le.mark((function e(t,n){var r,a,l,o,u,i,c;return le.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r={result:!0},a=Object.keys(n),u=0;case 3:if(!(u