@hybridcore/ui 1.5.13 → 1.5.16

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.
Files changed (42) hide show
  1. package/dist/{DialogContent-CtA2aNum.js → DialogContent-B8pD_s9h.js} +1 -1
  2. package/dist/{Modal-DzZo-vlm.js → Modal-DpmJpbob.js} +206 -195
  3. package/dist/{Select-ush_fSWy.js → Select-DuyWoyoF.js} +1 -1
  4. package/dist/{TextField-BjFXx91l.js → TextField-CdKnj6de.js} +1 -1
  5. package/dist/assets/index3.css +1 -0
  6. package/dist/components/confirm/dialog.js +2 -2
  7. package/dist/components/confirm/index.js +1 -1
  8. package/dist/components/document-viewer/components/action-buttons/index.js +21 -0
  9. package/dist/components/document-viewer/components/navigation/index.js +26 -0
  10. package/dist/components/document-viewer/components/viewer/custom-renders/txt.js +5 -0
  11. package/dist/components/document-viewer/components/viewer/index.js +38 -0
  12. package/dist/components/document-viewer/data.js +4 -0
  13. package/dist/components/document-viewer/index.js +52 -0
  14. package/dist/components/document-viewer/logic.js +44 -0
  15. package/dist/components/document-viewer/styled.js +39 -0
  16. package/dist/components/document-viewer/utils.js +25 -0
  17. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  18. package/dist/components/instance-form/components/variable/index.js +7 -7
  19. package/dist/components/instance-form/components/variables/index.js +1 -1
  20. package/dist/components/property-mapping/index.js +1 -1
  21. package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
  22. package/dist/components/range-selector/components/date-range/index.js +1 -1
  23. package/dist/components/range-selector/index.js +1 -1
  24. package/dist/components/template-form/components/property-list/index.js +3 -3
  25. package/dist/components/template-form/components/property-list/property-list-form.js +3 -3
  26. package/dist/components/template-form/components/recognition-property-list/index.js +2 -2
  27. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +2 -2
  28. package/dist/components/template-form/index.js +2 -2
  29. package/dist/components/template-property-filters/property.js +1 -1
  30. package/dist/components/tree-select/index.js +2 -2
  31. package/dist/{dialog-BDt1r9fh.js → dialog-C7_6_FBz.js} +1 -1
  32. package/dist/empty-GlqisfcO-GlqisfcO.js +4 -0
  33. package/dist/index-4HENfCPg-CwPLzyfw.js +3350 -0
  34. package/dist/index-BepDdkdq-BilQlvph.js +42 -0
  35. package/dist/{index-CAaDu0NI.js → index-CNMnXD0q.js} +1349 -1338
  36. package/dist/{index-D-mTkx9Q.js → index-CdecY907.js} +63 -61
  37. package/dist/main.d.ts +12 -0
  38. package/dist/main.js +54 -52
  39. package/dist/{property-list-form-CLSTkOmv.js → property-list-form-DALcsCp5.js} +92 -104
  40. package/dist/txt-U0b7DL6j.js +19250 -0
  41. package/dist/url-DQYFKQ_E-BH63-AZh.js +558 -0
  42. package/package.json +2 -1
