@effect-app/vue-components 3.2.0 → 4.0.0-beta.0

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 (99) hide show
  1. package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +1 -1
  2. package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +11 -13
  3. package/dist/types/components/OmegaForm/useOmegaForm.d.ts +6 -4
  4. package/dist/types/utils/index.d.ts +4 -3
  5. package/dist/vue-components.es.js +13 -14
  6. package/dist/vue-components.es10.js +109 -115
  7. package/dist/vue-components.es11.js +1 -1
  8. package/dist/vue-components.es12.js +290 -341
  9. package/dist/vue-components.es17.js +723 -4
  10. package/dist/vue-components.es18.js +140 -9
  11. package/dist/vue-components.es19.js +4 -55
  12. package/dist/vue-components.es2.js +17 -18
  13. package/dist/vue-components.es20.js +11 -68
  14. package/dist/vue-components.es21.js +3 -6
  15. package/dist/vue-components.es22.js +24 -6
  16. package/dist/vue-components.es23.js +4 -3
  17. package/dist/vue-components.es24.js +8 -3
  18. package/dist/vue-components.es25.js +55 -2
  19. package/dist/vue-components.es26.js +69 -2
  20. package/dist/vue-components.es27.js +6 -2
  21. package/dist/vue-components.es28.js +6 -2
  22. package/dist/vue-components.es29.js +3 -17
  23. package/dist/vue-components.es3.js +9 -9
  24. package/dist/vue-components.es30.js +3 -192
  25. package/dist/vue-components.es31.js +4 -0
  26. package/dist/vue-components.es32.js +2 -42
  27. package/dist/vue-components.es33.js +1 -1
  28. package/dist/vue-components.es34.js +1 -1
  29. package/dist/vue-components.es35.js +17 -111
  30. package/dist/vue-components.es36.js +40 -0
  31. package/dist/vue-components.es37.js +4 -7
  32. package/dist/vue-components.es38.js +82 -31
  33. package/dist/vue-components.es39.js +54 -0
  34. package/dist/vue-components.es40.js +561 -4
  35. package/dist/vue-components.es41.js +40 -22
  36. package/dist/vue-components.es42.js +27 -5
  37. package/dist/vue-components.es43.js +5 -21
  38. package/dist/vue-components.es44.js +39 -29
  39. package/dist/vue-components.es45.js +313 -21
  40. package/dist/vue-components.es46.js +31 -12
  41. package/dist/vue-components.es47.js +4 -5
  42. package/dist/vue-components.es48.js +23 -18
  43. package/dist/vue-components.es49.js +74 -8
  44. package/dist/vue-components.es50.js +98 -30
  45. package/dist/vue-components.es51.js +2 -48
  46. package/dist/vue-components.es52.js +317 -25
  47. package/dist/vue-components.es53.js +64 -11
  48. package/dist/vue-components.es54.js +2 -65
  49. package/dist/vue-components.es55.js +2 -56
  50. package/dist/vue-components.es56.js +110 -16
  51. package/dist/vue-components.es58.js +7 -29
  52. package/dist/vue-components.es59.js +31 -41
  53. package/dist/vue-components.es61.js +190 -42
  54. package/dist/vue-components.es63.js +6 -0
  55. package/dist/vue-components.es64.js +103 -0
  56. package/dist/vue-components.es65.js +4 -0
  57. package/dist/vue-components.es66.js +23 -0
  58. package/dist/vue-components.es67.js +84 -0
  59. package/dist/vue-components.es68.js +14 -0
  60. package/dist/vue-components.es69.js +115 -0
  61. package/dist/vue-components.es7.js +1 -1
  62. package/dist/vue-components.es70.js +5 -0
  63. package/dist/vue-components.es71.js +34 -0
  64. package/dist/vue-components.es72.js +4 -0
  65. package/dist/vue-components.es73.js +4 -0
  66. package/dist/vue-components.es74.js +17 -0
  67. package/dist/vue-components.es75.js +72 -0
  68. package/dist/vue-components.es76.js +25 -0
  69. package/dist/vue-components.es77.js +7 -0
  70. package/dist/vue-components.es78.js +23 -0
  71. package/dist/vue-components.es79.js +32 -0
  72. package/dist/vue-components.es80.js +24 -0
  73. package/dist/vue-components.es81.js +14 -0
  74. package/dist/vue-components.es82.js +7 -0
  75. package/dist/vue-components.es83.js +21 -0
  76. package/dist/vue-components.es84.js +11 -0
  77. package/dist/vue-components.es85.js +33 -0
  78. package/dist/vue-components.es86.js +50 -0
  79. package/dist/vue-components.es87.js +28 -0
  80. package/dist/vue-components.es88.js +17 -0
  81. package/dist/vue-components.es89.js +18 -0
  82. package/dist/vue-components.es90.js +10 -0
  83. package/dist/vue-components.es91.js +13 -0
  84. package/dist/vue-components.es92.js +67 -0
  85. package/dist/vue-components.es93.js +58 -0
  86. package/dist/vue-components.es94.js +19 -0
  87. package/dist/{vue-components.es57.js → vue-components.es95.js} +3 -3
  88. package/dist/vue-components.es96.js +31 -0
  89. package/dist/vue-components.es97.js +44 -0
  90. package/dist/vue-components.es99.js +46 -0
  91. package/package.json +25 -24
  92. package/src/components/OmegaForm/OmegaAutoGen.vue +11 -10
  93. package/src/components/OmegaForm/OmegaErrorsInternal.vue +3 -2
  94. package/src/components/OmegaForm/OmegaFormStuff.ts +249 -274
  95. package/src/components/OmegaForm/OmegaInternalInput.vue +1 -1
  96. package/src/components/OmegaForm/useOmegaForm.ts +27 -28
  97. package/src/utils/index.ts +7 -7
  98. /package/dist/{vue-components.es62.js → vue-components.es100.js} +0 -0
  99. /package/dist/{vue-components.es60.js → vue-components.es98.js} +0 -0
