1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4050],{41696:(e,r,n)=>{n.d(r,{qQ:()=>a,J$:()=>i,kK:()=>t,Dz:()=>o,A1:()=>l});async function l(e,r){let n=new FormData;n.append("file",e,"face.jpg");let l=await fetch("/api/analyze?pi=".concat(encodeURIComponent(r)),{method:"POST",body:n});if(!l.ok){var o,t;let e=await l.json().catch(()=>({})),r=e.details,n=(null==r?void 0:r.includes(": "))?r.slice(r.indexOf(": ")+2):r;throw Object.assign(Error(null!=(t=null!=(o=e.message)?o:e.error)?t:"Analysis failed"),{code:e.code,details:n,status:l.status})}return l.json()}async function o(e,r,n,l){let o=await fetch("/api/recommend?include_top_issues=true&pi=".concat(encodeURIComponent(l)),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scores:e,user_info:r,skin_age:n,images:[],lowest_3:[]})});if(!o.ok){var t;throw Error(null!=(t=(await o.json().catch(()=>({}))).error)?t:"Recommendations failed")}return o.json()}async function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=await fetch("/api/leaderboard?page=".concat(e));if(!r.ok)throw Error("Failed to load leaderboard");return r.json()}async function i(e){let r=await fetch("/api/leaderboard/check?username=".concat(encodeURIComponent(e)));if(!r.ok)throw Error("Username check failed");return r.json()}async function a(e){let r=await fetch("/api/leaderboard",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){var n;throw Error(null!=(n=(await r.json().catch(()=>({}))).error)?n:"Failed to add to leaderboard")}return r.json()}},64269:(e,r,n)=>{n.d(r,{Ho:()=>u,YH:()=>i,Yq:()=>c,Zt:()=>s,a_:()=>d,cn:()=>t,rH:()=>a});var l=n(2821),o=n(75889);function t(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0,o.QP)((0,l.$)(r))}function i(e){return e>=85?"var(--score-ring-high)":e>=70?"var(--score-ring-mid)":"var(--score-ring-low)"}function a(e){return e>=90?"Excellent":e>=80?"Great":e>=70?"Good":e>=60?"Fair":"Needs Care"}function d(e){var r;return null!=(r=({"Tier 5":"#000000","Tier 4":"#262626","Tier 3":"#404040","Tier 2":"#737373","Tier 1":"#a3a3a3"})[e])?r:"#737373"}function u(e,r){var n,l,o,t,i,a,d,u,s,c,_,h,f,p,m,y,w,g,x;let k=[],v={hd_eye_bag_output:null!=(c=null==(n=e.hd_eye_bag)?void 0:n.ui_score)?c:0,hd_dark_circle_output:null!=(_=null==(l=e.hd_dark_circle)?void 0:l.ui_score)?_:0,hd_droopy_upper_eyelid_output:null!=(h=null==(o=e.hd_droopy_upper_eyelid)?void 0:o.ui_score)?h:0,hd_droopy_lower_eyelid_output:null!=(f=null==(t=e.hd_droopy_lower_eyelid)?void 0:t.ui_score)?f:0,hd_firmness_output:null!=(p=null==(i=e.hd_firmness)?void 0:i.ui_score)?p:0,hd_texture_output:null!=(m=null==(d=e.hd_texture)||null==(a=d.whole)?void 0:a.ui_score)?m:0,hd_wrinkle_output:null!=(y=null==(s=e.hd_wrinkle)||null==(u=s.whole)?void 0:u.ui_score)?y:0},b={hd_eye_bag_output:"Eye Bags",hd_dark_circle_output:"Dark Circles",hd_droopy_upper_eyelid_output:"Upper Eyelid",hd_droopy_lower_eyelid_output:"Lower Eyelid",hd_firmness_output:"Firmness",hd_texture_output:"Skin Texture",hd_wrinkle_output:"Wrinkles"},j=Object.keys(b);for(let[e,n]of Object.entries(r)){let r=null!=(g=null==(w=e.split("/").pop())?void 0:w.replace(".png",""))?g:"",l=j.find(e=>r.startsWith(e));l&&!k.find(e=>e.key===l)&&k.push({key:l,label:b[l],base64:n,score:null!=(x=v[l])?x:0})}return j.map(e=>k.find(r=>r.key===e)).filter(Boolean)}function s(e){var r,n,l,o,t,i,a,d,u,s,c,_,h,f,p,m,y,w,g,x,k,v,b,j,E,N,S,C,O,I,T,A,P,R,H,L;return{dark_circle:null!=(b=null==(r=e.hd_dark_circle)?void 0:r.ui_score)?b:80,droopy_upper_eyelid:null!=(j=null==(n=e.hd_droopy_upper_eyelid)?void 0:n.ui_score)?j:80,droopy_lower_eyelid:null!=(E=null==(l=e.hd_droopy_lower_eyelid)?void 0:l.ui_score)?E:80,eye_bag:null!=(N=null==(o=e.hd_eye_bag)?void 0:o.ui_score)?N:80,firmness:null!=(S=null==(t=e.hd_firmness)?void 0:t.ui_score)?S:80,texture_whole:null!=(C=null==(a=e.hd_texture)||null==(i=a.whole)?void 0:i.ui_score)?C:80,wrinkle_whole:null!=(O=null==(u=e.hd_wrinkle)||null==(d=u.whole)?void 0:d.ui_score)?O:80,wrinkle_forehead:null!=(I=null==(c=e.hd_wrinkle)||null==(s=c.forehead)?void 0:s.ui_score)?I:80,wrinkle_glabellar:null!=(T=null==(h=e.hd_wrinkle)||null==(_=h.glabellar)?void 0:_.ui_score)?T:80,wrinkle_crowfeet:null!=(A=null==(p=e.hd_wrinkle)||null==(f=p.crowfeet)?void 0:f.ui_score)?A:80,wrinkle_periocular:null!=(P=null==(y=e.hd_wrinkle)||null==(m
1=y.periocular)?void 0:m.ui_score)?P:80,wrinkle_nasolabial:null!=(R=null==(g=e.hd_wrinkle)||null==(w=g.nasolabial)?void 0:w.ui_score)?R:80,wrinkle_marionette:null!=(H=null==(k=e.hd_wrinkle)||null==(x=k.marionette)?void 0:x.ui_score)?H:80,overall_score:null!=(L=null==(v=e.all)?void 0:v.score)?L:75}}function c(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}},89379:(e,r,n)=>{n.d(r,{default:()=>_});var l=n(95155),o=n(12115),t=n(52619),i=n.n(t),a=n(20063),d=n(65229),u=n(9540),s=n(26497),c=n(15599);function _(){let[e,r]=(0,o.useState)(!1),[n,t]=(0,o.useState)(!1),_=(0,a.usePathname)();(0,o.useEffect)(()=>{let e=()=>{r(window.scrollY>50)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);let h=[{name:"HOME",href:"/"},{name:"SKIN ANALYSIS",href:"/skin-analysis"},{name:"LEADERBOARD",href:"/leaderboard"},{name:"CLINICS",href:"/clinics"},{name:"BLOG",href:"/blog"},{name:"MEMBERSHIP",href:"/#membership"}];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("nav",{className:"fixed top-0 left-0 z-50 flex min-h-20 w-full items-center transition-all duration-300 ".concat(e?"border-b border-foreground
1/10 bg-background/90 py-4 backdrop-blur-md":"bg-transparent py-6"),children:(0,l.jsxs)("div",{className:"container flex w-full items-center justify-between",children:[(0,l.jsx)(i(),{href:"/",className:"text-2xl font-black font-display tracking-tighter cursor-pointer",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"".concat(e?"text-foreground":"text-muted-foreground"),children:"UMPH"}),(0,l.jsx)("span",{className:"".concat("text-muted-foreground"),children:".AI"})]})}),(0,l.jsx)("div",{className:"hidden lg:flex items-center gap-8",children:h.map(r=>(0,l.jsx)(i(),{href:r.href,children:(0,l.jsx)("span",{className:"text-sm font-mono font-bold cursor-pointer hover:text-muted-foreground transition-colors ".concat(_===r.href?"underline decoration-2 underline-offset-4":""," ").concat(e?"text-foreground":"text-muted-foreground"),style:"MEMBERSHIP"===r.name?{display:"none"}:{},children:r.name})},r.name))}),(0,l.jsx)("button",{className:"lg:hidden",onClick:()=>t(!n),children:n?(0,l.jsx)(d.A,{className:"".concat(e?"text-foreground":"text-muted-foreground")}):(0,l.jsx)(u.A,{className:"".concat(e?"text-foreground":"text-muted-foreground")})})]})}),(0,l.jsx)(s.N,{children:n&&(0,l.jsx)(c.P.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"fixed inset-0 z-40 bg-foreground pt-24 px-6 lg:hidden",children:(0,l.jsx)("div",{className:"flex flex-col gap-8",children:h.map(e=>(0,l.jsx)(i(),{href:e.href,onClick:()=>t(!1),className:"text-xl font-bold font-display cursor-pointer text-background hover:text-muted-foreground transition-colors",style:"MEMBERSHIP"===e.name?{display:"none"}:{},children:e.name},e.name))})})})]})}}}]);
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.