PageSourceSearch

https://www.infantchart.com/_next/static/chunks/7000.b1a8c617304761f0.js

js infantchart.com collected 2026-10-01 14:57:47 UTC 4,130 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5437,7e3],{5437:(t,e,o)=>{o.r(e),o.d(e,{default:()=>c});var l=o(95155),a=o(37197),r=o(52411);function i(t){return t.replace(/\s*\([^)]*\)\s*$/,"").trim()||t}function c(t){let{title:e,curves:o,gender:c,childPoint:n,xKey:s,xLabel:h,yLabel:d,valueFormatter:b,xValueFormatter:u,xTicks:k,xTickFormatter:y,xDomain:f=["dataMin","dataMax"],series:m=r.uo,childLabel:p="Child",childTooltip:x,childPercentileLabel:W,metricLabel:g,xMetricLabel:v}=t,j=(0,r.g_)(c),M=null!=x?x:void 0;if(!M&&n){let t=null!=v?v:i(h),e=null!=g?g:i(d),o=[{label:t,value:u(n.x)},{label:e,value:b(n.y)}];W&&o.push({label:"Percentile",value:W,emphasis:!0}),M={title:"Your child",lines:o}}return(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)("h3",{className:"text-sm font-semibold text-muted-foreground mb-2 text-center",children:e}),(0,l.jsx)("div",{className:"h-[350px]",children:(0,l.jsx)(a.uf,{width:"100%",height:"100%",initialDimension:{width:360,height:280},children:(0,l.jsxs)(a.bl,{data:o,margin:{top:10,right:20,left:10,bottom:5},children:[(0,l.jsx)(a.dC,{strokeDasharray:"3 3",opacity:.3}),(0,l.jsx)(a.WX,{type:"number",domain:f,dataKey:s,ticks:k,tickFormatter:y,label:{value:h,position:"insideBottom",offset:-2,fontSize:12},tick:{fontSize:11}}),(0,l.jsx)(a.h8,{type:"number",label:{value:d,angle:-90,position:"insideLeft",offset:5,fontSize:12},tick:{fontSize:11},domain:["auto","auto"]}),(0,l.jsx)(a.m_,{formatter:t=>b(Number(t)),labelFormatter:t=>u(Number(t))}),(0,l.jsx)(a.s$,{verticalAlign:"top",height:30}),m.map(t=>(0,l.jsx)(a.N1,{type:"monotone",dataKey:t.key,stroke:t.color,strokeWidth:t.strokeWidth,dot:!1,name:t.label,strokeDasharray:t.dashArray,isAnimationActive:!1},t.key)),n&&(0,l.jsx)(a.rR,{x:n.x,y:n.y,fill:j,stroke:"#fff",label:{value:p,position:"top",fontSize:12,fontWeight:"bold",fill:j},tooltip:M})]})})})]})}},52411:(t,e,o)=>{o.d(e,{Cs:()=>d,Hf:()=>r,Tv:()=>a,WK:()=>n,Xc:()=>s,bV:()=>h,fd:()=>c,g_:()=>i,uo:()=>l});let l=[{key:"p3",label:"3rd",color:"#94a3b8",strokeWidth:1},{key:"p15",label:"15th",color:"#64748b",strokeWidth:1},{key:"p50",label:"50th",color:"#334155",strokeWidth:2},{key:"p85",label:"85th",color:"#64748b",strokeWidth:1},{key:"p97",label:"97th",color:"#94a3b8",strokeWidth:1}],a=[{key:"p3",label:"第3",color:"#94a3b8",strokeWidth:1},{key:"p15",label:"第15",color:"#64748b",strokeWidth:1},{key:"p50",label:"第50",color:"#334155",strokeWidth:2},{key:"p85",label:"第85",color:"#64748b",strokeWidth:1},{key:"p97",label:"第97",color:"#94a3b8",strokeWidth:1}],r=[{key:"p3",label:"3rd",color:"#94a3b8",strokeWidth:1},{key:"p15",label:"15th",color:"#64748b",strokeWidth:1},{key:"p50",label:"50th",color:"#334155",strokeWidth:2},{key:"p85",label:"85th",color:"#64748b",strokeWidth:1},{key:"p95",label:"95th",color:"#f97316",strokeWidth:1.5},{key:"p97",label:"97th",color:"#94a3b8",strokeWidth:1}],i=t=>"boy"===t?"#3b82f6":"#ec4899",c=t=>"".concat(t," months"),n=t=>"".concat(t," 个月"),s=t=>"".concat(t," weeks"),h=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return t%e==0?"".concat(t/12,"y"):""},d=t=>{let e=t/12;if(.05>Math.abs(e-Math.round(e)))return"Age ".concat(Math.round(e),"y");let o=Math.floor(e),l=Math.round((e-o)*12);return 12===l?"Age ".concat(o+1,"y"):"Age ".concat(o,"y ").concat(l,"mo")}},77e3:(t,e,o)=>{o.r(e),o.d(e,{default:()=>r});var l=o(95155),a=o(5437);function r(t){let{curves:e,childPoint:o,gender:r,childPercentileLabel:i,xUnit:c="cm",yUnit:n="kg"}=t,s="cm"===c?[80,90,100,110,120]:[32,36,40,44],h="cm"===c?[77,121.5]:[Math.round(77/2.54*1e3)/1e3,Math.round(121.5/2.54*1e3)/1e3],d="Stature (".concat(c,")"),b="Weight (".concat(n,")");return(0,l.jsx)(a.default,{title:"CDC Weight-for-Stature Percentile Curves (".concat("boy"===r?"Boys":"Girls",", ").concat(c,")"),curves:e,gender:r,childPoint:o?{x:o.stature,y:o.weight}:null,xKey:"stature",xLabel:d,yLabel:b,valueFormatter:t=>"".concat(t.toFixed(2)," ").concat(n),xValueFormatter:t=>"".concat(Number(t).toFixed("cm"===c?1:2)," ").concat(c),xTicks:s,xTickFormatter:t=>"".concat(Math.round(t)),xDomain:h,childPercentileLabel:i})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.