eutaxy 0.0.0-stage → 0.5.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 (43) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +16 -2
  3. package/dist/aws.d.mts +15464 -0
  4. package/dist/aws.d.mts.map +1 -0
  5. package/dist/aws.mjs +24057 -0
  6. package/dist/aws.mjs.map +1 -0
  7. package/dist/bin.d.mts +1 -0
  8. package/dist/bin.mjs +17 -0
  9. package/dist/bin.mjs.map +1 -0
  10. package/dist/checksum-DhS6ofSm.mjs +6049 -0
  11. package/dist/checksum-DhS6ofSm.mjs.map +1 -0
  12. package/dist/cli-NqY61bpo.mjs +2 -0
  13. package/dist/cli.d.mts +8 -0
  14. package/dist/cli.d.mts.map +1 -0
  15. package/dist/cli.mjs +2 -0
  16. package/dist/cloudflare.d.mts +272 -0
  17. package/dist/cloudflare.d.mts.map +1 -0
  18. package/dist/cloudflare.mjs +1815 -0
  19. package/dist/cloudflare.mjs.map +1 -0
  20. package/dist/es5-DtZuPEgt.mjs +1721 -0
  21. package/dist/es5-DtZuPEgt.mjs.map +1 -0
  22. package/dist/event-streams-BANyO9xt.mjs +801 -0
  23. package/dist/event-streams-BANyO9xt.mjs.map +1 -0
  24. package/dist/explore-BHYvAZKN.d.mts +84 -0
  25. package/dist/explore-BHYvAZKN.d.mts.map +1 -0
  26. package/dist/index.d.mts +252 -0
  27. package/dist/index.d.mts.map +1 -0
  28. package/dist/index.mjs +261 -0
  29. package/dist/index.mjs.map +1 -0
  30. package/dist/platform-eVgCMbX0.d.mts +385 -0
  31. package/dist/platform-eVgCMbX0.d.mts.map +1 -0
  32. package/dist/rolldown-runtime-C1I3wEg2.mjs +43 -0
  33. package/dist/src-BD3jkjgG.mjs +477 -0
  34. package/dist/src-BD3jkjgG.mjs.map +1 -0
  35. package/dist/src-C19_yfMM.mjs +2237 -0
  36. package/dist/src-C19_yfMM.mjs.map +1 -0
  37. package/dist/src-CgfGiH25.mjs +1546 -0
  38. package/dist/src-CgfGiH25.mjs.map +1 -0
  39. package/dist/src-s6uYyC0B.mjs +89 -0
  40. package/dist/src-s6uYyC0B.mjs.map +1 -0
  41. package/dist/verdict-evEM5Gxx.mjs +12 -0
  42. package/dist/verdict-evEM5Gxx.mjs.map +1 -0
  43. package/package.json +76 -3
