dev-dict 0.12.0 → 0.12.1
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/README.md +20 -0
- package/dist/{utils-CxyRIyjZ.js → helpers-BflLlJFu.js} +3 -87
- package/dist/helpers-BflLlJFu.js.map +1 -0
- package/dist/index.js +4 -4
- package/dist/terms-entry.js +1 -1
- package/dist/utils-entry.js +91 -2
- package/dist/utils-entry.js.map +1 -0
- package/dist/{zod-Cv0BGuWS.js → zod-CMqTmxZc.js} +2 -2
- package/dist/{zod-Cv0BGuWS.js.map → zod-CMqTmxZc.js.map} +1 -1
- package/package.json +2 -1
- package/dist/utils-CxyRIyjZ.js.map +0 -1
package/README.md
CHANGED
|
@@ -32,6 +32,26 @@ dictionary.forEach(term => {
|
|
|
32
32
|
|
|
33
33
|
For detailed API documentation, code examples, and more, visit the **[documentation](https://kyco.github.io/dev-dict/docs)**.
|
|
34
34
|
|
|
35
|
+
## Bundle Size & Tree-Shaking
|
|
36
|
+
|
|
37
|
+
Dev-dict contains 200+ terms. To keep your bundle small, import only the terms you need via sub-path entry points.
|
|
38
|
+
|
|
39
|
+
**Preferred — import specific terms from `dev-dict/terms`:**
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
// GOOD - Only react and typescript are included in your bundle
|
|
43
|
+
import { react, typescript } from 'dev-dict/terms'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Avoid importing from the root entry point** when you only need a subset of terms — it pulls in the entire dictionary at once and cannot be tree-shaken:
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
// BAD - Includes all 200+ terms regardless of what you use
|
|
50
|
+
import { terms } from 'dev-dict'
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The root entry is best suited for server-side or build-time use cases where you need the full dataset (e.g. generating a static glossary page).
|
|
54
|
+
|
|
35
55
|
## Supported Languages
|
|
36
56
|
|
|
37
57
|
| Locale | Language | Status |
|
|
@@ -97,92 +97,8 @@ var t = { TERM_INTERPOLATION_KEYS: [
|
|
|
97
97
|
locale: t,
|
|
98
98
|
populateEmpty: r
|
|
99
99
|
})
|
|
100
|
-
})
|
|
101
|
-
let o = a({
|
|
102
|
-
obj: e,
|
|
103
|
-
keys: t.TERM_INTERPOLATION_KEYS,
|
|
104
|
-
populateEmpty: i
|
|
105
|
-
}), c = {};
|
|
106
|
-
for (let [e, t] of Object.entries(o)) c[e] = s({
|
|
107
|
-
term: t,
|
|
108
|
-
locale: r,
|
|
109
|
-
populateEmpty: i
|
|
110
|
-
});
|
|
111
|
-
return c;
|
|
112
|
-
}, f = ({ terms: e, locale: t = n.DEFAULT_LOCALE, populateEmpty: r = n.POPULATE_EMPTY }) => Object.values(d({
|
|
113
|
-
terms: e,
|
|
114
|
-
locale: t,
|
|
115
|
-
populateEmpty: r
|
|
116
|
-
})), p = ({ terms: e, locale: r = n.DEFAULT_LOCALE, populateEmpty: i = n.POPULATE_EMPTY }) => {
|
|
117
|
-
let o = a({
|
|
118
|
-
obj: e,
|
|
119
|
-
keys: t.TERM_INTERPOLATION_KEYS,
|
|
120
|
-
populateEmpty: i
|
|
121
|
-
}), s = {};
|
|
122
|
-
Object.values(o).forEach((e) => {
|
|
123
|
-
e.type.forEach((e) => {
|
|
124
|
-
s[e.id] || (s[e.id] = e);
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
let c = {};
|
|
128
|
-
for (let [e, t] of Object.entries(s)) c[e] = l({
|
|
129
|
-
type: t,
|
|
130
|
-
locale: r,
|
|
131
|
-
populateEmpty: i
|
|
132
|
-
});
|
|
133
|
-
return c;
|
|
134
|
-
}, m = ({ terms: e, locale: t = n.DEFAULT_LOCALE, populateEmpty: r = n.POPULATE_EMPTY }) => Object.values(p({
|
|
135
|
-
terms: e,
|
|
136
|
-
locale: t,
|
|
137
|
-
populateEmpty: r
|
|
138
|
-
})), h = ({ terms: e, locale: r = n.DEFAULT_LOCALE, populateEmpty: i = n.POPULATE_EMPTY }) => {
|
|
139
|
-
let o = a({
|
|
140
|
-
obj: e,
|
|
141
|
-
keys: t.TERM_INTERPOLATION_KEYS,
|
|
142
|
-
populateEmpty: i
|
|
143
|
-
}), s = {};
|
|
144
|
-
Object.values(o).forEach((e) => {
|
|
145
|
-
e.tags.forEach((e) => {
|
|
146
|
-
s[e.id] || (s[e.id] = e);
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
let l = {};
|
|
150
|
-
for (let [e, t] of Object.entries(s)) l[e] = c({
|
|
151
|
-
tag: t,
|
|
152
|
-
locale: r,
|
|
153
|
-
populateEmpty: i
|
|
154
|
-
});
|
|
155
|
-
return l;
|
|
156
|
-
}, g = ({ terms: e, locale: t = n.DEFAULT_LOCALE, populateEmpty: r = n.POPULATE_EMPTY }) => Object.values(h({
|
|
157
|
-
terms: e,
|
|
158
|
-
locale: t,
|
|
159
|
-
populateEmpty: r
|
|
160
|
-
})), _ = ({ terms: e, locale: r = n.DEFAULT_LOCALE, populateEmpty: i = n.POPULATE_EMPTY }) => {
|
|
161
|
-
let o = a({
|
|
162
|
-
obj: e,
|
|
163
|
-
keys: t.TERM_INTERPOLATION_KEYS,
|
|
164
|
-
populateEmpty: i
|
|
165
|
-
}), s = {};
|
|
166
|
-
Object.values(o).forEach((e) => {
|
|
167
|
-
e.sources?.label && e.sources.label.forEach((e) => {
|
|
168
|
-
s[e.id] || (s[e.id] = e);
|
|
169
|
-
}), e.sources?.definition && e.sources.definition.forEach((e) => {
|
|
170
|
-
s[e.id] || (s[e.id] = e);
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
let c = {};
|
|
174
|
-
for (let [e, t] of Object.entries(s)) c[e] = u({
|
|
175
|
-
source: t,
|
|
176
|
-
locale: r,
|
|
177
|
-
populateEmpty: i
|
|
178
|
-
});
|
|
179
|
-
return c;
|
|
180
|
-
}, v = ({ terms: e, locale: t = n.DEFAULT_LOCALE, populateEmpty: r = n.POPULATE_EMPTY }) => Object.values(_({
|
|
181
|
-
terms: e,
|
|
182
|
-
locale: t,
|
|
183
|
-
populateEmpty: r
|
|
184
|
-
}));
|
|
100
|
+
});
|
|
185
101
|
//#endregion
|
|
186
|
-
export {
|
|
102
|
+
export { o as a, a as c, l as i, n as l, c as n, i as o, s as r, r as s, u as t, t as u };
|
|
187
103
|
|
|
188
|
-
//# sourceMappingURL=
|
|
104
|
+
//# sourceMappingURL=helpers-BflLlJFu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers-BflLlJFu.js","names":[],"sources":["../src/common/index.ts","../src/utils/helpers.ts"],"sourcesContent":["import { LOCALES } from '@/data/locales'\n\nexport const MISC = {\n TERM_INTERPOLATION_KEYS: ['name', 'altName', 'label', 'definition'],\n}\n\nexport const CONFIG = {\n DEFAULT_LOCALE: LOCALES.EN_US,\n POPULATE_EMPTY: true,\n}\n","import type {\n TLocale,\n TLocaleRecord,\n TTerm,\n TTermLocalized,\n TTermSource,\n TTermSourceLocalized,\n TTermTag,\n TTermTagLocalized,\n TTermType,\n TTermTypeLocalized,\n} from '@/types'\nimport { CONFIG } from '@/common'\nimport { LOCALES } from '@/data/locales'\n\n/**\n * This method will convert e.g. `[LOCALES.EN_GB]: LOCALES.EN_US` to the actual value\n * of the specified locale, in this case the value of `LOCALES.EN_US`.\n */\nexport const interpolateValue = ({\n obj,\n value,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n obj: TLocaleRecord\n value: undefined | string\n populateEmpty?: boolean\n}): string => {\n if (value && Object.values<string>(LOCALES).includes(value)) {\n return obj[value as TLocale] || (populateEmpty ? obj[LOCALES.EN_US] : '')\n }\n return value || (populateEmpty ? obj[LOCALES.EN_US] : '')\n}\n\nexport const interpolateLocaleRecord = ({\n obj,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n obj: TLocaleRecord\n populateEmpty?: boolean\n}): TLocaleRecord => {\n const locales = Object.values<string>(LOCALES) as TLocale[]\n\n return Object.fromEntries(\n locales.map((locale) => [locale, interpolateValue({ obj, value: obj[locale], populateEmpty })]),\n ) as TLocaleRecord\n}\n\nexport const interpolateValues = <T extends Record<string, any>>({\n obj,\n keys,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n obj: T\n keys: string[]\n populateEmpty?: boolean\n}): T => {\n return Object.fromEntries(\n Object.entries(obj).map(([itemKey, item]) => {\n const interpolatedFields = keys\n .filter((key) => key in item && typeof item[key] === 'object')\n .map((key) => [key, interpolateLocaleRecord({ obj: item[key], populateEmpty })])\n\n return [itemKey, { ...item, ...Object.fromEntries(interpolatedFields) }]\n }),\n ) as T\n}\n\nexport const getValueLocalized = ({\n obj,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n obj: TLocaleRecord\n locale?: TLocale\n populateEmpty?: boolean\n}): string => {\n return interpolateValue({ obj, value: obj[locale], populateEmpty })\n}\n\nexport const getTerm = ({\n term,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n term: TTerm\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermLocalized => {\n const sourcesLocalized = term.sources\n ? {\n ...(term.sources.label && {\n label: term.sources.label.map((value) => getSource({ source: value, locale, populateEmpty })),\n }),\n ...(term.sources.definition && {\n definition: term.sources.definition.map((value) => getSource({ source: value, locale, populateEmpty })),\n }),\n }\n : undefined\n\n return {\n id: term.id,\n name: getValueLocalized({ obj: term.name, locale, populateEmpty }),\n ...('altName' in term && term.altName\n ? { altName: getValueLocalized({ obj: term.altName, locale, populateEmpty }) }\n : {}),\n type: term.type.map((value) => getType({ type: value, locale, populateEmpty })),\n label: getValueLocalized({ obj: term.label, locale, populateEmpty }),\n definition: getValueLocalized({ obj: term.definition, locale, populateEmpty }),\n tags: term.tags.map((value) => getTag({ tag: value, locale, populateEmpty })),\n links: term.links,\n ...(sourcesLocalized && Object.keys(sourcesLocalized).length > 0 ? { sources: sourcesLocalized } : {}),\n } as TTermLocalized\n}\n\nexport const getTag = ({\n tag,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n tag: TTermTag\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermTagLocalized => {\n return {\n id: tag.id,\n name: getValueLocalized({ obj: tag.name, locale, populateEmpty }),\n }\n}\n\nexport const getType = ({\n type,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n type: TTermType\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermTypeLocalized => {\n return {\n id: type.id,\n name: getValueLocalized({ obj: type.name, locale, populateEmpty }),\n }\n}\n\nexport const getSource = ({\n source,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n source: TTermSource\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermSourceLocalized => {\n return {\n id: source.id,\n name: getValueLocalized({ obj: source.name, locale, populateEmpty }),\n }\n}\n"],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./locales-CvHJXK8Z.js";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as ee, $n as te, $r as ne, $t as r, A as i, An as a, Ar as o, At as s, B as c, Bn as l, Br as u, Bt as d, C as f, Cn as p, Cr as m, Ct as h, D as g, Dn as _, Dr as v, Dt as y, E as b, En as x, Er as S, Et as C, F as w, Fn as T, Fr as E, Ft as D, G as O, Gn as k, Gr as A, Gt as j, H as M, Hn as N, Hr as P, Ht as F, I, In as L, Ir as R, It as z, J as B, Jn as V, Jr as H, Jt as U, K as W, Kn as G, Kr as K, Kt as q, L as J, Ln as Y, Lr as X, Lt as Z, M as re, Mn as ie, Mr as ae, Mt as oe, N as se, Nn as ce, Nr as le, Nt as ue, O as de, On as fe, Or as pe, Ot as me, P as he, Pn as ge, Pr as _e, Pt as ve, Q as ye, Qn as be, Qr as xe, Qt as Se, R as Ce, Rn as we, Rr as Te, Rt as Ee, S as De, Sn as Oe, Sr as ke, St as Ae, T as je, Tn as Me, Tr as Ne, Tt as Pe, U as Fe, Un as Ie, Ur as Le, Ut as Re, V as ze, Vn as Be, Vr as Ve, Vt as He, W as Ue, Wn as We, Wr as Ge, Wt as Ke, X as qe, Xn as Je, Xr as Ye, Xt as Xe, Y as Ze, Yn as Qe, Yr as $e, Yt as et, Z as tt, Zn as nt, Zr as rt, Zt as it, _ as at, _n as ot, _r as st, _t as ct, a as lt, ai as ut, an as dt, ar as ft, at as pt, b as mt, bn as ht, br as gt, bt as _t, c as vt, ci as yt, cn as bt, cr as xt, ct as St, d as Ct, dn as wt, dr as Tt, dt as Q, ei as Et, en as Dt, er as Ot, et as kt, f as At, fn as jt, fr as Mt, ft as Nt, g as Pt, gn as Ft, gr as It, gt as Lt, h as Rt, hn as zt, hr as Bt, ht as Vt, i as Ht, ii as Ut, in as Wt, ir as Gt, it as Kt, j as qt, jn as Jt, jr as Yt, jt as Xt, k as Zt, kn as Qt, kr as $t, kt as en, l as tn, li as nn, ln as rn, lr as an, lt as on, m as sn, mn as cn, mr as ln, mt as un, n as dn, ni as fn, nn as pn, nr as mn, nt as hn, o as gn, oi as _n, on as vn, or as yn, ot as bn, p as xn, pn as Sn, pr as Cn, pt as wn, q as Tn, qn as En, qr as Dn, qt as On, r as kn, ri as An, rn as jn, rr as Mn, rt as Nn, s as Pn, si as Fn, sn as In, sr as Ln, st as Rn, t as zn, ti as Bn, tn as Vn, tr as Hn, tt as Un, u as Wn, un as Gn, ur as Kn, ut as qn, v as Jn, vn as Yn, vr as Xn, vt as Zn, w as Qn, wn as $n, wr as er, wt as tr, x as nr, xn as rr, xr as ir, xt as ar, y as or, yn as sr, yr as cr, yt as lr, z as ur, zn as dr, zr as fr, zt as pr } from "./zod-
|
|
4
|
-
var mr =
|
|
2
|
+
import { c as t, u as n } from "./helpers-BflLlJFu.js";
|
|
3
|
+
import { $ as ee, $n as te, $r as ne, $t as r, A as i, An as a, Ar as o, At as s, B as c, Bn as l, Br as u, Bt as d, C as f, Cn as p, Cr as m, Ct as h, D as g, Dn as _, Dr as v, Dt as y, E as b, En as x, Er as S, Et as C, F as w, Fn as T, Fr as E, Ft as D, G as O, Gn as k, Gr as A, Gt as j, H as M, Hn as N, Hr as P, Ht as F, I, In as L, Ir as R, It as z, J as B, Jn as V, Jr as H, Jt as U, K as W, Kn as G, Kr as K, Kt as q, L as J, Ln as Y, Lr as X, Lt as Z, M as re, Mn as ie, Mr as ae, Mt as oe, N as se, Nn as ce, Nr as le, Nt as ue, O as de, On as fe, Or as pe, Ot as me, P as he, Pn as ge, Pr as _e, Pt as ve, Q as ye, Qn as be, Qr as xe, Qt as Se, R as Ce, Rn as we, Rr as Te, Rt as Ee, S as De, Sn as Oe, Sr as ke, St as Ae, T as je, Tn as Me, Tr as Ne, Tt as Pe, U as Fe, Un as Ie, Ur as Le, Ut as Re, V as ze, Vn as Be, Vr as Ve, Vt as He, W as Ue, Wn as We, Wr as Ge, Wt as Ke, X as qe, Xn as Je, Xr as Ye, Xt as Xe, Y as Ze, Yn as Qe, Yr as $e, Yt as et, Z as tt, Zn as nt, Zr as rt, Zt as it, _ as at, _n as ot, _r as st, _t as ct, a as lt, ai as ut, an as dt, ar as ft, at as pt, b as mt, bn as ht, br as gt, bt as _t, c as vt, ci as yt, cn as bt, cr as xt, ct as St, d as Ct, dn as wt, dr as Tt, dt as Q, ei as Et, en as Dt, er as Ot, et as kt, f as At, fn as jt, fr as Mt, ft as Nt, g as Pt, gn as Ft, gr as It, gt as Lt, h as Rt, hn as zt, hr as Bt, ht as Vt, i as Ht, ii as Ut, in as Wt, ir as Gt, it as Kt, j as qt, jn as Jt, jr as Yt, jt as Xt, k as Zt, kn as Qt, kr as $t, kt as en, l as tn, li as nn, ln as rn, lr as an, lt as on, m as sn, mn as cn, mr as ln, mt as un, n as dn, ni as fn, nn as pn, nr as mn, nt as hn, o as gn, oi as _n, on as vn, or as yn, ot as bn, p as xn, pn as Sn, pr as Cn, pt as wn, q as Tn, qn as En, qr as Dn, qt as On, r as kn, ri as An, rn as jn, rr as Mn, rt as Nn, s as Pn, si as Fn, sn as In, sr as Ln, st as Rn, t as zn, ti as Bn, tn as Vn, tr as Hn, tt as Un, u as Wn, un as Gn, ur as Kn, ut as qn, v as Jn, vn as Yn, vr as Xn, vt as Zn, w as Qn, wn as $n, wr as er, wt as tr, x as nr, xn as rr, xr as ir, xt as ar, y as or, yn as sr, yr as cr, yt as lr, z as ur, zn as dr, zr as fr, zt as pr } from "./zod-CMqTmxZc.js";
|
|
4
|
+
var mr = t({
|
|
5
5
|
obj: {
|
|
6
6
|
[_n.id]: _n,
|
|
7
7
|
[ut.id]: ut,
|
|
@@ -226,7 +226,7 @@ var mr = n({
|
|
|
226
226
|
[dn.id]: dn,
|
|
227
227
|
[zn.id]: zn
|
|
228
228
|
},
|
|
229
|
-
keys:
|
|
229
|
+
keys: n.TERM_INTERPOLATION_KEYS,
|
|
230
230
|
populateEmpty: !1
|
|
231
231
|
}), hr = 7, gr = 10, _r = 20, vr = 10, yr = 10, br = 2, $ = 2, xr = hr / $, Sr = gr / $, Cr = _r / $, wr = 1, Tr = {
|
|
232
232
|
baseline: [
|
package/dist/terms-entry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as e, $n as t, $r as n, $t as r, A as i, An as a, Ar as o, At as s, B as c, Bn as l, Br as u, Bt as d, C as f, Cn as p, Cr as m, Ct as h, D as g, Dn as _, Dr as v, Dt as y, E as b, En as x, Er as S, Et as C, F as w, Fn as T, Fr as E, Ft as D, G as O, Gn as k, Gr as A, Gt as j, H as M, Hn as N, Hr as P, Ht as F, I, In as L, Ir as R, It as z, J as B, Jn as V, Jr as H, Jt as U, K as W, Kn as G, Kr as K, Kt as q, L as J, Ln as Y, Lr as X, Lt as Z, M as Q, Mn as $, Mr as ee, Mt as te, N as ne, Nn as re, Nr as ie, Nt as ae, O as oe, On as se, Or as ce, Ot as le, P as ue, Pn as de, Pr as fe, Pt as pe, Q as me, Qn as he, Qr as ge, Qt as _e, R as ve, Rn as ye, Rr as be, Rt as xe, S as Se, Sn as Ce, Sr as we, St as Te, T as Ee, Tn as De, Tr as Oe, Tt as ke, U as Ae, Un as je, Ur as Me, Ut as Ne, V as Pe, Vn as Fe, Vr as Ie, Vt as Le, W as Re, Wn as ze, Wr as Be, Wt as Ve, X as He, Xn as Ue, Xr as We, Xt as Ge, Y as Ke, Yn as qe, Yr as Je, Yt as Ye, Z as Xe, Zn as Ze, Zr as Qe, Zt as $e, _ as et, _n as tt, _r as nt, _t as rt, a as it, ai as at, an as ot, ar as st, at as ct, b as lt, bn as ut, br as dt, bt as ft, c as pt, cn as mt, cr as ht, ct as gt, d as _t, dn as vt, dr as yt, dt as bt, ei as xt, en as St, er as Ct, et as wt, f as Tt, fn as Et, fr as Dt, ft as Ot, g as kt, gn as At, gr as jt, gt as Mt, h as Nt, hn as Pt, hr as Ft, ht as It, i as Lt, ii as Rt, in as zt, ir as Bt, it as Vt, j as Ht, jn as Ut, jr as Wt, jt as Gt, k as Kt, kn as qt, kr as Jt, kt as Yt, l as Xt, ln as Zt, lr as Qt, lt as $t, m as en, mn as tn, mr as nn, mt as rn, n as an, ni as on, nn as sn, nr as cn, nt as ln, o as un, oi as dn, on as fn, or as pn, ot as mn, p as hn, pn as gn, pr as _n, pt as vn, q as yn, qn as bn, qr as xn, qt as Sn, r as Cn, ri as wn, rn as Tn, rr as En, rt as Dn, s as On, sn as kn, sr as An, st as jn, t as Mn, ti as Nn, tn as Pn, tr as Fn, tt as In, u as Ln, un as Rn, ur as zn, ut as Bn, v as Vn, vn as Hn, vr as Un, vt as Wn, w as Gn, wn as Kn, wr as qn, wt as Jn, x as Yn, xn as Xn, xr as Zn, xt as Qn, y as $n, yn as er, yr as tr, yt as nr, z as rr, zn as ir, zr as ar, zt as or } from "./zod-
|
|
1
|
+
import { $ as e, $n as t, $r as n, $t as r, A as i, An as a, Ar as o, At as s, B as c, Bn as l, Br as u, Bt as d, C as f, Cn as p, Cr as m, Ct as h, D as g, Dn as _, Dr as v, Dt as y, E as b, En as x, Er as S, Et as C, F as w, Fn as T, Fr as E, Ft as D, G as O, Gn as k, Gr as A, Gt as j, H as M, Hn as N, Hr as P, Ht as F, I, In as L, Ir as R, It as z, J as B, Jn as V, Jr as H, Jt as U, K as W, Kn as G, Kr as K, Kt as q, L as J, Ln as Y, Lr as X, Lt as Z, M as Q, Mn as $, Mr as ee, Mt as te, N as ne, Nn as re, Nr as ie, Nt as ae, O as oe, On as se, Or as ce, Ot as le, P as ue, Pn as de, Pr as fe, Pt as pe, Q as me, Qn as he, Qr as ge, Qt as _e, R as ve, Rn as ye, Rr as be, Rt as xe, S as Se, Sn as Ce, Sr as we, St as Te, T as Ee, Tn as De, Tr as Oe, Tt as ke, U as Ae, Un as je, Ur as Me, Ut as Ne, V as Pe, Vn as Fe, Vr as Ie, Vt as Le, W as Re, Wn as ze, Wr as Be, Wt as Ve, X as He, Xn as Ue, Xr as We, Xt as Ge, Y as Ke, Yn as qe, Yr as Je, Yt as Ye, Z as Xe, Zn as Ze, Zr as Qe, Zt as $e, _ as et, _n as tt, _r as nt, _t as rt, a as it, ai as at, an as ot, ar as st, at as ct, b as lt, bn as ut, br as dt, bt as ft, c as pt, cn as mt, cr as ht, ct as gt, d as _t, dn as vt, dr as yt, dt as bt, ei as xt, en as St, er as Ct, et as wt, f as Tt, fn as Et, fr as Dt, ft as Ot, g as kt, gn as At, gr as jt, gt as Mt, h as Nt, hn as Pt, hr as Ft, ht as It, i as Lt, ii as Rt, in as zt, ir as Bt, it as Vt, j as Ht, jn as Ut, jr as Wt, jt as Gt, k as Kt, kn as qt, kr as Jt, kt as Yt, l as Xt, ln as Zt, lr as Qt, lt as $t, m as en, mn as tn, mr as nn, mt as rn, n as an, ni as on, nn as sn, nr as cn, nt as ln, o as un, oi as dn, on as fn, or as pn, ot as mn, p as hn, pn as gn, pr as _n, pt as vn, q as yn, qn as bn, qr as xn, qt as Sn, r as Cn, ri as wn, rn as Tn, rr as En, rt as Dn, s as On, sn as kn, sr as An, st as jn, t as Mn, ti as Nn, tn as Pn, tr as Fn, tt as In, u as Ln, un as Rn, ur as zn, ut as Bn, v as Vn, vn as Hn, vr as Un, vt as Wn, w as Gn, wn as Kn, wr as qn, wt as Jn, x as Yn, xn as Xn, xr as Zn, xt as Qn, y as $n, yn as er, yr as tr, yt as nr, z as rr, zn as ir, zr as ar, zt as or } from "./zod-CMqTmxZc.js";
|
|
2
2
|
export { dn as aes, at as agile, Rt as ai, wn as algolia, on as alpine_js, Nn as android_studio, xt as angularjs, n as apache_tomcat, ge as asp_net, Qe as assembly, We as aws, Je as azure, H as azure_pipelines, xn as backbone_js, K as bash, A as bdd, Be as beanstalk, Me as big_js, P as biome, Ie as bitbucket_pipelines, u as bitcoin, ar as blockchain, be as bootstrap, X as browserify, R as browserstack, E as bugzilla, fe as c_sharp, ie as cakephp, ee as chart_js, Wt as ci_cd, o as circle_ci, Jt as claude_code, ce as clean_code, v as clojure, S as cloudflare, Oe as codacy, qn as codeigniter, m as confluence, we as contentful, Zn as cplusplus, dt as craft_cms, tr as cs_cart, Un as css, nt as css_in_js, jt as css_modules, Ft as cucumber, nn as cvs, _n as cypress, Dt as dart, yt as ddd, zn as digital_ocean, Qt as docker, ht as docusaurus, An as dot_net, pn as dreamweaver, st as dynatrace, Bt as e2e, En as encryption, cn as erlang, Fn as es_build, Ct as eslint, t as excel, he as express, Ze as expression_engine, Ue as f_sharp, qe as fhir, V as figma, bn as filezilla, G as firebase, k as flamelink, ze as flutter, je as fortran, N as foundation, Fe as ftp, l as gatsby, ir as gcp, ye as git, Y as github, L as github_actions, T as gitlab, de as gitlab_ci, re as golang, $ as google_analytics, Ut as google_app_engine, a as google_business, qt as google_maps_api, se as graphql, _ as groovy, x as grunt, De as gulp, Kn as handlebars, p as handsontable, Ce as haskell, Xn as hetzner, ut as hl7, er as html, Hn as htmx, tt as i18n, At as ionic, Pt as jasmine, tn as java, gn as javascript, Et as jenkins, vt as jest, Rn as jira, Zt as jquery, mt as js, kn as kanban, fn as karma, ot as kotlin, zt as kubernetes, Tn as laravel, sn as legacy_migration, Pn as lexical, St as linux, r as lua, _e as mac_os, $e as mail_blaze, Ge as mailchimp, Ye as make, U as marionette, Sn as matlab, q as maven, j as meta_mask, Ve as microsoft_sql_server, Ne as mongo_db, F as mui, Le as mysql, d as navicat, or as nest_js, xe as netbeans, Z as netlify, z as new_relic, D as next_js, pe as nexudus, ae as nft, te as nginx, Gt as nightsbridge, s as node_js, Yt as node_mailer, le as nosql, y as nx, C as objective_c, ke as ocaml, Jn as okta, h as open_ai, Te as optimizely, Qn as pathlogix, ft as perl, nr as photoshop, Wn as php, rt as pnpm, Mt as polyglot_js, It as postgres, rn as posthog, vn as prettier, Ot as putty, bt as pwa, Bn as python, $t as quickbooks, gt as r, jn as react, mn as react_hook_form, ct as react_pdf, Vt as react_testing_library, Dn as redux, ln as reflow_soldering, In as resend, wt as rest_api, e as rsync, me as ruby, Xe as rust, He as sanity, Ke as sass, B as scala, yn as scrum, W as sendgrid, O as sentry, Re as service_workers, Ae as shadcn, M as smarty, Pe as snyk, c as socket_io, rr as splunk, ve as sql, J as sql_lite, I as ssh, w as storybook, ue as stripe, ne as styled_components, Q as sublime_text, Ht as supabase, i as svn, Kt as swift, oe as tailwind, g as tanstack, b as tanstack_query, Ee as templ, Gn as terraform, f as trello, Se as twig, Yn as typescript, lt as typesense, $n as vercel, Vn as vim, et as visual_basic, kt as vite, Nt as vitest, en as vue_js, hn as wdio, Ln as web3, Tt as web_forms, _t as web_workers, Xt as webpack, pt as websockets, On as windows, un as winscp, it as wordpress, Lt as yarn, Cn as zephyr, an as zig, Mn as zod };
|
package/dist/utils-entry.js
CHANGED
|
@@ -1,2 +1,91 @@
|
|
|
1
|
-
import { a as e, c as t,
|
|
2
|
-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./helpers-BflLlJFu.js";
|
|
2
|
+
//#region src/utils/utils.ts
|
|
3
|
+
var u = ({ terms: e, locale: n = r.DEFAULT_LOCALE, populateEmpty: i = r.POPULATE_EMPTY }) => {
|
|
4
|
+
let a = t({
|
|
5
|
+
obj: e,
|
|
6
|
+
keys: l.TERM_INTERPOLATION_KEYS,
|
|
7
|
+
populateEmpty: i
|
|
8
|
+
}), s = {};
|
|
9
|
+
for (let [e, t] of Object.entries(a)) s[e] = o({
|
|
10
|
+
term: t,
|
|
11
|
+
locale: n,
|
|
12
|
+
populateEmpty: i
|
|
13
|
+
});
|
|
14
|
+
return s;
|
|
15
|
+
}, d = ({ terms: e, locale: t = r.DEFAULT_LOCALE, populateEmpty: n = r.POPULATE_EMPTY }) => Object.values(u({
|
|
16
|
+
terms: e,
|
|
17
|
+
locale: t,
|
|
18
|
+
populateEmpty: n
|
|
19
|
+
})), f = ({ terms: e, locale: i = r.DEFAULT_LOCALE, populateEmpty: a = r.POPULATE_EMPTY }) => {
|
|
20
|
+
let o = t({
|
|
21
|
+
obj: e,
|
|
22
|
+
keys: l.TERM_INTERPOLATION_KEYS,
|
|
23
|
+
populateEmpty: a
|
|
24
|
+
}), s = {};
|
|
25
|
+
Object.values(o).forEach((e) => {
|
|
26
|
+
e.type.forEach((e) => {
|
|
27
|
+
s[e.id] || (s[e.id] = e);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
let c = {};
|
|
31
|
+
for (let [e, t] of Object.entries(s)) c[e] = n({
|
|
32
|
+
type: t,
|
|
33
|
+
locale: i,
|
|
34
|
+
populateEmpty: a
|
|
35
|
+
});
|
|
36
|
+
return c;
|
|
37
|
+
}, p = ({ terms: e, locale: t = r.DEFAULT_LOCALE, populateEmpty: n = r.POPULATE_EMPTY }) => Object.values(f({
|
|
38
|
+
terms: e,
|
|
39
|
+
locale: t,
|
|
40
|
+
populateEmpty: n
|
|
41
|
+
})), m = ({ terms: e, locale: n = r.DEFAULT_LOCALE, populateEmpty: a = r.POPULATE_EMPTY }) => {
|
|
42
|
+
let o = t({
|
|
43
|
+
obj: e,
|
|
44
|
+
keys: l.TERM_INTERPOLATION_KEYS,
|
|
45
|
+
populateEmpty: a
|
|
46
|
+
}), s = {};
|
|
47
|
+
Object.values(o).forEach((e) => {
|
|
48
|
+
e.tags.forEach((e) => {
|
|
49
|
+
s[e.id] || (s[e.id] = e);
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
let c = {};
|
|
53
|
+
for (let [e, t] of Object.entries(s)) c[e] = i({
|
|
54
|
+
tag: t,
|
|
55
|
+
locale: n,
|
|
56
|
+
populateEmpty: a
|
|
57
|
+
});
|
|
58
|
+
return c;
|
|
59
|
+
}, h = ({ terms: e, locale: t = r.DEFAULT_LOCALE, populateEmpty: n = r.POPULATE_EMPTY }) => Object.values(m({
|
|
60
|
+
terms: e,
|
|
61
|
+
locale: t,
|
|
62
|
+
populateEmpty: n
|
|
63
|
+
})), g = ({ terms: e, locale: n = r.DEFAULT_LOCALE, populateEmpty: i = r.POPULATE_EMPTY }) => {
|
|
64
|
+
let a = t({
|
|
65
|
+
obj: e,
|
|
66
|
+
keys: l.TERM_INTERPOLATION_KEYS,
|
|
67
|
+
populateEmpty: i
|
|
68
|
+
}), o = {};
|
|
69
|
+
Object.values(a).forEach((e) => {
|
|
70
|
+
e.sources?.label && e.sources.label.forEach((e) => {
|
|
71
|
+
o[e.id] || (o[e.id] = e);
|
|
72
|
+
}), e.sources?.definition && e.sources.definition.forEach((e) => {
|
|
73
|
+
o[e.id] || (o[e.id] = e);
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
let s = {};
|
|
77
|
+
for (let [e, t] of Object.entries(o)) s[e] = c({
|
|
78
|
+
source: t,
|
|
79
|
+
locale: n,
|
|
80
|
+
populateEmpty: i
|
|
81
|
+
});
|
|
82
|
+
return s;
|
|
83
|
+
}, _ = ({ terms: e, locale: t = r.DEFAULT_LOCALE, populateEmpty: n = r.POPULATE_EMPTY }) => Object.values(g({
|
|
84
|
+
terms: e,
|
|
85
|
+
locale: t,
|
|
86
|
+
populateEmpty: n
|
|
87
|
+
}));
|
|
88
|
+
//#endregion
|
|
89
|
+
export { c as getSource, _ as getSources, g as getSourcesDict, i as getTag, h as getTags, m as getTagsDict, o as getTerm, d as getTerms, u as getTermsDict, n as getType, p as getTypes, f as getTypesDict, e as getValueLocalized, a as interpolateLocaleRecord, s as interpolateValue, t as interpolateValues };
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=utils-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-entry.js","names":[],"sources":["../src/utils/utils.ts"],"sourcesContent":["import type {\n TLocale,\n TTermLocalized,\n TTermsDict,\n TTermsDictPartial,\n TTermSourceId,\n TTermSourceLocalized,\n TTermSourcesDict,\n TTermSourcesDictLocalized,\n TTermTagId,\n TTermTagLocalized,\n TTermTagsDict,\n TTermTagsDictLocalized,\n TTermTypeId,\n TTermTypeLocalized,\n TTermTypesDict,\n TTermTypesDictLocalized,\n} from '@/types'\nimport { CONFIG, MISC } from '@/common'\n\nimport { getSource, getTag, getTerm, getType, interpolateValues } from './helpers'\n\nexport const getTermsDict = <T extends TTermsDict | TTermsDictPartial>({\n terms,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n terms: T\n locale?: TLocale\n populateEmpty?: boolean\n}): { [K in keyof T]: TTermLocalized } => {\n const interpolatedTerms = interpolateValues({ obj: terms, keys: MISC.TERM_INTERPOLATION_KEYS, populateEmpty })\n const localizedTerms = {} as { [K in keyof T]: TTermLocalized }\n\n for (const [key, term] of Object.entries(interpolatedTerms)) {\n localizedTerms[key as keyof T] = getTerm({ term, locale, populateEmpty })\n }\n\n return localizedTerms\n}\n\nexport const getTerms = ({\n terms,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n terms: TTermsDict | TTermsDictPartial\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermLocalized[] => {\n return Object.values(getTermsDict({ terms, locale, populateEmpty }))\n}\n\nexport const getTypesDict = ({\n terms,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n terms: TTermsDict | TTermsDictPartial\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermTypesDictLocalized => {\n const interpolatedTerms = interpolateValues({ obj: terms, keys: MISC.TERM_INTERPOLATION_KEYS, populateEmpty })\n const typesDict: TTermTypesDict = {}\n\n Object.values(interpolatedTerms).forEach((term) => {\n term.type.forEach((type) => {\n if (!typesDict[type.id]) {\n typesDict[type.id] = type\n }\n })\n })\n\n const localizedTypes: TTermTypesDictLocalized = {}\n\n for (const [key, type] of Object.entries(typesDict)) {\n localizedTypes[key as TTermTypeId] = getType({ type, locale, populateEmpty })\n }\n\n return localizedTypes\n}\n\nexport const getTypes = ({\n terms,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n terms: TTermsDict | TTermsDictPartial\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermTypeLocalized[] => {\n return Object.values(getTypesDict({ terms, locale, populateEmpty }))\n}\n\nexport const getTagsDict = ({\n terms,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n terms: TTermsDict | TTermsDictPartial\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermTagsDictLocalized => {\n const interpolatedTerms = interpolateValues({ obj: terms, keys: MISC.TERM_INTERPOLATION_KEYS, populateEmpty })\n const tagsDict: TTermTagsDict = {}\n\n Object.values(interpolatedTerms).forEach((term) => {\n term.tags.forEach((tag) => {\n if (!tagsDict[tag.id]) {\n tagsDict[tag.id] = tag\n }\n })\n })\n\n const localizedTags: TTermTagsDictLocalized = {}\n\n for (const [key, tag] of Object.entries(tagsDict)) {\n localizedTags[key as TTermTagId] = getTag({ tag, locale, populateEmpty })\n }\n\n return localizedTags\n}\n\nexport const getTags = ({\n terms,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n terms: TTermsDict | TTermsDictPartial\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermTagLocalized[] => {\n return Object.values(getTagsDict({ terms, locale, populateEmpty }))\n}\n\nexport const getSourcesDict = ({\n terms,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n terms: TTermsDict | TTermsDictPartial\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermSourcesDictLocalized => {\n const interpolatedTerms = interpolateValues({ obj: terms, keys: MISC.TERM_INTERPOLATION_KEYS, populateEmpty })\n const sourcesDict: TTermSourcesDict = {}\n\n Object.values(interpolatedTerms).forEach((term) => {\n if (term.sources?.label) {\n term.sources.label.forEach((source) => {\n if (!sourcesDict[source.id]) {\n sourcesDict[source.id] = source\n }\n })\n }\n if (term.sources?.definition) {\n term.sources.definition.forEach((source) => {\n if (!sourcesDict[source.id]) {\n sourcesDict[source.id] = source\n }\n })\n }\n })\n\n const localizedSources: TTermSourcesDictLocalized = {}\n\n for (const [key, source] of Object.entries(sourcesDict)) {\n localizedSources[key as TTermSourceId] = getSource({ source, locale, populateEmpty })\n }\n\n return localizedSources\n}\n\nexport const getSources = ({\n terms,\n locale = CONFIG.DEFAULT_LOCALE,\n populateEmpty = CONFIG.POPULATE_EMPTY,\n}: {\n terms: TTermsDict | TTermsDictPartial\n locale?: TLocale\n populateEmpty?: boolean\n}): TTermSourceLocalized[] => {\n return Object.values(getSourcesDict({ terms, locale, populateEmpty }))\n}\n"],"mappings":";;AAsBA,IAAa,KAA0D,EACrE,UACA,YAAS,EAAO,gBAChB,mBAAgB,EAAO,qBAKiB;CACxC,IAAM,IAAoB,EAAkB;EAAE,KAAK;EAAO,MAAM,EAAK;EAAyB;EAAe,CAAC,EACxG,IAAiB,EAAE;AAEzB,MAAK,IAAM,CAAC,GAAK,MAAS,OAAO,QAAQ,EAAkB,CACzD,GAAe,KAAkB,EAAQ;EAAE;EAAM;EAAQ;EAAe,CAAC;AAG3E,QAAO;GAGI,KAAY,EACvB,UACA,YAAS,EAAO,gBAChB,mBAAgB,EAAO,qBAMhB,OAAO,OAAO,EAAa;CAAE;CAAO;CAAQ;CAAe,CAAC,CAAC,EAGzD,KAAgB,EAC3B,UACA,YAAS,EAAO,gBAChB,mBAAgB,EAAO,qBAKM;CAC7B,IAAM,IAAoB,EAAkB;EAAE,KAAK;EAAO,MAAM,EAAK;EAAyB;EAAe,CAAC,EACxG,IAA4B,EAAE;AAEpC,QAAO,OAAO,EAAkB,CAAC,SAAS,MAAS;AACjD,IAAK,KAAK,SAAS,MAAS;AAC1B,GAAK,EAAU,EAAK,QAClB,EAAU,EAAK,MAAM;IAEvB;GACF;CAEF,IAAM,IAA0C,EAAE;AAElD,MAAK,IAAM,CAAC,GAAK,MAAS,OAAO,QAAQ,EAAU,CACjD,GAAe,KAAsB,EAAQ;EAAE;EAAM;EAAQ;EAAe,CAAC;AAG/E,QAAO;GAGI,KAAY,EACvB,UACA,YAAS,EAAO,gBAChB,mBAAgB,EAAO,qBAMhB,OAAO,OAAO,EAAa;CAAE;CAAO;CAAQ;CAAe,CAAC,CAAC,EAGzD,KAAe,EAC1B,UACA,YAAS,EAAO,gBAChB,mBAAgB,EAAO,qBAKK;CAC5B,IAAM,IAAoB,EAAkB;EAAE,KAAK;EAAO,MAAM,EAAK;EAAyB;EAAe,CAAC,EACxG,IAA0B,EAAE;AAElC,QAAO,OAAO,EAAkB,CAAC,SAAS,MAAS;AACjD,IAAK,KAAK,SAAS,MAAQ;AACzB,GAAK,EAAS,EAAI,QAChB,EAAS,EAAI,MAAM;IAErB;GACF;CAEF,IAAM,IAAwC,EAAE;AAEhD,MAAK,IAAM,CAAC,GAAK,MAAQ,OAAO,QAAQ,EAAS,CAC/C,GAAc,KAAqB,EAAO;EAAE;EAAK;EAAQ;EAAe,CAAC;AAG3E,QAAO;GAGI,KAAW,EACtB,UACA,YAAS,EAAO,gBAChB,mBAAgB,EAAO,qBAMhB,OAAO,OAAO,EAAY;CAAE;CAAO;CAAQ;CAAe,CAAC,CAAC,EAGxD,KAAkB,EAC7B,UACA,YAAS,EAAO,gBAChB,mBAAgB,EAAO,qBAKQ;CAC/B,IAAM,IAAoB,EAAkB;EAAE,KAAK;EAAO,MAAM,EAAK;EAAyB;EAAe,CAAC,EACxG,IAAgC,EAAE;AAExC,QAAO,OAAO,EAAkB,CAAC,SAAS,MAAS;AAQjD,EAPI,EAAK,SAAS,SAChB,EAAK,QAAQ,MAAM,SAAS,MAAW;AACrC,GAAK,EAAY,EAAO,QACtB,EAAY,EAAO,MAAM;IAE3B,EAEA,EAAK,SAAS,cAChB,EAAK,QAAQ,WAAW,SAAS,MAAW;AAC1C,GAAK,EAAY,EAAO,QACtB,EAAY,EAAO,MAAM;IAE3B;GAEJ;CAEF,IAAM,IAA8C,EAAE;AAEtD,MAAK,IAAM,CAAC,GAAK,MAAW,OAAO,QAAQ,EAAY,CACrD,GAAiB,KAAwB,EAAU;EAAE;EAAQ;EAAQ;EAAe,CAAC;AAGvF,QAAO;GAGI,KAAc,EACzB,UACA,YAAS,EAAO,gBAChB,mBAAgB,EAAO,qBAMhB,OAAO,OAAO,EAAe;CAAE;CAAO;CAAQ;CAAe,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./locales-CvHJXK8Z.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as t } from "./helpers-BflLlJFu.js";
|
|
3
3
|
import { a as n, c as r, d as i, f as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./ui_library-Zgy-bmI_.js";
|
|
4
4
|
import { a as _, c as v, i as y, l as b, n as x, o as S, r as C, s as w, t as T, u as E } from "./standard-C4r20BPR.js";
|
|
5
5
|
var D = t({
|
|
@@ -1910,4 +1910,4 @@ var D = t({
|
|
|
1910
1910
|
//#endregion
|
|
1911
1911
|
export { Un as $, He as $n, z as $r, Ht as $t, fr as A, dt as An, de as Ar, fn as At, nr as B, tt as Bn, Q as Br, tn as Bt, yr as C, vt as Cn, ve as Cr, yn as Ct, hr as D, mt as Dn, me as Dr, hn as Dt, gr as E, ht as En, he as Er, gn as Et, sr as F, ot as Fn, oe as Fr, sn as Ft, Zn as G, Xe as Gn, q as Gr, Xt as Gt, er as H, $e as Hn, X as Hr, $t as Ht, or as I, at as In, ae as Ir, on as It, Jn as J, qe as Jn, W as Jr, qt as Jt, Xn as K, Ye as Kn, K as Kr, Yt as Kt, ar as L, it as Ln, ie as Lr, an as Lt, ur as M, lt as Mn, le as Mr, un as Mt, lr as N, ct as Nn, ce as Nr, ln as Nt, mr as O, pt as On, pe as Or, mn as Ot, cr as P, st as Pn, se as Pr, cn as Pt, Wn as Q, Ue as Qn, B as Qr, Ut as Qt, ir as R, rt as Rn, re as Rr, rn as Rt, br as S, yt as Sn, ye as Sr, bn as St, _r as T, gt as Tn, ge as Tr, _n as Tt, $n as U, Qe as Un, Y as Ur, Qt as Ut, tr as V, et as Vn, Z as Vr, en as Vt, Qn as W, Ze as Wn, J as Wr, Zt as Wt, Kn as X, Ge as Xn, H as Xr, Gt as Xt, qn as Y, Ke as Yn, U as Yr, Kt as Yt, Gn as Z, We as Zn, V as Zr, Wt as Zt, Tr as _, wt as _n, we as _r, Tn as _t, Ir as a, te as ai, It as an, Ie as ar, Ln as at, Sr as b, xt as bn, xe as br, Sn as bt, Nr as c, M as ci, Nt as cn, Ne as cr, Pn as ct, Ar as d, At as dn, Ae as dr, jn as dt, R as ei, Vt as en, Ve as er, Hn as et, kr as f, kt as fn, ke as fr, An as ft, $ as g, Tt as gn, Te as gr, En as gt, Er as h, Et as hn, Ee as hr, Dn as ht, Lr as i, P as ii, Lt as in, Le as ir, Rn as it, dr as j, ut as jn, ue as jr, dn as jt, pr as k, ft as kn, fe as kr, pn as kt, Mr as l, D as li, Mt as ln, Me as lr, Nn as lt, Dr as m, Dt as mn, De as mr, On as mt, zr as n, I as ni, zt as nn, ze as nr, Bn as nt, Fr as o, ee as oi, Ft as on, Fe as or, In as ot, Or as p, Ot as pn, Oe as pr, kn as pt, Yn as q, Je as qn, G as qr, Jt as qt, Rr as r, F as ri, Rt as rn, Re as rr, zn as rt, Pr as s, N as si, Pt as sn, Pe as sr, Fn as st, Br as t, L as ti, Bt as tn, Be as tr, Vn as tt, jr as u, jt as un, je as ur, Mn as ut, wr as v, Ct as vn, Ce as vr, wn as vt, vr as w, _t as wn, _e as wr, vn as wt, xr as x, bt as xn, be as xr, xn as xt, Cr as y, St as yn, Se as yr, Cn as yt, rr as z, nt as zn, ne as zr, nn as zt };
|
|
1912
1912
|
|
|
1913
|
-
//# sourceMappingURL=zod-
|
|
1913
|
+
//# sourceMappingURL=zod-CMqTmxZc.js.map
|