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

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 (87) hide show
  1. package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +1 -1
  2. package/dist/vue-components.es10.js +12 -12
  3. package/dist/vue-components.es11.js +2 -2
  4. package/dist/vue-components.es12.js +3 -3
  5. package/dist/vue-components.es16.js +721 -9
  6. package/dist/vue-components.es17.js +119 -701
  7. package/dist/vue-components.es18.js +4 -141
  8. package/dist/vue-components.es19.js +11 -4
  9. package/dist/vue-components.es20.js +3 -11
  10. package/dist/vue-components.es21.js +24 -3
  11. package/dist/vue-components.es22.js +4 -24
  12. package/dist/vue-components.es23.js +8 -4
  13. package/dist/vue-components.es24.js +55 -8
  14. package/dist/vue-components.es25.js +64 -50
  15. package/dist/vue-components.es26.js +6 -69
  16. package/dist/vue-components.es27.js +5 -5
  17. package/dist/vue-components.es28.js +3 -6
  18. package/dist/vue-components.es29.js +3 -3
  19. package/dist/vue-components.es30.js +2 -3
  20. package/dist/vue-components.es31.js +1 -1
  21. package/dist/vue-components.es32.js +1 -1
  22. package/dist/vue-components.es33.js +1 -1
  23. package/dist/vue-components.es34.js +17 -2
  24. package/dist/vue-components.es35.js +10 -16
  25. package/dist/vue-components.es36.js +317 -37
  26. package/dist/vue-components.es37.js +561 -4
  27. package/dist/vue-components.es38.js +21 -77
  28. package/dist/vue-components.es39.js +1 -1
  29. package/dist/vue-components.es40.js +54 -551
  30. package/dist/vue-components.es41.js +4 -41
  31. package/dist/vue-components.es42.js +4 -27
  32. package/dist/vue-components.es43.js +24 -5
  33. package/dist/vue-components.es44.js +71 -36
  34. package/dist/vue-components.es45.js +30 -304
  35. package/dist/vue-components.es46.js +308 -25
  36. package/dist/vue-components.es47.js +99 -4
  37. package/dist/vue-components.es48.js +29 -22
  38. package/dist/vue-components.es49.js +2 -75
  39. package/dist/vue-components.es5.js +1 -1
  40. package/dist/vue-components.es50.js +2 -99
  41. package/dist/vue-components.es51.js +2 -2
  42. package/dist/vue-components.es52.js +110 -317
  43. package/dist/vue-components.es54.js +7 -2
  44. package/dist/vue-components.es55.js +32 -2
  45. package/dist/vue-components.es57.js +194 -0
  46. package/dist/vue-components.es59.js +36 -30
  47. package/dist/vue-components.es60.js +85 -0
  48. package/dist/vue-components.es61.js +40 -191
  49. package/dist/vue-components.es62.js +7 -0
  50. package/dist/vue-components.es63.js +1 -1
  51. package/dist/vue-components.es64.js +22 -100
  52. package/dist/vue-components.es65.js +5 -2
  53. package/dist/vue-components.es66.js +21 -21
  54. package/dist/vue-components.es67.js +28 -80
  55. package/dist/vue-components.es68.js +22 -12
  56. package/dist/vue-components.es69.js +11 -112
  57. package/dist/vue-components.es7.js +1 -1
  58. package/dist/vue-components.es70.js +5 -3
  59. package/dist/vue-components.es71.js +18 -31
  60. package/dist/vue-components.es72.js +9 -2
  61. package/dist/vue-components.es73.js +31 -2
  62. package/dist/vue-components.es74.js +48 -15
  63. package/dist/vue-components.es75.js +26 -70
  64. package/dist/vue-components.es76.js +100 -22
  65. package/dist/vue-components.es77.js +82 -5
  66. package/dist/vue-components.es78.js +21 -21
  67. package/dist/vue-components.es79.js +12 -30
  68. package/dist/vue-components.es80.js +112 -21
  69. package/dist/vue-components.es81.js +3 -12
  70. package/dist/vue-components.es82.js +32 -5
  71. package/dist/vue-components.es83.js +2 -19
  72. package/dist/vue-components.es84.js +2 -9
  73. package/dist/vue-components.es85.js +16 -31
  74. package/dist/vue-components.es86.js +13 -46
  75. package/dist/vue-components.es87.js +70 -26
  76. package/dist/vue-components.es88.js +8 -15
  77. package/dist/vue-components.es89.js +2 -16
  78. package/dist/vue-components.es90.js +14 -7
  79. package/dist/vue-components.es92.js +1 -1
  80. package/dist/vue-components.es94.js +1 -1
  81. package/dist/vue-components.es96.js +3 -3
  82. package/dist/vue-components.es97.js +1 -1
  83. package/package.json +4 -4
  84. package/src/components/OmegaForm/OmegaFormStuff.ts +6 -6
  85. package/dist/vue-components.es53.js +0 -66
  86. package/dist/vue-components.es56.js +0 -113
  87. package/dist/vue-components.es58.js +0 -9