@@ -1,33 +1,101 @@
1
- import { INVALID_SPAN_CONTEXT as o } from "./vue-components.es49.js";
2
- var i = (
3
- /** @class */
4
- (function() {
5
- function t(n) {
6
- n === void 0 && (n = o), this._spanContext = n;
1
+ import { isArrayNonEmpty as O } from "./vue-components.es36.js";
2
+ import { runSync as I, mapErrorEager as A, runSyncExit as U, flatMapEager as l, fail as E, succeed as _, catchEager as D } from "./vue-components.es22.js";
3
+ import { getSuccess as L } from "./vue-components.es47.js";
4
+ import { memoize as N } from "./vue-components.es39.js";
5
+ import { resolve as h } from "./vue-components.es74.js";
6
+ import { some as V, isSome as S } from "./vue-components.es24.js";
7
+ import { isFunction as b } from "./vue-components.es42.js";
8
+ import { defaultParseOptions as j, toType as R, replaceEncoding as T, ClassTypeId as z, Link as F, isArrays as K, isObjects as M, isDeclaration as Y, collectIssues as v, STRUCTURAL_ANNOTATION_KEY as q } from "./vue-components.es17.js";
9
+ import { InvalidValue as B, Encoding as G, Composite as k } from "./vue-components.es45.js";
10
+ const m = /* @__PURE__ */ N((r) => {
11
+ switch (r._tag) {
12
+ case "Declaration": {
13
+ const n = r.annotations?.[z];
14
+ if (b(n)) {
15
+ const c = n(r.typeParameters), t = m(c.to);
16
+ return T(r, t === c.to ? [c] : [new F(t, c.transformation)]);
17
+ }
18
+ return r;
7
19
  }
8
- return t.prototype.spanContext = function() {
9
- return this._spanContext;
10
- }, t.prototype.setAttribute = function(n, e) {
11
- return this;
12
- }, t.prototype.setAttributes = function(n) {
13
- return this;
14
- }, t.prototype.addEvent = function(n, e) {
15
- return this;
16
- }, t.prototype.addLink = function(n) {
17
- return this;
18
- }, t.prototype.addLinks = function(n) {
19
- return this;
20
- }, t.prototype.setStatus = function(n) {
21
- return this;
22
- }, t.prototype.updateName = function(n) {
23
- return this;
24
- }, t.prototype.end = function(n) {
25
- }, t.prototype.isRecording = function() {
26
- return !1;
27
- }, t.prototype.recordException = function(n, e) {
28
- }, t;
29
- })()
30
- );
20
+ case "Objects":
21
+ case "Arrays":
22
+ return r.recur((n) => {
23
+ const c = n.context?.defaultValue;
24
+ return c ? T(m(n), c) : m(n);
25
+ });
26
+ case "Suspend":
27
+ return r.recur(m);
28
+ default:
29
+ return r;
30
+ }
31
+ });
32
+ function P(r) {
33
+ const n = m(R(r.ast)), c = x(n);
34
+ return (t, e) => c(t, e?.parseOptions);
35
+ }
36
+ function nr(r) {
37
+ const n = P(r);
38
+ return (c, t) => L(U(n(c, t)));
39
+ }
40
+ function tr(r) {
41
+ const n = P(r);
42
+ return (c, t) => I(A(n(c, t), (e) => new Error(e.toString(), {
43
+ cause: e
44
+ })));
45
+ }
46
+ function cr(r) {
47
+ return x(r.ast);
48
+ }
49
+ function x(r) {
50
+ const n = p(r);
51
+ return (c, t) => l(n(V(c), t ?? j), (e) => e._tag === "None" ? E(new B(e)) : _(e.value));
52
+ }
53
+ const p = /* @__PURE__ */ N((r) => {
54
+ let n;
55
+ if (!r.context && !r.encoding && !r.checks)
56
+ return (t, e) => (n ??= r.getParser(p), n(t, h(r)?.parseOptions ?? e));
57
+ const c = K(r) || M(r) || Y(r) && r.typeParameters.length > 0;
58
+ return (t, e) => {
59
+ e = h(r)?.parseOptions ?? e;
60
+ const y = r.encoding;
61
+ let s;
62
+ if (y) {
63
+ const a = y, o = a.length;
64
+ for (let i = o - 1; i >= 0; i--) {
65
+ const u = a[i], g = u.to, w = p(g);
66
+ if (s = s ? l(s, (d) => w(d, e)) : w(t, e), u.transformation._tag === "Transformation") {
67
+ const d = u.transformation.decode;
68
+ s = l(s, (C) => d.run(C, e));
69
+ } else
70
+ s = u.transformation.decode(s, e);
71
+ }
72
+ s = A(s, (i) => new G(r, t, i));
73
+ }
74
+ n ??= r.getParser(p);
75
+ let f = s ? l(s, (a) => n(a, e)) : n(t, e);
76
+ if (r.checks) {
77
+ const a = r.checks;
78
+ e?.errors === "all" && c && S(t) && (f = D(f, (o) => {
79
+ const i = [];
80
+ v(a.filter((g) => g.annotations?.[q]), t.value, i, r, e);
81
+ const u = O(i) ? o._tag === "Composite" && o.ast === r ? new k(r, o.actual, [...o.issues, ...i]) : new k(r, t, [o, ...i]) : o;
82
+ return E(u);
83
+ })), f = l(f, (o) => {
84
+ if (S(o)) {
85
+ const i = o.value, u = [];
86
+ if (v(a, i, u, r, e), O(u))
87
+ return E(new k(r, o, u));
88
+ }
89
+ return _(o);
90
+ });
91
+ }
92
+ return f;
93
+ };
94
+ });
31
95
  export {
32
- i as NonRecordingSpan
96
+ cr as decodeUnknownEffect,
97
+ P as makeEffect,
98
+ nr as makeOption,
99
+ tr as makeUnsafe,
100
+ x as run
33
101
  };
@@ -1,50 +1,4 @@
1
- import { NoopContextManager as f } from "./vue-components.es59.js";
2
- import { registerGlobal as s, getGlobal as p, unregisterGlobal as g } from "./vue-components.es57.js";
3
- import { DiagAPI as u } from "./vue-components.es54.js";
4
- var y = function(t, e) {
5
- var a = typeof Symbol == "function" && t[Symbol.iterator];
6
- if (!a) return t;
7
- var n = a.call(t), o, r = [], i;
8
- try {
9
- for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) r.push(o.value);
10
- } catch (c) {
11
- i = { error: c };
12
- } finally {
13
- try {
14
- o && !o.done && (a = n.return) && a.call(n);
15
- } finally {
16
- if (i) throw i.error;
17
- }
18
- }
19
- return r;
20
- }, d = function(t, e, a) {
21
- if (a || arguments.length === 2) for (var n = 0, o = e.length, r; n < o; n++)
22
- (r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
23
- return t.concat(r || Array.prototype.slice.call(e));
24
- }, l = "context", _ = new f(), A = (
25
- /** @class */
26
- (function() {
27
- function t() {
28
- }
29
- return t.getInstance = function() {
30
- return this._instance || (this._instance = new t()), this._instance;
31
- }, t.prototype.setGlobalContextManager = function(e) {
32
- return s(l, e, u.instance());
33
- }, t.prototype.active = function() {
34
- return this._getContextManager().active();
35
- }, t.prototype.with = function(e, a, n) {
36
- for (var o, r = [], i = 3; i < arguments.length; i++)
37
- r[i - 3] = arguments[i];
38
- return (o = this._getContextManager()).with.apply(o, d([e, a, n], y(r), !1));
39
- }, t.prototype.bind = function(e, a) {
40
- return this._getContextManager().bind(e, a);
41
- }, t.prototype._getContextManager = function() {
42
- return p(l) || _;
43
- }, t.prototype.disable = function() {
44
- this._getContextManager().disable(), g(l, u.instance());
45
- }, t;
46
- })()
47
- );
1
+ const o = (a) => a;
48
2
  export {
49
- A as ContextAPI
3
+ o as lambda
50
4
  };
@@ -1,28 +1,320 @@
1
- import { registerGlobal as a, getGlobal as p, unregisterGlobal as s } from "./vue-components.es57.js";
2
- import { ProxyTracerProvider as i } from "./vue-components.es45.js";
3
- import { wrapSpanContext as c, isSpanContextValid as h } from "./vue-components.es48.js";
4
- import { deleteSpan as g, getSpan as S, getActiveSpan as x, getSpanContext as d, setSpan as f, setSpanContext as l } from "./vue-components.es58.js";
5
- import { DiagAPI as o } from "./vue-components.es54.js";
6
- var n = "trace", y = (
7
- /** @class */
8
- (function() {
9
- function t() {
10
- this._proxyTracerProvider = new i(), this.wrapSpanContext = c, this.isSpanContextValid = h, this.deleteSpan = g, this.getSpan = S, this.getActiveSpan = x, this.getSpanContext = d, this.setSpan = f, this.setSpanContext = l;
1
+ import { symbol as d, equals as i } from "./vue-components.es64.js";
2
+ import { format as a } from "./vue-components.es38.js";
3
+ import { identity as E, dual as R } from "./vue-components.es39.js";
4
+ import { symbol as g, array as M, combine as f, string as b, hash as l } from "./vue-components.es67.js";
5
+ import { NodeInspectSymbol as O } from "./vue-components.es88.js";
6
+ import { pipeArguments as S } from "./vue-components.es41.js";
7
+ import { hasProperty as I } from "./vue-components.es42.js";
8
+ import { SingleShotGen as T } from "./vue-components.es71.js";
9
+ const o = "~effect/Effect", _ = "~effect/Exit", Y = {
10
+ _A: E,
11
+ _E: E,
12
+ _R: E
13
+ }, $ = `${o}/identifier`, n = `${o}/args`, h = `${o}/evaluate`, m = `${o}/successCont`, u = `${o}/failureCont`, F = `${o}/ensureCont`, dt = /* @__PURE__ */ Symbol.for("effect/Effect/Yield"), U = {
14
+ pipe() {
15
+ return S(this, arguments);
16
+ },
17
+ toJSON() {
18
+ return {
19
+ ...this
20
+ };
21
+ },
22
+ toString() {
23
+ return a(this.toJSON(), {
24
+ ignoreToString: !0,
25
+ space: 2
26
+ });
27
+ },
28
+ [O]() {
29
+ return this.toJSON();
30
+ }
31
+ }, W = {
32
+ [Symbol.iterator]() {
33
+ return new T(this);
34
+ }
35
+ }, z = {
36
+ ...W,
37
+ pipe() {
38
+ return S(this, arguments);
39
+ }
40
+ }, B = {
41
+ [o]: Y,
42
+ ...U,
43
+ [Symbol.iterator]() {
44
+ return new T(this);
45
+ },
46
+ asEffect() {
47
+ return this;
48
+ },
49
+ toJSON() {
50
+ return {
51
+ _id: "Effect",
52
+ op: this[$],
53
+ ...n in this ? {
54
+ args: this[n]
55
+ } : void 0
56
+ };
57
+ }
58
+ }, q = (t) => I(t, _), p = "~effect/Cause", y = "~effect/Cause/Reason", v = (t) => I(t, p);
59
+ class C {
60
+ [p];
61
+ reasons;
62
+ constructor(e) {
63
+ this[p] = p, this.reasons = e;
64
+ }
65
+ pipe() {
66
+ return S(this, arguments);
67
+ }
68
+ toJSON() {
69
+ return {
70
+ _id: "Cause",
71
+ failures: this.reasons.map((e) => e.toJSON())
72
+ };
73
+ }
74
+ toString() {
75
+ return `Cause(${a(this.reasons)})`;
76
+ }
77
+ [O]() {
78
+ return this.toJSON();
79
+ }
80
+ [d](e) {
81
+ return v(e) && this.reasons.length === e.reasons.length && this.reasons.every((r, s) => i(r, e.reasons[s]));
82
+ }
83
+ [g]() {
84
+ return M(this.reasons);
85
+ }
86
+ }
87
+ const P = /* @__PURE__ */ new WeakMap();
88
+ class J {
89
+ [y];
90
+ annotations;
91
+ _tag;
92
+ constructor(e, r, s) {
93
+ if (this[y] = y, this._tag = e, r !== N && typeof s == "object" && s !== null && r.size > 0) {
94
+ const c = P.get(s);
95
+ c && (r = new Map([...c, ...r])), P.set(s, r);
11
96
  }
12
- return t.getInstance = function() {
13
- return this._instance || (this._instance = new t()), this._instance;
14
- }, t.prototype.setGlobalTracerProvider = function(r) {
15
- var e = a(n, this._proxyTracerProvider, o.instance());
16
- return e && this._proxyTracerProvider.setDelegate(r), e;
17
- }, t.prototype.getTracerProvider = function() {
18
- return p(n) || this._proxyTracerProvider;
19
- }, t.prototype.getTracer = function(r, e) {
20
- return this.getTracerProvider().getTracer(r, e);
21
- }, t.prototype.disable = function() {
22
- s(n, o.instance()), this._proxyTracerProvider = new i();
23
- }, t;
24
- })()
25
- );
97
+ this.annotations = r;
98
+ }
99
+ annotate(e, r) {
100
+ if (e.mapUnsafe.size === 0) return this;
101
+ const s = new Map(this.annotations);
102
+ e.mapUnsafe.forEach((D, x) => {
103
+ r?.overwrite !== !0 && s.has(x) || s.set(x, D);
104
+ });
105
+ const c = Object.assign(Object.create(Object.getPrototypeOf(this)), this);
106
+ return c.annotations = s, c;
107
+ }
108
+ pipe() {
109
+ return S(this, arguments);
110
+ }
111
+ toString() {
112
+ return a(this);
113
+ }
114
+ [O]() {
115
+ return this.toString();
116
+ }
117
+ }
118
+ const N = /* @__PURE__ */ new Map();
119
+ class G extends J {
120
+ error;
121
+ constructor(e, r = N) {
122
+ super("Fail", r, e), this.error = e;
123
+ }
124
+ toString() {
125
+ return `Fail(${a(this.error)})`;
126
+ }
127
+ toJSON() {
128
+ return {
129
+ _tag: "Fail",
130
+ error: this.error
131
+ };
132
+ }
133
+ [d](e) {
134
+ return Q(e) && i(this.error, e.error) && i(this.annotations, e.annotations);
135
+ }
136
+ [g]() {
137
+ return f(b(this._tag))(f(l(this.error))(l(this.annotations)));
138
+ }
139
+ }
140
+ const K = (t) => new C([new G(t)]);
141
+ class V extends J {
142
+ defect;
143
+ constructor(e, r = N) {
144
+ super("Die", r, e), this.defect = e;
145
+ }
146
+ toString() {
147
+ return `Die(${a(this.defect)})`;
148
+ }
149
+ toJSON() {
150
+ return {
151
+ _tag: "Die",
152
+ defect: this.defect
153
+ };
154
+ }
155
+ [d](e) {
156
+ return X(e) && i(this.defect, e.defect) && i(this.annotations, e.annotations);
157
+ }
158
+ [g]() {
159
+ return f(b(this._tag))(f(l(this.defect))(l(this.annotations)));
160
+ }
161
+ }
162
+ const H = (t) => new C([new V(t)]), L = /* @__PURE__ */ R((t) => v(t[0]), (t, e, r) => e.mapUnsafe.size === 0 ? t : new C(t.reasons.map((s) => s.annotate(e, r)))), Q = (t) => t._tag === "Fail", X = (t) => t._tag === "Die", gt = (t) => t._tag === "Interrupt";
163
+ function Z(t) {
164
+ return st("Effect.evaluate: Not implemented");
165
+ }
166
+ const A = (t) => ({
167
+ ...B,
168
+ [$]: t.op,
169
+ [h]: t[h] ?? Z,
170
+ [m]: t[m],
171
+ [u]: t[u],
172
+ [F]: t[F]
173
+ }), tt = (t) => {
174
+ const e = A(t);
175
+ return function() {
176
+ const r = Object.create(e);
177
+ return r[n] = t.single === !1 ? arguments : arguments[0], r;
178
+ };
179
+ }, j = (t) => {
180
+ const e = {
181
+ ...A(t),
182
+ [_]: _,
183
+ _tag: t.op,
184
+ get [t.prop]() {
185
+ return this[n];
186
+ },
187
+ toString() {
188
+ return `${t.op}(${a(this[n])})`;
189
+ },
190
+ toJSON() {
191
+ return {
192
+ _id: "Exit",
193
+ _tag: t.op,
194
+ [t.prop]: this[n]
195
+ };
196
+ },
197
+ [d](r) {
198
+ return q(r) && r._tag === this._tag && i(this[n], r[n]);
199
+ },
200
+ [g]() {
201
+ return f(b(t.op), l(this[n]));
202
+ }
203
+ };
204
+ return function(r) {
205
+ const s = Object.create(e);
206
+ return s[n] = r, s;
207
+ };
208
+ }, St = /* @__PURE__ */ j({
209
+ op: "Success",
210
+ prop: "value",
211
+ [h](t) {
212
+ const e = t.getCont(m);
213
+ return e ? e[m](this[n], t, this) : t.yieldWith(this);
214
+ }
215
+ }), et = {
216
+ key: "effect/Cause/StackTrace"
217
+ }, Et = {
218
+ key: "effect/Cause/InterruptorStackTrace"
219
+ }, w = /* @__PURE__ */ j({
220
+ op: "Failure",
221
+ prop: "cause",
222
+ [h](t) {
223
+ let e = this[n], r = !1;
224
+ t.currentStackFrame && (e = L(e, {
225
+ mapUnsafe: /* @__PURE__ */ new Map([[et.key, t.currentStackFrame]])
226
+ }), r = !0);
227
+ let s = t.getCont(u);
228
+ for (; t.interruptible && t._interruptedCause && s; )
229
+ s = t.getCont(u);
230
+ return s ? s[u](e, t, r ? void 0 : this) : t.yieldWith(r ? this : w(e));
231
+ }
232
+ }), rt = (t) => w(K(t)), st = (t) => w(H(t)), yt = /* @__PURE__ */ tt({
233
+ op: "WithFiber",
234
+ [h](t) {
235
+ return this[n](t);
236
+ }
237
+ }), nt = /* @__PURE__ */ (function() {
238
+ class t extends globalThis.Error {
239
+ asEffect() {
240
+ return rt(this);
241
+ }
242
+ }
243
+ return Object.assign(t.prototype, z), t;
244
+ })(), ot = /* @__PURE__ */ (function() {
245
+ const t = /* @__PURE__ */ Symbol.for("effect/Data/Error/plainArgs");
246
+ return class extends nt {
247
+ constructor(r) {
248
+ super(r?.message, r?.cause ? {
249
+ cause: r.cause
250
+ } : void 0), r && (Object.assign(this, r), Object.defineProperty(this, t, {
251
+ value: r,
252
+ enumerable: !1
253
+ }));
254
+ }
255
+ toJSON() {
256
+ return {
257
+ ...this[t],
258
+ ...this
259
+ };
260
+ }
261
+ };
262
+ })(), it = (t) => {
263
+ class e extends ot {
264
+ _tag = t;
265
+ }
266
+ return e.prototype.name = t, e;
267
+ }, k = "~effect/Cause/NoSuchElementError";
268
+ class bt extends (/* @__PURE__ */ it("NoSuchElementError")) {
269
+ [k] = k;
270
+ constructor(e) {
271
+ super({
272
+ message: e
273
+ });
274
+ }
275
+ }
26
276
  export {
27
- y as TraceAPI
277
+ C as CauseImpl,
278
+ y as CauseReasonTypeId,
279
+ p as CauseTypeId,
280
+ V as Die,
281
+ B as EffectProto,
282
+ o as EffectTypeId,
283
+ ot as Error,
284
+ _ as ExitTypeId,
285
+ G as Fail,
286
+ Et as InterruptorStackTrace,
287
+ bt as NoSuchElementError,
288
+ k as NoSuchElementErrorTypeId,
289
+ U as PipeInspectableProto,
290
+ J as ReasonBase,
291
+ et as StackTraceKey,
292
+ it as TaggedError,
293
+ dt as Yield,
294
+ nt as YieldableError,
295
+ z as YieldableErrorProto,
296
+ W as YieldableProto,
297
+ n as args,
298
+ L as causeAnnotate,
299
+ H as causeDie,
300
+ K as causeFail,
301
+ N as constEmptyAnnotations,
302
+ m as contA,
303
+ F as contAll,
304
+ u as contE,
305
+ h as evaluate,
306
+ st as exitDie,
307
+ rt as exitFail,
308
+ w as exitFailCause,
309
+ St as exitSucceed,
310
+ $ as identifier,
311
+ v as isCause,
312
+ X as isDieReason,
313
+ q as isExit,
314
+ Q as isFailReason,
315
+ gt as isInterruptReason,
316
+ j as makeExit,
317
+ tt as makePrimitive,
318
+ A as makePrimitiveProto,
319
+ yt as withFiber
28
320
  };
@@ -1,13 +1,66 @@
1
- import { useStore as u } from "@tanstack/vue-form";
2
- import { computed as f } from "vue";
3
- function c(o, t) {
4
- return f(() => t ? u(o.store, (n) => {
5
- const r = {};
6
- for (const e of t)
7
- r[e] = n[e];
8
- return r;
9
- }).value : {});
10
- }
1
+ import { symbol as r, equals as c } from "./vue-components.es64.js";
2
+ import { format as m } from "./vue-components.es38.js";
3
+ import { symbol as n, hash as o, combine as u } from "./vue-components.es67.js";
4
+ import { toJson as l } from "./vue-components.es88.js";
5
+ import { hasProperty as p } from "./vue-components.es42.js";
6
+ import { YieldableProto as _, PipeInspectableProto as f, exitFail as g, NoSuchElementError as b, exitSucceed as O } from "./vue-components.es52.js";
7
+ const s = "~effect/data/Option", a = {
8
+ [s]: {
9
+ _A: (t) => t
10
+ },
11
+ ...f,
12
+ ..._
13
+ }, S = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(a), {
14
+ _tag: "Some",
15
+ _op: "Some",
16
+ [r](t) {
17
+ return i(t) && P(t) && c(this.value, t.value);
18
+ },
19
+ [n]() {
20
+ return u(o(this._tag))(o(this.value));
21
+ },
22
+ toString() {
23
+ return `some(${m(this.value)})`;
24
+ },
25
+ toJSON() {
26
+ return {
27
+ _id: "Option",
28
+ _tag: this._tag,
29
+ value: l(this.value)
30
+ };
31
+ },
32
+ asEffect() {
33
+ return O(this.value);
34
+ }
35
+ }), h = /* @__PURE__ */ o("None"), N = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(a), {
36
+ _tag: "None",
37
+ _op: "None",
38
+ [r](t) {
39
+ return i(t) && v(t);
40
+ },
41
+ [n]() {
42
+ return h;
43
+ },
44
+ toString() {
45
+ return "none()";
46
+ },
47
+ toJSON() {
48
+ return {
49
+ _id: "Option",
50
+ _tag: this._tag
51
+ };
52
+ },
53
+ asEffect() {
54
+ return g(new b());
55
+ }
56
+ }), i = (t) => p(t, s), v = (t) => t._tag === "None", P = (t) => t._tag === "Some", I = /* @__PURE__ */ Object.create(N), $ = (t) => {
57
+ const e = Object.create(S);
58
+ return e.value = t, e;
59
+ };
11
60
  export {
12
- c as getOmegaStore
61
+ v as isNone,
62
+ i as isOption,
63
+ P as isSome,
64
+ I as none,
65
+ $ as some
13
66
  };
