@yume-chan/stream-extra 2.5.3 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/push-readable.d.ts +18 -1
- package/esm/push-readable.d.ts.map +1 -1
- package/esm/push-readable.js +179 -179
- package/esm/push-readable.js.map +1 -1
- package/esm/task-queue.d.ts +8 -0
- package/esm/task-queue.d.ts.map +1 -0
- package/esm/task-queue.js +50 -0
- package/esm/task-queue.js.map +1 -0
- package/package.json +3 -3
- package/src/push-readable.ts +225 -197
- package/src/task-queue.ts +69 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/esm/push-readable.d.ts
CHANGED
|
@@ -2,7 +2,24 @@ import type { AbortSignal, QueuingStrategy } from "./stream.js";
|
|
|
2
2
|
import { ReadableStream } from "./stream.js";
|
|
3
3
|
export interface PushReadableStreamController<T> {
|
|
4
4
|
abortSignal: AbortSignal;
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Enqueue `chunk` into the stream.
|
|
7
|
+
*
|
|
8
|
+
* - If the stream is already cancelled by consumer before calling `enqueue`,
|
|
9
|
+
* the call will return `false`.
|
|
10
|
+
* - If the stream is already closed or errored by producer before calling `enqueue`,
|
|
11
|
+
* the call will throw an error.
|
|
12
|
+
* - If the stream has enough buffer space, the call will return `true`.
|
|
13
|
+
*
|
|
14
|
+
* Otherwise it returns a `Promise`:
|
|
15
|
+
*
|
|
16
|
+
* - If the stream is cancelled by consumer, or closed or errored by producer,
|
|
17
|
+
* while the `Promise` is pending, the `Promise` will be resolved to `false`.
|
|
18
|
+
* - When the stream has enough buffer space, the `Promise` will be resolved to `true`.
|
|
19
|
+
*
|
|
20
|
+
* @param chunk The value to be enqueued
|
|
21
|
+
*/
|
|
22
|
+
enqueue(chunk: T): Promise<boolean>;
|
|
6
23
|
close(): void;
|
|
7
24
|
error(e?: unknown): void;
|
|
8
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-readable.d.ts","sourceRoot":"","sources":["../src/push-readable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"push-readable.d.ts","sourceRoot":"","sources":["../src/push-readable.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,WAAW,EACX,eAAe,EAElB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAmB,cAAc,EAAE,MAAM,aAAa,CAAC;AAG9D,MAAM,WAAW,4BAA4B,CAAC,CAAC;IAC3C,WAAW,EAAE,WAAW,CAAC;IAEzB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpC,KAAK,IAAI,IAAI,CAAC;IAEd,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,CACtC,UAAU,EAAE,4BAA4B,CAAC,CAAC,CAAC,KAC1C,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE1B,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAChC,KAAK,EACC;IACI,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;CACvD,GACD;IACI,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;CAC3C,GACD;IACI,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC7B,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC;CAC/B,KACN,IAAI,CAAC;AAEV,qBAAa,kBAAkB,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACxD;;;;;;OAMG;gBAEC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAC,EACnC,QAAQ,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,EAC7B,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC;CAoQrC"}
|
package/esm/push-readable.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PromiseResolver } from "@yume-chan/async";
|
|
1
|
+
import { isPromiseLike, PromiseResolver } from "@yume-chan/async";
|
|
2
2
|
import { AbortController, ReadableStream } from "./stream.js";
|
|
3
|
+
import { TaskQueue } from "./task-queue.js";
|
|
3
4
|
export class PushReadableStream extends ReadableStream {
|
|
4
5
|
/**
|
|
5
6
|
* Create a new `PushReadableStream` from a source.
|
|
@@ -9,196 +10,194 @@ export class PushReadableStream extends ReadableStream {
|
|
|
9
10
|
* @param strategy
|
|
10
11
|
*/
|
|
11
12
|
constructor(source, strategy, logger) {
|
|
12
|
-
let
|
|
13
|
+
let controller;
|
|
14
|
+
const tasks = new TaskQueue();
|
|
13
15
|
let zeroHighWaterMarkAllowEnqueue = false;
|
|
16
|
+
// Resolves when consumer calls `reader.read`.
|
|
17
|
+
// Rejects when producer calls `controller.close` or `controller.error`,
|
|
18
|
+
// or consumer calls `reader.cancel`.
|
|
19
|
+
let waterMarkLow;
|
|
14
20
|
const abortController = new AbortController();
|
|
21
|
+
// Whether either the consumer has called `stream.cancel()`,
|
|
22
|
+
// or the producer has called `controller.close` or `controller.error`.
|
|
23
|
+
let stopped = false;
|
|
24
|
+
const enqueue = (chunk) => {
|
|
25
|
+
logger?.({
|
|
26
|
+
source: "producer",
|
|
27
|
+
operation: "enqueue",
|
|
28
|
+
value: chunk,
|
|
29
|
+
phase: "start",
|
|
30
|
+
});
|
|
31
|
+
if (abortController.signal.aborted) {
|
|
32
|
+
// In original `ReadableStream`, calling `enqueue` or `close`
|
|
33
|
+
// on an cancelled stream will throw an error,
|
|
34
|
+
//
|
|
35
|
+
// But in `PushReadableStream`, `enqueue` is an async function,
|
|
36
|
+
// the producer can't just check `abortSignal.aborted`
|
|
37
|
+
// before calling `enqueue`, as it might change when waiting
|
|
38
|
+
// for the backpressure to be reduced.
|
|
39
|
+
//
|
|
40
|
+
// So IMO it's better to handle this for the producer
|
|
41
|
+
// by simply ignoring the `enqueue` call.
|
|
42
|
+
//
|
|
43
|
+
// Note that we check `abortSignal.aborted` instead of `stopped`,
|
|
44
|
+
// as it's not allowed for the producer to call `enqueue` after
|
|
45
|
+
// they called `close` or `error`.
|
|
46
|
+
//
|
|
47
|
+
// Obviously, the producer should listen to the `abortSignal` and
|
|
48
|
+
// stop producing, but most pushing data sources don't support that.
|
|
49
|
+
logger?.({
|
|
50
|
+
source: "producer",
|
|
51
|
+
operation: "enqueue",
|
|
52
|
+
value: chunk,
|
|
53
|
+
phase: "ignored",
|
|
54
|
+
});
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
if (controller.desiredSize === null) {
|
|
58
|
+
// `desiredSize` being `null` means the stream is in error state,
|
|
59
|
+
// `controller.enqueue` will throw an error for us.
|
|
60
|
+
controller.enqueue(chunk);
|
|
61
|
+
// istanbul ignore next
|
|
62
|
+
throw new Error("unreachable");
|
|
63
|
+
}
|
|
64
|
+
if (zeroHighWaterMarkAllowEnqueue) {
|
|
65
|
+
// When `highWaterMark` is set to `0`,
|
|
66
|
+
// `controller.desiredSize` will always be `0`,
|
|
67
|
+
// even if the consumer has called `reader.read()`.
|
|
68
|
+
// (in this case, each `reader.read()`/`pull`
|
|
69
|
+
// should allow one `enqueue` of any size)
|
|
70
|
+
//
|
|
71
|
+
// If the consumer has already called `reader.read()`,
|
|
72
|
+
// before the producer tries to `enqueue`,
|
|
73
|
+
// `controller.desiredSize` is `0` and normal `waterMarkLow` signal
|
|
74
|
+
// will never trigger,
|
|
75
|
+
// (because `ReadableStream` prevents reentrance of `pull`)
|
|
76
|
+
// The stream will stuck.
|
|
77
|
+
//
|
|
78
|
+
// So we need a special signal for this case.
|
|
79
|
+
zeroHighWaterMarkAllowEnqueue = false;
|
|
80
|
+
controller.enqueue(chunk);
|
|
81
|
+
logger?.({
|
|
82
|
+
source: "producer",
|
|
83
|
+
operation: "enqueue",
|
|
84
|
+
value: chunk,
|
|
85
|
+
phase: "complete",
|
|
86
|
+
});
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
if (controller.desiredSize <= 0) {
|
|
90
|
+
logger?.({
|
|
91
|
+
source: "producer",
|
|
92
|
+
operation: "enqueue",
|
|
93
|
+
value: chunk,
|
|
94
|
+
phase: "waiting",
|
|
95
|
+
});
|
|
96
|
+
waterMarkLow = new PromiseResolver();
|
|
97
|
+
return waterMarkLow.promise.then(() => {
|
|
98
|
+
controller.enqueue(chunk);
|
|
99
|
+
logger?.({
|
|
100
|
+
source: "producer",
|
|
101
|
+
operation: "enqueue",
|
|
102
|
+
value: chunk,
|
|
103
|
+
phase: "complete",
|
|
104
|
+
});
|
|
105
|
+
return true;
|
|
106
|
+
}, () => {
|
|
107
|
+
// Only ignore this in-flight `enqueue` call
|
|
108
|
+
// future calls will trigger `desiredSize === null` and throw
|
|
109
|
+
logger?.({
|
|
110
|
+
source: "producer",
|
|
111
|
+
operation: "enqueue",
|
|
112
|
+
value: chunk,
|
|
113
|
+
phase: "ignored",
|
|
114
|
+
});
|
|
115
|
+
return false;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
controller.enqueue(chunk);
|
|
119
|
+
logger?.({
|
|
120
|
+
source: "producer",
|
|
121
|
+
operation: "enqueue",
|
|
122
|
+
value: chunk,
|
|
123
|
+
phase: "complete",
|
|
124
|
+
});
|
|
125
|
+
return true;
|
|
126
|
+
};
|
|
127
|
+
const close = (explicit) => {
|
|
128
|
+
logger?.({
|
|
129
|
+
source: "producer",
|
|
130
|
+
operation: "close",
|
|
131
|
+
explicit,
|
|
132
|
+
phase: "start",
|
|
133
|
+
});
|
|
134
|
+
// Allow calling `controller.close` on cancelled stream as `enqueue` does
|
|
135
|
+
// Ignore implicit close on any stopped state
|
|
136
|
+
// But don't allow calling `controller.close` multiple times
|
|
137
|
+
if (abortController.signal.aborted || (stopped && !explicit)) {
|
|
138
|
+
logger?.({
|
|
139
|
+
source: "producer",
|
|
140
|
+
operation: "close",
|
|
141
|
+
explicit,
|
|
142
|
+
phase: "ignored",
|
|
143
|
+
});
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
// This will throw for us if the stream is not in `readable` state
|
|
147
|
+
controller.close();
|
|
148
|
+
stopped = true;
|
|
149
|
+
// Wake up pending `enqueue`
|
|
150
|
+
waterMarkLow?.reject();
|
|
151
|
+
logger?.({
|
|
152
|
+
source: "producer",
|
|
153
|
+
operation: "close",
|
|
154
|
+
explicit,
|
|
155
|
+
phase: "complete",
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
const error = (error, explicit) => {
|
|
159
|
+
logger?.({
|
|
160
|
+
source: "producer",
|
|
161
|
+
operation: "error",
|
|
162
|
+
explicit,
|
|
163
|
+
phase: "start",
|
|
164
|
+
});
|
|
165
|
+
stopped = true;
|
|
166
|
+
// `controller.error` won't throw on closed/errored/cancelled stream
|
|
167
|
+
// so don't need any checks
|
|
168
|
+
controller.error(error);
|
|
169
|
+
// Wake up pending `enqueue`
|
|
170
|
+
waterMarkLow?.reject();
|
|
171
|
+
logger?.({
|
|
172
|
+
source: "producer",
|
|
173
|
+
operation: "error",
|
|
174
|
+
explicit,
|
|
175
|
+
phase: "complete",
|
|
176
|
+
});
|
|
177
|
+
};
|
|
15
178
|
super({
|
|
16
|
-
start: (
|
|
179
|
+
start: (controller_) => {
|
|
180
|
+
controller = controller_;
|
|
17
181
|
const result = source({
|
|
18
182
|
abortSignal: abortController.signal,
|
|
19
|
-
enqueue: async (chunk) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
value: chunk,
|
|
24
|
-
phase: "start",
|
|
25
|
-
});
|
|
26
|
-
if (abortController.signal.aborted) {
|
|
27
|
-
// In original `ReadableStream`, calling `enqueue` or `close`
|
|
28
|
-
// on an cancelled stream will throw an error,
|
|
29
|
-
//
|
|
30
|
-
// But in `PushReadableStream`, `enqueue` is an async function,
|
|
31
|
-
// the producer can't just check `abortSignal.aborted`
|
|
32
|
-
// before calling `enqueue`, as it might change when waiting
|
|
33
|
-
// for the backpressure to be reduced.
|
|
34
|
-
//
|
|
35
|
-
// So IMO it's better to handle this for the producer
|
|
36
|
-
// by simply ignoring the `enqueue` call.
|
|
37
|
-
//
|
|
38
|
-
// Note that we check `abortSignal.aborted` instead of `stopped`,
|
|
39
|
-
// as it's not allowed for the producer to call `enqueue` after
|
|
40
|
-
// they called `close` or `error`.
|
|
41
|
-
//
|
|
42
|
-
// Obviously, the producer should listen to the `abortSignal` and
|
|
43
|
-
// stop producing, but most pushing data sources don't support that.
|
|
44
|
-
logger?.({
|
|
45
|
-
source: "producer",
|
|
46
|
-
operation: "enqueue",
|
|
47
|
-
value: chunk,
|
|
48
|
-
phase: "ignored",
|
|
49
|
-
});
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
if (controller.desiredSize === null) {
|
|
53
|
-
// `desiredSize` being `null` means the stream is in error state,
|
|
54
|
-
// `controller.enqueue` will throw an error for us.
|
|
55
|
-
controller.enqueue(chunk);
|
|
56
|
-
// istanbul ignore next
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (zeroHighWaterMarkAllowEnqueue) {
|
|
60
|
-
// When `highWaterMark` is set to `0`,
|
|
61
|
-
// `controller.desiredSize` will always be `0`,
|
|
62
|
-
// even if the consumer has called `reader.read()`.
|
|
63
|
-
// (in this case, each `reader.read()`/`pull`
|
|
64
|
-
// should allow one `enqueue` of any size)
|
|
65
|
-
//
|
|
66
|
-
// If the consumer has already called `reader.read()`,
|
|
67
|
-
// before the producer tries to `enqueue`,
|
|
68
|
-
// `controller.desiredSize` is `0` and normal `waterMarkLow` signal
|
|
69
|
-
// will never trigger,
|
|
70
|
-
// (because `ReadableStream` prevents reentrance of `pull`)
|
|
71
|
-
// The stream will stuck.
|
|
72
|
-
//
|
|
73
|
-
// So we need a special signal for this case.
|
|
74
|
-
zeroHighWaterMarkAllowEnqueue = false;
|
|
75
|
-
controller.enqueue(chunk);
|
|
76
|
-
logger?.({
|
|
77
|
-
source: "producer",
|
|
78
|
-
operation: "enqueue",
|
|
79
|
-
value: chunk,
|
|
80
|
-
phase: "complete",
|
|
81
|
-
});
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
if (controller.desiredSize <= 0) {
|
|
85
|
-
logger?.({
|
|
86
|
-
source: "producer",
|
|
87
|
-
operation: "enqueue",
|
|
88
|
-
value: chunk,
|
|
89
|
-
phase: "waiting",
|
|
90
|
-
});
|
|
91
|
-
waterMarkLow = new PromiseResolver();
|
|
92
|
-
await waterMarkLow.promise;
|
|
93
|
-
// Recheck consumer cancellation after async operations.
|
|
94
|
-
if (abortController.signal.aborted) {
|
|
95
|
-
logger?.({
|
|
96
|
-
source: "producer",
|
|
97
|
-
operation: "enqueue",
|
|
98
|
-
value: chunk,
|
|
99
|
-
phase: "ignored",
|
|
100
|
-
});
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
controller.enqueue(chunk);
|
|
105
|
-
logger?.({
|
|
106
|
-
source: "producer",
|
|
107
|
-
operation: "enqueue",
|
|
108
|
-
value: chunk,
|
|
109
|
-
phase: "complete",
|
|
110
|
-
});
|
|
111
|
-
},
|
|
183
|
+
enqueue: async (chunk) =>
|
|
184
|
+
// Run `enqueue`s in serial
|
|
185
|
+
// Use `async/await` to always return a `Promise`
|
|
186
|
+
await tasks.enqueue(() => enqueue(chunk)),
|
|
112
187
|
close() {
|
|
113
|
-
|
|
114
|
-
source: "producer",
|
|
115
|
-
operation: "close",
|
|
116
|
-
explicit: true,
|
|
117
|
-
phase: "start",
|
|
118
|
-
});
|
|
119
|
-
// Since `enqueue` on an cancelled stream won't throw an error,
|
|
120
|
-
// so does `close`.
|
|
121
|
-
if (abortController.signal.aborted) {
|
|
122
|
-
logger?.({
|
|
123
|
-
source: "producer",
|
|
124
|
-
operation: "close",
|
|
125
|
-
explicit: true,
|
|
126
|
-
phase: "ignored",
|
|
127
|
-
});
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
controller.close();
|
|
131
|
-
logger?.({
|
|
132
|
-
source: "producer",
|
|
133
|
-
operation: "close",
|
|
134
|
-
explicit: true,
|
|
135
|
-
phase: "complete",
|
|
136
|
-
});
|
|
188
|
+
close(true);
|
|
137
189
|
},
|
|
138
190
|
error(e) {
|
|
139
|
-
|
|
140
|
-
source: "producer",
|
|
141
|
-
operation: "error",
|
|
142
|
-
explicit: true,
|
|
143
|
-
phase: "start",
|
|
144
|
-
});
|
|
145
|
-
// Calling `error` on an already closed or errored stream is a no-op.
|
|
146
|
-
controller.error(e);
|
|
147
|
-
logger?.({
|
|
148
|
-
source: "producer",
|
|
149
|
-
operation: "error",
|
|
150
|
-
explicit: true,
|
|
151
|
-
phase: "complete",
|
|
152
|
-
});
|
|
191
|
+
error(e, true);
|
|
153
192
|
},
|
|
154
193
|
});
|
|
155
|
-
if (
|
|
194
|
+
if (!stopped && isPromiseLike(result)) {
|
|
156
195
|
// If `source` returns a `Promise`,
|
|
157
196
|
// close the stream when the `Promise` is resolved,
|
|
158
197
|
// and error the stream when the `Promise` is rejected.
|
|
159
198
|
// The producer can return a never-settling `Promise`
|
|
160
199
|
// to disable this behavior.
|
|
161
|
-
result.then(() =>
|
|
162
|
-
logger?.({
|
|
163
|
-
source: "producer",
|
|
164
|
-
operation: "close",
|
|
165
|
-
explicit: false,
|
|
166
|
-
phase: "start",
|
|
167
|
-
});
|
|
168
|
-
try {
|
|
169
|
-
controller.close();
|
|
170
|
-
logger?.({
|
|
171
|
-
source: "producer",
|
|
172
|
-
operation: "close",
|
|
173
|
-
explicit: false,
|
|
174
|
-
phase: "complete",
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
catch {
|
|
178
|
-
logger?.({
|
|
179
|
-
source: "producer",
|
|
180
|
-
operation: "close",
|
|
181
|
-
explicit: false,
|
|
182
|
-
phase: "ignored",
|
|
183
|
-
});
|
|
184
|
-
// The stream is already closed by the producer,
|
|
185
|
-
// Or cancelled by the consumer.
|
|
186
|
-
}
|
|
187
|
-
}, (e) => {
|
|
188
|
-
logger?.({
|
|
189
|
-
source: "producer",
|
|
190
|
-
operation: "error",
|
|
191
|
-
explicit: false,
|
|
192
|
-
phase: "start",
|
|
193
|
-
});
|
|
194
|
-
controller.error(e);
|
|
195
|
-
logger?.({
|
|
196
|
-
source: "producer",
|
|
197
|
-
operation: "error",
|
|
198
|
-
explicit: false,
|
|
199
|
-
phase: "complete",
|
|
200
|
-
});
|
|
201
|
-
});
|
|
200
|
+
result.then(() => close(false), (e) => error(e, false));
|
|
202
201
|
}
|
|
203
202
|
},
|
|
204
203
|
pull: () => {
|
|
@@ -208,7 +207,8 @@ export class PushReadableStream extends ReadableStream {
|
|
|
208
207
|
phase: "start",
|
|
209
208
|
});
|
|
210
209
|
if (waterMarkLow) {
|
|
211
|
-
waterMarkLow.resolve();
|
|
210
|
+
waterMarkLow.resolve(undefined);
|
|
211
|
+
waterMarkLow = undefined;
|
|
212
212
|
}
|
|
213
213
|
else if (strategy?.highWaterMark === 0) {
|
|
214
214
|
zeroHighWaterMarkAllowEnqueue = true;
|
|
@@ -225,9 +225,9 @@ export class PushReadableStream extends ReadableStream {
|
|
|
225
225
|
operation: "cancel",
|
|
226
226
|
phase: "start",
|
|
227
227
|
});
|
|
228
|
+
stopped = true;
|
|
228
229
|
abortController.abort(reason);
|
|
229
|
-
|
|
230
|
-
waterMarkLow?.resolve();
|
|
230
|
+
waterMarkLow?.reject();
|
|
231
231
|
logger?.({
|
|
232
232
|
source: "consumer",
|
|
233
233
|
operation: "cancel",
|
package/esm/push-readable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-readable.js","sourceRoot":"","sources":["../src/push-readable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"push-readable.js","sourceRoot":"","sources":["../src/push-readable.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MaybePromise, MaybePromiseLike } from "@yume-chan/async";
|
|
2
|
+
export declare class TaskQueue {
|
|
3
|
+
#private;
|
|
4
|
+
enqueue<T extends MaybePromiseLike<unknown>>(task: () => T, bail?: boolean): T;
|
|
5
|
+
enqueue<T>(task: () => T, bail?: boolean): MaybePromise<T>;
|
|
6
|
+
dispose(): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=task-queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-queue.d.ts","sourceRoot":"","sources":["../src/task-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGvE,qBAAa,SAAS;;IAIlB,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,OAAO,CAAC,EACvC,IAAI,EAAE,MAAM,CAAC,EACb,IAAI,CAAC,EAAE,OAAO,GACf,CAAC;IACJ,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC;IAsD1D,OAAO;CAGV"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { isPromiseLike } from "@yume-chan/async";
|
|
2
|
+
export class TaskQueue {
|
|
3
|
+
#ready;
|
|
4
|
+
#disposed = false;
|
|
5
|
+
enqueue(task, bail = false) {
|
|
6
|
+
if (this.#disposed) {
|
|
7
|
+
throw new Error("TaskQueue is disposed");
|
|
8
|
+
}
|
|
9
|
+
if (!this.#ready) {
|
|
10
|
+
// Init state or all previous tasks are synchronous
|
|
11
|
+
try {
|
|
12
|
+
const result = task();
|
|
13
|
+
if (isPromiseLike(result)) {
|
|
14
|
+
this.#ready = result.then(() => { }, (e) => {
|
|
15
|
+
if (bail) {
|
|
16
|
+
throw e;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
catch (e) {
|
|
23
|
+
if (bail) {
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
|
|
25
|
+
const promise = Promise.reject(e);
|
|
26
|
+
// Suppress unhandled-rejection without resolving `#ready`
|
|
27
|
+
void promise.catch(() => { });
|
|
28
|
+
this.#ready = promise;
|
|
29
|
+
}
|
|
30
|
+
throw e;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const result = this.#ready.then(() => {
|
|
34
|
+
if (this.#disposed) {
|
|
35
|
+
throw new Error("TaskQueue is disposed");
|
|
36
|
+
}
|
|
37
|
+
return task();
|
|
38
|
+
});
|
|
39
|
+
this.#ready = result.then(() => { }, (e) => {
|
|
40
|
+
if (bail || this.#disposed) {
|
|
41
|
+
throw e;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return result;
|
|
45
|
+
}
|
|
46
|
+
dispose() {
|
|
47
|
+
this.#disposed = true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=task-queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-queue.js","sourceRoot":"","sources":["../src/task-queue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,OAAO,SAAS;IAClB,MAAM,CAAmC;IACzC,SAAS,GAAG,KAAK,CAAC;IAOlB,OAAO,CACH,IAA+B,EAC/B,IAAI,GAAG,KAAK;QAEZ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC7C,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACf,mDAAmD;YACnD,IAAI,CAAC;gBACD,MAAM,MAAM,GAAG,IAAI,EAAE,CAAC;gBACtB,IAAI,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC;oBACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CACrB,GAAG,EAAE,GAAE,CAAC,EACR,CAAC,CAAC,EAAE,EAAE;wBACF,IAAI,IAAI,EAAE,CAAC;4BACP,MAAM,CAAC,CAAC;wBACZ,CAAC;oBACL,CAAC,CACJ,CAAC;gBACN,CAAC;gBACD,OAAO,MAAM,CAAC;YAClB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,IAAI,IAAI,EAAE,CAAC;oBACP,2EAA2E;oBAC3E,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;oBAClC,0DAA0D;oBAC1D,KAAK,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;oBAC7B,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;gBAC1B,CAAC;gBACD,MAAM,CAAC,CAAC;YACZ,CAAC;QACL,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;YACjC,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACjB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;YAC7C,CAAC;YAED,OAAO,IAAI,EAAE,CAAC;QAClB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CACrB,GAAG,EAAE,GAAE,CAAC,EACR,CAAC,CAAC,EAAE,EAAE;YACF,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACzB,MAAM,CAAC,CAAC;YACZ,CAAC;QACL,CAAC,CACJ,CAAC;QACF,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IAC1B,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yume-chan/stream-extra",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Extensions to Web Streams API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stream",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"prettier": "^3.6.2",
|
|
35
35
|
"typescript": "^5.9.2",
|
|
36
36
|
"@yume-chan/eslint-config": "^1.0.0",
|
|
37
|
-
"@yume-chan/
|
|
38
|
-
"@yume-chan/
|
|
37
|
+
"@yume-chan/tsconfig": "^1.0.0",
|
|
38
|
+
"@yume-chan/test-runner": "^1.0.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsc -b tsconfig.build.json",
|
package/src/push-readable.ts
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MaybePromise } from "@yume-chan/async";
|
|
2
|
+
import { isPromiseLike, PromiseResolver } from "@yume-chan/async";
|
|
2
3
|
|
|
3
|
-
import type {
|
|
4
|
+
import type {
|
|
5
|
+
AbortSignal,
|
|
6
|
+
QueuingStrategy,
|
|
7
|
+
ReadableStreamDefaultController,
|
|
8
|
+
} from "./stream.js";
|
|
4
9
|
import { AbortController, ReadableStream } from "./stream.js";
|
|
10
|
+
import { TaskQueue } from "./task-queue.js";
|
|
5
11
|
|
|
6
12
|
export interface PushReadableStreamController<T> {
|
|
7
13
|
abortSignal: AbortSignal;
|
|
8
14
|
|
|
9
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Enqueue `chunk` into the stream.
|
|
17
|
+
*
|
|
18
|
+
* - If the stream is already cancelled by consumer before calling `enqueue`,
|
|
19
|
+
* the call will return `false`.
|
|
20
|
+
* - If the stream is already closed or errored by producer before calling `enqueue`,
|
|
21
|
+
* the call will throw an error.
|
|
22
|
+
* - If the stream has enough buffer space, the call will return `true`.
|
|
23
|
+
*
|
|
24
|
+
* Otherwise it returns a `Promise`:
|
|
25
|
+
*
|
|
26
|
+
* - If the stream is cancelled by consumer, or closed or errored by producer,
|
|
27
|
+
* while the `Promise` is pending, the `Promise` will be resolved to `false`.
|
|
28
|
+
* - When the stream has enough buffer space, the `Promise` will be resolved to `true`.
|
|
29
|
+
*
|
|
30
|
+
* @param chunk The value to be enqueued
|
|
31
|
+
*/
|
|
32
|
+
enqueue(chunk: T): Promise<boolean>;
|
|
10
33
|
|
|
11
34
|
close(): void;
|
|
12
35
|
|
|
@@ -51,216 +74,220 @@ export class PushReadableStream<T> extends ReadableStream<T> {
|
|
|
51
74
|
strategy?: QueuingStrategy<T>,
|
|
52
75
|
logger?: PushReadableLogger<T>,
|
|
53
76
|
) {
|
|
54
|
-
let
|
|
77
|
+
let controller!: ReadableStreamDefaultController<T>;
|
|
78
|
+
const tasks = new TaskQueue();
|
|
79
|
+
|
|
55
80
|
let zeroHighWaterMarkAllowEnqueue = false;
|
|
81
|
+
// Resolves when consumer calls `reader.read`.
|
|
82
|
+
// Rejects when producer calls `controller.close` or `controller.error`,
|
|
83
|
+
// or consumer calls `reader.cancel`.
|
|
84
|
+
let waterMarkLow: PromiseResolver<undefined> | undefined;
|
|
85
|
+
|
|
56
86
|
const abortController = new AbortController();
|
|
87
|
+
// Whether either the consumer has called `stream.cancel()`,
|
|
88
|
+
// or the producer has called `controller.close` or `controller.error`.
|
|
89
|
+
let stopped = false;
|
|
90
|
+
|
|
91
|
+
const enqueue = (chunk: T): MaybePromise<boolean> => {
|
|
92
|
+
logger?.({
|
|
93
|
+
source: "producer",
|
|
94
|
+
operation: "enqueue",
|
|
95
|
+
value: chunk,
|
|
96
|
+
phase: "start",
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
if (abortController.signal.aborted) {
|
|
100
|
+
// In original `ReadableStream`, calling `enqueue` or `close`
|
|
101
|
+
// on an cancelled stream will throw an error,
|
|
102
|
+
//
|
|
103
|
+
// But in `PushReadableStream`, `enqueue` is an async function,
|
|
104
|
+
// the producer can't just check `abortSignal.aborted`
|
|
105
|
+
// before calling `enqueue`, as it might change when waiting
|
|
106
|
+
// for the backpressure to be reduced.
|
|
107
|
+
//
|
|
108
|
+
// So IMO it's better to handle this for the producer
|
|
109
|
+
// by simply ignoring the `enqueue` call.
|
|
110
|
+
//
|
|
111
|
+
// Note that we check `abortSignal.aborted` instead of `stopped`,
|
|
112
|
+
// as it's not allowed for the producer to call `enqueue` after
|
|
113
|
+
// they called `close` or `error`.
|
|
114
|
+
//
|
|
115
|
+
// Obviously, the producer should listen to the `abortSignal` and
|
|
116
|
+
// stop producing, but most pushing data sources don't support that.
|
|
117
|
+
logger?.({
|
|
118
|
+
source: "producer",
|
|
119
|
+
operation: "enqueue",
|
|
120
|
+
value: chunk,
|
|
121
|
+
phase: "ignored",
|
|
122
|
+
});
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (controller.desiredSize === null) {
|
|
127
|
+
// `desiredSize` being `null` means the stream is in error state,
|
|
128
|
+
// `controller.enqueue` will throw an error for us.
|
|
129
|
+
controller.enqueue(chunk);
|
|
130
|
+
// istanbul ignore next
|
|
131
|
+
throw new Error("unreachable");
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (zeroHighWaterMarkAllowEnqueue) {
|
|
135
|
+
// When `highWaterMark` is set to `0`,
|
|
136
|
+
// `controller.desiredSize` will always be `0`,
|
|
137
|
+
// even if the consumer has called `reader.read()`.
|
|
138
|
+
// (in this case, each `reader.read()`/`pull`
|
|
139
|
+
// should allow one `enqueue` of any size)
|
|
140
|
+
//
|
|
141
|
+
// If the consumer has already called `reader.read()`,
|
|
142
|
+
// before the producer tries to `enqueue`,
|
|
143
|
+
// `controller.desiredSize` is `0` and normal `waterMarkLow` signal
|
|
144
|
+
// will never trigger,
|
|
145
|
+
// (because `ReadableStream` prevents reentrance of `pull`)
|
|
146
|
+
// The stream will stuck.
|
|
147
|
+
//
|
|
148
|
+
// So we need a special signal for this case.
|
|
149
|
+
zeroHighWaterMarkAllowEnqueue = false;
|
|
150
|
+
controller.enqueue(chunk);
|
|
151
|
+
logger?.({
|
|
152
|
+
source: "producer",
|
|
153
|
+
operation: "enqueue",
|
|
154
|
+
value: chunk,
|
|
155
|
+
phase: "complete",
|
|
156
|
+
});
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (controller.desiredSize <= 0) {
|
|
161
|
+
logger?.({
|
|
162
|
+
source: "producer",
|
|
163
|
+
operation: "enqueue",
|
|
164
|
+
value: chunk,
|
|
165
|
+
phase: "waiting",
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
waterMarkLow = new PromiseResolver<undefined>();
|
|
169
|
+
return waterMarkLow.promise.then(
|
|
170
|
+
(): boolean => {
|
|
171
|
+
controller.enqueue(chunk);
|
|
172
|
+
logger?.({
|
|
173
|
+
source: "producer",
|
|
174
|
+
operation: "enqueue",
|
|
175
|
+
value: chunk,
|
|
176
|
+
phase: "complete",
|
|
177
|
+
});
|
|
178
|
+
return true;
|
|
179
|
+
},
|
|
180
|
+
(): boolean => {
|
|
181
|
+
// Only ignore this in-flight `enqueue` call
|
|
182
|
+
// future calls will trigger `desiredSize === null` and throw
|
|
183
|
+
logger?.({
|
|
184
|
+
source: "producer",
|
|
185
|
+
operation: "enqueue",
|
|
186
|
+
value: chunk,
|
|
187
|
+
phase: "ignored",
|
|
188
|
+
});
|
|
189
|
+
return false;
|
|
190
|
+
},
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
controller.enqueue(chunk);
|
|
195
|
+
logger?.({
|
|
196
|
+
source: "producer",
|
|
197
|
+
operation: "enqueue",
|
|
198
|
+
value: chunk,
|
|
199
|
+
phase: "complete",
|
|
200
|
+
});
|
|
201
|
+
return true;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
const close = (explicit: boolean) => {
|
|
205
|
+
logger?.({
|
|
206
|
+
source: "producer",
|
|
207
|
+
operation: "close",
|
|
208
|
+
explicit,
|
|
209
|
+
phase: "start",
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
// Allow calling `controller.close` on cancelled stream as `enqueue` does
|
|
213
|
+
// Ignore implicit close on any stopped state
|
|
214
|
+
// But don't allow calling `controller.close` multiple times
|
|
215
|
+
if (abortController.signal.aborted || (stopped && !explicit)) {
|
|
216
|
+
logger?.({
|
|
217
|
+
source: "producer",
|
|
218
|
+
operation: "close",
|
|
219
|
+
explicit,
|
|
220
|
+
phase: "ignored",
|
|
221
|
+
});
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// This will throw for us if the stream is not in `readable` state
|
|
226
|
+
controller.close();
|
|
227
|
+
|
|
228
|
+
stopped = true;
|
|
229
|
+
// Wake up pending `enqueue`
|
|
230
|
+
waterMarkLow?.reject();
|
|
231
|
+
|
|
232
|
+
logger?.({
|
|
233
|
+
source: "producer",
|
|
234
|
+
operation: "close",
|
|
235
|
+
explicit,
|
|
236
|
+
phase: "complete",
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
const error = (error: unknown, explicit: boolean) => {
|
|
241
|
+
logger?.({
|
|
242
|
+
source: "producer",
|
|
243
|
+
operation: "error",
|
|
244
|
+
explicit,
|
|
245
|
+
phase: "start",
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
stopped = true;
|
|
249
|
+
// `controller.error` won't throw on closed/errored/cancelled stream
|
|
250
|
+
// so don't need any checks
|
|
251
|
+
controller.error(error);
|
|
252
|
+
// Wake up pending `enqueue`
|
|
253
|
+
waterMarkLow?.reject();
|
|
254
|
+
|
|
255
|
+
logger?.({
|
|
256
|
+
source: "producer",
|
|
257
|
+
operation: "error",
|
|
258
|
+
explicit,
|
|
259
|
+
phase: "complete",
|
|
260
|
+
});
|
|
261
|
+
};
|
|
57
262
|
|
|
58
263
|
super(
|
|
59
264
|
{
|
|
60
|
-
start: (
|
|
265
|
+
start: (controller_) => {
|
|
266
|
+
controller = controller_;
|
|
267
|
+
|
|
61
268
|
const result = source({
|
|
62
269
|
abortSignal: abortController.signal,
|
|
63
|
-
enqueue: async (chunk) =>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
value: chunk,
|
|
68
|
-
phase: "start",
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
if (abortController.signal.aborted) {
|
|
72
|
-
// In original `ReadableStream`, calling `enqueue` or `close`
|
|
73
|
-
// on an cancelled stream will throw an error,
|
|
74
|
-
//
|
|
75
|
-
// But in `PushReadableStream`, `enqueue` is an async function,
|
|
76
|
-
// the producer can't just check `abortSignal.aborted`
|
|
77
|
-
// before calling `enqueue`, as it might change when waiting
|
|
78
|
-
// for the backpressure to be reduced.
|
|
79
|
-
//
|
|
80
|
-
// So IMO it's better to handle this for the producer
|
|
81
|
-
// by simply ignoring the `enqueue` call.
|
|
82
|
-
//
|
|
83
|
-
// Note that we check `abortSignal.aborted` instead of `stopped`,
|
|
84
|
-
// as it's not allowed for the producer to call `enqueue` after
|
|
85
|
-
// they called `close` or `error`.
|
|
86
|
-
//
|
|
87
|
-
// Obviously, the producer should listen to the `abortSignal` and
|
|
88
|
-
// stop producing, but most pushing data sources don't support that.
|
|
89
|
-
logger?.({
|
|
90
|
-
source: "producer",
|
|
91
|
-
operation: "enqueue",
|
|
92
|
-
value: chunk,
|
|
93
|
-
phase: "ignored",
|
|
94
|
-
});
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (controller.desiredSize === null) {
|
|
99
|
-
// `desiredSize` being `null` means the stream is in error state,
|
|
100
|
-
// `controller.enqueue` will throw an error for us.
|
|
101
|
-
controller.enqueue(chunk);
|
|
102
|
-
// istanbul ignore next
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (zeroHighWaterMarkAllowEnqueue) {
|
|
107
|
-
// When `highWaterMark` is set to `0`,
|
|
108
|
-
// `controller.desiredSize` will always be `0`,
|
|
109
|
-
// even if the consumer has called `reader.read()`.
|
|
110
|
-
// (in this case, each `reader.read()`/`pull`
|
|
111
|
-
// should allow one `enqueue` of any size)
|
|
112
|
-
//
|
|
113
|
-
// If the consumer has already called `reader.read()`,
|
|
114
|
-
// before the producer tries to `enqueue`,
|
|
115
|
-
// `controller.desiredSize` is `0` and normal `waterMarkLow` signal
|
|
116
|
-
// will never trigger,
|
|
117
|
-
// (because `ReadableStream` prevents reentrance of `pull`)
|
|
118
|
-
// The stream will stuck.
|
|
119
|
-
//
|
|
120
|
-
// So we need a special signal for this case.
|
|
121
|
-
zeroHighWaterMarkAllowEnqueue = false;
|
|
122
|
-
controller.enqueue(chunk);
|
|
123
|
-
logger?.({
|
|
124
|
-
source: "producer",
|
|
125
|
-
operation: "enqueue",
|
|
126
|
-
value: chunk,
|
|
127
|
-
phase: "complete",
|
|
128
|
-
});
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
if (controller.desiredSize <= 0) {
|
|
133
|
-
logger?.({
|
|
134
|
-
source: "producer",
|
|
135
|
-
operation: "enqueue",
|
|
136
|
-
value: chunk,
|
|
137
|
-
phase: "waiting",
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
waterMarkLow = new PromiseResolver<void>();
|
|
141
|
-
await waterMarkLow.promise;
|
|
142
|
-
|
|
143
|
-
// Recheck consumer cancellation after async operations.
|
|
144
|
-
if (abortController.signal.aborted) {
|
|
145
|
-
logger?.({
|
|
146
|
-
source: "producer",
|
|
147
|
-
operation: "enqueue",
|
|
148
|
-
value: chunk,
|
|
149
|
-
phase: "ignored",
|
|
150
|
-
});
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
controller.enqueue(chunk);
|
|
156
|
-
logger?.({
|
|
157
|
-
source: "producer",
|
|
158
|
-
operation: "enqueue",
|
|
159
|
-
value: chunk,
|
|
160
|
-
phase: "complete",
|
|
161
|
-
});
|
|
162
|
-
},
|
|
270
|
+
enqueue: async (chunk) =>
|
|
271
|
+
// Run `enqueue`s in serial
|
|
272
|
+
// Use `async/await` to always return a `Promise`
|
|
273
|
+
await tasks.enqueue(() => enqueue(chunk)),
|
|
163
274
|
close() {
|
|
164
|
-
|
|
165
|
-
source: "producer",
|
|
166
|
-
operation: "close",
|
|
167
|
-
explicit: true,
|
|
168
|
-
phase: "start",
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
// Since `enqueue` on an cancelled stream won't throw an error,
|
|
172
|
-
// so does `close`.
|
|
173
|
-
if (abortController.signal.aborted) {
|
|
174
|
-
logger?.({
|
|
175
|
-
source: "producer",
|
|
176
|
-
operation: "close",
|
|
177
|
-
explicit: true,
|
|
178
|
-
phase: "ignored",
|
|
179
|
-
});
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
controller.close();
|
|
184
|
-
logger?.({
|
|
185
|
-
source: "producer",
|
|
186
|
-
operation: "close",
|
|
187
|
-
explicit: true,
|
|
188
|
-
phase: "complete",
|
|
189
|
-
});
|
|
275
|
+
close(true);
|
|
190
276
|
},
|
|
191
277
|
error(e) {
|
|
192
|
-
|
|
193
|
-
source: "producer",
|
|
194
|
-
operation: "error",
|
|
195
|
-
explicit: true,
|
|
196
|
-
phase: "start",
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
// Calling `error` on an already closed or errored stream is a no-op.
|
|
200
|
-
controller.error(e);
|
|
201
|
-
|
|
202
|
-
logger?.({
|
|
203
|
-
source: "producer",
|
|
204
|
-
operation: "error",
|
|
205
|
-
explicit: true,
|
|
206
|
-
phase: "complete",
|
|
207
|
-
});
|
|
278
|
+
error(e, true);
|
|
208
279
|
},
|
|
209
280
|
});
|
|
210
281
|
|
|
211
|
-
if (
|
|
282
|
+
if (!stopped && isPromiseLike(result)) {
|
|
212
283
|
// If `source` returns a `Promise`,
|
|
213
284
|
// close the stream when the `Promise` is resolved,
|
|
214
285
|
// and error the stream when the `Promise` is rejected.
|
|
215
286
|
// The producer can return a never-settling `Promise`
|
|
216
287
|
// to disable this behavior.
|
|
217
288
|
result.then(
|
|
218
|
-
() =>
|
|
219
|
-
|
|
220
|
-
source: "producer",
|
|
221
|
-
operation: "close",
|
|
222
|
-
explicit: false,
|
|
223
|
-
phase: "start",
|
|
224
|
-
});
|
|
225
|
-
|
|
226
|
-
try {
|
|
227
|
-
controller.close();
|
|
228
|
-
|
|
229
|
-
logger?.({
|
|
230
|
-
source: "producer",
|
|
231
|
-
operation: "close",
|
|
232
|
-
explicit: false,
|
|
233
|
-
phase: "complete",
|
|
234
|
-
});
|
|
235
|
-
} catch {
|
|
236
|
-
logger?.({
|
|
237
|
-
source: "producer",
|
|
238
|
-
operation: "close",
|
|
239
|
-
explicit: false,
|
|
240
|
-
phase: "ignored",
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
// The stream is already closed by the producer,
|
|
244
|
-
// Or cancelled by the consumer.
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
(e) => {
|
|
248
|
-
logger?.({
|
|
249
|
-
source: "producer",
|
|
250
|
-
operation: "error",
|
|
251
|
-
explicit: false,
|
|
252
|
-
phase: "start",
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
controller.error(e);
|
|
256
|
-
|
|
257
|
-
logger?.({
|
|
258
|
-
source: "producer",
|
|
259
|
-
operation: "error",
|
|
260
|
-
explicit: false,
|
|
261
|
-
phase: "complete",
|
|
262
|
-
});
|
|
263
|
-
},
|
|
289
|
+
() => close(false),
|
|
290
|
+
(e) => error(e, false),
|
|
264
291
|
);
|
|
265
292
|
}
|
|
266
293
|
},
|
|
@@ -272,7 +299,8 @@ export class PushReadableStream<T> extends ReadableStream<T> {
|
|
|
272
299
|
});
|
|
273
300
|
|
|
274
301
|
if (waterMarkLow) {
|
|
275
|
-
waterMarkLow.resolve();
|
|
302
|
+
waterMarkLow.resolve(undefined);
|
|
303
|
+
waterMarkLow = undefined;
|
|
276
304
|
} else if (strategy?.highWaterMark === 0) {
|
|
277
305
|
zeroHighWaterMarkAllowEnqueue = true;
|
|
278
306
|
}
|
|
@@ -290,9 +318,9 @@ export class PushReadableStream<T> extends ReadableStream<T> {
|
|
|
290
318
|
phase: "start",
|
|
291
319
|
});
|
|
292
320
|
|
|
321
|
+
stopped = true;
|
|
293
322
|
abortController.abort(reason);
|
|
294
|
-
|
|
295
|
-
waterMarkLow?.resolve();
|
|
323
|
+
waterMarkLow?.reject();
|
|
296
324
|
|
|
297
325
|
logger?.({
|
|
298
326
|
source: "consumer",
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { MaybePromise, MaybePromiseLike } from "@yume-chan/async";
|
|
2
|
+
import { isPromiseLike } from "@yume-chan/async";
|
|
3
|
+
|
|
4
|
+
export class TaskQueue {
|
|
5
|
+
#ready: PromiseLike<unknown> | undefined;
|
|
6
|
+
#disposed = false;
|
|
7
|
+
|
|
8
|
+
enqueue<T extends MaybePromiseLike<unknown>>(
|
|
9
|
+
task: () => T,
|
|
10
|
+
bail?: boolean,
|
|
11
|
+
): T;
|
|
12
|
+
enqueue<T>(task: () => T, bail?: boolean): MaybePromise<T>;
|
|
13
|
+
enqueue<T>(
|
|
14
|
+
task: () => MaybePromiseLike<T>,
|
|
15
|
+
bail = false,
|
|
16
|
+
): MaybePromiseLike<T> {
|
|
17
|
+
if (this.#disposed) {
|
|
18
|
+
throw new Error("TaskQueue is disposed");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (!this.#ready) {
|
|
22
|
+
// Init state or all previous tasks are synchronous
|
|
23
|
+
try {
|
|
24
|
+
const result = task();
|
|
25
|
+
if (isPromiseLike(result)) {
|
|
26
|
+
this.#ready = result.then(
|
|
27
|
+
() => {},
|
|
28
|
+
(e) => {
|
|
29
|
+
if (bail) {
|
|
30
|
+
throw e;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
return result;
|
|
36
|
+
} catch (e) {
|
|
37
|
+
if (bail) {
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors
|
|
39
|
+
const promise = Promise.reject(e);
|
|
40
|
+
// Suppress unhandled-rejection without resolving `#ready`
|
|
41
|
+
void promise.catch(() => {});
|
|
42
|
+
this.#ready = promise;
|
|
43
|
+
}
|
|
44
|
+
throw e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const result = this.#ready.then(() => {
|
|
49
|
+
if (this.#disposed) {
|
|
50
|
+
throw new Error("TaskQueue is disposed");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return task();
|
|
54
|
+
});
|
|
55
|
+
this.#ready = result.then(
|
|
56
|
+
() => {},
|
|
57
|
+
(e) => {
|
|
58
|
+
if (bail || this.#disposed) {
|
|
59
|
+
throw e;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
);
|
|
63
|
+
return result;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
dispose() {
|
|
67
|
+
this.#disposed = true;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.error.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/async-operation-manager.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/delay.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/maybe-promise.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/promise-resolver.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/index.d.ts","../struct/esm/bipedal.d.ts","../struct/esm/readable.d.ts","../struct/esm/field/types.d.ts","../struct/esm/field/serialize.d.ts","../struct/esm/field/factory.d.ts","../struct/esm/field/index.d.ts","../struct/esm/buffer.d.ts","../struct/esm/types.d.ts","../struct/esm/struct.d.ts","../struct/esm/concat.d.ts","../struct/esm/extend.d.ts","../struct/esm/number.d.ts","../struct/esm/string.d.ts","../struct/esm/utils.d.ts","../struct/esm/index.d.ts","./src/types.ts","./src/stream.ts","./src/push-readable.ts","./src/try-close.ts","./src/buffered.ts","./src/buffered-transform.ts","./src/concat.ts","./src/consumable/readable.ts","./src/consumable/wrap-byte-readable.ts","./src/consumable/wrap-writable.ts","./src/consumable/writable.ts","./src/consumable/index.ts","./src/task.ts","./src/consumable.ts","./src/maybe-consumable/utils.ts","./src/maybe-consumable/wrap-writable.ts","./src/maybe-consumable/writable.ts","./src/maybe-consumable/index.ts","./src/maybe-consumable.ts","./src/distribution.ts","./src/wrap-readable.ts","./src/duplex.ts","./src/encoding.ts","./src/inspect.ts","./src/pipe-from.ts","./src/split-string.ts","./src/struct-deserialize.ts","./src/struct-serialize.ts","./src/wrap-writable.ts","./src/index.ts"],"fileIdsList":[[85,100,102,103,105],[85,100,102,103,104],[85,100,102],[85,112,113],[108,109,110,111],[102,114],[102,108,114],[102,114,119],[85,102,104,121],[102],[102,103,104,105,106,107,113,114,119,120,121,122,123,124,125,126,127,128,129],[114,118],[115,116,117],[114,119],[102,115,119],[102,114,115,119],[85,102],[101],[100,106],[100,102],[85,102,105],[85],[91],[94],[86,87,88,89],[88,89,90],[88],[85,87],[86,87,91,92,93,94,95,96,97,98,99],[91,92],[91,93],[85,87,91],[81,82,83,84]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"4942ce52738852aac9e3eb7b2743abd920ea3f62dfc930e8ab49db6672c5d292","impliedFormat":99},{"version":"f232c6de4d9dacf27320453a89e04c29b3bcc7a084ee6184de18a15e4a1a3a1d","impliedFormat":99},{"version":"0bbbbb1b5a4f7a77a28dbcd2fc59311affab8cfed9dba97b5d5cf20ae7fbc3f3","impliedFormat":99},{"version":"557a9670c1bb00cdd5eb309ed1e28665fdefe501a4b12eb124dc1bcaa1498328","impliedFormat":99},{"version":"91ef0ad14ba3385732eceb83552b2a01fb9f86e0fa532f11d038368ab2ee4bc9","impliedFormat":99},{"version":"19872606f722ee6d7e7ae009f5e1d5518695d592de0bc88fbecffb09a190f61c","impliedFormat":99},{"version":"87b3f584a85a5c19bbc331b864710b5a17385c555449f10f1172a2fcdd461e80","impliedFormat":99},{"version":"ccf18e79b8dfa269e2e673e910d2f61b00cadfe7debc128bb0208c4b43f76bae","impliedFormat":99},{"version":"f479141fdc9002c67ba83693f4d6b61daecb7af890d5f821dada93894b1c72bf","impliedFormat":99},{"version":"cc3fd3344888f2d160e3ef75189a200fd80e72f4ef4b61455a4474d79477bdeb","impliedFormat":99},{"version":"9ed39feaedfaa6d05973b74694ab07211fff43efb1ca554be3bda00ac86de46d","impliedFormat":99},{"version":"36e65139e176ee9404994d97c8432637f43acb2d21b595dda284c82fb822e518","impliedFormat":99},{"version":"f03d368eceab76c159f7d9649c64aabb9f9c02f46b8d2a2c60a9e9cf4e2053fb","impliedFormat":99},{"version":"ef7f072d2e15105633948858169948be27240829cba599c2fa3d33964093b30d","impliedFormat":99},{"version":"2b8f38a2e51f762168a4ab8a06c92a78240f65ddaed431005b1056df859f1457","impliedFormat":99},{"version":"a55b182059f77da2687ed0e8877fd4e24481e883fcaf311f48b8ad98673e3e74","impliedFormat":99},{"version":"e4a185f4c6aa238c812d3c2ba9746d4bf198a31e70e9fae83d107457f0ab10df","impliedFormat":99},{"version":"910abfd85acbc348dd025d4d661db4625d4458de02c7419d948af152c282e512","impliedFormat":99},{"version":"0e7c5f81cf7dc16c999d304b346382a6002366a59278023907ea8c5685800c03","impliedFormat":99},{"version":"ca896dd22a7f1395338a89d9af4199176e8de935628611e299b218183b0f3e8f","affectsGlobalScope":true,"impliedFormat":99},{"version":"bcae9ab195ad495a967255a9ad2bff052efdbe681d59562f6c7269dd08dbba92","signature":"c21c96ef9d44716c3e5b10b331841a8f93bfb1c50d6118d44370792824da6a9b","impliedFormat":99},{"version":"f28b3085ad982156759141cb4d8f02dd1d0043c467884d4e44e6a3dfec80edda","signature":"705e82082894a3dc7f6b92b023914e1bf0db10788ddbdf07806002c26a1db3a9","impliedFormat":99},{"version":"298421f907b7ac940493414a436900e1d87e37eadb09a21831686248763e6704","signature":"6fa6950e14d6ca719a29c3ad2fb79d2b03a175af9e3441b3e762cf3b22c92d2b","impliedFormat":99},{"version":"d9532df7ac61635ebfb475dbed6d996819013228f64c47085d4b23301a6b0514","signature":"a1a4a427a4fce993dbf7c0aa9af13359920d28ce12f83e9896ec416fbd10edb4","impliedFormat":99},{"version":"5ffaaaf3028e30d0f1ce269ffb122c369ebd274cdbd8b560d5db346760c6650e","signature":"93758b16a8798ec0957abf049ef5091497465d024e3b68a2be986ae984b8ebb0","impliedFormat":99},{"version":"064506e4d22a0ab7ffb50ab8e9027b28c3f93a96179d16e708b592db37a6a5cf","signature":"233b3ef5dfa40f3459846e94d43c000736582e2ca85d17c496a47e582f79d102","impliedFormat":99},{"version":"5045a4cdced54e841c5fcd4b13274c4da75481804b249ecb865686dd91ea185b","signature":"256ac5c01fbbd7f17ec5d916b2cf1c4639cef6d5ac2161c82849db6cdc8d0c42","impliedFormat":99},{"version":"8d9e523947018e7dd17a09d18542190904287de1fde525aeb1918529db383837","signature":"0c1970554298bff271f2e9a80e6eefd5f1edd4c359b4c78897729639805b98b1","impliedFormat":99},{"version":"5d4c8182d9310d844f540d9693b22623b99bfd157772d070bae342138ba932e5","signature":"a68d83b9edf5367294014b99d7809f785f1528b1123288694bd419df04c87169","impliedFormat":99},{"version":"8c0f1f9c1950522c16cd207e51f430104715fe7298b636972a442d7fed985c55","signature":"65a273d2534e0cceee0a3999e3a586fb0fa4c9ef306b44c131de0c2134444e07","impliedFormat":99},{"version":"2b079b2ebf759b00e686344c9dae141b991f63385cc5353dc801ae4425e2bea3","signature":"8aef166bd0bdf40c1930d01a7dc6e52a6b63203b070507d26780ee4a621de23e","impliedFormat":99},{"version":"fad61016cf71449ce00722a32125c5bbf41ecc1660f3dea1f88a5a0a862029ec","impliedFormat":99},{"version":"1f0de687e40ac9da56cdfeac5f5c28f539f36f19f417e3184d3dbc8cdda76d51","signature":"560a9f24b6bcfc74fc2a18f6e8355aff169d15541c6ebd0ff7e05bdaad2f8949","impliedFormat":99},{"version":"457ff70e16a2ae15dec53e36a3afd604941691214cd512407ed4b2ed61168117","signature":"0d3f54fc90e087a51221649bf849bd7b5a1612f036889050c7f8a1f059ee17f8","impliedFormat":99},{"version":"dcbd54625705adb90d2c80b716d331cfa8958a7246e148a56f829bcfdb1f0e96","signature":"07edb55d7f9f9fb492ccf92744f514255b534b1b994f485ff2c82f1414e88f04","impliedFormat":99},{"version":"dbdf20a5e3f85f0841ef6f036692fe9d510a379207787f33d9d38b8812e0a473","signature":"f41b13b58a957b03fd5d07bfe5d85f4cc9249a117a1b9589d9a2ac4238b39d05","impliedFormat":99},{"version":"d4ff4e7bcfdf7a67360db1a7d103580ac694e77443f5ad8348d8b149c74d8faa","signature":"b715965f4d903ab130a1886c06f506211c9cbaf87ad3257a71114798475445f0","impliedFormat":99},{"version":"02ba2ea3d47215b8b4374ec4abe73048ac11f4cc2a4e6861b00e166be688c5c5","impliedFormat":99},{"version":"35f642716f20e0d78e45517a2896435782a764856555c81467b14c8c74328b43","signature":"5d6a477460748b6b3434184178718e96bdea9cc32b73808ffc4384b1a0be485e","impliedFormat":99},{"version":"b5ddea39761da5a26a73a82512fd94919c20b3ac7192385cc664105e00ef832e","signature":"afe4250b9645928151991fd60790a92571d9251b60be91032152b472d6830ebf","impliedFormat":99},{"version":"916a86ae140de12bd6c379251c6667ff05bb9620222002d8532c49614f280e06","signature":"68cdca7414470b34b6dba8e14fdbf17393148f84944d31e2adf5ed933f3ec8fa","impliedFormat":99},{"version":"d56499934dfdd1b0b2f2f9db2c3fd90739ed1b155e2c85c73134a12757893295","signature":"0703fbf0cefe3eaa09abff465ad292b89464a2c80bb8d2bb2942fc3dc08e0285","impliedFormat":99},{"version":"b95fc19e71a02faff6ada7d1a0de0f1bbc2502a937a81f12103aeeca42aab463","signature":"d24fed323d65a8d753ff2d0ea105f5d0788a50b585c1a1334d9bd336b2f378c7","impliedFormat":99},{"version":"3813266b5349c6af32fe262a0ae33121d13ccf4534304e6a904259c3c36c41cf","signature":"4ebc57d20caf062019a2b8c9ce1e54602a411022eb4f7fa325888b9bcf63693a","impliedFormat":99},{"version":"9db12d660c56070d188fff66be5c85cefd86aade34ea4d02b33922b196ab02a1","signature":"52279f70738da349b60a09be1294e3295c7e37189c10deb083ed6b5eb1c86744","impliedFormat":99},{"version":"8d11fbfaf1c497da72ed54f256227f23eac856212709355382435d7e15777c25","signature":"98678d6ac29dfa3f80452de2a87f464dee4908476f817d6f5e0677802ad43f7b","impliedFormat":99},{"version":"334eb02b692e5d26697fa6a7cc6c9db5ac107f64789791d51e9521218a31ec2e","signature":"b81bc956c1dfc60bfb0513e73aaad2f0331adf19407fdce70379bc7dc02c4e15","impliedFormat":99},{"version":"24c25797e480e9d4f908daab258e2c5cdb82fdb189706a21ad9b97d76f101f68","signature":"b96ce25bbc9ee012b65c73821ae59f90a168d1aa62da606948de8bcc561b1fde","impliedFormat":99},{"version":"9b0707d44ff5c0d27e402c1b51c0b3be21b53a42ba3063c8a2f6436f044d5c8a","signature":"370c1b27c11d16c33a1fc96d8304fa7a2d4397cf849c6681e3c45b3818a933d7","impliedFormat":99},{"version":"b3f766182cb2158c59e513af05994dec67564359d841cdcc7dcbcb16aea3974e","impliedFormat":99}],"root":[[101,130]],"options":{"composite":true,"declaration":true,"declarationDir":"./esm","declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitOverride":true,"noImplicitReturns":true,"noImplicitThis":true,"noUncheckedIndexedAccess":true,"noUncheckedSideEffectImports":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./esm","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":99,"verbatimModuleSyntax":true},"referencedMap":[[106,1],[105,2],[107,3],[114,4],[112,5],[108,6],[109,7],[110,6],[111,6],[120,8],[122,9],[123,10],[130,11],[124,10],[119,12],[118,13],[115,14],[116,15],[117,16],[125,10],[103,17],[126,10],[102,18],[127,19],[128,20],[104,21],[121,17],[129,17],[86,22],[92,23],[95,24],[96,24],[90,25],[91,26],[89,27],[88,28],[100,29],[97,23],[87,22],[98,30],[94,31],[93,32],[85,33]],"latestChangedDtsFile":"./esm/index.d.ts","version":"5.9.2"}
|
|
1
|
+
{"fileNames":["../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.error.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.9.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/async-operation-manager.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/delay.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/maybe-promise.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/promise-resolver.d.ts","../../node_modules/.pnpm/@yume-chan+async@4.1.3/node_modules/@yume-chan/async/dts/index.d.ts","../struct/esm/bipedal.d.ts","../struct/esm/readable.d.ts","../struct/esm/field/types.d.ts","../struct/esm/field/serialize.d.ts","../struct/esm/field/factory.d.ts","../struct/esm/field/index.d.ts","../struct/esm/buffer.d.ts","../struct/esm/types.d.ts","../struct/esm/struct.d.ts","../struct/esm/concat.d.ts","../struct/esm/extend.d.ts","../struct/esm/number.d.ts","../struct/esm/string.d.ts","../struct/esm/utils.d.ts","../struct/esm/index.d.ts","./src/types.ts","./src/stream.ts","./src/task-queue.ts","./src/push-readable.ts","./src/try-close.ts","./src/buffered.ts","./src/buffered-transform.ts","./src/concat.ts","./src/consumable/readable.ts","./src/consumable/wrap-byte-readable.ts","./src/consumable/wrap-writable.ts","./src/consumable/writable.ts","./src/consumable/index.ts","./src/task.ts","./src/consumable.ts","./src/maybe-consumable/utils.ts","./src/maybe-consumable/wrap-writable.ts","./src/maybe-consumable/writable.ts","./src/maybe-consumable/index.ts","./src/maybe-consumable.ts","./src/distribution.ts","./src/wrap-readable.ts","./src/duplex.ts","./src/encoding.ts","./src/inspect.ts","./src/pipe-from.ts","./src/split-string.ts","./src/struct-deserialize.ts","./src/struct-serialize.ts","./src/wrap-writable.ts","./src/index.ts"],"fileIdsList":[[85,100,102,104,106],[85,100,102,104,105],[85,100,102],[85,113,114],[109,110,111,112],[102,115],[102,109,115],[102,115,120],[85,102,105,122],[102],[102,104,105,106,107,108,114,115,120,121,122,123,124,125,126,127,128,129,130],[115,119],[116,117,118],[115,120],[102,116,120],[102,115,116,120],[85,102,103],[101],[100,107],[100,102],[85],[85,102,106],[85,102],[91],[94],[86,87,88,89],[88,89,90],[88],[85,87],[86,87,91,92,93,94,95,96,97,98,99],[91,92],[91,93],[85,87,91],[81,82,83,84]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"4942ce52738852aac9e3eb7b2743abd920ea3f62dfc930e8ab49db6672c5d292","impliedFormat":99},{"version":"f232c6de4d9dacf27320453a89e04c29b3bcc7a084ee6184de18a15e4a1a3a1d","impliedFormat":99},{"version":"0bbbbb1b5a4f7a77a28dbcd2fc59311affab8cfed9dba97b5d5cf20ae7fbc3f3","impliedFormat":99},{"version":"557a9670c1bb00cdd5eb309ed1e28665fdefe501a4b12eb124dc1bcaa1498328","impliedFormat":99},{"version":"91ef0ad14ba3385732eceb83552b2a01fb9f86e0fa532f11d038368ab2ee4bc9","impliedFormat":99},{"version":"19872606f722ee6d7e7ae009f5e1d5518695d592de0bc88fbecffb09a190f61c","impliedFormat":99},{"version":"87b3f584a85a5c19bbc331b864710b5a17385c555449f10f1172a2fcdd461e80","impliedFormat":99},{"version":"ccf18e79b8dfa269e2e673e910d2f61b00cadfe7debc128bb0208c4b43f76bae","impliedFormat":99},{"version":"f479141fdc9002c67ba83693f4d6b61daecb7af890d5f821dada93894b1c72bf","impliedFormat":99},{"version":"cc3fd3344888f2d160e3ef75189a200fd80e72f4ef4b61455a4474d79477bdeb","impliedFormat":99},{"version":"9ed39feaedfaa6d05973b74694ab07211fff43efb1ca554be3bda00ac86de46d","impliedFormat":99},{"version":"36e65139e176ee9404994d97c8432637f43acb2d21b595dda284c82fb822e518","impliedFormat":99},{"version":"f03d368eceab76c159f7d9649c64aabb9f9c02f46b8d2a2c60a9e9cf4e2053fb","impliedFormat":99},{"version":"ef7f072d2e15105633948858169948be27240829cba599c2fa3d33964093b30d","impliedFormat":99},{"version":"2b8f38a2e51f762168a4ab8a06c92a78240f65ddaed431005b1056df859f1457","impliedFormat":99},{"version":"a55b182059f77da2687ed0e8877fd4e24481e883fcaf311f48b8ad98673e3e74","impliedFormat":99},{"version":"e4a185f4c6aa238c812d3c2ba9746d4bf198a31e70e9fae83d107457f0ab10df","impliedFormat":99},{"version":"910abfd85acbc348dd025d4d661db4625d4458de02c7419d948af152c282e512","impliedFormat":99},{"version":"0e7c5f81cf7dc16c999d304b346382a6002366a59278023907ea8c5685800c03","impliedFormat":99},{"version":"ca896dd22a7f1395338a89d9af4199176e8de935628611e299b218183b0f3e8f","affectsGlobalScope":true,"impliedFormat":99},{"version":"bcae9ab195ad495a967255a9ad2bff052efdbe681d59562f6c7269dd08dbba92","signature":"c21c96ef9d44716c3e5b10b331841a8f93bfb1c50d6118d44370792824da6a9b","impliedFormat":99},{"version":"f28b3085ad982156759141cb4d8f02dd1d0043c467884d4e44e6a3dfec80edda","signature":"705e82082894a3dc7f6b92b023914e1bf0db10788ddbdf07806002c26a1db3a9","impliedFormat":99},{"version":"db1ace3ad6a3f695a624c359a74b1579a2aee9e755100a6764c20487ce33037a","signature":"fe9badaad01995aee1a4a613dfa171c8f6a5f3118757daa38486c34ebfc3b668","impliedFormat":99},{"version":"adbf3ce18e804ad20e8aa527cbe39ba9f9a95f86753bb0391cc5fe92a6ac5457","signature":"a50197ada75e7eb9034207b714f6590fb50d5e63def54eae4328349442256c60","impliedFormat":99},{"version":"d9532df7ac61635ebfb475dbed6d996819013228f64c47085d4b23301a6b0514","signature":"a1a4a427a4fce993dbf7c0aa9af13359920d28ce12f83e9896ec416fbd10edb4","impliedFormat":99},{"version":"5ffaaaf3028e30d0f1ce269ffb122c369ebd274cdbd8b560d5db346760c6650e","signature":"93758b16a8798ec0957abf049ef5091497465d024e3b68a2be986ae984b8ebb0","impliedFormat":99},{"version":"064506e4d22a0ab7ffb50ab8e9027b28c3f93a96179d16e708b592db37a6a5cf","signature":"233b3ef5dfa40f3459846e94d43c000736582e2ca85d17c496a47e582f79d102","impliedFormat":99},{"version":"5045a4cdced54e841c5fcd4b13274c4da75481804b249ecb865686dd91ea185b","signature":"256ac5c01fbbd7f17ec5d916b2cf1c4639cef6d5ac2161c82849db6cdc8d0c42","impliedFormat":99},{"version":"8d9e523947018e7dd17a09d18542190904287de1fde525aeb1918529db383837","signature":"0c1970554298bff271f2e9a80e6eefd5f1edd4c359b4c78897729639805b98b1","impliedFormat":99},{"version":"5d4c8182d9310d844f540d9693b22623b99bfd157772d070bae342138ba932e5","signature":"a68d83b9edf5367294014b99d7809f785f1528b1123288694bd419df04c87169","impliedFormat":99},{"version":"8c0f1f9c1950522c16cd207e51f430104715fe7298b636972a442d7fed985c55","signature":"65a273d2534e0cceee0a3999e3a586fb0fa4c9ef306b44c131de0c2134444e07","impliedFormat":99},{"version":"2b079b2ebf759b00e686344c9dae141b991f63385cc5353dc801ae4425e2bea3","signature":"8aef166bd0bdf40c1930d01a7dc6e52a6b63203b070507d26780ee4a621de23e","impliedFormat":99},{"version":"fad61016cf71449ce00722a32125c5bbf41ecc1660f3dea1f88a5a0a862029ec","impliedFormat":99},{"version":"1f0de687e40ac9da56cdfeac5f5c28f539f36f19f417e3184d3dbc8cdda76d51","signature":"560a9f24b6bcfc74fc2a18f6e8355aff169d15541c6ebd0ff7e05bdaad2f8949","impliedFormat":99},{"version":"457ff70e16a2ae15dec53e36a3afd604941691214cd512407ed4b2ed61168117","signature":"0d3f54fc90e087a51221649bf849bd7b5a1612f036889050c7f8a1f059ee17f8","impliedFormat":99},{"version":"dcbd54625705adb90d2c80b716d331cfa8958a7246e148a56f829bcfdb1f0e96","signature":"07edb55d7f9f9fb492ccf92744f514255b534b1b994f485ff2c82f1414e88f04","impliedFormat":99},{"version":"dbdf20a5e3f85f0841ef6f036692fe9d510a379207787f33d9d38b8812e0a473","signature":"f41b13b58a957b03fd5d07bfe5d85f4cc9249a117a1b9589d9a2ac4238b39d05","impliedFormat":99},{"version":"d4ff4e7bcfdf7a67360db1a7d103580ac694e77443f5ad8348d8b149c74d8faa","signature":"b715965f4d903ab130a1886c06f506211c9cbaf87ad3257a71114798475445f0","impliedFormat":99},{"version":"02ba2ea3d47215b8b4374ec4abe73048ac11f4cc2a4e6861b00e166be688c5c5","impliedFormat":99},{"version":"35f642716f20e0d78e45517a2896435782a764856555c81467b14c8c74328b43","signature":"5d6a477460748b6b3434184178718e96bdea9cc32b73808ffc4384b1a0be485e","impliedFormat":99},{"version":"b5ddea39761da5a26a73a82512fd94919c20b3ac7192385cc664105e00ef832e","signature":"afe4250b9645928151991fd60790a92571d9251b60be91032152b472d6830ebf","impliedFormat":99},{"version":"916a86ae140de12bd6c379251c6667ff05bb9620222002d8532c49614f280e06","signature":"68cdca7414470b34b6dba8e14fdbf17393148f84944d31e2adf5ed933f3ec8fa","impliedFormat":99},{"version":"d56499934dfdd1b0b2f2f9db2c3fd90739ed1b155e2c85c73134a12757893295","signature":"0703fbf0cefe3eaa09abff465ad292b89464a2c80bb8d2bb2942fc3dc08e0285","impliedFormat":99},{"version":"b95fc19e71a02faff6ada7d1a0de0f1bbc2502a937a81f12103aeeca42aab463","signature":"d24fed323d65a8d753ff2d0ea105f5d0788a50b585c1a1334d9bd336b2f378c7","impliedFormat":99},{"version":"3813266b5349c6af32fe262a0ae33121d13ccf4534304e6a904259c3c36c41cf","signature":"4ebc57d20caf062019a2b8c9ce1e54602a411022eb4f7fa325888b9bcf63693a","impliedFormat":99},{"version":"9db12d660c56070d188fff66be5c85cefd86aade34ea4d02b33922b196ab02a1","signature":"52279f70738da349b60a09be1294e3295c7e37189c10deb083ed6b5eb1c86744","impliedFormat":99},{"version":"8d11fbfaf1c497da72ed54f256227f23eac856212709355382435d7e15777c25","signature":"98678d6ac29dfa3f80452de2a87f464dee4908476f817d6f5e0677802ad43f7b","impliedFormat":99},{"version":"334eb02b692e5d26697fa6a7cc6c9db5ac107f64789791d51e9521218a31ec2e","signature":"b81bc956c1dfc60bfb0513e73aaad2f0331adf19407fdce70379bc7dc02c4e15","impliedFormat":99},{"version":"24c25797e480e9d4f908daab258e2c5cdb82fdb189706a21ad9b97d76f101f68","signature":"b96ce25bbc9ee012b65c73821ae59f90a168d1aa62da606948de8bcc561b1fde","impliedFormat":99},{"version":"9b0707d44ff5c0d27e402c1b51c0b3be21b53a42ba3063c8a2f6436f044d5c8a","signature":"370c1b27c11d16c33a1fc96d8304fa7a2d4397cf849c6681e3c45b3818a933d7","impliedFormat":99},{"version":"b3f766182cb2158c59e513af05994dec67564359d841cdcc7dcbcb16aea3974e","impliedFormat":99}],"root":[[101,131]],"options":{"composite":true,"declaration":true,"declarationDir":"./esm","declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitOverride":true,"noImplicitReturns":true,"noImplicitThis":true,"noUncheckedIndexedAccess":true,"noUncheckedSideEffectImports":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./esm","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":99,"verbatimModuleSyntax":true},"referencedMap":[[107,1],[106,2],[108,3],[115,4],[113,5],[109,6],[110,7],[111,6],[112,6],[121,8],[123,9],[124,10],[131,11],[125,10],[120,12],[119,13],[116,14],[117,15],[118,16],[126,10],[104,17],[127,10],[102,18],[128,19],[129,20],[103,21],[105,22],[122,23],[130,23],[86,21],[92,24],[95,25],[96,25],[90,26],[91,27],[89,28],[88,29],[100,30],[97,24],[87,21],[98,31],[94,32],[93,33],[85,34]],"latestChangedDtsFile":"./esm/index.d.ts","version":"5.9.2"}
|