@aeolus-fleet/console 0.25.0 → 0.25.2
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/.next/standalone/packages/console/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/console/.next/build-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/prerender-manifest.json +3 -3
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/labels/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/network/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/questions/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/questions/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/questions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page/server-reference-manifest.json +16 -16
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/packages/console/.next/server/app/api/reads/[read]/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/app/version/route.js.nft.json +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__06f_104._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__1cfwaji._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_blueprints_[name]_page_actions_170owr_.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_templates_[name]_page_actions_09abrr0.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_needs-crew_page_actions_08gu8-f.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_network_page_actions_1muuv-j.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_questions_page_actions_12d6yd2.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_settings_page_actions_0b6qztr.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_ships_[shipId]_page_actions_0g2nd1p.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_squadrons_page_actions_1x3afts.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_trierarchs_page_actions_1ow37mz.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_needs-attention_page_actions_1jfgclw.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_squadrons_[squadronId]_page_actions_1lzqlye.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_trierarchs_[shipId]_page_actions_0l7bxva.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__197gd9r._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_01eyvjo._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_20i0fo8._.js → _03figwl._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0cak8i7._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ll55v1._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_127j_99._.js → _0magod9._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0or-_73._.js → _0ze4jen._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_11s1izd._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_195z53h._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0wxg7hg._.js → _1aub6rh._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1buuyye._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1geqwzr._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1r9nd0e._.js → _1hl4kpn._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1or2awi._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0punyro._.js → _1tt3h4z._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/_1u0h4gj._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{node_modules_@base-ui_react_0xxx54b._.js → node_modules_@base-ui_react_1of81la._.js} +2 -2
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_01vespm._.js → packages_console_122o2i3._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0n040z7._.js → packages_console_1adfz1r._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_02tq-5j._.js → packages_console_1upjt78._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_inbox_page_actions_0q9_xye.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_labels_page_actions_0tk7mqs.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_page_actions_1ftjjyq.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_needs-attention_page_tsx_03s6y-o._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_overview-page_tsx_15siba6._.js +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_1_fszuc._.js → packages_console_features_1ycqicv._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_143srw6._.js → packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_12z690a._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_0mlws3e._.js → packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_140y8dv._.js} +1 -1
- package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_lib_11xnux-._.js +1 -1
- package/.next/standalone/packages/console/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/packages/console/.next/server/pages/500.html +1 -1
- package/.next/standalone/packages/console/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/console/.next/server/server-reference-manifest.json +17 -17
- package/.next/standalone/packages/console/.next/static/chunks/{2vnmap15_4ik5.js → 08fntqgo3353u.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{0rr9rjc_bc3gf.js → 0nztfy7ba1ez4.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1s_391feiypzt.js → 0xklzua--y-te.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1p87dal8vyega.js → 1cys0q4nekmo8.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{0jvnv44qtww0y.js → 1vusd9lpo6rtl.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1ek70m0owmcgq.js → 274y91hwkjxt3.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{28eaginqf0r6l.js → 2fawp7c5ud5cq.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{14gq9h4bre4zl.js → 2fcx48n2u74f8.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2mlx4u2m3gj4n.js → 2fqbkmkhj5cfr.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2vjnc-m734xfm.js → 2fsy26x-aeybj.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1kzen4nzgfhzx.js → 2nxpt1ggh42xf.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/2sdb6_s313-_0.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{0r2pzmadty78a.js → 3a-i8z6d_l5j9.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2iwxdddbd25in.js → 3hfbb6--wbkq6.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{11tuykopff7e_.js → 3lwa1pmekf5yn.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/3otcabh_gijq-.js +1 -0
- package/.next/standalone/packages/console/.next/static/chunks/{3sgvr4qucbnoq.js → 3pq58846qyog_.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{3fz2o2p_07f9u.js → 3t0b867w1fd16.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{2w9atwkwe6d4r.js → 3yteehwrrznjm.js} +1 -1
- package/.next/standalone/packages/console/.next/static/chunks/{1cg31hv7ug_rw.js → 43wruh-j46sq_.js} +1 -1
- package/.next/standalone/packages/console/package.json +3 -3
- package/package.json +3 -3
- package/.next/standalone/packages/console/.next/static/chunks/0bb19hfyc42kn.js +0 -1
- package/.next/standalone/packages/console/.next/static/chunks/3dmesrmg4eee9.js +0 -1
- /package/.next/standalone/packages/console/.next/static/{JdC0gQewmBAtNW6TcHLnI → -CS98dpuGlTUZ_q58bGCs}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{JdC0gQewmBAtNW6TcHLnI → -CS98dpuGlTUZ_q58bGCs}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/packages/console/.next/static/{JdC0gQewmBAtNW6TcHLnI → -CS98dpuGlTUZ_q58bGCs}/_ssgManifest.js +0 -0
package/.next/standalone/packages/console/.next/static/chunks/{11tuykopff7e_.js → 3lwa1pmekf5yn.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60891,e=>{"use strict";e.i(47167);var t=e.i(71645),n=e.i(8445),r=e.i(46376),i=e.i(8868),l=e.i(67865),o=e.i(46265),u=e.i(28744),s=e.i(29315),a=e.i(75606),c=e.i(56434),f=e.i(46420),g=e.i(21082),d=e.i(49055),m=e.i(84446),h=e.i(96296),p=e.i(3596),y=e.i(57940);function v(e){return u.platform.engine.webkit&&0===e.movementX&&0===e.movementY}function x(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function w(e,t){return x(t,e===d.ARROW_UP||e===d.ARROW_DOWN,e===d.ARROW_LEFT||e===d.ARROW_RIGHT)}function b(e,t,n){return x(t,e===d.ARROW_DOWN,n?e===d.ARROW_LEFT:e===d.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,u){let{listRef:R,activeIndex:E,onNavigate:A=()=>{},enabled:S=!0,selectedIndex:L=null,allowEscape:C=!1,loopFocus:T=!1,nested:O=!1,rtl:M=!1,virtual:P=!1,focusItemOnOpen:k="auto",focusItemOnHover:W=!0,openOnArrowKeyDown:D=!0,disabledIndices:I,orientation:F="vertical",parentOrientation:N,id:H,resetOnPointerLeave:V=!0,externalTree:B,grid:_}=u,$=null!=_,z="rootStore"in e?e.rootStore:e,j=z.useState("open"),K=z.useState("floatingElement"),Y=z.useState("domReferenceElement"),q=z.context.dataRef,U=(0,h.getFloatingFocusElement)(K),G=(0,h.isTypeableCombobox)(Y),X=(0,o.useValueAsRef)(U),J=(0,f.useFloatingParentNodeId)(),Q=(0,f.useFloatingTree)(B),Z=t.useRef(k),ee=t.useRef(L??-1),et=t.useRef(null),en=t.useRef(!0),er=(0,l.useStableCallback)(e=>{A(-1===ee.current?null:ee.current,e)}),ei=t.useRef(!!K),el=t.useRef(j),eo=t.useRef(!1),eu=t.useRef(!1),es=t.useRef(null),ea=(0,o.useValueAsRef)(I),ec=(0,o.useValueAsRef)(j),ef=(0,o.useValueAsRef)(L),eg=(0,o.useValueAsRef)(V),ed=(0,n.useAnimationFrame)(),em=(0,n.useAnimationFrame)(),eh=(0,l.useStableCallback)(()=>{function e(e){P?Q?.events.emit("virtualfocus",e):es.current=(0,p.enqueueFocus)(e,{sync:eo.current,preventScroll:!0})}let t=R.current[ee.current],n=eu.current;t&&e(t),(eo.current?e=>e():e=>ed.request(e))(()=>{let r=R.current[ee.current]||t;!r||(t||e(r),eb&&(n||!en.current)&&r.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,r.useIsoLayoutEffect)(()=>{q.current.orientation=F},[q,F]),(0,r.useIsoLayoutEffect)(()=>{S&&(j&&K?(ee.current=L??-1,Z.current&&null!=L&&(eu.current=!0,er())):ei.current&&(ee.current=-1,er()))},[S,j,K,L,er]),(0,r.useIsoLayoutEffect)(()=>{if(S){if(!j){eo.current=!1;return}if(K)if(null==E){if(eo.current=!1,null!=ef.current)return;if(ei.current&&(ee.current=-1,eh()),(!el.current||!ei.current)&&Z.current&&(null!=et.current||!0===Z.current&&null==et.current)){let e=0,t=()=>{null==R.current[0]?(e<2&&(e?e=>em.request(e):queueMicrotask)(t),e+=1):(ee.current=null==et.current||b(et.current,F,M)||O?(0,g.getMinListIndex)(R):(0,g.getMaxListIndex)(R),et.current=null,er())};t()}}else(0,g.isIndexOutOfListBounds)(R.current,E)||(ee.current=E,eh(),eu.current=!1)}},[S,j,K,E,ef,O,R,F,M,er,eh,em]),(0,r.useIsoLayoutEffect)(()=>{if(!S||K||!Q||P||!ei.current)return;let e=Q.nodesRef.current,t=e.find(e=>e.id===J)?.context?.elements.floating,n=(0,m.activeElement)((0,i.ownerDocument)(Y??t??null)),r=e.some(e=>e.context&&(0,m.contains)(e.context.elements.floating,n));t&&!r&&en.current&&t.focus({preventScroll:!0})},[S,K,Y,Q,J,P]),(0,r.useIsoLayoutEffect)(()=>{el.current=j,ei.current=!!K}),(0,r.useIsoLayoutEffect)(()=>{j||(et.current=null,Z.current=k)},[j,k]);let ep=null!=E,ey=(0,l.useStableCallback)(e=>{if(!ec.current)return;let t=R.current.indexOf(e.currentTarget);-1!==t&&(ee.current!==t||E!==t)&&(ee.current=t,er(e))}),ev=(0,l.useStableCallback)(()=>N??Q?.nodesRef.current.find(e=>e.id===J)?.context?.dataRef?.current.orientation),ex=(0,l.useStableCallback)(()=>(0,g.getMinListIndex)(R,ea.current)),ew=(0,l.useStableCallback)(e=>{var t;let n,r;if(en.current=!1,eo.current=!0,229===e.which||!ec.current&&e.currentTarget===X.current)return;if(O&&(t=e.key,n=M?t===d.ARROW_RIGHT:t===d.ARROW_LEFT,r=t===d.ARROW_UP,"both"===F||"horizontal"===F&&$?"Escape"===t:x(F,n,r))){w(e.key,ev())||(0,y.stopEvent)(e),z.setOpen(!1,(0,a.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent)),(0,s.isHTMLElement)(Y)&&(P?Q?.events.emit("virtualfocus",Y):Y.focus());return}let i=ee.current,l=(0,g.getMinListIndex)(R,I),o=(0,g.getMaxListIndex)(R,I);if(G||("Home"===e.key&&((0,y.stopEvent)(e),ee.current=l,er(e)),"End"===e.key&&((0,y.stopEvent)(e),ee.current=o,er(e))),null!=_){let t=_(e,ee.current,R,F,T,M,I,l,o);if(null!=t&&(ee.current=t,er(e)),"both"===F)return}if(w(e.key,F)){if((0,y.stopEvent)(e),j&&!P&&(0,m.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){ee.current=b(e.key,F,M)?l:o,er(e);return}b(e.key,F,M)?T?i>=o?C&&i!==R.current.length?ee.current=-1:(eo.current=!1,ee.current=l):ee.current=(0,g.findNonDisabledListIndex)(R.current,{startingIndex:i,disabledIndices:I}):ee.current=Math.min(o,(0,g.findNonDisabledListIndex)(R.current,{startingIndex:i,disabledIndices:I})):T?i<=l?C&&-1!==i?ee.current=R.current.length:(eo.current=!1,ee.current=o):ee.current=(0,g.findNonDisabledListIndex)(R.current,{startingIndex:i,decrement:!0,disabledIndices:I}):ee.current=Math.max(l,(0,g.findNonDisabledListIndex)(R.current,{startingIndex:i,decrement:!0,disabledIndices:I})),(0,g.isIndexOutOfListBounds)(R.current,ee.current)&&(ee.current=-1),er(e)}}),eb=t.useMemo(()=>({onFocus(e){eo.current=!0,ey(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!v(e)&&(eo.current=!0,eu.current=!1,W&&ey(e))},onPointerLeave(e){if(!ec.current||!en.current||"touch"===e.pointerType)return;eo.current=!0;let t=e.relatedTarget;if(!(!W||R.current.includes(t))&&eg.current&&(es.current?.(),es.current=null,ee.current=-1,er(e),!P)){let e=X.current,t=(0,m.activeElement)((0,i.ownerDocument)(e));e&&(0,m.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[ey,ec,X,W,R,er,eg,P]),eR=t.useMemo(()=>P&&j&&ep&&{"aria-activedescendant":`${H}-${E}`},[P,j,ep,H,E]),eE=t.useMemo(()=>({...!G?eR:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&j&&!P){let t=(0,m.getTarget)(e.nativeEvent);if(t&&!(0,m.contains)(X.current,t))return;(0,y.stopEvent)(e),z.setOpen(!1,(0,a.createChangeEventDetails)(c.REASONS.focusOut,e.nativeEvent)),(0,s.isHTMLElement)(Y)&&Y.focus();return}ew(e)},onPointerMove(e){v(e)||(en.current=!0)}}),[eR,ew,X,G,z,j,P,Y]),eA=t.useMemo(()=>{function e(e){z.setOpen(!0,(0,a.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent,e.currentTarget))}function t(e){"auto"===k&&(0,y.isVirtualClick)(e.nativeEvent)&&(Z.current=!P)}function n(e){Z.current=k,"auto"===k&&(0,y.isVirtualPointerEvent)(e.nativeEvent)&&(Z.current=!0)}return{onKeyDown(t){var n,r;let i=z.select("open");en.current=!1;let l=t.key.startsWith("Arrow"),o=(n=t.key,r=ev(),x(r,M?n===d.ARROW_LEFT:n===d.ARROW_RIGHT,n===d.ARROW_DOWN)),u=w(t.key,F),s=(O?o:u)||"Enter"===t.key||""===t.key.trim();if(P&&i)return ew(t);if(i||D||!l){if(s){let e=w(t.key,ev());et.current=O&&e?null:t.key}if(O){o&&((0,y.stopEvent)(t),i?(ee.current=ex(),er(t)):e(t));return}u&&(null!=ef.current&&(ee.current=ef.current),(0,y.stopEvent)(t),!i&&D?e(t):ew(t),i&&er(t))}},onFocus(e){z.select("open")&&!P&&(ee.current=-1,er(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[ew,k,ex,O,er,z,D,F,ev,M,ef,P]),eS=t.useMemo(()=>({...eR,...eA}),[eR,eA]);return t.useMemo(()=>S?{reference:eS,floating:eE,item:eb,trigger:eA}:{},[S,eS,eE,eA,eb])}])},5049,e=>{"use strict";var t=e.i(71645),n=e.i(46376),r=e.i(67865),i=e.i(39957),l=e.i(56789),o=e.i(21082),u=e.i(84446),s=e.i(57940);e.s(["useTypeahead",0,function(e,a){let{listRef:c,elementsRef:f,activeIndex:g,onMatch:d,disabledIndices:m,onTyping:h,enabled:p=!0,resetMs:y=750,selectedIndex:v=null}=a,x="rootStore"in e?e.rootStore:e,w=x.useState("open"),b=(0,i.useTimeout)(),R=t.useRef(""),E=t.useRef(v??g??-1),A=t.useRef(null),S=(0,r.useStableCallback)(e=>{function t(e){let t=f?.current[e];return!(t&&!(0,o.isElementVisible)(t)||t?.matches(":disabled"))&&(null==m||!(0,o.isListIndexDisabled)(l.EMPTY_ARRAY,e,m))}function n(e,r,i=0){if(0===e.length)return -1;let l=(i%e.length+e.length)%e.length,o=r.toLowerCase();for(let n=0;n<e.length;n+=1){let r=(l+n)%e.length,i=e[r];if(i?.toLowerCase().startsWith(o)&&t(r))return r}return -1}let r=c.current;if(R.current.length>0&&" "===e.key&&((0,s.stopEvent)(e),h?.(!0)),R.current.length>0&&" "!==R.current[0]&&-1===n(r,R.current)&&" "!==e.key&&h?.(!1),null==r||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;w&&" "!==e.key&&((0,s.stopEvent)(e),h?.(!0));let i=""===R.current;i&&(E.current=v??g??-1),r.every((e,n)=>!(e&&t(n))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&R.current===e.key&&(R.current="",E.current=A.current),R.current+=e.key,b.start(y,()=>{R.current="",E.current=A.current,h?.(!1)});let u=i?v??g??-1:E.current,a=n(r,R.current,(u??0)+1);-1!==a?(d?.(a),A.current=a):" "!==e.key&&(R.current="",h?.(!1))}),L=(0,r.useStableCallback)(e=>{let t=e.relatedTarget,n=x.select("domReferenceElement"),r=x.select("floatingElement");(0,u.contains)(n,t)||(0,u.contains)(r,t)||(b.clear(),R.current="",E.current=A.current,h?.(!1))});(0,n.useIsoLayoutEffect)(()=>{(w||null===v)&&(b.clear(),A.current=null,""!==R.current&&(R.current=""))},[w,v,b]);let C=t.useMemo(()=>({onKeyDown:S,onBlur:L}),[S,L]);return t.useMemo(()=>p?{reference:C,floating:C}:{},[p,C])}])},53984,e=>{"use strict";var t=e.i(56789),n=e.i(38396);e.s(["getDisabledMountTransitionStyles",0,function(e){return"starting"===e?n.DISABLED_TRANSITIONS_STYLE:t.EMPTY_OBJECT}])},23706,53760,9091,67387,e=>{"use strict";var t=e.i(71645),n=e.i(43084),r=e.i(8868),i=e.i(33848),l=e.i(46376),o=e.i(46265),u=e.i(67865);function s(e,t,r){let i,{reference:l,floating:o}=e,u=(0,n.getSideAxis)(t),s=(0,n.getAlignmentAxis)(t),a=(0,n.getAxisLength)(s),c=(0,n.getSide)(t),f=l.x+l.width/2-o.width/2,g=l.y+l.height/2-o.height/2,d=l[a]/2-o[a]/2;switch(c){case"top":i={x:f,y:l.y-o.height};break;case"bottom":i={x:f,y:l.y+l.height};break;case"right":i={x:l.x+l.width,y:g};break;case"left":i={x:l.x-o.width,y:g};break;default:i={x:l.x,y:l.y}}let m=(0,n.getAlignment)(t);return m&&(i[s]+=d*("end"===m?1:-1)*(r&&"y"===u?-1:1)),i}async function a(e,t){var r;void 0===t&&(t={});let{x:i,y:l,platform:o,rects:u,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:d=!1,padding:m=0}=(0,n.evaluate)(t,e),h=(0,n.getPaddingObject)(m),p=s[d?"floating"===g?"reference":"floating":g],y=(0,n.rectToClientRect)(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(p)))||r?p:p.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:a})),v="floating"===g?{x:i,y:l,width:u.floating.width,height:u.floating.height}:u.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},b=(0,n.rectToClientRect)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:x,strategy:a}):v);return{top:(y.top-b.top+h.top)/w.y,bottom:(b.bottom-y.bottom+h.bottom)/w.y,left:(y.left-b.left+h.left)/w.x,right:(b.right-y.right+h.right)/w.x}}let c=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:o}=n,u=o.detectOverflow?o:{...o,detectOverflow:a},c=await (null==o.isRTL?void 0:o.isRTL(t)),f=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:g,y:d}=s(f,r,c),m=r,h=0,p={};for(let n=0;n<l.length;n++){let a=l[n];if(!a)continue;let{name:y,fn:v}=a,{x:x,y:w,data:b,reset:R}=await v({x:g,y:d,initialPlacement:r,placement:m,strategy:i,middlewareData:p,rects:f,platform:u,elements:{reference:e,floating:t}});g=null!=x?x:g,d=null!=w?w:d,p[y]={...p[y],...b},R&&h<50&&(h++,"object"==typeof R&&(R.placement&&(m=R.placement),R.rects&&(f=!0===R.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:g,y:d}=s(f,m,c)),n=-1)}return{x:g,y:d,placement:m,strategy:i,middlewareData:p}};function f(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function g(e){return n.sides.some(t=>e[t]>=0)}function d(e){let t=(0,n.min)(...e.map(e=>e.left)),r=(0,n.min)(...e.map(e=>e.top));return{x:t,y:r,width:(0,n.max)(...e.map(e=>e.right))-t,height:(0,n.max)(...e.map(e=>e.bottom))-r}}let m=new Set(["left","top"]);async function h(e,t){let{placement:r,platform:i,elements:l}=e,o=await (null==i.isRTL?void 0:i.isRTL(l.floating)),u=(0,n.getSide)(r),s=(0,n.getAlignment)(r),a="y"===(0,n.getSideAxis)(r),c=m.has(u)?-1:1,f=o&&a?-1:1,g=(0,n.evaluate)(t,e),{mainAxis:d,crossAxis:h,alignmentAxis:p}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),a?{x:h*f,y:d*c}:{x:d*c,y:h*f}}var p=e.i(29315);function y(e){let t=(0,p.getComputedStyle)(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,l=(0,p.isHTMLElement)(e),o=l?e.offsetWidth:r,u=l?e.offsetHeight:i,s=(0,n.round)(r)!==o||(0,n.round)(i)!==u;return s&&(r=o,i=u),{width:r,height:i,$:s}}function v(e){return(0,p.isElement)(e)?e:e.contextElement}function x(e){let t=v(e);if(!(0,p.isHTMLElement)(t))return(0,n.createCoords)(1);let r=t.getBoundingClientRect(),{width:i,height:l,$:o}=y(t),u=(o?(0,n.round)(r.width):r.width)/i,s=(o?(0,n.round)(r.height):r.height)/l;return u&&Number.isFinite(u)||(u=1),s&&Number.isFinite(s)||(s=1),{x:u,y:s}}let w=(0,n.createCoords)(0);function b(e){let t=(0,p.getWindow)(e);return(0,p.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:w}function R(e,t,r,i){var l;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),u=v(e),s=(0,n.createCoords)(1);t&&(i?(0,p.isElement)(i)&&(s=x(i)):s=x(e));let a=(void 0===(l=r)&&(l=!1),i&&l&&i===(0,p.getWindow)(u))?b(u):(0,n.createCoords)(0),c=(o.left+a.x)/s.x,f=(o.top+a.y)/s.y,g=o.width/s.x,d=o.height/s.y;if(u&&i){let e=(0,p.getWindow)(u),t=(0,p.isElement)(i)?(0,p.getWindow)(i):i,n=e,r=(0,p.getFrameElement)(n);for(;r&&t!==n;){let e=x(r),t=r.getBoundingClientRect(),i=(0,p.getComputedStyle)(r),l=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,f*=e.y,g*=e.x,d*=e.y,c+=l,f+=o,n=(0,p.getWindow)(r),r=(0,p.getFrameElement)(n)}}return(0,n.rectToClientRect)({width:g,height:d,x:c,y:f})}function E(e,t){let n=(0,p.getNodeScroll)(e).scrollLeft;return t?t.left+n:R((0,p.getDocumentElement)(e)).left+n}function A(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-E(e,n),y:n.top+t.scrollTop}}function S(e,t,r){var i;let l;if("viewport"===t||"layoutViewport"===t)l=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=(0,p.getWindow)(e),l=(0,p.getDocumentElement)(e),o=i.visualViewport,u=l.clientWidth,s=l.clientHeight,a=0,c=0;if(o){let e=!(0,p.isWebKit)()||"fixed"===t;r?e||(a=-o.offsetLeft,c=-o.offsetTop):(u=o.width,s=o.height,e&&(a=o.offsetLeft,c=o.offsetTop))}if(0>=E(l)){let e=l.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(l.clientWidth-t.clientWidth-r),o="stable both-edges"===getComputedStyle(l).scrollbarGutter?i/2:i;o<=25&&(u-=o)}return{width:u,height:s,x:a,y:c}}(e,r,t);else if("document"===t){let t,r,o,u,s,a;i=(0,p.getDocumentElement)(e),t=(0,p.getNodeScroll)(i),r=i.ownerDocument.body,o=(0,n.max)(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),u=(0,n.max)(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+E(i),a=-t.scrollTop,"rtl"===(0,p.getComputedStyle)(r).direction&&(s+=(0,n.max)(i.clientWidth,r.clientWidth)-o),l={width:o,height:u,x:s,y:a}}else if((0,p.isElement)(t)){let e,n,i,o,u,s;n=(e=R(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,o=x(t),u=t.clientWidth*o.x,s=t.clientHeight*o.y,l={width:u,height:s,x:i*o.x,y:n*o.y}}else{let n=b(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,n.rectToClientRect)(l)}function L(e){return"static"===(0,p.getComputedStyle)(e).position}function C(e,t){if(!(0,p.isHTMLElement)(e)||"fixed"===(0,p.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,p.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function T(e,t){let n=(0,p.getWindow)(e);if((0,p.isTopLayer)(e))return n;if(!(0,p.isHTMLElement)(e)){let t=(0,p.getParentNode)(e);for(;t&&!(0,p.isLastTraversableNode)(t);){if((0,p.isElement)(t)&&!L(t))return t;t=(0,p.getParentNode)(t)}return n}let r=C(e,t);for(;r&&(0,p.isTableElement)(r)&&L(r);)r=C(r,t);return r&&(0,p.isLastTraversableNode)(r)&&L(r)&&!(0,p.isContainingBlock)(r)?n:r||(0,p.getContainingBlock)(e)||n}let O=async function(e){let t=this.getOffsetParent||T,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=(0,p.isHTMLElement)(t),l=(0,p.getDocumentElement)(t),o="fixed"===r,u=R(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=(0,n.createCoords)(0);if((i||!o)&&(("body"!==(0,p.getNodeName)(t)||(0,p.isOverflowElement)(l))&&(s=(0,p.getNodeScroll)(t)),i)){let e=R(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!i&&l&&(a.x=E(l));let c=!l||i||o?(0,n.createCoords)(0):A(l,s);return{x:u.left+s.scrollLeft-a.x-c.x,y:u.top+s.scrollTop-a.y-c.y,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},M={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:l}=e,o="fixed"===l,u=(0,p.getDocumentElement)(i),s=!!t&&(0,p.isTopLayer)(t.floating);if(i===u||s&&o)return r;let a={scrollLeft:0,scrollTop:0},c=(0,n.createCoords)(1),f=(0,n.createCoords)(0),g=(0,p.isHTMLElement)(i);if((g||!o)&&(("body"!==(0,p.getNodeName)(i)||(0,p.isOverflowElement)(u))&&(a=(0,p.getNodeScroll)(i)),g)){let e=R(i);c=x(i),f.x=e.x+i.clientLeft,f.y=e.y+i.clientTop}let d=!u||g||o?(0,n.createCoords)(0):A(u,a);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-a.scrollLeft*c.x+f.x+d.x,y:r.y*c.y-a.scrollTop*c.y+f.y+d.y}},getDocumentElement:p.getDocumentElement,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:l}=e,o=[..."clippingAncestors"===r?(0,p.isTopLayer)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,p.getOverflowAncestors)(e,[],!1).filter(e=>(0,p.isElement)(e)&&"body"!==(0,p.getNodeName)(e)),i=null,l="fixed"===(0,p.getComputedStyle)(e).position,o=l?(0,p.getParentNode)(e):e;for(;(0,p.isElement)(o)&&!(0,p.isLastTraversableNode)(o);){let e=(0,p.getComputedStyle)(o),t=(0,p.isContainingBlock)(o),n=i?i.position:l?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==o),o=(0,p.getParentNode)(o)}return t.set(e,r),r}(t,this._c):[].concat(r),i],u=S(t,o[0],l),s=u.top,a=u.right,c=u.bottom,f=u.left;for(let e=1;e<o.length;e++){let r=S(t,o[e],l);s=(0,n.max)(r.top,s),a=(0,n.min)(r.right,a),c=(0,n.min)(r.bottom,c),f=(0,n.max)(r.left,f)}return{width:a-f,height:c-s,x:f,y:s}},getOffsetParent:T,getElementRects:O,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=y(e);return{width:t,height:n}},getScale:x,isElement:p.isElement,isRTL:function(e){return"rtl"===(0,p.getComputedStyle)(e).direction}};function P(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function k(e,t,r,i){let l;void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,f=v(e),g=o||u?[...f?(0,p.getOverflowAncestors)(f):[],...t?(0,p.getOverflowAncestors)(t):[]]:[];g.forEach(e=>{o&&e.addEventListener("scroll",r),u&&e.addEventListener("resize",r)});let d=f&&a?function(e,t,r){let i,l=null,o=(0,p.getDocumentElement)(e);function u(){var e;clearTimeout(i),null==(e=l)||e.disconnect(),l=null}function s(r,a){void 0===r&&(r=!1),void 0===a&&(a=1),u();let c=e.getBoundingClientRect(),{left:f,top:g,width:d,height:m}=c;if(r||t(),!d||!m)return;let h={rootMargin:-(0,n.floor)(g)+"px "+-(0,n.floor)(o.clientWidth-(f+d))+"px "+-(0,n.floor)(o.clientHeight-(g+m))+"px "+-(0,n.floor)(f)+"px",threshold:(0,n.max)(0,(0,n.min)(1,a))||1},p=!0;function y(t){let n=t[0].intersectionRatio;if(!P(c,e.getBoundingClientRect()))return s();if(n!==a){if(!p)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}p=!1}try{l=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){l=new IntersectionObserver(y,h)}l.observe(e)}let a=(0,p.getWindow)(e),c=()=>s(r);return a.addEventListener("resize",c),s(!0),()=>{a.removeEventListener("resize",c),u()}}(f,r,u):null,m=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),f&&!c&&h.observe(f),t&&h.observe(t));let y=c?R(e):null;return c&&function t(){let n=R(e);y&&!P(y,n)&&r(),y=n,l=requestAnimationFrame(t)}(),r(),()=>{var e;g.forEach(e=>{o&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(l)}}let W=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:l,placement:o,middlewareData:u}=t,s=await h(t,e);return o===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:l+s.y,data:{...s,placement:o}}}}},D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:l,platform:o}=t,{mainAxis:u=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,n.evaluate)(e,t),f={x:r,y:i},g=await o.detectOverflow(t,c),d=(0,n.getSideAxis)(l),m=(0,n.getOppositeAxis)(d),h=f[m],p=f[d],y=(e,t)=>(0,n.clamp)(t+g["y"===e?"top":"left"],t,t-g["y"===e?"bottom":"right"]);u&&(h=y(m,h)),s&&(p=y(d,p));let v=a.fn({...t,[m]:h,[d]:p});return{...v,data:{x:v.x-r,y:v.y-i,enabled:{[m]:u,[d]:s}}}}}},I=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i,l,o,u;let{placement:s,middlewareData:a,rects:c,initialPlacement:f,platform:g,elements:d}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...w}=(0,n.evaluate)(e,t);if(null!=(r=a.arrow)&&r.alignmentOffset)return{};let b=(0,n.getSide)(s),R=(0,n.getSideAxis)(f),E=(0,n.getSide)(f)===f,A=await (null==g.isRTL?void 0:g.isRTL(d.floating)),S=p||(E||!x?[(0,n.getOppositePlacement)(f)]:(0,n.getExpandedPlacements)(f)),L="none"!==v;!p&&L&&S.push(...(0,n.getOppositeAxisPlacements)(f,x,v,A));let C=[f,...S],T=await g.detectOverflow(t,w),O=[],M=(null==(i=a.flip)?void 0:i.overflows)||[];if(m&&O.push(T[b]),h){let e=(0,n.getAlignmentSides)(s,c,A);O.push(T[e[0]],T[e[1]])}if(M=[...M,{placement:s,overflows:O}],!O.every(e=>e<=0)){let e=((null==(l=a.flip)?void 0:l.index)||0)+1,t=C[e];if(t&&("alignment"!==h||R===(0,n.getSideAxis)(t)||M.every(e=>(0,n.getSideAxis)(e.placement)!==R||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let r=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(y){case"bestFit":{let e=null==(u=M.filter(e=>{if(L){let t=(0,n.getSideAxis)(e.placement);return t===R||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:u[0];e&&(r=e);break}case"initialPlacement":r=f}if(s!==r)return{reset:{placement:r}}}return{}}}},F=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let r,i,{placement:l,rects:o,platform:u,elements:s}=t,{apply:a=()=>{},...c}=(0,n.evaluate)(e,t),f=await u.detectOverflow(t,c),g=(0,n.getSide)(l),d=(0,n.getAlignment)(l),m="y"===(0,n.getSideAxis)(l),{width:h,height:p}=o.floating;"top"===g||"bottom"===g?(r=g,i=d===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(i=g,r="end"===d?"top":"bottom");let y=p-f.top-f.bottom,v=h-f.left-f.right,x=(0,n.min)(p-f[r],y),w=(0,n.min)(h-f[i],v),b=t.middlewareData.shift,R=!b,E=x,A=w;null!=b&&b.enabled.x&&(A=v),null!=b&&b.enabled.y&&(E=y),R&&!d&&(m?A=h-2*(0,n.max)(f.left,f.right):E=p-2*(0,n.max)(f.top,f.bottom)),await a({...t,availableWidth:A,availableHeight:E});let S=await u.getDimensions(s.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}},N=function(e){return void 0===e&&(e={}),{options:e,fn(t){var r,i,l,o;let{x:u,y:s,placement:a,rects:c,middlewareData:f}=t,{offset:g=0,mainAxis:d=!0,crossAxis:h=!0}=(0,n.evaluate)(e,t),p={x:u,y:s},y=(0,n.getSideAxis)(a),v=(0,n.getOppositeAxis)(y),x=p[v],w=p[y],b=(0,n.evaluate)(g,t),R="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(r=b.mainAxis)?r:0,crossAxis:null!=(i=b.crossAxis)?i:0};if(d){let e="y"===v?"height":"width",t=c.reference[v]-c.floating[e]+R.mainAxis,n=c.reference[v]+c.reference[e]-R.mainAxis;x<t?x=t:x>n&&(x=n)}if(h){let e="y"===v?"width":"height",t=m.has((0,n.getSide)(a)),r=c.reference[y]-c.floating[e]+(t&&(null==(l=f.offset)?void 0:l[y])||0)+(t?0:R.crossAxis),i=c.reference[y]+c.reference[e]+(t?0:(null==(o=f.offset)?void 0:o[y])||0)-(t?R.crossAxis:0);w<r?w=r:w>i&&(w=i)}return{[v]:x,[y]:w}}}},H=(e,t,n)=>{let r=new Map,i=null!=n?n:{},l={...M,...i.platform,_c:r};return c(e,t,{...i,platform:l})};e.s(["arrow",0,e=>({name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:l,rects:o,platform:u,elements:s,middlewareData:a}=t,{element:c,padding:f=0}=(0,n.evaluate)(e,t)||{};if(null==c)return{};let g=(0,n.getPaddingObject)(f),d={x:r,y:i},m=(0,n.getAlignmentAxis)(l),h=(0,n.getAxisLength)(m),p=await u.getDimensions(c),y="y"===m,v=y?"clientHeight":"clientWidth",x=o.reference[h]+o.reference[m]-d[m]-o.floating[h],w=d[m]-o.reference[m],b=await (null==u.getOffsetParent?void 0:u.getOffsetParent(c)),R=b?b[v]:0;R&&await (null==u.isElement?void 0:u.isElement(b))||(R=s.floating[v]||o.floating[h]);let E=R/2-p[h]/2-1,A=(0,n.min)(g[y?"top":"left"],E),S=(0,n.min)(g[y?"bottom":"right"],E),L=R-p[h]-S,C=R/2-p[h]/2+(x/2-w/2),T=(0,n.clamp)(A,C,L),O=!a.arrow&&null!=(0,n.getAlignment)(l)&&C!==T&&o.reference[h]/2-(C<A?A:S)-p[h]/2<0,M=O?C<A?C-A:C-L:0;return{[m]:d[m]+M,data:{[m]:T,centerOffset:C-T-M,...O&&{alignmentOffset:M}},reset:O}}}),"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,l,o;let{rects:u,middlewareData:s,placement:a,platform:c,elements:f}=t,{crossAxis:g=!1,alignment:d,allowedPlacements:m=n.placements,autoAlignment:h=!0,...p}=(0,n.evaluate)(e,t),y=void 0!==d||m===n.placements?((o=d||null)?[...m.filter(e=>(0,n.getAlignment)(e)===o),...m.filter(e=>(0,n.getAlignment)(e)!==o)]:m.filter(e=>(0,n.getSide)(e)===e)).filter(e=>!o||(0,n.getAlignment)(e)===o||!!h&&(0,n.getOppositeAlignmentPlacement)(e)!==e):m,v=(null==(r=s.autoPlacement)?void 0:r.index)||0,x=y[v];if(null==x)return{};if(a!==x)return{reset:{placement:y[0]}};let w=await c.detectOverflow(t,p),b=(0,n.getAlignmentSides)(x,u,await (null==c.isRTL?void 0:c.isRTL(f.floating))),R=[w[(0,n.getSide)(x)],w[b[0]],w[b[1]]],E=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:x,overflows:R}],A=y[v+1];if(A)return{data:{index:v+1,overflows:E},reset:{placement:A}};let S=E.map(e=>{let t=(0,n.getAlignment)(e.placement);return[e.placement,t&&g?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),L=(null==(l=S.filter(e=>e[2].slice(0,(0,n.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:l[0])||S[0][0];return L!==a?{data:{index:v+1,overflows:E},reset:{placement:L}}:{}}}},"autoUpdate",0,k,"computePosition",0,H,"flip",0,I,"hide",0,function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:i}=t,{strategy:l="referenceHidden",...o}=(0,n.evaluate)(e,t);switch(l){case"referenceHidden":{let e=f(await i.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:g(e)}}}case"escaped":{let e=f(await i.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:g(e)}}}default:return{}}}}},"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:i,rects:l,platform:o,strategy:u}=t,{padding:s=2,x:a,y:c}=(0,n.evaluate)(e,t),f=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(i.reference))||[]);if(!f.length)return{};let g=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),r=[],i=null;for(let e=0;e<t.length;e++){let n=t[e];!i||n.y-i.y>i.height/2?r.push([n]):r[r.length-1].push(n),i=n}return r.map(e=>(0,n.rectToClientRect)(d(e)))}(f),m=(0,n.rectToClientRect)(d(f)),h=(0,n.getPaddingObject)(s),p=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&(g[0].left>g[1].right||g[1].left>g[0].right)&&null!=a&&null!=c)return g.find(e=>a>e.left-h.left&&a<e.right+h.right&&c>e.top-h.top&&c<e.bottom+h.bottom)||m;if(g.length>=2){if("y"===(0,n.getSideAxis)(r)){let e=g[0],t=g[g.length-1],i="top"===(0,n.getSide)(r),l=e.top,o=t.bottom,u=i?e.left:t.left,s=i?e.right:t.right;return(0,n.rectToClientRect)({x:u,y:l,width:s-u,height:o-l})}let e="left"===(0,n.getSide)(r),t=(0,n.max)(...g.map(e=>e.right)),i=(0,n.min)(...g.map(e=>e.left)),l=g.filter(n=>e?n.left===i:n.right===t),o=l[0].top,u=l[l.length-1].bottom;return(0,n.rectToClientRect)({x:i,y:o,width:t-i,height:u-o})}return m}},floating:i.floating,strategy:u});return l.reference.x!==p.reference.x||l.reference.y!==p.reference.y||l.reference.width!==p.reference.width||l.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},"limitShift",0,N,"offset",0,W,"platform",0,M,"shift",0,D,"size",0,F],53760);var V=e.i(74080),B="u">typeof document?t.useLayoutEffect:function(){};function _(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!_(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!_(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function $(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function z(e,t){let n=$(e);return Math.round(t*n)/n}function j(e){let n=t.useRef(e);return B(()=>{n.current=e}),n}var K=e.i(46420);function Y(e){return function(e,n){let{nodeId:r,externalTree:i}=e,o=n.useState("referenceElement"),u=n.useState("floatingElement"),s=n.useState("domReferenceElement"),a=n.useState("open"),c=n.useState("floatingId"),[f,g]=t.useState(null),[d,m]=t.useState(void 0),[h,y]=t.useState(void 0),v=t.useRef(null),x=(0,K.useFloatingTree)(i),w=t.useMemo(()=>({reference:o,floating:u,domReference:s}),[o,u,s]),b=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:o,floating:u}={},transform:s=!0,whileElementsMounted:a,open:c}=e,[f,g]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[d,m]=t.useState(i);_(d,i)||m(i);let[h,p]=t.useState(null),[y,v]=t.useState(null),x=t.useCallback(e=>{e!==E.current&&(E.current=e,p(e))},[]),w=t.useCallback(e=>{e!==A.current&&(A.current=e,v(e))},[]),b=o||h,R=u||y,E=t.useRef(null),A=t.useRef(null),S=t.useRef(f),L=null!=a,C=j(a),T=j(l),O=j(c),M=t.useCallback(()=>{if(!E.current||!A.current)return;let e={placement:n,strategy:r,middleware:d};T.current&&(e.platform=T.current),H(E.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};P.current&&!_(S.current,t)&&(S.current=t,V.flushSync(()=>{g(t)}))})},[d,n,r,T,O]);B(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,g(e=>({...e,isPositioned:!1})))},[c]);let P=t.useRef(!1);B(()=>(P.current=!0,()=>{P.current=!1}),[]),B(()=>{if(b&&(E.current=b),R&&(A.current=R),b&&R){if(C.current)return C.current(b,R,M);M()}},[b,R,M,C,L]);let k=t.useMemo(()=>({reference:E,floating:A,setReference:x,setFloating:w}),[x,w]),W=t.useMemo(()=>({reference:b,floating:R}),[b,R]),D=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!W.floating)return e;let t=z(W.floating,f.x),n=z(W.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...$(W.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,W.floating,f.x,f.y]);return t.useMemo(()=>({...f,update:M,refs:k,elements:W,floatingStyles:D}),[f,M,k,W,D])}({...e,elements:{...w,...f&&{reference:f}}}),R=(0,p.isElement)(d)?d:null,E=void 0===h?n.state.floatingElement:h;n.useSyncedValue("referenceElement",d??null),n.useSyncedValue("domReferenceElement",void 0===d?s:R),n.useSyncedValue("floatingElement",E);let A=t.useCallback(e=>{let t=(0,p.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;g(t),b.refs.setReference(t)},[b.refs]),S=t.useCallback(e=>{((0,p.isElement)(e)||null===e)&&(v.current=e,m(e)),((0,p.isElement)(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!(0,p.isElement)(e))&&b.refs.setReference(e)},[b.refs,m]),L=t.useCallback(e=>{y(e),b.refs.setFloating(e)},[b.refs]),C=t.useMemo(()=>({...b.refs,setReference:S,setFloating:L,setPositionReference:A,domReference:v}),[b.refs,S,L,A]),T=t.useMemo(()=>({...b.elements,domReference:s}),[b.elements,s]),O=t.useMemo(()=>({...b,dataRef:n.context.dataRef,open:a,onOpenChange:n.setOpen,events:n.context.events,floatingId:c,refs:C,elements:T,nodeId:r,rootStore:n}),[b,C,T,r,n,a,c]);return(0,l.useIsoLayoutEffect)(()=>{s&&(v.current=s)},[s]),(0,l.useIsoLayoutEffect)(()=>{n.context.dataRef.current.floatingContext=O;let e=x?.nodesRef.current.find(e=>e.id===r);e&&(e.context=O)}),t.useMemo(()=>({...b,context:O,refs:C,elements:T,rootStore:n}),[b,C,T,O,n])}(e,e.rootContext)}var q=e.i(72855);let U={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,l=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:l.top-n>=0||l.right-t>=0||l.bottom-n>=0||l.left-t>=0||0===t&&0===n&&0===r&&0===i}}}},G={sideX:"left",sideY:"top"};e.s(["DEFAULT_SIDES",0,G],9091);let X="--available-width",J="--available-height",Q="--anchor-width",Z="--anchor-height",ee="--transform-origin";function et(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function en(e,t,r){let{rects:i,placement:l}=e;return{side:et(t,(0,n.getSide)(l),r),align:(0,n.getAlignment)(l)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function er(e){return null!=e&&"current"in e}e.s(["anchorHeight",0,Z,"anchorWidth",0,Q,"availableHeight",0,J,"availableWidth",0,X,"positionerHeight",0,"--positioner-height","positionerWidth",0,"--positioner-width","transformOrigin",0,ee],67387),e.s(["useAnchorPositioning",0,function(e){return function(e,s){var a,c,f,g,d,m,h;let p,y,v,x,{anchor:w,positionMethod:b="absolute",side:R="bottom",sideOffset:E=0,align:A="center",alignOffset:S=0,collisionBoundary:L,collisionPadding:C=5,sticky:T=!1,arrowPadding:O=5,disableAnchorTracking:M=!1,inline:P,keepMounted:H=!1,floatingRootContext:V,mounted:B,collisionAvoidance:_,shift:$,nodeId:z,adaptiveOrigin:j,lazyFlip:K=!1,externalTree:Y}=e,[ei,el]=t.useState(null);B||null===ei||el(null);let eo=_.side||"flip",eu=_.align||"flip",es=_.fallbackAxisSide||"end",ea=$?.crossAxis??!1,ec=$?.rootBoundary,ef="function"==typeof w?w:void 0,eg=(0,u.useStableCallback)(ef),ed=ef?eg:w,em=(0,o.useValueAsRef)(w),eh=(0,o.useValueAsRef)(B),ep="rtl"===(0,q.useDirection)(),ey=ei||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ep?"left":"right","inline-start":ep?"right":"left"})[R],ev="center"===A?ey:`${ey}-${A}`,ex=C;"number"==typeof ex?ex={top:ex,right:ex,bottom:ex,left:ex}:ex&&(ex={top:ex.top||0,right:ex.right||0,bottom:ex.bottom||0,left:ex.left||0});let ew=+("bottom"===R),eb=+("top"===R),eR=+("right"===R),eE=+("left"===R),eA={boundary:"clipping-ancestors"===L?"clippingAncestors":L,padding:ex},eS=t.useRef(null),eL=(0,o.useValueAsRef)(E),eC=(0,o.useValueAsRef)(S),eT=[];P&&eT.push(P),eT.push((a=e=>{let t=en(e,R,ep),n="function"==typeof eL.current?eL.current(t):eL.current,r="function"==typeof eC.current?eC.current(t):eC.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},c=["function"!=typeof E?E:0,"function"!=typeof S?S:0,ep,R],{name:(p=W(a)).name,fn:p.fn,options:[a,c]}));let eO="none"===eu&&"shift"!==eo,eM=!eO&&(T||ea||"shift"===eo),eP="none"===eo?null:{name:(y=I(f={...eA,padding:{top:ex.top+1+ew,right:ex.right+1+eE,bottom:ex.bottom+1+eb,left:ex.left+1+eR},mainAxis:!ea&&"flip"===eo,crossAxis:"flip"===eu&&"alignment",fallbackAxisSideDirection:es})).name,fn:y.fn,options:[f,void 0]},ek=eO?null:(d={...eA,rootBoundary:ec,mainAxis:"none"!==eu,crossAxis:eM,limiter:T||ea?void 0:{fn:N(g=e=>{if(!eS.current)return{};let{width:t,height:r}=eS.current.getBoundingClientRect(),i=(0,n.getSideAxis)((0,n.getSide)(e.placement)),l="y"===i?ex.left+ex.right:ex.top+ex.bottom;return{offset:("y"===i?t:r)/2+l/2}}).fn,options:[g,void 0]}},m=[eA,T,ea,ec,ex,eu],{name:(v=D(d)).name,fn:v.fn,options:[d,m]});"shift"===eo||"shift"===eu||"center"===A?eT.push(ek,eP):eT.push(eP,ek),eT.push({name:(x=F(h={...eA,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!eh.current)return;let l=e.style;l.setProperty(X,`${t}px`),l.setProperty(J,`${n}px`);let o=(0,i.ownerWindow)(e).devicePixelRatio||1,{x:u,y:s,width:a,height:c}=r.reference,f=(Math.round((u+a)*o)-Math.round(u*o))/o,g=(Math.round((s+c)*o)-Math.round(s*o))/o;l.setProperty(Q,`${f}px`),l.setProperty(Z,`${g}px`)}})).name,fn:x.fn,options:[h,void 0]},((e,t)=>{let{name:r,fn:i}={name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:l,rects:o,platform:u,elements:s,middlewareData:a}=t,{element:c,padding:f=0,offsetParent:g="real"}=(0,n.evaluate)(e,t)||{};if(null==c)return{};let d=(0,n.getPaddingObject)(f),m={x:r,y:i},h=(0,n.getAlignmentAxis)(l),p=(0,n.getAxisLength)(h),y=await u.getDimensions(c),v="y"===h,x=v?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[h]-m[h]-o.floating[p],b=m[h]-o.reference[h],R="real"===g?await u.getOffsetParent?.(c):s.floating,E=s.floating[x]||o.floating[p];E&&await u.isElement?.(R)||(E=s.floating[x]||o.floating[p]);let A=E/2-y[p]/2-1,S=Math.min(d[v?"top":"left"],A),L=Math.min(d[v?"bottom":"right"],A),C=E-y[p]-L,T=E/2-y[p]/2+(w/2-b/2),O=(0,n.clamp)(S,T,C),M=!a.arrow&&null!=(0,n.getAlignment)(l)&&T!==O&&o.reference[p]/2-(T<S?S:L)-y[p]/2<0,P=M?T<S?T-S:T-C:0;return{[h]:m[h]+P,data:{[h]:O,centerOffset:T-O-P,...M&&{alignmentOffset:P}},reset:M}}};return{name:r,fn:i,options:[e,t]}})(e=>({element:eS.current||(0,r.ownerDocument)(e.elements.floating).createElement("div"),padding:eS.current?O:0,offsetParent:"floating"}),[O]),{name:"transformOrigin",fn(e){let t,{elements:{floating:r},middlewareData:i,placement:l,platform:o,rects:u,y:s}=e,a=(0,n.getSide)(l),c=(0,n.getAlignment)(l),f="y"===(0,n.getSideAxis)(a),g=eS.current,d="function"==typeof E?E(en(e,R,ep)):E;if(!g&&c&&1>=Math.abs(f?i.shift?.x||0:i.shift?.y||0))t="start"===c===(f&&o.isRTL?.(r)===!0)?"100%":"0%";else{let e=f?i.arrow?.x||0:i.arrow?.y||0,n=f?g?.clientWidth||0:g?.clientHeight||0;t=`${e+n/2}px`}let m="top"===a||"left"===a?`calc(100% + ${d}px)`:`${-d}px`;return eM&&f&&Math.abs(i.shift?.y||0)>d&&(m=`${u.reference.y+u.reference.height/2-s}px`),r.style.setProperty(ee,f?`${t} ${m}`:`${m} ${t}`),{}}},U,j),(0,l.useIsoLayoutEffect)(()=>{!B&&V&&V.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[B,V]);let eW=t.useMemo(()=>({ancestorScroll:!M,elementResize:!M&&"u">typeof ResizeObserver,layoutShift:!M&&"u">typeof IntersectionObserver}),[M]),{refs:eD,elements:eI,x:eF,y:eN,middlewareData:eH,update:eV,placement:eB,context:e_,isPositioned:e$,floatingStyles:ez}=s({rootContext:V,open:H?B:void 0,placement:ev,middleware:eT,strategy:b,whileElementsMounted:H?void 0:(...e)=>k(...e,eW),nodeId:z,externalTree:Y}),{sideX:ej,sideY:eK}=eH.adaptiveOrigin||G,eY=e$?b:"fixed",eq=t.useMemo(()=>{let e;return(e=e$?j?{position:eY,[ej]:eF,[eK]:eN}:{...ez,position:eY}:{position:eY,top:0,left:0})[X]="100vw",e[J]="100vh",e$||(e.opacity=0),e},[j,eY,ej,eF,eK,eN,ez,e$]),eU=t.useRef(null);(0,l.useIsoLayoutEffect)(()=>{if(!B)return;let e=em.current,t="function"==typeof e?e():e,n=(er(t)?t.current:t)||null;n!==eU.current&&(eD.setPositionReference(n),eU.current=n)},[B,eD,ed,em]),t.useEffect(()=>{if(!B)return;let e=em.current;"function"!=typeof e&&er(e)&&e.current!==eU.current&&(eD.setPositionReference(e.current),eU.current=e.current)},[B,eD,ed,em]),t.useEffect(()=>{if(H&&B&&eI.reference&&eI.floating)return k(eI.reference,eI.floating,eV,eW)},[H,B,eI,eV,eW]);let eG=(0,n.getSide)(eB),eX=et(R,eG,ep),eJ=(0,n.getAlignment)(eB)||"center",eQ=!!eH.hide?.referenceHidden;(0,l.useIsoLayoutEffect)(()=>{K&&B&&e$&&eG!==ey&&el(eG)},[K,B,e$,eG,ey]);let eZ=t.useMemo(()=>({position:"absolute",top:eH.arrow?.y,left:eH.arrow?.x}),[eH.arrow]),e0=eH.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eq,arrowStyles:eZ,arrowRef:eS,arrowUncentered:e0,side:eX,align:eJ,physicalSide:eG,anchorHidden:eQ,refs:eD,context:e_,isPositioned:e$,update:eV}),[eq,eZ,eS,e0,eX,eJ,eG,eQ,eD,e_,e$,eV])}(e,Y)}],23706)},64042,e=>{"use strict";var t=e.i(33848),n=e.i(28744);e.s(["isMouseWithinBounds",0,function(e,r){let i=function(e){let r=e.getBoundingClientRect(),i=(0,t.ownerWindow)(e);if(n.platform.env.jsdom)return r;let l=i.getComputedStyle(e,"::before"),o=i.getComputedStyle(e,"::after");if("none"===l.content&&"none"===o.content)return r;let u=parseFloat(l.width)||0,s=parseFloat(l.height)||0,a=parseFloat(o.width)||0,c=parseFloat(o.height)||0,f=Math.max(r.width,u,a),g=Math.max(r.height,s,c),d=f-r.width,m=g-r.height;return{left:r.left-d/2,right:r.right+d/2,top:r.top-m/2,bottom:r.bottom+m/2}}(r);return e.clientX>=i.left-5&&e.clientX<=i.right+5&&e.clientY>=i.top-5&&e.clientY<=i.bottom+5}])},89579,33383,e=>{"use strict";var t=e.i(79938),n=e.i(52245),r=e.i(53984);e.s(["usePositioner",0,function(e,i,{styles:l,transitionStatus:o,props:u,refs:s,hidden:a,inert:c=!1}){let f={...l};return c&&(f.pointerEvents="none"),(0,n.useRenderElement)("div",e,{state:i,ref:s,props:[{role:"presentation",hidden:a,style:f},(0,r.getDisabledMountTransitionStyles)(o),u],stateAttributesMapping:t.popupStateMapping})}],89579);var i=e.i(71645),l=e.i(8868),o=e.i(45484),u=e.i(46376);e.s(["useAnchoredPopupScrollLock",0,function(e,t,n,r){let[s,a]=i.useState(!1);(0,u.useIsoLayoutEffect)(()=>{if(!e||!t||null==n)return void a(!1);let r=(0,l.ownerDocument)(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-20)},[e,t,n]),(0,o.useScrollLock)(e&&(!t||s),r)}],33383)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60891,e=>{"use strict";e.i(47167);var t=e.i(71645),n=e.i(8445),r=e.i(46376),i=e.i(8868),l=e.i(67865),o=e.i(46265),u=e.i(28744),s=e.i(29315),a=e.i(75606),c=e.i(56434),f=e.i(46420),g=e.i(21082),d=e.i(49055),m=e.i(84446),h=e.i(96296),p=e.i(3596),y=e.i(57940);function v(e){return u.platform.engine.webkit&&0===e.movementX&&0===e.movementY}function x(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function w(e,t){return x(t,e===d.ARROW_UP||e===d.ARROW_DOWN,e===d.ARROW_LEFT||e===d.ARROW_RIGHT)}function b(e,t,n){return x(t,e===d.ARROW_DOWN,n?e===d.ARROW_LEFT:e===d.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,u){let{listRef:R,activeIndex:E,onNavigate:A=()=>{},enabled:S=!0,selectedIndex:L=null,allowEscape:C=!1,loopFocus:T=!1,nested:O=!1,rtl:M=!1,virtual:P=!1,focusItemOnOpen:k="auto",focusItemOnHover:W=!0,openOnArrowKeyDown:D=!0,disabledIndices:I,orientation:F="vertical",parentOrientation:N,id:H,resetOnPointerLeave:V=!0,externalTree:B,grid:_}=u,$=null!=_,z="rootStore"in e?e.rootStore:e,j=z.useState("open"),K=z.useState("floatingElement"),Y=z.useState("domReferenceElement"),q=z.context.dataRef,U=(0,h.getFloatingFocusElement)(K),G=(0,h.isTypeableCombobox)(Y),X=(0,o.useValueAsRef)(U),J=(0,f.useFloatingParentNodeId)(),Q=(0,f.useFloatingTree)(B),Z=t.useRef(k),ee=t.useRef(L??-1),et=t.useRef(null),en=t.useRef(!0),er=(0,l.useStableCallback)(e=>{A(-1===ee.current?null:ee.current,e)}),ei=t.useRef(!!K),el=t.useRef(j),eo=t.useRef(!1),eu=t.useRef(!1),es=t.useRef(null),ea=(0,o.useValueAsRef)(I),ec=(0,o.useValueAsRef)(j),ef=(0,o.useValueAsRef)(L),eg=(0,o.useValueAsRef)(V),ed=(0,n.useAnimationFrame)(),em=(0,n.useAnimationFrame)(),eh=(0,l.useStableCallback)(()=>{function e(e){P?Q?.events.emit("virtualfocus",e):es.current=(0,p.enqueueFocus)(e,{sync:eo.current,preventScroll:!0})}let t=R.current[ee.current],n=eu.current;t&&e(t),(eo.current?e=>e():e=>ed.request(e))(()=>{let r=R.current[ee.current]||t;!r||(t||e(r),eb&&(n||!en.current)&&r.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,r.useIsoLayoutEffect)(()=>{q.current.orientation=F},[q,F]),(0,r.useIsoLayoutEffect)(()=>{S&&(j&&K?(ee.current=L??-1,Z.current&&null!=L&&(eu.current=!0,er())):ei.current&&(ee.current=-1,er()))},[S,j,K,L,er]),(0,r.useIsoLayoutEffect)(()=>{if(S){if(!j){eo.current=!1;return}if(K)if(null==E){if(eo.current=!1,null!=ef.current)return;if(ei.current&&(ee.current=-1,eh()),(!el.current||!ei.current)&&Z.current&&(null!=et.current||!0===Z.current&&null==et.current)){let e=0,t=()=>{null==R.current[0]?(e<2&&(e?e=>em.request(e):queueMicrotask)(t),e+=1):(ee.current=null==et.current||b(et.current,F,M)||O?(0,g.getMinListIndex)(R):(0,g.getMaxListIndex)(R),et.current=null,er())};t()}}else(0,g.isIndexOutOfListBounds)(R.current,E)||(ee.current=E,eh(),eu.current=!1)}},[S,j,K,E,ef,O,R,F,M,er,eh,em]),(0,r.useIsoLayoutEffect)(()=>{if(!S||K||!Q||P||!ei.current)return;let e=Q.nodesRef.current,t=e.find(e=>e.id===J)?.context?.elements.floating,n=(0,m.activeElement)((0,i.ownerDocument)(Y??t??null)),r=e.some(e=>e.context&&(0,m.contains)(e.context.elements.floating,n));t&&!r&&en.current&&t.focus({preventScroll:!0})},[S,K,Y,Q,J,P]),(0,r.useIsoLayoutEffect)(()=>{el.current=j,ei.current=!!K}),(0,r.useIsoLayoutEffect)(()=>{j||(et.current=null,Z.current=k)},[j,k]);let ep=null!=E,ey=(0,l.useStableCallback)(e=>{if(!ec.current)return;let t=R.current.indexOf(e.currentTarget);-1!==t&&(ee.current!==t||E!==t)&&(ee.current=t,er(e))}),ev=(0,l.useStableCallback)(()=>N??Q?.nodesRef.current.find(e=>e.id===J)?.context?.dataRef?.current.orientation),ex=(0,l.useStableCallback)(()=>(0,g.getMinListIndex)(R,ea.current)),ew=(0,l.useStableCallback)(e=>{var t;let n,r;if(en.current=!1,eo.current=!0,229===e.which||!ec.current&&e.currentTarget===X.current)return;if(O&&(t=e.key,n=M?t===d.ARROW_RIGHT:t===d.ARROW_LEFT,r=t===d.ARROW_UP,"both"===F||"horizontal"===F&&$?"Escape"===t:x(F,n,r))){w(e.key,ev())||(0,y.stopEvent)(e),z.setOpen(!1,(0,a.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent)),(0,s.isHTMLElement)(Y)&&(P?Q?.events.emit("virtualfocus",Y):Y.focus());return}let i=ee.current,l=(0,g.getMinListIndex)(R,I),o=(0,g.getMaxListIndex)(R,I);if(G||("Home"===e.key&&((0,y.stopEvent)(e),ee.current=l,er(e)),"End"===e.key&&((0,y.stopEvent)(e),ee.current=o,er(e))),null!=_){let t=_(e,ee.current,R,F,T,M,I,l,o);if(null!=t&&(ee.current=t,er(e)),"both"===F)return}if(w(e.key,F)){if((0,y.stopEvent)(e),j&&!P&&(0,m.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){ee.current=b(e.key,F,M)?l:o,er(e);return}b(e.key,F,M)?T?i>=o?C&&i!==R.current.length?ee.current=-1:(eo.current=!1,ee.current=l):ee.current=(0,g.findNonDisabledListIndex)(R.current,{startingIndex:i,disabledIndices:I}):ee.current=Math.min(o,(0,g.findNonDisabledListIndex)(R.current,{startingIndex:i,disabledIndices:I})):T?i<=l?C&&-1!==i?ee.current=R.current.length:(eo.current=!1,ee.current=o):ee.current=(0,g.findNonDisabledListIndex)(R.current,{startingIndex:i,decrement:!0,disabledIndices:I}):ee.current=Math.max(l,(0,g.findNonDisabledListIndex)(R.current,{startingIndex:i,decrement:!0,disabledIndices:I})),(0,g.isIndexOutOfListBounds)(R.current,ee.current)&&(ee.current=-1),er(e)}}),eb=t.useMemo(()=>({onFocus(e){eo.current=!0,ey(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!v(e)&&(eo.current=!0,eu.current=!1,W&&ey(e))},onPointerLeave(e){if(!ec.current||!en.current||"touch"===e.pointerType)return;eo.current=!0;let t=e.relatedTarget;if(!(!W||R.current.includes(t))&&eg.current&&(es.current?.(),es.current=null,ee.current=-1,er(e),!P)){let e=X.current,t=(0,m.activeElement)((0,i.ownerDocument)(e));e&&(0,m.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[ey,ec,X,W,R,er,eg,P]),eR=t.useMemo(()=>P&&j&&ep&&{"aria-activedescendant":`${H}-${E}`},[P,j,ep,H,E]),eE=t.useMemo(()=>({...!G?eR:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&j&&!P){let t=(0,m.getTarget)(e.nativeEvent);if(t&&!(0,m.contains)(X.current,t))return;(0,y.stopEvent)(e),z.setOpen(!1,(0,a.createChangeEventDetails)(c.REASONS.focusOut,e.nativeEvent)),(0,s.isHTMLElement)(Y)&&Y.focus();return}ew(e)},onPointerMove(e){v(e)||(en.current=!0)}}),[eR,ew,X,G,z,j,P,Y]),eA=t.useMemo(()=>{function e(e){z.setOpen(!0,(0,a.createChangeEventDetails)(c.REASONS.listNavigation,e.nativeEvent,e.currentTarget))}function t(e){"auto"===k&&(0,y.isVirtualClick)(e.nativeEvent)&&(Z.current=!P)}function n(e){Z.current=k,"auto"===k&&(0,y.isVirtualPointerEvent)(e.nativeEvent)&&(Z.current=!0)}return{onKeyDown(t){var n,r;let i=z.select("open");en.current=!1;let l=t.key.startsWith("Arrow"),o=(n=t.key,r=ev(),x(r,M?n===d.ARROW_LEFT:n===d.ARROW_RIGHT,n===d.ARROW_DOWN)),u=w(t.key,F),s=(O?o:u)||"Enter"===t.key||""===t.key.trim();if(P&&i)return ew(t);if(i||D||!l){if(s){let e=w(t.key,ev());et.current=O&&e?null:t.key}if(O){o&&((0,y.stopEvent)(t),i?(ee.current=ex(),er(t)):e(t));return}u&&(null!=ef.current&&(ee.current=ef.current),(0,y.stopEvent)(t),!i&&D?e(t):ew(t),i&&er(t))}},onFocus(e){z.select("open")&&!P&&(ee.current=-1,er(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[ew,k,ex,O,er,z,D,F,ev,M,ef,P]),eS=t.useMemo(()=>({...eR,...eA}),[eR,eA]);return t.useMemo(()=>S?{reference:eS,floating:eE,item:eb,trigger:eA}:{},[S,eS,eE,eA,eb])}])},5049,e=>{"use strict";var t=e.i(71645),n=e.i(46376),r=e.i(67865),i=e.i(39957),l=e.i(56789),o=e.i(21082),u=e.i(84446),s=e.i(57940);e.s(["useTypeahead",0,function(e,a){let{listRef:c,elementsRef:f,activeIndex:g,onMatch:d,disabledIndices:m,onTyping:h,enabled:p=!0,resetMs:y=750,selectedIndex:v=null}=a,x="rootStore"in e?e.rootStore:e,w=x.useState("open"),b=(0,i.useTimeout)(),R=t.useRef(""),E=t.useRef(v??g??-1),A=t.useRef(null),S=(0,r.useStableCallback)(e=>{function t(e){let t=f?.current[e];return!(t&&!(0,o.isElementVisible)(t)||t?.matches(":disabled"))&&(null==m||!(0,o.isListIndexDisabled)(l.EMPTY_ARRAY,e,m))}function n(e,r,i=0){if(0===e.length)return -1;let l=(i%e.length+e.length)%e.length,o=r.toLowerCase();for(let n=0;n<e.length;n+=1){let r=(l+n)%e.length,i=e[r];if(i?.toLowerCase().startsWith(o)&&t(r))return r}return -1}let r=c.current;if(R.current.length>0&&" "===e.key&&((0,s.stopEvent)(e),h?.(!0)),R.current.length>0&&" "!==R.current[0]&&-1===n(r,R.current)&&" "!==e.key&&h?.(!1),null==r||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;w&&" "!==e.key&&((0,s.stopEvent)(e),h?.(!0));let i=""===R.current;i&&(E.current=v??g??-1),r.every((e,n)=>!(e&&t(n))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&R.current===e.key&&(R.current="",E.current=A.current),R.current+=e.key,b.start(y,()=>{R.current="",E.current=A.current,h?.(!1)});let u=i?v??g??-1:E.current,a=n(r,R.current,(u??0)+1);-1!==a?(d?.(a),A.current=a):" "!==e.key&&(R.current="",h?.(!1))}),L=(0,r.useStableCallback)(e=>{let t=e.relatedTarget,n=x.select("domReferenceElement"),r=x.select("floatingElement");(0,u.contains)(n,t)||(0,u.contains)(r,t)||(b.clear(),R.current="",E.current=A.current,h?.(!1))});(0,n.useIsoLayoutEffect)(()=>{(w||null===v)&&(b.clear(),A.current=null,""!==R.current&&(R.current=""))},[w,v,b]);let C=t.useMemo(()=>({onKeyDown:S,onBlur:L}),[S,L]);return t.useMemo(()=>p?{reference:C,floating:C}:{},[p,C])}])},53984,e=>{"use strict";var t=e.i(56789),n=e.i(38396);e.s(["getDisabledMountTransitionStyles",0,function(e){return"starting"===e?n.DISABLED_TRANSITIONS_STYLE:t.EMPTY_OBJECT}])},23706,53760,9091,67387,e=>{"use strict";var t=e.i(71645),n=e.i(43084),r=e.i(8868),i=e.i(33848),l=e.i(46376),o=e.i(46265),u=e.i(67865);function s(e,t,r){let i,{reference:l,floating:o}=e,u=(0,n.getSideAxis)(t),s=(0,n.getAlignmentAxis)(t),a=(0,n.getAxisLength)(s),c=(0,n.getSide)(t),f=l.x+l.width/2-o.width/2,g=l.y+l.height/2-o.height/2,d=l[a]/2-o[a]/2;switch(c){case"top":i={x:f,y:l.y-o.height};break;case"bottom":i={x:f,y:l.y+l.height};break;case"right":i={x:l.x+l.width,y:g};break;case"left":i={x:l.x-o.width,y:g};break;default:i={x:l.x,y:l.y}}let m=(0,n.getAlignment)(t);return m&&(i[s]+=d*("end"===m?1:-1)*(r&&"y"===u?-1:1)),i}async function a(e,t){var r;void 0===t&&(t={});let{x:i,y:l,platform:o,rects:u,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:d=!1,padding:m=0}=(0,n.evaluate)(t,e),h=(0,n.getPaddingObject)(m),p=s[d?"floating"===g?"reference":"floating":g],y=(0,n.rectToClientRect)(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(p)))||r?p:p.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:a})),v="floating"===g?{x:i,y:l,width:u.floating.width,height:u.floating.height}:u.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},b=(0,n.rectToClientRect)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:x,strategy:a}):v);return{top:(y.top-b.top+h.top)/w.y,bottom:(b.bottom-y.bottom+h.bottom)/w.y,left:(y.left-b.left+h.left)/w.x,right:(b.right-y.right+h.right)/w.x}}let c=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:o}=n,u=o.detectOverflow?o:{...o,detectOverflow:a},c=await (null==o.isRTL?void 0:o.isRTL(t)),f=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:g,y:d}=s(f,r,c),m=r,h=0,p={};for(let n=0;n<l.length;n++){let a=l[n];if(!a)continue;let{name:y,fn:v}=a,{x:x,y:w,data:b,reset:R}=await v({x:g,y:d,initialPlacement:r,placement:m,strategy:i,middlewareData:p,rects:f,platform:u,elements:{reference:e,floating:t}});g=null!=x?x:g,d=null!=w?w:d,p[y]={...p[y],...b},R&&h<50&&(h++,"object"==typeof R&&(R.placement&&(m=R.placement),R.rects&&(f=!0===R.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:g,y:d}=s(f,m,c)),n=-1)}return{x:g,y:d,placement:m,strategy:i,middlewareData:p}};function f(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function g(e){return n.sides.some(t=>e[t]>=0)}function d(e){let t=(0,n.min)(...e.map(e=>e.left)),r=(0,n.min)(...e.map(e=>e.top));return{x:t,y:r,width:(0,n.max)(...e.map(e=>e.right))-t,height:(0,n.max)(...e.map(e=>e.bottom))-r}}let m=new Set(["left","top"]);async function h(e,t){let{placement:r,platform:i,elements:l}=e,o=await (null==i.isRTL?void 0:i.isRTL(l.floating)),u=(0,n.getSide)(r),s=(0,n.getAlignment)(r),a="y"===(0,n.getSideAxis)(r),c=m.has(u)?-1:1,f=o&&a?-1:1,g=(0,n.evaluate)(t,e),{mainAxis:d,crossAxis:h,alignmentAxis:p}="number"==typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),a?{x:h*f,y:d*c}:{x:d*c,y:h*f}}var p=e.i(29315);function y(e){let t=(0,p.getComputedStyle)(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,l=(0,p.isHTMLElement)(e),o=l?e.offsetWidth:r,u=l?e.offsetHeight:i,s=(0,n.round)(r)!==o||(0,n.round)(i)!==u;return s&&(r=o,i=u),{width:r,height:i,$:s}}function v(e){return(0,p.isElement)(e)?e:e.contextElement}function x(e){let t=v(e);if(!(0,p.isHTMLElement)(t))return(0,n.createCoords)(1);let r=t.getBoundingClientRect(),{width:i,height:l,$:o}=y(t),u=(o?(0,n.round)(r.width):r.width)/i,s=(o?(0,n.round)(r.height):r.height)/l;return u&&Number.isFinite(u)||(u=1),s&&Number.isFinite(s)||(s=1),{x:u,y:s}}let w=(0,n.createCoords)(0);function b(e){let t=(0,p.getWindow)(e);return(0,p.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:w}function R(e,t,r,i){var l;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),u=v(e),s=(0,n.createCoords)(1);t&&(i?(0,p.isElement)(i)&&(s=x(i)):s=x(e));let a=(void 0===(l=r)&&(l=!1),i&&l&&i===(0,p.getWindow)(u))?b(u):(0,n.createCoords)(0),c=(o.left+a.x)/s.x,f=(o.top+a.y)/s.y,g=o.width/s.x,d=o.height/s.y;if(u&&i){let e=(0,p.getWindow)(u),t=(0,p.isElement)(i)?(0,p.getWindow)(i):i,n=e,r=(0,p.getFrameElement)(n);for(;r&&t!==n;){let e=x(r),t=r.getBoundingClientRect(),i=(0,p.getComputedStyle)(r),l=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,f*=e.y,g*=e.x,d*=e.y,c+=l,f+=o,n=(0,p.getWindow)(r),r=(0,p.getFrameElement)(n)}}return(0,n.rectToClientRect)({width:g,height:d,x:c,y:f})}function E(e,t){let n=(0,p.getNodeScroll)(e).scrollLeft;return t?t.left+n:R((0,p.getDocumentElement)(e)).left+n}function A(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-E(e,n),y:n.top+t.scrollTop}}function S(e,t,r){var i;let l;if("viewport"===t||"layoutViewport"===t)l=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=(0,p.getWindow)(e),l=(0,p.getDocumentElement)(e),o=i.visualViewport,u=l.clientWidth,s=l.clientHeight,a=0,c=0;if(o){let e=!(0,p.isWebKit)()||"fixed"===t;r?e||(a=-o.offsetLeft,c=-o.offsetTop):(u=o.width,s=o.height,e&&(a=o.offsetLeft,c=o.offsetTop))}if(0>=E(l)){let e=l.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(l.clientWidth-t.clientWidth-r),o="stable both-edges"===getComputedStyle(l).scrollbarGutter?i/2:i;o<=25&&(u-=o)}return{width:u,height:s,x:a,y:c}}(e,r,t);else if("document"===t){let t,r,o,u,s,a;i=(0,p.getDocumentElement)(e),t=(0,p.getNodeScroll)(i),r=i.ownerDocument.body,o=(0,n.max)(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),u=(0,n.max)(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+E(i),a=-t.scrollTop,"rtl"===(0,p.getComputedStyle)(r).direction&&(s+=(0,n.max)(i.clientWidth,r.clientWidth)-o),l={width:o,height:u,x:s,y:a}}else if((0,p.isElement)(t)){let e,n,i,o,u,s;n=(e=R(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,o=x(t),u=t.clientWidth*o.x,s=t.clientHeight*o.y,l={width:u,height:s,x:i*o.x,y:n*o.y}}else{let n=b(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,n.rectToClientRect)(l)}function L(e){return"static"===(0,p.getComputedStyle)(e).position}function C(e,t){if(!(0,p.isHTMLElement)(e)||"fixed"===(0,p.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,p.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function T(e,t){let n=(0,p.getWindow)(e);if((0,p.isTopLayer)(e))return n;if(!(0,p.isHTMLElement)(e)){let t=(0,p.getParentNode)(e);for(;t&&!(0,p.isLastTraversableNode)(t);){if((0,p.isElement)(t)&&!L(t))return t;t=(0,p.getParentNode)(t)}return n}let r=C(e,t);for(;r&&(0,p.isTableElement)(r)&&L(r);)r=C(r,t);return r&&(0,p.isLastTraversableNode)(r)&&L(r)&&!(0,p.isContainingBlock)(r)?n:r||(0,p.getContainingBlock)(e)||n}let O=async function(e){let t=this.getOffsetParent||T,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=(0,p.isHTMLElement)(t),l=(0,p.getDocumentElement)(t),o="fixed"===r,u=R(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=(0,n.createCoords)(0);if((i||!o)&&(("body"!==(0,p.getNodeName)(t)||(0,p.isOverflowElement)(l))&&(s=(0,p.getNodeScroll)(t)),i)){let e=R(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!i&&l&&(a.x=E(l));let c=!l||i||o?(0,n.createCoords)(0):A(l,s);return{x:u.left+s.scrollLeft-a.x-c.x,y:u.top+s.scrollTop-a.y-c.y,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},M={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:l}=e,o="fixed"===l,u=(0,p.getDocumentElement)(i),s=!!t&&(0,p.isTopLayer)(t.floating);if(i===u||s&&o)return r;let a={scrollLeft:0,scrollTop:0},c=(0,n.createCoords)(1),f=(0,n.createCoords)(0),g=(0,p.isHTMLElement)(i);if((g||!o)&&(("body"!==(0,p.getNodeName)(i)||(0,p.isOverflowElement)(u))&&(a=(0,p.getNodeScroll)(i)),g)){let e=R(i);c=x(i),f.x=e.x+i.clientLeft,f.y=e.y+i.clientTop}let d=!u||g||o?(0,n.createCoords)(0):A(u,a);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-a.scrollLeft*c.x+f.x+d.x,y:r.y*c.y-a.scrollTop*c.y+f.y+d.y}},getDocumentElement:p.getDocumentElement,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:l}=e,o=[..."clippingAncestors"===r?(0,p.isTopLayer)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,p.getOverflowAncestors)(e,[],!1).filter(e=>(0,p.isElement)(e)&&"body"!==(0,p.getNodeName)(e)),i=null,l="fixed"===(0,p.getComputedStyle)(e).position,o=l?(0,p.getParentNode)(e):e;for(;(0,p.isElement)(o)&&!(0,p.isLastTraversableNode)(o);){let e=(0,p.getComputedStyle)(o),t=(0,p.isContainingBlock)(o),n=i?i.position:l?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==o),o=(0,p.getParentNode)(o)}return t.set(e,r),r}(t,this._c):[].concat(r),i],u=S(t,o[0],l),s=u.top,a=u.right,c=u.bottom,f=u.left;for(let e=1;e<o.length;e++){let r=S(t,o[e],l);s=(0,n.max)(r.top,s),a=(0,n.min)(r.right,a),c=(0,n.min)(r.bottom,c),f=(0,n.max)(r.left,f)}return{width:a-f,height:c-s,x:f,y:s}},getOffsetParent:T,getElementRects:O,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=y(e);return{width:t,height:n}},getScale:x,isElement:p.isElement,isRTL:function(e){return"rtl"===(0,p.getComputedStyle)(e).direction}};function P(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function k(e,t,r,i){let l;void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,f=v(e),g=o||u?[...f?(0,p.getOverflowAncestors)(f):[],...t?(0,p.getOverflowAncestors)(t):[]]:[];g.forEach(e=>{o&&e.addEventListener("scroll",r),u&&e.addEventListener("resize",r)});let d=f&&a?function(e,t,r){let i,l=null,o=(0,p.getDocumentElement)(e);function u(){var e;clearTimeout(i),null==(e=l)||e.disconnect(),l=null}function s(r,a){void 0===r&&(r=!1),void 0===a&&(a=1),u();let c=e.getBoundingClientRect(),{left:f,top:g,width:d,height:m}=c;if(r||t(),!d||!m)return;let h={rootMargin:-(0,n.floor)(g)+"px "+-(0,n.floor)(o.clientWidth-(f+d))+"px "+-(0,n.floor)(o.clientHeight-(g+m))+"px "+-(0,n.floor)(f)+"px",threshold:(0,n.max)(0,(0,n.min)(1,a))||1},p=!0;function y(t){let n=t[0].intersectionRatio;if(!P(c,e.getBoundingClientRect()))return s();if(n!==a){if(!p)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}p=!1}try{l=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){l=new IntersectionObserver(y,h)}l.observe(e)}let a=(0,p.getWindow)(e),c=()=>s(r);return a.addEventListener("resize",c),s(!0),()=>{a.removeEventListener("resize",c),u()}}(f,r,u):null,m=-1,h=null;s&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),f&&!c&&h.observe(f),t&&h.observe(t));let y=c?R(e):null;return c&&function t(){let n=R(e);y&&!P(y,n)&&r(),y=n,l=requestAnimationFrame(t)}(),r(),()=>{var e;g.forEach(e=>{o&&e.removeEventListener("scroll",r),u&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(l)}}let W=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:l,placement:o,middlewareData:u}=t,s=await h(t,e);return o===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:l+s.y,data:{...s,placement:o}}}}},D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:l,platform:o}=t,{mainAxis:u=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,n.evaluate)(e,t),f={x:r,y:i},g=await o.detectOverflow(t,c),d=(0,n.getSideAxis)(l),m=(0,n.getOppositeAxis)(d),h=f[m],p=f[d],y=(e,t)=>(0,n.clamp)(t+g["y"===e?"top":"left"],t,t-g["y"===e?"bottom":"right"]);u&&(h=y(m,h)),s&&(p=y(d,p));let v=a.fn({...t,[m]:h,[d]:p});return{...v,data:{x:v.x-r,y:v.y-i,enabled:{[m]:u,[d]:s}}}}}},I=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i,l,o,u;let{placement:s,middlewareData:a,rects:c,initialPlacement:f,platform:g,elements:d}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...w}=(0,n.evaluate)(e,t);if(null!=(r=a.arrow)&&r.alignmentOffset)return{};let b=(0,n.getSide)(s),R=(0,n.getSideAxis)(f),E=(0,n.getSide)(f)===f,A=await (null==g.isRTL?void 0:g.isRTL(d.floating)),S=p||(E||!x?[(0,n.getOppositePlacement)(f)]:(0,n.getExpandedPlacements)(f)),L="none"!==v;!p&&L&&S.push(...(0,n.getOppositeAxisPlacements)(f,x,v,A));let C=[f,...S],T=await g.detectOverflow(t,w),O=[],M=(null==(i=a.flip)?void 0:i.overflows)||[];if(m&&O.push(T[b]),h){let e=(0,n.getAlignmentSides)(s,c,A);O.push(T[e[0]],T[e[1]])}if(M=[...M,{placement:s,overflows:O}],!O.every(e=>e<=0)){let e=((null==(l=a.flip)?void 0:l.index)||0)+1,t=C[e];if(t&&("alignment"!==h||R===(0,n.getSideAxis)(t)||M.every(e=>(0,n.getSideAxis)(e.placement)!==R||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let r=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(y){case"bestFit":{let e=null==(u=M.filter(e=>{if(L){let t=(0,n.getSideAxis)(e.placement);return t===R||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:u[0];e&&(r=e);break}case"initialPlacement":r=f}if(s!==r)return{reset:{placement:r}}}return{}}}},F=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let r,i,{placement:l,rects:o,platform:u,elements:s}=t,{apply:a=()=>{},...c}=(0,n.evaluate)(e,t),f=await u.detectOverflow(t,c),g=(0,n.getSide)(l),d=(0,n.getAlignment)(l),m="y"===(0,n.getSideAxis)(l),{width:h,height:p}=o.floating;"top"===g||"bottom"===g?(r=g,i=d===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(i=g,r="end"===d?"top":"bottom");let y=p-f.top-f.bottom,v=h-f.left-f.right,x=(0,n.min)(p-f[r],y),w=(0,n.min)(h-f[i],v),b=t.middlewareData.shift,R=!b,E=x,A=w;null!=b&&b.enabled.x&&(A=v),null!=b&&b.enabled.y&&(E=y),R&&!d&&(m?A=h-2*(0,n.max)(f.left,f.right):E=p-2*(0,n.max)(f.top,f.bottom)),await a({...t,availableWidth:A,availableHeight:E});let S=await u.getDimensions(s.floating);return h!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}},N=function(e){return void 0===e&&(e={}),{options:e,fn(t){var r,i,l,o;let{x:u,y:s,placement:a,rects:c,middlewareData:f}=t,{offset:g=0,mainAxis:d=!0,crossAxis:h=!0}=(0,n.evaluate)(e,t),p={x:u,y:s},y=(0,n.getSideAxis)(a),v=(0,n.getOppositeAxis)(y),x=p[v],w=p[y],b=(0,n.evaluate)(g,t),R="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(r=b.mainAxis)?r:0,crossAxis:null!=(i=b.crossAxis)?i:0};if(d){let e="y"===v?"height":"width",t=c.reference[v]-c.floating[e]+R.mainAxis,n=c.reference[v]+c.reference[e]-R.mainAxis;x<t?x=t:x>n&&(x=n)}if(h){let e="y"===v?"width":"height",t=m.has((0,n.getSide)(a)),r=c.reference[y]-c.floating[e]+(t&&(null==(l=f.offset)?void 0:l[y])||0)+(t?0:R.crossAxis),i=c.reference[y]+c.reference[e]+(t?0:(null==(o=f.offset)?void 0:o[y])||0)-(t?R.crossAxis:0);w<r?w=r:w>i&&(w=i)}return{[v]:x,[y]:w}}}},H=(e,t,n)=>{let r=new Map,i=null!=n?n:{},l={...M,...i.platform,_c:r};return c(e,t,{...i,platform:l})};e.s(["arrow",0,e=>({name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:l,rects:o,platform:u,elements:s,middlewareData:a}=t,{element:c,padding:f=0}=(0,n.evaluate)(e,t)||{};if(null==c)return{};let g=(0,n.getPaddingObject)(f),d={x:r,y:i},m=(0,n.getAlignmentAxis)(l),h=(0,n.getAxisLength)(m),p=await u.getDimensions(c),y="y"===m,v=y?"clientHeight":"clientWidth",x=o.reference[h]+o.reference[m]-d[m]-o.floating[h],w=d[m]-o.reference[m],b=await (null==u.getOffsetParent?void 0:u.getOffsetParent(c)),R=b?b[v]:0;R&&await (null==u.isElement?void 0:u.isElement(b))||(R=s.floating[v]||o.floating[h]);let E=R/2-p[h]/2-1,A=(0,n.min)(g[y?"top":"left"],E),S=(0,n.min)(g[y?"bottom":"right"],E),L=R-p[h]-S,C=R/2-p[h]/2+(x/2-w/2),T=(0,n.clamp)(A,C,L),O=!a.arrow&&null!=(0,n.getAlignment)(l)&&C!==T&&o.reference[h]/2-(C<A?A:S)-p[h]/2<0,M=O?C<A?C-A:C-L:0;return{[m]:d[m]+M,data:{[m]:T,centerOffset:C-T-M,...O&&{alignmentOffset:M}},reset:O}}}),"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,l,o;let{rects:u,middlewareData:s,placement:a,platform:c,elements:f}=t,{crossAxis:g=!1,alignment:d,allowedPlacements:m=n.placements,autoAlignment:h=!0,...p}=(0,n.evaluate)(e,t),y=void 0!==d||m===n.placements?((o=d||null)?[...m.filter(e=>(0,n.getAlignment)(e)===o),...m.filter(e=>(0,n.getAlignment)(e)!==o)]:m.filter(e=>(0,n.getSide)(e)===e)).filter(e=>!o||(0,n.getAlignment)(e)===o||!!h&&(0,n.getOppositeAlignmentPlacement)(e)!==e):m,v=(null==(r=s.autoPlacement)?void 0:r.index)||0,x=y[v];if(null==x)return{};if(a!==x)return{reset:{placement:y[0]}};let w=await c.detectOverflow(t,p),b=(0,n.getAlignmentSides)(x,u,await (null==c.isRTL?void 0:c.isRTL(f.floating))),R=[w[(0,n.getSide)(x)],w[b[0]],w[b[1]]],E=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:x,overflows:R}],A=y[v+1];if(A)return{data:{index:v+1,overflows:E},reset:{placement:A}};let S=E.map(e=>{let t=(0,n.getAlignment)(e.placement);return[e.placement,t&&g?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),L=(null==(l=S.filter(e=>e[2].slice(0,(0,n.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:l[0])||S[0][0];return L!==a?{data:{index:v+1,overflows:E},reset:{placement:L}}:{}}}},"autoUpdate",0,k,"computePosition",0,H,"flip",0,I,"hide",0,function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:i}=t,{strategy:l="referenceHidden",...o}=(0,n.evaluate)(e,t);switch(l){case"referenceHidden":{let e=f(await i.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:g(e)}}}case"escaped":{let e=f(await i.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:g(e)}}}default:return{}}}}},"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:i,rects:l,platform:o,strategy:u}=t,{padding:s=2,x:a,y:c}=(0,n.evaluate)(e,t),f=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(i.reference))||[]);if(!f.length)return{};let g=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),r=[],i=null;for(let e=0;e<t.length;e++){let n=t[e];!i||n.y-i.y>i.height/2?r.push([n]):r[r.length-1].push(n),i=n}return r.map(e=>(0,n.rectToClientRect)(d(e)))}(f),m=(0,n.rectToClientRect)(d(f)),h=(0,n.getPaddingObject)(s),p=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&(g[0].left>g[1].right||g[1].left>g[0].right)&&null!=a&&null!=c)return g.find(e=>a>e.left-h.left&&a<e.right+h.right&&c>e.top-h.top&&c<e.bottom+h.bottom)||m;if(g.length>=2){if("y"===(0,n.getSideAxis)(r)){let e=g[0],t=g[g.length-1],i="top"===(0,n.getSide)(r),l=e.top,o=t.bottom,u=i?e.left:t.left,s=i?e.right:t.right;return(0,n.rectToClientRect)({x:u,y:l,width:s-u,height:o-l})}let e="left"===(0,n.getSide)(r),t=(0,n.max)(...g.map(e=>e.right)),i=(0,n.min)(...g.map(e=>e.left)),l=g.filter(n=>e?n.left===i:n.right===t),o=l[0].top,u=l[l.length-1].bottom;return(0,n.rectToClientRect)({x:i,y:o,width:t-i,height:u-o})}return m}},floating:i.floating,strategy:u});return l.reference.x!==p.reference.x||l.reference.y!==p.reference.y||l.reference.width!==p.reference.width||l.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},"limitShift",0,N,"offset",0,W,"platform",0,M,"shift",0,D,"size",0,F],53760);var V=e.i(74080),B="u">typeof document?t.useLayoutEffect:function(){};function _(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!_(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!_(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function $(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function z(e,t){let n=$(e);return Math.round(t*n)/n}function j(e){let n=t.useRef(e);return B(()=>{n.current=e}),n}var K=e.i(46420);function Y(e){return function(e,n){let{nodeId:r,externalTree:i}=e,o=n.useState("referenceElement"),u=n.useState("floatingElement"),s=n.useState("domReferenceElement"),a=n.useState("open"),c=n.useState("floatingId"),[f,g]=t.useState(null),[d,m]=t.useState(void 0),[h,y]=t.useState(void 0),v=t.useRef(null),x=(0,K.useFloatingTree)(i),w=t.useMemo(()=>({reference:o,floating:u,domReference:s}),[o,u,s]),b=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:o,floating:u}={},transform:s=!0,whileElementsMounted:a,open:c}=e,[f,g]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[d,m]=t.useState(i);_(d,i)||m(i);let[h,p]=t.useState(null),[y,v]=t.useState(null),x=t.useCallback(e=>{e!==E.current&&(E.current=e,p(e))},[]),w=t.useCallback(e=>{e!==A.current&&(A.current=e,v(e))},[]),b=o||h,R=u||y,E=t.useRef(null),A=t.useRef(null),S=t.useRef(f),L=null!=a,C=j(a),T=j(l),O=j(c),M=t.useCallback(()=>{if(!E.current||!A.current)return;let e={placement:n,strategy:r,middleware:d};T.current&&(e.platform=T.current),H(E.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};P.current&&!_(S.current,t)&&(S.current=t,V.flushSync(()=>{g(t)}))})},[d,n,r,T,O]);B(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,g(e=>({...e,isPositioned:!1})))},[c]);let P=t.useRef(!1);B(()=>(P.current=!0,()=>{P.current=!1}),[]),B(()=>{if(b&&(E.current=b),R&&(A.current=R),b&&R){if(C.current)return C.current(b,R,M);M()}},[b,R,M,C,L]);let k=t.useMemo(()=>({reference:E,floating:A,setReference:x,setFloating:w}),[x,w]),W=t.useMemo(()=>({reference:b,floating:R}),[b,R]),D=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!W.floating)return e;let t=z(W.floating,f.x),n=z(W.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...$(W.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,W.floating,f.x,f.y]);return t.useMemo(()=>({...f,update:M,refs:k,elements:W,floatingStyles:D}),[f,M,k,W,D])}({...e,elements:{...w,...f&&{reference:f}}}),R=(0,p.isElement)(d)?d:null,E=void 0===h?n.state.floatingElement:h;n.useSyncedValue("referenceElement",d??null),n.useSyncedValue("domReferenceElement",void 0===d?s:R),n.useSyncedValue("floatingElement",E);let A=t.useCallback(e=>{let t=(0,p.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;g(t),b.refs.setReference(t)},[b.refs]),S=t.useCallback(e=>{((0,p.isElement)(e)||null===e)&&(v.current=e,m(e)),((0,p.isElement)(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!(0,p.isElement)(e))&&b.refs.setReference(e)},[b.refs,m]),L=t.useCallback(e=>{y(e),b.refs.setFloating(e)},[b.refs]),C=t.useMemo(()=>({...b.refs,setReference:S,setFloating:L,setPositionReference:A,domReference:v}),[b.refs,S,L,A]),T=t.useMemo(()=>({...b.elements,domReference:s}),[b.elements,s]),O=t.useMemo(()=>({...b,dataRef:n.context.dataRef,open:a,onOpenChange:n.setOpen,events:n.context.events,floatingId:c,refs:C,elements:T,nodeId:r,rootStore:n}),[b,C,T,r,n,a,c]);return(0,l.useIsoLayoutEffect)(()=>{s&&(v.current=s)},[s]),(0,l.useIsoLayoutEffect)(()=>{n.context.dataRef.current.floatingContext=O;let e=x?.nodesRef.current.find(e=>e.id===r);e&&(e.context=O)}),t.useMemo(()=>({...b,context:O,refs:C,elements:T,rootStore:n}),[b,C,T,O,n])}(e,e.rootContext)}var q=e.i(72855);let U={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,l=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:l.top-n>=0||l.right-t>=0||l.bottom-n>=0||l.left-t>=0||0===t&&0===n&&0===r&&0===i}}}},G={sideX:"left",sideY:"top"};e.s(["DEFAULT_SIDES",0,G],9091);let X="--available-width",J="--available-height",Q="--anchor-width",Z="--anchor-height",ee="--transform-origin";function et(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function en(e,t,r){let{rects:i,placement:l}=e;return{side:et(t,(0,n.getSide)(l),r),align:(0,n.getAlignment)(l)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function er(e){return null!=e&&"current"in e}e.s(["anchorHeight",0,Z,"anchorWidth",0,Q,"availableHeight",0,J,"availableWidth",0,X,"positionerHeight",0,"--positioner-height","positionerWidth",0,"--positioner-width","transformOrigin",0,ee],67387),e.s(["useAnchorPositioning",0,function(e){return function(e,s){var a,c,f,g,d,m,h;let p,y,v,x,{anchor:w,positionMethod:b="absolute",side:R="bottom",sideOffset:E=0,align:A="center",alignOffset:S=0,collisionBoundary:L,collisionPadding:C=5,sticky:T=!1,arrowPadding:O=5,disableAnchorTracking:M=!1,inline:P,keepMounted:H=!1,floatingRootContext:V,mounted:B,collisionAvoidance:_,shift:$,nodeId:z,adaptiveOrigin:j,lazyFlip:K=!1,externalTree:Y}=e,[ei,el]=t.useState(null);B||null===ei||el(null);let eo=_.side||"flip",eu=_.align||"flip",es=_.fallbackAxisSide||"end",ea=$?.crossAxis??!1,ec=$?.rootBoundary,ef="function"==typeof w?w:void 0,eg=(0,u.useStableCallback)(ef),ed=ef?eg:w,em=(0,o.useValueAsRef)(w),eh=(0,o.useValueAsRef)(B),ep="rtl"===(0,q.useDirection)(),ey=ei||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ep?"left":"right","inline-start":ep?"right":"left"})[R],ev="center"===A?ey:`${ey}-${A}`,ex=C;"number"==typeof ex?ex={top:ex,right:ex,bottom:ex,left:ex}:ex&&(ex={top:ex.top||0,right:ex.right||0,bottom:ex.bottom||0,left:ex.left||0});let ew=+("bottom"===R),eb=+("top"===R),eR=+("right"===R),eE=+("left"===R),eA={boundary:"clipping-ancestors"===L?"clippingAncestors":L,padding:ex},eS=t.useRef(null),eL=(0,o.useValueAsRef)(E),eC=(0,o.useValueAsRef)(S),eT=[];P&&eT.push(P),eT.push((a=e=>{let t=en(e,R,ep),n="function"==typeof eL.current?eL.current(t):eL.current,r="function"==typeof eC.current?eC.current(t):eC.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},c=["function"!=typeof E?E:0,"function"!=typeof S?S:0,ep,R],{name:(p=W(a)).name,fn:p.fn,options:[a,c]}));let eO="none"===eu&&"shift"!==eo,eM=!eO&&(T||ea||"shift"===eo),eP="none"===eo?null:{name:(y=I(f={...eA,padding:{top:ex.top+1+ew,right:ex.right+1+eE,bottom:ex.bottom+1+eb,left:ex.left+1+eR},mainAxis:!ea&&"flip"===eo,crossAxis:"flip"===eu&&"alignment",fallbackAxisSideDirection:es})).name,fn:y.fn,options:[f,void 0]},ek=eO?null:(d={...eA,rootBoundary:ec,mainAxis:"none"!==eu,crossAxis:eM,limiter:T||ea?void 0:{fn:N(g=e=>{if(!eS.current)return{};let{width:t,height:r}=eS.current.getBoundingClientRect(),i=(0,n.getSideAxis)((0,n.getSide)(e.placement)),l="y"===i?ex.left+ex.right:ex.top+ex.bottom;return{offset:("y"===i?t:r)/2+l/2}}).fn,options:[g,void 0]}},m=[eA,T,ea,ec,ex,eu],{name:(v=D(d)).name,fn:v.fn,options:[d,m]});"shift"===eo||"shift"===eu||"center"===A?eT.push(ek,eP):eT.push(eP,ek),eT.push({name:(x=F(h={...eA,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!eh.current)return;let l=e.style;l.setProperty(X,`${t}px`),l.setProperty(J,`${n}px`);let o=(0,i.ownerWindow)(e).devicePixelRatio||1,{x:u,y:s,width:a,height:c}=r.reference,f=(Math.round((u+a)*o)-Math.round(u*o))/o,g=(Math.round((s+c)*o)-Math.round(s*o))/o;l.setProperty(Q,`${f}px`),l.setProperty(Z,`${g}px`)}})).name,fn:x.fn,options:[h,void 0]},((e,t)=>{let{name:r,fn:i}={name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:l,rects:o,platform:u,elements:s,middlewareData:a}=t,{element:c,padding:f=0,offsetParent:g="real"}=(0,n.evaluate)(e,t)||{};if(null==c)return{};let d=(0,n.getPaddingObject)(f),m={x:r,y:i},h=(0,n.getAlignmentAxis)(l),p=(0,n.getAxisLength)(h),y=await u.getDimensions(c),v="y"===h,x=v?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[h]-m[h]-o.floating[p],b=m[h]-o.reference[h],R="real"===g?await u.getOffsetParent?.(c):s.floating,E=s.floating[x]||o.floating[p];E&&await u.isElement?.(R)||(E=s.floating[x]||o.floating[p]);let A=E/2-y[p]/2-1,S=Math.min(d[v?"top":"left"],A),L=Math.min(d[v?"bottom":"right"],A),C=E-y[p]-L,T=E/2-y[p]/2+(w/2-b/2),O=(0,n.clamp)(S,T,C),M=!a.arrow&&null!=(0,n.getAlignment)(l)&&T!==O&&o.reference[p]/2-(T<S?S:L)-y[p]/2<0,P=M?T<S?T-S:T-C:0;return{[h]:m[h]+P,data:{[h]:O,centerOffset:T-O-P,...M&&{alignmentOffset:P}},reset:M}}};return{name:r,fn:i,options:[e,t]}})(e=>({element:eS.current||(0,r.ownerDocument)(e.elements.floating).createElement("div"),padding:eS.current?O:0,offsetParent:"floating"}),[O]),{name:"transformOrigin",fn(e){let t,{elements:{floating:r},middlewareData:i,placement:l,platform:o,rects:u,y:s}=e,a=(0,n.getSide)(l),c=(0,n.getAlignment)(l),f="y"===(0,n.getSideAxis)(a),g=eS.current,d="function"==typeof E?E(en(e,R,ep)):E;if(!g&&c&&1>=Math.abs(f?i.shift?.x||0:i.shift?.y||0))t="start"===c===(f&&o.isRTL?.(r)===!0)?"100%":"0%";else{let e=f?i.arrow?.x||0:i.arrow?.y||0,n=f?g?.clientWidth||0:g?.clientHeight||0;t=`${e+n/2}px`}let m="top"===a||"left"===a?`calc(100% + ${d}px)`:`${-d}px`;return eM&&f&&Math.abs(i.shift?.y||0)>d&&(m=`${u.reference.y+u.reference.height/2-s}px`),r.style.setProperty(ee,f?`${t} ${m}`:`${m} ${t}`),{}}},U,j),(0,l.useIsoLayoutEffect)(()=>{!B&&V&&V.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[B,V]);let eW=t.useMemo(()=>({ancestorScroll:!M,elementResize:!M&&"u">typeof ResizeObserver,layoutShift:!M&&"u">typeof IntersectionObserver}),[M]),{refs:eD,elements:eI,x:eF,y:eN,middlewareData:eH,update:eV,placement:eB,context:e_,isPositioned:e$,floatingStyles:ez}=s({rootContext:V,open:H?B:void 0,placement:ev,middleware:eT,strategy:b,whileElementsMounted:H?void 0:(...e)=>k(...e,eW),nodeId:z,externalTree:Y}),{sideX:ej,sideY:eK}=eH.adaptiveOrigin||G,eY=e$?b:"fixed",eq=t.useMemo(()=>{let e;return(e=e$?j?{position:eY,[ej]:eF,[eK]:eN}:{...ez,position:eY}:{position:eY,top:0,left:0})[X]="100vw",e[J]="100vh",e$||(e.opacity=0),e},[j,eY,ej,eF,eK,eN,ez,e$]),eU=t.useRef(null);(0,l.useIsoLayoutEffect)(()=>{if(!B)return;let e=em.current,t="function"==typeof e?e():e,n=(er(t)?t.current:t)||null;n!==eU.current&&(eD.setPositionReference(n),eU.current=n)},[B,eD,ed,em]),t.useEffect(()=>{if(!B)return;let e=em.current;"function"!=typeof e&&er(e)&&e.current!==eU.current&&(eD.setPositionReference(e.current),eU.current=e.current)},[B,eD,ed,em]),t.useEffect(()=>{if(H&&B&&eI.reference&&eI.floating)return k(eI.reference,eI.floating,eV,eW)},[H,B,eI,eV,eW]);let eG=(0,n.getSide)(eB),eX=et(R,eG,ep),eJ=(0,n.getAlignment)(eB)||"center",eQ=!!eH.hide?.referenceHidden;(0,l.useIsoLayoutEffect)(()=>{K&&B&&e$&&eG!==ey&&el(eG)},[K,B,e$,eG,ey]);let eZ=t.useMemo(()=>({position:"absolute",top:eH.arrow?.y,left:eH.arrow?.x}),[eH.arrow]),e0=eH.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eq,arrowStyles:eZ,arrowRef:eS,arrowUncentered:e0,side:eX,align:eJ,physicalSide:eG,anchorHidden:eQ,refs:eD,context:e_,isPositioned:e$,update:eV}),[eq,eZ,eS,e0,eX,eJ,eG,eQ,eD,e_,e$,eV])}(e,Y)}],23706)},64042,e=>{"use strict";var t=e.i(33848),n=e.i(28744);e.s(["isMouseWithinBounds",0,function(e,r){let i=function(e){let r=e.getBoundingClientRect(),i=(0,t.ownerWindow)(e);if(n.platform.env.jsdom)return r;let l=i.getComputedStyle(e,"::before"),o=i.getComputedStyle(e,"::after");if("none"===l.content&&"none"===o.content)return r;let u=parseFloat(l.width)||0,s=parseFloat(l.height)||0,a=parseFloat(o.width)||0,c=parseFloat(o.height)||0,f=Math.max(r.width,u,a),g=Math.max(r.height,s,c),d=f-r.width,m=g-r.height;return{left:r.left-d/2,right:r.right+d/2,top:r.top-m/2,bottom:r.bottom+m/2}}(r);return e.clientX>=i.left-5&&e.clientX<=i.right+5&&e.clientY>=i.top-5&&e.clientY<=i.bottom+5}])},33383,e=>{"use strict";var t=e.i(71645),n=e.i(8868),r=e.i(45484),i=e.i(46376);e.s(["useAnchoredPopupScrollLock",0,function(e,l,o,u){let[s,a]=t.useState(!1);(0,i.useIsoLayoutEffect)(()=>{if(!e||!l||null==o)return void a(!1);let t=(0,n.ownerDocument)(o).documentElement.clientWidth,r=o.offsetWidth;a(t>0&&r>0&&r>=t-20)},[e,l,o]),(0,r.useScrollLock)(e&&(!l||s),u)}])},89579,e=>{"use strict";var t=e.i(79938),n=e.i(52245),r=e.i(53984);e.s(["usePositioner",0,function(e,i,{styles:l,transitionStatus:o,props:u,refs:s,hidden:a,inert:c=!1}){let f={...l};return c&&(f.pointerEvents="none"),(0,n.useRenderElement)("div",e,{state:i,ref:s,props:[{role:"presentation",hidden:a,style:f},(0,r.getDisabledMountTransitionStyles)(o),u],stateAttributesMapping:t.popupStateMapping})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},31034,e=>{"use strict";var t=e.i(43476),s=e.i(18566),a=e.i(71645),n=e.i(41880),i=e.i(67927),l=e.i(85595),r=e.i(25398),d=e.i(90063),o=e.i(28459),c=e.i(69693),m=e.i(49635),u=e.i(46150),x=e.i(15905),h=e.i(14732),f=e.i(67874),p=e.i(17981),g=e.i(88393),b=e.i(39448),v=e.i(78865);function j({party:e}){let s=e.name===u.OPERATOR_NAME;return(0,t.jsx)(b.ShipName,{name:e.name,shipId:e.id,size:"meta",isOperator:s,isSuffixShown:!s})}function y({delivery:e}){let{sender:s,recipient:a}=e.message;return(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-baseline gap-x-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(j,{party:s}),(0,t.jsx)("span",{"aria-hidden":!0,children:"→"}),(0,t.jsx)("span",{className:"sr-only",children:"to"}),"ship"===a.kind?(0,t.jsx)(j,{party:a.ship}):(0,t.jsxs)("span",{children:["any ship of type ",a.type]})]})}function N({delivery:e}){let{payload:s,contentType:a}=e.message;return(0,t.jsx)("span",{className:(0,d.classNames)("block min-w-0 truncate text-foreground",(0,c.isJson)(a)?"font-mono text-id":"text-body max-sm:text-body-touch"),title:s,children:s.split("\n")[0]})}function w(e){return(0,o.attentionReason)(e)}function k(e){var t;return`the message from ${e.message.sender.name} to ${"ship"===(t=e.message.recipient).kind?t.ship.name:`any ship of type ${t.type}`}`}function S({delivery:e,onResend:s,onDismiss:a,pendingIds:n,layout:i}){let l=n.has(e.deliveryId),d="phone"===i;if(void 0===s&&void 0===a)return null;let c=void 0!==s&&(0,o.canResend)(e)?(0,t.jsx)(x.Button,{size:d?"touch":"sm",variant:d?"primary":"secondary",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),isLoading:l,"data-testid":"attention-resend","aria-label":`Resend ${k(e)}`,onClick:()=>{s(e.deliveryId)},className:d?"flex-1":void 0,children:"Resend"}):null,m=void 0===a?null:(0,t.jsx)(x.Button,{size:d?"touch":"sm",variant:d?"secondary":"ghost",disabled:l,"data-testid":"attention-dismiss","aria-label":`Dismiss ${k(e)}`,onClick:()=>{a(e.deliveryId)},className:d?"flex-1":void 0,children:"Dismiss"});return d?(0,t.jsxs)("div",{className:"flex gap-2 pt-1",children:[m,c]}):(0,t.jsxs)("div",{className:"flex items-center justify-end gap-1.5",children:[c,m]})}function T({deliveries:e,onOpen:s,now:a,...n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-2 max-sm:hidden",children:[(0,t.jsxs)(h.Table,{"aria-label":"Undeliverable and not handled deliveries",children:[(0,t.jsx)(h.TableHeader,{children:(0,t.jsxs)(h.TableRow,{children:[(0,t.jsx)(h.TableHead,{children:"State"}),(0,t.jsx)(h.TableHead,{children:"Message"}),(0,t.jsx)(h.TableHead,{children:"Reason"}),(0,t.jsx)(h.TableHead,{children:"Since"}),(0,t.jsx)(h.TableHead,{children:"Actions"})]})}),(0,t.jsx)(h.TableBody,{children:e.map(e=>{let i=new Date(e.since);return(0,t.jsxs)(h.TableRow,{"data-testid":"attention-row","data-delivery-id":e.deliveryId,children:[(0,t.jsx)(h.TableCell,{className:"align-top",children:(0,t.jsx)(v.StatusBadge,{status:e.state})}),(0,t.jsx)(h.TableCell,{className:"max-w-96 align-top",children:(0,t.jsxs)("button",{type:"button","aria-label":`Open ${k(e)}`,onClick:()=>{s(e)},className:"flex w-full min-w-0 flex-col gap-0.5 rounded-xs text-left focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",children:[(0,t.jsx)(N,{delivery:e}),(0,t.jsx)(y,{delivery:e})]})}),(0,t.jsx)(h.TableCell,{className:"max-w-48 align-top text-meta whitespace-normal text-muted-foreground",children:w(e)}),(0,t.jsx)(h.TableCell,{className:"align-top",children:(0,t.jsxs)("span",{className:"flex flex-col gap-0.5 tabular-nums",children:[(0,t.jsx)("time",{dateTime:e.since,title:(0,m.fullDateTime)(i),className:"text-body text-foreground",children:(0,m.shortDateTime)(i)}),(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:[(0,m.duration)(i,a)," ago"]})]})}),(0,t.jsx)(h.TableCell,{className:"align-top",children:(0,t.jsx)(S,{delivery:e,layout:"table",...n})})]},e.deliveryId)})})]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Resend creates a new message with the same payload, linked to the original. Dismiss marks the delivery resolved. Abandoned deliveries are not listed here."})]})}function C({deliveries:e,onOpen:s,now:a,...n}){return(0,t.jsx)("ul",{"aria-label":"Undeliverable and not handled deliveries",className:"flex flex-col gap-3 sm:hidden",children:e.map(e=>{let l=new Date(e.since),r=a.getTime()-l.getTime()<864e5?(0,m.clockTime)(l):(0,m.shortDateTime)(l);return(0,t.jsxs)("li",{"data-testid":"attention-row","data-delivery-id":e.deliveryId,className:"flex flex-col gap-1.5 rounded-lg border border-border bg-card px-3.5 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)(v.StatusBadge,{status:e.state}),(0,t.jsxs)("button",{type:"button","aria-label":`Open ${k(e)}`,onClick:()=>{s(e)},className:"inline-flex items-center gap-1 rounded-xs text-meta text-muted-foreground tabular-nums focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",children:[(0,m.duration)(l,a),(0,t.jsx)(i.ChevronRight,{"aria-hidden":!0})]})]}),(0,t.jsx)(N,{delivery:e}),(0,t.jsx)(y,{delivery:e}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:[w(e)," Since"," ",(0,t.jsx)("time",{dateTime:e.since,title:(0,m.fullDateTime)(l),className:"tabular-nums",children:r}),"."]}),(0,t.jsx)(S,{delivery:e,layout:"phone",...n})]},e.deliveryId)})})}function z({deliveries:e,state:s,onRetry:a,...n}){return"loading"===s?(0,t.jsxs)("div",{"data-slot":"needs-attention-list","data-state":"loading",children:[(0,t.jsx)(g.LoadingSkeleton,{variant:"table",rows:2,label:"Loading Needs attention",className:"max-sm:hidden"}),(0,t.jsx)(g.LoadingSkeleton,{variant:"list",rows:2,label:"Loading Needs attention",className:"sm:hidden"})]}):"error"===s?(0,t.jsx)("div",{"data-slot":"needs-attention-list","data-state":"error","data-testid":"attention-error",children:(0,t.jsx)(p.InlineError,{variant:"page",title:"Couldn’t load Needs attention",description:"This page couldn’t reach the fleet server. Undeliverable deliveries are kept on the server, so nothing is lost.",onRetry:a})}):0===e.length?(0,t.jsx)("div",{"data-slot":"needs-attention-list","data-state":"empty","data-testid":"attention-empty",children:(0,t.jsx)(f.EmptyState,{icon:(0,t.jsx)(l.CircleCheck,{className:"text-tone-ok-fg"}),title:"Nothing needs your attention",description:"Undeliverable deliveries show up here as soon as they happen."})}):(0,t.jsxs)("div",{"data-slot":"needs-attention-list","data-state":"ready",className:"flex flex-col gap-3",children:[(0,t.jsx)(T,{deliveries:e,...n}),(0,t.jsx)(C,{deliveries:e,...n})]})}var I=e.i(66390);function R({deliveries:e,onOpen:s,now:a}){return(0,t.jsx)("ul",{"data-testid":"no-ship-can-take","aria-label":"Deliveries no ship can take",className:"divide-y divide-border overflow-hidden rounded-lg border border-border",children:e.map(e=>{let{sender:n,payload:l,contentType:r}=e.message,o=new Date(e.message.sentAt),x=n.name===u.OPERATOR_NAME;return(0,t.jsxs)("li",{"data-testid":"no-ship-can-take-row","data-delivery-id":e.deliveryId,className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 px-3 py-2.5",children:[(0,t.jsx)(I.Badge,{variant:"type",children:e.type}),(0,t.jsxs)("span",{className:"flex min-w-0 grow basis-48 flex-col gap-0.5",children:[(0,t.jsx)("span",{className:(0,d.classNames)("block min-w-0 truncate text-foreground",(0,c.isJson)(r)?"font-mono text-id":"text-body max-sm:text-body-touch"),title:l,children:l.split("\n")[0]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-baseline gap-x-1.5 text-meta text-muted-foreground",children:["from ",(0,t.jsx)(b.ShipName,{name:n.name,shipId:n.id,size:"meta",isOperator:x,isSuffixShown:!x})]})]}),(0,t.jsxs)("span",{className:"text-meta text-muted-foreground tabular-nums",children:["waiting"," ",(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,m.fullDateTime)(o),children:(0,m.duration)(o,a)})]}),(0,t.jsxs)("button",{type:"button","data-testid":"no-ship-can-take-open","aria-label":`Open the message from ${n.name} to any ship of type ${e.type}`,onClick:()=>{s(e)},className:"inline-flex items-center gap-1 rounded-xs text-meta font-medium hover:underline focus-visible:outline-2 focus-visible:outline-ring",children:["Open",(0,t.jsx)(i.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon-sm)"})]})]},e.deliveryId)})})}var O=e.i(49655);function D({deliveries:e,onOpen:s,now:a}){return(0,t.jsx)("ul",{"data-testid":"overdue-deliveries","aria-label":"Overdue deliveries",className:"divide-y divide-border overflow-hidden rounded-lg border border-border",children:e.map(e=>{let{payload:n,contentType:l}=e.message,r=new Date(e.toldAt);return(0,t.jsxs)("li",{"data-testid":"overdue-row","data-delivery-id":e.deliveryId,className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 px-3 py-2.5",children:[(0,t.jsx)(v.StatusBadge,{status:"overdue"}),(0,t.jsxs)("span",{className:"flex min-w-0 grow basis-48 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex flex-wrap items-baseline gap-x-1.5 text-body text-foreground max-sm:text-body-touch",children:[(0,t.jsx)(b.ShipName,{name:e.ship.name,shipId:e.ship.id,size:"meta"}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:(0,o.overdueReason)(e)})]}),(0,t.jsx)("span",{className:(0,d.classNames)("block min-w-0 truncate text-muted-foreground",(0,c.isJson)(l)?"font-mono text-id":"text-meta"),title:n,children:n.split("\n")[0]})]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta text-tone-attention-fg tabular-nums",children:[(0,t.jsx)(O.AlarmClock,{"aria-hidden":!0,className:"size-3.5 shrink-0"}),(0,t.jsxs)("span",{children:["argo told at ",String(e.minutes)," min ·"," ",(0,t.jsx)("time",{dateTime:e.toldAt,title:(0,m.fullDateTime)(r),children:(0,m.relativeTime)(r,a).toLowerCase()})]})]}),(0,t.jsxs)("button",{type:"button","data-testid":"overdue-open","aria-label":`Open the message overdue on ${e.ship.name}`,onClick:()=>{s(e)},className:"inline-flex items-center gap-1 rounded-xs text-meta font-medium hover:underline focus-visible:outline-2 focus-visible:outline-ring",children:["Open",(0,t.jsx)(i.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon-sm)"})]})]},e.deliveryId)})})}var L=e.i(15327),q=e.i(22016),A=e.i(84294),K=e.i(19249),B=e.i(81830),H=e.i(1935);function E({members:e,ships:s,now:a,renderAction:n}){return(0,t.jsx)("ul",{"data-testid":"silent-members",className:"divide-y divide-border overflow-hidden rounded-lg border border-border",children:e.map(({squadronId:e,member:l})=>{let{lastSeenAt:r}=l.crew;return(0,t.jsxs)("li",{"data-testid":"silent-member",className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 px-3 py-2.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(K.HealthIndicator,{health:"silent"}),(0,t.jsx)("span",{className:"font-medium",children:l.name})]}),(0,t.jsx)(H.SquadronTag,{squadronId:e,role:l.role,size:"sm"})]}),(0,t.jsxs)("span",{className:"flex flex-col text-meta",children:[(0,t.jsx)("span",{children:null===r?"never seen":`not seen for ${(0,m.duration)(new Date(r),a)}`}),(0,t.jsxs)("span",{className:"text-muted-foreground",children:["checks in ",(0,A.checkInText)(l.checkInMinutes)]})]}),(0,t.jsx)("span",{className:"grow",children:(0,t.jsx)(B.ReportLine,{report:s.get(l.shipId)?.report??null,now:a,variant:"row",testId:"silent-member-report"})}),n?.({squadronId:e,member:l}),(0,t.jsxs)(q.default,{href:`/squadrons/${e}`,className:"inline-flex items-center gap-1 text-meta font-medium hover:underline",children:["Open",(0,t.jsx)(i.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon-sm)"})]})]},l.shipId)})})}var M=e.i(77821),P=e.i(87964),$=e.i(90262),U=e.i(18423),_=e.i(96676),F=e.i(78485),J=e.i(5387),W=e.i(53573),Q=e.i(48695);function V(e){return e instanceof Error?e.message:"Try again in a moment."}e.s(["default",0,function(){let e=(0,s.useRouter)(),i=(0,_.useNow)(),l=(0,o.useNeedsAttention)(),r=(0,o.useNoShipCanTake)().data??[],d=(0,o.useOverdue)().data??[],c=(0,o.useResendDelivery)(),m=(0,o.useDismissDelivery)(),u=(0,U.useLiveFleet)(),x=(0,P.useConsoleFrame)(),h=(0,Q.useSquadrons)(),f=(0,A.silentMembers)(h.data??[]),p=(0,W.useShips)(f.map(({member:e})=>e.shipId)),g=new Map(((0,J.useFleetSnapshot)().data??[]).map(e=>[e.id,e])),b=(0,$.useAccess)();(0,F.useSignInWhenSessionEnds)([l.error,u.error]);let[v,j]=(0,a.useState)(new Set),y=(e,t)=>{j(t=>new Set([...t,e])),t().finally(()=>{j(t=>new Set([...t].filter(t=>t!==e)))})},N=(0,t.jsx)(z,{deliveries:l.data??[],state:l.isError?"error":l.data?"ready":"loading",onRetry:()=>{l.refetch()},onResend:b.canManage?e=>{let t=(0,o.deliveryWithId)(l.data,e);y(e,async()=>{try{await c.mutateAsync({deliveryId:e}),t&&(0,n.showToast)({...(0,o.resentToast)(t),tone:"success"})}catch(e){(0,n.showToast)({title:"Couldn’t resend the message",description:V(e),tone:"error"})}})}:void 0,onDismiss:b.canManage?e=>{y(e,async()=>{try{await m.mutateAsync({deliveryId:e}),(0,n.showToast)({...o.DISMISSED_TOAST,tone:"success"})}catch(e){(0,n.showToast)({title:"Couldn’t dismiss the delivery",description:V(e),tone:"error"})}})}:void 0,onOpen:t=>{e.push((0,o.messagePathOf)(t))},pendingIds:v,now:i});return(0,t.jsx)(M.ListPage,{...x,title:"Needs attention",description:"Deliveries no ship acknowledged after five tries, or not handled, oldest first. Resend or dismiss each one.",live:u.live,children:f.length>0||d.length>0||r.length>0?(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("section",{"aria-labelledby":"attention-undeliverable",className:"flex flex-col gap-2",children:[(0,t.jsxs)("h2",{id:"attention-undeliverable",className:"text-body font-semibold",children:["Undeliverable and not handled deliveries (",l.data?.length??0,")"]}),l.data?.length===0?(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"None."}):N]}),d.length>0?(0,t.jsxs)("section",{"aria-labelledby":"attention-overdue",className:"flex flex-col gap-2",children:[(0,t.jsxs)("h2",{id:"attention-overdue",className:"text-body font-semibold",children:["Overdue (",d.length,")"]}),(0,t.jsx)(D,{deliveries:d,onOpen:t=>{e.push((0,o.overduePathOf)(t))},now:i}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Handed and not confirmed for 10 min, or waiting 10 min while the session is idle or 60 while it is busy. They clear by themselves once they move on."})]}):null,r.length>0?(0,t.jsxs)("section",{"aria-labelledby":"attention-no-ship-can-take",className:"flex flex-col gap-2",children:[(0,t.jsxs)("h2",{id:"attention-no-ship-can-take",className:"text-body font-semibold",children:["No ship can take it (",r.length,")"]}),(0,t.jsx)(R,{deliveries:r,onOpen:t=>{e.push((0,o.messagePathOf)(t))},now:i}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Sent to a type no active ship has, or none its sender may reach. Commission a ship of the type and it takes them; they clear by themselves."})]}):null,f.length>0?(0,t.jsxs)("section",{"aria-labelledby":"attention-silent",className:"flex flex-col gap-2 max-sm:order-first",children:[(0,t.jsxs)("h2",{id:"attention-silent",className:"text-body font-semibold",children:["Silent members (",f.length,")"]}),(0,t.jsx)(E,{members:f,ships:g,now:i,renderAction:b.canManage?({squadronId:e,member:s})=>(0,t.jsx)(L.GetNewCrewLine,{squadronId:e,member:s,ship:p.get(s.shipId),isPrimary:!0,testId:"silent-member-new-crew-line"}):void 0}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"A member is silent after 3 missed check-ins; only you can start its new session. Late members and blocked reports stay on their squadron page."})]}):null]}):N})}],31034)},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},14732,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};a.node;let n=(0,s.default)(a),i={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};i.node;let l=(0,s.default)(i);var r=e.i(63707),d=e.i(90063);function o({className:e,...s}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,d.classNames)("px-4 text-left align-middle text-caption font-medium whitespace-nowrap text-muted-foreground",e),...s})}e.s(["Table",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto rounded-lg border border-border bg-card shadow-sm",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,d.classNames)("w-full caption-bottom text-body",e),...s})})},"TableBody",0,function({className:e,...s}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,d.classNames)("[&_tr:last-child]:border-0",e),...s})},"TableCell",0,function({className:e,...s}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,d.classNames)("px-4 align-middle",e),...s})},"TableHead",0,o,"TableHeader",0,function({className:e,...s}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,d.classNames)("bg-muted [&_tr]:border-b",e),...s})},"TableRow",0,function({className:e,...s}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,d.classNames)("h-(--size-row) border-b border-border transition-colors duration-(--duration-fast) hover:bg-muted has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-ring data-new:animate-highlight [thead_&]:h-(--size-row-header) [thead_&]:hover:bg-transparent",e),...s})},"TableSortHead",0,function({direction:e,onSort:s,children:a,className:i,...c}){let m="ascending"===e?l:"descending"===e?n:r.ChevronsUpDown;return(0,t.jsx)(o,{"aria-sort":e??"none",className:(0,d.classNames)("px-2",i),...c,children:(0,t.jsxs)("button",{type:"button",onClick:s,className:"inline-flex h-7 items-center gap-1 rounded-sm px-2 font-medium hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring data-sorted:text-foreground","data-sorted":null===e?void 0:"",children:[a,(0,t.jsx)(m,{"aria-hidden":!0,className:(0,d.classNames)("size-3.5 shrink-0",null===e?"opacity-50":void 0)})]})})}],14732)},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:n,action:i,variant:l="page",className:r}){return"section"===l?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":l,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",r),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===l?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":l,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",r),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":l,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",r),children:[n?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:n}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},19249,e=>{"use strict";var t=e.i(43476),s=e.i(90063);let a={"on-time":{label:"On time",dot:"bg-tone-ok-fg",text:"text-tone-ok-fg"},late:{label:"Late",dot:"bg-tone-waiting-fg",text:"text-tone-waiting-fg"},silent:{label:"Silent",dot:"bg-tone-attention-fg",text:"text-tone-attention-fg"},"standing-down":{label:"Standing down",dot:"bg-tone-active-fg",text:"text-tone-active-fg"},"not-on-station":{label:"Not on station",dot:"border border-dashed border-muted-foreground",text:"text-foreground"}};function n({health:e}){return(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.classNames)("size-2 shrink-0 rounded-full",a[e].dot)})}e.s(["HealthIndicator",0,function({health:e,detail:i,className:l}){return(0,t.jsxs)("span",{"data-slot":"health-indicator","data-health":e,className:(0,s.classNames)("inline-flex items-center gap-1.5 text-meta",l),children:[(0,t.jsx)(n,{health:e}),(0,t.jsx)("span",{className:(0,s.classNames)("font-medium",a[e].text),children:a[e].label}),void 0!==i&&(0,t.jsx)("span",{className:"text-muted-foreground",children:i})]})},"HealthSummary",0,function({counts:e,className:i}){return(0,t.jsx)("span",{"data-slot":"health-summary",className:(0,s.classNames)("inline-flex flex-wrap items-center gap-x-3 gap-y-1 text-meta",i),children:e.map(({health:e,count:s})=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(n,{health:e}),(0,t.jsxs)("span",{children:[s," ",a[e].label.toLowerCase()]})]},e))})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function n(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:l="Loading",className:r}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",r),children:[(0,t.jsx)("span",{className:"sr-only",children:l}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),n(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:n(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:n(i).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},39448,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(22016),n=e.i(90063);let i=(0,s.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:s,size:l,isSuffixShown:r=!1,isOperator:d=!1,href:o,className:c}){let m=o?(0,t.jsx)(a.default,{href:o,className:(0,n.classNames)(i({size:l}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:i({size:l}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,n.classNames)("inline-flex min-w-0 items-baseline gap-1.5",c),children:[m,d?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,r&&!d?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),s.slice(-4)]}):null]})}])},1935,e=>{"use strict";var t=e.i(43476),s=e.i(60011),a=e.i(22016),n=e.i(90063);e.s(["SquadronTag",0,function({squadronId:e,role:i,size:l="md",className:r}){return(0,t.jsxs)(a.default,{href:`/squadrons/${e}`,"data-slot":"squadron-tag",className:(0,n.classNames)("inline-flex max-w-full items-center gap-1 rounded-sm bg-secondary px-1.5 text-secondary-foreground hover:underline [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0","sm"===l?"h-5.5 text-meta":"h-6 text-body",r),children:[(0,t.jsx)(s.Shapes,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate font-medium",children:e}),void 0!==i&&(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:["· ",i]})]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),n=e.i(19759),i=e.i(22016),l=e.i(15905),r=e.i(36651),d=e.i(90063);let o={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:n}=o[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,d.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.classNames)("size-2 shrink-0 rounded-full",n)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:d=[],live:o,onCompose:m,onSearch:u}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[d.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(i.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:o}),u?(0,t.jsxs)(l.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(r.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(l.Button,{size:"sm",icon:(0,t.jsx)(n.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:n,back:r,account:d,onSearch:o}){let x=o&&!r?o:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":r?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:r.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(m.ChevronLeft,{"aria-hidden":!0}),r.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),n||x||d&&!r?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[x?(0,t.jsx)(l.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:x,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,n,d&&!r?(0,t.jsx)(u.AccountMenuSheet,{...d}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),n=e.i(77880),i=e.i(85538);e.s(["ListPage",0,function({title:e,description:l,titleMeta:r,primaryAction:d,toolbar:o,live:c,onCompose:m,onSearch:u,account:x,banner:h,children:f}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),h,(0,t.jsx)(i.TopBar,{title:e,live:c,account:x,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),r]}),l?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null]}),d?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:d}):null]}),o,f]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),n=e.i(42454),i=e.i(27702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function r(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let d=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),o=new Set(["DeliveryUndeliverable","DeliveryNotHandled","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,i.useTRPC)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),x=e=>{r(c,e)},h=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,i;if("resync"===t.kind)return void x(e.fleet.pathKey());let{event:r}=t;for(let t of new Set([r.shipId,r.actorShipId]))null!==t&&(x(e.fleet.ship.queryKey({shipId:t})),x(e.fleet.shipTimeline.queryKey({shipId:t})),x(e.fleet.shipWay.queryKey({shipId:t})));if(null!==r.messageId&&(x(e.fleet.shipMessages.pathKey()),x(e.fleet.shipWay.pathKey()),x(e.fleet.overdue.queryKey()),x(e.fleet.message.queryKey({messageId:r.messageId})),x(e.fleet.inbox.pathKey()),x(n.QUESTIONS_KEY),x(e.fleet.noShipCanTake.queryKey())),s=r.type,o.has(s)&&x(e.fleet.needsAttention.queryKey()),a=r.type,d.has(a)&&x(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===r.type&&x(e.fleet.declaredNetworkRules.queryKey()),i=r.type,!l.has(i))return;x(e.fleet.list.queryKey()),x(e.fleet.noShipCanTake.queryKey());let{shipId:c}=r;"ShipCommissioned"===r.type&&null!==c&&u(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(h.status),newShipIds:m,error:h.error}}])},69693,e=>{"use strict";var t=e.i(46150);function s(e){let t=e.split(";")[0]?.trim().toLowerCase()??"";return"application/json"===t||t.endsWith("+json")}e.s(["formattedPayload",0,function(e,t){if(s(t))try{return JSON.stringify(JSON.parse(e),null,2)}catch{return}},"isJson",0,s,"payloadLabel",0,function(e,a){let n=s(a)?"JSON":a.split(";")[0]?.trim()??a,i=new TextEncoder().encode(e).byteLength;return`${n} \xb7 ${(0,t.counted)(i,{one:"byte",many:"bytes"})}`}])}]);
|