PageSourceSearch

https://sympify.ai/js/app.10f27784.js

js sympify.ai collected 2026-10-05 14:44:10 UTC 130,091 bytes, 2 lines download raw bytes

1(function(){var e={1660:function(e,t,s){"use strict";s.d(t,{A:function(){return c}});var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"info_tooltip has_info",class:{open:e.isOpen},attrs:{tabindex:"0"},on:{click:e.toggle,blur:function(t){e.isOpen=!1},keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.isOpen=!1}}},[e._t("default"),t("span",{staticClass:"info_tooltip_panel",attrs:{role:"tooltip"}},[e.imageUrl?t("img",{attrs:{src:e.imageUrl,alt:""}}):e._e(),t("span",{staticClass:"info_tooltip_text"},[e._v(e._s(e.content||e.fallback))]),e.learnMoreUrl?t("a",{staticClass:"info_tooltip_link",attrs:{href:e.learnMoreUrl,target:"_blank",rel:"noopener noreferrer"},on:{click:function(e){e.stopPropagation()}}},[e._v(e._s(e.learnMoreLabel))]):e._e()])],2)},a=[],o={name:"InfoTooltip",props:{content:{type:String,default:""},imageUrl:{type:String,default:""},learnMoreUrl:{type:String,default:""},learnMoreLabel:{type:String,default:"Learn more"},fallback:{type:String,default:"Description not available yet."}},data(){return{isOpen:!1}},methods:{toggle(){this.isOpen=!this.isOpen}}},n=o,r=s(1656),l=(0,r.A)(n,i,a,!1,null,"f934f768",null),c=l.exports},5710:function(e,t,s){"use strict";s.d(t,{A:function(){return c}});var i=function(){var e=this,t=e._self._c;return t("section",{staticClass:"request_error_card",attrs:{role:"alert","aria-live":"assertive"}},[t("div",{staticClass:"request_error_icon",attrs:{"aria-hidden":"true"}},[e._v("!")]),t("div",{staticClass:"request_error_content"},[t("h2",[e._v(e._s(e.error.title||e.$t("ui.common.somethingWentWrong")))]),t("p",[e._v(e._s(e.error.message))]),e.error.note?t("small",[e._v(e._s(e.error.note))]):e._e(),e.retryable?t("button",{attrs:{type:"button"},on:{click:function(t){return e.$emit("retry")}}},[e._v(e._s(e.$t("ui.common.tryAgain")))]):e._e()])])},a=[],o={name:"RequestErrorCard",props:{error:{type:Object,required:!0},retryable:{type:Boolean,default:!0}}},n=o,r=s(1656),l=(0,r.A)(n,i,a,!1,null,"6bfd4f33",null),c=l.exports},8919:function(e,t,s){"use strict";s.d(t,{A:function(){return c}});var i=function(){var e=this,t=e._self._c;return e.diseases.length?t("section",{staticClass:"viewed_history",attrs:{"aria-labelledby":"viewed-history-title"}},[t("button",{staticClass:"history_toggle",attrs:{type:"button","aria-expanded":e.expanded?"true":"false"},on:{click:function(t){e.expanded=!e.expanded}}},[t("span",[t("strong",{attrs:{id:"viewed-history-title"}},[e._v(e._s(e.$t("ui.shell.viewedInJourney")))]),t("small",[e._v(e._s(e.$t("ui.shell.journeyStartedWith",{disease:e.seedDisease})))])]),t("span",[e._v(e._s(e.diseases.length)+" "+e._s(e.expanded?"−":"+"))])]),e.expanded?t("div",{staticClass:"history_list"},e._l(e.diseases,(function(s,i){return t("button",{key:s,class:{current:s===e.currentDisease},attrs:{type:"button"},on:{click:function(t){return e.$emit("select",s)}}},[t("span",{staticClass:"history_index"},[e._v(e._s(i+1))]),t("span",[e._v(e._s(s))]),s===e.currentDisease?t("small",[e._v(e._s(e.$t("ui.shell.currentDisease")))]):e._e()])})),0):e._e()]):e._e()},a=[],o={name:"ViewedDiseaseHistory",props:{diseases:{type:Array,default:()=>[]},currentDisease:{type:String,default:""},seedDisease:{type:String,default:""}},data(){return{expanded:!0}}},n=o,r=s(1656),l=(0,r.A)(n,i,a,!1,null,"3dc1ea06",null),c=l.exports},9279:function(e,t,s){"use strict";var i=s(2856),a=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view"),t("BuildInfoBadge")],1)},o=[],n=function(){var e=this,t=e._self._c;return e.visible?t("div",{staticClass:"build_info_badge",class:{expanded:e.expanded},attrs:{role:"note","aria-label":"Build diagnostics"}},[t("button",{staticClass:"badge_toggle",attrs:{type:"button"},on:{click:function(t){e.expanded=!e.expanded}}},[e._v(" "+e._s(e.expanded?"×":`build ${e.commitShort}`)+" ")]),e.expanded?t("dl",{staticClass:"badge_details"},[t("dt",[e._v("Version")]),t("dd",[e._v(e._s(e.buildInfo.version||"?"))]),t("dt",[e._v("Commit")]),t("dd",[e._v(e._s(e.buildInfo.commitShort||"unknown")+" ("+e._s(e.buildInfo.branch||"?")+")")]),t("dt",[e._v("Built")]),t("dd",[e._v(e._s(e.buildInfo.buildTime||"unknown"))]),t("dt",[e._v("API base")]),t("dd",[e._v(e._s(e.apiBaseUrl))]),t("dt",[e._v("API status")]),t("dd",{attrs:{"data-status":e.apiStatus.key}}
1,[e._v(e._s(e.apiStatus.label))])]):e._e()]):e._e()},r=[],l=s(4116);const c=!0;function d(){const e=window.location.search||"",t=window.location.hash||"";return/[?&]debug=1(&|$)/.test(e)||/[?&]debug=1(&|$)/.test(t)}var m={name:"BuildInfoBadge",data(){return{buildInfo:{},expanded:!!c,visible:!c||d(),apiStatus:{key:"checking",label:"Checking…"}}},computed:{apiBaseUrl(){return l.JR},commitShort(){return this.buildInfo.commitShort||"?"}},async created(){try{const e=await fetch("/build-info.json",{cache:"no-store"});this.buildInfo=e.ok?await e.json():{commitShort:"missing"}}catch(e){this.buildInfo={commitShort:"missing"}}console.info(`[Sympify] build ${this.buildInfo.commitShort||"unknown"} (${this.buildInfo.branch||"?"}) built ${this.buildInfo.buildTime||"?"} — API base ${l.JR}`+(this.visible?"":" — add ?debug=1 to the URL to show the diagnostics badge")),await this.classifyApi()},methods:{async classifyApi(){const e=/127\.0\.0\.1|localhost/.test(l.JR);try{const t=await(0,l.Bp)(this.$i18n?.locale||"en");l.qC&&t&&!1===t.diseaseApiConfigured?this.apiStatus={key:"not-configured",label:"Production API not configured (only /api/health exists — set VUE_APP_API_BASE_URL)"}:this.apiStatus=e?{key:"local",label:"Local mock API connected"}:{key:"connected",label:"Production API connected"}}catch(t){l.qC?this.apiStatus={key:"wrong-build",label:"API unreachable and /api/health missing — wrong or stale build deployed"}:this.apiStatus={key:"unreachable",label:`API unreachable (${l.JR})`}}}}},p=m,u=s(1656),h=(0,u.A)(p,n,r,!1,null,"e9511e34",null),g=h.exports,_={components:{BuildInfoBadge:g}},y=_,f=(0,u.A)(y,a,o,!1,null,null,null),A=f.exports,E=s(1594),S=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pc_page"},[e.requestError?t("RequestErrorCard",{staticClass:"page_error",attrs:{error:e.requestError},on:{retry:e.retryLastRequest}}):e._e(),t("AppShell",{attrs:{"has-session":e.showDisease}},[t("SidebarNav",{attrs:{slot:"sidebar",sessions:e.recentSessions,"active-journey-id":e.journeyId,"can-open-report":e.canOpenReport},on:{home:e.returnToLanding,company:e.jumpWebsite,"how-to":e.goHowUse,imaging:e.goImaging,reports:e.openReportsFromSidebar,"select-session":e.restoreRecentSession,language:e.showLangDialog,disclaimer:function(t){e.showDisclaimers=!0},"clear-session":e.clearPersistedSession},slot:"sidebar"}),e.showDisease?t("ViewedDiseaseHistory",{attrs:{diseases:e.viewedDiseases,"current-disease":e.currentDiseaseName,"seed-disease":e.seedDiseaseName},on:{select:e.reopenViewedDisease}}):e._e(),t("transition",{attrs:{name:"session-fade",mode:"out-in"}},[e.showDisease?t("div",{key:"session",staticClass:"disease_card",class:{"slide-in":"enter"===e.cardState,"slide-out":"leave"===e.cardState,show:"show"===e.cardState},on:{wheel:e.handleScroll}},[t("div",{staticClass:"disease_header"},[e._v(" "+e._s(e.$t("pc.diseasePrefix"))),t("span",[e._v(e._s(e.currentDiseaseName))])]),t("el-divider"),t("div",{staticClass:"disease_content"},[t("div",{staticClass:"disease_explanation"},[t("div",{staticClass:"disease_explanation_text"},[e._v(" "+e._s(e.diseaseDetails.Overview)+" ")]),t("div",{staticClass:"disease_explanation_detail",on:{click:function(t){e.dialogVisible=!0}}},[t("img",{attrs:{src:s(1848),alt:""}})])]),t("div",{staticClass:"disease_img"},[e.imageUrl?t("img",{attrs:{src:e.imageUrl,alt:"Image"}}):t("img",{attrs:{src:s(9256),alt:""}})]),t("div",{staticClass:"disease_symptoms"},[t("div",{staticClass:"tip"},[e._v(" "+e._s(e.$t("pc.symptomSelectionTip"))+" ")]),t("div",{staticClass:"symptom_table"},[t("div",{staticClass:"table_head"},[t("table",[t("thead",[t("th",{attrs:{width:"40%"}},[e._v(e._s(e.$t("pc.symptom")))]),t("th",{attrs:{width:"20%"}},[e._v(e._s(e.$t("pc.yes")))]),t("th",{attrs:{width:"20%"}},[e._v(e._s(e.$t("pc.no")))]),t("th",{attrs:{width:"20%"}},[e._v(e._s(e.$t("pc.maybe")))])])])]),t("div",{ref:"symptomList",staticClass:"table_body",on:{wheel:function(e){e.stopPropagation()}}},[t("table",[t("tbody",{attrs:{id:"tbody"}},e._l(e.diseaseDetails.Symptoms,(function(s){return t("tr",{key:s.SymptomName},[t("td",[t("InfoTooltip",{attrs:{content:e.getSymptomDescription(s),"image-url":e.getSymptomImage(s),fallback:e.$t("ui.shell.symptomNoInfo")}},[e._v(" "+e._s(s.SymptomName)+" ")])],1),t("td",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedSymptoms[s.SymptomName],expression:"selectedSymptoms[symptom.SymptomName]"}],attrs:{type:"radio",id:s.SymptomName+"_yes",name:s.SymptomName,value:"yes"},domProps:{checked:e._q(e.selectedSymptoms[s.SymptomName],"yes")},on:{change:function(t){return e.$set(e.selectedSymptoms,s.SymptomName,"yes")}}}),t("label",{attrs:{for:s.SymptomName+"_yes"}})]),t("td",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedSymptoms[s.SymptomName],expression:"selectedSymptoms[symptom.SymptomName]"}],attrs:{type:"radio",id:s.SymptomName+"_no",name:s.SymptomName,value:"no"},domProps:{checked:e._q(e.selectedSymptoms[s.SymptomName],"no")},on:{change:function(t){return e.$set(e.selectedSymptoms,s.SymptomName,"no")}}}),t("label",{attrs:{for:s.SymptomName+"_no"}})]),t("td",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedSymptoms[s.SymptomName],expression:"selectedSymptoms[symptom.SymptomName]"}],attrs:{type:"radio",id:s.SymptomName+"_maybe",name:s.SymptomName,value:"maybe"},domProps:{checked:e._q(e.selectedSymptoms[s.SymptomName],"maybe")},on:{change:function(t){return e.$set(e.selectedSymptoms,s.SymptomName,"maybe")}}}),t("label",{attrs:{for:s.SymptomName+"_maybe"}})])])})),0)])])])]),t("div",{staticClass:"scroll_down",on:{click:function(t){return e.processDiseaseScoring()}}},[e._v(" "+e._s(e.$t("ui.shell.continueMatching"))+" ")])])],1):t("DiseaseStartPanel",{key:"start",on:{submit:function(t){return e.exploreSymptomsByDisease()}},model:{value:e.textarea,callback:function(t){e.textarea=t},expression:"textarea"}})],1),e.showDisease?t("SymptomProfilePanel",{attrs:{slot:"profile",symptoms:e.allSymptomSelections,"inferred-symptoms":e.inferredSymptomProfile,"pen
1ding-suggestion-text":e.pendingSuggestionText},on:{remove:e.removeSymptom,"change-choice":e.changeSymptomChoice,"add-symptom":e.addConfirmedSymptom,"pending-suggestion-text":function(t){e.pendingSuggestionText=t},"generate-report":e.showDialog},slot:"profile"}):e._e()],1),t("el-dialog",{attrs:{title:e.currentDiseaseName,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-collapse-item",{attrs:{title:e.$t("pc.overview"),name:"1"}},[t("div",[e._v(e._s(e.diseaseDetails.Overview))])]),t("el-collapse-item",{attrs:{title:e.$t("pc.causes"),name:"2"}},[t("div",[e._v(e._s(e.diseaseDetails.Causes))])]),t("el-collapse-item",{attrs:{title:e.$t("pc.symptoms"),name:"3"}},e._l(e.diseaseDetails.Symptoms,(function(s){return t("div",{key:s.SymptomName},[e._v(" "+e._s(s.SymptomName)+" ")])})),0),t("el-collapse-item",{attrs:{title:e.$t("pc.departmentsThatTreat"),name:"4"}},[e._v(" "+e._s(e.diseaseDetails.departmentsThatTreatThisCondition)+" ")]),t("el-collapse-item",{attrs:{title:e.$t("pc.riskFactors"),name:"5"}},[e._v(" "+e._s(e.diseaseDetails.riskFactors)+" ")]),t("el-collapse-item",{attrs:{title:e.$t("pc.prevention"),name:"6"}},[e._v(" "+e._s(e.diseaseDetails.Prevention)+" ")]),t("el-collapse-item",{attrs:{title:e.$t("pc.diagnosis"),name:"7"}},[e._v(" "+e._s(e.diseaseDetails.Diagnosis)+" ")]),t("el-collapse-item",{attrs:{title:e.$t("pc.treatments"),name:"8"}},[e._v(" "+e._s(e.diseaseDetails.Treatments)+" ")])],1)],1),t("el-dialog",{staticClass:"input_member_id",attrs:{visible:e.showMemberId},on:{"update:visible":function(t){e.showMemberId=t}}},[t("div",{staticClass:"input_member_id_title"},[e._v(e._s(e.$t("pc.memberId")))]),t("div",{staticClass:"input_member_id_desc"},[e._v(e._s(e.$t("pc.memberIdDescription")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.userId,expression:"userId"}],attrs:{type:"text"},domProps:{value:e.userId},on:{input:function(t){t.target.composing||(e.userId=t.target.value)}}}),t("div",{staticClass:"button_done"},[t("div",{staticClass:"button_inner",on:{click:function(t){return e.generateReport()}}},[e._v(" "+e._s(e.$t("pc.done"))+" ")])])]),t("el-dialog",{attrs:{title:e.$t("pc.disclaimersTitle"),visible:e.showDisclaimers,width:"30%"},on:{"update:visible":function(t){e.showDisclaimers=t}}},[t("span",[e._v(e._s(e.$t("pc.disclaimersContent")))]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{staticStyle:{background:"rgb(102, 96, 255)"},attrs:{type:"primary"},on:{click:function(t){e.showDisclaimers=!1}}},[e._v(" "+e._s(e.$t("pc.confirm"))+" ")])],1)]),t("el-dialog",{staticClass:"select_a_disease",attrs:{title:e.$t("pc.selectDisease"),visible:e.selectDiseasesVisible,width:"30%"},on:{"update:visible":function(t){e.selectDiseasesVisible=t}}},[t("div",[t("p",[e._v(e._s(e.$t("pc.selectDiseaseDescription")))]),e._l(e.fuzzyMatches,(function(s,i){return t("el-button",{key:i,staticStyle:{margin:"5px"},attrs:{type:"primary",color:"purple"},on:{click:function(t){return e.selectDiseaseMatch(s)}}},[e._v(" "+e._s(s)+" ")])}))],2)]),t("el-dialog",{attrs:{title:e.$t("pc.languageDialogTitle"),visible:e.langDialogVisible,width:"30%"},on:{"update:visible":function(t){e.langDialogVisible=t}}},[t("el-row",{staticStyle:{"margin-bottom":"10px"}},[t("el-button",{attrs:{type:"en"===e.$i18n.locale?"primary":"plain"},on:{click:function(t){return e.changeLanguage("en")}}},[e._v(" English(United States) ")]),t("el-button",{attrs:{type:"cn"===e.$i18n.locale?"primary":"plain"},on:{click:function(t){return e.changeLanguage("cn")}}},[e._v(" 简体中文(中国) ")])],1),t("el-row",[t("el-button",{attrs:{disabled:""}},[e._v(" Español(España) ")])],1)],1)],1)},b=[],v=(s(4114),s(7412)),C=s(4290),D=s(139),I=s(5710),P=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app_shell",class:{has_session:e.hasSession}},[t("aside",{staticClass:"app_shell_sidebar"},[e._t("sidebar")],2),t("main",{staticClass:"app_shell_main"},[e._t("default")],2),e.hasSession?t("aside",{staticClass:"app_shell_profile"},[e._t("profile")],2):e._e()])},R=[],w={name:"AppShell",props:{hasSession:{type:Boolean,default:!1}}},T=w,U=(0,u.A)(T,P,R,!1,null,"0bd7f801",null),V=U.exports,N=function(){var e=this,t=e._self._c;return t("nav",{staticClass:"sidebar_nav",attrs:{"aria-label":"Primary navigation"}},[t("div",{staticClass:"sidebar_brand"},[t("span",{staticClass:"brand_mark"},[t("img",{attrs:{src:e.icons.brand,alt:""}})]),t("span",[t("strong",[e._v("Sympify")]),t("small",[e._v(e._s(e.$t("ui.shell.brandSubtitle")))])])]),t("div",{staticClass:"nav_group"},[t("button",{attrs:{type:"button"},on:{click:function(t){return e.$emit("home")}}},[t("img",{attrs:{src:e.icons.home,alt:""}}),t("span",[e._v(e._s(e.$t("ui.shell.home")))])]),t("button",{attrs:{type:"button"},on:{click:function(t){return e.$emit("company")}}},[t("img",{attrs:{src:e.icons.file,alt:""}}),t("span",[e._v(e._s(e.$t("ui.shell.companyWebsite")))])]),t("button",{attrs:{type:"button"},on:{click:function(t){return e.$emit("how-to")}}},[t("img",{attrs:{src:e.icons.help,alt:""}}),t("span",[e._v(e._s(e.$t("ui.shell.howToUse")))])]),t("button",{attrs:{type:"button"},on:{click:function(t){return e.$emit("imaging")}}},[t("img",{attrs:{src:e.icons.imaging,alt:""}}),t("span",[e._v(e._s(e.$t("ui.shell.imaging")))])]),t("button",{attrs:{type:"button",disabled:!e.canOpenReport},on:{click:function(t){return e.$emit("reports")}}},[t("img",{attrs:{src:e.icons.report,alt:""}}),t("span",[e._v(e._s(e.$t("ui.shell.reports")))])])]),t("section",{staticClass:"recent_sessions",attrs:{"aria-labelledby":"recent-session-title"}},[t("div",{staticClass:"section_label",attrs:{id:"recent-session-title"}},[e._v(e._s(e.$t("ui.shell.recentSessions")))]),e.sessions.length?e._e():t("p",{staticClass:"empty_history"},[e._v(e._s(e.$t("ui.shell.recentEmpty")))]),e._l(e.sessions,(function(s){return t("button",{key:s.journeyId,staticClass:"session_item",class:{active:s.journeyId===e.activeJourneyId},attrs:{type:"button"},on:{click:function(t){return e.$emit("select-session",s)}}},[t("span",{staticClass:"session_dot"}),t("span",[t("strong",[e._v(e._s(s.seedDiseaseName||s.originalSearchTerm))]),t("small",[e._v(e._s(e.$t("ui.shell.journeyConditionCount",{count:s.viewedDiseaseCount||1}))+" · "+e._s(e.formatTime(s.updatedAt)))])])])}))],2),t("div",{staticClass:"sidebar_footer"},[t("button",{attrs:{type:"button"},on:{click:function(t){return e.$emit("language")}}},[e._v(e._s(e.$t("ui.shell.language")))]),t("button",{attrs:{type:"button"},on:{click:function(t){return e.$emit("disclaimer")}}},[e._v(e._s(e.$t("ui.shell.medicalDisclaimer")))]),t("button",{attrs:{type:"button"},on:{click:function(t){return e.$emit("clear-session")}}},[e._v(e._s(e.$t("ui.shell.clearSession")))])])])},O=[],L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEbSURBVHgB7VXRDYIwEL0a/2WEjsAGuoFuoJvoBoygTqBOIBvIBuAE4gT1rl5JMfQgCF/6kkshvL53hVeqQIAxJsJhjRUFKIVS6gh9gOIaKzftSCQdJRiscDhRl1iHAG1nRRDQYwUb7nAvcCwknQmMjCl8gS6vpjLAlcZQT8u8aUIDL2Se+pNuQkrWHm9nuoM0I+WlpcTKvCbo/uxyznviwc9SkKG5Np3SwgaaeTm0gLTc6kdP0d9gUIPW7DeBNlrB15SmBbQbOL5NFg6UPh3glo6YmG7IWdTNuwpc+xtXHplcZyAAN93dvycVvoyrbt94IresGXyCDe1EJGcBjmHjHz8PYmxyC0ODvoEZ89BnE43DEsKbLMPve5E0XhB1gVb+N5qLAAAAAElFTkSuQmCC",M=s(3021),k=s(3406),x=s(1814),B=s(9256),G={name:"SidebarNav",props:{sessions:{type:Array,default:()=>[]},activeJourneyId:{type:String,default:""},canOpenReport:{type:Boolean,default:!1}},data(){return{icons:{brand:L,home:M,file:k,help:x,imaging:k,report:B}}},methods:{formatTime(e){if(!e)return this.$t("ui.shell.recentFallback");const t=new Date(e);return Number.isNaN(t.getTime())?this.$t("ui.shell.recentFallback"):t.toLocaleDateString(void 0,{month:"short",day:"numeric"})}}},j=G,F=(0,u.A)(j,N,O,!1,null,"04309de8",null),J=F.exports,W=function(){var e=this,t=e._self._c;return t("section",{staticClass:"start_panel"},[t("div",{staticClass:"start_badge"},[e._v(e._s(e.$t("ui.shell.startBadge")))]),t("h1",[e._v(e._s(e.$t("ui.shell.startTitle")))]),t("p",{staticClass:"start_intro"},[e._v(" "+e._s(e.$t("ui.shell.startIntro"))+" ")]),t("form",{staticClass:"start_form",on:{submit:function(t){return t.preventDefault(),e.$emit("submit")}}},[t("label",{attrs:{for:"disease-start-input"}},[e._v(e._s(e.$t("ui.shell.enterCondition")))]),t("div",{staticClass:"start_controls"},[t("input",{attrs:{id:"disease-start-input",type:"text",autocomplete:"off",placeholder:e.$t("ui.shell.conditionPlaceholder")},domProps:{value:e.value},on:{input:function(t){return e.$emit("input",t.target.value)}}}),t("button",{attrs:{type:"submit",disabled:!e.value.trim()}},[e._v(e._s(e.$t("ui.shell.exploreSymptoms")))])])]),t("p",{staticClass:"start_note"},[e._v(e._s(e.$t("ui.shell.notDiagnosis")))])])},H=[],Y={name:"DiseaseStartPanel",props:{value:{type:String,default:""}}},q=Y,Q=(0,u.A)(q,W,H,!1,null,"59b67349",null),z=Q.exports,X=function(){var e=this,t=e._self._c;return t("section",{staticClass:"symptom_profile_panel"},[t("header",[t("div",[t("span",{staticClass:"eyebrow"},[e._v(e._s(e.$t("ui.shell.currentSession")))]),t("h2",[e._v(e._s(e.$t("ui.shell.symptomProfile")))])]),t("button",{attrs:{type:"button",disabled:!e.symptoms.length},on:{click:function(t){return e.$emit("generate-report")}}},[e._v(e._s(e.$t("ui.shell.createReport")))])]),t("p",{staticClass:"profile_explanation"},[e._v(" "+e._s(e.$t("ui.shell.profileExplanation"))+" ")]),e.symptoms.length||e.inferredSymptoms.length?e._e():t("div",{staticClass:"empty_profile"},[e._v(" "+e._s(e.$t("ui.shell.emptyProfile"))+" ")]),t("div",{staticClass:"profile_groups"}
1,[e._l(e.directGroups,(function(s){return s.items.length?t("section",{key:s.key,staticClass:"profile_group"},[t("h3",[t("span",{class:["status_dot",s.key]}),e._v(e._s(s.label)+" "),t("small",[e._v(e._s(s.items.length))])]),t("div",{staticClass:"profile_items"},e._l(s.items,(function(s){return t("div",{key:e.symptomKey(s),staticClass:"profile_item"},[t("InfoTooltip",{attrs:{content:e.description(s),"image-url":e.image(s)}},[e._v(e._s(s.SymptomName))]),e.originBadge(s)?t("span",{class:["origin_tag",s.Origin],attrs:{title:e.originTitle(s)}},[e._v(e._s(e.originBadge(s)))]):e._e(),t("select",{attrs:{"aria-label":e.$t("ui.shell.changeSymptom",{symptom:s.SymptomName})},domProps:{value:s.UserChoice},on:{change:function(t){return e.$emit("change-choice",{symptom:s,userChoice:t.target.value})}}},[t("option",{attrs:{value:"yes"}},[e._v(e._s(e.$t("ui.shell.selected")))]),t("option",{attrs:{value:"no"}},[e._v(e._s(e.$t("ui.shell.notExperienced")))]),t("option",{attrs:{value:"maybe"}},[e._v(e._s(e.$t("ui.shell.unsure")))])])],1)})),0)]):e._e()})),e.inferredSymptoms.length?t("section",{staticClass:"profile_group related_group"},[t("h3",[t("span",{staticClass:"status_dot related"}),e._v(e._s(e.$t("ui.shell.relatedSymptoms"))+" "),t("small",[e._v(e._s(e.inferredSymptoms.length))])]),t("p",[e._v(e._s(e.$t("ui.shell.relatedExplanation")))]),t("div",{staticClass:"profile_items"},e._l(e.inferredSymptoms,(function(s){return t("div",{key:s.symptomId||s.displayName,staticClass:"profile_item inferred"},[t("InfoTooltip",{attrs:{content:e.description(s),"image-url":e.image(s)}},[e._v(e._s(s.displayName||s.SymptomName))])],1)})),0)]):e._e()],2),t("SymptomSuggestionInput",{attrs:{"pending-text":e.pendingSuggestionText},on:{"add-symptom":function(t){return e.$emit("add-symptom",t)},"pending-text":function(t){return e.$emit("pending-suggestion-text",t)}}})],1)},K=[],Z=s(1660),ee=function(){var e=this,t=e._self._c;return t("section",{staticClass:"suggestion_input"},[t("form",{staticClass:"suggestion_form",on:{submit:function(t){return t.preventDefault(),e.check.apply(null,arguments)}}},[t("label",{attrs:{for:e.inputId}},[e._v(e._s(e.$t("ui.suggest.label")))]),t("div",{staticClass:"suggestion_controls"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],ref:"field",attrs:{id:e.inputId,type:"text",autocomplete:"off",autocapitalize:"none",spellcheck:"false",placeholder:e.$t("ui.suggest.placeholder"),"aria-describedby":"idle"!==e.flow.state?e.panelId:null},domProps:{value:e.text},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.preventDefault(),e.reset.apply(null,arguments))},input:function(t){t.target.composing||(e.text=t.target.value)}}}),t("button",{attrs:{type:"submit",disabled:!e.text.trim()||e.busy}},[e._v(" "+e._s(e.busy?e.$t("ui.suggest.checking"):e.$t("ui.suggest.check"))+" ")])])]),t("div",{staticClass:"suggestion_panel",attrs:{id:e.panelId,role:"status","aria-live":"polite"}},[e.error?t("p",{staticClass:"suggestion_error"},[e._v(e._s(e.$t("ui.suggest.errorCheck")))]):"resolved"===e.flow.state?[t("p",{staticClass:"suggestion_line resolved"},[e._v(" "+e._s(e.$t("ui.suggest.recognised",{symptom:e.flow.displayName}))+" "),t("small",{staticClass:"origin_badge"},[e._v(e._s(e.originLabel(e.flow.origin)))])]),t("div",{staticClass:"suggestion_actions"},[t("button",{staticClass:"primary",attrs:{type:"button"},on:{click:e.addResolved}},[e._v(e._s(e.$t("ui.suggest.add")))]),t("button",{attrs:{type:"button"},on:{click:e.reset}},[e._v(e._s(e.$t("ui.suggest.cancel")))])])]:"confirm"===e.flow.state?[t("p",{staticClass:"suggestion_line"},[e.flow.ambiguous?[e._v(e._s(e.$t("ui.suggest.didYouMeanMany",{text:e.flow.rawText})))]:[e._v(e._s(e.$t("ui.suggest.didYouMeanOne",{text:e.flow.rawText,symptom:e.flow.suggestions[0].displayName})))]],2),t("ul",{staticClass:"candidate_list"},e._l(e.flow.suggestions,(function(s){return t("li",{key:s.symptomId},[t("button",{staticClass:"candidate",attrs:{type:"button"},on:{click:function(t){return e.confirm(s)}}},[t("span",{staticClass:"candidate_name"},[e._v(e._s(s.displayName))]),t("span",{staticClass:"candidate_meta"},[e._v(e._s(e.$t(`ui.suggest.confidence.${s.confidence}`)))])])])})),0),e.flow.blocked.length?t("p",{staticClass:"blocked_note"}
1,[e._v(e._s(e.$t("ui.suggest.blockedNote")))]):e._e(),t("div",{staticClass:"suggestion_actions"},[t("button",{attrs:{type:"button"},on:{click:e.keepWording}},[e._v(e._s(e.$t("ui.suggest.keepWording",{text:e.flow.rawText})))]),t("button",{staticClass:"dismiss",attrs:{type:"button"},on:{click:e.dismiss}},[e._v(e._s(e.$t("ui.suggest.dismiss")))])])]:"blocked"===e.flow.state?[t("p",{staticClass:"suggestion_line blocked"},[e._v(e._s(e.$t("ui.suggest.blockedTitle",{text:e.flow.rawText})))]),t("p",{staticClass:"blocked_note"},[e._v(e._s(e.$t("ui.suggest.blockedExplain")))]),t("div",{staticClass:"suggestion_actions"},[t("button",{attrs:{type:"button"},on:{click:e.keepWording}},[e._v(e._s(e.$t("ui.suggest.keepWording",{text:e.flow.rawText})))]),t("button",{staticClass:"dismiss",attrs:{type:"button"},on:{click:e.reset}},[e._v(e._s(e.$t("ui.suggest.cancel")))])])]:"no_match"===e.flow.state?[t("p",{staticClass:"suggestion_line"},[e._v(e._s(e.$t("ui.suggest.noMatch",{text:e.flow.rawText})))]),t("div",{staticClass:"suggestion_actions"},[t("button",{staticClass:"primary",attrs:{type:"button"},on:{click:e.keepWording}},[e._v(e._s(e.$t("ui.suggest.keepWording",{text:e.flow.rawText})))]),t("button",{staticClass:"dismiss",attrs:{type:"button"},on:{click:e.reset}},[e._v(e._s(e.$t("ui.suggest.cancel")))])])]:"empty"===e.flow.state?t("p",{staticClass:"suggestion_line"},[e._v(e._s(e.$t("ui.suggest.empty")))]):e._e()],2)])},te=[],se=s(4427);let ie=0;var ae={name:"SymptomSuggestionInput",props:{pendingText:{type:String,default:""}},data(){return ie+=1,{uid:ie,text:this.pendingText||"",flow:{state:se.FLOW_STATE.IDLE},busy:!1,error:!1,requestToken:0}},computed:{inputId(){return`symptom-suggest-input-${this.uid}`},panelId(){return`symptom-suggest-panel-${this.uid}`}},watch:{text(e){this.$emit("pending-text",e)}},methods:{originLabel(e){return e===se.EVIDENCE_ORIGIN.ALIAS?this.$t("ui.suggest.originAlias"):this.$t("ui.suggest.originExact")},async check(){const e=this.text.trim();if(!e)return;const t=++this.requestToken;this.busy=!0,this.error=!1;try{const s=await(0,l.Iu)([e],this.$i18n.locale);if(t!==this.requestToken)return;this.flow=(0,se.toFlowState)((s.results||[])[0])}catch(s){if(t!==this.requestToken)return;console.warn("[Sympify] symptom resolution unavailable",s),this.error=!0,this.flow={state:se.FLOW_STATE.NO_MATCH,rawText:e,fallbackSymptomId:""}}finally{t===this.requestToken&&(this.busy=!1)}},emitSelection(e){e&&(this.$emit("add-symptom",e),this.reset())},addResolved(){this.emitSelection((0,se.acceptResolved)(this.flow))},confirm(e){this.emitSelection((0,se.acceptSuggestion)(this.flow,e))},keepWording(){this.emitSelection((0,se.keepOwnWording)(this.flow))},dismiss(){this.emitSelection((0,se.dismissSuggestion)()),this.reset()},reset(){this.text="",this.flow={state:se.FLOW_STATE.IDLE},this.error=!1,this.requestToken+=1,this.busy=!1,this.$emit("pending-text","")}}},oe=ae,ne=(0,u.A)(oe,ee,te,!1,null,"48694528",null),re=ne.exports,le={name:"SymptomProfilePanel",components:{InfoTooltip:Z.A,SymptomSuggestionInput:re},props:{symptoms:{type:Array,default:()=>[]},inferredSymptoms:{type:Array,default:()=>[]},pendingSuggestionText:{type:String,default:""}},computed:{directGroups(){return[{key:"accepted",label:this.$t("ui.shell.selected"),items:this.symptoms.filter((e=>"yes"===e.UserChoice))},{key:"rejected",label:this.$t("ui.shell.notExperienced"),items:this.symptoms.filter((e=>"no"===e.UserChoice))},{key:"uncertain",label:this.$t("ui.shell.unsure"),items:this.symptoms.filter((e=>"maybe"===e.UserChoice))}]}},methods:{originBadge(e){return e.Origin===se.EVIDENCE_ORIGIN.USER_CONFIRMED_SUGGESTION?this.$t("ui.suggest.badgeConfirmed"):e.Origin===se.EVIDENCE_ORIGIN.FALLBACK_RAW?this.$t("ui.suggest.badgeOwnWording"):""},originTitle(e){return e.Origin===se.EVIDENCE_ORIGIN.USER_CONFIRMED_SUGGESTION?this.$t("ui.suggest.badgeConfirmedTitle",{text:e.OriginalText||e.SymptomName}):this.$t("ui.suggest.badgeOwnWordingTitle")},symptomKey(e){return e.SymptomId||e.SymptomName},description(e){return e.shortDescription||e.description||e.Description||""},image(e){return e.imageUrl||e.ImageUrl||e.imageURL||""}}},ce=le,de=(0,u.A)(ce,X,K,!1,null,"7d69db82",null),me=de.exports,pe=s(8919),ue=s(1173),he=s(2476),ge={components:{RequestErrorCard:I.A,AppShell:V,SidebarNav:J,DiseaseStartPanel:z,SymptomProfilePanel:me,InfoTooltip:Z.A,Vie
1wedDiseaseHistory:pe.A},data(){return{langDialogVisible:!1,dialogVisible:!1,activeName:"1",textarea:"",showDisease:!1,diseases:{},diseaseNames:[],diseaseDetails:{Symptoms:[]},currentDiseaseName:"",journeyId:"",originalSearchTerm:"",seedDiseaseName:"",viewedDiseases:[],diseaseFeedback:{},pendingJourneySearchTerm:"",generateDisesaseName:"",selectedSymptoms:{},userSelections:[],cardState:"show",allSymptomSelections:[],inferredSymptomProfile:[],pendingSuggestionText:"",predictionCount:0,maxPredictions:30,isScrolling:"",locked:"",showMemberId:!1,predictedDiseases:[],seenDiseases:[],showSymptom:!1,userId:"",showDisclaimers:!1,fuzzyMatches:[],selectDiseasesVisible:!1,requestError:null,retryAction:null,recentSessions:[],diseaseSearchIndex:{},fallbackDiseaseDataLoaded:!1,pendingSessionSnapshot:null,isRestoringSession:!1}},computed:{canOpenReport(){return this.allSymptomSelections.length>0},imageUrl(){const e=this.diseaseDetails.imageLink;if(!e)return"";{const t=e.match(/\/d\/([a-zA-Z0-9_-]+)/);if(t&&t[1])return`https://drive.google.com/thumbnail?id=${t[1]}&export=view&authuser=0`}}},watch:{"$i18n.locale"(e){this.loadDiseaseData()},selectedSymptoms:{deep:!0,handler(){this.currentDiseaseName&&this.$set(this.diseaseFeedback,this.currentDiseaseName,{...this.selectedSymptoms}),this.persistCurrentSession()}},allSymptomSelections:{deep:!0,handler(){this.persistCurrentSession()}},inferredSymptomProfile:{deep:!0,handler(){this.persistCurrentSession()}},predictedDiseases:{deep:!0,handler(){this.persistCurrentSession()}},seenDiseases:{deep:!0,handler(){this.persistCurrentSession()}},viewedDiseases:{deep:!0,handler(){this.persistCurrentSession()}}},methods:{persistCurrentSession(){if(!this.isRestoringSession&&this.currentDiseaseName&&this.journeyId)try{(0,he.iS)({lang:this.$i18n.locale,journeyId:this.journeyId,originalSearchTerm:this.originalSearchTerm,seedDiseaseName:this.seedDiseaseName,currentDiseaseName:this.currentDiseaseName,viewedDiseases:this.viewedDiseases,diseaseFeedback:this.diseaseFeedback,selectedSymptoms:this.selectedSymptoms,allSymptomSelections:this.allSymptomSelections,inferredSymptomProfile:this.inferredSymptomProfile,predictedDiseases:this.predictedDiseases,seenDiseases:this.seenDiseases,predictionCount:this.predictionCount}),this.loadRecentSessions()}catch(e){console.warn("Session snapshot could not be saved.",e)}},async restoreSessionSnapshot(){const e=this.pendingSessionSnapshot;if(e?.currentDiseaseName){this.pendingSessionSnapshot=null,this.isRestoringSession=!0;try{this.journeyId=e.journeyId,this.originalSearchTerm=e.originalSearchTerm,this.seedDiseaseName=e.seedDiseaseName,this.viewedDiseases=e.viewedDiseases||[],this.diseaseFeedback=e.diseaseFeedback||{},this.allSymptomSelections=e.symptomSelections||[],this.inferredSymptomProfile=e.inferredSymptoms||[],this.predictedDiseases=e.predictedDiseases||[],this.seenDiseases=e.seenDiseases||[],this.predictionCount=e.predictionCount||0,localStorage.setItem("doctorDiagnosedDisease",e.seedDiseaseName),await this.displayDiseaseDetails(e.currentDiseaseName),this.selectedSymptoms={...this.selectedSymptoms,...e.diseaseFeedback?.[e.currentDiseaseName]||e.currentSelections}}catch(t){console.warn("The saved session could not be fully restored.",t)}finally{this.isRestoringSession=!1,this.persistCurrentSession()}}},clearPersistedSession(){(0,he.yj)(),localStorage.removeItem("sympifyRecentDiseaseSessions"),["predictedDiseases","allSymptomSelections","inferredSymptomProfile","seenDiseases","doctorDiagnosedDisease"].forEach((e=>localStorage.removeItem(e))),this.recentSessions=[],this.allSymptomSelections=[],this.inferredSymptomProfile=[],this.predictedDiseases=[],this.seenDiseases=[],this.predictionCount=0,this.journeyId="",this.originalSearchTerm="",this.seedDiseaseName="",this.viewedDiseases=[],this.diseaseFeedback={},this.$store.commit("resetCaseSession"),this.returnToLanding(),this.$message.success(this.$t("ui.shell.sessionCleared"))}
1,getSymptomDescription(e){return e?.shortDescription||e?.description||e?.Description||""},getSymptomImage(e){return e?.imageUrl||e?.ImageUrl||e?.imageURL||""},loadRecentSessions(){this.recentSessions=(0,he.Wo)().map((e=>({journeyId:e.journeyId,originalSearchTerm:e.originalSearchTerm,seedDiseaseName:e.seedDiseaseName,viewedDiseaseCount:e.viewedDiseases.length,updatedAt:e.savedAt})))},async restoreRecentSession(e){const t=(0,he.jc)(e?.journeyId);t&&(this.pendingSessionSnapshot=t,await this.restoreSessionSnapshot(),this.loadRecentSessions())},returnToLanding(){this.showDisease=!1,this.showSymptom=!1,this.currentDiseaseName="",this.diseaseDetails={Symptoms:[]},this.selectedSymptoms={},this.textarea=""},openReportsFromSidebar(){this.canOpenReport?this.showDialog():this.$message.info(this.$t("ui.shell.addFeedbackBeforeReport"))},retryLastRequest(){const e=this.retryAction;this.requestError=null,this.retryAction=null,e&&e()},showRequestError(e,t,s){console.error(`[Sympify] Failed to complete ${t}:`,e),this.requestError=(0,ue.hh)(e,t),this.retryAction=s||null},async loadDiseaseData(){try{const e=await(0,l.Dp)(this.$i18n.locale);(0,C.Nc)(e.results||[])}catch(e){console.warn("Relational symptom catalog unavailable; raw symptom IDs remain available for the JSON fallback.",e)}this.pendingSessionSnapshot=null},async ensureFallbackDiseaseData(){if(this.fallbackDiseaseDataLoaded)return;const e="cn"===this.$i18n.locale?await s.e(461).then(s.t.bind(s,461,19)):await s.e(665).then(s.t.bind(s,8665,19));this.diseases={...this.diseases,...e.default},this.diseaseNames=Object.keys(e.default),(0,C.wF)(e.default),this.fallbackDiseaseDataLoaded=!0},changeLanguage(e){console.log("Switching to language:",e),this.$i18n.locale=e,this.diseases={},this.diseaseNames=[],this.diseaseSearchIndex={},this.fallbackDiseaseDataLoaded=!1;const t=this.$route.path.replace(/\/(en|cn)$/,""),s=`${t}/${e}`;console.log("New path:",s),this.$router.push(s),this.langDialogVisible=!1},showLangDialog(){this.langDialogVisible=!0},goHowUse(){const e=this.$i18n.locale;this.$router.push({path:`/howtouse/${e}`})},goImaging(){const e=this.$i18n.locale;this.$router.push({path:`/pc/${e}/imaging`})},jumpWebsite(){window.location.href="https://www.sympify.org"},handleScroll(e){e.deltaY>0&&!this.locked&&(this.locked=!0,this.throttle(this.processDiseaseScoring,3e3)(),setTimeout((()=>{this.locked=!1}),3e3))},throttle(e,t){let s;return function(...i){s||(e.apply(this,i),s=!0,setTimeout((()=>s=!1),t))}},showDialog(){this.showMemberId=!0},saveReportData(){this.$store.commit("setCaseSymptoms",this.allSymptomSelections),this.$store.commit("setCasePredictions",this.predictedDiseases),localStorage.setItem("predictedDiseases",JSON.stringify(this.predictedDiseases)),localStorage.setItem("allSymptomSelections",JSON.stringify(this.allSymptomSelections)),localStorage.setItem("inferredSymptomProfile",JSON.stringify(this.inferredSymptomProfile)),localStorage.setItem("seenDiseases",JSON.stringify(this.seenDiseases))},openReport(){const e=this.$i18n.locale;this.saveReportData(),this.$router.push({path:`/report/${e}`,query:{userId:this.userId}})},markDiseaseSeen(e){e&&!this.seenDiseases.includes(e)&&this.seenDiseases.push(e)},beginJourney(e,t){this.journeyId=`journey_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,this.originalSearchTerm=e||t,this.seedDiseaseName=t,this.viewedDiseases=[],this.diseaseFeedback={},this.allSymptomSelections=[],this.inferredSymptomProfile=[],this.predictedDiseases=[],this.seenDiseases=[],this.predictionCount=0,this.currentDiseaseName="",this.diseaseDetails={Symptoms:[]},this.selectedSymptoms={},this.userSelections=[],localStorage.setItem("doctorDiagnosedDisease",t)},async selectDiseaseMatch(e){this.pendingJourneySearchTerm&&(this.beginJourney(this.pendingJourneySearchTerm,e),this.pendingJourneySearchTerm=""),await this.displayDiseaseDetails(e)},async reopenViewedDisease(e){e&&e!==this.currentDiseaseName&&(this.diseaseDetails?.Symptoms?.length&&this.getSelectedSymptomsWithProbability(),await this.displayDiseaseDetails(e))},async generateReport(){this.requestError=null,this.diseaseDetails?.Symptoms&&this.get
1SelectedSymptomsWithProbability();try{const e=await(0,l.mL)(this.allSymptomSelections,this.$i18n.locale);this.inferredSymptomProfile=e.symptomProfile?.inferred||[],this.predictedDiseases=(e.results||[]).map((e=>({diseaseName:e.diseaseName,score:e.score,description:e.disease?.overview||""})))}catch(e){return void this.showRequestError(e,"generating your report",(()=>this.generateReport()))}if(this.saveReportData(),!this.userId.trim()||!v.Gg||!v.db)return this.showMemberId=!1,void this.openReport();try{const e=await(0,ue.Pt)((()=>(0,D.GG)((0,D.P)((0,D.rJ)(v.db,"diseaseInfo"),(0,D._M)("userId","==",this.userId)))));if(!e.empty)return this.$message({message:this.$t("pc.idExistsWarning"),type:"warning"}),void(this.userId="");await(0,ue.Pt)((()=>(0,D.gS)((0,D.rJ)(v.db,"diseaseInfo"),{userId:this.userId,doctorDiagnosedDisease:localStorage.getItem("doctorDiagnosedDisease"),predictedDiseases:this.predictedDiseases,allSymptomSelections:this.allSymptomSelections,inferredSymptomProfile:this.inferredSymptomProfile,seenDiseases:this.seenDiseases}))),this.$message({message:this.$t("pc.storeSuccess"),type:"success"}),this.showMemberId=!1,this.openReport()}catch(e){console.error("Error storing results: ",e),this.$message({message:this.$t("pc.storeUnavailable"),type:"warning"}),this.showMemberId=!1,this.openReport()}},async exploreSymptomsByDisease(e,t={}){const s=String(e||this.textarea||"").trim();if(!s)return;const i=t.startNewJourney??!e;this.requestError=null;try{const e=await(0,l.EY)(s,this.$i18n.locale,20),t=e.results||[];t.forEach((e=>this.$set(this.diseaseSearchIndex,e.name,e)));const a=t.find((e=>e.name.toLowerCase()===s.toLowerCase()));if(a)return i&&this.beginJourney(s,a.name),await this.displayDiseaseDetails(a.name);if(t.length)return this.pendingJourneySearchTerm=i?s:"",this.showDiseaseSelectionDialog(t.map((e=>e.name)))}catch(a){console.warn("Disease search API unavailable; trying the bundled development fallback.",a);try{await this.ensureFallbackDiseaseData();const e=this.diseaseNames.filter((e=>e.toLowerCase().includes(s.toLowerCase()))),t=e.find((e=>e.toLowerCase()===s.toLowerCase()));if(t)return i&&this.beginJourney(s,t),await this.displayDiseaseDetails(t);if(e.length)return this.pendingJourneySearchTerm=i?s:"",this.showDiseaseSelectionDialog(e.slice(0,20))}catch(o){return void this.showRequestError(a,"searching conditions",(()=>this.exploreSymptomsByDisease(s)))}}this.$message({message:this.$t("pc.noDiseaseFound"),type:"warning"}),this.textarea=""},showDiseaseSelectionDialog(e){this.fuzzyMatches=e,this.selectDiseasesVisible=!0},async displayDiseaseDetails(e){let t=this.diseases?.[e];if(!t)try{let s=this.diseaseSearchIndex[e];if(!s){const t=await(0,l.EY)(e,this.$i18n.locale,20);s=(t.results||[]).find((t=>t.name===e))}if(!s?.id)throw new Error("Disease details were not found.");t=await(0,l.C_)(s.id,this.$i18n.locale),this.$set(this.diseases,e,t)}catch(a){try{await this.ensureFallbackDiseaseData(),t=this.diseases[e]}catch(o){t=null}if(!t)return void this.showRequestError(a,"loading condition details",(()=>this.displayDiseaseDetails(e)))}this.showDisease=!0;const s=this.diseaseDetails?.Symptoms||[],i={...this.selectedSymptoms};this.diseaseDetails=t,this.currentDiseaseName=e,this.markDiseaseSeen(e),this.viewedDiseases.includes(e)||this.viewedDiseases.push(e),localStorage.getItem("doctorDiagnosedDisease")||localStorage.setItem("doctorDiagnosedDisease",this.currentDiseaseName),this.selectedSymptoms={},this.diseaseDetails.Symptoms.forEach((e=>{const t=e.SymptomName,a=s.find((t=>void 0!==i[t.SymptomName]&&(0,C.R1)(t,e))),o=(0,C.a3)(this.allSymptomSelections,e);void 0!==i[t]?this.selectedSymptoms[t]=i[t]:a?this.selectedSymptoms[t]=i[a.SymptomName]:o&&(this.selectedSymptoms[t]=o.UserChoice)})),this.selectedSymptoms={...this.selectedSymptoms,...this.diseaseFeedback[e]||{}},this.userSelections=[],this.textarea="",this.selectDiseasesVisible=!1},getSelectedSymptomsWithProbability(){for(let e of this.diseaseDetails.Symptoms){const t=this.selectedSymptoms[e.SymptomName];if(void 0!==t){const s=(0,C.a3)(this.userSelections,e),i=(0,C.cm)(e,t);s?(s.UserChoice=t,s.Possibility=e.Possibility):this.userSelections.push(i)}}this.allSymptomSelections=[...this.allSymptomSelections,...this.userSelections],this.allSymptomSelections=(0,C.Ru)(this.allSymptomSelections)},addConfirmedSymptom(e){e&&e.SymptomName&&(this.allSymptomSelections=(0,C.Ru)([...this.allSymptomSelections,e]),this.pendingSuggestionText="",this.persist
1CurrentSession())},removeSymptom(e){this.allSymptomSelections=(0,C.eP)(this.allSymptomSelections,e)},changeSymptomChoice({symptom:e,userChoice:t}){if(!e||!["yes","no","maybe"].includes(t))return;const s=(0,C.a3)(this.allSymptomSelections,e);if(!s)return;s.UserChoice=t,this.allSymptomSelections=[...this.allSymptomSelections];const i={};Object.entries(this.diseaseFeedback).forEach((([s,a])=>{i[s]={...a},Object.keys(i[s]).forEach((a=>{(0,C.R1)({SymptomName:a},e)&&(i[s][a]=t)}))})),this.diseaseFeedback=i;const a=(this.diseaseDetails.Symptoms||[]).find((t=>(0,C.R1)(t,e)));a&&(this.selectedSymptoms={...this.selectedSymptoms,[a.SymptomName]:t});const o=(0,C.a3)(this.userSelections,e);o&&(o.UserChoice=t),this.persistCurrentSession()},getDiseaseMatchDebugRows(e){return Object.entries(e).map((([e,t],s)=>{const i=this.diseases[e],a=(i?.Symptoms||[]).map((e=>{const t=(0,C.a3)(this.userSelections,e);return t?{diseaseSymptom:e.SymptomName,diseaseSymptomIds:(0,C.Qz)(e),userSymptom:t.SymptomName,userSymptomIds:t.SymptomIds||[],userChoice:t.UserChoice,possibility:e.Possibility}:null})).filter(Boolean);return{diseaseName:e,score:t,scorePercent:`${(100*t).toFixed(2)}%`,matchedSymptomCount:a.length,matchedSymptoms:a,alreadySeen:this.seenDiseases.includes(e),originalIndex:s}})).sort(((e,t)=>t.score-e.score||e.originalIndex-t.originalIndex))},debugDiseaseMatching({diseaseScores:e,sortedDiseaseScores:t,newSortedDiseaseScores:s,mostLikelyDisease:i}){const a=this.getDiseaseMatchDebugRows(e),o=a.filter((e=>e.score>0)),n=o.filter((e=>!e.alreadySeen));console.groupCollapsed(`[Sympify Debug] Scroll Down disease matching: ${this.currentDiseaseName}`),console.log("Step 1: Current disease",this.currentDiseaseName),console.log("Step 2: Raw selected radio values",this.selectedSymptoms),console.table(this.userSelections.map((e=>({symptom:e.SymptomName,symptomId:e.SymptomId,symptomIds:(e.SymptomIds||[]).join(", "),userChoice:e.UserChoice,possibility:e.Possibility})))),console.log("Step 3: Seen diseases excluded later",this.seenDiseases),console.log(`Step 4: Scored ${t.length} diseases; ${o.length} had score > 0.`),console.table(a.slice(0,25).map((e=>({disease:e.diseaseName,score:e.scorePercent,matchedSymptoms:e.matchedSymptomCount,alreadySeen:e.alreadySeen})))),console.log("Step 5: Top positive match details",o[0]||null),console.log(`Step 6: Eligible unseen positive diseases: ${s.length}`,n.slice(0,25)),console.log("Step 7: Final decision",i?`Show ${i.diseaseName}`:"No eligible disease remains; generate report"),console.groupEnd()},getApiSymptomSelections(){return this.allSymptomSelections.map((e=>({symptomId:e.SymptomId,symptomIds:e.SymptomIds,symptomName:e.SymptomName,userChoice:e.UserChoice,origin:e.Origin||null,originalText:e.OriginalText||null})))},async getMostLikelyDiseaseFromApi(){const e=await(0,l.X3)((0,l.ri)({selections:this.getApiSymptomSelections(),seenDiseases:this.seenDiseases,seedDiseaseName:this.seedDiseaseName,currentDiseaseName:this.currentDiseaseName,viewedDiseases:this.viewedDiseases}),this.$i18n.locale),t=e.results||[];return console.groupCollapsed(`[Sympify Debug] API disease matching: ${this.currentDiseaseName}`),console.log("API selections",this.getApiSymptomSelections()),console.log("Seen diseases sent to API",this.seenDiseases),console.table(t.map((e=>({disease:e.diseaseName,diseaseId:e.diseaseId,score:e.scorePercent,matchedSymptoms:e.matchedSymptoms.length,specificAccepted:e.evidence?.specificAcceptedMatches,rejectedPenalty:e.evidence?.rejectedPenalty,matchedCategories:e.ontology?.matchedCategories?.join(", ")||"",categoryBonus:e.ontology?.categoryContinuityBonus||0,categoryShiftReason:e.ontology?.categoryShiftReason||""})))),console.log("API final decision",t[0]?`Show ${t[0].diseaseName}`:"Generate report"),console.groupEnd(),t[0]?{diseaseName:t[0].diseaseName,score:t[0].score,description:t[0].disease?.overview||""}:null},calculateDiseaseScores(){const e={};var t;for(const[s,i]of Object.entries(this.diseases)){let a=0;i.Symptoms.forEach((e=>{const s=parseFloat(e.Possibility)/100;if(t=(0,C.a3)(this.userSelections,e),t){const e=t.UserChoice;"yes"===e?a+=s:"maybe"===e&&(a+=.5*s)}})),e[s]=a}return e},processDiseaseScoring(){const e=this.diseaseDetails.Symptoms.every((e=>void 0!==this.selectedSymptoms[e.SymptomName]));e?this.predictionCount>=this.maxPredictions?this.$message({message:this.$t("pc.maxPredictionsReached"),type:"warning"}):(this.cardState="leave",setTimeout((async()=>
1{this.getSelectedSymptomsWithProbability(),this.allSymptomSelections&&(this.showSymptom=!0);let e=null;try{e=await this.getMostLikelyDiseaseFromApi()}catch(t){return this.cardState="show",void this.showRequestError(t,"finding the next relevant condition",(()=>this.processDiseaseScoring()))}e?(this.predictedDiseases.push({diseaseName:e.diseaseName,score:e.score,description:e.description}),await this.exploreSymptomsByDisease(e.diseaseName,{startNewJourney:!1}),this.$nextTick((()=>{const e=this.$refs.symptomList;e&&(e.scrollTop=0)})),this.cardState="enter",setTimeout((()=>{this.cardState="show"}),500),this.predictionCount++):(this.$message({message:this.$t("pc.noMoreUnseenDiseases"),type:"success"}),await this.generateReport())}),500)):this.$message.warning(this.$t("pc.selectAllSymptomsWarning"))}},created(){this.loadRecentSessions(),this.loadDiseaseData()}},_e=ge,ye=(0,u.A)(_e,S,b,!1,null,"c361d268",null),fe=ye.exports,Ae=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mobile_page"},[e.requestError?t("RequestErrorCard",{attrs:{error:e.requestError},on:{retry:e.retrySearch}}):e._e(),t("div",{staticClass:"mobile_page_header"},[e._m(0),t("div",{staticClass:"mobile_page_header_right",on:{click:function(t){e.show=!0}}},[t("img",{attrs:{src:s(5816),alt:""}})])]),t("div",{staticClass:"mobile_page_content"},[t("div",{staticClass:"mobile_page_content_top"},[t("div",{staticClass:"caption"},[e._v(" "+e._s(e.$t("mobile.findDisease"))+" "),t("img",{attrs:{src:s(6824)},on:{click:e.showLangDialog}})]),t("div",{staticClass:"input_area"},[t("div",{staticClass:"input_title"},[e._v(e._s(e.$t("mobile.enterDisease")))]),t("div",{staticClass:"input_textarea"},[t("van-field",{attrs:{rows:"4",autosize:"",type:"textarea",placeholder:e.$t("mobile.addDiseasePlaceholder")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.searchDisease.apply(null,arguments))}},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}})],1),t("div",{staticClass:"search_disease",on:{click:function(t){return e.searchDisease()}}},[t("div",{staticClass:"search_text"},[e._v(e._s(e.$t("mobile.exploreSymptoms")))]),t("img",{staticClass:"custom-icon",attrs:{src:s(3048)}})])])]),t("div",{staticClass:"mobile_page_content_bottom"},[t("div",{staticClass:"bottom_tip"},[t("div",[e._v(e._s(e.$t("mobile.sympifyAi")))]),t("div",[e._v(e._s(e.$t("mobile.minimizingMisdiagnosis")))])])])]),t("van-popup",{style:{height:"100%",width:"100%"},attrs:{position:"right"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("div",{staticClass:"mobile_page_header"},[t("div",{staticClass:"mobile_page_header_left"},[t("img",{attrs:{src:s(6510),alt:""}}),t("div",[e._v("Sympify.ai")])]),t("div",{staticClass:"mobile_page_header_right",on:{click:function(t){e.show=!1}}},[t("img",{staticStyle:{width:"12px",height:"12px"},attrs:{src:s(1943),alt:""}})])]),t("div",{staticClass:"popup_content"},[t("div",{staticClass:"popup_content_items"},[t("div",{staticClass:"popup_content_item"},[t("img",{attrs:{src:s(3021),alt:""}}),t("div",[e._v(e._s(e.$t("mobile.home")))])]),t("div",{staticClass:"popup_content_item",on:{click:function(t){return e.jumpWebsite()}}},[t("img",{attrs:{src:s(3406),alt:""}}),t("div",[e._v(e._s(e.$t("mobile.aboutUs")))])]),t("div",{staticClass:"popup_content_item",on:{click:function(t){return e.goHowUse()}}},[t("img",{attrs:{src:s(1814),alt:""}}),t("div",[e._v(e._s(e.$t("mobile.howToUse")))])]),t("div",{staticClass:"popup_content_item",on:{click:function(t){return e.goImaging()}}},[t("img",{attrs:{src:s(3406),alt:""}}),t("div",[e._v(e._s(e.$t("mobile.imagingUpload")))])]),t("div",{staticClass:"popup_content_item",on:{click:function(t){e.showDisclaimers=!0}}},[t("img",{attrs:{src:s(1870),alt:""}}),t("div",[e._v(e._s(e.$t("mobile.disclaimers")))])])]),t("div",{staticClass:"mobile_page_content_bottom"},[t("div",{staticClass:"bottom_tip"},[t("div",[e._v("Sympify.ai")]),t("div",[e._v(e._s(e.$t("mobile.minimizingMisdiagnosis")))])])])])]),t("van-popup",{style:{height:"100%",width:"100%"},attrs:{position:"right"},model:{value:e.showDisclaimers,callback:function(t){e.showDisclaimers=t},expression:"showDisclaimers"}},[t("van-nav-bar",{attrs:{title:e.$t("mobile.disclaimersTitle"),"left-arrow":""},on:{"click-left":e.onClickLeft}}),t("div",{staticStyle:{"box-sizing":"border-box",padding:"20px","font-size":"18px"}},[e._v(" "+e._s(e.$t("mobile.disclaimersContent"))+" ")])],1),t("van-dialog",{staticClass:"show_dialog",attrs:{confirmButtonText:e.$t("mobile.close")},model:{value:e.showDialog,callback:function(t){e.showDialog=t},expression:"showDialog"}},[t("div",[t("p",[e._v(e._s(e.$t("mobile.selectDiseaseDescription")))]),e._l(e.fuzzyMatches,(function(s,i){return t("van-button",{key:i,staticStyle:{margin:"5px"},attrs:{type:"primary",color:"#7f56d9"},on:{click:function(t){return e.findDisease(s)}}},[e._v(" "+e._s(s)+" ")])}))],2)]),t("van-popup",{style:{height:"100%",width:"100%"},attrs:{position:"right"},model:{value:e.langDialogVisible,callback:function(t){e.langDialogVisible=t},expression:"langDialogVisible"}},[t("van-nav-bar",{attrs:{title:e.$t("mobile.languageDialogTitle"),"left-arrow":""},on:{"click-left":function(t){e.langDialogVisible=!1}}}),t("div",{staticStyle:{"box-sizing":"border-box",padding:"20px"}},[t("van-button",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{type:"en"===e.$i18n.locale?"primary":"default",color:"en"===e.$i18n.locale?"#7f56d9":""},on:{click:function(t){return e.changeLanguage("en")}}},[e._v(" English (United States) ")]),t("van-button",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{type:"cn"===e.$i18n.locale?"primary":"default",color:"cn"===e.$i18n.locale?"#7f56d9":""},on:{click:function(t){return e.changeLanguage("cn")}}},[e._v(" 简体中文 (中国) ")]),t("van-button",{staticStyle:{"margin-bottom":"10px",width:"100%"},attrs:{disabled:""}},[e._v(" Español(España) ")])],1)],1)],1)},Ee=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"mobile_page_header_left"},[t("img",{attrs:{src:s(6510),alt:""}}),t("div",[e._v("Sympify.ai")])])}],Se=s(2455),be={components:{RequestErrorCard:I.A},data(){return{message:"",show:!1,showDisclaimers:!1,showDialog:!1,fuzzyMatches:[],requestError:null,searching:!1,lastSearchTerm:"",langDialogVisible:!1}},watch:{message(e,t){""!==e&&null!==e&&void 0!==e?this.$nextTick((()=>{$(".search_disease").addClass("search_disease_active"),$(".search_text").addClass("search_text_active")})):this.$nextTick((()=>{$(".search_disease").removeClass("search_disease_active"),$(".search_text").removeClass("search_text_active")}))}},methods:{getDeviceType(){return this.$route.path.startsWith("/mobile")?"mobile":"pc"},retrySearch(){this.requestError=null,this.lastSearchTerm&&(this.message=this.lastSearchTerm,this.searchDisease())},changeLanguage(e){this.$i18n.locale=e;const t=this.getDeviceType(),s="mobile"===t?"/mobile":"/pc",i=`${s}/${e}`;this.$router.push(i).catch((e=>
1{"NavigationDuplicated"!==e.name&&console.error("Navigation error:",e)})),this.langDialogVisible=!1},showLangDialog(){this.langDialogVisible=!0},goHowUse(){const e=this.$i18n.locale;this.$router.push({path:`/howtouse/${e}`}).catch((e=>{"NavigationDuplicated"!==e.name&&console.error("Navigation error:",e)}))},goImaging(){const e=this.$i18n.locale;this.$router.push({path:`/mobile/${e}/imaging`}).catch((e=>{"NavigationDuplicated"!==e.name&&console.error("Navigation error:",e)}))},jumpWebsite(){window.location.href="https://www.sympify.org"},onClickLeft(){this.showDisclaimers=!1},async searchDisease(){const e=this.message.trim();if(e){if(!this.searching){this.searching=!0,this.requestError=null,this.lastSearchTerm=e;try{const t=await(0,l.EY)(e,this.$i18n.locale,20),s=t.results||[],i=s.find((t=>t.name.toLowerCase()===e.toLowerCase()));if(i)return this.beginJourneyForDisease(e,i.name),void this.navigateToDiseasePage(i.name);if(s.length)return void this.showDiseaseDialog(s.map((e=>e.name)));(0,Se.A)(this.$t("mobile.noDiseaseFound")),this.message=""}catch(t){this.requestError=(0,ue.hh)(t,"searching conditions")}finally{this.searching=!1}}}else(0,Se.A)(this.$t("mobile.enterValidDisease"))},showDiseaseDialog(e){this.fuzzyMatches=e,this.showDialog=!0},findDisease(e){this.showDialog=!1,this.beginJourneyForDisease(this.lastSearchTerm||e,e),this.navigateToDiseasePage(e)},beginJourneyForDisease(e,t){localStorage.setItem("doctorDiagnosedDisease",t),(0,he.jt)({lang:this.$i18n.locale,originalSearchTerm:e||t,seedDiseaseName:t})},navigateToDiseasePage(e){const t=this.$i18n.locale,s=this.getDeviceType(),i="mobile"===s?"MobileDisease":"PcDisease";this.$router.push({name:i,params:{lang:t},query:{diseaseName:e}}).then((()=>{this.$router.replace({name:i,params:{lang:t}}).catch((e=>{"NavigationDuplicated"!==e.name&&console.error("Navigation redirect error:",e)}))})).catch((e=>{"NavigationDuplicated"!==e.name&&console.error("Navigation error:",e)}))}}},ve=be,Ce=(0,u.A)(ve,Ae,Ee,!1,null,"9e6237e6",null),De=Ce.exports,Ie=s(6586),Pe=JSON.parse('{"ui":{"common":{"somethingWentWrong":"Something went wrong","tryAgain":"Try again"},"suggest":{"label":"Add a symptom in your own words","placeholder":"e.g. wheezing, blurred vision","check":"Check","checking":"Checking…","cancel":"Cancel","add":"Add to my symptoms","recognised":"We recognise \\"{symptom}\\".","originExact":"exact match","originAlias":"known alias","didYouMeanOne":"We could not match \\"{text}\\" exactly. Did you mean {symptom}?","didYouMeanMany":"We could not match \\"{text}\\" exactly. Which of these did you mean?","confidence":{"high":"close match","moderate":"possible match"},"blockedNote":"Some similar terms were withheld because they mean the opposite of one another.","blockedTitle":"We cannot safely suggest a match for \\"{text}\\".","blockedExplain":"The closest terms differ only by a prefix that reverses their meaning, so we will not guess between them. Choose the exact symptom from a condition, or keep your own wording.","noMatch":"We could not find a match for \\"{text}\\".","keepWording":"Keep my wording: \\"{text}\\"","dismiss":"No, none of these","empty":"Enter a symptom to check.","errorCheck":"We could not check that wording just now. You can still keep your own wording.","badgeConfirmed":"confirmed","badgeOwnWording":"own wording","badgeConfirmedTitle":"You confirmed this suggestion for \\"{text}\\".","badgeOwnWordingTitle":"Recorded exactly as you typed it; not matched to a known symptom."},"shell":{"brandSubtitle":"Health information workspace","home":"Home","companyWebsite":"Company Website","howToUse":"How to Use","imaging":"Imaging","reports":"Reports","recentSessions":"Recent sessions","recentEmpty":"Searched conditions will appear here.","recentFallback":"Recent","symptomNoInfo":"Description not available yet.","language":"Language","medicalDisclaimer":"Medical disclaimer","clearSession":"Clear session data","startBadge":"Sympify session","startTitle":"Explore possible related conditions","startIntro":"Enter a condition to review its commonly reported symptoms and build information to discu
1ss with a clinician.","enterCondition":"Enter a condition","conditionPlaceholder":"For example: asthma","exploreSymptoms":"Explore symptoms","notDiagnosis":"Sympify provides educational information, not a medical diagnosis.","continueMatching":"Continue matching","addFeedbackBeforeReport":"Add symptom feedback before creating a report.","sessionCleared":"Session data was cleared.","currentSession":"Current session","symptomProfile":"Symptom profile","createReport":"Create report","profileExplanation":"This profile organizes your feedback for matching. Related symptoms can improve matching but do not provide a medical diagnosis.","emptyProfile":"Choose an answer for each symptom to build this profile.","selected":"Selected","notExperienced":"Not experienced","unsure":"Unsure","relatedSymptoms":"Related symptoms","relatedExplanation":"Broader categories inferred from selected symptoms.","removeSymptom":"Remove {symptom}","changeSymptom":"Change feedback for {symptom}","viewedInJourney":"Viewed in this session","journeyStartedWith":"Journey started with {disease}","currentDisease":"Current","journeyConditionCount":"{count} viewed"},"report":{"safetyNote":"These are possible related conditions to discu
1ss with a clinician. This report is not a medical diagnosis.","uploadedTitle":"Uploaded supporting information","noUploads":"No supporting upload metadata is attached to this case.","uploadNote":"Upload organization is not a clinical finding.","conditionFallback":"Learn more about this condition from Mayo Clinic.","mayoLearn":"Click to learn more from Mayo Clinic.","inferredTitle":"Related broader symptom categories (inferred)","inferredNote":"These broader categories were inferred from selected symptoms; they were not explicitly selected by the user.","noCategory":"No category","noTags":"no patient-selected tags"},"imaging":{"replaceFile":"Choose a different file","checkFile":"Please check this file","chooseAnother":"Choose another file and try again.","notesPlaceholder":"Add context, timing, source of the result, or questions for care.","clearHistoryConfirm":"Clear saved imaging metadata history?","organized":"Information organized","noLinks":"No symptom links were added from this upload.","tagsOrganized":"{count} patient-selected tag was organized with the case. This does not change disease ranking.","tagsOrganizedPlural":"{count} patient-selected tags were organized with the case. This does not change disease ranking.","labSummary":"The file was attached to the case. No lab values were read or interpreted.","photoSummary":"The image was attached to the case. No visual or clinical interpretation was performed.","labType":"Lab or test result","photoType":"Symptom photo","localAndCloudSaved":"Metadata was saved locally and the upload was saved to Firebase.","localAuthRequired":"Metadata was saved locally. Sign in is required for cloud storage.","localCloudDisabled":"Metadata was saved locally. Cloud imaging is disabled.","localCloudFailed":"Metadata was saved locally, but cloud storage failed.","sessionOnly":"This information is available for this page session only and was not saved.","saveFailed":"Unable to save this upload record. Please try again.","savingCloud":"saving this upload to cloud storage","savingUpload":"saving this upload","warningNoVisual":"No computer-vision or clinical interpretation was performed.","warningTagsOnly":"Patient-selected tags are organizational metadata, not image findings.","warningNoOcr":"No OCR or clinical interpretation was performed.","warningOriginalReport":"Confirm all values using the original report."},"translatorReviewTodo":"TODO: New patient-facing Chinese shell and safety copy requires professional review."},"imaging":{"title":"Imaging Uploads","back":"Back","safetyLead":"Sympify does not diagnose from images.","safetyBody":"Uploaded photos and lab results organize information and may help generate better questions for care.","emergency":"Seek urgent care for severe pain, trouble breathing, chest pain, signs of stroke, rapidly spreading infection, severe allergic reaction, or other emergencies.","uploadType":"Upload type","photo":"Symptom Photo","lab":"Lab/Test Result","chooseFile":"Choose a JPG, PNG, WEBP, or PDF","maxSize":"Max size: 10 MB","clearFile":"Clear selected file","bodyRegion":"Body region","selectBodyRegion":"Select a body region","duration":"Symptom duration","durationAmount":"Duration amount","durationUnit":"Duration unit","selectDuration":"Number","severity":"Severity estimate","testCategory":"Test category","notes":"Patient notes","regions":{"headOrFace":"Head or face","neck":"Neck","chest":"Chest","abdomen":"Abdomen","back":"Back","pelvisOrGroin":"Pelvis or groin","armOrHand":"Arm or hand","legOrFoot":"Leg or foot","wholeBody":"Whole body"},"units":{"hours":"Hours","days":"Days","weeks":"Weeks","months":"Months","years":"Years"},"storeConsent":"Consent to store this upload for care organization","improvementConsent":"I separately consent to approved, privacy-reviewed use of this record for future system improvement.","saving":"Saving...","save":"Save Upload Record","analysis":"Placeholder Analysis","uploadTypeLabel":"Upload type","file":"File","evidence":"Candidate metadata links","analysisResult":"Analysis result","history":"Saved Upload Records","clearHistory":"Clear history","emptyHistory":"No locally saved upload metadata yet.","labNotice":"Uploading currently stores and organizes this document but does not read or interpret it.","errors":{"FILE_REQUIRED":"Please choose an image or PDF before continuing.","FILE_EMPTY":"The selected file is empty.","FILE_TOO_LARGE":"Uploads must be 10 MB or smaller.","FILE_TYPE_UNSUPPORTED":"Allowed upload types are JPG, JPEG, PNG, WEBP, and PDF.","FILE_TYPE_MISMATCH":"The file extension does not match its reported type.","FILE_MIME_MISSING":"The browser could not verify this image type.","IMAGE_DECODE_FAILED":"The image appears corrupted or cannot be decoded.","IMAGE_DIMENSIONS_INVALID":"The image has invali
1d dimensions."}},"pc":{"findDisease":"Find your disease","enterDisease":"Enter your disease","addDiseasePlaceholder":"Add a disease name here...","exploreSymptoms":"Explore Symptoms","sympifyAi":"Sympify.ai","minimizingMisdiagnosis":"The World\'s First AI Platform Minimizing Misdiagnosis","howToUse":"How to Use","imagingUpload":"Imaging Upload","disclaimers":"Disclaimers","disease":"Disease","diseasePrefix":"Disease: ","symptomSelectionTip":"For the following symptoms, please select Yes, No & Maybe according to your personal wellbeing","symptom":"Symptom","yes":"Yes","no":"No","maybe":"Maybe","scrollDown":"Scroll Down","noDiseaseAdded":"No disease added","symptomProfile":"Symptom Profile","generateReport":"Generate Report","noSymptomsAdded":"No symptoms added","overview":"Overview","causes":"Causes","symptoms":"Symptoms","departmentsThatTreat":"Departments that treat this condition","riskFactors":"Risk Factors","prevention":"Prevention","diagnosis":"Diagnosis","treatments":"Treatments","noDataAvailable":"No data available","memberId":"Member ID","memberIdDescription":"Please enter your member ID or skip it if you want","done":"Done","disclaimersTitle":"Disclaimers","disclaimersContent":"This app does not provide personal medical advice or diagnosis. All content is general and for educational purposes. Information on the app has been gathered from reputable sources, but we are not responsible for explanation errors. Individuals should not rely on this app to self-diagnose any medical conditions. Healthcare professionals should be consulted to understand the information provided in terms of your own situation. No information should be used as a substitute for your healthcare provider or professional medical advice. Always consult your own physician regarding medical conditions, diagnosis, treatment, and health programs. In the case of a medical emergency, call your local emergency services.","confirm":"Confirm","selectDisease":"Select a Disease","selectDiseaseDescription":"We found multiple matches. Please select one:","languageDialogTitle":"Language","languageEnglish":"English (United States)","languageChinese":"Simplified Chinese (China)","cancel":"Cancel","idExistsWarning":"This ID already exists in the database. Please use a different ID.","storeSuccess":"Store Results successfully","storeUnavailable":"Report generated locally, but cloud storage was unavailable.","noDiseaseFound":"No such disease, please reenter","selectAllSymptomsWarning":"Please select an option for all symptoms.","maxPredictionsReached":"You have reached the maximum number of predictions.","noMoreDiseases":"No more diseases to predict.","noMoreUnseenDiseases":"No more unseen diseases. Generating report.","pleaseSelectDisease":"Please select a disease to explore its symptoms.","goBackToSelect":"Go back to select a disease","howToUseTitle":"How to Use","howToUseStep1":"Step 1: Enter your disease name in the input area.","howToUseStep2":"Step 2: Click \'Explore Symptoms\' to get details.","howToUseStep3":"Step 3: Review the symptoms and select relevant ones.","howToUseStep4":"Step 4: Get your medical report or further assistance.","reportSympifyAi":"Sympify.ai","reportMedicalReport":"Medical Report","reportDownload":"Download PDF","reportReported":"Reported by:","reportTime":"Time:","reportSymptomsDoOccur":"Symptoms That Occur","reportSymptomsUnsureOccur":"Symptoms Unsure If Occur","reportPredictedDiseases":"Possible Related Conditions","reportDiseaseMatches85to100":"Strongest symptom match","reportDiseaseMatches70to85":"Strong symptom match","reportDiseaseMatches55to70":"Moderate symptom match","reportDiseaseMatches40to55":"Limited symptom match","reportDiseaseMatchesBelow40":"Weakest symptom match","reportDoctorDiagnosedDisease":"Condition Entered at Start"},"mobile":{"sympifyAi":"Sympify.ai","findDisease":"Find your disease","enterDisease":"Enter your disease","addDiseasePlaceholder":"Add a disease name here...","exploreSymptoms":"Explore Symptoms","minimizingMisdiagnosis":"The World\'s First AI Platform\\nMinimizing Misdiagnosis","home":"Home","aboutUs":"About us","howToUse":"How to Use","imagingUpload":"Imaging Upload","disclaimers":"Disclaimers","disclaimersTitle":"Disclaimers","disclaimersContent":"This app does not provide personal medical advice or diagnosis. All content is general and for educational purposes. Information on the app has been gathered from reputable sources, but we are not responsible for explanation errors. Individuals should not rely on this app to self-diagnose any medical conditions. Healthcare professionals should be consulted to understand the information provided in terms of your own situation. No information should be used as a substitute for your healthcare provider or professional medical advice. Always consult your own physician regarding medical conditions, diagnosis, treatment, and health programs. In the case of a medical emergency, call your local emergency services.","selectDiseaseDescription":"We found multiple matches. Please select one:","close"
1:"Close","enterValidDisease":"Please enter a valid disease name","noDiseaseFound":"No such disease, please reenter","languageDialogTitle":"Select Language","languageEnglish":"English (United States)","languageChinese":"Simplified Chinese (China)","noDiseaseAdded":"No disease selected","symptomSelectionTip":"For the following symptoms, please select Yes, No & Maybe according to your personal wellbeing","yes":"Yes","no":"No","maybe":"Maybe","viewSummary":"View Summary","scrollDown":"Scroll Down","symptomProfile":"Symptom Profile","noSymptomsAdded":"No symptoms added","selected":"Selected","notExperienced":"Not experienced","unsure":"Unsure","changeSymptom":"Change feedback for {symptom}","clearSession":"Clear session data","clearSessionConfirm":"Clear this journey and its saved symptom feedback?","sessionCleared":"Session data was cleared.","generateReport":"Generate Report","overview":"Overview","causes":"Causes","symptoms":"Symptoms","departmentsThatTreat":"Departments that treat this condition","riskFactors":"Risk Factors","prevention":"Prevention","diagnosis":"Diagnosis","treatments":"Treatments","noDataAvailable":"No data available","memberId":"Member ID","memberIdDescription":"Please enter your member ID or skip it if you want","done":"Done","idExistsWarning":"This ID already exists in the database. Please use a different ID.","storeSuccess":"Store Results successfully","storeUnavailable":"Report generated locally, but cloud storage was unavailable.","selectAllSymptomsWarning":"Please select an option for all symptoms.","maxPredictionsReached":"You have reached the maximum number of predictions.","noMoreDiseases":"No more diseases to predict.","noMoreUnseenDiseases":"No more unseen diseases. Generating report.","pleaseSelectDisease":"Please select a disease to explore its symptoms.","goBackToSelect":"Go back to select a disease","reportSympifyAi":"Sympify.ai","reportMedicalReport":"Medical Report","reportDownload":"Download PDF","reportReported":"Reported by:","reportTime":"Time:","reportSymptomsDoOccur":"Symptoms That Occur","reportSymptomsUnsureOccur":"Symptoms Unsure If Occur","reportPredictedDiseases":"Possible Related Conditions","reportDiseaseMatches85to100":"Strongest symptom match","reportDiseaseMatches70to85":"Strong symptom match","reportDiseaseMatches55to70":"Moderate symptom match","reportDiseaseMatches40to55":"Limited symptom match","reportDiseaseMatchesBelow40":"Weakest symptom match","reportDoctorDiagnosedDisease":"Condition Entered at Start"}}'),Re=JSON.parse('{"ui":{"common":{"somethingWentWrong":"出现问题","tryAgain":"重试"},"suggest":{"label":"用你自己的话添加症状","placeholder":"例如:喘息、视力模糊","check":"检查","checking":"检查中…","cancel":"取消","add":"添加到我的症状","recognised":"已识别“{symptom}”。","originExact":"精确匹配","originAlias":"已知别名","didYouMeanOne":"无法精确匹配“{text}”。你是指{symptom}吗?","didYouMeanMany":"无法精确匹配“{text}”。你指的是以下哪一项?","confidence":{"high":"高度相似","moderate":"可能相符"},"blockedNote":"部分相似词条已被隐藏,因为它们的含义正好相反。","blockedTitle":"无法为“{text}”安全地给出建议。","blockedExplain":"最接近的词条仅相差一个会使含义完全相反的前缀,因此我们不会在它们之间猜测。请从某个疾病中选择确切症状,或保留你自己的描述。","noMatch":"未找到与“{text}”匹配的症状。","keepWording":"保留我的描述:“{text}”","dismiss":"都不是","empty":"请输入要检查的症状。","errorCheck":"暂时无法检查该描述。你仍然可以保留自己的描述。","badgeConfirmed":"已确认","badgeOwnWording":"自述","badgeConfirmedTitle":"你已确认“{text}”对应的建议。","badgeOwnWordingTitle":"按你输入的原文记录,未匹配到已知症状。"},"shell":{"brandSubtitle":"健康信息工作区","home":"首页","companyWebsite":"机构网站","howToUse":"使用说明","imaging":"影像资料","reports":"报告","recentSessions":"最近会话","recentEmpty":"搜索过的状况会显示在这里。","recentFallback":"最近","symptomNoInfo":"暂无说明。","language":"语言","medicalDisclaimer":"医疗免责声明","clearSession":"清除会话数据","startBadge":"Sympify 会话","startTitle":"探索可能相关的健康状况","startIntro":"输入一种健康状况,查看常见症状,并整理可与临床医生讨论的信息。","enterCondition":"输入健康状况","conditionPlaceholder":"例如:哮喘","exploreSymptoms":"探索症状","notDiagnosis":"Sympify 仅提供教育信息,并非医疗诊断。","continueMatching":"继续匹配","addFeedbackBeforeReport":"请先添加症状反馈,再创建报告。","sessionCleared":"会话数据已清除。","currentSession":"当前会话","symptomProfile":"症状概况","createReport":"创建报告","profileExplanation":"此概况用于整理您的反馈以支持匹配。相关症状可能改善匹配,但不构成医疗诊断。","emptyProfile":"请为症状
1选择答案以建立概况。","selected":"已选择","notExperienced":"未出现","unsure":"不确定","relatedSymptoms":"相关症状","relatedExplanation":"根据已选择症状推断出的较广泛类别。","removeSymptom":"移除 {symptom}","changeSymptom":"更改 {symptom} 的反馈","viewedInJourney":"本次会话中已查看","journeyStartedWith":"会话始于 {disease}","currentDisease":"当前","journeyConditionCount":"已查看 {count} 项"},"report":{"safetyNote":"这些是可与临床医生讨论的可能相关状况。本报告不是医疗诊断。","uploadedTitle":"已上传的辅助信息","noUploads":"此会话没有附加上传资料。","uploadNote":"上传资料的整理结果不是临床发现。","conditionFallback":"从 Mayo Clinic 了解此状况。","mayoLearn":"点击前往 Mayo Clinic 了解更多。","inferredTitle":"相关的较广泛症状类别(推断)","inferredNote":"这些较广泛类别由已选择症状推断而来,并非用户直接选择。","noCategory":"未选择类别","noTags":"无患者选择的标签"},"imaging":{"replaceFile":"选择其他文件","checkFile":"请检查此文件","chooseAnother":"请选择其他文件后重试。","notesPlaceholder":"添加背景、时间、结果来源或希望向医护人员提出的问题。","clearHistoryConfirm":"清除已保存的影像元数据历史?","organized":"信息已整理","noLinks":"此上传资料未添加症状关联。","tagsOrganized":"已将 {count} 个患者选择的标签整理到会话中。这不会改变疾病排名。","tagsOrganizedPlural":"已将 {count} 个患者选择的标签整理到会话中。这不会改变疾病排名。","labSummary":"文件已附加到会话。系统未读取或解释检验数值。","photoSummary":"影像已附加到会话。系统未进行视觉或临床解释。","labType":"检验或检查结果","photoType":"症状照片","localAndCloudSaved":"元数据已保存在本地,上传文件已保存到 Firebase。","localAuthRequired":"元数据已保存在本地。云端存储需要先登录。","localCloudDisabled":"元数据已保存在本地。云端影像功能未启用。","localCloudFailed":"元数据已保存在本地,但云端存储失败。","sessionOnly":"此信息仅在当前页面会话中可用,未被保存。","saveFailed":"无法保存此上传记录,请重试。","savingCloud":"将上传资料保存到云端","savingUpload":"保存上传资料","warningNoVisual":"系统未进行计算机视觉或临床解释。","warningTagsOnly":"患者选择的标签仅用于整理,不是影像发现。","warningNoOcr":"系统未进行 OCR 或临床解释。","warningOriginalReport":"请以原始报告中的数值为准。"},"translatorReviewTodo":"TODO:新增患者界面及安全相关中文文案需要专业审校。"},"imaging":{"title":"影像资料上传","back":"返回","safetyLead":"Sympify 不会根据影像作出诊断。","safetyBody":"上传的照片和检验报告仅用于整理信息,并可帮助您准备就医时的问题。","emergency":"如有剧烈疼痛、呼吸困难、胸痛、中风征象、感染迅速扩散、严重过敏反应或其他紧急情况,请立即寻求急救。","uploadType":"上传类型","photo":"症状照片","lab":"检验或检查报告","chooseFile":"选择 JPG、PNG、WEBP 或 PDF 文件","maxSize":"最大 10 MB","clearFile":"清除所选文件","bodyRegion":"身体部位","selectBodyRegion":"选择身体部位","duration":"症状持续时间","durationAmount":"持续时间数值","durationUnit":"持续时间单位","selectDuration":"数值","severity":"患者自评严重程度","testCategory":"检查类别","notes":"患者备注","regions":{"headOrFace":"头部或面部","neck":"颈部","chest":"胸部","abdomen":"腹部","back":"背部","pelvisOrGroin":"骨盆或腹股沟","armOrHand":"手臂或手部","legOrFoot":"腿部或足部","wholeBody":"全身"},"units":{"hours":"小时","days":"天","weeks":"周","months":"个月","years":"å¹´"},"storeConsent":"我同意存储此资料以便整理就医信息","improvementConsent":"我另行同意在获得批准并经过隐私审查后,将此记录用于未来的系统改进。","saving":"保存中…","save":"保存上传记录","analysis":"占位分析","uploadTypeLabel":"上传类型","file":"文件","evidence":"候选元数据关联","analysisResult":"分析结果","history":"已保存的上传记录","clearHistory":"清除历史","emptyHistory":"尚无本地保存的上传元数据。","labNotice":"当前上传功能仅存储和整理文档,不会读取或解释其中内容。","errors":{"FILE_REQUIRED":"请先选择影像或 PDF 文件。","FILE_EMPTY":"所选文件为空。","FILE_TOO_LARGE":"上传文件不得超过 10 MB。","FILE_TYPE_UNSUPPORTED":"仅支持 JPG、JPEG、PNG、WEBP 和 PDF。","FILE_TYPE_MISMATCH":"文件扩展名与报告的文件类型不一致。","FILE_MIME_MISSING":"浏览器无法验证此影像类型。","IMAGE_DECODE_FAILED":"影像可能已损坏或无法解码。","IMAGE_DIMENSIONS_INVALID":"影像尺寸无效。"},"translatorReviewTodo":"TODO: Medical Chinese safety wording requires professional translator review."},"pc":{"findDisease":"查找你的疾病","enterDisease":"输入你的疾病","addDiseasePlaceholder":"在这里添加疾病名称...","exploreSymptoms":"探索症状","sympifyAi":"Sympify.ai","minimizingMisdiagnosis":"全球首个人工智能平台ï¼
1Œå‡å°‘误诊","howToUse":"使用说明","imagingUpload":"影像上传","disclaimers":"免责声明","disease":"疾病","diseasePrefix":"疾病:","symptomSelectionTip":"对于以下症状,请根据您的个人健康状况选择“是”、“否”或“可能”","symptom":"症状","yes":"是","no":"否","maybe":"可能","scrollDown":"向下滚动","noDiseaseAdded":"未添加疾病","symptomProfile":"症状概况","generateReport":"生成报告","noSymptomsAdded":"未添加症状","overview":"概述","causes":"原因","symptoms":"症状","departmentsThatTreat":"治疗此病症的科室","riskFactors":"风险因素","prevention":"预防","diagnosis":"诊断","treatments":"治疗","noDataAvailable":"暂无数据","memberId":"会员ID","memberIdDescription":"请输入您的会员ID,或者如果您愿意可以跳过","done":"完成","disclaimersTitle":"免责声明","disclaimersContent":"此应用程序不提供个人医疗建议或诊断。所有内容均为通用信息,仅用于教育目的。应用程序中的信息来自可靠来源,但我们不对解释错误负责。个人不应依赖此应用程序进行自我诊断任何医疗状况。应咨询医疗专业人员,以了解您自身情况下的信息。任何信息都不应作为您的医疗提供者或专业医疗建议的替代品。始终咨询您自己的医生,了解医疗状况、诊断、治疗和健康计划。在医疗紧急情况下,请拨打您当地的紧急服务电话。","confirm":"确认","selectDisease":"选择疾病","selectDiseaseDescription":"我们找到了多个匹配项,请选择一个:","languageDialogTitle":"语言","languageEnglish":"英语 (美国)","languageChinese":"简体中文 (中国)","cancel":"取消","idExistsWarning":"æ­¤ID已在数据库中存在,请使用其他ID。","storeSuccess":"存储结果成功","storeUnavailable":"报告已在本地生成,但云存储不可用。","noDiseaseFound":"未找到该疾病,请重新输入","selectAllSymptomsWarning":"请为所有症状选择一个选项。","maxPredictionsReached":"您已达到最大预测次数。","noMoreDiseases":"没有更多疾病可预测。","noMoreUnseenDiseases":"没有更多未看过的疾病,正在生成报告。","pleaseSelectDisease":"请选择一种疾病以查看其症状。","goBackToSelect":"返回选择疾病","howToUseTitle":"使用说明","howToUseStep1":"步骤 1:输入疾病名称到输入区域。","howToUseStep2":"步骤 2:点击“探索症状”获取详情。","howToUseStep3":"步骤 3:查看症状并选择相关项。","howToUseStep4":"步骤 4:获取医疗报告或进一步帮助。","reportSympifyAi":"Sympify.ai","reportMedicalReport":"医疗报告","reportDownload":"下载 PDF","reportReported":"报告人:","reportTime":"时间:","reportSymptomsDoOccur":"已发生的症状","reportSymptomsUnsureOccur":"不确定是否发生的症状","reportPredictedDiseases":"预测疾病","reportDiseaseMatches85to100":"症状匹配最强","reportDiseaseMatches70to85":"症状匹配较强","reportDiseaseMatches55to70":"症状匹配中等","reportDiseaseMatches40to55":"症状匹配有限","reportDiseaseMatchesBelow40":"症状匹配最弱","reportDoctorDiagnosedDisease":"医生诊断的疾病"},"mobile":{"sympifyAi":"Sympify.ai","findDisease":"查找您的疾病","enterDisease":"输入您的疾病","addDiseasePlaceholder":"在这里输入疾病名称...","exploreSymptoms":"探索症状","minimizingMisdiagnosis":"全球首个人工智能平台\\n减少误诊","home":"首页","aboutUs":"关于我们","howToUse":"使用说明","imagingUpload":"影像上传","disclaimers":"免责声明","disclaimersTitle":"免责声明","disclaimersContent":"本应用不提供个人医疗建议或诊断。所有内容均为通用信息,仅供教育目的。应用中的信息来自可靠来源,但我们不对解释错误负责。个人不应依赖此应用进行自我诊断医疗状况。应咨询医疗专业人员以了解信息在您自身情况下的适用性。任何信息都不应替代您的医疗提供者或专业医疗建议。始终咨询您自己的医生关于医疗状况、诊断、治疗和健康计划。如遇医疗紧急情况,请拨打您当地的紧急服务电话。","selectDiseaseDescription":"我们找到了多个匹配项ï¼
1Œè¯·é€‰æ‹©ä¸€ä¸ªï¼š","close":"关闭","enterValidDisease":"请输入有效的疾病名称","noDiseaseFound":"未找到该疾病,请重新输入","languageDialogTitle":"选择语言","languageEnglish":"英语 (美国)","languageChinese":"简体中文 (中国)","noDiseaseAdded":"未选择疾病","symptomSelectionTip":"对于以下症状,请根据您的个人健康状况选择“是”、“否”或“可能”","yes":"是","no":"否","maybe":"可能","viewSummary":"查看摘要","scrollDown":"向下滚动","symptomProfile":"症状概况","noSymptomsAdded":"未添加症状","selected":"已选择","notExperienced":"未经历","unsure":"不确定","changeSymptom":"修改 {symptom} 的反馈","clearSession":"清除会话数据","clearSessionConfirm":"清除此旅程及其已保存的症状反馈?","sessionCleared":"会话数据已清除。","generateReport":"生成报告","overview":"概述","causes":"原因","symptoms":"症状","departmentsThatTreat":"治疗此病症的科室","riskFactors":"风险因素","prevention":"预防","diagnosis":"诊断","treatments":"治疗","noDataAvailable":"暂无数据","memberId":"会员ID","memberIdDescription":"请输入您的会员ID,或者如果您愿意可以跳过","done":"完成","idExistsWarning":"æ­¤ID已在数据库中存在,请使用其他ID。","storeSuccess":"存储结果成功","storeUnavailable":"报告已在本地生成,但云存储不可用。","selectAllSymptomsWarning":"请为所有症状选择一个选项。","maxPredictionsReached":"您已达到最大预测次数。","noMoreDiseases":"没有更多疾病可预测。","noMoreUnseenDiseases":"没有更多未看过的疾病,正在生成报告。","pleaseSelectDisease":"请选择一种疾病以查看其症状。","goBackToSelect":"返回选择疾病","reportSympifyAi":"Sympify.ai","reportMedicalReport":"医疗报告","reportDownload":"下载 PDF","reportReported":"报告人:","reportTime":"时间:","reportSymptomsDoOccur":"已发生的症状","reportSymptomsUnsureOccur":"不确定是否发生的症状","reportPredictedDiseases":"预测疾病","reportDiseaseMatches85to100":"症状匹配最强","reportDiseaseMatches70to85":"症状匹配较强","reportDiseaseMatches55to70":"症状匹配中等","reportDiseaseMatches40to55":"症状匹配有限","reportDiseaseMatchesBelow40":"症状匹配最弱","reportDoctorDiagnosedDisease":"医生诊断的疾病"}}');i["default"].use(Ie.A);const we=new Ie.A({locale:"en",fallbackLocale:"en",messages:{en:Pe,cn:Re}});var Te=we;const Ue=()=>s.e(351).then(s.bind(s,8969)),Ve=()=>s.e(799).then(s.bind(s,9625)),Ne=()=>s.e(857).then(s.bind(s,3122)),Oe=()=>s.e(347).then(s.bind(s,620)),Le=()=>s.e(347).then(s.bind(s,2198));i["default"].use(E.Ay);const Me=[{path:"/test/:device(pc|mobile)/:lang(en|cn)?",component:{render:e=>e("router-view")},children:[{path:"",name:"TestFireBase",component:Oe}]},{path:"/pc/:lang(en|cn)?",component:{render:e=>e("router-view")},children:[{path:"",name:"PcPage",component:fe},{path:"disease",name:"PcDisease",component:Ue},{path:"imaging",name:"PcImaging",component:Ve}]},{path:"/mobile/:lang(en|cn)?",component:{render:e=>e("router-view")},children:[{path:"",name:"Mobile",component:De},{path:"disease",name:"MobileDisease",component:Ue},{path:"imaging",name:"MobileImaging",component:Ve}]},{path:"/howtouse/:lang(en|cn)",name:"HowToUse",component:Le,props:!0},{path:"/report/:lang(en|cn)",name:"Report",component:Ne,props:!0},{path:"/",redirect:e=>{const t=navigator.userAgent,s=/Mobile|Android|iPhone/.test(t),i=e.query.lang||"en";return s?`/mobile/${i}`:`/pc/${i}`}},{path:"/:pathMatch(.*)*",redirect:e=>{const t=navigator.userAgent,s=/Mobile|Android|iPhone/.test(t),i=e.params.lang||"en";return s?`/mobile/${i}`:`/pc/${i}`}}],ke=new E.Ay({mode:"hash",base:"/",routes:Me,scrollBehavior(e,t,s){return s||{x:0,y:0}}});ke.beforeEach(((e,t,s)=>{const i=navigator.userAgent,a=/Mobile|Android|iPhone/.test(i),o=e.params.lang||"en",n=e.path.startsWith("/mobile")?"mobile":e.path.startsWith("/pc")?"pc":null;if(e.params.lang&&e.params.lang!==Te.locale&&(Te.locale=e.params.lang),e.params.lang)if(t.path||!e.query.diseaseName){if(n){if(a&&"pc"===n)return void s(`/mobile/${o}`);if(!a&&"mobile"===n)return void s(`/pc/${o}`)}
1e.path.startsWith("/howtouse")||e.path.startsWith("/report"),s()}else{const t=e.path.replace(/\/disease$/,"");s({path:t||`/${n}/${o}`,params:{lang:o},query:{}})}else s({path:e.path+(e.path.endsWith("/")?"":"/")+o})}));var xe=ke,Be=s(1910);function Ge(){return`case_${Date.now()}_${Math.random().toString(36).slice(2,10)}`}function $e(){const e=(new Date).toISOString();return{caseId:Ge(),createdAt:e,updatedAt:e,symptomSelections:[],predictedDiseases:[],imagingRecords:[],reportStatus:"not_started"}}i["default"].use(Be.Ay);var je=new Be.Ay.Store({state:{caseSession:$e()},getters:{activeCaseSession:e=>e.caseSession},mutations:{resetCaseSession(e){e.caseSession=$e()},setCaseSymptoms(e,t){e.caseSession.symptomSelections=Array.isArray(t)?t:[],e.caseSession.updatedAt=(new Date).toISOString()},setCasePredictions(e,t){e.caseSession.predictedDiseases=Array.isArray(t)?t:[],e.caseSession.updatedAt=(new Date).toISOString()},addCaseImagingRecord(e,t){const s=JSON.parse(JSON.stringify(t));e.caseSession.imagingRecords=[s,...e.caseSession.imagingRecords.filter((e=>
1e.id!==s.id))],e.caseSession.updatedAt=(new Date).toISOString()},setReportStatus(e,t){e.caseSession.reportStatus=t,e.caseSession.updatedAt=(new Date).toISOString()}}}),Fe=s(4927),Je=s.n(Fe),We=s(3242),He=(s(2241),s(755)),Ye=s.n(He);window.$=Ye(),i["default"].config.productionTip=!1,i["default"].use(Je()),i["default"].use(We.Ay),new i["default"]({router:xe,i18n:Te,store:je,render:e=>e(A)}).$mount("#app")},4116:function(e,t,s){"use strict";s.d(t,{Bp:function(){return p},C_:function(){return v},Dp:function(){return _},EY:function(){return g},Iu:function(){return y},JR:function(){return o},X3:function(){return A},mL:function(){return S},qC:function(){return n},ri:function(){return E}});var i=s(1173);function a(){const e="https://sympify-public-code.onrender.com/";return e?e.replace(/\/$/,""):"/api"}const o=a(),n=!1,r=i.j2,l=100;class c extends i.GI{}async function d(e,{timeoutMs:t=r,validate:s,...a}={}){try{return await(0,i.SS)(`${o}${e}`,{...a,timeoutMs:t,validate:s,headers:{Accept:"application/json",...a.body?{"Content-Type":"application/json"}:{},...a.headers||{}}})}catch(l){if(l instanceof c)throw l;if(n&&!e.startsWith("/health")&&"timeout"!==l?.type)throw new c("The disease information service is not configured for this deployment.",{type:"not_configured",status:l?.status??null,cause:l});throw new c(l.message,l)}}function m(e,t={}){const s=Object.entries(t).filter((([,e])=>void 0!==e&&null!==e&&""!==e)).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&");return s?`${e}?${s}`:e}"undefined"!==typeof console&&console.info(`[Sympify] Disease API base: ${o}`+(n?" (implicit same-origin fallback — set VUE_APP_API_BASE_URL to a hosted disease API for full functionality)":""));const p=(e="en")=>d(m("/health",{lang:e})),u=e=>e&&Array.isArray(e.results),h=e=>u(e)&&e.symptomProfile&&"object"===typeof e.symptomProfile,g=(e,t="en",s=20)=>d(m("/diseases/search",{q:e,lang:t,limit:s}),{validate:u}),_=(e="en",t=5e3)=>d(m("/symptoms",{lang:e,limit:t}),{validate:u}),y=(e,t="en")=>d(m("/symptoms/resolve",{lang:t}),{method:"POST",body:JSON.stringify({symptomTexts:e||[]}),validate:e=>e&&Array.isArray(e.results)}),f=(e,t="en")=>d(m(`/diseases/${encodeURIComponent(e)}`,{lang:t})),A=(e,t="en")=>d(m("/match-diseases",{lang:t}),{method:"POST",body:JSON.stringify(e||{}),validate:h});function E({selections:e=[],seenDiseases:t=[],seedDiseaseName:s="",currentDiseaseName:i="",viewedDiseases:a=[],minSupportingMatches:o,limit:n=10}={}){return{selections:e,seenDiseaseIds:t,rankingMode:"journey",seedDiseaseName:s,currentDiseaseName:i,viewedDiseaseIds:a,minimumEvidence:{minSupportingMatches:Number(o||{VUE_APP_VERCEL_DEPLOYMENT_ID:"dpl_HMXdn6BFmJTxNydGWKo3zSWiesqJ",VUE_APP_VERCEL_GIT_COMMIT_SHA:"e8bd2d5c475a7877f4f23b587c21fa61a4960a71",VUE_APP_VERCEL_PROJECT_ID:"prj_qMXVvc53SzGjK8rfONYsAk2OvuQQ",VUE_APP_VERCEL_GIT_REPO_ID:"1275647015",VUE_APP_VERCEL_GIT_PULL_REQUEST_ID:"",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"JalenCai",VUE_APP_VERCEL_ENV:"production",VUE_APP_VERCEL_BRANCH_URL:"sympify-public-code-git-main-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_REPO_OWNER:"JalenCai",VUE_APP_VERCEL_GIT_REPO_SLUG:"sympify_public_code",VUE_APP_API_BASE_URL:"https://sympify-public-code.onrender.com/",VUE_APP_VERCEL_GIT_PROVIDER:"github",VUE_APP_VERCEL_GIT_COMMIT_MESSAGE:"Merge pull request #18 from JalenCai/audit/source-data-semantics\n\naudit(data): source-data semantics audit + fix patient-facing percentage bands",VUE_APP_VERCEL_PROJECT_PRODUCTION_URL:"sympify.ai",VUE_APP_VERCEL_TARGET_ENV:"production",VUE_APP_VERCEL_URL:"sympify-public-code-9qv3vj6hl-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_COMMIT_REF:"main",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"Jalen Cai",VUE_APP_VERCEL_GIT_PREVIOUS_SHA:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_JOURNEY_MIN_SUPPORTING_MATCHES||2),minSpecificAcceptedMatches:1},limit:n}}const S=(e,t="en")=>A({selections:(e||[]).map((e=>({symptomId:e.SymptomId||e.symptomId,symptomIds:e.SymptomIds||e.symptomIds,symptomName:e.SymptomName||e.symptomName,userChoice:e.UserChoice||e.userChoice}))),candidateScope:"all",limit:l},t);function b(e={}){return{diseaseName:e.name||"",Rarity:e.rarity,Urgency:e.urgency,alternativeNames:e.alternativeNames||"",imageLink:e.imageLink||"",Overview:e.overview||"","Overview Link":e.overviewLink||"",Causes:e.causes,Treatments:e.treatments,Diagnosis:e.diagnosis,Prevention:e.prevention,riskFactors:e.riskFactors,departmentsThatTreatThisCondition:e.departmentsThatTreatThisCondition,Symptoms:(e.symptoms||[]).map((e=>({SymptomName:e.name||"",SymptomId:e.symptomIds?.[0]||"",SymptomIds:e.symptomIds||[],Possibility:Math.round(1e4*Number(e.possibility||0))/100+"%",shortDe
1scription:e.shortDescription||"",description:e.description||"",imageUrl:e.imageUrl||""})))}}async function v(e,t="en"){const s=await f(e,t);if(!s?.disease?.name||!Array.isArray(s.disease.symptoms))throw new c("The disease service returned incomplete details.",{type:"invalid_data"});return b(s.disease)}},1173:function(e,t,s){"use strict";s.d(t,{GI:function(){return a},Pt:function(){return o},SS:function(){return n},hh:function(){return r},j2:function(){return i}});const i=3e4;class a extends Error{constructor(e,{type:t="unknown",status:s=null,cause:i=null}={}){super(e),this.name="RequestError",this.type=t,this.status=s,this.cause=i}}async function o(e,{timeoutMs:t=i,message:s="The request took too long to complete."}={}){let o;try{return await Promise.race(["function"===typeof e?e():e,new Promise(((e,i)=>{o=setTimeout((()=>i(new a(s,{type:"timeout"}))),t)}))])}finally{clearTimeout(o)}}async function n(e,{timeoutMs:t=i,validate:s=e=>e&&"object"===typeof e,...o}={}){const n=new AbortController,r=setTimeout((()=>n.abort()),t);try{const t=await fetch(e,{...o,signal:n.signal});let i;try{i=await t.json()}catch(l){throw new a("The service returned an unreadable response.",{type:"parse",status:t.status,cause:l})}if(!t.ok)throw new a("The service could not complete the request.",{type:"http",status:t.status});if(!s(i))throw new a("The service returned an unexpected response.",{type:"invalid_data",status:t.status});return i}catch(l){if(l instanceof a)throw l;if("AbortError"===l?.name)throw new a("The request took too long to complete.",{type:"timeout",cause:l});throw new a("The service could not be reached.",{type:"network",cause:l})}finally{clearTimeout(r)}}function r(e,t="this request"){return"not_configured"===e?.type?{title:"Service not connected",message:`We could not complete ${t} because this site is not connected to its health information service yet.`,note:"A site administrator needs to connect the disease API (VUE_APP_API_BASE_URL) and redeploy. You can retry once it is connected."}:{title:"Something went wrong",message:"timeout"===e?.type?`It took too long to complete ${t}. Please try again.`:`We could not complete ${t}. Please try again.`,note:"This may be a temporary connection or service issue."}}},2476:function(e,t,s){"use strict";s.d(t,{Jf:function(){return S},Wo:function(){return A},iS:function(){return _},jc:function(){return E},jt:function(){return g},yj:function(){return b}});s(7642),s(8004),s(3853),s(5876),s(2475),s(5024),s(1698);var i=s(4427);const a="sympify.session.v1",o="sympify.journeys.v1",n=2,r=36e5,l=new Set(["yes","no","maybe"]),c=new Set(Object.values(i.EVIDENCE_ORIGIN));function d(e={}){const t=e.UserChoice||e.userChoice;if(!l.has(t))return null;const s=c.has(e.Origin)?e.Origin:"";return{SymptomName:String(e.SymptomName||e.symptomName||"").slice(0,300),SymptomId:String(e.SymptomId||e.symptomId||"").slice(0,160),SymptomIds:(e.SymptomIds||e.symptomIds||[]).filter(Boolean).map(String).slice(0,20),Possibility:String(e.Possibility||e.possibility||"").slice(0,30),UserChoice:t,shortDe
1scription:String(e.shortDescription||"").slice(0,1e3),description:String(e.description||"").slice(0,3e3),...s?{Origin:s,OriginalText:String(e.OriginalText||"").slice(0,300)}:{}}}function m(e={}){return{symptomId:String(e.symptomId||"").slice(0,160),displayName:String(e.displayName||"").slice(0,300),userChoice:l.has(e.userChoice)?e.userChoice:"yes",selectionStatus:"inferred",relationDepth:Number.isFinite(Number(e.relationDepth))?Number(e.relationDepth):0}}function p(e={}){return Object.fromEntries(Object.entries(e||{}).filter((([,e])=>l.has(e))).slice(0,500).map((([e,t])=>[String(e).slice(0,300),t])))}function u(e={}){return Object.fromEntries(Object.entries(e||{}).slice(0,100).map((([e,t])=>[String(e).slice(0,300),p(t)])))}function h(e={},t=Date.now()){const s=p(e.selectedSymptoms),i=String(e.currentDiseaseName||"").slice(0,300),a=String(e.seedDiseaseName||e.originalSearchTerm||i).slice(0,300),o=Array.from(new Set([...e.viewedDiseases||e.seenDiseases||[],i].filter(Boolean).map((e=>String(e).slice(0,300))))).slice(0,100),l=Number.isFinite(Date.parse(e.createdAt))?Date.parse(e.createdAt):t;return{schemaVersion:n,createdAt:new Date(l).toISOString(),updatedAt:new Date(t).toISOString(),savedAt:new Date(t).toISOString(),expiresAt:new Date(t+r).toISOString(),lang:"cn"===e.lang?"cn":"en",journeyId:String(e.journeyId||`journey_${t}`).slice(0,160),originalSearchTerm:String(e.originalSearchTerm||a).slice(0,300),seedDiseaseName:a,currentDiseaseName:i,viewedDiseases:o,diseaseFeedback:u(e.diseaseFeedback),currentSelections:s,symptomSelections:(e.allSymptomSelections||[]).map(d).filter(Boolean).slice(0,1e3),inferredSymptoms:(e.inferredSymptomProfile||[]).map(m).slice(0,500),predictedDiseases:(e.predictedDiseases||[]).map((e=>({diseaseName:String(e.diseaseName||"").slice(0,300),score:Number.isFinite(Number(e.score))?Number(e.score):0,description:String(e.description||"").slice(0,3e3)}))).filter((e=>e.diseaseName)).slice(0,100),seenDiseases:(e.seenDiseases||[]).filter(Boolean).map(String).slice(0,200),predictionCount:Math.max(0,Math.min(Number(e.predictionCount)||0,100))}}function g({lang:e,originalSearchTerm:t,seedDiseaseName:s}={},i=Date.now()){const a=`journey_${i}_${Math.random().toString(36).slice(2,8)}`;return _({lang:e,journeyId:a,originalSearchTerm:t||s,seedDiseaseName:s,currentDiseaseName:s,viewedDiseases:[s]})}function _(e){const t=e.createdAt||y(e.journeyId),s=h({...e,createdAt:t});localStorage.setItem(a,JSON.stringify(s));const i=A().filter((e=>e.journeyId!==s.journeyId));return localStorage.setItem(o,JSON.stringify([s,...i].slice(0,8))),s}function y(e){if(!e)return null;try{const t=JSON.parse(localStorage.getItem(o)||"[]"),s=(Array.isArray(t)?t:[]).find((t=>t&&t.journeyId===e));return s?.createdAt||null}catch(t){return null}}function f(e,t=Date.now()){if(!e||![1,n].includes(e.schemaVersion))return null;if(!e.expiresAt||Date.parse(e.expiresAt)<=t)return null;const s=Date.parse(e.updatedAt||e.savedAt),i=h({lang:e.lang,createdAt:e.createdAt||e.savedAt,journeyId:e.journeyId,originalSearchTerm:e.originalSearchTerm,seedDiseaseName:e.seedDiseaseName,currentDiseaseName:e.currentDiseaseName,viewedDiseases:e.viewedDiseases||e.seenDiseases,diseaseFeedback:e.diseaseFeedback,selectedSymptoms:e.currentSelections,allSymptomSelections:e.symptomSelections,inferredSymptomProfile:e.inferredSymptoms,predictedDiseases:e.predictedDiseases,seenDiseases:e.seenDiseases,predictionCount:e.predictionCount},Number.isFinite(s)?s:t);return i.expiresAt=e.expiresAt,i}function A(e=Date.now()){try{const t=JSON.parse(localStorage.getItem(o)||"[]");return(Array.isArray(t)?t:[]).map((t=>f(t,e))).filter(Boolean).slice(0,8)}catch(t){return console.warn("Stored Sympify journeys were invalid and have been removed.",t),localStorage.removeItem(o),[]}}function E(e,t=Date.now()){return A(t).find((t=>t.journeyId===e))||null}function S(e=Date.now()){try{const t=JSON.parse(localStorage.getItem(a)||"null"),s=f(t,e);return s||(localStorage.removeItem(a),null)}catch(t){return console.warn("Stored Sympify session data was invalid and has been removed.",t),localStorage.removeItem(a),null}}function b(){localStorage.removeItem(a),localStorage.removeItem(o)}},7412:function(e,t,s){"use strict";s.d(t,{Gg:function(){return d},IG:function(){return g},db:function(){return u},j2:function(){return h},lM:function(){return m}});var i=s(4218),a=s(139),o=s(7097),n=s(6941);function r(){return{apiKey:{VUE_APP_VERCEL_DEPLOYMENT_ID:"dpl_HMXdn6BFmJTxNydGWKo3zSWiesqJ",VUE_APP_VERCEL_GIT_COMMIT_SHA:"e8bd2d5c475a7877f4f23b587c21fa61a4960a71",VUE_APP_VERCEL_PROJECT_ID:"prj_qMXVvc53SzGjK8rfONYsAk2OvuQQ",VUE_APP_VERCEL_GIT_REPO_ID:"1275647015",VUE_APP_VERCEL_GIT_PULL_REQUEST_ID:"",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"JalenCai",VUE_APP_VERCEL_ENV:"production",VUE_APP_VERCEL_BRANCH_URL:"sympify-public-code-git-main-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_REPO_OWNER:"JalenCai",VUE_APP_VERCEL_GIT_REPO_SLUG:"sympify_public_code",VUE_APP_API_BASE_URL:"https://sympify-public-code.onrender.com/",VUE_APP_VERCEL_GIT_PROVIDER:"github",VUE_APP_VERCEL_GIT_COMMIT_MESSAGE:"Merge pull request #18 from JalenCai/audit/source-data-semantics\n\naudit(data): source-data semantics audit + fix patient-facing percentage bands",VUE_APP_VERCEL_PROJECT_PRODUCTION_URL:"sympify.ai",VUE_APP_VERCEL_TARGET_ENV:"production",VUE_APP_VERCEL_URL:"sympify-public-code-9qv3vj6hl-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_COMMIT_REF:"main",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"Jalen Cai",VUE_APP_VERCEL_GIT_PREVIOUS_SHA:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_FIREBASE_API_KEY||"",authDomain:{VUE_APP_VERCEL_DEPLOYMENT_ID:"dpl_HMXdn6BFmJTxNydGWKo3zSWiesqJ",VUE_APP_VERCEL_GIT_COMMIT_SHA:"e8bd2d5c475a7877f4f23b587c21fa61a4960a71",VUE_APP_VERCEL_PROJECT_ID:"prj_qMXVvc53SzGjK8rfONYsAk2OvuQQ",VUE_APP_VERCEL_GIT_REPO_ID:"1275647015",VUE_APP_VERCEL_GIT_PULL_REQUEST_ID:"",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"JalenCai",VUE_APP_VERCEL_ENV:"production",VUE_APP_VERCEL_BRANCH_URL:"sympify-public-code-git-main-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_REPO_OWNER:"JalenCai",VUE_APP_VERCEL_GIT_REPO_SLUG:"sympify_public_code",VUE_APP_API_BASE_URL:"https://sympify-public-code.onrender.com/",VUE_APP_VERCEL_GIT_PROVIDER:"github",VUE_APP_VERCEL_GIT_COMMIT_MESSAGE:"Merge pull request #18 from JalenCai/audit/source-data-semantics\n\naudit(data): source-data semantics audit + fix patient-facing percentage bands",VUE_APP_VERCEL_PROJECT_PRODUCTION_URL:"sympify.ai",VUE_APP_VERCEL_TARGET_ENV:"production",VUE_APP_VERCEL_URL:"sympify-public-code-9qv3vj6hl-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_COMMIT_REF:"main",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"Jalen Cai",VUE_APP_VERCEL_GIT_PREVIOUS_SHA:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_FIREBASE_AUTH_DOMAIN||"",projectId:{VUE_APP_VERCEL_DEPLOYMENT_ID:"dpl_HMXdn6BFmJTxNydGWKo3zSWiesqJ",VUE_APP_VERCEL_GIT_COMMIT_SHA:"e8bd2d5c475a7877f4f23b587c21fa61a4960a71",VUE_APP_VERCEL_PROJECT_ID:"prj_qMXVvc53SzGjK8rfONYsAk2OvuQQ",VUE_APP_VERCEL_GIT_REPO_ID:"1275647015",VUE_APP_VERCEL_GIT_PULL_REQUEST_ID:"",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"JalenCai",VUE_APP_VERCEL_ENV:"production",VUE_APP_VERCEL_BRANCH_URL:"sympify-public-code-git-main-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_REPO_OWNER:"JalenCai",VUE_APP_VERCEL_GIT_REPO_SLUG:"sympify_public_code",VUE_APP_API_BASE_URL:"https://sympify-public-code.onrender.com/",VUE_APP_VERCEL_GIT_PROVIDER:"github",VUE_APP_VERCEL_GIT_COMMIT_MESSAGE:"Merge pull request #18 from JalenCai/audit/source-data-semantics\n\naudit(data): source-data semantics audit + fix patient-facing percentage bands",VUE_APP_VERCEL_PROJECT_PRODUCTION_URL:"sympify.ai",VUE_APP_VERCEL_TARGET_ENV:"production",VUE_APP_VERCEL_URL:"sympify-public-code-9qv3vj6hl-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_COMMIT_REF:"main",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"Jalen Cai",VUE_APP_VERCEL_GIT_PREVIOUS_SHA:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_FIREBASE_PROJECT_ID||"",storageBucket:{VUE_APP_VERCEL_DEPLOYMENT_ID:"dpl_HMXdn6BFmJTxNydGWKo3zSWiesqJ",VUE_APP_VERCEL_GIT_COMMIT_SHA:"e8bd2d5c475a7877f4f23b587c21fa61a4960a71",VUE_APP_VERCEL_PROJECT_ID:"prj_qMXVvc53SzGjK8rfONYsAk2OvuQQ",VUE_APP_VERCEL_GIT_REPO_ID:"1275647015",VUE_APP_VERCEL_GIT_PULL_REQUEST_ID:"",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"JalenCai",VUE_APP_VERCEL_ENV:"production",VUE_APP_VERCEL_BRANCH_URL:"sympify-public-code-git-main-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_REPO_OWNER:"JalenCai",VUE_APP_VERCEL_GIT_REPO_SLUG:"sympify_public_code",VUE_APP_API_BASE_URL:"https://sympify-public-code.onrender.com/",VUE_APP_VERCEL_GIT_PROVIDER:"github",VUE_APP_VERCEL_GIT_COMMIT_MESSAGE:"Merge pull request #18 from JalenCai/audit/source-data-semantics\n\naudit(data): source-data semantics audit + fix patient-facing percentage bands",VUE_APP_VERCEL_PROJECT_PRODUCTION_URL:"sympify.ai",VUE_APP_VERCEL_TARGET_ENV:"production",VUE_APP_VERCEL_URL:"sympify-public-code-9qv3vj6hl-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_COMMIT_REF:"main",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"Jalen Cai",VUE_APP_VERCEL_GIT_PREVIOUS_SHA:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_FIREBASE_STORAGE_BUCKET||"",messagingSenderId:{VUE_APP_VERCEL_DEPLOYMENT_ID:"dpl_HMXdn6BFmJTxNydGWKo3zSWiesqJ",VUE_APP_VERCEL_GIT_COMMIT_SHA:"e8bd2d5c475a7877f4f23b587c21fa61a4960a71",VUE_APP_VERCEL_PROJECT_ID:"prj_qMXVvc53SzGjK8rfONYsAk2OvuQQ",VUE_APP_VERCEL_GIT_REPO_ID:"1275647015",VUE_APP_VERCEL_GIT_PULL_REQUEST_ID:"",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"JalenCai",VUE_APP_VERCEL_ENV:"production",VUE_APP_VERCEL_BRANCH_URL:"sympify-public-code-git-main-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_REPO_OWNER:"JalenCai",VUE_APP_VERCEL_GIT_REPO_SLUG:"sympify_public_code",VUE_APP_API_BASE_URL:"https://sympify-public-code.onrender.com/",VUE_APP_VERCEL_GIT_PROVIDER:"github",VUE_APP_VERCEL_GIT_COMMIT_MESSAGE:"Merge pull request #18 from JalenCai/audit/source-data-semantics\n\naudit(data): source-data semantics audit + fix patient-facing percentage bands",VUE_APP_VERCEL_PROJECT_PRODUCTION_URL:"sympify.ai",VUE_APP_VERCEL_TARGET_ENV:"production",VUE_APP_VERCEL_URL:"sympify-public-code-9qv3vj6hl-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_COMMIT_REF:"main",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"Jalen Cai",VUE_APP_VERCEL_GIT_PREVIOUS_SHA:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_FIREBASE_MESSAGING_SENDER_ID||"",appId:{VUE_APP_VERCEL_DEPLOYMENT_ID:"dpl_HMXdn6BFmJTxNydGWKo3zSWiesqJ",VUE_APP_VERCEL_GIT_COMMIT_SHA:"e8bd2d5c475a7877f4f23b587c21fa61a4960a71",VUE_APP_VERCEL_PROJECT_ID:"prj_qMXVvc53SzGjK8rfONYsAk2OvuQQ",VUE_APP_VERCEL_GIT_REPO_ID:"1275647015",VUE_APP_VERCEL_GIT_PULL_REQUEST_ID:"",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"JalenCai",VUE_APP_VERCEL_ENV:"production",VUE_APP_VERCEL_BRANCH_URL:"sympify-public-code-git-main-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_REPO_OWNER:"JalenCai",VUE_APP_VERCEL_GIT_REPO_SLUG:"sympify_public_code",VUE_APP_API_BASE_URL:"https://sympify-public-code.onrender.com/",VUE_APP_VERCEL_GIT_PROVIDER:"github",VUE_APP_VERCEL_GIT_COMMIT_MESSAGE:"Merge pull request #18 from JalenCai/audit/source-data-semantics\n\naudit(data): source-data semantics audit + fix patient-facing percentage bands",VUE_APP_VERCEL_PROJECT_PRODUCTION_URL:"sympify.ai",VUE_APP_VERCEL_TARGET_ENV:"production",VUE_APP_VERCEL_URL:"sympify-public-code-9qv3vj6hl-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_COMMIT_REF:"main",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"Jalen Cai",VUE_APP_VERCEL_GIT_PREVIOUS_SHA:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_FIREBASE_APP_ID||"",measurementId:{VUE_APP_VERCEL_DEPLOYMENT_ID:"dpl_HMXdn6BFmJTxNydGWKo3zSWiesqJ",VUE_APP_VERCEL_GIT_COMMIT_SHA:"e8bd2d5c475a7877f4f23b587c21fa61a4960a71",VUE_APP_VERCEL_PROJECT_ID:"prj_qMXVvc53SzGjK8rfONYsAk2OvuQQ",VUE_APP_VERCEL_GIT_REPO_ID:"1275647015",VUE_APP_VERCEL_GIT_PULL_REQUEST_ID:"",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"JalenCai",VUE_APP_VERCEL_ENV:"production",VUE_APP_VERCEL_BRANCH_URL:"sympify-public-code-git-main-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_REPO_OWNER:"JalenCai",VUE_APP_VERCEL_GIT_REPO_SLUG:"sympify_public_code",VUE_APP_API_BASE_URL:"https://sympify-public-code.onrender.com/",VUE_APP_VERCEL_GIT_PROVIDER:"github",VUE_APP_VERCEL_GIT_COMMIT_MESSAGE:"Merge pull request #18 from JalenCai/audit/source-data-semantics\n\naudit(data): source-data semantics audit + fix patient-facing percentage bands",VUE_APP_VERCEL_PROJECT_PRODUCTION_URL:"sympify.ai",VUE_APP_VERCEL_TARGET_ENV:"production",VUE_APP_VERCEL_URL:"sympify-public-code-9qv3vj6hl-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_COMMIT_REF:"main",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"Jalen Cai",VUE_APP_VERCEL_GIT_PREVIOUS_SHA:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_FIREBASE_MEASUREMENT_ID||""}}const l=["apiKey","authDomain","projectId","storageBucket","appId"],c=r(),d=l.every((e=>c[e])),m="true"==={VUE_APP_VERCEL_DEPLOYMENT_ID:"dpl_HMXdn6BFmJTxNydGWKo3zSWiesqJ",VUE_APP_VERCEL_GIT_COMMIT_SHA:"e8bd2d5c475a7877f4f23b587c21fa61a4960a71",VUE_APP_VERCEL_PROJECT_ID:"prj_qMXVvc53SzGjK8rfONYsAk2OvuQQ",VUE_APP_VERCEL_GIT_REPO_ID:"1275647015",VUE_APP_VERCEL_GIT_PULL_REQUEST_ID:"",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_LOGIN:"JalenCai",VUE_APP_VERCEL_ENV:"production",VUE_APP_VERCEL_BRANCH_URL:"sympify-public-code-git-main-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_REPO_OWNER:"JalenCai",VUE_APP_VERCEL_GIT_REPO_SLUG:"sympify_public_code",VUE_APP_API_BASE_URL:"https://sympify-public-code.onrender.com/",VUE_APP_VERCEL_GIT_PROVIDER:"github",VUE_APP_VERCEL_GIT_COMMIT_MESSAGE:"Merge pull request #18 from JalenCai/audit/source-data-semantics\n\naudit(data): source-data semantics audit + fix patient-facing percentage bands",VUE_APP_VERCEL_PROJECT_PRODUCTION_URL:"sympify.ai",VUE_APP_VERCEL_TARGET_ENV:"production",VUE_APP_VERCEL_URL:"sympify-public-code-9qv3vj6hl-jalen-cai-s-projects.vercel.app",VUE_APP_VERCEL_GIT_COMMIT_REF:"main",VUE_APP_VERCEL_GIT_COMMIT_AUTHOR_NAME:"Jalen Cai",VUE_APP_VERCEL_GIT_PREVIOUS_SHA:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_ENABLE_CLOUD_IMAGING&&d,p=d?(0,i.Wp)(c):null,u=p?(0,a.aU)(p):null,h=p?(0,o.xI)(p):null,g=p?(0,n.c7)(p):null},4290:function(e,t,s){"use strict";s.d(t,{Nc:function(){return p},Qz:function(){return y},R1:function(){return b},Ru:function(){return C},Vz:function(){return S},a3:function(){return v},cm:function(){return E},eP:function(){return D},wF:function(){return f},zk:function(){return I}});s(4114),s(7642),s(8004),s(3853),s(5876),s(2475),s(5024),s(1698);const i=new Set(["a","an","and","are","as","by","for","from","in","into","is","of","on","or","such","that","the","to","with","without"]),a=[[/shortness of breath/g,"short breath"],[/difficulty breathing/g,"short breath"],[/trouble breathing/g,"short breath"],[/hard time breathing/g,"short breath"],[/breathlessness/g,"short breath"],[/runny nose/g,"runny nose"],[/stuffy nose/g,"nasal congestion"],[/blocked nose/g,"nasal congestion"],[/sore throat/g,"sore throat"],[/chest pain/g,"chest pain"],[/abdominal pain/g,"abdominal pain"],[/belly pain/g,"abdominal pain"],[/stomach pain/g,"abdominal pain"],[/joint pain/g,"joint pain"],[/muscle pain/g,"muscle pain"],[/body aches/g,"muscle pain"],[/body ache/g,"muscle pain"],[/back pain/g,"back pain"],[/weight loss/g,"weight loss"],[/loss of appetite/g,"appetite loss"],[/appetite loss/g,"appetite loss"],[/blurred vision/g,"blurred vision"],[/blurry vision/g,"blurred vision"],[/double vision/g,"double vision"],[/frequent urination/g,"frequent urination"],[/painful urination/g,"painful urination"],[/burning urination/g,"painful urination"],[/rapid heartbeat/g,"palpitations"],[/irregular heartbeat/g,"palpitations"]],o=new Map([["itchiness","itch"],["itching","itch"],["itchy","itch"],["pruritus","itch"],["aches","ache"],["aching","ache"],["tiredness","fatigue"],["tired","fatigue"],["exhaustion","fatigue"],["exhausted","fatigue"],["breathless","breath"],["breathing","breath"],["breathlessness","breath"],["nauseous","nausea"],["vomiting","vomit"],["throwing","vomit"],["diarrhoea","diarrhea"],["dizzy","dizziness"],["fainting","faint"],["fainted","faint"],["swollen","swelling"],["inflamed","inflammation"],["rashes","rash"],["congested","congestion"],["palpitation","palpitations"],["seizure","seizures"],["convulsion","seizures"],["convulsions","seizures"],["urinating","urination"],["urinat
1e","urination"]]),n="__symptomIdsPrecomputed";function r(e){const t=o.get(e);return t||(e.length>5&&e.endsWith("ies")?`${e.slice(0,-3)}y`:e.length>5&&e.endsWith("ing")?e.slice(0,-3):e.length>4&&e.endsWith("ed")?e.slice(0,-2):e.length>4&&e.endsWith("s")&&!e.endsWith("ss")?e.slice(0,-1):e)}function l(e){let t=String(e||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/&/g," and ");a.forEach((([e,s])=>{t=t.replace(e,s)}));const s=t.replace(/[^a-z0-9]+/g," ").trim().split(/\s+/).filter(Boolean).map(r);return s.join(" ")}function c(e){return String(e||"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")}function d(){const e=new Map,t=new Map,s=new Map,i=new Map;return{conceptById:e,aliasToConceptIds:t,legacyIdToConceptId:s,outgoingRelations:i}}const m=d();function p(e){m.conceptById.clear(),m.aliasToConceptIds.clear(),m.legacyIdToConceptId.clear(),(e||[]).forEach((e=>{const t=e.id||e.symptomId;if(!t)return;m.conceptById.set(t,e);const s=[e.canonicalName,e.displayName,...e.aliases||[]];s.filter(Boolean).forEach((e=>{const s=l(e);if(!s)return;const i=m.aliasToConceptIds.get(s)||[];m.aliasToConceptIds.set(s,Array.from(new Set([...i,t])))}))}))}function u(e){if(!e)return"";const t=String(e).trim(),s=t.toUpperCase();if(m.conceptById.has(t))return t;if(m.conceptById.has(s))return s;const i=c(t);return m.legacyIdToConceptId.get(i)||i}function h(e){if(!e)return[];const t=[e.SymptomId,e.symptomId,e.CanonicalSymptomId,e.canonicalSymptomId,...Array.isArray(e.SymptomIds)?e.SymptomIds:[],...Array.isArray(e.symptomIds)?e.symptomIds:[]];return t.filter(Boolean).map(u)}function g(e){const t=l(e);return t&&m.aliasToConceptIds.get(t)||[]}function _(e){const t=l(e).split(" ").filter((e=>e&&!i.has(e)));return t.length?`symptom_${t.slice(0,10).join("_")}`:""}function y(e){if(e&&e[n]&&Array.isArray(e.SymptomIds))return e.SymptomIds.filter(Boolean).map(u);const t=e&&(e.SymptomName||e.symptomName||e.name),s=[...h(e),...g(t),_(t)].filter(Boolean);return Array.from(new Set(s))}function f(e){let t=0,s=0;return Object.values(e||{}).forEach((e=>{Array.isArray(e?.Symptoms)&&(t++,e.Symptoms.forEach((e=>{const t=y(e);e.SymptomId=t[0]||"",e.SymptomIds=t,s++,Object.defineProperty(e,n,{value:!0,enumerable:!1,configurable:!0})})))})),{diseaseCount:t,symptomCount:s}}function A(e){return y(e)[0]||""}function E(e,t){const s=y(e);return{SymptomName:e.SymptomName,SymptomId:s[0]||"",SymptomIds:s,Possibility:e.Possibility,UserChoice:t,shortDe
1scription:e.shortDescription||"",description:e.description||e.Description||"",imageUrl:e.imageUrl||e.ImageUrl||e.imageURL||""}}function S(e){if(!e)return e;const t=y(e);return{...e,SymptomId:e.SymptomId||t[0]||"",SymptomIds:Array.from(new Set([...e.SymptomIds||[],...t].filter(Boolean)))}}function b(e,t){const s=y(e),i=y(t);return s.length&&i.length?s.some((e=>i.includes(e))):e&&t&&e.SymptomName===t.SymptomName}function v(e,t){for(const s of e||[])if(Object.assign(s,S(s)),b(s,t))return s}function C(e){return(e||[]).reduce(((e,t)=>{const s=S(t),i=e.find((e=>b(e,s)));return i?(i.UserChoice=s.UserChoice,i.Possibility=s.Possibility,i.SymptomIds=Array.from(new Set([...i.SymptomIds||[],...s.SymptomIds||[]])),!i.Origin&&s.Origin&&(i.Origin=s.Origin,i.OriginalText=s.OriginalText)):e.push(s),e}),[])}function D(e,t){const s={SymptomName:t};return(e||[]).filter((e=>!b(e,s)))}function I(e){return A(e)||e&&e.SymptomName||""}},1943:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABTSURBVHgBrZLBCQAgDAODk2T/pRxFQXyIWhuCBX3Yu2JLAaDOQ+TBhR9XE2Ru7PFAQWKaUArfgFSKZLX/Qw6lgk9BGF8ljOG8gDCXVo0Ye+WsJe+GIUY7tgPEKwAAAABJRU5ErkJggg=="},6510:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHRSURBVHgB7VVLUsJAEO1OUpblCm+QjYXu8AR6A1kgsgNPIDcYggdQTgAs+VSJJyCeQFyhrPAEZqEusJi2EyD80oTCra+Kaph5/ehMv+kgCFC5vo1kVonoPJqBngaq3DaTJUnDkDZAmw+ysA9KcLJSmb7IsTYkp4Iw+j50Oqfe6m4pO7gjoCIaxhn/dKMU5MqniBKe/rkXkxovLoG0fkJ+AD9KHAt2hNM+cUE4jlA8cIU2bwghNS+LEtNvw0Wyyr6VAPEMYoAEPRp9OVZgN2BX0DqJ3XIfCmdei37gxThtX+qc9g48a2Y3A400aAibpH8+X8oLzUTTuGAu87AIGnuiMmpbA9S4H4XwzFXj6BG2AQur1pHYRD7md9ATn+zslm3wLx6JeUNz/cImImmyV9dU+jkB+/vppcWxmfKNzmArAtTZNnnucBXiMZw5xb98nNNl+9pLjIkwFwMdq9xMFtRl30XYfPP4BnswokqooY08y9h8Y3oItOR7RHRVO1kPjsVpndQ41GAHIEKn1Dx2ovbEhqqrQdf/wB8gT8WNb6HtEGvFwBGRwERMqlw5ErqEXP3ewQeP2rV9mo5RRBKHmFg5meNrDvL047c/T8miahyLA+8XdGu42bOnyekAAAAASUVORK5CYII="},5816:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAYAAAAvxDzwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAoSURBVHgB7dFBDQAACMPABv8eJwUQwWMJu6QKCqCtj1IRlnL5A+/LA81VOwtoG9gxAAAAAElFTkSuQmCC"},1870:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAASCAYAAACEnoQPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGJSURBVHgBlZNBUsIwFEB/SIRtOQE9AtzAvRbaA0jtxsKwEE4gngBYOB1WETwAWMZxCycAb8ARcCeQpv4UdQALlD/TSZPOS97/+SXwEx4f6ABMh6Mh5lXHmv/OSAT2/GdCiA2JImxXysVGBHt9/5YA4QQXCYPhUSwgl2EITYKPaxuPLDpRwti1N7udiEn3ZWSGAHk1YdtfnvhbnjFZisVE+OE6xSGCCwhB+wczKh9Qy4xjCYU2Djtp7cBu2bDgjEiknRai4zjWIjIQ5BWozCXSVjl+AfRA5arsnOv22doef9dTdH2v3mUQdFSzHNTeVlUgUDGV2FPYVRqh1OR8UIjV3lcFJnTlD4EopCCtSSqnq4uLUiLt6o0xxiGLp2nLlKyrNSLlrvapWFHGcTDRon5nFycp7NMFGmlJYBmwRiYQ2YptdKJssAIzLILp8VET5+M4qOpE2thlorXcXFCUXvRLdvt+KwRSP3RigIWqOdasy31TAJ3XnKvZH6xCXQfNrHP74HoZfCowbtNvJ+arsLVQeUMAAAAASUVORK5CYII="},9256:function(e,t,s){"use strict";e.exports=s.p+"img/disease.d7807d43.png"},3406:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAG1SURBVHgBrZRNUsJAEIVfD5QuxY1bcwPxBBJZssCAcUtxAzwB8QTiCYCVVSIGDoDBE4g3iDfAnUWRGXsgWAFDjD+vKjUzncmX7umeJmzIdb3cLECBCDkkiCT8bBa+ZZn+mj266LujBpuaCsmwqJRUV3a16HwBsmf5AOo5XI4Jyk8EgQweCov5nEzbNsd6nl1tkEBtuVG1bKt4iRTqu941728wpaydWAMiDJOUmIQeGwmsKZ/dNJDyRQiCiBxRNm53z/UKHL6XAESv55lKx7WhWCAbJwE/2J4cf84ZzkgYqYA6HB6O8Y3u+iOkAurzYw/bPDWidi4n/pHsctJa2KJY4JxBXDaFTTstHjFAgmKBtmWO2663f7Aj9zbflUqnr/gpUCsnRO19hhwJ4VfKJ12klIgz3rveWSCDFhetI2XQ6T08lvEX4LllDqRUdQI5fGoNu3I6REptDfmiWuzgFxL4Z0WBupjBfTCPlMoIcaRHGX6rFe02Q66zhu4enJQ8z/0kGBe5ocJazSjVWdnXG+zQa3LDdJBe7Bk5nMSbWKDWLV+73Yw6lHMykkgCavpG9FRf3vtPfQDPyJ2Hfgz+WgAAAABJRU5ErkJggg=="},1814:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAI/SURBVHgBlVRNbtpAFH5vZhK6pCeIe4KSG5BllSaFfVKwVCVFXbQ3aHqCwq
1KCVpUMSfemWFGX0BMEToBzA5ZROzOvb2yZYONE6pOA4c3z933vzwiPWD8IPQDlufMT0HPfb64eisWiIwjC6p1QHxChxX+9/C3FKMTF+cnL0aNAX4LrmpQ2TAAIZiBgLK2NaQdX1mCN/Q321x0gGXPQ8ZvxFlA/+OWB1DdItBII7bPXx7+hxL4xmRU2JISqNeLgnX84zwENLqMlEAHZeyYHjkq/SpLS+mfOL/QUkKBizL6rnUguLiftJB2BjSz4azBpoNQMDt3kI9WNS93ddfwXMQnwWYf3R6j3zidSWfjR1eTt6dFinYNyPoorRj8lo54x+UoK+zm77pwezfjBGSG1EyDXpVQNjDdrYTX1XJpOtlPAXZxzKl6hZGOn6vuP6z11p1SN2UAQzTcjOv7xMDu7NC1AHSFPhkC3xN/WGk+sFRBVocS4CSFJDJlszi3/lFMNuB5QBVrHXEiWJLwyIDQ0Qgnds9b2OLDC5+53x5hFxrocjKIp/KcNrqLpYDRZunPaNYQhw9f7QVTfCh5FXZde0Z+MArm6iYs10K7WPXbGKClIF3VDvqWZAOpu+txAJqvE43HeSvcONxmEtFPuxMoY2cxGv2j9q6jOhQ+40VUwej8bYCwypaN/v7SkYcGKqqRwD7KlZSXG5smwlDWYtFHwZGPxNcLpEwx3re4V302lQJm5qf9bkUmLhZXxm5PD24di/wEAvhuXDm2kqQAAAABJRU5ErkJggg=="},3021:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADVSURBVHgB5ZPtEYIwDIZfOAdgA3EDN7AbyAaygTKBOIFuVJ2EbqAbaHKXXjksbUU9f/jePbQXkvQjKfADVcSV6IgN3tSJuA9oMUEloSUB72wpdGLT4pOkUKBvoaB2cEc7Bvz2SLiCVhy4ABXiqsXXu7iCO0aJdJVw16PYkPd+2F0apIt9DzKf82cWCfBV80w0xM0XkGNcfI+KKHo2ntfEeiwolNAm4sovhAYR5fiw/jChbRsjIxcgk/lKRhWxbWV8aiP76KegbZJskJT7q8BrMsQF39ID/c9BGI54VxYAAAAASUVORK5CYII="},1848:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJwSURBVHgBtVVdbtpAEJ71WqGPuUHNDeAG5rGKSMtz2xBLVRuUh/QGJTcoDxVpVckh6TuoKOoj5gQhJ8C9QR6betfTGXtxoIANov0k27venflmdn4W4D9D5C36fn//wbabNHQBoUJfxyyFNA+FFJdxFI1bXiPcioAV/7Ls97R6Rhv2oQCo4bzl1dsbEXT9H46QapRZixCwpRJE8ObVwU/+9cnvVyyQFfr/nKYvDE2IWtf+9kasVY4YWgKO3x4djiEHiYxFMoINWiaxFtiMcoEwKcW6WqSc0fKehaVYVVmGNJCBcsRHvETQ7Q3bM8v3YlXzvMY9bAjeyzIceCb5bdlnmdGZm1JNeYxalddlxcXVcMpBOTk6LK9a714PXfJkhAD3T0gPE6ceyMg1ewZ5KUe602cNWq/rAZkccOaZ9AY7cUOIJgsKFAPIwUmzXoYCIGJPgOC6cWnasYxlDn9UHN3BrtA6MFRcmFmQHX6deo1JnizH4OLq+zRvz+MRC4ffNmwHp6C7LGHmQcivr99unsKO+OLfVNIRhhkB2ZQcjQZ0YUdoqVMCFGFGgJRayVfjMewIC5L+REaLy3ROKCnV4+Kgv27XH7prpblSMXV9Fbhg0TS/OI7GKZHB5+vhB0Ro89mVtK5u0yoYyd0h7VtIe1n7XbN+nnnA2FOqM9dLFhrWJspZBkwvmylfIGCLMbaThkUxqTxIedv1+06Rcu4/bDnLsHKMdW1+ffWFk/X3ZMeAWslACXF3+vJgku4hYild02LcZJ9RnnvhzOMxJvng5LAQPlK77qyKW25ZsjcAkSvsxFIaz136XDuU3pyB2ybEP8UfFLsroHJn5AgAAAAASUVORK5CYII="},6824:function(e,t,s){"use strict";e.exports=s.p+"img/lang.1920ced3.png"},3048:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAF3SURBVHgBzVRLTsMwFByHNmWZI/QIHAFuwA0SJCjd4S5BoDRCLcuYHWo34QTACRA3yRGygIqmH/OeIMVN0yaiSDBSfvbzaN5MbOA/QUrfyY9Z2AIjNPwT2dszxwR+iLa83p/BeiCCxEJ6cKeCGFUVtuVN0zPa8+ibyFwiczRdU9TdbK5WhXCOmVtDnV8DvkXqPKbHUUv2HSFmj8Pw6j6rLVX4abzlCQjp5UJIIToDg6wS4RvsLqCb3F4ddmjOfSldgtik7BUNZUG7uSUqxTiIVJAUrRNFRCPYksw+Y1UoRqwF1I5On7J0M6y0nGDXmUNTvUjWkIGT1Vo771xepjADB2DTj0vLZY4smiDtVG45j2PZj7591GqgLjub6ldabku/aX5PMWY/WU2cYhKgBEuEtC89Dds3x7g1QcrI12hdmyYWO6Ule11Olg0/lT3yIg2yBEnZLdYnvoSFh7w/behnDe1AiMNhePGCbcFHEYUQ4jfhFRyaf4oPBAWOAlA0rigAAAAASUVORK5CYII="},4427:function(e){const t=Object.freeze({EXACT:"exact_resolution",ALIAS:"alias_resolution",USER_CONFIRMED_SUGGESTION:"user_confirmed_suggestion",FALLBACK_RAW:"fallback_raw_wording"}),s=Object.freeze([t.EXACT,t.ALIAS]),i=Object.freeze({IDLE:"idle",EMPTY:"empty",RESOLVED:"resolved",CONFIRM:"confirm",BLOCKED:"blocked",NO_MATCH:"no_match"});function a(e){if(!e)return{state:i.IDLE};const s=String(e.rawText||"");if(!String(e.normalizedText||"").trim())return{state:i.EMPTY,rawText:s};const a=Array.isArray(e.confusableCandidates)?e.confusableCandidates:[],o=Array.isArray(e.suggestions)?e.suggestions:[];return"resolved"===e.status&&e.symptomId?{state:i.RESOLVED,rawText:s,symptomId:e.symptomId,displayName:e.displayName||s,origin:"alias"===e.resolutionKind?t.ALIAS:t.EXACT,blocked:a}:"suggested"===e.status&&o.length?{state:i.CONFIRM,rawText:s,ambiguous:o.length>1,suggestions:o,blocked:a,fallbackSymptomId:e.fallbackSymptomId||""}:a.length?{state:i.BLOCKED,rawText:s,blocked:a,fallbackSymptomId:e.fallbackSymptomId||""}:{state:i.NO_MATCH,rawText:s,fallbackSymptomId:e.fallbackSymptomId||""}}function o({name:e,symptomId:t,userChoice:s,origin:i,rawText:a}){const o=t||"";return{SymptomName:e,SymptomId:o,SymptomIds:o?[o]:[],UserChoice:s,Possibility:void 0,shortDescription:"",description:"",imageUrl:"",Origin:i,OriginalText:a}}
1function n(e,t="yes"){return e&&e.state===i.RESOLVED?o({name:e.displayName,symptomId:e.symptomId,userChoice:t,origin:e.origin,rawText:e.rawText}):null}function r(e,s,a="yes"){if(!e||e.state!==i.CONFIRM)return null;if(!s||!s.symptomId)return null;const n=(e.suggestions||[]).some((e=>e.symptomId===s.symptomId));return n?(e.blocked||[]).some((e=>e.symptomId===s.symptomId))?null:o({name:s.displayName||e.rawText,symptomId:s.symptomId,userChoice:a,origin:t.USER_CONFIRMED_SUGGESTION,rawText:e.rawText}):null}function l(e,s="yes"){if(!e)return null;const a=[i.CONFIRM,i.BLOCKED,i.NO_MATCH];return a.includes(e.state)&&String(e.rawText||"").trim()?o({name:e.rawText,symptomId:e.fallbackSymptomId||"",userChoice:s,origin:t.FALLBACK_RAW,rawText:e.rawText}):null}function c(){return null}function d(e){return s.includes(e&&e.Origin)}function m(e){const s={[t.EXACT]:0,[t.ALIAS]:0,[t.USER_CONFIRMED_SUGGESTION]:0,[t.FALLBACK_RAW]:0,unlabelled:0};for(const t of e||[]){const e=t&&t.Origin;e&&Object.prototype.hasOwnProperty.call(s,e)?s[e]+=1:s.unlabelled+=1}return s}e.exports={EVIDENCE_ORIGIN:t,AUTHORITATIVE_ORIGINS:s,FLOW_STATE:i,toFlowState:a,acceptResolved:n,acceptSuggestion:r,keepOwnWording:l,dismissSuggestion:c,isAuthoritative:d,summariseOrigins:m}}},t={};function s(i){var a=t[i];if(void 0!==a)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,s),o.loaded=!0,o.exports}s.m=e,function(){s.amdO={}}(),function(){var e=[];s.O=function(t,i,a,o){if(!i){var n=1/0;for(d=0;d<e.length;d++){i=e[d][0],a=e[d][1],o=e[d][2];for(var r=!0,l=0;l<i.length;l++)(!1&o||n>=o)&&Object.keys(s.O).every((function(e){return s.O[e](i[l])}))?i.splice(l--,1):(r=!1,o<n&&(n=o));if(r){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[i,a,o]}}(),function(){s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};s.t=function(i,a){if(1&a&&(i=this(i)),8&a)return i;if("object"===typeof i&&i){if(4&a&&i.__esModule)return i;if(16&a&&"function"===typeof i.then)return i}var o=Object.create(null);s.r(o);var n={};e=e||[null,t({}),t([]),t(t)];for(var r=2&a&&i;"object"==typeof r&&!~e.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((function(e){n[e]=function(){return i[e]}}));return n["default"]=function(){return i},s.d(o,n),o}}(),function(){s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,i){return s.f[i](e,t),t}),[]))}}(),function(){s.u=function(e){return"js/"+({347:"secondary",351:"disease",799:"imaging",857:"report"}[e]||e)+"."+{67:"25f73f3d",347:"4a9102db",351:"170f9f06",461:"8d34e7c4",515:"67148310",665:"6588d1da",799:"3cacdb0b",857:"52e803a6"}[e]+".js"}}(),function(){s.miniCssF=function(e){return"css/"+{347:"secondary",351:"disease",799:"imaging",857:"report"}[e]+"."+{347:"c0d8a84a",351:"e067ccec",799:"1db52e92",857:"c95e4ed7"}[e]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="sympifyfuture:";s.l=function(i,a,o,n){if(e[i])e[i].push(a);else{var r,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var m=c[d];if(m.getAttribute("src")==i||m.getAttribute("data-webpack")==t+o){r=m;break}}r||(l=!0,r=document.createElement("script"),r.charset="utf-8",r.timeout=120,s.nc&&r.setAttribute("nonce",s.nc),r.setAttribute("data-webpack",t+o),r.src=i),e[i]=[a];var p=function(t,s){r.onerror=r.onload=null,clearTimeout(u);var a=e[i];if(delete e[i],r.parentNode&&r.parentNode.removeChild(r),a&&a.forEach((function(e){return e(s)})),t)return t(s)},u=setTimeout(p.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=p.bind(null,r.onerror),r.onload=p.bind(null,r.onload),l&&document.head.appendChild(r)}}}(),function(){s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){s.p="/"}(),function(){if("undefined"!==typeof document){var e=function(e,t,i,a,o){var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",s.nc&&(n.nonce=s.nc);var r=function(s){if(n.onerror=n.onload=null,"load"===s.type)a();else{var i=s&&s.type,r=s&&s.target&&s.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+i+": "+r+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=r,n.parentNode&&n.parentNode.removeChild(n),o(l)}};return n.onerror=n.onload=r,n.href=t,i?i.parentNode.insertBefore(n,i.nextSibling):document.head.appendChild(n),n},t=function(e,t){for(var s=document.getElementsByTagName("link"),i=0;i<s.length;i++){var a=s[i],o=a.getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var n=document.getElementsByTagName("style");for(i=0;i<n.length;i++){a=n[i],o=a.getAttribute("data-href");if(o===e||o===t)return a}},i=function(i){return new Promise((function(a,o){var n=s.miniCssF(i),r=s.p+n;if(t(n,r))return a();e(i,r,null,a,o)}))},a={524:0};s.f.miniCss=function(e,t){var s={347:1,351:1,799:1,857:1};a[e]?t.push(a[e]):0!==a[e]&&s[e]&&t.push(a[e]=i(e).then((function(){a[e]=0}),(function(t){throw delete a[e],t})))}}}(),function(){var e={524:0};s.f.j=function(t,i){var a=s.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var o=new Promise((function(s,i){a=e[t]=[s,i]}));i.push(a[2]=o);var n=s.p+s.u(t),r=new Error,l=function(i){if(s.o(e,t)&&(a=e[t],0!==a&&(e[t]=void 0),a)){var o=i&&("load"===i.type?"missing":i.type),n=i&&i.target&&i.target.src;r.message="Loading chunk "+t+" failed.\n("+o+": "+n+")",r.name="ChunkLoadError",r.type=o,r.request=n,a[1](r)}};s.l(n,l,"chunk-"+t,t)}},s.O.j=function(t){return 0===e[t]};var t=function(t,i){var a,o,n=i[0],r=i[1],l=i[2],c=0;if(n.some((function(t){return 0!==e[t]}))){for(a in r)s.o(r,a)&&(s.m[a]=r[a]);if(l)var d=l(s)}for(t&&t(i);c<n.length;c++)o=n[c],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return s.O(d)},i=self["webpackChunksympifyfuture"]=self["webpackChunksympifyfuture"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))}();var i=s.O(void 0,[504],(function(){return s(9279)}));i=s.O(i)})();
2//# sourceMappingURL=app.10f27784.js.map

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.