@effect-app/vue-components 4.0.0-beta.2 → 4.0.0-beta.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.
Files changed (73) hide show
  1. package/dist/vue-components.es16.js +10 -10
  2. package/dist/vue-components.es17.js +9 -9
  3. package/dist/vue-components.es19.js +1 -1
  4. package/dist/vue-components.es20.js +1 -1
  5. package/dist/vue-components.es21.js +2 -2
  6. package/dist/vue-components.es22.js +2 -2
  7. package/dist/vue-components.es23.js +1 -1
  8. package/dist/vue-components.es25.js +1 -1
  9. package/dist/vue-components.es26.js +2 -2
  10. package/dist/vue-components.es27.js +2 -2
  11. package/dist/vue-components.es28.js +1 -1
  12. package/dist/vue-components.es29.js +1 -1
  13. package/dist/vue-components.es36.js +37 -317
  14. package/dist/vue-components.es37.js +4 -561
  15. package/dist/vue-components.es38.js +77 -21
  16. package/dist/vue-components.es39.js +1 -1
  17. package/dist/vue-components.es40.js +551 -54
  18. package/dist/vue-components.es41.js +41 -4
  19. package/dist/vue-components.es42.js +27 -4
  20. package/dist/vue-components.es43.js +5 -24
  21. package/dist/vue-components.es44.js +36 -71
  22. package/dist/vue-components.es45.js +304 -30
  23. package/dist/vue-components.es46.js +25 -308
  24. package/dist/vue-components.es47.js +4 -99
  25. package/dist/vue-components.es48.js +22 -29
  26. package/dist/vue-components.es49.js +75 -2
  27. package/dist/vue-components.es50.js +99 -2
  28. package/dist/vue-components.es51.js +2 -2
  29. package/dist/vue-components.es52.js +317 -110
  30. package/dist/vue-components.es53.js +66 -0
  31. package/dist/vue-components.es54.js +2 -7
  32. package/dist/vue-components.es55.js +2 -32
  33. package/dist/vue-components.es56.js +113 -0
  34. package/dist/vue-components.es58.js +9 -0
  35. package/dist/vue-components.es59.js +30 -36
  36. package/dist/vue-components.es61.js +191 -40
  37. package/dist/vue-components.es63.js +1 -1
  38. package/dist/vue-components.es64.js +100 -22
  39. package/dist/vue-components.es65.js +82 -5
  40. package/dist/vue-components.es66.js +15 -21
  41. package/dist/vue-components.es67.js +31 -29
  42. package/dist/vue-components.es68.js +2 -22
  43. package/dist/vue-components.es69.js +21 -12
  44. package/dist/vue-components.es7.js +1 -1
  45. package/dist/vue-components.es70.js +12 -5
  46. package/dist/vue-components.es71.js +113 -19
  47. package/dist/vue-components.es72.js +3 -9
  48. package/dist/vue-components.es73.js +2 -31
  49. package/dist/vue-components.es74.js +2 -48
  50. package/dist/vue-components.es75.js +15 -26
  51. package/dist/vue-components.es76.js +70 -101
  52. package/dist/vue-components.es77.js +22 -81
  53. package/dist/vue-components.es78.js +5 -21
  54. package/dist/vue-components.es79.js +21 -12
  55. package/dist/vue-components.es80.js +29 -112
  56. package/dist/vue-components.es81.js +22 -3
  57. package/dist/vue-components.es82.js +12 -32
  58. package/dist/vue-components.es83.js +5 -2
  59. package/dist/vue-components.es84.js +19 -2
  60. package/dist/vue-components.es85.js +9 -16
  61. package/dist/vue-components.es86.js +31 -15
  62. package/dist/vue-components.es87.js +47 -69
  63. package/dist/vue-components.es88.js +26 -8
  64. package/dist/vue-components.es89.js +16 -2
  65. package/dist/vue-components.es90.js +7 -14
  66. package/dist/vue-components.es92.js +1 -1
  67. package/dist/vue-components.es94.js +1 -1
  68. package/dist/vue-components.es96.js +3 -3
  69. package/dist/vue-components.es97.js +1 -1
  70. package/package.json +3 -3
  71. package/dist/vue-components.es57.js +0 -194
  72. package/dist/vue-components.es60.js +0 -85
  73. package/dist/vue-components.es62.js +0 -7
@@ -1,66 +1,563 @@
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
- },
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.es65.js";
6
+ import { some as w, none as L } from "./vue-components.es23.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.es69.js";
10
+ import { CurrentLogLevel as me, MinimumLogLevel as ge, CurrentStackFrame as Se } from "./vue-components.es70.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.es71.js";
14
+ import { ParentSpanKey as Fe, TracerKey as xe } from "./vue-components.es72.js";
15
+ import { internalCall as g } from "./vue-components.es67.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.es73.js";
18
+ import { version as Pe } from "./vue-components.es74.js";
19
+ class Ae extends Le {
20
+ fiberId;
21
+ constructor(t, r = Te) {
22
+ super("Interrupt", r, "Interrupted"), this.fiberId = t;
23
+ }
22
24
  toString() {
23
- return `some(${m(this.value)})`;
24
- },
25
+ return `Interrupt(${this.fiberId})`;
26
+ }
25
27
  toJSON() {
26
28
  return {
27
- _id: "Option",
28
- _tag: this._tag,
29
- value: l(this.value)
29
+ _tag: "Interrupt",
30
+ fiberId: this.fiberId
30
31
  };
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));
31
322
  },
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);
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
+ }
40
385
  },
41
- [n]() {
42
- return h;
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);
43
434
  },
44
- toString() {
45
- return "none()";
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];
46
443
  },
47
- toJSON() {
48
- return {
49
- _id: "Option",
50
- _tag: this._tag
51
- };
444
+ [d](e, t, r) {
445
+ return l(r ?? S(e));
52
446
  },
53
- asEffect() {
54
- return g(new b());
447
+ [x](e, t, r) {
448
+ return l(r ?? K(e));
55
449
  }
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
- };
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;
60
505
  export {
61
- v as isNone,
62
- i as isOption,
63
- P as isSome,
64
- I as none,
65
- $ as some
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
66
563
  };
@@ -1,6 +1,43 @@
1
- import { causePretty as r, findError as o } from "./vue-components.es37.js";
2
- const n = o, e = r;
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
+ })();
3
39
  export {
4
- n as findError,
5
- e as pretty
40
+ i as Class,
41
+ p as Prototype,
42
+ o as pipeArguments
6
43
  };
@@ -1,6 +1,29 @@
1
- import { exitGetSuccess as s, exitIsSuccess as c } from "./vue-components.es37.js";
2
- const t = c, o = s;
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);
3
21
  export {
4
- o as getSuccess,
5
- t as isSuccess
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
6
29
  };