@@ -1,67 +1,4 @@
1
- import { DiagComponentLogger as m } from "./vue-components.es55.js";
2
- import { createLogLevelDiagLogger as y } from "./vue-components.es56.js";
3
- import { DiagLogLevel as d } from "./vue-components.es42.js";
4
- import { unregisterGlobal as p, getGlobal as v, registerGlobal as w } from "./vue-components.es57.js";
5
- var b = function(i, n) {
6
- var r = typeof Symbol == "function" && i[Symbol.iterator];
7
- if (!r) return i;
8
- var t = r.call(i), a, e = [], o;
9
- try {
10
- for (; (n === void 0 || n-- > 0) && !(a = t.next()).done; ) e.push(a.value);
11
- } catch (l) {
12
- o = { error: l };
13
- } finally {
14
- try {
15
- a && !a.done && (r = t.return) && r.call(t);
16
- } finally {
17
- if (o) throw o.error;
18
- }
19
- }
20
- return e;
21
- }, _ = function(i, n, r) {
22
- if (r || arguments.length === 2) for (var t = 0, a = n.length, e; t < a; t++)
23
- (e || !(t in n)) && (e || (e = Array.prototype.slice.call(n, 0, t)), e[t] = n[t]);
24
- return i.concat(e || Array.prototype.slice.call(n));
25
- }, h = "diag", P = (
26
- /** @class */
27
- (function() {
28
- function i() {
29
- function n(a) {
30
- return function() {
31
- for (var e = [], o = 0; o < arguments.length; o++)
32
- e[o] = arguments[o];
33
- var l = v("diag");
34
- if (l)
35
- return l[a].apply(l, _([], b(e), !1));
36
- };
37
- }
38
- var r = this, t = function(a, e) {
39
- var o, l, g;
40
- if (e === void 0 && (e = { logLevel: d.INFO }), a === r) {
41
- var u = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
42
- return r.error((o = u.stack) !== null && o !== void 0 ? o : u.message), !1;
43
- }
44
- typeof e == "number" && (e = {
45
- logLevel: e
46
- });
47
- var f = v("diag"), s = y((l = e.logLevel) !== null && l !== void 0 ? l : d.INFO, a);
48
- if (f && !e.suppressOverrideMessage) {
49
- var c = (g = new Error().stack) !== null && g !== void 0 ? g : "<failed to generate stacktrace>";
50
- f.warn("Current logger will be overwritten from " + c), s.warn("Current logger will overwrite one already registered from " + c);
51
- }
52
- return w("diag", s, r, !0);
53
- };
54
- r.setLogger = t, r.disable = function() {
55
- p(h, r);
56
- }, r.createComponentLogger = function(a) {
57
- return new m(a);
58
- }, r.verbose = n("verbose"), r.debug = n("debug"), r.info = n("info"), r.warn = n("warn"), r.error = n("error");
59
- }
60
- return i.instance = function() {
61
- return this._instance || (this._instance = new i()), this._instance;
62
- }, i;
63
- })()
64
- );
1
+ import f from "./vue-components.es25.js";
65
2
  export {
66
- P as DiagAPI
3
+ f as default
67
4
  };