1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,905177,833435,e=>{"use strict";var t=e.i(843476),i=e.i(522016),r=e.i(271645);let n=(0,r.forwardRef)(({href:e,children:n,forceNativeAnchor:s=!1,...o},a)=>{let l=(0,r.useMemo)(()=>e?.startsWith("http"),[e]);return!e||l||s?(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",ref:a,...o,children:n}):(0,t.jsx)(i.default,{href:e,ref:a,...o,children:n})});e.s(["UniversalLink",0,n],833435),e.s([],905177)},680902,622289,e=>{"use strict";var t=e.i(247167),i=e.i(271645);let r=function(){if("u"<typeof window)return(t.default.env.DEBUG||"").includes("nuqs");try{let e="nuqs-localStorage-test";if("u"<typeof localStorage)return!1;localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}();function n(e,...t){if(!r)return;let i=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let i=t.shift();return"%O"===e&&i?JSON.stringify(i).replace(/"([^"]+)":/g,"$1:"):String(i)})}(e,...t);performance.mark(i);try{console.log(e,...t)}catch{console.log(i)}}let s={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function o(e){return`[nuqs] ${s[e]} 2 See https://nuqs.dev/NUQS-${e}`}let a=(0,i.createContext)({useAdapter(){throw Error(o(404))}});function l(e){return{method:"throttle",timeMs:e}}a.displayName="NuqsAdapterContext",r&&"u">typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==a&&console.error(o(303)),window.__NuqsAdapterContext=a),e.s(["a",0,()=>(0,i.useContext)(a).processUrlSearchParams,"c",0,n,"i",0,()=>(0,i.useContext)(a).defaultOptions,"l",0,function(e,...t){r&&console.warn(e,...t)},"n",0,function(e){return({children:t,defaultOptions:r,processUrlSearchParams:n,...s})=>(0,i.createElement)(a.Provider,{...s,value:{useAdapter:e,defaultOptions:r,processUrlSearchParams:n}},t)},"o",0,function(e){if(0===e.size)return"";let t=[];for(let[i,r]of e.entries()){let e=i.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${r.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")},"r",0,function(e){let t=(0,i.useContext)(a);if(!("useAdapter"in t))throw Error(o(404));return t.useAdapter(e)},"s",0,o],622289);let u=l(function(){if("u"<typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}());function c(e,t,i){if("string"==typeof e)i.set(t,e);else{for(let r of(i.delete(t),e))i.append(t,r);i.has(t)||i.set(t,"")}return i}function d(){let e=new Map;return{on(t,i){let r=e.get(t)||[];return r.push(i),e.set(t,r),()=>this.off(t,i)},off(t,i){let r=e.get(t);r&&e.set(t,r.filter(e=>e!==i))},emit(t,i){e.get(t)?.forEach(e=>e(i))}}}function h(e,t,i){let r=setTimeout(function(){e(),i.removeEventListener("abort",n)},t);function n(){clearTimeout(r),i.removeEventListener("abort",n)}i.addEventListener("abort",n)}function p(){let e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},i=()=>{};return{promise:new e((e,r)=>{t=e,i=r}),resolve:t,reject:i}}function f(){return new URLSearchParams(location.search)}var m=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=u.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:i},r=u.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),n("[nuqs gtq] Enqueueing %s=%s %O",e,t,i),this.updateMap.set(e,t),"push"===i.history&&(this.options.history="push"),i.scroll&&(this.options.scroll=!0),!1===i.shallow&&(this.options.shallow=!1),i.startTransition&&this.transitions.add(i.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}
2getPendingPromise({getSearchParamsSnapshot:e=f}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=f,rateLimitFactor:t=1,...i},r){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return n("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=p();let s=()=>{this.lastFlushedAt=performance.now();let[t,n]=this.applyPendingUpdates({...i,autoResetQueueOnUpdate:i.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);null===n?(this.resolvers.resolve(t),this.resetQueueOnNextPush=!0):this.resolvers.reject(t),this.resolvers=null},o=()=>{let e=performance.now()-this.lastFlushedAt,i=this.timeMs,r=t*Math.max(0,i-e);n("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",r,i,t),0===r?s():h(s,r,this.controller.signal)};return h(o,0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return n("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=u.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:i,getSearchParamsSnapshot:r}=e,s=r();if(n("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,s.toString()),0===this.updateMap.size)return[s,null];let a=Array.from(this.updateMap.entries()),l={...this.options},u=Array.from(this.transitions);for(let[t,i]of(e.autoResetQueueOnUpdate&&this.reset(),n("[nuqs gtq] Flushing queue %O with options %O",a,l),a))null===i?s.delete(t):s=c(i,t,s);t&&(s=t(s));try{return!function(e,t){let i=t;for(let t=e.length-1;t>=0;t--){let r=e[t];if(!r)continue;let n=i;i=()=>r(n)}i()}(u,()=>{i(s,l)}),[s,null]}catch(e){return console.error(o(429),a.map(([e])=>e).join(),e),[s,e]}}};let g=new m;var v=class{callback;resolvers=p();controller=new AbortController;queuedValue=void 0;constructor(e){this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,h(()=>{let t=this.resolvers;try{n("[nuqs dq] Flushing debounce queue",e);let i=this.callback(e);n("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=p(),i.then(e=>t.resolve(e)).catch(e=>t.reject(e))}catch(e){this.queuedValue=void 0,t.reject(e)}},t,this.controller.signal),this.resolvers.promise}};let w=new class{throttleQueue;queues=new Map;queuedQuerySync=d();constructor(e=new m){this.throttleQueue=e}useQueuedQueries(e){var t,r;let n,s;return t=(e,t)=>this.queuedQuerySync.on(e,t),r=e=>this.getQueuedQuery(e),n=(0,i.useCallback)(()=>{let t=Object.fromEntries(e.map(e=>[e,r(e)]));return[JSON.stringify(t),t]},[e.join(","),r]),null===(s=(0,i.useRef)(null)).current&&(s.current=n()),(0,i.useSyncExternalStore)((0,i.useCallback)(i=>{let r=e.map(e=>t(e,i));return()=>r.forEach(e=>e())},[e.join(","),t]),()=>{let[e,t]=n();return s.current[0]===e?s.current[1]:(s.current=[e,t],t)},()=>s.current[1])}push(e,t,i,r){if(!Number.isFinite(t))return Promise.resolve((i.getSearchParamsSnapshot??f)());let s=e.key;if(!this.queues.has(s)){n("[nuqs dqc] Creating debounce queue for `%s`",s);let e=new v(e=>(this.throttleQueue.push(e),this.throttleQueue.flush(i,r).finally(()=>{this.queues.get(e.key)?.queuedValue===void 0&&(n("[nuqs dqc] Cleaning up empty queue for `%s`",e.key),this.queues.delete(e.key)),this.queuedQuerySync.emit(e.key)})));this.queues.set(s,e)}n("[nuqs dqc] Enqueueing debounce update %O",e);let o=this.queues.get(s).push(e,t);return this.queuedQuerySync.emit(s),o}abort(e){let t=this.queues.get(e);return t?(n("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),e=>(e.then(t.resolvers.resolve,t.resolvers.reject),e)):e=>e}abortAll(){for(let[e,t]of this.queues.entries())n("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return void 0!==t?t:this.throttleQueue.getQueuedQuery(e)}}(g);e.s(["a",0,c,"c",0,l,"i",0,function(e){return null===e||Array.isArray(e)&&0===e.length},"n",0,g,"o",0,function(e){return{method:"debounce",timeMs:e}},"r",0,d,"s",0,u,"t",0,w],680902)},399004,866341,e=>{"use strict";var t=e.i(271645),i=e.i(95187);let r=(0,i.createServerReference)("00f1e42b8b521a69486e39cd73414be000fcfc9ca2",i.callServer,void 0,i.findSourceMapURL,"checkSessionAction"),n=(0,i.createServerReference)("40e3eb9803c700fb6054ed61f0000f76b4dc76ee25",i.c
2allServer,void 0,i.findSourceMapURL,"getAuthAction"),s=(0,i.createServerReference)("40994778195a3bdf87c32f45fda4d4ab21f0e79b69",i.callServer,void 0,i.findSourceMapURL,"handleSignOutAction");e.s(["handleSignOutAction",0,s],866341);let o=(0,i.createServerReference)("4090e4b31bd6cef949c8148064f730f72df2fb05f9",i.callServer,void 0,i.findSourceMapURL,"refreshAuthAction"),a=(0,i.createServerReference)("6096a061ff9699847fab5a9abb3be4701bfabbb2fa",i.callServer,void 0,i.findSourceMapURL,"switchToOrganizationAction"),l=(0,t.createContext)(void 0);e.s(["AuthKitProvider",0,({children:e,onSessionExpired:i,initialAuth:u})=>{var c;let[d,h]=(0,t.useState)(null!=(c=null==u?void 0:u.user)?c:null),[p,f]=(0,t.useState)(null==u?void 0:u.sessionId),[m,g]=(0,t.useState)(null==u?void 0:u.organizationId),[v,w]=(0,t.useState)(null==u?void 0:u.role),[b,y]=(0,t.useState)(null==u?void 0:u.roles),[S,x]=(0,t.useState)(null==u?void 0:u.permissions),[E,z]=(0,t.useState)(null==u?void 0:u.entitlements),[O,A]=(0,t.useState)(null==u?void 0:u.featureFlags),[j,k]=(0,t.useState)(null==u?void 0:u.impersonator),[R,_]=(0,t.useState)(!u),M=(0,t.useCallback)(async({ensureSignedIn:e=!1}={})=>{_(!0);try{let t=await n({ensureSignedIn:e});h(t.user),f(t.sessionId),g(t.organizationId),w(t.role),y(t.roles),x(t.permissions),z(t.entitlements),A(t.featureFlags),k(t.impersonator)}catch(e){h(null),f(void 0),g(void 0),w(void 0),y(void 0),x(void 0),z(void 0),A(void 0),k(void 0)}finally{_(!1)}},[]),L=(0,t.useCallback)(async(e,t={})=>{let i={revalidationStrategy:"none",...t},r=await a(e,{revalidationStrategy:"none",...t});return"none"===i.revalidationStrategy&&await M({ensureSignedIn:!0}),r},[]),P=(0,t.useCallback)(async({ensureSignedIn:e=!1,organizationId:t}={})=>{try{_(!0);let i=await o({ensureSignedIn:e,organizationId:t});h(i.user),f(i.sessionId),g(i.organizationId),w(i.role),y(i.roles),x(i.permissions),z(i.entitlements),A(i.featureFlags),k(i.impersonator)}catch(e){return e instanceof Error?{error:e.message}:{error:String(e)}}finally{_(!1)}},[]),C=(0,t.useCallback)(async({returnTo:e}={})=>{await s({returnTo:e})},[]);return(0,t.useEffect)(()=>{if(u||M(),!1===i)return;let e=!1,t=async()=>{if(!e&&"visible"===document.visibilityState){e=!0;try{if(!await r())throw Error("Session expired")}catch(e){e instanceof Error&&e.message.includes("Failed to fetch")&&(i?i():window.location.reload())}finally{e=!1}}};return window.addEventListener("visibilitychange",t),window.addEventListener("focus",t),()=>{window.removeEventListener("focus",t),window.removeEventListener("visibilitychange",t)}},[i]),t.default.createElement(l.Provider,{value:{user:d,sessionId:p,organizationId:m,role:v,roles:b,permissions:S,entitlements:E,featureFlags:O,impersonator:j,loading:R,getAuth:M,refreshAuth:P,signOut:C,switchToOrganization:L}},e)},"useAuth",0,function({ensureSignedIn:e=!1}={}){let i=(0,t.useContext)(l);if((0,t.useEffect)(()=>{i&&e&&!i.user&&!i.loading&&i.getAuth({ensureSignedIn:e})},[e,null==i?void 0:i.user,null==i?void 0:i.loading,null==i?void 0:i.getAuth]),!i)throw Error("useAuth must be used within an AuthKitProvider");return i}],399004)},840722,e=>{"use strict";var t,i=((t={})[t.None=0]="None",t[t.Submitting=1]="Submitting",t[t.CalendlyOpen=2]="CalendlyOpen",t[t.Success=3]="Success",t[t.Error=4]="Error",t);e.s(["COMPANY_SIZE_OPTIONS",0,[{label:"1-10",value:"1-10"},{label:"10-100",value:"10-100"},{label:"100-1,000",value:"100-1,000"},{label:"1,000-5,000",value:"1,000-5,000"},{label:"5,000+",value:"5,000+"}],"CONFETTI_CONFIG",0,{WIDTH:498,HEIGHT:616,NUMBER_OF_PIECES:200,COLORS:["#9F8DFC","#A1A0A7","#FFFFFF"],GRAVITY:.06,ANIMATION_DELAY_MS:20},"CONTACT_SALES_FORM_FIELDS",0,{FIRST_NAME:"firstName",LAST_NAME:"lastName",EMAIL:"email",COMPANY_SIZE:"companySize",ROLE:"role",MESSAGE:"message",HONEYPOT:"website"},"CONTACT_SUPPORT_FORM_FIELDS",0,{FIRST_NAME:"firstName",LAST_NAME:"lastName",EMAIL:"email",MESSAGE:"message",HONEYPOT:"website"},"FormState",()=>i,"ROLE_OPTIONS",0,[{label:"Engineer",value:"Engineer"},{label:"Product Manager",value:"Product Manager"},{label:"Engineering Leader",value:"Engineering Leader"},{label:"Product Leader",value:"Product Leader"},{label:"C-level",value:"C-level"},{label:"Other",value:"Other"}]])},808341,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return s}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
2dule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},519083,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return u}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,a={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function u(e){return e.replace(o,e=>s[e])}function c(e){return e.replace(l,e=>a[e])}},479520,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return y},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return w}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=e.r(563141),o=e.r(151836),a=e.r(843476),l=s._(e.r(174080)),u=o._(e.r(271645)),c=e.r(742732),d=e.r(922737),h=e.r(808341),p=e.r(519083),f=new Map,m=new Set,g=e=>{let{src:t,id:i,onLoad:r=()=>{},onReady:n=null,dangerouslySetInnerHTML:s,children:o="",strategy:a="afterInteractive",onError:u,stylesheets:c}=e,h=i||t;if(h&&m.has(h))return;if(f.has(t)){m.add(h),f.get(t).then(r,u);return}let p=()=>{n&&n(),m.add(h)},g=document.createElement("script"),v=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),r&&r.call(this,t),p()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});s?(g.innerHTML=s.__html||"",p()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",p()):t&&(g.src=t,f.set(t,v)),(0,d.setAttributesFromProps)(g,e),"worker"===a&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",a),c&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=e,t.appendChild(i)})}})(c),document.body.appendChild(g)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>g(e))}):g(e)}function w(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function b(e){let{id:t,src:i="",onLoad:r=()=>{},onReady:n=null,strategy:s="afterInteractive",onError:o,stylesheets:d,...f}=e,{updateScripts:v,scripts:w,getIsSsr:b,appDir:y,nonce:S}=(0,u.useContext)(c.HeadManagerContext);S=f.nonce||S;let x=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||i;x.current||(n&&e&&m.has(e)&&n(),x.current=!0)},[n,t,i]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!E.current){if("afterInteractive"===s)g(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,h.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>g(e))}));E.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(v?(w[s]=(w[s]||[]).concat([{id:t,src:i,onLoad:r,onReady:n,onError:o,...f,nonce:S}]),v(w)):b&&b()?m.add(t||i):b&&!b()&&g({...e,nonce:S})),y){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!i)return f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...f,id:t}]))})`}});else return l.default.preload(i,f.integrity?{as:"script",integrity:f.integrity,nonce:S,crossOrigin:f.crossOrigin}:{as:"script",nonce:S,crossOrigin:f.crossOrigin}),(0,a.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([i,{...f,id:t}]))})`}});"afterInteractive"===s&&i&&l.default.preload(i,f.integrity?{as:"script",integrity:f.integrity,nonce:S,crossOrigin:f.crossOrigin}:{as:"script",nonce:S,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let y=b;("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
2dule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},3303,(e,t,i)=>{t.exports=e.r(479520)},365715,e=>{"use strict";var t=e.i(843476),i=e.i(271645);function r(e){return(0,i.useEffect)(()=>{!function(e){var t,i,r,n,s,o;if(!("u">typeof window))return;o="dubAnalytics",(s=window)[o]=s[o]||function(){(s[o].q=s[o].q||[]).push(arguments)},["trackClick","trackLead","trackSale"].forEach(function(e){s[o][e]=function(){(s[o].q=s[o].q||[]).push([e,...Array.from(arguments)])}});let a="https://www.dubcdn.com/analytics/script",l=[];(null==(t=e.domainsConfig)?void 0:t.site)&&l.push("site-visit"),(null==(i=e.domainsConfig)?void 0:i.outbound)&&l.push("outbound-domains"),e.publishableKey&&l.push("conversion-tracking");let u=(null==(r=e.scriptProps)?void 0:r.src)||(l.length>0?`${a}.${l.join(".")}.js`:`${a}.js`);if(document.head.querySelector(`script[src*="${u}"]`))return;let c=document.createElement("script");if(c.src=u,c.defer=(null==(n=e.scriptProps)?void 0:n.defer)??!0,c.setAttribute("data-sdkn","@dub/analytics"),c.setAttribute("data-sdkv","0.0.32"),e.apiHost&&c.setAttribute("data-api-host",e.apiHost),e.publishableKey&&c.setAttribute("data-publishable-key",e.publishableKey),e.domainsConfig&&c.setAttribute("data-domains",JSON.stringify(e.domainsConfig)),e.shortDomain&&c.setAttribute("data-short-domain",e.shortDomain),e.attributionModel&&c.setAttribute("data-attribution-model",e.attributionModel),e.cookieOptions&&Object.keys(e.cookieOptions).length>0&&c.setAttribute("data-cookie-options",JSON.stringify(e.cookieOptions)),e.queryParam&&c.setAttribute("data-query-param",e.queryParam),e.queryParams&&c.setAttribute("data-query-params",JSON.stringify(e.queryParams)),e.scriptProps){let{src:t,...i}=e.scriptProps;Object.assign(c,i)}c.onerror=()=>{console.log(`[Dub Web Analytics] failed to load script from ${u}.`)},document.head.appendChild(c)}(e)},[e]),null}var n=e.i(3303),s=e.i(174080),o=e.i(675545);let a=(0,i.createContext)(null),l="cookieSettings",u="lb-cookie-settings";function c(e){return window.addEventListener(u,e),()=>{window.removeEventListener(u,e)}}function d(){return localStorage.getItem(l)??"{}"}function h(){return null}function p(){let e=(0,i.useContext)(a);if(null===e)throw Error("useCookieSettings must be used within a TrackingProvider.");return e}function f(){let{value:e}=p();return null===e||!1===e.marketing?null:(0,t.jsx)(g,{})}let m="6472508";function g(){return s.default.createPortal((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{id:"linkedin_insight_tag_first_script",children:` 3 _linkedin_partner_id = "${m}"; 4 window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || []; 5 window._linkedin_data_partner_ids.push(_linkedin_partner_id); 6 `}),(0,t.jsx)(n.default,{id:"linkedin_insight_tag_second_script",children:` 7 (function(l) { 8 if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])}; 9 window.lintrk.q=[]} 10 var s = document.getElementsByTagName("script")[0]; 11 var b = document.createElement("script"); 12 b.type = "text/javascript";b.async = true; 13 b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js"; 14 s.parentNode.insertBefore(b, s);})(window.lintrk); 15 `}),(0,t.jsx)("noscript",{children:(0,t.jsx)("img",{height:"1",width:"1",style:{display:"none"},alt:"",src:`https://px.ads.linkedin.com/collect/?pid=${m}&fmt=gif`})})]}),document.head,"linkedin-insight-tag-impl")}function v(){let{value:e}=p();return null===e||!1===e.marketing?null:(0,t.jsx)(w,{})}function w(){return s.default.createPortal((0,t.jsx)(n.default,{id:"apollo_tag",children:` 16 function initApollo() { 17 var n = Math.random().toString(36).substring(7), 18 o = document.createElement("script"); 19 o.src = 20 "https://assets.apollo.io/micro/website-tracker/tracker.iife.js?nocache=" + 21 n; 22 o.async = !0; 23 o.defer = !0; 24 o.onload = function() { 25 window.trackingFunctions.onLoad({ appId: "6633a04750e7e502e9e668bf" }); 26 }; 27 document.head.appendChild(o); 28 } 29 initApollo(); 30 `}),document.head,"apollo-tag-impl")}function b(){let{value:e}=p();return null===e||!1===e.marketing?null:(0,t.jsx)(S,{})}let y="AW-18247906611";function S(){return s.default.createPortal((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{id:"google_ads_tag_script",src:`https://www.googletagmanager.com/gtag/js?i
30d=${y}`}),(0,t.jsx)(n.default,{id:"google_ads_tag_config",children:` 31 window.dataLayer = window.dataLayer || []; 32 function gtag(){dataLayer.push(arguments);} 33 gtag('js', new Date()); 34 gtag('config', '${y}'); 35 `})]}),document.head,"google-tag-impl")}function x(){let{value:e}=p();return null===e||!1===e.marketing?null:(0,t.jsx)(r,{domainsConfig:{refer:o.DUB_URL}})}e.s(["ApolloTagImpl",0,w,"COOKIE_SETTINGS_LOCAL_STORAGE_KEY",0,l,"CookieSettingsContext",0,a,"GoogleTagImpl",0,S,"LinkedInInsightTagImpl",0,g,"TrackingProvider",0,function({defaultValue:e,children:r}){let n=function({defaultValue:e}){let t=(0,i.useSyncExternalStore)(c,d,h);if(null===t)return null;try{var r;let i=JSON.parse(t);if("object"!=typeof i||null===i)return e;return(r=i,null!=r&&"object"==typeof r&&"essentials"in r&&"boolean"==typeof r.essentials&&"marketing"in r&&"boolean"==typeof r.marketing&&"analytics"in r&&"boolean"==typeof r.analytics&&1)?i:e}catch{return e}}({defaultValue:e});return(0,t.jsxs)(a.Provider,{value:{value:n,updateValue:function(t){let i={...n??e,...t};localStorage.setItem(l,JSON.stringify(i)),window.dispatchEvent(new CustomEvent(u,{detail:i}))}},children:[(0,t.jsx)(f,{}),(0,t.jsx)(v,{}),(0,t.jsx)(b,{}),(0,t.jsx)(x,{}),r]})},"useCookieSettings",0,p],365715)},794264,e=>{"use strict";e.i(946155),e.s([])},969557,e=>{"use strict";var t=e.i(271645);e.s(["useMediaQuery",0,function(e){let[i,r]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=window.matchMedia(e),i=e=>{r(e.matches)};return r(t.matches),t.addEventListener instanceof Function?t.addEventListener("change",i):t.addListener(i),()=>{t.removeEventListener instanceof Function?t.removeEventListener("change",i):t.removeListener(i)}},[e]),i}])},12447,(e,t,i)=>{t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},100236,(e,t,i)=>{t.exports=e.g&&e.g.Object===Object&&e.g},139088,(e,t,i)=>{var r=e.r(100236),n="object"==typeof self&&self&&self.Object===Object&&self;t.exports=r||n||Function("return this")()},631926,(e,t,i)=>{var r=e.r(139088);t.exports=function(){return r.Date.now()}},748891,(e,t,i)=>{var r=/\s/;t.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},830364,(e,t,i)=>{var r=e.r(748891),n=/^\s+/;t.exports=function(e){return e?e.slice(0,r(e)+1).replace(n,""):e}},630353,(e,t,i)=>{t.exports=e.r(139088).Symbol},243436,(e,t,i)=>{var r=e.r(630353),n=Object.prototype,s=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;t.exports=function(e){var t=s.call(e,a),i=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=i:delete e[a]),n}},223243,(e,t,i)=>{var r=Object.prototype.toString;t.exports=function(e){return r.call(e)}},377684,(e,t,i)=>{var r=e.r(630353),n=e.r(243436),s=e.r(223243),o=r?r.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):s(e)}},877289,(e,t,i)=>{t.exports=function(e){return null!=e&&"object"==typeof e}},361884,(e,t,i)=>{var r=e.r(377684),n=e.r(877289);t.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}},773759,(e,t,i)=>{var r=e.r(830364),n=e.r(12447),s=e.r(361884),o=0/0,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(s(e))return o;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var i=l.test(e);return i||u.test(e)?c(e.slice(2),i?2:8):a.test(e)?o:+e}},374009,(e,t,i)=>{var r=e.r(12447),n=e.r(631926),s=e.r(773759),o=Math.max,a=Math.min;t.exports=function(e,t,i){var l,u,c,d,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function w(t){var i=l,r=u;return l=u=void 0,f=t,d=e.apply(r,i)}function b(e){var i=e-p,r=e-f;return void 0===p||i>=t||i<0||g&&r>=c}function y(){var e,i,r,s=n();if(b(s))return S(s);h=setTimeout(y,(e=s-p,i=s-f,r=t-e,g?a(r,c-i):r))}function S(e){return(h=void 0,v&&l)?w(e):(l=u=void 0,d)}function x(){var e,i=n(),r=b(i);if(l=arguments,u=this,p=i,r){if(void 0===h)return f=e=p,h=setTimeout(y,t),m?w(e):d;if(g)return clearTimeout(h),h=setTimeout(y,t),w(p)}return void 0===h&&(h=setTimeout(y,t)),d}return t=s(t)||0,r(i)&&(m=!!i.leading,c=(g="maxWait"in i)?o(s(i.maxWait)||0,t):c,v="trailing"in i?!!i.trailing:v),x.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=u=h=void 0},x.flush=function(){return void 0===h?d:S(n())},x}
35},224283,(e,t,i)=>{var r=e.r(374009),n=e.r(12447);t.exports=function(e,t,i){var s=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return n(i)&&(s="leading"in i?!!i.leading:s,o="trailing"in i?!!i.trailing:o),r(e,t,{leading:s,maxWait:t,trailing:o})}},777186,746138,e=>{"use strict";var t=e.i(843476),i=e.i(271645);e.i(529333);var r=e.i(128769);let n=i.default.forwardRef(({className:e,...i},n)=>(0,t.jsx)("div",{ref:n,className:(0,r.cn)("flex flex-col justify-between overflow-hidden rounded-lg border border-product-divider bg-product-surface-base shadow-product-raised","transition-colors duration-150 ease-out",e),...i})),s=i.default.forwardRef(({className:e,...i},n)=>(0,t.jsx)("div",{ref:n,className:(0,r.cn)("flex flex-col gap-1.5 p-5",e),...i})),o=i.default.forwardRef(({className:e,...i},n)=>(0,t.jsx)("div",{ref:n,className:(0,r.cn)("text-sm leading-normal font-medium text-product",e),...i})),a=i.default.forwardRef(({className:e,...i},n)=>(0,t.jsx)("div",{ref:n,className:(0,r.cn)("text-sm leading-normal text-pretty text-product-subtle",e),...i})),l=Object.assign(n,{Content:i.default.forwardRef(({className:e,...i},n)=>(0,t.jsx)("div",{ref:n,className:(0,r.cn)("p-5 pt-0 text-sm first:pt-5",e),...i})),Description:a,Footer:i.default.forwardRef(({className:e,...i},n)=>(0,t.jsx)("div",{ref:n,className:(0,r.cn)("flex items-center justify-end gap-2 p-5 pt-0",e),...i})),Header:s,Legend:i.default.forwardRef(({className:e,...i},n)=>(0,t.jsx)("p",{ref:n,className:(0,r.cn)("text-xs text-product-subtle",e),...i})),Title:o});e.s(["Card",0,l],746138),e.s([],777186)},576364,e=>{"use strict";var t=e.i(843476),i=e.i(271645);let r=(0,i.createContext)(null),n="settings",s="lb-settings";function o(e){return window.addEventListener(s,e),()=>{window.removeEventListener(s,e)}}function a(){return localStorage.getItem(n)??"{}"}function l(){return null}function u(){let e=(0,i.useContext)(r);if(null===e)throw Error("useDashboardSettings must be used within a DashboardSettingsProvider.");return e}let c="data-theme";function d({defaultValue:e}){let i=`!function(){let settings=JSON.parse(localStorage.getItem("${n}")??"{}"),theme;theme=settings.theme?"system"===settings.theme?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":sett
35ings.theme:"${e}",document.documentElement.setAttribute("${c}",theme)}();`;return(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:i}})}function h(){let{value:e}=u();return(0,i.useEffect)(()=>{if(null===e)return;let t="system"===e.theme?p():e.theme;return document.documentElement.setAttribute(c,t),()=>{document.documentElement.removeAttribute(c)}},[e]),(0,i.useEffect)(()=>{function e(){let e=p();document.documentElement.setAttribute(c,e)}return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e),()=>{window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",e)}},[]),null}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}e.s(["DASHBOARD_SETTINGS_LOCAL_STORAGE_KEY",0,n,"DashboardSettingsProvider",0,function({defaultValue:e,children:u}){let c=function({defaultValue:e}){let t=(0,i.useSyncExternalStore)(o,a,l);if(null===t)return null;try{var r;let i=JSON.parse(t);if("object"!=typeof i||null===i)return e;let n=i.theme,s=(r=n,null!=r&&"string"==typeof r&&["light","dark","system"].includes(r))?n:e.theme,o=i.informationTooltips;return{theme:s,informationTooltips:o}}catch{return e}}({defaultValue:e});return(0,t.jsxs)(r.Provider,{value:{value:c,updateValue:function(t){let i={...c??e,...t};localStorage.setItem(n,JSON.stringify(i)),window.dispatchEvent(new CustomEvent(s,{detail:i}))}},children:[(0,t.jsx)(d,{defaultValue:e.theme}),(0,t.jsx)(h,{}),u]})},"useDashboardSettings",0,u])},795185,e=>{"use strict";e.s(["formatLogsDate",0,(e,t)=>e.toLocaleString("en-US",{month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:2,timeZoneName:t?"short":void 0}).replace(",",""),"getLocalEndOfDay",0,function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)},"getLocalEndOfMonthDate",0,function(e){return new Date(e.getFullYear(),e.getMonth()+1,0,23,59,59,999)},"getLocalStartOfDay",0,function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)},"getLocalStartOfMonthDate",0,function(e){return new Date(e.getFullYear(),e.getMonth(),1)},"getRelativeDay",0,function(e){let t=new Date,i=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=Math.floor((i.getTime()-r.getTime())/864e5);return 0===n?"Today":1===n?"Yesterday":n<=7?`${n}d ago`:n<=30?`${Math.floor(n/7)}w ago`:`${Math.floor(n/30)}mo ago`}])},895203,e=>{"use strict";var t=e.i(95187);let i=(0,t.createServerReference)("7f5cdf302c1e16de6ee3133eeddf8493e997905deb",t.callServer,void 0,t.findSourceMapURL,"submitFeedbackAction");e.s(["submitFeedbackAction",0,i])},994814,e=>{"use strict";var t=e.i(653145);let i=(e,i,r)=>{if(e&&"reportValidity"in e){let n=(0,t.get)(r,i);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},r=(e,t)=>{for(let r in t.fields){let n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?i(n.ref,r,e):n&&n.refs&&n.refs.forEach(t=>i(t,r,e))}},n=(e,i)=>{i.shouldUseNativeValidation&&r(e,i);let n={};for(let r in e){let o=(0,t.get)(i.fields,r),a=Object.assign(e[r]||{},{ref:o&&o.ref});if(s(i.names||Object.keys(e),r)){let e=Object.assign({},(0,t.get)(n,r));(0,t.set)(e,"root",a),(0,t.set)(n,r,e)}else(0,t.set)(n,r,a)}return n},s=(e,t)=>{let i=o(t);return e.some(e=>o(e).match(`^${i}\\.\\d+`))};function o(e){return e.replace(/\]|\[/g,"")}function a(e,t,i){function r(i,r){var n;for(let s in Object.defineProperty(i,"_zod",{value:i._zod??{},enumerable:!1}),(n=i._zod).traits??(n.traits=new Set),i._zod.traits.add(e),t(i,r),o.prototype)s in i||Object.defineProperty(i,s,{value:o.prototype[s].bind(i)});i._zod.constr=o,i._zod.def=r}let n=i?.Parent??Object;class s extends n{}function o(e){var t;let n=i?.Parent?new s:this;for(let i of(r(n,e),(t=n._zod).deferred??(t.deferred=[]),n._zod.deferred))i();return n}return Object.defineProperty(s,"name",{value:e}),Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!i?.Parent&&t instanceof i.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}Object.freeze({status:"aborted"}),Symbol("zod_brand");
35class l extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}let u={};function c(e){return e&&Object.assign(u,e),u}function d(e,t){return"bigint"==typeof t?t.toString():t}let h=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function p(e){return"string"==typeof e?e:e?.message}function f(e,t,i){let r={...e,path:e.path??[]};return e.message||(r.message=p(e.inst?._zod.def?.error?.(e))??p(t?.error?.(e))??p(i.customError?.(e))??p(i.localeError?.(e))??"Invalid input"),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}let m=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,d,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},g=a("$ZodError",m),v=a("$ZodError",m,{Parent:Error}),w=(e,t,i,r)=>{let n=i?Object.assign(i,{async:!1}):{async:!1},s=e._zod.run({value:t,issues:[]},n);if(s instanceof Promise)throw new l;if(s.issues.length){let e=new(r?.Err??v)(s.issues.map(e=>f(e,n,c())));throw h(e,r?.callee),e}return s.value},b=async(e,t,i,r)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},s=e._zod.run({value:t,issues:[]},n);if(s instanceof Promise&&(s=await s),s.issues.length){let e=new(r?.Err??v)(s.issues.map(e=>f(e,n,c())));throw h(e,r?.callee),e}return s.value};function y(e,t){try{var i=e()}catch(e){return t(e)}return i&&i.then?i.then(void 0,t):i}e.s(["zodResolver",0,function(e,i,s){if(void 0===s&&(s={}),"_def"in e&&"object"==typeof e._def&&"typeName"in e._def)return function(o,a,l){try{return Promise.resolve(y(function(){return Promise.resolve(e["sync"===s.mode?"parse":"parseAsync"](o,i)).then(function(e){return l.shouldUseNativeValidation&&r({},l),{errors:{},values:s.raw?Object.assign({},o):e}})},function(e){if(Array.isArray(null==e?void 0:e.issues))return{values:{},errors:n(function(e,i){for(var r={};e.length;){var n=e[0],s=n.code,o=n.message,a=n.path.join(".");if(!r[a])if("unionErrors"in n){var l=n.unionErrors[0].errors[0];r[a]={message:l.message,type:l.code}}else r[a]={message:o,type:s};if("unionErrors"in n&&n.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),i){var u=r[a].types,c=u&&u[n.code];r[a]=(0,t.appendErrors)(a,i,r,s,c?[].concat(c,n.message):n.message)}e.shift()}return r}(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}};if("_zod"in e&&"object"==typeof e._zod)return function(o,a,l){try{return Promise.resolve(y(function(){return Promise.resolve(("sync"===s.mode?w:b)(e,o,i)).then(function(e){return l.shouldUseNativeValidation&&r({},l),{errors:{},values:s.raw?Object.assign({},o):e}})},function(e){if(e instanceof g)return{values:{},errors:n(function(e,i){for(var r={};e.length;){var n=e[0],s=n.code,o=n.message,a=n.path.join(".");if(!r[a])if("invalid_union"===n.code&&n.errors.length>0){var l=n.errors[0][0];r[a]={message:l.message,type:l.code}}else r[a]={message:o,type:s};if("invalid_union"===n.code&&n.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),i){var u=r[a].types,c=u&&u[n.code];r[a]=(0,t.appendErrors)(a,i,r,s,c?[].concat(c,n.message):n.message)}e.shift()}return r}(e.issues,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}],994814)},235699,e=>{"use strict";var t=e.i(95187);let i=(0,t.createServerReference)("7f34e5b3a73c8c9a3184f6323439c601e1c8078750",t.callServer,void 0,t.findSourceMapURL,"createProjectAction");e.s(["createProjectAction",0,i])},471686,e=>{"use strict";var t,i=e.i(271645);function r(){return(r=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",fill:"none"},e),t||(t=i.createElement("path",{d:"M6 2v4.23A13.941 13.941 0 0 1 16 2 14.001 14.001 0 1 1 2 16h2a12 12 0 1 0 3.08-8H12v2H4V2h2Zm11 13.58 5 5.01L20.59 22 15 16.41V7h2v8.58Z"})))}])},584789,e=>{"use strict";var t=e.i(675545),i=e.i(969557),r=e.i(627372);e.s(["useAiAssistantLayout",0,function(){let{displayMode:e,isOpen:n}=(0,r.useAiAssistant)(),s=(0,i.useMediaQuery)(`(max-width: ${t.BREAKPOINTS.XL}px)`),o=s?"overlay":e,a="inline"===o;return{isOpen:n,effectiveAiDisplayMode:o,isAiInlineMode:a,showAiInlinePanel:a&&n,shouldShowAiOverlay:s}}])},597442,e=>{"use strict";var t=e.i(271645),i=e.i(954080);e.s(["useLocalStorage",0,function(e,r){let n=window.localStorage,[s,o]=(0,t.useState)(r);return(0,i.useIsomorphicLayoutEffect)(()=>{let t;if(void 0===n)return;let i=n.getItem(e);if(null!==i)try{t=JSON.parse(i)}catch{}o(t??r)},[n,e,r]),(0,t.useEffect)(()=>{let t=t=>{if(t.key===e&&null!==t.newValue)try{let e=JSON.parse(t.newValue);JSON.stringify(e)!==JSON.stringify(s)&&o(e)}catch{}else t.key===e&&null===t.newValue&&o(r)},i=e=>{e.detail&&"object"==typeof e.detail&&"value"in e.detail&&o(e.detail.value)};return window.addEventListener("storage",t),window.addEventListener(`localStorage-${e}`,i),()=>{window.removeEventListener("storage",t),window.removeEventListener(`localStorage-${e}`,i)}},[e,r,o,s]),[s,(0,t.useCallback)(t=>{o(t);let i=JSON.stringify(t);JSON.stringify(r)===i?n?.removeItem(e):n?.setItem(e,i)},[n,o,e,r])]}])},957215,e=>{"use strict";var t=e.i(247167),i=e.i(271645),r=e.i(618566);function n(){return false}function s(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function o(e){(0,i.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,i.useRef)(null);return(0,i.useEffect)(()=>
35{if(r.current)e.route&&r.current(e.route);else{let i=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let i=e.scriptSrc?e.scriptSrc:n()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${i}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let r=document.createElement("script");return r.src=i,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.3.1",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),n()&&!1===e.debug&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${i}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});i&&(r.current=i.setRoute)}},[e.route]),null}function a(e){let n=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,i=(0,r.usePathname)();if(!e)return null;let n=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!i||!n)return i;let o=i;try{let e=Object.entries(n);for(let[t,i]of e)if(!Array.isArray(i)){let e=s(i);e.test(o)&&(o=o.replace(e,`/[${t}]`))}for(let[t,i]of e)if(Array.isArray(i)){let e=s(i.join("/"));e.test(o)&&(o=o.replace(e,`/[...${t}]`))}return o}catch(e){return i}})();return i.default.createElement(o,{route:n,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return i.default.createElement(i.Suspense,{fallback:null},i.default.createElement(a,{...e}))}])},12985,e=>{"use strict";var t=e.i(622289),i=e.i(680902);let r=0;function n(e=1){r=e}function s(){(0,t.c)("[nuqs] Aborting queues"),i.t.abortAll(),i.n.abort().forEach(e=>i.t.queuedQuerySync.emit(e))}var o=e.i(271645),a=e.i(618566);function l(){n(0),s()}function u(){!function(e=s){(r=Math.max(0,r-1))>0||e()}(()=>{queueMicrotask(s)})}function c(){return(0,o.useEffect)(()=>(!function(){var e;if(e="next/app","u"<typeof history||(history.nuqs?.version&&"2.8.9"!==history.nuqs.version?(console.error((0,t.s)(409),history.nuqs.version,"2.8.9",e),!0):!!history.nuqs?.adapters?.includes(e)))return;let i=history.replaceState,r=history.pushState;history.replaceState=function(e,t,r){return u(),i.call(history,e,t,r)},history.pushState=function(e,t,i){return u(),r.call(history,e,t,i)},history.nuqs=history.nuqs??{version:"2.8.9",adapters:[]},history.nuqs.adapters.push("next/app")}(),window.addEventListener("popstate",l),()=>window.removeEventListener("popstate",l)),[]),null}let d=(0,t.n)(function(){let e=(0,a.useRouter)(),[i,r]=(0,o.useOptimistic)((0,a.useSearchParams)());return{searchParams:i,updateUrl:(0,o.useCallback)((i,s)=>{(0,o.startTransition)(()=>{s.shallow||r(i);let o=function(e){let{origin:i,pathname:r,hash:n}=location;return i+r+(0,t.o)(e)+n}(i);(0,t.c)("[nuqs next/app] Updating url: %s",o);let a="push"===s.history?history.pushState:history.replaceState;n(3),a.call(history,null,"",o),s.scroll&&window.scrollTo(0,0),s.shallow||e.replace(o,{scroll:!1})})},[]),rateLimitFactor:3,autoResetQueueOnUpdate:!0}});e.s(["NuqsAdapter",0,function({children:e,...t}){return(0,o.createElement)(d,{...t,children:[(0,o.createElement)(o.Suspense,{key:"nuqs-adapter-suspense-navspy",children:(0,o.createElement)(c)}),e]})}],12985)},572190,e=>{"use strict";var t=e.i(271645);let i=t.forwardRef((e,i)=>t.createElement("button",{ref:i,type:"button",...e,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:"1.714em",padding:"0 0.6em",fontFamily:"inherit",fontSize:"inherit",borderRadius:"min(max(calc(var(--wi-s) * 0.6), 1px), 7px)",border:"none",backgroundColor:"var(--wi-c)",color:"white",...e.style}}));function r({children:e,minimizedValue:n}){return t.createElement(i,{onClick:()=>{let e=document.querySelector("[data-workos-impersonation-root]");null==e||e.style.setProperty("--wi-minimized",n)},style:{padding:0,width:"1.714em"}},e)}i.displayName="Button";var n=e.i(95187);let s=(0,n.createServerReference)("400a8798ace010a288b6d4b29f71d836b80ebf298c",n.callServer,void 0,n.findSourceMapURL,"getOrganizationAction");var o=e.i(866341),a=e.i(399004);e.s(["Impersonation",0,function({side:e="bottom",returnTo:n,...l}){let{user:u,impersonator:c,organizationId:d}=(0,a.useAuth)(),[h,p]=t.useState(null);return(t.useEffect(()=>{d&&c&&u&&(h&&h.id===d||s(d).then(p))},[d,c,u]),c&&u)?t.createElement("div",{...l,"data-workos-impersonation-root":"",style:{position:"fixed",inset:0,pointerEvents:"none",zIndex:9999,"--wi-minimized":"0","--wi-s":"min(max(var(--workos-impersonation-size, 4px), 2px), 15px)","--wi-bgc":"var(--workos-impersonation-background-color, #fce654)","--wi-c":"var(--workos-impersonation-color, #1a1600)","--wi-bc":"var(--workos-impersonation-border-color, #e0c36c)","--wi-bw":"var(--workos-impersonation-border-width, 1px)",...l.style}},t.createElement("div",{style:{"--wi-frame-size":"calc(var(--wi-s) * (1 - var(--wi-minimized)) + var(--wi-minimized) * var(--wi-bw) * -1)",position:"absolute",inset:"calc(var(--wi-frame-size) * -1)",borderRadius:"calc(var(--wi-frame-size) * 3)",boxShadow:` 36 inset 0 0 0 calc(var(--wi-frame-size) * 2) var(--wi-bgc), 37 inset 0 0 0 calc(var(--wi-frame-size) * 2 + var(--wi-bw)) var(--wi-bc) 38 `,transition:"all 500ms cubic-bezier(0.16, 1, 0.3, 1)"}}),t.createElement("div",{style:{display:"flex",justifyContent:"center",position:"fixed",left:0,right:0,..."top"===e&&{top:"var(--wi-s)"},..."bottom"===e&&{bottom:"var(--wi-s)"},fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif",fontSize:"calc(12px + var(--wi-s) * 0.5)",lineHeight:"1.4"}},t.createElement("form",{onSubmit:async e=>{e.preventDefault(),await (0,o.handleSignOutAction)({returnTo:n})},style:{display:"flex",alignItems:"baseline",paddingLeft:"var(--wi-s)",paddingRight:"var(--wi-s)",position:"relative",marginLeft:"calc(var(--wi-s) * 2)",marginRight:"calc(var(--wi-s) * 2)",pointerEvents:"auto",backgroundColor:"var(--wi-bgc)",borderStyle:"solid",borderColor:"var(--wi-bc)",borderLeftWidth:"var(--wi-bw)",borderRightWidth:"var(--wi-bw)",transition:"all 500ms cubic-bezier(0.16, 1, 0.3, 1)",transform:"translateX(calc(var(--wi-minimized) * (var(--wi-s) * 10 - 5%)))",opacity:"calc(1 - var(--wi-minimized))",zIndex:"calc(1 - var(--wi-minimized))",..."top"===e&&{paddingTop:0,paddingBottom:"var(--wi-s)",borderTopWidth:0,borderBottomWidth:"var(--wi-bw)",borderBottomLeftRadius:"var(--wi-s)",borderBottomRightRadius:"var(--wi-s)"},..."bottom"===e&&{paddingTop:"var(--wi-s)",paddingBottom:0,borderTopWidth:"var(--wi-bw)",borderBottomWidth:0,borderTopLeftRadius:"var(--wi-s)",borderTopRightRadius:"var(--wi-s)"}}},t.createElement("p",{style:{all:"unset",color:"var(--wi-c)",textWrap:"balance",marginLeft:"var(--wi-s)"}},"You are impersonating ",t.createElement("b",null,u.email)," ",null!==h&&t.createElement(t.Fragment,null,"within the ",t.createElement("b",null,h.name)," organization")),t.createElement(i,{type:"submit",style:{marginLeft:"calc(var(--wi-s) * 2)",marginRight:"var(--wi-s)"}},"Stop"),t.createElement(r,{minimizedValue:"1"},"top"===e?"â":"â")),t.createElement("div",{style:{padding:"var(--wi-s)",position:"fixed",right:"var(--wi-s)",pointerEvents:"auto",backgroundColor:"var(--wi-bgc)",border:"var(--wi-bw) solid var(--wi-bc)",borderRadius:"var(--wi-s)",transition:"all 500ms cubic-bezier(0.16, 1, 0.3, 1)",transform:"translateX(calc((1 - var(--wi-minimized)) * var(--wi-s) * -5))",opacity:"var(--wi-minimized)",zIndex:"var(--wi-minimized)",..."top"===e&&{top:"var(--wi-s)"},..."bottom"===e&&{bottom:"var(--wi-s)"}}},t.createElement(r,{minimizedValue:"0"},"top"===e?"â":"â")))):null}],572190)},578066,e=>{"use strict";var t=e.i(843476),i=e.i(271645),r=e.i(576364);let n="data-theme",s="data-domain";function o(e,t){document.documentElement.setAttribute(e,t)}function a(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}}let l=(0,i.memo)(({attribute:e,value:i})=>{let r=`!function(){document.documentElement.setAttribute("${e}","${i}")}()`;return(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:r}}
38)},()=>!0),u=(0,i.memo)(({value:e})=>{let i=`!function(){let settings=JSON.parse(localStorage.getItem("${r.DASHBOARD_SETTINGS_LOCAL_STORAGE_KEY}")||""),theme;theme=settings.theme?"system"===settings.theme?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":settings.theme:"${e}",document.documentElement.setAttribute("${n}",theme)}();`;return(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:i}})},()=>!0);e.s(["MarketingSettings",0,function(){return(0,i.useEffect)(()=>{let e=a();o(n,"dark"),o(s,"marketing"),e()},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l,{attribute:s,value:"marketing"}),(0,t.jsx)(l,{attribute:n,value:"dark"})]})},"ProductSettings",0,function(){let{value:e}=(0,r.useDashboardSettings)(),c=e?.theme??"system",d=()=>{o(n,window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")};return(0,i.useEffect)(()=>{let e=a();"system"===c?d():o(n,c),o(s,"product"),e()},[c]),(0,i.useEffect)(()=>(window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",d),()=>{window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",d)}),[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l,{attribute:s,value:"product"}),(0,t.jsx)(u,{value:c})]})}])},360628,e=>{"use strict";var t,i=e.i(843476),r=e.i(618566),n=e.i(271645),s=e.i(174080),o=function(){return(o=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},a={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},l={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},u={width:"20px",height:"20px",position:"absolute",zIndex:1},c={top:o(o({},a),{top:"-5px"}),right:o(o({},l),{left:void 0,right:"-5px"}),bottom:o(o({},a),{top:void 0,bottom:"-5px"}),left:o(o({},l),{left:"-5px"}),topRight:o(o({},u),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:o(o({},u),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:o(o({},u),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:o(o({},u),{left:"-10px",top:"-10px",cursor:"nw-resize"})},d=(0,n.memo)(function(e){var t=e.onResizeStart,r=e.direction,s=e.children,a=e.replaceStyles,l=e.className,u=(0,n.useCallback)(function(e){t(e,r)},[t,r]),d=(0,n.useCallback)(function(e){t(e,r)},[t,r]),h=(0,n.useMemo)(function(){return o(o({position:"absolute",userSelect:"none"},c[r]),null!=a?a:{})},[a,r]);return(0,i.jsx)("div",{className:l||void 0,style:h,onMouseDown:u,onTouchStart:d,children:s})}),h=(t=function(e,i){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,i)},function(e,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}),p=function(){return(p=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},f={width:"auto",height:"auto"},m=function(e,t,i){return Math.max(Math.min(e,i),t)},g=function(e,t,i){var r=Math.round(e/t);return r*t+i*(r-1)},v=function(e,t){return RegExp(e,"i").test(t)},w=function(e){return!!(e.touches&&e.touches.length)},b=function(e,t,i){void 0===i&&(i=0);var r=t.reduce(function(i,r,n){return Math.abs(r-e)<Math.abs(t[i]-e)?n:i},0),n=Math.abs(t[r]-e);return 0===i||n<i?t[r]:e},y=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},S=function(e,t,i,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var n=Number(e.replace("%",""))/100;return t*n}if(e.endsWith("vw")){var n=Number(e.replace("vw",""))/100;return i*n}if(e.endsWith("vh")){var n=Number(e.replace("vh",""))/100;return r*n}}return e},x=["as","ref","style","className","grid","gridGap","snap","boun
38ds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],E="__resizable_base__",z=function(e){function t(t){var i,r,n,s,o=e.call(this,t)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.delta={width:0,height:0},o.appendBase=function(){if(!o.resizable||!o.window)return null;var e=o.parentNode;if(!e)return null;var t=o.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(E):t.className+=E,e.appendChild(t),t},o.removeBase=function(e){var t=o.parentNode;t&&t.removeChild(e)},o.state={isResizing:!1,width:null!=(r=null==(i=o.propsSize)?void 0:i.width)?r:"auto",height:null!=(s=null==(n=o.propsSize)?void 0:n.height)?s:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return h(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||f},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,r=this.resizable.offsetHeight,n=this.resizable.style.position;"relative"!==n&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:i,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=n}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,i=function(t){var i;if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&(null==(i=e.propsSize[t])?void 0:i.toString().endsWith("%"))){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var r=e.getParentSize(),n=Number(e.state[t].toString().replace("px",""))/r[t]*100;return"".concat(n,"%")}return y(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?y(t.width):i("width"),height:t&&void 0!==t.height&&!this.state.isResizing?y(t.height):i("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,i=this.parentNode.style.flexWrap;"wrap"!==i&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=i),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var i=this.propsSize&&this.propsSize[t];return"auto"===this.state[t]&&this.state.original[t]===e&&(void 0===i||"auto"===i)?"auto":e},t.prototype.calculateNewMaxFromBoundary=function(e,t){var i,r,n=this.props.boundsByDirection,s=this.state.direction,o=n&&v("left",s),a=n&&v("top",s);if("parent"===this.props.bounds){var l=this.parentNode;l&&(i=o?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(i=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(i=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return i&&Number.isFinite(i)&&(e=e&&e<i?e:i),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var i,r=this.props.scale||1,n=Array.isArray(i=this.props.resizeRatio||1)?i:[i,i],s=n[0],o=n[1],a=this.state,l=a.direction,u=a.original,c=this.props,d=c.lockAspectRatio,h=c.lockAspectRatioExtraHeight,p=c.lockAspectRatioExtraWidth,f=u.width,m=u.height,g=h||0,w=p||0;return v("right",l)&&(f=u.width+(e-u.x)*s/r,d&&(m=(f-w)/this.ratio+g)),v("left",l)&&(f=u.width-(e-u.x)*s/r,d&&(m=(f-w)/this.ratio+g)),v("bottom",l)&&(m=u.height+(t-u.y)*o/r,d&&(f=(m-g)*this.ratio+w)),v("top",l)&&(m=u.height-(t-u.y)*o/r,d&&(f=(m-g)*this.ratio+w)),{newWidth:f,newHeight:m}}
38,t.prototype.calculateNewSizeFromAspectRatio=function(e,t,i,r){var n=this.props,s=n.lockAspectRatio,o=n.lockAspectRatioExtraHeight,a=n.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,u=void 0===i.width||i.width<0?e:i.width,c=void 0===r.height?10:r.height,d=void 0===i.height||i.height<0?t:i.height,h=o||0,p=a||0;if(s){var f=(c-h)*this.ratio+p,g=(d-h)*this.ratio+p,v=(l-p)/this.ratio+h,w=(u-p)/this.ratio+h,b=Math.max(c,v),y=Math.min(d,w);e=m(e,Math.max(l,f),Math.min(u,g)),t=m(t,b,y)}else e=m(e,l,u),t=m(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){var e=1/(this.props.scale||1);if("parent"===this.props.bounds){var t=this.parentNode;if(t){var i=t.getBoundingClientRect();this.parentLeft=i.left*e,this.parentTop=i.top*e}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left*e,this.targetTop=r.top*e}if(this.resizable){var n=this.resizable.getBoundingClientRect(),s=n.left,o=n.top,a=n.right,l=n.bottom;this.resizableLeft=s*e,this.resizableRight=a*e,this.resizableTop=o*e,this.resizableBottom=l*e}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var i,r,n=0,s=0;if(e.nativeEvent&&((i=e.nativeEvent).clientX||0===i.clientX)&&(i.clientY||0===i.clientY)?(n=e.nativeEvent.clientX,s=e.nativeEvent.clientY):e.nativeEvent&&w(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,s=e.nativeEvent.touches[0].clientY),!this.props.onResizeStart||!this.resizable||!1!==this.props.onResizeStart(e,t,this.resizable)){this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var o=this.window.getComputedStyle(this.resizable);if("auto"!==o.flexBasis){var a=this.parentNode;if(a){var l=this.window.getComputedStyle(a).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",r=o.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:n,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:p(p({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:r};this.setState(u)}}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&w(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var i,r,n,o,a,l,u=this.props,c=u.maxWidth,d=u.maxHeight,h=u.minWidth,p=u.minHeight,f=w(e)?e.touches[0].clientX:e.clientX,m=w(e)?e.touches[0].clientY:e.clientY,v=this.state,y=v.direction,x=v.original,E=v.width,z=v.height,O=this.getParentSize(),A=(i=this.window.innerWidth,r=this.window.innerHeight,n=c,o=d,a=h,l=p,n=S(n,O.width,i,r),o=S(o,O.height,i,r),a=S(a,O.width,i,r),l=S(l,O.height,i,r),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===a?void 0:Number(a),minHeight:void 0===l?void 0:Number(l)});c=A.maxWidth,d=A.maxHeight,h=A.minWidth,p=A.minHeight;var j=this.calculateNewSizeFromDirection(f,m),k=j.newHeight,R=j.newWidth,_=this.calculateNewMaxFromBoundary(c,d);this.props.snap&&this.props.snap.x&&(R=b(R,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(k=b(k,this.props.snap.y,this.props.snapGap));var M=this.calculateNewSizeFromAspectRatio(R,k,{width:_.maxWidth,height:_.maxHeight},{width:h,height:p});if(R=M.newWidth,k=M.newHeight,this.props.grid){var L=g(R,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),P=g(k,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),C=this.props.snapGap||0,N=0===C||Math.abs(L-R)<=C?L:R,q=0===C||Math.abs(P-k)<=C?P:k;R=N,k=q}var T={width:R-x.width,height:k-x.height};if(this.delta=T,E&&"string"==typeof E){if(E.endsWith("%")){var I=R/O.width*100;R="".concat(I,"%")}else if(E.endsWith("vw")){var W=R/this.window.innerWidth*100;R="".concat(W,"vw")}else if(E.endsWith("vh")){var H=R/this.window.innerHeight*100;R="".concat(H,"vh")}}if(z&&"string"==typeof z){if(z.endsWith("%")){var I=k/O.height*100;k="".concat(I,"%")}
38else if(z.endsWith("vw")){var W=k/this.window.innerWidth*100;k="".concat(W,"vw")}else if(z.endsWith("vh")){var H=k/this.window.innerHeight*100;k="".concat(H,"vh")}}var F={width:this.createSizeForCssProperty(R,"width"),height:this.createSizeForCssProperty(k,"height")};"row"===this.flexDir?F.flexBasis=F.width:"column"===this.flexDir&&(F.flexBasis=F.height);var B=this.state.width!==F.width,U=this.state.height!==F.height,D=this.state.flexBasis!==F.flexBasis,$=B||U||D;$&&(0,s.flushSync)(function(){t.setState(F)}),this.props.onResize&&$&&this.props.onResize(e,y,this.resizable,T)}},t.prototype.onMouseUp=function(e){var t,i,r=this.state,n=r.isResizing,s=r.direction;r.original,n&&this.resizable&&(this.props.onResizeStop&&this.props.onResizeStop(e,s,this.resizable,this.delta),this.props.size&&this.setState({width:null!=(t=this.props.size.width)?t:"auto",height:null!=(i=this.props.size.height)?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:p(p({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(e){var t,i;this.setState({width:null!=(t=e.width)?t:"auto",height:null!=(i=e.height)?i:"auto"})},t.prototype.renderResizer=function(){var e=this,t=this.props,r=t.enable,n=t.handleStyles,s=t.handleClasses,o=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!r)return null;var u=Object.keys(r).map(function(t){return!1!==r[t]?(0,i.jsx)(d,{direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:s&&s[t],children:l&&l[t]?l[t]:null},t):null});return(0,i.jsx)("div",{className:a,style:o,children:u})},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce(function(t,i){return -1!==x.indexOf(i)||(t[i]=e.props[i]),t},{}),r=p(p(p({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return(0,i.jsxs)(n,p({style:r,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)},children:[this.state.isResizing&&(0,i.jsx)("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(n.PureComponent),O=e.i(675545);e.i(794264);var A=e.i(946155),j=e.i(153838),k=e.i(627372),R=e.i(597442),_=e.i(969557);let M={width:400,height:500},L={width:800,height:800};function P({context:e="docs"}){let{isOpen:t,toggleOpen:r,displayMode:s}=(0,k.useAiAssistant)(),o=(0,_.useMediaQuery)(`(max-width: ${O.BREAKPOINTS.XL}px)`),a=(0,_.useMediaQuery)(`(max-width: ${O.BREAKPOINTS.SM}px)`),l=o?"overlay":s,[u,c]=(0,R.useLocalStorage)("aiAssistantPanelSize",M),d=(0,n.useMemo)(()=>!u||"number"!=typeof u.width||"number"!=typeof u.height||u.width<=0||u.height<=0?M:u,[u]),h=(0,n.useCallback)(e=>{c(e)},[c]),{maxWidth:p,maxHeight:f}=function(){let[e,t]=(0,n.useState)(L);return(0,n.useEffect)(()=>{let e=()=>{let e=Math.max(window.innerHeight-80-16,400);t({width:Math.max(window.innerWidth-32,300),height:e})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),{maxWidth:e.width,maxHeight:e.height}}(),m=(0,n.useMemo)(()=>({minWidth:300,minHeight:400,maxWidth:p,maxHeight:f}),[p,f]);(0,n.useEffect)(()=>{var e,t;let i=(e=d,t=m,{width:Math.min(Math.max(e.width,t.minWidth),t.maxWidth),height:Math.min(Math.max(e.height,t.minHeight),t.maxHeight)});(i.width!==d.width||i.height!==d.height)&&h(i)},[d,m,h]);let g=(0,n.useCallback)((e,t,i)=>{h({width:i.offsetWidth,height:i.offsetHeight})},[h]),v=(0,n.useMemo)(()=>"inline"===l?{size:{width:"100%",height:"100%"},minWidth:"100%",minHeight:"100%",maxWidth:"100%",maxHeight:"100%",enable:{},className:"flex flex-col overflow-hidden bg-product-surface-base-bold"}:{size:d,minWidth:m.minWidth,minHeight:m.minHeight,maxWidth:m.maxWidth,maxHeight:m.maxHeight,onResizeStop:g,enable:{top:!0,left:!0,topLeft:!0},className:"flex flex-col overflow-hidden rounded-lg border border-product-divider bg-product-surface-base-bold shadow-product-popover",handleStyles:{topLeft:{background:"transparent",border:"none",width:"20px",height:"20px",cursor:"nw-resize"}}},[l,d,m,g]),w=(0,n.useMemo)(()=>"inline"===l?{className:"flex size-full flex-col overflow-hidden border-l border-product-divider bg-product-surface-base-bold",style:{}}:{className:"fixed z-30 will-change-transform max-sm:right-2 max-sm:bottom-2 sm:right-4 sm:bottom-4",style:{}},[l,t]);return t?a?(0,i.jsx)(A.Sheet,{open:t,onOpenChange:r,children:(0,i.jsxs)(A.SheetContent,{className:"h-[85vh]",hideGrabber:!0,children:[(0,i.jsx)(A.SheetHeader,{className:"sr-only",children:(0,i.jsx)(A.SheetTitle,{children:"AI Assistant"})}),(0,i.jsx)(j.AIAssistant,{onClose:r,context:e})]})}):(0,i.jsx)("div",{className:w.className,style:{...w.style},children:(0,i.jsx)(z,{...v,children:(0,i.jsx)(j.AIAssistant,{onClose:r,context:e})})}):null}var C=e.i(584789);e.s(["AiAssistantLayoutWrapper",0,function({children:e,className:t="flex min-h-screen"}){var n;let s=(0,r.usePathname)(),{showAiInlinePanel:o}=(0,C.useAiAssistantLayout)(),a=(n=s)?n.startsWith("/docs/tutorial")?"tutorial":n.startsWith("/docs/guides")?"guides":n.startsWith("/dashboard")?"dashboard":"docs":"docs";return(0,i.jsxs)("div",{className:t,children:[(0,i.jsx)("div",{className:"min-w-0 flex-1",children:e}),(0,i.jsx)("div",{className:o?"hidden xl:block xl:w-(--ai-assistant-inline-width) xl:flex-none":"hidden"}),(0,i.jsx)("div",{className:o?"fixed top-0 right-0 bottom-0 hidden h-screen w-(--ai-assistant-inline-width) xl:block":"h-0 w-0",children:(0,i.jsx)(P,{context:a})})]})}],360628)},622695,e=>{"use strict";var t=e.i(618566),i=e.i(271645),r=e.i(95187);let n=(0,r.createServerReference)("40e59211ed46f8b795cfa697bacee137d5b38109cb",r.callServer,void 0,r.findSourceMapURL,"trackPageViewAction");e.s(["PageViewTracker",0,function(){let e=(0,t.usePathname)(),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{e!==r.current&&(r.current=e,n(e??""))},[e]),null}],622695)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.