@rcsb/rcsb-statistics 0.3.4 → 0.3.5

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.
@@ -0,0 +1,101 @@
1
+ "use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[849],{849:(e,t,i)=>{i.r(t),i.d(t,{default:()=>X});var a=i(6540),o=i(7767),r=i(4731),n=i(6118),l=i(3839),s=i(1105),c=i(1376),d=i(4479),p=i(3048),u=i(8027),b=i(2756),g=i(7638),m=i(7581);const y=m.i7`
2
+ from {
3
+ opacity: .5;
4
+ transform: translateZ(0) scale(0.999);
5
+ }
6
+ to {
7
+ opacity: 1;
8
+ transform: translateZ(0) scale(1);
9
+ }
10
+ `,f=m.Ay.div`
11
+ animation: ${y} .5s ease-in;
12
+ will-change: opacity, transform;
13
+ `,h=m.Ay.div`
14
+ display: flex;
15
+ justify-content: flex-end;
16
+ margin-top: -10px;
17
+ `,x=m.Ay.button`
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ border: 1px solid #e7e7e7;
22
+ border-radius: 3px;
23
+ padding: 3px 5px;
24
+
25
+ & svg {
26
+ margin-right: 5px;
27
+ }
28
+ `,v=m.Ay.div`
29
+ padding-left: 7px;
30
+ margin-top: 40px;
31
+ `,z=(0,m.Ay)(s.A)`
32
+ margin-top: 40px;
33
+ `,k=m.Ay.div`
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ justify-content: center;
38
+ gap: 5px;
39
+ `,A=m.Ay.div`
40
+ background-color: #f0f0f0;
41
+ border: ${e=>{let{selected:t}=e;return t?"1px solid black":"1px solid #fff"}};
42
+ padding: 5px;
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+ color: ${e=>{let{disabled:t}=e;return t?"#e0e0e0":"#a0a0a0"}};
47
+ pointer-events: ${e=>{let{disabled:t}=e;return t?"none":"auto"}};
48
+
49
+ ${e=>{let{disabled:t}=e;return!t&&"\n &:hover {\n background-color: #fff;\n border: 1px solid #c0c0c0;\n cursor: pointer;\n }\n "}}
50
+ `,w=m.Ay.div`
51
+ display: flex;
52
+ align-items: center;
53
+ margin-bottom: 5px;
54
+ `,R=m.Ay.input`
55
+ margin-right: 20px;
56
+ `,S=m.Ay.label`
57
+ font-size: 12px;
58
+ margin-left: 5px;
59
+ font-weight: normal;
60
+ margin-bottom: 0 !important;
61
+ `,C=m.Ay.div`
62
+ font-weight: bold;
63
+ font-size: 1.2em;
64
+ margin-bottom: 15px;
65
+ `,E=m.Ay.div`
66
+ width: auto;
67
+ height: 550px;
68
+ `,T=m.Ay.div`
69
+ margin-top: 20px;
70
+ label {
71
+ font-size: 12px;
72
+ font-weight: normal;
73
+ margin-left: 5px;
74
+ margin-bottom: 0 !important;
75
+ margin-top: 4px !important;
76
+ }
77
+ .form-check {
78
+ display: flex;
79
+ align-items: center;
80
+ }
81
+ `,$=m.Ay.div`
82
+ margin-bottom: 35px;
83
+ `,D=m.Ay.div`
84
+ font-weight: bold;
85
+ margin-bottom: 5px;
86
+ `,P=m.Ay.div`
87
+ width: 100%;
88
+
89
+
90
+ .col-md-10{
91
+ width: 90% !important;
92
+ }
93
+
94
+ .col-md-10 > div:first-child {
95
+ height: 80vh !important;
96
+ }
97
+
98
+ .col-md-2{
99
+ width: 0 !important;
100
+ }
101
+ `;n.t1.register(n.PP,n.kc,n.E8,n.No,n.Bs,n.FN,n.hE,n.m_,n.s$,l.Ay);const _=e=>{const t=e.datasets.map((e=>{const t=[];let i=0;return e.data.forEach((e=>{i+=e,t.push(i)})),{...e,data:t}}));return{...e,datasets:t}},N=e=>{let{data:t,options:i,isOverallPlot:n,isDistPlot:l,setFullscreenContent:m}=e;const y=(0,a.useRef)(null),f=(0,o.zy)(),h=(0,o.Zp)(),{handleOpenModal:x,handleCloseModal:N}=(0,b.h)(),{settings:F}=(0,g.t)(),I=F.colorScheme,[W,H]=(0,a.useState)((()=>{const e=new URLSearchParams(f.search);return t.datasets.map((t=>{const i=t.label||"";return{label:i,visible:"false"!==e.get(i)}}))})),[B,O]=(0,a.useState)((()=>{const e=new URLSearchParams(f.search);return l?"Annual":e.get("view")||"Cumulative"})),[q,M]=(0,a.useState)("bar"),[j,G]=(0,a.useState)((()=>"Cumulative"===(l?"Annual":B)?_(t):t));(0,a.useEffect)((()=>{const e=new URLSearchParams(f.search);W.forEach((t=>{e.set(t.label,String(t.visible))})),e.set("view",B),h(`${f.pathname}?${e.toString()}`,{replace:!0})}),[W,B,f.pathname,h]),(0,a.useEffect)((()=>{n&&H((e=>e.map((e=>"Cumulative"===e.label?{...e,visible:!1}:e))))}),[n]),(0,a.useEffect)((()=>{if("Cumulative"===B){const e=_(t);G({labels:t.labels,datasets:e.datasets.map((e=>({...e,hidden:!W.find((t=>t.label===e.label))?.visible})))})}else G({labels:t.labels,datasets:t.datasets.map((e=>({...e,hidden:!W.find((t=>t.label===e.label))?.visible})))})}),[B,t,W]);const Z=e=>{H((t=>t.map((t=>t.label===e?{...t,visible:!t.visible}:t))))},Y=e=>{O(e)},Q=e=>{if(y.current){const t=(0,r.CK)(y.current,e);if(t.length>0){const{index:e}=t[0];let i="";for(const t of y.current.data.datasets){const a=t;if(a.objectConfig&&a.objectConfig[e]){i=a.objectConfig[e].url;break}}i&&(window.location.href=i)}}},U={...i,plugins:{...i.plugins,legend:{...i.plugins?.legend,onClick:(e,t,i)=>((e,t)=>{const i=t.datasetIndex,a=e.data.datasets[i].label;a&&Z(a)})(i.chart,t)}}},L=()=>{m(a.createElement(P,null,ee(!0))),x("fullscreen")},K=()=>{N()},J=e=>{M(e)},V=(e,t)=>{const i=e.datasets[0],a=e.labels.map(((e,i)=>t[i%t.length]));return{labels:e.labels,datasets:[{data:i.data,backgroundColor:a,borderColor:a,borderWidth:1}]}},X=e=>{const{title:t,legend:i,tooltips:a,responsive:o,plugins:r,...n}=e;return{responsive:o??!0,maintainAspectRatio:!1,plugins:{...r,legend:{...i,display:!0,position:"bottom"},tooltip:{...a,callbacks:{label:e=>{const t=e.dataset,i=t.data[e.dataIndex],a=(i/t.data.reduce(((e,t)=>e+t),0)*100).toFixed(2);return`${e.label}: ${i} - ${a}% (of total) `}}}},animation:{animateScale:!0}}},ee=e=>{const t={...U,maintainAspectRatio:!1,plugins:{legend:{display:!1}}},i={bar:a.createElement(r.yP,{ref:y,data:j,options:e?t:U,onClick:Q}),line:a.createElement(r.N1,{ref:y,data:j,options:e?t:U}),pie:a.createElement(r.Fq,{ref:y,data:V(j,I),options:X(e?t:U)}),table:a.createElement("div",null,"Table View (to be implemented)")};return a.createElement(d.A,null,a.createElement(s.A,{md:10},a.createElement(E,null,i[q])),a.createElement(s.A,{md:2},a.createElement(d.A,null,a.createElement(z,{md:2},a.createElement(k,null,a.createElement(A,{onClick:e?K:L},e?a.createElement(u.sp3,{size:15}):a.createElement(u.kxO,{size:15})),!e&&a.createElement(a.Fragment,null,a.createElement(A,{onClick:()=>x("settings")},a.createElement(u.Pcn,{size:15})),a.createElement(A,{selected:"bar"===q,onClick:()=>J("bar")},a.createElement(u.v$b,{size:15})),a.createElement(A,{selected:"line"===q,onClick:()=>J("line"),disabled:l},a.createElement(u.YYR,{size:15})),a.createElement(A,{selected:"pie"===q,onClick:()=>J("pie"),disabled:!l},a.createElement(u.qvi,{size:15})),a.createElement(A,{disabled:!0,selected:"table"===q,onClick:()=>J("table")},a.createElement(u.ist,{size:15})),a.createElement(A,{disabled:!0},a.createElement(u.$TP,{size:15})),a.createElement(A,{disabled:!0},a.createElement(u.DIg,{size:15}))))),!e&&a.createElement(s.A,{md:10},a.createElement(v,null,l?a.createElement($,null,a.createElement(D,null)):a.createElement(a.Fragment,null,a.createElement(C,null,"Data Options"),!n&&a.createElement($,null,a.createElement(D,null,"Data Shown"),W.map((e=>a.createElement(w,{key:e.label},a.createElement(R,{type:"checkbox",id:e.label,checked:e.visible,onChange:()=>Z(e.label)}),a.createElement(S,{htmlFor:e.label},e.label))))),a.createElement(T,null,a.createElement(D,null,"Data Set"),a.createElement(c.A.Check,{type:"radio",id:"view-annual",label:"Annual",name:"view-switch",value:"Annual",checked:"Annual"===B,onChange:()=>Y("Annual")}),a.createElement(c.A.Check,{type:"radio",id:"view-cumulative",label:"Cumulative",name:"view-switch",value:"Cumulative",checked:"Cumulative"===B,onChange:()=>Y("Cumulative")}))))))))};return a.createElement(p.A,null,ee(!1))};var F=i(3076),I=i(8533),W=i(176),H=i(8132),B=i(7231),O=i(7704),q=i(8154),M=i(2543),j=i(6061),G=i(637),Z=i(8422);const Y={"overall-structures":{query:{firstDim:{name:`FACET/${H.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:B.AggregationType.DateHistogram,attribute:H.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:B.Interval.Year,min_interval_population:1},returnType:B.ReturnType.Entry}},"overall-small-molecules":{query:{firstDim:{name:`FACET/${H.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:B.AggregationType.DateHistogram,attribute:H.e.RcsbChemCompInfo.InitialReleaseDate.path,interval:B.Interval.Year,min_interval_population:1},returnType:B.ReturnType.MolDefinition}},"experimental-method":{query:{firstDim:{name:`FACET/${H.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:B.AggregationType.DateHistogram,attribute:H.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:B.Interval.Year,min_interval_population:1},secondDim:{name:`FACET/${H.e.Exptl.Method.path}`,aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbEntryInfo.ExperimentalMethod.path,min_interval_population:1},returnType:B.ReturnType.Entry}},"molecular-composition":{query:{firstDim:{name:`FACET/${H.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:B.AggregationType.DateHistogram,attribute:H.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:B.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${H.e.Exptl.Method.path}`,aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbEntryInfo.SelectedPolymerEntityTypes.path},returnType:B.ReturnType.Entry}},"assembly-symmetry":{query:{firstDim:{name:`FACET/${H.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:B.AggregationType.DateHistogram,attribute:H.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:B.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${H.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}`,aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbStructSymmetry.Type.path},returnType:B.ReturnType.Entry}},"number-of-domains":{query:{firstDim:{name:`FACET/${H.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:B.AggregationType.DateHistogram,attribute:H.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:B.Interval.Year,min_interval_population:0},secondDim:{filter:{type:B.Type.Terminal,service:B.Service.Text,parameters:{attribute:H.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:B.Operator.ExactMatch,value:H.e.RcsbPolymerEntityGroupMembership.AggregationMethod.enum.sequence_identity}},facets:[{name:"Similarity Cutoff",aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbPolymerEntityGroupMembership.SimilarityCutoff.path,min_interval_population:1,facets:[{name:"Unique Protein Sequences",aggregation_type:B.AggregationType.Cardinality,attribute:H.e.RcsbPolymerEntityGroupMembership.GroupId.path}]}]},returnType:B.ReturnType.Entry}},"unique-protein-sequences":{query:{firstDim:{name:`FACET/${H.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:B.AggregationType.DateHistogram,attribute:H.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:B.Interval.Year,min_interval_population:0},secondDim:{filter:{type:B.Type.Terminal,service:B.Service.Text,parameters:{attribute:H.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:B.Operator.ExactMatch,value:B.AggregationMethod.MatchingUniprotAccession}},facets:[{name:"Unique UniProtKB Entries",aggregation_type:B.AggregationType.Cardinality,attribute:H.e.RcsbPolymerEntityGroupMembership.GroupId.path}]},returnType:B.ReturnType.Entry}},"distribution-resolution":{query:{firstDim:{name:"Resolution Combined",aggregation_type:B.AggregationType.Range,attribute:H.e.RcsbEntryInfo.ResolutionCombined.path,ranges:(0,Z.Y$)(1,.2,4.6)},returnType:B.ReturnType.Entry}},"distribution-r-free":{query:{firstDim:{name:"R-free",aggregation_type:B.AggregationType.Range,attribute:H.e.Refine.LsRFactorRFree.path,ranges:(0,Z.Y$)(.14,.01,.32)},returnType:B.ReturnType.Entry}},"distribution-molecular-weight-structure":{query:{firstDim:{name:"Molecular Weight",aggregation_type:B.AggregationType.Range,attribute:H.e.RcsbEntryInfo.MolecularWeight.path,ranges:(0,Z.Y$)(20,20,380)},returnType:B.ReturnType.Entry}},"distribution-atom-count":{query:{firstDim:{name:"Atom Count",aggregation_type:B.AggregationType.Range,attribute:H.e.RcsbEntryInfo.DepositedAtomCount.path,ranges:(0,Z.Y$)(1e3,1e3,19e3)},returnType:B.ReturnType.Entry}},"distribution-residue-count":{query:{firstDim:{name:"Residue Count",aggregation_type:B.AggregationType.Range,attribute:H.e.RcsbEntryInfo.DepositedPolymerMonomerCount.path,ranges:(0,Z.Y$)(100,100,1900)},returnType:B.ReturnType.Entry}},"distribution-source-organism-natural":{query:{firstDim:{name:"Source Type",aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbEntitySourceOrganism.SourceType.path,min_interval_population:1,facets:[{name:"Source Organism",aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbEntitySourceOrganism.NcbiScientificName.path,min_interval_population:1,max_num_intervals:20}]},returnType:B.ReturnType.Entry}},taxonomy:{query:{firstDim:{name:"Taxonomy",aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbEntitySourceOrganism.NcbiParentScientificName.path,min_interval_population:1,max_num_intervals:20},returnType:B.ReturnType.PolymerEntity}},"distribution-software":{query:{firstDim:{name:"Processing Software",aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbEntryInfo.SoftwareProgramsCombined.path,min_interval_population:1,max_num_intervals:30},returnType:B.ReturnType.Entry}},"distribution-space-group":{query:{firstDim:{name:"Space Groups",aggregation_type:B.AggregationType.Terms,attribute:H.e.Symmetry.SpaceGroupNameHM.path,min_interval_population:1,max_num_intervals:20},returnType:B.ReturnType.Entry}},"distribution-journal":{query:{firstDim:{name:"Publication Journal",aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbPrimaryCitation.RcsbJournalAbbrev.path,min_interval_population:1,max_num_intervals:25},returnType:B.ReturnType.Entry}},"distribution-structural-genomics-centers":{query:{firstDim:{name:"Structural Genomics Centers",aggregation_type:B.AggregationType.Terms,attribute:H.e.PdbxSgProject.FullNameOfCenter.path,min_interval_population:1,max_num_intervals:25},returnType:B.ReturnType.Entry}},"enzyme-classification-name":{query:{firstDim:{filter:{type:B.Type.Terminal,service:B.Service.Text,parameters:{attribute:H.e.RcsbPolymerEntity.RcsbEcLineage.Depth.path,operator:B.Operator.Equals,value:1}},facets:[{name:"Enzyme Classification",aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbPolymerEntity.RcsbEcLineage.Name.path,min_interval_population:1,max_num_intervals:20}]},returnType:B.ReturnType.PolymerEntity}},"assembly-symmetry-dist":{query:{firstDim:{filter:{type:B.Type.Terminal,service:B.Service.Text,parameters:{attribute:H.e.RcsbStructSymmetry.Kind.path,operator:B.Operator.ExactMatch,value:H.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}},facets:[{name:H.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"],aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbStructSymmetry.Type.path,min_interval_population:1}]},returnType:B.ReturnType.Assembly}},"scop-classification":{query:{firstDim:{filter:{type:B.Type.Terminal,service:B.Service.Text,parameters:{attribute:H.e.RcsbPolymerInstanceAnnotation.Type.path,operator:B.Operator.ExactMatch,value:"SCOP"}},facets:[{filter:{type:B.Type.Terminal,service:B.Service.Text,parameters:{attribute:H.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Depth.path,operator:B.Operator.Equals,value:1}},facets:[{name:"SCOP Classification",aggregation_type:B.AggregationType.Terms,attribute:H.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Name.path,min_interval_population:1,max_num_intervals:20}]}]},returnType:B.ReturnType.PolymerEntity}}},Q=e=>{const t=G.Tb.getStatisticsChartObject(e),i=t?.ref_url,a=t?.stats_notes;return{ref_url:i,stats_notes:a}},U=(e,t,i)=>{const a=new Set,o=[],r=new Map;e.forEach((e=>{o.push(e.labelPath[0]),e.data.forEach((t=>{a.add(t.label.toString()),r.has(e.labelPath[0])||r.set(e.labelPath[0],new Map),r.get(e.labelPath[0])?.set(t.label.toString(),t.population)}))}));const n=Array.from(a),l=[];return n.forEach(((e,a)=>{const n=[];o.forEach((o=>{if(void 0!==r.get(o)?.get(e)){const l=(0,G.F3)(i,e,"Entry");n.push({label:o,population:r.get(o)?.get(e)??0,objectConfig:{objectId:[o,e,r.get(o)?.get(e)??0],color:t[a%t.length],url:l}})}})),l.push(n)})),l},L=e=>{if("name"in e)return e.name;if(!e.facets||1!==e.facets.length)throw new Error("Multiple facets are not allowed");return L(e.facets[0])},K=(e,t)=>{const{settings:i}=(0,g.t)(),{setProperty:a}=(0,j.R)(),o=i.colorScheme.join("");return(0,W.I)({queryKey:[e,t,o],queryFn:()=>(async(e,t,i,a)=>{const o=Y[e];if(!o)throw new Error(`Unknown chart key: ${e}`);const{query:r}=o,{ref_url:n}=Q(e),{stats_notes:l}=Q(e);return async function(e,t,i){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,n=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;const s=i.searchQuery??(0,q.XY)({attribute:H.e.RcsbEntryInfo.StructureDeterminationMethodology.path,value:H.e.RcsbEntryInfo.StructureDeterminationMethodology.enum.experimental,operator:H.e.RcsbEntryInfo.StructureDeterminationMethodology.operator.ExactMatch,service:B.Service.Text}),c=(0,M.cloneDeep)(i.firstDim);i.secondDim&&(0,q.vw)(i.secondDim,c);const d=(0,q.G2)(s,i.returnType,{facets:[c]});n("searchRequest",d),n("stats_notes",r);const p=await(async(e,t)=>{const i=`${t.searchApiUrl}/rcsbsearch/v2/query`;return fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>{if(!e.ok)throw new Error(e.statusText);return e.json()})).catch((e=>{throw console.error("Error:",e),e}))})(d,l);if(!p)return[[]];const u=(0,O.z)(p);let b=u[0].data;const g={"distribution-resolution":Z.$Z,"distribution-r-free":Z.$Z,"distribution-molecular-weight-structure":Z.bl,"distribution-atom-count":Z.pF,"distribution-residue-count":Z.pF},m=g[e]?g[e](b):b;if(g[e]&&(b=m),a&&b.length>0){let e=0;return[b.map((e=>{const a=(0,G.F3)(o,e.label,i.returnType);return{...e,objectConfig:{...e.objectConfig,color:t[0%t.length],label:"Annual",url:a}}})),b.map((a=>{e+=a.population;const r=(0,G.F3)(o,a.label,i.returnType);return{...a,population:e,objectConfig:{objectId:[a.label,e],color:t[1%t.length],label:"Cumulative",url:r}}}))]}return i.secondDim?U(u.filter((e=>e.name===L(i.secondDim))),t,o):[b.map((e=>{const a=(0,G.F3)(o,e.label,i.returnType);return{...e,objectConfig:{objectId:[e.label,e.population],color:t[0%t.length],url:a}}}))]}(e,t,r,!1,n,l,i,a)})(e,i.colorScheme,a,i.config),enabled:!!e})},J={responsive:!0,maintainAspectRatio:!0,plugins:{title:{display:!0,font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!0,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!0,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:1e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:11,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},V={"overall-structures":{...J,plugins:{...J.plugins,title:{...J.plugins?.title,text:"PDB Statistics: Growth of Overall Structures"},legend:{display:!1},tooltip:{...J.plugins?.tooltip,callbacks:{label:function(e){const t=e.datasetIndex;return 0===t?`Structures Released Annually: ${e.raw}`:1===t?`Entries Available: ${e.raw}`:`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`}}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e4,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"overall-small-molecules":{...J,plugins:{...J.plugins,title:{...J.plugins?.title,text:"PDB Statistics: Growth of Released Small Small Molecules"},legend:{display:!1},tooltip:{...J.plugins?.tooltip,callbacks:{label:function(e){const t=e.datasetIndex;return 0===t?`Small Molecules Released Annually: ${e.raw}`:1===t?`Small Molecules Available: ${e.raw}`:`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`}}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"experimental-method":{...J,plugins:{...J.plugins,title:{...J.plugins?.title,text:"PDB Statistics: Growth by Experimental Method"},tooltip:{...J.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Year",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:1e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"molecular-composition":{...J,plugins:{...J.plugins,title:{...J.plugins?.title,text:"PDB Statistics: Growth by Molecular Composition"},tooltip:{...J.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"assembly-symmetry":{...J,plugins:{...J.plugins,title:{...J.plugins?.title,text:"PDB Statistics: Growth by Assembly Symmetry"},tooltip:{...J.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"number-of-domains":{...J,plugins:{...J.plugins,title:{...J.plugins?.title,text:"PDB Statistics: Growth by Number of Domains"},tooltip:{...J.plugins?.tooltip,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}}}},"unique-protein-sequences":{...J,plugins:{...J.plugins,title:{...J.plugins?.title,text:"PDB Statistics: Growth by Unique Protein Sequences"},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},legend:{display:!1}}},"distribution-resolution":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Resolution",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Resolution (Angstrom)",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-r-free":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by R-free",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"R-free (%)",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-molecular-weight-structure":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Molecular Weight Structure",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Molecular Weight (Daltons)",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-atom-count":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Atom Count",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Atom count Range",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-residue-count":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Residue Count",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Residue Count Range",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-source-organism-natural":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Natural Source Organism",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Natural Source Organism",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},taxonomy:{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Taxonomy",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Taxonomy",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-software":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Processing Software",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:1e4,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!1,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Software Used",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-space-group":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Space Group",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"x"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},scales:{x:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Space Group",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-journal":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Journal",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Journal",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"distribution-structural-genomics-centers":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Structural Genomics Centers",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Structural Genomics Center",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"enzyme-classification-name":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Enzyme Classification Name",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Enzyme Classification",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"assembly-symmetry-dist":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by Assembly Symmetry Type",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"Assembly Symmetry Type",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}},"scop-classification":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Statistics: PDB Data Distribution by SCOP Classification",font:{size:18,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",weight:"bold"},color:"#333",padding:{top:0,bottom:40},align:"start"},legend:{display:!1,position:"bottom",align:"start",labels:{boxWidth:40,padding:20,font:{size:14,family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",style:"normal"},color:"#333",usePointStyle:!1,pointStyle:"circle"}},tooltip:{enabled:!1,mode:"index",intersect:!1,backgroundColor:"rgba(0,0,0,0.8)",titleFont:{size:16,weight:"bold"},bodyFont:{size:14},footerFont:{size:12},padding:10,displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:1,callbacks:{label:function(e){return`${e.dataset.label}: ${e.raw}`},title:function(e){return`${e[0].label}`},footer:function(e){return e.length>1?`Total: ${e.reduce(((e,t)=>e+Number(t.raw)),0)}`:""}}},filler:{propagate:!0},zoom:{pan:{enabled:!0,mode:"y"},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"y"}}},scales:{x:{type:"linear",display:!0,stacked:!0,beginAtZero:!0,grid:{display:!0,color:"#e4e4e4",lineWidth:1},ticks:{stepSize:5e3,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}},y:{type:"category",display:!0,stacked:!0,grid:{display:!1},ticks:{autoSkip:!0,maxRotation:45,minRotation:0,font:{size:12},color:"#333"},title:{display:!0,text:"SCOP Classification",font:{size:14,weight:"normal"},color:"#333"}}},elements:{bar:{borderWidth:1,borderRadius:2,hoverBackgroundColor:"rgba(0,0,0,0.2)",hoverBorderColor:"#333"}},animation:{duration:600,easing:"easeInOutQuart"},layout:{padding:{left:0,right:0,top:0,bottom:0}}}},X=e=>{let{setFullscreenContent:t}=e;const i=(0,o.g)().plotname||"",r=i||"defaultKey",n="overall-structures"===i||"overall-small-molecules"===i,{data:l,isLoading:s,error:c}=K(r),d=(0,j.R)(),{settings:p}=(0,g.t)(),b=["distribution-space-group","distribution-resolution","distribution-r-free","distribution-molecular-weight-structure","distribution-atom-count","distribution-residue-count","distribution-source-organism-natural","distribution-software","distribution-journal","distribution-structural-genomics-centers","assembly-symmetry-dist","taxonomy","enzyme-classification-name","scop-classification"].includes(i);if(s)return a.createElement(f,null,a.createElement(F.A,null));if(c)return a.createElement(f,null,a.createElement(I.A,{error:c}));const m=l&&l.length>0?{labels:l[0].map((e=>e.label)),datasets:l.map(((e,t)=>{const i={};return e.forEach((e=>{i[e.label]=e.population})),{label:n?0===t?"Annual":"Cumulative":e[0]?.objectConfig?.objectId?.[1]??`Dataset ${t+1}`,data:l[0].map((e=>i[e.label]||0)),backgroundColor:e[0]?.objectConfig?.color||"rgba(0, 0, 0, 0.1)",borderColor:e[0]?.objectConfig?.color||"rgba(0, 0, 0, 0.1)",borderWidth:1,objectConfig:e.map((e=>e.objectConfig))}}))}:null,y=i&&V[i];return a.createElement(f,{key:i},m&&y?a.createElement(a.Fragment,null,a.createElement(h,null,a.createElement(x,{onClick:()=>{const e=(0,Z.h5)(d,p);e&&window.open(e,"_blank")}},a.createElement(u.Pcn,null)," Search API")),a.createElement(N,{data:m,options:y,isOverallPlot:n,isDistPlot:b,setFullscreenContent:t})):a.createElement(f,null,a.createElement(I.A,{error:new Error("No data available")})))}}}]);