1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2100],{10714:(e,t,n)=>{n.d(t,{s:()=>l});var r=n(14232),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(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():a(e[t],null)}}}}function l(...e){return r.useCallback(u(...e),e)}i(a,"setRef"),i(u,"composeRefs"),i(l,"useComposedRefs")},22658:(e,t,n)=>{n.d(t,{Oh:()=>l});var r=n(14232),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0}),a=0,u=null;function l(){r.useEffect(()=>{u||(u={start:c(),end:c()});let{start:e,end:t}=u;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),a++,()=>{1===a&&(u?.start.remove(),u?.end.remove(),u=null),a=Math.max(0,a-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 l(),e.children},"FocusGuards"),i(l,"useFocusGuards"),i(c,"createFocusGuard")},31893:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(14232),o=n(98477),i=n(66326),a=n(81285),u=n(37876),l=Object.defineProperty,c=r.forwardRef(l(function(e,t){let{container:n,...l}=e,[c,s]=r.useState(!1);(0,a.N)(()=>s(!0),[]);let f=n||c&&globalThis?.document?.body;return f?o.createPortal((0,u.jsx)(i.sG.div,{...l,ref:t}),f):null},"name",{value:"Portal",configurable:!0}))},33716:(e,t,n)=>{n.d(t,{mK:()=>a});var r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0}),i=!!("u">typeof window&&window.document&&window.document.createElement);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return o(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function u(e){if(!i)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function l(e){return"IFRAME"===e.tagName}o(a,"composeEventHandlers"),o(function(e){if(!i)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),o(u,"getOwnerDocument"),o(function e(t,n=!1){let{activeElement:r}=u(t);if(!r?.nodeName)return null;if(l(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=u(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),o(l,"isFrame")},34343:(e,t)=>{t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(0===n.length)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t})}return!0}},37101:(e,t,n)=>{n.d(t,{Ay:()=>Y});var r=n(14232),o=n(95062),i=n.n(o),a=n(4902),u=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function l(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=u.get(n);
1r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var c=[".DS_Store","Thumbs.db"];function s(e){return"object"==typeof e&&null!==e}function f(e){return e.filter(function(e){return -1===c.indexOf(e.name)})}function d(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function p(e){if("function"!=typeof e.webkitGetAsEntry)return m(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?h(t):m(e)}function m(e){var t=e.getAsFile();return t?Promise.resolve(l(t)):Promise.reject(e+" is not a File")}function v(e){return(0,a.sH)(this,void 0,void 0,function(){return(0,a.YH)(this,function(t){return[2,e.isDirectory?h(e):function(e){return(0,a.sH)(this,void 0,void 0,function(){return(0,a.YH)(this,function(t){return[2,new Promise(function(t,n){e.file(function(n){t(l(n,e.fullPath))},function(e){n(e)})})]})})}(e)]})})}function h(e){var t=e.createReader();return new Promise(function(e,n){var r=[];!function o(){var i=this;t.readEntries(function(t){return(0,a.sH)(i,void 0,void 0,function(){var i;return(0,a.YH)(this,function(a){switch(a.label){case 0:if(t.length)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return e(a.sent()),[3,4];case 3:return n(a.sent()),[3,4];case 4:return[3,6];case 5:i=Promise.all(t.map(v)),r.push(i),o(),a.label=6;case 6:return[2]}})})},function(e){n(e)})}()})}var g=n(34343);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var C=function(e){var t=Array.isArray(e=Array.isArray(e)&&1===e.length?e[0]:e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},S=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},O=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},D={code:"too-many-files",message:"Too many files"};function P(e,t){var n="application/x-moz-file"===e.type||(0,g.A)(e,t);return[n,n?null:C(t)]}function R(e,t,n){if(A(e.size)){if(A(t)&&A(n)){if(e.size>n)return[!1,S(n)];if(e.size<t)return[!1,O(t)]}else if(A(t)&&e.size<t)return[!1,O(t)];else if(A(n)&&e.size>n)return[!1,S(n)]}return[!0,null]}function A(e){return null!=e}function j(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function k(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function M(e){e.preventDefault()}function F(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return!j(e)&&t&&t.apply(void 0,[e].concat(r)),j(e)})}}function I(){return"showOpenFilePicker"in window}var T=["children"],L=["open"],N=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],K=["refKey","onChange","onClick"];function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(u)throw r}}return i}}(e,t)||_(e,t)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(e,t)}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var G=(0,r.forwardRef)(function(e,t){var n=e.children,o=function(){var e,t,n,o,i,a,u,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=U(U({},V),l),s=c.accept,f=c.disabled,d=c.getFilesFromEvent,p=c.maxSize,m=c.minSize,v=c.multiple,h=c.maxFiles,g=c.onDragEnter,y=c.onDragLeave,x=c.onDragOver,C=c.onDrop,S=c.onDropAccepted,O=c.onDropRejected,A=c.onFileDialogCancel,T=c.onFileDialogOpen,L=c.useFsAccessApi,W=c.preventDropOnDocument,G=c.noClick,Y=c.noKeyboard,J=c.noDrag,Q=c.noDragEventsBubbling,ee=c.validator,et=(0,r.useMemo)(function(){return"function"==typeof T?T:Z},[T]),en=(0,r.useMemo)(function(){return"function"==typeof A?A:Z},[A]),er=(0,r.useRef)(null),eo=(0,r.useRef)(null),ei=z((0,r.useReducer)(q,X),2),ea=ei[0],eu=ei[1],el=ea.isFocused,ec=ea.isFileDialogActive,es=ea.draggedFiles,ef=function(){ec&&setTimeout(function(){eo.current&&(eo.current.files.length||(eu({type:"closeDialog"}),en()))},300)};(0,r.useEffect)(function(){return L&&I()?function(){}:(window.addEventListener("focus",ef,!1),function(){window.removeEventListener("focus",ef,!1)})},[eo,ec,en,L]);var ed=(0,r.useRef)([]),ep=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ed.current=[])};(0,r.useEffect)(function(){return W&&(document.addEventListener("dragover",M,!1),document.addEventListener("drop",ep,!1)),function(){W&&(document.removeEventListener("dragover",M),document.removeEventListener("drop",ep))}},[er,W]);var em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eP(e),ed.current=[].concat(function(e){if(Array.isArray(e))return B(e)}(t=ed.current)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||_(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),k(e)&&Promise.resolve(d(e)).then(function(t){(!j(e)||Q)&&(eu({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),g&&g(e))})},[d,g,Q]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eP(e);var t=k(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&x&&x(e),!1},[x,Q]),eh=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eP(e);var t=ed.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ed.current=t,!(t.length>0)&&(eu({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),k(e)&&y&&y(e))},[er,y,Q]),eg=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=z(P(e,s),2),o=t[0],i=t[1],a=z(R(e,m,p),2),u=a[0],l=a[1],c=ee?ee(e):null;if(o&&u&&!c)n.push(e);else{var f=[i,l];c&&(f=f.concat(c)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!v&&n.length>1||v&&h>=1&&n.length>h)&&(n.forEach(function(e){r.push({file:e,errors:[D]})}),n.splice(0)),eu({acceptedFiles:n,fileRejections:r,type:"setFiles"}),C&&C(n,r,t),r.length>0&&O&&O(r,t),n.length>0&&S&&S(n,t)},[eu,v,s,m,p,h,C,S,O,ee]),ey=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eP(e),ed.current=[],k(e)&&Promise.resolve(d(e)).then(function(t){(!j(e)||Q)&&eg(t,e)}),eu({type:"reset"})},[d,eg,Q]),eb=(0,r.useCallback)(function(){if(L&&I()){eu({type:"openDialog"}),et();var e,t={multiple:v,types:[{description:"everything",accept:Array.isArray(e="string"==typeof(e=s)?e.split(","):e)?e.filter(function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}).reduce(function(e,t){return b(b({},e),{},w({},t,[]))},{}):{}}]};window.showOpenFilePicker(t).then(function(e){return d(e)}).then(function(e){return eg(e,null)}
1).catch(function(e){return en(e)}).finally(function(){return eu({type:"closeDialog"})});return}eo.current&&(eu({type:"openDialog"}),et(),eo.current.value=null,eo.current.click())},[eu,et,en,L,eg,s,v]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),eb())},[er,eo,eb]),eE=(0,r.useCallback)(function(){eu({type:"focus"})},[]),ex=(0,r.useCallback)(function(){eu({type:"blur"})},[]),eC=(0,r.useCallback)(function(){G||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(eb,0):eb())},[eo,G,eb]),eS=function(e){return f?null:e},eO=function(e){return Y?null:eS(e)},eD=function(e){return J?null:eS(e)},eP=function(e){Q&&e.stopPropagation()},eR=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,o=e.onFocus,i=e.onBlur,a=e.onClick,u=e.onDragEnter,l=e.onDragOver,c=e.onDragLeave,s=e.onDrop,d=H(e,N);return U(U($({onKeyDown:eO(F(r,ew)),onFocus:eO(F(o,eE)),onBlur:eO(F(i,ex)),onClick:eS(F(a,eC)),onDragEnter:eD(F(u,em)),onDragOver:eD(F(l,ev)),onDragLeave:eD(F(c,eh)),onDrop:eD(F(s,ey)),role:"string"==typeof n&&""!==n?n:"button"},void 0===t?"ref":t,er),f||Y?{}:{tabIndex:0}),d)}},[er,ew,eE,ex,eC,em,ev,eh,ey,Y,J,f]),eA=(0,r.useCallback)(function(e){e.stopPropagation()},[]),ej=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,o=H(e,K);return U(U({},$({accept:s,multiple:v,type:"file",style:{display:"none"},onChange:eS(F(n,ey)),onClick:eS(F(r,eA)),autoComplete:"off",tabIndex:-1},void 0===t?"ref":t,eo)),o)}},[eo,s,v,ey,f]),ek=es.length,eM=ek>0&&(t=(e={files:es,accept:s,minSize:m,maxSize:p,multiple:v,maxFiles:h}).files,n=e.accept,o=e.minSize,i=e.maxSize,a=e.multiple,u=e.maxFiles,(!!a||!(t.length>1))&&(!a||!(u>=1)||!(t.length>u))&&t.every(function(e){var t=E(P(e,n),1)[0],r=E(R(e,o,i),1)[0];return t&&r}));return U(U({},ea),{},{isDragAccept:eM,isDragReject:ek>0&&!eM,isFocused:el&&!f,getRootProps:eR,getInputProps:ej,rootRef:er,inputRef:eo,open:eS(eb)})}(H(e,T)),i=o.open,a=H(o,L);return(0,r.useImperativeHandle)(t,function(){return{open:i}},[i]),r.createElement(r.Fragment,null,n(U(U({},a),{},{open:i})))});G.displayName="Dropzone";var V={disabled:!1,getFilesFromEvent:function(e){return(0,a.sH)(this,void 0,void 0,function(){return(0,a.YH)(this,function(t){var n;if(s(e)&&s(e.dataTransfer))return[2,function(e,t){return(0,a.sH)(this,void 0,void 0,function(){var n;return(0,a.YH)(this,function(r){switch(r.label){case 0:if(null===e)return[2,[]];if(!e.items)return[3,2];if(n=d(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(p))];case 1:return[2,f(function e(t){return t.reduce(function(t,n){return(0,a.gz)(t,Array.isArray(n)?e(n):[n])},[])}(r.sent()))];case 2:return[2,f(d(e.files).map(function(e){return l(e)}))]}})})}(e.dataTransfer,e.type)];if(s(n=e)&&s(n.target))return[2,d(e.target.files).map(function(e){return l(e)})];return Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,a.sH)(this,void 0,void 0,function(){return(0,a.YH)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};G.defaultProps=V,G.propTypes={children:i().func,accept:i().oneOfType([i().string,i().arrayOf(i().string)]),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,validator:i().func};let Y=G;var X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function q(e,t){switch(t.type){case"focus":return U(U({},e),{},{isFocused:!0});case"blur":return U(U({},e),{},{isFocused:!1});case"openDialog":return U(U({},X),{},{isFileDialogActive:!0});case"closeDialog":return U(U({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return U(U({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return U(U({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return U({},X);default:return e}}function Z(){}},41907:(e,t,n)=>{n.d(t,{qW:()=>m});var r,o=n(14232),i=n(33716),a=n(66326),u=n(10714),l=n(62146),c=n(37876),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){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:w,onDismiss:E,...x}=e,C=o.useContext(p),[S,O]=o.useState(null),D=S?.ownerDocument??globalThis?.document,[,P]=o.useState({}),R=(0,u.s)(t,O),A=Array.from(C.layers),[j]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),k=j?A.indexOf(j):-1,M=S?A.indexOf(S):-1,F=C.layersWithOutsidePointerEventsDisabled.size>0,I=M>=k,T=o.useRef(!1),L=h(e=>{v?.(e),w?.(e),e.defaultPrevented||E?.()},{ownerDocument:D,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:C.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...C.branches].some(t=>t.contains(e));return I&&!t},[C.branches,I])}),N=g(e=>{if(s&&T.current)return;let t=e.target;![...C.branches].some(e=>e.contains(t))&&(b?.(e),w?.(e),e.defaultPrevented||E?.())},D),K=!!S&&M===A.length-1,z=(0,l.c)(e=>{"Escape"===e.key&&(m?.(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))});return o.useEffect(()=>{if(K)return D.addEventListener("keydown",z,{capture:!0}),()=>D.removeEventListener("keydown",z,{capture:!0})},[D,K,z]),o.useEffect(()=>{if(S)return n&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(r=D.body.style.pointerEvents,D.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(S)),C.layers.add(S),y(),()=>{n&&(C.layersWithOutsidePointerEventsDisabled.delete(S),0===C.layersWithOutsidePointerEventsDisabled.size&&(D.body.style.pointerEvents=r))}},[S,D,n,C]),o.useEffect(()=>()=>{S&&(C.layers.delete(S),C.layersWithOutsidePointerEventsDisabled.delete(S),y())},[S,C]),o.useEffect(()=>{let e=f(()=>P({}),"handleUpdate");return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,c.jsx)(a.sG.div,{...x,ref:R,style:{pointerEvents:F?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,L.onPointerDownCapture)})},"DismissableLayer"));f(function(){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},"useDismissableLayerSurface");var v=f(()=>!0,"IS_TRUE");function h(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:u=v}=t,c=(0,l.c)(e),s=o.useRef(!1),d=o.useRef(!1),p=o.useRef(new Map),m=o.useRef(()=>{});return o.useEffect(()=>{function e(){d.current=!1,i.current=!1,p.current.clear()}function t(){return Array.from(p.current.values()).some(Boolean)}function o(e){if(!d.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||p.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{d.current&&m.current()},0)}function l(e){d.current&&p.current.set(e.type,!1)}f(e,"resetOutsideInteraction"),f(t,"isOutsideInteractionIntercepted"),f(o,"handleInteractionCapture"),f(l,"handleInteractionBubble");let v=f(o=>{if(o.target&&!s.current){let a=function(){n.removeEventListener("click",m.current);let r=t();e(),r||b("dismissableLayer.pointerDownOutside",c,l,{discrete:!0})};if(f(a,"handleAndDispatchPointerDownOutsideEvent"),!u(o.target)){n.removeEventListener("click",m.current),e(
1),s.current=!1;return}let l={originalEvent:o};d.current=!0,i.current=r&&0===o.button,p.current.clear(),r&&0===o.button?(n.removeEventListener("click",m.current),m.current=a,n.addEventListener("click",m.current,{once:!0})):a()}else n.removeEventListener("click",m.current),e();s.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)n.addEventListener(e,o,!0),n.addEventListener(e,l);let g=window.setTimeout(()=>{n.addEventListener("pointerdown",v)},0);return()=>{for(let e of(window.clearTimeout(g),n.removeEventListener("pointerdown",v),n.removeEventListener("click",m.current),h))n.removeEventListener(e,o,!0),n.removeEventListener(e,l)}},[n,c,r,i,a,u]),{onPointerDownCapture:f(()=>s.current=!0,"onPointerDownCapture")}}function g(e,t=globalThis?.document){let n=(0,l.c)(e),r=o.useRef(!1);return o.useEffect(()=>{let e=f(e=>{e.target&&!r.current&&b("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:f(()=>r.current=!0,"onFocusCapture"),onBlurCapture:f(()=>r.current=!1,"onBlurCapture")}}function y(){let e=new CustomEvent(d);document.dispatchEvent(e)}function b(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,a.hO)(o,i):o.dispatchEvent(i)}f(h,"usePointerDownOutside"),f(g,"useFocusOutside"),f(y,"dispatchUpdate"),f(b,"handleAndDispatchCustomEvent")},45794:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(87430);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||(0,r.A)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62146:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(14232);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})},66326:(e,t,n)=>{n.d(t,{hO:()=>c,sG:()=>l});var r=n(14232),o=n(98477),i=n(82987),a=n(37876),u=Object.defineProperty,l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function c(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}u(c,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0})},70294:(e,t,n)=>{n.d(t,{B:()=>c});var r,o=n(14232),i=n(81285),a=Object.defineProperty,u=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),l=0;function c(e){let[t,n]=o.useState(u());return(0,i.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}a(c,"name",{value:"useId",configurable:!0})},81285:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(14232),o=globalThis?.document?r.useLayoutEffect:()=>{}},81939:(e,t,n)=>{n.d(t,{UC:()=>tv,q7:()=>th,ZL:()=>tm,bL:()=>td,wv:()=>tg,l9:()=>tp});var r=n(14232),o=n.t(r,2),i=n(33716),a=n(10714),u=n(91844),l=n(95601),c=n(66326),s=n(82987),f=n(37876),d=Object.defineProperty,p=(e,t)=>d(e,"name",{value:t,configurable:!0});function m(e){let t=e+"CollectionProvider",[n,o]=(0,u.A)(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=p(e=>{let{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,f.jsx)(i,{scope:t,itemMap:a,collectionRef:o,children:n})},"CollectionProvider");c.displayName=t;let d=e+"CollectionSlot",m=(0,s.TL)(d),v=r.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,o=l(d,n),i=(0,a.s)(t,o.collectionRef);return(0,f.jsx)(m,{ref:i,children:r})});v.displayName=d;let h=e+"CollectionItemSlot",g="data-radix-collection-item",y=(0,s.TL)(h),b=r.forwardRef((e,t)=>{let{scope:n,children:o,...i}=e,u=r.useRef(null),c=(0,a.s)(t,u),s=l(h,n);return r.useEffect(()=>(s.itemMap.set(u,{ref:u,...i}),()=>void s.itemMap.delete(u))),(0,f.jsx)(y,{...{[g]:""},ref:c,children:o})});function w(t){let n=l(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return b.displayName=h,p(w,"useCollection"),[{Provider:c,Slot:v,ItemSlot:b},w,o]}p(m,"createCollection");var v=new WeakMap,h=class e extends Map{static{p(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],v.set(this,!0)}set(e,t){return v.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),i=this.#e.length,a=b(e),u=a>=0?a:i+a,l=u<0||u>=i?-1:u;if(l===this.size||o&&l===this.size-1||-1===l)return this.set(t,n),this;let c=this.size+ +!o;a<0&&u++;let s=[...this.#e],f=!1;for(let e=u;e<c;e++)if(u===e){let i=s[e];s[e]===t&&(i=s[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{f||s[e-1]!==t||(f=!0);let n=s[f?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=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=g(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=g(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return g(this.#e,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++}}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(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,n,this])}return r}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(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}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}};function g(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=y(e,t);return -1===n?void 0:e[n]}function y(e,t){let n=e.length,r=b(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function b(e){return e!=e||0===e?0:Math.trunc(e)}function w(e,t){if(e===t)return!0;
1if("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 E(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function x(e,t){return e[1].element&&t[1].element?E(e[1].element,t[1].element)?-1:1:0}function C(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}p(g,"at"),p(y,"toSafeIndex"),p(b,"toSafeInteger"),p(function(e){let t=e+"CollectionProvider",[n,o]=(0,u.A)(t),[i,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new h,setItemMap:p(()=>void 0,"setItemMap")}),c=p(({state:e,...t})=>e?(0,f.jsx)(m,{...t,state:e}):(0,f.jsx)(d,{...t}),"CollectionProvider");c.displayName=t;let d=p(e=>{let t=O();return(0,f.jsx)(m,{...e,state:t})},"CollectionInit");d.displayName=t+"Init";let m=p(e=>{let{scope:t,children:n,state:o}=e,u=r.useRef(null),[l,c]=r.useState(null),s=(0,a.s)(u,c),[d,p]=o;return r.useEffect(()=>{if(!l)return;let e=C(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),(0,f.jsx)(i,{scope:t,itemMap:d,setItemMap:p,collectionRef:s,collectionRefObject:u,collectionElement:l,children:n})},"CollectionProviderImpl");m.displayName=t+"Impl";let v=e+"CollectionSlot",g=(0,s.TL)(v),y=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=l(v,n),i=(0,a.s)(t,o.collectionRef);return(0,f.jsx)(g,{ref:i,children:r})});y.displayName=v;let b=e+"CollectionItemSlot",E=(0,s.TL)(b),S=r.forwardRef((e,t)=>{let{scope:n,children:o,...i}=e,u=r.useRef(null),[c,s]=r.useState(null),d=(0,a.s)(t,u,s),{setItemMap:p}=l(b,n),m=r.useRef(i);w(m.current,i)||(m.current=i);let v=m.current;return r.useEffect(()=>(p(e=>c?e.has(c)?e.set(c,{...v,element:c}).toSorted(x):(e.set(c,{...v,element:c}),e.toSorted(x)):e),()=>{p(e=>c&&e.has(c)?(e.delete(c),new h(e)):e)}),[c,v,p]),(0,f.jsx)(E,{"data-radix-collection-item":"",ref:d,children:o})});function O(){return r.useState(new h)}function D(t){let{itemMap:n}=l(e+"CollectionConsumer",t);return n}return S.displayName=b,p(O,"useInitCollection"),p(D,"useCollection"),[{Provider:c,Slot:y,ItemSlot:S},{createCollectionScope:o,useCollection:D,useInitCollection:O}]},"createCollection"),p(w,"shallowEqual"),p(E,"isElementPreceding"),p(x,"sortByDocumentPosition"),p(C,"getChildListObserver");var S=Object.defineProperty,O=r.createContext(void 0);function D(e){let t=r.useContext(O);return e||t||"ltr"}S(D,"name",{value:"useDirection",configurable:!0});var P=n(41907),R=n(22658),A=n(90870),j=n(93099),k=n(31893),M=n(96822),F=n(70294),I=n(62146),T=n(81285),L=Object.defineProperty,N=(e,t)=>L(e,"name",{value:t,configurable:!0}),K=!1;function z(){let[e,t]=r.useState(K);return r.useEffect(()=>{K||(K=!0,t(!0))},[]),e}N(z,"useIsHydrated");var _=o[" useSyncExternalStore ".trim().toString()];function B(){return()=>{}}function W(){return _(B,()=>!0,()=>!1)}N(B,"subscribe"),N(W,"useIsHydratedModern");var U="function"==typeof _?W:z,$=Object.defineProperty,H=(e,t)=>$(e,"name",{value:t,configurable:!0}),G="rovingFocusGroup.onEntryFocus",V={bubbles:!1,cancelable:!0},Y="RovingFocusGroup",[X,q,Z]=m(Y),[J,Q]=(0,u.A)(Y,[Z]),[ee,et]=J(Y),en=r.forwardRef(H(function(e,t){return(0,f.jsx)(X.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(X.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(er,{...e,ref:t})})})},"RovingFocusGroup")),er=r.forwardRef(H(function(e,t){let{__scopeRovingFocusGroup:n,orientation:o,loop:u=!1,dir:s,currentTabStopId:d,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:v,preventScrollOnEntryFocus:h=!1,...g}=e,y=r.useRef(null),b=(0,a.s)(t,y),w=D(s),[E,x]=(0,l.i)({prop:d,defaultProp:p??null,onChange:m,caller:Y}),[C,S]=r.useState(!1),O=(0,I.c)(v),P=q(n),R=r.useRef(!1),[A,j]=r.useState(0);return r.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(G,O),()=>e.removeEventListener(G,O)},[O]),(0,f.jsx)(ee,{scope:n,orientation:o,dir:w,loop:u,currentTabStopId:E,onItemFocus:r.useCallback(e=>x(e),[x]),onItemShiftTab:r.useCallback(()=>S(!0),[]),onFocusableItemAdd:r.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>j(e=>e-1),[]),children:(0,f.jsx)(c.sG.div,{tabIndex:C||0===A?-1:0,"data-orientation":o,...g,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{R.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!R.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(G,V);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>
1e.focusable);el([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),h)}}R.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>S(!1))})})},"RovingFocusGroupImpl")),eo=r.forwardRef(H(function(e,t){let{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:u,children:l,...s}=e,d=(0,F.B)(),p=u||d,m=et("RovingFocusGroupItem",n),v=m.currentTabStopId===p,h=q(n),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:b}=m,w=U();return(0,T.N)(()=>{if(w&&o)return g(),()=>y()},[w,o,g,y]),r.useEffect(()=>{if(!w&&o)return g(),()=>y()},[w,o,g,y]),(0,f.jsx)(X.ItemSlot,{scope:n,id:p,focusable:o,active:a,children:(0,f.jsx)(c.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...s,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=eu(e,m.orientation,m.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=m.loop?ec(n,r+1):n.slice(r+1)}setTimeout(()=>el(n))}}),children:"function"==typeof l?l({isCurrentTabStop:v,hasTabStop:null!=b}):l})})},"RovingFocusGroupItem")),ei={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ea(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function eu(e,t,n){let r=ea(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return ei[r]}function el(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ec(e,t){return e.map((n,r)=>e[(t+r)%e.length])}H(ea,"getDirectionAwareKey"),H(eu,"getFocusIntent"),H(el,"focusFirst"),H(ec,"wrapArray");var es=n(94769),ef=n(86324),ed=Object.defineProperty,ep=(e,t)=>ed(e,"name",{value:t,configurable:!0}),em=["Enter"," "],ev=["ArrowUp","PageDown","End"],eh=["ArrowDown","PageUp","Home",...ev];[...em],[...em];var eg="Menu",[ey,eb,ew]=m(eg),[eE,ex]=(0,u.A)(eg,[ew,j.Bk,Q]),eC=(0,j.Bk)(),eS=Q(),[eO,eD]=eE(eg),[eP,eR]=eE(eg),eA=ep(e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:a,modal:u=!0}=e,l=eC(t),[c,s]=r.useState(null),d=r.useRef(!1),p=(0,I.c)(a),m=D(i);return r.useEffect(()=>{let e=ep(()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},"handleKeyDown"),t=ep(()=>d.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})}},[]),r.useEffect(()=>{if(!n)return;let e=ep(()=>p(!1),"handleBlur");return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,p]),(0,f.jsx)(j.bL,{...l,children:(0,f.jsx)(eO,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:s,children:(0,f.jsx)(eP,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:m,modal:u,children:o})})})},"Menu"),ej=r.forwardRef(ep(function(e,t){let{__scopeMenu:n,...r}=e,o=eC(n);return(0,f.jsx)(j.Mz,{...o,...r,ref:t})},"MenuAnchor")),ek="MenuPortal",[eM,eF]=eE(ek,{forceMount:void 0}),eI=ep(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=eD(ek,t);return(0,f.jsx)(eM,{scope:t,forceMount:n,children:(0,f.jsx)(M.C,{present:n||i.open,children:(0,f.jsx)(k.Z,{asChild:!0,container:o,children:r})})})},"MenuPortal"),eT="MenuContent",[eL,eN]=eE(eT),eK=r.forwardRef(ep(function(e,t){let n=eF(eT,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=eD(eT,e.__scopeMenu),a=eR(eT,e.__scopeMenu);return(0,f.jsx)(ey.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(M.C,{present:r||i.open,children:(0,f.jsx)(ey.Slot,{scope:e.__scopeMenu,children:a.modal?(0,f.jsx)(ez,{...o,ref:t}):(0,f.jsx)(e_,{...o,ref:t})})})})},"MenuContent")),ez=r.forwardRef(ep(function(e,t){let n=eD(eT,e.__scopeMenu),o=r.useRef(null),u=(0,a.s)(t,o);return r.useEffect(()=>{let e=o.current;if(e)return(0,es.Eq)(e)},[]),(0,f.jsx)(eW,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentModal")),e_=r.forwardRef(ep(function(e,t){let n=eD(eT,e.__scopeMenu);return(0,f.jsx)(eW,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},"MenuRootContentNonModal")),eB=(0,s.TL)("MenuContent.ScrollLock"),eW=r.forwardRef(ep(function(e,t){let{__scopeMenu:n,loop:o=!1,trapFocus:u,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:h,onDismiss:g,disableOutsideScroll:y,...b}=e,w=eD(eT,n),E=eR(eT,n),x=eC(n),C=eS(n),S=eb(n),[O,D]=r.useState(null),k=r.useRef(null),M=(0,a.s)(t,k,w.onContentChange),F=r.useRef(0),I=r.useRef(""),T=r.useRef(0),L=r.useRef(null),N=r.useRef("right"),K=r.useRef(0),z=y?ef.A:r.Fragment,_=ep(e=>{let t=I.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,i=e4(n.map(e=>e.textValue),t,o),a=n.find(e=>e.textValue===i)?.ref.current;a&&setTimeout(()=>a.focus())},"handleTypeaheadSearch");r.useEffect(()=>()=>window.clearTimeout(F.current),[]),(0,R.Oh)();let B=r.useCallback(e=>N.current===L.current?.side&&e8(e,L.current?.area),[]);return(0,f.jsx)(eL,{scope:n,searchRef:I,onItemEnter:r.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:r.useCallback(e=>{B(e)||(k.current?.focus(),D(null))},[B]),onTriggerLeave:r.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:T,onPointerGraceIntentChange:r.useCallback(e=>{L.current=e},[]),children:(0,f.jsx)(z,{...y?{as:eB,allowPinchZoom:!0}:void 0,children:(0,f.jsx)(A.n,{asChild:!0,trapped:u,onMountAutoFocus:(0,i.mK)(l,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,f.jsx)(P.qW,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:h,onDismiss:g,children:(0,f.jsx)(en,{asChild:!0,...C,dir:E.dir,orientation:"vertical",loop:o,currentTabStopId:O,onCurrentTabStopIdChange:D,onEntryFocus:(0,i.mK)(d,e=>{E.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,f.jsx)(j.UC,{role:"menu","aria-orientation":"vertical","data-state":e0(w.open),"data-radix-menu-content":"",dir:E.dir,...x,...b,ref:M,style:{outline:"none",...b.style},onKeyDown:(0,i.mK)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
1y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&_(e.key));let o=k.current;if(e.target!==o||!eh.includes(e.key))return;e.preventDefault();let i=S().filter(e=>!e.disabled).map(e=>e.ref.current);ev.includes(e.key)&&i.reverse(),e2(i)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(F.current),I.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,e7(e=>{let t=e.target,n=K.current!==e.clientX;e.currentTarget.contains(t)&&n&&(N.current=e.clientX>K.current?"right":"left",K.current=e.clientX)}))})})})})})})},"MenuContentImpl")),eU="MenuItem",e$="menu.itemSelect",eH=r.forwardRef(ep(function(e,t){let{disabled:n=!1,onSelect:o,...u}=e,l=r.useRef(null),s=eR(eU,e.__scopeMenu),d=eN(eU,e.__scopeMenu),p=(0,a.s)(t,l),m=r.useRef(!1),v=ep(()=>{let e=l.current;if(!n&&e){let t=new CustomEvent(e$,{bubbles:!0,cancelable:!0});e.addEventListener(e$,e=>o?.(e),{once:!0}),(0,c.hO)(e,t),t.defaultPrevented?m.current=!1:s.onClose()}},"handleSelect");return(0,f.jsx)(eG,{...u,ref:p,disabled:n,onClick:(0,i.mK)(e.onClick,v),onPointerDown:t=>{e.onPointerDown?.(t),m.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{m.current||e.currentTarget?.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(""===d.searchRef.current||" "!==e.key)&&em.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},"MenuItem")),eG=r.forwardRef(ep(function(e,t){let{__scopeMenu:n,disabled:o=!1,textValue:u,...l}=e,s=eN(eU,n),d=eS(n),p=r.useRef(null),m=(0,a.s)(t,p),[v,h]=r.useState(!1),[g,y]=r.useState("");return r.useEffect(()=>{let e=p.current;e&&y((e.textContent??"").trim())},[l.children]),(0,f.jsx)(ey.ItemSlot,{scope:n,disabled:o,textValue:u??g,children:(0,f.jsx)(eo,{asChild:!0,...d,focusable:!o,children:(0,f.jsx)(c.sG.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...l,ref:m,onPointerMove:(0,i.mK)(e.onPointerMove,e7(e=>{o?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,e7(e=>s.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>h(!0)),onBlur:(0,i.mK)(e.onBlur,()=>h(!1))})})})},"MenuItemImpl")),[eV,eY]=eE("MenuRadioGroup",{value:void 0,onValueChange:ep(()=>{},"onValueChange")}),[eX,eq]=eE("MenuItemIndicator",{checked:!1}),eZ=r.forwardRef(ep(function(e,t){let{__scopeMenu:n,...r}=e;return(0,f.jsx)(c.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})},"MenuSeparator")),[eJ,eQ]=eE("MenuSub");function e0(e){return e?"open":"closed"}function e1(e){return"indeterminate"===e}function e2(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function e3(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function e4(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=e3(e,Math.max(o,0));1===r.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}function e6(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],u=t[i],l=a.x,c=a.y,s=u.x,f=u.y;c>r!=f>r&&n<(s-l)*(r-c)/(f-c)+l&&(o=!o)}return o}function e8(e,t){return!!t&&e6({x:e.clientX,y:e.clientY},t)}function e7(e){return t=>"mouse"===t.pointerType?e(t):void 0}ep(e0,"getOpenState"),ep(e1,"isIndeterminate"),ep(function(e){return e1(e)?"indeterminate":e?"checked":"unchecked"},"getCheckedState"),ep(e2,"focusFirst"),ep(e3,"wrapArray"),ep(e4,"getNextMatch"),ep(e6,"isPointInPolygon"),ep(e8,"isPointerInGraceArea"),ep(e7,"whenMouse");var e9=Object.defineProperty,e5=(e,t)=>e9(e,"name",{value:t,configurable:!0}),te="DropdownMenu",[tt,tn]=(0,u.A)(te,[ex]),tr=ex(),[to,ti]=tt(te),ta=e5(e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:a,onOpenChange:u,modal:c=!0}=e,s=tr(t),d=r.useRef(null),[p,m]=(0,l.i)({prop:i,defaultProp:a??!1,onChange:u,caller:te});return(0,f.jsx)(to,{scope:t,triggerId:(0,F.B)(),triggerRef:d,contentId:(0,F.B)(),open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),modal:c,children:(0,f.jsx)(eA,{...s,open:p,onOpenChange:m,dir:o,modal:c,children:n})})},"DropdownMenu"),tu=r.forwardRef(e5(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,u=ti("DropdownMenuTrigger",n),l=tr(n),s=(0,a.s)(t,u.triggerRef);return(0,f.jsx)(ej,{asChild:!0,...l,children:(0,f.jsx)(c.sG.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:s,onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>
1{!r&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})},"DropdownMenuTrigger")),tl=e5(e=>{let{__scopeDropdownMenu:t,...n}=e,r=tr(t);return(0,f.jsx)(eI,{...r,...n})},"DropdownMenuPortal"),tc=r.forwardRef(e5(function(e,t){let{__scopeDropdownMenu:n,...o}=e,a=ti("DropdownMenuContent",n),u=tr(n),l=r.useRef(!1);return(0,f.jsx)(eK,{id:a.contentId,"aria-labelledby":a.triggerId,...u,...o,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{l.current||a.triggerRef.current?.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(l.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")),ts=r.forwardRef(e5(function(e,t){let{__scopeDropdownMenu:n,...r}=e,o=tr(n);return(0,f.jsx)(eH,{...o,...r,ref:t})},"DropdownMenuItem")),tf=r.forwardRef(e5(function(e,t){let{__scopeDropdownMenu:n,...r}=e,o=tr(n);return(0,f.jsx)(eZ,{...o,...r,ref:t})},"DropdownMenuSeparator")),td=ta,tp=tu,tm=tl,tv=tc,th=ts,tg=tf},82987:(e,t,n)=>{n.d(t,{TL:()=>l});var r,o=n(14232),i=n(10714),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0});function l(e){let t=o.forwardRef((t,n)=>{let{children:r,...a}=t,u=null,l=!1,c=[];v(r)&&"function"==typeof b&&(r=b(r._payload)),o.Children.forEach(r,e=>{if(p(e)){l=!0;let t="child"in e.props?e.props.child:e.props.children;v(t)&&"function"==typeof b&&(t=b(t._payload)),u=s(e,t),c.push(u?.props?.children)}else c.push(e)}),u?u=o.cloneElement(u,void 0,c):!l&&1===o.Children.count(r)&&o.isValidElement(r)&&(u=r);let m=u?d(u):void 0,h=(0,i.s)(n,m);if(!u){if(r||0===r)throw Error(l?y(e):g(e));return r}let w=f(a,u.props??{});return u.type!==o.Fragment&&(w.ref=n?h:m),o.cloneElement(u,w)});return t.displayName=`${e}.Slot`,t}u(l,"createSlot");var c=Symbol.for("radix.slottable");u(function(e){let t=u(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=c,t},"createSlottable");var s=u((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 f(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function d(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 p(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}u(f,"mergeProps"),u(d,"getElementRef"),u(p,"isSlottable");var m=Symbol.for("react.lazy");function v(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===m&&"_payload"in e&&h(e._payload)}function h(e){return"object"==typeof e&&null!==e&&"then"in e}u(v,"isLazyComponent"),u(h,"isPromiseLike");var g=u(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),y=u(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),b=(r||(r=n.t(o,2)))[" use ".trim().toString()]},86324:(e,t,n)=>{n.d(t,{A:()=>X});var r,o,i,a,u,l,c,s=n(4902),f=n(14232),d="right-scroll-bar-position",p="width-before-scroll-bar";function m(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="u">typeof window?f.useLayoutEffect:f.useEffect,h=new WeakMap,g=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),i=[],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 i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,a);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){a=!0;var t=[];if(i.length){var n=i;
1i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=(0,s.Cl)({async:!0,ssr:!1},r),u),y=function(){},b=f.forwardRef(function(e,t){var n,r,o,i,a=f.useRef(null),u=f.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),l=u[0],c=u[1],d=e.forwardProps,p=e.children,b=e.className,w=e.removeScrollBar,E=e.enabled,x=e.shards,C=e.sideCar,S=e.noRelative,O=e.noIsolation,D=e.inert,P=e.allowPinchZoom,R=e.as,A=e.gapMode,j=(0,s.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[a,t],r=function(e){return n.forEach(function(t){return m(t,e)})},(o=(0,f.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=h.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||m(e,null)}),r.forEach(function(e){t.has(e)||m(e,o)})}h.set(i,n)},[n]),i),M=(0,s.Cl)((0,s.Cl)({},j),l);return f.createElement(f.Fragment,null,E&&f.createElement(C,{sideCar:g,removeScrollBar:w,shards:x,noRelative:S,noIsolation:O,inert:D,setCallbacks:c,allowPinchZoom:!!P,lockRef:a,gapMode:A}),d?f.cloneElement(f.Children.only(p),(0,s.Cl)((0,s.Cl)({},M),{ref:k})):f.createElement(void 0===R?"div":R,(0,s.Cl)({},M,{className:b,ref:k}),p))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:p,zeroRight:d};var w=function(e){var t=e.sideCar,n=(0,s.Tt)(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 f.createElement(r,(0,s.Cl)({},n))};w.isSideCarExport=!0;var E=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var e=E();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},C=function(){var e=x();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},D=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"),"u"<typeof window)return S;var t=D(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])}},R=C(),A="data-scroll-locked",j=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"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(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(p," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(A,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},k=function(){var e=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(e)?e:0},M=function(){f.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())}},[])},F=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;M();var i=f.useMemo(function(){return P(o)},[o]);return f.createElement(R,{styles:j(i,!t,o,n?"":"!important")})},I=!1;if("u">typeof window)try{var T=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener("test",T,T),window.removeEventListener("test",T,T)}catch(e){I=!1}
1var L=!!I&&{passive:!1},N=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])},K=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),z(e,r)){var o=_(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?N(t,"overflowY"):N(t,"overflowX")},_=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,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),u=a*r,l=n.target,c=t.contains(l),s=!1,f=u>0,d=0,p=0;do{if(!l)break;var m=_(e,l),v=m[0],h=m[1]-m[2]-a*v;(v||h)&&z(e,l)&&(d+=h,p+=v);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return f&&(o&&1>Math.abs(d)||!o&&u>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-u>p)&&(s=!0),s},W=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},U=function(e){return[e.deltaX,e.deltaY]},$=function(e){return e&&"current"in e?e.current:e},H=0,G=[];let V=(l=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(H++)[0],i=f.useState(C)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,s.fX)([e.lockRef.current],(e.shards||[]).map($),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=W(e),u=n.current,l="deltaX"in e?e.deltaX:u[0]-i[0],c="deltaY"in e?e.deltaY:u[1]-i[1],s=e.target,f=Math.abs(l)>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=K(f,s);if(!m)return!0;if(m?o=f:(o="v"===f?"h":"v",m=K(f,s)),!m)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var v=r.current||o;return B(v,t,e,"h"===v?l:c,!0)},[]),l=f.useCallback(function(e){if(G.length&&G[G.length-1]===i){var n="deltaY"in e?U(e):W(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map($).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=f.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=f.useCallback(function(e){n.current=W(e),r.current=void 0},[]),p=f.useCallback(function(t){c(t.type,U(t),t.target,u(t,e.lockRef.current))},[]),m=f.useCallback(function(t){c(t.type,W(t),t.target,u(t,e.lockRef.current))},[]);f.useEffect(function(){return G.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,L),document.addEventListener("touchmove",l,L),document.addEventListener("touchstart",d,L),function(){G=G.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,L),document.removeEventListener("touchmove",l,L),document.removeEventListener("touchstart",d,L)}},[]);var v=e.removeScrollBar,h=e.inert;return f.createElement(f.Fragment,null,h?f.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?f.createElement(F,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},g.useMedium(l),w);var Y=f.forwardRef(function(e,t){return f.createElement(b,(0,s.Cl)({},e,{ref:t,sideCar:V}))});Y.classNames=b.classNames;let X=Y},90870:(e,t,n)=>{n.d(t,{n:()=>p});var r=n(14232),o=n(10714),i=n(66326),a=n(62146),u=n(37876),l=Object.defineProperty,c=(e,t)=>l(e,"name",{value:t,configurable:!0}),s="focusScope.autoFocusOnMount",f="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0}
1,p=r.forwardRef(c(function(e,t){let{loop:n=!1,trapped:l=!1,onMountAutoFocus:p,onUnmountAutoFocus:g,...y}=e,[b,x]=r.useState(null),C=(0,a.c)(p),O=(0,a.c)(g),D=r.useRef(null),P=(0,o.s)(t,x),R=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(l){let e=function(e){if(R.paused||!b)return;let t=e.target;b.contains(t)?D.current=t:w(D.current,{select:!0})},t=function(e){if(R.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||w(D.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()}}},[l,b,R.paused]),r.useEffect(()=>{if(b){E.add(R);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(s,d);b.addEventListener(s,C),b.dispatchEvent(t),t.defaultPrevented||(m(S(h(b)),{select:!0}),document.activeElement===e&&w(b))}return()=>{b.removeEventListener(s,C),setTimeout(()=>{let t=new CustomEvent(f,d);b.addEventListener(f,O),b.dispatchEvent(t),t.defaultPrevented||w(e??document.body,{select:!0}),b.removeEventListener(f,O),E.remove(R)},0)}}},[b,C,O,R]);let A=r.useCallback(e=>{if(!n&&!l||R.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]=v(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,l,R.paused]);return(0,u.jsx)(i.sG.div,{tabIndex:-1,...y,ref:P,onKeyDown:A})},"FocusScope"));function m(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(w(r,{select:t}),document.activeElement!==n)return}function v(e){let t=h(e);return[g(t,e),g(t.reverse(),e)]}function h(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,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){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,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&b(e)&&t&&e.select()}}c(m,"focusFirst"),c(v,"getTabbableEdges"),c(h,"getTabbableCandidates"),c(g,"findVisible"),c(y,"isHidden"),c(b,"isSelectableInput"),c(w,"focus");var E=x();function x(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=C(e,t)).unshift(t)},remove(t){e=C(e,t),e[0]?.resume()}}}function C(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function S(e){return e.filter(e=>"A"!==e.tagName)}c(x,"createFocusScopesStack"),c(C,"arrayRemove"),c(S,"removeLinks")},91844:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(14232),o=n(37876),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function u(e,t=[]){let n=[];function i(t,i){let u=r.createContext(i);u.displayName=t+"Context";let l=n.length;n=[...n,i];let c=a(t=>{let{scope:n,children:i,...a}=t,c=n?.[e]?.[l]||u,s=r.useMemo(()=>a,Object.values(a));return(0,o.jsx)(c.Provider,{value:s,children:i})},"Provider");function s(n,o,a={}){let{optional:c=!1}=a,f=o?.[e]?.[l]||u,d=r.useContext(f);if(d)return d;if(void 0!==i)return i;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return c.displayName=t+"Provider",a(s,"useContext"),[c,s]}a(i,"createContext");let c=a(()=>{let t=n.map(e=>r.createContext(e));return a(function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])},"useScope")},"createScope");return c.scopeName=e,[i,l(c,...t)]}function l(...e){let t=e[0];if(1===e.length)return t;let n=a(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return a(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}a(function(e,t){let n=r.createContext(t);n.displayName=e+"Context";let i=a(e=>{let{children:t,...i}=e,a=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:a,children:t})},"Provider");function u(o,i={}){let{optional:a=!1}=i,l=r.useContext(n);if(l)return l;if(void 0!==t)return t;if(!a)throw Error(`\`${o}\` must be used within \`${e}\``)}return i.displayName=e+"Provider",a(u,"useContext"),[i,u]},"createContext"),a(u,"createContextScope"),a(l,"composeContextScopes")}
1,93099:(e,t,n)=>{n.d(t,{Mz:()=>T,UC:()=>L,bL:()=>I,Bk:()=>x});var r=n(14232),o=n(72262),i=n(98477),a="u">typeof document?r.useLayoutEffect:function(){};function u(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(!u(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)&&!u(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function l(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=l(e);return Math.round(t*n)/n}function s(e){let t=r.useRef(e);return a(()=>{t.current=e}),t}var f=n(10714),d=n(91844),p=n(66326),m=n(62146),v=n(81285);function h(e){let[t,n]=r.useState(void 0);return(0,v.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(h,"name",{value:"useSize",configurable:!0});var g=n(37876),y=Object.defineProperty,b=(e,t)=>y(e,"name",{value:t,configurable:!0}),w="Popper",[E,x]=(0,d.A)(w),[C,S]=E(w),O=b(e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null),[a,u]=r.useState(void 0);return(0,g.jsx)(C,{scope:t,anchor:o,onAnchorChange:i,placementState:a,setPlacementState:u,children:n})},"Popper"),D=r.forwardRef(b(function(e,t){let{__scopePopper:n,virtualRef:o,...i}=e,a=S("PopperAnchor",n),u=r.useRef(null),l=a.onAnchorChange,c=r.useCallback(e=>{u.current=e,e&&l(e)},[l]),s=(0,f.s)(t,c),d=r.useRef(null);r.useEffect(()=>{if(!o)return;let e=d.current;d.current=o.current,e!==d.current&&l(d.current)});let m=a.placementState&&F(a.placementState),v=m?.[0],h=m?.[1];return o?null:(0,g.jsx)(p.sG.div,{"data-radix-popper-side":v,"data-radix-popper-align":h,...i,ref:s})},"PopperAnchor")),P="PopperContent",[R,A]=E(P),j=r.forwardRef(b(function(e,t){var n,d,y,w,E,x,C;let O,D,A,j,I,T,{__scopePopper:L,side:N="bottom",sideOffset:K=0,align:z="center",alignOffset:_=0,arrowPadding:B=0,avoidCollisions:W=!0,collisionBoundary:U=[],collisionPadding:$=0,sticky:H="partial",hideWhenDetached:G=!1,updatePositionStrategy:V="optimized",onPlaced:Y,...X}=e,q=S(P,L),[Z,J]=r.useState(null),Q=(0,f.s)(t,J),[ee,et]=r.useState(null),en=h(ee),er=en?.width??0,eo=en?.height??0,ei="number"==typeof $?$:{top:0,right:0,bottom:0,left:0,...$},ea=Array.isArray(U)?U:[U],eu=ea.length>0,el={padding:ei,boundary:ea.filter(k),altBoundary:eu},{refs:ec,floatingStyles:es,placement:ef,isPositioned:ed,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:m}={},transform:v=!0,whileElementsMounted:h,open:g}=e,[y,b]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,E]=r.useState(f);u(w,f)||E(f);let[x,C]=r.useState(null),[S,O]=r.useState(null),D=r.useCallback(e=>{e!==j.current&&(j.current=e,C(e))},[]),P=r.useCallback(e=>{e!==k.current&&(k.current=e,O(e))},[]),R=p||x,A=m||S,j=r.useRef(null),k=r.useRef(null),M=r.useRef(y),F=null!=h,I=s(h),T=s(d),L=s(g),N=r.useCallback(()=>{if(!j.current||!k.current)return;let e={placement:t,strategy:n,middleware:w};T.current&&(e.platform=T.current),(0,o.rD)(j.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};K.current&&!u(M.current,t)&&(M.current=t,i.flushSync(()=>{b(t)}))})},[w,t,n,T,L]);a(()=>{!1===g&&M.current.isPositioned&&(M.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[g]);let K=r.useRef(!1);a(()=>(K.current=!0,()=>{K.current=!1}),[]),a(()=>{if(R&&(j.current=R),A&&(k.current=A),R&&A){if(I.current)return I.current(R,A,N);N()}},[R,A,N,I,F]);let z=r.useMemo(()=>({reference:j,floating:k,setReference:D,setFloating:P}),[D,P]),_=r.useMemo(()=>({reference:R,floating:A}),[R,A]),B=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!_.floating)return e;let t=c(_.floating,y.x),r=c(_.floating,y.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...l(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,v,_.floating,y.x,y.y]);return r.useMemo(()=>({...y,update:N,refs:z,elements:_,floatingStyles:B}),[y,N,z,_,B])}({strategy:"fixed",placement:N+("center"!==z?"-"+z:""),whileElementsMounted:b((...e)=>(0,o.ll)(...e,{animationFrame:"always"===V}),"whileElementsMounted"),elements:{reference:q.anchor},middleware:[(n={mainAxis:K+eo,alignmentAxis:_},{name:(O=(0,o.cY)(n)).name,fn:O.fn,options:[n,void 0]}),W&&(d={mainAxis:!0,crossAxis:!1,limiter:"partial"===H?{fn:(0,o.ER)(void 0).fn,options:[void 0,void 0]}:void 0,...el},{name:(D=(0,o.BN)(d)).name,fn:D.fn,options:[d,void 0]}),W&&(y={...el},{name:(A=(0,o.UU)(y)).name,fn:A.fn,options:[y,void 0]}),(w={...el,apply:b(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")},{name:(j=(0,o.Ej)(w)).name,fn:j.fn,options:[w,void 0]}),ee&&{name:(I={name:"arrow",options:x=E={element:ee,padding:B},fn(e){let{element:t,padding:n}="function"==typeof x?x(e):x;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?(0,o.UE)({element:t.current,padding:n}).fn(e):{}:t?(0,o.UE)({element:t,padding:n}).fn(e):{}}}).name,fn:I.fn,options:[E,void 0]},M({arrowWidth:er,arrowHeight:eo}),G&&(C={strategy:"referenceHidden",...el,boundary:eu?el.boundary:void 0},{name:(T=(0,o.jD)(C)).name,fn:T.fn,options:[C,void 0]})]}),em=q.setPlacementState;(0,v.N)(()=>(em(ef),()=>{em(void 0)}),[ef,em]);let[ev,eh]=F(ef),eg=(0,m.c)(Y);(0,v.N)(()=>{ed&&eg?.()},[ed,eg]);let ey=ep.arrow?.x,eb=ep.arrow?.y,ew=ep.arrow?.centerOffset!==0,[eE,ex]=r.useState();
1return(0,v.N)(()=>{Z&&ex(window.getComputedStyle(Z).zIndex)},[Z]),(0,g.jsx)("div",{ref:ec.setFloating,"data-radix-popper-content-wrapper":"",style:{...es,transform:ed?es.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eE,"--radix-popper-transform-origin":[ep.transformOrigin?.x,ep.transformOrigin?.y].join(" "),...ep.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,g.jsx)(R,{scope:L,placedSide:ev,placedAlign:eh,onArrowChange:et,arrowX:ey,arrowY:eb,shouldHideArrow:ew,children:(0,g.jsx)(p.sG.div,{"data-side":ev,"data-align":eh,...X,ref:Q,style:{...X.style,animation:ed?X.style?.animation:"none"}})})})},"PopperContent"));function k(e){return null!==e}b(k,"isNotNull");var M=b(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,c]=F(n),s={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+u/2,p="",m="";return"bottom"===l?(p=i?s:`${f}px`,m=`${-u}px`):"top"===l?(p=i?s:`${f}px`,m=`${r.floating.height+u}px`):"right"===l?(p=`${-u}px`,m=i?s:`${d}px`):"left"===l&&(p=`${r.floating.width+u}px`,m=i?s:`${d}px`),{data:{x:p,y:m}}}}),"transformOrigin");function F(e){let[t,n="center"]=e.split("-");return[t,n]}b(F,"getSideAndAlignFromPlacement");var I=O,T=D,L=j},94769:(e,t,n)=>{n.d(t,{Eq:()=>c});var r=new WeakMap,o=new WeakMap,i={},a=0,u=function(e){return e&&(e.host||u(e.parentNode))},l=function(e,t,n,l){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=u(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 v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))v(e);else try{var t=e.getAttribute(l),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,u=(s.get(e)||0)+1;r.set(e,a),s.set(e,u),f.push(e),1===a&&i&&o.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),d.clear(),a++,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(l),o.delete(e)),i||e.removeAttribute(n)}),--a||(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||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),l(r,o,n,"aria-hidden")):function(){return null}}},95601:(e,t,n)=>{n.d(t,{i:()=>p});var r=n(14232),o=n.t(r,2),i=n(81285),a=Object.defineProperty,u=o[" useEffectEvent ".trim().toString()],l=o[" useInsertionEffect ".trim().toString()];function c(e){if("function"==typeof u)return u(e);let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof l?l(()=>{t.current=e}):(0,i.N)(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}a(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.N;function p({prop:e,defaultProp:t,onChange:n=f(()=>{},"onChange"),caller:o}){let[i,a,u]=m({defaultProp:t,onChange:n}),l=void 0!==e,c=l?e:i;return[c,r.useCallback(t=>{if(l){let n=v(t)?t(e):t;n!==e&&u.current?.(n)}else a(t)},[l,e,a,u])]}function m({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return d(()=>{a.current=t},[t]),r.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}function v(e){return"function"==typeof e}f(p,"useControllableState"),f(m,"useUncontrolledState"),f(v,"isFunction");var h=Symbol("RADIX:SYNC_STATE");f(function(e,t,n,o){let{prop:i,defaultProp:a,onChange:u,caller:l}=t,s=void 0!==i,f=c(u),d=[{...n,state:a}];o&&d.push(o);let[p,m]=r.useReducer((t,n)=>{if(n.type===h)return{...t,state:n.state};let r=e(t,n);return s&&!Object.is(r.state,t.state)&&f(r.state),r},...d),v=p.state,g=r.useRef(v);r.useEffect(()=>{g.current!==v&&(g.current=v,s||f(v))},[v,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:h,state:i})},[i,p.state,s]),[y,m]},"useControllableStateReducer")},96822:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(14232),o=n(81285),i=Object.defineProperty,a=(e,t)=>i(e,"name",{value:t,configurable:!0});function u(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}a(u,"useStateMachine");var l=a(e=>{let{present:t,children:n}=e,o=c(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=f(o.ref,p(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null},"Presence");function c(e){let[t,n]=r.useState(),i=r.useRef(null),l=r.useRef(e),c=r.useRef("none"),s=r.useRef(void 0),[f,p]=u(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{"mounted"===f?(c.current=s.current??d(i.current),s.current=void 0):c.current="none"},[f]),(0,o.N)(()=>{let t=i.current,n=l.current;if(n!==e){let r=c.current,o=d(t);e?(s.current=o,p("MOUNT")):"none"===o||t?.display==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),l.current=e}},[e,p]),(0,o.N)(()=>
1{if(t){let e,n=t.ownerDocument.defaultView??window,r=a(r=>{let o=d(i.current).includes(CSS.escape(r.animationName));if(r.target===t&&o&&(p("ANIMATION_END"),!l.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),o=a(e=>{e.target===t&&(c.current=d(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",o),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",o),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}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(...e){let t=r.useRef(e);return t.current=e,r.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=s(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){let t=o[e];"function"==typeof t?t():s(n[e],null)}}},[])}function d(e){return e?.animationName||"none"}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}a(c,"usePresence"),a(s,"setRef"),a(f,"useStableComposedRefs"),a(d,"getAnimationName"),a(p,"getElementRef")}}]);
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.