1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,456618,e=>{"use strict";var t=e.i(316584),r=e.i(319634),n=e.i(531883),u=e.i(324400),o=e.i(74628);let i={prompt:"",styleId:null,aspect:"9:16",resolution:"480p",tier:u.MUSIC_MV_DEFAULT_TIER,durationSec:u.MUSIC_MV_FAST_MAX_SECONDS,keepUserOutfit:!1,music:null,characters:[]},s=(0,r.createContext)(null);e.s(["MvComposerStateProvider",0,function({children:e}){let[a,l]=(0,r.useState)(i),[c,p]=(0,r.useState)(!1),f=(0,r.useRef)(!1),d=(0,r.useCallback)(e=>{l(t=>{let r={...t,...e};return f.current&&(0,o.persistComposerDraft)(r),r})},[]),S=(0,r.useMemo)(()=>({prompt:a.prompt,styleId:a.styleId,aspect:a.aspect,resolution:a.resolution,tier:a.tier,durationSec:a.durationSec,keepUserOutfit:a.keepUserOutfit}),[a.prompt,a.styleId,a.aspect,a.resolution,a.tier,a.durationSec,a.keepUserOutfit]),m=(0,r.useCallback)(e=>{d(e)},[d]),M=(0,r.useCallback)((e,t)=>{d({[e]:t})},[d]),v=(0,r.useCallback)(()=>{l(()=>((0,o.clearComposerDraft)(),i))},[]),[h,C]=(0,r.useState)(null),[y,_]=(0,r.useState)([]),k=(0,r.useRef)(null),I=(0,r.useRef)([]),b=(0,r.useCallback)((e,t)=>{f.current&&d({music:(0,o.toMusicSnapshot)(e),characters:(0,o.toCharacterSnapshots)(t)})},[d]),U=(0,r.useCallback)(e=>{let t="function"==typeof e?e(k.current):e;k.current=t,C(t),b(t,I.current)},[b]),E=(0,r.useCallback)(e=>{let t=e(I.current);I.current=t,_(t),b(k.current,t)},[b]);(0,r.useLayoutEffect)(()=>{let e=(0,o.loadComposerDraft)();if(e){let t={prompt:"string"==typeof e.prompt?e.prompt:i.prompt,styleId:"string"==typeof e.styleId?e.styleId:null,aspect:"string"==typeof e.aspect&&e.aspect.trim()?e.aspect:i.aspect,resolution:"string"==typeof e.resolution?(0,u.parseMusicMvResolution)(e.resolution):i.resolution,tier:(0,u.parseMusicMvTier)(e.tier),durationSec:"number"==typeof e.durationSec&&Number.isFinite(e.durationSec)?e.durationSec:i.durationSec,keepUserOutfit:!0===e.keepUserOutfit,music:(0,o.parseMusicSnapshot)(e.music),characters:(0,o.parseCharacterSnapshots)(e.characters)};if(l(t),t.music){let e=(0,o.fromMusicSnapshot)(t.music);k.current=e,C(e)}if(t.characters.length){let e=t.characters.map(o.fromCharacterSnapshot);I.current=e,_(e)}}f.current=!0,p(!0)},[]);let g=(0,r.useRef)(0),{user:O}=(0,n.useSession)(),T=O?.id??null,[A,L]=(0,r.useState)({id:null,epoch:0}),R=(0,r.useRef)(0),w=null!==A.id&&A.id!==T,D=A.epoch+ +!!w;(0,r.useLayoutEffect)(()=>{A.id!==T&&(null!==A.id&&(R.current+=1,g.current+=1,U(null),E(e=>{for(let t of e)t.previewUrl.startsWith("blob:")&&URL.revokeObjectURL(t.previewUrl);return[]}),v()),L({id:T,epoch:R.current}))},[T,A.id,E,v,U]);let x=(0,r.useCallback)(e=>{R.current===D&&m(e)},[D,m]),N=(0,r.useCallback)((e,t)=>{R.current===D&&M(e,t)},[D,M]),V=(0,r.useCallback)(()=>{R.current===D&&v()},[D,v]),F=(0,r.useCallback)(e=>{R.current===D&&U(e)},[D,U]),P=(0,r.useCallback)(e=>{R.current===D&&E(e)},[D,E]),j=(0,r.useMemo)(()=>({config:w?i:S,setConfig:x,setConfigField:N,resetConfig:V,draftHydrated:!w&&c,music:w?null:h,setMusic:F,characters:w?[]:y,commitCharacters:P,musicSlotSeqRef:g}),[w,S,x,N,V,c,h,F,y,P]);return(0,t.jsx)(s.Provider,{value:j,children:e})},"useMvComposerState",0,function(){let e=(0,r.useContext)(s);if(!e)throw Error("useMvComposerState å¿
é¡»å¨ MvComposerStateProvider å
使ç¨");return e}])},137596,e=>{"use strict";let t="softOverlay";function r(e){return"object"==typeof e&&null!==e}function n(e){if(!r(e))return null;let n=e[t];return r(n)&&"string"==typeof n.kind&&"payload"in n?{kind:n.kind,payload:n.payload}:null}let u=0,o=new Set;function i(){for(let e of o)e()}e.s(["acquireSoftOverlay",0,function(){let e=!1;return u+=1,i(),()=>{e||(e=!0,u=Math.max(0,u-1),i())}},"getSoftOverlayActive",0,function(){return u>0},"isSoftOverlayHistoryState",0,function(e){return null!==n(e)},"readSoftOverlayState",0,n,"subscribeSoftOverlay",0,function(e){return o.add(e),()=>{o.delete(e)}},"withSoftOverlayState",0,function(e,r){return{[t]:{kind:e,payload:r}}}])},245257,456202,e=>{"use strict";function t(e){return e&&"object"==typeof e&&"name"in e?String(e.name):""}function r(){return navigator.connection}e.s(["playWhenReady",0,function(e,r={}){let n=!1,u=!1,o=!1,i=()=>{u&&(u=!1,e.removeEventListener("canplay",s),e.removeEventListener("loadeddata",s))},s=()=>{n||(i(),a())},a=()=>{n||e.play().then(i,i=>
1{if(!n){if(r.mutedFallback&&!e.muted&&"NotAllowedError"===t(i)){e.muted=!0,a();return}"NotAllowedError"!==t(i)&&(n||u||(u=!0,e.addEventListener("canplay",s),e.addEventListener("loadeddata",s),!o&&e.readyState>=2&&(o=!0,s())))}})};return a(),()=>{n=!0,i()}}],245257),e.s(["shouldAvoidAutoplay",0,function(){return r()?.saveData||window.matchMedia("(prefers-reduced-motion: reduce)").matches},"shouldAvoidBackgroundLoad",0,function(){let e=r();return!!e?.saveData||e?.effectiveType==="slow-2g"||e?.effectiveType==="2g"}],456202)},324400,e=>{"use strict";let t="fast";function r(e){return"pro"===e?"pro":"fast"}function n(e){let t=e.toLowerCase();return"480p"===t||"720p"===t||"1080p"===t?t:"480p"}function u(e=t){return"pro"===e?30:15}let o="480p";e.s(["MUSIC_MV_ASPECTS",0,["16:9","9:16","4:3","3:4","1:1","21:9"],"MUSIC_MV_DEFAULT_TIER",0,t,"MUSIC_MV_FAST_MAX_SECONDS",0,15,"MUSIC_MV_MAX_CHARACTER_IMAGES",0,1,"MUSIC_MV_MIN_SECONDS",0,4,"MUSIC_MV_RESOLUTIONS",0,["480p","720p","1080p"],"MUSIC_MV_TIERS",0,["fast","pro"],"VISUAL_STYLE_LIST_LIMIT",0,150,"isMusicMvResolutionLocked",0,function(e,t){return!t&&n(e)!==o},"isMusicMvTierLocked",0,function(e,t){return!t&&"pro"===r(e)},"musicMvDurationSliderBounds",0,function(e){let t=u(e.tier),r=e.musicDurationSec;return null==r||!Number.isFinite(r)||r<1?{max:t}:{max:Math.min(t,Math.max(4,Math.floor(r)))}},"musicMvMaxSeconds",0,u,"musicMvMembershipForLimits",0,function(e,t){return!e||t},"parseMusicMvResolution",0,n,"parseMusicMvTier",0,r,"resolveMusicMvOutput",0,function(e){if(!e.isMember)return{tier:t,resolution:o};let u=r(e.tier),i=n(e.resolution);return"1080p"===i&&"fast"===u&&("tier"===e.prefer?i="720p":u="pro"),{tier:u,resolution:i}},"visualStyleCoverURL",0,function(e){return e.cover_url?.trim()||e.image_url?.trim()||e.images?.identity?.[0]?.trim()||""}])},486760,e=>{"use strict";let t=null;e.s(["hasInAppBack",0,function(){return null!=t&&window.history.length>t},"markDocumentEntry",0,function(){null==t&&(t=window.history.length)}])},526146,e=>{e.v(t=>Promise.all(["static/chunks/0sh-0wihnvkd8.js"].map(t=>e.l(t))).then(()=>t(952414)))},460560,e=>{"use strict";var t=e.i(24688),r=e.i(316584);e.s(["NextIntlClientProvider",0,function({locale:e,...n}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...n})}],460560)}]);
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.