
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="61a02c9a-f901-5d86-8a39-ecd73a8c4343")}catch(e){}}();
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45208],{52923:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Dialog:()=>f,DialogContext:()=>h});var r=n(11193),o=n(13072),a=n(11512),i=n(90994),l=n(83450),c=n(79060),d=n(53945),s=n(87256),u=n.n(s);n(62266),n(63020);try{let e=Object.defineProperty({},"passive",{get(){}}),t=()=>{};window.addEventListener("scroll",t,e),window.removeEventListener("scroll",t,e)}catch(e){}let h=(0,a.createContext)(void 0),m={dark:"#000",light:"#999999"};function f(e){let{active:t,children:n,className:s,onAnimationDone:f,onClickOutside:g,height:v="auto",allowOverflow:p,drawer:w=!0,drawerClassname:y="",verticalScroll:C=!0,style:b,enableSkip:S,onScroll:M,container:j,fixed:k,resetScroll:A,"data-testid":R,nested:F,isModal:N=!1}=e,E=F?i.d.NestedRoot:i.d.Root,O=(0,a.useRef)(null);(0,a.useEffect)(()=>{t&&O.current&&(O.current.scrollTop=0)},[t,A]);let I=(0,a.useMemo)(()=>({isInDialog:!0}),[]),L=(0,a.useRef)(null),{metaThemeColor:P}=(0,l.J)("dashboard"),{resolvedTheme:T}=(0,c.F)(),V=function(e){let t=(0,a.useRef)();return(0,a.useEffect)(()=>{t.current=e}),t.current||!1}(t),D=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!(0,d.G6)()||V===t)return;let e=m[null!=T?T:"dark"],n=t?P:e,r=t?e:P,o=performance.now(),a=e=>{let i=Math.min((e-o)/400,1),c=_(i);if(D.current){let e=c;t||(e=1-e),D.current.style.opacity="".concat(100*e,"%")}let d=x(n,r,c);(0,l.z)({color:d,setBackgroundColor:!0}),i<1&&(L.current=requestAnimationFrame(a))};return L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(a),()=>{L.current&&cancelAnimationFrame(L.current)}},[t,P,T]),(0,r.jsx)(E,{dismissible:!S,fixed:k,modal:N,onOpenChange:e=>{e||(g(),window.requestAnimationFrame(()=>document.body.style.pointerEvents="auto"),setTimeout(()=>{null==f||f()},500))},open:t,children:(0,r.jsxs)(i.d.Portal,{container:j,children:[(0,r.jsx)("div",{className:(0,o.W)(u().overlay,t&&u().open,!(0,d.G6)()&&u().notSafari),onClick:()=>{g()},ref:D,style:{"--animation-duration":"".concat(400,"ms"),"--curve":"cubic-bezier(".concat(.32,", ").concat(.72,", ").concat(0,", ").concat(1,")")}}),(0,r.jsx)(i.d.Content,{className:(0,o.W)({[String(u().drawer)]:w},y,"geist-dialog",s),"data-testid":R,onAnimationEnd:e=>{e||null==f||f()},style:b,children:(0,r.jsx)("div",{className:(0,o.W)({[String(u().allowOverflow)]:w&&p,[String(u().inner)]:w,[String(u().max)]:"max"===v,[String(u().noVerticalScroll)]:!C},"tailwind"),onScroll:()=>{O.current&&(null==M||M(O.current))},ref:O,children:(0,r.jsx)(h.Provider,{value:I,children:n})})})]})})}let x=(e,t,n)=>{let r=Number.parseInt(e.slice(1,3),16),o=Number.parseInt(e.slice(3,5),16),a=Number.parseInt(e.slice(5,7),16),i=Number.parseInt(t.slice(1,3),16),l=Number.parseInt(t.slice(3,5),16),c=Number.parseInt(t.slice(5,7),16),d=Math.round(r+n*(i-r)),s=Math.round(o+n*(l-o)),u=Math.round(a+n*(c-a));return"#".concat(d.toString(16).padStart(2,"0")).concat(s.toString(16).padStart(2,"0")).concat(u.toString(16).padStart(2,"0"))},g=[0,.021468159999999997,.04267328,.06361631999999999,.08429824,.10472000000000002,.12488255999999998,.14478687999999998,.16443392000000004,.18382464,.20296000000000003,.22184096000000003,.24046847999999998,.25884352,.27696704,.29483999999999994,.3124633599999999,.32983808,.34696512000000007,.3638454400000001,.3804800000000001,.39686976,.41301568,.42891872000000003,.44457983999999995,.45999999999999996,.47518016,.49012127999999994,.50482432,.5192902399999999,.5335199999999999,.5475145599999999,.5612748799999999,.57480192,.58809664,.6011599999999999,.61399296,.6265964799999999,.6389715200000001,.65111904,.6630400000000001,.6747353600000001,.68620608,.6974531200000001,.7084774400000001,.7192800000000001,.72986176,.7402236799999999,.7503667200000002,.7602918399999999,.77,.7794921599999999,.7887692800000001,.79783232,.80668224,.81532,.82374656,.83196288,.8399699199999999,.84776864,.85536,.8627449599999999,.86992448,.87689952,.8836710400000001,.8902400000000001,.89660736,.9027740800000001,.90874112,.91450944,.92008,.92545376,.9306316800000001,.9356147199999999,.9404038399999999,.945,.94940416,.95361728,.9576403200000001,.96147424,.9651200000000001,.9685785600000001,.97185088,.97493792,.9778406399999999,.9805599999999999,.9830969599999999,.9854524800000001,.98762752,.9896230400000001,.9914400000000001,.9930793600000001,.99454208,.99582912,.9969414400000001,.99788,.99864576,.9992396800000001,.99966272,.9999158399999999,1],_=e=>{let t=100*Math.min(Math.max(e,0),1),n=Math.min(Math.floor(t),99),r=g[n];return r+t%1*(g[n+1]-r)}},45208:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(11193),o=n(11512),a=n(52923);let i=e=>{let{height:t,show:n=!1,onDismiss:i,onAnimationDone:l,children:c,container:d,className:s,verticalScroll:u,fixed:h,resetScroll:m,onScroll:f,nested:x}=e,g=(0,o.useMemo)(()=>({height:t}),[t]);return(0,r.jsx)(a.Dialog,{active:n,className:s,container:d,drawer:!0,fixed:h,height:t,nested:x,onAnimationDone:l,onClickOutside:i,onScroll:f,resetScroll:m,style:g,verticalScroll:u,children:c})}},83450:(e,t,n)=>{"use strict";n.d(t,{GeistProvider:()=>p,z:()=>C,J:()=>y});var r=n(11193),o=n(11512),a=n(79060),i=n(70505),l=n(59792),c=n(67917),d=n(31710),s=(n(86312),n(83452)),u=n.n(s);let h=(0,o.createContext)({rootOrigin:{x:0,y:0},rootBounds:{width:0,height:0},portalRef:null,activeId:null,setActiveId:()=>void 0,hoveredId:null,setHoveredId:()=>void 0,updateActiveContextCard:()=>void 0,skipTransition:!1,rootVisible:!1,distanceFromLast:0,lastOrigin:null});function m(e){let{children:t}=e,[n,a]=(0,o.useState)(!1);(0,o.useEffect)(()=>a(!0),[]);let[i,l]=(0,d.Z)(),s=(0,o.useRef)(null),[m,f]=(0,o.useState)(null),[x,g]=(0,o.useState)(!1),[_,v]=(0,o.useState)(null),p=(0,o.useRef)(null);function w(e){p.current=e,g(null!==e)}let y=e=>{((null==e?void 0:e.id)===p.current||null===e)&&f(e)},C=(0,o.useMemo)(()=>m?{width:m.contentSize.width+2,height:m.contentSize.height+2,x:m.origin.x,y:m.origin.y,offsetX:m.offset.x,offsetY:m.offset.y,side:m.side}:{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0,side:"top"},[m]),b=function(e){let t=(0,o.useRef)(null);return(0,o.useEffect)(()=>{t.current=e}),t.current}(C),S=(0,o.useMemo)(()=>{if(!b)return 0;let e=Math.max(C.x,b.x),t=Math.min(C.x+C.width,b.x+b.width),n=Math.max(C.y,b.y),r=Math.min(C.y+C.height,b.y+b.height);if(e<t&&n<r){let o=C.width*C.height;return 0===o?0:(t-e)*(r-n)/o*100}return 0},[C,b]),M=(0,o.useMemo)(()=>{var e,t;return Math.sqrt(((null!==(e=null==b?void 0:b.x)&&void 0!==e?e:0)-C.x)**2+((null!==(t=null==b?void 0:b.y)&&void 0!==t?t:0)-C.y)**2)},[C.x,C.y,null==b?void 0:b.x,null==b?void 0:b.y]),j=(0,o.useMemo)(()=>b?{x:b.x-C.x,y:b.y-C.y}:null,[C,b]),k=(0,o.useMemo)(()=>M>150||S>100,[M,S]),A=(0,o.useMemo)(()=>({updateActiveContextCard:y,rootOrigin:{...C},rootBounds:l,portalRef:s,setActiveId:w,activeId:p,setHoveredId:v,hoveredId:_,skipTransition:k,rootVisible:x,distanceFromLast:M,lastOrigin:j}),[C,l,_,k,x,M,j]),R=(0,o.useMemo)(()=>"top"===C.side?0:"bottom"===C.side?180:"left"===C.side?270:90,[C]);return(0,r.jsxs)(h.Provider,{value:A,children:[t,n?(0,c.createPortal)((0,r.jsx)("div",{className:u().portal,ref:i,children:(0,r.jsxs)("div",{className:u().contextCardRootVisibility,style:{opacity:x?1:0},children:[(0,r.jsx)("div",{className:u().contextCardTip,"data-skip-transition":k,style:{transform:"translate(".concat(C.x-C.offsetX,"px, ").concat(C.y-C.offsetY,"px) rotate(").concat(R,"deg)")},children:(0,r.jsxs)("svg",{height:"10",viewBox:"0 0 14 10",width:"14",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M7.00009 8.11236L1.46893 0H12.5312L7.00009 8.11236Z",fill:"var(--ds-background-100)"}),(0,r.jsx)("path",{d:"M0.94043 1L7.00009 9.8875L13.0597 1H11.8494L7.00009 8.11236L2.15075 1H0.94043Z",fill:"var(--ds-gray-400)"})]})}),(0,r.jsx)("div",{className:u().contextCardRoot,"data-skip-transition":k,style:{transform:"translate(".concat(C.x,"px,").concat(C.y,"px)"),width:C.width,height:C.height},children:(0,r.jsx)("div",{ref:s})})]})}),document.body):null]})}var f=n(2471),x=n.n(f),g=n(88385),_=n.n(g);let v={light:"light-theme",dark:"dark-theme"};function p(e){let{children:t,storageKey:n="geist-theme",setBackgroundColor:i=!0,...c}=e;return x(),_(),(0,r.jsxs)(a.f,{attribute:"class",disableTransitionOnChange:!0,storageKey:n,value:v,...c,children:[(0,r.jsx)(o.Suspense,{children:(0,r.jsx)(b,{setBackgroundColor:i})}),(0,r.jsx)(l.p,{children:(0,r.jsx)(m,{children:t})})]})}let w={dashboard:{light:"#FFFFFF",dark:"#0A0A0A"},marketing:{light:"#FAFAFA",dark:"#000000"}},y=e=>{let{resolvedTheme:t}=(0,a.F)(),n=(0,i.useSelectedLayoutSegments)(),r=w[e||S(n)];return{metaThemeColor:"dark"===t?r.dark:r.light}},C=e=>{let{color:t,setBackgroundColor:n}=e,r=Array.from(document.querySelectorAll('meta[name="theme-color"]'));if(0===r.length){let e=document.createElement("meta");e.setAttribute("name","theme-color"),document.head.appendChild(e),r.push(e)}r.forEach(e=>{e.setAttribute("content",t)}),n&&(document.documentElement.style.backgroundColor=t)};function b(e){let{setBackgroundColor:t=!0}=e,{metaThemeColor:n}=y();return(0,o.useEffect)(()=>{C({color:n,setBackgroundColor:t})},[n,t]),null}let S=e=>{if(null===e||0===e.length)return"marketing";for(let t of e){if(t.includes("dashboard"))return"dashboard";if(t.includes("auth")){if("signup"===e[1])return"marketing";return"dashboard"}if(t.includes("(team)"))return"dashboard"}return"marketing"}},53945:(e,t,n)=>{"use strict";function r(){return c(/^iPhone/)}function o(){return c(/^iPad/)||c(/^Mac/)&&navigator.maxTouchPoints>1}function a(){return r()||o()}function i(){return c(/^Mac/)||r()||o()}function l(){return navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function c(e){return null!=window.navigator?e.test(window.navigator.platform):void 0}n.d(t,{G6:()=>l,gn:()=>a,mL:()=>i})},83452:e=>{e.exports={portal:"context-card_portal__7uIMS",contextCardTip:"context-card_contextCardTip__JXUxK",contextCardRoot:"context-card_contextCardRoot__jBE_M",contextCardRootContent:"context-card_contextCardRootContent__MNlHW",contextCardContent:"context-card_contextCardContent__0vsq8",contextCardContentVisibility:"context-card_contextCardContentVisibility__OmjsA",contextCardTrigger:"context-card_contextCardTrigger__Pejgm",contextCardRootVisibility:"context-card_contextCardRootVisibility__WD8Ja"}},63020:e=>{e.exports={drawer:"dialog_drawer__zoHbY",noVerticalScroll:"dialog_noVerticalScroll__i73ML",allowOverflow:"dialog_allowOverflow__fDqDx",modalOpen:"dialog_modalOpen__pzqRA",inner:"dialog_inner__XIlj_",max:"dialog_max__C0YX9"}},87256:e=>{e.exports={drawer:"new-dialog_drawer__ykt7Q",noVerticalScroll:"new-dialog_noVerticalScroll__0Be1P",allowOverflow:"new-dialog_allowOverflow__XLQcK",inner:"new-dialog_inner__FYIY1",max:"new-dialog_max__P89aL",overlay:"new-dialog_overlay___0a9q",notSafari:"new-dialog_notSafari__UQu2r",fadeOut:"new-dialog_fadeOut__EAwu1",open:"new-dialog_open__DTLMi",fadeIn:"new-dialog_fadeIn__JDemh"}}}]);
//# debugId=61a02c9a-f901-5d86-8a39-ecd73a8c4343
