PageSourceSearch

https://fal.ai/_next/static/chunks/05ih3ea5i6wcv.js?dpl=10aeed04e706b9b2e17a5-production

js fal.ai collected 2026-10-01 06:56:36 UTC 144,881 bytes, 6 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f61f-c327-7da3-b783-803142f11f99")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,846387,e=>{"use strict";let t,r,n;var i=e.i(247167),a=e.i(843476),s=e.i(58345),o=e.i(912598),l=e.i(619273),c=function(){return null},u=e.i(944362),d=e.i(504946),h=e.i(819769),p=e.i(467034),f=e.i(271645),m=Object.defineProperty,g=Object.defineProperties,y=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(e,t,r)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t||(t={}))C.call(t,r)&&x(e,r,t[r]);if(v)for(var r of v(t))b.call(t,r)&&x(e,r,t[r]);return e},_="https://api.unifyintent.com/analytics/v1",k=/^[A-Za-z0-9._+%-]+@[A-Za-z0-9.-]+[.][A-Za-z]+$/,E=["identify","page"];function S(e){return!!e&&"object"==typeof e&&!Array.isArray(e)&&E.every(t=>t in e)}function A(e,t){var r;return(null!=(r=null==t?void 0:t.getTime())?r:new Date().getTime())+60*e*1e3}var j=e=>({path:null!=e?e:window.location.pathname,query:I(window.location.href),referrer:document.referrer,title:document.title,url:void 0!==e?function({location:e,pathname:t}){let r=new URL(e.href);return r.pathname=t,r.toString()}({location:window.location,pathname:e}):window.location.href}),P=()=>({userAgent:window.navigator.userAgent,userAgentData:void 0!==navigator.userAgentData?navigator.userAgentData:void 0}),T=e=>{if(k.test(e))return e},I=e=>{let t=new URL(e).searchParams,r={};for(let[e,n]of t.entries())r[e]=n;return r};function R(e){try{return new URL(e.startsWith("http")?e:`https://${e}`).hostname}catch(e){return null}}function L(e){var t;return null!=(t=e.split("@").at(1))?t:null}var O,M=class{constructor(e){this.getBaseActivityPayload=()=>{var e,t,r,n,i;let a,s;return{type:this.getActivityType(),visitorId:this._intentContext.identityManager.getOrCreateVisitorId(),sessionId:this._intentContext.sessionManager.getOrCreateSession().sessionId,context:(s={source:null!=(e=(a=new URL(location.href)).searchParams.get("utm_source"))?e:void 0,medium:null!=(t=a.searchParams.get("utm_medium"))?t:void 0,campaign:null!=(r=a.searchParams.get("utm_campaign"))?r:void 0,term:null!=(n=a.searchParams.get("utm_term"))?n:void 0,content:null!=(i=a.searchParams.get("utm_content"))?i:void 0},g(w({locale:navigator.language},P()),y({utm:s}))),timestamp:new Date().toISOString()}},this._intentContext=e}track(){this._intentContext.apiClient.post(this.getActivityURL(),this.getTrackPayload())}getTrackPayload(){return w(w({},this.getBaseActivityPayload()),this.getActivityData())}},N=`${_}/page`,D=class extends M{constructor(e,t){super(e),this.getActivityData=()=>{var e;return{type:"page",properties:j(null==(e=this._options)?void 0:e.pathname)}},this._options=t}getActivityType(){return"page"}getActivityURL(){return N}},U=`${_}/identify`,H=class extends M{constructor(e,{email:t,person:r,company:n}){super(e),this.getActivityData=()=>{var e;let t=this._company&&R(null==(e=this._company)?void 0:e.domain),r=L(this._email),n=t&&t===r?this._company:void 0;return w({type:"identify",person:g(w({},this._person),y({email:this._email}))},n&&{company:this._company})},this._email=t,this._person=r,this._company=n}getActivityType(){return"identify"}getActivityURL(){return U}},F=`${_}/track`,B=class extends M{constructor(e,{name:t,properties:r}){super(e),this.getActivityData=()=>({type:"track",name:this._name,properties:w(w({},j()),this._properties)}),this._name=t,this._properties=r}getActivityType(){return"track"}getActivityURL(){return F}},V=new Uint8Array(16),$=[];for(let e=0;e<256;++e)$.push((e+256).toString(16).slice(1));var z="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),q=function(e,t,r){if(z&&!t&&!e)return z();let n=(e=e||{}).random||(e.rng||function(){if(!O&&!(O="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(V)})();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return $[e[t+0]]+$[e[t+1]]+$[e[t+2]]+$[e[t+3]]+"-"+$[e[t+4]]+$[e[t+5]]+"-"+$[e[t+6]]+$[e[t+7]]+"-"+$[e[t+8]]+$[e[t+9]]+"-"+$[e[t+10]]+$[e[t+11]]+$[e[t+12]]+$[e[t+13]]+$[e[t+14]]+$[e[t+15]]}(n)};function K(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var W=function e(t,r){function n(e,n,i){if("u">typeof document){"number"==typeof(i=K({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
1URIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+a}}return Object.create({set:n,get:function(e){if(!("u"<typeof document||arguments.length&&!e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var a=r[i].split("="),s=a.slice(1).join("=");try{var o=decodeURIComponent(a[0]);if(n[o]=t.read(s,o),e===o)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){n(e,"",K({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,K({},this.attributes,t))},withConverter:function(t){return e(K({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Z="function"==typeof p.Buffer,G="function"==typeof TextDecoder?new TextDecoder:void 0,Y="function"==typeof TextEncoder?new TextEncoder:void 0,J=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Q=(r={},J.forEach((e,t)=>r[e]=t),r),X=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ee=String.fromCharCode.bind(String),et="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),er="function"==typeof btoa?e=>btoa(e):Z?e=>p.Buffer.from(e,"binary").toString("base64"):e=>{let t,r,n,i,a="",s=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw TypeError("invalid character found");a+=J[(t=r<<16|n<<8|i)>>18&63]+J[t>>12&63]+J[t>>6&63]+J[63&t]}return s?a.slice(0,s-3)+"===".substring(s):a},en=Z?e=>p.Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(ee.apply(null,e.subarray(r,r+4096)));return er(t.join(""))},ei=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?ee(192|t>>>6)+ee(128|63&t):ee(224|t>>>12&15)+ee(128|t>>>6&63)+ee(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return ee(240|t>>>18&7)+ee(128|t>>>12&63)+ee(128|t>>>6&63)+ee(128|63&t)},ea=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,es=Z?e=>p.Buffer.from(e,"utf8").toString("base64"):Y?e=>en(Y.encode(e)):e=>er(e.replace(ea,ei)),eo=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,el=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return ee((t>>>10)+55296)+ee((1023&t)+56320);case 3:return ee((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return ee((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},ec="function"==typeof atob?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):Z?e=>p.Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!X.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,i;for(let a=0;a<e.length;)t=Q[e.charAt(a++)]<<18|Q[e.charAt(a++)]<<12|(n=Q[e.charAt(a++)])<<6|(i=Q[e.charAt(a++)]),r+=64===n?ee(t>>16&255):64===i?ee(t>>16&255,t>>8&255):ee(t>>16&255,t>>8&255,255&t);return r},eu=Z?e=>et(p.Buffer.from(e,"base64")):e=>et(ec(e).split("").map(e=>e.charCodeAt(0))),ed=Z?e=>p.Buffer.from(e,"base64").toString("utf8"):G?e=>G.decode(eu(e)):e=>ec(e).replace(eo,el),eh="test";function ep(e){try{return JSON.parse(e)}catch(t){return e}}function ef(e){return((e,t=!1)=>t?es(e).replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"):es(e))(JSON.stringify(e))}var em=class{constructor(e){this.get=e=>{let t=this.retrieveValue(e);return t?ep(t):this.legacyGet(e)},this.legacyGet=e=>{let t=this.retrieveValue(this.buildKey(e));return t?ep(ed(t.replace(/[-_]/g,e=>"-"==e?"+":"/").replace(/[^A-Za-z0-9\+\/]/g,""))):null},this.set=(e,t)=>{this.storeValue(e,"string"==typeof t?t:JSON.stringify(t)),this.legacySet(e,t)},this.legacySet=(e,t)=>{this.storeValue(this.buildKey(e),ef(t))},this.buildKey=e=>ef(`${this._writeKey}_${e}`),this._writeKey=e}},eg=class extends em{retrieveValue(e){var t;let r=null!=(t=W.get(e))?t:null;return r&&this.storeValue(e,r),r}storeValue(e,t){W.set(e,t,{domain:`.${window.location.hostname.split(".").slice(-2).join(".")}`,expires:400})}},ey=class extends em{constructor(e){super(e),this.retrieveValue=e=>this._localStorageAvailable?localStorage.getItem(e):null,this.storeValue=(e,t)=>
1{this._localStorageAvailable&&localStorage.setItem(e,t)},this._localStorageAvailable=function(){try{return localStorage.setItem(eh,eh),localStorage.removeItem(eh),!0}catch(e){return!1}}()}},ev="unify_visitor_id",eC=class{constructor(e){this.getOrCreateVisitorId=()=>{if(this._visitorId)return this._visitorId;let e=this.getVisitorId()||this.createVisitorId();return this._visitorId=e,e},this.getVisitorId=()=>{let e=this._storageService.get(ev);if(e)return e;let t=this._storageService.get("anonymousUserId");return t&&this._storageService.set(ev,t),t},this.createVisitorId=()=>{let e=q();return this._storageService.set(ev,e),e},this._storageService=new eg(e),this._visitorId=null}},eb={durationMinutes:30},ex="unify_session",ew=class{constructor(e,t){this.getOrCreateSession=()=>this.getAndUpdateSession()||this.createSession(),this.getAndUpdateSession=()=>{let e=this._currentSession||this.getStoredSession();if(e&&e.expiration>new Date().getTime())return this.updateSessionExpiration(e)},this.createSession=()=>{var e;let t=w({sessionId:q(),startTime:new Date,expiration:A(null!=(e=this._options.durationMinutes)?e:30),initial:j()},P());return this._currentSession=t,this.setStoredSession(t),t},this.updateSessionExpiration=e=>{var t;let r=g(w({},e),y({expiration:A(null!=(t=this._options.durationMinutes)?t:30)}));return this._currentSession=r,this.setStoredSession(r),r},this.getStoredSession=()=>{let e=this._storageService.get(ex);if(e)return e;let t=this._storageService.get("clientSession");return t&&this.setStoredSession(t),t},this.setStoredSession=e=>{this._storageService.set(ex,e),this._cookieStorageService.set("unify_session_id",e.sessionId)},this._writeKey=e,this._options=null!=t?t:eb,this._storageService=new ey(this._writeKey),this._cookieStorageService=new eg(this._writeKey),this._currentSession=null}},e_=class{constructor(e){this.post=(e,t)=>{let r=JSON.stringify(t);if(fetch)fetch(e,{method:"POST",body:r,headers:{"Content-type":"application/json; charset=UTF-8","X-Write-Key":this._writeKey},keepalive:!0}).catch(()=>{});else{let t=new XMLHttpRequest;t.open("POST",e,!0),t.setRequestHeader("Content-type","application/json; charset=UTF-8"),t.setRequestHeader("X-Write-Key",this._writeKey),t.send(r)}},this._writeKey=e}};function ek({message:e,error:t,attrs:r,apiClient:n}){console.debug(`%c[Unify]: %c${e}${t?`: ${t.message}`:""}${r?`, data: ${JSON.stringify(r)}`:""}`,"font-weight: bold;","");let i=r&&Object.entries(r).reduce((e,[t,r])=>g(w({},e),y({[t]:"string"==typeof r?r:JSON.stringify(r)})),{});null==n||n.post("https://api.unifyintent.com/analytics/v1/_internal/logs",{status:"error",message:e,attrs:i,name:null==t?void 0:t.name,stack:null==t?void 0:t.stack,version:"1.5.0"})}var eE="unifyAttr",eS=["default.form_completed","deafult.form_page_submitted","default.form_page_submitted"];function eA(e){return eS.includes(e.event)}function ej(e,t,r){var n,i;return null!=(i=null==(n=r.find(({object:r,name:n})=>r===t&&n===e))?void 0:n.value)?i:null}function eP(e,t=80){if(!e)return null;let r=e.replace(/\s+/g," ").trim();return r?r.length>t?r.slice(0,t-1)+"...":r:null}function eT(e){return e.innerText||e.textContent||""}var eI=class{constructor(e){var t,r;this._monitoredInputs=new Set,this._submittedEmails=new Set,this._historyMonitored=!1,this._isTrackingClicks=!1,this.startAutoPage=()=>{this._historyMonitored||this.monitorHistory(),this._autoPage=!0},this.stopAutoPage=()=>{this._historyMonitored&&window.removeEventListener("popstate",this.maybeTrackPage),this._autoPage=!1},this.startAutoIdentify=()=>{this._autoIdentify=!0,this.refreshMonitoredInputs(),setInterval(this.refreshMonitoredInputs,2e3),this.subscribeToThirdPartyMessages()},this.stopAutoIdentify=()=>{this._monitoredInputs.forEach(e=>{e.isConnected&&(e.removeEventListener("blur",this.handleInputBlur),e.removeEventListener("keydown",this.handleInputKeydown))}),this._monitoredInputs.clear(),this.unsubscribeFromThirdPartyMessages(),this._autoIdentify=!1},this.startAutoTrack=e=>{e&&(this._autoTrackOptions=e),this.startTrackingClicks()},this.stopAutoTrack=()=>{this.stopTrackingClicks()},this.monitorHistory=()=>{try{let e=history.pushState;history.pushState=(...t)=>{e.apply(history,t),this.maybeTrackPage()};let t=history.replaceState;history.replaceState=(...e)=>{t.apply(history,e),this.maybeTrackPage()},window.addEventListener("popstate",this.maybeTrackPage),this._historyMonitored=!0}catch(e){this.logError("Error occurred in monitorHistory",e)}},this.maybeTrackPage=()=>{if(this._autoPage)try{var e,t;this._lastLocation&&(e=this._lastLocation,t=window.location,e.hostname===t.hostname&&e.pathname===t.pathname)||(new D(this._intentContext).track(),this._lastLocation=w({},window.location))}catch(e){this.logError("Error occurred in maybeTrackPage",e)}},this.startTrackingClicks=()=>{this._isTrackingClicks||(document.addEventListener("click",this.handleDocumentClick),this._isTrackingClicks=!0)},this.stopTrackingClicks=()=>{this._isTrackingClicks&&(document.removeEventListener("click",this.handleDocumentClick),this._isTrackingClicks=!1)},this.handleDocumentClick=e=>{var t;try{let r=e.target;if(!r)return;let n=["[data-unify-track-clicks]",...null!=(t=this._autoTrackOptions.clickTrackingSelectors)?t:[]],i=r.closest(n.join(", "));if(!i||!(i instanceof HTMLElement))return;
1this.maybeTrackClick(i)}catch(e){this.logError("Error occurred in handleDocumentClick",e)}},this.refreshMonitoredInputs=()=>{if(this._autoIdentify)try{this._monitoredInputs.forEach(e=>{e.isConnected||this._monitoredInputs.delete(e)}),Array.from(document.getElementsByTagName("input")).filter(e=>{var t;return!this._monitoredInputs.has(e)&&(t=e,"email"===t.type||"text"===t.type)}).forEach(e=>{e.addEventListener("blur",this.handleInputBlur),e.addEventListener("keydown",this.handleInputKeydown),this._monitoredInputs.add(e)})}catch(e){this.logError("Error occurred in refreshMonitoredInputs",e)}},this.subscribeToThirdPartyMessages=()=>{window.addEventListener("message",this.handleThirdPartyMessage)},this.unsubscribeFromThirdPartyMessages=()=>{window.removeEventListener("message",this.handleThirdPartyMessage)},this.handleThirdPartyMessage=e=>{if(this._autoIdentify)try{switch(e.origin){case"https://forms.default.com":this.handleDefaultFormMessage(e);break;case"https://capture.navattic.com":this.handleNavatticDemoMessage(e)}}catch(e){this.logError("Error occurred in handleThirdPartyMessage",e)}},this.handleDefaultFormMessage=e=>{if(this._autoIdentify)try{if(eA(e.data)){let t=e.data.payload.email;t&&this.maybeIdentifyInputEmail(t,function(e,t){if(eA(e))try{let{email:t,attributes:r}=e.payload,n=w({email:t},r&&w(w(w(w({},r.first_name&&{first_name:r.first_name}),r.last_name&&{last_name:r.last_name}),r.phone&&{mobile_phone:r.phone}),r.title&&{title:r.title})),i=null!=r&&r.website?R(r.website):null,a;if(i&&i===L(t)){let e=r&&!isNaN(Number(r.head_count))?Number(r.head_count):void 0;a=w({domain:i},r&&w(w(w({},r.company&&{name:r.company}),r.industry_group&&{industry:r.industry_group}),e&&{employee_count:e}))}return w({person:n},a&&{company:a})}catch(e){ek({message:`Error occurred while parsing attributes from Default event payload: ${e}`,error:e,apiClient:t});return}}(e.data,this._intentContext.apiClient))}}catch(e){this.logError("Error occurred in handleDefaultFormMessage",e)}},this.handleNavatticDemoMessage=e=>{var t,r;if(this._autoIdentify)try{let n=(null!=(r=null==(t=e.data)?void 0:t.properties)?r:[]).find(({object:e,name:t})=>"END_USER"===e&&"email"===t);n&&this.maybeIdentifyInputEmail(n.value,function(e,t){var r,n,i,a,s;try{let t=null!=(r=e.properties)?r:[],o=ej("email","END_USER",t);if(!o)return;let l=ej("fullName","END_USER",t),c=l?l.split(" ")[0]:ej("firstName","END_USER",t),u=l?l.split(" ")[1]:ej("lastName","END_USER",t),d=ej("phone","END_USER",t),h=w(w(w({email:o},c&&{first_name:c}),u&&{last_name:u}),d&&{mobile_phone:d}),p=ej("domain","COMPANY_ACCOUNT",t),f=p?R(p):null,m;if(f&&f===L(o)){let e=null!=(n=ej("name","COMPANY_ACCOUNT",t))?n:void 0,r=null!=(i=ej("description","COMPANY_ACCOUNT",t))?i:void 0,o=null!=(a=ej("linkedin","COMPANY_ACCOUNT",t))?a:void 0,l=ej("industry","COMPANY_ACCOUNT",t),c=ej("foundedYear","COMPANY_ACCOUNT",t),u=null!=(s=ej("employeeCount","COMPANY_ACCOUNT",t))?s:void 0,d=isNaN(Number(u))?void 0:Number(u);m=w(w(w(w(w(w({domain:f},e&&{name:e}),r&&{description:r}),o&&{linkedin_url:o}),l&&{industry:l}),c&&{founded:c}),d&&{employee_count:d})}return w({person:h},m&&{company:m})}catch(e){ek({message:`Error occurred while parsing attributes from Navattic event payload: ${e}`,error:e,apiClient:t});return}}(e.data,this._intentContext.apiClient))}catch(e){this.logError("Error occurred in handleNavatticDemoMessage",e)}},this.handleInputBlur=e=>{if(this._autoIdentify)try{e.target instanceof HTMLInputElement&&this.maybeIdentifyInputEmail(e.target.value)}catch(e){this.logError("Error occurred in handleInputBlur",e)}},this.handleInputKeydown=e=>{if(this._autoIdentify)try{"Enter"===e.key&&e.target instanceof HTMLInputElement&&this.maybeIdentifyInputEmail(e.target.value)}catch(e){this.logError("Error occurred in handleInputKeyDown",e)}},this.maybeIdentifyInputEmail=(e,t)=>{if(this._autoIdentify)try{if(e){if(!T(e)||this._submittedEmails.has(e))return;new H(this._intentContext,{email:e,person:null==t?void 0:t.person,company:null==t?void 0:t.company}).track(),this._submittedEmails.add(e)}}catch(e){this.logError("Error occurred in maybeIdentifyInputEmail",e)}}
1,this.maybeTrackClick=e=>{try{let t,r;if(!(e instanceof HTMLElement)||function(e){if(!(e instanceof HTMLElement))return!1;if(e.hidden||"true"===e.getAttribute("aria-hidden"))return!0;let t=getComputedStyle(e);return"none"===t.display||"hidden"===t.visibility}(e)||e.matches(":disabled")||"true"===e.getAttribute("aria-disabled")||e.classList.contains("disabled")||function(e,t){if(!(e instanceof HTMLElement))return!1;let{dataset:r}=e;return!!r[t]}(e,"unifyExclude"))return;let n=function(e){let t,r,n=function(e,t){if(!(e instanceof HTMLElement))return null;let{dataset:r}=e;return r[t]?String(r[t]):null}(e,"unifyLabel");if(n)return n;let i=eT(e);if(i)return eP(i);let a=e.getAttribute("aria-label");if(a)return eP(a);let s=(t=e.getAttribute("aria-labelledby"))?t.split(/\s+/).map(e=>{let t=document.getElementById(e);return t?eT(t):null}).filter(e=>!!e).join(" "):null;if(s)return eP(s);let o=(r=e.querySelector("img[alt]"),(null==r?void 0:r.alt)||null);return o?eP(o):null}(e);if(!n)return;let i=function(e){if(!(e instanceof HTMLElement))return{};let t={};return Object.entries(e.dataset).forEach(([e,r])=>{if(e.startsWith(eE)&&r){let n=e.slice(eE.length);n&&(t[`${n.charAt(0).toLowerCase()}${n.slice(1)}`]=r)}}),t}(e);new B(this._intentContext,{name:"Element Clicked",properties:(t=w({},i),r={elementName:n,wasAutoTracked:!0},g(t,y(r)))}).track()}catch(e){this.logError("Error occurred in maybeTrackClick",e)}},this.logError=(e,t)=>{ek({message:`UnifyIntentAgent: ${e}`,error:t,apiClient:this._intentContext.apiClient})},this.__getMonitoredInputs=()=>this._monitoredInputs,this.__getSubmittedEmails=()=>this._submittedEmails,this._intentContext=e,this._autoPage=null!=(t=e.clientConfig.autoPage)&&t,this._autoIdentify=null!=(r=e.clientConfig.autoIdentify)&&r,this._autoTrackOptions=w({},e.clientConfig.autoTrackOptions),this._autoPage&&(this.startAutoPage(),this.maybeTrackPage()),this._autoIdentify&&this.startAutoIdentify(),this.startAutoTrack()}},eR={autoPage:!1,autoIdentify:!1,sessionDurationMinutes:30},eL=class{constructor(e,t=eR){this._mounted=!1,this.mount=()=>{if("u">typeof window)try{var e,t;if(S(window.unify)||S(window.unifyBrowser))return void ek({message:"UnifyIntentClient already exists on window, a new one will not be created."});let r=new e_(this._writeKey),n=new ew(this._writeKey,{durationMinutes:this._config.sessionDurationMinutes});n.getOrCreateSession();let i=new eC(this._writeKey);i.getOrCreateVisitorId(),this._context={writeKey:this._writeKey,clientConfig:this._config,apiClient:r,sessionManager:n,identityManager:i},this._intentAgent=new eI(this._context),this._mounted=!0,e=this,t=r,(Array.isArray(window.unify)?[...window.unify]:Array.isArray(window.unifyBrowser)?[...window.unifyBrowser]:[]).forEach(([r,n])=>{if("function"==typeof e[r])try{Array.isArray(n)?e[r].call(e,...n):e[r].call(e)}catch(e){ek({message:`Error occurred while flushing queue: ${null==e?void 0:e.message}`,error:e,apiClient:t})}}),window.unify=this,window.unifyBrowser=this}catch(e){this.logError("Error occurred in mount",e)}},this.unmount=()=>{if("u">typeof window)try{this._config.autoPage&&this.stopAutoPage(),this._config.autoIdentify&&this.stopAutoIdentify(),this.stopAutoTrack(),this._mounted=!1,window.unify=void 0,window.unifyBrowser=void 0}catch(e){this.logError("Error occurred in unmount",e)}},this.page=e=>{if(this._mounted)try{new D(this._context,e).track()}catch(e){this.logError("Error occurred in page",e)}},this.getPagePayload=e=>{if(this._mounted)try{return new D(this._context,e).getTrackPayload()}catch(e){this.logError("Error occurred in getPagePayload",e)}},this.identify=(e,t)=>{if(!this._mounted)return!1;try{let r=T(e);if(r)return new H(this._context,{email:r,person:null==t?void 0:t.person,company:null==t?void 0:t.company}).track(),!0}catch(e){this.logError("Error occurred in identify",e)}return!1},this.getIdentifyPayload=(e,t)=>{if(!this._mounted)return!1;try{let r=T(e);if(r)return new H(this._context,{email:r,person:null==t?void 0:t.person,company:null==t?void 0:t.company}).getTrackPayload()}catch(e){this.logError("Error occurred in getIdentifyPayload",e)}},this.track=(e,t)=>{if(this._mounted)try{new B(this._context,{name:e,properties:t}).track()}catch(e){this.logError("Error occurred in track",e)}},this.getTrackPayload=(e,t)=>{if(this._mounted)try{return new B(this._context,{name:e,properties:t}).getTrackPayload()}catch(e){this.logError("Error occurred in getTrackPayload",e)}},this.startAutoPage=()=>
1{if(this._mounted)try{this._intentAgent||(this._intentAgent=new eI(this._context)),this._intentAgent.startAutoPage()}catch(e){this.logError("Error occurred in startAutoPage",e)}},this.stopAutoPage=()=>{var e;if(this._mounted)try{null==(e=this._intentAgent)||e.stopAutoPage()}catch(e){this.logError("Error occurred in stopAutoPage",e)}},this.startAutoIdentify=()=>{if(this._mounted)try{this._intentAgent||(this._intentAgent=new eI(this._context)),this._intentAgent.startAutoIdentify()}catch(e){this.logError("Error occurred in startAutoIdentify",e)}},this.stopAutoIdentify=()=>{var e;if(this._mounted)try{null==(e=this._intentAgent)||e.stopAutoIdentify()}catch(e){this.logError("Error occurred in stopAutoIdentify",e)}},this.startAutoTrack=e=>{if(this._mounted)try{e&&(this._config.autoTrackOptions=e),this._intentAgent||(this._intentAgent=new eI(this._context)),this._intentAgent.startAutoTrack(e)}catch(e){this.logError("Error occurred in startAutoTrack",e)}},this.stopAutoTrack=()=>{var e;if(this._mounted)try{null==(e=this._intentAgent)||e.stopAutoTrack()}catch(e){this.logError("Error occurred in stopAutoTrack",e)}},this.logError=(e,t)=>{ek({message:`UnifyIntentClient: ${e}`,error:t,apiClient:this._context.apiClient})},this._writeKey=e,this._config=t}};function eO(){return null}f.default.createContext({client:null}).displayName="UnifyIntentContext";var eM=e.i(709344),eN=e.i(353047),eD=e.i(866012);function eU({children:e,isValidProp:t,...r}){t&&(0,eN.loadExternalIsValidProp)(t),(r={...(0,f.useContext)(eM.MotionConfigContext),...r}).isStatic=(0,eD.useConstant)(()=>r.isStatic);let n=(0,f.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return(0,a.jsx)(eM.MotionConfigContext.Provider,{value:n,children:e})}var eH=e.i(363178),eF=e.i(618566);class eB{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class eV{constructor(e){this.generateIdentifier=e,this.kv=new eB}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}}class e$ extends eV{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}}function ez(e,t){Object.entries(e).forEach(([e,r])=>t(r,e))}function eq(e,t){return -1!==e.indexOf(t)}function eK(e,t){for(let r=0;r<e.length;r++){let n=e[r];if(t(n))return n}}class eW{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return function(e,t){let r=function(e){if("values"in Object)return Object.values(e);let t=[];for(let r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}}let eZ=e=>void 0===e,eG=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),eY=e=>eG(e)&&0===Object.keys(e).length,eJ=e=>Array.isArray(e),eQ=e=>e instanceof Map,eX=e=>e instanceof Set,e1=e=>"Symbol"===Object.prototype.toString.call(e).slice(8,-1),e0=e=>"number"==typeof e&&isNaN(e),e6=e=>e.replace(/\./g,"\\."),e2=e=>e.map(String).map(e6).join("."),e5=e=>{let t=[],r="";for(let n=0;n<e.length;n++){let i=e.charAt(n);if("\\"===i&&"."===e.charAt(n+1)){r+=".",n++;continue}if("."===i){t.push(r),r="";
1continue}r+=i}let n=r;return t.push(n),t};function e4(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let e8=[e4(eZ,"undefined",()=>null,()=>void 0),e4(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>"u">typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),e4(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),e4(e=>e instanceof Error,"Error",(e,t)=>{let r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r},(e,t)=>{let r=Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r}),e4(e=>e instanceof RegExp,"regexp",e=>""+e,e=>new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))),e4(eX,"set",e=>[...e.values()],e=>new Set(e)),e4(eQ,"map",e=>[...e.entries()],e=>new Map(e)),e4(e=>e0(e)||e===1/0||e===-1/0,"number",e=>e0(e)?"NaN":e>0?"Infinity":"-Infinity",Number),e4(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),e4(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function e9(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let e7=e9((e,t)=>!!e1(e)&&!!t.symbolRegistry.getIdentifier(e),(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,r)=>{let n=r.symbolRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),e3=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),te=e9(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let r=e3[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function tt(e,t){return!!e?.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}let tr=e9(tt,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return{...e};let n={};return r.forEach(t=>{n[t]=e[t]}),n},(e,t,r)=>{let n=r.classRegistry.getValue(t[1]);if(!n)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(n.prototype),e)}),tn=e9((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,r)=>{let n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),ti=[tr,e7,tn,te],ta=(e,t)=>{let r=eK(ti,r=>r.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};let n=eK(e8,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation}},ts={};e8.forEach(e=>{ts[e.annotation]=e});let to=(e,t)=>{if(t>e.size)throw Error("index out of bounds");let r=e.keys();for(;t>0;)r.next(),t--;return r.next().value};function tl(e){if(eq(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(eq(e,"prototype"))throw Error("prototype is not allowed as a property");if(eq(e,"constructor"))throw Error("constructor is not allowed as a property")}let tc=(e,t,r)=>{if(tl(t),0===t.length)return r(e);let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(eJ(n))n=n[+r];else if(eG(n))n=n[r];else if(eX(n))n=to(n,+r);else if(eQ(n)){if(e===t.length-2)break;let i=+r,a=0==+t[++e]?"key":"value",s=to(n,i);switch(a){case"key":n=s;break;case"value":n=n.get(s)}}}let i=t[t.length-1];if(eJ(n)?n[+i]=r(n[+i]):eG(n)&&(n[i]=r(n[i])),eX(n)){let e=to(n,+i),t=r(e);e!==t&&(n.delete(e),n.add(t))}if(eQ(n)){let e=to(n,+t[t.length-2]);switch(0==+i?"key":"value"){case"key":{let t=r(e);n.set(t,n.get(e)),t!==e&&n.delete(e);break}case"value":n.set(e,r(n.get(e)))}}return e},tu=(e,t,r,n,i=[],a=[],s=new Map)=>{let o=(e=>"boolean"==typeof e||null===e||eZ(e)||"number"==typeof e&&!isNaN(e)||"string"==typeof e||e1(e))(e);if(!o){let r;(r=t.get(e))?r.push(i):t.set(e,[i]);let a=s.get(e);if(a)return n?{transformedValue:null}:a}if(!(eG(e)||eJ(e)||eQ(e)||eX(e)||tt(e,r))){let t=ta(e,r),n=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return o||s.set(e,n),n}if(eq(a,e))return{transformedValue:null};let l=ta(e,r),c=l?.value??e,u=eJ(c)?[]:{},d={};ez(c,(o,l)=>{if("__proto__"===l||"constructor"===l||"prototype"===l)throw Error(`Detected property ${l}. This is a prototype pollution risk, please remove it from your object.`);let c=tu(o,t,r,n,[...i,l],[...a,e],s);u[l]=c.transformedValue,eJ(c.annotations)?d[l]=c.annotations:eG(c.annotations)&&ez(c.annotations,(e,t)=>{d[e6(l)+"."+t]=e})});let h=eY(d)?{transformedValue:u,annotations:l?[l.type]:void 0}:{transformedValue:u,annotations:l?[l.type,d]:d};return o||s.set(e,h),h};function td(e){return Object.prototype.toString.call(e).slice(8,-1)}function th(e){return"Array"===td(e)}class tp{constructor({dedupe:e=!1}={}){this.classRegistry=new e$,this.symbolRegistry=new eV(e=>e.description??""),this.customTransformerRegistry=new eW,this.allowedErrorProps=[],this.dedupe=e}serialize(e){var t;let r,n,i=new Map,a=tu(e,i,this,this.dedupe),s={json:a.transformedValue};a.annotations&&(s.meta={...s.meta,values:a.annotations});let o=(t=this.dedupe,r={}
1,(i.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;0===i.length?n=a.map(e2):r[e2(i)]=a.map(e2)}),n)?eY(r)?[n]:[n,r]:eY(r)?void 0:r);return o&&(s.meta={...s.meta,referentialEqualities:o}),s}deserialize(e){var t,r,n;let{json:i,meta:a}=e,s=function e(t,r={}){return th(t)?t.map(t=>e(t,r)):!function(e){if("Object"!==td(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((n,i)=>{var a;let s;if(th(r.props)&&!r.props.includes(i))return n;let o=e(t[i],r);return a=r.nonenumerable,"enumerable"==(s=({}).propertyIsEnumerable.call(t,i)?"enumerable":"nonenumerable")&&(n[i]=o),a&&"nonenumerable"===s&&Object.defineProperty(n,i,{value:o,enumerable:!1,writable:!0,configurable:!0}),n},{})}(i);return a?.values&&(t=s,r=a.values,n=this,function e(t,r,n=[]){if(!t)return;if(!eJ(t))return void ez(t,(t,i)=>e(t,r,[...n,...e5(i)]));let[i,a]=t;a&&ez(a,(t,i)=>{e(t,r,[...n,...e5(i)])}),r(i,n)}(r,(e,r)=>{t=tc(t,r,t=>((e,t,r)=>{if(eJ(t))switch(t[0]){case"symbol":return e7.untransform(e,t,r);case"class":return tr.untransform(e,t,r);case"custom":return tn.untransform(e,t,r);case"typed-array":return te.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}{let n=ts[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)}})(t,e,n))}),s=t),a?.referentialEqualities&&(s=function(e,t){function r(t,r){let n=((e,t)=>{tl(t);for(let r=0;r<t.length;r++){let n=t[r];if(eX(e))e=to(e,+n);else if(eQ(e)){let i=+n,a=0==+t[++r]?"key":"value",s=to(e,i);switch(a){case"key":e=s;break;case"value":e=e.get(s)}}else e=e[n]}return e})(e,e5(r));t.map(e5).forEach(t=>{e=tc(e,t,()=>n)})}if(eJ(t)){let[n,i]=t;n.forEach(t=>{e=tc(e,e5(t),()=>e)}),i&&ez(i,r)}else ez(t,r);return e}(s,a.referentialEqualities)),s}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}}tp.defaultInstance=new tp,tp.serialize=tp.defaultInstance.serialize.bind(tp.defaultInstance),tp.deserialize=tp.defaultInstance.deserialize.bind(tp.defaultInstance),tp.stringify=tp.defaultInstance.stringify.bind(tp.defaultInstance),tp.parse=tp.defaultInstance.parse.bind(tp.defaultInstance),tp.registerClass=tp.defaultInstance.registerClass.bind(tp.defaultInstance),tp.registerSymbol=tp.defaultInstance.registerSymbol.bind(tp.defaultInstance),tp.registerCustom=tp.defaultInstance.registerCustom.bind(tp.defaultInstance),tp.allowErrorProps=tp.defaultInstance.allowErrorProps.bind(tp.defaultInstance),tp.serialize,tp.deserialize,tp.stringify,tp.parse,tp.registerClass,tp.registerCustom,tp.registerSymbol,tp.allowErrorProps;var tf=e.i(604570),tm=e.i(720565),tg=e.i(50270),ty=e.i(779851);let tv="fal_attribution",tC=tg.z.object({initial_referring_domain:tg.z.string().optional(),initial_utm_source:tg.z.string().optional(),initial_utm_medium:tg.z.string().optional(),initial_utm_campaign:tg.z.string().optional(),initial_utm_content:tg.z.string().optional(),session_referring_domain:tg.z.string().optional(),last_utm_source:tg.z.string().optional(),last_utm_medium:tg.z.string().optional(),last_utm_campaign:tg.z.string().optional(),last_utm_content:tg.z.string().optional()});function tb(e){return"string"==typeof e&&e.length>0?e:void 0}function tx(){"u">typeof document&&(document.cookie=`${tv}=; path=/; max-age=0; SameSite=Lax`)}let tw="1"===i.default.env.NEXT_PUBLIC_POSTHOG_ALLOW_LOCAL,t_=new Set(["localhost","127.0.0.1","0.0.0.0","[::1]"]);var tk=e.i(244966);let tE=new Set(["ResizeObserver loop completed with undelivered notifications.","AbortError: The play() request was interrupted by a call to pause().","AbortError: The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22","The play() request was interrupted by a call to pause().","The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22"]),tS=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function tA(...e){for(let t of e)if("string"==typeof t&&tS.test(t))return t;return crypto.randomUUID()}let tj=/((?:^|[?&]|&amp;)identity=)[^&\s"'\\]+|((?:^|%3F|%26)identity%3D)(?:[^%&\s"'\\]|%(?!2
16|3F))+/gi,tP=/identity(?:=|%3D)/i;function tT(e){return e.replace(tj,(e,t,r)=>`${t??r??""}REDACTED`)}var tI=e.i(134393),tR=e.i(811488),tL=e.i(528020),tO=e.i(965141);function tM(){if("u"<typeof document)return null;let e=document.cookie.split(";").map(e=>e.trim()).find(e=>e.startsWith(`${tO.FREE_TIER_PUBLIC_COOKIE_NAME}=`));if(!e)return null;let t=e.slice(tO.FREE_TIER_PUBLIC_COOKIE_NAME.length+1);return t?`guest:${t}`:null}function tN(){let e=tM();if(e)try{if(tf.default.get_distinct_id()===e)return;tf.default.identify(e,{tier:"free"})}catch{}}var tD=e.i(490215),tU=e.i(804653);let tH=!1,tF=f.useLayoutEffect;function tB(e){if(!e)return;let t={};for(let[r,n]of Object.entries(e))t[r]=tT(n);return t}function tV(){let e=(0,eF.usePathname)(),t=(0,eF.useSearchParams)(),r=(0,tm.usePostHog)(),n=(0,tL.useDataGrailReady)(),i=(0,tL.useMarketingConsent)(),a=(0,tL.usePerformanceConsent)(),s=(0,f.useRef)(null);return(0,f.useEffect)(()=>{if(!e||!r)return;let i="granted"===(0,tk.resolveConsentModeNow)({dataGrailReady:n,performanceAllowed:a,initialized:tH,getExplicitConsentStatus:()=>r.get_explicit_consent_status()})?"granted":"cookieless",o=window.origin+e;t&&t.toString()&&(o+=`?${t.toString()}`);let l="cookieless"===i?(0,tk.sanitizePostHogPageviewUrl)(o):o,c=`${i}:${l}`;s.current!==c&&(s.current=c,r.capture("$pageview",{$current_url:l}))},[n,a,e,t,r]),(0,f.useEffect)(()=>{i&&(t&&(0,tD.captureGclid)(t),function(e){if("u"<typeof document||!(0,ty.isDataGrailCategoryEnabled)(ty.DATAGRAIL_CATEGORIES.marketing))return;let t=new URLSearchParams(window.location.search),r=tb(t.get("utm_source")),n=tb(t.get("utm_medium")),i=tb(t.get("utm_campaign")),a=tb(t.get("utm_content")),s=function(e){if(e)try{return new URL(e).hostname}catch{return}}(document.referrer),o=s&&s!==window.location.hostname?s:void 0,l=tb(e?.getSessionProperty?.("$entry_referring_domain")),c=function(e){if("u"<typeof document)return;let t=`${e}=`;for(let e of document.cookie.split("; "))if(e.startsWith(t)){let r=e.slice(t.length);try{return decodeURIComponent(r)}catch{break}}}(tv),u=function(e){if(!e)return{};try{let t=tC.safeParse(JSON.parse(e));return t.success?t.data:{}}catch{return{}}}(c),d=JSON.stringify({initial_referring_domain:u.initial_referring_domain??o,initial_utm_source:u.initial_utm_source??r,initial_utm_medium:u.initial_utm_medium??n,initial_utm_campaign:u.initial_utm_campaign??i,initial_utm_content:u.initial_utm_content??a,session_referring_domain:l??o??u.session_referring_domain,last_utm_source:r??u.last_utm_source,last_utm_medium:n??u.last_utm_medium,last_utm_campaign:i??u.last_utm_campaign,last_utm_content:a??u.last_utm_content});if(c===d)return;let h=encodeURIComponent(d),p="https:"===window.location.protocol?"; Secure":"";document.cookie=`${tv}=${h}; path=/; max-age=7776000; SameSite=Lax${p}`}(a?r:void 0))},[i,e,a,t,r]),null}function t$(){return(0,a.jsx)(f.Suspense,{fallback:null,children:(0,a.jsx)(tV,{})})}function tz({children:e,flags:r}){let n,s,o,l,c=(0,tI.useUserAuth)(),{currentAccount:u}=c||{},d=(0,f.useRef)(tf.default),h=(0,tL.useDataGrailReady)(),p=(0,tL.useMarketingConsent)(),m=(0,tL.usePerformanceConsent)();!function(e){if(!tH){tH=!0,t=function(e,t){let r=`ph_${t}_posthog=`,n=e.split("; ").find(e=>e.startsWith(r))?.slice(r.length);if(n)try{let e=JSON.parse(decodeURIComponent(n)),t=e?.distinct_id;return"string"==typeof t&&tS.test(t)&&"identified"!==e.$user_state?t:void 0}catch{return}}(document.cookie,"phc_BkrygUwvQjwRHnwDjFQtoY77ts2fse3HVTHQUJk5BNO"),tf.default.init("phc_BkrygUwvQjwRHnwDjFQtoY77ts2fse3HVTHQUJk5BNO",{api_host:i.default.env.NEXT_PUBLIC_POSTHOG_HOST||"/relay-fal",ui_host:"https://us.posthog.com",person_profiles:"identified_only",capture_exceptions:!0,disable_session_recording:!0,session_recording:{blockSelector:'[src*="identity=" i], [src*="identity%3D" i]',maskCapturedNetworkRequestFn:e=>({...e,name:tT(e.name),requestHeaders:tB(e.requestHeaders),requestBody:"string"==typeof e.requestBody?tT(e.requestBody):e.requestBody,responseHeaders:tB(e.responseHeaders),responseBody:"string"==typeof e.responseBody?tT(e.responseBody):e.responseBody})},cookieless_mode:"on_reject",opt_out_persistence_by_default:!0,opt_out_capturing_persistence_type:"cookie",capture_pageview:!1,before_send:e=>{var t,r;return!function(){if(tw)return!1;let{hostname:e}=window.location;return t_.has(e)||e.endsWith(".local")}()?(r=(t=(0,tk.applyPostHogConsentPolicy)((0,tk.resolvePostHogConsentModeFromStatus)(tf.default.get_explicit_consent_status()),e))&&"$exception"===t.event&&t.properties&&(function(e){let t=[],r=e.$exception_value,n=e.$exception_values,i=e.$exception_list;if("string"==typeof r&&t.push(r),Array.isArray(n)&&t.push(...n.filter(e=>"string"==typeof e)),Array.isArray(i))for(let e of i)e&&"object"==typeof e&&"value"in e&&"string"==typeof e.value&&t.push(e.value);return t})(t.properties).some(e=>tE.has(e))?null:t)?function e(t,r){if("string"==typeof t)return tP.test(t)?tT(t):t;if(null===t||"object"!=typeof t)return t;let n=r.get(t);if(void 0!==n)return n;if(Array.isArray(t)){let n=[];r.set(t,n);let i=!1;for(let a of t){let t=e(a,r);t!==a&&(i=!0),n.push(t)}return i?n:(r.set(t,t),t)}let i=Object.getPrototypeOf(t);if(i===Object.prototype||null===i){let n={};r.set(t,n);let i=!1;for(let[a,s]of Object.entries(t)){let t=e(s,r);t!==s&&(i=!0),n[a]=t}return i?n:(r.set(t,t),t)}return t}(r,new Map):r:null},bootstrap:e?{distinctID:e.id||void 0,isIdentifiedID:e.isIdentified,featureFlags:e.data.featureFlags,featureFlagPayloads:e.data.featureFlagPayloads}:void 0});let r=e?.data?.featureFlagOverrides,n=e?.data?.featureFlagPayloadOverrides;if(r&&Object.keys(r).length>0||n&&Object.keys(n).length>0){let{flags:t,payloads:r}=function(e){let t=e?.data?.featureFlagOverrides??{},r=e?.data?.featureFlagPayloadOverrides??{},n={...t};for(let t of Object.keys(r))t in n||(n[t]=e?.data?.featureFlags?.[t]??!1);return{flags:n,payloads:r}}(e);tf.default.featureFlags.overrideFeatureFlags({flags:t,payloads:r,suppressWarning:!0})}}}(r),n=(0,tI.useUserAuth)(),s=(0,tL.useMarketingConsent)(),o=n?.currentAccount?.nickname,l=(0,f.useRef)(null),(0,f.useEffect)(()=>
1{if(!s||!(0,tR.isUserSignedIn)(n)){l.current=null;return}let e=[n.user.sub,n.user.email??"",o??""].join(":");return(0,ty.runWhenDataGrailReady)(()=>l.current===e||"function"==typeof window.signals?.identify&&(window.signals.identify({email:n.user.email,name:o}),l.current=e,!0))},[s,n,o]);let g=(0,f.useRef)(!1),y=(0,f.useRef)(!1);return tF(()=>{tH&&("granted"===(0,tk.resolveConsentModeNow)({dataGrailReady:h,performanceAllowed:m,initialized:tH,getExplicitConsentStatus:()=>tf.default.get_explicit_consent_status()})?(tf.default.opt_in_capturing({captureEventName:null}),tf.default.register_once({cookie_id:tA(t,tf.default.get_distinct_id())}),t=void 0):(tf.default.opt_out_capturing(),tf.default.stopSessionRecording()))},[h,m]),(0,f.useEffect)(()=>{h&&!p&&(tx(),(0,tD.clearGclid)())},[h,p]),(0,f.useEffect)(()=>{let e,t,n,i=tH,a=(0,tR.isUserSignedIn)(c),s=i?tf.default.get_distinct_id():"",o=i?tf.default.get_property("cookie_id"):void 0,l=i&&tf.default._isIdentified();a&&(e=c.user.sub,t=c.user.email,n=c.availableAccounts?.find(e=>e.is_personal)?.created_at??void 0);let d=function(e){let{performanceAllowed:t,initialized:r,isSignedIn:n,authResolved:i,isIdentified:a,wasSignedIn:s,signupDateSent:o,distinctId:l,guestDistinctId:c,userSub:u,signupDate:d}=e,h={stopSessionRecording:!1,reset:!1,reregisterCookieId:!1,clearAttribution:!1,identifyGuest:!1,aliasGuest:!1,identify:!1,setSignupDate:!1,wasSignedIn:s,signupDateSent:o};if(!n&&!i)return h;if(!t||!r)return!n&&s?{...h,clearAttribution:!0,signupDateSent:!1}:{...h,wasSignedIn:n};if(!n){let e=tS.test(l),t=l.startsWith("guest:"),r=null!==c&&l===c,n=t&&!r,i=s||!(e||r);return{...h,stopSessionRecording:!0,reset:i,reregisterCookieId:i,signupDateSent:!1,clearAttribution:i&&(s||!n),identifyGuest:!s&&(!i||n&&null!==c),wasSignedIn:!1}}let p=l===u,f=l.startsWith("guest:"),m=!p&&!f&&a,g=!!d&&!o;return{...h,stopSessionRecording:m,reset:m,reregisterCookieId:m,aliasGuest:!p&&f,identify:!p,setSignupDate:g,wasSignedIn:!0,signupDateSent:o||g}}({performanceAllowed:m,initialized:i,isSignedIn:a,authResolved:r?.authResolved??!0,isIdentified:l,wasSignedIn:y.current,signupDateSent:g.current,distinctId:s,guestDistinctId:tM(),userSub:e,signupDate:n});d.stopSessionRecording&&tf.default.stopSessionRecording(),d.reset&&(tf.default.reset(),m&&tf.default.opt_in_capturing({captureEventName:null})),d.reregisterCookieId&&tf.default.register_once({cookie_id:tA(o,tf.default.get_distinct_id())}),d.clearAttribution&&tx(),d.identifyGuest&&tN(),d.aliasGuest&&e&&tf.default.alias(e,s),d.identify&&e&&tf.default.identify(e,{email:t,email_domain:t?.split("@")[1],nickname:u?.nickname}),d.setSignupDate&&n&&tf.default.setPersonProperties(void 0,{signup_date:n}),y.current=d.wasSignedIn,g.current=d.signupDateSent},[m,c,u?.nickname,r?.authResolved]),(0,f.useEffect)(()=>{if(!m||!tH)return;let e=u?.nickname;if(!e)return;let t=(0,tU.safeGetFeatureFlagPayload)("enable-session-recording-2");t?.account_nicknames?.includes(e)&&tf.default.startSessionRecording()},[u?.nickname,m]),(0,f.useEffect)(()=>{if(!m||!tH)return;let e=()=>{!u?.nickname||"test"===(0,tU.safeGetFeatureFlag)("sandbox-free-credits-experiment",{send_event:!1})&&(0,tU.safeIsFeatureEnabled)("record-sandbox-treatment-sample",{send_event:!1})&&tf.default.startSessionRecording()};return e(),tf.default.onFeatureFlags(e)},[u?.nickname,m]),(0,a.jsxs)(tm.PostHogProvider,{client:d.current,children:[(0,a.jsx)(t$,{}),e]})}var tq=e.i(846696),tK=e.i(101815);function tW(e,{maxVisibleToasts:t,width:r}){return{visibleToasts:e?0:t,style:{"--width":r,opacity:+!e,pointerEvents:e?"none":void 0}}}var tZ=e.i(801424);function tG(e){return!!e&&(e.startsWith("/login")||e.startsWith("/onboarding")||e.startsWith("/workflows/")||e.startsWith("/agent")||e.startsWith("/tools/")||e.startsWith("/admin/learn/preview")||"/worlds"===e)}var tY=e.i(148134),tJ=e.i(514793);let tQ="fal_announcements_dismissed",tX=(0,f.createContext)(null);function t1(){if("u"<typeof document)return[];try{let e=document.cookie.split("; ").find(e=>e.startsWith(`${tQ}=`)),t=e?.slice(tQ.length+1);if(!t)return[];let r=JSON.parse(decodeURIComponent(t));if(!Array.isArray(r))return[];return r.filter(e=>"string"==typeof e)}catch{return[]}}function t0(e){return Array.from(new Set(e)).slice(-80)}function t6({feed:e,children:t,hosts:r}){let[n,i]=(0,f.useState)(t1),[s,o]=(0,f.useState)(!1);(0,f.useEffect)(()=>{o(!0)},[]);let l=(0,f.useMemo)(()=>({...e,placements:e.placements.filter(e=>!n.includes(e.dismissalKey))}),[n,e]),c=(0,f.useMemo)(()=>({getSlot:e=>"slide_in"!==e||s?l?.enabled?l.placements.filter(t=>t.placement===e):[]:[],dismiss:e=>{i(t=>{let r,n=t0([...t1(),...t]);if(n.includes(e.dismissalKey))return n;let i=t0([...n,e.dismissalKey]);return r=encodeURIComponent(JSON.stringify(i.slice(-80))),document.cookie=`${tQ}=${r}; path=/; max-age=2592000; SameSite=Lax`,i})}}),[s,l]);return(0,a.jsxs)(tX.Provider,{value:c,children:[t,r]})}function t2(e){let t=(0,f.useContext)(tX);return t?{announcements:t.getSlot(e),dismiss:t.dismiss}:{announcements:[],dismiss:()=>void 0}}var t5=e.i(225913),t4=e.i(522016),t8=e.i(343507);let t9=(0,t5.cva)("relative flex min-h-8 w-full items-center justify-center overflow-hidden px-11 py-1.5 text-center font-heading text-[14px] font-medium leading-[14px] tracking-[-0.28px] bg-(--product-banner-purple-dark-background) text-(--product-banner-purple-dark-foreground)"),t7=(0,t5.cva)("size-1.5 shrink-0 text-(--product-banner-purple-dark-mark)");function t3(){let{setBannerHeight:e}=(0,tK.useHeaderHeight)(),t=(0,f.useRef)(null);return(0,f.useLayoutEffect)(()=>{let r=t.current;if(!r)return void e(0);let n=()=>{e(r.getBoundingClientRect().height)};if(n(),"u"<typeof ResizeObserver)return()=>e(0);let i=new ResizeObserver(n);return i.observe(r),()=>{i.disconnect(),e(0)}},[e]),(0,a.jsx)("div",{ref:t,children:(0,a.jsx)("div",{className:t9(),children:(0,a.jsx)(t4.default,{href:"/sandbox?models=d7j7n6kregjeg91t2f6g,d4h542sregje7ob8ordg,d6e0irkregje9mtsufqg&utm_source=banner&utm_campaign=sandbox-free-credits-experiment",className:"relative z-10 w-full max-w-full",children:(0,a.jsxs)("span",{className:"flex items-center justify-center gap-2 leading-[18px] text-balance",children:[(0,a.jsx)(t8.AnnouncementMarkLeftShimmer,{className:t7()}),(0,a.jsx)("span",{className:"wrap-break-word",children:"Free generations on Sandbox - Try GPT-Image-2, Seedream v5, and Flux 2"}),(0,a.jsx)(t8.AnnouncementMarkRightShimmer,{className:t7()})]})})})})}var re=e.i(602939);function rt(e,t){return{campaign_id:e.campaignId,campaign_slug:e.campaignSlug,placement_id:e.id,placement:e.placement,template_key:e.templateKey,variant_key:e.variantKey,pathname:t}}let rr="announcements",rn=new Set;function ri(e,t){let r=(0,tm.usePostHog)(),n=(0,eF.usePathname)(),i=(0,tL.usePerformanceConsent)();(0,f.useEffect)(()=>{e&&i&&t&&(rn.has(e.id)||(rn.add(e.id),r?.capture(tZ.ANALYTICS_EVENTS.PRODUCT_ANNOUNCEMENT_SHOWN,rt(e,n))))},[e,i,t,n,r])}function ra(e,t,r){rn.has(t.id)&&e?.capture(tZ.ANALYTICS_EVENTS.PRODUCT_ANNOUNCEMENT_DISMISSED,rt(t,r))}function rs(){return"test"===(0,tJ.useInitialFeatureFlagVariant)("sandbox-free-credits-experiment")?(0,a.jsx)(t3,{}):(0,a.jsx)(ro,{})}function ro(){let{announcements:e,dismiss:t}=t2("top_banner"),{setBannerHeight:r}=(0,tK.useHeaderHeight)(),n=(0,tm.usePostHog)(),i=(0,eF.usePathname)(),s=(0,f.useRef)(null),o=e[0];return(ri(o,!!o),(0,f.useLayoutEffect)(()=>{let e=s.current;if(!o||!e)return void r(0);let t=()=>{r(e.getBoundingClientRect().height)};if(t(),"u"<typeof ResizeObserver)return()=>r(0);let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect(),r(0)}},[o,r]),o)?(0,a.jsx)("div",{ref:s,children:(0,re.renderAnnouncementTemplate)(o,()=>{ra(n,o,i),t(o)})}):null}function rl({announcement:e,dismiss:t}){let r=(0,tm.usePostHog)(),n=(0,eF.usePathname)(),[i,s]=(0,f.useState)(()=>{let t;return!(t=e.content.mediaAssetId)||!(e.assets.find(e=>e.id===t)?.url??e.assets[0]?.url)});return ri(e,i),(0,a.jsx)("div",{className:i?"opacity-100 transition-opacity duration-200":"opacity-0 transition-opacity duration-200",children:(0,re.renderAnnouncementTemplate)(e,()=>{ra(r,e,n),t(e),tq.toast.dismiss(e.id)},{onAssetError:()=>s(!0),onAssetLoad:()=>s(!0)})})}function rc(){let e=(0,eF.usePathname)(),{announcements:t,dismiss:r}=t2("slide_in"),n=!!e&&(!("/workflows"===e||e.startsWith("/dashboard")||e.startsWith("/explore")||e.startsWith("/assets")||e.startsWith("/models")||e.startsWith("/sandbox"))||tG(e)),i=(0,tY.useConsentOverlayBlocking)();(0,f.useEffect)(()=>{let e=t[0];if(e){if(n||i||(0,tY.isConsentOverlayBlocking)())return void tq.toast.dismiss(e.id);tq.toast.custom(()=>(0,a.jsx)(rl,{announcement:e,dismiss:r}),{id:e.id,toasterId:rr,duration:1/0})}},[t,i,r,n]);let{visibleToasts:s,style:o}=tW(i,{maxVisibleToasts:1,width:"280px"});return(0,a.jsx)(tq.Toaster,{id:rr,expand:!0,visibleToasts:s,position:"bottom-left",duration:1/0,gap:8,offset:16,style:o,toastOptions:{classNames:{toast:"w-[var(--width)] !overflow-visible !border-none 
1!bg-transparent !p-0 !shadow-none"}}})}e.i(720845);var ru=e.i(872042),rd=e.i(42803),rh=e.i(612809),rp=e.i(982041),rf=e.i(985902);function rm(e){return!!e&&(e.startsWith("/login")||e.startsWith("/signup")||e.startsWith("/onboarding")||e.startsWith("/verify"))}function rg(){let e=(0,eF.usePathname)(),[t,r]=(0,f.useState)(null),[n,i]=(0,f.useState)("/"),s=(0,f.useSyncExternalStore)(rh.subscribeFreeTierErrorClaim,rh.getFreeTierErrorClaimCount,()=>0),o=(0,f.useRef)(e);(0,f.useEffect)(()=>{o.current=e},[e]);let l=(0,f.useRef)(null);(0,f.useEffect)(()=>(0,rh.subscribeFreeTierError)((e,t)=>{if(!rm(o.current)&&(r({reason:e,context:t}),"u">typeof location&&i(location.pathname+location.search),rp.FREE_TIER_ERROR_COPY[e].cta&&l.current!==e)){l.current=e;let r={cta_context:"error",model_endpoint:t.modelEndpoint,generation_source:t.generationSource,referer_path:t.refererPath,error_reason:e};try{tf.default.capture(tZ.ANALYTICS_EVENTS.FREE_TIER_SIGNUP_CTA_SHOWN,r)}catch{}}}),[]),(0,f.useEffect)(()=>{l.current=null,r(null)},[e]);let c=(0,f.useCallback)(()=>{if(!t)return;let e={cta_context:"error",model_endpoint:t.context.modelEndpoint,generation_source:t.context.generationSource,referer_path:t.context.refererPath,error_reason:t.reason};try{tf.default.capture(tZ.ANALYTICS_EVENTS.FREE_TIER_SIGNUP_CTA_CLICKED,e)}catch{}},[t]),u=(0,f.useCallback)(()=>{l.current=null,r(null)},[]);if(!t||rm(e)||s>0)return null;let d=rp.FREE_TIER_ERROR_COPY[t.reason],h=d.cta?.href==="/login"?`/login?returnTo=${encodeURIComponent(n)}`:d.cta?.href;return(0,a.jsxs)("div",{role:"status","aria-live":"polite",className:"fixed top-4 left-1/2 z-50 flex max-w-[calc(100vw-2rem)] -translate-x-1/2 items-start gap-3 rounded-md border border-stroke-strong bg-surface-300 px-4 py-3 shadow-lg",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1 pr-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-content-strong",children:d.title}),(0,a.jsx)("p",{className:"text-sm text-content-light",children:d.body})]}),d.cta&&h&&(0,a.jsx)(rf.Button,{asChild:!0,size:"sm",variant:"primary",onClick:c,children:(0,a.jsx)(t4.default,{href:h,children:d.cta.label})}),(0,a.jsx)(rf.Button,{size:"icon-sm",variant:"ghost","aria-label":"Dismiss",onClick:u,children:(0,a.jsx)(rd.default,{})})]})}var ry=e.i(854990),rv=f;Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var rC=Object.defineProperty,rb=Object.defineProperties,rx=Object.getOwnPropertyDescriptors,rw=Object.getOwnPropertySymbols,r_=Object.prototype.hasOwnProperty,rk=Object.prototype.propertyIsEnumerable,rE=(e,t,r)=>t in e?rC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rS=(e,t)=>{for(var r in t||(t={}))r_.call(t,r)&&rE(e,r,t[r]);if(rw)for(var r of rw(t))rk.call(t,r)&&rE(e,r,t[r]);return e},rA=(e,t,r)=>(rE(e,"symbol"!=typeof t?t+"":t,r),r),rj=(e,t,r)=>new Promise((n,i)=>{var a=e=>{try{o(r.next(e))}catch(e){i(e)}},s=e=>{try{o(r.throw(e))}catch(e){i(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}),rP="hCaptchaOnLoad",rT="script-error",rI="@hCaptcha/loader";function rR(e){let t=e&&e.ownerDocument||document,r=t.defaultView||t.parentWindow||window;return{document:t,window:r}}function rL(e){return e||document.head}var rO=class e{constructor(e){rA(this,"_parent"),rA(this,"breadcrumbs",[]),rA(this,"context",{}),rA(this,"extra",{}),rA(this,"tags",{}),rA(this,"request"),rA(this,"user"),this._parent=e}get parent(){return this._parent}child(){return new e(this)}setRequest(e){return this.request=e,this}removeRequest(){return this.request=void 0,this}addBreadcrumb(e){return typeof e.timestamp>"u"&&(e.timestamp=new Date().toISOString()),this.breadcrumbs.push(e),this}setExtra(e,t){return this.extra[e]=t,this}removeExtra(e){return delete this.extra[e],this}setContext(e,t){return typeof t.type>"u"&&(t.type=e),this.context[e]=t,this}removeContext(e){return delete this.context[e],this}setTags(e){return this.tags=rS(rS({},this.tags),e),this}setTag(e,t){return this.tags[e]=t,this}removeTag(e){return delete this.tags[e],this}setUser(e){return this.user=e,this}removeUser(){return this.user=void 0,this}toBody(){let e=[],t=this;for(;t;)e.push(t),t=t.parent;return e.reverse().reduce((e,t)=>
1{var r;return e.breadcrumbs=[...null!=(r=e.breadcrumbs)?r:[],...t.breadcrumbs],e.extra=rS(rS({},e.extra),t.extra),e.contexts=rS(rS({},e.contexts),t.context),e.tags=rS(rS({},e.tags),t.tags),t.user&&(e.user=t.user),t.request&&(e.request=t.request),e},{breadcrumbs:[],extra:{},contexts:{},tags:{},request:void 0,user:void 0})}clear(){this.breadcrumbs=[],this.context={},this.tags={},this.user=void 0}},rM=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,rN="An unknown error occurred";function rD(e){return(e+256).toString(16).substring(1)}var rU,rH=[[/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,"chrome"],[/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,"winjs"],[/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,"gecko"]],rF=(rU=class{constructor(e){var t,r,n,i,a;rA(this,"apiURL"),rA(this,"dsn"),rA(this,"environment"),rA(this,"release"),rA(this,"sampleRate"),rA(this,"debug"),rA(this,"_scope"),rA(this,"shouldBuffer",!1),rA(this,"bufferlimit",20),rA(this,"buffer",[]),this.environment=e.environment,this.release=e.release,this.sampleRate=null!=(t=e.sampleRate)?t:1,this.debug=null!=(r=e.debug)&&r,this._scope=null!=(n=e.scope)?n:new rO,this.apiURL=function(e){let t=rM.exec(e),r=t?t.slice(1):[];if(6!==r.length)throw Error("Invalid DSN");let n=r[5].split("/"),i=n.slice(0,-1).join("/");return r[0]+"://"+r[3]+(r[4]?":"+r[4]:"")+(i?"/"+i:"")+"/api/"+n.pop()+"/envelope/?sentry_version=7&sentry_key="+r[1]+(r[2]?"&sentry_secret="+r[2]:"")}(e.dsn),this.dsn=e.dsn,this.shouldBuffer=null!=(i=e.buffer)&&i,this.bufferlimit=null!=(a=e.bufferLimit)?a:20}static init(e){rU._instance||(rU._instance=new rU(e))}static get instance(){if(!rU._instance)throw Error("Sentry has not been initialized");return rU._instance}log(...e){this.debug&&console.log(...e)}get scope(){return this._scope}static get scope(){return rU.instance.scope}withScope(e){e(this._scope.child())}static withScope(e){rU.instance.withScope(e)}captureException(e,t){this.captureEvent({type:"exception",level:"error",error:function(e){if(e instanceof Error)return e;if("string"==typeof e)return Error(e);
1if("object"==typeof e&&null!==e&&!Array.isArray(e)){let{message:t}=e,r=((e,t)=>{var r={};for(var n in e)r_.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&rw)for(var n of rw(e))0>t.indexOf(n)&&rk.call(e,n)&&(r[n]=e[n]);return r})(e,["message"]);return Object.assign(Error("string"==typeof t?t:rN),r)}return Object.assign(Error(rN),{cause:e})}(e),scope:null!=t?t:this._scope})}static captureException(e,t){rU.instance.captureException(e,t)}captureMessage(e,t="info",r){this.captureEvent({type:"message",level:t,message:e,scope:null!=r?r:this._scope})}static captureMessage(e,t="info",r){rU.instance.captureMessage(e,t,r)}captureEvent(e){if(Math.random()>=this.sampleRate)return void this.log("Dropped event due to sample rate");if(this.shouldBuffer){if(this.buffer.length>=this.bufferlimit)return;this.buffer.push(e)}else this.sendEvent(e)}sendEvent(e,t=5e3){return rj(this,null,function*(){try{this.log("Sending sentry event",e);let r=function(e,t,r){var n,i,a;let s,o=rS({event_id:((s=function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e}(Array(16)))[6]=15&s[6]|64,s[8]=63&s[8]|128,rD(s[0])+rD(s[1])+rD(s[2])+rD(s[3])+"-"+rD(s[4])+rD(s[5])+"-"+rD(s[6])+rD(s[7])+"-"+rD(s[8])+rD(s[9])+"-"+rD(s[10])+rD(s[11])+rD(s[12])+rD(s[13])+rD(s[14])+rD(s[15])).replaceAll("-",""),platform:"javascript",sdk:{name:"@hcaptcha/sentry",version:"0.0.4"},environment:t,release:r,timestamp:Date.now()/1e3},e.scope.toBody());if("exception"===e.type){let t;o.message=null!=(i=null==(n=e.error)?void 0:n.message)?i:"Unknown error",o.fingerprint=[o.message];let r=[],s=e.error;for(let e=0;e<5&&s&&(r.push((t=function(e){var t,r,n,i;if(!e.stack)return null;let a=[],s=null!=(n=null==(r=(t=e.stack).split)?void 0:r.call(t,`
2`))?n:[];for(let t=0;t<s.length;++t){let r=null,n=null,o=null;for(let[e,r]of rH)if(n=e.exec(s[t])){o=r;break}if(!(!n||!o)){if("chrome"===o)r={filename:null!=(i=n[2])&&i.startsWith("address at ")?n[2].substring(11):n[2],function:n[1]||"?",lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if("winjs"===o)r={filename:n[2],function:n[1]||"?",lineno:+n[3],colno:n[4]?+n[4]:null};else{if("gecko"!==o)continue;0===t&&!n[5]&&void 0!==e.columnNumber&&a.length>0&&(a[0].column=e.columnNumber+1),r={filename:n[3],function:n[1]||"?",lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null}}!r.function&&r.lineno&&(r.function="?"),a.push(r)}}return a.length?a.reverse():null}(a=s),{type:a.name,value:a.message,stacktrace:{frames:null!=t?t:[]}})),!(!s.cause||!(s.cause instanceof Error)));e++)s=s.cause;o.exception={values:r.reverse()}}return"message"===e.type&&(o.message=e.message,o.level=e.level),o}(e,this.environment,this.release),n={event_id:r.event_id,dsn:this.dsn},i=JSON.stringify(n)+`
3`+JSON.stringify({type:"event"})+`
4`+JSON.stringify(r),a=yield function(e,t,r){return rj(this,null,function*(){var n,i;try{if("u">typeof fetch&&"u">typeof AbortSignal){let n,i,a;if(r){let e=new AbortController;n=e.signal,setTimeout(()=>e.abort(),r)}let s=yield fetch(e,(i=rS({},t),a={signal:n},rb(i,rx(a)))),o=yield s.text();return{status:s.status,body:o}}return yield new Promise((n,i)=>{var a,s;let o=new XMLHttpRequest;if(o.open(null!=(a=null==t?void 0:t.method)?a:"GET",e),o.onload=()=>n({status:o.status,body:o.responseText}),o.onerror=()=>i(Error("XHR Network Error")),null==t?void 0:t.headers)for(let[e,r]of Object.entries(t.headers))o.setRequestHeader(e,r);if(r){let e=setTimeout(()=>{o.abort(),i(Error("Request timed out"))},r);o.onloadend=()=>{clearTimeout(e)}}o.send(null==(s=null==t?void 0:t.body)?void 0:s.toString())})}catch(e){return{status:0,body:null!=(i=null==(n=null==e?void 0:e.toString)?void 0:n.call(e))?i:"Unknown error"}}})}(this.apiURL,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:i},t);this.log("Sentry response",a.status),200!==a.status&&(console.log(a.body),console.error("Failed to send event to Sentry",a))}catch(e){console.error("Failed to send event",e)}})}flush(e=5e3){return rj(this,null,function*(){try{this.log("Flushing sentry events",this.buffer.length);let t=this.buffer.splice(0,this.buffer.length).map(t=>this.sendEvent(t,e));yield Promise.all(t),this.log("Flushed all events")}catch(e){console.error("Failed to flush events",e)}})}static flush(e=5e3){return rU.instance.flush(e)}static reset(){rU._instance=void 0}},rA(rU,"_instance"),rU);function rB(e=null){return{addBreadcrumb:t=>{e&&e.addBreadcrumb(t)},captureRequest:t=>
4{e&&e.setRequest(t)},captureException:t=>{e&&rF.captureException(t,e)}}}var rV=[];function r$(e){let t=e&&e.ownerDocument||document,r=t.defaultView||t.parentWindow||window;return{document:t,window:r}}function rz(e){return e||document.head}var rq=class extends rv.Component{constructor(e){super(e),this._hcaptcha=void 0,this.renderCaptcha=this.renderCaptcha.bind(this),this.resetCaptcha=this.resetCaptcha.bind(this),this.removeCaptcha=this.removeCaptcha.bind(this),this.isReady=this.isReady.bind(this),this._onReady=null,this.loadCaptcha=this.loadCaptcha.bind(this),this.handleOnLoad=this.handleOnLoad.bind(this),this.handleSubmit=this.handleSubmit.bind(this),this.handleExpire=this.handleExpire.bind(this),this.handleError=this.handleError.bind(this),this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.handleChallengeExpired=this.handleChallengeExpired.bind(this),this.ref=rv.createRef(),this.apiScriptRequested=!1,this.sentryHub=null,this.captchaId="",this._pendingExecute=null,this.state={isApiReady:!1,isRemoved:!1,elementId:e.id}}componentDidMount(){let e=r$(rz(this.props.scriptLocation));(this._hcaptcha=e.window.hcaptcha||void 0,void 0!==this._hcaptcha)?this.setState({isApiReady:!0},()=>{this.renderCaptcha()}):this.loadCaptcha()}componentWillUnmount(){let e=this._hcaptcha,t=this.captchaId;if(this._cancelPendingExecute("react-component-unmounted"),this.isReady())try{e.reset(t),e.remove(t)}catch(e){}finally{this.captchaId="",this._onReady=null}}shouldComponentUpdate(e,t){return this.state.isApiReady===t.isApiReady&&this.state.isRemoved===t.isRemoved}componentDidUpdate(e){["sitekey","size","theme","tabindex","languageOverride","endpoint"].every(t=>e[t]===this.props[t])||this.removeCaptcha(()=>{this.renderCaptcha()})}loadCaptcha(){if(this.apiScriptRequested)return;let{apihost:e,assethost:t,endpoint:r,host:n,imghost:i,languageOverride:a,reCaptchaCompat:s,reportapi:o,sentry:l,custom:c,loadAsync:u,scriptLocation:d,scriptSource:h,secureApi:p,cleanup:f=!0,userJourneys:m}=this.props;(function(){return rj(this,arguments,function*(e={}){let t=function(e=!0){var t,r,n,i,a,s,o;let l,c,u,d,h;if(!e)return rB();rF.init({dsn:"https://[email protected]/6",release:"2.3.0",environment:"production"});let p=rF.scope;return p.setTag("source",rI),p.setTag("url",document.URL),p.setContext("os",{UA:navigator.userAgent}),p.setContext("browser",rS({},(-1!==(l=navigator.userAgent).indexOf("Firefox")?(c="Firefox",u=null==(r=l.match(/Firefox\/([\d.]+)/))?void 0:r[1]):-1!==l.indexOf("Edg")?(c="Microsoft Edge",u=null==(n=l.match(/Edg\/([\d.]+)/))?void 0:n[1]):-1!==l.indexOf("Chrome")&&-1!==l.indexOf("Safari")?(c="Chrome",u=null==(i=l.match(/Chrome\/([\d.]+)/))?void 0:i[1]):-1!==l.indexOf("Safari")&&-1===l.indexOf("Chrome")?(c="Safari",u=null==(a=l.match(/Version\/([\d.]+)/))?void 0:a[1]):-1!==l.indexOf("Opera")||-1!==l.indexOf("OPR")?(c="Opera",u=null==(s=l.match(/(Opera|OPR)\/([\d.]+)/))?void 0:s[2]):-1!==l.indexOf("MSIE")||-1!==l.indexOf("Trident")?(c="Internet Explorer",u=null==(o=l.match(/(MSIE |rv:)([\d.]+)/))?void 0:o[2]):(c="Unknown",u="Unknown"),{name:c,version:u}))),p.setContext("device",rb(rS({},{model:h=-1!==(d=navigator.userAgent).indexOf("Win")?"Windows":-1!==d.indexOf("Mac")?"Mac":-1!==d.indexOf("Linux")?"Linux":-1!==d.indexOf("Android")?"Android":-1!==d.indexOf("like Mac")||-1!==d.indexOf("iPhone")||-1!==d.indexOf("iPad")?"iOS":"Unknown",family:h,device:/Mobile|iPhone|iPod|Android/i.test(d)?"Mobile":/Tablet|iPad/i.test(d)?"Tablet":"Desktop"}),rx({screen_width_pixels:screen.width,screen_height_pixels:screen.height,language:navigator.language,orientation:(null==(t=screen.orientation)?void 0:t.type)||"Unknown",processor_count:navigator.hardwareConcurrency,platform:navigator.platform}))),rB(p)}(e.sentry);return yield function e(t,r,n=0){return rj(this,null,function*(){var i,a;let s=null!=(i=t.maxRetries)?i:2,o=null!=(a=t.retryDelay)?a:1e3,l=n<s?"Retry loading hCaptcha Api":"Exceeded maximum retries";try{return yield function(e={cleanup:!1},t){try{t.addBreadcrumb({category:rI,message:"hCaptcha loader params",data:e});let r=rL(e.scriptLocation),n=rR(r),i=rV.find(({scope:e})=>e===n.window);if(i)return t.addBreadcrumb({category:rI,message:"hCaptcha already loaded"}),i.promise;let a=new Promise((r,a)=>rj(this,null,function*(){try{var s;n.window[rP]=()=>{t.addBreadcrumb({category:rI,message:"hCaptcha script called onload function"}),r(n.window.hcaptcha)};let a=(s={custom:e.custom,render:e.render,sentry:e.sentry,assethost:e.assethost,imghost:e.imghost,reportapi:e.reportapi,endpoint:e.endpoint,host:e.host,recaptchacompat:e.recaptchacompat,hl:e.hl,uj:e.uj},Object.entries(s).filter(([,e])=>e||!1===e).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`).join("&"));yield function({scriptLocation:e,query:t,loadAsync:r=!0,crossOrigin:n="anonymous",apihost:i="https://js.hcaptcha.com",cleanup:a=!1,secureApi:s=!1,scriptSource:o=""}={},l){let c=rL(e),u=rR(c);return new Promise((e,d)=>{let h=u.document.createElement("script");h.id="hCaptcha-script",o?h.src=`${o}?onload=${rP}`:s?h.src=`${i}/1/secure-api.js?onload=${rP}`:h.src=`${i}/1/api.js?onload=${rP}`,h.crossOrigin=n,h.async=r;let p=(e,t)=>{try{!s&&a&&c.removeChild(h),t(e)}catch(e){d(e)}};h.onload=t=>p(t,e),h.onerror=e=>{l&&l(h.src),p(e,d)},h.src+=""!==t?`&${t}`:"",c.appendChild(h)})}(rS({query:a},e),e=>{t.captureRequest({url:e,method:"GET"})}),t.addBreadcrumb({category:rI,message:"hCaptcha loaded",data:i})}catch(r){t.addBreadcrumb({category:rI,message:"hCaptcha failed to load"});let e=rV.findIndex(e=>e.scope===n.window);-1!==e&&rV.splice(e,1),a(Error(rT))}}));return rV.push({promise:a,scope:n.window}),a}catch(e){return t.captureException(e),Promise.reject(Error(rT))}}(t,r)}catch(i){return r.addBreadcrumb({category:rI,message:l}),n>=s?(r.captureException(i),Promise.reject(i)):(r.addBreadcrumb({category:rI,message:`Waiting ${o}ms before retry attempt ${n+1}`}),yield new Promise(e=>setTimeout(e,o)),e(t,r,n+=1))}})}(e,t)})})({render:"explicit",apihost:e,assethost:t,endpoint:r,hl:a,host:n,imghost:i,recaptchacompat:!1===s?"off":null,reportapi:o,sentry:l,custom:c,loadAsync:u,scriptLocation:d,scriptSource:h,secureApi:p,cleanup:f,uj:void 0!==m&&m}).then(this.handleOnLoad,this.handleError).catch(this.handleError),this.apiScriptRequested=!0}renderCaptcha(e){let{onReady:t}=this.props,{isApiReady:r}=this.state,n=this.captchaId;if(!r||n)return;
4let i=Object.assign({"open-callback":this.handleOpen,"close-callback":this.handleClose,"error-callback":this.handleError,"chalexpired-callback":this.handleChallengeExpired,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),a=this._hcaptcha.render(this.ref.current,i);this.captchaId=a,this.setState({isRemoved:!1},()=>{e&&e(),t&&t(),this._onReady&&this._onReady(a)})}resetCaptcha(){let e=this._hcaptcha,t=this.captchaId;this.isReady()&&(e.reset(t),this._cancelPendingExecute("hcaptcha-reset"))}removeCaptcha(e){let t=this._hcaptcha,r=this.captchaId;this._cancelPendingExecute("hcaptcha-removed"),this.isReady()&&this.setState({isRemoved:!0},()=>{this.captchaId="",t.remove(r),e&&e()})}handleOnLoad(){this.setState({isApiReady:!0},()=>{let e=r$(rz(this.props.scriptLocation));this._hcaptcha=e.window.hcaptcha,this.renderCaptcha(()=>{let{onLoad:e}=this.props;e&&e()})})}handleSubmit(e){let{onVerify:t}=this.props,{isRemoved:r}=this.state,n=this._hcaptcha,i=this.captchaId;if(void 0===n||r)return;let a=n.getResponse(i),s=n.getRespKey(i);t&&t(a,s)}handleExpire(){let{onExpire:e}=this.props,t=this._hcaptcha,r=this.captchaId;this.isReady()&&(t.reset(r),e&&e())}handleError(e){let{onError:t}=this.props,r=this._hcaptcha,n=this.captchaId;this.isReady()&&r.reset(n),t&&t(e)}isReady(){let{isApiReady:e,isRemoved:t}=this.state;return e&&!t}_cancelPendingExecute(e){if(!this._pendingExecute)return;let t=this._pendingExecute;this._pendingExecute=null;let r=Error(e);t.reject(r)}handleOpen(){this.isReady()&&this.props.onOpen&&this.props.onOpen()}handleClose(){this.isReady()&&this.props.onClose&&this.props.onClose()}handleChallengeExpired(){this.isReady()&&this.props.onChalExpired&&this.props.onChalExpired()}execute(e=null){e="object"==typeof e?e:null;try{let t=this._hcaptcha,r=this.captchaId;if(e&&e.async&&this._pendingExecute&&this._cancelPendingExecute("hcaptcha-execute-replaced"),!this.isReady())return e&&e.async?new Promise((r,n)=>{this._pendingExecute={resolve:r,reject:n},this._onReady=i=>{if(this._pendingExecute)try{let a=t.execute(i,e);a&&"function"==typeof a.then?a.then(e=>{this._pendingExecute=null,r(e)}).catch(e=>{this._pendingExecute=null,n(e)}):(this._pendingExecute=null,n(Error("hcaptcha-execute-no-promise")))}catch(e){this._pendingExecute=null,n(e)}}}):(this._onReady=r=>{t.execute(r,e)},null);let n=t.execute(r,e);return e&&e.async&&n&&"function"==typeof n.then?new Promise((e,t)=>{this._pendingExecute={resolve:e,reject:t},n.then(t=>{this._pendingExecute=null,e(t)}).catch(e=>{this._pendingExecute=null,t(e)})}):n}catch(t){return e&&e.async?Promise.reject(t):null}}close(){let e=this._hcaptcha,t=this.captchaId;if(this._cancelPendingExecute("hcaptcha-closed"),this.isReady())return e.close(t)}setData(e){let t=this._hcaptcha,r=this.captchaId;this.isReady()&&(e&&"object"!=typeof e&&(e=null),t.setData(r,e))}getResponse(){return this._hcaptcha.getResponse(this.captchaId)}getRespKey(){return this._hcaptcha.getRespKey(this.captchaId)}render(){let{elementId:e}=this.state;return rv.createElement("div",{ref:this.ref,id:e})}};(0,rv.createContext)();let rK=(0,f.forwardRef)(function({onError:e},t){let r=(0,f.useRef)(null),n=(0,f.useRef)(!1),i=(0,f.useRef)(null),[s,o]=(0,f.useState)(!1),[l]=(0,f.useState)(()=>"79e0463a-f79a-4742-b3da-489afd1cbe68"),[{promise:c,resolve:u}]=(0,f.useState)(()=>{let e=()=>{};return{promise:new Promise(t=>{e=t}),resolve:e}}),d=(0,f.useCallback)(()=>{n.current=!0,u()},[u]),h=(0,f.useCallback)(e=>{i.current?.(e),i.current=null},[]),p=(0,f.useCallback)(()=>{i.current?.(null),i.current=null},[]),m=(0,f.useCallback)(t=>{e?.(t),i.current?.(null),i.current=null},[e]),g=(0,f.useCallback)(()=>{i.current?.(null),i.current=null},[]);return((0,f.useImperativeHandle)(t,()=>({execute:async()=>l&&(o(!0),await Promise.race([c,new Promise(e=>setTimeout(e,3e4))]),n.current&&r.current)?new Promise(e=>{i.current?.(null),i.current=e,r.current.execute()}):null,reset:()=>{r.current?.resetCaptcha(),i.current?.(null),i.current=null}}
4),[c,l]),l&&s)?(0,a.jsx)(rq,{ref:r,sitekey:l,size:"invisible",onLoad:d,onVerify:h,onClose:p,onError:m,onExpire:g}):null});function rW(){let{gateRef:e,requestGrant:t}=function(){let e=(0,f.useRef)(null),[t,r]=(0,f.useState)("idle"),[n,i]=(0,f.useState)(null),a=(0,f.useCallback)(async t=>{let n;i(null),r("verifying");let a=await e.current?.execute();if(!a)return r("error"),i("Captcha cancelled or failed"),!1;try{n=await fetch("/api/guest/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({token:a,model_endpoint:t?.modelEndpoint,generation_source:t?.generationSource,referer_path:t?.refererPath,cookie_id:t?.cookieId})})}catch{return e.current?.reset(),r("error"),i("Network error"),!1}if(!n.ok){e.current?.reset(),r("error"),i(`Verification failed (${n.status})`);let a={modelEndpoint:t?.modelEndpoint,generationSource:t?.generationSource,refererPath:t?.refererPath};if(429===n.status)(0,rh.signalFreeTierError)("verify_rate_limited",a);else{let e=null;try{e=await n.clone().json()}catch{}e?.code==="bot_detected"?(0,rh.signalFreeTierError)("bot_detected",a):(0,rh.signalFreeTierError)("verification_failed",a)}return!1}return tN(),r("granted"),!0},[]);return{gateRef:e,state:t,error:n,requestGrant:a}}(),r=(0,tI.useUserAuth)(),n=(0,f.useCallback)(async()=>{let t=e.current;if(!t)return null;t.reset();let r=await t.execute()??null;return t.reset(),r},[e]);if((0,f.useEffect)(()=>((0,ry.setFreeTierGrantTrigger)(t),(0,ry.setFreeTierCaptchaExecutor)(n),()=>{(0,ry.clearFreeTierGrantTrigger)(),(0,ry.clearFreeTierCaptchaExecutor)()}),[t,n]),"u">typeof document&&(0,tR.isUserSignedIn)(r)){let e="https:"===location.protocol?"; secure":"";document.cookie=`__fal_signed_in=1; path=/; max-age=2592000; samesite=lax${e}`,document.cookie=`__fal_has_account=1; path=/; max-age=34560000; samesite=lax${e}`}return(0,a.jsx)(rK,{ref:e})}var rZ=e.i(770193),rG=e.i(519447);function rY(){let{signMediaUrl:e,signedIn:t,peekCachedSignedUrl:r}=(0,rZ.useSignedMediaRecovery)(),n=(0,tI.useUserAuth)()?.currentAccount?.user_id;return(0,f.useEffect)(()=>
4((0,rG.setSignedMediaSigner)(e,t,r,n),()=>(0,rG.setSignedMediaSigner)(null,!1,null)),[e,t,r,n]),null}var rJ=e.i(174080),rQ=e.i(530589),rX=e.i(56515),r1=e.i(377210);function r0({entry:e,reveal:t,onExpanded:r,onNavigate:n,onFinish:i}){let[s,o]=(0,f.useState)(!1);(0,f.useEffect)(()=>{if(!s)return;let e=requestAnimationFrame(n);return()=>cancelAnimationFrame(e)},[s,n]);let l=(0,rX.useReducedMotion)(),c=(0,f.useId)().replaceAll(":",""),[u,d]=(0,f.useState)(()=>({width:window.innerWidth,height:window.innerHeight}));return(0,f.useEffect)(()=>{let e=()=>d({width:window.innerWidth,height:window.innerHeight});return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,f.useEffect)(()=>{(l||!e.origin)&&(o(!0),r())},[e.origin,r,l]),(0,rJ.createPortal)((0,a.jsxs)(rQ.motion.div,{"data-world-mode-preserve":"","data-world-entry-overlay":"",className:"dark fixed inset-0 z-[220] text-content-base [color-scheme:dark]","aria-hidden":"true",initial:{opacity:1},animate:{opacity:+!t},transition:{duration:.45*!l},onAnimationComplete:()=>{t&&i()},children:[(0,a.jsx)(rQ.motion.div,{className:"absolute inset-0 bg-surface",initial:{opacity:0}
4,animate:{opacity:1},transition:{delay:.16*!l,duration:.26*!l}}),(0,a.jsxs)(rQ.motion.div,{"data-world-entry-image":"",className:"absolute overflow-hidden",initial:!l&&!!e.origin&&e.origin,animate:{left:0,top:0,width:u.width,height:u.height},transition:{duration:.42*!l,ease:[.22,1,.36,1]},onAnimationComplete:()=>{o(!0),r()},children:[(0,a.jsx)("svg",{"aria-hidden":"true",className:"absolute size-0",children:(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:c,clipPathUnits:"objectBoundingBox",children:(0,a.jsx)(rQ.motion.path,{initial:{d:l?(0,r1.viewportContourPath)():e.contour??(0,r1.viewportContourPath)()},animate:{d:(0,r1.viewportContourPath)()},transition:{duration:.42*!l,ease:[.22,1,.36,1]}})})})}),(0,a.jsx)("div",{className:"absolute inset-0",style:{clipPath:`url(#${c})`},children:(0,a.jsx)(rQ.motion.img,{src:e.image,alt:"",className:"absolute size-full object-cover",initial:{filter:"brightness(1)"},animate:{filter:"brightness(0.65)"},transition:{duration:.42*!l}})})]})]}),document.body)}function r6({entry:e,target:t,onNavigate:r,onFinish:n}){let i=(0,rX.useReducedMotion)(),s=(0,f.useId)().replaceAll(":",""),[o,l]=(0,f.useState)(!1),[c,u]=(0,f.useState)(!1),d=(0,f.useRef)(null),[h,p]=(0,f.useState)(()=>({left:0,top:0,width:window.innerWidth,height:window.innerHeight}));(0,f.useEffect)(()=>{let e=()=>p({left:0,top:0,width:window.innerWidth,height:window.innerHeight});return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let m=(0,f.useRef)(r);m.current=r,(0,f.useEffect)(()=>{d.current?.focus({preventScroll:!0});let e=requestAnimationFrame(()=>m.current()),t=window.setTimeout(()=>u(!0),1e4);return()=>{cancelAnimationFrame(e),window.clearTimeout(t)}},[]);let g={duration:.42*!i,ease:[.22,1,.36,1]},y=(0,r1.viewportContourPath)();return(0,rJ.createPortal)((0,a.jsxs)(rQ.motion.div,{ref:d,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":`Returning to ${e.title}`,"data-world-mode-preserve":"","data-world-return-overlay":"",className:"dark fixed inset-0 z-[220] [color-scheme:dark] outline-none",initial:{opacity:1},animate:{opacity:+!o},transition:{duration:.08*!i},onAnimationComplete:()=>{o&&n()},onKeyDown:e=>{e.stopPropagation(),"Tab"===e.key&&(e.preventDefault(),(d.current?.querySelector("button")??d.current)?.focus())},children:[(0,a.jsx)(rQ.motion.div,{className:"absolute inset-0 bg-surface",initial:{opacity:1},animate:{opacity:+!t},transition:g}),(0,a.jsxs)(rQ.motion.div,{"data-world-return-image":"",className:"absolute overflow-hidden",initial:h,animate:t?.origin??h,transition:g,onAnimationComplete:()=>{t&&l(!0)},children:[(0,a.jsx)("svg",{"aria-hidden":"true",className:"absolute size-0",children:(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:s,clipPathUnits:"objectBoundingBox",children:(0,a.jsx)(rQ.motion.path,{initial:{d:y},animate:{d:t?.contour??y},transition:g})})})}),(0,a.jsx)("div",{className:"absolute inset-0",style:{clipPath:`url(#${s})`},children:(0,a.jsx)(rQ.motion.img,{src:e.image,alt:"",className:"absolute size-full max-w-none object-cover",initial:{left:"0%",top:"0%",width:"100%",height:"100%",filter:"brightness(0.65)"},animate:{...t?.imageBounds,filter:t?"brightness(1)":"brightness(0.65)"},transition:g})})]}),c&&!t&&(0,a.jsx)("div",{role:"status",className:"absolute inset-x-0 bottom-8 flex justify-center",children:(0,a.jsx)(rf.Button,{onClick:n,children:"Show Explore"})})]}),document.body)}var r2=e.i(765491),r5=e.i(186312),r4=e.i(512829);function r8({title:e,poster:t,view:r,navigating:n,exiting:i=!1,onCancel:s,onStay:o}){let l=(0,rX.useReducedMotion)(),c=(0,f.useRef)(null),u=(0,f.useRef)(null);return(0,f.useEffect)(()=>{i?document.querySelector("[data-world-playground]")?.focus({preventScroll:!0}):u.current?.focus({preventScroll:!0})},[i]),(0,f.useEffect)(()=>{if(!i&&c.current)return(0,r5.hideOthers)(c.current)},[i]),(0,f.useEffect)(()=>{if(i)return;let e=e=>{e.target instanceof Node&&!c.current?.contains(e.target)&&u.current?.focus({preventScroll:!0})};return document.addEventListener("focusin",e,!0),()=>document.removeEventListener("focusin",e,!0)},[i]),(0,rJ.createPortal)((0,a.jsx)(r2.FocusScope,{asChild:!0,loop:!i,trapped:!i,onUnmountAutoFocus:e=>{e.preventDefault(),i||requestAnimationFrame(()=>{let e=document.activeElement;if(e!==document.body&&e!==document.documentElement&&e?.isConnected)return;let t=document.querySelector('[data-world-stage="failed"] [role="alert"] button');t?.focus({preventScroll:!0})})},children:(0,a.jsx)("div",{ref:c,"data-world-mode-preserve":"","data-world-connection-overlay":"",role:i?void 0:"dialog","aria-modal":!i||void 0,"aria-label":i?void 0:`Opening ${e}`,className:"dark pointer-events-none fixed inset-0 z-[221] text-content-base [color-scheme:dark]",onKeyDown:e=>{"Escape"!==e.key||i||(e.preventDefault(),e.stopPropagation(),s())},children:(0,a.jsx)(rQ.motion.div,{className:"pointer-events-none absolute inset-0",initial:{opacity:0}
4,animate:{opacity:1},transition:{delay:.3*!l,duration:.3*!l},children:(0,a.jsx)(r4.WorldConnectionCard,{title:e,view:r,onCancel:s,onStay:o,cancelRef:u,poster:t,exiting:i,navigating:n})})})}),document.body)}var r9=e.i(397218);function r7({children:e}){let t=(0,eF.usePathname)(),r=(0,eF.useRouter)(),[n,i]=(0,f.useState)(null),[s,o]=(0,f.useState)(null),[l,c]=(0,f.useState)(null),[u,d]=(0,f.useState)(!1),[h,p]=(0,f.useState)(null),m=(0,f.useRef)(!1),g=(0,f.useRef)(!1),y=(0,f.useRef)(null),v=s?new URL(s.href,"https://fal.ai").pathname:null,C=!!(v&&t.replace(/\/playground\/?$/,"")===v.replace(/\/playground\/?$/,"")),b=(0,f.useCallback)(e=>(m.current=!1,g.current=!1,y.current=document.activeElement instanceof HTMLElement?document.activeElement:null,(0,rJ.flushSync)(()=>{i(null),c({...e,from:t}),d(!1),p(null),o({...e,from:t,expanded:!1,ready:!1})}),!0),[t]),x=(0,f.useCallback)(e=>{o(t=>t?.href!==e||t.ready?t:{...t,ready:!0})},[]),w=(0,f.useCallback)(()=>{o(e=>e&&!e.expanded?{...e,expanded:!0}:e)},[]),_=(0,f.useCallback)(()=>{s&&!g.current&&(g.current=!0,r.push(s.href))},[s,r]),k=(0,f.useCallback)(()=>o(null),[]),E=(0,f.useCallback)(()=>!!l?.gallery&&"/explore/worlds"===l.from&&t.replace(/\/playground\/?$/,"")===new URL(l.href,"https://fal.ai").pathname.replace(/\/playground\/?$/,"")&&((0,rJ.flushSync)(()=>{o(null),p(null),d(!0)}),!0),[l,t]),S=(0,f.useCallback)(()=>{l&&r.back()},[l,r]),A=(0,f.useCallback)(e=>{p(e)},[]),j=(0,f.useCallback)(()=>{d(!1),p(null),c(null),document.querySelector(".detail-copy__cta")?.focus({preventScroll:!0})},[]);(0,f.useEffect)(()=>{if(!l)return;let e=new URL(l.href,"https://fal.ai").pathname;t!==l.from&&t.replace(/\/playground\/?$/,"")!==e.replace(/\/playground\/?$/,"")&&(d(!1),p(null),c(null))},[l,t]);let P=(0,f.useCallback)(()=>{let e=s?.from??l?.from;e&&r.replace(e,{scroll:!1}),c(null),o(null),requestAnimationFrame(()=>{y.current?.isConnected&&y.current.focus({preventScroll:!0})})},[s,l,r]);(0,f.useEffect)(()=>{s&&(C?m.current=!0:(t!==s.from||m.current)&&o(null))},[C,s,t]);let T=l&&!u&&t.replace(/\/playground\/?$/,"")===new URL(l.href,"https://fal.ai").pathname.replace(/\/playground\/?$/,"")?l.href:void 0,I=(0,f.useCallback)(e=>i(t=>({...e,started:"idle"!==e.view.status||!!(t?.href===e.href&&t.started)})),[]),R=(0,f.useCallback)(e=>{i(t=>t?.href===e?null:t)},[]),L=n?.href===T?n:null,O=L?.view.status==="connecting",M=(!L||"idle"===L.view.status)&&(!!s&&!s.ready||(L?!L.blocked&&!L.started:!!s)),N=(0,f.useRef)(null);O&&(N.current=L.view);let[D,U]=(0,f.useState)(!1),H=(0,f.useRef)(!1),F=L?.view.status==="live"&&H.current;(0,f.useLayoutEffect)(()=>{if(M||O){H.current=!0,U(!1);return}if(!F){H.current=!1,U(!1);return}U(!0);let e=window.setTimeout(()=>{H.current=!1,U(!1)},800*!window.matchMedia("(prefers-reduced-motion: reduce)").matches);return()=>window.clearTimeout(e)},[M,O,F]);let B=!!(l&&!u&&(M||O)),V=(0,f.useMemo)(()=>({connectionHref:T,loading:B,publishConnection:I,clearConnection:R,entry:s,arriving:C,begin:b,ready:x,returnToGallery:E,galleryReady:A,galleryRestore:u?l?.gallery??null:null}),[T,B,I,R,s,C,b,x,E,A,u,l]);return(0,a.jsxs)(r9.WorldEntryContext.Provider,{value:V,children:[e,u&&l&&(0,a.jsx)(r6,{entry:l,target:h,onNavigate:S,onFinish:j}),s&&(0,a.jsx)(r0,{entry:s,reveal:s.ready&&s.expanded,onNavigate:_,onExpanded:w,onFinish:k},s.href),l&&(M||O||D||F)&&!u&&(0,a.jsx)(r8,{title:l.title,poster:L?.poster===void 0?l.image:L.poster??void 0,view:O?L.view:D||F?N.current??void 0:void 0,navigating:!!s,exiting:D||F,onCancel:O?L.onCancel:P,onStay:L?.onStay},`connection:${l.href}`)]})}var r3=e.i(588867),ne=e.i(648598);let nt=(0,f.createContext)(void 0);function nr({children:e}){let{current:t,update:r}=(0,ne.useUserPreferences)(),[n,i]=(0,f.useState)(t.requests?.includeApiRequests??!0);return(0,a.jsx)(nt.Provider,{value:{showApiRequests:n,setShowApiRequests:e=>{i(e),r({requests:{includeApiRequests:e}})}},children:e})}var nn=e.i(802191),ni=e.i(806344),na=e.i(856511),ns=e.i(49275),no=e.i(514163),nl=e.i(610012);function nc(){let e=(0,ni.useStore)(no.confirmStore,e=>e.queue[0]),t=(0,ni.useStore)(no.confirmStore,e=>e.open),r=(0,ni.useStore)(no.confirmStore,e=>e.pending);
4return e?(0,a.jsx)(nu,{options:e.options,open:t,pending:r},e.id):null}function nu({options:e,open:t,pending:r}){let n,i,{title:s,description:o,variant:l="default",align:c="left",size:u="default",icon:d,confirmLabel:h,cancelLabel:p,confirmVariant:m,cancelVariant:g,buttonSize:y,alert:v,extraContent:C,typeToConfirm:b,leftActions:x,pendingLabel:w,emphasizeCancel:_=!1}=e,[k,E]=(0,f.useState)(""),S=null==b||k.trim()===b;return(0,a.jsx)(ns.AlertDialog,{open:t,onOpenChange:e=>{e||(0,no.dismissActiveConfirm)()},children:(0,a.jsxs)(ns.AlertDialogContent,{"data-world-mode-preserve":"",variant:l,align:c,size:u,onOverlayPointerDown:()=>(0,no.dismissActiveConfirm)(),children:[(0,a.jsxs)(ns.AlertDialogHeader,{icon:d,children:[(0,a.jsx)(ns.AlertDialogTitle,{children:s}),null!=o&&(0,a.jsx)(ns.AlertDialogDescription,{children:o})]}),(null!=v||null!=C||null!=b)&&(0,a.jsxs)(ns.AlertDialogExtraContent,{children:[null!=v&&(0,a.jsxs)(na.Alert,{type:v.type,variant:v.variant,layout:v.layout,children:[null!=v.title&&(0,a.jsx)(na.AlertTitle,{children:v.title}),null!=v.description&&(0,a.jsx)(na.AlertDescription,{children:v.description})]}),C,null!=b&&(0,a.jsx)(nl.Input,{value:k,onChange:e=>E(e.target.value),placeholder:b,disabled:r,className:"font-mono"})]}),(0,a.jsx)(ns.AlertDialogFooter,{leftActions:x,children:(n=(0,a.jsx)(ns.AlertDialogCancel,{variant:g??(_?"inverse":void 0),size:y,loading:r,onClick:e=>{e.preventDefault(),(0,no.dismissActiveConfirm)()},children:p??"Cancel"}),i=(0,a.jsx)(ns.AlertDialogAction,{variant:m??(_?"default":void 0),size:y,loading:r,disabled:!S,onClick:e=>{e.preventDefault(),(0,no.acceptActiveConfirm)()},children:r&&null!=w?w:h??"Confirm"}),_?(0,a.jsxs)(a.Fragment,{children:[i,n]}):(0,a.jsxs)(a.Fragment,{children:[n,i]}))})]})})}var nd=e.i(574574);function nh(){let e=(0,tY.useConsentOverlayBlocking)(),{visibleToasts:t,style:r}=tW(e,{maxVisibleToasts:5,width:"380px"});return(0,f.useEffect)(()=>{(0,nd.setToastQueueBlocked)(e)},[e]),(0,f.useEffect)(()=>()=>(0,nd.setToastQueueBlocked)(!1),[]),(0,a.jsx)("div",{"data-world-mode-preserve":"",children:(0,a.jsx)(tq.Toaster,{id:"global",expand:!0,visibleToasts:t,position:"bottom-right",duration:5e3,gap:8,style:r,toastOptions:{classNames:{toast:"w-(--width) border-none! bg-transparent! p-0! shadow-none!"}}})})}var np=e.i(465986),nf=e.i(288402),nm=e.i(247018),ng=e.i(201237);let ny=tg.z.string().min(12).max(255).regex(/^cs_(?:test|live)_[A-Za-z0-9]+$/);var nv=e.i(385228);let nC=new Set(["credits","concurrency","navigation"]),nb=new Set(["checkout","nav_credit_popover"]),nx=/^(?:custom|\d{1,8})$/;function nw(e,t,r){return null!=e&&t.has(e)?e:r}var n_=e.i(70924),nk=e.i(925689),nE=e.i(582612),nS=e.i(15665),nA=e.i(317751);function nj(e={}){return new nA.QueryClient({...e,defaultOptions:{...e.defaultOptions,queries:{staleTime:6e4,...e.defaultOptions?.queries},dehydrate:{serializeData:tp.serialize,shouldDehydrateQuery:e=>(0,nS.defaultShouldDehydrateQuery)(e)||"pending"===e.state.status,...e.defaultOptions?.dehydrate},hydrate:{deserializeData:tp.deserialize,...e.defaultOptions?.hydrate},mutations:{...e.defaultOptions?.mutations}}})}let nP=[{theme:void 0,routeMatch:["/dashboard","/models","/workflows","/agent","/director","/chat","/explore","/assets","/sandbox","/demos"]}];function nT(){if(l.isServer)return nj();if(!n){let e=(0,nk.handleRequestError)(nd.toast);n=nj({queryCache:new s.QueryCache({onError:(t,r)=>{r.meta?.suppressErrorToast===!0||r.meta?.suppressNotFoundErrorToast===!0&&(0,nk.isNotFoundClientError)(t)||e(t)}})})}return n}let nI=e=>({transformer:tp,url:(0,nv.getUrl)(),headers:()=>({"x-trpc-source":"client","x-timezone":e.current,...(0,n_.getAdminContextHeaders)()})}),nR="wk_WBAvxinW_7ggin1XjVGpqtQCYUPas3E18tLs3CbNd";function nL(){return!function(){let e=(0,f.useRef)(!1),t=(0,f.useRef)(null),r=(0,f.useRef)(null),{refreshAfterAddition:n}=(0,nf.useCreditDataRefresh)(),i=(0,nv.useTRPCClient)();(0,f.useEffect)(()=>{let a=t.current;if(null==a){if(!(a=function(e,t){let r=new URLSearchParams(e);if("success"!==r.get("credits_checkout"))return null;let n=ny.safeParse(r.get("credits_checkout_session"));if(!n.success)return null;let i=r.get("credits_tier"),a=null!=i&&nx.test(i)?i:"unknown",s=t.
4includes("/concurrency")?"concurrency":"credits";return{sessionId:n.data,tier:a,page:nw(r.get("credits_page"),nC,s),component:nw(r.get("credits_component"),nb,"checkout"),purchasePath:"hosted"}}(window.location.search,window.location.pathname)))return;t.current=a,(0,nm.cleanUrlParams)([...nm.CREDIT_PURCHASE_CALLBACK_PARAM_KEYS])}r.current??=i.billing.verifyCreditCheckout.query({sessionId:a.sessionId,source:nm.creditPurchaseSourceSchema.parse({page:a.page,component:a.component,..."unknown"!==a.tier&&{tier:a.tier}})});let s=!1;return r.current.then(t=>{if(s||e.current)return;e.current=!0;let r=t.amount;(0,ng.trackConversionPixels)(tZ.ANALYTICS_EVENTS.PURCHASE_CREDITS_SUCCESS,{value:r},t.eventId),n(),(0,nd.toast)({title:`$${r.toFixed(2)} credits added successfully`,alertType:"success"})}).catch(()=>{}),()=>{s=!0}},[n,i])}(),null}function nO({children:e,activeTimezone:t,notificationsEnabled:r,onTimezoneChange:n}){let i=(0,eF.usePathname)(),{announcements:s}=t2("top_banner");(0,tU.useSafeFeatureFlagVariantKey)("sandbox-free-credits-experiment");let o=(0,tJ.useInitialFeatureFlagVariant)("sandbox-free-credits-experiment"),l=(s.length>0||"test"===o)&&!tG(i);return(0,a.jsx)(tK.HeaderHeightProvider,{hasBanner:l,children:(0,a.jsx)(nn.TimezoneProvider,{timezone:t,onTimezoneChange:n,children:(0,a.jsx)(nr,{children:(0,a.jsxs)(nE.NotificationsEnabledProvider,{enabled:r,children:[l&&(0,a.jsx)(rs,{}),(0,a.jsx)(eU,{reducedMotion:"user",children:(0,a.jsx)(ru.NavigationShell,{children:!function(e){if(!e)return!1;let t=e.replace(/\/+$/,"");return"/explore/worlds"===t||r3.WORLD_GALLERY_MODELS.some(({id:e})=>{let r=`/models/${e}`;return t===r||t===`${r}/playground`||t===`${r}/start-session`||t===`${r}/start-session/playground`})}(i)?e:(0,a.jsx)(r7,{children:e})})}),(0,a.jsx)(rW,{}),(0,a.jsx)(rg,{})]})})})})}e.s(["default",0,({children:e,flags:t,timezone:r,notificationsEnabled:n,announcements:s})=>{let l=(0,eF.usePathname)(),p=(0,f.useRef)(null),m=(0,tL.useMarketingConsent)(),[g,y]=(0,f.useState)(r),v=(0,f.useRef)(r);(0,f.useEffect)(()=>{v.current=g},[g]);let C=nT(),b=(0,f.useRef)(!0);(0,f.useEffect)(()=>{if(b.current){b.current=!1;return}C.invalidateQueries()},[g]);let x=nP.find(e=>"string"==typeof e.routeMatch?l.startsWith(e.routeMatch):Array.isArray(e.routeMatch)?e.routeMatch.find(e=>l.startsWith(e)):e.routeMatch(l)),[w]=(0,f.useState)(()=>{var e;return(0,u.createTRPCClient)({links:[(e={select:e=>"billing.getUserBalance"===e.path?"userBalanceNoBatch":"requests.recentHistory"===e.path?"requestHistoryIsolated":"chat.suggestNextPrompt"===e.path||"cpq.quotes.discountChanges"===e.path||"cpq.quotes.addonDiscountChanges"===e.path||"tags.getMatchingEntityIds"===e.path?"postQuery":e.path.startsWith("serverlessOverrideMigration.")?"migrationPost":e.path.startsWith("errorAnalytics.")||e.path.startsWith("spendingStats.")||e.path.startsWith("pricing.")||e.path.startsWith("models.")?"analyticsStream":"default",routes:{userBalanceNoBatch:(0,d.httpLink)(nI(v)),requestHistoryIsolated:(0,u.httpBatchStreamLink)(nI(v)),analyticsStream:(0,u.httpBatchStreamLink)({...nI(v),methodOverride:"POST"}),postQuery:(0,u.httpBatchStreamLink)({...nI(v),methodOverride:"POST"}),migrationPost:(0,u.httpBatchStreamLink)({...nI(v),methodOverride:"POST"})},default:(0,u.httpBatchStreamLink)(nI(v))},t=>{let r={default:e.default(t),...Object.fromEntries(Object.entries(e.routes).map(([e,r])=>[e,r(t)]))};return({op:t,next:n})=>(0,h.observable)(i=>{let a=e.select(t);return(a in r?r[a]:r.default)({op:t,next:n}).subscribe(i)})})]})}),_=(0,tI.useUserAuth)();return(0,f.useEffect)(()=>{let e=!!_?.user,t=m&&!!nR&&!e;if(t&&!p.current&&nR)try{p.current=new eL(nR,{autoPage:!1,autoIdentify:!1}),p.current.mount()}catch(e){console.error("Failed to initialize Unify client:",e)}if(!t&&p.current)try{p.current.unmount(),p.current=null}catch(e){console.error("Failed to unmount Unify client:",e)}},[m,_]),(0,f.useEffect)(()=>()=>{if(p.current)try{p.current.unmount(),p.current=null}catch(e){console.error("Failed to unmount Unify client:",e)}},[]),(0,f.useEffect)(()=>{if(m&&p.current&&!_?.user)try{p.current.page()}catch(e){console.error("Failed to track page view:",e)}},[m,l,_]),(0,a.jsx)(eH.ThemeProvider,{attribute:"class",disableTransitionOnChange:!0,forcedTheme:x?x.theme:"light",children:(0,a.jsx)(tz,{flags:t,children:(0,a.jsx)(np.TooltipProvider,{children:(0,a.jsxs)(o.QueryClientProvider,{client:C,children:[(0,a.jsxs)(nv.TRPCProvider,{trpcClient:w,queryClient:C,children:[(0,a.jsx)(rY,{}),_?.user&&(0,a.jsx)(nL,{}
4),(0,a.jsx)(tJ.InitialFeatureFlagsProvider,{featureFlags:t.data.featureFlags,featureFlagOverrides:t.data.featureFlagOverrides,children:(0,a.jsx)(t6,{feed:s,hosts:(0,a.jsx)(rc,{}),children:(0,a.jsx)(nO,{activeTimezone:g,notificationsEnabled:n,onTimezoneChange:y,children:e})})})]}),(0,a.jsx)(nh,{}),(0,a.jsx)(nc,{}),"true"===i.default.env.NEXT_PUBLIC_SHOW_QUERY_DEVTOOLS&&(0,a.jsx)(c,{initialIsOpen:!1,buttonPosition:"bottom-left"}),"true"===i.default.env.NEXT_PUBLIC_SHOW_AGENTATION&&(0,a.jsx)(eO,{})]})})})})},"getBrowserQueryClient",0,nT],846387)},602939,343507,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(522016),i=e.i(618566),a=e.i(720565),s=e.i(271645),o=e.i(985902),l=e.i(878489),c=e.i(784911),u=e.i(269729),d=e.i(442933),h=e.i(801424),p=e.i(152088),f=e.i(456935);let m=[{d:"M12.374 18.9305V22.02H15.4635V18.9305H12.374Z",kind:"muted",col:4,row:6},{d:"M12.374 15.8404V18.9299H15.4635V15.8404H12.374Z",kind:"muted",col:4,row:5},{d:"M12.374 9.66197V12.7515H15.4635V9.66197H12.374Z",kind:"muted",col:4,row:3},{d:"M12.374 6.57213V9.66162H15.4635V6.57213H12.374Z",kind:"muted",col:4,row:2},{d:"M15.4639 15.8404V18.9299H18.5534V15.8404H15.4639Z",kind:"muted",col:5,row:5},{d:"M15.4639 12.7513V15.8408H18.5534V12.7513H15.4639Z",kind:"muted",col:5,row:4},{d:"M15.4639 9.66197V12.7515H18.5534V9.66197H15.4639Z",kind:"muted",col:5,row:3},{d:"M15.4639 3.48351V6.573L18.5534 6.573V3.48351L15.4639 3.48351Z",kind:"accent",col:5,row:1},{d:"M15.4639 0.393175V3.48267L18.5534 3.48267V0.393175L15.4639 0.393175Z",kind:"accent",col:5,row:0},{d:"M18.5527 9.66197V12.7515H21.6422V9.66197H18.5527Z",kind:"muted",col:6,row:3},{d:"M18.5527 3.48351V6.573L21.6422 6.573V3.48351L18.5527 3.48351Z",kind:"muted",col:6,row:1},{d:"M18.5527 0.393175V3.48267L21.6422 3.48267V0.393175L18.5527 0.393175Z",kind:"muted",col:6,row:0},{d:"M21.6426 9.66197V12.7515H24.7321V9.66197H21.6426Z",kind:"muted",col:7,row:3},{d:"M24.7324 3.48351V6.573L27.8219 6.573V3.48351L24.7324 3.48351Z",kind:"muted",col:8,row:1},{d:"M24.7324 0.393175V3.48267L27.8219 3.48267V0.393175L24.7324 0.393175Z",kind:"muted",col:8,row:0},{d:"M27.8213 0.393175V3.48267L30.9108 3.48267V0.393175L27.8213 0.393175Z",kind:"muted",col:9,row:0},{d:"M0 0.000108242L0 3.0896L3.08949 3.0896L3.08949 0.000108242L0 0.000108242Z",kind:"muted",col:0,row:0},{d:"M30.9102 9.66197V12.7515H33.9996V9.66197H30.9102Z",kind:"muted",col:10,row:3},{d:"M30.9102 6.57213V9.66162H33.9996V6.57213H30.9102Z",kind:"muted",col:10,row:2},{d:"M30.9102 3.48351V6.573L33.9996 6.573V3.48351L30.9102 3.48351Z",kind:"muted",col:10,row:1},{d:"M30.9102 0.393175V3.48267L33.9996 3.48267V0.393175L30.9102 0.393175Z",kind:"muted",col:10,row:0}],g=(0,f.makePixelScanPhase)(m,11),y=[{d:"M2.00024 6.62804e-05H0.000610352V1.99989H2.00024V6.62804e-05Z",path:.55},{d:"M6.00024 6.62804e-05H4.00061V1.99989H6.00024V6.62804e-05Z",path:1},{d:"M1.99866 5.00022C1.99866 5.5524 2.44629 6.00013 2.99847 6.00013C3.55066 6.00013 3.99829 5.5524 3.99829 5.00022C3.99829 4.44804 3.55066 4.00031 2.99847 4.00031C2.44629 4.00031 1.99866 4.44804 1.99866 5.00022Z",path:.15},{d:"M5.99829 2.00019H3.99866V4.00001H5.99829V2.00019Z",path:.75}],v=[{d:"M4.00113 6H6.00098V4H4.00113V6Z",path:.4},{d:"M0.000156164 6H2V4H0.000156164V6Z",path:.15},{d:"M2 1C2 0.447758 1.55232 0 1.00008 0C0.447837 0 0.000156164 0.447758 0.000156164 1C0.000156164 1.55224 0.447837 2 1.00008 2C1.55232 2 2 1.55224 2 1Z",path:.85},{d:"M2.00016 4H4V2H2.00016V4Z",path:.6}];function C(){return(0,t.jsx)("svg",{width:"34",height:"23",viewBox:"0 0 34 23",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-[22.02px] w-[34px] shrink-0",children:m.map((e,r)=>(0,t.jsx)("path",{d:e.d,fill:"accent"===e.kind?"var(--announcement-accent)":"var(--announcement-muted)",className:"pixel-decoration-cell",style:(0,f.pixelCellStyle)(g(e))},r))})}function b({pixels:e,className:r}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 6","aria-hidden":"true",role:"img",className:r,children:e.map((e,r)=>(0,t.jsx)("path",{d:e.d,fill:"currentColor",className:"pixel-decoration-cell",style:(0,f.pixelCellStyle)(e.path)},r))})}function x({className:e}){return(0,t.jsx)(b,{pixels:y,className:e})}function w({className:e}){return(0,t.jsx)(b,{pixels:v,className:e})}e.s(["AnnouncementDecorationShimmer",0,C,"AnnouncementMarkLeftShimmer",0,x,"AnnouncementMarkRightShimmer",0,w],343507);let _=(0,r.cva)("",{variants:{variantKey:{blue:["[--announcement-base:hsl(var(--swatch-cryo-depth-background))]","[--announcement-accent:hsl(var(--swatch-cryo-depth-foreground))]","[--announcement-muted:hsl(var(--swatch-cryo-depth-background-muted))]","[--announcement-bar-1:hsl(var(--swatch-cryo-depth-foreground))]","[--announcement-bar-2:hsl(var(--swatch-cryo-depth-accent-1))]","[--announcement-bar-3:hsl(var(--swatch-cryo-depth-accent-2))]","[--announcement-bar-4:hsl(var(--swatch-cryo-depth-background-muted))]"],cyan:["[--announcement-base:hsl(var(--swatch-cryo-mist-background))]","[--announcement-accent:hsl(var(--swatch-cryo-mist-foreground))]","[--announcement-muted:hsl(var(--swatch-cryo-mist-background-muted))]","[--announcement-bar-1:hsl(var(--swatch-cryo-mist-foreground))]","[--announcement-bar-2:hsl(var(--swatch-cryo-mist-accent-1))]","[--announcement-bar-3:hsl(var(--swatch-cryo-mist-accent-2))]","[--announcement-bar-4:hsl(var(--swatch-cryo-mist-background-muted))]"],red:["[--announcement-base:hsl(var(--error-500))]","[--announcement-accent:hsl(var(--error-100))]","[--announcement-muted:hsl(var(--error-900))]","[--announcement-bar-1:hsl(var(--error-100))]","[--announcement-bar-2:hsl(var(--primary-300))]","[--announcement-bar-3:hsl(var(--secondary-100))]","[--announcement-bar-4:hsl(var(--error-900))]"],purple:["[--announcement-base:hsl(var(--swatch-pulse-flux-background))]","[--announcement-accent:hsl(var(--swatch-pulse-flux-foreground))]","[--announcement-muted:hsl(var(--primary-950))]","[--announcement-bar-1:hsl(var(--swatch-pulse-flux-foreground))]","[--announcement-bar-2:hsl(var(--swatch-pulse-flux-accent-1))]","[--announcement-bar-3:hsl(var(--swatch-pulse-flux-accent-2))]","[--announcement-bar-4:hsl(var(--primary-950))]"]}}}),k=(0,r.cva)("",{variants:{variantKey:{blue:["[--product-banner-bg:var(--product-banner-blue-dark-background)]","[--product-banner-fg:var(--product-banner-blue-dark-foreground)]","[--product-banner-mark:var(--product-banner-blue-dark-mark)]"],purple:["[--product-banner-bg:var(--product-banner-purple-dark-background)]","[--product-banner-fg:var(--product-banner-purple-dark-foreground)]","[--product-banner-mark:var(--product-banner-purple-dark-mark)]"],green:["[--product-banner-bg:var(--product-banner-green-dark-background)]","[--product-banner-fg:var(--product-banner-green-dark-foreground)]","[--product-banner-mark:var(--product-banner-green-dark-mark)]"],cyan:["[--product-banner-bg:var(--product-banner-blue-light-background)]","[--product-banner-fg:var(--product-banner-blue-light-foreground)]","[--product-banner-mark:var(--product-banner-blue-light-mark)]"],lavender:["[--product-banner-bg:var(--product-banner-purple-light-background)]","[--product-banner-fg:var(--product-banner-purple-light-foreground)]","[--product-banner-mark:var(--product-banner-purple-light-mark)]"],yellow:["[--product-banner-bg:var(--product-banner-green-light-background)]","[--product-banner-fg:var(--product-banner-green-light-foreground)]","[--product-banner-mark:var(--product-banner-green-light-mark)]"]}}}),E=(0,r.cva)("relative flex min-h-8 w-full items-center justify-center overflow-hidden bg-(--product-banner-bg) px-11 py-1.5 text-center font-heading text-[14px] font-medium leading-[14px] tracking-[-0.28px] text-(--product-banner-fg)"),S=(0,r.cva)("size-1.5 shrink-0 text-(--product-banner-mark)"),A=(0,r.cva)("text-(--product-banner-fg) hover:bg-black/10 hover:text-(--product-banner-fg) dark:text-(--product-banner-fg) dark:hover:bg-white/10 dark:hover:text-(--product-banner-fg) [&>svg]:text-current dark:[&>svg]:text-current"),j=(0,r.cva)("flex w-full flex-col overflow-hidden bg-(--announcement-base)",{variants:{withAsset:{true:"h-auto",false:"h-[60px]"}}}),P=(0,r.cva)("relative w-[280px] max-w-[calc(100vw-2rem)] pb-2"),T=(0,r.cva)("relative overflow-hidden rounded-sm bg-surface-200 shadow-[0_10px_10px_-5px_rgb(0_0_0/0.04),0_20px_25px_-5px_rgb(0_0_0/0.1)] before:pointer-events-none before:absolute before:inset-0 before:z-20 before:rounded-sm before:border before:border-stroke-light dark:bg-surface-100"),I=(0,r.cva)("absolute inset-x-0 h-2 rounded-sm bg-surface-200 shadow-[0_10px_10px_-5px_rgb(0_0_0/0.04),0_20px_25px_-5px_rgb(0_0_0/0.1)] before:pointer-events-none before:absolute before:inset-0 before:rounded-sm before:border before:border-stroke-light dark:bg-surface-100",{variants:{depth:{back:"bottom-0 mx-2 opacity-80",middle:"bottom-1 mx-1 opacity-90"}}});function R(e){try{let t=new URL(e);if("http:"===t.protocol||"https:"===t.protocol)return{target:"_blank",rel:"noopener noreferrer"}}catch{}return{}}function L(e,t){let r=(0,a.usePostHog)(),n=(0,i.usePathname)();return(0,s.useCallback)(({ctaType:i,ctaLabel:a,ctaHref:s})=>{t&&r?.capture(h.ANALYTICS_EVENTS.PRODUCT_ANNOUNCEMENT_CTA_CLICKED,{campaign_id:e.campaignId,campaign_slug:e.campaignSlug,placement_id:e.id,placement:e.placement,template_key:e.templateKey,variant_key:e.variantKey,cta_type:i,cta_label:a,cta_href:s,pathname:n},{transport:"sendBeacon"})},[e,t,n,r])}function O(){return(0,t.jsxs)("svg",{width:"127",height:"24",viewBox:"0 0 127 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-6 w-[127px] shrink-0",children:[(0,t.jsx)("path",{d:"M11.9869 6.01927C15.2717 6.01927 17.9347 8.70937 17.9347 12.0276C17.9346 15.3458 15.2717 18.0355 11.9869 18.0355C8.70203 18.0355 6.03919 15.3456 6.03916 12.0275C6.0392 8.7093 8.70204 6.01933 11.9869 6.01927Z",fill:"var(--announcement-accent)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.8488 0C20.6518 0 21.5534 -1.72715e-05 22.242 0.353C22.8478 0.66356 23.3405 1.15923 23.6492 1.76874C24 2.46165 24 3.36876 24 5.18285V18.8172C24 20.6312 24 21.5384 23.6492 22.2313C23.3405 22.8408 22.8478 23.3364 22.242 23.647C21.5534 24 20.6518 24 18.8488 24H5.15125C3.34822 24 2.44664 24 1.75796 23.647C1.15217 23.3364 0.659513 22.8408 0.350848 22.2313C-1.71661e-05 21.5384 0 20.6312 0 18.8172V5.18285C0 3.36876 -1.71661e-05 2.46165 0.350848 1.76874C0.659513 1.15923 1.15217 0.66356 1.75796 0.353C2.44664 -1.72715e-05 3.34822 0 5.15125 0H18.8488ZM9.1119 2.01045C8.76993 2.01045 8.49569 2.2917 8.46294 2.63593C8.1713 5.7069 5.75459 8.15088 2.71789 8.44584C2.37752 8.47893 2.0993 8.75616 2.09923 9.10195V14.8845C2.09923 15.2304 2.37748 15.5077 2.71789 15.5408C5.75455 15.8357 8.17125 18.2796 8.46294 21.3506C8.49563 21.6948 8.76978 21.9761 9.11176 21.9762L14.8298 21.9763C15.1718 21.9763 15.4459 21.695 15.4786 21.3507C15.7
4703 18.2798 18.187 15.8359 21.2237 15.5409C21.5641 15.5079 21.8421 15.2305 21.8422 14.8847V9.10209C21.8421 8.75625 21.5641 8.47905 21.2237 8.44598C18.187 8.15102 15.7703 5.70701 15.4786 2.63607C15.4459 2.29183 15.1719 2.01063 14.8299 2.01059L9.1119 2.01045Z",fill:"var(--announcement-accent)"}),(0,t.jsx)("rect",{x:"28",width:"99",height:"24",rx:"3",fill:"var(--announcement-accent)"}),(0,t.jsx)("path",{d:"M32.576 6.512C32.504 6.164 32.45 5.894 32.414 5.702C32.378 5.498 32.36 5.354 32.36 5.27C32.36 5.162 32.372 5.102 32.396 5.09C32.432 5.066 32.474 5.054 32.522 5.054L34.556 5.054C34.616 5.054 34.658 5.072 34.682 5.108C34.718 5.144 34.748 5.222 34.772 5.342C34.796 5.45 34.832 5.636 34.88 5.9L36.752 14.306C36.848 14.738 36.926 15.062 36.986 15.278C37.046 15.494 37.118 15.602 37.202 15.602C37.298 15.602 37.376 15.488 37.436 15.26C37.508 15.032 37.592 14.708 37.688 14.288L39.866 5.9C39.926 5.636 39.968 5.45 39.992 5.342C40.028 5.222 40.064 5.144 40.1 5.108C40.136 5.072 40.184 5.054 40.244 5.054L42.278 5.054C42.35 5.054 42.398 5.072 42.422 5.108C42.458 5.144 42.494 5.222 42.53 5.342C42.578 5.45 42.632 5.636 42.692 5.9L44.978 14.288C45.086 14.708 45.17 15.032 45.23 15.26C45.302 15.488 45.38 15.602 45.464 15.602C45.548 15.602 45.614 15.494 45.662 15.278C45.722 15.062 45.794 14.738 45.878 14.306L47.678 5.9C47.726 5.636 47.756 5.45 47.768 5.342C47.792 5.222 47.822 5.144 47.858 5.108C47.894 5.072 47.936 5.054 47.984 5.054L49.91 5.054C49.97 5.054 50.012 5.066 50.036 5.09C50.072 5.102 50.09 5.156 50.09 5.252C50.09 5.348 50.066 5.492 50.018 5.684C49.982 5.876 49.916 6.152 49.82 6.512L47.354 17.672C47.282 18.044 47.222 18.278 47.174 18.374C47.126 18.458 47.06 18.5 46.976 18.5L44.15 18.5C44.066 18.5 44 18.458 43.952 18.374C43.904 18.278 43.832 18.044 43.736 17.672L41.612 9.716C41.492 9.26 41.402 8.948 41.342 8.78C41.282 8.612 41.222 8.528 41.162 8.528C41.102 8.528 41.042 8.612 40.982 8.78C40.922 8.948 40.832 9.26 40.712 9.716L38.66 17.672C38.576 18.032 38.51 18.26 38.462 18.356C38.426 18.452 38.36 18.5 38.264 18.5L35.456 18.5C35.372 18.5 35.306 18.458 35.258 18.374C35.21 18.278 35.144 18.044 35.06 17.672L32.576 6.512ZM53.4635 10.274C53.4635 10.442 53.4755 10.586 53.4995 10.706C53.5235 10.814 53.5535 10.868 53.5895 10.868C53.6615 10.868 53.7395 10.796 53.8235 10.652C53.9075 10.496 54.0575 10.322 54.2735 10.13C54.4895 9.938 54.7595 9.764 55.0835 9.608C55.4075 9.44 55.8395 9.356 56.3795 9.356C57.2435 9.356 57.9155 9.614 58.3955 10.13C58.8875 10.634 59.1335 11.324 59.1334 12.2L59.1334 16.826C59.1334 17.354 59.1274 17.738 59.1154 17.978C59.1034 18.218 59.0734 18.368 59.0254 18.428C58.9894 18.476 58.9294 18.5 58.8454 18.5L57.0454 18.5C56.9734 18.5 56.9194 18.476 56.8834 18.428C56.8594 18.368 56.8414 18.218 56.8294 17.978C56.8174 17.738 56.8114 17.354 56.8114 16.826L56.8114 12.884C56.8114 12.32 56.6975 11.882 56.4695 11.57C56.2415 11.246 55.8815 11.084 55.3895 11.084C54.8015 11.084 54.3395 11.306 54.0035 11.75C53.6675 12.182 53.4995 12.788 53.4994 13.568L53.4994 16.826C53.4994 17.354 53.4934 17.738 53.4814 17.978C53.4694 18.218 53.4454 18.368 53.4094 18.428C53.3854 18.476 53.3374 18.5 53.2654 18.5L51.4294 18.5C51.3574 18.5 51.3034 18.476 51.2674 18.428C51.2314 18.368 51.2074 18.218 51.1954 17.978C51.1834 17.738 51.1774 17.354 51.1774 16.826L51.1775 6.728C51.1775 6.176 51.1835 5.786 51.1955 5.558C51.2075 5.318 51.2255 5.174 51.2495 5.126C51.2735 5.078 51.3095 5.054 51.3575 5.054L53.2835 5.054C53.3435 5.054 53.3855 5.078 53.4095 5.126C53.4335 5.174 53.4455 5.318 53.4455 5.558C53.4575 5.786 53.4635 6.176 53.4635 6.728L53.4635 10.274ZM65.9816 15.188L65.9816 14.81C65.9816 14.606 65.9516 14.468 65.8916 14.396C65.8436 14.312 65.7476 14.276 65.6036 14.288L64.6856 14.324C64.1336 14.336 63.7076 14.48 63.4076 14.756C63.1196 15.032 62.9756 15.392 62.9756 15.836C62.9756 16.292 63.0896 16.64 63.3176 16.88C63.5576 17.12 63.8816 17.24 64.2896 17.24C64.5776 17.24 64.8476 17.156 65.0996 16.988C65.3636 16.82 65.5736 16.58 65.7296 16.268C65.8976 15.956 65.9816 15.596 65.9816 15.188ZM65.9816 12.704L65.9816 12.254C65.9816 11.714 65.8556 11.33 65.6036 11.102C65.3516 10.874 65.0156 10.76 64.5956 10.76C64.1516 10.76 63.8156 10.868 63.5876 11.084C63.3596 11.288 63.2096 11.588 63.1376 11.984C63.1256 12.08 63.1136 12.164 63.1016 12.236C63.1016 12.296 63.0776 12.326 63.0296 12.326L61.0856 12.326C61.0136 12.326 60.9716 12.314 60.9596 12.29C60.9476 12.266 60.9416 12.224 60.9416 12.164C60.9416 11.924 61.0016 11.648 61.1216 11.336C61.2416 11.012 61.4456 10.7 61.7336 10.4C62.0216 10.1 62.4056 9.854 62.8856 9.662C63.3776 9.458 63.9776 9.35601 64.6856 9.35601C65.3696 9.35601 65.9756 9.45801 66.5036 9.66201C67.0436 9.86601 67.4636 10.196 67.7636 10.652C68.0756 11.108 68.2316 11.708 68.2316 12.452L68.2316 16.232C68.2316 16.508 68.2676 16.808 68.3396 17.132C68.4236 17.444 68.5016 17.72 68.5736 17.96C68.6576 18.188 68.6996 18.338 68.6996 18.41C68.6996 18.47 68.6636 18.5 68.5916 18.5L66.4676 18.5C66.4076 18.5 66.3656 18.47 66.3416 18.41C66.3176 18.338 66.2816 18.188 66.2336 17.96L66.1436 17.6C66.1076 17.468 66.0776 17.378 66.0536 17.33C66.0296 17.27 65.9936 17.24 65.9456 17.24C65.8616 17.24 65.7836 17.318 65.7116 17.474C65.6396 17.618 65.5016 17.78 65.2976 17.96C65.0816 18.164 64.8236 18.332 64.5236 18.464C64.2236 18.584 63.8576 18.644 63.4256 18.644C62.9456 18.644 62.4956 18.554 62.0756 18.374C61.6556 18.182 61.3136 17.894 61.0496 17.51C60.7856 17.114 60.6536 16.616 60.6536 16.016C60.6536 15.368 60.8096 14.834 61.1216 14.414C61.4336 13.994 61.8716 13.676 62.4356 13.46C62.9996 13.244 63.6596 13.124 64.4156 13.1C64.8596 13.076 65.1896 13.07 65.4056 13.082C65.6336 13.082 65.7836 13.058 65.8556 13.01C65.9396 12.962 65.9816 12.86 65.9816 12.704ZM72.7609 8.85201L72.7609 9.19401C72.7609 9.35001 72.8149 9.45201 72.9229 9.50001C73.0309 9.53601 73.2889 9.55401 73.6969 9.55401L74.4349 9.55401C74.5309 9.55401 74.5849 9.59001 74.5969 9.66201C74.6209 9.72201 74.6329 9.90801 74.6329 10.22L74.6329 10.364C74.6329 10.664 74.6209 10.85 74.5969 10.922C74.5849 10.994 74.5309 11.03 74.4349 11.03L73.6969 11.03C73.2889 11.03 73.0309 11.054 72.9229 11.102C72.8149 11.138 72.7609 11.234 72.7609 11.39L72.7609 15.98C72.7609 16.388 72.8509 16.664 73.0309 16.808C73.2109 16.952 73.4509 17.024 73.7
4509 17.024C73.9429 17.024 74.1049 17.018 74.2369 17.006C74.3689 16.982 74.4529 16.97 74.4889 16.97C74.5249 16.97 74.5489 17.006 74.5609 17.078C74.5729 17.138 74.5789 17.3 74.5789 17.564L74.5789 17.654C74.5789 17.93 74.5729 18.104 74.5609 18.176C74.5489 18.236 74.5309 18.284 74.5069 18.32C74.4829 18.344 74.3329 18.404 74.0569 18.5C73.7929 18.608 73.4149 18.662 72.9229 18.662C72.1309 18.662 71.5309 18.47 71.1229 18.086C70.7149 17.702 70.5109 17.126 70.5109 16.358L70.5109 11.39C70.5109 11.234 70.4569 11.138 70.3489 11.102C70.2529 11.054 70.0309 11.03 69.6829 11.03L69.3409 11.03C69.2689 11.03 69.2209 10.994 69.1969 10.922C69.1849 10.85 69.1789 10.664 69.1789 10.364L69.1789 10.22C69.1789 9.90801 69.1849 9.72201 69.1969 9.66201C69.2209 9.59001 69.2689 9.55401 69.3409 9.55401L69.7369 9.55401C70.0969 9.55401 70.3189 9.53601 70.4029 9.50001C70.4869 9.45201 70.5289 9.35001 70.5289 9.19401L70.5289 8.85201C70.5289 8.43201 70.5289 8.13201 70.5289 7.95201C70.5409 7.77201 70.5589 7.66401 70.5829 7.62801C70.6069 7.58001 70.6429 7.55601 70.6909 7.55601L72.6349 7.55601C72.6829 7.55601 72.7129 7.58001 72.7249 7.62801C72.7489 7.66401 72.7609 7.77201 72.7609 7.95201C72.7609 8.13201 72.7609 8.43201 72.7609 8.85201ZM75.8532 9.71601C75.7692 9.71601 75.7152 9.67401 75.6912 9.59001C75.6792 9.49401 75.6552 9.21201 75.6192 8.74401L75.4032 6.47601C75.3672 6.00801 75.3432 5.67801 75.3312 5.48601C75.3192 5.28201 75.3192 5.16201 75.3312 5.12601C75.3552 5.07801 75.3972 5.05401 75.4572 5.05401L77.4372 5.05401C77.4972 5.05401 77.5392 5.07801 77.5632 5.12601C77.5872 5.16201 77.5932 5.28201 77.5812 5.48601C77.5692 5.67801 77.5452 6.00801 77.5092 6.47601L77.2932 8.74401C77.2452 9.21201 77.2092 9.49401 77.1852 9.59001C77.1732 9.67401 77.1252 9.71601 77.0412 9.71601L75.8532 9.71601ZM81.0999 9.35601C81.5799 9.35601 81.9879 9.39801 82.3239 9.48201C82.6719 9.55401 82.9719 9.66201 83.2239 9.80601C83.4759 9.93801 83.6859 10.088 83.8539 10.256C84.0459 10.436 84.2079 10.64 84.3399 10.868C84.4719 11.084 84.5679 11.294 84.6279 11.498C84.6999 11.69 84.7359 11.834 84.7359 11.93C84.7359 11.99 84.6639 12.02 84.5199 12.02L82.7379 12.02C82.6899 12.02 82.6479 11.948 82.6119 11.804C82.5879 11.648 82.4979 11.474 82.3419 11.282C82.2099 11.102 82.0419 10.964 81.8379 10.868C81.6339 10.76 81.3879 10.706 81.0999 10.706C80.7519 10.706 80.4579 10.784 80.2179 10.94C79.9779 11.096 79.8579 11.336 79.8579 11.66C79.8579 11.948 79.9659 12.164 80.1819 12.308C80.3979 12.452 80.6739 12.566 81.0099 12.65C81.3459 12.734 81.7059 12.842 82.0899 12.974C82.5339 13.106 82.9719 13.274 83.4039 13.478C83.8359 13.682 84.1899 13.964 84.4659 14.324C84.7539 14.672 84.8979 15.146 84.8979 15.746C84.8979 16.706 84.5799 17.438 83.9439 17.942C83.3079 18.446 82.4499 18.698 81.3699 18.698C80.5899 18.698 79.9479 18.59 79.4439 18.374C78.9519 18.158 78.5499 17.894 78.2379 17.582C77.9379 17.27 77.7099 16.952 77.5539 16.628C77.4099 16.292 77.3379 16.064 77.3379 15.944C77.3379 15.908 77.3499 15.884 77.3739 15.872C77.4099 15.848 77.4699 15.836 77.5539 15.836L79.4439 15.836C79.5039 15.836 79.5459 15.902 79.5699 16.034C79.6059 16.154 79.6839 16.31 79.8039 16.502C79.9599 16.742 80.1639 16.946 80.4159 17.114C80.6799 17.27 81.0099 17.348 81.4059 17.348C81.8379 17.348 82.1739 17.246 82.4139 17.042C82.6539 16.826 82.7739 16.532 82.7739 16.16C82.7739 15.884 82.6959 15.668 82.5399 15.512C82.3959 15.344 82.1979 15.212 81.9459 15.116C81.7059 15.02 81.4419 14.936 81.1539 14.864C80.8779 14.792 80.6079 14.708 80.3439 14.612C79.9479 14.468 79.5519 14.3 79.1559 14.108C78.7719 13.904 78.4479 13.634 78.1839 13.298C77.9199 12.962 77.7879 12.524 77.7879 11.984C77.7879 11.42 77.9319 10.946 78.2199 10.562C78.5199 10.166 78.9159 9.86601 79.4079 9.66201C79.9119 9.45801 80.4759 9.35601 81.0999 9.35601ZM92.396 9.55401C92.456 9.55401 92.492 9.57801 92.504 9.62601C92.516 9.66201 92.528 9.74601 92.54 9.87801L92.576 10.274C92.588 10.394 92.6 10.526 92.612 10.67C92.636 10.802 92.672 10.868 92.72 10.868C92.768 10.868 92.84 10.796 92.936 10.652C93.044 10.496 93.2 10.322 93.404 10.13C93.62 9.92601 93.89 9.74601 94.214 9.59001C94.538 9.43401 94.976 9.35601 95.528 9.35601C96.392 9.35601 97.064 9.61401 97.544 10.13C98.036 10.634 98.282 11.324 98.282 12.2L98.282 16.826C98.282 17.354 98.276 17.738 98.264 17.978C98.252 18.218 98.222 18.368 98.174 18.428C98.138 18.476 98.078 
418.5 97.994 18.5L96.194 18.5C96.122 18.5 96.068 18.476 96.032 18.428C96.008 18.368 95.99 18.218 95.978 17.978C95.966 17.738 95.96 17.354 95.96 16.826L95.96 12.884C95.96 12.32 95.846 11.882 95.618 11.57C95.39 11.246 95.03 11.084 94.538 11.084C93.95 11.084 93.488 11.306 93.152 11.75C92.816 12.182 92.648 12.788 92.648 13.568L92.648 16.826C92.648 17.354 92.642 17.738 92.63 17.978C92.618 18.218 92.594 18.368 92.558 18.428C92.534 18.476 92.486 18.5 92.414 18.5L90.578 18.5C90.506 18.5 90.452 18.476 90.416 18.428C90.38 18.368 90.356 18.218 90.344 17.978C90.332 17.738 90.326 17.354 90.326 16.826L90.326 11.174C90.326 11.042 90.32 10.874 90.308 10.67C90.296 10.454 90.284 10.256 90.272 10.076C90.26 9.88401 90.254 9.76401 90.254 9.71601C90.254 9.60801 90.302 9.55401 90.398 9.55401L92.396 9.55401ZM105.346 13.046C105.574 13.046 105.718 13.022 105.778 12.974C105.838 12.914 105.868 12.842 105.868 12.758C105.868 12.398 105.796 12.074 105.652 11.786C105.508 11.498 105.304 11.264 105.04 11.084C104.776 10.904 104.464 10.814 104.104 10.814C103.696 10.814 103.342 10.91 103.042 11.102C102.754 11.282 102.526 11.516 102.358 11.804C102.202 12.092 102.124 12.404 102.124 12.74C102.124 12.836 102.154 12.914 102.214 12.974C102.286 13.022 102.418 13.046 102.61 13.046L105.346 13.046ZM102.088 14.792C102.088 15.296 102.19 15.728 102.394 16.088C102.598 16.448 102.868 16.724 103.204 16.916C103.54 17.108 103.912 17.204 104.32 17.204C104.668 17.204 104.962 17.132 105.202 16.988C105.442 16.844 105.646 16.652 105.814 16.412C105.97 16.172 106.06 15.992 106.084 15.872C106.12 15.74 106.162 15.674 106.21 15.674L107.974 15.674C108.058 15.674 108.106 15.686 108.118 15.71C108.142 15.722 108.154 15.746 108.154 15.782C108.154 15.842 108.118 15.968 108.046 16.16C107.986 16.352 107.89 16.568 107.758 16.808C107.638 17.036 107.476 17.252 107.272 17.456C106.912 17.864 106.48 18.176 105.976 18.392C105.484 18.608 104.908 18.716 104.248 18.716C103.336 18.716 102.538 18.524 101.854 18.14C101.17 17.756 100.642 17.21 100.27 16.502C99.8982 15.782 99.7122 14.942 99.7122 13.982C99.7122 12.986 99.9042 12.146 100.288 11.462C100.684 10.778 101.212 10.256 101.872 9.89601C102.532 9.53601 103.258 9.35601 104.05 9.35601C104.686 9.35601 105.232 9.44601 105.688 9.62601C106.156 9.79401 106.546 10.034 106.858 10.346C107.182 10.658 107.44 11.012 107.632 11.408C107.824 11.804 107.962 12.224 108.046 12.668C108.13 13.112 108.172 13.556 108.172 14C108.172 14.132 108.16 14.216 108.136 14.252C108.124 14.288 108.082 14.306 108.01 14.306L102.826 14.306C102.562 14.306 102.37 14.336 102.25 14.396C102.142 14.456 102.088 14.588 102.088 14.792ZM114.526 9.55401L116.02 9.55401C116.08 9.55401 116.128 9.57801 116.164 9.62601C116.2 9.66201 116.242 9.76401 116.29 9.93201C116.35 10.1 116.428 10.37 116.524 10.742L117.586 14.486C117.706 14.858 117.796 15.152 117.856 15.368C117.916 15.584 117.97 15.74 118.018 15.836C118.066 15.92 118.108 15.962 118.144 15.962C118.192 15.962 118.234 15.914 118.27 15.818C118.318 15.722 118.372 15.566 118.432 15.35C118.492 15.134 118.57 14.84 118.666 14.468L119.584 10.76C119.68 10.364 119.746 10.082 119.782 9.91401C119.818 9.74601 119.848 9.64401 119.872 9.60801C119.896 9.57201 119.926 9.55401 119.962 9.55401L121.654 9.55402C121.69 9.55402 121.714 9.56002 121.726 9.57201C121.738 9.58401 121.744 9.62601 121.744 9.69801C121.744 9.75801 121.726 9.87801 121.69 10.058C121.666 10.226 121.612 10.472 121.528 10.796L119.836 17.6C119.752 18.008 119.686 18.26 119.638 18.356C119.602 18.452 119.548 18.5 119.476 18.5L117.226 18.5C117.154 18.5 117.094 18.458 117.046 18.374C116.998 18.29 116.92 18.068 116.812 17.708L115.66 13.892C115.528 13.412 115.438 13.094 115.39 12.938C115.342 12.782 115.288 12.704 115.228 12.704C115.168 12.704 115.108 12.782 115.048 12.938C115 13.094 114.91 13.412 114.778 13.892L113.572 17.726C113.464 18.074 113.392 18.29 113.356 18.374C113.32 18.458 113.266 18.5 113.194 18.5L110.998 18.5C110.95 18.5 110.908 18.482 110.872 18.446C110.848 18.41 110.818 18.332 110.782 18.212C110.746 18.08 110.698 17.876 110.638 17.6L108.964 10.796C108.88 10.46 108.814 10.208 108.766 10.04C108.73 9.86001 108.712 9.73401 108.712 9.66201C108.712 9.59001 108.742 9.55401 108.802 9.55401L110.638 9.55401C110.686 9.55401 110.722 9.57801 110.746 9.62601C110.77 9.66201 110.8 9.76401 110.836 9.93201C110.884 10.1 110.956 10.376 111.052 10.76L111.97 14.432C112.114 14.984 112.216 15.38 112.276 15.62C112.348 15.848 112.414 15.962 112.474 15.962C112.546 15.962 112.618 15.848 112.69 15.62C112.774 15.392 112.894 14.99 113.05 14.414L114.076 10.742C114.172 10.358 114.244 10.088 114.292 9.93201C114.352 9.76401 114.394 9.66201 114.418 9.62
4601C114.454 9.57801 114.49 9.55401 114.526 9.55401Z",fill:"var(--announcement-base)"})]})}function M(){return(0,t.jsxs)("svg",{width:"280",height:"4",viewBox:"0 0 280 4",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"h-1 w-full shrink-0",preserveAspectRatio:"none",children:[(0,t.jsx)("rect",{width:"55.5",height:"4",fill:"var(--announcement-bar-1)"}),(0,t.jsx)("rect",{width:"27",height:"4",transform:"translate(55.5)",fill:"var(--announcement-bar-2)"}),(0,t.jsx)("rect",{width:"142",height:"4",transform:"translate(82.5)",fill:"var(--announcement-bar-3)"}),(0,t.jsx)("rect",{width:"55.5",height:"4",transform:"translate(224.5)",fill:"var(--announcement-bar-4)"})]})}function N({asset:e,onAssetError:r,onAssetLoad:n}){let i=e?.altText??"";return(0,t.jsx)("div",{className:"w-full",children:e?.url?(0,t.jsx)(d.default,{src:e.url,alt:i,width:0,height:0,sizes:"(max-width: 640px) calc(100vw - 2rem), 280px",className:"h-auto w-full",onError:r,onLoad:n}):(0,t.jsxs)("div",{className:"grid h-full grid-cols-[92px_1fr] gap-2 bg-surface-300 p-3",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"h-2 w-16 rounded-xs bg-surface-alpha-strong"}),(0,t.jsx)("div",{className:"h-4 rounded-xs bg-surface-alpha"}),(0,t.jsx)("div",{className:"h-4 rounded-xs bg-surface-alpha"}),(0,t.jsx)("div",{className:"h-4 rounded-xs bg-surface-alpha"})]}),(0,t.jsxs)("div",{className:"rounded-xs bg-surface-200 p-2",children:[(0,t.jsx)("div",{className:"mb-2 h-2 w-20 rounded-xs bg-surface-alpha-strong"}),(0,t.jsx)("div",{className:"flex h-16 items-end gap-1",children:Array.from({length:16}).map((e,r)=>(0,t.jsx)("span",{className:"flex-1 rounded-t-xs bg-success-500/70",style:{height:`${24+7*r%36}px`}},r))})]})]})})}function D({content:e,assets:r,dismissible:n,onAssetError:i,onAssetLoad:a,onDismiss:s}){let o=r.find(t=>t.id===e.mediaAssetId)??r[0]??null,l=!!e.mediaAssetId;return(0,t.jsxs)("div",{className:j({withAsset:l}),children:[(0,t.jsxs)("div",{className:"flex items-center px-4 pt-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-9",children:[(0,t.jsx)(O,{}),(0,t.jsx)(C,{})]}),n&&(0,t.jsx)("div",{className:"ml-auto",children:(0,t.jsx)(H,{compact:!0,onDismiss:s})})]}),l?(0,t.jsx)("div",{className:"overflow-hidden px-4 pt-6",children:(0,t.jsx)(N,{asset:o,onAssetError:i,onAssetLoad:a})}):(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(M,{})]})}function U({announcement:e,content:r,trackCtaClicks:i}){let a=L(e,i),s=r.ctaLabel&&r.ctaHref,l=r.secondaryCtaLabel&&r.secondaryCtaHref;return s||l?(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[s&&(0,t.jsx)(o.Button,{asChild:!0,className:"h-8 w-full text-sm leading-[16.45px] tracking-[-0.14px]",size:"xs",variant:"inverse",children:(0,t.jsxs)(n.default,{href:r.ctaHref??"#",...R(r.ctaHref??"#"),onClick:()=>a({ctaType:"primary",ctaLabel:r.ctaLabel??"",ctaHref:r.ctaHref??""}),children:[r.ctaLabel,(0,t.jsx)(u.default,{})]})}),l&&(0,t.jsx)(o.Button,{asChild:!0,className:"h-8 w-full text-sm leading-[16.45px] tracking-[-0.14px]",size:"xs",variant:"default",children:(0,t.jsx)(n.default,{href:r.secondaryCtaHref??"#",...R(r.secondaryCtaHref??"#"),onClick:()=>a({ctaType:"secondary",ctaLabel:r.secondaryCtaLabel??"",ctaHref:r.secondaryCtaHref??""}),children:r.secondaryCtaLabel})})]}):null}function H({onDismiss:e,compact:r=!1,mode:n="banner"}){return e?(0,t.jsx)(o.Button,{type:"button",variant:"ghost",size:r&&"banner"===n?"icon-3xs":"icon-xs",className:(0,p.cn)(r&&"product"===n&&"size-7",r&&"product"===n&&A(),r&&"banner"===n&&"rounded-sm bg-neutral-1000/80 text-neutral-50 hover:bg-neutral-1000 hover:text-neutral-50 dark:bg-neutral-1000/80 dark:text-neutral-50 dark:hover:bg-neutral-1000 dark:hover:text-neutral-50 [&>svg]:text-current dark:[&>svg]:text-current"),"aria-label":"Dismiss announcement",onClick:e,children:(0,t.jsx)(c.default,{})}):null}function F({announcement:e,content:r,trackCtaClicks:n}){return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-6 p-4",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,t.jsx)("h3",{className:"font-heading text-[18px] leading-[21.6px] font-medium tracking-[-0.54px] text-content-strong",children:r.title}),r.body&&(0,t.jsx)("p",{className:"text-sm leading-[19.6px] font-medium tracking-[-0.28px] text-content-lighter",children:r.body})]}),(0,t.jsx)(U,{announcement:e,content:r,trackCtaClicks:n})]})}function B({announcement:e,onDismiss:r,trackCtaClicks:i}
4){let a=e.content,o=L(e,i),[c,u]=(0,s.useState)(!0),d=(0,s.useCallback)(()=>{u(!1)},[]),h=(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2 leading-[18px] text-balance",children:[(0,t.jsx)(x,{className:S()}),(0,t.jsx)("span",{className:"wrap-break-word",children:a.title}),(0,t.jsx)(w,{className:S()})]});return(0,t.jsx)(l.Collapsible,{open:c,children:(0,t.jsx)(l.CollapsibleContent,{onExitComplete:r,children:(0,t.jsxs)("div",{className:(0,p.cn)(k({variantKey:e.variantKey}),E()),children:[a.ctaHref?(0,t.jsx)(n.default,{href:a.ctaHref,className:"relative z-10 w-full max-w-full",...R(a.ctaHref),onClick:()=>o({ctaType:"banner",ctaLabel:a.title,ctaHref:a.ctaHref??""}),children:h}):(0,t.jsx)("p",{className:"relative z-10 w-full max-w-full",children:h}),e.dismissible&&(0,t.jsx)("div",{className:"absolute top-1/2 right-1 z-20 -translate-y-1/2",children:(0,t.jsx)(H,{compact:!0,mode:"product",onDismiss:d})})]})})})}function V({announcement:e,onAssetError:r,onAssetLoad:n,onDismiss:i,trackCtaClicks:a}){let o=e.content,[l,c]=(0,s.useState)(!0),u=(0,s.useCallback)(()=>{i?i():c(!1)},[i]);return l?(0,t.jsxs)("div",{className:(0,p.cn)(_({variantKey:e.variantKey}),P()),children:[(0,t.jsx)("div",{className:I({depth:"back"})}),(0,t.jsx)("div",{className:I({depth:"middle"})}),(0,t.jsxs)("div",{className:T(),children:[(0,t.jsx)(D,{content:o,assets:e.assets,dismissible:e.dismissible,onAssetError:r,onAssetLoad:n,onDismiss:u}),(0,t.jsx)(F,{announcement:e,content:o,trackCtaClicks:a})]})]}):null}let $=[{placement:"top_banner",templateKey:"product_banner",variantKey:"blue",label:"Product banner / Blue",description:"Compact product launch bar with the blue dark theme.",fields:["title","ctaHref"],media:null,preview:{width:1440,height:32},component:B},{placement:"top_banner",templateKey:"product_banner",variantKey:"purple",label:"Product banner / Purple",description:"Compact product launch bar with the purple dark theme.",fields:["title","ctaHref"],media:null,preview:{width:1440,height:32},component:B},{placement:"top_banner",templateKey:"product_banner",variantKey:"green",label:"Product banner / Green",description:"Compact product launch bar with the green dark theme.",fields:["title","ctaHref"],media:null,preview:{width:1440,height:32},component:B},{placement:"top_banner",templateKey:"product_banner",variantKey:"cyan",label:"Product banner / Cyan",description:"Compact product launch bar with the blue light theme.",fields:["title","ctaHref"],media:null,preview:{width:1440,height:32},component:B},{placement:"top_banner",templateKey:"product_banner",variantKey:"lavender",label:"Product banner / Lavender",description:"Compact product launch bar with the purple light theme.",fields:["title","ctaHref"],media:null,preview:{width:1440,height:32},component:B},{placement:"top_banner",templateKey:"product_banner",variantKey:"yellow",label:"Product banner / Yellow",description:"Compact product launch bar with the green light theme.",fields:["title","ctaHref"],media:null,preview:{width:1440,height:32},component:B},{placement:"slide_in",templateKey:"spotlight_slide_in",variantKey:"blue",label:"Slide-in spotlight / Blue",description:"Left-side spotlight with simple or screenshot banner header.",fields:["title","body","ctaLabel","ctaHref","secondaryCtaLabel","secondaryCtaHref","mediaAssetId"],media:{required:!1,aspectRatio:"16:9",width:640,height:360},preview:{width:280,height:376},component:V},{placement:"slide_in",templateKey:"spotlight_slide_in",variantKey:"cyan",label:"Slide-in spotlight / Blue light",description:"Left-side spotlight with simple or screenshot banner header.",fields:["title","body","ctaLabel","ctaHref","secondaryCtaLabel","secondaryCtaHref","mediaAssetId"],media:{required:!1,aspectRatio:"16:9",width:640,height:360},preview:{width:280,height:376},component:V},{placement:"slide_in",templateKey:"spotlight_slide_in",variantKey:"red",label:"Slide-in spotlight / Red",description:"Left-side spotlight with simple or screenshot banner header.",fields:["title","body","ctaLabel","ctaHref","secondaryCtaLabel","secondaryCtaHref","mediaAssetId"],media:{required:!1,aspectRatio:"16:9",width:640,height:360},preview:{width:280,height:376},component:V},{placement:"slide_in",templateKey:"spotlight_slide_in",variantKey:"purple",label:"Slide-in spotlight / Purple",description:"Left-side spotlight with simple or screenshot banner header.",fields:["title","body","ctaLabel","ctaHref","secondaryCtaLabel","secondaryCtaHref","mediaAssetId"],media:{required:!1,aspectRatio:"16:9",width:640,height:360},preview:{width:280,height:376},component:V}];e.s(["renderAnnouncementTemplate",0,function(e,r,n={}){var i,a,s;let o=(i=e.placement,a=e.templateKey,s=e.variantKey,$.find(e=>e.placement===i&&e.templateKey===a&&e.variantKey===s));if(!o)return null;let l=o.component;return(0,t.jsx)(l,{announcement:e,onDismiss:r,onAssetError:n.onAssetError,onAssetLoad:n.onAssetLoad,trackCtaClicks:n.trackCtaClicks??!0})}],602939)},296006,e=>{"use strict";var t=e.i(123432);e.s(["BreadcrumbSetter",0,function({items:e}){return(0,t.useBreadcrumbs)(e),null}])},347655,e=>{"use strict";
4var t=e.i(843476),r=e.i(152088),n=e.i(655200);e.s(["DashboardPageContent",0,function({children:e,className:i,padding:a="auto"}){let s="full-screen"===a||"full-screen-y"===a;return(0,t.jsx)(n.Container,{className:(0,r.cn)("full-screen-y"===a&&"py-6",i),padding:s?"none":a,fullScreen:!!s||"none"!==a&&void 0,children:e})}])},720845,e=>{"use strict";e.i(296006),e.i(123432),e.i(347655),e.i(872042),e.s([])},872042,e=>{"use strict";var t=e.i(843476),r=e.i(266027),n=e.i(618566),i=e.i(82207),a=e.i(134393),s=e.i(70924),o=e.i(817954),l=e.i(881714),c=e.i(655200),u=e.i(101815),d=e.i(113141),h=e.i(123432),p=e.i(941671),f=e.i(962950),m=e.i(55974),g=e.i(451816),y=e.i(482248),v=e.i(500137);function C({children:e}){let b=(0,n.usePathname)(),x=(0,o.useRestClient)(),w=(0,a.useUserAuth)(),{currentAccount:_}=w||{},{bannerHeight:k}=(0,u.useHeaderHeight)(),E=(0,h.useDashboardNavOptional)(),S=E?.hideFooter??!1,A=E?.flushFooter??(0,p.getNavConfigForRoute)(b).flushFooter,j=E?.compactNavigation??!1,P="/dashboard/admin"===b||(b?.startsWith("/dashboard/admin/")??!1),T="/dashboard/learn"===b||(b?.startsWith("/dashboard/learn/")??!1),I=P||T&&(w?.adminRoles?.length??0)>0,R=(0,p.isAgentChromeRoute)(b)&&!E?.showMobileNavigation,L=!!w?.isSystemAdmin&&(0,s.isAdminOriginPath)(b??""),{data:O}=(0,r.useQuery)({queryKey:["user","locked"],queryFn:async()=>{let e=await x.billing.getUserDetails(),t=!0===e.is_locked&&e.lock_reason&&-1===e.lock_reason.toLowerCase().indexOf("exhausted balance");return t?{isLocked:t,reason:e.lock_reason??"Your account has been locked. Please contact us for more information."}:{isLocked:!1,reason:void 0}},enabled:_?.is_locked===!0,gcTime:12e4});return(0,t.jsx)(v.LandingThemeProvider,{children:(0,t.jsx)(y.ScrollMotionProvider,{forceCompact:j,stickyStartY:k,children:(0,t.jsx)(g.NavigationMotionSurface,{bannerHeight:k,hideAgentNavigationOnMobile:R,forceCompact:j,children:(0,t.jsxs)("div",{className:"drawer-content flex w-full flex-col",children:[(0,t.jsxs)(g.NavigationHeader,{hideOnMobile:R,children:[(0,t.jsx)(m.default,{hideAccountDropdown:L}),(0,t.jsx)("div",{className:"dashboard-nav-menu-layer",children:I?(0,t.jsx)(l.AdminNavMenu,{}):(0,t.jsx)(f.NavMenu,{})})]}),(0,t.jsxs)("div",{className:"flex min-h-[min(80vh,calc(100dvh-var(--nav-reserved-height)-var(--banner-height)))] flex-1 flex-col",children:[O&&O.isLocked&&(0,t.jsx)(c.Container,{padding:"auto",className:"mx-auto max-w-full md:max-w-[70%] lg:max-w-[50%]",children:(0,t.jsx)(i.default,{type:"warning",title:"Your account has been locked",children:O.reason})}),(0,t.jsx)("main",{className:"flex flex-1 flex-col",children:e})]}),!S&&(0,t.jsx)(d.default,{className:A?"mt-0 lg:mt-0":void 0})]})})})})}e.s(["NavigationShell",0,function({children:e}){let r=(0,n.usePathname)();return(0,p.isNavigationShellRoute)(r)?(0,t.jsx)(h.DashboardNavProvider,{children:(0,t.jsx)(C,{children:e})}):(0,t.jsx)(t.Fragment,{children:e})}])},82207,e=>{"use strict";var t=e.i(843476),r=e.i(856511);function n({children:e,title:i,type:a="warning"}){return(0,t.jsxs)(r.Alert,{type:a,variant:"alpha",className:"lg:lg-4 my-2 md:my-3",children:[(0,t.jsx)(r.AlertTitle,{className:"text-lg",children:i}),(0,t.jsx)(r.AlertDescription,{className:"text-sm text-current",children:e})]})}n.displayName="AlertBox",e.s(["default",0,n])},377210,141346,e=>{"use strict";function t(e){let t=e+0x6d2b79f5;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/0x100000000}function r(e,t,r){return Math.min(r,Math.max(t,e))}function n(e){let t=0x811c9dc5;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,0x1000193);return t>>>0}function i(e){return Number(e.toFixed(6)).toString()}function a(e=48){let t=Math.max(12,Math.min(96,Math.round(e)));return Array.from({length:t},(e,r)=>{let n=-Math.PI/2+r/t*Math.PI*2,i=Math.cos(n),a=Math.sin(n),s=50/Math.max(Math.abs(i),Math.abs(a));return{x:50+i*s,y:50+a*s}})}function s(e,t,n){let i=r(n,0,1);return 0===t.length?e:e.map((e,r)=>{let n=t[r%t.length];return{x:e.x+(n.x-e.x)*i,y:e.y+(n.y-e.y)*i}})}e.s(["MAX_CLUSTER_WORLDS",0,15,"applyOrbitImpulse",0,function(e,t,r=.045){let n=Math.max(0,r);return{...e,velocity:Math.max(-n,Math.min(n,e.velocity+t))}},"decayOrbit",0,function(e,t,r,n=1450){let i=Math.max(0,Math.min(t,40)),a=1-Math.exp(-i/n),s=e.velocity+(r-e.velocity)*a;return{angle:e.angle+s*i,velocity:s}},"detailOrbitRotation",0,function(e,t,r,n){return r<=1?n-t:n-(t+360/r*e)},"orbitPoints",0,function(e,r,n=.32){if(e<=0)return[];let i=Math.min(15,Math.floor(e)),a=Math.max(0,Math.min(n,.48)),s=360/i,o=1===i?-90:-90+(t(r)-.5)*s;return Array.from({length:i},(e,t)=>{let r=o+t*s,n=r*Math.PI/180;return{x:.5+Math.cos(n)*a,y:.5+Math.sin(n)*a,angle:r,scale:1}})},"seededUnit",0,t,"wrapIndex",0,function(e,t){return t<=0?0:(e%t+t)%t}],141346),e.s(["DEFAULT_EDGE_FOCUS",0,{t:1,angle:0},"FAL_WORLDS_MARK_LAYOUT_ID",0,"fal-worlds-mark","SHARED_LAYOUT_HOLD_S",0,.36,"SHARED_LAYOUT_TRANSITION",0,{type:"tween",duration:.36,ease:[.23,1,.32,1]},"applyFocusedContour",0,function(e,t,n){let i=r(n,0,1);return i<=0?t:i>=1?e:s(t,e,i)},"blendBlobContour",0,s,"blobAnimationProgress",0,function(e,t){let r=Math.max(.001,t),n=2*r,i=(e%n+n)%n/r;return i<=1?i:2-i},"blobAnimationTimeMs",0,function(e,r,i){let a=1e3*Math.max(.001,r)*2;return((i+t(n(e))*a)%a+a)%a},"blobContourPath",0,function(e){if(e.length<3)return"";let t=e.map(e=>({x:e.x/100,y:e.y/100}
4)),r=e=>t[(e%t.length+t.length)%t.length],n=r(-1),a=r(0),s=r(1),o={x:(n.x+4*a.x+s.x)/6,y:(n.y+4*a.y+s.y)/6},l=[`M ${i(o.x)} ${i(o.y)}`];return t.forEach((e,t)=>{let n=r(t+1),a=r(t+2),s={x:(2*e.x+n.x)/3,y:(2*e.y+n.y)/3},o={x:(e.x+2*n.x)/3,y:(e.y+2*n.y)/3},c={x:(e.x+4*n.x+a.x)/6,y:(e.y+4*n.y+a.y)/6};l.push(`C ${i(s.x)} ${i(s.y)} ${i(o.x)} ${i(o.y)} ${i(c.x)} ${i(c.y)}`)}),l.push("Z"),l.join(" ")},"createCircleContour",0,function(e=48){let t=Math.max(12,Math.min(96,Math.round(e)));return Array.from({length:t},(e,r)=>{let n=-Math.PI/2+r/t*Math.PI*2;return{x:50+49.5*Math.cos(n),y:50+49.5*Math.sin(n)}})},"createFrameContour",0,a,"createInterferenceContourFrames",0,function(e,i){var a;let s=n(e),o=Math.max(12,Math.min(96,Math.round(i.pointCount))),l=r(i.dispersion,0,30),c=r(i.roughness,0,1),u=r(i.wobble,0,30),d=t(s)*Math.PI*2,h=t(s+29)*Math.PI*2,p=t(s+71)*Math.PI*2,f=5+Math.round(8*c);return[(a=e=>{let t=e/4*Math.PI*2;return function(e){let t=0;for(let r of e){let e=Math.hypot(r.x-50,r.y-50);e>t&&(t=e)}if(t<=49.5+1e-9||0===t)return e;let r=49.5/t;return e.map(e=>({x:50+(e.x-50)*r,y:50+(e.y-50)*r}))}(Array.from({length:o},(e,r)=>{let n=-Math.PI/2+r/o*Math.PI*2,i=49.5+l*((.65*Math.sin(2*n+d)+.35*Math.sin(3*n+h))*(1-.72*c)+(.6*Math.sin(n*f+p)+.4*Math.sin(n*(f+3)-h))*c*.72)+u*(.6*Math.sin(2*n+d+t)+.4*Math.sin(n*f+p-.7*t));return{x:50+Math.cos(n)*i,y:50+Math.sin(n)*i}}))})(0),a(1),a(2),a(3)]},"focusAmount",0,function(e,t,n){if(!n.enabled)return 1;let i=Math.max(t,1),a=Math.max(0,n.innerRadius)*i,s=Math.max(a+1e-4,n.outerRadius*i),o=r((e-a)/(s-a),0,1);return o**Math.max(.5,n.power)},"focusSizeScale",0,function(e,t){return 1-r(t,0,.8)*r(e,0,1)},"orbitPointOnScreen",0,function(e,t,r,n,i,a,s,o){let l=s*Math.PI/180,c=(i-.5)*r,u=(a-.5)*n,d=Math.cos(l),h=Math.sin(l);return{x:e+r/2+(c*d-u*h)*o,y:t+n/2+(c*h+u*d)*o}},"portalDepthScale",0,function(e,t){return 1+(2*r(e,0,1)-1)*r(t,0,.4)},"portalLayoutId",0,function(e,t){return`world-${e}-${t}`},"sampleBlobContourFrames",0,function(e,t){let n=r(t,0,1);if(0===n)return e[0];if(1===n)return e[e.length-1];let i=n*(e.length-1),a=Math.floor(i),o=Math.min(a+1,e.length-1);return s(e[a],e[o],i-a)},"transitionContourProfile",0,function(e,t,r,n){if("hover"===t){let t=e.normalSnapshot??{contour:n,time:r};return{state:{...e,activeProfile:"hover",normalSnapshot:t},target:{contour:null,time:e.hoverTime}}}return{state:{...e,activeProfile:"normal",hoverTime:"hover"===e.activeProfile?r:e.hoverTime},target:{contour:e.normalSnapshot?.contour??null,time:e.normalSnapshot?.time??e.normalTime}}},"viewportContourPath",0,function(){let e=a().map(({x:e,y:t})=>({x:e/100,y:t/100})),t=e=>`${i(e.x)} ${i(e.y)}`;return[`M ${t(e[0])}`,...e.map((r,n)=>{let i=e[(n+1)%e.length];return`C ${t(r)} ${t(i)} ${t(i)}`}),"Z"].join(" ")}],377210)},802191,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(648598);let i=(0,r.createContext)(void 0);function a(e){if("UTC"===e)return"UTC";try{let t=new Date,r=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"short"}).formatToParts(t).find(e=>"timeZoneName"===e.type);return r?.value||e}catch(t){return console.warn("Failed to get timezone display name",t),e}}e.s(["TimezoneProvider",0,function({children:e,timezone:s,onTimezoneChange:o}){let{update:l}=(0,n.useUserPreferences)(),c=(0,r.useMemo)(()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return"UTC"}},[]),u=(0,r.useCallback)(e=>{o?.(e),l({timezone:e})},[o,l]),d=a(s),h="UTC"===s,p=(0,r.useMemo)(()=>({timezone:s,displayName:d,isUTC:h,localTimezone:c,setTimezone:u}),[s,d,h,c,u]);return(0,t.jsx)(i.Provider,{value:p,children:e})},"useTimezone",0,function(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useTimezone must be used within a TimezoneProvider");return e},"useTimezoneOptional",0,function(){let e=(0,r.useContext)(i);if(void 0!==e)return e;let t=Intl.DateTimeFormat().resolvedOptions().timeZone;return{timezone:t,displayName:a(t),isUTC:"UTC"===t,localTimezone:t,setTimezone:()=>{}}}])},514163,e=>{"use strict";let t=(0,e.i(408155).createStore)(()=>({queue:[],open:!1,pending:!1})),r=0,n=null;function i(e){let r=t.getState().queue[0];r&&(r.resolve(e),t.setState({open:!1,pending:!1}),n&&clearTimeout(n),n=setTimeout(()=>{n=null;let e=t.getState().queue.slice(1);t.setState({queue:e,open:e.length>0,pending:!1})},200))}async function a(){let{queue:e,open:r,pending:n}=t.getState(),a=e[0];if(!a||!r||n)return;let{onConfirm:s}=a.options;if(!s)return void i(!0);
4t.setState({pending:!0});try{await s()}catch(e){t.setState({pending:!1}),console.error("confirm(): onConfirm rejected, dialog stays open",e);return}i(!0)}e.s(["acceptActiveConfirm",0,a,"confirm",0,function(e){return new Promise(n=>{let i={id:r++,options:e,resolve:n},{queue:a}=t.getState();t.setState({queue:[...a,i],...0===a.length?{open:!0,pending:!1}:null})})},"confirmStore",0,t,"dismissActiveConfirm",0,function(){let{open:e,pending:r}=t.getState();e&&!r&&i(!1)}])},784911,e=>{"use strict";var t=e.i(843476);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16","aria-hidden":"true",role:"img",...e,children:(0,t.jsx)("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeLinecap:"square",strokeWidth:1.5})})])},456935,e=>{"use strict";var t=e.i(843476),r=e.i(152088);function n(e,t){let r=t-1,n=Math.max(...e.map(e=>e.row+(r-e.col)))+2;return e=>1-(e.row+(r-e.col))/n}function i(e){return{"--pixel-phase":e}}e.s(["PixelDecoration",0,function({pattern:e,cellSize:a=3,baseClassName:s="fill-current",accentClassName:o="fill-current",cycleSeconds:l,cycleOffset:c=0,className:u}){let d=e.cols*a,h=e.rows*a,p=n(e.pixels,e.cols),f={...l?{"--pixel-cycle-duration":`${l}s`}:{},...c?{"--pixel-cycle-offset":`${c}s`}:{}};return(0,t.jsx)("svg",{width:d,height:h,viewBox:`0 0 ${d} ${h}`,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:(0,r.cn)("shrink-0",u),style:f,children:e.pixels.map(e=>(0,t.jsx)("rect",{x:e.col*a,y:e.row*a,width:a,height:a,className:(0,r.cn)("pixel-decoration-cell","accent"===e.tone?o:s),style:i(p(e))},`${e.col}-${e.row}`))})},"makePixelScanPhase",0,n,"pixelCellStyle",0,i])},244966,e=>{"use strict";function t({dataGrailReady:e,performanceAllowed:r,storedConsentGranted:n=!1}){return r?"granted":e?"rejected":n?"granted":"pending"}function r(e){try{let t=new URL(e);return t.search="",t.hash="",t.toString()}catch{return e.split(/[?#]/,1)[0]??e}}e.s(["applyPostHogConsentPolicy",0,function(e,t){var n;let i;return t&&"pending"!==e?"granted"===e?t:"$pageview"!==t.event?null:(n=t,"string"==typeof(i=n.properties?.$current_url)&&n.properties&&(n.properties.$current_url=r(i)),t):null},"resolveConsentModeNow",0,function({dataGrailReady:e,performanceAllowed:r,initialized:n,getExplicitConsentStatus:i}){return t({dataGrailReady:e,performanceAllowed:r,storedConsentGranted:n&&"granted"===i()})},"resolvePostHogConsentMode",0,t,"resolvePostHogConsentModeFromStatus",0,function(e){return"granted"===e?"granted":"denied"===e?"rejected":"pending"},"sanitizePostHogPageviewUrl",0,r])},528020,e=>{"use strict";var t=e.i(271645),r=e.i(779851);function n(e){return(0,t.useSyncExternalStore)(r.subscribeToDataGrailConsent,()=>(0,r.isDataGrailCategoryEnabled)(e),()=>e===r.DATAGRAIL_CATEGORIES.essential)}e.s(["useDataGrailReady",0,function(){return(0,t.useSyncExternalStore)(r.subscribeToDataGrailConsent,()=>(0,r.isDataGrailReady)(),()=>!1)},"useMarketingConsent",0,function(){return n(r.DATAGRAIL_CATEGORIES.marketing)},"usePerformanceConsent",0,function(){return n(r.DATAGRAIL_CATEGORIES.performance)}])},982041,e=>{"use strict";let t={label:"Sign up",href:"/login"},r={kind:"reload",label:"Refresh page"};e.s(["FREE_TIER_ERROR_COPY",0,{budget_exhausted:{title:"You've used today's free generations",body:"Free tier is limited per session. Sign up to keep generating with your own account.",cta:t},daily_limit_reached:{title:"Daily free limit reached",body:"This network has used today's free quota. Sign up to use your own account.",cta:t},rate_limited:{title:"Slow down a moment",body:"Too many requests in a short window. Try again in a minute.",retry:{kind:"reset",label:"Try again"}},verify_rate_limited:{title:"Lots of activity from your network",body:"Many requests from your IP. Try again in a few minutes, or sign up to bypass shared-network limits.",cta:t},bot_detected:{title:"Couldn't verify automatically",body:"Refresh the page and try again. If it keeps happening, try a different browser or network.",retry:r},csrf_failed:{title:"Refresh required",body:"This page expired in the background. Refresh and try again.",retry:r},captcha_required:{title:"Quick check needed",body:"Each free generation starts with a captcha check. Try again and complete the check if one appears.",retry:{kind:"reset",label:"Try again"}},verification_failed:{title:"Verification didn't go through",body:"Refresh the page and try again. If it keeps failing, try a different browser or network.",retry:r}}])},408155,e=>{"use strict";let t=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>s,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{r.clear()}},s=t=e(n,i,a);return a};e.s(["createStore",0,e=>e?t(e):t])}]);
5
6//# chunkId=01a0f61f-c327-7da3-b783-803142f11f99

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.