1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[692],{63:(e,t,n)=>{var r=n(7260);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},101:(e,t,n)=>{n.d(t,{A:()=>V});var r,o,i=function(){return(i=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}).apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create;Object.create;var a=("function"==typeof SuppressedError&&SuppressedError,n(2115)),u="right-scroll-bar-position",s="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,f=new WeakMap;function p(e){return e}var h=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=p),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},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)},l=function(){return Promise.resolve().then(i)};l(),n={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),n}}}});return o.options=i({async:!0,ssr:!1},e),o}(),m=function(){},v=a.forwardRef(function(e,t){var n,r,o,u,s=a.useRef(null),p=a.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),v=p[0],g=p[1],y=e.forwardProps,w=e.children,x=e.className,b=e.removeScrollBar,E=e.enabled,R=e.shards,C=e.sideCar,A=e.noRelative,M=e.noIsolation,k=e.inert,S=e.allowPinchZoom,D=e.as,O=e.gapMode,N=l(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=(n=[s,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,u=o.facade,d(function(){var e=f.get(u);if(e){var t=new Set(e),r=new Set(n),o=u.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,o)})}f.set(u,n)},[n]),u),j=i(i({},N),v);return a.createElement(a.Fragment,null,E&&a.createElement(C,{sideCar:h,removeScrollBar:b,shards:R,noRelative:A,noIsolation:M,inert:k,setCallbacks:g,allowPinchZoom:!!S,lockRef:s,gapMode:O}),y?a.cloneElement(a.Children.only(w),i(i({},j),{ref:T})):a.createElement(void 0===D?"div":D,i({},j,{className:x,ref:T}),w))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:s,zeroRight:u};var g=function(e){var t=e.sideCar,n=l(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return a.createElement(r,i({},n))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,l;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=y();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},x=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},R=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[E(n),E(r),E(o)]},C=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=R(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])}},A=x(),M="data-scroll-locked",k=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(M,"] {\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(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n }\n \n .").concat(u," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(s," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n right: 0 ").concat(r,";\n }\n \n .").concat(s," .").concat(s," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(M,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},S=function(){var e=parseInt(document.body.getAttribute(M)||"0",10);return isFinite(e)?e:0},D=function(){a.useEffect(function(){return document.body.setAttribute(M,(S()+1).toString()),function(){var e=S()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;D();var i=a.useMemo(function(){return C(o)},[o]);return a.createElement(A,{styles:k(i,!t,o,n?"":"!important")})},N=!1;if("undefined"!=typeof window)try{var T=Object.defineProperty({},"passive",{get:function(){return N=!0,!0}});window.addEventListener("test",T,T),window.removeEventListener("test",T,T)}catch(e){N=!1}var j=!!N&&{passive:!1},P=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},L=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),I(e,r)){var o=_(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},I=function(e,t){return"v"===e?P(t,"overflowY"):P(t,"overflowX")},_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},F=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{if(!u)break;var h=_(e,u),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&I(e,u)&&(f+=v,p+=m);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(c=!0),c},W=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},G=0,K=[];let H=(r=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(G++)[0],i=a.useState(x)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(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))})([e.lockRef.current],(e.shards||[]).map(z),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=W(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=L(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=L(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return F(p,t,e,"h"===p?u:s,!0)},[]),s=a.useCallback(function(e){if(K.length&&K[K.length-1]===i){var n="deltaY"in e?B(e):W(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=a.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=a.useCallback(function(e){n.current=W(e),r.current=void 0},[]),f=a.useCallback(function(t){c(t.type,B(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){c(t.type,W(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return K.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,j),document.addEventListener("touchmove",s,j),document.addEventListener("touchstart",d,j),function(){K=K.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,j),document.removeEventListener("touchmove",s,j),document.removeEventListener("touchstart",d,j)}},[]);var h=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?a.createElement(O,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},h.useMedium(r),g);var U=a.forwardRef(function(e,t){return a.createElement(v,i({},e,{ref:t,sideCar:H}))});U.classNames=v.classNames;let V=U},222:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(2115);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},1360:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
1],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},1847:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(2115);let o=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...l,width:o,height:o,stroke:n,strokeWidth:u?24*Number(a)/Number(o):a,className:i("lucide",s),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(f)&&{"aria-hidden":"true"},...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{className:u,...s}=n;return(0,r.createElement)(a,{ref:l,iconNode:t,className:i("lucide-".concat(o(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),u),...s})});return n.displayName=o(e),n}},2467:(e,t,n)=>{n.d(t,{DX:()=>a,TL:()=>l});var r=n(2115),o=n(4446),i=n(5155);function l(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var l;let e,a,u=(l=n,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),s=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(s.ref=t?(0,o.t)(t,u):u),r.cloneElement(n,s)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...l}=e,a=r.Children.toArray(o),u=a.find(s);if(u){let e=u.props.children,o=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...l,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...l,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var a=l("Slot"),u=Symbol("radix.slottable");function s(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}},2556:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},2997:(e,t,n)=>{n.d(t,{UC:()=>nF,q7:()=>nW,ZL:()=>n_,bL:()=>nL,l9:()=>nI});var r,o=n(2115),i=n(2556),l=n(4446),a=n(3468),u=n(3558),s=n(7602);function c(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function d(e,t){var n=c(e,t,"get");return n.get?n.get.call(e):n.value}function f(e,t,n){var r=c(e,t,"set");if(r.set)r.set.call(e,n);else{if(!r.writable)throw TypeError("attempted to set read only private field");r.value=n}return n}var p=n(2467),h=n(5155);function m(e){let t=e+"CollectionProvider",[n,r]=(0,a.A)(t),[i,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=o.useRef(null),l=o.useRef(new Map).current;return(0,h.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})};s.displayName=t;let c=e+"CollectionSlot",d=(0,p.TL)(c),f=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=u(c,n),i=(0,l.s)(t,o.collectionRef);return(0,h.jsx)(d,{ref:i,children:r})});f.displayName=c;let m=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,p.TL)(m),y=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=o.useRef(null),s=(0,l.s)(t,a),c=u(m,n);return o.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),(0,h.jsx)(g,{...{[v]:""},ref:s,children:r})});return y.displayName=m,[{Provider:s,Slot:f,ItemSlot:y},function(t){let n=u(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var v=new WeakMap;function g(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=y(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function y(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap,class e extends Map{set(e,t){return v.get(this)&&(this.has(e)?d(this,r)[d(this,r).indexOf(e)]=e:d(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let o,i=this.has(t),l=d(this,r).length,a=y(e),u=a>=0?a:l+a,s=u<0||u>=l?-1:u;if(s===this.size||i&&s===this.size-1||-1===s)return this.set(t,n),this;let c=this.size+ +!i;a<0&&u++;let f=[...d(this,r)],p=!1;for(let e=u;e<c;e++)if(u===e){let r=f[e];f[e]===t&&(r=f[e+1]),i&&this.delete(t),o=this.get(r),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],r=o;o=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=d(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let o=d(this,r).indexOf(e);return -1===o?this:this.insert(o,t,n)}after(e){let t=d(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let o=d(this,r).indexOf(e);return -1===o?this:this.insert(o+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return f(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&d(this,r).splice(d(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=g(d(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=g(d(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return d(this,r).indexOf(e)}keyAt(e){return g(d(this,r),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=0,l=null!=o?o:this.at(0);for(let e of this)l=0===i&&1===t.length?e:Reflect.apply(r,this,[l,e,i,this]),i++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);i=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[i,n,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,r,{writable:!0,value:void 0}),f(this,r,[...super.keys()]),v.set(this,!0)}};var w=o.createContext(void 0);function x(e){let t=o.useContext(w);return e||t||"ltr"}var b=n(4831),E=n(9526),R=n(9666),C=n(8946);let A=["top","right","bottom","left"],M=Math.min,k=Math.max,S=Math.round,D=Math.floor,O=e=>({x:e,y:e}),N={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function j(e,t){return"function"==typeof e?e(t):e}function P(e){return e.split("-")[0]}function L(e){return e.split("-")[1]}function I(e){return"x"===e?"y":"x"}function _(e){return"y"===e?"height":"width"}let F=new Set(["top","bottom"]);function W(e){return F.has(P(e))?"y":"x"}function B(e){return e.replace(/start|end/g,e=>T[e])}let z=["left","right"],G=["right","left"],K=["top","bottom"],H=["bottom","top"];function U(e){return e.replace(/left|right|bottom|top/g,e=>N[e])}function V(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function $(e){let{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 X(e,t,n){let r,{reference:o,floating:i}=e,l=W(t),a=I(W(t)),u=_(a),s=P(t),c="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(s){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(L(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}let q=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=X(s,r,u),f=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:i,fn:m}=a[n],{x:v,y:g,data:y,reset:w}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=X(s,f,u)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function Y(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}
1=j(t,e),h=V(p),m=a[f?"floating"===d?"reference":"floating":d],v=$(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=$(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-x.top+h.top)/w.y,bottom:(x.bottom-v.bottom+h.bottom)/w.y,left:(v.left-x.left+h.left)/w.x,right:(x.right-v.right+h.right)/w.x}}function Z(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function J(e){return A.some(t=>e[t]>=0)}let Q=new Set(["left","top"]);async function ee(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=P(n),a=L(n),u="y"===W(n),s=Q.has(l)?-1:1,c=i&&u?-1:1,d=j(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),u?{x:p*c,y:f*s}:{x:f*s,y:p*c}}function et(){return"undefined"!=typeof window}function en(e){return ei(e)?(e.nodeName||"").toLowerCase():"#document"}function er(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eo(e){var t;return null==(t=(ei(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ei(e){return!!et()&&(e instanceof Node||e instanceof er(e).Node)}function el(e){return!!et()&&(e instanceof Element||e instanceof er(e).Element)}function ea(e){return!!et()&&(e instanceof HTMLElement||e instanceof er(e).HTMLElement)}function eu(e){return!!et()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof er(e).ShadowRoot)}let es=new Set(["inline","contents"]);function ec(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!es.has(o)}let ed=new Set(["table","td","th"]),ef=[":popover-open",":modal"];function ep(e){return ef.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eh=["transform","translate","scale","rotate","perspective"],em=["transform","translate","scale","rotate","perspective","filter"],ev=["paint","layout","strict","content"];function eg(e){let t=ey(),n=el(e)?eb(e):e;return eh.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||em.some(e=>(n.willChange||"").includes(e))||ev.some(e=>(n.contain||"").includes(e))}function ey(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let ew=new Set(["html","body","#document"]);function ex(e){return ew.has(en(e))}function eb(e){return er(e).getComputedStyle(e)}function eE(e){return el(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eR(e){if("html"===en(e))return e;let t=e.assignedSlot||e.parentNode||eu(e)&&e.host||eo(e);return eu(t)?t.host:t}function eC(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eR(t);return ex(n)?t.ownerDocument?t.ownerDocument.body:t.body:ea(n)&&ec(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=er(o);if(i){let e=eA(l);return t.concat(l,l.visualViewport||[],ec(o)?o:[],e&&n?eC(e):[])}return t.concat(o,eC(o,[],n))}function eA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eM(e){let t=eb(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ea(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=S(n)!==i||S(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ek(e){return el(e)?e:e.contextElement}function eS(e){let t=ek(e);if(!ea(t))return O(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eM(t),l=(i?S(n.width):n.width)/r,a=(i?S(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eD=O(0);function eO(e){let t=er(e);
1return ey()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eD}function eN(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ek(e),a=O(1);t&&(r?el(r)&&(a=eS(r)):a=eS(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===er(l))&&o)?eO(l):O(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=er(l),t=r&&el(r)?er(r):r,n=e,o=eA(n);for(;o&&r&&t!==n;){let e=eS(o),t=o.getBoundingClientRect(),r=eb(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,f*=e.y,s+=i,c+=l,o=eA(n=er(o))}}return $({width:d,height:f,x:s,y:c})}function eT(e,t){let n=eE(e).scrollLeft;return t?t.left+n:eN(eo(e)).left+n}function ej(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:eT(e,r)),y:r.top+t.scrollTop}}let eP=new Set(["absolute","fixed"]);function eL(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=er(e),r=eo(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=ey();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=eo(e),n=eE(e),r=e.ownerDocument.body,o=k(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=k(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eT(e),a=-n.scrollTop;return"rtl"===eb(r).direction&&(l+=k(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(eo(e));else if(el(t))r=function(e,t){let n=eN(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ea(e)?eS(e):O(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eO(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $(r)}function eI(e){return"static"===eb(e).position}function e_(e,t){if(!ea(e)||"fixed"===eb(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eo(e)===n&&(n=n.ownerDocument.body),n}function eF(e,t){var n;let r=er(e);if(ep(e))return r;if(!ea(e)){let t=eR(e);for(;t&&!ex(t);){if(el(t)&&!eI(t))return t;t=eR(t)}return r}let o=e_(e,t);for(;o&&(n=o,ed.has(en(n)))&&eI(o);)o=e_(o,t);return o&&ex(o)&&eI(o)&&!eg(o)?r:o||function(e){let t=eR(e);for(;ea(t)&&!ex(t);){if(eg(t))return t;if(ep(t))break;t=eR(t)}return null}(e)||r}let eW=async function(e){let t=this.getOffsetParent||eF,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ea(t),o=eo(t),i="fixed"===n,l=eN(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=O(0);if(r||!r&&!i)if(("body"!==en(t)||ec(o))&&(a=eE(t)),r){let e=eN(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eT(o));i&&!r&&o&&(u.x=eT(o));let s=!o||r||i?O(0):ej(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eB={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=eo(r),a=!!t&&ep(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=O(1),c=O(0),d=ea(r);if((d||!d&&!i)&&(("body"!==en(r)||ec(l))&&(u=eE(r)),ea(r))){let e=eN(r);s=eS(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||i?O(0):ej(l,u,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+f.x,y:n.y*s.y-u.scrollTop*s.y+c.y+f.y}},getDocumentElement:eo,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?ep(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eC(e,[],!1).filter(e=>el(e)&&"body"!==en(e)),o=null,i="fixed"===eb(e).position,l=i?eR(e):e;for(;el(l)&&!ex(l);){let t=eb(l),n=eg(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&eP.has(o.position)||ec(l)&&!n&&function e(t,n){let r=eR(t);return!(r===n||!el(r)||ex(r))&&("fixed"===eb(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=eR(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eL(t,n,o);return e.top=k(r.top,e.top),e.right=M(r.right,e.right),e.bottom=M(r.bottom,e.bottom),e.left=k(r.left,e.left),e},eL(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eF,getElementRects:eW,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eM(e);return{width:t,height:n}},getScale:eS,isElement:el,isRTL:function(e){return"rtl"===eb(e).direction}};function ez(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eG=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:s,padding:c=0}=j(e,t)||{};if(null==s)return{};let d=V(c),f={x:n,y:r},p=I(W(o)),h=_(p),m=await l.getDimensions(s),v="y"===p,g=v?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),b=x?x[g]:0;b&&await (null==l.isElement?void 0:l.isElement(x))||(b=a.floating[g]||i.floating[h]);let E=b/2-m[h]/2-1,R=M(d[v?"top":"left"],E),C=M(d[v?"bottom":"right"],E),A=b-m[h]-C,S=b/2-m[h]/2+(y/2-w/2),D=k(R,M(S,A)),O=!u.arrow&&null!=L(o)&&S!==D&&i.reference[h]/2-(S<R?R:C)-m[h]/2<0,N=O?S<R?S-R:S-A:0;return{[p]:f[p]+N,data:{[p]:D,centerOffset:S-D-N,...O&&{alignmentOffset:N}},reset:O}}});var eK=n(7650),eH="undefined"!=typeof document?o.useLayoutEffect:function(){};function eU(e,t){let n,r,o;
1if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eU(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eU(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eV(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e$(e,t){let n=eV(e);return Math.round(t*n)/n}function eX(e){let t=o.useRef(e);return eH(()=>{t.current=e}),t}var eq=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,h.jsx)(s.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,h.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eq.displayName="Arrow";var eY=n(222),eZ=n(4129),eJ="Popper",[eQ,e0]=(0,a.A)(eJ),[e1,e2]=eQ(eJ),e5=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,h.jsx)(e1,{scope:t,anchor:r,onAnchorChange:i,children:n})};e5.displayName=eJ;var e4="PopperAnchor",e6=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=e2(e4,n),u=o.useRef(null),c=(0,l.s)(t,u);return o.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||u.current)}),r?null:(0,h.jsx)(s.sG.div,{...i,ref:c})});e6.displayName=e4;var e7="PopperContent",[e8,e9]=eQ(e7),e3=o.forwardRef((e,t)=>{var n,r,i,a,u,c,d,f;let{__scopePopper:p,side:m="bottom",sideOffset:v=0,align:g="center",alignOffset:y=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:E=0,sticky:R="partial",hideWhenDetached:C=!1,updatePositionStrategy:A="optimized",onPlaced:S,...O}=e,N=e2(e7,p),[T,F]=o.useState(null),V=(0,l.s)(t,e=>F(e)),[$,X]=o.useState(null),et=function(e){let[t,n]=o.useState(void 0);return(0,eZ.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}($),en=null!=(d=null==et?void 0:et.width)?d:0,er=null!=(f=null==et?void 0:et.height)?f:0,ei="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},el=Array.isArray(b)?b:[b],ea=el.length>0,eu={padding:ei,boundary:el.filter(tr),altBoundary:ea},{refs:es,floatingStyles:ec,placement:ed,isPositioned:ef,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);eU(p,r)||h(r);let[m,v]=o.useState(null),[g,y]=o.useState(null),w=o.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),x=o.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),b=l||m,E=a||g,R=o.useRef(null),C=o.useRef(null),A=o.useRef(d),M=null!=s,k=eX(s),S=eX(i),D=eX(c),O=o.useCallback(()=>{if(!R.current||!C.current)return;let e={placement:t,strategy:n,middleware:p};S.current&&(e.platform=S.current),((e,t,n)=>{let r=new Map,o={platform:eB,...n},i={...o.platform,_c:r};return q(e,t,{...o,platform:i})})(R.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==D.current};N.current&&!eU(A.current,t)&&(A.current=t,eK.flushSync(()=>{f(t)}))})},[p,t,n,S,D]);eH(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let N=o.useRef(!1);eH(()=>(N.current=!0,()=>{N.current=!1}),[]),eH(()=>{if(b&&(R.current=b),E&&(C.current=E),b&&E){if(k.current)return k.current(b,E,O);O()}},[b,E,O,k,M]);let T=o.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:x}),[w,x]),j=o.useMemo(()=>({reference:b,floating:E}),[b,E]),P=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=e$(j.floating,d.x),r=e$(j.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eV(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,j.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:O,refs:T,elements:j,floatingStyles:P}),[d,O,T,j,P])}({strategy:"fixed",placement:m+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=ek(e),d=i||l?[...c?eC(c):[],...eC(t)]:[];
1d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=c&&u?function(e,t){let n,r=null,o=eo(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let s=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=s;if(a||t(),!f||!p)return;let h=D(d),m=D(o.clientWidth-(c+f)),v={rootMargin:-h+"px "+-m+"px "+-D(o.clientHeight-(d+p))+"px "+-D(c)+"px",threshold:k(0,M(1,u))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||ez(s,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(y,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,v)}r.observe(e)}(!0),i}(c,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),h.observe(t));let m=s?eN(e):null;return s&&function t(){let r=eN(e);m&&!ez(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===A})},elements:{reference:N.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await ee(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e),options:[e,t]}))({mainAxis:v+er,alignmentAxis:y}),x&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=j(e,t),s={x:n,y:r},c=await Y(t,u),d=W(P(o)),f=I(d),p=s[f],h=s[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=k(n,M(p,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+c[e],r=h-c[t];h=k(n,M(h,r))}let m=a.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:l}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=j(e,t),c={x:n,y:r},d=W(o),f=I(d),p=c[f],h=c[d],m=j(a,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var g,y;let e="y"===f?"width":"height",t=Q.has(P(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}}(e),options:[e,t]}))():void 0,...eu}),x&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=j(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let x=P(a),b=W(c),E=P(c)===c,R=await (null==d.isRTL?void 0:d.isRTL(f.floating)),C=m||(E||!y?[U(c)]:function(e){let t=U(e);return[B(e),t,B(t)]}(c)),A="none"!==g;!m&&A&&C.push(...function(e,t,n,r){let o=L(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?G:z;return t?z:G;case"left":case"right":return t?K:H;default:return[]}}(P(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(B)))),i}(c,y,g,R));let M=[c,...C],k=await Y(t,w),S=[],D=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&S.push(k[x]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=L(e),o=I(W(e)),i=_(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=U(l)),[l,U(l)]}(a,s,R);S.push(k[e[0]],k[e[1]])}if(D=[...D,{placement:a,overflows:S}],!S.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=M[e];if(t&&("alignment"!==h||b===W(t)||D.every(e=>W(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(i=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=D.filter(e=>{if(A){let t=W(e.placement);return t===b||"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:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...eu}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:a,platform:u,elements:s}=t,{apply:c=()=>{},...d}=j(e,t),f=await Y(t,d),p=P(l),h=L(l),m="y"===W(l),{width:v,height:g}=a.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"top":"bottom");let y=g-f.top-f.bottom,w=v-f.left-f.right,x=M(g-f[o],y),b=M(v-f[i],w),E=!t.middlewareData.shift,R=x,C=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(R=y),E&&!h){let e=k(f.left,0),t=k(f.right,0),n=k(f.top,0),r=k(f.bottom,0);m?C=v-2*(0!==e||0!==t?e+t:k(f.left,f.right)):R=g-2*(0!==n||0!==r?n+r:k(f.top,f.bottom))}await c({...t,availableWidth:C,availableHeight:R});let A=await u.getDimensions(s.floating);return v!==A.width||g!==A.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...eu,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),$&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eG({element:n.current,padding:r}).fn(t):{}:n?eG({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:$,padding:w}),to({arrowWidth:en,arrowHeight:er}),C&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=j(e,t);switch(r){case"referenceHidden":{let e=Z(await Y(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:J(e)}}}case"escaped":{let e=Z(await Y(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:J(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...eu})]}),[eh,em]=ti(ed),ev=(0,eY.c)(S);(0,eZ.N)(()=>{ef&&(null==ev||ev())},[ef,ev]);let eg=null==(n=ep.arrow)?void 0:n.x,ey=null==(r=ep.arrow)?void 0:r.y,ew=(null==(i=ep.arrow)?void 0:i.centerOffset)!==0,[ex,eb]=o.useState();return(0,eZ.N)(()=>{T&&eb(window.getComputedStyle(T).zIndex)},[T]),(0,h.jsx)("div",{ref:es.setFloating,"data-radix-popper-content-wrapper":"",style:{...ec,transform:ef?ec.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ex,"--radix-popper-transform-origin":[null==(a=ep.transformOrigin)?void 0:a.x,null==(u=ep.transformOrigin)?void 0:u.y].join(" "),...(null==(c=ep.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,h.jsx)(e8,{scope:p,placedSide:eh,onArrowChange:X,arrowX:eg,arrowY:ey,shouldHideArrow:ew,children:(0,h.jsx)(s.sG.div,{"data-side":eh,"data-align":em,...O,ref:V,style:{...O.style,animation:ef?void 0:"none"}})})})});e3.displayName=e7;var te="PopperArrow",tt={top:"bottom",right:"left",bottom:"top",left:"right"},tn=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e9(te,n),i=tt[o.placedSide];return(0,h.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:(0,h.jsx)(eq,{...r,ref:t,style:{...r.style,display:"block"}})})});function tr(e){return null!==e}tn.displayName=te;var to=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=ti(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+f/2,y="",w="";return"bottom"===p?(y=c?m:"".concat(v,"px"),w="".concat(-f,"px")):"top"===p?(y=c?m:"".concat(v,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=c?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=c?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function ti(e){let[t,n="center"]=e.split("-");return[t,n]}var tl=n(5433),ta=n(6842),tu="rovingFocusGroup.onEntryFocus",ts={bubbles:!1,cancelable:!0},tc="RovingFocusGroup",[td,tf,tp]=m(tc),[th,tm]=(0,a.A)(tc,[tp]),[tv,tg]=th(tc),ty=o.forwardRef((e,t)=>
1(0,h.jsx)(td.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(td.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(tw,{...e,ref:t})})}));ty.displayName=tc;var tw=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:v=!1,...g}=e,y=o.useRef(null),w=(0,l.s)(t,y),b=x(c),[E,R]=(0,u.i)({prop:d,defaultProp:null!=f?f:null,onChange:p,caller:tc}),[C,A]=o.useState(!1),M=(0,eY.c)(m),k=tf(n),S=o.useRef(!1),[D,O]=o.useState(0);return o.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(tu,M),()=>e.removeEventListener(tu,M)},[M]),(0,h.jsx)(tv,{scope:n,orientation:r,dir:b,loop:a,currentTabStopId:E,onItemFocus:o.useCallback(e=>R(e),[R]),onItemShiftTab:o.useCallback(()=>A(!0),[]),onFocusableItemAdd:o.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>O(e=>e-1),[]),children:(0,h.jsx)(s.sG.div,{tabIndex:C||0===D?-1:0,"data-orientation":r,...g,ref:w,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{S.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(tu,ts);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=k().filter(e=>e.focusable);tR([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),v)}}S.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>A(!1))})})}),tx="RovingFocusGroupItem",tb=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:l=!1,tabStopId:a,children:u,...c}=e,d=(0,C.B)(),f=a||d,p=tg(tx,n),m=p.currentTabStopId===f,v=tf(n),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:w}=p;return o.useEffect(()=>{if(r)return g(),()=>y()},[r,g,y]),(0,h.jsx)(td.ItemSlot,{scope:n,id:f,focusable:r,active:l,children:(0,h.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return tE[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>tR(n))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=w}):u})})});tb.displayName=tx;var tE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tR(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var tC=n(7745),tA=n(101),tM=["Enter"," "],tk=["ArrowUp","PageDown","End"],tS=["ArrowDown","PageUp","Home",...tk],tD={ltr:[...tM,"ArrowRight"],rtl:[...tM,"ArrowLeft"]},tO={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tN="Menu",[tT,tj,tP]=m(tN),[tL,tI]=(0,a.A)(tN,[tP,e0,tm]),t_=e0(),tF=tm(),[tW,tB]=tL(tN),[tz,tG]=tL(tN),tK=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:a=!0}=e,u=t_(t),[s,c]=o.useState(null),d=o.useRef(!1),f=(0,eY.c)(l),p=x(i);return o.useEffect(()=>{let 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})}},[]),(0,h.jsx)(e5,{...u,children:(0,h.jsx)(tW,{scope:t,open:n,onOpenChange:f,content:s,onContentChange:c,children:(0,h.jsx)(tz,{scope:t,onClose:o.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:a,children:r})})})};tK.displayName=tN;var tH=o.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e,o=t_(n);return(0,h.jsx)(e6,{...o,...r,ref:t})});tH.displayName="MenuAnchor";var tU="MenuPortal",[tV,t$]=tL(tU,{forceMount:void 0}),tX=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tB(tU,t);return(0,h.jsx)(tV,{scope:t,forceMount:n,children:(0,h.jsx)(ta.C,{present:n||i.open,children:(0,h.jsx)(tl.Z,{asChild:!0,container:o,children:r})})})};tX.displayName=tU;var tq="MenuContent",[tY,tZ]=tL(tq),tJ=o.forwardRef((e,t)=>{let n=t$(tq,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tB(tq,e.__scopeMenu),l=tG(tq,e.__scopeMenu);return(0,h.jsx)(tT.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(ta.C,{present:r||i.open,children:(0,h.jsx)(tT.Slot,{scope:e.__scopeMenu,children:l.modal?(0,h.jsx)(tQ,{...o,ref:t}):(0,h.jsx)(t0,{...o,ref:t})})})})}),tQ=o.forwardRef((e,t)=>{let n=tB(tq,e.__scopeMenu),r=o.useRef(null),a=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,tC.Eq)(e)},[]),(0,h.jsx)(t2,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),t0=o.forwardRef((e,t)=>{let n=tB(tq,e.__scopeMenu);return(0,h.jsx)(t2,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),t1=(0,p.TL)("MenuContent.ScrollLock"),t2=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,onDismiss:g,disableOutsideScroll:y,...w}=e,x=tB(tq,n),C=tG(tq,n),A=t_(n),M=tF(n),k=tj(n),[S,D]=o.useState(null),O=o.useRef(null),N=(0,l.s)(t,O,x.onContentChange),T=o.useRef(0),j=o.useRef(""),P=o.useRef(0),L=o.useRef(null),I=o.useRef("right"),_=o.useRef(0),F=y?tA.A:o.Fragment;o.useEffect(()=>()=>window.clearTimeout(T.current),[]),(0,E.Oh)();let W=o.useCallback(e=>{var t,n;return I.current===(null==(t=L.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,s=l.y,c=a.x,d=a.y;s>r!=d>r&&n<(c-u)*(r-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=L.current)?void 0:n.area)},[]);return(0,h.jsx)(tY,{scope:n,searchRef:j,onItemEnter:o.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:o.useCallback(e=>{var t;W(e)||(null==(t=O.current)||t.focus(),D(null))},[W]),onTriggerLeave:o.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:P,onPointerGraceIntentChange:o.useCallback(e=>{L.current=e},[]),children:(0,h.jsx)(F,{...y?{as:t1,allowPinchZoom:!0}:void 0,children:(0,h.jsx)(R.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.m)(u,e=>{var t;e.preventDefault(),null==(t=O.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,h.jsx)(b.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:v,onDismiss:g,children:(0,h.jsx)(ty,{asChild:!0,...M,dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:D,onEntryFocus:(0,i.m)(d,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,h.jsx)(e3,{role:"menu","aria-orientation":"vertical","data-state":ny(x.open),"data-radix-menu-content":"",dir:C.dir,...A,...w,ref:N,style:{outline:"none",...w.style},onKeyDown:(0,i.m)(w.onKeyDown,e=>{let 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&&(e=>{var t,n;let r=j.current+e,o=k().filter(e=>!e.disabled),i=document.activeElement,l=null==(t=o.find(e=>e.ref.current===i))?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,l=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(l=l.filter(e=>e!==n));let a=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,l),u=null==(n=o.find(e=>e.textValue===a))?void 0:n.ref.current;!function e(t){j.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>
1u.focus())})(e.key));let o=O.current;if(e.target!==o||!tS.includes(e.key))return;e.preventDefault();let i=k().filter(e=>!e.disabled).map(e=>e.ref.current);tk.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),j.current="")}),onPointerMove:(0,i.m)(e.onPointerMove,nb(e=>{let t=e.target,n=_.current!==e.clientX;e.currentTarget.contains(t)&&n&&(I.current=e.clientX>_.current?"right":"left",_.current=e.clientX)}))})})})})})})});tJ.displayName=tq;var t5=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,h.jsx)(s.sG.div,{role:"group",...r,ref:t})});t5.displayName="MenuGroup";var t4=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,h.jsx)(s.sG.div,{...r,ref:t})});t4.displayName="MenuLabel";var t6="MenuItem",t7="menu.itemSelect",t8=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...a}=e,u=o.useRef(null),c=tG(t6,e.__scopeMenu),d=tZ(t6,e.__scopeMenu),f=(0,l.s)(t,u),p=o.useRef(!1);return(0,h.jsx)(t9,{...a,ref:f,disabled:n,onClick:(0,i.m)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(t7,{bubbles:!0,cancelable:!0});e.addEventListener(t7,e=>null==r?void 0:r(e),{once:!0}),(0,s.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),p.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;n||t&&" "===e.key||tM.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});t8.displayName=t6;var t9=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...u}=e,c=tZ(t6,n),d=tF(n),f=o.useRef(null),p=(0,l.s)(t,f),[m,v]=o.useState(!1),[g,y]=o.useState("");return o.useEffect(()=>{let e=f.current;if(e){var t;y((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,h.jsx)(tT.ItemSlot,{scope:n,disabled:r,textValue:null!=a?a:g,children:(0,h.jsx)(tb,{asChild:!0,...d,focusable:!r,children:(0,h.jsx)(s.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...u,ref:p,onPointerMove:(0,i.m)(e.onPointerMove,nb(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.m)(e.onPointerLeave,nb(e=>c.onItemLeave(e))),onFocus:(0,i.m)(e.onFocus,()=>v(!0)),onBlur:(0,i.m)(e.onBlur,()=>v(!1))})})})}),t3=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,h.jsx)(na,{scope:e.__scopeMenu,checked:n,children:(0,h.jsx)(t8,{role:"menuitemcheckbox","aria-checked":nw(n)?"mixed":n,...o,ref:t,"data-state":nx(n),onSelect:(0,i.m)(o.onSelect,()=>null==r?void 0:r(!!nw(n)||!n),{checkForDefaultPrevented:!1})})})});t3.displayName="MenuCheckboxItem";var ne="MenuRadioGroup",[nt,nn]=tL(ne,{value:void 0,onValueChange:()=>{}}),nr=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,eY.c)(r);return(0,h.jsx)(nt,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,h.jsx)(t5,{...o,ref:t})})});nr.displayName=ne;var no="MenuRadioItem",ni=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=nn(no,e.__scopeMenu),l=n===o.value;return(0,h.jsx)(na,{scope:e.__scopeMenu,checked:l,children:(0,h.jsx)(t8,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":nx(l),onSelect:(0,i.m)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});ni.displayName=no;var nl="MenuItemIndicator",[na,nu]=tL(nl,{checked:!1}),ns=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=nu(nl,n);return(0,h.jsx)(ta.C,{present:r||nw(i.checked)||!0===i.checked,children:(0,h.jsx)(s.sG.span,{...o,ref:t,"data-state":nx(i.checked)})})});ns.displayName=nl;var nc=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,h.jsx)(s.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});nc.displayName="MenuSeparator";var nd=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=t_(n);return(0,h.jsx)(tn,{...o,...r,ref:t})});nd.displayName="MenuArrow";var[nf,np]=tL("MenuSub"),nh="MenuSubTrigger",nm=o.forwardRef((e,t)=>
1{let n=tB(nh,e.__scopeMenu),r=tG(nh,e.__scopeMenu),a=np(nh,e.__scopeMenu),u=tZ(nh,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return o.useEffect(()=>p,[p]),o.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,h.jsx)(tH,{asChild:!0,...f,children:(0,h.jsx)(t9,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":ny(n.open),...e,ref:(0,l.t)(t,a.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,nb(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,i.m)(e.onPointerLeave,nb(e=>{var t,r;p();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],a=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:a,y:o.top},{x:a,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.m)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&tD[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null==(i=n.content)||i.focus(),t.preventDefault()}})})})});nm.displayName=nh;var nv="MenuSubContent",ng=o.forwardRef((e,t)=>{let n=t$(tq,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,u=tB(tq,e.__scopeMenu),s=tG(tq,e.__scopeMenu),c=np(nv,e.__scopeMenu),d=o.useRef(null),f=(0,l.s)(t,d);return(0,h.jsx)(tT.Provider,{scope:e.__scopeMenu,children:(0,h.jsx)(ta.C,{present:r||u.open,children:(0,h.jsx)(tT.Slot,{scope:e.__scopeMenu,children:(0,h.jsx)(t2,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:f,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tO[s.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null==(r=c.trigger)||r.focus(),e.preventDefault()}})})})})})});function ny(e){return e?"open":"closed"}function nw(e){return"indeterminate"===e}function nx(e){return nw(e)?"indeterminate":e?"checked":"unchecked"}function nb(e){return t=>"mouse"===t.pointerType?e(t):void 0}ng.displayName=nv;var nE="DropdownMenu",[nR,nC]=(0,a.A)(nE,[tI]),nA=tI(),[nM,nk]=nR(nE),nS=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:a,modal:s=!0}=e,c=nA(t),d=o.useRef(null),[f,p]=(0,u.i)({prop:i,defaultProp:null!=l&&l,onChange:a,caller:nE});return(0,h.jsx)(nM,{scope:t,triggerId:(0,C.B)(),triggerRef:d,contentId:(0,C.B)(),open:f,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,h.jsx)(tK,{...c,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};nS.displayName=nE;var nD="DropdownMenuTrigger",nO=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=nk(nD,n),u=nA(n);return(0,h.jsx)(tH,{asChild:!0,...u,children:(0,h.jsx)(s.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,l.t)(t,a.triggerRef),onPointerDown:(0,i.m)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,i.m)(e.onKeyDown,e=>
1{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nO.displayName=nD;var nN=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nA(t);return(0,h.jsx)(tX,{...r,...n})};nN.displayName="DropdownMenuPortal";var nT="DropdownMenuContent",nj=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,l=nk(nT,n),a=nA(n),u=o.useRef(!1);return(0,h.jsx)(tJ,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...r,ref:t,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=l.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(u.current=!0)}),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)"}})});nj.displayName=nT,o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(t5,{...o,...r,ref:t})}).displayName="DropdownMenuGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(t4,{...o,...r,ref:t})}).displayName="DropdownMenuLabel";var nP=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(t8,{...o,...r,ref:t})});nP.displayName="DropdownMenuItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(t3,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(nr,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(ni,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(ns,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(nc,{...o,...r,ref:t})}).displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(nd,{...o,...r,ref:t})}).displayName="DropdownMenuArrow",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(nm,{...o,...r,ref:t})}).displayName="DropdownMenuSubTrigger",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nA(n);return(0,h.jsx)(ng,{...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)"}})}).displayName="DropdownMenuSubContent";var nL=nS,nI=nO,n_=nN,nF=nj,nW=nP},3101:(e,t,n)=>{n.d(t,{F:()=>l});var r=n(2821);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=r.$,l=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:l,defaultVariants:a}=t,u=Object.keys(l).map(e=>{let t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;let i=o(t)||o(r);return l[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,u,null==t||null==(r=t.compoundVariants)?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):({...a,...s})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},3327:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},3468:(e,t,n)=>{n.d(t,{A:()=>l,q:()=>i});var r=n(2115),o=n(5155);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:l,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function l(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,s=n?.[e]?.[a]||l,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[a]||l,s=r.useContext(u);if(s)return s;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},3558:(e,t,n)=>{n.d(t,{i:()=>a});var r,o=n(2115),i=n(4129),l=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,u]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),a=o.useRef(t);return l(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}return[c,o.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else a(t)},[s,e,a,u])]}Symbol("RADIX:SYNC_STATE")}
1,4129:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(2115),o=globalThis?.document?r.useLayoutEffect:()=>{}},4446:(e,t,n)=>{n.d(t,{s:()=>l,t:()=>i});var r=n(2115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function l(...e){return r.useCallback(i(...e),e)}},4831:(e,t,n)=>{n.d(t,{qW:()=>f});var r,o=n(2115),i=n(2556),l=n(7602),a=n(4446),u=n(222),s=n(5155),c="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,...b}=e,E=o.useContext(d),[R,C]=o.useState(null),A=null!=(f=null==R?void 0:R.ownerDocument)?f:null==(n=globalThis)?void 0:n.document,[,M]=o.useState({}),k=(0,a.s)(t,e=>C(e)),S=Array.from(E.layers),[D]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(D),N=R?S.indexOf(R):-1,T=E.layersWithOutsidePointerEventsDisabled.size>0,j=N>=O,P=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));j&&!n&&(null==g||g(e),null==w||w(e),e.defaultPrevented||null==x||x())},A),L=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==x||x())},A);return!function(e,t=globalThis?.document){let n=(0,u.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{N===E.layers.size-1&&(null==v||v(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},A),o.useEffect(()=>{if(R)return m&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(R)),E.layers.add(R),p(),()=>{m&&1===E.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=r)}},[R,A,m,E]),o.useEffect(()=>()=>{R&&(E.layers.delete(R),E.layersWithOutsidePointerEventsDisabled.delete(R),p())},[R,E]),o.useEffect(()=>{let e=()=>M({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,s.jsx)(l.sG.div,{...b,ref:k,style:{pointerEvents:T?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,P.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.hO)(i,a):i.dispatchEvent(a)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(d),r=o.useRef(null),i=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(l.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"}
1,5229:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},5299:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},5433:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(2115),o=n(7650),i=n(7602),l=n(4129),a=n(5155),u=r.forwardRef((e,t)=>{var n,u;let{container:s,...c}=e,[d,f]=r.useState(!1);(0,l.N)(()=>f(!0),[]);let p=s||d&&(null==(u=globalThis)||null==(n=u.document)?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.sG.div,{...c,ref:t}),p):null});u.displayName="Portal"},6191:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},6842:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(2115),o=n(4446),i=n(4129),l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[o,l]=r.useState(),u=r.useRef(null),s=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(u.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=u.current,n=s.current;if(n!==e){let r=c.current,o=a(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=a(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=a(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{u.current=e?getComputedStyle(e):null,l(e)},[])}}(t),u="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),s=(0,o.s)(l.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;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||l.isPresent?r.cloneElement(u,{ref:s}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},7586:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},7602:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>a});var r=n(2115),o=n(7650),i=n(2467),l=n(5155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},7745:(e,t,n)=>{n.d(t,{Eq:()=>s});var r=new WeakMap,o=new WeakMap,i={},l=0,a=function(e){return e&&(e.host||a(e.parentNode))},u=function(e,t,n,u){var s=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var c=i[n],d=[],f=new Set,p=new Set(s),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};s.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(c.get(e)||0)+1;r.set(e,l),c.set(e,a),d.push(e),1===l&&i&&o.set(e,!0),1===a&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),l++,function(){d.forEach(function(e){var t=r.get(e)-1,i=c.get(e)-1;r.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},s=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),u(r,o,n,"aria-hidden")):function(){return null}}}
1,7772:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},8946:(e,t,n)=>{n.d(t,{B:()=>u});var r,o=n(2115),i=n(4129),l=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},9511:(e,t,n)=>{n.d(t,{UC:()=>et,ZL:()=>Q,bL:()=>Z,bm:()=>er,hE:()=>en,hJ:()=>ee,l9:()=>J});var r=n(2115),o=n(2556),i=n(4446),l=n(3468),a=n(8946),u=n(3558),s=n(4831),c=n(9666),d=n(5433),f=n(6842),p=n(7602),h=n(9526),m=n(101),v=n(7745),g=n(2467),y=n(5155),w="Dialog",[x,b]=(0,l.A)(w),[E,R]=x(w),C=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:l,modal:s=!0}=e,c=r.useRef(null),d=r.useRef(null),[f,p]=(0,u.i)({prop:o,defaultProp:null!=i&&i,onChange:l,caller:w});return(0,y.jsx)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:s,children:n})};C.displayName=w;var A="DialogTrigger",M=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=R(A,n),a=(0,i.s)(t,l.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":U(l.open),...r,ref:a,onClick:(0,o.m)(e.onClick,l.onOpenToggle)})});M.displayName=A;var k="DialogPortal",[S,D]=x(k,{forceMount:void 0}),O=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,l=R(k,t);return(0,y.jsx)(S,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:n||l.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:i,children:e})}))})};O.displayName=k;var N="DialogOverlay",T=r.forwardRef((e,t)=>{let n=D(N,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=R(N,e.__scopeDialog);return i.modal?(0,y.jsx)(f.C,{present:r||i.open,children:(0,y.jsx)(P,{...o,ref:t})}):null});T.displayName=N;var j=(0,g.TL)("DialogOverlay.RemoveScroll"),P=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(N,n);return(0,y.jsx)(m.A,{as:j,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":U(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),L="DialogContent",I=r.forwardRef((e,t)=>{let n=D(L,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=R(L,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||i.open,children:i.modal?(0,y.jsx)(_,{...o,ref:t}):(0,y.jsx)(F,{...o,ref:t})})});I.displayName=L;var _=r.forwardRef((e,t)=>{let n=R(L,e.__scopeDialog),l=r.useRef(null),a=(0,i.s)(t,n.contentRef,l);return r.useEffect(()=>{let e=l.current;
1if(e)return(0,v.Eq)(e)},[]),(0,y.jsx)(W,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),F=r.forwardRef((e,t)=>{let n=R(L,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(W,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,l;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(o.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,l;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),W=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:a,...u}=e,d=R(L,n),f=r.useRef(null),p=(0,i.s)(t,f);return(0,h.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:a,children:(0,y.jsx)(s.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":U(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(q,{titleId:d.titleId}),(0,y.jsx)(Y,{contentRef:f,descriptionId:d.descriptionId})]})]})}),B="DialogTitle",z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(B,n);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});z.displayName=B;var G="DialogDescription";r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(G,n);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})}).displayName=G;var K="DialogClose",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=R(K,n);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>i.onOpenChange(!1))})});function U(e){return e?"open":"closed"}H.displayName=K;var V="DialogTitleWarning",[$,X]=(0,l.q)(V,{contentName:L,titleName:B,docsSlug:"dialog"}),q=e=>{let{titleId:t}=e,n=X(V),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},Y=e=>{let{contentRef:t,descriptionId:n}=e,o=X("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(i))},[i,t,n]),null},Z=C,J=M,Q=O,ee=T,et=I,en=z,er=H},9526:(e,t,n)=>{n.d(t,{Oh:()=>i});var r=n(2115),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:l()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:l()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function l(){let 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}},9540:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]])},9666:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(2115),o=n(4446),i=n(7602),l=n(222),a=n(5155),u="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>
1{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=e,[w,x]=r.useState(null),b=(0,l.c)(v),E=(0,l.c)(g),R=r.useRef(null),C=(0,o.s)(t,e=>x(e)),A=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(A.paused||!w)return;let t=e.target;w.contains(t)?R.current=t:h(R.current,{select:!0})},t=function(e){if(A.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||h(R.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,w,A.paused]),r.useEffect(()=>{if(w){m.add(A);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(u,c);w.addEventListener(u,b),w.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(f(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(w))}return()=>{w.removeEventListener(u,b),setTimeout(()=>{let t=new CustomEvent(s,c);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),w.removeEventListener(s,E),m.remove(A)},0)}}},[w,b,E,A]);let M=r.useCallback(e=>{if(!n&&!d||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,i]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,A.paused]);return(0,a.jsx)(i.sG.div,{tabIndex:-1,...y,ref:C,onKeyDown:M})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let 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 p(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=v(e,t)).unshift(t)},remove(t){var n;null==(n=(e=v(e,t))[0])||n.resume()}}}();function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}}}]);
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.