@sentry/junior-dashboard 0.279.0 → 0.281.0
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/app.js +105 -43
- package/dist/client-manifest.json +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +105 -43
- package/dist/public/chunks/AdminPage-M5RBVZFN.js +1 -0
- package/dist/public/chunks/AutomationPage-WALCREDT.js +3 -0
- package/dist/public/chunks/AutomationRunsPage-CV47E4UX.js +1 -0
- package/dist/public/chunks/AutomationsPage-57L3AQVJ.js +1 -0
- package/dist/public/chunks/CodePage-XJUYMFJH.js +1 -0
- package/dist/public/chunks/ConnectionsPage-3QQAGYWF.js +1 -0
- package/dist/public/chunks/DrawerContent-RYYS57ZH.js +1 -0
- package/dist/public/chunks/LocationDetailPage-4IL5HQML.js +1 -0
- package/dist/public/chunks/LocationsPage-D2DUQAHJ.js +1 -0
- package/dist/public/chunks/McpSettingsPage-3RT7JPEK.js +1 -0
- package/dist/public/chunks/PeoplePage-6F5GPQ7C.js +1 -0
- package/dist/public/chunks/PersonProfilePage-SPAYQPTD.js +1 -0
- package/dist/public/chunks/PersonalTokensPage-SHAUJ74M.js +1 -0
- package/dist/public/chunks/PluginUserPage-64FIWD7M.js +1 -0
- package/dist/public/chunks/RepositoryPage-L7IHOXSN.js +1 -0
- package/dist/public/chunks/SettingsPage-U7WG4FHE.js +1 -0
- package/dist/public/chunks/SystemPage-ZBC43OJH.js +1 -0
- package/dist/public/chunks/WorkspaceFormPage-3NVIIZ4P.js +2 -0
- package/dist/public/chunks/WorkspacesPage-G73HPBDD.js +1 -0
- package/dist/public/chunks/chunk-2BCS5AQL.js +1 -0
- package/dist/public/chunks/chunk-2J3LGF5Q.js +1 -0
- package/dist/public/chunks/chunk-2NNKHSZE.js +1 -0
- package/dist/public/chunks/chunk-3Y3ICT6K.js +1 -0
- package/dist/public/chunks/chunk-4AKUZW6R.js +1 -0
- package/dist/public/chunks/chunk-4TQSTCIN.js +13 -0
- package/dist/public/chunks/chunk-4UGZNVJM.js +1 -0
- package/dist/public/chunks/chunk-564V7YHG.js +1 -0
- package/dist/public/chunks/chunk-5ISD3QSC.js +1 -0
- package/dist/public/chunks/chunk-5LNGNJ3P.js +1 -0
- package/dist/public/chunks/chunk-5ZA674OU.js +1 -0
- package/dist/public/chunks/chunk-64GPEGGE.js +1 -0
- package/dist/public/chunks/chunk-6FHY65EQ.js +1 -0
- package/dist/public/chunks/chunk-6FSJ3W2W.js +1 -0
- package/dist/public/chunks/chunk-6PHJZPWD.js +19 -0
- package/dist/public/chunks/chunk-B5ZN3SWQ.js +14 -0
- package/dist/public/chunks/chunk-BKOACADP.js +1 -0
- package/dist/public/chunks/chunk-CQY6BYUB.js +1 -0
- package/dist/public/chunks/chunk-CR2ICLSH.js +1 -0
- package/dist/public/chunks/chunk-DEEO4D4N.js +1 -0
- package/dist/public/chunks/chunk-DZB4LPI6.js +1 -0
- package/dist/public/chunks/chunk-FE522UEA.js +1 -0
- package/dist/public/chunks/chunk-FSGVY7HB.js +1 -0
- package/dist/public/chunks/chunk-FVX42XAD.js +1 -0
- package/dist/public/chunks/chunk-G5NWYJTV.js +1 -0
- package/dist/public/chunks/chunk-GMZIELFU.js +1 -0
- package/dist/public/chunks/chunk-GOTQ4D6W.js +1 -0
- package/dist/public/chunks/chunk-GYRM5ZIV.js +1 -0
- package/dist/public/chunks/chunk-GZBMHYYU.js +1 -0
- package/dist/public/chunks/chunk-H2ZU34CP.js +1 -0
- package/dist/public/chunks/chunk-H76B43OQ.js +1 -0
- package/dist/public/chunks/chunk-HCLRG2EC.js +1 -0
- package/dist/public/chunks/chunk-II4NXLSQ.js +2 -0
- package/dist/public/chunks/chunk-ILH47V7O.js +1 -0
- package/dist/public/chunks/chunk-IZWTFLCC.js +1 -0
- package/dist/public/chunks/chunk-J37MXUED.js +1 -0
- package/dist/public/chunks/chunk-JAZABOBA.js +0 -0
- package/dist/public/chunks/chunk-JPL2NRWK.js +1 -0
- package/dist/public/chunks/chunk-JVJ5UWIK.js +1 -0
- package/dist/public/chunks/chunk-K4TYMAA3.js +63 -0
- package/dist/public/chunks/chunk-KDUTK357.js +1 -0
- package/dist/public/chunks/chunk-L2H3ZWZN.js +1 -0
- package/dist/public/chunks/chunk-LBELRO5P.js +1 -0
- package/dist/public/chunks/chunk-LKW7MULF.js +1 -0
- package/dist/public/chunks/chunk-LZYAHJVQ.js +1 -0
- package/dist/public/chunks/chunk-MEHLQZDG.js +3 -0
- package/dist/public/chunks/chunk-MKKFXRYO.js +1 -0
- package/dist/public/chunks/chunk-MTBUV2GJ.js +1 -0
- package/dist/public/chunks/chunk-NGQRNS3C.js +1 -0
- package/dist/public/chunks/chunk-ONDKE72P.js +1 -0
- package/dist/public/chunks/chunk-PG7M7L24.js +1 -0
- package/dist/public/chunks/chunk-PQPAPPEI.js +1 -0
- package/dist/public/chunks/chunk-PXHLJIOT.js +1 -0
- package/dist/public/chunks/chunk-QOX5RMLM.js +1 -0
- package/dist/public/chunks/chunk-QPBLZSNX.js +1 -0
- package/dist/public/chunks/chunk-QQUFROWT.js +1 -0
- package/dist/public/chunks/chunk-RB5FBDEY.js +1 -0
- package/dist/public/chunks/chunk-RGXXD4DM.js +41 -0
- package/dist/public/chunks/chunk-RHMZNAJX.js +1 -0
- package/dist/public/chunks/chunk-SIOW7OOW.js +1 -0
- package/dist/public/chunks/chunk-SUX4QBVF.js +1 -0
- package/dist/public/chunks/chunk-T4M53QQT.js +1 -0
- package/dist/public/chunks/chunk-TC7TU4GK.js +1 -0
- package/dist/public/chunks/chunk-TFJOEF3Q.js +1 -0
- package/dist/public/chunks/chunk-UJD3MBMB.js +1 -0
- package/dist/public/chunks/chunk-UK2V4UBT.js +1 -0
- package/dist/public/chunks/chunk-UT6HZPGL.js +1 -0
- package/dist/public/chunks/chunk-UZ44J2LH.js +1 -0
- package/dist/public/chunks/chunk-VC6IS564.js +1 -0
- package/dist/public/chunks/chunk-WLIOZO3W.js +1 -0
- package/dist/public/chunks/chunk-WRXMQB7X.js +25 -0
- package/dist/public/chunks/chunk-XDUSY26N.js +55 -0
- package/dist/public/chunks/chunk-XNR4RZEC.js +1 -0
- package/dist/public/chunks/chunk-YPMUHXYT.js +147 -0
- package/dist/public/chunks/chunk-ZIJ6SJDN.js +1 -0
- package/dist/public/chunks/code-highlighter-Q7WC7AEF.js +12 -0
- package/dist/public/client-4OAAOHF4.js +68 -0
- package/dist/tailwind.css +1 -1
- package/package.json +5 -4
- package/src/api/schema.ts +1 -1
- package/src/assets.ts +4 -1
- package/src/client/App.tsx +100 -23
- package/src/client/TracedRoutes.tsx +8 -4
- package/src/client/code-highlighter.ts +26 -0
- package/src/client/code.tsx +2 -22
- package/src/client/components/BottomSheet.tsx +1 -1
- package/src/client/components/DetailsPanel.tsx +2 -1
- package/src/client/components/Drawer.tsx +12 -71
- package/src/client/components/DrawerContent.tsx +76 -0
- package/src/client/components/ProfileMenu.tsx +12 -3
- package/src/client/components/UserInputForm.tsx +28 -5
- package/src/client/conversations/ConversationBrief.tsx +129 -65
- package/src/client/conversations/ConversationCatchUp.tsx +107 -0
- package/src/client/conversations/ConversationContextTags.tsx +110 -0
- package/src/client/conversations/ConversationDetails.tsx +13 -14
- package/src/client/conversations/ConversationEventLog.tsx +135 -70
- package/src/client/conversations/ConversationHeader.tsx +74 -65
- package/src/client/conversations/ConversationHeaderActions.tsx +36 -38
- package/src/client/conversations/ConversationHomeList.tsx +41 -3
- package/src/client/conversations/ConversationLinkedWork.tsx +30 -10
- package/src/client/conversations/ConversationMeta.tsx +21 -27
- package/src/client/conversations/ConversationOverflowMenu.tsx +15 -4
- package/src/client/conversations/ConversationPage.tsx +219 -157
- package/src/client/conversations/ConversationTranscript.tsx +234 -186
- package/src/client/conversations/ConversationUsageBreakdown.tsx +142 -64
- package/src/client/conversations/DetailsList.tsx +7 -1
- package/src/client/conversations/PendingMailboxStack.tsx +88 -44
- package/src/client/conversations/ShareConversationButton.tsx +5 -50
- package/src/client/conversations/SlackMark.tsx +16 -4
- package/src/client/conversations/TranscriptActivityGroup.tsx +7 -14
- package/src/client/conversations/TranscriptEventView.tsx +7 -3
- package/src/client/conversations/TranscriptReasoningView.tsx +4 -2
- package/src/client/conversations/TranscriptRows.tsx +61 -16
- package/src/client/conversations/TranscriptView.tsx +25 -13
- package/src/client/conversations/conversationArchive.ts +22 -0
- package/src/client/conversations/conversationCatchUpState.ts +96 -0
- package/src/client/conversations/conversationMemory.ts +8 -1
- package/src/client/conversations/queries.ts +85 -46
- package/src/client/conversations/{transcriptUnreadHistory.ts → transcriptAroundHistory.ts} +48 -42
- package/src/client/conversations/transcriptBottomPinning.ts +40 -8
- package/src/client/conversations/transcriptListRows.ts +215 -0
- package/src/client/conversations/transcriptReadPosition.ts +24 -2
- package/src/client/conversations/turnContext.ts +1 -1
- package/src/client/conversations/virtualRows.ts +168 -0
- package/src/client/http.ts +6 -5
- package/src/client/pages/admin/AdminPage.tsx +1 -1
- package/src/client/pages/admin/ServiceAccountsSection.tsx +1 -1
- package/src/client/pages/memory/memoryDashboard.ts +1 -1
- package/src/client/pages/memory/memoryRecord.ts +1 -1
- package/src/client/pages/settings/ConnectionsPage.tsx +1 -1
- package/src/client/pages/user/PluginUserPage.tsx +0 -6
- package/src/client/pages/user/pluginUserPageRoutes.ts +5 -0
- package/src/client/primaryNav.ts +1 -1
- package/src/client/review-desk/reviewItemFormat.ts +1 -1
- package/src/client/sentry.ts +53 -3
- package/src/conversation-cache.ts +8 -10
- package/src/mock-reporting/fixtures.ts +43 -8
- package/src/mock-reporting/routes.ts +40 -3
- package/src/public-assets.ts +28 -20
- package/src/shell.ts +12 -2
- package/dist/public/client-ZCZXZBTL.js +0 -460
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as f}from"./chunk-6PHJZPWD.js";import{a as S}from"./chunk-YPMUHXYT.js";import{c as P}from"./chunk-7SZRL6FY.js";var i=P(S(),1);function T(e,t){let n=typeof t=="string"?t.startsWith("?")?t.slice(1):t:t?.toString()??"",a=e.indexOf("?"),c=a===-1?e:e.slice(0,a),u=a===-1?"":e.slice(a+1).replace(/^\?+/,""),r=new URLSearchParams(n);for(let[m,s]of new URLSearchParams(u))r.set(m,s);let o=r.toString();return o?`${c}?${o}`:c}function h(e,t){let n=e?.trim();return n&&t.includes(n)?n:void 0}function x(e="q",t={}){let n=t.delayMs??250,a=t.resetPage??!1,[c,u]=f(),r=c.get(e)?.trim()??"",[o,m]=(0,i.useState)(r);return(0,i.useEffect)(()=>{m(s=>s.trim()===r?s:r)},[r]),(0,i.useEffect)(()=>{let s=window.setTimeout(()=>{let d=o.trim();d!==r&&u(g=>{let l=new URLSearchParams(g);return a&&l.delete("page"),d?l.set(e,d):l.delete(e),l},{replace:!0})},n);return()=>window.clearTimeout(s)},[r,n,e,a,u,o]),[o,m,r]}function w(e,t,n){let[a,c]=f(),u=h(a.get(e),n)??t,r=(0,i.useCallback)(o=>{c(m=>{let s=new URLSearchParams(m);return o===t?s.delete(e):s.set(e,o),s},{replace:!0})},[t,e,c]);return[u,r]}export{T as a,x as b,w as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Rc as c,b as n}from"./chunk-YPMUHXYT.js";import{c as o}from"./chunk-7SZRL6FY.js";var l=o(n(),1),i="a, button, input, select, textarea, [role='button'], [role='link']";function s(e){function a(t){t.target instanceof Element&&t.target.closest(i)||e.onSelect()}return(0,l.jsx)("div",{className:c("group cursor-pointer transition-colors",e.selected?"bg-dashboard-accent/[0.045]":"hover:bg-dashboard-fill-soft focus-within:bg-dashboard-fill-soft",e.className),onClick:a,children:e.children})}export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Rc as r,b as t}from"./chunk-YPMUHXYT.js";import{c as n}from"./chunk-7SZRL6FY.js";var e=n(t(),1);function o(l){return(0,e.jsx)("ul",{"aria-label":l.ariaLabel,className:r("m-0 flex list-none flex-wrap gap-x-4 gap-y-1 p-0 font-sans text-2xs text-dashboard-text-muted",!l.inline&&"mt-4"),children:l.items.map(a=>(0,e.jsxs)("li",{className:"flex items-center whitespace-nowrap",children:[(0,e.jsx)("i",{"aria-hidden":"true",className:"mr-1.5 block size-2 shrink-0 rounded-full",style:{backgroundColor:a.color}}),(0,e.jsxs)("span",{children:[a.label,a.value!==void 0?(0,e.jsxs)(e.Fragment,{children:[" ",(0,e.jsx)("span",{"aria-hidden":"true",children:"\xB7"})," ",a.value]}):null]})]},a.key))})}export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as U}from"./chunk-7SZRL6FY.js";var K={"angular-html":()=>import("./angular-html-ZNDXTZDN.js"),"angular-ts":()=>import("./angular-ts-ON3WFVNV.js"),astro:()=>import("./astro-TCFNN3TA.js"),blade:()=>import("./blade-XRKVUGGE.js"),c:()=>import("./c-WHCDUHJR.js"),coffee:()=>import("./coffee-NWMA7ZVV.js"),coffeescript:()=>import("./coffee-NWMA7ZVV.js"),cpp:()=>import("./cpp-7ZDYJCCI.js"),"c++":()=>import("./cpp-7ZDYJCCI.js"),css:()=>import("./css-XF3SDJYW.js"),csv:()=>import("./csv-I2Y5BPVG.js"),glsl:()=>import("./glsl-SDKJ4MVB.js"),graphql:()=>import("./graphql-XJBKAS4G.js"),gql:()=>import("./graphql-XJBKAS4G.js"),haml:()=>import("./haml-QQIA6ZDV.js"),handlebars:()=>import("./handlebars-A4STSCQ6.js"),hbs:()=>import("./handlebars-A4STSCQ6.js"),html:()=>import("./html-T3MIDC6T.js"),"html-derivative":()=>import("./html-derivative-A5ABNIZH.js"),http:()=>import("./http-VGZ3EXS5.js"),hurl:()=>import("./hurl-TO4NQQLI.js"),imba:()=>import("./imba-P3ARIZRP.js"),java:()=>import("./java-WCBM5OUU.js"),javascript:()=>import("./javascript-TQH7GGAM.js"),js:()=>import("./javascript-TQH7GGAM.js"),cjs:()=>import("./javascript-TQH7GGAM.js"),mjs:()=>import("./javascript-TQH7GGAM.js"),jinja:()=>import("./jinja-UYMB4X6S.js"),jison:()=>import("./jison-ED4UFXGK.js"),json:()=>import("./json-XRHV7G5W.js"),json5:()=>import("./json5-2OA2ZMVI.js"),jsonc:()=>import("./jsonc-KO53QF6Y.js"),jsonl:()=>import("./jsonl-GHTNFMM6.js"),jsx:()=>import("./jsx-V5TSP3NI.js"),julia:()=>import("./julia-EI7BACOV.js"),jl:()=>import("./julia-EI7BACOV.js"),less:()=>import("./less-FPWZXUDW.js"),markdown:()=>import("./markdown-QWIM2DOI.js"),md:()=>import("./markdown-QWIM2DOI.js"),marko:()=>import("./marko-3POAQSZY.js"),mdc:()=>import("./mdc-KT6TTBUF.js"),mdx:()=>import("./mdx-CWS3UMSH.js"),php:()=>import("./php-3CK4FBZI.js"),postcss:()=>import("./postcss-7K34RN34.js"),pug:()=>import("./pug-IEW5PJRA.js"),jade:()=>import("./pug-IEW5PJRA.js"),python:()=>import("./python-GCPXLELR.js"),py:()=>import("./python-GCPXLELR.js"),r:()=>import("./r-XV5O7BSV.js"),regexp:()=>import("./regexp-655IUQFI.js"),regex:()=>import("./regexp-655IUQFI.js"),sass:()=>import("./sass-MSBN6O54.js"),scss:()=>import("./scss-N73GNFL4.js"),shellscript:()=>import("./shellscript-OPDT4ZZ3.js"),bash:()=>import("./shellscript-OPDT4ZZ3.js"),sh:()=>import("./shellscript-OPDT4ZZ3.js"),shell:()=>import("./shellscript-OPDT4ZZ3.js"),zsh:()=>import("./shellscript-OPDT4ZZ3.js"),sql:()=>import("./sql-ZR72I7RP.js"),stylus:()=>import("./stylus-NVEQWGLA.js"),styl:()=>import("./stylus-NVEQWGLA.js"),svelte:()=>import("./svelte-ZZAXFLSI.js"),"ts-tags":()=>import("./ts-tags-MCSPJMMM.js"),lit:()=>import("./ts-tags-MCSPJMMM.js"),tsx:()=>import("./tsx-ZTNB67YL.js"),typescript:()=>import("./typescript-HV6B525T.js"),ts:()=>import("./typescript-HV6B525T.js"),cts:()=>import("./typescript-HV6B525T.js"),mts:()=>import("./typescript-HV6B525T.js"),vue:()=>import("./vue-WXFFFGZ3.js"),"vue-html":()=>import("./vue-html-SKWAUQDE.js"),"vue-vine":()=>import("./vue-vine-V3A5HTCZ.js"),wasm:()=>import("./wasm-JWJ5BADC.js"),wgsl:()=>import("./wgsl-ZCQ7MKDM.js"),wit:()=>import("./wit-MLLAONFF.js"),xml:()=>import("./xml-VST5CLIL.js"),yaml:()=>import("./yaml-BX3BWN2A.js"),yml:()=>import("./yaml-BX3BWN2A.js")};var d=class{constructor(o,r,a){this.normal=r,this.property=o,a&&(this.space=a)}};d.prototype.normal={};d.prototype.property={};d.prototype.space=void 0;function C(l,o){let r={},a={};for(let p of l)Object.assign(r,p.property),Object.assign(a,p.normal);return new d(r,a,o)}function v(l){return l.toLowerCase()}var u=class{constructor(o,r){this.attribute=r,this.property=o}};u.prototype.attribute="";u.prototype.booleanish=!1;u.prototype.boolean=!1;u.prototype.commaOrSpaceSeparated=!1;u.prototype.commaSeparated=!1;u.prototype.defined=!1;u.prototype.mustUseProperty=!1;u.prototype.number=!1;u.prototype.overloadedBoolean=!1;u.prototype.property="";u.prototype.spaceSeparated=!1;u.prototype.space=void 0;var x={};U(x,{boolean:()=>e,booleanish:()=>i,commaOrSpaceSeparated:()=>s,commaSeparated:()=>g,number:()=>n,overloadedBoolean:()=>k,spaceSeparated:()=>t});var z=0,e=f(),i=f(),k=f(),n=f(),t=f(),g=f(),s=f();function f(){return 2**++z}var w=Object.keys(x),y=class extends u{constructor(o,r,a,p){let c=-1;if(super(o,r),M(this,"space",p),typeof a=="number")for(;++c<w.length;){let h=w[c];M(this,w[c],(a&x[h])===x[h])}}};y.prototype.defined=!0;function M(l,o,r){r&&(l[o]=r)}function m(l){let o={},r={};for(let[a,p]of Object.entries(l.properties)){let c=new y(a,l.transform(l.attributes||{},a),p,l.space);l.mustUseProperty&&l.mustUseProperty.includes(a)&&(c.mustUseProperty=!0),o[a]=c,r[v(a)]=a,r[v(c.attribute)]=a}return new d(o,r,l.space)}var L=m({properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:t,ariaCurrent:null,ariaDescribedBy:t,ariaDetails:null,ariaDisabled:i,ariaDropEffect:t,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:t,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:t,ariaLevel:n,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:t,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:t,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:i,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null},transform(l,o){return o==="role"?o:"aria-"+o.slice(4).toLowerCase()}});function S(l,o){return o in l?l[o]:o}function b(l,o){return S(l,o.toLowerCase())}var R=m({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:g,acceptCharset:t,accessKey:t,action:null,allow:null,allowFullScreen:e,allowPaymentRequest:e,allowUserMedia:e,alt:null,as:null,async:e,autoCapitalize:null,autoComplete:t,autoFocus:e,autoPlay:e,blocking:t,capture:null,charSet:null,checked:e,cite:null,className:t,cols:n,colSpan:null,content:null,contentEditable:i,controls:e,controlsList:t,coords:n|g,crossOrigin:null,data:null,dateTime:null,decoding:null,default:e,defer:e,dir:null,dirName:null,disabled:e,download:k,draggable:i,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:e,formTarget:null,headers:t,height:n,hidden:k,high:n,href:null,hrefLang:null,htmlFor:t,httpEquiv:t,id:null,imageSizes:null,imageSrcSet:null,inert:e,inputMode:null,integrity:null,is:null,isMap:e,itemId:null,itemProp:t,itemRef:t,itemScope:e,itemType:t,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:e,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:e,muted:e,name:null,nonce:null,noModule:e,noValidate:e,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:e,optimum:n,pattern:null,ping:t,placeholder:null,playsInline:e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:e,referrerPolicy:null,rel:t,required:e,reversed:e,rows:n,rowSpan:n,sandbox:t,scope:null,scoped:e,seamless:e,selected:e,shadowRootClonable:e,shadowRootDelegatesFocus:e,shadowRootMode:null,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:e,useMap:null,value:i,width:n,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:t,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:e,declare:e,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:e,noHref:e,noShade:e,noWrap:e,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:e,disableRemotePlayback:e,prefix:null,property:null,results:n,security:null,unselectable:null},space:"html",transform:b});var T=m({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:s,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:t,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:e,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:g,g2:g,glyphName:g,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:s,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:t,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:s,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:s,rev:s,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:s,requiredFeatures:s,requiredFonts:s,requiredFormats:s,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:s,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:s,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:s,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:S});var P=m({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(l,o){return"xlink:"+o.slice(5).toLowerCase()}});var D=m({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:b});var O=m({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(l,o){return"xml:"+o.slice(3).toLowerCase()}});var I={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var B=/[A-Z]/g,A=/-[a-z]/g,j=/^data[-\w.:]+$/i;function H(l,o){let r=v(o),a=o,p=u;if(r in l.normal)return l.property[l.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&j.test(o)){if(o.charAt(4)==="-"){let c=o.slice(5).replace(A,V);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{let c=o.slice(4);if(!A.test(c)){let h=c.replace(B,F);h.charAt(0)!=="-"&&(h="-"+h),o="data"+h}}p=y}return new p(a,o)}function F(l){return"-"+l.toLowerCase()}function V(l){return l.charAt(1).toUpperCase()}var Bn=C([L,R,P,D,O],"html"),jn=C([L,T,P,D,O],"svg");function qn(l,o){let r=String(l);if(typeof o!="string")throw new TypeError("Expected character");let a=0,p=r.indexOf(o);for(;p!==-1;)a++,p=r.indexOf(o,p+o.length);return a}function Kn(l,o){let r=o||{};return(l[l.length-1]===""?[...l,""]:l).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Nn(l){return l.join(" ").trim()}var q=/[ \t\n\f\r]/g;function W(l){return typeof l=="object"?l.type==="text"?E(l.value):!1:E(l)}function E(l){return l.replace(q,"")===""}export{I as a,H as b,Bn as c,jn as d,qn as e,Kn as f,Nn as g,W as h,K as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as o}from"./chunk-UT6HZPGL.js";import{a as r}from"./chunk-DEEO4D4N.js";import{a as i}from"./chunk-GOTQ4D6W.js";import{b as a}from"./chunk-YPMUHXYT.js";import{c as n}from"./chunk-7SZRL6FY.js";var t=n(a(),1);function y(e){return(0,t.jsx)(o,{children:(0,t.jsx)(i,{children:e.children})})}function s(e){return(0,t.jsx)(o,{children:(0,t.jsx)(r,{...e})})}export{y as a,s as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,b as u}from"./chunk-QPBLZSNX.js";import{a as P}from"./chunk-B5ZN3SWQ.js";import{Rc as c,Sc as L,Uc as R,a as T,b}from"./chunk-YPMUHXYT.js";import{c as d}from"./chunk-7SZRL6FY.js";var o=d(T(),1),s=d(P(),1),r=d(b(),1),a=(0,o.createContext)(null);function w(e){let[t,l]=(0,o.useState)(null),[m,x]=(0,o.useState)(null),[v,E]=(0,o.useState)(null),[f,k]=(0,o.useState)(null),h=(0,o.useRef)(null),S=(0,o.useCallback)(i=>{l(i)},[]),N=(0,o.useCallback)(i=>{x(i)},[]),H=(0,o.useCallback)(i=>{E(i)},[]),M=(0,o.useCallback)(i=>{k(i)},[]),g=(0,o.useCallback)(i=>{h.current=i},[]),y=(0,o.useCallback)(()=>{h.current?.()},[]),D=(0,o.useMemo)(()=>({mobileHeaderActionsSlot:v,mobileHeaderActionsSlotRef:H,mobileHeaderLiveSlot:f,mobileHeaderLiveSlotRef:M,mobileSecondarySlot:m,mobileSecondarySlotRef:N,openMobileNavigation:y,registerOpenMobileNavigation:g,secondarySlot:t,secondarySlotRef:S}),[v,H,f,M,m,N,y,g,t,S]);return(0,r.jsx)(a.Provider,{value:D,children:e.children})}function A(e){let t=(0,o.useContext)(a);if(!t)throw new Error("DashboardChrome requires DashboardChromeProvider");return(0,r.jsxs)("div",{className:"sticky top-0 z-30 bg-dashboard-bg/95 pt-[env(safe-area-inset-top)]",children:[(0,r.jsxs)("div",{className:"border-b border-dashboard-border-strong md:border-b-0 md:has-[[data-secondary-slot]>*]:border-b md:tall:border-b",children:[e.header,(0,r.jsx)("div",{className:"hidden md:block","data-secondary-slot":"",ref:t.secondarySlotRef})]}),e.banner]})}function O(){let e=(0,o.useContext)(a);if(!e)throw new Error("MobileSecondaryNavigationSlot requires DashboardChromeProvider");return(0,r.jsx)("div",{ref:e.mobileSecondarySlotRef})}function I(){let e=(0,o.useContext)(a);if(!e)throw new Error("MobileHeaderActionsSlot requires DashboardChromeProvider");return(0,r.jsx)("div",{className:"col-start-3 row-start-1 flex min-w-0 items-center justify-self-end md:hidden",ref:e.mobileHeaderActionsSlotRef})}function q(){let e=(0,o.useContext)(a);if(!e)throw new Error("MobileHeaderLiveSlot requires DashboardChromeProvider");return(0,r.jsx)("div",{className:"flex shrink-0 items-center md:hidden",ref:e.mobileHeaderLiveSlotRef})}function V(e){let t=(0,o.useContext)(a);return t?.mobileHeaderActionsSlot?(0,s.createPortal)(e.children,t.mobileHeaderActionsSlot):null}function z(e){let t=(0,o.useContext)(a);return t?.mobileHeaderLiveSlot?(0,s.createPortal)(e.children,t.mobileHeaderLiveSlot):null}function B(){let e=(0,o.useContext)(a);return e?e.openMobileNavigation:null}function F(e){let t=(0,o.useContext)(a),l=(0,o.useRef)(e);l.current=e,(0,o.useEffect)(()=>{if(!t)return;let m=()=>{l.current?.()};return t.registerOpenMobileNavigation(e?m:null),()=>{t.registerOpenMobileNavigation(null)}},[t,e])}function C(e){let t=(0,o.useContext)(a);return t?t.secondarySlot?(0,r.jsxs)(r.Fragment,{children:[(0,s.createPortal)(e.desktop,t.secondarySlot),t.mobileSecondarySlot?(0,s.createPortal)(e.mobile,t.mobileSecondarySlot):null]}):null:e.desktop}var n=d(b(),1);function U(e){let t=({isActive:l})=>c("rounded-lg px-3 py-3 pl-6 font-sans text-sm font-medium no-underline transition-colors",l?"bg-dashboard-accent/[0.1] text-dashboard-accent-text":c("hover:bg-dashboard-fill-faint",R));return(0,n.jsxs)("div",{className:c("min-w-0",e.className),children:[(0,n.jsx)(C,{desktop:(0,n.jsx)("div",{className:c(L,"min-w-0 px-4 md:px-8"),children:(0,n.jsx)(u,{ariaLabel:e.ariaLabel,items:e.items})}),mobile:(0,n.jsx)("nav",{"aria-label":e.ariaLabel,className:"mt-3 grid gap-1 border-t border-dashboard-border pt-3",children:e.items.map(l=>(0,n.jsx)(p,{className:t,item:l},l.to))})}),(0,n.jsx)("div",{className:"border-b border-dashboard-border px-4 pt-2 sm:px-8 md:hidden",children:(0,n.jsx)(u,{ariaLabel:e.ariaLabel,fill:!0,items:e.items})}),e.children]})}export{w as a,A as b,O as c,I as d,q as e,V as f,z as g,B as h,F as i,U as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as m}from"./chunk-6PHJZPWD.js";import{Rc as s,b as r}from"./chunk-YPMUHXYT.js";import{c as d}from"./chunk-7SZRL6FY.js";var t=d(r(),1);function l(e){let o=e.wideRuntime?"grid-cols-[minmax(14rem,1fr)_repeat(2,minmax(5rem,auto))_minmax(8rem,auto)] max-md:grid-cols-3":"grid-cols-[minmax(14rem,1fr)_repeat(3,minmax(5rem,auto))] max-md:grid-cols-3";return(0,t.jsxs)("div",{"aria-label":"Loading sorted results",className:"min-w-0 animate-pulse",role:"status",children:[Array.from({length:5},(n,b)=>(0,t.jsxs)("div",{"aria-hidden":"true",className:`grid min-w-0 ${o} items-center gap-4 border-b border-dashboard-border-subtle px-4 py-3.5 last:border-b-0 max-md:gap-x-3 max-md:gap-y-4`,children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3 max-md:col-span-3",children:[(0,t.jsx)("span",{className:"size-9 shrink-0 rounded-md bg-dashboard-fill-hover"}),(0,t.jsxs)("div",{className:"grid min-w-0 flex-1 gap-2",children:[(0,t.jsx)("span",{className:"h-3.5 w-2/5 rounded-md bg-dashboard-fill-strong"}),(0,t.jsx)("span",{className:"h-2.5 w-3/5 rounded-md bg-dashboard-fill-soft"})]})]}),[0,1,2].map(u=>(0,t.jsx)("span",{className:"h-4 w-10 justify-self-end rounded-md bg-dashboard-fill-hover"},u))]},b)),(0,t.jsx)("span",{className:"sr-only",children:"Loading sorted results"})]})}var a=d(r(),1),c="grid-cols-[minmax(14rem,1fr)_repeat(2,minmax(5rem,auto))_minmax(8rem,auto)]";function v(e){return(0,a.jsx)("div",{className:s("grid min-w-0 gap-2 border-b border-dashboard-border-subtle bg-dashboard-overlay-soft p-3",e.columnsClassName),children:e.children})}function N(e){return e.loading?(0,a.jsx)(l,{wideRuntime:!0}):e.empty?(0,a.jsx)("div",{className:"p-4",children:e.empty}):(0,a.jsxs)("div",{"aria-label":e.ariaLabel,className:"min-w-0",children:[(0,a.jsx)("div",{"aria-hidden":"true",className:s("grid items-center gap-4 border-b border-dashboard-border-subtle bg-dashboard-overlay-soft px-4 py-2.5 font-sans font-medium text-xs text-dashboard-text-muted max-md:hidden",c),children:e.headers.map((o,n)=>(0,a.jsx)("div",{className:n?"justify-self-end":void 0,children:o},o))}),e.children]})}function p(e){return(0,a.jsx)(m,{className:s("group grid min-w-0 items-center gap-4 border-b border-dashboard-border-subtle px-4 py-3.5 text-inherit no-underline transition-colors last:border-b-0 hover:bg-dashboard-fill-soft max-md:grid-cols-3 max-md:gap-x-3 max-md:gap-y-4",c),to:e.to,children:e.children})}function y(e){return(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3 max-md:col-span-3",children:[(0,a.jsx)("span",{className:s("grid size-9 shrink-0 place-items-center rounded-md border border-dashboard-border-strong transition-colors",e.iconClassName),children:e.icon}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"truncate font-display text-base font-medium leading-tight text-dashboard-text",children:e.title}),e.description?(0,a.jsx)("div",{className:"mt-1 truncate font-sans text-xs leading-tight text-dashboard-text-muted",children:e.description}):null]})]})}var i=d(r(),1);function R(e){return(0,i.jsxs)("div",{className:"justify-self-end text-right max-md:justify-self-stretch max-md:text-left",children:[(0,i.jsx)("div",{"aria-hidden":"true",className:"mb-1 hidden font-sans font-medium text-xs text-dashboard-text-muted max-md:block",children:e.label}),(0,i.jsxs)("div",{className:"font-display text-xl font-light leading-none text-dashboard-text md:font-sans md:tabular-nums md:text-xs md:text-dashboard-text-muted",children:[(0,i.jsxs)("span",{className:"sr-only",children:[e.label,": "]}),e.value]})]})}export{v as a,N as b,p as c,y as d,R as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(e,n){return e==="memory"&&n==="memories"?"/memories":`/plugins/${encodeURIComponent(e)}/${encodeURIComponent(n)}`}export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as n}from"./chunk-TFJOEF3Q.js";import{b as r}from"./chunk-YPMUHXYT.js";import{c as i}from"./chunk-7SZRL6FY.js";var l="/system/plugins";function g(s){let o=new Map(s.plugins.map(e=>[e.name,{...e,reports:[],skills:[]}]));for(let e of s.skills){let t=e.pluginProvider?o.get(e.pluginProvider):void 0;t&&t.skills.push(e)}for(let e of s.reports){let t=o.get(e.pluginName);t||(t={configKeys:[],description:"Core operational report.",displayName:e.title?.trim()||e.pluginName,name:e.pluginName,reports:[],skills:[]},o.set(e.pluginName,t)),t.reports.push(e)}return[...o.values()].map(e=>({...e,reports:[...e.reports],skills:[...e.skills].sort((t,p)=>t.name.localeCompare(p.name))})).sort((e,t)=>e.displayName.localeCompare(t.displayName))}function u(s){return`${l}/${encodeURIComponent(s)}`}function c(s){return s.replace(/\/+$/,"")||"/"}var a=i(r(),1),m=[{end:!0,label:"Overview",to:"/system"},{label:"People",to:"/system/people"},{label:"Locations",to:"/system/locations"},{label:"Workspaces",to:"/system/workspaces"},{label:"Plugins",to:l}];function f(s){return(0,a.jsx)(n,{ariaLabel:"System navigation",className:s.className,items:m,children:s.children})}export{l as a,g as b,u as c,c as d,f as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Rc as s,b as d}from"./chunk-YPMUHXYT.js";import{c as a}from"./chunk-7SZRL6FY.js";var t=a(d(),1);function r(e){return(0,t.jsxs)("div",{className:s("flex flex-wrap items-start justify-between gap-4 border-b border-dashboard-border-subtle px-4 py-4 sm:px-5",e.className),children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"m-0 font-sans text-xs font-medium text-dashboard-text-muted",children:e.title}),e.description?(0,t.jsx)("p",{className:"mt-1 mb-0 font-sans text-xs leading-relaxed text-dashboard-text-muted",children:e.description}):null]}),e.trailing?(0,t.jsx)("div",{className:"font-sans text-xs text-dashboard-text-muted",children:e.trailing}):null]})}export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s,g as r,j as c}from"./chunk-YPMUHXYT.js";import{c as f}from"./chunk-7SZRL6FY.js";var n=f(s(),1);function i(e,a){let t=n.useRef(e),o=c(a);r(()=>{t.current!==e&&o(t.current),t.current=e},[e,o])}export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as y}from"./chunk-JVJ5UWIK.js";import{b as v}from"./chunk-CR2ICLSH.js";import{Oc as w,a as h,b as l}from"./chunk-YPMUHXYT.js";import{c as o}from"./chunk-7SZRL6FY.js";var r=o(h(),1);var i=o(h(),1),c=o(l(),1),N=(0,i.lazy)(()=>import("./DrawerContent-RYYS57ZH.js").then(e=>({default:e.DrawerContent})));function g(e){return(0,c.jsx)(i.Suspense,{fallback:null,children:(0,c.jsx)(N,{...e},e.openKey)})}var t=o(l(),1),D="(min-width: 1280px)";function x(e){let a=window.matchMedia(D);return a.addEventListener("change",e),()=>a.removeEventListener("change",e)}function S(){return window.matchMedia(D).matches}function C(){return(0,r.useSyncExternalStore)(x,S,()=>!1)}function B(e){let{onClose:a,overlay:d}=e,m=`Close ${e.label.toLowerCase()}`,n=C(),u=(0,r.useRef)(null),b=(0,r.useRef)(n);return(0,r.useEffect)(()=>{n&&!b.current&&!document.querySelector("[data-dashboard-modal]")&&u.current?.focus({preventScroll:!0}),b.current=n},[n]),(0,r.useEffect)(()=>{if(!n||d)return;function f(s){s.key==="Escape"&&!s.defaultPrevented&&!document.querySelector("[data-dashboard-modal]")&&(s.preventDefault(),a())}return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[n,d,a]),n?d?(0,t.jsx)(g,{actions:e.actions,closeLabel:m,header:e.title,label:e.label,onClose:a,openKey:e.label,width:"wide",children:e.children}):(0,t.jsxs)("aside",{"aria-label":e.label,className:"grid min-h-0 min-w-0 grid-rows-[auto_minmax(0,1fr)] border-l border-dashboard-border bg-dashboard-bg-elevated",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between gap-3 border-b border-dashboard-border py-2 pl-5 pr-3",children:[(0,t.jsx)("div",{className:"min-w-0 flex-1",children:e.title}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[e.actions,(0,t.jsx)(v,{ref:u,"aria-label":m,"data-slot":"details-panel-close",onClick:a,size:"icon",children:(0,t.jsx)(w,{"aria-hidden":"true",size:15})})]})]}),(0,t.jsx)("div",{className:"thin-scrollbar min-h-0 overflow-y-auto overscroll-contain [scrollbar-gutter:stable]",children:e.children})]}):(0,t.jsx)(y,{label:e.label,title:e.sheetTitle,onClose:a,children:e.actions?(0,t.jsxs)("div",{className:"grid h-full min-h-0 grid-rows-[minmax(0,1fr)_auto]",children:[(0,t.jsx)("div",{className:"min-h-0",children:e.children}),(0,t.jsx)("div",{className:"flex justify-end gap-1 border-t border-dashboard-border px-4 py-2",children:e.actions})]}):e.children})}export{g as a,C as b,B as c};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{a as Sr}from"./chunk-CQY6BYUB.js";import{a as Ut,b as cr,d as Yt,e as Je,f as Pe,g as Qe,i as Ir,j as Ar}from"./chunk-B5ZN3SWQ.js";import{$ as In,A as at,B as xt,C as Cn,D as te,E as dr,Ea as Kt,F as Ue,Fa as Mn,G as Ae,H as F,I as Mt,Ia as Pr,J as me,Ja as st,K as mr,Oa as J,Pa as U,U as rt,V as Gt,W as pr,X as bt,Y as Sn,Z as Pn,_ as gr,a as de,aa as hr,b as It,ba as Rr,c as Et,ca as yt,da as Xt,e as Ve,ea as Be,f as De,fa as Er,g as V,ga as lt,h as ur,ha as $e,i as $t,ia as Ft,j as $,ja as kt,k as ve,ka as je,l as Se,la as vr,m as qe,ma as ot,n as ar,na as ft,o as K,oa as zt,p as ce,pa as An,q as vt,qa as xr,r as Tn,ra as Ye,s as lr,sa as br,t as jt,ta as yr,u as wn,ua as Tr,v as fr,va as wr,w as On,wa as Or,x as nt,xa as Cr,y as Ne,ya as dt,z as At}from"./chunk-YPMUHXYT.js";import{a as Wt,c as q}from"./chunk-7SZRL6FY.js";var Fr=Wt(Mr=>{"use strict";var Tt=de();function cs(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var us=typeof Object.is=="function"?Object.is:cs,as=Tt.useState,ls=Tt.useEffect,fs=Tt.useLayoutEffect,ds=Tt.useDebugValue;function ms(e,t){var n=t(),r=as({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return fs(function(){o.value=n,o.getSnapshot=t,Fn(o)&&s({inst:o})},[e,n,t]),ls(function(){return Fn(o)&&s({inst:o}),e(function(){Fn(o)&&s({inst:o})})},[e]),ds(n),n}function Fn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!us(e,n)}catch{return!0}}function ps(e,t){return t()}var gs=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ps:ms;Mr.useSyncExternalStore=Tt.useSyncExternalStore!==void 0?Tt.useSyncExternalStore:gs});var qt=Wt((Ui,kr)=>{"use strict";kr.exports=Fr()});var Nr=Wt(Dr=>{"use strict";var Jt=de(),hs=qt();function Rs(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Es=typeof Object.is=="function"?Object.is:Rs,vs=hs.useSyncExternalStore,xs=Jt.useRef,bs=Jt.useEffect,ys=Jt.useMemo,Ts=Jt.useDebugValue;Dr.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var s=xs(null);if(s.current===null){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=ys(function(){function u(d){if(!l){if(l=!0,f=d,d=r(d),o!==void 0&&i.hasValue){var R=i.value;if(o(R,d))return a=R}return a=d}if(R=a,Es(f,d))return R;var E=r(d);return o!==void 0&&o(R,E)?(f=d,R):(f=d,a=E)}var l=!1,f,a,p=n===void 0?null:n;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,n,r,o]);var c=vs(e,s[0],s[1]);return bs(function(){i.hasValue=!0,i.value=c},[c]),Ts(c),c}});var _r=Wt((ji,Lr)=>{"use strict";Lr.exports=Nr()});var Vr=q(de(),1);var kn=[],Dn;function Hr(){return Dn}function Br(e){kn.push(e)}function ws(e){let t=(n,r)=>{let o=De(Os).current,s;try{Dn=o;for(let i of kn)i.before(o);s=e(n,r);for(let i of kn)i.after(o);o.didInitialize=!0}finally{Dn=void 0}return s};return t.displayName=e.displayName||e.name,t}function Gi(e){return Vr.forwardRef(ws(e))}function Os(){return{didInitialize:!1}}function we(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function L(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}var Qt=q(de(),1);var Wr=q(It(),1),wt=Qt.forwardRef(function(t,n){let[r,o]=Qt.useState();return V(()=>{Ue.screenReader.voiceOver&&Ue.engine.webkit&&o("button")},[]),(0,Wr.jsx)("span",{...t,ref:n,style:Sr,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});function tc(e){return $t(19)?e:e?"true":void 0}var rc={style:{transition:"none"}},Ur="data-base-ui-click-trigger",Cs="data-base-ui-swipe-ignore",Ss="data-swipe-ignore",oc=`[${Cs}]`,sc=`[${Ss}]`;var ic={fallbackAxisSide:"end"},$r={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var se=q(de(),1),Wn=q(Ut(),1);var Ps='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function Is(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return vt(n)?n.host:null}function Ln(e){for(let t of Array.from(e.children))if(ve(t)==="summary")return t;return null}function As(e,t){let n=Ln(t);return!!n&&(e===n||F(n,e))}function jr(e){let t=e?ve(e):"";return e!=null&&e.matches(Ps)&&(t!=="summary"||e.parentElement!=null&&ve(e.parentElement)==="details"&&Ln(e.parentElement)===e)&&(t!=="details"||Ln(e)==null)&&(t!=="input"||e.type!=="hidden")}function _n(e){if(!jr(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=Is(t)){let n=t!==e,r=ve(t)==="slot";if(t.hasAttribute("inert")||n&&ve(t)==="details"&&!t.open&&!As(e,t)||t.hasAttribute("hidden")||!r&&!Ms(t,n))return!1}return!0}function Ms(e,t){let n=Ne(e);return t?n.display!=="none":Kt(e,n)}function Yr(e){let t=e.tabIndex;if(t<0){let n=ve(e);if(n==="details"||n==="audio"||n==="video"||ce(e)&&e.isContentEditable)return 0}return t}function Nn(e){if(ve(e)!=="input")return null;let t=e;return t.type==="radio"&&t.name!==""?t:null}function Gr(e,t){let n=Nn(e);if(!n)return!0;let r=t.find(o=>{let s=Nn(o);return s?.name===n.name&&s.form===n.form&&s.checked});return r?r===n:t.find(o=>{let s=Nn(o);return s?.name===n.name&&s.form===n.form})===n}function Xr(e){if(ce(e)&&ve(e)==="slot"){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return ce(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Vn(e,t){Xr(e).forEach(n=>{jr(n)&&t.push(n),Vn(n,t)})}function zr(e,t,n){Xr(e).forEach(r=>{ce(r)&&r.matches(t)&&n.push(r),zr(r,t,n)})}function Dt(e){return _n(e)&&Yr(e)>=0}function Hn(e){let t=[];return Vn(e,t),t.filter(_n)}function Nt(e){let t=Hn(e);return t.filter(n=>Yr(n)>=0&&Gr(n,t))}function Kr(e,t){let n=Nt(e),r=n.length;if(r===0)return;let o=Ae(te(e)),s=n.indexOf(o),i=s===-1?t===1?0:r-1:s+t;return n[i]}function Zt(e){return Kr(te(e).body,1)||e}function en(e){return Kr(te(e).body,-1)||e}function dc(e,t,n){if(!e)return null;let r=[];Vn(te(e).body,r);let o=r.indexOf(e);if(o===-1)return null;let s=r.filter(_n);for(let i=1;i<r.length;i+=1){let c=r[(o+t*i+r.length)%r.length];if(!F(n,c)&&Dt(c)&&Gr(c,s))return c}return r[o]}function mt(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!F(n,r)}function qr(e){Nt(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Bn(e){let t=[];zr(e,"[data-tabindex]",t),t.forEach(n=>{let r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function Ge(e){return`data-base-ui-${e}`}var pt=q(It(),1),Jr=se.createContext(null),Un=()=>se.useContext(Jr),Fs=Ge("portal");function Qr(e={}){let{ref:t,container:n,componentProps:r=Ve,elementProps:o}=e,s=st(),c=Un()?.portalNode,[u,l]=se.useState(null),[f,a]=se.useState(null),p=$(g=>{g!==null&&a(g)}),d=se.useRef(null);V(()=>{if(n===null){d.current&&(d.current=null,a(null),l(null));return}let g=(n&&(ar(n)?n:n.current))??c??document.body;if(g==null){d.current&&(d.current=null,a(null),l(null));return}d.current!==g&&(d.current=g,a(null),l(g))},[n,c]);let R=Pr("div",r,{ref:[t,p],props:[{id:s,[Fs]:""},o]}),E=u&&R?Wn.createPortal(R,u):null;return{node:f,nodeId:se.isValidElement(R)?R.props.id:void 0,subtree:E}}var ks=se.forwardRef(function(t,n){let{render:r,className:o,style:s,children:i,container:c,portalOwnerRole:u,...l}=t,{node:f,nodeId:a,subtree:p}=Qr({container:c,ref:n,componentProps:t,elementProps:l}),d=se.useRef(null),R=se.useRef(null),E=se.useRef(null),g=se.useRef(null),[h,m]=se.useState(null),v=se.useRef(!1),x=h?.modal,w=h?.open,y=!!h&&!h.modal&&h.open&&!!f;se.useEffect(()=>{if(!f||x)return;function A(H){f&&H.relatedTarget&&mt(H)&&(H.type==="focusin"?v.current&&(Bn(f),v.current=!1):(qr(f),v.current=!0))}return we(L(f,"focusin",A,!0),L(f,"focusout",A,!0))},[f,x]),V(()=>{!f||w!==!0||!v.current||(Bn(f),v.current=!1)},[w,f]);let T=se.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:R,beforeInsideRef:E,afterInsideRef:g,portalNode:f,setFocusManagerState:m}),[f]);return(0,pt.jsxs)(se.Fragment,{children:[p,(0,pt.jsxs)(Jr.Provider,{value:T,children:[y&&f&&(0,pt.jsx)(wt,{"data-type":"outside",ref:d,onFocus:A=>{if(mt(A,f))E.current?.focus();else{let H=h?h.domReference:null;en(H)?.focus()}}}),y&&f&&(0,pt.jsx)("span",{role:u,"aria-owns":a,style:$r}),f&&Wn.createPortal(i,f),y&&f&&(0,pt.jsx)(wt,{"data-type":"outside",ref:R,onFocus:A=>{if(mt(A,f))g.current?.focus();else{let H=h?h.domReference:null;Zt(H)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,J(U.focusOut,A.nativeEvent))}}})]})]})});function Le(e){let t=De(Ds,e).current;return t.next=e,V(t.effect),t}function Ds(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Ns(e,t){return t!=null&&!Be(t)?0:typeof e=="function"?e():e}function Ze(e,t,n){let r=Ns(e,n);return typeof r=="number"?r:r?.[t]}function $n(e){return typeof e=="function"?e():e}function tn(e,t){return t||e==="click"||e==="mousedown"}function Zr(e){return e?.includes("mouse")&&e!=="mousedown"}var Ie=q(de(),1);var eo=q(It(),1),to=Ie.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Je,currentIdRef:{current:null},currentContextRef:{current:null}});function Ls(e,t){e.current=t.current}function _s(e){let{children:t,delay:n,timeoutMs:r=0}=e,o=Ie.useRef(n),s=Ie.useRef(n),i=Ie.useRef(null),c=Ie.useRef(null),u=Pe();return V(()=>{if(s.current=n,!i.current){o.current=n;return}o.current={open:Ze(o.current,"open"),close:Ze(n,"close")}},[n,i,o,s]),(0,eo.jsx)(to.Provider,{value:Ie.useMemo(()=>({hasProvider:!0,delayRef:o,initialDelayRef:s,currentIdRef:i,timeoutMs:r,currentContextRef:c,timeout:u}),[r,u]),children:t})}function Vs(e,t={open:!1}){let{open:n}=t,r=e.useState("floatingId"),o=Ie.useContext(to),{currentIdRef:s,delayRef:i,timeoutMs:c,initialDelayRef:u,currentContextRef:l,hasProvider:f,timeout:a}=o,[p,d]=Ie.useState(!1),R=Ie.useRef(n);return V(()=>{R.current=n},[n]),V(()=>{function E(){l.current?.setIsInstantPhase(!1),s.current=null,l.current=null,i.current=u.current,a.clear()}if(s.current&&!n&&s.current===r){if(d(!1),c){let g=r;return a.start(c,()=>{e.select("open")||s.current&&s.current!==g||E()}),()=>{(R.current||s.current!==g)&&a.clear()}}E()}},[n,r,s,i,c,u,l,a,e]),V(()=>{if(!n)return;let E=l.current,g=s.current;a.clear(),l.current={onOpenChange:e.setOpen,setIsInstantPhase:d},s.current=r,i.current={open:0,close:Ze(u.current,"close")},g!==null&&g!==r?(d(!0),E?.setIsInstantPhase(!0),E?.onOpenChange(!1,J(U.none))):(d(!1),E?.setIsInstantPhase(!1))},[n,r,e,s,i,u,l,a]),V(()=>()=>{if(s.current===r){if(l.current=null,!R.current)return;s.current=null,Ls(i,u),a.clear()}},[l,s,i,r,u,a]),Ie.useMemo(()=>({activeIdRef:s,hasProvider:f,delayRef:i,isInstantPhase:p}),[s,f,i,p])}var be=q(de(),1);function He(e,t,n=!0){return e.filter(o=>o.parentId===t).flatMap(o=>[...!n||o.context?.open?[o]:[],...He(e,o.id,n)])}function jn(e,t){let n=[],r=e.find(o=>o.id===t)?.parentId;for(;r;){let o=e.find(s=>s.id===r);r=o?.parentId,o&&(n=n.concat(o))}return n}var nn=0;function rn(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:o}=t;cancelAnimationFrame(nn);function s(){o&&!o()||e?.focus({preventScroll:n})}if(r)return s(),Et;let i=requestAnimationFrame(s);return nn=i,()=>{nn===i&&(cancelAnimationFrame(i),nn=0)}}var no="data-base-ui-inert",Lt=new WeakMap,on=new WeakSet,_t=new WeakMap,Yn=0;function io(e){return e?vt(e)?e.host:io(e.parentNode):null}var ro=(e,t)=>t.map(n=>{if(e.contains(n))return n;let r=io(n);return e.contains(r)?r:null}).filter(n=>n!=null),oo=e=>{let t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},so=(e,t,n)=>{let r=[],o=s=>{!s||n.has(s)||Array.from(s.children).forEach(i=>{ve(i)!=="script"&&(t.has(i)?o(i):r.push(i))})};return o(e),r};function Hs(e,t,n,{mark:r=!0}){let o=ro(t,e),s=r?so(t,oo(o),new Set(o)):[],i=[],c=[];if(n){let u=ro(t,Array.from(t.querySelectorAll("[aria-live]"))),l=o.concat(u);so(t,oo(l),new Set(l)).forEach(a=>{let p=a.getAttribute("aria-hidden"),d=p!==null&&p!=="false",R=(Lt.get(a)||0)+1;Lt.set(a,R),i.push(a),R===1&&d&&on.add(a),d||a.setAttribute("aria-hidden","true")})}return r&&s.forEach(u=>{let l=(_t.get(u)||0)+1;_t.set(u,l),c.push(u),l===1&&u.setAttribute(no,"")}),Yn+=1,()=>{i.forEach(u=>{let l=(Lt.get(u)||0)-1;Lt.set(u,l),l||(on.has(u)||u.removeAttribute("aria-hidden"),on.delete(u))}),r&&c.forEach(u=>{let l=(_t.get(u)||0)-1;_t.set(u,l),l||u.removeAttribute(no)}),Yn-=1,Yn||(Lt=new WeakMap,on=new WeakSet,_t=new WeakMap)}}function Gn(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,o=te(e[0]).body;return Hs(e,o,n,{mark:r})}var it=q(de(),1);function sn(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var cn=class{nodesRef={current:[]};events=sn();addNode(t){this.nodesRef.current.push(t)}removeNode(t){let n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}};var Xn=q(It(),1),co=it.createContext(null),uo=it.createContext(null),et=()=>it.useContext(co)?.id||null,Xe=e=>{let t=it.useContext(uo);return e??t};function Bs(e){let t=st(),n=Xe(e),r=et();return V(()=>{if(!t)return;let o={id:t,parentId:r};return n?.addNode(o),()=>{n?.removeNode(o)}},[n,t,r]),t}function Ws(e){let{children:t,id:n}=e,r=et();return(0,Xn.jsx)(co.Provider,{value:it.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Us(e){let{children:t,externalTree:n}=e,r=De(()=>n??new cn).current;return(0,Xn.jsx)(uo.Provider,{value:r,children:t})}var Vt=q(It(),1);function $s(e,t){let n=Se(me(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||(yt(e)?"keyboard":t||"mouse"):"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}var ao=20,ct=[];function zn(){ct=ct.filter(e=>e.deref()?.isConnected)}function lo(e){zn(),e&&ve(e)!=="body"&&(ct.push(new WeakRef(e)),ct.length>ao&&(ct=ct.slice(-ao)))}function fo(){return zn(),ct[ct.length-1]?.deref()}function js(e){return e?Dt(e)?e:Nt(e)[0]||e:null}function mo(e){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!e.getAttribute("role")?.includes("dialog"))return;let n=Hn(e).filter(o=>{let s=o.getAttribute("data-tabindex")||"";return Dt(o)||o.hasAttribute("data-tabindex")&&!s.startsWith("-")}),r=e.getAttribute("tabindex");n.length===0?r!=="0"&&(e.setAttribute("tabindex","0"),e.setAttribute("data-tabindex","0")):(r!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Ys(e){let{context:t,children:n,disabled:r=!1,initialFocus:o=!0,returnFocus:s=!0,explicitReturnFocus:i,restoreFocus:c=!1,modal:u=!0,closeOnFocusOut:l=!0,openInteractionType:f="",nextFocusableElement:a,previousFocusableElement:p,beforeContentFocusGuardRef:d,externalTree:R,getInsideElements:E}=e,g=t.useState("open"),h=t.useState("domReferenceElement"),m=t.useState("floatingElement"),{events:v,dataRef:x}=t.context,w=$(()=>x.current.floatingContext?.nodeId),y=o===!1,T=Pn(h)&&y,A=Le(o),H=Le(s),_=Le(i),Z=Le(f),he=Le(g),G=Xe(R),O=Un(),b=be.useRef(!1),P=be.useRef(!1),z=be.useRef(!1),S=be.useRef(null),N=be.useRef(""),Q=be.useRef(""),X=be.useRef(null),Re=be.useRef(null),pe=Mn(X,d,O?.beforeInsideRef),M=Mn(Re,O?.afterInsideRef),j=Pe(),D=Pe(),re=Yt(),ye=O!=null,k=In(m),ne=$((Y=k)=>Y?Nt(Y):[]),ae=$(()=>E?.().filter(Y=>Y!=null)??[]);be.useEffect(()=>{if(r||!u)return;function Y(ue){ue.key==="Tab"&&F(k,Ae(te(k)))&&ne().length===0&&!T&&hr(ue)}let oe=te(k);return L(oe,"keydown",Y)},[r,k,u,T,ne]),be.useEffect(()=>{if(r||!g)return;let Y=te(k);function oe(){z.current=!1}function ue(Fe){let B=me(Fe),ie=ae(),W=F(m,B)||F(h,B)||F(O?.portalNode,B)||ie.some(le=>le===B||F(le,B));z.current=!W,Q.current=Fe.pointerType||"keyboard",Mt(B,`[${Ur}]`)&&(P.current=!0,D.start(0,()=>{P.current=!1}))}function Te(){Q.current="keyboard"}return we(L(Y,"pointerdown",ue,!0),L(Y,"pointerup",oe,!0),L(Y,"pointercancel",oe,!0),L(Y,"keydown",Te,!0),oe)},[r,m,h,k,g,O,D,ae]),be.useEffect(()=>{if(r||!l)return;let Y=te(k);function oe(){P.current=!0,D.start(0,()=>{P.current=!1})}function ue(ie){let W=me(ie);Dt(W)&&(S.current=W)}function Te(ie){let W=ie.relatedTarget,le=ie.currentTarget,Ce=me(ie);u&&W==null&&Ce!=null&&F(m,Ce)&&lo(Ce),queueMicrotask(()=>{let ke=w(),C=t.context.triggerElements,I=ae(),xe=W?.hasAttribute(Ge("focus-guard"))&&[X.current,Re.current,O?.beforeInsideRef.current,O?.afterInsideRef.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,Qe(p),Qe(a)].includes(W),Ee=!(F(h,W)||F(m,W)||F(W,m)||F(O?.portalNode,W)||I.some(fe=>fe===W||F(fe,W))||C.hasMatchingElement(fe=>F(fe,W))||xe||G&&(He(G.nodesRef.current,ke).find(fe=>F(fe.context?.elements.floating,W)||F(fe.context?.elements.domReference,W))||jn(G.nodesRef.current,ke).find(fe=>[fe.context?.elements.floating,In(fe.context?.elements.floating)].includes(W)||fe.context?.elements.domReference===W)));if(le===h&&k&&mo(k),c&&le!==h&&!Kt(Ce)&&Ae(Y)===Y.body){if(ce(k)&&(k.focus(),c==="popup")){re.request(()=>{k.focus()});return}let fe=ne(),Rt=S.current,tt=(Rt&&fe.includes(Rt)?Rt:null)||fe[fe.length-1]||k;ce(tt)&&tt.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(T||!u)&&W&&Ee&&!P.current&&(T||W!==fo())&&(b.current=!0,t.setOpen(!1,J(U.focusOut,ie)))})}function Fe(){z.current||(x.current.insideReactTree=!0,j.start(0,()=>{x.current.insideReactTree=!1}))}let B=ce(h)?h:null;if(!(!m&&!B))return we(B&&L(B,"focusout",Te),B&&L(B,"pointerdown",oe),m&&L(m,"focusin",ue),m&&L(m,"focusout",Te),m&&O&&L(m,"focusout",Fe,!0))},[r,h,m,k,u,G,O,t,l,c,ne,T,w,x,j,D,re,a,p,ae]),be.useEffect(()=>{if(r||!m||!g)return;let Y=Array.from(O?.portalNode?.querySelectorAll(`[${Ge("portal")}]`)||[]),ue=(G?jn(G.nodesRef.current,w()):[]).find(le=>Pn(le.context?.elements.domReference||null))?.context?.elements.domReference,Fe=[...[m,...Y,X.current,Re.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,...ae()],ue,Qe(p),Qe(a),T?h:null].filter(le=>le!=null),B=Gn(Fe,{ariaHidden:u||T,mark:!1}),ie=[m,...Y].filter(le=>le!=null),W=Gn(ie);return()=>{W(),B()}},[g,r,h,m,u,O,T,G,w,a,p,ae]),V(()=>{if(!g||r||!ce(k))return;N.current="",Q.current="";let Y=te(k),oe=Ae(Y);queueMicrotask(()=>{let ue=A.current,Te=typeof ue=="function"?ue(Z.current||""):ue;if(Te===void 0||Te===!1||F(k,oe))return;let B=null,ie=()=>(B==null&&(B=ne(k)),B[0]||k),W;Te===!0||Te===null?W=ie():W=Qe(Te),W=W||ie();let le=F(k,Ae(Y)),Ce=x.current.openEvent,ke=Ce?.type==="mousedown"&&yt(Ce);rn(W,{sync:ke,preventScroll:W===k,shouldFocus(){if(!he.current)return!1;if(le)return!0;let C=Ae(Y);return!(C!==W&&F(k,C))}})})},[r,g,k,ne,A,Z,he,x]);let _e=be.useRef(null);V(()=>{if(r||!k){_e.current=null;return}_e.current&&(_e.current.cancelled=!0,_e.current=null);let Y=te(k),oe=Ae(Y),ue=Z.current==null;lo(oe);function Te(B){if(B.open||(N.current=$s(B.nativeEvent,Q.current)),(B.reason===U.focusOut&&B.triggerElement?.hasAttribute(Ge("focus-guard"))||B.reason===U.triggerHover&&B.nativeEvent.type==="mouseleave")&&(b.current=!0),B.reason===U.outsidePress)if(B.nested)b.current=!1;else if(yt(B.nativeEvent)||Xt(B.nativeEvent))b.current=!1;else{let ie=!1;te(k).createElement("div").focus({get preventScroll(){return ie=!0,!1}}),ie?b.current=!1:b.current=!0}}v.on("openchange",Te);function Fe(B){let ie=H.current,W=typeof ie=="function"?ie(B):ie;if(W===void 0||W===!1)return null;W===null&&(W=!0);let le=h?.isConnected?h:null,Ce=oe?.isConnected&&ve(oe)!=="body"?oe:null,ke=ue?Ce||le:le||Ce;return ke||(ke=fo()||null),typeof W=="boolean"?ke:Qe(W)||ke||null}return()=>{v.off("openchange",Te);let B=Ae(Y),ie=ae(),W=F(m,B)||ie.some(I=>I===B||F(I,B))||G&&He(G.nodesRef.current,w(),!1).some(I=>F(I.context?.elements.floating,B)),le=H.current,Ce=N.current,ke=Fe(Ce),C={cancelled:!1};_e.current=C,queueMicrotask(()=>{_e.current===C&&(_e.current=null);let I=js(ke),xe=_.current??typeof le!="boolean";if(!C.cancelled&&le&&!b.current&&ce(I)&&(!(!xe&&I!==B&&B!==Y.body)||W)){let Ee={preventScroll:!0};Ce==="keyboard"&&(Ee.focusVisible=!0),I.focus(Ee)}b.current=!1})}},[r,m,k,H,_,Z,v,G,h,w,ae]),V(()=>{if(!Ue.engine.webkit||g||!m)return;let Y=Ae(te(m));!ce(Y)||!bt(Y)||F(m,Y)&&Y.blur()},[g,m]),V(()=>{if(!(r||!O))return O.setFocusManagerState({modal:u,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:h}),()=>{O.setFocusManagerState(null)}},[r,O,u,g,t,l,h]),V(()=>{if(!(r||!k))return mo(k),()=>{queueMicrotask(zn)}},[r,k]);let Ke=!r&&(u?!T:!0)&&(ye||u);return(0,Vt.jsxs)(be.Fragment,{children:[Ke&&(0,Vt.jsx)(wt,{"data-type":"inside",ref:pe,onFocus:Y=>{if(u){let oe=ne();rn(oe[oe.length-1])}else O?.portalNode&&(b.current=!1,mt(Y,O.portalNode)?Zt(h)?.focus():Qe(p??O.beforeOutsideRef)?.focus())}}),n,Ke&&(0,Vt.jsx)(wt,{"data-type":"inside",ref:M,onFocus:Y=>{u?rn(ne()[0]):O?.portalNode&&(l&&(b.current=!0),mt(Y,O.portalNode)?en(h)?.focus():Qe(a??O.afterOutsideRef)?.focus())}})]})}var Me=q(de(),1);function Gs(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){let s=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",c=t.axis==="y"||t.axis==="both",u=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",l=t.axis==="y"?s.width:0,f=t.axis==="x"?s.height:0,a=s.x,p=s.y;return n==null&&t.x&&i&&(n=s.x-t.x),r==null&&t.y&&c&&(r=s.y-t.y),a-=n||0,p-=r||0,(!o||u)&&(a=i&&t.x!=null?t.x:a,p=c&&t.y!=null?t.y:p),o=!0,{width:l,height:f,x:a,y:p,top:p,right:a+l,bottom:p+f,left:a}}}}function po(e){return e!=null&&e.clientX!=null}function Xs(e,t={}){let{enabled:n=!0,axis:r="both"}=t,o=e.useState("open"),s=e.useState("floatingElement"),i=e.useState("domReferenceElement"),c=e.context.dataRef,u=Me.useRef(!1),l=Me.useRef(null),[f,a]=Me.useState(),[p,d]=Me.useState([]),R=$(v=>{e.set("positionReference",v)}),E=$((v,x,w)=>{u.current||c.current.openEvent&&!po(c.current.openEvent)||e.set("positionReference",Gs(w??i,{x:v,y:x,axis:r,dataRef:c,pointerType:f}))}),g=$(v=>{o?l.current||(E(v.clientX,v.clientY,v.currentTarget),d([])):E(v.clientX,v.clientY,v.currentTarget)}),h=Be(f)?s:o;Me.useEffect(()=>{if(!n){R(i);return}if(!h)return;function v(){l.current?.(),l.current=null}let x=Se(s);function w(y){let T=me(y);F(s,T)?v():E(y.clientX,y.clientY)}return!c.current.openEvent||po(c.current.openEvent)?l.current=L(x,"mousemove",w):R(i),v},[h,n,s,c,i,e,E,R,p]),Me.useEffect(()=>()=>{e.set("positionReference",null)},[e]),Me.useEffect(()=>{n&&!s&&(u.current=!1)},[n,s]),Me.useEffect(()=>{!n&&o&&(u.current=!0)},[n,o]);let m=Me.useMemo(()=>{function v(x){a(x.pointerType)}return{onPointerDown:v,onPointerEnter:v,onMouseMove:g,onMouseEnter:g}},[g]);return Me.useMemo(()=>n?{reference:m,trigger:m}:{},[n,m])}var Oe=q(de(),1);function zs(){return!1}function Ks(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function qs(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:o=!0,outsidePressEvent:s="sloppy",referencePress:i=zs,bubbles:c,externalTree:u}=t,l=e.useState("open"),f=e.useState("floatingElement"),{dataRef:a,events:p}=e.context,d=Xe(u),R=$(typeof o=="function"?o:()=>!1),E=typeof o=="function"?R:o,g=E!==!1,h=$(()=>s),{escapeKey:m,outsidePress:v}=Ks(c),x=Oe.useRef(!1),w=Oe.useRef(!1),y=Oe.useRef(!1),T=Oe.useRef(!1),A=Oe.useRef(!1),H=Oe.useRef(""),_=Oe.useRef(null),Z=Pe(),he=Pe(),G=Pe(),O=$(()=>{he.clear(),a.current.insideReactTree=!1}),b=$(M=>{let j=a.current.floatingContext?.nodeId;return(d?He(d.nodesRef.current,j):[]).some(re=>re.context?.open&&!re.context.dataRef.current[M])}),P=$(M=>Gt(M,e.select("floatingElement"))||Gt(M,e.select("domReferenceElement"))),z=$(M=>{i()&&e.setOpen(!1,J(U.triggerPress,M.nativeEvent))}),S=$(M=>{if(!l||!n||!r||M.key!=="Escape")return;let j=Rr(M)?M.nativeEvent:M;if(A.current||j.isComposing||!m&&b("__escapeKeyBubbles"))return;let D=J(U.escapeKey,j);e.setOpen(!1,D),D.isCanceled||M.preventDefault(),!m&&!D.isPropagationAllowed&&M.stopPropagation()}),N=$(()=>{a.current.insideReactTree=!0,he.start(0,O)}),Q=$(M=>{if(!l||!n||M.button!==0)return;let j=me(M.nativeEvent);F(e.select("floatingElement"),j)&&(x.current||(x.current=!0,w.current=!1))}),X=$(M=>{!l||!n||(M.defaultPrevented||M.nativeEvent.defaultPrevented)&&x.current&&(w.current=!0)});Oe.useEffect(()=>{function M(j){j.open||(T.current=!1)}return p.on("openchange",M),()=>{p.off("openchange",M)}},[p]),Oe.useEffect(()=>O,[O]),Oe.useEffect(()=>{if(!l||!n)return l||(T.current=!1,A.current=!1,H.current="",_.current=null),O;a.current.__escapeKeyBubbles=m,a.current.__outsidePressBubbles=v;let M=new Je,j=te(f);function D(){G.clear(),A.current=!0}function re(){A.current=!0,G.start(Ue.engine.webkit?5:0,()=>{A.current=!1})}function ye(){y.current=!0,M.start(0,()=>{y.current=!1})}function k(){x.current=!1,w.current=!1}function ne(){let C=H.current,I=C==="pen"||!C?"mouse":C,xe=h(),Ee=typeof xe=="function"?xe():xe;return typeof Ee=="string"?Ee:Ee[I]}function ae(C){let I=ne();return I==="intentional"&&C.type!=="click"||I==="sloppy"&&C.type==="click"}function _e(C){let I=a.current.floatingContext?.nodeId,xe=d&&He(d.nodesRef.current,I).some(Ee=>Gt(C,Ee.context?.elements.floating));return P(C)||xe}function Ke(C){if(ae(C)){C.type!=="click"&&!P(C)&&(M.clear(),y.current=!1),O();return}if(a.current.insideReactTree){O();return}let I=me(C),xe=`[${Ge("inert")}]`,Ee=K(I)?I.getRootNode():null,fe=Array.from((vt(Ee)?Ee:te(e.select("floatingElement"))).querySelectorAll(xe)),Rt=e.context.triggerElements;if(I&&(Rt.hasElement(I)||Rt.hasMatchingElement(We=>F(We,I))))return;let tt=K(I)?I:null;for(;tt&&!nt(tt);){let We=at(tt);if(nt(We)||!K(We))break;tt=We}if(!(fe.length&&K(I)&&!pr(I)&&!F(I,e.select("floatingElement"))&&fe.every(We=>!F(tt,We)))){if(ce(I)&&!("touches"in C)){let We=nt(I),yn=Ne(I),ir=/auto|scroll/,es=We||ir.test(yn.overflowX),ts=We||ir.test(yn.overflowY),ns=es&&I.clientWidth>0&&I.scrollWidth>I.clientWidth,rs=ts&&I.clientHeight>0&&I.scrollHeight>I.clientHeight,os=yn.direction==="rtl",ss=rs&&(os?C.offsetX<=I.offsetWidth-I.clientWidth:C.offsetX>I.clientWidth),is=ns&&C.offsetY>I.clientHeight;if(ss||is)return}if(!_e(C)){if(ne()==="intentional"){if(C.detail!==0&&!yt(C)&&!T.current)return;if(y.current){M.clear(),y.current=!1;return}}typeof E=="function"&&!E(C)||b("__outsidePressBubbles")||(e.setOpen(!1,J(U.outsidePress,C)),O())}}}function Y(C){ne()!=="sloppy"||C.pointerType==="touch"||!e.select("open")||!n||P(C)||Ke(C)}function oe(C){if(ne()!=="sloppy"||!e.select("open")||!n||P(C))return;let I=C.touches[0];I&&(_.current={startTime:Date.now(),startX:I.clientX,startY:I.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Z.start(1e3,()=>{_.current&&(_.current.dismissOnTouchEnd=!1,_.current.dismissOnMouseDown=!1)}))}function ue(C,I){let xe=me(C);if(!xe)return;let Ee=L(xe,C.type,()=>{I(C),Ee()})}function Te(C){H.current="touch",ue(C,oe)}function Fe(C){Z.clear(),C.type==="pointerdown"&&(C.button===0&&(T.current=!0),H.current=C.pointerType),!(C.type==="mousedown"&&_.current&&!_.current.dismissOnMouseDown)&&ue(C,I=>{I.type==="pointerdown"?Y(I):Ke(I)})}function B(C){if(C.type==="pointercancel"&&(T.current=!1),!x.current)return;let I=w.current;if(k(),ne()==="intentional"){if(C.type==="pointercancel"){I&&ye();return}if(!_e(C)){if(I){ye();return}typeof E=="function"&&!E(C)||(M.clear(),y.current=!0,O())}}}function ie(C){if(ne()!=="sloppy"||!_.current||P(C))return;let I=C.touches[0];if(!I)return;let xe=Math.abs(I.clientX-_.current.startX),Ee=Math.abs(I.clientY-_.current.startY),fe=Math.sqrt(xe*xe+Ee*Ee);fe>5&&(_.current.dismissOnTouchEnd=!0),fe>10&&(Ke(C),Z.clear(),_.current=null)}function W(C){ue(C,ie)}function le(C){ne()!=="sloppy"||!_.current||P(C)||(_.current.dismissOnTouchEnd&&Ke(C),Z.clear(),_.current=null)}function Ce(C){ue(C,le)}let ke=we(r&&we(L(j,"keydown",S),L(j,"compositionstart",D),L(j,"compositionend",re)),g&&we(L(j,"click",Fe,!0),L(j,"pointerdown",Fe,!0),L(j,"pointerup",B,!0),L(j,"pointercancel",B,!0),L(j,"mousedown",Fe,!0),L(j,"mouseup",B,!0),L(j,"touchstart",Te,{capture:!0,passive:!0}),L(j,"touchmove",W,{capture:!0,passive:!0}),L(j,"touchend",Ce,{capture:!0,passive:!0})));return()=>{ke(),M.clear(),k(),y.current=!1}},[a,f,r,g,E,l,n,m,v,S,O,h,b,P,d,e,Z,G]);let Re=Oe.useMemo(()=>({onKeyDown:S,onPointerDown:z,onClick:z}),[S,z]),pe=Oe.useMemo(()=>({onKeyDown:S,onPointerDown:X,onMouseDown:X,onClickCapture:N,onMouseDownCapture(M){N(),Q(M)},onPointerDownCapture(M){N(),Q(M)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[S,N,Q,X]);return Oe.useMemo(()=>n?{reference:Re,floating:pe,trigger:Re}:{},[n,Re,pe])}var go=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,n,r=!0){this.fallbackStore=t,this.componentName=n,this.throwOnMissingTrigger=r}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let n=this.attachedStores.lastIndexOf(t);n!==-1&&this.attachedStores.splice(n,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(n=>{n()}))}openByTrigger(t){let n=this.attachedStore;if(n===null)return;let r;if(t){for(let o=this.attachedStores.length-1;o>=0&&!r;o-=1)r=this.attachedStores[o].context.triggerElements.getById(t);r??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!r&&this.throwOnMissingTrigger)throw new Error(ur(99,this.componentName,t,this.componentName));n.setOpen(!0,J(U.imperativeAction,void 0,r))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,J(U.imperativeAction))}};var qn=q(de(),1),vo=q(Ut(),1);function ho(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:o,nested:s,onOpenChange:i}=e,c=t.useState("open"),u=t.useState("activeTriggerElement"),l=t.useState(n?"popupElement":"positionerElement"),f=i;return t.useSyncedValue("floatingId",o),V(()=>{let a={open:c,floatingId:o,referenceElement:u,floatingElement:l};K(u)&&(a.domReferenceElement=u),r.state.positionReference===r.state.referenceElement&&(a.positionReference=u),r.update(a)},[c,o,u,l,r]),r.context.onOpenChange=f,r.context.nested=s,r}var Kn=q(de(),1);function Ro(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:o,onUnmount:s,animateInitialOpen:i}=e,c=$(o),{mounted:u,setMounted:l,transitionStatus:f}=Ar(t,!1,!1,i),a=t?!1:r;V(()=>{t&&c(!1)},[t,c]);let p=Kn.useRef(u),d=Kn.useRef(!1),R=dr(),E=()=>{p.current=!1,l(!1),s()};V(()=>{p.current=u,d.current&&(d.current=!1,!t&&u&&E())});let g=$(()=>{if(p.current){if(t){d.current=!0,R();return}E()}});return Ir({enabled:u&&!t&&!a,open:t,ref:n,onComplete(){t||g()}}),{mounted:u,transitionStatus:f,preventUnmountingOnClose:a,forceUnmount:g}}var xa={tabIndex:-1,[mr]:""};function ba(e){return t=>t==="touch"?e.current:!0}function ya(e,t=!1){let n=st(),r=et()!=null,o=De(()=>e(n,r)).current;return ho({popupStore:o,treatPopupAsFloatingElement:t,floatingRootContext:o.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:o.setOpen}),o}function Ta({handle:e,store:t}){return V(()=>e.attachStore(t),[e,t]),null}function Eo(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function Js(e,t){let n=qn.useRef(null);return $(r=>{let o=n.current;if(o!==null){if(o.element===r&&o.store===t&&o.id===e)return;n.current=null;let s=o.store;s.context.triggerElements.getById(o.id)===o.element&&(s.context.triggerElements.delete(o.id),Eo(s))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),Eo(t))})}function Qs(e,t,n,r=!1){let o=e.preventUnmountingOnClose;t?o=!1:r&&(o=!0);let s=n?.id??null,i=e.activeTriggerId,c=e.activeTriggerElement;return(s||t)&&(i=s,c=n??null),{open:t,preventUnmountingOnClose:o,activeTriggerId:i,activeTriggerElement:c,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function Zs(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function wa(e,t,n,r={}){let o=n.reason,s=o===U.triggerHover,i=t&&o===U.triggerFocus,c=!t&&(o===U.triggerPress||o===U.escapeKey),u=Zs(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let f=Qs(e.state,t,n.trigger,u()),a={...r.extraState,...f};i?a.instantType="focus":c?a.instantType="dismiss":s&&(a.instantType=void 0),e.update(a)};s?vo.flushSync(l):l()}function Oa(e,t,n,r){let o=n.useState("isMountedByTrigger",e),s=Js(e,n),i=$(u=>{let l=n.select("open"),f=n.select("activeTriggerId");if(f===e){let a={activeTriggerElement:u,...l?r:null};n.update(a);return}if(f==null&&l&&!n.state.openedWithoutTrigger){let a={activeTriggerId:e??null,activeTriggerElement:u,...r};n.update(a)}}),c=$(u=>{s(u),u&&i(u)});return V(()=>(c(t.current),()=>c(null)),[c,t,n,e]),V(()=>{if(o){let u={activeTriggerElement:t.current,...r};n.update(u)}},[o,n,t,...Object.values(r)]),{registerTrigger:c,isMountedByThisTrigger:o}}function Ca(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=qn.useRef(null),o=e.useState("open"),s=e.useState("triggerCount"),i=e.useState("activeTriggerId"),c=e.useState("activeTriggerElement");V(()=>{if(!o){r.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0),e.state.openedWithoutTrigger&&e.set("openedWithoutTrigger",!1);return}let u=e.context.triggerElements.size,l={};e.state.triggerCount!==u&&(l.triggerCount=u);let f=e.select("activeTriggerId"),a=null;if(f){let p=e.context.triggerElements.getById(f);if(p)r.current=f,p!==e.state.activeTriggerElement&&(l.activeTriggerElement=p);else{for(let[d,R]of e.context.triggerElements.entries())if(R===e.state.activeTriggerElement){l.activeTriggerId=d,l.activeTriggerElement=R,r.current=d;break}l.activeTriggerId===void 0&&(r.current===f?a=f:r.current=null)}}else r.current=null;if(!a&&!f&&!e.state.openedWithoutTrigger&&u===1){let p=e.context.triggerElements.entries().next();if(!p.done){let[d,R]=p.value;l.activeTriggerId=d,l.activeTriggerElement=R,r.current=d}}(l.triggerCount!==void 0||l.activeTriggerId!==void 0||l.activeTriggerElement!==void 0)&&e.update(l),a&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===a&&!e.context.triggerElements.getById(a)){let p=J(U.none);e.setOpen(!1,p),p.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,s,i,c,n])}function Sa(e,t,n,r){let{mounted:o,transitionStatus:s,forceUnmount:i}=Ro({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState("preventUnmountingOnClose"),setPreventUnmountOnClose:c=>t.set("preventUnmountingOnClose",c),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return De(()=>(t.set("mounted",o),null)),t.useSyncedValues({mounted:o,transitionStatus:s}),{forceUnmount:i,transitionStatus:s}}function Pa(e,t){e.useSyncedValues(t),V(()=>()=>{e.update({activeTriggerProps:Ve,inactiveTriggerProps:Ve,popupProps:Ve})},[e])}function Ia(e,t){V(()=>{!t&&e.state.openMethod!==null&&e.set("openMethod",null)},[t,e]),V(()=>()=>{e.state.openMethod!==null&&e.set("openMethod",null)},[e])}var Jn=q(de(),1),xo=q(qt(),1);function Fa(e){let t=Jn.useCallback(r=>e===void 0?Et:e.subscribeStore(r),[e]),n=Jn.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,xo.useSyncExternalStore)(t,n,()=>e?.serverStore)}var un=class{idMap=new Map;add(t,n){this.idMap.set(t,n)}delete(t){this.idMap.delete(t)}hasElement(t){for(let n of this.idMap.values())if(n===t)return!0;return!1}hasMatchingElement(t){for(let n of this.idMap.values())if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};var bo=q(de(),1),Qn=q(qt(),1),yo=q(_r(),1);var ei=$t(19),ti=ei?ri:oi;function an(e,t,n,r,o){return ti(e,t,n,r,o)}function ni(e,t,n,r,o){let s=bo.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return(0,Qn.useSyncExternalStore)(e.subscribe,s,s)}Br({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],o=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,o)||(t=!0,r.value=o)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let o of e.syncHooks)n.add(o.store);let r=[];for(let o of n)r.push(o.subscribe(t));return()=>{for(let o of r)o()}}),(0,Qn.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function ri(e,t,n,r,o){let s=Hr();if(!s)return ni(e,t,n,r,o);let i=s.syncIndex;s.syncIndex+=1;let c;return s.didInitialize?(c=s.syncHooks[i],(c.store!==e||c.selector!==t||!Object.is(c.a1,n)||!Object.is(c.a2,r)||!Object.is(c.a3,o))&&(c.store!==e&&(s.didChangeStore=!0),c.store=e,c.selector=t,c.a1=n,c.a2=r,c.a3=o,c.value=t(e.getSnapshot(),n,r,o))):(c={store:e,selector:t,a1:n,a2:r,a3:o,value:t(e.getSnapshot(),n,r,o)},s.syncHooks.push(c)),c.value}function oi(e,t,n,r,o){return(0,yo.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,r,o))}var ln=class{static create(t){return new this(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let n=this.updateTick;for(let r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(let n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){let t={...this.state};this.setState(t)}use(t,n,r,o){return an(this,t,n,r,o)}};var gt=q(de(),1);var Ot=class extends ln{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){gt.useDebugValue(t);let r=this;V(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(t,n){let r=this;V(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){let n=this,r=Object.values(t);V(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){gt.useDebugValue(t);let r=this,o=n!==void 0;V(()=>{o&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,o])}select(t,n,r,o){let s=this.selectors[t];return s(this.state,n,r,o)}useState(t,n,r,o){return gt.useDebugValue(t),an(this,this.selectors[t],n,r,o)}useContextCallback(t,n){gt.useDebugValue(t);let r=$(n??Et);this.context[t]=r}useStateSetter(t){let n=gt.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let o=r(this.state);return n(o,o,this),this.subscribe(s=>{let i=r(s);if(!Object.is(o,i)){let c=o;o=i,n(i,c,this)}})}};var si={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Ct=class extends Ot{constructor(t){let{syncOnly:n,nested:r,onOpenChange:o,triggerElements:s,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:sn(),nested:r,triggerElements:s},si),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&Er(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);let r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}};function Qa(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Ct({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ve,inactiveTriggerProps:Ve,popupProps:Ve}}var Ht=e=>e.triggerIdProp??e.activeTriggerId,fn=e=>e.openProp??e.open,To=e=>(e.popupElement?.id??e.floatingId)||void 0;function wo(e,t){return t!==void 0&&fn(e)&&Ht(e)===t}function ii(e,t){return wo(e,t)?!0:t!==void 0&&fn(e)&&Ht(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var Za={open:fn,mounted:e=>e.mounted,transitionStatus:e=>fn(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Ht,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:To,isTriggerActive:(e,t)=>t!==void 0&&Ht(e)===t,isOpenedByTrigger:(e,t)=>wo(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Ht(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>ii(e,t)?To(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function ci(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,o=st(),s=et()!=null,i=De(()=>new Ct({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new un,floatingId:o,syncOnly:!1,nested:s})).current;return V(()=>{let c={open:t,floatingId:o};r.reference!==void 0&&(c.referenceElement=r.reference,c.domReferenceElement=K(r.reference)?r.reference:null),r.floating!==void 0&&(c.floatingElement=r.floating),i.update(c)},[t,o,r.reference,r.floating,i]),i.context.onOpenChange=n,i.context.nested=s,i}var ze=q(de(),1);var Zn=Ue.os.mac&&Ue.engine.webkit;function ui(e,t={}){let{enabled:n=!0,delay:r}=t,{events:o,dataRef:s}=e.context,i=ze.useRef(!1),c=ze.useRef(null),u=ze.useRef(!0),l=Pe();ze.useEffect(()=>{let a=e.select("domReferenceElement");if(!n)return;let p=Se(a);function d(){let g=e.select("domReferenceElement");!e.select("open")&&ce(g)&&g===Ae(te(g))&&(i.current=!0,c.current=g)}function R(){u.current=!0}function E(){u.current=!1}return we(L(p,"blur",d),Zn&&L(p,"keydown",R,!0),Zn&&L(p,"pointerdown",E,!0))},[e,n]),ze.useEffect(()=>{if(!n)return;function a(p){if(p.reason===U.triggerPress||p.reason===U.escapeKey){let d=e.select("domReferenceElement");K(d)&&(c.current=d,i.current=!0)}}return o.on("openchange",a),()=>{o.off("openchange",a)}},[o,n,e]);let f=ze.useMemo(()=>{function a(){i.current=!1,c.current=null}return{onMouseLeave(){a()},onFocus(p){let d=p.currentTarget;if(i.current){if(c.current===d)return;a()}let R=me(p.nativeEvent);if(K(R)){if(Zn&&!p.relatedTarget){if(!u.current&&!bt(R))return}else if(!gr(R))return}let E=rt(p.relatedTarget,e.context.triggerElements),{nativeEvent:g,currentTarget:h}=p;if(e.select("open")&&E||!r){e.setOpen(!0,J(U.triggerFocus,g,h));return}l.start(r,()=>{i.current||e.setOpen(!0,J(U.triggerFocus,g,h))})},onBlur(p){a();let d=p.relatedTarget,R=p.nativeEvent,E=K(d)&&d.hasAttribute(Ge("focus-guard"))&&d.getAttribute("data-type")==="outside";l.start(0,()=>{let g=e.select("domReferenceElement"),h=Ae(te(g));!d&&h===g||F(s.current.floatingContext?.refs.floating.current,h)||F(g,h)||E||rt(d??h,e.context.triggerElements)||e.setOpen(!1,J(U.triggerFocus,R))})}}},[s,r,e,l]);return ze.useMemo(()=>n?{reference:f,trigger:f}:{},[n,f])}var er=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new Je;restTimeout=new Je;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},dn=new WeakMap;function St(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&dn.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),dn.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function mn(e,t){let{scopeElement:n,referenceElement:r,floatingElement:o}=t,s=dn.get(n);s&&s!==e&&St(s),St(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=o,dn.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",o.style.pointerEvents="auto"}function pn(e){let t=e.context.dataRef.current,n=De(()=>t.hoverInteractionState??er.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),cr(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}var tr=q(de(),1);function ai(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:o}=t,s=e.useState("open"),i=e.useState("floatingElement"),c=e.useState("domReferenceElement"),{dataRef:u}=e.context,l=Xe(),f=et(),a=pn(e),p=Pe(),d=$(()=>tn(u.current.openEvent?.type,a.interactedInside)),R=$(()=>Zr(u.current.openEvent?.type)),E=$(()=>{St(a)});V(()=>{s||(a.pointerType=void 0,a.restTimeoutPending=!1,a.interactedInside=!1,E())},[s,a,E]),tr.useEffect(()=>E,[E]),V(()=>{if(n&&s&&a.handleCloseOptions?.blockPointerEvents&&R()&&K(c)&&i){let g=c,h=i,m=te(i),v=l?.nodesRef.current.find(T=>T.id===f)?.context?.elements.floating;v&&(v.style.pointerEvents="");let x=a.pointerEventsScopeElement!==h?a.pointerEventsScopeElement:null,w=v!==h?v:null,y=a.handleCloseOptions?.getScope?.()??x??w??Mt(g,"[data-rootownerid]")??m.body;return mn(a,{scopeElement:y,referenceElement:g,floatingElement:h}),()=>{E()}}},[n,s,c,i,a,R,l,f,E]),tr.useEffect(()=>{if(!n)return;function g(){return!!(l&&f&&He(l.nodesRef.current,f).length>0)}function h(T){let A=Ze(r,"close",a.pointerType),H=()=>{e.setOpen(!1,J(U.triggerHover,T)),l?.events.emit("floating.closed",T)};A?a.openChangeTimeout.start(A,H):(a.openChangeTimeout.clear(),H())}function m(T){let A=me(T);if(!Sn(A)){a.interactedInside=!1;return}a.interactedInside=Mt(A,"[aria-haspopup]")!=null}function v(){a.openChangeTimeout.clear(),p.clear(),l?.events.off("floating.closed",w),E()}function x(T){if(g()&&l){l.events.on("floating.closed",w);return}if(rt(T.relatedTarget,e.context.triggerElements))return;let A=u.current.floatingContext?.nodeId??o,H=T.relatedTarget;if(!(l&&A&&K(H)&&He(l.nodesRef.current,A,!1).some(Z=>F(Z.context?.elements.floating,H)))){if(a.handler){a.handler(T);return}E(),R()&&!d()&&h(T)}}function w(T){!l||!f||g()||p.start(0,()=>{l.events.off("floating.closed",w),e.setOpen(!1,J(U.triggerHover,T)),l.events.emit("floating.closed",T)})}let y=i;return we(y&&L(y,"mouseenter",v),y&&L(y,"mouseleave",x),y&&L(y,"pointerdown",m,!0),()=>{l?.events.off("floating.closed",w)})},[n,i,e,u,r,o,R,d,E,a,l,f,p])}var ut=q(de(),1),Oo=q(Ut(),1);var li={current:null};function fi(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:o=null,mouseOnly:s=!1,restMs:i=0,move:c=!0,triggerElementRef:u=li,externalTree:l,isActiveTrigger:f=!0,getHandleCloseContext:a,isClosing:p,shouldOpen:d,guardStaleOpen:R=!1}=t,{dataRef:E,events:g}=e.context,h=Xe(l),m=pn(e),v=ut.useRef(!1),x=Le(o),w=Le(r),y=Le(i),T=Le(n),A=Le(d),H=Le(p),_=$(()=>tn(E.current.openEvent?.type,m.interactedInside)),Z=$(()=>A.current?.()!==!1),he=$((b,P,z)=>{let S=e.context.triggerElements;if(S.hasElement(P))return!b||!F(b,P);if(!K(z))return!1;let N=z;return S.hasMatchingElement(Q=>F(Q,N))&&(!b||!F(b,N))}),G=$(()=>{if(!m.handler)return;te(e.select("domReferenceElement")).removeEventListener("mousemove",m.handler),m.handler=void 0}),O=$(()=>{St(m)});return f&&(m.handleCloseOptions=o?.__options),ut.useEffect(()=>G,[G]),ut.useEffect(()=>{if(!n)return;function b(P){P.open?v.current=!1:(v.current=P.reason===U.triggerHover,G(),m.openChangeTimeout.clear(),m.restTimeout.clear(),m.blockMouseMove=!0,m.restTimeoutPending=!1)}return g.on("openchange",b),()=>{g.off("openchange",b)}},[n,g,m,G]),ut.useEffect(()=>{if(!n)return;function b(X,Re=!0){let pe=Ze(w.current,"close",m.pointerType);pe?m.openChangeTimeout.start(pe,()=>{e.setOpen(!1,J(U.triggerHover,X)),h?.events.emit("floating.closed",X)}):Re&&(m.openChangeTimeout.clear(),e.setOpen(!1,J(U.triggerHover,X)),h?.events.emit("floating.closed",X))}let P=u.current??(f?e.select("domReferenceElement"):null);if(!K(P))return;function z(X){if(m.openChangeTimeout.clear(),m.blockMouseMove=!1,s&&!Be(m.pointerType))return;let Re=$n(y.current),pe=Ze(w.current,"open",m.pointerType),M=me(X),j=X.currentTarget??null,D=e.select("domReferenceElement"),re=j;if(K(M)&&!e.context.triggerElements.hasElement(M)){for(let ue of e.context.triggerElements.elements())if(F(ue,M)){re=ue;break}}K(j)&&K(D)&&!e.context.triggerElements.hasElement(j)&&F(j,D)&&(re=D);let ye=re==null?!1:he(D,re,M),k=e.select("open"),ne=H.current?.()??e.select("transitionStatus")==="ending",ae=!k&&ne&&v.current,_e=!ye&&K(re)&&K(D)&&F(D,re)&&ae,Ke=Re>0&&!pe,Y=ye&&(k||ae)||_e,oe=!k||ye;if(Y){Z()&&e.setOpen(!0,J(U.triggerHover,X,re));return}Ke||(pe?m.openChangeTimeout.start(pe,()=>{oe&&Z()&&e.setOpen(!0,J(U.triggerHover,X,re))}):oe&&Z()&&e.setOpen(!0,J(U.triggerHover,X,re)))}function S(X){if(_()){O();return}G();let Re=e.select("domReferenceElement"),pe=te(Re);m.restTimeout.clear(),m.restTimeoutPending=!1;let M=E.current.floatingContext??a?.();if(rt(X.relatedTarget,e.context.triggerElements))return;if(x.current&&M){e.select("open")||m.openChangeTimeout.clear();let D=u.current;m.handler=x.current({...M,tree:h,x:X.clientX,y:X.clientY,onClose(){O(),G(),T.current&&!_()&&D===e.select("domReferenceElement")&&b(X,!0)}}),pe.addEventListener("mousemove",m.handler),m.handler(X);return}(m.pointerType!=="touch"||!F(e.select("floatingElement"),X.relatedTarget))&&b(X)}function N(X){F(P,X.relatedTarget)||(m.openChangeTimeout.clear(),m.restTimeout.clear(),m.restTimeoutPending=!1)}let Q=R?L(P,"mouseout",N):void 0;return c?we(L(P,"mousemove",z,{once:!0}),L(P,"mouseenter",z),L(P,"mouseleave",S),Q):we(L(P,"mouseenter",z),L(P,"mouseleave",S),Q)},[G,O,E,w,e,n,x,m,f,he,_,s,c,y,u,h,T,a,H,Z,R]),ut.useMemo(()=>{if(!n)return;function b(P){m.pointerType=P.pointerType}return{onPointerDown:b,onPointerEnter:b,onMouseMove(P){let{nativeEvent:z}=P,S=P.currentTarget,N=e.select("domReferenceElement"),Q=e.select("open"),X=he(N,S,P.target);if(s&&!Be(m.pointerType))return;if(Q&&X&&m.handleCloseOptions?.blockPointerEvents){let M=e.select("floatingElement");if(M){let j=m.handleCloseOptions?.getScope?.()??S.ownerDocument.body;mn(m,{scopeElement:j,referenceElement:S,floatingElement:M})}}let Re=$n(y.current);if(Q&&!X||Re===0||!X&&m.restTimeoutPending&&P.movementX**2+P.movementY**2<2)return;m.restTimeout.clear();function pe(){if(m.restTimeoutPending=!1,_())return;let M=e.select("open");!m.blockMouseMove&&(!M||X)&&Z()&&e.setOpen(!0,J(U.triggerHover,z,S))}m.pointerType==="touch"?Oo.flushSync(()=>{pe()}):X&&Q?pe():(m.restTimeoutPending=!0,m.restTimeout.start(Re,pe))}}},[n,m,_,he,s,e,y,Z])}var Co=.1,di=Co*Co,ee=.5;function gn(e,t,n,r,o,s){return r>=t!=s>=t&&e<=(o-n)*(t-r)/(s-r)+n}function hn(e,t,n,r,o,s,i,c,u,l){let f=!1;return gn(e,t,n,r,o,s)&&(f=!f),gn(e,t,o,s,i,c)&&(f=!f),gn(e,t,i,c,u,l)&&(f=!f),gn(e,t,u,l,n,r)&&(f=!f),f}function mi(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Rn(e,t,n,r,o,s){let i=Math.min(n,o),c=Math.max(n,o),u=Math.min(r,s),l=Math.max(r,s);return e>=i&&e<=c&&t>=u&&t<=l}function pi(e={}){let{blockPointerEvents:t=!1}=e,n=new Je,r=({x:o,y:s,placement:i,elements:c,onClose:u,nodeId:l,tree:f})=>{let a=i?.split("-")[0],p=!1,d=null,R=null,E=typeof performance<"u"?performance.now():0;function g(m,v){let x=performance.now(),w=x-E;if(d===null||R===null||w===0)return d=m,R=v,E=x,!1;let y=m-d,T=v-R,A=y*y+T*T,H=w*w*di;return d=m,R=v,E=x,A<H}function h(){n.clear(),u()}return function(v){n.clear();let x=c.domReference,w=c.floating;if(!x||!w||a==null||o==null||s==null)return;let{clientX:y,clientY:T}=v,A=me(v),H=v.type==="mouseleave",_=F(w,A),Z=F(x,A);if(_&&(p=!0,!H))return;if(Z&&(p=!1,!H)){p=!0;return}if(H&&K(v.relatedTarget)&&F(w,v.relatedTarget))return;function he(){return!!(f&&He(f.nodesRef.current,l).length>0)}function G(){he()||h()}if(he())return;let O=x.getBoundingClientRect(),b=w.getBoundingClientRect(),P=o>b.right-b.width/2,z=s>b.bottom-b.height/2,S=b.width>O.width,N=b.height>O.height,Q=(S?O:b).left,X=(S?O:b).right,Re=(N?O:b).top,pe=(N?O:b).bottom;if(a==="top"&&s>=O.bottom-1||a==="bottom"&&s<=O.top+1||a==="left"&&o>=O.right-1||a==="right"&&o<=O.left+1){G();return}let M=!1;switch(a){case"top":M=Rn(y,T,Q,O.top+1,X,b.bottom-1);break;case"bottom":M=Rn(y,T,Q,b.top+1,X,O.bottom-1);break;case"left":M=Rn(y,T,b.right-1,pe,O.left+1,Re);break;case"right":M=Rn(y,T,O.right-1,pe,b.left+1,Re);break;default:}if(M)return;if(p&&!mi(y,T,O)){G();return}if(!H&&g(y,T)){G();return}let j=!1;switch(a){case"top":{let D=S?ee/2:ee*4,re=S||P?o+D:o-D,ye=S?o-D:P?o+D:o-D,k=s+ee+1,ne=P||S?b.bottom-ee:b.top,ae=P?S?b.bottom-ee:b.top:b.bottom-ee;j=hn(y,T,re,k,ye,k,b.left,ne,b.right,ae);break}case"bottom":{let D=S?ee/2:ee*4,re=S||P?o+D:o-D,ye=S?o-D:P?o+D:o-D,k=s-ee,ne=P||S?b.top+ee:b.bottom,ae=P?S?b.top+ee:b.bottom:b.top+ee;j=hn(y,T,re,k,ye,k,b.left,ne,b.right,ae);break}case"left":{let D=N?ee/2:ee*4,re=N||z?s+D:s-D,ye=N?s-D:z?s+D:s-D,k=o+ee+1,ne=z||N?b.right-ee:b.left,ae=z?N?b.right-ee:b.left:b.right-ee;j=hn(y,T,ne,b.top,ae,b.bottom,k,re,k,ye);break}case"right":{let D=N?ee/2:ee*4,re=N||z?s+D:s-D,ye=N?s-D:z?s+D:s-D,k=o-ee,ne=z||N?b.left+ee:b.right,ae=z?N?b.left+ee:b.right:b.left+ee;j=hn(y,T,k,re,k,ye,ne,b.top,ae,b.bottom);break}default:}j?p||n.start(40,G):G()}};return r.__options={...e,blockPointerEvents:t},r}var Bt=q(de(),1);function gi(e,t={}){let{enabled:n=!0,event:r="click",toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:i=!0,touchOpenDelay:c=0,reason:u=U.triggerPress}=t,l=e.context.dataRef,f=Bt.useRef(void 0),a=Yt(),p=Pe(),d=Bt.useMemo(()=>{function R(g,h,m,v){let x=J(u,h,m);g&&v==="touch"&&c>0?p.start(c,()=>{e.setOpen(!0,x)}):e.setOpen(g,x)}function E(g,h,m){let v=l.current.openEvent,x=e.select("domReferenceElement")!==h;return g&&x||!g||!o?!0:v&&(typeof i=="function"?i():i)?!m(v.type):!1}return{onPointerDown(g){f.current=Be(g.pointerType,!0)&&Xt(g.nativeEvent)?"virtual":g.pointerType},onMouseDown(g){let h=f.current,m=g.nativeEvent,v=e.select("open");if(g.button!==0||r==="click"||Be(h,!0)&&s)return;let x=E(v,g.currentTarget,A=>A==="click"||A==="mousedown"),w=me(m),y=bt(w);if(y||h==="virtual"){R(x,m,y?w:g.currentTarget,h);return}let T=g.currentTarget;a.request(()=>{R(x,m,T,h)})},onClick(g){if(r==="mousedown-only")return;let h=f.current;if(r==="mousedown"&&h){f.current=void 0;return}if(Be(h,!0)&&s)return;let m=e.select("open"),v=E(m,g.currentTarget,x=>x==="click"||x==="mousedown"||x==="keydown"||x==="keyup");R(v,g.nativeEvent,g.currentTarget,h)},onKeyDown(){f.current=void 0}}},[l,r,s,u,e,i,o,a,p,c]);return Bt.useMemo(()=>n?{reference:d}:Ve,[n,d])}function So(e,t,n){let{reference:r,floating:o}=e,s=Ye(t),i=br(t),c=xr(i),u=ft(t),l=s==="y",f=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,p=r[c]/2-o[c]/2,d;switch(u){case"top":d={x:f,y:r.y-o.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}let R=zt(t);return R&&(d[i]+=p*(R==="end"?1:-1)*(n&&l?-1:1)),d}async function Po(e,t){var n;t===void 0&&(t={});let{x:r,y:o,platform:s,rects:i,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:a="floating",altBoundary:p=!1,padding:d=0}=ot(t,e),R=Cr(d),g=c[p?a==="floating"?"reference":"floating":a],h=dt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:l,rootBoundary:f,strategy:u})),m=a==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),x=await(s.isElement==null?void 0:s.isElement(v))&&await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1},w=dt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:m,offsetParent:v,strategy:u}):m);return{top:(h.top-w.top+R.top)/x.y,bottom:(w.bottom-h.bottom+R.bottom)/x.y,left:(h.left-w.left+R.left)/x.x,right:(w.right-h.right+R.right)/x.x}}var hi=50,Io=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:Po},u=await(i.isRTL==null?void 0:i.isRTL(t)),l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:a}=So(l,r,u),p=r,d=0,R={};for(let E=0;E<s.length;E++){let g=s[E];if(!g)continue;let{name:h,fn:m}=g,{x:v,y:x,data:w,reset:y}=await m({x:f,y:a,initialPlacement:r,placement:p,strategy:o,middlewareData:R,rects:l,platform:c,elements:{reference:e,floating:t}});f=v??f,a=x??a,R[h]={...R[h],...w},y&&d<hi&&(d++,typeof y=="object"&&(y.placement&&(p=y.placement),y.rects&&(l=y.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):y.rects),{x:f,y:a}=So(l,p,u)),E=-1)}return{x:f,y:a,placement:p,strategy:o,middlewareData:R}};var Ao=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;let{placement:o,middlewareData:s,rects:i,initialPlacement:c,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:a=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:E=!0,...g}=ot(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};let h=ft(o),m=Ye(c),v=ft(c)===c,x=await(u.isRTL==null?void 0:u.isRTL(l.floating)),w=p||(v||!E?[Or(c)]:Tr(c)),y=R!=="none";!p&&y&&w.push(...wr(c,E,R,x));let T=[c,...w],A=await u.detectOverflow(t,g),H=[],_=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&H.push(A[h]),a){let O=yr(o,i,x);H.push(A[O[0]],A[O[1]])}if(_=[..._,{placement:o,overflows:H}],!H.every(O=>O<=0)){var Z,he;let O=(((Z=s.flip)==null?void 0:Z.index)||0)+1,b=T[O];if(b&&(!(a==="alignment"?m!==Ye(b):!1)||_.every(S=>Ye(S.placement)===m?S.overflows[0]>0:!0)))return{data:{index:O,overflows:_},reset:{placement:b}};let P=(he=_.filter(z=>z.overflows[0]<=0).sort((z,S)=>z.overflows[1]-S.overflows[1])[0])==null?void 0:he.placement;if(!P)switch(d){case"bestFit":{var G;let z=(G=_.filter(S=>{if(y){let N=Ye(S.placement);return N===m||N==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(N=>N>0).reduce((N,Q)=>N+Q,0)]).sort((S,N)=>S[1]-N[1])[0])==null?void 0:G[0];z&&(P=z);break}case"initialPlacement":P=c;break}if(o!==P)return{reset:{placement:P}}}return{}}}};var Mo=new Set(["left","top"]);async function Ri(e,t){let{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=ft(n),c=zt(n),u=Ye(n)==="y",l=Mo.has(i)?-1:1,f=s&&u?-1:1,a=ot(t,e),{mainAxis:p,crossAxis:d,alignmentAxis:R}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof R=="number"&&(d=c==="end"?R*-1:R),u?{x:d*f,y:p*l}:{x:p*l,y:d*f}}var Fo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:s,placement:i,middlewareData:c}=t,u=await Ri(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},ko=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:u={fn:m=>{let{x:v,y:x}=m;return{x:v,y:x}}},...l}=ot(e,t),f={x:n,y:r},a=await s.detectOverflow(t,l),p=Ye(o),d=An(p),R=f[d],E=f[p],g=(m,v)=>vr(v+a[m==="y"?"top":"left"],v,v-a[m==="y"?"bottom":"right"]);i&&(R=g(d,R)),c&&(E=g(p,E));let h=u.fn({...t,[d]:R,[p]:E});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[p]:c}}}}}},Do=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,r;let{x:o,y:s,placement:i,rects:c,middlewareData:u}=t,{offset:l=0,mainAxis:f=!0,crossAxis:a=!0}=ot(e,t),p={x:o,y:s},d=Ye(i),R=An(d),E=p[R],g=p[d],h=ot(l,t),m=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:(n=h.mainAxis)!=null?n:0,crossAxis:(r=h.crossAxis)!=null?r:0};if(f){let w=R==="y"?"height":"width",y=c.reference[R]-c.floating[w]+m.mainAxis,T=c.reference[R]+c.reference[w]-m.mainAxis;E<y?E=y:E>T&&(E=T)}if(a){var v,x;let w=R==="y"?"width":"height",y=Mo.has(ft(i)),T=c.reference[d]-c.floating[w]+(y&&((v=u.offset)==null?void 0:v[d])||0)+(y?0:m.crossAxis),A=c.reference[d]+c.reference[w]+(y?0:((x=u.offset)==null?void 0:x[d])||0)-(y?m.crossAxis:0);g<T?g=T:g>A&&(g=A)}return{[R]:E,[d]:g}}}},No=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:n,rects:r,platform:o,elements:s}=t,{apply:i=()=>{},...c}=ot(e,t),u=await o.detectOverflow(t,c),l=ft(n),f=zt(n),a=Ye(n)==="y",{width:p,height:d}=r.floating,R,E;l==="top"||l==="bottom"?(R=l,E=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(E=l,R=f==="end"?"top":"bottom");let g=d-u.top-u.bottom,h=p-u.left-u.right,m=lt(d-u[R],g),v=lt(p-u[E],h),x=t.middlewareData.shift,w=!x,y=m,T=v;x!=null&&x.enabled.x&&(T=h),x!=null&&x.enabled.y&&(y=g),w&&!f&&(a?T=p-2*$e(u.left,u.right):y=d-2*$e(u.top,u.bottom)),await i({...t,availableWidth:T,availableHeight:y});let A=await o.getDimensions(s.floating);return p!==A.width||d!==A.height?{reset:{rects:!0}}:{}}}};function Vo(e){let t=Ne(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ce(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=Ft(n)!==s||Ft(r)!==i;return c&&(n=s,r=i),{width:n,height:r,$:c}}function rr(e){return K(e)?e:e.contextElement}function Pt(e){let t=rr(e);if(!ce(t))return je(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Vo(t),i=(s?Ft(n.width):n.width)/r,c=(s?Ft(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}var Ei=je(0);function Ho(e){let t=Se(e);return!On()||!t.visualViewport?Ei:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vi(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Se(e)}function ht(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let o=e.getBoundingClientRect(),s=rr(e),i=je(1);t&&(r?K(r)&&(i=Pt(r)):i=Pt(e));let c=vi(s,n,r)?Ho(s):je(0),u=(o.left+c.x)/i.x,l=(o.top+c.y)/i.y,f=o.width/i.x,a=o.height/i.y;if(s&&r){let p=Se(s),d=K(r)?Se(r):r,R=p,E=Cn(R);for(;E&&d!==R;){let g=Pt(E),h=E.getBoundingClientRect(),m=Ne(E),v=h.left+(E.clientLeft+parseFloat(m.paddingLeft))*g.x,x=h.top+(E.clientTop+parseFloat(m.paddingTop))*g.y;u*=g.x,l*=g.y,f*=g.x,a*=g.y,u+=v,l+=x,R=Se(E),E=Cn(R)}}return dt({width:f,height:a,x:u,y:l})}function En(e,t){let n=At(e).scrollLeft;return t?t.left+n:ht(qe(e)).left+n}function Bo(e,t){let n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-En(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xi(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,s=o==="fixed",i=qe(r),c=t?jt(t.floating):!1;if(r===i||c&&s)return n;let u={scrollLeft:0,scrollTop:0},l=je(1),f=je(0),a=ce(r);if((a||!s)&&((ve(r)!=="body"||Tn(i))&&(u=At(r)),a)){let d=ht(r);l=Pt(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}let p=i&&!a&&!s?Bo(i,u):je(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+p.x,y:n.y*l.y-u.scrollTop*l.y+f.y+p.y}}function bi(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function yi(e){let t=At(e),n=e.ownerDocument.body,r=$e(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=$e(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+En(e),i=-t.scrollTop;return Ne(n).direction==="rtl"&&(s+=$e(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:s,y:i}}var Ti=25;function wi(e,t,n){n===void 0&&(n="viewport");let r=n==="layoutViewport",o=Se(e),s=qe(e),i=o.visualViewport,c=s.clientWidth,u=s.clientHeight,l=0,f=0;if(i){let p=!On()||t==="fixed";r?p||(l=-i.offsetLeft,f=-i.offsetTop):(c=i.width,u=i.height,p&&(l=i.offsetLeft,f=i.offsetTop))}if(En(s)<=0){let p=s.ownerDocument,d=p.body,R=getComputedStyle(d),E=p.compatMode==="CSS1Compat"&&parseFloat(R.marginLeft)+parseFloat(R.marginRight)||0,g=Math.abs(s.clientWidth-d.clientWidth-E),h=getComputedStyle(s).scrollbarGutter==="stable both-edges"?g/2:g;h<=Ti&&(c-=h)}return{width:c,height:u,x:l,y:f}}function Oi(e,t){let n=ht(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Pt(e),i=e.clientWidth*s.x,c=e.clientHeight*s.y,u=o*s.x,l=r*s.y;return{width:i,height:c,x:u,y:l}}function Lo(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=wi(e,n,t);else if(t==="document")r=yi(qe(e));else if(K(t))r=Oi(t,n);else{let o=Ho(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return dt(r)}function Ci(e,t){let n=t.get(e);if(n)return n;let r=xt(e,[],!1).filter(c=>K(c)&&ve(c)!=="body"),o=null,s=Ne(e).position==="fixed",i=s?at(e):e;for(;K(i)&&!nt(i);){let c=Ne(i),u=wn(i),l=o?o.position:s?"fixed":"";!u&&(l==="fixed"||l==="absolute"&&c.position==="static")?r=r.filter(a=>a!==i):o=c,i=at(i)}return t.set(e,r),r}function Si(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[...n==="clippingAncestors"?jt(t)?[]:Ci(t,this._c):[].concat(n),r],c=Lo(t,i[0],o),u=c.top,l=c.right,f=c.bottom,a=c.left;for(let p=1;p<i.length;p++){let d=Lo(t,i[p],o);u=$e(d.top,u),l=lt(d.right,l),f=lt(d.bottom,f),a=$e(d.left,a)}return{width:l-a,height:f-u,x:a,y:u}}function Pi(e){let{width:t,height:n}=Vo(e);return{width:t,height:n}}function Ii(e,t,n){let r=ce(t),o=qe(t),s=n==="fixed",i=ht(e,!0,s,t),c={scrollLeft:0,scrollTop:0},u=je(0);if((r||!s)&&((ve(t)!=="body"||Tn(o))&&(c=At(t)),r)){let p=ht(t,!0,s,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}!r&&o&&(u.x=En(o));let l=o&&!r&&!s?Bo(o,c):je(0),f=i.left+c.scrollLeft-u.x-l.x,a=i.top+c.scrollTop-u.y-l.y;return{x:f,y:a,width:i.width,height:i.height}}function nr(e){return Ne(e).position==="static"}function _o(e,t){if(!ce(e)||Ne(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qe(e)===n&&(n=n.ownerDocument.body),n}function Wo(e,t){let n=Se(e);if(jt(e))return n;if(!ce(e)){let o=at(e);for(;o&&!nt(o);){if(K(o)&&!nr(o))return o;o=at(o)}return n}let r=_o(e,t);for(;r&&lr(r)&&nr(r);)r=_o(r,t);return r&&nt(r)&&nr(r)&&!wn(r)?n:r||fr(e)||n}var Ai=async function(e){let t=this.getOffsetParent||Wo,n=this.getDimensions,r=await n(e.floating);return{reference:Ii(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Mi(e){return Ne(e).direction==="rtl"}var or={convertOffsetParentRelativeRectToViewportRelativeRect:xi,getDocumentElement:qe,getClippingRect:Si,getOffsetParent:Wo,getElementRects:Ai,getClientRects:bi,getDimensions:Pi,getScale:Pt,isElement:K,isRTL:Mi};function Uo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fi(e,t,n){let r=null,o,s=qe(e);function i(){var f;clearTimeout(o),(f=r)==null||f.disconnect(),r=null}function c(f,a){f===void 0&&(f=!1),a===void 0&&(a=1),i();let p=e.getBoundingClientRect(),{left:d,top:R,width:E,height:g}=p;if(f||t(),!E||!g)return;let h=kt(R),m=kt(s.clientWidth-(d+E)),v=kt(s.clientHeight-(R+g)),x=kt(d),y={rootMargin:-h+"px "+-m+"px "+-v+"px "+-x+"px",threshold:$e(0,lt(1,a))||1},T=!0;function A(H){let _=H[0].intersectionRatio;if(!Uo(p,e.getBoundingClientRect()))return c();if(_!==a){if(!T)return c();_?c(!1,_):o=setTimeout(()=>{c(!1,1e-7)},1e3)}T=!1}try{r=new IntersectionObserver(A,{...y,root:s.ownerDocument})}catch{r=new IntersectionObserver(A,y)}r.observe(e)}let u=Se(e),l=()=>c(n);return u.addEventListener("resize",l),c(!0),()=>{u.removeEventListener("resize",l),i()}}function $o(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=rr(e),f=o||s?[...l?xt(l):[],...t?xt(t):[]]:[];f.forEach(h=>{o&&h.addEventListener("scroll",n),s&&h.addEventListener("resize",n)});let a=l&&c?Fi(l,n,s):null,p=-1,d=null;i&&(d=new ResizeObserver(h=>{let[m]=h;m&&m.target===l&&d&&t&&(d.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(t)})),n()}),l&&!u&&d.observe(l),t&&d.observe(t));let R,E=u?ht(e):null;u&&g();function g(){let h=ht(e);E&&!Uo(E,h)&&n(),E=h,R=requestAnimationFrame(g)}return n(),()=>{var h;f.forEach(m=>{o&&m.removeEventListener("scroll",n),s&&m.removeEventListener("resize",n)}),a?.(),(h=d)==null||h.disconnect(),d=null,u&&cancelAnimationFrame(R)}}var jo=Fo;var Yo=ko,Go=Ao,Xo=No;var zo=Do,vn=(e,t,n)=>{let r=new Map,o=n??{},s={...or,...o.platform,_c:r};return Io(e,t,{...o,platform:s})};var ge=q(de(),1),qo=q(de(),1),Jo=q(Ut(),1),Di=typeof document<"u",Ni=function(){},xn=Di?qo.useLayoutEffect:Ni;function bn(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,o;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(!bn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){let s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!bn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Qo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ko(e,t){let n=Qo(e);return Math.round(t*n)/n}function sr(e){let t=ge.useRef(e);return xn(()=>{t.current=e}),t}function kf(e){e===void 0&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[f,a]=ge.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,d]=ge.useState(r);bn(p,r)||d(r);let[R,E]=ge.useState(null),[g,h]=ge.useState(null),m=ge.useCallback(S=>{S!==y.current&&(y.current=S,E(S))},[]),v=ge.useCallback(S=>{S!==T.current&&(T.current=S,h(S))},[]),x=s||R,w=i||g,y=ge.useRef(null),T=ge.useRef(null),A=ge.useRef(f),H=u!=null,_=sr(u),Z=sr(o),he=sr(l),G=ge.useCallback(()=>{if(!y.current||!T.current)return;let S={placement:t,strategy:n,middleware:p};Z.current&&(S.platform=Z.current),vn(y.current,T.current,S).then(N=>{let Q={...N,isPositioned:he.current!==!1};O.current&&!bn(A.current,Q)&&(A.current=Q,Jo.flushSync(()=>{a(Q)}))})},[p,t,n,Z,he]);xn(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,a(S=>({...S,isPositioned:!1})))},[l]);let O=ge.useRef(!1);xn(()=>(O.current=!0,()=>{O.current=!1}),[]),xn(()=>{if(x&&(y.current=x),w&&(T.current=w),x&&w){if(_.current)return _.current(x,w,G);G()}},[x,w,G,_,H]);let b=ge.useMemo(()=>({reference:y,floating:T,setReference:m,setFloating:v}),[m,v]),P=ge.useMemo(()=>({reference:x,floating:w}),[x,w]),z=ge.useMemo(()=>{let S={position:n,left:0,top:0};if(!P.floating)return S;let N=Ko(P.floating,f.x),Q=Ko(P.floating,f.y);return c?{...S,transform:"translate("+N+"px, "+Q+"px)",...Qo(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:Q}},[n,c,P.floating,f.x,f.y]);return ge.useMemo(()=>({...f,update:G,refs:b,elements:P,floatingStyles:z}),[f,G,b,P,z])}var Li=(e,t)=>{let n=jo(e);return{name:n.name,fn:n.fn,options:[e,t]}},_i=(e,t)=>{let n=Yo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vi=(e,t)=>({fn:zo(e).fn,options:[e,t]}),Hi=(e,t)=>{let n=Go(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bi=(e,t)=>{let n=Xo(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Zo=class extends Ot{setState(t){}update(t){}set(t,n){}notifyAll(){}};export{qt as a,_r as b,ws as c,Gi as d,Ot as e,we as f,L as g,dc as h,mt as i,wt as j,tc as k,rc as l,Ur as m,Cs as n,oc as o,sc as p,ic as q,Qr as r,ks as s,Le as t,Ze as u,_s as v,Vs as w,Xe as x,Bs as y,Ws as z,Us as A,Ys as B,gi as C,Xs as D,qs as E,go as F,xa as G,ba as H,ya as I,Ta as J,Js as K,Qs as L,Zs as M,wa as N,Oa as O,Ca as P,Sa as Q,Pa as R,Ia as S,un as T,Qa as U,Za as V,Fa as W,ci as X,ui as Y,pn as Z,ai as _,fi as $,pi as aa,$o as ba,kf as ca,Li as da,_i as ea,Vi as fa,Hi as ga,Bi as ha,Zo as ia};
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
|
5
|
+
(**
|
|
6
|
+
* @license React
|
|
7
|
+
* use-sync-external-store-shim.production.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*)
|
|
14
|
+
|
|
15
|
+
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
|
|
16
|
+
(**
|
|
17
|
+
* @license React
|
|
18
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
19
|
+
*
|
|
20
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the MIT license found in the
|
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
|
24
|
+
*)
|
|
25
|
+
*/
|