\n \n
\n \n
\n \n \n \n \n \n \n \n \n',newUserCsrDom:''}}function mainPcCsrPreload(){try{if(!function(){const{searchParams:n}=new URL(location.href);return"pc"===n.get("flowType")&&(-1!==location.href.indexOf("long-video-to-shorts")&&(!n.get("uploadId")&&!n.get("capflowId")))}())return;const{styleContent:t,csrDom:e,newUserCsrDom:r}=genStyleAndDom();window.localStorage.setItem("CAPCUT_THEME","dark"),document.body.setAttribute("lv-theme","dark");const l=document.createElement("style");l.type="text/css",l.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(l);const i=document.createElement("div");"0"===localStorage.getItem("is_new_clip_user")?i.innerHTML=`${e}`:i.innerHTML=`${r}`;const a=document.getElementById("preload-csr-root");if(!a)return;function n(n,o){navigator.platform.startsWith("Win")?function(n,o){window?.cefQuery?.({request:JSON.stringify({callType:n,data:o})})}(n,o):window?.webkit?.messageHandlers?.[n]?.postMessage(JSON.stringify(o))}document.body.replaceChild(i,a),console.log("long-to-short-pc-csr",performance.now()),window.pStyleSheet=new Promise((function(o,t){new PerformanceObserver((e=>{if(window.l2sPerfTime={...window.l2sPerfTime??{},webFirstFrameRendered:performance.now()},e.getEntries().length){let e=0;document.querySelectorAll("[rel=preload][as=style]").forEach((function(n){let r=n.cloneNode();r.setAttribute("rel","stylesheet"),e+=1,r.addEventListener("load",(function(){e-=1,0===e&&(console.log("all stylesheet load"),o())})),r.addEventListener("error",(function(n){e-=1,console.error("stylesheet error",n),t(n)})),n.parentNode.insertBefore(r,n.nextSibling)})),setTimeout((()=>n("firstFrameRendered",{callbackId:String(Math.random()),params:{}})),50)}})).observe({type:"paint",buffered:!0})}))}catch(o){console.error("long-to-short-pc-csr error",o),window.pcCsrPreloadError=o,document.querySelectorAll("[rel=preload][as=style]").forEach((function(n){n.setAttribute("rel","stylesheet")}))}}mainPcCsrPreload()