1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="422d1214-45a2-49b1-ad31-53bc8e8031ca",e._sentryDebugIdIdentifier="sentry-dbid-422d1214-45a2-49b1-ad31-53bc8e8031ca")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9667],{86771:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/photo-restoration",function(){return o(80993)}])},42084:function(e,t,o){"use strict";var i=o(52676),a=o(11729),r=o(75491),n=o(85021),l=o(52890),c=o(53623),s=o(81076),u=o(36810),h=o.n(u),m=o(75271),p=o(65051),d=o(34758);let x={Ios:{logo:"https://object.pixocial.com/pixocial/koge9z4mmxjiq6say7k9lxka.png",text:"https://object.pixocial.com/pixocial/pr7d4tan43hhmaxevxmk0sp6.png"},Google:{logo:"https://object.pixocial.com/pixocial/m1l0kphhydcyo8qfdeah92nr.png",text:"https://object.pixocial.com/pixocial/9wv8gphjwyd7wpt949ngwqfn.png"}};t.Z=e=>{let{module:t,btnCls:o,sceneId:u,btnConCls:g}=e,{report:f}=(0,r.n)(),v=(0,s.ZP)(),{platform:b}=(0,c.Z)(),w=(0,m.useMemo)(()=>u&&a.Mn[u],[u]),R=(0,n.Z)(()=>{f(v?p.B_.DOWNLOAD_EXPOSURE:p.B_.DOWNLOAD_EXPOSURE_STORE,{position:d.MU[t],scene_id:u})}),y=(0,m.useCallback)(()=>{f(v?p.B_.DOWNLOAD_CLICK:p.B_.DOWNLOAD_CLICK_STORE,{position:d.MU[t],scene_id:u})},[v,t,f,u]),E=(0,m.useMemo)(()=>(0,i.jsx)("a",{href:v?w||a.Z2[t]:a.Qk.IOS,target:"__blank",rel:"nofollow",className:"w-full",onClick:y,children:(0,i.jsxs)("div",{className:(0,l.cn)("mobile:h-[62px] flex h-[72px] w-full items-center justify-center gap-4 roun
1ded-[100px] border border-[rgba(206,255,65,0.30)] bg-[var(--all-tools-bg-color)]",o),children:[(0,i.jsx)(h(),{width:48,height:48,src:x.Ios.logo,alt:"Ios"}),(0,i.jsx)(h(),{height:42,width:103,src:x.Ios.text,alt:"Ios"})]})}),[o,v,t,y,w]),j=(0,m.useMemo)(()=>(0,i.jsx)("a",{href:v?w||a.Z2[t]:a.Qk.Android,target:"__blank",rel:"nofollow",className:"w-full",onClick:y,children:(0,i.jsxs)("div",{className:(0,l.cn)("mobile:h-[62px] flex h-[72px] w-full items-center justify-center gap-4 rounded-[100px] border border-[rgba(206,255,65,0.30)] bg-[var(--all-tools-bg-color)]",o),children:[(0,i.jsx)(h(),{width:48,height:48,src:x.Google.logo,alt:"Google"}),(0,i.jsx)(h(),{height:39,width:125,src:x.Google.text,alt:"Google"})]})}),[o,v,t,y,w]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{ref:R,className:(0,l.cn)("mobile:hidden flex w-full justify-between gap-6",g),children:[E,j]}),(0,i.jsx)("div",{className:"mobile:block hidden",children:b===c.t.IOS?E:j})]})}},33412:function(e,t,o){"use strict";o.d(t,{a:function(){return d}});var i=o(52676),a=o(75271),r=o(68420),n=o(23545),l=o(52890),c=o(76245);let s=e=>{let{className:t,style:o,children:a}=e;return(0,i.jsx)("div",{className:(0,l.cn)("absolute z-[2] bg-[var(--c-bg-diff-tag)] px-4 py-[6px] text-[15px] font-light leading-[1.1] text-[var(--c-text-diff-tag)]",t),style:o,children:a})},u=e=>/^(blob:|data:|https?:)/.test(e),h=e=>/\.[a-zA-Z0-9]+($|\?)/.test(e),m=e=>u(e)||h(e)?[e]:["".concat(e,".avif"),"".concat(e,".webp"),"".concat(e,".png")],p=e=>{let{src:t,alt:o,priority:a,style:r}=e;return u(t)?(0,i.jsx)("img",{src:t,alt:o,className:"h-full w-full object-contain",loading:a?"eager":"lazy",fetchPriority:a?"high":void 0,style:r}):(0,i.jsx)(c.Z,{alt:o,src:t,className:"h-full w-full overflow-hidden",innerImgClassName:"h-full w-full object-contain",fetchpriority:a?"high":void 0,loading:a?"eager":"lazy",style:r})},d=e=>{let{sourceUrl:t,afterUrl:o,className:c,style:u,children:h,hideDiffTag:d,alt:x,priority:g}=e,[f,v]=(0,a.useState)(50),[b,w]=(0,a.useState)(!1),R=(0,a.useRef)(null),y=(0,a.useRef)(!1),E=(0,a.useRef)(0),[j,N]=(0,a.useState)({width:0,height:0}),[_,I]=(0,a.useState)({width:0,height:0}),A=(0,a.useMemo)(()=>{let{width:e,height:t}=j,{width:o,height:i}=_;if(!e||!t||!o||!i)return{width:e,height:t,left:0,top:0};let a=Math.min(e/o,t/i),r=o*a,n=i*a;return{width:r,height:n,left:(e-r)/2,top:(t-n)/2}},[j,_]),O=A.left+A.width*(f/100),k=(0,a.useMemo)(()=>{let e={...u};return!e.height&&_.width&&_.height&&(e.aspectRatio="".concat(_.width," / ").concat(_.height)),e},[_.height,_.width,u]),C=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!A.width)return;let o=(e-t-A.left)/A.width*100;v(Math.max(0,Math.min(100,o)))},[A.left,A.width]),S=(0,a.useCallback)(e=>{y.current&&(e.preventDefault(),C(e.clientX,E.current))},[C]),P=(0,a.useCallback)(()=>{y.current=!1},[]),T=(0,a.useCallback)(e=>{var t,o;e.preventDefault(),e.stopPropagation(),y.current=!0,E.current=e.clientX-O,null===(o=(t=e.currentTarget).setPointerCapture)||void 0===o||o.call(t,e.pointerId)},[O]);return(0,a.useEffect)(()=>(window.addEventListener("pointermove",S),window.addEventListener("pointerup",P),window.addEventListener("pointercancel",P),()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerup",P),window.removeEventListener("pointercancel",P)}),[S,P]),(0,a.useEffect)(()=>{v(50),w(!1),I({width:0,height:0});let e=!1,o=async()=>{let o=m(t);for(let t of o){let o=await new Promise(e=>{let o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=()=>e(null),o.src=t});if(e)return;if(o){I(o),w(!0);return}}};return o(),()=>{e=!0}},[t,o]),(0,a.useEffect)(()=>{let e=R.current;if(!e||!window.ResizeObserver)return;let t=()=>{let t=e.getBoundingClientRect();N({width:t.width,height:t.height})};t();let o=new ResizeObserver(t);return o.observe(e),()=>{o.disconnect()}},[]),(0,i.jsxs)("div",{ref:R,className:(0,l.cn)("relative isolate w-full overflow-hidden rounded-[inherit]",c),style:k,children:[(0,i.jsx)("div",{className:"absolute overflow-hidden",style:{width:A.width,height:A.height,left:A.left,top:A.top},children:(0,i.jsx)(p,{src:t,alt:x,priority:g})}),(0,i.jsx)("div",{className:"absolute overflow-hidden",style:{width:A.width,height:A.height,left:A.left,top:A.top,clipPath:"pol
1ygon(".concat(f,"% 0%, 100% 0%, 100% 100%, ").concat(f,"% 100%)"),WebkitClipPath:"polygon(".concat(f,"% 0%, 100% 0%, 100% 100%, ").concat(f,"% 100%)")},children:(0,i.jsx)(p,{src:o,alt:x,priority:!0})}),(0,i.jsx)(s,{className:(0,l.cn)("rounded-r-[80px]",(d||!b)&&"invisible"),style:{left:A.left,top:A.top+12.5},children:(0,n.t)("gen.before")}),(0,i.jsx)(s,{className:(0,l.cn)("rounded-l-[80px]",(d||!b)&&"invisible"),style:{right:j.width-A.left-A.width,top:A.top+12.5},children:(0,n.t)("gen.after")}),(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-white/0"}),(0,i.jsx)("button",{type:"button",onPointerDown:T,className:(0,l.cn)("absolute z-[3] w-px -translate-x-1/2 cursor-ew-resize touch-none bg-white",!b&&"pointer-events-none invisible"),style:{left:O,top:A.top,height:A.height},"aria-label":"compare images",children:(0,i.jsx)("div",{className:"absolute left-1/2 top-1/2 h-6 w-6 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white",children:(0,i.jsx)(r.Z,{className:"absolute left-1/2 top-1/2 h-6 w-6 -translate-x-1/2 -translate-y-1/2 rotate-90 text-black"})})}),(0,i.jsx)("div",{className:(0,l.cn)("pointer-events-none absolute inset-0 z-[4]",!b&&"invisible"),children:(0,i.jsx)("div",{className:"absolute",style:{width:A.width,height:A.height,left:A.left,top:A.top},children:h})})]})}},18611:function(e,t,o){"use strict";var i=o(52676),a=o(43686),r=o.n(a),n=o(23545),l=o(75271),c=o(22971),s=o(97690),u=o(52890),h=o(56261),m=o(51557),p=o(43373),d=o(71054);t.Z=e=>{var t;let{breadcrumbList:o,className:a}=e,x=(0,c.useRouter)(),g=x.locale===s.Locales[0]?"":"/".concat(x.locale),f=(0,m.ug)(x.locale),[v,b]=(0,l.useState)();return(0,l.useEffect)(()=>{var e;let t,o=x.pathname;if("/[slug]"===x.pathname)o="/".concat(x.query.slug);else if(x.query.type){let e=h.g.some(e=>e.slug===x.query.type);e&&(o="/".concat(x.query.type))}o=o.replace("/result","");let i="".concat("/"===o?"":o,"/"),a=(0,p.B2)(n.t).filter(t=>!(null!==(e=t.hide)&&void 0!==e?e:[]).includes("breadcrumb")).map(e=>({...e,title:e.header}));for(let e=0;e<a.length;e++)if(a[e].link===i){t=a[e];break}b(t)},[g,x.pathname,x.query.slug,x.query.type]),(0,i.jsx)("div",{className:(0,u.cn)("relative flex justify-start px-6 pt-6","mobile:px-4 mobile:pt-3",a),children:(0,i.jsx)("div",{className:"flex w-full items-center gap-3 overflow-hidden leading-[21px]",children:(null===(t=null!=o?o:[])||void 0===t?void 0:t.length)?o.map((e,t)=>(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(r(),{href:e.link,className:"mobile:text-sm cursor-pointer whitespace-nowrap text-base font-normal leading-[21px] text-white/60",children:e.title}),t<o.length-1?(0,i.jsx)("span",{className:"text-sm text-gray-500",children:(0,i.jsx)(d.Z,{className:"h-4 w-4 text-white/80"})}):null]},t)):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r(),{href:f.WorkspaceHome,className:"mobile:text-sm cursor-pointer whitespace-nowrap text-base font-normal leading-[21px] text-white/60",children:(0,n.t)("homepage.header")}),(0,i.jsx)("span",{className:"text-sm text-gray-500",children:(0,i.jsx)(d.Z,{className:"h-4 w-4 text-white/80"})}),(0,i.jsx)(r(),{href:f.AllTools,className:"mobile:text-sm cursor-pointer whitespace-nowrap text-base font-normal leading-[21px] text-white/60",children:(0,n.t)("worspace.tab.all.tools")}),v?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"text-sm text-gray-500",children:(0,i.jsx)(d.Z,{className:"h-4 w-4 text-white/80"})}),(0,i.jsx)(r(),{href:v.link,className:"mobile:text-sm cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap text-base font-normal leading-[21px] text-white",children:v.title})]}):null]})})})}},1129:function(e,t,o){"use strict";o.d(t,{Z:function(){return c}});var i=o(52676),a=o(75271),r=o(52890),n=o(19328),l=o(78212);function c(){let{modalClassName:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,o]=(0,a.useState)(""),[c,s]=(0,a.useState)(!1),u=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;s(!0),o(e),setTimeout(()=>{s(!1)},t)},[]),h=(0,a.useMemo)(()=>(0,i.jsx)(n.u,{className:(0,r.cn)(e,"z-[10000] bg-transparent backdrop-blur-none"),open:c,children:(0,i.jsxs)("div",{className:"absolute left-1/2 top-1/2 flex h-44 w-44 -translate-x-1/2 -translate-y-1/2 flex-col items-center justify-center gap-2 rounded-[20px] bg-[var(--surface-Layer4)] px-3 backdrop-blur-[8px]",children:[(0,i.jsx)(l.Z,{}),(0,i.jsx)("p",{className:"text-center text-sm text-[var(--normal-text-color-5)]",children:t})]})}),[t,e,c]);return[u,h]}},7929:function(e,t,o){"use strict";o.d(t,{Bq:function(){return n},DT:function(){return u},Tb:function(){return l},Zf:function(){return c},bv:function(){return r},jo:function(){return m},oy:function(){return a},xQ:function(){return s},zN:function(){return h}});var i=o(56078);
1let a="video_enhancer_cache_key",r="video_enhancer_task_info",n="video.enhancer",l=200,c=600,s=4096,u={[i.cN.Portrait]:1,[i.cN.AIRepair]:3,[i.cN.AIUltraHD]:6},h=e=>[{value:i.cN.Portrait,label:e("vid.enh.portrait.hd"),cost:u[i.cN.Portrait],icon:"https://titan-h5.meitu.com/pixocial/photocat/portrait-icon.svg",resolution:e("video.original")},{value:i.cN.AIRepair,label:e("ai.repair"),cost:u[i.cN.AIRepair],icon:"https://titan-h5.meitu.com/pixocial/photocat/repair-icon.svg",resolution:"2K"},{value:i.cN.AIUltraHD,label:e("image.enhance.ai.hd"),cost:u[i.cN.AIUltraHD],icon:"https://titan-h5.meitu.com/pixocial/photocat/ai-uhd-icon.svg",resolution:"4K"}],m={timeLine:{height:50,x:10,y:10},canvas:{height:70},videoPointer:{url:"https://titan-h5.meitu.com/pixocial/photocat/video-pointer.png",cursor:"https://titan-h5.meitu.com/pixocial/photocat/cursor-left-right.svg",width:8,height:70,x:6,y:1,hotArea:{width:16,height:70,x:6}},range:{borderColor:"#FFFFFF",borderWidth:1,unRangeColor:"rgba(0,0,0,0.6)",text:{width:50,height:20,x:0,y:30,color:"#FFFFFF",bg:"#000000",opacity:.8,fontSize:12}},clip:{url:"https://titan-h5.meitu.com/pixocial/photocat/move.svg",color:"#FFFFFF",width:10,height:51,x:0,y:9.5,cornerRadius:8,control:{color:"#000000",width:2,height:11,cornerRadius:8}}}},56078:function(e,t,o){"use strict";o.d(t,{K8:function(){return l},OK:function(){return n},cN:function(){return c},sA:function(){return u}});var i,a,r,n,l,c,s=o(75271);(i=n||(n={})).Original="original",i.Preview="preview",(a=l||(l={})).Full="full",a.Ten="10s",a.Thirty="30s",a.Sixty="60s",a.Custom="custom",(r=c||(c={})).Portrait="portrait",r.AIRepair="ai_repair",r.AIUltraHD="ai_uhd";let u=(0,s.createContext)(null)},66981:function(e,t,o){"use strict";o.d(t,{Bq:function(){return s},Nb:function(){return u},U8:function(){return d},VJ:function(){return m},oy:function(){return c},xO:function(){return p},ye:function(){return h}});var i=o(36958),a=o(46653),r=o(24629),n=o(7929),l=o(92467);let c="batch_editor_cache_key",s="batch.edit",u=50,h=10485760,m=4096,p=e=>[{value:r.zr.IMAGE_ENHANCER,label:e("img.enhancer.short.name"),icon:"https://object.pixocial.com/pixocial/bry3sxglonsmze3jb1q8ad45.svg",activeIcon:"https://object.pixocial.com/pixocial/ygmao2w1rwri6tasakrr6399.svg",apiParams:{category:i.Xc.ImageEnhance,version:"2.0"},parentLink:"/image-enhancer/"},{value:r.zr.PHOTO_RESTORATION,label:e("photo.restore.short.name"),icon:"https://object.pixocial.com/pixocial/y2pzcjn8q26babozxfniic4c.svg",activeIcon:"https://object.pixocial.com/pixocial/pcgxdz30x9oh9po6rmxdx01c.svg",apiParams:{category:i.Xc.PhotoRestoration,version:"1.0"},parentLink:"/photo-restoration/"},{value:r.zr.PHOTO_COLORIZE,label:e("photo.colorize.short.name"),icon:"https://object.pixocial.com/pixocial/nb7n78lv1n7x5pbxezn6ri4p.svg",activeIcon:"https://object.pixocial.com/pixocial/w4hbfldmiimdf116ua5wzvfe.svg",apiParams:{category:i.Xc.ImageColorize,version:"1.0"},parentLink:"/photo-colorize/"},{value:r.zr.AI_RETOUCH,label:e("ai.retouch.short.name"),icon:"https://object.pixocial.com/pixocial/crn06ylgb2t2fujzqhn5h46a.svg",activeIcon:"https://object.pixocial.com/pixocial/22inuefj727rqd8s2shuquof.svg",apiParams:{category:i.Xc.AutoRetouch,version:"1.0"},parentLink:"/ai-retouch/"},{value:r.zr.AI_HAIRSTYLE,label:e("ai.hairstyles.short.name"),icon:"https://object.pixocial.com/pixocial/9ioo693hvob12u4lxotn7343.svg",activeIcon:"https://object.pixocial.com/pixocial/d33oznhk5k849amc5lwaklty.svg",apiParams:{category:i.Xc.HairStyle,version:"4.0"},parentLink:"/ai-hairstyle/"},{value:r.zr.AI_HAIRCOLOR,label:e("ai.haircolor.short.name"),icon:"https://object.pixocial.com/pixocial/s68y0y0rxol96n9nv4q1vu3h.svg",activeIcon:"https://object.pixocial.com/pixocial/0qqk9ir6mni0ztl1x2uc0nyw.svg",apiParams:{category:i.Xc.HairColor,version:"2.0"},parentLink:"/hair-color-changer/"},{value:r.zr.AI_FILTERS,label:e("ai.filters.header"),icon:"https://object.pixocial.com/pixocial/p714e1t6bt1icxc3uyp8tfk5.svg",activeIcon:"https://object.pixocial.com/pixocial/gbzfm00h6pmcladl633jq1cq.svg",apiParams:{category:i.Xc.AiImageFilter,version:"1.0"},parentLink:"/ai-filters/"},{value:r.zr.AI_BACKGROUND,label:e("ai.background.short.name"),icon:"https://object.pixocial.com/pixocial/sr4k7tu76kmi5b7zozgn7lii.svg",activeIcon:"https://object.pixocial.com/pixocial/25kjcxx6ii8wa1wxyzk0j7gz.svg",apiParams:{category:i.Xc.AiBackgroun
1d,version:"2.0"},parentLink:"/background-remover/"},{value:r.zr.OBJECT_REMOVER,label:e("object.remover.short.name"),icon:"https://object.pixocial.com/pixocial/npujhcmjuuzh3c7o6t1hjjjq.svg",activeIcon:"https://object.pixocial.com/pixocial/apozwgpf0c8bdl8hudu5np9e.svg",apiParams:{category:i.Xc.AiRemove,version:"2.0"},parentLink:"/object-remover/"},{value:r.zr.AI_CLOTHES_CHANGER,label:e("clothes.changer.short.name"),icon:"https://object.pixocial.com/pixocial/cj17asgxmowtwzg7jybjhomv.svg",activeIcon:"https://object.pixocial.com/pixocial/jtmuydba0w95e0t89d0lk9zj.svg",apiParams:{category:i.Xc.AiTryOn,version:"2.0"},parentLink:"/ai-clothes-changer/"},{value:r.zr.PASSERBY_REMOVER,label:e("passerby.remover.tools.name"),apiParams:{category:i.Xc.PasserbyRemove,version:"1.0"},hide:!0,parentLink:"/passerby-remover/"},{value:r.zr.BEARD_FILTER,label:e("beard.filter.short.name"),icon:"https://titan-h5.meitu.com/pixocial/photocat/beard_icon.svg",activeIcon:"https://titan-h5.meitu.com/pixocial/photocat/beard_icon active.svg",apiParams:{category:i.Xc.AiBeard,version:"1.0"},parentLink:"/beard-filter/"}],d=e=>[{value:r.zr.VIDEO_WATERMARK_REMOVER,label:e("video.watermark.remover.short.name"),icon:"https://titan-h5.meitu.com/pixocial/photocat/vid-watermark-remover.svg",activeIcon:"https://titan-h5.meitu.com/pixocial/photocat/vid-watermark-remover-active.svg",apiParams:{category:i.Xc.VideoRemoveWatermark,version:"2.0"},parentLink:"/video-watermark-remover/",perSecondCost:l.DT},{value:r.zr.VIDEO_ENHANCER,label:e("video.enhancer.short.name"),icon:"https://titan-h5.meitu.com/pixocial/photocat/vid-enhance.svg",activeIcon:"https://titan-h5.meitu.com/pixocial/photocat/vid-enhance-active.svg",apiParams:{category:i.Xc.VideoEnhance,version:"2.0"},parentLink:"/ai-video-enhancer/",perSecondCost:n.DT}];a.DD.IMAGE,a.DD.VIDEO},88481:function(e,t,o){"use strict";o.d(t,{G:function(){return i}});let i="batch_imgs_upload_key";t.Z=e=>{let{batchImgsUploadKey:t}=e;return{setUploadFiles:e=>{let o=e.map(e=>{let t=new Blob([e],{type:e.type});return URL.createObjectURL(t)});sessionStorage.setItem(t,JSON.stringify(o))},getUploadFiles:()=>{let e=sessionStorage.getItem(t);if(e){let t=JSON.parse(e)||[];return t}return[]},removeUploadFiles:()=>{sessionStorage.removeItem(t)}}}},24629:function(e,t,o){"use strict";o.d(t,{ku:function(){return c},sA:function(){return s},zr:function(){return a}});var i,a,r=o(75271),n=o(36958),l=o(34758);(i=a||(a={}))[i.IMAGE_ENHANCER=n.Xc.ImageEnhance]="IMAGE_ENHANCER",i[i.PHOTO_RESTORATION=n.Xc.PhotoRestoration]="PHOTO_RESTORATION",i[i.PHOTO_COLORIZE=n.Xc.ImageColorize]="PHOTO_COLORIZE",i[i.AI_RETOUCH=n.Xc.AutoRetouch]="AI_RETOUCH",i[i.AI_HAIRSTYLE=n.Xc.HairStyle]="AI_HAIRSTYLE",i[i.AI_HAIRCOLOR=n.Xc.HairColor]="AI_HAIRCOLOR",i[i.AI_FILTERS=n.Xc.AiImageFilter]="AI_FILTERS",i[i.AI_BACKGROUND=n.Xc.AiBackground]="AI_BACKGROUND",i[i.OBJECT_REMOVER=n.Xc.AiRemove]="OBJECT_REMOVER",i[i.AI_CLOTHES_CHANGER=n.Xc.AiTryOn]="AI_CLOTHES_CHANGER",i[i.PASSERBY_REMOVER=n.Xc.PasserbyRemove]="PASSERBY_REMOVER",i[i.VIDEO_WATERMARK_REMOVER=n.Xc.VideoRemoveWatermark]="VIDEO_WATERMARK_REMOVER",i[i.VIDEO_ENHANCER=n.Xc.VideoEnhance]="VIDEO_ENHANCER",i[i.BEARD_FILTER=n.Xc.AiBeard]="BEARD_FILTER",i[i.AI_ENHANCE_ULTRA=n.Xc.Agent]="AI_ENHANCE_ULTRA",i[i.VIDEO_PASSERBY_REMOVER=n.Xc.VideoPasserbyRemove]="VIDEO_PASSERBY_REMOVER";let c={[n.Xc.ImageEnhance]:l.lS.ImageEnhancer,[n.Xc.PhotoRestoration]:l.lS.PhotoRestoration,[n.Xc.AutoRetouch]:l.lS.ImageRetouch,[n.Xc.HairStyle]:l.lS.AIHairstyle,[n.Xc.AiImageFilter]:l.lS.AIFilters,[n.Xc.AiBackground]:l.lS.Backgroun
1dRemover,[n.Xc.AiRemove]:l.lS.ObjectRemover,[n.Xc.AiTryOn]:l.lS.AIClothesChanger,[n.Xc.VideoRemoveWatermark]:l.lS.VideoWatermarkRemover,[n.Xc.VideoEnhance]:l.lS.VideoEnhancer,[n.Xc.AiBeard]:l.lS.BeardFilter,[n.Xc.ImageColorize]:l.lS.ImageColorize,[n.Xc.HairColor]:l.lS.HairColor,[n.Xc.Agent]:l.lS.AiEnhanceUltra,[n.Xc.VideoPasserbyRemove]:l.lS.VideoPasserbyRemover},s=(0,r.createContext)(null)},91617:function(e,t,o){"use strict";o.d(t,{Bq:function(){return n},Ll:function(){return l},bv:function(){return a},dP:function(){return r},oy:function(){return i}});let i="photo_restoration_cache_key",a="photo_restoration_task_info",r="/image/photo-restoration",n="photo.restore",l={aisa:{before:"".concat(r,"/img-0-before"),after:"".concat(r,"/img-0-after")},west:{before:"".concat(r,"/west/img-0-before"),after:"".concat(r,"/west/img-0-after")}}},80993:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return S}});var i=o(52676),a=o(22971),r=o(52234),n=o.n(r),l=o(75271),c=o(23545),s=o(34758),u=o(1129),h=o(75491),m=o(97690),p=o(65051),d=o(51557),x=o(52890),g=o(8859),f=o(81076),v=o(36958),b=o(62284),w=o.n(b),R=o(18611),y=o(66981),E=o(88481),j=o(42084),N=o(33412),_=o(39748),I=o(72055),A=o(63543),O=o(74457),k=o(91617);let C=n()(()=>o.e(3292).then(o.bind(o,23292)).then(e=>({default:e.PhotoRestorationLanding})),{loadableGenerated:{webpack:()=>[23292]},ssr:!1});function S(){let e=(0,a.useRouter)(),t=(0,d.ug)(e.locale),o=(0,d.ug)(""),{report:r}=(0,h.n)(),n=(0,f.ZP)(),b=g.o6.includes(e.locale)?"aisa":"west",S=k.Ll[b],{user:P,openLoginDialog:T}=(0,m.useLogin)(),{setUploadFiles:L}=(0,E.Z)({batchImgsUploadKey:E.G}),[z,X]=(0,u.Z)({modalClassName:"!pointer-events-none"}),D=e.query.from_page;(0,l.useEffect)(()=>{r(p.B_.EDIT_FUNC_ENTER,{edit_func:s.MU[s.lS.PhotoRestoration],ref:D})},[D,r]);let F=(0,l.useCallback)(async(t,o)=>(sessionStorage.removeItem(k.bv),sessionStorage.setItem(k.oy,JSON.stringify({source:t})),e.push("/photo-restoration/result?rp=".concat(o)),!0),[e]),H=(0,l.useCallback)(async t=>{let i=()=>{L(t),e.push("".concat(o.BatchEditorResult,"?tool=").concat(v.Xc.PhotoRestoration))};(null==P?void 0:P.isLogin)?i():T({cb:e=>{(null==e?void 0:e.isLogin)&&i()}})},[T,e,L,o.BatchEditorResult,null==P?void 0:P.isLogin]),B=(0,l.useMemo)(()=>(0,i.jsx)("h1",{className:"m-auto text-center text-[26px] font-bold leading-normal md:text-[42px]",dangerouslySetInnerHTML:{__html:(0,c.t)("".concat(k.Bq,".intro.h1"))}}),[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.Z,{meta:(0,_.g)(c.t,k.Bq),localePath:t.PhotoRestoration}),(0,i.jsx)(I.Z,{data:(0,I.F)(c.t,t.PhotoRestoration,k.Bq)}),(0,i.jsx)(O.Z,{path:o.PhotoRestoration}),(0,i.jsxs)("div",{id:"toolbox-root",className:"pt-ws-nav-h mobile:pt-[var(--gbanner-height)] relative",children:[X,(0,i.jsx)(R.Z,{className:"mobile:relative absolute left-0 top-0"}),(0,i.jsx)("div",{className:"xmd:px-4 mobile:pt-0 px-6 py-10",children:(0,i.jsx)("div",{className:(0,x.cn)(w().main_1200,"mobile:py-5 pb-[60px]"),children:(0,i.jsxs)("section",{className:"xmd:gap-[10px] flex flex-col items-start gap-4",children:[!n&&(0,i.jsx)("div",{className:"mobile:hidden w-full",children:B}),(0,i.jsx)("p",{className:"mobile:order-4 mobile:mb-0 text-md mb-6 w-full text-center font-light text-[var(--normal-second-text-color)] md:text-xl md:leading-normal",children:(0,c.t)("".concat(k.Bq,".intro.content"))}),(0,i.jsxs)("div",{className:"mobile:gap-0 mobile:mt-0 cmd:flex-col slg:gap-8 mt-4 flex w-full flex-row items-center justify-center gap-[84px]",children:[(0,i.jsx)("div",{className:"cmd:w-full mobile:relative mobile:order-1 mobile:pb-[68.5%] flex w-[590px] max-w-[590px] shrink flex-col items-center justify-center",children:(0,i.jsx)("div",{className:"mobile:absolute mobile:left-0 mobile:top-0 mobile:w-full mobile:h-full flex w-full items-center justify-center",children:(0,i.jsx)(N.a,{className:"rounded-[20px]",sourceUrl:S.before,afterUrl:S.after,alt:(0,c.t)("".concat(k.Bq,".img.alt.1")),hideDiffTag:!0})})}),n&&(0,i.jsx)("div",{className:"mobile:block mobile:order-2 hidden",children:B}),(0,i.jsxs)("div",{className:"mobile:order-3 mobile:mb-5 mobile:gap-3 cmd:w-full cmd:h-fit flex h-[404px] w-[526px] max-w-[590px] flex-col md:justify-center md:gap-6",children:[(0,i.jsx)(A.un,{id:"photo-restoration-upload",uploadDesc:(0,c.t)("general.upload.limit",{param1:y.Nb}),formatDesc:(0,c.t)("general.upload.dragimages"),btnText:(0,c.t)("img.upload.button"),toolEnumVal:s.lS.PhotoRestoration,mode:"multi",maxFileC
1ount:y.Nb,onUrl:F,onFiles:H,beforeCheck:async()=>{try{if(!P.isLogin)return T(),!1}catch(e){return!1}return!0},strictAccept:!0}),(0,i.jsx)(j.Z,{module:s.lS.PhotoRestoration})]})]})]})})}),(0,i.jsx)(C,{})]})]})}},92467:function(e,t,o){"use strict";o.d(t,{Bq:function(){return n},DT:function(){return u},Tb:function(){return l},Zf:function(){return c},bv:function(){return r},i8:function(){return h},oy:function(){return a},xQ:function(){return s}});var i=o(17764);let a="video_watermark_rm_cache_key",r="video_watermark_rm_task_info",n="video.watermark.remover",l=200,c=600,s=4096,u={[i.lN.FullClean]:3,[i.lN.RemoveText]:1,[i.lN.ManualClean]:3,[i.lN.Passerby]:3},h=e=>[{value:i.lN.FullClean,label:e("vid.rm.all"),cost:u[i.lN.FullClean],icon:"https://titan-h5.meitu.com/pixocial/photocat/rm-all.svg",desc:e("vid.rm.all.desc")},{value:i.lN.RemoveText,label:e("vid.rm.text"),cost:u[i.lN.RemoveText],icon:"https://titan-h5.meitu.com/pixocial/photocat/rm-text.svg",desc:e("vid.rm.text.desc")},{value:i.lN.Passerby,label:e("passerby.remover.tools.name"),cost:u[i.lN.Passerby],icon:"https://titan-h5.meitu.com/pixocial/photocat/passerby2.svg",desc:e("passerby.remover.tools.name")},{value:i.lN.ManualClean,label:e("vid.rm.manual"),cost:u[i.lN.ManualClean],icon:"https://titan-h5.meitu.com/pixocial/photocat/rm-manual.svg",desc:e("vid.rm.manual.desc")}]},17764:function(e,t,o){"use strict";o.d(t,{OK:function(){return r},lN:function(){return n},sA:function(){return c}});var i,a,r,n,l=o(75271);(i=r||(r={})).Original="original",i.Preview="preview",(a=n||(n={})).FullClean="full",a.RemoveWm="watermark",a.RemoveText="text",a.ManualClean="manual",a.Passerby="passerby";let c=(0,l.createContext)(null)},46653:function(e,t,o){"use strict";var i,a,r,n,l,c,s;o.d(t,{$:function(){return r},DD:function(){return n},TE:function(){return a},Tr:function(){return i}}),(l=i||(i={})).INIT="init",l.SUCCESS="success",l.ERROR="error",l.RUNNING="running",l.PENDING="pending",(c=a||(a={})).PENDING="pending",c.SUCCESS="success",c.ERROR="error",(r||(r={})).closeWhatsNew="closeWhatsNew",(s=n||(n={})).IMAGE="image",s.VIDEO="video"},68420:function(e,t,o){"use strict";var i=o(75271);let a=i.forwardRef(function({title:e,titleId:t,...o},a){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},o),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});t.Z=a}},function(e){e.O(0,[2188,3543,9774,2888,179],function(){return e(e.s=86771)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.