mc-react-library 0.6.5 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import "./main.css";
2
- import Wt, { useState as Z, useRef as bt, useEffect as tt } from "react";
3
- var Pt = { exports: {} }, X = {};
2
+ import mn, { useState as E, useRef as Mt, useEffect as nt, useMemo as Yn } from "react";
3
+ import { fromOptimade as Gn, fromStructureData as Kn, fromJSON as Ot, toJSON as gn, parseStructure as sn } from "matsci-parse";
4
+ var Zt = { exports: {} }, _t = {};
4
5
  /**
5
6
  * @license React
6
7
  * react-jsx-runtime.production.min.js
@@ -10,21 +11,21 @@ var Pt = { exports: {} }, X = {};
10
11
  * This source code is licensed under the MIT license found in the
11
12
  * LICENSE file in the root directory of this source tree.
12
13
  */
13
- var Kt;
14
- function Tn() {
15
- if (Kt) return X;
16
- Kt = 1;
17
- var n = Wt, r = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, o = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function g(c, d, l) {
19
- var f, p = {}, h = null, v = null;
20
- l !== void 0 && (h = "" + l), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (v = d.ref);
21
- for (f in d) a.call(d, f) && !_.hasOwnProperty(f) && (p[f] = d[f]);
22
- if (c && c.defaultProps) for (f in d = c.defaultProps, d) p[f] === void 0 && (p[f] = d[f]);
23
- return { $$typeof: r, type: c, key: h, ref: v, props: p, _owner: o.current };
14
+ var an;
15
+ function Qn() {
16
+ if (an) return _t;
17
+ an = 1;
18
+ var t = mn, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function m(a, g, l) {
20
+ var p, d = {}, f = null, b = null;
21
+ l !== void 0 && (f = "" + l), g.key !== void 0 && (f = "" + g.key), g.ref !== void 0 && (b = g.ref);
22
+ for (p in g) s.call(g, p) && !_.hasOwnProperty(p) && (d[p] = g[p]);
23
+ if (a && a.defaultProps) for (p in g = a.defaultProps, g) d[p] === void 0 && (d[p] = g[p]);
24
+ return { $$typeof: r, type: a, key: f, ref: b, props: d, _owner: i.current };
24
25
  }
25
- return X.Fragment = s, X.jsx = g, X.jsxs = g, X;
26
+ return _t.Fragment = o, _t.jsx = m, _t.jsxs = m, _t;
26
27
  }
27
- var q = {};
28
+ var mt = {};
28
29
  /**
29
30
  * @license React
30
31
  * react-jsx-runtime.development.js
@@ -34,91 +35,91 @@ var q = {};
34
35
  * This source code is licensed under the MIT license found in the
35
36
  * LICENSE file in the root directory of this source tree.
36
37
  */
37
- var Qt;
38
- function Zn() {
39
- return Qt || (Qt = 1, process.env.NODE_ENV !== "production" && function() {
40
- var n = Wt, r = Symbol.for("react.element"), s = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), x = Symbol.iterator, B = "@@iterator";
41
- function A(t) {
42
- if (t === null || typeof t != "object")
38
+ var cn;
39
+ function Wn() {
40
+ return cn || (cn = 1, process.env.NODE_ENV !== "production" && function() {
41
+ var t = mn, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), a = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), x = Symbol.iterator, S = "@@iterator";
42
+ function P(n) {
43
+ if (n === null || typeof n != "object")
43
44
  return null;
44
- var i = x && t[x] || t[B];
45
- return typeof i == "function" ? i : null;
45
+ var c = x && n[x] || n[S];
46
+ return typeof c == "function" ? c : null;
46
47
  }
47
- var w = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
- function j(t) {
48
+ var j = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
+ function I(n) {
49
50
  {
50
- for (var i = arguments.length, m = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
51
- m[u - 1] = arguments[u];
52
- T("error", t, m);
51
+ for (var c = arguments.length, u = new Array(c > 1 ? c - 1 : 0), v = 1; v < c; v++)
52
+ u[v - 1] = arguments[v];
53
+ O("error", n, u);
53
54
  }
54
55
  }
55
- function T(t, i, m) {
56
+ function O(n, c, u) {
56
57
  {
57
- var u = w.ReactDebugCurrentFrame, y = u.getStackAddendum();
58
- y !== "" && (i += "%s", m = m.concat([y]));
59
- var k = m.map(function(b) {
60
- return String(b);
58
+ var v = j.ReactDebugCurrentFrame, k = v.getStackAddendum();
59
+ k !== "" && (c += "%s", u = u.concat([k]));
60
+ var C = u.map(function(A) {
61
+ return String(A);
61
62
  });
62
- k.unshift("Warning: " + i), Function.prototype.apply.call(console[t], console, k);
63
+ C.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, C);
63
64
  }
64
65
  }
65
- var O = !1, en = !1, rn = !1, on = !1, sn = !1, At;
66
- At = Symbol.for("react.module.reference");
67
- function an(t) {
68
- return !!(typeof t == "string" || typeof t == "function" || t === a || t === _ || sn || t === o || t === l || t === f || on || t === v || O || en || rn || typeof t == "object" && t !== null && (t.$$typeof === h || t.$$typeof === p || t.$$typeof === g || t.$$typeof === c || t.$$typeof === d || // This needs to include all possible module reference object
66
+ var Z = !1, pt = !1, J = !1, ht = !1, it = !1, st;
67
+ st = Symbol.for("react.module.reference");
68
+ function ft(n) {
69
+ return !!(typeof n == "string" || typeof n == "function" || n === s || n === _ || it || n === i || n === l || n === p || ht || n === b || Z || pt || J || typeof n == "object" && n !== null && (n.$$typeof === f || n.$$typeof === d || n.$$typeof === m || n.$$typeof === a || n.$$typeof === g || // This needs to include all possible module reference object
69
70
  // types supported by any Flight configuration anywhere since
70
71
  // we don't know which Flight build this will end up being used
71
72
  // with.
72
- t.$$typeof === At || t.getModuleId !== void 0));
73
+ n.$$typeof === st || n.getModuleId !== void 0));
73
74
  }
74
- function cn(t, i, m) {
75
- var u = t.displayName;
76
- if (u)
77
- return u;
78
- var y = i.displayName || i.name || "";
79
- return y !== "" ? m + "(" + y + ")" : m;
75
+ function K(n, c, u) {
76
+ var v = n.displayName;
77
+ if (v)
78
+ return v;
79
+ var k = c.displayName || c.name || "";
80
+ return k !== "" ? u + "(" + k + ")" : u;
80
81
  }
81
- function kt(t) {
82
- return t.displayName || "Context";
82
+ function vt(n) {
83
+ return n.displayName || "Context";
83
84
  }
84
- function M(t) {
85
- if (t == null)
85
+ function z(n) {
86
+ if (n == null)
86
87
  return null;
87
- if (typeof t.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
88
- return t.displayName || t.name || null;
89
- if (typeof t == "string")
90
- return t;
91
- switch (t) {
92
- case a:
93
- return "Fragment";
88
+ if (typeof n.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
89
+ return n.displayName || n.name || null;
90
+ if (typeof n == "string")
91
+ return n;
92
+ switch (n) {
94
93
  case s:
94
+ return "Fragment";
95
+ case o:
95
96
  return "Portal";
96
97
  case _:
97
98
  return "Profiler";
98
- case o:
99
+ case i:
99
100
  return "StrictMode";
100
101
  case l:
101
102
  return "Suspense";
102
- case f:
103
+ case p:
103
104
  return "SuspenseList";
104
105
  }
105
- if (typeof t == "object")
106
- switch (t.$$typeof) {
107
- case c:
108
- var i = t;
109
- return kt(i) + ".Consumer";
106
+ if (typeof n == "object")
107
+ switch (n.$$typeof) {
108
+ case a:
109
+ var c = n;
110
+ return vt(c) + ".Consumer";
111
+ case m:
112
+ var u = n;
113
+ return vt(u._context) + ".Provider";
110
114
  case g:
111
- var m = t;
112
- return kt(m._context) + ".Provider";
115
+ return K(n, n.render, "ForwardRef");
113
116
  case d:
114
- return cn(t, t.render, "ForwardRef");
115
- case p:
116
- var u = t.displayName || null;
117
- return u !== null ? u : M(t.type) || "Memo";
118
- case h: {
119
- var y = t, k = y._payload, b = y._init;
117
+ var v = n.displayName || null;
118
+ return v !== null ? v : z(n.type) || "Memo";
119
+ case f: {
120
+ var k = n, C = k._payload, A = k._init;
120
121
  try {
121
- return M(b(k));
122
+ return z(A(C));
122
123
  } catch {
123
124
  return null;
124
125
  }
@@ -126,618 +127,618 @@ function Zn() {
126
127
  }
127
128
  return null;
128
129
  }
129
- var H = Object.assign, Q = 0, wt, Ct, jt, It, Rt, St, zt;
130
- function Ft() {
130
+ var V = Object.assign, Q = 0, yt, Pt, at, ct, h, y, R;
131
+ function B() {
131
132
  }
132
- Ft.__reactDisabledLog = !0;
133
- function _n() {
133
+ B.__reactDisabledLog = !0;
134
+ function W() {
134
135
  {
135
136
  if (Q === 0) {
136
- wt = console.log, Ct = console.info, jt = console.warn, It = console.error, Rt = console.group, St = console.groupCollapsed, zt = console.groupEnd;
137
- var t = {
137
+ yt = console.log, Pt = console.info, at = console.warn, ct = console.error, h = console.group, y = console.groupCollapsed, R = console.groupEnd;
138
+ var n = {
138
139
  configurable: !0,
139
140
  enumerable: !0,
140
- value: Ft,
141
+ value: B,
141
142
  writable: !0
142
143
  };
143
144
  Object.defineProperties(console, {
144
- info: t,
145
- log: t,
146
- warn: t,
147
- error: t,
148
- group: t,
149
- groupCollapsed: t,
150
- groupEnd: t
145
+ info: n,
146
+ log: n,
147
+ warn: n,
148
+ error: n,
149
+ group: n,
150
+ groupCollapsed: n,
151
+ groupEnd: n
151
152
  });
152
153
  }
153
154
  Q++;
154
155
  }
155
156
  }
156
- function ln() {
157
+ function Pn() {
157
158
  {
158
159
  if (Q--, Q === 0) {
159
- var t = {
160
+ var n = {
160
161
  configurable: !0,
161
162
  enumerable: !0,
162
163
  writable: !0
163
164
  };
164
165
  Object.defineProperties(console, {
165
- log: H({}, t, {
166
- value: wt
166
+ log: V({}, n, {
167
+ value: yt
167
168
  }),
168
- info: H({}, t, {
169
- value: Ct
169
+ info: V({}, n, {
170
+ value: Pt
170
171
  }),
171
- warn: H({}, t, {
172
- value: jt
172
+ warn: V({}, n, {
173
+ value: at
173
174
  }),
174
- error: H({}, t, {
175
- value: It
175
+ error: V({}, n, {
176
+ value: ct
176
177
  }),
177
- group: H({}, t, {
178
- value: Rt
178
+ group: V({}, n, {
179
+ value: h
179
180
  }),
180
- groupCollapsed: H({}, t, {
181
- value: St
181
+ groupCollapsed: V({}, n, {
182
+ value: y
182
183
  }),
183
- groupEnd: H({}, t, {
184
- value: zt
184
+ groupEnd: V({}, n, {
185
+ value: R
185
186
  })
186
187
  });
187
188
  }
188
- Q < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
+ Q < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
190
  }
190
191
  }
191
- var _t = w.ReactCurrentDispatcher, lt;
192
- function et(t, i, m) {
192
+ var Rt = j.ReactCurrentDispatcher, St;
193
+ function bt(n, c, u) {
193
194
  {
194
- if (lt === void 0)
195
+ if (St === void 0)
195
196
  try {
196
197
  throw Error();
197
- } catch (y) {
198
- var u = y.stack.trim().match(/\n( *(at )?)/);
199
- lt = u && u[1] || "";
198
+ } catch (k) {
199
+ var v = k.stack.trim().match(/\n( *(at )?)/);
200
+ St = v && v[1] || "";
200
201
  }
201
202
  return `
202
- ` + lt + t;
203
+ ` + St + n;
203
204
  }
204
205
  }
205
- var mt = !1, rt;
206
+ var It = !1, xt;
206
207
  {
207
- var mn = typeof WeakMap == "function" ? WeakMap : Map;
208
- rt = new mn();
208
+ var bn = typeof WeakMap == "function" ? WeakMap : Map;
209
+ xt = new bn();
209
210
  }
210
- function Et(t, i) {
211
- if (!t || mt)
211
+ function Jt(n, c) {
212
+ if (!n || It)
212
213
  return "";
213
214
  {
214
- var m = rt.get(t);
215
- if (m !== void 0)
216
- return m;
215
+ var u = xt.get(n);
216
+ if (u !== void 0)
217
+ return u;
217
218
  }
218
- var u;
219
- mt = !0;
220
- var y = Error.prepareStackTrace;
219
+ var v;
220
+ It = !0;
221
+ var k = Error.prepareStackTrace;
221
222
  Error.prepareStackTrace = void 0;
222
- var k;
223
- k = _t.current, _t.current = null, _n();
223
+ var C;
224
+ C = Rt.current, Rt.current = null, W();
224
225
  try {
225
- if (i) {
226
- var b = function() {
226
+ if (c) {
227
+ var A = function() {
227
228
  throw Error();
228
229
  };
229
- if (Object.defineProperty(b.prototype, "props", {
230
+ if (Object.defineProperty(A.prototype, "props", {
230
231
  set: function() {
231
232
  throw Error();
232
233
  }
233
234
  }), typeof Reflect == "object" && Reflect.construct) {
234
235
  try {
235
- Reflect.construct(b, []);
236
- } catch (S) {
237
- u = S;
236
+ Reflect.construct(A, []);
237
+ } catch (D) {
238
+ v = D;
238
239
  }
239
- Reflect.construct(t, [], b);
240
+ Reflect.construct(n, [], A);
240
241
  } else {
241
242
  try {
242
- b.call();
243
- } catch (S) {
244
- u = S;
243
+ A.call();
244
+ } catch (D) {
245
+ v = D;
245
246
  }
246
- t.call(b.prototype);
247
+ n.call(A.prototype);
247
248
  }
248
249
  } else {
249
250
  try {
250
251
  throw Error();
251
- } catch (S) {
252
- u = S;
252
+ } catch (D) {
253
+ v = D;
253
254
  }
254
- t();
255
+ n();
255
256
  }
256
- } catch (S) {
257
- if (S && u && typeof S.stack == "string") {
258
- for (var P = S.stack.split(`
259
- `), R = u.stack.split(`
260
- `), C = P.length - 1, I = R.length - 1; C >= 1 && I >= 0 && P[C] !== R[I]; )
261
- I--;
262
- for (; C >= 1 && I >= 0; C--, I--)
263
- if (P[C] !== R[I]) {
264
- if (C !== 1 || I !== 1)
257
+ } catch (D) {
258
+ if (D && v && typeof D.stack == "string") {
259
+ for (var w = D.stack.split(`
260
+ `), T = v.stack.split(`
261
+ `), N = w.length - 1, F = T.length - 1; N >= 1 && F >= 0 && w[N] !== T[F]; )
262
+ F--;
263
+ for (; N >= 1 && F >= 0; N--, F--)
264
+ if (w[N] !== T[F]) {
265
+ if (N !== 1 || F !== 1)
265
266
  do
266
- if (C--, I--, I < 0 || P[C] !== R[I]) {
267
- var z = `
268
- ` + P[C].replace(" at new ", " at ");
269
- return t.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", t.displayName)), typeof t == "function" && rt.set(t, z), z;
267
+ if (N--, F--, F < 0 || w[N] !== T[F]) {
268
+ var L = `
269
+ ` + w[N].replace(" at new ", " at ");
270
+ return n.displayName && L.includes("<anonymous>") && (L = L.replace("<anonymous>", n.displayName)), typeof n == "function" && xt.set(n, L), L;
270
271
  }
271
- while (C >= 1 && I >= 0);
272
+ while (N >= 1 && F >= 0);
272
273
  break;
273
274
  }
274
275
  }
275
276
  } finally {
276
- mt = !1, _t.current = k, ln(), Error.prepareStackTrace = y;
277
+ It = !1, Rt.current = C, Pn(), Error.prepareStackTrace = k;
277
278
  }
278
- var G = t ? t.displayName || t.name : "", L = G ? et(G) : "";
279
- return typeof t == "function" && rt.set(t, L), L;
279
+ var rt = n ? n.displayName || n.name : "", X = rt ? bt(rt) : "";
280
+ return typeof n == "function" && xt.set(n, X), X;
280
281
  }
281
- function gn(t, i, m) {
282
- return Et(t, !1);
282
+ function xn(n, c, u) {
283
+ return Jt(n, !1);
283
284
  }
284
- function dn(t) {
285
- var i = t.prototype;
286
- return !!(i && i.isReactComponent);
285
+ function wn(n) {
286
+ var c = n.prototype;
287
+ return !!(c && c.isReactComponent);
287
288
  }
288
- function it(t, i, m) {
289
- if (t == null)
289
+ function wt(n, c, u) {
290
+ if (n == null)
290
291
  return "";
291
- if (typeof t == "function")
292
- return Et(t, dn(t));
293
- if (typeof t == "string")
294
- return et(t);
295
- switch (t) {
292
+ if (typeof n == "function")
293
+ return Jt(n, wn(n));
294
+ if (typeof n == "string")
295
+ return bt(n);
296
+ switch (n) {
296
297
  case l:
297
- return et("Suspense");
298
- case f:
299
- return et("SuspenseList");
298
+ return bt("Suspense");
299
+ case p:
300
+ return bt("SuspenseList");
300
301
  }
301
- if (typeof t == "object")
302
- switch (t.$$typeof) {
302
+ if (typeof n == "object")
303
+ switch (n.$$typeof) {
304
+ case g:
305
+ return xn(n.render);
303
306
  case d:
304
- return gn(t.render);
305
- case p:
306
- return it(t.type, i, m);
307
- case h: {
308
- var u = t, y = u._payload, k = u._init;
307
+ return wt(n.type, c, u);
308
+ case f: {
309
+ var v = n, k = v._payload, C = v._init;
309
310
  try {
310
- return it(k(y), i, m);
311
+ return wt(C(k), c, u);
311
312
  } catch {
312
313
  }
313
314
  }
314
315
  }
315
316
  return "";
316
317
  }
317
- var W = Object.prototype.hasOwnProperty, Nt = {}, Bt = w.ReactDebugCurrentFrame;
318
- function ot(t) {
319
- if (t) {
320
- var i = t._owner, m = it(t.type, t._source, i ? i.type : null);
321
- Bt.setExtraStackFrame(m);
318
+ var lt = Object.prototype.hasOwnProperty, Vt = {}, Yt = j.ReactDebugCurrentFrame;
319
+ function At(n) {
320
+ if (n) {
321
+ var c = n._owner, u = wt(n.type, n._source, c ? c.type : null);
322
+ Yt.setExtraStackFrame(u);
322
323
  } else
323
- Bt.setExtraStackFrame(null);
324
+ Yt.setExtraStackFrame(null);
324
325
  }
325
- function un(t, i, m, u, y) {
326
+ function An(n, c, u, v, k) {
326
327
  {
327
- var k = Function.call.bind(W);
328
- for (var b in t)
329
- if (k(t, b)) {
330
- var P = void 0;
328
+ var C = Function.call.bind(lt);
329
+ for (var A in n)
330
+ if (C(n, A)) {
331
+ var w = void 0;
331
332
  try {
332
- if (typeof t[b] != "function") {
333
- var R = Error((u || "React class") + ": " + m + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
- throw R.name = "Invariant Violation", R;
333
+ if (typeof n[A] != "function") {
334
+ var T = Error((v || "React class") + ": " + u + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ throw T.name = "Invariant Violation", T;
335
336
  }
336
- P = t[b](i, b, u, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
- } catch (C) {
338
- P = C;
337
+ w = n[A](c, A, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
+ } catch (N) {
339
+ w = N;
339
340
  }
340
- P && !(P instanceof Error) && (ot(y), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", m, b, typeof P), ot(null)), P instanceof Error && !(P.message in Nt) && (Nt[P.message] = !0, ot(y), j("Failed %s type: %s", m, P.message), ot(null));
341
+ w && !(w instanceof Error) && (At(k), I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, A, typeof w), At(null)), w instanceof Error && !(w.message in Vt) && (Vt[w.message] = !0, At(k), I("Failed %s type: %s", u, w.message), At(null));
341
342
  }
342
343
  }
343
344
  }
344
- var pn = Array.isArray;
345
- function gt(t) {
346
- return pn(t);
345
+ var kn = Array.isArray;
346
+ function Nt(n) {
347
+ return kn(n);
347
348
  }
348
- function hn(t) {
349
+ function jn(n) {
349
350
  {
350
- var i = typeof Symbol == "function" && Symbol.toStringTag, m = i && t[Symbol.toStringTag] || t.constructor.name || "Object";
351
- return m;
351
+ var c = typeof Symbol == "function" && Symbol.toStringTag, u = c && n[Symbol.toStringTag] || n.constructor.name || "Object";
352
+ return u;
352
353
  }
353
354
  }
354
- function fn(t) {
355
+ function Cn(n) {
355
356
  try {
356
- return Tt(t), !1;
357
+ return Gt(n), !1;
357
358
  } catch {
358
359
  return !0;
359
360
  }
360
361
  }
361
- function Tt(t) {
362
- return "" + t;
362
+ function Gt(n) {
363
+ return "" + n;
363
364
  }
364
- function Zt(t) {
365
- if (fn(t))
366
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hn(t)), Tt(t);
365
+ function Kt(n) {
366
+ if (Cn(n))
367
+ return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jn(n)), Gt(n);
367
368
  }
368
- var Dt = w.ReactCurrentOwner, Pn = {
369
+ var Qt = j.ReactCurrentOwner, Rn = {
369
370
  key: !0,
370
371
  ref: !0,
371
372
  __self: !0,
372
373
  __source: !0
373
- }, Mt, Ot;
374
- function vn(t) {
375
- if (W.call(t, "ref")) {
376
- var i = Object.getOwnPropertyDescriptor(t, "ref").get;
377
- if (i && i.isReactWarning)
374
+ }, Wt, Xt;
375
+ function Sn(n) {
376
+ if (lt.call(n, "ref")) {
377
+ var c = Object.getOwnPropertyDescriptor(n, "ref").get;
378
+ if (c && c.isReactWarning)
378
379
  return !1;
379
380
  }
380
- return t.ref !== void 0;
381
+ return n.ref !== void 0;
381
382
  }
382
- function bn(t) {
383
- if (W.call(t, "key")) {
384
- var i = Object.getOwnPropertyDescriptor(t, "key").get;
385
- if (i && i.isReactWarning)
383
+ function In(n) {
384
+ if (lt.call(n, "key")) {
385
+ var c = Object.getOwnPropertyDescriptor(n, "key").get;
386
+ if (c && c.isReactWarning)
386
387
  return !1;
387
388
  }
388
- return t.key !== void 0;
389
+ return n.key !== void 0;
389
390
  }
390
- function yn(t, i) {
391
- typeof t.ref == "string" && Dt.current;
391
+ function Nn(n, c) {
392
+ typeof n.ref == "string" && Qt.current;
392
393
  }
393
- function xn(t, i) {
394
+ function Fn(n, c) {
394
395
  {
395
- var m = function() {
396
- Mt || (Mt = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
396
+ var u = function() {
397
+ Wt || (Wt = !0, I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
397
398
  };
398
- m.isReactWarning = !0, Object.defineProperty(t, "key", {
399
- get: m,
399
+ u.isReactWarning = !0, Object.defineProperty(n, "key", {
400
+ get: u,
400
401
  configurable: !0
401
402
  });
402
403
  }
403
404
  }
404
- function An(t, i) {
405
+ function En(n, c) {
405
406
  {
406
- var m = function() {
407
- Ot || (Ot = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
407
+ var u = function() {
408
+ Xt || (Xt = !0, I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
408
409
  };
409
- m.isReactWarning = !0, Object.defineProperty(t, "ref", {
410
- get: m,
410
+ u.isReactWarning = !0, Object.defineProperty(n, "ref", {
411
+ get: u,
411
412
  configurable: !0
412
413
  });
413
414
  }
414
415
  }
415
- var kn = function(t, i, m, u, y, k, b) {
416
- var P = {
416
+ var zn = function(n, c, u, v, k, C, A) {
417
+ var w = {
417
418
  // This tag allows us to uniquely identify this as a React Element
418
419
  $$typeof: r,
419
420
  // Built-in properties that belong on the element
420
- type: t,
421
- key: i,
422
- ref: m,
423
- props: b,
421
+ type: n,
422
+ key: c,
423
+ ref: u,
424
+ props: A,
424
425
  // Record the component responsible for creating this element.
425
- _owner: k
426
+ _owner: C
426
427
  };
427
- return P._store = {}, Object.defineProperty(P._store, "validated", {
428
+ return w._store = {}, Object.defineProperty(w._store, "validated", {
428
429
  configurable: !1,
429
430
  enumerable: !1,
430
431
  writable: !0,
431
432
  value: !1
432
- }), Object.defineProperty(P, "_self", {
433
+ }), Object.defineProperty(w, "_self", {
433
434
  configurable: !1,
434
435
  enumerable: !1,
435
436
  writable: !1,
436
- value: u
437
- }), Object.defineProperty(P, "_source", {
437
+ value: v
438
+ }), Object.defineProperty(w, "_source", {
438
439
  configurable: !1,
439
440
  enumerable: !1,
440
441
  writable: !1,
441
- value: y
442
- }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
442
+ value: k
443
+ }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
443
444
  };
444
- function wn(t, i, m, u, y) {
445
+ function Bn(n, c, u, v, k) {
445
446
  {
446
- var k, b = {}, P = null, R = null;
447
- m !== void 0 && (Zt(m), P = "" + m), bn(i) && (Zt(i.key), P = "" + i.key), vn(i) && (R = i.ref, yn(i, y));
448
- for (k in i)
449
- W.call(i, k) && !Pn.hasOwnProperty(k) && (b[k] = i[k]);
450
- if (t && t.defaultProps) {
451
- var C = t.defaultProps;
452
- for (k in C)
453
- b[k] === void 0 && (b[k] = C[k]);
447
+ var C, A = {}, w = null, T = null;
448
+ u !== void 0 && (Kt(u), w = "" + u), In(c) && (Kt(c.key), w = "" + c.key), Sn(c) && (T = c.ref, Nn(c, k));
449
+ for (C in c)
450
+ lt.call(c, C) && !Rn.hasOwnProperty(C) && (A[C] = c[C]);
451
+ if (n && n.defaultProps) {
452
+ var N = n.defaultProps;
453
+ for (C in N)
454
+ A[C] === void 0 && (A[C] = N[C]);
454
455
  }
455
- if (P || R) {
456
- var I = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
457
- P && xn(b, I), R && An(b, I);
456
+ if (w || T) {
457
+ var F = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
458
+ w && Fn(A, F), T && En(A, F);
458
459
  }
459
- return kn(t, P, R, y, u, Dt.current, b);
460
+ return zn(n, w, T, k, v, Qt.current, A);
460
461
  }
461
462
  }
462
- var dt = w.ReactCurrentOwner, Ht = w.ReactDebugCurrentFrame;
463
- function Y(t) {
464
- if (t) {
465
- var i = t._owner, m = it(t.type, t._source, i ? i.type : null);
466
- Ht.setExtraStackFrame(m);
463
+ var Ft = j.ReactCurrentOwner, qt = j.ReactDebugCurrentFrame;
464
+ function et(n) {
465
+ if (n) {
466
+ var c = n._owner, u = wt(n.type, n._source, c ? c.type : null);
467
+ qt.setExtraStackFrame(u);
467
468
  } else
468
- Ht.setExtraStackFrame(null);
469
+ qt.setExtraStackFrame(null);
469
470
  }
470
- var ut;
471
- ut = !1;
472
- function pt(t) {
473
- return typeof t == "object" && t !== null && t.$$typeof === r;
471
+ var Et;
472
+ Et = !1;
473
+ function zt(n) {
474
+ return typeof n == "object" && n !== null && n.$$typeof === r;
474
475
  }
475
- function Lt() {
476
+ function $t() {
476
477
  {
477
- if (dt.current) {
478
- var t = M(dt.current.type);
479
- if (t)
478
+ if (Ft.current) {
479
+ var n = z(Ft.current.type);
480
+ if (n)
480
481
  return `
481
482
 
482
- Check the render method of \`` + t + "`.";
483
+ Check the render method of \`` + n + "`.";
483
484
  }
484
485
  return "";
485
486
  }
486
487
  }
487
- function Cn(t) {
488
+ function Tn(n) {
488
489
  return "";
489
490
  }
490
- var Jt = {};
491
- function jn(t) {
491
+ var tn = {};
492
+ function Dn(n) {
492
493
  {
493
- var i = Lt();
494
- if (!i) {
495
- var m = typeof t == "string" ? t : t.displayName || t.name;
496
- m && (i = `
494
+ var c = $t();
495
+ if (!c) {
496
+ var u = typeof n == "string" ? n : n.displayName || n.name;
497
+ u && (c = `
497
498
 
498
- Check the top-level render call using <` + m + ">.");
499
+ Check the top-level render call using <` + u + ">.");
499
500
  }
500
- return i;
501
+ return c;
501
502
  }
502
503
  }
503
- function Ut(t, i) {
504
+ function nn(n, c) {
504
505
  {
505
- if (!t._store || t._store.validated || t.key != null)
506
+ if (!n._store || n._store.validated || n.key != null)
506
507
  return;
507
- t._store.validated = !0;
508
- var m = jn(i);
509
- if (Jt[m])
508
+ n._store.validated = !0;
509
+ var u = Dn(c);
510
+ if (tn[u])
510
511
  return;
511
- Jt[m] = !0;
512
- var u = "";
513
- t && t._owner && t._owner !== dt.current && (u = " It was passed a child from " + M(t._owner.type) + "."), Y(t), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, u), Y(null);
512
+ tn[u] = !0;
513
+ var v = "";
514
+ n && n._owner && n._owner !== Ft.current && (v = " It was passed a child from " + z(n._owner.type) + "."), et(n), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), et(null);
514
515
  }
515
516
  }
516
- function Vt(t, i) {
517
+ function en(n, c) {
517
518
  {
518
- if (typeof t != "object")
519
+ if (typeof n != "object")
519
520
  return;
520
- if (gt(t))
521
- for (var m = 0; m < t.length; m++) {
522
- var u = t[m];
523
- pt(u) && Ut(u, i);
521
+ if (Nt(n))
522
+ for (var u = 0; u < n.length; u++) {
523
+ var v = n[u];
524
+ zt(v) && nn(v, c);
524
525
  }
525
- else if (pt(t))
526
- t._store && (t._store.validated = !0);
527
- else if (t) {
528
- var y = A(t);
529
- if (typeof y == "function" && y !== t.entries)
530
- for (var k = y.call(t), b; !(b = k.next()).done; )
531
- pt(b.value) && Ut(b.value, i);
526
+ else if (zt(n))
527
+ n._store && (n._store.validated = !0);
528
+ else if (n) {
529
+ var k = P(n);
530
+ if (typeof k == "function" && k !== n.entries)
531
+ for (var C = k.call(n), A; !(A = C.next()).done; )
532
+ zt(A.value) && nn(A.value, c);
532
533
  }
533
534
  }
534
535
  }
535
- function In(t) {
536
+ function On(n) {
536
537
  {
537
- var i = t.type;
538
- if (i == null || typeof i == "string")
538
+ var c = n.type;
539
+ if (c == null || typeof c == "string")
539
540
  return;
540
- var m;
541
- if (typeof i == "function")
542
- m = i.propTypes;
543
- else if (typeof i == "object" && (i.$$typeof === d || // Note: Memo only checks outer props here.
541
+ var u;
542
+ if (typeof c == "function")
543
+ u = c.propTypes;
544
+ else if (typeof c == "object" && (c.$$typeof === g || // Note: Memo only checks outer props here.
544
545
  // Inner props are checked in the reconciler.
545
- i.$$typeof === p))
546
- m = i.propTypes;
546
+ c.$$typeof === d))
547
+ u = c.propTypes;
547
548
  else
548
549
  return;
549
- if (m) {
550
- var u = M(i);
551
- un(m, t.props, "prop", u, t);
552
- } else if (i.PropTypes !== void 0 && !ut) {
553
- ut = !0;
554
- var y = M(i);
555
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
550
+ if (u) {
551
+ var v = z(c);
552
+ An(u, n.props, "prop", v, n);
553
+ } else if (c.PropTypes !== void 0 && !Et) {
554
+ Et = !0;
555
+ var k = z(c);
556
+ I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
556
557
  }
557
- typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
+ typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
559
  }
559
560
  }
560
- function Rn(t) {
561
+ function Zn(n) {
561
562
  {
562
- for (var i = Object.keys(t.props), m = 0; m < i.length; m++) {
563
- var u = i[m];
564
- if (u !== "children" && u !== "key") {
565
- Y(t), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), Y(null);
563
+ for (var c = Object.keys(n.props), u = 0; u < c.length; u++) {
564
+ var v = c[u];
565
+ if (v !== "children" && v !== "key") {
566
+ et(n), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), et(null);
566
567
  break;
567
568
  }
568
569
  }
569
- t.ref !== null && (Y(t), j("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
570
+ n.ref !== null && (et(n), I("Invalid attribute `ref` supplied to `React.Fragment`."), et(null));
570
571
  }
571
572
  }
572
- var Yt = {};
573
- function Gt(t, i, m, u, y, k) {
573
+ var rn = {};
574
+ function on(n, c, u, v, k, C) {
574
575
  {
575
- var b = an(t);
576
- if (!b) {
577
- var P = "";
578
- (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
579
- var R = Cn();
580
- R ? P += R : P += Lt();
581
- var C;
582
- t === null ? C = "null" : gt(t) ? C = "array" : t !== void 0 && t.$$typeof === r ? (C = "<" + (M(t.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : C = typeof t, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, P);
576
+ var A = ft(n);
577
+ if (!A) {
578
+ var w = "";
579
+ (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
580
+ var T = Tn();
581
+ T ? w += T : w += $t();
582
+ var N;
583
+ n === null ? N = "null" : Nt(n) ? N = "array" : n !== void 0 && n.$$typeof === r ? (N = "<" + (z(n.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : N = typeof n, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, w);
583
584
  }
584
- var I = wn(t, i, m, y, k);
585
- if (I == null)
586
- return I;
587
- if (b) {
588
- var z = i.children;
589
- if (z !== void 0)
590
- if (u)
591
- if (gt(z)) {
592
- for (var G = 0; G < z.length; G++)
593
- Vt(z[G], t);
594
- Object.freeze && Object.freeze(z);
585
+ var F = Bn(n, c, u, k, C);
586
+ if (F == null)
587
+ return F;
588
+ if (A) {
589
+ var L = c.children;
590
+ if (L !== void 0)
591
+ if (v)
592
+ if (Nt(L)) {
593
+ for (var rt = 0; rt < L.length; rt++)
594
+ en(L[rt], n);
595
+ Object.freeze && Object.freeze(L);
595
596
  } else
596
- j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
597
+ I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
597
598
  else
598
- Vt(z, t);
599
+ en(L, n);
599
600
  }
600
- if (W.call(i, "key")) {
601
- var L = M(t), S = Object.keys(i).filter(function(Bn) {
602
- return Bn !== "key";
603
- }), ht = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
604
- if (!Yt[L + ht]) {
605
- var Nn = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
606
- j(`A props object containing a "key" prop is being spread into JSX:
601
+ if (lt.call(c, "key")) {
602
+ var X = z(n), D = Object.keys(c).filter(function(Vn) {
603
+ return Vn !== "key";
604
+ }), Bt = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
605
+ if (!rn[X + Bt]) {
606
+ var Jn = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
607
+ I(`A props object containing a "key" prop is being spread into JSX:
607
608
  let props = %s;
608
609
  <%s {...props} />
609
610
  React keys must be passed directly to JSX without using spread:
610
611
  let props = %s;
611
- <%s key={someKey} {...props} />`, ht, L, Nn, L), Yt[L + ht] = !0;
612
+ <%s key={someKey} {...props} />`, Bt, X, Jn, X), rn[X + Bt] = !0;
612
613
  }
613
614
  }
614
- return t === a ? Rn(I) : In(I), I;
615
+ return n === s ? Zn(F) : On(F), F;
615
616
  }
616
617
  }
617
- function Sn(t, i, m) {
618
- return Gt(t, i, m, !0);
618
+ function Ln(n, c, u) {
619
+ return on(n, c, u, !0);
619
620
  }
620
- function zn(t, i, m) {
621
- return Gt(t, i, m, !1);
621
+ function Mn(n, c, u) {
622
+ return on(n, c, u, !1);
622
623
  }
623
- var Fn = zn, En = Sn;
624
- q.Fragment = a, q.jsx = Fn, q.jsxs = En;
625
- }()), q;
624
+ var Hn = Mn, Un = Ln;
625
+ mt.Fragment = s, mt.jsx = Hn, mt.jsxs = Un;
626
+ }()), mt;
626
627
  }
627
- process.env.NODE_ENV === "production" ? Pt.exports = Tn() : Pt.exports = Zn();
628
- var e = Pt.exports;
629
- const Dn = "_button_qg5kh_1", Mn = {
630
- button: Dn
628
+ process.env.NODE_ENV === "production" ? Zt.exports = Qn() : Zt.exports = Wn();
629
+ var e = Zt.exports;
630
+ const Xn = "_button_qg5kh_1", qn = {
631
+ button: Xn
631
632
  };
632
- function Ti({ className: n = "", ...r }) {
633
- return /* @__PURE__ */ e.jsx("button", { className: `${Mn.button} ${n}`, ...r, children: "TEST" });
633
+ function li({ className: t = "", ...r }) {
634
+ return /* @__PURE__ */ e.jsx("button", { className: `${qn.button} ${t}`, ...r, children: "TEST" });
634
635
  }
635
- const On = "_archive_doicitation_y1o5i_1", Hn = "_doi_badge_y1o5i_9", Ln = "_doi_left_y1o5i_13", Jn = "_doi_right_y1o5i_27", st = {
636
- archive_doicitation: On,
637
- doi_badge: Hn,
638
- doi_left: Ln,
639
- doi_right: Jn
640
- }, Zi = ({
641
- doi_id: n,
636
+ const $n = "_archive_doicitation_y1o5i_1", te = "_doi_badge_y1o5i_9", ne = "_doi_left_y1o5i_13", ee = "_doi_right_y1o5i_27", kt = {
637
+ archive_doicitation: $n,
638
+ doi_badge: te,
639
+ doi_left: ne,
640
+ doi_right: ee
641
+ }, _i = ({
642
+ doi_id: t,
642
643
  doi: r,
643
- label: s = "DOI",
644
- color: a = "#a2cbff",
645
- className: o = "",
644
+ label: o = "DOI",
645
+ color: s = "#a2cbff",
646
+ className: i = "",
646
647
  ..._
647
648
  }) => {
648
- let g = "";
649
- return n != null ? g = `10.24435/materialscloud:${n}` : g = r, /* @__PURE__ */ e.jsx("div", { className: `${st.archive_doicitation} ${o}`, ..._, children: /* @__PURE__ */ e.jsxs("span", { className: st.doi_badge, children: [
650
- /* @__PURE__ */ e.jsx("span", { className: st.doi_left, children: s }),
649
+ let m = "";
650
+ return t != null ? m = `10.24435/materialscloud:${t}` : m = r, /* @__PURE__ */ e.jsx("div", { className: `${kt.archive_doicitation} ${i}`, ..._, children: /* @__PURE__ */ e.jsxs("span", { className: kt.doi_badge, children: [
651
+ /* @__PURE__ */ e.jsx("span", { className: kt.doi_left, children: o }),
651
652
  /* @__PURE__ */ e.jsx(
652
653
  "a",
653
654
  {
654
- href: `https://doi.org/${g}`,
655
- className: st.doi_right,
655
+ href: `https://doi.org/${m}`,
656
+ className: kt.doi_right,
656
657
  target: "_blank",
657
- style: { backgroundColor: a },
658
- children: g
658
+ style: { backgroundColor: s },
659
+ children: m
659
660
  }
660
661
  )
661
662
  ] }) });
662
- }, $ = (...n) => n.filter(Boolean).join(" ");
663
- function Un(n) {
664
- const r = n == null ? void 0 : n.type, s = (r == null ? void 0 : r.displayName) || (r == null ? void 0 : r.name) || (typeof r == "string" ? r : "");
665
- return typeof s == "string" && s.toLowerCase().includes("popover");
663
+ }, gt = (...t) => t.filter(Boolean).join(" ");
664
+ function re(t) {
665
+ const r = t == null ? void 0 : t.type, o = (r == null ? void 0 : r.displayName) || (r == null ? void 0 : r.name) || (typeof r == "string" ? r : "");
666
+ return typeof o == "string" && o.toLowerCase().includes("popover");
666
667
  }
667
- function Vn(n) {
668
- let r = n;
669
- for (; r && typeof r == "object" && "props" in r && Un(r); )
668
+ function oe(t) {
669
+ let r = t;
670
+ for (; r && typeof r == "object" && "props" in r && re(r); )
670
671
  r = r.props.children;
671
672
  return r;
672
673
  }
673
- function Di({
674
- popover: n,
674
+ function mi({
675
+ popover: t,
675
676
  content: r,
676
- placement: s = "top",
677
- className: a,
678
- classes: o = {},
677
+ placement: o = "top",
678
+ className: s,
679
+ classes: i = {},
679
680
  children: _ = "?",
680
- ...g
681
+ ...m
681
682
  }) {
682
- const [c, d] = Z(!1), l = bt(null), f = r !== void 0 ? r : n, p = f != null;
683
- return tt(() => {
684
- if (!c || !p) return;
685
- const h = (x) => {
686
- l.current && !l.current.contains(x.target) && d(!1);
687
- }, v = (x) => {
688
- x.key === "Escape" && d(!1);
683
+ const [a, g] = E(!1), l = Mt(null), p = r !== void 0 ? r : t, d = p != null;
684
+ return nt(() => {
685
+ if (!a || !d) return;
686
+ const f = (x) => {
687
+ l.current && !l.current.contains(x.target) && g(!1);
688
+ }, b = (x) => {
689
+ x.key === "Escape" && g(!1);
689
690
  };
690
- return document.addEventListener("pointerdown", h), document.addEventListener("keydown", v), () => {
691
- document.removeEventListener("pointerdown", h), document.removeEventListener("keydown", v);
691
+ return document.addEventListener("pointerdown", f), document.addEventListener("keydown", b), () => {
692
+ document.removeEventListener("pointerdown", f), document.removeEventListener("keydown", b);
692
693
  };
693
- }, [c, p]), p ? /* @__PURE__ */ e.jsxs(
694
+ }, [a, d]), d ? /* @__PURE__ */ e.jsxs(
694
695
  "div",
695
696
  {
696
697
  ref: l,
697
- className: $("help-button", a, o.root),
698
- ...g,
698
+ className: gt("help-button", s, i.root),
699
+ ...m,
699
700
  children: [
700
701
  /* @__PURE__ */ e.jsx(
701
702
  "button",
702
703
  {
703
704
  type: "button",
704
- className: $("help-button__trigger", o.trigger),
705
- onClick: () => d((h) => !h),
706
- "aria-expanded": c,
705
+ className: gt("help-button__trigger", i.trigger),
706
+ onClick: () => g((f) => !f),
707
+ "aria-expanded": a,
707
708
  "aria-haspopup": "dialog",
708
709
  children: _
709
710
  }
710
711
  ),
711
- c && /* @__PURE__ */ e.jsx(
712
+ a && /* @__PURE__ */ e.jsx(
712
713
  "div",
713
714
  {
714
715
  role: "dialog",
715
- "data-placement": s,
716
- className: $("help-button__popover", o.popover),
717
- children: Vn(f)
716
+ "data-placement": o,
717
+ className: gt("help-button__popover", i.popover),
718
+ children: oe(p)
718
719
  }
719
720
  )
720
721
  ]
721
722
  }
722
- ) : /* @__PURE__ */ e.jsx("div", { className: $("help-button", a, o.root), ...g, children: /* @__PURE__ */ e.jsx("span", { className: $("help-button__trigger", o.trigger), children: _ }) });
723
+ ) : /* @__PURE__ */ e.jsx("div", { className: gt("help-button", s, i.root), ...m, children: /* @__PURE__ */ e.jsx("span", { className: gt("help-button__trigger", i.trigger), children: _ }) });
723
724
  }
724
- const Yn = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20width='36.012337'%20height='31.802971'%20viewBox='0%200%2036.012336%2031.802972'%20id='svg9098'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='mclogo-split-rotate-v9.svg'%3e%3cdefs%20id='defs9100'%20/%3e%3csodipodi:namedview%20id='base'%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1.0'%20inkscape:pageopacity='0.0'%20inkscape:pageshadow='2'%20inkscape:zoom='11.2'%20inkscape:cx='14.890099'%20inkscape:cy='23.051314'%20inkscape:document-units='px'%20inkscape:current-layer='g9'%20showgrid='false'%20units='px'%20inkscape:window-width='1680'%20inkscape:window-height='940'%20inkscape:window-x='0'%20inkscape:window-y='1'%20inkscape:window-maximized='1'%20fit-margin-top='3'%20fit-margin-left='3'%20fit-margin-right='3'%20fit-margin-bottom='5'%20/%3e%3cmetadata%20id='metadata9103'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cg%20inkscape:label='Layer%201'%20inkscape:groupmode='layer'%20id='layer1'%20transform='translate(3.0066849,-1015.2422)'%3e%3cg%20id='mctriangle'%20transform='matrix(1.1533275,0,0,1.1556928,-379.094,391.20844)'%3e%3cg%20transform='translate(2975.41,266.50511)'%20style='display:inline;stroke:%23d21f15;stroke-width:0.86616874;stroke-opacity:1'%20id='layer6'%20/%3e%3cg%20id='g9'%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9220'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9224'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9228'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9232'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9236'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9240'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9244'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9248'%20/%3e%3cellipse%20ry='0.25958455'%20rx='0.26011693'%20cy='553.91522'%20cx='341.70126'%20id='ref'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.4000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20/%3e%3cpath%20id='mctriangleonly'%20d='M%20335.13723,550.18801%20338.41923,555.66439%20341.70129,561.14077%20344.98332,555.66439%20348.26535,550.18801%20341.70129,550.18801%20Z'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.91575587;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20inkscape:connector-curvature='0'%20/%3e%3ccircle%20cy='550.02032'%20cx='348.39252'%20id='circle7840-5'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20cy='550.02032'%20cx='335.01007'%20id='circle7842-0'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20id='circle7844-5'%20cx='341.70132'%20cy='561.30841'%20r='1.4070433'%20/%3e%3ccircle%20r='1.4070433'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;filter-blend-mode:normal;filter-gaussianBlur-deviation:0'%20id='movingcircle'%20cx='335.01007'%20cy='550.02032'%3e%3canimateTransform%20id='anim1'%20repeatCount='indefinite'%20begin='0s'%20dur='1s'%20values='0.0%200.0;13.38245%200.0;6.69125%2011.28809;0.0%200.0'%20type='translate'%20attributeName='transform'%20/%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
725
- function Mi({ className: n = "", style: r, ...s }) {
725
+ const ie = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20width='36.012337'%20height='31.802971'%20viewBox='0%200%2036.012336%2031.802972'%20id='svg9098'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='mclogo-split-rotate-v9.svg'%3e%3cdefs%20id='defs9100'%20/%3e%3csodipodi:namedview%20id='base'%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1.0'%20inkscape:pageopacity='0.0'%20inkscape:pageshadow='2'%20inkscape:zoom='11.2'%20inkscape:cx='14.890099'%20inkscape:cy='23.051314'%20inkscape:document-units='px'%20inkscape:current-layer='g9'%20showgrid='false'%20units='px'%20inkscape:window-width='1680'%20inkscape:window-height='940'%20inkscape:window-x='0'%20inkscape:window-y='1'%20inkscape:window-maximized='1'%20fit-margin-top='3'%20fit-margin-left='3'%20fit-margin-right='3'%20fit-margin-bottom='5'%20/%3e%3cmetadata%20id='metadata9103'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cg%20inkscape:label='Layer%201'%20inkscape:groupmode='layer'%20id='layer1'%20transform='translate(3.0066849,-1015.2422)'%3e%3cg%20id='mctriangle'%20transform='matrix(1.1533275,0,0,1.1556928,-379.094,391.20844)'%3e%3cg%20transform='translate(2975.41,266.50511)'%20style='display:inline;stroke:%23d21f15;stroke-width:0.86616874;stroke-opacity:1'%20id='layer6'%20/%3e%3cg%20id='g9'%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9220'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9224'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9228'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9232'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.22655%20C%20334.49344,546.23874%20337.72144,543.00587%20341.70205,543.00587%20345.68227,543.00587%20348.90912,546.23874%20348.90912,550.22655'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88989985;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9236'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.49344,550.41953%20C%20331.53412,550.41953%20329.1333,552.88285%20329.1333,555.92274%20329.1333,558.96264%20331.53412,561.42596%20334.49344,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9240'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20348.90912,550.41953%20C%20351.86844,550.41953%20354.26926,552.88285%20354.26926,555.92274%20354.26926,558.96264%20351.86844,561.42596%20348.90912,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9244'%20/%3e%3cpath%20inkscape:connector-curvature='0'%20d='M%20334.45731,561.42596%20348.92565,561.42596'%20style='fill:none;stroke:%23d21f15;stroke-width:0.88643086;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='path9248'%20/%3e%3cellipse%20ry='0.25958455'%20rx='0.26011693'%20cy='553.91522'%20cx='341.70126'%20id='ref'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.4000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20/%3e%3cpath%20id='mctriangleonly'%20d='M%20335.13723,550.18801%20338.41923,555.66439%20341.70129,561.14077%20344.98332,555.66439%20348.26535,550.18801%20341.70129,550.18801%20Z'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.91575587;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20inkscape:connector-curvature='0'%20/%3e%3ccircle%20cy='550.02032'%20cx='348.39252'%20id='circle7840-5'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20cy='550.02032'%20cx='335.01007'%20id='circle7842-0'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20r='1.4070433'%20/%3e%3ccircle%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate'%20id='circle7844-5'%20cx='341.70132'%20cy='561.30841'%20r='1.4070433'%20/%3e%3ccircle%20r='1.4070433'%20style='color:%23000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000000;solid-opacity:1;fill:%23ffffff;fill-opacity:1;fill-rule:nonzero;stroke:%23d21f15;stroke-width:0.88349211;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;filter-blend-mode:normal;filter-gaussianBlur-deviation:0'%20id='movingcircle'%20cx='335.01007'%20cy='550.02032'%3e%3canimateTransform%20id='anim1'%20repeatCount='indefinite'%20begin='0s'%20dur='1s'%20values='0.0%200.0;13.38245%200.0;6.69125%2011.28809;0.0%200.0'%20type='translate'%20attributeName='transform'%20/%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
726
+ function gi({ className: t = "", style: r, ...o }) {
726
727
  return /* @__PURE__ */ e.jsx(
727
728
  "div",
728
729
  {
729
- className: n,
730
+ className: t,
730
731
  style: {
731
732
  background: "transparent",
732
733
  border: "none",
733
734
  textAlign: "center",
734
735
  ...r
735
736
  },
736
- ...s,
737
+ ...o,
737
738
  children: /* @__PURE__ */ e.jsx(
738
739
  "img",
739
740
  {
740
- src: Yn,
741
+ src: ie,
741
742
  alt: "Materials Cloud spinner",
742
743
  style: {
743
744
  width: "100%",
@@ -750,7 +751,7 @@ function Mi({ className: n = "", style: r, ...s }) {
750
751
  }
751
752
  );
752
753
  }
753
- function Xt({ className: n = "h-4 w-4", ...r }) {
754
+ function un({ className: t = "h-4 w-4", ...r }) {
754
755
  return /* @__PURE__ */ e.jsxs(
755
756
  "svg",
756
757
  {
@@ -760,7 +761,7 @@ function Xt({ className: n = "h-4 w-4", ...r }) {
760
761
  strokeWidth: "2",
761
762
  strokeLinecap: "round",
762
763
  strokeLinejoin: "round",
763
- className: n,
764
+ className: t,
764
765
  "aria-hidden": "true",
765
766
  ...r,
766
767
  children: [
@@ -770,7 +771,7 @@ function Xt({ className: n = "h-4 w-4", ...r }) {
770
771
  }
771
772
  );
772
773
  }
773
- function qt({ className: n = "h-4 w-4", ...r }) {
774
+ function dn({ className: t = "h-4 w-4", ...r }) {
774
775
  return /* @__PURE__ */ e.jsx(
775
776
  "svg",
776
777
  {
@@ -780,14 +781,14 @@ function qt({ className: n = "h-4 w-4", ...r }) {
780
781
  strokeWidth: "2",
781
782
  strokeLinecap: "round",
782
783
  strokeLinejoin: "round",
783
- className: n,
784
+ className: t,
784
785
  "aria-hidden": "true",
785
786
  ...r,
786
787
  children: /* @__PURE__ */ e.jsx("path", { d: "M20 6 9 17l-5-5" })
787
788
  }
788
789
  );
789
790
  }
790
- function yt({ className: n = "h-4 w-4", ...r }) {
791
+ function Ht({ className: t = "h-4 w-4", ...r }) {
791
792
  return /* @__PURE__ */ e.jsxs(
792
793
  "svg",
793
794
  {
@@ -797,7 +798,7 @@ function yt({ className: n = "h-4 w-4", ...r }) {
797
798
  strokeWidth: "2",
798
799
  strokeLinecap: "round",
799
800
  strokeLinejoin: "round",
800
- className: n,
801
+ className: t,
801
802
  "aria-hidden": "true",
802
803
  ...r,
803
804
  children: [
@@ -808,7 +809,7 @@ function yt({ className: n = "h-4 w-4", ...r }) {
808
809
  }
809
810
  );
810
811
  }
811
- function Gn({ className: n = "h-4 w-4", ...r }) {
812
+ function se({ className: t = "h-4 w-4", ...r }) {
812
813
  return /* @__PURE__ */ e.jsxs(
813
814
  "svg",
814
815
  {
@@ -818,7 +819,7 @@ function Gn({ className: n = "h-4 w-4", ...r }) {
818
819
  strokeWidth: "2",
819
820
  strokeLinecap: "round",
820
821
  strokeLinejoin: "round",
821
- className: n,
822
+ className: t,
822
823
  "aria-hidden": "true",
823
824
  ...r,
824
825
  children: [
@@ -828,77 +829,77 @@ function Gn({ className: n = "h-4 w-4", ...r }) {
828
829
  }
829
830
  );
830
831
  }
831
- const J = (...n) => n.filter(Boolean).join(" "), Kn = [
832
+ const q = (...t) => t.filter(Boolean).join(" "), ae = [
832
833
  { format: "cif", label: "CIF" },
833
834
  { format: "xsf", label: "XSF" },
834
835
  { format: "xyz", label: "XYZ" }
835
836
  ];
836
- function Oi({
837
- aiida_rest_url: n,
837
+ function ui({
838
+ aiida_rest_url: t,
838
839
  uuid: r,
839
- download_formats: s,
840
- title: a = "Download",
841
- className: o,
840
+ download_formats: o,
841
+ title: s = "Download",
842
+ className: i,
842
843
  classes: _ = {},
843
- ...g
844
+ ...m
844
845
  }) {
845
- const [c, d] = Z(!1), l = bt(null), f = `${n}/nodes/${r}/download`, p = s || Kn;
846
- return tt(() => {
847
- if (!c) return;
848
- const h = (x) => {
849
- l.current && !l.current.contains(x.target) && d(!1);
850
- }, v = (x) => {
851
- x.key === "Escape" && d(!1);
846
+ const [a, g] = E(!1), l = Mt(null), p = `${t}/nodes/${r}/download`, d = o || ae;
847
+ return nt(() => {
848
+ if (!a) return;
849
+ const f = (x) => {
850
+ l.current && !l.current.contains(x.target) && g(!1);
851
+ }, b = (x) => {
852
+ x.key === "Escape" && g(!1);
852
853
  };
853
- return document.addEventListener("pointerdown", h), document.addEventListener("keydown", v), () => {
854
- document.removeEventListener("pointerdown", h), document.removeEventListener("keydown", v);
854
+ return document.addEventListener("pointerdown", f), document.addEventListener("keydown", b), () => {
855
+ document.removeEventListener("pointerdown", f), document.removeEventListener("keydown", b);
855
856
  };
856
- }, [c]), /* @__PURE__ */ e.jsxs(
857
+ }, [a]), /* @__PURE__ */ e.jsxs(
857
858
  "div",
858
859
  {
859
860
  ref: l,
860
- className: J("struct-download", o, _.root),
861
- ...g,
861
+ className: q("struct-download", i, _.root),
862
+ ...m,
862
863
  children: [
863
864
  /* @__PURE__ */ e.jsx(
864
865
  "button",
865
866
  {
866
867
  type: "button",
867
- title: a,
868
- "aria-expanded": c,
868
+ title: s,
869
+ "aria-expanded": a,
869
870
  "aria-haspopup": "menu",
870
- onClick: () => d((h) => !h),
871
- className: J("struct-download__button", _.button),
871
+ onClick: () => g((f) => !f),
872
+ className: q("struct-download__button", _.button),
872
873
  children: /* @__PURE__ */ e.jsx(
873
- yt,
874
+ Ht,
874
875
  {
875
- className: J("struct-download__icon", _.icon)
876
+ className: q("struct-download__icon", _.icon)
876
877
  }
877
878
  )
878
879
  }
879
880
  ),
880
- c && /* @__PURE__ */ e.jsx("div", { className: J("struct-download__dropdown", _.dropdown), children: /* @__PURE__ */ e.jsx(
881
+ a && /* @__PURE__ */ e.jsx("div", { className: q("struct-download__dropdown", _.dropdown), children: /* @__PURE__ */ e.jsx(
881
882
  "ul",
882
883
  {
883
884
  role: "menu",
884
- className: J("struct-download__menu", _.menu),
885
- children: p.map(({ format: h, label: v }) => /* @__PURE__ */ e.jsx(
885
+ className: q("struct-download__menu", _.menu),
886
+ children: d.map(({ format: f, label: b }) => /* @__PURE__ */ e.jsx(
886
887
  "li",
887
888
  {
888
889
  role: "none",
889
- className: J(_.menuItem),
890
- onClick: () => d(!1),
890
+ className: q(_.menuItem),
891
+ onClick: () => g(!1),
891
892
  children: /* @__PURE__ */ e.jsx(
892
893
  "a",
893
894
  {
894
895
  role: "menuitem",
895
- href: `${f}?download_format=${h}`,
896
- className: J(_.menuLink),
897
- children: v
896
+ href: `${p}?download_format=${f}`,
897
+ className: q(_.menuLink),
898
+ children: b
898
899
  }
899
900
  )
900
901
  },
901
- h
902
+ f
902
903
  ))
903
904
  }
904
905
  ) })
@@ -906,31 +907,31 @@ function Oi({
906
907
  }
907
908
  );
908
909
  }
909
- const Qn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAACACAYAAADUHPECAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAdTAAAHUwAGRbQIfAAAAB3RJTUUH4QoMEAcil62xzQAAGc9JREFUeNrtnXl8XVW1x7/r3JvcJC1tgdKWUqADs0CTAk6AAh+GgAzyBBUUKQ8R6GDx4Ud9j6YVWkCeAio2pSLqQxyK4gTSBBApVJDCo4lMMjQpHaAphVI6ZLrnrPfHOjeEtknOvfece8/N5/0+H/j00yb77L3P7+y99tpr/ZYwyKFzRgMCquAIeDoCmARMBmqAQ4B9gD2B3YCU/6udwBbgbWAd8BLwT+A54BUcbxOeYz8pINe1FXuokUKK3YGooHNHgwco4MgwVKcAJwPHAQdhxCjPstlu4B3gFeAx4GFgBcpmxJ4l8wcnYQYdUXT2aDIvDWFf4CzgM8DRwLCQH/ce8CzwO5D7cHQ1nv2DzBtchBk0RFGaoO60DEnGAhcAFwOHAYmIH+8BLwB3Ab/GtiqY14hQXeypCQWDgig6Z4zZIFABfBq4CjgGcArcFQ94Bvg+8EegHRSZt6HYU5Q3Sp4oWjfaSCJyAPCfwOeAIUXu1jZgMXAjyGuoh8wvbbKUNFG0bjSgAnIqcAMwpdh92gErgP/CcxtxElrKdkvJEkXrRoE6ZYheDFwH7F3sPvWB9cBckJ+BdpcqWUqSKLaSkAJmAdcQ/mkmbGwBrsdsl85SJEvJEUVnjwKRcuA/gDqgqth9CojtwHyEm1HtKjUDt9Cngrygc0aBagK4HFtJSoUk+H39L5TLURI6e3Sx+5MVSooodFeA43wamAsMLXZ3csBQYC4i51BeWot5yfTWt0uqsWPnQcXuT554GTvGN5eKvVISK4rW7Q0wAvg2pU8SgIOBa4EROntUsfsSCLEnin59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G9idxF3OKJNnjqKaPELTvaFH7X4lqAKJvr8ZSzrIeq6jGAEWYqV3fsriDkFsyQJ5LEUHtFYScJTvwUZCnocpot6AvbVhLnMdmHHuPuB32JKSelYVCQNip6oNUni6BGYv+VMrBxwmPaeYjKjj2C2yGNYJL3l/8zMLTQ675dZYzq1gCKqSRU5ECPLScBk7MsZkuWzPEwnrRULO3wYeHKv7VXr3qoy5YZU0uOpk+N8qNgFfrwautM2E+1JqEyPxeRIT8VUtcdjIQfZxi5vA97AhIv/BiwFeQXUovAUk8PIA6F99VMaU6gHKpkmNSXIODXVySnA4f5EjPIno9KfkLQ/0E1Y2shrWFJaM8qLKrpe/GRyD/hnXIzVfHH7SvD8uXJU8GQMcAiWTH4kFnC+NxbxVoUfCYIlS2/GUoFXYf6tJuA5RNeg4htqYqevK8JJrvg/1r/N4lnuwIgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTctMTAtMTJUMTY6MDc6MzQrMDI6MDB1PnpAAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE3LTEwLTEyVDE2OjA3OjM0KzAyOjAwBGPC/AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII=", at = (...n) => n.filter(Boolean).join(" ");
910
- function Hi({
911
- explore_url: n,
910
+ const ce = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAACACAYAAADUHPECAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAdTAAAHUwAGRbQIfAAAAB3RJTUUH4QoMEAcil62xzQAAGc9JREFUeNrtnXl8XVW1x7/r3JvcJC1tgdKWUqADs0CTAk6AAh+GgAzyBBUUKQ8R6GDx4Ud9j6YVWkCeAio2pSLqQxyK4gTSBBApVJDCo4lMMjQpHaAphVI6ZLrnrPfHOjeEtknOvfece8/N5/0+H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lS2/GUoFXYf6tJuA5RNeg4htqYqevK8JJrvg/1r/N4lnuwIgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTctMTAtMTJUMTY6MDc6MzQrMDI6MDB1PnpAAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE3LTEwLTEyVDE2OjA3OjM0KzAyOjAwBGPC/AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII=", jt = (...t) => t.filter(Boolean).join(" ");
911
+ function di({
912
+ explore_url: t,
912
913
  uuid: r,
913
- placement: s = "bottom",
914
- tooltip: a,
915
- className: o,
914
+ placement: o = "bottom",
915
+ tooltip: s,
916
+ className: i,
916
917
  classes: _ = {},
917
- ...g
918
+ ...m
918
919
  }) {
919
- const c = `${n}/details/${r}?nodeType=NODE`;
920
- return /* @__PURE__ */ e.jsxs("span", { className: at("explore-button", o, _.root), ...g, children: [
920
+ const a = `${t}/details/${r}?nodeType=NODE`;
921
+ return /* @__PURE__ */ e.jsxs("span", { className: jt("explore-button", i, _.root), ...m, children: [
921
922
  /* @__PURE__ */ e.jsx(
922
923
  "a",
923
924
  {
924
- href: c,
925
+ href: a,
925
926
  target: "_blank",
926
927
  rel: "noreferrer",
927
- className: at("explore-button__link", _.link),
928
+ className: jt("explore-button__link", _.link),
928
929
  children: /* @__PURE__ */ e.jsx(
929
930
  "img",
930
931
  {
931
- src: Qn,
932
+ src: ce,
932
933
  alt: "Explore provenance",
933
- className: at("explore-button__logo", _.logo)
934
+ className: jt("explore-button__logo", _.logo)
934
935
  }
935
936
  )
936
937
  }
@@ -939,9 +940,9 @@ function Hi({
939
940
  "span",
940
941
  {
941
942
  role: "tooltip",
942
- "data-placement": s,
943
- className: at("explore-button__tooltip", _.tooltip),
944
- children: a ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
943
+ "data-placement": o,
944
+ className: jt("explore-button__tooltip", _.tooltip),
945
+ children: s ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
945
946
  "Browse provenance",
946
947
  /* @__PURE__ */ e.jsx("br", {}),
947
948
  r
@@ -950,128 +951,128 @@ function Hi({
950
951
  )
951
952
  ] });
952
953
  }
953
- const Wn = "_toggleSwitchWrapper_i81zd_2", Xn = "_toggleLabel_i81zd_11", qn = "_toggleSwitchContainer_i81zd_16", $n = "_toggleSwitch_i81zd_2", te = "_thumb_i81zd_34", ne = "_toggled_i81zd_46", U = {
954
- toggleSwitchWrapper: Wn,
955
- toggleLabel: Xn,
956
- toggleSwitchContainer: qn,
957
- toggleSwitch: $n,
958
- thumb: te,
959
- toggled: ne
954
+ const le = "_toggleSwitchWrapper_i81zd_2", _e = "_toggleLabel_i81zd_11", me = "_toggleSwitchContainer_i81zd_16", ge = "_toggleSwitch_i81zd_2", ue = "_thumb_i81zd_34", de = "_toggled_i81zd_46", $ = {
955
+ toggleSwitchWrapper: le,
956
+ toggleLabel: _e,
957
+ toggleSwitchContainer: me,
958
+ toggleSwitch: ge,
959
+ thumb: ue,
960
+ toggled: de
960
961
  };
961
- function Li({
962
- switchLength: n = "50px",
962
+ function pi({
963
+ switchLength: t = "50px",
963
964
  labelLeft: r = "Left",
964
- labelRight: s = "Right",
965
- fontSize: a = "12px",
966
- toggled: o,
965
+ labelRight: o = "Right",
966
+ fontSize: s = "12px",
967
+ toggled: i,
967
968
  onToggle: _ = () => {
968
969
  },
969
- labelClassName: g = "",
970
- containerClassName: c = "",
971
- switchClassName: d = "",
970
+ labelClassName: m = "",
971
+ containerClassName: a = "",
972
+ switchClassName: g = "",
972
973
  thumbClassName: l = "",
973
- ...f
974
+ ...p
974
975
  }) {
975
- const [p, h] = Z(!1), v = o !== void 0, x = v ? o : p;
976
- tt(() => {
977
- v && h(o);
978
- }, [o, v]);
979
- const B = () => {
980
- const A = !x;
981
- v || h(A), _(A);
976
+ const [d, f] = E(!1), b = i !== void 0, x = b ? i : d;
977
+ nt(() => {
978
+ b && f(i);
979
+ }, [i, b]);
980
+ const S = () => {
981
+ const P = !x;
982
+ b || f(P), _(P);
982
983
  };
983
984
  return /* @__PURE__ */ e.jsxs(
984
985
  "div",
985
986
  {
986
- className: `${U.toggleSwitchWrapper} ${c}`,
987
- style: { fontSize: a },
988
- ...f,
987
+ className: `${$.toggleSwitchWrapper} ${a}`,
988
+ style: { fontSize: s },
989
+ ...p,
989
990
  children: [
990
- /* @__PURE__ */ e.jsx("span", { className: `${U.toggleLabel} ${g}`, children: r }),
991
- /* @__PURE__ */ e.jsx("div", { className: U.toggleSwitchContainer, children: /* @__PURE__ */ e.jsx(
991
+ /* @__PURE__ */ e.jsx("span", { className: `${$.toggleLabel} ${m}`, children: r }),
992
+ /* @__PURE__ */ e.jsx("div", { className: $.toggleSwitchContainer, children: /* @__PURE__ */ e.jsx(
992
993
  "button",
993
994
  {
994
995
  type: "button",
995
- className: `${U.toggleSwitch} ${x ? U.toggled : ""} ${d}`,
996
- onClick: B,
997
- style: { "--switch-length": n },
998
- children: /* @__PURE__ */ e.jsx("div", { className: `${U.thumb} ${l}` })
996
+ className: `${$.toggleSwitch} ${x ? $.toggled : ""} ${g}`,
997
+ onClick: S,
998
+ style: { "--switch-length": t },
999
+ children: /* @__PURE__ */ e.jsx("div", { className: `${$.thumb} ${l}` })
999
1000
  }
1000
1001
  ) }),
1001
- /* @__PURE__ */ e.jsx("span", { className: `${U.toggleLabel} ${g}`, children: s })
1002
+ /* @__PURE__ */ e.jsx("span", { className: `${$.toggleLabel} ${m}`, children: o })
1002
1003
  ]
1003
1004
  }
1004
1005
  );
1005
1006
  }
1006
- const ee = "_card_6y0jx_1", re = "_header_6y0jx_13", ie = "_body_6y0jx_18", oe = "_footer_6y0jx_23", ct = {
1007
- card: ee,
1008
- header: re,
1009
- body: ie,
1010
- footer: oe
1007
+ const pe = "_card_6y0jx_1", he = "_header_6y0jx_13", fe = "_body_6y0jx_18", ve = "_footer_6y0jx_23", Ct = {
1008
+ card: pe,
1009
+ header: he,
1010
+ body: fe,
1011
+ footer: ve
1011
1012
  };
1012
- function Ji({
1013
- children: n,
1013
+ function hi({
1014
+ children: t,
1014
1015
  header: r,
1015
- footer: s,
1016
- className: a = "",
1017
- childrenClassName: o = "",
1016
+ footer: o,
1017
+ className: s = "",
1018
+ childrenClassName: i = "",
1018
1019
  style: _,
1019
- scrollable: g = !1,
1020
- maxHeight: c,
1021
- ...d
1020
+ scrollable: m = !1,
1021
+ maxHeight: a,
1022
+ ...g
1022
1023
  }) {
1023
1024
  return /* @__PURE__ */ e.jsxs(
1024
1025
  "div",
1025
1026
  {
1026
- className: `${ct.card} ${a}`,
1027
+ className: `${Ct.card} ${s}`,
1027
1028
  style: {
1028
1029
  ..._,
1029
- ...g ? {
1030
- maxHeight: c ?? 400,
1030
+ ...m ? {
1031
+ maxHeight: a ?? 400,
1031
1032
  overflow: "auto"
1032
1033
  } : {}
1033
1034
  },
1034
- ...d,
1035
+ ...g,
1035
1036
  children: [
1036
- r && /* @__PURE__ */ e.jsx("div", { className: ct.header, children: r }),
1037
- /* @__PURE__ */ e.jsx("div", { className: `${ct.body} ${o}`, children: n }),
1038
- s && /* @__PURE__ */ e.jsx("div", { className: ct.footer, children: s })
1037
+ r && /* @__PURE__ */ e.jsx("div", { className: Ct.header, children: r }),
1038
+ /* @__PURE__ */ e.jsx("div", { className: `${Ct.body} ${i}`, children: t }),
1039
+ o && /* @__PURE__ */ e.jsx("div", { className: Ct.footer, children: o })
1039
1040
  ]
1040
1041
  }
1041
1042
  );
1042
1043
  }
1043
- const D = (...n) => n.filter(Boolean).join(" ");
1044
- function Ui({
1045
- onFile: n,
1044
+ const Y = (...t) => t.filter(Boolean).join(" ");
1045
+ function ye({
1046
+ onFile: t,
1046
1047
  accept: r,
1047
- fileName: s,
1048
- disabled: a = !1,
1049
- title: o = "Drop your file here",
1048
+ fileName: o,
1049
+ disabled: s = !1,
1050
+ title: i = "Drop your file here",
1050
1051
  subtitle: _,
1051
- replaceHint: g = "Click or drop another file to replace it",
1052
- hint: c,
1053
- className: d,
1052
+ replaceHint: m = "Click or drop another file to replace it",
1053
+ hint: a,
1054
+ className: g,
1054
1055
  classes: l = {},
1055
- ...f
1056
+ ...p
1056
1057
  }) {
1057
- const p = bt(null), [h, v] = Z(!1), x = (A) => {
1058
- !A || a || n == null || n(A);
1059
- }, B = (A) => {
1060
- var w;
1061
- A.preventDefault(), v(!1), x((w = A.dataTransfer.files) == null ? void 0 : w[0]);
1058
+ const d = Mt(null), [f, b] = E(!1), x = (P) => {
1059
+ !P || s || t == null || t(P);
1060
+ }, S = (P) => {
1061
+ var j;
1062
+ P.preventDefault(), b(!1), x((j = P.dataTransfer.files) == null ? void 0 : j[0]);
1062
1063
  };
1063
- return /* @__PURE__ */ e.jsxs("div", { className: D("mc-dropzone", d, l.root), ...f, children: [
1064
+ return /* @__PURE__ */ e.jsxs("div", { className: Y("mc-dropzone", g, l.root), ...p, children: [
1064
1065
  /* @__PURE__ */ e.jsx(
1065
1066
  "input",
1066
1067
  {
1067
- ref: p,
1068
+ ref: d,
1068
1069
  type: "file",
1069
1070
  accept: r,
1070
- disabled: a,
1071
- className: D(l.input),
1072
- onChange: (A) => {
1073
- var w;
1074
- x((w = A.target.files) == null ? void 0 : w[0]), A.target.value = "";
1071
+ disabled: s,
1072
+ className: Y(l.input),
1073
+ onChange: (P) => {
1074
+ var j;
1075
+ x((j = P.target.files) == null ? void 0 : j[0]), P.target.value = "";
1075
1076
  },
1076
1077
  hidden: !0
1077
1078
  }
@@ -1080,176 +1081,214 @@ function Ui({
1080
1081
  "button",
1081
1082
  {
1082
1083
  type: "button",
1083
- disabled: a,
1084
+ disabled: s,
1084
1085
  onClick: () => {
1085
- var A;
1086
- return (A = p.current) == null ? void 0 : A.click();
1086
+ var P;
1087
+ return (P = d.current) == null ? void 0 : P.click();
1087
1088
  },
1088
- onDragOver: (A) => {
1089
- A.preventDefault(), v(!0);
1089
+ onDragOver: (P) => {
1090
+ P.preventDefault(), b(!0);
1090
1091
  },
1091
- onDragLeave: () => v(!1),
1092
- onDrop: B,
1093
- className: D(
1092
+ onDragLeave: () => b(!1),
1093
+ onDrop: S,
1094
+ className: Y(
1094
1095
  "mc-dropzone__button",
1095
- h && "mc-dropzone__button--dragging",
1096
+ f && "mc-dropzone__button--dragging",
1096
1097
  l.button
1097
1098
  ),
1098
1099
  children: [
1099
- /* @__PURE__ */ e.jsx("span", { className: D("mc-dropzone__icon", l.icon), children: /* @__PURE__ */ e.jsx(Gn, { className: "mc-dropzone__icon-svg" }) }),
1100
- s ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1101
- /* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__title", l.fileName), children: s }),
1102
- /* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__subtitle", l.subtitle), children: g })
1100
+ /* @__PURE__ */ e.jsx("span", { className: Y("mc-dropzone__icon", l.icon), children: /* @__PURE__ */ e.jsx(se, { className: "mc-dropzone__icon-svg" }) }),
1101
+ o ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1102
+ /* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__title", l.fileName), children: o }),
1103
+ /* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__subtitle", l.subtitle), children: m })
1103
1104
  ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1104
- /* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__title", l.title), children: o }),
1105
- /* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__subtitle", l.subtitle), children: _ ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1105
+ /* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__title", l.title), children: i }),
1106
+ /* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__subtitle", l.subtitle), children: _ ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1106
1107
  "or",
1107
1108
  " ",
1108
1109
  /* @__PURE__ */ e.jsx("span", { className: "mc-dropzone__browse", children: "browse your files" })
1109
1110
  ] }) }),
1110
- c && /* @__PURE__ */ e.jsx("p", { className: D("mc-dropzone__hint", l.hint), children: c })
1111
+ a && /* @__PURE__ */ e.jsx("p", { className: Y("mc-dropzone__hint", l.hint), children: a })
1111
1112
  ] })
1112
1113
  ]
1113
1114
  }
1114
1115
  )
1115
1116
  ] });
1116
1117
  }
1117
- const F = (...n) => n.filter(Boolean).join(" ");
1118
- function se(n) {
1119
- if (!n) return null;
1120
- const r = new Date(n);
1121
- return Number.isNaN(r.getTime()) ? String(n) : r.toLocaleString();
1118
+ const M = (...t) => t.filter(Boolean).join(" ");
1119
+ function Pe(t) {
1120
+ if (!t) return null;
1121
+ const r = new Date(t);
1122
+ return Number.isNaN(r.getTime()) ? String(t) : r.toLocaleString();
1122
1123
  }
1123
- function Vi({
1124
- entries: n = [],
1124
+ function be({
1125
+ entries: t = [],
1125
1126
  onLoad: r,
1126
- onDelete: s,
1127
- onClear: a,
1128
- title: o = "History",
1127
+ onDelete: o,
1128
+ onClear: s,
1129
+ title: i = "History",
1129
1130
  clearLabel: _ = "Clear all",
1130
- loadLabel: g = "Load",
1131
- deleteLabel: c = "Delete",
1132
- className: d,
1131
+ loadLabel: m = "Load",
1132
+ deleteLabel: a = "Delete",
1133
+ className: g,
1133
1134
  classes: l = {},
1134
- ...f
1135
+ ...p
1135
1136
  }) {
1136
- return n.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: F("mc-history", d, l.root), ...f, children: [
1137
- /* @__PURE__ */ e.jsxs("div", { className: F("mc-history__header", l.header), children: [
1138
- /* @__PURE__ */ e.jsx("p", { className: F("mc-history__title", l.title), children: o }),
1139
- a && /* @__PURE__ */ e.jsx(
1137
+ return t.length === 0 ? null : /* @__PURE__ */ e.jsxs("div", { className: M("mc-history", g, l.root), ...p, children: [
1138
+ /* @__PURE__ */ e.jsxs("div", { className: M("mc-history__header", l.header), children: [
1139
+ /* @__PURE__ */ e.jsx("p", { className: M("mc-history__title", l.title), children: i }),
1140
+ s && /* @__PURE__ */ e.jsx(
1140
1141
  "button",
1141
1142
  {
1142
1143
  type: "button",
1143
- onClick: a,
1144
- className: F("mc-history__clear", l.clearButton),
1144
+ onClick: s,
1145
+ className: M("mc-history__clear", l.clearButton),
1145
1146
  children: _
1146
1147
  }
1147
1148
  )
1148
1149
  ] }),
1149
- /* @__PURE__ */ e.jsx("ul", { className: F("mc-history__list", l.list), children: n.map((p) => /* @__PURE__ */ e.jsxs(
1150
+ /* @__PURE__ */ e.jsx("ul", { className: M("mc-history__list", l.list), children: t.map((d) => /* @__PURE__ */ e.jsxs(
1150
1151
  "li",
1151
1152
  {
1152
- className: F("mc-history__item", l.item),
1153
+ className: M("mc-history__item", l.item),
1153
1154
  children: [
1154
- /* @__PURE__ */ e.jsxs("div", { className: F("mc-history__details", l.details), children: [
1155
- /* @__PURE__ */ e.jsx("p", { className: F("mc-history__name", l.fileName), children: p.fileName }),
1156
- p.date && /* @__PURE__ */ e.jsx("p", { className: F("mc-history__date", l.date), children: se(p.date) })
1155
+ /* @__PURE__ */ e.jsxs("div", { className: M("mc-history__details", l.details), children: [
1156
+ /* @__PURE__ */ e.jsx("p", { className: M("mc-history__name", l.fileName), children: d.fileName }),
1157
+ d.date && /* @__PURE__ */ e.jsx("p", { className: M("mc-history__date", l.date), children: Pe(d.date) })
1157
1158
  ] }),
1158
- p.format && /* @__PURE__ */ e.jsx("span", { className: F("mc-history__format", l.format), children: String(p.format).toUpperCase() }),
1159
+ d.format && /* @__PURE__ */ e.jsx("span", { className: M("mc-history__format", l.format), children: String(d.format).toUpperCase() }),
1159
1160
  r && /* @__PURE__ */ e.jsx(
1160
1161
  "button",
1161
1162
  {
1162
1163
  type: "button",
1163
- onClick: () => r(p),
1164
- className: F("mc-history__load", l.loadButton),
1165
- children: g
1164
+ onClick: () => r(d),
1165
+ className: M("mc-history__load", l.loadButton),
1166
+ children: m
1166
1167
  }
1167
1168
  ),
1168
- s && /* @__PURE__ */ e.jsx(
1169
+ o && /* @__PURE__ */ e.jsx(
1169
1170
  "button",
1170
1171
  {
1171
1172
  type: "button",
1172
- onClick: () => s(p.id),
1173
- "aria-label": `${c} ${p.fileName}`,
1174
- className: F("mc-history__delete", l.deleteButton),
1175
- children: c
1173
+ onClick: () => o(d.id),
1174
+ "aria-label": `${a} ${d.fileName}`,
1175
+ className: M("mc-history__delete", l.deleteButton),
1176
+ children: a
1176
1177
  }
1177
1178
  )
1178
1179
  ]
1179
1180
  },
1180
- p.id
1181
+ d.id
1181
1182
  )) })
1182
1183
  ] });
1183
1184
  }
1184
- const ae = "#", V = (...n) => n.filter(Boolean).join(" ");
1185
- function ft() {
1186
- const n = typeof window < "u" ? window.location.hash : "";
1187
- return n.startsWith(ae) ? n.slice(1) : n;
1185
+ function pn(t) {
1186
+ var o;
1187
+ const r = (o = String(t).match(
1188
+ /[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/
1189
+ )) == null ? void 0 : o[0];
1190
+ return r ? r.split("-")[0] : null;
1191
+ }
1192
+ function xe(t) {
1193
+ var r;
1194
+ return ((r = t == null ? void 0 : t.data) == null ? void 0 : r.attributes) ?? (t == null ? void 0 : t.data) ?? t;
1195
+ }
1196
+ function we(t) {
1197
+ const r = (t == null ? void 0 : t.data) ?? t;
1198
+ return Array.isArray(r) ? r[0] : r;
1188
1199
  }
1189
- function Yi({
1190
- hash: n,
1200
+ function Ae({
1201
+ onLoaded: t,
1202
+ onError: r,
1203
+ fromURL: o,
1204
+ format: s,
1205
+ autoLoad: i = !0
1206
+ }) {
1207
+ return nt(() => {
1208
+ if (!i) return;
1209
+ const _ = new URLSearchParams(window.location.search), m = o ?? _.get("fromURL");
1210
+ if (!m) return;
1211
+ const a = s ?? _.get("format"), g = _.get("tag");
1212
+ fetch(m).then((l) => l.json()).then((l) => {
1213
+ const p = a === "optimade" ? { structure: Gn(we(l)), format: a } : {
1214
+ structure: Kn(xe(l)),
1215
+ format: "aiida"
1216
+ }, d = g ?? pn(m) ?? new URL(m).pathname.split("/").filter(Boolean).pop() ?? m;
1217
+ t == null || t({ ...p, fileName: d, sourceUrl: m });
1218
+ }).catch(
1219
+ (l) => r == null ? void 0 : r(l instanceof Error ? l.message : String(l))
1220
+ );
1221
+ }, []), null;
1222
+ }
1223
+ const ke = "#", tt = (...t) => t.filter(Boolean).join(" ");
1224
+ function Tt() {
1225
+ const t = typeof window < "u" ? window.location.hash : "";
1226
+ return t.startsWith(ke) ? t.slice(1) : t;
1227
+ }
1228
+ function je({
1229
+ hash: t,
1191
1230
  open: r,
1192
- onClose: s,
1193
- title: a,
1194
- children: o,
1231
+ onClose: o,
1232
+ title: s,
1233
+ children: i,
1195
1234
  maxWidth: _ = "48rem",
1196
- className: g,
1197
- classes: c = {},
1198
- ...d
1235
+ className: m,
1236
+ classes: a = {},
1237
+ ...g
1199
1238
  }) {
1200
- const [l, f] = Z(() => ft() === n);
1201
- tt(() => {
1239
+ const [l, p] = E(() => Tt() === t);
1240
+ nt(() => {
1202
1241
  if (r !== void 0) return;
1203
- const x = () => f(ft() === n);
1242
+ const x = () => p(Tt() === t);
1204
1243
  return x(), window.addEventListener("hashchange", x), () => window.removeEventListener("hashchange", x);
1205
- }, [n, r]);
1206
- const h = r !== void 0 ? r : l, v = () => {
1207
- if (s) {
1208
- s();
1244
+ }, [t, r]);
1245
+ const f = r !== void 0 ? r : l, b = () => {
1246
+ if (o) {
1247
+ o();
1209
1248
  return;
1210
1249
  }
1211
- ft() === n && window.history.replaceState(
1250
+ Tt() === t && window.history.replaceState(
1212
1251
  null,
1213
1252
  "",
1214
1253
  window.location.pathname + window.location.search
1215
- ), f(!1);
1254
+ ), p(!1);
1216
1255
  };
1217
- return tt(() => {
1218
- if (!h) return;
1219
- const x = (B) => {
1220
- B.key === "Escape" && v();
1256
+ return nt(() => {
1257
+ if (!f) return;
1258
+ const x = (S) => {
1259
+ S.key === "Escape" && b();
1221
1260
  };
1222
1261
  return document.addEventListener("keydown", x), () => document.removeEventListener("keydown", x);
1223
- }, [h, s, n]), h ? /* @__PURE__ */ e.jsx(
1262
+ }, [f, o, t]), f ? /* @__PURE__ */ e.jsx(
1224
1263
  "div",
1225
1264
  {
1226
- className: V("hash-modal", g, c.root),
1227
- onClick: v,
1228
- ...d,
1265
+ className: tt("hash-modal", m, a.root),
1266
+ onClick: b,
1267
+ ...g,
1229
1268
  children: /* @__PURE__ */ e.jsxs(
1230
1269
  "div",
1231
1270
  {
1232
- className: V("hash-modal__dialog", c.dialog),
1271
+ className: tt("hash-modal__dialog", a.dialog),
1233
1272
  style: { "--hash-modal-max-width": _ },
1234
1273
  onClick: (x) => x.stopPropagation(),
1235
1274
  role: "dialog",
1236
1275
  "aria-modal": "true",
1237
1276
  children: [
1238
- /* @__PURE__ */ e.jsxs("div", { className: V("hash-modal__header", c.header), children: [
1239
- /* @__PURE__ */ e.jsx("h2", { className: V("hash-modal__title", c.title), children: a }),
1277
+ /* @__PURE__ */ e.jsxs("div", { className: tt("hash-modal__header", a.header), children: [
1278
+ /* @__PURE__ */ e.jsx("h2", { className: tt("hash-modal__title", a.title), children: s }),
1240
1279
  /* @__PURE__ */ e.jsx(
1241
1280
  "button",
1242
1281
  {
1243
1282
  type: "button",
1244
- onClick: v,
1283
+ onClick: b,
1245
1284
  "aria-label": "Close",
1246
- className: V("hash-modal__close", c.closeButton),
1285
+ className: tt("hash-modal__close", a.closeButton),
1247
1286
  children: /* @__PURE__ */ e.jsx(
1248
1287
  "svg",
1249
1288
  {
1250
1289
  viewBox: "0 0 24 24",
1251
1290
  fill: "none",
1252
- className: V("hash-modal__close-icon", c.closeIcon),
1291
+ className: tt("hash-modal__close-icon", a.closeIcon),
1253
1292
  stroke: "currentColor",
1254
1293
  strokeWidth: "2",
1255
1294
  "aria-hidden": "true",
@@ -1259,74 +1298,74 @@ function Yi({
1259
1298
  }
1260
1299
  )
1261
1300
  ] }),
1262
- /* @__PURE__ */ e.jsx("div", { className: V("hash-modal__body", c.body), children: o })
1301
+ /* @__PURE__ */ e.jsx("div", { className: tt("hash-modal__body", a.body), children: i })
1263
1302
  ]
1264
1303
  }
1265
1304
  )
1266
1305
  }
1267
1306
  ) : null;
1268
1307
  }
1269
- const E = (...n) => n.filter(Boolean).join(" ");
1270
- function Gi({
1271
- title: n,
1308
+ const H = (...t) => t.filter(Boolean).join(" ");
1309
+ function fi({
1310
+ title: t,
1272
1311
  text: r,
1273
- filename: s = "text.txt",
1274
- open: a,
1275
- onToggle: o,
1312
+ filename: o = "text.txt",
1313
+ open: s,
1314
+ onToggle: i,
1276
1315
  className: _,
1277
- classes: g = {},
1278
- ...c
1316
+ classes: m = {},
1317
+ ...a
1279
1318
  }) {
1280
- const [d, l] = Z(!0), [f, p] = Z(!1), h = a !== void 0 ? a : d, v = () => {
1281
- const A = !h;
1282
- o ? o(A) : l(A);
1283
- }, x = async (A) => {
1284
- A.stopPropagation();
1319
+ const [g, l] = E(!0), [p, d] = E(!1), f = s !== void 0 ? s : g, b = () => {
1320
+ const P = !f;
1321
+ i ? i(P) : l(P);
1322
+ }, x = async (P) => {
1323
+ P.stopPropagation();
1285
1324
  try {
1286
- await navigator.clipboard.writeText(r), p(!0), setTimeout(() => {
1287
- p(!1);
1325
+ await navigator.clipboard.writeText(r), d(!0), setTimeout(() => {
1326
+ d(!1);
1288
1327
  }, 1500);
1289
1328
  } catch {
1290
- p(!1);
1329
+ d(!1);
1291
1330
  }
1292
- }, B = (A) => {
1293
- A.stopPropagation();
1294
- const w = new Blob([r], {
1331
+ }, S = (P) => {
1332
+ P.stopPropagation();
1333
+ const j = new Blob([r], {
1295
1334
  type: "text/plain;charset=utf-8"
1296
- }), j = URL.createObjectURL(w), T = document.createElement("a");
1297
- T.href = j, T.download = s, document.body.appendChild(T), T.click(), T.remove(), URL.revokeObjectURL(j);
1335
+ }), I = URL.createObjectURL(j), O = document.createElement("a");
1336
+ O.href = I, O.download = o, document.body.appendChild(O), O.click(), O.remove(), URL.revokeObjectURL(I);
1298
1337
  };
1299
1338
  return /* @__PURE__ */ e.jsxs(
1300
1339
  "div",
1301
1340
  {
1302
- className: E(
1341
+ className: H(
1303
1342
  "mc-acc",
1304
1343
  "text-renderer",
1305
- h && "mc-acc--open",
1306
- h && "text-renderer--open",
1344
+ f && "mc-acc--open",
1345
+ f && "text-renderer--open",
1307
1346
  _,
1308
- g.root
1347
+ m.root
1309
1348
  ),
1310
- ...c,
1349
+ ...a,
1311
1350
  children: [
1312
- /* @__PURE__ */ e.jsxs("div", { className: E("text-renderer__header", g.header), children: [
1351
+ /* @__PURE__ */ e.jsxs("div", { className: H("text-renderer__header", m.header), children: [
1313
1352
  /* @__PURE__ */ e.jsxs(
1314
1353
  "button",
1315
1354
  {
1316
1355
  type: "button",
1317
- onClick: v,
1318
- className: E("text-renderer__toggle", g.toggle),
1319
- "aria-expanded": h,
1356
+ onClick: b,
1357
+ className: H("text-renderer__toggle", m.toggle),
1358
+ "aria-expanded": f,
1320
1359
  children: [
1321
- /* @__PURE__ */ e.jsx("span", { className: E("text-renderer__title", g.title), children: n }),
1360
+ /* @__PURE__ */ e.jsx("span", { className: H("text-renderer__title", m.title), children: t }),
1322
1361
  /* @__PURE__ */ e.jsx(
1323
1362
  "span",
1324
1363
  {
1325
- className: E(
1364
+ className: H(
1326
1365
  "mc-acc__chevron",
1327
1366
  "text-renderer__chevron",
1328
- h && "mc-acc__chevron--open",
1329
- g.chevron
1367
+ f && "mc-acc__chevron--open",
1368
+ m.chevron
1330
1369
  ),
1331
1370
  children: /* @__PURE__ */ e.jsx(
1332
1371
  "svg",
@@ -1352,21 +1391,21 @@ function Gi({
1352
1391
  ]
1353
1392
  }
1354
1393
  ),
1355
- /* @__PURE__ */ e.jsxs("div", { className: E("text-renderer__actions", g.actions), children: [
1394
+ /* @__PURE__ */ e.jsxs("div", { className: H("text-renderer__actions", m.actions), children: [
1356
1395
  /* @__PURE__ */ e.jsxs(
1357
1396
  "button",
1358
1397
  {
1359
1398
  type: "button",
1360
1399
  onClick: x,
1361
- className: E(
1400
+ className: H(
1362
1401
  "text-renderer__action",
1363
1402
  "text-renderer__copy-button",
1364
- g.action,
1365
- g.copyButton
1403
+ m.action,
1404
+ m.copyButton
1366
1405
  ),
1367
1406
  children: [
1368
- f ? /* @__PURE__ */ e.jsx(qt, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(Xt, { className: "text-renderer__action-icon" }),
1369
- /* @__PURE__ */ e.jsx("span", { children: f ? "Copied!" : "Copy" })
1407
+ p ? /* @__PURE__ */ e.jsx(dn, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(un, { className: "text-renderer__action-icon" }),
1408
+ /* @__PURE__ */ e.jsx("span", { children: p ? "Copied!" : "Copy" })
1370
1409
  ]
1371
1410
  }
1372
1411
  ),
@@ -1374,15 +1413,15 @@ function Gi({
1374
1413
  "button",
1375
1414
  {
1376
1415
  type: "button",
1377
- onClick: B,
1378
- className: E(
1416
+ onClick: S,
1417
+ className: H(
1379
1418
  "text-renderer__action",
1380
1419
  "text-renderer__download-button",
1381
- g.action,
1382
- g.downloadButton
1420
+ m.action,
1421
+ m.downloadButton
1383
1422
  ),
1384
1423
  children: [
1385
- /* @__PURE__ */ e.jsx(yt, { className: "text-renderer__action-icon" }),
1424
+ /* @__PURE__ */ e.jsx(Ht, { className: "text-renderer__action-icon" }),
1386
1425
  /* @__PURE__ */ e.jsx("span", { children: "Download" })
1387
1426
  ]
1388
1427
  }
@@ -1392,21 +1431,21 @@ function Gi({
1392
1431
  /* @__PURE__ */ e.jsx(
1393
1432
  "div",
1394
1433
  {
1395
- className: E(
1434
+ className: H(
1396
1435
  "mc-acc__collapse",
1397
1436
  "text-renderer__content-wrapper",
1398
- h && "mc-acc__collapse--open",
1399
- g.contentWrapper
1437
+ f && "mc-acc__collapse--open",
1438
+ m.contentWrapper
1400
1439
  ),
1401
1440
  children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
1402
1441
  "div",
1403
1442
  {
1404
- className: E(
1443
+ className: H(
1405
1444
  "mc-acc__panel",
1406
1445
  "text-renderer__content",
1407
- g.content
1446
+ m.content
1408
1447
  ),
1409
- children: /* @__PURE__ */ e.jsx("div", { className: E("text-renderer__scroll", g.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: E("text-renderer__pre", g.pre), children: r }) })
1448
+ children: /* @__PURE__ */ e.jsx("div", { className: H("text-renderer__scroll", m.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: H("text-renderer__pre", m.pre), children: r }) })
1410
1449
  }
1411
1450
  ) })
1412
1451
  }
@@ -1415,68 +1454,68 @@ function Gi({
1415
1454
  }
1416
1455
  );
1417
1456
  }
1418
- const N = (...n) => n.filter(Boolean).join(" ");
1419
- function Ki({
1420
- title: n,
1457
+ const U = (...t) => t.filter(Boolean).join(" ");
1458
+ function vi({
1459
+ title: t,
1421
1460
  text: r,
1422
- filename: s = "text.txt",
1423
- open: a,
1424
- onToggle: o,
1461
+ filename: o = "text.txt",
1462
+ open: s,
1463
+ onToggle: i,
1425
1464
  extraActions: _,
1426
- className: g,
1427
- classes: c = {},
1428
- ...d
1465
+ className: m,
1466
+ classes: a = {},
1467
+ ...g
1429
1468
  }) {
1430
- const [l, f] = Z(!0), [p, h] = Z(!1), v = a !== void 0 ? a : l, x = () => {
1431
- const w = !v;
1432
- o ? o(w) : f(w);
1433
- }, B = async (w) => {
1434
- w.stopPropagation();
1469
+ const [l, p] = E(!0), [d, f] = E(!1), b = s !== void 0 ? s : l, x = () => {
1470
+ const j = !b;
1471
+ i ? i(j) : p(j);
1472
+ }, S = async (j) => {
1473
+ j.stopPropagation();
1435
1474
  try {
1436
- await navigator.clipboard.writeText(r), h(!0), setTimeout(() => {
1437
- h(!1);
1475
+ await navigator.clipboard.writeText(r), f(!0), setTimeout(() => {
1476
+ f(!1);
1438
1477
  }, 1500);
1439
1478
  } catch {
1440
- h(!1);
1479
+ f(!1);
1441
1480
  }
1442
- }, A = (w) => {
1443
- w.stopPropagation();
1444
- const j = new Blob([r], {
1481
+ }, P = (j) => {
1482
+ j.stopPropagation();
1483
+ const I = new Blob([r], {
1445
1484
  type: "text/plain;charset=utf-8"
1446
- }), T = URL.createObjectURL(j), O = document.createElement("a");
1447
- O.href = T, O.download = s, document.body.appendChild(O), O.click(), O.remove(), URL.revokeObjectURL(T);
1485
+ }), O = URL.createObjectURL(I), Z = document.createElement("a");
1486
+ Z.href = O, Z.download = o, document.body.appendChild(Z), Z.click(), Z.remove(), URL.revokeObjectURL(O);
1448
1487
  };
1449
1488
  return /* @__PURE__ */ e.jsxs(
1450
1489
  "div",
1451
1490
  {
1452
- className: N(
1491
+ className: U(
1453
1492
  "mc-acc",
1454
1493
  "text-renderer",
1455
- v && "mc-acc--open",
1456
- v && "text-renderer--open",
1457
- g,
1458
- c.root
1494
+ b && "mc-acc--open",
1495
+ b && "text-renderer--open",
1496
+ m,
1497
+ a.root
1459
1498
  ),
1460
- ...d,
1499
+ ...g,
1461
1500
  children: [
1462
- /* @__PURE__ */ e.jsxs("div", { className: N("text-renderer__header", c.header), children: [
1501
+ /* @__PURE__ */ e.jsxs("div", { className: U("text-renderer__header", a.header), children: [
1463
1502
  /* @__PURE__ */ e.jsxs(
1464
1503
  "button",
1465
1504
  {
1466
1505
  type: "button",
1467
1506
  onClick: x,
1468
- className: N("text-renderer__toggle", c.toggle),
1469
- "aria-expanded": v,
1507
+ className: U("text-renderer__toggle", a.toggle),
1508
+ "aria-expanded": b,
1470
1509
  children: [
1471
- /* @__PURE__ */ e.jsx("span", { className: N("text-renderer__title", c.title), children: n }),
1510
+ /* @__PURE__ */ e.jsx("span", { className: U("text-renderer__title", a.title), children: t }),
1472
1511
  /* @__PURE__ */ e.jsx(
1473
1512
  "span",
1474
1513
  {
1475
- className: N(
1514
+ className: U(
1476
1515
  "mc-acc__chevron",
1477
1516
  "text-renderer__chevron",
1478
- v && "mc-acc__chevron--open",
1479
- c.chevron
1517
+ b && "mc-acc__chevron--open",
1518
+ a.chevron
1480
1519
  ),
1481
1520
  children: /* @__PURE__ */ e.jsx(
1482
1521
  "svg",
@@ -1502,21 +1541,21 @@ function Ki({
1502
1541
  ]
1503
1542
  }
1504
1543
  ),
1505
- /* @__PURE__ */ e.jsxs("div", { className: N("text-renderer__actions", c.actions), children: [
1544
+ /* @__PURE__ */ e.jsxs("div", { className: U("text-renderer__actions", a.actions), children: [
1506
1545
  /* @__PURE__ */ e.jsxs(
1507
1546
  "button",
1508
1547
  {
1509
1548
  type: "button",
1510
- onClick: B,
1511
- className: N(
1549
+ onClick: S,
1550
+ className: U(
1512
1551
  "text-renderer__action",
1513
1552
  "text-renderer__copy-button",
1514
- c.action,
1515
- c.copyButton
1553
+ a.action,
1554
+ a.copyButton
1516
1555
  ),
1517
1556
  children: [
1518
- p ? /* @__PURE__ */ e.jsx(qt, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(Xt, { className: "text-renderer__action-icon" }),
1519
- /* @__PURE__ */ e.jsx("span", { children: p ? "Copied!" : "Copy" })
1557
+ d ? /* @__PURE__ */ e.jsx(dn, { className: "text-renderer__action-icon" }) : /* @__PURE__ */ e.jsx(un, { className: "text-renderer__action-icon" }),
1558
+ /* @__PURE__ */ e.jsx("span", { children: d ? "Copied!" : "Copy" })
1520
1559
  ]
1521
1560
  }
1522
1561
  ),
@@ -1524,15 +1563,15 @@ function Ki({
1524
1563
  "button",
1525
1564
  {
1526
1565
  type: "button",
1527
- onClick: A,
1528
- className: N(
1566
+ onClick: P,
1567
+ className: U(
1529
1568
  "text-renderer__action",
1530
1569
  "text-renderer__download-button",
1531
- c.action,
1532
- c.downloadButton
1570
+ a.action,
1571
+ a.downloadButton
1533
1572
  ),
1534
1573
  children: [
1535
- /* @__PURE__ */ e.jsx(yt, { className: "text-renderer__action-icon" }),
1574
+ /* @__PURE__ */ e.jsx(Ht, { className: "text-renderer__action-icon" }),
1536
1575
  /* @__PURE__ */ e.jsx("span", { children: "Download" })
1537
1576
  ]
1538
1577
  }
@@ -1543,21 +1582,21 @@ function Ki({
1543
1582
  /* @__PURE__ */ e.jsx(
1544
1583
  "div",
1545
1584
  {
1546
- className: N(
1585
+ className: U(
1547
1586
  "mc-acc__collapse",
1548
1587
  "text-renderer__content-wrapper",
1549
- v && "mc-acc__collapse--open",
1550
- c.contentWrapper
1588
+ b && "mc-acc__collapse--open",
1589
+ a.contentWrapper
1551
1590
  ),
1552
1591
  children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
1553
1592
  "div",
1554
1593
  {
1555
- className: N(
1594
+ className: U(
1556
1595
  "mc-acc__panel",
1557
1596
  "text-renderer__content",
1558
- c.content
1597
+ a.content
1559
1598
  ),
1560
- children: /* @__PURE__ */ e.jsx("div", { className: N("text-renderer__scroll", c.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: N("text-renderer__pre", c.pre), children: r }) })
1599
+ children: /* @__PURE__ */ e.jsx("div", { className: U("text-renderer__scroll", a.scroll), children: /* @__PURE__ */ e.jsx("pre", { className: U("text-renderer__pre", a.pre), children: r }) })
1561
1600
  }
1562
1601
  ) })
1563
1602
  }
@@ -1566,46 +1605,46 @@ function Ki({
1566
1605
  }
1567
1606
  );
1568
1607
  }
1569
- const K = (...n) => n.filter(Boolean).join(" ");
1570
- function Qi({
1571
- title: n,
1608
+ const ot = (...t) => t.filter(Boolean).join(" ");
1609
+ function yi({
1610
+ title: t,
1572
1611
  children: r,
1573
- className: s = "",
1574
- open: a,
1575
- onToggle: o,
1612
+ className: o = "",
1613
+ open: s,
1614
+ onToggle: i,
1576
1615
  classes: _ = {},
1577
- ...g
1616
+ ...m
1578
1617
  }) {
1579
- const [c, d] = Z(!0), l = a !== void 0 ? a : c, f = () => {
1580
- const p = !l;
1581
- o ? o(p) : d(p);
1618
+ const [a, g] = E(!0), l = s !== void 0 ? s : a, p = () => {
1619
+ const d = !l;
1620
+ i ? i(d) : g(d);
1582
1621
  };
1583
1622
  return /* @__PURE__ */ e.jsxs(
1584
1623
  "div",
1585
1624
  {
1586
- className: K(
1625
+ className: ot(
1587
1626
  "mc-acc",
1588
1627
  "info-accordion",
1589
1628
  l && "mc-acc--open",
1590
1629
  l && "info-accordion--open",
1591
- s,
1630
+ o,
1592
1631
  _.root
1593
1632
  ),
1594
- ...g,
1633
+ ...m,
1595
1634
  children: [
1596
1635
  /* @__PURE__ */ e.jsxs(
1597
1636
  "button",
1598
1637
  {
1599
1638
  type: "button",
1600
- onClick: f,
1601
- className: K("info-accordion__toggle", _.toggle),
1639
+ onClick: p,
1640
+ className: ot("info-accordion__toggle", _.toggle),
1602
1641
  "aria-expanded": l,
1603
1642
  children: [
1604
- /* @__PURE__ */ e.jsx("span", { className: K("info-accordion__title", _.title), children: n }),
1643
+ /* @__PURE__ */ e.jsx("span", { className: ot("info-accordion__title", _.title), children: t }),
1605
1644
  /* @__PURE__ */ e.jsx(
1606
1645
  "span",
1607
1646
  {
1608
- className: K(
1647
+ className: ot(
1609
1648
  "mc-acc__chevron",
1610
1649
  "info-accordion__chevron",
1611
1650
  l && "mc-acc__chevron--open",
@@ -1638,7 +1677,7 @@ function Qi({
1638
1677
  /* @__PURE__ */ e.jsx(
1639
1678
  "div",
1640
1679
  {
1641
- className: K(
1680
+ className: ot(
1642
1681
  "mc-acc__collapse",
1643
1682
  "info-accordion__content-wrapper",
1644
1683
  l && "mc-acc__collapse--open",
@@ -1647,7 +1686,7 @@ function Qi({
1647
1686
  children: /* @__PURE__ */ e.jsx("div", { className: "mc-acc__collapse-inner", children: /* @__PURE__ */ e.jsx(
1648
1687
  "div",
1649
1688
  {
1650
- className: K(
1689
+ className: ot(
1651
1690
  "mc-acc__panel",
1652
1691
  "info-accordion__content",
1653
1692
  _.content
@@ -1661,658 +1700,981 @@ function Qi({
1661
1700
  }
1662
1701
  );
1663
1702
  }
1664
- function Wi(n) {
1665
- return n.split(/(\d+)/).map((s, a) => s.match(/\d+/) ? /* @__PURE__ */ e.jsx("sub", { children: s }, a) : s);
1666
- }
1667
- const ce = {
1668
- display: "inline-block",
1669
- position: "relative"
1670
- }, _e = {
1671
- position: "absolute",
1672
- top: "0.15em",
1673
- left: 0,
1674
- right: 0,
1675
- borderTop: "0.1em solid black",
1676
- height: 0,
1677
- zIndex: 1
1678
- };
1679
- function Xi(n) {
1680
- let r = !1, s = !1;
1681
- return /* @__PURE__ */ e.jsx("span", { children: n.split("").map((a, o) => a == "-" ? (s = !0, null) : a == "_" ? (r = !0, null) : s ? (s = !1, /* @__PURE__ */ e.jsxs("span", { style: ce, children: [
1682
- /* @__PURE__ */ e.jsx("span", { style: _e }),
1683
- a
1684
- ] }, o)) : r ? (r = !1, /* @__PURE__ */ e.jsx("sub", { children: a }, o)) : a) });
1685
- }
1686
- function qi(n, { maxEntries: r = 50 } = {}) {
1687
- function s() {
1703
+ function Ce(t, { maxEntries: r = 50 } = {}) {
1704
+ function o() {
1688
1705
  try {
1689
- const c = localStorage.getItem(n);
1690
- if (!c) return [];
1691
- const d = JSON.parse(c);
1692
- return Array.isArray(d) ? d : [];
1706
+ const a = localStorage.getItem(t);
1707
+ if (!a) return [];
1708
+ const g = JSON.parse(a);
1709
+ return Array.isArray(g) ? g : [];
1693
1710
  } catch {
1694
1711
  return [];
1695
1712
  }
1696
1713
  }
1697
- function a(c) {
1714
+ function s(a) {
1698
1715
  try {
1699
1716
  return localStorage.setItem(
1700
- n,
1701
- JSON.stringify(c.slice(0, r))
1717
+ t,
1718
+ JSON.stringify(a.slice(0, r))
1702
1719
  ), !0;
1703
1720
  } catch {
1704
1721
  return !1;
1705
1722
  }
1706
1723
  }
1707
- function o(c) {
1708
- const d = [c, ...s().filter((l) => l.id !== c.id)].slice(
1724
+ function i(a) {
1725
+ const g = [a, ...o().filter((l) => l.id !== a.id)].slice(
1709
1726
  0,
1710
1727
  r
1711
1728
  );
1712
- return a(d), d;
1729
+ return s(g), g;
1713
1730
  }
1714
- function _(c) {
1715
- const d = s().filter((l) => l.id !== c);
1716
- return a(d), d;
1731
+ function _(a) {
1732
+ const g = o().filter((l) => l.id !== a);
1733
+ return s(g), g;
1717
1734
  }
1718
- function g() {
1719
- return a([]), [];
1735
+ function m() {
1736
+ return s([]), [];
1720
1737
  }
1721
- return { load: s, save: a, add: o, remove: _, clear: g };
1738
+ return { load: o, save: s, add: i, remove: _, clear: m };
1739
+ }
1740
+ const hn = "structure", Re = 1, Pi = ({ structure: t, fileName: r }) => ({
1741
+ kind: hn,
1742
+ version: Re,
1743
+ fileName: r,
1744
+ structure: gn(t)
1745
+ });
1746
+ function Se(t) {
1747
+ if ((t == null ? void 0 : t.kind) !== hn || !t.structure)
1748
+ throw new Error("this link does not hold a structure");
1749
+ return { structure: Ot(t.structure), fileName: t.fileName };
1750
+ }
1751
+ function Ie() {
1752
+ return /* @__PURE__ */ e.jsxs("div", { className: "mc-structure-upload__terms", children: [
1753
+ /* @__PURE__ */ e.jsx("h3", { children: "Links To Other Web Sites" }),
1754
+ /* @__PURE__ */ e.jsx("p", { children: "Our Service may contain links to third-party web sites or services that are not owned or controlled by us. We have no control over, and assume no responsibility for, the content, privacy policies, or practices of any third party web sites or services. You further acknowledge and agree that we shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such web sites or services." }),
1755
+ /* @__PURE__ */ e.jsx("p", { children: "We strongly advise you to read the terms and conditions and privacy policies of any third-party web sites or services that you visit." }),
1756
+ /* @__PURE__ */ e.jsx("h3", { children: "Changes" }),
1757
+ /* @__PURE__ */ e.jsx("p", { children: "We reserve the right, at our sole discretion, to modify or replace these Terms at any time. By continuing to access or use our Service after those revisions become effective, you agree to be bound by the revised terms. If you do not agree to the new terms, please stop using the Service." }),
1758
+ /* @__PURE__ */ e.jsx("h3", { children: "Contact Us" }),
1759
+ /* @__PURE__ */ e.jsx("p", { children: "If you have any questions about these Terms, please contact us." })
1760
+ ] });
1761
+ }
1762
+ const G = (...t) => t.filter(Boolean).join(" "), Ne = (t) => t.split(/[?#]/)[0].split("/").pop();
1763
+ function bi({
1764
+ onStructureParsed: t,
1765
+ validate: r,
1766
+ historyKey: o,
1767
+ historyTitle: s = "Previously uploaded structures",
1768
+ examples: i = [],
1769
+ examplesTitle: _ = "Otherwise, pick an example",
1770
+ label: m = "Upload a crystal structure",
1771
+ title: a = "Drop your crystal structure here",
1772
+ accept: g = ".cif,.xyz,.vasp,.poscar,.xsf,.in,.pwi",
1773
+ hint: l = "CIF, XYZ, POSCAR, XSF and Quantum ESPRESSO files",
1774
+ terms: p = /* @__PURE__ */ e.jsx(Ie, {}),
1775
+ termsTitle: d = "Terms of service",
1776
+ shareStore: f,
1777
+ className: b,
1778
+ classes: x = {},
1779
+ ...S
1780
+ }) {
1781
+ const P = Yn(
1782
+ () => o ? Ce(o) : null,
1783
+ [o]
1784
+ ), [j, I] = E(null), [O, Z] = E(null), [pt, J] = E(null), [ht, it] = E(() => (P == null ? void 0 : P.load()) ?? []), [st, ft] = E(null), [K] = E(() => {
1785
+ try {
1786
+ const h = new URLSearchParams(window.location.search).get("fromURL"), y = h && pn(h);
1787
+ return y && (P == null ? void 0 : P.load().find((R) => R.fileName === y)) || null;
1788
+ } catch {
1789
+ return null;
1790
+ }
1791
+ }), vt = ({ fileName: h, format: y, structure: R }, { unique: B = !1 } = {}) => {
1792
+ P && (B && P.load().some((W) => W.fileName === h) || it(
1793
+ P.add({
1794
+ id: crypto.randomUUID(),
1795
+ fileName: h,
1796
+ format: y,
1797
+ date: (/* @__PURE__ */ new Date()).toISOString(),
1798
+ structure: gn(R)
1799
+ })
1800
+ ));
1801
+ }, z = (h, { remember: y = !0, fromLink: R = !1 } = {}) => {
1802
+ J(null);
1803
+ try {
1804
+ r == null || r(h.structure);
1805
+ } catch (B) {
1806
+ return J((B == null ? void 0 : B.message) ?? String(B)), !1;
1807
+ }
1808
+ return R || f == null || f.syncAddressBar(null), t == null || t(h), y && vt(h, { unique: R }), !0;
1809
+ };
1810
+ nt(() => {
1811
+ K && z(
1812
+ {
1813
+ format: K.format,
1814
+ structure: Ot(K.structure),
1815
+ fileName: K.fileName
1816
+ },
1817
+ { remember: !1, fromLink: !0 }
1818
+ );
1819
+ const h = f == null ? void 0 : f.idFromLocation();
1820
+ if (!h) return;
1821
+ let y = !1;
1822
+ return Z("shared structure"), f.fetch(h).then((R) => {
1823
+ if (y) return;
1824
+ const { structure: B, fileName: W } = Se(R);
1825
+ z(
1826
+ { format: "shared", structure: B, fileName: W ?? h, shareId: h },
1827
+ { fromLink: !0 }
1828
+ );
1829
+ }).catch((R) => {
1830
+ y || J(`Loading shared structure failed: ${R.message}`);
1831
+ }).finally(() => {
1832
+ y || Z(null);
1833
+ }), () => {
1834
+ y = !0;
1835
+ };
1836
+ }, []);
1837
+ const V = async (h) => {
1838
+ if (h) {
1839
+ I(h), J(null), Z(h.name);
1840
+ try {
1841
+ const y = await h.text(), { format: R, structure: B } = sn(y, {
1842
+ fileName: h.name
1843
+ });
1844
+ z({ format: R, structure: B, fileName: h.name });
1845
+ } catch (y) {
1846
+ J((y == null ? void 0 : y.message) ?? String(y));
1847
+ } finally {
1848
+ Z(null);
1849
+ }
1850
+ }
1851
+ }, Q = ({ structure: h, format: y, fileName: R }) => {
1852
+ z({ format: y, structure: h, fileName: R }, { fromLink: !0 });
1853
+ }, yt = (h) => {
1854
+ try {
1855
+ z(
1856
+ {
1857
+ format: h.format,
1858
+ structure: Ot(h.structure),
1859
+ fileName: h.fileName
1860
+ },
1861
+ { remember: !1 }
1862
+ );
1863
+ } catch (y) {
1864
+ J((y == null ? void 0 : y.message) ?? String(y));
1865
+ }
1866
+ }, Pt = async (h) => {
1867
+ J(null), ft(h.url);
1868
+ try {
1869
+ const y = await fetch(h.url);
1870
+ if (!y.ok) throw new Error(`Failed to load example (${y.status})`);
1871
+ const R = h.fileName ?? Ne(h.url), { format: B, structure: W } = sn(await y.text(), {
1872
+ fileName: R
1873
+ });
1874
+ z({ format: B, structure: W, fileName: R }, { remember: !1 });
1875
+ } catch (y) {
1876
+ J((y == null ? void 0 : y.message) ?? String(y));
1877
+ } finally {
1878
+ ft(null);
1879
+ }
1880
+ }, at = i.some((h) => h.family) ? Object.entries(
1881
+ i.reduce((h, y) => {
1882
+ var R;
1883
+ return (h[R = y.family ?? "Other"] || (h[R] = [])).push(y), h;
1884
+ }, {})
1885
+ ) : null, ct = (h) => /* @__PURE__ */ e.jsx("option", { value: h.url, children: h.label }, h.url);
1886
+ return /* @__PURE__ */ e.jsxs("div", { className: G("mc-structure-upload", b, x.root), ...S, children: [
1887
+ /* @__PURE__ */ e.jsx("label", { className: G("mc-structure-upload__label", x.label), children: m }),
1888
+ /* @__PURE__ */ e.jsx(
1889
+ ye,
1890
+ {
1891
+ accept: g,
1892
+ fileName: j == null ? void 0 : j.name,
1893
+ onFile: V,
1894
+ title: a,
1895
+ hint: l
1896
+ }
1897
+ ),
1898
+ p && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1899
+ /* @__PURE__ */ e.jsxs("p", { className: G("mc-structure-upload__agree", x.agree), children: [
1900
+ "By continuing you agree to our ",
1901
+ /* @__PURE__ */ e.jsx("a", { href: "#terms", children: d })
1902
+ ] }),
1903
+ /* @__PURE__ */ e.jsx(je, { hash: "terms", title: d, children: p })
1904
+ ] }),
1905
+ O && /* @__PURE__ */ e.jsxs("p", { className: G("mc-structure-upload__status", x.status), children: [
1906
+ /* @__PURE__ */ e.jsx("span", { className: "mc-structure-upload__spinner" }),
1907
+ "Loading ",
1908
+ O,
1909
+ "…"
1910
+ ] }),
1911
+ pt && /* @__PURE__ */ e.jsx("p", { className: G("mc-structure-upload__error", x.error), children: pt }),
1912
+ /* @__PURE__ */ e.jsx(
1913
+ Ae,
1914
+ {
1915
+ autoLoad: !K,
1916
+ onLoaded: Q,
1917
+ onError: (h) => J(h)
1918
+ }
1919
+ ),
1920
+ i.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: G("mc-structure-upload__examples", x.examples), children: [
1921
+ /* @__PURE__ */ e.jsx("p", { className: "mc-structure-upload__examples-title", children: _ }),
1922
+ /* @__PURE__ */ e.jsxs(
1923
+ "select",
1924
+ {
1925
+ value: "",
1926
+ onChange: (h) => {
1927
+ const y = i.find((R) => R.url === h.target.value);
1928
+ y && Pt(y);
1929
+ },
1930
+ disabled: st !== null,
1931
+ className: G("mc-structure-upload__select", x.select),
1932
+ children: [
1933
+ /* @__PURE__ */ e.jsx("option", { value: "", children: st ? "Loading example…" : "Select an example…" }),
1934
+ at ? at.map(([h, y]) => /* @__PURE__ */ e.jsx("optgroup", { label: h, children: y.map(ct) }, h)) : i.map(ct)
1935
+ ]
1936
+ }
1937
+ )
1938
+ ] }),
1939
+ ht.length > 0 && /* @__PURE__ */ e.jsx(
1940
+ be,
1941
+ {
1942
+ className: G("mc-structure-upload__history", x.history),
1943
+ title: s,
1944
+ entries: ht,
1945
+ onLoad: yt,
1946
+ onDelete: (h) => it(P.remove(h)),
1947
+ onClear: () => it(P.clear())
1948
+ }
1949
+ )
1950
+ ] });
1951
+ }
1952
+ const ut = (...t) => t.filter(Boolean).join(" "), ln = { status: "idle" };
1953
+ function xi({
1954
+ store: t,
1955
+ data: r,
1956
+ toDocument: o = (p) => p,
1957
+ shareId: s,
1958
+ onShared: i,
1959
+ label: _ = "Share",
1960
+ busyLabel: m = "Sharing…",
1961
+ className: a,
1962
+ classes: g = {},
1963
+ ...l
1964
+ }) {
1965
+ const [p, d] = E(ln), [f, b] = E(r);
1966
+ if (r !== f && (b(r), d(ln)), !(t != null && t.enabled) || !r) return null;
1967
+ const x = async () => {
1968
+ d({ status: "uploading" });
1969
+ try {
1970
+ const S = p.id ?? s ?? await t.upload(o(r));
1971
+ t.syncAddressBar(S), S !== s && (i == null || i(S));
1972
+ const P = t.linkFor(S);
1973
+ let j = !1;
1974
+ try {
1975
+ await navigator.clipboard.writeText(P), j = !0;
1976
+ } catch {
1977
+ }
1978
+ d({ status: "done", id: S, link: P, copied: j });
1979
+ } catch (S) {
1980
+ d({ status: "error", message: (S == null ? void 0 : S.message) ?? String(S) });
1981
+ }
1982
+ };
1983
+ return /* @__PURE__ */ e.jsxs("div", { className: ut("mc-share", a, g.root), ...l, children: [
1984
+ /* @__PURE__ */ e.jsx(
1985
+ "button",
1986
+ {
1987
+ type: "button",
1988
+ onClick: x,
1989
+ disabled: p.status === "uploading",
1990
+ className: ut("mc-share__button", g.button),
1991
+ children: p.status === "uploading" ? m : _
1992
+ }
1993
+ ),
1994
+ p.status === "done" && /* @__PURE__ */ e.jsxs("span", { className: ut("mc-share__link", g.link), children: [
1995
+ p.copied ? "Link copied: " : "Link: ",
1996
+ /* @__PURE__ */ e.jsx("a", { href: p.link, children: p.link })
1997
+ ] }),
1998
+ p.status === "error" && /* @__PURE__ */ e.jsxs("span", { className: ut("mc-share__error", g.error), children: [
1999
+ "Sharing failed: ",
2000
+ p.message
2001
+ ] }),
2002
+ t.name !== "production" && /* @__PURE__ */ e.jsxs("span", { className: ut("mc-share__store", g.store), children: [
2003
+ "(",
2004
+ t.name,
2005
+ " share store)"
2006
+ ] })
2007
+ ] });
2008
+ }
2009
+ function wi(t) {
2010
+ return t.split(/(\d+)/).map((o, s) => o.match(/\d+/) ? /* @__PURE__ */ e.jsx("sub", { children: o }, s) : o);
2011
+ }
2012
+ const Fe = {
2013
+ display: "inline-block",
2014
+ position: "relative"
2015
+ }, Ee = {
2016
+ position: "absolute",
2017
+ top: "0.15em",
2018
+ left: 0,
2019
+ right: 0,
2020
+ borderTop: "0.1em solid black",
2021
+ height: 0,
2022
+ zIndex: 1
2023
+ };
2024
+ function Ai(t) {
2025
+ let r = !1, o = !1;
2026
+ return /* @__PURE__ */ e.jsx("span", { children: t.split("").map((s, i) => s == "-" ? (o = !0, null) : s == "_" ? (r = !0, null) : o ? (o = !1, /* @__PURE__ */ e.jsxs("span", { style: Fe, children: [
2027
+ /* @__PURE__ */ e.jsx("span", { style: Ee }),
2028
+ s
2029
+ ] }, i)) : r ? (r = !1, /* @__PURE__ */ e.jsx("sub", { children: s }, i)) : s) });
2030
+ }
2031
+ const Dt = {
2032
+ dev: "https://kv-store.dev.materialscloud.org",
2033
+ production: "https://kv-store.materialscloud.org"
2034
+ }, ze = /^[A-Za-z0-9_-]+$/, _n = () => window.location.origin + window.location.pathname;
2035
+ function ki(t) {
2036
+ const r = t ? Dt[t] ?? (/^https?:\/\//.test(t) ? t : null) : null;
2037
+ if (t && !r)
2038
+ throw new Error(
2039
+ `Unknown share store '${t}' (expected: ${Object.keys(Dt).join(", ")} or a URL)`
2040
+ );
2041
+ const o = r !== null, s = o ? Dt[t] ? t : r : null, i = o ? `${r.replace(/\/+$/, "")}/api/shares` : null;
2042
+ function _() {
2043
+ if (!o) return null;
2044
+ const d = [...new URLSearchParams(window.location.search)].find(
2045
+ ([f, b]) => b === "" && ze.test(f)
2046
+ );
2047
+ return d ? d[0] : null;
2048
+ }
2049
+ const m = (p) => `${_n()}?${p}`;
2050
+ function a(p) {
2051
+ if (!o) return;
2052
+ const d = p ? m(p) : _n();
2053
+ window.history.replaceState(null, "", d + window.location.hash);
2054
+ }
2055
+ async function g(p) {
2056
+ if (!o) throw new Error("sharing is not enabled");
2057
+ const d = await fetch(i, {
2058
+ method: "POST",
2059
+ headers: { "Content-Type": "application/json" },
2060
+ body: JSON.stringify(p)
2061
+ });
2062
+ if (d.status === 413) throw new Error("this data is too large to share");
2063
+ if (!d.ok) throw new Error(`share service returned ${d.status}`);
2064
+ const { id: f } = await d.json();
2065
+ return f;
2066
+ }
2067
+ async function l(p) {
2068
+ if (!o) throw new Error("sharing is not enabled");
2069
+ const d = await fetch(`${i}/${encodeURIComponent(p)}`);
2070
+ if (d.status === 404)
2071
+ throw new Error("shared data not found (links expire after 30 days)");
2072
+ if (!d.ok) throw new Error(`could not load shared data (${d.status})`);
2073
+ return d.json();
2074
+ }
2075
+ return {
2076
+ enabled: o,
2077
+ name: s,
2078
+ idFromLocation: _,
2079
+ linkFor: m,
2080
+ syncAddressBar: a,
2081
+ upload: g,
2082
+ fetch: l
2083
+ };
1722
2084
  }
1723
- function $t(n) {
1724
- return Math.sqrt(n.reduce((r, s) => r + s * s, 0));
2085
+ function fn(t) {
2086
+ return Math.sqrt(t.reduce((r, o) => r + o * o, 0));
1725
2087
  }
1726
- function tn(n, r) {
1727
- return n.reduce((s, a, o) => s + a * r[o], 0);
2088
+ function vn(t, r) {
2089
+ return t.reduce((o, s, i) => o + s * r[i], 0);
1728
2090
  }
1729
- function le(n) {
1730
- return n[0].map((r, s) => n.map((a) => a[s]));
2091
+ function Be(t) {
2092
+ return t[0].map((r, o) => t.map((s) => s[o]));
1731
2093
  }
1732
- function me(n, r) {
1733
- return n.map((s) => s.map((a) => a * r));
2094
+ function Te(t, r) {
2095
+ return t.map((o) => o.map((s) => s * r));
1734
2096
  }
1735
- function ge(n) {
2097
+ function De(t) {
1736
2098
  return Array.from(
1737
- { length: n },
1738
- (r, s) => Array.from({ length: n }, (a, o) => s === o ? 1 : 0)
2099
+ { length: t },
2100
+ (r, o) => Array.from({ length: t }, (s, i) => o === i ? 1 : 0)
1739
2101
  );
1740
2102
  }
1741
- function de(n, r) {
1742
- for (var s = [], a = 0; a < n.length; a++) {
1743
- s[a] = [];
1744
- for (var o = 0; o < r[0].length; o++) {
1745
- for (var _ = 0, g = 0; g < n[0].length; g++)
1746
- _ += n[a][g] * r[g][o];
1747
- s[a][o] = _;
2103
+ function Oe(t, r) {
2104
+ for (var o = [], s = 0; s < t.length; s++) {
2105
+ o[s] = [];
2106
+ for (var i = 0; i < r[0].length; i++) {
2107
+ for (var _ = 0, m = 0; m < t[0].length; m++)
2108
+ _ += t[s][m] * r[m][i];
2109
+ o[s][i] = _;
1748
2110
  }
1749
2111
  }
1750
- return s;
2112
+ return o;
1751
2113
  }
1752
- function ue(n) {
1753
- const r = n.length, s = n.map((o) => $t(o)), a = Array.from({ length: r }, () => Array(r).fill(0));
1754
- for (let o = 0; o < r; o++)
2114
+ function Ze(t) {
2115
+ const r = t.length, o = t.map((i) => fn(i)), s = Array.from({ length: r }, () => Array(r).fill(0));
2116
+ for (let i = 0; i < r; i++)
1755
2117
  for (let _ = 0; _ < r; _++) {
1756
- if (o === _) {
1757
- a[o][_] = 0;
2118
+ if (i === _) {
2119
+ s[i][_] = 0;
1758
2120
  continue;
1759
2121
  }
1760
- const g = tn(n[o], n[_]), c = s[o], d = s[_];
1761
- if (c > 0 && d > 0) {
1762
- let l = g / (c * d);
2122
+ const m = vn(t[i], t[_]), a = o[i], g = o[_];
2123
+ if (a > 0 && g > 0) {
2124
+ let l = m / (a * g);
1763
2125
  l = Math.max(-1, Math.min(1, l));
1764
- const f = Math.acos(l);
1765
- a[o][_] = f * (180 / Math.PI);
2126
+ const p = Math.acos(l);
2127
+ s[i][_] = p * (180 / Math.PI);
1766
2128
  } else
1767
- a[o][_] = null;
2129
+ s[i][_] = null;
1768
2130
  }
1769
- return { lengths: s, angles: a };
2131
+ return { lengths: o, angles: s };
1770
2132
  }
1771
- function pe(n) {
1772
- const r = n.length, s = n.map((o) => o.slice()), a = Array.from(
2133
+ function Le(t) {
2134
+ const r = t.length, o = t.map((i) => i.slice()), s = Array.from(
1773
2135
  { length: r },
1774
- (o, _) => Array.from({ length: r }, (g, c) => _ === c ? 1 : 0)
2136
+ (i, _) => Array.from({ length: r }, (m, a) => _ === a ? 1 : 0)
1775
2137
  );
1776
- for (let o = 0; o < r; o++) {
1777
- let _ = o;
1778
- for (let c = o + 1; c < r; c++)
1779
- Math.abs(s[c][o]) > Math.abs(s[_][o]) && (_ = c);
1780
- if ([s[o], s[_]] = [s[_], s[o]], [a[o], a[_]] = [a[_], a[o]], s[o][o] === 0)
2138
+ for (let i = 0; i < r; i++) {
2139
+ let _ = i;
2140
+ for (let a = i + 1; a < r; a++)
2141
+ Math.abs(o[a][i]) > Math.abs(o[_][i]) && (_ = a);
2142
+ if ([o[i], o[_]] = [o[_], o[i]], [s[i], s[_]] = [s[_], s[i]], o[i][i] === 0)
1781
2143
  throw new Error("Matrix is singular and cannot be inverted.");
1782
- const g = s[o][o];
1783
- for (let c = 0; c < r; c++)
1784
- s[o][c] /= g, a[o][c] /= g;
1785
- for (let c = 0; c < r; c++) {
1786
- if (c === o) continue;
1787
- const d = s[c][o];
2144
+ const m = o[i][i];
2145
+ for (let a = 0; a < r; a++)
2146
+ o[i][a] /= m, s[i][a] /= m;
2147
+ for (let a = 0; a < r; a++) {
2148
+ if (a === i) continue;
2149
+ const g = o[a][i];
1788
2150
  for (let l = 0; l < r; l++)
1789
- s[c][l] -= d * s[o][l], a[c][l] -= d * a[o][l];
2151
+ o[a][l] -= g * o[i][l], s[a][l] -= g * s[i][l];
1790
2152
  }
1791
2153
  }
1792
- return a;
2154
+ return s;
1793
2155
  }
1794
- function nn(n) {
1795
- const r = n.length;
1796
- if (r === 1) return n[0][0];
2156
+ function yn(t) {
2157
+ const r = t.length;
2158
+ if (r === 1) return t[0][0];
1797
2159
  if (r === 2)
1798
- return n[0][0] * n[1][1] - n[0][1] * n[1][0];
1799
- let s = 0;
1800
- for (let a = 0; a < r; a++) {
1801
- const o = n.slice(1).map((g) => g.filter((c, d) => d !== a)), _ = a % 2 === 0 ? 1 : -1;
1802
- s += _ * n[0][a] * nn(o);
2160
+ return t[0][0] * t[1][1] - t[0][1] * t[1][0];
2161
+ let o = 0;
2162
+ for (let s = 0; s < r; s++) {
2163
+ const i = t.slice(1).map((m) => m.filter((a, g) => g !== s)), _ = s % 2 === 0 ? 1 : -1;
2164
+ o += _ * t[0][s] * yn(i);
1803
2165
  }
1804
- return s;
2166
+ return o;
1805
2167
  }
1806
- const $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2168
+ const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1807
2169
  __proto__: null,
1808
- determinant: nn,
1809
- dot: tn,
1810
- getMatrixParams: ue,
1811
- identityMatrix: ge,
1812
- invertMatrix: pe,
1813
- multiplyMatrices: de,
1814
- norm: $t,
1815
- scalarMultiply: me,
1816
- transpose: le
1817
- }, Symbol.toStringTag, { value: "Module" })), he = {
2170
+ determinant: yn,
2171
+ dot: vn,
2172
+ getMatrixParams: Ze,
2173
+ identityMatrix: De,
2174
+ invertMatrix: Le,
2175
+ multiplyMatrices: Oe,
2176
+ norm: fn,
2177
+ scalarMultiply: Te,
2178
+ transpose: Be
2179
+ }, Symbol.toStringTag, { value: "Module" })), Me = {
1818
2180
  Z: 1,
1819
2181
  mz: 1.00794
1820
- }, fe = {
2182
+ }, He = {
1821
2183
  Z: 2,
1822
2184
  mz: 4.002602
1823
- }, Pe = {
2185
+ }, Ue = {
1824
2186
  Z: 3,
1825
2187
  mz: 6.941
1826
- }, ve = {
2188
+ }, Je = {
1827
2189
  Z: 4,
1828
2190
  mz: 9.012182
1829
- }, be = {
2191
+ }, Ve = {
1830
2192
  Z: 5,
1831
2193
  mz: 10.811
1832
- }, ye = {
2194
+ }, Ye = {
1833
2195
  Z: 6,
1834
2196
  mz: 12.0107
1835
- }, xe = {
2197
+ }, Ge = {
1836
2198
  Z: 7,
1837
2199
  mz: 14.0067
1838
- }, Ae = {
2200
+ }, Ke = {
1839
2201
  Z: 8,
1840
2202
  mz: 15.9994
1841
- }, ke = {
2203
+ }, Qe = {
1842
2204
  Z: 9,
1843
2205
  mz: 18.9984032
1844
- }, we = {
2206
+ }, We = {
1845
2207
  Z: 10,
1846
2208
  mz: 20.1797
1847
- }, Ce = {
2209
+ }, Xe = {
1848
2210
  Z: 11,
1849
2211
  mz: 22.98976928
1850
- }, je = {
2212
+ }, qe = {
1851
2213
  Z: 12,
1852
2214
  mz: 24.305
1853
- }, Ie = {
2215
+ }, $e = {
1854
2216
  Z: 13,
1855
2217
  mz: 26.9815386
1856
- }, Re = {
2218
+ }, tr = {
1857
2219
  Z: 14,
1858
2220
  mz: 28.0855
1859
- }, Se = {
2221
+ }, nr = {
1860
2222
  Z: 15,
1861
2223
  mz: 30.973762
1862
- }, ze = {
2224
+ }, er = {
1863
2225
  Z: 16,
1864
2226
  mz: 32.065
1865
- }, Fe = {
2227
+ }, rr = {
1866
2228
  Z: 17,
1867
2229
  mz: 35.453
1868
- }, Ee = {
2230
+ }, or = {
1869
2231
  Z: 18,
1870
2232
  mz: 39.948
1871
- }, Ne = {
2233
+ }, ir = {
1872
2234
  Z: 19,
1873
2235
  mz: 39.0983
1874
- }, Be = {
2236
+ }, sr = {
1875
2237
  Z: 20,
1876
2238
  mz: 40.078
1877
- }, Te = {
2239
+ }, ar = {
1878
2240
  Z: 21,
1879
2241
  mz: 44.955912
1880
- }, Ze = {
2242
+ }, cr = {
1881
2243
  Z: 22,
1882
2244
  mz: 47.867
1883
- }, De = {
2245
+ }, lr = {
1884
2246
  Z: 23,
1885
2247
  mz: 50.9415
1886
- }, Me = {
2248
+ }, _r = {
1887
2249
  Z: 24,
1888
2250
  mz: 51.9961
1889
- }, Oe = {
2251
+ }, mr = {
1890
2252
  Z: 25,
1891
2253
  mz: 54.938045
1892
- }, He = {
2254
+ }, gr = {
1893
2255
  Z: 26,
1894
2256
  mz: 55.845
1895
- }, Le = {
2257
+ }, ur = {
1896
2258
  Z: 27,
1897
2259
  mz: 58.933195
1898
- }, Je = {
2260
+ }, dr = {
1899
2261
  Z: 28,
1900
2262
  mz: 58.6934
1901
- }, Ue = {
2263
+ }, pr = {
1902
2264
  Z: 29,
1903
2265
  mz: 63.546
1904
- }, Ve = {
2266
+ }, hr = {
1905
2267
  Z: 30,
1906
2268
  mz: 65.409
1907
- }, Ye = {
2269
+ }, fr = {
1908
2270
  Z: 31,
1909
2271
  mz: 69.723
1910
- }, Ge = {
2272
+ }, vr = {
1911
2273
  Z: 32,
1912
2274
  mz: 72.64
1913
- }, Ke = {
2275
+ }, yr = {
1914
2276
  Z: 33,
1915
2277
  mz: 74.9216
1916
- }, Qe = {
2278
+ }, Pr = {
1917
2279
  Z: 34,
1918
2280
  mz: 78.96
1919
- }, We = {
2281
+ }, br = {
1920
2282
  Z: 35,
1921
2283
  mz: 79.904
1922
- }, Xe = {
2284
+ }, xr = {
1923
2285
  Z: 36,
1924
2286
  mz: 83.798
1925
- }, qe = {
2287
+ }, wr = {
1926
2288
  Z: 37,
1927
2289
  mz: 85.4678
1928
- }, $e = {
2290
+ }, Ar = {
1929
2291
  Z: 38,
1930
2292
  mz: 87.62
1931
- }, tr = {
2293
+ }, kr = {
1932
2294
  Z: 39,
1933
2295
  mz: 88.90585
1934
- }, nr = {
2296
+ }, jr = {
1935
2297
  Z: 40,
1936
2298
  mz: 91.224
1937
- }, er = {
2299
+ }, Cr = {
1938
2300
  Z: 41,
1939
2301
  mz: 92.90638
1940
- }, rr = {
2302
+ }, Rr = {
1941
2303
  Z: 42,
1942
2304
  mz: 95.94
1943
- }, ir = {
2305
+ }, Sr = {
1944
2306
  Z: 43,
1945
2307
  mz: 98
1946
- }, or = {
2308
+ }, Ir = {
1947
2309
  Z: 44,
1948
2310
  mz: 101.07
1949
- }, sr = {
2311
+ }, Nr = {
1950
2312
  Z: 45,
1951
2313
  mz: 102.9055
1952
- }, ar = {
2314
+ }, Fr = {
1953
2315
  Z: 46,
1954
2316
  mz: 106.42
1955
- }, cr = {
2317
+ }, Er = {
1956
2318
  Z: 47,
1957
2319
  mz: 107.8682
1958
- }, _r = {
2320
+ }, zr = {
1959
2321
  Z: 48,
1960
2322
  mz: 112.411
1961
- }, lr = {
2323
+ }, Br = {
1962
2324
  Z: 49,
1963
2325
  mz: 114.818
1964
- }, mr = {
2326
+ }, Tr = {
1965
2327
  Z: 50,
1966
2328
  mz: 118.71
1967
- }, gr = {
2329
+ }, Dr = {
1968
2330
  Z: 51,
1969
2331
  mz: 121.76
1970
- }, dr = {
2332
+ }, Or = {
1971
2333
  Z: 52,
1972
2334
  mz: 127.6
1973
- }, ur = {
2335
+ }, Zr = {
1974
2336
  Z: 53,
1975
2337
  mz: 126.90447
1976
- }, pr = {
2338
+ }, Lr = {
1977
2339
  Z: 54,
1978
2340
  mz: 131.293
1979
- }, hr = {
2341
+ }, Mr = {
1980
2342
  Z: 55,
1981
2343
  mz: 132.9054519
1982
- }, fr = {
2344
+ }, Hr = {
1983
2345
  Z: 56,
1984
2346
  mz: 137.327
1985
- }, Pr = {
2347
+ }, Ur = {
1986
2348
  Z: 57,
1987
2349
  mz: 138.90547
1988
- }, vr = {
2350
+ }, Jr = {
1989
2351
  Z: 58,
1990
2352
  mz: 140.116
1991
- }, br = {
2353
+ }, Vr = {
1992
2354
  Z: 59,
1993
2355
  mz: 140.90765
1994
- }, yr = {
2356
+ }, Yr = {
1995
2357
  Z: 60,
1996
2358
  mz: 144.242
1997
- }, xr = {
2359
+ }, Gr = {
1998
2360
  Z: 61,
1999
2361
  mz: 145
2000
- }, Ar = {
2362
+ }, Kr = {
2001
2363
  Z: 62,
2002
2364
  mz: 150.36
2003
- }, kr = {
2365
+ }, Qr = {
2004
2366
  Z: 63,
2005
2367
  mz: 151.964
2006
- }, wr = {
2368
+ }, Wr = {
2007
2369
  Z: 64,
2008
2370
  mz: 157.25
2009
- }, Cr = {
2371
+ }, Xr = {
2010
2372
  Z: 65,
2011
2373
  mz: 158.92535
2012
- }, jr = {
2374
+ }, qr = {
2013
2375
  Z: 66,
2014
2376
  mz: 162.5
2015
- }, Ir = {
2377
+ }, $r = {
2016
2378
  Z: 67,
2017
2379
  mz: 164.93032
2018
- }, Rr = {
2380
+ }, to = {
2019
2381
  Z: 68,
2020
2382
  mz: 167.259
2021
- }, Sr = {
2383
+ }, no = {
2022
2384
  Z: 69,
2023
2385
  mz: 168.93421
2024
- }, zr = {
2386
+ }, eo = {
2025
2387
  Z: 70,
2026
2388
  mz: 173.04
2027
- }, Fr = {
2389
+ }, ro = {
2028
2390
  Z: 71,
2029
2391
  mz: 174.967
2030
- }, Er = {
2392
+ }, oo = {
2031
2393
  Z: 72,
2032
2394
  mz: 178.49
2033
- }, Nr = {
2395
+ }, io = {
2034
2396
  Z: 73,
2035
2397
  mz: 180.94788
2036
- }, Br = {
2398
+ }, so = {
2037
2399
  Z: 74,
2038
2400
  mz: 183.84
2039
- }, Tr = {
2401
+ }, ao = {
2040
2402
  Z: 75,
2041
2403
  mz: 186.207
2042
- }, Zr = {
2404
+ }, co = {
2043
2405
  Z: 76,
2044
2406
  mz: 190.23
2045
- }, Dr = {
2407
+ }, lo = {
2046
2408
  Z: 77,
2047
2409
  mz: 192.217
2048
- }, Mr = {
2410
+ }, _o = {
2049
2411
  Z: 78,
2050
2412
  mz: 195.084
2051
- }, Or = {
2413
+ }, mo = {
2052
2414
  Z: 79,
2053
2415
  mz: 196.966569
2054
- }, Hr = {
2416
+ }, go = {
2055
2417
  Z: 80,
2056
2418
  mz: 200.59
2057
- }, Lr = {
2419
+ }, uo = {
2058
2420
  Z: 81,
2059
2421
  mz: 204.3833
2060
- }, Jr = {
2422
+ }, po = {
2061
2423
  Z: 82,
2062
2424
  mz: 207.2
2063
- }, Ur = {
2425
+ }, ho = {
2064
2426
  Z: 83,
2065
2427
  mz: 208.9804
2066
- }, Vr = {
2428
+ }, fo = {
2067
2429
  Z: 84,
2068
2430
  mz: 210
2069
- }, Yr = {
2431
+ }, vo = {
2070
2432
  Z: 85,
2071
2433
  mz: 210
2072
- }, Gr = {
2434
+ }, yo = {
2073
2435
  Z: 86,
2074
2436
  mz: 220
2075
- }, Kr = {
2437
+ }, Po = {
2076
2438
  Z: 87,
2077
2439
  mz: 223
2078
- }, Qr = {
2440
+ }, bo = {
2079
2441
  Z: 88,
2080
2442
  mz: 226
2081
- }, Wr = {
2443
+ }, xo = {
2082
2444
  Z: 89,
2083
2445
  mz: 227
2084
- }, Xr = {
2446
+ }, wo = {
2085
2447
  Z: 90,
2086
2448
  mz: 232.03806
2087
- }, qr = {
2449
+ }, Ao = {
2088
2450
  Z: 91,
2089
2451
  mz: 231.03588
2090
- }, $r = {
2452
+ }, ko = {
2091
2453
  Z: 92,
2092
2454
  mz: 238.02891
2093
- }, ti = {
2455
+ }, jo = {
2094
2456
  Z: 93,
2095
2457
  mz: 237
2096
- }, ni = {
2458
+ }, Co = {
2097
2459
  Z: 94,
2098
2460
  mz: 244
2099
- }, ei = {
2461
+ }, Ro = {
2100
2462
  Z: 95,
2101
2463
  mz: 243
2102
- }, ri = {
2464
+ }, So = {
2103
2465
  Z: 96,
2104
2466
  mz: 247
2105
- }, ii = {
2467
+ }, Io = {
2106
2468
  Z: 97,
2107
2469
  mz: 247
2108
- }, oi = {
2470
+ }, No = {
2109
2471
  Z: 98,
2110
2472
  mz: 251
2111
- }, si = {
2473
+ }, Fo = {
2112
2474
  Z: 99,
2113
2475
  mz: 252
2114
- }, ai = {
2476
+ }, Eo = {
2115
2477
  Z: 100,
2116
2478
  mz: 257
2117
- }, ci = {
2479
+ }, zo = {
2118
2480
  Z: 101,
2119
2481
  mz: 258
2120
- }, _i = {
2482
+ }, Bo = {
2121
2483
  Z: 102,
2122
2484
  mz: 259
2123
- }, li = {
2485
+ }, To = {
2124
2486
  Z: 103,
2125
2487
  mz: 262
2126
- }, mi = {
2488
+ }, Do = {
2127
2489
  Z: 104,
2128
2490
  mz: 267
2129
- }, gi = {
2491
+ }, Oo = {
2130
2492
  Z: 105,
2131
2493
  mz: 268
2132
- }, di = {
2494
+ }, Zo = {
2133
2495
  Z: 106,
2134
2496
  mz: 269
2135
- }, ui = {
2497
+ }, Lo = {
2136
2498
  Z: 107,
2137
2499
  mz: 270
2138
- }, pi = {
2500
+ }, Mo = {
2139
2501
  Z: 108,
2140
2502
  mz: 270
2141
- }, hi = {
2503
+ }, Ho = {
2142
2504
  Z: 109,
2143
2505
  mz: 278
2144
- }, fi = {
2506
+ }, Uo = {
2145
2507
  Z: 110,
2146
2508
  mz: 281
2147
- }, Pi = {
2509
+ }, Jo = {
2148
2510
  Z: 111,
2149
2511
  mz: 282
2150
- }, vi = {
2512
+ }, Vo = {
2151
2513
  Z: 112,
2152
2514
  mz: 285
2153
- }, bi = {
2515
+ }, Yo = {
2154
2516
  Z: 113,
2155
2517
  mz: 286
2156
- }, yi = {
2518
+ }, Go = {
2157
2519
  Z: 114,
2158
2520
  mz: 289
2159
- }, xi = {
2521
+ }, Ko = {
2160
2522
  Z: 115,
2161
2523
  mz: 290
2162
- }, Ai = {
2524
+ }, Qo = {
2163
2525
  Z: 116,
2164
2526
  mz: 293
2165
- }, ki = {
2527
+ }, Wo = {
2166
2528
  Z: 117,
2167
2529
  mz: 294
2168
- }, wi = {
2530
+ }, Xo = {
2169
2531
  Z: 118,
2170
2532
  mz: 294
2171
- }, Ci = {
2172
- H: he,
2173
- He: fe,
2174
- Li: Pe,
2175
- Be: ve,
2176
- B: be,
2177
- C: ye,
2178
- N: xe,
2179
- O: Ae,
2180
- F: ke,
2181
- Ne: we,
2182
- Na: Ce,
2183
- Mg: je,
2184
- Al: Ie,
2185
- Si: Re,
2186
- P: Se,
2187
- S: ze,
2188
- Cl: Fe,
2189
- Ar: Ee,
2190
- K: Ne,
2191
- Ca: Be,
2192
- Sc: Te,
2193
- Ti: Ze,
2194
- V: De,
2195
- Cr: Me,
2196
- Mn: Oe,
2197
- Fe: He,
2198
- Co: Le,
2199
- Ni: Je,
2200
- Cu: Ue,
2201
- Zn: Ve,
2202
- Ga: Ye,
2203
- Ge,
2204
- As: Ke,
2205
- Se: Qe,
2206
- Br: We,
2207
- Kr: Xe,
2208
- Rb: qe,
2209
- Sr: $e,
2210
- Y: tr,
2211
- Zr: nr,
2212
- Nb: er,
2213
- Mo: rr,
2214
- Tc: ir,
2215
- Ru: or,
2216
- Rh: sr,
2217
- Pd: ar,
2218
- Ag: cr,
2219
- Cd: _r,
2220
- In: lr,
2221
- Sn: mr,
2222
- Sb: gr,
2223
- Te: dr,
2224
- I: ur,
2225
- Xe: pr,
2226
- Cs: hr,
2227
- Ba: fr,
2228
- La: Pr,
2229
- Ce: vr,
2230
- Pr: br,
2231
- Nd: yr,
2232
- Pm: xr,
2233
- Sm: Ar,
2234
- Eu: kr,
2235
- Gd: wr,
2236
- Tb: Cr,
2237
- Dy: jr,
2238
- Ho: Ir,
2239
- Er: Rr,
2240
- Tm: Sr,
2241
- Yb: zr,
2242
- Lu: Fr,
2243
- Hf: Er,
2244
- Ta: Nr,
2245
- W: Br,
2246
- Re: Tr,
2247
- Os: Zr,
2248
- Ir: Dr,
2249
- Pt: Mr,
2250
- Au: Or,
2251
- Hg: Hr,
2252
- Tl: Lr,
2253
- Pb: Jr,
2254
- Bi: Ur,
2255
- Po: Vr,
2256
- At: Yr,
2257
- Rn: Gr,
2258
- Fr: Kr,
2259
- Ra: Qr,
2260
- Ac: Wr,
2261
- Th: Xr,
2262
- Pa: qr,
2263
- U: $r,
2264
- Np: ti,
2265
- Pu: ni,
2266
- Am: ei,
2267
- Cm: ri,
2268
- Bk: ii,
2269
- Cf: oi,
2270
- Es: si,
2271
- Fm: ai,
2272
- Md: ci,
2273
- No: _i,
2274
- Lr: li,
2275
- Rf: mi,
2276
- Db: gi,
2277
- Sg: di,
2278
- Bh: ui,
2279
- Hs: pi,
2280
- Mt: hi,
2281
- Ds: fi,
2282
- Rg: Pi,
2283
- Cn: vi,
2284
- Nh: bi,
2285
- Fl: yi,
2286
- Mc: xi,
2287
- Lv: Ai,
2288
- Ts: ki,
2289
- Og: wi
2533
+ }, qo = {
2534
+ H: Me,
2535
+ He,
2536
+ Li: Ue,
2537
+ Be: Je,
2538
+ B: Ve,
2539
+ C: Ye,
2540
+ N: Ge,
2541
+ O: Ke,
2542
+ F: Qe,
2543
+ Ne: We,
2544
+ Na: Xe,
2545
+ Mg: qe,
2546
+ Al: $e,
2547
+ Si: tr,
2548
+ P: nr,
2549
+ S: er,
2550
+ Cl: rr,
2551
+ Ar: or,
2552
+ K: ir,
2553
+ Ca: sr,
2554
+ Sc: ar,
2555
+ Ti: cr,
2556
+ V: lr,
2557
+ Cr: _r,
2558
+ Mn: mr,
2559
+ Fe: gr,
2560
+ Co: ur,
2561
+ Ni: dr,
2562
+ Cu: pr,
2563
+ Zn: hr,
2564
+ Ga: fr,
2565
+ Ge: vr,
2566
+ As: yr,
2567
+ Se: Pr,
2568
+ Br: br,
2569
+ Kr: xr,
2570
+ Rb: wr,
2571
+ Sr: Ar,
2572
+ Y: kr,
2573
+ Zr: jr,
2574
+ Nb: Cr,
2575
+ Mo: Rr,
2576
+ Tc: Sr,
2577
+ Ru: Ir,
2578
+ Rh: Nr,
2579
+ Pd: Fr,
2580
+ Ag: Er,
2581
+ Cd: zr,
2582
+ In: Br,
2583
+ Sn: Tr,
2584
+ Sb: Dr,
2585
+ Te: Or,
2586
+ I: Zr,
2587
+ Xe: Lr,
2588
+ Cs: Mr,
2589
+ Ba: Hr,
2590
+ La: Ur,
2591
+ Ce: Jr,
2592
+ Pr: Vr,
2593
+ Nd: Yr,
2594
+ Pm: Gr,
2595
+ Sm: Kr,
2596
+ Eu: Qr,
2597
+ Gd: Wr,
2598
+ Tb: Xr,
2599
+ Dy: qr,
2600
+ Ho: $r,
2601
+ Er: to,
2602
+ Tm: no,
2603
+ Yb: eo,
2604
+ Lu: ro,
2605
+ Hf: oo,
2606
+ Ta: io,
2607
+ W: so,
2608
+ Re: ao,
2609
+ Os: co,
2610
+ Ir: lo,
2611
+ Pt: _o,
2612
+ Au: mo,
2613
+ Hg: go,
2614
+ Tl: uo,
2615
+ Pb: po,
2616
+ Bi: ho,
2617
+ Po: fo,
2618
+ At: vo,
2619
+ Rn: yo,
2620
+ Fr: Po,
2621
+ Ra: bo,
2622
+ Ac: xo,
2623
+ Th: wo,
2624
+ Pa: Ao,
2625
+ U: ko,
2626
+ Np: jo,
2627
+ Pu: Co,
2628
+ Am: Ro,
2629
+ Cm: So,
2630
+ Bk: Io,
2631
+ Cf: No,
2632
+ Es: Fo,
2633
+ Fm: Eo,
2634
+ Md: zo,
2635
+ No: Bo,
2636
+ Lr: To,
2637
+ Rf: Do,
2638
+ Db: Oo,
2639
+ Sg: Zo,
2640
+ Bh: Lo,
2641
+ Hs: Mo,
2642
+ Mt: Ho,
2643
+ Ds: Uo,
2644
+ Rg: Jo,
2645
+ Cn: Vo,
2646
+ Nh: Yo,
2647
+ Fl: Go,
2648
+ Mc: Ko,
2649
+ Lv: Qo,
2650
+ Ts: Wo,
2651
+ Og: Xo
2290
2652
  };
2291
- function ji(n) {
2292
- var r = n.split(/(?=[A-Z])/), s = 0;
2293
- return r.forEach((a) => {
2294
- let o = a.match(/\d+/), _ = o == null ? 1 : parseInt(o[0]);
2295
- s += _;
2296
- }), s;
2653
+ function $o(t) {
2654
+ var r = t.split(/(?=[A-Z])/), o = 0;
2655
+ return r.forEach((s) => {
2656
+ let i = s.match(/\d+/), _ = i == null ? 1 : parseInt(i[0]);
2657
+ o += _;
2658
+ }), o;
2297
2659
  }
2298
- function Ii(n) {
2299
- return n.split(/(?=[A-Z])/).length;
2660
+ function ti(t) {
2661
+ return t.split(/(?=[A-Z])/).length;
2300
2662
  }
2301
- function Ri(n, r) {
2302
- var s = n.split(/(?=[A-Z])/);
2303
- let a = 0;
2304
- return s.forEach((o) => {
2663
+ function ni(t, r) {
2664
+ var o = t.split(/(?=[A-Z])/);
2665
+ let s = 0;
2666
+ return o.forEach((i) => {
2305
2667
  var l;
2306
- const _ = o.match(/([a-zA-Z]+)(\d*)/), g = _[1], c = parseInt(_[2] || "1"), d = ((l = Ci[g]) == null ? void 0 : l.mz) || 0;
2307
- a += d * c;
2308
- }), Math.round(a * 1e4 / (r.value * 6.0223));
2668
+ const _ = i.match(/([a-zA-Z]+)(\d*)/), m = _[1], a = parseInt(_[2] || "1"), g = ((l = qo[m]) == null ? void 0 : l.mz) || 0;
2669
+ s += g * a;
2670
+ }), Math.round(s * 1e4 / (r.value * 6.0223));
2309
2671
  }
2310
- const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2672
+ const Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2311
2673
  __proto__: null,
2312
- calculateDensity: Ri,
2313
- countNumberOfAtoms: ji,
2314
- countNumberOfElements: Ii
2315
- }, Symbol.toStringTag, { value: "Module" })), vt = {
2674
+ calculateDensity: ni,
2675
+ countNumberOfAtoms: $o,
2676
+ countNumberOfElements: ti
2677
+ }, Symbol.toStringTag, { value: "Module" })), Lt = {
2316
2678
  1: {
2317
2679
  pg_int: "1",
2318
2680
  sg_int: "P1",
@@ -3463,14 +3825,14 @@ const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3463
3825
  sg_int: "Ia-3d",
3464
3826
  sg_int_short: "Ia-3d"
3465
3827
  }
3466
- }, xt = {
3828
+ }, Ut = {
3467
3829
  a: "triclinic",
3468
3830
  m: "monoclinic",
3469
3831
  o: "orthorhombic",
3470
3832
  t: "tetragonal",
3471
3833
  h: "hexagonal",
3472
3834
  c: "cubic"
3473
- }, Si = {
3835
+ }, ei = {
3474
3836
  aP: "triclinic",
3475
3837
  mP: "simple monoclinic",
3476
3838
  mS: "base-centered monoclinic",
@@ -3486,60 +3848,60 @@ const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3486
3848
  cI: "body-centered cubic",
3487
3849
  cF: "face-centered cubic"
3488
3850
  };
3489
- function nt(n) {
3490
- if (n < 1 || n > 230)
3491
- throw new Error(`Invalid space group number ${n}`);
3492
- return n < 3 ? "a" : n < 16 ? "m" : n < 75 ? "o" : n < 143 ? "t" : n < 195 ? "h" : "c";
3851
+ function dt(t) {
3852
+ if (t < 1 || t > 230)
3853
+ throw new Error(`Invalid space group number ${t}`);
3854
+ return t < 3 ? "a" : t < 16 ? "m" : t < 75 ? "o" : t < 143 ? "t" : t < 195 ? "h" : "c";
3493
3855
  }
3494
- function zi(n) {
3495
- return n > 142 && n < 168 ? "trigonal" : xt[nt(n)];
3856
+ function ri(t) {
3857
+ return t > 142 && t < 168 ? "trigonal" : Ut[dt(t)];
3496
3858
  }
3497
- function Fi(n) {
3498
- return [146, 148, 155, 160, 161, 166, 167].includes(n) ? "rhombohedral" : xt[nt(n)];
3859
+ function oi(t) {
3860
+ return [146, 148, 155, 160, 161, 166, 167].includes(t) ? "rhombohedral" : Ut[dt(t)];
3499
3861
  }
3500
- function Ei(n) {
3501
- let r = vt[n.toString()].sg_int_short.charAt(0), s = r;
3502
- ["A", "C"].includes(r) && (s = "S");
3503
- let a = nt(n) + s;
3504
- return [a, Si[a]];
3862
+ function ii(t) {
3863
+ let r = Lt[t.toString()].sg_int_short.charAt(0), o = r;
3864
+ ["A", "C"].includes(r) && (o = "S");
3865
+ let s = dt(t) + o;
3866
+ return [s, ei[s]];
3505
3867
  }
3506
- function no(n) {
3507
- if (n < 1 || n > 230)
3508
- throw new Error(`Invalid space group number ${n}`);
3509
- let r = Ei(n);
3868
+ function Ri(t) {
3869
+ if (t < 1 || t > 230)
3870
+ throw new Error(`Invalid space group number ${t}`);
3871
+ let r = ii(t);
3510
3872
  return {
3511
- space_group_symbol: vt[n.toString()].sg_int_short,
3512
- point_group_symbol: vt[n.toString()].pg_int,
3513
- crystal_family_pearson: nt(n),
3514
- crystal_family: xt[nt(n)],
3515
- crystal_system: zi(n),
3516
- lattice_system: Fi(n),
3873
+ space_group_symbol: Lt[t.toString()].sg_int_short,
3874
+ point_group_symbol: Lt[t.toString()].pg_int,
3875
+ crystal_family_pearson: dt(t),
3876
+ crystal_family: Ut[dt(t)],
3877
+ crystal_system: ri(t),
3878
+ lattice_system: oi(t),
3517
3879
  bravais_lattice_pearson: r[0],
3518
3880
  bravais_lattice: r[1]
3519
3881
  };
3520
3882
  }
3521
- function eo(n) {
3522
- return n.includes("P") ? [
3883
+ function Si(t) {
3884
+ return t.includes("P") ? [
3523
3885
  [1, 0, 0],
3524
3886
  [0, 1, 0],
3525
3887
  [0, 0, 1]
3526
- ] : n.includes("I") ? [
3888
+ ] : t.includes("I") ? [
3527
3889
  [0, 1, 1],
3528
3890
  [1, 0, 1],
3529
3891
  [1, 1, 0]
3530
- ] : n.includes("F") ? [
3892
+ ] : t.includes("F") ? [
3531
3893
  [-1, 1, 1],
3532
3894
  [1, -1, 1],
3533
3895
  [1, 1, -1]
3534
- ] : n.includes("A") ? [
3896
+ ] : t.includes("A") ? [
3535
3897
  [1, 1, 0],
3536
3898
  [-1, 1, 0],
3537
3899
  [0, 0, 1]
3538
- ] : n.includes("R") ? [
3900
+ ] : t.includes("R") ? [
3539
3901
  [-1, 1, 0],
3540
3902
  [1, 1, -1],
3541
3903
  [1, 1, 1]
3542
- ] : n.includes("C") ? n in ["C2", "CmCc", "C2/m", "C2/c"] ? [
3904
+ ] : t.includes("C") ? t in ["C2", "CmCc", "C2/m", "C2/c"] ? [
3543
3905
  [1, -1, 0],
3544
3906
  [1, 1, 0],
3545
3907
  [0, 0, 1]
@@ -3547,32 +3909,40 @@ function eo(n) {
3547
3909
  [1, -1, 0],
3548
3910
  [1, 1, 0],
3549
3911
  [0, 0, 1]
3550
- ] : (console.log("Missing Space group data for:", n), [
3912
+ ] : (console.log("Missing Space group data for:", t), [
3551
3913
  [1, 0, 0],
3552
3914
  [0, 1, 0],
3553
3915
  [0, 0, 1]
3554
3916
  ]);
3555
3917
  }
3556
3918
  export {
3557
- Zi as DoiBadge,
3558
- Hi as ExploreButton,
3559
- Yi as HashModal,
3560
- Di as HelpButton,
3561
- Gi as McCopyAccordion,
3562
- Ki as McCopyExtraAccordion,
3563
- Ui as McDropzone,
3564
- Vi as McHistoryList,
3565
- Qi as McInfoAccordion,
3566
- Ji as McloudCard,
3567
- Mi as McloudSpinner,
3568
- Oi as StructDownloadButton,
3569
- Ti as TestButton,
3570
- Li as ToggleSwitch,
3571
- qi as createHistoryStore,
3572
- Wi as formatChemicalFormula,
3573
- Xi as formatSpaceGroupSymbol,
3574
- to as formula,
3575
- eo as getPrimToConvMatrix,
3576
- no as getSymmetryInfo,
3577
- $i as matrix
3919
+ _i as DoiBadge,
3920
+ di as ExploreButton,
3921
+ je as HashModal,
3922
+ mi as HelpButton,
3923
+ fi as McCopyAccordion,
3924
+ vi as McCopyExtraAccordion,
3925
+ ye as McDropzone,
3926
+ be as McHistoryList,
3927
+ yi as McInfoAccordion,
3928
+ xi as McShareButton,
3929
+ bi as McStructureUpload,
3930
+ hi as McloudCard,
3931
+ gi as McloudSpinner,
3932
+ Ae as RemoteStructureLoader,
3933
+ Dt as SHARE_STORES,
3934
+ ui as StructDownloadButton,
3935
+ li as TestButton,
3936
+ pi as ToggleSwitch,
3937
+ Ce as createHistoryStore,
3938
+ ki as createShareStore,
3939
+ wi as formatChemicalFormula,
3940
+ Ai as formatSpaceGroupSymbol,
3941
+ Ci as formula,
3942
+ Se as fromStructureShare,
3943
+ Si as getPrimToConvMatrix,
3944
+ Ri as getSymmetryInfo,
3945
+ ji as matrix,
3946
+ pn as shortHashForUrl,
3947
+ Pi as toStructureShare
3578
3948
  };