1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="082e49b2-5e7f-7ea8-430e-972741f9eaaa")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,531721,993904,216432,612456,737391,812984,861462,737008,620012,960729,852156,627772,651284,630659,e=>{"use strict";var t=e.i(45113),i=e.i(413701),n=e.i(17772),r=e.i(593854),a=e.i(288136),o=e.i(187014),l=e.i(730684),s=e.i(117741),c=e.i(273291);let u=[.165,.84,.44,1],d=[.77,0,.175,1];function m(e,t=.2){return e?{duration:0}:{duration:t,ease:u}}function f(e){return e?{initial:!1}:{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98}}}function p(e){return e?{initial:!1}:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}}function x(e){return e?{layout:{duration:0},enter:{duration:0},exit:{duration:0}}:{layout:{duration:.32,ease:d},enter:{duration:.28,ease:u},exit:{duration:.24,ease:u}}}e.s(["crossfadeTransition",0,m,"labelOpacityCrossfadeMotionProps",0,p,"labelScaleCrossfadeMotionProps",0,f,"voiceListMotionTransitions",0,x],993904);let h=v(7);function v(e){return`Record or upload at least ${e} seconds of audio.`}let y="Speak clearly in a quiet environment at your natural pace",g="Read this out loud at your normal pace.",b="Read this script naturally at your normal pace:",S="I'm recording audio to clone my voice. Afterwards, I'll be able to produce speech that sounds just like me. I can't wait to talk to my Delphi and hear what it sounds like!",w={"audio/mpeg":[".mp3"],"audio/wav":[".wav"],"audio/x-wav":[".wav"],"audio/ogg":[".ogg"],"audio/mp4":[".m4a"],"audio/webm":[".webm"],"video/mp4":[".mp4"],"video/quicktime":[".mov"]},j="Create Your Voice Clone",N="Create Your Professional Voice Clone",C="https://help.delphi.ai/articles/16043798-how-to-use-pro-voice",_=`Record about 10 seconds of yourself. ${y}.`,R=`Upload 30 minutes to 3 hours of clear audio. ${y}.`,E="h-auto px-0 text-sm font-medium text-fg-mid underline-offset-4 hover:text-fg-high active:text-fg-high",P="relative flex w-full max-w-md cursor-pointer flex-col items-center justify-center gap-1.5 rounded-xl border border-dashed border-loud bg-transparent px-6 py-5 text-sm transition-colors duration-200 ease-out";function I(e){return"pvc"===e?0x6400000:0xa00000}function A(e){return"pvc"===e?"100MB":"10MB"}function V(e,t=7){return e>=t}function T(){if(window.AudioContext)return window.AudioContext;if("webkitAudioContext"in window)return window.webkitAudioContext;throw Error("AudioContext is not available")}function D(e){for(let t of e)URL.revokeObjectURL(t.url)}async function L(e){let t=URL.createObjectURL(e);try{return await new Promise((e,i)=>{let n=new Audio;n.preload="metadata",n.onloadedmetadata=()=>{Number.isFinite(n.duration)&&n.duration>0?e(n.duration):i(Error("unknown duration"))},n.onerror=()=>i(Error("metadata load failed")),n.src=t})}catch{return null}finally{URL.revokeObjectURL(t)}}async function M(e){let t=await L(e);return null!=t?Math.ceil(t):Math.max(1,Math.ceil(e.size/16e3))}e.s(["IVC_IDLE_GUIDANCE",0,_,"IVC_IDLE_TITLE",0,j,"MAX_RECORDING_SECONDS",0,300,"MIN_DURATION_MESSAGE",0,h,"MIN_DURATION_SECONDS",0,7,"MODE_TOGGLE_LINK_CLASS",0,E,"ONBOARDING_MIN_DURATION_SECONDS",0,7,"ONBOARDING_STOP_RECORDING_ENABLED_SECONDS",0,7,"ONBOARDING_VOICE_RECORD_SCRIPT_LABEL",0,b,"PVC_DOCS_ADVANCED_URL",0,C,"PVC_IDLE_GUIDANCE",0,R,"PVC_IDLE_TITLE",0,N,"PVC_MIN_TOTAL_DURATION_SECONDS",0,1800,"PVC_RECOMMENDED_MAX_HOURS",0,3,"PVC_TARGET_MINUTES",0,30,"SPEECH_LEVEL_THRESHOLD",0,.1,"STOP_RECORDING_ENABLED_SECONDS",0,10,"TRAILING_SILENCE_SECONDS",0,4,"UPLOAD_ACCEPT",0,w,"UPLOAD_DROPZONE_CLASS",0,P,"VOICE_RECORDING_ENVIRONMENT_ADVICE",0,y,"VOICE_RECORD_SCRIPT",0,S,"VOICE_RECORD_SCRIPT_LABEL",0,g,"maxUploadBytes",0,I,"maxUploadLabel",0,A,"minDurationMessage",0,v],216432),e.s(["resolveBlobDurationSeconds",0,M],612456);let O=["audio/webm;codecs=opus","audio/webm","audio/mp4","audio/aac","audio/mpeg"];function U(){if(null!=globalThis.MediaRecorder){for(let e of O)if(globalThis.MediaRecorder.isTypeSupp
2orted(e))return e}}var k=e.i(697228),B=e.i(723142),z=e.i(299131);let F=[0,400,900,1800,3600];function G(e){e.invalidateQueries({queryKey:(0,l.getVoiceCloneQueryKey)()})}function $(e,t){e.setQueriesData({queryKey:(0,l.getVoiceCloneQueryKey)()},e=>e?.data?.id===t.id?{data:t}:e)}async function Q(e,t){let i=await e.fetchQuery((0,l.getVoiceCloneOptions)(t?{query:{ownerUserId:t}}:void 0));i.data&&$(e,i.data)}async function q(e,{ownerUserId:t,maxAttempts:i=24,intervalMs:n=5e3}={}){let r=(0,l.getVoiceCloneQueryKey)(t?{query:{ownerUserId:t}}:void 0);for(let t=0;t<i;t++){t>0&&await new Promise(e=>setTimeout(e,n)),await e.refetchQueries({queryKey:r,exact:!0});let i=e.getQueryData(r);if(i?.data!=null)return}}function K(e,t,i){e.invalidateQueries({queryKey:(0,l.getVoiceCloneByIdGenerationsQueryKey)({path:{id:t},query:i?{ownerUserId:i}:{}})})}async function H(e,t,i){let n={path:{id:t},query:i?.ownerUserId?{ownerUserId:i.ownerUserId}:{}},r=i?.baselineIds;for(let t of F){t>0&&await new Promise(e=>setTimeout(e,t));let i=(await e.fetchQuery((0,l.getVoiceCloneByIdGenerationsOptions)(n))).data;if(!r||i.some(e=>!r.has(e.id)))return{synced:!0}}return K(e,t,i?.ownerUserId),{synced:!1}}function Y(e,t,i){G(e),e.invalidateQueries({queryKey:(0,l.getVoiceCloneByIdSamplesQueryKey)({path:{id:t},query:i?{ownerUserId:i}:{}})})}e.s(["invalidateVoiceClone",0,G,"invalidateVoiceCloneAndSamples",0,Y,"invalidateVoiceCloneGenerations",0,K,"invalidateVoiceClonePronunciations",0,function(e,t){e.invalidateQueries({queryKey:(0,l.getVoiceClonePronunciationsQueryKey)({query:t?{ownerUserId:t}:{}})})},"pollVoiceCloneUntilPresent",0,q,"refreshVoiceCloneInCache",0,Q,"syncVoiceCloneGenerationsAfterTts",0,H,"updateVoiceCloneInCache",0,$,"voiceCloneGenerationBaselineIds",0,function(e,t,i){let n=e.getQueryData((0,l.getVoiceCloneByIdGenerationsQueryKey)({path:{id:t},query:i?{ownerUserId:i}:{}}));return new Set((n?.data??[]).map(e=>e.id))}],737391);var W=e.i(85114);function X(e,t){return e+t.durationSeconds}function Z(e){return D(e),[]}function J(){}function ee(e){return e.data.user.username}var et=e.i(779882),ei=e.i(591401),en=e.i(765918),er=e.i(632137),ea=e.i(119302);let eo={uploading:"Uploading sample...",starting:"Starting voice training...",training:"Voice is training"},el={ivc:"This takes a few minutes. You can safely leave this page.",pvc:"This takes 2â3 hours. You can safely leave this page."};function es(e){let n,r,o,l,s,c,u,d=(0,i.c)(21),{phase:f,isPvc:x,className:h}=e,v=void 0!==x&&x,y=(0,a.useReducedMotion)();d[0]!==y?(n=m(y,.28),d[0]=y,d[1]=n):n=d[1];let g=n;d[2]!==y?(r=p(y),d[2]=y,d[3]=r):r=d[3];let b=r;d[4]!==h?(o=(0,er.cn)("flex min-h-[min(40vh,320px)] flex-col items-center justify-center gap-4 py-16",h),d[4]=h,d[5]=o):o=d[5],d[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(ei.motion.div,{layoutId:"voice-training-spinner",children:(0,t.jsx)(ea.Spinner,{"aria-hidden":!0,className:"size-8 text-fg-mid animate-none motion-safe:animate-spin"})}),d[6]=l):l=d[6];let S=eo[f];return d[7]!==b.animate||d[8]!==b.exit||d[9]!==b.initial||d[10]!==f||d[11]!==S||d[12]!==g?(s=(0,t.jsx)("p",{className:"text-sm text-fg-mid",children:(0,t.jsx)("span",{className:"relative inline-grid justify-items-center [grid-template-areas:'label']",children:(0,t.jsx)(et.AnimatePresence,{mode:"sync",initial:!1,children:(0,t.jsx)(ei.motion.span,{className:"col-start-1 row-start-1 [grid-area:label]",initial:b.initial,animate:b.animate,exit:b.exit,transition:g,children:S},f)})})}),d[7]=b.animate,d[8]=b.exit,d[9]=b.initial,d[10]=f,d[11]=S,d[12]=g,d[13]=s):s=d[13],d[14]!==v||d[15]!==f?(c="training"===f?(0,t.jsx)("p",{className:"max-w-xs text-center text-xs text-fg-low",children:el[v?"pvc":"ivc"]}):null,d[14]=v,d[15]=f,d[16]=c):c=d[16],d[17]!==o||d[18]!==s||d[19]!==c?(u=(0,t.jsxs)("div",{role:"status","aria-live":"polite",className:o,children:[l,s,c]}),d[17]=o,d[18]=s,d[19]=c,d[20]=u):u=d[20],u}e.s(["VoiceTrainingProgress",0,es,"isVoiceCloneFailed",0,function(e){return e?.status==="failed"},"isVoiceCloneTraining",0,function(e){return e?.status==="pending"||e?.status==="training"}],812984);var ec=e.i(8651);function eu(e){let n,r,a,o,l=(0,i.c)(11),{isVisible:s,spaced:c,children:u}=e,d=!s&&"pointer-events-none";l[0]!==d?(n=(0,er.cn)(d),l[0]=d,l[1]=n):n=l[1];let m=(void 0===c||c)&&s&&"pb-4";return l[2]!==m?(r=(0,er.cn)("w-full",m),l[2]=m,l[3]=r):r=l[3],l[4]!==u||l[5]!==r?(a=(0,t.jsx)("div",{className:r,children:u}),l[4]=u,l[5]=r,l[6]=a):a=l[6],l[7]!==s||l[8]!==n||l[9]!==a?(o=(0,t.jsx)(ec.AnimateHeight,{className:"w-full",children:(0,t.jsx)(ec.AnimateHeightContent,{isVisible:s,className:n,children:a})}),l[7]=s,l[8]=n,l[9]=a,l[10]=o):o=l[10],o}function ed(e){let n,r,a,o,l=(0,i.c)(12),{layout:s,scriptLabel:c}=e,u=void 0===c?g:c;if("centered"===(void 0===s?"card":s)){let e,i,n,r;return l[0]!==u?(e=(0,t.jsx)("p",{className:"text-base font-medium text-fg-low",children:u}),l[0]=u,l[1]=e):e=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("span",{"aria-hidden":"true",children:"â"}),l[2]=i):i=l[2],l[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("p",{className:"block text-base leading-relaxed italic text-fg-mid sm:text-lg",children:[i,S,(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]}),l[3]=n):n=l[3],l[4]!==e?(r=(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-full flex-col gap-3 text-center",children:[e,n]}),l[4]=e,l[5]=r):r=l[5],r}return l[6]!==u?(n=(0,t.jsx)("p",{className:"text-xs font-medium text-fg-high",children:u}),l[6]=u,l[7]=n):n=l[7],l[8]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("span",{"aria-hidden":"true",children:"â"}),l[8]=r):r=l[8],l[9]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("p",{className:"text-base italic leading-relaxed text-fg-mid sm:text-lg",children:[r,S,(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]}),l[9]=a):a=l[9],l[10]!==n?(o=(0,t.jsxs)("div",{className:"flex w-full min-w-0 flex-col gap-3 overflow-hidden rounded-xl border border-loud bg-surface-primary px-4 py-4 shadow-default",children:[n,a]}),l[10]=n,l[11]=o):o=l[11],o}var em=e.i(653065),ef=e.i(546579);let ep=[{value:"sonic-2",label:"v2"},{value:"sonic-3",label:"v3"},{value:"sonic-3.6",label:"v3.6"}],ex=[{value:"sonic-3",label:"v3"}],eh=[{value:"eleven_multilingual_v2",label:"Global"},{value:"eleven_turbo_v2_5",label:"Express"},{value:"eleven_turbo_v2",label:"Quick"}],ev="sonic-3.6",ey=ex[0].value,eg=Object.fromEntries([...ep,...ex,...eh].map(e=>[e.value,e.label]));function eb(e){return Object.hasOwn(eg,e)?eg[e]??e:e}let eS={"sonic-3.6-2026-08-27":!0,"sonic-3.5-2026-05-04":!0,"sonic-3-2026-01-12":!0,"sonic-2":!0};e.s(["ELEVENLABS_UNIT_MAX",0,1,"ELEVENLABS_UNIT_MIN",0,0,"ELEVENLABS_UNIT_STEP",0,.01,"VOICE_SIMILARITY_BOOST_DEFAULT",0,.75,"VOICE_SPEED_DEFAULT",0,1,"VOICE_SPEED_MAX",0,1.5,"VOICE_SPEED_MIN",0,.6,"VOICE_SPEED_STEP",0,.05,"VOICE_STABILITY_DEFAULT",0,.5,"modelOptionsForProvider",0,function(e,t){return"elevenlabs"===e?eh:"pvc"===t?ex:ep}
2,"resolveCartesiaPreviewModelId",0,function(e){return"pvc"===e.mode?ey:"sonic-3.5"===e.modelId?ev:e.modelId&&e.allowedModelIds.includes(e.modelId)?e.modelId:e.modelId&&!0===eS[e.modelId]?ey:e.allowedModelIds[0]??""},"resolveDefaultModelId",0,function(e,t,i){let n="elevenlabs"===t?"eleven_turbo_v2":"pvc"===i?ey:ev;return e.some(e=>e.value===n)?n:e[0]?.value??n},"voiceModelLabel",0,eb],861462);let ew={year:"numeric",month:"short",day:"numeric"};function ej(e,t){if(!Number.isFinite(e)||e<0)return t?.padMinutes?"00:00":"0:00";let i=Math.floor(e),n=Math.floor(i/60),r=(i%60).toString().padStart(2,"0");return t?.padMinutes?`${n.toString().padStart(2,"0")}:${r}`:`${n}:${r}`}function eN(e){let n,r,a,o,l=(0,i.c)(15),{active:s,elapsed:c,stream:u,idlePreview:d,layout:m}=e,f=void 0===m?"default":m,p=s||void 0!==d&&d,x=s?c:0,h="centered"===f?"flex w-full flex-col items-center gap-4":"flex w-full flex-col gap-3 px-4 py-3",v="centered"===f?"flex w-full items-center justify-center py-4 sm:py-5":"flex w-full items-center justify-center";return l[0]!==s||l[1]!==u?(n=(0,t.jsx)(em.LiveWaveform,{active:s,stream:u,height:64,mode:"scrolling",analyzer:"time-domain",fftSize:512,historySize:120,sensitivity:2,smoothingTimeConstant:.5,updateRate:24,className:"w-full",onError:eC}),l[0]=s,l[1]=u,l[2]=n):n=l[2],l[3]!==v||l[4]!==n?(r=(0,t.jsx)("div",{className:v,children:n}),l[3]=v,l[4]=n,l[5]=r):r=l[5],l[6]!==s||l[7]!==x||l[8]!==f||l[9]!==p?(a=p?(0,t.jsxs)("div",{className:"centered"===f?"text-center text-sm tabular-nums text-fg-mid":"flex items-center justify-center gap-2","aria-live":"polite","aria-atomic":"true",children:[s&&"centered"!==f?(0,t.jsxs)("span",{className:"relative flex size-2 shrink-0","aria-hidden":"true",children:[(0,t.jsx)("span",{className:"absolute inline-flex size-full rounded-full bg-destructive/50 motion-safe:animate-ping"}),(0,t.jsx)("span",{className:"relative inline-flex size-2 rounded-full bg-destructive"})]}):null,(0,t.jsx)("span",{className:"centered"===f?void 0:"text-sm tabular-nums text-fg-high",children:ej(x,{padMinutes:"centered"===f})})]}):null,l[6]=s,l[7]=x,l[8]=f,l[9]=p,l[10]=a):a=l[10],l[11]!==h||l[12]!==r||l[13]!==a?(o=(0,t.jsxs)("div",{className:h,children:[r,a]}),l[11]=h,l[12]=r,l[13]=a,l[14]=o):o=l[14],o}function eC(e){"NotAllowedError"===e.name||"PermissionDeniedError"===e.name?o.toast.error("Microphone access denied"):"NotFoundError"===e.name?o.toast.error("No microphone found"):o.toast.error("Could not access microphone")}function e_(e){let n,r,a,o=(0,i.c)(9),{active:l,elapsed:s,stream:c,scriptLabel:u}=e;return o[0]!==u?(n=(0,t.jsx)(ed,{layout:"centered",scriptLabel:u}),o[0]=u,o[1]=n):n=o[1],o[2]!==l||o[3]!==s||o[4]!==c?(r=(0,t.jsx)(eN,{active:l,elapsed:s,stream:c,idlePreview:!0,layout:"centered"}),o[2]=l,o[3]=s,o[4]=c,o[5]=r):r=o[5],o[6]!==n||o[7]!==r?(a=(0,t.jsxs)("div",{className:"flex w-full flex-col gap-8 sm:gap-10",children:[n,r]}),o[6]=n,o[7]=r,o[8]=a):a=o[8],a}e.s(["formatClockDuration",0,ej,"formatVoiceDate",0,function(e){return new Date(e).toLocaleDateString(void 0,ew)},"formatVoiceDateTime",0,function(e){return new Date(e).toLocaleString(void 0,{...ew,hour:"numeric",minute:"2-digit"})},"formatVoiceGenerationSettingsDetail",0,function(e){return function(e){if(!e)return[];let t=[],i=(0,ef.parseString)(e.modelId);i&&t.push({label:"Model",value:eb(i)});let n=(0,ef.parseNumber)(e.speed);null!==n&&t.push({label:"Speed",value:`${n.toFixed(2)}\xd7`});let r=(0,ef.parseNumber)(e.stability);null!==r&&t.push({label:"Stability",value:r.toFixed(2)});let a=(0,ef.parseNumber)(e.similarityBoost);return null!==a&&t.push({label:"Similarity",value:a.toFixed(2)}),t}(e)}],737008);var eR=e.i(403773),eE=e.i(981831);function eP(e){let r,o,l,s,c,u,d,p,x,h=(0,i.c)(23);h[0]!==e?({content:l,crossfadeDuration:s,className:o,...r}=e,h[0]=e,h[1]=r,h[2]=o,h[3]=l,h[4]=s):(r=h[1],o=h[2],l=h[3],s=h[4]);let v=void 0===s?.2:s,y=(0,a.useReducedMotion)();h[5]!==v||h[6]!==y?(c=m(y,v),h[5]=v,h[6]=y,h[7]=c):c=h[7];let g=c;h[8]!==y?(u=f(y),h[8]=y,h[9]=u):u=h[9];let b=u;if(h[10]!==l.icon){var S;d=l.icon?(0,t.jsx)("span",{className:"inline-flex size-4 shrink-0 items-center justify-center","aria-hidden":!0,
2children:(S=l.icon,(0,n.isValidElement)(S)?S:(0,t.jsx)(S,{}))}):null,h[10]=l.icon,h[11]=d}else d=h[11];return h[12]!==l.key||h[13]!==l.label||h[14]!==b||h[15]!==d||h[16]!==g?(p=(0,t.jsx)(et.AnimatePresence,{mode:"wait",initial:!1,children:(0,t.jsxs)(ei.motion.span,{className:"inline-flex items-center gap-1.5",...b,transition:g,children:[d,l.label]},l.key)}),h[12]=l.key,h[13]=l.label,h[14]=b,h[15]=d,h[16]=g,h[17]=p):p=h[17],h[18]!==r||h[19]!==o||h[20]!==l.ariaLabel||h[21]!==p?(x=(0,t.jsx)(eE.Button,{...r,className:o,"aria-label":l.ariaLabel,children:p}),h[18]=r,h[19]=o,h[20]=l.ariaLabel,h[21]=p,h[22]=x):x=h[22],x}function eI(e){let n,r,a,o=(0,i.c)(14),{phase:l,submitLabel:s,stopRecordingLabel:c,startRecordingLabel:u,showStopIcon:d,stopVariant:m,onClick:f,disabled:p,className:x}=e,h=void 0===c?"Stop Recording":c,v=void 0===u?"Start Recording":u,y=void 0===d||d,g=void 0===m?"destructive":m;o[0]!==l||o[1]!==y||o[2]!==v||o[3]!==h||o[4]!==g||o[5]!==s?(n=function(e,t,i,n,r,a){switch(e){case"stop":return{key:"stop",label:i,ariaLabel:i,icon:r?eR.StopSolidIcon:void 0,variant:a};case"submit":return{key:"submit",label:t,ariaLabel:t,icon:eR.CheckSolidIcon,variant:"solid"};default:return{key:"start",label:n,ariaLabel:n,icon:eR.MicrophoneIcon,variant:"solid"}}}(l,s,h,v,y,g),o[0]=l,o[1]=y,o[2]=v,o[3]=h,o[4]=g,o[5]=s,o[6]=n):n=o[6];let b=n,S=b.variant;return o[7]!==x?(r=(0,er.cn)("w-full",x),o[7]=x,o[8]=r):r=o[8],o[9]!==b||o[10]!==p||o[11]!==f||o[12]!==r?(a=(0,t.jsx)(eP,{type:"button",variant:S,size:"lg",shape:"rounded",className:r,disabled:p,onClick:f,content:b}),o[9]=b,o[10]=p,o[11]=f,o[12]=r,o[13]=a):a=o[13],a}function eA(e){let n,r,a,o,l,s,c,u=(0,i.c)(27),{phase:d,submitLabel:m,stopRecordingLabel:f,startRecordingLabel:p,isRecording:x,primaryDisabled:h,capture
2Variant:v,onPrimaryClick:y,onTryAgain:g}=e,b="onboarding"===(void 0===v?"default":v),S=b&&"pt-6";u[0]!==S?(n=(0,er.cn)("flex w-full flex-col items-center gap-2",S),u[0]=S,u[1]=n):n=u[1];let w=!b,j=b?"brand":"destructive",N=b&&"w-full max-w-lg";u[2]!==N?(r=(0,er.cn)(N),u[2]=N,u[3]=r):r=u[3],u[4]!==y||u[5]!==d||u[6]!==h||u[7]!==p||u[8]!==f||u[9]!==m||u[10]!==w||u[11]!==j||u[12]!==r?(a=(0,t.jsx)(eI,{phase:d,submitLabel:m,stopRecordingLabel:f,startRecordingLabel:p,showStopIcon:w,stopVariant:j,onClick:y,disabled:h,className:r}),u[4]=y,u[5]=d,u[6]=h,u[7]=p,u[8]=f,u[9]=m,u[10]=w,u[11]=j,u[12]=r,u[13]=a):a=u[13];let C=!x&&"pointer-events-none";return u[14]!==C?(o=(0,er.cn)(C),u[14]=C,u[15]=o):o=u[15],u[16]!==g||u[17]!==b?(l=(0,t.jsx)("div",{className:"flex w-full justify-center pt-1",children:b?(0,t.jsxs)(eE.Button,{variant:"ghost",size:"lg",onClick:g,className:"w-full max-w-lg",children:[(0,t.jsx)(eR.ArrowRotateLeftIcon,{"data-icon":"inline-start"}),"Try again"]}):(0,t.jsxs)(eE.Button,{variant:"link",size:"default",shape:"none",onClick:g,className:(0,er.cn)(E,"text-base"),children:[(0,t.jsx)(eR.ArrowRotateLeftIcon,{"data-icon":"inline-start",className:"size-4"}),"Try again"]})}),u[16]=g,u[17]=b,u[18]=l):l=u[18],u[19]!==x||u[20]!==o||u[21]!==l?(s=(0,t.jsx)(ec.AnimateHeight,{className:"w-full",children:(0,t.jsx)(ec.AnimateHeightContent,{isVisible:x,className:o,children:l})}),u[19]=x,u[20]=o,u[21]=l,u[22]=s):s=u[22],u[23]!==s||u[24]!==n||u[25]!==a?(c=(0,t.jsxs)("div",{className:n,children:[a,s]}),u[23]=s,u[24]=n,u[25]=a,u[26]=c):c=u[26],c}e.s(["MorphingIconLabelButton",0,eP],620012);var eV=e.i(585877);function eT(e){let n,r,a,o,l,s,c,u=(0,i.c)(23),{getRootProps:d,getInputProps:m,isDragActive:f,open:p,maxSizeLabel:x,allowMultiple:h,className:v}=e;if(u[0]!==v||u[1]!==d||u[2]!==f||u[3]!==p){let e,t;u[5]!==p?(e=e=>{e.preventDefault(),p()},t=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),p())},u[5]=p,u[6]=e,u[7]=t):(e=u[6],t=u[7]),n=d({className:(0,er.cn)(P,f?"border-sand-12 text-fg-high ring-1 ring-sand-9/15":"text-fg-mid hover:border-sand-9 hover:text-fg-high",v),onClick:e,onKeyDown:t}),u[0]=v,u[1]=d,u[2]=f,u[3]=p,u[4]=n}else n=u[4];u[8]!==m?(r=m(),u[8]=m,u[9]=r):r=u[9],u[10]!==r?(a=(0,t.jsx)("input",{...r,"data-testid":"voice-recorder-file-input"}),u[10]=r,u[11]=a):a=u[11],u[12]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(eR.CloudArrowUpSolidIcon,{className:"size-5","aria-hidden":!0}),u[12]=o):o=u[12];let y=h?"Upload Audio Files":"Upload Audio";u[13]!==y?(l=(0,t.jsx)("span",{className:"font-medium",children:y}),u[13]=y,u[14]=l):l=u[14];let g=h?"Select multiple files · ":null;return u[15]!==x||u[16]!==g?(s=(0,t.jsxs)("span",{className:"text-xs text-fg-mid",children:[g,"MP3, WAV, OGG, M4A, WEBM, MP4, MOV · up to ",x," each"]}),u[15]=x,u[16]=g,u[17]=s):s=u[17],u[18]!==n||u[19]!==a||u[20]!==l||u[21]!==s?(c=(0,t.jsxs)("div",{...n,children:[a,o,l,s]}),u[18]=n,u[19]=a,u[20]=l,u[21]=s,u[22]=c):c=u[22],c}function eD(e){let n,r,a,o,l=(0,i.c)(17),{mode:s,allowMultiple:c,onFilesAccepted:u,onDropRejected:d,className:m}=e,f=c??"pvc"===s;l[0]!==s?(n=I(s),l[0]=s,l[1]=n):n=l[1],l[2]!==f||l[3]!==d||l[4]!==u||l[5]!==n?(r={accept:w,maxSize:n,multiple:f,noClick:!0,onDropAccepted:u,onDropRejected:d},l[2]=f,l[3]=d,l[4]=u,l[5]=n,l[6]=r):r=l[6];let{getRootProps:p,getInputProps:x,isDragActive:h,open:v}=(0,eV.useDropzone)(r);return l[7]!==s?(a=A(s),l[7]=s,l[8]=a):a=l[8],l[9]!==m||l[10]!==x||l[11]!==p||l[12]!==h||l[13]!==f||l[14]!==v||l[15]!==a?(o=(0,t.jsx)(eT,{getRootProps:p,getInputProps:x,isDragActive:h,open:v,maxSizeLabel:a,allowMultiple:f,className:m}),l[9]=m,l[10]=x,l[11]=p,l[12]=h,l[13]=f,l[14]=v,l[15]=a,l[16]=o):o=l[16],o}var eL=e.i(500478);e.i(66560);var eM=e.i(760044),eO=e.i(38129),eU=e.i(410778),ek=e.i(537783);let eB=(0,n.createContext)({});function ez(){return(0,n.useContext)(eB)}e.s(["PvcPurchaseProvider",0,function(e){let n,r,a=(0,i.c)(6),{updateAddon:o,fetchAddonPreview:l,children:s}=e;return a[0]!==l||a[1]!==o?(n={updateAddon:o,fetchAddonPreview:l},a[0]=l,a[1]=o,a[2]=n):n=a[2],a[3]!==s||a[4]!==n?(r=(0,t.jsx)(eB.Provider,{value:n,children:s}),a[3]=s,a[4]=n,a[5]=r):r=a[5],r},"usePvcPurchase",0,ez],960729);let eF=["Studio-quality voice trained on 30+ minutes of your audio","Indistinguishable from the real you â perfect for long-form content","Takes 3â6 hours to train; you'll be notified when ready"];function eG(e){let a,o,l,c,u,d,m,f,p,x,h,v,y,g,b=(0,i.c)(42),{children:S,open:w,onOpenChange:j}=e,{updateAddon:N,fetchAddonPreview:C}
2=ez(),_=(0,s.useScopeBasePath)(),R=(0,s.useScopeContext)(),E=(0,s.useOwnerUserId)();b[0]!==E?(a=(0,eO.planSubscriptionOptions)(E),b[0]=E,b[1]=a):a=b[1];let{data:P}=(0,r.useQuery)(a),I=P?.data;b[2]!==I?(o=(0,eU.hasMutableSubscription)(I),b[2]=I,b[3]=o):o=b[3];let A=o,V=`${_}/settings/plan?checkout=builder&addon=proVoice`,T=`${_}/settings/plan`,[D,L]=(0,n.useState)(!1),[M,O]=(0,n.useState)(!1),U=void 0!==w,k=U?w:D;b[4]!==U||b[5]!==j?(l=e=>{U||L(e),j?.(e)},b[4]=U,b[5]=j,b[6]=l):l=b[6];let B=l;b[7]!==S||b[8]!==B?(c=S&&(0,n.isValidElement)(S)?(0,n.cloneElement)(S,{onClick:()=>B(!0)}):S,b[7]=S,b[8]=B,b[9]=c):c=b[9];let z=c,F=R?.ownerName??R?.ownerUsername??"the workspace owner",G=null===R&&A&&!!(N&&C);b[10]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(eM.DetachedSheet.Backdrop,{}),b[10]=u):u=b[10],b[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)(eM.DetachedSheet.Header,{className:"pb-4 text-center",children:[(0,t.jsx)("div",{className:"mx-auto mb-3 flex size-14 items-center justify-center rounded-full bg-surface-secondary",children:(0,t.jsx)(eR.SparklesSolidIcon,{className:"size-7 text-brand-accent"})}),(0,t.jsx)(eM.DetachedSheet.Title,{children:"Professional Voice Clone"}),(0,t.jsx)(eM.DetachedSheet.Description,{children:"A premium add-on that creates a studio-quality voice model trained exclusively on your voice."})]}),b[11]=d):d=b[11],b[12]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:eF.map(e$)}),b[12]=m):m=b[12],b[13]!==G||b[14]!==V||b[15]!==A||b[16]!==F||b[17]!==T||b[18]!==R||b[19]!==B?(f=null!==R?(0,t.jsxs)("p",{className:"text-center text-sm text-fg-mid",children:["Only ",F," can purchase add-ons. Ask them to add Pro Voice from plan settings."]}):G?(0,t.jsx)(eE.Button,{size:"lg",className:"w-full",onClick:()=>O(!0),children:"Purchase Add-on â $150/mo"}):(0,t.jsx)(eE.Button,{asChild:!0,size:"lg",className:"w-full",children:(0,t.jsx)(eL.default,{href:A?T:V,onClick:()=>B(!1),children:A?"Add Pro Voice on Plan Page":"Purchase Add-on"})}),b[13]=G,b[14]=V,b[15]=A,b[16]=F,b[17]=T,b[18]=R,b[19]=B,b[20]=f):f=b[20];let $=`${_}/settings/plan/manage`;return b[21]!==B?(p=()=>B(!1),b[21]=B,b[22]=p):p=b[22],b[23]!==p||b[24]!==$?(x=(0,t.jsx)(eE.Button,{variant:"link",size:"sm",shape:"none",asChild:!0,className:"h-auto text-xs text-fg-low underline-offset-2",children:(0,t.jsx)(eL.default,{href:$,onClick:p,children:"Or upgrade to Scaler"})}),b[23]=p,b[24]=$,b[25]=x):x=b[25],b[26]!==x||b[27]!==f?(h=(0,t.jsx)(eM.DetachedSheet.Portal,{children:(0,t.jsxs)(eM.DetachedSheet.View,{children:[u,(0,t.jsx)(eM.DetachedSheet.Content,{children:(0,t.jsxs)("div",{className:"w-[440px] max-w-[calc(100vw-3rem)]",children:[d,(0,t.jsxs)("div",{className:"flex flex-col gap-6 px-6 pb-6",children:[m,(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[f,x]})]})]})})]})}),b[26]=x,b[27]=f,b[28]=h):h=b[28],b[29]!==k||b[30]!==B||b[31]!==h?(v=(0,t.jsx)(eM.DetachedSheet.Root,{presented:k,onPresentedChange:B,children:h}),b[29]=k,b[30]=B,b[31]=h,b[32]=v):v=b[32],b[33]!==M||b[34]!==C||b[35]!==B||b[36]!==N?(y=N&&C?(0,t.jsx)(ek.ProVoicePurchaseDialog,{open:M,onOpenChange:O,onPurchased:()=>B(!1),updateAddon:N,fetchAddonPreview:C}):null,b[33]=M,b[34]=C,b[35]=B,b[36]=N,b[37]=y):y=b[37],b[38]!==v||b[39]!==y||b[40]!==z?(g=(0,t.jsxs)(t.Fragment,{children:[z,v,y]}),b[38]=v,b[39]=y,b[40]=z,b[41]=g):g=b[41],g}function e$(e){return(0,t.jsxs)("li",{className:"flex items-start gap-2.5 text-sm text-fg-mid",children:[(0,t.jsx)("span",{className:"mt-0.5 text-brand-accent","aria-hidden":!0,children:"â¦"}),(0,t.jsx)("span",{children:e})]},e)}e.s(["PvcUpgradeDialog",0,eG],852156);let eQ="Train a Professional Voice Clone instead";function eq(e){let n,r=(0,i.c)(3),{proVoiceGranted:a,onTrainPvc:o}=e;if(a){let e;return r[0]!==o?(e=(0,t.jsx)(eE.Button,{variant:"link",size:"sm",shape:"none",onClick:o,className:E,children:eQ}),r[0]=o,r[1]=e):e=r[1],e}return r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(eG,{children:(0,t.jsx)(eE.Button,{variant:"link",size:"sm",shape:"none",className:E,children:eQ})}),r[2]=n):n=r[2],n}function eK(e){let n,r,o,l,s=(0,i.c)(17),{variant:c,isPvc:u,proVoiceGranted:d,onTrainPvc:f,onSwitchToIvc:x}=e,h=(0,a.useReducedMotion)();s[0]!==h?(n=m(h),s[0]=h,s[1]=n):n=s[1];let v=n;s[2]!==h?(r=p(h),s[2]=h,s[3]=r):r=s[3];let g=r;if("addSamplePvc"===c){let e;return s[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("p",{className:"text-center text-xs text-fg-mid",children:["Samples are added to your professional voice clone. Record or upload clear audio â"," ",y,"."]}),s[4]=e):e=s[4],e}let b=u?"to-ivc":d?"to-pvc":"upgrade";return s[5]!==u||s[6]!==x||s[7]!==f||s[8]!==d?(o=u?(0,t.jsx)(eE.Button,{variant:"link",size:"sm",shape:"none",onClick:x,className:E,
2children:"Use instant voice clone instead"}):(0,t.jsx)(eq,{proVoiceGranted:d,onTrainPvc:f}),s[5]=u,s[6]=x,s[7]=f,s[8]=d,s[9]=o):o=s[9],s[10]!==b||s[11]!==o||s[12]!==g.animate||s[13]!==g.exit||s[14]!==g.initial||s[15]!==v?(l=(0,t.jsx)("div",{className:"flex w-full justify-center",children:(0,t.jsx)(et.AnimatePresence,{mode:"wait",initial:!1,children:(0,t.jsx)(ei.motion.div,{initial:g.initial,animate:g.animate,exit:g.exit,transition:v,children:o},b)})}),s[10]=b,s[11]=o,s[12]=g.animate,s[13]=g.exit,s[14]=g.initial,s[15]=v,s[16]=l):l=s[16],l}var eH=e.i(668431),eY=e.i(619409),eW=e.i(526475);let eX=[.165,.84,.44,1];function eZ(e){if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e),i=Math.floor(t/60);return`${i}:${(t%60).toString().padStart(2,"0")}`}async function eJ(e){try{if(e.startsWith("blob:")){let t=await fetch(e),i=await t.blob();return i.size>0?i.size:void 0}let t=(await fetch(e,{method:"HEAD"})).headers.get("Content-Length");if(t){let e=Number.parseInt(t,10);if(Number.isFinite(e)&&e>=0)return e}}catch{}}function e0(e,t){let i=document.createElement("a");i.href=e,i.rel="noopener noreferrer",t&&(i.download=t),document.body.append(i),i.click(),i.remove()}let e1=(0,n.createContext)(null);function e2(e){let t=(0,n.use)(e1);if(!t)throw Error(`AudioPlayer.${e} must be rendered within <AudioPlayer.Root>`);return t}let e3={card:"rounded-xl bg-surface-secondary p-3",bare:""};function e4(e){let r,a,o,l,s,c,u,d,m,f,p,x,h,v,y,g,b,S,w=(0,i.c)(58),{src:j,children:N,className:C,variant:_,durationSeconds:R,fileSize:E,date:P,downloadFileName:I,downloadUrl:A,controller:V}=e,T=void 0===j?"":j,D=(0,n.useRef)(null),L=(0,n.useRef)(!1),[M,O]=(0,n.useState)(!1),[U,k]=(0,n.useState)(0),[B,z]=(0,n.useState)(0),[F,G]=(0,n.useState)(),$=null!=V,Q=V?.isPlaying??M,q=V?.isLoading??!1,K=!$;w[0]!==F||w[1]!==E?(r=void 0!==E&&Number.isFinite(E)&&E>=0?E:F,w[0]=F,w[1]=E,w[2]=r):r=w[2];let H=r;w[3]!==B||w[4]!==R?(a=Number.isFinite(B)&&B>0?B:void 0!==R&&Number.isFinite(R)&&R>=0?R:0,w[3]=B,w[4]=R,w[5]=a):a=w[5];let Y=a;w[6]!==E?(o=void 0!==E&&Number.isFinite(E)&&E>=0,w[6]=E,w[7]=o):o=w[7];let W=o;w[8]!==W||w[9]!==T?(l={src:T,propSizeReady:W},w[8]=W,w[9]=T,w[10]=l):l=w[10];let[X,Z]=(0,n.useState)(l);(T!==X.src||W!==X.propSizeReady)&&(Z({src:T,propSizeReady:W}),G(void 0)),w[11]!==W||w[12]!==T?(s=()=>{if(W||!T)return;let e=!1;return eJ(T).then(t=>{e||void 0===t||G(t)}),()=>{e=!0}},c=[W,T],w[11]=W,w[12]=T,w[13]=s,w[14]=c):(s=w[13],c=w[14]),(0,n.useEffect)(s,c),w[15]!==$?(u=()=>{if($)return;let e=D.current;e&&(e.pause(),e.currentTime=0,O(!1),k(0),z(0))},w[15]=$,w[16]=u):u=w[16],w[17]!==$||w[18]!==T?(d=[T,$],w[17]=$,w[18]=T,w[19]=d):d=w[19],(0,n.useEffect)(u,d),w[20]!==$?(m=()=>{if($)return;let e=D.current;if(!e)return;let t=()=>{Number.isFinite(e.duration)&&z(e.duration)},i=()=>O(!0),n=()=>O(!1),r=()=>O(!1),a=()=>{L.current||k(e.currentTime)};return e.addEventListener("play",i),e.addEventListener("pause",n),e.addEventListener("ended",r),e.addEventListener("timeupdate",a),e.addEventListener("loadedmetadata",t),e.addEventListener("durationchange",t),()=>{e.removeEventListener("play",i),e.removeEventListener("pause",n),e.removeEventListener("ended",r),e.removeEventListener("timeupdate",a),e.removeEventListener("loadedmetadata",t),e.removeEventListener("durationchange",t)}},w[20]=$,w[21]=m):m=w[21],w[22]!==$||w[23]!==T?(f=[T,$],w[22]=$,w[23]=T,w[24]=f):f=w[24],(0,n.useEffect)(m,f),w[25]!==V?(p=()=>
2{if(V)return void V.onToggle();let e=D.current;e&&(e.paused?e.play():e.pause())},w[25]=V,w[26]=p):p=w[26];let J=p;w[27]!==B?(x=e=>{let t=D.current;if(!t||!Number.isFinite(B)||B<=0)return;let i=e/100*B;t.currentTime=i,k(i)},w[27]=B,w[28]=x):x=w[28];let ee=x;w[29]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{L.current=e},w[29]=h):h=w[29];let et=h,ei=q||$&&!T&&!Q;w[30]!==K||w[31]!==U||w[32]!==P||w[33]!==I||w[34]!==A||w[35]!==B||w[36]!==Y||w[37]!==H||w[38]!==q||w[39]!==Q||w[40]!==ei||w[41]!==ee||w[42]!==T||w[43]!==J?(v={src:T,isPlaying:Q,isLoading:q,playDisabled:ei,currentTime:U,duration:B,effectiveDuration:Y,fileSize:H,date:P,canSeek:K,downloadFileName:I,downloadUrl:A,togglePlay:J,seekToPercent:ee,setSeeking:et},w[30]=K,w[31]=U,w[32]=P,w[33]=I,w[34]=A,w[35]=B,w[36]=Y,w[37]=H,w[38]=q,w[39]=Q,w[40]=ei,w[41]=ee,w[42]=T,w[43]=J,w[44]=v):v=w[44];let en=v,ea=e3[void 0===_?"card":_];return w[45]!==C||w[46]!==ea?(y=(0,er.cn)("flex w-full min-w-0 flex-col gap-2",ea,C),w[45]=C,w[46]=ea,w[47]=y):y=w[47],w[48]!==$||w[49]!==T?(g=$?null:(0,t.jsx)("audio",{ref:D,src:T,preload:"metadata",className:"sr-only"}),w[48]=$,w[49]=T,w[50]=g):g=w[50],w[51]!==N||w[52]!==y||w[53]!==g?(b=(0,t.jsxs)("div",{className:y,role:"group","aria-label":"Audio player",children:[g,N]}),w[51]=N,w[52]=y,w[53]=g,w[54]=b):b=w[54],w[55]!==b||w[56]!==en?(S=(0,t.jsx)(e1.Provider,{value:en,children:b}),w[55]=b,w[56]=en,w[57]=S):S=w[57],S}function e5(e){let n,r,a=(0,i.c)(5),{children:o,className:l}=e;return a[0]!==l?(n=(0,er.cn)("flex min-w-0 items-center gap-3",l),a[0]=l,a[1]=n):n=a[1],a[2]!==o||a[3]!==n?(r=(0,t.jsx)("div",{className:n,children:o}),a[2]=o,a[3]=n,a[4]=r):r=a[4],r}function e7(e){let n,r,a=(0,i.c)(5),{children:o,className:l}=e;return a[0]!==l?(n=(0,er.cn)("flex min-w-0 flex-1 flex-col gap-0.5",l),a[0]=l,a[1]=n):n=a[1],a[2]!==o||a[3]!==n?(r=(0,t.jsx)("div",{className:n,children:o}),a[2]=o,a[3]=n,a[4]=r):r=a[4],r}function e6(e){let n,r,a=(0,i.c)(5),{children:o,className:l}=e;return a[0]!==l?(n=(0,er.cn)("min-w-0 truncate text-sm font-medium text-fg-high",l),a[0]=l,a[1]=n):n=a[1],a[2]!==o||a[3]!==n?(r=(0,t.jsx)("p",{className:n,children:o}),a[2]=o,a[3]=n,a[4]=r):r=a[4],r}function e8(e){let n,r,o,l,s,c,u,d=(0,i.c)(19),{fields:m,extra:f,className:p}=e,{effectiveDuration:x,fileSize:h,date:v}=e2("Meta"),y=(0,a.useReducedMotion)();d[0]!==v||d[1]!==x||d[2]!==h?(n=e=>{switch(e){case"duration":return x>0?eZ(x):void 0;case"size":return void 0!==h&&h>=0?function(e){if(!Number.isFinite(e)||e<0)return"";if(e>=0x40000000)return`${(e/0x40000000).toFixed(1)} GB`;let t=e/1048576,i=Number.parseFloat(t.toFixed(1)),n=t>0&&0===i?.1:i;return`${n.toFixed(1)} MB`}(h):void 0;case"date":return v||void 0}},d[0]=v,d[1]=x,d[2]=h,d[3]=n):n=d[3];let g=n,b=[...(void 0===m?["duration"]:m).map(g),f].filter(e9).join(" · ");if(!b)return null;d[4]!==y?(r=y?{duration:0}:{duration:.2,ease:eX},d[4]=y,d[5]=r):r=d[5];let S=r;return d[6]!==p?(o=(0,er.cn)("min-w-0 truncate text-xs text-fg-mid tabular-nums",p),d[6]=p,d[7]=o):o=d[7],d[8]!==y?(l=!y&&{opacity:0,y:2},d[8]=y,d[9]=l):l=d[9],d[10]===Symbol.for("react.memo_cache_sentinel")?(s={opacity:1,y:0},d[10]=s):s=d[10],d[11]!==y?(c=y?{opacity:0}:{opacity:0,y:-2},d[11]=y,d[12]=c):c=d[12],d[13]!==o||d[14]!==l||d[15]!==c||d[16]!==b||d[17]!==S?(u=(0,t.jsx)(et.AnimatePresence,{mode:"wait",initial:!1,children:(0,t.jsx)(ei.motion.p,{className:o,initial:l,animate:s,exit:c,transition:S,children:b},b)}),d[13]=o,d[14]=l,d[15]=c,d[16]=b,d[17]=S,d[18]=u):u=d[18],u}function e9(e){return!!e}function te(e){let n,r,a=(0,i.c)(10),{className:o}=e,{isPlaying:l,isLoading:s,playDisabled:c,togglePlay:u}=e2("PlayButton"),d=l?"subtle":"solid",m=s?"Loading preview":l?"Pause":"Play";return a[0]!==s||a[1]!==l?(n=s?(0,t.jsx)(eY.LoadingSpinnerIcon,{className:"size-3.5 animate-spin"}):l?(0,t.jsx)(eR.PauseSolidIcon,{className:"size-3.5"}):(0,t.jsx)(eR.PlaySolidIcon,{className:"size-3.5 translate-x-px"}),a[0]=s,a[1]=l,a[2]=n):n=a[2],a[3]!==o||a[4]!==c||a[5]!==d||a[6]!==m||a[7]!==n||a[8]!==u?(r=(0,t.jsx)(eE.Button,{type:"button",variant:d,size:"icon",onClick:u,disabled:c,"aria-label":m,className:o,children:n}),a[3]=o,a[4]=c,a[5]=d,a[6]=m,a[7]=n,a[8]=u,a[9]=r):r=a[9],r}function tt(e){let n,r,a,o,l,s,c,u,d,m,f,p,x,h,v,y=(0,i.c)(39),{className:g}=e,{currentTime:b,duration:S,canSeek:w,seekToPercent:j,setSeeking:N}=e2("Scrubber"),C=S>0?b/S*100:0;y[0]!==b?(n=eZ(b),y[0]=b,y[1]=n):n=y[1],y[2]!==S?(r=eZ(S),y[2]=S,y[3]=r):r=y[3];let _=`${n} / ${r}`;y[4]!==g?(a=(0,er.cn)("flex min-w-0 flex-1 items-center gap-3",g),y[4]=g,y[5]=a):a=y[5],y[6]!==b?(o=eZ(b),y[6]=b,y[7]=o):o=y[7],y[8]!==o?(l=(0,t.jsx)("span",{className:"text-xs text-fg-mid tabular-nums",children:o}),y[8]=o,y[9]=l):l=y[9],y[10]!==C?(s=[C],y[10]=C,y[11]=s):s=y[11];let R=!w;return y[12]!==N?(c=()=>N(!0),y[12]=N,y[13]=c):c=y[13],y[14]!==j?(u=e=>j(e[0]??0),y[14]=j,y[15]=u):u=y[15],y[16]!==N?(d=()=>N(!1),m=()=>N(!1),f=()=>N(!1),y[16]=N,y[17]=d,y[18]=m,y[19]=f):(d=y[17],m=y[18],f=y[19]),y[20]!==C||y[21]!==d||y[22]!==m||y[23]!==f||y[24]!==s||y[25]!==R||y[26]!==c||y[27]!==u||y[28]!==_?(p=(0,t.jsx)(eW.Slider,{value:s,max:100,step:.1,disabled:R,onPointerDown:c,onValueChange:u,onValueCommit:d,onPointerUp:m,onPointerCancel:f,"aria-label":"Playback position","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-valuetext":_,className:"flex-1"}),y[20]=C,y[21]=d,y[22]=m,y[23]=f,y[24]=s,y[25]=R,y[26]=c,y[27]=u,y[28]=_,y[29]=p):p=y[29],y[30]!==S?(x=eZ(S),y[30]=S,y[31]=x):x=y[31],y[32]!==x?(h=(0,t.jsx)("span",{className:"text-xs text-fg-low tabular-nums",children:x}),y[32]=x,y[33]=h):h=y[33],y[34]!==p||y[35]!==h||y[36]!==a||y[37]!==l?(v=(0,t.jsxs)("div",{className:a,children:[l,p,h]}),y[34]=p,y[35]=h,y[36]=a,y[37]=l,y[38]=v):v=y[38],v}function ti(e){let n,r,a,o=(0,i.c)(10),{fileName:l,className:s}=e,{src:c,downloadUrl:u,downloadFileName:d}=e2("DownloadButton");o[0]!==d||o[1]!==u||o[2]!==l||o[3]!==c?(n=()=>{let e=u??c;if(e){let t;if(u)return void e0(u);e0(e,(t=(l??d??"recording").trim()||"recording",/\.[a-z0-9]+$/i.test(t)?t:`${t}${function(e){try{let{pathname:t}=new URL(e,window.location.href),i=t.lastIndexOf(".");if(-1===i)return;let n=t.slice(i);if(/^\.[a-z0-9]{1,8}$/i.test(n))return n}catch{}}(e)??".webm"}`))}},o[0]=d,o[1]=u,o[2]=l,o[3]=c,o[4]=n):n=o[4];let m=n,f=!c&&!u;return o[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(eR.DownloadIcon,{className:"size-4"}),o[5]=r):r=o[5],o[6]!==s||o[7]!==m||o[8]!==f?(a=(0,t.jsx)(eE.Button,{type:"button",variant:"ghost",size:"icon",onClick:m,disabled:f,"aria-label":"Download",className:s,children:r}),o[6]=s,o[7]=m,o[8]=f,o[9]=a):a=o[9],a}function tn(e){let n,r,a,o=(0,i.c)(11),{onRemove:l,pending:s,disabled:c,
2className:u,"aria-label":d}=e,m=void 0!==s&&s,f=!!c||m,p=m?"Removing...":void 0===d?"Remove":d;return o[0]!==u?(n=(0,er.cn)("text-fg-mid hover:text-fg-error",u),o[0]=u,o[1]=n):n=o[1],o[2]!==m?(r=m?(0,t.jsx)(eY.LoadingSpinnerIcon,{className:"size-4 animate-spin","aria-hidden":!0}):(0,t.jsx)(eR.TrashSolidIcon,{className:"size-4"}),o[2]=m,o[3]=r):r=o[3],o[4]!==l||o[5]!==m||o[6]!==f||o[7]!==p||o[8]!==n||o[9]!==r?(a=(0,t.jsx)(eE.Button,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:f,"aria-busy":m,"aria-label":p,className:n,children:r}),o[4]=l,o[5]=m,o[6]=f,o[7]=p,o[8]=n,o[9]=r,o[10]=a):a=o[10],a}e4.displayName="AudioPlayer.Root",e5.displayName="AudioPlayer.Row",e7.displayName="AudioPlayer.Info",e6.displayName="AudioPlayer.Title",e8.displayName="AudioPlayer.Meta",te.displayName="AudioPlayer.PlayButton",tt.displayName="AudioPlayer.Scrubber",ti.displayName="AudioPlayer.DownloadButton",tn.displayName="AudioPlayer.RemoveButton";let tr={Root:e4,Row:e5,Info:e7,Title:e6,Meta:e8,PlayButton:te,Scrubber:tt,DownloadButton:ti,RemoveButton:tn};function ta(e){let n,r,a,o,l,s=(0,i.c)(9),{totalDurationSeconds:c,layoutTransition:u}=e,d=Math.floor(c/60);return s[0]!==u?(n={layout:u}
2,s[0]=u,s[1]=n):n=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(r={maximumFractionDigits:0},s[2]=r):r=s[2],s[3]!==d?(a=(0,t.jsx)(eH.AnimatedNumber,{value:d,formatOptions:r,className:"tabular-nums"}),s[3]=d,s[4]=a):a=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("span",{children:" mins · aim for 30 minâ3 hr"}),s[5]=o):o=s[5],s[6]!==n||s[7]!==a?(l=(0,t.jsxs)(ei.motion.p,{layout:!0,transition:n,className:"flex w-full items-baseline justify-end gap-0 text-sm text-fg-mid",children:[a,o]}),s[6]=n,s[7]=a,s[8]=l):l=s[8],l}function to(e){let n,r,o,l,s,c,u,d=(0,i.c)(30),{samples:m,mode:f,onRemove:p,onExitComplete:h}=e,v=(0,a.useReducedMotion)();d[0]!==v?(n=x(v),d[0]=v,d[1]=n):n=d[1];let y=n,g="pvc"===f;d[2]!==m?(r=m.reduce(tl,0),d[2]=m,d[3]=r):r=d[3];let b=r;if(d[4]!==y.layout?(o={layout:y.layout},d[4]=y.layout,d[5]=o):o=d[5],d[6]!==y.enter||d[7]!==y.exit||d[8]!==y.layout||d[9]!==p||d[10]!==v||d[11]!==m){let e;d[13]!==y.enter||d[14]!==y.exit||d[15]!==y.layout||d[16]!==p||d[17]!==v?(e=e=>(0,t.jsx)(ei.motion.div,{layout:!0,initial:!v&&{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:v?{opacity:0}:{opacity:0,scale:.98,transition:{opacity:y.exit,scale:y.exit}},transition:{layout:y.layout,opacity:y.enter,scale:y.enter},style:{transformOrigin:"top center"},className:"w-full",children:(0,t.jsx)(tr.Root,{src:e.url,fileSize:e.blob.size,durationSeconds:e.durationSeconds,children:(0,t.jsxs)(tr.Row,{children:[(0,t.jsx)(tr.PlayButton,{}),(0,t.jsxs)(tr.Info,{children:[(0,t.jsx)(tr.Title,{children:e.fileName}),(0,t.jsx)(tr.Meta,{fields:["size","duration"]})]}),(0,t.jsx)(tr.RemoveButton,{onRemove:()=>p(e.id)})]})})},e.id),d[13]=y.enter,d[14]=y.exit,d[15]=y.layout,d[16]=p,d[17]=v,d[18]=e):e=d[18],l=m.map(e),d[6]=y.enter,d[7]=y.exit,d[8]=y.layout,d[9]=p,d[10]=v,d[11]=m,d[12]=l}else l=d[12];return d[19]!==h||d[20]!==l?(s=(0,t.jsx)(et.AnimatePresence,{initial:!1,mode:"popLayout",onExitComplete:h,children:l}),d[19]=h,d[20]=l,d[21]=s):s=d[21],d[22]!==g||d[23]!==y.layout||d[24]!==b?(c=g?(0,t.jsx)(ta,{totalDurationSeconds:b,layoutTransition:y.layout}):null,d[22]=g,d[23]=y.layout,d[24]=b,d[25]=c):c=d[25],d[26]!==o||d[27]!==s||d[28]!==c?(u=(0,t.jsxs)(ei.motion.div,{layout:!0,className:"flex w-full flex-col gap-2",transition:o,children:[s,c]}),d[26]=o,d[27]=s,d[28]=c,d[29]=u):u=d[29],u}function tl(e,t){return e+t.durationSeconds}function ts(e){let n,r,a,o=(0,i.c)(9),{submitLabel:l,submitDisabled:s,onCancel:c,onSubmit:u}=e;return o[0]!==c?(n=(0,t.jsx)(eE.Button,{variant:"outline",size:"lg",className:"flex-1",onClick:c,children:"Cancel"}),o[0]=c,o[1]=n):n=o[1],o[2]!==u||o[3]!==s||o[4]!==l?(r=(0,t.jsx)(eI,{phase:"submit",submitLabel:l,onClick:u,disabled:s,className:"flex-1"}),o[2]=u,o[3]=s,o[4]=l,o[5]=r):r=o[5],o[6]!==n||o[7]!==r?(a=(0,t.jsxs)("div",{className:"flex w-full gap-3",children:[n,r]}),o[6]=n,o[7]=r,o[8]=a):a=o[8],a}e.s(["AudioPlayer",0,tr],627772),e.s([],651284);let tc=(0,n.createContext)(null);function tu(){let e=(0,n.use)(tc);if(!e)throw Error("Voice recorder parts must be used within VoiceRecorder.Provider");return e}function td(e){let n,r=(0,i.c)(3),{value:a,children:o}=e;return r[0]!==o||r[1]!==a?(n=(0,t.jsx)(tc,{value:a,children:o}),r[0]=o,r[1]=a,r[2]=n):n=r[2],n}function tm(){let e,n=(0,i.c)(4),{isLoading:r,trainingPhase:a,embedInSheet:o,isPvc:l}=tu();if(!r)return null;let s=o?"min-h-0 py-8":void 0;return n[0]!==l||n[1]!==s||n[2]!==a?(e=(0,t.jsx)(es,{phase:a,isPvc:l,className:s}),n[0]=l,n[1]=s,n[2]=a,n[3]=e):e=n[3],e}function tf(e){let n,r,a=(0,i.c)(5),{children:o}=e,{embedInSheet:l,isLoading:s}=tu();if(s)return null;let c=l?"max-w-none":"mx-auto max-w-md py-12";return a[0]!==c?(n=(0,er.cn)("flex w-full flex-col items-center",c),a[0]=c,a[1]=n):n=a[1],a[2]!==o||a[3]!==n?(r=(0,t.jsx)("div",{className:n,children:o}),a[2]=o,a[3]=n,a[4]=r):r=a[4],r}function tp(e){let n,r=(0,i.c)(2),{children:a}=e;return r[0]!==a?(n=(0,t.jsx)("div",{className:"flex w-full flex-col",children:a}),r[0]=a,r[1]=n):n=r[1],n}function tx(){let e,n=(0,i.c)(6),{visibility:r,shellTitle:a,titleMotionProps:o,crossfadeTransition:l}=tu();return r.title?(n[0]!==l||n[1]!==a||n[2]!==o.animate||n[3]!==o.exit||n[4]!==o.initial?(e=(0,t.jsx)("div",{className:"pb-2 text-center",children:(0,t.jsx)("h2",{className:"text-lg font-medium",children:(0,t.jsx)("span",{className:"relative inline-grid justify-items-center [grid-template-areas:'title']",children:(0,t.jsx)(et.AnimatePresence,{mode:"sync",initial:!1,children:(0,t.jsx)(ei.motion.span,{className:"col-start-1 row-start-1 [grid-area:title]",initial:o.initial,animate:o.animate,exit:o.exit,transition:l,children:a},a)})})})}
2),n[0]=l,n[1]=a,n[2]=o.animate,n[3]=o.exit,n[4]=o.initial,n[5]=e):e=n[5],e):null}function th(e){let n,r,a,o=(0,i.c)(12),{visible:l,guidanceKey:s,children:c}=e,{embedInSheet:u,titleMotionProps:d,crossfadeTransition:m}=tu();if(!l)return null;let f=u?"pb-4":"pb-6";return o[0]!==f?(n=(0,er.cn)("w-full text-center",f),o[0]=f,o[1]=n):n=o[1],o[2]!==c?(r=(0,t.jsx)("p",{className:"text-sm leading-relaxed text-fg-mid",children:c}),o[2]=c,o[3]=r):r=o[3],o[4]!==m||o[5]!==s||o[6]!==n||o[7]!==r||o[8]!==d.animate||o[9]!==d.exit||o[10]!==d.initial?(a=(0,t.jsx)(et.AnimatePresence,{mode:"sync",initial:!1,children:(0,t.jsx)(ei.motion.div,{className:n,initial:d.initial,animate:d.animate,exit:d.exit,transition:m,children:r},s)}),o[4]=m,o[5]=s,o[6]=n,o[7]=r,o[8]=d.animate,o[9]=d.exit,o[10]=d.initial,o[11]=a):a=o[11],a}function tv(){let e,n=(0,i.c)(2),{shellTitle:r,useIvcCapture:a,isAddingSample:o}=tu(),l=a&&!o&&r===j;return n[0]!==l?(e=(0,t.jsx)(th,{visible:l,guidanceKey:"ivc-guidance",children:_}),n[0]=l,n[1]=e):e=n[1],e}function ty(){let e,n,r=(0,i.c)(3),{shellTitle:a}=tu(),o=a===N;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"text-fg-high underline underline-offset-4 hover:text-fg-high",children:"What makes a great professional voice"}),r[0]=e):e=r[0],r[1]!==o?(n=(0,t.jsxs)(th,{visible:o,guidanceKey:"pvc-guidance",children:[R," ",e]}),r[1]=o,r[2]=n):n=r[2],n}function tg(){let e,n,r=(0,i.c)(8),{visibility:a,elapsed:o,recordingStream:l,isRecording:s,scriptLabel:c}=tu();return r[0]!==o||r[1]!==s||r[2]!==l||r[3]!==c?(e=(0,t.jsx)(e_,{active:s,elapsed:o,stream:l,scriptLabel:c}),r[0]=o,r[1]=s,r[2]=l,r[3]=c,r[4]=e):e=r[4],r[5]!==e||r[6]!==a.centeredCapture?(n=(0,t.jsx)(eu,{isVisible:a.centeredCapture,spaced:!1,children:e}),r[5]=e,r[6]=a.centeredCapture,r[7]=n):n=r[7],n}function tb(){let e,n,r=(0,i.c)(3),{visibility:a}=tu();return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(ed,{}),r[0]=e):e=r[0],r[1]!==a.scriptCard?(n=(0,t.jsx)(eu,{isVisible:a.scriptCard,children:e}),r[1]=a.scriptCard,r[2]=n):n=r[2],n}function tS(){let e,n,r=(0,i.c)(7),{visibility:a,elapsed:o,recordingStream:l,isRecording:s}=tu();return r[0]!==o||r[1]!==s||r[2]!==l?(e=(0,t.jsx)(eN,{active:s,elapsed:o,stream:l}),r[0]=o,r[1]=s,r[2]=l,r[3]=e):e=r[3],r[4]!==e||r[5]!==a.recordingStatus?(n=(0,t.jsx)(eu,{isVisible:a.recordingStatus,children:e}),r[4]=e,r[5]=a.recordingStatus,r[6]=n):n=r[6],n}function tw(){let e,n,r=(0,i.c)(8),{visibility:a,reviewSamples:o,effectiveMode:l,isAddingSample:s,onRemoveSample:c,onReviewExitComplete:u}=tu(),d=s?"ivc":l;return r[0]!==c||r[1]!==u||r[2]!==o||r[3]!==d?(e=(0,t.jsx)(to,{samples:o,mode:d,onRemove:c,onExitComplete:u}),r[0]=c,r[1]=u,r[2]=o,r[3]=d,r[4]=e):e=r[4],r[5]!==e||r[6]!==a.reviewList?(n=(0,t.jsx)(eu,{isVisible:a.reviewList,children:e}),r[5]=e,r[6]=a.reviewList,r[7]=n):n=r[7],n}function tj(){let e,n,r=(0,i.c)(13),{visibility:a,primaryPhase:o,submitLabel:l,stopRecordingLabel:s,startRecordingLabel:c,primaryDisabled:u,isRecording:d,captureVariant:m,onPrimaryClick:f,onTryAgain:p}=tu();return r[0]!==m||r[1]!==d||r[2]!==f||r[3]!==p||r[4]!==u||r[5]!==o||r[6]!==c||r[7]!==s||r[8]!==l?(e=(0,t.jsx)(eA,{phase:o,submitLabel:l,stopRecordingLabel:s,startRecordingLabel:c,isRecording:d,primaryDisabled:u,captureVariant:m,onPrimaryClick:f,onTryAgain:p}),r[0]=m,r[1]=d,r[2]=f,r[3]=p,r[4]=u,r[5]=o,r[6]=c,r[7]=s,r[8]=l,r[9]=e):e=r[9],r[10]!==e||r[11]!==a.captureActions?(n=(0,t.jsx)(eu,{isVisible:a.captureActions,children:e}),r[10]=e,r[11]=a.captureActions,r[12]=n):n=r[12],n}function tN(){let e,n,r=(0,i.c)(3),{visibility:a}=tu();return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"flex w-full items-center gap-4",children:[(0,t.jsx)(en.Separator,{className:"flex-1"}),(0,t.jsx)("span",{className:"text-xs text-fg-mid",children:"or upload a file"}),(0,t.jsx)(en.Separator,{className:"flex-1"})]}),r[0]=e):e=r[0],r[1]!==a.uploadSeparator?(n=(0,t.jsx)(eu,{isVisible:a.uploadSeparator,children:e}),r[1]=a.uploadSeparator,r[2]=n):n=r[2],n}function tC(){let e,n,r=(0,i.c)(9),{visibility:a,effectiveMode:o,allowMultipleUpload:l,embedInSheet:s,onUploadFilesAccepted:c,onUploadDropRejected:u}=tu(),d=s?"max-w-none":void 0;return r[0]!==l||r[1]!==o||r[2]!==u||r[3]!==c||r[4]!==d?(e=(0,t.jsx)(eD,{mode:o,allowMultiple:l,onFilesAccepted:c,onDropRejected:u,className:d}
2),r[0]=l,r[1]=o,r[2]=u,r[3]=c,r[4]=d,r[5]=e):e=r[5],r[6]!==e||r[7]!==a.uploadSection?(n=(0,t.jsx)(eu,{isVisible:a.uploadSection,children:e}),r[6]=e,r[7]=a.uploadSection,r[8]=n):n=r[8],n}function t_(){let e,n,r=(0,i.c)(8),{visibility:a,submitLabel:o,isPvc:l,isAddingSample:s,canSubmitPvc:c,reviewSamples:u,onCancelReview:d,onSubmitReview:m}=tu(),f=l&&!s?!c:0===u.length;return r[0]!==d||r[1]!==m||r[2]!==o||r[3]!==f?(e=(0,t.jsx)(ts,{submitLabel:o,submitDisabled:f,onCancel:d,onSubmit:m}),r[0]=d,r[1]=m,r[2]=o,r[3]=f,r[4]=e):e=r[4],r[5]!==e||r[6]!==a.reviewFooter?(n=(0,t.jsx)(eu,{isVisible:a.reviewFooter,children:e}),r[5]=e,r[6]=a.reviewFooter,r[7]=n):n=r[7],n}function tR(){let e,n,r=(0,i.c)(8),{visibility:a,trainNoticeIsPvc:o,proVoiceGranted:l,onTrainPvc:s,onSwitchToIvc:c}=tu();return r[0]!==c||r[1]!==s||r[2]!==l||r[3]!==o?(e=(0,t.jsx)(eK,{variant:"addSamplePvc",isPvc:o,proVoiceGranted:l,onTrainPvc:s,onSwitchToIvc:c}),r[0]=c,r[1]=s,r[2]=l,r[3]=o,r[4]=e):e=r[4],r[5]!==e||r[6]!==a.addSamplePvcNotice?(n=(0,t.jsx)(eu,{isVisible:a.addSamplePvcNotice,spaced:!1,children:e}),r[5]=e,r[6]=a.addSamplePvcNotice,r[7]=n):n=r[7],n}function tE(){let e,n,r=(0,i.c)(8),{visibility:a,trainNoticeIsPvc:o,proVoiceGranted:l,onTrainPvc:s,onSwitchToIvc:c}=tu();return r[0]!==c||r[1]!==s||r[2]!==l||r[3]!==o?(e=(0,t.jsx)(eK,{variant:"modeToggle",isPvc:o,proVoiceGranted:l,onTrainPvc:s,onSwitchToIvc:c}),r[0]=c,r[1]=s,r[2]=l,r[3]=o,r[4]=e):e=r[4],r[5]!==e||r[6]!==a.modeToggleNotice?(n=(0,t.jsx)(eu,{isVisible:a.modeToggleNotice,spaced:!1,children:e}),r[5]=e,r[6]=a.modeToggleNotice,r[7]=n):n=r[7],n}function tP(){let e,n,r,a,o=(0,i.c)(4);return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(tx,{}),n=(0,t.jsx)(tv,{}),r=(0,t.jsx)(ty,{}),o[0]=e,o[1]=n,o[2]=r):(e=o[0],n=o[1],r=o[2]),o[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)(tf,{children:[e,n,r,(0,t.jsxs)(tp,{children:[(0,t.jsx)(tb,{}),(0,t.jsx)(tS,{}),(0,t.jsx)(tw,{}),(0,t.jsx)(tj,{}),(0,t.jsx)(tN,{}),(0,t.jsx)(tC,{}),(0,t.jsx)(t_,{}),(0,t.jsx)(tR,{}),(0,t.jsx)(tE,{})]})]}),o[3]=a):a=o[3],a}function tI(e){let u,d,f,x=(0,i.c)(6);x[0]!==e?({children:u,...d}=e,x[0]=e,x[1]=u,x[2]=d):(u=x[1],d=x[2]);let y=function(e){let t,u,d,f,x,y,S,w,C,_,R,E,P,L,O,F,G,$,Q,K,H,et,ei,en,er,ea,eo,el,es,ec=(0,i.c)(134),{onSuccess:eu,embedInSheet:ed,title:em,submitLabel:ef,addToCloneId:ep,showTrainNotice:ex,defaultMode:eh,defaultProvider:ev,uploadOnly:ey,manualStopOnly:eg,suppressTrainingToasts:eb,captureVariant:eS,showCapturePreview:ew,ownerUserId:ej,uploadSampleBlob:eN,onTrainingStarted:eC,saveSampleOnly:e_}=e,eR=void 0!==ed&&ed,eE=void 0===em?j:em,eP=void 0===ef?"Submit":ef,eI=void 0===eh?"ivc":eh,eA=void 0===ev?"cartesia":ev,eV=void 0!==ey&&ey,eT=void 0!==eg&&eg,eD=void 0!==eb&&eb,eL=void 0===eS?"default":eS,eM=void 0!==ew&&ew,eO=void 0!==e_&&e_,eU=null!=ep;7!==ec[0]?(t=v(7),ec[0]=7,ec[1]=t):t=ec[1];let ek=t,eB=(0,s.useScopeContext)();ec[2]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.getUsersMeOptions)(),ec[2]=u):u=ec[2];let ez=eB?.ownerUsername==null;ec[3]!==ez?(d={...u,select:ee,enabled:ez,staleTime:3e5},ec[3]=ez,ec[4]=d):d=ec[4];let{data:eF}=(0,r.useQuery)(d),eG=eB?.ownerUsername??eF,[e$,eQ]=(0,n.useState)("idle"),[eq,eK]=(0,n.useState)(eA);if(ec[5]!==eG)f=eG?`voice for ${eG}`:"My Voice",ec[5]=eG,ec[6]=f;else f=ec[6];let eH=f,[eY,eW]=(0,n.useState)(eI),eX=eV?"pvc":eY,eZ=!eV&&"ivc"===eX,[eJ,e0]=(0,n.useState)(0),[e1,e2]=(0,n.useState)(null);ec[7]===Symbol.for("react.memo_cache_sentinel")?(x=[],ec[7]=x):x=ec[7];let[e3,e4]=(0,n.useState)(x),[e5,e7]=(0,n.useState)(!1),e6=(0,a.useReducedMotion)();ec[8]!==e6?(y=m(e6),ec[8]=e6,ec[9]=y):y=ec[9];let e8=y;ec[10]!==e6?(S=p(e6),ec[10]=e6,ec[11]=S):S=ec[11];let e9=S,te=(0,s.useOwnerUserId)(),tt=ej??te,{granted:ti}=(0,c.useFeature)("proVoice",tt),tn=(0,n.useRef)(J);ec[12]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{e4(Z)},ec[12]=w):w=ec[12];let tr=w;ec[13]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{e7(!1)},ec[13]=C):C=ec[13];let ta=C;ec[14]!==eI||ec[15]!==eA?(_=()=>{eK(eA),eW(eI)},ec[14]=eI,ec[15]=eA,ec[16]=_):_=ec[16];let to=_;ec[17]===Symbol.for("react.memo_cache_sentinel")?(R=()=>tn.current(),ec[17]=R):R=ec[17],ec[18]!==ep||ec[19]!==eU||7!==ec[20]||ec[21]!==eY||ec[22]!==eH||ec[23]!==eu||ec[24]!==eC||ec[25]!==tt||ec[26]!==eq||ec[27]!==eO||ec[28]!==eD||ec[29]!==eN?(E={ownerUserId:tt,name:eH,provider:eq,mode:eY,isAddingSample:eU,addToCloneId:ep,onSuccess:eu,setState:eQ,setTrainingHandoff:e7,cleanup:R,suppressTrainingToasts:eD,uploadSampleBlob:eN,onTrainingStarted:eC,saveSampleOnly:eO,minDurationSeconds:7},ec[18]=ep,ec[19]=eU,ec[20]=7,ec[21]=eY,ec[22]=eH,ec[23]=eu,ec[24]=eC,ec[25]=tt,ec[26]=eq,ec[27]=eO,ec[28]=eD,ec[29]=eN,ec[30]=E):E=ec[30];let{submitSample:tl,submitPvcSamples:ts,submitSampleRef:tc}=function({ownerUserId:e,name:t,provider:i,mode:r,isAddingSample:a,addToCloneId:s,onSuccess:c,setState:u,setTrainingHandoff:d,cleanup:m,suppressTrainingToasts:f=!1,onTrainingStarted:p,uploadSampleBlob:x,saveSampleOnly:y=!1,minDurationSeconds:g}){let b=(0,B.useQueryClient)(),{mutateAsync:S}=(0,k.useMutation)((0,l.postVoiceSampleInitiateMutation)()),{mutateAsync:w}
2=(0,k.useMutation)((0,l.postVoiceSampleCompleteMutation)()),{mutateAsync:j}=(0,k.useMutation)((0,l.postVoiceCloneByIdSamplesMutation)()),{mutateAsync:N}=(0,k.useMutation)({...(0,l.postVoiceCloneTrainMutation)(),onSuccess:()=>{q(b,{ownerUserId:e})}}),C=(0,n.useRef)(null),_=(0,n.useCallback)(async(t,i,n,r,a)=>{let o=e?{ownerUserId:e}:void 0,l=t instanceof File?t:new File([t],"sample",{type:i});return(0,z.uploadMultipartFile)({file:l,signal:r,initiate:async()=>(await S({body:{contentType:i,durationSeconds:n,title:a,fileSize:t.size},query:o})).data,complete:async({id:e,s3UploadId:t,parts:i})=>{await w({body:{id:e,s3UploadId:t,parts:i},query:o})}})},[S,w,e]),R=(0,n.useCallback)(async(e,i,n,r,a)=>{let o=a??t;return x?x({blob:e,contentType:i,durationSeconds:n,title:o,signal:r}):_(e,i,n,r,o)},[t,_,x]),E=(0,n.useCallback)(async(n,r,a)=>{u("training");let l=N({body:{sampleIds:n,name:t,provider:i,mode:r},query:e?{ownerUserId:e}:void 0}).then(e=>{let t=e.data.run;if(!t)throw Error("Training started without a streamable run reference");return t});f||o.toast.promise(l,{loading:"Starting voice training...",success:"Voice training started",error:e=>(0,W.errorMessage)(e,"Failed to start voice training")});try{let e=await l;p?.(e),d(!0),c?.()}catch{d(!1),u(a)}},[t,e,i,N,c,u,d,f,p]),P=(0,n.useCallback)(async(i,{durationSeconds:n,contentType:l,fromUpload:d,title:f})=>{let p,x=g??7;if(!V(n,x)){o.toast.error(v(x)),u(d?"review":"idle");return}let h=l||i.type||"audio/webm",S=f??t;u("uploading");let w=new AbortController;C.current=w;try{p=await R(i,h,n,w.signal,S)}catch{w.signal.aborted||o.toast.error("Failed to upload voice sample"),u(d?"review":"idle");return}finally{C.current=null}if(y){o.toast.success("Sample saved"),m(),u("idle"),c?.();return}if(a&&s){try{await j({path:{id:s},body:{sampleId:p},query:e?{ownerUserId:e}:void 0}),Y(b,s,e),o.toast.success("Sample added"),m(),c?.()}catch(e){o.toast.error((0,W.errorMessage)(e,"Failed to add sample")),u(d?"review":"idle")}return}await E([p],r,d?"review":"idle")},[r,t,R,y,a,s,j,b,e,E,m,c,u,g]),I=(0,n.useCallback)(async e=>{let t;if(0===e.length)return;if(e.some(e=>!V(e.durationSeconds))){o.toast.error(h),u("review");return}u("uploading");let i=new AbortController;C.current=i;try{t=await Promise.all(e.map(e=>R(e.blob,e.contentType,e.durationSeconds,i.signal,e.fileName)))}catch{i.signal.aborted||o.toast.error("Failed to upload voice samples"),u("review");return}finally{C.current=null}if(y){o.toast.success("Samples saved"),m(),u("idle"),c?.();return}await E(t,"pvc","review")},[R,y,E,m,c,u]),A=(0,n.useRef)(P);return(0,n.useEffect)(()=>{A.current=P},[P]),{submitSample:P,submitPvcSamples:I,submitSampleRef:A}}(E);ec[31]!==eT||7!==ec[32]||ec[33]!==to||ec[34]!==e$||ec[35]!==tc?(P={state:e$,setState:eQ,setElapsed:e0,setRecordingStream:e2,submitSampleRef:tc,resetReviewSamples:tr,resetTrainingHandoff:ta,resetFormFields:to,manualStopOnly:eT,minDurationSeconds:7},ec[31]=eT,ec[32]=7,ec[33]=to,ec[34]=e$,ec[35]=tc,ec[36]=P):P=ec[36];let{stopRecording:tu,startRecordingCapture:td,handleTryAgain:tm,cleanupRecording:tf}=function(e){let t,r,a,l,s,c,u,d,m,f,p,x,h,y,g=(0,i.c)(47),{state:b,setState:S,setElapsed:w,setRecordingStream:j,submitSampleRef:N,resetReviewSamples:C,resetTrainingHandoff:_,resetFormFields:R,manualStopOnly:E,minDurationSeconds:P}=e,I=void 0!==E&&E,A=(0,n.useRef)(null);g[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],g[0]=t):t=g[0];let D=(0,n.useRef)(t),L=(0,n.useRef)(null),M=(0,n.useRef)(null),O=(0,n.useRef)(null),k=(0,n.useRef)(0),B=(0,n.useRef)(!1),z=(0,n.useRef)(0),F=(0,n.useRef)("submit"),G=(0,n.useRef)(!1),$=(0,n.useRef)(null),Q=(0,n.useRef)(null);g[1]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{Q.current?.(),Q.current=null},g[1]=r):r=g[1];let q=r;g[2]!==j?(a=()=>{if(M.current){for(let e of M.current.getTracks())e.stop();M.current=null}j(null)},g[2]=j,g[3]=a):a=g[3];let K=a;g[4]!==K||g[5]!==R||g[6]!==C||g[7]!==_||g[8]!==w||g[9]!==S?(l=()=>{L.current&&(clearInterval(L.current),L.current=null),K(),q(),G.current=!1,$.current=null,C(),_(),S("idle"),w(0),k.current=0,O.current=null,B.current=!1,z.current=z.current+1,F.current="submit",R(),D.current=[],A.current=null},g[4]=K,g[5]=R,g[6]=C,g[7]=_,g[8]=w,g[9]=S,g[10]=l):l=g[10];let H=l;g[11]!==w?(s=()=>
2{if(null===O.current)return 0;let e=Math.min(300,Math.floor((Date.now()-O.current)/1e3));return k.current=e,w(e),e},g[11]=w,g[12]=s):s=g[12];let Y=s;g[13]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{L.current&&(clearInterval(L.current),L.current=null)},g[13]=c):c=g[13];let W=c;g[14]!==Y?(u=()=>{W(),q(),Y(),A.current?.state==="recording"&&A.current.stop()},g[14]=Y,g[15]=u):u=g[15];let X=u;g[16]!==I||g[17]!==P||g[18]!==w||g[19]!==X||g[20]!==Y?(d=()=>{W(),O.current=Date.now(),k.current=0,G.current=!1,$.current=null,w(0),L.current=setInterval(()=>{let e=Y();if(e>=300){F.current="submit",X();return}!I&&V(e,P??7)&&G.current&&null!==$.current&&Date.now()-$.current>=4e3&&(F.current="submit",X())},250)},g[16]=I,g[17]=P,g[18]=w,g[19]=X,g[20]=Y,g[21]=d):d=g[21];let Z=d;g[22]!==K||g[23]!==w||g[24]!==S||g[25]!==X?(m=()=>{F.current="cancel",z.current=z.current+1,X(),q(),K(),B.current=!1,A.current=null,D.current=[],k.current=0,O.current=null,G.current=!1,$.current=null,w(0),S("idle")},g[22]=K,g[23]=w,g[24]=S,g[25]=X,g[26]=m):m=g[26];let J=m;g[27]!==P||g[28]!==K||g[29]!==S||g[30]!==Z||g[31]!==N||g[32]!==Y?(f=e=>{let t,i,n,r,a,l;if(A.current?.state==="recording")return;let s=z.current=z.current+1;B.current=!0,F.current="submit",M.current=e;let c=(t=U())?new globalThis.MediaRecorder(e,{mimeType:t}):new globalThis.MediaRecorder(e);A.current=c,D.current=[],c.ondataavailable=e=>{e.data.size>0&&D.current.push(e.data)},c.onerror=()=>{s===z.current&&(o.toast.error("Recording failed"),F.current="cancel","recording"===c.state&&c.stop())},c.onstop=()=>{if(s!==z.current)return;if(B.current=!1,A.current=null,O.current=null,q(),K(),"cancel"===F.current){D.current=[];return}let e=c.mimeType||U()||"audio/webm",t=new Blob(D.current,{type:e}),i=k.current||Y(),n=P??7;if(!V(i,n)){o.toast.error(v(n)),D.current=[],S("idle");return}N.current(t,{durationSeconds:i,contentType:e,fromUpload:!1})},c.start(250),Z(),Q.current?.(),(n=(i=new(T())).createAnalyser()).fftSize=512,n.smoothingTimeConstant=.65,(r=i.createMediaStreamSource(e)).connect(n),a=0,l=()=>{(e=>{e>=.1&&(G.current=!0,$.current=Date.now())})(function(e){let t=new Uint8Array(e.fftSize);e.getByteTimeDomainData(t);let i=0;for(let e=0;e<t.length;e++){let n=Math.abs((t[e]??128)-128)/128;n>i&&(i=n)}return Math.min(1,1.35*i)}(n)),a=requestAnimationFrame(l)},(async()=>{"suspended"===i.state&&await i.resume(),a=requestAnimationFrame(l)})(),Q.current=()=>{cancelAnimationFrame(a),r.disconnect(),i.close()}},g[27]=P,g[28]=K,g[29]=S,g[30]=Z,g[31]=N,g[32]=Y,g[33]=f):f=g[33];let ee=f;g[34]!==ee||g[35]!==j||g[36]!==S?(p=async()=>{try{let e=await navigator.mediaDevices.getUserMedia({audio:{autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0}}),t=new(T());"suspended"===t.state&&await t.resume(),await t.close(),M.current=e,j(e),S("recording"),ee(e)}catch(e){if("NotAllowedError"===e.name||"PermissionDeniedError"===e.name)return void o.toast.error("Microphone access denied");if("NotFoundError"===e.name)return void o.toast.error("No microphone found");o.toast.error("Could not access microphone")}},g[34]=ee,g[35]=j,g[36]=S,g[37]=p):p=g[37];let et=p;return g[38]!==K||g[39]!==b?(x=()=>{if("recording"===b)return()=>{W(),q(),K()}},h=[b,W,q,K],g[38]=K,g[39]=b,g[40]=x,g[41]=h):(x=g[40],h=g[41]),(0,n.useEffect)(x,h),g[42]!==H||g[43]!==J||g[44]!==et||g[45]!==X?(y={stopRecording:X,startRecordingCapture:et,handleTryAgain:J,cleanupRecording:H},g[42]=H,g[43]=J,g[44]=et,g[45]=X,g[46]=y):y=g[46],y}(P);ec[37]!==tf?(L=()=>{tn.current=tf},O=[tf],ec[37]=tf,ec[38]=L,ec[39]=O):(L=ec[38],O=ec[39]),(0,n.useEffect)(L,O),ec[40]!==tf?(F=()=>()=>tf(),G=[tf],ec[40]=tf,ec[41]=F,ec[42]=G):(F=ec[41],G=ec[42]),(0,n.useEffect)(F,G),ec[43]!==eX||ec[44]!==eU||7!==ec[45]||ec[46]!==ek?($=async e=>{let t=[],i=!1,n=!1;for(let r of e){if(r.size>I(eX)){i=!0;continue}let e=await M(r);if(!V(e,7)){n=!0;continue}t.push({id:crypto.randomUUID(),blob:r,url:URL.createObjectURL(r),fileName:r.name,contentType:r.type||"audio/webm",durationSeconds:e})}i&&o.toast.error(`File exceeds the ${A(eX)} limit`),n&&o.toast.error(ek),0!==t.length&&(e4(e=>eU?(D(e),t.slice(0,1)):"pvc"===eX&&e.length>0?[...e,...t]:(D(e),t)),eQ("review"))},ec[43]=eX,ec[44]=eU,ec[45]=7,ec[46]=ek,ec[47]=$):$=ec[47];let tp=$;ec[48]!==tp||ec[49]!==eX||ec[50]!==eU?(Q=e=>{if(0===e.length)return;if(eU){let t=e[0];t&&tp([t]);return}if("pvc"===eX)return void tp(e);let t=e[0];t&&tp([t])},ec[48]=tp,ec[49]=eX,ec[50]=eU,ec[51]=Q):Q=ec[51];let tx=Q;ec[52]!==eX?(K=e=>{"file-too-large"===e[0]?.errors[0]?.code?o.toast.error(`File exceeds the ${A(eX)} limit`):o.toast.error("Upload MP3, WAV, OGG, M4A, WEBM, MP4, or MOV")},ec[52]=eX,ec[53]=K):K=ec[53];let th=K;ec[54]!==tm||ec[55]!==ti||ec[56]!==e$?(H=()=>{ti&&("recording"===e$&&tm(),eW("pvc"))},ec[54]=tm,ec[55]=ti,ec[56]=e$,ec[57]=H):H=ec[57];let tv=H;ec[58]===Symbol.for("react.memo_cache_sentinel")?(et=()=>{eW("ivc")},ec[58]=et):et=ec[58];let ty=et;ec[59]!==e6||ec[60]!==e3?(ei=e=>{let t=e3.find(t=>
2t.id===e);t&&URL.revokeObjectURL(t.url);let i=e3.filter(t=>t.id!==e);e4(i),0===i.length&&e6&&eQ("idle")},ec[59]=e6,ec[60]=e3,ec[61]=ei):ei=ec[61];let tg=ei,tb=e3.reduce(X,0),tS=e3.length>0&&tb>=1800;ec[62]!==tS||ec[63]!==eX||ec[64]!==eU||7!==ec[65]||ec[66]!==ek||ec[67]!==e3||ec[68]!==ts||ec[69]!==tl?(en=()=>{if(0===e3.length)return;if(e3.some(e=>!V(e.durationSeconds,7)))return void o.toast.error(ek);if(eU){let e=e3[0];if(!e)return;tl(e.blob,{durationSeconds:e.durationSeconds,contentType:e.contentType,fromUpload:!0,title:e.fileName});return}if("pvc"===eX){if(!tS)return;ts(e3);return}let e=e3[0];e&&tl(e.blob,{durationSeconds:e.durationSeconds,contentType:e.contentType,fromUpload:!0,title:e.fileName})},ec[62]=tS,ec[63]=eX,ec[64]=eU,ec[65]=7,ec[66]=ek,ec[67]=e3,ec[68]=ts,ec[69]=tl,ec[70]=en):en=ec[70];let tw=en,tj="pvc"===eX,tN="idle"===e$,tC="recording"===e$,t_="review"===e$,tR="uploading"===e$||!eU&&"training"===e$,tE="uploading"===e$?"uploading":e5?"training":"starting",tP=t_&&e3.length>0&&(eU||"ivc"===eX||tS),tI=eU?"pvc"===eY:tj,tA="onboarding"===eL&&eM&&eZ&&(tN||tC),tV=!eR,tT=!tA&&!eV&&eZ&&(tN||tC),tD=!tA&&tC,tL=!eV&&(tN&&eZ||tC),tM=!eV&&tN&&eZ,tO=!tR&&(tN||t_&&!eU&&(tj||eV)),tU=(void 0===ex||ex)&&eU&&tN&&!eR&&"pvc"===eY,tk=!eV&&!eU&&!eR&&(tN&&"ivc"===eX||(tN||t_)&&tj);ec[71]!==t_||ec[72]!==tV||ec[73]!==tT||ec[74]!==tD||ec[75]!==tL||ec[76]!==tM||ec[77]!==tO||ec[78]!==tU||ec[79]!==tk||ec[80]!==tA?(er={title:tV,centeredCapture:tA,scriptCard:tT,recordingStatus:tD,reviewList:t_,captureActions:tL,uploadSeparator:tM,uploadSection:tO,reviewFooter:t_,addSamplePvcNotice:tU,modeToggleNotice:tk},ec[71]=t_,ec[72]=tV,ec[73]=tT,ec[74]=tD,ec[75]=tL,ec[76]=tM,ec[77]=tO,ec[78]=tU,ec[79]=tk,ec[80]=tA,ec[81]=er):er=ec[81];let tB=er,tz=tC?"Recording...":t_?tj&&!eU?"Review Your Samples":"Review Your Sample":tj&&!eU?N:eE,tF=tC?"stop":"start",tG="onboarding"===eL?7:10;ec[82]!==eJ||7!==ec[83]?(ea=V(eJ,7),ec[82]=eJ,ec[83]=7,ec[84]=ea):ea=ec[84];let t$=ea,tQ=eT&&eJ>=tG?"Upload and Continue":"Stop Recording",tq=tC&&(eT?eJ<tG:!t$),tK="onboarding"===eL?"Start recording":"Start Recording",tH="onboarding"===eL?b:g,tY=eV||"pvc"===eX;return ec[85]!==tC||ec[86]!==td||ec[87]!==tu?(eo=tC?tu:()=>void td(),ec[85]=tC,ec[86]=td,ec[87]=tu,ec[88]=eo):eo=ec[88],ec[89]!==e3.length||ec[90]!==e$?(el=()=>{0===e3.length&&"review"===e$&&eQ("idle")},ec[89]=e3.length,ec[90]=e$,ec[91]=el):el=ec[91],ec[92]!==t$||ec[93]!==tP||ec[94]!==tS||ec[95]!==eL||ec[96]!==tf||ec[97]!==eX||ec[98]!==eJ||ec[99]!==eR||ec[100]!==tg||ec[101]!==tw||ec[102]!==tv||ec[103]!==tm||ec[104]!==tx||ec[105]!==th||ec[106]!==eU||ec[107]!==tN||ec[108]!==tR||ec[109]!==tj||ec[110]!==tC||ec[111]!==t_||ec[112]!==tq||ec[113]!==tF||ec[114]!==ti||ec[115]!==e1||ec[116]!==e3||ec[117]!==tH||ec[118]!==tz||ec[119]!==eM||ec[120]!==tK||ec[121]!==tQ||ec[122]!==eP||ec[123]!==tY||ec[124]!==eo||ec[125]!==el||ec[126]!==e8||ec[127]!==e9||ec[128]!==tI||ec[129]!==tE||ec[130]!==eV||ec[131]!==eZ||ec[132]!==tB?(es={embedInSheet:eR,submitLabel:eP,shellTitle:tz,effectiveMode:eX,isAddingSample:eU,uploadOnly:eV,isLoading:tR,trainingPhase:tE,isIdle:tN,isRecording:tC,isReview:t_,isPvc:tj,useIvcCapture:eZ,elapsed:eJ,recordingStream:e1,reviewSamples:e3,canSubmitPvc:tS,trainNoticeIsPvc:tI,proVoiceGranted:ti,allowMultipleUpload:tY,primaryPhase:tF,primaryDisabled:tq,stopRecordingLabel:tQ,startRecordingLabel:tK,captureVariant:eL,scriptLabel:tH,showCapturePreview:eM,visibility:tB,titleMotionProps:e9,crossfadeTransition:e8,canSubmit:tP,canStopRecording:t$,isBusy:tR,onPrimaryClick:eo,onTryAgain:tm,onTrainPvc:tv,onSwitchToIvc:ty,onRemoveSample:tg,onReviewExitComplete:el,onUploadFilesAccepted:tx,onUploadDropRejected:th,onCancelReview:tf,onSubmitReview:tw,submit:tw},ec[92]=t$,ec[93]=tP,ec[94]=tS,ec[95]=eL,ec[96]=tf,ec[97]=eX,ec[98]=eJ,ec[99]=eR,ec[100]=tg,ec[101]=tw,ec[102]=tv,ec[103]=tm,ec[104]=tx,ec[105]=th,ec[106]=eU,ec[107]=tN,ec[108]=tR,ec[109]=tj,ec[110]=tC,ec[111]=t_,ec[112]=tq,ec[113]=tF,ec[114]=ti,ec[115]=e1,ec[116]=e3,ec[117]=tH,ec[118]=tz,ec[119]=eM,ec[120]=tK,ec[121]=tQ,ec[122]=eP,ec[123]=tY,ec[124]=eo,ec[125]=el,ec[126]=e8,ec[127]=e9,ec[128]=tI,ec[129]=tE,ec[130]=eV,ec[
2131]=eZ,ec[132]=tB,ec[133]=es):es=ec[133],es}(d);return x[3]!==u||x[4]!==y?(f=(0,t.jsx)(td,{value:y,children:u}),x[3]=u,x[4]=y,x[5]=f):f=x[5],f}function tA(e){let n,r,a,o,l=(0,i.c)(6);l[0]!==e?(n=void 0===e?{}:e,l[0]=e,l[1]=n):n=l[1];let s=n;return l[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(tm,{}),a=(0,t.jsx)(tP,{}),l[2]=r,l[3]=a):(r=l[2],a=l[3]),l[4]!==s?(o=(0,t.jsxs)(tI,{...s,children:[r,a]}),l[4]=s,l[5]=o):o=l[5],o}e.s(["VoiceRecorderActionsSection",0,tj,"VoiceRecorderAddSamplePvcNoticeSection",0,tR,"VoiceRecorderCenteredCaptureSection",0,tg,"VoiceRecorderDefaultContent",0,tP,"VoiceRecorderInstructionsSection",0,tb,"VoiceRecorderIvcGuidanceSection",0,tv,"VoiceRecorderModeToggleNoticeSection",0,tE,"VoiceRecorderRecordingStatusSection",0,tS,"VoiceRecorderReviewFooterSection",0,t_,"VoiceRecorderReviewSection",0,tw,"VoiceRecorderSections",0,tp,"VoiceRecorderShell",0,tf,"VoiceRecorderShellProvider",0,td,"VoiceRecorderTitle",0,tx,"VoiceRecorderTrainingProgress",0,tm,"VoiceRecorderUploadSection",0,tC,"VoiceRecorderUploadSeparatorSection",0,tN,"useVoiceRecorderShell",0,tu],630659),tA.Provider=tI,tA.TrainingProgress=tm,tA.Shell=tf,tA.Sections=tp,tA.Title=tx,tA.IvcGuidance=tv,tA.CenteredCapture=tg,tA.Instructions=tb,tA.RecordingStatus=tS,tA.Review=tw,tA.Actions=tj,tA.UploadSeparator=tN,tA.Upload=tC,tA.ReviewFooter=t_,tA.AddSamplePvcNotice=tR,tA.ModeToggleNotice=tE,tA.DefaultContent=tP,e.s(["VoiceRecorder",0,tA],531721)}]); 3 4//# debugId=082e49b2-5e7f-7ea8-430e-972741f9eaaa
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.