@golemui/core 1.0.2 → 1.0.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.2 (2026-06-26)
2
+
3
+ This was a version bump only for core to align it with other projects, there were no code changes.
4
+
1
5
  ## 1.0.1 (2026-06-15)
2
6
 
3
7
  This was a version bump only for core to align it with other projects, there were no code changes.
package/index.js CHANGED
@@ -35,7 +35,7 @@ var ur = class {
35
35
  function T(e) {
36
36
  return new ur(e);
37
37
  }
38
- function v(e) {
38
+ function E(e) {
39
39
  return new dr(e);
40
40
  }
41
41
  function $t(e) {
@@ -84,13 +84,13 @@ var C = class We {
84
84
  map(t) {
85
85
  return new We((r) => {
86
86
  let n = this.decodeFn(r);
87
- return n.isOk() ? T(t(n.value)) : v(n.issues);
87
+ return n.isOk() ? T(t(n.value)) : E(n.issues);
88
88
  });
89
89
  }
90
90
  flatMap(t) {
91
91
  return new We((r) => {
92
92
  let n = this.decodeFn(r);
93
- return n.isOk() ? t(n.value).decode(r) : v(n.issues);
93
+ return n.isOk() ? t(n.value).decode(r) : E(n.issues);
94
94
  });
95
95
  }
96
96
  }, X = (e, t) => [{
@@ -108,18 +108,18 @@ function Me(e) {
108
108
  let s = e.decode(t[o]);
109
109
  s.isOk() ? r.push(s.value) : n.push(...Ue(s.issues, o));
110
110
  }
111
- return n.length > 0 ? v(n) : T(r);
112
- } else return v(X(t, "array"));
111
+ return n.length > 0 ? E(n) : T(r);
112
+ } else return E(X(t, "array"));
113
113
  });
114
114
  }
115
115
  function cr() {
116
- return new C((e) => typeof e == "boolean" ? T(e) : v(X(e, "boolean")));
116
+ return new C((e) => typeof e == "boolean" ? T(e) : E(X(e, "boolean")));
117
117
  }
