1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63185],{67279:function(e,t,n){Promise.resolve().then(n.t.bind(n,58877,23)),Promise.resolve().then(n.bind(n,31985)),Promise.resolve().then(n.bind(n,71142)),Promise.resolve().then(n.bind(n,73953)),Promise.resolve().then(n.t.bind(n,84080,23))},31985:function(e,t,n){"use strict";n.d(t,{Providers:function(){return a}});var o=n(57437),r=n(30998),i=n(79512);function a(e){let{children:t}=e;return(0,o.jsx)(r.SessionProvider,{children:(0,o.jsx)(i.f,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:t})})}},71142:function(e,t,n){"use strict";n.d(t,{VisitorIdSync:function(){return a}});var o=n(2265),r=n(38472),i=n(82554);function a(e){let{locale:t}=e;return(0,o.useEffect)((()=>{(async()=>{await new Promise((e=>setTimeout(e,0)));const e=document.documentElement.lang||t||"en";let n=e;var o;"en"===e&&"undefined"!==typeof navigator&&(n=navigator.language||(null===(o=navigator.languages)||void 0===o?void 0:o[0])||"en");try{var a;let t=localStorage.getItem("cockatoo_visitor_id");if(!t){var c;const o=null===(c=document.cookie.split("; ").find((e=>e.startsWith("cockatoo_visitor_id="))))||void 0===c?void 0:c.split("=")[1];o?(t=o,localStorage.setItem("cockatoo_visitor_id",t)):(t=crypto.randomUUID(),await r.Z.post("".concat("https://hello.cockatoocloud.com","/api/analytics/visitor"),{visitor_id:t,page_url:window.location.href,locale:e,browser_language:n}),localStorage.setItem("cockatoo_visitor_id",t),(0,i.Xd)("visitor_created",{visitorId:t,locale:e,browserLanguage:n,source:{surface:"landing",component:"VisitorIdSync",trigger:"first_visit"},properties:{page_url:window.location.href}}))}(null===(a=document.cookie.split("; ").find((e=>e.startsWith("cockatoo_visitor_id="))))||void 0===a?void 0:a.split("=")[1])!==t&&(document.cookie="cockatoo_visitor_id=".concat(t,"; path=/; max-age=").concat(31536e3,"; SameSite=Lax")),sessionStorage.getItem("cockatoo_revenue_session_started")||(sessionStorage.setItem("cockatoo_revenue_session_started","true"),(0,i.Xd)("app_session_started",{visitorId:t,locale:e,browserLanguage:n,source:{surface:window.location.pathname.startsWith("/plans")?"pricing":"landing",component:"VisitorIdSync",trigger:"page_session"},properties:{page_url:window.location.href}}))}catch(s){console.error("Failed to initialize visitor ID:",s)}})()}),[t]),null}},82554:function(e,t,n){"use strict";n.d(t,{Dq:function(){return y},FV:function(){return a},Xd:function(){return p},dc:function(){return c},jj:function(){return l},ll:function(){return s}});const o="cockatoo_visitor_id",r="cockatoo_plans_entry_context";function i(e){var t;return"undefined"===typeof document?null:(null===(t=document.cookie.split("; ").find((t=>t.startsWith("".concat(e,"=")))))||void 0===t?void 0:t.split("=")[1])||null}function a(){try{return localStorage.getItem(o)||i(o)}catch(e){return i(o)}}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{sessionStorage.setItem(r,JSON.stringify({...e,recorded_at:(new Date).toISOString()}))}catch(t){}}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60;try{const t=sessionStorage.getItem(r);if(!t)return null;sessionStorage.removeItem(r);const n=JSON.parse(t),o=(null===n||void 0===n?void 0:n.recorded_at)?new Date(n.recorded_at):null;if(!o||Number.isNaN(o.getTime()))return null;return Date.now()-o.getTime()>60*e*1e3?null:n}catch(t){return null}}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.route||"".concat(window.location.pathname).concat(window.location.search);c({...e,route:n}),p("pricing_cta_clicked",{...t,source:v({surface:e.surface,component:e.component,trigger:e.trigger,...t.source}),properties:v({destination:"/plans",plans_entry_point:e.entry_point,plans_entry_route:n,...t.properties})})}function u(e){var t;return(null===(t=window.crypto)||void 0===t?void 0:t.randomUUID)?window.crypto.randomUUID():"".concat(e,"-").concat(Date.now(),"-").concat(Math.random().toString(36).slice(2))}function d(){const e=new URLSearchParams(window.location.search),t={};return["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid","msclkid"].forEach((n=>{const o=e.get(n);o&&(t[n]=o)})),t}function m(e){const t=e||"";return/iPhone|iPad|iPod/.test(t)?"iOS":/Android/.test(t)?"Android":/Mac OS X/.test(t)?"macOS":/Windows NT/.test(t)?"Windows":/Linux/.test(t)?"Linux":"Unknown"}function f(e){const t=e||"";return/iPad|Tablet|Android(?!.*Mobile)/i.test(t)?"tablet":/Mobi|iPhone|Android/i.test(t)?"mobile":"desktop"}function v(e){return!e||"object"!==typeof e||Array.isArray(e)?e:Object.fromEntries(Object.entries(e).filter((e=>{let[,t]=e;return void 0!==t&&null!==t})))}function h(){const e="https://hello.cockatoocloud.com";return"".concat(e,"/api/revenue-events/client")}function g(e){var t,n,o,r,i,a,c,s;if(e)return v({subscription:e.subscription,country:e.country,default_language:e.default_language||e.defaultLanguage,total_uploads:null!==(t=e.total_uploads)&&void 0!==t?t:e.totalUploads,monthly_uploads:null!==(n=e.monthly_uploads)&&void 0!==n?n:e.monthlyUploads,total_files_translated:null!==(r=null!==(o=e.total_files_translated)&&void 0!==o?o:e.totalFilesTranslated)&&void 0!==r?r:e.total_files_translated_count,ai_writer_daily_chats:null!==(i=e.ai_writer_daily_chats)&&void 0!==i?i:e.aiWriterDailyChats,monthly_time_seconds:null!==(a=e.monthly_time_seconds)&&void 0!==a?a:e.monthlyTimeSeconds,total_time_seconds:null!==(c=e.total_time_seconds)&&void 0!==c?c:e.totalTimeSeconds,total_bytes_stored:null!==(s=e.total_bytes_stored)&&void 0!==s?s:e.totalBytesStored})}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,o,r;const i=navigator.userAgent||"",c=function(e){const t=e||"",n=[["Edge",/Edg\/([\d.]+)/],["Chrome",/Chrome\/([\d.]+)/],["Firefox",/Firefox\/([\d.]+)/],["Safari",/Version\/([\d.]+).*Safari/],["iOS Safari",/Version\/([\d.]+).*Mobile.*Safari/]];for(const[o,r]of n){const e=t.match(r);if(e)return{browser:o,browser_version:e[1]}}return{browser:"Unknown",browser_version:null}}(i),s=t.visitorId||t.visitor_id||a(),l=t.userEmail||t.user_email||(null===(n=t.actor)||void 0===n?void 0:n.user_email),h=t.stripeCustomerId||t.stripe_customer_id||(null===(o=t.actor)||void 0===o?void 0:o.stripe_customer_id);if(!s&&!l&&!h)return null;const _=v({app:"web",route:window.location.pathname+window.location.search,locale:t.locale||document.documentElement.lang||void 0,browser_language:t.browserLanguage||navigator.language||(null===(r=navigator.languages)||void 0===r?void 0:r[0]),referrer:document.referrer||void 0,utm:d(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,device_type:f(i),browser:c.browser,browser_version:c.browser_version,os:m(i),user_agent:i,...t.source});return v({event_id:t.eventId||t.event_id||u(e),event_name:e,event_version:1,occurred_at:t.occurredAt||t.occurred_at||(new Date).toISOString(),actor:v({visitor_id:s,user_email:l,stripe_customer_id:h,...t.actor}),source:_,account:g(t.account),entity:v(t.entity),job:v(t.job),commerce:v(t.commerce),properties:v(t.properties)})}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{const r=_(e,t);if(!r)return;const i=t.token||t.authToken||n.token,a={"Content-Type":"application/json"};i&&(a.Authorization="Bearer ".concat(i));const c=h();if(!c)return;const s=JSON.stringify(r);var o;fetch(c,{method:"POST",headers:a,body:s,keepalive:null!==(o=n.keepalive)&&void 0!==o?o:s.length<6e4}).catch((()=>{}))}catch(r){}}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{const n=_(e,t);if(!n)return;const o=h();if(!o)return;const r=JSON.stringify(n);if(navigator.sendBeacon){const e=new Blob([r],{type:"application/json"});if(navigator.sendBeacon(o,e))return}p(e,t,{keepalive:!0})}catch(n){}}},49189:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return o},requestIdleCallback:function(){return n}});const n="undefined"!==typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},o="undefined"!==typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58877:function(){},73953:function(e,t,n){"use strict";n.d(t,{default:function(){return i}});var o=n(92756),r=n(57437);function i(e){let{locale:t,...n}=e;if(!t)throw new Error(void 0);return(0,r.jsx)(o.Pj,{locale:t,...n})}},79512:function(e,t,n){"use strict";n.d(t,{F:function(){return l},f:function(){return u}});var o=n(2265),r=["light","dark"],i="(prefers-color-scheme: dark)",a="undefined"==typeof window,c=o.createContext(void 0),s={setTheme:e=>{},themes:[]},l=()=>{var e;return null!=(e=o.useContext(c))?e:s},u=e=>o.useContext(c)?e.children:o.createElement(m,{...e}),d=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:a=!0,enableColorScheme:s=!0,storageKey:l="theme",themes:u=d,defaultTheme:m=(a?"system":"light"),attribute:_="data-theme",value:p,children:y,nonce:w}=e,[b,S]=o.useState((()=>v(l,m))),[k,I]=o.useState((()=>v(l))),T=p?Object.values(p):u,C=o.useCallback((e=>{let t=e;if(!t)return;"system"===e&&a&&(t=g());let o=p?p[t]:t,i=n?h():null,c=document.documentElement;if("class"===_?(c.classList.remove(...T),o&&c.classList.add(o)):o?c.setAttribute(_,o):c.removeAttribute(_),s){let e=r.includes(m)?m:null,n=r.includes(t)?t:e;c.style.colorScheme=n}null==i||i()}),[]),E=o.useCallback((e=>{let t="function"==typeof e?e(e):e;S(t);try{localStorage.setItem(l,t)}catch(n){}}),[t]),O=o.useCallback((e=>{let n=g(e);I(n),"system"===b&&a&&!t&&C("system")}),[b,t]);o.useEffect((()=>{let e=window.matchMedia(i);return e.addListener(O),O(e),()=>e.removeListener(O)}),[O]),o.useEffect((()=>{let e=e=>{if(e.key!==l)return;let t=e.newValue||m;E(t)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[E]),o.useEffect((()=>{C(null!=t?t:b)}),[t,b]);let j=o.useMemo((()=>({theme:b,setTheme:E,forcedTheme:t,resolvedTheme:"system"===b?k:b,themes:a?[...u,"system"]:u,systemTheme:a?k:void 0})),[b,E,t,k,a,u]);return o.createElement(c.Provider,{value:j},o.createElement(f,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:a,enableColorScheme:s,storageKey:l,themes:u,defaultTheme:m,attribute:_,value:p,children:y,attrs:T,nonce:w}),y)},f=o.memo((e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:c,enableColorScheme:s,defaultTheme:l,value:u,attrs:d,nonce:m}=e,f="system"===l,v="class"===a?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map((e=>"'".concat(e,"'"))).join(","),")"),";"):"var d=document.documentElement,n='".concat(a,"',s='setAttribute';"),h=s?r.includes(l)&&l?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(l,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=u?u[e]:e,i=t?e+"|| ''":"'".concat(o,"'"),c="";return s&&n&&!t&&r.includes(e)&&(c+="d.style.colorScheme = '".concat(e,"';")),"class"===a?c+=t||o?"c.add(".concat(i,")"):"null":o&&(c+="d[s](n,".concat(i,")")),c},_=t?"!function(){".concat(v).concat(g(t),"}()"):c?"!function(){try{".concat(v,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(f,")){var t='").concat(i,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(g("dark"),"}else{").concat(g("light"),"}}else if(e){").concat(u?"var x=".concat(JSON.stringify(u),";"):"").concat(g(u?"x[e]":"e",!0),"}").concat(f?"":"else{"+g(l,!1,!1)+"}").concat(h,"}catch(e){}}()"):"!function(){try{".concat(v,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(u?"var x=".concat(JSON.stringify(u),";"):"").concat(g(u?"x[e]":"e",!0),"}
1else{").concat(g(l,!1,!1),";}").concat(h,"}catch(t){}}();");return o.createElement("script",{nonce:m,dangerouslySetInnerHTML:{__html:_}})})),v=(e,t)=>{if(a)return;let n;try{n=localStorage.getItem(e)||void 0}catch(o){}return n||t},h=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout((()=>{document.head.removeChild(e)}),1)}},g=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")}},function(e){e.O(0,[10404,30998,92756,86300,38472,5223,92971,47023,1744],(function(){return t=67279,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.