@@ -0,0 +1,558 @@
1
+ import { r as ot, J as It } from "./txt-U0b7DL6j.js";
2
+ var rt = { exports: {} };
3
+ /*! https://mths.be/punycode v1.4.1 by @mathias */
4
+ rt.exports;
5
+ (function(t, r) {
6
+ (function(e) {
7
+ var o = r && !r.nodeType && r, a = t && !t.nodeType && t, f = typeof ot == "object" && ot;
8
+ (f.global === f || f.window === f || f.self === f) && (e = f);
9
+ var p, n = 2147483647, c = 36, m = 1, w = 26, _ = 38, y = 700, l = 72, O = 128, z = "-", U = /^xn--/, H = /[^\x20-\x7E]/, h = /[\x2E\u3002\uFF0E\uFF61]/g, g = {
10
+ overflow: "Overflow: input needs wider integers to process",
11
+ "not-basic": "Illegal input >= 0x80 (not a basic code point)",
12
+ "invalid-input": "Invalid input"
13
+ }, C = c - m, d = Math.floor, j = String.fromCharCode, J;
14
+ function A(s) {
15
+ throw new RangeError(g[s]);
16
+ }
17
+ function T(s, i) {
18
+ for (var u = s.length, v = []; u--; )
19
+ v[u] = i(s[u]);
20
+ return v;
21
+ }
22
+ function k(s, i) {
23
+ var u = s.split("@"), v = "";
24
+ u.length > 1 && (v = u[0] + "@", s = u[1]), s = s.replace(h, ".");
25
+ var b = s.split("."), I = T(b, i).join(".");
26
+ return v + I;
27
+ }
28
+ function V(s) {
29
+ for (var i = [], u = 0, v = s.length, b, I; u < v; )
30
+ b = s.charCodeAt(u++), b >= 55296 && b <= 56319 && u < v ? (I = s.charCodeAt(u++), (I & 64512) == 56320 ? i.push(((b & 1023) << 10) + (I & 1023) + 65536) : (i.push(b), u--)) : i.push(b);
31
+ return i;
32
+ }
33
+ function tt(s) {
34
+ return T(s, function(i) {
35
+ var u = "";
36
+ return i > 65535 && (i -= 65536, u += j(i >>> 10 & 1023 | 55296), i = 56320 | i & 1023), u += j(i), u;
37
+ }).join("");
38
+ }
39
+ function K(s) {
40
+ return s - 48 < 10 ? s - 22 : s - 65 < 26 ? s - 65 : s - 97 < 26 ? s - 97 : c;
41
+ }
42
+ function Y(s, i) {
43
+ return s + 22 + 75 * (s < 26) - ((i != 0) << 5);
44
+ }
45
+ function Q(s, i, u) {
46
+ var v = 0;
47
+ for (s = u ? d(s / y) : s >> 1, s += d(s / i); s > C * w >> 1; v += c)
48
+ s = d(s / C);
49
+ return d(v + (C + 1) * s / (s + _));
50
+ }
51
+ function B(s) {
52
+ var i = [], u = s.length, v, b = 0, I = O, R = l, q, E, F, $, x, S, P, Z, M;
53
+ for (q = s.lastIndexOf(z), q < 0 && (q = 0), E = 0; E < q; ++E)
54
+ s.charCodeAt(E) >= 128 && A("not-basic"), i.push(s.charCodeAt(E));
55
+ for (F = q > 0 ? q + 1 : 0; F < u; ) {
56
+ for ($ = b, x = 1, S = c; F >= u && A("invalid-input"), P = K(s.charCodeAt(F++)), (P >= c || P > d((n - b) / x)) && A("overflow"), b += P * x, Z = S <= R ? m : S >= R + w ? w : S - R, !(P < Z); S += c)
57
+ M = c - Z, x > d(n / M) && A("overflow"), x *= M;
58
+ v = i.length + 1, R = Q(b - $, v, $ == 0), d(b / v) > n - I && A("overflow"), I += d(b / v), b %= v, i.splice(b++, 0, I);
59
+ }
60
+ return tt(i);
61
+ }
62
+ function et(s) {
63
+ var i, u, v, b, I, R, q, E, F, $, x, S = [], P, Z, M, nt;
64
+ for (s = V(s), P = s.length, i = O, u = 0, I = l, R = 0; R < P; ++R)
65
+ x = s[R], x < 128 && S.push(j(x));
66
+ for (v = b = S.length, b && S.push(z); v < P; ) {
67
+ for (q = n, R = 0; R < P; ++R)
68
+ x = s[R], x >= i && x < q && (q = x);
69
+ for (Z = v + 1, q - i > d((n - u) / Z) && A("overflow"), u += (q - i) * Z, i = q, R = 0; R < P; ++R)
70
+ if (x = s[R], x < i && ++u > n && A("overflow"), x == i) {
71
+ for (E = u, F = c; $ = F <= I ? m : F >= I + w ? w : F - I, !(E < $); F += c)
72
+ nt = E - $, M = c - $, S.push(
73
+ j(Y($ + nt % M, 0))
74
+ ), E = d(nt / M);
75
+ S.push(j(Y(E, 0))), I = Q(u, Z, v == b), u = 0, ++v;
76
+ }
77
+ ++u, ++i;
78
+ }
79
+ return S.join("");
80
+ }
81
+ function At(s) {
82
+ return k(s, function(i) {
83
+ return U.test(i) ? B(i.slice(4).toLowerCase()) : i;
84
+ });
85
+ }
86
+ function xt(s) {
87
+ return k(s, function(i) {
88
+ return H.test(i) ? "xn--" + et(i) : i;
89
+ });
90
+ }
91
+ if (p = {
92
+ /**
93
+ * A string representing the current Punycode.js version number.
94
+ * @memberOf punycode
95
+ * @type String
96
+ */
97
+ version: "1.4.1",
98
+ /**
99
+ * An object of methods to convert from JavaScript's internal character
100
+ * representation (UCS-2) to Unicode code points, and back.
101
+ * @see <https://mathiasbynens.be/notes/javascript-encoding>
102
+ * @memberOf punycode
103
+ * @type Object
104
+ */
105
+ ucs2: {
106
+ decode: V,
107
+ encode: tt
108
+ },
109
+ decode: B,
110
+ encode: et,
111
+ toASCII: xt,
112
+ toUnicode: At
113
+ }, o && a)
114
+ if (t.exports == o)
115
+ a.exports = p;
116
+ else
117
+ for (J in p)
118
+ p.hasOwnProperty(J) && (o[J] = p[J]);
119
+ else
120
+ e.punycode = p;
121
+ })(ot);
122
+ })(rt, rt.exports);
123
+ var Ct = rt.exports;
124
+ const Tt = /* @__PURE__ */ It(Ct);
125
+ function qt(t, r) {
126
+ return Object.prototype.hasOwnProperty.call(t, r);
127
+ }
128
+ var St = function(t, r, e, o) {
129
+ r = r || "&", e = e || "=";
130
+ var a = {};
131
+ if (typeof t != "string" || t.length === 0)
132
+ return a;
133
+ var f = /\+/g;
134
+ t = t.split(r);
135
+ var p = 1e3;
136
+ o && typeof o.maxKeys == "number" && (p = o.maxKeys);
137
+ var n = t.length;
138
+ p > 0 && n > p && (n = p);
139
+ for (var c = 0; c < n; ++c) {
140
+ var m = t[c].replace(f, "%20"), w = m.indexOf(e), _, y, l, O;
141
+ w >= 0 ? (_ = m.substr(0, w), y = m.substr(w + 1)) : (_ = m, y = ""), l = decodeURIComponent(_), O = decodeURIComponent(y), qt(a, l) ? Lt(a[l]) ? a[l].push(O) : a[l] = [a[l], O] : a[l] = O;
142
+ }
143
+ return a;
144
+ }, Lt = Array.isArray || function(t) {
145
+ return Object.prototype.toString.call(t) === "[object Array]";
146
+ }, X = function(t) {
147
+ switch (typeof t) {
148
+ case "string":
149
+ return t;
150
+ case "boolean":
151
+ return t ? "true" : "false";
152
+ case "number":
153
+ return isFinite(t) ? t : "";
154
+ default:
155
+ return "";
156
+ }
157
+ }, _t = function(t, r, e, o) {
158
+ return r = r || "&", e = e || "=", t === null && (t = void 0), typeof t == "object" ? it(Pt(t), function(a) {
159
+ var f = encodeURIComponent(X(a)) + e;
160
+ return Et(t[a]) ? it(t[a], function(p) {
161
+ return f + encodeURIComponent(X(p));
162
+ }).join(r) : f + encodeURIComponent(X(t[a]));
163
+ }).join(r) : o ? encodeURIComponent(X(o)) + e + encodeURIComponent(X(t)) : "";
164
+ }, Et = Array.isArray || function(t) {
165
+ return Object.prototype.toString.call(t) === "[object Array]";
166
+ };
167
+ function it(t, r) {
168
+ if (t.map)
169
+ return t.map(r);
170
+ for (var e = [], o = 0; o < t.length; o++)
171
+ e.push(r(t[o], o));
172
+ return e;
173
+ }
174
+ var Pt = Object.keys || function(t) {
175
+ var r = [];
176
+ for (var e in t)
177
+ Object.prototype.hasOwnProperty.call(t, e) && r.push(e);
178
+ return r;
179
+ }, pt, ft, Ft = ft = St, Nt = pt = _t;
180
+ function kt(t) {
181
+ return encodeURIComponent(t);
182
+ }
183
+ function $t(t) {
184
+ return decodeURIComponent(t);
185
+ }
186
+ var zt = {
187
+ decode: Ft,
188
+ encode: Nt,
189
+ parse: ft,
190
+ stringify: pt,
191
+ escape: kt,
192
+ unescape: $t
193
+ }, Jt = {
194
+ isString: function(t) {
195
+ return typeof t == "string";
196
+ },
197
+ isObject: function(t) {
198
+ return typeof t == "object" && t !== null;
199
+ },
200
+ isNull: function(t) {
201
+ return t === null;
202
+ },
203
+ isNullOrUndefined: function(t) {
204
+ return t == null;
205
+ }
206
+ }, Zt = Tt, N = Jt, Dt = G, Ht = re, mt = ne, Kt = ee, Bt = L;
207
+ function L() {
208
+ this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
209
+ }
210
+ var Mt = /^([a-z0-9.+-]+:)/i, Vt = /:[0-9]*$/, Yt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Qt = ["<", ">", '"', "`", " ", "\r", `
211
+ `, " "], Wt = ["{", "}", "|", "\\", "^", "`"].concat(Qt), st = ["'"].concat(Wt), ut = ["%", "/", "?", ";", "#"].concat(st), lt = ["/", "?", "#"], Xt = 255, ct = /^[+a-z0-9A-Z_-]{0,63}$/, Gt = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, te = {
212
+ javascript: !0,
213
+ "javascript:": !0
214
+ }, ht = {
215
+ javascript: !0,
216
+ "javascript:": !0
217
+ }, W = {
218
+ http: !0,
219
+ https: !0,
220
+ ftp: !0,
221
+ gopher: !0,
222
+ file: !0,
223
+ "http:": !0,
224
+ "https:": !0,
225
+ "ftp:": !0,
226
+ "gopher:": !0,
227
+ "file:": !0
228
+ }, at = zt;
229
+ function G(t, r, e) {
230
+ if (t && N.isObject(t) && t instanceof L)
231
+ return t;
232
+ var o = new L();
233
+ return o.parse(t, r, e), o;
234
+ }
235
+ L.prototype.parse = function(t, r, e) {
236
+ if (!N.isString(t))
237
+ throw new TypeError("Parameter 'url' must be a string, not " + typeof t);
238
+ var o = t.indexOf("?"), a = o !== -1 && o < t.indexOf("#") ? "?" : "#", f = t.split(a), p = /\\/g;
239
+ f[0] = f[0].replace(p, "/"), t = f.join(a);
240
+ var n = t;
241
+ if (n = n.trim(), !e && t.split("#").length === 1) {
242
+ var c = Yt.exec(n);
243
+ if (c)
244
+ return this.path = n, this.href = n, this.pathname = c[1], c[2] ? (this.search = c[2], r ? this.query = at.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : r && (this.search = "", this.query = {}), this;
245
+ }
246
+ var m = Mt.exec(n);
247
+ if (m) {
248
+ m = m[0];
249
+ var w = m.toLowerCase();
250
+ this.protocol = w, n = n.substr(m.length);
251
+ }
252
+ if (e || m || n.match(/^\/\/[^@\/]+@[^@\/]+/)) {
253
+ var _ = n.substr(0, 2) === "//";
254
+ _ && !(m && ht[m]) && (n = n.substr(2), this.slashes = !0);
255
+ }
256
+ if (!ht[m] && (_ || m && !W[m])) {
257
+ for (var y = -1, l = 0; l < lt.length; l++) {
258
+ var O = n.indexOf(lt[l]);
259
+ O !== -1 && (y === -1 || O < y) && (y = O);
260
+ }
261
+ var z, U;
262
+ y === -1 ? U = n.lastIndexOf("@") : U = n.lastIndexOf("@", y), U !== -1 && (z = n.slice(0, U), n = n.slice(U + 1), this.auth = decodeURIComponent(z)), y = -1;
263
+ for (var l = 0; l < ut.length; l++) {
264
+ var O = n.indexOf(ut[l]);
265
+ O !== -1 && (y === -1 || O < y) && (y = O);
266
+ }
267
+ y === -1 && (y = n.length), this.host = n.slice(0, y), n = n.slice(y), this.parseHost(), this.hostname = this.hostname || "";
268
+ var H = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
269
+ if (!H)
270
+ for (var h = this.hostname.split(/\./), l = 0, g = h.length; l < g; l++) {
271
+ var C = h[l];
272
+ if (C && !C.match(ct)) {
273
+ for (var d = "", j = 0, J = C.length; j < J; j++)
274
+ C.charCodeAt(j) > 127 ? d += "x" : d += C[j];
275
+ if (!d.match(ct)) {
276
+ var A = h.slice(0, l), T = h.slice(l + 1), k = C.match(Gt);
277
+ k && (A.push(k[1]), T.unshift(k[2])), T.length && (n = "/" + T.join(".") + n), this.hostname = A.join(".");
278
+ break;
279
+ }
280
+ }
281
+ }
282
+ this.hostname.length > Xt ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), H || (this.hostname = Zt.toASCII(this.hostname));
283
+ var V = this.port ? ":" + this.port : "", tt = this.hostname || "";
284
+ this.host = tt + V, this.href += this.host, H && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), n[0] !== "/" && (n = "/" + n));
285
+ }
286
+ if (!te[w])
287
+ for (var l = 0, g = st.length; l < g; l++) {
288
+ var K = st[l];
289
+ if (n.indexOf(K) !== -1) {
290
+ var Y = encodeURIComponent(K);
291
+ Y === K && (Y = escape(K)), n = n.split(K).join(Y);
292
+ }
293
+ }
294
+ var Q = n.indexOf("#");
295
+ Q !== -1 && (this.hash = n.substr(Q), n = n.slice(0, Q));
296
+ var B = n.indexOf("?");
297
+ if (B !== -1 ? (this.search = n.substr(B), this.query = n.substr(B + 1), r && (this.query = at.parse(this.query)), n = n.slice(0, B)) : r && (this.search = "", this.query = {}), n && (this.pathname = n), W[w] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
298
+ var V = this.pathname || "", et = this.search || "";
299
+ this.path = V + et;
300
+ }
301
+ return this.href = this.format(), this;
302
+ };
303
+ function ee(t) {
304
+ return N.isString(t) && (t = G(t)), t instanceof L ? t.format() : L.prototype.format.call(t);
305
+ }
306
+ L.prototype.format = function() {
307
+ var t = this.auth || "";
308
+ t && (t = encodeURIComponent(t), t = t.replace(/%3A/i, ":"), t += "@");
309
+ var r = this.protocol || "", e = this.pathname || "", o = this.hash || "", a = !1, f = "";
310
+ this.host ? a = t + this.host : this.hostname && (a = t + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (a += ":" + this.port)), this.query && N.isObject(this.query) && Object.keys(this.query).length && (f = at.stringify(this.query));
311
+ var p = this.search || f && "?" + f || "";
312
+ return r && r.substr(-1) !== ":" && (r += ":"), this.slashes || (!r || W[r]) && a !== !1 ? (a = "//" + (a || ""), e && e.charAt(0) !== "/" && (e = "/" + e)) : a || (a = ""), o && o.charAt(0) !== "#" && (o = "#" + o), p && p.charAt(0) !== "?" && (p = "?" + p), e = e.replace(/[?#]/g, function(n) {
313
+ return encodeURIComponent(n);
314
+ }), p = p.replace("#", "%23"), r + a + e + p + o;
315
+ };
316
+ function re(t, r) {
317
+ return G(t, !1, !0).resolve(r);
318
+ }
319
+ L.prototype.resolve = function(t) {
320
+ return this.resolveObject(G(t, !1, !0)).format();
321
+ };
322
+ function ne(t, r) {
323
+ return t ? G(t, !1, !0).resolveObject(r) : r;
324
+ }
325
+ L.prototype.resolveObject = function(t) {
326
+ if (N.isString(t)) {
327
+ var r = new L();
328
+ r.parse(t, !1, !0), t = r;
329
+ }
330
+ for (var e = new L(), o = Object.keys(this), a = 0; a < o.length; a++) {
331
+ var f = o[a];
332
+ e[f] = this[f];
333
+ }
334
+ if (e.hash = t.hash, t.href === "")
335
+ return e.href = e.format(), e;
336
+ if (t.slashes && !t.protocol) {
337
+ for (var p = Object.keys(t), n = 0; n < p.length; n++) {
338
+ var c = p[n];
339
+ c !== "protocol" && (e[c] = t[c]);
340
+ }
341
+ return W[e.protocol] && e.hostname && !e.pathname && (e.path = e.pathname = "/"), e.href = e.format(), e;
342
+ }
343
+ if (t.protocol && t.protocol !== e.protocol) {
344
+ if (!W[t.protocol]) {
345
+ for (var m = Object.keys(t), w = 0; w < m.length; w++) {
346
+ var _ = m[w];
347
+ e[_] = t[_];
348
+ }
349
+ return e.href = e.format(), e;
350
+ }
351
+ if (e.protocol = t.protocol, !t.host && !ht[t.protocol]) {
352
+ for (var g = (t.pathname || "").split("/"); g.length && !(t.host = g.shift()); )
353
+ ;
354
+ t.host || (t.host = ""), t.hostname || (t.hostname = ""), g[0] !== "" && g.unshift(""), g.length < 2 && g.unshift(""), e.pathname = g.join("/");
355
+ } else
356
+ e.pathname = t.pathname;
357
+ if (e.search = t.search, e.query = t.query, e.host = t.host || "", e.auth = t.auth, e.hostname = t.hostname || t.host, e.port = t.port, e.pathname || e.search) {
358
+ var y = e.pathname || "", l = e.search || "";
359
+ e.path = y + l;
360
+ }
361
+ return e.slashes = e.slashes || t.slashes, e.href = e.format(), e;
362
+ }
363
+ var O = e.pathname && e.pathname.charAt(0) === "/", z = t.host || t.pathname && t.pathname.charAt(0) === "/", U = z || O || e.host && t.pathname, H = U, h = e.pathname && e.pathname.split("/") || [], g = t.pathname && t.pathname.split("/") || [], C = e.protocol && !W[e.protocol];
364
+ if (C && (e.hostname = "", e.port = null, e.host && (h[0] === "" ? h[0] = e.host : h.unshift(e.host)), e.host = "", t.protocol && (t.hostname = null, t.port = null, t.host && (g[0] === "" ? g[0] = t.host : g.unshift(t.host)), t.host = null), U = U && (g[0] === "" || h[0] === "")), z)
365
+ e.host = t.host || t.host === "" ? t.host : e.host, e.hostname = t.hostname || t.hostname === "" ? t.hostname : e.hostname, e.search = t.search, e.query = t.query, h = g;
366
+ else if (g.length)
367
+ h || (h = []), h.pop(), h = h.concat(g), e.search = t.search, e.query = t.query;
368
+ else if (!N.isNullOrUndefined(t.search)) {
369
+ if (C) {
370
+ e.hostname = e.host = h.shift();
371
+ var d = e.host && e.host.indexOf("@") > 0 ? e.host.split("@") : !1;
372
+ d && (e.auth = d.shift(), e.host = e.hostname = d.shift());
373
+ }
374
+ return e.search = t.search, e.query = t.query, (!N.isNull(e.pathname) || !N.isNull(e.search)) && (e.path = (e.pathname ? e.pathname : "") + (e.search ? e.search : "")), e.href = e.format(), e;
375
+ }
376
+ if (!h.length)
377
+ return e.pathname = null, e.search ? e.path = "/" + e.search : e.path = null, e.href = e.format(), e;
378
+ for (var j = h.slice(-1)[0], J = (e.host || t.host || h.length > 1) && (j === "." || j === "..") || j === "", A = 0, T = h.length; T >= 0; T--)
379
+ j = h[T], j === "." ? h.splice(T, 1) : j === ".." ? (h.splice(T, 1), A++) : A && (h.splice(T, 1), A--);
380
+ if (!U && !H)
381
+ for (; A--; A)
382
+ h.unshift("..");
383
+ U && h[0] !== "" && (!h[0] || h[0].charAt(0) !== "/") && h.unshift(""), J && h.join("/").substr(-1) !== "/" && h.push("");
384
+ var k = h[0] === "" || h[0] && h[0].charAt(0) === "/";
385
+ if (C) {
386
+ e.hostname = e.host = k ? "" : h.length ? h.shift() : "";
387
+ var d = e.host && e.host.indexOf("@") > 0 ? e.host.split("@") : !1;
388
+ d && (e.auth = d.shift(), e.host = e.hostname = d.shift());
389
+ }
390
+ return U = U || e.host && h.length, U && !k && h.unshift(""), h.length ? e.pathname = h.join("/") : (e.pathname = null, e.path = null), (!N.isNull(e.pathname) || !N.isNull(e.search)) && (e.path = (e.pathname ? e.pathname : "") + (e.search ? e.search : "")), e.auth = t.auth || e.auth, e.slashes = e.slashes || t.slashes, e.href = e.format(), e;
391
+ };
392
+ L.prototype.parseHost = function() {
393
+ var t = this.host, r = Vt.exec(t);
394
+ r && (r = r[0], r !== ":" && (this.port = r.substr(1)), t = t.substr(0, t.length - r.length)), t && (this.hostname = t);
395
+ };
396
+ function oe(t, r) {
397
+ for (var e = 0, o = t.length - 1; o >= 0; o--) {
398
+ var a = t[o];
399
+ a === "." ? t.splice(o, 1) : a === ".." ? (t.splice(o, 1), e++) : e && (t.splice(o, 1), e--);
400
+ }
401
+ if (r)
402
+ for (; e--; e)
403
+ t.unshift("..");
404
+ return t;
405
+ }
406
+ function se() {
407
+ for (var t = "", r = !1, e = arguments.length - 1; e >= -1 && !r; e--) {
408
+ var o = e >= 0 ? arguments[e] : "/";
409
+ if (typeof o != "string")
410
+ throw new TypeError("Arguments to path.resolve must be strings");
411
+ o && (t = o + "/" + t, r = o.charAt(0) === "/");
412
+ }
413
+ return t = oe(he(t.split("/"), function(a) {
414
+ return !!a;
415
+ }), !r).join("/"), (r ? "/" : "") + t || ".";
416
+ }
417
+ function he(t, r) {
418
+ if (t.filter)
419
+ return t.filter(r);
420
+ for (var e = [], o = 0; o < t.length; o++)
421
+ r(t[o], o, t) && e.push(t[o]);
422
+ return e;
423
+ }
424
+ var vt = function(t) {
425
+ function r() {
426
+ var o = this || self;
427
+ return delete t.prototype.__magic__, o;
428
+ }
429
+ if (typeof globalThis == "object")
430
+ return globalThis;
431
+ if (this)
432
+ return r();
433
+ t.defineProperty(t.prototype, "__magic__", {
434
+ configurable: !0,
435
+ get: r
436
+ });
437
+ var e = __magic__;
438
+ return e;
439
+ }(Object), ae = (
440
+ /** @type {formatImport}*/
441
+ Kt
442
+ ), dt = (
443
+ /** @type {parseImport}*/
444
+ Dt
445
+ ), yt = (
446
+ /** @type {resolveImport}*/
447
+ Ht
448
+ ), gt = (
449
+ /** @type {UrlImport}*/
450
+ Bt
451
+ ), D = vt.URL, bt = vt.URLSearchParams, ie = /%/g, ue = /\\/g, le = /\n/g, ce = /\r/g, pe = /\t/g, fe = 47;
452
+ function me(t) {
453
+ var r = (
454
+ /** @type {URL|null} */
455
+ t ?? null
456
+ );
457
+ return !!(r !== null && r != null && r.href && r != null && r.origin);
458
+ }
459
+ function ve(t) {
460
+ if (t.hostname !== "")
461
+ throw new TypeError('File URL host must be "localhost" or empty on browser');
462
+ for (var r = t.pathname, e = 0; e < r.length; e++)
463
+ if (r[e] === "%") {
464
+ var o = r.codePointAt(e + 2) | 32;
465
+ if (r[e + 1] === "2" && o === 102)
466
+ throw new TypeError("File URL path must not include encoded / characters");
467
+ }
468
+ return decodeURIComponent(r);
469
+ }
470
+ function de(t) {
471
+ return t.includes("%") && (t = t.replace(ie, "%25")), t.includes("\\") && (t = t.replace(ue, "%5C")), t.includes(`
472
+ `) && (t = t.replace(le, "%0A")), t.includes("\r") && (t = t.replace(ce, "%0D")), t.includes(" ") && (t = t.replace(pe, "%09")), t;
473
+ }
474
+ var wt = (
475
+ /**
476
+ * @type {domainToASCII}
477
+ */
478
+ function(t) {
479
+ if (typeof t > "u")
480
+ throw new TypeError('The "domain" argument must be specified');
481
+ return new D("http://" + t).hostname;
482
+ }
483
+ ), Ot = (
484
+ /**
485
+ * @type {domainToUnicode}
486
+ */
487
+ function(t) {
488
+ if (typeof t > "u")
489
+ throw new TypeError('The "domain" argument must be specified');
490
+ return new D("http://" + t).hostname;
491
+ }
492
+ ), jt = (
493
+ /**
494
+ * @type {(url: string) => URL}
495
+ */
496
+ function(t) {
497
+ var r = new D("file://"), e = se(t), o = t.charCodeAt(t.length - 1);
498
+ return o === fe && e[e.length - 1] !== "/" && (e += "/"), r.pathname = de(e), r;
499
+ }
500
+ ), Rt = (
501
+ /**
502
+ * @type {fileURLToPath & ((path: string | URL) => string)}
503
+ */
504
+ function(t) {
505
+ if (!me(t) && typeof t != "string")
506
+ throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type ' + typeof t + " (" + t + ")");
507
+ var r = new D(t);
508
+ if (r.protocol !== "file:")
509
+ throw new TypeError("The URL must be of scheme file");
510
+ return ve(r);
511
+ }
512
+ ), Ut = (
513
+ /**
514
+ * @type {(
515
+ * ((urlObject: URL, options?: URLFormatOptions) => string) &
516
+ * ((urlObject: UrlObject | string, options?: never) => string)
517
+ * )}
518
+ */
519
+ function(t, r) {
520
+ var e, o, a;
521
+ if (r === void 0 && (r = {}), !(t instanceof D))
522
+ return ae(t);
523
+ if (typeof r != "object" || r === null)
524
+ throw new TypeError('The "options" argument must be of type object.');
525
+ var f = (e = r.auth) != null ? e : !0, p = (o = r.fragment) != null ? o : !0, n = (a = r.search) != null ? a : !0, c = new D(t.toString());
526
+ return f || (c.username = "", c.password = ""), p || (c.hash = ""), n || (c.search = ""), c.toString();
527
+ }
528
+ ), ye = {
529
+ format: Ut,
530
+ parse: dt,
531
+ resolve: yt,
532
+ resolveObject: mt,
533
+ Url: gt,
534
+ URL: D,
535
+ URLSearchParams: bt,
536
+ domainToASCII: wt,
537
+ domainToUnicode: Ot,
538
+ pathToFileURL: jt,
539
+ fileURLToPath: Rt
540
+ };
541
+ const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
542
+ __proto__: null,
543
+ URL: D,
544
+ URLSearchParams: bt,
545
+ Url: gt,
546
+ default: ye,
547
+ domainToASCII: wt,
548
+ domainToUnicode: Ot,
549
+ fileURLToPath: Rt,
550
+ format: Ut,
551
+ parse: dt,
552
+ pathToFileURL: jt,
553
+ resolve: yt,
554
+ resolveObject: mt
555
+ }, Symbol.toStringTag, { value: "Module" }));
556
+ export {
557
+ be as u
558
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.5.13",
4
+ "version": "1.5.16",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",
@@ -25,6 +25,7 @@
25
25
  "tsc": "tsc -b ./tsconfig.lib.json"
26
26
  },
27
27
  "dependencies": {
28
+ "@cyntler/react-doc-viewer": "^1.17.0",
28
29
  "@emotion/react": "^11.10.6",
29
30
  "@emotion/styled": "^11.10.6",
30
31
  "@mui/icons-material": "^5.11.11",