orqevio 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/assets/AccessKeyReveal-BhGhJ9TO.js +2 -0
- package/dist/web/assets/{AccessRows-BvqV7IBl.js → AccessRows-BukzKFuJ.js} +1 -1
- package/dist/web/assets/ActivityList-TVMXixkB.js +1 -0
- package/dist/web/assets/AgentsPage-lZ18h_Fd.js +1 -0
- package/dist/web/assets/Avatar-B1img0gb.js +1 -0
- package/dist/web/assets/BoardPage-DiTjq46K.js +1 -0
- package/dist/web/assets/{Button-DFtiJeUa.js → Button-CHkkj3LG.js} +1 -1
- package/dist/web/assets/CardItem-BAkxFtTs.js +5 -0
- package/dist/web/assets/{Checkbox-D2glB_5Z.js → Checkbox-S2SJTJty.js} +1 -1
- package/dist/web/assets/ColorPicker-DSVbH2ix.js +1 -0
- package/dist/web/assets/ConsentPage-CXS-bOLl.js +1 -0
- package/dist/web/assets/{CopyButton-DPGirLsh.js → CopyButton-BDbxvAXk.js} +1 -1
- package/dist/web/assets/DocPage-8QmjOXZg.js +1 -0
- package/dist/web/assets/{EmptyState-NLNYFMbg.js → EmptyState-D6CMbgBz.js} +1 -1
- package/dist/web/assets/Field-BsUKJQ-4.js +1 -0
- package/dist/web/assets/HomePage-Bm_gsAiP.js +1 -0
- package/dist/web/assets/{Menu-D1dtpXQc.js → Menu-CzgZwzmu.js} +2 -2
- package/dist/web/assets/{PageHeader-6CKm6Nmk.js → PageHeader-DJdrnGpr.js} +1 -1
- package/dist/web/assets/Phrases-C89QdC4L.js +1 -0
- package/dist/web/assets/Popover-BVPB22vZ.js +1 -0
- package/dist/web/assets/ProjectPage-hVAuJHb8.js +1 -0
- package/dist/web/assets/ProjectSettingsDialog-ekHTFmaO.js +1 -0
- package/dist/web/assets/Segmented-BibQ5uCT.js +1 -0
- package/dist/web/assets/SettingsPage-BlACK1Ir.js +1 -0
- package/dist/web/assets/{States-YdzeahGB.js → States-D9T0E3QG.js} +1 -1
- package/dist/web/assets/TokenCard-DcxUdsB4.js +1 -0
- package/dist/web/assets/{Trans-BeLoTtlV.js → Trans-CA0OvHif.js} +1 -1
- package/dist/web/assets/TrashPage-DtEce2C1.js +1 -0
- package/dist/web/assets/VaultPage-BXNKzLjV.js +9 -0
- package/dist/web/assets/actions-TwDLbdln.js +1 -0
- package/dist/web/assets/activity-B1PkPN4e.js +1 -0
- package/dist/web/assets/activity-BRWOTTDg.js +1 -0
- package/dist/web/assets/activity-C0-uReAO.js +1 -0
- package/dist/web/assets/activity-C3YOucKo.js +1 -0
- package/dist/web/assets/activity-C48FEjNJ.js +1 -0
- package/dist/web/assets/activity-DdBRZVdk.js +1 -0
- package/dist/web/assets/activity-DquwEWD-.js +1 -0
- package/dist/web/assets/activity-SBZ_4XNf.js +1 -0
- package/dist/web/assets/agents-Buz9Zce-.js +1 -0
- package/dist/web/assets/{agents-D2HbGZdI.js → agents-BxCzIQgy.js} +1 -1
- package/dist/web/assets/agents-BzG9ir4p.js +1 -0
- package/dist/web/assets/agents-C7L2c8Cf.js +1 -0
- package/dist/web/assets/agents-CyUmWDtj.js +1 -0
- package/dist/web/assets/agents-D1YGo2XZ.js +1 -0
- package/dist/web/assets/agents-koE0DpBZ.js +1 -0
- package/dist/web/assets/{arrow-up-right-CZaZGd2b.js → arrow-up-right-GSt0z737.js} +1 -1
- package/dist/web/assets/boards-B-WHIuH2.js +1 -0
- package/dist/web/assets/boards-B3p4wLVZ.js +1 -0
- package/dist/web/assets/boards-CP12iEvX.js +1 -0
- package/dist/web/assets/boards-CYp6cMIS.js +1 -0
- package/dist/web/assets/boards-Ca3KSy81.js +1 -0
- package/dist/web/assets/boards-OpNgmCCm.js +1 -0
- package/dist/web/assets/boards-foiEeGvs.js +1 -0
- package/dist/web/assets/check-A2t_TRNF.js +1 -0
- package/dist/web/assets/chevron-down-MyAtFaeL.js +1 -0
- package/dist/web/assets/chevron-right-BGyQzokh.js +1 -0
- package/dist/web/assets/{clock-Or1e2dj9.js → clock-Dat3GIX9.js} +1 -1
- package/dist/web/assets/{common-DL87-WQe.js → common-BLSBOlPd.js} +1 -1
- package/dist/web/assets/{common-BQxUpELz.js → common-BZo-O4r0.js} +1 -1
- package/dist/web/assets/{common-DB87cQ0w.js → common-BvUgU13J.js} +1 -1
- package/dist/web/assets/{common-BEzNU6dg.js → common-CDo5Zjav.js} +1 -1
- package/dist/web/assets/{common-pmlLlsX2.js → common-CXXpaLMm.js} +1 -1
- package/dist/web/assets/{common-BVdHyWon.js → common-Dl9_WOhO.js} +1 -1
- package/dist/web/assets/{common-DIIWFfP1.js → common-LzzrLTeh.js} +1 -1
- package/dist/web/assets/dist-DFO0RDUp.js +1 -0
- package/dist/web/assets/docs-BFui74ut.js +1 -0
- package/dist/web/assets/docs-BGjDA7YS.js +1 -0
- package/dist/web/assets/docs-BZzvZnYG.js +1 -0
- package/dist/web/assets/docs-Bs3C4UtI.js +1 -0
- package/dist/web/assets/docs-CWqekQ-5.js +1 -0
- package/dist/web/assets/docs-Dt4EOOY5.js +1 -0
- package/dist/web/assets/docs-a_cikk8v.js +1 -0
- package/dist/web/assets/download-CHH-5Z1W.js +1 -0
- package/dist/web/assets/{download-DeNtxt4D.js → download-CRdduKx2.js} +1 -1
- package/dist/web/assets/{eye-DqmmpIUP.js → eye-CkYWwyJN.js} +1 -1
- package/dist/web/assets/{file-plus-B9RcccJq.js → file-plus-B9m4uZcE.js} +1 -1
- package/dist/web/assets/{folder-open-B5eZ7cqb.js → folder-open-DCuG03EB.js} +1 -1
- package/dist/web/assets/{format-DEwJtk6a.js → format-Dk1nO38Z.js} +6 -6
- package/dist/web/assets/history-B_oC_ChK.js +1 -0
- package/dist/web/assets/history-BdWMN_eX.js +1 -0
- package/dist/web/assets/history-CUVz8O2h.js +1 -0
- package/dist/web/assets/history-DSrp6n_e.js +1 -0
- package/dist/web/assets/history-EriRbg5Q.js +1 -0
- package/dist/web/assets/history-QanrHfJr.js +1 -0
- package/dist/web/assets/history-wSBPUVnX.js +1 -0
- package/dist/web/assets/{index-DXZdSAQ6.js → index-DaNg7x81.js} +3 -3
- package/dist/web/assets/index-NdrHk7JO.css +2 -0
- package/dist/web/assets/{lock-keyhole-BSIBvxdl.js → lock-keyhole-DVrMCpqy.js} +1 -1
- package/dist/web/assets/markdown-html-3z2pX2_I.css +1 -0
- package/dist/web/assets/{Attachments-Ehl3SEHq.js → markdown-html-Bbis0Fwx.js} +31 -31
- package/dist/web/assets/module-Drxjodh-.js +1 -0
- package/dist/web/assets/paperclip-BnASHXPW.js +1 -0
- package/dist/web/assets/{pencil-BgKjfUw7.js → pencil-C37OTkSN.js} +1 -1
- package/dist/web/assets/plus-DcOCeQtr.js +1 -0
- package/dist/web/assets/realtime-Dn6o1BHn.js +1 -0
- package/dist/web/assets/restore-CAzTqClb.js +1 -0
- package/dist/web/assets/router-BVJjZgrw.js +1 -0
- package/dist/web/assets/router-C3-WXlLY.js +6 -0
- package/dist/web/assets/{search-THqOJIwW.js → search-6TSW8Big.js} +1 -1
- package/dist/web/assets/session-BdZhhrrQ.js +1 -0
- package/dist/web/assets/settings-BfiF3vRe.js +1 -0
- package/dist/web/assets/settings-C6avg4dt.js +1 -0
- package/dist/web/assets/settings-CxYlS5HR.js +1 -0
- package/dist/web/assets/settings-D2SYA_T6.js +1 -0
- package/dist/web/assets/settings-DGz7mzx_.js +1 -0
- package/dist/web/assets/settings-Dlc_FiDv.js +1 -0
- package/dist/web/assets/settings-UmVB6e9k.js +1 -0
- package/dist/web/assets/{shield-exclamation-point-XUMrMBnT.js → shield-exclamation-point-sqW5yuTY.js} +1 -1
- package/dist/web/assets/{square-kanban-CMvSaNex.js → square-kanban-Cd_tPOtx.js} +1 -1
- package/dist/web/assets/{sticky-note-DQns5zF8.js → sticky-note-hvgZ-pol.js} +1 -1
- package/dist/web/assets/sync-Byk1kJR_.js +1 -0
- package/dist/web/assets/{tag-5EiSR0t7.js → tag-CBK0qBXV.js} +1 -1
- package/dist/web/assets/trash-BCjrjoKX.js +1 -0
- package/dist/web/assets/trash-BtTKuFPT.js +2 -0
- package/dist/web/assets/trash-CODwqcnD.js +1 -0
- package/dist/web/assets/{trash-CBo3hCgY.js → trash-CkQBpprn.js} +1 -1
- package/dist/web/assets/trash-DfFAQqPy.js +1 -0
- package/dist/web/assets/trash-on2wbvUn.js +1 -0
- package/dist/web/assets/trash-s5Pa3Sa3.js +1 -0
- package/dist/web/assets/trash-s8qvLvgr.js +1 -0
- package/dist/web/assets/trash-sikRutjz.js +1 -0
- package/dist/web/assets/{triangle-exclamation-point-fRu34PHx.js → triangle-exclamation-point-BTUlFMkc.js} +1 -1
- package/dist/web/index.html +34 -34
- package/dist/worker/index.js +630 -131
- package/package.json +1 -1
- package/dist/web/assets/AccessKeyReveal-B8-53IsG.js +0 -2
- package/dist/web/assets/ActivityList-CMeaCWkv.js +0 -1
- package/dist/web/assets/AgentsPage-BFV4Irgu.js +0 -1
- package/dist/web/assets/Attachments-BWc36ATf.css +0 -1
- package/dist/web/assets/Avatar-XLUId3O5.js +0 -1
- package/dist/web/assets/BoardPage-yeO36gca.js +0 -1
- package/dist/web/assets/CardItem-BJSe5Yys.js +0 -5
- package/dist/web/assets/ColorPicker-DXWll90z.js +0 -1
- package/dist/web/assets/ConsentPage-LsyaMLAu.js +0 -1
- package/dist/web/assets/DocPage-LDbLYm22.js +0 -1
- package/dist/web/assets/Field-CJ08Txzu.js +0 -1
- package/dist/web/assets/HomePage-C5tasScn.js +0 -1
- package/dist/web/assets/Popover-rUw84XS3.js +0 -1
- package/dist/web/assets/ProjectPage-sRIqleNm.js +0 -1
- package/dist/web/assets/ProjectSettingsDialog-Bu9Nh_f1.js +0 -1
- package/dist/web/assets/Segmented-CkRO6dAI.js +0 -1
- package/dist/web/assets/SettingsPage--HzCtlxW.js +0 -1
- package/dist/web/assets/TokenCard-Cxa4noi9.js +0 -1
- package/dist/web/assets/TrashPage-eI708eSb.js +0 -1
- package/dist/web/assets/VaultPage-DZ8whuhV.js +0 -9
- package/dist/web/assets/actions-BHpEdIG-.js +0 -1
- package/dist/web/assets/activity-B9yvTGRK.js +0 -1
- package/dist/web/assets/activity-BhJh5gr8.js +0 -1
- package/dist/web/assets/activity-C6uHBG-k.js +0 -1
- package/dist/web/assets/activity-C_Gj6kNm.js +0 -1
- package/dist/web/assets/activity-DE5W3_Zl.js +0 -1
- package/dist/web/assets/activity-Da3DZwfO.js +0 -1
- package/dist/web/assets/activity-DklyxS1p.js +0 -1
- package/dist/web/assets/activity-DqxJDBNZ.js +0 -1
- package/dist/web/assets/agents-BT7hhkmJ.js +0 -1
- package/dist/web/assets/agents-CH9hiW4n.js +0 -1
- package/dist/web/assets/agents-dOyd7e_g.js +0 -1
- package/dist/web/assets/agents-hwFgCutb.js +0 -1
- package/dist/web/assets/agents-mGUE0KF4.js +0 -1
- package/dist/web/assets/agents-rpBGYkV5.js +0 -1
- package/dist/web/assets/boards-B55T0dLc.js +0 -1
- package/dist/web/assets/boards-BJtzDCZ4.js +0 -1
- package/dist/web/assets/boards-BK-HIes0.js +0 -1
- package/dist/web/assets/boards-BRGCpMCs.js +0 -1
- package/dist/web/assets/boards-D9ITCVkH.js +0 -1
- package/dist/web/assets/boards-DAtCVLZ8.js +0 -1
- package/dist/web/assets/boards-DkGEJNsi.js +0 -1
- package/dist/web/assets/check-zaEYRgm_.js +0 -1
- package/dist/web/assets/chevron-right-CKppr8-s.js +0 -1
- package/dist/web/assets/dist-BXudX2C8.js +0 -1
- package/dist/web/assets/docs-CdU1zlr_.js +0 -1
- package/dist/web/assets/docs-CozS3xm2.js +0 -1
- package/dist/web/assets/docs-DL4bSiKv.js +0 -1
- package/dist/web/assets/docs-DdRzy2fY.js +0 -1
- package/dist/web/assets/docs-DjihmilZ.js +0 -1
- package/dist/web/assets/docs-DkxJ3bH2.js +0 -1
- package/dist/web/assets/docs-Duf_UKKw.js +0 -1
- package/dist/web/assets/history-BTSLGRUd.js +0 -1
- package/dist/web/assets/history-BYQKniZP.js +0 -1
- package/dist/web/assets/history-CCBPyinv.js +0 -1
- package/dist/web/assets/history-DJRWWqQM.js +0 -1
- package/dist/web/assets/history-DKzmm79r.js +0 -1
- package/dist/web/assets/history-DTKtuTix.js +0 -1
- package/dist/web/assets/history-DiKunONf.js +0 -1
- package/dist/web/assets/index-JKAKpcGm.css +0 -2
- package/dist/web/assets/paperclip-45hm0LEK.js +0 -1
- package/dist/web/assets/plus-DkN0_LKK.js +0 -1
- package/dist/web/assets/realtime-D4IlZ7la.js +0 -1
- package/dist/web/assets/restore-2dQEOQsU.js +0 -1
- package/dist/web/assets/router-Dq52n_dF.js +0 -1
- package/dist/web/assets/router-i53kBtjJ.js +0 -6
- package/dist/web/assets/session-BuK7KqOl.js +0 -1
- package/dist/web/assets/settings-B2K0CC6S.js +0 -1
- package/dist/web/assets/settings-C6mEKUST.js +0 -1
- package/dist/web/assets/settings-CHHy3vrT.js +0 -1
- package/dist/web/assets/settings-CcG0OlNC.js +0 -1
- package/dist/web/assets/settings-Clq39MFV.js +0 -1
- package/dist/web/assets/settings-D5LDNHZs.js +0 -1
- package/dist/web/assets/settings-DOUFAQf_.js +0 -1
- package/dist/web/assets/sync-7NhCAmaJ.js +0 -1
- package/dist/web/assets/trash-BS2DxHiH.js +0 -1
- package/dist/web/assets/trash-Blx5xyGN.js +0 -1
- package/dist/web/assets/trash-C8iQ5jx0.js +0 -1
- package/dist/web/assets/trash-D4IUwUwV.js +0 -1
- package/dist/web/assets/trash-D6VCYSPP.js +0 -1
- package/dist/web/assets/trash-DHTLFm0L.js +0 -1
- package/dist/web/assets/trash-DlhKL2Eo.js +0 -2
- package/dist/web/assets/trash-Duy-tBWH.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{Gt as n,Kt as r,gt as i,ht as a}from"./format-DEwJtk6a.js";var o=t((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),s=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=o()})),c=e(r(),1),l=Object.defineProperty,u=(e,t)=>l(e,`name`,{value:t,configurable:!0});function d(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}u(d,`setRef`);function f(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():d(e[t],null)}}}}u(f,`composeRefs`);function p(...e){return c.useCallback(f(...e),e)}u(p,`useComposedRefs`);var m=n(),h=e(s(),1),g=Object.defineProperty,_=(e,t)=>g(e,`name`,{value:t,configurable:!0});function v(e){let t=c.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=O(r),c.Children.forEach(r,e=>{if(w(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;E(n)&&typeof j==`function`;)n=j(n._payload);a=x(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=c.cloneElement(a,void 0,s):!o&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);let l=a?C(a):void 0,u=p(n,l);if(!a){if(r||r===0)throw Error(o?A(e):ee(e));return r}let d=S(i,a.props??{});return a.type!==c.Fragment&&(d.ref=n?u:l),c.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}_(v,`createSlot`);var y=Symbol.for(`radix.slottable`);function b(e){let t=_(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=y,t}_(b,`createSlottable`);var x=_((e,t)=>`child`in e.props?c.isValidElement(t)?c.cloneElement(t,void 0,e.props.children(t.props.children)):null:c.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function S(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=k(a,i))}return{...e,...n}}_(S,`mergeProps`);function C(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}_(C,`getElementRef`);function w(e){return c.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===y}_(w,`isSlottable`);var T=Symbol.for(`react.lazy`);function E(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===T&&`_payload`in e&&D(e._payload)}_(E,`isLazyComponent`);function D(e){return typeof e==`object`&&!!e&&`then`in e}_(D,`isPromiseLike`);function O(e){let t=e;for(;E(t)&&typeof j==`function`;)t=j(t._payload);return t}_(O,`useUnwrappedLazy`);function k(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}_(k,`concatAriaDescribedby`);var ee=_(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),A=_(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),j=c.use,te=Object.defineProperty,M=(e,t)=>te(e,`name`,{value:t,configurable:!0}),N=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=c.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,m.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ne(e,t){e&&h.flushSync(()=>e.dispatchEvent(t))}M(ne,`dispatchDiscreteCustomEvent`);var re=Object.defineProperty,P=(e,t)=>re(e,`name`,{value:t,configurable:!0}),ie=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),ae=c.forwardRef(P(function(e,t){return(0,m.jsx)(N.span,{...e,ref:t,style:{...ie,...e.style}})},`VisuallyHidden`)),oe=Object.defineProperty,F=(e,t)=>oe(e,`name`,{value:t,configurable:!0});function se(e,t){let n=c.createContext(t);n.displayName=e+`Context`;let r=F(e=>{let{children:t,...r}=e,i=c.useMemo(()=>r,Object.values(r));return(0,m.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=c.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return F(i,`useContext`),[r,i]}F(se,`createContext`);function ce(e,t=[]){let n=[];function r(t,r){let i=c.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=F(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=c.useMemo(()=>o,Object.values(o));return(0,m.jsx)(s.Provider,{value:l,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:l=!1}=s,u=o?.[e]?.[a]||i,d=c.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return F(s,`useContext`),[o,s]}F(r,`createContext`);let i=F(()=>{let t=n.map(e=>c.createContext(e));return F(function(n){let r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,le(i,...t)]}F(ce,`createContextScope`);function le(...e){let t=e[0];if(e.length===1)return t;let n=F(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return F(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}F(le,`composeContextScopes`);var I=globalThis?.document?c.useLayoutEffect:()=>{},ue=Object.defineProperty,L=(e,t)=>ue(e,`name`,{value:t,configurable:!0});function de(e){let t=e+`CollectionProvider`,[n,r]=ce(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=L(e=>{let{scope:t,children:n}=e,r=c.useRef(null),a=c.useRef(new Map).current;return(0,m.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,l=v(s),u=c.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=p(t,a(s,n).collectionRef);return(0,m.jsx)(l,{ref:i,children:r})});u.displayName=s;let d=e+`CollectionItemSlot`,f=`data-radix-collection-item`,h=v(d),g=c.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=c.useRef(null),s=p(t,o),l=a(d,n);return c.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,m.jsx)(h,{[f]:``,ref:s,children:r})});g.displayName=d;function _(t){let n=a(e+`CollectionConsumer`,t);return c.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return L(_,`useCollection`),[{Provider:o,Slot:u,ItemSlot:g},_,r]}L(de,`createCollection`);var fe=new WeakMap,pe=class e extends Map{static{L(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],fe.set(this,!0)}set(e,t){return fe.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=ge(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}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);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,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 t!==void 0&&this.delete(t)}at(e){let t=me(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=me(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return me(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)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(n===-1)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=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}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;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));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 me(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=he(e,t);return n===-1?void 0:e[n]}L(me,`at`);function he(e,t){let n=e.length,r=ge(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}L(he,`toSafeIndex`);function ge(e){return e!==e||e===0?0:Math.trunc(e)}L(ge,`toSafeInteger`);function _e(e){let t=e+`CollectionProvider`,[n,r]=ce(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let l=L(({state:e,...t})=>e?(0,m.jsx)(d,{...t,state:e}):(0,m.jsx)(u,{...t}),`CollectionProvider`);l.displayName=t;let u=L(e=>{let t=x();return(0,m.jsx)(d,{...e,state:t})},`CollectionInit`);u.displayName=e+`CollectionInit`;let d=L(e=>{let{scope:t,children:n,state:r}=e,a=c.useRef(null),[s,l]=c.useState(null),u=p(a,l),[d,f]=r,h=c.useRef(new pe),g=c.useCallback(()=>{let e=h.current;return be(e)||e.sort(xe),e},[]);return c.useEffect(()=>{if(!s)return;let e=Se(()=>{f(e=>{let t=e.toSorted(xe);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,f]),(0,m.jsx)(i,{scope:t,collectionElementRef:u,collectionElementRefObject:a,getCollection:g,setCollection:f,registryRef:h,children:(0,m.jsx)(o,{scope:t,collectionElement:s,collection:d,children:n})})},`CollectionProviderImpl`);d.displayName=e+`CollectionProviderImpl`;let f=e+`CollectionSlot`,h=v(f),g=c.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=p(t,a(f,n).collectionElementRef);return(0,m.jsx)(h,{ref:i,children:r})});g.displayName=f;let _=e+`CollectionItemSlot`,y=v(_),b=c.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=c.useRef(null),{setCollection:s,registryRef:l}=a(_,n),u=c.useRef(i);ve(u.current,i)||(u.current=i);let d=u.current,f=p(t,c.useCallback(e=>{let t=l.current;e?t.set(e,{...u.current,element:e}):o.current&&t.delete(o.current)},[l]),o);I(()=>{let e=o.current,t=l.current;e&&t.has(e)&&t.set(e,{...d,element:e})},[d,l]);let h=c.useRef(null);return c.useEffect(()=>{let e=o.current,t=h.current;((t?.element??null)!==e||e&&t?.itemData!==d)&&(h.current=e?{element:e,itemData:d}:null,s(n=>{let r=new pe(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...d,element:e}),r.sort(xe)}))}),c.useEffect(()=>()=>{let e=h.current;h.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new pe(t);return n.delete(e.element),n})},[s]),(0,m.jsx)(y,{"data-radix-collection-item":``,ref:f,children:r})});b.displayName=_;function x(){return c.useState(new pe)}L(x,`useInitCollection`);function S(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}L(S,`useCollection`);function C(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return L(C,`useGetCollection`),[{Provider:l,Slot:g,ItemSlot:b},{createCollectionScope:r,useCollection:S,useGetCollection:C,useInitCollection:x}]}L(_e,`createCollection`);function ve(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)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}L(ve,`shallowEqual`);function ye(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}L(ye,`isElementPreceding`);function be(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}L(be,`isInDocumentOrder`);function xe(e,t){return!e[1].element||!t[1].element?0:ye(e[1].element,t[1].element)?-1:1}L(xe,`sortByDocumentPosition`);function Se(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}L(Se,`getChildListObserver`);var Ce=Object.defineProperty,we=(e,t)=>Ce(e,`name`,{value:t,configurable:!0}),Te=!!(typeof window<`u`&&window.document&&window.document.createElement);function R(e,t,{checkForDefaultPrevented:n=!0}={}){return we(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}we(R,`composeEventHandlers`);function Ee(e){if(!Te)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}we(Ee,`getOwnerWindow`);function De(e){if(!Te)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}we(De,`getOwnerDocument`);function Oe(e,t=!1){let{activeElement:n}=De(e);if(!n?.nodeName)return null;if(ke(n)&&n.contentDocument)return Oe(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=De(n).getElementById(e);if(t)return t}}return n}we(Oe,`getActiveElement`);function ke(e){return e.tagName===`IFRAME`}we(ke,`isFrame`);var Ae=Object.defineProperty,je=(e,t)=>Ae(e,`name`,{value:t,configurable:!0}),Me=c.useEffectEvent,Ne=c.useInsertionEffect;function Pe(e){if(typeof Me==`function`)return Me(e);let t=c.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Ne==`function`?Ne(()=>{t.current=e}):I(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}je(Pe,`useEffectEvent`);var Fe=Object.defineProperty,Ie=(e,t)=>Fe(e,`name`,{value:t,configurable:!0}),Le=c.useInsertionEffect||I;function Re({prop:e,defaultProp:t,onChange:n=Ie(()=>{},`onChange`),caller:r}){let[i,a,o]=ze({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,c.useCallback(t=>{if(s){let n=Be(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Ie(Re,`useControllableState`);function ze({defaultProp:e,onChange:t}){let[n,r]=c.useState(e),i=c.useRef(n),a=c.useRef(t);return Le(()=>{a.current=t},[t]),c.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Ie(ze,`useUncontrolledState`);function Be(e){return typeof e==`function`}Ie(Be,`isFunction`);var Ve=Symbol(`RADIX:SYNC_STATE`);function He(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,l=i!==void 0,u=Pe(o),d=[{...n,state:a}];r&&d.push(r);let[f,p]=c.useReducer((t,n)=>{if(n.type===Ve)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=c.useRef(m);c.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=c.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return c.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:Ve,state:i})},[i,f.state,l]),[g,p]}Ie(He,`useControllableStateReducer`);var Ue=Object.defineProperty,We=(e,t)=>Ue(e,`name`,{value:t,configurable:!0});function Ge(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}We(Ge,`useStateMachine`);var Ke=We(e=>{let{present:t,children:n}=e,r=qe(t),i=typeof n==`function`?n({present:r.isPresent}):c.Children.only(n),a=Ye(r.ref,Ze(i));return typeof n==`function`||r.isPresent?c.cloneElement(i,{ref:a}):null},`Presence`);function qe(e){let[t,n]=c.useState(),r=c.useRef(null),i=c.useRef(e),a=c.useRef(`none`),o=c.useRef(void 0),[s,l]=Ge(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return c.useEffect(()=>{s===`mounted`?(a.current=o.current??Xe(r.current),o.current=void 0):a.current=`none`},[s]),I(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Xe(t);e?(o.current=s,l(`MOUNT`)):s===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),I(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=We(a=>{let o=Xe(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=We(e=>{e.target===t&&(a.current=Xe(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:c.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Xe(t)}else r.current=null;n(e)},[])}}We(qe,`usePresence`);function Je(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}We(Je,`setRef`);function Ye(...e){let t=c.useRef(e);return t.current=e,c.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Je(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Je(n[e],null)}}},[])}We(Ye,`useStableComposedRefs`);function Xe(e){return e?.animationName||`none`}We(Xe,`getAnimationName`);function Ze(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}We(Ze,`getElementRef`);var Qe=Object.defineProperty,$e=(e,t)=>Qe(e,`name`,{value:t,configurable:!0}),et=c.useId||(()=>void 0),tt=0;function nt(e){let[t,n]=c.useState(et());return I(()=>{e||n(e=>e??String(tt++))},[e]),e||(t?`radix-${t}`:``)}$e(nt,`useId`);var rt=Object.defineProperty,it=(e,t)=>rt(e,`name`,{value:t,configurable:!0}),at={LTR:`ltr`,RTL:`rtl`},ot=c.createContext(void 0);function st(e){let t=c.useContext(ot);return e||t||at.LTR}it(st,`useDirection`);var ct=Object.defineProperty,lt=(e,t)=>ct(e,`name`,{value:t,configurable:!0}),ut=c.useInsertionEffect;function z(e){let t=c.useRef(e);return typeof ut==`function`?ut(()=>{t.current=e}):I(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}lt(z,`useCallbackRef`);var dt=Object.defineProperty,B=(e,t)=>dt(e,`name`,{value:t,configurable:!0}),ft=`dismissableLayer.update`,pt=`dismissableLayer.pointerDownOutside`,mt=`dismissableLayer.focusOutside`,ht,gt=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),_t=c.forwardRef(B(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,d=c.useContext(gt),[f,h]=c.useState(null),g=f?.ownerDocument??globalThis?.document,[,_]=c.useState({}),v=p(t,h),y=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b?y.indexOf(b):-1,S=f?y.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,w=S>=x,T=c.useRef(!1),E=bt(e=>{a?.(e),s?.(e),e.defaultPrevented||l?.()},{ownerDocument:g,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return w&&!t},[d.branches,w])}),D=xt(e=>{if(r&&T.current)return;let t=e.target;[...d.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||l?.())},g),O=f?S===y.length-1:!1,k=z(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return c.useEffect(()=>{if(O)return g.addEventListener(`keydown`,k,{capture:!0}),()=>g.removeEventListener(`keydown`,k,{capture:!0})},[g,O,k]),c.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ht=g.body.style.pointerEvents,g.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),St(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=ht))}},[f,g,n,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),St())},[f,d]),c.useEffect(()=>{let e=B(()=>_({}),`handleUpdate`);return document.addEventListener(ft,e),()=>document.removeEventListener(ft,e)},[]),(0,m.jsx)(N.div,{...u,ref:v,style:{pointerEvents:C?w?`auto`:`none`:void 0,...e.style},onFocusCapture:R(e.onFocusCapture,D.onFocusCapture),onBlurCapture:R(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,E.onPointerDownCapture)})},`DismissableLayer`));function vt(){let e=c.useContext(gt),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}B(vt,`useDismissableLayerSurface`);var yt=B(()=>!0,`IS_TRUE`);function bt(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=yt}=t,s=z(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}B(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}B(t,`isOutsideInteractionIntercepted`);function c(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}B(c,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}B(p,`handleInteractionBubble`);let m=B(a=>{if(a.target&&!l.current){let c=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||Ct(pt,s,p,{discrete:!0})};if(B(c,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?c():(n.removeEventListener(`click`,f.current),f.current=c,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,c,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,c,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:B(()=>l.current=!0,`onPointerDownCapture`)}}B(bt,`usePointerDownOutside`);function xt(e,t=globalThis?.document){let n=z(e),r=c.useRef(!1);return c.useEffect(()=>{let e=B(e=>{e.target&&!r.current&&Ct(mt,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:B(()=>r.current=!0,`onFocusCapture`),onBlurCapture:B(()=>r.current=!1,`onBlurCapture`)}}B(xt,`useFocusOutside`);function St(){let e=new CustomEvent(ft);document.dispatchEvent(e)}B(St,`dispatchUpdate`);function Ct(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ne(i,a):i.dispatchEvent(a)}B(Ct,`handleAndDispatchCustomEvent`);var wt=Object.defineProperty,V=(e,t)=>wt(e,`name`,{value:t,configurable:!0}),Tt=`focusScope.autoFocusOnMount`,Et=`focusScope.autoFocusOnUnmount`,Dt={bubbles:!1,cancelable:!0},Ot=c.forwardRef(V(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[l,u]=c.useState(null),d=z(a),f=z(o),h=c.useRef(null),g=p(t,u),_=c.useRef(i);c.useEffect(()=>{_.current=i});let v=c.useCallback(e=>e?l?.contains(e)?!0:!!_.current?.some(t=>t.contains(e)):!1,[l]),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let e=function(e){if(y.paused||!l)return;let t=e.target;v(t)?h.current=t:zt(h.current,{select:!0})},t=function(e){if(y.paused||!l)return;let t=e.relatedTarget;t!==null&&(v(t)||zt(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&zt(l)};V(e,`handleFocusIn`),V(t,`handleFocusOut`),V(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,l,y.paused,v]),c.useEffect(()=>{if(l){Bt.add(y);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(Tt,Dt);l.addEventListener(Tt,d),l.dispatchEvent(t),t.defaultPrevented||(Nt(Ut(Ft(l)),{select:!0}),document.activeElement===e&&zt(l))}return()=>{l.removeEventListener(Tt,d);let t=l.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Et,Dt);l.addEventListener(Et,f),l.dispatchEvent(r),r.defaultPrevented||zt(e??t.body,{select:!0}),l.removeEventListener(Et,f),Bt.remove(y)},0)}}},[l,d,f,y]);let b=c.useCallback(e=>{if(!n&&!r||y.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Pt(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&zt(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&zt(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,y.paused]);return(0,m.jsx)(N.div,{tabIndex:-1,...s,ref:g,onKeyDown:b})},`FocusScope`)),kt=c.createContext(null);function At({registry:e,children:t}){return e?(0,m.jsx)(kt.Provider,{value:e,children:t}):t}V(At,`FocusScopeBranchProvider`);function jt(){let[e,t]=c.useState([]);return{nodes:e,registry:c.useMemo(()=>({add:V(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:V(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}V(jt,`useFocusScopeBranchRegistry`);function Mt(e){let t=c.useContext(kt);c.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}V(Mt,`useFocusScopeBranch`);function Nt(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(zt(r,{select:t}),document.activeElement!==n)return}V(Nt,`focusFirst`);function Pt(e){let t=Ft(e);return[It(t,e),It(t.reverse(),e)]}V(Pt,`getTabbableEdges`);function Ft(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:V(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;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}V(Ft,`getTabbableCandidates`);function It(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Lt(r,{upTo:t})))return r}V(It,`findVisible`);function Lt(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}V(Lt,`isHidden`);function Rt(e){return e.tagName===`INPUT`&&typeof e.select==`function`}V(Rt,`isSelectableInput`);function zt(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Rt(e)&&t&&e.select()}}V(zt,`focus`);var Bt=Vt();function Vt(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ht(e,t),e.unshift(t)},remove(t){e=Ht(e,t),e[0]?.resume()}}}V(Vt,`createFocusScopesStack`);function Ht(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}V(Ht,`arrayRemove`);function Ut(e){return e.filter(e=>e.tagName!==`A`)}V(Ut,`removeLinks`);var Wt=Object.defineProperty,Gt=c.forwardRef(((e,t)=>Wt(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=c.useState(!1);I(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?h.createPortal((0,m.jsx)(N.div,{...r,ref:t}),o):null},`Portal`)),Kt=Object.defineProperty,qt=(e,t)=>Kt(e,`name`,{value:t,configurable:!0}),Jt=0,Yt=null;function Xt(e){return Zt(),e.children}qt(Xt,`FocusGuards`);function Zt(){c.useEffect(()=>{Yt||={start:Qt(),end:Qt()};let{start:e,end:t}=Yt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Jt++,()=>{Jt===1&&(Yt?.start.remove(),Yt?.end.remove(),Yt=null),Jt=Math.max(0,Jt-1)}},[])}qt(Zt,`useFocusGuards`);function Qt(){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}qt(Qt,`createFocusGuard`);var H=function(){return H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},H.apply(this,arguments)};function $t(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function en(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var tn=`right-scroll-bar-position`,nn=`width-before-scroll-bar`,rn=`with-scroll-bars-hidden`,an=`--removed-body-scroll-bar-size`;function on(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function sn(e,t){var n=(0,c.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var cn=typeof window<`u`?c.useLayoutEffect:c.useEffect,ln=new WeakMap;function un(e,t){var n=sn(t||null,function(t){return e.forEach(function(e){return on(e,t)})});return cn(function(){var t=ln.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||on(e,null)}),i.forEach(function(e){r.has(e)||on(e,a)})}ln.set(n,e)},[e]),n}function dn(e){return e}function fn(e,t){t===void 0&&(t=dn);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function pn(e){e===void 0&&(e={});var t=fn(null);return t.options=H({async:!0,ssr:!1},e),t}var mn=function(e){var t=e.sideCar,n=$t(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 c.createElement(r,H({},n))};mn.isSideCarExport=!0;function hn(e,t){return e.useMedium(t),mn}var gn=pn(),_n=function(){},vn=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:_n,onWheelCapture:_n,onTouchMoveCapture:_n}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=$t(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=un([n,t]),w=H(H({},x),i);return c.createElement(c.Fragment,null,d&&c.createElement(S,{sideCar:gn,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?c.cloneElement(c.Children.only(s),H(H({},w),{ref:C})):c.createElement(y,H({},w,{className:l,ref:C}),s))});vn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},vn.classNames={fullWidth:nn,zeroRight:tn};var yn=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function bn(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=yn();return t&&e.setAttribute(`nonce`,t),e}function xn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Sn(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Cn=function(){var e=0,t=null;return{add:function(n){e==0&&(t=bn())&&(xn(t,n),Sn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wn=function(){var e=Cn();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Tn=function(){var e=wn();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},En={left:0,top:0,right:0,gap:0},Dn=function(e){return parseInt(e||``,10)||0},On=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Dn(n),Dn(r),Dn(i)]},kn=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return En;var t=On(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])}},An=Tn(),jn=`data-scroll-locked`,Mn=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{Dt as n,Et as r,in as i,rn as a}from"./format-Dk1nO38Z.js";var o=t((e=>{var t=i();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var a={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),s=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=o()})),c=e(i(),1),l=Object.defineProperty,u=(e,t)=>l(e,`name`,{value:t,configurable:!0});function d(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}u(d,`setRef`);function f(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():d(e[t],null)}}}}u(f,`composeRefs`);function p(...e){return c.useCallback(f(...e),e)}u(p,`useComposedRefs`);var m=a(),h=e(s(),1),g=Object.defineProperty,_=(e,t)=>g(e,`name`,{value:t,configurable:!0});function v(e){let t=c.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=O(r),c.Children.forEach(r,e=>{if(w(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;E(n)&&typeof j==`function`;)n=j(n._payload);a=x(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=c.cloneElement(a,void 0,s):!o&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);let l=a?C(a):void 0,u=p(n,l);if(!a){if(r||r===0)throw Error(o?A(e):ee(e));return r}let d=S(i,a.props??{});return a.type!==c.Fragment&&(d.ref=n?u:l),c.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}_(v,`createSlot`);var y=Symbol.for(`radix.slottable`);function b(e){let t=_(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=y,t}_(b,`createSlottable`);var x=_((e,t)=>`child`in e.props?c.isValidElement(t)?c.cloneElement(t,void 0,e.props.children(t.props.children)):null:c.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function S(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=k(a,i))}return{...e,...n}}_(S,`mergeProps`);function C(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}_(C,`getElementRef`);function w(e){return c.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===y}_(w,`isSlottable`);var T=Symbol.for(`react.lazy`);function E(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===T&&`_payload`in e&&D(e._payload)}_(E,`isLazyComponent`);function D(e){return typeof e==`object`&&!!e&&`then`in e}_(D,`isPromiseLike`);function O(e){let t=e;for(;E(t)&&typeof j==`function`;)t=j(t._payload);return t}_(O,`useUnwrappedLazy`);function k(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}_(k,`concatAriaDescribedby`);var ee=_(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),A=_(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),j=c.use,te=Object.defineProperty,M=(e,t)=>te(e,`name`,{value:t,configurable:!0}),N=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=v(`Primitive.${t}`),r=c.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,m.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ne(e,t){e&&h.flushSync(()=>e.dispatchEvent(t))}M(ne,`dispatchDiscreteCustomEvent`);var re=Object.defineProperty,P=(e,t)=>re(e,`name`,{value:t,configurable:!0}),ie=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),ae=c.forwardRef(P(function(e,t){return(0,m.jsx)(N.span,{...e,ref:t,style:{...ie,...e.style}})},`VisuallyHidden`)),oe=Object.defineProperty,F=(e,t)=>oe(e,`name`,{value:t,configurable:!0});function se(e,t){let n=c.createContext(t);n.displayName=e+`Context`;let r=F(e=>{let{children:t,...r}=e,i=c.useMemo(()=>r,Object.values(r));return(0,m.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=c.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return F(i,`useContext`),[r,i]}F(se,`createContext`);function ce(e,t=[]){let n=[];function r(t,r){let i=c.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=F(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=c.useMemo(()=>o,Object.values(o));return(0,m.jsx)(s.Provider,{value:l,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:l=!1}=s,u=o?.[e]?.[a]||i,d=c.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return F(s,`useContext`),[o,s]}F(r,`createContext`);let i=F(()=>{let t=n.map(e=>c.createContext(e));return F(function(n){let r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,le(i,...t)]}F(ce,`createContextScope`);function le(...e){let t=e[0];if(e.length===1)return t;let n=F(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return F(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}F(le,`composeContextScopes`);var I=globalThis?.document?c.useLayoutEffect:()=>{},ue=Object.defineProperty,L=(e,t)=>ue(e,`name`,{value:t,configurable:!0});function de(e){let t=e+`CollectionProvider`,[n,r]=ce(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=L(e=>{let{scope:t,children:n}=e,r=c.useRef(null),a=c.useRef(new Map).current;return(0,m.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,l=v(s),u=c.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=p(t,a(s,n).collectionRef);return(0,m.jsx)(l,{ref:i,children:r})});u.displayName=s;let d=e+`CollectionItemSlot`,f=`data-radix-collection-item`,h=v(d),g=c.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=c.useRef(null),s=p(t,o),l=a(d,n);return c.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,m.jsx)(h,{[f]:``,ref:s,children:r})});g.displayName=d;function _(t){let n=a(e+`CollectionConsumer`,t);return c.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return L(_,`useCollection`),[{Provider:o,Slot:u,ItemSlot:g},_,r]}L(de,`createCollection`);var fe=new WeakMap,pe=class e extends Map{static{L(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],fe.set(this,!0)}set(e,t){return fe.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=ge(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}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);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,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 t!==void 0&&this.delete(t)}at(e){let t=me(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=me(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return me(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)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(n===-1)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=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}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;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));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 me(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=he(e,t);return n===-1?void 0:e[n]}L(me,`at`);function he(e,t){let n=e.length,r=ge(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}L(he,`toSafeIndex`);function ge(e){return e!==e||e===0?0:Math.trunc(e)}L(ge,`toSafeInteger`);function _e(e){let t=e+`CollectionProvider`,[n,r]=ce(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let l=L(({state:e,...t})=>e?(0,m.jsx)(d,{...t,state:e}):(0,m.jsx)(u,{...t}),`CollectionProvider`);l.displayName=t;let u=L(e=>{let t=x();return(0,m.jsx)(d,{...e,state:t})},`CollectionInit`);u.displayName=e+`CollectionInit`;let d=L(e=>{let{scope:t,children:n,state:r}=e,a=c.useRef(null),[s,l]=c.useState(null),u=p(a,l),[d,f]=r,h=c.useRef(new pe),g=c.useCallback(()=>{let e=h.current;return be(e)||e.sort(xe),e},[]);return c.useEffect(()=>{if(!s)return;let e=Se(()=>{f(e=>{let t=e.toSorted(xe);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,f]),(0,m.jsx)(i,{scope:t,collectionElementRef:u,collectionElementRefObject:a,getCollection:g,setCollection:f,registryRef:h,children:(0,m.jsx)(o,{scope:t,collectionElement:s,collection:d,children:n})})},`CollectionProviderImpl`);d.displayName=e+`CollectionProviderImpl`;let f=e+`CollectionSlot`,h=v(f),g=c.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=p(t,a(f,n).collectionElementRef);return(0,m.jsx)(h,{ref:i,children:r})});g.displayName=f;let _=e+`CollectionItemSlot`,y=v(_),b=c.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=c.useRef(null),{setCollection:s,registryRef:l}=a(_,n),u=c.useRef(i);ve(u.current,i)||(u.current=i);let d=u.current,f=p(t,c.useCallback(e=>{let t=l.current;e?t.set(e,{...u.current,element:e}):o.current&&t.delete(o.current)},[l]),o);I(()=>{let e=o.current,t=l.current;e&&t.has(e)&&t.set(e,{...d,element:e})},[d,l]);let h=c.useRef(null);return c.useEffect(()=>{let e=o.current,t=h.current;((t?.element??null)!==e||e&&t?.itemData!==d)&&(h.current=e?{element:e,itemData:d}:null,s(n=>{let r=new pe(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...d,element:e}),r.sort(xe)}))}),c.useEffect(()=>()=>{let e=h.current;h.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new pe(t);return n.delete(e.element),n})},[s]),(0,m.jsx)(y,{"data-radix-collection-item":``,ref:f,children:r})});b.displayName=_;function x(){return c.useState(new pe)}L(x,`useInitCollection`);function S(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}L(S,`useCollection`);function C(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return L(C,`useGetCollection`),[{Provider:l,Slot:g,ItemSlot:b},{createCollectionScope:r,useCollection:S,useGetCollection:C,useInitCollection:x}]}L(_e,`createCollection`);function ve(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)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}L(ve,`shallowEqual`);function ye(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}L(ye,`isElementPreceding`);function be(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}L(be,`isInDocumentOrder`);function xe(e,t){return!e[1].element||!t[1].element?0:ye(e[1].element,t[1].element)?-1:1}L(xe,`sortByDocumentPosition`);function Se(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}L(Se,`getChildListObserver`);var Ce=Object.defineProperty,we=(e,t)=>Ce(e,`name`,{value:t,configurable:!0}),Te=!!(typeof window<`u`&&window.document&&window.document.createElement);function R(e,t,{checkForDefaultPrevented:n=!0}={}){return we(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}we(R,`composeEventHandlers`);function Ee(e){if(!Te)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}we(Ee,`getOwnerWindow`);function De(e){if(!Te)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}we(De,`getOwnerDocument`);function Oe(e,t=!1){let{activeElement:n}=De(e);if(!n?.nodeName)return null;if(ke(n)&&n.contentDocument)return Oe(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=De(n).getElementById(e);if(t)return t}}return n}we(Oe,`getActiveElement`);function ke(e){return e.tagName===`IFRAME`}we(ke,`isFrame`);var Ae=Object.defineProperty,je=(e,t)=>Ae(e,`name`,{value:t,configurable:!0}),Me=c.useEffectEvent,Ne=c.useInsertionEffect;function Pe(e){if(typeof Me==`function`)return Me(e);let t=c.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Ne==`function`?Ne(()=>{t.current=e}):I(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}je(Pe,`useEffectEvent`);var Fe=Object.defineProperty,Ie=(e,t)=>Fe(e,`name`,{value:t,configurable:!0}),Le=c.useInsertionEffect||I;function Re({prop:e,defaultProp:t,onChange:n=Ie(()=>{},`onChange`),caller:r}){let[i,a,o]=ze({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,c.useCallback(t=>{if(s){let n=Be(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Ie(Re,`useControllableState`);function ze({defaultProp:e,onChange:t}){let[n,r]=c.useState(e),i=c.useRef(n),a=c.useRef(t);return Le(()=>{a.current=t},[t]),c.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Ie(ze,`useUncontrolledState`);function Be(e){return typeof e==`function`}Ie(Be,`isFunction`);var Ve=Symbol(`RADIX:SYNC_STATE`);function He(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,l=i!==void 0,u=Pe(o),d=[{...n,state:a}];r&&d.push(r);let[f,p]=c.useReducer((t,n)=>{if(n.type===Ve)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=c.useRef(m);c.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=c.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return c.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:Ve,state:i})},[i,f.state,l]),[g,p]}Ie(He,`useControllableStateReducer`);var Ue=Object.defineProperty,We=(e,t)=>Ue(e,`name`,{value:t,configurable:!0});function Ge(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}We(Ge,`useStateMachine`);var Ke=We(e=>{let{present:t,children:n}=e,r=qe(t),i=typeof n==`function`?n({present:r.isPresent}):c.Children.only(n),a=Ye(r.ref,Ze(i));return typeof n==`function`||r.isPresent?c.cloneElement(i,{ref:a}):null},`Presence`);function qe(e){let[t,n]=c.useState(),r=c.useRef(null),i=c.useRef(e),a=c.useRef(`none`),o=c.useRef(void 0),[s,l]=Ge(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return c.useEffect(()=>{s===`mounted`?(a.current=o.current??Xe(r.current),o.current=void 0):a.current=`none`},[s]),I(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Xe(t);e?(o.current=s,l(`MOUNT`)):s===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),I(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=We(a=>{let o=Xe(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=We(e=>{e.target===t&&(a.current=Xe(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:c.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Xe(t)}else r.current=null;n(e)},[])}}We(qe,`usePresence`);function Je(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}We(Je,`setRef`);function Ye(...e){let t=c.useRef(e);return t.current=e,c.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Je(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Je(n[e],null)}}},[])}We(Ye,`useStableComposedRefs`);function Xe(e){return e?.animationName||`none`}We(Xe,`getAnimationName`);function Ze(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}We(Ze,`getElementRef`);var Qe=Object.defineProperty,$e=(e,t)=>Qe(e,`name`,{value:t,configurable:!0}),et=c.useId||(()=>void 0),tt=0;function nt(e){let[t,n]=c.useState(et());return I(()=>{e||n(e=>e??String(tt++))},[e]),e||(t?`radix-${t}`:``)}$e(nt,`useId`);var rt=Object.defineProperty,it=(e,t)=>rt(e,`name`,{value:t,configurable:!0}),at={LTR:`ltr`,RTL:`rtl`},ot=c.createContext(void 0);function st(e){let t=c.useContext(ot);return e||t||at.LTR}it(st,`useDirection`);var ct=Object.defineProperty,lt=(e,t)=>ct(e,`name`,{value:t,configurable:!0}),ut=c.useInsertionEffect;function z(e){let t=c.useRef(e);return typeof ut==`function`?ut(()=>{t.current=e}):I(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}lt(z,`useCallbackRef`);var dt=Object.defineProperty,B=(e,t)=>dt(e,`name`,{value:t,configurable:!0}),ft=`dismissableLayer.update`,pt=`dismissableLayer.pointerDownOutside`,mt=`dismissableLayer.focusOutside`,ht,gt=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),_t=c.forwardRef(B(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,d=c.useContext(gt),[f,h]=c.useState(null),g=f?.ownerDocument??globalThis?.document,[,_]=c.useState({}),v=p(t,h),y=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=b?y.indexOf(b):-1,S=f?y.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,w=S>=x,T=c.useRef(!1),E=bt(e=>{a?.(e),s?.(e),e.defaultPrevented||l?.()},{ownerDocument:g,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return w&&!t},[d.branches,w])}),D=xt(e=>{if(r&&T.current)return;let t=e.target;[...d.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||l?.())},g),O=f?S===y.length-1:!1,k=z(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return c.useEffect(()=>{if(O)return g.addEventListener(`keydown`,k,{capture:!0}),()=>g.removeEventListener(`keydown`,k,{capture:!0})},[g,O,k]),c.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ht=g.body.style.pointerEvents,g.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),St(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=ht))}},[f,g,n,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),St())},[f,d]),c.useEffect(()=>{let e=B(()=>_({}),`handleUpdate`);return document.addEventListener(ft,e),()=>document.removeEventListener(ft,e)},[]),(0,m.jsx)(N.div,{...u,ref:v,style:{pointerEvents:C?w?`auto`:`none`:void 0,...e.style},onFocusCapture:R(e.onFocusCapture,D.onFocusCapture),onBlurCapture:R(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,E.onPointerDownCapture)})},`DismissableLayer`));function vt(){let e=c.useContext(gt),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}B(vt,`useDismissableLayerSurface`);var yt=B(()=>!0,`IS_TRUE`);function bt(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=yt}=t,s=z(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}B(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}B(t,`isOutsideInteractionIntercepted`);function c(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}B(c,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}B(p,`handleInteractionBubble`);let m=B(a=>{if(a.target&&!l.current){let c=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||Ct(pt,s,p,{discrete:!0})};if(B(c,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?c():(n.removeEventListener(`click`,f.current),f.current=c,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,c,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,c,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:B(()=>l.current=!0,`onPointerDownCapture`)}}B(bt,`usePointerDownOutside`);function xt(e,t=globalThis?.document){let n=z(e),r=c.useRef(!1);return c.useEffect(()=>{let e=B(e=>{e.target&&!r.current&&Ct(mt,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:B(()=>r.current=!0,`onFocusCapture`),onBlurCapture:B(()=>r.current=!1,`onBlurCapture`)}}B(xt,`useFocusOutside`);function St(){let e=new CustomEvent(ft);document.dispatchEvent(e)}B(St,`dispatchUpdate`);function Ct(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?ne(i,a):i.dispatchEvent(a)}B(Ct,`handleAndDispatchCustomEvent`);var wt=Object.defineProperty,V=(e,t)=>wt(e,`name`,{value:t,configurable:!0}),Tt=`focusScope.autoFocusOnMount`,Et=`focusScope.autoFocusOnUnmount`,Dt={bubbles:!1,cancelable:!0},Ot=c.forwardRef(V(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[l,u]=c.useState(null),d=z(a),f=z(o),h=c.useRef(null),g=p(t,u),_=c.useRef(i);c.useEffect(()=>{_.current=i});let v=c.useCallback(e=>e?l?.contains(e)?!0:!!_.current?.some(t=>t.contains(e)):!1,[l]),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let e=function(e){if(y.paused||!l)return;let t=e.target;v(t)?h.current=t:zt(h.current,{select:!0})},t=function(e){if(y.paused||!l)return;let t=e.relatedTarget;t!==null&&(v(t)||zt(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&zt(l)};V(e,`handleFocusIn`),V(t,`handleFocusOut`),V(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,l,y.paused,v]),c.useEffect(()=>{if(l){Bt.add(y);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(Tt,Dt);l.addEventListener(Tt,d),l.dispatchEvent(t),t.defaultPrevented||(Nt(Ut(Ft(l)),{select:!0}),document.activeElement===e&&zt(l))}return()=>{l.removeEventListener(Tt,d);let t=l.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Et,Dt);l.addEventListener(Et,f),l.dispatchEvent(r),r.defaultPrevented||zt(e??t.body,{select:!0}),l.removeEventListener(Et,f),Bt.remove(y)},0)}}},[l,d,f,y]);let b=c.useCallback(e=>{if(!n&&!r||y.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Pt(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&zt(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&zt(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,y.paused]);return(0,m.jsx)(N.div,{tabIndex:-1,...s,ref:g,onKeyDown:b})},`FocusScope`)),kt=c.createContext(null);function At({registry:e,children:t}){return e?(0,m.jsx)(kt.Provider,{value:e,children:t}):t}V(At,`FocusScopeBranchProvider`);function jt(){let[e,t]=c.useState([]);return{nodes:e,registry:c.useMemo(()=>({add:V(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:V(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}V(jt,`useFocusScopeBranchRegistry`);function Mt(e){let t=c.useContext(kt);c.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}V(Mt,`useFocusScopeBranch`);function Nt(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(zt(r,{select:t}),document.activeElement!==n)return}V(Nt,`focusFirst`);function Pt(e){let t=Ft(e);return[It(t,e),It(t.reverse(),e)]}V(Pt,`getTabbableEdges`);function Ft(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:V(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;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}V(Ft,`getTabbableCandidates`);function It(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Lt(r,{upTo:t})))return r}V(It,`findVisible`);function Lt(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}V(Lt,`isHidden`);function Rt(e){return e.tagName===`INPUT`&&typeof e.select==`function`}V(Rt,`isSelectableInput`);function zt(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Rt(e)&&t&&e.select()}}V(zt,`focus`);var Bt=Vt();function Vt(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ht(e,t),e.unshift(t)},remove(t){e=Ht(e,t),e[0]?.resume()}}}V(Vt,`createFocusScopesStack`);function Ht(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}V(Ht,`arrayRemove`);function Ut(e){return e.filter(e=>e.tagName!==`A`)}V(Ut,`removeLinks`);var Wt=Object.defineProperty,Gt=c.forwardRef(((e,t)=>Wt(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=c.useState(!1);I(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?h.createPortal((0,m.jsx)(N.div,{...r,ref:t}),o):null},`Portal`)),Kt=Object.defineProperty,qt=(e,t)=>Kt(e,`name`,{value:t,configurable:!0}),Jt=0,Yt=null;function Xt(e){return Zt(),e.children}qt(Xt,`FocusGuards`);function Zt(){c.useEffect(()=>{Yt||={start:Qt(),end:Qt()};let{start:e,end:t}=Yt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Jt++,()=>{Jt===1&&(Yt?.start.remove(),Yt?.end.remove(),Yt=null),Jt=Math.max(0,Jt-1)}},[])}qt(Zt,`useFocusGuards`);function Qt(){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}qt(Qt,`createFocusGuard`);var H=function(){return H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},H.apply(this,arguments)};function $t(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function en(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var tn=`right-scroll-bar-position`,nn=`width-before-scroll-bar`,rn=`with-scroll-bars-hidden`,an=`--removed-body-scroll-bar-size`;function on(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function sn(e,t){var n=(0,c.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var cn=typeof window<`u`?c.useLayoutEffect:c.useEffect,ln=new WeakMap;function un(e,t){var n=sn(t||null,function(t){return e.forEach(function(e){return on(e,t)})});return cn(function(){var t=ln.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||on(e,null)}),i.forEach(function(e){r.has(e)||on(e,a)})}ln.set(n,e)},[e]),n}function dn(e){return e}function fn(e,t){t===void 0&&(t=dn);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function pn(e){e===void 0&&(e={});var t=fn(null);return t.options=H({async:!0,ssr:!1},e),t}var mn=function(e){var t=e.sideCar,n=$t(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 c.createElement(r,H({},n))};mn.isSideCarExport=!0;function hn(e,t){return e.useMedium(t),mn}var gn=pn(),_n=function(){},vn=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:_n,onWheelCapture:_n,onTouchMoveCapture:_n}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=$t(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=un([n,t]),w=H(H({},x),i);return c.createElement(c.Fragment,null,d&&c.createElement(S,{sideCar:gn,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?c.cloneElement(c.Children.only(s),H(H({},w),{ref:C})):c.createElement(y,H({},w,{className:l,ref:C}),s))});vn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},vn.classNames={fullWidth:nn,zeroRight:tn};var yn=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function bn(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=yn();return t&&e.setAttribute(`nonce`,t),e}function xn(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Sn(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Cn=function(){var e=0,t=null;return{add:function(n){e==0&&(t=bn())&&(xn(t,n),Sn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wn=function(){var e=Cn();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Tn=function(){var e=wn();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},En={left:0,top:0,right:0,gap:0},Dn=function(e){return parseInt(e||``,10)||0},On=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Dn(n),Dn(r),Dn(i)]},kn=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return En;var t=On(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])}},An=Tn(),jn=`data-scroll-locked`,Mn=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
2
2
|
.${rn} {
|
|
3
3
|
overflow: hidden ${r};
|
|
4
4
|
padding-right: ${s}px ${r};
|
|
@@ -38,4 +38,4 @@ import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{Gt as n,Kt as r,gt a
|
|
|
38
38
|
`},Nn=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Pn=function(){c.useEffect(function(){return document.body.setAttribute(jn,(Nn()+1).toString()),function(){var e=Nn()-1;e<=0?document.body.removeAttribute(jn):document.body.setAttribute(jn,e.toString())}},[])},Fn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Pn();var a=c.useMemo(function(){return kn(i)},[i]);return c.createElement(An,{styles:Mn(a,!t,i,n?``:`!important`)})},In=!1;if(typeof window<`u`)try{var Ln=Object.defineProperty({},"passive",{get:function(){return In=!0,!0}});window.addEventListener(`test`,Ln,Ln),window.removeEventListener(`test`,Ln,Ln)}catch{In=!1}var Rn=In?{passive:!1}:!1,zn=function(e){return e.tagName===`TEXTAREA`},Bn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!zn(e)&&n[t]===`visible`)},Vn=function(e){return Bn(e,`overflowY`)},Hn=function(e){return Bn(e,`overflowX`)},Un=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Kn(e,r)){var i=qn(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Wn=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Gn=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Kn=function(e,t){return e===`v`?Vn(t):Hn(t)},qn=function(e,t){return e===`v`?Wn(t):Gn(t)},Jn=function(e,t){return e===`h`&&t===`rtl`?-1:1},Yn=function(e,t,n,r,i){var a=Jn(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=qn(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Kn(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Xn=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zn=function(e){return[e.deltaX,e.deltaY]},Qn=function(e){return e&&`current`in e?e.current:e},$n=function(e,t){return e[0]===t[0]&&e[1]===t[1]},er=function(e){return`
|
|
39
39
|
.block-interactivity-${e} {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
41
|
-
`},tr=0,nr=[];function rr(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(tr++)[0],a=c.useState(Tn)[0],o=c.useRef(e);c.useEffect(function(){o.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=en([e.lockRef.current],(e.shards||[]).map(Qn),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Xn(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Un(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Un(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Yn(h,t,e,h===`h`?s:c,!0)},[]),l=c.useCallback(function(e){var n=e;if(nr.length&&nr[nr.length-1]===a){var r=`deltaY`in n?Zn(n):Xn(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&$n(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Qn).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ir(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=Xn(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,Zn(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,Xn(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return nr.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,Rn),document.addEventListener(`touchmove`,l,Rn),document.addEventListener(`touchstart`,d,Rn),function(){nr=nr.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,Rn),document.removeEventListener(`touchmove`,l,Rn),document.removeEventListener(`touchstart`,d,Rn)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:er(i)}):null,m?c.createElement(Fn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ir(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ar=hn(gn,rr),or=c.forwardRef(function(e,t){return c.createElement(vn,H({},e,{ref:t,sideCar:ar}))});or.classNames=vn.classNames;var sr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},cr=new WeakMap,lr=new WeakMap,ur={},dr=0,fr=function(e){return e&&(e.host||fr(e.parentNode))},pr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=fr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},mr=function(e,t,n,r){var i=pr(t,Array.isArray(e)?e:[e]);ur[n]||(ur[n]=new WeakMap);var a=ur[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(cr.get(e)||0)+1,l=(a.get(e)||0)+1;cr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&lr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),dr++,function(){o.forEach(function(e){var t=cr.get(e)-1,i=a.get(e)-1;cr.set(e,t),a.set(e,i),t||(lr.has(e)||e.removeAttribute(r),lr.delete(e)),i||e.removeAttribute(n)}),dr--,dr||(cr=new WeakMap,cr=new WeakMap,lr=new WeakMap,ur={})}},hr=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||sr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),mr(r,i,n,`aria-hidden`)):function(){return null}},gr=Object.defineProperty,_r=(e,t)=>gr(e,`name`,{value:t,configurable:!0});function vr(e){let[t,n]=c.useState(void 0);return I(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}_r(vr,`useSize`);var yr=[`top`,`right`,`bottom`,`left`],br=[`start`,`end`],xr=yr.reduce((e,t)=>e.concat(t,t+`-`+br[0],t+`-`+br[1]),[]),U=Math.min,W=Math.max,Sr=Math.round,Cr=Math.floor,wr=e=>({x:e,y:e}),Tr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Er(e,t,n){return W(e,U(t,n))}function G(e,t){return typeof e==`function`?e(t):e}function K(e){return e.split(`-`)[0]}function q(e){return e.split(`-`)[1]}function Dr(e){return e===`x`?`y`:`x`}function Or(e){return e===`y`?`height`:`width`}function J(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function kr(e){return Dr(J(e))}function Ar(e,t,n){n===void 0&&(n=!1);let r=q(e),i=kr(e),a=Or(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=zr(o)),[o,zr(o)]}function jr(e){let t=zr(e);return[Mr(e),t,Mr(t)]}function Mr(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Nr=[`left`,`right`],Pr=[`right`,`left`],Fr=[`top`,`bottom`],Ir=[`bottom`,`top`];function Lr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Pr:Nr:t?Nr:Pr;case`left`:case`right`:return t?Fr:Ir;default:return[]}}function Rr(e,t,n,r){let i=q(e),a=Lr(K(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Mr)))),a}function zr(e){let t=K(e);return Tr[t]+e.slice(t.length)}function Br(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Vr(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Br(e)}function Hr(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ur(e,t,n){let{reference:r,floating:i}=e,a=J(t),o=kr(t),s=Or(o),c=K(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=q(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Wr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=G(t,e),p=Vr(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Hr(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Hr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Gr=50,Kr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Wr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ur(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Gr&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ur(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},qr=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=G(e,t)||{};if(l==null)return{};let d=Vr(u),f={x:n,y:r},p=kr(i),m=Or(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=U(d[_],T),D=U(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=Er(E,k,O),A=!c.arrow&&q(i)!=null&&k!==ee&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,j=A?k<E?k-E:k-O:0;return{[p]:f[p]+j,data:{[p]:ee,centerOffset:k-ee-j,...A&&{alignmentOffset:j}},reset:A}}});function Jr(e,t,n){return(e?[...n.filter(t=>q(t)===e),...n.filter(t=>q(t)!==e)]:n.filter(e=>K(e)===e)).filter(n=>!e||q(n)===e||(t?Mr(n)!==n:!1))}var Yr=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=xr,autoAlignment:u=!0,...d}=G(e,t),f=c!==void 0||l===xr?Jr(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Ar(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[K(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=q(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,q(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},Xr=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=K(r),_=J(o),v=K(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[zr(o)]:jr(o)),x=p!==`none`;!d&&x&&b.push(...Rr(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ar(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===J(t)||T.every(e=>J(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=J(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Zr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qr(e){return yr.some(t=>e[t]>=0)}var $r=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=G(e,t);switch(i){case`referenceHidden`:{let e=Zr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Qr(e)}}}case`escaped`:{let e=Zr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Qr(e)}}}default:return{}}}}};function ei(e){let t=U(...e.map(e=>e.left)),n=U(...e.map(e=>e.top)),r=W(...e.map(e=>e.right)),i=W(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function ti(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Hr(ei(e)))}var ni=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=G(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=ti(u),f=Hr(ei(u)),p=Vr(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(J(n)===`y`){let e=d[0],t=d[d.length-1],r=K(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return Hr({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=K(n)===`left`,t=W(...d.map(e=>e.right)),r=U(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return Hr({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},ri=new Set([`left`,`top`]);async function ii(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=K(n),s=q(n),c=J(n)===`y`,l=ri.has(o)?-1:1,u=a&&c?-1:1,d=G(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ai=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ii(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},oi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=G(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=J(i),p=Dr(f),m=u[p],h=u[f],g=(e,t)=>Er(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},si=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=G(e,t),u={x:n,y:r},d=J(i),f=Dr(d),p=u[f],m=u[d],h=G(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ri.has(K(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ci=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=G(e,t),c=await i.detectOverflow(t,s),l=K(n),u=q(n),d=J(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=U(p-c[m],g),y=U(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*W(c.left,c.right):S=p-2*W(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function li(){return typeof window<`u`}function ui(e){return fi(e)?(e.nodeName||``).toLowerCase():`#document`}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function di(e){return((fi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function fi(e){return li()?e instanceof Node||e instanceof Y(e).Node:!1}function X(e){return li()?e instanceof Element||e instanceof Y(e).Element:!1}function pi(e){return li()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function mi(e){return!li()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function hi(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function gi(e){return/^(table|td|th)$/.test(ui(e))}function _i(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var vi=/transform|translate|scale|rotate|perspective|filter/,yi=/paint|layout|strict|content/,bi=e=>!!e&&e!==`none`,xi;function Si(e){let t=X(e)?Z(e):e;return bi(t.transform)||bi(t.translate)||bi(t.scale)||bi(t.rotate)||bi(t.perspective)||!wi()&&(bi(t.backdropFilter)||bi(t.filter))||vi.test(t.willChange||``)||yi.test(t.contain||``)}function Ci(e){let t=Di(e);for(;pi(t)&&!Ti(t);){if(Si(t))return t;if(_i(t))return null;t=Di(t)}return null}function wi(){return xi??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),xi}function Ti(e){return/^(html|body|#document)$/.test(ui(e))}function Z(e){return Y(e).getComputedStyle(e)}function Ei(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Di(e){if(ui(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||mi(e)&&e.host||di(e);return mi(t)?t.host:t}function Oi(e){let t=Di(e);return Ti(t)?(e.ownerDocument||e).body:pi(t)&&hi(t)?t:Oi(t)}function ki(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Oi(e),i=r===e.ownerDocument?.body,a=Y(r);if(i){let e=Ai(a);return t.concat(a,a.visualViewport||[],hi(r)?r:[],e&&n?ki(e):[])}return t.concat(r,ki(r,[],n))}function Ai(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ji(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=pi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Sr(n)!==a||Sr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Mi(e){return X(e)?e:e.contextElement}function Ni(e){let t=Mi(e);if(!pi(t))return wr(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ji(t),o=(a?Sr(n.width):n.width)/r,s=(a?Sr(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Pi=wr(0);function Fi(e){let t=Y(e);return!wi()||!t.visualViewport?Pi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ii(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Y(e)}function Li(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Mi(e),o=wr(1);t&&(r?X(r)&&(o=Ni(r)):o=Ni(e));let s=Ii(a,n,r)?Fi(a):wr(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Y(a),t=X(r)?Y(r):r,n=e,i=Ai(n);for(;i&&t!==n;){let e=Ni(i),t=i.getBoundingClientRect(),r=Z(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Y(i),i=Ai(n)}}return Hr({width:u,height:d,x:c,y:l})}function Ri(e,t){let n=Ei(e).scrollLeft;return t?t.left+n:Li(di(e)).left+n}function zi(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ri(e,n),y:n.top+t.scrollTop}}function Bi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=di(r),s=t?_i(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=wr(1),u=wr(0),d=pi(r);if((d||!a)&&((ui(r)!==`body`||hi(o))&&(c=Ei(r)),d)){let e=Li(r);l=Ni(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?zi(o,c):wr(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Vi(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Hi(e){let t=Ei(e),n=e.ownerDocument.body,r=W(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=W(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ri(e),o=-t.scrollTop;return Z(n).direction===`rtl`&&(a+=W(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ui=25;function Wi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Y(e),a=di(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!wi()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ri(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ui&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Gi(e,t){let n=Li(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ni(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ki(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Wi(e,n,t);else if(t===`document`)r=Hi(di(e));else if(X(t))r=Gi(t,n);else{let n=Fi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Hr(r)}function qi(e,t){let n=t.get(e);if(n)return n;let r=ki(e,[],!1).filter(e=>X(e)&&ui(e)!==`body`),i=null,a=Z(e).position===`fixed`,o=a?Di(e):e;for(;X(o)&&!Ti(o);){let e=Z(o),t=Si(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Di(o)}return t.set(e,r),r}function Ji(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?_i(t)?[]:qi(t,this._c):[].concat(n),r],o=Ki(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ki(t,a[e],i);s=W(n.top,s),c=U(n.right,c),l=U(n.bottom,l),u=W(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Yi(e){let{width:t,height:n}=ji(e);return{width:t,height:n}}function Xi(e,t,n){let r=pi(t),i=di(t),a=n===`fixed`,o=Li(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=wr(0);if((r||!a)&&((ui(t)!==`body`||hi(i))&&(s=Ei(t)),r)){let e=Li(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ri(i));let l=i&&!r&&!a?zi(i,s):wr(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Zi(e){return Z(e).position===`static`}function Qi(e,t){if(!pi(e)||Z(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return di(e)===n&&(n=n.ownerDocument.body),n}function $i(e,t){let n=Y(e);if(_i(e))return n;if(!pi(e)){let t=Di(e);for(;t&&!Ti(t);){if(X(t)&&!Zi(t))return t;t=Di(t)}return n}let r=Qi(e,t);for(;r&&gi(r)&&Zi(r);)r=Qi(r,t);return r&&Ti(r)&&Zi(r)&&!Si(r)?n:r||Ci(e)||n}var ea=async function(e){let t=this.getOffsetParent||$i,n=this.getDimensions,r=await n(e.floating);return{reference:Xi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ta(e){return Z(e).direction===`rtl`}var na={convertOffsetParentRelativeRectToViewportRelativeRect:Bi,getDocumentElement:di,getClippingRect:Ji,getOffsetParent:$i,getElementRects:ea,getClientRects:Vi,getDimensions:Yi,getScale:Ni,isElement:X,isRTL:ta};function ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ia(e,t,n){let r=null,i,a=di(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Cr(d),h=Cr(a.clientWidth-(u+f)),g=Cr(a.clientHeight-(d+p)),_=Cr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:W(0,U(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ra(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Y(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function aa(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Mi(e),u=i||a?[...l?ki(l):[],...t?ki(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ia(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Li(e):null;c&&g();function g(){let t=Li(e);h&&!ra(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var oa=ai,sa=Yr,ca=oi,la=Xr,ua=ci,da=$r,fa=qr,pa=ni,ma=si,ha=(e,t,n)=>{let r=new Map,i=n??{},a={...na,...i.platform,_c:r};return Kr(e,t,{...i,platform:a})},ga=typeof document<`u`?c.useLayoutEffect:function(){};function _a(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_a(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!_a(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function va(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ya(e,t){let n=va(e);return Math.round(t*n)/n}function ba(e){let t=c.useRef(e);return ga(()=>{t.current=e}),t}function xa(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=c.useState(r);_a(p,r)||m(r);let[g,_]=c.useState(null),[v,y]=c.useState(null),b=c.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=c.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=c.useRef(null),T=c.useRef(null),E=c.useRef(d),D=l!=null,O=ba(l),k=ba(i),ee=ba(u),A=c.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:p};k.current&&(e.platform=k.current),ha(w.current,T.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};j.current&&!_a(E.current,t)&&(E.current=t,h.flushSync(()=>{f(t)}))})},[p,t,n,k,ee]);ga(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let j=c.useRef(!1);ga(()=>(j.current=!0,()=>{j.current=!1}),[]),ga(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,A);A()}},[S,C,A,O,D]);let te=c.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),M=c.useMemo(()=>({reference:S,floating:C}),[S,C]),N=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ya(M.floating,d.x),r=ya(M.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...va(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:A,refs:te,elements:M,floatingStyles:N}),[d,A,te,M,N])}var Sa=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:fa({element:r.current,padding:i}).fn(n):r?fa({element:r,padding:i}).fn(n):{}}}},Ca=(e,t)=>{let n=oa(e);return{name:n.name,fn:n.fn,options:[e,t]}},wa=(e,t)=>{let n=ca(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ta=(e,t)=>({fn:ma(e).fn,options:[e,t]}),Ea=(e,t)=>{let n=la(e);return{name:n.name,fn:n.fn,options:[e,t]}},Da=(e,t)=>{let n=ua(e);return{name:n.name,fn:n.fn,options:[e,t]}},Oa=(e,t)=>{let n=da(e);return{name:n.name,fn:n.fn,options:[e,t]}},ka=(e,t)=>{let n=Sa(e);return{name:n.name,fn:n.fn,options:[e,t]}},Aa=Object.defineProperty,ja=(e,t)=>Aa(e,`name`,{value:t,configurable:!0}),Ma={Partial:`partial`,Always:`always`},Na={Optimized:`optimized`,Always:`always`},Pa=`Popper`,[Fa,Ia]=ce(Pa),[La,Ra]=Fa(Pa),za=ja(e=>{let{__scopePopper:t,children:n}=e,[r,i]=c.useState(null),[a,o]=c.useState(void 0);return(0,m.jsx)(La,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Ba=`PopperAnchor`,Va=c.forwardRef(ja(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Ra(Ba,n),o=c.useRef(null),s=a.onAnchorChange,l=p(t,c.useCallback(e=>{o.current=e,e&&s(e)},[s])),u=c.useRef(null);c.useEffect(()=>{if(!r)return;let e=u.current;u.current=r.current,e!==u.current&&s(u.current)});let d=a.placementState&&Ja(a.placementState),f=d?.[0],h=d?.[1];return r?null:(0,m.jsx)(N.div,{"data-radix-popper-side":f,"data-radix-popper-align":h,...i,ref:l})},`PopperAnchor`)),Ha=`PopperContent`,[Ua,Wa]=Fa(Ha),Ga=c.forwardRef(ja(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=Ma.Partial,hideWhenDetached:h=!1,updatePositionStrategy:g=Na.Optimized,onPlaced:_,...v}=e,y=Ra(Ha,n),[b,x]=c.useState(null),S=p(t,x),[C,w]=c.useState(null),T=vr(C),E=T?.width??0,D=T?.height??0,O=r+(a===`center`?``:`-`+a),k=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},ee=Array.isArray(u)?u:[u],A=ee.length>0,j={padding:k,boundary:ee.filter(Ka),altBoundary:A},{refs:te,floatingStyles:M,placement:ne,isPositioned:re,middlewareData:P}=xa({strategy:`fixed`,placement:O,whileElementsMounted:ja((...e)=>aa(...e,{animationFrame:g===Na.Always}),`whileElementsMounted`),elements:{reference:y.anchor},middleware:[Ca({mainAxis:i+D,alignmentAxis:o}),l&&wa({mainAxis:!0,crossAxis:!1,...f===Ma.Partial?{limiter:Ta()}:{},...j}),l&&Ea({...j}),Da({...j,apply:ja(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),C&&ka({element:C,padding:s}),qa({arrowWidth:E,arrowHeight:D}),h&&Oa(A?{strategy:`referenceHidden`,...j}:{strategy:`referenceHidden`,padding:j.padding,altBoundary:j.altBoundary})]}),ie=y.setPlacementState;I(()=>(ie(ne),()=>{ie(void 0)}),[ne,ie]);let[ae,oe]=Ja(ne),F=z(_);I(()=>{re&&F?.()},[re,F]);let se=P.arrow?.x,ce=P.arrow?.y,le=P.arrow?.centerOffset!==0,[ue,L]=c.useState();return I(()=>{b&&L(window.getComputedStyle(b).zIndex)},[b]),(0,m.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:re?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ue,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,m.jsx)(Ua,{scope:n,placedSide:ae,placedAlign:oe,onArrowChange:w,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,m.jsx)(N.div,{"data-side":ae,"data-align":oe,...v,ref:S,style:{...v.style,animation:re?v.style?.animation:`none`}})})})},`PopperContent`));function Ka(e){return e!==null}ja(Ka,`isNotNull`);var qa=ja(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ja(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Ja(e){let[t,n=`center`]=e.split(`-`);return[t,n]}ja(Ja,`getSideAndAlignFromPlacement`);var Ya=Object.defineProperty,Xa=(e,t)=>Ya(e,`name`,{value:t,configurable:!0}),Za=!1;function Qa(){let[e,t]=c.useState(Za);return c.useEffect(()=>{Za||(Za=!0,t(!0))},[]),e}Xa(Qa,`useIsHydrated`);var $a=c.useSyncExternalStore;function eo(){return()=>{}}Xa(eo,`subscribe`);function to(){return $a(eo,()=>!0,()=>!1)}Xa(to,`useIsHydratedModern`);var no=typeof $a==`function`?to:Qa,ro=Object.defineProperty,io=(e,t)=>ro(e,`name`,{value:t,configurable:!0}),ao=`rovingFocusGroup.onEntryFocus`,oo={bubbles:!1,cancelable:!0},so=`RovingFocusGroup`,[co,lo,uo]=de(so),[fo,po]=ce(so,[uo]),mo={Vertical:`vertical`,Horizontal:`horizontal`},ho={LTR:`ltr`,RTL:`rtl`},[go,_o]=fo(so),vo=c.forwardRef(io(function(e,t){return(0,m.jsx)(co.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(co.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(yo,{...e,ref:t})})})},`RovingFocusGroup`)),yo=c.forwardRef(io(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=c.useRef(null),g=p(t,h),_=st(a),[v,y]=Re({prop:o,defaultProp:s??null,onChange:l,caller:so}),[b,x]=c.useState(!1),S=z(u),C=lo(n),w=c.useRef(!1),[T,E]=c.useState(0);return c.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(ao,S),()=>e.removeEventListener(ao,S)},[S]),(0,m.jsx)(go,{scope:n,orientation:r,dir:_,loop:i,currentTabStopId:v,onItemFocus:c.useCallback(e=>y(e),[y]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:c.useCallback(()=>E(e=>e-1),[]),children:(0,m.jsx)(N.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...f,ref:g,style:{outline:`none`,...e.style},onMouseDown:R(e.onMouseDown,()=>{w.current=!0}),onFocus:R(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(ao,oo);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>e.focusable);To([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),d)}}w.current=!1}),onBlur:R(e.onBlur,()=>x(!1))})})},`RovingFocusGroupImpl`)),bo=`RovingFocusGroupItem`,xo=c.forwardRef(io(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,l=nt(),u=a||l,d=_o(bo,n),f=d.currentTabStopId===u,p=lo(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:_}=d,v=no();return I(()=>{if(v&&r)return h(),()=>g()},[v,r,h,g]),c.useEffect(()=>{if(!v&&r)return h(),()=>g()},[v,r,h,g]),(0,m.jsx)(co.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:(0,m.jsx)(N.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:R(e.onMouseDown,e=>{r?d.onItemFocus(u):e.preventDefault()}),onFocus:R(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:R(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=wo(e,d.orientation,d.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=p().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=d.loop?Eo(n,r+1):n.slice(r+1)}setTimeout(()=>To(n))}}),children:typeof o==`function`?o({isCurrentTabStop:f,hasTabStop:_!=null}):o})})},`RovingFocusGroupItem`)),So={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Co(e,t){return t===ho.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}io(Co,`getDirectionAwareKey`);function wo(e,t,n){let r=Co(e.key,n);if(!(t===mo.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===mo.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return So[r]}io(wo,`getFocusIntent`);function To(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}io(To,`focusFirst`);function Eo(e,t){return e.map((n,r)=>e[(t+r)%e.length])}io(Eo,`wrapArray`);var Do=Object.defineProperty,Q=(e,t)=>Do(e,`name`,{value:t,configurable:!0}),Oo=[`Enter`,` `],ko=[`ArrowDown`,`PageUp`,`Home`],Ao=[`ArrowUp`,`PageDown`,`End`],jo=[...ko,...Ao];[...Oo],[...Oo];var Mo=`Menu`,[No,Po,Fo]=de(Mo),[Io,Lo]=ce(Mo,[Fo,Ia,po]),Ro=Ia(),zo=po(),[Bo,Vo]=Io(Mo),[Ho,Uo]=Io(Mo),Wo=Q(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Ro(t),[l,u]=c.useState(null),d=c.useRef(!1),f=z(a),p=st(i);return c.useEffect(()=>{let e=Q(()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=Q(()=>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})}},[]),c.useEffect(()=>{if(!n)return;let e=Q(()=>f(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,f]),(0,m.jsx)(za,{...s,children:(0,m.jsx)(Bo,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:(0,m.jsx)(Ho,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:o,children:r})})})},`Menu`),Go=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,...r}=e,i=Ro(n);return(0,m.jsx)(Va,{...i,...r,ref:t})},`MenuAnchor`)),Ko=`MenuPortal`,[qo,Jo]=Io(Ko,{forceMount:void 0}),Yo=Q(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Vo(Ko,t);return(0,m.jsx)(qo,{scope:t,forceMount:n,children:(0,m.jsx)(Ke,{present:n||a.open,children:(0,m.jsx)(Gt,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Xo=`MenuContent`,[Zo,Qo]=Io(Xo),$o=c.forwardRef(Q(function(e,t){let n=Jo(Xo,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Vo(Xo,e.__scopeMenu),o=Uo(Xo,e.__scopeMenu);return(0,m.jsx)(No.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(Ke,{present:r||a.open,children:(0,m.jsx)(No.Slot,{scope:e.__scopeMenu,children:o.modal?(0,m.jsx)(es,{...i,ref:t}):(0,m.jsx)(ts,{...i,ref:t})})})})},`MenuContent`)),es=c.forwardRef(Q(function(e,t){let n=Vo(Xo,e.__scopeMenu),r=c.useRef(null),i=p(t,r);return c.useEffect(()=>{let e=r.current;if(e)return hr(e)},[]),(0,m.jsx)(rs,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),ts=c.forwardRef(Q(function(e,t){let n=Vo(Xo,e.__scopeMenu);return(0,m.jsx)(rs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),ns=v(`MenuContent.ScrollLock`),rs=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:g,disableOutsideScroll:_,...v}=e,y=Vo(Xo,n),b=Uo(Xo,n),x=Ro(n),S=zo(n),C=Po(n),[w,T]=c.useState(null),E=c.useRef(null),[D,O]=c.useState(null);Mt(D);let{nodes:k,registry:ee}=jt(),A=!!(i||_),j=p(t,E,y.onContentChange,O),te=c.useRef(0),M=c.useRef(``),N=c.useRef(0),ne=c.useRef(null),re=c.useRef(`right`),P=c.useRef(0),ie=c.useMemo(()=>_?[E,...k.map(e=>({current:e}))]:[],[E,k,_]),ae=_?or:c.Fragment,oe=_?{as:ns,allowPinchZoom:!0,shards:ie}:void 0,F=Q(e=>{let t=M.current+e,n=C().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Ds(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;function s(e){M.current=e,window.clearTimeout(te.current),e!==``&&(te.current=window.setTimeout(()=>s(``),1e3))}Q(s,`updateSearch`),s(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);c.useEffect(()=>()=>window.clearTimeout(te.current),[]),Zt();let se=c.useCallback(e=>re.current===ne.current?.side&&ks(e,ne.current?.area),[]);return(0,m.jsx)(Zo,{scope:n,searchRef:M,onItemEnter:c.useCallback(e=>{se(e)&&e.preventDefault()},[se]),onItemLeave:c.useCallback(e=>{se(e)||(E.current?.focus(),T(null))},[se]),onTriggerLeave:c.useCallback(e=>{se(e)&&e.preventDefault()},[se]),pointerGraceTimerRef:N,onPointerGraceIntentChange:c.useCallback(e=>{ne.current=e},[]),children:(0,m.jsx)(At,{registry:A?ee:null,children:(0,m.jsx)(ae,{...oe,children:(0,m.jsx)(Ot,{asChild:!0,trapped:i,branches:k,onMountAutoFocus:R(a,e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,m.jsx)(_t,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:g,children:(0,m.jsx)(vo,{asChild:!0,...S,dir:b.dir,orientation:`vertical`,loop:r,currentTabStopId:w,onCurrentTabStopIdChange:T,onEntryFocus:R(l,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,m.jsx)(Ga,{role:`menu`,"aria-orientation":`vertical`,"data-state":Ss(y.open),"data-radix-menu-content":``,dir:b.dir,...x,...v,ref:j,style:{outline:`none`,...v.style},onKeyDown:R(v.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&F(e.key));let i=E.current;if(e.target!==i||!jo.includes(e.key))return;e.preventDefault();let a=C().filter(e=>!e.disabled).map(e=>e.ref.current);Ao.includes(e.key)&&a.reverse(),Ts(a)}),onBlur:R(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(te.current),M.current=``)}),onPointerMove:R(e.onPointerMove,As(e=>{let t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>P.current?`right`:`left`;re.current=t,P.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),is=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,...r}=e;return(0,m.jsx)(N.div,{role:`group`,...r,ref:t})},`MenuGroup`)),as=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,...r}=e;return(0,m.jsx)(N.div,{...r,ref:t})},`MenuLabel`)),os=`MenuItem`,ss=`menu.itemSelect`,cs=c.forwardRef(Q(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=c.useRef(null),o=Uo(os,e.__scopeMenu),s=Qo(os,e.__scopeMenu),l=p(t,a),u=c.useRef(!1),d=Q(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(ss,{bubbles:!0,cancelable:!0});e.addEventListener(ss,e=>r?.(e),{once:!0}),ne(e,t),t.defaultPrevented?u.current=!1:o.onClose()}},`handleSelect`);return(0,m.jsx)(ls,{...i,ref:l,disabled:n,onClick:R(e.onClick,d),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:R(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:R(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&Oo.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),ls=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Qo(os,n),s=zo(n),l=c.useRef(null),u=p(t,l),[d,f]=c.useState(!1),[h,g]=c.useState(``);return c.useEffect(()=>{let e=l.current;e&&g((e.textContent??``).trim())},[a.children]),(0,m.jsx)(No.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:(0,m.jsx)(xo,{asChild:!0,...s,focusable:!r,children:(0,m.jsx)(N.div,{role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:u,onPointerMove:R(e.onPointerMove,As(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:R(e.onPointerLeave,As(e=>o.onItemLeave(e))),onFocus:R(e.onFocus,()=>f(!0)),onBlur:R(e.onBlur,()=>f(!1))})})})},`MenuItemImpl`)),[us,ds]=Io(`MenuRadioGroup`,{value:void 0,onValueChange:Q(()=>{},`onValueChange`)}),fs=c.forwardRef(Q(function(e,t){let{value:n,onValueChange:r,...i}=e,a=z(r);return(0,m.jsx)(us,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,m.jsx)(is,{...i,ref:t})})},`MenuRadioGroup`)),ps=`MenuRadioItem`,ms=c.forwardRef(Q(function(e,t){let{value:n,...r}=e,i=ds(ps,e.__scopeMenu),a=n===i.value;return(0,m.jsx)(gs,{scope:e.__scopeMenu,checked:a,children:(0,m.jsx)(cs,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":ws(a),onSelect:R(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),hs=`MenuItemIndicator`,[gs,_s]=Io(hs,{checked:!1}),vs=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=_s(hs,n);return(0,m.jsx)(Ke,{present:r||Cs(a.checked)||a.checked===!0,children:(0,m.jsx)(N.span,{...i,ref:t,"data-state":ws(a.checked)})})},`MenuItemIndicator`)),ys=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,...r}=e;return(0,m.jsx)(N.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[bs,xs]=Io(`MenuSub`);function Ss(e){return e?`open`:`closed`}Q(Ss,`getOpenState`);function Cs(e){return e===`indeterminate`}Q(Cs,`isIndeterminate`);function ws(e){return Cs(e)?`indeterminate`:e?`checked`:`unchecked`}Q(ws,`getCheckedState`);function Ts(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}Q(Ts,`focusFirst`);function Es(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Q(Es,`wrapArray`);function Ds(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Es(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Q(Ds,`getNextMatch`);function Os(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Q(Os,`isPointInPolygon`);function ks(e,t){return t?Os({x:e.clientX,y:e.clientY},t):!1}Q(ks,`isPointerInGraceArea`);function As(e){return t=>t.pointerType===`mouse`?e(t):void 0}Q(As,`whenMouse`);var js=Object.defineProperty,Ms=(e,t)=>js(e,`name`,{value:t,configurable:!0}),Ns=`DropdownMenu`,[Ps,Fs]=ce(Ns,[Lo]),Is=Lo(),[Ls,Rs]=Ps(Ns),zs=Ms(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=Is(t),u=c.useRef(null),[d,f]=Re({prop:i,defaultProp:a??!1,onChange:o,caller:Ns});return(0,m.jsx)(Ls,{scope:t,triggerId:nt(),triggerRef:u,contentId:nt(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:s,children:(0,m.jsx)(Wo,{...l,open:d,onOpenChange:f,dir:r,modal:s,children:n})})},`DropdownMenu`),Bs=`DropdownMenuTrigger`,Vs=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Rs(Bs,n),o=Is(n),s=p(t,a.triggerRef);return(0,m.jsx)(Go,{asChild:!0,...o,children:(0,m.jsx)(N.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:R(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:R(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Hs=Ms(e=>{let{__scopeDropdownMenu:t,...n}=e,r=Is(t);return(0,m.jsx)(Yo,{...r,...n})},`DropdownMenuPortal`),Us=`DropdownMenuContent`,Ws=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Rs(Us,n),a=Is(n),o=c.useRef(!1);return(0,m.jsx)($o,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:R(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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`)),Gs=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(as,{...i,...r,ref:t})},`DropdownMenuLabel`)),Ks=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(cs,{...i,...r,ref:t})},`DropdownMenuItem`)),qs=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(fs,{...i,...r,ref:t})},`DropdownMenuRadioGroup`)),Js=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(ms,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),Ys=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(vs,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),Xs=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(ys,{...i,...r,ref:t})},`DropdownMenuSeparator`)),Zs=Object.defineProperty,$=(e,t)=>Zs(e,`name`,{value:t,configurable:!0}),[Qs,$s]=ce(`Tooltip`,[Ia]),ec=Ia(),tc=`TooltipProvider`,nc=700,rc=`tooltip.open`,[ic,ac]=Qs(tc),oc=$(e=>{let{__scopeTooltip:t,delayDuration:n=nc,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=c.useRef(!0),s=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{let e=l.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(ic,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:c.useCallback(()=>{r<=0||(window.clearTimeout(l.current),o.current=!1)},[r]),onClose:c.useCallback(()=>{r<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:c.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),sc=`Tooltip`,[cc,lc]=Qs(sc),uc=$(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=ac(sc,e.__scopeTooltip),u=ec(t),[d,f]=c.useState(null),[p,h]=c.useState(void 0),g=nt(),_=c.useRef(0),v=o??l.disableHoverableContent,y=s??l.delayDuration,b=c.useRef(!1),[x,S]=Re({prop:r,defaultProp:i??!1,onChange:$(e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(rc))):l.onClose(),a?.(e)},`onChange`),caller:sc}),C=c.useMemo(()=>x?b.current?`delayed-open`:`instant-open`:`closed`,[x]),w=c.useCallback(()=>{window.clearTimeout(_.current),_.current=0,b.current=!1,S(!0)},[S]),T=c.useCallback(()=>{window.clearTimeout(_.current),_.current=0,S(!1)},[S]),E=c.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{b.current=!0,S(!0),_.current=0},y)},[y,S]);c.useEffect(()=>()=>{_.current&&=(window.clearTimeout(_.current),0)},[]);let D=p??g;return(0,m.jsx)(za,{...u,children:(0,m.jsx)(cc,{scope:t,contentId:D,setContentId:h,open:x,stateAttribute:C,trigger:d,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{l.isOpenDelayedRef.current?E():w()},[l.isOpenDelayedRef,E,w]),onTriggerLeave:c.useCallback(()=>{v?T():(window.clearTimeout(_.current),_.current=0)},[T,v]),onOpen:w,onClose:T,disableHoverableContent:v,children:n})})},`Tooltip`),dc=`TooltipTrigger`,fc=c.forwardRef($(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=lc(dc,n),o=ac(dc,n),s=ec(n),l=p(t,c.useRef(null),a.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener(`pointerup`,f),[f]),(0,m.jsx)(Va,{asChild:!0,...s,children:(0,m.jsx)(N.button,{"aria-describedby":a.open?Oc(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:l,onPointerMove:R(e.onPointerMove,e=>{e.pointerType!==`touch`&&!d.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:R(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener(`pointerup`,f,{once:!0})}),onFocus:R(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:R(e.onBlur,a.onClose),onClick:R(e.onClick,a.onClose)})})},`TooltipTrigger`)),pc=`TooltipPortal`,[mc,hc]=Qs(pc,{forceMount:void 0}),gc=$(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=lc(pc,t);return(0,m.jsx)(mc,{scope:t,forceMount:n,children:(0,m.jsx)(Ke,{present:n||a.open,children:(0,m.jsx)(Gt,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),_c=`TooltipContent`,vc=c.forwardRef($(function(e,t){let n=hc(_c,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=lc(_c,e.__scopeTooltip);return(0,m.jsx)(Ke,{present:r||o.open,children:o.disableHoverableContent?(0,m.jsx)(xc,{side:i,...a,ref:t}):(0,m.jsx)(yc,{side:i,...a,ref:t})})},`TooltipContent`)),yc=c.forwardRef($(function(e,t){let n=lc(_c,e.__scopeTooltip),r=ac(_c,e.__scopeTooltip),i=c.useRef(null),a=p(t,i),[o,s]=c.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,h=c.useCallback(()=>{s(null),f(!1)},[f]),g=c.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Cc(r,Sc(r,n.getBoundingClientRect())),a=wc(t.getBoundingClientRect()),o=Ec([...i,...a]);s(o),f(!0)},[f]);return c.useEffect(()=>()=>h(),[h]),c.useEffect(()=>{if(l&&d){let e=$(e=>g(e,d),`handleTriggerLeave`),t=$(e=>g(e,l),`handleContentLeave`);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,g,h]),c.useEffect(()=>{if(o){let e=$(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!Tc(n,o);r?h():i&&(h(),u())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,o,u,h]),(0,m.jsx)(xc,{...e,ref:a})},`TooltipContentHoverable`)),bc=b(`TooltipContent`),xc=c.forwardRef($(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...l}=e,u=lc(_c,n),d=ec(n),{onClose:f}=u,[h,g]=c.useState(null),_=p(t,g);Mt(h),c.useEffect(()=>(document.addEventListener(rc,f),()=>document.removeEventListener(rc,f)),[f]),c.useEffect(()=>{if(u.trigger){let e=$(e=>{e.target instanceof Node&&e.target.contains(u.trigger)&&f()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[u.trigger,f]);let{setContentId:v}=u;return I(()=>(v(a),()=>{v(void 0)}),[a,v]),(0,m.jsx)(_t,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,m.jsxs)(Ga,{"data-state":u.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:u.contentId,...d,...l,ref:_,style:{...l.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,m.jsx)(bc,{children:r}),i?(0,m.jsx)(ae,{id:u.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function Sc(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}$(Sc,`getExitSideFromRect`);function Cc(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}$(Cc,`getPaddedExitPoints`);function wc(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}$(wc,`getPointsFromRect`);function Tc(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}$(Tc,`isPointInPolygon`);function Ec(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Dc(t)}$(Ec,`getHull`);function Dc(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}$(Dc,`getHullPresorted`);function Oc(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}$(Oc,`concatAriaDescribedby`);var kc={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};kc.node;var Ac=a(kc),jc={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};jc.node;var Mc=a(jc),Nc=typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform)?`⌘`:`Ctrl`;function Pc({keys:e}){return(0,m.jsx)(`span`,{className:`inline-flex items-center gap-0.5`,"aria-hidden":`true`,children:e.map(e=>(0,m.jsx)(`kbd`,{className:`kbd`,children:e===`mod`?Nc:e},e))})}function Fc({children:e}){return(0,m.jsx)(oc,{delayDuration:350,skipDelayDuration:150,children:e})}function Ic({label:e,keys:t,side:n=`top`,children:r}){return(0,m.jsxs)(uc,{children:[(0,m.jsx)(fc,{asChild:!0,children:r}),(0,m.jsx)(gc,{children:(0,m.jsxs)(vc,{side:n,sideOffset:6,className:`z-50 flex items-center gap-2 rounded-[8px] bg-ink px-2 py-1 text-[12px] font-medium text-sheet shadow-md`,children:[e,t&&(0,m.jsx)(`span`,{className:`opacity-70 [&_.kbd]:border-transparent [&_.kbd]:bg-white/15 [&_.kbd]:text-sheet [&_.kbd]:shadow-none`,children:(0,m.jsx)(Pc,{keys:t})})]})})]})}var Lc=(0,c.createContext)(null);function Rc(){let e=(0,c.useContext)(Lc);if(!e)throw Error(`useWorkspace must be used inside AppShell`);return e}var zc=zs,Bc=Vs;function Vc({children:e,align:t=`end`,className:n,side:r}){let a=(0,c.useRef)(new Set),o=(0,c.useCallback)(e=>{e&&(a.current=new Set(document.querySelectorAll(`[data-autofocus]`)))},[]);return(0,m.jsx)(Hs,{children:(0,m.jsx)(Ws,{ref:o,onCloseAutoFocus:e=>{let t=[...document.querySelectorAll(`[data-autofocus]`)].find(e=>!a.current.has(e));t&&(e.preventDefault(),t.focus())},align:t,side:r,sideOffset:6,collisionPadding:12,className:i(`z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[200px] overflow-y-auto rounded-[12px] border border-line bg-surface p-1 shadow-lg outline-none`,n),children:e})})}function Hc({icon:e,children:t,onSelect:n,danger:r,shortcut:a,disabled:o,current:s}){return(0,m.jsxs)(Ks,{onSelect:n,disabled:o,"aria-current":s?`true`:void 0,className:i(`flex h-8 cursor-default items-center gap-2.5 rounded-[8px] px-2 text-[13px] outline-none select-none data-[disabled]:opacity-40 data-[highlighted]:bg-hover [&_svg]:size-[15px] [&_svg]:text-ink-3`,r?`text-danger data-[highlighted]:bg-danger-soft [&_svg]:text-danger`:`text-ink`),children:[e,(0,m.jsx)(`span`,{className:`flex-1 truncate`,children:t}),a&&(0,m.jsx)(`span`,{className:`font-mono text-[11px] text-ink-3`,children:a})]})}function Uc({children:e}){return(0,m.jsx)(Gs,{className:`px-2 pt-1.5 pb-1 text-[11px] font-semibold tracking-[0.06em] text-ink-3 uppercase`,children:e})}function Wc(){return(0,m.jsx)(Xs,{className:`my-1 h-px bg-line`})}var Gc=qs;function Kc({value:e,children:t,icon:n}){return(0,m.jsxs)(Js,{value:e,className:`flex h-8 cursor-default items-center gap-2.5 rounded-[8px] px-2 text-[13px] outline-none select-none data-[highlighted]:bg-hover data-[state=checked]:font-medium [&_svg]:size-[15px] [&_svg]:text-ink-3`,children:[n,(0,m.jsx)(`span`,{className:`flex-1`,children:t}),(0,m.jsx)(Ys,{children:(0,m.jsx)(`span`,{className:`block size-1.5 rounded-full bg-accent`})})]})}export{hr as A,nt as B,ha as C,oa as D,pa as E,At as F,ce as G,Re as H,Mt as I,f as J,N as K,jt as L,Zt as M,Gt as N,ca as O,Ot as P,_t as R,aa as S,da as T,R as U,Ke as V,I as W,s as X,p as Y,Va as _,Kc as a,fa as b,Bc as c,Ic as d,Fc as f,za as g,Ac as h,Gc as i,or as j,ua as k,Lc as l,Mc as m,Hc as n,zc as o,Pc as p,v as q,Uc as r,Wc as s,Vc as t,Rc as u,Ga as v,la as w,sa as x,Ia as y,vt as z};
|
|
41
|
+
`},tr=0,nr=[];function rr(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(tr++)[0],a=c.useState(Tn)[0],o=c.useRef(e);c.useEffect(function(){o.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=en([e.lockRef.current],(e.shards||[]).map(Qn),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Xn(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Un(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Un(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Yn(h,t,e,h===`h`?s:c,!0)},[]),l=c.useCallback(function(e){var n=e;if(nr.length&&nr[nr.length-1]===a){var r=`deltaY`in n?Zn(n):Xn(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&$n(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Qn).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ir(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=Xn(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,Zn(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,Xn(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return nr.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,Rn),document.addEventListener(`touchmove`,l,Rn),document.addEventListener(`touchstart`,d,Rn),function(){nr=nr.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,Rn),document.removeEventListener(`touchmove`,l,Rn),document.removeEventListener(`touchstart`,d,Rn)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:er(i)}):null,m?c.createElement(Fn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ir(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ar=hn(gn,rr),or=c.forwardRef(function(e,t){return c.createElement(vn,H({},e,{ref:t,sideCar:ar}))});or.classNames=vn.classNames;var sr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},cr=new WeakMap,lr=new WeakMap,ur={},dr=0,fr=function(e){return e&&(e.host||fr(e.parentNode))},pr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=fr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},mr=function(e,t,n,r){var i=pr(t,Array.isArray(e)?e:[e]);ur[n]||(ur[n]=new WeakMap);var a=ur[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(cr.get(e)||0)+1,l=(a.get(e)||0)+1;cr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&lr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),dr++,function(){o.forEach(function(e){var t=cr.get(e)-1,i=a.get(e)-1;cr.set(e,t),a.set(e,i),t||(lr.has(e)||e.removeAttribute(r),lr.delete(e)),i||e.removeAttribute(n)}),dr--,dr||(cr=new WeakMap,cr=new WeakMap,lr=new WeakMap,ur={})}},hr=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||sr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),mr(r,i,n,`aria-hidden`)):function(){return null}},gr=Object.defineProperty,_r=(e,t)=>gr(e,`name`,{value:t,configurable:!0});function vr(e){let[t,n]=c.useState(void 0);return I(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}_r(vr,`useSize`);var yr=[`top`,`right`,`bottom`,`left`],br=[`start`,`end`],xr=yr.reduce((e,t)=>e.concat(t,t+`-`+br[0],t+`-`+br[1]),[]),U=Math.min,W=Math.max,Sr=Math.round,Cr=Math.floor,wr=e=>({x:e,y:e}),Tr={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Er(e,t,n){return W(e,U(t,n))}function G(e,t){return typeof e==`function`?e(t):e}function K(e){return e.split(`-`)[0]}function q(e){return e.split(`-`)[1]}function Dr(e){return e===`x`?`y`:`x`}function Or(e){return e===`y`?`height`:`width`}function J(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function kr(e){return Dr(J(e))}function Ar(e,t,n){n===void 0&&(n=!1);let r=q(e),i=kr(e),a=Or(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=zr(o)),[o,zr(o)]}function jr(e){let t=zr(e);return[Mr(e),t,Mr(t)]}function Mr(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Nr=[`left`,`right`],Pr=[`right`,`left`],Fr=[`top`,`bottom`],Ir=[`bottom`,`top`];function Lr(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Pr:Nr:t?Nr:Pr;case`left`:case`right`:return t?Fr:Ir;default:return[]}}function Rr(e,t,n,r){let i=q(e),a=Lr(K(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Mr)))),a}function zr(e){let t=K(e);return Tr[t]+e.slice(t.length)}function Br(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Vr(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Br(e)}function Hr(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ur(e,t,n){let{reference:r,floating:i}=e,a=J(t),o=kr(t),s=Or(o),c=K(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=q(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Wr(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=G(t,e),p=Vr(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Hr(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Hr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Gr=50,Kr=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Wr},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ur(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Gr&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ur(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},qr=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=G(e,t)||{};if(l==null)return{};let d=Vr(u),f={x:n,y:r},p=kr(i),m=Or(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=U(d[_],T),D=U(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=Er(E,k,O),A=!c.arrow&&q(i)!=null&&k!==ee&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,j=A?k<E?k-E:k-O:0;return{[p]:f[p]+j,data:{[p]:ee,centerOffset:k-ee-j,...A&&{alignmentOffset:j}},reset:A}}});function Jr(e,t,n){return(e?[...n.filter(t=>q(t)===e),...n.filter(t=>q(t)!==e)]:n.filter(e=>K(e)===e)).filter(n=>!e||q(n)===e||(t?Mr(n)!==n:!1))}var Yr=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=xr,autoAlignment:u=!0,...d}=G(e,t),f=c!==void 0||l===xr?Jr(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Ar(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[K(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=q(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,q(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},Xr=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=G(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=K(r),_=J(o),v=K(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[zr(o)]:jr(o)),x=p!==`none`;!d&&x&&b.push(...Rr(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ar(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===J(t)||T.every(e=>J(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=J(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Zr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qr(e){return yr.some(t=>e[t]>=0)}var $r=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=G(e,t);switch(i){case`referenceHidden`:{let e=Zr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Qr(e)}}}case`escaped`:{let e=Zr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Qr(e)}}}default:return{}}}}};function ei(e){let t=U(...e.map(e=>e.left)),n=U(...e.map(e=>e.top)),r=W(...e.map(e=>e.right)),i=W(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function ti(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Hr(ei(e)))}var ni=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=G(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=ti(u),f=Hr(ei(u)),p=Vr(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(J(n)===`y`){let e=d[0],t=d[d.length-1],r=K(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return Hr({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=K(n)===`left`,t=W(...d.map(e=>e.right)),r=U(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return Hr({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},ri=new Set([`left`,`top`]);async function ii(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=K(n),s=q(n),c=J(n)===`y`,l=ri.has(o)?-1:1,u=a&&c?-1:1,d=G(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ai=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ii(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},oi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=G(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=J(i),p=Dr(f),m=u[p],h=u[f],g=(e,t)=>Er(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},si=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=G(e,t),u={x:n,y:r},d=J(i),f=Dr(d),p=u[f],m=u[d],h=G(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ri.has(K(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ci=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=G(e,t),c=await i.detectOverflow(t,s),l=K(n),u=q(n),d=J(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=U(p-c[m],g),y=U(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*W(c.left,c.right):S=p-2*W(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function li(){return typeof window<`u`}function ui(e){return fi(e)?(e.nodeName||``).toLowerCase():`#document`}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function di(e){return((fi(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function fi(e){return li()?e instanceof Node||e instanceof Y(e).Node:!1}function X(e){return li()?e instanceof Element||e instanceof Y(e).Element:!1}function pi(e){return li()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function mi(e){return!li()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function hi(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function gi(e){return/^(table|td|th)$/.test(ui(e))}function _i(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var vi=/transform|translate|scale|rotate|perspective|filter/,yi=/paint|layout|strict|content/,bi=e=>!!e&&e!==`none`,xi;function Si(e){let t=X(e)?Z(e):e;return bi(t.transform)||bi(t.translate)||bi(t.scale)||bi(t.rotate)||bi(t.perspective)||!wi()&&(bi(t.backdropFilter)||bi(t.filter))||vi.test(t.willChange||``)||yi.test(t.contain||``)}function Ci(e){let t=Di(e);for(;pi(t)&&!Ti(t);){if(Si(t))return t;if(_i(t))return null;t=Di(t)}return null}function wi(){return xi??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),xi}function Ti(e){return/^(html|body|#document)$/.test(ui(e))}function Z(e){return Y(e).getComputedStyle(e)}function Ei(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Di(e){if(ui(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||mi(e)&&e.host||di(e);return mi(t)?t.host:t}function Oi(e){let t=Di(e);return Ti(t)?(e.ownerDocument||e).body:pi(t)&&hi(t)?t:Oi(t)}function ki(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Oi(e),i=r===e.ownerDocument?.body,a=Y(r);if(i){let e=Ai(a);return t.concat(a,a.visualViewport||[],hi(r)?r:[],e&&n?ki(e):[])}return t.concat(r,ki(r,[],n))}function Ai(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ji(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=pi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Sr(n)!==a||Sr(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Mi(e){return X(e)?e:e.contextElement}function Ni(e){let t=Mi(e);if(!pi(t))return wr(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ji(t),o=(a?Sr(n.width):n.width)/r,s=(a?Sr(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Pi=wr(0);function Fi(e){let t=Y(e);return!wi()||!t.visualViewport?Pi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ii(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Y(e)}function Li(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Mi(e),o=wr(1);t&&(r?X(r)&&(o=Ni(r)):o=Ni(e));let s=Ii(a,n,r)?Fi(a):wr(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Y(a),t=X(r)?Y(r):r,n=e,i=Ai(n);for(;i&&t!==n;){let e=Ni(i),t=i.getBoundingClientRect(),r=Z(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Y(i),i=Ai(n)}}return Hr({width:u,height:d,x:c,y:l})}function Ri(e,t){let n=Ei(e).scrollLeft;return t?t.left+n:Li(di(e)).left+n}function zi(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ri(e,n),y:n.top+t.scrollTop}}function Bi(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=di(r),s=t?_i(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=wr(1),u=wr(0),d=pi(r);if((d||!a)&&((ui(r)!==`body`||hi(o))&&(c=Ei(r)),d)){let e=Li(r);l=Ni(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?zi(o,c):wr(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Vi(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Hi(e){let t=Ei(e),n=e.ownerDocument.body,r=W(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=W(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ri(e),o=-t.scrollTop;return Z(n).direction===`rtl`&&(a+=W(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ui=25;function Wi(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Y(e),a=di(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!wi()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ri(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ui&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Gi(e,t){let n=Li(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ni(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ki(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Wi(e,n,t);else if(t===`document`)r=Hi(di(e));else if(X(t))r=Gi(t,n);else{let n=Fi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Hr(r)}function qi(e,t){let n=t.get(e);if(n)return n;let r=ki(e,[],!1).filter(e=>X(e)&&ui(e)!==`body`),i=null,a=Z(e).position===`fixed`,o=a?Di(e):e;for(;X(o)&&!Ti(o);){let e=Z(o),t=Si(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Di(o)}return t.set(e,r),r}function Ji(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?_i(t)?[]:qi(t,this._c):[].concat(n),r],o=Ki(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ki(t,a[e],i);s=W(n.top,s),c=U(n.right,c),l=U(n.bottom,l),u=W(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Yi(e){let{width:t,height:n}=ji(e);return{width:t,height:n}}function Xi(e,t,n){let r=pi(t),i=di(t),a=n===`fixed`,o=Li(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=wr(0);if((r||!a)&&((ui(t)!==`body`||hi(i))&&(s=Ei(t)),r)){let e=Li(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ri(i));let l=i&&!r&&!a?zi(i,s):wr(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Zi(e){return Z(e).position===`static`}function Qi(e,t){if(!pi(e)||Z(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return di(e)===n&&(n=n.ownerDocument.body),n}function $i(e,t){let n=Y(e);if(_i(e))return n;if(!pi(e)){let t=Di(e);for(;t&&!Ti(t);){if(X(t)&&!Zi(t))return t;t=Di(t)}return n}let r=Qi(e,t);for(;r&&gi(r)&&Zi(r);)r=Qi(r,t);return r&&Ti(r)&&Zi(r)&&!Si(r)?n:r||Ci(e)||n}var ea=async function(e){let t=this.getOffsetParent||$i,n=this.getDimensions,r=await n(e.floating);return{reference:Xi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ta(e){return Z(e).direction===`rtl`}var na={convertOffsetParentRelativeRectToViewportRelativeRect:Bi,getDocumentElement:di,getClippingRect:Ji,getOffsetParent:$i,getElementRects:ea,getClientRects:Vi,getDimensions:Yi,getScale:Ni,isElement:X,isRTL:ta};function ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ia(e,t,n){let r=null,i,a=di(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Cr(d),h=Cr(a.clientWidth-(u+f)),g=Cr(a.clientHeight-(d+p)),_=Cr(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:W(0,U(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ra(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Y(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function aa(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Mi(e),u=i||a?[...l?ki(l):[],...t?ki(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ia(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Li(e):null;c&&g();function g(){let t=Li(e);h&&!ra(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var oa=ai,sa=Yr,ca=oi,la=Xr,ua=ci,da=$r,fa=qr,pa=ni,ma=si,ha=(e,t,n)=>{let r=new Map,i=n??{},a={...na,...i.platform,_c:r};return Kr(e,t,{...i,platform:a})},ga=typeof document<`u`?c.useLayoutEffect:function(){};function _a(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_a(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!_a(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function va(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ya(e,t){let n=va(e);return Math.round(t*n)/n}function ba(e){let t=c.useRef(e);return ga(()=>{t.current=e}),t}function xa(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=c.useState(r);_a(p,r)||m(r);let[g,_]=c.useState(null),[v,y]=c.useState(null),b=c.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=c.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=c.useRef(null),T=c.useRef(null),E=c.useRef(d),D=l!=null,O=ba(l),k=ba(i),ee=ba(u),A=c.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:p};k.current&&(e.platform=k.current),ha(w.current,T.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};j.current&&!_a(E.current,t)&&(E.current=t,h.flushSync(()=>{f(t)}))})},[p,t,n,k,ee]);ga(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let j=c.useRef(!1);ga(()=>(j.current=!0,()=>{j.current=!1}),[]),ga(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,A);A()}},[S,C,A,O,D]);let te=c.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),M=c.useMemo(()=>({reference:S,floating:C}),[S,C]),N=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ya(M.floating,d.x),r=ya(M.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...va(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:A,refs:te,elements:M,floatingStyles:N}),[d,A,te,M,N])}var Sa=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:fa({element:r.current,padding:i}).fn(n):r?fa({element:r,padding:i}).fn(n):{}}}},Ca=(e,t)=>{let n=oa(e);return{name:n.name,fn:n.fn,options:[e,t]}},wa=(e,t)=>{let n=ca(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ta=(e,t)=>({fn:ma(e).fn,options:[e,t]}),Ea=(e,t)=>{let n=la(e);return{name:n.name,fn:n.fn,options:[e,t]}},Da=(e,t)=>{let n=ua(e);return{name:n.name,fn:n.fn,options:[e,t]}},Oa=(e,t)=>{let n=da(e);return{name:n.name,fn:n.fn,options:[e,t]}},ka=(e,t)=>{let n=Sa(e);return{name:n.name,fn:n.fn,options:[e,t]}},Aa=Object.defineProperty,ja=(e,t)=>Aa(e,`name`,{value:t,configurable:!0}),Ma={Partial:`partial`,Always:`always`},Na={Optimized:`optimized`,Always:`always`},Pa=`Popper`,[Fa,Ia]=ce(Pa),[La,Ra]=Fa(Pa),za=ja(e=>{let{__scopePopper:t,children:n}=e,[r,i]=c.useState(null),[a,o]=c.useState(void 0);return(0,m.jsx)(La,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Ba=`PopperAnchor`,Va=c.forwardRef(ja(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Ra(Ba,n),o=c.useRef(null),s=a.onAnchorChange,l=p(t,c.useCallback(e=>{o.current=e,e&&s(e)},[s])),u=c.useRef(null);c.useEffect(()=>{if(!r)return;let e=u.current;u.current=r.current,e!==u.current&&s(u.current)});let d=a.placementState&&Ja(a.placementState),f=d?.[0],h=d?.[1];return r?null:(0,m.jsx)(N.div,{"data-radix-popper-side":f,"data-radix-popper-align":h,...i,ref:l})},`PopperAnchor`)),Ha=`PopperContent`,[Ua,Wa]=Fa(Ha),Ga=c.forwardRef(ja(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=Ma.Partial,hideWhenDetached:h=!1,updatePositionStrategy:g=Na.Optimized,onPlaced:_,...v}=e,y=Ra(Ha,n),[b,x]=c.useState(null),S=p(t,x),[C,w]=c.useState(null),T=vr(C),E=T?.width??0,D=T?.height??0,O=r+(a===`center`?``:`-`+a),k=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},ee=Array.isArray(u)?u:[u],A=ee.length>0,j={padding:k,boundary:ee.filter(Ka),altBoundary:A},{refs:te,floatingStyles:M,placement:ne,isPositioned:re,middlewareData:P}=xa({strategy:`fixed`,placement:O,whileElementsMounted:ja((...e)=>aa(...e,{animationFrame:g===Na.Always}),`whileElementsMounted`),elements:{reference:y.anchor},middleware:[Ca({mainAxis:i+D,alignmentAxis:o}),l&&wa({mainAxis:!0,crossAxis:!1,...f===Ma.Partial?{limiter:Ta()}:{},...j}),l&&Ea({...j}),Da({...j,apply:ja(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),C&&ka({element:C,padding:s}),qa({arrowWidth:E,arrowHeight:D}),h&&Oa(A?{strategy:`referenceHidden`,...j}:{strategy:`referenceHidden`,padding:j.padding,altBoundary:j.altBoundary})]}),ie=y.setPlacementState;I(()=>(ie(ne),()=>{ie(void 0)}),[ne,ie]);let[ae,oe]=Ja(ne),F=z(_);I(()=>{re&&F?.()},[re,F]);let se=P.arrow?.x,ce=P.arrow?.y,le=P.arrow?.centerOffset!==0,[ue,L]=c.useState();return I(()=>{b&&L(window.getComputedStyle(b).zIndex)},[b]),(0,m.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...M,transform:re?M.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ue,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,m.jsx)(Ua,{scope:n,placedSide:ae,placedAlign:oe,onArrowChange:w,arrowX:se,arrowY:ce,shouldHideArrow:le,children:(0,m.jsx)(N.div,{"data-side":ae,"data-align":oe,...v,ref:S,style:{...v.style,animation:re?v.style?.animation:`none`}})})})},`PopperContent`));function Ka(e){return e!==null}ja(Ka,`isNotNull`);var qa=ja(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ja(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Ja(e){let[t,n=`center`]=e.split(`-`);return[t,n]}ja(Ja,`getSideAndAlignFromPlacement`);var Ya=Object.defineProperty,Xa=(e,t)=>Ya(e,`name`,{value:t,configurable:!0}),Za=!1;function Qa(){let[e,t]=c.useState(Za);return c.useEffect(()=>{Za||(Za=!0,t(!0))},[]),e}Xa(Qa,`useIsHydrated`);var $a=c.useSyncExternalStore;function eo(){return()=>{}}Xa(eo,`subscribe`);function to(){return $a(eo,()=>!0,()=>!1)}Xa(to,`useIsHydratedModern`);var no=typeof $a==`function`?to:Qa,ro=Object.defineProperty,io=(e,t)=>ro(e,`name`,{value:t,configurable:!0}),ao=`rovingFocusGroup.onEntryFocus`,oo={bubbles:!1,cancelable:!0},so=`RovingFocusGroup`,[co,lo,uo]=de(so),[fo,po]=ce(so,[uo]),mo={Vertical:`vertical`,Horizontal:`horizontal`},ho={LTR:`ltr`,RTL:`rtl`},[go,_o]=fo(so),vo=c.forwardRef(io(function(e,t){return(0,m.jsx)(co.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(co.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(yo,{...e,ref:t})})})},`RovingFocusGroup`)),yo=c.forwardRef(io(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=c.useRef(null),g=p(t,h),_=st(a),[v,y]=Re({prop:o,defaultProp:s??null,onChange:l,caller:so}),[b,x]=c.useState(!1),S=z(u),C=lo(n),w=c.useRef(!1),[T,E]=c.useState(0);return c.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(ao,S),()=>e.removeEventListener(ao,S)},[S]),(0,m.jsx)(go,{scope:n,orientation:r,dir:_,loop:i,currentTabStopId:v,onItemFocus:c.useCallback(e=>y(e),[y]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:c.useCallback(()=>E(e=>e-1),[]),children:(0,m.jsx)(N.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...f,ref:g,style:{outline:`none`,...e.style},onMouseDown:R(e.onMouseDown,()=>{w.current=!0}),onFocus:R(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(ao,oo);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>e.focusable);To([e.find(e=>e.active),e.find(e=>e.id===v),...e].filter(Boolean).map(e=>e.ref.current),d)}}w.current=!1}),onBlur:R(e.onBlur,()=>x(!1))})})},`RovingFocusGroupImpl`)),bo=`RovingFocusGroupItem`,xo=c.forwardRef(io(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,l=nt(),u=a||l,d=_o(bo,n),f=d.currentTabStopId===u,p=lo(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:_}=d,v=no();return I(()=>{if(v&&r)return h(),()=>g()},[v,r,h,g]),c.useEffect(()=>{if(!v&&r)return h(),()=>g()},[v,r,h,g]),(0,m.jsx)(co.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:(0,m.jsx)(N.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:R(e.onMouseDown,e=>{r?d.onItemFocus(u):e.preventDefault()}),onFocus:R(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:R(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=wo(e,d.orientation,d.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=p().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=d.loop?Eo(n,r+1):n.slice(r+1)}setTimeout(()=>To(n))}}),children:typeof o==`function`?o({isCurrentTabStop:f,hasTabStop:_!=null}):o})})},`RovingFocusGroupItem`)),So={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Co(e,t){return t===ho.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}io(Co,`getDirectionAwareKey`);function wo(e,t,n){let r=Co(e.key,n);if(!(t===mo.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===mo.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return So[r]}io(wo,`getFocusIntent`);function To(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}io(To,`focusFirst`);function Eo(e,t){return e.map((n,r)=>e[(t+r)%e.length])}io(Eo,`wrapArray`);var Do=Object.defineProperty,Q=(e,t)=>Do(e,`name`,{value:t,configurable:!0}),Oo=[`Enter`,` `],ko=[`ArrowDown`,`PageUp`,`Home`],Ao=[`ArrowUp`,`PageDown`,`End`],jo=[...ko,...Ao];[...Oo],[...Oo];var Mo=`Menu`,[No,Po,Fo]=de(Mo),[Io,Lo]=ce(Mo,[Fo,Ia,po]),Ro=Ia(),zo=po(),[Bo,Vo]=Io(Mo),[Ho,Uo]=Io(Mo),Wo=Q(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Ro(t),[l,u]=c.useState(null),d=c.useRef(!1),f=z(a),p=st(i);return c.useEffect(()=>{let e=Q(()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=Q(()=>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})}},[]),c.useEffect(()=>{if(!n)return;let e=Q(()=>f(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,f]),(0,m.jsx)(za,{...s,children:(0,m.jsx)(Bo,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:(0,m.jsx)(Ho,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:o,children:r})})})},`Menu`),Go=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,...r}=e,i=Ro(n);return(0,m.jsx)(Va,{...i,...r,ref:t})},`MenuAnchor`)),Ko=`MenuPortal`,[qo,Jo]=Io(Ko,{forceMount:void 0}),Yo=Q(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Vo(Ko,t);return(0,m.jsx)(qo,{scope:t,forceMount:n,children:(0,m.jsx)(Ke,{present:n||a.open,children:(0,m.jsx)(Gt,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Xo=`MenuContent`,[Zo,Qo]=Io(Xo),$o=c.forwardRef(Q(function(e,t){let n=Jo(Xo,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Vo(Xo,e.__scopeMenu),o=Uo(Xo,e.__scopeMenu);return(0,m.jsx)(No.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(Ke,{present:r||a.open,children:(0,m.jsx)(No.Slot,{scope:e.__scopeMenu,children:o.modal?(0,m.jsx)(es,{...i,ref:t}):(0,m.jsx)(ts,{...i,ref:t})})})})},`MenuContent`)),es=c.forwardRef(Q(function(e,t){let n=Vo(Xo,e.__scopeMenu),r=c.useRef(null),i=p(t,r);return c.useEffect(()=>{let e=r.current;if(e)return hr(e)},[]),(0,m.jsx)(rs,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),ts=c.forwardRef(Q(function(e,t){let n=Vo(Xo,e.__scopeMenu);return(0,m.jsx)(rs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),ns=v(`MenuContent.ScrollLock`),rs=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:g,disableOutsideScroll:_,...v}=e,y=Vo(Xo,n),b=Uo(Xo,n),x=Ro(n),S=zo(n),C=Po(n),[w,T]=c.useState(null),E=c.useRef(null),[D,O]=c.useState(null);Mt(D);let{nodes:k,registry:ee}=jt(),A=!!(i||_),j=p(t,E,y.onContentChange,O),te=c.useRef(0),M=c.useRef(``),N=c.useRef(0),ne=c.useRef(null),re=c.useRef(`right`),P=c.useRef(0),ie=c.useMemo(()=>_?[E,...k.map(e=>({current:e}))]:[],[E,k,_]),ae=_?or:c.Fragment,oe=_?{as:ns,allowPinchZoom:!0,shards:ie}:void 0,F=Q(e=>{let t=M.current+e,n=C().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Ds(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;function s(e){M.current=e,window.clearTimeout(te.current),e!==``&&(te.current=window.setTimeout(()=>s(``),1e3))}Q(s,`updateSearch`),s(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);c.useEffect(()=>()=>window.clearTimeout(te.current),[]),Zt();let se=c.useCallback(e=>re.current===ne.current?.side&&ks(e,ne.current?.area),[]);return(0,m.jsx)(Zo,{scope:n,searchRef:M,onItemEnter:c.useCallback(e=>{se(e)&&e.preventDefault()},[se]),onItemLeave:c.useCallback(e=>{se(e)||(E.current?.focus(),T(null))},[se]),onTriggerLeave:c.useCallback(e=>{se(e)&&e.preventDefault()},[se]),pointerGraceTimerRef:N,onPointerGraceIntentChange:c.useCallback(e=>{ne.current=e},[]),children:(0,m.jsx)(At,{registry:A?ee:null,children:(0,m.jsx)(ae,{...oe,children:(0,m.jsx)(Ot,{asChild:!0,trapped:i,branches:k,onMountAutoFocus:R(a,e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,m.jsx)(_t,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:g,children:(0,m.jsx)(vo,{asChild:!0,...S,dir:b.dir,orientation:`vertical`,loop:r,currentTabStopId:w,onCurrentTabStopIdChange:T,onEntryFocus:R(l,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,m.jsx)(Ga,{role:`menu`,"aria-orientation":`vertical`,"data-state":Ss(y.open),"data-radix-menu-content":``,dir:b.dir,...x,...v,ref:j,style:{outline:`none`,...v.style},onKeyDown:R(v.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&F(e.key));let i=E.current;if(e.target!==i||!jo.includes(e.key))return;e.preventDefault();let a=C().filter(e=>!e.disabled).map(e=>e.ref.current);Ao.includes(e.key)&&a.reverse(),Ts(a)}),onBlur:R(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(te.current),M.current=``)}),onPointerMove:R(e.onPointerMove,As(e=>{let t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>P.current?`right`:`left`;re.current=t,P.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),is=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,...r}=e;return(0,m.jsx)(N.div,{role:`group`,...r,ref:t})},`MenuGroup`)),as=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,...r}=e;return(0,m.jsx)(N.div,{...r,ref:t})},`MenuLabel`)),os=`MenuItem`,ss=`menu.itemSelect`,cs=c.forwardRef(Q(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=c.useRef(null),o=Uo(os,e.__scopeMenu),s=Qo(os,e.__scopeMenu),l=p(t,a),u=c.useRef(!1),d=Q(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(ss,{bubbles:!0,cancelable:!0});e.addEventListener(ss,e=>r?.(e),{once:!0}),ne(e,t),t.defaultPrevented?u.current=!1:o.onClose()}},`handleSelect`);return(0,m.jsx)(ls,{...i,ref:l,disabled:n,onClick:R(e.onClick,d),onPointerDown:t=>{e.onPointerDown?.(t),u.current=!0},onPointerUp:R(e.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:R(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&Oo.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),ls=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Qo(os,n),s=zo(n),l=c.useRef(null),u=p(t,l),[d,f]=c.useState(!1),[h,g]=c.useState(``);return c.useEffect(()=>{let e=l.current;e&&g((e.textContent??``).trim())},[a.children]),(0,m.jsx)(No.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:(0,m.jsx)(xo,{asChild:!0,...s,focusable:!r,children:(0,m.jsx)(N.div,{role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:u,onPointerMove:R(e.onPointerMove,As(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:R(e.onPointerLeave,As(e=>o.onItemLeave(e))),onFocus:R(e.onFocus,()=>f(!0)),onBlur:R(e.onBlur,()=>f(!1))})})})},`MenuItemImpl`)),[us,ds]=Io(`MenuRadioGroup`,{value:void 0,onValueChange:Q(()=>{},`onValueChange`)}),fs=c.forwardRef(Q(function(e,t){let{value:n,onValueChange:r,...i}=e,a=z(r);return(0,m.jsx)(us,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,m.jsx)(is,{...i,ref:t})})},`MenuRadioGroup`)),ps=`MenuRadioItem`,ms=c.forwardRef(Q(function(e,t){let{value:n,...r}=e,i=ds(ps,e.__scopeMenu),a=n===i.value;return(0,m.jsx)(gs,{scope:e.__scopeMenu,checked:a,children:(0,m.jsx)(cs,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":ws(a),onSelect:R(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),hs=`MenuItemIndicator`,[gs,_s]=Io(hs,{checked:!1}),vs=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=_s(hs,n);return(0,m.jsx)(Ke,{present:r||Cs(a.checked)||a.checked===!0,children:(0,m.jsx)(N.span,{...i,ref:t,"data-state":ws(a.checked)})})},`MenuItemIndicator`)),ys=c.forwardRef(Q(function(e,t){let{__scopeMenu:n,...r}=e;return(0,m.jsx)(N.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[bs,xs]=Io(`MenuSub`);function Ss(e){return e?`open`:`closed`}Q(Ss,`getOpenState`);function Cs(e){return e===`indeterminate`}Q(Cs,`isIndeterminate`);function ws(e){return Cs(e)?`indeterminate`:e?`checked`:`unchecked`}Q(ws,`getCheckedState`);function Ts(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}Q(Ts,`focusFirst`);function Es(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Q(Es,`wrapArray`);function Ds(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Es(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Q(Ds,`getNextMatch`);function Os(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Q(Os,`isPointInPolygon`);function ks(e,t){return t?Os({x:e.clientX,y:e.clientY},t):!1}Q(ks,`isPointerInGraceArea`);function As(e){return t=>t.pointerType===`mouse`?e(t):void 0}Q(As,`whenMouse`);var js=Object.defineProperty,Ms=(e,t)=>js(e,`name`,{value:t,configurable:!0}),Ns=`DropdownMenu`,[Ps,Fs]=ce(Ns,[Lo]),Is=Lo(),[Ls,Rs]=Ps(Ns),zs=Ms(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=Is(t),u=c.useRef(null),[d,f]=Re({prop:i,defaultProp:a??!1,onChange:o,caller:Ns});return(0,m.jsx)(Ls,{scope:t,triggerId:nt(),triggerRef:u,contentId:nt(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:s,children:(0,m.jsx)(Wo,{...l,open:d,onOpenChange:f,dir:r,modal:s,children:n})})},`DropdownMenu`),Bs=`DropdownMenuTrigger`,Vs=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Rs(Bs,n),o=Is(n),s=p(t,a.triggerRef);return(0,m.jsx)(Go,{asChild:!0,...o,children:(0,m.jsx)(N.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:R(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:R(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Hs=Ms(e=>{let{__scopeDropdownMenu:t,...n}=e,r=Is(t);return(0,m.jsx)(Yo,{...r,...n})},`DropdownMenuPortal`),Us=`DropdownMenuContent`,Ws=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Rs(Us,n),a=Is(n),o=c.useRef(!1);return(0,m.jsx)($o,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:R(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.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`)),Gs=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(as,{...i,...r,ref:t})},`DropdownMenuLabel`)),Ks=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(cs,{...i,...r,ref:t})},`DropdownMenuItem`)),qs=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(fs,{...i,...r,ref:t})},`DropdownMenuRadioGroup`)),Js=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(ms,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),Ys=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(vs,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),Xs=c.forwardRef(Ms(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Is(n);return(0,m.jsx)(ys,{...i,...r,ref:t})},`DropdownMenuSeparator`)),Zs=Object.defineProperty,$=(e,t)=>Zs(e,`name`,{value:t,configurable:!0}),[Qs,$s]=ce(`Tooltip`,[Ia]),ec=Ia(),tc=`TooltipProvider`,nc=700,rc=`tooltip.open`,[ic,ac]=Qs(tc),oc=$(e=>{let{__scopeTooltip:t,delayDuration:n=nc,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=c.useRef(!0),s=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{let e=l.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(ic,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:c.useCallback(()=>{r<=0||(window.clearTimeout(l.current),o.current=!1)},[r]),onClose:c.useCallback(()=>{r<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:c.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),sc=`Tooltip`,[cc,lc]=Qs(sc),uc=$(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=ac(sc,e.__scopeTooltip),u=ec(t),[d,f]=c.useState(null),[p,h]=c.useState(void 0),g=nt(),_=c.useRef(0),v=o??l.disableHoverableContent,y=s??l.delayDuration,b=c.useRef(!1),[x,S]=Re({prop:r,defaultProp:i??!1,onChange:$(e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(rc))):l.onClose(),a?.(e)},`onChange`),caller:sc}),C=c.useMemo(()=>x?b.current?`delayed-open`:`instant-open`:`closed`,[x]),w=c.useCallback(()=>{window.clearTimeout(_.current),_.current=0,b.current=!1,S(!0)},[S]),T=c.useCallback(()=>{window.clearTimeout(_.current),_.current=0,S(!1)},[S]),E=c.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{b.current=!0,S(!0),_.current=0},y)},[y,S]);c.useEffect(()=>()=>{_.current&&=(window.clearTimeout(_.current),0)},[]);let D=p??g;return(0,m.jsx)(za,{...u,children:(0,m.jsx)(cc,{scope:t,contentId:D,setContentId:h,open:x,stateAttribute:C,trigger:d,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{l.isOpenDelayedRef.current?E():w()},[l.isOpenDelayedRef,E,w]),onTriggerLeave:c.useCallback(()=>{v?T():(window.clearTimeout(_.current),_.current=0)},[T,v]),onOpen:w,onClose:T,disableHoverableContent:v,children:n})})},`Tooltip`),dc=`TooltipTrigger`,fc=c.forwardRef($(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=lc(dc,n),o=ac(dc,n),s=ec(n),l=p(t,c.useRef(null),a.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener(`pointerup`,f),[f]),(0,m.jsx)(Va,{asChild:!0,...s,children:(0,m.jsx)(N.button,{"aria-describedby":a.open?Oc(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:l,onPointerMove:R(e.onPointerMove,e=>{e.pointerType!==`touch`&&!d.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:R(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener(`pointerup`,f,{once:!0})}),onFocus:R(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:R(e.onBlur,a.onClose),onClick:R(e.onClick,a.onClose)})})},`TooltipTrigger`)),pc=`TooltipPortal`,[mc,hc]=Qs(pc,{forceMount:void 0}),gc=$(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=lc(pc,t);return(0,m.jsx)(mc,{scope:t,forceMount:n,children:(0,m.jsx)(Ke,{present:n||a.open,children:(0,m.jsx)(Gt,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),_c=`TooltipContent`,vc=c.forwardRef($(function(e,t){let n=hc(_c,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=lc(_c,e.__scopeTooltip);return(0,m.jsx)(Ke,{present:r||o.open,children:o.disableHoverableContent?(0,m.jsx)(xc,{side:i,...a,ref:t}):(0,m.jsx)(yc,{side:i,...a,ref:t})})},`TooltipContent`)),yc=c.forwardRef($(function(e,t){let n=lc(_c,e.__scopeTooltip),r=ac(_c,e.__scopeTooltip),i=c.useRef(null),a=p(t,i),[o,s]=c.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,h=c.useCallback(()=>{s(null),f(!1)},[f]),g=c.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Cc(r,Sc(r,n.getBoundingClientRect())),a=wc(t.getBoundingClientRect()),o=Ec([...i,...a]);s(o),f(!0)},[f]);return c.useEffect(()=>()=>h(),[h]),c.useEffect(()=>{if(l&&d){let e=$(e=>g(e,d),`handleTriggerLeave`),t=$(e=>g(e,l),`handleContentLeave`);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,g,h]),c.useEffect(()=>{if(o){let e=$(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!Tc(n,o);r?h():i&&(h(),u())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,o,u,h]),(0,m.jsx)(xc,{...e,ref:a})},`TooltipContentHoverable`)),bc=b(`TooltipContent`),xc=c.forwardRef($(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...l}=e,u=lc(_c,n),d=ec(n),{onClose:f}=u,[h,g]=c.useState(null),_=p(t,g);Mt(h),c.useEffect(()=>(document.addEventListener(rc,f),()=>document.removeEventListener(rc,f)),[f]),c.useEffect(()=>{if(u.trigger){let e=$(e=>{e.target instanceof Node&&e.target.contains(u.trigger)&&f()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[u.trigger,f]);let{setContentId:v}=u;return I(()=>(v(a),()=>{v(void 0)}),[a,v]),(0,m.jsx)(_t,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,m.jsxs)(Ga,{"data-state":u.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:u.contentId,...d,...l,ref:_,style:{...l.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,m.jsx)(bc,{children:r}),i?(0,m.jsx)(ae,{id:u.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function Sc(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}$(Sc,`getExitSideFromRect`);function Cc(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}$(Cc,`getPaddedExitPoints`);function wc(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}$(wc,`getPointsFromRect`);function Tc(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}$(Tc,`isPointInPolygon`);function Ec(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Dc(t)}$(Ec,`getHull`);function Dc(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}$(Dc,`getHullPresorted`);function Oc(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}$(Oc,`concatAriaDescribedby`);var kc={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};kc.node;var Ac=r(kc),jc={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};jc.node;var Mc=r(jc),Nc=typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform)?`⌘`:`Ctrl`;function Pc({keys:e}){return(0,m.jsx)(`span`,{className:`inline-flex items-center gap-0.5`,"aria-hidden":`true`,children:e.map(e=>(0,m.jsx)(`kbd`,{className:`kbd`,children:e===`mod`?Nc:e},e))})}function Fc({children:e}){return(0,m.jsx)(oc,{delayDuration:350,skipDelayDuration:150,children:e})}function Ic({label:e,keys:t,side:n=`top`,children:r}){return(0,m.jsxs)(uc,{children:[(0,m.jsx)(fc,{asChild:!0,children:r}),(0,m.jsx)(gc,{children:(0,m.jsxs)(vc,{side:n,sideOffset:6,className:`z-50 flex items-center gap-2 rounded-[8px] bg-ink px-2 py-1 text-[12px] font-medium text-sheet shadow-md`,children:[e,t&&(0,m.jsx)(`span`,{className:`opacity-70 [&_.kbd]:border-transparent [&_.kbd]:bg-white/15 [&_.kbd]:text-sheet [&_.kbd]:shadow-none`,children:(0,m.jsx)(Pc,{keys:t})})]})})]})}var Lc=(0,c.createContext)(null);function Rc(){let e=(0,c.useContext)(Lc);if(!e)throw Error(`useWorkspace must be used inside AppShell`);return e}var zc=zs,Bc=Vs;function Vc({children:e,align:t=`end`,className:r,side:i}){let a=(0,c.useRef)(new Set),o=(0,c.useCallback)(e=>{e&&(a.current=new Set(document.querySelectorAll(`[data-autofocus]`)))},[]);return(0,m.jsx)(Hs,{children:(0,m.jsx)(Ws,{ref:o,onCloseAutoFocus:e=>{let t=[...document.querySelectorAll(`[data-autofocus]`)].find(e=>!a.current.has(e));t&&(e.preventDefault(),t.focus())},align:t,side:i,sideOffset:6,collisionPadding:12,className:n(`z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[200px] overflow-y-auto rounded-[12px] border border-line bg-surface p-1 shadow-lg outline-none`,r),children:e})})}function Hc({icon:e,children:t,onSelect:r,danger:i,shortcut:a,disabled:o,current:s}){return(0,m.jsxs)(Ks,{onSelect:r,disabled:o,"aria-current":s?`true`:void 0,className:n(`flex h-8 cursor-default items-center gap-2.5 rounded-[8px] px-2 text-[13px] outline-none select-none data-[disabled]:opacity-40 data-[highlighted]:bg-hover [&_svg]:size-[15px] [&_svg]:text-ink-3`,i?`text-danger data-[highlighted]:bg-danger-soft [&_svg]:text-danger`:`text-ink`),children:[e,(0,m.jsx)(`span`,{className:`flex-1 truncate`,children:t}),a&&(0,m.jsx)(`span`,{className:`font-mono text-[11px] text-ink-3`,children:a})]})}function Uc({children:e}){return(0,m.jsx)(Gs,{className:`px-2 pt-1.5 pb-1 text-[11px] font-semibold tracking-[0.06em] text-ink-3 uppercase`,children:e})}function Wc(){return(0,m.jsx)(Xs,{className:`my-1 h-px bg-line`})}var Gc=qs;function Kc({value:e,children:t,icon:n}){return(0,m.jsxs)(Js,{value:e,className:`flex h-8 cursor-default items-center gap-2.5 rounded-[8px] px-2 text-[13px] outline-none select-none data-[highlighted]:bg-hover data-[state=checked]:font-medium [&_svg]:size-[15px] [&_svg]:text-ink-3`,children:[n,(0,m.jsx)(`span`,{className:`flex-1`,children:t}),(0,m.jsx)(Ys,{children:(0,m.jsx)(`span`,{className:`block size-1.5 rounded-full bg-accent`})})]})}export{ua as A,vt as B,aa as C,pa as D,da as E,Ot as F,I as G,Ke as H,At as I,v as J,ce as K,Mt as L,or as M,Zt as N,oa as O,Gt as P,jt as R,sa as S,la as T,Re as U,nt as V,R as W,p as X,f as Y,s as Z,za as _,Kc as a,Ia as b,Bc as c,Ic as d,Fc as f,Ac as g,Mc as h,Gc as i,hr as j,ca as k,Lc as l,Nc as m,Hc as n,zc as o,Pc as p,N as q,Uc as r,Wc as s,Vc as t,Rc as u,Va as v,ha as w,fa as x,Ga as y,_t as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,d as t,
|
|
1
|
+
import{c as e,d as t,g as n,n as r,o as i,t as a,u as o}from"./Menu-CzgZwzmu.js";import{Dt as s,Et as c,Ot as l,Ut as u,Zt as d,rn as f}from"./format-Dk1nO38Z.js";var p={name:`panel-left`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]],aliases:[`sidebar`]};p.node;var m=c(p),h=f(),g=5;function _({crumbs:c,actions:f,className:p}){let{t:_}=l(`shell`),{sidebarOpen:v,toggleSidebar:y}=o(),b=d(),x=c.length>g?c.slice(1,-3):[],S=x.length?[c[0],`folded`,...c.slice(-3)]:c;return(0,h.jsxs)(`header`,{className:s(`flex h-[52px] shrink-0 items-center gap-2 border-b border-line px-3 sm:px-4`,p),children:[(0,h.jsx)(`div`,{className:s(v&&`min-[900px]:hidden`),children:(0,h.jsx)(t,{label:_(v?`header.hideSidebar`:`header.showSidebar`),keys:[`mod`,`\\`],children:(0,h.jsx)(`button`,{type:`button`,onClick:y,className:`grid size-8 place-items-center rounded-[8px] text-ink-3 hover:bg-hover hover:text-ink`,"aria-label":_(`header.toggleSidebar`),"aria-expanded":v,children:(0,h.jsx)(m,{className:`size-[17px]`})})})}),(0,h.jsx)(`nav`,{"aria-label":_(`header.breadcrumb`),className:`flex min-w-0 flex-1 items-center gap-1 text-[13px]`,children:S.map((t,o)=>{if(t===`folded`)return(0,h.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 max-sm:hidden`,children:[(0,h.jsxs)(i,{children:[(0,h.jsx)(e,{asChild:!0,children:(0,h.jsx)(`button`,{type:`button`,"aria-label":_(`header.moreCrumbs`),className:`grid h-7 w-7 place-items-center rounded-[6px] text-ink-3 hover:bg-hover hover:text-ink data-[state=open]:bg-hover`,children:(0,h.jsx)(n,{className:`size-4`})})}),(0,h.jsx)(a,{align:`start`,className:`max-h-[60vh] max-w-[320px] overflow-y-auto`,children:x.map((e,t)=>(0,h.jsx)(r,{onSelect:()=>e.to&&b(e.to),children:(0,h.jsx)(`span`,{className:`block truncate`,children:e.label})},t))})]}),(0,h.jsx)(`span`,{className:`text-ink-4`,children:`/`})]},`folded`);let c=o===S.length-1;return(0,h.jsxs)(`span`,{className:s(`flex min-w-0 items-center gap-1`,!c&&`max-sm:hidden`),children:[t.to&&!c?(0,h.jsx)(u,{to:t.to,className:`truncate rounded-[6px] px-1.5 py-1 text-ink-3 hover:bg-hover hover:text-ink`,children:t.label}):(0,h.jsx)(`span`,{className:s(`truncate px-1.5 py-1`,c?`font-medium text-ink`:`text-ink-3`),"aria-current":c?`page`:void 0,children:t.label}),!c&&(0,h.jsx)(`span`,{className:`text-ink-4`,children:`/`})]},o)})}),f&&(0,h.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:f})]})}export{_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Bt as t,Dt as n,G as r,J as i,Ot as a,X as o,Y as s,Z as c,in as l,q as u,rn as d}from"./format-Dk1nO38Z.js";var f=e(l(),1),p=d(),m=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}ー]/u,h=/[\p{L}\p{N}]/u,g=e=>e!==void 0&&h.test(e)&&!m.test(e),_=new Intl.Segmenter(`ja`,{granularity:`grapheme`});function v(e,t){let n=new Set(Array.from(_.segment(e),e=>e.index)),r=[],i=0;for(let a of t(e)){let e=r.at(-1);e!==void 0&&(!n.has(i)||g([...e].at(-1))&&g([...a][0]))?r[r.length-1]=e+a:r.push(a),i+=a.length}return r}var y=(e,t)=>r(e)??c(e,v(e,t));function b(e,{cache:n=!0}={}){a();let r=t.resolvedLanguage===`ja`&&m.test(e),c=(0,f.useSyncExternalStore)(s,o,o);return(0,f.useEffect)(()=>{r&&u()},[r]),r?i?`native`:c?n?y(e,c):v(e,c):null:null}var x=(e,t,n)=>e.slice(t,n)||null;function S(e,t,n){let r=0;return(t??[e]).map((e,t)=>{let i=r;r+=e.length;let a=Math.max(n?.[0]??0,i)-i,o=Math.min(n?.[1]??0,r)-i;return(0,p.jsxs)(f.Fragment,{children:[t>0&&(0,p.jsx)(`wbr`,{}),a<o?(0,p.jsxs)(p.Fragment,{children:[x(e,0,a),(0,p.jsx)(`span`,{className:`italic`,children:e.slice(a,o)}),x(e,o)]}):e]},t)})}function C({text:e,cache:t,italic:n}){let r=b(e,{cache:t});return r===null?n?S(e,null,n):e:(0,p.jsx)(`span`,{className:`orq-phrases`,children:S(e,r===`native`?null:r,n)})}function w(e,t=`name`){let[n,r]=[`<${t}>`,`</${t}>`],i=e.indexOf(n),a=e.lastIndexOf(r);if(i<0||a<i+n.length)return[e,void 0];let o=e.slice(i+n.length,a);return[e.slice(0,i)+o+e.slice(a+r.length),[i,i+o.length]]}function T(e,t,n){let r={offset:0,distance:1/0},i=0,a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),o=document.createRange();for(let e=a.nextNode();e;e=a.nextNode()){let a=e.textContent??``;for(let{index:s,segment:c}of _.segment(a)){o.setStart(e,s),o.setEnd(e,s+c.length);let a=o.getBoundingClientRect();if(a.width===0&&a.height===0)continue;let l=t<a.left?a.left-t:t>a.right?t-a.right:0,u=(n<a.top?a.top-n:n>a.bottom?n-a.bottom:0)*1e4+l;u<r.distance&&(r={offset:i+s+(t>a.left+a.width/2?c.length:0),distance:u})}i+=a.length}return r.offset}function E(e){if(!e)return;e.style.minHeight=`0`,e.style.height=`0`;let t=e.scrollHeight;e.style.height=``,e.style.minHeight=`${t}px`}function D(e,t){let[r,i]=(0,f.useState)(null),a=b(r??e),o=(0,f.useRef)(null),s=(0,f.useRef)(null),c=Array.isArray(a),l=c&&r===null;return{hidden:l,onFocus:()=>i(e),onBlur:()=>i(null),onPointerDown:e=>{s.current=l&&o.current?T(o.current,e.clientX,e.clientY):null},onClick:e=>{let t=e.currentTarget,n=s.current;s.current=null,n!==null&&t.selectionStart===t.selectionEnd&&t.setSelectionRange(n,n)},overlay:c?(0,p.jsx)(`div`,{ref:o,"aria-hidden":`true`,className:n(`pointer-events-none orq-phrases whitespace-pre-wrap [grid-area:1/1]`,t,r!==null&&`invisible`),children:S(r??e,a)}):null}}export{w as i,E as n,D as r,C as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Dt as t,Et as n,in as r,rn as i}from"./format-Dk1nO38Z.js";import{F as a,H as o,I as s,J as c,K as l,L as u,M as d,N as f,P as p,R as m,U as h,V as g,W as _,X as v,_ as y,b,j as x,q as S,v as C,y as w,z as T}from"./Menu-CzgZwzmu.js";import{c as E}from"./dist-DFO0RDUp.js";var D=e(r(),1),O=i(),k=Object.defineProperty,A=(e,t)=>k(e,`name`,{value:t,configurable:!0}),j=`Popover`,[M,ee]=l(j,[b]),N=b(),[P,F]=M(j),I=A(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=N(t),c=D.useRef(null),[l,u]=D.useState(!1),[d,f]=D.useState(0),[p,m]=D.useState(0),[_,v]=h({prop:r,defaultProp:i??!1,onChange:a,caller:j});return(0,O.jsx)(y,{...s,children:(0,O.jsx)(P,{scope:t,contentId:g(),titleId:g(),descriptionId:g(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,triggerRef:c,open:_,onOpenChange:v,onOpenToggle:D.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:l,onCustomAnchorAdd:D.useCallback(()=>u(!0),[]),onCustomAnchorRemove:D.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),L=`PopoverTrigger`,R=D.forwardRef(A(function(e,t){let{__scopePopover:n,...r}=e,i=F(L,n),a=N(n),o=v(t,i.triggerRef),s=(0,O.jsx)(S.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Y(i.open),...r,ref:o,onClick:_(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,O.jsx)(C,{asChild:!0,...a,children:s})},`PopoverTrigger`)),z=`PopoverPortal`,[B,V]=M(z,{forceMount:void 0}),H=A(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=F(z,t);return(0,O.jsx)(B,{scope:t,forceMount:n,children:(0,O.jsx)(o,{present:n||a.open,children:(0,O.jsx)(p,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),U=`PopoverContent`,W=D.forwardRef(A(function(e,t){let n=V(U,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=F(U,e.__scopePopover);return(0,O.jsx)(o,{present:r||a.open,children:a.modal?(0,O.jsx)(K,{...i,ref:t}):(0,O.jsx)(q,{...i,ref:t})})},`PopoverContent`)),G=c(`PopoverContent.RemoveScroll`),K=D.forwardRef(A(function(e,t){let n=F(U,e.__scopePopover),r=D.useRef(null),i=v(t,r),a=D.useRef(!1),{nodes:o,registry:s}=m();return D.useEffect(()=>{let e=r.current;if(e)return x(e)},[]),(0,O.jsx)(d,{as:G,allowPinchZoom:!0,shards:D.useMemo(()=>[r,...o.map(e=>({current:e}))],[r,o]),children:(0,O.jsx)(J,{...e,ref:i,branchNodes:o,branchRegistry:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:_(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),q=D.forwardRef(A(function(e,t){let n=F(U,e.__scopePopover),r=D.useRef(!1),i=D.useRef(!1);return(0,O.jsx)(J,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),J=D.forwardRef(A(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,"aria-describedby":h,branchNodes:g,branchRegistry:_,...y}=e,b=F(U,n),x=N(n),[S,C]=D.useState(null),E=v(t,C);return u(S),f(),(0,O.jsx)(s,{registry:_,children:(0,O.jsx)(a,{asChild:!0,loop:!0,trapped:r,branches:g,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,O.jsx)(T,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>b.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,O.jsx)(w,{"data-state":Y(b.open),role:`dialog`,id:b.contentId,"aria-labelledby":b.titlePresent?b.titleId:void 0,"aria-describedby":b.descriptionPresent?X(h,b.descriptionId):h,...x,...y,ref:E,style:{...y.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`));function Y(e){return e?`open`:`closed`}A(Y,`getState`);function X(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}A(X,`concatAriaDescribedby`);var Z={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};Z.node;var Q=n(Z);function $({trigger:e,children:n,open:r,onOpenChange:i,align:a=`start`,className:o}){return(0,O.jsxs)(I,{open:r,onOpenChange:i,children:[(0,O.jsx)(R,{asChild:!0,children:e}),(0,O.jsx)(H,{children:(0,O.jsx)(W,{align:a,sideOffset:6,collisionPadding:12,onEscapeKeyDown:E,className:t(`z-50 rounded-[14px] border border-line bg-surface p-2 shadow-lg outline-none`,o),children:n})})]})}export{Q as n,$ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./file-plus-B9m4uZcE.js";import{n,t as r}from"./square-kanban-Cd_tPOtx.js";import{t as i}from"./pencil-C37OTkSN.js";import{t as a}from"./plus-DcOCeQtr.js";import{t as o}from"./trash-CkQBpprn.js";import{Dt as s,Ot as c,Qt as l,Ut as u,f as d,in as f,p,rn as m}from"./format-Dk1nO38Z.js";import{t as h}from"./Phrases-C89QdC4L.js";import{n as g,t as _}from"./ProjectSettingsDialog-ekHTFmaO.js";import{t as v}from"./Button-CHkkj3LG.js";import{n as y}from"./ColorPicker-DSVbH2ix.js";import{t as b}from"./PageHeader-DJdrnGpr.js";import{t as x}from"./actions-TwDLbdln.js";import{n as S}from"./States-D9T0E3QG.js";import{u as C}from"./Menu-CzgZwzmu.js";var w=e(f(),1),T=m();function E(){let{t:e}=c([`projects`,`docs`]),{projectId:f}=l(),{workspaceId:m,overview:E}=C(),D=x(m),[O,k]=(0,w.useState)(!1),A=E?.projects.find(e=>e.id===f);if(!E)return(0,T.jsx)(`div`,{className:`p-10`,children:(0,T.jsx)(`div`,{className:`skeleton h-10 w-1/3`})});if(!A)return(0,T.jsx)(S,{});let j=A.pages.filter(e=>e.parentId===null),M=e=>A.pages.filter(t=>t.parentId===e).length,N=[...A.pages].sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)).slice(0,5),P=y(A.color);return(0,T.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,T.jsx)(b,{crumbs:[{label:A.name}],actions:(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(v,{variant:`ghost`,size:`sm`,icon:(0,T.jsx)(i,{}),onClick:()=>k(!0),children:(0,T.jsx)(`span`,{className:`max-sm:sr-only`,children:e(`edit`)})}),(0,T.jsx)(v,{variant:`ghost`,size:`sm`,iconOnly:!0,icon:(0,T.jsx)(o,{}),"aria-label":e(`delete`),onClick:()=>void D.deleteProject(A)})]})}),(0,T.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:(0,T.jsxs)(`div`,{className:`mx-auto w-full max-w-[1040px] px-6 py-10 sm:px-10`,children:[(0,T.jsxs)(`div`,{className:`animate-rise flex items-start gap-4`,children:[(0,T.jsx)(g,{color:A.color,className:`size-12 rounded-[12px] text-[22px]`,children:d(A.name)}),(0,T.jsxs)(`div`,{className:`min-w-0`,children:[(0,T.jsx)(`h1`,{className:`font-display text-[34px] leading-tight font-medium tracking-[-0.02em]`,children:(0,T.jsx)(h,{text:A.name})}),(0,T.jsx)(`p`,{className:`mt-1 text-[14px] text-ink-2`,children:A.description||e(`summary`,{boards:e(`boardCount`,{count:A.boards.length}),pages:e(`pageCount`,{count:A.pages.length})})})]})]}),(0,T.jsxs)(`section`,{className:`mt-10`,children:[(0,T.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,T.jsx)(`h2`,{className:`text-[11.5px] font-semibold tracking-[0.08em] text-ink-3 uppercase`,children:e(`boards.title`)}),(0,T.jsx)(v,{size:`sm`,variant:`ghost`,icon:(0,T.jsx)(a,{}),onClick:()=>void D.createBoard(A.id),children:e(`boards.new`)})]}),A.boards.length?(0,T.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-3`,children:A.boards.map((t,n)=>(0,T.jsxs)(u,{to:`/w/${m}/b/${t.id}`,style:{animationDelay:`${n*40}ms`},className:`animate-rise group relative overflow-hidden rounded-[14px] border border-line bg-surface p-4 shadow-sm transition-all hover:-translate-y-0.5 hover:border-line-strong hover:shadow-md`,children:[(0,T.jsx)(`div`,{className:`mb-6 flex gap-1.5`,"aria-hidden":`true`,children:[.9,.6,.35].map((e,t)=>(0,T.jsx)(`span`,{className:s(`h-10 flex-1 rounded-[6px] bg-sunken`,P.className),style:{...P.style,boxShadow:`inset 0 3px 0 color-mix(in oklab, var(--c) ${e*100}%, transparent)`}},t))}),(0,T.jsxs)(`p`,{className:`flex items-center gap-2 text-[14.5px] font-semibold`,children:[(0,T.jsx)(r,{className:`size-4 shrink-0 text-ink-3`}),(0,T.jsx)(`span`,{className:`min-w-0`,children:(0,T.jsx)(h,{text:t.name})})]}),(0,T.jsx)(`p`,{className:`mt-0.5 text-[12.5px] text-ink-3`,children:e(`boards.openCards`,{count:t.cardCount})})]},t.id))}):(0,T.jsx)(`button`,{type:`button`,onClick:()=>void D.createBoard(A.id),className:`w-full rounded-[14px] border border-dashed border-line-strong px-5 py-8 text-center text-[13.5px] text-ink-3 transition-colors hover:border-ink-3 hover:text-ink-2`,children:e(`boards.empty`)})]}),(0,T.jsxs)(`section`,{className:`mt-10`,children:[(0,T.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,T.jsx)(`h2`,{className:`text-[11.5px] font-semibold tracking-[0.08em] text-ink-3 uppercase`,children:e(`docs.title`)}),(0,T.jsx)(v,{size:`sm`,variant:`ghost`,icon:(0,T.jsx)(t,{}),onClick:()=>void D.createPage(A.id),children:e(`docs.new`)})]}),j.length?(0,T.jsx)(`ul`,{className:`overflow-hidden rounded-[14px] border border-line bg-surface shadow-sm`,children:j.map(t=>(0,T.jsx)(`li`,{className:`border-b border-line last:border-b-0`,children:(0,T.jsxs)(u,{to:`/w/${m}/d/${t.id}`,className:`flex items-center gap-3 px-4 py-3 transition-colors hover:bg-hover`,children:[(0,T.jsx)(`span`,{className:`w-5 text-center text-[16px]`,children:t.icon??(0,T.jsx)(n,{className:`size-4 text-ink-3`})}),(0,T.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[14px] font-medium`,children:t.title||e(`untitled`,{ns:`common`})}),M(t.id)>0&&(0,T.jsx)(`span`,{className:`text-[12px] text-ink-3`,children:e(`docs.subpages`,{count:M(t.id)})})]})},t.id))}):(0,T.jsx)(`button`,{type:`button`,onClick:()=>void D.createPage(A.id),className:`w-full rounded-[14px] border border-dashed border-line-strong px-5 py-8 text-center text-[13.5px] text-ink-3 transition-colors hover:border-ink-3 hover:text-ink-2`,children:e(`docs.empty`)})]}),N.length>0&&(0,T.jsxs)(`section`,{className:`mt-10`,children:[(0,T.jsx)(`h2`,{className:`mb-3 text-[11.5px] font-semibold tracking-[0.08em] text-ink-3 uppercase`,children:e(`recent`)}),(0,T.jsx)(`ul`,{className:`overflow-hidden rounded-[14px] border border-line bg-surface shadow-sm`,children:N.map(t=>(0,T.jsx)(`li`,{className:`border-b border-line last:border-b-0`,children:(0,T.jsxs)(u,{to:`/w/${m}/d/${t.id}`,className:`flex items-center gap-3 px-4 py-2.5 transition-colors hover:bg-hover`,children:[(0,T.jsx)(`span`,{className:`w-5 text-center text-[15px]`,children:t.icon??(0,T.jsx)(n,{className:`size-4 text-ink-3`})}),(0,T.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13.5px]`,children:t.title||e(`untitled`,{ns:`common`})}),(0,T.jsx)(`span`,{className:`shrink-0 text-[12px] text-ink-3`,children:p(t.updatedAt)})]})},t.id))})]})]})}),(0,T.jsx)(_,{project:A,open:O,onOpenChange:k})]})}export{E as ProjectPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Dt as t,Ot as n,S as r,at as i,in as a,nt as o,rn as s,x as c}from"./format-Dk1nO38Z.js";import{t as l}from"./Button-CHkkj3LG.js";import{a as u,n as d}from"./dist-DFO0RDUp.js";import{t as f}from"./Field-BsUKJQ-4.js";import{n as p,t as m}from"./ColorPicker-DSVbH2ix.js";var h=s();function g({color:e,className:n,children:r}){let i=p(e);return(0,h.jsx)(`span`,{className:t(`glyph`,i.className,n),style:i.style,children:r})}var _=e(a(),1);function v({project:e,open:t,onOpenChange:a}){let{t:s}=n([`shell`,`common`]),[p,g]=(0,_.useState)(e.name),[v,y]=(0,_.useState)(e.description??``),[b,x]=(0,_.useState)(e.color),[S,C]=(0,_.useState)(!1);(0,_.useEffect)(()=>{t&&(g(e.name),y(e.description??``),x(e.color))},[t,e]);async function w(t){t.preventDefault(),C(!0);try{await i(`/projects/${e.id}`,{name:p.trim(),color:b,description:v.trim()}),await r.invalidateQueries({queryKey:c.overview(e.workspaceId)}),a(!1)}catch(e){d.error(o(e))}finally{C(!1)}}return(0,h.jsx)(u,{open:t,onOpenChange:a,title:s(`projectSettings.title`),children:(0,h.jsxs)(`form`,{onSubmit:w,className:`flex flex-col gap-5`,children:[(0,h.jsx)(f,{label:s(`projectSettings.name`),value:p,onChange:e=>g(e.target.value),maxLength:80,autoFocus:!0}),(0,h.jsx)(f,{label:s(`projectSettings.description`),value:v,onChange:e=>y(e.target.value),maxLength:500,placeholder:s(`projectSettings.optional`)}),(0,h.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,h.jsx)(`span`,{className:`text-[12.5px] font-medium text-ink-2`,children:s(`projectSettings.color`)}),(0,h.jsx)(m,{value:b,onChange:x,custom:!0})]}),(0,h.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,h.jsx)(l,{variant:`ghost`,onClick:()=>a(!1),children:s(`common:actions.cancel`)}),(0,h.jsx)(l,{type:`submit`,variant:`primary`,loading:S,disabled:!p.trim(),children:s(`common:actions.save`)})]})]})})}export{g as n,v as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Dt as e,rn as t}from"./format-Dk1nO38Z.js";var n=t();function r({value:t,onChange:r,options:i,label:a,size:o=`md`}){return(0,n.jsx)(`div`,{role:`radiogroup`,"aria-label":a,className:`inline-flex rounded-[10px] bg-sunken p-0.5 shadow-[inset_0_0_0_1px_var(--line)]`,children:i.map(i=>(0,n.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":t===i.value,"aria-label":i.name,onClick:()=>r(i.value),className:e(`rounded-[8px] font-medium transition-all duration-150`,o===`sm`?`h-6.5 px-2.5 text-[12px]`:`h-7.5 px-3 text-[13px]`,t===i.value?`bg-surface text-ink shadow-sm`:`text-ink-3 hover:text-ink`),children:i.label},i.value))})}export{r as t};
|