PageSourceSearch

https://elasticemail.com/_next/static/chunks/4034-c15e293412ac0265.js

js elasticemail.com collected 2026-09-24 08:47:29 UTC 133,828 bytes, 4 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4034],{12722:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},9973:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},63916:function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},1119:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return r}})},74610:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{Z:function(){return r}})},68019:function(e,t,n){"use strict";n.d(t,{jn:function(){return l}});var r=n(2265),i=Symbol("default");function l(e,t){let n=(0,r.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>'"'.concat(e,'"')));if(!t&&!n.slots[i])throw Error("A slot prop is required. Valid slot names are ".concat(e,"."));let r=t||i;if(!n.slots[r])throw Error('Invalid slot "'.concat(t,'". Valid slot names are ').concat(e,"."));return n.slots[r]}return n}},63190:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(2265);n(57437);var i=(0,r.createContext)(null)},19409:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r=n(14076).c},78142:function(e,t,n){"use strict";let r;n.d(t,{g:function(){return id}});var i,l,o=n(2646),a=n(72243),s=n(56041),u=n(21770),d=(0,s.tv)({slots:{base:["group inline-flex flex-col relative"],label:["block","absolute","z-10","origin-top-left","rtl:origin-top-right","subpixel-antialiased","text-small","text-foreground-500","pointer-events-none"],mainWrapper:"w-full flex flex-col",trigger:"relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-sm outline-none tap-highlight-transparent",innerWrapper:"inline-flex h-full w-[calc(100%_-_theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",selectorIcon:"absolute end-3 w-4 h-4",spinner:"absolute end-3",value:["text-foreground-500","font-normal","w-full","text-start"],listboxWrapper:"scroll-py-6 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",helperWrapper:"p-1 flex relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{trigger:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-200"]},faded:{trigger:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 data-[focus=true]:border-default-400 data-[open=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{trigger:["border-medium","border-default-200","data-[hover=true]:border-default-400","data-[open=true]:border-default-foreground","data-[focus=true]:border-default-foreground"],value:"group-data-[has-value=true]:text-default-foreground"},underlined:{trigger:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","data-[open=true]:after:w-full","data-[focus=true]:after:w-full"],value:"group-data-[has-value=true]:text-default-foreground"}},color:{default:{},primary:{selectorIcon:"text-primary"},secondary:{selectorIcon:"text-secondary"},success:{selectorIcon:"text-success"},warning:{selectorIcon:"text-warning"},danger:{selectorIcon:"text-danger"}},size:{sm:{label:"text-tiny",trigger:"h-8 min-h-8 px-2 rounded-small",value:"text-small"},md:{trigger:"h-10 min-h-10 rounded-medium",value:"text-small"},lg:{trigger:"h-12 min-h-12 rounded-large",value:"text-medium"}},radius:{none:{trigger:"rounded-none"},sm:{trigger:"rounded-small"},md:{trigger:"rounded-medium"},lg:{trigger:"rounded-large"},full:{trigger:"rounded-full"}},labelPlacement:{outside:{base:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap items-start",label:"relative pe-2 text-foreground"},inside:{label:"text-tiny cursor-pointer",trigger:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"},false:{base:"min-w-40"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",trigger:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",value:"!text-danger",selectorIcon:"text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",trigger:"!h-auto"},false:{value:"truncate"}},disableAnimation:{true:{trigger:"after:transition-none",base:"transition-none",label:"transition-none",selectorIcon:"transition-none"},false:{base:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","rtl:origin-top-right","!duration-200","!ease-out","transition-[transform,color,left,opacity]","motion-reduce:transition-none"],selectorIcon:"transition-transform duration-150 ease motion-reduce:transition-none"}},disableSelectorIconRotation:{true:{},false:{selectorIcon:"data-[open=true]:rotate-180"}}},defaultVariants:{variant:"flat",color:"default",size:"md",labelPlacement:"inside",fullWidth:!0,isDisabled:!1,isMultiline:!1,disableSelectorIconRotation:!1},compoundVariants:[{variant:"flat",color:"default",class:{value:"group-data-[has-value=true]:text-default-foreground",trigger:["bg-default-100","data-[hover=true]:bg-default-200"]}},{variant:"flat",color:"primary",class:{trigger:["bg-primary-100","text-primary","data-[hover=true]:bg-primary-50","group-data-[focus=true]:bg-primary-50"],value:"text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{trigger:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50"],value:"text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{trigger:["bg-success-100","text-success-600","dark:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],value:"text-success-600 dark:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{trigger:["bg-warning-100","text-warning-600","dark:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],value:"text-warning-600 dar
1k:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{trigger:["bg-danger-100","text-danger","dark:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],value:"text-danger dark:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{trigger:"data-[hover=true]:border-primary data-[focus=true]:border-primary data-[open=true]:border-primary",label:"text-primary"}},{variant:"faded",color:"secondary",class:{trigger:"data-[hover=true]:border-secondary data-[focus=true]:border-secondary data-[open=true]:border-secondary",label:"text-secondary"}},{variant:"faded",color:"success",class:{trigger:"data-[hover=true]:border-success data-[focus=true]:border-success data-[open=true]:border-success",label:"text-success"}},{variant:"faded",color:"warning",class:{trigger:"data-[hover=true]:border-warning data-[focus=true]:border-warning data-[open=true]:border-warning",label:"text-warning"}},{variant:"faded",color:"danger",class:{trigger:"data-[hover=true]:border-danger data-[focus=true]:border-danger data-[open=true]:border-danger",label:"text-danger"}},{variant:"underlined",color:"default",class:{value:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{trigger:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{trigger:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{trigger:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{trigger:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{trigger:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{trigger:["data-[open=true]:border-primary","data-[focus=true]:border-primary"],label:"text-primary"}},{variant:"bordered",color:"secondary",class:{trigger:["data-[open=true]:border-secondary","data-[focus=true]:border-secondary"],label:"text-secondary"}},{variant:"bordered",color:"success",class:{trigger:["data-[open=true]:border-success","data-[focus=true]:border-success"],label:"text-success"}},{variant:"bordered",color:"warning",class:{trigger:["data-[open=true]:border-warning","data-[focus=true]:border-warning"],label:"text-warning"}},{variant:"bordered",color:"danger",class:{trigger:["data-[open=true]:border-danger","data-[focus=true]:border-danger"],label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled=true]:text-foreground"}},{radius:"full",size:["sm"],class:{trigger:"px-3"}},{radius:"full",size:"md",class:{trigger:"px-4"}},{radius:"full",size:"lg",class:{trigger:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{trigger:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{trigger:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{trigger:[...u.Dh]}},{isInvalid:!0,variant:"flat",class:{trigger:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{trigger:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{trigger:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{trigger:"h-12 min-h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{trigger:"h-14 min-h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-medium",trigger:"h-16 min-h-16 py-2.5 gap-0"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled=true]:start-0"]}},{labelPlacement:["inside"],class:{label:"group-data-[filled=true]:scale-85"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-5"}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"md",class:{label:["start-3","text-small","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"lg",class:{label:["start-3","text-medium","group-data-[filled=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}}]}),c=n(88160),f=n(27246),p=n(2265),g=n(99933);let v="undefined"!=typeof document?p.useLayoutEffect:()=>{};function h(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function m(e){let t=(0,p.useRef)({isFocused:!1,observer:null});return v(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,p.useCallback)(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target;r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=h(n);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();
1let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function y(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function b(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function w(e){let t=null;return()=>(null==t&&(t=e()),t)}let E=w(function(){return b(/^Mac/i)}),x=w(function(){return b(/^iPhone/i)}),T=w(function(){return b(/^iPad/i)||E()&&navigator.maxTouchPoints>1}),M=w(function(){return x()||T()});w(function(){return E()||M()});let S=w(function(){return y(/AppleWebKit/i)&&!P()}),P=w(function(){return y(/Chrome/i)}),k=w(function(){return y(/Android/i)}),L=w(function(){return y(/Firefox/i)}),K=null;function C(e,t,n=!0){var r,i;let{metaKey:l,ctrlKey:o,altKey:a,shiftKey:s}=t;L()&&(null===(i=window.event)||void 0===i?void 0:null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(E()?l=!0:o=!0);let u=S()&&E()&&!T()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:o,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:o,altKey:a,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});C.isOpening=n,function(e){if(function(){if(null==K){K=!1;try{document.createElement("div").focus({get preventScroll(){return K=!0,!0}})}catch{}}return K}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}(e),e.dispatchEvent(u),C.isOpening=!1}C.isOpening=!1;let I=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},O=e=>e&&"window"in e&&e.window===e?e:I(e).defaultView||window,D=null,F=new Set,z=new Map,A=!1,N=!1,W={Tab:!0,Escape:!0};function _(e,t){for(let n of F)n(e,t)}function R(e){A=!0,C.isOpening||e.metaKey||!E()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(D="keyboard",_("keyboard",e))}function j(e){D="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(A=!0,_("pointer",e))}function B(e){C.isOpening||(""!==e.pointerType||!e.isTrusted)&&(k()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(A=!0,D="virtual")}function H(e){e.target!==window&&e.target!==document&&e.isTrusted&&(A||N||(D="virtual",_("virtual",e)),A=!1,N=!1)}function V(){A=!1,N=!0}function U(e){if("undefined"==typeof window||"undefined"==typeof document||z.get(O(e)))return;let t=O(e),n=I(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){A=!0,r.apply(this,arguments)},n.addEventListener("keydown",R,!0),n.addEventListener("keyup",R,!0),n.addEventListener("click",B,!0),t.addEventListener("focus",H,!0),t.addEventListener("blur",V,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",j,!0),n.addEventListener("pointermove",j,!0),n.addEventListener("pointerup",j,!0)),t.addEventListener("beforeunload",()=>{G(e)},{once:!0}),z.set(t,{focus:r})}let G=(e,t)=>{let n=O(e),r=I(e);t&&r.removeEventListener("DOMContentLoaded",t),z.has(n)&&(n.HTMLElement.prototype.focus=z.get(n).focus,r.removeEventListener("keydown",R,!0),r.removeEventListener("keyup",R,!0),r.removeEventListener("click",B,!0),n.removeEventListener("focus",H,!0),n.removeEventListener("blur",V,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",j,!0),r.removeEventListener("pointermove",j,!0),r.removeEventListener("pointerup",j,!0)),z.delete(n))};function $(){return"pointer"!==D}"undefined"!=typeof document&&function(e){let t;let n=I(void 0);"loading"!==n.readyState?U(void 0):(t=()=>{U(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>G(e,t)}();let q=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var X=n(90952);let Y=(e=document)=>{var t;if(!(0,X.Wr)())return e.activeElement;let n=e.activeElement;for(;n&&("shadowRoot"in n)&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function Z(e){return(0,X.Wr)()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}var J=n(46763),Q=n(2357),ee=n(97765);"undefined"!=typeof window&&window.document&&window.document.createElement;let et=new Map;var en=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var l=t.length;for(n=0;n<l;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r};function er(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=function(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=en(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=et.get(e);
1if(n)return n.forEach(e=>e(t)),t;let r=et.get(t);return r?(r.forEach(t=>t(e)),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}let ei=!1,el=0;function eo(){ei=!0,setTimeout(()=>{ei=!1},50)}function ea(e){"touch"===e.pointerType&&eo()}function es(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ea):document.addEventListener("touchend",eo),el++,()=>{--el>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ea):document.removeEventListener("touchend",eo))}}class eu{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let n=this.keyMap.get(e);return n&&null!==(t=n.prevKey)&&void 0!==t?t:null}getKeyAfter(e){var t;let n=this.keyMap.get(e);return n&&null!==(t=n.nextKey)&&void 0!==t?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(r=t).nextKey=void 0;this.lastKey=null!==(t=null==r?void 0:r.key)&&void 0!==t?t:null}}var ed=n(88970),ec=n(47834),ef=n(22603),ep=n(28396);let eg={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ev={...eg,customError:!0,valid:!1},eh={isInvalid:!1,validationDetails:eg,validationErrors:[]},em=(0,p.createContext)({}),ey="__formValidationState"+Date.now();function eb(e){return e?Array.isArray(e)?e:[e]:[]}function ew(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ev}:null}function eE(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,n)=>e===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([e,n])=>t.validationDetails[e]===n)}let ex=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),eT=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);var eM=n(87365);let eS=Symbol.for("react-aria.i18n.locale");function eP(){let e="undefined"!=typeof window&&window[eS]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return ex.has(t.script)}let t=e.split("-")[0];return eT.has(t)}(e)?"ltr":"rtl"}}let ek=eP(),eL=new Set;function eK(){for(let e of(ek=eP(),eL))e(ek)}let eC=p.createContext(null),eI=new Map;function eO(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function eD(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function eF(e){let t=null;return()=>(null==t&&(t=e()),t)}let ez=eF(function(){return eD(/^Mac/i)}),eA=eF(function(){return eD(/^iPhone/i)}),eN=eF(function(){return eD(/^iPad/i)||ez()&&navigator.maxTouchPoints>1}),eW=eF(function(){return eA()||eN()});eF(function(){return ez()||eW()}),eF(function(){return eO(/AppleWebKit/i)&&!e_()});let e_=eF(function(){return eO(/Chrome/i)}),eR=eF(function(){return eO(/Android/i)});eF(function(){return eO(/Firefox/i)});let ej=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},eB=e=>e&&"window"in e&&e.window===e?e:ej(e).defaultView||window,eH=new Set,eV=new Map,eU=!1,eG=!1;function e$(e,t){for(let n of eH)n(e,t)}function eq(e){eU=!0,e.metaKey||!ez()&&e.altKey||e.ctrlKey||"Control"
1===e.key||"Shift"===e.key||"Meta"===e.key||e$("keyboard",e)}function eX(e){("mousedown"===e.type||"pointerdown"===e.type)&&(eU=!0,e$("pointer",e))}function eY(e){(""===e.pointerType&&e.isTrusted||(eR()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(eU=!0)}function eZ(e){e.target!==window&&e.target!==document&&(eU||eG||e$("virtual",e),eU=!1,eG=!1)}function eJ(){eU=!1,eG=!0}function eQ(e){if("undefined"==typeof window||eV.get(eB(e)))return;let t=eB(e),n=ej(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){eU=!0,r.apply(this,arguments)},n.addEventListener("keydown",eq,!0),n.addEventListener("keyup",eq,!0),n.addEventListener("click",eY,!0),t.addEventListener("focus",eZ,!0),t.addEventListener("blur",eJ,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",eX,!0),n.addEventListener("pointermove",eX,!0),n.addEventListener("pointerup",eX,!0)):(n.addEventListener("mousedown",eX,!0),n.addEventListener("mousemove",eX,!0),n.addEventListener("mouseup",eX,!0)),t.addEventListener("beforeunload",()=>{e0(e)},{once:!0}),eV.set(t,{focus:r})}let e0=(e,t)=>{let n=eB(e),r=ej(e);t&&r.removeEventListener("DOMContentLoaded",t),eV.has(n)&&(n.HTMLElement.prototype.focus=eV.get(n).focus,r.removeEventListener("keydown",eq,!0),r.removeEventListener("keyup",eq,!0),r.removeEventListener("click",eY,!0),n.removeEventListener("focus",eZ,!0),n.removeEventListener("blur",eJ,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",eX,!0),r.removeEventListener("pointermove",eX,!0),r.removeEventListener("pointerup",eX,!0)):(r.removeEventListener("mousedown",eX,!0),r.removeEventListener("mousemove",eX,!0),r.removeEventListener("mouseup",eX,!0)),eV.delete(n))};"undefined"!=typeof document&&function(e){let t;let n=ej(void 0);"loading"!==n.readyState?eQ(void 0):(t=()=>{eQ(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>e0(e,t)}();let e1="undefined"!=typeof document?p.useLayoutEffect:()=>{},e2=!!("undefined"!=typeof window&&window.document&&window.document.createElement),e5=new Map;function e6(e){let[t,n]=(0,p.useState)(e),i=(0,p.useRef)(null),l=(0,eM.gP)(t),o=(0,p.useRef)(null);if(r&&r.register(o,l),e2){let e=e5.get(l);e&&!e.includes(i)?e.push(i):e5.set(l,[i])}return e1(()=>()=>{r&&r.unregister(o),e5.delete(l)},[l]),(0,p.useEffect)(()=>{let e=i.current;return e&&n(e),()=>{e&&(i.current=null)}}),l}function e4(e=[]){let t=e6(),[n,r]=function(e){let[t,n]=(0,p.useState)(e),r=(0,p.useRef)(t),i=(0,p.useRef)(null),l=(0,p.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?l.current():n(e.value)});return e1(()=>{r.current=t,i.current&&l.current()}),[t,(0,p.useCallback)(e=>{i.current=e(r.current),l.current()},[l])]}(t),i=(0,p.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return e1(i,[t,i,...e]),n}"undefined"!=typeof FinalizationRegistry&&(r=new FinalizationRegistry(e=>{e5.delete(e)}));var e3=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var l=t.length;for(n=0;n<l;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r},e9=n(4192);class e8{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=null!=e?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left+t.scrollLeft,y:i.top-r.top+t.scrollTop,width:i.width,height:i.height}}getContentSize(){var e,t;let n=this.ref.current;return{width:null!==(e=null==n?void 0:n.scrollWidth)&&void 0!==e?e:0,height:null!==(t=null==n?void 0:n.scrollHeight)&&void 0!==t?t:0}}getVisibleRect(){var e,t,n,r;let i=this.ref.current;return{x:null!==(e=null==i?void 0:i.scrollLeft)&&void 0!==e?e:0,y:null!==(t=null==i?void 0:i.scrollTop)&&void 0!==t?t:0,width:null!==(n=null==i?void 0:i.offsetWidth)&&void 0!==n?n:0,height:null!==(r=null==i?void 0:i.offsetHeight)&&void 0!==r?r:0}}constructor(e){this.ref=e}}function e7(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}class te{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;null!=n;){let e=this.collection.getItem(n);if((null==e?void 0:e.type)==="item"&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||null==r)return null;let l=i;
1do{if(null==(r=t(r)))break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(l,i)&&null!=r);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!e7(t))return this.getFirstKey();let r=e;if("horizontal"===this.orientation){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&null!=r;)n=null==(r=this.getKeyAbove(r))?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&null!=r;)n=null==(r=this.getKeyAbove(r))?null:this.layoutDelegate.getItemRect(r)}return null!=r?r:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!e7(t))return this.getLastKey();let r=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&null!=r;)n=null==(r=this.getKeyBelow(r))?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&null!=r;)n=null==(r=this.getKeyBelow(r))?null:this.layoutDelegate.getItemRect(r)}return null!=r?r:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r);if(!t)break;let i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return r;r=this.getNextKey(r)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new e8(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new e8(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}let tt=new Set(["id"]),tn=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),tr=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ti=/^(data-.*)$/;function tl(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let to="undefined"!=typeof document?p.useLayoutEffect:()=>{},ta=!!("undefined"!=typeof window&&window.document&&window.document.createElement),ts=new Map;function tu(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=tl(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=e3
1(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=ts.get(e);if(n)return n.forEach(e=>e(t)),t;let r=ts.get(t);return r?(r.forEach(t=>t(e)),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}var td=n(41681),tc=n(1514),tf=n(68019),tp=n(63190),tg=new WeakMap;let tv="undefined"!=typeof document?p.useLayoutEffect:()=>{};var th=n(63937);function tm(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function ty(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function tb(e){let t=null;return()=>(null==t&&(t=e()),t)}let tw=tb(function(){return ty(/^Mac/i)}),tE=tb(function(){return ty(/^iPhone/i)}),tx=tb(function(){return ty(/^iPad/i)||tw()&&navigator.maxTouchPoints>1}),tT=tb(function(){return tE()||tx()});tb(function(){return tw()||tT()});let tM=tb(function(){return tm(/AppleWebKit/i)&&!tS()}),tS=tb(function(){return tm(/Chrome/i)}),tP=tb(function(){return tm(/Android/i)}),tk=tb(function(){return tm(/Firefox/i)}),tL=null;function tK(e,t,n=!0){var r,i;let{metaKey:l,ctrlKey:o,altKey:a,shiftKey:s}=t;tk()&&(null===(i=window.event)||void 0===i?void 0:null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(tw()?l=!0:o=!0);let u=tM()&&tw()&&!tx()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:o,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:o,altKey:a,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});tK.isOpening=n,function(e){if(function(){if(null==tL){tL=!1;try{document.createElement("div").focus({get preventScroll(){return tL=!0,!0}})}catch{}}return tL}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}(e),e.dispatchEvent(u),tK.isOpening=!1}tK.isOpening=!1;let tC=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},tI=e=>e&&"window"in e&&e.window===e?e:tC(e).defaultView||window,tO=new Set,tD=new Map,tF=!1,tz=!1;function tA(e,t){for(let n of tO)n(e,t)}function tN(e){tF=!0,tK.isOpening||e.metaKey||!tw()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||tA("keyboard",e)}function tW(e){"pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(tF=!0,tA("pointer",e))}function t_(e){tK.isOpening||(""!==e.pointerType||!e.isTrusted)&&(tP()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(tF=!0)}function tR(e){e.target!==window&&e.target!==document&&e.isTrusted&&(tF||tz||tA("virtual",e),tF=!1,tz=!1)}function tj(){tF=!1,tz=!0}function tB(e){if("undefined"==typeof window||"undefined"==typeof document||tD.get(tI(e)))return;let t=tI(e),n=tC(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){tF=!0,r.apply(this,arguments)},n.addEventListener("keydown",tN,!0),n.addEventListener("keyup",tN,!0),n.addEventListener("click",t_,!0),t.addEventListener("focus",tR,!0),t.addEventListener("blur",tj,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",tW,!0),n.addEventListener("pointermove",tW,!0),n.addEventListener("pointerup",tW,!0)),t.addEventListener("beforeunload",()=>{tH(e)},{once:!0}),tD.set(t,{focus:r})}let tH=(e,t)=>{let n=tI(e),r=tC(e);t&&r.removeEventListener("DOMContentLoaded",t),tD.has(n)&&(n.HTMLElement.prototype.focus=tD.get(n).focus,r.removeEventListener("keydown",tN,!0),r.removeEventListener("keyup",tN,!0),r.removeEventListener("click",t_,!0),n.removeEventListener("focus",tR,!0),n.removeEventListener("blur",tj,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",tW,!0),r.removeEventListener("pointermove",tW,!0),r.removeEventListener("pointerup",tW,!0)),tD.delete(n))};"undefined"!=typeof document&&function(e){let t;let n=tC(void 0);"loading"!==n.readyState?tB(void 0):(t=()=>{tB(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>tH(e,t)}();let tV="undefined"!=typeof document?p.useLayoutEffect:()=>{},tU=null!==(i=p.useInsertionEffect)&&void 0!==i?i:tV;function tG(e){let t=(0,p.useRef)(null);return tU(()=>{t.current=e},[e]),(0,p.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)}
1,[])}var t$=n(57437);function tq(e){var t;let{state:n,triggerRef:r,selectRef:i,label:l,name:o,isDisabled:a}=e,{containerProps:s,selectProps:u}=function(e,t,n){var r,i,l,o;let a,s;let u=tg.get(t)||{},{autoComplete:d,name:c=u.name,isDisabled:f=u.isDisabled,selectionMode:g,onChange:v}=e,{validationBehavior:h,isRequired:m,isInvalid:y}=u,{visuallyHiddenProps:b}=(0,th.S)();return i=e.selectRef,l=t.selectedKeys,o=t.setSelectedKeys,a=(0,p.useRef)(l),s=function(e){let t=(0,p.useRef)(null);return tv(()=>{t.current=e},[e]),(0,p.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(()=>{o&&o(a.current)}),(0,p.useEffect)(()=>{var e;let t=null==i?void 0:null===(e=i.current)||void 0===e?void 0:e.form;return null==t||t.addEventListener("reset",s),()=>{null==t||t.removeEventListener("reset",s)}},[i,s]),!function(e,t,n){let{validationBehavior:r,focus:i}=e;tV(()=>{if("native"===r&&(null==n?void 0:n.current)){var e;let r,i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(i),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:{badInput:(r=e.validity).badInput,customError:r.customError,patternMismatch:r.patternMismatch,rangeOverflow:r.rangeOverflow,rangeUnderflow:r.rangeUnderflow,stepMismatch:r.stepMismatch,tooLong:r.tooLong,tooShort:r.tooShort,typeMismatch:r.typeMismatch,valueMissing:r.valueMissing,valid:r.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let l=tG(()=>{t.resetValidation()}),o=tG(e=>{var r,l;t.displayValidation.isInvalid||t.commitValidation();let o=null==n?void 0:null===(r=n.current)||void 0===r?void 0:r.form;!e.defaultPrevented&&n&&o&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(o)===n.current&&(i?i():null===(l=n.current)||void 0===l||l.focus(),tA("keyboard",null)),e.preventDefault()}),a=tG(()=>{t.commitValidation()});(0,p.useEffect)(()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",o),e.addEventListener("change",a),null==t||t.addEventListener("reset",l),()=>{e.removeEventListener("invalid",o),e.removeEventListener("change",a),null==t||t.removeEventListener("reset",l)}},[n,o,a,l,r])}({validationBehavior:h,focus:()=>{var e;return null==(e=n.current)?void 0:e.focus()}},t,e.selectRef),{containerProps:{...b,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{autoComplete:d,disabled:f,"aria-invalid":y||void 0,"aria-required":m&&"aria"===h||void 0,required:m&&"native"===h,name:c,tabIndex:-1,value:"multiple"===g?[...t.selectedKeys].map(e=>String(e)):null!=(r=[...t.selectedKeys][0])?r:"",multiple:"multiple"===g,onChange:e=>{t.setSelectedKeys(e.target.value),null==v||v(e)}}}}({...e,selectRef:i},n,r);return n.collection.size<=300?(0,t$.jsx)("div",{...s,"data-testid":"hidden-select-container",children:(0,t$.jsxs)("label",{children:[l,(0,t$.jsxs)("select",{...u,ref:i,children:[(0,t$.jsx)("option",{}),[...n.collection.getKeys()].map(e=>{let t=n.collection.getItem(e);if((null==t?void 0:t.type)==="item")return(0,t$.jsx)("option",{value:t.key,children:t.textValue},t.key)})]})]})}):o?(0,t$.jsx)("input",{autoComplete:u.autoComplete,disabled:a,name:o,type:"hidden",value:null!=(t=[...n.selectedKeys].join(","))?t:""}):null}let tX=new WeakMap;var tY=n(94508),tZ=n(40641),tJ=n(82457),tQ=n(36665),t0=n(78383),t1=n(8868),t2=n(89528);class t5{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let n=this.keyMap.get(e);return n&&null!==(t=n.prevKey)&&void 0!==t?t:null}getKeyAfter(e){var t;let n=this.keyMap.get(e);return n&&null!==(t=n.nextKey)&&void 0!==t?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(r=t).nextKey=void 0;this.lastKey=null!==(t=null==r?void 0:r.key)&&void 0!==t?t:null}}function t6(e){let{isSelected:t,disableAnimation:n,...r}=e;return(0,t$.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...r,children:(0,t$.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:n?{}:{transition:"stroke-dashoffset 200ms ease"}})})}let t4="undefined"!=typeof document?p.useLayoutEffect:()=>{};function t3(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function t9(e){let t=(0,p.useRef)({isFocused:!1,observer:null});return t4(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,p.useCallback)(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target;r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=t3(n);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();
1let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function t8(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function t7(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ne(e){let t=null;return()=>(null==t&&(t=e()),t)}let nt=ne(function(){return t7(/^Mac/i)}),nn=ne(function(){return t7(/^iPhone/i)}),nr=ne(function(){return t7(/^iPad/i)||nt()&&navigator.maxTouchPoints>1}),ni=ne(function(){return nn()||nr()});ne(function(){return nt()||ni()});let nl=ne(function(){return t8(/AppleWebKit/i)&&!no()}),no=ne(function(){return t8(/Chrome/i)}),na=ne(function(){return t8(/Android/i)}),ns=ne(function(){return t8(/Firefox/i)}),nu=null;
1function nd(e,t,n=!0){var r,i;let{metaKey:l,ctrlKey:o,altKey:a,shiftKey:s}=t;ns()&&(null===(i=window.event)||void 0===i?void 0:null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(nt()?l=!0:o=!0);let u=nl()&&nt()&&!nr()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:o,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:o,altKey:a,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});nd.isOpening=n,function(e){if(function(){if(null==nu){nu=!1;try{document.createElement("div").focus({get preventScroll(){return nu=!0,!0}})}catch{}}return nu}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}(e),e.dispatchEvent(u),nd.isOpening=!1}nd.isOpening=!1;let nc=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},nf=e=>e&&"window"in e&&e.window===e?e:nc(e).defaultView||window,np=null,ng=new Set,nv=new Map,nh=!1,nm=!1,ny={Tab:!0,Escape:!0};function nb(e,t){for(let n of ng)n(e,t)}function nw(e){nh=!0,nd.isOpening||e.metaKey||!nt()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(np="keyboard",nb("keyboard",e))}function nE(e){np="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(nh=!0,nb("pointer",e))}function nx(e){nd.isOpening||(""!==e.pointerType||!e.isTrusted)&&(na()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(nh=!0,np="virtual")}function nT(e){e.target!==window&&e.target!==document&&e.isTrusted&&(nh||nm||(np="virtual",nb("virtual",e)),nh=!1,nm=!1)}function nM(){nh=!1,nm=!0}function nS(e){if("undefined"==typeof window||"undefined"==typeof document||nv.get(nf(e)))return;let t=nf(e),n=nc(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){nh=!0,r.apply(this,arguments)},n.addEventListener("keydown",nw,!0),n.addEventListener("keyup",nw,!0),n.addEventListener("click",nx,!0),t.addEventListener("focus",nT,!0),t.addEventListener("blur",nM,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",nE,!0),n.addEventListener("pointermove",nE,!0),n.addEventListener("pointerup",nE,!0)),t.addEventListener("beforeunload",()=>{nP(e)},{once:!0}),nv.set(t,{focus:r})}let nP=(e,t)=>{let n=nf(e),r=nc(e);t&&r.removeEventListener("DOMContentLoaded",t),nv.has(n)&&(n.HTMLElement.prototype.focus=nv.get(n).focus,r.removeEventListener("keydown",nw,!0),r.removeEventListener("keyup",nw,!0),r.removeEventListener("click",nx,!0),n.removeEventListener("focus",nT,!0),n.removeEventListener("blur",nM,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",nE,!0),r.removeEventListener("pointermove",nE,!0),r.removeEventListener("pointerup",nE,!0)),nv.delete(n))};function nk(){return"pointer"!==np}"undefined"!=typeof document&&function(e){let t;let n=nc(void 0);"loading"!==n.readyState?nS(void 0):(t=()=>{nS(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>nP(e,t)}();let nL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),nK=(e=document)=>{var t;if(!(0,X.Wr)())return e.activeElement;let n=e.activeElement;for(;n&&("shadowRoot"in n)&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function nC(e){return(0,X.Wr)()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}var nI=n(45280),nO=n(65463),nD=n(62319),nF=n(18311),nz=n(98385),nA=n(11323),nN=n(45246),nW=n(19212);"undefined"!=typeof window&&window.document&&window.document.createElement;let n_=new Map;var nR=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var l=t.length;for(n=0;n<l;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(e))&&(r&&(r+=" "),r+=t);return r};function nj(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=function(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=nR(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=n_.get(e);
1if(n)return n.forEach(e=>e(t)),t;let r=n_.get(t);return r?(r.forEach(t=>t(e)),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}function nB(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function nH(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function nV(e){let t=null;return()=>(null==t&&(t=e()),t)}let nU=nV(function(){return nH(/^Mac/i)}),nG=nV(function(){return nH(/^iPhone/i)}),n$=nV(function(){return nH(/^iPad/i)||nU()&&navigator.maxTouchPoints>1}),nq=nV(function(){return nG()||n$()});nV(function(){return nU()||nq()});let nX=nV(function(){return nB(/AppleWebKit/i)&&!nY()}),nY=nV(function(){return nB(/Chrome/i)}),nZ=nV(function(){return nB(/Android/i)}),nJ=nV(function(){return nB(/Firefox/i)}),nQ=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},n0=e=>e&&"window"in e&&e.window===e?e:nQ(e).defaultView||window,n1=new Map,n2=new Set;function n5(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=n1.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),n1.delete(n.target)),0===n1.size)){for(let e of n2)e();n2.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let r=n1.get(n.target);r||(r=new Set,n1.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}"undefined"!=typeof document&&("loading"!==document.readyState?n5():document.addEventListener("DOMContentLoaded",n5));let n6="default",n4="",n3=new WeakMap;function n9(e){if(nq()){if("default"===n6){let t=nQ(e);n4=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}n6="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(n3.set(e,e.style.userSelect),e.style.userSelect="none")}function n8(e){if(nq())"disabled"===n6&&(n6="restoring",setTimeout(()=>{var t;t=()=>{if("restoring"===n6){let t=nQ(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=n4||""),n4="",n6="default"}},requestAnimationFrame(()=>{(function(){for(let[e]of n1)"isConnected"in e&&!e.isConnected&&n1.delete(e)})(),0===n1.size?t():n2.add(t)})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&n3.has(e)){let t=n3.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),n3.delete(e)}}let n7=p.createContext({register:()=>{}});n7.displayName="PressResponderContext";var re=n(95691),rt=n(25134),rn=n(11455);function rr(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}"undefined"!=typeof window&&window.document&&window.document.createElement;let ri=new Map;function rl(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=rr(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=nR(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=ri.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=ri.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}"undefined"!=typeof FinalizationRegistry&&new FinalizationRegistry(e=>{ri.delete(e)});let ro="undefined"!=typeof document?p.useLayoutEffect:()=>{},ra=null!==(l=p.useInsertionEffect)&&void 0!==l?l:ro;function rs(e){let t=(0,p.useRef)(null);return ra(()=>{t.current=e},[e]),(0,p.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}function ru(e){if(function(){if(null==rd){rd=!1;try{document.createElement("div").focus({get preventScroll(){return rd=!0,!0}})}catch{}}return rd}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let rd=null;function rc(e,t,n=!0){var r,i;
1let{metaKey:l,ctrlKey:o,altKey:a,shiftKey:s}=t;nJ()&&(null===(i=window.event)||void 0===i?void 0:null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(nU()?l=!0:o=!0);let u=nX()&&nU()&&!n$()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:o,altKey:a,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:o,altKey:a,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});rc.isOpening=n,ru(e),e.dispatchEvent(u),rc.isOpening=!1}function rf(e){return""===e.pointerType&&!!e.isTrusted||(nZ()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}rc.isOpening=!1;var rp=new WeakMap;class rg{continuePropagation(){(0,rn._)(this,rp,!1)}get shouldStopPropagation(){return(0,re._)(this,rp)}constructor(e,t,n,r){var i;(0,rt._)(this,rp,{writable:!0,value:void 0}),(0,rn._)(this,rp,!0);let l=null!==(i=null==r?void 0:r.target)&&void 0!==i?i:n.currentTarget,o=null==l?void 0:l.getBoundingClientRect(),a,s=0,u,d=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,d=n.clientY),o&&(null!=u&&null!=d?(a=u-o.left,s=d-o.top):(a=o.width/2,s=o.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=s}}let rv=Symbol("linkClicked");function rh(e){return"A"===e.tagName&&e.hasAttribute("href")}function rm(e,t){let{key:n,code:r}=e,i=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof n0(t).HTMLInputElement&&!rP(t,n)||t instanceof n0(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===i||!i&&rh(t))&&"Enter"!==n)}function ry(e,t){let n=e.changedTouches;for(let e=0;e<n.length;e++){let r=n[e];if(r.identifier===t)return r}return null}function rb(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function rw(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function rE(e,t){let n,r,i=t.getBoundingClientRect(),l=(n=0,r=0,void 0!==e.width?n=e.width/2:void 0!==e.radiusX&&(n=e.radiusX),void 0!==e.height?r=e.height/2:void 0!==e.radiusY&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+n,bottom:e.clientY+r,left:e.clientX-n});return!(i.left>l.right)&&!(l.left>i.right)&&!(i.top>l.bottom)&&!(l.top>i.bottom)}function rx(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function rT(e){return!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!rh(e))}function rM(e,t){return e instanceof HTMLInputElement?!rP(e,t):rT(e)}let rS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function rP(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:rS.has(e.type)}let rk=!1,rL=0;function rK(){rk=!0,setTimeout(()=>{rk=!1},50)}function rC(e){"touch"===e.pointerType&&rK()}function rI(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",rC):document.addEventListener("touchend",rK),rL++,()=>{--rL>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",rC):document.removeEventListener("touchend",rK))}}var rO=n(41283),rD=e=>{let{Component:t,rendered:n,description:r,isSelectable:i,isSelected:l,isDisabled:s,selectedIcon:u,startContent:d,endContent:c,hideSelectedIcon:g,disableAnimation:v,getItemProps:h,getLabelProps:m,getWrapperProps:y,getDescriptionProps:b,getSelectedIconProps:w}=function(e){var t,n;let r=(0,o.w)(),[i,l]=(0,a.oe)(e,t2.D9.variantKeys),{as:s,item:u,state:d,description:c,startContent:g,endContent:v,isVirtualized:h,selectedIcon:m,className:y,classNames:b,autoFocus:w,onPress:E,onClick:x,shouldHighlightOnFocus:T,hideSelectedIcon:M=!1,isReadOnly:S=!1,...P}=i,k=null!=(n=null!=(t=e.disableAnimation)?t:null==r?void 0:r.disableAnimation)&&n,L=(0,p.useRef)(null),K=s||(e.href?"a":"li"),C="string"==typeof K,{rendered:I,key:O}=u,D=d.disabledKeys.has(O)||e.isDisabled,F="none"!==d.selectionManager.selectionMode,z=(0,rO.d)();x&&"function"==typeof x&&(0,nI.Z)("onClick is deprecated, please use onPress instead. See: https://github.com/nextui-org/nextui/issues/4292","ListboxItem");let{pressProps:A,isPressed:N}=function(e){let t,n,r,i,{onPress:l,onPressChange:o,onPressStart:a,onPressEnd:s,onPressUp:u,isDisabled:d,isPressed:c,preventFocusOnPress:f,shouldCancelOnPointerExit:g,allowTextSelectionOnPress:v,ref:h,...m}=function(e){var t;let n=(0,p.useContext)(n7);if(n){let{register:t,...r}=n;e=rl(r,e),t()}return t=e.ref,ro(()=>
1{if(n&&n.ref&&t)return n.ref.current=t.current,()=>{n.ref&&(n.ref.current=null)}}),e}(e),[y,b]=(0,p.useState)(!1),w=(0,p.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:E,removeAllGlobalListeners:x}=(t=(0,p.useRef)(new Map),n=(0,p.useCallback)((e,n,r,i)=>{let l=(null==i?void 0:i.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:l,options:i}),e.addEventListener(n,l,i)},[]),r=(0,p.useCallback)((e,n,r,i)=>{var l;let o=(null===(l=t.current.get(r))||void 0===l?void 0:l.fn)||r;e.removeEventListener(n,o,i),t.current.delete(r)},[]),i=(0,p.useCallback)(()=>{t.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]),(0,p.useEffect)(()=>i,[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}),T=rs((e,t)=>{let n=w.current;if(d||n.didFirePressStart)return!1;let r=!0;if(n.isTriggeringEvent=!0,a){let n=new rg("pressstart",t,e);a(n),r=n.shouldStopPropagation}return o&&o(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,b(!0),r}),M=rs((e,t,n=!0)=>{let r=w.current;if(!r.didFirePressStart)return!1;r.ignoreClickAfterPress=!0,r.didFirePressStart=!1,r.isTriggeringEvent=!0;let i=!0;if(s){let n=new rg("pressend",t,e);s(n),i=n.shouldStopPropagation}if(o&&o(!1),b(!1),l&&n&&!d){let n=new rg("press",t,e);l(n),i&&(i=n.shouldStopPropagation)}return r.isTriggeringEvent=!1,i}),S=rs((e,t)=>{let n=w.current;if(d)return!1;if(u){n.isTriggeringEvent=!0;let r=new rg("pressup",t,e);return u(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),P=rs(e=>{let t=w.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&M(rw(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,x(),v||n8(t.target))}),k=rs(e=>{g&&P(e)}),L=(0,p.useMemo)(()=>{let e=w.current,t={onKeyDown(t){if(rm(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var r;rM(t.target,t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,i=T(t,"keyboard");let r=t.currentTarget;E(nQ(t.currentTarget),"keyup",rr(t=>{rm(t,r)&&!t.repeat&&r.contains(t.target)&&e.target&&S(rw(e.target,t),"keyboard")},n),!0)}i&&t.stopPropagation(),t.metaKey&&nU()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!rc.isOpening){let n=!0;if(d&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||rf(t.nativeEvent))){d||f||ru(t.currentTarget);let e=T(t,"virtual"),r=S(t,"virtual"),i=M(t,"virtual");n=e&&r&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n,r,i;if(e.isPressed&&e.target&&rm(t,e.target)){rM(t.target,t.key)&&t.preventDefault();let n=t.target;M(rw(e.target,t),"keyboard",e.target.contains(n)),x(),"Enter"!==t.key&&rh(e.target)&&e.target.contains(n)&&!t[rv]&&(t[rv]=!0,rc(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{var i;if(0!==t.button||!t.currentTarget.contains(t.target))return;if(i=t.nativeEvent,!nZ()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType){e.pointerType="virtual";return}rx(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let o=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||f||ru(t.currentTarget),v||n9(e.target),o=T(t,e.pointerType),E(nQ(t.currentTarget),"pointermove",n,!1),E(nQ(t.currentTarget),"pointerup",r,!1),E(nQ(t.currentTarget),"pointercancel",l,!1)),o&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(rx(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&rE(t,t.currentTarget)&&S(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&rE(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,T(rw(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,M(rw(e.target,t),e.pointerType,!1),k(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(rE(t,e.target)&&null!=e.pointerType?M(rw(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&M(rw(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,x(),v||n8(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&E(e.target,"touchend",i,{once:!0}))},i=e=>{rT(e.currentTarget)&&e.preventDefault()},l=e=>{P(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&P(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if(rx(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=rf(t.nativeEvent)?"virtual":"mouse",d||f||ru(t.currentTarget),T(t,e.pointerType)&&t.stopPropagation(),E(nQ(t.currentTarget),"mouseup",n,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=T(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=M(t,e.pointerType,!1),k(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&S(t,e.pointerType||"mouse")};let n=t=>{if(0===t.button){if(e.isPressed=!1,x(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&rE(t,e.target)&&null!=e.pointerType?M(rw(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&M(rw(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",d||f||ru(t.currentTarget),v||n9(e.target),T(rb(e.target,t),e.pointerType)&&t.stopPropagation(),E(n0(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=ry(t.nativeEvent,e.activePointerId),r=!0;n&&rE(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=T(rb(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=M(rb(e.target,t),e.pointerType,!1),k(rb(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=ry(t.nativeEvent,e.activePointerId),r=!0;n&&rE(n,t.currentTarget)&&null!=e.pointerType?(S(rb(e.target,t),e.pointerType),r=M(rb(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=M(rb(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!v&&n8(e.target),x()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&P(rb(e.target,t)))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&P({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&P(e)}}return t},[E,d,f,x,v,P,k,M,T,S]);return(0,p.useEffect)(()=>()=>{var e;v||n8(null!==(e=w.current.target)&&void 0!==e?e:void 0)},[v]),{isPressed:c||y,pressProps:rl(m,L)}}({ref:L,isDisabled:D,onPress:E}),{isHovered:W,hoverProps:_}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[l,o]=(0,p.useState)(!1),a=(0,p.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,p.useEffect)(rI,[]);let{hoverProps:s,triggerHoverEnd:u}=(0,p.useMemo)(()=>{let e=(e,r)=>{if(a.pointerType=r,i||"touch"===r||a.isHovered||!e.currentTarget.contains(e.target))return;a.isHovered=!0;let l=e.currentTarget;a.target=l,t&&t({type:"hoverstart",target:l,pointerType:r}),n&&n(!0),o(!0)},l=(e,t)=>
1{if(a.pointerType="",a.target=null,"touch"===t||!a.isHovered)return;a.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),o(!1)},s={};return"undefined"!=typeof PointerEvent?(s.onPointerEnter=t=>{rk&&"mouse"===t.pointerType||e(t,t.pointerType)},s.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&l(e,e.pointerType)}):(s.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},s.onMouseEnter=t=>{a.ignoreEmulatedMouseEvents||rk||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},s.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&l(e,"mouse")}),{hoverProps:s,triggerHoverEnd:l}},[t,n,r,i,a]);return(0,p.useEffect)(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:s,isHovered:l}}({isDisabled:D}),{isFocusVisible:R,focusProps:j}=function(e={}){var t,n,r;let{autoFocus:i=!1,isTextInput:l,within:o}=e,a=(0,p.useRef)({isFocused:!1,isFocusVisible:i||nk()}),[s,u]=(0,p.useState)(!1),[d,c]=(0,p.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),f=(0,p.useCallback)(()=>c(a.current.isFocused&&a.current.isFocusVisible),[]),g=(0,p.useCallback)(e=>{a.current.isFocused=e,u(e),f()},[f]);t=e=>{a.current.isFocusVisible=e,f()},n=[],r={isTextInput:l},nS(),(0,p.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){let r=nc(null==n?void 0:n.target),i="undefined"!=typeof window?nf(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,l="undefined"!=typeof window?nf(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?nf(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?nf(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof i&&!nL.has(r.activeElement.type)||r.activeElement instanceof l||r.activeElement instanceof o&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof a&&!ny[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t(nk())};return ng.add(e),()=>{ng.delete(e)}},n);let{focusProps:v}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,l=(0,p.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=t9(l),a=(0,p.useCallback)(e=>{let t=nc(e.target),r=t?nK(t):nK();e.target===e.currentTarget&&r===nC(e.nativeEvent)&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?l:void 0}}}({isDisabled:o,onFocusChange:g}),{focusWithinProps:h}=function(e){let t,n,r,i,{isDisabled:l,onBlurWithin:o,onFocusWithin:a,onFocusWithinChange:s}=e,u=(0,p.useRef)({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:c}=(t=(0,p.useRef)(new Map),n=(0,p.useCallback)((e,n,r,i)=>{let l=(null==i?void 0:i.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:l,options:i}),e.addEventListener(n,l,i)},[]),r=(0,p.useCallback)((e,n,r,i)=>{var l;let o=(null===(l=t.current.get(r))||void 0===l?void 0:l.fn)||r;e.removeEventListener(n,o,i),t.current.delete(r)},[]),i=(0,p.useCallback)(()=>{t.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]),(0,p.useEffect)(()=>i,[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}),f=(0,p.useCallback)(e=>{e.currentTarget.contains(e.target)&&u.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(u.current.isFocusWithin=!1,c(),o&&o(e),s&&s(!1))},[o,s,u,c]),g=t9(f),v=(0,p.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=nc(e.target),n=nK(t);if(!u.current.isFocusWithin&&n===nC(e.nativeEvent)){a&&a(e),s&&s(!0),u.current.isFocusWithin=!0,g(e);let n=e.currentTarget;d(t,"focus",e=>{if(u.current.isFocusWithin&&!function(e,t){if(!(0,X.Wr)())return!!t&&!!e&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){var r;if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:null!==(r=n)&&"object"==typeof r&&"nodeType"in r&&"number"==typeof r.nodeType&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in r?n.host:n.parentNode}return!1}(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(r,"target",{value:n}),Object.defineProperty(r,"currentTarget",{value:n}),f(t3(r))}},{capture:!0})}},[a,s,g,d,f]);return l?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}
1:{focusWithinProps:{onFocus:v,onBlur:f}}}({isDisabled:!o,onFocusWithinChange:g});return{isFocused:s,isFocusVisible:d,focusProps:o?h:v}}({autoFocus:w}),{isFocused:B,isSelected:H,optionProps:V,labelProps:U,descriptionProps:G}=function(e,t,n){var r,i,l,o,a,s,u,d;let{key:c}=e,f=tX.get(t),p=null!==(l=e.isDisabled)&&void 0!==l?l:t.selectionManager.isDisabled(c),g=null!==(o=e.isSelected)&&void 0!==o?o:t.selectionManager.isSelected(c),v=null!==(a=e.shouldSelectOnPressUp)&&void 0!==a?a:null==f?void 0:f.shouldSelectOnPressUp,h=null!==(s=e.shouldFocusOnHover)&&void 0!==s?s:null==f?void 0:f.shouldFocusOnHover,m=null!==(u=e.shouldUseVirtualFocus)&&void 0!==u?u:null==f?void 0:f.shouldUseVirtualFocus,y=null!==(d=e.isVirtualized)&&void 0!==d?d:null==f?void 0:f.isVirtualized,b=(0,tZ.mp)(),w=(0,tZ.mp)(),E={role:"option","aria-disabled":p||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?g:void 0};(0,nO.V5)()&&(0,nO.Pf)()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=b,E["aria-describedby"]=w);let x=t.collection.getItem(c);if(y){let e=Number(null==x?void 0:x.index);E["aria-posinset"]=Number.isNaN(e)?void 0:e+1,E["aria-setsize"]=(0,nz.i)(t.collection)}let T=(null==f?void 0:f.onAction)?()=>{var e;return null==f?void 0:null===(e=f.onAction)||void 0===e?void 0:e.call(f,c)}:void 0,{itemProps:M,isPressed:S,isFocused:P,hasAction:k,allowsSelection:L}=(0,nW.C)({selectionManager:t.selectionManager,key:c,ref:n,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&h,isVirtualized:y,shouldUseVirtualFocus:m,isDisabled:p,onAction:T||(null==x?void 0:null===(r=x.props)||void 0===r?void 0:r.onAction)?(0,nD.t)(null==x?void 0:null===(i=x.props)||void 0===i?void 0:i.onAction,T):void 0,linkBehavior:null==f?void 0:f.linkBehavior}),{hoverProps:K}=(0,nA.X)({isDisabled:p||!h,onHoverStart(){(0,nN.E)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(c))}}),C=(0,tY.z)(null==x?void 0:x.props);delete C.id;let I=(0,nF.eY)(null==x?void 0:x.props);return{optionProps:{...E,...(0,tJ.d)(C,M,K,I),id:function(e,t){let n=tX.get(e);if(!n)throw Error("Unknown list");return`${n.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`}(t,c)},labelProps:{id:b},descriptionProps:{id:w},isFocused:P,isFocusVisible:P&&(0,nN.E)(),isSelected:g,isDisabled:p,isPressed:S,allowsSelection:L,hasAction:k}}({key:O,isDisabled:D,"aria-label":i["aria-label"],isVirtualized:h},d,L),$=V,q=(0,p.useMemo)(()=>(0,t2.D9)({...l,isDisabled:D,disableAnimation:k,hasTitleTextChild:"string"==typeof I,hasDescriptionTextChild:"string"==typeof c}),[(0,Q.Xx)(l),D,k,I,c]),Y=(0,J.W)(null==b?void 0:b.base,y);S&&($=(0,Q.Os)($));let Z=T&&B||(z?W||N:W||B&&!R),et=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":(0,ee.PB)(!0),"data-disabled":(0,ee.PB)(D),className:q.selectedIcon({class:null==b?void 0:b.selectedIcon}),...e}},[D,q,b]);return{Component:K,domRef:L,slots:q,classNames:b,isSelectable:F,isSelected:H,isDisabled:D,rendered:I,description:c,startContent:g,endContent:v,selectedIcon:m,hideSelectedIcon:M,disableAnimation:k,getItemProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:L,...nj({onClick:x},$,S?{}:nj(j,A),_,(0,f.z)(P,{enabled:C}),e),"data-selectable":(0,ee.PB)(F),"data-focus":(0,ee.PB)(B),"data-hover":(0,ee.PB)(Z),"data-disabled":(0,ee.PB)(D),"data-selected":(0,ee.PB)(H),"data-pressed":(0,ee.PB)(N),"data-focus-visible":(0,ee.PB)(R),className:q.base({class:(0,J.W)(Y,e.className)})}},getLabelProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...nj(U,e),"data-label":(0,ee.PB)(!0),className:q.title({class:null==b?void 0:b.title})}},getWrapperProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...nj(e),className:q.wrapper({class:null==b?void 0:b.wrapper})}},getDescriptionProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...nj(G,e),className:q.description({class:null==b?void 0:b.description})}},getSelectedIconProps:et}}(e),E=(0,p.useMemo)(()=>{let e=(0,t$.jsx)(t6,{disableAnimation:v,isSelected:l});return"function"==typeof u?u({icon:e,isSelected:l,isDisabled:s}):u||e},[u,l,s,v]);return(0,t$.jsxs)(t,{...h(),children:[d,r?(0,t$.jsxs)("div",{...y(),children:[(0,t$.jsx)("span",{...m(),children:n}),(0,t$.jsx)("span",{...b(),children:r})]}):(0,t$.jsx)("span",{...m(),children:n}),i&&!g&&(0,t$.jsx)("span",{...w(),children:E}),c]})};rD.displayName="NextUI.ListboxItem";var rF=n(65455),rz=(0,a.Gp)((e,t)=>{let{item:n,state:r,as:i,variant:l,color:o,disableAnimation:a,className:s,classNames:u,hideSelectedIcon:d,showDivider:c=!1,dividerProps:f={},itemClasses:g,title:v,items:h,...m}=e,y=(0,p.useMemo)(()=>(0,t2.Dk)(),[]),b=(0,J.W)(null==u?void 0:u.base,s),w=(0,J.W)(null==u?void 0:u.divi
1der,null==f?void 0:f.className),{itemProps:E,headingProps:x,groupProps:T}=function(e){let{heading:t,"aria-label":n}=e,r=(0,tZ.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:n.rendered,"aria-label":n["aria-label"]});return(0,t$.jsxs)(i||"li",{"data-slot":"base",...nj(E,m),className:y.base({class:b}),children:[n.rendered&&(0,t$.jsx)("span",{...x,className:y.heading({class:null==u?void 0:u.heading}),"data-slot":"heading",children:n.rendered}),(0,t$.jsxs)("ul",{...T,className:y.group({class:null==u?void 0:u.group}),"data-has-title":!!n.rendered,"data-slot":"group",children:[[...n.childNodes].map(e=>{let{key:t,props:n}=e,i=(0,t$.jsx)(rD,{classNames:g,color:o,disableAnimation:a,hideSelectedIcon:d,item:e,state:r,variant:l,...n},t);return e.wrapper&&(i=e.wrapper(i)),i}),c&&(0,t$.jsx)(rF.j,{as:"li",className:y.divider({class:w}),...f})]})]},n.key)});rz.displayName="NextUI.ListboxSection";var rA=n(54887);function rN(e,t,n){let r,i=n.initialDeps??[];return()=>{var l,o,a,s;let u,d;n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(u=Date.now());let c=e();if(!(c.length!==i.length||c.some((e,t)=>i[t]!==e)))return r;if(i=c,n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(d=Date.now()),r=t(...c),n.key&&(null==(a=n.debug)?void 0:a.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-d)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(s=null==n?void 0:n.onChange)||s.call(n,r),r}}function rW(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let r_=(e,t)=>1>Math.abs(e-t),rR=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},rj=e=>e,rB=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},rH=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let l=new r.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e){i({width:e.inlineSize,height:e.blockSize});return}}i(n.getBoundingClientRect())});return l.observe(n,{box:"border-box"}),()=>{l.unobserve(n)}},rV={passive:!0},rU="undefined"==typeof window||"onscrollend"in window,rG=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,l=e.options.useScrollendEvent&&rU?()=>void 0:rR(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=r=>()=>{let{horizontal:o,isRtl:a}=e.options;i=o?n.scrollLeft*(a&&-1||1):n.scrollTop,l(),t(i,r)},a=o(!0),s=o(!1);return s(),n.addEventListener("scroll",a,rV),n.addEventListener("scrollend",s,rV),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",s)}},r$=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},rq=(e,{adjustments:t=0,behavior:n},r)=>{var i,l;null==(l=null==(i=r.scrollElement)?void 0:i.scrollTo)||l.call(i,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class rX{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:rj,rangeExtractor:rB,onChange:()=>{},measureElement:r$,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=rN(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
4{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let l=r.get(t.lane);if(null==l||t.end>l.end?r.set(t.lane,t):t.end<l.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=rN(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i}),{key:!1}),this.getMeasurements=rN(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},l)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let o=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let a=this.measurementsCache.slice(0,o);for(let i=o;i<e;i++){let e=r(i),o=1===this.options.lanes?a[i-1]:this.getFurthestMeasurement(a,i),s=o?o.end+this.options.gap:t+n,u=l.get(e),d="number"==typeof u?u:this.options.estimateSize(i),c=s+d,f=o?o.lane:i%this.options.lanes;a[i]={index:i,start:s,size:d,end:c,key:e,lane:f}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=rN(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n}){let r=e.length-1,i=rY(0,r,t=>e[t].start,n),l=i;for(;l<r&&e[l].end<n+t;)l++;return{startIndex:i,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=rN(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,n,r)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:n,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let i=r.key,l=this.elementsCache.get(i);l!==e&&(l&&this.observer.unobserve(l),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>
4{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=rN(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return rW(t[rY(0,t.length-1,e=>rW(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let n=this.getSize(),r=this.getScrollOffset();"auto"===t&&e>=r+n&&(t="end"),"end"===t&&(e-=n);let i=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-n,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),i=this.getScrollOffset();if("auto"===t){if(n.end>=i+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}}let l=n.start-this.options.scrollPaddingStart+(n.size-r)/2;switch(t){case"center":return[this.getOffsetForAlignment(l,t),t];case"end":return[this.getOffsetForAlignment(n.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(n.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,l]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=rW(this.getOffsetForIndex(e,l));r_(t,this.getScrollOffset())||this.scrollToIndex(e,{align:l,behavior:n})}else this.scrollToIndex(e,{align:l,behavior:n})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let rY=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,l=n(i);if(l<r)e=i+1;else{if(!(l>r))return i;t=i-1}}return e>0?e-1:0},rZ="undefined"!=typeof document?p.useLayoutEffect:p.useEffect;var rJ=(0,s.tv)({base:[],variants:{orientation:{vertical:["overflow-y-auto","data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],horizontal:["overflow-x-auto","data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),rQ=(e,t)=>{let n=[];for(let r of e)"section"===r.type?n.push(([...r.childNodes].length+1)*t):n.push(t);return n},r0=e=>{if(!e||void 0===e.scrollTop||void 0===e.clientHeight||void 0===e.scrollHeight)return{isTop:!1,isBottom:!1,isMiddle:!1};let t=0===e.scrollTop,n=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:n,isMiddle:!t&&!n}},r1=e=>{let{Component:t,state:n,color:r,variant:i,itemClasses:l,getBaseProps:o,topContent:s,bottomContent:u,hideEmptyContent:d,hideSelectedIcon:g,shouldHighlightOnFocus:v,disableAnimation:h,getEmptyContentProps:m,getListProps:y,scrollShadowProps:b}=e,{virtualization:w}=e;if(!w||!(0,ee.xb)(w)&&!w.maxListboxHeight&&!w.itemHeight)throw Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");let{maxListboxHeight:E,itemHeight:x}=w,T=Math.min(E,x*n.collection.size),M=(0,p.useRef)(null),S=(0,p.useMemo)(()=>rQ([...n.collection],x),[n.collection,x]),P=function(e){let t=p.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var i;r?(0,rA.flushSync)(t):t(),null==(i=e.onChange)||i.call(e,n,r)}},[r]=p.useState(()=>new rX(n));return r.setOptions(n),rZ(()=>r._didMount(),[]),rZ(()=>r._willUpdate()),r}({observeElementRect:rH,observeElementOffset:rG,scrollToFn:rq,count:[...n.collection].length,getScrollElement:()=>M.current,estimateSize:e=>S[e]}),k=P.getVirtualItems(),{getBaseProps:L}=function(e){var t;let[n,r]=(0,a.oe)(e,rJ.variantKeys),{ref:i,as:l,children:o,className:s,style:u,size:d=40,offset:f=0,visibility:g="auto",isEnabled:v=!0,onVisibilityChange:h,...m}=n,y=(0,c.gy)(i);!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:i="auto",offset:l=0,onVisibilityChange:o,updateDeps:a=[]}=e,s=(0,p.useRef)(i);(0,p.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!n)return;let a=(t,n,r,l,a)=>{if("auto"===i){let t="".concat(l).concat((0,Q.kC)(a),"Scroll");n&&r?(e.dataset[t]="true",e.removeAttribute("data-".concat(l,"-scroll")),e.removeAttribute("data-".concat(a,"-scroll"))):(e.dataset["".concat(l,"Scroll")]=n.toString(),e.dataset["".concat(a,"Scroll")]=r.toString(),e.removeAttribute("data-".concat(l,"-").concat(a,"-scroll")))}else{let e=n&&r?"both":n?l:r?a:"none";e!==s.current&&(null==o||o(e),s.current=e)}},u=()=>{for(let{type:t,prefix:n,suffix:i}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(r===t||"both"===r){let r="vertical"===t?e.scrollTop>l:e.scrollLeft>l,o="vertical"===t?e.scrollTop+e.clientHeight+l<e.scrollHeight:e.scrollLeft+e.clientWidth+l<e.scrollWidth;a(t,r,o,n,i)}},d=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute("data-".concat(t,"-scroll"))})};return u(),e.addEventListener("scroll",u),"auto"!==i&&(d(),"both"===i?(e.dataset.topBottomScroll=String("vertical"===r),e.dataset.leftRightScroll=String("horizontal"===r)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset["".concat(t,"Scroll")]=String(i===t)}))),()=>{e.removeEventListener("scroll",u),d()}},[...a,n,i,r,o,t])}({domRef:y,offset:f,visibility:g,isEnabled:v,onVisibilityChange:h,updateDeps:[o],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let b=(0,p.useMemo)(()=>rJ({...r,className:s}),[(0,Q.Xx)(r),s]);return{Component:l||"div",styles:b,domRef:y,children:o,getBaseProps:function(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:y,className:b,"data-orientation":null!=(t=e.orientation)?t:"vertical",style:{"--scroll-shadow-size":"".concat(d,"px"),...u,...n.style},...m,...n}}}}({...b}),K=e=>{var t;let o=[...n.collection][e.index];if(!o)return null;let a={color:r,item:o,state:n,variant:i,disableAnimation:h,hideSelectedIcon:g,...o.props},s={position:"absolute",top:0,left:0,width:"100%",height:"".concat(e.size,"px"),transform:"translateY(".concat(e.start,"px)")};if("section"===o.type)return(0,t$.jsx)(rz,{...a,itemClasses:l,style:{...s,...a.style}},o.key);let u=(0,t$.jsx)(rD,{...a,classNames:nj(l,null==(t=o.props)?void 0:t.classNames),shouldHighlightOnFocus:v,style:{...s,...a.style}},o.key);return o.wrapper&&(u=o.wrapper(u)),u},[C,I]=(0,p.useState)({isTop:!1,isBottom:!0,isMiddle:!1}),O=(0,t$.jsxs)(t,{...y(),children:[!n.collection.size&&!d&&(0,t$.jsx)("li",{children:(0,t$.jsx)("div",{...m()})}),(0,t$.jsx)("div",{...(0,f.z)(L()),ref:M,"data-bottom-scroll":C.isTop,"data-top-bottom-scroll":C.isMiddle,"data-top-scroll":C.isBottom,style:{height:E,overflow:"auto"},onScroll:e=>{I(r0(e.target))},children:T>0&&x>0&&(0,t$.jsx)("div",{style:{height:"".concat(P.getTotalSize(),"px"),width:"100%",position:"relative"},children:k.map(e=>K(e))})})]});return(0,t$.jsxs)("div",{...o(),children:[s,O,u]})},r2=(0,a.Gp)(function(e,t){let{isVirtualized:n,...r}=e,i=function(e){var t;
4let n=(0,o.w)(),{ref:r,as:i,state:l,variant:a,color:s,onAction:u,children:d,onSelectionChange:g,disableAnimation:v=null!=(t=null==n?void 0:n.disableAnimation)&&t,itemClasses:h,className:m,topContent:y,bottomContent:b,emptyContent:w="No items.",hideSelectedIcon:E=!1,hideEmptyContent:x=!1,shouldHighlightOnFocus:T=!1,classNames:M,...S}=e,P=i||"ul",k="string"==typeof P,L=(0,c.gy)(r),K=function(e){let{filter:t,layoutDelegate:n}=e,r=(0,ed.q)(e),i=(0,p.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=(0,p.useCallback)(e=>new t5(t?t(e):e),[t]),o=(0,p.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=(0,ef.K)(e,l,o),s=(0,p.useMemo)(()=>new ec.Z(a,r,{layoutDelegate:n}),[a,r,n]),u=(0,p.useRef)(null);return(0,p.useEffect)(()=>{if(null!=r.focusedKey&&!a.getItem(r.focusedKey)&&u.current){var e,t,n,i,l,o,d;let c=u.current.getItem(r.focusedKey),f=[...u.current.getKeys()].map(e=>{let t=u.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),p=[...a.getKeys()].map(e=>{let t=a.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),g=(null!==(e=null==f?void 0:f.length)&&void 0!==e?e:0)-(null!==(t=null==p?void 0:p.length)&&void 0!==t?t:0),v=Math.min(g>1?Math.max((null!==(n=null==c?void 0:c.index)&&void 0!==n?n:0)-g+1,0):null!==(i=null==c?void 0:c.index)&&void 0!==i?i:0,(null!==(l=null==p?void 0:p.length)&&void 0!==l?l:0)-1),h=null,m=!1;for(;v>=0;){if(!s.isDisabled(p[v].key)){h=p[v];break}v<p.length-1&&!m?v++:(m=!0,v>(null!==(o=null==c?void 0:c.index)&&void 0!==o?o:0)&&(v=null!==(d=null==c?void 0:c.index)&&void 0!==d?d:0),v--)}r.setFocusedKey(h?h.key:null)}u.current=a},[a,s,r,r.focusedKey]),{collection:a,disabledKeys:i,selectionManager:s}}({...e,children:d,onSelectionChange:g}),C=l||K,{listBoxProps:I}=function(e,t,n){let r=(0,tY.z)(e,{labelable:!0}),i=e.selectionBehavior||"toggle",l=e.linkBehavior||("replace"===i?"action":"override");"toggle"===i&&"action"===l&&(l="override");let{listProps:o}=(0,t1._)({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:l}),{focusWithinProps:a}=(0,tQ.L)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=(0,tZ.Me)(e.id);tX.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:l});let{labelProps:u,fieldProps:d}=(0,t0.N)({...e,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:(0,tJ.d)(r,a,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,tJ.d)(d,o)})}}({...e,onAction:u},C,L),O=(0,p.useMemo)(()=>(0,t2.GI)({className:m}),[m]),D=(0,J.W)(null==M?void 0:M.base,m);return{Component:P,state:C,variant:a,color:s,slots:O,classNames:M,topContent:y,bottomContent:b,emptyContent:w,hideEmptyContent:x,shouldHighlightOnFocus:T,hideSelectedIcon:E,disableAnimation:v,className:m,itemClasses:h,getBaseProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:L,"data-slot":"base",className:O.base({class:D}),...(0,f.z)(S,{enabled:k}),...e}},getListProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"list",className:O.list({class:null==M?void 0:M.list}),...I,...e}},getEmptyContentProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"empty-content",children:w,className:O.emptyContent({class:null==M?void 0:M.emptyContent}),...e}}}}({...r,ref:t}),{Component:l,state:a,color:s,variant:u,itemClasses:d,getBaseProps:g,topContent:v,bottomContent:h,hideEmptyContent:m,hideSelectedIcon:y,shouldHighlightOnFocus:b,disableAnimation:w,getEmptyContentProps:E,getListProps:x}=i;if(n)return(0,t$.jsx)(r1,{...e,...i});let T=(0,t$.jsxs)(l,{...x(),children:[!a.collection.size&&!m&&(0,t$.jsx)("li",{children:(0,t$.jsx)("div",{...E()})}),[...a.collection].map(e=>{var t;let n={color:s,item:e,state:a,variant:u,disableAnimation:w,hideSelectedIcon:y,...e.props};if("section"===e.type)return(0,t$.jsx)(rz,{...n,itemClasses:d},e.key);let r=(0,t$.jsx)(rD,{...n,classNames:nj(d,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:b},e.key);return e.wrapper&&(r=e.wrapper(r)),r})]});return(0,t$.jsxs)("div",{...g(),children:[v,T,h]})}),r5=n(20974),r6=n(52698),r4=n(67490),r3=n(50278),r9=n(9330),r8=n(90372),r7=n(455),ie=n(1701),it=n(19532),ir=()=>n.e(6796).then(n.bind(n,66796)).then(e=>e.default),ii=(0,a.Gp)((e,t)=>{let{children:n,motionProps:r,placement:i,disableAnimation:l,style:o={},transformOrigin:a={},...s}=e,u=o;return void 0!==a.originX||void 0!==a.originY?u={...u,transformOrigin:a}:i&&(u={...u,...(0,r7.VS)("center"===i?"top":i)}),l?(0,t$.jsx)("div",{...s,ref:t,children:n}):(0,t$.jsx)(r3.X,{features:ir,children:(0,t$.jsx)(r9.m.div,{ref:t,animate:"enter",exit:"exit",initial:"initial",style:u,variants:ie.y7.scaleSpringOpacity,...(0,r8.d)(s,r),children:n})})});ii.displayName="NextUI.FreeSoloPopoverWrapper";var il=(0,a.Gp)((e,t)=>{let{children:n,transformOrigin:r,disableDialogFocus:i=!1,...l}=e,{Component:o,state:a,placement:s,backdrop:u,portalContainer:d,disableAnimation:c,motionProps:f,isNonModal:g,getPopoverProps:v,getBackdropProps:h,getDialogProps:m,getContentProps:y}=(0,r5.S)({...l,ref:t}),b=p.useRef(null),{dialogProps:w,titleProps:E}=(0,it.R)({},b),x=m({...!i&&{ref:b},...w}),T=p.useMemo(()=>"transparent"===u?null:c?(0,t$.jsx)("div",{...h()}):(0,t$.jsx)(r3.X,{features:ir,children:(0,t$.jsx)(r9.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:ie.y7.fade,...h()})}),[u,c,h]);return(0,t$.jsxs)(r6.aV,{portalContainer:d,children:[!g&&T,(0,t$.jsx)(o,{...v(),children:(0,t$.jsxs)(ii,{disableAnimation:c,motionProps:f,placement:s,tabIndex:-1,transformOrigin:r,...x,children:[!g&&(0,t$.jsx)(r4.U,{onDismiss:a.close}),(0,t$.jsx)("div",{...y(),children:"function"==typeof n?n(E):n}),(0,t$.jsx)(r4.U,{onDismiss:a.close})]})})]})});
4il.displayName="NextUI.FreeSoloPopover";var io=({strokeWidth:e=1.5,...t})=>(0,t$.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:(0,t$.jsx)("path",{d:"m6 9 6 6 6-6"})}),ia=n(67198),is=(0,a.Gp)((e,t)=>{let{Component:n,children:r,getBaseProps:i}=function(e){var t;let[n,r]=(0,a.oe)(e,rJ.variantKeys),{ref:i,as:l,children:o,className:s,style:u,size:d=40,offset:f=0,visibility:g="auto",isEnabled:v=!0,onVisibilityChange:h,...m}=n,y=(0,c.gy)(i);!function(e={}){let{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:i="auto",offset:l=0,onVisibilityChange:o,updateDeps:a=[]}=e,s=(0,p.useRef)(i);(0,p.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!n)return;let a=(t,n,r,l,a)=>{if("auto"===i){let t=`${l}${(0,Q.kC)(a)}Scroll`;n&&r?(e.dataset[t]="true",e.removeAttribute(`data-${l}-scroll`),e.removeAttribute(`data-${a}-scroll`)):(e.dataset[`${l}Scroll`]=n.toString(),e.dataset[`${a}Scroll`]=r.toString(),e.removeAttribute(`data-${l}-${a}-scroll`))}else{let e=n&&r?"both":n?l:r?a:"none";e!==s.current&&(null==o||o(e),s.current=e)}},u=()=>{for(let{type:t,prefix:n,suffix:i}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(r===t||"both"===r){let r="vertical"===t?e.scrollTop>l:e.scrollLeft>l,o="vertical"===t?e.scrollTop+e.clientHeight+l<e.scrollHeight:e.scrollLeft+e.clientWidth+l<e.scrollWidth;a(t,r,o,n,i)}},d=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u),"auto"!==i&&(d(),"both"===i?(e.dataset.topBottomScroll=String("vertical"===r),e.dataset.leftRightScroll=String("horizontal"===r)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(i===t)}))),()=>{e.removeEventListener("scroll",u),d()}},[...a,n,i,r,o,t])}({domRef:y,offset:f,visibility:g,isEnabled:v,onVisibilityChange:h,updateDeps:[o],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let b=(0,p.useMemo)(()=>rJ({...r,className:s}),[(0,Q.Xx)(r),s]);return{Component:l||"div",styles:b,domRef:y,children:o,getBaseProps:function(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:y,className:b,"data-orientation":null!=(t=e.orientation)?t:"vertical",style:{"--scroll-shadow-size":"".concat(d,"px"),...u,...n.style},...m,...n}}}}({...e,ref:t});return(0,t$.jsx)(n,{...i(),children:r})});is.displayName="NextUI.ScrollShadow";var iu=n(53458),id=(0,a.Gp)(function(e,t){let{Component:n,state:r,label:i,hasHelper:l,isLoading:s,triggerRef:u,selectorIcon:v=(0,t$.jsx)(io,{}),description:y,errorMessage:b,isInvalid:w,startContent:E,endContent:x,placeholder:T,renderValue:M,shouldLabelBeOutside:S,disableAnimation:P,getBaseProps:k,getLabelProps:L,getTriggerProps:K,getValueProps:C,getListboxProps:D,getPopoverProps:z,getSpinnerProps:A,getMainWrapperProps:N,getInnerWrapperProps:_,getHiddenSelectProps:R,getHelperWrapperProps:j,getListboxWrapperProps:B,getDescriptionProps:H,getErrorMessageProps:V,getSelectorIconProps:G}=function(e){var t,n,r,i,l,s;let u=(0,o.w)(),{validationBehavior:v}=(0,tf.jn)(tp.q)||{},[y,b]=(0,a.oe)(e,d.variantKeys),w=null!=(n=null!=(t=e.disableAnimation)?t:null==u?void 0:u.disableAnimation)&&n,{ref:E,as:x,label:T,name:M,isLoading:S,selectorIcon:P,isOpen:k,defaultOpen:L,onOpenChange:K,startContent:C,endContent:D,description:z,renderValue:A,onSelectionChange:N,placeholder:_,isVirtualized:R,itemHeight:j=36,maxListboxHeight:B=256,children:H,disallowEmptySelection:V=!1,selectionMode:G="single",spinnerRef:et,scrollRef:en,popoverProps:el={},scrollShadowProps:eo={},listboxProps:ea={},spinnerProps:eg={},validationState:ex,onChange:eT,onClose:eS,className:eP,classNames:eO,validationBehavior:eD=null!=(r=null!=v?v:null==u?void 0:u.validationBehavior)?r:"native",hideEmptyContent:eF=!1,...ez}=y,eA=(0,c.gy)(en),eN={popoverProps:er({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:w},el),scrollShadowProps:er({ref:eA,isEnabled:null==(i=e.showScrollIndicators)||i,hideScrollBar:!0,offset:15},eo),listboxProps:er({disableAnimation:w},ea)},eW=x||"button",e_="string"==typeof eW,eR=(0,c.gy)(E),ej=(0,p.useRef)(null),eB=(0,p.useRef)(null),eH=(0,p.useRef)(null),eV=function({validate:e,validationBehavior:t,...n}){let[r,i]=(0,p.useState)(!1),[l,o]=(0,p.useState)(null),a=(0,ep.W)(n),s=function(e){let{c
4ollection:t,disabledKeys:n,selectionManager:r,selectionManager:{setSelectedKeys:i,selectedKeys:l,selectionMode:o}}=function(e){let{filter:t,layoutDelegate:n}=e,r=(0,ed.q)(e),i=(0,p.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=(0,p.useCallback)(e=>new eu(t?t(e):e),[t]),o=(0,p.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=(0,ef.K)(e,l,o),s=(0,p.useMemo)(()=>new ec.Z(a,r,{layoutDelegate:n}),[a,r,n]),u=(0,p.useRef)(null);return(0,p.useEffect)(()=>{if(null!=r.focusedKey&&!a.getItem(r.focusedKey)&&u.current){var e,t,n,i,l,o,d;let c=u.current.getItem(r.focusedKey),f=[...u.current.getKeys()].map(e=>{let t=u.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),p=[...a.getKeys()].map(e=>{let t=a.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),g=(null!==(e=null==f?void 0:f.length)&&void 0!==e?e:0)-(null!==(t=null==p?void 0:p.length)&&void 0!==t?t:0),v=Math.min(g>1?Math.max((null!==(n=null==c?void 0:c.index)&&void 0!==n?n:0)-g+1,0):null!==(i=null==c?void 0:c.index)&&void 0!==i?i:0,(null!==(l=null==p?void 0:p.length)&&void 0!==l?l:0)-1),h=null,m=!1;for(;v>=0;){if(!s.isDisabled(p[v].key)){h=p[v];break}v<p.length-1&&!m?v++:(m=!0,v>(null!==(o=null==c?void 0:c.index)&&void 0!==o?o:0)&&(v=null!==(d=null==c?void 0:c.index)&&void 0!==d?d:0),v--)}r.setFocusedKey(h?h.key:null)}u.current=a},[a,s,r,r.focusedKey]),{collection:a,disabledKeys:i,selectionManager:s}}(e),a=(0,p.useMemo)(()=>e.isLoading||0===l.size?[]:Array.from(l).filter(Boolean).filter(e=>!t.getItem(e)),[l,t]),s=0!==l.size?Array.from(l).map(e=>t.getItem(e)).filter(Boolean):null;return a.length&&console.warn(`Select: Keys "${a.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:n,selectionManager:r,selectionMode:o,selectedKeys:l,setSelectedKeys:i.bind(r),selectedItems:s}}({...n,onSelectionChange:e=>{null!=n.onSelectionChange&&("all"===e?n.onSelectionChange(new Set(s.collection.getKeys())):n.onSelectionChange(e)),"single"===n.selectionMode&&a.close()}}),u=function(e){if(e[ey]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:l}=e[ey];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:l}}return function(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:l,validate:o,validationBehavior:a="aria"}=e;n&&(t||(t="invalid"===n));let s=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:ev}:null,u=(0,p.useMemo)(()=>o&&null!=i?ew(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return eb(n)}return[]}(o,i)):null,[o,i]);(null==l?void 0:l.validationDetails.valid)&&(l=void 0);let d=(0,p.useContext)(em),c=(0,p.useMemo)(()=>r?Array.isArray(r)?r.flatMap(e=>eb(d[e])):eb(d[r]):[],[d,r]),[f,g]=(0,p.useState)(d),[v,h]=(0,p.useState)(!1);d!==f&&(g(d),h(!1));let m=(0,p.useMemo)(()=>ew(v?[]:c),[v,c]),y=(0,p.useRef)(eh),[b,w]=(0,p.useState)(eh),E=(0,p.useRef)(eh),[x,T]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{if(!x)return;T(!1);let e=u||l||y.current;eE(e,E.current)||(E.current=e,w(e))}),{realtimeValidation:s||m||u||l||eh,displayValidation:"native"===a?s||m||b:s||m||u||l||b,updateValidation(e){"aria"!==a||eE(b,e)?y.current=e:w(e)},resetValidation(){eE(eh,E.current)||(E.current=eh,w(eh)),"native"===a&&T(!1),h(!0)},commitValidation(){"native"===a&&T(!0),h(!0)}}}(e)}({...n,validationBehavior:t,validate:t=>{if(!e)return;let r=Array.from(t);return e("single"===n.selectionMode?r[0]:r)},value:s.selectedKeys}),d=0===s.collection.size&&n.hideEmptyContent;return{...u,...s,...a,focusStrategy:l,close(){a.close()},open(e=null){d||(o(e),a.open())},toggle(e=null){d||(o(e),a.toggle())},isFocused:r,setFocused:i}}({...y,isOpen:k,selectionMode:G,disallowEmptySelection:V,validationBehavior:eD,children:H,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:L,hideEmptyContent:eF,onOpenChange:e=>{null==K||K(e),e||null==eS||eS()},onSelectionChange:e=>{null==N||N(e),eT&&"function"==typeof eT&&eT({target:{...eR.current&&{...eR.current,name:eR.current.name},value:Array.from(e).join(",")}}),eV.commitValidation()}});eV={...eV,...e.isDisabled&&{disabledKeys:new Set([...eV.collection.getKeys()])}},(0,td.G)(()=>{var e;(null==(e=eR.current)?void 0:e.value)&&eV.setSelectedKeys(new Set([...eV.selectedKeys,eR.current.value]))},[eR.current]);let{labelProps:eU,triggerProps:eG,valueProps:eq,menuProps:eX,descriptionProps:eY,errorMessageProps:eZ,isInvalid:eJ,validationErrors:eQ,validationDetail
4s:e0}=function(e,t,n){let{disallowEmptySelection:r,isDisabled:i}=e,l=function(e){let t;let{locale:n}=(t=function(){let e=(0,eM.Av)(),[t,n]=(0,p.useState)(ek);return((0,p.useEffect)(()=>(0===eL.size&&window.addEventListener("languagechange",eK),eL.add(n),()=>{eL.delete(n),0===eL.size&&window.removeEventListener("languagechange",eK)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}(),(0,p.useContext)(eC)||t),r=n+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(eI.has(r))return eI.get(r);let i=new Intl.Collator(n,e);return eI.set(r,i),i}({usage:"search",sensitivity:"base"}),o=(0,p.useMemo)(()=>new te(t.collection,t.disabledKeys,null,l),[t.collection,t.disabledKeys,l]),{menuTriggerProps:a,menuProps:s}=(0,e9.u)({isDisabled:i,type:"listbox"},t,n),{typeSelectProps:u}=function(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,p.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var l;let o=1!==(l=e.key).length&&/^[A-Z]/i.test(l)?"":l;if(o&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)){if(" "!==o||!(i.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o,null!=t.getKeyForSearch){let e=t.getKeyForSearch(i.search,n.focusedKey);null==e&&(e=t.getKeyForSearch(i.search)),null!=e&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},1e3)}}:void 0}}}({keyboardDelegate:o,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKeys([e])}}),{isInvalid:d,validationErrors:c,validationDetails:f}=t.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:h,errorMessageProps:m}=function(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:l,fieldProps:o}=function(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:l="label"}=e;t=e6(t);let o=e6(),a={};return n?(r=r?`${o} ${r}`:o,a={id:o,htmlFor:"label"===l?t:void 0}):r||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:a,fieldProps:function(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=e6(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),{id:n,"aria-label":r,"aria-labelledby":i}}({id:t,"aria-label":i,"aria-labelledby":r})}}(e),a=e4([!!t,!!n,r,i]),s=e4([!!t,!!n,r,i]);return{labelProps:l,fieldProps:o=function(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=function(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}(n,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof i?t[e]=e3(n,i):"id"===e&&n&&i?t.id=function(e,t){if(e===t)return e;let n=e5.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=e5.get(t);return r?(r.forEach(t=>t.current=e),e):t}(n,i):t[e]=void 0!==i?i:n}}return t}(o,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:a},errorMessageProps:{id:s}}}({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||c});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture;let y=function(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,l={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(tt.has(t)||n&&tn.has(t)||r&&tr.has(t)||(null==i?void 0:i.has(t))||ti.test(t))&&(l[t]=e[t]);return l}(e,{labelable:!0}),b=tu(u,a,v),w=function(e){let[t,n]=(0,p.useState)(void 0),r=(0,p.useRef)(null),i=(0,eM.gP)(t),l=(0,p.useCallback)(e=>{r.current=e},[]);return ta&&(ts.has(i)&&!ts.get(i).includes(l)?ts.set(i,[...ts.get(i),l]):ts.set(i,[l])),to(()=>()=>{ts.delete(i)},[i]),(0,p.useEffect)(()=>{let e=r.current;e&&(r.current=null,n(e))}),i}();return{labelProps:{...g,onClick:()=>{var t;e.isDisabled||(null==(t=n.current)||t.focus(),e$("keyboard",null))}},triggerProps:tu(y,{...b,onKeyDown:tl(b.onKeyDown,e=>{if("single"===t.selectionMode)switch(e.key){case"ArrowLeft":{e.preventDefault();let n=t.selectedKeys.size>
40?o.getKeyAbove(t.selectedKeys.values().next().value):o.getFirstKey();n&&t.setSelectedKeys([n]);break}case"ArrowRight":{e.preventDefault();let n=t.selectedKeys.size>0?o.getKeyBelow(t.selectedKeys.values().next().value):o.getFirstKey();n&&t.setSelectedKeys([n])}}},e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[w,void 0!==y["aria-label"]?void 0!==y["aria-labelledby"]?y["aria-labelledby"]:b.id:b["aria-labelledby"]].join(" "),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),t.setFocused(!1))}}),valueProps:{id:w},menuProps:{...s,disallowEmptySelection:r,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:n=>{n.currentTarget.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},onFocus:null==s?void 0:s.onFocus,"aria-labelledby":[v["aria-labelledby"],b["aria-label"]&&!v["aria-labelledby"]?b.id:null].filter(Boolean).join(" ")},descriptionProps:h,errorMessageProps:m,isInvalid:d,validationErrors:c,validationDetails:f}}({...y,disallowEmptySelection:V,isDisabled:e.isDisabled},eV,ej),e1=e.isInvalid||"invalid"===ex||eJ,{isPressed:e2,buttonProps:e8}=(0,g.j)(eG,ej),{focusProps:e7,isFocused:tv,isFocusVisible:th}=function(e={}){var t,n,r;let{autoFocus:i=!1,isTextInput:l,within:o}=e,a=(0,p.useRef)({isFocused:!1,isFocusVisible:i||$()}),[s,u]=(0,p.useState)(!1),[d,c]=(0,p.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),f=(0,p.useCallback)(()=>c(a.current.isFocused&&a.current.isFocusVisible),[]),g=(0,p.useCallback)(e=>{a.current.isFocused=e,u(e),f()},[f]);t=e=>{a.current.isFocusVisible=e,f()},n=[],r={isTextInput:l},U(),(0,p.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){let r=I(null==n?void 0:n.target),i="undefined"!=typeof window?O(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,l="undefined"!=typeof window?O(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?O(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?O(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof i&&!q.has(r.activeElement.type)||r.activeElement instanceof l||r.activeElement instanceof o&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof a&&!W[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t($())};return F.add(e),()=>{F.delete(e)}},n);let{focusProps:v}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,l=(0,p.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=m(l),a=(0,p.useCallback)(e=>{let t=I(e.target),r=t?Y(t):Y();e.target===e.currentTarget&&r===Z(e.nativeEvent)&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?l:void 0}}}({isDisabled:o,onFocusChange:g}),{focusWithinProps:y}=function(e){let t,n,r,i,{isDisabled:l,onBlurWithin:o,onFocusWithin:a,onFocusWithinChange:s}=e,u=(0,p.useRef)({isFocusWithin:!1}),{addGlobalListener:d,removeAllGlobalListeners:c}=(t=(0,p.useRef)(new Map),n=(0,p.useCallback)((e,n,r,i)=>{let l=(null==i?void 0:i.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:l,options:i}),e.addEventListener(n,l,i)},[]),r=(0,p.useCallback)((e,n,r,i)=>{var l;let o=(null===(l=t.current.get(r))||void 0===l?void 0:l.fn)||r;e.removeEventListener(n,o,i),t.current.delete(r)},[]),i=(0,p.useCallback)(()=>{t.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]),(0,p.useEffect)(()=>i,[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}),f=(0,p.useCallback)(e=>{e.currentTarget.contains(e.target)&&u.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(u.current.isFocusWithin=!1,c(),o&&o(e),s&&s(!1))},[o,s,u,c]),g=m(f),v=(0,p.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=I(e.target),n=Y(t);if(!u.current.isFocusWithin&&n===Z(e.nativeEvent)){a&&a(e),s&&s(!0),u.current.isFocusWithin=!0,g(e);let n=e.currentTarget;d(t,"focus",e=>{if(u.current.isFocusWithin&&!function(e,t){if(!(0,X.Wr)())return!!t&&!!e&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){var r;if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:null!==(r=n)&&"object"==typeof r&&"n
4odeType"in r&&"number"==typeof r.nodeType&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in r?n.host:n.parentNode}return!1}(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(r,"target",{value:n}),Object.defineProperty(r,"currentTarget",{value:n}),f(h(r))}},{capture:!0})}},[a,s,g,d,f]);return l?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:f}}}({isDisabled:!o,onFocusWithinChange:g});return{isFocused:s,isFocusVisible:d,focusProps:o?y:v}}(),{isHovered:tm,hoverProps:ty}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[l,o]=(0,p.useState)(!1),a=(0,p.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,p.useEffect)(es,[]);let{hoverProps:s,triggerHoverEnd:u}=(0,p.useMemo)(()=>{let e=(e,r)=>{if(a.pointerType=r,i||"touch"===r||a.isHovered||!e.currentTarget.contains(e.target))return;a.isHovered=!0;let l=e.currentTarget;a.target=l,t&&t({type:"hoverstart",target:l,pointerType:r}),n&&n(!0),o(!0)},l=(e,t)=>{if(a.pointerType="",a.target=null,"touch"===t||!a.isHovered)return;a.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),o(!1)},s={};return"undefined"!=typeof PointerEvent?(s.onPointerEnter=t=>{ei&&"mouse"===t.pointerType||e(t,t.pointerType)},s.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&l(e,e.pointerType)}):(s.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},s.onMouseEnter=t=>{a.ignoreEmulatedMouseEvents||ei||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},s.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&l(e,"mouse")}),{hoverProps:s,triggerHoverEnd:l}},[t,n,r,i,a]);return(0,p.useEffect)(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:s,isHovered:l}}({isDisabled:e.isDisabled}),tb=(0,p.useMemo)(()=>{var t;return e.labelPlacement&&"inside"!==e.labelPlacement||T?null!=(t=e.labelPlacement)?t:"inside":"outside"},[e.labelPlacement,T]),tw=!!_,tE="outside-left"===tb||"outside"===tb&&(!(tw||z)||!!e.isMultiline),tx="inside"===tb,tT="outside-left"===tb,tM=eV.isOpen||tw||!!(null==(l=eV.selectedItems)?void 0:l.length)||!!C||!!D||!!e.isMultiline,tS=!!(null==(s=eV.selectedItems)?void 0:s.length),tP=!!T,tk=(0,J.W)(null==eO?void 0:eO.base,eP),tL=(0,p.useMemo)(()=>d({...b,isInvalid:e1,labelPlacement:tb,disableAnimation:w,className:eP}),[(0,Q.Xx)(b),e1,tb,w,eP]);(0,p.useEffect)(()=>{if(eV.isOpen&&eH.current&&eB.current){let e=eB.current.querySelector("[aria-selected=true] [data-label=true]"),t=eA.current;if(e&&t&&e.parentElement){let n=(null==t?void 0:t.getBoundingClientRect()).height;t.scrollTop=e.parentElement.offsetTop-n/2+e.parentElement.clientHeight/2}}},[eV.isOpen,w]);let tK="function"==typeof y.errorMessage?y.errorMessage({isInvalid:e1,validationErrors:eQ,validationDetails:e0}):y.errorMessage||(null==eQ?void 0:eQ.join(" ")),tC=!!z||!!tK;(0,p.useEffect)(()=>{if(eV.isOpen&&eH.current&&ej.current){let e=ej.current.getBoundingClientRect();eH.current.style.width=e.width+"px"}},[eV.isOpen]);let tI=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"base","data-filled":(0,ee.PB)(tM),"data-has-value":(0,ee.PB)(tS),"data-has-label":(0,ee.PB)(tP),"data-has-helper":(0,ee.PB)(tC),"data-invalid":(0,ee.PB)(e1),className:tL.base({class:(0,J.W)(tk,e.className)}),...e}},[tL,tC,tS,tP,tM,tk]),tO=(0,p.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:ej,"data-slot":"trigger","data-open":(0,ee.PB)(eV.isOpen),"data-disabled":(0,ee.PB)(null==e?void 0:e.isDisabled),"data-focus":(0,ee.PB)(tv),"data-pressed":(0,ee.PB)(e2),"data-focus-visible":(0,ee.PB)(th),"data-hover":(0,ee.PB)(tm),className:tL.trigger({class:null==eO?void 0:eO.trigger}),...er(e8,e7,ty,(0,f.z)(ez,{enabled:e_}),(0,f.z)(t))}},[tL,ej,eV.isOpen,null==eO?void 0:eO.trigger,null==e?void 0:e.isDisabled,tv,e2,th,tm,e8,e7,ty,ez,e_]),tD=(0,p.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{state:eV,triggerRef:ej,selectRef:eR,selectionMode:G,label:null==e?void 0:e.label,name:null==e?void 0:e.name,isRequired:null==e?void 0:e.isRequired,autoComplete:null==e?void 0:e.autoComplete,isDisabled:null==e?void 0:e.isDisabled,onChange:eT,...t}},[eV,G,null==e?void 0:e.label,null==e?void 0:e.autoComplete,null==e?void 0:e.name,null==e?void 0:e.isDisabled,ej]),tF=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"label",className:tL.label({class:(0,J.W)(null==eO?void 0:eO.label,e.className)}),...eU,...e}},[tL,null==eO?void 0:eO.label,eU]),tz=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"value",className:tL.value({class:(0,J.W)(null==eO?void 0:eO.value,e.className)}),...eq,...e}},[tL,null==eO?void 0:eO.value,eq]),tA=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"listboxWrapper",className:tL.listboxWrapper({class:(0,J.W)(null==eO?void 0:eO.listboxWrapper,null==e?void 0:e.className)}),style:{maxHeight:null!=B?B:256,...e.style},...er(eN.scrollShadowProps,e)}},[tL.listboxWrapper,null==eO?void 0:eO.listboxWrapper,eN.scrollShadowProps,B]),tN=(0,p.useCallback)(function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=er(eN.popoverProps,n);return{state:eV,triggerRef:ej,ref:eH,"data-slot":"popover",scrollRef:eB,triggerType:"listbox",classNames:{content:tL.popoverContent({class:(0,J.W)(null==eO?void 0:eO.popoverContent,n.className)})},...r,offset:eV.selectedItems&&eV.selectedItems.length>0?1e-8*eV.selectedItems.length+((null==(e=eN.popoverProps)?void 0:e.offset)||0):null==(t=eN.popoverProps)?void 0:t.offset,shouldCloseOnInteractOutside:(null==r?void 0:r.shouldCloseOnInteractOutside)?r.shouldCloseOnInteractOutside:e=>(0,tc.J)(e,eR,eV)}},[tL,null==eO?void 0:eO.popoverContent,eN.popoverProps,ej,eV,eV.selectedItems]),tW=(0,p.useCallback)(()=>({"data-slot":"selectorIcon","aria-hidden":(0,ee.PB)(!0),"data-open":(0,ee.PB)(eV.isOpen),className:tL.selectorIcon({class:null==eO?void 0:eO.selectorIcon})}),[tL,null==eO?void 0:eO.selectorIcon,eV.isOpen]),t_=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"innerWrapper",className:tL.innerWrapper({class:(0,J.W)(null==eO?void 0:eO.innerWrapper,null==e?void 0:e.className)})}},[tL,null==eO?void 0:eO.innerWrapper]),tR=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"helperWrapper",className:tL.helperWrapper({class:(0,J.W)(null==eO?void 0:eO.helperWrapper,null==e?void 0:e.className)})}},[tL,null==eO?void 0:eO.helperWrapper]),tj=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,...eY,"data-slot":"description",className:tL.description({class:(0,J.W)(null==eO?void 0:eO.description,null==e?void 0:e.className)})}},[tL,null==eO?void 0:eO.description]),tB=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"mainWrapper",className:tL.mainWrapper({class:(0,J.W)(null==eO?void 0:eO.mainWrapper,null==e?void 0:e.className)})}},[tL,null==eO?void 0:eO.mainWrapper]),tH=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,...eZ,"data-slot":"error-message",className:tL.errorMessage({class:(0,J.W)(null==eO?void 0:eO.errorMessage,null==e?void 0:e.className)})}},[tL,eZ,null==eO?void 0:eO.errorMessage]),tV=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":(0,ee.PB)(!0),"data-slot":"spinner",color:"current",size:"sm",...eg,...e,ref:et,className:tL.spinner({class:(0,J.W)(null==eO?void 0:eO.spinner,null==e?void 0:e.className)})}},[tL,et,eg,null==eO?void 0:eO.spinner]);return tg.set(eV,{isDisabled:null==e?void 0:e.isDisabled,isRequired:null==e?void 0:e.isRequired,name:null==e?void 0:e.name,isInvalid:e1,validationBehavior:eD}),{Component:eW,domRef:eR,state:eV,label:T,name:M,triggerRef:ej,isLoading:S,placeholder:_,startContent:C,endContent:D,description:z,selectorIcon:P,hasHelper:tC,labelPlacement:tb,hasPlaceholder:tw,renderValue:A,selectionMode:G,disableAnimation:w,isOutsideLeft:tT,shouldLabelBeOutside:tE,shouldLabelBeInside:tx,isInvalid:e1,errorMessage:tK,getBaseProps:tI,getTriggerProps:tO,getLabelProps:tF,getValueProps:tz,getListboxProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null!=R?R:eV.collection.size>50;return{state:eV,ref:eB,isVirtualized:t,virtualization:t?{maxListboxHeight:B,itemHeight:j}:void 0,"data-slot":"listbox",className:tL.listbox({class:(0,J.W)(null==eO?void 0:eO.listbox,null==e?void 0:e.className)}),scrollShadowProps:eN.scrollShadowProps,...er(eN.listboxProps,e,eX)}},getPopoverProps:tN,getSpinnerProps:tV,getMainWrapperProps:tB,getListboxWrapperProps:tA,getHiddenSelectProps:tD,getInnerWrapperProps:t_,getHelperWrapperProps:tR,getDescriptionProps:tj,getErrorMessageProps:tH,getSelectorIconProps:tW}}({...e,ref:t}),et=i?(0,t$.jsx)("label",{...L(),children:i}):null,en=(0,p.cloneElement)(v,G()),el=(0,p.useMemo)(()=>{let e=w&&b,t=e||y;return l&&t?(0,t$.jsx)("div",{...j(),children:e?(0,t$.jsx)("div",{...V(),children:b}):(0,t$.jsx)("div",{...H(),children:y})}):null},[l,w,b,y,j,V,H]),eo=(0,p.useMemo)(()=>{var e;return(null==(e=r.selectedItems)?void 0:e.length)?M&&"function"==typeof M?M([...r.selectedItems].map(e=>({key:e.key,data:e.value,type:e.type,props:e.props,textValue:e.textValue,rendered:e.rendered,"aria-label":e["aria-label"]}))):r.selectedItems.map(e=>e.textValue).join(", "):T},[r.selectedItems,M,T]),ea=(0,p.useMemo)(()=>s?(0,t$.jsx)(ia.c,{...A()}):en,[s,en,A]),eg=(0,p.useMemo)(()=>r.isOpen?(0,t$.jsx)(il,{...z(),children:(0,t$.jsx)(is,{...B(),children:(0,t$.jsx)(r2,{...D()})})}):null,[r.isOpen,z,r,u,B,D]);return(0,t$.jsxs)("div",{...k(),children:[(0,t$.jsx)(tq,{...R()}),S?et:null,(0,t$.jsxs)("div",{...N(),children:[(0,t$.jsxs)(n,{...K(),children:[S?null:et,(0,t$.jsxs)("div",{..._(),children:[E,(0,t$.jsx)("span",{...C(),children:eo}),x&&r.selectedItems&&(0,t$.jsx)(th.T,{elementType:"span",children:","}),x]}),ea]}),el]}),P?eg:(0,t$.jsx)(iu.M,{children:eg})]})})},63937:function(e,t,n){"use strict";n.d(t,{S:function(){return a},T:function(){return s}});var r=n(82457),i=n(2265),l=n(36665);let o={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function a(e={}){let{style:t,isFocusable:n}=e,[r,a]=(0,i.useState)(!1),{focusWithinProps:s}=(0,l.L)({isDisabled:!n,onFocusWithinChange:e=>a(e)}),u=(0,i.useMemo)(()=>r?t:t?{...o,...t}:o,[r]);return{visuallyHiddenProps:{...s,style:u}}}function s(e){let{children:t,elementType:n="div",isFocusable:l,style:o,...s}=e,{visuallyHiddenProps:u}=a(e);return i.createElement(n,(0,r.d)(s,u),t)}},24899:function(e,t,n){"use strict";var r=n(36720),i=n(62958);t.Z=function(e){return(0,i.Z)((0,r.Z)(e).toLowerCase())}},6937:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(38502),i=1/0,l=function(e){var t,n=(t=e)?(t=(0,r.Z)(t))===i||t===-i?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0,l=n%1;return n==n?l?n-l:n:0}},38502:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=/\s/,i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t},l=/^\s+/,o=n(7632),a=n(82245),s=0/0,u=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,p=function(e){if("number"==typeof e)return e;if((0,a.Z)(e))return s;if((0,o.Z)(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=(0,o.Z)(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,i(t)+1).replace(l,""):t;var r=d.test(e);return r||c.test(e)?f(e.slice(2),r?2:8):u.test(e)?s:+e}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.