"use strict";(self["webpackChunkwordhelper"]=self["webpackChunkwordhelper"]||[]).push([[150],{9845:function(e,n,t){t.d(n,{A:function(){return v}});var o=t(56768),l=t(84279),i=(0,o.pM)({name:"Empty",render(){return(0,o.h)("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),(0,o.h)("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),r=t(79882),a=t(88733),s=t(82813),d=t(25216),c=t(34350),u=t(52945),h=(0,c.cB)("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[(0,c.cE)("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[(0,c.c)("+",[(0,c.cE)("description","\n margin-top: 8px;\n ")])]),(0,c.cE)("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),(0,c.cE)("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]);const p=Object.assign(Object.assign({},r.A.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function});var v=(0,o.pM)({name:"Empty",props:p,slots:Object,setup(e){const{mergedClsPrefixRef:n,inlineThemeDisabled:t,mergedComponentPropsRef:l}=(0,a.Ay)(e),p=(0,r.A)("Empty","-empty",h,u.A,e,n),{localeRef:v}=(0,s.A)("Empty"),f=(0,o.EW)(()=>{var n,t,o;return null!==(n=e.description)&&void 0!==n?n:null===(o=null===(t=null===l||void 0===l?void 0:l.value)||void 0===t?void 0:t.Empty)||void 0===o?void 0:o.description}),g=(0,o.EW)(()=>{var e,n;return(null===(n=null===(e=null===l||void 0===l?void 0:l.value)||void 0===e?void 0:e.Empty)||void 0===n?void 0:n.renderIcon)||(()=>(0,o.h)(i,null))}),b=(0,o.EW)(()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:t},self:{[(0,c.cF)("iconSize",n)]:o,[(0,c.cF)("fontSize",n)]:l,textColor:i,iconColor:r,extraTextColor:a}}=p.value;return{"--n-icon-size":o,"--n-font-size":l,"--n-bezier":t,"--n-text-color":i,"--n-icon-color":r,"--n-extra-text-color":a}}),m=t?(0,d.R)("empty",(0,o.EW)(()=>{let n="";const{size:t}=e;return n+=t[0],n}),b,e):void 0;return{mergedClsPrefix:n,mergedRenderIcon:g,localizedDescription:(0,o.EW)(()=>f.value||v.value.description),cssVars:t?void 0:b,themeClass:null===m||void 0===m?void 0:m.themeClass,onRender:null===m||void 0===m?void 0:m.onRender}},render(){const{$slots:e,mergedClsPrefix:n,onRender:t}=this;return null===t||void 0===t||t(),(0,o.h)("div",{class:[`${n}-empty`,this.themeClass],style:this.cssVars},this.showIcon?(0,o.h)("div",{class:`${n}-empty__icon`},e.icon?e.icon():(0,o.h)(l.A,{clsPrefix:n},{default:this.mergedRenderIcon})):null,this.showDescription?(0,o.h)("div",{class:`${n}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?(0,o.h)("div",{class:`${n}-empty__extra`},e.extra()):null)}})},19605:function(e,n,t){t.d(n,{A:function(){return V}});t(44114),t(18111),t(22489),t(7588),t(13579);var o=t(35862),l=t(11336),i=t(47794),r=t(76730),a=t(34707),s=t(37485),d=t(14072),c=t(56768),u=t(90144),h=t(45130),p=t(25293),v=t(97568),f=t(44124),g=(t(61701),t(55472)),b=t(39055),m=t(79882),w=t(88733),y=t(38741),x=t(25216),C=t(24006),R=t(96206),S=t(34350),F=t(3482);function z(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}var B=t(36921),T=t(92720),M=t(51825),k=t(69272),O=(0,S.c)([(0,S.cB)("base-selection","\n --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);\n --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);\n position: relative;\n z-index: auto;\n box-shadow: none;\n width: 100%;\n max-width: 100%;\n display: inline-block;\n vertical-align: bottom;\n border-radius: var(--n-border-radius);\n min-height: var(--n-height);\n line-height: 1.5;\n font-size: var(--n-font-size);\n ",[(0,S.cB)("base-loading","\n color: var(--n-loading-color);\n "),(0,S.cB)("base-selection-tags","min-height: var(--n-height);"),(0,S.cE)("border, state-border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border: var(--n-border);\n border-radius: inherit;\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),(0,S.cE)("state-border","\n z-index: 1;\n border-color: #0000;\n "),(0,S.cB)("base-suffix","\n cursor: pointer;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 10px;\n ",[(0,S.cE)("arrow","\n font-size: var(--n-arrow-size);\n color: var(--n-arrow-color);\n transition: color .3s var(--n-bezier);\n ")]),(0,S.cB)("base-selection-overlay","\n display: flex;\n align-items: center;\n white-space: nowrap;\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: var(--n-padding-single);\n transition: color .3s var(--n-bezier);\n ",[(0,S.cE)("wrapper","\n flex-basis: 0;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n ")]),(0,S.cB)("base-selection-placeholder","\n color: var(--n-placeholder-color);\n ",[(0,S.cE)("inner","\n max-width: 100%;\n overflow: hidden;\n ")]),(0,S.cB)("base-selection-tags","\n cursor: pointer;\n outline: none;\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n display: flex;\n padding: var(--n-padding-multiple);\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n vertical-align: bottom;\n background-color: var(--n-color);\n border-radius: inherit;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),(0,S.cB)("base-selection-label","\n height: var(--n-height);\n display: inline-flex;\n width: 100%;\n vertical-align: bottom;\n cursor: pointer;\n outline: none;\n z-index: auto;\n box-sizing: border-box;\n position: relative;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n border-radius: inherit;\n background-color: var(--n-color);\n align-items: center;\n ",[(0,S.cB)("base-selection-input","\n font-size: inherit;\n line-height: inherit;\n outline: none;\n cursor: pointer;\n box-sizing: border-box;\n border:none;\n width: 100%;\n padding: var(--n-padding-single);\n background-color: #0000;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n caret-color: var(--n-caret-color);\n ",[(0,S.cE)("content","\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap; \n ")]),(0,S.cE)("render-label","\n color: var(--n-text-color);\n ")]),(0,S.C5)("disabled",[(0,S.c)("&:hover",[(0,S.cE)("state-border","\n box-shadow: var(--n-box-shadow-hover);\n border: var(--n-border-hover);\n ")]),(0,S.cM)("focus",[(0,S.cE)("state-border","\n box-shadow: var(--n-box-shadow-focus);\n border: var(--n-border-focus);\n ")]),(0,S.cM)("active",[(0,S.cE)("state-border","\n box-shadow: var(--n-box-shadow-active);\n border: var(--n-border-active);\n "),(0,S.cB)("base-selection-label","background-color: var(--n-color-active);"),(0,S.cB)("base-selection-tags","background-color: var(--n-color-active);")])]),(0,S.cM)("disabled","cursor: not-allowed;",[(0,S.cE)("arrow","\n color: var(--n-arrow-color-disabled);\n "),(0,S.cB)("base-selection-label","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[(0,S.cB)("base-selection-input","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n "),(0,S.cE)("render-label","\n color: var(--n-text-color-disabled);\n ")]),(0,S.cB)("base-selection-tags","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n "),(0,S.cB)("base-selection-placeholder","\n cursor: not-allowed;\n color: var(--n-placeholder-color-disabled);\n ")]),(0,S.cB)("base-selection-input-tag","\n height: calc(var(--n-height) - 6px);\n line-height: calc(var(--n-height) - 6px);\n outline: none;\n display: none;\n position: relative;\n margin-bottom: 3px;\n max-width: 100%;\n vertical-align: bottom;\n ",[(0,S.cE)("input","\n font-size: inherit;\n font-family: inherit;\n min-width: 1px;\n padding: 0;\n background-color: #0000;\n outline: none;\n border: none;\n max-width: 100%;\n overflow: hidden;\n width: 1em;\n line-height: inherit;\n cursor: pointer;\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n "),(0,S.cE)("mirror","\n position: absolute;\n left: 0;\n top: 0;\n white-space: pre;\n visibility: hidden;\n user-select: none;\n -webkit-user-select: none;\n opacity: 0;\n ")]),["warning","error"].map(e=>(0,S.cM)(`${e}-status`,[(0,S.cE)("state-border",`border: var(--n-border-${e});`),(0,S.C5)("disabled",[(0,S.c)("&:hover",[(0,S.cE)("state-border",`\n box-shadow: var(--n-box-shadow-hover-${e});\n border: var(--n-border-hover-${e});\n `)]),(0,S.cM)("active",[(0,S.cE)("state-border",`\n box-shadow: var(--n-box-shadow-active-${e});\n border: var(--n-border-active-${e});\n `),(0,S.cB)("base-selection-label",`background-color: var(--n-color-active-${e});`),(0,S.cB)("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),(0,S.cM)("focus",[(0,S.cE)("state-border",`\n box-shadow: var(--n-box-shadow-focus-${e});\n border: var(--n-border-focus-${e});\n `)])])]))]),(0,S.cB)("base-selection-popover","\n margin-bottom: -3px;\n display: flex;\n flex-wrap: wrap;\n margin-right: -8px;\n "),(0,S.cB)("base-selection-tag-wrapper","\n max-width: 100%;\n display: inline-flex;\n padding: 0 7px 3px 0;\n ",[(0,S.c)("&:last-child","padding-right: 0;"),(0,S.cB)("tag","\n font-size: 14px;\n max-width: 100%;\n ",[(0,S.cE)("content","\n line-height: 1.25;\n text-overflow: ellipsis;\n overflow: hidden;\n ")])])]),E=(0,c.pM)({name:"InternalSelection",props:Object.assign(Object.assign({},m.A.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:n,mergedRtlRef:t}=(0,w.Ay)(e),o=(0,y.I)("InternalSelection",t,n),l=(0,u.KR)(null),i=(0,u.KR)(null),r=(0,u.KR)(null),a=(0,u.KR)(null),s=(0,u.KR)(null),d=(0,u.KR)(null),h=(0,u.KR)(null),p=(0,u.KR)(null),v=(0,u.KR)(null),f=(0,u.KR)(null),b=(0,u.KR)(!1),F=(0,u.KR)(!1),z=(0,u.KR)(!1),B=(0,m.A)("InternalSelection","-internal-selection",O,k.A,e,(0,u.lW)(e,"clsPrefix")),T=(0,c.EW)(()=>e.clearable&&!e.disabled&&(z.value||e.active)),M=(0,c.EW)(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):(0,C.X)(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),E=(0,c.EW)(()=>{const n=e.selectedOption;if(n)return n[e.labelField]}),A=(0,c.EW)(()=>e.multiple?!(!Array.isArray(e.selectedOptions)||!e.selectedOptions.length):null!==e.selectedOption);function P(){var n;const{value:t}=l;if(t){const{value:o}=i;o&&(o.style.width=`${t.offsetWidth}px`,"responsive"!==e.maxTagCount&&(null===(n=v.value)||void 0===n||n.sync({showAllItemsBeforeCalculate:!1})))}}function I(){const{value:e}=f;e&&(e.style.display="none")}function W(){const{value:e}=f;e&&(e.style.display="inline-block")}function $(n){const{onFocus:t}=e;t&&t(n)}function L(n){const{onBlur:t}=e;t&&t(n)}function K(n){const{onDeleteOption:t}=e;t&&t(n)}function D(n){const{onClear:t}=e;t&&t(n)}function N(n){const{onPatternInput:t}=e;t&&t(n)}function _(e){var n;e.relatedTarget&&(null===(n=r.value)||void 0===n?void 0:n.contains(e.relatedTarget))||$(e)}function j(e){var n;(null===(n=r.value)||void 0===n?void 0:n.contains(e.relatedTarget))||L(e)}function V(e){D(e)}function H(){z.value=!0}function q(){z.value=!1}function U(n){e.active&&e.filterable&&n.target!==i.value&&n.preventDefault()}function G(e){K(e)}(0,c.wB)((0,u.lW)(e,"active"),e=>{e||I()}),(0,c.wB)((0,u.lW)(e,"pattern"),()=>{e.multiple&&(0,c.dY)(P)});const X=(0,u.KR)(!1);function Y(n){if("Backspace"===n.key&&!X.value&&!e.pattern.length){const{selectedOptions:n}=e;(null===n||void 0===n?void 0:n.length)&&G(n[n.length-1])}}let Q=null;function Z(n){const{value:t}=l;if(t){const e=n.target.value;t.textContent=e,P()}e.ignoreComposition&&X.value?Q=n:N(n)}function J(){X.value=!0}function ee(){X.value=!1,e.ignoreComposition&&N(Q),Q=null}function ne(n){var t;F.value=!0,null===(t=e.onPatternFocus)||void 0===t||t.call(e,n)}function te(n){var t;F.value=!1,null===(t=e.onPatternBlur)||void 0===t||t.call(e,n)}function oe(){var n,t;if(e.filterable)F.value=!1,null===(n=d.value)||void 0===n||n.blur(),null===(t=i.value)||void 0===t||t.blur();else if(e.multiple){const{value:e}=a;null===e||void 0===e||e.blur()}else{const{value:e}=s;null===e||void 0===e||e.blur()}}function le(){var n,t,o;e.filterable?(F.value=!1,null===(n=d.value)||void 0===n||n.focus()):e.multiple?null===(t=a.value)||void 0===t||t.focus():null===(o=s.value)||void 0===o||o.focus()}function ie(){const{value:e}=i;e&&(W(),e.focus())}function re(){const{value:e}=i;e&&e.blur()}function ae(e){const{value:n}=h;n&&n.setTextContent(`+${e}`)}function se(){const{value:e}=p;return e}function de(){return i.value}let ce=null;function ue(){null!==ce&&window.clearTimeout(ce)}function he(){e.active||(ue(),ce=window.setTimeout(()=>{A.value&&(b.value=!0)},100))}function pe(){ue()}function ve(e){e||(ue(),b.value=!1)}(0,c.wB)(A,e=>{e||(b.value=!1)}),(0,c.sV)(()=>{(0,c.nT)(()=>{const n=d.value;n&&(e.disabled?n.removeAttribute("tabindex"):n.tabIndex=F.value?-1:0)})}),(0,R.P)(r,e.onResize);const{inlineThemeDisabled:fe}=e,ge=(0,c.EW)(()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:t},self:{fontWeight:o,borderRadius:l,color:i,placeholderColor:r,textColor:a,paddingSingle:s,paddingMultiple:d,caretColor:c,colorDisabled:u,textColorDisabled:h,placeholderColorDisabled:p,colorActive:v,boxShadowFocus:f,boxShadowActive:b,boxShadowHover:m,border:w,borderFocus:y,borderHover:x,borderActive:C,arrowColor:R,arrowColorDisabled:F,loadingColor:z,colorActiveWarning:T,boxShadowFocusWarning:M,boxShadowActiveWarning:k,boxShadowHoverWarning:O,borderWarning:E,borderFocusWarning:A,borderHoverWarning:P,borderActiveWarning:I,colorActiveError:W,boxShadowFocusError:$,boxShadowActiveError:L,boxShadowHoverError:K,borderError:D,borderFocusError:N,borderHoverError:_,borderActiveError:j,clearColor:V,clearColorHover:H,clearColorPressed:q,clearSize:U,arrowSize:G,[(0,S.cF)("height",n)]:X,[(0,S.cF)("fontSize",n)]:Y}}=B.value,Q=(0,g.Cq)(s),Z=(0,g.Cq)(d);return{"--n-bezier":t,"--n-border":w,"--n-border-active":C,"--n-border-focus":y,"--n-border-hover":x,"--n-border-radius":l,"--n-box-shadow-active":b,"--n-box-shadow-focus":f,"--n-box-shadow-hover":m,"--n-caret-color":c,"--n-color":i,"--n-color-active":v,"--n-color-disabled":u,"--n-font-size":Y,"--n-height":X,"--n-padding-single-top":Q.top,"--n-padding-multiple-top":Z.top,"--n-padding-single-right":Q.right,"--n-padding-multiple-right":Z.right,"--n-padding-single-left":Q.left,"--n-padding-multiple-left":Z.left,"--n-padding-single-bottom":Q.bottom,"--n-padding-multiple-bottom":Z.bottom,"--n-placeholder-color":r,"--n-placeholder-color-disabled":p,"--n-text-color":a,"--n-text-color-disabled":h,"--n-arrow-color":R,"--n-arrow-color-disabled":F,"--n-loading-color":z,"--n-color-active-warning":T,"--n-box-shadow-focus-warning":M,"--n-box-shadow-active-warning":k,"--n-box-shadow-hover-warning":O,"--n-border-warning":E,"--n-border-focus-warning":A,"--n-border-hover-warning":P,"--n-border-active-warning":I,"--n-color-active-error":W,"--n-box-shadow-focus-error":$,"--n-box-shadow-active-error":L,"--n-box-shadow-hover-error":K,"--n-border-error":D,"--n-border-focus-error":N,"--n-border-hover-error":_,"--n-border-active-error":j,"--n-clear-size":U,"--n-clear-color":V,"--n-clear-color-hover":H,"--n-clear-color-pressed":q,"--n-arrow-size":G,"--n-font-weight":o}}),be=fe?(0,x.R)("internal-selection",(0,c.EW)(()=>e.size[0]),ge,e):void 0;return{mergedTheme:B,mergedClearable:T,mergedClsPrefix:n,rtlEnabled:o,patternInputFocused:F,filterablePlaceholder:M,label:E,selected:A,showTagsPanel:b,isComposing:X,counterRef:h,counterWrapperRef:p,patternInputMirrorRef:l,patternInputRef:i,selfRef:r,multipleElRef:a,singleElRef:s,patternInputWrapperRef:d,overflowRef:v,inputTagElRef:f,handleMouseDown:U,handleFocusin:_,handleClear:V,handleMouseEnter:H,handleMouseLeave:q,handleDeleteOption:G,handlePatternKeyDown:Y,handlePatternInputInput:Z,handlePatternInputBlur:te,handlePatternInputFocus:ne,handleMouseEnterCounter:he,handleMouseLeaveCounter:pe,handleFocusout:j,handleCompositionEnd:ee,handleCompositionStart:J,onPopoverUpdateShow:ve,focus:le,focusInput:ie,blur:oe,blurInput:re,updateCounter:ae,getCounter:se,getTail:de,renderLabel:e.renderLabel,cssVars:fe?void 0:ge,themeClass:null===be||void 0===be?void 0:be.themeClass,onRender:null===be||void 0===be?void 0:be.onRender}},render(){const{status:e,multiple:n,size:t,disabled:o,filterable:l,maxTagCount:i,bordered:r,clsPrefix:a,ellipsisTagPopoverProps:s,onRender:d,renderTag:u,renderLabel:h}=this;null===d||void 0===d||d();const p="responsive"===i,v="number"===typeof i,f=p||v,g=(0,c.h)(F.m,null,{default:()=>(0,c.h)(M.A,{clsPrefix:a,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var e,n;return null===(n=(e=this.$slots).arrow)||void 0===n?void 0:n.call(e)}})});let m;if(n){const{labelField:e}=this,n=n=>(0,c.h)("div",{class:`${a}-base-selection-tag-wrapper`,key:n.value},u?u({option:n,handleClose:()=>{this.handleDeleteOption(n)}}):(0,c.h)(T.Ay,{size:t,closable:!n.disabled,disabled:o,onClose:()=>{this.handleDeleteOption(n)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>h?h(n,!0):(0,C.X)(n[e],n,!0)})),r=()=>(v?this.selectedOptions.slice(0,i):this.selectedOptions).map(n),d=l?(0,c.h)("div",{class:`${a}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},(0,c.h)("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${a}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),(0,c.h)("span",{ref:"patternInputMirrorRef",class:`${a}-base-selection-input-tag__mirror`},this.pattern)):null,w=p?()=>(0,c.h)("div",{class:`${a}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},(0,c.h)(T.Ay,{size:t,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o})):void 0;let y;if(v){const e=this.selectedOptions.length-i;e>0&&(y=(0,c.h)("div",{class:`${a}-base-selection-tag-wrapper`,key:"__counter__"},(0,c.h)(T.Ay,{size:t,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${e}`})))}const x=p?l?(0,c.h)(b.A,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:w,tail:()=>d}):(0,c.h)(b.A,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:w}):v&&y?r().concat(y):r(),R=f?()=>(0,c.h)("div",{class:`${a}-base-selection-popover`},p?r():this.selectedOptions.map(n)):void 0,S=f?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},s):null,F=!this.selected&&(!this.active||!this.pattern&&!this.isComposing),z=F?(0,c.h)("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`},(0,c.h)("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)):null,M=l?(0,c.h)("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-tags`},x,p?null:d,g):(0,c.h)("div",{ref:"multipleElRef",class:`${a}-base-selection-tags`,tabindex:o?void 0:0},x,g);m=(0,c.h)(c.FK,null,f?(0,c.h)(B.Ay,Object.assign({},S,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>M,default:R}):M,z)}else if(l){const e=this.pattern||this.isComposing,n=this.active?!e:!this.selected,t=!this.active&&this.selected;m=(0,c.h)("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-label`,title:this.patternInputFocused?void 0:z(this.label)},(0,c.h)("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${a}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),t?(0,c.h)("div",{class:`${a}-base-selection-label__render-label ${a}-base-selection-overlay`,key:"input"},(0,c.h)("div",{class:`${a}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):h?h(this.selectedOption,!0):(0,C.X)(this.label,this.selectedOption,!0))):null,n?(0,c.h)("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},(0,c.h)("div",{class:`${a}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else m=(0,c.h)("div",{ref:"singleElRef",class:`${a}-base-selection-label`,tabindex:this.disabled?void 0:0},void 0!==this.label?(0,c.h)("div",{class:`${a}-base-selection-input`,title:z(this.label),key:"input"},(0,c.h)("div",{class:`${a}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):h?h(this.selectedOption,!0):(0,C.X)(this.label,this.selectedOption,!0))):(0,c.h)("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},(0,c.h)("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)),g);return(0,c.h)("div",{ref:"selfRef",class:[`${a}-base-selection`,this.rtlEnabled&&`${a}-base-selection--rtl`,this.themeClass,e&&`${a}-base-selection--${e}-status`,{[`${a}-base-selection--active`]:this.active,[`${a}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${a}-base-selection--disabled`]:this.disabled,[`${a}-base-selection--multiple`]:this.multiple,[`${a}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},m,r?(0,c.h)("div",{class:`${a}-base-selection__border`}):null,r?(0,c.h)("div",{class:`${a}-base-selection__state-border`}):null)}}),A=t(44650),P=t(82813),I=t(70151),W=t(62334),$=t(37901),L=t(98087),K=t(97031),D=t(33492),N=(0,S.c)([(0,S.cB)("select","\n z-index: auto;\n outline: none;\n width: 100%;\n position: relative;\n font-weight: var(--n-font-weight);\n "),(0,S.cB)("select-menu","\n margin: 4px 0;\n box-shadow: var(--n-menu-box-shadow);\n ",[(0,D.S)({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),_=t(28828);const j=Object.assign(Object.assign({},m.A.props),{to:W.$.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array});var V=(0,c.pM)({name:"Select",props:j,slots:Object,setup(e){const{mergedClsPrefixRef:n,mergedBorderedRef:t,namespaceRef:r,inlineThemeDisabled:h}=(0,w.Ay)(e),p=(0,m.A)("Select","-select",N,K.A,e,n),v=(0,u.KR)(e.defaultValue),f=(0,u.lW)(e,"value"),g=(0,a.A)(f,v),b=(0,u.KR)(!1),y=(0,u.KR)(""),C=(0,s.A)(e,["items","options"]),R=(0,u.KR)([]),S=(0,u.KR)([]),F=(0,c.EW)(()=>S.value.concat(R.value).concat(C.value)),z=(0,c.EW)(()=>{const{filter:n}=e;if(n)return n;const{labelField:t,valueField:o}=e;return(e,n)=>{if(!n)return!1;const l=n[t];if("string"===typeof l)return(0,_.lT)(e,l);const i=n[o];return"string"===typeof i?(0,_.lT)(e,i):"number"===typeof i&&(0,_.lT)(e,String(i))}}),B=(0,c.EW)(()=>{if(e.remote)return C.value;{const{value:n}=F,{value:t}=y;return t.length&&e.filterable?(0,_.f2)(n,z.value,t,e.childrenField):n}}),T=(0,c.EW)(()=>{const{valueField:n,childrenField:t}=e,o=(0,_.ag)(n,t);return(0,i.G)(B.value,o)}),M=(0,c.EW)(()=>(0,_.Tr)(F.value,e.valueField,e.childrenField)),k=(0,u.KR)(!1),O=(0,a.A)((0,u.lW)(e,"show"),k),E=(0,u.KR)(null),A=(0,u.KR)(null),D=(0,u.KR)(null),{localeRef:j}=(0,P.A)("Select"),V=(0,c.EW)(()=>{var n;return null!==(n=e.placeholder)&&void 0!==n?n:j.value.placeholder}),H=[],q=(0,u.KR)(new Map),U=(0,c.EW)(()=>{const{fallbackOption:n}=e;if(void 0===n){const{labelField:n,valueField:t}=e;return e=>({[n]:String(e),[t]:e})}return!1!==n&&(e=>Object.assign(n(e),{value:e}))});function G(n){const t=e.remote,{value:o}=q,{value:l}=M,{value:i}=U,r=[];return n.forEach(e=>{if(l.has(e))r.push(l.get(e));else if(t&&o.has(e))r.push(o.get(e));else if(i){const n=i(e);n&&r.push(n)}}),r}const X=(0,c.EW)(()=>{if(e.multiple){const{value:e}=g;return Array.isArray(e)?G(e):[]}return null}),Y=(0,c.EW)(()=>{const{value:n}=g;return e.multiple||Array.isArray(n)||null===n?null:G([n])[0]||null}),Q=(0,I.A)(e),{mergedSizeRef:Z,mergedDisabledRef:J,mergedStatusRef:ee}=Q;function ne(n,t){const{onChange:o,"onUpdate:value":l,onUpdateValue:i}=e,{nTriggerFormChange:r,nTriggerFormInput:a}=Q;o&&(0,$.T)(o,n,t),i&&(0,$.T)(i,n,t),l&&(0,$.T)(l,n,t),v.value=n,r(),a()}function te(n){const{onBlur:t}=e,{nTriggerFormBlur:o}=Q;t&&(0,$.T)(t,n),o()}function oe(){const{onClear:n}=e;n&&(0,$.T)(n)}function le(n){const{onFocus:t,showOnFocus:o}=e,{nTriggerFormFocus:l}=Q;t&&(0,$.T)(t,n),l(),o&&de()}function ie(n){const{onSearch:t}=e;t&&(0,$.T)(t,n)}function re(n){const{onScroll:t}=e;t&&(0,$.T)(t,n)}function ae(){var n;const{remote:t,multiple:o}=e;if(t){const{value:t}=q;if(o){const{valueField:o}=e;null===(n=X.value)||void 0===n||n.forEach(e=>{t.set(e[o],e)})}else{const n=Y.value;n&&t.set(n[e.valueField],n)}}}function se(n){const{onUpdateShow:t,"onUpdate:show":o}=e;t&&(0,$.T)(t,n),o&&(0,$.T)(o,n),k.value=n}function de(){J.value||(se(!0),k.value=!0,e.filterable&&Ee())}function ce(){se(!1)}function ue(){y.value="",S.value=H}const he=(0,u.KR)(!1);function pe(){e.filterable&&(he.value=!0)}function ve(){e.filterable&&(he.value=!1,O.value||ue())}function fe(){J.value||(O.value?e.filterable?Ee():ce():de())}function ge(e){var n,t;(null===(t=null===(n=D.value)||void 0===n?void 0:n.selfRef)||void 0===t?void 0:t.contains(e.relatedTarget))||(b.value=!1,te(e),ce())}function be(e){le(e),b.value=!0}function me(){b.value=!0}function we(e){var n;(null===(n=E.value)||void 0===n?void 0:n.$el.contains(e.relatedTarget))||(b.value=!1,te(e),ce())}function ye(){var e;null===(e=E.value)||void 0===e||e.focus(),ce()}function xe(e){var n;O.value&&((null===(n=E.value)||void 0===n?void 0:n.$el.contains((0,o.b)(e)))||ce())}function Ce(n){if(!Array.isArray(n))return[];if(U.value)return Array.from(n);{const{remote:t}=e,{value:o}=M;if(t){const{value:e}=q;return n.filter(n=>o.has(n)||e.has(n))}return n.filter(e=>o.has(e))}}function Re(e){Se(e.rawNode)}function Se(n){if(J.value)return;const{tag:t,remote:o,clearFilterAfterSelect:l,valueField:i}=e;if(t&&!o){const{value:e}=S,n=e[0]||null;if(n){const e=R.value;e.length?e.push(n):R.value=[n],S.value=H}}if(o&&q.value.set(n[i],n),e.multiple){const e=Ce(g.value),r=e.findIndex(e=>e===n[i]);if(~r){if(e.splice(r,1),t&&!o){const e=Fe(n[i]);~e&&(R.value.splice(e,1),l&&(y.value=""))}}else e.push(n[i]),l&&(y.value="");ne(e,G(e))}else{if(t&&!o){const e=Fe(n[i]);R.value=~e?[R.value[e]]:H}Oe(),ce(),ne(n[i],n)}}function Fe(n){const t=R.value;return t.findIndex(t=>t[e.valueField]===n)}function ze(n){O.value||de();const{value:t}=n.target;y.value=t;const{tag:o,remote:l}=e;if(ie(t),o&&!l){if(!t)return void(S.value=H);const{onCreate:n}=e,o=n?n(t):{[e.labelField]:t,[e.valueField]:t},{valueField:l,labelField:i}=e;C.value.some(e=>e[l]===o[l]||e[i]===o[i])||R.value.some(e=>e[l]===o[l]||e[i]===o[i])?S.value=H:S.value=[o]}}function Be(n){n.stopPropagation();const{multiple:t}=e;!t&&e.filterable&&ce(),oe(),t?ne([],[]):ne(null,null)}function Te(e){(0,l.d)(e,"action")||(0,l.d)(e,"empty")||(0,l.d)(e,"header")||e.preventDefault()}function Me(e){re(e)}function ke(n){var t,o,l,i,r;if(e.keyboard)switch(n.key){case" ":if(e.filterable)break;n.preventDefault();case"Enter":if(!(null===(t=E.value)||void 0===t?void 0:t.isComposing))if(O.value){const n=null===(o=D.value)||void 0===o?void 0:o.getPendingTmNode();n?Re(n):e.filterable||(ce(),Oe())}else if(de(),e.tag&&he.value){const n=S.value[0];if(n){const t=n[e.valueField],{value:o}=g;e.multiple&&Array.isArray(o)&&o.includes(t)||Se(n)}}n.preventDefault();break;case"ArrowUp":if(n.preventDefault(),e.loading)return;O.value&&(null===(l=D.value)||void 0===l||l.prev());break;case"ArrowDown":if(n.preventDefault(),e.loading)return;O.value?null===(i=D.value)||void 0===i||i.next():de();break;case"Escape":O.value&&((0,L.z)(n),ce()),null===(r=E.value)||void 0===r||r.focus();break}else n.preventDefault()}function Oe(){var e;null===(e=E.value)||void 0===e||e.focus()}function Ee(){var e;null===(e=E.value)||void 0===e||e.focusInput()}function Ae(){var e;O.value&&(null===(e=A.value)||void 0===e||e.syncPosition())}ae(),(0,c.wB)((0,u.lW)(e,"options"),ae);const Pe={focus:()=>{var e;null===(e=E.value)||void 0===e||e.focus()},focusInput:()=>{var e;null===(e=E.value)||void 0===e||e.focusInput()},blur:()=>{var e;null===(e=E.value)||void 0===e||e.blur()},blurInput:()=>{var e;null===(e=E.value)||void 0===e||e.blurInput()}},Ie=(0,c.EW)(()=>{const{self:{menuBoxShadow:e}}=p.value;return{"--n-menu-box-shadow":e}}),We=h?(0,x.R)("select",void 0,Ie,e):void 0;return Object.assign(Object.assign({},Pe),{mergedStatus:ee,mergedClsPrefix:n,mergedBordered:t,namespace:r,treeMate:T,isMounted:(0,d.A)(),triggerRef:E,menuRef:D,pattern:y,uncontrolledShow:k,mergedShow:O,adjustedTo:(0,W.$)(e),uncontrolledValue:v,mergedValue:g,followerRef:A,localizedPlaceholder:V,selectedOption:Y,selectedOptions:X,mergedSize:Z,mergedDisabled:J,focused:b,activeWithoutMenuOpen:he,inlineThemeDisabled:h,onTriggerInputFocus:pe,onTriggerInputBlur:ve,handleTriggerOrMenuResize:Ae,handleMenuFocus:me,handleMenuBlur:we,handleMenuTabOut:ye,handleTriggerClick:fe,handleToggle:Re,handleDeleteOption:Se,handlePatternInput:ze,handleClear:Be,handleTriggerBlur:ge,handleTriggerFocus:be,handleKeydown:ke,handleMenuAfterLeave:ue,handleMenuClickOutside:xe,handleMenuScroll:Me,handleMenuKeydown:ke,handleMenuMousedown:Te,mergedTheme:p,cssVars:h?void 0:Ie,themeClass:null===We||void 0===We?void 0:We.themeClass,onRender:null===We||void 0===We?void 0:We.onRender})},render(){return(0,c.h)("div",{class:`${this.mergedClsPrefix}-select`},(0,c.h)(p.A,null,{default:()=>[(0,c.h)(v.A,null,{default:()=>(0,c.h)(E,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,n;return[null===(n=(e=this.$slots).arrow)||void 0===n?void 0:n.call(e)]}})}),(0,c.h)(f.A,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===W.$.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>(0,c.h)(h.eB,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,n,t;return this.mergedShow||"show"===this.displayDirective?(null===(e=this.onRender)||void 0===e||e.call(this),(0,c.bo)((0,c.h)(A.A,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,null===(n=this.menuProps)||void 0===n?void 0:n.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[null===(t=this.menuProps)||void 0===t?void 0:t.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var e,n;return[null===(n=(e=this.$slots).empty)||void 0===n?void 0:n.call(e)]},header:()=>{var e,n;return[null===(n=(e=this.$slots).header)||void 0===n?void 0:n.call(e)]},action:()=>{var e,n;return[null===(n=(e=this.$slots).action)||void 0===n?void 0:n.call(e)]}}),"show"===this.displayDirective?[[h.aG,this.mergedShow],[r.A,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[r.A,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}})},28828:function(e,n,t){t.d(n,{Tr:function(){return s},ag:function(){return r},f2:function(){return a},lT:function(){return i}});t(44114),t(18111),t(7588);function o(e){return"group"===e.type}function l(e){return"ignored"===e.type}function i(e,n){try{return!!(1+n.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch(t){return!1}}function r(e,n){const t={getIsGroup:o,getIgnored:l,getKey(n){return o(n)?n.name||n.key||"key-required":n[e]},getChildren(e){return e[n]}};return t}function a(e,n,t,i){if(!n)return e;function r(e){if(!Array.isArray(e))return[];const a=[];for(const s of e)if(o(s)){const e=r(s[i]);e.length&&a.push(Object.assign({},s,{[i]:e}))}else{if(l(s))continue;n(t,s)&&a.push(s)}return a}return r(e)}function s(e,n,t){const l=new Map;return e.forEach(e=>{o(e)?e[t].forEach(e=>{l.set(e[n],e)}):l.set(e[n],e)}),l}},44650:function(e,n,t){t.d(n,{A:function(){return G}});t(18111),t(61701),t(17642),t(58004),t(33853),t(45876),t(32475),t(15024),t(31698);var o=t(55472),l=t(11336),i=t(44317),r=t(56768),a=t(90144),s=(t(44114),t(7588),t(58172)),d=t(24305),c=t(51565),u=t(73578),h=t(36874);function p(e){return e&-e}class v{constructor(e,n){this.l=e,this.min=n;const t=new Array(e+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let l=e*t;while(e>0)l+=n[e],e-=p(e);return l}getBound(e){let n=0,t=this.l;while(t>n){const o=Math.floor((n+t)/2),l=this.sum(o);if(l>e)t=o;else{if(!(l{const n=e.value;if(0===n.length)return null;const t=new v(n.length,0);return n.forEach((e,n)=>{t.add(n,e.width)}),t}),s=(0,d.A)(()=>{const e=i.value;return null!==e?Math.max(e.getBound(l.value)-1,0):0}),c=e=>{const n=i.value;return null!==n?n.sum(e):0},u=(0,d.A)(()=>{const n=i.value;return null!==n?Math.min(n.getBound(l.value+o.value)+1,e.value.length-1):0});return(0,r.Gt)(w,{startIndexRef:s,endIndexRef:u,columnsRef:e,renderColRef:n,renderItemWithColsRef:t,getLeft:c}),{listWidthRef:o,scrollLeftRef:l}}const x=(0,r.pM)({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:n,columnsRef:t,getLeft:o,renderColRef:l,renderItemWithColsRef:i}=(0,r.WQ)(w);return{startIndex:e,endIndex:n,columns:t,renderCol:l,renderItemWithCols:i,getLeft:o}},render(){const{startIndex:e,endIndex:n,columns:t,renderCol:o,renderItemWithCols:l,getLeft:i,item:r}=this;if(null!=l)return l({itemIndex:this.index,startColIndex:e,endColIndex:n,allColumns:t,item:r,getLeft:i});if(null!=o){const l=[];for(let a=e;a<=n;++a){const e=t[a];l.push(o({column:e,left:i(a),item:r}))}return l}return null}}),C=(0,h.c)(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[(0,h.c)("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[(0,h.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var R=(0,r.pM)({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const n=(0,c.h)();C.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:h.r,ssr:n}),(0,r.sV)(()=>{const{defaultScrollIndex:n,defaultScrollKey:t}=e;void 0!==n&&null!==n?T({index:n}):void 0!==t&&null!==t&&T({key:t})});let t=!1,l=!1;(0,r.n)(()=>{t=!1,l?T({top:F.value,left:p.value}):l=!0}),(0,r.Y4)(()=>{t=!0,l||(l=!0)});const i=(0,d.A)(()=>{if(null==e.renderCol&&null==e.renderItemWithCols)return;if(0===e.columns.length)return;let n=0;return e.columns.forEach(e=>{n+=e.width}),n}),u=(0,r.EW)(()=>{const n=new Map,{keyField:t}=e;return e.items.forEach((e,o)=>{n.set(e[t],o)}),n}),{scrollLeftRef:p,listWidthRef:f}=y({columnsRef:(0,a.lW)(e,"columns"),renderColRef:(0,a.lW)(e,"renderCol"),renderItemWithColsRef:(0,a.lW)(e,"renderItemWithCols")}),g=(0,a.KR)(null),w=(0,a.KR)(void 0),x=new Map,R=(0,r.EW)(()=>{const{items:n,itemSize:t,keyField:o}=e,l=new v(n.length,t);return n.forEach((e,n)=>{const t=e[o],i=x.get(t);void 0!==i&&l.add(n,i)}),l}),S=(0,a.KR)(0),F=(0,a.KR)(0),z=(0,d.A)(()=>Math.max(R.value.getBound(F.value-(0,o.eV)(e.paddingTop))-1,0)),B=(0,r.EW)(()=>{const{value:n}=w;if(void 0===n)return[];const{items:t,itemSize:o}=e,l=z.value,i=Math.min(l+Math.ceil(n/o+1),t.length-1),r=[];for(let e=l;e<=i;++e)r.push(t[e]);return r}),T=(e,n)=>{if("number"===typeof e)return void E(e,n,"auto");const{left:t,top:o,index:l,key:i,position:r,behavior:a,debounce:s=!0}=e;if(void 0!==t||void 0!==o)E(t,o,a);else if(void 0!==l)O(l,a,s);else if(void 0!==i){const e=u.value.get(i);void 0!==e&&O(e,a,s)}else"bottom"===r?E(0,Number.MAX_SAFE_INTEGER,a):"top"===r&&E(0,0,a)};let M,k=null;function O(n,t,l){const{value:i}=R,r=i.sum(n)+(0,o.eV)(e.paddingTop);if(l){M=n,null!==k&&window.clearTimeout(k),k=window.setTimeout(()=>{M=void 0,k=null},16);const{scrollTop:e,offsetHeight:o}=g.value;if(r>e){const l=i.get(n);r+l<=e+o||g.value.scrollTo({left:0,top:r+l-o,behavior:t})}else g.value.scrollTo({left:0,top:r,behavior:t})}else g.value.scrollTo({left:0,top:r,behavior:t})}function E(e,n,t){g.value.scrollTo({left:e,top:n,behavior:t})}function A(n,o){var l,i,r;if(t)return;if(e.ignoreItemResize)return;if(D(o.target))return;const{value:a}=R,s=u.value.get(n),d=a.get(s),c=null!==(r=null===(i=null===(l=o.borderBoxSize)||void 0===l?void 0:l[0])||void 0===i?void 0:i.blockSize)&&void 0!==r?r:o.contentRect.height;if(c===d)return;const h=c-e.itemSize;0===h?x.delete(n):x.set(n,c-e.itemSize);const p=c-d;if(0===p)return;a.add(s,p);const v=g.value;if(null!=v){if(void 0===M){const e=a.sum(s);v.scrollTop>e&&v.scrollBy(0,p)}else if(sv.scrollTop+v.offsetHeight&&v.scrollBy(0,p)}K()}S.value++}const P=!b();let I=!1;function W(n){var t;null===(t=e.onScroll)||void 0===t||t.call(e,n),P&&I||K()}function $(n){var t;if(null===(t=e.onWheel)||void 0===t||t.call(e,n),P){const e=g.value;if(null!=e){if(0===n.deltaX){if(0===e.scrollTop&&n.deltaY<=0)return;if(e.scrollTop+e.offsetHeight>=e.scrollHeight&&n.deltaY>=0)return}n.preventDefault(),e.scrollTop+=n.deltaY/m(),e.scrollLeft+=n.deltaX/m(),K(),I=!0,(0,s.B)(()=>{I=!1})}}}function L(n){if(t)return;if(D(n.target))return;if(null==e.renderCol&&null==e.renderItemWithCols){if(n.contentRect.height===w.value)return}else if(n.contentRect.height===w.value&&n.contentRect.width===f.value)return;w.value=n.contentRect.height,f.value=n.contentRect.width;const{onResize:o}=e;void 0!==o&&o(n)}function K(){const{value:e}=g;null!=e&&(F.value=e.scrollTop,p.value=e.scrollLeft)}function D(e){let n=e;while(null!==n){if("none"===n.style.display)return!0;n=n.parentElement}return!1}return{listHeight:w,listStyle:{overflow:"auto"},keyToIndex:u,itemsStyle:(0,r.EW)(()=>{const{itemResizable:n}=e,t=(0,o.Cw)(R.value.sum());return S.value,[e.itemsStyle,{boxSizing:"content-box",width:(0,o.Cw)(i.value),height:n?"":t,minHeight:n?t:"",paddingTop:(0,o.Cw)(e.paddingTop),paddingBottom:(0,o.Cw)(e.paddingBottom)}]}),visibleItemsStyle:(0,r.EW)(()=>(S.value,{transform:`translateY(${(0,o.Cw)(R.value.sum(z.value))})`})),viewportItems:B,listElRef:g,itemsElRef:(0,a.KR)(null),scrollTo:T,handleListResize:L,handleListScroll:W,handleListWheel:$,handleItemResize:A}},render(){const{itemResizable:e,keyField:n,keyToIndex:t,visibleItemsTag:o}=this;return(0,r.h)(u.A,{onResize:this.handleListResize},{default:()=>{var l,i;return(0,r.h)("div",(0,r.v6)(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[0!==this.items.length?(0,r.h)("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[(0,r.h)(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:o,renderItemWithCols:l}=this;return this.viewportItems.map(i=>{const a=i[n],s=t.get(a),d=null!=o?(0,r.h)(x,{index:s,item:i}):void 0,c=null!=l?(0,r.h)(x,{index:s,item:i}):void 0,h=this.$slots.default({item:i,renderedCols:d,renderedItemWithCols:c,index:s})[0];return e?(0,r.h)(u.A,{key:a,onResize:e=>this.handleItemResize(a,e)},{default:()=>h}):(h.key=a,h)})}})]):null===(i=(l=this.$slots).empty)||void 0===i?void 0:i.call(l)])}})}}),S=t(79882),F=t(88733),z=t(38741),B=t(25216),T=t(96206),M=t(25972),k=t(34350),O=t(9845),E=(0,r.pM)({props:{onFocus:Function,onBlur:Function},setup(e){return()=>(0,r.h)("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),A=E,P=t(21905),I=t(16787),W=t(58032),$=t(47101),L=t(24006),K=(0,r.pM)({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:n,labelFieldRef:t,nodePropsRef:o}=(0,r.WQ)($.H);return{labelField:t,nodeProps:o,renderLabel:e,renderOption:n}},render(){const{clsPrefix:e,renderLabel:n,renderOption:t,nodeProps:o,tmNode:{rawNode:l}}=this,i=null===o||void 0===o?void 0:o(l),a=n?n(l,!1):(0,L.X)(l[this.labelField],l,!1),s=(0,r.h)("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,null===i||void 0===i?void 0:i.class]}),a);return l.render?l.render({node:s,option:l}):t?t({node:s,option:l,selected:!1}):s}}),D=t(45130),N=t(94035),_=t(84279),j=(0,r.pM)({name:"Checkmark",render(){return(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,r.h)("g",{fill:"none"},(0,r.h)("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}});function V(e,n){return(0,r.h)(D.eB,{name:"fade-in-scale-up-transition"},{default:()=>e?(0,r.h)(_.A,{clsPrefix:n,class:`${n}-base-select-option__check`},{default:()=>(0,r.h)(j)}):null})}var H=(0,r.pM)({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:n,pendingTmNodeRef:t,multipleRef:o,valueSetRef:l,renderLabelRef:i,renderOptionRef:a,labelFieldRef:s,valueFieldRef:c,showCheckmarkRef:u,nodePropsRef:h,handleOptionClick:p,handleOptionMouseEnter:v}=(0,r.WQ)($.H),f=(0,d.A)(()=>{const{value:n}=t;return!!n&&e.tmNode.key===n.key});function g(n){const{tmNode:t}=e;t.disabled||p(n,t)}function b(n){const{tmNode:t}=e;t.disabled||v(n,t)}function m(n){const{tmNode:t}=e,{value:o}=f;t.disabled||o||v(n,t)}return{multiple:o,isGrouped:(0,d.A)(()=>{const{tmNode:n}=e,{parent:t}=n;return t&&"group"===t.rawNode.type}),showCheckmark:u,nodeProps:h,isPending:f,isSelected:(0,d.A)(()=>{const{value:t}=n,{value:i}=o;if(null===t)return!1;const r=e.tmNode.rawNode[c.value];if(i){const{value:e}=l;return e.has(r)}return t===r}),labelField:s,renderLabel:i,renderOption:a,handleMouseMove:m,handleMouseEnter:b,handleClick:g}},render(){const{clsPrefix:e,tmNode:{rawNode:n},isSelected:t,isPending:o,isGrouped:l,showCheckmark:i,nodeProps:a,renderOption:s,renderLabel:d,handleClick:c,handleMouseEnter:u,handleMouseMove:h}=this,p=V(t,e),v=d?[d(n,t),i&&p]:[(0,L.X)(n[this.labelField],n,t),i&&p],f=null===a||void 0===a?void 0:a(n),g=(0,r.h)("div",Object.assign({},f,{class:[`${e}-base-select-option`,n.class,null===f||void 0===f?void 0:f.class,{[`${e}-base-select-option--disabled`]:n.disabled,[`${e}-base-select-option--selected`]:t,[`${e}-base-select-option--grouped`]:l,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:i}],style:[(null===f||void 0===f?void 0:f.style)||"",n.style||""],onClick:(0,N.u)([c,null===f||void 0===f?void 0:f.onClick]),onMouseenter:(0,N.u)([u,null===f||void 0===f?void 0:f.onMouseenter]),onMousemove:(0,N.u)([h,null===f||void 0===f?void 0:f.onMousemove])}),(0,r.h)("div",{class:`${e}-base-select-option__content`},v));return n.render?n.render({node:g,option:n,selected:t}):s?s({node:g,option:n,selected:t}):g}}),q=t(33492),U=(0,k.cB)("base-select-menu","\n line-height: 1.5;\n outline: none;\n z-index: 0;\n position: relative;\n border-radius: var(--n-border-radius);\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n background-color: var(--n-color);\n",[(0,k.cB)("scrollbar","\n max-height: var(--n-height);\n "),(0,k.cB)("virtual-list","\n max-height: var(--n-height);\n "),(0,k.cB)("base-select-option","\n min-height: var(--n-option-height);\n font-size: var(--n-option-font-size);\n display: flex;\n align-items: center;\n ",[(0,k.cE)("content","\n z-index: 1;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n ")]),(0,k.cB)("base-select-group-header","\n min-height: var(--n-option-height);\n font-size: .93em;\n display: flex;\n align-items: center;\n "),(0,k.cB)("base-select-menu-option-wrapper","\n position: relative;\n width: 100%;\n "),(0,k.cE)("loading, empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),(0,k.cE)("loading","\n color: var(--n-loading-color);\n font-size: var(--n-loading-size);\n "),(0,k.cE)("header","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),(0,k.cE)("action","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-top: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),(0,k.cB)("base-select-group-header","\n position: relative;\n cursor: default;\n padding: var(--n-option-padding);\n color: var(--n-group-header-text-color);\n "),(0,k.cB)("base-select-option","\n cursor: pointer;\n position: relative;\n padding: var(--n-option-padding);\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n box-sizing: border-box;\n color: var(--n-option-text-color);\n opacity: 1;\n ",[(0,k.cM)("show-checkmark","\n padding-right: calc(var(--n-option-padding-right) + 20px);\n "),(0,k.c)("&::before",'\n content: "";\n position: absolute;\n left: 4px;\n right: 4px;\n top: 0;\n bottom: 0;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),(0,k.c)("&:active","\n color: var(--n-option-text-color-pressed);\n "),(0,k.cM)("grouped","\n padding-left: calc(var(--n-option-padding-left) * 1.5);\n "),(0,k.cM)("pending",[(0,k.c)("&::before","\n background-color: var(--n-option-color-pending);\n ")]),(0,k.cM)("selected","\n color: var(--n-option-text-color-active);\n ",[(0,k.c)("&::before","\n background-color: var(--n-option-color-active);\n "),(0,k.cM)("pending",[(0,k.c)("&::before","\n background-color: var(--n-option-color-active-pending);\n ")])]),(0,k.cM)("disabled","\n cursor: not-allowed;\n ",[(0,k.C5)("selected","\n color: var(--n-option-text-color-disabled);\n "),(0,k.cM)("selected","\n opacity: var(--n-option-opacity-disabled);\n ")]),(0,k.cE)("check","\n font-size: 16px;\n position: absolute;\n right: calc(var(--n-option-padding-right) - 4px);\n top: calc(50% - 7px);\n color: var(--n-option-check-color);\n transition: color .3s var(--n-bezier);\n ",[(0,q.S)({enterScale:"0.5"})])])]),G=(0,r.pM)({name:"InternalSelectMenu",props:Object.assign(Object.assign({},S.A.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:n,mergedRtlRef:t}=(0,F.Ay)(e),s=(0,z.I)("InternalSelectMenu",t,n),d=(0,S.A)("InternalSelectMenu","-internal-select-menu",U,W.A,e,(0,a.lW)(e,"clsPrefix")),c=(0,a.KR)(null),u=(0,a.KR)(null),h=(0,a.KR)(null),p=(0,r.EW)(()=>e.treeMate.getFlattenedNodes()),v=(0,r.EW)(()=>(0,i.KU)(p.value)),f=(0,a.KR)(null);function g(){const{treeMate:n}=e;let t=null;const{value:o}=e;null===o?t=n.getFirstAvailableNode():(t=e.multiple?n.getNode((o||[])[(o||[]).length-1]):n.getNode(o),t&&!t.disabled||(t=n.getFirstAvailableNode())),j(t||null)}function b(){const{value:n}=f;n&&!e.treeMate.getNode(n.key)&&(f.value=null)}let m;(0,r.wB)(()=>e.show,n=>{n?m=(0,r.wB)(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?g():b(),(0,r.dY)(V)):b()},{immediate:!0}):null===m||void 0===m||m()},{immediate:!0}),(0,r.xo)(()=>{null===m||void 0===m||m()});const w=(0,r.EW)(()=>(0,o.eV)(d.value.self[(0,k.cF)("optionHeight",e.size)])),y=(0,r.EW)(()=>(0,o.Cq)(d.value.self[(0,k.cF)("padding",e.size)])),x=(0,r.EW)(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),C=(0,r.EW)(()=>{const e=p.value;return e&&0===e.length});function R(n){const{onToggle:t}=e;t&&t(n)}function M(n){const{onScroll:t}=e;t&&t(n)}function O(e){var n;null===(n=h.value)||void 0===n||n.sync(),M(e)}function E(){var e;null===(e=h.value)||void 0===e||e.sync()}function A(){const{value:e}=f;return e||null}function P(e,n){n.disabled||j(n,!1)}function I(e,n){n.disabled||R(n)}function L(n){var t;(0,l.d)(n,"action")||null===(t=e.onKeyup)||void 0===t||t.call(e,n)}function K(n){var t;(0,l.d)(n,"action")||null===(t=e.onKeydown)||void 0===t||t.call(e,n)}function D(n){var t;null===(t=e.onMousedown)||void 0===t||t.call(e,n),e.focusable||n.preventDefault()}function N(){const{value:e}=f;e&&j(e.getNext({loop:!0}),!0)}function _(){const{value:e}=f;e&&j(e.getPrev({loop:!0}),!0)}function j(e,n=!1){f.value=e,n&&V()}function V(){var n,t;const o=f.value;if(!o)return;const l=v.value(o.key);null!==l&&(e.virtualScroll?null===(n=u.value)||void 0===n||n.scrollTo({index:l}):null===(t=h.value)||void 0===t||t.scrollTo({index:l,elSize:w.value}))}function H(n){var t,o;(null===(t=c.value)||void 0===t?void 0:t.contains(n.target))&&(null===(o=e.onFocus)||void 0===o||o.call(e,n))}function q(n){var t,o;(null===(t=c.value)||void 0===t?void 0:t.contains(n.relatedTarget))||null===(o=e.onBlur)||void 0===o||o.call(e,n)}(0,r.Gt)($.H,{handleOptionMouseEnter:P,handleOptionClick:I,valueSetRef:x,pendingTmNodeRef:f,nodePropsRef:(0,a.lW)(e,"nodeProps"),showCheckmarkRef:(0,a.lW)(e,"showCheckmark"),multipleRef:(0,a.lW)(e,"multiple"),valueRef:(0,a.lW)(e,"value"),renderLabelRef:(0,a.lW)(e,"renderLabel"),renderOptionRef:(0,a.lW)(e,"renderOption"),labelFieldRef:(0,a.lW)(e,"labelField"),valueFieldRef:(0,a.lW)(e,"valueField")}),(0,r.Gt)($.v,c),(0,r.sV)(()=>{const{value:e}=h;e&&e.sync()});const G=(0,r.EW)(()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:t},self:{height:l,borderRadius:i,color:r,groupHeaderTextColor:a,actionDividerColor:s,optionTextColorPressed:c,optionTextColor:u,optionTextColorDisabled:h,optionTextColorActive:p,optionOpacityDisabled:v,optionCheckColor:f,actionTextColor:g,optionColorPending:b,optionColorActive:m,loadingColor:w,loadingSize:y,optionColorActivePending:x,[(0,k.cF)("optionFontSize",n)]:C,[(0,k.cF)("optionHeight",n)]:R,[(0,k.cF)("optionPadding",n)]:S}}=d.value;return{"--n-height":l,"--n-action-divider-color":s,"--n-action-text-color":g,"--n-bezier":t,"--n-border-radius":i,"--n-color":r,"--n-option-font-size":C,"--n-group-header-text-color":a,"--n-option-check-color":f,"--n-option-color-pending":b,"--n-option-color-active":m,"--n-option-color-active-pending":x,"--n-option-height":R,"--n-option-opacity-disabled":v,"--n-option-text-color":u,"--n-option-text-color-active":p,"--n-option-text-color-disabled":h,"--n-option-text-color-pressed":c,"--n-option-padding":S,"--n-option-padding-left":(0,o.Cq)(S,"left"),"--n-option-padding-right":(0,o.Cq)(S,"right"),"--n-loading-color":w,"--n-loading-size":y}}),{inlineThemeDisabled:X}=e,Y=X?(0,B.R)("internal-select-menu",(0,r.EW)(()=>e.size[0]),G,e):void 0,Q={selfRef:c,next:N,prev:_,getPendingTmNode:A};return(0,T.P)(c,e.onResize),Object.assign({mergedTheme:d,mergedClsPrefix:n,rtlEnabled:s,virtualListRef:u,scrollbarRef:h,itemSize:w,padding:y,flattenedNodes:p,empty:C,virtualListContainer(){const{value:e}=u;return null===e||void 0===e?void 0:e.listElRef},virtualListContent(){const{value:e}=u;return null===e||void 0===e?void 0:e.itemsElRef},doScroll:M,handleFocusin:H,handleFocusout:q,handleKeyUp:L,handleKeyDown:K,handleMouseDown:D,handleVirtualListResize:E,handleVirtualListScroll:O,cssVars:X?void 0:G,themeClass:null===Y||void 0===Y?void 0:Y.themeClass,onRender:null===Y||void 0===Y?void 0:Y.onRender},Q)},render(){const{$slots:e,virtualScroll:n,clsPrefix:t,mergedTheme:o,themeClass:l,onRender:i}=this;return null===i||void 0===i||i(),(0,r.h)("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${t}-base-select-menu`,this.rtlEnabled&&`${t}-base-select-menu--rtl`,l,this.multiple&&`${t}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},(0,M.iQ)(e.header,e=>e&&(0,r.h)("div",{class:`${t}-base-select-menu__header`,"data-header":!0,key:"header"},e)),this.loading?(0,r.h)("div",{class:`${t}-base-select-menu__loading`},(0,r.h)(P.A,{clsPrefix:t,strokeWidth:20})):this.empty?(0,r.h)("div",{class:`${t}-base-select-menu__empty`,"data-empty":!0},(0,M.Nj)(e.empty,()=>[(0,r.h)(O.A,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty,size:this.size})])):(0,r.h)(I.A,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,onScroll:n?void 0:this.doScroll},{default:()=>n?(0,r.h)(R,{ref:"virtualListRef",class:`${t}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:e})=>e.isGroup?(0,r.h)(K,{key:e.key,clsPrefix:t,tmNode:e}):e.ignored?null:(0,r.h)(H,{clsPrefix:t,key:e.key,tmNode:e})}):(0,r.h)("div",{class:`${t}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(e=>e.isGroup?(0,r.h)(K,{key:e.key,clsPrefix:t,tmNode:e}):(0,r.h)(H,{clsPrefix:t,key:e.key,tmNode:e})))}),(0,M.iQ)(e.action,e=>e&&[(0,r.h)("div",{class:`${t}-base-select-menu__action`,"data-action":!0,key:"action"},e),(0,r.h)(A,{onFocus:this.onTabOut,key:"focus-detector"})]))}})},68042:function(e,n,t){t.d(n,{A:function(){return m}});var o=t(55472),l=t(37485),i=t(56768),r=t(90144),a=t(45130),s=t(21905),d=t(79882),c=t(88733),u=t(25216),h=t(34350),p=t(54507),v=t(29895),f=(0,h.c)([(0,h.c)("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),(0,h.cB)("spin-container","\n position: relative;\n ",[(0,h.cB)("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[(0,v.v)()])]),(0,h.cB)("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),(0,h.cB)("spin","\n display: inline-flex;\n height: var(--n-size);\n width: var(--n-size);\n font-size: var(--n-size);\n color: var(--n-color);\n ",[(0,h.cM)("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),(0,h.cB)("spin-description","\n display: inline-block;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n margin-top: 8px;\n "),(0,h.cB)("spin-content","\n opacity: 1;\n transition: opacity .3s var(--n-bezier);\n pointer-events: all;\n ",[(0,h.cM)("spinning","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: none;\n opacity: var(--n-opacity-spinning);\n ")])]);const g={small:20,medium:18,large:16},b=Object.assign(Object.assign({},d.A.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number});var m=(0,i.pM)({name:"Spin",props:b,slots:Object,setup(e){const{mergedClsPrefixRef:n,inlineThemeDisabled:t}=(0,c.Ay)(e),a=(0,d.A)("Spin","-spin",f,p.A,e,n),s=(0,i.EW)(()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:t},self:l}=a.value,{opacitySpinning:i,color:r,textColor:s}=l,d="number"===typeof n?(0,o.Cw)(n):l[(0,h.cF)("size",n)];return{"--n-bezier":t,"--n-opacity-spinning":i,"--n-size":d,"--n-color":r,"--n-text-color":s}}),v=t?(0,u.R)("spin",(0,i.EW)(()=>{const{size:n}=e;return"number"===typeof n?String(n):n[0]}),s,e):void 0,b=(0,l.A)(e,["spinning","show"]),m=(0,r.KR)(!1);return(0,i.nT)(n=>{let t;if(b.value){const{delay:o}=e;if(o)return t=window.setTimeout(()=>{m.value=!0},o),void n(()=>{clearTimeout(t)})}m.value=b.value}),{mergedClsPrefix:n,active:m,mergedStrokeWidth:(0,i.EW)(()=>{const{strokeWidth:n}=e;if(void 0!==n)return n;const{size:t}=e;return g["number"===typeof t?"medium":t]}),cssVars:t?void 0:s,themeClass:null===v||void 0===v?void 0:v.themeClass,onRender:null===v||void 0===v?void 0:v.onRender}},render(){var e,n;const{$slots:t,mergedClsPrefix:o,description:l}=this,r=t.icon&&this.rotate,d=(l||t.description)&&(0,i.h)("div",{class:`${o}-spin-description`},l||(null===(e=t.description)||void 0===e?void 0:e.call(t))),c=t.icon?(0,i.h)("div",{class:[`${o}-spin-body`,this.themeClass]},(0,i.h)("div",{class:[`${o}-spin`,r&&`${o}-spin--rotate`],style:t.default?"":this.cssVars},t.icon()),d):(0,i.h)("div",{class:[`${o}-spin-body`,this.themeClass]},(0,i.h)(s.A,{clsPrefix:o,style:t.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${o}-spin`}),d);return null===(n=this.onRender)||void 0===n||n.call(this),t.default?(0,i.h)("div",{class:[`${o}-spin-container`,this.themeClass],style:this.cssVars},(0,i.h)("div",{class:[`${o}-spin-content`,this.active&&`${o}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),(0,i.h)(a.eB,{name:"fade-in-transition"},{default:()=>this.active?c:null})):c}})},94035:function(e,n,t){t.d(n,{u:function(){return o}});t(18111),t(22489),t(7588);function o(e){const n=e.filter(e=>void 0!==e);if(0!==n.length)return 1===n.length?n[0]:n=>{e.forEach(e=>{e&&e(n)})}}},96206:function(e,n,t){t.d(n,{P:function(){return i}});var o=t(56768),l=t(78335);function i(e,n){n&&((0,o.sV)(()=>{const{value:t}=e;t&&l.A.registerHandler(t,n)}),(0,o.wB)(e,(e,n)=>{n&&l.A.unregisterHandler(n)},{deep:!1}),(0,o.xo)(()=>{const{value:n}=e;n&&l.A.unregisterHandler(n)}))}}}]); //# sourceMappingURL=150.134ee868.js.map