1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34336,e=>{"use strict";let t=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`};e.s(["default",0,t])},79440,e=>{"use strict";var t=e.i(47456);let n={};e.s(["useRefWithInit",0,function(e,r){let i=t.useRef(n);return i.current===n&&(i.current=e(r)),i}])},75950,e=>{"use strict";var t=e.i(79440);function n(){return{callback:null,cleanup:null,refs:[]}}function r(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(n);"function"==typeof t&&(r[e]=t);break}case"object":i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}e.s(["useMergedRefs",0,function(e,i,o,s){var l,a,u,c,d;let f=(0,t.useRefWithInit)(n).current;return l=f,a=e,u=i,c=o,d=s,(l.refs[0]!==a||l.refs[1]!==u||l.refs[2]!==c||l.refs[3]!==d)&&r(f,[e,i,o,s]),f.callback},"useMergedRefsN",0,function(e){var i,o;let s=(0,t.useRefWithInit)(n).current;return i=s,o=e,(i.refs.length!==o.length||i.refs.some((e,t)=>e!==o[t]))&&r(s,e),s.callback}])},49611,e=>{"use strict";var t=e.i(47456),n=e.i(38148);e.s(["getReactElementRef",0,function(e){if(!t.isValidElement(e))return null;let r=e.props;return((0,n.isReactVersionAtLeast)(19)?r?.ref:e.ref)??null}])},24642,e=>{"use strict";e.s(["mergeObjects",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},5370,e=>{"use strict";let t=Object.freeze([]),n=Object.freeze({});e.s(["EMPTY_ARRAY",0,t,"EMPTY_OBJECT",0,n,"NOOP",0,function(){}])},73197,77949,62049,97093,e=>{"use strict";e.i(56171),e.s(["warn",0,function(){}],73197),e.s(["getStateAttributesProps",0,function(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);null!=e&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}],77949),e.s(["resolveClassName",0,function(e,t){return"function"==typeof e?e(t):e}],62049),e.s(["resolveStyle",0,function(e,t){return"function"==typeof e?e(t):e}],97093)},30196,e=>{"use strict";var t=e.i(24642);let n={};function r(e){return s(e)?{...l(e,n)}:function(e){let t={...e};for(let e in t){let n=t[e];o(e,n)&&(t[e]=a(n))}return t}(e)}function i(e,n){return s(n)?l(n,e):function(e,n){if(!n)return e;for(let r in n){let i=n[r];switch(r){case"style":e[r]=(0,t.mergeObjects)(e.style,i);break;case"className":e[r]=c(e.className,i);break;default:o(r,i)?e[r]=function(e,t){return t?e?(...n)=>{let r=n[0];if(d(r)){u(r);let i=t(...n);return r.baseUIHandlerPrevented||e?.(...n),i}let i=t(...n);return e?.(...n),i}:a(t):e}(e[r],i):e[r]=i}}return e}(e,n)}function o(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return 111===n&&110===r&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function s(e){return"function"==typeof e}function l(e,t){return s(e)?e(t):e??n}function a(e){return e?(...t)=>{let n=t[0];return d(n)&&u(n),e(...t)}:e}function u(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function c(e,t){return t?e?t+" "+e:t:e}function d(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,u,"mergeClassNames",0,c,"mergeProps",0,function(e,t,n,o,s){if(!n&&!o&&!s&&!e)return r(t);let l=r(e);return t&&(l=i(l,t)),n&&(l=i(l,n)),o&&(l=i(l,o)),s&&(l=i(l,s)),l},"mergePropsN",0,function(e){if(0===e.length)return n;if(1===e.length)return r(e[0]);let t=r(e[0]);for(let n=1;n<e.length;n+=1)t=i(t,e[n]);return t}])},17085,e=>{"use strict";var t=e.i(34336),n=e.i(47456),r=e.i(75950),i=e.i(49611),o=e.i(24642);e.i(73197);var s=e.i(5370),l=e.i(77949),a=e.i(62049),u=e.i(97093),c=e.i(30196);let d=Symbol.for("react.lazy");e.s(["useRenderElement",0,function(e,f,p={}){let m=f.render,g=function(e,t={}){var n;let{className:d,style:f,render:p}=e,{state:m=s.EMPTY_OBJECT,ref:g,props:h,stateAttributesMapping:b,enabled:v=!0}=t,y=v?(0,a.resolveClassName)(d,m):void 0,x=v?(0,u.resolveStyle)(f,m):void 0,w=v?(0,l.getStateAttributesProps)(m,b):s.EMPTY_OBJECT,E=v&&h?Array.isArray(n=h)?(0,c.mergePropsN)(n):(0,c.mergeProps)(void 0,n):void 0,k=v?(0,o.mergeObjects)(w,E)??{}:s.EMPTY_OBJECT;return("u">typeof document&&(v?Array.isArray(g)?k.ref=(0,r.useMergedRefsN)([k.ref,(0,i.getReactElementRef)(p),...g]):k.ref=(0,r.useMergedRefs)(k.ref,(0,i.getReactElementRef)(p),g):(0,r.useMergedRefs)(null,null)),v)?(void 0!==y&&(k.className=(0,
1c.mergeClassNames)(k.className,y)),void 0!==x&&(k.style=(0,o.mergeObjects)(k.style,x)),k):s.EMPTY_OBJECT}(f,p);return!1===p.enabled?null:function(e,r,i,o){if(r){if("function"==typeof r)return r(i,o);let e=(0,c.mergeProps)(i,r.props);e.ref=i.ref;let t=r;return t?.$$typeof===d&&(t=n.Children.toArray(r)[0]),n.cloneElement(t,e)}if(e&&"string"==typeof e){var s,l;return s=e,l=i,"button"===s?(0,n.createElement)("button",{type:"button",...l,key:l.key}):"img"===s?(0,n.createElement)("img",{alt:"",...l,key:l.key}):n.createElement(s,l)}throw Error((0,t.default)(8))}(e,m,g,p.state??s.EMPTY_OBJECT)}])},46258,e=>{"use strict";var t;let n=((t={}).startingStyle="data-starting-style",t.endingStyle="data-ending-style",t),r={[n.startingStyle]:""},i={[n.endingStyle]:""};e.s(["TransitionStatusDataAttributes",0,n,"transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?i:null}])},68562,e=>{"use strict";var t,n,r=e.i(46258);let i=((t={}).open="data-open",t.closed="data-closed",t[t.startingStyle=r.TransitionStatusDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=r.TransitionStatusDataAttributes.endingStyle]="endingStyle",t.anchorHidden="data-anchor-hidden",t.side="data-side",t.align="data-align",t),o=((n={}).popupOpen="data-popup-open",n.pressed="data-pressed",n),s={[o.popupOpen]:""},l={[o.popupOpen]:"",[o.pressed]:""},a={[i.open]:""},u={[i.closed]:""},c={[i.anchorHidden]:""};e.s(["CommonPopupDataAttributes",0,i,"popupStateMapping",0,{open:e=>e?a:u,anchorHidden:e=>e?c:null},"pressableTriggerOpenStateMapping",0,{open:e=>e?l:null},"triggerOpenStateMapping",0,{open:e=>e?s:null}])},77484,75814,e=>{"use strict";e.i(56171);let t={...e.i(47456)};e.s(["SafeReact",0,t],75814);var n=e.i(79440);let r=t.useInsertionEffect,i=r&&r!==t.useLayoutEffect?r:e=>e();function o(){let e={next:void 0,callback:s,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function s(){}e.s(["useStableCallback",0,function(e){let t=(0,n.useRefWithInit)(o).current;return t.next=e,i(t.effect),t.trampoline}],77484)},40682,e=>{"use strict";var t=e.i(47456);let n="u">typeof document?t.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,n])},43243,e=>{"use strict";e.i(56171);var t=e.i(47456),n=e.i(80269),r=e.i(77484),i=e.i(40682),o=e.i(30196),s=e.i(34336);let l=t.createContext(void 0);function a(e){return(0,n.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["useButton",0,function(e={}){let{disabled:n=!1,focusableWhenDisabled:u,tabIndex:c=0,native:d=!0,composite:f}=e,p=t.useRef(null),m=function(e=!1){let n=t.useContext(l);if(void 0===n&&!e)throw Error((0,s.default)(16));return n}(!0),g=f??void 0!==m,{props:h}=function(e){let{focusableWhenDisabled:n,disabled:r,composite:i=!1,tabIndex:o=0,isNativeButton:s}=e,l=i&&!1!==n,a=i&&!1===n;return{props:t.useMemo(()=>{let e={onKeyDown(e){r&&n&&"Tab"!==e.key&&e.preventDefault()}};return i||(e.tabIndex=o,!s&&r&&(e.tabIndex=n?o:-1)),(s&&(n||l)||!s&&r)&&(e["aria-disabled"]=r),s&&(!n||a)&&(e.disabled=r),e},[i,r,n,l,a,s,o])}}({focusableWhenDisabled:u,disabled:n,composite:g,tabIndex:c,isNativeButton:d}),b=t.useCallback(()=>{let e=p.current;a(e)&&g&&n&&void 0===h.disabled&&e.disabled&&(e.disabled=!1)},[n,h.disabled,g]);return(0,i.useIsoLayoutEffect)(b,[b]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:r,onKeyUp:i,onKeyDown:s,onPointerDown:l,...u}=e;return(0,o.mergeProps)({onClick(e){n?e.preventDefault():t?.(e)},onMouseDown(e){n||r?.(e)},onKeyDown(e){var r;if(n||((0,o.makeEventPreventable)(e),s?.(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,l=e.currentTarget,u=a(l),c=!d&&(r=l,!!(r?.tagName==="A"&&r?.href)),f=i&&(d?u:!c),p="Enter"===e.key,m=" "===e.key,h=l.getAttribute("role"),b=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(i&&g&&m){if(e.defaultPrevented&&b)return;e.preventDefault(),c||d&&u?(l.click(),e.preventBaseUIHandler()):f&&(t?.(e),e.preventBaseUIHandler());return}f&&(!d&&(m||p)&&e.preventDefault(),!d&&p&&t?.(e))},onKeyUp(e){n||(((0,o.makeEventPreventable)(e),i?.(e),e.target===e.currentTarget&&d&&g&&a(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||d||g||" "!==e.key||t?.(e)))},onPointerDown(e){n?e.preventDefault():l?.(e)}},d?{type:"button"}:{role:"button"},h,u)},[n,h,g,d]),buttonRef:(0,r.useStableCallback)(e=>{p.current=e,b()})}}],43243)},34244,22200,e=>{"use strict";var t=e.i(5370);e.s(["createChangeEventDetails",0,function(e,n,r,i){let o=!1,s=!1,l=i??t.EMPTY_OBJECT;return{reason:e,event:n??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:r,...l}}],34244),e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","initial",0,"initial","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","
1inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","missing",0,"missing","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],84181);var n=e.i(84181);e.s(["REASONS",0,n],22200)},49054,e=>{"use strict";var t=e.i(47456),n=e.i(75814);let r=0,i=n.SafeReact.useId;e.s(["useId",0,function(e,n){if(void 0!==i){let t=i();return e??(n?`${n}-${t}`:t)}return function(e,n="mui"){let[i,o]=t.useState(e),s=e||i;return t.useEffect(()=>{null==i&&(r+=1,o(`${n}-${r}`))},[i,n]),s}(e,n)}])},62022,e=>{"use strict";var t=e.i(49054);e.s(["useBaseUiId",0,function(e){return(0,t.useId)(e,"base-ui")}])},52485,96539,e=>{"use strict";e.s(["addEventListener",0,function(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}],52485),e.s(["mergeCleanups",0,function(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}],96539)},42273,e=>{"use strict";var t=e.i(40682),n=e.i(79440);function r(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["useValueAsRef",0,function(e){let i=(0,n.useRefWithInit)(r,e).current;return i.next=e,(0,t.useIsoLayoutEffect)(i.effect),i}])},29718,e=>{"use strict";var t=e.i(47456);let n=[];e.s(["useOnMount",0,function(e){t.useEffect(e,n)}])},95354,e=>{"use strict";var t=e.i(79440),n=e.i(29718);let r=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class i{static create(){return new i}static request(e){return r.request(e)}static cancel(e){return r.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=r.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(r.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,i,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(i.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},59387,e=>{"use strict";e.s(["ownerDocument",0,function(e){return e?.ownerDocument||document}])},79995,e=>{"use strict";var t=e.i(80269);e.s(["ownerWindow",()=>t.getWindow])},73711,e=>{"use strict";let t={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},n={...t,position:"fixed",top:0,left:0},r={...t,position:"absolute"};e.s(["visuallyHidden",0,n,"visuallyHiddenInput",0,r])},60590,e=>{"use strict";var t=e.i(47456),n=e.i(40682),r=e.i(81313),i=e.i(73711),o=e.i(98023);let s=t.forwardRef(function(e,s){let[l,a]=t.useState();return(0,n.useIsoLayoutEffect)(()=>{r.platform.screenReader.voiceOver&&r.platform.engine.webkit&&a("button")},[]),(0,o.jsx)("span",{...e,ref:s,style:i.visuallyHidden,"aria-hidden":!l||void 0,...{tabIndex:0,role:l},"data-base-ui-focus-guard":""})});e.s(["FocusGuard",0,s])},39939,80269,70709,81313,12294,38479,e=>{"use strict";let t;var n=e.i(79440),r=e.i(29718);class i{static create(){return new i}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function o(){return"u">typeof window}function s(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return!!o()&&(e instanceof Node||e instanceof l(e).Node)}function c(e){return!!o()&&(e instanceof Element||e instanceof l(e).Element)}function d(e){return!!o()&&(e instanceof HTMLElement||e instanceof l(e).HTMLElement)}function f(e){return!(!o()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function p(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=w(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function m(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}e.s(["Timeout",0,i,"useTimeout",0,function(){let e=(0,n.useRefWithInit)(i.create).current;return(0,r.useOnMount)(e.disposeEffect),e}],39939);let g=/transform|translate|scale|rotate|perspective|filter/,h=/paint|layout|strict|content/,b=e=>!!e&&"none"!==e;function v(e){let t=c(e)?w(e):e;return b(t.transform)||b(t.translate)||b(t.scale)||b(t.rotate)||b(t.perspective)||!y()&&(b(t.backdropFilter)||b(t.filter))||g.test(t.willChange||"")||h.test(t.contain||"")}function y(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function x(e){return/^(html|body|#document)$/.test(s(e))}function w(e){return l(e).getComputedStyle(e)}function E(e){if("html"===s(e))return e;let t=e.assignedSlot||e.parentNode||f(e)&&e.host||a(e);return f(t)?t.host:t}function k(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,w,"getContainingBlock",0,function(e){let t=E(e);for(;d(t)&&!x(t);){if(v(t))return t;if(m(t))break;t=E(t)}return null},"getDocumentElement",0,a,"getFrameElement",0,k,"getNodeName",0,s,"getNodeScroll",0,function(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"getOverflowAncestors",0,function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let o=function e(t){let n=E(t);return x(n)?(t.ownerDocument||t).body:d(n)&&p(n)?n:e(n)}(t),s=o===(null==(i=t.ownerDocument)?void 0:i.body),a=l(o);if(!s)return n.concat(o,e(o,[],r));{let t=k(a);
1return n.concat(a,a.visualViewport||[],p(o)?o:[],t&&r?e(t):[])}},"getParentNode",0,E,"getWindow",0,l,"isContainingBlock",0,v,"isElement",0,c,"isHTMLElement",0,d,"isLastTraversableNode",0,x,"isNode",0,u,"isOverflowElement",0,p,"isShadowRoot",0,f,"isTableElement",0,function(e){return/^(table|td|th)$/.test(s(e))},"isTopLayer",0,m,"isWebKit",0,y],80269),e.s(["activeElement",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"contains",0,function(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&f(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1},"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target}],70709),e.s([],20323),e.i(20323),e.i(56171);let{userAgent:T,platform:S,maxTouchPoints:R}="u"<typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},C=T.toLowerCase(),P=S.toLowerCase(),O=/^i(os$|p)/.test(P)||"macintel"===P&&R>1,A="android",M=P===A||C.includes(A),I=!O&&P.startsWith("mac"),L=P.startsWith("win"),N=!M&&/^(linux|chrome os)/.test(P),D=I||O;e.s(["android",0,M,"apple",0,D,"ios",0,O,"linux",0,N,"mac",0,I,"windows",0,L],98419);var F=e.i(98419);let z="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none"),j=!z&&C.includes("firefox"),W=!z&&C.includes("chrom");e.s(["blink",0,W,"gecko",0,j,"webkit",0,z],47730);var _=e.i(47730);e.s(["voiceOver",0,D],7221);var H=e.i(7221);let B=/jsdom|happydom/.test(C);e.s(["jsdom",0,B],11780);var Y=e.i(11780);e.s(["engine",0,_,"env",0,Y,"os",0,F,"screenReader",0,H],77821);var $=e.i(77821);e.s(["platform",0,$],81313);var $=$;let V="data-base-ui-focusable",U="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function X(e){return d(e)&&e.matches(U)}e.s(["ARROW_DOWN",0,"ArrowDown","ARROW_LEFT",0,"ArrowLeft","ARROW_RIGHT",0,"ArrowRight","ARROW_UP",0,"ArrowUp","FOCUSABLE_ATTRIBUTE",0,V,"TYPEABLE_SELECTOR",0,U],12294),e.s(["getFloatingFocusElement",0,function(e){return e?e.hasAttribute(V)?e:e.querySelector(`[${V}]`)||e:null},"isEventTargetWithin",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"isInteractiveElement",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${U}`)!=null},"isRootElement",0,function(e){return e.matches("html,body")},"isTypeableCombobox",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&X(e)},"isTypeableElement",0,X,"matchesFocusVisible",0,function(e){if(!e||$.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}],38479)},90204,e=>{"use strict";var t=e.i(81313);e.s(["isClickLikeEvent",0,function(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t},"isMouseLikePointerType",0,function(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)},"isReactEvent",0,function(e){return"nativeEvent"in e},"isVirtualClick",0,function(e){return""===e.pointerType&&!!e.isTrusted||(t.platform.os.android&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)},"isVirtualPointerEvent",0,function(e){return!t.platform.env.jsdom&&(!t.platform.os.android&&0===e.width&&0===e.height||t.platform.os.android&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)},"stopEvent",0,function(e){e.preventDefault(),e.stopPropagation()}])},8760,e=>{"use strict";var t=e.i(80269);function n(e,{startingIndex:t=-1,decrement:i=!1,disabledIndices:o,amount:s=1}={}){let l=t;do l+=i?-s:s;while(l>=0&&l<=e.length-1&&r(e,l,o))return l}function r(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!i(r)||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function i(e,n=e?(0,t.getComputedStyle)(e):null){var r;
1return!!e&&!!e.isConnected&&!!n&&"hidden"!==(r=n).visibility&&"collapse"!==r.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==n.display&&"contents"!==n.display)}e.s(["findNonDisabledListIndex",0,n,"getMaxListIndex",0,function(e,t){return n(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"getMinListIndex",0,function(e,t){return n(e.current,{disabledIndices:t})},"isElementVisible",0,i,"isIndexOutOfListBounds",0,function(e,t){return t<0||t>=e.length},"isListIndexDisabled",0,r])},72421,e=>{"use strict";var t=e.i(80269),n=e.i(59387),r=e.i(70709),i=e.i(8760);function o(e){for(let n of Array.from(e.children))if("summary"===(0,t.getNodeName)(n))return n;return null}function s(e){let n=e?(0,t.getNodeName)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==n||null!=e.parentElement&&"details"===(0,t.getNodeName)(e.parentElement)&&o(e.parentElement)===e)&&("details"!==n||null==o(e))&&("input"!==n||"hidden"!==e.type)}function l(e){if(!s(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let n=e;n;n=function(e){let n=e.assignedSlot;if(n)return n;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,t.isShadowRoot)(r)?r.host:null}(n)){let s=n!==e,l="slot"===(0,t.getNodeName)(n);if(n.hasAttribute("inert")||s&&"details"===(0,t.getNodeName)(n)&&!n.open&&!function(e,t){let n=o(t);return!!n&&(e===n||(0,r.contains)(n,e))}(e,n)||n.hasAttribute("hidden")||!l&&!function(e,n){let r=(0,t.getComputedStyle)(e);return n?"none"!==r.display:(0,i.isElementVisible)(e,r)}(n,s))return!1}return!0}function a(e){let n=e.tabIndex;if(n<0){let n=(0,t.getNodeName)(e);if("details"===n||"audio"===n||"video"===n||(0,t.isHTMLElement)(e)&&e.isContentEditable)return 0}return n}function u(e){return"input"!==(0,t.getNodeName)(e)?null:"radio"===e.type&&""!==e.name?e:null}function c(e){if((0,t.isHTMLElement)(e)&&"slot"===(0,t.getNodeName)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,t.isHTMLElement)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function d(e){let t=[];return!function e(t,n){c(t).forEach(t=>{s(t)&&n.push(t),e(t,n)})}(e,t),t.filter(l)}function f(e){let t=d(e);return t.filter(e=>a(e)>=0&&function(e,t){let n=u(e);if(!n)return!0;let r=t.find(e=>{let t=u(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=u(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function p(e,t){let i=f(e),o=i.length;if(0===o)return;let s=(0,r.activeElement)((0,n.ownerDocument)(e)),l=i.indexOf(s);return i[-1===l?1===t?0:o-1:l+t]}e.s(["disableFocusInside",0,function(e){f(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})},"enableFocusInside",0,function(e){let n=[];!function e(n,r,i){c(n).forEach(n=>{(0,t.isHTMLElement)(n)&&n.matches(r)&&i.push(n),e(n,r,i)})}(e,"[data-tabindex]",n),n.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})},"focusable",0,d,"getNextTabbable",0,function(e){return p((0,n.ownerDocument)(e).body,1)||e},"getPreviousTabbable",0,function(e){return p((0,n.ownerDocument)(e).body,-1)||e},"isOutsideEvent",0,function(e,t){let n=t||e.currentTarget,i=e.relatedTarget;return!i||!(0,r.contains)(n,i)},"isTabbable",0,function(e){return l(e)&&a(e)>=0},"tabbable",0,f])},52385,e=>{"use strict";e.s(["getNodeAncestors",0,function(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n},"getNodeChildren",0,function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}])},51197,e=>{"use strict";e.s(["createAttribute",0,function(e){return`data-base-ui-${e}`}])},85206,e=>{"use strict";var t=e.i(5370);let n=0;e.s(["enqueueFocus",0,function(e,r={}){let{preventScroll:i=!1,sync:o=!1,shouldFocus:s}=r;function l(){(!s||s())&&e?.focus({preventScroll:i})}if(cancelAnimationFrame(n),o)return l(),t.NOOP;let a=requestAnimationFrame(l);return n=a,()=>{n===a&&(cancelAnimationFrame(a),n=0)}}])},65120,e=>{"use strict";e.s(["BASE_UI_SWIPE_IGNORE_SELECTOR",0,"[data-base-ui-swipe-ignore]","CLICK_TRIGGER_IDENTIFIER",0,"data-base-ui-click-trigger","DISABLED_TRANSITIONS_STYLE",0,{style:{transition:"none"}},"DROPDOWN_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"none"},"LEGACY_SWIPE_IGNORE_SELECTOR",0,"[data-swipe-ignore]","POPUP_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"end"},"ownerVisuallyHidden",0,{clipPath:"inset(50%)",position:"fixed",top:0,left:0}])},34689,e=>{"use strict";
1var t=e.i(47456),n=e.i(95072),r=e.i(80269),i=e.i(52485),o=e.i(96539),s=e.i(49054),l=e.i(40682),a=e.i(77484),u=e.i(5370),c=e.i(60590),d=e.i(72421),f=e.i(34244),p=e.i(22200),m=e.i(51197),g=e.i(17085),h=e.i(65120),b=e.i(98023);let v=t.createContext(null),y=()=>t.useContext(v),x=(0,m.createAttribute)("portal");function w(e={}){let{ref:i,container:o,componentProps:c=u.EMPTY_OBJECT,elementProps:d}=e,f=(0,s.useId)(),p=y(),m=p?.portalNode,[h,b]=t.useState(null),[v,E]=t.useState(null),k=(0,a.useStableCallback)(e=>{null!==e&&E(e)}),T=t.useRef(null);(0,l.useIsoLayoutEffect)(()=>{if(null===o){T.current&&(T.current=null,E(null),b(null));return}if(null==f)return;let e=(o&&((0,r.isNode)(o)?o:o.current))??m??document.body;if(null==e){T.current&&(T.current=null,E(null),b(null));return}T.current!==e&&(T.current=e,E(null),b(e))},[o,m,f]);let S=(0,g.useRenderElement)("div",c,{ref:[i,k],props:[{id:f,[x]:""},d]});return{portalNode:v,portalSubtree:h&&S?n.createPortal(S,h):null}}let E=t.forwardRef(function(e,r){let{render:s,className:a,style:u,children:m,container:g,renderGuards:y,...x}=e,{portalNode:E,portalSubtree:k}=w({container:g,ref:r,componentProps:e,elementProps:x}),T=t.useRef(null),S=t.useRef(null),R=t.useRef(null),C=t.useRef(null),[P,O]=t.useState(null),A=t.useRef(!1),M=P?.modal,I=P?.open,L="boolean"==typeof y?y:!!P&&!P.modal&&P.open&&!!E;t.useEffect(()=>{if(E&&!M)return(0,o.mergeCleanups)((0,i.addEventListener)(E,"focusin",e,!0),(0,i.addEventListener)(E,"focusout",e,!0));function e(e){E&&e.relatedTarget&&(0,d.isOutsideEvent)(e)&&("focusin"===e.type?A.current&&((0,d.enableFocusInside)(E),A.current=!1):((0,d.disableFocusInside)(E),A.current=!0))}},[E,M]),(0,l.useIsoLayoutEffect)(()=>{E&&!0===I&&A.current&&((0,d.enableFocusInside)(E),A.current=!1)},[I,E]);let N=t.useMemo(()=>({beforeOutsideRef:T,afterOutsideRef:S,beforeInsideRef:R,afterInsideRef:C,portalNode:E,setFocusManagerState:O}),[E]);return(0,b.jsxs)(t.Fragment,{children:[k,(0,b.jsxs)(v.Provider,{value:N,children:[L&&E&&(0,b.jsx)(c.FocusGuard,{"data-type":"outside",ref:T,onFocus:e=>{if((0,d.isOutsideEvent)(e,E))R.current?.focus();else{let e=P?P.domReference:null,t=(0,d.getPreviousTabbable)(e);t?.focus()}}}),L&&E&&(0,b.jsx)("span",{"aria-owns":E.id,style:h.ownerVisuallyHidden}),E&&n.createPortal(m,E),L&&E&&(0,b.jsx)(c.FocusGuard,{"data-type":"outside",ref:S,onFocus:e=>{if((0,d.isOutsideEvent)(e,E))C.current?.focus();else{let t=P?P.domReference:null,n=(0,d.getNextTabbable)(t);n?.focus(),P?.closeOnFocusOut&&P?.onOpenChange(!1,(0,f.createChangeEventDetails)(p.REASONS.focusOut,e.nativeEvent))}}})]})]})});e.s(["FloatingPortal",0,E,"useFloatingPortalNode",0,w,"usePortalContext",0,y])},25275,e=>{"use strict";var t=e.i(47456);e.i(98023);let n=t.createContext(null),r=t.createContext(null);e.s(["useFloatingParentNodeId",0,()=>t.useContext(n)?.id||null,"useFloatingTree",0,e=>{let n=t.useContext(r);return e??n}])},92237,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},38880,e=>{"use strict";var t=e.i(47456),n=e.i(77484),r=e.i(95072),i=e.i(95354),o=e.i(92237),s=e.i(46258);e.s(["useOpenChangeComplete",0,function(e){let{enabled:l=!0,open:a,ref:u,onComplete:c}=e,d=(0,n.useStableCallback)(c),f=function(e,t=!1,l=!0){let a=(0,i.useAnimationFrame)();return(0,n.useStableCallback)((n,i=null)=>{a.cancel();let u=(0,o.resolveRef)(e);if(null==u)return;let c=()=>{r.flushSync(n)};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void n();function d(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||c()}).catch(()=>{if(l){i?.aborted||c();return}let e=u.getAnimations();!i?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&d()})}if(t){let e=s.TransitionStatusDataAttributes.startingStyle;if(!u.hasAttribute(e))return void a.request(d);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),d())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void i?.addEventListener("abort",()=>t.disconnect(),{once:!0})}a.request(d)})}(u,a,!1);t.useEffect(()=>{if(!l)return;let e=new AbortController;return f(d,e.signal),()=>{e.abort()}},[l,a,d,f])}],38880)},5510,42615,e=>{"use strict";var t=e.i(47456),n=e.i(80269),r=e.i(52485),i=e.i(96539),o=e.i(75950),s=e.i(42273),l=e.i(77484),a=e.i(40682),u=e.i(39939),c=e.i(81313),d=e.i(95354),f=e.i(59387),p=e.i(79995),m=e.i(60590),g=e.i(70709),h=e.i(38479),b=e.i(90204),v=e.i(72421),y=e.i(52385),x=e.i(8760),w=e.i(34244),E=e.i(22200),k=e.i(51197),T=e.i(85206);let S={inert:new WeakMap,"aria-hidden":new WeakMap},R="data-base-ui-inert",C={inert:new WeakSet,"aria-hidden":new WeakSet},P=new WeakMap,O=0,A=(e,t)=>
1t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,n.isShadowRoot)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),M=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},I=(e,t,r)=>{let i=[],o=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,n.getNodeName)(e)&&(t.has(e)?o(e):i.push(e))})};return o(e),i};function L(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,o=(0,f.ownerDocument)(e[0]).body;return function(e,t,n,r,{mark:i=!0}){let o=null;r?o="inert":n&&(o="aria-hidden");let s=null,l=null,a=A(t,e),u=i?I(t,M(a),new Set(a)):[],c=[],d=[];if(o){let e=S[o],n=C[o];l=n,s=e;let r=A(t,Array.from(t.querySelectorAll("[aria-live]"))),i=a.concat(r);I(t,M(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=null!==r&&"false"!==r,s=(e.get(t)||0)+1;e.set(t,s),c.push(t),1===s&&i&&n.add(t),i||t.setAttribute(o,"inert"===o?"":"true")})}return i&&u.forEach(e=>{let t=(P.get(e)||0)+1;P.set(e,t),d.push(e),1===t&&e.setAttribute(R,"")}),O+=1,()=>{s&&c.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!l?.has(e)&&o&&e.removeAttribute(o),l?.delete(e))}),i&&d.forEach(e=>{let t=(P.get(e)||0)-1;P.set(e,t),t||e.removeAttribute(R)}),(O-=1)||(S.inert=new WeakMap,S["aria-hidden"]=new WeakMap,C.inert=new WeakSet,C["aria-hidden"]=new WeakSet,P=new WeakMap)}}(e,o,n,r,{mark:i})}var N=e.i(34689),D=e.i(25275),F=e.i(65120),z=e.i(92237),j=e.i(98023);let W=[];function _(){W=W.filter(e=>e.deref()?.isConnected)}function H(e){_(),e&&"body"!==(0,n.getNodeName)(e)&&(W.push(new WeakRef(e)),W.length>20&&(W=W.slice(-20)))}function B(){return _(),W[W.length-1]?.deref()}function Y(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let t=(0,v.focusable)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,v.isTabbable)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),n=e.getAttribute("tabindex");0===t.length?"0"!==n&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):("-1"!==n||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}e.s(["FloatingFocusManager",0,function(e){let{context:S,children:R,disabled:C=!1,initialFocus:P=!0,returnFocus:O=!0,restoreFocus:A=!1,modal:M=!0,closeOnFocusOut:I=!0,openInteractionType:W="",nextFocusableElement:$,previousFocusableElement:V,beforeContentFocusGuardRef:U,externalTree:X,getInsideElements:G}=e,q="rootStore"in S?S.rootStore:S,K=q.useState("open"),J=q.useState("domReferenceElement"),Z=q.useState("floatingElement"),{events:Q,dataRef:ee}=q.context,et=(0,l.useStableCallback)(()=>ee.current.floatingContext?.nodeId),en=(0,h.isTypeableCombobox)(J)&&!1===P,er=(0,s.useValueAsRef)(P),ei=(0,s.useValueAsRef)(O),eo=(0,s.useValueAsRef)(W),es=(0,s.useValueAsRef)(K),el=(0,D.useFloatingTree)(X),ea=(0,N.usePortalContext)(),eu=t.useRef(!1),ec=t.useRef(!1),ed=t.useRef(!1),ef=t.useRef(null),ep=t.useRef(""),em=t.useRef(""),eg=t.useRef(null),eh=t.useRef(null),eb=(0,o.useMergedRefs)(eg,U,ea?.beforeInsideRef),ev=(0,o.useMergedRefs)(eh,ea?.afterInsideRef),ey=(0,u.useTimeout)(),ex=(0,u.useTimeout)(),ew=(0,d.useAnimationFrame)(),eE=null!=ea,ek=(0,h.getFloatingFocusElement)(Z),eT=(0,l.useStableCallback)((e=ek)=>e?(0,v.tabbable)(e):[]),eS=(0,l.useStableCallback)(()=>G?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(C||!M)return;let e=(0,f.ownerDocument)(ek);return(0,r.addEventListener)(e,"keydown",function(e){"Tab"===e.key&&(0,g.contains)(ek,(0,g.activeElement)((0,f.ownerDocument)(ek)))&&0===eT().length&&!en&&(0,b.stopEvent)(e)})},[C,ek,M,en,eT]),t.useEffect(()=>{if(C||!K)return;let e=(0,f.ownerDocument)(ek);function t(){ed.current=!1}return(0,i.mergeCleanups)((0,r.addEventListener)(e,"pointerdown",function(e){let t=(0,g.getTarget)(e),n=eS();ed.current=!((0,g.contains)(Z,t)||(0,g.contains)(J,t)||(0,g.contains)(ea?.portalNode,t)||n.some(e=>e===t||(0,g.contains)(e,t))),em.current=e.pointerType||"keyboard",t?.closest(`[${F.CLICK_TRIGGER_IDENTIFIER}]`)&&(ec.current=!0,ex.start(0,()=>{ec.current=!1}))},!0),(0,r.addEventListener)(e,"pointerup",t,!0),(0,r.addEventListener)(e,"pointercancel",t,!0),(0,r.addEventListener)(e,"keydown",function(){em.current="keyboard"},!0),t)},[C,Z,J,ek,K,ea,ex,eS]),t.useEffect(()=>{if(C||!I)return;let e=(0,f.ownerDocument)(ek);function t(t){let r=t.relatedTarget,i=t.currentTarget,o=(0,g.getTarget)(t);M&&null==r&&null!=o&&(0,g.contains)(Z,o)&&H(o),queueMicrotask(()=>{let s=et(),l=q.context.triggerElements,a=eS(),u=r?.hasAttribute((0,k.createAttribute)("focus-guard"))&&[eg.current,eh.current,ea?.beforeInsideRef.current,ea?.afterInsideRef.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,(0,z.resolveRef)(V),(0,z.resolveRef)($)].includes(r),c=!((0,g.contains)(J,r)||(0,g.contains)(Z,r)||(0,g.contains)(r,Z)||(0,g.contains)(ea?.portalNode,r)||a.some(e=>e===r||(0,g.contains)(e,r))||null!=r&&l.hasElement(r)||l.hasMatchingElement(e=>(0,g.contains)(e,r))||u||el&&((0,y.getNodeChildren)(el.nodesRef.current,s).find(e=>(0,g.contains)(e.context?.elements.floating,r)||(0,g.contains)(e.context?.elements.domReference,r))||(0,y.getNodeAncestors)(el.nodesRef.current,s).find(e=>[e.context?.elements.floating,(0,h.getFloatingFocusElement)(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===J&&ek&&Y(ek),A&&i!==J&&!(0,x.isElementVisible)(o)&&(0,g.activeElement)(e)===e.body){if((0,n.isHTMLElement)(ek)&&(ek.focus(),"popup"===A))return void ew.request(()=>{ek.focus()});let e=eT(),t=ef.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||ek;(0,n.isHTMLElement)(r)&&r.focus()}if(ee.current.insideReactTree){ee.current.insideReactTree=!1;return}(en||!M)&&r&&c&&!ec.current&&(en||r!==B())&&(eu.current=!0,q.setOpen(!1,(0,w.createChangeEventDetails)(E.REASONS.focusOut,t)))})}let o=(0,n.isHTMLElement)(J)?J:null;if(Z||o)return(0,i.mergeCleanups)(o&&(0,r.addEventListener)(o,"focusout",t),o&&(0,r.addEventListener)(o,"pointerdown",function(){ec.current=!0,ex.start(0,()=>{ec.current=!1})}),Z&&(0,r.addEventListener)(Z,"focusin",function(e){let t=(0,g.getTarget)(e);(0,v.isTabbable)(t)&&(ef.current=t)}),Z&&(0,r.addEventListener)(Z,"focusout",t),Z&&ea&&(0,r.addEventListener)(Z,"focusout",function(){ed.current||(ee.current.insideReactTree=!0,ey.start(0,()=>{ee.current.insideReactTree=!1}))},!0))},[C,J,Z,ek,M,el,ea,q,I,A,eT,en,et,ee,ey,ex,ew,$,V,eS]),t.useEffect(()=>{if(C||!Z||!K)return;let e=Array.from(ea?.portalNode?.querySelectorAll(`[${(0,k.createAttribute)("portal")}]`)||[]),t=el?(0,y.getNodeAncestors)(el.nodesRef.current,et()):[],n=t.find(e=>(0,h.isTypeableCombobox)(e.context?.elements.domReference||null))?.context?.elements.domReference,r=L([Z,...e,eg.current,eh.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,...eS(),n,(0,z.resolveRef)(V),(0,z.resolveRef)($),en?J:null].filter(e=>null!=e),{ariaHidden:M||en,mark:!1}),i=L([Z,...e].filter(e=>null!=e));return()=>{i(),r()}}
1,[K,C,J,Z,M,ea,en,el,et,$,V,eS]),(0,a.useIsoLayoutEffect)(()=>{if(!K||C||!(0,n.isHTMLElement)(ek))return;let e=(0,f.ownerDocument)(ek),t=(0,g.activeElement)(e);queueMicrotask(()=>{let n,r=er.current,i="function"==typeof r?r(eo.current||""):r;if(void 0===i||!1===i||(0,g.contains)(ek,t))return;let o=null,s=()=>(null==o&&(o=eT(ek)),o[0]||ek);n=(n=!0===i||null===i?s():(0,z.resolveRef)(i))||s();let l=(0,g.contains)(ek,(0,g.activeElement)(e));(0,T.enqueueFocus)(n,{preventScroll:n===ek,shouldFocus(){if(!es.current)return!1;if(l)return!0;let t=(0,g.activeElement)(e);return!(t!==n&&(0,g.contains)(ek,t))}})})},[C,K,ek,eT,er,eo,es]),(0,a.useIsoLayoutEffect)(()=>{if(C||!ek)return;let e=(0,f.ownerDocument)(ek),t=(0,g.activeElement)(e),r=null==eo.current;function i(e){var t,n;let r;if(e.open||(t=e.nativeEvent,n=em.current,r=(0,p.ownerWindow)((0,g.getTarget)(t)),ep.current=t instanceof r.KeyboardEvent?"keyboard":t instanceof r.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof r.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===E.REASONS.triggerHover&&"mouseleave"===e.nativeEvent.type&&(eu.current=!0),e.reason===E.REASONS.outsidePress)if(e.nested)eu.current=!1;else if((0,b.isVirtualClick)(e.nativeEvent)||(0,b.isVirtualPointerEvent)(e.nativeEvent))eu.current=!1;else{let e=!1;(0,f.ownerDocument)(ek).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?eu.current=!1:eu.current=!0}}return H(t),Q.on("openchange",i),()=>{Q.off("openchange",i);let o=(0,g.activeElement)(e),s=eS(),l=(0,g.contains)(Z,o)||s.some(e=>e===o||(0,g.contains)(e,o))||el&&(0,y.getNodeChildren)(el.nodesRef.current,et(),!1).some(e=>(0,g.contains)(e.context?.elements.floating,o)),a=ei.current,u=function(){let e=ei.current,i="function"==typeof e?e(ep.current):e;if(void 0===i||!1===i)return null;null===i&&(i=!0);let o=J?.isConnected?J:null,s=t?.isConnected&&"body"!==(0,n.getNodeName)(t)?t:null,l=r?s||o:o||s;return(l||(l=B()||null),"boolean"==typeof i)?l:(0,z.resolveRef)(i)||l||null}();queueMicrotask(()=>{let t=u?(0,v.isTabbable)(u)?u:(0,v.tabbable)(u)[0]||u:null;a&&!eu.current&&(0,n.isHTMLElement)(t)&&("boolean"!=typeof a||t===o||o===e.body||l)&&t.focus({preventScroll:!0}),eu.current=!1})}},[C,Z,ek,ei,eo,Q,el,J,et,eS]),(0,a.useIsoLayoutEffect)(()=>{if(!c.platform.engine.webkit||K||!Z)return;let e=(0,g.activeElement)((0,f.ownerDocument)(Z));(0,n.isHTMLElement)(e)&&(0,h.isTypeableElement)(e)&&(0,g.contains)(Z,e)&&e.blur()},[K,Z]),(0,a.useIsoLayoutEffect)(()=>{if(!C&&ea)return ea.setFocusManagerState({modal:M,closeOnFocusOut:I,open:K,onOpenChange:q.setOpen,domReference:J}),()=>{ea.setFocusManagerState(null)}},[C,ea,M,K,q,I,J]),(0,a.useIsoLayoutEffect)(()=>{if(!C&&ek)return Y(ek),()=>{queueMicrotask(_)}},[C,ek]);let eR=!C&&(!M||!en)&&(eE||M);return(0,j.jsxs)(t.Fragment,{children:[eR&&(0,j.jsx)(m.FocusGuard,{"data-type":"inside",ref:eb,onFocus:e=>{if(M){let e=eT();(0,T.enqueueFocus)(e[e.length-1])}else if(ea?.portalNode)if(eu.current=!1,(0,v.isOutsideEvent)(e,ea.portalNode)){let e=(0,v.getNextTabbable)(J);e?.focus()}else(0,z.resolveRef)(V??ea.beforeOutsideRef)?.focus()}}),R,eR&&(0,j.jsx)(m.FocusGuard,{"data-type":"inside",ref:ev,onFocus:e=>{if(M)(0,T.enqueueFocus)(eT()[0]);else if(ea?.portalNode)if(I&&(eu.current=!0),(0,v.isOutsideEvent)(e,ea.portalNode)){let e=(0,v.getPreviousTabbable)(J);e?.focus()}else(0,z.resolveRef)($??ea.afterOutsideRef)?.focus()}})]})}],5510);let $=new Set([...new Set([...new Set(["ArrowLeft","ArrowRight"]),...new Set(["ArrowUp","ArrowDown"])]),"Home","End"]);e.s(["COMPOSITE_KEYS",0,$],42615)},38615,e=>{"use strict";e.s(["clamp",0,function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}])},67071,e=>{"use strict";var t=e.i(34336);e.s(["createSelector",0,(e,n,r,i,o,s,...l)=>{let a;if(l.length>0)throw Error((0,t.default)(1));if(e&&n&&r&&i&&o&&s)a=(t,l,a,u)=>s(e(t,l,a,u),n(t,l,a,u),r(t,l,a,u),i(t,l,a,u),o(t,l,a,u),l,a,u);else if(e&&n&&r&&i&&o)a=(t,s,l,a)=>o(e(t,s,l,a),n(t,s,l,a),r(t,s,l,a),i(t,s,l,a),s,l,a);else if(e&&n&&r&&i)a=(t,o,s,l)=>i(e(t,o,s,l),n(t,o,s,l),r(t,o,s,l),o,s,l);else if(e&&n&&r)a=(t,i,o,s)=>r(e(t,i,o,s),n(t,i,o,s),i,o,s);else if(e&&n)a=(t,r,i,o)=>n(e(t,r,i,o),r,i,o);else if(e)a=e;else throw Error("Missing arguments");return a}])},25661,(e,t,n)=>{"use strict";var r=e.r(47456),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,l=r.useLayoutEffect,a=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return l(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),a(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},56032,(e,t,n)=>{"use strict";
1t.exports=e.r(25661)},20206,(e,t,n)=>{"use strict";var r=e.r(47456),i=e.r(56032),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,l=r.useRef,a=r.useEffect,u=r.useMemo,c=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=s(e,(d=u(function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return l=t}return l=e}if(t=l,o(s,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(s=e,t):(s=e,l=n)}var s,l,a=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,i]))[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},96482,(e,t,n)=>{"use strict";t.exports=e.r(20206)},49729,38148,20464,e=>{"use strict";let t;var n=e.i(47456),r=e.i(56032),i=e.i(96482);let o=parseInt(n.version,10);function s(e){return o>=e}e.s(["isReactVersionAtLeast",0,s],38148);let l=s(19)?function(e,i,o,s,l){let a;if(!t){let t;return t=n.useCallback(()=>i(e.getSnapshot(),o,s,l),[e,i,o,s,l]),(0,r.useSyncExternalStore)(e.subscribe,t,t)}let u=t.syncIndex;return t.syncIndex+=1,t.didInitialize?(a=t.syncHooks[u]).store===e&&a.selector===i&&Object.is(a.a1,o)&&Object.is(a.a2,s)&&Object.is(a.a3,l)||(a.store!==e&&(t.didChangeStore=!0),a.store=e,a.selector=i,a.a1=o,a.a2=s,a.a3=l,a.value=i(e.getSnapshot(),o,s,l)):(a={store:e,selector:i,a1:o,a2:s,a3:l,value:i(e.getSnapshot(),o,s,l)},t.syncHooks.push(a)),a.value}:function(e,t,n,r,o){return(0,i.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,o))};function a(e,t,n,r,i){return l(e,t,n,r,i)}[].push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}}),e.s(["useStore",0,a],20464),e.s(["Store",0,class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return a(this,e,t,n,r)}}],49729)},42604,e=>{"use strict";var t=e.i(47456),n=e.i(49729),r=e.i(20464),i=e.i(77484),o=e.i(40682),s=e.i(5370);class l extends n.Store{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,n){t.useDebugValue(e);let r=this;(0,o.useIsoLayoutEffect)(()=>{r.state[e]!==n&&r.set(e,n)},[r,e,n])}useSyncedValueWithCleanup(e,t){let n=this;(0,o.useIsoLayoutEffect)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,o.useIsoLayoutEffect)(()=>{t.update(e)},[t,...n])}useControlledProp(e,n){t.useDebugValue(e);let r=this,i=void 0!==n;(0,o.useIsoLayoutEffect)(()=>{i&&!Object.is(r.state[e],n)&&r.setState({...r.state,[e]:n})},[r,e,n,i])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,n,i,o){return t.useDebugValue(e),(0,r.useStore)(this,this.selectors[e],n,i,o)}useContextCallback(e,n){t.useDebugValue(e);let r=(0,i.useStableCallback)(n??s.NOOP);this.context[e]=r}useStateSetter(e){let n=t.useRef(void 0);return void 0===n.current&&(n.current=t=>{this.set(e,t)}),n.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}e.s(["ReactStore",0,l])},84149,e=>{"use strict";e.s(["createEventEmitter",0,function(){let e=new Map;
1return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}])},17782,e=>{"use strict";var t=e.i(67071),n=e.i(42604),r=e.i(84149),i=e.i(90204);let o={open:(0,t.createSelector)(e=>e.open),transitionStatus:(0,t.createSelector)(e=>e.transitionStatus),domReferenceElement:(0,t.createSelector)(e=>e.domReferenceElement),referenceElement:(0,t.createSelector)(e=>e.positionReference??e.referenceElement),floatingElement:(0,t.createSelector)(e=>e.floatingElement),floatingId:(0,t.createSelector)(e=>e.floatingId)};class s extends n.ReactStore{constructor(e){const{syncOnly:t,nested:n,onOpenChange:i,triggerElements:s,...l}=e;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:(0,r.createEventEmitter)(),nested:n,triggerElements:s},o),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,i.isClickLikeEvent)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
1{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}e.s(["FloatingRootStore",0,s])},4717,e=>{"use strict";var t=e.i(47456),n=e.i(40682),r=e.i(80269),i=e.i(17782);e.s(["useSyncedFloatingRootContext",0,function(e){let{popupStore:o,treatPopupAsFloatingElement:s=!1,floatingRootContext:l,floatingId:a,nested:u,onOpenChange:c}=e,d=o.useState("open"),f=o.useState("activeTriggerElement"),p=o.useState(s?"popupElement":"positionerElement"),m=o.context.triggerElements,g=t.useRef(null);void 0===l&&null===g.current&&(g.current=new i.FloatingRootStore({open:d,transitionStatus:void 0,referenceElement:f,floatingElement:p,triggerElements:m,onOpenChange:c,floatingId:a,syncOnly:!0,nested:u}));let h=l??g.current;return o.useSyncedValue("floatingId",a),(0,n.useIsoLayoutEffect)(()=>{let e={open:d,floatingId:a,referenceElement:f,floatingElement:p};(0,r.isElement)(f)&&(e.domReferenceElement=f),h.state.positionReference===h.state.referenceElement&&(e.positionReference=f),h.update(e)},[d,a,f,p,h]),h.context.onOpenChange=c,h.context.nested=u,h}])},91099,e=>{"use strict";var t=e.i(47456),n=e.i(40682),r=e.i(95354);e.s(["useTransitionStatus",0,function(e,i=!1,o=!1){let[s,l]=t.useState(e&&i?"idle":void 0),[a,u]=t.useState(e);return e&&!a&&(u(!0),l("starting")),e||!a||"ending"===s||o||l("ending"),e||a||"ending"!==s||l(void 0),(0,n.useIsoLayoutEffect)(()=>{if(!e&&a&&"ending"!==s&&o){let e=r.AnimationFrame.request(()=>{l("ending")});return()=>{r.AnimationFrame.cancel(e)}}},[e,a,s,o]),(0,n.useIsoLayoutEffect)(()=>{if(!e||i)return;let t=r.AnimationFrame.request(()=>{l(void 0)});return()=>{r.AnimationFrame.cancel(t)}},[i,e]),(0,n.useIsoLayoutEffect)(()=>{if(!e||!i)return;e&&a&&"idle"!==s&&l("starting");let t=r.AnimationFrame.request(()=>{l("idle")});return()=>{r.AnimationFrame.cancel(t)}},[i,e,a,s]),{mounted:a,setMounted:u,transitionStatus:s}}])},97334,e=>{"use strict";var t=e.i(38148);e.s(["inertValue",0,function(e){return(0,t.isReactVersionAtLeast)(19)?e:e?"true":void 0}])},83969,20519,e=>{"use strict";var t=e.i(47456);e.i(95072);var n=e.i(5370),r=e.i(49054),i=e.i(77484),o=e.i(40682),s=e.i(12294),l=e.i(25275),a=e.i(4717),u=e.i(91099),c=e.i(38880),d=e.i(34244),f=e.i(22200);let p={tabIndex:-1,[s.FOCUSABLE_ATTRIBUTE]:""};function m(e,n){let r=t.useRef(null),i=t.useRef(null);return t.useCallback(t=>{if(void 0===e)return;let o=!1;if(null!==r.current){let e=r.current,t=i.current,s=n.context.triggerElements.getById(e);t&&s===t&&(n.context.triggerElements.delete(e),o=!0),r.current=null,i.current=null}if(null!==t&&(r.current=e,i.current=t,n.context.triggerElements.add(e,t),o=!0),o){let e=n.context.triggerElements.size;n.select("open")&&n.state.triggerCount!==e&&n.set("triggerCount",e)}},[n,e])}e.s(["FOCUSABLE_POPUP_PROPS",0,p,"createDefaultInitialFocus",0,function(e){return t=>"touch"!==t||e.current},"setPopupOpenState",0,function(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)},"useImplicitActiveTrigger",0,function(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState("open"),i=e.useState("triggerCount");(0,o.useIsoLayoutEffect)(()=>{if(!r){0!==e.state.triggerCount&&e.set("triggerCount",0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let o=e.select("activeTriggerId"),s=null;if(o){let t=e.context.triggerElements.getById(o);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):s=o}if(!s&&!o&&1===t){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(void 0!==i.triggerCount||void 0!==i.activeTriggerId||void 0!==i.activeTriggerElement)&&e.update(i),s&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===s&&!e.context.triggerElements.getById(s)){let t=(0,d.createChangeEventDetails)(f.REASONS.none);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,i,n])},"useOpenStateTransitions",0,function(e,t,n){let{mounted:r,setMounted:o,transitionStatus:s}=(0,u.useTransitionStatus)(e),l=t.useState("preventUnmountingOnClose"),a=!e&&l;t.useSyncedValues({mounted:r,transitionStatus:s,preventUnmountingOnClose:a});let d=(0,i.useStableCallback)(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return(0,c.useOpenChangeComplete)({enabled:r&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||d()}}),{forceUnmount:d,transitionStatus:s}},"usePopupInteractionProps",0,function(e,t){e.useSyncedValues(t),(0,o.useIsoLayoutEffect)(()=>()=>{e.update({activeTriggerProps:n.EMPTY_OBJECT,inactiveTriggerProps:n.EMPTY_OBJECT,popupProps:n.EMPTY_OBJECT})},[e])},"usePopupRootSync",0,function(e,t){(0,o.useIsoLayoutEffect)(()=>{t||null===e.state.openMethod||e.set("openMethod",null)},[t,e]),(0,o.useIsoLayoutEffect)(()=>()=>{null!==e.state.openMethod&&e.set("openMethod",null)},[e])},"usePopupStore",0,function(e,n,i=!1){let o=(0,r.useId)(),s=null!=(0,l.useFloatingParentNodeId)(),u=t.useRef(null);void 0===e&&null===u.current&&(u.current=n(o,s));let c=e??u.current;return(0,a.useSyncedFloatingRootContext)({popupStore:c,treatPopupAsFloatingElement:i,floatingRootContext:c.state.floatingRootContext,floatingId:o,nested:s,onOpenChange:c.setOpen}),{store:c,internalStore:u.current}},"useTriggerDataForwarding",0,function(e,t,n,r){let s=n.useState("isMountedByTrigger",e),l=m(e,n),a=(0,i.useStableCallback)(t=>{if(l(t),!t)return;let i=n.select("open"),o=n.select("activeTriggerId");o===e?n.update({activeTriggerElement:t,...i?r:null}):null==o&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return(0,o.useIsoLayoutEffect)(()=>{s&&n.update({activeTriggerElement:t.current,...r})},[s,n,t,...Object.values(r)]),{registerTrigger:a,isMountedByThisTrigger:s}},"useTriggerRegistration",0,m],83969),e.i(56171);var g=e.i(98023);let h=t.forwardRef(function(e,t){let n,{cutout:r,...i}=e;if(r){let e=r.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,g.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});e.s(["InternalBackdrop",0,h],20519)},32994,e=>{"use strict";var t=e.i(47456);e.s(["useControlled",0,function({controlled:e,default:n,name:r,state:i="value"}){let{current:o}=t.useRef(void 0!==e),[s,l]=t.useState(n),a=t.useCallback(e=>{o||l(e)},[]);return[o?e:s,a]}])},72249,e=>{"use strict";var t=e.i(47456);e.s(["useOnFirstRender",0,function(e){let n=t.useRef(!0);n.current&&(n.current=!1,e())}])},29340,e=>{"use strict";
1var t=e.i(80269),n=e.i(52485),r=e.i(81313),i=e.i(59387),o=e.i(79995),s=e.i(40682),l=e.i(39939),a=e.i(95354),u=e.i(5370);let c={},d={},f="";class p{lockCount=0;restore=null;timeoutLock=l.Timeout.create();timeoutUnlock=l.Timeout.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let s,l,p,m,g;if(0===this.lockCount||null!==this.restore)return;let h=(0,i.ownerDocument)(e).documentElement,b=(0,o.ownerWindow)(h).getComputedStyle(h).overflowY;if("hidden"===b||"clip"===b){this.restore=u.NOOP;return}let v=r.platform.os.ios||!function(e){if("u"<typeof document)return!1;let t=(0,i.ownerDocument)(e);return(0,o.ownerWindow)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=v?(l=(s=(0,i.ownerDocument)(e)).documentElement,p=s.body,g={overflowY:(m=(0,t.isOverflowElement)(l)?l:p).style.overflowY,overflowX:m.style.overflowX},Object.assign(m.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(m.style,g)}):function(e){let s=(0,i.ownerDocument)(e),l=s.documentElement,u=s.body,p=(0,o.ownerWindow)(l),m=0,g=0,h=!1,b=a.AnimationFrame.create();if(r.platform.engine.webkit&&(p.visualViewport?.scale??1)!==1)return()=>{};function v(){let n=p.getComputedStyle(l),r=p.getComputedStyle(u),o=(n.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";m=l.scrollTop,g=l.scrollLeft,c={scrollbarGutter:l.style.scrollbarGutter,overflowY:l.style.overflowY,overflowX:l.style.overflowX},f=l.style.scrollBehavior,d={position:u.style.position,height:u.style.height,width:u.style.width,boxSizing:u.style.boxSizing,overflowY:u.style.overflowY,overflowX:u.style.overflowX,scrollBehavior:u.style.scrollBehavior};let s=l.scrollHeight>l.clientHeight,a=l.scrollWidth>l.clientWidth,b="scroll"===n.overflowY||"scroll"===r.overflowY,v="scroll"===n.overflowX||"scroll"===r.overflowX,y=Math.max(0,p.innerWidth-u.clientWidth),x=Math.max(0,p.innerHeight-u.clientHeight),w=parseFloat(r.marginTop)+parseFloat(r.marginBottom),E=parseFloat(r.marginLeft)+parseFloat(r.marginRight),k=(0,t.isOverflowElement)(l)?l:u;if(h=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let n=(0,i.ownerDocument)(e),r=n.documentElement,o=n.body,s=(0,t.isOverflowElement)(r)?r:o,l=s.style.overflowY,a=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",s.style.overflowY="scroll";let u=s.offsetWidth;s.style.overflowY="hidden";let c=s.offsetWidth;return s.style.overflowY=l,r.style.scrollbarGutter=a,u===c}(e)){l.style.scrollbarGutter=o,k.style.overflowY="hidden",k.style.overflowX="hidden";return}Object.assign(l.style,{scrollbarGutter:o,overflowY:"hidden",overflowX:"hidden"}),(s||b)&&(l.style.overflowY="scroll"),(a||v)&&(l.style.overflowX="scroll"),Object.assign(u.style,{position:"relative",height:w||x?`calc(100dvh - ${w+x}px)`:"100dvh",width:E||y?`calc(100vw - ${E+y}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),u.scrollTop=m,u.scrollLeft=g,l.setAttribute("data-base-ui-scroll-locked",""),l.style.scrollBehavior="unset"}function y(){Object.assign(l.style,c),Object.assign(u.style,d),h||(l.scrollTop=m,l.scrollLeft=g,l.removeAttribute("data-base-ui-scroll-locked"),l.style.scrollBehavior=f)}v();let x=(0,n.addEventListener)(p,"resize",function(){y(),b.request(v)});return()=>{b.cancel(),y(),"function"==typeof p.removeEventListener&&x()}}(e)}}let m=new p;e.s(["useScrollLock",0,function(e=!0,t=null){(0,s.useIsoLayoutEffect)(()=>{if(e)return m.acquire(t)},[e,t])}])},4553,e=>{"use strict";var t=e.i(47456),n=e.i(52485),r=e.i(96539),i=e.i(59387),o=e.i(77484),s=e.i(39939),l=e.i(80269),a=e.i(81313),u=e.i(25275),c=e.i(34244),d=e.i(22200),f=e.i(51197),p=e.i(70709),m=e.i(38479),g=e.i(90204),h=e.i(52385);function b(){return!1}e.s(["useDismiss",0,function(e,v={}){let{enabled:y=!0,escapeKey:x=!0,outsidePress:w=!0,outsidePressEvent:E="sloppy",referencePress:k=b,bubbles:T,externalTree:S}
1=v,R="rootStore"in e?e.rootStore:e,C=R.useState("open"),P=R.useState("floatingElement"),{dataRef:O}=R.context,A=(0,u.useFloatingTree)(S),M=(0,o.useStableCallback)("function"==typeof w?w:()=>!1),I="function"==typeof w?M:w,L=!1!==I,N=(0,o.useStableCallback)(()=>E),{escapeKey:D,outsidePress:F}={escapeKey:"boolean"==typeof T?T:T?.escapeKey??!1,outsidePress:"boolean"==typeof T?T:T?.outsidePress??!0},z=t.useRef(!1),j=t.useRef(!1),W=t.useRef(!1),_=t.useRef(!1),H=t.useRef(""),B=t.useRef(null),Y=(0,s.useTimeout)(),$=(0,s.useTimeout)(),V=(0,o.useStableCallback)(()=>{$.clear(),O.current.insideReactTree=!1}),U=(0,o.useStableCallback)(e=>{let t=O.current.floatingContext?.nodeId;return(A?(0,h.getNodeChildren)(A.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),X=(0,o.useStableCallback)(e=>(0,m.isEventTargetWithin)(e,R.select("floatingElement"))||(0,m.isEventTargetWithin)(e,R.select("domReferenceElement"))),G=(0,o.useStableCallback)(e=>{k()&&R.setOpen(!1,(0,c.createChangeEventDetails)(d.REASONS.triggerPress,e.nativeEvent))}),q=(0,o.useStableCallback)(e=>{if(!C||!y||!x||"Escape"!==e.key||_.current||!D&&U("__escapeKeyBubbles"))return;let t=(0,g.isReactEvent)(e)?e.nativeEvent:e,n=(0,c.createChangeEventDetails)(d.REASONS.escapeKey,t);R.setOpen(!1,n),n.isCanceled||e.preventDefault(),D||n.isPropagationAllowed||e.stopPropagation()}),K=(0,o.useStableCallback)(()=>{O.current.insideReactTree=!0,$.start(0,V)}),J=(0,o.useStableCallback)(e=>{if(!C||!y||0!==e.button)return;let t=(0,p.getTarget)(e.nativeEvent);(0,p.contains)(R.select("floatingElement"),t)&&(z.current||(z.current=!0,j.current=!1))}),Z=(0,o.useStableCallback)(e=>{!C||!y||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&z.current&&(j.current=!0)});t.useEffect(()=>{if(!C||!y)return;O.current.__escapeKeyBubbles=D,O.current.__outsidePressBubbles=F;let e=new s.Timeout,t=new s.Timeout;function o(){W.current=!0,t.start(0,()=>{W.current=!1})}function u(){z.current=!1,j.current=!1}function g(){let e=H.current,t=N(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function b(e){let t=O.current.floatingContext?.nodeId,n=A&&(0,h.getNodeChildren)(A.nodesRef.current,t).some(t=>(0,m.isEventTargetWithin)(e,t.context?.elements.floating));return X(e)||n}function v(e){let n;if("intentional"===(n=g())&&"click"!==e.type||"sloppy"===n&&"click"===e.type){"click"===e.type||X(e)||(t.clear(),W.current=!1),V();return}if(O.current.insideReactTree)return void V();let r=(0,p.getTarget)(e),o=`[${(0,f.createAttribute)("inert")}]`,s=(0,l.isElement)(r)?r.getRootNode():null,a=Array.from(((0,l.isShadowRoot)(s)?s:(0,i.ownerDocument)(R.select("floatingElement"))).querySelectorAll(o)),u=R.context.triggerElements;if(r&&(u.hasElement(r)||u.hasMatchingElement(e=>(0,p.contains)(e,r))))return;let h=(0,l.isElement)(r)?r:null;for(;h&&!(0,l.isLastTraversableNode)(h);){let e=(0,l.getParentNode)(h);if((0,l.isLastTraversableNode)(e)||!(0,l.isElement)(e))break;h=e}if(!(a.length&&(0,l.isElement)(r)&&!(0,m.isRootElement)(r)&&!(0,p.contains)(r,R.select("floatingElement"))&&a.every(e=>!(0,p.contains)(h,e)))){if((0,l.isHTMLElement)(r)&&!("touches"in e)){let t=(0,l.isLastTraversableNode)(r),n=(0,l.getComputedStyle)(r),i=/auto|scroll/,o=t||i.test(n.overflowX),s=t||i.test(n.overflowY),a=o&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,u=s&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,c="rtl"===n.direction,d=u&&(c?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),f=a&&e.offsetY>r.clientHeight;if(d||f)return}if(!b(e)){if("intentional"===g()&&W.current){t.clear(),W.current=!1;return}"function"==typeof I&&!I(e)||U("__outsidePressBubbles")||(R.setOpen(!1,(0,c.createChangeEventDetails)(d.REASONS.outsidePress,e)),V())}}}function w(e){if("sloppy"!==g()||!R.select("open")||!y||X(e))return;let t=e.touches[0];t&&(B.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Y.start(1e3,()=>{B.current&&(B.current.dismissOnTouchEnd=!1,B.current.dismissOnMouseDown=!1)}))}function E(e,t){let r=(0,p.getTarget)(e);if(!r)return;let i=(0,n.addEventListener)(r,e.type,()=>{t(e),i()})}function k(e){Y.clear(),"pointerdown"===e.type&&(H.current=e.pointerType),("mousedown"!==e.type||!B.current||B.current.dismissOnMouseDown)&&E(e,e=>{if("pointerdown"===e.type)"sloppy"!==g()||"touch"===e.pointerType||!R.select("open")||!y||X(e)||v(e);else v(e)})}function T(e){if(!z.current)return;let n=j.current;if(u(),"intentional"===g()){if("pointercancel"===e.type){n&&o();return}b(e)||(n?o():("function"!=typeof I||I(e))&&(t.clear(),W.current=!0,V()))}}function S(e){if("sloppy"!==g()||!B.current||X(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-B.current.startX),r=Math.abs(t.clientY-B.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(B.current.dismissOnTouchEnd=!0),i>10&&(v(e),Y.clear(),B.current=null)}function M(e){"sloppy"!==g()||!B.current||X(e)||(B.current.dismissOnTouchEnd&&v(e),Y.clear(),B.current=null)}let $=(0,i.ownerDocument)(P),G=(0,r.mergeCleanups)(x&&(0,r.mergeCleanups)((0,n.addEventListener)($,"keydown",q),(0,n.addEventListener)($,"compositionstart",function(){e.clear(),_.current=!0}),(0,n.addEventListener)($,"compositionend",function(){e.start(5*!!a.platform.engine.webkit,()=>{_.current=!1})}
1)),L&&(0,r.mergeCleanups)((0,n.addEventListener)($,"click",k,!0),(0,n.addEventListener)($,"pointerdown",k,!0),(0,n.addEventListener)($,"pointerup",T,!0),(0,n.addEventListener)($,"pointercancel",T,!0),(0,n.addEventListener)($,"mousedown",k,!0),(0,n.addEventListener)($,"mouseup",T,!0),(0,n.addEventListener)($,"touchstart",function(e){H.current="touch",E(e,w)},!0),(0,n.addEventListener)($,"touchmove",function(e){E(e,S)},!0),(0,n.addEventListener)($,"touchend",function(e){E(e,M)},!0)));return()=>{G(),e.clear(),t.clear(),u(),W.current=!1}},[O,P,x,L,I,C,y,D,F,q,V,N,U,X,A,R,Y]),t.useEffect(V,[I,V]);let Q=t.useMemo(()=>({onKeyDown:q,onPointerDown:G,onClick:G}),[q,G]),ee=t.useMemo(()=>({onKeyDown:q,onPointerDown:Z,onMouseDown:Z,onClickCapture:K,onMouseDownCapture(e){K(),J(e)},onPointerDownCapture(e){K(),J(e)},onMouseUpCapture:K,onTouchEndCapture:K,onTouchMoveCapture:K}),[q,K,J,Z]);return t.useMemo(()=>y?{reference:Q,floating:ee,trigger:Q}:{},[y,Q,ee])}])},16763,e=>{"use strict";e.s(["PopupTriggerMap",0,class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}])},53446,e=>{"use strict";var t=e.i(47456),n=e.i(95354),r=e.i(39939),i=e.i(5370),o=e.i(70709),s=e.i(38479),l=e.i(90204),a=e.i(34244),u=e.i(22200);e.s(["useClick",0,function(e,c={}){let{enabled:d=!0,event:f="click",toggle:p=!0,ignoreMouse:m=!1,stickIfOpen:g=!0,touchOpenDelay:h=0,reason:b=u.REASONS.triggerPress}=c,v="rootStore"in e?e.rootStore:e,y=v.context.dataRef,x=t.useRef(void 0),w=(0,n.useAnimationFrame)(),E=(0,r.useTimeout)(),k=t.useMemo(()=>{function e(e,t,n,r){let i=(0,a.createChangeEventDetails)(b,t,n);e&&"touch"===r&&h>0?E.start(h,()=>{v.setOpen(!0,i)}):v.setOpen(e,i)}function t(e,t,n){let r=y.current.openEvent,i=v.select("domReferenceElement")!==t;return!!e&&!!i||!e||!p||!!r&&!!g&&!n(r.type)}return{onPointerDown(e){x.current=e.pointerType},onMouseDown(n){let r=x.current,i=n.nativeEvent,a=v.select("open");if(0!==n.button||"click"===f||(0,l.isMouseLikePointerType)(r,!0)&&m)return;let u=t(a,n.currentTarget,e=>"click"===e||"mousedown"===e),c=(0,o.getTarget)(i);if((0,s.isTypeableElement)(c))return void e(u,i,c,r);let d=n.currentTarget;w.request(()=>{e(u,i,d,r)})},onClick(n){if("mousedown-only"===f)return;let r=x.current;if("mousedown"===f&&r){x.current=void 0;return}(0,l.isMouseLikePointerType)(r,!0)&&m||e(t(v.select("open"),n.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),n.nativeEvent,n.currentTarget,r)},onKeyDown(){x.current=void 0}}},[y,f,m,b,v,g,p,w,E,h]);return t.useMemo(()=>d?{reference:k}:i.EMPTY_OBJECT,[d,k])}])},19106,e=>{"use strict";var t=e.i(47456);e.s(["useEnhancedClickHandler",0,function(e){let n=t.useRef(""),r=t.useCallback(t=>{t.defaultPrevented||(n.current=t.pointerType,e(t,t.pointerType))},[e]);return{onClick:t.useCallback(t=>{0===t.detail?e(t,"keyboard"):("pointerType"in t?e(t,t.pointerType):e(t,n.current),n.current="")},[e]),onPointerDown:r}}])},18020,e=>{"use strict";var t=e.i(47456),n=e.i(40682),r=e.i(77484);e.s(["useValueChanged",0,function(e,i){let o=t.useRef(e),s=(0,r.useStableCallback)(i);(0,n.useIsoLayoutEffect)(()=>{o.current!==e&&s(o.current)},[e,s]),(0,n.useIsoLayoutEffect)(()=>{o.current=e},[e])}])},11884,e=>{"use strict";var t=e.i(47456),n=e.i(77484),r=e.i(19106),i=e.i(81313),o=e.i(18020);function s(e,o){let s=(0,n.useStableCallback)((t,n)=>{("function"==typeof e?e():e)||o(n||(i.platform.os.ios?"touch":""))}),{onClick:l,onPointerDown:a}=(0,r.useEnhancedClickHandler)(s);return t.useMemo(()=>({onClick:l,onPointerDown:a}),[l,a])}e.s(["useOpenInteractionType",0,function(e){let[n,r]=t.useState(null),i=s(e,r);return(0,o.useValueChanged)(e,t=>{t&&!e&&r(null)}),t.useMemo(()=>({openMethod:n,triggerProps:i}),[n,i])},"useOpenMethodTriggerProps",0,s])},32436,e=>{"use strict";
1var t=e.i(80269);function n(e,r,i=!1){let o=(0,t.getComputedStyle)(e);if("vertical"===r){let t=o.overflowY;return("auto"===t||"scroll"===t)&&(i?e.clientHeight>0:e.scrollHeight>e.clientHeight)}let s=o.overflowX;return("auto"===s||"scroll"===s)&&(i?e.clientWidth>0:e.scrollWidth>e.clientWidth)}e.s(["findScrollableTouchTarget",0,function(e,r,i="vertical",o=!1){let s=(0,t.isHTMLElement)(e)?e:null;for(;(0,t.isHTMLElement)(s)&&s!==r&&!(0,t.isLastTraversableNode)(s);){if(n(s,i,o))return s;s=(0,t.getParentNode)(s)}return n(r,i,o)?r:null},"hasScrollableAncestor",0,function(e,r,i){let o=e;for(;(0,t.isHTMLElement)(o)&&o!==r&&!(0,t.isLastTraversableNode)(o);){for(let e of i)if(n(o,e))return!0;o=(0,t.getParentNode)(o)}return!1}])},32154,64494,e=>{"use strict";var t=e.i(47456),n=e.i(77484),r=e.i(59387),i=e.i(79995),o=e.i(70709),s=e.i(32436),l=e.i(38615);function a(e,t,n){return"function"==typeof e?.elementFromPoint?e.elementFromPoint(t,n):null}function u(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}function c(e){let t=(0,i.ownerWindow)(e).getComputedStyle(e).transform,n=0,r=0,o=1;if(t&&"none"!==t){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(n=t[4],r=t[5],o=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(n=t[12],r=t[13],o=t[0])}}return{x:n,y:r,scale:o}}function d(e){return Number.isFinite(e)&&e>0?e:null}function f(e,t){return`translate3d(${e.x}px,${e.y}px,0) scale(${t})`}function p(e,t,n){let r=e[n];if("function"==typeof r)try{r.call(e,t)}catch(e){if(e&&"object"==typeof e&&"name"in e&&"NotFoundError"===e.name)return;throw e}}e.s(["getElementAtPoint",0,a],64494),e.s(["getDisplacement",0,u,"getElementTransform",0,c,"useSwipeDismiss",0,function(e){let{enabled:i,directions:m,elementRef:g,movementCssVars:h,canStart:b,ignoreSelectorWhenTouch:v=!0,ignoreScrollableAncestors:y=!1,swipeThreshold:x,onDismiss:w,onProgress:E,onCancel:k,onSwipeStart:T,onRelease:S,onSwipingChange:R,trackDrag:C=!0}=e,P=1===m.length?m[0]:void 0,O=Math.max(0,"number"==typeof x?x:40),A=m.includes("left"),M=m.includes("right"),I=m.includes("up"),L=m.includes("down"),N=A||M,D=I||L,F=t.useMemo(()=>{let e=[];return D&&e.push("vertical"),N&&e.push("horizontal"),e},[N,D]),[z,j]=t.useState(void 0),[W,_]=t.useState(!1),[H,B]=t.useState(!1),Y=t.useRef({x:0,y:0}),$=t.useRef({x:0,y:0}),V=t.useRef(null),U=t.useRef({x:0,y:0,scale:1}),X=t.useRef(void 0),G=t.useRef(0),q=t.useRef(!1),K=t.useRef({x:0,y:0}),J=t.useRef(null),Z=t.useRef(!1),Q=t.useRef(!1),ee=t.useRef(null),et=t.useRef(!1),en=t.useRef(!1),er=t.useRef({width:0,height:0}),ei=t.useRef(0),eo=t.useRef(O),es=t.useRef(null),el=t.useRef(null),ea=t.useRef({x:0,y:0}),eu=t.useRef(null),ec=t.useRef(!1),ed=t.useRef(null),ef=(0,n.useStableCallback)(e=>{ec.current!==e&&(ec.current=e,_(e),R?.(e))});function ep(e){if(!e)return;if("function"!=typeof x){eo.current=O;return}let t=g.current;t&&(eo.current=Math.max(0,x({element:t,direction:e})))}let em=(0,n.useStableCallback)((e,t)=>{let n=Number.isFinite(e)?(0,l.clamp)(e,0,1):0,r=n!==ei.current,i=!1;if(t){let e=eu.current;i=!e||e.deltaX!==t.deltaX||e.deltaY!==t.deltaY||e.direction!==t.direction}(r||i)&&(ei.current=n,t?eu.current=t:r&&(eu.current=null),E?.(n,t))}),eg=(0,n.useStableCallback)(e=>{let t=g.current;if(!C||!t){e||(ed.current=null);return}let n=t.style,r=ed.current;e?(r||(ed.current=[n.transition,n.transform]),n.transition="none"):r&&([n.transition,n.transform]=r,ed.current=null);let i=$.current,o=U.current,s=i.x-o.x,l=i.y-o.y;e&&(n.transform=f(i,o.scale)),n.setProperty(h.x,`${s}px`),n.setProperty(h.y,`${l}px`)});function eh(e,t){if(null===t)return;let n=el.current;if(n&&t>n.time){let r=Math.max(t-n.time,16);ea.current={x:(e.x-n.x)/r,y:(e.y-n.y)/r}}el.current={x:e.x,y:e.y,time:t}}let eb=t.useCallback(()=>{j(void 0),ef(!1),B(!1),em(0),eo.current=O,Y.current={x:0,y:0},$.current={x:0,y:0},U.current={x:0,y:0,scale:1},X.current=void 0,G.current=0,q.current=!1,K.current={x:0,y:0},J.current=null,Z.current=!1,V.current=null,Q.current=!1,ee.current=null,et.current=!1,en.current=!1,er.current={width:0,height:0},es.current=null,el.current=null,ea.current={x:0,y:0},eu.current=null,eg(!1)},[ef,O,eg,em]);function ev(e){if("touches"in e){let t=e.touches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function ey(e){return"touches"in e||"touch"===e.pointerType}function ex(e,t){return a((0,r.ownerDocument)(g.current),e.x,e.y)??(0,o.getTarget)(t)}function ew(e,t){return N&&!D?(0,s.findScrollableTouchTarget)(e,t,"horizontal"):D&&!N?(0,s.findScrollableTouchTarget)(e,t,"vertical"):(0,s.findScrollableTouchTarget)(e,t,"vertical")??
1(0,s.findScrollableTouchTarget)(e,t,"horizontal")}function eE(e,t,n){et.current=!1;let i=ey(e),o=ex(t,e.nativeEvent),l=(0,r.ownerDocument)(g.current).body,a=i&&l?ew(o,l):null,u=n?.ignoreScrollableTarget??!1;if(a&&!u||(et.current=!!(a&&u),o&&o.closest('button,a,input,select,textarea,label,[role="button"]')&&(!i||v)))return!1;let f=g.current;if(y&&f&&o&&F.length>0&&!n?.ignoreScrollableAncestors&&(0,s.hasScrollableAncestor)(o,f,F))return!1;if(q.current=!1,X.current=void 0,G.current=0,Y.current=t,es.current=d(e.timeStamp),K.current=t,V.current=t,f){er.current={width:f.offsetWidth,height:f.offsetHeight},ep(P);let t=c(f);U.current=t,$.current={x:t.x,y:t.y},eh({x:t.x,y:t.y},es.current),"touches"in e||p(f,e.pointerId,"setPointerCapture")}return T?.(e.nativeEvent),ef(!0),J.current=null,Z.current=!0,em(0),eg(!0),!0}function ek(){eT(),et.current=!1,V.current=null}function eT(){Q.current=!1,ee.current=null}t.useEffect(()=>{"function"!=typeof x&&(eo.current=O)},[O,x]);let eS=(0,n.useStableCallback)(e=>{if(!i||e.defaultPrevented||e.nativeEvent.defaultPrevented||!("touches"in e)&&0!==e.button)return;let t=ev(e);!t||(Q.current=!0,ee.current=t,et.current=!1,en.current=!1,(!b||b(t,{nativeEvent:e.nativeEvent,direction:P}))&&eE(e,t)&&eT())}),eR=(0,n.useStableCallback)(e=>{let t;if(!i)return;let n=$.current,r=U.current,o=n.x-r.x,s=n.y-r.y,l={deltaX:o,deltaY:s,direction:X.current};if(!ec.current){ek(),em(0,l);return}ef(!1),J.current=null,ek(),en.current=!1;let a=g.current;!a||"touches"in e||p(a,e.pointerId,"releasePointerCapture");let u=es.current,c=d(e.timeStamp),f=null!==u&&null!==c&&c>u?c-u:0,h=f>0?Math.max(f,50):0,b=ea.current.x,v=ea.current.y,y=el.current;if(y&&null!==c&&c>=y.time){let e=c-y.time;if(e<=80){let t=Math.max(e,16),r=n.x-y.x,i=n.y-y.y,o=r/t,s=i/t;0!==o&&(b=o),0!==s&&(v=s)}else b=0,v=0}let x=S?.({event:e.nativeEvent,direction:X.current,deltaX:o,deltaY:s,velocityX:h>0?o/h:0,velocityY:h>0?s/h:0,releaseVelocityX:b,releaseVelocityY:v}),E="boolean"==typeof x;if(q.current&&!E){$.current={x:r.x,y:r.y},j(void 0),eg(!1),em(0,l);return}let k=!1;if(E)k=x,t=X.current??P;else for(let e of m){switch(e){case"right":o>eo.current&&(k=!0,t="right");break;case"left":o<-eo.current&&(k=!0,t="left");break;case"down":s>eo.current&&(k=!0,t="down");break;case"up":s<-eo.current&&(k=!0,t="up")}if(k)break}k&&t?(j(t),B(!0),eg(!1),w?.(e.nativeEvent,{direction:t})):($.current={x:r.x,y:r.y},j(void 0),eg(!1),em(0,l))}),eC=(0,n.useStableCallback)(e=>{let t=ev(e);if(!t)return;let n=!1;if(!("touches"in e)){let t=e.buttons%2==1;if(t&&(en.current=!0),0!==e.buttons&&!t)return void function(e){if(ek(),!ec.current)return;ef(!1),J.current=null;let t=U.current;$.current={x:t.x,y:t.y},j(void 0),en.current=!1,eg(!1);let n=g.current;n&&p(n,e.pointerId,"releasePointerCapture"),em(0,{deltaX:0,deltaY:0,direction:void 0}),k?.(e.nativeEvent)}(e);if(0===e.buttons&&en.current){if(!ec.current)return void eR(e);n=!0}}if(!W&&Q.current){if(!ey(e)&&(e.defaultPrevented||e.nativeEvent.defaultPrevented))return void ek();if(!b||b(t,{nativeEvent:e.nativeEvent,direction:P})){let n=ee.current,i=!1;if(ey(e)){let s=g.current;if(n&&s){let l=ex(t,e.nativeEvent),a=(0,r.ownerDocument)(s).body,u=a?ew(l,a):null;if(u&&((0,o.contains)(s,u)||(0,o.contains)(u,s))){let e=function(e,t,n){let r=Math.abs(t),i=Math.abs(n);if(D&&0!==n&&(!N||i>=r)){let t=Math.max(0,e.scrollHeight-e.clientHeight),r=e.scrollTop<=0,i=e.scrollTop>=t,o=n>0&&r&&L,s=n<0&&i&&I;return o||s}if(N&&0!==t&&(!D||r>i)){let n=Math.max(0,e.scrollWidth-e.clientWidth),r=e.scrollLeft<=0,i=e.scrollLeft>=n,o=t>0&&r&&M,s=t<0&&i&&A;return o||s}return null}(u,t.x-n.x,t.y-n.y);if(!1===e)return;!0===e&&(i=!0)}}}eE(e,t,{ignoreScrollableTarget:i,ignoreScrollableAncestors:i})&&(n&&i?(eT(),Y.current=n,K.current=n,V.current=n,Z.current=!1):(eT(),et.current=!1))}}let s=V.current,l=null===s?{x:0,y:0}:{x:t.x-s.x,y:t.y-s.y};V.current=t,function(e,t,n){let r,s,l;if(!i||!ec.current)return;let a=(0,o.getTarget)(e.nativeEvent);if(ey(e)&&!et.current&&ew(a,e.currentTarget))return;if("touches"in e||e.preventDefault(),Z.current){Y.current=t;let n=d(e.timeStamp);null!==n&&(es.current=n),Z.current=!1}let c=t.x,f=t.y,p=n.x,m=n.y;(m<0&&f>K.current.y||m>0&&f<K.current.y)&&(K.current={x:K.current.x,y:f}),(p<0&&c>K.current.x||p>0&&c<K.current.x)&&(K.current={x:c,y:K.current.y});let g=c-Y.current.x,h=f-Y.current.y,b=f-K.current.y,v=c-K.current.x,y=J.current;if(null===y&&N&&D&&Math.sqrt(g*g+h*h)>=1&&(J.current=y=Math.abs(g)>Math.abs(h)?"horizontal":"vertical"),X.current){let e=X.current,t=u(e,v,b);t>eo.current?(q.current=!1,j(e)):A&&M||I&&L||!(G.current-t>=10)||(q.current=!0)}else"vertical"===y?h>0?r="down":h<0&&(r="up"):"horizontal"===y?g>0?r="right":g<0&&(r="left"):r=Math.abs(g)>=Math.abs(h)?g>0?"right":"left":h>0?"down":"up",r&&("left"===r&&A||"right"===r&&M||"up"===r&&I||"down"===r&&L)&&(X.current=r,G.current=u(r,g,h),j(r),ep(r));let x=(s=e=>e>
1=0?e**.5:-(Math.abs(e)**.5),l=(e,t,n)=>!t&&e<0||!n&&e>0?s(e):e,{x:N?l(g,A,M):s(g),y:D?l(h,I,L):s(h)}),w=U.current.x,E=U.current.y;"horizontal"===y?N&&(w+=x.x):("vertical"===y||N&&(w+=x.x),D&&(E+=x.y)),$.current={x:w,y:E},eg(!0),eh({x:w,y:E},d(e.timeStamp));let k=w-U.current.x,T=E-U.current.y,S=X.current,R=P??X.current;if(!R)return em(0,{deltaX:k,deltaY:T,direction:S});let C="left"===R||"right"===R?er.current.width:er.current.height,O=U.current.scale||1;if(C<=0||O<=0)return em(0,{deltaX:k,deltaY:T,direction:S});let F=u(R,w-U.current.x,E-U.current.y);F<=0?em(0,{deltaX:k,deltaY:T,direction:S}):em(F/(C*O),{deltaX:k,deltaY:T,direction:S})}(e,t,l),!n||"touches"in e||eR(e)}),eP=(0,n.useStableCallback)((e,t)=>{eC({touches:e.touches,currentTarget:t,nativeEvent:e,defaultPrevented:e.defaultPrevented,timeStamp:e.timeStamp})}),eO=t.useCallback(()=>{let e=$.current,t=U.current,n=e.x-t.x,r=e.y-t.y;return W||0!==n||0!==r||H?{transition:W?"none":void 0,transform:W?f(e,t.scale):void 0,[h.x]:`${n}px`,[h.y]:`${r}px`}:{[h.x]:"0px",[h.y]:"0px"}},[H,W,h]);return{swiping:W,swipeDirection:z,dragDismissed:H,getPointerProps:t.useCallback(()=>i?{onPointerDown:eS,onPointerMove:eC,onPointerUp:eR,onPointerCancel:eR}:{},[i,eR,eC,eS]),getTouchProps:t.useCallback(()=>i?{onTouchStart:eS,onTouchMove:eC,onTouchEnd:eR,onTouchCancel:eR}:{},[i,eR,eC,eS]),moveNative:eP,getDragStyles:eO,reset:eb}}],32154)},9665,7284,e=>{"use strict";function t(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}e.s(["clsx",0,t],7284);let n=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),r=[],i=(e,t,n)=>{if(0==e.length-t)return n.classGroupId;let r=e[t],o=n.nextPart.get(r);if(o){let n=i(e,t+1,o);if(n)return n}let s=n.validators;if(null===s)return;let l=0===t?e.join("-"):e.slice(t).join("-"),a=s.length;for(let e=0;e<a;e++){let t=s[e];if(t.validator(l))return t.classGroupId}},o=(e,t)=>{let r=n();for(let n in e)s(e[n],r,n,t);return r},s=(e,t,n,r)=>{let i=e.length;for(let o=0;o<i;o++)l(e[o],t,n,r)},l=(e,t,n,r)=>{"string"==typeof e?a(e,t,n):"function"==typeof e?u(e,t,n,r):c(e,t,n,r)},a=(e,t,n)=>{(""===e?t:d(t,e)).classGroupId=n},u=(e,t,n,r)=>{f(e)?s(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:n,validator:e}))},c=(e,t,n,r)=>{let i=Object.entries(e),o=i.length;for(let e=0;e<o;e++){let[o,l]=i[e];s(l,d(t,o),n,r)}},d=(e,t)=>{let r=e,i=t.split("-"),o=i.length;for(let e=0;e<o;e++){let t=i[e],o=r.nextPart.get(t);o||(o=n(),r.nextPart.set(t,o)),r=o}return r},f=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,p=[],m=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),g=/\s+/,h=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=h(e[r]))&&(n&&(n+=" "),n+=t);return n},b=[],v=e=>{let t=t=>t[e]||b;return t.isThemeGetter=!0,t},y=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x=/^\((?:(\w[\w-]*):)?(.+)\)$/i,w=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,E=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>w.test(e),P=e=>!!e&&!Number.isNaN(Number(e)),O=e=>!!e&&Number.isInteger(Number(e)),A=e=>e.endsWith("%")&&P(e.slice(0,-1)),M=e=>E.test(e),I=()=>!0,L=e=>k.test(e)&&!T.test(e),N=()=>!1,D=e=>S.test(e),F=e=>R.test(e),z=e=>!_(e)&&!G(e),j=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),W=e=>en(e,es,N),_=e=>y.test(e),H=e=>en(e,el,L),B=e=>en(e,ea,P),Y=e=>en(e,ec,I),$=e=>en(e,eu,N),V=e=>en(e,ei,N),U=e=>en(e,eo,F),X=e=>en(e,ed,D),G=e=>x.test(e),q=e=>er(e,el),K=e=>er(e,eu),J=e=>er(e,ei),Z=e=>er(e,es),Q=e=>er(e,eo),ee=e=>er(e,ed,!0),et=e=>er(e,ec,!0),en=(e,t,n)=>{let r=y.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},er=(e,t,n=!1)=>{let r=x.exec(e);return!!r&&(r[1]?t(r[1]):n)},ei=e=>"position"===e||"percentage"===e,eo=e=>"image"===e||"url"===e,es=e=>"length"===e||"size"===e||"bg-size"===e,el=e=>"length"===e,ea=e=>"number"===e,eu=e=>"family-name"===e,ec=e=>"number"===e||"weight"===e,ed=e=>"shadow"===e,ef=((e,...t)=>{let n,s,l,a,u=e=>{let t=s(e);if(t)return t;let r=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o,postfixLookupClassGroupIds:s}=t,l=[],a=e.trim().split(g),u="";for(let e=a.length-1;e>=0;e-=1){let t,c=a[e],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}=n(c);if(d){u=c+(u.length>0?" "+u:u);continue}let h=!!g;if(h){let e=(t=r(m.substring(0,g)))&&s[t]?r(m):void 0;e&&e!==t&&(t=e,h=!1)}else t=r(m);if(!t){if(!h||!(t=r(m))){u=c+(u.length>0?" "+u:u);continue}h=!1}let b=0===f.length?"":1===f.length?f[0]:o(f).join(":"),v=p?b+"!":b,y=v+t;if(l.indexOf(y)>-1)continue;l.push(y);let x=i(t,h);for(let e=0;e<x.length;++e){let t=x[e];l.push(v+t)}u=c+(u.length>0?" "+u:u)}return u}
1)(e,n);return l(e,r),r};return a=c=>{var d;let f;return s=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,o)=>{n[i]=o,++t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(i(e,t),t):void 0},set(e,t){e in n?n[e]=t:i(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n=[],r=0,i=0,o=0,s=e.length;for(let l=0;l<s;l++){let s=e[l];if(0===r&&0===i){if(":"===s){n.push(e.slice(o,l)),o=l+1;continue}if("/"===s){t=l;continue}}"["===s?r++:"]"===s?r--:"("===s?i++:")"===s&&i--}let l=0===n.length?e:e.slice(o),a=l,u=!1;return l.endsWith("!")?(a=l.slice(0,-1),u=!0):l.startsWith("!")&&(a=l.slice(1),u=!0),m(n,u,a,t&&t>o?t-o:void 0)};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):m(p,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(d),sortModifiers:(f=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{f.set(e,1e6+t)}),e=>{let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r],o="["===i[0],s=f.has(i);o||s?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(i)):n.push(i)}return n.length>0&&(n.sort(),t.push(...n)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t})(d),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e;return o(n,t)})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var n;let t,r,i;return -1===(n=e).slice(1,-1).indexOf(":")?void 0:(r=(t=n.slice(1,-1)).indexOf(":"),(i=t.slice(0,r))?"arbitrary.."+i:void 0)}let r=e.split("-"),o=+(""===r[0]&&r.length>1);return i(r,o,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=s[e],i=n[e];if(t){if(i){let e=Array(i.length+t.length);for(let t=0;t<i.length;t++)e[t]=i[t];for(let n=0;n<t.length;n++)e[i.length+n]=t[n];return e}return t}return i||r}return n[e]||r}}})(d)}).cache.get,l=n.cache.set,a=u,u(c)},(...e)=>a(((...e)=>{let t,n,r=0,i="";for(;r<e.length;)(t=e[r++])&&(n=h(t))&&(i&&(i+=" "),i+=n);return i})(...e))})(()=>{let e=v("color"),t=v("font"),n=v("text"),r=v("font-weight"),i=v("tracking"),o=v("leading"),s=v("breakpoint"),l=v("container"),a=v("spacing"),u=v("radius"),c=v("shadow"),d=v("inset-shadow"),f=v("text-shadow"),p=v("drop-shadow"),m=v("blur"),g=v("perspective"),h=v("aspect"),b=v("ease"),y=v("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),G,_],k=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],S=()=>[G,_,a],R=()=>[C,"full","auto",...S()],L=()=>[O,"none","subgrid",G,_],N=()=>["auto",{span:["full",O,G,_]},O,G,_],D=()=>[O,"auto",G,_],F=()=>["auto","min","max","fr",G,_],en=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],er=()=>["start","end","center","stretch","center-safe","end-safe"],ei=()=>["auto",...S()],eo=()=>[C,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],es=()=>[C,"screen","full","dvw","lvw","svw","min","max","fit",...S()],el=()=>[C,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],ea=()=>[e,G,_],eu=()=>[...w(),J,V,{position:[G,_]}],ec=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ed=()=>["auto","cover","contain",Z,W,{size:[G,_]}],ef=()=>[A,q,H],ep=()=>["","none","full",u,G,_],em=()=>["",P,q,H],eg=()=>["solid","dashed","dotted","double"],eh=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eb=()=>[P,A,J,V],ev=()=>["","none",m,G,_],ey=()=>["none",P,G,_],ex=()=>["none",P,G,_],ew=()=>[P,G,_],eE=()=>[C,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[I],c
vendor: 6,682 bytes, line 1
1ontainer:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[z],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",P],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",C,_,G,h]}],container:["container"],"container-type":[{"@container":["","normal","size",G,_]}],"container-named":[j],columns:[{columns:[P,_,G,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[O,"auto",G,_]}],basis:[{basis:[C,"full","auto",l,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[P,C,"auto","initial","none",_]}],grow:[{grow:["",P,G,_]}],shrink:[{shrink:["",P,G,_]}],order:[{order:[O,"first","last","none",G,_]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...en(),"normal"]}],"justify-items":[{"justify-items":[...er(),"normal"]}],"justify-self":[{"justify-self":["auto",...er()]}],"align-content":[{content:["normal",...en()]}],"align-items":[{items:[...er(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...er(),{baseline:["","last"]}]}],"place-content":[{"place-content":en()}],"place-items":[{"place-items":[...er(),"baseline"]}],"place-self":[{"place-self":["auto",...er()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:ei()}],mx:[{mx:ei()}],my:[{my:ei()}],ms:[{ms:ei()}],me:[{me:ei()}],mbs:[{mbs:ei()}],mbe:[{mbe:ei()}],mt:[{mt:ei()}],mr:[{mr:ei()}],mb:[{mb:ei()}],ml:[{ml:ei()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:eo()}],"inline-size":[{inline:["auto",...es()]}],"min-inline-size":[{"min-inline":["auto",...es()]}],"max-inline-size":[{"max-inline":["none",...es()]}],"block-size":[{block:["auto",...el()]}],"min-block-size":[{"min-block":["auto",...el()]}],"max-block-size":[{"max-block":["none",...el()]}],w:[{w:[l,"screen",...eo()]}],"min-w":[{"min-w":[l,"screen","none",...eo()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...eo()]}],h:[{h:["screen","lh",...eo()]}],"min-h":[{"min-h":["screen","lh","none",...eo()]}],"max-h":[{"max-h":["screen","lh",...eo()]}],"font-size":[{text:["base",n,q,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,et,Y]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",A,_]}],"font-family":[{font:[K,$,t]}],"font-features":[{"font-features":[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,G,_]}],"line-clamp":[{"line-clamp":[P,"none",G,B]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",G,_]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ea()}],"text-color":[{text:ea()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eg(),"wavy"]}],"text-decoration-thickness":[{decoration:[P,"from-font","auto",G,H]}],"text-decoration-color":[{decoration:ea()}],"underline-offset":[{"underline-offset":[P,"auto",G,_]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[O,G,_]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,_]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:eu()}],"bg-repeat":[{bg:ec()}],"bg-size":[{bg:ed()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},O,G,_],radial:["",G,_],conic:[O,G,_]},Q,U]}],"bg-color":[{bg:ea()}],"gradient-from-pos":[{from:ef()}
vendor: 7,384 bytes, line 1
1],"gradient-via-pos":[{via:ef()}],"gradient-to-pos":[{to:ef()}],"gradient-from":[{from:ea()}],"gradient-via":[{via:ea()}],"gradient-to":[{to:ea()}],rounded:[{rounded:ep()}],"rounded-s":[{"rounded-s":ep()}],"rounded-e":[{"rounded-e":ep()}],"rounded-t":[{"rounded-t":ep()}],"rounded-r":[{"rounded-r":ep()}],"rounded-b":[{"rounded-b":ep()}],"rounded-l":[{"rounded-l":ep()}],"rounded-ss":[{"rounded-ss":ep()}],"rounded-se":[{"rounded-se":ep()}],"rounded-ee":[{"rounded-ee":ep()}],"rounded-es":[{"rounded-es":ep()}],"rounded-tl":[{"rounded-tl":ep()}],"rounded-tr":[{"rounded-tr":ep()}],"rounded-br":[{"rounded-br":ep()}],"rounded-bl":[{"rounded-bl":ep()}],"border-w":[{border:em()}],"border-w-x":[{"border-x":em()}],"border-w-y":[{"border-y":em()}],"border-w-s":[{"border-s":em()}],"border-w-e":[{"border-e":em()}],"border-w-bs":[{"border-bs":em()}],"border-w-be":[{"border-be":em()}],"border-w-t":[{"border-t":em()}],"border-w-r":[{"border-r":em()}],"border-w-b":[{"border-b":em()}],"border-w-l":[{"border-l":em()}],"divide-x":[{"divide-x":em()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":em()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eg(),"hidden","none"]}],"divide-style":[{divide:[...eg(),"hidden","none"]}],"border-color":[{border:ea()}],"border-color-x":[{"border-x":ea()}],"border-color-y":[{"border-y":ea()}],"border-color-s":[{"border-s":ea()}],"border-color-e":[{"border-e":ea()}],"border-color-bs":[{"border-bs":ea()}],"border-color-be":[{"border-be":ea()}],"border-color-t":[{"border-t":ea()}],"border-color-r":[{"border-r":ea()}],"border-color-b":[{"border-b":ea()}],"border-color-l":[{"border-l":ea()}],"divide-color":[{divide:ea()}],"outline-style":[{outline:[...eg(),"none","hidden"]}],"outline-offset":[{"outline-offset":[P,G,_]}],"outline-w":[{outline:["",P,q,H]}],"outline-color":[{outline:ea()}],shadow:[{shadow:["","none",c,ee,X]}],"shadow-color":[{shadow:ea()}],"inset-shadow":[{"inset-shadow":["none",d,ee,X]}],"inset-shadow-color":[{"inset-shadow":ea()}],"ring-w":[{ring:em()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ea()}],"ring-offset-w":[{"ring-offset":[P,H]}],"ring-offset-color":[{"ring-offset":ea()}],"inset-ring-w":[{"inset-ring":em()}],"inset-ring-color":[{"inset-ring":ea()}],"text-shadow":[{"text-shadow":["none",f,ee,X]}],"text-shadow-color":[{"text-shadow":ea()}],opacity:[{opacity:[P,G,_]}],"mix-blend":[{"mix-blend":[...eh(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eh()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[P]}],"mask-image-linear-from-pos":[{"mask-linear-from":eb()}],"mask-image-linear-to-pos":[{"mask-linear-to":eb()}],"mask-image-linear-from-color":[{"mask-linear-from":ea()}],"mask-image-linear-to-color":[{"mask-linear-to":ea()}],"mask-image-t-from-pos":[{"mask-t-from":eb()}],"mask-image-t-to-pos":[{"mask-t-to":eb()}],"mask-image-t-from-color":[{"mask-t-from":ea()}],"mask-image-t-to-color":[{"mask-t-to":ea()}],"mask-image-r-from-pos":[{"mask-r-from":eb()}],"mask-image-r-to-pos":[{"mask-r-to":eb()}],"mask-image-r-from-color":[{"mask-r-from":ea()}],"mask-image-r-to-color":[{"mask-r-to":ea()}],"mask-image-b-from-pos":[{"mask-b-from":eb()}],"mask-image-b-to-pos":[{"mask-b-to":eb()}],"mask-image-b-from-color":[{"mask-b-from":ea()}],"mask-image-b-to-color":[{"mask-b-to":ea()}],"mask-image-l-from-pos":[{"mask-l-from":eb()}],"mask-image-l-to-pos":[{"mask-l-to":eb()}],"mask-image-l-from-color":[{"mask-l-from":ea()}],"mask-image-l-to-color":[{"mask-l-to":ea()}],"mask-image-x-from-pos":[{"mask-x-from":eb()}],"mask-image-x-to-pos":[{"mask-x-to":eb()}],"mask-image-x-from-color":[{"mask-x-from":ea()}],"mask-image-x-to-color":[{"mask-x-to":ea()}],"mask-image-y-from-pos":[{"mask-y-from":eb()}],"mask-image-y-to-pos":[{"mask-y-to":eb()}],"mask-image-y-from-color":[{"mask-y-from":ea()}],"mask-image-y-to-color":[{"mask-y-to":ea()}],"mask-image-radial":[{"mask-radial":[G,_]}],"mask-image-radial-from-pos":[{"mask-radial-from":eb()}],"mask-image-radial-to-pos":[{"mask-radial-to":eb()}],"mask-image-radial-from-color":[{"mask-radial-from":ea()}],"mask-image-radial-to-color":[{"mask-radial-to":ea()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[P]}],"mask-image-conic-from-pos":[{"mask-conic-from":eb()}],"mask-image-conic-to-pos":[{"mask-conic-to":eb()}],"mask-image-conic-from-color":[{"mask-conic-from":ea()}],"mask-image-conic-to-color":[{"mask-conic-to":ea()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:eu()}],"mask-repeat":[{mask:ec()}],"mask-size":[{mask:ed()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,_]}],filter:[{filter:["","none",G,_]}],blur:[{blur:ev()}],brightness:[{brightness:[P,G,_]}],contrast:[{contrast:[P,G,_]}],"drop-shadow":[{"drop-shadow":["","none",p,ee,X]}],"drop-shadow-color":[{"drop-shadow":ea()}],grayscale:[{grayscale:["",P,G,_]}],"hue-rotate":[{"hue-rotate":[P,G,_]}],invert:[{invert:["",P,G,_]}],saturate:[{saturate:[P,G,_]}],sepia:[{sepia:["",P,G,_]}],"backdrop-filter":[{"backdrop-filter":["","none",G,_]}],"backdrop-blur":[{"backdrop-blur":ev()}],"backdrop-brightness":[{"backdrop-brightness":[P,G,_]}],"backdrop-contrast":[{"backdrop-contrast":[P,G,_]}],"backdrop-grayscale":[{"backdrop-grayscale":["",P,G,_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P,G,_]}],"backdrop-invert":[{"backdrop-invert":["",P,G,_]}],"backdrop-opacity":[{"backdrop-opacity":[P,G,_]}],"backdrop-saturate":[{"backdrop-saturate":[P,G,_]}],"backdrop-sepia":[{"backdrop-sepia":["",P,G,_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,_]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[P,"initial",G,_]}],ease:[{ease:["linear","initial",b,G,_]}],delay:[{delay:[P,G,_]}],animate:[{animate:["none",y,G,_]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,G,_]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ey()}],"rotate-x":[{"rotate-x":ey()}],"rotate-y":[{"rotate-y":ey()}],"rotate-z":[{"rotate-z":ey()}],scale:[{scale:ex()}],"scale-x":[{"scale-x":ex()}],"scale-y":[{"scale-y":ex()}],"scale-z":[{"scale-z":ex()}],"scale-3d":["scale-3d"],skew:[{skew:ew()}],"skew-x":[{"skew-x":ew()}],"skew-y":[{"skew-y":ew()}],transform:[{transform:[G,_,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eE()}],"translate-x":[{"translate-x":eE()}],"translate-y":[{"translate-y":eE()}],"translate-z":[{"translate-z":eE()}],"translate-none":["translate-none"],zoom:[{zoom:[O,G,_]}],accent:[{accent:ea()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ea()}
1],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,_]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":ea()}],"scrollbar-track-color":[{"scrollbar-track":ea()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,_]}],fill:[{fill:["none",...ea()]}],"stroke-w":[{stroke:[P,q,H,B]}],stroke:[{stroke:["none",...ea()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});e.s(["cn",0,function(...e){return ef(t(e))}],9665)},69831,20987,56078,39510,6807,42297,29320,69392,76204,29907,42568,46765,23176,e=>{"use strict";e.s([],69831),e.i(56171);var t,n,r=e.i(47456),i=e.i(29718),o=e.i(79440),s=e.i(40682),l=e.i(34336);let a=r.createContext(void 0);function u(){let e=r.useContext(a);if(!e)throw Error((0,l.default)(73));return e}e.s(["ToastContext",0,a,"useToastProviderContext",0,u],20987);var c=e.i(42604),d=e.i(67071);let f=0;function p(e){return f+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${f}`}e.s(["generateId",0,p],56078);var m=e.i(59387),g=e.i(39939);function h(e,t){if("string"==typeof e)return{description:e};if("function"==typeof e){let n=e(t);return"string"==typeof n?{description:n}:n}return e}var b=e.i(70709),v=e.i(38479),v=v;function y(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let o="ending"===e.transitionStatus;t.set(e.id,{value:e,domIndex:i,visibleIndex:o?-1:n,offsetY:r}
1),r+=e.height||0,o||(n+=1)}),t}function x(e,t){let n=0;return e.map(e=>{if("ending"===e.transitionStatus)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}let w=e=>e.toastMetadata,E={toasts:(0,d.createSelector)(e=>e.toasts),isEmpty:(0,d.createSelector)(e=>0===e.toasts.length),toast:(0,d.createSelector)(w,(e,t)=>e.get(t)?.value),toastIndex:(0,d.createSelector)(w,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:(0,d.createSelector)(w,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:(0,d.createSelector)(w,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:(0,d.createSelector)(e=>e.hovering),focused:(0,d.createSelector)(e=>e.focused),expanded:(0,d.createSelector)(e=>e.hovering||e.focused),expandedOrOutOfFocus:(0,d.createSelector)(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:(0,d.createSelector)(e=>e.prevFocusElement)};class k extends c.ReactStore{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:y(e.toasts)},{},E)}setFocused(e){this.set("focused",e)}setHovering(e){this.set("hovering",e)}setIsWindowFocused(e){this.set("isWindowFocused",e)}setPrevFocusElement(e){this.set("prevFocusElement",e)}setViewport=e=>{this.set("viewport",e)};syncProviderProps(e){let t=this.state.limit!==e.limit;if(this.state.timeout===e.timeout&&!t)return;let n={timeout:e.timeout,limit:e.limit};if(t){let t=x(this.state.toasts,e.limit);n.toasts=t,n.toastMetadata=y(t)}this.update(n)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=E.toastIndex(this.state,e);if(-1===n)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||p("toast");if(e.id){let t=E.toast(this.state,e.id);if(t)if("ending"===t.transitionStatus)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}let i={...e,id:r,updateKey:0,transitionStatus:"starting"},o=[i,...this.state.toasts];this.setToasts(x(o,n));let s=i.timeout??t;return"loading"!==i.type&&s>0&&this.scheduleTimer(r,s,()=>this.closeToast(r)),E.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,o=E.toast(this.state,e)??null;if(!o||"ending"===o.transitionStatus)return;let s={...o,...t,...n.markUpdated&&{updateKey:(o.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?s:t));let l=s.timeout??r,a=o?.timeout??r,u=Object.hasOwn(t,"timeout"),c="ending"!==s.transitionStatus&&"loading"!==s.type&&l>0,d=this.timers.has(e),f=a!==l,p=o?.type==="loading";!c&&d?this.clearTimer(e):c&&(!d||f||u||p||n.resetTimer)&&(this.clearTimer(e),this.scheduleTimer(e,l,()=>this.closeToast(e)),E.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t,n=void 0===e,{limit:r,toasts:i}=this.state;if(n)t=i,this.clearTimers();else{let n=E.toast(this.state,e);if(!n)return;t=[n],this.clearTimer(e)}let o=x(i.map(t=>n||t.id===e?{...t,transitionStatus:"ending",height:0}:t),r),s={toasts:o,toastMetadata:y(o)};o.some(e=>"ending"!==e.transitionStatus)||(s.hovering=!1,s.focused=!1),this.update(s),t.forEach(e=>{"ending"!==e.transitionStatus&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=h(t.loading),r=this.addToast({...n,type:"loading"}),i=e.then(e=>{let n=h(t.success,e);return this.updateToast(r,{...n,type:"success",timeout:n.timeout}),e}).catch(e=>{let n=h(t.error,e);return this.updateToast(r,{...n,type:"error",timeout:n.timeout}),Promise.reject(e)});return({}).hasOwnProperty.call(t,"setPromise")&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=g.Timeout.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if("touch"!==e.pointerType)return;let t=(0,b.getTarget)(e);(0,b.contains)(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!E.expandedOrOutOfFocus(this.state),o=i?g.Timeout.create():void 0;o?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:o,start:i?r:0,delay:t,remaining:t,callback:n})}
1clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){let t=this.timers.get(e);t?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){0===this.timers.size&&(this.areTimersPaused=!1)}setToasts(e){let t={toasts:e,toastMetadata:y(e)};0===e.length&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=(0,b.activeElement)((0,m.ownerDocument)(this.state.viewport));if(!this.state.viewport||!(0,b.contains)(this.state.viewport,t)||!(0,v.matchesFocusVisible)(t))return;if(void 0===e)return void this.restoreFocusToPrevElement();let n=E.toasts(this.state),r=E.toastIndex(this.state,e),i=null,o=r+1;for(;o<n.length;){if("ending"!==n[o].transitionStatus){i=n[o];break}o+=1}if(!i)for(o=r-1;o>=0;){if("ending"!==n[o].transitionStatus){i=n[o];break}o-=1}i?i.ref?.current?.focus():this.restoreFocusToPrevElement()}}var T=e.i(98023);e.s(["ToastProvider",0,function(e){let{children:t,timeout:n=5e3,limit:l=3,toastManager:u}=e,c=(0,o.useRefWithInit)(()=>new k({timeout:n,limit:l,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return(0,i.useOnMount)(c.disposeEffect),r.useEffect(function(){if(u)return u[" subscribe"](({action:e,options:t})=>{let n=t.id;"promise"===e&&t.promise?c.promiseToast(t.promise,t):"update"===e&&n?c.updateToast(n,t):"close"===e?c.closeToast(n):c.addToast(t)})},[c,u]),(0,s.useIsoLayoutEffect)(()=>{c.syncProviderProps({timeout:n,limit:l})},[c,n,l]),(0,T.jsx)(a.Provider,{value:c,children:t})}],39510);var S=e.i(52485),R=e.i(96539),C=e.i(79995),P=e.i(73711),O=e.i(60590),A=e.i(17085),v=v;let M=((t={}).frontmostHeight="--toast-frontmost-height",t),I=r.forwardRef(function(e,t){let{render:n,className:i,style:o,children:s,...l}=e,a=u(),c=(0,g.useTimeout)(),d=r.useRef(!1),f=r.useRef(!1),p=r.useRef(!1),h=a.useState("isEmpty"),y=a.useState("toasts"),x=a.useState("focused"),w=a.useState("expanded"),E=a.useState("prevFocusElement"),k=y[0]?.height??0,I=r.useMemo(()=>y.some(e=>"ending"===e.transitionStatus),[y]),L=r.useMemo(()=>y.filter(e=>"high"===e.priority),[y]);function N(e){let t=a.state.viewport;if(t)if(d.current=!0,e.relatedTarget===t){let e=y.find(e=>"ending"!==e.transitionStatus&&!e.limited);e?e.ref?.current?.focus():a.restoreFocusToPrevElement()}else a.restoreFocusToPrevElement()}function D(){a.state.toasts.some(e=>"ending"===e.transitionStatus)||p.current||!f.current||(a.state.isWindowFocused&&a.resumeTimers(),a.setHovering(!1),f.current=!1)}function F(){a.pauseTimers(),a.setHovering(!0),f.current=!1}function z(){a.state.isWindowFocused&&a.resumeTimers()}function j(e){"touch"===e.pointerType&&(p.current=!1,D())}function W(){if(d.current){d.current=!1;return}!x&&(0,v.matchesFocusVisible)((0,b.activeElement)((0,m.ownerDocument)(a.state.viewport)))&&(a.setFocused(!0),a.pauseTimers())}r.useEffect(()=>{let e=a.state.viewport;if(!e)return;let t=(0,C.ownerWindow)(e);return(0,S.addEventListener)(t,"keydown",function(t){h||"F6"===t.key&&(0,b.getTarget)(t)!==e&&(t.preventDefault(),a.setPrevFocusElement((0,b.activeElement)((0,m.ownerDocument)(e))),e?.focus({preventScroll:!0}),a.pauseTimers(),a.setFocused(!0))})},[a,h]),r.useEffect(()=>{let e=a.state.viewport;if(!e||h)return;let t=(0,C.ownerWindow)(e);return(0,R.mergeCleanups)((0,S.addEventListener)(t,"blur",function(e){(0,b.getTarget)(e)===t&&(a.setIsWindowFocused(!1),a.pauseTimers())},!0),(0,S.addEventListener)(t,"focus",function(n){if(n.relatedTarget)return;let r=(0,b.getTarget)(n),i=(0,b.activeElement)((0,m.ownerDocument)(e));r!==t&&(0,b.contains)(e,r)&&(0,v.matchesFocusVisible)(i)||a.resumeTimers(),c.start(0,()=>a.setIsWindowFocused(!0))},!0))},[a,c,h]),r.useEffect(()=>{let e=a.state.viewport;if(!e||h)return;let t=(0,m.ownerDocument)(e);return(0,S.addEventListener)(t,"pointerdown",a.handleDocumentPointerDown,!0)},[h,a]),r.useEffect(D,[I,a]);let _=(0,A.useRenderElement)("div",e,{ref:[t,a.setViewport],state:{expanded:w},props:[{tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:F,onMouseMove:F,onMouseLeave:function(){a.state.toasts.some(e=>"ending"===e.transitionStatus)||p.current?f.current=!0:(z(),a.setHovering(!1))},onFocus:W,onBlur:function(e){!x||(0,b.contains)(a.state.viewport,e.relatedTarget)||(a.setFocused(!1),z())},onKeyDown:function(e){"Tab"===e.key&&e.shiftKey&&(0,b.getTarget)(e.nativeEvent)===a.state.viewport&&(e.preventDefault(),a.restoreFocusToPrevElement(),a.resumeTimers())},onClick:W,onPointerDown:function(e){"touch"===e.pointerType&&(p.current=!0)},onPointerUp:j,onPointerCancel:j},{style:{[M.frontmostHeight]:k?`${k}px`:void 0}},l,{children:(0,T.jsxs)(r.Fragment,{children:[!h&&E&&(0,T.jsx)(O.FocusGuard,{onFocus:N}),s,!h&&E&&(0,T.jsx)(O.FocusGuard,{onFocus:N})]})}]});return(0,T.jsxs)(r.Fragment,{children:[!h&&E&&(0,T.jsx)(O.FocusGuard,{onFocus:N}),_,!x&&L.length>0&&(0,T.jsx)("div",{style:P.visuallyHidden,children:L.map(e=>(0,T.jsxs)("div",{role:"alert","aria-atomic":!0,children:[(0,T.jsx)("div",{children:e.title}),(0,T.jsx)("div",{children:e.description})]},e.id))})]})});e.s(["ToastViewport",0,I],6807);var L=e.i(95072),N=e.i(97334),D=e.i(77484);let F=r.createContext(void 0);function z(){let e=r.useContext(F);if(!e)throw Error((0,l.default)(66));return e}var j=e.i(46258),W=e.i(38880);let _=((n={}).index="--toast-index",n.offsetY="--toast-offset-y",n.height="--toast-height",n.swipeMovementX="--toast-swipe-movement-x",n.swipeMovementY="--toast-swipe-movement-y",n);e.s(["ToastRootCssVars",0,_],42297);var H=e.i(65120),B=e.i(32154);let Y={...j.transitionStatusMapping,swipeDirection:e=>e?{"data-swipe-direction":e}:null},$=`${H.BASE_UI_SWIPE_IGNORE_SELECTOR},${H.LEGACY_SWIPE_IGNORE_SELECTOR}`,V=r.forwardRef(function(e,t){let{toast:n,render:i,className:o,swipeDirection:l=["down","right"],style:a,...c}=e,d=n.positionerProps?.anchor!==void 0,f=[];d||(f=Array.isArray(l)?l:[l]);let p=f.length>0,g=u(),[h,v]=r.useState(void 0),[y,x]=r.useState(!1),[w,E]=r.useState(!1),[k,R]=r.useState(!1),[C,P]=r.useState({x:0,y:0}),[O,M]=r.useState({x:0,y:0,scale:1}),[I,z]=r.useState(),[j,H]=r.useState(),[V,U]=r.useState(null),X=r.useRef(null),G=r.useRef({x:0,y:0}),q=r.useRef({x:0,y:0,scale:1}),K=r.useRef(void 0),J=r.useRef(0),Z=r.useRef(!1),Q=r.useRef({x:0,y:0}),ee=r.useRef(!1),et=r.useRef({x:0,y:0}),en=r.useRef(null),er=r.useRef(null),ei=g.useState("toastIndex",n.id),eo=g.useState("toastVisibleIndex",n.id),es=g.useState("toastOffsetY",n.id),el=g.useState("focused"),ea=g.useState("exp
1anded");(0,W.useOpenChangeComplete)({open:"ending"!==n.transitionStatus,ref:X,onComplete(){"ending"===n.transitionStatus&&g.removeToast(n.id)}});let eu=(0,D.useStableCallback)((e=!1)=>{let t=X.current;if(!t)return;let r=t.style.height;t.style.height="auto";let i=t.offsetHeight;function o(){g.updateToastInternal(n.id,{ref:X,height:i,..."starting"===n.transitionStatus?{transitionStatus:void 0}:{}})}t.style.height=r,e?L.flushSync(o):o()});function ec(e){et.current=e,P(e)}(0,s.useIsoLayoutEffect)(eu,[eu]),(0,s.useIsoLayoutEffect)(()=>()=>{er.current?.abort()},[]);let ed=(0,D.useStableCallback)(e=>{let t;if(e.pointerId!==en.current)return;en.current=null,er.current?.abort(),er.current=null,x(!1),E(!1),U(null);let r=q.current;if("pointercancel"===e.type||Z.current){ec({x:r.x,y:r.y}),v(void 0);return}let i=!1,o=et.current,s=o.x-r.x,l=o.y-r.y;for(let e of f){switch(e){case"right":s>40&&(i=!0,t="right");break;case"left":s<-40&&(i=!0,t="left");break;case"down":l>40&&(i=!0,t="down");break;case"up":l<-40&&(i=!0,t="up")}if(i)break}i?(v(t),R(!0),g.closeToast(n.id)):(ec({x:r.x,y:r.y}),v(void 0))});r.useEffect(()=>{if(!p)return;let e=X.current;if(e)return(0,S.addEventListener)(e,"touchmove",function(t){null!==en.current&&(0,b.contains)(e,(0,b.getTarget)(t))&&t.preventDefault()},{passive:!1})},[p]);let ef="high"===n.priority,ep={role:ef?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":I,"aria-describedby":j,"aria-hidden":!!ef&&!el||void 0,onPointerDown:p?function(e){if(0!==e.button)return;"touch"===e.pointerType&&g.pauseTimers();let t=(0,b.getTarget)(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${$}`))return;if(Z.current=!1,K.current=void 0,J.current=0,en.current=e.pointerId,G.current={x:e.clientX,y:e.clientY},Q.current=G.current,X.current){let e=(0,B.getElementTransform)(X.current);q.current=e,M(e),ec({x:e.x,y:e.y})}g.setHovering(!0),x(!0),E(!1),U(null),ee.current=!0;let n=X.current;if(n){er.current?.abort();let t=new AbortController;er.current=t;let r=(0,m.ownerDocument)(n);r.addEventListener("pointerup",ed,{signal:t.signal}),r.addEventListener("pointercancel",ed,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}:void 0,onPointerMove:p?function(e){let t,n,r;if(e.pointerId!==en.current)return;e.preventDefault(),ee.current&&(G.current={x:e.clientX,y:e.clientY},ee.current=!1);let{clientY:i,clientX:o,movementX:s,movementY:l}=e;(l<0&&i>Q.current.y||l>0&&i<Q.current.y)&&(Q.current={x:Q.current.x,y:i}),(s<0&&o>Q.current.x||s>0&&o<Q.current.x)&&(Q.current={x:o,y:Q.current.y});let a=o-G.current.x,u=i-G.current.y,c=i-Q.current.y,d=o-Q.current.x;if(!w&&Math.sqrt(a*a+u*u)>=1&&(E(!0),null===V)){let e=f.includes("left")||f.includes("right"),t=f.includes("up")||f.includes("down");e&&t&&U(Math.abs(a)>Math.abs(u)?"horizontal":"vertical")}if(K.current){let e=K.current,t=(0,B.getDisplacement)(e,d,c);t>40?(Z.current=!1,v(e)):f.includes("left")&&f.includes("right")||f.includes("up")&&f.includes("down")||!(J.current-t>=10)||(Z.current=!0)}else"vertical"===V?u>0?t="down":u<0&&(t="up"):"horizontal"===V?a>0?t="right":a<0&&(t="left"):t=Math.abs(a)>=Math.abs(u)?a>0?"right":"left":u>0?"down":"up",t&&f.includes(t)&&(K.current=t,J.current=(0,B.getDisplacement)(t,a,u),v(t));let p=(n=a,r=u,f.includes("left")||f.includes("right")?(!f.includes("right")&&a>0&&(n=a**.5),!f.includes("left")&&a<0&&(n=-(Math.abs(a)**.5))):n=a>0?a**.5:-(Math.abs(a)**.5),f.includes("up")||f.includes("down")?(!f.includes("down")&&u>0&&(r=u**.5),!f.includes("up")&&u<0&&(r=-(Math.abs(u)**.5))):r=u>0?u**.5:-(Math.abs(u)**.5),{x:n,y:r}),m=q.current.x,g=q.current.y;"horizontal"===V?(f.includes("left")||f.includes("right"))&&(m+=p.x):("vertical"===V||(f.includes("left")||f.includes("right"))&&(m+=p.x),(f.includes("up")||f.includes("down"))&&(g+=p.y)),ec({x:m,y:g})}:void 0,onPointerUp:p?ed:void 0,onPointerCancel:p?ed:void 0,onKeyDown:function(e){"Escape"===e.key&&X.current&&(0,b.contains)(X.current,(0,b.activeElement)((0,m.ownerDocument)(X.current)))&&g.closeToast(n.id)},inert:(0,N.inertValue)(n.limited),style:{...function(){if(!y&&C.x===O.x&&C.y===O.y&&!k)return{[_.swipeMovementX]:"0px",[_.swipeMovementY]:"0px"};let e=C.x-O.x,t=C.y-O.y;return{transition:y?"none":void 0,transform:y?`translateX(${C.x}px) translateY(${C.y}px) scale(${O.scale})`:void 0,[_.swipeMovementX]:`${e}px`,[_.swipeMovementY]:`${t}px`}}(),[_.index]:"ending"===n.transitionStatus?ei:eo,[_.offsetY]:`${es}px`,[_.height]:n.height?`${n.height}px`:void 0}},em=r.useMemo(()=>({rootRef:X,toast:n,titleId:I,setTitleId:z,descriptionId:j,setDescriptionId:H,swiping:y,swipeDirection:h,recalculateHeight:eu,index:ei,visibleIndex:eo,expanded:ea}),[n,I,j,y,h,eu,ei,eo,ea]),eg={transitionStatus:n.transitionStatus,expanded:ea,limited:n.limited||!1,type:n.type,swiping:em.swiping,swipeDirection:em.swipeDirection},eh=(0,A.useRenderElement)("div",e,{ref:[t,em.rootRef],state:eg,stateAttributesMapping:Y,props:[ep,c]});return(0,T.jsx)(F.Provider,{value:em,children:eh})});e.s(["ToastRoot",0,V],29320);let U=r.forwardRef(function(e,t){let{render:n,className:i,style:o,...l}=e,{visibleIndex:a,expanded:u,recalculateHeight:c}=z(),d=r.useRef(null);return(0,s.useIsoLayoutEffect)(()=>{let e=d.current;if(!e||(c(),"function"!=typeof ResizeObserver||"function"!=typeof MutationObserver))return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}
1),()=>{t.disconnect(),n.disconnect()}},[c]),(0,A.useRenderElement)("div",e,{ref:[t,d],state:{expanded:u,behind:a>0},props:l})});e.s(["ToastContent",0,U],69392);var X=e.i(49054);let G=r.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,children:l,...a}=e,{toast:u,setDescriptionId:c}=z(),d=l??u.description,f=!!d,p=(0,X.useId)(o);(0,s.useIsoLayoutEffect)(()=>{if(f)return c(p),()=>{c(void 0)}},[f,p,c]);let m={type:u.type},g=(0,A.useRenderElement)("p",e,{ref:t,state:m,props:{...a,id:p,children:d}});return f?g:null});e.s(["ToastDescription",0,G],76204);let q=r.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,children:l,...a}=e,{toast:u,setTitleId:c}=z(),d=l??u.title,f=!!d,p=(0,X.useId)(o);(0,s.useIsoLayoutEffect)(()=>{if(f)return c(p),()=>{c(void 0)}},[f,p,c]);let m={type:u.type},g=(0,A.useRenderElement)("h2",e,{ref:t,state:m,props:{...a,id:p,children:d}});return f?g:null});e.s(["ToastTitle",0,q],29907);var K=e.i(43243);let J=r.forwardRef(function(e,t){let{render:n,className:i,style:o,disabled:s,nativeButton:l=!0,...a}=e,c=u(),{toast:d}=z(),f=c.useState("expanded"),[p,m]=r.useState(!1),{getButtonProps:g,buttonRef:h}=(0,K.useButton)({disabled:s,native:l}),b={type:d.type};return(0,A.useRenderElement)("button",e,{ref:[t,h],state:b,props:[{"aria-hidden":!f&&!p,onClick(){c.closeToast(d.id)},onFocus(){m(!0)},onBlur(){m(!1)}},a,g]})});e.s(["ToastClose",0,J],42568);let Z=r.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:o,nativeButton:s=!0,...l}=e,{toast:a}=z(),u=a.actionProps?.children??l.children,c=!!u,{getButtonProps:d,buttonRef:f}=(0,K.useButton)({disabled:o,native:s}),p={type:a.type},m=(0,A.useRenderElement)("button",e,{ref:[t,f],state:p,props:[l,a.actionProps,d,{children:u}]});return c?m:null});e.s(["ToastAction",0,Z],46765);var Q=e.i(34689);let ee=r.forwardRef(function(e,t){let{children:n,container:i,className:o,render:s,style:l,...a}=e,{portalNode:u,portalSubtree:c}=(0,Q.useFloatingPortalNode)({container:i,ref:t,componentProps:e,elementProps:a});return c||u?(0,T.jsxs)(r.Fragment,{children:[c,u&&L.createPortal(n,u)]}):null});e.s(["ToastPortal",0,ee],23176)},10242,25339,58542,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),r=Math.min,i=Math.max,o=Math.round,s=Math.floor,l=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t,n){return i(e,r(t,n))}function c(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function h(e){return p(g(e))}function b(e,t,n){void 0===n&&(n=!1);let r=f(e),i=h(e),o=m(i),s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=S(s)),[s,S(s)]}function v(e){let t=S(e);return[y(e),t,y(t)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let x=["left","right"],w=["right","left"],E=["top","bottom"],k=["bottom","top"];function T(e,t,n,r){let i=f(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?w:x;return t?x:w;case"left":case"right":return t?E:k;default:return[]}}(d(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(y)))),o}function S(e){let t=d(e);return a[t]+e.slice(t.length)}function R(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function P(e,t,n){let r,{reference:i,floating:o}=e,s=g(t),l=h(t),a=m(l),u=d(t),c=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,b=i[a]/2-o[a]/2;switch(u){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:p};break;case"left":r={x:i.x-o.width,y:p};break;default:r={x:i.x,y:i.y}}let v=f(t);return v&&(r[l]+=b*("end"===v?1:-1)*(n&&"y"===s?-1:1)),r}async function O(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:s,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=c(t,e),g=R(m),h=l[p?"floating"===f?"reference":"floating":f],b=C(await o.getClippingRect
1({element:null==(n=await (null==o.isElement?void 0:o.isElement(h)))||n?h:h.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:a})),v="floating"===f?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),x=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=C(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:a}):v);return{top:(b.top-w.top+g.top)/x.y,bottom:(w.bottom-b.bottom+g.bottom)/x.y,left:(b.left-w.left+g.left)/x.x,right:(w.right-b.right+g.right)/x.x}}e.s(["clamp",0,u,"createCoords",0,l,"evaluate",0,c,"floor",0,s,"getAlignment",0,f,"getAlignmentAxis",0,h,"getAlignmentSides",0,b,"getAxisLength",0,m,"getExpandedPlacements",0,v,"getOppositeAlignmentPlacement",0,y,"getOppositeAxis",0,p,"getOppositeAxisPlacements",0,T,"getOppositePlacement",0,S,"getPaddingObject",0,R,"getSide",0,d,"getSideAxis",0,g,"max",0,i,"min",0,r,"placements",0,n,"rectToClientRect",0,C,"round",0,o,"sides",0,t],10242);let A=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:O},a=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=P(u,r,a),f=r,p=0,m={};for(let n=0;n<o.length;n++){let g=o[n];if(!g)continue;let{name:h,fn:b}=g,{x:v,y:y,data:x,reset:w}=await b({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=y?y:d,m[h]={...m[h],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:d}=P(u,f,a)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:m}};function M(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(e){return t.some(t=>e[t]>=0)}function L(e){let t=r(...e.map(e=>e.left)),n=r(...e.map(e=>e.top));return{x:t,y:n,width:i(...e.map(e=>e.right))-t,height:i(...e.map(e=>e.bottom))-n}}let N=new Set(["left","top"]);async function D(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=d(n),l=f(n),a="y"===g(n),u=N.has(s)?-1:1,p=o&&a?-1:1,m=c(t,e),{mainAxis:h,crossAxis:b,alignmentAxis:v}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&"number"==typeof v&&(b="end"===l?-1*v:v),a?{x:b*p,y:h*u}:{x:h*u,y:b*p}}var F=e.i(80269);function z(e){let t=(0,F.getComputedStyle)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,F.isHTMLElement)(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r,a=o(n)!==s||o(r)!==l;return a&&(n=s,r=l),{width:n,height:r,$:a}}function j(e){return(0,F.isElement)(e)?e:e.contextElement}function W(e){let t=j(e);if(!(0,F.isHTMLElement)(t))return l(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:s}=z(t),a=(s?o(n.width):n.width)/r,u=(s?o(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let _=l(0);function H(e){let t=(0,F.getWindow)(e);return(0,F.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:_}function B(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=j(e),a=l(1);t&&(r?(0,F.isElement)(r)&&(a=W(r)):a=W(e));let u=(void 0===(i=n)&&(i=!1),r&&i&&r===(0,F.getWindow)(s))?H(s):l(0),c=(o.left+u.x)/a.x,d=(o.top+u.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s&&r){let e=(0,F.getWindow)(s),t=(0,F.isElement)(r)?(0,F.getWindow)(r):r,n=e,i=(0,F.getFrameElement)(n);for(;i&&t!==n;){let e=W(i),t=i.getBoundingClientRect(),r=(0,F.getComputedStyle)(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=o,d+=s,n=(0,F.getWindow)(i),i=(0,F.getFrameElement)(n)}}return C({width:f,height:p,x:c,y:d})}function Y(e,t){let n=(0,F.getNodeScroll)(e).scrollLeft;return t?t.left+n:B((0,F.getDocumentElement)(e)).left+n}function $(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Y(e,n),y:n.top+t.scrollTop}}
vendor: 6,337 bytes, line 1
1function V(e,t,n){var r;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=(0,F.getWindow)(e),o=(0,F.getDocumentElement)(e),s=i.visualViewport,l=o.clientWidth,a=o.clientHeight,u=0,c=0;if(s){let e=!(0,F.isWebKit)()||"fixed"===t;r?e||(u=-s.offsetLeft,c=-s.offsetTop):(l=s.width,a=s.height,e&&(u=s.offsetLeft,c=s.offsetTop))}if(0>=Y(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;s<=25&&(l-=s)}return{width:l,height:a,x:u,y:c}}(e,n,t);else if("document"===t){let t,n,s,l,a,u;r=(0,F.getDocumentElement)(e),t=(0,F.getNodeScroll)(r),n=r.ownerDocument.body,s=i(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=i(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Y(r),u=-t.scrollTop,"rtl"===(0,F.getComputedStyle)(n).direction&&(a+=i(r.clientWidth,n.clientWidth)-s),o={width:s,height:l,x:a,y:u}}else if((0,F.isElement)(t)){let e,r,i,s,l,a;r=(e=B(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,s=W(t),l=t.clientWidth*s.x,a=t.clientHeight*s.y,o={width:l,height:a,x:i*s.x,y:r*s.y}}else{let n=H(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(o)}function U(e){return"static"===(0,F.getComputedStyle)(e).position}function X(e,t){if(!(0,F.isHTMLElement)(e)||"fixed"===(0,F.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,F.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function G(e,t){let n=(0,F.getWindow)(e);if((0,F.isTopLayer)(e))return n;if(!(0,F.isHTMLElement)(e)){let t=(0,F.getParentNode)(e);for(;t&&!(0,F.isLastTraversableNode)(t);){if((0,F.isElement)(t)&&!U(t))return t;t=(0,F.getParentNode)(t)}return n}let r=X(e,t);for(;r&&(0,F.isTableElement)(r)&&U(r);)r=X(r,t);return r&&(0,F.isLastTraversableNode)(r)&&U(r)&&!(0,F.isContainingBlock)(r)?n:r||(0,F.getContainingBlock)(e)||n}let q=async function(e){let t=this.getOffsetParent||G,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,F.isHTMLElement)(t),i=(0,F.getDocumentElement)(t),o="fixed"===n,s=B(e,!0,o,t),a={scrollLeft:0,scrollTop:0},u=l(0);if((r||!o)&&(("body"!==(0,F.getNodeName)(t)||(0,F.isOverflowElement)(i))&&(a=(0,F.getNodeScroll)(t)),r)){let e=B(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&i&&(u.x=Y(i));let c=!i||r||o?l(0):$(i,a);return{x:s.left+a.scrollLeft-u.x-c.x,y:s.top+a.scrollTop-u.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},K={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=(0,F.getDocumentElement)(r),a=!!t&&(0,F.isTopLayer)(t.floating);if(r===s||a&&o)return n;let u={scrollLeft:0,scrollTop:0},c=l(1),d=l(0),f=(0,F.isHTMLElement)(r);if((f||!o)&&(("body"!==(0,F.getNodeName)(r)||(0,F.isOverflowElement)(s))&&(u=(0,F.getNodeScroll)(r)),f)){let e=B(r);c=W(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=!s||f||o?l(0):$(s,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}},getDocumentElement:F.getDocumentElement,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:s}=e,l=[..."clippingAncestors"===n?(0,F.isTopLayer)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,F.getOverflowAncestors)(e,[],!1).filter(e=>(0,F.isElement)(e)&&"body"!==(0,F.getNodeName)(e)),i=null,o="fixed"===(0,F.getComputedStyle)(e).position,s=o?(0,F.getParentNode)(e):e;for(;(0,F.isElement)(s)&&!(0,F.isLastTraversableNode)(s);){let e=(0,F.getComputedStyle)(s),t=(0,F.isContainingBlock)(s),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==s),s=(0,F.getParentNode)(s)}return t.set(e,r),r}(t,this._c):[].concat(n),o],a=V(t,l[0],s),u=a.top,c=a.right,d=a.bottom,f=a.left;for(let e=1;e<l.length;e++){let n=V(t,l[e],s);u=i(n.top,u),c=r(n.right,c),d=r(n.bottom,d),f=i(n.left,f)}return{width:c-f,height:d-u,x:f,y:u}},getOffsetParent:G,getElementRects:q,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=z(e);return{width:t,height:n}},getScale:W,isElement:F.isElement,isRTL:function(e){return"rtl"===(0,F.getComputedStyle)(e).direction}};function J(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let Z=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:s,middlewareData:l}=t,a=await D(t,e);return s===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},Q=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=c(e,t),f={x:n,y:r},m=await o.detectOverflow(t,d),h=g(i),b=p(h),v=f[b],y=f[h],x=(e,t)=>u(t+m["y"===e?"top":"left"],t,t-m["y"===e?"bottom":"right"]);s&&(v=x(b,v)),l&&(y=x(h,y));let w=a.fn({...t,[b]:v,[h]:y});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[b]:s,[h]:l}}}}}},ee=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,s;let{placement:l,middlewareData:a,rects:u,initialPlacement:f,platform:p,elements:m}=t,{mainAxis:h=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:k=!0,...R}=c(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};let C=d(l),P=g(f),O=d(f)===f,A=await (null==p.isRTL?void 0:p.isRTL(m.floating)),M=x||(O||!k?[S(f)]:v(f)),I="none"!==E;!x&&I&&M.push(...T(f,k,E,A));let L=[f,...M],N=await p.detectOverflow(t,R),D=[],F=(null==(r=a.flip)?void 0:r.overflows)||[];if(h&&D.push(N[C]),y){let e=b(l,u,A);D.push(N[e[0]],N[e[1]])}if(F=[...F,{placement:l,overflows:D}],!D.every(e=>e<=0)){let e=((null==(i=a.flip)?void 0:i.index)||0)+1,t=L[e];if(t&&("alignment"!==y||P===g(t)||F.every(e=>g(e.placement)!==P||e.overflows[0]>0)))return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(w){case"bestFit":{let e=null==(s=F.filter(e=>{if(I){let t=g(e.placement);return t===P||"y"===t}return!0}).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:s[0];e&&(n=e);break}case"initialPlacement":n=f}if(l!==n)return{reset:{placement:n}}}return{}}}},et=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,o,{placement:s,rects:l,platform:a,elements:u}=t,{apply:p=()=>{},...m}=c(e,t),h=await a.detectOverflow(t,m),b=d(s),v=f(s),y="y"===g(s),{width:x,height:w}=l.floating;"top"===b||"bottom"===b?(n=b,o=v===(await (null==a.isRTL?void 0:a.isRTL(u.floating))?"start":"end")?"left":"right"):(o=b,n="end"===v?"top":"bottom");let E=w-h.top-h.bottom,k=x-h.left-h.right,T=r(w-h[n],E),S=r(x-h[o],k),R=t.middlewareData.shift,C=!R,P=T,O=S;null!=R&&R.enabled.x&&(O=k),null!=R&&R.enabled.y&&(P=E),C&&!v&&(y?O=x-2*i(h.left,h.right):P=w-2*i(h.top,h.bottom)),await p({...t,availableWidth:O,availableHeight:P});let A=await a.getDimensions(u.floating);return x!==A.width||w!==A.height?{reset:{rects:!0}}:{}}}},en=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=c(e,t);switch(i){case"referenceHidden":{let e=M(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:I(e)}}}case"escaped":{let e=M(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:I(e)}}}default:return{}}}}},er=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,i,o;let{x:s,y:l,placement:a,rects:u,middlewareData:f}=t,{offset:m=0,mainAxis:h=!0,crossAxis:b=!0}=c(e,t),v={x:s,y:l},y=g(a),x=p(y),w=v[x],E=v[y],k=c(m,t),T="number"==typeof k?{mainAxis:k,crossAxis:0}:{mainAxis:null!=(n=k.mainAxis)?n:0,crossAxis:null!=(r=k.crossAxis)?r:0};if(h){let e="y"===x?"height":"width",t=u.reference[x]-u.floating[e]+T.mainAxis,n=u.reference[x]+u.reference[e]-T.mainAxis;w<t?w=t:w>n&&(w=n)}if(b){let e="y"===x?"width":"height",t=N.has(d(a)),n=u.reference[y]-u.floating[e]+(t&&(null==(i=f.offset)?void 0:i[y])||0)+(t?0:T.crossAxis),r=u.reference[y]+u.reference[e]+(t?0:(null==(o=f.offset)?void 0:o[y])||0)-(t?T.crossAxis:0);E<n?E=n:E>r&&(E=r)}return{[x]:w,[y]:E}}}},ei=(e,t,n)=>{let r=new Map,i=null!=n?n:{},o={...K,...i.platform,_c:r};return A(e,t,{...i,platform:o})};e.s(["arrow",0,e=>({name:"arrow",options:e,async fn(t){let{x:n,y:i,placement:o,rects:s,platform:l,elements:a,middlewareData:d}=t,{element:p,padding:g=0}=c(e,t)||{};if(null==p)return{};let b=R(g),v={x:n,y:i},y=h(o),x=m(y),w=await l.getDimensions(p),E="y"===y,k=E?"clientHeight":"clientWidth",T=s.reference[x]+s.reference[y]-v[y]-s.floating[x],S=v[y]-s.reference[y],C=await (null==l.getOffsetParent?void 0:l.getOffsetParent(p)),P=C?C[k]:0;P&&await (null==l.isElement?void 0:l.isElement(C))||(P=a.floating[k]||s.floating[x]);let O=P/2-w[x]/2-1,A=r(b[E?"top":"left"],O),M=r(b[E?"bottom":"right"],O),I=P-w[x]-M,L=P/2-w[x]/2+(T/2-S/2),N=u(A,L,I),D=!d.arrow&&null!=f(o)&&L!==N&&s.reference[x]/2-(L<A?A:M)-w[x]/2<0,F=D?L<A?L-A:L-I:0;return{[y]:v[y]+F,data:{[y]:N,centerOffset:L-N-F,...D&&{alignmentOffset:F}},reset:D}}}),"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,o,s;let{rects:l,middlewareData:a,placement:u,platform:p,elements:m}=t,{crossAxis:g=!1,alignment:h,allowedPlacements:v=n,autoAlignment:x=!0,...w}=c(e,t),E=void 0!==h||v===n?((s=h||null)?[...v.filter(e=>f(e)===s),...v.filter(e=>f(e)!==s)]:v.filter(e=>d(e)===e)).filter(e=>!s||f(e)===s||!!x&&y(e)!==e):v,k=(null==(r=a.autoPlacement)?void 0:r.index)||0,T=E[k];if(null==T)return{};if(u!==T)return{reset:{placement:E[0]}};let S=await p.detectOverflow(t,w),R=b(T,l,await (null==p.isRTL?void 0:p.isRTL(m.floating))),C=[S[d(T)],S[R[0]],S[R[1]]],P=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:T,overflows:C}],O=E[k+1];if(O)return{data:{index:k+1,overflows:P},reset:{placement:O}};let A=P.map(e=>{let t=f(e.placement);return[e.placement,t&&g?e.overflows.slice(0,2).reduce((e,t)=>
1e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),M=(null==(o=A.filter(e=>e[2].slice(0,f(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||A[0][0];return M!==u?{data:{index:k+1,overflows:P},reset:{placement:M}}:{}}}},"autoUpdate",0,function(e,t,n,o){let l;void 0===o&&(o={});let{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=j(e),m=a||u?[...p?(0,F.getOverflowAncestors)(p):[],...t?(0,F.getOverflowAncestors)(t):[]]:[];m.forEach(e=>{a&&e.addEventListener("scroll",n),u&&e.addEventListener("resize",n)});let g=p&&d?function(e,t,n){let o,l=null,a=(0,F.getDocumentElement)(e);function u(){var e;clearTimeout(o),null==(e=l)||e.disconnect(),l=null}function c(n,d){void 0===n&&(n=!1),void 0===d&&(d=1),u();let f=e.getBoundingClientRect(),{left:p,top:m,width:g,height:h}=f;if(n||t(),!g||!h)return;let b={rootMargin:-s(m)+"px "+-s(a.clientWidth-(p+g))+"px "+-s(a.clientHeight-(m+h))+"px "+-s(p)+"px",threshold:i(0,r(1,d))||1},v=!0;function y(t){let n=t[0].intersectionRatio;if(!J(f,e.getBoundingClientRect()))return c();if(n!==d){if(!v)return c();n?c(!1,n):o=setTimeout(()=>{c(!1,1e-7)},1e3)}v=!1}try{l=new IntersectionObserver(y,{...b,root:a.ownerDocument})}catch(e){l=new IntersectionObserver(y,b)}l.observe(e)}let d=(0,F.getWindow)(e),f=()=>c(n);return d.addEventListener("resize",f),c(!0),()=>{d.removeEventListener("resize",f),u()}}(p,n,u):null,h=-1,b=null;c&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&b&&t&&(b.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),p&&!f&&b.observe(p),t&&b.observe(t));let v=f?B(e):null;return f&&function t(){let r=B(e);v&&!J(v,r)&&n(),v=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=b)||e.disconnect(),b=null,f&&cancelAnimationFrame(l)}},"computePosition",0,ei,"flip",0,ee,"hide",0,en,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:o,rects:s,platform:l,strategy:a}=t,{padding:u=2,x:f,y:p}=c(e,t),m=Array.from(await (null==l.getClientRects?void 0:l.getClientRects(o.reference))||[]);if(!m.length)return{};let h=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>C(L(e)))}(m),b=C(L(m)),v=R(u),y=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&(h[0].left>h[1].right||h[1].left>h[0].right)&&null!=f&&null!=p)return h.find(e=>f>e.left-v.left&&f<e.right+v.right&&p>e.top-v.top&&p<e.bottom+v.bottom)||b;if(h.length>=2){if("y"===g(n)){let e=h[0],t=h[h.length-1],r="top"===d(n),i=e.top,o=t.bottom,s=r?e.left:t.left;return C({x:s,y:i,width:(r?e.right:t.right)-s,height:o-i})}let e="left"===d(n),t=i(...h.map(e=>e.right)),o=r(...h.map(e=>e.left)),s=h.filter(n=>e?n.left===o:n.right===t),l=s[0].top;return C({x:o,y:l,width:t-o,height:s[s.length-1].bottom-l})}return b}},floating:o.floating,strategy:a});return s.reference.x!==y.reference.x||s.reference.y!==y.reference.y||s.reference.width!==y.reference.width||s.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},"limitShift",0,er,"offset",0,Z,"platform",0,K,"shift",0,Q,"size",0,et],25339);var eo=e.i(47456),es=e.i(95072),el="u">typeof document?eo.useLayoutEffect:function(){};function ea(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ea(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eu(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ec(e,t){let n=eu(e);return Math.round(t*n)/n}function ed(e){let t=eo.useRef(e);return el(()=>{t.current=e}),t}e.s(["flip",0,(e,t)=>{let n=ee(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=en(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:er(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=Z(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=Q(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=et(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,d]=eo.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=eo.useState(r);ea(f,r)||p(r);let[m,g]=eo.useState(null),[h,b]=eo.useState(null),v=eo.useCallback(e=>
1{e!==E.current&&(E.current=e,g(e))},[]),y=eo.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),x=o||m,w=s||h,E=eo.useRef(null),k=eo.useRef(null),T=eo.useRef(c),S=null!=a,R=ed(a),C=ed(i),P=ed(u),O=eo.useCallback(()=>{if(!E.current||!k.current)return;let e={placement:t,strategy:n,middleware:f};C.current&&(e.platform=C.current),ei(E.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};A.current&&!ea(T.current,t)&&(T.current=t,es.flushSync(()=>{d(t)}))})},[f,t,n,C,P]);el(()=>{!1===u&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let A=eo.useRef(!1);el(()=>(A.current=!0,()=>{A.current=!1}),[]),el(()=>{if(x&&(E.current=x),w&&(k.current=w),x&&w){if(R.current)return R.current(x,w,O);O()}},[x,w,O,R,S]);let M=eo.useMemo(()=>({reference:E,floating:k,setReference:v,setFloating:y}),[v,y]),I=eo.useMemo(()=>({reference:x,floating:w}),[x,w]),L=eo.useMemo(()=>{let e={position:n,left:0,top:0};if(!I.floating)return e;let t=ec(I.floating,c.x),r=ec(I.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eu(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,I.floating,c.x,c.y]);return eo.useMemo(()=>({...c,update:O,refs:M,elements:I,floatingStyles:L}),[c,O,M,I,L])}],58542)},94958,e=>{"use strict";var t=e.i(80269),n=e.i(49054),r=e.i(40682),i=e.i(79440),o=e.i(16763),s=e.i(25275),l=e.i(17782);e.s(["useFloatingRootContext",0,function(e){let{open:a=!1,onOpenChange:u,elements:c={}}=e,d=(0,n.useId)(),f=null!=(0,s.useFloatingParentNodeId)(),p=(0,i.useRefWithInit)(()=>new l.FloatingRootStore({open:a,transitionStatus:void 0,onOpenChange:u,referenceElement:c.reference??null,floatingElement:c.floating??null,triggerElements:new o.PopupTriggerMap,floatingId:d,syncOnly:!1,nested:f})).current;return(0,r.useIsoLayoutEffect)(()=>{let e={open:a,floatingId:d};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,t.isElement)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),p.update(e)},[a,d,c.reference,c.floating,p]),p.context.onOpenChange=u,p.context.nested=f,p}])},34299,80488,e=>{"use strict";var t=e.i(47456),n=e.i(10242),r=e.i(59387),i=e.i(79995),o=e.i(40682),s=e.i(42273),l=e.i(77484),a=e.i(25339),u=e.i(58542),c=e.i(80269),d=e.i(25275),f=e.i(94958);e.i(56171);let p=t.createContext(void 0);function m(){let e=t.useContext(p);return e?.direction??"ltr"}e.s(["useDirection",0,m],80488);let g=(0,u.hide)().fn,h={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,o=await g(e);return{data:{referenceHidden:o.data?.referenceHidden||0===t&&0===n&&0===r&&0===i}}}},b={sideX:"left",sideY:"top"};function v(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function y(e,t,r){let{rects:i,placement:o}=e;return{side:v(t,(0,n.getSide)(o),r),align:(0,n.getAlignment)(o)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function x(e){return null!=e&&"current"in e}e.s(["useAnchorPositioning",0,function(e){var p,g;let{anchor:w,positionMethod:E="absolute",side:k="bottom",sideOffset:T=0,align:S="center",alignOffset:R=0,collisionBoundary:C,collisionPadding:P=5,sticky:O=!1,arrowPadding:A=5,disableAnchorTracking:M=!1,inline:I,keepMounted:L=!1,floatingRootContext:N,mounted:D,collisionAvoidance:F,shiftCrossAxis:z=!1,nodeId:j,adaptiveOrigin:W,lazyFlip:_=!1,externalTree:H}=e,[B,Y]=t.useState(null);D||null===B||Y(null);let $=F.side||"flip",V=F.align||"flip",U=F.fallbackAxisSide||"end",X="function"==typeof w?w:void 0,G=(0,l.useStableCallback)(X),q=X?G:w,K=(0,s.useValueAsRef)(w),J=(0,s.useValueAsRef)(D),Z="rtl"===m(),Q=B||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":Z?"left":"right","inline-start":Z?"right":"left"})[k],ee="center"===S?Q:`${Q}-${S}`,et=P,en=+("bottom"===k),er=+("top"===k),ei=+("right"===k),eo=+("left"===k);"number"==typeof et?et={top:et+en,right:et+eo,bottom:et+er,left:et+ei}:et&&(et={top:(et.top||0)+en,right:(et.right||0)+eo,bottom:(et.bottom||0)+er,left:(et.left||0)+ei});let es={boundary:"clipping-ancestors"===C?"clippingAncestors":C,padding:et},el=t.useRef(null),ea=(0,s.useValueAsRef)(T),eu=(0,s.useValueAsRef)(R),ec="function"!=typeof T?T:0,ed="function"!=typeof R?R:0,ef=[];
1I&&ef.push(I),ef.push((0,u.offset)(e=>{let t=y(e,k,Z),n="function"==typeof ea.current?ea.current(t):ea.current,r="function"==typeof eu.current?eu.current(t):eu.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ec,ed,Z,k]));let ep="none"===V&&"shift"!==$,em=!ep&&(O||z||"shift"===$),eg="none"===$?null:(0,u.flip)({...es,padding:{top:et.top+1,right:et.right+1,bottom:et.bottom+1,left:et.left+1},mainAxis:!z&&"flip"===$,crossAxis:"flip"===V&&"alignment",fallbackAxisSideDirection:U}),eh=ep?null:(0,u.shift)(e=>{let t=(0,r.ownerDocument)(e.elements.floating).documentElement;return{...es,rootBoundary:z?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:"none"!==V,crossAxis:em,limiter:O||z?void 0:(0,u.limitShift)(e=>{if(!el.current)return{};let{width:t,height:r}=el.current.getBoundingClientRect(),i=(0,n.getSideAxis)((0,n.getSide)(e.placement)),o="y"===i?et.left+et.right:et.top+et.bottom;return{offset:("y"===i?t:r)/2+o/2}})}},[es,O,z,et,V]);"shift"===$||"shift"===V||"center"===S?ef.push(eh,eg):ef.push(eg,eh),ef.push((0,u.size)({...es,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!J.current)return;let o=e.style;o.setProperty("--available-width",`${t}px`),o.setProperty("--available-height",`${n}px`);let s=(0,i.ownerWindow)(e).devicePixelRatio||1,{x:l,y:a,width:u,height:c}=r.reference,d=(Math.round((l+u)*s)-Math.round(l*s))/s,f=(Math.round((a+c)*s)-Math.round(a*s))/s;o.setProperty("--anchor-width",`${d}px`),o.setProperty("--anchor-height",`${f}px`)}}),(p=e=>({element:el.current||(0,r.ownerDocument)(e.elements.floating).createElement("div"),padding:A,offsetParent:"floating"}),g=[A],{name:"arrow",options:p,async fn(e){let{x:t,y:r,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=e,{element:u,padding:c=0,offsetParent:d="real"}=(0,n.evaluate)(p,e)||{};if(null==u)return{};let f=(0,n.getPaddingObject)(c),m={x:t,y:r},g=(0,n.getAlignmentAxis)(i),h=(0,n.getAxisLength)(g),b=await s.getDimensions(u),v="y"===g,y=v?"clientHeight":"clientWidth",x=o.reference[h]+o.reference[g]-m[g]-o.floating[h],w=m[g]-o.reference[g],E="real"===d?await s.getOffsetParent?.(u):l.floating,k=l.floating[y]||o.floating[h];k&&await s.isElement?.(E)||(k=l.floating[y]||o.floating[h]);let T=k/2-b[h]/2-1,S=Math.min(f[v?"top":"left"],T),R=Math.min(f[v?"bottom":"right"],T),C=k-b[h]-R,P=k/2-b[h]/2+(x/2-w/2),O=(0,n.clamp)(S,P,C),A=!a.arrow&&null!=(0,n.getAlignment)(i)&&P!==O&&o.reference[h]/2-(P<S?S:R)-b[h]/2<0,M=A?P<S?P-S:P-C:0;return{[g]:m[g]+M,data:{[g]:O,centerOffset:P-O-M,...A&&{alignmentOffset:M}},reset:A}},options:[p,g]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:r,placement:i,rects:o,y:s}=e,l=(0,n.getSide)(i),a=(0,n.getSideAxis)(l),u=el.current,c=r.arrow?.x||0,d=r.arrow?.y||0,f=u?.clientWidth||0,p=u?.clientHeight||0,m=c+f/2,g=d+p/2,h=Math.abs(r.shift?.y||0),b=o.reference.height/2,v="function"==typeof T?T(y(e,k,Z)):T,x=h>v,w={top:`${m}px calc(100% + ${v}px)`,bottom:`${m}px ${-v}px`,left:`calc(100% + ${v}px) ${g}px`,right:`${-v}px ${g}px`}[l],E=`${m}px ${o.reference.y+b-s}px`;return t.floating.style.setProperty("--transform-origin",em&&"y"===a&&x?E:w),{}}},h,W),(0,o.useIsoLayoutEffect)(()=>{!D&&N&&N.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[D,N]);let eb=t.useMemo(()=>({elementResize:!M&&"u">typeof ResizeObserver,layoutShift:!M&&"u">typeof IntersectionObserver}),[M]),{refs:ev,elements:ey,x:ex,y:ew,middlewareData:eE,update:ek,placement:eT,context:eS,isPositioned:eR,floatingStyles:eC}=function(e={}){let{nodeId:n,externalTree:r}=e,i=(0,f.useFloatingRootContext)(e),s=e.rootContext||i,l=s.useState("referenceElement"),a=s.useState("floatingElement"),p=s.useState("domReferenceElement"),m=s.useState("open"),g=s.useState("floatingId"),[h,b]=t.useState(null),[v,y]=t.useState(void 0),[x,w]=t.useState(void 0),E=t.useRef(null),k=(0,d.useFloatingTree)(r),T=t.useMemo(()=>({reference:l,floating:a,domReference:p}),[l,a,p]),S=(0,u.useFloating)({...e,elements:{...T,...h&&{reference:h}}}),R=(0,c.isElement)(v)?v:null,C=void 0===x?s.state.floatingElement:x;
1s.useSyncedValue("referenceElement",v??null),s.useSyncedValue("domReferenceElement",void 0===v?p:R),s.useSyncedValue("floatingElement",C);let P=t.useCallback(e=>{let t=(0,c.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;b(t),S.refs.setReference(t)},[S.refs]),O=t.useCallback(e=>{((0,c.isElement)(e)||null===e)&&(E.current=e,y(e)),((0,c.isElement)(S.refs.reference.current)||null===S.refs.reference.current||null!==e&&!(0,c.isElement)(e))&&S.refs.setReference(e)},[S.refs,y]),A=t.useCallback(e=>{w(e),S.refs.setFloating(e)},[S.refs]),M=t.useMemo(()=>({...S.refs,setReference:O,setFloating:A,setPositionReference:P,domReference:E}),[S.refs,O,A,P]),I=t.useMemo(()=>({...S.elements,domReference:p}),[S.elements,p]),L=t.useMemo(()=>({...S,dataRef:s.context.dataRef,open:m,onOpenChange:s.setOpen,events:s.context.events,floatingId:g,refs:M,elements:I,nodeId:n,rootStore:s}),[S,M,I,n,s,m,g]);return(0,o.useIsoLayoutEffect)(()=>{p&&(E.current=p)},[p]),(0,o.useIsoLayoutEffect)(()=>{s.context.dataRef.current.floatingContext=L;let e=k?.nodesRef.current.find(e=>e.id===n);e&&(e.context=L)}),t.useMemo(()=>({...S,context:L,refs:M,elements:I,rootStore:s}),[S,M,I,L,s])}({rootContext:N,open:L?D:void 0,placement:ee,middleware:ef,strategy:E,whileElementsMounted:L?void 0:(...e)=>(0,a.autoUpdate)(...e,eb),nodeId:j,externalTree:H}),{sideX:eP,sideY:eO}=eE.adaptiveOrigin||b,eA=eR?E:"fixed",eM=t.useMemo(()=>{let e=W?{position:eA,[eP]:ex,[eO]:ew}:{position:eA,...eC};return eR||(e.opacity=0),e},[W,eA,eP,ex,eO,ew,eC,eR]),eI=t.useRef(null);(0,o.useIsoLayoutEffect)(()=>{if(!D)return;let e=K.current,t="function"==typeof e?e():e,n=(x(t)?t.current:t)||null;n!==eI.current&&(ev.setPositionReference(n),eI.current=n)},[D,ev,q,K]),t.useEffect(()=>{if(!D)return;let e=K.current;"function"!=typeof e&&x(e)&&e.current!==eI.current&&(ev.setPositionReference(e.current),eI.current=e.current)},[D,ev,q,K]),t.useEffect(()=>{if(L&&D&&ey.reference&&ey.floating)return(0,a.autoUpdate)(ey.reference,ey.floating,ek,eb)},[L,D,ey,ek,eb]);let eL=(0,n.getSide)(eT),eN=v(k,eL,Z),eD=(0,n.getAlignment)(eT)||"center",eF=!!eE.hide?.referenceHidden;(0,o.useIsoLayoutEffect)(()=>{_&&D&&eR&&Y(eL)},[_,D,eR,eL]);let ez=t.useMemo(()=>({position:"absolute",top:eE.arrow?.y,left:eE.arrow?.x}),[eE.arrow]),ej=eE.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eM,arrowStyles:ez,arrowRef:el,arrowUncentered:ej,side:eN,align:eD,physicalSide:eL,anchorHidden:eF,refs:ev,context:eS,isPositioned:eR,update:ek}),[eM,ez,el,ej,eN,eD,eL,eF,ev,eS,eR,ek])}],34299)},49927,e=>{"use strict";var t=e.i(34336),n=e.i(47456);let r=n.createContext(void 0);e.s(["ToastPositionerContext",0,r,"useToastPositionerContext",0,function(){let e=n.useContext(r);if(void 0===e)throw Error((0,t.default)(84));return e}])},76010,36063,e=>{"use strict";
1var t=e.i(68562),n=e.i(17085),r=e.i(5370),i=e.i(65120);function o(e){return"starting"===e?i.DISABLED_TRANSITIONS_STYLE:r.EMPTY_OBJECT}e.s(["getDisabledMountTransitionStyles",0,o],36063),e.s(["usePositioner",0,function(e,r,{styles:i,transitionStatus:s,props:l,refs:a,hidden:u,inert:c=!1}){let d={...i};return c&&(d.pointerEvents="none"),(0,n.useRenderElement)("div",e,{state:r,ref:a,props:[{role:"presentation",hidden:u,style:d},o(s),l],stateAttributesMapping:t.popupStateMapping})}],76010)},90240,78906,e=>{"use strict";let t,n;e.i(69831);var r=e.i(39510),i=e.i(6807),o=e.i(29320),s=e.i(69392),l=e.i(76204),a=e.i(29907),u=e.i(42568),c=e.i(46765),d=e.i(23176);e.i(56171);var f=e.i(47456),p=e.i(80269),m=e.i(5370),g=e.i(34299),h=e.i(65120),b=e.i(49927),v=e.i(94958),y=e.i(42297),x=e.i(20987),w=e.i(76010),E=e.i(98023);let k=f.forwardRef(function(e,t){let{toast:n,...r}=e,i=(0,x.useToastProviderContext)(),o=n.positionerProps??m.EMPTY_OBJECT,{render:s,className:l,anchor:a=o.anchor,positionMethod:u=o.positionMethod??"absolute",side:c=o.side??"top",align:d=o.align??"center",sideOffset:k=o.sideOffset??0,alignOffset:T=o.alignOffset??0,collisionBoundary:S=o.collisionBoundary??"clipping-ancestors",collisionPadding:R=o.collisionPadding??5,arrowPadding:C=o.arrowPadding??5,sticky:P=o.sticky??!1,disableAnchorTracking:O=o.disableAnchorTracking??!1,collisionAvoidance:A=o.collisionAvoidance??h.POPUP_COLLISION_AVOIDANCE,style:M,...I}=r,[L,N]=f.useState(null),D=i.useState("toastIndex",n.id),F=i.useState("toastVisibleIndex",n.id),z=(0,p.isElement)(a)?a:null,j=(0,v.useFloatingRootContext)({open:!0,onOpenChange:m.NOOP,elements:{floating:L,reference:z}}),W=(0,g.useAnchorPositioning)({anchor:z,positionMethod:u,floatingRootContext:j,mounted:!0,side:c,sideOffset:k,align:d,alignOffset:T,collisionBoundary:S,collisionPadding:R,sticky:P,arrowPadding:C,disableAnchorTracking:O,keepMounted:!0,collisionAvoidance:A}),_=f.useMemo(()=>({side:W.side,align:W.align,anchorHidden:W.anchorHidden}),[W.side,W.align,W.anchorHidden]),H=(0,w.usePositioner)(e,_,{styles:{...W.positionerStyles,[y.ToastRootCssVars.index]:"ending"===n.transitionStatus?D:F},transitionStatus:n.transitionStatus,props:I,refs:[t,N]});return(0,E.jsx)(b.ToastPositionerContext.Provider,{value:W,children:H})});var T=e.i(17085);let S=f.forwardRef(function(e,t){let{className:n,render:r,style:i,...o}=e,{arrowRef:s,side:l,align:a,arrowUncentered:u,arrowStyles:c}=(0,b.useToastPositionerContext)();return(0,T.useRenderElement)("div",e,{state:{side:l,align:a,uncentered:u},ref:[t,s],props:[{style:c,"aria-hidden":!0},o]})});var R=e.i(34336),C=e.i(56078);e.s(["Action",()=>c.ToastAction,"Arrow",0,S,"Close",()=>u.ToastClose,"Content",()=>s.ToastContent,"Description",()=>l.ToastDescription,"Portal",()=>d.ToastPortal,"Positioner",0,k,"Provider",()=>r.ToastProvider,"Root",()=>o.ToastRoot,"Title",()=>a.ToastTitle,"Viewport",()=>i.ToastViewport,"createToastManager",0,function(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||(0,C.generateId)("toast");return t({action:"add",options:{...e,id:n,transitionStatus:"starting"}}),n},close(e){t({action:"close",options:{id:e}})},update(e,n){t({action:"update",options:{...n,id:e}})},promise(e,n){let r=e;return t({action:"promise",options:{...n,promise:e,setPromise(e){r=e}}}),r}}},"useToastManager",0,function(){let e=f.useContext(x.ToastContext);if(!e)throw Error((0,R.default)(73));let t=e.useState("toasts");return f.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}],65064);var P=e.i(65064);e.s(["Toast",0,P],90240);var O=e.i(43243);let A=f.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:o=!1,nativeButton:s=!0,style:l,...a}=e,{getButtonProps:u,buttonRef:c}=(0,O.useButton)({disabled:i,focusableWhenDisabled:o,native:s});return(0,T.useRenderElement)("button",e,{state:{disabled:i},ref:[t,c],props:[a,u]})});var M=e.i(7284);let I=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,L=M.clsx;var N=e.i(9665);let D=(t="group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-
1px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n={variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var r;if((null==n?void 0:n.variants)==null)return L(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:i,defaultVariants:o}=n,s=Object.keys(i).map(t=>{let n=null==e?void 0:e[t],r=null==o?void 0:o[t];if(null===n)return null;let s=I(n)||I(r);return i[t][s]}),l=e&&Object.entries(e).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return L(t,s,null==n||null==(r=n.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...l}[t]):({...o,...l})[t]===n})?[...e,n,r]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});e.s(["Button",0,function({className:e,variant:t="default",size:n="default",...r}){return(0,E.jsx)(A,{"data-slot":"button",className:(0,N.cn)(D({variant:t,size:n,className:e})),...r})}],78906)},38693,e=>{"use strict";var t=e.i(47456);let n=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:r,strokeWidth:s,absoluteStrokeWidth:l,className:a="",children:u,iconNode:c,...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:g=!1,color:h="currentColor",className:b=""}=(0,t.useContext)(o)??{},v=l??g?24*Number(s??m)/Number(r??p):s??m;return(0,t.createElement)("svg",{ref:f,...i,width:r??p??i.width,height:r??p??i.height,stroke:e??h,strokeWidth:v,className:n("lucide",b,a),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(d)&&{"aria-hidden":"true"},...d},[...c.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(u)?u:[u]])});e.s(["default",0,(e,i)=>{let o=(0,t.forwardRef)(({className:o,...l},a)=>(0,t.createElement)(s,{ref:a,iconNode:i,className:n(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...l}));return o.displayName=r(e),o}],38693)},46908,e=>{"use strict";var t=e.i(98023),n=e.i(90240),r=e.i(9665),i=e.i(78906),o=e.i(16803),s=e.i(38693);let l=(0,s.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),a=(0,s.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),u=(0,s.default)("octagon-x",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),c=(0,s.default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),d=n.Toast.createToastManager();function f({...e}){return(0,t.jsx)(n.Toast.Provider,{...e})}function p({...e}){return(0,t.jsx)(n.Toast.Portal,{"data-slot":"toast-portal",...e})}function m({className:e,...i}){return(0,t.jsx)(n.Toast.Viewport,{"data-slot":"toast-viewport",className:(0,r.cn)("pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full",e),...i})}function g({className:e,...i}){return(0,t.jsx)(n.Toast.Root,{"data-slot":"toast",className:(0,r.cn)("group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-none border border-brand bg-white text-ink shadow-[0_18px_40px_-28px_rgb(28_30_31/0.55)] will-change-transform outline-none select-none focus-visible:ring-2 focus-visible:ring-brand/30","[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]","h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]","after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']","data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]","data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]","[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]","data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]","data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]",e),...i})}function h({className:e,...i}){return(0,t.jsx)(n.Toast.Content,{"data-slot":"toast-content",className:(0,r.cn)("flex h-full items-start gap-4 overflow-hidden p-4 transition-opacity duration-250 ease-[
1cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100",e),...i})}function b({className:e,...i}){return(0,t.jsx)(n.Toast.Title,{"data-slot":"toast-title",className:(0,r.cn)("text-[15px] font-[650] leading-6 tracking-[0.01em] text-ink",e),...i})}function v({className:e,...i}){return(0,t.jsx)(n.Toast.Description,{"data-slot":"toast-description",className:(0,r.cn)("text-[15px] font-[550] leading-6 tracking-[0.01em] text-ink-muted",e),...i})}function y({className:e,render:o=(0,t.jsx)(i.Button,{variant:"outline",size:"sm"}),...s}){return(0,t.jsx)(n.Toast.Action,{"data-slot":"toast-action",render:o,className:(0,r.cn)("shrink-0 rounded-none",e),...s})}function x({className:e,children:s,render:l=(0,t.jsx)(i.Button,{variant:"ghost",size:"icon-sm"}),...a}){return(0,t.jsx)(n.Toast.Close,{"data-slot":"toast-close","aria-label":"Close toast",render:l,className:(0,r.cn)("relative shrink-0 rounded-none text-icon after:absolute after:-inset-2 after:content-[''] hover:bg-transparent hover:text-ink",e),...a,children:s??(0,t.jsx)(o.MultipleCrossCancel,{className:"size-[18px]",strokeWidth:1.8,"aria-hidden":"true"})})}function w({type:e}){let n=null;return("success"===e&&(n=(0,t.jsx)(o.CheckTickCircle,{className:"size-5 text-brand",strokeWidth:1.8,"aria-hidden":"true"})),"info"===e&&(n=(0,t.jsx)(l,{"aria-hidden":"true"})),"warning"===e&&(n=(0,t.jsx)(a,{"aria-hidden":"true"})),"error"===e&&(n=(0,t.jsx)(u,{className:"text-error","aria-hidden":"true"})),"loading"===e&&(n=(0,t.jsx)(c,{className:"animate-spin","aria-hidden":"true"})),n)?(0,t.jsx)("span",{"data-slot":"toast-icon",className:"mt-0.5 shrink-0 text-icon [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-5",children:n}):null}function E(){let{toasts:e}=n.Toast.useToastManager();return e.map(e=>(0,t.jsx)(g,{toast:e,children:(0,t.jsxs)(h,{children:[(0,t.jsx)(w,{type:e.type}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)(b,{}),(0,t.jsx)(v,{})]}),(0,t.jsx)(y,{}),(0,t.jsx)(x,{})]})},e.id))}let k=n.Toast.createToastManager,T=n.Toast.useToastManager;e.s(["Toast",0,g,"ToastAction",0,y,"ToastClose",0,x,"ToastContent",0,h,"ToastDescription",0,v,"ToastPortal",0,p,"ToastProvider",0,f,"ToastTitle",0,b,"ToastViewport",0,m,"Toaster",0,function({children:e,toastManager:n=d,...r}){return(0,t.jsxs)(f,{toastManager:n,...r,children:[e,(0,t.jsx)(p,{children:(0,t.jsx)(m,{children:(0,t.jsx)(E,{})})})]})},"createToastManager",0,k,"toast",0,d,"useToastManager",0,T],46908)}]);
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.