PageSourceSearch

https://askyourvideo.io/_next/static/chunks/24751bfcb9894bc2.js

js askyourvideo.io collected 2026-10-02 01:57:41 UTC 43,475 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,997837,e=>{"use strict";var t=e.i(879994);function r(e){return{onFetch:(r,s)=>{let i=r.options,a=r.fetchOptions?.meta?.fetchMore?.direction,l=r.state.data?.pages||[],c=r.state.data?.pageParams||[],u={pages:[],pageParams:[]},d=0,f=async()=>{let s=!1,f=(0,t.ensureQueryFn)(r.options,r.fetchOptions),p=async(e,n,o)=>{let i;if(s)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let a=(Object.defineProperty(i={client:r.client,queryKey:r.queryKey,pageParam:n,direction:o?"backward":"forward",meta:r.options.meta},"signal",{enumerable:!0,get:()=>(r.signal.aborted?s=!0:r.signal.addEventListener("abort",()=>{s=!0}),r.signal)}),i),l=await f(a),{maxPages:c}=r.options,u=o?t.addToStart:t.addToEnd;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,n,c)}};if(a&&l.length){let e="backward"===a,t={pages:l,pageParams:c},r=(e?o:n)(i,t);u=await p(t,r,e)}else{let t=e??l.length;do{let e=0===d?c[0]??i.initialPageParam:n(i,u);if(d>0&&null==e)break;u=await p(u,e),d++}while(d<t)}return u};r.options.persister?r.fetchFn=()=>r.options.persister?.(f,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s):r.fetchFn=f}}}function n(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function o(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function s(e,t){return!!t&&null!=n(e,t)}function i(e,t){return!!t&&!!e.getPreviousPageParam&&null!=o(e,t)}e.s(["hasNextPage",()=>s,"hasPreviousPage",()=>i,"infiniteQueryBehavior",()=>r])},685149,e=>{"use strict";e.s(["ANIMATION_DURATION",0,{SHAKE:400,AUTO_FOCUS_DELAY:500,TOAST_SUCCESS:2e3},"CHROME_EXTENSION",0,{STORE_URL:"https://chromewebstore.google.com/detail/ask-your-video/fighikklkhfalllkdbcibdmggcepllbc",DETECTION_ATTR:"data-ayv-extension",INSTALLED_STORAGE_KEY:"ayv_chrome_extension_installed",FROM_EXTENSION_PARAM:"from_extension"},"DEFAULT_PROMPT_SUGGESTIONS",0,[{id:"timestamps",icon:"⏱️",label:"Get timestamps",value:"List the key moments in this video with their timestamps so I can jump to specific parts.",description:"Get timestamped links to key moments"},{id:"summary",icon:"🧠",label:"5-bullet summary",value:"Summarize this video in five concise bullet points.",description:"Summarize this video in under five bullet points"},{id:"arguments",icon:"🔎",label:"Main arguments",value:"What are the main arguments made in this video?",description:"List the main takeaways with short explanations"},{id:"takeaways",icon:"💎",label:"Key takeaways",value:"What are the key takeaways and main lessons from this video?",description:"Extract the key takeaways and main lessons"}],"DEFAULT_SEND_ICON",0,"plane","PWA_INSTALL",0,{DISMISSED_STORAGE_KEY:"ayv_pwa_install_dismissed",INSTALL_TRACKED_KEY:"ayv_pwa_install_tracked"},"ROUTES",0,{BILLING:"/settings?tab=plans"},"THINKING_MESSAGES",0,["Scanning the video for key moments...","Reviewing the footage...","Analyzing the content...","Finding the answer in the video...","Processing your question..."],"YOUTUBE_HELP",0,{STORAGE_KEY:"ayv_youtube_help_seen",TITLE:"How to copy a YouTube URL",MOBILE_STEPS:["Open YouTube app or website",'Tap the "Share" button under the video','Tap "Copy link"',"Paste it here"],DESKTOP_STEPS:["Open any YouTube video",'Click the "Share" button below the video','Click "Copy" button',"Paste it here"],VALID_FORMATS:["youtube.com/watch?v=VIDEO_ID","youtu.be/VIDEO_ID","m.youtube.com/watch?v=VIDEO_ID"],PASTE_HINT:"Ctrl+V or Cmd+V"}])},246417,e=>{"use strict";var t=e.i(898516),r=e.i(853741),n=e.i(399813),o=e.i(29744),s=e.i(727289),i=e.i(682310);function a(e){try{return(0,s.getErrorConfig)(e).title}catch{return"Error"}}function l(e){try{return(0,s.getErrorConfig)(e).message}catch{return(0,s.getFriendlyErrorMessage)(e)}}function c(e){try{return(0,s.getErrorConfig)(e).actions}catch{return["retry","home"]}}var u=e.i(747133),d=e.i(685149);function f({error:e,errorInfo:r,resetError:n}){let f=a(e),g=l(e),v=c(e),x=function(e){try{return(0,s.getErrorConfig)(e).severity}catch{return"error"}}(e),y=(0,i.isAuthenticationError)(e),b=(0,i.isNetworkError)(e),w=u.env.isDevelopment,_=e=>{switch(e){case"retry":n();break;case"home":window.location.href="/";break;case"reload":window.location.reload();break;case"billing":window.location.href=d.ROUTES.BILLING}};return(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-bg-0 p-6",children:(0,t.jsxs)("div",{className:"w-full max-w-md 
1space-y-6",children:[(0,t.jsx)("div",{className:"flex justify-center",children:y?(0,t.jsx)(m,{severity:x}):b?(0,t.jsx)(h,{severity:x}):(0,t.jsx)(p,{severity:x})}),(0,t.jsxs)("div",{className:"text-center space-y-2",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-text-1",children:f}),(0,t.jsx)("p",{className:"text-text-3",children:g})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[v.includes("retry")&&(0,t.jsx)("button",{onClick:()=>_("retry"),className:"w-full px-4 py-3 rounded-lg bg-accent text-white font-semibold hover:bg-accent/90 transition-colors focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",children:"Try Again"}),v.includes("home")&&(0,t.jsx)("button",{onClick:()=>_("home"),className:"w-full px-4 py-3 rounded-lg border border-border bg-bg-1 text-text-1 font-medium hover:bg-bg-2 transition-colors focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",children:"Go to Home"}),v.includes("reload")&&(0,t.jsx)("button",{onClick:()=>_("reload"),className:"w-full px-4 py-3 rounded-lg border border-border bg-bg-1 text-text-1 font-medium hover:bg-bg-2 transition-colors focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",children:"Reload Page"}),v.includes("billing")&&(0,t.jsx)("button",{onClick:()=>_("billing"),className:"w-full px-4 py-3 rounded-lg bg-accent text-white font-semibold hover:bg-accent/90 transition-colors focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",children:"Add Credits"}),v.includes("signin")&&(0,t.jsx)(o.default,{href:"/sign-in",children:(0,t.jsx)("button",{"data-testid":"sign-in-button",className:"w-full px-4 py-3 rounded-lg border border-border bg-bg-1 text-text-1 font-medium hover:bg-bg-2 transition-colors focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",children:"Sign In"})})]}),w&&(0,t.jsxs)("details",{className:"text-left mt-6",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-sm text-text-3 hover:text-text-2 font-medium mb-2",children:"Error Details (Dev Mode)"}),(0,t.jsx)("div",{className:"mt-2 p-4 rounded-lg bg-bg-2 border border-border overflow-auto",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-xs font-semibold text-text-2 mb-1",children:"Error:"}),(0,t.jsxs)("div",{className:"text-xs text-text-3",children:[e.name,": ",e.message]})]}),e.stack&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-xs font-semibold text-text-2 mb-1",children:"Stack Trace:"}),(0,t.jsx)("pre",{className:"text-xs text-text-3 whitespace-pre-wrap break-words",children:e.stack})]}),r?.componentStack&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-xs font-semibold text-text-2 mb-1",children:"Component Stack:"}),(0,t.jsx)("pre",{className:"text-xs text-text-3 whitespace-pre-wrap break-words",children:r.componentStack})]})]})})]})]})})}function p({severity:e}){return(0,t.jsx)("div",{className:`rounded-full ${"warning"===e?"bg-yellow-500/10":"bg-red-500/10"} p-4`,children:(0,t.jsx)("svg",{className:`h-12 w-12 ${"warning"===e?"text-yellow-400":"text-red-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}function m({severity:e}){return(0,t.jsx)("div",{className:`rounded-full ${"warning"===e?"bg-yellow-500/10":"bg-blue-500/10"} p-4`,children:(0,t.jsx)("svg",{className:`h-12 w-12 ${"warning"===e?"text-yellow-400":"text-blue-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})})}function h({severity:e}){return(0,t.jsx)("div",{className:`rounded-full ${"warning"===e?"bg-yellow-500/10":"bg-orange-500/10"} p-4`,children:(0,t.jsx)("svg",{className:`h-12 w-12 ${"warning"===e?"text-yellow-400":"text-orange-400"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0"})})})}function g({error:e,resetError:r}){let n=a(e),o=l(e),s=c(e),i=e=>{switch(e){case"retry":r();break;case"home":window.location.href="/";break;case"reload":window.location.reload();break;case"billing":window.location.href=d.ROUTES.BILLING}};return(0,t.jsx)("div",{className:"flex h-full min-h-[400px] items-center justify-center p-6",children:(0,t.jsxs)("div",{className:"max-w-md text-center space-y-6",children:[(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)("div",{className:"rounded-full bg-red-500/10 p-3",children:(0,t.jsx)("svg",{className:"h-8 w-8 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-text-1 mb-2",children:n}),(0,t.jsx)("p",{className:"text-text-3",children:o})]}),s.length>0&&(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[s.includes("retry")&&(0,t.jsx)("button",{onClick:()=>i("retry"),className:"px-4 py-2 rounded-lg bg-accent text-white font-medium hover:bg-accent/90 transition-colors focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",children:"Try Again"}),s.includes("home")&&(0,t.jsx)("button",{onClick:()=>i("home"),className:"px-4 py-2 rounded-lg border border-border bg-bg-1 text-text-1 font-medium hover:bg-bg-2 transition-colors focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",children:"Go Home"}),s.includes("reload")&&(0,t.jsx)("button",{onClick:()=>i("reload"),className:"px-4 py-2 rounded-lg border border-border bg-bg-1 text-text-1 font-medium hover:bg-bg-2 transition-colors focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",children:"Reload Page"}),s.includes("billing")&&(0,t.jsx)("button",{onClick:()=>i("billing"),className:"px-4 py-2 rounded-lg bg-accent text-white font-medium hover:bg-accent/90 transition-colors focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2",children:"Add Credits"})]})]})})}function v({error:e,resetError:r}){let n=a(e),o=l(e),s=(0,i.isRecoverableError)(e);return(0,t.jsx)("div",{className:"rounded-lg border border-red-500/40 bg-red-500/10 p-4",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("svg",{className:"h-5 w-5 text-red-400 flex-shrink-0 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h3",{className:"font-semibold text-red-200 mb-1",children:n}),(0,t.jsx)("p",{className:"text-sm text-red-300",children:o}),s&&(0,t.jsx)("button",{onClick:r,className:"mt-3 text-sm text-red-200 underline hover:text-red-100 focus:outline-none focus:ring-2 focus:ring-red-400 focus:ring-offset-2 focus:ring-offset-red-900 rounded",children:"Try again"})]})]})})}class x extends r.Component{constructor(e){super(e),this.state={error:null,errorInfo:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){"localhost"===window.location.hostname&&console.error("Error caught by boundary:",e,t),(0,n.safeCaptureException)(e,{contexts:{react:{componentStack:t.componentStack}},tags:{errorBoundary:!0,level:this.props.level||"component"}}),this.props.onError?.(e,t),this.setState({errorInfo:t})}resetError=()=>{this.setState({error:null,errorInfo:null})};render(){let{error:e,errorInfo:r}=this.state,{children:n,fallback:o,level:s="component"}=this.props;if(!e)return n;let i={error:e,errorInfo:r,resetError:this.resetError,level:s};if(o)return o(i);switch(s){case"app":return(0,t.jsx)(f,{error:e,errorInfo:r,resetError:this.resetError});case"page":return(0,t.jsx)(g,{error:e,resetError:this.resetError});default:return(0,t.jsx)(v,{error:e,resetError:this.resetError})}}}e.s(["ErrorBoundary",()=>x,"default",0,x],246417)},173209,e=>{"use strict";var t=e.i(853741);let r=e=>{let t,r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,s={setState:n,getState:o,getInitialState:()=>i,subscribe:e=>(r.add(e),()=>r.delete(e))},i=t=e(n,o,s);return s},n=e=>
1{let n=e?r(e):r,o=e=>(function(e,r=e=>e){let n=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(n),n})(n,e);return Object.assign(o,n),o},o=e=>e?n(e):n;e.s(["create",()=>o],173209)},863945,e=>{"use strict";var t=e.i(173209),r=e.i(747133);let n={conversationId:null,isProcessing:!1,error:null,startedAt:null,activeController:null,isFollowUp:!1},o=(0,t.create)((e,t)=>({...n,startProcessing:(t,r,n)=>{console.log("[Processing] Starting for conversation:",t,n?"(follow-up)":"(new)"),e({conversationId:t,isProcessing:!0,error:null,startedAt:Date.now(),activeController:r??null,isFollowUp:n??!1})},complete:()=>{console.log("[Processing] Completed"),e({isProcessing:!1,startedAt:null,activeController:null,isFollowUp:!1})},fail:t=>{console.log("[Processing] Failed:",t),e({isProcessing:!1,error:t,startedAt:null,activeController:null,isFollowUp:!1})},reset:()=>{console.log("[Processing] Reset to idle"),e(n)},cancelRequest:()=>{let{activeController:r}=t();r&&(console.log("[Processing] User cancelled request"),r.abort()),e(n)},clearController:()=>{console.log("[Processing] Clearing controller"),e({activeController:null})},isProcessingConversation:e=>{let r=t();return r.isProcessing&&r.conversationId===e},isTimedOut:()=>{let{startedAt:e}=t();return!!e&&Date.now()-e>r.timeoutConfig.maxPollingDuration},getElapsedTime:()=>{let{startedAt:e}=t();return e?Date.now()-e:null}}));e.s(["useProcessingStore",0,o])},124083,e=>{"use strict";let t={get url(){return`file://${e.P("node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]_/node_modules/zustand/esm/middleware.mjs")}`}},r=new Map,n=e=>{let t=r.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},o=(e,o={})=>(i,a,l)=>{let c,{enabled:u,anonymousActionType:d,store:f,...p}=o;try{c=(null!=u?u:(t.env?t.env.MODE:void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return e(i,a,l);let{connection:m,...h}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};let o=r.get(n.name);if(o)return{type:"tracked",store:e,...o};let s={connection:t.connect(n),stores:{}};return r.set(n.name,s),{type:"tracked",store:e,...s}})(f,c,p),g=!0;l.setState=(e,t,r)=>{let o=i(e,t);if(!g)return o;let s=void 0===r?{type:d||(e=>{var t,r;if(!e)return;let n=e.split("\n"),o=n.findIndex(e=>e.includes("api.setState"));if(o<0)return;let s=(null==(t=n[o+1])?void 0:t.trim())||"";return null==(r=/.+ (.+) .+/.exec(s))?void 0:r[1]})(Error().stack)||"anonymous"}:"string"==typeof r?{type:r}:r;return void 0===f?null==m||m.send(s,a()):null==m||m.send({...s,type:`${f}/${s.type}`},{...n(p.name),[f]:l.getState()}),o},l.devtools={cleanup:()=>{m&&"function"==typeof m.unsubscribe&&m.unsubscribe(),((e,t)=>{if(void 0===t)return;let n=r.get(e);n&&(delete n.stores[t],0===Object.keys(n.stores).length&&r.delete(e))})(p.name,f)}};let v=(...e)=>{let t=g;g=!1,i(...e),g=t},x=e(l.setState,a,l);if("untracked"===h.type?null==m||m.init(x):(h.stores[h.store]=l,null==m||m.init(Object.fromEntries(Object.entries(h.stores).map(([e,t])=>[e,e===h.store?x:t.getState()])))),l.dispatchFromDevtools&&"function"==typeof l.dispatch){let e=!1,r=l.dispatch;l.dispatch=(...n)=>{(t.env?t.env.MODE:void 0)==="production"||"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),r(...n)}}return m.subscribe(e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return void console.error("[zustand devtools middleware] Unsupported action format");return s(e.payload,e=>{if("__setState"===e.type){if(void 0===f)return void v(e.state);1!==Object.keys(e.state).length&&console.error(`
2                    [zustand devtools middleware] Unsupported __setState action format.
3                    When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
4                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
5                    `);let t=e.state[f];return void(null==t||JSON.stringify(l.getState())!==JSON.stringify(t)&&v(t))}l.dispatchFromDevtools&&"function"==typeof l.dispatch&&l.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(v(x),void 0===f)return null==m?void 0:m.init(l.getState());return null==m?void 0:m.init(n(p.name));
5case"COMMIT":if(void 0===f){null==m||m.init(l.getState());break}return null==m?void 0:m.init(n(p.name));case"ROLLBACK":return s(e.state,e=>{if(void 0===f){v(e),null==m||m.init(l.getState());return}v(e[f]),null==m||m.init(n(p.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return s(e.state,e=>{void 0===f?v(e):JSON.stringify(l.getState())!==JSON.stringify(e[f])&&v(e[f])});case"IMPORT_STATE":{let{nextLiftedState:r}=e.payload,n=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!n)return;void 0===f?v(n):v(n[f]),null==m||m.send(null,r);break}case"PAUSE_RECORDING":return g=!g}return}}),x},s=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};function i(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;let o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),s=null!=(n=r.getItem(e))?n:null;return s instanceof Promise?s.then(o):o(s)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}let a=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>a(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>a(t)(e)}}},l=(e,t)=>(r,n,o)=>{let s,l={storage:i(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,d=new Set,f=l.storage;if(!f)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),r(...e)},n,o);let p=()=>{let e=l.partialize({...n()});return f.setItem(l.name,{state:e,version:l.version})},m=o.setState;o.setState=(e,t)=>(m(e,t),p());let h=e((...e)=>(r(...e),p()),n,o);o.getInitialState=()=>h;let g=()=>{var e,t;if(!f)return;c=!1,u.forEach(e=>{var t;return e(null!=(t=n())?t:h)});let o=(null==(t=l.onRehydrateStorage)?void 0:t.call(l,null!=(e=n())?e:h))||void 0;return a(f.getItem.bind(f))(l.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===l.version)return[!1,e.state];else{if(l.migrate){let t=l.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[o,i]=e;if(r(s=l.merge(i,null!=(t=n())?t:h),!0),o)return p()}).then(()=>{null==o||o(s,void 0),s=n(),c=!0,d.forEach(e=>e(s))}).catch(e=>{null==o||o(void 0,e)})};return o.persist={setOptions:e=>{l={...l,...e},e.storage&&(f=e.storage)},clearStorage:()=>{null==f||f.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>g(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},l.skipHydration||g(),s||h};e.s(["createJSONStorage",()=>i,"devtools",()=>o,"persist",()=>l])},508332,e=>{"use strict";var t=e.i(173209),r=e.i(124083);let n=(0,t.create)()((0,r.devtools)(e=>({flowState:"empty",videoMetadata:null,error:null,question:"",videoUrl:"",videoNotPublicError:null,setFlowState:t=>e({flowState:t}),setVideoMetadata:t=>e({videoMetadata:t}),setError:t=>e({error:t}),setQuestion:t=>e({question:t}),setVideoUrl:t=>e({videoUrl:t}),setVideoNotPublicError:t=>e({videoNotPublicError:t}),resetVideoFlow:()=>e({flowState:"empty",videoMetadata:null,error:null,question:"",videoUrl:"",videoNotPublicError:null})}),{name:"VideoFlowStore"}));e.s(["useVideoFlowStore",0,n])},242609,e=>{"use strict";var t=e.i(173209),r=e.i(124083);let n=(0,t.create)()((0,r.devtools)(e=>({videoData:null,setVideoData:t=>e({videoData:t}),clearVideoData:()=>e({videoData:null})}),{name:"HeaderVideoStore"}));e.s(["useHeaderVideoStore",0,n])},914984,e=>{"use strict";var t=e.i(898516),r=e.i(853741);let n=(0,r.memo)(function({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:(0,t.jsx)("path",{d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"})})}),o=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"8.5",fill:"currentColor",fillOpacity:.12}),(0,t.jsx)("path",{d:"M12 7v10"}),(0,t.jsx)("path",{d:"m8.75 10.75 3.25-3.25 3.25 3.25"})]})}),s=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",role:"status","aria-hidden":"true",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2.5",fill:"none"}),(0,t.jsx)("path",{className:"opacity-75",d:"M12 3a9 9 0 0 1 8.66 6.7l-2.16.58A6.5 6.5 0 0 0 12 5.5V3Z",fill:"currentColor"})]})}),i=(0,r.memo)(function({className:e}){return(0,t.jsx)("img",{src:"/logo-icon.png",alt:"","aria-hidden":"true",className:e,draggable:!1})}),a=(0,r.memo)(function({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:(0,t.jsx)("path",{d:"m15 10 4.553-2.276A1 1 0 0 1 21 8.618v6.764a1 1 0 0 1-1.447.894L15 14M5 18h8a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2Z"})})}),l=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})}),c=(0,r.memo)(function({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:(0,t.jsx)("path",{d:"M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2"})})}),u=(0,r.memo)(function({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})})}),d=(0,r.memo)(function({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:(0,t.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7"})})}),f=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[(0,t.jsx)("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),(0,t.jsx)("polyline",{points:"16 6 12 2 8 6"}),(0,t.jsx)("line",{x1:"12",x2:"12",y1:"2",y2:"15"})]})}),p=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[(0,t.jsx)("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),(0,t.jsx)("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]})}),m=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[(0,t.jsx)("path",{d:"M12 20h.01"}),(0,t.jsx)("path",{d:"M8.5 16.429a5 5 0 0 1 7 0"}),(0,t.jsx)("path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69"}),(0,t.jsx)("path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523"}
5),(0,t.jsx)("path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643"}),(0,t.jsx)("path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764"}),(0,t.jsx)("path",{d:"m2 2 20 20"})]})}),h=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[(0,t.jsx)("path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),(0,t.jsx)("path",{d:"M3 3v5h5"}),(0,t.jsx)("path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"}),(0,t.jsx)("path",{d:"M16 16h5v5"})]})}),g=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[(0,t.jsx)("path",{d:"M18 6 6 18"}),(0,t.jsx)("path",{d:"m6 6 12 12"})]})}),v=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,t.jsx)("line",{x1:"21.17",x2:"12",y1:"8",y2:"8"}),(0,t.jsx)("line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14"}),(0,t.jsx)("line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14"})]})}),x=(0,r.memo)(function({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[(0,t.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,t.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,t.jsx)("line",{x1:"12",x2:"12",y1:"15",y2:"3"})]})});e.s(["ArrowLeftIcon",0,d,"CheckIcon",0,u,"ChromeIcon",0,v,"ClipboardIcon",0,c,"CopyIcon",0,l,"DownloadIcon",0,x,"LinkIcon",0,p,"LogoIcon",0,i,"PaperPlaneIcon",0,n,"RefreshCwIcon",0,h,"ShareIcon",0,f,"SpinnerIcon",0,s,"UpArrowIcon",0,o,"VideoIcon",0,a,"WifiOffIcon",0,m,"XIcon",0,g])},731197,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function s(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},302480,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let s=e.r(744066)._(e.r(731197)),i=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",a=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${o}${u}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return a(e)}},533141,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return b},NormalizeError:function(){return x},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return m}
5,normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return _}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>a.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let h="undefined"!=typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class x extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class b extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}},928864,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(533141),o=e.r(908582);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},365521,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(853741);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=s(e,n)),t&&(o.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},186544,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},29744,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return y}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let s=e.r(744066),i=e.r(898516),a=s._(e.r(853741)),l=e.r(302480),c=e.r(600737),u=e.r(365521),d=e.r(533141),f=e.r(388998);e.r(820790);let p=e.r(971592),m=e.r(928864),h=e.r(308901);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function v(t){var r;let n,o,s,[l,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),y=(0,a.useRef)(null),{href:b,as:w,children:_,prefetch:j=null,passHref:S,replace:k,shallow:E,scroll:N,onClick:O,onMouseEnter:C,onTouchStart:T,legacyBehavior:P=!1,onNavigate:I,ref:L,unstable_dynamicOnHover:M,...A}=t;n=_,P&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let D=a.default.useContext(c.AppRouterContext),R=!1!==j,U=!1!==j?null===(r=j)||"auto"===r?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:B,as:F}=a.default.useMemo(()=>{let e=g(b);return{href:e,as:w?g(w):e}},[b,w]);if(P){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
5` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=a.default.Children.only(n)}let $=P?o&&"object"==typeof o&&o.ref:L,W=a.default.useCallback(e=>(null!==D&&(y.current=(0,p.mountLinkInstance)(e,B,D,U,R,v)),()=>{y.current&&((0,p.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,p.unmountPrefetchableInstance)(e)}),[R,B,D,U,v]),V={ref:(0,u.useMergedRef)(W,$),onClick(t){P||"function"!=typeof O||O(t),P&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!D||t.defaultPrevented||function(t,r,n,o,s,i,l){if("undefined"!=typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(217212);a.default.startTransition(()=>{d(n||r,s?"replace":"push",i??!0,o.current)})}}(t,B,F,y,k,N,I)},onMouseEnter(e){P||"function"!=typeof C||C(e),P&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),D&&R&&(0,p.onNavigationIntent)(e.currentTarget,!0===M)},onTouchStart:function(e){P||"function"!=typeof T||T(e),P&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),D&&R&&(0,p.onNavigationIntent)(e.currentTarget,!0===M)}};return(0,d.isAbsoluteUrl)(F)?V.href=F:P&&!S&&("a"!==o.type||"href"in o.props)||(V.href=(0,f.addBasePath)(F)),s=P?a.default.cloneElement(o,V):(0,i.jsx)("a",{...A,...V,children:n}),(0,i.jsx)(x.Provider,{value:l,children:s})}e.r(186544);let x=(0,a.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,a.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},375679,e=>{"use strict";var t=e.i(865076),r=e.i(747133);function n(e){return e?"authenticated":"anonymous"}function o(e,n){if(!n||"object"!=typeof n)return void console.error("[Analytics] Invalid params for event:",e);if(window.gtag)try{window.gtag("event",e,n)}catch(t){console.error("[Analytics] Failed to track event to GA4:",e,t)}if(r.posthogConfig.enabled)try{t.default.capture(e,n)}catch(t){console.error("[Analytics] Failed to track event to PostHog:",e,t)}}function s(e,t,r){let n=`analytics_tracked_${e}`;return!sessionStorage.getItem(n)&&(o(t,r),sessionStorage.setItem(n,Date.now().toString()),!0)}function i(e){if(window.gtag)try{window.gtag("set","user_properties",e)}catch(e){console.error("[Analytics] Failed to set user properties in GA4:",e)}if(r.posthogConfig.enabled)try{t.default.setPersonProperties(e)}catch(e){console.error("[Analytics] Failed to set user properties in PostHog:",e)}}function a(e){i({subscription_tier:e.plan_code,subscription_status:e.status,has_active_subscription:"active"===e.status,currency:e.currency,total_balance_seconds:e.total_seconds,has_topup_balance:e.topup_seconds>0})}function l(){i({subscription_tier:"free",subscription_status:"none",has_active_subscription:!1})}function c(e,t){i({total_balance_seconds:e,has_topup_balance:t,last_topup_date:new Date().toISOString()})}function u(e,t){return`ayv_tracked_${e}_${t}`}function d(e,t){let r=u(e,t);return"1"===("view"===e?sessionStorage:localStorage).getItem(r)}function f(e,t){let r=u(e,t);("view"===e?sessionStorage:localStorage).setItem(r,"1")}function p(e,t){if("processing"===e.status||d("completion",e.id))return!1;let r=e.messages.length,n=r>2;return"completed"===e.status?n?o("video_message_received",{conversation_id:e.id,...t&&{response_time_ms:t.response_time_ms},message_count:r}):o("video_analysis_completed",{conversation_id:e.id,...t&&{response_time_ms:t.response_time_ms},video_duration_seconds:e.duration_seconds}):"failed"===e.status&&o("video_analysis_error",{error_type:function(e){if(!e)return"UNKNOWN";let t=e.toUpperCase();return t.includes("DEADLINE_EXCEEDED")||t.includes("TIMED OUT")||t.includes("TIMEOUT")?"TIMEOUT":t.includes("PROHIBITED_CONTENT")||t.includes("CONTENT BLOCKED")||t.includes("SAFETY")?"CONTENT_BLOCKED":t.includes("QUOTA")||t.includes("RATE_LIMIT")||t.includes("RESOURCE_EXHAUSTED")?"RATE_LIMIT":t.includes("INVALID")||t.includes("UNSUPPORTED")?"INVALID_VIDEO":t.includes("NETWORK")||t.includes("CONNECTION")||t.includes("UNAVAILABLE")?"NETWORK_E
5RROR":"UNKNOWN"}(e.error_message??void 0),error_message:e.error_message||"Unknown error",video_duration_seconds:e.duration_seconds,conversation_id:e.id,response_time_ms:t?.response_time_ms}),f("completion",e.id),!0}function m(e,t){if(d("view",e.id))return!1;let r=t??("undefined"!=typeof document&&document.referrer.includes("/new")?"new_analysis":"url"),n=Math.floor((Date.now()-new Date(e.created_at).getTime())/864e5);return o("video_conversation_viewed",{conversation_id:e.id,conversation_age_days:n,message_count:e.messages.length,source:r,video_duration_seconds:e.duration_seconds}),f("view",e.id),!0}function h(e,t,r){let n=Date.now()-new Date(t.created_at).getTime(),s=t.messages[t.messages.length-1],i=s?Date.now()-new Date(s.created_at).getTime():0;o("video_message_sent",{conversation_id:e,conversation_age_seconds:Math.floor(n/1e3),message_count:t.messages.length,question_length:r.trim().length,time_since_last_message_seconds:Math.floor(i/1e3)})}function g(e,t,r,n){let s=Date.now()-n.getTime();o("video_response_copied",{conversation_id:e,message_length:t.length,message_index:r,conversation_age_seconds:Math.floor(s/1e3)})}function v(e,t,r,n,s){return!d("first_analysis",e)&&(void 0!==s&&s>1?(f("first_analysis",e),!1):(o("video_first_analysis_completed",{conversation_id:t,video_duration_seconds:r,time_since_signup_seconds:Math.floor((Date.now()-n.getTime())/1e3)}),i({has_completed_first_analysis:!0,first_analysis_date:new Date().toISOString()}),f("first_analysis",e),!0))}let x="ayv_analysis_source";function y(e){sessionStorage.setItem(x,JSON.stringify(e))}function b(){let e=sessionStorage.getItem(x);if(sessionStorage.removeItem(x),!e)return{source:"direct"};try{let t=JSON.parse(e);return{source:t.source,recommendation_type:t.recommendation_type,recommended_video_id:t.recommended_video_id,recommendation_position:t.recommendation_position}}catch{return{source:"direct"}}}e.s(["consumeAnalysisSource",()=>b,"getUserAuthState",()=>n,"setAnalysisSource",()=>y,"setFreeUserProperties",()=>l,"setSubscriptionProperties",()=>a,"setTopUpPurchaseProperties",()=>c,"trackAnalysisOutcome",()=>p,"trackConversationViewed",()=>m,"trackEvent",()=>o,"trackFirstAnalysis",()=>v,"trackMessageSent",()=>h,"trackOnce",()=>s,"trackResponseCopied",()=>g])},814055,e=>{"use strict";function t(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60);return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${(e%60).toString().padStart(2,"0")}`}function r(e){return e.toLowerCase().includes("insufficient balance")}function n(e){if(0===e)return"0 sec";let t=Math.floor(e/3600),r=Math.floor(e%3600/60);return t>=1&&r>0?`${t}h ${r}m`:t>=1?`${t} ${1===t?"hour":"hours"}`:r>=1?`${r} min`:`${e%60} sec`}e.s(["formatDurationHHMMSS",()=>t,"formatDurationHumanReadable",()=>n,"isInsufficientBalanceError",()=>r])},400838,e=>{"use strict";var t=e.i(469456),r=e.i(621777),n=e.i(944610);function o(e,o){let s=(0,t.getClient)(),i=(0,t.getIsolationScope)();if(!s)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:l=100}=s.getOptions();if(l<=0)return;let c={timestamp:(0,n.dateTimestampInSeconds)(),...e},u=a?(0,r.consoleSandbox)(()=>a(c,o)):c;null!==u&&(s.emit&&s.emit("beforeAddBreadcrumb",u,o),i.addBreadcrumb(u,l))}e.s(["addBreadcrumb",()=>o])},399813,e=>{"use strict";var t=e.i(469456),r=e.i(260397);function n(e,n){try{t.getClient()?r.captureException(e,n):(console.error("[Sentry not initialized] Error captured:",e),n&&console.error("[Sentry not initialized] Context:",n))}catch(t){console.error("[Sentry] Failed to capture exception:",t),console.error("[Sentry] Original error:",e)}}function o(e){try{t.getClient()&&r.setUser(e)}catch(e){console.error("[Sentry] Failed to set user:",e)}}e.i(400838),e.s(["safeCaptureException",()=>n,"safeSetUser",()=>o])}]);

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.