1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7429,6421],{44261:function(e,t,n){var o=n(26170);n.o(o,"notFound")&&n.d(t,{notFound:function(){return o.notFound}}),n.o(o,"redirect")&&n.d(t,{redirect:function(){return o.redirect}}),n.o(o,"useParams")&&n.d(t,{useParams:function(){return o.useParams}}),n.o(o,"usePathname")&&n.d(t,{usePathname:function(){return o.usePathname}}),n.o(o,"useRouter")&&n.d(t,{useRouter:function(){return o.useRouter}}),n.o(o,"useSearchParams")&&n.d(t,{useSearchParams:function(){return o.useSearchParams}})},33558:function(e,t,n){n.d(t,{default:function(){return r.a}});var o=n(26421),r=n.n(o)},92765:function(e,t){let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DOMAttributeNames:function(){return o},default:function(){return l},isEqualNode:function(){return i}});let o={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function r(e){let{type:t,props:n}=e,r=document.createElement(t);for(let e in n){if(!n.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===n[e])continue;let i=o[e]||e.toLowerCase();"script"===t&&("async"===i||"defer"===i||"noModule"===i)?r[i]=!!n[e]:r.setAttribute(i,n[e])}let{children:i,dangerouslySetInnerHTML:l}=n;return l?r.innerHTML=l.__html||"":i&&(r.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):""),r}function i(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){let o=t.cloneNode(!0);return o.setAttribute("nonce",""),o.nonce=n,n===e.nonce&&e.isEqualNode(o)}}return e.isEqualNode(t)}function l(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let o=t.title?t.title[0]:null,r="";if(o){let{children:e}=o.props;r="string"==typeof e?e:Array.isArray(e)?e.join(""):""}r!==document.title&&(document.title=r),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],o=n.querySelector("meta[name=next-head-count]"),l=Number(o.content),s=[];for(let t=0,n=o.previousElementSibling;t<l;t++,n=(null==n?void 0:n.previousElementSibling)||null){var a;(null==n?void 0:null==(a=n.tagName)?void 0:a.toLowerCase())===e&&s.push(n)}let u=t.map(r).filter(e=>{for(let t=0,n=s.length;t<n;t++)if(i(s[t],e))return s.splice(t,1),!1;return!0});s.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),u.forEach(e=>n.insertBefore(e,o)),o.content=(l-s.length+u.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26421:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return S},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return g}});let o=n(44463),r=n(20336),i=n(67251),l=o._(n(52509)),s=r._(n(45113)),a=n(15762),u=n(92765),c=n(95665),d=new Map,p=new Set,f=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],h=e=>{if(l.default.preinit){e.forEach(e=>{l.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}},m=e=>{let{src:t,id:n,onLoad:o=()=>{},onReady:r=null,dangerouslySetInnerHTML:i,children:l="",strategy:s="afterInteractive",onError:a,stylesheets:c}=e,m=n||t;if(m&&p.has(m))return;if(d.has(t)){p.add(m),d.get(t).then(o,a);return}let v=()=>{r&&r(),p.add(m)},g=document.createElement("script"),b=new Promise((e,t)=>
1{g.addEventListener("load",function(t){e(),o&&o.call(this,t),v()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){a&&a(e)});for(let[n,o]of(i?(g.innerHTML=i.__html||"",v()):l?(g.textContent="string"==typeof l?l:Array.isArray(l)?l.join(""):"",v()):t&&(g.src=t,d.set(t,b)),Object.entries(e))){if(void 0===o||f.includes(n))continue;let e=u.DOMAttributeNames[n]||n.toLowerCase();g.setAttribute(e,o)}"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),c&&h(c),document.body.appendChild(g)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function g(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function b(e){let{id:t,src:n="",onLoad:o=()=>{},onReady:r=null,strategy:u="afterInteractive",onError:d,stylesheets:f,...h}=e,{updateScripts:v,scripts:g,getIsSsr:b,appDir:S,nonce:x}=(0,s.useContext)(a.HeadManagerContext),y=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||n;y.current||(r&&e&&p.has(e)&&r(),y.current=!0)},[r,t,n]);let E=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{!E.current&&("afterInteractive"===u?m(e):"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,u]),("beforeInteractive"===u||"worker"===u)&&(v?(g[u]=(g[u]||[]).concat([{id:t,src:n,onLoad:o,onReady:r,onError:d,...h}]),v(g)):b&&b()?p.add(t||n):b&&!b()&&m(e)),S){if(f&&f.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)return n?(l.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:x,crossOrigin:h.crossOrigin}:{as:"script",nonce:x,crossOrigin:h.crossOrigin}),(0,i.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...h,id:t}])+")"}})):(h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...h,id:t}])+")"}}));"afterInteractive"===u&&n&&l.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:x,crossOrigin:h.crossOrigin}:{as:"script",nonce:x,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let S=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24529:function(e,t,n){n.r(t),n.d(t,{Checkbox:function(){return y}});var o=n(40871),r=n(98710),i=n(45113),l=n(92697),s=n(97099),a=n(99664),u=n(88320),c=n(50659),d=n(10823),p=n(55155),f=n(46168),h=n(92842),m=n(96241),v=n(65117),g=n(92426),b=n(61447),S=n(29111),x=n(23934);let y=(0,g.yV)(function(e,t){let n=(0,i.useId)(),y=(0,h.Q)(),E=(0,p.B)(),{id:O=y||"headlessui-checkbox-".concat(n),disabled:T=E||!1,autoFocus:I=!1,checked:P,defaultChecked:C,onChange:M,name:R,value:w,form:k,indeterminate:A=!1,tabIndex:F=0,...D}=e,L=(0,a.L)(C),[_,z]=(0,s.q)(P,M,null!=L&&L),V=(0,x.wp)(),j=(0,b.z)(),B=(0,u.G)(),[N,G]=(0,i.useState)(!1),H=(0,c.z)(()=>{G(!0),null==z||z(!_),B.nextFrame(()=>{G(!1)})}),W=(0,c.z)(e=>{if((0,m.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),H()}),q=(0,c.z)(e=>{e.key===S.R.Space?(e.preventDefault(),H()):e.key===S.R.Enter&&(0,v.g)(e.currentTarget)}),U=(0,c.z)(e=>e.preventDefault()),{isFocusVisible:K,focusProps:J}=(0,o.F)({autoFocus:I}),{isHovered:Z,hoverProps:X}=(0,r.X)({isDisabled:T}),{pressed:$,pressProps:Q}=(0,l.x)({disabled:T}),Y=(0,g.dG)({ref:t,id:O,role:"checkbox","aria-checked":A?"mixed":_?"true":"false","aria-labelledby":V,"aria-describedby":j,"aria-disabled":!!T||void 0,indeterminate:A?"true":void 0,tabIndex:T?void 0:F,onKeyUp:T?void 0:q,onKeyPress:T?void 0:U,onClick:T?void 0:W},J,X,Q),ee=(0,d.x)({checked:_,disabled:T,hover:Z,focus:K,active:$,indeterminate:A,changing:N,autofocus:I}),et=(0,i.useCallback)(()=>
1{if(void 0!==L)return null==z?void 0:z(L)},[z,L]),en=(0,g.L6)();return i.createElement(i.Fragment,null,null!=R&&i.createElement(f.Mt,{disabled:T,data:{[R]:w||"on"},overrides:{type:"checkbox",checked:_},form:k,onReset:et}),en({ourProps:Y,theirProps:D,slot:ee,defaultTag:"span",name:"Checkbox"}))})},26607:function(e,t,n){n.r(t),n.d(t,{CloseButton:function(){return s}});var o=n(45113),r=n(79191),i=n(92426),l=n(36172);let s=(0,i.yV)(function(e,t){let n=(0,r.useClose)();return o.createElement(l.Button,{ref:t,...(0,i.dG)({onClick:n},e)})})},39920:function(e,t,n){let o,r,i,l,s;n.r(t),n.d(t,{Combobox:function(){return e$},ComboboxButton:function(){return eU},ComboboxInput:function(){return eK},ComboboxLabel:function(){return eJ},ComboboxOption:function(){return eX},ComboboxOptions:function(){return eZ}});var a=n(40871),u=n(98710),c=n(45113),d=n(52509);function p(e,t,n){let o,r=n.initialDeps??[],i=!0;function l(){let l=e();return(l.length!==r.length||l.some((e,t)=>r[t]!==e))&&(r=l,o=t(...l),(null==n?void 0:n.onChange)&&!(i&&n.skipInitialOnChange)&&n.onChange(o),i=!1),o}return l.updateDeps=e=>{r=e},l}function f(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let h=(e,t)=>1.01>Math.abs(e-t),m=(e,t,n)=>{let o;return Object.assign(function(...r){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,r),n)},{cancel:()=>{e.clearTimeout(o)}})},v=()=>{if(void 0!==o)return o;if("undefined"==typeof navigator)return o=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return o=!0;let e=navigator.maxTouchPoints;return o="MacIntel"===navigator.platform&&void 0!==e&&e>0},g=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},b=e=>e,S=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,o=Array(n);for(let e=0;e<n;e++)o[e]=t+e;return o},x=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e.targetWindow;if(!o)return;let r=e=>{let{width:n,height:o}=e;t({width:Math.round(n),height:Math.round(o)})};if(r(g(n)),!o.ResizeObserver)return()=>{};let i=new o.ResizeObserver(t=>{let o=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t){r({width:t.inlineSize,height:t.blockSize});return}}r(g(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},y={passive:!0},E="undefined"==typeof window||"onscrollend"in window,O=(e,t,n)=>{let o=e.scrollElement;if(!o)return;let r=e.targetWindow;if(!r)return;let i=e.options.useScrollendEvent&&E,l=0,s=i?null:m(r,()=>t(l,!1),e.options.isScrollingResetDelay),a=e=>()=>{l=n(o),null==s||s(),t(l,e)},u=a(!0),c=a(!1);return o.addEventListener("scroll",u,y),i&&o.addEventListener("scrollend",c,y),()=>{o.removeEventListener("scroll",u),i&&o.removeEventListener("scrollend",c),null==s||s.cancel()}},T=(e,t)=>O(e,t,t=>{let{horizontal:n,isRtl:o}=e.options;return n?t.scrollLeft*(o&&-1||1):t.scrollTop}),I=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),o=n.options.getItemKey(t);return n.itemSizeCache.get(o)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=n.indexFromElement(e),o=n.options.getItemKey(t),r=n.itemSizeCache.get(o);if(void 0!==r)return r}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},P=(e,{adjustments:t=0,behavior:n},o)=>{var r,i;null==(i=null==(r=o.scrollElement)?void 0:r.scrollTo)||i.call(r,{[o.options.horizontal?"left":"top"]:e+t,behavior:n})};class C{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>
1{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){for(let[e,n]of(this.observer.unobserve(t),this.elementsCache))if(n===t){this.elementsCache.delete(e);break}return}this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):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=>{var t,n;let o={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:b,rangeExtractor:S,onChange:()=>{},measureElement:I,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let n=e[t];void 0!==n&&(o[t]=n)}let r=this.options,i=null,l=null,s=!1;if(void 0!==r&&r.enabled&&o.enabled&&"end"===o.anchorTo&&null!==this.scrollElement){let e=r.count,a=o.count,u=this.getMeasurements(),c=e>0?(null==(t=u[0])?void 0:t.key)??r.getItemKey(0):null,d=e>0?(null==(n=u[e-1])?void 0:n.key)??r.getItemKey(e-1):null;if(a!==e||e>0&&a>0&&(o.getItemKey(0)!==c||o.getItemKey(a-1)!==d)){s=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??u[0]:null;t&&(i=[t.key,this.getScrollOffset()-t.start]);let n=!0===o.followOnAppend?"auto":o.followOnAppend||null;n&&a>e&&this.isAtEnd(r.scrollEndThreshold)&&(0===e||o.getItemKey(a-1)!==d)&&(l=n)}}this.options=o,s&&(this.pendingMin=0,this.itemSizeCacheVersion++);let a=!1,u=0;if(i&&null!==this.scrollOffset){let[e,t]=i,n=this.getMeasurements(),{count:o,getItemKey:r}=this.options,l=0;for(;l<o&&r(l)!==e;)l++;if(l<o){let e=n[l];if(e){let n=Math.max(0,e.start+t);n!==this.scrollOffset&&(u=n-this.scrollOffset,this.scrollOffset=n,a=!0)}}}(a||l)&&(this.pendingScrollAnchor=[a?i[0]:null,a?i[1]:0,l,u])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=p(()=>(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=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,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}if(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.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,null!==this._clampedAdjustment&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;let n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,v()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,y),e.addEventListener("touchend",n,y),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let n=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,n&&this.scrollElement&&this.options.enabled){let[e,t,o,r]=n;null===e||o||(v()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==r&&(this._iosDeferredAdjustment+=r):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),o&&this.scrollToEnd({behavior:o})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(null===this._clampedAdjustment||!this.scrollElement||!this.options.enabled)return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+.5&&(this._clampedAdjustment=e>n+.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>
1{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,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.getMeasurementOptions=p(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,o,r,i,l,s)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:r,lanes:i,laneAssignmentMode:l,gap:s}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=p(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:r,lanes:i,laneAssignmentMode:l,gap:s},a)=>{let u=this.itemSizeCache;if(!r)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let c=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===i){var d;let r;let i=2*e,l=this._flatMeasurements;if(!l||l.length<i){let e=new Float64Array(i);l&&c>0&&e.set(l.subarray(0,2*c)),l=e,this._flatMeasurements=l}if(0===c)r=t+n;else{let e=c-1;r=l[2*e]+l[2*e+1]+s}for(let t=c;t<e;t++){let e=o(t),n=u.get(e),i="number"==typeof n?n:this.options.estimateSize(t);l[2*t]=r,l[2*t+1]=i,r+=i+s}let a=(d=l,new Proxy(Array(e),{get(t,n,r){if("string"==typeof n){let r=n.charCodeAt(0);if(r>=48&&r<=57){let r=+n;if(Number.isInteger(r)&&r>=0&&r<e){let e=t[r];if(!e){let n=d[2*r];e=t[r]={index:r,key:o(r),start:n,size:d[2*r+1],end:n+d[2*r+1],lane:0}}return e}}if("length"===n)return e}return Reflect.get(t,n,r)}}));return this.measurementsCache=a,a}let p=this.measurementsCache.slice(0,c),f=Array(i).fill(void 0),h=new Float64Array(i),m=0;for(let e=0;e<c;e++){let t=p[e];t&&(void 0===f[t.lane]&&m++,f[t.lane]=e,h[t.lane]=t.end)}for(let r=c;r<e;r++){let e,a;let c=o(r),d=this.laneAssignments.get(r),v="estimate"===l||u.has(c);if(void 0!==d&&this.options.lanes>1){let o=f[e=d],r=void 0!==o?p[o]:void 0;a=r?r.end+s:t+n}else if(m===i){let t=0,n=h[0],o=f[0];for(let e=1;e<i;e++){let r=h[e];(r<n||r===n&&f[e]<o)&&(t=e,n=r,o=f[e])}e=t,a=n+s,v&&this.laneAssignments.set(r,e)}else e=r%this.options.lanes,a=t+n,v&&this.laneAssignments.set(r,e);let g=u.get(c),b="number"==typeof g?g:this.options.estimateSize(r),S=a+b;p[r]={index:r,start:a,size:b,end:S,key:c,lane:e},void 0===f[e]&&m++,f[e]=r,h[e]=S}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=p(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,o)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,n,o,r){let i=e.length-1;if(e.length<=o)return{startIndex:0,endIndex:i};if(1===o&&null!==r){let e=function(e,t,n){let o=0;for(;o<=t;){let r=(o+t)/2|0,i=e[2*r];if(i<n)o=r+1;else{if(!(i>n))return r;t=r-1}}return o>0?o-1:0}(r,i,n),o=e,l=n+t;for(;o<i&&r[2*o]+r[2*o+1]<l;)o++;return{startIndex:e,endIndex:o}}let l=M(0,i,t=>e[t].start,n),s=l;if(1===o)for(;s<i&&e[s].end<n+t;)s++;else if(o>1){let r=Array(o).fill(0);for(;s<i&&r.some(e=>e<n+t);){let t=e[s];r[t.lane]=t.end,s++}let a=Array(o).fill(n+t);for(;l>=0&&a.some(e=>e>=n);){let t=e[l];a[t.lane]=t.start,l--}l=Math.max(0,l-l%o),s=Math.min(i,s+(o-1-s%o))}return{startIndex:l,endIndex:s}}(e,t,n,o,1===o&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}
1),this.getVirtualIndexes=p(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,o,r)=>null===o||null===r?[]:e({startIndex:o,endIndex:r,overscan:t,count:n}),{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.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),o=Math.max(0,n-t),r=Math.min(this.options.count-1,n+t);return e>=o&&e<=r}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),o=this.elementsCache.get(n);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,o;let r,i,l;if(!this.isIndexInRange(e))return;let s=this._flatMeasurements;if(1===this.options.lanes&&null!==s)l=this.options.getItemKey(e),i=s[2*e],r=s[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;l=t.key,i=t.start,r=t.size}let a=this.itemSizeCache.get(l)??r,u=t-a;if(0!==u){let s="end"===this.options.anchorTo&&(null==(n=this.scrollState)?void 0:n.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=s?this.getTotalSize():0,d=this.getScrollOffset()+this.scrollAdjustments,p=this.itemSizeCache.has(l)?i+a<=d&&"backward"!==this.scrollDirection:i<d,f=(null==(o=this.scrollState)?void 0:o.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:l,start:i,size:r,end:i+r,lane:0},u,this):p);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(l,t),this.itemSizeCacheVersion++;let h=!1;s?h=this.applyScrollAdjustment(this.getTotalSize()-c):f&&(h=this.applyScrollAdjustment(u)),this.notify(h),this._retryClampedAdjustment()}},this.getVirtualItems=p(()=>
1[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let o=0,r=e.length;o<r;o++){let r=t[e[o]];n.push(r)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let n=this._flatMeasurements,o=1===this.options.lanes&&null!=n,r=M(0,t.length-1,o?e=>n[2*e]:e=>f(t[e]).start,e);return f(t[r])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>
1{if(!this.scrollElement)return 0;let o=this.getSize(),r=this.getScrollOffset();return"auto"===t&&(t=e>=r+o?"end":"start"),"center"===t?e+=(n-o)/2:"end"===t&&(e-=o),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),o=this.getScrollOffset(),r=this.measurementsCache[e];if(!r)return;if("auto"===t){if(r.end>=o+n-this.options.scrollPaddingEnd)t="end";else{if(!(r.start<=o+this.options.scrollPaddingStart))return[o,t];t="start"}}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let i="end"===t?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,r.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0;let o=this.getOffsetForAlignment(e,t),r=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:r,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let o=this.getOffsetForIndex(e,t);if(!o)return;let[r,i]=o,l=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:l,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let n=this.getScrollOffset()+e,o=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:o,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;let t;let n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes){let o=n.length-1,r=this._flatMeasurements;t=null!=r?r[2*o]+r[2*o+1]:(null==(e=n[o])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),o=n.length-1;for(;o>=0&&e.some(e=>null===e);){let t=n[o];null===e[t.lane]&&(e[t.lane]=t.end),o--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];
1if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){if(0===e)return!1;if(v()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;{let n=this.getScrollOffset()+this.scrollAdjustments+e,o=this.scrollElement,r=null!==o&&("scrollHeight"in o||"document"in o)?this.getMaxScrollOffset():null;return this._clampedAdjustment=null!==r&&n>r+.5?{target:n,maxAtWrite:r}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&h(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),o="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,o||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:o?"smooth":"auto"})}this.scheduleScrollReconcile()}}let M=(e,t,n,o)=>{for(;e<=t;){let r=(e+t)/2|0,i=n(r);if(i<o)e=r+1;else{if(!(i>o))return r;t=r-1}}return e>0?e-1:0},R="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;var w=n(92697),k=n(83055),A=n(97099),F=n(99664),D=n(88320),L=n(73695),_=n(50659),z=n(82336),V=n(13408),j=n(17833),B=n(61302),N=n(87239),G=n(37331),H=n(7009),W=n(16255),q=n(88028),U=n(9077),K=n(98061);function J(e){let t=(0,c.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,K.O)(e,"blur",e=>{let n=e.target;q.LL(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,_.z)(()=>{if(!(0,U.H9)(e)&&q.LL(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:o}=t.current;null!==n&&null!==o&&e.setSelectionRange(n,o)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var Z=n(36454),X=n(8431),$=n(10823),Q=n(69975),Y=n(63032),ee=n(31978),et=n(10241),en=n(96719),eo=n(55155),er=n(51515),ei=n(46168),el=n(73516),es=n(92842),ea=n(29026),eu=n(7210),ec=n(2756),ed=n(76631),ep=n(84366),ef=n(78631),eh=n(91729),em=n(32085),ev=n(92426),eg=n(61447),eb=n(29111),eS=n(23934),ex=n(4218),ey=n(60014),eE=n(29097),eO=n(98419),eT=n(21539),eI=Object.defineProperty,eP=(e,t,n)=>t in e?eI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eC=(e,t,n)=>(eP(e,"symbol"!=typeof t?t+"":t,n),n),eM=((r=eM||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),eR=((i=eR||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),ew=((l=ew||{})[l.Pointer=0]="Pointer",l[l.Focus=1]="Focus",l[l.Other=2]="Other",l),ek=((s=ek||{})[s.OpenCombobox=0]="OpenCombobox",s[s.CloseCombobox=1]="CloseCombobox",s[s.GoToOption=2]="GoToOption",s[s.SetTyping=3]="SetTyping",s[s.RegisterOption=4]="RegisterOption",s[s.UnregisterOption=5]="UnregisterOption",s[s.DefaultToFirstOption=6]="DefaultToFirstOption",s[s.SetActivationTrigger=7]="SetActivationTrigger",s[s.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",s[s.SetInputElement=9]="SetInputElement",s[s.SetButtonElement=10]="SetButtonElement",s[s.SetOptionsElement=11]="SetOptionsElement",s[s.MarkInputAsMoved=12]="MarkInputAsMoved",s);function eA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=t(e.options.slice()),r=o.length>0&&null!==o[0].dataRef.current.order?o.sort((e,t)=>
1e.dataRef.current.order-t.dataRef.current.order):(0,eT.z2)(o,e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{options:r,activeOptionIndex:i}}let eF={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?eO.On.Tracked((0,eO.kn)(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:eO.On.Idle}}return{...e,comboboxState:0,inputPositionState:eO.On.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,o,r,i;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&!(null!=(o=e.dataRef.current)&&o.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:o}=e.virtual,i=t.focus===ep.T.Specific?t.idx:(0,ep.d)(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,r;return null!=(r=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!o(e)))?r:null},resolveDisabled:o,resolveId(){throw Error("Function not implemented.")}}),l=null!=(r=t.trigger)?r:2;return e.activeOptionIndex===i&&e.activationTrigger===l?e:{...e,activeOptionIndex:i,activationTrigger:l,isTyping:!1,__demoMode:!1}}let l=eA(e);if(null===l.activeOptionIndex){let e=l.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(l.activeOptionIndex=e)}let s=t.focus===ep.T.Specific?t.idx:(0,ep.d)(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),a=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===s&&e.activationTrigger===a?e:{...e,...l,isTyping:!1,activeOptionIndex:s,activationTrigger:a,__demoMode:!1}},4:(e,t)=>{var n,o,r,i;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let l=t.payload,s=eA(e,e=>(e.push(l),e));null===e.activeOptionIndex&&null!=(r=(o=e.dataRef.current).isSelected)&&r.call(o,t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(l));let a={...e,...s,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let o=eA(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...o,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>
1{var n,o;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let r=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);r=-1!==n?n:null}return{...e,activeOptionIndex:r,virtual:{options:t.options,disabled:null!=(o=t.disabled)?o:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:eO.On.Moved}};class eD extends eE.J{static new(e){var t;let{id:n,virtual:o=null,__demoMode:r=!1}=e;return new eD({id:n,dataRef:{current:{}},comboboxState:r?0:1,isTyping:!1,options:[],virtual:o?{options:o.options,disabled:null!=(t=o.disabled)?t:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:r,inputPositionState:eO.On.Idle})}reduce(e,t){return(0,eh.E)(t.type,eF,e,t)}constructor(e){super(e),eC(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:r}=this.state.dataRef.current;return(0,eh.E)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=r.slice(),i=o.findIndex(t=>n(t,e));return -1===i?o.push(e):o.splice(i,1),null==t?void 0:t(o)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:ep.T.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),eC(this,"selectors",{activeDescendantId:e=>{var t,n;let o=this.selectors.activeOptionIndex(e);if(null!==o)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[o])))?void 0:n.id:null==(t=e.options[o])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:n}=e.virtual,o=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==o)return o}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let o=this.selectors.activeOptionIndex(e);return null===o?null:e.virtual?e.virtual.options[null!=o?o:0]:null!=(n=null==(t=e.options[o])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var o;let r=this.selectors.activeOptionIndex(e);return null!==r&&(e.virtual?r===e.dataRef.current.calculateIndex(t):(null==(o=e.options[r])?void 0:o.id)===n)},shouldScrollIntoView:(e,t,n)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,n)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=eu.n.get(null);this.disposables.add(t.on(eu.M.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.comboboxState||this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add((0,eO.hS)(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}}var eL=n(40174);let e_=(0,c.createContext)(null);function ez(e){let t=(0,c.useContext)(e_);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eV),t}return t}function eV(e){let{id:t,virtual:n=null,__demoMode:o=!1}=e,r=(0,c.useMemo)(()=>eD.new({id:t,virtual:n,__demoMode:o}),[]);return(0,eL.L)(()=>r.dispose()),r}let ej=(0,c.createContext)(null);function eB(e){let t=(0,c.useContext)(ej);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eB),t}return t}ej.displayName="ComboboxDataContext";let eN=(0,c.createContext)(null);function eG(e){let t=ez("VirtualProvider"),{options:n}=eB("VirtualProvider").virtual,o=(0,ec.M)(t,e=>e.optionsElement),[r,i]=(0,c.useMemo)(()=>
1{if(!o)return[0,0];let e=window.getComputedStyle(o);return[parseFloat(e.paddingBlockStart||e.paddingTop),parseFloat(e.paddingBlockEnd||e.paddingBottom)]},[o]),l=function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...o}){let r=c.useReducer(e=>e+1,0)[1],i=c.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});i.current.enabled=t,i.current.mode=n;let l=e=>{let t=i.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let o=e.options.horizontal?"width":"height";t.container.style[o]=`${n}px`}},s=e=>{let t=i.current;if(!t.enabled||!t.container)return;l(e);let n=!!e.options.horizontal,o="transform"===t.mode,r=n?"left":"top",s=e.options.scrollMargin;for(let i of e.getVirtualItems()){let l=i.start-s,a=e.elementsCache.get(i.key);a&&t.lastPositions.get(a)!==l&&(t.lastPositions.set(a,l),o?a.style.transform=n?`translate3d(${l}px, 0, 0)`:`translate3d(0, ${l}px, 0)`:a.style[r]=`${l}px`)}},a={...o,onChange:(t,n)=>{var l;let a=i.current,u=!0;if(a.enabled){s(t);let e=t.range,n=a.prevRange;(u=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex))&&(a.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&n?(0,d.flushSync)(r):r()),null==(l=o.onChange)||l.call(o,t,n)}},[u]=c.useState(()=>{let e=new C(a);return Object.assign(e,{containerRef:t=>{let n=i.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let o=e.getTotalSize();n.lastSize=o;let r=e.options.horizontal?"width":"height";t.style[r]=`${o}px`}}})});return u.setOptions(a),R(()=>u._didMount(),[]),R(()=>(l(u),u._willUpdate())),R(()=>{s(u)}),u}({observeElementRect:x,observeElementOffset:T,scrollToFn:P,enabled:0!==n.length,scrollPaddingStart:r,scrollPaddingEnd:i,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[s,a]=(0,c.useState)(0);(0,j.e)(()=>{a(e=>e+1)},[n]);let u=l.getVirtualItems(),p=(0,ec.M)(t,e=>e.activationTrigger===ew.Pointer),f=(0,ec.M)(t,t.selectors.activeOptionIndex);return 0===u.length?null:c.createElement(eN.Provider,{value:l},c.createElement("div",{style:{position:"relative",width:"100%",height:"".concat(l.getTotalSize(),"px")},ref:e=>{e&&(p||null!==f&&n.length>f&&l.scrollToIndex(f))}},u.map(t=>{var o;return c.createElement(c.Fragment,{key:t.key},c.cloneElement(null==(o=e.children)?void 0:o.call(e,{...e.slot,option:n[t.index]}),{key:"".concat(s,"-").concat(t.key),"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:"translateY(".concat(t.start,"px)"),overflowAnchor:"none"}}))})))}let eH=c.Fragment,eW=ev.VN.RenderStrategy|ev.VN.Static,eq=(0,ev.yV)(function(e,t){let n=(0,c.useId)(),o=(0,eo.B)(),{value:r,defaultValue:i,onChange:l,form:s,name:a,by:u,invalid:d=!1,disabled:p=o||!1,onClose:f,__demoMode:h=!1,multiple:m=!1,immediate:v=!1,virtual:g=null,nullable:b,...S}=e,x=(0,F.L)(i),[y=m?[]:void 0,E]=(0,A.q)(r,l,x),O=eV({id:n,virtual:g,__demoMode:h}),T=(0,c.useRef)({static:!1,hold:!1}),I=(0,k.J)(u),P=(0,_.z)(e=>g?null===u?g.options.indexOf(e):g.options.findIndex(t=>I(t,e)):O.state.options.findIndex(t=>I(t.dataRef.current.value,e))),C=(0,c.useCallback)(e=>(0,eh.E)(w.mode,{[eR.Multi]:()=>y.some(t=>I(t,e)),[eR.Single]:()=>I(y,e)}),[y]),M=(0,ec.M)(O,e=>e.virtual),R=(0,_.z)(()=>null==f?void 0:f()),w=(0,c.useMemo)(()=>({__demoMode:h,immediate:v,optionsPropsRef:T,value:y,defaultValue:x,disabled:p,invalid:d,mode:m?eR.Multi:eR.Single,virtual:g?M:null,onChange:E,isSelected:C,calculateIndex:P,compare:I,onClose:R}),[h,v,T,y,x,p,d,m,g,M,E,C,P,I,R]);(0,j.e)(()=>{var e;g&&O.send({type:ek.UpdateVirtualConfiguration,options:g.options,disabled:null!=(e=g.disabled)?e:null})},[g,null==g?void 0:g.options,null==g?void 0:g.disabled]),(0,j.e)(()=>{O.state.dataRef.current=w},[w]);let[D,L,z,V]=(0,ec.M)(O,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),B=eu.n.get(null),N=(0,ec.M)(B,(0,c.useCallback)(e=>B.selectors.isTop(e,n),[B,n]));(0,G.O)(N,[L,z,V],()=>O.actions.closeCombobox());let H=(0,ec.M)(O,O.selectors.activeOptionIndex),W=(0,ec.M)(O,O.selectors.activeOption),q=(0,$.x)({open:D===eM.Open,disabled:p,invalid:d,activeIndex:H,activeOption:W,value:y}),[U,K]=(0,eS.bE)(),J=(0,c.useCallback)(()=>
1{if(void 0!==x)return null==E?void 0:E(x)},[E,x]),Z=(0,ev.L6)();return c.createElement(K,{value:U,props:{htmlFor:null==z?void 0:z.id},slot:{open:D===eM.Open,disabled:p}},c.createElement(er.HO,null,c.createElement(ej.Provider,{value:w},c.createElement(e_.Provider,{value:O},c.createElement(ea.up,{value:(0,eh.E)(D,{[eM.Open]:ea.ZM.Open,[eM.Closed]:ea.ZM.Closed})},null!=a&&c.createElement(ei.Mt,{disabled:p,data:null!=y?{[a]:y}:{},form:s,onReset:J}),Z({ourProps:null===t?{}:{ref:t},theirProps:S,slot:q,defaultTag:eH,name:"Combobox"}))))))}),eU=(0,ev.yV)(function(e,t){let n=ez("Combobox.Button"),o=eB("Combobox.Button"),[r,i]=(0,c.useState)(null),l=(0,Q.T)(t,i,n.actions.setButtonElement),s=(0,c.useId)(),{id:p="headlessui-combobox-button-".concat(s),disabled:f=o.disabled||!1,autoFocus:h=!1,...m}=e,[v,g,b]=(0,ec.M)(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),S=J(g),x=v===eM.Open;(0,W.G)(x,{trigger:r,action:(0,c.useCallback)(e=>{if(null!=r&&r.contains(e.target)||null!=g&&g.contains(e.target))return W.a.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return q.Re(t)?W.a.Select(t):null!=b&&b.contains(e.target)?W.a.Ignore:W.a.Close},[r,g,b]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let y=(0,_.z)(e=>{switch(e.key){case eb.R.Space:case eb.R.Enter:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eM.Closed&&(0,d.flushSync)(()=>n.actions.openCombobox()),S();return;case eb.R.ArrowDown:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eM.Closed&&((0,d.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:ep.T.First})),S();return;case eb.R.ArrowUp:e.preventDefault(),e.stopPropagation(),n.state.comboboxState===eM.Closed&&((0,d.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:ep.T.Last})),S();return;case eb.R.Escape:if(n.state.comboboxState!==eM.Open)return;e.preventDefault(),n.state.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),(0,d.flushSync)(()=>n.actions.closeCombobox()),S();return;default:return}}),E=(0,z.a)(()=>{n.state.comboboxState===eM.Open?n.actions.closeCombobox():n.actions.openCombobox(),S()}),O=(0,eS.wp)([p]),{isFocusVisible:T,focusProps:I}=(0,a.F)({autoFocus:h}),{isHovered:P,hoverProps:C}=(0,u.X)({isDisabled:f}),{pressed:M,pressProps:R}=(0,w.x)({disabled:f}),k=(0,$.x)({open:v===eM.Open,active:M||v===eM.Open,disabled:f,invalid:o.invalid,value:o.value,hover:P,focus:T}),A=(0,ev.dG)({ref:l,id:p,type:(0,Z.f)(e,r),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==b?void 0:b.id,"aria-expanded":v===eM.Open,"aria-labelledby":O,disabled:f||void 0,autoFocus:h,onKeyDown:y},E,I,C,R);return(0,ev.L6)()({ourProps:A,theirProps:m,slot:k,defaultTag:"button",name:"Combobox.Button"})}),eK=(0,ev.yV)(function(e,t){var n,o;let r=ez("Combobox.Input"),i=eB("Combobox.Input"),l=(0,c.useId)(),s=(0,es.Q)(),{id:p=s||"headlessui-combobox-input-".concat(l),onChange:f,displayValue:h,disabled:m=i.disabled||!1,autoFocus:v=!1,type:g="text",...b}=e,S=(0,c.useRef)(null),x=(0,Q.T)(S,t,(0,er.AZ)(),r.actions.setInputElement),[y,E]=(0,ec.M)(r,e=>[e.comboboxState,e.isTyping]),O=(0,D.G)(),T=(0,_.z)(()=>{r.actions.onChange(null),r.state.optionsElement&&(r.state.optionsElement.scrollTop=0),r.actions.goToOption({focus:ep.T.Nothing})}),I=(0,c.useMemo)(()=>{var e;return"function"==typeof h&&void 0!==i.value?null!=(e=h(i.value))?e:"":"string"==typeof i.value?i.value:""},[i.value,h]);(0,en.q)((e,t)=>{let[n,o]=e,[i,l]=t;if(r.state.isTyping)return;let s=S.current;s&&((l===eM.Open&&o===eM.Closed||n!==i)&&(s.value=n),requestAnimationFrame(()=>{if(r.state.isTyping||!s||(0,U.H9)(s))return;let{selectionStart:e,selectionEnd:t}=s;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&s.setSelectionRange(s.value.length,s.value.length)}))},[I,y,E]),(0,en.q)((e,t)=>{let[n]=e,[o]=t;if(n===eM.Open&&o===eM.Closed){if(r.state.isTyping)return;let e=S.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:o,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,o,i):e.setSelectionRange(n,o)}},[y]);let P=(0,c.useRef)(!1),C=(0,_.z)(()=>{P.current=!0}),M=(0,_.z)(()=>{O.nextFrame(()=>{P.current=!1})}),R=(0,_.z)(e=>{switch(r.actions.setIsTyping(!0),e.key){case eb.R.Enter:if(r.state.comboboxState!==eM.Open||P.current)return;if(e.preventDefault(),e.stopPropagation(),null===r.selectors.activeOptionIndex(r.state)){r.actions.closeCombobox();return}r.actions.selectActiveOption(),i.mode===eR.Single&&r.actions.closeCombobox();break;case eb.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,eh.E)(r.state.comboboxState,{[eM.Open]:()=>r.actions.goToOption({focus:ep.T.Next}),[eM.Closed]:()=>r.actions.openCombobox()});case eb.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,eh.E)(r.state.comboboxState,{[eM.Open]:()=>r.actions.goToOption({focus:ep.T.Previous}),[eM.Closed]:()=>{(0,d.flushSync)(()=>r.actions.openCombobox()),i.value||r.actions.goToOption({focus:ep.T.Last})}});case eb.R.Home:if(r.state.comboboxState===eM.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:ep.T.First});case eb.R.PageUp:return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:ep.T.First});case eb.R.End:if(r.state.comboboxState===eM.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:ep.T.Last});case eb.R.PageDown:return e.preventDefault(),e.stopPropagation(),r.actions.goToOption({focus:ep.T.Last});case eb.R.Escape:return r.state.comboboxState!==eM.Open?void 0:(e.preventDefault(),r.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),i.mode===eR.Single&&null===i.value&&T(),r.actions.closeCombobox());case eb.R.Tab:if(r.actions.setIsTyping(!1),r.state.comboboxState!==eM.Open)return;i.mode===eR.Single&&r.state.activationTrigger!==ew.Focus&&r.actions.selectActiveOption(),r.actions.closeCombobox()}}),w=(0,_.z)(e=>{null==f||f(e),i.mode===eR.Single&&""===e.target.value&&T(),r.actions.openCombobox()}),k=(0,_.z)(e=>{var t,n,o;let l=null!=(t=e.relatedTarget)?t:ed.m.find(t=>t!==e.currentTarget);
1if(!(null!=(n=r.state.optionsElement)&&n.contains(l))&&!(null!=(o=r.state.buttonElement)&&o.contains(l))&&r.state.comboboxState===eM.Open)return e.preventDefault(),i.mode===eR.Single&&null===i.value&&T(),r.actions.closeCombobox()}),A=(0,_.z)(e=>{var t,n,o;let l=null!=(t=e.relatedTarget)?t:ed.m.find(t=>t!==e.currentTarget);null!=(n=r.state.buttonElement)&&n.contains(l)||null!=(o=r.state.optionsElement)&&o.contains(l)||i.disabled||i.immediate&&r.state.comboboxState!==eM.Open&&O.microTask(()=>{(0,d.flushSync)(()=>r.actions.openCombobox()),r.actions.setActivationTrigger(ew.Focus)})}),F=(0,eS.wp)(),L=(0,eg.z)(),{isFocused:z,focusProps:V}=(0,a.F)({autoFocus:v}),{isHovered:j,hoverProps:B}=(0,u.X)({isDisabled:m}),N=(0,ec.M)(r,e=>e.optionsElement),G=(0,$.x)({open:y===eM.Open,disabled:m,invalid:i.invalid,hover:j,focus:z,autofocus:v}),H=(0,ev.dG)({ref:x,id:p,role:"combobox",type:g,"aria-controls":null==N?void 0:N.id,"aria-expanded":y===eM.Open,"aria-activedescendant":(0,ec.M)(r,r.selectors.activeDescendantId),"aria-labelledby":F,"aria-describedby":L,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(n=e.defaultValue)?n:void 0!==i.defaultValue?null==h?void 0:h(i.defaultValue):null)?o:i.defaultValue,disabled:m||void 0,autoFocus:v,onCompositionStart:C,onCompositionEnd:M,onKeyDown:R,onChange:w,onFocus:A,onBlur:k},V,B);return(0,ev.L6)()({ourProps:H,theirProps:b,slot:G,defaultTag:"input",name:"Combobox.Input"})}),eJ=eS.Label,eZ=(0,ev.yV)(function(e,t){var n,o,r;let i=(0,c.useId)(),{id:l="headlessui-combobox-options-".concat(i),hold:s=!1,anchor:a,portal:u=!1,modal:d=!0,transition:p=!1,...f}=e,h=ez("Combobox.Options"),m=eB("Combobox.Options"),v=(0,er.Vy)(a);v&&(u=!0);let[g,b]=(0,er.ES)(v),[S,x]=(0,c.useState)(null),y=(0,er.U8)(),E=(0,Q.T)(t,v?g:null,h.actions.setOptionsElement,x),[O,T,I,P,C]=(0,ec.M)(h,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),M=(0,H.i)(T||I),R=(0,H.i)(P),w=(0,ea.oJ)(),[k,A]=(0,ee.Y)(p,S,null!==w?(w&ea.ZM.Open)===ea.ZM.Open:O===eM.Open);(0,N.m)(k,T,h.actions.closeCombobox);let F=!m.__demoMode&&d&&O===eM.Open;(0,X.P)(F,R);let D=!m.__demoMode&&d&&O===eM.Open;(0,V.s)(D,{allowed:(0,c.useCallback)(()=>[T,I,P],[T,I,P])});let z=!(0,ec.M)(h,h.selectors.didInputMove)&&k;(0,j.e)(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),(0,j.e)(()=>{m.optionsPropsRef.current.hold=s},[m.optionsPropsRef,s]),(0,et.B)(O===eM.Open,{container:P,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let B=(0,eS.wp)([null==I?void 0:I.id]),G=(0,$.x)({open:O===eM.Open,option:void 0}),W=(0,_.z)(()=>{h.actions.setActivationTrigger(ew.Pointer)}),q=(0,_.z)(e=>{e.preventDefault(),h.actions.setActivationTrigger(ew.Pointer)}),U=(0,ev.dG)(v?y():{},{"aria-labelledby":B,role:"listbox","aria-multiselectable":m.mode===eR.Multi||void 0,id:l,ref:E,style:{...f.style,...b,"--input-width":(0,L.h)(k,T,!0).width,"--button-width":(0,L.h)(k,I,!0).width},onWheel:C===ew.Pointer?void 0:W,onMouseDown:q,...(0,ee.X)(A)}),K=k&&O===eM.Closed&&!e.static,J=(0,el._)(K,null==(n=m.virtual)?void 0:n.options),Z=(0,el._)(K,m.value),Y=(0,c.useCallback)(e=>m.compare(Z,e),[m.compare,Z]),en=(0,c.useMemo)(()=>{if(!m.virtual)return m;if(void 0===J)throw Error("Missing `options` in virtual mode");return J!==m.virtual.options?{...m,virtual:{...m.virtual,options:J}}:m},[m,J,null==(o=m.virtual)?void 0:o.options]);m.virtual&&Object.assign(f,{children:c.createElement(ej.Provider,{value:en},c.createElement(eG,{slot:G},f.children))});let eo=(0,ev.L6)(),ei=(0,c.useMemo)(()=>m.mode===eR.Multi?m:{...m,isSelected:Y},[m,Y]);return c.createElement(ey.Portal,{enabled:!!u&&(e.static||k),ownerDocument:M},c.createElement(ej.Provider,{value:ei},eo({ourProps:U,theirProps:{...f,children:c.createElement(el.F,{freeze:K},"function"==typeof f.children?null==(r=f.children)?void 0:r.call(f,G):f.children)},slot:G,defaultTag:"div",features:eW,visible:z,name:"Combobox.Options"}
1)))}),eX=(0,ev.yV)(function(e,t){var n,o,r;let i=eB("Combobox.Option"),l=ez("Combobox.Option"),s=(0,c.useId)(),{id:a="headlessui-combobox-option-".concat(s),value:u,disabled:d=null!=(r=null==(o=null==(n=i.virtual)?void 0:n.disabled)?void 0:o.call(n,u))&&r,order:p=null,...f}=e,[h]=(0,ec.M)(l,e=>[e.inputElement]),m=J(h),v=(0,ec.M)(l,(0,c.useCallback)(e=>l.selectors.isActive(e,u,a),[u,a])),g=i.isSelected(u),b=(0,c.useRef)(null),S=(0,B.E)({disabled:d,value:u,domRef:b,order:p}),x=(0,c.useContext)(eN),y=(0,Q.T)(t,b,x?x.measureElement:null),E=(0,_.z)(()=>{l.actions.setIsTyping(!1),l.actions.onChange(u)});(0,j.e)(()=>l.actions.registerOption(a,S),[S,a]);let O=(0,ec.M)(l,(0,c.useCallback)(e=>l.selectors.shouldScrollIntoView(e,u,a),[u,a]));(0,j.e)(()=>{if(O)return(0,ef.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=b.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[O,b]);let T=(0,_.z)(e=>{e.preventDefault(),e.button===ex.t.Left&&(d||(E(),(0,em.tq)()||requestAnimationFrame(()=>m()),i.mode===eR.Single&&l.actions.closeCombobox()))}),I=(0,_.z)(()=>{if(d)return l.actions.goToOption({focus:ep.T.Nothing});let e=i.calculateIndex(u);l.actions.goToOption({focus:ep.T.Specific,idx:e})}),P=(0,Y.g)(),C=(0,_.z)(e=>P.update(e)),M=(0,_.z)(e=>{if(!P.wasMoved(e)||d||v&&l.state.activationTrigger===ew.Pointer)return;let t=i.calculateIndex(u);l.actions.goToOption({focus:ep.T.Specific,idx:t},ew.Pointer)}),R=(0,_.z)(e=>{P.wasMoved(e)&&(d||v&&(i.optionsPropsRef.current.hold||l.state.activationTrigger===ew.Pointer&&l.actions.goToOption({focus:ep.T.Nothing})))}),w=(0,$.x)({active:v,focus:v,selected:g,disabled:d});return(0,ev.L6)()({ourProps:{id:a,ref:y,role:"option",tabIndex:!0===d?void 0:-1,"aria-disabled":!0===d||void 0,"aria-selected":g,disabled:void 0,onMouseDown:T,onFocus:I,onPointerEnter:C,onMouseEnter:C,onPointerMove:M,onMouseMove:M,onPointerLeave:R,onMouseLeave:R},theirProps:f,slot:w,defaultTag:"div",name:"Combobox.Option"})}),e$=Object.assign(eq,{Input:eK,Button:eU,Label:eJ,Options:eZ,Option:eX})},53578:function(e,t,n){let o,r;n.r(t),n.d(t,{Disclosure:function(){return z},DisclosureButton:function(){return L},DisclosurePanel:function(){return _}});var i,l=n(40871),s=n(98710),a=n(45113),u=n(92697),c=n(50659),d=n(36454),p=n(10823),f=n(69975),h=n(31978),m=n(79191),v=n(29026),g=n(96241),b=n(88028),S=n(91729),x=n(9077),y=n(92426);let E=null!=(i=a.startTransition)?i:function(e){e()};var O=n(29111),T=((o=T||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),I=((r=I||{})[r.ToggleDisclosure=0]="ToggleDisclosure",r[r.CloseDisclosure=1]="CloseDisclosure",r[r.SetButtonId=2]="SetButtonId",r[r.SetPanelId=3]="SetPanelId",r[r.SetButtonElement=4]="SetButtonElement",r[r.SetPanelElement=5]="SetPanelElement",r);let P={0:e=>({...e,disclosureState:(0,S.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},C=(0,a.createContext)(null);function M(e){let t=(0,a.useContext)(C);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}C.displayName="DisclosureContext";let R=(0,a.createContext)(null);R.displayName="DisclosureAPIContext";let w=(0,a.createContext)(null);function k(e,t){return(0,S.E)(t.type,P,e,t)}w.displayName="DisclosurePanelContext";let A=a.Fragment,F=y.VN.RenderStrategy|y.VN.Static,D=(0,y.yV)(function(e,t){let{defaultOpen:n=!1,...o}=e,r=(0,a.useRef)(null),i=(0,f.T)(t,(0,f.h)(e=>{r.current=e},void 0===e.as||(0,y.M2)(e.as))),l=(0,a.useReducer)(k,{disclosureState:n?0:1,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:s,buttonId:u},d]=l,h=(0,c.z)(e=>{d({type:1});let t=(0,x.r3)(r.current);if(!t||!u)return;let n=e?b.sP(e)?e:"current"in e&&b.sP(e.current)?e.current:t.getElementById(u):t.getElementById(u);null==n||n.focus()}),g=(0,a.useMemo)(()=>({close:h}),[h]),E=(0,p.x)({open:0===s,close:h}),O=(0,y.L6)();return a.createElement(C.Provider,{value:l},a.createElement(R.Provider,{value:g},a.createElement(m.Z,{value:h},a.createElement(v.up,{value:(0,S.E)(s,{0:v.ZM.Open,1:v.ZM.Closed})},O({ourProps:{ref:i},theirProps:o,slot:E,defaultTag:A,name:"Disclosure"})))))}),L=(0,y.yV)(function(e,t){let n=(0,a.useId)(),{id:o="headlessui-disclosure-button-".concat(n),disabled:r=!1,autoFocus:i=!1,...h}=e,[m,v]=M("Disclosure.Button"),b=(0,a.useContext)(w),S=null!==b&&b===m.panelId,x=(0,a.useRef)(null),E=(0,f.T)(x,t,(0,c.z)(e=>{if(!S)return v({type:4,element:e})}));(0,a.useEffect)(()=>
1{if(!S)return v({type:2,buttonId:o}),()=>{v({type:2,buttonId:null})}},[o,v,S]);let T=(0,c.z)(e=>{var t;if(S){if(1===m.disclosureState)return;switch(e.key){case O.R.Space:case O.R.Enter:e.preventDefault(),e.stopPropagation(),v({type:0}),null==(t=m.buttonElement)||t.focus()}}else switch(e.key){case O.R.Space:case O.R.Enter:e.preventDefault(),e.stopPropagation(),v({type:0})}}),I=(0,c.z)(e=>{e.key===O.R.Space&&e.preventDefault()}),P=(0,c.z)(e=>{var t;(0,g.P)(e.currentTarget)||r||(S?(v({type:0}),null==(t=m.buttonElement)||t.focus()):v({type:0}))}),{isFocusVisible:C,focusProps:R}=(0,l.F)({autoFocus:i}),{isHovered:k,hoverProps:A}=(0,s.X)({isDisabled:r}),{pressed:F,pressProps:D}=(0,u.x)({disabled:r}),L=(0,p.x)({open:0===m.disclosureState,hover:k,active:F,disabled:r,focus:C,autofocus:i}),_=(0,d.f)(e,m.buttonElement),z=S?(0,y.dG)({ref:E,type:_,disabled:r||void 0,autoFocus:i,onKeyDown:T,onClick:P},R,A,D):(0,y.dG)({ref:E,id:o,type:_,"aria-expanded":0===m.disclosureState,"aria-controls":m.panelElement?m.panelId:void 0,disabled:r||void 0,autoFocus:i,onKeyDown:T,onKeyUp:I,onClick:P},R,A,D);return(0,y.L6)()({ourProps:z,theirProps:h,slot:L,defaultTag:"button",name:"Disclosure.Button"})}),_=(0,y.yV)(function(e,t){let n=(0,a.useId)(),{id:o="headlessui-disclosure-panel-".concat(n),transition:r=!1,...i}=e,[l,s]=M("Disclosure.Panel"),{close:u}=function e(t){let n=(0,a.useContext)(R);if(null===n){let n=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("Disclosure.Panel"),[d,m]=(0,a.useState)(null),g=(0,f.T)(t,(0,c.z)(e=>{E(()=>s({type:5,element:e}))}),m);(0,a.useEffect)(()=>(s({type:3,panelId:o}),()=>{s({type:3,panelId:null})}),[o,s]);let b=(0,v.oJ)(),[S,x]=(0,h.Y)(r,d,null!==b?(b&v.ZM.Open)===v.ZM.Open:0===l.disclosureState),O=(0,p.x)({open:0===l.disclosureState,close:u}),T={ref:g,id:o,...(0,h.X)(x)},I=(0,y.L6)();return a.createElement(v.uu,null,a.createElement(w.Provider,{value:l.panelId},I({ourProps:T,theirProps:i,slot:O,defaultTag:"div",features:F,visible:S,name:"Disclosure.Panel"})))}),z=Object.assign(D,{Button:L,Panel:_})},51609:function(e,t,n){n.r(t),n.d(t,{Field:function(){return d}});var o=n(45113),r=n(10823),i=n(55155),l=n(46168),s=n(92842),a=n(92426),u=n(61447),c=n(23934);let d=(0,a.yV)(function(e,t){let n="headlessui-control-".concat((0,o.useId)()),[d,p]=(0,c.bE)(),[f,h]=(0,u.f)(),m=(0,i.B)(),{disabled:v=m||!1,...g}=e,b=(0,r.x)({disabled:v}),S=(0,a.L6)();return o.createElement(i.G,{value:v},o.createElement(p,{value:d},o.createElement(h,{value:f},o.createElement(s.v,{id:n},S({ourProps:{ref:t,disabled:v||void 0,"aria-disabled":v||void 0},theirProps:{...g,children:o.createElement(l.wR,null,"function"==typeof g.children?g.children(b):g.children)},slot:b,defaultTag:"div",name:"Field"})))))})},94807:function(e,t,n){n.r(t),n.d(t,{Fieldset:function(){return d}});var o=n(45113),r=n(88028),i=n(10823),l=n(69975),s=n(55155),a=n(92426),u=n(23934);let c="fieldset",d=(0,a.yV)(function(e,t){var n;let d=(0,s.B)(),{disabled:p=d||!1,...f}=e,[h,m]=function(e){let t="string"==typeof e?e:void 0,[n,i]=(0,o.useState)(t);return[null!=t?t:n,(0,o.useCallback)(e=>{t||r.Re(e)&&i(e.tagName.toLowerCase())},[t])]}(null!=(n=e.as)?n:c),v=(0,l.T)(t,m),[g,b]=(0,u.bE)(),S=(0,i.x)({disabled:p}),x="fieldset"===h?{ref:v,"aria-labelledby":g,disabled:p||void 0}:{ref:v,role:"group","aria-labelledby":g,"aria-disabled":p||void 0},y=(0,a.L6)();return o.createElement(s.G,{value:p},o.createElement(b,null,y({ourProps:x,theirProps:f,slot:S,defaultTag:c,name:"Fieldset"})))})},90524:function(e,t,n){n.r(t),n.d(t,{Input:function(){return p}});var o=n(40871),r=n(98710),i=n(45113),l=n(10823),s=n(55155),a=n(92842),u=n(92426),c=n(61447),d=n(23934);let p=(0,u.yV)(function(e,t){let n=(0,i.useId)(),p=(0,a.Q)(),f=(0,s.B)(),{id:h=p||"headlessui-input-".concat(n),disabled:m=f||!1,autoFocus:v=!1,invalid:g=!1,...b}=e,S=(0,d.wp)(),x=(0,c.z)(),{isFocused:y,focusProps:E}=(0,o.F)({autoFocus:v}),{isHovered:O,hoverProps:T}=(0,r.X)({isDisabled:m}),I=(0,u.dG)({ref:t,id:h,"aria-labelledby":S,"aria-describedby":x,"aria-invalid":g?"true":void 0,disabled:m||void 0,autoFocus:v},E,T),P=(0,l.x)({disabled:m,invalid:g,hover:O,focus:y,autofocus:v});return(0,u.L6)()({ourProps:I,theirProps:b,slot:P,defaultTag:"input",name:"Input"})})},69970:function(e,t,n){n.r(t),n.d(t,{Legend:function(){return l}});var o=n(45113),r=n(92426),i=n(23934);let l=(0,r.yV)(function(e,t){return o.createElement(i.Label,{as:"div",ref:t,...e})})},44361:function(e,t,n){let o,r,i,l;n.r(t),n.d(t,{Listbox:function(){return eC},ListboxButton:function(){return eE},ListboxLabel:function(){return eO},ListboxOption:function(){return eI},ListboxOptions:function(){return eT},ListboxSelectedOption:function(){return eP}});var s=n(40871),a=n(98710),u=n(45113),c=n(52509),d=n(92697),p=n(83055),f=n(97099),h=n(99664),m=n(88320),v=n(73695),g=n(50659),b=n(82336),S=n(13408),x=n(17833),y=n(61302),E=n(87239),O=n(37331),T=n(7009),I=n(16255),P=n(36454),C=n(8431),M=n(10823),R=n(69975),w=n(25713),k=n(63032),A=n(31978),F=n(55155),D=n(51515),L=n(46168),_=n(73516),z=n(92842),V=n(29026),j=n(72
110),B=n(2756),N=n(84366),G=n(78631),H=n(88028),W=n(21539),q=n(65117),U=n(91729),K=n(9077),J=n(92426),Z=n(61447),X=n(29111),$=n(23934),Q=n(60014),Y=n(29097),ee=n(98419),et=Object.defineProperty,en=(e,t,n)=>t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eo=(e,t,n)=>(en(e,"symbol"!=typeof t?t+"":t,n),n),er=((o=er||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),ei=((r=ei||{})[r.Single=0]="Single",r[r.Multi=1]="Multi",r),el=((i=el||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),es=((l=es||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.SelectOption=5]="SelectOption",l[l.RegisterOptions=6]="RegisterOptions",l[l.UnregisterOptions=7]="UnregisterOptions",l[l.SetButtonElement=8]="SetButtonElement",l[l.SetOptionsElement=9]="SetOptionsElement",l[l.SortOptions=10]="SortOptions",l[l.MarkButtonAsMoved=11]="MarkButtonAsMoved",l);function ea(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=(0,W.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),r=n?o.indexOf(n):null;return -1===r&&(r=null),{options:o,activeOptionIndex:r}}let eu={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?ee.On.Tracked((0,ee.kn)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:N.T.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:o}=e.dataRef.current,r=e.options.findIndex(e=>o(e.dataRef.current.value));return -1!==r&&(n=r),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:ee.On.Idle}},2(e,t){var n,o,r,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===N.T.Nothing)return{...s,activeOptionIndex:null};if(t.focus===N.T.Specific)return{...s,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===N.T.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=(0,N.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(o=i.current)?void 0:o.previousElementSibling)===t.current||(null==(r=t.current)?void 0:r.previousElementSibling)===null)return{...s,activeOptionIndex:l}}}}else if(t.focus===N.T.Next){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,r=(0,N.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==r){let t=e.options[r].dataRef.current.domRef;if((null==(i=o.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...s,activeOptionIndex:r}}}}let a=ea(e),u=(0,N.d)(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...a,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,o=e.searchQuery+t.value.toLowerCase(),r=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(o))}),i=r?e.options.indexOf(r):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),o=e.activeOptionIndex;if(e.pendingFocus.focus!==N.T.Nothing&&(o=(0,N.d)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(o=e)}}return{...e,options:n,activeOptionIndex:o,pendingFocus:{focus:N.T.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,o=[],r=new Set(t.options);for(let[e,t]of n.entries())if(r.has(t.id)&&(o.push(e),r.delete(t.id),0===r.size))break;if(o.length>0)for(let e of(n=n.slice(),o.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>
1e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...ea(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:ee.On.Moved}};class ec extends Y.J{static new(e){let{id:t,__demoMode:n=!1}=e;return new ec({id:t,dataRef:{current:{}},listboxState:n?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:N.T.Nothing},frozenValue:!1,__demoMode:n,buttonPositionState:ee.On.Idle})}reduce(e,t){return(0,U.E)(t.type,eu,e,t)}constructor(e){super(e),eo(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:r}=this.state.dataRef.current;return(0,U.E)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=r.slice(),i=o.findIndex(t=>n(t,e));return -1===i?o.push(e):o.splice(i,1),null==t?void 0:t(o)}})},registerOption:(0,Y.dC)(()=>{let e=[],t=new Set;return[(n,o)=>{t.has(o)||(t.add(o),e.push({id:n,dataRef:o}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,Y.dC)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,Y.dC)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),eo(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,o=e.options;return null===n||null==(t=o[n])?void 0:t.id},isActive(e,t){var n;let o=e.activeOptionIndex,r=e.options;return null!==o&&(null==(n=r[o])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=j.n.get(null);this.disposables.add(t.on(j.M.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add((0,ee.hS)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}}var ed=n(40174);let ep=(0,u.createContext)(null);function ef(e){let t=(0,u.useContext)(ep);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eh),t}return t}function eh(e){let{id:t,__demoMode:n=!1}=e,o=(0,u.useMemo)(()=>ec.new({id:t,__demoMode:n}),[]);return(0,ed.L)(()=>o.dispose()),o}let em=(0,u.createContext)(null);function ev(e){let t=(0,u.useContext)(em);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ev),t}return t}em.displayName="ListboxDataContext";let eg=u.Fragment,eb=(0,u.createContext)(!1),eS=J.VN.RenderStrategy|J.VN.Static,ex=u.Fragment,ey=(0,J.yV)(function(e,t){let n=(0,u.useId)(),o=(0,F.B)(),{value:r,defaultValue:i,form:l,name:s,onChange:a,by:c,invalid:d=!1,disabled:m=o||!1,horizontal:v=!1,multiple:g=!1,__demoMode:b=!1,...S}=e,y=(0,R.T)(t),E=(0,h.L)(i),[T=g?[]:void 0,I]=(0,f.q)(r,a,E),P=eh({id:n,__demoMode:b}),C=(0,u.useRef)({static:!1,hold:!1}),w=(0,u.useRef)(new Map),k=(0,p.J)(c),A=(0,u.useCallback)(e=>(0,U.E)(_.mode,{[ei.Multi]:()=>T.some(t=>k(t,e)),[ei.Single]:()=>k(T,e)}),[T]),_=(0,M.x)({value:T,disabled:m,invalid:d,mode:g?ei.Multi:ei.Single,orientation:v?"horizontal":"vertical",onChange:I,compare:k,isSelected:A,optionsPropsRef:C,listRef:w});(0,x.e)(()=>{P.state.dataRef.current=_},[_]);let z=(0,B.M)(P,e=>
1e.listboxState),N=j.n.get(null),G=(0,B.M)(N,(0,u.useCallback)(e=>N.selectors.isTop(e,n),[N,n])),[H,q]=(0,B.M)(P,e=>[e.buttonElement,e.optionsElement]);(0,O.O)(G,[H,q],(e,t)=>{P.send({type:es.CloseListbox}),(0,W.sP)(t,W.tJ.Loose)||(e.preventDefault(),null==H||H.focus())});let K=(0,M.x)({open:z===er.Open,disabled:m,invalid:d,value:T}),[Z,X]=(0,$.bE)({inherit:!0}),Q=(0,u.useCallback)(()=>{if(void 0!==E)return null==I?void 0:I(E)},[I,E]),Y=(0,J.L6)();return u.createElement(X,{value:Z,props:{htmlFor:null==H?void 0:H.id},slot:{open:z===er.Open,disabled:m}},u.createElement(D.HO,null,u.createElement(ep.Provider,{value:P},u.createElement(em.Provider,{value:_},u.createElement(V.up,{value:(0,U.E)(z,{[er.Open]:V.ZM.Open,[er.Closed]:V.ZM.Closed})},null!=s&&null!=T&&u.createElement(L.Mt,{disabled:m,data:{[s]:T},form:l,onReset:Q}),Y({ourProps:{ref:y},theirProps:S,slot:K,defaultTag:eg,name:"Listbox"}))))))}),eE=(0,J.yV)(function(e,t){let n=(0,u.useId)(),o=(0,z.Q)(),r=ev("Listbox.Button"),i=ef("Listbox.Button"),{id:l=o||"headlessui-listbox-button-".concat(n),disabled:p=r.disabled||!1,autoFocus:f=!1,...h}=e,m=(0,R.T)(t,(0,D.AZ)(),i.actions.setButtonElement),v=(0,D.L)(),[S,x,y]=(0,B.M)(i,e=>[e.listboxState,e.buttonElement,e.optionsElement]),E=S===er.Open;(0,I.G)(E,{trigger:x,action:(0,u.useCallback)(e=>{if(null!=x&&x.contains(e.target))return I.a.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return H.Re(t)?I.a.Select(t):null!=y&&y.contains(e.target)?I.a.Ignore:I.a.Close},[x,y]),close:i.actions.closeListbox,select:i.actions.selectActiveOption});let O=(0,g.z)(e=>{switch(e.key){case X.R.Enter:(0,q.g)(e.currentTarget);break;case X.R.Space:case X.R.ArrowDown:e.preventDefault(),i.actions.openListbox({focus:r.value?N.T.Nothing:N.T.First});break;case X.R.ArrowUp:e.preventDefault(),i.actions.openListbox({focus:r.value?N.T.Nothing:N.T.Last})}}),T=(0,g.z)(e=>{e.key===X.R.Space&&e.preventDefault()}),C=(0,b.a)(e=>{var t;i.state.listboxState===er.Open?((0,c.flushSync)(()=>i.actions.closeListbox()),null==(t=i.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),i.actions.openListbox({focus:N.T.Nothing}))}),w=(0,g.z)(e=>e.preventDefault()),k=(0,$.wp)([l]),A=(0,Z.z)(),{isFocusVisible:F,focusProps:L}=(0,s.F)({autoFocus:f}),{isHovered:_,hoverProps:V}=(0,a.X)({isDisabled:p}),{pressed:j,pressProps:G}=(0,d.x)({disabled:p}),W=(0,M.x)({open:S===er.Open,active:j||S===er.Open,disabled:p,invalid:r.invalid,value:r.value,hover:_,focus:F,autofocus:f}),U=(0,B.M)(i,e=>e.listboxState===er.Open),K=(0,J.dG)(v(),{ref:m,id:l,type:(0,P.f)(e,x),"aria-haspopup":"listbox","aria-controls":null==y?void 0:y.id,"aria-expanded":U,"aria-labelledby":k,"aria-describedby":A,disabled:p||void 0,autoFocus:f,onKeyDown:O,onKeyUp:T,onKeyPress:w},C,L,V,G);return(0,J.L6)()({ourProps:K,theirProps:h,slot:W,defaultTag:"button",name:"Listbox.Button"})}),eO=$.Label,eT=(0,J.yV)(function(e,t){let n=(0,u.useId)(),{id:o="headlessui-listbox-options-".concat(n),anchor:r,portal:i=!1,modal:l=!0,transition:s=!1,...a}=e,d=(0,D.Vy)(r),[p,f]=(0,u.useState)(null);d&&(i=!0);let h=ev("Listbox.Options"),b=ef("Listbox.Options"),[x,y,O,I]=(0,B.M)(b,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),P=(0,T.i)(y),w=(0,T.i)(O),k=(0,V.oJ)(),[F,L]=(0,A.Y)(s,p,null!==k?(k&V.ZM.Open)===V.ZM.Open:x===er.Open);(0,E.m)(F,y,b.actions.closeListbox);let z=!I&&l&&x===er.Open;(0,C.P)(z,w);let j=!I&&l&&x===er.Open;(0,S.s)(j,{allowed:(0,u.useCallback)(()=>[y,O],[y,O])});let G=!(0,B.M)(b,b.selectors.didButtonMove)&&F,H=(0,B.M)(b,b.selectors.hasFrozenValue)&&!e.static,q=(0,_._)(H,h.value),Z=(0,u.useCallback)(e=>h.compare(q,e),[h.compare,q]),$=(0,B.M)(b,e=>{var t;if(null==d||!(null!=(t=null==d?void 0:d.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>Z(e.dataRef.current.value));return -1===n&&(n=0),n}),Y=(()=>{if(null==d)return;if(null===$)return{...d,inner:void 0};let e=Array.from(h.listRef.current.values());return{...d,inner:{listRef:{current:e},index:$}}})(),[ee,et]=(0,D.ES)(Y),en=(0,D.U8)(),eo=(0,R.T)(t,d?ee:null,b.actions.setOptionsElement,f),el=(0,m.G)();(0,u.useEffect)(()=>
1{O&&x===er.Open&&((0,K.H9)(O)||null==O||O.focus({preventScroll:!0}))},[x,O]);let es=(0,g.z)(e=>{var t;switch(el.dispose(),e.key){case X.R.Space:if(""!==b.state.searchQuery)return e.preventDefault(),e.stopPropagation(),b.actions.search(e.key);case X.R.Enter:e.preventDefault(),e.stopPropagation(),b.actions.selectActiveOption();break;case(0,U.E)(h.orientation,{vertical:X.R.ArrowDown,horizontal:X.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:N.T.Next});case(0,U.E)(h.orientation,{vertical:X.R.ArrowUp,horizontal:X.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:N.T.Previous});case X.R.Home:case X.R.PageUp:return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:N.T.First});case X.R.End:case X.R.PageDown:return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:N.T.Last});case X.R.Escape:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>b.actions.closeListbox()),null==(t=b.state.buttonElement)||t.focus({preventScroll:!0});return;case X.R.Tab:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>b.actions.closeListbox()),(0,W.EO)(b.state.buttonElement,e.shiftKey?W.TO.Previous:W.TO.Next);break;default:1===e.key.length&&(b.actions.search(e.key),el.setTimeout(()=>b.actions.clearSearch(),350))}}),ea=(0,B.M)(b,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),eu=(0,M.x)({open:x===er.Open}),ec=(0,J.dG)(d?en():{},{id:o,ref:eo,"aria-activedescendant":(0,B.M)(b,b.selectors.activeDescendantId),"aria-multiselectable":h.mode===ei.Multi||void 0,"aria-labelledby":ea,"aria-orientation":h.orientation,onKeyDown:es,role:"listbox",tabIndex:x===er.Open?0:void 0,style:{...a.style,...et,"--button-width":(0,v.h)(F,y,!0).width},...(0,A.X)(L)}),ed=(0,J.L6)(),ep=(0,u.useMemo)(()=>h.mode===ei.Multi?h:{...h,isSelected:Z},[h,Z]);return u.createElement(Q.Portal,{enabled:!!i&&(e.static||F),ownerDocument:P},u.createElement(em.Provider,{value:ep},ed({ourProps:ec,theirProps:a,slot:eu,defaultTag:"div",features:eS,visible:G,name:"Listbox.Options"}
1)))}),eI=(0,J.yV)(function(e,t){let n=(0,u.useId)(),{id:o="headlessui-listbox-option-".concat(n),disabled:r=!1,value:i,...l}=e,s=!0===(0,u.useContext)(eb),a=ev("Listbox.Option"),c=ef("Listbox.Option"),d=(0,B.M)(c,e=>c.selectors.isActive(e,o)),p=a.isSelected(i),f=(0,u.useRef)(null),h=(0,w.x)(f),m=(0,y.E)({disabled:r,value:i,domRef:f,get textValue(){return h()}}),v=(0,R.T)(t,f,e=>{e?a.listRef.current.set(o,e):a.listRef.current.delete(o)}),b=(0,B.M)(c,e=>c.selectors.shouldScrollIntoView(e,o));(0,x.e)(()=>{if(b)return(0,G.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[b,f]),(0,x.e)(()=>{if(!s)return c.actions.registerOption(o,m),()=>c.actions.unregisterOption(o)},[m,o,s]);let S=(0,g.z)(e=>{if(r)return e.preventDefault();c.actions.selectOption(i)}),E=(0,g.z)(()=>{if(r)return c.actions.goToOption({focus:N.T.Nothing});c.actions.goToOption({focus:N.T.Specific,id:o})}),O=(0,k.g)(),T=(0,g.z)(e=>O.update(e)),I=(0,g.z)(e=>{O.wasMoved(e)&&(r||d&&c.state.activationTrigger===el.Pointer||c.actions.goToOption({focus:N.T.Specific,id:o},el.Pointer))}),P=(0,g.z)(e=>{O.wasMoved(e)&&(r||d&&c.state.activationTrigger===el.Pointer&&c.actions.goToOption({focus:N.T.Nothing}))}),C=(0,M.x)({active:d,focus:d,selected:p,disabled:r,selectedOption:p&&s}),A=s?{}:{id:o,ref:v,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":p,disabled:void 0,onClick:S,onFocus:E,onPointerEnter:T,onMouseEnter:T,onPointerMove:I,onMouseMove:I,onPointerLeave:P,onMouseLeave:P},F=(0,J.L6)();return!p&&s?null:F({ourProps:A,theirProps:l,slot:C,defaultTag:"div",name:"Listbox.Option"})}),eP=(0,J.yV)(function(e,t){let{options:n,placeholder:o,...r}=e,i={ref:(0,R.T)(t)},l=ev("ListboxSelectedOption"),s=(0,M.x)({}),a=void 0===l.value||null===l.value||l.mode===ei.Multi&&Array.isArray(l.value)&&0===l.value.length,c=(0,J.L6)();return u.createElement(eb.Provider,{value:!0},c({ourProps:i,theirProps:{...r,children:u.createElement(u.Fragment,null,o&&a?o:n)},slot:s,defaultTag:ex,name:"ListboxSelectedOption"}))}),eC=Object.assign(ey,{Button:eE,Label:eO,Options:eT,Option:eI,SelectedOption:eP})},39529:function(e,t,n){let o,r;n.r(t),n.d(t,{Popover:function(){return es},PopoverBackdrop:function(){return er},PopoverButton:function(){return en},PopoverGroup:function(){return el},PopoverOverlay:function(){return eo},PopoverPanel:function(){return ei}});var i=n(40871),l=n(98710),s=n(45113),a=n(92697),u=n(73695),c=n(50659),d=n(98061),p=n(17833),f=n(61302),h=n(87239),m=n(37331),v=n(7009),g=n(36454),b=n(48654),S=n(8431),x=n(10823),y=n(69975),E=n(33163),O=n(31978),T=n(79191),I=n(51515),P=n(33934),C=n(29026),M=n(2756),R=n(96241),w=n(88028),k=n(21539),A=n(91729),F=n(9077),D=n(92426),L=n(29111),_=n(60014),z=n(29097),V=n(7210),j=Object.defineProperty,B=(e,t,n)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t,n)=>(B(e,"symbol"!=typeof t?t+"":t,n),n),G=((o=G||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),H=((r=H||{})[r.OpenPopover=0]="OpenPopover",r[r.ClosePopover=1]="ClosePopover",r[r.SetButton=2]="SetButton",r[r.SetButtonId=3]="SetButtonId",r[r.SetPanel=4]="SetPanel",r[r.SetPanelId=5]="SetPanelId",r);let W={0:e=>0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=>1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
1e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class q extends z.J{static new(e){let{id:t,__demoMode:n=!1}=e;return new q({id:t,__demoMode:n,popoverState:n?0:1,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return(0,A.E)(t.type,W,e,t)}constructor(e){super(e),N(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?w.Re(e)?e:"current"in e&&w.Re(e.current)?e.current:this.state.button:this.state.button;null==t||t.focus()},open:()=>this.send({type:0}),setButtonId:e=>this.send({type:3,buttonId:e}),setButton:e=>this.send({type:2,button:e}),setPanelId:e=>this.send({type:5,panelId:e}),setPanel:e=>this.send({type:4,panel:e})}),N(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let n=null!=(t=(0,F.r3)(e.button))?t:document;for(let t of n.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let o=(0,k.GO)(n),r=o.indexOf(e.button),i=(r+o.length-1)%o.length,l=(r+1)%o.length,s=o[i],a=o[l];return!e.panel.contains(s)&&!e.panel.contains(a)}});{let e=this.state.id,t=V.n.get(null);this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}}var U=n(40174);let K=(0,s.createContext)(null);function J(e){let t=(0,s.useContext)(K);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Popover /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,J),t}return t}let Z=(0,s.createContext)(null);function X(){return(0,s.useContext)(Z)}Z.displayName="PopoverGroupContext";let $=(0,s.createContext)(null);$.displayName="PopoverPanelContext";let Q=D.VN.RenderStrategy|D.VN.Static;function Y(e,t){let n=(0,s.useId)(),{id:o="headlessui-popover-backdrop-".concat(n),transition:r=!1,...i}=e,l=J("Popover.Backdrop"),a=(0,M.M)(l,(0,s.useCallback)(e=>
1e.popoverState,[])),[u,d]=(0,s.useState)(null),p=(0,y.T)(t,d),f=(0,C.oJ)(),[h,m]=(0,O.Y)(r,u,null!==f?(f&C.ZM.Open)===C.ZM.Open:a===G.Open),v=(0,c.z)(e=>{if((0,R.P)(e.currentTarget))return e.preventDefault();l.actions.close()}),g=(0,x.x)({open:a===G.Open}),b={ref:p,id:o,"aria-hidden":!0,onClick:v,...(0,O.X)(m)};return(0,D.L6)()({ourProps:b,theirProps:i,slot:g,defaultTag:"div",features:Q,visible:h,name:"Popover.Backdrop"})}let ee=D.VN.RenderStrategy|D.VN.Static,et=(0,D.yV)(function(e,t){var n;let o=(0,s.useId)(),{__demoMode:r=!1,...i}=e,l=function(e){let{id:t,__demoMode:n=!1}=e,o=(0,s.useMemo)(()=>q.new({id:t,__demoMode:n}),[]);return(0,U.L)(()=>o.dispose()),o}({id:o,__demoMode:r}),a=(0,s.useRef)(null),u=(0,y.T)(t,(0,y.h)(e=>{a.current=e})),[p,h,g,S,E]=(0,M.M)(l,(0,s.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),O=(0,v.p)(null!=(n=a.current)?n:h),P=(0,f.E)(S),R=(0,f.E)(E),L=(0,s.useMemo)(()=>({buttonId:P,panelId:R,close:l.actions.close}),[P,R,l]),z=X(),V=null==z?void 0:z.registerPopover,j=(0,c.z)(()=>{var e,t;let n=(0,F.vY)(null!=(e=a.current)?e:h);return null!=(t=null==z?void 0:z.isFocusWithinPopoverGroup())?t:n&&((null==h?void 0:h.contains(n))||(null==g?void 0:g.contains(n)))});(0,s.useEffect)(()=>null==V?void 0:V(L),[V,L]);let[B,N]=(0,_.k)(),H=(0,b.H1)(h),W=(0,b.vs)({mainTreeNode:H,portals:B,defaultContainers:[{get current(){return l.state.button}},{get current(){return l.state.panel}}]});(0,d.O)(O,"focus",e=>{var t,n,o,r,i,s;e.target!==window&&w.sP(e.target)&&l.state.popoverState===G.Open&&(j()||l.state.button&&l.state.panel&&(W.contains(e.target)||null!=(n=null==(t=l.state.beforePanelSentinel.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(r=null==(o=l.state.afterPanelSentinel.current)?void 0:o.contains)&&r.call(o,e.target)||null!=(s=null==(i=l.state.afterButtonSentinel.current)?void 0:i.contains)&&s.call(i,e.target)||l.actions.close()))},!0);let J=p===G.Open;(0,m.O)(J,W.resolveContainers,(e,t)=>{l.actions.close(),(0,k.sP)(t,k.tJ.Loose)||(e.preventDefault(),null==h||h.focus())});let Z=(0,x.x)({open:p===G.Open,close:l.actions.refocusableClose}),Q=(0,M.M)(l,(0,s.useCallback)(e=>(0,A.E)(e.popoverState,{[G.Open]:C.ZM.Open,[G.Closed]:C.ZM.Closed}),[])),Y=(0,D.L6)();return s.createElement(b.Jl,{node:H},s.createElement(I.HO,null,s.createElement($.Provider,{value:null},s.createElement(K.Provider,{value:l},s.createElement(T.Z,{value:l.actions.refocusableClose},s.createElement(C.up,{value:Q},s.createElement(N,null,Y({ourProps:{ref:u},theirProps:i,slot:Z,defaultTag:"div",name:"Popover"}))))))))}),en=(0,D.yV)(function(e,t){let n=(0,s.useId)(),{id:o="headlessui-popover-button-".concat(n),disabled:r=!1,autoFocus:u=!1,...d}=e,p=J("Popover.Button"),[f,h,m,v,b,S,O]=(0,M.M)(p,(0,s.useCallback)(e=>[e.popoverState,p.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),T=(0,s.useRef)(null),C="headlessui-focus-sentinel-".concat((0,s.useId)()),_=X(),z=null==_?void 0:_.closeOthers,V=null!==(0,s.useContext)($);(0,s.useEffect)(()=>{if(!V)return p.actions.setButtonId(o),()=>p.actions.setButtonId(null)},[V,o,p]);let[j]=(0,s.useState)(()=>Symbol()),B=(0,y.T)(T,t,(0,I.AZ)(),(0,c.z)(e=>{if(!V){if(e)p.state.buttons.current.push(j);else{let e=p.state.buttons.current.indexOf(j);-1!==e&&p.state.buttons.current.splice(e,1)}p.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&p.actions.setButton(e)}})),N=(0,y.T)(T,t),H=(0,c.z)(e=>{var t,n,o;if(V){if(p.state.popoverState===G.Closed)return;switch(e.key){case L.R.Space:case L.R.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),p.actions.close(),null==(o=p.state.button)||o.focus()}}else switch(e.key){case L.R.Space:case L.R.Enter:e.preventDefault(),e.stopPropagation(),p.state.popoverState===G.Closed?(null==z||z(p.state.buttonId),p.actions.open()):p.actions.close();break;case L.R.Escape:if(p.state.popoverState!==G.Open)return null==z?void 0:z(p.state.buttonId);if(!T.current)return;let r=(0,F.vY)(T.current);if(r&&!T.current.contains(r))return;e.preventDefault(),e.stopPropagation(),p.actions.close()}}),W=(0,c.z)(e=>{V||e.key===L.R.Space&&e.preventDefault()}
1),q=(0,c.z)(e=>{var t,n;(0,R.P)(e.currentTarget)||r||(V?(p.actions.close(),null==(t=p.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),p.state.popoverState===G.Closed?(null==z||z(p.state.buttonId),p.actions.open()):p.actions.close(),null==(n=p.state.button)||n.focus()))}),U=(0,c.z)(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:K,focusProps:Z}=(0,i.F)({autoFocus:u}),{isHovered:Q,hoverProps:Y}=(0,l.X)({isDisabled:r}),{pressed:ee,pressProps:et}=(0,a.x)({disabled:r}),en=f===G.Open,eo=(0,x.x)({open:en,active:ee||en,disabled:r,hover:Q,focus:K,autofocus:u}),er=(0,g.f)(e,m),ei=V?(0,D.dG)({ref:N,type:er,onKeyDown:H,onClick:q,disabled:r||void 0,autoFocus:u},Z,Y,et):(0,D.dG)({ref:B,id:v,type:er,"aria-expanded":f===G.Open,"aria-controls":b?S:void 0,disabled:r||void 0,autoFocus:u,onKeyDown:H,onKeyUp:W,onClick:q,onMouseDown:U},Z,Y,et),el=(0,E.l)(),es=(0,c.z)(()=>{if(!w.Re(p.state.panel))return;let e=p.state.panel;(0,A.E)(el.current,{[E.N.Forwards]:()=>(0,k.jA)(e,k.TO.First),[E.N.Backwards]:()=>(0,k.jA)(e,k.TO.Last)})===k.fE.Error&&(0,k.jA)((0,k.GO)((0,F.k3)(p.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,A.E)(el.current,{[E.N.Forwards]:k.TO.Next,[E.N.Backwards]:k.TO.Previous}),{relativeTo:p.state.button})}),ea=(0,D.L6)();return s.createElement(s.Fragment,null,ea({ourProps:ei,theirProps:d,slot:eo,defaultTag:"button",name:"Popover.Button"}),en&&!V&&h&&s.createElement(P._,{id:C,ref:O,features:P.x.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:es}))}),eo=(0,D.yV)(Y),er=(0,D.yV)(Y),ei=(0,D.yV)(function(e,t){let n=(0,s.useId)(),{id:o="headlessui-popover-panel-".concat(n),focus:r=!1,anchor:i,portal:l=!1,modal:a=!1,transition:d=!1,...f}=e,m=J("Popover.Panel"),g=(0,M.M)(m,m.selectors.isPortalled),[b,R,w,z,V]=(0,M.M)(m,(0,s.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),j="headlessui-focus-sentinel-before-".concat(n),B="headlessui-focus-sentinel-after-".concat(n),N=(0,s.useRef)(null),H=(0,I.Vy)(i),[W,q]=(0,I.ES)(H),U=(0,I.U8)();H&&(l=!0);
1let[K,Z]=(0,s.useState)(null),X=(0,y.T)(N,t,H?W:null,m.actions.setPanel,Z),Q=(0,v.i)(R),Y=(0,v.i)(N.current);(0,p.e)(()=>(m.actions.setPanelId(o),()=>m.actions.setPanelId(null)),[o,m]);let et=(0,C.oJ)(),[en,eo]=(0,O.Y)(d,K,null!==et?(et&C.ZM.Open)===C.ZM.Open:b===G.Open);(0,h.m)(en,R,m.actions.close),(0,S.P)(!w&&a&&en,Y);let er=(0,c.z)(e=>{var t;if(e.key===L.R.Escape){if(m.state.popoverState!==G.Open||!N.current)return;let n=(0,F.vY)(N.current);if(n&&!N.current.contains(n))return;e.preventDefault(),e.stopPropagation(),m.actions.close(),null==(t=m.state.button)||t.focus()}});(0,s.useEffect)(()=>{var t;e.static||b===G.Closed&&(null==(t=e.unmount)||t)&&m.actions.setPanel(null)},[b,e.unmount,e.static,m]),(0,s.useEffect)(()=>{if(w||!r||b!==G.Open||!N.current)return;let e=(0,F.vY)(N.current);N.current.contains(e)||(0,k.jA)(N.current,k.TO.First)},[w,r,N.current,b]);let ei=(0,x.x)({open:b===G.Open,close:m.actions.refocusableClose}),el=(0,D.dG)(H?U():{},{ref:X,id:o,onKeyDown:er,onBlur:r&&b===G.Open?e=>{var t,n,o,r,i;let l=e.relatedTarget;l&&N.current&&(null!=(t=N.current)&&t.contains(l)||(m.actions.close(),(null!=(o=null==(n=z.current)?void 0:n.contains)&&o.call(n,l)||null!=(i=null==(r=V.current)?void 0:r.contains)&&i.call(r,l))&&l.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...f.style,...q,"--button-width":(0,u.h)(en,R,!0).width},...(0,O.X)(eo)}),es=(0,E.l)(),ea=(0,c.z)(()=>{let e=N.current;e&&(0,A.E)(es.current,{[E.N.Forwards]:()=>{var t;(0,k.jA)(e,k.TO.First)===k.fE.Error&&(null==(t=m.state.afterPanelSentinel.current)||t.focus())},[E.N.Backwards]:()=>{var e;null==(e=m.state.button)||e.focus({preventScroll:!0})}})}),eu=(0,c.z)(()=>{let e=N.current;e&&(0,A.E)(es.current,{[E.N.Forwards]:()=>{var e;if(!m.state.button)return;let t=null!=(e=(0,F.k3)(m.state.button))?e:document.body,n=(0,k.GO)(t),o=n.indexOf(m.state.button),r=n.slice(0,o+1),i=[...n.slice(o+1),...r];for(let e of i.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=K&&K.contains(e)){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}(0,k.jA)(i,k.TO.First,{sorted:!1})},[E.N.Backwards]:()=>{var t;(0,k.jA)(e,k.TO.Previous)===k.fE.Error&&(null==(t=m.state.button)||t.focus())}})}),ec=(0,D.L6)();return s.createElement(C.uu,null,s.createElement($.Provider,{value:o},s.createElement(T.Z,{value:m.actions.refocusableClose},s.createElement(_.Portal,{enabled:!!l&&(e.static||en),ownerDocument:Q},en&&g&&s.createElement(P._,{id:j,ref:z,features:P.x.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:ea}),ec({ourProps:el,theirProps:f,slot:ei,defaultTag:"div",features:ee,visible:en,name:"Popover.Panel"}),en&&g&&s.createElement(P._,{id:B,ref:V,features:P.x.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:eu})))))}),el=(0,D.yV)(function(e,t){let n=(0,s.useRef)(null),o=(0,y.T)(n,t),[r,i]=(0,s.useState)([]),l=(0,c.z)(e=>{i(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),a=(0,c.z)(e=>(i(t=>[...t,e]),()=>l(e))),u=(0,c.z)(()=>{var e;let t=(0,F.k3)(n.current);if(!t)return!1;
1let o=(0,F.vY)(n.current);return!!(null!=(e=n.current)&&e.contains(o))||r.some(e=>{var n,r;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(o))||(null==(r=t.getElementById(e.panelId.current))?void 0:r.contains(o))})}),d=(0,c.z)(e=>{for(let t of r)t.buttonId.current!==e&&t.close()}),p=(0,s.useMemo)(()=>({registerPopover:a,unregisterPopover:l,isFocusWithinPopoverGroup:u,closeOthers:d}),[a,l,u,d]),f=(0,x.x)({}),h=(0,D.L6)();return s.createElement(b.Jl,null,s.createElement(Z.Provider,{value:p},h({ourProps:{ref:o},theirProps:e,slot:f,defaultTag:"div",name:"Popover.Group"})))}),es=Object.assign(et,{Button:en,Backdrop:er,Overlay:eo,Panel:ei,Group:el})},44874:function(e,t,n){let o;n.r(t),n.d(t,{Radio:function(){return _},RadioGroup:function(){return j},RadioGroupDescription:function(){return V},RadioGroupLabel:function(){return z},RadioGroupOption:function(){return L}});var r=n(40871),i=n(98710),l=n(45113),s=n(83055),a=n(97099),u=n(99664),c=n(50659),d=n(17833),p=n(61302),f=n(10823),h=n(69975),m=n(55155),v=n(46168),g=n(92842),b=n(96241),S=n(21539),x=n(65117),y=n(91729),E=n(9077),O=n(92426),T=n(61447),I=n(29111),P=n(23934),C=((o=C||{})[o.RegisterOption=0]="RegisterOption",o[o.UnregisterOption=1]="UnregisterOption",o);let M={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:(0,S.z2)(n,e=>e.element.current)}},1(e,t){let n=e.options.slice(),o=e.options.findIndex(e=>e.id===t.id);return -1===o?e:(n.splice(o,1),{...e,options:n})}},R=(0,l.createContext)(null);function w(e){let t=(0,l.useContext)(R);if(null===t){let t=Error("<".concat(e," /> is missing a parent <RadioGroup /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}R.displayName="RadioGroupDataContext";let k=(0,l.createContext)(null);function A(e){let t=(0,l.useContext)(k);if(null===t){let t=Error("<".concat(e," /> is missing a parent <RadioGroup /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,A),t}return t}function F(e,t){return(0,y.E)(t.type,M,e,t)}k.displayName="RadioGroupActionsContext";let D=(0,O.yV)(function(e,t){let n=(0,l.useId)(),o=(0,m.B)(),{id:r="headlessui-radiogroup-".concat(n),value:i,form:d,name:p,onChange:g,by:b,disabled:y=o||!1,defaultValue:C,tabIndex:M=0,...w}=e,A=(0,s.J)(b),[D,L]=(0,l.useReducer)(F,{options:[]}),_=D.options,[z,V]=(0,P.bE)(),[j,B]=(0,T.f)(),N=(0,l.useRef)(null),G=(0,h.T)(N,t),H=(0,u.L)(C),[W,q]=(0,a.q)(i,g,H),U=(0,l.useMemo)(()=>_.find(e=>!e.propsRef.current.disabled),[_]),K=(0,l.useMemo)(()=>_.some(e=>A(e.propsRef.current.value,W)),[_,W]),J=(0,c.z)(e=>{var t;if(y||A(e,W))return!1;let n=null==(t=_.find(t=>A(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==q||q(e),!0)}),Z=(0,c.z)(e=>{if(!N.current)return;let t=_.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case I.R.Enter:(0,x.g)(e.currentTarget);break;case I.R.ArrowLeft:case I.R.ArrowUp:if(e.preventDefault(),e.stopPropagation(),(0,S.jA)(t,S.TO.Previous|S.TO.WrapAround)===S.fE.Success){let e=_.find(e=>(0,E.H9)(e.element.current));e&&J(e.propsRef.current.value)}break;case I.R.ArrowRight:case I.R.ArrowDown:if(e.preventDefault(),e.stopPropagation(),(0,S.jA)(t,S.TO.Next|S.TO.WrapAround)===S.fE.Success){let e=_.find(e=>(0,E.H9)(e.element.current));e&&J(e.propsRef.current.value)}break;case I.R.Space:{e.preventDefault(),e.stopPropagation();let t=_.find(e=>(0,E.H9)(e.element.current));t&&J(t.propsRef.current.value)}}}),X=(0,c.z)(e=>(L({type:0,...e}),()=>L({type:1,id:e.id}))),$=(0,l.useMemo)(()=>({value:W,firstOption:U,containsCheckedOption:K,disabled:y,compare:A,tabIndex:M,...D}),[W,U,K,y,A,M,D]),Q=(0,l.useMemo)(()=>({registerOption:X,change:J}),[X,J]),Y=(0,f.x)({value:W}),ee=(0,l.useCallback)(()=>{if(void 0!==H)return J(H)},[J,H]),et=(0,O.L6)();return l.createElement(B,{name:"RadioGroup.Description"},l.createElement(V,{name:"RadioGroup.Label"},l.createElement(k.Provider,{value:Q},l.createElement(R.Provider,{value:$},null!=p&&l.createElement(v.Mt,{disabled:y,data:{[p]:W||"on"},overrides:{type:"radio",checked:null!=W},form:d,onReset:ee}),et({ourProps:{ref:G,id:r,role:"radiogroup","aria-labelledby":z,"aria-describedby":j,onKeyDown:Z},theirProps:w,slot:Y,defaultTag:"div",name:"RadioGroup"})))))}),L=(0,O.yV)(function(e,t){var n;let o=w("RadioGroup.Option"),s=A("RadioGroup.Option"),a=(0,l.useId)(),{id:u="headlessui-radiogroup-option-".concat(a),value:m,disabled:v=o.disabled||!1,autoFocus:g=!1,...S}=e,x=(0,l.useRef)(null),y=(0,h.T)(x,t),[E,I]=(0,P.bE)(),[C,M]=(0,T.f)(),R=(0,p.E)({value:m,disabled:v});(0,d.e)(()=>s.registerOption({id:u,element:x,propsRef:R}),[u,s,x,R]);let k=(0,c.z)(e=>{var t;if((0,b.P)(e.currentTarget))return e.preventDefault();
1s.change(m)&&(null==(t=x.current)||t.focus())}),F=(null==(n=o.firstOption)?void 0:n.id)===u,{isFocusVisible:D,focusProps:L}=(0,r.F)({autoFocus:g}),{isHovered:_,hoverProps:z}=(0,i.X)({isDisabled:v}),V=o.compare(o.value,m),j=(0,O.dG)({ref:y,id:u,role:"radio","aria-checked":V?"true":"false","aria-labelledby":E,"aria-describedby":C,"aria-disabled":!!v||void 0,tabIndex:v?-1:V||!o.containsCheckedOption&&F?o.tabIndex:-1,onClick:v?void 0:k,autoFocus:g},L,z),B=(0,f.x)({checked:V,disabled:v,active:D,hover:_,focus:D,autofocus:g}),N=(0,O.L6)();return l.createElement(M,{name:"RadioGroup.Description"},l.createElement(I,{name:"RadioGroup.Label"},N({ourProps:j,theirProps:S,slot:B,defaultTag:"div",name:"RadioGroup.Option"})))}),_=(0,O.yV)(function(e,t){var n;let o=w("Radio"),s=A("Radio"),a=(0,l.useId)(),u=(0,g.Q)(),v=(0,m.B)(),{id:S=u||"headlessui-radio-".concat(a),value:x,disabled:y=o.disabled||v||!1,autoFocus:E=!1,...I}=e,C=(0,l.useRef)(null),M=(0,h.T)(C,t),R=(0,P.wp)(),k=(0,T.z)(),F=(0,p.E)({value:x,disabled:y});(0,d.e)(()=>s.registerOption({id:S,element:C,propsRef:F}),[S,s,C,F]);let D=(0,c.z)(e=>{var t;if((0,b.P)(e.currentTarget))return e.preventDefault();s.change(x)&&(null==(t=C.current)||t.focus())}),{isFocusVisible:L,focusProps:_}=(0,r.F)({autoFocus:E}),{isHovered:z,hoverProps:V}=(0,i.X)({isDisabled:y}),j=(null==(n=o.firstOption)?void 0:n.id)===S,B=o.compare(o.value,x),N=(0,O.dG)({ref:M,id:S,role:"radio","aria-checked":B?"true":"false","aria-labelledby":R,"aria-describedby":k,"aria-disabled":!!y||void 0,tabIndex:y?-1:B||!o.containsCheckedOption&&j?o.tabIndex:-1,autoFocus:E,onClick:y?void 0:D},_,V),G=(0,f.x)({checked:B,disabled:y,hover:z,focus:L,autofocus:E});return(0,O.L6)()({ourProps:N,theirProps:I,slot:G,defaultTag:"span",name:"Radio"})}),z=P.Label,V=T.Description,j=Object.assign(D,{Option:L,Radio:_,Label:z,Description:V})},65725:function(e,t,n){n.r(t),n.d(t,{Switch:function(){return w},SwitchDescription:function(){return R},SwitchGroup:function(){return C},SwitchLabel:function(){return M}});var o=n(40871),r=n(98710),i=n(45113),l=n(92697),s=n(97099),a=n(99664),u=n(88320),c=n(50659),d=n(36454),p=n(10823),f=n(69975),h=n(55155),m=n(46168),v=n(92842),g=n(96241),b=n(88028),S=n(65117),x=n(92426),y=n(61447),E=n(29111),O=n(23934);let T=(0,i.createContext)(null);T.displayName="GroupContext";let I=i.Fragment,P=(0,x.yV)(function(e,t){var n;let b=(0,i.useId)(),I=(0,v.Q)(),P=(0,h.B)(),{id:C=I||"headlessui-switch-".concat(b),disabled:M=P||!1,checked:R,defaultChecked:w,onChange:k,name:A,value:F,form:D,autoFocus:L=!1,..._}=e,z=(0,i.useContext)(T),[V,j]=(0,i.useState)(null),B=(0,i.useRef)(null),N=(0,f.T)(B,t,null===z?null:z.setSwitch,j),G=(0,a.L)(w),[H,W]=(0,s.q)(R,k,null!=G&&G),q=(0,u.G)(),[U,K]=(0,i.useState)(!1),J=(0,c.z)(()=>{K(!0),null==W||W(!H),q.nextFrame(()=>{K(!1)})}),Z=(0,c.z)(e=>{if((0,g.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),J()}),X=(0,c.z)(e=>{e.key===E.R.Space?(e.preventDefault(),J()):e.key===E.R.Enter&&(0,S.g)(e.currentTarget)}),$=(0,c.z)(e=>e.preventDefault()),Q=(0,O.wp)(),Y=(0,y.z)(),{isFocusVisible:ee,focusProps:et}=(0,o.F)({autoFocus:L}),{isHovered:en,hoverProps:eo}=(0,r.X)({isDisabled:M}),{pressed:er,pressProps:ei}=(0,l.x)({disabled:M}),el=(0,p.x)({checked:H,disabled:M,hover:en,focus:ee,active:er,autofocus:L,changing:U}),es=(0,x.dG)({id:C,ref:N,role:"switch",type:(0,d.f)(e,V),tabIndex:-1===e.tabIndex?0:null!=(n=e.tabIndex)?n:0,"aria-checked":H,"aria-labelledby":Q,"aria-describedby":Y,disabled:M||void 0,autoFocus:L,onClick:Z,onKeyUp:X,onKeyPress:$},et,eo,ei),ea=(0,i.useCallback)(()=>{if(void 0!==G)return null==W?void 0:W(G)},[W,G]),eu=(0,x.L6)();return i.createElement(i.Fragment,null,null!=A&&i.createElement(m.Mt,{disabled:M,data:{[A]:F||"on"},overrides:{type:"checkbox",checked:H},form:D,onReset:ea}),eu({ourProps:es,theirProps:_,slot:el,defaultTag:"button",name:"Switch"}))}),C=function(e){var t;let[n,o]=(0,i.useState)(null),[r,l]=(0,O.bE)(),[s,a]=(0,y.f)(),u=(0,i.useMemo)(()=>({switch:n,setSwitch:o}),[n,o]),c=(0,x.L6)();return i.createElement(a,{name:"Switch.Description",value:s},i.createElement(l,{name:"Switch.Label",value:r,props:{htmlFor:null==(t=u.switch)?void 0:t.id,onClick(e){n&&(b.dz(e.currentTarget)&&e.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},i.createElement(T.Provider,{value:u},c({ourProps:{},theirProps:e,slot:{},defaultTag:I,name:"Switch.Group"}))))},M=O.Label,R=y.Description,w=Object.assign(P,{Group:C,Label:M,Description:R})},37737:function(e,t,n){let o,r,i;n.r(t),n.d(t,{Tab:function(){return H},TabGroup:function(){return j},TabList:function(){return B},TabPanel:function(){return G},TabPanels:function(){return N}});var l=n(40871),s=n(98710),a=n(45113),u=n(92697),c=n(50659),d=n(17833),p=n(61302),f=n(36454),h=n(10823),m=n(69975),v=n(14699),g=n(33934);function b(e){let{onFocus:t}=e,[n,o]=(0,a.useState)(!0),r=(0,v.t)();return n?a.createElement(g._,{as:"button",type:"button",features:g.x.Focusable,onFocus:e=>{e.preventDefault();let n,i=50;n=requestAnimationFrame(function e(){if(i--<=0){n&&cancelAnimationFrame(n);return}if(t()){if(cancelAnimationFrame(n),!r.current)return;o(!1);return}n=requestAnimationFrame(e)})}}):null}var S=n(21539),x=n(91729),y=n(71483),E=n(9077),O=n(92426);let T=a.createContext(null);function I(e){let{children:t}=e,n=a.useRef({groups:new Map,get(e,t){var n;let o=this.groups.get(e);o||(o=new Map,this.groups.set(e,o));let r=null!=(n=o.get(t))?n:0;return o.set(t,r+1),[Array.from(o.keys()).indexOf(t),function(){let e=o.get(t);e>1?o.set(t,e-1):o.delete(t)}]}});return a.createElement(T.Provider,{value:n},t)}function P(e){let t=a.useContext(T);if(!t)throw Error("You must wrap your component in a <StableCollection>");let n=a.useId(),[o,r]=t.current.get(e,n);return a.useEffect(()=>r,[]),o}var C=n(29111),M=((o=M||{})[o.Forwards=0]="Forwards",o[o.Backwards=1]="Backwards",o),R=((r=R||{})[r.Less=-1]="Less",r[r.Equal=0]="Equal",r[r.Greater=1]="Greater",r),w=((i=w||{})[i.SetSelectedIndex=0]="SetSelectedIndex",i[i.RegisterTab=1]="RegisterTab",i[i.UnregisterTab=2]="UnregisterTab",i[i.RegisterPanel=3]="RegisterPanel",i[i.UnregisterPanel=4]="UnregisterPanel",i);let k={0(e,t){var n;let o=(0,S.z2)(e.tabs,e=>e.current),r=(0,S.z2)(e.panels,e=>e.current),i=o.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),l={...e,tabs:o,panels:r};if(t.index<0||t.index>o.length-1){let n=(0,x.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,x.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return l;let r=(0,x.E)(n,{0:()=>o.indexOf(i[0]),1:()=>o.indexOf(i[i.length-1])});return{...l,selectedIndex:-1===r?e.selectedIndex:r}}let s=o.slice(0,t.index),a=[...o.slice(t.index),...s].find(e=>i.includes(e));if(!a)return l;let u=null!=(n=o.indexOf(a))?n:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...l,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],o=(0,S.z2)([...e.tabs,t.tab],e=>e.current),r=e.selectedIndex;return e.info.current.isControlled||-1===(r=o.indexOf(n))&&(r=e.selectedIndex),{...e,tabs:o,selectedIndex:r}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>
1e.panels.includes(t.panel)?e:{...e,panels:(0,S.z2)([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},A=(0,a.createContext)(null);function F(e){let t=(0,a.useContext)(A);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Tab.Group /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,F),t}return t}A.displayName="TabsDataContext";let D=(0,a.createContext)(null);function L(e){let t=(0,a.useContext)(D);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Tab.Group /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,L),t}return t}function _(e,t){return(0,x.E)(t.type,k,e,t)}D.displayName="TabsActionsContext";let z=O.VN.RenderStrategy|O.VN.Static,V=(0,O.yV)(function(e,t){var n,o;let r=(0,a.useId)(),{id:i="headlessui-tabs-tab-".concat(r),disabled:p=!1,autoFocus:v=!1,...g}=e,{orientation:b,activation:T,selectedIndex:I,tabs:M,panels:R}=F("Tab"),w=L("Tab"),k=F("Tab"),[A,D]=(0,a.useState)(null),_=(0,a.useRef)(null),z=(0,m.T)(_,t,D);(0,d.e)(()=>w.registerTab(_),[w,_]);let V=P("tabs"),j=M.indexOf(_);-1===j&&(j=V);let B=j===I,N=(0,c.z)(e=>{let t=e();if(t===S.fE.Success&&"auto"===T){let e=(0,E.vY)(_.current),t=k.tabs.findIndex(t=>t.current===e);-1!==t&&w.change(t)}return t}),G=(0,c.z)(e=>{let t=M.map(e=>e.current).filter(Boolean);if(e.key===C.R.Space||e.key===C.R.Enter){e.preventDefault(),e.stopPropagation(),w.change(j);return}switch(e.key){case C.R.Home:case C.R.PageUp:return e.preventDefault(),e.stopPropagation(),N(()=>(0,S.jA)(t,S.TO.First));case C.R.End:case C.R.PageDown:return e.preventDefault(),e.stopPropagation(),N(()=>(0,S.jA)(t,S.TO.Last))}if(N(()=>(0,x.E)(b,{vertical:()=>e.key===C.R.ArrowUp?(0,S.jA)(t,S.TO.Previous|S.TO.WrapAround):e.key===C.R.ArrowDown?(0,S.jA)(t,S.TO.Next|S.TO.WrapAround):S.fE.Error,horizontal:()=>e.key===C.R.ArrowLeft?(0,S.jA)(t,S.TO.Previous|S.TO.WrapAround):e.key===C.R.ArrowRight?(0,S.jA)(t,S.TO.Next|S.TO.WrapAround):S.fE.Error}))===S.fE.Success)return e.preventDefault()}),H=(0,a.useRef)(!1),W=(0,c.z)(()=>{var e;H.current||(H.current=!0,null==(e=_.current)||e.focus({preventScroll:!0}),w.change(j),(0,y.Y)(()=>{H.current=!1}))}),q=(0,c.z)(e=>{e.preventDefault()}),{isFocusVisible:U,focusProps:K}=(0,l.F)({autoFocus:v}),{isHovered:J,hoverProps:Z}=(0,s.X)({isDisabled:p}),{pressed:X,pressProps:$}=(0,u.x)({disabled:p}),Q=(0,h.x)({selected:B,hover:J,active:X,focus:U,autofocus:v,disabled:p}),Y=(0,O.dG)({ref:z,onKeyDown:G,onMouseDown:q,onClick:W,id:i,role:"tab",type:(0,f.f)(e,A),"aria-controls":null==(o=null==(n=R[j])?void 0:n.current)?void 0:o.id,"aria-selected":B,tabIndex:B?0:-1,disabled:p||void 0,autoFocus:v},K,Z,$);return(0,O.L6)()({ourProps:Y,theirProps:g,slot:Q,defaultTag:"button",name:"Tabs.Tab"})}),j=(0,O.yV)(function(e,t){let{defaultIndex:n=0,vertical:o=!1,manual:r=!1,onChange:i,selectedIndex:l=null,...s}=e,u=o?"vertical":"horizontal",f=r?"manual":"auto",v=null!==l,g=(0,p.E)({isControlled:v}),x=(0,m.T)(t),[y,E]=(0,a.useReducer)(_,{info:g,selectedIndex:null!=l?l:n,tabs:[],panels:[]}),T=(0,h.x)({selectedIndex:y.selectedIndex}),P=(0,p.E)(i||(()=>{})),C=(0,p.E)(y.tabs),M=(0,a.useMemo)(()=>({orientation:u,activation:f,...y}),[u,f,y]),R=(0,c.z)(e=>(E({type:1,tab:e}),()=>E({type:2,tab:e}))),w=(0,c.z)(e=>(E({type:3,panel:e}),()=>E({type:4,panel:e}))),k=(0,c.z)(e=>{F.current!==e&&P.current(e),v||E({type:0,index:e})}),F=(0,p.E)(v?e.selectedIndex:y.selectedIndex),L=(0,a.useMemo)(()=>({registerTab:R,registerPanel:w,change:k}),[]);(0,d.e)(()=>{E({type:0,index:null!=l?l:n})},[l]),(0,d.e)(()=>{if(void 0===F.current||y.tabs.length<=0)return;let e=(0,S.z2)(y.tabs,e=>e.current);e.some((e,t)=>y.tabs[t]!==e)&&k(e.indexOf(y.tabs[F.current]))});let z=(0,O.L6)();return a.createElement(I,null,a.createElement(D.Provider,{value:L},a.createElement(A.Provider,{value:M},M.tabs.length<=0&&a.createElement(b,{onFocus:()=>{var e,t;for(let n of C.current)if((null==(e=n.current)?void 0:e.tabIndex)===0)return null==(t=n.current)||t.focus(),!0;return!1}}),z({ourProps:{ref:x},theirProps:s,slot:T,defaultTag:"div",name:"Tabs"}))))}),B=(0,O.yV)(function(e,t){let{orientation:n,selectedIndex:o}=F("Tab.List"),r=(0,m.T)(t),i=(0,h.x)({selectedIndex:o});return(0,O.L6)()({ourProps:{ref:r,role:"tablist","aria-orientation":n},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.List"})}),N=(0,O.yV)(function(e,t){let{selectedIndex:n}=F("Tab.Panels"),o=(0,m.T)(t),r=(0,h.x)({selectedIndex:n});return(0,O.L6)()({ourProps:{ref:o},theirProps:e,slot:r,defaultTag:"div",name:"Tabs.Panels"})}),G=(0,O.yV)(function(e,t){var n,o,r,i;let s=(0,a.useId)(),{id:u="headlessui-tabs-panel-".concat(s),tabIndex:c=0,...p}=e,{selectedIndex:f,tabs:v,panels:b}=F("Tab.Panel"),S=L("Tab.Panel"),x=(0,a.useRef)(null),y=(0,m.T)(x,t);(0,d.e)(()=>S.registerPanel(x),[S,x]);let E=P("panels"),T=b.indexOf(x);-1===T&&(T=E);let I=T===f,{isFocusVisible:C,focusProps:M}=(0,l.F)(),R=(0,h.x)({selected:I,focus:C}),w=(0,O.dG)({ref:y,id:u,role:"tabpanel","aria-labelledby":null==(o=null==(n=v[T])?void 0:n.current)?void 0:o.id,tabIndex:I?c:-1},M),k=(0,O.L6)();return I||null!=(r=p.unmount)&&!r||null!=(i=p.static)&&i?k({ourProps:w,theirProps:p,slot:R,defaultTag:"div",features:z,visible:I,name:"Tabs.Panel"}):a.createElement(g._,{"aria-hidden":"true",...w})}
1),H=Object.assign(V,{Group:j,List:B,Panels:N,Panel:G})},40055:function(e,t,n){n.r(t),n.d(t,{Textarea:function(){return p}});var o=n(40871),r=n(98710),i=n(45113),l=n(10823),s=n(55155),a=n(92842),u=n(92426),c=n(61447),d=n(23934);let p=(0,u.yV)(function(e,t){let n=(0,i.useId)(),p=(0,a.Q)(),f=(0,s.B)(),{id:h=p||"headlessui-textarea-".concat(n),disabled:m=f||!1,autoFocus:v=!1,invalid:g=!1,...b}=e,S=(0,d.wp)(),x=(0,c.z)(),{isFocused:y,focusProps:E}=(0,o.F)({autoFocus:v}),{isHovered:O,hoverProps:T}=(0,r.X)({isDisabled:m}),I=(0,u.dG)({ref:t,id:h,"aria-labelledby":S,"aria-describedby":x,"aria-invalid":g?"true":void 0,disabled:m||void 0,autoFocus:v},E,T),P=(0,l.x)({disabled:m,invalid:g,hover:O,focus:y,autofocus:v});return(0,u.L6)()({ourProps:I,theirProps:b,slot:P,defaultTag:"textarea",name:"Textarea"})})},83055:function(e,t,n){n.d(t,{J:function(){return i}});var o=n(45113);function r(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return(0,o.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}},97099:function(e,t,n){n.d(t,{q:function(){return l}});var o=n(45113),r=n(52509),i=n(50659);function l(e,t,n){let[l,s]=(0,o.useState)(n),a=void 0!==e,u=(0,o.useRef)(a),c=(0,o.useRef)(!1),d=(0,o.useRef)(!1);return!a||u.current||c.current?a||!u.current||d.current||(d.current=!0,u.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,u.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:l,(0,i.z)(e=>(a||(0,r.flushSync)(()=>s(e)),null==t?void 0:t(e)))]}},99664:function(e,t,n){n.d(t,{L:function(){return r}});var o=n(45113);function r(e){let[t]=(0,o.useState)(e);return t}},46168:function(e,t,n){n.d(t,{Mt:function(){return p},wR:function(){return c}});var o=n(45113),r=n(52509),i=n(88320),l=n(65117),s=n(92426),a=n(33934);let u=(0,o.createContext)(null);function c(e){let[t,n]=(0,o.useState)(null);return o.createElement(u.Provider,{value:{target:t}},e.children,o.createElement(a._,{features:a.x.Hidden,ref:n}))}function d(e){let{children:t}=e,n=(0,o.useContext)(u);if(!n)return o.createElement(o.Fragment,null,t);let{target:i}=n;return i?(0,r.createPortal)(o.createElement(o.Fragment,null,t),i):null}function p(e){let{data:t,form:n,disabled:r,onReset:u,overrides:c}=e,[p,h]=(0,o.useState)(null),m=(0,i.G)();return(0,o.useEffect)(()=>{if(u&&p)return m.addEventListener(p,"reset",u)},[p,n,u]),o.createElement(d,null,o.createElement(f,{setForm:h,formId:n}),(0,l.t)(t).map(e=>{let[t,i]=e;return o.createElement(a._,{features:a.x.Hidden,...(0,s.oA)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:t,value:i,...c})})}))}function f(e){let{setForm:t,formId:n}=e;return(0,o.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:o.createElement(a._,{features:a.x.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}},73516:function(e,t,n){n.d(t,{F:function(){return r},_:function(){return i}});var o=n(45113);let r=o.forwardRef(function(e,t){let{children:n,freeze:r}=e,l=i(r,n);return(0,o.isValidElement)(l)?(0,o.cloneElement)(l,{ref:t}):o.createElement(o.Fragment,null,l)});function i(e,t){let[n,r]=(0,o.useState)(t);return e||n===t||r(t),e?n:t}},65117:function(e,t,n){n.d(t,{g:function(){return i},t:function(){return function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[l,s]of Object.entries(t))!function t(n,i,l){if(Array.isArray(l))for(let[e,o]of l.entries())t(n,r(i,e.toString()),o);else l instanceof Date?n.push([i,l.toISOString()]):"boolean"==typeof l?n.push([i,l?"1":"0"]):"string"==typeof l?n.push([i,l]):"number"==typeof l?n.push([i,"".concat(l)]):null==l?n.push([i,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(l)&&!(0,o.isValidElement)(l)&&e(l,i,n)}(i,r(n,l),s);return i}}});var o=n(45113);function r(e,t){return e?e+"["+t+"]":t}function i(e){var t,n;let o=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(o){for(let t of o.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type)){t.click();return}null==(n=o.requestSubmit)||n.call(o)}}},82440:function(e,t,n){var o=n(45113);let r=o.forwardRef(function(e,t){let{title:n,titleId:r,...i}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))});t.Z=r},21266:function(e,t,n){var o=n(45113);let r=o.forwardRef(function(e,t){let{title:n,titleId:r,...i}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,o.createElement("path",{fillRule:"evenodd",d:"M11.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H21a.75.75 0 0 1 0 1.5H4.81l6.22 6.22a.75.75 0 1 1-1.06 1.06l-7.5-7.5a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))});t.Z=r},97276:function(e,t,n){n.d(t,{M:function(){return eE}});let o="pw-web-vitals",r="pw-web-vitals_deviceId",i=class e{static configureLogging(t){e.isLoggingEnabled=t}static log(t,n="log"){e.isLoggingEnabled&&e.outputToConsole({level:n,message:t})}static outputToConsole(e){let t={error:"color: black; background-color: #ef4444; padding: 4px; border-radius: 8px;",log:"color: black; background-color: #6366f1; padding: 4px; border-radius: 8px;",warn:"color: black; background-color: #f97316; padding: 4px; border-radius: 8px;",info:"color: black; background-color: #0ea5e9; padding: 4px; border-radius: 8px;",default:"color: white;"},n=t[e.level]||t.default;console.log(`%cPW Web Vitals [${e.level.toUpperCase()}]:`,n,e.message)}};function l(e,t=null){try{let n=localStorage.getItem(e);return null===n?t:JSON.parse(n)}catch(n){return console.error(`Error retrieving or parsing item from local storage for key "${e}":`,n),t}}function s(e,t){try{let n=JSON.stringify(t);localStorage.setItem(e,n)}catch(t){console.error(`Error setting item in local storage for key "${e}":`,t)}}function a(){return function(e,t){let n="";for(let e=0;e<62;e+=1){let e=Math.floor(Math.random()*((null==t?void 0:t.length)||0));n+=t[e]}return n}(0,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function u(){try{return localStorage.getItem("randomId")}catch(e){return console.error("Error retrieving random ID from local storage:",e),null}}i.isLoggingEnabled=!0;let c=()=>{try{let e=u(),t=l(r);return t?e:(t=a(),s(r,t),t)}catch(e){return console.error("Error getting device ID:",e),a()}},d=e=>{let{pathname:t,metricName:n}=e,r=l(o),a=(null==r?void 0:r.paths)??{},{metricsSent:u={},pendingMetrics:c=[]}=a[t]??{metricsSent:{},pendingMetrics:[]},d=u[n]??0;Date.now()-d>=864e5?(u[n]=Date.now(),i.log(`Metric "${n}" sent for ${t}`,"info")):i.log(`Metric "${n}" not sent (still within 24 hours window)`,"info");let p=c.filter(e=>e!==n),f={...a,[t]:{metricsSent:u,pendingMetrics:p}};s(o,{...r,paths:f})};async function p(e,t){let n=new Date().toISOString(),{organizationId:o,apiUrl:r}=t,i=u();if(!i){console.error("Web Vitals: Random ID not found in local storage","error");return}try{(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",organizationid:o,userid:i,"x-custom-lang":"en","x-timestamp":n},body:JSON.stringify(e)})).ok?d(e):console.error("Web Vitals: Request failed","error")}catch(e){console.error(`Web Vitals: Request failed: ${e}`,"error")}}var f,h,m=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},v=function(e){if("loading"===document.readyState)return"loading";var t=m();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},g=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},b=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var o=e,r=o.id?"#"+o.id:g(o)+(o.classList&&o.classList.value&&o.classList.value.trim()&&o.classList.value.trim().length?"."+o.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+r.length>(t||100)-1)return n||r;if(n=n?r+">"+n:r,o.id)break;e=o.parentNode}}catch{}return n},S=-1,x=function(){return S},y=function(e){addEventListener("pageshow",function(t){t.persisted&&(S=t.timeStamp,e(t))},!0)},E=function(){var e=m();return e&&e.activationStart||0},O=function(e,t){var n=m(),o="navigate";return x()>=0?o="back-forward-cache":n&&(document.prerendering||E()>0?o="prerender":document.wasDiscarded?o="restore":n.type&&(o=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:o}},T=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var o=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch{}},I=function(e,t,n,o){var r,i;return function(l){var s;t.value>=0&&(l||o)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,t.rating=(s=t.value)>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t))}},P=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},C=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},M=function(e){var t=!1;return function(){t||(e(),t=!0)}},R=-1,w=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},k=function(e){"hidden"===document.visibilityState&&R>-1&&(R="visibilitychange"===e.type?e.timeStamp:0,F())},A=function(){addEventListener("visibilitychange",k,!0),addEventListener("prerenderingchange",k,!0)},F=function(){removeEventListener("visibilitychange",k,!0),removeEventListener("prerenderingchange",k,!0)},D=function(){return R<0&&(R=w(),A(),y(function(){setTimeout(function(){R=w(),A()},0)})),{get firstHiddenTime(){return R}}},L=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},_=[1800,3e3],z=function(e,t){t=t||{},L(function(){var n,o=D(),r=O("FCP"),i=T("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<o.firstHiddenTime&&(r.value=Math.max(e.startTime-E(),0),r.entries.push(e),n(!0)))})});i&&(n=I(e,r,_,t.reportAllChanges),y(function(o){n=I(e,r=O("FCP"),_,t.reportAllChanges),P(function(){r.value=performance.now()-o.timeStamp,n(!0)})}))})},V=[.1,.25],j=function(e,t){var n,o;n=function(t){e(function(e){var t,n={};if(e.entries.length){var o=e.entries.reduce(function(e,t){return e&&e.value>t.value?e:t});if(o&&o.sources&&o.sources.length){var r=(t=o.sources).find(function(e){return e.no
1de&&1===e.node.nodeType})||t[0];r&&(n={largestShiftTarget:b(r.node),largestShiftTime:o.startTime,largestShiftValue:o.value,largestShiftSource:r,largestShiftEntry:o,loadState:v(o.startTime)})}}return Object.assign(e,{attribution:n})}(t))},o=(o=t)||{},z(M(function(){var e,t=O("CLS",0),r=0,i=[],l=function(n){n.forEach(function(e){if(!e.hadRecentInput){var t=i[0],n=i[i.length-1];r&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e])}}),r>t.value&&(t.value=r,t.entries=i,e())},s=T("layout-shift",l);s&&(e=I(n,t,V,o.reportAllChanges),C(function(){l(s.takeRecords()),e(!0)}),y(function(){r=0,e=I(n,t=O("CLS",0),V,o.reportAllChanges),P(function(){return e()})}),setTimeout(e,0))}))},B=function(e,t){z(function(t){e(function(e){var t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:v(x())};if(e.entries.length){var n=m(),o=e.entries[e.entries.length-1];if(n){var r=n.activationStart||0,i=Math.max(0,n.responseStart-r);t={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:v(e.entries[0].startTime),navigationEntry:n,fcpEntry:o}}}return Object.assign(e,{attribution:t})}(t))},t)},N=0,G=1/0,H=0,W=function(e){e.forEach(function(e){e.interactionId&&(G=Math.min(G,e.interactionId),N=(H=Math.max(H,e.interactionId))?(H-G)/7+1:0)})},q=function(){return f?N:performance.interactionCount||0},U=function(){"interactionCount"in performance||f||(f=T("event",W,{type:"event",buffered:!0,durationThreshold:0}))},K=[],J=new Map,Z=0,X=function(){var e=Math.min(K.length-1,Math.floor((q()-Z)/50));return K[e]},$=[],Q=function(e){if($.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=K[K.length-1],n=J.get(e.interactionId);if(n||K.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var o={id:e.interactionId,latency:e.duration,entries:[e]};J.set(o.id,o),K.push(o)}K.sort(function(e,t){return t.latency-e.latency}),K.length>10&&K.splice(10).forEach(function(e){return J.delete(e.id)})}}},Y=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=M(e),"hidden"===document.visibilityState?e():(n=t(e),C(e)),n},ee=[200,500],et=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},L(function(){U();var n,o,r=O("INP"),i=function(e){Y(function(){e.forEach(Q);var t=X();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,o())})},l=T("event",i,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});o=I(e,r,ee,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),C(function(){i(l.takeRecords()),o(!0)}),y(function(){Z=q(),K.length=0,J.clear(),o=I(e,r=O("INP"),ee,t.reportAllChanges)}))}))},en=[],eo=[],er=0,ei=new WeakMap,el=new Map,es=-1,ea=function(e){en=en.concat(e),eu()},eu=function(){es<0&&(es=Y(ec))},ec=function(){el.size>10&&el.forEach(function(e,t){J.has(t)||el.delete(t)});var e=K.map(function(e){return ei.get(e.entries[0])}),t=eo.length-50;eo=eo.filter(function(n,o){return o>=t||e.includes(n)});for(var n=new Set,o=0;o<eo.length;o++){var r=eo[o];ed(r.startTime,r.processingEnd).forEach(function(e){n.add(e)})}var i=en.length-1-50;en=en.filter(function(e,t){return e.startTime>er&&t>i||n.has(e)}),es=-1};$.push(function(e){e.interactionId&&e.target&&!el.has(e.interactionId)&&el.set(e.interactionId,e.target)},function(e){var t,n=e.startTime+e.duration;er=Math.max(er,e.processingEnd);for(var o=eo.length-1;o>=0;o--){var r=eo[o];if(8>=Math.abs(n-r.renderTime)){(t=r).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},eo.push(t)),(e.interactionId||"first-input"===e.entryType)&&ei.set(e,t),eu()});var ed=function(e,t){for(var n,o=[],r=0;n=en[r];r++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;o.push(n)}return o},ep=function(e,t){h||(h=T("long-animation-frame",ea)),et(function(t){var n,o,r,i,l,s,a,u,c,d;e((n=t.entries[0],o=ei.get(n),r=n.processingStart,i=o.processingEnd,l=o.entries.sort(function(e,t){return e.processingStart-t.processingStart}),s=ed(n.startTime,i),u=(a=t.entries.find(function(e){return e.target}))&&a.target||el.get(n.interactionId),c=[n.startTime+n.duration,i].concat(s.map(function(e){return e.startTime+e.duration})),d=Math.max.apply(Math,c),Object.assign(t,{attribution:{interactionTarget:b(u),interactionTargetElement:u,interactionType:n.name.startsWith("key")?"keyboard":"pointer",interactionTime:n.startTime,nextPaintTime:d,processedEventEntries:l,longAnimationFrameEntries:s,inputDelay:r-n.startTime,processingDuration:i-r,presentationDelay:Math.max(d-i,0),loadState:v(n.startTime)}})))},t)},ef=[2500,4e3],eh={},em=function(e,t){var n,o;n=function(t){e(function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var n=m();if(n){var o=n.activationStart||0,r=e.entries[e.entries.length-1],i=r.url&&performance.getEntriesByType("resource").filter(function(e){return e.name===r.url})[0],l=Math.max(0,n.responseStart-o),s=Math.max(l,i?(i.requestStart||i.startTime)-o:0),a=Math.max(s,i?i.responseEnd-o:0),u=Math.max(a,r.startTime-o);t={element:b(r.element),timeToFirstByte:l,resourceLoadDelay:s-l,resourceLoadDuration:a-s,elementRenderDelay:u-a,navigationEntry:n,lcpEntry:r},r.url&&(t.url=r.url),i&&(t.lcpResourceEntry=i)}}return Object.assign(e,{attribution:t})}(t))},o=(o=t)||{},L(function(){var e,t=D(),r=O("LCP"),i=function(n){o.reportAllChanges||(n=n.slice(-1)),n.forEac
1h(function(n){n.startTime<t.firstHiddenTime&&(r.value=Math.max(n.startTime-E(),0),r.entries=[n],e())})},l=T("largest-contentful-paint",i);if(l){e=I(n,r,ef,o.reportAllChanges);var s=M(function(){eh[r.id]||(i(l.takeRecords()),l.disconnect(),eh[r.id]=!0,e(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return Y(s)},{once:!0,capture:!0})}),C(s),y(function(t){e=I(n,r=O("LCP"),ef,o.reportAllChanges),P(function(){r.value=performance.now()-t.timeStamp,eh[r.id]=!0,e(!0)})})}})},ev=[800,1800],eg=function e(t){document.prerendering?L(function(){return e(t)}):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},eb=function(e,t){t=t||{};var n=O("TTFB"),o=I(e,n,ev,t.reportAllChanges);eg(function(){var r=m();r&&(n.value=Math.max(r.responseStart-E(),0),n.entries=[r],o(!0),y(function(){(o=I(e,n=O("TTFB",0),ev,t.reportAllChanges))(!0)}))})},eS=function(e,t){eb(function(t){e(function(e){var t={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(e.entries.length){var n=e.entries[0],o=n.activationStart||0,r=Math.max((n.workerStart||n.fetchStart)-o,0),i=Math.max(n.domainLookupStart-o,0),l=Math.max(n.connectStart-o,0),s=Math.max(n.connectEnd-o,0);t={waitingDuration:r,cacheDuration:i-r,dnsDuration:l-i,connectionDuration:s-l,requestDuration:e.value-s,navigationEntry:n}}return Object.assign(e,{attribution:t})}(t))},t)};let ex=!1;function ey(e,t){let{hostname:n,href:o,pathname:r,search:l,mainProps:s}=t,{enableLogs:a,apiUrl:u,organizationId:f,userId:h,...m}=s,v=c(),{name:g,attribution:b,id:S,value:x,rating:y,navigationType:E}=e,O={metricName:g,metricId:S,metricValue:`${x}`,metricRating:y,metricNavigationType:E,hostname:n,href:o,pathname:r,searchParams:l,userAgent:navigator.userAgent,sdkVersion:"0.0.0-alpha-2.3",deviceId:v,sentAt:`${Date.now()}`,...m};switch(g){case"CLS":O.debugTarget=b.largestShiftTarget;break;case"INP":O.debugTarget=b.interactionTarget;break;case"LCP":O.debugTarget=b.element;break;default:O.debugTarget=""}i.log(`Metric Collected - ${e.name}`,"info"),"localhost"===window.location.hostname?(console.log(O),d(O)):p(O,{apiUrl:u,organizationId:f})}function eE(e){if("u">typeof window&&!ex){ex=!0,i.log("@pw-tech/web-vitals has been successfully initialised"),i.configureLogging(e.enableLogs||!1);let{hostname:t,href:n,pathname:r,search:a}=window.location,u=l(o),c=(null==u?void 0:u.paths)??{};!function(e){let{localStorageData:t,pathDetails:n,pathname:r}=e,{metricsSent:i={},pendingMetrics:l=[]}=n[r]??{metricsSent:{},pendingMetrics:[]},a=new Set(["LCP","CLS","FCP","INP","TTFB",...l]),u=Date.now();a.forEach(t=>{if(u-(i[t]??0)>=864e5)switch(t){case"LCP":em(t=>ey(t,e));break;case"CLS":j(t=>ey(t,e));break;case"FCP":B(t=>ey(t,e));break;case"INP":ep(t=>ey(t,e));break;case"TTFB":eS(t=>ey(t,e))}else l.includes(t)||l.push(t)});let c={...n,[r]:{metricsSent:i,pendingMetrics:l}};s(o,{...t,paths:c})}({mainProps:e,hostname:t,href:n,pathname:r,search:a,localStorageData:u,pathDetails:c})}}}}]); 2//# sourceMappingURL=7429-ea10c00ca1915272.js.map
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.