@@ -1,563 +1,66 @@
1
- import { union as ie } from "./vue-components.es36.js";
2
- import { equals as oe, symbol as ce } from "./vue-components.es64.js";
3
- import { formatJson as Y } from "./vue-components.es38.js";
4
- import { dual as u, identity as j, constVoid as ue } from "./vue-components.es39.js";
5
- import { symbol as ae, combine as le, string as he, random as fe } from "./vue-components.es67.js";
6
- import { some as w, none as L } from "./vue-components.es24.js";
7
- import { pipeArguments as de } from "./vue-components.es41.js";
8
- import { hasProperty as pe } from "./vue-components.es42.js";
9
- import { currentFiberTypeId as I } from "./vue-components.es66.js";
10
- import { CurrentLogLevel as me, MinimumLogLevel as ge, CurrentStackFrame as Se } from "./vue-components.es68.js";
11
- import { isFailure as T, succeed as _e, fail as ye } from "./vue-components.es43.js";
12
- import { Scheduler as C, MixedScheduler as N, MaxOpsBeforeYield as be } from "./vue-components.es49.js";
13
- import { add as ke, getReferenceUnsafe as ve, make as Ee, empty as F } from "./vue-components.es69.js";
14
- import { ParentSpanKey as Fe, TracerKey as xe } from "./vue-components.es70.js";
15
- import { internalCall as g } from "./vue-components.es71.js";
16
- import { withFiber as Ie, makePrimitive as h, exitSucceed as S, exitFail as D, NoSuchElementError as Ce, args as c, contA as d, makePrimitiveProto as O, exitDie as k, evaluate as a, Yield as f, ExitTypeId as B, isFailReason as $e, exitFailCause as K, contE as x, contAll as v, CauseImpl as V, causeAnnotate as U, StackTraceKey as q, isInterruptReason as z, InterruptorStackTrace as we, ReasonBase as Le, constEmptyAnnotations as Te } from "./vue-components.es52.js";
17
- import { FiberRuntimeMetricsKey as Oe } from "./vue-components.es72.js";
18
- import { version as Pe } from "./vue-components.es73.js";
19
- class Ae extends Le {
20
- fiberId;
21
- constructor(t, r = Te) {
22
- super("Interrupt", r, "Interrupted"), this.fiberId = t;
23
- }
1
+ import { symbol as r, equals as c } from "./vue-components.es76.js";
2
+ import { format as m } from "./vue-components.es60.js";
3
+ import { symbol as n, hash as o, combine as u } from "./vue-components.es77.js";
4
+ import { toJson as l } from "./vue-components.es86.js";
5
+ import { hasProperty as p } from "./vue-components.es38.js";
6
+ import { YieldableProto as _, PipeInspectableProto as f, exitFail as g, NoSuchElementError as b, exitSucceed as O } from "./vue-components.es36.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
+ },
24
22
  toString() {
25
- return `Interrupt(${this.fiberId})`;
26
- }
23
+ return `some(${m(this.value)})`;
24
+ },
27
25
  toJSON() {
28
26
  return {
29
- _tag: "Interrupt",
30
- fiberId: this.fiberId
27
+ _id: "Option",
28
+ _tag: this._tag,
29
+ value: l(this.value)
31
30
  };
32
- }
33
- [ce](t) {
34
- return z(t) && this.fiberId === t.fiberId && this.annotations === t.annotations;
35
- }
36
- [ae]() {
37
- return le(he(`${this._tag}:${this.fiberId}`))(fe(this.annotations));
38
- }
39
- }
40
- const je = (e) => new V([new Ae(e)]), P = (e) => {
41
- for (let t = 0; t < e.reasons.length; t++) {
42
- const r = e.reasons[t];
43
- if (r._tag === "Fail")
44
- return _e(r.error);
45
- }
46
- return ye(e);
47
- }, Ue = (e) => e.reasons.some(z), Me = /* @__PURE__ */ u(2, (e, t) => {
48
- if (e.reasons.length === 0)
49
- return t;
50
- if (t.reasons.length === 0)
51
- return e;
52
- const r = new V(ie(e.reasons, t.reasons));
53
- return oe(e, r) ? e : r;
54
- }), Re = (e) => {
55
- const t = {
56
- Fail: [],
57
- Die: [],
58
- Interrupt: []
59
- };
60
- for (let r = 0; r < e.reasons.length; r++)
61
- t[e.reasons[r]._tag].push(e.reasons[r]);
62
- return t;
63
- }, G = (e) => {
64
- const t = Re(e);
65
- return t.Fail.length > 0 ? t.Fail[0].error : t.Die.length > 0 ? t.Die[0].defect : t.Interrupt.length > 0 ? new globalThis.Error("All fibers interrupted without error") : new globalThis.Error("Empty cause");
66
- }, We = (e) => {
67
- const t = [], r = [];
68
- if (e.reasons.length === 0) return t;
69
- const n = Error.stackTraceLimit;
70
- Error.stackTraceLimit = 1;
71
- for (const s of e.reasons) {
72
- if (s._tag === "Interrupt") {
73
- r.push(s);
74
- continue;
75
- }
76
- t.push($(s._tag === "Die" ? s.defect : s.error, s.annotations));
77
- }
78
- if (t.length === 0) {
79
- const s = new Error("The fiber was interrupted by:");
80
- s.name = "InterruptCause", s.stack = Be(s, r);
81
- const i = new globalThis.Error("All fibers interrupted without error", {
82
- cause: s
83
- });
84
- i.name = "InterruptError", i.stack = `${i.name}: ${i.message}`, t.push($(i, r[0].annotations));
85
- }
86
- return Error.stackTraceLimit = n, t;
87
- }, $ = (e, t) => {
88
- const r = typeof e;
89
- let n;
90
- if (e && r === "object") {
91
- if (n = new globalThis.Error(Ye(e), {
92
- cause: e.cause ? $(e.cause) : void 0
93
- }), typeof e.name == "string" && (n.name = e.name), typeof e.stack == "string")
94
- n.stack = De(e.stack, n, t);
95
- else {
96
- const s = `${n.name}: ${n.message}`;
97
- n.stack = t ? J(s, t) : s;
98
- }
99
- for (const s of Object.keys(e))
100
- s in n || (n[s] = e[s]);
101
- } else
102
- n = new globalThis.Error(e ? r === "string" ? e : Y(e) : `Unknown error: ${e}`);
103
- return n;
104
- }, Ye = (e) => {
105
- if (typeof e.message == "string")
106
- return e.message;
107
- if (typeof e.toString == "function" && e.toString !== Object.prototype.toString && e.toString !== Array.prototype.toString)
108
- try {
109
- return e.toString();
110
- } catch {
111
- }
112
- return Y(e);
113
- }, Ne = /\((.*)\)/g, De = (e, t, r) => {
114
- const n = `${t.name}: ${t.message}`, s = (e.startsWith(n) ? e.slice(n.length) : e).split(`
115
- `), i = [n];
116
- for (let o = 1; o < s.length && !/(?:Generator\.next|~effect\/Effect)/.test(s[o]); o++)
117
- i.push(s[o]);
118
- return r ? J(i.join(`
119
- `), r) : i.join(`
120
- `);
121
- }, J = (e, t) => {
122
- const r = t?.get(q.key);
123
- return r && (e = `${e}
124
- ${H(r)}`), e;
125
- }, Be = (e, t) => {
126
- const r = [`${e.name}: ${e.message}`];
127
- for (const n of t) {
128
- const s = n.fiberId !== void 0 ? `#${n.fiberId}` : "unknown", i = n.annotations.get(we.key);
129
- r.push(` at fiber (${s})`), i && r.push(H(i));
130
- }
131
- return r.join(`
132
- `);
133
- }, H = (e) => {
134
- const t = [];
135
- let r = e, n = 0;
136
- for (; r && n < 10; ) {
137
- const s = r.stack();
138
- if (s) {
139
- const i = s.matchAll(Ne);
140
- let o = !1;
141
- for (const [, b] of i)
142
- o = !0, t.push(` at ${r.name} (${b})`);
143
- o || t.push(` at ${r.name} (${s.replace(/^at /, "")})`);
144
- } else
145
- t.push(` at ${r.name}`);
146
- r = r.parent, n++;
147
- }
148
- return t.join(`
149
- `);
150
- }, Ut = (e) => We(e).map((t) => t.cause ? `${t.stack} {
151
- ${Q(t.cause, " ")}
152
- }` : t.stack).join(`
153
- `), Q = (e, t) => {
154
- const r = e.stack.split(`
155
- `);
156
- let n = `${t}[cause]: ${r[0]}`;
157
- for (let s = 1, i = r.length; s < i; s++)
158
- n += `
159
- ${t}${r[s]}`;
160
- return e.cause && (n += ` {
161
- ${Q(e.cause, `${t} `)}
162
- ${t}}`), n;
163
- }, M = `~effect/Fiber/${Pe}`, Ke = {
164
- _A: j,
165
- _E: j
166
- }, Ve = {
167
- id: 0
168
- };
169
- class qe {
170
- constructor(t, r = !0) {
171
- this[M] = Ke, this.setServices(t), this.id = ++Ve.id, this.currentOpCount = 0, this.currentLoopCount = 0, this.interruptible = r, this._stack = [], this._observers = [], this._exit = void 0, this._children = void 0, this._interruptedCause = void 0, this._yielded = void 0;
172
- }
173
- [M];
174
- id;
175
- interruptible;
176
- currentOpCount;
177
- currentLoopCount;
178
- _stack;
179
- _observers;
180
- _exit;
181
- _currentExit;
182
- _children;
183
- _interruptedCause;
184
- _yielded;
185
- // set in setServices
186
- services;
187
- currentScheduler;
188
- currentTracerContext;
189
- currentSpan;
190
- currentLogLevel;
191
- minimumLogLevel;
192
- currentStackFrame;
193
- runtimeMetrics;
194
- maxOpsBeforeYield;
195
- getRef(t) {
196
- return ve(this.services, t);
197
- }
198
- addObserver(t) {
199
- return this._exit ? (t(this._exit), ue) : (this._observers.push(t), () => {
200
- const r = this._observers.indexOf(t);
201
- r >= 0 && this._observers.splice(r, 1);
202
- });
203
- }
204
- interruptUnsafe(t, r) {
205
- if (this._exit)
206
- return;
207
- let n = je(t);
208
- this.currentStackFrame && (n = U(n, Ee(q, this.currentStackFrame))), r && (n = U(n, r)), this._interruptedCause = this._interruptedCause ? Me(this._interruptedCause, n) : n, this.interruptible && this.evaluate(m(this._interruptedCause));
209
- }
210
- pollUnsafe() {
211
- return this._exit;
212
- }
213
- evaluate(t) {
214
- if (this.runtimeMetrics?.recordFiberStart(this.services), this._exit)
215
- return;
216
- if (this._yielded !== void 0) {
217
- const n = this._yielded;
218
- this._yielded = void 0, n();
219
- }
220
- const r = this.runLoop(t);
221
- if (r !== f) {
222
- this._exit = r, this.runtimeMetrics?.recordFiberEnd(this.services, this._exit);
223
- for (let n = 0; n < this._observers.length; n++)
224
- this._observers[n](r);
225
- this._observers.length = 0;
226
- }
227
- }
228
- runLoop(t) {
229
- const r = globalThis[I];
230
- globalThis[I] = this;
231
- let n = !1, s = t;
232
- this.currentOpCount = 0;
233
- const i = ++this.currentLoopCount;
234
- try {
235
- for (; ; ) {
236
- if (this.currentOpCount++, !n && this.currentScheduler.shouldYield(this)) {
237
- n = !0;
238
- const o = s;
239
- s = y(Ge, () => o);
240
- }
241
- if (s = this.currentTracerContext ? this.currentTracerContext(s, this) : s[a](this), i !== this.currentLoopCount)
242
- return f;
243
- if (s === f) {
244
- const o = this._yielded;
245
- return B in o ? (this._yielded = void 0, o) : f;
246
- }
247
- }
248
- } catch (o) {
249
- return pe(s, a) ? this.runLoop(k(o)) : k(`Fiber.runLoop: Not a valid effect: ${String(s)}`);
250
- } finally {
251
- globalThis[I] = r;
252
- }
253
- }
254
- getCont(t) {
255
- for (; ; ) {
256
- const r = this._stack.pop();
257
- if (!r) return;
258
- const n = r[v] && r[v](this);
259
- if (n)
260
- return n[t] = n, n;
261
- if (r[t]) return r;
262
- }
263
- }
264
- yieldWith(t) {
265
- return this._yielded = t, f;
266
- }
267
- children() {
268
- return this._children ??= /* @__PURE__ */ new Set();
269
- }
270
- pipe() {
271
- return de(this, arguments);
272
- }
273
- setServices(t) {
274
- this.services = t, this.currentScheduler = this.getRef(C), this.currentSpan = t.mapUnsafe.get(Fe), this.currentLogLevel = this.getRef(me), this.minimumLogLevel = this.getRef(ge), this.currentStackFrame = t.mapUnsafe.get(Se.key), this.maxOpsBeforeYield = this.getRef(be), this.runtimeMetrics = t.mapUnsafe.get(Oe);
275
- const r = t.mapUnsafe.get(xe);
276
- this.currentTracerContext = r ? r.context : void 0;
277
- }
278
- get currentSpanLocal() {
279
- return this.currentSpan?._tag === "Span" ? this.currentSpan : void 0;
280
- }
281
- }
282
- const l = S, m = K, X = D, R = /* @__PURE__ */ h({
283
- op: "Sync",
284
- [a](e) {
285
- const t = this[c](), r = e.getCont(d);
286
- return r ? r[d](t, e) : e.yieldWith(S(t));
287
- }
288
- }), _ = /* @__PURE__ */ h({
289
- op: "Suspend",
290
- [a](e) {
291
- return this[c]();
292
- }
293
- }), ze = /* @__PURE__ */ h({
294
- op: "Yield",
295
- [a](e) {
296
- let t = !1;
297
- return e.currentScheduler.scheduleTask(() => {
298
- t || e.evaluate(te);
299
- }, this[c] ?? 0), e.yieldWith(() => {
300
- t = !0;
301
- });
302
- }
303
- }), Ge = /* @__PURE__ */ ze(0), Mt = (e) => l(w(e)), Rt = /* @__PURE__ */ l(/* @__PURE__ */ L()), Z = (e) => k(e), Je = (e) => _(() => X(g(e))), Wt = (e) => He(function(t, r) {
304
- g(() => e(r)).then((n) => t(l(n)), (n) => t(Z(n)));
305
- }, e.length !== 0), He = /* @__PURE__ */ h({
306
- op: "Async",
307
- single: !1,
308
- [a](e) {
309
- const t = g(() => this[c][0].bind(e.currentScheduler));
310
- let r = !1, n = !1;
311
- const s = this[c][1] ? new AbortController() : void 0, i = t((o) => {
312
- r || (r = !0, n ? e.evaluate(o) : n = o);
313
- }, s?.signal);
314
- return n !== !1 ? n : (n = !0, e._yielded = () => {
315
- r = !0;
316
- }, s === void 0 && i === void 0 ? f : (e._stack.push(Qe(() => (r = !0, s?.abort(), i ?? te))), f));
317
- }
318
- }), Qe = /* @__PURE__ */ h({
319
- op: "AsyncFinalizer",
320
- [v](e) {
321
- e.interruptible && (e.interruptible = !1, e._stack.push(dt));
322
31
  },
323
- [x](e, t) {
324
- return Ue(e) ? y(this[c](), () => m(e)) : m(e);
325
- }
326
- }), Yt = (e, ...t) => {
327
- const r = t.length === 0 ? function() {
328
- return _(() => E(e.apply(this, arguments)));
329
- } : function() {
330
- let n = _(() => E(e.apply(this, arguments)));
331
- for (let s = 0; s < t.length; s++)
332
- n = t[s](n, ...arguments);
333
- return n;
334
- };
335
- return ee(e.length, r);
336
- }, ee = (e, t) => Object.defineProperty(t, "length", {
337
- value: e,
338
- configurable: !0
339
- }), Nt = (e, ...t) => ee(e.length, t.length === 0 ? function() {
340
- return W(() => e.apply(this, arguments));
341
- } : function() {
342
- let r = W(() => e.apply(this, arguments));
343
- for (const n of t)
344
- r = n(r);
345
- return r;
346
- }), W = (e) => {
347
- try {
348
- const t = e();
349
- let r;
350
- for (; ; ) {
351
- const n = t.next(r);
352
- if (n.done)
353
- return l(n.value);
354
- const i = n.value.asEffect(), o = i;
355
- if (o && o._tag === "Success") {
356
- r = o.value;
357
- continue;
358
- } else {
359
- if (o && o._tag === "Failure")
360
- return i;
361
- {
362
- let b = !0;
363
- return _(() => b ? (b = !1, y(i, (se) => E(t, se))) : _(() => E(e())));
364
- }
365
- }
366
- }
367
- } catch (t) {
368
- return Z(t);
369
- }
370
- }, E = /* @__PURE__ */ h({
371
- op: "Iterator",
372
- single: !1,
373
- [d](e, t) {
374
- const r = this[c][0];
375
- for (; ; ) {
376
- const n = r.next(e);
377
- if (n.done) return l(n.value);
378
- const s = n.value.asEffect();
379
- if (p(s)) {
380
- if (s._tag === "Failure")
381
- return s;
382
- } else return t._stack.push(this), s;
383
- e = s.value;
384
- }
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);
385
40
  },
386
- [a](e) {
387
- return this[d](this[c][1], e);
388
- }
389
- }), y = /* @__PURE__ */ u(2, (e, t) => {
390
- const r = Object.create(Xe);
391
- return r[c] = e, r[d] = t.length !== 1 ? (n) => t(n) : t, r;
392
- }), Xe = /* @__PURE__ */ O({
393
- op: "OnSuccess",
394
- [a](e) {
395
- return e._stack.push(this), this[c];
396
- }
397
- }), p = (e) => B in e, Dt = /* @__PURE__ */ u(2, (e, t) => p(e) ? e._tag === "Success" ? t(e.value) : e : y(e, t)), Ze = /* @__PURE__ */ u(2, (e, t) => y(e, (r) => l(g(() => t(r))))), Bt = /* @__PURE__ */ u(2, (e, t) => p(e) ? tt(e, t) : Ze(e, t)), Kt = /* @__PURE__ */ u(2, (e, t) => p(e) ? rt(e, t) : ot(e, t)), Vt = /* @__PURE__ */ u(2, (e, t) => {
398
- if (p(e)) {
399
- if (e._tag === "Success") return e;
400
- const r = P(e.cause);
401
- return T(r) ? e : t(r.success);
402
- }
403
- return re(e, t);
404
- }), et = (e) => e._tag === "Success", te = /* @__PURE__ */ S(void 0), tt = /* @__PURE__ */ u(2, (e, t) => e._tag === "Success" ? S(t(e.value)) : e), rt = /* @__PURE__ */ u(2, (e, t) => {
405
- if (e._tag === "Success") return e;
406
- const r = P(e.cause);
407
- return T(r) ? e : D(t(r.success));
408
- }), qt = (e) => et(e) ? w(e.value) : L(), nt = /* @__PURE__ */ u(2, (e, t) => {
409
- const r = Object.create(st);
410
- return r[c] = e, r[x] = t.length !== 1 ? (n) => t(n) : t, r;
411
- }), st = /* @__PURE__ */ O({
412
- op: "OnFailure",
413
- [a](e) {
414
- return e._stack.push(this), this[c];
415
- }
416
- }), it = /* @__PURE__ */ u(3, (e, t, r) => nt(e, (n) => {
417
- const s = t(n);
418
- return T(s) ? m(s.failure) : g(() => r(s.success, n));
419
- })), re = /* @__PURE__ */ u(2, (e, t) => it(e, P, (r) => t(r))), ot = /* @__PURE__ */ u(2, (e, t) => re(e, (r) => Je(() => t(r)))), zt = (e) => lt(e, {
420
- onFailure: L,
421
- onSuccess: w
422
- }), ct = /* @__PURE__ */ u(2, (e, t) => {
423
- const r = Object.create(ut);
424
- return r[c] = e, r[d] = t.onSuccess.length !== 1 ? (n) => t.onSuccess(n) : t.onSuccess, r[x] = t.onFailure.length !== 1 ? (n) => t.onFailure(n) : t.onFailure, r;
425
- }), ut = /* @__PURE__ */ O({
426
- op: "OnSuccessAndFailure",
427
- [a](e) {
428
- return e._stack.push(this), this[c];
429
- }
430
- }), at = /* @__PURE__ */ u(2, (e, t) => ct(e, {
431
- onFailure: (r) => {
432
- const n = r.reasons.find($e);
433
- return n ? g(() => t.onFailure(n.error)) : m(r);
41
+ [n]() {
42
+ return h;
434
43
  },
435
- onSuccess: t.onSuccess
436
- })), lt = /* @__PURE__ */ u(2, (e, t) => at(e, {
437
- onFailure: (r) => R(() => t.onFailure(r)),
438
- onSuccess: (r) => R(() => t.onSuccess(r))
439
- })), Gt = (e) => p(e) ? S(e) : ht(e), ht = /* @__PURE__ */ h({
440
- op: "Exit",
441
- [a](e) {
442
- return e._stack.push(this), this[c];
44
+ toString() {
45
+ return "none()";
443
46
  },
444
- [d](e, t, r) {
445
- return l(r ?? S(e));
47
+ toJSON() {
48
+ return {
49
+ _id: "Option",
50
+ _tag: this._tag
51
+ };
446
52
  },
447
- [x](e, t, r) {
448
- return l(r ?? K(e));
53
+ asEffect() {
54
+ return g(new b());
449
55
  }
450
- }), ft = /* @__PURE__ */ h({
451
- op: "SetInterruptible",
452
- [v](e) {
453
- if (e.interruptible = this[c], e._interruptedCause && e.interruptible)
454
- return () => m(e._interruptedCause);
455
- }
456
- }), dt = /* @__PURE__ */ ft(!0), A = (e) => (t, r) => {
457
- const n = r?.scheduler || !e.mapUnsafe.has(C.key) && new N(), s = new qe(n ? ke(e, C, n) : e, r?.uninterruptible !== !0);
458
- if (s.evaluate(t), s._exit) return s;
459
- if (r?.signal)
460
- if (r.signal.aborted)
461
- s.interruptUnsafe();
462
- else {
463
- const i = () => s.interruptUnsafe();
464
- r.signal.addEventListener("abort", i, {
465
- once: !0
466
- }), s.addObserver(() => r.signal.removeEventListener("abort", i));
467
- }
468
- return s;
469
- }, Jt = /* @__PURE__ */ A(/* @__PURE__ */ F()), pt = (e) => {
470
- const t = A(e);
471
- return (r, n) => {
472
- const s = t(r, n);
473
- return new Promise((i) => {
474
- s.addObserver((o) => i(o));
475
- });
476
- };
477
- }, mt = (e) => {
478
- const t = pt(e);
479
- return (r, n) => t(r, n).then((s) => {
480
- if (s._tag === "Failure")
481
- throw G(s.cause);
482
- return s.value;
483
- });
484
- }, Ht = /* @__PURE__ */ mt(/* @__PURE__ */ F()), ne = (e) => {
485
- const t = A(e);
486
- return (r) => {
487
- if (p(r)) return r;
488
- const n = new N("sync"), s = t(r, {
489
- scheduler: n
490
- });
491
- return n.flush(), s._exit ?? k(s);
492
- };
493
- }, Qt = /* @__PURE__ */ ne(/* @__PURE__ */ F()), gt = (e) => {
494
- const t = ne(e);
495
- return (r) => {
496
- const n = t(r);
497
- if (n._tag === "Failure") throw G(n.cause);
498
- return n.value;
499
- };
500
- }, Xt = /* @__PURE__ */ gt(/* @__PURE__ */ F()), Zt = /* @__PURE__ */ Ie((e) => {
501
- const t = e.currentSpanLocal;
502
- return t ? l(t) : X(new Ce());
503
- }), St = typeof process == "object" && process !== null && typeof process.stdout == "object" && process.stdout !== null;
504
- St && process.stdout.isTTY;
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
+ };
505
60
  export {
506
- qe as FiberImpl,
507
- M as FiberTypeId,
508
- Ae as Interrupt,
509
- nt as catchCause,
510
- it as catchCauseFilter,
511
- Vt as catchEager,
512
- re as catch_,
513
- Me as causeCombine,
514
- je as causeInterrupt,
515
- Re as causePartition,
516
- Ut as causePretty,
517
- $ as causePrettyError,
518
- We as causePrettyErrors,
519
- G as causeSquash,
520
- Zt as currentSpan,
521
- Z as die,
522
- p as effectIsExit,
523
- Gt as exit,
524
- qt as exitGetSuccess,
525
- et as exitIsSuccess,
526
- tt as exitMap,
527
- rt as exitMapError,
528
- te as exitVoid,
529
- X as fail,
530
- m as failCause,
531
- Je as failSync,
532
- P as findError,
533
- y as flatMap,
534
- Dt as flatMapEager,
535
- Yt as fnUntraced,
536
- Nt as fnUntracedEager,
537
- Ue as hasInterrupts,
538
- Ze as map,
539
- Bt as mapEager,
540
- ot as mapError,
541
- Kt as mapErrorEager,
542
- lt as match,
543
- ct as matchCauseEffect,
544
- at as matchEffect,
545
- zt as option,
546
- Wt as promise,
547
- Jt as runFork,
548
- A as runForkWith,
549
- Ht as runPromise,
550
- pt as runPromiseExitWith,
551
- mt as runPromiseWith,
552
- Xt as runSync,
553
- Qt as runSyncExit,
554
- ne as runSyncExitWith,
555
- gt as runSyncWith,
556
- l as succeed,
557
- Rt as succeedNone,
558
- Mt as succeedSome,
559
- _ as suspend,
560
- R as sync,
561
- Ge as yieldNow,
562
- ze as yieldNowWith
61
+ v as isNone,
62
+ i as isOption,
63
+ P as isSome,
64
+ I as none,
65
+ $ as some
563
66
  };
@@ -1,43 +1,6 @@
1
- const o = (e, t) => {
2
- switch (t.length) {
3
- case 0:
4
- return e;
5
- case 1:
6
- return t[0](e);
7
- case 2:
8
- return t[1](t[0](e));
9
- case 3:
10
- return t[2](t[1](t[0](e)));
11
- case 4:
12
- return t[3](t[2](t[1](t[0](e))));
13
- case 5:
14
- return t[4](t[3](t[2](t[1](t[0](e)))));
15
- case 6:
16
- return t[5](t[4](t[3](t[2](t[1](t[0](e))))));
17
- case 7:
18
- return t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))));
19
- case 8:
20
- return t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e))))))));
21
- case 9:
22
- return t[8](t[7](t[6](t[5](t[4](t[3](t[2](t[1](t[0](e)))))))));
23
- default: {
24
- let n = e;
25
- for (let u = 0, c = t.length; u < c; u++)
26
- n = t[u](n);
27
- return n;
28
- }
29
- }
30
- }, p = {
31
- pipe() {
32
- return o(this, arguments);
33
- }
34
- }, i = /* @__PURE__ */ (function() {
35
- function e() {
36
- }
37
- return e.prototype = p, e;
38
- })();
1
+ import { causePretty as r, findError as o } from "./vue-components.es37.js";
2
+ const n = o, e = r;
39
3
  export {
40
- i as Class,
41
- p as Prototype,
42
- o as pipeArguments
4
+ n as findError,
5
+ e as pretty
43
6
  };
@@ -1,29 +1,6 @@
1
- import { dual as o } from "./vue-components.es39.js";
2
- function i(n) {
3
- return typeof n == "string";
4
- }
5
- function f(n) {
6
- return typeof n == "number";
7
- }
8
- function c(n) {
9
- return typeof n == "boolean";
10
- }
11
- function r(n) {
12
- return typeof n == "function";
13
- }
14
- function s(n) {
15
- return !0;
16
- }
17
- function e(n) {
18
- return typeof n == "object" && n !== null || r(n);
19
- }
20
- const y = /* @__PURE__ */ o(2, (n, t) => e(n) && t in n);
1
+ import { exitGetSuccess as s, exitIsSuccess as c } from "./vue-components.es37.js";
2
+ const t = c, o = s;
21
3
  export {
22
- y as hasProperty,
23
- c as isBoolean,
24
- r as isFunction,
25
- f as isNumber,
26
- e as isObjectKeyword,
27
- i as isString,
28
- s as isUnknown
4
+ o as getSuccess,
5
+ t as isSuccess
29
6
  };