@rcsb/rcsb-statistics 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.html +1 -1
- package/build/static/js/451.8ecffe73.chunk.js +294 -0
- package/build/static/js/637.96fc0ca0.chunk.js +1 -0
- package/build/static/js/768.dd5da0ff.chunk.js +2 -0
- package/build/static/js/{310.2e091756.chunk.js.LICENSE.txt → 768.dd5da0ff.chunk.js.LICENSE.txt} +1 -1
- package/build/static/js/main.a8849d73.js +334 -0
- package/build/static/js/{main.f39b64be.js.LICENSE.txt → main.a8849d73.js.LICENSE.txt} +3 -3
- package/package.json +1 -1
- package/build/static/js/310.2e091756.chunk.js +0 -2
- package/build/static/js/637.2a795f71.chunk.js +0 -1
- package/build/static/js/849.d1b56840.chunk.js +0 -102
- package/build/static/js/main.f39b64be.js +0 -334
package/build/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="RCSB Protein Data Bank: A Resource for Studying Biological Macromolecules"/><title>RCSB Statistics</title><script defer="defer" src="/static/js/main.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="RCSB Protein Data Bank: A Resource for Studying Biological Macromolecules"/><title>RCSB Statistics</title><script defer="defer" src="/static/js/main.a8849d73.js"></script><link href="/static/css/main.861341d0.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript sto run this app.</noscript><div id="statsroot"></div></body></html>
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[451],{4451:(e,t,i)=>{i.r(t),i.d(t,{default:()=>de});var o=i(6540),a=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),g=i(6973),b=i(2756),m=i(7638),y=i(7581);const f=y.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
|
+
`,h=y.Ay.div`
|
|
11
|
+
animation: ${f} .5s ease-in;
|
|
12
|
+
will-change: opacity, transform;
|
|
13
|
+
`,x=y.Ay.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: flex-end;
|
|
16
|
+
margin-top: -10px;
|
|
17
|
+
`,v=y.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
|
+
`,z=y.Ay.div`
|
|
29
|
+
padding-left: 7px;
|
|
30
|
+
margin-top: 40px;
|
|
31
|
+
`,k=(0,y.Ay)(s.A)`
|
|
32
|
+
margin-top: 40px;
|
|
33
|
+
`,w=y.Ay.div`
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
gap: 5px;
|
|
39
|
+
`,A=y.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?"#fafafa":"#707070"}};
|
|
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: #e0e0e0;\n border: 1px solid #808080;\n cursor: pointer;\n }\n "}}
|
|
50
|
+
`,C=y.Ay.div`
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
margin-bottom: 5px;
|
|
54
|
+
`,R=y.Ay.input`
|
|
55
|
+
margin-right: 20px;
|
|
56
|
+
`,E=y.Ay.label`
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
margin-left: 5px;
|
|
59
|
+
font-weight: normal;
|
|
60
|
+
margin-bottom: 0 !important;
|
|
61
|
+
`,T=y.Ay.div`
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
font-size: 1.2em;
|
|
64
|
+
margin-bottom: 15px;
|
|
65
|
+
`,S=y.Ay.div`
|
|
66
|
+
width: auto;
|
|
67
|
+
min-height: 550px;
|
|
68
|
+
`,$=y.Ay.div`
|
|
69
|
+
margin-top: 20px;
|
|
70
|
+
min-width: 170px;
|
|
71
|
+
label {
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
font-weight: normal;
|
|
74
|
+
margin-left: 5px;
|
|
75
|
+
margin-bottom: 0 !important;
|
|
76
|
+
margin-top: 4px !important;
|
|
77
|
+
}
|
|
78
|
+
.form-check {
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
}
|
|
82
|
+
`,D=y.Ay.div`
|
|
83
|
+
margin-bottom: 35px;
|
|
84
|
+
`,N=y.Ay.div`
|
|
85
|
+
font-weight: bold;
|
|
86
|
+
margin-bottom: 5px;
|
|
87
|
+
`,_=y.Ay.div`
|
|
88
|
+
width: 100%;
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
.col-md-10{
|
|
92
|
+
width: 90% !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.col-md-10 > div:first-child {
|
|
96
|
+
height: 80vh !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.col-md-2{
|
|
100
|
+
width: 0 !important;
|
|
101
|
+
}
|
|
102
|
+
`,P=y.Ay.div`
|
|
103
|
+
display: block;
|
|
104
|
+
font-size: 18px;
|
|
105
|
+
font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
|
|
106
|
+
font-weight: bold;
|
|
107
|
+
color: #333;
|
|
108
|
+
padding-top: 0;
|
|
109
|
+
padding-bottom: 15px;
|
|
110
|
+
text-align: start;
|
|
111
|
+
margin-top: -2px;
|
|
112
|
+
`,W=y.Ay.div`
|
|
113
|
+
position: relative;
|
|
114
|
+
display: inline-block;
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
|
|
117
|
+
&:hover ul {
|
|
118
|
+
display: block;
|
|
119
|
+
}
|
|
120
|
+
`,F=y.Ay.div`
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
position: relative;
|
|
125
|
+
|
|
126
|
+
.triangle {
|
|
127
|
+
width: 8px;
|
|
128
|
+
aspect-ratio: 1;
|
|
129
|
+
clip-path: polygon(0 0, 100% 0, 50% 70%);
|
|
130
|
+
background-color: #999;
|
|
131
|
+
position: absolute;
|
|
132
|
+
right: -15px;
|
|
133
|
+
top: 50%;
|
|
134
|
+
transform: translateY(-10%);
|
|
135
|
+
transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:hover .triangle {
|
|
139
|
+
transform: translateY(0.2rem);
|
|
140
|
+
}
|
|
141
|
+
`,H=y.Ay.ul`
|
|
142
|
+
display: none;
|
|
143
|
+
position: absolute;
|
|
144
|
+
top: 100%;
|
|
145
|
+
left: 0;
|
|
146
|
+
z-index: 1000;
|
|
147
|
+
min-width: 130px;
|
|
148
|
+
padding: 2px 0;
|
|
149
|
+
margin: 0;
|
|
150
|
+
font-size: 14px;
|
|
151
|
+
color: #333;
|
|
152
|
+
text-align: left;
|
|
153
|
+
list-style: none;
|
|
154
|
+
background-color: #fff;
|
|
155
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
156
|
+
border-radius: 4px;
|
|
157
|
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
|
|
158
|
+
|
|
159
|
+
${W}:hover & {
|
|
160
|
+
display: block;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
& > li.disabled {
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
color: #ccc;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
& > li:not(.disabled):hover {
|
|
169
|
+
background-color: #f8f9fa;
|
|
170
|
+
}
|
|
171
|
+
`,I=y.Ay.li`
|
|
172
|
+
padding: 8px 20px;
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
|
|
178
|
+
&:hover {
|
|
179
|
+
background-color: #f1f1f1;
|
|
180
|
+
}
|
|
181
|
+
`,j=y.Ay.span`
|
|
182
|
+
margin-left: 8px;
|
|
183
|
+
font-size: 14px;
|
|
184
|
+
color: #333;
|
|
185
|
+
`;var q=i(2195);const B=y.Ay.div`
|
|
186
|
+
.gridjs-pagination {
|
|
187
|
+
display: flex;
|
|
188
|
+
justify-content: space-between;
|
|
189
|
+
padding: 10px;
|
|
190
|
+
background-color: #f9fafb;
|
|
191
|
+
border: 1px solid #ccc;
|
|
192
|
+
border-radius: 0 0 8px 8px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.gridjs-summary {
|
|
196
|
+
font-size: 14px;
|
|
197
|
+
color: #555;
|
|
198
|
+
margin-top: 5px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.gridjs-pages button {
|
|
202
|
+
margin: 0 5px;
|
|
203
|
+
padding: 5px 10px;
|
|
204
|
+
border-radius: 5px;
|
|
205
|
+
background-color: #fff;
|
|
206
|
+
border: 1px solid #ccc;
|
|
207
|
+
color: #333;
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
transition: background-color 0.3s, color 0.3s;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.gridjs-pages button:hover {
|
|
213
|
+
background-color: #e0e0e0;
|
|
214
|
+
color: #000;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.gridjs-pages button:disabled {
|
|
218
|
+
color: #aaa;
|
|
219
|
+
background-color: #f5f5f5;
|
|
220
|
+
cursor: not-allowed;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.gridjs-pages button.gridjs-currentPage {
|
|
224
|
+
background-color: #d0d0d0;
|
|
225
|
+
font-weight: bold;
|
|
226
|
+
border-color: #aaa;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.gridjs-wrapper {
|
|
230
|
+
width: 100%;
|
|
231
|
+
border-radius: 8px;
|
|
232
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
233
|
+
margin-bottom: 20px;
|
|
234
|
+
border: 1px solid #e5e7eb;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
td.gridjs-td {
|
|
238
|
+
padding: 12px 16px;
|
|
239
|
+
font-size: 13px;
|
|
240
|
+
color: #444;
|
|
241
|
+
border: 1px solid #e5e7eb;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
th.gridjs-th {
|
|
245
|
+
position: relative;
|
|
246
|
+
padding: 12px 16px;
|
|
247
|
+
background-color: #f7f7f7;
|
|
248
|
+
color: #333;
|
|
249
|
+
font-weight: bold;
|
|
250
|
+
text-align: left;
|
|
251
|
+
border: 1px solid #e5e7eb;
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.gridjs-th .gridjs-sort {
|
|
256
|
+
display: none !important;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
th.gridjs-th.gridjs-sort-neutral::after {
|
|
260
|
+
content: '⇵';
|
|
261
|
+
margin-left: 10px;
|
|
262
|
+
font-size: 12px;
|
|
263
|
+
color: #888;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
th.gridjs-th.gridjs-sort-asc::after {
|
|
267
|
+
content: '▲';
|
|
268
|
+
margin-left: 10px;
|
|
269
|
+
font-size: 12px;
|
|
270
|
+
color: #888;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
th.gridjs-th.gridjs-sort-desc::after {
|
|
274
|
+
content: '▼';
|
|
275
|
+
margin-left: 10px;
|
|
276
|
+
font-size: 12px;
|
|
277
|
+
color: #888;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
input.gridjs-input {
|
|
281
|
+
outline: none;
|
|
282
|
+
background-color: #fff;
|
|
283
|
+
border: 1px solid #d2d6dc;
|
|
284
|
+
border-radius: 5px;
|
|
285
|
+
padding: 8px 12px;
|
|
286
|
+
font-size: 14px;
|
|
287
|
+
margin-bottom: 10px;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
input.gridjs-input:focus {
|
|
291
|
+
border-color: #9bc2f7;
|
|
292
|
+
box-shadow: 0 0 0 3px rgba(149, 189, 243, 0.5);
|
|
293
|
+
}
|
|
294
|
+
`,O=e=>{let{data:t,title:i}=e;if(0===t.length)return o.createElement("p",null,"No data available.");const a=Object.keys(t[0]),r=t.map((e=>a.map((t=>e[t]))));return o.createElement(o.Fragment,null,i&&o.createElement(P,null,i),o.createElement(B,null,o.createElement(q.x,{columns:a,data:r,search:!1,pagination:{limit:10},sort:!0,style:{table:{border:"1px solid #ccc","border-radius":"8px",width:"100%","background-color":"#fff",color:"#000","font-family":"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","text-align":"left"},th:{"background-color":"#f5f5f5",color:"#333","border-bottom":"2px solid #ccc",padding:"12px","font-weight":"bold"},td:{padding:"12px","border-bottom":"1px solid #eee",color:"#555","font-size":"13px"}}})))},M=e=>{let{chartType:t,handleChartTypeChange:i,isDistPlot:a}=e;const r=e=>{i(e)};return o.createElement(W,null,o.createElement(F,null,o.createElement(A,null,(()=>{switch(t){case"bar":default:return o.createElement(u.v$b,{size:15});case"line":return o.createElement(u.YYR,{size:15});case"pie":return o.createElement(u.qvi,{size:15})}})()),o.createElement("span",{className:"triangle"})),o.createElement(H,null,o.createElement(I,{onClick:()=>r("bar")},o.createElement(A,null,o.createElement(u.v$b,{size:15})),o.createElement(j,null,"Bar Chart")),!a&&o.createElement(I,{onClick:()=>r("line")},o.createElement(A,null,o.createElement(u.YYR,{size:15})),o.createElement(j,null,"Line Chart")),a&&o.createElement(I,{onClick:()=>r("pie")},o.createElement(A,null,o.createElement(u.qvi,{size:15})),o.createElement(j,null,"Pie Chart"))))};n.t1.register(n.PP,n.kc,n.OJ,n.E8,n.No,n.Bs,n.FN,n.hE,n.m_,n.s$,l.Ay);const Y=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}},G=e=>{let{data:t,options:i,isOverallPlot:a,plotName:n,isDistPlot:l,setFullscreenContent:y}=e;const f=(0,o.useRef)(null),{handleOpenModal:h,handleCloseModal:x}=(0,b.h)(),{settings:v}=(0,m.t)(),P=v.colorScheme,[W,F]=(0,o.useState)(t.datasets.map((e=>({label:e.label||"",visible:!0})))),[H,I]=(0,o.useState)(l?"Non-Cumulative":"Cumulative"),[j,q]=(0,o.useState)("natural"),[B,G]=(0,o.useState)("bar"),[Z,Q]=(0,o.useState)((()=>"Cumulative"===(l?"Non-Cumulative":H)?Y(t):t)),[U,L]=(0,o.useState)("linear"),K=t.datasets.map((e=>({label:e.label||"",visible:!0}))),J=l?"Non-Cumulative":"Cumulative",X=()=>{F(K),I(J),q("natural"),G("bar"),Q("Cumulative"===J?Y(t):t),L("linear")};(0,o.useEffect)((()=>{const e="Cumulative"===H?Y(t):t;Q(e)}),[H,t]),(0,o.useEffect)((()=>{a&&F((e=>e.map((e=>"Cumulative"===e.label?{...e,visible:!1}:e))))}),[a]),(0,o.useEffect)((()=>{if("Cumulative"===H){const e=Y(t);Q({labels:t.labels,datasets:e.datasets.map((e=>({...e,hidden:!W.find((t=>t.label===e.label))?.visible})))})}else Q({labels:t.labels,datasets:t.datasets.map((e=>({...e,hidden:!W.find((t=>t.label===e.label))?.visible})))})}),[H,t,W]),(0,o.useEffect)((()=>{if("distribution-source-organism"===n){const e=[],i=[],o=[];if(t?.datasets?.[0]?.objectConfig&&Array.isArray(t.labels)){t.datasets[0].objectConfig.forEach(((a,r)=>{if(a.label===j){const n=t.labels?.[r],l=t.datasets[0].data?.[r];n&&void 0!==l&&(e.push(n),i.push(l),o.push(a))}}));const a={...t.datasets[0],data:i,objectConfig:o};Q({labels:e,datasets:[a]})}}}),[j,t,n]);const V=e=>{F((t=>t.map((t=>t.label===e?{...t,visible:!t.visible}:t))))},ee=()=>{L((e=>"linear"===e?"logarithmic":"linear"))},te=e=>{I(e)},ie=e=>{q(e)},oe=e=>{if(f.current){const t=(0,r.CK)(f.current,e);if(t.length>0){const{index:e}=t[0];let i="";for(const t of f.current.data.datasets){const o=t;if(o.objectConfig&&o.objectConfig[e]){i=o.objectConfig[e].url;break}}i&&(window.location.href=i)}}},ae={...i,scales:l||"line"!==B?i.scales:{...i.scales,x:{...i.scales?.x,stacked:!1},y:{...i.scales?.y,type:U,stacked:!1,min:"logarithmic"===U?1:void 0,ticks:{callback:function(e){return"logarithmic"===U?[1,10,100,1e3,1e4].includes(e)?e:null:e}},title:{display:!0,text:`${i?.scales?.y?.title?.text||"Y-Axis"} ${"logarithmic"===U?"(Logarithmic scale)":"(Linear scale)"}`}}},plugins:{...i.plugins,legend:{...i.plugins?.legend,onClick:(e,t,i)=>((e,t)=>{const i=t.datasetIndex,o=e.data.datasets[i].label;o&&V(o)})(i.chart,t)}},elements:{line:{tension:.1,spanGaps:!0},point:{radius:0,hoverRadius:0}},animation:{duration:400,easing:"easeInOutQuart"}},re=()=>{y(o.createElement(_,null,pe(!0))),h("fullscreen")},ne=()=>{x()},le=e=>{G(e)},se=(e,t)=>{const i=e.datasets[0],o=e.labels.map(((e,i)=>t[i%t.length]));return{labels:e.labels,datasets:[{data:i.data,backgroundColor:o,borderColor:o,borderWidth:1}]}},ce=e=>{const{title:t,legend:i,tooltips:o,responsive:a,plugins:r,...n}=e;return{responsive:a??!0,maintainAspectRatio:!1,plugins:{...r,legend:{...i,display:!0,position:"bottom"},tooltip:{...o,callbacks:{label:e=>{const t=e.dataset,i=t.data[e.dataIndex],o=(i/t.data.reduce(((e,t)=>e+t),0)*100).toFixed(2);return`${e.label}: ${i} - ${o}% (of total) `}}}},animation:{animateScale:!0,animateRotate:!0},elements:{arc:{hoverBorderWidth:3,hoverOffset:20,hoverBorderColor:"white"}}}},de=e=>{if(!e||!e.datasets||!Array.isArray(e.datasets))return{labels:[],datasets:[]};const t=e.datasets.map((e=>{const t=e.data.map((e=>"number"!=typeof e||isNaN(e)?null:e));return{...e,data:t,stack:void 0,fill:!1,borderColor:e.borderColor||"rgba(75, 192, 192, 1)",backgroundColor:e.backgroundColor||"rgba(75, 192, 192, 0.2)",borderWidth:3,pointRadius:0,pointHoverRadius:0,tension:.1}}));return{labels:e.labels||[],datasets:t}},pe=e=>{const t={...ae,maintainAspectRatio:!1,plugins:{legend:{display:!1}}},p=(e,t,i)=>{if(!e?.datasets?.length||0===e.labels.length)return{columns:[],gridData:[]};if(t){const t=e.labels||[],o=e.datasets[0]||{},a=i.scales?.x?.title?.text||"Range",r=i.scales?.y?.title?.text||"Number of Entries";return{columns:"x"===i.indexAxis?[a,r]:[r,a],gridData:t.map(((e,t)=>[e,o.data[t]||"N/A"]))}}const o=e.datasets.filter((e=>W.find((t=>t.label===e.label))?.visible));return{columns:["Year",...o.map((e=>e.label))],gridData:e.labels.map(((e,t)=>{const i=[e];return o.forEach((e=>{i.push(e.data[t]||"N/A")})),i}))}},b=p(Z,l,i);if(0===b.columns.length||0===b.gridData.length)return o.createElement("p",null,"No data available for table.");const m=b.gridData.map((e=>{const t={};return b.columns.forEach(((i,o)=>{t[i]=e[o]})),t})),y={bar:o.createElement(r.yP,{ref:f,data:Z,options:e?t:ae,onClick:oe}),line:o.createElement(r.N1,{ref:f,data:de(Z),options:e?t:ae}),pie:o.createElement(r.Fq,{ref:f,data:se(Z,P),options:ce(e?t:ae)}),table:o.createElement(o.Fragment,null," ",o.createElement(O,{data:m,title:ae.plugins.title.text}))};return o.createElement(d.A,null,o.createElement(s.A,{md:10},o.createElement(S,null,y[B])),o.createElement(s.A,{md:2},o.createElement(d.A,null,o.createElement(k,{md:2},o.createElement(w,null,o.createElement(A,{onClick:e?ne:re},e?o.createElement(g.$qe,{size:15}):o.createElement(g.vqg,{size:15})),!e&&o.createElement(o.Fragment,null,o.createElement(A,{onClick:()=>h("settings")},o.createElement(u.Pcn,{size:15})),o.createElement(M,{chartType:B,handleChartTypeChange:le,isDistPlot:l}),o.createElement(A,{onClick:()=>h("information"),disabled:!1},o.createElement(u.ELu,{size:15})),o.createElement(A,{disabled:!1,selected:"table"===B,onClick:()=>le("table")},o.createElement(u.ist,{size:15})),o.createElement(A,{onClick:()=>{const e=p(Z,l,i),t=((e,t)=>[e.join(","),...t.map((e=>e.join(",")))].join("\n"))(e.columns,e.gridData),o=new Blob([t],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(o),r=document.createElement("a");r.href=a,r.setAttribute("download","data-table.csv"),document.body.appendChild(r),r.click(),document.body.removeChild(r)},disabled:!1},o.createElement(u.$TP,{size:15})),!l&&"line"===B&&o.createElement(A,{onClick:ee},"linear"===U?o.createElement(u.g0N,{size:15}):o.createElement(g.Ten,{size:15})),o.createElement(A,{onClick:X,disabled:!1},o.createElement(u.DIg,{size:15}))))),!e&&o.createElement(s.A,{md:10},o.createElement(z,null,o.createElement(T,null,"Data Options"),"table"!==B&&o.createElement(o.Fragment,null,l?"distribution-source-organism"===n&&o.createElement($,null,o.createElement(N,null,"Data Set"),o.createElement(c.A.Check,{type:"radio",id:"view-natural",label:"Natural",name:"source-organism-view-switch",value:"natural",checked:"natural"===j,onChange:()=>ie("natural")}),o.createElement(c.A.Check,{type:"radio",id:"view-genetically engineered",label:"Genetically Engineered",name:"source-organism-view-switch",value:"genetically engineered",checked:"genetically engineered"===j,onChange:()=>ie("genetically engineered")}),o.createElement(c.A.Check,{type:"radio",id:"view-synthetic",label:"Synthetic",name:"source-organism-view-switch",value:"synthetic",checked:"synthetic"===j,onChange:()=>ie("synthetic")})):o.createElement(o.Fragment,null,!a&&o.createElement(D,null,o.createElement(N,null,"Data Shown"),W.map((e=>o.createElement(C,{key:e.label},o.createElement(R,{type:"checkbox",id:e.label,checked:e.visible,onChange:()=>V(e.label)}),o.createElement(E,{htmlFor:e.label},e.label))))),o.createElement($,null,o.createElement(N,null,"Data Set"),o.createElement(c.A.Check,{type:"radio",id:"view-annual",label:"Annual",name:"view-switch",value:"Non-Cumulative",checked:"Non-Cumulative"===H,onChange:()=>te("Non-Cumulative")}),o.createElement(c.A.Check,{type:"radio",id:"view-cumulative",label:"Cumulative",name:"view-switch",value:"Cumulative",checked:"Cumulative"===H,onChange:()=>te("Cumulative")})))))))))};return o.createElement(p.A,null,pe(!1))};var Z=i(3076),Q=i(8533),U=i(176),L=i(8132),K=i(7231),J=i(7704),X=i(8154),V=i(2543),ee=i(6061),te=i(637),ie=i(8422);const oe={"overall-structures":{query:{firstDim:{name:"Release Date",aggregation_type:K.AggregationType.DateHistogram,attribute:L.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:K.Interval.Year,min_interval_population:1},returnType:K.ReturnType.Entry}},"overall-small-molecules":{query:{firstDim:{name:"Release Date",aggregation_type:K.AggregationType.DateHistogram,attribute:L.e.RcsbChemCompInfo.InitialReleaseDate.path,interval:K.Interval.Year,min_interval_population:1},returnType:K.ReturnType.MolDefinition}},"experimental-method":{query:{firstDim:{name:"Release Date",aggregation_type:K.AggregationType.DateHistogram,attribute:L.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:K.Interval.Year,min_interval_population:1},secondDim:{name:"Experimental Method",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbEntryInfo.ExperimentalMethod.path,min_interval_population:1},returnType:K.ReturnType.Entry}},"molecular-composition":{query:{firstDim:{name:"Release Date",aggregation_type:K.AggregationType.DateHistogram,attribute:L.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:K.Interval.Year,min_interval_population:0},secondDim:{name:"Molecular Type",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbEntryInfo.SelectedPolymerEntityTypes.path},returnType:K.ReturnType.Entry}},"assembly-symmetry":{query:{firstDim:{name:"Release Date",aggregation_type:K.AggregationType.DateHistogram,attribute:L.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:K.Interval.Year,min_interval_population:0},secondDim:{filter:{type:K.Type.Terminal,service:K.Service.Text,parameters:{attribute:L.e.RcsbStructSymmetry.Kind.path,operator:K.Operator.ExactMatch,value:L.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}},facets:[{name:"Symmetry Type",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbStructSymmetry.Type.path}]},returnType:K.ReturnType.Assembly}},"unique-protein-domains":{query:{firstDim:{name:"Release Date",aggregation_type:K.AggregationType.DateHistogram,attribute:L.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:K.Interval.Year,min_interval_population:0},secondDim:{filter:{type:K.Type.Terminal,service:K.Service.Text,parameters:{attribute:L.e.RcsbPolymerInstanceAnnotation.Type.path,operator:K.Operator.In,value:[L.e.RcsbPolymerInstanceAnnotation.Type.enum.SCOP,L.e.RcsbPolymerInstanceAnnotation.Type.enum.SCOP2,L.e.RcsbPolymerInstanceAnnotation.Type.enum.ECOD,L.e.RcsbPolymerInstanceAnnotation.Type.enum.CATH]}},facets:[{name:"Domain Classification",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbPolymerInstanceAnnotation.Type.path,min_interval_population:1,facets:[{name:"Unique Domains Count",aggregation_type:K.AggregationType.Cardinality,attribute:L.e.RcsbPolymerInstanceAnnotation.AnnotationId.path}]}]},returnType:K.ReturnType.Entry}},"unique-protein-sequences":{query:{firstDim:{name:"Release Date",aggregation_type:K.AggregationType.DateHistogram,attribute:L.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:K.Interval.Year,min_interval_population:0},secondDim:{filter:{type:K.Type.Terminal,service:K.Service.Text,parameters:{attribute:L.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:K.Operator.ExactMatch,value:L.e.RcsbPolymerEntityGroupMembership.AggregationMethod.enum.sequence_identity}},facets:[{name:"Similarity Cutoff",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbPolymerEntityGroupMembership.SimilarityCutoff.path,min_interval_population:1,facets:[{name:"Unique Protein Sequences",aggregation_type:K.AggregationType.Cardinality,attribute:L.e.RcsbPolymerEntityGroupMembership.GroupId.path}]}]},returnType:K.ReturnType.Entry}},"unique-uniprot-entries":{query:{firstDim:{name:"Release Date",aggregation_type:K.AggregationType.DateHistogram,attribute:L.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:K.Interval.Year,min_interval_population:0},secondDim:{filter:{type:K.Type.Terminal,service:K.Service.Text,parameters:{attribute:L.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:K.Operator.ExactMatch,value:L.e.RcsbPolymerEntityGroupMembership.AggregationMethod.enum.matching_uniprot_accession}},facets:[{name:"Unique UniProtKB Entries",aggregation_type:K.AggregationType.Cardinality,attribute:L.e.RcsbPolymerEntityGroupMembership.GroupId.path}]},returnType:K.ReturnType.Entry}},"distribution-resolution":{query:{firstDim:{name:"Resolution Combined",aggregation_type:K.AggregationType.Range,attribute:L.e.RcsbEntryInfo.ResolutionCombined.path,ranges:(0,ie.Y$)(1,.2,4.6)},returnType:K.ReturnType.Entry}},"distribution-r-free":{query:{firstDim:{name:"R-free",aggregation_type:K.AggregationType.Range,attribute:L.e.Refine.LsRFactorRFree.path,ranges:(0,ie.Y$)(.14,.01,.32)},returnType:K.ReturnType.Entry}},"distribution-molecular-weight-structure":{query:{firstDim:{name:"Molecular Weight",aggregation_type:K.AggregationType.Range,attribute:L.e.RcsbEntryInfo.MolecularWeight.path,ranges:(0,ie.Y$)(20,20,380)},returnType:K.ReturnType.Entry}},"distribution-molecular-weight-entity":{query:{firstDim:{name:"Molecular Weight",aggregation_type:K.AggregationType.Range,attribute:L.e.RcsbPolymerEntity.FormulaWeight.path,ranges:(0,ie.Y$)(5,5,75)},returnType:K.ReturnType.Entry}},"distribution-atom-count":{query:{firstDim:{name:"Atom Count",aggregation_type:K.AggregationType.Range,attribute:L.e.RcsbEntryInfo.DepositedAtomCount.path,ranges:(0,ie.Y$)(1e3,1e3,19e3)},returnType:K.ReturnType.Entry}},"distribution-residue-count":{query:{firstDim:{name:"Residue Count",aggregation_type:K.AggregationType.Range,attribute:L.e.RcsbEntryInfo.DepositedPolymerMonomerCount.path,ranges:(0,ie.Y$)(100,100,1900)},returnType:K.ReturnType.Entry}},"distribution-source-organism":{query:{firstDim:{name:"Source Type",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbEntitySourceOrganism.SourceType.path,min_interval_population:1,facets:[{name:"Source Organism",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbEntitySourceOrganism.NcbiScientificName.path,min_interval_population:1,max_num_intervals:20}]},returnType:K.ReturnType.PolymerEntity}},"distribution-taxonomy":{query:{firstDim:{name:"Taxonomy",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbEntitySourceOrganism.NcbiParentScientificName.path,min_interval_population:1,max_num_intervals:20},returnType:K.ReturnType.PolymerEntity}},"distribution-software":{query:{firstDim:{name:"Processing Software",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbEntryInfo.SoftwareProgramsCombined.path,min_interval_population:1,max_num_intervals:30},returnType:K.ReturnType.Entry}},"distribution-space-group":{query:{firstDim:{name:"Space Groups",aggregation_type:K.AggregationType.Terms,attribute:L.e.Symmetry.SpaceGroupNameHM.path,min_interval_population:1,max_num_intervals:20},returnType:K.ReturnType.Entry}},"distribution-journal":{query:{firstDim:{name:"Publication Journal",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbPrimaryCitation.RcsbJournalAbbrev.path,min_interval_population:1,max_num_intervals:25},returnType:K.ReturnType.Entry}},"distribution-structural-genomics-centers":{query:{firstDim:{name:"Structural Genomics Centers",aggregation_type:K.AggregationType.Terms,attribute:L.e.PdbxSgProject.FullNameOfCenter.path,min_interval_population:1,max_num_intervals:25},returnType:K.ReturnType.Entry}},"distribution-enzyme-classification":{query:{firstDim:{filter:{type:K.Type.Terminal,service:K.Service.Text,parameters:{attribute:L.e.RcsbPolymerEntity.RcsbEcLineage.Depth.path,operator:K.Operator.Equals,value:1}},facets:[{name:"Enzyme Classification",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbPolymerEntity.RcsbEcLineage.Name.path,min_interval_population:1,max_num_intervals:20}]},returnType:K.ReturnType.Entry}},"distribution-assembly-symmetry":{query:{firstDim:{filter:{type:K.Type.Terminal,service:K.Service.Text,parameters:{attribute:L.e.RcsbStructSymmetry.Kind.path,operator:K.Operator.ExactMatch,value:L.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}},facets:[{name:"Symmetry Type",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbStructSymmetry.Type.path,min_interval_population:1}]},returnType:K.ReturnType.Assembly}},"distribution-scop-classification":{query:{firstDim:{filter:{type:K.Type.Terminal,service:K.Service.Text,parameters:{attribute:L.e.RcsbPolymerInstanceAnnotation.Type.path,operator:K.Operator.ExactMatch,value:L.e.RcsbPolymerInstanceAnnotation.Type.enum.SCOP}},facets:[{filter:{type:K.Type.Terminal,service:K.Service.Text,parameters:{attribute:L.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Depth.path,operator:K.Operator.Equals,value:1}},facets:[{name:"SCOP Classification",aggregation_type:K.AggregationType.Terms,attribute:L.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Name.path,min_interval_population:1,max_num_intervals:20}]}]},returnType:K.ReturnType.Entry}}},ae=e=>{const t=te.Tb.getStatisticsChartObject(e),i=t?.ref_url,o=t?.stats_notes;return{ref_url:i,stats_notes:o}},re=(e,t,i)=>{const o=new Set,a=[],r=new Map;e.forEach((e=>{a.push(e.labelPath[0]),e.data.forEach((t=>{o.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(o),l=[];return n.forEach(((e,o)=>{const n=[];a.forEach((a=>{if(void 0!==r.get(a)?.get(e)){const l=(0,te.F3)(i,e,"Entry");n.push({label:a,population:r.get(a)?.get(e)??0,objectConfig:{objectId:[a,e,r.get(a)?.get(e)??0],color:t[o%t.length],url:l}})}})),l.push(n)})),l},ne=e=>{if("name"in e)return e.name;if(!e.facets||1!==e.facets.length)throw new Error("Multiple facets are not allowed");return ne(e.facets[0])},le=(e,t)=>{const{settings:i}=(0,m.t)(),{setProperty:o}=(0,ee.R)(),a=i.colorScheme.join("");return(0,U.I)({queryKey:[e,t,a],queryFn:()=>(async(e,t,i,o)=>{const a=oe[e];if(!a)throw new Error(`Unknown chart key: ${e}`);const{query:r}=a,{ref_url:n}=ae(e),{stats_notes:l}=ae(e);return async function(e,t,i){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=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;i.searchQuery??(0,X.XY)({attribute:L.e.RcsbEntryInfo.StructureDeterminationMethodology.path,value:L.e.RcsbEntryInfo.StructureDeterminationMethodology.enum.experimental,operator:L.e.RcsbEntryInfo.StructureDeterminationMethodology.operator.ExactMatch,service:K.Service.Text});const s=(0,V.cloneDeep)(i.firstDim);i.secondDim&&(0,X.vw)(i.secondDim,s);const c={return_type:i.returnType,request_options:{paginate:{rows:0},facets:[s]}};n("searchRequest",c),n("stats_notes",r);const d=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}))})(c,l);if(!d)return[[]];const p=(0,J.z)(d);let u=p[0].data;const g={"distribution-resolution":ie.$Z,"distribution-r-free":ie.$Z,"distribution-molecular-weight-structure":ie.bl,"distribution-molecular-weight-entity":ie.bl,"distribution-atom-count":ie.pF,"distribution-residue-count":ie.pF},b=g[e]?g[e](u):u;if(g[e]&&(u=b),"distribution-source-organism"===e)return[p.filter((e=>"Source Organism"===e.name)).flatMap((e=>e.data.map((t=>({...t,labelPath:e.labelPath,objectConfig:{...t.objectConfig||{}}}))))).map(((e,o)=>{const r=(0,te.F3)(a,e.label,i.returnType);return{...e,objectConfig:{...e.objectConfig,color:t[o%t.length],label:e.labelPath.join(", "),url:r}}}))];if(o&&u.length>0){let e=0;return[u.map((e=>{const o=(0,te.F3)(a,e.label,i.returnType);return{...e,objectConfig:{...e.objectConfig,color:t[0%t.length],label:"Annual",url:o}}})),u.map((o=>{e+=o.population;const r=(0,te.F3)(a,o.label,i.returnType);return{...o,population:e,objectConfig:{objectId:[o.label,e],color:t[1%t.length],label:"Cumulative",url:r}}}))]}return i.secondDim?re(p.filter((e=>e.name===ne(i.secondDim))),t,a):[u.map((e=>{const o=(0,te.F3)(a,e.label,i.returnType);return{...e,objectConfig:{objectId:[e.label,e.population],color:t[0%t.length],url:o}}}))]}(e,t,r,!1,n,l,i,o)})(e,i.colorScheme,o,i.config),enabled:!!e})},se={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: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}}},ce={"overall-structures":{...se,plugins:{...se.plugins,title:{...se.plugins?.title,text:"Overall Growth of Released Structures"},legend:{display:!1},tooltip:{...se.plugins?.tooltip,callbacks:{label:function(e){const t=e.datasetIndex;return 0===t?`Total Number of Structures: ${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 Released Structures",font:{size:14,weight:"normal"},color:"#333"}}}},"overall-small-molecules":{...se,plugins:{...se.plugins,title:{...se.plugins?.title,text:"Growth of Released Small Molecules"},legend:{display:!1},tooltip:{...se.plugins?.tooltip,callbacks:{label:function(e){const t=e.datasetIndex;return 0===t?`Total Number of Small Molecules: ${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 Small Molecules",font:{size:14,weight:"normal"},color:"#333"}}}},"experimental-method":{...se,plugins:{...se.plugins,title:{...se.plugins?.title,text:"Growth by Experimental Method"},tooltip:{...se.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:5e4,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"molecular-composition":{...se,plugins:{...se.plugins,title:{...se.plugins?.title,text:"Growth by Molecular Composition"},tooltip:{...se.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:5e4,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Entries",font:{size:14,weight:"normal"},color:"#333"}}}},"assembly-symmetry":{...se,plugins:{...se.plugins,title:{...se.plugins?.title,text:"Growth by Assembly Symmetry"},tooltip:{...se.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:{...se.scales,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:{...se.scales?.y?.title,text:"Number of Assemblies"}}}},"unique-protein-domains":{...se,plugins:{...se.plugins,title:{...se.plugins?.title,text:"Growth by Unique Protein Domains"},tooltip:{...se.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:5e4,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Unique Protein Domains",font:{size:14,weight:"normal"},color:"#333"}}}},"unique-protein-sequences":{...se,plugins:{...se.plugins,title:{...se.plugins?.title,text:"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}},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:1e5,font:{size:12},color:"#333",callback:e=>`${e}`},title:{display:!0,text:"Number of Unique Protein Sequences",font:{size:14,weight:"normal"},color:"#333"}}}},"unique-uniprot-entries":{...se,plugins:{...se.plugins,title:{...se.plugins?.title,text:"Growth by UniProtKB Entries with Known 3D Structure"},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}},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:"UniProtKB Entries with Known 3D Structure",font:{size:14,weight:"normal"},color:"#333"}}}},"distribution-resolution":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"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 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 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-molecular-weight-entity":{responsive:!0,maintainAspectRatio:!1,indexAxis:"x",plugins:{title:{display:!0,text:"PDB Data Distribution by Molecular Weight (Entity)",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 Entities",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 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 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":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"PDB Data Distribution by 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 Entities",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:"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}}},"distribution-taxonomy":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"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 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 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 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 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}}},"distribution-enzyme-classification":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"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}}},"distribution-assembly-symmetry":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"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}}},"distribution-scop-classification":{responsive:!0,maintainAspectRatio:!1,indexAxis:"y",plugins:{title:{display:!0,text:"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}}}},de=e=>{let{setFullscreenContent:t}=e;const i=(0,a.g)().plotname||"",r=i||"",n="overall-structures"===i||"overall-small-molecules"===i,l=["distribution-space-group","distribution-resolution","distribution-r-free","distribution-molecular-weight-structure","distribution-molecular-weight-entity","distribution-atom-count","distribution-residue-count","distribution-source-organism","distribution-software","distribution-journal","distribution-structural-genomics-centers","distribution-assembly-symmetry","distribution-taxonomy","distribution-enzyme-classification","distribution-scop-classification"].includes(i),{data:s,isLoading:c,error:d}=le(r),p=(0,ee.R)(),{settings:g}=(0,m.t)();if(c)return o.createElement(h,null,o.createElement(Z.A,null));if(d)return o.createElement(h,null,o.createElement(Q.A,{error:d}));const b=s&&s.length>0?{labels:s[0].map((e=>e.label)),datasets:s.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:s[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&&ce[i];return o.createElement(h,{key:i},b&&y?o.createElement(o.Fragment,null,o.createElement(x,null,o.createElement(v,{onClick:()=>{const e=(0,ie.h5)(p,g);e&&window.open(e,"_blank")}},o.createElement(u.Pcn,null)," Search API")),o.createElement(G,{data:b,options:y,isOverallPlot:n,isDistPlot:l,plotName:i,setFullscreenContent:t})):o.createElement(h,null,o.createElement(Q.A,{error:new Error("No data available")})))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[637],{637:(e,t,r)=>{r.d(t,{F3:()=>u,Tb:()=>c,_1:()=>l});var a=r(8422),i=r(8132),n=r(7231),o=r(3444);const s=[{key:"overall-structures",title:"Overall",description:"Overall Growth of Released Structures",stats_notes:"The number of PDB structures released over time. The x-axis represents the years, tracking progress from the first release to the present. Cumulative view shows the total number of released structures. Annual view shows the number of released structures per year",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1},returnType:n.ReturnType.Entry}},{key:"overall-small-molecules",title:"by Small Molecules Only",description:"Small Molecule-only Structures Released Per Year",stats_notes:'The number of chemical components (small molecules and peptide-like molecules) released over time. Small molecules (monomers, ligands) are described in <a href="https://www.wwpdb.org/data/ccd" target="_blank">Chemical Component Dictionary (CCD)</a> and peptide-like molecules are described in <a href="https://www.wwpdb.org/data/bird" target="_blank">Biologically Interesting molecule Reference Dictionary (BIRD)</a>. The x-axis represents the years, tracking progress from the first release to the present. Cumulative view shows the total number of released chemical components. Annual view shows the number of released chemical components per year',ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.selected_polymer_entity_types",operator:"exact_match",value:"Small Molecule (only)"}}]},facets:[{name:"rcsb_accession_info.initial_release_date",aggregation_type:"date_histogram",attribute:"rcsb_accession_info.initial_release_date",interval:"year"}],query:{firstDim:{name:`FACET/${i.e.RcsbChemCompInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbChemCompInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1},returnType:n.ReturnType.MolDefinition}},{key:"experimental-method",title:"Growth",description:"Overall Growth By Experimental Method",stats_notes:'The number of PDB structures released over time, categorized by the experimental methods used for their determination. Experimental methods such as <a href="https://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/methods-for-determining-structure" target="_blank">X-ray crystallography, NMR spectroscopy, and 3D electron microscopy</a> are used to determine the location of each atom relative to each other in the molecule',ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.experimental_method",operator:"exact_match"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:"date_histogram",attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1,facets:[{name:`FACET/${i.e.RcsbEntryInfo.ExperimentalMethod.path}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntryInfo.ExperimentalMethod.path,min_interval_population:1}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:1},secondDim:{name:`FACET/${i.e.RcsbEntryInfo.ExperimentalMethod.path}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntryInfo.ExperimentalMethod.path,min_interval_population:1},returnType:n.ReturnType.Entry}},{key:"molecular-composition",title:"by Molecular Composition",description:"PDB Data Growth by Molecular Composition",stats_notes:"The number of PDB structures released over time, categorized by the type of biomolecules, such as proteins, nucleic acids (RNA, DNA), oligosaccharides (sugars) and their complexes",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.selected_polymer_entity_types",operator:"terms"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0,facets:[{name:`FACET/${i.e.Exptl.Method.path}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntryInfo.SelectedPolymerEntityTypes.path}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${i.e.Exptl.Method.path}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntryInfo.SelectedPolymerEntityTypes.path},returnType:n.ReturnType.Entry}},{key:"assembly-symmetry",title:"by Assembly Symmetry",description:"PDB Data Growth by Assembly Symmetry",stats_notes:"The number of biological assemblies released over time, categorized by their global symmetry types. Symmetry type refers to point group or helical symmetry of identical protein subunits. Asymmetric assembly is a monomer or a protein complex that is not symmetrical",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_struct_symmetry.type",operator:"terms"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0,facets:[{name:`FACET/${i.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbStructSymmetry.Type.path}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0},secondDim:{name:`FACET/${i.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}`,aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbStructSymmetry.Type.path},returnType:n.ReturnType.Assembly}},{key:"unique-protein-domains",title:"by Unique Protein Domains",description:"PDB Data Growth by Number of Unique Domains",stats_notes:'The number of unique protein domains added by the structure classificatin resources (<a href="https://scop.berkeley.edu" target="_blank">SCOP/SCOP-e</a>, <a href="https://www.ebi.ac.uk/pdbe/scop" target="_blank">SCOP2</a>, <a href="https://www.cathdb.info" target="_blank">CATH</a>, <a href="http://prodata.swmed.edu/ecod" target="_blank">ECOD</a>). Please note that some of the resources (e.g. CATH) may be lagging behind the PDB, so data for the last year might be undercounting the number of domains in the PDB',ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_entity_group_membership.aggregation_method",operator:"exact_match",value:"matching_uniprot_accession"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0,facets:[{name:"Unique UniProtKB Entries",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_polymer_entity_group_membership.group_id"}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0},secondDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:n.Operator.ExactMatch,value:i.e.RcsbPolymerEntityGroupMembership.AggregationMethod.enum.sequence_identity}},facets:[{name:"Similarity Cutoff",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbPolymerEntityGroupMembership.SimilarityCutoff.path,min_interval_population:1,facets:[{name:"Unique Protein Sequences",aggregation_type:n.AggregationType.Cardinality,attribute:i.e.RcsbPolymerEntityGroupMembership.GroupId.path}]}]},returnType:n.ReturnType.Entry}},{key:"unique-protein-sequences",title:"by Unique Protein Sequences",description:"PDB Data Growth by Unique Protein Sequences",stats_notes:"The diversity of protein sequences represented in PDB structures, categorized by distinct protein sequence clusters. Sequence clusters are defined using different sequence identity (SI) thresholds (30%, 50%, 70%, 90%, 95%, 100%). The value of 95% SI identifies proteins with few differences, and thus can be considered to be the same sequence for practical purposes. Lower SI values identify unique protein families (70% SI) or unique protein folds (30% SI). <br /> Note: Numbers used for this visualization provide the trend and may have a discrepancy compared to the actual search results",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_entity_group_membership.aggregation_method",operator:"exact_match",value:"matching_uniprot_accession"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0,facets:[{name:"Unique UniProtKB Entries",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_polymer_entity_group_membership.group_id"}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0},secondDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:n.Operator.ExactMatch,value:n.AggregationMethod.MatchingUniprotAccession}},facets:[{name:"Unique UniProtKB Entries",aggregation_type:n.AggregationType.Cardinality,attribute:i.e.RcsbPolymerEntityGroupMembership.GroupId.path}]},returnType:n.ReturnType.Entry}},{key:"unique-uniprot-entries",title:"by UniProtKB Entries with Known 3D Structure",description:"PDB Data Growth by UniProtKB Entries with Known 3D Structure",stats_notes:'The number of unique <a href="https://www.uniprot.org/" target="_blank">UniProtKB</a> entries in PDB structures released over time. <br /> Note: Numbers used for this visualization provide the trend and may have a discrepancy compared to the actual search results',ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_accession_info.initial_release_date",operator:"range"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_polymer_entity_group_membership.aggregation_method",operator:"exact_match",value:"matching_uniprot_accession"}}]},facets:[{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0,facets:[{name:"Unique UniProtKB Entries",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_polymer_entity_group_membership.group_id"}]}],query:{firstDim:{name:`FACET/${i.e.RcsbAccessionInfo.InitialReleaseDate.path}`,aggregation_type:n.AggregationType.DateHistogram,attribute:i.e.RcsbAccessionInfo.InitialReleaseDate.path,interval:n.Interval.Year,min_interval_population:0},secondDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerEntityGroupMembership.AggregationMethod.path,operator:n.Operator.ExactMatch,value:n.AggregationMethod.MatchingUniprotAccession}},facets:[{name:"Unique UniProtKB Entries",aggregation_type:n.AggregationType.Cardinality,attribute:i.e.RcsbPolymerEntityGroupMembership.GroupId.path}]},returnType:n.ReturnType.Entry}},{key:"distribution-resolution",title:"by Resolution",description:"PDB Data Distribution by Resolution",header_label:"Resolution (Å)",stats_notes:'Distribution by structure <a href="https://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/crystallographic-data" target="_blank">resolution</a>. Data shown include structures solved by X-ray crystallography or electron microscopy',ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.resolution_combined",operator:"range"}}]},facets:[],query:{firstDim:{name:"Resolution Combined",aggregation_type:n.AggregationType.Range,attribute:i.e.RcsbEntryInfo.ResolutionCombined.path,ranges:(0,a.Y$)(1,.2,4.6)},returnType:n.ReturnType.Entry}},{key:"distribution-r-free",title:"by R-free",description:"PDB Data Distribution by R-free",header_label:"R-free (%)",stats_notes:'Distribution of PDB structures by <a href="https://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/crystallographic-data" target="_blank">R-free</a>. Data shown include structures solved by X-ray crystallography or electron microscopy',ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"refine.ls_R_factor_R_free",operator:"range"}}]},facets:[],query:{firstDim:{name:"R-free",aggregation_type:n.AggregationType.Range,attribute:i.e.Refine.LsRFactorRFree.path,ranges:(0,a.Y$)(.14,.01,.32)},returnType:n.ReturnType.Entry}},{key:"distribution-molecular-weight-structure",title:"by Molecular Weight (Structure)",description:"PDB Data Distribution by Molecular Weight (Structure)",header_label:"Molecular Weight (Daltons)",stats_notes:'All macromolecules, small molecules, and ions are included, except for water molecules. Molecular weight is calculated for all atoms, including those not observed in the experiment. Molecular weight of all non-water atoms in the <a href="https://pdb101.rcsb.org/learn/guide-to-understanding-pdb-data/biological-assemblies" target="_blank">asymmetric unit</a>',ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.molecular_weight",operator:"range"}}]},facets:[],query:{firstDim:{name:"Molecular Weight",aggregation_type:n.AggregationType.Range,attribute:i.e.RcsbEntryInfo.MolecularWeight.path,ranges:(0,a.Y$)(20,20,380)},returnType:n.ReturnType.Entry}},{key:"distribution-molecular-weight-entity",title:"by Molecular Weight (Entity)",description:"PDB Data Distribution by Molecular Weight (Entity)",header_label:"Molecular Weight (Daltons)",stats_notes:"Molecular weight is calculated for each chemically distinct polymeric (e.g. protein, nucleic acid) sequence of a PDB structure",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.molecular_weight",operator:"range"}}]},facets:[],query:{firstDim:{name:"Molecular Weight",aggregation_type:n.AggregationType.Range,attribute:i.e.RcsbEntryInfo.MolecularWeight.path,ranges:(0,a.Y$)(20,20,380)},returnType:n.ReturnType.Entry}},{key:"distribution-atom-count",title:"by Atom Count",description:"PDB Data Distribution by Atom Count",header_label:"Atom Count Range",stats_notes:"Distribution of released structures by the number of observed atoms excluding atoms in water molecules",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.deposited_atom_count",operator:"range"}}]},facets:[],query:{firstDim:{name:"Atom Count",aggregation_type:n.AggregationType.Range,attribute:i.e.RcsbEntryInfo.DepositedAtomCount.path,ranges:(0,a.Y$)(1e3,1e3,19e3)},returnType:n.ReturnType.Entry}},{key:"distribution-residue-count",title:"by Residue Count",description:"PDB Data Distribution by Residue Count",header_label:"Residue Count Range",stats_notes:"Distribution of released structures by the number of residues in macromolecules. All residues specified in macromolecular chains (i.e. full sequence) are counted even if not all of them are observed in the structure",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entry_info.deposited_polymer_monomer_count",operator:"range"}}]},facets:[],query:{firstDim:{name:"Residue Count",aggregation_type:n.AggregationType.Range,attribute:i.e.RcsbEntryInfo.DepositedPolymerMonomerCount.path,ranges:(0,a.Y$)(100,100,1900)},returnType:n.ReturnType.Entry}},{key:"distribution-source-organism",title:"by Source Organism",description:"PDB Data Distribution by Source Organism",header_label:"Source Organism",stats_notes:"Distribution of released structures based on the organisms from which the experimental samples were derived. The x-axis represents the different source organisms, such as <i>Escherichia coli</i>, <i>Homo sapiens</i>, <i>Saccharomyces cerevisiae</i>, and others, while the y-axis shows the number of structures with sequences originating from each organism",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{name:"Source Type",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntitySourceOrganism.SourceType.path,min_interval_population:1,facets:[{name:"Source Organism",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntitySourceOrganism.NcbiScientificName.path,min_interval_population:1,max_num_intervals:20}]},returnType:n.ReturnType.Entry}},{key:"distribution-taxonomy",title:"by Taxonomy",description:"PDB Data Distribution by Taxonomy",header_label:"Taxonomy",stats_notes:'Distribution of released structures based on a parent scientific name in the <a href="https://www.ncbi.nlm.nih.gov/taxonomy" target="_blank">NCBI taxonomy</a> hierarchy of the source organism. For cellular organism this corresponds to a superkingdom (e.g., Archaea, Bacteria, Eukaryota). For viruses this corresponds to a clade (e.g. Adnaviria, Bicaudaviridae, Clavaviridae). For other and unclassified entries this corresponds to the first level of any taxonomic rank below the root level',ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{name:"Taxonomy",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbEntitySourceOrganism.NcbiParentScientificName.path,min_interval_population:1,max_num_intervals:20},returnType:n.ReturnType.PolymerEntity}},{key:"distribution-enzyme-classification",title:"by Enzyme Classification",description:"PDB Data Distribution by Enzyme Classification",header_label:"Enzyme Classification",stats_notes:"Distribution of released PDB structures based on the presence of enzimatic domains. Enzyme Classification (EC) is based on the recommendations of the Nomenclature Committee of the International Union of Biochemistry and Molecular Biology (IUBMB)",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerEntity.RcsbEcLineage.Depth.path,operator:n.Operator.Equals,value:1}},facets:[{name:"Enzyme Classification",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbPolymerEntity.RcsbEcLineage.Name.path,min_interval_population:1,max_num_intervals:20}]},returnType:n.ReturnType.PolymerEntity}},{key:"distribution-assembly-symmetry",title:"by Assembly Symmetry",description:"PDB Data Distribution by Assembly Symmetry",header_label:"Assembly Symmetry",stats_notes:"Distribution of released biological assemblies based on their global symmetry types. Symmetry type refers to point group or helical symmetry of identical protein subunits. Asymmetric assembly is a monomer or a protein complex that is not symmetrical",ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbStructSymmetry.Kind.path,operator:n.Operator.ExactMatch,value:i.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"]}},facets:[{name:i.e.RcsbStructSymmetry.Kind.enum["Global Symmetry"],aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbStructSymmetry.Type.path,min_interval_population:1}]},returnType:n.ReturnType.Assembly}},{key:"distribution-scop-classification",title:"by SCOP Classification",description:"PDB Data Distribution by SCOP Classification",header_label:"SCOP Classification",stats_notes:'Distribution of released PDB structures based on the presence of protein domain defined by the <a href="https://scop.berkeley.edu/" target="_blank">SCOP-e</a>. The SCOP-e database aims to provide a detailed and comprehensive description of the structural and evolutionary relationships between all proteins whose structure is known. As such, it provides a broad survey of protein folds, detailed information about the close relatives of any particular protein, and a framework for future research and classification',ref_url:{type:"group",logical_operator:"and",nodes:[{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.ncbi_scientific_name",operator:"exact_match"}},{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}}]},facets:[{name:"rcsb_entity_source_organism.ncbi_scientific_name",aggregation_type:n.AggregationType.Terms,attribute:"rcsb_entity_source_organism.ncbi_scientific_name",filter:{type:"terminal",service:"text",parameters:{attribute:"rcsb_entity_source_organism.source_type",operator:"exact_match",value:"natural"}},min_interval_population:1}],query:{firstDim:{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerInstanceAnnotation.Type.path,operator:n.Operator.ExactMatch,value:"SCOP"}},facets:[{filter:{type:n.Type.Terminal,service:n.Service.Text,parameters:{attribute:i.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Depth.path,operator:n.Operator.Equals,value:1}},facets:[{name:"SCOP Classification",aggregation_type:n.AggregationType.Terms,attribute:i.e.RcsbPolymerInstanceAnnotation.AnnotationLineage.Name.path,min_interval_population:1,max_num_intervals:20}]}]},returnType:n.ReturnType.PolymerEntity}}],c={getStatisticsChartObject:e=>(0,a.lq)("key",e,s)?.[0]},l=[{text:"Growth by Overall Structures",link:o.A.PDB_DATA_GROWTH("overall-structures")},{text:"Growth by Overall Small Molecules",link:o.A.PDB_DATA_GROWTH("overall-small-molecules")},{text:"Growth by Experimental Method",link:o.A.PDB_DATA_GROWTH("experimental-method")},{text:"Growth by Molecular Composition",link:o.A.PDB_DATA_GROWTH("molecular-composition")},{text:"Growth by Assembly Symmetry",link:o.A.PDB_DATA_GROWTH("assembly-symmetry")},{text:"Growth by Unique Protein Domains",link:o.A.PDB_DATA_GROWTH("unique-protein-domains")},{text:"Growth by Unique Protein Sequences",link:o.A.PDB_DATA_GROWTH("unique-protein-sequences")},{text:"Growth by UniProtKB Entries",link:o.A.PDB_DATA_GROWTH("unique-uniprot-entries")},{text:"Distribution by Resolution",link:o.A.PDB_DATA_DISTRIBUTION("distribution-resolution")},{text:"Distribution by R-free",link:o.A.PDB_DATA_DISTRIBUTION("distribution-r-free")},{text:"Distribution by Molecular Weight (Structure)",link:o.A.PDB_DATA_DISTRIBUTION("distribution-molecular-weight-structure")},{text:"Distribution by Molecular Weight (Entity)",link:o.A.PDB_DATA_DISTRIBUTION("distribution-molecular-weight-entity")},{text:"Distribution by Atom Count",link:o.A.PDB_DATA_DISTRIBUTION("distribution-atom-count")},{text:"Distribution by Residue Count",link:o.A.PDB_DATA_DISTRIBUTION("distribution-residue-count")},{text:"Distribution by Source Organism",link:o.A.PDB_DATA_DISTRIBUTION("distribution-source-organism")},{text:"Distribution by Taxonomy",link:o.A.PDB_DATA_DISTRIBUTION("distribution-taxonomy")},{text:"Distribution by Processing Software",link:o.A.PDB_DATA_DISTRIBUTION("distribution-software")},{text:"Distribution by Space Groups",link:o.A.PDB_DATA_DISTRIBUTION("distribution-space-group")},{text:"Distribution by Publication Journal",link:o.A.PDB_DATA_DISTRIBUTION("distribution-journal")},{text:"Distribution by Structural Genomics Centers",link:o.A.PDB_DATA_DISTRIBUTION("distribution-structural-genomics-centers")},{text:"Distribution by Enzyme Classification",link:o.A.PDB_DATA_DISTRIBUTION("distribution-enzyme-classification")},{text:"Distribution by Assembly Symmetry",link:o.A.PDB_DATA_DISTRIBUTION("distribution-assembly-symmetry")},{text:"Distribution by SCOP Classification",link:o.A.PDB_DATA_DISTRIBUTION("distribution-scop-classification")}];function u(e,t,r){if(!e)return"";const a={from:`${t}-01-01T00:00:00Z`,to:`${t}-12-31T23:59:59Z`,include_lower:!0,include_upper:!0};if(e.parameters)e.parameters.value=a;else{if(!e.nodes||!e.nodes[0]?.parameters)throw new Error("Invalid object structure for query");e.nodes[0].parameters.value=a}const i={query:e,request_info:{src:"ui",query_id:"growth_stats"},return_type:r},n=JSON.stringify(i);return`/search?request=${encodeURIComponent(n)}`}},8422:(e,t,r)=>{r.d(t,{$Z:()=>l,Y$:()=>p,bl:()=>c,h5:()=>s,lq:()=>o,pF:()=>u});var a=r(3503),i=r.n(a);const n=e=>{const{query:t,return_type:r}=e;return i()(JSON.stringify(t)+r)},o=(e,t,r)=>{let a={request_info:{src:"ui"},return_type:"entry",query:{type:"terminal",node_id:0,service:"text"},request_options:{paginate:{start:0,rows:0},results_content_type:["experimental"]}};return r.filter((i=>"summary"===i[e]&&i[e]===t?(i.request_options&&(a.request_options=i.request_options),a.request_info.query_id=n(a),delete a.query,i.requestQuery=a,r):"distribution-molecular-weight-entity"===i[e]&&i[e]===t?(i.parameters?a.query.parameters=i.parameters:delete a.query,i.facets&&(a.request_options.facets=i.facets,a.return_type="polymer_entity"),a.request_info.query_id=n(a),i.requestQuery=a,r):"distribution-chem-comp-molecular-weight"===i[e]&&i[e]===t||"growth-released-chem-comp"===i[e]&&i[e]===t?(i.parameters?a.query.parameters=i.parameters:delete a.query,i.facets&&(a.request_options.facets=i.facets,a.return_type="mol_definition"),a.request_info.query_id=n(a),i.requestQuery=a,r):i[e]===t?(i.parameters?a.query.parameters=i.parameters:delete a.query,i.facets&&(a.request_options.facets=i.facets),a.request_info.query_id=n(a),i.requestQuery=a,r):void 0))},s=(e,t)=>{const r=`${t.config.searchApiUrl}/query-editor.html?json=`;return e?.searchRequest?`${r}${encodeURIComponent(JSON.stringify(e.searchRequest))}`:r},c=e=>e.map(((t,r)=>{const a=String(t.label),[i,n]=a.split("-");let o="";return o=0===r&&n?`< ${n.replace(".0","")}k`:r===e.length-1&&i?`>= ${i.replace(".0","")}k`:`${i.replace(".0","")+"k"}-${n?n.replace(".0","")+"k":""}`,{...t,label:o}})),l=e=>e.map(((t,r)=>{const a=String(t.label),[i,n]=a.split("-");let o="";return o=0===r&&n?`< ${n.replace(".0","")}`:r===e.length-1&&i?`>= ${i.replace(".0","")}`:`${i}-${n}`,{...t,label:o}})),u=e=>e.map(((t,r)=>{const a=String(t.label),[i,n]=a.split("-");let o="";return o=0===r&&n?`< ${n.replace(".0","")}`:r===e.length-1&&i?`>= ${i.replace(".0","")}`:`${i.replace(".0","")}-${n?n.replace(".0",""):""}`,{...t,label:o}})),p=(e,t,r)=>{const a=[];a.push({to:parseFloat(e.toFixed(2))});let i=e;for(;i<r;){const e=i+t;a.push({from:parseFloat(i.toFixed(2)),to:parseFloat(e.toFixed(2))}),i=e}return a.push({from:parseFloat(r.toFixed(2))}),a}}}]);
|