PageSourceSearch

https://rednote-downloader.online/_next/static/chunks/234-988c78163c80f37a.js

js rednote-downloader.online collected 2026-10-01 15:58:46 UTC 107,052 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[234],{5478:function(e,t,n){"use strict";n.d(t,{Ry:function(){return c}});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 c=(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 s=i[n],f=[],d=new Set,p=new Set(c),m=function(e){!e||d.has(e)||(d.add(e),m(e.parentNode))};c.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))h(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(s.get(e)||0)+1;r.set(e,l),s.set(e,a),f.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 h(t),d.clear(),l++,function(){f.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.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={})}},c=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}}},9205:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2265);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),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:c="",children:s,iconNode:f,...d}=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",c),...d},[...f.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{className:u,...c}=n;return(0,r.createElement)(a,{ref:l,iconNode:t,className:i("lucide-".concat(o(e)),u),...c})});return n.displayName="".concat(e),n}},407:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},9202:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},4938:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},7648:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(2972),o=n.n(r)},9376:function(e,t,n){"use strict";var r=n(5475);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},9157:function(e,t,n){"use strict";n.d(t,{Z:function(){return Y}});var r,o,i,l,a,u,c,s=function(){return(s=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 f(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}"function"==typeof SuppressedError&&SuppressedError;var d=n(2265),p="right-scroll-bar-position",m="width-before-scroll-bar";function h(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,g=new WeakMap,y=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),l=[],a=!1,u={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:null},useMedium:function(e){var t=i(e,a);return l.push(t),function(){l=l.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;l.length;){var t=l;l=[],t.forEach(e)}l={push:function(t){return e(t)},filter:function(){return l}}},assignMedium:function(e){a=!0;var t=[];if(l.length){var n=l;
1l=[],n.forEach(e),t=l}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),l={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),l}}}}).options=s({async:!0,ssr:!1},o),u),b=function(){},w=d.forwardRef(function(e,t){var n,r,o,i,l=d.useRef(null),a=d.useState({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:b}),u=a[0],c=a[1],p=e.forwardProps,m=e.children,w=e.className,x=e.removeScrollBar,E=e.enabled,C=e.shards,R=e.sideCar,S=e.noRelative,O=e.noIsolation,M=e.inert,P=e.allowPinchZoom,j=e.as,A=e.gapMode,D=f(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[l,t],r=function(e){return n.forEach(function(t){return h(t,e)})},(o=(0,d.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,i=o.facade,v(function(){var e=g.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||h(e,null)}),r.forEach(function(e){t.has(e)||h(e,o)})}g.set(i,n)},[n]),i),T=s(s({},D),u);return d.createElement(d.Fragment,null,E&&d.createElement(R,{sideCar:y,removeScrollBar:x,shards:C,noRelative:S,noIsolation:O,inert:M,setCallbacks:c,allowPinchZoom:!!P,lockRef:l,gapMode:A}),p?d.cloneElement(d.Children.only(m),s(s({},T),{ref:k})):d.createElement(void 0===j?"div":j,s({},T,{className:w,ref:k}),m))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:m,zeroRight:p};var x=function(e){var t=e.sideCar,n=f(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 d.createElement(r,s({},n))};x.isSideCarExport=!0;var E=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,l;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},C=function(){var e=E();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},R=function(){var e=C();return function(t){return e(t.styles,t.dynamic),null}},S={left:0,top:0,right:0,gap:0},O=function(e){return parseInt(e||"",10)||0},M=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[O(n),O(r),O(o)]},P=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return S;var t=M(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])}},j=R(),A="data-scroll-locked",D=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(A,"] {\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,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(p," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(m," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(p," .").concat(p," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(m," .").concat(m," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(A,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},k=function(){var e=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(e)?e:0},T=function(){d.useEffect(function(){return document.body.setAttribute(A,(k()+1).toString()),function(){var e=k()-1;e<=0?document.body.removeAttribute(A):document.body.setAttribute(A,e.toString())}},[])},L=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;T();var i=d.useMemo(function(){return P(o)},[o]);return d.createElement(j,{styles:D(i,!t,o,n?"":"!important")})},I=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(e){I=!1}
1var F=!!I&&{passive:!1},_=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])},W=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),z(e,r)){var o=V(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},z=function(e,t){return"v"===e?_(t,"overflowY"):_(t,"overflowX")},V=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},B=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,c=t.contains(u),s=!1,f=a>0,d=0,p=0;do{if(!u)break;var m=V(e,u),h=m[0],v=m[1]-m[2]-l*h;(h||v)&&z(e,u)&&(d+=v,p+=h);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return f&&(o&&1>Math.abs(d)||!o&&a>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},H=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},U=function(e){return[e.deltaX,e.deltaY]},K=function(e){return e&&"current"in e?e.current:e},Z=0,$=[],G=(c=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Z++)[0],i=d.useState(R)[0],l=d.useRef(e);d.useEffect(function(){l.current=e},[e]),d.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(K),!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 a=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=H(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,f=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var m=W(f,s);if(!m)return!0;if(m?o=f:(o="v"===f?"h":"v",m=W(f,s)),!m)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var h=r.current||o;return B(h,t,e,"h"===h?u:c,!0)},[]),u=d.useCallback(function(e){if($.length&&$[$.length-1]===i){var n="deltaY"in e?U(e):H(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)[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(K).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=d.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)},[]),s=d.useCallback(function(e){n.current=H(e),r.current=void 0},[]),f=d.useCallback(function(t){c(t.type,U(t),t.target,a(t,e.lockRef.current))},[]),p=d.useCallback(function(t){c(t.type,H(t),t.target,a(t,e.lockRef.current))},[]);d.useEffect(function(){return $.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,F),document.addEventListener("touchmove",u,F),document.addEventListener("touchstart",s,F),function(){$=$.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,F),document.removeEventListener("touchmove",u,F),document.removeEventListener("touchstart",s,F)}},[]);var m=e.removeScrollBar,h=e.inert;return d.createElement(d.Fragment,null,h?d.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?d.createElement(L,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},y.useMedium(c),x),X=d.forwardRef(function(e,t){return d.createElement(w,s({},e,{ref:t,sideCar:G}))});X.classNames=w.classNames;var Y=X},16:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3"}},6741:function(e,t,n){"use strict";n.d(t,{Mj:function(){return l}});var r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0}),i=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return o(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function a(e){if(!i)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function u(e){return"IFRAME"===e.tagName}o(l,"composeEventHandlers"),o(function(e){if(!i)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),o(a,"getOwnerDocument"),o(function e(t,n=!1){let{activeElement:r}=a(t);if(!r?.nodeName)return null;if(u(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=a(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),o(u,"isFrame")},8575:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var r=n(2265),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(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():l(e[t],null)}}}}function u(...e){return r.useCallback(a(...e),e)}i(l,"setRef"),i(a,"composeRefs"),i(u,"useComposedRefs")},3966:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(2265),o=n(7437),i=Object.defineProperty,l=(e,t)=>
1i(e,"name",{value:t,configurable:!0});function a(e,t=[]){let n=[];function i(t,i){let a=r.createContext(i);a.displayName=t+"Context";let u=n.length;n=[...n,i];let c=l(t=>{let{scope:n,children:i,...l}=t,c=n?.[e]?.[u]||a,s=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(c.Provider,{value:s,children:i})},"Provider");function s(n,o,l={}){let{optional:c=!1}=l,s=o?.[e]?.[u]||a,f=r.useContext(s);if(f)return f;if(void 0!==i)return i;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return c.displayName=t+"Provider",l(s,"useContext"),[c,s]}l(i,"createContext");let a=l(()=>{let t=n.map(e=>r.createContext(e));return l(function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])},"useScope")},"createScope");return a.scopeName=e,[i,u(a,...t)]}function u(...e){let t=e[0];if(1===e.length)return t;let n=l(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return l(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])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}l(function(e,t){let n=r.createContext(t);n.displayName=e+"Context";let i=l(e=>{let{children:t,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:l,children:t})},"Provider");function a(o,i={}){let{optional:l=!1}=i,a=r.useContext(n);if(a)return a;if(void 0!==t)return t;if(!l)throw Error(`\`${o}\` must be used within \`${e}\``)}return i.displayName=e+"Provider",l(a,"useContext"),[i,a]},"createContext"),l(a,"createContextScope"),l(u,"composeContextScopes")},9027:function(e,t,n){"use strict";n.d(t,{VY:function(){return F},aV:function(){return T},fC:function(){return O},h_:function(){return D},x8:function(){return V},xz:function(){return M}});var r=n(2265),o=n(6741),i=n(8575),l=n(3966),a=n(9255),u=n(5037),c=n(2308),s=n(9103),f=n(3832),d=n(1599),p=n(6840),m=n(6097),h=n(9157),v=n(5478),g=n(7495),y=n(7437),b=Object.defineProperty,w=(e,t)=>b(e,"name",{value:t,configurable:!0}),x="Dialog",[E,C]=(0,l.b)(x),[R,S]=E(x),O=w(e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,s=r.useRef(null),f=r.useRef(null),[d,p]=(0,u.T)({prop:o,defaultProp:null!=i&&i,onChange:l,caller:x}),[m,h]=r.useState(0),[v,g]=r.useState(0);return(0,y.jsx)(R,{scope:t,triggerRef:s,contentRef:f,contentId:(0,a.M)(),titleId:(0,a.M)(),descriptionId:(0,a.M)(),titlePresent:m>0,descriptionPresent:v>0,setTitleCount:h,setDescriptionCount:g,open:d,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:n})},"Dialog"),M=r.forwardRef(w(function(e,t){let{__scopeDialog:n,...r}=e,l=S("DialogTrigger",n),a=(0,i.e)(t,l.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":B(l.open),...r,ref:a,onClick:(0,o.Mj)(e.onClick,l.onOpenToggle)})},"DialogTrigger")),P="DialogPortal",[j,A]=E(P,{forceMount:void 0}),D=w(e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,l=S(P,t);return(0,y.jsx)(j,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(d.z,{present:n||l.open,children:(0,y.jsx)(f.h,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),k="DialogOverlay",T=r.forwardRef(w(function(e,t){let n=A(k,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=S(k,e.__scopeDialog);return i.modal?(0,y.jsx)(d.z,{present:r||i.open,children:(0,y.jsx)(I,{...o,ref:t})}):null},"DialogOverlay")),L=(0,g.Z8)("DialogOverlay.RemoveScroll"),I=r.forwardRef(w(function(e,t){let{__scopeDialog:n,...r}=e,o=S(k,n),l=(0,c.WL)(),a=(0,i.e)(t,l);return(0,y.jsx)(h.Z,{as:L,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":B(o.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),N="DialogContent",F=r.forwardRef(w(function(e,t){let n=A(N,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=S(N,e.__scopeDialog);return(0,y.jsx)(d.z,{present:r||i.open,children:i.modal?(0,y.jsx)(_,{...o,ref:t}):(0,y.jsx)(W,{...o,ref:t})})},"DialogContent")),_=r.forwardRef(w(function(e,t){let n=S(N,e.__scopeDialog),l=r.useRef(null),a=(0,i.e)(t,n.contentRef,l);return r.useEffect(()=>{let e=l.current;if(e)return(0,v.Ry)(e)},[]),(0,y.jsx)(z,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,o.Mj)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.Mj)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),W=r.forwardRef(w(function(e,t){let n=S(N,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,l;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(l=n.triggerRef.current)||void 0===l||l.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,l;null===(r=e.onInteractOutside)||void 0===r||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?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),z=r.forwardRef(w(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,a=S(N,n);return(0,m.EW)(),(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(s.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,y.jsx)(c.XB,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionPresent?a.descriptionId:void 0,"aria-labelledby":a.titlePresent?a.titleId:void 0,"data-state":B(a.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>a.onOpenChange(!1)})})})},"DialogContentImpl")),V=r.forwardRef(w(function(e,t){let{__scopeDialog:n,...r}=e,i=S("DialogClose",n);return(0,y.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.Mj)(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function B(e){return e?"open":"closed"}w(B,"getState")},2308:function(e,t,n){"use strict";n.d(t,{WL:function(){return h},XB:function(){return m}});
1var r,o=n(2265),i=n(6741),l=n(6840),a=n(8575),u=n(6606),c=n(7437),s=Object.defineProperty,f=(e,t)=>s(e,"name",{value:t,configurable:!0}),d="dismissableLayer.update",p=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),m=o.forwardRef(f(function(e,t){var n,s;let{disableOutsidePointerEvents:m=!1,deferPointerDownOutside:h=!1,onEscapeKeyDown:v,onPointerDownOutside:w,onFocusOutside:x,onInteractOutside:E,onDismiss:C,...R}=e,S=o.useContext(p),[O,M]=o.useState(null),P=null!==(s=null==O?void 0:O.ownerDocument)&&void 0!==s?s:null===(n=globalThis)||void 0===n?void 0:n.document,[,j]=o.useState({}),A=(0,a.e)(t,M),D=Array.from(S.layers),[k]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),T=k?D.indexOf(k):-1,L=O?D.indexOf(O):-1,I=S.layersWithOutsidePointerEventsDisabled.size>0,N=L>=T,F=o.useRef(!1),_=g(e=>{null==w||w(e),null==E||E(e),e.defaultPrevented||null==C||C()},{ownerDocument:P,deferPointerDownOutside:h,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...S.branches].some(t=>t.contains(e));return N&&!t},[S.branches,N])}),W=y(e=>{if(h&&F.current)return;let t=e.target;[...S.branches].some(e=>e.contains(t))||(null==x||x(e),null==E||E(e),e.defaultPrevented||null==C||C())},P),z=!!O&&L===D.length-1,V=(0,u.W)(e=>{"Escape"===e.key&&(null==v||v(e),!e.defaultPrevented&&C&&(e.preventDefault(),C()))});return o.useEffect(()=>{if(z)return P.addEventListener("keydown",V,{capture:!0}),()=>P.removeEventListener("keydown",V,{capture:!0})},[P,z,V]),o.useEffect(()=>{if(O)return m&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(r=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(O)),S.layers.add(O),b(),()=>{m&&(S.layersWithOutsidePointerEventsDisabled.delete(O),0===S.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=r))}},[O,P,m,S]),o.useEffect(()=>()=>{O&&(S.layers.delete(O),S.layersWithOutsidePointerEventsDisabled.delete(O),b())},[O,S]),o.useEffect(()=>{let e=f(()=>j({}),"handleUpdate");return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,c.jsx)(l.WV.div,{...R,ref:A,style:{pointerEvents:I?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.Mj)(e.onFocusCapture,W.onFocusCapture),onBlurCapture:(0,i.Mj)(e.onBlurCapture,W.onBlurCapture),onPointerDownCapture:(0,i.Mj)(e.onPointerDownCapture,_.onPointerDownCapture)})},"DismissableLayer"));function h(){let e=o.useContext(p),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}f(h,"useDismissableLayerSurface");var v=f(()=>!0,"IS_TRUE");function g(e,t){var n;let{ownerDocument:r=null===(n=globalThis)||void 0===n?void 0:n.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:l,dismissableSurfaces:a,shouldHandlePointerDownOutside:c=v}=t,s=(0,u.W)(e),d=o.useRef(!1),p=o.useRef(!1),m=o.useRef(new Map),h=o.useRef(()=>{});return o.useEffect(()=>{function e(){p.current=!1,l.current=!1,m.current.clear()}function t(){return Array.from(m.current.values()).some(Boolean)}function n(e){if(!p.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||m.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{p.current&&h.current()},0)}function o(e){p.current&&m.current.set(e.type,!1)}f(e,"resetOutsideInteraction"),f(t,"isOutsideInteractionIntercepted"),f(n,"handleInteractionCapture"),f(o,"handleInteractionBubble");let u=f(n=>{if(n.target&&!d.current){let o=function(){r.removeEventListener("click",h.current);let n=t();e(),n||w("dismissableLayer.pointerDownOutside",s,a,{discrete:!0})};if(f(o,"handleAndDispatchPointerDownOutsideEvent"),!c(n.target)){r.removeEventListener("click",h.current),e(),d.current=!1;return}let a={originalEvent:n};p.current=!0,l.current=i&&0===n.button,m.current.clear(),i&&0===n.button?(r.removeEventListener("click",h.current),h.current=o,r.addEventListener("click",h.current,{once:!0})):o()}
1else r.removeEventListener("click",h.current),e();d.current=!1},"handlePointerDown"),v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of v)r.addEventListener(e,n,!0),r.addEventListener(e,o);let g=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{for(let e of(window.clearTimeout(g),r.removeEventListener("pointerdown",u),r.removeEventListener("click",h.current),v))r.removeEventListener(e,n,!0),r.removeEventListener(e,o)}},[r,s,i,l,a,c]),{onPointerDownCapture:f(()=>d.current=!0,"onPointerDownCapture")}}function y(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=f(e=>{e.target&&!i.current&&w("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:f(()=>i.current=!0,"onFocusCapture"),onBlurCapture:f(()=>i.current=!1,"onBlurCapture")}}function b(){let e=new CustomEvent(d);document.dispatchEvent(e)}function w(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.jH)(i,a):i.dispatchEvent(a)}f(g,"usePointerDownOutside"),f(y,"useFocusOutside"),f(b,"dispatchUpdate"),f(w,"handleAndDispatchCustomEvent")},8790:function(e,t,n){"use strict";let r;n.d(t,{VY:function(){return nq},ck:function(){return nJ},Uv:function(){return nY},fC:function(){return nG},xz:function(){return nX}});var o,i,l=n(2265),a=n.t(l,2),u=n(6741),c=n(8575),s=n(3966),f=n(5037),d=n(6840);function p(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function m(e,t){var n=p(e,t,"get");return n.get?n.get.call(e):n.value}function h(e,t,n){var r=p(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,r,n),n}var v=n(7495),g=n(7437),y=Object.defineProperty,b=(e,t)=>y(e,"name",{value:t,configurable:!0});function w(e){let t=e+"CollectionProvider",[n,r]=(0,s.b)(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=b(e=>{let{scope:t,children:n}=e,r=l.useRef(null),i=l.useRef(new Map).current;return(0,g.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})},"CollectionProvider");a.displayName=t;let u=e+"CollectionSlot",f=(0,v.Z8)(u),d=l.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=i(u,n),l=(0,c.e)(t,o.collectionRef);return(0,g.jsx)(f,{ref:l,children:r})});d.displayName=u;let p=e+"CollectionItemSlot",m="data-radix-collection-item",h=(0,v.Z8)(p),y=l.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=l.useRef(null),u=(0,c.e)(t,a),s=i(p,n);return l.useEffect(()=>(s.itemMap.set(a,{ref:a,...o}),()=>void s.itemMap.delete(a))),(0,g.jsx)(h,{[m]:"",ref:u,children:r})});function w(t){let n=i(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return y.displayName=p,b(w,"useCollection"),[{Provider:a,Slot:d,ItemSlot:y},w,r]}b(w,"createCollection");var x=new WeakMap,E=(o=new WeakMap,b(i=class e extends Map{set(e,t){return x.get(this)&&(this.has(e)?m(this,o)[m(this,o).indexOf(e)]=e:m(this,o).push(e)),super.set(e,t),this}insert(e,t,n){let r;let i=this.has(t),l=m(this,o).length,a=S(e),u=a>=0?a:l+a,c=u<0||u>=l?-1:u;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,n),this;let s=this.size+(i?0:1);a<0&&u++;let f=[...m(this,o)],d=!1;for(let e=u;e<s;e++)if(u===e){let o=f[e];f[e]===t&&(o=f[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{d||f[e-1]!==t||(d=!0);let n=f[d?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=m(this,o).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=m(this,o).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=m(this,o).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=m(this,o).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return h(this,o,[]),super.clear()}delete(e){let t=super.delete(e);return t&&m(this,o).splice(m(this,o).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=C(m(this,o),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=C(m(this,o),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return m(this,o).indexOf(e)}keyAt(e){return C(m(this,o),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){var t;super(e),t={writable:!0,value:void 0},function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(this,o),o.set(this,t),h(this,o,[...super.keys()]),x.set(this,!0)}},"OrderedDict"),i);function C(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=R(e,t);return -1===n?void 0:e[n]}function R(e,t){let n=e.length,r=S(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function S(e){return e!=e||0===e?0:Math.trunc(e)}function O(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function M(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function P(e,t){return e[1].element&&t[1].element?M(e[1].element,t[1].element)?-1:1:0}function j(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type){e();return}})}b(C,"at"),b(R,"toSafeIndex"),b(S,"toSafeInteger"),b(function(e){let t=e+"CollectionProvider",[n,r]=(0,s.b)(t),[o,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new E,setItemMap:b(()=>void 0,"setItemMap")}),a=b(e=>{let{state:t,...n}=e;return t?(0,g.jsx)(f,{...n,state:t}):(0,g.jsx)(u,{...n})},"CollectionProvider");a.displayName=t;let u=b(e=>{let t=x();return(0,g.jsx)(f,{...e,state:t})},"CollectionInit");u.displayName=t+"Init";let f=b(e=>{let{scope:t,children:n,state:r}=e,i=l.useRef(null),[a,u]=l.useState(null),s=(0,c.e)(i,u),[f,d]=r;return l.useEffect(()=>{if(!a)return;let e=j(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),(0,g.jsx)(o,{scope:t,itemMap:f,setItemMap:d,collectionRef:s,collectionRefObject:i,collectionElement:a,children:n})},"CollectionProviderImpl");f.displayName=t+"Impl";let d=e+"CollectionSlot",p=(0,v.Z8)(d),m=l.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=i(d,n),l=(0,c.e)(t,o.collectionRef);return(0,g.jsx)(p,{ref:l,children:r})});m.displayName=d;let h=e+"CollectionItemSlot",y=(0,v.Z8)(h),w=l.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=l.useRef(null),[u,s]=l.useState(null),f=(0,c.e)(t,a,s),{setItemMap:d}=i(h,n),p=l.useRef(o);O(p.current,o)||(p.current=o);let m=p.current;return l.useEffect(()=>(d(e=>u?e.has(u)?e.set(u,{...m,element:u}).toSorted(P):(e.set(u,{...m,element:u}),e.toSorted(P)):e),()=>{d(e=>u&&e.has(u)?(e.delete(u),new E(e)):e)}),[u,m,d]),(0,g.jsx)(y,{"data-radix-collection-item":"",ref:f,children:r})});function x(){return l.useState(new E)}function C(t){let{itemMap:n}=i(e+"CollectionConsumer",t);return n}return w.displayName=h,b(x,"useInitCollection"),b(C,"useCollection"),[{Provider:a,Slot:m,ItemSlot:w},{createCollectionScope:r,useCollection:C,useInitCollection:x}]},"createCollection"),b(O,"shallowEqual"),b(M,"isElementPreceding"),b(P,"sortByDocumentPosition"),b(j,"getChildListObserver");var A=Object.defineProperty,D=l.createContext(void 0);function k(e){let t=l.useContext(D);return e||t||"ltr"}A(k,"name",{value:"useDirection",configurable:!0});var T=n(2308),L=n(6097),I=n(9103);let N=["top","right","bottom","left"],F=Math.min,_=Math.max,W=Math.round,z=Math.floor,V=e=>({x:e,y:e}
1),B={left:"right",right:"left",bottom:"top",top:"bottom"};function H(e,t){return"function"==typeof e?e(t):e}function U(e){return e.split("-")[0]}function K(e){return e.split("-")[1]}function Z(e){return"x"===e?"y":"x"}function $(e){return"y"===e?"height":"width"}function G(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function X(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let Y=["left","right"],q=["right","left"],J=["top","bottom"],Q=["bottom","top"];function ee(e){let t=U(e);return B[t]+e.slice(t.length)}function et(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function en(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 er(e,t,n){let r,{reference:o,floating:i}=e,l=G(t),a=Z(G(t)),u=$(a),c=U(t),s=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[u]/2-i[u]/2;switch(c){case"top":r={x:s,y:o.y-i.height};break;case"bottom":r={x:s,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}}let p=K(t);return p&&(r[a]+=d*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function eo(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=H(t,e),m=et(p),h=a[d?"floating"===f?"reference":"floating":f],v=en(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===f?{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)),b=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=en(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-w.top+m.top)/b.y,bottom:(w.bottom-v.bottom+m.bottom)/b.y,left:(v.left-w.left+m.left)/b.x,right:(w.right-v.right+m.right)/b.x}}let ei=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:eo},u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=er(c,r,u),d=r,p=0,m={};for(let n=0;n<i.length;n++){let h=i[n];if(!h)continue;let{name:v,fn:g}=h,{x:y,y:b,data:w,reset:x}=await g({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=y?y:s,f=null!=b?b:f,m[v]={...m[v],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:s,y:f}=er(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:m}};function el(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ea(e){return N.some(t=>e[t]>=0)}let eu=new Set(["left","top"]);async function ec(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=U(n),a=K(n),u="y"===G(n),c=eu.has(l)?-1:1,s=i&&u?-1:1,f=H(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}function es(){return"undefined"!=typeof window}function ef(e){return em(e)?(e.nodeName||"").toLowerCase():"#document"}function ed(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ep(e){var t;return null==(t=(em(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function em(e){return!!es()&&(e instanceof Node||e instanceof ed(e).Node)}function eh(e){return!!es()&&(e instanceof Element||e instanceof ed(e).Element)}function ev(e){return!!es()&&(e instanceof HTMLElement||e instanceof ed(e).HTMLElement)}function eg(e){return!!es()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ed(e).ShadowRoot)}function ey(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eO(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function eb(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ew=/transform|translate|scale|rotate|perspective|filter/,ex=/paint|layout|strict|content/,eE=e=>!!e&&"none"!==e;function eC(e){let t=eh(e)?eO(e):e;return eE(t.transform)||eE(t.translate)||eE(t.scale)||eE(t.rotate)||eE(t.perspective)||!eR()&&(eE(t.backdropFilter)||eE(t.filter))||ew.test(t.willChange||"")||ex.test(t.contain||"")}function eR(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function eS(e){return/^(html|body|#document)$/.test(ef(e))}function eO(e){return ed(e).getComputedStyle(e)}function eM(e){return eh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eP(e){if("html"===ef(e))return e;let t=e.assignedSlot||e.parentNode||eg(e)&&e.host||ep(e);return eg(t)?t.host:t}
1function ej(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eP(t);return eS(n)?(t.ownerDocument||t).body:ev(n)&&ey(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ed(o);if(!i)return t.concat(o,ej(o,[],n));{let e=eA(l);return t.concat(l,l.visualViewport||[],ey(o)?o:[],e&&n?ej(e):[])}}function eA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eD(e){let t=eO(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ev(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=W(n)!==i||W(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ek(e){return eh(e)?e:e.contextElement}function eT(e){let t=ek(e);if(!ev(t))return V(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eD(t),l=(i?W(n.width):n.width)/r,a=(i?W(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eL=V(0);function eI(e){let t=ed(e);return eR()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eL}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=V(1);t&&(r?eh(r)&&(a=eT(r)):a=eT(e));let u=(void 0===(o=n)&&(o=!1),r&&o&&r===ed(l))?eI(l):V(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l&&r){let e=ed(l),t=eh(r)?ed(r):r,n=e,o=eA(n);for(;o&&t!==n;){let e=eT(o),t=o.getBoundingClientRect(),r=eO(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,f*=e.x,d*=e.y,c+=i,s+=l,o=eA(n=ed(o))}}return en({width:f,height:d,x:c,y:s})}function eF(e,t){let n=eM(e).scrollLeft;return t?t.left+n:eN(ep(e)).left+n}function e_(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eF(e,n),y:n.top+t.scrollTop}}function eW(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=ed(e),i=ep(e),l=o.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,s=0;if(l){let e=!eR()||"fixed"===t;r?e||(c=-l.offsetLeft,s=-l.offsetTop):(a=l.width,u=l.height,e&&(c=l.offsetLeft,s=l.offsetTop))}if(0>=eF(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:u,x:c,y:s}}(e,n,t);else if("document"===t)r=function(e){let t=eM(e),n=e.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=_(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+eF(e),l=-t.scrollTop;return"rtl"===eO(n).direction&&(i+=_(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(ep(e));else if(eh(t))r=function(e,t){let n=eN(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=eT(e),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=eI(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return en(r)}function ez(e){return"static"===eO(e).position}function eV(e,t){if(!ev(e)||"fixed"===eO(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ep(e)===n&&(n=n.ownerDocument.body),n}function eB(e,t){var n;let r=ed(e);if(eb(e))return r;if(!ev(e)){let t=eP(e);for(;t&&!eS(t);){if(eh(t)&&!ez(t))return t;t=eP(t)}return r}let o=eV(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(ef(n)))&&ez(o);)o=eV(o,t);return o&&eS(o)&&ez(o)&&!eC(o)?r:o||function(e){let t=eP(e);for(;ev(t)&&!eS(t);){if(eC(t))return t;if(eb(t))break;t=eP(t)}return null}(e)||r}let eH=async function(e){let t=this.getOffsetParent||eB,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ev(t),o=ep(t),i="fixed"===n,l=eN(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=V(0);if((r||!i)&&(("body"!==ef(t)||ey(o))&&(a=eM(t)),r)){let e=eN(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&o&&(u.x=eF(o));let c=!o||r||i?V(0):e_(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.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}}},eU={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=ep(r),a=!!t&&eb(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=V(1),s=V(0),f=ev(r);if((f||!i)&&(("body"!==ef(r)||ey(l))&&(u=eM(r)),f)){let e=eN(r);c=eT(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let d=!l||f||i?V(0):e_(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+d.x,y:n.y*c.y-u.scrollTop*c.y+s.y+d.y}},getDocumentElement:ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?eb(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ej(e,[],!1).filter(e=>eh(e)&&"body"!==ef(e)),o=null,i="fixed"===eO(e).position,l=i?eP(e):e;for(;eh(l)&&!eS(l);){let e=eO(l),t=eC(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=eP(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eW(t,i[0],o),a=l.top,u=l.right,c=l.bottom,s=l.left;for(let e=1;e<i.length;e++){let n=eW(t,i[e],o);a=_(n.top,a),u=F(n.right,u),c=F(n.bottom,c),s=_(n.left,s)}return{width:u-s,height:c-a,x:s,y:a}},getOffsetParent:eB,getElementRects:eH,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=eD(e);return{width:t,height:n}},getScale:eT,isElement:eh,isRTL:function(e){return"rtl"===eO(e).direction}};function eK(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eZ=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:c,padding:s=0}=H(e,t)||{};if(null==c)return{};let f=et(s),d={x:n,y:r},p=Z(G(o)),m=$(p),h=await l.getDimensions(c),v="y"===p,g=v?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-d[p]-i.floating[m],b=d[p
1]-i.reference[p],w=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),x=w?w[g]:0;x&&await (null==l.isElement?void 0:l.isElement(w))||(x=a.floating[g]||i.floating[m]);let E=x/2-h[m]/2-1,C=F(f[v?"top":"left"],E),R=F(f[v?"bottom":"right"],E),S=x-h[m]-R,O=x/2-h[m]/2+(y/2-b/2),M=_(C,F(O,S)),P=!u.arrow&&null!=K(o)&&O!==M&&i.reference[m]/2-(O<C?C:R)-h[m]/2<0,j=P?O<C?O-C:O-S:0;return{[p]:d[p]+j,data:{[p]:M,centerOffset:O-M-j,...P&&{alignmentOffset:j}},reset:P}}}),e$=(e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...eU,...o.platform,_c:r};return ei(e,t,{...o,platform:i})};var eG=n(4887),eX="undefined"!=typeof document?l.useLayoutEffect:function(){};function eY(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eY(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)&&!eY(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eq(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eJ(e,t){let n=eq(e);return Math.round(t*n)/n}function eQ(e){let t=l.useRef(e);return eX(()=>{t.current=e}),t}let e0=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?eZ({element:n.current,padding:r}).fn(t):{}:n?eZ({element:n,padding:r}).fn(t):{}}}),e1=(e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await ec(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,t]}},e2=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=H(n,e),s={x:t,y:r}
1,f=await i.detectOverflow(e,c),d=G(o),p=Z(d),m=s[p],h=s[d],v=(e,t)=>_(t+f["y"===e?"top":"left"],F(t,t-f["y"===e?"bottom":"right"]));l&&(m=v(p,m)),a&&(h=v(d,h));let g=u.fn({...e,[p]:m,[d]:h});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[p]:l,[d]:a}}}}});return{name:r.name,fn:r.fn,options:[e,t]}},e5=(e,t)=>{var n;return{fn:(void 0===(n=e)&&(n={}),{options:n,fn(e){var t,r,o,i;let{x:l,y:a,placement:u,rects:c,middlewareData:s}=e,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=H(n,e),m={x:l,y:a},h=G(u),v=Z(h),g=m[v],y=m[h],b=H(f,e),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(t=b.mainAxis)?t:0,crossAxis:null!=(r=b.crossAxis)?r:0};if(d){let e="y"===v?"height":"width",t=c.reference[v]-c.floating[e]+w.mainAxis,n=c.reference[v]+c.reference[e]-w.mainAxis;g<t?g=t:g>n&&(g=n)}if(p){let e="y"===v?"width":"height",t=eu.has(U(u)),n=c.reference[h]-c.floating[e]+(t&&(null==(o=s.offset)?void 0:o[h])||0)+(t?0:w.crossAxis),r=c.reference[h]+c.reference[e]+(t?0:(null==(i=s.offset)?void 0:i[h])||0)-(t?w.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[v]:g,[h]:y}}}).fn,options:[e,t]}},e6=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:f,elements:d}=e,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=H(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let w=U(a),x=G(s),E=U(s)===s,C=await (null==f.isRTL?void 0:f.isRTL(d.floating)),R=h||(E||!y?[ee(s)]:function(e){let t=ee(e);return[X(e),t,X(t)]}(s)),S="none"!==g;!h&&S&&R.push(...function(e,t,n,r){let o=K(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?q:Y;return t?Y:q;case"left":case"right":return t?J:Q;default:return[]}}(U(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(X)))),i}(s,y,g,C));let O=[s,...R],M=await f.detectOverflow(e,b),P=[],j=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&P.push(M[w]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=K(e),o=Z(G(e)),i=$(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=ee(l)),[l,ee(l)]}(a,c,C);P.push(M[e[0]],M[e[1]])}if(j=[...j,{placement:a,overflows:P}],!P.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=O[e];if(t&&(!("alignment"===m&&x!==G(t))||j.every(e=>G(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:j},reset:{placement:t}};let n=null==(i=j.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=j.filter(e=>{if(S){let t=G(e.placement);return t===x||"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=s}if(a!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}},e3=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:i,platform:l,elements:a}=e,{apply:u=()=>{},...c}=H(n,e),s=await l.detectOverflow(e,c),f=U(o),d=K(o),p="y"===G(o),{width:m,height:h}=i.floating;"top"===f||"bottom"===f?(t=f,r=d===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=f,t="end"===d?"top":"bottom");let v=h-s.top-s.bottom,g=m-s.left-s.right,y=F(h-s[t],v),b=F(m-s[r],g),w=e.middlewareData.shift,x=y,E=b;null!=w&&w.enabled.x&&(E=g),null!=w&&w.enabled.y&&(x=v),w||d||(p?E=m-2*_(s.left,s.right):x=h-2*_(s.top,s.bottom)),await u({...e,availableWidth:E,availableHeight:x});let C=await l.getDimensions(a.floating);return m!==C.width||h!==C.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,t]}},e4=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t,platform:r}=e,{strategy:o="referenceHidden",...i}=H(n,e);switch(o){case"referenceHidden":{let n=el(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:ea(n)}}}case"escaped":{let n=el(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:ea(n)}}}default:return{}}}});return{name:r.name,fn:r.fn,options:[e,t]}},e7=(e,t)=>{let n=e0(e);return{name:n.name,fn:n.fn,options:[e,t]}};var e8=n(6606),e9=n(1188);function te(e){let[t,n]=l.useState(void 0);return(0,e9.b)(()=>
1{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}(0,Object.defineProperty)(te,"name",{value:"useSize",configurable:!0});var tt=Object.defineProperty,tn=(e,t)=>tt(e,"name",{value:t,configurable:!0}),tr="Popper",[to,ti]=(0,s.b)(tr),[tl,ta]=to(tr),tu=tn(e=>{let{__scopePopper:t,children:n}=e,[r,o]=l.useState(null),[i,a]=l.useState(void 0);return(0,g.jsx)(tl,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:a,children:n})},"Popper"),tc=l.forwardRef(tn(function(e,t){let{__scopePopper:n,virtualRef:r,...o}=e,i=ta("PopperAnchor",n),a=l.useRef(null),u=i.onAnchorChange,s=l.useCallback(e=>{a.current=e,e&&u(e)},[u]),f=(0,c.e)(t,s),p=l.useRef(null);l.useEffect(()=>{if(!r)return;let e=p.current;p.current=r.current,e!==p.current&&u(p.current)});let m=i.placementState&&tv(i.placementState),h=null==m?void 0:m[0],v=null==m?void 0:m[1];return r?null:(0,g.jsx)(d.WV.div,{"data-radix-popper-side":h,"data-radix-popper-align":v,...o,ref:f})},"PopperAnchor")),ts="PopperContent",[tf,td]=to(ts),tp=l.forwardRef(tn(function(e,t){var n,r,o,i,a,u,s,f,p;let{__scopePopper:m,side:h="bottom",sideOffset:v=0,align:y="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:C=0,sticky:R="partial",hideWhenDetached:S=!1,updatePositionStrategy:O="optimized",onPlaced:M,...P}=e,j=ta(ts,m),[A,D]=l.useState(null),k=(0,c.e)(t,D),[T,L]=l.useState(null),I=te(T),N=null!==(f=null==I?void 0:I.width)&&void 0!==f?f:0,W=null!==(p=null==I?void 0:I.height)&&void 0!==p?p:0,V="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},B=Array.isArray(E)?E:[E],H=B.length>0,U={padding:V,boundary:B.filter(tm),altBoundary:H},{refs:K,floatingStyles:Z,placement:$,isPositioned:G,middlewareData:X}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[f,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=l.useState(r);eY(p,r)||m(r);let[h,v]=l.useState(null),[g,y]=l.useState(null),b=l.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=l.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),x=i||h,E=a||g,C=l.useRef(null),R=l.useRef(null),S=l.useRef(f),O=null!=c,M=eQ(c),P=eQ(o),j=eQ(s),A=l.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),e$(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};D.current&&!eY(S.current,t)&&(S.current=t,eG.flushSync(()=>{d(t)}))})},[p,t,n,P,j]);eX(()=>{!1===s&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let D=l.useRef(!1);eX(()=>(D.current=!0,()=>{D.current=!1}),[]),eX(()=>{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(M.current)return M.current(x,E,A);A()}},[x,E,A,M,O]);let k=l.useMemo(()=>({reference:C,floating:R,setReference:b,setFloating:w}),[b,w]),T=l.useMemo(()=>({reference:x,floating:E}),[x,E]),L=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=eJ(T.floating,f.x),r=eJ(T.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eq(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,T.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:A,refs:k,elements:T,floatingStyles:L}),[f,A,k,T,L])}({strategy:"fixed",placement:h+("center"!==y?"-"+y:""),whileElementsMounted:tn(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:c=!1}=r,s=ek(e),f=i||l?[...s?ej(s):[],...t?ej(t):[]]:[];
1f.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let d=s&&u?function(e,t,n){let r,o=null,i=ep(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),l();let c=e.getBoundingClientRect(),{left:s,top:f,width:d,height:p}=c;if(n||t(),!d||!p)return;let m=z(f),h=z(i.clientWidth-(s+d)),v={rootMargin:-m+"px "+-h+"px "+-z(i.clientHeight-(f+p))+"px "+-z(s)+"px",threshold:_(0,F(1,u))||1},g=!0;function y(t){let n=t[0].intersectionRatio;if(!eK(c,e.getBoundingClientRect()))return a();if(n!==u){if(!g)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{o=new IntersectionObserver(y,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,v)}o.observe(e)}let u=ed(e),c=()=>a(n);return u.addEventListener("resize",c),a(!0),()=>{u.removeEventListener("resize",c),l()}}(s,n,l):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),s&&!c&&m.observe(s),t&&m.observe(t));let h=c?eN(e):null;return c&&function t(){let r=eN(e);h&&!eK(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===O})},"whileElementsMounted"),elements:{reference:j.anchor},middleware:[e1({mainAxis:v+W,alignmentAxis:b}),x&&e2({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?e5():void 0,...U}),x&&e6({...U}),e3({...U,apply:tn(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"))},"apply")}),T&&e7({element:T,padding:w}),th({arrowWidth:N,arrowHeight:W}),S&&e4({strategy:"referenceHidden",...U,boundary:H?U.boundary:void 0})]}),Y=j.setPlacementState;(0,e9.b)(()=>(Y($),()=>{Y(void 0)}),[$,Y]);let[q,J]=tv($),Q=(0,e8.W)(M);(0,e9.b)(()=>{G&&(null==Q||Q())},[G,Q]);let ee=null===(n=X.arrow)||void 0===n?void 0:n.x,et=null===(r=X.arrow)||void 0===r?void 0:r.y,en=(null===(o=X.arrow)||void 0===o?void 0:o.centerOffset)!==0,[er,eo]=l.useState();return(0,e9.b)(()=>{A&&eo(window.getComputedStyle(A).zIndex)},[A]),(0,g.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:G?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(i=X.transformOrigin)||void 0===i?void 0:i.x,null===(a=X.transformOrigin)||void 0===a?void 0:a.y].join(" "),...(null===(u=X.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,g.jsx)(tf,{scope:m,placedSide:q,placedAlign:J,onArrowChange:L,arrowX:ee,arrowY:et,shouldHideArrow:en,children:(0,g.jsx)(d.WV.div,{"data-side":q,"data-align":J,...P,ref:k,style:{...P.style,animation:G?null===(s=P.style)||void 0===s?void 0:s.animation:"none"}})})})},"PopperContent"));function tm(e){return null!==e}tn(tm,"isNotNull");var th=tn(e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,m]=tv(a),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+f/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+d/2,y="",b="";return"bottom"===p?(y=s?h:"".concat(v,"px"),b="".concat(-d,"px")):"top"===p?(y=s?h:"".concat(v,"px"),b="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),b=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),b=s?h:"".concat(g,"px")),{data:{x:y,y:b}}}}),"transformOrigin");function tv(e){let[t,n="center"]=e.split("-");return[t,n]}tn(tv,"getSideAndAlignFromPlacement");var tg=n(3832),ty=n(1599),tb=n(9255),tw=Object.defineProperty,tx=(e,t)=>tw(e,"name",{value:t,configurable:!0}),tE=!1;function tC(){let[e,t]=l.useState(tE);return l.useEffect(()=>{tE||(tE=!0,t(!0))},[]),e}tx(tC,"useIsHydrated");var tR=a[" useSyncExternalStore ".trim().toString()];function tS(){return()=>{}}function tO(){return tR(tS,()=>!0,()=>!1)}tx(tS,"subscribe"),tx(tO,"useIsHydratedModern");var tM="function"==typeof tR?tO:tC,tP=Object.defineProperty,tj=(e,t)=>tP(e,"name",{value:t,configurable:!0}),tA="rovingFocusGroup.onEntryFocus",tD={bubbles:!1,cancelable:!0},tk="RovingFocusGroup",[tT,tL,tI]=w(tk),[tN,tF]=(0,s.b)(tk,[tI]),[t_,tW]=tN(tk),tz=l.forwardRef(tj(function(e,t){return(0,g.jsx)(tT.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,g.jsx)(tT.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,g.jsx)(tV,{...e,ref:t})})})},"RovingFocusGroup")),tV=l.forwardRef(tj(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:h=!1,...v}=e,y=l.useRef(null),b=(0,c.e)(t,y),w=k(i),[x,E]=(0,f.T)({prop:a,defaultProp:null!=s?s:null,onChange:p,caller:tk}),[C,R]=l.useState(!1),S=(0,e8.W)(m),O=tL(n),M=l.useRef(!1),[P,j]=l.useState(0);return l.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(tA,S),()=>e.removeEventListener(tA,S)},[S]),(0,g.jsx)(t_,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:x,onItemFocus:l.useCallback(e=>E(e),[E]),onItemShiftTab:l.useCallback(()=>R(!0),[]),onFocusableItemAdd:l.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:l.useCallback(()=>j(e=>e-1),[]),children:(0,g.jsx)(d.WV.div,{tabIndex:C||0===P?-1:0,"data-orientation":r,...v,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,u.Mj)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,u.Mj)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(tA,tD);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>
1e.focusable);tZ([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),h)}}M.current=!1}),onBlur:(0,u.Mj)(e.onBlur,()=>R(!1))})})},"RovingFocusGroupImpl")),tB=l.forwardRef(tj(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...c}=e,s=(0,tb.M)(),f=i||s,p=tW("RovingFocusGroupItem",n),m=p.currentTabStopId===f,h=tL(n),{onFocusableItemAdd:v,onFocusableItemRemove:y,currentTabStopId:b}=p,w=tM();return(0,e9.b)(()=>{if(w&&r)return v(),()=>y()},[w,r,v,y]),l.useEffect(()=>{if(!w&&r)return v(),()=>y()},[w,r,v,y]),(0,g.jsx)(tT.ItemSlot,{scope:n,id:f,focusable:r,active:o,children:(0,g.jsx)(d.WV.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,u.Mj)(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,u.Mj)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,u.Mj)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=tK(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().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?t$(n,r+1):n.slice(r+1)}setTimeout(()=>tZ(n))}}),children:"function"==typeof a?a({isCurrentTabStop:m,hasTabStop:null!=b}):a})})},"RovingFocusGroupItem")),tH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tU(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function tK(e,t,n){let r=tU(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return tH[r]}function tZ(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}function t$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}tj(tU,"getDirectionAwareKey"),tj(tK,"getFocusIntent"),tj(tZ,"focusFirst"),tj(t$,"wrapArray");var tG=n(5478),tX=n(9157),tY=Object.defineProperty,tq=(e,t)=>tY(e,"name",{value:t,configurable:!0}),tJ=["Enter"," "],tQ=["ArrowUp","PageDown","End"],t0=["ArrowDown","PageUp","Home",...tQ];[...tJ],[...tJ];var t1="Menu",[t2,t5,t6]=w(t1),[t3,t4]=(0,s.b)(t1,[t6,ti,tF]),t7=ti(),t8=tF(),[t9,ne]=t3(t1),[nt,nn]=t3(t1),nr=tq(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,u=t7(t),[c,s]=l.useState(null),f=l.useRef(!1),d=(0,e8.W)(i),p=k(o);return l.useEffect(()=>{let e=tq(()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},"handleKeyDown"),t=tq(()=>f.current=!1,"handlePointer");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})}},[]),l.useEffect(()=>{if(!n)return;let e=tq(()=>d(!1),"handleBlur");return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,d]),(0,g.jsx)(tu,{...u,children:(0,g.jsx)(t9,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:s,children:(0,g.jsx)(nt,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:a,children:r})})})},"Menu"),no=l.forwardRef(tq(function(e,t){let{__scopeMenu:n,...r}=e,o=t7(n);return(0,g.jsx)(tc,{...o,...r,ref:t})},"MenuAnchor")),ni="MenuPortal",[nl,na]=t3(ni,{forceMount:void 0}),nu=tq(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=ne(ni,t);return(0,g.jsx)(nl,{scope:t,forceMount:n,children:(0,g.jsx)(ty.z,{present:n||i.open,children:(0,g.jsx)(tg.h,{asChild:!0,container:o,children:r})})})},"MenuPortal"),nc="MenuContent",[ns,nf]=t3(nc),nd=l.forwardRef(tq(function(e,t){let n=na(nc,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ne(nc,e.__scopeMenu),l=nn(nc,e.__scopeMenu);return(0,g.jsx)(t2.Provider,{scope:e.__scopeMenu,children:(0,g.jsx)(ty.z,{present:r||i.open,children:(0,g.jsx)(t2.Slot,{scope:e.__scopeMenu,children:l.modal?(0,g.jsx)(np,{...o,ref:t}):(0,g.jsx)(nm,{...o,ref:t})})})})},"MenuContent")),np=l.forwardRef(tq(function(e,t){let n=ne(nc,e.__scopeMenu),r=l.useRef(null),o=(0,c.e)(t,r);return l.useEffect(()=>{let e=r.current;if(e)return(0,tG.Ry)(e)},[]),(0,g.jsx)(nv,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,u.Mj)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentModal")),nm=l.forwardRef(tq(function(e,t){let n=ne(nc,e.__scopeMenu);return(0,g.jsx)(nv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentNonModal")),nh=(0,v.Z8)("MenuContent.ScrollLock"),nv=l.forwardRef(tq(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:v,disableOutsideScroll:y,...b}=e,w=ne(nc,n),x=nn(nc,n),E=t7(n),C=t8(n),R=t5(n),[S,O]=l.useState(null),M=l.useRef(null),P=(0,c.e)(t,M,w.onContentChange),j=l.useRef(0),A=l.useRef(""),D=l.useRef(0),k=l.useRef(null),N=l.useRef("right"),F=l.useRef(0),_=y?tX.Z:l.Fragment,W=tq(e=>{var t,n;let r=A.current+e,o=R().filter(e=>!e.disabled),i=document.activeElement,l=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,a=nD(o.map(e=>e.textValue),r,l),u=null===(n=o.find(e=>e.textValue===a))||void 0===n?void 0:n.ref.current;u&&setTimeout(()=>
1u.focus())},"handleTypeaheadSearch");l.useEffect(()=>()=>window.clearTimeout(j.current),[]),(0,L.EW)();let z=l.useCallback(e=>{var t,n;return N.current===(null===(t=k.current)||void 0===t?void 0:t.side)&&nT(e,null===(n=k.current)||void 0===n?void 0:n.area)},[]);return(0,g.jsx)(ns,{scope:n,searchRef:A,onItemEnter:l.useCallback(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:l.useCallback(e=>{var t;z(e)||(null===(t=M.current)||void 0===t||t.focus(),O(null))},[z]),onTriggerLeave:l.useCallback(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:D,onPointerGraceIntentChange:l.useCallback(e=>{k.current=e},[]),children:(0,g.jsx)(_,{...y?{as:nh,allowPinchZoom:!0}:void 0,children:(0,g.jsx)(I.M,{asChild:!0,trapped:o,onMountAutoFocus:(0,u.Mj)(i,e=>{var t;e.preventDefault(),null===(t=M.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:(0,g.jsx)(T.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:v,children:(0,g.jsx)(tz,{asChild:!0,...C,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:O,onEntryFocus:(0,u.Mj)(f,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,g.jsx)(tp,{role:"menu","aria-orientation":"vertical","data-state":nM(w.open),"data-radix-menu-content":"",dir:x.dir,...E,...b,ref:P,style:{outline:"none",...b.style},onKeyDown:(0,u.Mj)(b.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&&W(e.key));let o=M.current;if(e.target!==o||!t0.includes(e.key))return;e.preventDefault();let i=R().filter(e=>!e.disabled).map(e=>e.ref.current);tQ.includes(e.key)&&i.reverse(),nj(i)}),onBlur:(0,u.Mj)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(j.current),A.current="")}),onPointerMove:(0,u.Mj)(e.onPointerMove,nL(e=>{let t=e.target,n=F.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>F.current?"right":"left";N.current=t,F.current=e.clientX}}))})})})})})})},"MenuContentImpl")),ng="MenuItem",ny="menu.itemSelect",nb=l.forwardRef(tq(function(e,t){let{disabled:n=!1,onSelect:r,...o}=e,i=l.useRef(null),a=nn(ng,e.__scopeMenu),s=nf(ng,e.__scopeMenu),f=(0,c.e)(t,i),p=l.useRef(!1),m=tq(()=>{let e=i.current;if(!n&&e){let t=new CustomEvent(ny,{bubbles:!0,cancelable:!0});e.addEventListener(ny,e=>null==r?void 0:r(e),{once:!0}),(0,d.jH)(e,t),t.defaultPrevented?p.current=!1:a.onClose()}},"handleSelect");return(0,g.jsx)(nw,{...o,ref:f,disabled:n,onClick:(0,u.Mj)(e.onClick,m),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,u.Mj)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,u.Mj)(e.onKeyDown,e=>{!n&&e.target===e.currentTarget&&(""===s.searchRef.current||" "!==e.key)&&tJ.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},"MenuItem")),nw=l.forwardRef(tq(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=nf(ng,n),s=t8(n),f=l.useRef(null),p=(0,c.e)(t,f),[m,h]=l.useState(!1),[v,y]=l.useState("");return l.useEffect(()=>{let e=f.current;if(e){var t;y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[i.children]),(0,g.jsx)(t2.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:v,children:(0,g.jsx)(tB,{asChild:!0,...s,focusable:!r,children:(0,g.jsx)(d.WV.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:p,onPointerMove:(0,u.Mj)(e.onPointerMove,nL(e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,u.Mj)(e.onPointerLeave,nL(e=>a.onItemLeave(e))),onFocus:(0,u.Mj)(e.onFocus,()=>h(!0)),onBlur:(0,u.Mj)(e.onBlur,()=>h(!1))})})})},"MenuItemImpl")),[nx,nE]=t3("MenuRadioGroup",{value:void 0,onValueChange:tq(()=>{},"onValueChange")}),[nC,nR]=t3("MenuItemIndicator",{checked:!1}),[nS,nO]=t3("MenuSub");function nM(e){return e?"open":"closed"}function nP(e){return"indeterminate"===e}function nj(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function nA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function nD(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,i=nA(e,Math.max(o,0));1===r.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function nk(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;
1i=e++){let l=t[e],a=t[i],u=l.x,c=l.y,s=a.x,f=a.y;c>r!=f>r&&n<(s-u)*(r-c)/(f-c)+u&&(o=!o)}return o}function nT(e,t){return!!t&&nk({x:e.clientX,y:e.clientY},t)}function nL(e){return t=>"mouse"===t.pointerType?e(t):void 0}tq(nM,"getOpenState"),tq(nP,"isIndeterminate"),tq(function(e){return nP(e)?"indeterminate":e?"checked":"unchecked"},"getCheckedState"),tq(nj,"focusFirst"),tq(nA,"wrapArray"),tq(nD,"getNextMatch"),tq(nk,"isPointInPolygon"),tq(nT,"isPointerInGraceArea"),tq(nL,"whenMouse");var nI=Object.defineProperty,nN=(e,t)=>nI(e,"name",{value:t,configurable:!0}),nF="DropdownMenu",[n_,nW]=(0,s.b)(nF,[t4]),nz=t4(),[nV,nB]=n_(nF),nH=nN(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:u=!0}=e,c=nz(t),s=l.useRef(null),[d,p]=(0,f.T)({prop:o,defaultProp:null!=i&&i,onChange:a,caller:nF});return(0,g.jsx)(nV,{scope:t,triggerId:(0,tb.M)(),triggerRef:s,contentId:(0,tb.M)(),open:d,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,g.jsx)(nr,{...c,open:d,onOpenChange:p,dir:r,modal:u,children:n})})},"DropdownMenu"),nU=l.forwardRef(nN(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=nB("DropdownMenuTrigger",n),l=nz(n),a=(0,c.e)(t,i.triggerRef);return(0,g.jsx)(no,{asChild:!0,...l,children:(0,g.jsx)(d.WV.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:a,onPointerDown:(0,u.Mj)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,u.Mj)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})},"DropdownMenuTrigger")),nK=nN(e=>{let{__scopeDropdownMenu:t,...n}=e,r=nz(t);return(0,g.jsx)(nu,{...r,...n})},"DropdownMenuPortal"),nZ=l.forwardRef(nN(function(e,t){let{__scopeDropdownMenu:n,...r}=e,o=nB("DropdownMenuContent",n),i=nz(n),a=l.useRef(!1);return(0,g.jsx)(nd,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:(0,u.Mj)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,u.Mj)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(a.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)"}})},"DropdownMenuContent")),n$=l.forwardRef(nN(function(e,t){let{__scopeDropdownMenu:n,...r}=e,o=nz(n);return(0,g.jsx)(nb,{...o,...r,ref:t})},"DropdownMenuItem")),nG=nH,nX=nU,nY=nK,nq=nZ,nJ=n$},6097:function(e,t,n){"use strict";n.d(t,{EW:function(){return u}});var r=n(2265),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0}),l=0,a=null;function u(){r.useEffect(()=>{a||(a={start:c(),end:c()});let{start:e,end:t}=a;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),l++,()=>{1===l&&(null==a||a.start.remove(),null==a||a.end.remove(),a=null),l=Math.max(0,l-1)}},[])}function c(){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}i(function(e){return u(),e.children},"FocusGuards"),i(u,"useFocusGuards"),i(c,"createFocusGuard")},9103:function(e,t,n){"use strict";n.d(t,{M:function(){return p}});var r=n(2265),o=n(8575),i=n(6840),l=n(6606),a=n(7437),u=Object.defineProperty,c=(e,t)=>u(e,"name",{value:t,configurable:!0}),s="focusScope.autoFocusOnMount",f="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},p=r.forwardRef(c(function(e,t){let{loop:n=!1,trapped:u=!1,onMountAutoFocus:p,onUnmountAutoFocus:g,...y}=e,[b,E]=r.useState(null),C=(0,l.W)(p),S=(0,l.W)(g),O=r.useRef(null),M=(0,o.e)(t,E),P=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(u){let e=function(e){if(P.paused||!b)return;let t=e.target;b.contains(t)?O.current=t:w(O.current,{select:!0})},t=function(e){if(P.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||w(O.current,{select:!0})},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&w(b)};c(e,"handleFocusIn"),c(t,"handleFocusOut"),c(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[u,b,P.paused]),r.useEffect(()=>{if(b){x.add(P);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(s,d);b.addEventListener(s,C),b.dispatchEvent(t),t.defaultPrevented||(m(R(v(b)),{select:!0}),document.activeElement===e&&w(b))}return()=>{b.removeEventListener(s,C),setTimeout(()=>{let t=new CustomEvent(f,d);b.addEventListener(f,S),b.dispatchEvent(t),t.defaultPrevented||w(null!=e?e:document.body,{select:!0}),b.removeEventListener(f,S),x.remove(P)},0)}}},[b,C,S,P]);let j=r.useCallback(e=>{if(!n&&!u||P.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]=h(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&w(i,{select:!0})):(e.preventDefault(),n&&w(o,{select:!0})):r===t&&e.preventDefault()}},[n,u,P.paused]);return(0,a.jsx)(i.WV.div,{tabIndex:-1,...y,ref:M,onKeyDown:j})},"FocusScope"));function m(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(w(r,{select:t}),document.activeElement!==n)return}function h(e){let t=v(e);return[g(t,e),g(t.reverse(),e)]}function v(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:c(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},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function g(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):y(r,{upTo:t})))return r}function y(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}function b(e){return e instanceof HTMLInputElement&&"select"in e}function w(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&b(e)&&t&&e.select()}}c(m,"focusFirst"),c(h,"getTabbableEdges"),c(v,"getTabbableCandidates"),c(g,"findVisible"),c(y,"isHidden"),c(b,"isSelectableInput"),c(w,"focus");var x=E();function E(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=C(e,t)).unshift(t)},remove(t){var n;null===(n=(e=C(e,t))[0])||void 0===n||n.resume()}}}function C(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function R(e){return e.filter(e=>"A"!==e.tagName)}c(E,"createFocusScopesStack"),c(C,"arrayRemove"),c(R,"removeLinks")},9255:function(e,t,n){"use strict";n.d(t,{M:function(){return c}});var r,o=n(2265),i=n(1188),l=Object.defineProperty,a=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),u=0;function c(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>e??String(u++))},[e]),e||(t?`radix-${t}`:"")}l(c,"name",{value:"useId",configurable:!0})},3832:function(e,t,n){"use strict";n.d(t,{h:function(){return c}});var r=n(2265),o=n(4887),i=n(6840),l=n(1188),a=n(7437),u=Object.defineProperty,c=r.forwardRef(u(function(e,t){var n,u;let{container:c,...s}=e,[f,d]=r.useState(!1);(0,l.b)(()=>d(!0),[]);let p=c||f&&(null===(u=globalThis)||void 0===u?void 0:null===(n=u.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.WV.div,{...s,ref:t}),p):null},"name",{value:"Portal",configurable:!0}))},1599:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(2265),o=n(1188),i=Object.defineProperty,l=(e,t)=>
1i(e,"name",{value:t,configurable:!0});function a(e,t){return r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},e)}l(a,"useStateMachine");var u=l(e=>{let{present:t,children:n}=e,o=c(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),l=f(o.ref,p(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:l}):null},"Presence");function c(e){let[t,n]=r.useState(),i=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),s=r.useRef(void 0),[f,p]=a(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{if("mounted"===f){var e;c.current=null!==(e=s.current)&&void 0!==e?e:d(i.current),s.current=void 0}else c.current="none"},[f]),(0,o.b)(()=>{let t=i.current,n=u.current;if(n!==e){let r=c.current,o=d(t);e?(s.current=o,p("MOUNT")):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,o.b)(()=>{if(t){var e;let n;let r=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,o=l(e=>{let o=d(i.current).includes(CSS.escape(e.animationName));if(e.target===t&&o&&(p("ANIMATION_END"),!u.current)){let e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},"handleAnimationEnd"),a=l(e=>{e.target===t&&(c.current=d(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",o),t.addEventListener("animationend",o),()=>{r.clearTimeout(n),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",o),t.removeEventListener("animationend",o)}}p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);i.current=t,s.current=d(t)}else i.current=null;n(e)},[])}}function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=r.useRef(t);return o.current=t,r.useCallback(e=>{let t=o.current,n=!1,r=t.map(t=>{let r=s(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){let n=r[e];"function"==typeof n?n():s(t[e],null)}}},[])}function d(e){return(null==e?void 0:e.animationName)||"none"}function p(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?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?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}l(c,"usePresence"),l(s,"setRef"),l(f,"useStableComposedRefs"),l(d,"getAnimationName"),l(p,"getElementRef")},6840:function(e,t,n){"use strict";n.d(t,{WV:function(){return u},jH:function(){return c}});var r=n(2265),o=n(4887),i=n(7495),l=n(7437),a=Object.defineProperty,u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.Z8)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function c(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}a(c,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0})},7495:function(e,t,n){"use strict";n.d(t,{Z8:function(){return u},g7:function(){return c}});var r,o=n(2265),i=n(8575),l=Object.defineProperty,a=(e,t)=>l(e,"name",{value:t,configurable:!0});function u(e){let t=o.forwardRef((t,n)=>{let{children:r,...l}=t,a=null,u=!1,c=[];v(r)&&"function"==typeof w&&(r=w(r._payload)),o.Children.forEach(r,e=>{if(m(e)){u=!0;let t="child"in e.props?e.props.child:e.props.children;v(t)&&"function"==typeof w&&(t=w(t._payload)),a=f(e,t),c.push(a?.props?.children)}else c.push(e)}),a?a=o.cloneElement(a,void 0,c):!u&&1===o.Children.count(r)&&o.isValidElement(r)&&(a=r);let s=a?p(a):void 0,h=(0,i.e)(n,s);if(!a){if(r||0===r)throw Error(u?b(e):y(e));return r}let g=d(l,a.props??{});return a.type!==o.Fragment&&(g.ref=n?h:s),o.cloneElement(a,g)});return t.displayName=`${e}.Slot`,t}a(u,"createSlot");var c=u("Slot"),s=Symbol.for("radix.slottable");a(function(e){let t=a(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=s,t},"createSlottable");var f=a((e,t)=>{if("child"in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function d(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}
1:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function p(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function m(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}a(d,"mergeProps"),a(p,"getElementRef"),a(m,"isSlottable");var h=Symbol.for("react.lazy");function v(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===h&&"_payload"in e&&g(e._payload)}function g(e){return"object"==typeof e&&null!==e&&"then"in e}a(v,"isLazyComponent"),a(g,"isPromiseLike");var y=a(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),b=a(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),w=(r||(r=n.t(o,2)))[" use ".trim().toString()]},6606:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(2265);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(o,"name",{value:"useCallbackRef",configurable:!0})},5037:function(e,t,n){"use strict";n.d(t,{T:function(){return p}});var r=n(2265),o=n.t(r,2),i=n(1188),l=Object.defineProperty,a=o[" useEffectEvent ".trim().toString()],u=o[" useInsertionEffect ".trim().toString()];function c(e){if("function"==typeof a)return a(e);let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof u?u(()=>{t.current=e}):(0,i.b)(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}l(c,"name",{value:"useEffectEvent",configurable:!0});var s=Object.defineProperty,f=(e,t)=>s(e,"name",{value:t,configurable:!0}),d=o[" useInsertionEffect ".trim().toString()]||i.b;function p({prop:e,defaultProp:t,onChange:n=f(()=>{},"onChange"),caller:o}){let[i,l,a]=m({defaultProp:t,onChange:n}),u=void 0!==e;return[u?e:i,r.useCallback(t=>{if(u){let n=h(t)?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}function m({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),i=r.useRef(n),l=r.useRef(t);return d(()=>{l.current=t},[t]),r.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,o,l]}function h(e){return"function"==typeof e}f(p,"useControllableState"),f(m,"useUncontrolledState"),f(h,"isFunction");var v=Symbol("RADIX:SYNC_STATE");f(function(e,t,n,o){let{prop:i,defaultProp:l,onChange:a,caller:u}=t,s=void 0!==i,f=c(a),d=[{...n,state:l}];o&&d.push(o);let[p,m]=r.useReducer((t,n)=>{if(n.type===v)return{...t,state:n.state};let r=e(t,n);return s&&!Object.is(r.state,t.state)&&f(r.state),r},...d),h=p.state,g=r.useRef(h);r.useEffect(()=>{g.current===h||(g.current=h,s||f(h))},[h,g,s]);let y=r.useMemo(()=>void 0!==i?{...p,state:i}:p,[p,i]);return r.useEffect(()=>{s&&!Object.is(i,p.state)&&m({type:v,state:i})},[i,p.state,s]),[y,m]},"useControllableStateReducer")},1188:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(2265),o=globalThis?.document?r.useLayoutEffect:()=>{}},535:function(e,t,n){"use strict";n.d(t,{j:function(){return l}});var r=n(1994);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=r.W,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]}),c=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?void 0:null===(r=t.compoundVariants)||void 0===r?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,...c}[t]):({...a,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},9064:function(e,t,n){"use strict";let r,o;function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Toaster:function(){return eP}});var l,a=n(2265);let u={data:""},c=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||u},s=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,f=/\/\*[^]*?\*\/|  +/g,d=/\n+/g,p=(e,t)=>{let n="",r="",o="";for(let i in e){let l=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+l+";":r+="f"==i[1]?p(l,i):i+"{"+p(l,"k"==i[1]?"":t)+"}":"object"==typeof l?r+=p(l,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=l&&(i="-"==i[1]?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=p.p?p.p(i,l):i+":"+l+";")}return n+(t&&o?t+"{"+o+"}":o)+r},m={},h=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+h(e[n]);return t}return e},v=(e,t,n,r,o)=>{var i;let l=h(e),a=m[l]||(m[l]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(l));if(!m[a]){let t=l!==e?e:(e=>{let t,n,r=[{}];for(;t=s.exec(e.replace(f,""));)t[4]?r.shift():t[3]?(n=t[3].replace(d," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(d," ").trim();return r[0]})(e);m[a]=p(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let u=n&&m.g;return n&&(m.g=m[a]),i=m[a],u?t.data=t.data.replace(u,i):-1===t.data.indexOf(i)&&(t.data=r?i+t.data:t.data+i),a},g=(e,t,n)=>e.reduce((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":p(e,""):!1===e?"":e}return e+r+(null==i?"":i)},"");function y(e){let t=this||{},n=e.call?e(t.p):e;
1return v(n.unshift?n.raw?g(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,c(t.target),t.g,t.o,t.k)}y.bind({g:1});let b,w,x,E=y.bind({k:1});function C(e,t){let n=this||{};return function(){let r=arguments;function o(i,l){let a=Object.assign({},i),u=a.className||o.className;n.p=Object.assign({theme:w&&w()},a),n.o=/go\d/.test(u),a.className=y.apply(n,r)+(u?" "+u:""),t&&(a.ref=l);let c=e;return e[0]&&(c=a.as||e,delete a.as),x&&c[0]&&x(a),b(c,a)}return t?t(o):o}}function R(){let e=i(["\nfrom {\n  transform: scale(0) rotate(45deg);\n	opacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n  opacity: 1;\n}"]);return R=function(){return e},e}function S(){let e=i(["\nfrom {\n  transform: scale(0);\n  opacity: 0;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]);return S=function(){return e},e}function O(){let e=i(["\nfrom {\n  transform: scale(0) rotate(90deg);\n	opacity: 0;\n}\nto {\n  transform: scale(1) rotate(90deg);\n	opacity: 1;\n}"]);return O=function(){return e},e}function M(){let e=i(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n\n  &:after,\n  &:before {\n    content: '';\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 150ms;\n    position: absolute;\n    border-radius: 3px;\n    opacity: 0;\n    background: ",";\n    bottom: 9px;\n    left: 4px;\n    height: 2px;\n    width: 12px;\n  }\n\n  &:before {\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 180ms;\n    transform: rotate(90deg);\n  }\n"]);return M=function(){return e},e}function P(){let e=i(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n"]);return P=function(){return e},e}function j(){let e=i(["\n  width: 12px;\n  height: 12px;\n  box-sizing: border-box;\n  border: 2px solid;\n  border-radius: 100%;\n  border-color: ",";\n  border-right-color: ",";\n  animation: "," 1s linear infinite;\n"]);return j=function(){return e},e}function A(){let e=i(["\nfrom {\n  transform: scale(0) rotate(45deg);\n	opacity: 0;\n}\nto {\n  transform: scale(1) rotate(45deg);\n	opacity: 1;\n}"]);return A=function(){return e},e}function D(){let e=i(["\n0% {\n	height: 0;\n	width: 0;\n	opacity: 0;\n}\n40% {\n  height: 0;\n	width: 6px;\n	opacity: 1;\n}\n100% {\n  opacity: 1;\n  height: 10px;\n}"]);return D=function(){return e},e}function k(){let e=i(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n  &:after {\n    content: '';\n    box-sizing: border-box;\n    animation: "," 0.2s ease-out forwards;\n    opacity: 0;\n    animation-delay: 200ms;\n    position: absolute;\n    border-right: 2px solid;\n    border-bottom: 2px solid;\n    border-color: ",";\n    bottom: 6px;\n    left: 6px;\n    height: 10px;\n    width: 6px;\n  }\n"]);return k=function(){return e},e}function T(){let e=i(["\n  position: absolute;\n"]);return T=function(){return e},e}function L(){let e=i(["\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  min-width: 20px;\n  min-height: 20px;\n"]);return L=function(){return e},e}function I(){let e=i(["\nfrom {\n  transform: scale(0.6);\n  opacity: 0.4;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]);return I=function(){return e},e}function N(){let e=i(["\n  position: relative;\n  transform: scale(0.6);\n  opacity: 0.4;\n  min-width: 20px;\n  animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n"]);return N=function(){return e},e}function F(){let e=i(["\n  display: flex;\n  align-items: center;\n  background: #fff;\n  color: #363636;\n  line-height: 1.3;\n  will-change: transform;\n  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n  max-width: 350px;\n  pointer-events: auto;\n  padding: 8px 10px;\n  border-radius: 8px;\n"]);return F=function(){return e},e}function _(){let e=i(["\n  display: flex;\n  justify-content: center;\n  margin: 4px 10px;\n  color: inherit;\n  flex: 1 1 auto;\n  white-space: pre-line;\n"]);return _=function(){return e},e}function W(){let e=i(["\n  z-index: 9999;\n  > * {\n    pointer-events: auto;\n  }\n"]);return W=function(){return e},e}var z=e=>"function"==typeof e,V=(e,t)=>z(e)?e(t):e,B=(r=0,()=>(++r).toString()),H=()=>
1{if(void 0===o&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");o=!e||e.matches}return o},U="default",K=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return K(e,{type:e.toasts.find(e=>e.id===r.id)?1:0,toast:r});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(e=>e.id===o||void 0===o?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+i}))}}},Z=[],$={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},G={},X=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;G[t]=K(G[t]||$,e),Z.forEach(e=>{let[n,r]=e;n===t&&r(G[t])})},Y=e=>Object.keys(G).forEach(t=>X(e,t)),q=e=>Object.keys(G).find(t=>G[t].toasts.some(t=>t.id===e)),J=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U;return t=>{X(t,e)}},Q={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U,[n,r]=(0,a.useState)(G[t]||$),o=(0,a.useRef)(G[t]);(0,a.useEffect)(()=>(o.current!==G[t]&&r(G[t]),Z.push([t,r]),()=>{let e=Z.findIndex(e=>{let[n]=e;return n===t});e>-1&&Z.splice(e,1)}),[t]);let i=n.toasts.map(t=>{var n,r,o;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Q[t.type],style:{...e.style,...null==(o=e[t.type])?void 0:o.style,...t.style}}});return{...n,toasts:i}},et=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||B()}},en=e=>(t,n)=>{let r=et(t,e,n);return J(r.toasterId||q(r.id))({type:2,toast:r}),r.id},er=(e,t)=>en("blank")(e,t);er.error=en("error"),er.success=en("success"),er.loading=en("loading"),er.custom=en("custom"),er.dismiss=(e,t)=>{let n={type:3,toastId:e};t?J(t)(n):Y(n)},er.dismissAll=e=>er.dismiss(void 0,e),er.remove=(e,t)=>{let n={type:4,toastId:e};t?J(t)(n):Y(n)},er.removeAll=e=>er.remove(void 0,e),er.promise=(e,t,n)=>{let r=er.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let o=t.success?V(t.success,e):void 0;return o?er.success(o,{id:r,...n,...null==n?void 0:n.success}):er.dismiss(r),e}).catch(e=>{let o=t.error?V(t.error,e):void 0;o?er.error(o,{id:r,...n,...null==n?void 0:n.error}):er.dismiss(r)}),e};var eo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",{toasts:n,pausedAt:r}=ee(e,t),o=(0,a.useRef)(new Map).current,i=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(o.has(e))return;let n=setTimeout(()=>{o.delete(e),l({type:4,toastId:e})},t);o.set(e,n)},[]);(0,a.useEffect)(()=>{if(r)return;let e=Date.now(),o=n.map(n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(r<0){n.visible&&er.dismiss(n.id);return}return setTimeout(()=>er.dismiss(n.id,t),r)});return()=>{o.forEach(e=>e&&clearTimeout(e))}},[n,r,t]);let l=(0,a.useCallback)(J(t),[t]),u=(0,a.useCallback)(()=>{l({type:5,time:Date.now()})},[l]),c=(0,a.useCallback)((e,t)=>{l({type:1,toast:{id:e,height:t}})},[l]),s=(0,a.useCallback)(()=>{r&&l({type:6,time:Date.now()})},[r,l]),f=(0,a.useCallback)((e,t)=>{let{reverseOrder:r=!1,gutter:o=8,defaultPosition:i}=t||{},l=n.filter(t=>(t.position||i)===(e.position||i)&&t.height),a=l.findIndex(t=>t.id===e.id),u=l.filter((e,t)=>t<a&&e.visible).length;return l.filter(e=>e.visible).slice(...r?[u+1]:[0,u]).reduce((e,t)=>
1e+(t.height||0)+o,0)},[n]);return(0,a.useEffect)(()=>{n.forEach(e=>{if(e.dismissed)i(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[n,i]),{toasts:n,handlers:{updateHeight:c,startPause:u,endPause:s,calculateOffset:f}}},ei=E(R()),el=E(S()),ea=E(O()),eu=C("div")(M(),e=>e.primary||"#ff4b4b",ei,el,e=>e.secondary||"#fff",ea),ec=E(P()),es=C("div")(j(),e=>e.secondary||"#e0e0e0",e=>e.primary||"#616161",ec),ef=E(A()),ed=E(D()),ep=C("div")(k(),e=>e.primary||"#61d345",ef,ed,e=>e.secondary||"#fff"),em=C("div")(T()),eh=C("div")(L()),ev=E(I()),eg=C("div")(N(),ev),ey=e=>{let{toast:t}=e,{icon:n,type:r,iconTheme:o}=t;return void 0!==n?"string"==typeof n?a.createElement(eg,null,n):n:"blank"===r?null:a.createElement(eh,null,a.createElement(es,{...o}),"loading"!==r&&a.createElement(em,null,"error"===r?a.createElement(eu,{...o}):a.createElement(ep,{...o})))},eb=e=>"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n"),ew=e=>"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n"),ex=C("div")(F()),eE=C("div")(_()),eC=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=H()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[eb(n),ew(n)];return{animation:t?"".concat(E(r)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(E(o)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}},eR=a.memo(e=>{let{toast:t,position:n,style:r,children:o}=e,i=t.height?eC(t.position||n||"top-center",t.visible):{opacity:0},l=a.createElement(ey,{toast:t}),u=a.createElement(eE,{...t.ariaProps},V(t.message,t));return a.createElement(ex,{className:t.className,style:{...i,...r,...t.style}},"function"==typeof o?o({icon:l,message:u}):a.createElement(a.Fragment,null,l,u))});l=a.createElement,p.p=void 0,b=l,w=void 0,x=void 0;var eS=e=>{let{id:t,className:n,style:r,onHeightUpdate:o,children:i}=e,l=a.useCallback(e=>{if(e){let n=()=>{o(t,e.getBoundingClientRect().height)};n(),new MutationObserver(n).observe(e,{subtree:!0,childList:!0,characterData:!0})}},[t,o]);return a.createElement("div",{ref:l,className:n,style:r},i)},eO=(e,t)=>{let n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:H()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)"),...n?{top:0}:{bottom:0},...r}},eM=y(W()),eP=e=>{let{reverseOrder:t,position:n="top-center",toastOptions:r,gutter:o,children:i,toasterId:l,containerStyle:u,containerClassName:c}=e,{toasts:s,handlers:f}=eo(r,l);return a.createElement("div",{"data-rht-toaster":l||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...u},className:c,onMouseEnter:f.startPause,onMouseLeave:f.endPause},s.map(e=>{let r=e.position||n,l=eO(r,f.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:n}));return a.createElement(eS,{id:e.id,key:e.id,onHeightUpdate:f.updateHeight,className:e.visible?eM:"",style:l},"custom"===e.type?V(e.message,e):i?i(e):a.createElement(eR,{toast:e,position:r}))}))}}}]);

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.