1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5482],{1371:(e,n,t)=>{t.d(n,{Cp:()=>h,Qo:()=>y,RR:()=>m,YF:()=>d,cv:()=>p,dp:()=>g,uY:()=>v,x7:()=>b});var r=t(8553),o=t(67294),u=t(73935),i="undefined"!==typeof document?o.useLayoutEffect:o.useEffect;function c(e,n){if(e===n)return!0;if(typeof e!==typeof n)return!1;if("function"===typeof e&&e.toString()===n.toString())return!0;let t,r,o;if(e&&n&&"object"===typeof e){if(Array.isArray(e)){if(t=e.length,t!==n.length)return!1;for(r=t;0!==r--;)if(!c(e[r],n[r]))return!1;return!0}if(o=Object.keys(e),t=o.length,t!==Object.keys(n).length)return!1;for(r=t;0!==r--;)if(!{}.hasOwnProperty.call(n,o[r]))return!1;for(r=t;0!==r--;){const t=o[r];if(("_owner"!==t||!e.$$typeof)&&!c(e[t],n[t]))return!1}return!0}return e!==e&&n!==n}function l(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,n){const t=l(e);return Math.round(n*t)/t}function a(e){const n=o.useRef(e);return i((()=>{n.current=e})),n}function d(e){void 0===e&&(e={});const{placement:n="bottom",strategy:t="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:v}={},transform:m=!0,whileElementsMounted:g,open:h}=e,[y,b]=o.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[w,E]=o.useState(d);c(w,d)||E(d);const[x,R]=o.useState(null),[k,I]=o.useState(null),M=o.useCallback((e=>{e!==A.current&&(A.current=e,R(e))}),[]),S=o.useCallback((e=>{e!==P.current&&(P.current=e,I(e))}),[]),C=p||x,O=v||k,A=o.useRef(null),P=o.useRef(null),N=o.useRef(y),D=null!=g,T=a(g),L=a(f),K=o.useCallback((()=>{if(!A.current||!P.current)return;const e={placement:n,strategy:t,middleware:w};L.current&&(e.platform=L.current),(0,r.oo)(A.current,P.current,e).then((e=>{const n={...e,isPositioned:!0};F.current&&!c(N.current,n)&&(N.current=n,u.flushSync((()=>{b(n)})))}))}),[w,n,t,L]);i((()=>{!1===h&&N.current.isPositioned&&(N.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[h]);const F=o.useRef(!1);i((()=>(F.current=!0,()=>{F.current=!1})),[]),i((()=>{if(C&&(A.current=C),O&&(P.current=O),C&&O){if(T.current)return T.current(C,O,K);K()}}),[C,O,K,T,D]);const _=o.useMemo((()=>({reference:A,floating:P,setReference:M,setFloating:S})),[M,S]),q=o.useMemo((()=>({reference:C,floating:O})),[C,O]),W=o.useMemo((()=>{const e={position:t,left:0,top:0};if(!q.floating)return e;const n=s(q.floating,y.x),r=s(q.floating,y.y);return m?{...e,transform:"translate("+n+"px, "+r+"px)",...l(q.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:n,top:r}}),[t,m,q.floating,y.x,y.y]);return o.useMemo((()=>({...y,update:K,refs:_,elements:q,floatingStyles:W})),[y,K,_,q,W])}const f=e=>({name:"arrow",options:e,fn(n){const{element:t,padding:o}="function"===typeof e?e(n):e;return t&&(u=t,{}.hasOwnProperty.call(u,"current"))?null!=t.current?(0,r.x7)({element:t.current,padding:o}).fn(n):{}:t?(0,r.x7)({element:t,padding:o}).fn(n):{};var u}}),p=(e,n)=>({...(0,r.cv)(e),options:[e,n]}),v=(e,n)=>({...(0,r.uY)(e),options:[e,n]}),m=(e,n)=>({...(0,r.RR)(e),options:[e,n]}),g=(e,n)=>({...(0,r.dp)(e),options:[e,n]}),h=(e,n)=>({...(0,r.Cp)(e),options:[e,n]}),y=(e,n)=>({...(0,r.Qo)(e),options:[e,n]}),b=(e,n)=>({...f(e),options:[e,n]})},45482:(e,n,t)=>{t.d(n,{bU:()=>Ee,A8:()=>xe,Y$:()=>Ce,wD:()=>dn,ll:()=>rn,eS:()=>vn,bQ:()=>yn,YF:()=>bn,NI:()=>Rn,c0:()=>On,qs:()=>Pn,Y_:()=>Ln,ox:()=>Kn});var r=t(67294),o=t.t(r,2),u=t(37317);function i(e){let n=e.activeElement;for(;null!=(null==(t=n)||null==(t=t.shadowRoot)?void 0:t.activeElement);){var t;n=n.shadowRoot.activeElement}return n}function c(e,n){if(!e||!n)return!1;const t=null==n.getRootNode?void 0:n.getRootNode();if(e.contains(n))return!0;if(t&&(0,u.Zq)(t)){let t=n;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1}function l(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function s(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:n,version:t}=e;return n+"/"+t})).join(" "):navigator.userAgent}function a(e){return!(0!==e.mozInputSource||!e.isTrusted)||(p()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function d(e){return!s().includes("jsdom/")&&(!p()&&0===e.width&&0===e.height||p()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function f(){return/apple/i.test(navigator.vendor)}function p(){const e=/android/i;return e.test(l())||e.test(s())}function v(e,n){const t=["mouse","pen"];
1return n||t.push("",void 0),t.includes(e)}function m(e){return(null==e?void 0:e.ownerDocument)||document}function g(e,n){if(null==n)return!1;if("composedPath"in e)return e.composedPath().includes(n);const t=e;return null!=t.target&&n.contains(t.target)}function h(e){return"composedPath"in e?e.composedPath()[0]:e.target}const y="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function b(e){return(0,u.Re)(e)&&e.matches(y)}function w(e){e.preventDefault(),e.stopPropagation()}function E(e){return!!e&&("combobox"===e.getAttribute("role")&&b(e))}var x=t(71347),R=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],k=R.join(","),I="undefined"===typeof Element,M=I?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,S=!I&&Element.prototype.getRootNode?function(e){var n;return null===e||void 0===e||null===(n=e.getRootNode)||void 0===n?void 0:n.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},C=function e(n,t){var r;void 0===t&&(t=!0);var o=null===n||void 0===n||null===(r=n.getAttribute)||void 0===r?void 0:r.call(n,"inert");return""===o||"true"===o||t&&n&&e(n.parentNode)},O=function(e,n,t){if(C(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(k));return n&&M.call(e,k)&&r.unshift(e),r=r.filter(t)},A=function e(n,t,r){for(var o=[],u=Array.from(n);u.length;){var i=u.shift();if(!C(i,!1))if("SLOT"===i.tagName){var c=i.assignedElements(),l=e(c.length?c:i.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{M.call(i,k)&&r.filter(i)&&(t||!n.includes(i))&&o.push(i);var s=i.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(i),a=!C(s,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(s&&a){var d=e(!0===s?i.children:s.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else u.unshift.apply(u,i.children)}}return o},P=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},N=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var n,t=null===e||void 0===e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"contenteditable");return""===t||"true"===t}(e))&&!P(e)?0:e.tabIndex},D=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},T=function(e){return"INPUT"===e.tagName},L=function(e){return function(e){return T(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var n,t=e.form||S(e),r=function(e){return t.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)n=r(window.CSS.escape(e.name));else try{n=r(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var o=function(e,n){for(var t=0;t<e.length;t++)if(e[t].checked&&e[t].form===n)return e[t]}(n,e.form);return!o||o===e}(e)},K=function(e){var n=e.getBoundingClientRect(),t=n.width,r=n.height;return 0===t&&0===r},F=function(e,n){var t=n.displayCheck,r=n.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=M.call(e,"details>summary:first-of-type")?e.parentElement:e;if(M.call(o,"details:not([open]) *"))return!0;if(t&&"full"!==t&&"legacy-full"!==t){if("non-zero-area"===t)return K(e)}else{if("function"===typeof r){for(var u=e;e;){var i=e.parentElement,c=S(e);if(i&&!i.shadowRoot&&!0===r(i))return K(e);e=e.assignedSlot?e.assignedSlot:i||c===e.ownerDocument?i:c.host}e=u}if(function(e){var n,t,r,o,u=e&&S(e),i=null===(n=u)||void 0===n?void 0:n.host,c=!1;if(u&&u!==e)for(c=!!(null!==(t=i)&&void 0!==t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(i)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!c&&i;){var l,s,a;c=!(null===(s=i=null===(l=u=S(i))||void 0===l?void 0:l.host)||void 0===s||null===(a=s.ownerDocument)||void 0===a||!a.contains(i))}return c}(e))return!e.getClientRects().length;if("legacy-full"!==t)return!0}return!1},_=function(e,n){return!(n.disabled||C(n)||function(e){return T(e)&&"hidden"===e.type}(n)||F(n,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}
1(n)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if("FIELDSET"===n.tagName&&n.disabled){for(var t=0;t<n.children.length;t++){var r=n.children.item(t);if("LEGEND"===r.tagName)return!!M.call(n,"fieldset[disabled] *")||!r.contains(e)}return!0}n=n.parentElement}return!1}(n))},q=function(e,n){return!(L(n)||N(n)<0||!_(e,n))},W=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},j=function e(n){var t=[],r=[];return n.forEach((function(n,o){var u=!!n.scopeParent,i=u?n.scopeParent:n,c=function(e,n){var t=N(e);return t<0&&n&&!P(e)?0:t}(i,u),l=u?e(n.candidates):i;0===c?u?t.push.apply(t,l):t.push(i):r.push({documentOrder:o,tabIndex:c,item:n,isScope:u,content:l})})),r.sort(D).reduce((function(e,n){return n.isScope?e.push.apply(e,n.content):e.push(n.content),e}),[]).concat(t)},U=function(e,n){var t;return t=(n=n||{}).getShadowRoot?A([e],n.includeContainer,{filter:q.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:W}):O(e,n.includeContainer,q.bind(null,n)),j(t)},z=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return!1!==M.call(e,k)&&q(n,e)},B=t(73935),H=t(1371);const Y={...o},V=Y.useInsertionEffect||(e=>e());function G(e){const n=r.useRef((()=>{0}));return V((()=>{n.current=e})),r.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}const $="ArrowUp",Q="ArrowDown",Z="ArrowLeft",X="ArrowRight";function J(e,n,t){return Math.floor(e/n)!==t}function ee(e,n){return n<0||n>=e.current.length}function ne(e,n){return re(e,{disabledIndices:n})}function te(e,n){return re(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:n})}function re(e,n){let{startingIndex:t=-1,decrement:r=!1,disabledIndices:o,amount:u=1}=void 0===n?{}:n;const i=e.current;let c=t;do{c+=r?-u:u}while(c>=0&&c<=i.length-1&&le(i,c,o));return c}function oe(e,n){let{event:t,orientation:r,loop:o,cols:u,disabledIndices:i,minIndex:c,maxIndex:l,prevIndex:s,stopEvent:a=!1}=n,d=s;if(t.key===$){if(a&&w(t),-1===s)d=l;else if(d=re(e,{startingIndex:d,amount:u,decrement:!0,disabledIndices:i}),o&&(s-u<c||d<0)){const e=s%u,n=l%u,t=l-(n-e);d=n===e?l:n>e?t:t-u}ee(e,d)&&(d=s)}if(t.key===Q&&(a&&w(t),-1===s?d=c:(d=re(e,{startingIndex:s,amount:u,disabledIndices:i}),o&&s+u>l&&(d=re(e,{startingIndex:s%u-u,amount:u,disabledIndices:i}))),ee(e,d)&&(d=s)),"both"===r){const n=(0,x.GW)(s/u);t.key===X&&(a&&w(t),s%u!==u-1?(d=re(e,{startingIndex:s,disabledIndices:i}),o&&J(d,u,n)&&(d=re(e,{startingIndex:s-s%u-1,disabledIndices:i}))):o&&(d=re(e,{startingIndex:s-s%u-1,disabledIndices:i})),J(d,u,n)&&(d=s)),t.key===Z&&(a&&w(t),s%u!==0?(d=re(e,{startingIndex:s,decrement:!0,disabledIndices:i}),o&&J(d,u,n)&&(d=re(e,{startingIndex:s+(u-s%u),decrement:!0,disabledIndices:i}))):o&&(d=re(e,{startingIndex:s+(u-s%u),decrement:!0,disabledIndices:i})),J(d,u,n)&&(d=s));const r=(0,x.GW)(l/u)===n;ee(e,d)&&(d=o&&r?t.key===Z?l:re(e,{startingIndex:s-s%u-1,disabledIndices:i}):s)}return d}function ue(e,n,t){const r=[];let o=0;return e.forEach(((e,u)=>{let{width:i,height:c}=e,l=!1;for(t&&(o=0);!l;){const e=[];for(let t=0;t<i;t++)for(let r=0;r<c;r++)e.push(o+t+r*n);o%n+i<=n&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=u})),l=!0):o++}})),[...r]}function ie(e,n,t,r,o){if(-1===e)return-1;const u=t.indexOf(e),i=n[e];switch(o){case"tl":return u;case"tr":return i?u+i.width-1:u;case"bl":return i?u+(i.height-1)*r:u;case"br":return t.lastIndexOf(e)}}function ce(e,n){return n.flatMap(((n,t)=>e.includes(n)?[t]:[]))}function le(e,n,t){if(t)return t.includes(n);const r=e[n];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let se=0;function ae(e,n){void 0===n&&(n={});const{preventScroll:t=!1,cancelPrevious:r=!0,sync:o=!1}=n;r&&cancelAnimationFrame(se);const u=()=>null==e?void 0:e.focus({preventScroll:t});o?u():se=requestAnimationFrame(u)}var de="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function fe(e,n){const t=e.compareDocumentPosition(n);return t&Node.DOCUMENT_POSITION_FOLLOWING||t&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:t&Node.DOCUMENT_POSITION_PRECEDING||t&Node.DOCUMENT_POSITION_CONTAINS?1:0}const pe=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function ve(e){const{children:n,elementsRef:t,labelsRef:o}=e,[u,i]=r.useState((()=>new Map)),c=r.useCallback((e=>{i((n=>new Map(n).set(e,null)))}),[]),l=r.useCallback((e=>{i((n=>{const t=new Map(n);return t.delete(e),t}))}),[]);return de((()=>{const e=new Map(u);Array.from(e.keys()).sort(fe).forEach(((n,t)=>{e.set(n,t)})),function(e,n){if(e.size!==n.size)return!1;for(const[t,r]of e.entries())if(r!==n.get(t))return!1;return!0}(u,e)||i(e)}),[u]),r.createElement(pe.Provider,{value:r.useMemo((()=>({register:c,unregister:l,map:u,elementsRef:t,labelsRef:o})),[c,l,u,t,o])},n)}function me(e){void 0===e&&(e={});const{label:n}=e,{register:t,unregister:o,map:u,elementsRef:i,labelsRef:c}=r.useContext(pe),[l,s]=r.useState(null),a=r.useRef(null),d=r.useCallback((e=>{if(a.current=e,null!==l&&(i.current[l]=e,c)){var t;const r=void 0!==n;c.current[l]=r?n:null!=(t=null==e?void 0:e.textContent)?t:null}}),[l,i,c,n]);return de((()=>{const e=a.current;if(e)return t(e),()=>{o(e)}}),[t,o]),de((()=>{const e=a.current?u.get(a.current):null;null!=e&&s(e)}),[u]),r.useMemo((()=>({ref:d,index:null==l?-1:l})),[l,d])}function ge(e,n){return"function"===typeof e?e(n):e?r.cloneElement(e,n):r.createElement("div",n)}const he=r.createContext({activeIndex:0,onNavigate:()=>{}}),ye=[Z,X],be=[$,Q],we=[...ye,...be],Ee=r.forwardRef((function(e,n){const{render:t,orientation:o="both",loop:u=!0,cols:i=1,disabledIndices:c,activeIndex:l,onNavigate:s,itemSizes:a,dense:d=!1,...f}=e,[p,v]=r.useState(0),m=null!=l?l:p,g=G(null!=s?s:v),h=r.useRef([]),y=t&&"function"!==typeof t?t.props:{},b=r.useMemo((()=>({activeIndex:m,onNavigate:g})),[m,g]),w=i>1;const E={...f,...y,ref:n,"aria-orientation":"both"===o?void 0:o,onKeyDown(e){null==f.onKeyDown||f.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!we.includes(e.ke
1y))return;let n=m;const t=ne(h,c),r=te(h,c);if(w){const l=a||Array.from({length:h.current.length},(()=>({width:1,height:1}))),s=ue(l,i,d),f=s.findIndex((e=>null!=e&&!le(h.current,e,c))),p=s.reduce(((e,n,t)=>null==n||le(h.current,n,c)?e:t),-1);n=s[oe({current:s.map((e=>e?h.current[e]:null))},{event:e,orientation:o,loop:u,cols:i,disabledIndices:ce([...c||h.current.map(((e,n)=>le(h.current,n)?n:void 0)),void 0],s),minIndex:f,maxIndex:p,prevIndex:ie(m>r?t:m,l,s,i,e.key===Q?"bl":e.key===X?"tr":"tl")})]}const l={horizontal:[X],vertical:[Q],both:[X,Q]}[o],s={horizontal:[Z],vertical:[$],both:[Z,$]}[o],f=w?we:{horizontal:ye,vertical:be,both:we}[o];n===m&&[...l,...s].includes(e.key)&&(n=u&&n===r&&l.includes(e.key)?t:u&&n===t&&s.includes(e.key)?r:re(h,{startingIndex:n,decrement:s.includes(e.key),disabledIndices:c})),n===m||ee(h,n)||(e.stopPropagation(),f.includes(e.key)&&e.preventDefault(),g(n),queueMicrotask((()=>{ae(h.current[n])})))}(e)}};return r.createElement(he.Provider,{value:b},r.createElement(ve,{elementsRef:h},ge(t,E)))})),xe=r.forwardRef((function(e,n){const{render:t,...o}=e,u=t&&"function"!==typeof t?t.props:{},{activeIndex:i,onNavigate:c}=r.useContext(he),{ref:l,index:s}=me(),a=(d=[l,n,u.ref],r.useMemo((()=>d.every((e=>null==e))?null:e=>{d.forEach((n=>{"function"===typeof n?n(e):null!=n&&(n.current=e)}))}),d));var d;const f=i===s;return ge(t,{...o,...u,ref:a,tabIndex:f?0:-1,"data-active":f?"":void 0,onFocus(e){null==o.onFocus||o.onFocus(e),null==u.onFocus||u.onFocus(e),c(s)}})}));function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Re.apply(this,arguments)}let ke=!1,Ie=0;const Me=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ie++;const Se=Y.useId||function(){const[e,n]=r.useState((()=>ke?Me():void 0));return de((()=>{null==e&&n(Me())}),[]),r.useEffect((()=>{ke=!0}),[]),e};const Ce=r.forwardRef((function(e,n){const{context:{placement:t,elements:{floating:o},middlewareData:{arrow:i}},width:c=14,height:l=7,tipRadius:s=0,strokeWidth:a=0,staticOffset:d,stroke:f,d:p,style:{transform:v,...m}={},...g}=e;const h=Se(),[y,b]=r.useState(!1);if(de((()=>{if(!o)return;"rtl"===(0,u.Dx)(o).direction&&b(!0)}),[o]),!o)return null;const w=2*a,E=w/2,x=c/2*(s/-8+1),R=l/2*s/4,[k,I]=t.split("-"),M=!!p,S="top"===k||"bottom"===k,C=d&&"end"===I?"bottom":"top";let O=d&&"end"===I?"right":"left";d&&y&&(O="end"===I?"left":"right");const A=null!=(null==i?void 0:i.x)?d||i.x:"",P=null!=(null==i?void 0:i.y)?d||i.y:"",N=p||"M0,0 H"+c+" L"+(c-x)+","+(l-R)+" Q"+c/2+","+l+" "+x+","+(l-R)+" Z",D={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[k];return r.createElement("svg",Re({},g,{"aria-hidden":!0,ref:n,width:M?c:c+w,height:c,viewBox:"0 0 "+c+" "+(l>c?l:c),style:{position:"absolute",pointerEvents:"none",[O]:A,[C]:P,[k]:S||M?"100%":"calc(100% - "+w/2+"px)",transform:""+D+(null!=v?v:""),...m}}),w>0&&r.createElement("path",{clipPath:"url(#"+h+")",fill:"none",stroke:f,strokeWidth:w+(p?0:1),d:N}),r.createElement("path",{stroke:w&&!p?g.fill:"none",d:N}),r.createElement("clipPath",{id:h},r.createElement("rect",{x:-E,y:E*(M?-1:1),width:c+w,height:c})))}));function Oe(){const e=new Map;return{emit(n,t){var r;null==(r=e.get(n))||r.forEach((e=>e(t)))},on(n,t){e.set(n,[...e.get(n)||[],t])},off(n,t){var r;e.set(n,(null==(r=e.get(n))?void 0:r.filter((e=>e!==t)))||[])}}}const Ae=r.createContext(null),Pe=r.createContext(null),Ne=()=>{var e;return(null==(e=r.useContext(Ae))?void 0:e.id)||null},De=()=>r.useContext(Pe);function Te(e){return"data-floating-ui-"+e}function Le(e){const n=(0,r.useRef)(e);return de((()=>{n.current=e})),n}function Ke(e,n){let t=e.filter((e=>{var t;return e.parentId===n&&(null==(t=e.context)?void 0:t.open)})),r=t;for(;r.length;)r=e.filter((e=>{var n;return null==(n=r)?void 0:n.some((n=>{var t;return e.parentId===n.id&&(null==(t=e.context)?void 0:t.open)}))})),t=t.concat(r);return t}let Fe=new WeakMap,_e=new WeakSet,qe={},We=0;const je=()=>"undefined"!==typeof HTMLElement&&"inert"in HTMLElement.prototype,Ue=e=>e&&(e.host||Ue(e.parentNode)),ze=(e,n)=>n.map((n=>{if(e.contains(n))return n;const t=Ue(n);return e.contains(t)?t:null})).filter((e=>null!=e));function Be(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=!1);const r=m(e[0]).body;return function(e,n,t,r){const o="data-floating-ui-inert",i=r?"inert":t?"aria-hidden":null,c=ze(n,e),l=new Set,s=new Set(c),a=[];qe[o]||(qe[o]=new WeakMap);const d=qe[o];
1return c.forEach((function e(n){n&&!l.has(n)&&(l.add(n),n.parentNode&&e(n.parentNode))})),function e(n){n&&!s.has(n)&&[].forEach.call(n.children,(n=>{if("script"!==(0,u.wk)(n))if(l.has(n))e(n);else{const e=i?n.getAttribute(i):null,t=null!==e&&"false"!==e,r=(Fe.get(n)||0)+1,u=(d.get(n)||0)+1;Fe.set(n,r),d.set(n,u),a.push(n),1===r&&t&&_e.add(n),1===u&&n.setAttribute(o,""),!t&&i&&n.setAttribute(i,"true")}}))}(n),l.clear(),We++,()=>{a.forEach((e=>{const n=(Fe.get(e)||0)-1,t=(d.get(e)||0)-1;Fe.set(e,n),d.set(e,t),n||(!_e.has(e)&&i&&e.removeAttribute(i),_e.delete(e)),t||e.removeAttribute(o)})),We--,We||(Fe=new WeakMap,Fe=new WeakMap,_e=new WeakSet,qe={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,n,t)}const He=()=>({getShadowRoot:!0,displayCheck:"function"===typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ye(e,n){const t=U(e,He());"prev"===n&&t.reverse();const r=t.indexOf(i(m(e)));return t.slice(r+1)[0]}function Ve(){return Ye(document.body,"next")}function Ge(){return Ye(document.body,"prev")}function $e(e,n){const t=n||e.currentTarget,r=e.relatedTarget;return!r||!c(t,r)}function Qe(e){U(e,He()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Ze(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const n=e.dataset.tabindex;delete e.dataset.tabindex,n?e.setAttribute("tabindex",n):e.removeAttribute("tabindex")}))}const Xe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Je(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const en=r.forwardRef((function(e,n){const[t,o]=r.useState();de((()=>{let t;return f()&&o("button"),document.addEventListener("keydown",Je),n&&"current"in n&&n.current&&(t=n.current,t.addEventListener("focusin",e.onFocus)),()=>{document.removeEventListener("keydown",Je),t&&t.removeEventListener("focusin",e.onFocus)}}),[]);const u={ref:n,tabIndex:0,role:t,"aria-hidden":!t||void 0,[Te("focus-guard")]:"",style:Xe,onFocus:null};return r.createElement("span",Re({},e,u))})),nn=r.createContext(null),tn=Te("portal");function rn(e){const{children:n,id:t,root:o=null,preserveTabOrder:i=!0}=e,c=function(e){void 0===e&&(e={});const{id:n,root:t}=e,o=Se(),i=on(),[c,l]=r.useState(null),s=r.useRef(null);return de((()=>()=>{null==c||c.remove(),queueMicrotask((()=>{s.current=null}))}),[c]),de((()=>{if(!o)return;if(s.current)return;const e=n?document.getElementById(n):null;if(!e)return;const t=document.createElement("div");t.id=o,t.setAttribute(tn,""),e.appendChild(t),s.current=t,l(t)}),[n,o]),de((()=>{if(!o)return;if(s.current)return;let e=t||(null==i?void 0:i.portalNode);e&&!(0,u.kK)(e)&&(e=e.current),e=e||document.body;let r=null;n&&(r=document.createElement("div"),r.id=n,e.appendChild(r));const c=document.createElement("div");c.id=o,c.setAttribute(tn,""),e=r||e,e.appendChild(c),s.current=c,l(c)}),[n,t,o,i]),c}({id:t,root:o}),[l,s]=r.useState(null),a=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),v=!!l&&!l.modal&&l.open&&i&&!(!o&&!c);return r.useEffect((()=>{if(c&&i&&(null==l||!l.modal))return c.addEventListener("focusin",e,!0),c.addEventListener("focusout",e,!0),()=>{c.removeEventListener("focusin",e,!0),c.removeEventListener("focusout",e,!0)};function e(e){if(c&&$e(e)){("focusin"===e.type?Ze:Qe)(c)}}}),[c,i,null==l?void 0:l.modal]),r.createElement(nn.Provider,{value:r.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:a,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:c,setFocusManagerState:s})),[i,c])},v&&c&&r.createElement(en,{"data-type":"outside",ref:a,onFocus:e=>{if($e(e,c)){var n;null==(n=f.current)||n.focus()}else{const e=Ge()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),v&&c&&r.createElement("span",{"aria-owns":c.id,style:Xe}),c&&B.createPortal(n,c),v&&c&&r.createElement(en,{"data-type":"outside",ref:d,onFocus:e=>{if($e(e,c)){var n;null==(n=p.current)||n.focus()}else{const n=Ve()||(null==l?void 0:l.refs.domReference.current);null==n||n.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent))}}}))}const on=()=>r.useContext(nn),un=20;let cn=[];function ln(e){cn=cn.filter((e=>e.isConnected));let n=e;if(n&&"body"!==(0,u.wk)(n)){if(!z(n,He())){const e=U(n,He())[0];e&&(n=e)}cn.push(n),cn.length>un&&(cn=cn.slice(-un))}}function sn(){return cn.slice().reverse().find((e=>e.isConnected))}const an=r.forwardRef((function(e,n){return r.createElement("button",Re({},e,{type:"button",ref:n,tabIndex:-1,style:Xe}))}));function dn(e){const{context:n,children:t,disabled:o=!1,order:l=["content"],guards:s=!0,initialFocus:f=0,returnFocus:p=!0,restoreFocus:v=!1,modal:g=!0,visuallyHiddenDismiss:y=!1,closeOnFocusOut:b=!0}=e,{open:x,refs:R,nodeId:k,onOpenChange:I,events:M,dataRef:S,floatingId:C,elements:{domReference:O,floating:A}}=n,P="number"===typeof f&&f<0,N=E(O)&&P,D=!je()||s,T=Le(l),L=Le(f),K=Le(p),F=De(),_=on(),q=r.useRef(null),W=r.useRef(null),j=r.useRef(!1),z=r.useRef(!1),B=r.useRef(-1),H=null!=_,Y=null==A?void 0:A.firstElementChild,V=(null==Y?void 0:Y.id)===C?Y:A,$=G((function(e){return void 0===e&&(e=V),e?U(e,He()):[]})),Q=G((e=>{const n=$(e);return T.current.map((e=>
1O&&"reference"===e?O:V&&"floating"===e?V:n)).filter(Boolean).flat()}));function Z(e){return!o&&y&&g?r.createElement(an,{ref:"start"===e?q:W,onClick:e=>I(!1,e.nativeEvent)},"string"===typeof y?y:"Dismiss"):null}r.useEffect((()=>{if(o)return;if(!g)return;function e(e){if("Tab"===e.key){c(V,i(m(V)))&&0===$().length&&!N&&w(e);const n=Q(),t=h(e);"reference"===T.current[0]&&t===O&&(w(e),e.shiftKey?ae(n[n.length-1]):ae(n[1])),"floating"===T.current[1]&&t===V&&e.shiftKey&&(w(e),ae(n[0]))}}const n=m(V);return n.addEventListener("keydown",e),()=>{n.removeEventListener("keydown",e)}}),[o,O,V,g,T,N,$,Q]),r.useEffect((()=>{if(!o&&A)return A.addEventListener("focusin",e),()=>{A.removeEventListener("focusin",e)};function e(e){const n=h(e),t=$().indexOf(n);-1!==t&&(B.current=t)}}),[o,A,$]),r.useEffect((()=>{if(!o&&b)return A&&(0,u.Re)(O)?(O.addEventListener("focusout",n),O.addEventListener("pointerdown",e),A.addEventListener("focusout",n),()=>{O.removeEventListener("focusout",n),O.removeEventListener("pointerdown",e),A.removeEventListener("focusout",n)}):void 0;function e(){z.current=!0,setTimeout((()=>{z.current=!1}))}function n(e){const n=e.relatedTarget;queueMicrotask((()=>{const t=!(c(O,n)||c(A,n)||c(n,A)||c(null==_?void 0:_.portalNode,n)||null!=n&&n.hasAttribute(Te("focus-guard"))||F&&(Ke(F.nodesRef.current,k).find((e=>{var t,r;return c(null==(t=e.context)?void 0:t.elements.floating,n)||c(null==(r=e.context)?void 0:r.elements.domReference,n)}))||function(e,n){var t;let r=[],o=null==(t=e.find((e=>e.id===n)))?void 0:t.parentId;for(;o;){const n=e.find((e=>e.id===o));o=null==n?void 0:n.parentId,n&&(r=r.concat(n))}return r}(F.nodesRef.current,k).find((e=>{var t,r;return(null==(t=e.context)?void 0:t.elements.floating)===n||(null==(r=e.context)?void 0:r.elements.domReference)===n}))));if(v&&t&&i(m(V))===m(V).body){(0,u.Re)(V)&&(null==V||V.focus());const e=B.current,n=$(),t=n[e]||n[n.length-1]||V;(0,u.Re)(t)&&t.focus()}!N&&g||!n||!t||z.current||n===sn()||(j.current=!0,I(!1,e))}))}}),[o,O,A,V,g,k,F,_,I,b,v,$,N]),r.useEffect((()=>{var e;if(o)return;const n=Array.from((null==_||null==(e=_.portalNode)?void 0:e.querySelectorAll("["+Te("portal")+"]"))||[]);if(A){const e=[A,...n,q.current,W.current,T.current.includes("reference")||N?O:null].filter((e=>null!=e)),t=g||N?Be(e,D,!D):Be(e);return()=>{t()}}}),[o,O,A,g,T,_,N,D]),de((()=>{if(o||!(0,u.Re)(V))return;const e=i(m(V));queueMicrotask((()=>{const n=Q(V),t=L.current,r=("number"===typeof t?n[t]:t.current)||V,o=c(V,e);P||o||!x||ae(r,{preventScroll:r===V})}))}),[o,x,V,P,Q,L]),de((()=>{if(o||!V)return;let e=!1;const n=m(V),t=i(n);let r=S.current.openEvent;const l=R.domReference.current;function s(n){let{open:t,reason:o,event:u,nested:i}=n;t&&(r=u),"escape-key"===o&&R.domReference.current&&ln(R.domReference.current),"hover"===o&&"mouseleave"===u.type&&(j.current=!0),"outside-press"===o&&(i?(j.current=!1,e=!0):j.current=!(a(u)||d(u)))}return ln(t),M.on("openchange",s),()=>{M.off("openchange",s);const o=i(n),a=c(A,o)||F&&Ke(F.nodesRef.current,k).some((e=>{var n;return c(null==(n=e.context)?void 0:n.elements.floating,o)}));(a||r&&["click","mousedown"].includes(r.type))&&R.domReference.current&&ln(R.domReference.current);const d=l||t,f=U(m(d).body,He());queueMicrotask((()=>{let t=sn();!t&&(0,u.Re)(d)&&A&&(t=function(e,n,t){const r=e.indexOf(n);function o(n){const o=Te("focus-guard");let u=r+(n?1:0),i=e[u];for(;i&&(!i.isConnected||i.hasAttribute(o)||c(t,i));)n?u++:u--,i=e[u];return i}return o(!0)||o(!1)}(f,d,A)),K.current&&!j.current&&(0,u.Re)(t)&&(t===o||o===n.body||a)&&t.focus({preventScroll:e})}))}}),[o,A,V,K,S,R,M,F,k]),de((()=>{if(!o&&_)return _.setFocusManagerState({modal:g,closeOnFocusOut:b,open:x,onOpenChange:I,refs:R}),()=>{_.setFocusManagerState(null)}}),[o,_,g,x,I,R,b]),de((()=>{if(o)return;if(!V)return;if("function"!==typeof MutationObserver)return;if(P)return;const e=()=>{const e=V.getAttribute("tabindex"),n=$(),t=i(m(A)),r=n.indexOf(t);-1!==r&&(B.current=r),T.current.includes("floating")||t!==R.domReference.current&&0===n.length?"0"!==e&&V.setAttribute("tabindex","0"):"-1"!==e&&V.setAttribute("tabindex","-1")};e();const n=new MutationObserver(e);return n.observe(V,{childList:!0,subtree:!0,attributes:!0}),()=>{n.disconnect()}}),[o,A,V,R,T,$,P]);const X=!o&&D&&(!g||!N)&&(H||g);return r.createElement(r.Fragment,null,X&&r.createElement(en,{"data-type":"inside",ref:null==_?void 0:_.beforeInsideRef,onFocus:e=>{if(g){const e=Q();ae("reference"===l[0]?e[0]:e[e.length-1])}else if(null!=_&&_.preserveTabOrder&&_.portalNode)if(j.current=!1,$e(e,_.portalNode)){const e=Ve()||O;null==e||e.focus()}else{var n;null==(n=_.beforeOutsideRef.current)||n.focus()}}}),!N&&Z("start"),t,Z("end"),X&&r.createElement(en,{"data-type":"inside",ref:null==_?void 0:_.afterInsideRef,onFocus:e=>{if(g)ae(Q()[0]);else if(null!=_&&_.preserveTabOrder&&_.portalNode)if(b&&(j.current=!0),$e(e,_.portalNode)){const e=Ge()||O;null==e||e.focus()}else{var n;null==(n=_.afterOutsideRef.current)||n.focus()}}}))}function fn(e){return(0,u.Re)(e.target)&&"BUTTON"===e.target.tagName}function pn(e){return b(e)}function vn(e,n){void 0===n&&(n={});const{open:t,onOpenChange:o,dataRef:u,elements:{domReference:i}}
1=e,{enabled:c=!0,event:l="click",toggle:s=!0,ignoreMouse:a=!1,keyboardHandlers:d=!0}=n,f=r.useRef(),p=r.useRef(!1),m=r.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const n=f.current;0===e.button&&"click"!==l&&(v(n,!0)&&a||(!t||!s||u.current.openEvent&&"mousedown"!==u.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){const n=f.current;"mousedown"===l&&f.current?f.current=void 0:v(n,!0)&&a||(!t||!s||u.current.openEvent&&"click"!==u.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||fn(e)||(" "!==e.key||pn(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&o(!t||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||fn(e)||pn(i)||" "===e.key&&p.current&&(p.current=!1,o(!t||!s,e.nativeEvent,"click"))}})),[u,i,l,a,d,o,t,s]);return r.useMemo((()=>c?{reference:m}:{}),[c,m])}const mn={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},gn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},hn=e=>{var n,t;return{escapeKey:"boolean"===typeof e?e:null!=(n=null==e?void 0:e.escapeKey)&&n,outsidePress:"boolean"===typeof e?e:null==(t=null==e?void 0:e.outsidePress)||t}};function yn(e,n){void 0===n&&(n={});const{open:t,onOpenChange:o,elements:i,dataRef:l}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:v="pointerdown",ancestorScroll:y=!1,bubbles:b,capture:w}=n,E=De(),x=G("function"===typeof d?d:()=>!1),R="function"===typeof d?x:d,k=r.useRef(!1),I=r.useRef(!1),{escapeKey:M,outsidePress:S}=hn(b),{escapeKey:C,outsidePress:O}=hn(w),A=G((e=>{var n;if(!t||!s||!a||"Escape"!==e.key)return;const r=null==(n=l.current.floatingContext)?void 0:n.nodeId,u=E?Ke(E.nodesRef.current,r):[];if(!M&&(e.stopPropagation(),u.length>0)){let e=!0;if(u.forEach((n=>{var t;null==(t=n.context)||!t.open||n.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),P=G((e=>{var n;const t=()=>{var n;A(e),null==(n=h(e))||n.removeEventListener("keydown",t)};null==(n=h(e))||n.addEventListener("keydown",t)})),N=G((e=>{var n;const t=k.current;k.current=!1;const r=I.current;if(I.current=!1,"click"===f&&r)return;if(t)return;if("function"===typeof R&&!R(e))return;const s=h(e),a="["+Te("inert")+"]",d=m(i.floating).querySelectorAll(a);let p=(0,u.kK)(s)?s:null;for(;p&&!(0,u.Py)(p);){const e=(0,u.Ow)(p);if((0,u.Py)(e)||!(0,u.kK)(e))break;p=e}if(d.length&&(0,u.kK)(s)&&!s.matches("html,body")&&!c(s,i.floating)&&Array.from(d).every((e=>!c(p,e))))return;if((0,u.Re)(s)&&L){const n=s.clientWidth>0&&s.scrollWidth>s.clientWidth,t=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=t&&e.offsetX>s.clientWidth;if(t){"rtl"===(0,u.Dx)(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth)}if(r||n&&e.offsetY>s.clientHeight)return}const v=null==(n=l.current.floatingContext)?void 0:n.nodeId,y=E&&Ke(E.nodesRef.current,v).some((n=>{var t;return g(e,null==(t=n.context)?void 0:t.elements.floating)}));if(g(e,i.floating)||g(e,i.domReference)||y)return;const b=E?Ke(E.nodesRef.current,v):[];if(b.length>0){let e=!0;if(b.forEach((n=>{var t;null==(t=n.context)||!t.open||n.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),D=G((e=>{var n;const t=()=>{var n;N(e),null==(n=h(e))||n.removeEventListener(f,t)};null==(n=h(e))||n.addEventListener(f,t)}));r.useEffect((()=>{if(!t||!s)return;function e(e){o(!1,e,"ancestor-scroll")}l.current.__escapeKeyBubbles=M,l.current.__outsidePressBubbles=S;const n=m(i.floating);a&&n.addEventListener("keydown",C?P:A,C),R&&n.addEventListener(f,O?D:N,O);let r=[];return y&&((0,u.kK)(i.domReference)&&(r=(0,u.Kx)(i.domReference)),(0,u.kK)(i.floating)&&(r=r.concat((0,u.Kx)(i.floating))),!(0,u.kK)(i.reference)&&i.reference&&i.reference.contextElement&&(r=r.concat((0,u.Kx)(i.reference.contextElement)))),r=r.filter((e=>{var t;
1return e!==(null==(t=n.defaultView)?void 0:t.visualViewport)})),r.forEach((n=>{n.addEventListener("scroll",e,{passive:!0})})),()=>{a&&n.removeEventListener("keydown",C?P:A,C),R&&n.removeEventListener(f,O?D:N,O),r.forEach((n=>{n.removeEventListener("scroll",e)}))}}),[l,i,a,R,f,t,o,y,s,M,S,A,C,P,N,O,D]),r.useEffect((()=>{k.current=!1}),[R,f]);const T=r.useMemo((()=>({onKeyDown:A,[mn[v]]:e=>{p&&o(!1,e.nativeEvent,"reference-press")}})),[A,o,p,v]),L=r.useMemo((()=>({onKeyDown:A,onMouseDown(){I.current=!0},onMouseUp(){I.current=!0},[gn[f]]:()=>{k.current=!0}})),[A,f]);return r.useMemo((()=>s?{reference:T,floating:L}:{}),[s,T,L])}function bn(e){void 0===e&&(e={});const{nodeId:n}=e,t=function(e){const{open:n=!1,onOpenChange:t,elements:o}=e,u=Se(),i=r.useRef({}),[c]=r.useState((()=>Oe())),l=null!=Ne(),[s,a]=r.useState(o.reference),d=G(((e,n,r)=>{i.current.openEvent=e?n:void 0,c.emit("openchange",{open:e,event:n,reason:r,nested:l}),null==t||t(e,n,r)})),f=r.useMemo((()=>({setPositionReference:a})),[]),p=r.useMemo((()=>({reference:s||o.reference||null,floating:o.floating||null,domReference:o.reference})),[s,o.reference,o.floating]);return r.useMemo((()=>({dataRef:i,open:n,onOpenChange:d,elements:p,events:c,floatingId:u,refs:f})),[n,d,p,c,u,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||t,i=o.elements,[c,l]=r.useState(null),[s,a]=r.useState(null),d=(null==i?void 0:i.reference)||c,f=r.useRef(null),p=De();de((()=>{d&&(f.current=d)}),[d]);const v=(0,H.YF)({...e,elements:{...i,...s&&{reference:s}}}),m=r.useCallback((e=>{const n=(0,u.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;a(n),v.refs.setReference(n)}),[v.refs]),g=r.useCallback((e=>{((0,u.kK)(e)||null===e)&&(f.current=e,l(e)),((0,u.kK)(v.refs.reference.current)||null===v.refs.reference.current||null!==e&&!(0,u.kK)(e))&&v.refs.setReference(e)}),[v.refs]),h=r.useMemo((()=>({...v.refs,setReference:g,setPositionReference:m,domReference:f})),[v.refs,g,m]),y=r.useMemo((()=>({...v.elements,domReference:d})),[v.elements,d]),b=r.useMemo((()=>({...v,...o,refs:h,elements:y,nodeId:n})),[v,h,y,n,o]);return de((()=>{o.dataRef.current.floatingContext=b;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===n));e&&(e.context=b)})),r.useMemo((()=>({...v,context:b,refs:h,elements:y})),[v,h,y,b])}const wn="active",En="selected";function xn(e,n,t){const r=new Map,o="item"===t;let u=e;if(o&&e){const{[wn]:n,[En]:t,...r}=e;u=r}return{..."floating"===t&&{tabIndex:-1},...u,...n.map((n=>{const r=n?n[t]:null;return"function"===typeof r?e?r(e):null:r})).concat(e).reduce(((e,n)=>n?(Object.entries(n).forEach((n=>{let[t,u]=n;var i;o&&[wn,En].includes(t)||(0===t.indexOf("on")?(r.has(t)||r.set(t,[]),"function"===typeof u&&(null==(i=r.get(t))||i.push(u),e[t]=function(){for(var e,n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return null==(e=r.get(t))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[t]=u)})),e):e),{})}}function Rn(e){void 0===e&&(e=[]);const n=e.map((e=>null==e?void 0:e.reference)),t=e.map((e=>null==e?void 0:e.floating)),o=e.map((e=>null==e?void 0:e.item)),u=r.useCallback((n=>xn(n,e,"reference")),n),i=r.useCallback((n=>xn(n,e,"floating")),t),c=r.useCallback((n=>xn(n,e,"item")),o);return r.useMemo((()=>({getReferenceProps:u,getFloatingProps:i,getItemProps:c})),[u,i,c])}let kn=!1;function In(e,n,t){switch(e){case"vertical":return n;case"horizontal":return t;default:return n||t}}function Mn(e,n){return In(n,e===$||e===Q,e===Z||e===X)}function Sn(e,n,t){return In(n,e===Q,t?e===Z:e===X)||"Enter"===e||" "===e||""===e}function Cn(e,n,t){return In(n,t?e===X:e===Z,e===$)}function On(e,n){const{open:t,onOpenChange:o,elements:s}=e,{listRef:p,activeIndex:v,onNavigate:g=(()=>{}),enabled:h=!0,selectedIndex:y=null,allowEscape:b=!1,loop:x=!1,nested:R=!1,rtl:k=!1,virtual:I=!1,focusItemOnOpen:M="auto",focusItemOnHover:S=!0,openOnArrowKeyDown:C=!0,disabledIndices:O,orientation:A="vertical",cols:P=1,scrollItemIntoView:N=!0,virtualItemRef:D,itemSizes:T,dense:L=!1}=n;const K=Ne(),F=De(),_=G(g),q=r.useRef(M),W=r.useRef(null!=y?y:-1),j=r.useRef(null),U=r.useRef(!0),z=r.useRef(_),B=r.useRef(!!s.floating),H=r.useRef(t),Y=r.useRef(!1),V=r.useRef(!1),$=Le(O),J=Le(t),se=Le(N),fe=Le(s.floating),pe=Le(y),[ve,me]=r.useState(),[ge,he]=r.useState(),ye=G((function(e,n,t){function r(e){I?(me(e.id),null==F||F.events.emit("virtualfocus",e),D&&(D.current=e)):ae(e,{preventScroll:!0,sync:!(!l().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!f())&&(kn||Y.current)})}void 0===t&&(t=!1);const o=e.current[n.current];o&&r(o),requestAnimationFrame((()=>{const u=e.current[n.current]||o;if(!u)return;o||r(u);const i=se.current;i&&we&&(t||!U.current)&&(null==u.scrollIntoView||u.scrollIntoView("boolean"===typeof i?{block:"nearest",inline:"nearest"}:i))}))}));de((()=>{document.createElement("div").focus({get preventScroll(){return kn=!0,!1}})}),[]),de((()=>{h&&(t&&s.floating?q.current&&null!=y&&(V.current=!0,W.current=y,_(y)):B.current&&(W.current=-1,z.current(null)))}),[h,t,s.floating,y,_]),de((()=>
1{if(h&&t&&s.floating)if(null==v){if(Y.current=!1,null!=pe.current)return;if(B.current&&(W.current=-1,ye(p,W)),(!H.current||!B.current)&&q.current&&(null!=j.current||!0===q.current&&null==j.current)){let e=0;const n=()=>{if(null==p.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(n)}e++}else W.current=null==j.current||Sn(j.current,A,k)||R?ne(p,$.current):te(p,$.current),j.current=null,_(W.current)};n()}}else ee(p,v)||(W.current=v,ye(p,W,V.current),V.current=!1)}),[h,t,s.floating,v,pe,R,p,A,k,_,ye,$]),de((()=>{var e;if(!h||s.floating||!F||I||!B.current)return;const n=F.nodesRef.current,t=null==(e=n.find((e=>e.id===K)))||null==(e=e.context)?void 0:e.elements.floating,r=i(m(s.floating)),o=n.some((e=>e.context&&c(e.context.elements.floating,r)));t&&!o&&U.current&&t.focus({preventScroll:!0})}),[h,s.floating,F,K,I]),de((()=>{if(h&&F&&I&&!K)return F.events.on("virtualfocus",e),()=>{F.events.off("virtualfocus",e)};function e(e){he(e.id),D&&(D.current=e)}}),[h,F,I,K,D]),de((()=>{z.current=_,B.current=!!s.floating})),de((()=>{t||(j.current=null)}),[t]),de((()=>{H.current=t}),[t]);const be=null!=v,we=r.useMemo((()=>{function e(e){if(!t)return;const n=p.current.indexOf(e);-1!==n&&_(n)}return{onFocus(n){let{currentTarget:t}=n;e(t)},onClick:e=>{let{currentTarget:n}=e;return n.focus({preventScroll:!0})},...S&&{onMouseMove(n){let{currentTarget:t}=n;e(t)},onPointerLeave(e){let{pointerType:n}=e;U.current&&"touch"!==n&&(W.current=-1,ye(p,W),_(null),I||ae(fe.current,{preventScroll:!0}))}}}}),[t,fe,ye,S,p,_,I]),Ee=G((e=>{if(U.current=!1,Y.current=!0,!J.current&&e.currentTarget===fe.current)return;if(R&&Cn(e.key,A,k))return w(e),o(!1,e.nativeEvent,"list-navigation"),void((0,u.Re)(s.domReference)&&!I&&s.domReference.focus());const n=W.current,r=ne(p,O),c=te(p,O);if("Home"===e.key&&(w(e),W.current=r,_(W.current)),"End"===e.key&&(w(e),W.current=c,_(W.current)),P>1){const n=T||Array.from({length:p.current.length},(()=>({width:1,height:1}))),t=ue(n,P,L),o=t.findIndex((e=>null!=e&&!le(p.current,e,O))),u=t.reduce(((e,n,t)=>null==n||le(p.current,n,O)?e:t),-1);if(W.current=t[oe({current:t.map((e=>null!=e?p.current[e]:null))},{event:e,orientation:A,loop:x,cols:P,disabledIndices:ce([...O||p.current.map(((e,n)=>le(p.current,n)?n:void 0)),void 0],t),minIndex:o,maxIndex:u,prevIndex:ie(W.current>c?r:W.current,n,t,P,e.key===Q?"bl":e.key===X?"tr":"tl"),stopEvent:!0})],_(W.current),"both"===A)return}if(Mn(e.key,A)){if(w(e),t&&!I&&i(e.currentTarget.ownerDocument)===e.currentTarget)return W.current=Sn(e.key,A,k)?r:c,void _(W.current);Sn(e.key,A,k)?W.current=x?n>=c?b&&n!==p.current.length?-1:r:re(p,{startingIndex:n,disabledIndices:O}):Math.min(c,re(p,{startingIndex:n,disabledIndices:O})):W.current=x?n<=r?b&&-1!==n?p.current.length:c:re(p,{startingIndex:n,decrement:!0,disabledIndices:O}):Math.max(r,re(p,{startingIndex:n,decrement:!0,disabledIndices:O})),ee(p,W.current)?_(null):_(W.current)}})),xe=r.useMemo((()=>I&&t&&be&&{"aria-activedescendant":ge||ve}),[I,t,be,ge,ve]),Re=r.useMemo((()=>({"aria-orientation":"both"===A?void 0:A,...!E(s.domReference)&&xe,onKeyDown:Ee,onPointerMove(){U.current=!0}})),[xe,Ee,s.domReference,A]),ke=r.useMemo((()=>{function e(e){"auto"===M&&a(e.nativeEvent)&&(q.current=!0)}return{...xe,onKeyDown(e){U.current=!1;const n=0===e.key.indexOf("Arrow"),r=function(e,n,t){return In(n,t?e===Z:e===X,e===Q)}(e.key,A,k),u=Cn(e.key,A,k),i=Mn(e.key,A),c=(R?r:i)||"Enter"===e.key||""===e.key.trim();if(I&&t){const t=null==F?void 0:F.nodesRef.current.find((e=>null==e.parentId)),o=F&&t?function(e,n){let t,r=-1;return function n(o,u){u>r&&(t=o,r=u),Ke(e,o).forEach((e=>{n(e.id,u+1)}))}(n,0),e.find((e=>e.id===t))}(F.nodesRef.current,t.id):null;if(n&&o&&D){const n=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(r||u){var l,s;const t=(null==(l=o.context)?void 0:l.elements.domReference)===e.currentTarget,i=u&&!t?null==(s=o.context)?void 0:s.elements.domReference:r?p.current.find((e=>(null==e?void 0:e.id)===ve)):null;i&&(w(e),i.dispatchEvent(n),he(void 0))}var a;if(i&&o.context)if(o.context.open&&o.parentId&&e.currentTarget!==o.context.elements.domReference)return w(e),void(null==(a=o.context.elements.domReference)||a.dispatchEvent(n))}return Ee(e)}(t||C||!n)&&(c&&(j.current=R&&i?null:e.key),R?r&&(w(e),t?(W.current=ne(p,$.current),_(W.current)):o(!0,e.nativeEvent,"list-navigation")):i&&(null!=y&&(W.current=y),w(e),!t&&C?o(!0,e.nativeEvent,"list-navigation"):Ee(e),t&&_(W.current)))},onFocus(){t&&!I&&_(null)},onPointerDown:function(e){q.current=M,"auto"===M&&d(e.nativeEvent)&&(q.current=!0)},onMouseDown:e,onClick:e}}),[ve,xe,Ee,$,M,p,R,_,o,t,C,A,k,y,F,I,D]);return r.useMemo((()=>h?{reference:ke,floating:Re,item:we}:{}),[h,ke,Re,we])}const An=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Pn(e,n){var t;void 0===n&&(n={});const{open:o,floatingId:u}=e,{enabled:i=!0,role:c="dialog"}=n,l=null!=(t=An.get(c))?t:c,s=Se(),a=null!=Ne(),d=r.useMemo((()=>"tooltip"===l||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:o?u:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":o?u:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:s},..."menu"===l&&a&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}}),[l,u,a,o,s,c]),f=r.useMemo((()=>{const e={id:u,...l&&{role:l}};return"tooltip"===l||"label"===c?e:{...e,..."menu"===l&&{"aria-labelledby":s}}}),[l,u,s,c]),p=r.useCallback((e=>{let{active:n,selected:t}=e;const r={role:"option",...n&&{id:u+"-option"}};switch(c){case"select":return{...r,"aria-selected":n&&t};case"combobox":return{...r,...n&&{"aria-selected":!0}}}return{}}),[u,c]);return r.useMemo((()=>i?{reference:d,floating:f,item:p}:{}),[i,d,f,p])}const Nn=e=>
1e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,n)=>(n?"-":"")+e.toLowerCase()));function Dn(e,n){return"function"===typeof e?e(n):e}function Tn(e,n){void 0===n&&(n={});const{open:t,elements:{floating:o}}=e,{duration:u=250}=n,i=("number"===typeof u?u:u.close)||0,[c,l]=r.useState("unmounted"),s=function(e,n){const[t,o]=r.useState(e);return e&&!t&&o(!0),r.useEffect((()=>{if(!e&&t){const e=setTimeout((()=>o(!1)),n);return()=>clearTimeout(e)}}),[e,t,n]),t}(t,i);return s||"close"!==c||l("unmounted"),de((()=>{if(o){if(t){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[t,o]),{isMounted:s,status:c}}function Ln(e,n){void 0===n&&(n={});const{initial:t={opacity:0},open:o,close:u,common:i,duration:c=250}=n,l=e.placement,s=l.split("-")[0],a=r.useMemo((()=>({side:s,placement:l})),[s,l]),d="number"===typeof c,f=(d?c:c.open)||0,p=(d?c:c.close)||0,[v,m]=r.useState((()=>({...Dn(i,a),...Dn(t,a)}))),{isMounted:g,status:h}=Tn(e,{duration:c}),y=Le(t),b=Le(o),w=Le(u),E=Le(i);return de((()=>{const e=Dn(y.current,a),n=Dn(w.current,a),t=Dn(E.current,a),r=Dn(b.current,a)||Object.keys(e).reduce(((e,n)=>(e[n]="",e)),{});if("initial"===h&&m((n=>({transitionProperty:n.transitionProperty,...t,...e}))),"open"===h&&m({transitionProperty:Object.keys(r).map(Nn).join(","),transitionDuration:f+"ms",...t,...r}),"close"===h){const r=n||e;m({transitionProperty:Object.keys(r).map(Nn).join(","),transitionDuration:p+"ms",...t,...r})}}),[p,w,y,b,E,f,h,a]),{isMounted:g,styles:v}}function Kn(e,n){var t;const{open:o,dataRef:u}=e,{listRef:i,activeIndex:c,onMatch:l,onTypingChange:s,enabled:a=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=[],selectedIndex:v=null}=n,m=r.useRef(),g=r.useRef(""),h=r.useRef(null!=(t=null!=v?v:c)?t:-1),y=r.useRef(null),b=G(l),E=G(s),x=Le(d),R=Le(p);de((()=>{o&&(clearTimeout(m.current),y.current=null,g.current="")}),[o]),de((()=>{var e;o&&""===g.current&&(h.current=null!=(e=null!=v?v:c)?e:-1)}),[o,v,c]);const k=G((e=>{e?u.current.typing||(u.current.typing=e,E(e)):u.current.typing&&(u.current.typing=e,E(e))})),I=G((e=>{function n(e,n,t){const r=x.current?x.current(n,t):n.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const t=i.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===n(t,t,g.current)?k(!1):" "===e.key&&w(e)),null==t||R.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;o&&" "!==e.key&&(w(e),k(!0));t.every((e=>{var n,t;return!e||(null==(n=e[0])?void 0:n.toLocaleLowerCase())!==(null==(t=e[1])?void 0:t.toLocaleLowerCase())}))&&g.current===e.key&&(g.current="",h.current=y.current),g.current+=e.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",h.current=y.current,k(!1)}),f);const r=h.current,u=n(t,[...t.slice((r||0)+1),...t.slice(0,(r||0)+1)],g.current);-1!==u?(b(u),y.current=u):" "!==e.key&&(g.current="",k(!1))})),M=r.useMemo((()=>({onKeyDown:I})),[I]),S=r.useMemo((()=>({onKeyDown:I,onKeyUp(e){" "===e.key&&k(!1)}})),[I,k]);return r.useMemo((()=>a?{reference:M,floating:S}:{}),[a,M,S])}}}]); 2//# sourceMappingURL=5482-106eda3ffe1eaa24578b.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.