PageSourceSearch

https://suno.com/_next/static/immutable/chunks/14tkpe1bbxyej.js

js suno.com collected 2026-10-01 08:30:48 UTC 118,628 bytes, 15 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="daeb3b8a-5133-593a-8db5-51394f5aeff3")}catch(e){}}();
3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,416736,e=>{"use strict";e.i(268205),e.s([])},954982,e=>{"use strict";e.i(808039),e.s(["restrictToVerticalAxis",0,e=>{let{transform:t}=e;return{...t,x:0}}])},313262,e=>{e.q("/_next/static/immutable/media/core-worker.00_wie75edhtj.js")},875924,e=>{"use strict";var t=e.i(498739),r=e.i(126002),n=e.i(810789),i=e.i(23257),a=e.i(97546),s=e.i(994001);function o(e={}){let l=s.WINDOW.document,u=l?.head||l?.body;if(!u){a.DEBUG_BUILD&&r.debug.error("[showReportDialog] Global document not defined");return}let c=(0,t.getCurrentScope)(),d=(0,t.getClient)(),f=d?.getDsn();if(!f){a.DEBUG_BUILD&&r.debug.error("[showReportDialog] DSN not configured");return}let p={...e,user:{...c.getUser(),...e.user},eventId:e.eventId||(0,n.lastEventId)()},h=s.WINDOW.document.createElement("script");h.async=!0,h.crossOrigin="anonymous",h.src=(0,i.getReportDialogEndpoint)(f,p);let{onLoad:m,onClose:g}=p;if(m&&(h.onload=m),g){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{g()}finally{s.WINDOW.removeEventListener("message",e)}};s.WINDOW.addEventListener("message",e)}u.appendChild(h)}var l=e.i(249892);let u="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var c=e.i(335666);e.i(705927).default;let d={componentStack:null,error:null,eventId:null};class f extends l.Component{constructor(e){super(e),this.state=d,this._openFallbackReportDialog=!0;const r=(0,t.getClient)();r&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=r.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&o({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,r){let{componentStack:i}=r,{beforeCapture:a,onError:s,showDialog:u,dialogOptions:d}=this.props;(0,t.withScope)(f=>{a&&a(f,e,i);let p=function(e,{componentStack:r},i){let a;if(null!==(a=l.version.match(/^([^.]+)/))&&parseInt(a[0])>=17&&(0,c.isError)(e)&&r){let t,n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=r,t=new WeakSet,function e(r,n){if(!t.has(r)){if(r.cause)return t.add(r),e(r.cause,n);r.cause=n}}(e,n)}return(0,t.withScope)(t=>(t.setContext("react",{componentStack:r}),(0,n.captureException)(e,i)))}(e,r,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});s&&s(e,i,p),u&&(this._lastEventId=p,this._openFallbackReportDialog&&o({...d,eventId:p})),this.setState({error:e,componentStack:i,eventId:p})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:r}=this.state,{onUnmount:n}=this.props;n&&(this.state===d?n(null,null,null):n(e,t,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:r,eventId:n}=this.state;e&&e(t,r,n),this.setState(d)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;let i="function"==typeof e?l.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return l.isValidElement(i)?i:(e&&u&&r.debug.warn("fallback did not produce a valid ReactElement"),null)}}e.s(["ErrorBoundary",0,f],875924)},794880,909524,e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r,n="dahlia",i="https://js.stripe.com",a="".concat(i,"/").concat(n,"/stripe.js"),s=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,o=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,l=function(){for(var e=document.querySelectorAll('script[src^="'.concat(i,'"]')),t=0;t<e.length;t++){var r,n=e[t];if(r=n.src,s.test(r)||o.test(r))return n}return null},u=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(a).concat(t);var n=document.head||document.body;if(!n)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r},c=function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"9.0.1",startTime:t})},d=null,f=null,p=null,h=function(e,r,i){if(null===e)return null;var a,s=r[0];if("string"!=typeof s)throw Error("Expected publishable key to be of type string, got type ".concat(t(s)," instead."));var o=s.match(/^pk_test/),l=3===(a=e.version)?"v3":a;o&&l!==n&&console.warn("Stripe.js@".concat(l," was loaded on the page, but @stripe/stripe-js@").concat("9.0.1"," expected Stripe.js@").concat(n,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var u=e.apply(void 0,r);return c(u,i),u},m=!1,g=function(){return r||(r=(null!==d?d:(d=new Promise(function(e,t){if("u"<typeof window||"u"<typeof document)return void e(null);if(window.Stripe,window.Stripe)return void e(window.Stripe);try{var r,n=l();n?n&&null!==p&&null!==f&&(n.removeEventListener("load",p),n.removeEventListener("error",f),null==(r=n.parentNode)||r.removeChild(n),n=u(null)):n=u(null),p=function(){window.Stripe?e(window.Stripe):t(Error("Stripe.js not available"))},f=function(e){t(Error("Failed to load Stripe.js",{cause:e}))},n.addEventListener("load",p),n.addEventListener("error",f)}catch(e){t(e);return}})).catch(function(e){return d=null,Promise.reject(e)})).catch(function(e){return r=null,Promise.reject(e)}))};Promise.resolve().then(function(){return g()}).catch(function(e){m||console.warn(e)}),e.s(["loadStripe",0,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];m=!0;var n=Date.now();return g().then(function(e){return h(e,t,n)})}],909524),e.s([],794880)},871620,e=>{"use strict";class t{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return r(this.animations,"duration")}get iterationDuration(){return r(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function r(e,t){let r=0;for(let n=0;n<e.length;n++){let i=e[n][t];null!==i&&i>r&&(r=i)}return r}class n extends t{then(e,t){return this.finished.finally(e).then(()=>{})}}var i=e.i(57307),a=e.i(702915),s=e.i(512065),o=e.i(236585),l=e.i(805639),u=e.i(181142),c=e.i(620117),d=e.i(659056),f=e.i(241058),p=e.i(49
30692),h=e.i(26809),m=e.i(633191);function g(e,t){var r;let n;return(0,m.isEasingArray)(e)?e[r=e.length,((t-0)%(n=r-0)+n)%n+0]:e}var v=e.i(427772);function y(e){return"object"==typeof e&&!Array.isArray(e)}function w(e,t,r,n){return null==e?[]:"string"==typeof e&&y(t)?(0,v.resolveElements)(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>null!=e):[e]}function x(e,t,r,n){return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?r:t.startsWith("<")?Math.max(0,r+parseFloat(t.slice(1))):n.get(t)??e}var b=e.i(826086);function C(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}function S(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function _(e,t){return t[e]||(t[e]=[]),t[e]}let k=e=>"number"==typeof e,A=e=>e.every(k);var j=e.i(597849),E=e.i(499737),P=e.i(771788),M=e.i(838752),T=e.i(497474),N=e.i(141577),R=e.i(597157),I=e.i(427684),O=e.i(96819);class L extends O.VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let r=e[t];if("string"==typeof r||"number"==typeof r)return r}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,I.createBox)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function D(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=(0,M.isSVGElement)(e)&&!(0,T.isSVGSVGElement)(e)?new N.SVGVisualElement(t):new R.HTMLVisualElement(t);r.mount(e),E.visualElementStore.set(e,r)}function q(e){let t=new L({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),E.visualElementStore.set(e,t)}function B(e,t,r,n){let i=[];if((0,o.isMotionValue)(e)||"number"==typeof e||"string"==typeof e&&!y(t))i.push((0,j.animateSingleValue)(e,y(t)&&t.default||t,r&&r.default||r));else{if(null==e)return i;let a=w(e,t,n),s=a.length;(0,h.invariant)(!!s,"No valid elements provided.","no-valid-elements");for(let e=0;e<s;e++){let n=a[e],o=n instanceof Element?D:q;E.visualElementStore.has(n)||o(n);let l=E.visualElementStore.get(n),u={...r};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(e,s)),i.push(...(0,P.animateTarget)(l,{...t,transition:u},{}))}}return i}let U=function(e={}){let{scope:t,reduceMotion:r}=e;return function(e,m,v){var y;let k,j=[];if(Array.isArray(e)&&e.some(Array.isArray)){let n,{onComplete:v,...E}=m||{};"function"==typeof v&&(k=v),y=void 0!==r?{reduceMotion:r,...E}:E,n=[],(function(e,{defaultTransition:t={},...r}={},n,a){let s=t.duration||.3,m=new Map,v=new Map,y={},k=new Map,j=0,E=0,P=0;for(let r=0;r<e.length;r++){let f=e[r];if("string"==typeof f){k.set(f,E);continue}if(!Array.isArray(f)){k.set(f.name,x(E,f.at,j,k));continue}let[m,C,N={}]=f;void 0!==N.at&&(E=x(E,N.at,j,k));let R=0,I=(e,r,n,o=0,f=0)=>{var m;let v=Array.isArray(m=e)?m:[m],{delay:y=0,times:w=(0,l.defaultOffset)(v),type:x=t.type||"keyframes",repeat:C,repeatType:S,repeatDelay:_=0,...k}=r,{ease:j=t.ease||"easeOut",duration:M}=r,T="function"==typeof y?y(o,f):y,N=v.length,I=(0,u.isGenerator)(x)?x:a?.[x||"keyframes"];if(N<=2&&I){let e=100;2===N&&A(v)&&(e=Math.abs(v[1]-v[0]));let r={...t,...k};void 0!==M&&(r.duration=(0,p.secondsToMilliseconds)(M));let n=(0,c.createGeneratorEasing)(r,e,I);j=n.ease,M=n.duration}M??(M=s);let O=E+T;1===w.length&&0===w[0]&&(w[1]=1);let L=w.length-v.length;if(L>0&&(0,d.fillOffset)(w,L),1===v.length&&v.unshift(null),C){(0,h.invariant)(C<20,"Repeat count too high, must be less than 20","repeat-count-high"),M*=C+1;let e=[...v],t=[...w],r=[...j=Array.isArray(j)?[...j]:[j]];for(let n=0;n<C;n++){v.push(...e);for(let i=0;i<e.length;i++)w.push(t[i]+(n+1)),j.push(0===i?"linear":g(r,i-1))}for(let e=0;e<w.length;e++)w[e]=w[e]/(C+1)}let D=O+M;!function(e,t,r,n,a,s){for(let t=0;t<e.length;t++){let r=e[t];r.at>a&&r.at<s&&((0,i.removeItem)(e,r),t--)}for(let i=0;i<t.length;i++)e.push({value:t[i],at:(0,b.mixNumber)(a,s,n[i]),easing:g(r,i)})}(n,v,j,w,O,D),R=Math.max(T+M,R),P=Math.max(D,P)};if((0,o.isMotionValue)(m))I(C,N,_("default",S(m,v)));else{let e=w(m,C,n,y),t=e.length;for(let r=0;r<t;r++){let n=S(e[r],v);for(let e in C){var M,T;I(C[e],(M=N,T=e,M&&M[T]?{...M,...M[T]}:{...M}),_(e,n),r,t)}}}j=E,E+=R}return v.forEach((e,n)=>{for(let i in e){let a=e[i];a.sort(C);let s=[],o=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:r,easing:n}=a[e];s.push(r),o.push((0,f.progress)(0,P,t)),l.push(n||"easeOut")}0!==o[0]&&(o.unshift(0),s.unshift(s[0]),l.unshift("easeInOut")),1!==o[o.length-1]&&(o.push(1),s.push(null)),m.has(n)||m.set(n,{keyframes:{},transition:{}});let u=m.get(n);u.keyframes[i]=s;let{type:c,...d}=t;u.transition[i]={...d,duration:P,ease:l,times:o,...r}}}),m})(e.map(e=>{if(Array.isArray(e)&&"function"==typeof e[0]){let t=e[0],r=(0,a.motionValue)(0);return(r.on("change",t),1===e.length)?[r,[0,1]]:2===e.length?[r,[0,1],e[1]]:[r,e[1],e[2]]}return e}),y,t,{spring:s.spring}
3).forEach(({keyframes:e,transition:t},r)=>{n.push(...B(r,e,t))}),j=n}else{let{onComplete:n,...i}=v||{};"function"==typeof n&&(k=n),j=B(e,m,void 0!==r?{reduceMotion:r,...i}:i,t)}let E=new n(j);return k&&E.finished.then(k),t&&(t.animations.push(E),E.finished.then(()=>{(0,i.removeItem)(t.animations,E)})),E}}();e.s(["animate",0,U],871620)},160519,e=>{"use strict";var t=e.i(702915),r=e.i(249892),n=e.i(392449),i=e.i(562003);e.s(["useMotionValue",0,function(e){let a=(0,i.useConstant)(()=>(0,t.motionValue)(e)),{isStatic:s}=(0,r.useContext)(n.MotionConfigContext);if(s){let[,t]=(0,r.useState)(e);(0,r.useEffect)(()=>a.on("change",t),[])}return a}])},174334,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let o="u">typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return o?new o:new s}function u(e){return o?o.bind(e):s.bind(e)}function c(){return o?o.snapshot():function(e,...t){return e(...t)}}},473395,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(174334).createAsyncLocalStorage)()},615040,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(473395)},40403,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let n=e.r(982693);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},74181,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return l}});let n=e.r(818297),i=e.r(177888),a=e.r(615040),s=e.r(116971),o=e.r(48484);function l({moduleIds:e}){if("u">typeof window)return null;let t=a.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let u=(0,o.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},426128,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let n=e.r(818297),i=e.r(249892),a=e.r(40403),s=e.r(74181);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},r=(0,i.lazy)(()=>t.loader().then(o)),u=t.loading;function c(e){let o=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,c=l?i.Suspense:i.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(c,{...l?{fallback:o}:{},children:d})}return c.displayName="LoadableComponent",c}},446600,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(836437)._(e.r(426128));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
3dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},35530,e=>{"use strict";var t=e.i(249892);function r(){return(r=Object.assign.bind()).apply(null,arguments)}e.i(818297);var n=["shift","alt","meta","mod","ctrl"],i={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function a(e){return(e&&i[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function s(e,t){return void 0===t&&(t=","),e.split(t)}function o(e,t,i){void 0===t&&(t="+");var s=e.toLocaleLowerCase().split(t).map(function(e){return a(e)}),o={alt:s.includes("alt"),ctrl:s.includes("ctrl")||s.includes("control"),shift:s.includes("shift"),meta:s.includes("meta"),mod:s.includes("mod")},l=s.filter(function(e){return!n.includes(e)});return r({},o,{keys:l,description:i,hotkey:e})}"u">typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.ke
3y&&c([a(e.key),a(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&d([a(e.key),a(e.code)])})),"u">typeof window&&window.addEventListener("blur",function(){l.clear()});var l=new Set;function u(e){return Array.isArray(e)}function c(e){var t=Array.isArray(e)?e:[e];l.has("meta")&&l.forEach(function(e){return!n.includes(e)&&l.delete(e.toLowerCase())}),t.forEach(function(e){return l.add(e.toLowerCase())})}function d(e){var t=Array.isArray(e)?e:[e];"meta"===e?l.clear():t.forEach(function(e){return l.delete(e.toLowerCase())})}function f(e,t){void 0===t&&(t=!1);var r,n=e.target,i=e.composed,a=null;return(a=(r=n).tagName&&!r.tagName.startsWith("-")&&r.tagName.includes("-")&&i?e.composedPath()[0]&&e.composedPath()[0].tagName:n&&n.tagName,u(t))?!!(a&&t&&t.some(function(e){var t;return e.toLowerCase()===(null==(t=a)?void 0:t.toLowerCase())})):!!(a&&t&&t)}var p=function(e,t,r){void 0===r&&(r=!1);var n,i=t.alt,s=t.meta,o=t.mod,c=t.shift,d=t.ctrl,f=t.keys,p=e.key,h=e.code,m=e.ctrlKey,g=e.metaKey,v=e.shiftKey,y=e.altKey,w=a(h),x=p.toLowerCase();if(!(null!=f&&f.includes(w))&&!(null!=f&&f.includes(x))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(w))return!1;if(!r){if(!y===i&&"alt"!==x||!v===c&&"shift"!==x)return!1;if(o){if(!g&&!m)return!1}else if(!g===s&&"meta"!==x&&"os"!==x||!m===d&&"ctrl"!==x&&"control"!==x)return!1}return!!(f&&1===f.length&&(f.includes(x)||f.includes(w)))||(f?(void 0===n&&(n=","),(u(f)?f:f.split(n)).every(function(e){return l.has(e.trim().toLowerCase())})):!f||!1)},h=(0,t.createContext)(void 0),m=(0,t.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),g=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},v="u">typeof window?t.useLayoutEffect:t.useEffect;e.s(["useHotkeys",0,function(e,r,n,i){var l,y=(0,t.useState)(null),w=y[0],x=y[1],b=(0,t.useRef)(!1),C=n instanceof Array?i instanceof Array?void 0:i:n,S=u(e)?e.join(null==C?void 0:C.splitKey):e,_=n instanceof Array?n:i instanceof Array?i:void 0,k=(0,t.useCallback)(r,null!=_?_:[]),A=(0,t.useRef)(k);_?A.current=k:A.current=r;var j=(!function e(t,r){return t&&r&&"object"==typeof t&&"object"==typeof r?Object.keys(t).length===Object.keys(r).length&&Object.keys(t).reduce(function(n,i){return n&&e(t[i],r[i])},!0):t===r}((l=(0,t.useRef)(void 0)).current,C)&&(l.current=C),l.current),E=(0,t.useContext)(m).enabledScopes,P=(0,t.useContext)(h);return v(function(){var e;if((null==j?void 0:j.enabled)!==!1&&(e=null==j?void 0:j.scopes,0===E.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!e||E.some(function(t){return e.includes(t)})||E.includes("*"))){var t=function(e,t){var r;if(void 0===t&&(t=!1),!f(e,["input","textarea","select"])||f(e,null==j?void 0:j.enableOnFormTags)){if(null!==w){var n=w.getRootNode();if((n instanceof Document||n instanceof ShadowRoot)&&n.activeElement!==w&&!w.contains(n.activeElement))return void g(e)}(null==(r=e.target)||!r.isContentEditable||null!=j&&j.enableOnContentEditable)&&s(S,null==j?void 0:j.splitKey).forEach(function(r){var n,i,a,s=o(r,null==j?void 0:j.combinationKey);if(p(e,s,null==j?void 0:j.ignoreModifiers)||null!=(a=s.keys)&&a.includes("*")){if(null!=j&&null!=j.ignoreEventWhen&&j.ignoreEventWhen(e)||t&&b.current)return;if(("function"==typeof(n=null==j?void 0:j.preventDefault)&&n(e,s)||!0===n)&&e.preventDefault(),"function"==typeof(i=null==j?void 0:j.enabled)?!i(e,s):!0!==i&&void 0!==i)return void g(e);A.current(e,s),t||(b.current=!0)}})}}
3,r=function(e){void 0!==e.key&&(c(a(e.code)),((null==j?void 0:j.keydown)===void 0&&(null==j?void 0:j.keyup)!==!0||null!=j&&j.keydown)&&t(e))},n=function(e){void 0!==e.key&&(d(a(e.code)),b.current=!1,null!=j&&j.keyup&&t(e,!0))},i=w||(null==C?void 0:C.document)||document;return i.addEventListener("keyup",n,null==C?void 0:C.eventListenerOptions),i.addEventListener("keydown",r,null==C?void 0:C.eventListenerOptions),P&&s(S,null==j?void 0:j.splitKey).forEach(function(e){return P.addHotkey(o(e,null==j?void 0:j.combinationKey,null==j?void 0:j.description))}),function(){i.removeEventListener("keyup",n,null==C?void 0:C.eventListenerOptions),i.removeEventListener("keydown",r,null==C?void 0:C.eventListenerOptions),P&&s(S,null==j?void 0:j.splitKey).forEach(function(e){return P.removeHotkey(o(e,null==j?void 0:j.combinationKey,null==j?void 0:j.description))})}}},[w,S,j,E]),x}])},741467,e=>{"use strict";var t=e.i(917395);let r=new Set(Object.values(t.Currency));function n(e){let t=e?.toUpperCase();return t&&r.has(t)?t:void 0}function i(e,r=t.DEFAULT_CURRENCY){return n(e)??r}e.s(["getBillingCurrencyNotice",0,function(e,t){let r=e?.presentment_currency?.toUpperCase();if(!r)return null;let n=i(e?.plan_currency);return t!==n?null:{displayCurrency:n,billingCurrency:r}},"getCurrencyOptions",0,function(e,r){let n=new Set((e&&e.length>0?e:r.flatMap(e=>(e.prices??[]).map(e=>e.currency))).map(e=>e.toUpperCase()));return t.CURRENCY_OPTIONS.filter(e=>n.has(e.value))},"getPayloadCountryCode",0,function(e){if(e)return e.country_code??null},"hasTopupCurrencyNotice",0,function(e,t){let r=e?.presentment_currency?.toUpperCase();return!!r&&r!==t},"isCurrencySelectorEligible",0,function(e){return!e?.is_active&&!e?.is_paused&&!e?.is_past_due},"parseCurrency",0,i,"shouldShowCurrencyCode",0,function({currency:e,countryCode:r}){return e===t.Currency.USD&&void 0!==r&&r?.toUpperCase()!=="US"},"tryParseCurrency",0,n,"validateCurrency",0,function(e,r,n){return r.includes(e)?e:void 0!==n&&r.includes(n)?n:r[0]??t.Currency.USD}])},172329,e=>{"use strict";var t=e.i(673157),r=e.i(196266),n=e.i(337150),i=e.i(554483);let a={[r.AppContentBackdropVariant.Raw]:{height:r.APP_CONTENT_BACKDROP_HEIGHT,opacity:1,blur:"0px"},[r.AppContentBackdropVariant.BlurBackground]:{height:r.APP_CONTENT_BACKDROP_HEIGHT,opacity:r.APP_CONTENT_BACKDROP_SCRIM_OPACITY,blur:r.APP_CONTENT_BACKDROP_BLUR,attachment:n.ContentBackdropAttachment.Scroll},[r.AppContentBackdropVariant.BlurNav]:{height:r.APP_CONTENT_BACKDROP_HEIGHT,opacity:1,blur:"0px",scrim:"transparent",fadeStart:.35,attachment:n.ContentBackdropAttachment.Scroll,navBlur:r.APP_CONTENT_BACKDROP_BLUR,navOpacity:r.APP_CONTENT_BACKDROP_SCRIM_OPACITY,navScrim:"var(--content-backdrop-surface-bg)"}},s=r.AppContentBackdropVariant.BlurBackground,o=a[s];e.s(["APP_CONTENT_BACKDROP_DEFAULTS",0,o,"default",0,e=>{let{variant:r=s,...n}=e;return(0,t.jsx)(i.default,{...a[r],...n})}])},196266,e=>{"use strict";var t,r=((t={}).Raw="raw",t.BlurBackground="blurBackground",t.BlurNav="blurNav",t);e.s(["APP_CONTENT_BACKDROP_BLUR",0,"5rem","APP_CONTENT_BACKDROP_HEIGHT",0,"32rem","APP_CONTENT_BACKDROP_SCRIM_OPACITY",0,.6,"AppContentBackdropVariant",()=>r])},349556,814395,e=>{"use strict";var t=e.i(673157),r=e.i(7284),n=e.i(249892),i=e.i(445896),a=e.i(531960),s=e.i(158075);let o=i.default.env.NEXT_PUBLIC_STATUS_URL||"https://statusz.suno.ai/z",l={isMaintenance:!1,isScheduledMaintenance:!1,message:""};async function u(){let e=await fetch(o);if(!e.ok||!(e.headers.get("content-type")??"").includes("application/json"))return l;let t=await e.json();return t?.status==="maintenance"?{isMaintenance:!0,isScheduledMaintenance:!1,message:t.message??""}:t?.status==="scheduled_maintenance"?{isMaintenance:!1,isScheduledMaintenance:!0,message:t.message??""}:l}e.i(765352);var c=e.i(75742),d=e.i(972404);e.s(["default",0,e=>{let i=function({enabled:e=!0}={}){let{data:t}=(0,a.useQuery)({queryKey:[{scope:"maintenanceStatus"}],queryFn:u,enabled:e,staleTime:3e5,gcTime:(0,s.clientGcTime)(3e5),refetchOnWindowFocus:!0});return t??l}({enabled:void 0===e.isMaintenance}),[o,f]=(0,n.useState)({message:"",scheduled:!1});(0,c.useDevPlugin)({name:"maintenanceBar",ui:{label:"Maintenance Bar",defaultVisible:d.isDev},utilities:(0,n.useMemo)(()=>({maintenanceBar:{setMessage:(e,t=!1)=>f({message:e,scheduled:t})}}),[])});let p=e.isMaintenance??i.isMaintenance,h=e.isScheduledMaintenance??i.isScheduledMaintenance,m=e.message??i.message;return((0,c.useDevPluginIsVisible)("maintenanceBar")&&o.message&&(m=o.message,p=!o.scheduled,h=o.scheduled),p||h)?(0,t.jsx)("div",{className:(0,r.default)("flex w-full justify-center px-4 py-3",{"bg-pumpkin-300 text-white":p,"bg-dodger-blue-300 text-white":!p}),children:(0,t.jsx)("p",{children:m})}):null}],349556);var f=e.i(334959),p=e.i(838038),h=e.i(429131),m=e.i(725516),g=e.i(245069),v=e.i(741085),y=e.i(603818);let w="user-day0-credits-";function x(e){let t=`${w}${e}`,r=(0,v.getTrackingObject)(t);return!!r.expires&&Date.now()<=r.expires}var b=e.i(249834);let C="user-return-";function S(e,t){let r=`${C}${t}-${e}`,n=(0,v.getTrackingObject)(r);return!!n.expires&&Date.now()<=n.expires}var _=e.i(340950),k=e.i(638647),A=e.i(213267),j=e.i(793449),E=e.i(615383),P=e.i(667013),M=e.i(628615),T=e.i(832675),N=e.i(950496),R=e.i(42305),I=e.i(245321),O=e.i(896203),L=e.i(610177),D=e.i(277565);e.s(["default",0,()=>{var e;let t,r,{isSignedIn:i}=(0,A.useAuth)();(0,n.useEffect)(()=>{console.log(`%c
4  ███████╗██╗   ██╗███╗   ██╗ ██████╗
5  ██╔════╝██║   ██║████╗  ██║██╔═══██╗
6  ███████╗██║   ██║██╔██╗ ██║██║   ██║
7  ╚════██║██║   ██║██║╚██╗██║██║   ██║
8  ███████║╚██████╔╝██║ ╚████║╚██████╔╝
9  ╚══════╝ ╚═════╝ ╚═╝  ╚═══╝ ╚═════╝
10  We are hiring! Come join our amazing team!
11  https://suno.com/careers
12      `,'color: #ff6b9d; font-weight: bold; text-shadow: 0 0 10px rgba(255, 107, 157, 0.5), 0 0 20px rgba(255, 107, 157, 0.3), 0 0 30px rgba(255, 107, 157, 0.2); font-family: "Courier New", monospace;')},[]),e=(e,t)=>
12{(0,D.default)({actionName:"PageTranslated",context:{fromLanguage:e,toLanguage:t}})},t=(0,n.useRef)(!1),r=(0,n.useRef)(null),(0,n.useEffect)(()=>{if("u"<typeof document)return;let n=document.documentElement;r.current=n.lang||"en";let i=new MutationObserver(i=>{if(!t.current)for(let a of i){if(t.current)break;if("attributes"===a.type&&"lang"===a.attributeName&&a.target===n){let i=n.lang,a=r.current||"unknown";if((0,L.matchSupportedLng)(i,{allowCiMode:!0})){r.current=i;return}if(i!==a){t.current=!0,e(a,i);return}}if("childList"===a.type&&a.addedNodes.length>0)for(let i of a.addedNodes){if(t.current)break;if("FONT"===i.nodeName&&i instanceof HTMLElement&&i.className.includes("translated")){let i=n.lang||navigator.language;t.current=!0,e(r.current||"unknown",i);return}}}});return i.observe(n,{attributes:!0,attributeFilter:["lang"],subtree:!0,childList:!0}),()=>{i.disconnect()}},[e]),(0,b.usePageViewTracking)(),(0,_.useSignInAttribution)(),(0,k.useUtmCapture)(),function(){let{session:e}=(0,h.useStores)(),t=(0,n.useRef)(!1),r=e.userId,i=e.clerkId,a=e.userEmail,s=e.phoneNumber,o=(0,v.parseJoinedDate)(e.joinedDate),l=(0,v.getAccountAgeDays)(o),u=!!i&&x(i),{data:c,isPending:d}=(0,y.useConversionTrackingSession)({enabled:!!r&&0===l&&!u});(0,n.useEffect)(()=>{if(t.current||!r||!i||d||!c)return;let{account_age_days:e}=c.user;if(0!==e||null==c.user.day0_credit_limit)return;let n=c.user.credits_used_today??0,o=c.user.day0_credit_limit;if(n+(c.user.in_flight_credits??0)<o||x(i))return;t.current=!0;let l=c.user.id;(async()=>{let e,t,r=crypto.randomUUID();(0,g.trackDay0CreditsConsumedEvent)(r),await (0,v.pushGtmUserEvent)({user:{email:a,phone:s},userId:l,eventType:"day0_credits_consumed",metadata:null,eventId:r}),e=`${w}${i}`,t=Date.now()+v.TRACKING_DATA_TTL_DAYS*m.MILLISECONDS_PER_DAY,(0,v.setTrackingObject)(e,t)})()},[r,i,a,s,c,d])}(),function(){let{session:e}=(0,h.useStores)(),t=e.userId,r=e.clerkId,i=e.userEmail,a=e.phoneNumber,s=(0,v.parseJoinedDate)(e.joinedDate),o=(0,n.useRef)(!1),l=(0,v.getAccountAgeDays)(s),u=(0,v.findMatchingBucket)(l),c=!!r&&!!u&&S(r,u.id),d=!(0,v.isNewUser)(s),f=!!t&&!!u&&d&&!c,{data:p,isPending:w}=(0,y.useConversionTrackingSession)({enabled:f});(0,n.useEffect)(()=>{if(o.current||!t||!r||(0,v.isNewUser)(s)||w||!p)return;let{account_age_days:e}=p.user,n=(0,v.findMatchingBucket)(e);if(!n||S(r,n.id))return;o.current=!0;let l=p.user.id;(async()=>{var t;let s,o,u=crypto.randomUUID();(0,g.trackUserReturnEvent)(e,u),await (0,v.pushGtmUserEvent)({user:{email:i,phone:a},userId:l,eventType:"user_return",metadata:{account_age_days:e},eventId:u}),t=n.id,s=`${C}${t}-${r}`,o=Date.now()+v.TRACKING_DATA_TTL_DAYS*m.MILLISECONDS_PER_DAY,(0,v.setTrackingObject)(s,o)})()},[t,r,i,a,s,p,w])}(),function(e){let{apiKey:t,baseUrl:r,enableLogging:i=!1}=e,{session:a}=(0,h.useStores)(),{hasCookieMarketingConsent:s}=(0,j.default)(),o=(0,n.useRef)(!1);(0,n.useEffect)(()=>{s?a.userId?((0,E.discardQueue)(),!o.current&&(0,E.initializeBraze)({apiKey:t,baseUrl:r,enableLogging:i})&&(o.current=!0),(0,E.isBrazeInitialized)()&&(0,E.changeUser)(a.userId)):(0,E.resetForNewUser)():(0,E.discardQueue)(!0)},[t,r,i,a.userId,s])}({apiKey:"b67099e5-3183-4de8-8f8f-fdea9ac93d15",baseUrl:"sdk.iad-07.braze.com",enableLogging:!1}),function(){let{session:e}=(0,h.useStores)(),t=(0,n.useRef)(null),r=(0,n.useRef)(!1),i="U3p_AjoOt83f",a=(0,M.useGateValue)("sprig-surveys"),{country:s}=(0,n.useContext)(T.AnalyticsContext),{hasAnalyticsConsent:o}=(0,j.default)(),l=a&&o;(0,n.useEffect)(()=>{(0,N.setSprigGateEnabled)(l),i&&l&&(0,N.initializeSprig)(i)},[i,l]),(0,n.useEffect)(()=>{if(!e.userId||!i||!l)return;t.current=e.userId;let n=e.joinedDate,a=n?Number.isFinite(Number(n))?Number(n):new Date(n).getTime():null,o=null!=a?Math.floor((Date.now()-a)/864e5):0;(0,N.identifySprigUser)(e.userId,{subscription_tier:e.userPlanKey??"free",has_active_subscription:e.isSubscriber??!1,joined_date:e.joinedDate??"",renewal_interval:e.subscriptionPeriod??"",recent_country:s??"",account_age_days:o,device_type:(0,R.isMobileBrowser)()?"mobile":"desktop"}),r.current||(r.current=!0,(0,N.trackSprigEvent)(I.ActionName.identify,{}))}
12,[i,l,e.userId,e.userPlanKey,e.isSubscriber,e.joinedDate,e.subscriptionPeriod,s]),(0,n.useEffect)(()=>{!e.userId&&t.current&&(t.current=null,(0,N.logoutSprigUser)())},[e.userId])}(),(0,P.useSaveLastUsedAuthProvider)();let{openModal:a,isModalOpen:s}=(0,p.useModalContext)(),{needsReacceptance:o,isLoading:l}=(0,O.useTosReacceptance)({enabled:!!i});(0,n.useEffect)(()=>{i&&!l&&o&&!s(f.ModalTypes.TOS_REACCEPTANCE)&&a(f.ModalTypes.TOS_REACCEPTANCE)},[i,l,o,a,s])}],814395)},556864,e=>{"use strict";var t=e.i(44325),r=e.i(157),n=e.i(274869),i=e.i(379694);let a={consent:{isReady:!1,hasConsentChoice:!1,hasAnalyticsConsent:!1,hasMarketingConsent:!1,hasCookieMarketingConsent:!1,accountOptedOut:!1},cmpCategories:null,cmpRevision:0},s=(0,t.createStore)(()=>a),o="ad-personalization-opt-out";function l(e,t,r,n){let i=e&&!!r?.Marketing;return{isReady:e,hasConsentChoice:t,hasAnalyticsConsent:e&&!!r?.Analytics,hasMarketingConsent:i&&!n,hasCookieMarketingConsent:i,accountOptedOut:n}}function u(e,t){let{consent:r,cmpRevision:n}=s.getState();s.setState({consent:l(!0,e.hasConsentChoice(),t,r.accountOptedOut),cmpCategories:t,cmpRevision:n+1})}function c(e){let{consent:t,cmpCategories:r}=s.getState();t.accountOptedOut!==e&&s.setState({consent:l(t.isReady,t.hasConsentChoice,r,e)})}function d(e){let t=(0,n.isAccountOptOut)(e);t?i.safeLocalStorage.setItem(o,"1"):i.safeLocalStorage.removeItem(o),c(t)}let f=null;e.s(["consentStore",0,s,"startConsentStore",0,function(){if(f)return;let e=[];f=()=>e.forEach(e=>e());let{verdict:t}=n.useDataSharingVerdict.getState();t?d(t):c("1"===i.safeLocalStorage.getItem(o)),e.push(n.useDataSharingVerdict.subscribe(({verdict:e})=>{e&&d(e)})),e.push((0,r.onMineCmpAvailable)(t=>{let r=()=>{u(t,t.getConsent())};t.isReady()?r():t.onReady(r),e.push(t.onConsentChange(e=>{u(t,e)}))}))}])},157,e=>{"use strict";let t="https://cmp.mineos.ai",r=`${t}/dg-32ea2145-5a1e-40f4-9b25-dfef50c6aad0/configuration.js`,n=`${t}/cmp.js`;function i(){return window.MineCMP}let a=new Set;e.s(["MINEOS_CMP_HOST",0,t,"MINEOS_CMP_SRC",0,n,"MINEOS_CONFIGURATION_
12SRC",0,r,"onMineCmpAvailable",0,function(e){let t=i();return t?(e(t),()=>{}):(!function(){let e=Object.getOwnPropertyDescriptor(window,"MineCMP");if(e?.set===r)return;let t=window.MineCMP;function r(e){if(t=e,!e)return;let r=[...a];for(let t of(a.clear(),r))t(e)}Object.defineProperty(window,"MineCMP",{configurable:!0,enumerable:!0,get:()=>t,set:r})}(),a.add(e),()=>{a.delete(e)})},"openConsentPreferences",0,function(){i()?.show("second")}])},619295,e=>{"use strict";var t=e.i(673157),r=e.i(249892),n=e.i(747852),i=e.i(838038);let a=(0,r.createContext)(null),s=(0,r.createContext)(null);e.s(["CreatePanelDragCoachmarkBlockerProvider",0,function({children:e}){let[n,i]=(0,r.useState)(()=>new Set),o=(0,r.useCallback)(e=>{i(t=>t.has(e)?t:new Set(t).add(e))},[]),l=(0,r.useCallback)(e=>{i(t=>{if(!t.has(e))return t;let r=new Set(t);return r.delete(e),r})},[]),u=(0,r.useMemo)(()=>({register:o,unregister:l}),[o,l]);return(0,t.jsx)(a.Provider,{value:u,children:(0,t.jsx)(s.Provider,{value:n.size>0,children:e})})},"useIsCreatePanelDragCoachmarkBlocked",0,function(){let e=(0,r.useContext)(s),{isAnyModalOpen:t}=(0,i.useModalContext)(),a=(0,r.useContext)(n.DialogModalContext)?.currentDialog!==void 0;if(null===e)throw Error("useIsCreatePanelDragCoachmarkBlocked must be used within CreatePanelDragCoachmarkBlockerProvider");return e||t||a},"useReportCmsModalBlockingCreatePanelDragCoachmark",0,function(e){let t=(0,r.useId)(),{register:n,unregister:i}=function(){let e=(0,r.useContext)(a);if(null===e)throw Error("useReportCmsModalBlockingCreatePanelDragCoachmark must be used within CreatePanelDragCoachmarkBlockerProvider");return e}();(0,r.useLayoutEffect)(()=>{if(e)return n(t),()=>i(t)},[t,e,n,i])}])},554483,622220,137235,e=>{"use strict";var t,r=e.i(249892),n=e.i(337150),i=e.i(673157),a=e.i(287741),s=e.i(740851);let o=new Set;function l(e,{remember:t=!0}={}){let[n,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!e||t&&o.has(e))return;let r=!1,n=new Image;return n.src=e,n.decode().then(()=>{t&&function(e){if(o.size>=32){let e=o.values().next().value;void 0!==e&&o.delete(e)}o.add(e)}(e)}).catch(()=>{}).finally(()=>{r||i(e)}),()=>{r=!0}},[e,t]),!!e&&(n===e||t&&o.has(e))}var u=e.i(742401),c=((t={}).Idle="idle",t.Exiting="exiting",t.Arriving="arriving",t);let d=(0,r.createContext)("idle");function f(){return(0,r.useContext)(d)}e.s(["RouteContentPhase",()=>c,"RouteContentTransitionProvider",0,function({children:e,onNavigationLost:t}){let n=(0,s.usePathname)(),a=(0,u.usePendingNavigation)(),[o,l]=(0,r.useState)(null),c=a?.startedAt??null;(0,r.useLayoutEffect)(()=>{null!==c&&l({startedAt:c,isHolding:!0})},[c]),(0,r.useEffect)(()=>{var e;if(!o?.isHolding)return;let t=setTimeout(()=>l(e=>e?{...e,isHolding:!1}:null),(e=o.startedAt,Math.max(0,160-(Date.now()-e))));return()=>clearTimeout(t)},[o]);let f=null!==a||o?.isHolding===!0,p=f||null===o?null:o.startedAt;(0,r.useEffect)(()=>{if(null===p)return;let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>l(null))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}},[p]);let h=(0,r.useRef)(null);a&&(h.current=a.fromPathname),(0,r.useEffect)(()=>{if(null===p)return;let e=h.current;h.current=null,null!==e&&e===n&&t?.()},[p,n,t]);let m=f?"exiting":null!==o?"arriving":"idle";return(0,i.jsx)(d.Provider,{value:m,children:e})},"useRouteContentPhase",0,f],622220);let p=(0,r.createContext)({publish:()=>{},retract:()=>{}}),h=(0,r.createContext)(null);function m(e){return(e?.transitionLeave??n.CONTENT_BACKDROP_DEFAULT_TRANSITION.leave)===n.ContentBackdropLeave.OnArrival}function g(){return(0,r.useContext)(p)}e.s(["ContentBackdropProvider",0,({fallback:e,enabled:t=!0,children:o})=>{let{api:u,published:d}=function(){let[e,t]=(0,r.useState)(()=>new Map),n=(0,r.useRef)(new Map),i=(0,r.useRef)(0),a=(0,r.useCallback)((e,r)=>{let a=n.current.get(e);void 0===a&&(a=i.current++,n.current.set(e,a)),t(t=>{if(t.get(e)?.descriptor===r)return t;let n=new Map(t);return n.set(e,{descriptor:r,sequence:a}),n})},[]),s=(0,r.useCallback)(e=>{n.current.delete(e),t(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r})},[]);return{api:(0,r.useMemo)(()=>({publish:a,retract:s}),[a,s]),published:(0,r.useMemo)(()=>(function(e){let t=null;for(let r of e.values())(!t||r.sequence>t.sequence)&&(t=r);return t?.descriptor??null})(e),[e])}}(),g=(0,a.useDeepCompareMemo)(()=>
12{if(!e)return null;let t=e.key||(e.source===n.ContentBackdropSource.Image?e.url:e.color);return t?{...e,key:t}:null},[e]),v=function({published:e,route:t}){var i;let a=f(),o=(0,s.usePathname)(),u=a===c.Exiting,d=u?t??e:e??t,p=(0,r.useRef)(d),h=(0,r.useRef)(null);a===c.Idle?h.current=null:u&&!m(p.current)&&(h.current=p.current?.key??null);let g=(i=h.current,null!==d&&d.key===i)?null:d,v=(0,r.useRef)(o),y=o!==v.current;v.current=o;let w=(0,r.useRef)(null);y&&(w.current=m(p.current)?p.current:null),g&&(w.current=null);let x=g??w.current;u||(p.current=g);let b=x?.source===n.ContentBackdropSource.Image;return l(b?x.url:void 0,{remember:b?x.rememberDecoded:void 0}),function(e,{mayHoldOutgoing:t=!0}={}){let[i,a]=(0,r.useState)(e),s=e?.source===n.ContentBackdropSource.Image,o=s?e.url:void 0,u=l(o,{remember:s?e.rememberDecoded:void 0}),c=function(e){let[t,n]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!e)return;let t=setTimeout(()=>n(e),3e3);return()=>clearTimeout(t)},[e,3e3]),!!e&&t===e}(o);return(0,r.useEffect)(()=>{!o||u||c?a(e):t||a(null)},[e,o,u,c,t]),i}(u?function({arriving:e,departing:t}){let r=null!==e&&e.key!==t?.key,i=e?.transitionEnter??n.CONTENT_BACKDROP_DEFAULT_TRANSITION.enter;return r&&i===n.ContentBackdropEnter.OnPublish?e:m(t)?t:null}({arriving:x,departing:p.current}):x,{mayHoldOutgoing:!u||m(p.current)})}({published:t?d:null,route:t?g:null});return(0,i.jsx)(p.Provider,{value:u,children:(0,i.jsx)(h.Provider,{value:v,children:o})})},"useContentBackdropApi",0,g,"useContentBackdropDescriptor",0,function(){return(0,r.useContext)(h)},"useContentBackdropPolarity",0,function(){return(0,r.useContext)(h)?.polarity}],137235),e.s(["default",0,e=>{let{image:t,color:i,component:a,identity:s,opacity:o,fadeStart:l,height:u,backgroundPosition:c,blur:d,scrim:f,attachment:p,polarity:h,navBlur:m,navScrim:v,navOpacity:y,transitionLeave:w}=e,x="rememberDecoded"in e?e.rememberDecoded:void 0;return!function(e){let{publish:t,retract:n}=g(),i=(0,r.useId)();(0,r.useEffect)(()=>{e?t(i,e):n(i)},[i,e,t,n]),(0,r.useEffect)(()=>()=>n(i),[i,n])}((0,r.useMemo)(()=>{let e={opacity:o,fadeStart:l,height:u,backgroundPosition:c,blur:d,scrim:f,attachment:p,polarity:h,navBlur:m,navScrim:v,navOpacity:y,transitionLeave:w};return a&&s?{...e,key:s,source:n.ContentBackdropSource.Custom,component:a}:t?{...e,key:s??t,source:n.ContentBackdropSource.Image,url:t,rememberDecoded:x}:i?{...e,key:s??i,source:n.ContentBackdropSource.Color,color:i}:null},[t,i,a,s,o,l,u,c,d,f,p,h,m,v,y,w,x])),null}],554483)},643011,e=>{"use strict";var t=e.i(673157);e.i(975824);var r=e.i(524986),n=e.i(877130),i=e.i(276708),a=e.i(22726);let s=(0,r.observer)(function({children:e}){let r=(0,i.useNullableClipContext)();return r&&null!=e?(0,t.jsx)(i.ClipContextProvider,{clip:r,children:(0,t.jsx)(a.ClipPreviewActions,{children:e})}):null}),o=(0,r.observer)(function({actionStack:e="row",primary:r,secondary:i,className:a}){return null==r&&null==i?null:(0,t.jsx)(s,{children:(0,t.jsxs)("div",{className:(0,n.twMerge)("flex items-center justify-center gap-1","column"===e?"flex-col":"flex-row",a),children:[r,i]})})});e.s(["ClipRowV2ActionsRail",0,o])},358766,94571,e=>{"use strict";var t=e.i(673157);e.i(975824);var r=e.i(524986),n=e.i(249892),i=e.i(276708),a=e.i(137759),s=e.i(409657),o=e.i(40380),l=e.i(744461),u=e.i(7284);let c={large:110,compact:86,short:64},d=(0,l.default)("div",{target:"e3ya7510"})("min-width:0;"),f=(0,l.default)("div",{target:"e3ya7511"})("display:flex;align-items:center;flex-shrink:0;"),p=(0,l.default)(a.ClipDetailsWrapper,{target:"e3ya7512"})("flex:1;"),h=(0,r.observer)(function({leftRail:e,leftRailClassName:r,centerPrimary:n,centerSecondary:i,centerTertiary:s,centerRailClassName:o,rightRail:l,rightRailClassName:c,density:h="large"}){return(0,t.jsxs)(t.Fragment,{children:[null!=e?(0,t.jsx)(f,{className:r,children:e}):null,(0,t.jsxs)(p,{className:o,children:[(0,t.jsx)(d,{children:n}),null!=i?(0,t.jsx)(d,{children:i}):null,"short"===h||null==s?null:(0,t.jsx)(d,{children:s})]}),null!=l?(0,t.jsx)(a.ClipRowGroup,{className:(0,u.default)("shrink-0",c),children:l}):null]})});e.s(["CLIP_ROW_V2_HEIGHT_BY_DENSITY",0,c,"ClipRowV2Layout",0,h],94571);let m=(0,r.observer)(function({clip:e,clipPlayback:r,density:n,draggable:o,enableRowSelection:l,className:u,onClick:d,onDoubleClick:f,onboardingRef:p,children:h}){let m=c[n],g=u?`group ${u}`:"group";return(0,t.jsx)(s.ClipPlaybackProvider,{value:r,children:(0,t.jsx)(i.NullableClipContextProvider,{clip:e,children:(0,t.jsx)(a.ClipRowWrapper,{ref:p,height:m,draggable:o,enableRowSelection:l,className:g,onClick:d,onDoubleClick:f,children:h})})})}),g=(0,r.observer)(function({clip:e,density:r,children:n,...i}){let a=(0,s.default)(e);return(0,t.jsx)(m,{...i,clip:e,clipPlayback:a,density:r,children:n})}),v=(0,r.observer)(function({clipId:e,clipPlayback:r,density:i,children:a,...s}){let{clip:l}=(0,o.default)(e),u=i??function(e){if(n.default.isValidElement(e)&&e.type===h)return e.props.density}(a)??"large";return r?(0,t.jsx)(m,{...s,clip:l,clipPlayback:r,density:u,children:a}):(0,t.jsx)(g,{...s,clip:l,density:u,children:a})});e.s(["ClipRowV2Shell",0,v],358766)},846016,626597,e=>{"use strict";e.i(418910);var t=e.i(358766),r=e.i(94571),n=e.i(643011),i=e.i(673157),a=e.i(744461);e.i(975824);var s=e.i(524986),o=e.i(137759);let l={large:{portrait:o.ClipImageSize.Large,square:o.ClipImageSize.Square},compact:{portrait:o.ClipImageSize.Medium,square:o.ClipImageSize.Square},short:{portrait:o.ClipImageSize.Small,square:o.ClipImageSize.Small}},u=(0,a.default)("div",{target:"ekqukby0"})(".clip-image-container{width:",({sidePx:e})=>`${e}px`,";height:",({sidePx:e})=>`${e}px`,";border-radius:",({sidePx:e})=>e<=40?"0.5rem":"0.75rem",";}");
12function c({height:e,imageKind:t,showCheckbox:n}){let a=l[e][t],s=r.CLIP_ROW_V2_HEIGHT_BY_DENSITY[e]-24;return(0,i.jsxs)(o.ClipRowGroup,{children:[n?(0,i.jsx)(o.ClipDotAndCheckbox,{}):null,"square"===t?(0,i.jsx)(u,{sidePx:s,children:(0,i.jsx)(o.ClipImage,{size:o.ClipImageSize.Square})}):(0,i.jsx)(o.ClipImage,{size:a})]})}let d=Object.assign((0,s.observer)(function({clipId:e,clipPlayback:a,draggable:s,enableRowSelection:l,className:u,onClick:d,onDoubleClick:f,onboardingRef:p,height:h="large",imageKind:m="square",actionStack:g="row",showCheckbox:v=!0,leftRail:y,leftRailClassName:w,centerPrimary:x,centerSecondary:b,centerTertiary:C=null,centerRailClassName:S,actionsPrimary:_=null,actionsSecondary:k=null}){let A=void 0===y?(0,i.jsx)(c,{height:h,imageKind:m,showCheckbox:v}):y,j=x??(0,i.jsx)(o.ClipTitle,{showSecondaryBadges:!1,editableIfOwned:!1}),E=void 0===b?(0,i.jsx)(o.ClipExactTags,{}):b,P=_||k?(0,i.jsx)(n.ClipRowV2ActionsRail,{actionStack:g,primary:_,secondary:k}):null;return(0,i.jsx)(t.ClipRowV2Shell,{clipId:e,clipPlayback:a,draggable:s,enableRowSelection:l,className:u,onClick:d,onDoubleClick:f,onboardingRef:p,children:(0,i.jsx)(r.ClipRowV2Layout,{density:h,leftRail:A,leftRailClassName:w,centerPrimary:j,centerSecondary:E,centerTertiary:C,centerRailClassName:S,rightRail:P})})}),{Root:t.ClipRowV2Shell,Group:o.ClipRowGroup,Details:o.ClipDetailsWrapper,Image:o.ClipImage,Title:o.ClipTitle});e.s(["ClipRowV2",0,d],626597);var f=e.i(249892);e.i(462951);var p=e.i(646984),h=e.i(276708),m=e.i(232349),g=e.i(292660),v=e.i(120613);e.i(179395);var y=e.i(73605),w=e.i(274918),x=e.i(280550),b=e.i(183730),C=e.i(967108);e.i(696800);var S=e.i(175022),_=e.i(918733),k=e.i(279977),A=e.i(418627);let j=(0,a.default)("div",{target:"e1w03m8h0"})("display:flex;min-width:0;overflow:hidden;align-items:center;gap:0.25rem;font-size:0.875rem;line-height:1.25rem;color:var(--color-foreground-tertiary);"),E=(0,a.default)("span",{target:"e1w03m8h1"})("display:inline-flex;align-items:center;gap:0.25rem;flex-shrink:0;font-size:0.75rem;line-height:0.875rem;cursor:default;user-select:none;"),P=(0,a.default)("span",{target:"e1w03m8h2"})("flex-shrink:0;font-size:0.75rem;line-height:0.875rem;user-select:none;"),M=(0,a.default)(x.default,{target:"e1w03m8h3"})("overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;line-height:0.875rem;text-transform:capitalize;&:hover{text-decoration:underline;}"),T=(0,s.observer)(function(){return(0,i.jsx)(o.ClipTitle,{showSecondaryBadges:!1,editableIfOwned:!1})}),N=(0,s.observer)(function({showArtistName:e}){let t=(0,h.useNullableClipContext)();return e&&t?(0,i.jsx)(v.FeedItemClipArtistTag,{handle:t.handle,displayName:t.display_name,isVerified:t.is_verified}):null}),R=(0,s.observer)(function(){let e=(0,h.useNullableClipContext)();if(!e)return null;let t=e.display_tags?.split(",")[0]?.trim()??e.metadata?.tags?.split(",")[0]?.trim(),r
12=(0,A.getCountString)(e.play_count??0);return(0,i.jsxs)(j,{children:[(0,i.jsxs)(E,{children:[(0,i.jsx)(S.PlayIcon,{className:"h-3 w-3"}),r]}),t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(P,{children:"·"}),(0,i.jsx)(M,{href:`/style/${encodeURIComponent((0,C.cleanTag)(t))}`,onClick:e=>e.stopPropagation(),children:t})]}):null]})}),I=(0,s.observer)(function(){let e=(0,h.useNullableClipContext)(),t=(0,m.useHandleCoverClip)(e),r=(0,f.useCallback)(r=>{e&&(r.stopPropagation(),r.preventDefault(),t())},[e,t]);if(!e)return null;let n=(0,k.canRemix)(e);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g.ClipMoreMenuButton,{variant:w.ButtonVariant.Tertiary,size:w.ButtonSize.Mini,shape:w.ButtonShape.Rounded,className:"clip-interaction-button context-menu-button",triggerClassName:"inline-flex"}),n?(0,i.jsx)(b.SongsAndPlaylistsNamespaceBoundary,{variant:b.SongsAndPlaylistsNamespaceBoundaryVariant.Inline,children:(0,i.jsx)(O,{onClick:r})}):null]})});function O({onClick:e}){let{t}=(0,p.useTranslation)("songsAndPlaylists");return(0,i.jsx)(y.Button,{variant:w.ButtonVariant.Tertiary,size:w.ButtonSize.Mini,shape:w.ButtonShape.Rounded,icon:_.RemixIcon,className:"clip-interaction-button",onClick:e,"aria-label":t("songActions.remix")})}(0,s.observer)(function({clipId:e,clipPlayback:t,showArtistName:r=!0,className:n}){return(0,i.jsx)(d,{clipId:e,clipPlayback:t,height:"compact",actionStack:"column",showCheckbox:!1,draggable:!1,enableRowSelection:!1,className:n,centerPrimary:(0,i.jsx)(T,{}),centerSecondary:(0,i.jsx)(N,{showArtistName:r}),centerTertiary:(0,i.jsx)(R,{}),actionsPrimary:(0,i.jsx)(I,{})})}),e.s([],846016)},273694,e=>{e.q("/_next/static/immutable/media/instrumentSynthWorker.28u80w1q2ppj6.ts")},993350,e=>{"use strict";var t,r=e.i(673157),n=e.i(7284),i=e.i(374686),a=e.i(175449),s=e.i(249892);e.i(462951);var o=e.i(646984),l=e.i(877130),u=e.i(967108),c=e.i(862484);e.i(696800);var d=e.i(550749),f=((t={}).TrackStart="track-start",t.TrackEnd="track-end",t.ButtonStart="button-start",t.ButtonEnd="button-end",t.Key="key",t);e.s(["SeekAction",()=>f,"default",0,e=>{let{"aria-label":t,className:f,timeClassName:p,currentTimeClassName:h,durationClassName:m,trackClassName:g,progressClassName:v,remainingClassName:y,buttonClassName:w,tooltipClassName:x,children:b,currentTime:C,duration:S,estimatedDuration:_,playbackProgress:k=null==C?0:S?C/S:_?C/_:0,seekAmount:A=5,showTime:j=!0,showEstimatedDurationSpinner:E=!0,onSeekTo:P,onSeekStart:M,onSeekMove:T,onSeekEnd:N,disabled:R=null==S&&null==_||!(P||M||T||N),renderTooltip:I,...O}=e,{t:L}=(0,o.useTranslation)("shell"),D=(0,s.useRef)(null),q=(0,s.useRef)(null),B=(0,s.useRef)(null),[U,V]=(0,s.useState)(null),F=(0,s.useRef)({playbackProgress:k,seekAmount:A,isSeeking:!1});(0,s.useEffect)(()=>{F.current.playbackProgress=k,F.current.seekAmount=A},[k,A]);let[H,z]=(0,s.useState)(null),$=S??_??1,K=(0,s.useCallback)((e,t)=>{let r=D.current;if(!r)return void z(null);let n=r.getBoundingClientRect(),a=e-n.x;z({progress:(0,i.clamp)(a/n.width,0,1),clientX:e,clientY:t,relativeX:a,relativeY:t-n.y,trackWidth:n.width,trackHeight:n.height})},[]),G=(0,s.useCallback)(e=>{K(e.clientX,e.clientY)},[K]),W=(0,s.useCallback)(()=>{F.current.isSeeking||z(null)},[]),Q=(0,s.useCallback)((e=0,t=0)=>{if(q.current){let r=q.current.getBoundingClientRect();return(0,i.clamp)(r.width?e+t/r.width:0,0,1)}return e},[]),[Y]=(0,c.default)({customState:{prevPlaybackProgress:k},onDragStart(e){if(e.customState.prevPlaybackProgress=k,F.current.isSeeking=!0,D.current){let t=D.current.getBoundingClientRect(),r=(0,i.clamp)((e.clientX-t.x)/t.width,0,1),n=k*$,a=r*$;e.customState.prevPlaybackProgress=r,P?.(a,n,"track-start"),M?.(a,n),V(r)}},onDragEnd(e){if(D.current){let t=e.customState.prevPlaybackProgress,r=t*$,n=Q(t,e.deltaX)*$;N?.(n,r),P?.(n,r,"track-end"),B.current?.focus()}if(V(null),F.current.isSeeking=!1,D.current){let t=D.current.getBoundingClientRect(),r=e.clientX,n=e.clientY;(r<t.x||r>t.x+t.width||n<t.y||n>t.y+t.height)&&z(null)}},onDragMove(e){if(D.current){let t=e.customState.prevPlaybackProgress,r=Q(t,e.deltaX),n=t*$,i=r*$;T?.(i,n),V(r),K(e.clientX,e.clientY)}}}),[X]=(0,c.default)({customState:{prevPlaybackProgress:k},onDragStart(e){e.customState.prevPlaybackProgress=k,F.current.isSeeking=!0;let t=k*$,r=Q(k,e.deltaX)*$;P?.(r,t,"button-start"),M?.(r,t),V(k)},onDragEnd(e){if(D.current){let t=e.customState.prevPlaybackProgress,r=t*$,n=Q(t,e.deltaX)*$;N?.(n,r),P?.(n,r,"button-end"),B.current?.focus()}if(V(null),F.current.isSeeking=!1,D.current){let t=D.current.getBoundingClientRect(),r=e.clientX,n=e.clientY;(r<t.x||r>t.x+t.width||n<t.y||n>t.y+t.height)&&z(null)}},onDragMove(e){if(D.current){let t=e.customState.prevPlaybackProgress,r=Q(t,e.deltaX),n=t*$,i=r*$;T?.(i,n),V(r),K(e.clientX,e.clientY)}}}),J=(0,s.useCallback)(e=>{let{playbackProgress:t,seekAmount:r}=F.current,n=t*$,a="ArrowLeft"===e.key?-r:"ArrowRight"===e.key?r:void 0;if(a){let t=(0,i.clamp)(n+a,0,$);P?.(t,n,"key"),e.preventDefault()}},[P,$]),Z=(0,s.useMemo)(()=>Math.min(U??k,1),[k,U]);return(0,r.jsxs)("div",{className:(0,l.twMerge)("relative flex flex-row items-center justify-center gap-2","[--min-target-size:1rem]","[--button-width:0.75rem]","[--button-height:var(--button-width)]","[--button-border-width:0.125rem]","[--track-width:0.25rem]","[--track-progress-color:var(--color-foreground-primary-glass)]","[--track-remaining-color:var(--color-background-fog-dense)]","[--button-color:var(--color-foreground-primary-glass)]","[--time-color:var(--color-foreground-tertiary-glass)]",f),onMouseMove:G,onMouseLeave:W,...O,children:[j?(0,r.jsx)("div",{className:(0,l.twMerge)("min-w-8 text-right text-xs text-(--time-color)",p),children:(0,u.formatDuration)(C)}):null,(0,r.jsxs)("div",{className:(0,n.default)("relative min-w-0 flex-1 self-stretch",{"min-h-4":j}),children:[(0,r.jsxs)("div",{className:(0,n.default)("absolute inset-0","before:absolute before:inset-x-0 before:top-1/2 before:-translate-y-1/2","before:min-h-(--min-target-size)",{"curs
12or-pointer":!R}),ref:D,role:"presentation",onMouseDown:R?void 0:Y,onTouchStart:R?void 0:Y,children:["function"==typeof I?s.default.createElement(I,{x:H?.relativeX,y:H?.relativeY,width:H?.trackWidth,height:H?.trackHeight,isHovered:!!H,currentTime:C,duration:S,hoverTime:H?H.progress*$:void 0,disabled:!1,className:x}):null,(0,r.jsxs)("div",{className:(0,l.twMerge)("absolute inset-x-0 top-1/2 h-(--track-width) -translate-y-1/2 overflow-clip rounded-sm",g),children:[(0,r.jsx)("div",{className:(0,l.twMerge)("absolute inset-y-0 left-0 bg-(--track-progress-color)",v),style:{width:`calc(max(0px, ${Z} * (100% - var(--button-width))))`}}),(0,r.jsx)("div",{className:(0,l.twMerge)("absolute inset-y-0 right-0 bg-(--track-remaining-color)",y),style:{width:`calc(max(0px, ${1-Z} * (100% - var(--button-width))))`}})]})]}),(0,r.jsxs)("div",{className:"pointer-events-none absolute inset-x-1.5 inset-y-0",ref:q,children:[(0,r.jsx)("input",{type:"range",ref:B,className:(0,n.default)("peer focus-visible:outline-none","absolute inset-y-0 left-1/2 w-(--button-width) -translate-x-1/2","pointer-events-auto","appearance-none bg-transparent","[&::-webkit-slider-thumb]:appearance-none","[&::-moz-range-thumb]:appearance-none","[&::-moz-range-thumb]:[width:var(--button-width)]","[&::-moz-range-thumb]:[height:var(--button-height)]","[&::-moz-range-thumb]:border-0","[&::-moz-range-thumb]:bg-transparent","[&::-moz-range-track]:border-0","[&::-moz-range-track]:bg-transparent",{"cursor-pointer":!R,"cursor-not-allowed opacity-50":R}),style:{left:`${100*Z}%`},min:0,max:$,value:Z*$,step:A,onChange:a.noop,onMouseDown:X,onTouchStart:X,onKeyDown:J,disabled:R,"aria-label":t??L("media.playbackProgress"),"aria-valuetext":(0,u.formatDuration)(Z*$)}),(0,r.jsx)("span",{className:(0,l.twMerge)("absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2","h-(--button-height) w-(--button-width) rounded-full border-(length:--border-width)","border-transparent bg-(--button-color) bg-clip-content","peer-focus-visible:ring-2 peer-focus-visible:outline-2 peer-focus-visible:outline-inherit",w),style:{left:`${100*Z}%`}})]})]}),j?(0,r.jsx)("div",{className:(0,l.twMerge)("min-w-8 text-left text-xs text-(--time-color)",p),children:null==S&&E?(0,r.jsx)(d.PulsingLinesIcon,{}):(0,u.formatDuration)(S)}):null]})}])},649812,e=>{"use strict";var t=e.i(673157),r=e.i(249892);e.i(462951);var n=e.i(646984),i=e.i(328062),a=e.i(838038);let s=()=>{let{t:e}=(0,n.useTranslation)("common");return(0,t.jsx)("div",{className:"fixed inset-0 z-[100000] flex animate-fade-in items-center justify-center bg-black/60 animate-duration-700",children:(0,t.jsxs)("div",{className:"flex h-[50vh] w-[18.75rem] items-center justify-center gap-2 rounded-lg p-4",children:[(0,t.jsx)(i.default,{className:"h-6 w-6"}),(0,t.jsx)("span",{className:"text-foreground-primary",children:e("runtimeFeedback.loading")})]})})};e.s(["ModalBackdropFallback",0,()=>(0,t.jsx)("div",{className:"fixed inset-0 z-[100000] animate-fade-in bg-black/60 animate-duration-700"}),"ModalLoadingFallback",0,s,"default",0,({modalType:e,Component:n,isOpen:i,fallback:o,...l})=>{let{isModalOpen:u}=(0,a.useModalContext)();return u(e)||i?(0,t.jsx)(r.Suspense,{fallback:o??(0,t.jsx)(s,{}),children:(0,t.jsx)(n,{...l})}):null}])},344531,e=>{"use strict";let t=[],r=new Set;function n(){r.forEach(e=>e())}e.s(["dequeueCopyrightMutePrompt",0,function(){let[e,...r]=t;if(void 0!==e)return t=r,n(),e},"enqueueCopyrightMutePrompt",0,function(e){t=[...t,e],n()},"getPendingCopyrightMutePromptClipIds",0,function(){return t},"subscribeToCopyrightMutePromptQueue",0,function(e){return r.add(e),()=>{r.delete(e)}}])},455366,e=>{"use strict";var t,r,n=e.i(673157),i=e.i(7284),a=e.i(249892);e.i(462951);var s=e.i(646984),o=e.i(929118),l=e.i(72094),u=e.i(953807),c=e.i(877130),d=e.i(41890),f=e.i(934736),p=e.i(878548),h=e.i(13174),m=e.i(811573),g=e.i(886880);let v=e=>{let{children:t,className:r,currentTime:l,notification:v,onDotClick:y,onContentClick:w,onFollowClick:x,onProfileClick:b,onView:C,...S}=e,{ref:_,inView:k}=(0,o.useInView)({threshold:.5,triggerOnce:!0}),{t:A}=(0,s.useTranslation)(["notifications","common"]),j=a.default.useRef(null);if((0,a.useEffect)(()=>{k&&C&&j.current!==v.id&&(j.current=v.id,C({id:v.id,type:v.notification_type,isRead:v.is_read}))},[k,v.id,v.is_read,v.notification_type,C]),!m.SUPPORTED_NOTIFICATION_V2_TYPES.has(v.notification_type))return null;let E=new Date(v.updated_at),P=E.getTime()-new Date(l||Date.now()).getTime();return(0,n.jsx)("div",{ref:_,children:(0,n.jsx)(u.default,{className:(0,
12c.twMerge)((0,i.default)("font-sans text-base font-normal","border-border-secondary text-foreground-secondary"),r),start:(0,n.jsxs)("div",{className:"relative flex items-center justify-center",children:[!v.is_read&&(0,n.jsx)(h.default,{className:(0,i.default)("absolute top-1/2 right-full mr-1.5 h-3 w-3 -translate-y-1/2 border border-background-secondary",{"cursor-pointer":y}),onClick:y&&(e=>y({id:v.id,type:v.notification_type},e))}),(0,n.jsx)(p.NotificationProfiles,{notification:v,onProfileClick:b})]}),end:(0,n.jsx)(d.NotificationEndContent,{notification:v,onContentClick:w,onFollowClick:x,viewRestrictionsLabel:A("notification.viewRestrictions")}),...S,children:t||(0,n.jsxs)(p.NotificationRowLinkContent,{notification:v,onContentClick:w,className:"flex flex-col items-start justify-start gap-0.5",children:[(0,n.jsxs)("p",{className:"text-base leading-tight",children:[(0,n.jsx)(f.NotificationMessage,{notification:v,onProfileClick:b,onContentClick:w,t:A}),(0,n.jsx)(d.NotificationContentPreview,{notification:v})]}),(0,n.jsx)("p",{className:"text-xs text-foreground-secondary",title:E.toUTCString(),children:(0,g.formatRelativeTime)(P,"long",A("time.justNow",{ns:"common"}))})]})})})};var y=e.i(98604),w=e.i(328062),x=e.i(157348),b=((t=b||{}).Heading="heading",t.Notification="notification",t);function C(e){return null==e?new Date:new Date(e)}var S=((r=S||{}).Today="today",r.Yesterday="yesterday",r.Last7Days="last7Days",r.Last30Days="last30Days",r.Older="older",r);let _=[{headingKey:"today",getThreshold:e=>C(e).setUTCHours(0,0,0,0)},{headingKey:"yesterday",getThreshold:e=>{let t=C(e);return t.setDate(t.getDate()-1),t.setHours(0,0,0,0)}},{headingKey:"last7Days",getThreshold:e=>{let t=C(e);return t.setDate(t.getDate()-7),t.setHours(0,0,0,0)}},{headingKey:"last30Days",getThreshold:e=>{let t=C(e);return t.setDate(t.getDate()-30),t.setHours(0,0,0,0)}},{headingKey:"older",getThreshold:()=>0}];function k({headingKey:e}){let{t}=(0,s.useTranslation)("notifications");switch(e){case"today":return t("notification.today");case"yesterday":return t("notification.yesterday");case"last7Days":return t("notification.lastNDays",{count:7});case"last30Days":return t("notification.lastNDays",{count:30});case"older":return t("notification.older")}}function A(){return(0,n.jsx)(u.default,{className:"border-b-0 text-foreground-secondary",children:(0,n.jsx)("p",{className:"grow text-center",children:(0,n.jsx)(w.default,{className:"inline-block"})})})}let j=e=>{let{currentTime:t,notifications:r,isLoading:c,isFetching:d,onDotClick:f,onProfileClick:p,onContentClick:h,onFollowClick:m,onNotificationView:g,onLoadMore:y,hasMore:x=!0}=e,{t:b}=(0,s.useTranslation)("notifications"),{ref:C}=(0,o.useInView)({onChange:e=>{e&&!c&&!d&&x&&y&&y()}}),S=(0,a.useMemo)(()=>{let e,a,s=[],o=-1;for(let u of r){let r=new Date(u.updated_at).getTime();for(;o<_.length-1&&(null==a||r<=a);)a=(e=_[++o]).getThreshold(t);e&&r>a&&(s.push({type:"heading",content:(0,n.jsx)(l.default,{className:(0,i.default)({"mt-4":0!==s.length}),children:(0,n.jsx)(k,{headingKey:e.headingKey})},e.headingKey)}),e=void 0),s.push({type:"notification",content:u})}return s},[t,r]),j=c&&x?(0,n.jsx)(w.default,{className:"inline-block"}):x?null:(0,n.jsxs)("div",{className:"relative pt-4",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0"}),(0,n.jsx)("p",{className:"relative text-sm text-foreground-secondary/50",children:b("notification.endOfList")})]});return(0,n.jsx)(n.Fragment,{children:S.length?(0,n.jsxs)(n.Fragment,{children:[S.map((e,r)=>{switch(e.type){case"notification":return(0,n.jsx)(v,{currentTime:t,notification:e.content,onDotClick:f&&((e,t)=>f({...e,index:r},t)),onProfileClick:p&&((e,t)=>p({...e,index:r},t)),onContentClick:h&&((e,t)=>h({...e,index:r},t)),onFollowClick:m&&((e,t)=>m({...e,index:r},t)),onView:g&&(e=>g({...e,index:r}))},e.content.id);case"heading":return e.content}}),(0,n.jsx)("div",{ref:C,className:"h-px","aria-hidden":"true"}),j&&(0,n.jsx)("div",{className:"pt-4 text-center",children:j})]}):c?(0,n.jsx)(A,{}):(0,n.jsx)(u.default,{className:"border-b-0 text-foreground-secondary",children:(0,n.jsx)("p",{className:"grow text-center",children:b("notification.emptyState")})})})};e.s(["default",0,e=>{let{currentTime:t,notifications:r,isLoading:i,isFetching:s,onDotClick:o,onProfileClick:l,onContentClick:u,onFollowClick:c,onNotificationView:d,onLoadMore:f,hasMore:p,...h}=e;return(0,n.jsxs)("div",{...h,children:[(0,n.jsx)(y.default,{}
12),(0,n.jsx)(x.NamespaceLoadErrorBoundary,{children:(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)(A,{}),children:(0,n.jsx)(j,{currentTime:t,notifications:r,isLoading:i,isFetching:s,onDotClick:o,onProfileClick:l,onContentClick:u,onFollowClick:c,onNotificationView:d,onLoadMore:f,hasMore:p})})})]})}],455366)},51545,e=>{"use strict";var t=e.i(511927),r=e.i(531960),n=e.i(853629),i=e.i(79076);let a=["onboarding","current"];class s extends Error{fieldErrors;constructor(e){super("step_submit_failed"),this.fieldErrors=e,this.name="StepSubmitError"}}class o extends Error{status;constructor(e,t){super(e),this.status=t,this.name="StepMutationError"}}e.s(["StepMutationError",0,o,"StepSubmitError",0,s,"removeCachedOnboardingStatus",0,function(e){e.removeQueries({queryKey:a})},"useAbortOnboardingAudioUpload",0,function(){let e=(0,i.useApiClient)(),r=(0,n.useQueryClient)(),s=(0,t.useMutation)({mutationFn:async()=>{await e.POST("/api/onboarding/audio-upload/abort",{})},onSettled:()=>{r.invalidateQueries({queryKey:a})}});return{abortAudioUpload:s.mutate,...s}},"useCompleteOnboarding",0,function(){let e=(0,i.useApiClient)(),r=(0,n.useQueryClient)(),s=(0,t.useMutation)({mutationFn:async t=>{let r=await e.POST("/api/onboarding/complete",{body:t??{},keepalive:!0});if(!r.response.ok||!r.data)throw new o("Failed to complete onboarding",r.response.status);return r.data},retry:2,retryDelay:e=>Math.min(500*2**e,2e3),onSuccess:e=>r.setQueryData(a,e),onError:(e,t)=>{let n=r.getQueryData(a),i=n?.step?.props?.prefill,s=i&&"object"==typeof i?i:{},o=t?.reason??null,l=t?.detail??null;r.setQueryData(a,{active:!1,completed:null===o,failed:null!==o,failure_reason:o?{code:o,detail:l}:null,prefill:{style_text:"string"==typeof s.style_text?s.style_text:"",lyrics:"string"==typeof s.lyrics?s.lyrics:"",entry_point:"string"==typeof s.entry_point?s.entry_point:"",cover_clip_id:"string"==typeof s.cover_clip_id?s.cover_clip_id:null},step:null})}});return{completeOnboarding:e=>s.mutate(e),...s}},"useCurrentStep",0,function({enabled:e=!0}={}){let t=(0,i.useApiClient)();return(0,r.useQuery)({queryKey:a,enabled:e,queryFn:async()=>{let e=await t.GET("/api/onboarding/current",{});if(e.error)throw Error("Failed to load onboarding state");return e.data},refetchInterval:e=>e.state.data?.step?.progress_data?.status==="in_progress"&&3e3})},"useGoBack",0,function(){let e=(0,i.useApiClient)(),r=(0,n.useQueryClient)(),s=(0,t.useMutation)({mutationFn:async()=>{let t=await e.POST("/api/onboarding/back",{});if(!t.response.ok||!t.data)throw new o("Failed to go back",t.response.status);return t.data},onSuccess:e=>r.setQueryData(a,e),onError:e=>{e instanceof o&&400===e.status&&r.invalidateQueries({queryKey:a})}});return{goBack:s.mutateAsync,isGoingBack:s.isPending,...s}},"useRemoveOnboardingAudioUpload",0,function(){let e=(0,i.useApiClient)(),r=(0,n.useQueryClient)(),s=(0,t.useMutation)({mutationFn:async()=>{await e.POST("/api/onboarding/audio-upload/remove",{})},onSettled:()=>{r.invalidateQueries({queryKey:a})}});return{removeAudioUpload:s.mutate,...s}},"useSkipStep",0,function(){let e=(0,i.useApiClient)(),r=(0,n.useQueryClient)(),s=(0,t.useMutation)({mutationFn:async()=>{let t=await e.POST("/api/onboarding/skip",{});if(!t.response.ok||!t.data)throw new o("Failed to skip step",t.response.status);return t.data},onSuccess:e=>r.setQueryData(a,e),onError:e=>{e instanceof o&&400===e.status&&r.invalidateQueries({queryKey:a})}});return{skipStep:s.mutateAsync,isSkipping:s.isPending,...s}},"useStartOnboarding",0,function(){let e=(0,i.useApiClient)(),r=(0,n.useQueryClient)(),s=(0,t.useMutation)({mutationFn:async t=>{let r={style_text:t?.style_text??"",lyrics:t?.lyrics??""},n=await e.POST("/api/onboarding/start",{body:r});if(n.error)throw Error("Failed to start onboarding");return n.data},retry:2,retryDelay:e=>Math.min(1e3*2**e,4e3),onSuccess:e=>r.setQueryData(a,e)});return{startOnboarding:s.mutate,isStarting:s.isPending,...s}},"useSubmitStep",0,function(){let e=(0,i.useApiClient)(),r=(0,n.useQueryClient)(),l=(0,t.useMutation)({mutationFn:async({step:t,data:r})=>{let n=await e.POST("/api/onboarding/submit",{body:{step:t,data:r}});if(n.error){let e=function(e){if(!e||"object"!=typeof e)return null;let t=e.errors;if(!t||"object"!=typeof t)return null;let r={};for(let[e,n]of Object.entries(t))"string"==typeof n&&(r[e]=n);return Object.keys(r).length>0?r:null}(n.error);if(e)throw new s(e);throw new o("Failed to submit step",n.response?.status??null)}return n.data},onSuccess:e=>r.setQueryData(a,e),onError:e=>{e instanceof o&&400===e.status&&r.invalidateQueries({queryKey:a})}});return{submitStep:l.mutateAsync,isSubmitting:l.isPending,...l}}])},411577,e=>{"use strict";var t=e.i(673157);e.i(975824);var r=e.i(524986),n=e.i(249892),i=e.i(429131),a=e.i(725516);let s=(0,r.observer)(()=>{let{playbar:e}=(0,i.useStores)(),r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{r.current&&e.setAudioElement(r.current)},[e.setAudioElement,e,r]),(0,n.useLayoutEffect)(()=>{s.current&&e.setSilentAudioElement(s.current)},[e.setSilentAudioElement,e,s]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("audio",{id:"active-audio-play",ref:r,src:void 0,crossOrigin:"anonymous"}),(0,t.jsx)("audio",{id:"silent-audio",ref:s,src:a.SILENT_AUDIO_URL})]})});e.s(["default",0,s])},173592,32299,e=>{"use strict";var t,r=e.i(673157),n=e.i(7284),i=e.i(249892),a=e.i(936781),s=e.i(992494),o=e.i(379694);let l="persistent-create-panel-width";function u(){let e=o.safeLocalStorage.getItem(l);if(null===e)return null;let t=Number(e);return Number.isFinite(t)?Math.max(384,Math.min(672,t)):null}var c=e.i(464029),d=e.i(718502),f=e.i(113548),p=((t={}).Expanded="expanded",t.Collapsed="collapsed",t.Loading="loading",t);let h={expanded:"w-[clamp(24rem,var(--persistent-create-panel-resting-width,28rem),min(42rem,calc(100%_-_35.625rem)))]",collapsed:"w-16",loading:"w-0"},m=({width:e,animateWidth:t=!1,isResizeEnabled:s=!1,onWidthTransitionComplete:o,resizeState:l,children:u})=>{let{registerPanelElement:c}=(0,a.usePersistentCreatePanelCollapse)(),d=l?.panelRef,f=(0,i.useCallback)(e=>{d&&(d.current=e),c(e)},[d,c]),p=l?.restingWidth==null?void 0:{"--persistent-create-panel-resting-width":`${l.restingWidth}px`},m=o?e=>{e.currentTarget===e.target&&o()}:void 0;return(0,r.jsxs)("div",{ref:f,style:p,className:(0,n.default)("relative flex h-full shrink-0 max-md:hidden",t&&!l?.isResizing&&"transition-[width] duration-300 ease-out",h[e]),onTransitionEnd:m,children:[(0,r.jsx)("div",{className:(0,n.default)("flex h-full w-full flex-col","overflow-hidden bg-background-primary text-foreground-primary","border-r border-border-secondary in-data-[gutter-layout]:border-r-0","in-data-[gutter-layout]:rounded-(--layout-container-radius)"),children:u}),s&&l?(0,r.jsx)("div",{...l.dividerProps,role:"separator","aria-orientation":"vertical",className:(0,n.default)("absolute inset-y-0 z-10 w-2 cursor-col-resize","-right-1 in-data-[gutter-layout]:-right-2","after:absolute after:top-1/2 after:left-1/2 after:h-8 after:w-0.5 after:-translate-x-1/2 after:-translate-y-1/2 after:rounded-full after:bg-transparent after:transition-colors","hover:after:bg-foreground-primary active:after:bg-foreground-primary")}):null]})};e.s(["PERSISTENT_CREATE_PANEL_CONTENT_WIDTH_CLASSNAME",0,"w-full min-w-[24rem]","PersistentCreatePanelCell",0,({isResizeEnabled:e=!0,width:t,...n})=>{let a=e&&"expanded"===t,c=function(e=!0){let t=(0,i.useRef)(null),[r,n]=(0,i.useState)(u),[a,c]=(0,i.useState)(!1),d=(0,i.useRef)(null),f=(0,i.useCallback)(()=>{d.current=null,document.body.style.userSelect="",document.body.style.cursor=""},[]),p=(0,i.useCallback)(()=>
12{if(null===d.current)return;f(),c(!1);let e=t.current;e&&(e.style.width="")},[f]),h=(0,i.useCallback)(()=>{let e=d.current;if(null===e||(f(),c(!1),!e.moved))return;let r=Math.round(t.current?.getBoundingClientRect().width||e.latestWidth);t.current&&(t.current.style.width=""),n(r),o.safeLocalStorage.setItem(l,String(r)),o.safeLocalStorage.isAvailable()&&(0,s.setLayoutCookie)(s.CREATE_PANEL_WIDTH_COOKIE_NAME,String(r))},[f]);(0,i.useEffect)(()=>f,[f]),(0,i.useLayoutEffect)(()=>{e||p()},[p,e]);let m=(0,i.useCallback)(n=>{if(!e||!n.isPrimary||0!==n.button)return;n.preventDefault(),n.currentTarget.setPointerCapture(n.pointerId);let i=t.current,a=i?.getBoundingClientRect().width||r||384,s=i?.parentElement?.clientWidth,o=s?Math.min(672,Math.max(384,s-570)):672;d.current={startX:n.clientX,startWidth:a,maxWidth:o,latestWidth:a,moved:!1},c(!0),document.body.style.userSelect="none",document.body.style.cursor="ew-resize"},[e,r]),g=(0,i.useCallback)(e=>{let r=d.current;if(!r)return;let n=Math.max(384,Math.min(r.maxWidth,r.startWidth+(e.clientX-r.startX)));r.latestWidth=n,r.moved=!0;let i=t.current;i&&(i.style.width=`${n}px`)},[]);return{panelRef:t,restingWidth:r,isResizing:a,dividerProps:{onPointerDown:m,onPointerMove:g,onPointerUp:h,onPointerCancel:h,style:{touchAction:"none"}}}}(a);return(0,i.useLayoutEffect)(()=>{if("expanded"===t)return;let e=c.panelRef.current;e&&(e.style.width="")},[c.panelRef,t]),(0,r.jsx)(m,{...n,width:t,isResizeEnabled:a,resizeState:c})},"PersistentCreatePanelLoadingChrome",0,({children:e})=>{let t,{showCreateSidebar:n}=(0,c.useRouteClientLayoutConfig)(),{ssrCreatePanelUserCollapsed:i}=(0,d.useServerLayout)();return t=!!(0,f.resolveCreateSidebarCollapsed)(n)||!(0,f.resolveCreateSidebarExpanded)(n)&&(i??!1),(0,r.jsx)(m,{width:t?"collapsed":"expanded",children:!t&&e})},"PersistentCreatePanelWidth",()=>p],173592),e.i(462951);var g=e.i(646984),v=e.i(160295),y=e.i(784056);e.s(["default",0,({withHeader:e=!0})=>{let{t}=(0,g.useTranslation)("shell");return(0,r.jsxs)("div",{className:"flex flex-1 flex-col",role:"status","aria-busy":"true","aria-label":t("nav.loadingCreatePanelAria"),children:[e?(0,r.jsx)("div",{className:"flex h-(--top-nav-row-height) min-h-(--top-nav-row-min-height) shrink-0 items-center px-4",children:(0,r.jsx)(v.default,{delay:15e3,href:"/",className:"h-10 w-24 shrink-0"})}):null,(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-3 px-4 pb-4",children:[(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(y.SkeletonBone,{className:"h-8 w-20 rounded-full"}),(0,r.jsx)(y.SkeletonBone,{className:"h-8 w-24 rounded-full"})]}),(0,r.jsx)(y.SkeletonBone,{className:"h-28 w-full rounded-xl"}),(0,r.jsx)(y.SkeletonBone,{className:"h-14 w-full rounded-xl"}),(0,r.jsx)(y.SkeletonBone,{className:"h-14 w-full rounded-xl"}),(0,r.jsx)("div",{className:"flex-1"})]})]})}],32299)},561809,e=>{"use strict";var t=e.i(673157),r=e.i(249892);let n=(0,r.createContext)({feedId:void 0,hookId:void 0,userHandle:void 0,feedCurrentHookId:void 0,feedCurrentIndex:void 0,updateState:()=>({})});e.s(["HooksFeedProvider",0,({children:e})=>{let[i,a]=(0,r.useReducer)((e,t)=>({...e,...t}),{}),s=(0,r.useMemo)(()=>({...i,updateState:a}),[i,a]);return(0,t.jsx)(n.Provider,{value:s,children:e})},"useHooksFeedContext",0,function(e){let t=(0,r.useContext)(n),i=null!=e,{feedId:a,hookId:s,userHandle:o}=e||{},{updateState:l}=t;return(0,r.useEffect)(()=>{i&&l({feedId:a,hookId:s,userHandle:o})},[i,a,s,o,l]),(0,r.useMemo)(()=>i?{...t,feedId:a,hookId:s,userHandle:o}:t,[t,i,a,s,o])}])},981342,e=>{"use strict";var t=e.i(249892),r=e.i(793449);e.s(["createAxonItemVariantIdForSubscription",0,(e,t)=>`${e}_${t}`,"useAxon",0,()=>{let e=!!window.axon,{hasMarketingConsent:n}=(0,r.default)(),i=(0,t.useCallback)((t,r)=>{if(e&&n)try{window.axon("track",t,r)}catch(e){console.error(`Error publishing Axon event "${t}":`,e)}},[e,n]),a=(0,t.useCallback)(e=>{i("sign_up",{method:"web",user_id:e})},[i]),s=(0,t.useCallback)(e=>{i("subscribe",{currency:e.currency,value:e.value,user_id:e.user_id})},[i]),o=(0,t.useCallback)(()=>{i("page_view")},[i]),l=(0,t.useCallback)(e=>{i("begin_checkout",{currency:e.currency,value:e.value,items:e.items})},[i]),u=(0,t.useCallback)(e=>{i("view_item",{currency:e.currency,value:e.value,items:e.items})},[i]);return{publishSignupEvent:a,publishSubscriptionEvent:s,publishPageViewEvent:o,publishBeginCheckoutEvent:l,publishViewItemEvent:u,publishAddToCartEvent:(0,t.useCallback)(e=>{i("add_to_cart",{currency:e.currency,value:e.value,items:e.items})},[i]),publishPurchaseEvent:(0,t.useCallback)(e=>{i("purchase",{currency:e.currency,value:e.value,items:e.items,transaction_id:e.transaction_id,user_id:e.user_id,shipping:e.shipping,tax:e.tax})},[i])}}])},603818,e=>{"use strict";var t=e.i(531960),r=e.i(79076),n=e.i(158075);e.s(["useConversionTrackingSession",0,e=>{let i=(0,r.useApiClient)(),a=e?.waitForSubscription??!1;return(0,t.useQuery)({queryKey:["conversion-tracking-session",{waitForSubscription:a}],queryFn:async()=>{let{data:e,response:t}=await i.GET("/api/billing/conversion-tracking");if(401===t.status||403===t.status)throw Error("Auth failed - retrying");if(a&&!e?.subscription)throw Error("Subscription data not ready - Stripe webhook pen
12ding");return e},retry:a?10:5,retryDelay:a?500:100,staleTime:0,gcTime:(0,n.clientGcTime)(0),enabled:e?.enabled??!0})}])},249834,340950,638647,e=>{"use strict";var t=e.i(740851),r=e.i(249892),n=e.i(245069),i=e.i(981342);e.s(["usePageViewTracking",0,function(){let e=(0,t.usePathname)(),{publishPageViewEvent:a}=(0,i.useAxon)(),s=(0,r.useRef)(!0);(0,r.useEffect)(()=>{a()},[e,a]),(0,r.useEffect)(()=>{if(s.current){s.current=!1;return}(0,n.trackPageVisit)()},[e])}],249834);var a=e.i(842358),s=e.i(277565),o=e.i(429131),l=e.i(725516),u=e.i(741085);e.s(["useSignInAttribution",0,function(){let e=(0,t.useSearchParams)(),{session:n}=(0,o.useStores)(),i=(0,r.useRef)(!1),c=n.userId,d=(0,u.parseJoinedDate)(n.joinedDate),{signupSource:f,referrer:p}=(0,u.getAttributionParams)(e);(0,r.useEffect)(()=>{!i.current&&c&&d&&!(0,u.isNewUser)(d)&&(i.current=!0,(0,s.default)({actionName:"UserSignedInFromPage",context:{signinSource:f||void 0,referrer:p||void 0,currentPathname:window.location.pathname,...(0,a.getSeoAttributionEventContext)()}}),f&&(f===l.SIGNUP_SOURCE_VALUES.MOBILE_SONG_PAGE||f===l.SIGNUP_SOURCE_VALUES.SONG_PAGE)&&(0,s.default)({actionName:"SignedInOnSongPage",context:{signinSource:f,referrer:p||void 0}}))},[c,d,f,p])}],340950);var c=e.i(995397);e.s(["useUtmCapture",0,function(){let e=(0,t.useSearchParams)();(0,r.useEffect)(()=>{(0,c.captureUtmParams)(e)},[e])}],638647)},842358,919294,e=>{"use strict";var t,r=e.i(799808),n=e.i(109956),i=((t={}).HeroCta="hero-cta",t.ListEndCta="list-end-cta",t.BandCta="band-cta",t.EngageSignUp="engage-signup",t.PageView="page-view",t);e.s(["SeoAttributionPlacement",()=>i,"getSeoPageAttribution",0,function(e){let{locale:t,path:i}=(0,r.splitLocaleFromPath)(e),a=(0,n.getSeoSectionFromPath)(i);if(!a)return null;let[,...s]=i.split("/").filter(Boolean);return{section:a,subsection:s.length>1?s[0]:void 0,page:i,locale:t}}],919294);var a=e.i(610177),s=e.i(379694);let o="suno-seo-attribution",l=new Set(Object.values(n.SeoSection)),u=new Set(Object.values(i));e.s(["getSeoAttributionEventContext",0,function(){let e,t=(e=(0,s.getLocalStorageValueWith30DayExpiry)(o))?function(e){try{let{section:t,subsection:r,page:n,locale:i,placement:s}=JSON.parse(e);if("string"!=typeof t||!l.has(t)||"string"!=typeof s||!u.has(s)||"string"!=typeof n||"string"!=typeof i||!(0,a.isPublishedLocale)(i))return null;return{section:t,subsection:"string"==typeof r?r:void 0,page:n,locale:i,placement:s}}catch{return null}}(e):null;return t?{seoSection:t.section,seoSubsection:t.subsection,seoPage:t.page,seoLocale:t.locale,seoPlacement:t.placement}:{}},"setSeoAttribution",0,function(e){return(0,s.setLocalStorageValueWith30DayExpiry)(o,JSON.stringify(e))}],842358)},741085,e=>{"use strict";var t=e.i(996967),r=e.i(725516);let n=[{id:"d1-2",minDay:1,maxDay:2}],i="sh-params",a="user-auth-";async function s(e){if(!e)return"";let t=new TextEncoder().encode(e.toLowerCase().trim());return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}let o=async({user:e,userId:t,eventType:r,metadata:n=null,eventId:i})=>{let a=e.email??"",o=e.phone??"",[l,u,c]=await Promise.all([s(a),s(o),s(t)]);window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:r,user_email:a,user_id:t,user_phone:o,hashedEmail:l,hashedPhone:u,hashedUserId:c,event_id:i,...n})},l=e=>{let r={};try{if((0,t.default)("localStorage")){let t=localStorage.getItem(e);t&&(r=JSON.parse(t))}}catch(e){}return r},u=(e,r,n)=>{(0,t.default)("localStorage")&&localStorage.setItem(e,JSON.stringify(void 0===n?{expires:r}:{expires:r,value:n}))},c=e=>Date.now()-e.getTime()<3e5,d=async(e,t)=>{t&&await e.POST("/api/share/attribute/",{body:{source:"web",share_id:t.sid??"",content_id:t.scid??"",content_type:t.sct??""}})};e.s(["AXON_ITEM_CATEGORY_ID",0,5096,"TRACKING_DATA_TTL_DAYS",0,30,"findMatchingBucket",0,function(e){return n.find(t=>e>=t.minDay&&e<=t.maxDay)},"getAccountAgeDays",0,function(e){return e?Math.floor((Date.now()-e.getTime())/864e5):-1},"getAttributionParams",0,function(e){return{signupSource:e.get(r.SIGNUP_SOURCE_PARAM),referrer:e.get("referrer")}},"getLSShareData",0,()=>{if(!(0,t.default)("localStorage"))return null;let e=localStorage.getItem(i);if(!e)return null;try{let t=JSON.parse(e);if(!t.expiry||Date.now()>t.expiry)return null;return t}catch(e){return null}},"getTrackingObject",0,l,"hasAlreadyTracked",0,function(e){let t=l(`${a}${e}`);return!!t.expires&&Date.now()<=t.expires},"isNewAction",0,c,"isNewUser",0,function(e){return!!e&&c(e)},"logShareAttribution",0,d,"markAsTracked",0,function(e){u(`${a}${e}`,Date.now()+30*r.MILLISECONDS_PER_DAY)},"parseJoinedDate",0,function(e){if(!e)return null;let t=parseInt(e,10);return Number.isFinite(t)?new Date(t):null},"pushGtmUserEvent",0,o,"setLSShareData",0,(e,r,n)=>{if((0,t.default)("localStorage")){let t=localStorage.getItem(i),a=null;if(t)try{(a=JSON.parse(t)).expiry&&Date.now()>a.expiry&&(a=null)}catch(e){a=null}if(a=a||{sid:null,scid:null,sct:null,expiry:null},e){let t={...a,sid:e,expiry:Date.now()+2592e6};localStorage.setItem(i,JSON.stringify(t))}else if(r&&n){let e={...a,scid:n,sct:r,expiry:Date.now()+2592e6};localStorage.setItem(i,JSON.stringify(e))}}},"setTrackingObject",0,u])},888700,e=>{"use strict";e.i(84019),e.s([])},793449,e=>{"use strict";var t=e.i(249892),r=e.i(174883),n=e.i(556864);e.s(["default",0,function(){return(0,t.useEffect)(()=>{(0,n.startConsentStore)()},[]),(0,r.useStore)(n.consentStore,e=>e.consent)}])},730889,e=>{"use strict";var t=e.i(249892);e.i(462951);var r=e.i(646984),n=e.i(613335),i=e.i(277565),a=e.i(725516),s=e.i(972404),o=e.i(610177);let l=new Set(["cimode"]);function u(e){n.default.set(a.LOCALE_COOKIE_NAME,e,{path:"/",maxAge:a.LOCALE_COOKIE_MAX_AGE_SECONDS,sameSite:"lax"}),(0,i.default)({actionName:"LanguageChanged",context:{language:e}})}s.isDev&&l.delete("cimode"),e.s(["persistLanguagePreference",0,u,"useLanguagePreference",0,function(e={}){let{prioritizeBrowserLanguage:n=!1,showAllLanguages:i=!1}=e,{i18n:s}=(0,r.useTranslation)(),c=(0,t.useMemo)(()=>
12{if("u"<typeof navigator)return"en";for(let e of navigator.languages){let t=(0,o.matchSupportedLng)(e);if(t)return t}return"en"},[]),d=(0,t.useMemo)(()=>{if(!s.options.supportedLngs)return[];let e=s.options.supportedLngs.filter(e=>i||!l.has(e)&&e in a.LANGUAGE_NATIVE_NAMES).map(e=>({key:e,label:a.LANGUAGE_NATIVE_NAMES[e]||e})),t=Object.keys(a.LANGUAGE_NATIVE_NAMES);return e.sort((e,r)=>{if(n){if(e.key===c&&r.key!==c)return -1;if(r.key===c&&e.key!==c)return 1}let i=t.indexOf(e.key),a=t.indexOf(r.key);return(-1===i?1/0:i)-(-1===a?1/0:a)}),e},[n,i,c,s.options.supportedLngs]),f=(0,t.useCallback)(e=>{s.changeLanguage(e),u(e)},[s]),p=d.length>1||1===d.length&&s.language!==d[0].key;return{languageOptions:d,browserLanguage:c,currentLanguage:s.language,onSetLanguage:f,hasSelectableLanguages:p}}])},667013,e=>{"use strict";var t=e.i(249892),r=e.i(379694);let n="auth-last-used-provider",i={oauth_google:"google",oauth_apple:"apple",oauth_discord:"discord",oauth_facebook:"facebook",oauth_microsoft:"microsoft",phone_code:"phone"};function a(){return(0,r.loadFromLocalStorage)(n)??null}e.s(["recordLastUsedAuthProvider",0,function(e){let t=i[e];t&&(0,r.setInLocalStorage)(n,t)},"useLastUsedAuthProvider",0,function(){let[e]=(0,t.useState)(a);return{lastUsedProvider:e}},"useSaveLastUsedAuthProvider",0,function(){}])},98638,e=>{"use strict";var t=e.i(740851),r=e.i(249892);let n=[];e.s(["default",0,()=>{let e=(0,t.usePathname)();(0,r.useEffect)(()=>{n.push({path:e,timestamp:new Date().toISOString()}),n.length>5&&(n=n.slice(-5))},[e])},"getNavigationHistory",0,function(){return n}])},11629,e=>{"use strict";var t=e.i(249892);e.s(["default",0,function(e,r){let{initialValue:n=e,enabled:i=!0,pollingInterval:a=200,raf:s=!0}=r||{},[o,l]=(0,t.useState)(0),u=(0,t.useRef)(e);(0,t.useEffect)(()=>{u.current=e},[e]);let[c,d]=(0,t.useState)(n);(0,t.useEffect)(()=>{if(!i)return;if(s){let e;if(a){let t=0,r=()=>{let n=performance.now();n-t>=a&&(d(e=>u.current(e)),t=n),e=requestAnimationFrame(r)};r()}else{let t=()=>{d(e=>u.current(e)),e=requestAnimationFrame(t)};t()}return()=>{cancelAnimationFrame(e)}}let e=setInterval(()=>{d(e=>u.current(e))},a);return()=>{d(e=>u.current(e)),clearInterval(e)}},[i,a,s,o]);let f=(0,t.useCallback)(()=>{d(e=>u.current(e))},[]),p=(0,t.useCallback)(()=>{l(e=>e+1)},[]),h=[c,f,p];return h.value=c,h.update=f,h.reset=p,h}])},896203,e=>{"use strict";var t=e.i(531960),r=e.i(249892),n=e.i(79076);let i=new Date("2025-11-07T08:00:00Z"),a={all:[{scope:"tosAcceptance"}],status:()=>[{...a.all[0],entity:"status"}]};e.s(["tosAcceptanceKeys",0,a,"useAcceptTos",0,function(){let e=(0,n.useApiClient)();return(0,r.useCallback)(async()=>{let{response:t,error:r}=await e.POST("/api/user/tos_acceptance");if(r)throw Error("Failed to accept ToS");return t},[e])},"useTosReacceptance",0,function({enabled:e=!0}={}){let{data:s,isLoading:o,error:l}=function({enabled:e=!0}={}){let r=(0,n.useApiClient)();return(0,t.useQuery)({queryKey:a.status(),queryFn:async()=>{let e=await r.GET("/api/user/tos_acceptance");if(!e.data)throw Error("Failed to fetch ToS acceptance status");return{hasAcceptedTos:e.data.has_accepted_tos??!1,hasAcceptedTosTimestamp:e.data.has_accepted_tos_timestamp??null}},staleTime:3e5,retry:2,enabled:e})}({enabled:e});return{needsReacceptance:(0,r.useMemo)(()=>!!s&&(!s.hasAcceptedTos||!s.hasAcceptedTosTimestamp||new Date(s.hasAcceptedTosTimestamp)<i),[s]),isLoading:o,error:l,tosStatus:s}}])},649911,e=>{"use strict";var t=e.i(628615),r=e.i(249892),n=e.i(334959),i=e.i(838038),a=e.i(315022),s=e.i(429131),o=e.i(917771),l=e.i(84204);e.s(["default",0,function(){let{session:e}=(0,s.useStores)(),{openModalWithData:t}=(0,i.useModalContext)(),{showOutOfCreditsUpsell:u}=(0,a.useOutOfCreditsUpsell)(),{notifyOutOfCredits:c,notifyOutOfConcurrency:d}=e;(0,r.useEffect)(()=>{c&&(e.notifyOutOfCredits=!1,(0,l.shouldBypassPaywall)(e)||u())},[c,e,u]),(0,r.useEffect)(()=>{d&&(e.notifyOutOfConcurrency=!1,t(n.ModalTypes.UPSELL_MODAL,{feature:o.FeatureKey.SIMULTANEOUS_GENS}))},[d,e,t])},"useFeatureUpsellConfig",0,function(){let{session:e}=(0,s.useStores)(),n=(0,t.useStatsigClient)(),i=e.sub?.plan?.plan_key,a=e.sessionIsLoaded&&e.isSubLoaded&&n?.client?.loadingStatus==="Ready";return(0,r.useMemo)(()=>{var e,t;return a?(e=n.getDynamicConfig("feature_upsell_configs").value,t=l.UNDERLYING_PLAN_KEY[i],Object.fromEntries(Object.entries(e).filter(([,e])=>!(void 0!==t&&e?.required_plans.includes(t))))):{}},[a,n,i])}])},746924,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"
12currentColor",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.8796 3C15.3331 3 15.7006 3.38436 15.7006 3.8585C15.7006 4.33264 15.3331 4.717 14.8796 4.717H14.6896V8.44946L14.6888 8.45114L19.8351 18.7473C20.1057 19.2888 20.0235 19.8817 19.7325 20.3125C19.4463 20.7359 18.9679 20.9999 18.4345 21H5.5757C4.58515 21 3.6207 19.9618 4.15025 18.7984L8.85473 8.46791V4.717H8.72245C8.26907 4.71697 7.90149 4.33262 7.90149 3.8585C7.90149 3.38438 8.26907 3.00003 8.72245 3H14.8796ZM10.4967 8.46204C10.4973 8.47152 10.5207 8.80446 10.3836 9.10592L7.68583 15.0282C7.74503 15.0515 7.80793 15.0752 7.87503 15.0961C8.20223 15.198 8.59338 15.2611 9.00706 15.2864C9.84129 15.3375 10.711 15.2316 11.2655 15.0391C11.8132 14.8489 12.1999 14.6657 12.5194 14.4992C12.8264 14.3392 13.1231 14.1651 13.4237 14.0339C13.9353 13.8109 14.4972 13.6886 15.4577 13.6952L13.1832 9.14364C13.0239 8.82462 13.0476 8.48004 13.0477 8.44946V4.717H10.4967V8.46204Z"})})])},914915,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M12.707 4.293a1 1 0 1 0-1.414 1.414L16.586 11H5a1 1 0 1 0 0 2h11.586l-5.293 5.293a1 1 0 0 0 1.414 1.414l7-7 .007-.007a1 1 0 0 0 .286-.697v-.006a1 1 0 0 0-.286-.697l-.008-.008"})})})])},389583,e=>{"use strict";var t=e.i(914915);e.s(["ArrowRightIcon",()=>t.default])},574223,174371,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 18a8 8 0 1 0 0-16z"})})})],574223),e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M12 20.963q-3.775 0-6.387-2.612Q3 15.738 3 11.963q0-3.45 2.25-5.987T11 3.013a.9.9 0 0 1 .575.088q.25.137.4.362t.162.525a.9.9 0 0 1-.187.575 5.2 5.2 0 0 0-.637 1.375 5.4 5.4 0 0 0-.213 1.525q0 2.25 1.575 3.825t3.825 1.575q.776 0 1.538-.225t1.362-.625a.96.96 0 0 1 .563-.162q.287.012.512.137a.9.9 0 0 1 .387.375q.138.25.088.6-.35 3.45-2.937 5.725-2.589 2.275-6.013 2.275m0-2q2.2 0 3.95-1.212a7 7 0 0 0 2.55-3.163q-.5.125-1 .2t-1 .075q-3.075 0-5.238-2.162Q9.1 10.538 9.1 7.463q0-.5.075-1t.2-1a7 7 0 0 0-3.162 2.55Q5 9.763 5 11.963q0 2.901 2.05 4.95t4.95 2.05"})})})],174371)},325327,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M12 21a5.93 5.93 0 0 1-3.012-.8A5.84 5.84 0 0 1 6.8 18H4v-2h2.1a8 8 0 0 1-.087-1A40 40 0 0 1 6 14H4v-2h2q0-.5.013-1a8 8 0 0 1 .087-1H4V8h2.8a8 8 0 0 1 .788-1.075q.437-.5 1.012-.875L7 4.4 8.4 3l2.15 2.15a4.63 4.63 0 0 1 2.85 0L15.6 3 17 4.4l-1.65 1.65A5.8 5.8 0 0 1 17.2 8H20v2h-2.1q.075.5.088 1T18 12h2v2h-2q0 .5-.012 1a8 8 0 0 1-.088 1H20v2h-2.8a5.84 5.84 0 0 1-2.187 2.2Q13.625 21 12 21m-2-5h4v-2h-4zm0-4h4v-2h-4z"})})})])},175412,e=>{"use strict";var t=e.i(179878);e.s(["DiscordIcon",()=>t.default])},213858,451269,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M12.78 12.45a.9.9 0 1 1-1.56-.9.9.9 0 0 1 1.56.9"}),(0,t.jsx)("path",{fillRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18m3.486-13.696c.734-.236 1.446.476 1.21 1.21l-1.704 5.3a1.82 1.82 0 0 1-1.178 1.178l-5.3 1.704c-.734.236-1.446-.476-1.21-1.21l1.704-5.3a1.82 1.82 0 0 1 1.178-1.178z",clipRule:"evenodd"})]})})})],213858),e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M11.5 5.418q0-.29.156-.438.156-.156.446-.156a.76.76 0 0 1 .46.156l3.063 2.563a.54.54 0 0 1 .219.445.57.57 0 0 1-.219.43l-3.062 2.555a.7.7 0 0 1-.22.132.8.8 0 0 1-.241.04q-.29 0-.446-.157-.156-.156-.156-.437zm-7.305 7.055a.78.78 0 0 1-.57-.235.79.79 0 0 1-.234-.578v-.851q0-1.125.492-1.938a3.28 3.28 0 0 1 1.414-1.25q.915-.445 2.18-.445h5.171q.33 0 .563.234a.73.73 0 0 1 .234.547.77.77 0 0 1-.234.563.78.78 0 0 1-.563.226H7.352q-1.079 0-1.72.602-.64.6-.64 1.617v.695q0 .345-.234.578a.75.75 0 0 1-.563.235m6.375 6.297q0 .28-.156.437-.156.
12165-.437.164a.7.7 0 0 1-.25-.047.8.8 0 0 1-.211-.125l-3.07-2.562a.53.53 0 0 1-.227-.43.6.6 0 0 1 .226-.445l3.07-2.555a.7.7 0 0 1 .212-.117.7.7 0 0 1 .25-.047q.28 0 .437.156t.156.438zm9.203-7.047q.345 0 .57.234a.78.78 0 0 1 .235.57v.852q0 1.117-.5 1.937-.492.813-1.414 1.258-.914.445-2.172.445h-7.07a.77.77 0 0 1-.563-.234.77.77 0 0 1-.234-.562q0-.321.234-.555a.77.77 0 0 1 .563-.234h7.187q1.079 0 1.72-.602.647-.601.648-1.61v-.695a.79.79 0 0 1 .796-.804m.024-1.618q-.375 0-.602-.21-.219-.219-.218-.618V6.082h-.07l-.79.625a.6.6 0 0 1-.375.133.53.53 0 0 1-.383-.14.47.47 0 0 1-.148-.36q0-.15.055-.266a.7.7 0 0 1 .226-.234l1.047-.79q.265-.202.508-.312.249-.11.594-.11.43 0 .695.267.273.266.273.71v3.672q0 .399-.218.618-.219.21-.594.21"})})})],451269)},964084,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M4 18.943V9.686q0-.49.213-.926a1.96 1.96 0 0 1 .587-.72l6-4.629Q11.325 3 12 3t1.2.411l6 4.629q.375.284.588.72.212.437.212.926v9.257a2 2 0 0 1-.587 1.453A1.9 1.9 0 0 1 18 21h-3a.95.95 0 0 1-.713-.296 1 1 0 0 1-.287-.733V14.83a1 1 0 0 0-.287-.733A.95.95 0 0 0 13 13.8h-2a.95.95 0 0 0-.713.296 1 1 0 0 0-.287.733v5.142q0 .438-.287.733A.95.95 0 0 1 9 21H6a1.9 1.9 0 0 1-1.412-.604A2 2 0 0 1 4 18.943"})})})])},217633,441602,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M12.002 7.385A4.607 4.607 0 0 0 7.388 12a4.607 4.607 0 0 0 4.614 4.615A4.607 4.607 0 0 0 16.616 12a4.607 4.607 0 0 0-4.614-4.615m0 7.615c-1.65 0-3-1.345-3-3s1.346-3 3-3 3 1.345 3 3-1.35 3-3 3m5.879-7.804c0 .599-.482 1.077-1.076 1.077a1.076 1.076 0 1 1 1.076-1.076m3.056 1.093c-.069-1.442-.398-2.72-1.454-3.772-1.052-1.052-2.329-1.381-3.77-1.454-1.486-.084-5.94-.084-7.425 0-1.438.069-2.715.398-3.771 1.45s-1.381 2.33-1.454 3.772c-.084 1.486-.084 5.94 0 7.426.069 1.442.398 2.72 1.454 3.772s2.329 1.381 3.77 1.454c1.486.084 5.94.084 7.425 0 1.442-.069 2.719-.398 3.771-1.454 1.052-1.053 1.381-2.33 1.454-3.772.084-1.486.084-5.936 0-7.422m-1.92 9.017a3.04 3.04 0 0 1-1.71 1.71c-1.185.47-3.996.362-5.305.362-1.31 0-4.124.105-5.305-.361a3.04 3.04 0 0 1-1.71-1.711c-.47-1.185-.362-3.997-.362-5.306s-.104-4.125.362-5.306a3.04 3.04 0 0 1 1.71-1.71c1.185-.47 3.996-.362 5.305-.362 1.31 0 4.124-.105 5.305.361.787.313 1.393.92 1.71 1.711.47 1.185.362 3.997.362 5.306s.108 4.125-.362 5.306"})})})],217633),e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M21 10.149a8.44 8.44 0 0 1-4.934-1.58v7.185a6.533 6.533 0 1 1-5.633-6.473v3.612a2.997 2.997 0 1 0 2.097 2.86V1.716h3.536q-.002.45.076.892a4.9 4.9 0 0 0 2.166 3.223A4.9 4.9 0 0 0 21 6.637z"})})})],441602)},854441,80942,e=>{"use strict";var t=e.i(217633);e.s(["InstagramIcon",()=>t.default],854441);var r=e.i(441602);e.s(["TiktokIcon",()=>r.default],80942)},893505,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M12 5a.97.97 0 0 1-.713-.287A.97.97 0 0 1 11 4V2q0-.424.287-.712A.97.97 0 0 1 12 1q.424 0 .713.288Q13 1.575 13 2v2q0 .424-.287.713A.97.97 0 0 1 12 5m4.95 2.05a.93.93 0 0 1-.275-.687q0-.413.275-.713l1.4-1.425q.3-.3.712-.3.413 0 .713.3a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7L18.35 7.05a.95.95 0 0 1-.7.275.95.95 0 0 1-.7-.275M20 13a.97.97 0 0 1-.712-.287A.97.97 0 0 1 19 12q0-.424.288-.713A.97.97 0 0 1 20 11h2q.424 0 .712.287.288.288.288.713 0 .424-.288.713A.97.97 0 0 1 22 13zm-8 10a.97.97 0 0 1-.713-.288A.97.97 0 0 1 11 22v-2q0-.424.287-.712A.97.97 0 0 1 12 19q.424 0 .713.288.287.287.287.712v2q0 .424-.287.712A.97.97 0 0 1 12 23M5.65 7.05l-1.425-1.4q-.3-.3-.3-.725t.3-.7a.95.95 0 0 1 .7-.275q.425 0 .7.27
125L7.05 5.65a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7q-.3.275-.7.275t-.7-.275m12.7 12.725-1.4-1.425a1.02 1.02 0 0 1-.275-.713q0-.412.275-.687a.93.93 0 0 1 .688-.275q.412 0 .712.275l1.425 1.4a.87.87 0 0 1 .288.7 1.09 1.09 0 0 1-.288.725q-.3.3-.725.3a.9.9 0 0 1-.7-.3M2 13a.97.97 0 0 1-.712-.287A.97.97 0 0 1 1 12q0-.424.288-.713A.97.97 0 0 1 2 11h2q.424 0 .713.287Q5 11.576 5 12q0 .424-.287.713A.97.97 0 0 1 4 13zm2.225 6.775a.95.95 0 0 1-.275-.7q0-.425.275-.7L5.65 16.95a.93.93 0 0 1 .688-.275q.412 0 .712.275.3.3.3.713 0 .412-.3.712l-1.4 1.4q-.3.3-.725.3a.9.9 0 0 1-.7-.3M12 18q-2.5 0-4.25-1.75T6 12t1.75-4.25T12 6t4.25 1.75T18 12t-1.75 4.25T12 18m0-2q1.65 0 2.825-1.175T16 12t-1.175-2.825T12 8 9.175 9.175 8 12t1.175 2.825T12 16"})})})])},786916,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M19 21q.825 0 1.412-.587Q21 19.825 21 19V5q0-.824-.588-1.412A1.93 1.93 0 0 0 19 3h-6a.97.97 0 0 0-.713.288A.97.97 0 0 0 12 4q0 .424.287.713Q12.575 5 13 5h6v14h-6a.97.97 0 0 0-.713.288A.97.97 0 0 0 12 20q0 .424.287.712.288.288.713.288z"}),(0,t.jsx)("path",{d:"M11.575 13H4.4a.97.97 0 0 1-.713-.287A.97.97 0 0 1 3.4 12q0-.424.287-.713A.97.97 0 0 1 4.4 11h7.175L9.7 9.125a.92.92 0 0 1-.275-.675q0-.4.275-.7a.95.95 0 0 1 .7-.312.95.95 0 0 1 .725.287L14.7 11.3q.3.3.3.7t-.3.7l-3.575 3.575a.93.93 0 0 1-.713.288 1.02 1.02 0 0 1-.712-.313.97.97 0 0 1-.263-.713.98.98 0 0 1 .288-.687z"})]})})})])},2931,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M3.969 16.969V7.023q0-.609.312-.906.313-.304.75-.304.39 0 .774.218l8.312 4.844q.46.266.68.523a.88.88 0 0 1 .219.602.9.9 0 0 1-.22.61q-.217.25-.679.515l-8.312 4.844a1.55 1.55 0 0 1-.774.218q-.437 0-.75-.304-.312-.297-.312-.914m12.117 1.18q-.562 0-.844-.282-.273-.281-.273-.844V6.97q0-.555.281-.836.281-.29.836-.29h1.828q.555 0 .836.282.281.274.281.844v10.054q0 .563-.281.844-.28.281-.836.281z"})})})])},992619,e=>{"use strict";var t=e.i(2931);e.s(["NextTrackIcon",()=>t.default])},589037,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M5 18.3v-1.8h1.75v-6.3q0-1.867 1.094-3.319a5.04 5.04 0 0 1 2.843-1.901v-.63q0-.563.383-.956Q11.453 3 12 3q.548 0 .93.394.383.393.383.956v.63q1.75.45 2.843 1.901 1.095 1.452 1.094 3.319v6.3H19v1.8zm7 2.7q-.721 0-1.236-.529a1.76 1.76 0 0 1-.514-1.271h3.5q0 .743-.514 1.271A1.66 1.66 0 0 1 12 21"})})})])},752898,e=>{"use strict";var t=e.i(430806);e.s(["PreviousTrackIcon",()=>t.default])},104110,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M13.406 5.32q0-.288.156-.437a.62.62 0 0 1 .446-.156q.133 0 .25.039a.7.7 0 0 1 .21.117l3.071 2.562a.57.57 0 0 1 .219.446.54.54 0 0 1-.219.43l-3.07 2.554a.7.7 0 0 1-.211.133.8.8 0 0 1-.25.039.62.62 0 0 1-.445-.156q-.157-.156-.157-.438zm-9.195 7.055a.78.78 0 0 1-.57-.234.79.79 0 0 1-.235-.578v-.852q0-1.125.492-1.938a3.28 3.28 0 0 1 1.414-1.25q.915-.445 2.18-.445h7.07q.33 0 .555.234a.73.73 0 0 1 .235.547.77.77 0 0 1-.235.563.76.76 0 0 1-.555.226H7.368q-1.078 0-1.719.602-.64.601-.64 1.617v.695q0 .344-.235.579a.75.75 0 0 1-.562.234m6.375 6.297q0 .28-.156.437-.156.165-.438.164a.7.7 0 0 1-.25-.046.8.8 0 0 1-.21-.125L6.46 16.539a.53.53 0 0 1-.227-.43.6.6 0 0 1 .227-.445l3.07-2.555a.6.6 0 0 1 .211-.117.7.7 0 0 1 .25-.047q.281 0 .438.157.156.156.156.437zm9.203-7.047q.345 0 .57.234a.78.78 0 0 1 .235.57v.852q0 1.117-.5 1.938-.492.811-1.414 1.258-.915.445-2.172.445h-7.07a.77.77 0 0 1-.563-.235.77.77 0 0 1-.234-.562q0-.32.234-.555a.77.77 0 0 1 .563-.234h7.187q1.079 0 1.719-.602.648-.6.648-1.609v-.695a.79.79 0 0 1 .797-.805"})})})])},243854,e=>{"use strict";var t=e.i(104110);e.s(["RepeatIcon",()=>t.default])},129905,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"
12currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M16.945 5.207q0-.28.157-.437.156-.157.445-.157.133 0 .25.047a.7.7 0 0 1 .21.117l3.071 2.563a.57.57 0 0 1 .211.437.57.57 0 0 1-.21.438l-3.071 2.555a.8.8 0 0 1-.211.125.7.7 0 0 1-.25.046q-.29 0-.445-.156a.62.62 0 0 1-.157-.445zM2.711 16.121q0-.336.234-.555a.85.85 0 0 1 .602-.226h1.781q.648 0 1.125-.25.476-.25.977-.852l4.718-5.61q.75-.89 1.477-1.226.726-.343 1.766-.343h2.71q.32 0 .547.226a.74.74 0 0 1 .235.555.76.76 0 0 1-.235.555.75.75 0 0 1-.546.226h-2.72q-.452 0-.812.11a2.1 2.1 0 0 0-.672.343q-.312.234-.656.64l-4.805 5.704q-.694.813-1.374 1.148-.672.336-1.68.336H3.547a.86.86 0 0 1-.602-.218.75.75 0 0 1-.234-.563m14.234 2.672v-5.14q0-.282.157-.438.156-.156.445-.156.133 0 .25.046a.8.8 0 0 1 .21.125l3.071 2.555q.21.18.211.43 0 .25-.21.445l-3.071 2.563a.7.7 0 0 1-.211.117.7.7 0 0 1-.25.047q-.29 0-.445-.157-.157-.156-.157-.437M2.711 7.887q0-.337.234-.555a.85.85 0 0 1 .602-.227h1.836q1.008 0 1.68.336.68.336 1.375 1.149l4.804 5.703q.345.406.656.648.321.235.672.344.36.102.813.102h2.719q.32 0 .546.234a.73.73 0 0 1 .235.547.74.74 0 0 1-.235.555.75.75 0 0 1-.546.226H15.39q-1.04 0-1.766-.336t-1.477-1.226L7.43 9.77q-.501-.602-.977-.852-.477-.25-1.125-.25H3.547a.86.86 0 0 1-.602-.219.75.75 0 0 1-.234-.562"})})})])},177477,e=>{"use strict";var t=e.i(129905);e.s(["ShuffleIcon",()=>t.default])},318557,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M17 19v2H7v-2zm2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2v2l-.206-.005a4 4 0 0 1-3.79-3.789L3 17V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v10a4 4 0 0 1-3.794 3.995L17 21v-2a2 2 0 0 0 2-2"}),(0,t.jsx)("path",{d:"M11 21H9V3h2z"})]})})})])},510152,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M16.6 5h2.454l-5.36 5.93L20 19h-4.937l-3.87-4.893L6.771 19H4.313l5.733-6.344L4 5h5.062l3.494 4.473zm-.863 12.58h1.36L8.322 6.346h-1.46z"})})})])},768514,e=>{"use strict";var t=e.i(510152);e.s(["TwitterXIcon",()=>t.default])},514725,441683,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"m11.15 4.656-4.005 4.11a.5.5 0 0 1-.35.154H4C3.451 8.92 3 9.383 3 9.948v4.11c0 .566.45 1.028 1.001 1.028h2.793c.13 0 .26.052.35.155l4.005 4.11c.32.319.851.093.851-.36V5.015c0-.462-.54-.688-.85-.36"})})})],514725),e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M11.15 4.655c.31-.328.85-.102.85.36v13.976c0 .452-.53.678-.85.36l-4.005-4.11a.47.47 0 0 0-.351-.155H4c-.55 0-1.001-.462-1.001-1.027v-4.11c0-.566.45-1.028 1.001-1.028h2.793c.13 0 .26-.062.35-.154zM14 8.759c0-.36.38-.6.68-.39.47.34.86.75 1.16 1.259.44.73.66 1.55.66 2.4s-.22 1.64-.66 2.36c-.31.5-.69.91-1.16 1.24-.3.21-.68-.02-.68-.39z"})})})})],441683)},106502,11856,e=>{"use strict";var t=e.i(514725);e.s(["Volume0Icon",()=>t.default],106502);var r=e.i(441683);e.s(["VolumeDownIcon",()=>r.default],11856)},18762,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M11.15 4.655c.31-.328.85-.102.85.36v13.976c0 .452-.53.678-.85.36l-4.005-4.11a.47.47 0 0 0-.351-.155H4c-.55 0-1.001-.462-1.001-1.027v-4.11c0-.566.45-1.028 1.001-1.028h2.793c.13 0 .26-.062.35-.154zM19.9 8.702a.984.984 0 0 1 1.4 0c.39.39.39 1.01 0 1.4l-1.9 1.901 1.9 1.9c.39.39.39 1.01 0 1.4a.984.984 0 0 1-1.4 0l-1.9-1.9-1.9 1.9a.984.984 0 0 1-1.4 0 .984.984 0 0 1 0-1.4l1.9-1.9-1.9-1.9a.984.984 0 0 1 0-1.4.984.984 0 0 1 1.4 0l1.9 1.9z"})})})})])},726223,e=>{"use strict";var t=e.i(18762);e.s(["VolumeMuteIcon",()=>t.default])},213125,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"
12currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M14 4.489c0-.64.6-1.12 1.2-.9 1.53.56 2.81 1.49 3.85 2.79v.02c1.3 1.62 1.95 3.5 1.95 5.61s-.65 3.99-1.95 5.61c-1.04 1.3-2.32 2.23-3.85 2.79-.6.22-1.2-.26-1.2-.9v-.05c0-.45.3-.83.71-1a6.8 6.8 0 0 0 2.91-2.26q1.38-1.845 1.38-4.2t-1.38-4.2a6.53 6.53 0 0 0-2.91-2.26c-.41-.17-.71-.55-.71-1zM11.15 4.656c.31-.329.85-.103.85.36v13.976c0 .451-.53.677-.85.36L7.144 15.24a.46.46 0 0 0-.351-.155H4c-.55 0-1-.462-1.001-1.027V9.948c0-.565.45-1.027 1.001-1.028h2.793c.13 0 .26-.061.35-.154z"}),(0,t.jsx)("path",{d:"M14 8.758c0-.36.38-.6.68-.39.47.34.86.75 1.16 1.26.44.73.66 1.55.66 2.4s-.22 1.64-.66 2.36c-.31.5-.69.91-1.16 1.24-.3.21-.68-.02-.68-.39z"})]})})})])},269186,e=>{"use strict";var t=e.i(213125);e.s(["VolumeOnIcon",()=>t.default])},594145,e=>{"use strict";var t=e.i(673157);e.s(["default",0,e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M20.624 8.035a2.29 2.29 0 0 0-1.591-1.646C17.629 6 12 6 12 6s-5.629 0-7.033.39a2.29 2.29 0 0 0-1.591 1.645C3 9.487 3 12.514 3 12.514s0 3.026.376 4.478a2.26 2.26 0 0 0 1.591 1.619C6.371 19 12 19 12 19s5.629 0 7.033-.39a2.26 2.26 0 0 0 1.591-1.618C21 15.54 21 12.514 21 12.514s0-3.027-.376-4.48m-10.463 7.227V9.766l4.703 2.749z"})})})])},43668,e=>{"use strict";var t=e.i(594145);e.s(["YoutubeIcon",()=>t.default])},455325,e=>{"use strict";var t=e.i(305223),r=e.i(206274);let n="__session";function i(e){return(0,t.getCookieValuesFromHeader)((0,r.readDocumentCookie)(),e).map(e=>(function(e){try{return decodeURIComponent(e)}catch{return e}})(e))}e.s(["clearHostSessionCookie",0,function(){(0,r.expireDocumentCookie)(n)},"getClientUat",0,function(){let e=i(t.CLIENT_UAT_COOKIE)[0]??null;if(!e)return 0;let r=parseInt(e,10);return Number.isFinite(r)?r:0},"getSessionCookies",0,function(){return i(n)}])},974710,e=>{"use strict";e.i(416736);var t=e.i(268205),r=e.i(365943);async function n(e,t){return i({path:e,body:t})}async function i({path:e,body:t,signal:n}){let a=(0,r.getClerkApiUrl)(e),o=new URLSearchParams;if("object"==typeof t&&null!==t)for(let[e,r]of Object.entries(t))null!=r&&o.set(e,String(r));return s(await fetch(a,{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:o.toString(),signal:n}))}async function a(e,t){let n=(0,r.getClerkApiUrl)(e),i=new URLSearchParams(t),a=n.includes("?")?"&":"?",o=i.size>0?`${n}${a}${i.toString()}`:n;return s(await fetch(o,{method:"GET",credentials:"include"}))}async function s(e){let r;try{r=await e.json()}catch{r=null}if(!e.ok){let n=r&&"object"==typeof r&&"errors"in r?r.errors:null,i=Array.isArray(n)?n:[],a=i[0];throw new t.ClerkAPIResponseError(a?.long_message||a?.message||`FAPI request failed: ${e.status}`,{data:i,status:e.status})}return r}e.s(["fapiGet",0,a,"fapiPost",0,n,"fapiPostRequest",0,i])},501088,e=>{"use strict";var t=e.i(249892),r=e.i(574550),n=e.i(974710),i=e.i(7712),a=e.i(488099),s=e.i(442357);e.s(["useSignIn",0,function(){let e=(0,r.useAuthContext)(),o=(0,s.useSetActive)(),l="suno"===e.provider,u=(0,t.useCallback)(async e=>{let t=performance.now();try{let r=await (0,n.fapiPost)("/v1/client/sign_ins",{strategy:e.strategy,identifier:e.identifier});return(0,a.recordAuthMetric)("suno_auth.sign_in",{outcome:"success",durationMs:Math.round(performance.now()-t),reason:"create"}),{id:r.response.id,status:r.response.status,createdSessionId:r.response.created_session_id,identifier:r.response.identifier}}catch(e){throw(0,a.recordAuthMetric)("suno_auth.sign_in",{outcome:"failure",durationMs:Math.round(performance.now()-t),reason:e instanceof Error?e.name:"exception"}),e}},[]),c=(0,t.useCallback)(async e=>{await (0,n.fapiPost)(`/v1/client/sign_ins/${e}/prepare_first_factor`,{strategy:"phone_code"})},[]),d=(0,t.useCallback)(async e=>{let t=performance.now();try{let r=await (0,n.fapiPost)("/v1/client/sign_ins",{strategy:"email_code",identifier:e});return(0,a.recordAuthMetric)("suno_auth.sign_in",{outcome:"success",durationMs:Math.round(performance.now()-t),reason:"create_email"}
12),{id:r.response.id,status:r.response.status,createdSessionId:r.response.created_session_id,identifier:r.response.identifier}}catch(e){throw(0,a.recordAuthMetric)("suno_auth.sign_in",{outcome:"failure",durationMs:Math.round(performance.now()-t),reason:e instanceof Error?e.name:"exception"}),e}},[]),f=(0,t.useCallback)(async e=>{await (0,n.fapiPost)(`/v1/client/sign_ins/${e}/prepare_first_factor`,{strategy:"email_code"})},[]),p=(0,t.useCallback)(async(t,r)=>{let i=performance.now();try{let s=await (0,n.fapiPost)(`/v1/client/sign_ins/${t}/attempt_first_factor`,{strategy:r.strategy,code:r.code});return(0,a.recordAuthMetric)("suno_auth.sign_in",{outcome:"success",durationMs:Math.round(performance.now()-i),reason:"attempt_phone_code"}),e.refresh(),{id:s.response.id,status:s.response.status,createdSessionId:s.response.created_session_id,identifier:s.response.identifier}}catch(e){throw(0,a.recordAuthMetric)("suno_auth.sign_in",{outcome:"failure",durationMs:Math.round(performance.now()-i),reason:e instanceof Error?e.name:"exception"}),e}},[e]),h=(0,t.useCallback)(async e=>{let t=await (0,n.fapiPost)("/v1/client/sign_ins",{strategy:e.strategy,redirect_url:e.redirectUrl,action_complete_redirect_url:(0,i.getOAuthActionCompleteRedirectUrl)({isSunoAuth:l,redirectUrl:e.redirectUrl,redirectUrlComplete:e.redirectUrlComplete})}),r=t.response.first_factor_verification?.external_verification_redirect_url;if(!r)throw Error("OAuth flow missing verification URL");if(!(0,i.isSafeOAuthVerificationUrl)(r))throw Error("OAuth flow returned an unsafe verification URL");window.location.assign(r)},[l]),m=(0,t.useMemo)(()=>({create:u,prepareFirstFactor:c,createEmail:d,prepareEmailFirstFactor:f,attemptFirstFactor:p,authenticateWithRedirect:h}),[u,c,d,f,p,h]);return(0,t.useMemo)(()=>({isLoaded:e.isLoaded,signIn:m,setActive:o}),[e.isLoaded,m,o])}])},839889,7712,e=>{"use strict";var t=e.i(249892),r=e.i(574550),n=e.i(974710),i=e.i(305223),a=e.i(725516);let s=new Set(["localhost","127.0.0.1","[::1]","::1"]);function o(e){try{let t=new URL(e);if(0===t.host.length)return!1;if("https:"===t.protocol)return!0;return"http:"===t.protocol&&s.has(t.hostname)}catch{return!1}}function l({isSunoAuth:e,redirectUrl:t,redirectUrlComplete:r}){if(!e)return r;try{let e=new URL(r);if(e.pathname===a.PageRoutes.LinkAccount)return t;return(0,i.isSameSiteHost)(e.hostname)?r:t}catch{return t}}e.s(["getOAuthActionCompleteRedirectUrl",0,l,"getSunoAuthCallbackUrl",0,function(e){try{let t=new URL(e),r=new URL("/sso-callback",t.origin);return r.searchParams.set("redirect_url",t.pathname+t.search+t.hash),r.toString()}catch{return"/sso-callback"}},"isSafeOAuthVerificationUrl",0,o],7712);var u=e.i(488099),c=e.i(442357);e.s(["useSignUp",0,function(){let e=(0,r.useAuthContext)(),i=(0,c.useSetActive)(),a="suno"===e.provider,s=(0,t.useCallback)(async e=>{let t=performance.now();try{let r=await (0,n.fapiPost)("/v1/client/sign_ups",{strategy:e.strategy,phone_number:e.phoneNumber});return(0,u.recordAuthMetric)("suno_auth.sign_up",{outcome:"success",durationMs:Math.round(performance.now()-t),reason:"create"}),{id:r.response.id,status:r.response.status,createdSessionId:r.response.created_session_id,phoneNumber:r.response.phone_number}}catch(e){throw(0,u.recordAuthMetric)("suno_auth.sign_up",{outcome:"failure",durationMs:Math.round(performance.now()-t),reason:e instanceof Error?e.name:"exception"}),e}},[]),d=(0,t.useCallback)(async e=>{await (0,n.fapiPost)(`/v1/client/sign_ups/${e}/prepare_verification`,{strategy:"phone_code"})},[]),f=(0,t.useCallback)(async e=>{let t=performance.now();try{let r=await (0,n.fapiPost)("/v1/client/sign_ups",{strategy:"email_code",email_address:e});return(0,u.recordAuthMetric)("suno_auth.sign_up",{outcome:"success",durationMs:Math.round(performance.now()-t),reason:"create_email"}),{id:r.response.id,status:r.response.status,createdSessionId:r.response.created_session_id,phoneNumber:r.response.phone_number}}catch(e){throw(0,u.recordAuthMetric)("suno_auth.sign_up",{outcome:"failure",durationMs:Math.round(performance.now()-t),reason:e instanceof Error?e.name:"exception"}),e}},[]),p=(0,t.useCallback)(async e=>{await (0,n.fapiPost)(`/v1/client/sign_ups/${e}/prepare_verification`,{strategy:"email_code"})},[]),h=(0,t.useCallback)(async(t,r)=>{let i=performance.now();try{let a=await (0,n.fapiPost)(`/v1/client/sign_ups/${t}/attempt_verification`,{strategy:"phone_code",code:r});return(0,u.recordAuthMetric)("suno_auth.sign_up",{outcome:"success",durationMs:Math.round(performance.now()-i),reason:"attempt_verification"}),e.refresh(),{id:a.response.id,status:a.response.status,createdSe
12ssionId:a.response.created_session_id,phoneNumber:a.response.phone_number}}catch(e){throw(0,u.recordAuthMetric)("suno_auth.sign_up",{outcome:"failure",durationMs:Math.round(performance.now()-i),reason:e instanceof Error?e.name:"exception"}),e}},[e]),m=(0,t.useCallback)(async e=>{let t=await (0,n.fapiPost)("/v1/client/sign_ups",{strategy:e.strategy,redirect_url:e.redirectUrl,action_complete_redirect_url:l({isSunoAuth:a,redirectUrl:e.redirectUrl,redirectUrlComplete:e.redirectUrlComplete})}),r=t.response.verifications?.external_account?.external_verification_redirect_url;if(!r)throw Error("OAuth flow missing verification URL");if(!o(r))throw Error("OAuth flow returned an unsafe verification URL");window.location.assign(r)},[a]),g=(0,t.useMemo)(()=>({create:s,prepareVerification:d,createEmail:f,prepareEmailVerification:p,attemptVerification:h,authenticateWithRedirect:m}),[s,d,f,p,h,m]);return(0,t.useMemo)(()=>({isLoaded:e.isLoaded,signUp:g,setActive:i}),[e.isLoaded,g,i])}],839889)},488099,e=>{"use strict";async function t(t,r){try{let{datadogRum:n}=await e.A(374300);n.addAction(t,r)}catch{}}e.s(["recordAuthMetric",0,t])},872490,e=>{"use strict";var t=e.i(799808),r=e.i(725516);let n=r.PUBLISHED_LOCALES.filter(e=>e!==r.DEFAULT_LOCALE),i=n.map(e=>(0,t.getLocalizedPath)(r.PageRoutes.Root,e));r.LOCALIZED_MARKETING_PATHS.flatMap(e=>n.map(r=>(0,t.getLocalizedPath)(e,r)));let a=new Set([r.PageRoutes.Root,r.PageRoutes.LoggedOutHome,...i]),s=[r.PageRoutes.Studio,r.PageRoutes.StudioLegacy];e.s(["getActiveSessionId",0,function(e){return e.response?.last_active_session_id??e.response?.sessions?.[0]?.id??null},"getMintedSessionCookieFailureReason",0,function(e,t){return e?t.includes(e)?null:"minted_session_cookie_missing":"no_minted_token"},"getRecoveryFailureRedirectPath",0,function({returnTo:e,isPublicRoute:t}){let n=e.split(/[?#]/,1)[0];return t||a.has(n)?e:s.some(e=>n===e||n.startsWith(`${e}/`))?r.PageRoutes.StudioWelcome:`${r.PageRoutes.SignIn}?redirect_url=${encodeURIComponent(e)}`},"getRecoverySuccessRedirectPath",0,function(e){let t=e.split(/[?#]/,1)[0];return a.has(t)?`${r.PageRoutes.LoggedInHome}${e.slice(t.length)}`:e},"getSessionRecoveryFailureReason",0,function(e){return"object"==typeof e&&null!==e&&"status"in e&&"number"==typeof e.status?`status_${e.status}`:e instanceof Error?e.name:"exception"}])},442357,e=>{"use strict";var t=e.i(249892),r=e.i(574550),n=e.i(455325),i=e.i(974710),a=e.i(488099),s=e.i(872490),o=e.i(365943);e.s(["useSetActive",0,function({throwOnError:e=!1}={}){let l=(0,r.useAuthContext)();return(0,t.useCallback)(async({session:t})=>{let r,u=performance.now(),c=e=>{(0,a.recordAuthMetric)("suno_auth.token_refresh",{outcome:"failure",durationMs:Math.round(performance.now()-u),reason:e})},d=encodeURIComponent(t),f=await fetch((0,o.getClerkApiUrl)(`/v1/client/sessions/${d}/touch`),{method:"POST",credentials:"include"});if(!f.ok){if(c(`set_active_status_${f.status}`),e)throw Error(`Failed to activate session: ${f.status}`);return}if("suno"===l.provider){let t;(0,n.clearHostSessionCookie)();try{t=await (0,i.fapiPost)(`/v1/client/sessions/${d}/tokens`)}catch(t){if(c(`set_active_token_${(0,s.getSessionRecoveryFailureReason)(t)}`),e)throw t;return}let a=(0,s.getMintedSessionCookieFailureReason)(t.jwt,(0,n.getSessionCookies)());if(a){if(c(`set_active_${a}`),e)throw Error(`Failed to activate session: ${a}`);return}r=t.jwt}let p=l.refresh(r);if(r&&!1===p){if(c("set_active_minted_token_invalid_or_expired"),e)throw Error("Failed to activate session: minted_token_invalid_or_expired");return}try{new BroadcastChannel("suno-auth").postMessage({type:"session_changed"})}catch{}(0,a.recordAuthMetric)("suno_auth.token_refresh",{outcome:"success",durationMs:Math.round(performance.now()-u)})},[l,e])}])},365943,e=>{"use strict";var t=e.i(305223);e.s(["getClerkApiUrl",0,function(e){let r=`/api/clerk${e}`,n=function(){let e="pk_live_YXV0aC5zdW5vLmNvbSQ".match(/^pk_(live|test)_(.+)$/);if(!e)return null;try{let t=atob(e[2]).replace(/\$$/,"");return`https://${t}`}catch{return null}}();return n&&(0,t.isSameSiteHost)(window.location.hostname)?`${n}${e}`:r}])},3593,e=>{"use strict";Object.fromEntries(Object.entries({genres:"genre",moods:"mood",occasions:"occasion",instruments:"instrument","use-cases":"use-case",collections:"collection"}).map(([e,t])=>[t,e])),e.s(["MUSIC_LIBRARY_PATH_PREFIX",0,"/music-library"])},109956,e=>{"use strict";var t,r=e.i(3593);e.i(725516);var n=((t={}).MusicLibrary="music-library",t.Products="products",t.Tools="tools",t);let i=[{section:"music-library",pathPrefix:r.MUSIC_LIBRARY_PATH_PREFIX,localePolicy:"all-published"},{section:"products",pathPrefix:"/products",localePolicy:"all-published"},{section:"tools",pathPrefix:"/tools",localePolicy:"default-locale-only"}];e.s(["SeoSection",()=>n,"getSeoSectionFromPath",0,function(e){let t=i.find(t=>e===t.pathPrefix||e.startsWith(`${t.pathPrefix}/`));return t?.section??null}],109956)},274869,e=>{"use strict";let t=(0,e.i(174883).create)(e=>({verdict:null,setVerdict:t=>e({verdict:t})}));e.s(["isAccountOptOut",0,function(e){return"user_choice"===e.source&&"denied"===e.state},"setDataSharingVerdict",0,function(e){t.getState().setVerdict(e)},"useDataSharingVerdict",0,t])},392461,e=>{"use strict";var t=e.i(268205);e.s(["formatAccountLockedMessage",0,function({isAuthCatalogReady:e,minutes:t,translate:r}){return e?r("auth.accountLockedMinutes",{count:t}):null},"getClerkErrorMessage",0,function({error:e,fallback:r,getAccountLockedMessage:n}){if((0,t.isClerkAPIResponseError)(e)){let t=e.errors[0];if(!t)return r;let i=t.meta;if("user_locked"===t.code&&i?.lockoutExpiresInSeconds){let e=n(Math.ceil(i.lockoutExpiresInSeconds/60));if(null!==e)return e}return t.longMessage||t.message}return r},"isPhoneCodeFactor",0,function(e){return"phone_code"===e.strategy}])},915474,e=>{"use strict";e.i(794880);var t=e.i(909524),r=e.i(613335);async function n(){try{let e=await (0,t.loadStripe)("pk_live_51KtA5uE1icI7lnWdem4jghbIa2TTWjGX5eDy8NzeipkkCAX6hDYL5ojHxBWsUIrDj5jphVAphp6EpZcxVSxKgHQJ00ZhN6Wrkd");if(!e)return null;let{radarSession:n,error:i}=await e.createRadarSession();if(i||!n)return null;let a=n.id;if("string"!=typeof a||!a)return null;let s=(0,r.getCookieDomain)();return r.default.set("stripe_radar_session",a,{path:"/",maxAge:900,sameSite:"lax",..."localhost"!==s&&{domain:s}}),a}catch{return null}}e.s(["collectRadarSession",0,n])},905506,e=>{e.q("/_next/static/immutable/media/waveform-getter-worklet.16geg6ghm4rru.js")}]);
13
14//# sourceMappingURL=0s4thmw604lcy.js.map
15//# debugId=daeb3b8a-5133-593a-8db5-51394f5aeff3

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.