(globalThis.TURBOPACK_remote_chunk_loading_global_prj_Ea8QNpCs22Ye85AIRZ6hT1aa8n7z||(globalThis.TURBOPACK_remote_chunk_loading_global_prj_Ea8QNpCs22Ye85AIRZ6hT1aa8n7z=[])).push(["object"==typeof document?document.currentScript:void 0,98672,e=>{"use strict";let t=(0,e.i(71645).createContext)(null);e.s(["IntoView",0,t])},4534,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(54719),o=e.i(52236),i=e.i(98672);let a=new Map,u={success:"bg-success",info:"bg-info",warning:"bg-warning",danger:"bg-danger"};e.s(["FadeIn",0,function({delay:e=0,className:n,children:r}){return(0,t.jsx)("div",{className:(0,o.cn)("animate-fade-rise",n),style:{"--fade-delay":`${e}ms`},children:r})},"LiveDot",0,function({tone:e="success",className:n}){return(0,t.jsxs)("span",{"aria-hidden":"true",className:(0,o.cn)("relative inline-flex size-2 shrink-0",n),children:[(0,t.jsx)("span",{className:(0,o.cn)("absolute inset-0 animate-live-ping rounded-full",u[e])}),(0,t.jsx)("span",{className:(0,o.cn)("relative size-2 rounded-full",u[e])})]})},"Reveal",0,function({open:e,className:r,intoView:o=!1,children:a}){let u=(0,n.useContext)(i.IntoView),[l,c]=(0,n.useState)(e),[s,d]=(0,n.useState)(e);return((0,n.useEffect)(()=>{if(!e)return void d(!1);c(!0);let t=0,n=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>d(!0))});return()=>{cancelAnimationFrame(n),cancelAnimationFrame(t)}},[e]),l)?(0,t.jsx)("div",{"data-open":s,inert:!e,className:"reveal",onTransitionEnd:t=>{t.target===t.currentTarget&&(e?o&&"grid-template-rows"===t.propertyName&&u?.(t.currentTarget):c(!1))},children:(0,t.jsx)("div",{className:r,children:a})}):null},"Rise",0,function({i:e=0,className:n,children:r}){return(0,t.jsx)("div",{className:(0,o.cn)("animate-rise",n),style:{"--rise-i":e},children:r})},"SwapIn",0,function({swapKey:e,className:n,children:r}){return(0,t.jsx)("div",{className:(0,o.cn)("animate-swap-in",n),children:r},e)},"bezier",0,e=>`cubic-bezier(${e.join(", ")})`,"ease",0,function(e){let t=a.get(e);if(t)return t;let n=getComputedStyle(document.documentElement).getPropertyValue(`--ease-${e}`).trim();return n?(a.set(e,n),n):"ease"},"loopRuns",0,function(e="end"){return{animationIterationCount:r.LOOP_RUNS,animationFillMode:"end"===e?"forwards":"none"}},"reducedMotion",0,function(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}])},74271,e=>{"use strict";e.s(["segmentItem",0,"flex h-7 min-w-0 flex-1 items-center justify-center gap-1.5 rounded-full px-3 text-label font-semibold whitespace-nowrap press-95 focus-visible:ring-2 focus-visible:ring-focus focus-visible:outline-none","segmentItemState",0,(e,t=!1)=>t?`relative ${e?"text-fg":"text-fg-secondary hover:text-fg"}`:e?"bg-surface text-fg shadow-sm":"text-fg-secondary hover:text-fg","segmentPill",0,"inset-y-0.75 rounded-full bg-surface shadow-sm","segmentTrack",0,"flex items-center rounded-full bg-surface-muted p-0.75"])},30086,78295,e=>{"use strict";var t=e.i(43476),n=e.i(9875);let r={cloud:"M7 18h10a4 4 0 0 0 .5-7.97A6 6 0 0 0 6 9.5 4.25 4.25 0 0 0 7 18z",bolt:"M13 2 4 14h7l-1 8 9-12h-7z",wind:"M3 8h11a3 3 0 1 0-3-3M3 12h16a3 3 0 1 1-3 3M3 16h8",rain:"M7 15h10a4 4 0 0 0 .5-7.97A6 6 0 0 0 6 6.5 4.25 4.25 0 0 0 7 15zM8 18l-1 3M12 18l-1 3M16 18l-1 3",snow:"M12 3v18M4.2 7.5l15.6 9M4.2 16.5l15.6-9M9.5 4.5 12 7l2.5-2.5M9.5 19.5 12 17l2.5 2.5",fog:"M4 8h16M3 12h18M5 16h14M8 20h8",plane:"M2 16l20-6-20-6 4 6z",clock:"M12 7v5l3 2M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",share:"M12 3v12M7 8l5-5 5 5M5 14v6h14v-6",chev:"M9 6l6 6-6 6",back:"M15 6l-6 6 6 6",bell:"M6 16V11a6 6 0 1 1 12 0v5l2 2H4zM10 21h4",search:"M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM20 20l-4-4",layers:"M12 3 2 8l10 5 10-5zM2 13l10 5 10-5",home:"M3 11 12 4l9 7v9h-6v-6H9v6H3z",pin:"M12 21s-7-6.5-7-12a7 7 0 1 1 14 0c0 5.5-7 12-7 12zM12 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",car:"M5 16V11l2-5h10l2 5v5M5 16h14M5 16v2M19 16v2M7.5 13h.01M16.5 13h.01",check:"M5 12l5 5 9-10",alert:"M12 3 2 20h20zM12 10v4M12 17h.01",sun:"M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10zM12 1v2M12 21v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M1 12h2M21 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4",moon:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z",contrast:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM12 3v18",gear:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z",tv:"M3 5h18v12H3zM8 21h8",phone:"M7 2h10v20H7zM11 18h2",desk:"M3 4h18v12H3zM8 20h8M12 16v4",plus:"M12 5v14M5 12h14",play:"M7 4v16l13-8z",pause:"M7 4h4v16H7zM13 4h4v16h-4z",stop:"M6 6h12v12H6z",x:"M6 6l12 12M18 6 6 18",brief:"M4 7h16v12H4zM9 7V4h6v3",refresh:"M20 11a8 8 0 1 0-2.3 5.7M20 4v7h-7",call:"M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z",ext:"M14 4h6v6M20 4l-9 9M18 14v6H4V6h6",calendar:"M4 6h16v14H4zM4 10h16M8 3v4M16 3v4",info:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 11v5M12 8h.01",grip:"M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01",sliders:"M4 7h10M18 7h2M4 17h4M12 17h8M16 5v4M10 15v4",archive:"M3 4h18v4H3zM5 8v12h14V8M10 12h4",shield:"M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6zM9 12l2 2 4-4",trash:"M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"};function o(e,n=0,i=e){function a({size:o=24,strokeWidth:i=2,absoluteStrokeWidth:u,fill:l="none",...c}){return(0,t.jsx)("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:l,stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round",...c,children:(0,t.jsx)("path",{d:r[e],transform:n?`rotate(${n} 12 12)`:void 0})})}return a.displayName=i,a}function i(e,r=e){function o({size:r,className:i,style:a,...u}){let l=u["aria-label"];return(0,t.jsx)("span",{"aria-hidden":u["aria-hidden"]??(!l||void 0),"aria-label":l,role:l?"img":void 0,className:["flint-mask",i].filter(Boolean).join(" "),style:{"--src":`url(${(0,n.withBase)(`/figma/${e}.svg`)})`,...void 0!==r?{width:r,height:r}:{},...a}})}return o.displayName=r,o}e.s(["FLINT_PATHS",0,r],78295);let a=o("plane",0,"Plane"),u=o("x",0,"X"),l=o("x",0,"XIcon"),c=o("plus",0,"Plus"),s=o("trash",0,"Trash2"),d=o("check",0,"Check"),f=o("car",0,"Car"),p=o("info",0,"Info"),m=o("clock",0,"Clock");o("clock",0,"History");let h=o("clock",0,"Timer"),v=o("pause",0,"Pause"),g=o("stop",0,"Stop"),y=o("play",0,"Play"),b=o("chev",0,"ChevronRight"),E=o("chev",90,"ChevronDown"),M=o("chev",-90,"ChevronUp"),w=o("back",0,"ChevronLeft"),C=o("bell",0,"Bell"),S=o("search",0,"Search"),P=o("sun",0,"Sun"),R=o("moon",0,"Moon"),N=o("contrast",0,"Monitor"),k=o("gear",0,"Settings");o("sliders",0,"Settings2");let x=o("sliders",0,"SlidersHorizontal"),O=o("share",0,"Share2"),L=o("ext",0,"ExternalLink"),T=o("call",0,"Phone");o("pin",0,"Pin");let A=o("pin",0,"MapPin"),I=o("cloud",0,"Cloud"),D=o("rain",0,"CloudRain"),j=o("snow",0,"CloudSnow"),_=o("fog",0,"CloudFog"),F=o("bolt",0,"CloudLightning"),z=o("wind",0,"Wind"),W=o("alert",0,"AlertTriangle"),V=o("alert",0,"TriangleAlert"),$=o("info",0,"CircleAlert"),H=o("calendar",0,"CalendarDays"),B=o("calendar",0,"Calendar"),U=o("grip",0,"GripVertical"),G=o("grip",0,"GripVerticalIcon");o("refresh",0,"RotateCcw"),o("layers",0,"LayoutGrid");let X=i("arrow-ne","ArrowUpRight"),K=i("arrow-se","ArrowDownRight"),Y=i("plane-takeoff","PlaneTakeoff"),Z=i("plane-landing","PlaneLanding"),q=i("past-flights","PastFlights"),Q=i("wind-s","WindDirection"),J=i("wind-arrow","WindArrow"),ee=i("checkmark-filled","CircleCheck"),et=i("checkmark-filled","CheckCircle2"),en=i("cloud-sun","CloudSun"),er=i("cloud-moon","CloudMoon"),eo=i("droplet","Droplet"),ei=i("glyph-storm","StormGlyph"),ea=i("glyph-warning","WarningGlyph"),eu=i("glyph-inbound","InboundGlyph"),el=i("glyph-plane","PlaneMask"),ec=i("airport-tower","AirportTower");e.s(["AirportTower",0,ec,"AlertTriangle",0,W,"ArrowDownRight",0,K,"ArrowUpRight",0,X,"Bell",0,C,"Calendar",0,B,"CalendarDays",0,H,"Car",0,f,"Check",0,d,"CheckCircle2",0,et,"ChevronDown",0,E,"ChevronLeft",0,w,"ChevronRight",0,b,"ChevronUp",0,M,"CircleAlert",0,$,"CircleCheck",0,ee,"Clock",0,m,"Cloud",0,I,"CloudFog",0,_,"CloudLightning",0,F,"CloudMoon",0,er,"CloudRain",0,D,"CloudSnow",0,j,"CloudSun",0,en,"Droplet",0,eo,"ExternalLink",0,L,"GripVertical",0,U,"GripVerticalIcon",0,G,"InboundGlyph",0,eu,"Info",0,p,"MapPin",0,A,"Monitor",0,N,"Moon",0,R,"PastFlights",0,q,"Pause",0,v,"Phone",0,T,"Plane",0,a,"PlaneGlyph",0,function({size:e=24,className:r}){return(0,t.jsx)("img",{src:(0,n.withBase)("/figma/glyph-plane.svg"),width:e,height:e,alt:"","aria-hidden":"true",className:r,style:{display:"block",flex:"none",transform:"rotate(90deg)"}})},"PlaneLanding",0,Z,"PlaneMask",0,el,"PlaneTakeoff",0,Y,"Play",0,y,"Plus",0,c,"Search",0,S,"Settings",0,k,"Share2",0,O,"SlidersHorizontal",0,x,"Stop",0,g,"StormGlyph",0,ei,"Sun",0,P,"Timer",0,h,"Trash2",0,s,"TriangleAlert",0,V,"WarningGlyph",0,ea,"Wind",0,z,"WindArrow",0,J,"WindDirection",0,Q,"X",0,u,"XIcon",0,l],30086)},81140,e=>{"use strict";var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0}),r=!!("u">typeof window&&window.document&&window.document.createElement);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return n(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function i(e){if(!r)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function a(e){return"IFRAME"===e.tagName}n(o,"composeEventHandlers"),n(function(e){if(!r)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),n(i,"getOwnerDocument"),n(function e(t,n=!1){let{activeElement:r}=i(t);if(!r?.nodeName)return null;if(a(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=i(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),n(a,"isFrame"),e.s(["composeEventHandlers",0,o])},5844,e=>{"use strict";e.s(["IS_DEVELOPMENT",0,!1])},20783,e=>{"use strict";var t=e.i(71645),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{"use strict";var t=e.i(71645),n=e.i(43476),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e,r=[]){let u=[];function l(r,i){let a=t.createContext(i);a.displayName=r+"Context";let l=u.length;u=[...u,i];let c=o(r=>{let{scope:o,children:i,...u}=r,c=o?.[e]?.[l]||a,s=t.useMemo(()=>u,Object.values(u));return(0,n.jsx)(c.Provider,{value:s,children:i})},"Provider");function s(n,o,u={}){let{optional:c=!1}=u,d=o?.[e]?.[l]||a,f=t.useContext(d);if(f)return f;if(void 0!==i)return i;if(!c)throw Error(`\`${n}\` must be used within \`${r}\``)}return c.displayName=r+"Provider",o(s,"useContext"),[c,s]}o(l,"createContext");let c=o(()=>{let n=u.map(e=>t.createContext(e));return o(function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])},"useScope")},"createScope");return c.scopeName=e,[l,a(c,...r)]}function a(...e){let n=e[0];if(1===e.length)return n;let r=o(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return o(function(e){let o=r.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=n.scopeName,r}o(function(e,r){let i=t.createContext(r);i.displayName=e+"Context";let a=o(e=>{let{children:r,...o}=e,a=t.useMemo(()=>o,Object.values(o));return(0,n.jsx)(i.Provider,{value:a,children:r})},"Provider");function u(n,o={}){let{optional:a=!1}=o,l=t.useContext(i);if(l)return l;if(void 0!==r)return r;if(!a)throw Error(`\`${n}\` must be used within \`${e}\``)}return a.displayName=e+"Provider",o(u,"useContext"),[a,u]},"createContext"),o(i,"createContextScope"),o(a,"composeContextScopes"),e.s(["createContextScope",0,i])},26330,e=>{"use strict";var t,n=e.i(71645),r=e.i(81140),o=e.i(48425),i=e.i(20783),a=e.i(30207),u=e.i(43476),l=Object.defineProperty,c=(e,t)=>l(e,"name",{value:t,configurable:!0}),s="dismissableLayer.update",d=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),f=n.forwardRef(c(function(e,l){let{disableOutsidePointerEvents:f=!1,deferPointerDownOutside:p=!1,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:E,onDismiss:M,...w}=e,C=n.useContext(d),[S,P]=n.useState(null),R=S?.ownerDocument??globalThis?.document,[,N]=n.useState({}),k=(0,i.useComposedRefs)(l,P),x=Array.from(C.layers),[O]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),L=O?x.indexOf(O):-1,T=S?x.indexOf(S):-1,A=C.layersWithOutsidePointerEventsDisabled.size>0,I=T>=L,D=n.useRef(!1),j=h(e=>{y?.(e),E?.(e),e.defaultPrevented||M?.()},{ownerDocument:R,deferPointerDownOutside:p,isDeferredPointerDownOutsideRef:D,dismissableSurfaces:C.dismissableSurfaces,shouldHandlePointerDownOutside:n.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...C.branches].some(t=>t.contains(e));return I&&!t},[C.branches,I])}),_=v(e=>{if(p&&D.current)return;let t=e.target;![...C.branches].some(e=>e.contains(t))&&(b?.(e),E?.(e),e.defaultPrevented||M?.())},R),F=!!S&&T===x.length-1,z=(0,a.useCallbackRef)(e=>{"Escape"===e.key&&(m?.(e),!e.defaultPrevented&&M&&(e.preventDefault(),M()))});return n.useEffect(()=>{if(F)return R.addEventListener("keydown",z,{capture:!0}),()=>R.removeEventListener("keydown",z,{capture:!0})},[R,F,z]),n.useEffect(()=>{if(S)return f&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(t=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(S)),C.layers.add(S),g(),()=>{f&&(C.layersWithOutsidePointerEventsDisabled.delete(S),0===C.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=t))}},[S,R,f,C]),n.useEffect(()=>()=>{S&&(C.layers.delete(S),C.layersWithOutsidePointerEventsDisabled.delete(S),g())},[S,C]),n.useEffect(()=>{let e=c(()=>N({}),"handleUpdate");return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,u.jsx)(o.Primitive.div,{...w,ref:k,style:{pointerEvents:A?I?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,_.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,j.onPointerDownCapture)})},"DismissableLayer"));function p(){let e=n.useContext(d),[t,r]=n.useState(null);return n.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}c(p,"useDismissableLayerSurface");var m=c(()=>!0,"IS_TRUE");function h(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:u,shouldHandlePointerDownOutside:l=m}=t,s=(0,a.useCallbackRef)(e),d=n.useRef(!1),f=n.useRef(!1),p=n.useRef(new Map),h=n.useRef(()=>{});return n.useEffect(()=>{function e(){f.current=!1,i.current=!1,p.current.clear()}function t(){return Array.from(p.current.values()).some(Boolean)}function n(e){if(!f.current)return;let t=e.target;t instanceof Node&&[...u].some(e=>e.contains(t))||p.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{f.current&&h.current()},0)}function a(e){f.current&&p.current.set(e.type,!1)}c(e,"resetOutsideInteraction"),c(t,"isOutsideInteractionIntercepted"),c(n,"handleInteractionCapture"),c(a,"handleInteractionBubble");let m=c(n=>{if(n.target&&!d.current){let a=function(){r.removeEventListener("click",h.current);let n=t();e(),n||y("dismissableLayer.pointerDownOutside",s,u,{discrete:!0})};if(c(a,"handleAndDispatchPointerDownOutsideEvent"),!l(n.target)){r.removeEventListener("click",h.current),e(),d.current=!1;return}let u={originalEvent:n};f.current=!0,i.current=o&&0===n.button,p.current.clear(),o&&0===n.button?(r.removeEventListener("click",h.current),h.current=a,r.addEventListener("click",h.current,{once:!0})):a()}else r.removeEventListener("click",h.current),e();d.current=!1},"handlePointerDown"),v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of v)r.addEventListener(e,n,!0),r.addEventListener(e,a);let g=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(g),r.removeEventListener("pointerdown",m),r.removeEventListener("click",h.current),v))r.removeEventListener(e,n,!0),r.removeEventListener(e,a)}},[r,s,o,i,u,l]),{onPointerDownCapture:c(()=>d.current=!0,"onPointerDownCapture")}}function v(e,t=globalThis?.document){let r=(0,a.useCallbackRef)(e),o=n.useRef(!1);return n.useEffect(()=>{let e=c(e=>{e.target&&!o.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:c(()=>o.current=!0,"onFocusCapture"),onBlurCapture:c(()=>o.current=!1,"onBlurCapture")}}function g(){let e=new CustomEvent(s);document.dispatchEvent(e)}function y(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,o.dispatchDiscreteCustomEvent)(i,a):i.dispatchEvent(a)}c(h,"usePointerDownOutside"),c(v,"useFocusOutside"),c(g,"dispatchUpdate"),c(y,"handleAndDispatchCustomEvent"),e.s(["DismissableLayer",0,f,"useDismissableLayerSurface",0,p])},3536,e=>{"use strict";var t=e.i(71645),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0}),o=0,i=null;function a(){t.useEffect(()=>{i||(i={start:u(),end:u()});let{start:e,end:t}=i;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),o++,()=>{1===o&&(i?.start.remove(),i?.end.remove(),i=null),o=Math.max(0,o-1)}},[])}function u(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}r(function(e){return a(),e.children},"FocusGuards"),r(a,"useFocusGuards"),r(u,"createFocusGuard"),e.s(["useFocusGuards",0,a])},65491,e=>{"use strict";var t=e.i(71645),n=e.i(20783),r=e.i(48425),o=e.i(30207),i=e.i(43476),a=Object.defineProperty,u=(e,t)=>a(e,"name",{value:t,configurable:!0}),l="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",s={bubbles:!1,cancelable:!0},d=t.forwardRef(u(function(e,a){let{loop:d=!1,trapped:h=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...E}=e,[M,C]=t.useState(null),S=(0,o.useCallbackRef)(v),P=(0,o.useCallbackRef)(g),R=t.useRef(null),N=(0,n.useComposedRefs)(a,C),k=t.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;t.useEffect(()=>{if(h){let e=function(e){if(k.paused||!M)return;let t=e.target;M.contains(t)?R.current=t:y(R.current,{select:!0})},t=function(e){if(k.paused||!M)return;let t=e.relatedTarget;null!==t&&(M.contains(t)||y(R.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&y(M)};u(e,"handleFocusIn"),u(t,"handleFocusOut"),u(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return M&&r.observe(M,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[h,M,k.paused]),t.useEffect(()=>{if(M){b.add(k);let e=document.activeElement;if(!M.contains(e)){let t=new CustomEvent(l,s);M.addEventListener(l,S),M.dispatchEvent(t),t.defaultPrevented||(f(w(m(M)),{select:!0}),document.activeElement===e&&y(M))}return()=>{M.removeEventListener(l,S),setTimeout(()=>{let t=new CustomEvent(c,s);M.addEventListener(c,P),M.dispatchEvent(t),t.defaultPrevented||y(e??document.body,{select:!0}),M.removeEventListener(c,P),b.remove(k)},0)}}},[M,S,P,k]);let x=t.useCallback(e=>{if(!d&&!h||k.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[r,o]=p(t);r&&o?e.shiftKey||n!==o?e.shiftKey&&n===r&&(e.preventDefault(),d&&y(o,{select:!0})):(e.preventDefault(),d&&y(r,{select:!0})):n===t&&e.preventDefault()}},[d,h,k.paused]);return(0,i.jsx)(r.Primitive.div,{tabIndex:-1,...E,ref:N,onKeyDown:x})},"FocusScope"));function f(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(y(r,{select:t}),document.activeElement!==n)return}function p(e){let t=m(e);return[h(t,e),h(t.reverse(),e)]}function m(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:u(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function h(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):v(r,{upTo:t})))return r}function v(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function g(e){return e instanceof HTMLInputElement&&"select"in e}function y(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&g(e)&&t&&e.select()}}u(f,"focusFirst"),u(p,"getTabbableEdges"),u(m,"getTabbableCandidates"),u(h,"findVisible"),u(v,"isHidden"),u(g,"isSelectableInput"),u(y,"focus");var b=E();function E(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=M(e,t)).unshift(t)},remove(t){e=M(e,t),e[0]?.resume()}}}function M(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function w(e){return e.filter(e=>"A"!==e.tagName)}u(E,"createFocusScopesStack"),u(M,"arrayRemove"),u(w,"removeLinks"),e.s(["FocusScope",0,d])},10772,e=>{"use strict";var t=e.i(71645),n=e.i(34620),r=Object.defineProperty,o=t[" useId ".trim().toString()]||(()=>void 0),i=0;function a(e){let[r,a]=t.useState(o());return(0,n.useLayoutEffect)(()=>{e||a(e=>e??String(i++))},[e]),e||(r?`radix-${r}`:"")}r(a,"name",{value:"useId",configurable:!0}),e.s(["useId",0,a])},74606,e=>{"use strict";var t=e.i(71645),n=e.i(74080),r=e.i(48425),o=e.i(34620),i=e.i(43476),a=Object.defineProperty,u=t.forwardRef(a(function(e,a){let{container:u,...l}=e,[c,s]=t.useState(!1);(0,o.useLayoutEffect)(()=>s(!0),[]);let d=u||c&&globalThis?.document?.body;return d?n.createPortal((0,i.jsx)(r.Primitive.div,{...l,ref:a}),d):null},"name",{value:"Portal",configurable:!0}));e.s(["Portal",0,u])},96626,e=>{"use strict";var t=e.i(71645),n=e.i(34620),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e,n){return t.useReducer((e,t)=>n[e][t]??e,e)}o(i,"useStateMachine");var a=o(e=>{let{present:n,children:r}=e,o=u(n),i="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),a=c(o.ref,d(i));return"function"==typeof r||o.isPresent?t.cloneElement(i,{ref:a}):null},"Presence");function u(e){let[r,a]=t.useState(),u=t.useRef(null),l=t.useRef(e),c=t.useRef("none"),d=t.useRef(void 0),[f,p]=i(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===f?(c.current=d.current??s(u.current),d.current=void 0):c.current="none"},[f]),(0,n.useLayoutEffect)(()=>{let t=u.current,n=l.current;if(n!==e){let r=c.current,o=s(t);e?(d.current=o,p("MOUNT")):"none"===o||t?.display==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),l.current=e}},[e,p]),(0,n.useLayoutEffect)(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=o(n=>{let o=s(u.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(p("ANIMATION_END"),!l.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},"handleAnimationEnd"),i=o(e=>{e.target===r&&(c.current=s(u.current))},"handleAnimationStart");return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);u.current=t,d.current=s(t)}else u.current=null;a(e)},[])}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){let n=t.useRef(e);return n.current=e,t.useCallback(e=>{let t=n.current,r=!1,o=t.map(t=>{let n=l(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e{"use strict";var t=e.i(71645),n=e.i(74080),r=e.i(91918),o=e.i(43476),i=Object.defineProperty,a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let i=(0,r.createSlot)(`Primitive.${n}`),a=t.forwardRef((e,t)=>{let{asChild:r,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(r?i:n,{...a,ref:t})});return a.displayName=`Primitive.${n}`,{...e,[n]:a}},{});function u(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}function l(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}i(u,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["Primitive",0,a,"dispatchDiscreteCustomEvent",0,u],48425),(0,Object.defineProperty)(l,"name",{value:"useCallbackRef",configurable:!0}),e.s(["useCallbackRef",0,l],30207)},91918,e=>{"use strict";var t=e.i(71645),n=e.i(20783),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e){let r=t.forwardRef((r,o)=>{let{children:i,...a}=r,u=null,l=!1,c=[];h(i)&&"function"==typeof b&&(i=b(i._payload)),t.Children.forEach(i,e=>{if(p(e)){l=!0;let t="child"in e.props?e.props.child:e.props.children;h(t)&&"function"==typeof b&&(t=b(t._payload)),u=s(e,t),c.push(u?.props?.children)}else c.push(e)}),u?u=t.cloneElement(u,void 0,c):!l&&1===t.Children.count(i)&&t.isValidElement(i)&&(u=i);let m=u?f(u):void 0,v=(0,n.useComposedRefs)(o,m);if(!u){if(i||0===i)throw Error(l?y(e):g(e));return i}let E=d(a,u.props??{});return u.type!==t.Fragment&&(E.ref=o?v:m),t.cloneElement(u,E)});return r.displayName=`${e}.Slot`,r}o(i,"createSlot");var a=i("Slot"),u=Symbol.for("radix.slottable");function l(e){let t=o(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=u,t}o(l,"createSlottable");var c=l("Slottable"),s=o((e,n)=>{if("child"in e.props){let n=e.props.child;return t.isValidElement(n)?t.cloneElement(n,void 0,e.props.children(n.props.children)):null}return t.isValidElement(n)?n:null},"getSlottableElementFromSlottable");function d(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function f(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function p(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}o(d,"mergeProps"),o(f,"getElementRef"),o(p,"isSlottable");var m=Symbol.for("react.lazy");function h(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===m&&"_payload"in e&&v(e._payload)}function v(e){return"object"==typeof e&&null!==e&&"then"in e}o(h,"isLazyComponent"),o(v,"isPromiseLike");var g=o(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),y=o(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),b=t[" use ".trim().toString()];e.s(["Root",0,a,"Slot",0,a,"Slottable",0,c,"createSlot",0,i,"createSlottable",0,l])},69340,e=>{"use strict";var t=e.i(71645),n=e.i(5844),r=e.i(34620),o=Object.defineProperty,i=t[" useEffectEvent ".trim().toString()],a=t[" useInsertionEffect ".trim().toString()];function u(e){if("function"==typeof i)return i(e);let n=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof a?a(()=>{n.current=e}):(0,r.useLayoutEffect)(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}o(u,"name",{value:"useEffectEvent",configurable:!0});var l=Object.defineProperty,c=(e,t)=>l(e,"name",{value:t,configurable:!0}),s=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function d({prop:e,defaultProp:r,onChange:o=c(()=>{},"onChange"),caller:i}){let[a,u,l]=f({defaultProp:r,onChange:o}),s=void 0!==e,m=s?e:a;if(n.IS_DEVELOPMENT){let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=s},[s,i])}return[m,t.useCallback(t=>{if(s){let n=p(t)?t(e):t;n!==e&&l.current?.(n)}else u(t)},[s,e,u,l])]}function f({defaultProp:e,onChange:n}){let[r,o]=t.useState(e),i=t.useRef(r),a=t.useRef(n);return s(()=>{a.current=n},[n]),t.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}function p(e){return"function"==typeof e}c(d,"useControllableState"),c(f,"useUncontrolledState"),c(p,"isFunction");var m=Symbol("RADIX:SYNC_STATE");c(function(e,r,o,i){let{prop:a,defaultProp:l,onChange:c,caller:s}=r,d=void 0!==a,f=u(c);if(n.IS_DEVELOPMENT){let e=t.useRef(void 0!==a);t.useEffect(()=>{let t=e.current;if(t!==d){let e=d?"controlled":"uncontrolled";console.warn(`${s} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=d},[d,s])}let p=[{...o,state:l}];i&&p.push(i);let[h,v]=t.useReducer((t,n)=>{if(n.type===m)return{...t,state:n.state};let r=e(t,n);return d&&!Object.is(r.state,t.state)&&f(r.state),r},...p),g=h.state,y=t.useRef(g);t.useEffect(()=>{y.current!==g&&(y.current=g,d||f(g))},[g,y,d]);let b=t.useMemo(()=>void 0!==a?{...h,state:a}:h,[h,a]);return t.useEffect(()=>{d&&!Object.is(a,h.state)&&v({type:m,state:a})},[a,h.state,d]),[b,v]},"useControllableStateReducer"),e.s(["useControllableState",0,d],69340)},34620,e=>{"use strict";var t=e.i(71645),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,n])},86312,e=>{"use strict";var t=new WeakMap,n=new WeakMap,r={},o=0,i=function(e){return e&&(e.host||i(e.parentNode))},a=function(e,a,u,l){var c=(Array.isArray(e)?e:[e]).map(function(e){if(a.contains(e))return e;var t=i(e);return t&&a.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",a,". Doing nothing"),null)}).filter(function(e){return!!e});r[u]||(r[u]=new WeakMap);var s=r[u],d=[],f=new Set,p=new Set(c),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};c.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var r=e.getAttribute(l),o=null!==r&&"false"!==r,i=(t.get(e)||0)+1,a=(s.get(e)||0)+1;t.set(e,i),s.set(e,a),d.push(e),1===i&&o&&n.set(e,!0),1===a&&e.setAttribute(u,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(a),f.clear(),o++,function(){d.forEach(function(e){var r=t.get(e)-1,o=s.get(e)-1;t.set(e,r),s.set(e,o),r||(n.has(e)||e.removeAttribute(l),n.delete(e)),o||e.removeAttribute(u)}),--o||(t=new WeakMap,t=new WeakMap,n=new WeakMap,r={})}};e.s(["hideOthers",0,function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"{"use strict";var t,n,r,o,i,a,u,l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var s=("function"==typeof SuppressedError&&SuppressedError,e.i(71645)),d="right-scroll-bar-position",f="width-before-scroll-bar";function p(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="u">typeof window?s.useLayoutEffect:s.useEffect,h=new WeakMap,v=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,i={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}).options=l({async:!0,ssr:!1},t),i),g=function(){},y=s.forwardRef(function(e,t){var n,r,o,i,a=s.useRef(null),u=s.useState({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:g}),d=u[0],f=u[1],y=e.forwardProps,b=e.children,E=e.className,M=e.removeScrollBar,w=e.enabled,C=e.shards,S=e.sideCar,P=e.noRelative,R=e.noIsolation,N=e.inert,k=e.allowPinchZoom,x=e.as,O=e.gapMode,L=c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=(n=[a,t],r=function(e){return n.forEach(function(t){return p(t,e)})},(o=(0,s.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,m(function(){var e=h.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){t.has(e)||p(e,o)})}h.set(i,n)},[n]),i),A=l(l({},L),d);return s.createElement(s.Fragment,null,w&&s.createElement(S,{sideCar:v,removeScrollBar:M,shards:C,noRelative:P,noIsolation:R,inert:N,setCallbacks:f,allowPinchZoom:!!k,lockRef:a,gapMode:O}),y?s.cloneElement(s.Children.only(b),l(l({},A),{ref:T})):s.createElement(void 0===x?"div":x,l({},A,{className:E,ref:T}),b))});y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:f,zeroRight:d};var b=function(e){var t=e.sideCar,n=c(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,l({},n))};b.isSideCarExport=!0;var E=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},M=function(){var e=E();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},w=function(){var e=M();return function(t){return e(t.styles,t.dynamic),null}},C={left:0,top:0,right:0,gap:0},S=function(e){return parseInt(e||"",10)||0},P=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[S(n),S(r),S(o)]},R=function(e){if(void 0===e&&(e="margin"),"u"