@glycanage/web-components 1.158.2 → 1.160.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Arrow2.js +1 -1
- package/dist/action-steps-three.wc.js +1 -1
- package/dist/arrow-graph-three.wc.js +1 -1
- package/dist/helpers.js +1 -1
- package/dist/over-time-indexes.wc.js +1 -1
- package/dist/over-time.wc.js +1 -1
- package/dist/results-overview-three.wc.js +1 -1
- package/dist/single-overview-three.wc.js +1 -1
- package/package.json +1 -1
package/dist/Arrow2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as O,i as P,s as Q,e as s,b as f,v as H,m as R,n as t,p as C,g as w,q as i,r as T,u as I,k as A}from"./index2.js";import{
|
|
1
|
+
import{S as O,i as P,s as Q,e as s,b as f,v as H,m as R,n as t,p as C,g as w,q as i,r as T,u as I,k as A}from"./index2.js";import{k as J}from"./helpers.js";function K(o){let e,n,r;return{c(){e=s("div"),n=f(),r=s("div"),t(e,"position","absolute"),t(e,"right","10px"),t(e,"bottom","5px"),t(e,"height","3px"),t(e,"width","14px"),t(e,"background-color","#DD2222"),t(e,"border-radius","4px"),t(e,"transform","rotate(135deg)"),t(r,"position","absolute"),t(r,"right","10px"),t(r,"top","5px"),t(r,"height","3px"),t(r,"width","14px"),t(r,"background-color","#DD2222"),t(r,"border-radius","4px"),t(r,"transform","rotate(-135deg)")},m(d,D){w(d,e,D),w(d,n,D),w(d,r,D)},d(d){d&&(A(e),A(n),A(r))}}}function L(o){let e,n,r;return{c(){e=s("div"),n=f(),r=s("div"),t(e,"position","absolute"),t(e,"left","11px"),t(e,"bottom","5px"),t(e,"height","3px"),t(e,"width","14px"),t(e,"background-color","#DD2222"),t(e,"border-radius","4px"),t(e,"transform","rotate(45deg)"),t(r,"position","absolute"),t(r,"left","11px"),t(r,"top","5px"),t(r,"height","3px"),t(r,"width","14px"),t(r,"background-color","#DD2222"),t(r,"border-radius","4px"),t(r,"transform","rotate(-45deg)")},m(d,D){w(d,e,D),w(d,n,D),w(d,r,D)},d(d){d&&(A(e),A(n),A(r))}}}function U(o){let e,n,r,d,D,l,z,m,M,B,S,v,Z,k,$,b,F,x,h,E,y,G,c,j,q,u=o[1]==="left"&&K(),p=o[1]==="right"&&L();return{c(){e=s("div"),n=s("div"),u&&u.c(),r=f(),d=s("div"),D=f(),l=s("div"),z=f(),m=s("div"),M=f(),B=s("div"),S=f(),v=s("div"),Z=f(),k=s("div"),$=f(),b=s("div"),p&&p.c(),F=f(),x=s("div"),h=H("svg"),E=H("path"),G=f(),c=s("div"),j=s("b"),q=R(o[0]),t(n,"position","relative"),t(n,"height","100%"),t(n,"flex","1"),t(n,"background-color",o[1]==="left"?"#DD2222":"#CADBD1"),t(n,"border-radius","4px"),t(d,"height","100%"),t(d,"flex","2"),t(d,"background-color",o[1]==="left"?"#DD2222":"#CADBD1"),t(d,"border-radius","4px"),t(l,"height","100%"),t(l,"flex","2"),t(l,"background-color",o[1]==="left"?"#EE6600":"#CADBD1"),t(l,"border-radius","4px"),t(m,"position","relative"),t(m,"height","100%"),t(m,"flex","2"),t(m,"background-color","#CADBD1"),t(m,"border-radius","4px"),t(B,"height","100%"),t(B,"flex","2"),t(B,"background-color","#CADBD1"),t(B,"border-radius","4px"),t(v,"height","100%"),t(v,"flex","2"),t(v,"background-color",o[1]==="left"?"#CADBD1":"#EE6600"),t(v,"border-radius","4px"),t(k,"height","100%"),t(k,"flex","2"),t(k,"background-color",o[1]==="left"?"#CADBD1":"#DD2222"),t(k,"border-radius","4px"),t(b,"position","relative"),t(b,"height","100%"),t(b,"flex","1"),t(b,"background-color",o[1]==="left"?"#CADBD1":"#DD2222"),t(b,"border-radius","4px"),C(E,"d","M20.0001 35.5418C19.6112 35.5418 19.2223 35.4724 18.8334 35.3335C18.4445 35.1946 18.0973 34.9863 17.7917 34.7085C15.9862 33.0418 14.389 31.4168 13.0001 29.8335C11.6112 28.2502 10.4515 26.7154 9.52091 25.2293C8.59036 23.7432 7.88203 22.3127 7.39591 20.9377C6.9098 19.5627 6.66675 18.2502 6.66675 17.0002C6.66675 12.8335 8.00703 9.51405 10.6876 7.04183C13.3681 4.56961 16.4723 3.3335 20.0001 3.3335C23.5279 3.3335 26.632 4.56961 29.3126 7.04183C31.9931 9.51405 33.3334 12.8335 33.3334 17.0002C33.3334 18.2502 33.0904 19.5627 32.6042 20.9377C32.1181 22.3127 31.4098 23.7432 30.4792 25.2293C29.5487 26.7154 28.389 28.2502 27.0001 29.8335C25.6112 31.4168 24.014 33.0418 22.2084 34.7085C21.9029 34.9863 21.5556 35.1946 21.1667 35.3335C20.7779 35.4724 20.389 35.5418 20.0001 35.5418Z"),C(E,"fill",y=N(o[0],o[1])),t(h,"position","relative"),C(h,"width","60"),C(h,"height","60"),C(h,"viewBox","0 0 40 40"),C(h,"fill","none"),C(h,"xmlns","http://www.w3.org/2000/svg"),t(x,"left",o[2](o[0])+"%"),t(x,"position","absolute"),t(x,"transform","translate(-50%, -100%)"),t(x,"display","flex"),t(x,"align-items","center"),t(x,"flex-direction","column"),t(x,"width","100px"),t(x,"height","38px"),t(c,"left",o[2](o[0])+"%"),t(c,"position","absolute"),t(c,"transform","translate(-50%, -80%)"),t(c,"display","flex"),t(c,"align-items","center"),t(c,"flex-direction","column"),t(c,"width","100px"),t(c,"height","38px"),t(c,"color","white"),t(c,"font-size","0.75rem"),t(e,"position","relative"),t(e,"width","92%"),t(e,"height","4px"),t(e,"display","flex"),t(e,"justify-content","space-between"),t(e,"gap","4px")},m(a,g){w(a,e,g),i(e,n),u&&u.m(n,null),i(e,r),i(e,d),i(e,D),i(e,l),i(e,z),i(e,m),i(e,M),i(e,B),i(e,S),i(e,v),i(e,Z),i(e,k),i(e,$),i(e,b),p&&p.m(b,null),i(e,F),i(e,x),i(x,h),i(h,E),i(e,G),i(e,c),i(c,j),i(j,q)},p(a,[g]){a[1]==="left"?u||(u=K(),u.c(),u.m(n,null)):u&&(u.d(1),u=null),g&2&&t(n,"background-color",a[1]==="left"?"#DD2222":"#CADBD1"),g&2&&t(d,"background-color",a[1]==="left"?"#DD2222":"#CADBD1"),g&2&&t(l,"background-color",a[1]==="left"?"#EE6600":"#CADBD1"),g&2&&t(v,"background-color",a[1]==="left"?"#CADBD1":"#EE6600"),g&2&&t(k,"background-color",a[1]==="left"?"#CADBD1":"#DD2222"),a[1]==="right"?p||(p=L(),p.c(),p.m(b,null)):p&&(p.d(1),p=null),g&2&&t(b,"background-color",a[1]==="left"?"#CADBD1":"#DD2222"),g&3&&y!==(y=N(a[0],a[1]))&&C(E,"fill",y),g&1&&t(x,"left",a[2](a[0])+"%"),g&1&&T(q,a[0]),g&1&&t(c,"left",a[2](a[0])+"%")},i:I,o:I,d(a){a&&A(e),u&&u.d(),p&&p.d()}}}function N(o,e){return e==="left"?o>=34?"#119999":o>18&&o<34?"#EE6600":"#DD2222":o<=66?"#119999":o>66&&o<82?"#EE6600":"#DD2222"}function V(o,e,n){let{percentile:r=0}=e,{direction:d=""}=e;function D(l){if(l===50)return 50;if(l<2)return 9;if(l>98)return 91;if(l>=2&&l<50)return J(l,9.2,50,13,50);if(l>50&&l<=98)return J(l,50,90.8,50,86.8)}return o.$$set=l=>{"percentile"in l&&n(0,r=l.percentile),"direction"in l&&n(1,d=l.direction)},[r,d,D]}class W extends O{constructor(e){super(),P(this,e,V,U,Q,{percentile:0,direction:1})}}export{W as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ge,S as ye,i as ve,f as be,s as xe,a as we,d as ke,g as oe,u as le,k as me,o as Ge,e as l,b as X,m as K,p as E,n as u,q as a,r as L}from"./index2.js";function Te(x){we(x,"svelte-psemx5",".main.svelte-psemx5{height:100%;width:100%;display:flex;flex-direction:column}.number.svelte-psemx5{display:flex;align-items:center;justify-content:center;font-size:var(--regular);font-weight:bold;color:white;min-width:2rem;min-height:2rem;margin-right:1rem;background:#119999;border-radius:2px}.items-baseline.svelte-psemx5{align-items:baseline}")}function ce(x){let n,e,m,c,h,w,f,C,I,T,A,P,r,R,S,k,p,g,y,$,N,q,z,o,M,Q,_,B,F,O,Y,U,j;return{c(){n=l("div"),e=l("div"),m=l("div"),m.textContent="1",c=X(),h=l("div"),w=l("div"),f=l("b"),C=K(x[0]),I=X(),T=l("div"),A=K(x[1]),P=X(),r=l("div"),R=l("div"),R.textContent="2",S=X(),k=l("div"),p=l("div"),g=l("b"),y=K(x[2]),$=X(),N=l("div"),q=K(x[3]),z=X(),o=l("div"),M=l("div"),M.textContent="3",Q=X(),_=l("div"),B=l("div"),F=l("b"),O=K(x[4]),Y=X(),U=l("div"),j=K(x[5]),E(m,"class","number svelte-psemx5"),u(w,"margin-bottom","1rem"),E(T,"class","x-small"),E(e,"class","items-baseline svelte-psemx5"),u(e,"display","flex"),u(e,"margin","5 rem"),u(e,"border-top","1px solid #09341F33"),u(e,"padding","20px 20px 20px 0px"),u(e,"height","auto"),E(R,"class","number svelte-psemx5"),u(p,"margin-bottom","1rem"),E(N,"class","x-small"),E(r,"class","items-baseline svelte-psemx5"),u(r,"display","flex"),u(r,"margin","5 rem"),u(r,"border-top","1px solid #09341F33"),u(r,"padding","20px 20px 20px 0px"),u(r,"height","auto"),E(M,"class","number svelte-psemx5"),u(B,"margin-bottom","1rem"),E(U,"class","x-small"),E(o,"class","items-baseline svelte-psemx5"),u(o,"display","flex"),u(o,"margin","5 rem"),u(o,"border-top","1px solid #09341F33"),u(o,"padding","20px 20px 20px 0px"),u(o,"height","auto"),E(n,"class","main svelte-psemx5")},m(d,v){oe(d,n,v),a(n,e),a(e,m),a(e,c),a(e,h),a(h,w),a(w,f),a(f,C),a(h,I),a(h,T),a(T,A),a(n,P),a(n,r),a(r,R),a(r,S),a(r,k),a(k,p),a(p,g),a(g,y),a(k,$),a(k,N),a(N,q),a(n,z),a(n,o),a(o,M),a(o,Q),a(o,_),a(_,B),a(B,F),a(F,O),a(_,Y),a(_,U),a(U,j)},p(d,v){v[0]&1&&L(C,d[0]),v[0]&2&&L(A,d[1]),v[0]&4&&L(y,d[2]),v[0]&8&&L(q,d[3]),v[0]&16&&L(O,d[4]),v[0]&32&&L(j,d[5])},d(d){d&&me(n)}}}function Ae(x){let n,e=x[6]&&ce(x);return{c(){e&&e.c(),n=ke()},m(m,c){e&&e.m(m,c),oe(m,n,c)},p(m,c){m[6]?e?e.p(m,c):(e=ce(m),e.c(),e.m(n.parentNode,n)):e&&(e.d(1),e=null)},i:le,o:le,d(m){m&&me(n),e&&e.d(m)}}}function Re(x,n,e){let{service:m=window.GaReportService}=n,c,h=!1,w=!1,f=!1,C=!1,I=!1,T=!1,A=!1,P=!1,r=!1,R=!1,S=!1,k=!1,p=!1,g=!1,y=!1,$=!1,N=!1,q=!1,z=!1,o=!1,M=!1,Q=0,_=0,B=0,F=0,O=0,Y=0,U=0,j=0,d=0,v=0,V=0,b=0,i=0,t=0,G=0,s=0,ie=0,te=0,se=0,ae=0,D="",W="",H="",J="",Z="",ee="",ne=!1;function ue(){Q===1?f=!0:h=!0,_===1?f=!0:h=!0,B<2?h=!0:B===2?w=!0:B===3&&(f=!0),F<3?h=!0:F===3?w=!0:F===4&&(f=!0),h&&!w&&!f&&(C=!0),(!h&&w&&!f||h&&w&&!f||h&&!w&&f||h&&w&&f)&&(I=!0),(!h&&!w&&f||!h&&w&&f)&&(T=!0)}function he(){O<3?A=!0:O===5?r=!0:P=!0,Y<3?A=!0:Y===3?P=!0:r=!0,A&&!P&&!r&&(R=!0),(!A&&P&&!r||A&&P&&!r||A&&!P&&r||A&&P&&r)&&(S=!0),(!A&&!P&&r||!A&&P&&r)&&(k=!0)}function pe(){U<3?p=!0:U===3?g=!0:y=!0,j<3?p=!0:j===3?g=!0:y=!0,d<3?p=!0:d===5?y=!0:g=!0,v<3?p=!0:v===3?g=!0:y=!0,p&&!g&&!y&&($=!0),(!p&&g&&!y||p&&g&&!y||p&&!g&&y||p&&g&&y)&&(N=!0),(!p&&!g&&y||!p&&g&&y)&&(q=!0)}function fe(){V===0?z=!0:V===1?o=!0:M=!0}return Ge(async()=>{c=await m.getReport(),b=Number(c.Bpercentile),i=Number(c.Spercentile),t=Number(c.G0percentile),G=Number(c.G1percentile),s=Number(c.G2percentile),te=Number(c.P18percentile),ie=Number(c.P22percentile),se=Number(c.P23percentile),ae=Number(c.P26percentile),b>=67&&(Q++,F++,O++,Y++,d++,V++),b<=33&&j++,i<=33&&(F++,O++,Y++,U++,d++),t>=67&&(B++,F++,O++,Y++,j++,d++,U++),G<=33&&(B++,O++,U++,j++,d++,V++),s<=33&&(_++,B++,F++,O++,Y++,U++,j++,d++),te>=67&&v++,ie<=33&&v++,se>=67&&v++,ae<=33&&v++,ue(),he(),pe(),fe(),i>=67&&s>=67&&t<=33&&(e(0,D="Maintain current approach"),e(1,W="Optimal primary indexes indicate strong immune regulation and effective control over inflammation. We highly recommend maintaining the current diet, lifestyle, and recovery strategies that are contributing to this excellent result.")),(i>=67&&s>=67&&t>33&&t<67||i>=67&&s>33&&s<67&&t<=33||i>33&&i<67&&s>=67&&t<=33||i>=67&&s>33&&s<67&&t>33&&t<67||i>33&&i<67&&s>=67&&t>33&&t<67||i>33&&i<67&&s>33&&s<67&&t<=33||i>33&&i<67&&s>33&&s<67&&t>33&&t<67)&&(e(0,D="Review lifestyle and inflammatory risk factors"),e(1,W="Average primary indexes represent a typical state but not an optimal one, suggesting there is room for improvement. Incremental improvements to lifestyle are recommended, such as optimizing micronutrient intake, enhancing sleep and fitness protocols, and continuing to monitor inflammatory risk factors.")),(i<=33&&s>=67&&t<=33||i<=33&&s>=67&&t>33&&t<67||i<=33&&s>33&&s<67&&t<=33||i<=33&&s>33&&s<67&&t>33&&t<67)&&(e(0,D="Review inflammation resolution and gut health"),e(1,W="A suboptimal Glycan Shield suggests the body may be struggling to resolve inflammation efficiently. A focus on an anti-inflammatory diet is recommended, ensuring adequate intake of key micronutrients. Prioritizing gut health, increasing polyphenol intake, and incorporating more physical activity are also advised.")),(i>=67&&s<=33&&t<=33||i>=67&&s<=33&&t>33&&t<67||i>33&&i<67&&s<=33&&t<=33||i>33&&i<67&&s<=33&&t>33&&t<67)&&(e(0,D="Review immune capacity and metabolic health"),e(1,W="A suboptimal Glycan Youth suggests a reduced anti-inflammatory capacity and a prematurely aging immune system. A review of lifestyle factors such as weight, activity levels, and sources of inflammation is advised. Assessing hormonal balance and taking steps to support overall immune health should also be considered.")),(i>=67&&s>=67&&t>=67||i>=67&&s>33&&s<67&&t>=67||i>33&&i<67&&s>=67&&t>=67||i>33&&i<67&&s>33&&s<67&&t>=67)&&(e(0,D="Review sources of chronic inflammation"),e(1,W="A suboptimal Glycan Mature strongly suggests the immune system is in a chronic inflammatory state. This warrants a thorough evaluation of metabolic health, hormone balance, and potential sources of chronic inflammation.")),(i>=67&&s<=33&&t>=67||i<=33&&s>=67&&t>=67||i<=33&&s<=33&&t<=33||i>33&&i<67&&s<=33&&t>=67||i<=33&&s>33&&s<67&&t>=67||i<=33&&s<=33&&t>33&&t<67)&&(e(0,D="Review sources of inflammation and immune health"),e(1,W="This result points to multiple areas of concern, such as difficulty resolving inflammation , a prematurely aging immune system , or a chronically inflammatory state. It is advised to review lifestyle, diet, gut health, metabolic and hormonal balance to address these interconnected issues.")),i<=33&&s<=33&&t>=67&&(e(0,D="Undertake a systemic review of chronic inflammation"),e(1,W="Suboptimal results across all primary indexes indicate a significant issue with chronic inflammation that requires a systemic approach. This warrants a thorough evaluation of all potential drivers, including metabolic health, hormone balance, diet, stress, and lifestyle, to address the underlying causes of this pro-inflammatory state.")),G>=18&&G<=82&&b<=33&&(e(2,H="Maintain current approach to stress and lifestyle"),e(3,J="Optimal supportive indexes reflect a healthy adaptive flexibility in the immune system and excellent adaptation to stress. Maintaining the current lifestyle is advised to preserve this balance.")),G>=18&&G<=82&&b>33&&b<67&&(e(2,H="Monitor and manage stress levels"),e(3,J="An average Glycan Bisection is a typical result for the general population. In the context of a high-stress lifestyle, taking proactive steps to manage stress through improved sleep and recovery is advisable to prevent it from negatively impacting the immune system.")),(G<=17&&b>=67||G>=83&&b>=67)&&(e(2,H="Review sources of stress and immune imbalance"),e(3,J="This result indicates multiple areas for review. The focus should be on addressing chronic stress (from Glycan Bisection) and investigating the causes of immune system rigidity or transition (from Glycan Median).")),(G<=17&&b>33&&b<67||G<=17&&b<=33)&&(e(2,H="Review factors affecting immune flexibility"),e(3,J="A low Glycan Median indicates a certain rigidity in the immune system's ability to adapt, which is linked to immune instability and increased cardiovascular risk. The focus should be on managing overall inflammation and evaluating for underlying chronic health issues that may contribute to this state.")),G>=18&&G<=82&&b>=67&&(e(2,H="Review and address sources of chronic stress"),e(3,J="A suboptimal Glycan Bisection suggests a state of chronic stress and inflammation, likely driven by sympathetic nervous system overdrive. It is highly recommended to prioritize stress management techniques, improve sleep quality, and focus on recovery.")),(G>=83&&b>33&&b<67||G>=83&&b<=33)&&(e(2,H="Investigate causes of immune system transition"),e(3,J="A high Glycan Median shows the immune system is in a state of transition. This could be a positive response (e.g., recovery from illness) or a negative one (e.g., early dysregulation). This result should be interpreted in the full context of the other glycan indexes and recent lifestyle changes to determine the cause.")),C&&R&&$&&z&&!I&&!S&&!N&&!o&&!T&&!k&&!q&&!M&&(e(4,Z="Confirming system-wide balance"),e(5,ee="Your client's positive results are reflected across all key physiological systems. This confirms their current lifestyle is effectively controlling chronic inflammation and supporting systemic health.")),(!C&&!R&&!$&&!z&&I&&S&&N&&o&&!T&&!k&&!q&&!M||(C||R||$||z)&&(I||S||N||o)&&!T&&!k&&!q&&!M||(C||R||$||z)&&!I&&!S&&!N&&!o&&(T||k||q||M)||(C||R||$||z)&&(I||S||N||o)&&(T||k||q||M))&&(e(4,Z="Connect drivers to affected systems"),e(5,ee="The imbalances from steps 1 and/or 2 are having an impact on some areas of health. Use this to explain how addressing the core glycan issues can protect these specific systems.")),(!C&&!R&&!$&&!z&&!I&&!S&&!N&&!o&&T&&k&&q&&M||!C&&!R&&!$&&!z&&(I||S||N||o)&&(T||k||q||M))&&(e(4,Z="Prioritise based on systemic impact"),e(5,ee="The significant glycan issues identified earlier are impacting multiple systems. This reinforces the need for a systemic review, focusing on why addressing the root causes is critical to protecting these vital areas.")),e(6,ne=!0)}),x.$$set=re=>{"service"in re&&e(7,m=re.service)},[D,W,H,J,Z,ee,ne,m]}class de extends ye{constructor(n){super(),ve(this,n,Re,Ae,xe,{service:7},Te,[-1,-1])}get service(){return this.$$.ctx[7]}set service(n){this.$$set({service:n}),be()}}customElements.define("ga-action-steps-three",ge(de,{service:{}},[],[],!0));export{de as default};
|
|
1
|
+
import{c as X,S as Z,i as _,f as ee,s as ie,a as ne,d as te,g as W,u as J,k as K,o as ae,e as u,b as k,m as F,p as z,n as l,q as a,r as P}from"./index2.js";function re(y){ne(y,"svelte-1wefy7a",".main.svelte-1wefy7a{height:100%;width:100%;display:flex;flex-direction:column;gap:40px}.number.svelte-1wefy7a{display:flex;align-items:center;justify-content:center;font-size:10px;color:white;min-height:1.7rem;margin-right:1rem;border-radius:48px;position:absolute;top:-9%;font-weight:bold;left:3%}.items-baseline.svelte-1wefy7a{align-items:baseline}.further.svelte-1wefy7a{font-weight:700;font-size:10px;line-height:160%;letter-spacing:0.005em;color:rgba(9, 52, 31, 0.8)}")}function Q(y){let c,e,d,g,m,i,n,p,t,r,s,o,v,f,h,V,R,D,T,b,A,G,x,B,H,E,$,S,N,L,q,j,I,Y,O,M;return{c(){c=u("div"),e=u("div"),d=u("div"),d.textContent="Primary focus \u2014 based on primary indexes",g=k(),m=u("div"),i=u("div"),n=u("b"),p=F(y[0]),t=k(),r=u("div"),s=F(y[1]),o=k(),v=u("div"),f=k(),h=u("div"),h.textContent="Further testing suggested:",V=k(),R=u("div"),D=F(y[2]),T=k(),b=u("div"),A=u("div"),A.textContent="Secondary focus \u2014 based on secondary indexes",G=k(),x=u("div"),B=u("div"),H=u("b"),E=F(y[3]),$=k(),S=u("div"),N=F(y[4]),L=k(),q=u("div"),j=k(),I=u("div"),I.textContent="Further testing suggested:",Y=k(),O=u("div"),M=F(y[5]),z(d,"class","number svelte-1wefy7a"),l(d,"background","#36624C"),l(d,"min-width","15rem"),l(i,"margin-bottom","0.3rem"),l(i,"font-size","12px"),l(r,"font-size","12px"),l(v,"height","24px"),z(h,"class","further svelte-1wefy7a"),l(R,"font-size","12px"),l(m,"padding","0 2rem 2rem 2rem"),z(e,"class","items-baseline svelte-1wefy7a"),l(e,"display","flex"),l(e,"background-color","#E4EDE9"),l(e,"padding","20px 20px 0px 0px"),l(e,"height","auto"),l(e,"position","relative"),l(e,"border-radius","12px"),z(A,"class","number svelte-1wefy7a"),l(A,"background","#86AF9A"),l(A,"min-width","17rem"),l(B,"margin-bottom","0.3rem"),l(B,"font-size","12px"),l(S,"font-size","12px"),l(q,"height","24px"),z(I,"class","further svelte-1wefy7a"),l(O,"font-size","12px"),l(x,"padding","0 2rem 2rem 2rem"),z(b,"class","items-baseline svelte-1wefy7a"),l(b,"display","flex"),l(b,"background-color","#F2F6F4"),l(b,"border-radius","12px"),l(b,"padding","20px 20px 0px 0px"),l(b,"height","auto"),l(b,"position","relative"),z(c,"class","main svelte-1wefy7a")},m(w,C){W(w,c,C),a(c,e),a(e,d),a(e,g),a(e,m),a(m,i),a(i,n),a(n,p),a(m,t),a(m,r),a(r,s),a(m,o),a(m,v),a(m,f),a(m,h),a(m,V),a(m,R),a(R,D),a(c,T),a(c,b),a(b,A),a(b,G),a(b,x),a(x,B),a(B,H),a(H,E),a(x,$),a(x,S),a(S,N),a(x,L),a(x,q),a(x,j),a(x,I),a(x,Y),a(x,O),a(O,M)},p(w,C){C[0]&1&&P(p,w[0]),C[0]&2&&P(s,w[1]),C[0]&4&&P(D,w[2]),C[0]&8&&P(E,w[3]),C[0]&16&&P(N,w[4]),C[0]&32&&P(M,w[5])},d(w){w&&K(c)}}}function se(y){let c,e=y[6]&&Q(y);return{c(){e&&e.c(),c=te()},m(d,g){e&&e.m(d,g),W(d,c,g)},p(d,g){d[6]?e?e.p(d,g):(e=Q(d),e.c(),e.m(c.parentNode,c)):e&&(e.d(1),e=null)},i:J,o:J,d(d){d&&K(c),e&&e.d(d)}}}function oe(y,c,e){let{service:d=window.GaReportService}=c,g,m=0,i=0,n=0,p=0,t=0,r="",s="",o="",v="",f="",h="",V=!1;return ae(async()=>{g=await d.getReport(),m=Number(g.Bpercentile),i=Number(g.Spercentile),n=Number(g.G0percentile),p=Number(g.G1percentile),t=Number(g.G2percentile),Number(g.P18percentile),Number(g.P22percentile),Number(g.P23percentile),Number(g.P26percentile),i>=67&&t>=67&&n<=33&&(e(0,r="Maintain and protect current inflammation regulation and immune aging"),e(1,s="Evaluate whether these optimal results are driven by pharmaceutical interventions (e.g., HRT, TRT, thyroxine, incretin therapies such as GLP-1 agonists, anti-inflammatories), favorable genetic traits (e.g., longevity-associated or glycan-beneficial variants), or lifestyle factors. If risk factors or chronic conditions are present, this profile confirms that current strategies are successfully controlling inflammation."),e(2,o="None beyond standard annual preventive labs unless new symptoms emerge.")),i>=67&&t>=67&&n>33&&n<67&&(e(0,r="Minimize low-grade inflammatory triggers to prevent further immune system aging"),e(1,s="To mitigate ongoing immune activation, assess for potential triggers such as recent or unresolved infections. Focus on reducing pro-inflammatory foods, correcting energy imbalances, and limiting alcohol intake. Reinforce consistent sleep patterns and provide strategies to support stress regulation and recovery."),e(2,o="Consider hs-CRP and other inflammatory markers, 25-hydroxy vitamin D, ferritin, and iron studies. Assess lipid profile and fasting glucose\u2013insulin to evaluate cardiometabolic load.")),i>=67&&t>33&&t<67&&n<=33&&(e(0,r="Optimize physical activity to support immune youthfulness"),e(1,s="Encourage a balanced training approach by limiting excessive higher-intensity cardio, incorporating or maintaining strength training, and prioritizing recovery strategies to support long-term immune youthfulness. If there is a personal or family history of autoimmune conditions, monitor Glycan Youth trends closely, as maintaining this index may be particularly important in genetically susceptible individuals."),e(2,o="If there is a personal or family history of autoimmune or inflammatory conditions, evaluate ESR, hs-CRP, ANA screen, and baseline thyroid function (TSH, fT4, fT3). Monitor vitamin D status.")),i>33&&i<67&&t>=67&&n<=33&&(e(0,r="Support resolution pathways through gut, nutrition, and fitness"),e(1,s="Focus on improving gut health with targeted probiotics, prebiotics, and fiber diversity, increase the nutrient density of the diet through whole foods and anti-inflammatory compounds, assess for micronutrient deficiencies if needed, and support overall immune resilience by enhancing physical fitness."),e(2,o="Consider micronutrient evaluation (omega-3 index, zinc, magnesium, vitamin D, B12, folate), hs-CRP, and targeted gut health assessment (stool analysis, microbiome profile, or permeability markers) if clinical suspicion exists.")),i>=67&&t>33&&t<67&&n>33&&n<67&&(e(0,r="Counterbalance high-demand lifestyles with structured recovery"),e(1,s="Support the client in establishing consistent rest routines, strengthening stress regulation strategies, and aligning daily habits with circadian rhythms. For individuals in high-pressure environments, implement practical recovery tools, such as scheduled downtime, breathwork, or short movement breaks, to buffer the immune system from ongoing load. Monitor cardiometabolic health markers and address any early signs of imbalance to prevent further strain on the immune system."),e(2,o="Evaluate lipid profile, hs-CRP, 25-hydroxy vitamin D, fasting glucose\u2013insulin, ANA screen. Consider assessment of sleep quality and HRV for recovery monitoring.")),i>33&&i<67&&t>=67&&n>33&&n<67&&(e(0,r="Strengthen vascular resilience through targeted lifestyle support"),e(1,s="Recommend a dietary pattern emphasizing omega-3 sources, nitrate-containing vegetables, and polyphenol-rich foods, while limiting processed foods, excess sodium, and added sugars. Advise the client to engage in regular moderate-intensity aerobic activity alongside consistent recovery and sleep routines. Monitor cardiovascular health, particularly if there is a personal or family history of cardiovascular conditions."),e(2,o="Check lipid profile, blood pressure (including variability), hs-CRP, and fasting glucose\u2013insulin. Consider Omega-3 Index and homocysteine for cardiovascular support planning.")),i>33&&i<67&&t>33&&t<67&&n<=33&&(e(0,r="Improve immune responsiveness by supporting recovery, rhythm, and core systems"),e(1,s="Recommend implementing structured wind-down routines and consistent bedtimes to stabilise circadian rhythm, incorporate active recovery strategies, and support gut and liver health through increased fiber diversity, cruciferous vegetables, and evidence-based nutritional compounds known to enhance immune system regulation."),e(2,o="Micronutrient profile (zinc, magnesium, vitamin D, B12, folate, omega-3 index), hs-CRP, fasting glucose\u2013insulin. If symptoms persist, evaluate sex hormones and thyroid function for systemic recovery impact.")),i>33&&i<67&&t>33&&t<67&&n>33&&n<67&&(e(0,r="Shift early immune aging with targeted, system-wide intervention"),e(1,s="Recommend structured improvements in nutrition (e.g. anti-inflammatory, nutrient-dense meals with stable energy balance), increase physical activity with both aerobic and resistance training, reinforce consistent, high-quality sleep, and implement daily stress recovery practices. This pattern may signal early metabolic strain, so a more deliberate and comprehensive intervention is warranted to restore immune resilience."),e(2,o="Full cardiometabolic panel (lipids, glucose\u2013insulin, hs-CRP), vitamin D, and selected micronutrients, ANA screen. Consider baseline hormone evaluation if lifestyle strain is prolonged.")),i>=67&&t>=67&&n>=67&&(e(0,r="Lower chronic inflammatory burden to slow biological aging"),e(1,s="Prioritize reducing inflammatory load through an anti-inflammatory, metabolically balanced diet, address central drivers like insulin resistance, dyslipidaemia, or hormonal imbalance, and implement daily stress regulation strategies."),e(2,o="Assess blood pressure, glucose control, lipid panel, hormone status, and systemic inflammatory markers to guide targeted intervention.")),i>=67&&t<=33&&n<=33&&(e(0,r="Restore immune adaptability by targeting core metabolic and regulatory systems"),e(1,s="Improve body composition, stabilise circadian rhythm, and optimize energy intake. Encourage a balanced training approach by limiting excessive cardio, introducing or maintaining strength training, and prioritizing recovery strategies. If there is a personal or family history of autoimmune conditions, monitor Glycan Youth trends closely."),e(2,o="Consider evaluating markers of metabolic health, sex hormone levels, and autoimmunity to uncover potential underlying drivers.")),i<=33&&t>=67&&n<=33&&(e(0,r="Improve inflammation resolution by restoring gut\u2013nutrient\u2013stress axis"),e(1,s="Support gut integrity through increased fiber diversity, fermented foods, and digestive assessment if needed; optimize micronutrients and glycan precursors (e.g. zinc, magnesium, omega-3, vitamin D); and reduce cumulative stress through consistent recovery routines and circadian alignment."),e(2,o="Consider investigating digestive function, systemic inflammation, and sex hormone balance to identify and correct underlying barriers to immune resolution.")),i>=67&&t>33&&t<67&&n>=67&&(e(0,r="Reverse chronic inflammation by targeting metabolic and immune overload"),e(1,s="Recommend a structured anti-inflammatory protocol focused on improving metabolic health, optimizing body composition, stabilising blood sugar, and reducing dietary and lifestyle-driven inflammatory triggers."),e(2,o="Evaluate blood pressure, lipid status, sex hormone balance, and systemic inflammation to identify key drivers and implement targeted interventions that can reverse the immune aging trajectory.")),i>33&&i<67&&t>=67&&n>=67&&(e(0,r="Lower immune load by reducing inflammatory triggers and enhancing recovery"),e(1,s="Focus on improving gut health, limiting exposure to dietary and environmental toxins, and eliminating processed, pro-inflammatory foods."),e(2,o="Assess blood pressure, glycemic control, lipid profile, sex hormone status, and systemic inflammation to guide targeted interventions that protect long-term immune resilience and prevent immune aging.")),i>=67&&t<=33&&n>33&&n<67&&(e(0,r="Support immune recovery by rebuilding core regulatory capacity"),e(1,s="Focus on improving body composition while avoiding overtraining, emphasize movement quality and sufficient recovery, stabilise circadian rhythm through regular sleep\u2013wake cycles, and address energy status with a diverse, anti-inflammatory diet."),e(2,o="Evaluate metabolic markers, hormone levels, and autoimmune risk to uncover and address deeper drivers of immune aging.")),i>33&&i<67&&t<=33&&n<=33&&(e(0,r="Rebuild immune youth by balancing stress, movement, and recovery"),e(1,s="Support recovery through consistent sleep\u2013wake timing, moderate and well-balanced physical activity, and structured rest routines. Ensure adequate nourishment and optimize daily energy intake."),e(2,o="Evaluate metabolic markers, thyroid function, hormone levels, and autoimmune risk to uncover and address deeper drivers of immune aging.")),i<=33&&t>=67&&n>33&&n<67&&(e(0,r="Strengthen immune regulation by supporting gut integrity and reducing immune irritants"),e(1,s="Focus on improving gut health through fiber diversity and microbiome-supportive strategies, support detoxification and elimination pathways, and reduce exposure to common immune irritants such as alcohol, food sensitivities, and environmental toxins."),e(2,o="Consider evaluating digestive markers (e.g. microbiome profile, zonulin), systemic inflammation, key micronutrients, sex hormone balance, and autoantibodies when indicated.")),i<=33&&t>33&&t<67&&n<=33&&(e(0,r="Improve immune recovery by supporting gut\u2013liver axis and nutritional sufficiency"),e(1,s="Strengthen gut and liver function through fiber-rich, anti-inflammatory foods and targeted support as needed, reinforce structured recovery routines, and ensure adequate intake of key micronutrients and glycan-building nutrients."),e(2,o="Consider assessing iron status, B12, folate, vitamin D, zinc, magnesium, and digestive function (e.g. microbiome profile, stool markers, zonulin); screen for autoantibodies if autoimmune risk is present.")),i>33&&i<67&&t>33&&t<67&&n>=67&&(e(0,r="Reduce inflammatory burden through systemic lifestyle and environmental interventions"),e(1,s="Recommend a nutrient-dense, anti-inflammatory diet; restore sleep\u2013wake rhythm; reinforce daily stress regulation; introduce consistent, moderate physical activity; and prioritize body composition improvement to reduce metabolic strain. To lower cumulative immune load, reduce environmental exposures such as alcohol, endocrine disruptors, and pollutants."),e(2,o="Assess cardiometabolic markers, hormone balance, systemic inflammation, and autoimmune panels if indicated.")),i>33&&i<67&&t<=33&&n>33&&n<67&&(e(0,r="Rebuild immune resilience by rebalancing stress, movement, and nutrition"),e(1,s="Support deeper recovery through consistent sleep\u2013wake cycles and structured rest, and help find an appropriate balance between physical activity and recovery to avoid over- or undertraining. Optimize macro- and micronutrient intake, particularly protein, minerals, and anti-inflammatory compounds, and evaluate thyroid function, cortisol rhythm, insulin sensitivity, body composition, and sleep quality to identify key contributors to immune decline."),e(2,o="CBC, liver/kidney panels, inflammatory markers, glucose\u2013insulin panel, full thyroid and adrenal assessment, vitamin D, gut function (stool, microbiome, breath test), toxin screen, and autoimmune markers as indicated. Functional metrics such as HRV, VO\u2082max, and body composition may also help track recovery.")),i<=33&&t>33&&t<67&&n>33&&n<67&&(e(0,r="Restore immune resolution by supporting gut health and recovery signals"),e(1,s="Focus on gut repair through fiber diversity and microbiome-supportive strategies, reduce immune irritants such as processed foods, alcohol, and environmental toxins, and reinforce the body\u2019s recovery capacity with consistent sleep, gentle movement, and structured stress-regulation routines."),e(2,o="Consider evaluating gut permeability or microbiome balance, nutrient absorption (zinc, magnesium, B vitamins), cortisol rhythm, and other signs of barrier dysfunction.")),i>=67&&t<=33&&n>=67&&(e(0,r="Rebuild immune balance by restoring circadian rhythm and hormonal regulation"),e(1,s="A comprehensive health evaluation is recommended to investigate underlying contributors. Prioritize circadian alignment with consistent sleep\u2013wake schedules, integrate brief but regular recovery practices during the workday (e.g. short walks, breathwork, movement breaks), and avoid overreliance on high-intensity exercise in favour of balanced strength and mobility training. Address central drivers of immune disruption like hypertension, insulin resistance, dyslipidaemia, or hormonal imbalance."),e(2,o="CBC, liver and kidney panels, lipid profile, glucose\u2013insulin panel, full thyroid, adrenal, and sex hormone assessment, inflammatory markers (including hs-CRP), vitamin D, iron status, B12, folate, magnesium, zinc, homocysteine, Omega-3 Index, gut function tests (stool analysis, microbiome, breath tests), and autoimmune markers if indicated. Functional metrics such as HRV, VO\u2082max, and body composition can also support tracking of recovery.")),i<=33&&t>=67&&n>=67&&(e(0,r="Lower systemic inflammatory load and protect cardiovascular health"),e(1,s="A comprehensive health evaluation is recommended to investigate underlying contributors. Implement an anti-inflammatory, nutrient-dense diet and address oral and gut health to remove potential sources of persistent immune activation. emphasize cardiovascular support through regular, moderate physical activity, stress regulation, and optimal sleep."),e(2,o="CBC, liver and kidney panels, lipid profile, glucose\u2013insulin panel, full thyroid, adrenal, and sex hormone assessment, inflammatory markers (including hs-CRP), vitamin D, iron status, B12, folate, magnesium, zinc, homocysteine, Omega-3 Index, gut function tests (stool analysis, microbiome, breath tests), and autoimmune markers if indicated. Functional metrics such as HRV, VO\u2082max, and body composition can also support tracking of recovery.")),i<=33&&t<=33&&n<=33&&(e(0,r="Rebuild immune adaptability through restoration and resilience"),e(1,s="A comprehensive health evaluation is recommended to investigate underlying contributors. Focus on replenishing nutrient reserves with a diverse, protein- and micronutrient-rich diet, support digestive health to optimize absorption, and implement structured recovery through consistent sleep, stress regulation, and gentle, progressive physical activity."),e(2,o="CBC, liver and kidney panels, lipid profile, glucose\u2013insulin panel, full thyroid, adrenal, and sex hormone assessment, inflammatory markers (including hs-CRP), vitamin D, iron status, B12, folate, magnesium, zinc, homocysteine, Omega-3 Index, gut function tests (stool analysis, microbiome, breath tests), and autoimmune markers if indicated. Functional metrics such as HRV, VO\u2082max, and body composition can also support tracking of recovery.")),i>33&&i<67&&t<=33&&n>=67&&(e(0,r="Address root drivers of systemic immune strain and chronic inflammation"),e(1,s="A comprehensive health evaluation is recommended to investigate underlying contributors. Focus on removing inflammatory load (from diet, environment, gut), rebuilding recovery capacity (through sleep, nutrition, stress regulation), and restoring metabolic and hormonal balance."),e(2,o="CBC, liver and kidney panels, lipid profile, glucose\u2013insulin panel, full thyroid, adrenal, and sex hormone assessment, inflammatory markers (including hs-CRP), vitamin D, iron status, B12, folate, magnesium, zinc, homocysteine, Omega-3 Index, gut function tests (stool analysis, microbiome, breath tests), and autoimmune markers if indicated. Functional metrics such as HRV, VO\u2082max, and body composition can also support tracking of recovery.")),i<=33&&t>33&&t<67&&n>=67&&(e(0,r="Address root drivers of systemic immune strain and chronic inflammation"),e(1,s="A comprehensive health evaluation is recommended to investigate underlying contributors. Evaluate and address gut/barrier dysfunction, endocrine imbalance, toxin exposures, and chronic stress; reduce dietary and environmental inflammatory load while reinforcing sleep, targeted nutrition, and stress\u2011regulation to re\u2011establish resolution capacity."),e(2,o="CBC, liver and kidney panels, lipid profile, glucose\u2013insulin panel, full thyroid, adrenal, and sex hormone assessment, inflammatory markers (including hs-CRP), vitamin D, iron status, B12, folate, magnesium, zinc, homocysteine, Omega-3 Index, gut function tests (stool analysis, microbiome, breath tests), and autoimmune markers if indicated. Functional metrics such as HRV, VO\u2082max, and body composition can also support tracking of recovery.")),i<=33&&t<=33&&n>33&&n<67&&(e(0,r="Rebuild immune adaptability through restoration and resilience"),e(1,s="A comprehensive health evaluation is recommended to investigate underlying contributors. Focus on replenishing nutrient reserves with a diverse, protein- and micronutrient-rich diet, support digestive health to optimize absorption, and implement structured recovery through consistent sleep, stress regulation, and gentle, progressive physical activity. Make efforts to restore metabolic and hormonal balance."),e(2,o="CBC, liver and kidney panels, lipid profile, glucose\u2013insulin panel, full thyroid, adrenal, and sex hormone assessment, inflammatory markers (including hs-CRP), vitamin D, iron status, B12, folate, magnesium, zinc, homocysteine, Omega-3 Index, gut function tests (stool analysis, microbiome, breath tests), and autoimmune markers if indicated. Functional metrics such as HRV, VO\u2082max, and body composition can also support tracking of recovery.")),i<=33&&t<=33&&n>=67&&(e(0,r="Reduce inflammatory burden and restore systemic resilience"),e(1,s="A comprehensive health evaluation is recommended to investigate underlying contributors. Focus on removing inflammatory load (from diet, environment, gut), rebuilding recovery capacity (through sleep, nutrition, stress regulation), and restoring metabolic and hormonal balance."),e(2,o="CBC, liver and kidney panels, lipid profile, glucose\u2013insulin panel, full thyroid, adrenal, and sex hormone assessment, inflammatory markers (including hs-CRP), vitamin D, iron status, B12, folate, magnesium, zinc, homocysteine, Omega-3 Index, gut function tests (stool analysis, microbiome, breath tests), and autoimmune markers if indicated. Functional metrics such as HRV, VO\u2082max, and body composition can also support tracking of recovery.")),p<=33&&m>=67&&(e(3,v="Reduce systemic and environmental strain to stabilise vascular\u2013respiratory resilience"),e(4,f="Address autonomic stress by improving circadian alignment, enforcing structured recovery routines, and minimizing environmental exposures such as poor air quality, smoking, or occupational irritants. Support cardiovascular and respiratory health with moderate aerobic conditioning and regular monitoring of blood pressure and lung function."),e(5,h="Blood pressure assessment (including variability), lung function testing, full cardiometabolic panel. Consider advanced vascular imaging if risk factors or family history indicate. Where relevant, conduct sleep studies to rule out sleep apnoea and assess autonomic regulation using HRV or similar metrics.")),p<=33&&m>33&&m<67&&(e(3,v="Enhance vascular resilience and stabilise autonomic function"),e(4,f="Maintain regular aerobic and resistance training, and improve recovery quality by addressing sleep and stress regulation. Minimise factors that impair vascular function, such as excessive alcohol, high-sodium diets, or unmanaged blood pressure."),e(5,h="Cardiovascular screening with blood pressure monitoring (including variability), lipid profiling, glucose\u2013insulin testing. Assess circadian rhythm stability and recovery capacity through sleep quality assessment and HRV tracking, and consider advanced vascular imaging if risk factors or family history indicate.")),p<=33&&m<=33&&(e(3,v="Address vascular vulnerability and monitor for early disease markers"),e(4,f="Strengthen vascular integrity through a cardioprotective diet, regular aerobic activity, and maintaining optimal blood pressure and lipid balance. Consider targeted screening if family history is present."),e(5,h="Lipid profiling, glucose\u2013insulin assessment, hsCRP, and advanced cardiovascular risk screening (e.g., coronary calcium scoring or carotid intima-media thickness) when indicated. Autoimmune panels may be considered if clinical history or primary indexes suggest an autoimmune profile.")),p>33&&p<67&&m>=67&&(e(3,v="Reduce environmental stress load"),e(4,f="Reduce inflammatory triggers, improve air quality, manage stress, and optimizing body composition."),e(5,h="Smoking status confirmation, blood pressure variation, HRV for stress load, sleep quality assessment, environmental toxin review, and body composition analysis.")),p>33&&p<67&&m>33&&m<67&&(e(3,v="Maintain balance and monitor"),e(4,f="Review lifestyle rhythm, nutrient sufficiency, and signs of subtle cardiovascular or respiratory pressure."),e(5,h="Reassess blood pressure and HRV periodically to track stability.")),p>33&&p<67&&m<=33&&(e(3,v="Support vascular stability"),e(4,f="Maintain cardiovascular hygiene and monitor trends over time."),e(5,h="Check blood pressure and lipid profile at routine intervals.")),p>=67&&m>=67&&(e(3,v="Reduce environmental stress load"),e(4,f="Address toxin exposure, sleep disruption, and respiratory strain."),e(5,h="Assess blood pressure variation, HRV, sleep quality, and environmental toxin exposure profile.")),p>=67&&m>33&&m<67&&(e(3,v="Prevent escalation of autonomic strain"),e(4,f="Encourage continued support for circadian rhythm, respiratory hygiene, and stress-reducing lifestyle practices. Follow up if symptoms emerge or primary indexes shift unfavorably."),e(5,h="Periodically assess blood pressure, HRV and sleep patterns.")),p>=67&&m<=33&&(e(3,v="Maintain optimal supportive balance"),e(4,f="Continue current preventive strategies and monitor periodically."),e(5,h="No additional testing unless primary indexes indicate otherwise.")),e(6,V=!0)}),y.$$set=R=>{"service"in R&&e(7,d=R.service)},[r,s,o,v,f,h,V,d]}class U extends Z{constructor(c){super(),_(this,c,oe,se,ie,{service:7},re,[-1,-1])}get service(){return this.$$.ctx[7]}set service(c){this.$$set({service:c}),ee()}}customElements.define("ga-action-steps-three",X(U,{service:{}},[],[],!0));export{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as X,i as e2,s as t2,e as c,b as m,v as Z,m as Y,n as e,p as s,g as N,q as n,r as _,u as K,k as P,c as s2,f as q,a as a2,w as c2,x as d2,j as p2,t as u2,y as f2,o as h2}from"./index2.js";import{s as i2,l as r2,a as I}from"./helpers.js";function l2(i){let t,l,r;return{c(){t=c("div"),l=m(),r=c("div"),e(t,"position","absolute"),e(t,"right","10px"),e(t,"bottom","5px"),e(t,"height","3px"),e(t,"width","14px"),e(t,"background-color","#DD2222"),e(t,"border-radius","4px"),e(t,"transform","rotate(135deg)"),e(r,"position","absolute"),e(r,"right","10px"),e(r,"top","5px"),e(r,"height","3px"),e(r,"width","14px"),e(r,"background-color","#DD2222"),e(r,"border-radius","4px"),e(r,"transform","rotate(-135deg)")},m(o,p){N(o,t,p),N(o,l,p),N(o,r,p)},d(o){o&&(P(t),P(l),P(r))}}}function n2(i){let t,l,r;return{c(){t=c("div"),l=m(),r=c("div"),e(t,"position","absolute"),e(t,"left","11px"),e(t,"bottom","5px"),e(t,"height","3px"),e(t,"width","14px"),e(t,"background-color","#DD2222"),e(t,"border-radius","4px"),e(t,"transform","rotate(45deg)"),e(r,"position","absolute"),e(r,"left","11px"),e(r,"top","5px"),e(r,"height","3px"),e(r,"width","14px"),e(r,"background-color","#DD2222"),e(r,"border-radius","4px"),e(r,"transform","rotate(-45deg)")},m(o,p){N(o,t,p),N(o,l,p),N(o,r,p)},d(o){o&&(P(t),P(l),P(r))}}}function C2(i){let t,l,r,o,p,a,S,D,j,y,g,x,z,d,M,w,B,C,A,k,b,h,f,G,H,R,U=i2(i[0])+"",J,Q,W,L,T,O,V,$=i[1]==="left"&&l2(),E=i[1]==="right"&&n2();return{c(){t=c("div"),l=c("div"),$&&$.c(),r=m(),o=c("div"),p=m(),a=c("div"),S=m(),D=c("div"),j=m(),y=c("div"),g=m(),x=c("div"),z=m(),d=c("div"),M=m(),w=c("div"),E&&E.c(),B=m(),C=c("div"),A=Z("svg"),k=Z("rect"),h=m(),f=c("div"),G=c("b"),H=Y(i[0]),R=c("sup"),J=Y(U),Q=Y(" percentile"),W=m(),L=c("div"),T=Z("svg"),O=Z("path"),e(l,"position","relative"),e(l,"height","100%"),e(l,"flex","1"),e(l,"background-color",i[1]==="left"?"#DD2222":"#CADBD1"),e(l,"border-radius","4px"),e(o,"height","100%"),e(o,"flex","2"),e(o,"background-color",i[1]==="left"?"#DD2222":"#CADBD1"),e(o,"border-radius","4px"),e(a,"height","100%"),e(a,"flex","2"),e(a,"background-color",i[1]==="left"?"#EE6600":"#CADBD1"),e(a,"border-radius","4px"),e(D,"position","relative"),e(D,"height","100%"),e(D,"flex","2"),e(D,"background-color","#CADBD1"),e(D,"border-radius","4px"),e(y,"height","100%"),e(y,"flex","2"),e(y,"background-color","#CADBD1"),e(y,"border-radius","4px"),e(x,"height","100%"),e(x,"flex","2"),e(x,"background-color",i[1]==="left"?"#CADBD1":"#EE6600"),e(x,"border-radius","4px"),e(d,"height","100%"),e(d,"flex","2"),e(d,"background-color",i[1]==="left"?"#CADBD1":"#DD2222"),e(d,"border-radius","4px"),e(w,"position","relative"),e(w,"height","100%"),e(w,"flex","1"),e(w,"background-color",i[1]==="left"?"#CADBD1":"#DD2222"),e(w,"border-radius","4px"),s(k,"width","100"),s(k,"height","24"),s(k,"rx","4"),s(k,"fill",b=F(i[0],i[1])),s(A,"width","100"),s(A,"height","24"),s(A,"viewBox","0 0 100 24"),s(A,"fill","none"),s(A,"xmlns","http://www.w3.org/2000/svg"),e(C,"left",i[2](i[0])+"%"),e(C,"position","absolute"),e(C,"transform","translate(-50%, -100%)"),e(C,"display","flex"),e(C,"align-items","center"),e(C,"flex-direction","column"),e(C,"width","100px"),e(C,"height","38px"),e(R,"font-size","0.5rem"),e(f,"left",i[2](i[0])+"%"),e(f,"position","absolute"),e(f,"transform","translate(-50%, -95%)"),e(f,"display","flex"),e(f,"align-items","center"),e(f,"flex-direction","column"),e(f,"width","100px"),e(f,"height","38px"),e(f,"color","white"),e(f,"font-size","0.75rem"),s(O,"d","M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L0 8.07577e-07L12 0L6.8 6.93333Z"),s(O,"fill",V=F(i[0],i[1])),s(T,"width","12"),s(T,"height","8"),s(T,"viewBox","0 0 12 8"),s(T,"fill","none"),s(T,"xmlns","http://www.w3.org/2000/svg"),e(L,"left",i[2](i[0])+"%"),e(L,"position","absolute"),e(L,"transform","translate(-50%, -40%)"),e(L,"display","flex"),e(L,"align-items","center"),e(L,"flex-direction","column"),e(L,"width","100px"),e(L,"height","38px"),e(L,"color","white"),e(L,"font-size","0.75rem"),e(t,"position","relative"),e(t,"width","92%"),e(t,"height","4px"),e(t,"display","flex"),e(t,"justify-content","space-between"),e(t,"gap","4px")},m(u,v){N(u,t,v),n(t,l),$&&$.m(l,null),n(t,r),n(t,o),n(t,p),n(t,a),n(t,S),n(t,D),n(t,j),n(t,y),n(t,g),n(t,x),n(t,z),n(t,d),n(t,M),n(t,w),E&&E.m(w,null),n(t,B),n(t,C),n(C,A),n(A,k),n(t,h),n(t,f),n(f,G),n(G,H),n(G,R),n(R,J),n(G,Q),n(t,W),n(t,L),n(L,T),n(T,O)},p(u,[v]){u[1]==="left"?$||($=l2(),$.c(),$.m(l,null)):$&&($.d(1),$=null),v&2&&e(l,"background-color",u[1]==="left"?"#DD2222":"#CADBD1"),v&2&&e(o,"background-color",u[1]==="left"?"#DD2222":"#CADBD1"),v&2&&e(a,"background-color",u[1]==="left"?"#EE6600":"#CADBD1"),v&2&&e(x,"background-color",u[1]==="left"?"#CADBD1":"#EE6600"),v&2&&e(d,"background-color",u[1]==="left"?"#CADBD1":"#DD2222"),u[1]==="right"?E||(E=n2(),E.c(),E.m(w,null)):E&&(E.d(1),E=null),v&2&&e(w,"background-color",u[1]==="left"?"#CADBD1":"#DD2222"),v&3&&b!==(b=F(u[0],u[1]))&&s(k,"fill",b),v&1&&e(C,"left",u[2](u[0])+"%"),v&1&&_(H,u[0]),v&1&&U!==(U=i2(u[0])+"")&&_(J,U),v&1&&e(f,"left",u[2](u[0])+"%"),v&3&&V!==(V=F(u[0],u[1]))&&s(O,"fill",V),v&1&&e(L,"left",u[2](u[0])+"%")},i:K,o:K,d(u){u&&P(t),$&&$.d(),E&&E.d()}}}function F(i,t){return t==="left"?i>=34?"#119999":i>18&&i<34?"#EE6600":"#DD2222":i<=66?"#119999":i>66&&i<82?"#EE6600":"#DD2222"}function g2(i,t,l){let{percentile:r=0}=t,{direction:o=""}=t;function p(a){if(a===50)return 50;if(a<2)return 9;if(a>98)return 91;if(a>=2&&a<50)return r2(a,9.2,50,13,50);if(a>50&&a<=98)return r2(a,50,90.8,50,86.8)}return i.$$set=a=>{"percentile"in a&&l(0,r=a.percentile),"direction"in a&&l(1,o=a.direction)},[r,o,p]}class m2 extends X{constructor(t){super(),e2(this,t,g2,C2,t2,{percentile:0,direction:1})}}function x2(i){a2(i,"svelte-9bcij0",".main.svelte-9bcij0{height:100%;width:100%;display:flex}.label.svelte-9bcij0{width:25%;display:flex;align-items:center}")}function b2(i){let t,l,r;return{c(){t=Z("svg"),l=Z("path"),s(l,"d","M10.8656 29.0002L8.93229 25.7335L5.26563 24.9335C4.93229 24.8668 4.66563 24.6946 4.46563 24.4168C4.26563 24.139 4.18785 23.8335 4.23229 23.5002L4.59896 19.7335L2.09896 16.8668C1.87674 16.6224 1.76562 16.3335 1.76562 16.0002C1.76562 15.6668 1.87674 15.3779 2.09896 15.1335L4.59896 12.2668L4.23229 8.50016C4.18785 8.16682 4.26563 7.86127 4.46563 7.58349C4.66563 7.30571 4.93229 7.13349 5.26563 7.06682L8.93229 6.26682L10.8656 3.00016C11.0434 2.71127 11.2878 2.51682 11.599 2.41682C11.9101 2.31682 12.2212 2.33349 12.5323 2.46682L15.999 3.93349L19.4656 2.46682C19.7767 2.33349 20.0878 2.31682 20.399 2.41682C20.7101 2.51682 20.9545 2.71127 21.1323 3.00016L23.0656 6.26682L26.7323 7.06682C27.0656 7.13349 27.3323 7.30571 27.5323 7.58349C27.7323 7.86127 27.8101 8.16682 27.7656 8.50016L27.399 12.2668L29.899 15.1335C30.1212 15.3779 30.2323 15.6668 30.2323 16.0002C30.2323 16.3335 30.1212 16.6224 29.899 16.8668L27.399 19.7335L27.7656 23.5002C27.8101 23.8335 27.7323 24.139 27.5323 24.4168C27.3323 24.6946 27.0656 24.8668 26.7323 24.9335L23.0656 25.7335L21.1323 29.0002C20.9545 29.289 20.7101 29.4835 20.399 29.5835C20.0878 29.6835 19.7767 29.6668 19.4656 29.5335L15.999 28.0668L12.5323 29.5335C12.2212 29.6668 11.9101 29.6835 11.599 29.5835C11.2878 29.4835 11.0434 29.289 10.8656 29.0002ZM15.999 22.6668C16.3767 22.6668 16.6934 22.539 16.949 22.2835C17.2045 22.0279 17.3323 21.7113 17.3323 21.3335C17.3323 20.9557 17.2045 20.639 16.949 20.3835C16.6934 20.1279 16.3767 20.0002 15.999 20.0002C15.6212 20.0002 15.3045 20.1279 15.049 20.3835C14.7934 20.639 14.6656 20.9557 14.6656 21.3335C14.6656 21.7113 14.7934 22.0279 15.049 22.2835C15.3045 22.539 15.6212 22.6668 15.999 22.6668ZM15.999 17.3335C16.3767 17.3335 16.6934 17.2057 16.949 16.9502C17.2045 16.6946 17.3323 16.3779 17.3323 16.0002V10.6668C17.3323 10.289 17.2045 9.97238 16.949 9.71682C16.6934 9.46127 16.3767 9.33349 15.999 9.33349C15.6212 9.33349 15.3045 9.46127 15.049 9.71682C14.7934 9.97238 14.6656 10.289 14.6656 10.6668V16.0002C14.6656 16.3779 14.7934 16.6946 15.049 16.9502C15.3045 17.2057 15.6212 17.3335 15.999 17.3335Z"),s(l,"fill",r=i[3]==="#EE6600"?"#EE6600":"#DD2222"),s(t,"width","32"),s(t,"height","32"),s(t,"viewBox","0 0 32 32"),s(t,"fill","none"),s(t,"xmlns","http://www.w3.org/2000/svg")},m(o,p){N(o,t,p),n(t,l)},p(o,p){p&8&&r!==(r=o[3]==="#EE6600"?"#EE6600":"#DD2222")&&s(l,"fill",r)},d(o){o&&P(t)}}}function v2(i){let t,l;return{c(){t=Z("svg"),l=Z("path"),s(l,"d","M13.599 14.9335L11.6656 13.0335C11.4212 12.789 11.1156 12.6668 10.749 12.6668C10.3823 12.6668 10.0656 12.8002 9.79896 13.0668C9.55451 13.3113 9.43229 13.6224 9.43229 14.0002C9.43229 14.3779 9.55451 14.689 9.79896 14.9335L12.6656 17.8002C12.9323 18.0668 13.2434 18.2002 13.599 18.2002C13.9545 18.2002 14.2656 18.0668 14.5323 17.8002L20.199 12.1335C20.4656 11.8668 20.5934 11.5557 20.5823 11.2002C20.5712 10.8446 20.4434 10.5335 20.199 10.2668C19.9323 10.0002 19.6156 9.86127 19.249 9.85016C18.8823 9.83905 18.5656 9.96683 18.299 10.2335L13.599 14.9335ZM9.86563 27.0002L7.93229 23.7335L4.26563 22.9335C3.93229 22.8668 3.66563 22.6946 3.46563 22.4168C3.26563 22.1391 3.18785 21.8335 3.23229 21.5002L3.59896 17.7335L1.09896 14.8668C0.876736 14.6224 0.765625 14.3335 0.765625 14.0002C0.765625 13.6668 0.876736 13.3779 1.09896 13.1335L3.59896 10.2668L3.23229 6.50016C3.18785 6.16683 3.26563 5.86127 3.46563 5.58349C3.66563 5.30571 3.93229 5.13349 4.26563 5.06683L7.93229 4.26683L9.86563 1.00016C10.0434 0.711269 10.2878 0.516825 10.599 0.416825C10.9101 0.316825 11.2212 0.333491 11.5323 0.466825L14.999 1.93349L18.4656 0.466825C18.7767 0.333491 19.0878 0.316825 19.399 0.416825C19.7101 0.516825 19.9545 0.711269 20.1323 1.00016L22.0656 4.26683L25.7323 5.06683C26.0656 5.13349 26.3323 5.30571 26.5323 5.58349C26.7323 5.86127 26.8101 6.16683 26.7656 6.50016L26.399 10.2668L28.899 13.1335C29.1212 13.3779 29.2323 13.6668 29.2323 14.0002C29.2323 14.3335 29.1212 14.6224 28.899 14.8668L26.399 17.7335L26.7656 21.5002C26.8101 21.8335 26.7323 22.1391 26.5323 22.4168C26.3323 22.6946 26.0656 22.8668 25.7323 22.9335L22.0656 23.7335L20.1323 27.0002C19.9545 27.2891 19.7101 27.4835 19.399 27.5835C19.0878 27.6835 18.7767 27.6668 18.4656 27.5335L14.999 26.0668L11.5323 27.5335C11.2212 27.6668 10.9101 27.6835 10.599 27.5835C10.2878 27.4835 10.0434 27.2891 9.86563 27.0002Z"),s(l,"fill","#119999"),s(t,"width","30"),s(t,"height","28"),s(t,"viewBox","0 0 30 28"),s(t,"fill","none"),s(t,"xmlns","http://www.w3.org/2000/svg")},m(r,o){N(r,t,o),n(t,l)},p:K,d(r){r&&P(t)}}}function L2(i){let t,l,r,o,p,a=I(i[0],"GLYCAN")+"",S,D,j,y,g,x,z,d,M,w,B,C;M=new m2({props:{direction:i[1],percentile:i[4]}});function A(h,f){return h[3]==="#119999"?v2:b2}let k=A(i),b=k(i);return{c(){t=c("div"),l=c("div"),r=c("div"),o=c("div"),p=c("b"),S=Y(a),D=m(),j=c("b"),j.textContent=`${i[5].label}`,y=m(),g=c("div"),x=Y(i[2]),z=m(),d=c("div"),c2(M.$$.fragment),w=m(),B=c("div"),b.c(),e(o,"font-size","0.9rem"),e(r,"display","flex"),e(r,"flex-direction","column"),e(r,"padding-left","0.3rem"),s(l,"class","label svelte-9bcij0"),e(l,"font-size","0.8rem"),e(d,"width","70%"),e(d,"display","flex"),e(d,"align-items","center"),e(d,"justify-content","center"),e(B,"width","5%"),e(B,"height","100%"),e(B,"display","flex"),e(B,"align-items","center"),s(t,"class","main svelte-9bcij0")},m(h,f){N(h,t,f),n(t,l),n(l,r),n(r,o),n(o,p),n(p,S),n(o,D),n(o,j),n(r,y),n(r,g),n(g,x),n(t,z),n(t,d),d2(M,d,null),n(t,w),n(t,B),b.m(B,null),C=!0},p(h,[f]){(!C||f&1)&&a!==(a=I(h[0],"GLYCAN")+"")&&_(S,a),(!C||f&4)&&_(x,h[2]);const G={};f&2&&(G.direction=h[1]),f&16&&(G.percentile=h[4]),M.$set(G),k===(k=A(h))&&b?b.p(h,f):(b.d(1),b=k(h),b&&(b.c(),b.m(B,null)))},i(h){C||(p2(M.$$.fragment,h),C=!0)},o(h){u2(M.$$.fragment,h),C=!1},d(h){h&&P(t),f2(M),b.d()}}}function D2(i,t){return t==="left"?i>=34?"#119999":i>18&&i<34?"#EE6600":"#DD2222":i<=66?"#119999":i>66&&i<82?"#EE6600":"#DD2222"}function w2(i,t,l){let{lang:r}=t,{subtype:o}=t,{direction:p}=t,{service:a=window.GaReportService}=t,S=[{name:"mature",label:"Mature",csvName:"G0percentile"},{name:"youth",label:"Youth",csvName:"G2percentile"},{name:"shield",label:"Shield",csvName:"Spercentile"},{name:"lifestyle",label:"Lifestyle",csvName:"Bpercentile"},{name:"median",label:"Median",csvName:"G1percentile"},{name:"peak18",label:"18",csvName:"P18percentile"},{name:"peak22",label:"22",csvName:"P22percentile"},{name:"peak23",label:"23",csvName:"P23percentile"},{name:"peak26",label:"26",csvName:"P26percentile"}],D,j="",y="",g=0;const x=S.find(d=>d.name===o);function z(){return p==="right"?g<=66?I(r,"OPTIMAL"):I(r,"SUBOPTIMAL"):g>=34?I(r,"OPTIMAL"):I(r,"SUBOPTIMAL")}return h2(async()=>{D=await a.getReport(),x&&(l(4,g=Number(D[x.csvName])),l(2,j=z())),(g===100||g===0)&&l(4,g=g===100?99:1),l(3,y=D2(g,p))}),i.$$set=d=>{"lang"in d&&l(0,r=d.lang),"subtype"in d&&l(6,o=d.subtype),"direction"in d&&l(1,p=d.direction),"service"in d&&l(7,a=d.service)},[r,p,j,y,g,x,o,a]}class o2 extends X{constructor(t){super(),e2(this,t,w2,L2,t2,{lang:0,subtype:6,direction:1,service:7},x2)}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),q()}get subtype(){return this.$$.ctx[6]}set subtype(t){this.$$set({subtype:t}),q()}get direction(){return this.$$.ctx[1]}set direction(t){this.$$set({direction:t}),q()}get service(){return this.$$.ctx[7]}set service(t){this.$$set({service:t}),q()}}customElements.define("ga-arrow-graph-three",s2(o2,{lang:{},subtype:{},direction:{},service:{}},[],[],!0));export{o2 as default};
|
|
1
|
+
import{S as X,i as e2,s as t2,e as u,b,v as j,m as Y,n as e,p as s,g as k,q as o,r as q,u as K,k as A,c as s2,f as _,a as a2,w as c2,x as d2,j as p2,t as u2,y as h2,o as f2}from"./index2.js";import{s as i2,k as r2,a as z}from"./helpers.js";function l2(i){let t,l,r;return{c(){t=u("div"),l=b(),r=u("div"),e(t,"position","absolute"),e(t,"right","10px"),e(t,"bottom","5px"),e(t,"height","3px"),e(t,"width","14px"),e(t,"background-color","#DD2222"),e(t,"border-radius","4px"),e(t,"transform","rotate(135deg)"),e(r,"position","absolute"),e(r,"right","10px"),e(r,"top","5px"),e(r,"height","3px"),e(r,"width","14px"),e(r,"background-color","#DD2222"),e(r,"border-radius","4px"),e(r,"transform","rotate(-135deg)")},m(n,d){k(n,t,d),k(n,l,d),k(n,r,d)},d(n){n&&(A(t),A(l),A(r))}}}function n2(i){let t,l,r;return{c(){t=u("div"),l=b(),r=u("div"),e(t,"position","absolute"),e(t,"left","11px"),e(t,"bottom","5px"),e(t,"height","3px"),e(t,"width","14px"),e(t,"background-color","#DD2222"),e(t,"border-radius","4px"),e(t,"transform","rotate(45deg)"),e(r,"position","absolute"),e(r,"left","11px"),e(r,"top","5px"),e(r,"height","3px"),e(r,"width","14px"),e(r,"background-color","#DD2222"),e(r,"border-radius","4px"),e(r,"transform","rotate(-45deg)")},m(n,d){k(n,t,d),k(n,l,d),k(n,r,d)},d(n){n&&(A(t),A(l),A(r))}}}function g2(i){let t,l,r,n,d,a,G,L,M,B,f,g,S,p,N,x,T,m,C,c,y,Z,D,I,H,R,U=i2(i[0])+"",J,Q,W,w,P,O,V,$=i[1]==="left"&&l2(),E=i[1]==="right"&&n2();return{c(){t=u("div"),l=u("div"),$&&$.c(),r=b(),n=u("div"),d=b(),a=u("div"),G=b(),L=u("div"),M=b(),B=u("div"),f=b(),g=u("div"),S=b(),p=u("div"),N=b(),x=u("div"),E&&E.c(),T=b(),m=u("div"),C=j("svg"),c=j("rect"),Z=b(),D=u("div"),I=u("b"),H=Y(i[0]),R=u("sup"),J=Y(U),Q=Y(" percentile"),W=b(),w=u("div"),P=j("svg"),O=j("path"),e(l,"position","relative"),e(l,"height","100%"),e(l,"flex","1"),e(l,"background-color",i[1]==="left"?"#DD2222":"#CADBD1"),e(l,"border-radius","4px"),e(n,"height","100%"),e(n,"flex","2"),e(n,"background-color",i[1]==="left"?"#DD2222":"#CADBD1"),e(n,"border-radius","4px"),e(a,"height","100%"),e(a,"flex","2"),e(a,"background-color",i[1]==="left"?"#EE6600":"#CADBD1"),e(a,"border-radius","4px"),e(L,"position","relative"),e(L,"height","100%"),e(L,"flex","2"),e(L,"background-color","#CADBD1"),e(L,"border-radius","4px"),e(B,"height","100%"),e(B,"flex","2"),e(B,"background-color","#CADBD1"),e(B,"border-radius","4px"),e(g,"height","100%"),e(g,"flex","2"),e(g,"background-color",i[1]==="left"?"#CADBD1":"#EE6600"),e(g,"border-radius","4px"),e(p,"height","100%"),e(p,"flex","2"),e(p,"background-color",i[1]==="left"?"#CADBD1":"#DD2222"),e(p,"border-radius","4px"),e(x,"position","relative"),e(x,"height","100%"),e(x,"flex","1"),e(x,"background-color",i[1]==="left"?"#CADBD1":"#DD2222"),e(x,"border-radius","4px"),s(c,"width","100"),s(c,"height","24"),s(c,"rx","4"),s(c,"fill",y=F(i[0],i[1])),s(C,"width","100"),s(C,"height","24"),s(C,"viewBox","0 0 100 24"),s(C,"fill","none"),s(C,"xmlns","http://www.w3.org/2000/svg"),e(m,"left",i[2](i[0])+"%"),e(m,"position","absolute"),e(m,"transform","translate(-50%, -100%)"),e(m,"display","flex"),e(m,"align-items","center"),e(m,"flex-direction","column"),e(m,"width","100px"),e(m,"height","38px"),e(R,"font-size","0.5rem"),e(D,"left",i[2](i[0])+"%"),e(D,"position","absolute"),e(D,"transform","translate(-50%, -95%)"),e(D,"display","flex"),e(D,"align-items","center"),e(D,"flex-direction","column"),e(D,"width","100px"),e(D,"height","38px"),e(D,"color","white"),e(D,"font-size","0.75rem"),s(O,"d","M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L0 8.07577e-07L12 0L6.8 6.93333Z"),s(O,"fill",V=F(i[0],i[1])),s(P,"width","12"),s(P,"height","8"),s(P,"viewBox","0 0 12 8"),s(P,"fill","none"),s(P,"xmlns","http://www.w3.org/2000/svg"),e(w,"left",i[2](i[0])+"%"),e(w,"position","absolute"),e(w,"transform","translate(-50%, -40%)"),e(w,"display","flex"),e(w,"align-items","center"),e(w,"flex-direction","column"),e(w,"width","100px"),e(w,"height","38px"),e(w,"color","white"),e(w,"font-size","0.75rem"),e(t,"position","relative"),e(t,"width","92%"),e(t,"height","4px"),e(t,"display","flex"),e(t,"justify-content","space-between"),e(t,"gap","4px")},m(h,v){k(h,t,v),o(t,l),$&&$.m(l,null),o(t,r),o(t,n),o(t,d),o(t,a),o(t,G),o(t,L),o(t,M),o(t,B),o(t,f),o(t,g),o(t,S),o(t,p),o(t,N),o(t,x),E&&E.m(x,null),o(t,T),o(t,m),o(m,C),o(C,c),o(t,Z),o(t,D),o(D,I),o(I,H),o(I,R),o(R,J),o(I,Q),o(t,W),o(t,w),o(w,P),o(P,O)},p(h,[v]){h[1]==="left"?$||($=l2(),$.c(),$.m(l,null)):$&&($.d(1),$=null),v&2&&e(l,"background-color",h[1]==="left"?"#DD2222":"#CADBD1"),v&2&&e(n,"background-color",h[1]==="left"?"#DD2222":"#CADBD1"),v&2&&e(a,"background-color",h[1]==="left"?"#EE6600":"#CADBD1"),v&2&&e(g,"background-color",h[1]==="left"?"#CADBD1":"#EE6600"),v&2&&e(p,"background-color",h[1]==="left"?"#CADBD1":"#DD2222"),h[1]==="right"?E||(E=n2(),E.c(),E.m(x,null)):E&&(E.d(1),E=null),v&2&&e(x,"background-color",h[1]==="left"?"#CADBD1":"#DD2222"),v&3&&y!==(y=F(h[0],h[1]))&&s(c,"fill",y),v&1&&e(m,"left",h[2](h[0])+"%"),v&1&&q(H,h[0]),v&1&&U!==(U=i2(h[0])+"")&&q(J,U),v&1&&e(D,"left",h[2](h[0])+"%"),v&3&&V!==(V=F(h[0],h[1]))&&s(O,"fill",V),v&1&&e(w,"left",h[2](h[0])+"%")},i:K,o:K,d(h){h&&A(t),$&&$.d(),E&&E.d()}}}function F(i,t){return t==="left"?i>=34?"#119999":i>18&&i<34?"#EE6600":"#DD2222":i<=66?"#119999":i>66&&i<82?"#EE6600":"#DD2222"}function C2(i,t,l){let{percentile:r=0}=t,{direction:n=""}=t;function d(a){if(a===50)return 50;if(a<2)return 9;if(a>98)return 91;if(a>=2&&a<50)return r2(a,9.2,50,13,50);if(a>50&&a<=98)return r2(a,50,90.8,50,86.8)}return i.$$set=a=>{"percentile"in a&&l(0,r=a.percentile),"direction"in a&&l(1,n=a.direction)},[r,n,d]}class x2 extends X{constructor(t){super(),e2(this,t,C2,g2,t2,{percentile:0,direction:1})}}function m2(i){a2(i,"svelte-9bcij0",".main.svelte-9bcij0{height:100%;width:100%;display:flex}.label.svelte-9bcij0{width:25%;display:flex;align-items:center}")}function b2(i){let t,l=z(i[0],"GLYCAN")+"",r;return{c(){t=u("b"),r=Y(l)},m(n,d){k(n,t,d),o(t,r)},p(n,d){d&1&&l!==(l=z(n[0],"GLYCAN")+"")&&q(r,l)},d(n){n&&A(t)}}}function v2(i){let t,l,r;return{c(){t=j("svg"),l=j("path"),s(l,"d","M10.8656 29.0002L8.93229 25.7335L5.26563 24.9335C4.93229 24.8668 4.66563 24.6946 4.46563 24.4168C4.26563 24.139 4.18785 23.8335 4.23229 23.5002L4.59896 19.7335L2.09896 16.8668C1.87674 16.6224 1.76562 16.3335 1.76562 16.0002C1.76562 15.6668 1.87674 15.3779 2.09896 15.1335L4.59896 12.2668L4.23229 8.50016C4.18785 8.16682 4.26563 7.86127 4.46563 7.58349C4.66563 7.30571 4.93229 7.13349 5.26563 7.06682L8.93229 6.26682L10.8656 3.00016C11.0434 2.71127 11.2878 2.51682 11.599 2.41682C11.9101 2.31682 12.2212 2.33349 12.5323 2.46682L15.999 3.93349L19.4656 2.46682C19.7767 2.33349 20.0878 2.31682 20.399 2.41682C20.7101 2.51682 20.9545 2.71127 21.1323 3.00016L23.0656 6.26682L26.7323 7.06682C27.0656 7.13349 27.3323 7.30571 27.5323 7.58349C27.7323 7.86127 27.8101 8.16682 27.7656 8.50016L27.399 12.2668L29.899 15.1335C30.1212 15.3779 30.2323 15.6668 30.2323 16.0002C30.2323 16.3335 30.1212 16.6224 29.899 16.8668L27.399 19.7335L27.7656 23.5002C27.8101 23.8335 27.7323 24.139 27.5323 24.4168C27.3323 24.6946 27.0656 24.8668 26.7323 24.9335L23.0656 25.7335L21.1323 29.0002C20.9545 29.289 20.7101 29.4835 20.399 29.5835C20.0878 29.6835 19.7767 29.6668 19.4656 29.5335L15.999 28.0668L12.5323 29.5335C12.2212 29.6668 11.9101 29.6835 11.599 29.5835C11.2878 29.4835 11.0434 29.289 10.8656 29.0002ZM15.999 22.6668C16.3767 22.6668 16.6934 22.539 16.949 22.2835C17.2045 22.0279 17.3323 21.7113 17.3323 21.3335C17.3323 20.9557 17.2045 20.639 16.949 20.3835C16.6934 20.1279 16.3767 20.0002 15.999 20.0002C15.6212 20.0002 15.3045 20.1279 15.049 20.3835C14.7934 20.639 14.6656 20.9557 14.6656 21.3335C14.6656 21.7113 14.7934 22.0279 15.049 22.2835C15.3045 22.539 15.6212 22.6668 15.999 22.6668ZM15.999 17.3335C16.3767 17.3335 16.6934 17.2057 16.949 16.9502C17.2045 16.6946 17.3323 16.3779 17.3323 16.0002V10.6668C17.3323 10.289 17.2045 9.97238 16.949 9.71682C16.6934 9.46127 16.3767 9.33349 15.999 9.33349C15.6212 9.33349 15.3045 9.46127 15.049 9.71682C14.7934 9.97238 14.6656 10.289 14.6656 10.6668V16.0002C14.6656 16.3779 14.7934 16.6946 15.049 16.9502C15.3045 17.2057 15.6212 17.3335 15.999 17.3335Z"),s(l,"fill",r=i[3]==="#EE6600"?"#EE6600":"#DD2222"),s(t,"width","32"),s(t,"height","32"),s(t,"viewBox","0 0 32 32"),s(t,"fill","none"),s(t,"xmlns","http://www.w3.org/2000/svg")},m(n,d){k(n,t,d),o(t,l)},p(n,d){d&8&&r!==(r=n[3]==="#EE6600"?"#EE6600":"#DD2222")&&s(l,"fill",r)},d(n){n&&A(t)}}}function L2(i){let t,l;return{c(){t=j("svg"),l=j("path"),s(l,"d","M13.599 14.9335L11.6656 13.0335C11.4212 12.789 11.1156 12.6668 10.749 12.6668C10.3823 12.6668 10.0656 12.8002 9.79896 13.0668C9.55451 13.3113 9.43229 13.6224 9.43229 14.0002C9.43229 14.3779 9.55451 14.689 9.79896 14.9335L12.6656 17.8002C12.9323 18.0668 13.2434 18.2002 13.599 18.2002C13.9545 18.2002 14.2656 18.0668 14.5323 17.8002L20.199 12.1335C20.4656 11.8668 20.5934 11.5557 20.5823 11.2002C20.5712 10.8446 20.4434 10.5335 20.199 10.2668C19.9323 10.0002 19.6156 9.86127 19.249 9.85016C18.8823 9.83905 18.5656 9.96683 18.299 10.2335L13.599 14.9335ZM9.86563 27.0002L7.93229 23.7335L4.26563 22.9335C3.93229 22.8668 3.66563 22.6946 3.46563 22.4168C3.26563 22.1391 3.18785 21.8335 3.23229 21.5002L3.59896 17.7335L1.09896 14.8668C0.876736 14.6224 0.765625 14.3335 0.765625 14.0002C0.765625 13.6668 0.876736 13.3779 1.09896 13.1335L3.59896 10.2668L3.23229 6.50016C3.18785 6.16683 3.26563 5.86127 3.46563 5.58349C3.66563 5.30571 3.93229 5.13349 4.26563 5.06683L7.93229 4.26683L9.86563 1.00016C10.0434 0.711269 10.2878 0.516825 10.599 0.416825C10.9101 0.316825 11.2212 0.333491 11.5323 0.466825L14.999 1.93349L18.4656 0.466825C18.7767 0.333491 19.0878 0.316825 19.399 0.416825C19.7101 0.516825 19.9545 0.711269 20.1323 1.00016L22.0656 4.26683L25.7323 5.06683C26.0656 5.13349 26.3323 5.30571 26.5323 5.58349C26.7323 5.86127 26.8101 6.16683 26.7656 6.50016L26.399 10.2668L28.899 13.1335C29.1212 13.3779 29.2323 13.6668 29.2323 14.0002C29.2323 14.3335 29.1212 14.6224 28.899 14.8668L26.399 17.7335L26.7656 21.5002C26.8101 21.8335 26.7323 22.1391 26.5323 22.4168C26.3323 22.6946 26.0656 22.8668 25.7323 22.9335L22.0656 23.7335L20.1323 27.0002C19.9545 27.2891 19.7101 27.4835 19.399 27.5835C19.0878 27.6835 18.7767 27.6668 18.4656 27.5335L14.999 26.0668L11.5323 27.5335C11.2212 27.6668 10.9101 27.6835 10.599 27.5835C10.2878 27.4835 10.0434 27.2891 9.86563 27.0002Z"),s(l,"fill","#119999"),s(t,"width","30"),s(t,"height","28"),s(t,"viewBox","0 0 30 28"),s(t,"fill","none"),s(t,"xmlns","http://www.w3.org/2000/svg")},m(r,n){k(r,t,n),o(t,l)},p:K,d(r){r&&A(t)}}}function D2(i){let t,l,r,n,d,a,G,L,M,B,f,g,S,p,N,x=(i[5].name==="shield"||i[5].name==="mature"||i[5].name==="median"||i[5].name==="youth"||i[5].name==="lifestyle")&&b2(i);g=new x2({props:{direction:i[1],percentile:i[4]}});function T(c,y){return c[3]==="#119999"?L2:v2}let m=T(i),C=m(i);return{c(){t=u("div"),l=u("div"),r=u("div"),n=u("div"),x&&x.c(),d=b(),a=u("b"),a.textContent=`${i[5].label}`,G=b(),L=u("div"),M=Y(i[2]),B=b(),f=u("div"),c2(g.$$.fragment),S=b(),p=u("div"),C.c(),e(n,"font-size","0.9rem"),e(r,"display","flex"),e(r,"flex-direction","column"),e(r,"padding-left","0.3rem"),s(l,"class","label svelte-9bcij0"),e(l,"font-size","0.8rem"),e(f,"width","70%"),e(f,"display","flex"),e(f,"align-items","center"),e(f,"justify-content","center"),e(p,"width","5%"),e(p,"height","100%"),e(p,"display","flex"),e(p,"align-items","center"),s(t,"class","main svelte-9bcij0")},m(c,y){k(c,t,y),o(t,l),o(l,r),o(r,n),x&&x.m(n,null),o(n,d),o(n,a),o(r,G),o(r,L),o(L,M),o(t,B),o(t,f),d2(g,f,null),o(t,S),o(t,p),C.m(p,null),N=!0},p(c,[y]){(c[5].name==="shield"||c[5].name==="mature"||c[5].name==="median"||c[5].name==="youth"||c[5].name==="lifestyle")&&x.p(c,y),(!N||y&4)&&q(M,c[2]);const Z={};y&2&&(Z.direction=c[1]),y&16&&(Z.percentile=c[4]),g.$set(Z),m===(m=T(c))&&C?C.p(c,y):(C.d(1),C=m(c),C&&(C.c(),C.m(p,null)))},i(c){N||(p2(g.$$.fragment,c),N=!0)},o(c){u2(g.$$.fragment,c),N=!1},d(c){c&&A(t),x&&x.d(),h2(g),C.d()}}}function w2(i,t){return t==="left"?i>=34?"#119999":i>18&&i<34?"#EE6600":"#DD2222":i<=66?"#119999":i>66&&i<82?"#EE6600":"#DD2222"}function y2(i,t,l){let{lang:r}=t,{subtype:n}=t,{direction:d}=t,{service:a=window.GaReportService}=t,G=[{name:"mature",label:"Mature",csvName:"G0percentile"},{name:"youth",label:"Youth",csvName:"G2percentile"},{name:"shield",label:"Shield",csvName:"Spercentile"},{name:"lifestyle",label:"Lifestyle",csvName:"Bpercentile"},{name:"median",label:"Median",csvName:"G1percentile"},{name:"peak18",label:"P18",csvName:"P18percentile"},{name:"peak22",label:"P22",csvName:"P22percentile"},{name:"peak23",label:"P23",csvName:"P23percentile"},{name:"peak26",label:"P26",csvName:"P26percentile"}],L,M="",B="",f=0;const g=G.find(p=>p.name===n);function S(){return d==="right"?f<=66?z(r,"OPTIMAL"):z(r,"SUBOPTIMAL"):f>=34?z(r,"OPTIMAL"):z(r,"SUBOPTIMAL")}return f2(async()=>{L=await a.getReport(),g&&(l(4,f=Number(L[g.csvName])),l(2,M=S())),(f===100||f===0)&&l(4,f=f===100?99:1),l(3,B=w2(f,d))}),i.$$set=p=>{"lang"in p&&l(0,r=p.lang),"subtype"in p&&l(6,n=p.subtype),"direction"in p&&l(1,d=p.direction),"service"in p&&l(7,a=p.service)},[r,d,M,B,f,g,n,a]}class o2 extends X{constructor(t){super(),e2(this,t,y2,D2,t2,{lang:0,subtype:6,direction:1,service:7},m2)}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),_()}get subtype(){return this.$$.ctx[6]}set subtype(t){this.$$set({subtype:t}),_()}get direction(){return this.$$.ctx[1]}set direction(t){this.$$set({direction:t}),_()}get service(){return this.$$.ctx[7]}set service(t){this.$$set({service:t}),_()}}customElements.define("ga-arrow-graph-three",s2(o2,{lang:{},subtype:{},direction:{},service:{}},[],[],!0));export{o2 as default};
|
package/dist/helpers.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let r={BIOLOGICAL_AGE:"Biological age",CHRONOLOGICAL_AGE:"Chronological age",CHRONOLOGICAL_AGE_TWO:"chronological age",SI_SCORE:"SI score",GLYCAN:"Glycan",PEAK:"Peak",LOWER_THAN_AVERAGE:"Lower than average",BELOW_AVERAGE:"Below average",AROUND_AVERAGE:"Around average",HIGHER_THAN_AVERAGE:"Higher than average",ABOVE_AVERAGE:"Above average",SOME_OVERLAP_LONG:"Some overlap",MINOR_OVERLAP_LONG:"Minor overlap",NO_OVERLAP_LONG:"No significant overlap",SOME_OVERLAP:"Some overlap",MINOR_OVERLAP:"Minor overlap",NO_OVERLAP:"No significant overlap",OVERLAP_TEXT:"of glycan indexes between your patient and this condition.",SYMPTOMS:"Signs and symptoms",SYMPTOM_ONE:"Usually asymptomatic",SYMPTOM_TWO:"BP consistently >140/90 mmHg",SYMPTOM_THREE:"Signs of malignant hypertension (headache, dizziness, breathlessness, etc.)",SYMPTOM_FOUR:"Signs of coronary artery disease (e.g., self-resolving chest pain, breathlessness)",SYMPTOM_FIVE:"Signs of peripheral artery disease (e.g., leg pain during activity)",SYMPTOM_SIX:"Self-limiting chest pain \xB1 radiation into jaw/left arm/back",SYMPTOM_SEVEN:"Breathlessness",SYMPTOM_EIGHT:"Other (syncope, palpitations, leg edema, orthopnea, etc.)",SYMPTOM_NINE:"Abdominal pain and cramping/left arm/back",SYMPTOM_TEN:"Recurring diarrhea (\xB1 blood)",SYMPTOM_TEN_B:"Urgency to defecate",SYMPTOM_ELEVEN:"Weight loss",SYMPTOM_TWELVE:"Systemic (e.g., fatigue, weight loss, mouth ulcers, butterfly skin rash)",SYMPTOM_THIRTEEN:"Organ-specific (chest pain, difficulty breathing, leg swelling, anaemia, etc.)",SYMPTOM_FOURTEEN:"Joint pain and swelling",SYMPTOM_FIFTEEN:"Fatigue",SYMPTOM_SIXTEEN:"Increased thirst and frequent urination",SYMPTOM_SEVENTEEN:"Slow wound healing, blurred vision, frequent thrush",SYMPTOM_EIGHTEEN:"Difficulty breathing",SYMPTOM_NINETEEN:"Chronic cough (\xB1 productive)",SYMPTOM_TWENTY:"Irregular menstrual cycle",SYMPTOM_TWENTYONE:"Vasomotor symptoms (e.g., hot flushes, night sweats)",SYMPTOM_TWENTYTWO:"Other (e.g., mood swings, cognitive difficulties, sleep disturbance)",SYMPTOM_TWENTYTHREE:"Joint pain, swelling, stiffness and erythema",SYMPTOM_TWENTYFOUR:"Smaller and distant joint involvement (fingers, toes), usually symmetrical",SYMPTOM_TWENTYFIVE:"Systemic (fatigue, weight loss, etc.)",POSSIBLE_FOLLOW_UP:"Possible follow-up",POSSIBLE_FOLLOW_UP_ONE:"Serial blood pressure (BP) measurements \xC2\xB1 24-hour BP monitoring",POSSIBLE_FOLLOW_UP_TWO:"BMI and/or body composition check",POSSIBLE_FOLLOW_UP_THREE:"Basic bloods (lipid profile, renal and liver function)",POSSIBLE_FOLLOW_UP_FOUR:"Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"BP check",POSSIBLE_FOLLOW_UP_SIX:"ECG",POSSIBLE_FOLLOW_UP_SEVEN:"Cardiology referral for other tests (e.g., cardiac echo, coronary CT)",POSSIBLE_FOLLOW_UP_SEVEN_B:"Cardiology referral for other tests (e.g., coronary artery calcium score)",POSSIBLE_FOLLOW_UP_SEVEN_C:"Cardiology referral for other tests (e.g., stress echocardiogram)",POSSIBLE_FOLLOW_UP_EIGHT:"Blood tests: full blood count, renal and liver function, CRP",POSSIBLE_FOLLOW_UP_NINE:"Stool tests: faecal immunochemical test (FIT), faecal calprotectin",POSSIBLE_FOLLOW_UP_TEN:"Referral for CT colonoscopy",POSSIBLE_FOLLOW_UP_ELEVEN:"Blood tests: full blood count, renal and liver function, CRP, ESR, autoantibodies (e.g., ANA, anti-dsDNA)",POSSIBLE_FOLLOW_UP_TWELVE:"Urinalysis",POSSIBLE_FOLLOW_UP_THIRTEEN:"Organ-targeted imaging (e.g., CT thorax, CT abdomen)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Blood tests: full blood count, renal and liver function, fasting glucose and insulin, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Lipid profile blood tests: basic and extended (incl. oxLDL, VLDL, LDL-P, Lp-PLA2, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Other blood tests hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Blood tests: full blood count",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometry",POSSIBLE_FOLLOW_UP_NINETEEN:"ECG, chest X-ray",POSSIBLE_FOLLOW_UP_TWENTY:"Blood tests (incl. FSH, oestradiol, progesterone, testosterone, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Referral to (peri)menopause specialist/gynaecologist",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Blood tests: full blood count, rheumatoid factor, anti-CCP antibodies, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Joint imaging (X-rays, MRI)",PERCENTILE:"percentile",SINGLE_PERCENTILE:"percentile",RISK_FACTORS:"Risk factors",RISK_FACTOR_ONE:"Past medical history (cardiometabolic syndrome, autoimmune disease)",RISK_FACTOR_TWO:"Medication history (e.g., statins, blood thinners)",RISK_FACTOR_THREE:"Current/previous smoking history",RANKS_YOU:"This result ranks you in the",THIS_RESULT_RANKS_IN_THE:"This result ranks in the",RELATED_RESEARCH_PAPERS:"Related research papers",YOUR_RESULT:"Your result",CHRONIC_INFLAMMATION:"Chronic inflammation",SYSTEMIC_INFLAMMATION:"Systemic inflammation",ANTI_INFLAMMATORY:"Anti-inflammatory",ANTI_INFLAMMATORY_INDEX:"Anti-inflammatory index",PRO_INFLAMMATORY:"Pro-inflammatory",PRO_INFLAMMATORY_INDEX:"Pro-inflammatory index",SUPPORTIVE_INDEX:"Supportive index",GLYCAN_SHIELD:"Glycan Shield (S)",GLYCAN_YOUTH:"Glycan Youth (G2)",GLYCAN_MATURE:"Glycan Mature (G0)",GLYCAN_MEDIAN:"Glycan Median (G1)",GLYCAN_LIFESTYLE:"Glycan Lifestyle (B)",GLYCAN_LIFESTYLE_B:"Glycan Bisection (B)",WORSE:"Worse",BETTER:"Better",OPTIMAL:"Optimal",SUBOPTIMAL:"Suboptimal",AVERAGE:"Average",INDEX_SCORE:"Index score",MEASURED_RESULT:"Measured result",POPULATION_AVERAGE:"Population average",AGE:"Age",SAME_AS:"Same as",THAN:"than",YEAR_OLDER:"year older",YEARS_OLDER:"years older",YEAR_YOUNGER:"year younger",YEARS_YOUNGER:"years younger",AREA:"Area",CONDITION:"Condition",OVERLAPS:"Overlaps",CARDIOVASCULAR:"Cardiovascular",METABOLIC:"Metabolic",AUTOIMMUNE:"Autoimmune",RESPIRATORY:"Respiratory",FEMALE:"Female",RISK_OF_HYPER:"Inc. risk of hypertension",PRE_HYPERTENSION:"Pre-hypertension",HYPERTENSION:"Hypertension",MI_CVA:"MI & CVA",ATHEROSCLEROSIS:"Atherosclerosis",CORONARY:"Coronary artery disease",TYPE_2_DIABETES:"Type 2 diabetes",DYSLIPIDEMIA:"Dyslipidemia",RHEUMATOID:"Rheumatoid arthritis",ULCERATIVE_COLITIS:"Ulcerative colitis",CROHN:"Crohn's disease",SLE:"SLE",COPD:"COPD",PERIMENOPAUSE:"Perimenopause",NO_SIGNIFICANT_OVERLAP:"No significant overlap"},t={BIOLOGICAL_AGE:"Wiek biologiczny",CHRONOLOGICAL_AGE:"Wiek Kalendarzowy",GLYCAN:"Glikan",PEAK:"Pik",LOWER_THAN_AVERAGE:"ni\u017Cszy od warto\u015Bci \u015Bredniej",AROUND_AVERAGE:"W okolicach warto\u015Bci \u015Bredniej",HIGHER_THAN_AVERAGE:"wy\u017Cszy od warto\u015Bci \u015Bredniej",SOME_OVERLAP_LONG:"Znaczny stopie\u0144 pokrywania si\u0119",MINOR_OVERLAP_LONG:"Nieznaczne stopie\u0144 pokrywania si\u0119",NO_OVERLAP_LONG:"Brak znacz\u0105cego pokrywania si\u0119",SOME_OVERLAP:"Cz\u0119\u015Bciowy",MINOR_OVERLAP:"Niewielki",NO_OVERLAP:"Brak",OVERLAP_TEXT:"indeks\xF3w glikanowych mi\u0119dzy pacjentem a badanymi z tym schorzeniem.",SYMPTOMS:"Sygna\u0142y i objawy",SYMPTOM_ONE:"Przewa\u017Cnie przebiega w spos\xF3b bezobjawowy",SYMPTOM_TWO:"Ci\u015Bnienie t\u0119tnicze stale >140/90 mmHg",SYMPTOM_THREE:"Objawy nadci\u015Bnienia z\u0142o\u015Bliwego (b\xF3l g\u0142owy, zawroty g\u0142owy, duszno\u015B\u0107 itp.)",SYMPTOM_FOUR:"Objawy choroby wie\u0144cowej (np. samoistnie ust\u0119puj\u0105cy b\xF3l w klatce piersiowej, bezdech)",SYMPTOM_FIVE:"Objawy choroby t\u0119tnic obwodowych (np. b\xF3l n\xF3g podczas aktywno\u015Bci)",SYMPTOM_SIX:"Samoograniczaj\u0105cy si\u0119 b\xF3l w klatce piersiowej \xB1 promieniuj\u0105cy do szcz\u0119ki/lewego ramienia/plec\xF3w",SYMPTOM_SEVEN:"Duszno\u015B\u0107",SYMPTOM_EIGHT:"Inne (omdlenia, ko\u0142atanie serca, obrz\u0119k n\xF3g, orhhopnoe itp.)",SYMPTOM_NINE:"B\xF3l brzucha i skurcze",SYMPTOM_TEN:"Nawracaj\u0105ca biegunka (\xB1 krew)",SYMPTOM_TEN_B:"Nag\u0142a potrzeba wypr\xF3\u017Cnienia",SYMPTOM_ELEVEN:"Utrata masy cia\u0142a",SYMPTOM_TWELVE:"Og\xF3lnoustrojowe (np. zm\u0119czenie, utrata masy cia\u0142a, owrzodzenia jamy ustnej, wysypka w kszta\u0142cie motyla w okolicy policzk\xF3w i nosa)",SYMPTOM_THIRTEEN:"Narz\u0105dowe (b\xF3l w klatce piersiowej, trudno\u015Bci w oddychaniu, obrz\u0119k n\xF3g, niedokrwisto\u015B\u0107 itp.)",SYMPTOM_FOURTEEN:"B\xF3l i obrz\u0119k staw\xF3w",SYMPTOM_FIFTEEN:"Zm\u0119czenie",SYMPTOM_SIXTEEN:"Zwi\u0119kszone pragnienie i cz\u0119ste oddawanie moczu",SYMPTOM_SEVENTEEN:"Powolne gojenie si\u0119 ran, niewyra\u017Ane widzenie, cz\u0119ste ple\u015Bniawki",SYMPTOM_EIGHTEEN:"Trudno\u015Bci w oddychaniu",SYMPTOM_NINETEEN:"Przewlek\u0142y kaszel (\xB1 produktywny)",SYMPTOM_TWENTY:"Nieregularny cykl menstruacyjny",SYMPTOM_TWENTYONE:"Objawy naczynioruchowe (np. uderzenia gor\u0105ca)",SYMPTOM_TWENTYTWO:"Inne (np. wahania nastroju, trudno\u015Bci poznawcze, zaburzenia snu)",SYMPTOM_TWENTYTHREE:"B\xF3l staw\xF3w, obrz\u0119k, sztywno\u015B\u0107 i rumie\u0144",SYMPTOM_TWENTYFOUR:"Zaj\u0119cie mniejszych staw\xF3w dystalnych (palce r\u0105k i n\xF3g), zwykle symetryczne",SYMPTOM_TWENTYFIVE:"Og\xF3lnoustrojowe (zm\u0119czenie, utrata masy cia\u0142a itp.)",POSSIBLE_FOLLOW_UP:"Ewentualne dalsze dzia\u0142ania",POSSIBLE_FOLLOW_UP_ONE:"Seryjne pomiary ci\u015Bnienia t\u0119tniczego i/lub 24-godzinne monitorowanie ci\u015Bnienia t\u0119tniczego",POSSIBLE_FOLLOW_UP_TWO:"BMI i/lub kontrola sk\u0142adu cia\u0142a",POSSIBLE_FOLLOW_UP_THREE:"Podstawowe badania krwi (profil lipidowy, czynno\u015B\u0107 nerek i w\u0105troby)",POSSIBLE_FOLLOW_UP_FOUR:"Badania krwi: podstawowy i rozszerzony profil lipidowy (np. Lp(a), ApoB), hsCRP, homocysteina, czynno\u015B\u0107 nerek i w\u0105troby, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"Kontrola ci\u015Bnienia t\u0119tniczego",POSSIBLE_FOLLOW_UP_SIX:"EKG",POSSIBLE_FOLLOW_UP_SEVEN:"Skierowanie do kardiologa na inne badania (np. echo serca, TK naczy\u0144 wie\u0144cowych)",POSSIBLE_FOLLOW_UP_SEVEN_B:"Skierowanie do kardiologa na inne badania (np. wska\u017Anik uwapnienia t\u0119tnic wie\u0144cowych)",POSSIBLE_FOLLOW_UP_SEVEN_C:"Skierowanie do kardiologa na inne badania (np. echokardiogram wysi\u0142kowy)",POSSIBLE_FOLLOW_UP_EIGHT:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, CRP",POSSIBLE_FOLLOW_UP_NINE:"Badania ka\u0142u: test na obecno\u015B\u0107 krwi utajonej (FIT), kalprotektyna w kale",POSSIBLE_FOLLOW_UP_TEN:"Skierowanie na kolonoskopi\u0119, TK",POSSIBLE_FOLLOW_UP_ELEVEN:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, CRP, OB, autoprzeciwcia\u0142a (np. ANA, w tym anty-dsDNA).",POSSIBLE_FOLLOW_UP_TWELVE:"Badanie og\xF3lne moczu",POSSIBLE_FOLLOW_UP_THIRTEEN:"Badania obrazowe ukierunkowane na narz\u0105dy (np. TK klatki piersiowej, TK jamy brzusznej)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, st\u0119\u017Cenie glukozy i insuliny na czczo, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Badania profilu lipidowego krwi: podstawowe i rozszerzone (np. oxLDL, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Inne badania krwi hsCRP, homocysteina, czynno\u015B\u0107 nerek i w\u0105troby, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Badania krwi: pe\u0142na morfologia krwi",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometria",POSSIBLE_FOLLOW_UP_NINETEEN:"EKG, RTG klatki piersiowej",POSSIBLE_FOLLOW_UP_TWENTY:"Badania krwi (w tym FSH, estradiol, progesteron, testosteron, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Skierowanie do specjalisty/ginekologa zajmuj\u0105cego si\u0119 (peri)menopauz\u0105",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Badania krwi: pe\u0142na morfologia krwi, czynnik reumatoidalny, przeciwcia\u0142a anty-CCP, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Obrazowanie staw\xF3w (zdj\u0119cia rentgenowskie, rezonans magnetyczny)",PERCENTILE:"percentylu",SINGLE_PERCENTILE:"percentyl",RISK_FACTORS:"Czynniki ryzyka",RISK_FACTOR_ONE:"Historia chor\xF3b (np. zesp\xF3\u0142 kardiometaboliczny, choroby autoimmunologiczne)",RISK_FACTOR_TWO:"Historia przyjmowania lek\xF3w (np. statyn, lek\xF3w przeciwzakrzepowych)",RISK_FACTOR_THREE:"Palenie tytoniu",RANKS_YOU:"Twoj wynik klasyfikuje Ci\u0119 w",RELATED_RESEARCH_PAPERS:"Publikacje naukowe",YOUR_RESULT:"Tw\xF3j wynik",CHRONIC_INFLAMMATION:"TempText POLISH1",ANTI_INFLAMMATORY:"TempText POLISH2",PRO_INFLAMMATORY:"TempText POLISH3",SUPPORTIVE_INDEX:"TempText POLISH4",GLYCAN_SHIELD:"TempText Shield (S)",GLYCAN_YOUTH:"TempText Youth (G2)",GLYCAN_MATURE:"TempText Mature (G0)",GLYCAN_MEDIAN:"TempText Median (G1)",GLYCAN_LIFESTYLE:"TempText Lifestyle (B)",WORSE:"TempText Worse",BETTER:"TempText Better",AVERAGE:"TempText Average"},L={BIOLOGICAL_AGE:"Biolo\u0161ka starost",CHRONOLOGICAL_AGE:"Kronolo\u0161ka starost",CHRONOLOGICAL_AGE_TWO:"kronolo\u0161ke starosti",RANKS_YOU:"Ta rezultat vas uvr\u0161\u010Da med",PERCENTILE:"percentilov",SINGLE_PERCENTILE:"percentil",YOUR_RESULT:"Va\u0161 rezultat",GLYCAN_SHIELD:"Glikanski \u0161\u010Dit (S)",GLYCAN_YOUTH:"Mladost glikanov (G2)",GLYCAN_MATURE:"Zrelost glikanov (G0)",GLYCAN_MEDIAN:"Povpre\u010Dje glikanov (G1)",GLYCAN_LIFESTYLE:"\u017Divljenjski slog glikanov (B)",GLYCAN_LIFESTYLE_B:"\u017Divljenjski slog glikanov (B)",CHRONIC_INFLAMMATION:"Kroni\u010Dno vnetje",ANTI_INFLAMMATORY:"Protivnetni",ANTI_INFLAMMATORY_INDEX:"Protivnetni index",PRO_INFLAMMATORY:"Pro-vnetni",PRO_INFLAMMATORY_INDEX:"Pro-vnetni index",SUPPORTIVE_INDEX:"Podporni kazalnik",WORSE:"Slab\u0161e",BETTER:"Bolj\u0161e",OPTIMAL:"Optimalen",SUBOPTIMAL:"neoptimalno",AVERAGE:"Povpre\u010Dje",AROUND_AVERAGE:"Pribli\u017Eno povpre\u010Dje",THIS_RESULT_RANKS_IN_THE:"Ta rezultat se uvr\u0161\u010Da med",INDEX_SCORE:"Rezultat kazalnika",MEASURED_RESULT:"Va\u0161 rezultat",POPULATION_AVERAGE:"Povpre\u010Dje prebivalstva",AGE:"Dob",SAME_AS:"Enako kot",THAN:"od",YEAR_OLDER:"starej\u0161i",YEARS_OLDER:"starej\u0161i",YEAR_YOUNGER:"let mlaj\u0161i",YEARS_YOUNGER:"let mlaj\u0161i"},S={BIOLOGICAL_AGE:"\u751F\u7269\u5B66\u7684\u5E74\u9F62",CHRONOLOGICAL_AGE:"\u66A6\u5E74\u9F62",CHRONOLOGICAL_AGE_TWO:"\u66A6\u5E74\u9F62",SI_SCORE:"SI score",GLYCAN:"Glycan",PEAK:"Peak",LOWER_THAN_AVERAGE:"Lower than average",BELOW_AVERAGE:"Below average",AROUND_AVERAGE:"\u5E73\u5747\u5024\u304F\u3089\u3044",HIGHER_THAN_AVERAGE:"Higher than average",ABOVE_AVERAGE:"Above average",SOME_OVERLAP_LONG:"Some overlap",MINOR_OVERLAP_LONG:"Minor overlap",NO_OVERLAP_LONG:"No significant overlap",SOME_OVERLAP:"Some overlap",MINOR_OVERLAP:"Minor overlap",NO_OVERLAP:"No significant overlap",OVERLAP_TEXT:"of glycan indexes between your patient and this condition.",SYMPTOMS:"Signs and symptoms",SYMPTOM_ONE:"Usually asymptomatic",SYMPTOM_TWO:"BP consistently >140/90 mmHg",SYMPTOM_THREE:"Signs of malignant hypertension (headache, dizziness, breathlessness, etc.)",SYMPTOM_FOUR:"Signs of coronary artery disease (e.g., self-resolving chest pain, breathlessness)",SYMPTOM_FIVE:"Signs of peripheral artery disease (e.g., leg pain during activity)",SYMPTOM_SIX:"Self-limiting chest pain \xB1 radiation into jaw/left arm/back",SYMPTOM_SEVEN:"Breathlessness",SYMPTOM_EIGHT:"Other (syncope, palpitations, leg edema, orthopnea, etc.)",SYMPTOM_NINE:"Abdominal pain and cramping/left arm/back",SYMPTOM_TEN:"Recurring diarrhea (\xB1 blood)",SYMPTOM_TEN_B:"Urgency to defecate",SYMPTOM_ELEVEN:"Weight loss",SYMPTOM_TWELVE:"Systemic (e.g., fatigue, weight loss, mouth ulcers, butterfly skin rash)",SYMPTOM_THIRTEEN:"Organ-specific (chest pain, difficulty breathing, leg swelling, anaemia, etc.)",SYMPTOM_FOURTEEN:"Joint pain and swelling",SYMPTOM_FIFTEEN:"Fatigue",SYMPTOM_SIXTEEN:"Increased thirst and frequent urination",SYMPTOM_SEVENTEEN:"Slow wound healing, blurred vision, frequent thrush",SYMPTOM_EIGHTEEN:"Difficulty breathing",SYMPTOM_NINETEEN:"Chronic cough (\xB1 productive)",SYMPTOM_TWENTY:"Irregular menstrual cycle",SYMPTOM_TWENTYONE:"Vasomotor symptoms (e.g., hot flushes, night sweats)",SYMPTOM_TWENTYTWO:"Other (e.g., mood swings, cognitive difficulties, sleep disturbance)",SYMPTOM_TWENTYTHREE:"Joint pain, swelling, stiffness and erythema",SYMPTOM_TWENTYFOUR:"Smaller and distant joint involvement (fingers, toes), usually symmetrical",SYMPTOM_TWENTYFIVE:"Systemic (fatigue, weight loss, etc.)",POSSIBLE_FOLLOW_UP:"Possible follow-up",POSSIBLE_FOLLOW_UP_ONE:"Serial blood pressure (BP) measurements \xC2\xB1 24-hour BP monitoring",POSSIBLE_FOLLOW_UP_TWO:"BMI and/or body composition check",POSSIBLE_FOLLOW_UP_THREE:"Basic bloods (lipid profile, renal and liver function)",POSSIBLE_FOLLOW_UP_FOUR:"Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"BP check",POSSIBLE_FOLLOW_UP_SIX:"ECG",POSSIBLE_FOLLOW_UP_SEVEN:"Cardiology referral for other tests (e.g., cardiac echo, coronary CT)",POSSIBLE_FOLLOW_UP_SEVEN_B:"Cardiology referral for other tests (e.g., coronary artery calcium score)",POSSIBLE_FOLLOW_UP_SEVEN_C:"Cardiology referral for other tests (e.g., stress echocardiogram)",POSSIBLE_FOLLOW_UP_EIGHT:"Blood tests: full blood count, renal and liver function, CRP",POSSIBLE_FOLLOW_UP_NINE:"Stool tests: faecal immunochemical test (FIT), faecal calprotectin",POSSIBLE_FOLLOW_UP_TEN:"Referral for CT colonoscopy",POSSIBLE_FOLLOW_UP_ELEVEN:"Blood tests: full blood count, renal and liver function, CRP, ESR, autoantibodies (e.g., ANA, anti-dsDNA)",POSSIBLE_FOLLOW_UP_TWELVE:"Urinalysis",POSSIBLE_FOLLOW_UP_THIRTEEN:"Organ-targeted imaging (e.g., CT thorax, CT abdomen)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Blood tests: full blood count, renal and liver function, fasting glucose and insulin, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Lipid profile blood tests: basic and extended (incl. oxLDL, VLDL, LDL-P, Lp-PLA2, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Other blood tests hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Blood tests: full blood count",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometry",POSSIBLE_FOLLOW_UP_NINETEEN:"ECG, chest X-ray",POSSIBLE_FOLLOW_UP_TWENTY:"Blood tests (incl. FSH, oestradiol, progesterone, testosterone, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Referral to (peri)menopause specialist/gynaecologist",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Blood tests: full blood count, rheumatoid factor, anti-CCP antibodies, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Joint imaging (X-rays, MRI)",PERCENTILE:"\u30D1\u30FC\u30BB\u30F3\u30BF\u30A4\u30EB",SINGLE_PERCENTILE:"\u30D1\u30FC\u30BB\u30F3\u30BF\u30A4\u30EB",RISK_FACTORS:"Risk factors",RISK_FACTOR_ONE:"Past medical history (cardiometabolic syndrome, autoimmune disease)",RISK_FACTOR_TWO:"Medication history (e.g., statins, blood thinners)",RISK_FACTOR_THREE:"Current/previous smoking history",RANKS_YOU:"\u3053\u306E\u7D50\u679C\u306B\u3088\u308A\u3001\u3042\u306A\u305F\u306F",THIS_RESULT_RANKS_IN_THE:"\u3053\u306E\u7D50\u679C\u306F\u3001",RELATED_RESEARCH_PAPERS:"Related research papers",YOUR_RESULT:"Your result",CHRONIC_INFLAMMATION:"\u6162\u6027\u708E\u75C7",SYSTEMIC_INFLAMMATION:"\u5168\u8EAB\u6027\u708E\u75C7",ANTI_INFLAMMATORY:"\u6297\u708E\u75C7\u6027",ANTI_INFLAMMATORY_INDEX:"\u6297\u708E\u75C7\u6027",PRO_INFLAMMATORY:"\u708E\u75C7\u8A98\u767A\u6027",PRO_INFLAMMATORY_INDEX:"\u708E\u75C7\u8A98\u767A\u6027",SUPPORTIVE_INDEX:"\u30B5\u30DD\u30FC\u30C8\u6307\u6A19",GLYCAN_SHIELD:"Glycan Shield (S)",GLYCAN_YOUTH:"Glycan Youth (G2)",GLYCAN_MATURE:"Glycan Mature (G0)",GLYCAN_MEDIAN:"Glycan Median (G1)",GLYCAN_LIFESTYLE:"Glycan Lifestyle (B)",GLYCAN_LIFESTYLE_B:"Glycan Bisection (B)",WORSE:"\u3088\u308A\u5E74\u4E0A",BETTER:"\u3088\u308A\u82E5\u3044",OPTIMAL:"\u6700\u9069\u306A",SUBOPTIMAL:"\u6700\u9069\u3067\u306F\u306A\u3044",AVERAGE:"\u5E73\u5747\u5024",INDEX_SCORE:"\u6307\u6A19\u30B9\u30B3\u30A2",MEASURED_RESULT:"\u3042\u306A\u305F\u306E\u7D50\u679C",POPULATION_AVERAGE:"\u6BCD\u96C6\u56E3\u5E73\u5747",AGE:"\u5E74\u9F62",SAME_AS:"\u301C\u3068\u540C\u3058",THAN:"\u3088\u308A",YEAR_OLDER:"\u5E74\u4E0A",YEARS_OLDER:"\u5E74\u4E0A",YEAR_YOUNGER:"\u5E74\u4E0B",YEARS_YOUNGER:"\u5E74\u4E0B"},T={BIOLOGICAL_AGE:"\u751F\u7269\u5B66\u5E74\u9F84",CHRONOLOGICAL_AGE:"\u5B9E\u9645\u5E74\u9F84",CHRONOLOGICAL_AGE_TWO:"\u5B9E\u9645\u5E74\u9F84",SI_SCORE:"SI \u5206\u503C",GLYCAN:"\u7CD6\u94FE",PEAK:"\u5CF0",LOWER_THAN_AVERAGE:"\u4F4E\u4E8E\u5E73\u5747\u6570",BELOW_AVERAGE:"\u5E73\u5747\u4EE5\u4E0B",AROUND_AVERAGE:"\u63A5\u8FD1\u5E73\u5747",HIGHER_THAN_AVERAGE:"\u9AD8\u4E8E\u5E73\u5747\u6570",ABOVE_AVERAGE:"\u5E73\u5747\u4EE5\u4E0A",SOME_OVERLAP_LONG:"\u6709\u4E9B\u91CD\u590D",MINOR_OVERLAP_LONG:"\u5C11\u91CF\u91CD\u590D",NO_OVERLAP_LONG:"\u65E0\u660E\u663E\u91CD\u590D",SOME_OVERLAP:"\u6709\u4E9B\u91CD\u590D",MINOR_OVERLAP:"\u5C11\u91CF\u91CD\u590D",NO_OVERLAP:"\u65E0\u660E\u663E\u91CD\u590D",OVERLAP_TEXT:"\u4F60\u7684\u987E\u5BA2\u548C\u8FD9\u79CD\u72B6\u51B5\u95F4\u7684\u7CD6\u94FE\u6307\u6570.",SYMPTOMS:"\u4F53\u5F81\u548C\u75C7\u72B6",SYMPTOM_ONE:"\u901A\u5E38\u65E0\u75C7\u72B6",SYMPTOM_TWO:"\u8840\u538B\u6301\u7EED >140/90 mmHg",SYMPTOM_THREE:"\u5371\u91CD\u9AD8\u8840\u538B\u8868\u73B0 (\u5934\u75DB, \u5934\u6655, \u547C\u5438\u56F0\u96BE\u7B49.)",SYMPTOM_FOUR:"\u51A0\u5FC3\u75C5\u8868\u73B0 (\u5982\uFF1A\u95F4\u65AD\u6027\u5FC3\u75DB, \u547C\u5438\u56F0\u96BE)",SYMPTOM_FIVE:"\u5916\u5468\u52A8\u8109\u75BE\u75C5\u8868\u73B0 (\u4F8B\u5982\uFF0C\u6D3B\u52A8\u65F6\u817F\u75DB)",SYMPTOM_SIX:"\u81EA\u9650\u6027\u80F8\u75DB \xB1 \u653E\u5C04\u5230\u4E0B\u5DF4\u6216\u5DE6\u80A9/\u80CC",SYMPTOM_SEVEN:"\u547C\u5438\u56F0\u96BE",SYMPTOM_EIGHT:"\u5176\u5B83(\u660F\u53A5, \u5FC3\u60B8, \u817F\u80BF, \u7AEF\u5750\u547C\u5438\u7B49.)",SYMPTOM_NINE:"\u8179\u90E8\u75C9\u631B\u75DB/\u5DE6\u80A9\u80CC",SYMPTOM_TEN:"\u53CD\u590D\u6027\u8179\u6CFB\uFF08\u6216\u4FBF\u8840\uFF09",SYMPTOM_TEN_B:"\u91CC\u6025\u540E\u91CD",SYMPTOM_ELEVEN:"\u4F53\u91CD\u4E0B\u964D",SYMPTOM_TWELVE:"\u7CFB\u7EDF\u6027\u75C7\u72B6 (\u5982, \u75B2\u52B3, \u4F53\u91CD\u4E0B\u964D, \u53E3\u8154\u6E83\u75A1, \u8138\u988A\u6F6E\u7EA2)",SYMPTOM_THIRTEEN:"\u7EC4\u7EC7\u7279\u5F02\u6027 (\u80F8\u75DB, \u547C\u5438\u56F0\u96BE, \u817F\u80BF, \u8138\u8272\u82CD\u767D, etc.)",SYMPTOM_FOURTEEN:"\u5173\u8282\u75BC\u75DB\u548C\u80BF\u80C0",SYMPTOM_FIFTEEN:"\u4E4F\u529B",SYMPTOM_SIXTEEN:"\u53E3\u6E34\u548C\u591A\u5C3F",SYMPTOM_SEVENTEEN:"\u4F24\u53E3\u6108\u5408\u51CF\u6162, \u89C6\u529B\u6A21\u7CCA, \u53E3\u8154\u6E83\u75A1",SYMPTOM_EIGHTEEN:"\u547C\u5438\u56F0\u96BE",SYMPTOM_NINETEEN:"\u6162\u6027\u54B3\u55FD(\xB1 \u54B3\u75F0)",SYMPTOM_TWENTY:"\u6708\u7ECF\u5468\u671F\u7D0A\u4E71",SYMPTOM_TWENTYONE:"\u8840\u7BA1\u8212\u7F29\u75C7\u72B6 (e.g., \u6F6E\u70ED, \u591C\u6C57)",SYMPTOM_TWENTYTWO:"\u5176\u5B83 (\u5982\uFF0C\u60C5\u7EEA\u4E0D\u7A33\u5B9A\uFF0C\u8BA4\u77E5\u529B\u4E0B\u964D\uFF0C\u7761\u7720\u6613\u9192)",SYMPTOM_TWENTYTHREE:"\u5173\u8282\u75BC\u75DB\uFF0C\u80BF\u80C0\uFF0C\u50F5\u786C\u548C\u7EA2\u6591",SYMPTOM_TWENTYFOUR:"\u7D2F\u53CA\u8FDC\u7AEF\u5C0F\u5173\u8282 (\u624B\u6307\u3001\u811A\u8DBE\u5173\u8282), \u901A\u5E38\u5BF9\u79F0",SYMPTOM_TWENTYFIVE:"\u7CFB\u7EDF\u6027\u75C7\u72B6 (\u4E4F\u529B, \u4F53\u91CD\u4E0B\u964D\u7B49.)",POSSIBLE_FOLLOW_UP:"\u53EF\u80FD\u4F34\u968F\u6709",POSSIBLE_FOLLOW_UP_ONE:"\u8FDE\u7EED\u8840\u538B\u6D4B\u91CF\xB1 24\u5C0F\u65F6\u8840\u538B\u76D1\u63A7",POSSIBLE_FOLLOW_UP_TWO:"\u4F53\u91CD\u6307\u6570\u6D4B\u91CF\uFF0C\u4F53\u68C0",POSSIBLE_FOLLOW_UP_THREE:"\u8840\u5E38\u89C4\u68C0\u67E5 (\u8840\u8102, \u809D\u80BE\u529F\u80FD)",POSSIBLE_FOLLOW_UP_FOUR:"\u8840\u6DB2\u68C0\u67E5: \u8840\u5E38\u89C4\u548C\u8840\u8102 (\u5982, Lp(a), ApoB), \u8D85\u654FC-\u53CD\u5E94\u86CB\u767D, \u540C\u578B\u534A\u80F1\u6C28\u9178, \u809D\u80BE\u529F\u80FD, \u7CD6\u5316\u8840\u7EA2\u86CB\u767D",POSSIBLE_FOLLOW_UP_FIVE:"\u8840\u538B\u6D4B\u91CF",POSSIBLE_FOLLOW_UP_SIX:"\u5FC3\u7535\u56FE",POSSIBLE_FOLLOW_UP_SEVEN:"\u5176\u5B83\u5FC3\u810F\u68C0\u67E5 (\u5982, \u5FC3\u810F\u8D85\u58F0, \u51A0\u8109CT\u7B49)",POSSIBLE_FOLLOW_UP_SEVEN_B:"\u5176\u5B83\u5FC3\u810F\u68C0\u67E5 (e.g., \u51A0\u72B6\u52A8\u8109\u9499\u5316\u79EF\u5206)",POSSIBLE_FOLLOW_UP_SEVEN_C:"\u5176\u5B83\u5FC3\u810F\u68C0\u67E5 (e.g., \u5E94\u6FC0\u8D85\u58F0\u5FC3\u52A8\u56FE)",POSSIBLE_FOLLOW_UP_EIGHT:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570, \u809D\u80BE\u529F\u80FD, C-\u53CD\u5E94\u86CB\u767D",POSSIBLE_FOLLOW_UP_NINE:"\u5927\u4FBF\u68C0\u67E5: \u7CAA\u4FBF\u514D\u75AB\u5316\u5B66\u68C0\u6D4B (FIT), \u7CAA\u4FBF\u9499\u536B\u86CB\u767D",POSSIBLE_FOLLOW_UP_TEN:"CT\u548C\u7ED3\u80A0\u955C\u68C0\u67E5",POSSIBLE_FOLLOW_UP_ELEVEN:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570, \u809D\u80BE\u529F\u80FD, C-\u53CD\u5E94\u86CB\u767D, \u7EA2\u7EC6\u80DE\u6C89\u964D\u7387, \u81EA\u8EAB\u6297\u4F53 (\u5982, \u6297\u6838\u6297\u4F53\u7B49)",POSSIBLE_FOLLOW_UP_TWELVE:"\u5C0F\u4FBF\u68C0\u67E5",POSSIBLE_FOLLOW_UP_THIRTEEN:"\u5F71\u50CF\u68C0\u67E5 (\u5982, \u80F8\u8179\u90E8CT)",POSSIBLE_FOLLOW_UP_FOURTEEN:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570, \u809D\u80BE\u529F\u80FD,, \u7A7A\u8179\u8840\u7CD6\u548C\u80F0\u5C9B\u7D20, \u7CD6\u5316\u8840\u7EA2\u86CB\u767D ",POSSIBLE_FOLLOW_UP_FIFTEEN:"\u8840\u8102\u68C0\u67E5: \u8840\u5E38\u89C4\u548C\u5176\u5B83(\u5305\u62EC\uFF1AoxLDL, VLDL, LDL-P, Lp-PLA2, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"\u5176\u5B83\u8840\u538B\u68C0\u67E5, \u8D85\u654FC-\u53CD\u5E94\u86CB\u767D, \u540C\u578B\u534A\u80F1\u6C28\u9178, \u809D\u80BE\u529F\u80FD, \u7CD6\u5316\u8840\u7EA2\u86CB\u767D",POSSIBLE_FOLLOW_UP_SEVENTEEN:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570",POSSIBLE_FOLLOW_UP_EIGHTEEN:"\u80BA\u6D3B\u91CF\u68C0\u67E5",POSSIBLE_FOLLOW_UP_NINETEEN:"\u5FC3\u7535\u56FE\uFF0C\u80F8\u900F",POSSIBLE_FOLLOW_UP_TWENTY:"\u8840\u6DB2\u68C0\u67E5 (\u5305\u62EC. \u5375\u6CE1\u523A\u6FC0\u7D20 \u96CC\u4E8C\u9187, \u9EC4\u4F53\u916E, \u777E\u916E, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"\u770B\u4E34\u7EDD\u7ECF\u671F\u533B\u5B66\u4E13\u5BB6",POSSIBLE_FOLLOW_UP_TWENTYTWO:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570, \u7C7B\u98CE\u6E7F\u56E0\u5B50, \u73AF\u74DC\u6C28\u9178\u80BD\u6297\u4F53, C-\u53CD\u5E94\u86CB\u767D",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"\u5173\u8282\u5F71\u50CF\u68C0\u67E5\uFF0CCT\u6216\u6838\u78C1\u5171\u632F",PERCENTILE:"\u767E\u5206\u4F4D",SINGLE_PERCENTILE:"\u767E\u5206\u4F4D",RISK_FACTORS:"\u98CE\u9669\u56E0\u5B50",RISK_FACTOR_ONE:"\u65E2\u5F80\u53F2 (\u5FC3\u810F\u4EE3\u8C22\u7EFC\u5408\u5F81, \u81EA\u8EAB\u514D\u75AB\u6027\u75BE\u75C5)",RISK_FACTOR_TWO:"\u5C31\u533B\u53F2 (\u5982\uFF0C\u6291\u5236\u7D20, \u63A5\u53D7\u5927\u91CF\u8F93\u6DB2 )",RISK_FACTOR_THREE:"\u5438\u70DF\u60C5\u51B5\uFF08\u5305\u62EC\u73B0\u5728\u548C\u8FC7\u53BB\uFF09",RANKS_YOU:"\u8FD9\u4E2A\u7ED3\u679C\u628A\u60A8\u6392\u5E8F\u5728",THIS_RESULT_RANKS_IN_THE:"\u8FD9\u4E2A\u7ED3\u679C\u6392\u5E8F\u5728",RELATED_RESEARCH_PAPERS:"\u76F8\u5173\u7814\u7A76\u6587\u732E",YOUR_RESULT:"\u60A8\u7684\u7ED3\u679C",CHRONIC_INFLAMMATION:"\u6162\u6027\u708E\u75C7",SYSTEMIC_INFLAMMATION:"\u7CFB\u7EDF\u6027\u708E\u75C7",ANTI_INFLAMMATORY:"\u6297\u708E\u7684",ANTI_INFLAMMATORY_INDEX:"\u6297\u708E\u6307\u6570",PRO_INFLAMMATORY:"\u4FC3\u708E\u7684",PRO_INFLAMMATORY_INDEX:"\u4FC3\u708E\u6307\u6570",SUPPORTIVE_INDEX:"\u652F\u6301\u6307\u6570",GLYCAN_SHIELD:"\u5C11\u5E74\u7CD6\u94FE (S)",GLYCAN_YOUTH:"\u9752\u5E74\u7CD6\u94FE (G2)",GLYCAN_MATURE:"\u8001\u5316\u7CD6\u94FE (G0)",GLYCAN_MEDIAN:"\u4E2D\u6027\u7CD6\u94FE (G1)",GLYCAN_LIFESTYLE:"\u53D7\u635F\u7CD6\u94FE (B)",GLYCAN_LIFESTYLE_B:"\u5E73\u5206\u578B\u7CD6\u94FE (B)",WORSE:"\u66F4\u5DEE",BETTER:"\u66F4\u597D",OPTIMAL:"\u6700\u4F73",SUBOPTIMAL:"\u6B21\u4F18",AVERAGE:"\u5E73\u5747",INDEX_SCORE:"\u6307\u6570\u5206\u503C",MEASURED_RESULT:"\u68C0\u67E5\u7ED3\u679C",POPULATION_AVERAGE:"\u4EBA\u7FA4\u5E73\u5747",AGE:"\u5E74\u9F84",SAME_AS:"\u540C\u6837",THAN:"\u66F4",YEAR_OLDER:"\u66F4\u8001",YEARS_OLDER:"\u66F4\u8001",YEAR_YOUNGER:"\u66F4\u5E74\u8F7B",YEARS_YOUNGER:"\u66F4\u5E74\u8F7B",AREA:"\u7CFB\u7EDF",CONDITION:"\u7EC6\u5206",OVERLAPS:"\u76F8\u5173\u6027",CARDIOVASCULAR:"\u5FC3\u8840\u7BA1",METABOLIC:"\u4EE3\u8C22",AUTOIMMUNE:"\u81EA\u8EAB\u514D\u75AB",RESPIRATORY:"\u547C\u5438\u7CFB\u7EDF",FEMALE:"\u4EC5\u5973\u6027",RISK_OF_HYPER:"\u9AD8\u8840\u538B\u98CE\u9669",PRE_HYPERTENSION:"\u9AD8\u8840\u538B\u524D\u671F",HYPERTENSION:"\u9AD8\u8840\u538B",MI_CVA:"\u5FC3\u6897\u548C\u5352\u4E2D",ATHEROSCLEROSIS:"\u52A8\u8109\u7CA5\u6837\u786C\u5316",CORONARY:"\u51A0\u5FC3\u75C5",TYPE_2_DIABETES:"II\u578B\u7CD6\u5C3F\u75C5",DYSLIPIDEMIA:"\u9AD8\u8840\u8102",RHEUMATOID:"\u7C7B\u98CE\u6E7F\u6027\u5173\u8282\u708E",ULCERATIVE_COLITIS:"\u6E83\u75A1\u6027\u7ED3\u80A0\u708E\uFF08UC)",CROHN:"\u514B\u7F57\u6069\u75C5",SLE:"\u7CFB\u7EDF\u6027\u7EA2\u6591\u72FC\u75AE\uFF08SLE)",COPD:"\u6162\u963B\u80BA\uFF08\u6162\u6027\u963B\u585E\u6027\u80BA\u75C5\uFF09COPD",PERIMENOPAUSE:"\u4E34\u7EDD\u7ECF\u671F/\u66F4\u5E74\u524D\u671F",NO_SIGNIFICANT_OVERLAP:"\u65E0\u76F8\u5173\u6027",RANKS_YOU_BEFORE:"\u60A8\u7684\u7ED3\u679C\u4F18\u4E8E",RANKS_YOU_AFTER:"\u7684\u4EBA"};function s(e,O="english"){if(O!=="english")return"";if(e===11||e===12||e===13)return"th";switch(e.toString().split("").pop()){case"1":return"st";case"2":return"nd";case"3":return"rd";default:return"th"}}function P(e,O="english"){const n={english:r,polish:t,slovenian:L,japanese:S,chinese:T};if(e<32)return n[O].LOWER_THAN_AVERAGE;if(e>=32&&e<=68)return n[O].AROUND_AVERAGE;if(e>68)return n[O].HIGHER_THAN_AVERAGE}function A(e="english",O){return{english:r,polish:t,slovenian:L,japanese:S,chinese:T}[e][O]}function a(e,O,n,i,E){const _=(e-O)*(E-i)/(n-O)+i;return _<i?i:_>E?E:_}function o(e,O,n,i){return i===O?50:i===e?9.5:i===n?90.5:i<e?5:i>n?95:i>e&&i<O?a(i,e,O,10,50):i>O&&i<n?a(i,O,n,50,90):0}function l(e,O,n,i){const E=o(e,O,n,i);if(E<23)return"#DF2120";if(E>=23&&E<=36)return"#F2800D";if(E>36&&E<64)return"#66CCAA";if(E>=64&&E<=77)return"#13A195";if(E>77)return"#015566"}function N(e,O,n,i){const E=o(e,O,n,i);if(E<23)return"#015566";if(E>=23&&E<=36)return"#13A195";if(E>36&&E<64)return"#66CCAA";if(E>=64&&E<=77)return"#F2800D";if(E>77)return"#DF2120"}function I(e,O,n,i){const E=o(e,O,n,i);if(E<9.5)return"#DF2120";if(E>=9.5&&E<=23)return"#F2800D";if(E>23&&E<37)return"#66CCAA";if(E>=37&&E<=63)return"#13A195";if(E>63&&E<77)return"#66CCAA";if(E>=77&&E<=90.5)return"#F2800D";if(E>90.5)return"#DF2120"}function R(e){if(e===50)return 50;if(e<2)return 2.8;if(e>98)return 97.2;if(e>=2&&e<50)return a(e,3,50,7,50);if(e>50&&e<=98)return a(e,50,97,50,93)}function c(e){if(e<18)return"#DF2120";if(e>=18&&e<34)return"#F2800D";if(e>=34&&e<67)return"#66CCAA";if(e>=67&&e<=82)return"#13A195";if(e>82)return"#015566"}function M(e){if(e<18)return"#015566";if(e>=18&&e<34)return"#13A195";if(e>=34&&e<67)return"#66CCAA";if(e>=67&&e<=82)return"#F2800D";if(e>82)return"#DF2120"}function u(e){if(e<2)return"#DF2120";if(e>=2&&e<18)return"#F2800D";if(e>=18&&e<34)return"#66CCAA";if(e>=34&&e<67)return"#13A195";if(e>=67&&e<=82)return"#66CCAA";if(e>82&&e<=98)return"#F2800D";if(e>98)return"#DF2120"}function Y(e){if(e<2)return"#DF2120";if(e>=2&&e<18)return"#F2800D";if(e>=18&&e<34)return"#13A195";if(e>=34&&e<67)return"#015566";if(e>=67&&e<=82)return"#13A195";if(e>82&&e<=98)return"#F2800D";if(e>98)return"#DF2120"}export{A as a,l as b,o as c,N as d,I as e,c as f,P as g,M as h,u as i,R as j,Y as k,a as l,s};
|
|
1
|
+
let r={BIOLOGICAL_AGE:"Biological age",CHRONOLOGICAL_AGE:"Chronological age",CHRONOLOGICAL_AGE_TWO:"chronological age",SI_SCORE:"SI score",GLYCAN:"Glycan",PEAK:"Peak",LOWER_THAN_AVERAGE:"Lower than average",BELOW_AVERAGE:"Below average",AROUND_AVERAGE:"Around average",HIGHER_THAN_AVERAGE:"Higher than average",ABOVE_AVERAGE:"Above average",SOME_OVERLAP_LONG:"Some overlap",MINOR_OVERLAP_LONG:"Minor overlap",NO_OVERLAP_LONG:"No significant overlap",SOME_OVERLAP:"Some overlap",MINOR_OVERLAP:"Minor overlap",NO_OVERLAP:"No significant overlap",OVERLAP_TEXT:"of glycan indexes between your patient and this condition.",SYMPTOMS:"Signs and symptoms",SYMPTOM_ONE:"Usually asymptomatic",SYMPTOM_TWO:"BP consistently >140/90 mmHg",SYMPTOM_THREE:"Signs of malignant hypertension (headache, dizziness, breathlessness, etc.)",SYMPTOM_FOUR:"Signs of coronary artery disease (e.g., self-resolving chest pain, breathlessness)",SYMPTOM_FIVE:"Signs of peripheral artery disease (e.g., leg pain during activity)",SYMPTOM_SIX:"Self-limiting chest pain \xB1 radiation into jaw/left arm/back",SYMPTOM_SEVEN:"Breathlessness",SYMPTOM_EIGHT:"Other (syncope, palpitations, leg edema, orthopnea, etc.)",SYMPTOM_NINE:"Abdominal pain and cramping/left arm/back",SYMPTOM_TEN:"Recurring diarrhea (\xB1 blood)",SYMPTOM_TEN_B:"Urgency to defecate",SYMPTOM_ELEVEN:"Weight loss",SYMPTOM_TWELVE:"Systemic (e.g., fatigue, weight loss, mouth ulcers, butterfly skin rash)",SYMPTOM_THIRTEEN:"Organ-specific (chest pain, difficulty breathing, leg swelling, anaemia, etc.)",SYMPTOM_FOURTEEN:"Joint pain and swelling",SYMPTOM_FIFTEEN:"Fatigue",SYMPTOM_SIXTEEN:"Increased thirst and frequent urination",SYMPTOM_SEVENTEEN:"Slow wound healing, blurred vision, frequent thrush",SYMPTOM_EIGHTEEN:"Difficulty breathing",SYMPTOM_NINETEEN:"Chronic cough (\xB1 productive)",SYMPTOM_TWENTY:"Irregular menstrual cycle",SYMPTOM_TWENTYONE:"Vasomotor symptoms (e.g., hot flushes, night sweats)",SYMPTOM_TWENTYTWO:"Other (e.g., mood swings, cognitive difficulties, sleep disturbance)",SYMPTOM_TWENTYTHREE:"Joint pain, swelling, stiffness and erythema",SYMPTOM_TWENTYFOUR:"Smaller and distant joint involvement (fingers, toes), usually symmetrical",SYMPTOM_TWENTYFIVE:"Systemic (fatigue, weight loss, etc.)",POSSIBLE_FOLLOW_UP:"Possible follow-up",POSSIBLE_FOLLOW_UP_ONE:"Serial blood pressure (BP) measurements \xC2\xB1 24-hour BP monitoring",POSSIBLE_FOLLOW_UP_TWO:"BMI and/or body composition check",POSSIBLE_FOLLOW_UP_THREE:"Basic bloods (lipid profile, renal and liver function)",POSSIBLE_FOLLOW_UP_FOUR:"Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"BP check",POSSIBLE_FOLLOW_UP_SIX:"ECG",POSSIBLE_FOLLOW_UP_SEVEN:"Cardiology referral for other tests (e.g., cardiac echo, coronary CT)",POSSIBLE_FOLLOW_UP_SEVEN_B:"Cardiology referral for other tests (e.g., coronary artery calcium score)",POSSIBLE_FOLLOW_UP_SEVEN_C:"Cardiology referral for other tests (e.g., stress echocardiogram)",POSSIBLE_FOLLOW_UP_EIGHT:"Blood tests: full blood count, renal and liver function, CRP",POSSIBLE_FOLLOW_UP_NINE:"Stool tests: faecal immunochemical test (FIT), faecal calprotectin",POSSIBLE_FOLLOW_UP_TEN:"Referral for CT colonoscopy",POSSIBLE_FOLLOW_UP_ELEVEN:"Blood tests: full blood count, renal and liver function, CRP, ESR, autoantibodies (e.g., ANA, anti-dsDNA)",POSSIBLE_FOLLOW_UP_TWELVE:"Urinalysis",POSSIBLE_FOLLOW_UP_THIRTEEN:"Organ-targeted imaging (e.g., CT thorax, CT abdomen)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Blood tests: full blood count, renal and liver function, fasting glucose and insulin, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Lipid profile blood tests: basic and extended (incl. oxLDL, VLDL, LDL-P, Lp-PLA2, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Other blood tests hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Blood tests: full blood count",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometry",POSSIBLE_FOLLOW_UP_NINETEEN:"ECG, chest X-ray",POSSIBLE_FOLLOW_UP_TWENTY:"Blood tests (incl. FSH, oestradiol, progesterone, testosterone, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Referral to (peri)menopause specialist/gynaecologist",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Blood tests: full blood count, rheumatoid factor, anti-CCP antibodies, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Joint imaging (X-rays, MRI)",PERCENTILE:"percentile",SINGLE_PERCENTILE:"percentile",RISK_FACTORS:"Risk factors",RISK_FACTOR_ONE:"Past medical history (cardiometabolic syndrome, autoimmune disease)",RISK_FACTOR_TWO:"Medication history (e.g., statins, blood thinners)",RISK_FACTOR_THREE:"Current/previous smoking history",RANKS_YOU:"This result ranks you in the",THIS_RESULT_RANKS_IN_THE:"This result ranks in the",RELATED_RESEARCH_PAPERS:"Related research papers",YOUR_RESULT:"Your result",CHRONIC_INFLAMMATION:"Chronic inflammation",SYSTEMIC_INFLAMMATION:"Systemic inflammation",ANTI_INFLAMMATORY:"Anti-inflammatory",ANTI_INFLAMMATORY_INDEX:"Anti-inflammatory index",PRO_INFLAMMATORY:"Pro-inflammatory",PRO_INFLAMMATORY_INDEX:"Pro-inflammatory index",SUPPORTIVE_INDEX:"Supportive index",GLYCAN_SHIELD:"Glycan Shield (S)",GLYCAN_YOUTH:"Glycan Youth (G2)",GLYCAN_MATURE:"Glycan Mature (G0)",GLYCAN_MEDIAN:"Glycan Median (G1)",GLYCAN_LIFESTYLE:"Glycan Lifestyle (B)",GLYCAN_LIFESTYLE_B:"Glycan Bisection (B)",WORSE:"Worse",BETTER:"Better",OPTIMAL:"Optimal",SUBOPTIMAL:"Suboptimal",AVERAGE:"Average",INDEX_SCORE:"Index score",MEASURED_RESULT:"Measured result",POPULATION_AVERAGE:"Population average",AGE:"Age",SAME_AS:"Same as",THAN:"than",YEAR_OLDER:"year older",YEARS_OLDER:"years older",YEAR_YOUNGER:"year younger",YEARS_YOUNGER:"years younger",AREA:"Area",CONDITION:"Condition",OVERLAPS:"Overlaps",CARDIOVASCULAR:"Cardiovascular",METABOLIC:"Metabolic",AUTOIMMUNE:"Autoimmune",RESPIRATORY:"Respiratory",FEMALE:"Female",RISK_OF_HYPER:"Inc. risk of hypertension",PRE_HYPERTENSION:"Pre-hypertension",HYPERTENSION:"Hypertension",MI_CVA:"MI & CVA",ATHEROSCLEROSIS:"Atherosclerosis",CORONARY:"Coronary artery disease",TYPE_2_DIABETES:"Type 2 diabetes",DYSLIPIDEMIA:"Dyslipidemia",RHEUMATOID:"Rheumatoid arthritis",ULCERATIVE_COLITIS:"Ulcerative colitis",CROHN:"Crohn's disease",SLE:"SLE",COPD:"COPD",PERIMENOPAUSE:"Perimenopause",NO_SIGNIFICANT_OVERLAP:"No significant overlap"},t={BIOLOGICAL_AGE:"Wiek biologiczny",CHRONOLOGICAL_AGE:"Wiek Kalendarzowy",GLYCAN:"Glikan",PEAK:"Pik",LOWER_THAN_AVERAGE:"ni\u017Cszy od warto\u015Bci \u015Bredniej",AROUND_AVERAGE:"W okolicach warto\u015Bci \u015Bredniej",HIGHER_THAN_AVERAGE:"wy\u017Cszy od warto\u015Bci \u015Bredniej",SOME_OVERLAP_LONG:"Znaczny stopie\u0144 pokrywania si\u0119",MINOR_OVERLAP_LONG:"Nieznaczne stopie\u0144 pokrywania si\u0119",NO_OVERLAP_LONG:"Brak znacz\u0105cego pokrywania si\u0119",SOME_OVERLAP:"Cz\u0119\u015Bciowy",MINOR_OVERLAP:"Niewielki",NO_OVERLAP:"Brak",OVERLAP_TEXT:"indeks\xF3w glikanowych mi\u0119dzy pacjentem a badanymi z tym schorzeniem.",SYMPTOMS:"Sygna\u0142y i objawy",SYMPTOM_ONE:"Przewa\u017Cnie przebiega w spos\xF3b bezobjawowy",SYMPTOM_TWO:"Ci\u015Bnienie t\u0119tnicze stale >140/90 mmHg",SYMPTOM_THREE:"Objawy nadci\u015Bnienia z\u0142o\u015Bliwego (b\xF3l g\u0142owy, zawroty g\u0142owy, duszno\u015B\u0107 itp.)",SYMPTOM_FOUR:"Objawy choroby wie\u0144cowej (np. samoistnie ust\u0119puj\u0105cy b\xF3l w klatce piersiowej, bezdech)",SYMPTOM_FIVE:"Objawy choroby t\u0119tnic obwodowych (np. b\xF3l n\xF3g podczas aktywno\u015Bci)",SYMPTOM_SIX:"Samoograniczaj\u0105cy si\u0119 b\xF3l w klatce piersiowej \xB1 promieniuj\u0105cy do szcz\u0119ki/lewego ramienia/plec\xF3w",SYMPTOM_SEVEN:"Duszno\u015B\u0107",SYMPTOM_EIGHT:"Inne (omdlenia, ko\u0142atanie serca, obrz\u0119k n\xF3g, orhhopnoe itp.)",SYMPTOM_NINE:"B\xF3l brzucha i skurcze",SYMPTOM_TEN:"Nawracaj\u0105ca biegunka (\xB1 krew)",SYMPTOM_TEN_B:"Nag\u0142a potrzeba wypr\xF3\u017Cnienia",SYMPTOM_ELEVEN:"Utrata masy cia\u0142a",SYMPTOM_TWELVE:"Og\xF3lnoustrojowe (np. zm\u0119czenie, utrata masy cia\u0142a, owrzodzenia jamy ustnej, wysypka w kszta\u0142cie motyla w okolicy policzk\xF3w i nosa)",SYMPTOM_THIRTEEN:"Narz\u0105dowe (b\xF3l w klatce piersiowej, trudno\u015Bci w oddychaniu, obrz\u0119k n\xF3g, niedokrwisto\u015B\u0107 itp.)",SYMPTOM_FOURTEEN:"B\xF3l i obrz\u0119k staw\xF3w",SYMPTOM_FIFTEEN:"Zm\u0119czenie",SYMPTOM_SIXTEEN:"Zwi\u0119kszone pragnienie i cz\u0119ste oddawanie moczu",SYMPTOM_SEVENTEEN:"Powolne gojenie si\u0119 ran, niewyra\u017Ane widzenie, cz\u0119ste ple\u015Bniawki",SYMPTOM_EIGHTEEN:"Trudno\u015Bci w oddychaniu",SYMPTOM_NINETEEN:"Przewlek\u0142y kaszel (\xB1 produktywny)",SYMPTOM_TWENTY:"Nieregularny cykl menstruacyjny",SYMPTOM_TWENTYONE:"Objawy naczynioruchowe (np. uderzenia gor\u0105ca)",SYMPTOM_TWENTYTWO:"Inne (np. wahania nastroju, trudno\u015Bci poznawcze, zaburzenia snu)",SYMPTOM_TWENTYTHREE:"B\xF3l staw\xF3w, obrz\u0119k, sztywno\u015B\u0107 i rumie\u0144",SYMPTOM_TWENTYFOUR:"Zaj\u0119cie mniejszych staw\xF3w dystalnych (palce r\u0105k i n\xF3g), zwykle symetryczne",SYMPTOM_TWENTYFIVE:"Og\xF3lnoustrojowe (zm\u0119czenie, utrata masy cia\u0142a itp.)",POSSIBLE_FOLLOW_UP:"Ewentualne dalsze dzia\u0142ania",POSSIBLE_FOLLOW_UP_ONE:"Seryjne pomiary ci\u015Bnienia t\u0119tniczego i/lub 24-godzinne monitorowanie ci\u015Bnienia t\u0119tniczego",POSSIBLE_FOLLOW_UP_TWO:"BMI i/lub kontrola sk\u0142adu cia\u0142a",POSSIBLE_FOLLOW_UP_THREE:"Podstawowe badania krwi (profil lipidowy, czynno\u015B\u0107 nerek i w\u0105troby)",POSSIBLE_FOLLOW_UP_FOUR:"Badania krwi: podstawowy i rozszerzony profil lipidowy (np. Lp(a), ApoB), hsCRP, homocysteina, czynno\u015B\u0107 nerek i w\u0105troby, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"Kontrola ci\u015Bnienia t\u0119tniczego",POSSIBLE_FOLLOW_UP_SIX:"EKG",POSSIBLE_FOLLOW_UP_SEVEN:"Skierowanie do kardiologa na inne badania (np. echo serca, TK naczy\u0144 wie\u0144cowych)",POSSIBLE_FOLLOW_UP_SEVEN_B:"Skierowanie do kardiologa na inne badania (np. wska\u017Anik uwapnienia t\u0119tnic wie\u0144cowych)",POSSIBLE_FOLLOW_UP_SEVEN_C:"Skierowanie do kardiologa na inne badania (np. echokardiogram wysi\u0142kowy)",POSSIBLE_FOLLOW_UP_EIGHT:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, CRP",POSSIBLE_FOLLOW_UP_NINE:"Badania ka\u0142u: test na obecno\u015B\u0107 krwi utajonej (FIT), kalprotektyna w kale",POSSIBLE_FOLLOW_UP_TEN:"Skierowanie na kolonoskopi\u0119, TK",POSSIBLE_FOLLOW_UP_ELEVEN:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, CRP, OB, autoprzeciwcia\u0142a (np. ANA, w tym anty-dsDNA).",POSSIBLE_FOLLOW_UP_TWELVE:"Badanie og\xF3lne moczu",POSSIBLE_FOLLOW_UP_THIRTEEN:"Badania obrazowe ukierunkowane na narz\u0105dy (np. TK klatki piersiowej, TK jamy brzusznej)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, st\u0119\u017Cenie glukozy i insuliny na czczo, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Badania profilu lipidowego krwi: podstawowe i rozszerzone (np. oxLDL, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Inne badania krwi hsCRP, homocysteina, czynno\u015B\u0107 nerek i w\u0105troby, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Badania krwi: pe\u0142na morfologia krwi",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometria",POSSIBLE_FOLLOW_UP_NINETEEN:"EKG, RTG klatki piersiowej",POSSIBLE_FOLLOW_UP_TWENTY:"Badania krwi (w tym FSH, estradiol, progesteron, testosteron, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Skierowanie do specjalisty/ginekologa zajmuj\u0105cego si\u0119 (peri)menopauz\u0105",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Badania krwi: pe\u0142na morfologia krwi, czynnik reumatoidalny, przeciwcia\u0142a anty-CCP, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Obrazowanie staw\xF3w (zdj\u0119cia rentgenowskie, rezonans magnetyczny)",PERCENTILE:"percentylu",SINGLE_PERCENTILE:"percentyl",RISK_FACTORS:"Czynniki ryzyka",RISK_FACTOR_ONE:"Historia chor\xF3b (np. zesp\xF3\u0142 kardiometaboliczny, choroby autoimmunologiczne)",RISK_FACTOR_TWO:"Historia przyjmowania lek\xF3w (np. statyn, lek\xF3w przeciwzakrzepowych)",RISK_FACTOR_THREE:"Palenie tytoniu",RANKS_YOU:"Twoj wynik klasyfikuje Ci\u0119 w",RELATED_RESEARCH_PAPERS:"Publikacje naukowe",YOUR_RESULT:"Tw\xF3j wynik",CHRONIC_INFLAMMATION:"TempText POLISH1",ANTI_INFLAMMATORY:"TempText POLISH2",PRO_INFLAMMATORY:"TempText POLISH3",SUPPORTIVE_INDEX:"TempText POLISH4",GLYCAN_SHIELD:"TempText Shield (S)",GLYCAN_YOUTH:"TempText Youth (G2)",GLYCAN_MATURE:"TempText Mature (G0)",GLYCAN_MEDIAN:"TempText Median (G1)",GLYCAN_LIFESTYLE:"TempText Lifestyle (B)",WORSE:"TempText Worse",BETTER:"TempText Better",AVERAGE:"TempText Average"},L={BIOLOGICAL_AGE:"Biolo\u0161ka starost",CHRONOLOGICAL_AGE:"Kronolo\u0161ka starost",CHRONOLOGICAL_AGE_TWO:"kronolo\u0161ke starosti",RANKS_YOU:"Ta rezultat vas uvr\u0161\u010Da med",PERCENTILE:"percentilov",SINGLE_PERCENTILE:"percentil",YOUR_RESULT:"Va\u0161 rezultat",GLYCAN_SHIELD:"Glikanski \u0161\u010Dit (S)",GLYCAN_YOUTH:"Mladost glikanov (G2)",GLYCAN_MATURE:"Zrelost glikanov (G0)",GLYCAN_MEDIAN:"Povpre\u010Dje glikanov (G1)",GLYCAN_LIFESTYLE:"\u017Divljenjski slog glikanov (B)",GLYCAN_LIFESTYLE_B:"\u017Divljenjski slog glikanov (B)",CHRONIC_INFLAMMATION:"Kroni\u010Dno vnetje",ANTI_INFLAMMATORY:"Protivnetni",ANTI_INFLAMMATORY_INDEX:"Protivnetni index",PRO_INFLAMMATORY:"Pro-vnetni",PRO_INFLAMMATORY_INDEX:"Pro-vnetni index",SUPPORTIVE_INDEX:"Podporni kazalnik",WORSE:"Slab\u0161e",BETTER:"Bolj\u0161e",OPTIMAL:"Optimalen",SUBOPTIMAL:"neoptimalno",AVERAGE:"Povpre\u010Dje",AROUND_AVERAGE:"Pribli\u017Eno povpre\u010Dje",THIS_RESULT_RANKS_IN_THE:"Ta rezultat se uvr\u0161\u010Da med",INDEX_SCORE:"Rezultat kazalnika",MEASURED_RESULT:"Va\u0161 rezultat",POPULATION_AVERAGE:"Povpre\u010Dje prebivalstva",AGE:"Dob",SAME_AS:"Enako kot",THAN:"od",YEAR_OLDER:"starej\u0161i",YEARS_OLDER:"starej\u0161i",YEAR_YOUNGER:"let mlaj\u0161i",YEARS_YOUNGER:"let mlaj\u0161i"},S={BIOLOGICAL_AGE:"\u751F\u7269\u5B66\u7684\u5E74\u9F62",CHRONOLOGICAL_AGE:"\u66A6\u5E74\u9F62",CHRONOLOGICAL_AGE_TWO:"\u66A6\u5E74\u9F62",SI_SCORE:"SI score",GLYCAN:"Glycan",PEAK:"Peak",LOWER_THAN_AVERAGE:"Lower than average",BELOW_AVERAGE:"Below average",AROUND_AVERAGE:"\u5E73\u5747\u5024\u304F\u3089\u3044",HIGHER_THAN_AVERAGE:"Higher than average",ABOVE_AVERAGE:"Above average",SOME_OVERLAP_LONG:"Some overlap",MINOR_OVERLAP_LONG:"Minor overlap",NO_OVERLAP_LONG:"No significant overlap",SOME_OVERLAP:"Some overlap",MINOR_OVERLAP:"Minor overlap",NO_OVERLAP:"No significant overlap",OVERLAP_TEXT:"of glycan indexes between your patient and this condition.",SYMPTOMS:"Signs and symptoms",SYMPTOM_ONE:"Usually asymptomatic",SYMPTOM_TWO:"BP consistently >140/90 mmHg",SYMPTOM_THREE:"Signs of malignant hypertension (headache, dizziness, breathlessness, etc.)",SYMPTOM_FOUR:"Signs of coronary artery disease (e.g., self-resolving chest pain, breathlessness)",SYMPTOM_FIVE:"Signs of peripheral artery disease (e.g., leg pain during activity)",SYMPTOM_SIX:"Self-limiting chest pain \xB1 radiation into jaw/left arm/back",SYMPTOM_SEVEN:"Breathlessness",SYMPTOM_EIGHT:"Other (syncope, palpitations, leg edema, orthopnea, etc.)",SYMPTOM_NINE:"Abdominal pain and cramping/left arm/back",SYMPTOM_TEN:"Recurring diarrhea (\xB1 blood)",SYMPTOM_TEN_B:"Urgency to defecate",SYMPTOM_ELEVEN:"Weight loss",SYMPTOM_TWELVE:"Systemic (e.g., fatigue, weight loss, mouth ulcers, butterfly skin rash)",SYMPTOM_THIRTEEN:"Organ-specific (chest pain, difficulty breathing, leg swelling, anaemia, etc.)",SYMPTOM_FOURTEEN:"Joint pain and swelling",SYMPTOM_FIFTEEN:"Fatigue",SYMPTOM_SIXTEEN:"Increased thirst and frequent urination",SYMPTOM_SEVENTEEN:"Slow wound healing, blurred vision, frequent thrush",SYMPTOM_EIGHTEEN:"Difficulty breathing",SYMPTOM_NINETEEN:"Chronic cough (\xB1 productive)",SYMPTOM_TWENTY:"Irregular menstrual cycle",SYMPTOM_TWENTYONE:"Vasomotor symptoms (e.g., hot flushes, night sweats)",SYMPTOM_TWENTYTWO:"Other (e.g., mood swings, cognitive difficulties, sleep disturbance)",SYMPTOM_TWENTYTHREE:"Joint pain, swelling, stiffness and erythema",SYMPTOM_TWENTYFOUR:"Smaller and distant joint involvement (fingers, toes), usually symmetrical",SYMPTOM_TWENTYFIVE:"Systemic (fatigue, weight loss, etc.)",POSSIBLE_FOLLOW_UP:"Possible follow-up",POSSIBLE_FOLLOW_UP_ONE:"Serial blood pressure (BP) measurements \xC2\xB1 24-hour BP monitoring",POSSIBLE_FOLLOW_UP_TWO:"BMI and/or body composition check",POSSIBLE_FOLLOW_UP_THREE:"Basic bloods (lipid profile, renal and liver function)",POSSIBLE_FOLLOW_UP_FOUR:"Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"BP check",POSSIBLE_FOLLOW_UP_SIX:"ECG",POSSIBLE_FOLLOW_UP_SEVEN:"Cardiology referral for other tests (e.g., cardiac echo, coronary CT)",POSSIBLE_FOLLOW_UP_SEVEN_B:"Cardiology referral for other tests (e.g., coronary artery calcium score)",POSSIBLE_FOLLOW_UP_SEVEN_C:"Cardiology referral for other tests (e.g., stress echocardiogram)",POSSIBLE_FOLLOW_UP_EIGHT:"Blood tests: full blood count, renal and liver function, CRP",POSSIBLE_FOLLOW_UP_NINE:"Stool tests: faecal immunochemical test (FIT), faecal calprotectin",POSSIBLE_FOLLOW_UP_TEN:"Referral for CT colonoscopy",POSSIBLE_FOLLOW_UP_ELEVEN:"Blood tests: full blood count, renal and liver function, CRP, ESR, autoantibodies (e.g., ANA, anti-dsDNA)",POSSIBLE_FOLLOW_UP_TWELVE:"Urinalysis",POSSIBLE_FOLLOW_UP_THIRTEEN:"Organ-targeted imaging (e.g., CT thorax, CT abdomen)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Blood tests: full blood count, renal and liver function, fasting glucose and insulin, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Lipid profile blood tests: basic and extended (incl. oxLDL, VLDL, LDL-P, Lp-PLA2, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Other blood tests hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Blood tests: full blood count",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometry",POSSIBLE_FOLLOW_UP_NINETEEN:"ECG, chest X-ray",POSSIBLE_FOLLOW_UP_TWENTY:"Blood tests (incl. FSH, oestradiol, progesterone, testosterone, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Referral to (peri)menopause specialist/gynaecologist",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Blood tests: full blood count, rheumatoid factor, anti-CCP antibodies, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Joint imaging (X-rays, MRI)",PERCENTILE:"\u30D1\u30FC\u30BB\u30F3\u30BF\u30A4\u30EB",SINGLE_PERCENTILE:"\u30D1\u30FC\u30BB\u30F3\u30BF\u30A4\u30EB",RISK_FACTORS:"Risk factors",RISK_FACTOR_ONE:"Past medical history (cardiometabolic syndrome, autoimmune disease)",RISK_FACTOR_TWO:"Medication history (e.g., statins, blood thinners)",RISK_FACTOR_THREE:"Current/previous smoking history",RANKS_YOU:"\u3053\u306E\u7D50\u679C\u306B\u3088\u308A\u3001\u3042\u306A\u305F\u306F",THIS_RESULT_RANKS_IN_THE:"\u3053\u306E\u7D50\u679C\u306F\u3001",RELATED_RESEARCH_PAPERS:"Related research papers",YOUR_RESULT:"Your result",CHRONIC_INFLAMMATION:"\u6162\u6027\u708E\u75C7",SYSTEMIC_INFLAMMATION:"\u5168\u8EAB\u6027\u708E\u75C7",ANTI_INFLAMMATORY:"\u6297\u708E\u75C7\u6027",ANTI_INFLAMMATORY_INDEX:"\u6297\u708E\u75C7\u6027",PRO_INFLAMMATORY:"\u708E\u75C7\u8A98\u767A\u6027",PRO_INFLAMMATORY_INDEX:"\u708E\u75C7\u8A98\u767A\u6027",SUPPORTIVE_INDEX:"\u30B5\u30DD\u30FC\u30C8\u6307\u6A19",GLYCAN_SHIELD:"Glycan Shield (S)",GLYCAN_YOUTH:"Glycan Youth (G2)",GLYCAN_MATURE:"Glycan Mature (G0)",GLYCAN_MEDIAN:"Glycan Median (G1)",GLYCAN_LIFESTYLE:"Glycan Lifestyle (B)",GLYCAN_LIFESTYLE_B:"Glycan Bisection (B)",WORSE:"\u3088\u308A\u5E74\u4E0A",BETTER:"\u3088\u308A\u82E5\u3044",OPTIMAL:"\u6700\u9069\u306A",SUBOPTIMAL:"\u6700\u9069\u3067\u306F\u306A\u3044",AVERAGE:"\u5E73\u5747\u5024",INDEX_SCORE:"\u6307\u6A19\u30B9\u30B3\u30A2",MEASURED_RESULT:"\u3042\u306A\u305F\u306E\u7D50\u679C",POPULATION_AVERAGE:"\u6BCD\u96C6\u56E3\u5E73\u5747",AGE:"\u5E74\u9F62",SAME_AS:"\u301C\u3068\u540C\u3058",THAN:"\u3088\u308A",YEAR_OLDER:"\u5E74\u4E0A",YEARS_OLDER:"\u5E74\u4E0A",YEAR_YOUNGER:"\u5E74\u4E0B",YEARS_YOUNGER:"\u5E74\u4E0B"},T={BIOLOGICAL_AGE:"\u751F\u7269\u5B66\u5E74\u9F84",CHRONOLOGICAL_AGE:"\u5B9E\u9645\u5E74\u9F84",CHRONOLOGICAL_AGE_TWO:"\u5B9E\u9645\u5E74\u9F84",SI_SCORE:"SI \u5206\u503C",GLYCAN:"\u7CD6\u94FE",PEAK:"\u5CF0",LOWER_THAN_AVERAGE:"\u4F4E\u4E8E\u5E73\u5747\u6570",BELOW_AVERAGE:"\u5E73\u5747\u4EE5\u4E0B",AROUND_AVERAGE:"\u63A5\u8FD1\u5E73\u5747",HIGHER_THAN_AVERAGE:"\u9AD8\u4E8E\u5E73\u5747\u6570",ABOVE_AVERAGE:"\u5E73\u5747\u4EE5\u4E0A",SOME_OVERLAP_LONG:"\u6709\u4E9B\u91CD\u590D",MINOR_OVERLAP_LONG:"\u5C11\u91CF\u91CD\u590D",NO_OVERLAP_LONG:"\u65E0\u660E\u663E\u91CD\u590D",SOME_OVERLAP:"\u6709\u4E9B\u91CD\u590D",MINOR_OVERLAP:"\u5C11\u91CF\u91CD\u590D",NO_OVERLAP:"\u65E0\u660E\u663E\u91CD\u590D",OVERLAP_TEXT:"\u4F60\u7684\u987E\u5BA2\u548C\u8FD9\u79CD\u72B6\u51B5\u95F4\u7684\u7CD6\u94FE\u6307\u6570.",SYMPTOMS:"\u4F53\u5F81\u548C\u75C7\u72B6",SYMPTOM_ONE:"\u901A\u5E38\u65E0\u75C7\u72B6",SYMPTOM_TWO:"\u8840\u538B\u6301\u7EED >140/90 mmHg",SYMPTOM_THREE:"\u5371\u91CD\u9AD8\u8840\u538B\u8868\u73B0 (\u5934\u75DB, \u5934\u6655, \u547C\u5438\u56F0\u96BE\u7B49.)",SYMPTOM_FOUR:"\u51A0\u5FC3\u75C5\u8868\u73B0 (\u5982\uFF1A\u95F4\u65AD\u6027\u5FC3\u75DB, \u547C\u5438\u56F0\u96BE)",SYMPTOM_FIVE:"\u5916\u5468\u52A8\u8109\u75BE\u75C5\u8868\u73B0 (\u4F8B\u5982\uFF0C\u6D3B\u52A8\u65F6\u817F\u75DB)",SYMPTOM_SIX:"\u81EA\u9650\u6027\u80F8\u75DB \xB1 \u653E\u5C04\u5230\u4E0B\u5DF4\u6216\u5DE6\u80A9/\u80CC",SYMPTOM_SEVEN:"\u547C\u5438\u56F0\u96BE",SYMPTOM_EIGHT:"\u5176\u5B83(\u660F\u53A5, \u5FC3\u60B8, \u817F\u80BF, \u7AEF\u5750\u547C\u5438\u7B49.)",SYMPTOM_NINE:"\u8179\u90E8\u75C9\u631B\u75DB/\u5DE6\u80A9\u80CC",SYMPTOM_TEN:"\u53CD\u590D\u6027\u8179\u6CFB\uFF08\u6216\u4FBF\u8840\uFF09",SYMPTOM_TEN_B:"\u91CC\u6025\u540E\u91CD",SYMPTOM_ELEVEN:"\u4F53\u91CD\u4E0B\u964D",SYMPTOM_TWELVE:"\u7CFB\u7EDF\u6027\u75C7\u72B6 (\u5982, \u75B2\u52B3, \u4F53\u91CD\u4E0B\u964D, \u53E3\u8154\u6E83\u75A1, \u8138\u988A\u6F6E\u7EA2)",SYMPTOM_THIRTEEN:"\u7EC4\u7EC7\u7279\u5F02\u6027 (\u80F8\u75DB, \u547C\u5438\u56F0\u96BE, \u817F\u80BF, \u8138\u8272\u82CD\u767D, etc.)",SYMPTOM_FOURTEEN:"\u5173\u8282\u75BC\u75DB\u548C\u80BF\u80C0",SYMPTOM_FIFTEEN:"\u4E4F\u529B",SYMPTOM_SIXTEEN:"\u53E3\u6E34\u548C\u591A\u5C3F",SYMPTOM_SEVENTEEN:"\u4F24\u53E3\u6108\u5408\u51CF\u6162, \u89C6\u529B\u6A21\u7CCA, \u53E3\u8154\u6E83\u75A1",SYMPTOM_EIGHTEEN:"\u547C\u5438\u56F0\u96BE",SYMPTOM_NINETEEN:"\u6162\u6027\u54B3\u55FD(\xB1 \u54B3\u75F0)",SYMPTOM_TWENTY:"\u6708\u7ECF\u5468\u671F\u7D0A\u4E71",SYMPTOM_TWENTYONE:"\u8840\u7BA1\u8212\u7F29\u75C7\u72B6 (e.g., \u6F6E\u70ED, \u591C\u6C57)",SYMPTOM_TWENTYTWO:"\u5176\u5B83 (\u5982\uFF0C\u60C5\u7EEA\u4E0D\u7A33\u5B9A\uFF0C\u8BA4\u77E5\u529B\u4E0B\u964D\uFF0C\u7761\u7720\u6613\u9192)",SYMPTOM_TWENTYTHREE:"\u5173\u8282\u75BC\u75DB\uFF0C\u80BF\u80C0\uFF0C\u50F5\u786C\u548C\u7EA2\u6591",SYMPTOM_TWENTYFOUR:"\u7D2F\u53CA\u8FDC\u7AEF\u5C0F\u5173\u8282 (\u624B\u6307\u3001\u811A\u8DBE\u5173\u8282), \u901A\u5E38\u5BF9\u79F0",SYMPTOM_TWENTYFIVE:"\u7CFB\u7EDF\u6027\u75C7\u72B6 (\u4E4F\u529B, \u4F53\u91CD\u4E0B\u964D\u7B49.)",POSSIBLE_FOLLOW_UP:"\u53EF\u80FD\u4F34\u968F\u6709",POSSIBLE_FOLLOW_UP_ONE:"\u8FDE\u7EED\u8840\u538B\u6D4B\u91CF\xB1 24\u5C0F\u65F6\u8840\u538B\u76D1\u63A7",POSSIBLE_FOLLOW_UP_TWO:"\u4F53\u91CD\u6307\u6570\u6D4B\u91CF\uFF0C\u4F53\u68C0",POSSIBLE_FOLLOW_UP_THREE:"\u8840\u5E38\u89C4\u68C0\u67E5 (\u8840\u8102, \u809D\u80BE\u529F\u80FD)",POSSIBLE_FOLLOW_UP_FOUR:"\u8840\u6DB2\u68C0\u67E5: \u8840\u5E38\u89C4\u548C\u8840\u8102 (\u5982, Lp(a), ApoB), \u8D85\u654FC-\u53CD\u5E94\u86CB\u767D, \u540C\u578B\u534A\u80F1\u6C28\u9178, \u809D\u80BE\u529F\u80FD, \u7CD6\u5316\u8840\u7EA2\u86CB\u767D",POSSIBLE_FOLLOW_UP_FIVE:"\u8840\u538B\u6D4B\u91CF",POSSIBLE_FOLLOW_UP_SIX:"\u5FC3\u7535\u56FE",POSSIBLE_FOLLOW_UP_SEVEN:"\u5176\u5B83\u5FC3\u810F\u68C0\u67E5 (\u5982, \u5FC3\u810F\u8D85\u58F0, \u51A0\u8109CT\u7B49)",POSSIBLE_FOLLOW_UP_SEVEN_B:"\u5176\u5B83\u5FC3\u810F\u68C0\u67E5 (e.g., \u51A0\u72B6\u52A8\u8109\u9499\u5316\u79EF\u5206)",POSSIBLE_FOLLOW_UP_SEVEN_C:"\u5176\u5B83\u5FC3\u810F\u68C0\u67E5 (e.g., \u5E94\u6FC0\u8D85\u58F0\u5FC3\u52A8\u56FE)",POSSIBLE_FOLLOW_UP_EIGHT:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570, \u809D\u80BE\u529F\u80FD, C-\u53CD\u5E94\u86CB\u767D",POSSIBLE_FOLLOW_UP_NINE:"\u5927\u4FBF\u68C0\u67E5: \u7CAA\u4FBF\u514D\u75AB\u5316\u5B66\u68C0\u6D4B (FIT), \u7CAA\u4FBF\u9499\u536B\u86CB\u767D",POSSIBLE_FOLLOW_UP_TEN:"CT\u548C\u7ED3\u80A0\u955C\u68C0\u67E5",POSSIBLE_FOLLOW_UP_ELEVEN:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570, \u809D\u80BE\u529F\u80FD, C-\u53CD\u5E94\u86CB\u767D, \u7EA2\u7EC6\u80DE\u6C89\u964D\u7387, \u81EA\u8EAB\u6297\u4F53 (\u5982, \u6297\u6838\u6297\u4F53\u7B49)",POSSIBLE_FOLLOW_UP_TWELVE:"\u5C0F\u4FBF\u68C0\u67E5",POSSIBLE_FOLLOW_UP_THIRTEEN:"\u5F71\u50CF\u68C0\u67E5 (\u5982, \u80F8\u8179\u90E8CT)",POSSIBLE_FOLLOW_UP_FOURTEEN:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570, \u809D\u80BE\u529F\u80FD,, \u7A7A\u8179\u8840\u7CD6\u548C\u80F0\u5C9B\u7D20, \u7CD6\u5316\u8840\u7EA2\u86CB\u767D ",POSSIBLE_FOLLOW_UP_FIFTEEN:"\u8840\u8102\u68C0\u67E5: \u8840\u5E38\u89C4\u548C\u5176\u5B83(\u5305\u62EC\uFF1AoxLDL, VLDL, LDL-P, Lp-PLA2, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"\u5176\u5B83\u8840\u538B\u68C0\u67E5, \u8D85\u654FC-\u53CD\u5E94\u86CB\u767D, \u540C\u578B\u534A\u80F1\u6C28\u9178, \u809D\u80BE\u529F\u80FD, \u7CD6\u5316\u8840\u7EA2\u86CB\u767D",POSSIBLE_FOLLOW_UP_SEVENTEEN:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570",POSSIBLE_FOLLOW_UP_EIGHTEEN:"\u80BA\u6D3B\u91CF\u68C0\u67E5",POSSIBLE_FOLLOW_UP_NINETEEN:"\u5FC3\u7535\u56FE\uFF0C\u80F8\u900F",POSSIBLE_FOLLOW_UP_TWENTY:"\u8840\u6DB2\u68C0\u67E5 (\u5305\u62EC. \u5375\u6CE1\u523A\u6FC0\u7D20 \u96CC\u4E8C\u9187, \u9EC4\u4F53\u916E, \u777E\u916E, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"\u770B\u4E34\u7EDD\u7ECF\u671F\u533B\u5B66\u4E13\u5BB6",POSSIBLE_FOLLOW_UP_TWENTYTWO:"\u8840\u6DB2\u68C0\u67E5: \u5168\u8840\u7EC6\u80DE\u8BA1\u6570, \u7C7B\u98CE\u6E7F\u56E0\u5B50, \u73AF\u74DC\u6C28\u9178\u80BD\u6297\u4F53, C-\u53CD\u5E94\u86CB\u767D",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"\u5173\u8282\u5F71\u50CF\u68C0\u67E5\uFF0CCT\u6216\u6838\u78C1\u5171\u632F",PERCENTILE:"\u767E\u5206\u4F4D",SINGLE_PERCENTILE:"\u767E\u5206\u4F4D",RISK_FACTORS:"\u98CE\u9669\u56E0\u5B50",RISK_FACTOR_ONE:"\u65E2\u5F80\u53F2 (\u5FC3\u810F\u4EE3\u8C22\u7EFC\u5408\u5F81, \u81EA\u8EAB\u514D\u75AB\u6027\u75BE\u75C5)",RISK_FACTOR_TWO:"\u5C31\u533B\u53F2 (\u5982\uFF0C\u6291\u5236\u7D20, \u63A5\u53D7\u5927\u91CF\u8F93\u6DB2 )",RISK_FACTOR_THREE:"\u5438\u70DF\u60C5\u51B5\uFF08\u5305\u62EC\u73B0\u5728\u548C\u8FC7\u53BB\uFF09",RANKS_YOU:"\u8FD9\u4E2A\u7ED3\u679C\u628A\u60A8\u6392\u5E8F\u5728",THIS_RESULT_RANKS_IN_THE:"\u8FD9\u4E2A\u7ED3\u679C\u6392\u5E8F\u5728",RELATED_RESEARCH_PAPERS:"\u76F8\u5173\u7814\u7A76\u6587\u732E",YOUR_RESULT:"\u60A8\u7684\u7ED3\u679C",CHRONIC_INFLAMMATION:"\u6162\u6027\u708E\u75C7",SYSTEMIC_INFLAMMATION:"\u7CFB\u7EDF\u6027\u708E\u75C7",ANTI_INFLAMMATORY:"\u6297\u708E\u7684",ANTI_INFLAMMATORY_INDEX:"\u6297\u708E\u6307\u6570",PRO_INFLAMMATORY:"\u4FC3\u708E\u7684",PRO_INFLAMMATORY_INDEX:"\u4FC3\u708E\u6307\u6570",SUPPORTIVE_INDEX:"\u652F\u6301\u6307\u6570",GLYCAN_SHIELD:"\u5C11\u5E74\u7CD6\u94FE (S)",GLYCAN_YOUTH:"\u9752\u5E74\u7CD6\u94FE (G2)",GLYCAN_MATURE:"\u8001\u5316\u7CD6\u94FE (G0)",GLYCAN_MEDIAN:"\u4E2D\u6027\u7CD6\u94FE (G1)",GLYCAN_LIFESTYLE:"\u53D7\u635F\u7CD6\u94FE (B)",GLYCAN_LIFESTYLE_B:"\u5E73\u5206\u578B\u7CD6\u94FE (B)",WORSE:"\u66F4\u5DEE",BETTER:"\u66F4\u597D",OPTIMAL:"\u6700\u4F73",SUBOPTIMAL:"\u6B21\u4F18",AVERAGE:"\u5E73\u5747",INDEX_SCORE:"\u6307\u6570\u5206\u503C",MEASURED_RESULT:"\u68C0\u67E5\u7ED3\u679C",POPULATION_AVERAGE:"\u4EBA\u7FA4\u5E73\u5747",AGE:"\u5E74\u9F84",SAME_AS:"\u540C\u6837",THAN:"\u66F4",YEAR_OLDER:"\u66F4\u8001",YEARS_OLDER:"\u66F4\u8001",YEAR_YOUNGER:"\u66F4\u5E74\u8F7B",YEARS_YOUNGER:"\u66F4\u5E74\u8F7B",AREA:"\u7CFB\u7EDF",CONDITION:"\u7EC6\u5206",OVERLAPS:"\u76F8\u5173\u6027",CARDIOVASCULAR:"\u5FC3\u8840\u7BA1",METABOLIC:"\u4EE3\u8C22",AUTOIMMUNE:"\u81EA\u8EAB\u514D\u75AB",RESPIRATORY:"\u547C\u5438\u7CFB\u7EDF",FEMALE:"\u4EC5\u5973\u6027",RISK_OF_HYPER:"\u9AD8\u8840\u538B\u98CE\u9669",PRE_HYPERTENSION:"\u9AD8\u8840\u538B\u524D\u671F",HYPERTENSION:"\u9AD8\u8840\u538B",MI_CVA:"\u5FC3\u6897\u548C\u5352\u4E2D",ATHEROSCLEROSIS:"\u52A8\u8109\u7CA5\u6837\u786C\u5316",CORONARY:"\u51A0\u5FC3\u75C5",TYPE_2_DIABETES:"II\u578B\u7CD6\u5C3F\u75C5",DYSLIPIDEMIA:"\u9AD8\u8840\u8102",RHEUMATOID:"\u7C7B\u98CE\u6E7F\u6027\u5173\u8282\u708E",ULCERATIVE_COLITIS:"\u6E83\u75A1\u6027\u7ED3\u80A0\u708E\uFF08UC)",CROHN:"\u514B\u7F57\u6069\u75C5",SLE:"\u7CFB\u7EDF\u6027\u7EA2\u6591\u72FC\u75AE\uFF08SLE)",COPD:"\u6162\u963B\u80BA\uFF08\u6162\u6027\u963B\u585E\u6027\u80BA\u75C5\uFF09COPD",PERIMENOPAUSE:"\u4E34\u7EDD\u7ECF\u671F/\u66F4\u5E74\u524D\u671F",NO_SIGNIFICANT_OVERLAP:"\u65E0\u76F8\u5173\u6027",RANKS_YOU_BEFORE:"\u60A8\u7684\u7ED3\u679C\u4F18\u4E8E",RANKS_YOU_AFTER:"\u7684\u4EBA"};function s(e,O="english"){if(O!=="english")return"";if(e===11||e===12||e===13)return"th";switch(e.toString().split("").pop()){case"1":return"st";case"2":return"nd";case"3":return"rd";default:return"th"}}function P(e,O="english"){const n={english:r,polish:t,slovenian:L,japanese:S,chinese:T};if(e<32)return n[O].LOWER_THAN_AVERAGE;if(e>=32&&e<=68)return n[O].AROUND_AVERAGE;if(e>68)return n[O].HIGHER_THAN_AVERAGE}function A(e="english",O){return{english:r,polish:t,slovenian:L,japanese:S,chinese:T}[e][O]}function a(e,O,n,i,E){const _=(e-O)*(E-i)/(n-O)+i;return _<i?i:_>E?E:_}function o(e,O,n,i){return i===O?50:i===e?9.5:i===n?90.5:i<e?5:i>n?95:i>e&&i<O?a(i,e,O,10,50):i>O&&i<n?a(i,O,n,50,90):0}function l(e,O,n,i){const E=o(e,O,n,i);if(E<23)return"#DF2120";if(E>=23&&E<=36)return"#F2800D";if(E>36&&E<64)return"#66CCAA";if(E>=64&&E<=77)return"#13A195";if(E>77)return"#015566"}function N(e,O,n,i){const E=o(e,O,n,i);if(E<23)return"#015566";if(E>=23&&E<=36)return"#13A195";if(E>36&&E<64)return"#66CCAA";if(E>=64&&E<=77)return"#F2800D";if(E>77)return"#DF2120"}function I(e,O,n,i){const E=o(e,O,n,i);if(E<9.5)return"#DF2120";if(E>=9.5&&E<=23)return"#F2800D";if(E>23&&E<37)return"#66CCAA";if(E>=37&&E<=63)return"#13A195";if(E>63&&E<77)return"#66CCAA";if(E>=77&&E<=90.5)return"#F2800D";if(E>90.5)return"#DF2120"}function R(e){if(e===50)return 50;if(e<2)return 2.8;if(e>98)return 97.2;if(e>=2&&e<50)return a(e,3,50,7,50);if(e>50&&e<=98)return a(e,50,97,50,93)}function c(e){if(e<18)return"#DF2120";if(e>=18&&e<34)return"#F2800D";if(e>=34&&e<67)return"#66CCAA";if(e>=67&&e<=82)return"#13A195";if(e>82)return"#015566"}function M(e){if(e<18)return"#015566";if(e>=18&&e<34)return"#13A195";if(e>=34&&e<67)return"#66CCAA";if(e>=67&&e<=82)return"#F2800D";if(e>82)return"#DF2120"}function u(e){if(e<2)return"#DF2120";if(e>=2&&e<18)return"#F2800D";if(e>=18&&e<34)return"#66CCAA";if(e>=34&&e<67)return"#13A195";if(e>=67&&e<=82)return"#66CCAA";if(e>82&&e<=98)return"#F2800D";if(e>98)return"#DF2120"}function Y(e){if(e<2)return"#DF2120";if(e>=2&&e<18)return"#F2800D";if(e>=18&&e<34)return"#13A195";if(e>=34&&e<67)return"#015566";if(e>=67&&e<=82)return"#13A195";if(e>82&&e<=98)return"#F2800D";if(e>98)return"#DF2120"}export{A as a,l as b,o as c,N as d,I as e,c as f,P as g,M as h,u as i,R as j,a as k,Y as l,s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,S as j,i as B,f as
|
|
1
|
+
import{c as H,S as j,i as B,f as z,s as X,a as U,e as E,m as O,b as D,n as f,p as I,g as R,q as x,r as Y,u as G,k as _,o as V,z as Z}from"./index2.js";import{g as q}from"./globals.js";import{a as L}from"./helpers.js";const{document:J}=q;function K(p){U(p,"svelte-13ksezj",".main.svelte-13ksezj{height:100%;width:100%;display:flex;align-items:end}.label.svelte-13ksezj{width:40%;display:flex;align-items:center;font-size:0.8rem;height:100%}.label-container.svelte-13ksezj{display:flex;flex-direction:column}")}function Q(p){let o,m,y,i,v=L(p[0],p[1])+"",T,$,w,b=L(p[0],p[2])+"",r,g,t,k,A;return{c(){o=E("div"),m=E("div"),y=E("div"),i=E("b"),T=O(v),$=D(),w=E("div"),r=O(b),g=D(),t=E("div"),t.innerHTML="",k=D(),A=E("link"),f(i,"font-size",(p[0]==="slovenian"?.7:.8)+"rem"),f(w,"font-size","0.7rem"),I(y,"class","label-container svelte-13ksezj"),I(m,"class","label svelte-13ksezj"),f(t,"display","flex"),f(t,"align-items","center"),f(t,"margin-bottom","1rem"),f(t,"height","55%"),f(t,"width","100%"),f(t,"position","relative"),I(o,"class","main svelte-13ksezj"),I(A,"href","https://fonts.googleapis.com/css2?family=Sen:wght@400..800&display=swap"),I(A,"rel","stylesheet")},m(c,e){R(c,o,e),x(o,m),x(m,y),x(y,i),x(i,T),x(y,$),x(y,w),x(w,r),x(o,g),x(o,t),p[6](t),R(c,k,e),x(J.head,A)},p(c,[e]){e&3&&v!==(v=L(c[0],c[1])+"")&&Y(T,v),e&1&&f(i,"font-size",(c[0]==="slovenian"?.7:.8)+"rem"),e&5&&b!==(b=L(c[0],c[2])+"")&&Y(r,b)},i:G,o:G,d(c){c&&(_(o),_(k)),p[6](null),_(A)}}}function W(p,o,m){let{service:y=window.GaReportService}=o,{type:i}=o,{lang:v}=o,T="",$="",w=[{name:"shield",label:"GLYCAN_SHIELD",description:"ANTI_INFLAMMATORY_INDEX",value:"Spercentile"},{name:"youth",label:"GLYCAN_YOUTH",description:"ANTI_INFLAMMATORY_INDEX",value:"G2percentile"},{name:"mature",label:"GLYCAN_MATURE",description:"PRO_INFLAMMATORY_INDEX",value:"G0percentile"},{name:"median",label:"GLYCAN_MEDIAN",description:"SUPPORTIVE_INDEX",value:"G1percentile"},{name:"lifestyle",label:"GLYCAN_LIFESTYLE_B",description:"SUPPORTIVE_INDEX",value:"Bpercentile"}];const b=w.find(e=>e.name===i);let r={},g,t;function k(e){if(i==="shield"||i==="youth"||i==="median")return e<=17?"#DD2222":e>17&&e<=33?"#EE6600":e>33&&e<=66?"#66CCAA":e>66&&e<=82?"#119999":"#005566";if(i==="mature"||i==="lifestyle")return e<=17?"#005566":e>17&&e<=33?"#119999":e>33&&e<=66?"#66CCAA":e>66&&e<=82?"#EE6600":"#DD2222"}function A(){g&&(r=echarts.init(g,null,{devicePixelRatio:4,renderer:"svg"}));const e=g.getBoundingClientRect(),C=w.find(s=>s.name===i).value;console.log("cur:",C);var N=t.data.map((s,a)=>[a,s[C]]),M={textStyle:{fontFamily:"Sen, sans serif"},animation:!1,backgroundColor:"transparent",grid:{top:"2px",left:"2px",right:"2px",bottom:"2px"},dataset:[{source:N}],tooltip:{show:!1},xAxis:{min:t.data.map((s,a)=>[a,s[C]])[0][0],max:t.data.map((s,a)=>[a,s[C]])[t.data.length-1][0],name:"",interval:1,axisLine:{show:!1,symbol:["none","arrow"],symbolSize:[5,10],symbolOffset:[8]},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},yAxis:{min:0,max:100,name:"",axisLine:{show:!1,symbol:["none","arrow"],symbolSize:[5,10],symbolOffset:[5]},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},series:[{name:"Chrono Age",type:"line",smooth:!0,datasetIndex:0,symbol:"line",lineStyle:{color:"#416D57",width:3},showSymbol:!1,z:10}],graphic:[]};r.setOption(M);for(let s=0;s<t.data.length;s++){const a=document.createElementNS("http://www.w3.org/2000/svg","svg"),u=document.createElement("div"),h=document.createElement("div"),d=document.createElement("div");h.style.position="absolute",h.style.left=`${e.left+r.convertToPixel("xAxis",s)}px`,h.style.top=`${e.top}px`,h.style.height=`${e.height}px`,h.style.width="2px",h.style.display="flex",h.style.flexDirection="column",h.style.zIndex="0";for(let l=0;l<8;l++){const n=document.createElement("div");n.style.width="2px",n.style.height="8px",n.style.borderRadius="99px",n.style.marginBottom="2px",n.style.opacity=t.data[s].result?"1":"0.5",(i==="mature"||i==="lifestyle")&&(l<2&&(n.style.backgroundColor="#DD2222"),l===2&&(n.style.backgroundColor="#EE6600"),(l===3||l===4)&&(n.style.backgroundColor="#66CCAA"),l===5&&(n.style.backgroundColor="#119999"),l>5&&(n.style.backgroundColor="#005566")),(i==="shield"||i==="youth"||i==="median")&&(l<2&&(n.style.backgroundColor="#005566"),l===2&&(n.style.backgroundColor="#119999"),(l===3||l===4)&&(n.style.backgroundColor="#66CCAA"),l===5&&(n.style.backgroundColor="#EE6600"),l>5&&(n.style.backgroundColor="#DD2222")),h.appendChild(n)}a.setAttribute("width","28"),a.setAttribute("height","33"),a.setAttribute("viewBox","0 0 28 33"),a.setAttribute("fill","none"),a.setAttribute("xmlns","http://www.w3.org/2000/svg");const S=document.createElementNS("http://www.w3.org/2000/svg","path");if(S.setAttribute("d","M14.0003 32.5418C13.6114 32.5418 13.2225 32.4724 12.8337 32.3335C12.4448 32.1946 12.0975 31.9863 11.792 31.7085C9.98644 30.0418 8.38921 28.4168 7.00033 26.8335C5.61144 25.2502 4.45171 23.7154 3.52116 22.2293C2.5906 20.7432 1.88227 19.3127 1.39616 17.9377C0.910048 16.5627 0.666992 15.2502 0.666992 14.0002C0.666992 9.8335 2.00727 6.51405 4.68783 4.04183C7.36838 1.56961 10.4725 0.333496 14.0003 0.333496C17.5281 0.333496 20.6323 1.56961 23.3128 4.04183C25.9934 6.51405 27.3337 9.8335 27.3337 14.0002C27.3337 15.2502 27.0906 16.5627 26.6045 17.9377C26.1184 19.3127 25.41 20.7432 24.4795 22.2293C23.5489 23.7154 22.3892 25.2502 21.0003 26.8335C19.6114 28.4168 18.0142 30.0418 16.2087 31.7085C15.9031 31.9863 15.5559 32.1946 15.167 32.3335C14.7781 32.4724 14.3892 32.5418 14.0003 32.5418Z"),S.setAttribute("fill",k(t.data[s][C])),a.appendChild(S),a.style.position="absolute",a.style.left=`${e.left+r.convertToPixel("xAxis",s)-14}px`,a.style.top=`${e.top+r.convertToPixel("yAxis",N[s][1])-37}px`,a.style.zIndex="8",a.style.opacity=t.data[s].result?"1":"0.4",u.innerText=`${t.data[s][C]}`,u.style.position="absolute",u.style.left=`${e.left+r.convertToPixel("xAxis",s)-(t.data[s][C]<10?4:t.data[s][C]===100?10:7)}px`,u.style.top=`${e.top+r.convertToPixel("yAxis",N[s][1])+-30}px`,u.style.font="bold 12px sans-serif",u.style.color="white",u.style.zIndex="19",u.style.fontFamily="Sen",u.style.opacity=t.data[s].result?"1":"0.8",i==="lifestyle"&&t.data[s].result){d.style.position="absolute",d.style.left=s===t.data.length-1?`${e.left+r.convertToPixel("xAxis",s)-25}px`:`${e.left+r.convertToPixel("xAxis",s)-60}px`,d.style.top=`${e.top+86}px`,d.style.font="bold 12px sans-serif",d.style.color="black",d.style.zIndex="19",d.style.fontFamily="Sen",d.style.display="flex",d.style.flexDirection="column",d.style.alignItems="center";const l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width","16"),l.setAttribute("height","18"),l.setAttribute("viewBox","0 0 16 18"),l.setAttribute("fill","none"),l.setAttribute("xmlns","http://www.w3.org/2000/svg");const n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d","M7 17C7 17.5523 7.44772 18 8 18C8.55228 18 9 17.5523 9 17H7ZM8.70711 0.292893C8.31658 -0.0976311 7.68342 -0.0976311 7.29289 0.292893L0.928932 6.65685C0.538408 7.04738 0.538408 7.68054 0.928932 8.07107C1.31946 8.46159 1.95262 8.46159 2.34315 8.07107L8 2.41421L13.6569 8.07107C14.0474 8.46159 14.6805 8.46159 15.0711 8.07107C15.4616 7.68054 15.4616 7.04738 15.0711 6.65685L8.70711 0.292893ZM8 17H9V1H8H7V17H8Z"),n.setAttribute("fill","#09341F"),l.appendChild(n);const P=document.createElement("div");P.innerText=s===t.data.length-1?"This test":"Results from this test",d.appendChild(l),d.appendChild(P),document.body.appendChild(d)}document.body.appendChild(u),document.body.appendChild(a),document.body.appendChild(h)}r.setOption(M)}V(async()=>{t=await y.getOverTimeDataIndexes(),t.data.findIndex(e=>e.result===!0),A(),b&&(m(1,T=b.label),m(2,$=b.description))});function c(e){Z[e?"unshift":"push"](()=>{g=e,m(3,g)})}return p.$$set=e=>{"service"in e&&m(4,y=e.service),"type"in e&&m(5,i=e.type),"lang"in e&&m(0,v=e.lang)},[v,T,$,g,y,i,c]}class F extends j{constructor(o){super(),B(this,o,W,Q,X,{service:4,type:5,lang:0},K)}get service(){return this.$$.ctx[4]}set service(o){this.$$set({service:o}),z()}get type(){return this.$$.ctx[5]}set type(o){this.$$set({type:o}),z()}get lang(){return this.$$.ctx[0]}set lang(o){this.$$set({lang:o}),z()}}customElements.define("ga-over-time-indexes",H(F,{service:{},type:{},lang:{}},[],[],!1));export{F as default};
|
package/dist/over-time.wc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,S as E,i as z,f as F,s as M,e as b,b as D,n as u,p as A,g as f,q as I,u as C,k as w,o as N,z as k}from"./index2.js";import{g as B}from"./globals.js";const{document:L}=B;function O(d){let n,a,x;return{c(){n=b("div"),a=D(),x=b("link"),u(n,"width","100%"),u(n,"height","100%"),u(n,"position","relative"),A(x,"href","https://fonts.googleapis.com/css2?family=Sen:wght@400..800&display=swap"),A(x,"rel","stylesheet")},m(o,p){f(o,n,p),d[2](n),f(o,a,p),I(L.head,x)},p:C,i:C,o:C,d(o){o&&(w(n),w(a)),d[2](null),w(x)}}}function g(d,n){let a=Math.abs(d-n);return n>d?a===0||a<=5?"#66CCAA":a>5&&a<=11?"#EE6600":"#DD2222":a===0||a<=5?"#66CCAA":a>5&&a<=11?"#119999":"#005566"}function Z(d,n,a){let{service:x=window.GaReportService}=n,o={},p,i,v;function $(){p&&(o=echarts.init(p,null,{devicePixelRatio:4,renderer:"svg"}));const l=p.getBoundingClientRect();var y=i.data.map((e,t)=>[t,e.x]),c=i.data.map((e,t)=>[t,e.y]),m={textStyle:{fontFamily:"Sen, sans serif"},animation:!1,backgroundColor:"transparent",grid:{top:"2px",left:"2px",right:"2px",bottom:"2px"},dataset:[{source:y},{source:c}],tooltip:{show:!1},xAxis:{min:i.data.map((e,t)=>[t,e.x])[0][0],max:i.data.map((e,t)=>[t,e.x])[i.data.length-1][0],name:"",interval:1,axisLine:{show:!1,symbol:["none","arrow"],symbolSize:[5,10],symbolOffset:[8]},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},yAxis:{min:Math.min(...i.data.map(e=>Math.min(e.x,e.y)))-5,max:Math.max(...i.data.map(e=>Math.max(e.x,e.y)))+5,name:"",axisLine:{show:!1,symbol:["none","arrow"],symbolSize:[5,10],symbolOffset:[5]},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},series:[{name:"Chrono Age",type:"line",smooth:!0,datasetIndex:0,symbol:"line",lineStyle:{color:"#BCD2C7",width:5},showSymbol:!1,z:10},{name:"Glycan Age",type:"line",smooth:!0,datasetIndex:1,lineStyle:{color:"#416D57",width:5},showSymbol:!1,z:20},{name:"Glycan Age Outer White line",type:"line",smooth:!0,datasetIndex:1,lineStyle:{color:"#FAFAFA",width:12},showSymbol:!1,z:19}],graphic:[]};o.setOption(m);for(let e=0;e<y.length;e++)if(e!==v){m.graphic.push({type:"line",shape:{x1:o.convertToPixel("xAxis",e),y1:o.convertToPixel("yAxis",0),x2:o.convertToPixel("xAxis",e),y2:o.convertToPixel("yAxis",Math.max(...i.data.map(h=>Math.max(h.x,h.y)))+5)},style:{stroke:"#09341F33",lineDash:[6,15],lineWidth:2}});const t=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=document.createElement("div");t.setAttribute("width","28"),t.setAttribute("height","33"),t.setAttribute("viewBox","0 0 28 33"),t.setAttribute("fill","none"),t.setAttribute("xmlns","http://www.w3.org/2000/svg");const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M14.0007 0.333168C14.3895 0.333168 14.7784 0.402611 15.1673 0.5415C15.5562 0.680389 15.9034 0.888721 16.209 1.1665C18.0145 2.83317 19.6118 4.45817 21.0007 6.0415C22.3895 7.62483 23.5493 9.15956 24.4798 10.6457C25.4104 12.1318 26.1187 13.5623 26.6048 14.9373C27.0909 16.3123 27.334 17.6248 27.334 18.8748C27.334 23.0415 25.9937 26.3609 23.3132 28.8332C20.6326 31.3054 17.5284 32.5415 14.0007 32.5415C10.4729 32.5415 7.36871 31.3054 4.68815 28.8332C2.00759 26.3609 0.667316 23.0415 0.667316 18.8748C0.667316 17.6248 0.910372 16.3123 1.39648 14.9373C1.8826 13.5623 2.59093 12.1318 3.52148 10.6457C4.45204 9.15956 5.61176 7.62483 7.00065 6.0415C8.38954 4.45817 9.98676 2.83317 11.7923 1.1665C12.0979 0.888721 12.4451 0.680389 12.834 0.5415C13.2229 0.402611 13.6118 0.333168 14.0007 0.333168Z"),r.setAttribute("fill","#D7E5DF"),t.appendChild(r),t.style.position="absolute",t.style.left=`${l.left+o.convertToPixel("xAxis",e)-14}px`,t.style.top=`${l.top+o.convertToPixel("yAxis",y[e][1])+8}px`,t.style.zIndex="8",t.style.opacity="0.5",s.innerText=`${y[e][1]}`,s.style.position="absolute",s.style.left=`${l.left+o.convertToPixel("xAxis",e)-7}px`,s.style.top=`${l.top+o.convertToPixel("yAxis",y[e][1])+18}px`,s.style.font="bold 12px sans-serif",s.style.color="#09341F80",s.style.zIndex="19",s.style.fontFamily="Sen",s.style.opacity="0.5",document.body.appendChild(s),document.body.appendChild(t)}else{m.graphic.push({type:"line",shape:{x1:o.convertToPixel("xAxis",e),y1:o.convertToPixel("yAxis",0),x2:o.convertToPixel("xAxis",e),y2:o.convertToPixel("yAxis",Math.max(...i.data.map(h=>Math.max(h.x,h.y)))+5)},style:{stroke:"#416D57",lineDash:[6,15],lineWidth:2}});const t=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=document.createElement("div");t.setAttribute("width","28"),t.setAttribute("height","33"),t.setAttribute("viewBox","0 0 28 33"),t.setAttribute("fill","none"),t.setAttribute("xmlns","http://www.w3.org/2000/svg");const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M14.0007 0.333168C14.3895 0.333168 14.7784 0.402611 15.1673 0.5415C15.5562 0.680389 15.9034 0.888721 16.209 1.1665C18.0145 2.83317 19.6118 4.45817 21.0007 6.0415C22.3895 7.62483 23.5493 9.15956 24.4798 10.6457C25.4104 12.1318 26.1187 13.5623 26.6048 14.9373C27.0909 16.3123 27.334 17.6248 27.334 18.8748C27.334 23.0415 25.9937 26.3609 23.3132 28.8332C20.6326 31.3054 17.5284 32.5415 14.0007 32.5415C10.4729 32.5415 7.36871 31.3054 4.68815 28.8332C2.00759 26.3609 0.667316 23.0415 0.667316 18.8748C0.667316 17.6248 0.910372 16.3123 1.39648 14.9373C1.8826 13.5623 2.59093 12.1318 3.52148 10.6457C4.45204 9.15956 5.61176 7.62483 7.00065 6.0415C8.38954 4.45817 9.98676 2.83317 11.7923 1.1665C12.0979 0.888721 12.4451 0.680389 12.834 0.5415C13.2229 0.402611 13.6118 0.333168 14.0007 0.333168Z"),r.setAttribute("fill","#D7E5DF"),t.appendChild(r),t.style.position="absolute",t.style.left=`${l.left+o.convertToPixel("xAxis",e)-14}px`,t.style.top=`${l.top+o.convertToPixel("yAxis",y[e][1])+8}px`,t.style.zIndex="8",s.innerText=`${y[e][1]}`,s.style.position="absolute",s.style.left=`${l.left+o.convertToPixel("xAxis",e)-7}px`,s.style.top=`${l.top+o.convertToPixel("yAxis",y[e][1])+18}px`,s.style.font="bold 12px sans-serif",s.style.color="#09341F80",s.style.zIndex="19",s.style.fontFamily="Sen",document.body.appendChild(s),document.body.appendChild(t)}for(let e=0;e<i.data.length;e++)if(i.data[e].x<i.data[e].y||i.data[e].x===i.data[e].y){const t=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=document.createElement("div");t.setAttribute("width","28"),t.setAttribute("height","33"),t.setAttribute("viewBox","0 0 28 33"),t.setAttribute("fill","none"),t.setAttribute("xmlns","http://www.w3.org/2000/svg");const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M14.0003 32.5418C13.6114 32.5418 13.2225 32.4724 12.8337 32.3335C12.4448 32.1946 12.0975 31.9863 11.792 31.7085C9.98644 30.0418 8.38921 28.4168 7.00033 26.8335C5.61144 25.2502 4.45171 23.7154 3.52116 22.2293C2.5906 20.7432 1.88227 19.3127 1.39616 17.9377C0.910048 16.5627 0.666992 15.2502 0.666992 14.0002C0.666992 9.8335 2.00727 6.51405 4.68783 4.04183C7.36838 1.56961 10.4725 0.333496 14.0003 0.333496C17.5281 0.333496 20.6323 1.56961 23.3128 4.04183C25.9934 6.51405 27.3337 9.8335 27.3337 14.0002C27.3337 15.2502 27.0906 16.5627 26.6045 17.9377C26.1184 19.3127 25.41 20.7432 24.4795 22.2293C23.5489 23.7154 22.3892 25.2502 21.0003 26.8335C19.6114 28.4168 18.0142 30.0418 16.2087 31.7085C15.9031 31.9863 15.5559 32.1946 15.167 32.3335C14.7781 32.4724 14.3892 32.5418 14.0003 32.5418Z"),r.setAttribute("fill",g(i.data[e].x,i.data[e].y)),t.appendChild(r),t.style.position="absolute",t.style.left=`${l.left+o.convertToPixel("xAxis",e)-14}px`,t.style.top=`${l.top+o.convertToPixel("yAxis",c[e][1])-47}px`,t.style.zIndex="8",t.style.opacity=i.data[e].result?"1":"0.5",s.innerText=`${i.data[e].y}`,s.style.position="absolute",s.style.left=`${l.left+o.convertToPixel("xAxis",e)-7}px`,s.style.top=`${l.top+o.convertToPixel("yAxis",c[e][1])+-40}px`,s.style.font="bold 12px sans-serif",s.style.color="white",s.style.zIndex="19",s.style.fontFamily="Sen",s.style.opacity=i.data[e].result?"1":"0.8",document.body.appendChild(s),document.body.appendChild(t)}else{const t=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=document.createElement("div");t.setAttribute("width","28"),t.setAttribute("height","33"),t.setAttribute("viewBox","0 0 28 33"),t.setAttribute("fill","none"),t.setAttribute("xmlns","http://www.w3.org/2000/svg");const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M13.9997 0.458167C14.3886 0.458167 14.7775 0.52761 15.1663 0.666499C15.5552 0.805388 15.9025 1.01372 16.208 1.2915C18.0136 2.95817 19.6108 4.58317 20.9997 6.1665C22.3886 7.74983 23.5483 9.28456 24.4788 10.7707C25.4094 12.2568 26.1177 13.6873 26.6038 15.0623C27.09 16.4373 27.333 17.7498 27.333 18.9998C27.333 23.1665 25.9927 26.4859 23.3122 28.9582C20.6316 31.4304 17.5275 32.6665 13.9997 32.6665C10.4719 32.6665 7.36773 31.4304 4.68717 28.9582C2.00662 26.4859 0.666341 23.1665 0.666341 18.9998C0.666341 17.7498 0.909397 16.4373 1.39551 15.0623C1.88162 13.6873 2.58995 12.2568 3.52051 10.7707C4.45107 9.28456 5.61079 7.74983 6.99968 6.1665C8.38857 4.58316 9.98579 2.95816 11.7913 1.2915C12.0969 1.01372 12.4441 0.805388 12.833 0.666499C13.2219 0.52761 13.6108 0.458167 13.9997 0.458167Z"),r.setAttribute("fill",g(i.data[e].x,i.data[e].y)),t.appendChild(r),t.style.position="absolute",t.style.left=`${l.left+o.convertToPixel("xAxis",e)-14}px`,t.style.top=`${l.top+o.convertToPixel("yAxis",c[e][1])+8}px`,t.style.zIndex="8",t.style.opacity=i.data[e].result?"1":"0.5",s.innerText=`${i.data[e].y}`,s.style.position="absolute",s.style.left=`${l.left+o.convertToPixel("xAxis",e)-7}px`,s.style.top=`${l.top+o.convertToPixel("yAxis",c[e][1])+18}px`,s.style.font="bold 12px sans-serif",s.style.color="white",s.style.zIndex="999",s.style.fontFamily="Sen",s.style.opacity=i.data[e].result?"1":"0.8",document.body.appendChild(s),document.body.appendChild(t)}o.setOption(m)}N(async()=>{i=await x.getOverTimeData(),v=i.data.findIndex(l=>l.result===!0),$()});function P(l){k[l?"unshift":"push"](()=>{p=l,a(0,p)})}return d.$$set=l=>{"service"in l&&a(1,x=l.service)},[p,x,P]}class T extends E{constructor(n){super(),z(this,n,Z,O,M,{service:1})}get service(){return this.$$.ctx[1]}set service(n){this.$$set({service:n}),F()}}customElements.define("ga-over-time",S(T,{service:{}},[],[],!1));export{T as default};
|
|
1
|
+
import{c as P,S as E,i as M,f as z,s as F,e as f,b as I,n as u,p as v,g as A,q as D,u as C,k as w,o as L,z as N}from"./index2.js";import{g as k}from"./globals.js";const{document:B}=k;function Z(y){let a,x,d;return{c(){a=f("div"),x=I(),d=f("link"),u(a,"width","100%"),u(a,"height","100%"),u(a,"position","relative"),v(d,"href","https://fonts.googleapis.com/css2?family=Sen:wght@400..800&display=swap"),v(d,"rel","stylesheet")},m(o,p){A(o,a,p),y[2](a),A(o,x,p),D(B.head,d)},p:C,i:C,o:C,d(o){o&&(w(a),w(x)),y[2](null),w(d)}}}function g(y,a){let x=Math.abs(y-a);return a>y?x===0||x<=5?"#66CCAA":x>5&&x<=11?"#EE6600":"#DD2222":x===0||x<=5?"#66CCAA":x>5&&x<=11?"#119999":"#005566"}function H(y,a,x){let{service:d=window.GaReportService}=a,o={},p,l,b;function S(){p&&(o=echarts.init(p,null,{devicePixelRatio:4,renderer:"svg"}));const n=p.getBoundingClientRect();var c=l.data.map((t,s)=>[s,t.x]),h=l.data.map((t,s)=>[s,t.y]),m={textStyle:{fontFamily:"Sen, sans serif"},animation:!1,backgroundColor:"transparent",grid:{top:"2px",left:"2px",right:"2px",bottom:"2px"},dataset:[{source:c},{source:h}],tooltip:{show:!1},xAxis:{min:l.data.map((t,s)=>[s,t.x])[0][0],max:l.data.map((t,s)=>[s,t.x])[l.data.length-1][0],name:"",interval:1,axisLine:{show:!1,symbol:["none","arrow"],symbolSize:[5,10],symbolOffset:[8]},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},yAxis:{min:Math.min(...l.data.map(t=>Math.min(t.x,t.y)))-5,max:Math.max(...l.data.map(t=>Math.max(t.x,t.y)))+5,name:"",axisLine:{show:!1,symbol:["none","arrow"],symbolSize:[5,10],symbolOffset:[5]},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},series:[{name:"Chrono Age",type:"line",smooth:!0,datasetIndex:0,symbol:"line",lineStyle:{color:"#BCD2C7",width:5},showSymbol:!1,z:10},{name:"Glycan Age",type:"line",smooth:!0,datasetIndex:1,lineStyle:{color:"#416D57",width:5},showSymbol:!1,z:20},{name:"Glycan Age Outer White line",type:"line",smooth:!0,datasetIndex:1,lineStyle:{color:"#FAFAFA",width:12},showSymbol:!1,z:19}],graphic:[]};o.setOption(m);for(let t=0;t<c.length;t++)if(t!==b){m.graphic.push({type:"line",shape:{x1:o.convertToPixel("xAxis",t),y1:o.convertToPixel("yAxis",0),x2:o.convertToPixel("xAxis",t),y2:o.convertToPixel("yAxis",Math.max(...l.data.map(r=>Math.max(r.x,r.y)))+5)},style:{stroke:"#09341F33",lineDash:[6,15],lineWidth:2}});const s=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElement("div");s.setAttribute("width","28"),s.setAttribute("height","33"),s.setAttribute("viewBox","0 0 28 33"),s.setAttribute("fill","none"),s.setAttribute("xmlns","http://www.w3.org/2000/svg");const i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttribute("d","M14.0007 0.333168C14.3895 0.333168 14.7784 0.402611 15.1673 0.5415C15.5562 0.680389 15.9034 0.888721 16.209 1.1665C18.0145 2.83317 19.6118 4.45817 21.0007 6.0415C22.3895 7.62483 23.5493 9.15956 24.4798 10.6457C25.4104 12.1318 26.1187 13.5623 26.6048 14.9373C27.0909 16.3123 27.334 17.6248 27.334 18.8748C27.334 23.0415 25.9937 26.3609 23.3132 28.8332C20.6326 31.3054 17.5284 32.5415 14.0007 32.5415C10.4729 32.5415 7.36871 31.3054 4.68815 28.8332C2.00759 26.3609 0.667316 23.0415 0.667316 18.8748C0.667316 17.6248 0.910372 16.3123 1.39648 14.9373C1.8826 13.5623 2.59093 12.1318 3.52148 10.6457C4.45204 9.15956 5.61176 7.62483 7.00065 6.0415C8.38954 4.45817 9.98676 2.83317 11.7923 1.1665C12.0979 0.888721 12.4451 0.680389 12.834 0.5415C13.2229 0.402611 13.6118 0.333168 14.0007 0.333168Z"),i.setAttribute("fill","#D7E5DF"),s.appendChild(i),s.style.position="absolute",s.style.left=`${n.left+o.convertToPixel("xAxis",t)-14}px`,s.style.top=`${n.top+o.convertToPixel("yAxis",c[t][1])+8}px`,s.style.zIndex="8",s.style.opacity="0.5",e.innerText=`${c[t][1]}`,e.style.position="absolute",e.style.left=`${n.left+o.convertToPixel("xAxis",t)-7}px`,e.style.top=`${n.top+o.convertToPixel("yAxis",c[t][1])+18}px`,e.style.font="bold 12px sans-serif",e.style.color="#09341F80",e.style.zIndex="19",e.style.fontFamily="Sen",e.style.opacity="0.5",document.body.appendChild(e),document.body.appendChild(s)}else{m.graphic.push({type:"line",shape:{x1:o.convertToPixel("xAxis",t),y1:o.convertToPixel("yAxis",0),x2:o.convertToPixel("xAxis",t),y2:o.convertToPixel("yAxis",Math.max(...l.data.map(r=>Math.max(r.x,r.y)))+5)},style:{stroke:"#416D57",lineDash:[6,15],lineWidth:2}});const s=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElement("div");s.setAttribute("width","28"),s.setAttribute("height","33"),s.setAttribute("viewBox","0 0 28 33"),s.setAttribute("fill","none"),s.setAttribute("xmlns","http://www.w3.org/2000/svg");const i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttribute("d","M14.0007 0.333168C14.3895 0.333168 14.7784 0.402611 15.1673 0.5415C15.5562 0.680389 15.9034 0.888721 16.209 1.1665C18.0145 2.83317 19.6118 4.45817 21.0007 6.0415C22.3895 7.62483 23.5493 9.15956 24.4798 10.6457C25.4104 12.1318 26.1187 13.5623 26.6048 14.9373C27.0909 16.3123 27.334 17.6248 27.334 18.8748C27.334 23.0415 25.9937 26.3609 23.3132 28.8332C20.6326 31.3054 17.5284 32.5415 14.0007 32.5415C10.4729 32.5415 7.36871 31.3054 4.68815 28.8332C2.00759 26.3609 0.667316 23.0415 0.667316 18.8748C0.667316 17.6248 0.910372 16.3123 1.39648 14.9373C1.8826 13.5623 2.59093 12.1318 3.52148 10.6457C4.45204 9.15956 5.61176 7.62483 7.00065 6.0415C8.38954 4.45817 9.98676 2.83317 11.7923 1.1665C12.0979 0.888721 12.4451 0.680389 12.834 0.5415C13.2229 0.402611 13.6118 0.333168 14.0007 0.333168Z"),i.setAttribute("fill","#D7E5DF"),s.appendChild(i),s.style.position="absolute",s.style.left=`${n.left+o.convertToPixel("xAxis",t)-14}px`,s.style.top=`${n.top+o.convertToPixel("yAxis",c[t][1])+8}px`,s.style.zIndex="8",e.innerText=`${c[t][1]}`,e.style.position="absolute",e.style.left=`${n.left+o.convertToPixel("xAxis",t)-7}px`,e.style.top=`${n.top+o.convertToPixel("yAxis",c[t][1])+18}px`,e.style.font="bold 12px sans-serif",e.style.color="#09341F80",e.style.zIndex="19",e.style.fontFamily="Sen",document.body.appendChild(e),document.body.appendChild(s)}for(let t=0;t<l.data.length;t++){if(l.data[t].x<l.data[t].y||l.data[t].x===l.data[t].y){const e=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=document.createElement("div");e.setAttribute("width","28"),e.setAttribute("height","33"),e.setAttribute("viewBox","0 0 28 33"),e.setAttribute("fill","none"),e.setAttribute("xmlns","http://www.w3.org/2000/svg");const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M14.0003 32.5418C13.6114 32.5418 13.2225 32.4724 12.8337 32.3335C12.4448 32.1946 12.0975 31.9863 11.792 31.7085C9.98644 30.0418 8.38921 28.4168 7.00033 26.8335C5.61144 25.2502 4.45171 23.7154 3.52116 22.2293C2.5906 20.7432 1.88227 19.3127 1.39616 17.9377C0.910048 16.5627 0.666992 15.2502 0.666992 14.0002C0.666992 9.8335 2.00727 6.51405 4.68783 4.04183C7.36838 1.56961 10.4725 0.333496 14.0003 0.333496C17.5281 0.333496 20.6323 1.56961 23.3128 4.04183C25.9934 6.51405 27.3337 9.8335 27.3337 14.0002C27.3337 15.2502 27.0906 16.5627 26.6045 17.9377C26.1184 19.3127 25.41 20.7432 24.4795 22.2293C23.5489 23.7154 22.3892 25.2502 21.0003 26.8335C19.6114 28.4168 18.0142 30.0418 16.2087 31.7085C15.9031 31.9863 15.5559 32.1946 15.167 32.3335C14.7781 32.4724 14.3892 32.5418 14.0003 32.5418Z"),r.setAttribute("fill",g(l.data[t].x,l.data[t].y)),e.appendChild(r),e.style.position="absolute",e.style.left=`${n.left+o.convertToPixel("xAxis",t)-14}px`,e.style.top=`${n.top+o.convertToPixel("yAxis",h[t][1])-47}px`,e.style.zIndex="8",e.style.opacity=l.data[t].result?"1":"0.5",i.innerText=`${l.data[t].y}`,i.style.position="absolute",i.style.left=`${n.left+o.convertToPixel("xAxis",t)-7}px`,i.style.top=`${n.top+o.convertToPixel("yAxis",h[t][1])+-40}px`,i.style.font="bold 12px sans-serif",i.style.color="white",i.style.zIndex="19",i.style.fontFamily="Sen",i.style.opacity=l.data[t].result?"1":"0.8",document.body.appendChild(i),document.body.appendChild(e)}else{const e=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=document.createElement("div");e.setAttribute("width","28"),e.setAttribute("height","33"),e.setAttribute("viewBox","0 0 28 33"),e.setAttribute("fill","none"),e.setAttribute("xmlns","http://www.w3.org/2000/svg");const r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("d","M13.9997 0.458167C14.3886 0.458167 14.7775 0.52761 15.1663 0.666499C15.5552 0.805388 15.9025 1.01372 16.208 1.2915C18.0136 2.95817 19.6108 4.58317 20.9997 6.1665C22.3886 7.74983 23.5483 9.28456 24.4788 10.7707C25.4094 12.2568 26.1177 13.6873 26.6038 15.0623C27.09 16.4373 27.333 17.7498 27.333 18.9998C27.333 23.1665 25.9927 26.4859 23.3122 28.9582C20.6316 31.4304 17.5275 32.6665 13.9997 32.6665C10.4719 32.6665 7.36773 31.4304 4.68717 28.9582C2.00662 26.4859 0.666341 23.1665 0.666341 18.9998C0.666341 17.7498 0.909397 16.4373 1.39551 15.0623C1.88162 13.6873 2.58995 12.2568 3.52051 10.7707C4.45107 9.28456 5.61079 7.74983 6.99968 6.1665C8.38857 4.58316 9.98579 2.95816 11.7913 1.2915C12.0969 1.01372 12.4441 0.805388 12.833 0.666499C13.2219 0.52761 13.6108 0.458167 13.9997 0.458167Z"),r.setAttribute("fill",g(l.data[t].x,l.data[t].y)),e.appendChild(r),e.style.position="absolute",e.style.left=`${n.left+o.convertToPixel("xAxis",t)-14}px`,e.style.top=`${n.top+o.convertToPixel("yAxis",h[t][1])+8}px`,e.style.zIndex="8",e.style.opacity=l.data[t].result?"1":"0.5",i.innerText=`${l.data[t].y}`,i.style.position="absolute",i.style.left=`${n.left+o.convertToPixel("xAxis",t)-7}px`,i.style.top=`${n.top+o.convertToPixel("yAxis",h[t][1])+18}px`,i.style.font="bold 12px sans-serif",i.style.color="white",i.style.zIndex="999",i.style.fontFamily="Sen",i.style.opacity=l.data[t].result?"1":"0.8",document.body.appendChild(i),document.body.appendChild(e)}const s=document.createElement("div");if(l.data[t].result){s.style.position="absolute",s.style.left=t===l.data.length-1?`${n.left+o.convertToPixel("xAxis",t)-25}px`:`${n.left+o.convertToPixel("xAxis",t)-62}px`,s.style.top="72%",s.style.font="bold 12px sans-serif",s.style.color="black",s.style.zIndex="19",s.style.fontFamily="Sen",s.style.display="flex",s.style.flexDirection="column",s.style.alignItems="center";const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("width","16"),e.setAttribute("height","18"),e.setAttribute("viewBox","0 0 16 18"),e.setAttribute("fill","none"),e.setAttribute("xmlns","http://www.w3.org/2000/svg");const i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttribute("d","M7 17C7 17.5523 7.44772 18 8 18C8.55228 18 9 17.5523 9 17H7ZM8.70711 0.292893C8.31658 -0.0976311 7.68342 -0.0976311 7.29289 0.292893L0.928932 6.65685C0.538408 7.04738 0.538408 7.68054 0.928932 8.07107C1.31946 8.46159 1.95262 8.46159 2.34315 8.07107L8 2.41421L13.6569 8.07107C14.0474 8.46159 14.6805 8.46159 15.0711 8.07107C15.4616 7.68054 15.4616 7.04738 15.0711 6.65685L8.70711 0.292893ZM8 17H9V1H8H7V17H8Z"),i.setAttribute("fill","#09341F"),e.appendChild(i);const r=document.createElement("div");r.innerText=t===l.data.length-1?"This test":"Results from this test",s.appendChild(e),s.appendChild(r),document.body.appendChild(s)}}o.setOption(m)}L(async()=>{l=await d.getOverTimeData(),b=l.data.findIndex(n=>n.result===!0),S()});function $(n){N[n?"unshift":"push"](()=>{p=n,x(0,p)})}return y.$$set=n=>{"service"in n&&x(1,d=n.service)},[p,d,$]}class T extends E{constructor(a){super(),M(this,a,H,Z,F,{service:1})}get service(){return this.$$.ctx[1]}set service(a){this.$$set({service:a}),z()}}customElements.define("ga-over-time",P(T,{service:{}},[],[],!1));export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as me,S as ge,i as fe,f as oe,s as pe,a as xe,d as be,g as a,u as de,k as n,o as ze,e as u,m as M,b as g,v as H,n as c,p as l,q as m,r as S}from"./index2.js";import{a as N,s as ve,f as q,h as Z,k as J,j as C}from"./helpers.js";function ye(t){xe(t,"svelte-1n3zao6",".main.svelte-1n3zao6{height:100%;width:100%;display:flex}.label.svelte-1n3zao6{width:30%;display:flex;align-items:center;font-size:0.8rem}.label-container.svelte-1n3zao6{display:flex;flex-direction:column}.graph-container.svelte-1n3zao6{width:70%;display:flex;align-items:center;justify-content:space-between;position:relative}.colorBox.svelte-1n3zao6{height:5px;width:14.3%;border-radius:24px}.colorBoxShort.svelte-1n3zao6{height:5px;width:5%;border-radius:24px}.slider.svelte-1n3zao6{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -90%);width:24%;max-height:70px}.slider-number.svelte-1n3zao6{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -120%);width:24%;font-size:0.71rem;color:white}.slider-triangle.svelte-1n3zao6{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -90%);width:24%}.text-left.svelte-1n3zao6{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;left:0;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}.text-middle.svelte-1n3zao6{position:absolute;height:15%;top:62%;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}.text-right.svelte-1n3zao6{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;right:0;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}")}function ue(t){let i,r,d,x,f=N(t[1],t[2])+"",b,y,k,h=N(t[1],t[3])+"",I,z,v,A,L,p,e,s,se,_,$,K,R,Y=ve(t[4],t[1])+"",Q,le,ae,D,T,G,U,ne,E,j=(t[0]==="shield"||t[0]==="youth"||t[0]==="median"?N(t[1],"SUBOPTIMAL"):N(t[1],"OPTIMAL"))+"",W,re,w,X=(t[0]==="median"?N(t[1],"OPTIMAL"):N(t[1],"AVERAGE"))+"",ee,ie,O,V=(t[0]==="shield"||t[0]==="youth"?N(t[1],"OPTIMAL"):N(t[1],"SUBOPTIMAL"))+"",te;function ce(o,B){if(o[0]==="mature"||o[0]==="lifestyle")return ke;if(o[0]==="shield"||o[0]==="youth")return Be;if(o[0]==="median")return Ae}let P=ce(t),F=P&&P(t);return{c(){i=u("div"),r=u("div"),d=u("div"),x=u("b"),b=M(f),y=g(),k=u("div"),I=M(h),z=g(),v=u("div"),F&&F.c(),A=g(),L=u("div"),p=H("svg"),e=H("rect"),se=g(),_=u("div"),$=u("b"),K=M(t[4]),R=u("sup"),Q=M(Y),le=M(" percentile"),ae=g(),D=u("div"),T=H("svg"),G=H("path"),ne=g(),E=u("div"),W=M(j),re=g(),w=u("div"),ee=M(X),ie=g(),O=u("div"),te=M(V),c(x,"font-size",(t[1]==="slovenian"?.7:.8)+"rem"),c(k,"font-size","0.7rem"),l(d,"class","label-container svelte-1n3zao6"),l(r,"class","label svelte-1n3zao6"),l(e,"width","100"),l(e,"height","24"),l(e,"rx","4"),l(e,"fill",s=t[0]==="shield"||t[0]==="youth"?q(t[4]):t[0]==="mature"||t[0]==="lifestyle"?Z(t[4]):J(t[4])),l(p,"width","100"),l(p,"height","24"),l(p,"viewBox","0 0 100 24"),l(p,"fill","none"),l(p,"xmlns","http://www.w3.org/2000/svg"),l(L,"class","slider svelte-1n3zao6"),c(L,"left",C(t[4])+"%"),c(R,"font-size","0.5rem"),l(_,"class","slider-number svelte-1n3zao6"),c(_,"left",C(t[4])+"%"),l(G,"d","M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L0 8.07577e-07L12 0L6.8 6.93333Z"),l(G,"fill",U=t[0]==="shield"||t[0]==="youth"?q(t[4]):t[0]==="mature"||t[0]==="lifestyle"?Z(t[4]):J(t[4])),l(T,"width","12"),l(T,"height","8"),l(T,"viewBox","0 0 12 8"),l(T,"fill","none"),l(T,"xmlns","http://www.w3.org/2000/svg"),l(D,"class","slider-triangle svelte-1n3zao6"),c(D,"left",C(t[4])+"%"),l(E,"class","text-left svelte-1n3zao6"),c(E,"width",(t[0]==="median"?"19.7":"34.7")+"%"),l(w,"class","text-middle svelte-1n3zao6"),c(w,"width",(t[0]==="median"?35:30)+"%"),c(w,"left",(t[0]==="median"?32.4:35)+"%"),l(O,"class","text-right svelte-1n3zao6"),c(O,"width",(t[0]==="median"?"19.8":"34.7")+"%"),l(v,"class","graph-container svelte-1n3zao6"),l(i,"class","main svelte-1n3zao6")},m(o,B){a(o,i,B),m(i,r),m(r,d),m(d,x),m(x,b),m(d,y),m(d,k),m(k,I),m(i,z),m(i,v),F&&F.m(v,null),m(v,A),m(v,L),m(L,p),m(p,e),m(v,se),m(v,_),m(_,$),m($,K),m($,R),m(R,Q),m($,le),m(v,ae),m(v,D),m(D,T),m(T,G),m(v,ne),m(v,E),m(E,W),m(v,re),m(v,w),m(w,ee),m(v,ie),m(v,O),m(O,te)},p(o,B){B&6&&f!==(f=N(o[1],o[2])+"")&&S(b,f),B&2&&c(x,"font-size",(o[1]==="slovenian"?.7:.8)+"rem"),B&10&&h!==(h=N(o[1],o[3])+"")&&S(I,h),P!==(P=ce(o))&&(F&&F.d(1),F=P&&P(o),F&&(F.c(),F.m(v,A))),B&17&&s!==(s=o[0]==="shield"||o[0]==="youth"?q(o[4]):o[0]==="mature"||o[0]==="lifestyle"?Z(o[4]):J(o[4]))&&l(e,"fill",s),B&16&&c(L,"left",C(o[4])+"%"),B&16&&S(K,o[4]),B&18&&Y!==(Y=ve(o[4],o[1])+"")&&S(Q,Y),B&16&&c(_,"left",C(o[4])+"%"),B&17&&U!==(U=o[0]==="shield"||o[0]==="youth"?q(o[4]):o[0]==="mature"||o[0]==="lifestyle"?Z(o[4]):J(o[4]))&&l(G,"fill",U),B&16&&c(D,"left",C(o[4])+"%"),B&3&&j!==(j=(o[0]==="shield"||o[0]==="youth"||o[0]==="median"?N(o[1],"SUBOPTIMAL"):N(o[1],"OPTIMAL"))+"")&&S(W,j),B&1&&c(E,"width",(o[0]==="median"?"19.7":"34.7")+"%"),B&3&&X!==(X=(o[0]==="median"?N(o[1],"OPTIMAL"):N(o[1],"AVERAGE"))+"")&&S(ee,X),B&1&&c(w,"width",(o[0]==="median"?35:30)+"%"),B&1&&c(w,"left",(o[0]==="median"?32.4:35)+"%"),B&3&&V!==(V=(o[0]==="shield"||o[0]==="youth"?N(o[1],"OPTIMAL"):N(o[1],"SUBOPTIMAL"))+"")&&S(te,V),B&1&&c(O,"width",(o[0]==="median"?"19.8":"34.7")+"%")},d(o){o&&n(i),F&&F.d()}}}function Ae(t){let i,r,d,x,f,b,y,k,h,I,z,v,A,L,p;return{c(){i=u("div"),r=g(),d=u("div"),x=g(),f=u("div"),b=g(),y=u("div"),k=g(),h=u("div"),I=g(),z=u("div"),v=g(),A=u("div"),L=g(),p=u("div"),l(i,"class","colorBoxShort svelte-1n3zao6"),c(i,"background-color","#DF2120"),l(d,"class","colorBox svelte-1n3zao6"),c(d,"background-color","#F2800D"),l(f,"class","colorBox svelte-1n3zao6"),c(f,"background-color","#13A195"),l(y,"class","colorBox svelte-1n3zao6"),c(y,"background-color","#015566"),l(h,"class","colorBox svelte-1n3zao6"),c(h,"background-color","#015566"),l(z,"class","colorBox svelte-1n3zao6"),c(z,"background-color","#13A195"),l(A,"class","colorBox svelte-1n3zao6"),c(A,"background-color","#F2800D"),l(p,"class","colorBoxShort svelte-1n3zao6"),c(p,"background-color","#DF2120")},m(e,s){a(e,i,s),a(e,r,s),a(e,d,s),a(e,x,s),a(e,f,s),a(e,b,s),a(e,y,s),a(e,k,s),a(e,h,s),a(e,I,s),a(e,z,s),a(e,v,s),a(e,A,s),a(e,L,s),a(e,p,s)},d(e){e&&(n(i),n(r),n(d),n(x),n(f),n(b),n(y),n(k),n(h),n(I),n(z),n(v),n(A),n(L),n(p))}}}function Be(t){let i,r,d,x,f,b,y,k,h,I,z,v,A,L,p;return{c(){i=u("div"),r=g(),d=u("div"),x=g(),f=u("div"),b=g(),y=u("div"),k=g(),h=u("div"),I=g(),z=u("div"),v=g(),A=u("div"),L=g(),p=u("div"),l(i,"class","colorBoxShort svelte-1n3zao6"),c(i,"background-color","#DF2120"),l(d,"class","colorBox svelte-1n3zao6"),c(d,"background-color","#DF2120"),l(f,"class","colorBox svelte-1n3zao6"),c(f,"background-color","#F2800D"),l(y,"class","colorBox svelte-1n3zao6"),c(y,"background-color","#66CCAA"),l(h,"class","colorBox svelte-1n3zao6"),c(h,"background-color","#66CCAA"),l(z,"class","colorBox svelte-1n3zao6"),c(z,"background-color","#13A195"),l(A,"class","colorBox svelte-1n3zao6"),c(A,"background-color","#015566"),l(p,"class","colorBoxShort svelte-1n3zao6"),c(p,"background-color","#015566")},m(e,s){a(e,i,s),a(e,r,s),a(e,d,s),a(e,x,s),a(e,f,s),a(e,b,s),a(e,y,s),a(e,k,s),a(e,h,s),a(e,I,s),a(e,z,s),a(e,v,s),a(e,A,s),a(e,L,s),a(e,p,s)},d(e){e&&(n(i),n(r),n(d),n(x),n(f),n(b),n(y),n(k),n(h),n(I),n(z),n(v),n(A),n(L),n(p))}}}function ke(t){let i,r,d,x,f,b,y,k,h,I,z,v,A,L,p;return{c(){i=u("div"),r=g(),d=u("div"),x=g(),f=u("div"),b=g(),y=u("div"),k=g(),h=u("div"),I=g(),z=u("div"),v=g(),A=u("div"),L=g(),p=u("div"),l(i,"class","colorBoxShort svelte-1n3zao6"),c(i,"background-color","#015566"),l(d,"class","colorBox svelte-1n3zao6"),c(d,"background-color","#015566"),l(f,"class","colorBox svelte-1n3zao6"),c(f,"background-color","#13A195"),l(y,"class","colorBox svelte-1n3zao6"),c(y,"background-color","#66CCAA"),l(h,"class","colorBox svelte-1n3zao6"),c(h,"background-color","#66CCAA"),l(z,"class","colorBox svelte-1n3zao6"),c(z,"background-color","#F2800D"),l(A,"class","colorBox svelte-1n3zao6"),c(A,"background-color","#DF2120"),l(p,"class","colorBoxShort svelte-1n3zao6"),c(p,"background-color","#DF2120")},m(e,s){a(e,i,s),a(e,r,s),a(e,d,s),a(e,x,s),a(e,f,s),a(e,b,s),a(e,y,s),a(e,k,s),a(e,h,s),a(e,I,s),a(e,z,s),a(e,v,s),a(e,A,s),a(e,L,s),a(e,p,s)},d(e){e&&(n(i),n(r),n(d),n(x),n(f),n(b),n(y),n(k),n(h),n(I),n(z),n(v),n(A),n(L),n(p))}}}function Ie(t){let i,r=t[5]&&ue(t);return{c(){r&&r.c(),i=be()},m(d,x){r&&r.m(d,x),a(d,i,x)},p(d,[x]){d[5]?r?r.p(d,x):(r=ue(d),r.c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},i:de,o:de,d(d){d&&n(i),r&&r.d(d)}}}function Le(t,i,r){let{type:d}=i,{lang:x}=i,{service:f=window.GaReportService}=i,b,y="",k="",h=0,I=!1;const z=[{name:"shield",label:"GLYCAN_SHIELD",description:"ANTI_INFLAMMATORY_INDEX"},{name:"youth",label:"GLYCAN_YOUTH",description:"ANTI_INFLAMMATORY_INDEX"},{name:"mature",label:"GLYCAN_MATURE",description:"PRO_INFLAMMATORY_INDEX"},{name:"median",label:"GLYCAN_MEDIAN",description:"SUPPORTIVE_INDEX"},{name:"lifestyle",label:"GLYCAN_LIFESTYLE_B",description:"SUPPORTIVE_INDEX"}].find(v=>v.name===d);return ze(async()=>{switch(b=await f.getReport(),Number(b.glycanage),Number(b.chronologicalage),d){case"shield":r(4,h=Number(b.Spercentile));break;case"youth":r(4,h=Number(b.G2percentile));break;case"mature":r(4,h=Number(b.G0percentile));break;case"median":r(4,h=Number(b.G1percentile));break;case"lifestyle":r(4,h=Number(b.Bpercentile))}(h===100||h===0)&&r(4,h=h===100?99:1),z&&(r(2,y=z.label),r(3,k=z.description)),r(5,I=!0)}),t.$$set=v=>{"type"in v&&r(0,d=v.type),"lang"in v&&r(1,x=v.lang),"service"in v&&r(6,f=v.service)},[d,x,y,k,h,I,f]}class he extends ge{constructor(i){super(),fe(this,i,Le,Ie,pe,{type:0,lang:1,service:6},ye)}get type(){return this.$$.ctx[0]}set type(i){this.$$set({type:i}),oe()}get lang(){return this.$$.ctx[1]}set lang(i){this.$$set({lang:i}),oe()}get service(){return this.$$.ctx[6]}set service(i){this.$$set({service:i}),oe()}}customElements.define("ga-results-overview-three",me(he,{type:{},lang:{},service:{}},[],[],!0));export{he as default};
|
|
1
|
+
import{c as ue,S as me,i as ge,f as te,s as fe,a as pe,d as xe,g as d,u as ce,k as v,o as be,e as h,m as _,b as g,v as H,n as u,p as o,q as c,r as E}from"./index2.js";import{a as L,s as de,f as q,h as Z,j as C}from"./helpers.js";function ze(e){pe(e,"svelte-1n3zao6",".main.svelte-1n3zao6{height:100%;width:100%;display:flex}.label.svelte-1n3zao6{width:30%;display:flex;align-items:center;font-size:0.8rem}.label-container.svelte-1n3zao6{display:flex;flex-direction:column}.graph-container.svelte-1n3zao6{width:70%;display:flex;align-items:center;justify-content:space-between;position:relative}.colorBox.svelte-1n3zao6{height:5px;width:14.3%;border-radius:24px}.colorBoxShort.svelte-1n3zao6{height:5px;width:5%;border-radius:24px}.slider.svelte-1n3zao6{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -90%);width:24%;max-height:70px}.slider-number.svelte-1n3zao6{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -120%);width:24%;font-size:0.71rem;color:white}.slider-triangle.svelte-1n3zao6{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -90%);width:24%}.text-left.svelte-1n3zao6{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;left:0;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}.text-middle.svelte-1n3zao6{position:absolute;height:15%;top:62%;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}.text-right.svelte-1n3zao6{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;right:0;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}")}function ve(e){let a,l,n,f,p=L(e[1],e[2])+"",x,y,B,m=L(e[1],e[3])+"",k,z,r,N,I,b,s,i,oe,F,$,J,R,Y=de(e[4],e[1])+"",K,se,le,M,T,D,U,ae,P,j=(e[0]==="shield"||e[0]==="youth"||e[0]==="median"?L(e[1],"SUBOPTIMAL"):L(e[1],"OPTIMAL"))+"",Q,ie,S,X=L(e[1],"AVERAGE")+"",W,re,G,V=(e[0]==="shield"||e[0]==="youth"||e[0]==="median"?L(e[1],"OPTIMAL"):L(e[1],"SUBOPTIMAL"))+"",ee;function ne(t,A){if(t[0]==="mature"||t[0]==="lifestyle")return Ae;if(t[0]==="shield"||t[0]==="youth"||t[0]==="median")return ye}let O=ne(e),w=O&&O(e);return{c(){a=h("div"),l=h("div"),n=h("div"),f=h("b"),x=_(p),y=g(),B=h("div"),k=_(m),z=g(),r=h("div"),w&&w.c(),N=g(),I=h("div"),b=H("svg"),s=H("rect"),oe=g(),F=h("div"),$=h("b"),J=_(e[4]),R=h("sup"),K=_(Y),se=_(" percentile"),le=g(),M=h("div"),T=H("svg"),D=H("path"),ae=g(),P=h("div"),Q=_(j),ie=g(),S=h("div"),W=_(X),re=g(),G=h("div"),ee=_(V),u(f,"font-size",(e[1]==="slovenian"?.7:.8)+"rem"),u(B,"font-size","0.7rem"),o(n,"class","label-container svelte-1n3zao6"),o(l,"class","label svelte-1n3zao6"),o(s,"width","100"),o(s,"height","24"),o(s,"rx","4"),o(s,"fill",i=e[0]==="shield"||e[0]==="youth"||e[0]==="median"?q(e[4]):Z(e[4])),o(b,"width","100"),o(b,"height","24"),o(b,"viewBox","0 0 100 24"),o(b,"fill","none"),o(b,"xmlns","http://www.w3.org/2000/svg"),o(I,"class","slider svelte-1n3zao6"),u(I,"left",C(e[4])+"%"),u(R,"font-size","0.5rem"),o(F,"class","slider-number svelte-1n3zao6"),u(F,"left",C(e[4])+"%"),o(D,"d","M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L0 8.07577e-07L12 0L6.8 6.93333Z"),o(D,"fill",U=e[0]==="shield"||e[0]==="youth"||e[0]==="median"?q(e[4]):Z(e[4])),o(T,"width","12"),o(T,"height","8"),o(T,"viewBox","0 0 12 8"),o(T,"fill","none"),o(T,"xmlns","http://www.w3.org/2000/svg"),o(M,"class","slider-triangle svelte-1n3zao6"),u(M,"left",C(e[4])+"%"),o(P,"class","text-left svelte-1n3zao6"),u(P,"width","34.7%"),o(S,"class","text-middle svelte-1n3zao6"),u(S,"width","30%"),u(S,"left","35%"),o(G,"class","text-right svelte-1n3zao6"),u(G,"width","34.7%"),o(r,"class","graph-container svelte-1n3zao6"),o(a,"class","main svelte-1n3zao6")},m(t,A){d(t,a,A),c(a,l),c(l,n),c(n,f),c(f,x),c(n,y),c(n,B),c(B,k),c(a,z),c(a,r),w&&w.m(r,null),c(r,N),c(r,I),c(I,b),c(b,s),c(r,oe),c(r,F),c(F,$),c($,J),c($,R),c(R,K),c($,se),c(r,le),c(r,M),c(M,T),c(T,D),c(r,ae),c(r,P),c(P,Q),c(r,ie),c(r,S),c(S,W),c(r,re),c(r,G),c(G,ee)},p(t,A){A&6&&p!==(p=L(t[1],t[2])+"")&&E(x,p),A&2&&u(f,"font-size",(t[1]==="slovenian"?.7:.8)+"rem"),A&10&&m!==(m=L(t[1],t[3])+"")&&E(k,m),O!==(O=ne(t))&&(w&&w.d(1),w=O&&O(t),w&&(w.c(),w.m(r,N))),A&17&&i!==(i=t[0]==="shield"||t[0]==="youth"||t[0]==="median"?q(t[4]):Z(t[4]))&&o(s,"fill",i),A&16&&u(I,"left",C(t[4])+"%"),A&16&&E(J,t[4]),A&18&&Y!==(Y=de(t[4],t[1])+"")&&E(K,Y),A&16&&u(F,"left",C(t[4])+"%"),A&17&&U!==(U=t[0]==="shield"||t[0]==="youth"||t[0]==="median"?q(t[4]):Z(t[4]))&&o(D,"fill",U),A&16&&u(M,"left",C(t[4])+"%"),A&3&&j!==(j=(t[0]==="shield"||t[0]==="youth"||t[0]==="median"?L(t[1],"SUBOPTIMAL"):L(t[1],"OPTIMAL"))+"")&&E(Q,j),A&2&&X!==(X=L(t[1],"AVERAGE")+"")&&E(W,X),A&3&&V!==(V=(t[0]==="shield"||t[0]==="youth"||t[0]==="median"?L(t[1],"OPTIMAL"):L(t[1],"SUBOPTIMAL"))+"")&&E(ee,V)},d(t){t&&v(a),w&&w.d()}}}function ye(e){let a,l,n,f,p,x,y,B,m,k,z,r,N,I,b;return{c(){a=h("div"),l=g(),n=h("div"),f=g(),p=h("div"),x=g(),y=h("div"),B=g(),m=h("div"),k=g(),z=h("div"),r=g(),N=h("div"),I=g(),b=h("div"),o(a,"class","colorBoxShort svelte-1n3zao6"),u(a,"background-color","#DF2120"),o(n,"class","colorBox svelte-1n3zao6"),u(n,"background-color","#DF2120"),o(p,"class","colorBox svelte-1n3zao6"),u(p,"background-color","#F2800D"),o(y,"class","colorBox svelte-1n3zao6"),u(y,"background-color","#66CCAA"),o(m,"class","colorBox svelte-1n3zao6"),u(m,"background-color","#66CCAA"),o(z,"class","colorBox svelte-1n3zao6"),u(z,"background-color","#13A195"),o(N,"class","colorBox svelte-1n3zao6"),u(N,"background-color","#015566"),o(b,"class","colorBoxShort svelte-1n3zao6"),u(b,"background-color","#015566")},m(s,i){d(s,a,i),d(s,l,i),d(s,n,i),d(s,f,i),d(s,p,i),d(s,x,i),d(s,y,i),d(s,B,i),d(s,m,i),d(s,k,i),d(s,z,i),d(s,r,i),d(s,N,i),d(s,I,i),d(s,b,i)},d(s){s&&(v(a),v(l),v(n),v(f),v(p),v(x),v(y),v(B),v(m),v(k),v(z),v(r),v(N),v(I),v(b))}}}function Ae(e){let a,l,n,f,p,x,y,B,m,k,z,r,N,I,b;return{c(){a=h("div"),l=g(),n=h("div"),f=g(),p=h("div"),x=g(),y=h("div"),B=g(),m=h("div"),k=g(),z=h("div"),r=g(),N=h("div"),I=g(),b=h("div"),o(a,"class","colorBoxShort svelte-1n3zao6"),u(a,"background-color","#015566"),o(n,"class","colorBox svelte-1n3zao6"),u(n,"background-color","#015566"),o(p,"class","colorBox svelte-1n3zao6"),u(p,"background-color","#13A195"),o(y,"class","colorBox svelte-1n3zao6"),u(y,"background-color","#66CCAA"),o(m,"class","colorBox svelte-1n3zao6"),u(m,"background-color","#66CCAA"),o(z,"class","colorBox svelte-1n3zao6"),u(z,"background-color","#F2800D"),o(N,"class","colorBox svelte-1n3zao6"),u(N,"background-color","#DF2120"),o(b,"class","colorBoxShort svelte-1n3zao6"),u(b,"background-color","#DF2120")},m(s,i){d(s,a,i),d(s,l,i),d(s,n,i),d(s,f,i),d(s,p,i),d(s,x,i),d(s,y,i),d(s,B,i),d(s,m,i),d(s,k,i),d(s,z,i),d(s,r,i),d(s,N,i),d(s,I,i),d(s,b,i)},d(s){s&&(v(a),v(l),v(n),v(f),v(p),v(x),v(y),v(B),v(m),v(k),v(z),v(r),v(N),v(I),v(b))}}}function Be(e){let a,l=e[5]&&ve(e);return{c(){l&&l.c(),a=xe()},m(n,f){l&&l.m(n,f),d(n,a,f)},p(n,[f]){n[5]?l?l.p(n,f):(l=ve(n),l.c(),l.m(a.parentNode,a)):l&&(l.d(1),l=null)},i:ce,o:ce,d(n){n&&v(a),l&&l.d(n)}}}function Ne(e,a,l){let{type:n}=a,{lang:f}=a,{service:p=window.GaReportService}=a,x,y="",B="",m=0,k=!1;const z=[{name:"shield",label:"GLYCAN_SHIELD",description:"ANTI_INFLAMMATORY_INDEX"},{name:"youth",label:"GLYCAN_YOUTH",description:"ANTI_INFLAMMATORY_INDEX"},{name:"mature",label:"GLYCAN_MATURE",description:"PRO_INFLAMMATORY_INDEX"},{name:"median",label:"GLYCAN_MEDIAN",description:"SUPPORTIVE_INDEX"},{name:"lifestyle",label:"GLYCAN_LIFESTYLE_B",description:"SUPPORTIVE_INDEX"}].find(r=>r.name===n);return be(async()=>{switch(x=await p.getReport(),Number(x.glycanage),Number(x.chronologicalage),n){case"shield":l(4,m=Number(x.Spercentile));break;case"youth":l(4,m=Number(x.G2percentile));break;case"mature":l(4,m=Number(x.G0percentile));break;case"median":l(4,m=Number(x.G1percentile));break;case"lifestyle":l(4,m=Number(x.Bpercentile))}(m===100||m===0)&&l(4,m=m===100?99:1),z&&(l(2,y=z.label),l(3,B=z.description)),l(5,k=!0)}),e.$$set=r=>{"type"in r&&l(0,n=r.type),"lang"in r&&l(1,f=r.lang),"service"in r&&l(6,p=r.service)},[n,f,y,B,m,k,p]}class he extends me{constructor(a){super(),ge(this,a,Ne,Be,fe,{type:0,lang:1,service:6},ze)}get type(){return this.$$.ctx[0]}set type(a){this.$$set({type:a}),te()}get lang(){return this.$$.ctx[1]}set lang(a){this.$$set({lang:a}),te()}get service(){return this.$$.ctx[6]}set service(a){this.$$set({service:a}),te()}}customElements.define("ga-results-overview-three",ue(he,{type:{},lang:{},service:{}},[],[],!0));export{he as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as Ae,S as Se,i as Fe,f as ue,s as Le,a as $e,d as Oe,g as c,u as ye,k as n,o as Me,e as h,m as $,b as f,v as oe,n as a,p as s,q as u,r as P}from"./index2.js";import{a as F,s as ie,f as T,i as re,h as C,
|
|
1
|
+
import{c as Ae,S as Se,i as Fe,f as ue,s as Le,a as $e,d as Oe,g as c,u as ye,k as n,o as Me,e as h,m as $,b as f,v as oe,n as a,p as s,q as u,r as P}from"./index2.js";import{a as F,s as ie,f as T,i as re,h as C,l as le,j as V}from"./helpers.js";function De(e){$e(e,"svelte-8jht07",".main.svelte-8jht07{height:100%;width:100%;display:flex;flex-direction:column}.label.svelte-8jht07{height:15%;width:100%;display:flex;justify-content:center}.graph.svelte-8jht07{height:85%;width:100%;display:flex;align-items:center;justify-content:center;border:1px solid #09341F33;border-radius:10px}.graph-container.svelte-8jht07{width:85%;height:100%;display:flex;align-items:center;justify-content:space-between;position:relative}.colorBox.svelte-8jht07{height:7px;width:14.3%;border-radius:24px}.colorBoxShort.svelte-8jht07{height:7px;width:5%;border-radius:24px}.slider.svelte-8jht07{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -90%);width:24%;max-height:70px}.slider-number.svelte-8jht07{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -120%);width:24%;font-size:0.71rem;color:white}.text-left.svelte-8jht07{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;left:0;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}.text-middle.svelte-8jht07{position:absolute;height:15%;top:62%;left:35%;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}.text-right.svelte-8jht07{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;right:0;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}.slider-triangle.svelte-8jht07{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -90%);width:24%}")}function we(e){let l,i,d=F(e[1],"RANKS_YOU")+"",g,x,p,v,B,m,k,b,A=ie(e[2],e[1])+"",j,S,w,r,o,se,z,D,N,H,ve,G,Y,ce,J,Q=ie(e[2],e[1])+"",ne,fe,me,R,I,q,W,pe,U,X=(e[0]==="shield"||e[0]==="youth"||e[0]==="median"?F(e[1],"SUBOPTIMAL"):F(e[1],"OPTIMAL"))+"",ae,xe,Z,ee=(e[0]==="median"?F(e[1],"OPTIMAL"):F(e[1],"AVERAGE"))+"",de,ge,_,te=(e[0]==="shield"||e[0]==="youth"?F(e[1],"OPTIMAL"):F(e[1],"SUBOPTIMAL"))+"",he,L=e[1]==="japanese"&&Be();function be(t,y){if(t[1]==="japanese")return Pe;if(t[1]==="english")return Ie}let E=be(e),O=E&&E(e);function je(t,y){if(t[0]==="mature"||t[0]==="lifestyle")return Ne;if(t[0]==="shield"||t[0]==="youth")return Ce;if(t[0]==="median")return Te}let K=je(e),M=K&&K(e);return{c(){l=h("div"),i=h("div"),g=$(d),x=$(`\xA0
|
|
2
2
|
`),p=h("span"),v=h("b"),B=$(e[2]),L&&L.c(),m=f(),k=h("sup"),b=h("b"),j=$(A),S=f(),O&&O.c(),w=f(),r=h("div"),o=h("div"),M&&M.c(),se=f(),z=h("div"),D=oe("svg"),N=oe("rect"),ve=f(),G=h("div"),Y=h("b"),ce=$(e[2]),J=h("sup"),ne=$(Q),fe=$(" percentile"),me=f(),R=h("div"),I=oe("svg"),q=oe("path"),pe=f(),U=h("div"),ae=$(X),xe=f(),Z=h("div"),de=$(ee),ge=f(),_=h("div"),he=$(te),a(p,"color",e[0]==="shield"||e[0]==="youth"?T(e[2]):e[0]==="median"?re(e[2]):C(e[2])),a(p,"height","80%"),a(p,"display","flex"),a(k,"color",e[0]==="shield"||e[0]==="youth"?T(e[2]):e[0]==="median"?re(e[2]):C(e[2])),a(k,"font-size","0.65rem"),s(i,"class","label svelte-8jht07"),s(N,"width","100"),s(N,"height","24"),s(N,"rx","4"),s(N,"fill",H=e[0]==="shield"||e[0]==="youth"?T(e[2]):e[0]==="mature"||e[0]==="lifestyle"?C(e[2]):le(e[2])),s(D,"width","100"),s(D,"height","24"),s(D,"viewBox","0 0 100 24"),s(D,"fill","none"),s(D,"xmlns","http://www.w3.org/2000/svg"),s(z,"class","slider svelte-8jht07"),a(z,"left",V(e[2])+"%"),a(J,"font-size","0.5rem"),s(G,"class","slider-number svelte-8jht07"),a(G,"left",V(e[2])+"%"),s(q,"d","M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L0 8.07577e-07L12 0L6.8 6.93333Z"),s(q,"fill",W=e[0]==="shield"||e[0]==="youth"?T(e[2]):e[0]==="mature"||e[0]==="lifestyle"?C(e[2]):le(e[2])),s(I,"width","12"),s(I,"height","8"),s(I,"viewBox","0 0 12 8"),s(I,"fill","none"),s(I,"xmlns","http://www.w3.org/2000/svg"),s(R,"class","slider-triangle svelte-8jht07"),a(R,"left",V(e[2])+"%"),s(U,"class","text-left svelte-8jht07"),a(U,"width",(e[0]==="median"?"19.7":"34.7")+"%"),s(Z,"class","text-middle svelte-8jht07"),a(Z,"width","29.5%"),s(_,"class","text-right svelte-8jht07"),a(_,"width",(e[0]==="median"?"19.8":"34.7")+"%"),s(o,"class","graph-container svelte-8jht07"),s(r,"class","graph svelte-8jht07"),s(l,"class","main svelte-8jht07")},m(t,y){c(t,l,y),u(l,i),u(i,g),u(i,x),u(i,p),u(p,v),u(v,B),L&&L.m(v,null),u(i,m),u(i,k),u(k,b),u(b,j),u(i,S),O&&O.m(i,null),u(l,w),u(l,r),u(r,o),M&&M.m(o,null),u(o,se),u(o,z),u(z,D),u(D,N),u(o,ve),u(o,G),u(G,Y),u(Y,ce),u(Y,J),u(J,ne),u(Y,fe),u(o,me),u(o,R),u(R,I),u(I,q),u(o,pe),u(o,U),u(U,ae),u(o,xe),u(o,Z),u(Z,de),u(o,ge),u(o,_),u(_,he)},p(t,y){y&2&&d!==(d=F(t[1],"RANKS_YOU")+"")&&P(g,d),y&4&&P(B,t[2]),t[1]==="japanese"?L||(L=Be(),L.c(),L.m(v,null)):L&&(L.d(1),L=null),y&5&&a(p,"color",t[0]==="shield"||t[0]==="youth"?T(t[2]):t[0]==="median"?re(t[2]):C(t[2])),y&6&&A!==(A=ie(t[2],t[1])+"")&&P(j,A),y&5&&a(k,"color",t[0]==="shield"||t[0]==="youth"?T(t[2]):t[0]==="median"?re(t[2]):C(t[2])),E!==(E=be(t))&&(O&&O.d(1),O=E&&E(t),O&&(O.c(),O.m(i,null))),K!==(K=je(t))&&(M&&M.d(1),M=K&&K(t),M&&(M.c(),M.m(o,se))),y&5&&H!==(H=t[0]==="shield"||t[0]==="youth"?T(t[2]):t[0]==="mature"||t[0]==="lifestyle"?C(t[2]):le(t[2]))&&s(N,"fill",H),y&4&&a(z,"left",V(t[2])+"%"),y&4&&P(ce,t[2]),y&6&&Q!==(Q=ie(t[2],t[1])+"")&&P(ne,Q),y&4&&a(G,"left",V(t[2])+"%"),y&5&&W!==(W=t[0]==="shield"||t[0]==="youth"?T(t[2]):t[0]==="mature"||t[0]==="lifestyle"?C(t[2]):le(t[2]))&&s(q,"fill",W),y&4&&a(R,"left",V(t[2])+"%"),y&3&&X!==(X=(t[0]==="shield"||t[0]==="youth"||t[0]==="median"?F(t[1],"SUBOPTIMAL"):F(t[1],"OPTIMAL"))+"")&&P(ae,X),y&1&&a(U,"width",(t[0]==="median"?"19.7":"34.7")+"%"),y&3&&ee!==(ee=(t[0]==="median"?F(t[1],"OPTIMAL"):F(t[1],"AVERAGE"))+"")&&P(de,ee),y&3&&te!==(te=(t[0]==="shield"||t[0]==="youth"?F(t[1],"OPTIMAL"):F(t[1],"SUBOPTIMAL"))+"")&&P(he,te),y&1&&a(_,"width",(t[0]==="median"?"19.8":"34.7")+"%")},d(t){t&&n(l),L&&L.d(),O&&O.d(),M&&M.d()}}}function Be(e){let l;return{c(){l=$("\u30D1\u30FC\u30BB\u30F3\u30BF\u30A4\u30EB")},m(i,d){c(i,l,d)},d(i){i&&n(l)}}}function Ie(e){let l;return{c(){l=$("\xA0percentile:")},m(i,d){c(i,l,d)},d(i){i&&n(l)}}}function Pe(e){let l;return{c(){l=$("\u306B\u30E9\u30F3\u30AF\u4ED8\u3051\u3055\u308C\u307E\u3057\u305F\u3002")},m(i,d){c(i,l,d)},d(i){i&&n(l)}}}function Te(e){let l,i,d,g,x,p,v,B,m,k,b,A,j,S,w;return{c(){l=h("div"),i=f(),d=h("div"),g=f(),x=h("div"),p=f(),v=h("div"),B=f(),m=h("div"),k=f(),b=h("div"),A=f(),j=h("div"),S=f(),w=h("div"),s(l,"class","colorBoxShort svelte-8jht07"),a(l,"background-color","#DF2120"),s(d,"class","colorBox svelte-8jht07"),a(d,"background-color","#F2800D"),s(x,"class","colorBox svelte-8jht07"),a(x,"background-color","#13A195"),s(v,"class","colorBox svelte-8jht07"),a(v,"background-color","#015566"),s(m,"class","colorBox svelte-8jht07"),a(m,"background-color","#015566"),s(b,"class","colorBox svelte-8jht07"),a(b,"background-color","#13A195"),s(j,"class","colorBox svelte-8jht07"),a(j,"background-color","#F2800D"),s(w,"class","colorBoxShort svelte-8jht07"),a(w,"background-color","#DF2120")},m(r,o){c(r,l,o),c(r,i,o),c(r,d,o),c(r,g,o),c(r,x,o),c(r,p,o),c(r,v,o),c(r,B,o),c(r,m,o),c(r,k,o),c(r,b,o),c(r,A,o),c(r,j,o),c(r,S,o),c(r,w,o)},d(r){r&&(n(l),n(i),n(d),n(g),n(x),n(p),n(v),n(B),n(m),n(k),n(b),n(A),n(j),n(S),n(w))}}}function Ce(e){let l,i,d,g,x,p,v,B,m,k,b,A,j,S,w;return{c(){l=h("div"),i=f(),d=h("div"),g=f(),x=h("div"),p=f(),v=h("div"),B=f(),m=h("div"),k=f(),b=h("div"),A=f(),j=h("div"),S=f(),w=h("div"),s(l,"class","colorBoxShort svelte-8jht07"),a(l,"background-color","#DF2120"),s(d,"class","colorBox svelte-8jht07"),a(d,"background-color","#DF2120"),s(x,"class","colorBox svelte-8jht07"),a(x,"background-color","#F2800D"),s(v,"class","colorBox svelte-8jht07"),a(v,"background-color","#66CCAA"),s(m,"class","colorBox svelte-8jht07"),a(m,"background-color","#66CCAA"),s(b,"class","colorBox svelte-8jht07"),a(b,"background-color","#13A195"),s(j,"class","colorBox svelte-8jht07"),a(j,"background-color","#015566"),s(w,"class","colorBoxShort svelte-8jht07"),a(w,"background-color","#015566")},m(r,o){c(r,l,o),c(r,i,o),c(r,d,o),c(r,g,o),c(r,x,o),c(r,p,o),c(r,v,o),c(r,B,o),c(r,m,o),c(r,k,o),c(r,b,o),c(r,A,o),c(r,j,o),c(r,S,o),c(r,w,o)},d(r){r&&(n(l),n(i),n(d),n(g),n(x),n(p),n(v),n(B),n(m),n(k),n(b),n(A),n(j),n(S),n(w))}}}function Ne(e){let l,i,d,g,x,p,v,B,m,k,b,A,j,S,w;return{c(){l=h("div"),i=f(),d=h("div"),g=f(),x=h("div"),p=f(),v=h("div"),B=f(),m=h("div"),k=f(),b=h("div"),A=f(),j=h("div"),S=f(),w=h("div"),s(l,"class","colorBoxShort svelte-8jht07"),a(l,"background-color","#015566"),s(d,"class","colorBox svelte-8jht07"),a(d,"background-color","#015566"),s(x,"class","colorBox svelte-8jht07"),a(x,"background-color","#13A195"),s(v,"class","colorBox svelte-8jht07"),a(v,"background-color","#66CCAA"),s(m,"class","colorBox svelte-8jht07"),a(m,"background-color","#66CCAA"),s(b,"class","colorBox svelte-8jht07"),a(b,"background-color","#F2800D"),s(j,"class","colorBox svelte-8jht07"),a(j,"background-color","#DF2120"),s(w,"class","colorBoxShort svelte-8jht07"),a(w,"background-color","#DF2120")},m(r,o){c(r,l,o),c(r,i,o),c(r,d,o),c(r,g,o),c(r,x,o),c(r,p,o),c(r,v,o),c(r,B,o),c(r,m,o),c(r,k,o),c(r,b,o),c(r,A,o),c(r,j,o),c(r,S,o),c(r,w,o)},d(r){r&&(n(l),n(i),n(d),n(g),n(x),n(p),n(v),n(B),n(m),n(k),n(b),n(A),n(j),n(S),n(w))}}}function ze(e){let l,i=e[3]&&we(e);return{c(){i&&i.c(),l=Oe()},m(d,g){i&&i.m(d,g),c(d,l,g)},p(d,[g]){d[3]?i?i.p(d,g):(i=we(d),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i:ye,o:ye,d(d){d&&n(l),i&&i.d(d)}}}function Ge(e,l,i){let{type:d}=l,{lang:g}=l,{service:x=window.GaReportService}=l,p,v=0,B=!1;return Me(async()=>{switch(p=await x.getReport(),d){case"shield":i(2,v=Number(p.Spercentile));break;case"youth":i(2,v=Number(p.G2percentile));break;case"mature":i(2,v=Number(p.G0percentile));break;case"median":i(2,v=Number(p.G1percentile));break;case"lifestyle":i(2,v=Number(p.Bpercentile))}(v===100||v===0)&&i(2,v=v===100?99:1),i(3,B=!0)}),e.$$set=m=>{"type"in m&&i(0,d=m.type),"lang"in m&&i(1,g=m.lang),"service"in m&&i(4,x=m.service)},[d,g,v,B,x]}class ke extends Se{constructor(l){super(),Fe(this,l,Ge,ze,Le,{type:0,lang:1,service:4},De)}get type(){return this.$$.ctx[0]}set type(l){this.$$set({type:l}),ue()}get lang(){return this.$$.ctx[1]}set lang(l){this.$$set({lang:l}),ue()}get service(){return this.$$.ctx[4]}set service(l){this.$$set({service:l}),ue()}}customElements.define("ga-single-overview-three",Ae(ke,{type:{},lang:{},service:{}},[],[],!0));export{ke as default};
|