PageSourceSearch

https://thinktomorrow.ai/assets/ui-CAVZL63w.js

js thinktomorrow.ai collected 2026-10-05 14:38:44 UTC 92,286 bytes, 2 lines download raw bytes

1import{r as e,a as t,R as n,G as r,b as o}from"./vendor-Dub-4Mx9.js";var i={exports:{}},a={},s=e,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,d=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)u.call(t,r)&&!f.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:c,type:e,key:i,ref:a,props:o,_owner:d.current}}a.Fragment=l,a.jsx=p,a.jsxs=p,i.exports=a;var m=i.exports;function v(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;r=[...r,o];const s=n=>{var r;const{scope:o,children:s,...c}=n,l=(null==(r=null==o?void 0:o[t])?void 0:r[a])||i,u=e.useMemo((()=>c),Object.values(c));return m.jsx(l.Provider,{value:u,children:s})};return s.displayName=n+"Provider",[s,function(r,s){var c;const l=(null==(c=null==s?void 0:s[t])?void 0:c[a])||i,u=e.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},h(o,...n)]}function h(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}function g(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>(...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)}),[])}var y=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{};function w(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function b(...t){return e.useCallback(w(...t),t)}var x=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),a=i.find(C);if(a){const t=a.props.children,r=i.map((n=>n===a?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return m.jsx(E,{...o,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,r):null})}return m.jsx(E,{...o,ref:n,children:r})}));x.displayName="Slot";var E=e.forwardRef(((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(r);return e.cloneElement(r,{..._(o,r.props),ref:n?w(n,t):t})}return e.Children.count(r)>1?e.Children.only(null):null}));E.displayName="SlotClone";var R=({children:e})=>m.jsx(m.Fragment,{children:e});function C(t){return e.isValidElement(t)&&t.type===R}function _(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((e,t)=>{const{asChild:r,...o}=e,i=r?x:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(i,{...o,ref:t})}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function M(e,n){e&&t.flushSync((()=>e.dispatchEvent(n)))}var A="Avatar",[S,j]=v(A),[N,P]=S(A),O=e.forwardRef(((t,n)=>{const{__scopeAvatar:r,...o}=t,[i,a]=e.useState("idle");return m.jsx(N,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:m.jsx(D.span,{...o,ref:n})})}));O.displayName=A;var T="AvatarImage",I=e.forwardRef(((t,n)=>{const{__scopeAvatar:r,src:o,onLoadingStatusChange:i=()=>{},...a}=t,s=P(T,r),c=function(t,n){const[r,o]=e.useState("idle");return y((()=>
vendor: 9,033 bytes, line 1
1{if(!t)return void o("error");let e=!0;const r=new window.Image,i=t=>()=>{e&&o(t)};return o("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=t,n&&(r.referrerPolicy=n),()=>{e=!1}}),[t,n]),r}(o,a.referrerPolicy),l=g((e=>{i(e),s.onImageLoadingStatusChange(e)}));return y((()=>{"idle"!==c&&l(c)}),[c,l]),"loaded"===c?m.jsx(D.img,{...a,ref:n,src:o}):null}));I.displayName=T;var k="AvatarFallback",L=e.forwardRef(((t,n)=>{const{__scopeAvatar:r,delayMs:o,...i}=t,a=P(k,r),[s,c]=e.useState(void 0===o);return e.useEffect((()=>{if(void 0!==o){const e=window.setTimeout((()=>c(!0)),o);return()=>window.clearTimeout(e)}}),[o]),s&&"loaded"!==a.imageLoadingStatus?m.jsx(D.span,{...i,ref:n}):null}));L.displayName=k;var F=O,W=I,$=L;function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}var K=n["useId".toString()]||(()=>{}),H=0;function V(t){const[n,r]=e.useState(K());return y((()=>{r((e=>e??String(H++)))}),[t]),n?`radix-${n}`:""}function U({prop:t,defaultProp:n,onChange:r=()=>{}}){const[o,i]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,i=e.useRef(o),a=g(n);return e.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==t,s=a?t:o,c=g(r);return[s,e.useCallback((e=>{if(a){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else i(e)}),[a,t,i,c])]}var z,G="dismissableLayer.update",X="dismissableLayer.pointerDownOutside",Y="dismissableLayer.focusOutside",q=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Z=e.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=t,u=e.useContext(q),[d,f]=e.useState(null),p=(null==d?void 0:d.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,v]=e.useState({}),h=b(n,(e=>f(e))),y=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(w),E=d?y.indexOf(d):-1,R=u.layersWithOutsidePointerEventsDisabled.size>0,C=E>=x,_=function(t,n=(null==globalThis?void 0:globalThis.document)){const r=g(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let t=function(){ee(X,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));C&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p),M=function(t,n=(null==globalThis?void 0:globalThis.document)){const r=g(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){ee(Y,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p);return function(t,n=(null==globalThis?void 0:globalThis.document)){const r=g(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})}),[r,n])}((e=>{E===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),e.useEffect((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(z=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Q(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=z)}}),[d,p,r,u]),e.useEffect((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Q())}),[d,u]),e.useEffect((()=>{const e=()=>v({});return document.addEventListener(G,e),()=>document.removeEventListener(G,e)}),[]),m.jsx(D.div,{...l,ref:h,style:{pointerEvents:R?C?"auto":"none":void 0,...t.style},onFocusCapture:B(t.onFocusCapture,M.onFocusCapture),onBlurCapture:B(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:B(t.onPointerDownCapture,_.onPointerDownCapture)})}));Z.displayName="DismissableLayer";var J=e.forwardRef(((t,n)=>{const r=e.useContext(q),o=e.useRef(null),i=b(n,o);return e.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),m.jsx(D.div,{...t,ref:i})}));function Q(){const e=new CustomEvent(G);document.dispatchEvent(e)}function ee(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?M(o,i):o.dispatchEvent(i)}J.displayName="DismissableLayerBranch";var te=Z,ne=J,re="focusScope.autoFocusOnMount",oe="focusScope.autoFocusOnUnmount",ie={bubbles:!1,cancelable:!0},ae=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[c,l]=e.useState(null),u=g(i),d=g(a),f=e.useRef(null),p=b(n,(e=>l(e))),v=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(o){let e=function(e){if(v.paused||!c)return;const t=e.target;c.contains(t)?f.current=t:ue(f.current,{select:!0})},t=function(e){if(v.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||ue(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&ue(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,c,v.paused]),e.useEffect((()=>{if(c){de.add(v);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(re,ie);c.addEventListener(re,u),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ue(r,{select:t}),document.activeElement!==n)return}((e=se(c),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&ue(c))}return()=>{c.removeEventListener(re,u),setTimeout((()=>{const e=new CustomEvent(oe,ie);c.addEventListener(oe,d),c.dispatchEvent(e),e.defaultPrevented||ue(t??document.body,{select:!0}),c.removeEventListener(oe,d),de.remove(v)}),0)}}var e}),[c,u,d,v]);const h=e.useCallback((e=>{if(!r&&!o)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=se(e),n=ce(t,e),r=ce(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&ue(i,{select:!0})):(e.preventDefault(),r&&ue(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,v.paused]);return m.jsx(D.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})}));function se(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ce(e,t){for(const n of e)if(!le(n,{upTo:t}))return n}function le(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function ue(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}ae.displayName="FocusScope";var de=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=fe(e,t),e.unshift(t)},remove(t){var n;e=fe(e,t),null==(n=e[0])||n.resume()}}}();function fe(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var pe=e.forwardRef(((t,n)=>{var o;const{container:i,...a}=t,[s,c]=e.useState(!1);y((()=>c(!0)),[]);const l=i||s&&(null==(o=null==globalThis?void 0:globalThis.document)?void 0:o.body);return l?r.createPortal(m.jsx(D.div,{...a,ref:n}),l):null}));pe.displayName="Portal";var me=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef({}),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[c,l]=function(t,n){return e.useReducer(((e,t)=>n[e][t]??e),t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=ve(o.current);a.current="mounted"===c?e:"none"}),[c]),y((()=>{const e=o.current,n=i.current;
vendor: 15,241 bytes, line 1
1if(n!==t){const r=a.current,o=ve(e);if(t)l("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))l("UNMOUNT");else{l(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}}),[t,l]),y((()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=ve(o.current).includes(r.animationName);if(r.target===n&&a&&(l("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)}))}},s=e=>{e.target===n&&(a.current=ve(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}l("ANIMATION_END")}),[n,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback((e=>{e&&(o.current=getComputedStyle(e)),r(e)}),[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=b(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:a}):null};function ve(e){return(null==e?void 0:e.animationName)||"none"}me.displayName="Presence";var he=0;function ge(){e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ye()),document.body.insertAdjacentElement("beforeend",e[1]??ye()),he++,()=>{1===he&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),he--}}),[])}function ye(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var we=function(){return we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},we.apply(this,arguments)};function be(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var xe="right-scroll-bar-position",Ee="width-before-scroll-bar";function Re(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Ce="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,_e=new WeakMap;function De(t,n){var r,o,i,a=(r=null,o=function(e){return t.forEach((function(t){return Re(t,e)}))},(i=e.useState((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade);return Ce((function(){var e=_e.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach((function(e){r.has(e)||Re(e,null)})),r.forEach((function(e){n.has(e)||Re(e,o)}))}_e.set(a,t)}),[t]),a}function Me(e){return e}var Ae=function(t){var n=t.sideCar,r=be(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,we({},r))};Ae.isSideCarExport=!0;var Se=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Me);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=we({async:!0,ssr:!1},e),t}(),je=function(){},Ne=e.forwardRef((function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:je,onWheelCapture:je,onTouchMoveCapture:je}),i=o[0],a=o[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noIsolation,v=t.inert,h=t.allowPinchZoom,g=t.as,y=void 0===g?"div":g,w=t.gapMode,b=be(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,E=De([r,n]),R=we(we({},b),i);return e.createElement(e.Fragment,null,d&&e.createElement(x,{sideCar:Se,removeScrollBar:u,shards:f,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(c),we(we({},R),{ref:E})):e.createElement(y,we({},R,{className:l,ref:E}),c))}));Ne.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ne.classNames={fullWidth:Ee,zeroRight:xe};function Pe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Oe=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Pe())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Te=function(){var t,n=(t=Oe(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Ie={left:0,top:0,right:0,gap:0},ke=function(e){return parseInt(e||"",10)||0},Le=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ie;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ke(n),ke(r),ke(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Fe=Te(),We="data-scroll-locked",$e=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(We,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(xe," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Ee," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(xe," .").concat(xe," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Ee," .").concat(Ee," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(We,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Be=function(){var e=parseInt(document.body.getAttribute(We)||"0",10);return isFinite(e)?e:0},Ke=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect((function(){return document.body.setAttribute(We,(Be()+1).toString()),function(){var e=Be()-1;e<=0?document.body.removeAttribute(We):document.body.setAttribute(We,e.toString())}}),[]);var a=e.useMemo((function(){return Le(i)}),[i]);return e.createElement(Fe,{styles:$e(a,!n,i,r?"":"!important")})},He=!1;if("undefined"!=typeof window)try{var Ve=Object.defineProperty({},"passive",{get:function(){return He=!0,!0}});window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(Ts){He=!1}var Ue=!!He&&{passive:!1},ze=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Ge=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Xe(e,r)){var o=Ye(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xe=function(e,t){return"v"===e?function(e){return ze(e,"overflowY")}(t):function(e){return ze(e,"overflowX")}(t)},Ye=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},qe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ze=function(e){return[e.deltaX,e.deltaY]},Je=function(e){return e&&"current"in e?e.current:e},Qe=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},et=0,tt=[];function nt(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const rt=(ot=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(et++)[0],a=e.useState(Te)[0],s=e.useRef(t);e.useEffect((function(){s.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(Je),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=qe(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Ge(d,u);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=Ge(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),l=!1,u=a>0,d=0,f=0;do{var p=Ye(e,s),m=p[0],v=p[1]-p[2]-i*m;(m||v)&&Xe(e,s)&&(d+=v,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return u&&(Math.abs(d)<1||!o)?l=!0:u||!(Math.abs(f)<1)&&o||(l=!0),l}(p,t,e,"h"===p?c:l,!0)}),[]),l=e.useCallback((function(e){var t=e;if(tt.length&&tt[tt.length-1]===a){var r="deltaY"in t?Ze(t):qe(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(Je).filter(Boolean).filter((function(e){return e.contains(t.target)}));(i.length>0?c(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),u=e.useCallback((function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:nt(r)};n.current.push(i),setTimeout((function(){n.current=n.current.filter((function(e){return e!==i}))}),1)}),[]),d=e.useCallback((function(e){r.current=qe(e),o.current=void 0}),[]),f=e.useCallback((function(e){u(e.type,Ze(e),e.target,c(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){u(e.type,qe(e),e.target,c(e,t.lockRef.current))}),[]);e.useEffect((function(){return tt.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Ue),document.addEventListener("touchmove",l,Ue),document.addEventListener("touchstart",d,Ue),function(){tt=tt.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,Ue),document.removeEventListener("touchmove",l,Ue),document.removeEventListener("touchstart",d,Ue)}}),[]);var m=t.removeScrollBar,v=t.inert;return e.createElement(e.Fragment,null,v?e.createElement(a,{styles:Qe(i)}):null,m?e.createElement(Ke,{gapMode:t.gapMode}):null)},Se.useMedium(ot),Ae);var ot,it=e.forwardRef((function(t,n){return e.createElement(Ne,we({},t,{ref:n,sideCar:rt}))}));it.classNames=Ne.classNames;var at=new WeakMap,st=new WeakMap,ct={},lt=0,ut=function(e){return e&&(e.host||ut(e.parentNode))},dt=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=ut(t);return n&&e.contains(n)?n:null})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);ct[n]||(ct[n]=new WeakMap);var i=ct[n],a=[],s=new Set,c=new Set(o),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(at.get(e)||0)+1,l=(i.get(e)||0)+1;at.set(e,c),i.set(e,l),a.push(e),1===c&&o&&st.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(d){}}))};return u(t),s.clear(),lt++,function(){a.forEach((function(e){var t=at.get(e)-1,o=i.get(e)-1;at.set(e,t),i.set(e,o),t||(st.has(e)||e.removeAttribute(r),st.delete(e)),o||e.removeAttribute(n)})),--lt||(at=new WeakMap,at=new WeakMap,st=new WeakMap,ct={})}},ft=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),dt(r,o,n,"aria-hidden")):function(){return null}},pt="Dialog",[mt,vt]=v(pt),[ht,gt]=mt(pt),yt=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=t,c=e.useRef(null),l=e.useRef(null),[u=!1,d]=U({prop:o,defaultProp:i,onChange:a});return m.jsx(ht,{scope:n,triggerRef:c,contentRef:l,contentId:V(),titleId:V(),descriptionId:V(),open:u,onOpenChange:d,onOpenToggle:e.useCallback((()=>d((e=>!e))),[d]),modal:s,children:r})};yt.displayName=pt;var wt="DialogTrigger",bt=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(wt,n),i=b(t,o.triggerRef);return m.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Wt(o.open),...r,ref:i,onClick:B(e.onClick,o.onOpenToggle)})}
1));bt.displayName=wt;var xt="DialogPortal",[Et,Rt]=mt(xt,{forceMount:void 0}),Ct=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=t,a=gt(xt,n);return m.jsx(Et,{scope:n,forceMount:r,children:e.Children.map(o,(e=>m.jsx(me,{present:r||a.open,children:m.jsx(pe,{asChild:!0,container:i,children:e})})))})};Ct.displayName=xt;var _t="DialogOverlay",Dt=e.forwardRef(((e,t)=>{const n=Rt(_t,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=gt(_t,e.__scopeDialog);return i.modal?m.jsx(me,{present:r||i.open,children:m.jsx(Mt,{...o,ref:t})}):null}));Dt.displayName=_t;var Mt=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(_t,n);return m.jsx(it,{as:x,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(D.div,{"data-state":Wt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),At="DialogContent",St=e.forwardRef(((e,t)=>{const n=Rt(At,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=gt(At,e.__scopeDialog);return m.jsx(me,{present:r||i.open,children:i.modal?m.jsx(jt,{...o,ref:t}):m.jsx(Nt,{...o,ref:t})})}));St.displayName=At;var jt=e.forwardRef(((t,n)=>{const r=gt(At,t.__scopeDialog),o=e.useRef(null),i=b(n,r.contentRef,o);return e.useEffect((()=>{const e=o.current;if(e)return ft(e)}),[]),m.jsx(Pt,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(t.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()})),onPointerDownOutside:B(t.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:B(t.onFocusOutside,(e=>e.preventDefault()))})})),Nt=e.forwardRef(((t,n)=>{const r=gt(At,t.__scopeDialog),o=e.useRef(!1),i=e.useRef(!1);return m.jsx(Pt,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,a;null==(n=t.onCloseAutoFocus)||n.call(t,e),e.defaultPrevented||(o.current||null==(a=r.triggerRef.current)||a.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{var n,a;null==(n=t.onInteractOutside)||n.call(t,e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const s=e.target;(null==(a=r.triggerRef.current)?void 0:a.contains(s))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})})),Pt=e.forwardRef(((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=t,c=gt(At,r),l=e.useRef(null),u=b(n,l);return ge(),m.jsxs(m.Fragment,{children:[m.jsx(ae,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:m.jsx(Z,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Wt(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Ht,{titleId:c.titleId}),m.jsx(Vt,{contentRef:l,descriptionId:c.descriptionId})]})]})})),Ot="DialogTitle",Tt=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(Ot,n);return m.jsx(D.h2,{id:o.titleId,...r,ref:t})}));Tt.displayName=Ot;var It="DialogDescription",kt=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(It,n);return m.jsx(D.p,{id:o.descriptionId,...r,ref:t})}));kt.displayName=It;var Lt="DialogClose",Ft=e.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=gt(Lt,n);return m.jsx(D.button,{type:"button",...r,ref:t,onClick:B(e.onClick,(()=>o.onOpenChange(!1)))})}));function Wt(e){return e?"open":"closed"}Ft.displayName=Lt;var $t="DialogTitleWarning",[Bt,Kt]=function(t,n){const r=e.createContext(n),o=t=>{const{children:n,...o}=t,i=e.useMemo((()=>o),Object.values(o));return m.jsx(r.Provider,{value:i,children:n})};return o.displayName=t+"Provider",[o,function(o){const i=e.useContext(r);if(i)return i;if(void 0!==n)return n;throw new Error(`\`${o}\` must be used within \`${t}\``)}]}($t,{contentName:At,titleName:Ot,docsSlug:"dialog"}),Ht=({titleId:t})=>{const n=Kt($t),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect((()=>
1{if(t){document.getElementById(t)}}),[r,t]),null},Vt=({contentRef:t,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kt("DialogDescriptionWarning").contentName}}.`;return e.useEffect((()=>{var e;const r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");if(n&&r){document.getElementById(n)}}),[r,t,n]),null},Ut=yt,zt=bt,Gt=Ct,Xt=Dt,Yt=St,qt=Tt,Zt=kt,Jt=Ft;function Qt(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}function en(t){const n=t+"CollectionProvider",[r,i]=function(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,c=(null==r?void 0:r[t][a])||i,l=e.useMemo((()=>s),Object.values(s));return m.jsx(c.Provider,{value:l,children:o})}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const c=(null==s?void 0:s[t][a])||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},Qt(o,...n)]}(n),[a,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),c=e=>{const{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return m.jsx(a,{scope:t,itemMap:i,collectionRef:r,children:n})};c.displayName=n;const l=t+"CollectionSlot",u=o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=b(t,s(l,n).collectionRef);return m.jsx(x,{ref:o,children:r})}));u.displayName=l;const d=t+"CollectionItemSlot",f="data-radix-collection-item",p=o.forwardRef(((e,t)=>{const{scope:n,children:r,...i}=e,a=o.useRef(null),c=b(t,a),l=s(d,n);return o.useEffect((()=>(l.itemMap.set(a,{ref:a,...i}),()=>{l.itemMap.delete(a)}))),m.jsx(x,{[f]:"",ref:c,children:r})}));return p.displayName=d,[{Provider:c,Slot:u,ItemSlot:p},function(e){const n=s(t+"CollectionConsumer",e);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},i]}const tn=["top","right","bottom","left"],nn=Math.min,rn=Math.max,on=Math.round,an=Math.floor,sn=e=>({x:e,y:e}),cn={left:"right",right:"left",bottom:"top",top:"bottom"},ln={start:"end",end:"start"};function un(e,t,n){return rn(e,nn(t,n))}function dn(e,t){return"function"==typeof e?e(t):e}function fn(e){return e.split("-")[0]}function pn(e){return e.split("-")[1]}function mn(e){return"x"===e?"y":"x"}function vn(e){return"y"===e?"height":"width"}function hn(e){return["top","bottom"].includes(fn(e))?"y":"x"}function gn(e){return mn(hn(e))}function yn(e){return e.replace(/start|end/g,(e=>ln[e]))}function wn(e){return e.replace(/left|right|bottom|top/g,(e=>cn[e]))}function bn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function xn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function En(e,t,n){let{reference:r,floating:o}=e;const i=hn(t),a=gn(t),s=vn(a),c=fn(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(pn(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1)}return p}async function Rn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=dn(t,e),m=bn(p),v=s[f?"floating"===d?"reference":"floating":d],h=xn(await i.getClippingRect
vendor: 4,373 bytes, line 1
1({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=xn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:c}):g);return{top:(h.top-b.top+m.top)/w.y,bottom:(b.bottom-h.bottom+m.bottom)/w.y,left:(h.left-b.left+m.left)/w.x,right:(b.right-h.right+m.right)/w.x}}function Cn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _n(e){return tn.some((t=>e[t]>=0))}function Dn(){return"undefined"!=typeof window}function Mn(e){return jn(e)?(e.nodeName||"").toLowerCase():"#document"}function An(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Sn(e){var t;return null==(t=(jn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function jn(e){return!!Dn()&&(e instanceof Node||e instanceof An(e).Node)}function Nn(e){return!!Dn()&&(e instanceof Element||e instanceof An(e).Element)}function Pn(e){return!!Dn()&&(e instanceof HTMLElement||e instanceof An(e).HTMLElement)}function On(e){return!(!Dn()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof An(e).ShadowRoot)}function Tn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$n(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function In(e){return["table","td","th"].includes(Mn(e))}function kn(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Ln(e){const t=Fn(),n=Nn(e)?$n(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Fn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Wn(e){return["html","body","#document"].includes(Mn(e))}function $n(e){return An(e).getComputedStyle(e)}function Bn(e){return Nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kn(e){if("html"===Mn(e))return e;const t=e.assignedSlot||e.parentNode||On(e)&&e.host||Sn(e);return On(t)?t.host:t}function Hn(e){const t=Kn(e);return Wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pn(t)&&Tn(t)?t:Hn(t)}function Vn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Hn(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=An(o);if(i){const e=Un(a);return t.concat(a,a.visualViewport||[],Tn(o)?o:[],e&&n?Vn(e):[])}return t.concat(o,Vn(o,[],n))}function Un(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zn(e){const t=$n(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Pn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=on(n)!==i||on(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Gn(e){return Nn(e)?e:e.contextElement}function Xn(e){const t=Gn(e);if(!Pn(t))return sn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=zn(t);let a=(i?on(n.width):n.width)/r,s=(i?on(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Yn=sn(0);function qn(e){const t=An(e);return Fn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Yn}function Zn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Gn(e);let a=sn(1);t&&(r?Nn(r)&&(a=Xn(r)):a=Xn(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==An(e))&&t}(i,n,r)?qn(i):sn(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=An(i),t=r&&Nn(r)?An(r):r;let n=e,o=Un(n);for(;o&&r&&t!==n;){const e=Xn(o),t=o.getBoundingClientRect(),r=$n(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.to
vendor: 2,107 bytes, line 1
1p+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=An(o),o=Un(n)}}return xn({width:u,height:d,x:c,y:l})}function Jn(e,t){const n=Bn(e).scrollLeft;return t?t.left+n:Zn(Sn(e)).left+n}function Qn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=An(e),r=Sn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Fn();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Sn(e),n=Bn(e),r=e.ownerDocument.body,o=rn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=rn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Jn(e);const s=-n.scrollTop;return"rtl"===$n(r).direction&&(a+=rn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Sn(e));else if(Nn(t))r=function(e,t){const n=Zn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Pn(e)?Xn(e):sn(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=qn(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return xn(r)}function er(e,t){const n=Kn(e);return!(n===t||!Nn(n)||Wn(n))&&("fixed"===$n(n).position||er(n,t))}function tr(e,t,n){const r=Pn(t),o=Sn(t),i="fixed"===n,a=Zn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=sn(0);if(r||!r&&!i)if(("body"!==Mn(t)||Tn(o))&&(s=Bn(t)),r){const e=Zn(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Jn(o));let l=0,u=0;if(o&&!r&&!i){const e=o.getBoundingClientRect();u=e.top+s.scrollTop,l=e.left+s.scrollLeft-Jn(o,e)}return{x:a.left+s.scrollLeft-c.x-l,y:a.top+s.scrollTop-c.y-u,width:a.width,height:a.height}}function nr(e){return"static"===$n(e).position}function rr(e,t){if(!Pn(e)||"fixed"===$n(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Sn(e)===n&&(n=n.ownerDocument.body),n}function or(e,t){const n=An(e);if(kn(e))return n;if(!Pn(e)){let t=Kn(e);for(;t&&!Wn(t);){if(Nn(t)&&!nr(t))return t;t=Kn(t)}return n}let r=rr(e,t);for(;r&&In(r)&&nr(r);)r=rr(r,t);return r&&Wn(r)&&nr(r)&&!Ln(r)?n:r||function(e){let t=Kn(e);for(;
vendor: 12,429 bytes, line 1
1Pn(t)&&!Wn(t);){if(Ln(t))return t;if(kn(t))return null;t=Kn(t)}return null}(e)||n}const ir={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Sn(r),s=!!t&&kn(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=sn(1);const u=sn(0),d=Pn(r);if((d||!d&&!i)&&(("body"!==Mn(r)||Tn(a))&&(c=Bn(r)),Pn(r))){const e=Zn(r);l=Xn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}},getDocumentElement:Sn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?kn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Vn(e,[],!1).filter((e=>Nn(e)&&"body"!==Mn(e))),o=null;const i="fixed"===$n(e).position;let a=i?Kn(e):e;for(;Nn(a)&&!Wn(a);){const t=$n(a),n=Ln(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Tn(a)&&!n&&er(e,a))?r=r.filter((e=>e!==a)):o=t,a=Kn(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Qn(t,n,o);return e.top=rn(r.top,e.top),e.right=nn(r.right,e.right),e.bottom=nn(r.bottom,e.bottom),e.left=rn(r.left,e.left),e}),Qn(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:or,getElementRects:async function(e){const t=this.getOffsetParent||or,n=this.getDimensions,r=await n(e.floating);return{reference:tr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=zn(e);return{width:t,height:n}},getScale:Xn,isElement:Nn,isRTL:function(e){return"rtl"===$n(e).direction}};function ar(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=Gn(e),u=o||i?[...l?Vn(l):[],...Vn(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&s?function(e,t){let n,r=null;const o=Sn(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-an(u)+"px "+-an(o.clientWidth-(l+d))+"px "+-an(o.clientHeight-(u+f))+"px "+-an(l)+"px",threshold:rn(0,nn(1,c))||1};let m=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(v,{...p,root:o.ownerDocument})}catch(h){r=new IntersectionObserver(v,p)}r.observe(e)}(!0),i}(l,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),l&&!c&&m.observe(l),m.observe(t));let v=c?Zn(e):null;return c&&function t(){const r=Zn(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(f)}}const sr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=fn(n),s=pn(n),c="y"===hn(n),l=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,d=dn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},cr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=dn(e,t),l={x:n,y:r},u=await Rn(t,c),d=hn(fn(o)),f=mn(d);let p=l[f],m=l[d];if(i){const e="y"===f?"bottom":"right";p=un(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=un(m+u["y"===d?"top":"left"],m,m-u[e])}const v=s.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:i,[d]:a}}}}}},lr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...h}=dn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=fn(o),y=hn(s),w=fn(s)===s,b=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=f||(w||!v?[wn(s)]:function(e){const t=wn(e);return[yn(e),t,yn(t)]}(s)),E="none"!==m;!f&&E&&x.push(...function(e,t,n,r){const o=pn(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(fn(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(yn)))),i}(s,v,m,b));const R=[s,...x],C=await Rn(t,h),_=[];let D=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(C[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=pn(e),o=gn(e),i=vn(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=wn(a)),[a,wn(a)]}(o,a,b);_.push(C[e[0]],C[e[1]])}if(D=[...D,{placement:o,overflows:_}],!_.every((e=>e<=0))){var M,A;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=R[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(A=D.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var S;const e=null==(S=D.filter((e=>{if(E){const t=hn(e.placement);return t===y||"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=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ur=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...l}=dn(e,t),u=await Rn(t,l),d=fn(o),f=pn(o),p="y"===hn(o),{width:m,height:v}=i.floating;let h,g;"top"===d||"bottom"===d?(h=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,h="end"===f?"top":"bottom");const y=v-u.top-u.bottom,w=m-u.left-u.right,b=nn(v-u[h],y),x=nn(m-u[g],w),E=!t.middlewareData.shift;let R=b,C=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(R=y),E&&!f){const e=rn(u.left,0),t=rn(u.right,0),n=rn(u.top,0),r=rn(u.bottom,0);p?C=m-2*(0!==e||0!==t?e+t:rn(u.left,u.right)):R=v-2*(0!==n||0!==r?n+r:rn(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:R});const _=await a.getDimensions(s.floating);return m!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}},dr=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=dn(e,t);switch(r){case"referenceHidden":{const e=Cn(await Rn(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_n(e)}}}case"escaped":{const e=Cn(await Rn(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_n(e)}}}default:return{}}}}},fr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=dn(e,t)||{};if(null==l)return{};const d=bn(u),f={x:n,y:r},p=gn(o),m=vn(p),v=await a.getDimensions(l),h="y"===p,g=h?"top":"left",y=h?"bottom":"right",w=h?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let R=E?E[w]:0;R&&await(null==a.isElement?void 0:a.isElement(E))||(R=s.floating[w]||i.floating[m]);const C=b/2-x/2,_=R/2-v[m]/2-1,D=nn(d[g],_),M=nn(d[y],_),A=D,S=R-v[m]-M,j=R/2-v[m]/2+C,N=un(A,j,S),P=!c.arrow&&null!=pn(o)&&j!==N&&i.reference[m]/2-(j<A?D:M)-v[m]/2<0,O=P?j<A?j-A:j-S:0;return{[p]:f[p]+O,data:{[p]:N,centerOffset:j-N-O,...P&&{alignmentOffset:O}},reset:P}}}),pr=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=dn(e,t),u={x:n,y:r},d=hn(o),f=mn(d);let p=u[f],m=u[d];const v=dn(s,t),h="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+h.mainAxis,n=i.reference[f]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes(fn(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:h.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?h.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},mr=(e,t,n)=>{const r=new Map,o={platform:ir,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=En(l,r,c),f=r,p={},m=0;for(let v=0;v<s.length;v++){const{name:n,fn:i}=s[v],{x:h,y:g,data:y,reset:w}=await i({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=g?g:d,p={...p,[n]:{...p[n],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(l=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=En(l,f,c))),v=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var vr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function hr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!hr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!hr(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function gr(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yr(e,t){const n=gr(e);return Math.round(t*n)/n}function wr(t){const n=e.useRef(t);return vr((()=>{n.current=t})),n}const br=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?fr({element:n.current,padding:r}).fn(t):{}:n?fr({element:n,padding:r}).fn(t):{};var o}}),xr=(e,t)=>({...sr(e),options:[e,t]}),Er=(e,t)=>({...cr(e),options:[e,t]}),Rr=(e,t)=>({...pr(e),options:[e,t]}),Cr=(e,t)=>({...lr(e),options:[e,t]}),_r=(e,t)=>({...ur(e),options:[e,t]}),Dr=(e,t)=>({...dr(e),options:[e,t]}),Mr=(e,t)=>({...br(e),options:[e,t]});var Ar=e.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return m.jsx(D.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})}));Ar.displayName="Arrow";var Sr=Ar;function jr(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}function Nr(t){const[n,r]=e.useState(void 0);return y((()=>
vendor: 4,602 bytes, line 1
1{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}var Pr="Popper",[Or,Tr]=function(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,c=(null==r?void 0:r[t][a])||i,l=e.useMemo((()=>s),Object.values(s));return m.jsx(c.Provider,{value:l,children:o})}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const c=(null==s?void 0:s[t][a])||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},jr(o,...n)]}(Pr),[Ir,kr]=Or(Pr),Lr=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return m.jsx(Ir,{scope:n,anchor:o,onAnchorChange:i,children:r})};Lr.displayName=Pr;var Fr="PopperAnchor",Wr=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=kr(Fr,r),s=e.useRef(null),c=b(n,s);return e.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)})),o?null:m.jsx(D.div,{...i,ref:c})}));Wr.displayName=Fr;var $r="PopperContent",[Br,Kr]=Or($r),Hr=e.forwardRef(((n,r)=>{var o,i,a,s,c,l;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:v=0,arrowPadding:h=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:E=0,sticky:R="partial",hideWhenDetached:C=!1,updatePositionStrategy:_="optimized",onPlaced:M,...A}=n,S=kr($r,u),[j,N]=e.useState(null),P=b(r,(e=>N(e))),[O,T]=e.useState(null),I=Nr(O),k=(null==I?void 0:I.width)??0,L=(null==I?void 0:I.height)??0,F=d+("center"!==p?"-"+p:""),W="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},$=Array.isArray(x)?x:[x],B=$.length>0,K={padding:W,boundary:$.filter(Gr),altBoundary:B},{refs:H,floatingStyles:V,placement:U,isPositioned:z,middlewareData:G}=function(n){void 0===n&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a,elements:{reference:s,floating:c}={},transform:l=!0,whileElementsMounted:u,open:d}=n,[f,p]=e.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[m,v]=e.useState(i);hr(m,i)||v(i);const[h,g]=e.useState(null),[y,w]=e.useState(null),b=e.useCallback((e=>{e!==C.current&&(C.current=e,g(e))}),[]),x=e.useCallback((e=>{e!==_.current&&(_.current=e,w(e))}),[]),E=s||h,R=c||y,C=e.useRef(null),_=e.useRef(null),D=e.useRef(f),M=null!=u,A=wr(u),S=wr(a),j=wr(d),N=e.useCallback((()=>{if(!C.current||!_.current)return;const e={placement:r,strategy:o,middleware:m};S.current&&(e.platform=S.current),mr(C.current,_.current,e).then((e=>{const n={...e,isPositioned:!1!==j.current};P.current&&!hr(D.current,n)&&(D.current=n,t.flushSync((()=>{p(n)})))}))}),[m,r,o,S,j]);vr((()=>{!1===d&&D.current.isPositioned&&(D.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const P=e.useRef(!1);vr((()=>(P.current=!0,()=>{P.current=!1})),[]),vr((()=>{if(E&&(C.current=E),R&&(_.current=R),E&&R){if(A.current)return A.current(E,R,N);N()}}),[E,R,N,A,M]);const O=e.useMemo((()=>({reference:C,floating:_,setReference:b,setFloating:x})),[b,x]),T=e.useMemo((()=>({reference:E,floating:R})),[E,R]),I=e.useMemo((()=>{const e={position:o,left:0,top:0};if(!T.floating)return e;const t=yr(T.floating,f.x),n=yr(T.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...gr(T.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:n}}),[o,l,T.floating,f.x,f.y]);return e.useMemo((()=>({...f,update:N,refs:O,elements:T,floatingStyles:I})),[f,N,O,T,I])}({strategy:"fixed",placement:F,whileElementsMounted:(...e)=>ar(...e,{animationFrame:"always"===_}),elements:{reference:S.anchor},middleware:[xr({mainAxis:f+L,alignmentAxis:v}),w&&Er({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?Rr():void 0,...K}),w&&Cr({...K}),_r({...K,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&Mr({element:O,padding:h}),Xr({arrowWidth:k,arrowHeight:L}
1),C&&Dr({strategy:"referenceHidden",...K})]}),[X,Y]=Yr(U),q=g(M);y((()=>{z&&(null==q||q())}),[z,q]);const Z=null==(o=G.arrow)?void 0:o.x,J=null==(i=G.arrow)?void 0:i.y,Q=0!==(null==(a=G.arrow)?void 0:a.centerOffset),[ee,te]=e.useState();return y((()=>{j&&te(window.getComputedStyle(j).zIndex)}),[j]),m.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:z?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null==(s=G.transformOrigin)?void 0:s.x,null==(c=G.transformOrigin)?void 0:c.y].join(" "),...(null==(l=G.hide)?void 0:l.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:m.jsx(Br,{scope:u,placedSide:X,onArrowChange:T,arrowX:Z,arrowY:J,shouldHideArrow:Q,children:m.jsx(D.div,{"data-side":X,"data-align":Y,...A,ref:P,style:{...A.style,animation:z?void 0:"none"}})})})}));Hr.displayName=$r;var Vr="PopperArrow",Ur={top:"bottom",right:"left",bottom:"top",left:"right"},zr=e.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,o=Kr(Vr,n),i=Ur[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:m.jsx(Sr,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Gr(e){return null!==e}zr.displayName=Vr;var Xr=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:a,middlewareData:s}=t,c=0!==(null==(n=s.arrow)?void 0:n.centerOffset),l=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[d,f]=Yr(i),p={start:"0%",center:"50%",end:"100%"}[f],m=((null==(r=s.arrow)?void 0:r.x)??0)+l/2,v=((null==(o=s.arrow)?void 0:o.y)??0)+u/2;let h="",g="";return"bottom"===d?(h=c?p:`${m}px`,g=-u+"px"):"top"===d?(h=c?p:`${m}px`,g=`${a.floating.height+u}px`):"right"===d?(h=-u+"px",g=c?p:`${v}px`):"left"===d&&(h=`${a.floating.width+u}px`,g=c?p:`${v}px`),{data:{x:h,y:g}}}});function Yr(e){const[t,n="center"]=e.split("-");return[t,n]}var qr=Lr,Zr=Wr,Jr=Hr,Qr=zr,eo="Collapsible",[to,no]=v(eo),[ro,oo]=to(eo),io=e.forwardRef(((t,n)=>{const{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:a,onOpenChange:s,...c}=t,[l=!1,u]=U({prop:o,defaultProp:i,onChange:s});return m.jsx(ro,{scope:r,disabled:a,contentId:V(),open:l,onOpenToggle:e.useCallback((()=>u((e=>!e))),[u]),children:m.jsx(D.div,{"data-state":fo(l),"data-disabled":a?"":void 0,...c,ref:n})})}));io.displayName=eo;var ao="CollapsibleTrigger",so=e.forwardRef(((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=oo(ao,n);return m.jsx(D.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":fo(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:B(e.onClick,o.onOpenToggle)})}));so.displayName=ao;var co="CollapsibleContent",lo=e.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=oo(co,e.__scopeCollapsible);return m.jsx(me,{present:n||o.open,children:({present:e})=>m.jsx(uo,{...r,ref:t,present:e})})}));lo.displayName=co;var uo=e.forwardRef(((t,n)=>{const{__scopeCollapsible:r,present:o,children:i,...a}=t,s=oo(co,r),[c,l]=e.useState(o),u=e.useRef(null),d=b(n,u),f=e.useRef(0),p=f.current,v=e.useRef(0),h=v.current,g=s.open||c,w=e.useRef(g),x=e.useRef();return e.useEffect((()=>{const e=requestAnimationFrame((()=>w.current=!1));return()=>cancelAnimationFrame(e)}),[]),y((()=>{const e=u.current;if(e){x.current=x.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();f.current=t.height,v.current=t.width,w.current||(e.style.transitionDuration=x.current.transitionDuration,e.style.animationName=x.current.animationName),l(o)}}),[s.open,o]),m.jsx(D.div,{"data-state":fo(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...t.style},children:g&&i})}));function fo(e){return e?"open":"closed"}var po=io,mo=so,vo=lo,ho=e.createContext(void 0);function go(t){const n=e.useContext(ho);return t||n||"ltr"}var yo="Accordion",wo=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[bo,xo,Eo]=en(yo),[Ro,Co]=v(yo,[Eo,no]),_o=no(),Do=o.forwardRef(((e,t)=>{const{type:n,...r}=e,o=r,i=r;return m.jsx(bo.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?m.jsx(Po,{...i,ref:t}):m.jsx(No,{...o,ref:t})})}));Do.displayName=yo;var[Mo,Ao]=Ro(yo),[So,jo]=Ro(yo,{collapsible:!1}),No=o.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:a=!1,...s}=e,[c,l]=U({prop:n,defaultProp:r,onChange:i});return m.jsx(Mo,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:l,onItemClose:o.useCallback((()=>a&&l("")),[a,l]),children:m.jsx(So,{scope:e.__scopeAccordion,collapsible:a,children:m.jsx(Io,{...s,ref:t})})})})),Po=o.forwardRef(((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[s=[],c]=U({prop:n,defaultProp:r,onChange:i}),l=o.useCallback((e=>c(((t=[])=>[...t,e]))),[c]),u=o.useCallback((e=>c(((t=[])=>t.filter((t=>t!==e))))),[c]);return m.jsx(Mo,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:m.jsx(So,{scope:e.__scopeAccordion,collapsible:!0,children:m.jsx(Io,{...a,ref:t})})})})),[Oo,To]=Ro(yo),Io=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:a="vertical",...s}=e,c=b(o.useRef(null),t),l=xo(n),u="ltr"===go(i),d=B(e.onKeyDown,(e=>{var t;
1if(!wo.includes(e.key))return;const n=e.target,r=l().filter((e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)})),o=r.findIndex((e=>e.ref.current===n)),i=r.length;if(-1===o)return;e.preventDefault();let s=o;const c=i-1,d=()=>{s=o+1,s>c&&(s=0)},f=()=>{s=o-1,s<0&&(s=c)};switch(e.key){case"Home":s=0;break;case"End":s=c;break;case"ArrowRight":"horizontal"===a&&(u?d():f());break;case"ArrowDown":"vertical"===a&&d();break;case"ArrowLeft":"horizontal"===a&&(u?f():d());break;case"ArrowUp":"vertical"===a&&f()}null==(t=r[s%i].ref.current)||t.focus()}));return m.jsx(Oo,{scope:n,disabled:r,direction:i,orientation:a,children:m.jsx(bo.Slot,{scope:n,children:m.jsx(D.div,{...s,"data-orientation":a,ref:c,onKeyDown:r?void 0:d})})})})),ko="AccordionItem",[Lo,Fo]=Ro(ko),Wo=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=To(ko,n),a=Ao(ko,n),s=_o(n),c=V(),l=r&&a.value.includes(r)||!1,u=i.disabled||e.disabled;return m.jsx(Lo,{scope:n,open:l,disabled:u,triggerId:c,children:m.jsx(po,{"data-orientation":i.orientation,"data-state":zo(l),...s,...o,ref:t,disabled:u,open:l,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})})}));Wo.displayName=ko;var $o="AccordionHeader",Bo=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,...r}=e,o=To(yo,n),i=Fo($o,n);return m.jsx(D.h3,{"data-orientation":o.orientation,"data-state":zo(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})}));Bo.displayName=$o;var Ko="AccordionTrigger",Ho=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,...r}=e,o=To(yo,n),i=Fo(Ko,n),a=jo(Ko,n),s=_o(n);return m.jsx(bo.ItemSlot,{scope:n,children:m.jsx(mo,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:t})})}));Ho.displayName=Ko;var Vo="AccordionContent",Uo=o.forwardRef(((e,t)=>{const{__scopeAccordion:n,...r}=e,o=To(yo,n),i=Fo(Vo,n),a=_o(n);return m.jsx(vo,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})}));function zo(e){return e?"open":"closed"}Uo.displayName=Vo;var Go=Do,Xo=Wo,Yo=Bo,qo=Ho,Zo=Uo;function Jo(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}var Qo="rovingFocusGroup.onEntryFocus",ei={bubbles:!1,cancelable:!0},ti="RovingFocusGroup",[ni,ri,oi]=en(ti),[ii,ai]=function(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,c=(null==r?void 0:r[t][a])||i,l=e.useMemo((()=>s),Object.values(s));return m.jsx(c.Provider,{value:l,children:o})}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const c=(null==s?void 0:s[t][a])||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},Jo(o,...n)]}(ti,[oi]),[si,ci]=ii(ti),li=e.forwardRef(((e,t)=>m.jsx(ni.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(ni.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(ui,{...e,ref:t})})})));li.displayName=ti;var ui=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,p=e.useRef(null),v=b(n,p),h=go(a),[y=null,w]=U({prop:s,defaultProp:c,onChange:l}),[x,E]=e.useState(!1),R=g(u),C=ri(r),_=e.useRef(!1),[M,A]=e.useState(0);return e.useEffect((()=>{const e=p.current;if(e)return e.addEventListener(Qo,R),()=>e.removeEventListener(Qo,R)}),[R]),m.jsx(si,{scope:r,orientation:o,dir:h,loop:i,currentTabStopId:y,onItemFocus:e.useCallback((e=>w(e)),[w]),onItemShiftTab:e.useCallback((()=>E(!0)),[]),onFocusableItemAdd:e.useCallback((()=>A((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>A((e=>e-1))),[]),children:m.jsx(D.div,{tabIndex:x||0===M?-1:0,"data-orientation":o,...f,ref:v,style:{outline:"none",...t.style},onMouseDown:B(t.onMouseDown,(()=>{_.current=!0})),onFocus:B(t.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(Qo,ei);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=C().filter((e=>
1e.focusable));mi([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),d)}}_.current=!1})),onBlur:B(t.onBlur,(()=>E(!1)))})})})),di="RovingFocusGroupItem",fi=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,...s}=t,c=V(),l=a||c,u=ci(di,r),d=u.currentTabStopId===l,f=ri(r),{onFocusableItemAdd:p,onFocusableItemRemove:v}=u;return e.useEffect((()=>{if(o)return p(),()=>v()}),[o,p,v]),m.jsx(ni.ItemSlot,{scope:r,id:l,focusable:o,active:i,children:m.jsx(D.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:n,onMouseDown:B(t.onMouseDown,(e=>{o?u.onItemFocus(l):e.preventDefault()})),onFocus:B(t.onFocus,(()=>u.onItemFocus(l))),onKeyDown:B(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:pi[r]}(e,u.orientation,u.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>mi(o)))}var n,r}))})})}));fi.displayName=di;var pi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mi(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var vi=li,hi=fi,gi=["Enter"," "],yi=["ArrowUp","PageDown","End"],wi=["ArrowDown","PageUp","Home",...yi],bi={ltr:[...gi,"ArrowRight"],rtl:[...gi,"ArrowLeft"]},xi={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ei="Menu",[Ri,Ci,_i]=en(Ei),[Di,Mi]=v(Ei,[_i,Tr,ai]),Ai=Tr(),Si=ai(),[ji,Ni]=Di(Ei),[Pi,Oi]=Di(Ei),Ti=t=>{const{__scopeMenu:n,open:r=!1,children:o,dir:i,onOpenChange:a,modal:s=!0}=t,c=Ai(n),[l,u]=e.useState(null),d=e.useRef(!1),f=g(a),p=go(i);return e.useEffect((()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),m.jsx(qr,{...c,children:m.jsx(ji,{scope:n,open:r,onOpenChange:f,content:l,onContentChange:u,children:m.jsx(Pi,{scope:n,onClose:e.useCallback((()=>f(!1)),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:o})})})};Ti.displayName=Ei;var Ii=e.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ai(n);return m.jsx(Zr,{...o,...r,ref:t})}));Ii.displayName="MenuAnchor";var ki="MenuPortal",[Li,Fi]=Di(ki,{forceMount:void 0}),Wi=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Ni(ki,t);return m.jsx(Li,{scope:t,forceMount:n,children:m.jsx(me,{present:n||i.open,children:m.jsx(pe,{asChild:!0,container:o,children:r})})})};Wi.displayName=ki;var $i="MenuContent",[Bi,Ki]=Di($i),Hi=e.forwardRef(((e,t)=>{const n=Fi($i,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Ni($i,e.__scopeMenu),a=Oi($i,e.__scopeMenu);return m.jsx(Ri.Provider,{scope:e.__scopeMenu,children:m.jsx(me,{present:r||i.open,children:m.jsx(Ri.Slot,{scope:e.__scopeMenu,children:a.modal?m.jsx(Vi,{...o,ref:t}):m.jsx(Ui,{...o,ref:t})})})})})),Vi=e.forwardRef(((t,n)=>{const r=Ni($i,t.__scopeMenu),o=e.useRef(null),i=b(n,o);return e.useEffect((()=>{const e=o.current;if(e)return ft(e)}),[]),m.jsx(zi,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:B(t.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})})),Ui=e.forwardRef(((e,t)=>{const n=Ni($i,e.__scopeMenu);return m.jsx(zi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})})),zi=e.forwardRef(((t,n)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,disableOutsideScroll:h,...g}=t,y=Ni($i,r),w=Oi($i,r),E=Ai(r),R=Si(r),C=Ci(r),[_,D]=e.useState(null),M=e.useRef(null),A=b(n,M,y.onContentChange),S=e.useRef(0),j=e.useRef(""),N=e.useRef(0),P=e.useRef(null),O=e.useRef("right"),T=e.useRef(0),I=h?it:e.Fragment,k=h?{as:x,allowPinchZoom:!0}:void 0,L=e=>{var t,n;const r=j.current+e,o=C().filter((e=>!e.disabled)),i=document.activeElement,a=null==(t=o.find((e=>e.ref.current===i)))?void 0:t.textValue,s=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,c=Math.max(i,0),s.map(((e,t)=>s[(c+t)%s.length])));var s,c;1===o.length&&(a=a.filter((e=>e!==n)));const l=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return l!==n?l:void 0}(o.map((e=>e.textValue)),r,a),c=null==(n=o.find((e=>e.textValue===s)))?void 0:n.ref.current;!function e(t){j.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout((()=>e("")),1e3))}(r),c&&setTimeout((()=>c.focus()))};e.useEffect((()=>()=>window.clearTimeout(S.current)),[]),ge();const F=e.useCallback((e=>{var t,n;return O.current===(null==(t=P.current)?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const e=t[i].x,s=t[i].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-e)*(r-s)/(l-s)+e&&(o=!o)}return o}(n,t)}(e,null==(n=P.current)?void 0:n.area)}),[]);return m.jsx(Bi,{scope:r,searchRef:j,onItemEnter:e.useCallback((e=>{F(e)&&e.preventDefault()}),[F]),onItemLeave:e.useCallback((e=>{var t;
1F(e)||(null==(t=M.current)||t.focus(),D(null))}),[F]),onTriggerLeave:e.useCallback((e=>{F(e)&&e.preventDefault()}),[F]),pointerGraceTimerRef:N,onPointerGraceIntentChange:e.useCallback((e=>{P.current=e}),[]),children:m.jsx(I,{...k,children:m.jsx(ae,{asChild:!0,trapped:i,onMountAutoFocus:B(a,(e=>{var t;e.preventDefault(),null==(t=M.current)||t.focus({preventScroll:!0})})),onUnmountAutoFocus:s,children:m.jsx(Z,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,children:m.jsx(vi,{asChild:!0,...R,dir:w.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:D,onEntryFocus:B(l,(e=>{w.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:m.jsx(Jr,{role:"menu","aria-orientation":"vertical","data-state":ya(y.open),"data-radix-menu-content":"",dir:w.dir,...E,...g,ref:A,style:{outline:"none",...g.style},onKeyDown:B(g.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&L(e.key));const o=M.current;if(e.target!==o)return;if(!wi.includes(e.key))return;e.preventDefault();const i=C().filter((e=>!e.disabled)).map((e=>e.ref.current));yi.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:B(t.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),j.current="")})),onPointerMove:B(t.onPointerMove,xa((e=>{const t=e.target,n=T.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>T.current?"right":"left";O.current=t,T.current=e.clientX}})))})})})})})})}));Hi.displayName=$i;var Gi=e.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(D.div,{role:"group",...r,ref:t})}));Gi.displayName="MenuGroup";var Xi=e.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(D.div,{...r,ref:t})}));Xi.displayName="MenuLabel";var Yi="MenuItem",qi="menu.itemSelect",Zi=e.forwardRef(((t,n)=>{const{disabled:r=!1,onSelect:o,...i}=t,a=e.useRef(null),s=Oi(Yi,t.__scopeMenu),c=Ki(Yi,t.__scopeMenu),l=b(n,a),u=e.useRef(!1);return m.jsx(Ji,{...i,ref:l,disabled:r,onClick:B(t.onClick,(()=>{const e=a.current;if(!r&&e){const t=new CustomEvent(qi,{bubbles:!0,cancelable:!0});e.addEventListener(qi,(e=>null==o?void 0:o(e)),{once:!0}),M(e,t),t.defaultPrevented?u.current=!1:s.onClose()}})),onPointerDown:e=>{var n;null==(n=t.onPointerDown)||n.call(t,e),u.current=!0},onPointerUp:B(t.onPointerUp,(e=>{var t;u.current||null==(t=e.currentTarget)||t.click()})),onKeyDown:B(t.onKeyDown,(e=>{const t=""!==c.searchRef.current;r||t&&" "===e.key||gi.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));Zi.displayName=Yi;var Ji=e.forwardRef(((t,n)=>{const{__scopeMenu:r,disabled:o=!1,textValue:i,...a}=t,s=Ki(Yi,r),c=Si(r),l=e.useRef(null),u=b(n,l),[d,f]=e.useState(!1),[p,v]=e.useState("");return e.useEffect((()=>{const e=l.current;e&&v((e.textContent??"").trim())}),[a.children]),m.jsx(Ri.ItemSlot,{scope:r,disabled:o,textValue:i??p,children:m.jsx(hi,{asChild:!0,...c,focusable:!o,children:m.jsx(D.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...a,ref:u,onPointerMove:B(t.onPointerMove,xa((e=>{if(o)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:B(t.onPointerLeave,xa((e=>s.onItemLeave(e)))),onFocus:B(t.onFocus,(()=>f(!0))),onBlur:B(t.onBlur,(()=>f(!1)))})})})})),Qi=e.forwardRef(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(sa,{scope:e.__scopeMenu,checked:n,children:m.jsx(Zi,{role:"menuitemcheckbox","aria-checked":wa(n)?"mixed":n,...o,ref:t,"data-state":ba(n),onSelect:B(o.onSelect,(()=>null==r?void 0:r(!!wa(n)||!n)),{checkForDefaultPrevented:!1})})})}));Qi.displayName="MenuCheckboxItem";var ea="MenuRadioGroup",[ta,na]=Di(ea,{value:void 0,onValueChange:()=>{}}),ra=e.forwardRef(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=g(r);return m.jsx(ta,{scope:e.__scopeMenu,value:n,onValueChange:i,children:m.jsx(Gi,{...o,ref:t})})}));ra.displayName=ea;var oa="MenuRadioItem",ia=e.forwardRef(((e,t)=>{const{value:n,...r}=e,o=na(oa,e.__scopeMenu),i=n===o.value;return m.jsx(sa,{scope:e.__scopeMenu,checked:i,children:m.jsx(Zi,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":ba(i),onSelect:B(r.onSelect,(()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})})}));ia.displayName=oa;var aa="MenuItemIndicator",[sa,ca]=Di(aa,{checked:!1}
1),la=e.forwardRef(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=ca(aa,n);return m.jsx(me,{present:r||wa(i.checked)||!0===i.checked,children:m.jsx(D.span,{...o,ref:t,"data-state":ba(i.checked)})})}));la.displayName=aa;var ua=e.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(D.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})}));ua.displayName="MenuSeparator";var da=e.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ai(n);return m.jsx(Qr,{...o,...r,ref:t})}));da.displayName="MenuArrow";var[fa,pa]=Di("MenuSub"),ma="MenuSubTrigger",va=e.forwardRef(((t,n)=>{const r=Ni(ma,t.__scopeMenu),o=Oi(ma,t.__scopeMenu),i=pa(ma,t.__scopeMenu),a=Ki(ma,t.__scopeMenu),s=e.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,u={__scopeMenu:t.__scopeMenu},d=e.useCallback((()=>{s.current&&window.clearTimeout(s.current),s.current=null}),[]);return e.useEffect((()=>d),[d]),e.useEffect((()=>{const e=c.current;return()=>{window.clearTimeout(e),l(null)}}),[c,l]),m.jsx(Ii,{asChild:!0,...u,children:m.jsx(Ji,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":ya(r.open),...t,ref:w(n,i.onTriggerChange),onClick:e=>{var n;null==(n=t.onClick)||n.call(t,e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:B(t.onPointerMove,xa((e=>{a.onItemEnter(e),e.defaultPrevented||t.disabled||r.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout((()=>{r.onOpenChange(!0),d()}),100))}))),onPointerLeave:B(t.onPointerLeave,xa((e=>{var t,n;d();const o=null==(t=r.content)?void 0:t.getBoundingClientRect();if(o){const t=null==(n=r.content)?void 0:n.dataset.side,i="right"===t,s=i?-5:5,l=o[i?"left":"right"],u=o[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout((()=>a.onPointerGraceIntentChange(null)),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}}))),onKeyDown:B(t.onKeyDown,(e=>{var n;const i=""!==a.searchRef.current;t.disabled||i&&" "===e.key||bi[o.dir].includes(e.key)&&(r.onOpenChange(!0),null==(n=r.content)||n.focus(),e.preventDefault())}))})})}));va.displayName=ma;var ha="MenuSubContent",ga=e.forwardRef(((t,n)=>{const r=Fi($i,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,a=Ni($i,t.__scopeMenu),s=Oi($i,t.__scopeMenu),c=pa(ha,t.__scopeMenu),l=e.useRef(null),u=b(n,l);return m.jsx(Ri.Provider,{scope:t.__scopeMenu,children:m.jsx(me,{present:o||a.open,children:m.jsx(Ri.Slot,{scope:t.__scopeMenu,children:m.jsx(zi,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:u,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null==(t=l.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:B(t.onFocusOutside,(e=>{e.target!==c.trigger&&a.onOpenChange(!1)})),onEscapeKeyDown:B(t.onEscapeKeyDown,(e=>{s.onClose(),e.preventDefault()})),onKeyDown:B(t.onKeyDown,(e=>{var t;const n=e.currentTarget.contains(e.target),r=xi[s.dir].includes(e.key);n&&r&&(a.onOpenChange(!1),null==(t=c.trigger)||t.focus(),e.preventDefault())}))})})})})}));function ya(e){return e?"open":"closed"}function wa(e){return"indeterminate"===e}function ba(e){return wa(e)?"indeterminate":e?"checked":"unchecked"}function xa(e){return t=>"mouse"===t.pointerType?e(t):void 0}ga.displayName=ha;var Ea=Ti,Ra=Ii,Ca=Wi,_a=Hi,Da=Gi,Ma=Xi,Aa=Zi,Sa=Qi,ja=ra,Na=ia,Pa=la,Oa=ua,Ta=da,Ia=va,ka=ga,La="DropdownMenu",[Fa,Wa]=v(La,[Mi]),$a=Mi(),[Ba,Ka]=Fa(La),Ha=t=>{const{__scopeDropdownMenu:n,children:r,dir:o,open:i,defaultOpen:a,onOpenChange:s,modal:c=!0}=t,l=$a(n),u=e.useRef(null),[d=!1,f]=U({prop:i,defaultProp:a,onChange:s});return m.jsx(Ba,{scope:n,triggerId:V(),triggerRef:u,contentId:V(),open:d,onOpenChange:f,onOpenToggle:e.useCallback((()=>f((e=>!e))),[f]),modal:c,children:m.jsx(Ea,{...l,open:d,onOpenChange:f,dir:o,modal:c,children:r})})};Ha.displayName=La;var Va="DropdownMenuTrigger",Ua=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Ka(Va,n),a=$a(n);return m.jsx(Ra,{asChild:!0,...a,children:m.jsx(D.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:w(t,i.triggerRef),onPointerDown:B(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:B(e.onKeyDown,(e=>
1{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Ua.displayName=Va;var za=e=>{const{__scopeDropdownMenu:t,...n}=e,r=$a(t);return m.jsx(Ca,{...r,...n})};za.displayName="DropdownMenuPortal";var Ga="DropdownMenuContent",Xa=e.forwardRef(((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=Ka(Ga,r),a=$a(r),s=e.useRef(!1);return m.jsx(_a,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...o,ref:n,onCloseAutoFocus:B(t.onCloseAutoFocus,(e=>{var t;s.current||null==(t=i.triggerRef.current)||t.focus(),s.current=!1,e.preventDefault()})),onInteractOutside:B(t.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(s.current=!0)})),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));Xa.displayName=Ga;e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(Da,{...o,...r,ref:t})})).displayName="DropdownMenuGroup";var Ya=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(Ma,{...o,...r,ref:t})}));Ya.displayName="DropdownMenuLabel";var qa=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(Aa,{...o,...r,ref:t})}));qa.displayName="DropdownMenuItem";var Za=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(Sa,{...o,...r,ref:t})}));Za.displayName="DropdownMenuCheckboxItem";e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(ja,{...o,...r,ref:t})})).displayName="DropdownMenuRadioGroup";var Ja=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(Na,{...o,...r,ref:t})}));Ja.displayName="DropdownMenuRadioItem";var Qa=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(Pa,{...o,...r,ref:t})}));Qa.displayName="DropdownMenuItemIndicator";var es=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(Oa,{...o,...r,ref:t})}));es.displayName="DropdownMenuSeparator";e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(Ta,{...o,...r,ref:t})})).displayName="DropdownMenuArrow";var ts=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(Ia,{...o,...r,ref:t})}));ts.displayName="DropdownMenuSubTrigger";var ns=e.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=$a(n);return m.jsx(ka,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));ns.displayName="DropdownMenuSubContent";var rs=Ha,os=Ua,is=za,as=Xa,ss=Ya,cs=qa,ls=Za,us=Ja,ds=Qa,fs=es,ps=ts,ms=ns,vs="Tabs",[hs,gs]=v(vs,[ai]),ys=ai(),[ws,bs]=hs(vs),xs=e.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:c="automatic",...l}=e,u=go(s),[d,f]=U({prop:r,onChange:o,defaultProp:i});return m.jsx(ws,{scope:n,baseId:V(),value:d,onValueChange:f,orientation:a,dir:u,activationMode:c,children:m.jsx(D.div,{dir:u,"data-orientation":a,...l,ref:t})})}));xs.displayName=vs;var Es="TabsList",Rs=e.forwardRef(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=bs(Es,n),a=ys(n);return m.jsx(vi,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:m.jsx(D.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})}));Rs.displayName=Es;var Cs="TabsTrigger",_s=e.forwardRef(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=bs(Cs,n),s=ys(n),c=As(a.baseId,r),l=Ss(a.baseId,r),u=r===a.value;return m.jsx(hi,{asChild:!0,...s,focusable:!o,active:u,children:m.jsx(D.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...i,ref:t,onMouseDown:B(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:B(e.onKeyDown,(e=>
vendor: 1,453 bytes, lines 1-2
1{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:B(e.onFocus,(()=>{const e="manual"!==a.activationMode;u||o||!e||a.onValueChange(r)}))})})}));_s.displayName=Cs;var Ds="TabsContent",Ms=e.forwardRef(((t,n)=>{const{__scopeTabs:r,value:o,forceMount:i,children:a,...s}=t,c=bs(Ds,r),l=As(c.baseId,o),u=Ss(c.baseId,o),d=o===c.value,f=e.useRef(d);return e.useEffect((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),m.jsx(me,{present:i||d,children:({present:e})=>m.jsx(D.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!e,id:u,tabIndex:0,...s,ref:n,style:{...t.style,animationDuration:f.current?"0s":void 0},children:e&&a})})}));function As(e,t){return`${e}-trigger-${t}`}function Ss(e,t){return`${e}-content-${t}`}Ms.displayName=Ds;var js=xs,Ns=Rs,Ps=_s,Os=Ms;export{ls as $,Zr as A,ne as B,Jr as C,Z as D,Nr as E,$ as F,ft as G,Yo as H,W as I,ge as J,it as K,x as L,ae as M,go as N,Xt as O,D as P,ai as Q,qr as R,R as S,qt as T,vi as U,hi as V,ps as W,ms as X,is as Y,as as Z,cs as _,Tr as a,ds as a0,us as a1,ss as a2,fs as a3,rs as a4,os as a5,vt as a6,Bt as a7,Ns as a8,Ps as a9,Os as aa,js as ab,B as b,v as c,me as d,Qr as e,V as f,U as g,F as h,Yt as i,m as j,Jt as k,Zt as l,Gt as m,Ut as n,zt as o,en as p,g as q,te as r,pe as s,y as t,b as u,M as v,Xo as w,qo as x,Zo as y,Go as z};
2//# sourceMappingURL=ui-CAVZL63w.js.map

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