@@ -0,0 +1,385 @@
1
+ /**
2
+ * Canonical JSON: the one serialisation of a value, so that equal data always
3
+ * produces equal bytes. Object keys are sorted; numbers must be finite; there
4
+ * is no whitespace. Anything that is not plain JSON data is rejected.
5
+ */
6
+ type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
7
+ readonly [key: string]: JsonValue;
8
+ };
9
+ /** `snapshot` records platform state (e.g. D1 tables) captured at the end of a run; it is not an effect point. */
10
+ type EffectKind = "call" | "result" | "fault" | "snapshot";
11
+ interface EffectRecord {
12
+ /** Position in the log, dense from 0. */
13
+ readonly seq: number;
14
+ readonly kind: EffectKind;
15
+ /** The invocation (request, message, alarm) this effect belongs to. */
16
+ readonly invocation: string;
17
+ /** The binding or global the effect went through, e.g. "D1:DB". */
18
+ readonly target: string;
19
+ /** The operation, e.g. "run", "batch", "send". */
20
+ readonly op: string;
21
+ /** Operation-specific data: arguments, results, or the injected fault. */
22
+ readonly payload: JsonValue;
23
+ }
24
+ interface EffectLog {
25
+ readonly entries: readonly EffectRecord[];
26
+ }
27
+ /**
28
+ * `cut_off` is a crash that happens after a response or acknowledgement was
29
+ * already sent, so only background work (ctx.waitUntil) is lost; platforms
30
+ * offer it at the point where that work would start.
31
+ */
32
+ type FaultKind = "crash_before" | "crash_after" | "ambiguous" | "error" | "cut_off";
33
+ interface FaultDecision {
34
+ /** The invocation the effect belongs to, e.g. "msg-1#2". */
35
+ readonly invocation: string;
36
+ /** Position of the effect within that invocation, from 0. Stable when other invocations are removed. */
37
+ readonly ordinal: number;
38
+ readonly fault: FaultKind;
39
+ /** What the effect was, for people reading the schedule. */
40
+ readonly target: string;
41
+ readonly op: string;
42
+ }
43
+ interface Schedule {
44
+ /** The per-run seed the decisions were drawn from. */
45
+ readonly seed: number;
46
+ readonly faults: readonly FaultDecision[];
47
+ /**
48
+ * The turn picked at each scheduling decision with more than one option,
49
+ * in order, as an index into the options (parked invocations by start
50
+ * order, then starting the next event). Absent: turns follow the seed.
51
+ * Exhaustive exploration records them, since it picks rather than draws.
52
+ */
53
+ readonly turns?: readonly number[];
54
+ }
55
+ /** Picks effect records by target, op, kind and payload fields. */
56
+ interface EffectSelector {
57
+ readonly target: string;
58
+ readonly op?: string;
59
+ readonly kind?: EffectKind;
60
+ /** Dot paths into the payload that must equal the given values. */
61
+ readonly where?: {
62
+ readonly [path: string]: JsonValue;
63
+ };
64
+ /** Dot paths into the payload whose numeric value must be at least the given bound. */
65
+ readonly atLeast?: {
66
+ readonly [path: string]: number;
67
+ };
68
+ }
69
+ /** No two selected effects share the same key. Catches duplicate writes. */
70
+ interface AtMostOncePerKey {
71
+ readonly kind: "atMostOncePerKey";
72
+ readonly name: string;
73
+ readonly effect: EffectSelector;
74
+ /** Dot path into the payload that identifies the key. */
75
+ readonly key: string;
76
+ }
77
+ /** Every expected key appears in at least one selected effect. Catches lost work. */
78
+ interface AtLeastOnce {
79
+ readonly kind: "atLeastOnce";
80
+ readonly name: string;
81
+ readonly effect: EffectSelector;
82
+ readonly key: string;
83
+ readonly expected: readonly JsonValue[];
84
+ /** Set when `expected` was derived from the drive's message bodies, so it can be re-derived when messages are removed. */
85
+ readonly perMessage?: {
86
+ readonly bodyKey: string;
87
+ };
88
+ }
89
+ /** A condition on one column of a row. */
90
+ type RowCondition = {
91
+ readonly column: string;
92
+ readonly op: "eq" | "neq";
93
+ readonly value: JsonValue;
94
+ } | {
95
+ readonly column: string;
96
+ readonly op: "gt" | "gte" | "lt" | "lte";
97
+ readonly value: number;
98
+ } | {
99
+ readonly column: string;
100
+ readonly op: "in";
101
+ readonly value: readonly JsonValue[];
102
+ } | {
103
+ readonly column: string;
104
+ readonly op: "notNull";
105
+ };
106
+ /** Rows of a table in the last snapshot of a target, optionally filtered. */
107
+ interface StateQuery {
108
+ /** The snapshot target, e.g. "D1:DB". */
109
+ readonly target: string;
110
+ readonly table: string;
111
+ readonly where?: readonly RowCondition[];
112
+ }
113
+ /** Every row the query returns satisfies all of `holds`. */
114
+ interface EveryRow {
115
+ readonly kind: "everyRow";
116
+ readonly name: string;
117
+ readonly query: StateQuery;
118
+ readonly holds: readonly RowCondition[];
119
+ }
120
+ /**
121
+ * For every selected effect, a row exists whose `column` equals the effect's
122
+ * key. Ties what the shell did to what the state says, e.g. "every acked
123
+ * message has its payment row".
124
+ */
125
+ interface Implies {
126
+ readonly kind: "implies";
127
+ readonly name: string;
128
+ readonly when: EffectSelector;
129
+ /** Dot path into the effect payload that yields the key. */
130
+ readonly key: string;
131
+ readonly state: StateQuery;
132
+ readonly column: string;
133
+ }
134
+ /**
135
+ * No two rows the query returns share the value at `path`, a dot path into
136
+ * the row (a column name for flat rows). Rows where it is absent or null are
137
+ * skipped. Catches a resource handed out twice, e.g. "no project holds two
138
+ * slots".
139
+ */
140
+ interface Unique {
141
+ readonly kind: "unique";
142
+ readonly name: string;
143
+ readonly query: StateQuery;
144
+ readonly path: string;
145
+ }
146
+ /**
147
+ * The shell follows the core. Calls to a pure core function are recorded as
148
+ * decisions (`Core:<function>` results, payload `{ args, result }`). Every
149
+ * selected effect must come after a decision of `decision` in its own
150
+ * invocation; the latest such decision is the one it carries out. With
151
+ * `follows`, the effect's payload agrees with that decision at each pair of
152
+ * paths. With `state`, the decision rests on the last `read` its invocation
153
+ * made before it (none is a violation), and no other invocation's `write`
154
+ * (to the same `key`, when given) commits between that read and the effect:
155
+ * otherwise the effect carried out a decision made on a stale read.
156
+ */
157
+ interface Refines {
158
+ readonly kind: "refines";
159
+ readonly name: string;
160
+ /** The core function, as recorded. */
161
+ readonly decision: string;
162
+ readonly effect: EffectSelector;
163
+ readonly follows?: readonly {
164
+ readonly effect: string;
165
+ readonly decision: string;
166
+ }[];
167
+ readonly state?: {
168
+ readonly read: EffectSelector;
169
+ readonly write: EffectSelector;
170
+ /** Dot path into the read's and the writes' payloads naming the state they touch. */
171
+ readonly key?: string;
172
+ };
173
+ }
174
+ type Invariant = AtMostOncePerKey | AtLeastOnce | EveryRow | Implies | Unique | Refines;
175
+ interface Violation {
176
+ readonly invariant: string;
177
+ readonly message: string;
178
+ /** The keys involved, in canonical JSON, so two violations can be compared across runs. */
179
+ readonly keys: readonly string[];
180
+ /** Sequence numbers of the effects that witness the violation. */
181
+ readonly evidence: readonly number[];
182
+ }
183
+ declare function checkInvariant(log: EffectLog, inv: Invariant): Violation | null;
184
+ declare function checkInvariants(log: EffectLog, invariants: readonly Invariant[]): readonly Violation[];
185
+ /** Opaque, JSON-shaped data owned by a platform package. `kind` names its shape. */
186
+ interface PlatformData {
187
+ readonly kind: string;
188
+ readonly [key: string]: JsonValue;
189
+ }
190
+ /** Where the Worker under test lives, relative to the scenario file. */
191
+ interface WorkerRef {
192
+ readonly entry: string;
193
+ readonly config: string;
194
+ }
195
+ /** A scripted reply from an external: the first matching entry answers a request. */
196
+ interface ScriptedResponse {
197
+ /** HTTP method to match; any when absent. */
198
+ readonly method?: string;
199
+ /** URL path to match exactly, or a prefix when it ends with "*"; any when absent. */
200
+ readonly path?: string;
201
+ readonly status: number;
202
+ readonly headers?: {
203
+ readonly [name: string]: string;
204
+ };
205
+ /** JSON body (sent as application/json) or a string body. */
206
+ readonly body?: JsonValue;
207
+ }
208
+ /**
209
+ * An external service the Worker talks to, what it promises, and how it
210
+ * answers. Requests never reach the network: they are answered from
211
+ * `responses`, and an undeclared host makes the run UNSUPPORTED.
212
+ */
213
+ interface ExternalDecl {
214
+ readonly name: string;
215
+ /** Host to match exactly, or a suffix pattern such as "*.example.com". */
216
+ readonly host: string;
217
+ readonly guarantees: {
218
+ /**
219
+ * Header whose value makes repeated requests idempotent: a request
220
+ * repeating an earlier one's key gets the earlier response and is
221
+ * recorded as not effective.
222
+ */
223
+ readonly dedupeBy?: string;
224
+ };
225
+ /** Omitted: every request gets 200 with an empty body. Present but unmatched: the run is UNSUPPORTED. */
226
+ readonly responses?: readonly ScriptedResponse[];
227
+ }
228
+ /** Exploration bounds. Every verdict reports the bounds actually reached. */
229
+ interface Bounds {
230
+ readonly maxFaultsPerRun: number;
231
+ readonly maxRedeliveries: number;
232
+ readonly maxConcurrentInvocations: number;
233
+ readonly budgetMs: number;
234
+ }
235
+ interface ScenarioSpec {
236
+ readonly version: 1;
237
+ readonly name: string;
238
+ /** Which platform package built and runs this scenario, e.g. "cloudflare" or "aws". Absent means cloudflare. */
239
+ readonly platform?: string;
240
+ readonly worker: WorkerRef;
241
+ /** How the scenario drives the Worker (which events, with what payloads). */
242
+ readonly drive: PlatformData;
243
+ /** State to establish before each run, in order. */
244
+ readonly setup: readonly PlatformData[];
245
+ readonly externals: readonly ExternalDecl[];
246
+ readonly invariants: readonly Invariant[];
247
+ readonly bounds: Bounds;
248
+ /**
249
+ * Modules of pure core functions with Lemma specs, relative to the
250
+ * scenario. Calls to their annotated functions are recorded as decisions
251
+ * during exploration, and each property is checked on the inputs seen.
252
+ */
253
+ readonly specs?: readonly string[];
254
+ }
255
+ /** Every reason a spec is not usable; empty when it is. */
256
+ declare function validateScenario(spec: ScenarioSpec): readonly string[];
257
+ /** One deliverable event, e.g. one attempt to deliver one queue message. */
258
+ interface EventRef {
259
+ readonly id: string;
260
+ /** 1 for the first delivery, 2 for the first redelivery, and so on. */
261
+ readonly attempt: number;
262
+ readonly data: JsonValue;
263
+ /**
264
+ * Virtual time (ms since the epoch) before which the event is not
265
+ * delivered, e.g. a resend after the caller's retry delay. Absent: as soon
266
+ * as possible. The engine advances the virtual clock to it once nothing
267
+ * else can move.
268
+ */
269
+ readonly at?: number;
270
+ /**
271
+ * What produced the event when it is not the scenario's drive, e.g. a
272
+ * Durable Object alarm, so the platform knows how to deliver it.
273
+ */
274
+ readonly source?: string;
275
+ }
276
+ /** What a proxy tells the engine about an effect it is about to perform. */
277
+ interface EffectPoint {
278
+ readonly invocation: string;
279
+ readonly target: string;
280
+ readonly op: string;
281
+ readonly args: JsonValue;
282
+ /** Which faults make sense here; the engine only injects from this list. */
283
+ readonly allowed: readonly FaultKind[];
284
+ /**
285
+ * Performing this effect runs user code that may make effects of its own
286
+ * (a Durable Object call). Those are part of this effect's turn even when
287
+ * the runtime does not carry async context into that code.
288
+ */
289
+ readonly hostsEffects?: boolean;
290
+ }
291
+ interface EffectOptions {
292
+ /**
293
+ * Called when the effect is abandoned while its `perform` is still
294
+ * running, because its invocation crashed inside it or its I/O hung: the
295
+ * place to reset whatever the perform left busy (a Durable Object). For a
296
+ * crash inside, it is called synchronously where the crash happens, in the
297
+ * async context of the code the perform runs.
298
+ */
299
+ readonly onAbandon?: () => void;
300
+ /**
301
+ * Whether an effect the hosted code makes may wait for its turn now. False
302
+ * while the hosted code holds every other event out (a Durable Object
303
+ * inside blockConcurrencyWhile): nothing else could enter it then, and it
304
+ * could not notice its release, so the effect runs at once.
305
+ */
306
+ readonly mayPark?: () => boolean;
307
+ }
308
+ /** One invocation of the Worker, as the engine tracks it. */
309
+ interface Invocation {
310
+ readonly id: string;
311
+ /** Resolves when the invocation is crashed by an injected fault. */
312
+ readonly crashed: Promise<void>;
313
+ isCrashed(): boolean;
314
+ }
315
+ /** What the engine offers a platform during one run. */
316
+ interface RunHooks {
317
+ /**
318
+ * Start tracking an invocation; it becomes the running one. With
319
+ * `bookkeeping`, it only records the platform's own actions (a dead
320
+ * letter, a caller giving up) and never becomes the running one, so it
321
+ * cannot take over the effects of the handler it was started during.
322
+ */
323
+ startInvocation(id: string, options?: {
324
+ readonly bookkeeping?: boolean;
325
+ }): Invocation;
326
+ /** Perform an asynchronous effect under fault injection and record it. */
327
+ effect<T>(point: EffectPoint, perform: () => Promise<T>, summarize: (value: T) => JsonValue, options?: EffectOptions): Promise<T>;
328
+ /** Perform a synchronous effect under fault injection and record it. */
329
+ effectSync<T>(point: EffectPoint, perform: () => T, summarize: (value: T) => JsonValue): T;
330
+ /** Declare that the run touched something Eutaxy cannot control. */
331
+ unsupported(reason: string): void;
332
+ /**
333
+ * The invocation whose code is running now. Proxies that cannot tell which
334
+ * invocation called them attribute their effects to it; with concurrent
335
+ * invocations only one runs at a time, so this is always the caller.
336
+ */
337
+ running(): string;
338
+ /**
339
+ * Queue an event now, before the current delivery finishes, e.g. a resend
340
+ * the caller makes as soon as it gives up while the handler's background
341
+ * work still runs. Equivalent to returning it in `followUps`, except for
342
+ * when it can start.
343
+ */
344
+ enqueue(event: EventRef): void;
345
+ /** Record a state snapshot (not an effect point; never faulted). */
346
+ snapshot(invocation: string, target: string, payload: JsonValue): void;
347
+ /**
348
+ * Wait for user code under the engine's virtual clock: real I/O completes,
349
+ * timers fire while the invocation is idle, and a crashed invocation's
350
+ * promise is abandoned. Platforms await handler and background promises
351
+ * through this, never directly.
352
+ */
353
+ settle<T>(promise: Promise<T>, invocation: string): Promise<T>;
354
+ }
355
+ interface DeliveryResult {
356
+ readonly status: "completed" | "errored" | "crashed";
357
+ /** Events the platform's semantics require next, e.g. redeliveries. */
358
+ readonly followUps: readonly EventRef[];
359
+ }
360
+ interface Platform {
361
+ readonly name: string;
362
+ /** What a verdict rests on that this platform decides, one line each. */
363
+ readonly assumptions: readonly string[];
364
+ /**
365
+ * True when `deliver` may be called again before an earlier delivery has
366
+ * finished, which `maxConcurrentInvocations` above 1 needs. Such a
367
+ * platform attributes effects per delivery or through `RunHooks.running`,
368
+ * never through state shared between deliveries.
369
+ */
370
+ readonly concurrent?: boolean;
371
+ /** Establish the scenario's initial state. Called before every run. */
372
+ reset(spec: ScenarioSpec): Promise<void>;
373
+ /** The events the scenario's drive produces, in order. */
374
+ initialEvents(spec: ScenarioSpec): readonly EventRef[];
375
+ /** Deliver one event to the Worker under the run's fault injection. */
376
+ deliver(event: EventRef, hooks: RunHooks, spec: ScenarioSpec): Promise<DeliveryResult>;
377
+ /** The same scenario driven only by the events with these ids (for shrinking and regression tests). */
378
+ restrictEvents(spec: ScenarioSpec, keepIds: readonly string[]): ScenarioSpec;
379
+ /** Called once all events are delivered; the place to record end-of-run state snapshots. */
380
+ finish?(spec: ScenarioSpec, hooks: RunHooks): Promise<void>;
381
+ /** Called when a run ends for any reason, after `finish` or after a failure: undo any per-run patching. */
382
+ cleanup?(spec: ScenarioSpec): Promise<void>;
383
+ }
384
+ export { FaultDecision as C, EffectRecord as D, EffectLog as E, JsonValue as O, checkInvariants as S, Schedule as T, RowCondition as _, PlatformData as a, Violation as b, WorkerRef as c, AtMostOncePerKey as d, EffectSelector as f, Refines as g, Invariant as h, ExternalDecl as i, validateScenario as l, Implies as m, Platform as n, ScenarioSpec as o, EveryRow as p, Bounds as r, ScriptedResponse as s, EventRef as t, AtLeastOnce as u, StateQuery as v, FaultKind as w, checkInvariant as x, Unique as y };
385
+ //# sourceMappingURL=platform-eVgCMbX0.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-eVgCMbX0.d.mts","names":[],"sources":["../../core/src/canonical-json.ts","../../core/src/effect-log.ts","../../core/src/faults.ts","../../core/src/invariants.ts","../../core/src/scenario.ts","../../core/src/platform.ts"],"mappings":";;;;;KAMY,wDAKC;YACG,cAAc;;;KCDlB;UAEK;;WAEN;WACA,MAAM;;WAEN;;WAEA;;WAEA;;WAEA,SAAS;;UAGH;WACN,kBAAkB;;;;;;;KChBjB;UAUK;;WAEN;;WAEA;WACA,OAAO;;WAEP;WACA;;UAGM;;WAEN;WACA,iBAAiB;;;;;;;WAOjB;;;UCjCM;WACN;WACA;WACA,OAAO;;WAEP;cAAoB,eAAe;;;WAEnC;cAAsB;;;;UAIhB;WACN;WACA;WACA,QAAQ;;WAER;;;UAIM;WACN;WACA;WACA,QAAQ;WACR;WACA,mBAAmB;;WAEnB;aAAwB;;;;KAqBvB;WACG;WAAyB;WAA2B,OAAO;;WAC3D;WAAyB;WAA0C;;WACnE;WAAyB;WAAmB,gBAAgB;;WAC5D;WAAyB;;;UAGvB;;WAEN;WACA;WACA,iBAAiB;;;UAIX;WACN;WACA;WACA,OAAO;WACP,gBAAgB;;;;;;;UAQV;WACN;WACA;WACA,MAAM;;WAEN;WACA,OAAO;WACP;;;;;;;;UASM;WACN;WACA;WACA,OAAO;WACP;;;;;;;;;;;;;UAcM;WACN;WACA;;WAEA;WACA,QAAQ;WACR;aAA8B;aAAyB;;WACvD;aACE,MAAM;aACN,OAAO;;aAEP;;;KASD,YAAY,mBAAmB,cAAc,WAAW,UAAU,SAAS;UA2DtE;WACN;WACA;;WAEA;;WAEA;;iBA4EK,eAAe,KAAK,WAAW,KAAK,YAAY;iBA2MhD,gBACd,KAAK,WACL,qBAAqB,uBACX;;UC3dK;WACN;YACC,cAAc;;;UAIT;WACN;WACA;;;UAIM;;WAEN;;WAEA;WACA;WACA;cAAsB;;;WAEtB,OAAO;;;;;;;UAQD;WACN;;WAEA;WACA;;;;;;aAME;;;WAGF,qBAAqB;;;UAIf;WACN;WACA;WACA;WACA;;UAGM;WACN;WACA;;WAEA;WACA,QAAQ;;WAER,OAAO;;WAEP,gBAAgB;WAChB,oBAAoB;WACpB,qBAAqB;WACrB,QAAQ;;;;;;WAMR;;;iBAeK,iBAAiB,MAAM;;UCpFtB;WACN;;WAEA;WACA,MAAM;;;;;;;WAON;;;;;WAKA;;;UAIM;WACN;WACA;WACA;WACA,MAAM;;WAEN,kBAAkB;;;;;;WAMlB;;UAGM;;;;;;;;WAQN;;;;;;;WAOA;;;UAIM;WACN;;WAEA,SAAS;EAClB;;;UAIe;;;;;;;EAOf,gBAAgB,YAAY;aAAqB;MAA0B;;EAE3E,OAAO,GACL,OAAO,aACP,eAAe,QAAQ,IACvB,YAAY,OAAO,MAAM,WACzB,UAAU,gBACT,QAAQ;;EAEX,WAAW,GAAG,OAAO,aAAa,eAAe,GAAG,YAAY,OAAO,MAAM,YAAY;;EAEzF,YAAY;;;;;;EAMZ;;;;;;;EAOA,QAAQ,OAAO;;EAEf,SAAS,oBAAoB,gBAAgB,SAAS;;;;;;;EAOtD,OAAO,GAAG,SAAS,QAAQ,IAAI,qBAAqB,QAAQ;;UAG7C;WACN;;WAEA,oBAAoB;;UAGd;WACN;;WAEA;;;;;;;WAOA;;EAET,MAAM,MAAM,eAAe;;EAE3B,cAAc,MAAM,wBAAwB;;EAE5C,QAAQ,OAAO,UAAU,OAAO,UAAU,MAAM,eAAe,QAAQ;;EAEvE,eAAe,MAAM,cAAc,6BAA6B;;EAEhE,QAAQ,MAAM,cAAc,OAAO,WAAW;;EAE9C,SAAS,MAAM,eAAe"}
@@ -0,0 +1,43 @@
1
+ import { createRequire } from "node:module";
2
+ // \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __esmMin = (fn, res, err) => () => {
10
+ if (err) throw err[0];
11
+ try {
12
+ return fn && (res = fn(fn = 0)), res;
13
+ } catch (e) {
14
+ throw err = [e], e;
15
+ }
16
+ };
17
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
18
+ var __exportAll = (all, no_symbols) => {
19
+ let target = {};
20
+ for (var name in all) __defProp(target, name, {
21
+ get: all[name],
22
+ enumerable: true
23
+ });
24
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
25
+ return target;
26
+ };
27
+ var __copyProps = (to, from, except, desc) => {
28
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
29
+ key = keys[i];
30
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
31
+ get: ((k) => from[k]).bind(null, key),
32
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
33
+ });
34
+ }
35
+ return to;
36
+ };
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
38
+ value: mod,
39
+ enumerable: true
40
+ }) : target, mod));
41
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
42
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
43
+ export { __toCommonJS as a, __require as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };