One or more Single Use OAuth Personal Tokens could not be verified and should be removed.

[ID*="-optin-notice"]{padding:1px 12px;border-right-color:#007cba}[ID*="-optin-notice"] .notice-container{padding-top:10px;padding-bottom:12px}[ID*="-optin-notice"] .notice-content{margin:0}[ID*="-optin-notice"] .notice-heading{padding:0 0 12px 20px}[ID*="-optin-notice"] .button-primary{margin-left:5px}export const SET_WEBSITE_TYPE_AI_STEP = 'SET_WEBSITE_TYPE_AI_STEP'; export const SET_WEBSITE_LANGUAGE_AI_STEP = 'SET_WEBSITE_LANGUAGE_AI_STEP'; export const SET_WEBSITE_TYPE_LIST_AI_STEP = 'SET_WEBSITE_TYPE_LIST_AI_STEP'; export const SET_WEBSITE_LANGUAGE_LIST_AI_STEP = 'SET_WEBSITE_LANGUAGE_LIST_AI_STEP'; export const SET_LIMIT_EXCEED_MODAL = 'SET_LIMIT_EXCEED_MODAL'; export const SET_API_ERROR_MODAL = 'SET_API_ERROR_MODAL'; export const SET_CONTINUE_PROGRESS_MODAL = 'SET_CONTINUE_PROGRESS_MODAL'; export const SET_SIGNUP_LOGIN_MODAL = 'SET_SIGNUP_LOGIN_MODAL'; export const SET_PLAN_INFORMATION_MODAL = 'SET_PLAN_INFORMATION_MODAL'; export const SET_WEBSITE_NAME_AI_STEP = 'SET_WEBSITE_NAME_AI_STEP'; export const SET_WEBSITE_DETAILS_AI_STEP = 'SET_WEBSITE_DETAILS_AI_STEP'; export const SET_WEBSITE_KEYWORDS_AI_STEP = 'SET_WEBSITE_KEYWORDS_AI_STEP'; export const SET_WEBSITE_IMAGES_AI_STEP = 'SET_WEBSITE_IMAGES_AI_STEP'; export const RESET_KEYWORDS_IMAGES_AI_STEP = 'RESET_KEYWORDS_IMAGES_AI_STEP'; export const SET_WEBSITE_ONBOARDING_AI_DETAILS = 'SET_WEBSITE_ONBOARDING_AI_DETAILS'; export const SET_WEBSITE_CONTACT_AI_STEP = 'SET_WEBSITE_CONTACT_AI_STEP'; export const SET_WEBSITE_TEMPLATES_AI_STEP = 'SET_WEBSITE_TEMPLATES_AI_STEP'; export const SET_WEBSITE_TEMPLATE_RESULTS_AI_STEP = 'SET_WEBSITE_TEMPLATE_RESULTS_AI_STEP'; export const SET_WEBSITE_SELECTED_TEMPLATE_AI_STEP = 'SET_WEBSITE_SELECTED_TEMPLATE_AI_STEP'; export const SET_SELECTED_TEMPLATE_IS_PREMIUM = 'SET_SELECTED_TEMPLATE_IS_PREMIUM'; export const SET_WEBSITE_DATA_AI_STEP = 'SET_WEBSITE_DATA_AI_STEP'; export const RESET_ONBOARDING_AI_STEPS = 'RESET_ONBOARDING_AI_STEPS'; export const SET_ONBOARDING_AI_DETAILS = 'SET_ONBOARDING_AI_DETAILS'; export const SET_CREDITS_DETAILS = 'SET_CREDITS_DETAILS'; export const TOGGLE_UPDATE_ONBOARDING_IMAGES = 'TOGGLE_UPDATE_ONBOARDING_IMAGES'; export const STORE_SITE_FEATURES = 'STORE_SITE_FEATURES'; export const SET_SITE_FEATURES_DATA = 'SET_SITE_FEATURES_DATA'; export const SET_SITE_FEATURES = 'SET_SITE_FEATURES'; export const SET_WEBSITE_TEMPLATE_KEYWORDS = 'SET_WEBSITE_TEMPLATE_KEYWORDS'; export const SET_DYNAMIC_CONTENT = 'SET_DYNAMIC_CONTENT'; export const LOADING_NEXT_STEP = 'LOADING_NEXT_STEP'; // Logo, Typography and Colors export const SET_WEBSITE_LOGO = 'SET_WEBSITE_LOGO'; export const SET_SITE_TITLE_VISIBLE = 'SET_SITE_TITLE_VISIBLE'; export const SET_WEBSITE_COLOR_PALETTE = 'SET_WEBSITE_COLOR_PALETTE'; export const SET_WEBSITE_TYPOGRAPHY = 'SET_WEBSITE_TYPOGRAPHY'; export const SET_DEFAULT_COLOR_PALETTE = 'SET_DEFAULT_COLOR_PALETTE'; // Import & Build AI Site export const UPDATE_IMPORT_AI_SITE_DATA = 'UPDATE_IMPORT_AI_SITE_DATA'; export const SET_FULL_ONBOARDING_STATE = 'SET_FULL_ONBOARDING_STATE'; (()=>{"use strict";var e,t,n,r={94:(e,t,n)=>{var r=n(609),o=n.t(r,2),i=n.n(r);const a=window.wp.element,l=r.forwardRef((function({title:e,titleId:t,...n},o){return r.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:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))})),s=r.forwardRef((function({title:e,titleId:t,...n},o){return r.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:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))})),c=r.forwardRef((function({title:e,titleId:t,...n},o){return r.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:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))})),u=r.forwardRef((function({title:e,titleId:t,...n},o){return r.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:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))})),d=window.wp.apiFetch;var f=n.n(d);const p=window.wp.i18n;var m=n(848),h=[640,786,1024,1280,1536],g=(e,t)=>{let n=Object.keys((e=>Array.isArray(e)?(e=>e.reduce(((e,t,n)=>"number"!=typeof t?e:{...e,[h[n]]:t}),{}))(e):e)(e)).map(Number).sort(((e,t)=>e-t)),r=null;for(let e of n)t>e&&(r=e);return null!=r?r:n[0]},v=e=>{let t="object"==typeof e,n=((e=!0)=>{let[t,n]=(0,r.useState)(window.innerWidth),o=(0,r.useCallback)((()=>{n(window.innerWidth)}),[]);return(0,r.useEffect)((()=>(e?window.addEventListener("resize",o):window.removeEventListener("resize",o),()=>{window.removeEventListener("resize",o)})),[e,o]),t})(t);return(0,r.useMemo)((()=>{var r;if(!t)return null!=e?e:3;let o=g(e,n);return null!=(r=e[o])?r:3}),[t,n,e])},b=(0,r.createContext)({column:0,position:0}),y=(0,r.forwardRef)(((e,t)=>{let{gap:n,as:o="div",columnProps:i,columns:a,...l}=e,s=(0,r.useId)(),c=((e,t)=>{let n=v(t);return(0,r.useMemo)((()=>{let t=(e=>Array.from({length:e},(()=>[])))(n);return r.Children.forEach(e,((e,o)=>{(0,r.isValidElement)(e)&&t[o%n].push(e)})),t}),[n,e])})(e.children,a);return(0,m.jsx)(o,{"data-masonry-id":`Masonry-${s}`,...l,style:{display:"flex",gap:n,...l.style},ref:t,children:c.map(((e,t)=>(0,m.jsx)(o,{"data-masonry-column":t+1,...i,style:{display:"flex",flex:1,flexDirection:"column",gap:n,...null==i?void 0:i.style},children:e.map(((e,n)=>(0,m.jsx)(b.Provider,{value:{column:t,position:n},children:e},`Masonry__Column_Child_${s}_${n}`)))},`Masonry__Column_${s}_${t}`)))})})),w=y;function x(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t}function E(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,n}const k=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},C=e=>e&&"window"in e&&e.window===e?e:k(e).defaultView||window;let O=null,S=new Set,T=new Map,R=!1,P=!1;const L={Tab:!0,Escape:!0};function N(e,t){for(let n of S)n(e,t)}function I(e){R=!0,function(e){return!(e.metaKey||!x()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(O="keyboard",N("keyboard",e))}function M(e){O="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(R=!0,N("pointer",e))}function F(e){E(e)&&(R=!0,O="virtual")}function A(e){e.target!==window&&e.target!==document&&(R||P||(O="virtual",N("virtual",e)),R=!1,P=!1)}function j(){R=!1,P=!0}function D(e){if("undefined"==typeof window||T.get(C(e)))return;const t=C(e),n=k(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){R=!0,r.apply(this,arguments)},n.addEventListener("keydown",I,!0),n.addEventListener("keyup",I,!0),n.addEventListener("click",F,!0),t.addEventListener("focus",A,!0),t.addEventListener("blur",j,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",M,!0),n.addEventListener("pointermove",M,!0),n.addEventListener("pointerup",M,!0)):(n.addEventListener("mousedown",M,!0),n.addEventListener("mousemove",M,!0),n.addEventListener("mouseup",M,!0)),t.addEventListener("beforeunload",(()=>{z(e)}),{once:!0}),T.set(t,{focus:r})}const z=(e,t)=>{const n=C(e),r=k(e);t&&r.removeEventListener("DOMContentLoaded",t),T.has(n)&&(n.HTMLElement.prototype.focus=T.get(n).focus,r.removeEventListener("keydown",I,!0),r.removeEventListener("keyup",I,!0),r.removeEventListener("click",F,!0),n.removeEventListener("focus",A,!0),n.removeEventListener("blur",j,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",M,!0),r.removeEventListener("pointermove",M,!0),r.removeEventListener("pointerup",M,!0)):(r.removeEventListener("mousedown",M,!0),r.removeEventListener("mousemove",M,!0),r.removeEventListener("mouseup",M,!0)),T.delete(n))};function H(){return"pointer"!==O}"undefined"!=typeof document&&function(e){const t=k(e);let n;"loading"!==t.readyState?D(e):(n=()=>{D(e)},t.addEventListener("DOMContentLoaded",n))}();const W=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);const B="undefined"!=typeof document?r.useLayoutEffect:()=>{};class V{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function $(e){let t=(0,r.useRef)({isFocused:!1,observer:null});B((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=(0,r.useRef)(null);return B((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return(0,r.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new V("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function U(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=(0,r.useRef)({isFocused:!1,isFocusVisible:t||H()}),[a,l]=(0,r.useState)(!1),[s,c]=(0,r.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),u=(0,r.useCallback)((()=>c(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,r.useCallback)((e=>{i.current.isFocused=e,l(e),u()}),[u]);var f,p,m;f=e=>{i.current.isFocusVisible=e,u()},p=[],m={isTextInput:n},D(),(0,r.useEffect)((()=>{let e=(e,t)=>{(function(e,t,n){var r;const o="undefined"!=typeof window?C(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?C(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?C(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?C(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!W.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!L[n.key])})(!!(null==m?void 0:m.isTextInput),e,t)&&f(H())};return S.add(e),()=>{S.delete(e)}}),p);let{focusProps:h}=function(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),l=$(a),s=(0,r.useCallback)((e=>{const t=k(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),l(e))}),[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||o)?s:void 0,onBlur:t||!o&&!i?void 0:a}}}({isDisabled:o,onFocusChange:d}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=e,a=(0,r.useRef)({isFocusWithin:!1}),l=(0,r.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,a]),s=$(l),c=(0,r.useCallback)((e=>{a.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,s(e))}),[o,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:s,focusProps:o?g:h}}let q=!1,G=0;function K(){q=!0,setTimeout((()=>{q=!1}),50)}function Y(e){"touch"===e.pointerType&&K()}function X(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Y):document.addEventListener("touchend",K),G++,()=>{G--,G>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Y):document.removeEventListener("touchend",K))}}function Q(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:o,isDisabled:i}=e,[a,l]=(0,r.useState)(!1),s=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(X,[]);let{hoverProps:c,triggerHoverEnd:u}=(0,r.useMemo)((()=>{let e=(e,r)=>{if(s.pointerType=r,i||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),l(!0)},r=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let r=e.currentTarget;o&&o({type:"hoverend",target:r,pointerType:t}),n&&n(!1),l(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{q&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(a.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||q||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:a,triggerHoverEnd:r}}),[t,n,o,i,s]);return(0,r.useEffect)((()=>{i&&u({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:c,isHovered:a}}var Z=Object.defineProperty,J=(e,t,n)=>(((e,t,n)=>{t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ee=new class{constructor(){J(this,"current",this.detect()),J(this,"handoffState","pending"),J(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function te(e){return ee.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ne(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function re(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return ne((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=re();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function oe(){let[e]=(0,r.useState)(re);return(0,r.useEffect)((()=>()=>e.dispose()),[e]),e}let ie=(e,t)=>{ee.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)};function ae(e){let t=(0,r.useRef)(e);return ie((()=>{t.current=e}),[e]),t}let le=function(e){let t=ae(e);return r.useCallback(((...e)=>t.current(...e)),[t])};function se(e,t=!1){let n=null===e?null:"current"in e?e.current:e,[o,i]=(0,r.useReducer)((()=>({})),{}),a=(0,r.useMemo)((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(n)),[n,o]);return ie((()=>{if(!n)return;let e=new ResizeObserver(i);return e.observe(n),()=>{e.disconnect()}}),[n]),t?{width:`${a.width}px`,height:`${a.height}px`}:a}let ce=new Map,ue=new Map;function de(e){var t;let n=null!=(t=ue.get(e))?t:0;return ue.set(e,n+1),0!==n||(ce.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let n=null!=(t=ue.get(e))?t:1;if(1===n?ue.delete(e):ue.set(e,n-1),1!==n)return;let r=ce.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,ce.delete(e))}(e)}function fe({allowed:e,disallowed:t}={},n=!0){ie((()=>{var r,o;if(!n)return;let i=re();for(let e of null!=(r=null==t?void 0:t())?r:[])e&&i.add(de(e));let a=null!=(o=null==e?void 0:e())?o:[];for(let e of a){if(!e)continue;let t=te(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some((t=>e.contains(t)))||i.add(de(e));n=n.parentElement}}return i.dispose}),[n,e,t])}function pe(e,t,n=!0){let o=ae((e=>{let n=e.getBoundingClientRect();0===n.x&&0===n.y&&0===n.width&&0===n.height&&t()}));(0,r.useEffect)((()=>{if(!n)return;let t=null===e?null:e instanceof HTMLElement?e:e.current;if(!t)return;let r=re();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>o.current(t)));e.observe(t),r.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>o.current(t)));e.observe(t),r.add((()=>e.disconnect()))}return()=>r.dispose()}),[e,o,n])}function me(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,me),r}let he=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),ge=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ve,be,ye=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(ye||{}),we=((be=we||{})[be.Error=0]="Error",be[be.Overflow=1]="Overflow",be[be.Success=2]="Success",be[be.Underflow=3]="Underflow",be),xe=((ve=xe||{})[ve.Previous=-1]="Previous",ve[ve.Next=1]="Next",ve);function Ee(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(he)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var ke=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ke||{});function Ce(e,t=0){var n;return e!==(null==(n=te(e))?void 0:n.body)&&me(t,{0:()=>e.matches(he),1(){let t=e;for(;null!==t;){if(t.matches(he))return!0;t=t.parentElement}return!1}})}function Oe(e){let t=te(e);re().nextFrame((()=>{t&&!Ce(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var Se=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Se||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Te=["textarea","input"].join(",");function Re(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Pe(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Re(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ge)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):Ee(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:i.activeElement;let l,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}l=a[e],null==l||l.focus(u),d+=s}while(l!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Te))&&n}(l)&&l.select(),2}function Le(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ne(e,t,n){let o=ae(t);(0,r.useEffect)((()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Ie(e,t,n=!0){let o=(0,r.useRef)(!1);function i(n,r){if(!o.current||n.defaultPrevented)return;let i=r(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!Ce(i,ke.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}(0,r.useEffect)((()=>{requestAnimationFrame((()=>{o.current=n}))}),[n]);let a=(0,r.useRef)(null);Ne("pointerdown",(e=>{var t,n;o.current&&(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Ne("mousedown",(e=>{var t,n;o.current&&(a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Ne("click",(e=>{Le()||/Android/gi.test(window.navigator.userAgent)||a.current&&(i(e,(()=>a.current)),a.current=null)}),!0),Ne("touchend",(e=>i(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let o=ae((e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))));(0,r.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",0,!0)}function Me(...e){return(0,r.useMemo)((()=>te(...e)),[...e])}function Fe(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Ae(e,t){let[n,o]=(0,r.useState)((()=>Fe(e)));return ie((()=>{o(Fe(e))}),[e.type,e.as]),ie((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")}),[n,t]),n}function je(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function De(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let _e=function(e,t){let n=new Map,r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:re(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:De(n)},o=[Le()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=re();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);a&&!r(a)&&(i=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{},je(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});_e.subscribe((()=>{let e=_e.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&_e.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&_e.dispatch("TEARDOWN",n)}}));let ze=Symbol();function He(...e){let t=(0,r.useRef)(e);(0,r.useEffect)((()=>{t.current=e}),[e]);let n=le((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[ze])))?void 0:n}let We=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Be(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return We.test(a)&&(a=a.replace(We,"")),a}function Ve(e){return[e.screenX,e.screenY]}const $e=Math.min,Ue=Math.max,qe=Math.round,Ge=Math.floor,Ke=e=>({x:e,y:e}),Ye={left:"right",right:"left",bottom:"top",top:"bottom"},Xe={start:"end",end:"start"};function Qe(e,t,n){return Ue(e,$e(t,n))}function Ze(e,t){return"function"==typeof e?e(t):e}function Je(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function tt(e){return"x"===e?"y":"x"}function nt(e){return"y"===e?"height":"width"}function rt(e){return["top","bottom"].includes(Je(e))?"y":"x"}function ot(e){return tt(rt(e))}function it(e){return e.replace(/start|end/g,(e=>Xe[e]))}function at(e){return e.replace(/left|right|bottom|top/g,(e=>Ye[e]))}function lt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function st(e,t,n){let{reference:r,floating:o}=e;const i=rt(t),a=ot(t),l=nt(a),s=Je(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(et(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function ct(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ze(t,e),m=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),h=l[f?"floating"===d?"reference":"floating":d],g=lt(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:s}):v);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function ut(e){return pt(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ft(e){var t;return null==(t=(pt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function pt(e){return e instanceof Node||e instanceof dt(e).Node}function mt(e){return e instanceof Element||e instanceof dt(e).Element}function ht(e){return e instanceof HTMLElement||e instanceof dt(e).HTMLElement}function gt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot)}function vt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function bt(e){return["table","td","th"].includes(ut(e))}function yt(e){const t=wt(),n=Et(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function wt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function xt(e){return["html","body","#document"].includes(ut(e))}function Et(e){return dt(e).getComputedStyle(e)}function kt(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ct(e){if("html"===ut(e))return e;const t=e.assignedSlot||e.parentNode||gt(e)&&e.host||ft(e);return gt(t)?t.host:t}function Ot(e){const t=Ct(e);return xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ht(t)&&vt(t)?t:Ot(t)}function St(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ot(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=dt(o);return i?t.concat(a,a.visualViewport||[],vt(o)?o:[],a.frameElement&&n?St(a.frameElement):[]):t.concat(o,St(o,[],n))}function Tt(e){const t=Et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ht(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=qe(n)!==i||qe(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Rt(e){return mt(e)?e:e.contextElement}function Pt(e){const t=Rt(e);if(!ht(t))return Ke(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tt(t);let a=(i?qe(n.width):n.width)/r,l=(i?qe(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Lt=Ke(0);function Nt(e){const t=dt(e);return wt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Lt}function It(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Rt(e);let a=Ke(1);t&&(r?mt(r)&&(a=Pt(r)):a=Pt(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==dt(e))&&t}(i,n,r)?Nt(i):Ke(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=dt(i),t=r&&mt(r)?dt(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Pt(o),t=o.getBoundingClientRect(),r=Et(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=a,n=dt(o),o=n.frameElement}}return lt({width:u,height:d,x:s,y:c})}const Mt=[":popover-open",":modal"];function Ft(e){return Mt.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function At(e){return It(ft(e)).left+kt(e).scrollLeft}function jt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=dt(e),r=ft(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=wt();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=ft(e),n=kt(e),r=e.ownerDocument.body,o=Ue(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ue(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+At(e);const l=-n.scrollTop;return"rtl"===Et(r).direction&&(a+=Ue(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(ft(e));else if(mt(t))r=function(e,t){const n=It(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ht(e)?Pt(e):Ke(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Nt(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return lt(r)}function Dt(e,t){const n=Ct(e);return!(n===t||!mt(n)||xt(n))&&("fixed"===Et(n).position||Dt(n,t))}function _t(e,t,n){const r=ht(t),o=ft(t),i="fixed"===n,a=It(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Ke(0);if(r||!r&&!i)if(("body"!==ut(t)||vt(o))&&(l=kt(t)),r){const e=It(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=At(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function zt(e){return"static"===Et(e).position}function Ht(e,t){return ht(e)&&"fixed"!==Et(e).position?t?t(e):e.offsetParent:null}function Wt(e,t){const n=dt(e);if(Ft(e))return n;if(!ht(e)){let t=Ct(e);for(;t&&!xt(t);){if(mt(t)&&!zt(t))return t;t=Ct(t)}return n}let r=Ht(e,t);for(;r&&bt(r)&&zt(r);)r=Ht(r,t);return r&&xt(r)&&zt(r)&&!yt(r)?n:r||function(e){let t=Ct(e);for(;ht(t)&&!xt(t);){if(yt(t))return t;t=Ct(t)}return null}(e)||n}const Bt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=ft(r),l=!!t&&Ft(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=Ke(1);const u=Ke(0),d=ht(r);if((d||!d&&!i)&&(("body"!==ut(r)||vt(a))&&(s=kt(r)),ht(r))){const e=It(r);c=Pt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:ft,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ft(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=St(e,[],!1).filter((e=>mt(e)&&"body"!==ut(e))),o=null;const i="fixed"===Et(e).position;let a=i?Ct(e):e;for(;mt(a)&&!xt(a);){const t=Et(a),n=yt(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||vt(a)&&!n&&Dt(e,a))?r=r.filter((e=>e!==a)):o=t,a=Ct(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce(((e,n)=>{const r=jt(t,n,o);return e.top=Ue(r.top,e.top),e.right=$e(r.right,e.right),e.bottom=$e(r.bottom,e.bottom),e.left=Ue(r.left,e.left),e}),jt(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Wt,getElementRects:async function(e){const t=this.getOffsetParent||Wt,n=this.getDimensions,r=await n(e.floating);return{reference:_t(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tt(e);return{width:t,height:n}},getScale:Pt,isElement:mt,isRTL:function(e){return"rtl"===Et(e).direction}};function Vt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Rt(e),u=o||i?[...c?St(c):[],...St(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=ft(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-Ge(u)+"px "+-Ge(o.clientWidth-(c+d))+"px "+-Ge(o.clientHeight-(u+f))+"px "+-Ge(c)+"px",threshold:Ue(0,$e(1,s))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let h=s?It(e):null;return s&&function t(){const r=It(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n(),h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}const $t=ct,Ut=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Je(n),l=et(n),s="y"===rt(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=Ze(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},qt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Ze(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Je(o),b=Je(l)===l,y=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=f||(b||!h?[at(l)]:function(e){const t=at(e);return[it(e),t,it(t)]}(l));f||"none"===m||w.push(...function(e,t,n,r){const o=et(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Je(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(it)))),i}(l,h,m,y));const x=[l,...w],E=await ct(t,g),k=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=et(e),o=ot(e),i=nt(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=at(a)),[a,at(a)]}(o,a,y);k.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every((e=>e<=0))){var O,S;const e=((null==(O=i.flip)?void 0:O.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(S=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Gt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=Ze(e,t),s=await ct(t,l),c=Je(n),u=et(n),d="y"===rt(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-s[m],v=f-s[h],b=!t.middlewareData.shift;let y=g,w=v;if(d){const e=f-s.left-s.right;w=u||b?$e(v,e):e}else{const e=p-s.top-s.bottom;y=u||b?$e(g,e):e}if(b&&!u){const e=Ue(s.left,0),t=Ue(s.right,0),n=Ue(s.top,0),r=Ue(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:Ue(s.left,s.right)):y=p-2*(0!==n||0!==r?n+r:Ue(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:y});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},Kt=(e,t,n)=>{const r=new Map,o={platform:Bt,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=st(c,r,s),f=r,p={},m=0;for(let n=0;n{t.current=e})),t}const tn={...o},nn=tn.useInsertionEffect||(e=>e());function rn(e){const t=r.useRef((()=>{}));return nn((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r"floating-ui-"+Math.random().toString(36).slice(2,6)+ln++,cn=tn.useId||function(){const[e,t]=r.useState((()=>an?sn():void 0));return on((()=>{null==e&&t(sn())}),[]),r.useEffect((()=>{an=!0}),[]),e};const un=r.createContext(null),dn=r.createContext(null),fn=()=>{var e;return(null==(e=r.useContext(un))?void 0:e.id)||null},pn=()=>r.useContext(dn);function mn(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:o,nodeId:i}=e,[a,l]=r.useState(null),[s,c]=r.useState(null),u=(null==(t=e.elements)?void 0:t.reference)||a;on((()=>{u&&(h.current=u)}),[u]);const d=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);Qt(p,o)||m(o);const[h,g]=r.useState(null),[v,b]=r.useState(null),y=r.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=r.useCallback((e=>{e!==C.current&&(C.current=e,b(e))}),[]),x=a||h,E=l||v,k=r.useRef(null),C=r.useRef(null),O=r.useRef(d),S=null!=c,T=en(c),R=en(i),P=r.useCallback((()=>{if(!k.current||!C.current)return;const e={placement:t,strategy:n,middleware:p};R.current&&(e.platform=R.current),Kt(k.current,C.current,e).then((e=>{const t={...e,isPositioned:!0};L.current&&!Qt(O.current,t)&&(O.current=t,Yt.flushSync((()=>{f(t)})))}))}),[p,t,n,R]);Xt((()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const L=r.useRef(!1);Xt((()=>(L.current=!0,()=>{L.current=!1})),[]),Xt((()=>{if(x&&(k.current=x),E&&(C.current=E),x&&E){if(T.current)return T.current(x,E,P);P()}}),[x,E,P,T,S]);const N=r.useMemo((()=>({reference:k,floating:C,setReference:y,setFloating:w})),[y,w]),I=r.useMemo((()=>({reference:x,floating:E})),[x,E]),M=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=Jt(I.floating,d.x),r=Jt(I.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Zt(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,I.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:P,refs:N,elements:I,floatingStyles:M})),[d,P,N,I,M])}({...e,elements:{...e.elements,...s&&{reference:s}}}),f=pn(),p=null!=fn(),m=rn(((e,t,n)=>{g.current.openEvent=e?t:void 0,v.emit("openchange",{open:e,event:t,reason:n,nested:p}),null==o||o(e,t,n)})),h=r.useRef(null),g=r.useRef({}),v=r.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}()))[0],b=cn(),y=r.useCallback((e=>{const t=mt(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),d.refs.setReference(t)}),[d.refs]),w=r.useCallback((e=>{(mt(e)||null===e)&&(h.current=e,l(e)),(mt(d.refs.reference.current)||null===d.refs.reference.current||null!==e&&!mt(e))&&d.refs.setReference(e)}),[d.refs]),x=r.useMemo((()=>({...d.refs,setReference:w,setPositionReference:y,domReference:h})),[d.refs,w,y]),E=r.useMemo((()=>({...d.elements,domReference:u})),[d.elements,u]),k=r.useMemo((()=>({...d,refs:x,elements:E,dataRef:g,nodeId:i,floatingId:b,events:v,open:n,onOpenChange:m})),[d,i,b,v,n,m,x,E]);return on((()=>{const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===i));e&&(e.context=k)})),r.useMemo((()=>({...d,context:k,refs:x,elements:E})),[d,x,E,k])}const hn="active",gn="selected";function vn(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[hn]:t,[gn]:__,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[hn,gn].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;ie(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function bn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let yn=(0,r.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});yn.displayName="FloatingContext";let wn=(0,r.createContext)(null);wn.displayName="PlacementContext";function xn({children:e,enabled:t=!0}){let[n,o]=(0,r.useState)(null),[i,a]=(0,r.useState)(0),l=(0,r.useRef)(null),[s,c]=(0,r.useState)(null);!function(e){ie((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=e.style.maxHeight;parseFloat(t)!==parseInt(t)&&(e.style.maxHeight=`${Math.ceil(parseFloat(t))}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let u=t&&null!==n&&null!==s,{to:d="bottom",gap:f=0,offset:p=0,padding:m=0,inner:h}=function(e,t){var n,r,o;let i=En(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=En(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),l=En(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:l}}(n,s),[g,v="center"]=d.split(" ");ie((()=>{u&&a(0)}),[u]);let{refs:b,floatingStyles:y,context:w}=mn({open:u,placement:"selection"===g?"center"===v?"bottom":`bottom-${v}`:"center"===v?`${g}`:`${g}-${v}`,strategy:"absolute",transform:!1,middleware:[Ut({mainAxis:"selection"===g?0:f,crossAxis:p}),(C={padding:m},void 0===C&&(C={}),{name:"shift",options:C,async fn(e){const{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ze(C,e),s={x:t,y:n},c=await ct(e,l),u=rt(Je(r)),d=tt(u);let f=s[d],p=s[u];if(o){const e="y"===d?"bottom":"right";f=Qe(f+c["y"===d?"top":"left"],f,f-c[e])}if(i){const e="y"===u?"bottom":"right";p=Qe(p+c["y"===u?"top":"left"],p,p-c[e])}const m=a.fn({...e,[d]:f,[u]:p});return{...m,data:{x:m.x-t,y:m.y-n}}}}),"selection"!==g&&qt({padding:m}),"selection"===g&&h?(k={...h,padding:m,overflowRef:l,offset:i,minItemsVisible:4,referenceOverflowThreshold:m,onFallbackChange(e){var t,n;if(!e)return;let r=w.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,s=0;for(let e of null!=(n=null==(t=w.elements.floating)?void 0:t.childNodes)?n:[])if(e instanceof HTMLElement){let t=e.offsetTop,n=t+e.clientHeight+o,a=r.scrollTop,c=a+r.clientHeight;if(!(t>=a&&n<=c)){s=Math.max(0,Math.min(n,c)-Math.max(t,a)),l=e.clientHeight;break}i--}i>=1&&a((e=>{let t=l*i-s+o;return e>=t?e:t}))}},{name:"inner",options:k,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:o=0,index:i=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:s,...c}=k,{rects:u,elements:{floating:d}}=e,f=t.current[i];if(!f)return{};const p={...e,...await Ut(-f.offsetTop-d.clientTop-u.reference.height/2-f.offsetHeight/2-o).fn(e)},m=(null==s?void 0:s.current)||d,h=await $t(bn(p,m.scrollHeight),c),g=await $t(p,{...c,elementContext:"reference"}),v=Math.max(0,h.top),b=p.y+v,y=Math.max(0,m.scrollHeight-v-Math.max(0,h.bottom));return m.style.maxHeight=y+"px",m.scrollTop=v,r&&(m.offsetHeight=-l||g.bottom>=-l?(0,Yt.flushSync)((()=>r(!0))):(0,Yt.flushSync)((()=>r(!1)))),n&&(n.current=await $t(bn({...p,y:b},m.offsetHeight),c)),{y:b}}}):null,Gt({padding:m,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Vt}),[x=g,E=v]=w.placement.split("-");var k,C;"selection"===g&&(x="selection");let O=(0,r.useMemo)((()=>({anchor:[x,E].filter(Boolean).join(" ")})),[x,E]),S=function(e,t){const{open:n,elements:o}=e,{enabled:i=!0,overflowRef:a,scrollRef:l,onChange:s}=t,c=rn(s),u=r.useRef(!1),d=r.useRef(null),f=r.useRef(null);return r.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;const n=e.deltaY,r=a.current.top>=-.5,o=a.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,l=n<0?-1:1,s=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,Yt.flushSync)((()=>{c((e=>e+Math[s](n,i*l)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||o.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=a.current&&(f.current={...a.current})})),()=>{d.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,o.floating,a,l,c]),r.useMemo((()=>i?{floating:{onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==l?void 0:l.current)||o.floating;if(a.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&(0,Yt.flushSync)((()=>c((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}}}:{}),[i,a,o.floating,l,c])}(w,{overflowRef:l,onChange:a}),{getReferenceProps:T,getFloatingProps:R}=function(e){void 0===e&&(e=[]);const t=e,n=r.useCallback((t=>vn(t,e,"reference")),t),o=r.useCallback((t=>vn(t,e,"floating")),t),i=r.useCallback((t=>vn(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:i})),[n,o,i])}([S]),P=le((e=>{c(e),b.setFloating(e)}));return r.createElement(wn.Provider,{value:o},r.createElement(yn.Provider,{value:{setFloating:P,setReference:b.setReference,styles:y,getReferenceProps:T,getFloatingProps:R,slot:O}},e))}function En(e,t,n=void 0){let o=oe(),i=le(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let r=Cn(e,t);return[r,n=>{let i=kn(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));o.requestAnimationFrame((function l(){o.nextFrame(l);let s=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,s=!0;break}}if(!s)return;let c=Cn(e,t);r!==c&&(n(c),r=c)}))}return o.dispose}]}return[n,null]})),a=(0,r.useMemo)((()=>i(e,t)[0]),[e,t]),[l=a,s]=(0,r.useState)();return ie((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),l}function kn(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...kn(r)]:[n]}return[]}function Cn(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let On=(0,r.createContext)(null);On.displayName="OpenClosedContext";var Sn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Sn||{});function Tn(){return(0,r.useContext)(On)}function Rn({value:e,children:t}){return r.createElement(On.Provider,{value:e},t)}function Pn(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var Ln=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ln||{});function Nn(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Mn,Fn=((Mn=Fn||{})[Mn.None=0]="None",Mn[Mn.RenderStrategy=1]="RenderStrategy",Mn[Mn.Static=2]="Static",Mn),An=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(An||{});function jn({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:l}){l=null!=l?l:zn;let s=Hn(t,e);if(i)return Dn(s,n,r,a,l);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=s;if(e)return Dn(t,n,r,a,l)}if(1&c){let{unmount:e=!0,...t}=s;return me(e?0:1,{0:()=>null,1:()=>Dn({...t,hidden:!0,style:{display:"none"}},n,r,a,l)})}return Dn(s,n,r,a,l)}function Dn(e,t={},n,o,i){let{as:a=n,children:l,refName:s="ref",...c}=$n(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof l?l(t):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let f={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){f["data-headlessui-state"]=n.join(" ");for(let e of n)f[`data-${e}`]=""}}if(a===r.Fragment&&(Object.keys(Vn(c)).length>0||Object.keys(Vn(f)).length>0)){if((0,r.isValidElement)(d)&&!(Array.isArray(d)&&d.length>1)){let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>In(t(...e),c.className):In(t,c.className),o=n?{className:n}:{},a=Hn(d.props,Vn($n(c,["ref"])));for(let e in f)e in a&&delete f[e];return(0,r.cloneElement)(d,Object.assign({},a,f,u,{ref:i(d.ref,u.ref)},o))}if(Object.keys(Vn(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Vn(c)).concat(Object.keys(Vn(f))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return(0,r.createElement)(a,Object.assign({},$n(c,["ref"]),a!==r.Fragment&&u,a!==r.Fragment&&f),d)}function zn(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function Hn(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function Wn(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function Bn(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Vn(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function $n(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let Un=(0,r.createContext)(void 0);function qn(){return(0,r.useContext)(Un)}function Gn({value:e,children:t}){return r.createElement(Un.Provider,{value:e},t)}let Kn=(0,r.createContext)(null);function Yn(){let e=(0,r.useContext)(Kn);if(null===e){let e=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Yn),e}return e}function Xn(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=le((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),o=(0,r.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return r.createElement(Kn.Provider,{value:o},e.children)}),[t])]}Kn.displayName="DescriptionContext";let Qn=Bn((function(e,t){let n=(0,r.useId)(),o=qn(),{id:i=`headlessui-description-${n}`,...a}=e,l=Yn(),s=He(t);ie((()=>l.register(i)),[i,l.register]);let c=o||!1,u=(0,r.useMemo)((()=>({...l.slot,disabled:c})),[l.slot,c]);return jn({ourProps:{ref:s,...l.props,id:i},theirProps:a,slot:u,defaultTag:"p",name:l.name||"Description"})})),Zn=Object.assign(Qn,{});var Jn=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Jn||{});let er=(0,r.createContext)(void 0);function tr(){return(0,r.useContext)(er)}function nr({id:e,children:t}){return r.createElement(er.Provider,{value:e},t)}let rr=(0,r.createContext)(null);function or(){let e=(0,r.useContext)(rr);if(null===e){let e=new Error("You used a