@rcsb/rcsb-statistics 0.3.4-dev.0 → 0.3.4-dev.2

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:()=>V});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(7581);const m=g.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
+ `,y=g.Ay.div`
11
+ animation: ${m} .5s ease-in;
12
+ will-change: opacity, transform;
13
+ `,f=g.Ay.div`
14
+ display: flex;
15
+ justify-content: flex-end;
16
+ margin-top: -10px;
17
+ `,h=g.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
+ `,x=g.Ay.div`
29
+ padding-left: 7px;
30
+ margin-top: 40px;
31
+ `,v=(0,g.Ay)(s.A)`
32
+ margin-top: 40px;
33
+ `,z=g.Ay.div`
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ justify-content: center;
38
+ gap: 5px;
39
+ `,A=g.Ay.div`
40
+ background-color: #f0f0f0;
41
+ border: 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
+ `,k=g.Ay.div`
51
+ display: flex;
52
+ align-items: center;
53
+ margin-bottom: 5px;
54
+ `,w=g.Ay.input`
55
+ margin-right: 20px;
56
+ `,R=g.Ay.label`
57
+ font-size: 12px;
58
+ margin-left: 5px;
59
+ font-weight: normal;
60
+ margin-bottom: 0 !important;
61
+ `,S=g.Ay.div`
62
+ font-weight: bold;
63
+ font-size: 1.2em;
64
+ margin-bottom: 15px;
65
+ `,C=g.Ay.div`
66
+ width: auto;
67
+ height: 550px;
68
+ `,E=g.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
+ `,T=g.Ay.div`
82
+ margin-bottom: 35px;
83
+ `,D=g.Ay.div`
84
+ font-weight: bold;
85
+ margin-bottom: 5px;
86
+ `,$=g.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.hE,n.m_,n.s$,l.Ay);const P=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}},_=e=>{let{data:t,options:i,isOverallPlot:n,isDistPlot:l,setFullscreenContent:g}=e;const m=(0,a.useRef)(null),y=(0,o.zy)(),f=(0,o.Zp)(),{handleOpenModal:h,handleCloseModal:_}=(0,b.h)(),[N,I]=(0,a.useState)((()=>{const e=new URLSearchParams(y.search);return t.datasets.map((t=>{const i=t.label||"";return{label:i,visible:"false"!==e.get(i)}}))})),[F,W]=(0,a.useState)((()=>{const e=new URLSearchParams(y.search);return l?"Annual":e.get("view")||"Cumulative"})),[H,B]=(0,a.useState)((()=>{const e=new URLSearchParams(y.search);return"Cumulative"===(l?"Annual":e.get("view")||"Cumulative")?P(t):t}));(0,a.useEffect)((()=>{const e=new URLSearchParams(y.search);N.forEach((t=>{e.set(t.label,String(t.visible))})),e.set("view",F),f(`${y.pathname}?${e.toString()}`,{replace:!0})}),[N,F,y.pathname,f]),(0,a.useEffect)((()=>{n&&I((e=>e.map((e=>"Cumulative"===e.label?{...e,visible:!1}:e))))}),[n]),(0,a.useEffect)((()=>{if("Cumulative"===F){const e=P(t);B({labels:t.labels,datasets:e.datasets.map((e=>({...e,hidden:!N.find((t=>t.label===e.label))?.visible})))})}else B({labels:t.labels,datasets:t.datasets.map((e=>({...e,hidden:!N.find((t=>t.label===e.label))?.visible})))})}),[F,t,N]);const O=e=>{I((t=>t.map((t=>t.label===e?{...t,visible:!t.visible}:t))))},M=e=>{W(e)},q=e=>{if(m.current){const t=(0,r.CK)(m.current,e);if(t.length>0){const{index:e}=t[0];let i="";for(const t of m.current.data.datasets){const a=t;if(a.objectConfig&&a.objectConfig[e]){i=a.objectConfig[e].url;break}}i&&(window.location.href=i)}}},j={...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&&O(a)})(i.chart,t)}}},G=e=>{const t={...j,maintainAspectRatio:!1,plugins:{...i.plugins,legend:{display:!1}}};return a.createElement(d.A,null,a.createElement(s.A,{md:10},a.createElement(C,null,a.createElement(r.yP,{ref:m,data:H,options:e?t:j,onClick:q}))),a.createElement(s.A,{md:2},a.createElement(d.A,null,a.createElement(v,{md:2},a.createElement(z,null,a.createElement(A,{onClick:e?Y:Z},e?a.createElement(u.sp3,{size:15}):a.createElement(u.kxO,{size:15})),a.createElement(A,{disabled:e,onClick:()=>h("settings")},a.createElement(u.Pcn,{size:15})),a.createElement(A,{disabled:e,onClick:()=>h("information")},a.createElement(u.__w,{size:15})),a.createElement(A,{disabled:!0},a.createElement(u.ist,{size:15})),a.createElement(A,{disabled:!0},a.createElement(u.YYR,{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(x,null,l?a.createElement(T,null,a.createElement(D,null)):a.createElement(a.Fragment,null,a.createElement(S,null,"Data Options"),!n&&a.createElement(T,null,a.createElement(D,null,"Data Shown"),N.map((e=>a.createElement(k,{key:e.label},a.createElement(w,{type:"checkbox",id:e.label,checked:e.visible,onChange:()=>O(e.label)}),a.createElement(R,{htmlFor:e.label},e.label))))),a.createElement(E,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"===F,onChange:()=>M("Annual")}),a.createElement(c.A.Check,{type:"radio",id:"view-cumulative",label:"Cumulative",name:"view-switch",value:"Cumulative",checked:"Cumulative"===F,onChange:()=>M("Cumulative")}))))))))},Z=()=>{g(a.createElement($,null,G(!0))),h("fullscreen")},Y=()=>{_()};return a.createElement(p.A,null,G(!1))};var N=i(3076),I=i(8533),F=i(176),W=i(8132),H=i(7231),B=i(7704),O=i(8154),M=i(2543),q=i(7638),j=i(6061),G=i(637),Z=i(8422);const Y={"overall-structures":{query:{firstDim:{name:`FACET/${W.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:H.AggregationType.DateHistogram,attribute:W.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:H.Interval.Year,min_interval_population:1},returnType:H.ReturnType.Entry}},"overall-small-molecules":{query:{firstDim:{name:`FACET/${W.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:H.AggregationType.DateHistogram,attribute:W.e.RcsbChemCompInfo.InitialReleaseDate.path,interval:H.Interval.Year,min_interval_population:1},returnType:H.ReturnType.MolDefinition}},"experimental-method":{query:{firstDim:{name:`FACET/${W.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:H.AggregationType.DateHistogram,attribute:W.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:H.Interval.Year,min_interval_population:1},secondDim:{name:`FACET/${W.e.Exptl.Method.path}`,aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbEntryInfo.ExperimentalMethod.path,min_interval_population:1},returnType:H.ReturnType.Entry}},"molecular-composition":{query:{firstDim:{name:`FACET/${W.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:H.AggregationType.DateHistogram,attribute:W.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:H.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${W.e.Exptl.Method.path}`,aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbEntryInfo.SelectedPolymerEntityTypes.path},returnType:H.ReturnType.Entry}},"assembly-symmetry":{query:{firstDim:{name:`FACET/${W.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:H.AggregationType.DateHistogram,attribute:W.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:H.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${W.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}`,aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbStructSymmetry.Type.path},returnType:H.ReturnType.Entry}},"number-of-domains":{query:{firstDim:{name:`FACET/${W.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:H.AggregationType.DateHistogram,attribute:W.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:H.Interval.Year,min_interval_population:0},secondDim:{filter:{type:H.Type.Terminal,service:H.Service.Text,parameters:{attribute:W.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:H.Operator.ExactMatch,value:W.e.RcsbPolymerEntityGroupMembership.AggregationMethod.enum.sequence_identity}},facets:[{name:"Similarity Cutoff",aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbPolymerEntityGroupMembership.SimilarityCutoff.path,min_interval_population:1,facets:[{name:"Unique Protein Sequences",aggregation_type:H.AggregationType.Cardinality,attribute:W.e.RcsbPolymerEntityGroupMembership.GroupId.path}]}]},returnType:H.ReturnType.Entry}},"unique-protein-sequences":{query:{firstDim:{name:`FACET/${W.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:H.AggregationType.DateHistogram,attribute:W.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:H.Interval.Year,min_interval_population:0},secondDim:{filter:{type:H.Type.Terminal,service:H.Service.Text,parameters:{attribute:W.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:H.Operator.ExactMatch,value:H.AggregationMethod.MatchingUniprotAccession}},facets:[{name:"Unique UniProtKB Entries",aggregation_type:H.AggregationType.Cardinality,attribute:W.e.RcsbPolymerEntityGroupMembership.GroupId.path}]},returnType:H.ReturnType.Entry}},"distribution-resolution":{query:{firstDim:{name:"Resolution Combined",aggregation_type:H.AggregationType.Range,attribute:W.e.RcsbEntryInfo.ResolutionCombined.path,ranges:(0,Z.Y$)(1,.2,4.6)},returnType:H.ReturnType.Entry}},"distribution-r-free":{query:{firstDim:{name:"R-free",aggregation_type:H.AggregationType.Range,attribute:W.e.Refine.LsRFactorRFree.path,ranges:(0,Z.Y$)(.14,.01,.32)},returnType:H.ReturnType.Entry}},"distribution-molecular-weight-structure":{query:{firstDim:{name:"Molecular Weight",aggregation_type:H.AggregationType.Range,attribute:W.e.RcsbEntryInfo.MolecularWeight.path,ranges:(0,Z.Y$)(20,20,380)},returnType:H.ReturnType.Entry}},"distribution-atom-count":{query:{firstDim:{name:"Atom Count",aggregation_type:H.AggregationType.Range,attribute:W.e.RcsbEntryInfo.DepositedAtomCount.path,ranges:(0,Z.Y$)(1e3,1e3,19e3)},returnType:H.ReturnType.Entry}},"distribution-residue-count":{query:{firstDim:{name:"Residue Count",aggregation_type:H.AggregationType.Range,attribute:W.e.RcsbEntryInfo.DepositedPolymerMonomerCount.path,ranges:(0,Z.Y$)(100,100,1900)},returnType:H.ReturnType.Entry}},"distribution-source-organism-natural":{query:{firstDim:{name:"Source Type",aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbEntitySourceOrganism.SourceType.path,min_interval_population:1,facets:[{name:"Source Organism",aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbEntitySourceOrganism.NcbiScientificName.path,min_interval_population:1,max_num_intervals:20}]},returnType:H.ReturnType.Entry}},taxonomy:{query:{firstDim:{name:"Taxonomy",aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbEntitySourceOrganism.NcbiParentScientificName.path,min_interval_population:1,max_num_intervals:20},returnType:H.ReturnType.PolymerEntity}},"distribution-software":{query:{firstDim:{name:"Processing Software",aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbEntryInfo.SoftwareProgramsCombined.path,min_interval_population:1,max_num_intervals:30},returnType:H.ReturnType.Entry}},"distribution-space-group":{query:{firstDim:{name:"Space Groups",aggregation_type:H.AggregationType.Terms,attribute:W.e.Symmetry.SpaceGroupNameHM.path,min_interval_population:1,max_num_intervals:20},returnType:H.ReturnType.Entry}},"distribution-journal":{query:{firstDim:{name:"Publication Journal",aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbPrimaryCitation.RcsbJournalAbbrev.path,min_interval_population:1,max_num_intervals:25},returnType:H.ReturnType.Entry}},"distribution-structural-genomics-centers":{query:{firstDim:{name:"Structural Genomics Centers",aggregation_type:H.AggregationType.Terms,attribute:W.e.PdbxSgProject.FullNameOfCenter.path,min_interval_population:1,max_num_intervals:25},returnType:H.ReturnType.Entry}},"enzyme-classification-name":{query:{firstDim:{filter:{type:H.Type.Terminal,service:H.Service.Text,parameters:{attribute:W.e.RcsbPolymerEntity.RcsbEcLineage.Depth.path,operator:H.Operator.Equals,value:1}},facets:[{name:"Enzyme Classification",aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbPolymerEntity.RcsbEcLineage.Name.path,min_interval_population:1,max_num_intervals:20}]},returnType:H.ReturnType.PolymerEntity}},"assembly-symmetry-dist":{query:{firstDim:{filter:{type:H.Type.Terminal,service:H.Service.Text,parameters:{attribute:W.e.RcsbStructSymmetry.Kind.path,operator:H.Operator.ExactMatch,value:W.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}},facets:[{name:W.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"],aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbStructSymmetry.Type.path,min_interval_population:1}]},returnType:H.ReturnType.Assembly}},"scop-classification":{query:{firstDim:{filter:{type:H.Type.Terminal,service:H.Service.Text,parameters:{attribute:W.e.RcsbPolymerInstanceAnnotation.Type.path,operator:H.Operator.ExactMatch,value:"SCOP"}},facets:[{filter:{type:H.Type.Terminal,service:H.Service.Text,parameters:{attribute:W.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Depth.path,operator:H.Operator.Equals,value:1}},facets:[{name:"SCOP Classification",aggregation_type:H.AggregationType.Terms,attribute:W.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Name.path,min_interval_population:1,max_num_intervals:20}]}]},returnType:H.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,q.t)(),{setProperty:a}=(0,j.R)(),o=i.colorScheme.join("");return(0,F.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,O.XY)({attribute:W.e.RcsbEntryInfo.StructureDeterminationMethodology.path,value:W.e.RcsbEntryInfo.StructureDeterminationMethodology.enum.experimental,operator:W.e.RcsbEntryInfo.StructureDeterminationMethodology.operator.ExactMatch,service:H.Service.Text}),c=(0,M.cloneDeep)(i.firstDim);i.secondDim&&(0,O.vw)(i.secondDim,c);const d=(0,O.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,B.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}}},X={"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}}}},V=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,q.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(y,null,a.createElement(N.A,null));if(c)return a.createElement(y,null,a.createElement(I.A,{error:c}));const g=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,m=i&&X[i];return a.createElement(y,{key:i},g&&m?a.createElement(a.Fragment,null,a.createElement(f,null,a.createElement(h,{onClick:()=>{const e=(0,Z.h5)(d,p);e&&window.open(e,"_blank")}},a.createElement(u.Pcn,null)," Search API")),a.createElement(_,{data:g,options:m,isOverallPlot:n,isDistPlot:b,setFullscreenContent:t})):a.createElement(y,null,a.createElement(I.A,{error:new Error("No data available")})))}}}]);