(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,482317,e=>{"use strict";let t=(0,e.i(514514).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],482317)},944220,e=>{"use strict";var t=e.i(902875),a=e.i(247865),i=e.i(368847),l=e.i(144103),n=e.i(632137),s=e.i(336726);let o=({headings:e,title:o,ariaLabel:r})=>{let[d,c]=(0,a.useState)(!1),u=function(e){let[t,i]=(0,a.useState)(e[0]??null),l=e.join("|");return(0,a.useEffect)(()=>{if("u"document.getElementById(e)).filter(e=>null!==e);if(0===t.length)return;let a=new Set,n=new IntersectionObserver(t=>{t.forEach(e=>{e.isIntersecting?a.add(e.target.id):a.delete(e.target.id)});let l=e.find(e=>a.has(e));l&&i(l)},{rootMargin:"-64px 0px -80% 0px",threshold:0});return t.forEach(e=>n.observe(e)),()=>n.disconnect()},[l]),t}(e.map(e=>e.id));if(e.lengthe.id===u)),h=e[x];return(0,t.jsx)("nav",{"aria-label":r,"data-testid":"article-navigation",className:"mb-6 md:hidden",children:(0,t.jsxs)("div",{"data-testid":"article-navigation-mobile",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>c(!0),"aria-expanded":d,"aria-haspopup":"dialog",className:"bg-brand-light z-sticky sticky top-0 flex w-full items-center justify-between gap-2 rounded-md px-4 py-3 text-left",children:[(0,t.jsxs)(i.Text,{variant:"Body.S.Bold",elementType:"span",color:"inverse",className:"truncate",children:[x+1,". ",h?.text]}),(0,t.jsx)(s.ChevronDown,{color:"inverse",size:"sm",className:"shrink-0","aria-hidden":"true"})]}),(0,t.jsx)(l.MobileDrawer,{title:o,isOpen:d,setIsOpen:c,children:(0,t.jsx)("ul",{role:"list",className:"m-0 list-none space-y-1 p-0",children:e.map((e,a)=>(0,t.jsx)("li",{className:(0,n.cn)(3===e.level&&"pl-4"),children:(0,t.jsxs)("a",{href:`#${e.id}`,onClick:()=>c(!1),className:(0,n.cn)("text-inherit no-underline hover:underline focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none","block py-1.5",e.id===u&&"font-bold"),children:[a+1,". ",e.text]})},e.id))})})]})})};e.s(["ArticleNavigationView",0,o,"default",0,o],944220)},364063,function(e){e.n(e.i(944220))},144103,e=>{"use strict";var t=e.i(902875),a=e.i(62544),i=e.i(632137),l=e.i(368847),n=e.i(482317);e.s(["MobileDrawer",0,({isOpen:e,setIsOpen:s,children:o,title:r})=>(0,t.jsx)(a.Dialog,{open:e,children:(0,t.jsxs)(a.DialogPortal,{children:[(0,t.jsx)(a.DialogOverlay,{className:"bg-black/50"}),(0,t.jsxs)(a.DialogContent,{className:(0,i.cn)("p-0 [&>button]:hidden","fixed inset-x-0 top-auto bottom-0 flex h-auto flex-col bg-white","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:slide-out-to-bottom-[10%] data-[state=open]:slide-in-from-bottom-[10%]","left-0 w-full max-w-none translate-x-0 translate-y-0 shadow-lg duration-300 sm:max-w-none","border-x-0 border-b-0","rounded-t-3xl rounded-b-none"),children:[(0,t.jsx)(a.DialogTitle,{className:"pt-4",children:(0,t.jsxs)("div",{className:"relative flex items-center justify-center pb-2",children:[(0,t.jsx)(l.default,{variant:"Body.M",className:"font-bold",children:r}),(0,t.jsx)("button",{onClick:()=>s(!1),className:"absolute top-0 right-5 cursor-pointer text-black hover:text-gray-700",children:(0,t.jsx)(n.X,{className:"h-6 w-6"})}),(0,t.jsx)("div",{className:"absolute right-0 bottom-0 left-0 h-[1px] bg-[#e9e9e9]"})]})}),(0,t.jsx)("div",{className:"max-h-[70vh] overflow-y-auto p-4 pt-0",children:o})]})]})})])}]);