118
118
  function lr(e, t) {
119
119
  return new C((r) => {
120
- if (typeof r != "object" || !r) return v(X(r, "object"));
120
+ if (typeof r != "object" || !r) return E(X(r, "object"));
121
121
  let n = r[e];
122
- return Object.prototype.hasOwnProperty.call(t, n) ? t[n].decode(r) : v([{
122
+ return Object.prototype.hasOwnProperty.call(t, n) ? t[n].decode(r) : E([{
123
123
  message: `"${e}" must be one of ${Object.keys(t).map((o) => JSON.stringify(o)).join(", ")}, but got ${JSON.stringify(n)}`,
124
124
  path: [e]
125
125
  }]);
@@ -129,13 +129,13 @@ function St(e) {
129
129
  return new C((t) => e().decode(t));
130
130
  }
131
131
  function Q(e) {
132
- return new C((t) => t === e ? T(e) : v([{
132
+ return new C((t) => t === e ? T(e) : E([{
133
133
  message: `${JSON.stringify(t)} is not exactly ${JSON.stringify(e)}`,
134
134
  path: []
135
135
  }]));
136
136
  }
137
- function Ee() {
138
- return new C((e) => typeof e == "number" ? T(e) : v(X(e, "number")));
137
+ function ve() {
138
+ return new C((e) => typeof e == "number" ? T(e) : E(X(e, "number")));
139
139
  }
140
140
  function oe(e) {
141
141
  return new C((t) => {
@@ -145,8 +145,8 @@ function oe(e) {
145
145
  let s, i = e[o];
146
146
  s = i instanceof C ? i.decode(t[o]) : i.decoder.decode(t[i.fromKey]), s.isOk() ? r[o] = s.value : n.push(...Ue(s.issues, o));
147
147
  }
148
- return n.length > 0 ? v(n) : T(r);
149
- } else return v(X(t, "object"));
148
+ return n.length > 0 ? E(n) : T(r);
149
+ } else return E(X(t, "object"));
150
150
  });
151
151
  }
152
152
  function x(e) {
@@ -157,7 +157,7 @@ function x(e) {
157
157
  if (o.isOk()) return o;
158
158
  r.push(o.issues);
159
159
  }
160
- return v([{
160
+ return E([{
161
161
  message: `no alternative matched (tried ${e.length})`,
162
162
  path: []
163
163
  }, ...ar(r)]);
@@ -188,12 +188,12 @@ function fr(e) {
188
188
  let s = e.decode(t[o]);
189
189
  s.isOk() ? r[o] = s.value : n.push(...Ue(s.issues, o));
190
190
  }
191
- return n.length > 0 ? v(n) : T(r);
192
- } else return v(X(t, "object"));
191
+ return n.length > 0 ? E(n) : T(r);
192
+ } else return E(X(t, "object"));
193
193
  });
194
194
  }
195
195
  function w() {
196
- return new C((e) => typeof e == "string" ? T(e) : v(X(e, "string")));
196
+ return new C((e) => typeof e == "string" ? T(e) : E(X(e, "string")));
197
197
  }
198
198
  function z() {
199
199
  return new C((e) => T(e));
@@ -201,12 +201,12 @@ function z() {
201
201
  function se(e) {
202
202
  return new C((t) => {
203
203
  if (typeof t != "object" || t === null)
204
- return v([{ message: `Expected object literal, got "${typeof t}"`, path: [] }]);
204
+ return E([{ message: `Expected object literal, got "${typeof t}"`, path: [] }]);
205
205
  const r = {};
206
206
  for (const [n, o] of Object.entries(e)) {
207
207
  const s = o.decoder.decode(t[n]);
208
208
  if (!s.isOk())
209
- return v(
209
+ return E(
210
210
  s.issues.map((i) => ({
211
211
  message: i.message,
212
212
  path: [n, ...i.path]
@@ -217,7 +217,7 @@ function se(e) {
217
217
  if (i.startsWith(n + ".")) {
218
218
  const c = o.decoder.decode(d);
219
219
  if (!c.isOk())
220
- return v(
220
+ return E(
221
221
  c.issues.map((l) => ({
222
222
  message: l.message,
223
223
  path: [i, ...l.path]
@@ -230,9 +230,9 @@ function se(e) {
230
230
  return T(r);
231
231
  });
232
232
  }
233
- const Et = () => crypto.randomUUID().slice(0, 8), hr = (e) => typeof e != "function" && e.kind === "display", te = (e) => typeof e != "function" && e.kind === "action", I = (e) => typeof e != "function" && e.kind === "input", he = (e) => typeof e != "function" && e.kind === "layout", ie = (e) => typeof e == "function", pr = oe({ in: Me(w()) }), He = oe({ when: w() }), ve = x([pr, He]), mr = oe({ from: Me(w()) }), we = x([mr, He]), Pe = x([cr(), He]), gr = new C((e) => {
233
+ const vt = () => crypto.randomUUID().slice(0, 8), hr = (e) => typeof e != "function" && e.kind === "display", te = (e) => typeof e != "function" && e.kind === "action", I = (e) => typeof e != "function" && e.kind === "input", he = (e) => typeof e != "function" && e.kind === "layout", ie = (e) => typeof e == "function", pr = oe({ in: Me(w()) }), He = oe({ when: w() }), Ee = x([pr, He]), mr = oe({ from: Me(w()) }), we = x([mr, He]), Pe = x([cr(), He]), gr = new C((e) => {
234
234
  const t = typeof e;
235
- return t === "function" ? T(e) : v([{ message: `Expected a function, got '${t}'`, path: [] }]);
235
+ return t === "function" ? T(e) : E([{ message: `Expected a function, got '${t}'`, path: [] }]);
236
236
  }), U = (e) => x([e, gr]), Ge = se({
237
237
  load: { suffixed: !0, decoder: U(y(w())) },
238
238
  click: { suffixed: !0, decoder: U(y(w())) },
@@ -243,12 +243,12 @@ const Et = () => crypto.randomUUID().slice(0, 8), hr = (e) => typeof e != "funct
243
243
  key: w(),
244
244
  default: y(w()),
245
245
  params: y(z())
246
- }), vt = x([w(), yr]), Be = y(w()).map((e) => e || Et()), Ar = se({
246
+ }), Et = x([w(), yr]), Be = y(w()).map((e) => e || vt()), Ar = se({
247
247
  kind: { decoder: Q("display") },
248
248
  uid: { decoder: Be },
249
249
  type: { decoder: w() },
250
- size: { suffixed: !0, decoder: y(Ee()) },
251
- include: { decoder: y(ve) },
250
+ size: { suffixed: !0, decoder: y(ve()) },
251
+ include: { decoder: y(Ee) },
252
252
  exclude: { decoder: y(we) },
253
253
  props: { decoder: y(z()) }
254
254
  }), $r = se({
@@ -258,12 +258,12 @@ const Et = () => crypto.randomUUID().slice(0, 8), hr = (e) => typeof e != "funct
258
258
  actionType: {
259
259
  decoder: y(x([Q("button"), Q("submit")]))
260
260
  },
261
- size: { suffixed: !0, decoder: y(Ee()) },
262
- include: { decoder: y(ve) },
261
+ size: { suffixed: !0, decoder: y(ve()) },
262
+ include: { decoder: y(Ee) },
263
263
  exclude: { decoder: y(we) },
264
264
  label: {
265
265
  suffixed: !0,
266
- decoder: U(y(vt))
266
+ decoder: U(y(Et))
267
267
  },
268
268
  disabled: { suffixed: !0, decoder: y(Pe) },
269
269
  on: { decoder: y(Ge) },
@@ -271,16 +271,21 @@ const Et = () => crypto.randomUUID().slice(0, 8), hr = (e) => typeof e != "funct
271
271
  }), Sr = new C((e) => {
272
272
  const t = typeof e;
273
273
  if (t === "function") {
274
- const r = e, n = r(void 0);
275
- return r.uid = n.uid || Et(), r.type = n.type, r.path = n.path, T(r);
274
+ const r = e, n = r({
275
+ $form: {},
276
+ errors: void 0,
277
+ touched: void 0,
278
+ translate: void 0
279
+ });
280
+ return r.uid = n.uid || vt(), r.type = n.type, r.path = n.path, T(r);
276
281
  } else
277
- return v([{ message: `Expected a function, got '${t}'`, path: [] }]);
278
- }), Er = se({
282
+ return E([{ message: `Expected a function, got '${t}'`, path: [] }]);
283
+ }), vr = se({
279
284
  kind: { decoder: Q("input") },
280
285
  uid: { decoder: y(w()) },
281
286
  type: { decoder: w() },
282
- size: { suffixed: !0, decoder: y(Ee()) },
283
- include: { decoder: y(ve) },
287
+ size: { suffixed: !0, decoder: y(ve()) },
288
+ include: { decoder: y(Ee) },
284
289
  exclude: { decoder: y(we) },
285
290
  disabled: { suffixed: !0, decoder: y(Pe) },
286
291
  readonly: { suffixed: !0, decoder: y(Pe) },
@@ -288,7 +293,7 @@ const Et = () => crypto.randomUUID().slice(0, 8), hr = (e) => typeof e != "funct
288
293
  props: { decoder: y(z()) },
289
294
  label: {
290
295
  suffixed: !0,
291
- decoder: U(y(vt))
296
+ decoder: U(y(Et))
292
297
  },
293
298
  path: { decoder: w() },
294
299
  defaultValue: { decoder: y(z()) },
@@ -303,9 +308,9 @@ const Et = () => crypto.randomUUID().slice(0, 8), hr = (e) => typeof e != "funct
303
308
  r.template = Ke.parse(r.template);
304
309
  }
305
310
  return t;
306
- }), vr = St(() => {
311
+ }), Er = St(() => {
307
312
  const e = lr("kind", {
308
- input: Er,
313
+ input: vr,
309
314
  layout: Ke,
310
315
  display: Ar,
311
316
  action: $r
@@ -317,12 +322,12 @@ const Et = () => crypto.randomUUID().slice(0, 8), hr = (e) => typeof e != "funct
317
322
  kind: { decoder: Q("layout") },
318
323
  uid: { decoder: Be },
319
324
  type: { decoder: w() },
320
- size: { suffixed: !0, decoder: y(Ee()) },
321
- include: { decoder: y(ve) },
325
+ size: { suffixed: !0, decoder: y(ve()) },
326
+ include: { decoder: y(Ee) },
322
327
  exclude: { decoder: y(we) },
323
328
  props: { decoder: y(z()) },
324
329
  on: { decoder: y(Ge) },
325
- children: { decoder: Me(vr) }
330
+ children: { decoder: Me(Er) }
326
331
  }), B = class B {
327
332
  constructor() {
328
333
  this.widgetLoaders = {}, this._ready = !1;
@@ -1005,11 +1010,11 @@ a("{}", (e, t) => {
1005
1010
  a("{", (e) => (e = e ? u(e) : () => {
1006
1011
  }, (t) => e(Object.create(t))));
1007
1012
  a(":", (e, t) => (t = u(t), Array.isArray(e) ? (e = u(e), (r) => [[e(r), t(r)]]) : (r) => [[e, t(r)]]));
1008
- const $n = 170, $e = 96, Sn = 36, En = 123, vn = 92, wn = { n: `
1013
+ const $n = 170, $e = 96, Sn = 36, vn = 123, En = 92, wn = { n: `
1009
1014
  `, r: "\r", t: " ", b: "\b", f: "\f", v: "\v" }, gt = () => {
1010
1015
  const e = [];
1011
1016
  for (let t = "", r; (r = g.charCodeAt(h)) !== $e; )
1012
- r ? r === vn ? (O(), t += wn[g[h]] || g[h], O()) : r === Sn && g.charCodeAt(h + 1) === En ? (t && e.push([, t]), t = "", O(2), e.push(S(0, 125))) : (t += g[h], O(), r = g.charCodeAt(h), r === $e && t && e.push([, t])) : b("Unterminated template");
1017
+ r ? r === En ? (O(), t += wn[g[h]] || g[h], O()) : r === Sn && g.charCodeAt(h + 1) === vn ? (t && e.push([, t]), t = "", O(2), e.push(S(0, 125))) : (t += g[h], O(), r = g.charCodeAt(h), r === $e && t && e.push([, t])) : b("Unterminated template");
1013
1018
  return O(), e;
1014
1019
  }, On = P[$e];
1015
1020
  P[$e] = (e, t) => e && t < $n ? A.asi && A.newline ? void 0 : (O(), ["``", e, ...gt()]) : (
@@ -1333,16 +1338,16 @@ function _n(e, t, r, n) {
1333
1338
  return o.write("uid", t.uid), o.write("type", t.type), o.write("kind", t.kind), hr(t) ? Ln(o, n) : te(t) ? Rn(o, n) : I(t) ? Vn(o, n) : he(t) && Un(o, n), Mn(t, o, n, r), (te(t) || I(t)) && Hn(t, o, n), he(t) && Gn(t, o, r), o.changed ? { source: e.source, current: o.current } : e;
1334
1339
  }
1335
1340
  function Ln(e, t) {
1336
- E(e, t, "size"), E(e, t, "include"), E(e, t, "exclude");
1341
+ v(e, t, "size"), v(e, t, "include"), v(e, t, "exclude");
1337
1342
  }
1338
1343
  function Rn(e, t) {
1339
- E(e, t, "size"), E(e, t, "include"), E(e, t, "exclude"), E(e, t, "label"), E(e, t, "disabled"), E(e, t, "actionType");
1344
+ v(e, t, "size"), v(e, t, "include"), v(e, t, "exclude"), v(e, t, "label"), v(e, t, "disabled"), v(e, t, "actionType");
1340
1345
  }
1341
1346
  function Vn(e, t) {
1342
- E(e, t, "size"), E(e, t, "include"), E(e, t, "exclude"), E(e, t, "label"), E(e, t, "disabled"), E(e, t, "readonly"), E(e, t, "validator"), E(e, t, "path"), E(e, t, "defaultValue");
1347
+ v(e, t, "size"), v(e, t, "include"), v(e, t, "exclude"), v(e, t, "label"), v(e, t, "disabled"), v(e, t, "readonly"), v(e, t, "validator"), v(e, t, "path"), v(e, t, "defaultValue");
1343
1348
  }
1344
1349
  function Un(e, t) {
1345
- E(e, t, "size"), E(e, t, "include"), E(e, t, "exclude");
1350
+ v(e, t, "size"), v(e, t, "include"), v(e, t, "exclude");
1346
1351
  }
1347
1352
  function Mn(e, t, r, n) {
1348
1353
  const o = n.widgetPropOverrides[e.uid] ?? {}, s = { ...e.props ?? {}, ...o };
@@ -1360,7 +1365,7 @@ function Gn(e, t, r) {
1360
1365
  const s = t.previous.children ?? [];
1361
1366
  s.length === o.length && o.every((d, c) => s[c] && s[c].uid === o[c].uid) || t.markChanged();
1362
1367
  }
1363
- function E(e, t, r) {
1368
+ function v(e, t, r) {
1364
1369
  const n = e.source;
1365
1370
  if (!Yn(n, r))
1366
1371
  return;
@@ -1852,7 +1857,7 @@ function yt(e) {
1852
1857
  (o) => e.validations[o] !== null && Array.isArray(e.validations[o])
1853
1858
  ), n !== void 0 ? { ...e, isFormValid: !1 } : { ...e, isFormValid: !0 });
1854
1859
  }
1855
- function Eo(e = [], t, r, n) {
1860
+ function vo(e = [], t, r, n) {
1856
1861
  const o = new rr(Ot(n.lang)), s = o.asObservable().pipe(F()), i = So({ validators: t, validateOn: r, localization: n });
1857
1862
  function d(p) {
1858
1863
  const f = o.getValue(), D = i(f, p);
@@ -1875,7 +1880,7 @@ class No {
1875
1880
  this.widgetRegistry = new Ne(), this.store = {}, this.events$ = new ct(), this.submit$ = new ct(), this.uuid = crypto.randomUUID(), this.itemRenderers = {}, this.dependencies = {};
1876
1881
  }
1877
1882
  initialize(t, r = [], n, o, s, i = Or(), d) {
1878
- this.localization = i, this.dependencies = d, this.widgetRegistry.setWidgetLoaders(t), this.itemRenderers = s, this.store = Eo(r, n, o, i);
1883
+ this.localization = i, this.dependencies = d, this.widgetRegistry.setWidgetLoaders(t), this.itemRenderers = s, this.store = vo(r, n, o, i);
1879
1884
  }
1880
1885
  emitEvent(t, r, n) {
1881
1886
  const s = this.store.getState().currentStates.filter((i) => r.on?.[`${t}.${i}`] !== void 0);
@@ -1934,11 +1939,11 @@ function _o(e = "GolemUI Form Store") {
1934
1939
  };
1935
1940
  };
1936
1941
  }
1937
- const vo = j(
1942
+ const Eo = j(
1938
1943
  k((e) => e.data),
1939
1944
  F()
1940
1945
  ), Lo = (e) => j(
1941
- vo,
1946
+ Eo,
1942
1947
  k((t) => ue(t, e)),
1943
1948
  F()
1944
1949
  ), wo = j(
@@ -2026,7 +2031,7 @@ export {
2026
2031
  Vo as injectedValidationByPath$,
2027
2032
  ir as isStandardValidateSuccess,
2028
2033
  Fn as makeRepeaterItemConfig,
2029
- Et as shortUUID,
2034
+ vt as shortUUID,
2030
2035
  sr as standardValidate,
2031
2036
  Ho as touchedControlsByPath$,
2032
2037
  Ro as validationByPath$
package/index.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("rxjs");require("@standard-schema/spec");function mt(e,t){const r=e["~standard"].validate(t);if(r instanceof Promise)throw new TypeError("Schema validation must be synchronous");return r}function gt(e){return e.issues===void 0}var rr=class{value;constructor(e){this.value=e}map(e){return k(e(this.value))}isOk(){return!0}},nr=class yt{issues;constructor(t){this.issues=t}map(t){return new yt(this.issues)}isOk(){return!1}};function k(e){return new rr(e)}function C(e){return new nr(e)}function At(e){return e.reduce((t,r)=>typeof r=="number"?`${t}[${r}]`:t.length===0?String(r):`${t}.${r}`,"")}function dt(e){return e.map(t=>t.path.length===0?t.message:`${At(t.path)}: ${t.message}`).join("; ")}var D=class Fe{decodeFn;constructor(t){this.decodeFn=t}parse(t){let r=this.decode(t);if(r.isOk())return r.value;{let n=r;throw Error(dt(n.issues),{cause:n.issues})}}decode(t){return this.decodeFn(t)}"~standard"={version:1,vendor:"ts.data.json",validate:t=>{let r=this.decode(t);return r.isOk()?{value:r.value}:{issues:r.issues.map(n=>({message:n.message,path:n.path.length>0?n.path.map(o=>({key:o})):void 0}))}}};decodePromise(t){return new Promise((r,n)=>{let o=this.decode(t);if(o.isOk())return r(o.value);{let i=o;return n(Error(dt(i.issues),{cause:i.issues}))}})}map(t){return new Fe(r=>{let n=this.decodeFn(r);return n.isOk()?k(t(n.value)):C(n.issues)})}flatMap(t){return new Fe(r=>{let n=this.decodeFn(r);return n.isOk()?t(n.value).decode(r):C(n.issues)})}},K=(e,t)=>[{message:`${JSON.stringify(e)} is not a valid ${t}`,path:[]}],_e=(e,t)=>e.map(r=>({...r,path:[t,...r.path]}));function Ve(e){return new D(t=>{if(t instanceof Array){let r=[],n=[];for(let o=0;o<t.length;o++){let i=e.decode(t[o]);i.isOk()?r.push(i.value):n.push(..._e(i.issues,o))}return n.length>0?C(n):k(r)}else return C(K(t,"array"))})}function or(){return new D(e=>typeof e=="boolean"?k(e):C(K(e,"boolean")))}function ir(e,t){return new D(r=>{if(typeof r!="object"||!r)return C(K(r,"object"));let n=r[e];return Object.prototype.hasOwnProperty.call(t,n)?t[n].decode(r):C([{message:`"${e}" must be one of ${Object.keys(t).map(o=>JSON.stringify(o)).join(", ")}, but got ${JSON.stringify(n)}`,path:[e]}])})}function $t(e){return new D(t=>e().decode(t))}function J(e){return new D(t=>t===e?k(e):C([{message:`${JSON.stringify(t)} is not exactly ${JSON.stringify(e)}`,path:[]}]))}function $e(){return new D(e=>typeof e=="number"?k(e):C(K(e,"number")))}function re(e){return new D(t=>{if(typeof t=="object"&&t){let r={},n=[];for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){let i,s=e[o];i=s instanceof D?s.decode(t[o]):s.decoder.decode(t[s.fromKey]),i.isOk()?r[o]=i.value:n.push(..._e(i.issues,o))}return n.length>0?C(n):k(r)}else return C(K(t,"object"))})}function Q(e){return new D(t=>{let r=[];for(let n=0;n<e.length;n++){let o=e[n].decode(t);if(o.isOk())return o;r.push(o.issues)}return C([{message:`no alternative matched (tried ${e.length})`,path:[]},...sr(r)])})}function sr(e){let t=new Map;for(let r of e)for(let n of r){let o=JSON.stringify(n.path),i=t.get(o);i?i.messages.includes(n.message)||i.messages.push(n.message):t.set(o,{path:n.path,messages:[n.message]})}return Array.from(t.values()).map(({path:r,messages:n})=>({message:n.join(" or "),path:r}))}function A(e){return new D(t=>t===void 0?k(void 0):e.decode(t))}function dr(e){return new D(t=>{if(typeof t=="object"&&t){let r={},n=[];for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){let i=e.decode(t[o]);i.isOk()?r[o]=i.value:n.push(..._e(i.issues,o))}return n.length>0?C(n):k(r)}else return C(K(t,"object"))})}function w(){return new D(e=>typeof e=="string"?k(e):C(K(e,"string")))}function G(){return new D(e=>k(e))}function ne(e){return new D(t=>{if(typeof t!="object"||t===null)return C([{message:`Expected object literal, got "${typeof t}"`,path:[]}]);const r={};for(const[n,o]of Object.entries(e)){const i=o.decoder.decode(t[n]);if(!i.isOk())return C(i.issues.map(s=>({message:s.message,path:[n,...s.path]})));if(r[n]=i.value,o.suffixed){for(const[s,u]of Object.entries(t))if(s.startsWith(n+".")){const c=o.decoder.decode(u);if(!c.isOk())return C(c.issues.map(l=>({message:l.message,path:[s,...l.path]})));r[s]=c.value}}}return k(r)})}const Le=()=>crypto.randomUUID().slice(0,8),ur=e=>typeof e!="function"&&e.kind==="display",Y=e=>typeof e!="function"&&e.kind==="action",I=e=>typeof e!="function"&&e.kind==="input",ae=e=>typeof e!="function"&&e.kind==="layout",oe=e=>typeof e=="function",cr=re({in:Ve(w())}),Re=re({when:w()}),Se=Q([cr,Re]),lr=re({from:Ve(w())}),ve=Q([lr,Re]),je=Q([or(),Re]),ar=new D(e=>{const t=typeof e;return t==="function"?k(e):C([{message:`Expected a function, got '${t}'`,path:[]}])}),V=e=>Q([e,ar]),Me=ne({load:{suffixed:!0,decoder:V(A(w()))},click:{suffixed:!0,decoder:V(A(w()))},change:{suffixed:!0,decoder:V(A(w()))},filter:{suffixed:!0,decoder:V(A(w()))},blur:{suffixed:!0,decoder:V(A(w()))}}),fr=re({key:w(),default:A(w()),params:A(G())}),St=Q([w(),fr]),Be=A(w()).map(e=>e||Le()),pr=ne({kind:{decoder:J("display")},uid:{decoder:Be},type:{decoder:w()},size:{suffixed:!0,decoder:A($e())},include:{decoder:A(Se)},exclude:{decoder:A(ve)},props:{decoder:A(G())}}),hr=ne({kind:{decoder:J("action")},uid:{decoder:Be},type:{decoder:w()},actionType:{decoder:A(Q([J("button"),J("submit")]))},size:{suffixed:!0,decoder:A($e())},include:{decoder:A(Se)},exclude:{decoder:A(ve)},label:{suffixed:!0,decoder:V(A(St))},disabled:{suffixed:!0,decoder:A(je)},on:{decoder:A(Me)},props:{decoder:A(G())}}),mr=new D(e=>{const t=typeof e;if(t==="function"){const r=e,n=r(void 0);return r.uid=n.uid||Le(),r.type=n.type,r.path=n.path,k(r)}else return C([{message:`Expected a function, got '${t}'`,path:[]}])}),gr=ne({kind:{decoder:J("input")},uid:{decoder:A(w())},type:{decoder:w()},size:{suffixed:!0,decoder:A($e())},include:{decoder:A(Se)},exclude:{decoder:A(ve)},disabled:{suffixed:!0,decoder:A(je)},readonly:{suffixed:!0,decoder:A(je)},on:{decoder:A(Me)},props:{decoder:A(G())},label:{suffixed:!0,decoder:V(A(St))},path:{decoder:w()},defaultValue:{decoder:A(G())},validator:{suffixed:!0,decoder:V(A(G()))}}).map(e=>{const t={...e};if(e.uid||(t.uid=`${e.path}-${e.type}`),e.type==="repeater"){const r=e.props;r.template=He.parse(r.template)}return t}),yr=$t(()=>{const e=ir("kind",{input:gr,layout:He,display:pr,action:hr});return new D(t=>typeof t=="function"?mr.decode(t):e.decode(t))}),He=ne({kind:{decoder:J("layout")},uid:{decoder:Be},type:{decoder:w()},size:{suffixed:!0,decoder:A($e())},include:{decoder:A(Se)},exclude:{decoder:A(ve)},props:{decoder:A(G())},on:{decoder:A(Me)},children:{decoder:Ve(yr)}}),B=class B{constructor(){this.widgetLoaders={},this._ready=!1}get ready(){return this._ready}setWidgetLoaders(t){this.widgetLoaders=t,this._ready=!0}async loadWidget(t){const r=this.widgetLoaders[t];if(!B.sharedCache.has(r)){const n=r().catch(o=>(B.sharedCache.delete(r),Promise.reject(o)));B.sharedCache.set(r,n)}return B.sharedCache.get(r)}};B.sharedCache=new Map;let We=B;function Ar(e){return{...e,form:{uid:"",type:"flex",kind:"layout",children:e.form}}}const vt=re({states:A(dr(w())),form:$t(()=>He)}),Et=e=>({formName:"",formDef:vt.parse({form:{kind:"layout",type:"flex",children:[]}}),flatForm:{},currentStates:[],calculatedWidgets:{},validations:{},touchedControls:{},injectedValidations:{},isFormValid:!0,widgetFlags:{},widgetPropOverrides:{},data:{},meta:{},formHealth:{status:"ok"},touched:!1,lang:e}),$r=e=>!(typeof e!="object"||e===null||typeof e.key!="string");function Sr(e){const t=new Intl.Locale(e).maximize().script;return["Arab","Hebr","Thaa","Syrc","Tfng","Adlm","Rohg"].includes(t||"")?"rtl":"ltr"}const Ct=(e=navigator.language||"en-US")=>{const t=new Set;return{get lang(){return e},translate(n){return n},subscribe(n){return t.add(n),()=>{t.delete(n)}},setLang(n){e=n,t.forEach(o=>o(e))}}},vr=e=>{throw new Error(`Unhandled case: ${JSON.stringify(e)}`)};function W(e,...t){return t.reduce((r,n)=>n(r),e)}function Er(e,t){const r=t.payload.widget.uid;if(!r)throw new Error("addWidget: widget must have a uid");const n=t.payload.widget,o=e.touched&&I(n)?{...e.touchedControls,[n.path]:!0}:e.touchedControls;return{...e,touchedControls:o,calculatedWidgets:{...e.calculatedWidgets,[r]:{source:n,current:{}}}}}const b={calculateCurrentStateError:10,initializeParseError:20,initializeUidCollisionError:21,initializeUnknownError:22,initializeMalformedFormShapeError:23,widgetCouldNotBeLoaded:30,resolveStringInterpolationError:40},ie=(e,t)=>{if(e===void 0)throw new Error("obj is undefined");return t.split(".").reduce((r,n)=>r===void 0||n===""?r:Array.isArray(r)?r[parseInt(n,10)]:r[n],e)},Ge=(e,t,r)=>{if(e===null)throw new Error("object is null");if(e===void 0)throw new Error("object is undefined");if(t==="")throw new Error("path cannot be empty");const n=t.split(".");let o=e;for(let s=0;s<n.length-1;s++){const u=n[s],c=n[s+1];(o[u]==null||typeof o[u]!="object")&&(o[u]=wr(c)?[]:{}),o=o[u]}const i=n[n.length-1];return o[i]=r,e},Cr=(e,t)=>{if(t==="")return e;const r=t.split("."),n=[e];for(let s=0;s<r.length-1;s++){const u=n[s];if(u==null||typeof u!="object")return e;const c=r[s],l=Array.isArray(u)?u[parseInt(c,10)]:u[c];if(l==null||typeof l!="object")return e;n.push(l)}const o=n[n.length-1],i=r[r.length-1];Array.isArray(o)?o.splice(parseInt(i,10),1):delete o[i];for(let s=n.length-1;s>=1;s--){const u=n[s];if(Array.isArray(u)||!Or(u))break;const c=n[s-1],l=r[s-1];if(Array.isArray(c))break;delete c[l]}return e};function wr(e){const t=Number(e);return Number.isInteger(t)&&t>=0&&t.toString()===e}function Or(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}const Ee=(e,t)=>(delete e[t],e);function fe(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>fe(r));const t={};for(const r of Object.keys(e))t[r]=fe(e[r]);return t}function be(e){return e.flatMap(t=>[t,...ae(t)?be(t.children):[]])}function Ke(e){return Object.entries(e.validations).reduce((r,[n,o])=>(o!==null&&(r.$formIsInvalid=!0,Ge(r.$errors,n,[...o])),r),{$formIsInvalid:!1,$errors:{}})}function Oe(e){const t=fe(e.data);for(const[r,n]of Object.entries(e.widgetFlags))if(n.hidden===!0){const o=e.flatForm[r];o&&I(o)&&Cr(t,o.path)}return t}const ze=32;let Pe,h,y,$=e=>(h=0,y=e,$.newline=!1,e=v(),y[h]?z():e||""),z=(e="Unexpected token",t=h,r=y.slice(0,t).split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("rxjs");require("@standard-schema/spec");function mt(e,t){const r=e["~standard"].validate(t);if(r instanceof Promise)throw new TypeError("Schema validation must be synchronous");return r}function gt(e){return e.issues===void 0}var rr=class{value;constructor(e){this.value=e}map(e){return k(e(this.value))}isOk(){return!0}},nr=class yt{issues;constructor(t){this.issues=t}map(t){return new yt(this.issues)}isOk(){return!1}};function k(e){return new rr(e)}function C(e){return new nr(e)}function At(e){return e.reduce((t,r)=>typeof r=="number"?`${t}[${r}]`:t.length===0?String(r):`${t}.${r}`,"")}function dt(e){return e.map(t=>t.path.length===0?t.message:`${At(t.path)}: ${t.message}`).join("; ")}var D=class Fe{decodeFn;constructor(t){this.decodeFn=t}parse(t){let r=this.decode(t);if(r.isOk())return r.value;{let n=r;throw Error(dt(n.issues),{cause:n.issues})}}decode(t){return this.decodeFn(t)}"~standard"={version:1,vendor:"ts.data.json",validate:t=>{let r=this.decode(t);return r.isOk()?{value:r.value}:{issues:r.issues.map(n=>({message:n.message,path:n.path.length>0?n.path.map(o=>({key:o})):void 0}))}}};decodePromise(t){return new Promise((r,n)=>{let o=this.decode(t);if(o.isOk())return r(o.value);{let i=o;return n(Error(dt(i.issues),{cause:i.issues}))}})}map(t){return new Fe(r=>{let n=this.decodeFn(r);return n.isOk()?k(t(n.value)):C(n.issues)})}flatMap(t){return new Fe(r=>{let n=this.decodeFn(r);return n.isOk()?t(n.value).decode(r):C(n.issues)})}},K=(e,t)=>[{message:`${JSON.stringify(e)} is not a valid ${t}`,path:[]}],_e=(e,t)=>e.map(r=>({...r,path:[t,...r.path]}));function Ve(e){return new D(t=>{if(t instanceof Array){let r=[],n=[];for(let o=0;o<t.length;o++){let i=e.decode(t[o]);i.isOk()?r.push(i.value):n.push(..._e(i.issues,o))}return n.length>0?C(n):k(r)}else return C(K(t,"array"))})}function or(){return new D(e=>typeof e=="boolean"?k(e):C(K(e,"boolean")))}function ir(e,t){return new D(r=>{if(typeof r!="object"||!r)return C(K(r,"object"));let n=r[e];return Object.prototype.hasOwnProperty.call(t,n)?t[n].decode(r):C([{message:`"${e}" must be one of ${Object.keys(t).map(o=>JSON.stringify(o)).join(", ")}, but got ${JSON.stringify(n)}`,path:[e]}])})}function $t(e){return new D(t=>e().decode(t))}function J(e){return new D(t=>t===e?k(e):C([{message:`${JSON.stringify(t)} is not exactly ${JSON.stringify(e)}`,path:[]}]))}function $e(){return new D(e=>typeof e=="number"?k(e):C(K(e,"number")))}function re(e){return new D(t=>{if(typeof t=="object"&&t){let r={},n=[];for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){let i,s=e[o];i=s instanceof D?s.decode(t[o]):s.decoder.decode(t[s.fromKey]),i.isOk()?r[o]=i.value:n.push(..._e(i.issues,o))}return n.length>0?C(n):k(r)}else return C(K(t,"object"))})}function Q(e){return new D(t=>{let r=[];for(let n=0;n<e.length;n++){let o=e[n].decode(t);if(o.isOk())return o;r.push(o.issues)}return C([{message:`no alternative matched (tried ${e.length})`,path:[]},...sr(r)])})}function sr(e){let t=new Map;for(let r of e)for(let n of r){let o=JSON.stringify(n.path),i=t.get(o);i?i.messages.includes(n.message)||i.messages.push(n.message):t.set(o,{path:n.path,messages:[n.message]})}return Array.from(t.values()).map(({path:r,messages:n})=>({message:n.join(" or "),path:r}))}function A(e){return new D(t=>t===void 0?k(void 0):e.decode(t))}function dr(e){return new D(t=>{if(typeof t=="object"&&t){let r={},n=[];for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){let i=e.decode(t[o]);i.isOk()?r[o]=i.value:n.push(..._e(i.issues,o))}return n.length>0?C(n):k(r)}else return C(K(t,"object"))})}function w(){return new D(e=>typeof e=="string"?k(e):C(K(e,"string")))}function G(){return new D(e=>k(e))}function ne(e){return new D(t=>{if(typeof t!="object"||t===null)return C([{message:`Expected object literal, got "${typeof t}"`,path:[]}]);const r={};for(const[n,o]of Object.entries(e)){const i=o.decoder.decode(t[n]);if(!i.isOk())return C(i.issues.map(s=>({message:s.message,path:[n,...s.path]})));if(r[n]=i.value,o.suffixed){for(const[s,u]of Object.entries(t))if(s.startsWith(n+".")){const c=o.decoder.decode(u);if(!c.isOk())return C(c.issues.map(l=>({message:l.message,path:[s,...l.path]})));r[s]=c.value}}}return k(r)})}const Le=()=>crypto.randomUUID().slice(0,8),ur=e=>typeof e!="function"&&e.kind==="display",Y=e=>typeof e!="function"&&e.kind==="action",I=e=>typeof e!="function"&&e.kind==="input",ae=e=>typeof e!="function"&&e.kind==="layout",oe=e=>typeof e=="function",cr=re({in:Ve(w())}),Re=re({when:w()}),Se=Q([cr,Re]),lr=re({from:Ve(w())}),ve=Q([lr,Re]),je=Q([or(),Re]),ar=new D(e=>{const t=typeof e;return t==="function"?k(e):C([{message:`Expected a function, got '${t}'`,path:[]}])}),V=e=>Q([e,ar]),Me=ne({load:{suffixed:!0,decoder:V(A(w()))},click:{suffixed:!0,decoder:V(A(w()))},change:{suffixed:!0,decoder:V(A(w()))},filter:{suffixed:!0,decoder:V(A(w()))},blur:{suffixed:!0,decoder:V(A(w()))}}),fr=re({key:w(),default:A(w()),params:A(G())}),St=Q([w(),fr]),Be=A(w()).map(e=>e||Le()),pr=ne({kind:{decoder:J("display")},uid:{decoder:Be},type:{decoder:w()},size:{suffixed:!0,decoder:A($e())},include:{decoder:A(Se)},exclude:{decoder:A(ve)},props:{decoder:A(G())}}),hr=ne({kind:{decoder:J("action")},uid:{decoder:Be},type:{decoder:w()},actionType:{decoder:A(Q([J("button"),J("submit")]))},size:{suffixed:!0,decoder:A($e())},include:{decoder:A(Se)},exclude:{decoder:A(ve)},label:{suffixed:!0,decoder:V(A(St))},disabled:{suffixed:!0,decoder:A(je)},on:{decoder:A(Me)},props:{decoder:A(G())}}),mr=new D(e=>{const t=typeof e;if(t==="function"){const r=e,n=r({$form:{},errors:void 0,touched:void 0,translate:void 0});return r.uid=n.uid||Le(),r.type=n.type,r.path=n.path,k(r)}else return C([{message:`Expected a function, got '${t}'`,path:[]}])}),gr=ne({kind:{decoder:J("input")},uid:{decoder:A(w())},type:{decoder:w()},size:{suffixed:!0,decoder:A($e())},include:{decoder:A(Se)},exclude:{decoder:A(ve)},disabled:{suffixed:!0,decoder:A(je)},readonly:{suffixed:!0,decoder:A(je)},on:{decoder:A(Me)},props:{decoder:A(G())},label:{suffixed:!0,decoder:V(A(St))},path:{decoder:w()},defaultValue:{decoder:A(G())},validator:{suffixed:!0,decoder:V(A(G()))}}).map(e=>{const t={...e};if(e.uid||(t.uid=`${e.path}-${e.type}`),e.type==="repeater"){const r=e.props;r.template=He.parse(r.template)}return t}),yr=$t(()=>{const e=ir("kind",{input:gr,layout:He,display:pr,action:hr});return new D(t=>typeof t=="function"?mr.decode(t):e.decode(t))}),He=ne({kind:{decoder:J("layout")},uid:{decoder:Be},type:{decoder:w()},size:{suffixed:!0,decoder:A($e())},include:{decoder:A(Se)},exclude:{decoder:A(ve)},props:{decoder:A(G())},on:{decoder:A(Me)},children:{decoder:Ve(yr)}}),B=class B{constructor(){this.widgetLoaders={},this._ready=!1}get ready(){return this._ready}setWidgetLoaders(t){this.widgetLoaders=t,this._ready=!0}async loadWidget(t){const r=this.widgetLoaders[t];if(!B.sharedCache.has(r)){const n=r().catch(o=>(B.sharedCache.delete(r),Promise.reject(o)));B.sharedCache.set(r,n)}return B.sharedCache.get(r)}};B.sharedCache=new Map;let We=B;function Ar(e){return{...e,form:{uid:"",type:"flex",kind:"layout",children:e.form}}}const vt=re({states:A(dr(w())),form:$t(()=>He)}),Et=e=>({formName:"",formDef:vt.parse({form:{kind:"layout",type:"flex",children:[]}}),flatForm:{},currentStates:[],calculatedWidgets:{},validations:{},touchedControls:{},injectedValidations:{},isFormValid:!0,widgetFlags:{},widgetPropOverrides:{},data:{},meta:{},formHealth:{status:"ok"},touched:!1,lang:e}),$r=e=>!(typeof e!="object"||e===null||typeof e.key!="string");function Sr(e){const t=new Intl.Locale(e).maximize().script;return["Arab","Hebr","Thaa","Syrc","Tfng","Adlm","Rohg"].includes(t||"")?"rtl":"ltr"}const Ct=(e=navigator.language||"en-US")=>{const t=new Set;return{get lang(){return e},translate(n){return n},subscribe(n){return t.add(n),()=>{t.delete(n)}},setLang(n){e=n,t.forEach(o=>o(e))}}},vr=e=>{throw new Error(`Unhandled case: ${JSON.stringify(e)}`)};function W(e,...t){return t.reduce((r,n)=>n(r),e)}function Er(e,t){const r=t.payload.widget.uid;if(!r)throw new Error("addWidget: widget must have a uid");const n=t.payload.widget,o=e.touched&&I(n)?{...e.touchedControls,[n.path]:!0}:e.touchedControls;return{...e,touchedControls:o,calculatedWidgets:{...e.calculatedWidgets,[r]:{source:n,current:{}}}}}const b={calculateCurrentStateError:10,initializeParseError:20,initializeUidCollisionError:21,initializeUnknownError:22,initializeMalformedFormShapeError:23,widgetCouldNotBeLoaded:30,resolveStringInterpolationError:40},ie=(e,t)=>{if(e===void 0)throw new Error("obj is undefined");return t.split(".").reduce((r,n)=>r===void 0||n===""?r:Array.isArray(r)?r[parseInt(n,10)]:r[n],e)},Ge=(e,t,r)=>{if(e===null)throw new Error("object is null");if(e===void 0)throw new Error("object is undefined");if(t==="")throw new Error("path cannot be empty");const n=t.split(".");let o=e;for(let s=0;s<n.length-1;s++){const u=n[s],c=n[s+1];(o[u]==null||typeof o[u]!="object")&&(o[u]=wr(c)?[]:{}),o=o[u]}const i=n[n.length-1];return o[i]=r,e},Cr=(e,t)=>{if(t==="")return e;const r=t.split("."),n=[e];for(let s=0;s<r.length-1;s++){const u=n[s];if(u==null||typeof u!="object")return e;const c=r[s],l=Array.isArray(u)?u[parseInt(c,10)]:u[c];if(l==null||typeof l!="object")return e;n.push(l)}const o=n[n.length-1],i=r[r.length-1];Array.isArray(o)?o.splice(parseInt(i,10),1):delete o[i];for(let s=n.length-1;s>=1;s--){const u=n[s];if(Array.isArray(u)||!Or(u))break;const c=n[s-1],l=r[s-1];if(Array.isArray(c))break;delete c[l]}return e};function wr(e){const t=Number(e);return Number.isInteger(t)&&t>=0&&t.toString()===e}function Or(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}const Ee=(e,t)=>(delete e[t],e);function fe(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>fe(r));const t={};for(const r of Object.keys(e))t[r]=fe(e[r]);return t}function be(e){return e.flatMap(t=>[t,...ae(t)?be(t.children):[]])}function Ke(e){return Object.entries(e.validations).reduce((r,[n,o])=>(o!==null&&(r.$formIsInvalid=!0,Ge(r.$errors,n,[...o])),r),{$formIsInvalid:!1,$errors:{}})}function Oe(e){const t=fe(e.data);for(const[r,n]of Object.entries(e.widgetFlags))if(n.hidden===!0){const o=e.flatForm[r];o&&I(o)&&Cr(t,o.path)}return t}const ze=32;let Pe,h,y,$=e=>(h=0,y=e,$.newline=!1,e=v(),y[h]?z():e||""),z=(e="Unexpected token",t=h,r=y.slice(0,t).split(`
2
2
  `),n=r.pop(),o=y.slice(Math.max(0,t-40),t),i="̭",s=(y[t]||" ")+i,u=y.slice(t+1,t+20))=>{throw SyntaxError(`${e} at ${r.length+1}:${n.length+1}
3
3
  ${y[t-41]!==`
4
4
  `,""+o}${s}${u}`)},wt=(e,t=h)=>(Array.isArray(e)&&(e.loc=t),e),q=(e,t=h,r)=>{for(;r=e(y.charCodeAt(h));)h+=r;return y.slice(t,h)},O=(e=1)=>y[h+=e],Ne=e=>h=e,v=(e=0,t)=>{let r,n,o,i,s;for(t&&$.asi&&($.newline=!1);(r=$.space())&&(s=$.newline,1)&&r!==t&&(o=(n&&r===91&&Pe&&$.asi?.(n,e,v)||null)??((i=j[r])&&i(n,e))??(n&&s&&$.asi?.(n,e,v))??(!n&&q($.id)));)n=o;return t&&(r==t?(h++,t===125&&$.asi&&($.newline=!0)):z("Unclosed "+String.fromCharCode(t-(t>42?2:1)))),n},R=(e,t=h)=>{for(Pe=!1;(e=y.charCodeAt(h))<=ze;)$.asi&&e===10&&($.newline=Pe=!0),h++;return e},Ir=(e=h)=>{for(;y.charCodeAt(e)<=ze;)e++;return y.charCodeAt(e)};$.id=e=>e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e==36||e==95||e>=192&&e!=215&&e!=247;let Dr=(e,t=e.length)=>y.substr(h,t)===e&&!$.id(y.charCodeAt(h+t)),j=[],ut={},F=(e,t=ze,r,n=e.charCodeAt(0),o=e.length,i=j[n],s=e.toUpperCase()!==e,u,c)=>(t=ut[e]=!i&&ut[e]||t,j[n]=(l,g,m,f=h)=>(u=m,(m?e==m:(o<2||e.charCodeAt(1)===y.charCodeAt(h+1)&&(o<3||y.substr(h,o)==e))&&(!s||!$.id(y.charCodeAt(h+o)))&&(u=m=e))&&g<t&&(h+=o,(c=r(l))?wt(c,f):(h=f,u=0,!s&&!i&&!l&&z()),c)||i?.(l,g,u))),S=(e,t,r=!1)=>F(e,t,n=>n&&(o=>o&&[e,n,o])(v(t-(r?.5:0)))),M=(e,t,r)=>F(e,t,n=>!n&&(n=v(t-.5))&&[e,n]),se=(e,t)=>F(e,200,r=>!r&&[,t]),Ot=(e,t,r)=>F(e,t,(n,o)=>(o=v(t-(r?.5:0)),n?.[0]!==e&&(n=[e,n||null]),o?.[0]===e?n.push(...o.slice(1)):n.push(o||null),n)),Xe=(e,t)=>F(e[0],t,r=>!r&&[e,v(0,e.charCodeAt(1))||null]),It=(e,t)=>F(e[0],t,r=>r&&[e,r,v(0,e.charCodeAt(1))||null]),de=(e,t,r,n=e.charCodeAt(0),o=e.length,i=j[n],s)=>j[n]=(u,c,l,g=h)=>!u&&(l?e==l:(o<2||y.substr(h,o)==e)&&(l=e))&&c<t&&!$.id(y.charCodeAt(h+o))&&(!$.prop||$.prop(h+o))&&(Ne(h+o),(s=r())?wt(s,g):Ne(g),s)||i?.(u,c,l);Object.defineProperty($,"space",{configurable:!0,enumerable:!0,get:()=>R,set:e=>R=e});const Ue={},a=(e,t,r=Ue[e])=>Ue[e]=(...n)=>t(...n)||r?.(...n),d=e=>Array.isArray(e)?e[0]==null?(t=>()=>t)(e[1]):Ue[e[0]]?.(...e.slice(1))??z(`Unknown operator: ${e[0]}`,e?.loc):e===void 0?()=>{}:t=>t?.[e],pe=46,ee=48,he=57,Tr=69,kr=101,Fr=43,jr=45,le=95,Dt=110,Wr=97,Pr=102,Nr=65,Ur=70,Tt=e=>e.indexOf("_")<0?e:e.replaceAll("_",""),Je=e=>{let t=Tt(q(r=>r===pe&&y.charCodeAt(h+1)!==pe||r>=ee&&r<=he||r===le||((r===Tr||r===kr)&&((r=y.charCodeAt(h+1))>=ee&&r<=he||r===Fr||r===jr)?2:0)));return y.charCodeAt(h)===Dt?(O(),[,BigInt(t)]):(e=+t)!=e?z():[,e]},_r={2:e=>e===48||e===49||e===le,8:e=>e>=48&&e<=55||e===le,16:e=>e>=ee&&e<=he||e>=Wr&&e<=Pr||e>=Nr&&e<=Ur||e===le};$.number=null;j[pe]=e=>!e&&y.charCodeAt(h+1)!==pe&&Je();for(let e=ee;e<=he;e++)j[e]=t=>t?void 0:Je();j[ee]=e=>{if(e)return;const t=$.number;if(t){for(const[r,n]of Object.entries(t))if(r[0]==="0"&&y[h+1]?.toLowerCase()===r[1]){O(2);const o=Tt(q(_r[n]));return y.charCodeAt(h)===Dt?(O(),[,BigInt("0"+r[1]+o)]):[,parseInt(o,n)]}}return Je()};const Vr=92,ct=34,lt=39,Lr={n:`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemui/core",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./index.umd.cjs",