@lbdudc/linea-cli 0.0.0-stage → 0.1.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/README.md +268 -2
- package/dist/analysis/wheels/micropip-0.6.0-py3-none-any.whl +0 -0
- package/dist/analysis/wheels/packaging-23.2-py3-none-any.whl +0 -0
- package/dist/chunk-6y69424k.js +45138 -0
- package/dist/chunk-71argpnj.js +58 -0
- package/dist/chunk-byt4gzdm.js +9071 -0
- package/dist/chunk-e0n1mfcb.js +12 -0
- package/dist/chunk-fnmh0b0b.js +35 -0
- package/dist/chunk-mw3ngzn8.js +27 -0
- package/dist/chunk-pb6gdhgt.js +3210 -0
- package/dist/chunk-r3nqk2zv.js +50157 -0
- package/dist/chunk-tg9jv9kp.js +11 -0
- package/dist/chunk-x95qa7s6.js +35 -0
- package/dist/chunk-ymrp07ym.js +2452 -0
- package/dist/core/analysisWorker.js +45 -0
- package/dist/index.js +40 -0
- package/dist/line/templates/core/extra.js +54 -0
- package/dist/line/templates/core/transformation.js +208 -0
- package/dist/line/templates/pipeline/.gitlab-ci.yml +51 -0
- package/dist/line/templates/pipeline/ci/test-client.sh +16 -0
- package/dist/line/templates/pipeline/ci/test-server.sh +16 -0
- package/dist/line/templates/pipeline/github-ci.yml +50 -0
- package/dist/line/templates/pipeline/spl-gitlab-ci.yml +182 -0
- package/package.json +52 -4
- package/src/index.tsx +58 -0
|
@@ -0,0 +1,2452 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// ../../node_modules/@opentui/solid/index.bun.js
|
|
3
|
+
import { CliRenderer, createCliRenderer, engine as engine2 } from "@opentui/core";
|
|
4
|
+
import { createTestRenderer } from "@opentui/core/testing";
|
|
5
|
+
import {
|
|
6
|
+
ASCIIFontRenderable,
|
|
7
|
+
BoxRenderable,
|
|
8
|
+
CodeRenderable,
|
|
9
|
+
DiffRenderable,
|
|
10
|
+
InputRenderable,
|
|
11
|
+
LineNumberRenderable,
|
|
12
|
+
MarkdownRenderable,
|
|
13
|
+
ScrollBoxRenderable,
|
|
14
|
+
SelectRenderable,
|
|
15
|
+
TabSelectRenderable,
|
|
16
|
+
TextareaRenderable,
|
|
17
|
+
TextAttributes,
|
|
18
|
+
TextNodeRenderable,
|
|
19
|
+
TextRenderable
|
|
20
|
+
} from "@opentui/core";
|
|
21
|
+
import {
|
|
22
|
+
engine,
|
|
23
|
+
Timeline
|
|
24
|
+
} from "@opentui/core";
|
|
25
|
+
|
|
26
|
+
// ../../node_modules/solid-js/dist/server.js
|
|
27
|
+
var sharedConfig = {
|
|
28
|
+
context: undefined,
|
|
29
|
+
registry: undefined,
|
|
30
|
+
effects: undefined,
|
|
31
|
+
done: false,
|
|
32
|
+
getContextId() {
|
|
33
|
+
return getContextId(this.context.count);
|
|
34
|
+
},
|
|
35
|
+
getNextContextId() {
|
|
36
|
+
return getContextId(this.context.count++);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
function getContextId(count) {
|
|
40
|
+
const num = String(count), len = num.length - 1;
|
|
41
|
+
return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
|
|
42
|
+
}
|
|
43
|
+
function setHydrateContext(context) {
|
|
44
|
+
sharedConfig.context = context;
|
|
45
|
+
}
|
|
46
|
+
function nextHydrateContext() {
|
|
47
|
+
return {
|
|
48
|
+
...sharedConfig.context,
|
|
49
|
+
id: sharedConfig.getNextContextId(),
|
|
50
|
+
count: 0
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
var IS_DEV = false;
|
|
54
|
+
var equalFn = (a, b) => a === b;
|
|
55
|
+
var $PROXY = Symbol("solid-proxy");
|
|
56
|
+
var SUPPORTS_PROXY = typeof Proxy === "function";
|
|
57
|
+
var $TRACK = Symbol("solid-track");
|
|
58
|
+
var $DEVCOMP = Symbol("solid-dev-component");
|
|
59
|
+
var signalOptions = {
|
|
60
|
+
equals: equalFn
|
|
61
|
+
};
|
|
62
|
+
var ERROR = null;
|
|
63
|
+
var runEffects = runQueue;
|
|
64
|
+
var STALE = 1;
|
|
65
|
+
var PENDING = 2;
|
|
66
|
+
var UNOWNED = {
|
|
67
|
+
owned: null,
|
|
68
|
+
cleanups: null,
|
|
69
|
+
context: null,
|
|
70
|
+
owner: null
|
|
71
|
+
};
|
|
72
|
+
var Owner = null;
|
|
73
|
+
var Transition = null;
|
|
74
|
+
var Scheduler = null;
|
|
75
|
+
var ExternalSourceConfig = null;
|
|
76
|
+
var Listener = null;
|
|
77
|
+
var Updates = null;
|
|
78
|
+
var Effects = null;
|
|
79
|
+
var ExecCount = 0;
|
|
80
|
+
function createRoot(fn, detachedOwner) {
|
|
81
|
+
const listener = Listener, owner = Owner, unowned = fn.length === 0, current = detachedOwner === undefined ? owner : detachedOwner, root = unowned ? UNOWNED : {
|
|
82
|
+
owned: null,
|
|
83
|
+
cleanups: null,
|
|
84
|
+
context: current ? current.context : null,
|
|
85
|
+
owner: current
|
|
86
|
+
}, updateFn = unowned ? fn : () => fn(() => untrack(() => cleanNode(root)));
|
|
87
|
+
Owner = root;
|
|
88
|
+
Listener = null;
|
|
89
|
+
try {
|
|
90
|
+
return runUpdates(updateFn, true);
|
|
91
|
+
} finally {
|
|
92
|
+
Listener = listener;
|
|
93
|
+
Owner = owner;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function createSignal(value, options) {
|
|
97
|
+
options = options ? Object.assign({}, signalOptions, options) : signalOptions;
|
|
98
|
+
const s = {
|
|
99
|
+
value,
|
|
100
|
+
observers: null,
|
|
101
|
+
observerSlots: null,
|
|
102
|
+
comparator: options.equals || undefined
|
|
103
|
+
};
|
|
104
|
+
const setter = (value) => {
|
|
105
|
+
if (typeof value === "function") {
|
|
106
|
+
if (Transition && Transition.running && Transition.sources.has(s))
|
|
107
|
+
value = value(s.tValue);
|
|
108
|
+
else
|
|
109
|
+
value = value(s.value);
|
|
110
|
+
}
|
|
111
|
+
return writeSignal(s, value);
|
|
112
|
+
};
|
|
113
|
+
return [readSignal.bind(s), setter];
|
|
114
|
+
}
|
|
115
|
+
function createRenderEffect(fn, value, options) {
|
|
116
|
+
const c = createComputation(fn, value, false, STALE);
|
|
117
|
+
if (Scheduler && Transition && Transition.running)
|
|
118
|
+
Updates.push(c);
|
|
119
|
+
else
|
|
120
|
+
updateComputation(c);
|
|
121
|
+
}
|
|
122
|
+
function createEffect(fn, value, options) {
|
|
123
|
+
runEffects = runUserEffects;
|
|
124
|
+
const c = createComputation(fn, value, false, STALE), s = SuspenseContext && useContext(SuspenseContext);
|
|
125
|
+
if (s)
|
|
126
|
+
c.suspense = s;
|
|
127
|
+
if (!options || !options.render)
|
|
128
|
+
c.user = true;
|
|
129
|
+
Effects ? Effects.push(c) : updateComputation(c);
|
|
130
|
+
}
|
|
131
|
+
function createMemo(fn, value, options) {
|
|
132
|
+
options = options ? Object.assign({}, signalOptions, options) : signalOptions;
|
|
133
|
+
const c = createComputation(fn, value, true, 0);
|
|
134
|
+
c.observers = null;
|
|
135
|
+
c.observerSlots = null;
|
|
136
|
+
c.comparator = options.equals || undefined;
|
|
137
|
+
if (Scheduler && Transition && Transition.running) {
|
|
138
|
+
c.tState = STALE;
|
|
139
|
+
Updates.push(c);
|
|
140
|
+
} else
|
|
141
|
+
updateComputation(c);
|
|
142
|
+
return readSignal.bind(c);
|
|
143
|
+
}
|
|
144
|
+
function untrack(fn) {
|
|
145
|
+
if (!ExternalSourceConfig && Listener === null)
|
|
146
|
+
return fn();
|
|
147
|
+
const listener = Listener;
|
|
148
|
+
Listener = null;
|
|
149
|
+
try {
|
|
150
|
+
if (ExternalSourceConfig)
|
|
151
|
+
return ExternalSourceConfig.untrack(fn);
|
|
152
|
+
return fn();
|
|
153
|
+
} finally {
|
|
154
|
+
Listener = listener;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function on(deps, fn, options) {
|
|
158
|
+
const isArray = Array.isArray(deps);
|
|
159
|
+
let prevInput;
|
|
160
|
+
let defer = options && options.defer;
|
|
161
|
+
return (prevValue) => {
|
|
162
|
+
let input;
|
|
163
|
+
if (isArray) {
|
|
164
|
+
input = Array(deps.length);
|
|
165
|
+
for (let i = 0;i < deps.length; i++)
|
|
166
|
+
input[i] = deps[i]();
|
|
167
|
+
} else
|
|
168
|
+
input = deps();
|
|
169
|
+
if (defer) {
|
|
170
|
+
defer = false;
|
|
171
|
+
return prevValue;
|
|
172
|
+
}
|
|
173
|
+
const result = untrack(() => fn(input, prevInput, prevValue));
|
|
174
|
+
prevInput = input;
|
|
175
|
+
return result;
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function onMount(fn) {
|
|
179
|
+
createEffect(() => untrack(fn));
|
|
180
|
+
}
|
|
181
|
+
function onCleanup(fn) {
|
|
182
|
+
if (Owner === null)
|
|
183
|
+
;
|
|
184
|
+
else if (Owner.cleanups === null)
|
|
185
|
+
Owner.cleanups = [fn];
|
|
186
|
+
else
|
|
187
|
+
Owner.cleanups.push(fn);
|
|
188
|
+
return fn;
|
|
189
|
+
}
|
|
190
|
+
function startTransition(fn) {
|
|
191
|
+
if (Transition && Transition.running) {
|
|
192
|
+
fn();
|
|
193
|
+
return Transition.done;
|
|
194
|
+
}
|
|
195
|
+
const l = Listener;
|
|
196
|
+
const o = Owner;
|
|
197
|
+
return Promise.resolve().then(() => {
|
|
198
|
+
Listener = l;
|
|
199
|
+
Owner = o;
|
|
200
|
+
let t;
|
|
201
|
+
if (Scheduler || SuspenseContext) {
|
|
202
|
+
t = Transition || (Transition = {
|
|
203
|
+
sources: new Set,
|
|
204
|
+
effects: [],
|
|
205
|
+
promises: new Set,
|
|
206
|
+
disposed: new Set,
|
|
207
|
+
queue: new Set,
|
|
208
|
+
running: true
|
|
209
|
+
});
|
|
210
|
+
t.done || (t.done = new Promise((res) => t.resolve = res));
|
|
211
|
+
t.running = true;
|
|
212
|
+
}
|
|
213
|
+
runUpdates(fn, false);
|
|
214
|
+
Listener = Owner = null;
|
|
215
|
+
return t ? t.done : undefined;
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
var [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
|
|
219
|
+
function createContext(defaultValue, options) {
|
|
220
|
+
const id = Symbol("context");
|
|
221
|
+
return {
|
|
222
|
+
id,
|
|
223
|
+
Provider: createProvider(id),
|
|
224
|
+
defaultValue
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function useContext(context) {
|
|
228
|
+
let value;
|
|
229
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
|
|
230
|
+
}
|
|
231
|
+
function children(fn) {
|
|
232
|
+
const children = createMemo(fn);
|
|
233
|
+
const memo = createMemo(() => resolveChildren(children()));
|
|
234
|
+
memo.toArray = () => {
|
|
235
|
+
const c = memo();
|
|
236
|
+
return Array.isArray(c) ? c : c != null ? [c] : [];
|
|
237
|
+
};
|
|
238
|
+
return memo;
|
|
239
|
+
}
|
|
240
|
+
var SuspenseContext;
|
|
241
|
+
function readSignal() {
|
|
242
|
+
const runningTransition = Transition && Transition.running;
|
|
243
|
+
if (this.sources && (runningTransition ? this.tState : this.state)) {
|
|
244
|
+
if ((runningTransition ? this.tState : this.state) === STALE)
|
|
245
|
+
updateComputation(this);
|
|
246
|
+
else {
|
|
247
|
+
const updates = Updates;
|
|
248
|
+
Updates = null;
|
|
249
|
+
runUpdates(() => lookUpstream(this), false);
|
|
250
|
+
Updates = updates;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
if (Listener) {
|
|
254
|
+
const sSlot = this.observers ? this.observers.length : 0;
|
|
255
|
+
if (!Listener.sources) {
|
|
256
|
+
Listener.sources = [this];
|
|
257
|
+
Listener.sourceSlots = [sSlot];
|
|
258
|
+
} else {
|
|
259
|
+
Listener.sources.push(this);
|
|
260
|
+
Listener.sourceSlots.push(sSlot);
|
|
261
|
+
}
|
|
262
|
+
if (!this.observers) {
|
|
263
|
+
this.observers = [Listener];
|
|
264
|
+
this.observerSlots = [Listener.sources.length - 1];
|
|
265
|
+
} else {
|
|
266
|
+
this.observers.push(Listener);
|
|
267
|
+
this.observerSlots.push(Listener.sources.length - 1);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
if (runningTransition && Transition.sources.has(this))
|
|
271
|
+
return this.tValue;
|
|
272
|
+
return this.value;
|
|
273
|
+
}
|
|
274
|
+
function writeSignal(node, value, isComp) {
|
|
275
|
+
let current = Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
|
|
276
|
+
if (!node.comparator || !node.comparator(current, value)) {
|
|
277
|
+
if (Transition) {
|
|
278
|
+
const TransitionRunning = Transition.running;
|
|
279
|
+
if (TransitionRunning || !isComp && Transition.sources.has(node)) {
|
|
280
|
+
Transition.sources.add(node);
|
|
281
|
+
node.tValue = value;
|
|
282
|
+
}
|
|
283
|
+
if (!TransitionRunning)
|
|
284
|
+
node.value = value;
|
|
285
|
+
} else
|
|
286
|
+
node.value = value;
|
|
287
|
+
if (node.observers && node.observers.length) {
|
|
288
|
+
runUpdates(() => {
|
|
289
|
+
for (let i = 0;i < node.observers.length; i += 1) {
|
|
290
|
+
const o = node.observers[i];
|
|
291
|
+
const TransitionRunning = Transition && Transition.running;
|
|
292
|
+
if (TransitionRunning && Transition.disposed.has(o))
|
|
293
|
+
continue;
|
|
294
|
+
if (TransitionRunning ? !o.tState : !o.state) {
|
|
295
|
+
if (o.pure)
|
|
296
|
+
Updates.push(o);
|
|
297
|
+
else
|
|
298
|
+
Effects.push(o);
|
|
299
|
+
if (o.observers)
|
|
300
|
+
markDownstream(o);
|
|
301
|
+
}
|
|
302
|
+
if (!TransitionRunning)
|
|
303
|
+
o.state = STALE;
|
|
304
|
+
else
|
|
305
|
+
o.tState = STALE;
|
|
306
|
+
}
|
|
307
|
+
if (Updates.length > 1e6) {
|
|
308
|
+
Updates = [];
|
|
309
|
+
if (IS_DEV)
|
|
310
|
+
;
|
|
311
|
+
throw new Error;
|
|
312
|
+
}
|
|
313
|
+
}, false);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return value;
|
|
317
|
+
}
|
|
318
|
+
function updateComputation(node) {
|
|
319
|
+
if (!node.fn)
|
|
320
|
+
return;
|
|
321
|
+
cleanNode(node);
|
|
322
|
+
const time = ExecCount;
|
|
323
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
324
|
+
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
325
|
+
queueMicrotask(() => {
|
|
326
|
+
runUpdates(() => {
|
|
327
|
+
Transition && (Transition.running = true);
|
|
328
|
+
Listener = Owner = node;
|
|
329
|
+
runComputation(node, node.tValue, time);
|
|
330
|
+
Listener = Owner = null;
|
|
331
|
+
}, false);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
function runComputation(node, value, time) {
|
|
336
|
+
let nextValue;
|
|
337
|
+
const owner = Owner, listener = Listener;
|
|
338
|
+
Listener = Owner = node;
|
|
339
|
+
try {
|
|
340
|
+
nextValue = node.fn(value);
|
|
341
|
+
} catch (err) {
|
|
342
|
+
if (node.pure) {
|
|
343
|
+
if (Transition && Transition.running) {
|
|
344
|
+
node.tState = STALE;
|
|
345
|
+
node.tOwned && node.tOwned.forEach(cleanNode);
|
|
346
|
+
node.tOwned = undefined;
|
|
347
|
+
} else {
|
|
348
|
+
node.state = STALE;
|
|
349
|
+
node.owned && node.owned.forEach(cleanNode);
|
|
350
|
+
node.owned = null;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
node.updatedAt = time + 1;
|
|
354
|
+
return handleError(err);
|
|
355
|
+
} finally {
|
|
356
|
+
Listener = listener;
|
|
357
|
+
Owner = owner;
|
|
358
|
+
}
|
|
359
|
+
if (!node.updatedAt || node.updatedAt <= time) {
|
|
360
|
+
if (node.updatedAt != null && "observers" in node) {
|
|
361
|
+
writeSignal(node, nextValue, true);
|
|
362
|
+
} else if (Transition && Transition.running && node.pure) {
|
|
363
|
+
if (!Transition.sources.has(node))
|
|
364
|
+
node.value = nextValue;
|
|
365
|
+
Transition.sources.add(node);
|
|
366
|
+
node.tValue = nextValue;
|
|
367
|
+
} else
|
|
368
|
+
node.value = nextValue;
|
|
369
|
+
node.updatedAt = time;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
function createComputation(fn, init, pure, state = STALE, options) {
|
|
373
|
+
const c = {
|
|
374
|
+
fn,
|
|
375
|
+
state,
|
|
376
|
+
updatedAt: null,
|
|
377
|
+
owned: null,
|
|
378
|
+
sources: null,
|
|
379
|
+
sourceSlots: null,
|
|
380
|
+
cleanups: null,
|
|
381
|
+
value: init,
|
|
382
|
+
owner: Owner,
|
|
383
|
+
context: Owner ? Owner.context : null,
|
|
384
|
+
pure
|
|
385
|
+
};
|
|
386
|
+
if (Transition && Transition.running) {
|
|
387
|
+
c.state = 0;
|
|
388
|
+
c.tState = state;
|
|
389
|
+
}
|
|
390
|
+
if (Owner === null)
|
|
391
|
+
;
|
|
392
|
+
else if (Owner !== UNOWNED) {
|
|
393
|
+
if (Transition && Transition.running && Owner.pure) {
|
|
394
|
+
if (!Owner.tOwned)
|
|
395
|
+
Owner.tOwned = [c];
|
|
396
|
+
else
|
|
397
|
+
Owner.tOwned.push(c);
|
|
398
|
+
} else {
|
|
399
|
+
if (!Owner.owned)
|
|
400
|
+
Owner.owned = [c];
|
|
401
|
+
else
|
|
402
|
+
Owner.owned.push(c);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
if (ExternalSourceConfig && c.fn) {
|
|
406
|
+
const sourceFn = c.fn;
|
|
407
|
+
const [track, trigger] = createSignal(undefined, {
|
|
408
|
+
equals: false
|
|
409
|
+
});
|
|
410
|
+
const ordinary = ExternalSourceConfig.factory(sourceFn, trigger);
|
|
411
|
+
onCleanup(() => ordinary.dispose());
|
|
412
|
+
let inTransition;
|
|
413
|
+
const triggerInTransition = () => startTransition(trigger).then(() => {
|
|
414
|
+
if (inTransition) {
|
|
415
|
+
inTransition.dispose();
|
|
416
|
+
inTransition = undefined;
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
c.fn = (x) => {
|
|
420
|
+
track();
|
|
421
|
+
if (Transition && Transition.running) {
|
|
422
|
+
if (!inTransition)
|
|
423
|
+
inTransition = ExternalSourceConfig.factory(sourceFn, triggerInTransition);
|
|
424
|
+
return inTransition.track(x);
|
|
425
|
+
}
|
|
426
|
+
return ordinary.track(x);
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
return c;
|
|
430
|
+
}
|
|
431
|
+
function runTop(node) {
|
|
432
|
+
const runningTransition = Transition && Transition.running;
|
|
433
|
+
if ((runningTransition ? node.tState : node.state) === 0)
|
|
434
|
+
return;
|
|
435
|
+
if ((runningTransition ? node.tState : node.state) === PENDING)
|
|
436
|
+
return lookUpstream(node);
|
|
437
|
+
if (node.suspense && untrack(node.suspense.inFallback))
|
|
438
|
+
return node.suspense.effects.push(node);
|
|
439
|
+
const ancestors = [node];
|
|
440
|
+
while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
|
|
441
|
+
if (runningTransition && Transition.disposed.has(node))
|
|
442
|
+
return;
|
|
443
|
+
if (runningTransition ? node.tState : node.state)
|
|
444
|
+
ancestors.push(node);
|
|
445
|
+
}
|
|
446
|
+
for (let i = ancestors.length - 1;i >= 0; i--) {
|
|
447
|
+
node = ancestors[i];
|
|
448
|
+
if (runningTransition) {
|
|
449
|
+
let top = node, prev = ancestors[i + 1];
|
|
450
|
+
while ((top = top.owner) && top !== prev) {
|
|
451
|
+
if (Transition.disposed.has(top))
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
if ((runningTransition ? node.tState : node.state) === STALE) {
|
|
456
|
+
updateComputation(node);
|
|
457
|
+
} else if ((runningTransition ? node.tState : node.state) === PENDING) {
|
|
458
|
+
const updates = Updates;
|
|
459
|
+
Updates = null;
|
|
460
|
+
runUpdates(() => lookUpstream(node, ancestors[0]), false);
|
|
461
|
+
Updates = updates;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function runUpdates(fn, init) {
|
|
466
|
+
if (Updates)
|
|
467
|
+
return fn();
|
|
468
|
+
let wait = false;
|
|
469
|
+
if (!init)
|
|
470
|
+
Updates = [];
|
|
471
|
+
if (Effects)
|
|
472
|
+
wait = true;
|
|
473
|
+
else
|
|
474
|
+
Effects = [];
|
|
475
|
+
ExecCount++;
|
|
476
|
+
try {
|
|
477
|
+
const res = fn();
|
|
478
|
+
completeUpdates(wait);
|
|
479
|
+
return res;
|
|
480
|
+
} catch (err) {
|
|
481
|
+
if (!wait)
|
|
482
|
+
Effects = null;
|
|
483
|
+
Updates = null;
|
|
484
|
+
handleError(err);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
function completeUpdates(wait) {
|
|
488
|
+
if (Updates) {
|
|
489
|
+
if (Scheduler && Transition && Transition.running)
|
|
490
|
+
scheduleQueue(Updates);
|
|
491
|
+
else
|
|
492
|
+
runQueue(Updates);
|
|
493
|
+
Updates = null;
|
|
494
|
+
}
|
|
495
|
+
if (wait)
|
|
496
|
+
return;
|
|
497
|
+
let res;
|
|
498
|
+
if (Transition) {
|
|
499
|
+
if (!Transition.promises.size && !Transition.queue.size) {
|
|
500
|
+
const sources = Transition.sources;
|
|
501
|
+
const disposed = Transition.disposed;
|
|
502
|
+
Effects.push.apply(Effects, Transition.effects);
|
|
503
|
+
res = Transition.resolve;
|
|
504
|
+
for (const e of Effects) {
|
|
505
|
+
"tState" in e && (e.state = e.tState);
|
|
506
|
+
delete e.tState;
|
|
507
|
+
}
|
|
508
|
+
Transition = null;
|
|
509
|
+
runUpdates(() => {
|
|
510
|
+
for (const d of disposed)
|
|
511
|
+
cleanNode(d);
|
|
512
|
+
for (const v of sources) {
|
|
513
|
+
v.value = v.tValue;
|
|
514
|
+
if (v.owned) {
|
|
515
|
+
for (let i = 0, len = v.owned.length;i < len; i++)
|
|
516
|
+
cleanNode(v.owned[i]);
|
|
517
|
+
}
|
|
518
|
+
if (v.tOwned)
|
|
519
|
+
v.owned = v.tOwned;
|
|
520
|
+
delete v.tValue;
|
|
521
|
+
delete v.tOwned;
|
|
522
|
+
v.tState = 0;
|
|
523
|
+
}
|
|
524
|
+
setTransPending(false);
|
|
525
|
+
}, false);
|
|
526
|
+
} else if (Transition.running) {
|
|
527
|
+
Transition.running = false;
|
|
528
|
+
Transition.effects.push.apply(Transition.effects, Effects);
|
|
529
|
+
Effects = null;
|
|
530
|
+
setTransPending(true);
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
const e = Effects;
|
|
535
|
+
Effects = null;
|
|
536
|
+
if (e.length)
|
|
537
|
+
runUpdates(() => runEffects(e), false);
|
|
538
|
+
if (res)
|
|
539
|
+
res();
|
|
540
|
+
}
|
|
541
|
+
function runQueue(queue) {
|
|
542
|
+
for (let i = 0;i < queue.length; i++)
|
|
543
|
+
runTop(queue[i]);
|
|
544
|
+
}
|
|
545
|
+
function scheduleQueue(queue) {
|
|
546
|
+
for (let i = 0;i < queue.length; i++) {
|
|
547
|
+
const item = queue[i];
|
|
548
|
+
const tasks = Transition.queue;
|
|
549
|
+
if (!tasks.has(item)) {
|
|
550
|
+
tasks.add(item);
|
|
551
|
+
Scheduler(() => {
|
|
552
|
+
tasks.delete(item);
|
|
553
|
+
runUpdates(() => {
|
|
554
|
+
Transition.running = true;
|
|
555
|
+
runTop(item);
|
|
556
|
+
}, false);
|
|
557
|
+
Transition && (Transition.running = false);
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
function runUserEffects(queue) {
|
|
563
|
+
let i, userLength = 0;
|
|
564
|
+
for (i = 0;i < queue.length; i++) {
|
|
565
|
+
const e = queue[i];
|
|
566
|
+
if (!e.user)
|
|
567
|
+
runTop(e);
|
|
568
|
+
else
|
|
569
|
+
queue[userLength++] = e;
|
|
570
|
+
}
|
|
571
|
+
if (sharedConfig.context) {
|
|
572
|
+
if (sharedConfig.count) {
|
|
573
|
+
sharedConfig.effects || (sharedConfig.effects = []);
|
|
574
|
+
sharedConfig.effects.push(...queue.slice(0, userLength));
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
setHydrateContext();
|
|
578
|
+
}
|
|
579
|
+
if (sharedConfig.effects && (sharedConfig.done || !sharedConfig.count)) {
|
|
580
|
+
queue = [...sharedConfig.effects, ...queue];
|
|
581
|
+
userLength += sharedConfig.effects.length;
|
|
582
|
+
delete sharedConfig.effects;
|
|
583
|
+
}
|
|
584
|
+
for (i = 0;i < userLength; i++)
|
|
585
|
+
runTop(queue[i]);
|
|
586
|
+
}
|
|
587
|
+
function lookUpstream(node, ignore) {
|
|
588
|
+
const runningTransition = Transition && Transition.running;
|
|
589
|
+
if (runningTransition)
|
|
590
|
+
node.tState = 0;
|
|
591
|
+
else
|
|
592
|
+
node.state = 0;
|
|
593
|
+
for (let i = 0;i < node.sources.length; i += 1) {
|
|
594
|
+
const source = node.sources[i];
|
|
595
|
+
if (source.sources) {
|
|
596
|
+
const state = runningTransition ? source.tState : source.state;
|
|
597
|
+
if (state === STALE) {
|
|
598
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
599
|
+
runTop(source);
|
|
600
|
+
} else if (state === PENDING)
|
|
601
|
+
lookUpstream(source, ignore);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
function markDownstream(node) {
|
|
606
|
+
const runningTransition = Transition && Transition.running;
|
|
607
|
+
for (let i = 0;i < node.observers.length; i += 1) {
|
|
608
|
+
const o = node.observers[i];
|
|
609
|
+
if (runningTransition ? !o.tState : !o.state) {
|
|
610
|
+
if (runningTransition)
|
|
611
|
+
o.tState = PENDING;
|
|
612
|
+
else
|
|
613
|
+
o.state = PENDING;
|
|
614
|
+
if (o.pure)
|
|
615
|
+
Updates.push(o);
|
|
616
|
+
else
|
|
617
|
+
Effects.push(o);
|
|
618
|
+
o.observers && markDownstream(o);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
function cleanNode(node) {
|
|
623
|
+
let i;
|
|
624
|
+
if (node.sources) {
|
|
625
|
+
while (node.sources.length) {
|
|
626
|
+
const source = node.sources.pop(), index = node.sourceSlots.pop(), obs = source.observers;
|
|
627
|
+
if (obs && obs.length) {
|
|
628
|
+
const n = obs.pop(), s = source.observerSlots.pop();
|
|
629
|
+
if (index < obs.length) {
|
|
630
|
+
n.sourceSlots[s] = index;
|
|
631
|
+
obs[index] = n;
|
|
632
|
+
source.observerSlots[index] = s;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
if (node.tOwned) {
|
|
638
|
+
for (i = node.tOwned.length - 1;i >= 0; i--)
|
|
639
|
+
cleanNode(node.tOwned[i]);
|
|
640
|
+
delete node.tOwned;
|
|
641
|
+
}
|
|
642
|
+
if (Transition && Transition.running && node.pure) {
|
|
643
|
+
reset(node, true);
|
|
644
|
+
} else if (node.owned) {
|
|
645
|
+
for (i = node.owned.length - 1;i >= 0; i--)
|
|
646
|
+
cleanNode(node.owned[i]);
|
|
647
|
+
node.owned = null;
|
|
648
|
+
}
|
|
649
|
+
if (node.cleanups) {
|
|
650
|
+
for (i = node.cleanups.length - 1;i >= 0; i--)
|
|
651
|
+
node.cleanups[i]();
|
|
652
|
+
node.cleanups = null;
|
|
653
|
+
}
|
|
654
|
+
if (Transition && Transition.running)
|
|
655
|
+
node.tState = 0;
|
|
656
|
+
else
|
|
657
|
+
node.state = 0;
|
|
658
|
+
}
|
|
659
|
+
function reset(node, top) {
|
|
660
|
+
if (!top) {
|
|
661
|
+
node.tState = 0;
|
|
662
|
+
Transition.disposed.add(node);
|
|
663
|
+
}
|
|
664
|
+
if (node.owned) {
|
|
665
|
+
for (let i = 0;i < node.owned.length; i++)
|
|
666
|
+
reset(node.owned[i]);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
function castError(err) {
|
|
670
|
+
if (err instanceof Error)
|
|
671
|
+
return err;
|
|
672
|
+
return new Error(typeof err === "string" ? err : "Unknown error", {
|
|
673
|
+
cause: err
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
function runErrors(err, fns, owner) {
|
|
677
|
+
try {
|
|
678
|
+
for (const f of fns)
|
|
679
|
+
f(err);
|
|
680
|
+
} catch (e) {
|
|
681
|
+
handleError(e, owner && owner.owner || null);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
function handleError(err, owner = Owner) {
|
|
685
|
+
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
686
|
+
const error = castError(err);
|
|
687
|
+
if (!fns)
|
|
688
|
+
throw error;
|
|
689
|
+
if (Effects)
|
|
690
|
+
Effects.push({
|
|
691
|
+
fn() {
|
|
692
|
+
runErrors(error, fns, owner);
|
|
693
|
+
},
|
|
694
|
+
state: STALE
|
|
695
|
+
});
|
|
696
|
+
else
|
|
697
|
+
runErrors(error, fns, owner);
|
|
698
|
+
}
|
|
699
|
+
function resolveChildren(children) {
|
|
700
|
+
if (typeof children === "function" && !children.length)
|
|
701
|
+
return resolveChildren(children());
|
|
702
|
+
if (Array.isArray(children)) {
|
|
703
|
+
const results = [];
|
|
704
|
+
for (let i = 0;i < children.length; i++) {
|
|
705
|
+
const result = resolveChildren(children[i]);
|
|
706
|
+
Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
|
|
707
|
+
}
|
|
708
|
+
return results;
|
|
709
|
+
}
|
|
710
|
+
return children;
|
|
711
|
+
}
|
|
712
|
+
function createProvider(id, options) {
|
|
713
|
+
return function provider(props) {
|
|
714
|
+
let res;
|
|
715
|
+
createRenderEffect(() => res = untrack(() => {
|
|
716
|
+
Owner.context = {
|
|
717
|
+
...Owner.context,
|
|
718
|
+
[id]: props.value
|
|
719
|
+
};
|
|
720
|
+
return children(() => props.children);
|
|
721
|
+
}), undefined);
|
|
722
|
+
return res;
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
var FALLBACK = Symbol("fallback");
|
|
726
|
+
function dispose(d) {
|
|
727
|
+
for (let i = 0;i < d.length; i++)
|
|
728
|
+
d[i]();
|
|
729
|
+
}
|
|
730
|
+
function mapArray(list, mapFn, options = {}) {
|
|
731
|
+
let items = [], mapped = [], disposers = [], len = 0, indexes = mapFn.length > 1 ? [] : null;
|
|
732
|
+
onCleanup(() => dispose(disposers));
|
|
733
|
+
return () => {
|
|
734
|
+
let newItems = list() || [], newLen = newItems.length, i, j;
|
|
735
|
+
newItems[$TRACK];
|
|
736
|
+
return untrack(() => {
|
|
737
|
+
let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
|
|
738
|
+
if (newLen === 0) {
|
|
739
|
+
if (len !== 0) {
|
|
740
|
+
dispose(disposers);
|
|
741
|
+
disposers = [];
|
|
742
|
+
items = [];
|
|
743
|
+
mapped = [];
|
|
744
|
+
len = 0;
|
|
745
|
+
indexes && (indexes = []);
|
|
746
|
+
}
|
|
747
|
+
if (options.fallback) {
|
|
748
|
+
items = [FALLBACK];
|
|
749
|
+
mapped[0] = createRoot((disposer) => {
|
|
750
|
+
disposers[0] = disposer;
|
|
751
|
+
return options.fallback();
|
|
752
|
+
});
|
|
753
|
+
len = 1;
|
|
754
|
+
}
|
|
755
|
+
} else if (len === 0) {
|
|
756
|
+
mapped = new Array(newLen);
|
|
757
|
+
for (j = 0;j < newLen; j++) {
|
|
758
|
+
items[j] = newItems[j];
|
|
759
|
+
mapped[j] = createRoot(mapper);
|
|
760
|
+
}
|
|
761
|
+
len = newLen;
|
|
762
|
+
} else {
|
|
763
|
+
temp = new Array(newLen);
|
|
764
|
+
tempdisposers = new Array(newLen);
|
|
765
|
+
indexes && (tempIndexes = new Array(newLen));
|
|
766
|
+
for (start = 0, end = Math.min(len, newLen);start < end && items[start] === newItems[start]; start++)
|
|
767
|
+
;
|
|
768
|
+
for (end = len - 1, newEnd = newLen - 1;end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
|
|
769
|
+
temp[newEnd] = mapped[end];
|
|
770
|
+
tempdisposers[newEnd] = disposers[end];
|
|
771
|
+
indexes && (tempIndexes[newEnd] = indexes[end]);
|
|
772
|
+
}
|
|
773
|
+
newIndices = new Map;
|
|
774
|
+
newIndicesNext = new Array(newEnd + 1);
|
|
775
|
+
for (j = newEnd;j >= start; j--) {
|
|
776
|
+
item = newItems[j];
|
|
777
|
+
i = newIndices.get(item);
|
|
778
|
+
newIndicesNext[j] = i === undefined ? -1 : i;
|
|
779
|
+
newIndices.set(item, j);
|
|
780
|
+
}
|
|
781
|
+
for (i = start;i <= end; i++) {
|
|
782
|
+
item = items[i];
|
|
783
|
+
j = newIndices.get(item);
|
|
784
|
+
if (j !== undefined && j !== -1) {
|
|
785
|
+
temp[j] = mapped[i];
|
|
786
|
+
tempdisposers[j] = disposers[i];
|
|
787
|
+
indexes && (tempIndexes[j] = indexes[i]);
|
|
788
|
+
j = newIndicesNext[j];
|
|
789
|
+
newIndices.set(item, j);
|
|
790
|
+
} else
|
|
791
|
+
disposers[i]();
|
|
792
|
+
}
|
|
793
|
+
for (j = start;j < newLen; j++) {
|
|
794
|
+
if (j in temp) {
|
|
795
|
+
mapped[j] = temp[j];
|
|
796
|
+
disposers[j] = tempdisposers[j];
|
|
797
|
+
if (indexes) {
|
|
798
|
+
indexes[j] = tempIndexes[j];
|
|
799
|
+
indexes[j](j);
|
|
800
|
+
}
|
|
801
|
+
} else
|
|
802
|
+
mapped[j] = createRoot(mapper);
|
|
803
|
+
}
|
|
804
|
+
mapped = mapped.slice(0, len = newLen);
|
|
805
|
+
items = newItems.slice(0);
|
|
806
|
+
}
|
|
807
|
+
return mapped;
|
|
808
|
+
});
|
|
809
|
+
function mapper(disposer) {
|
|
810
|
+
disposers[j] = disposer;
|
|
811
|
+
if (indexes) {
|
|
812
|
+
const [s, set] = createSignal(j);
|
|
813
|
+
indexes[j] = set;
|
|
814
|
+
return mapFn(newItems[j], s);
|
|
815
|
+
}
|
|
816
|
+
return mapFn(newItems[j]);
|
|
817
|
+
}
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
var hydrationEnabled = false;
|
|
821
|
+
function createComponent(Comp, props) {
|
|
822
|
+
if (hydrationEnabled) {
|
|
823
|
+
if (sharedConfig.context) {
|
|
824
|
+
const c = sharedConfig.context;
|
|
825
|
+
setHydrateContext(nextHydrateContext());
|
|
826
|
+
const r = untrack(() => Comp(props || {}));
|
|
827
|
+
setHydrateContext(c);
|
|
828
|
+
return r;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
return untrack(() => Comp(props || {}));
|
|
832
|
+
}
|
|
833
|
+
function trueFn() {
|
|
834
|
+
return true;
|
|
835
|
+
}
|
|
836
|
+
var propTraps = {
|
|
837
|
+
get(_, property, receiver) {
|
|
838
|
+
if (property === $PROXY)
|
|
839
|
+
return receiver;
|
|
840
|
+
return _.get(property);
|
|
841
|
+
},
|
|
842
|
+
has(_, property) {
|
|
843
|
+
if (property === $PROXY)
|
|
844
|
+
return true;
|
|
845
|
+
return _.has(property);
|
|
846
|
+
},
|
|
847
|
+
set: trueFn,
|
|
848
|
+
deleteProperty: trueFn,
|
|
849
|
+
getOwnPropertyDescriptor(_, property) {
|
|
850
|
+
return {
|
|
851
|
+
configurable: true,
|
|
852
|
+
enumerable: true,
|
|
853
|
+
get() {
|
|
854
|
+
return _.get(property);
|
|
855
|
+
},
|
|
856
|
+
set: trueFn,
|
|
857
|
+
deleteProperty: trueFn
|
|
858
|
+
};
|
|
859
|
+
},
|
|
860
|
+
ownKeys(_) {
|
|
861
|
+
return _.keys();
|
|
862
|
+
}
|
|
863
|
+
};
|
|
864
|
+
function resolveSource(s) {
|
|
865
|
+
return !(s = typeof s === "function" ? s() : s) ? {} : s;
|
|
866
|
+
}
|
|
867
|
+
function resolveSources() {
|
|
868
|
+
for (let i = 0, length = this.length;i < length; ++i) {
|
|
869
|
+
const v = this[i]();
|
|
870
|
+
if (v !== undefined)
|
|
871
|
+
return v;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
function mergeProps(...sources) {
|
|
875
|
+
let proxy = false;
|
|
876
|
+
for (let i = 0;i < sources.length; i++) {
|
|
877
|
+
const s = sources[i];
|
|
878
|
+
proxy = proxy || !!s && $PROXY in s;
|
|
879
|
+
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
880
|
+
}
|
|
881
|
+
if (SUPPORTS_PROXY && proxy) {
|
|
882
|
+
return new Proxy({
|
|
883
|
+
get(property) {
|
|
884
|
+
for (let i = sources.length - 1;i >= 0; i--) {
|
|
885
|
+
const v = resolveSource(sources[i])[property];
|
|
886
|
+
if (v !== undefined)
|
|
887
|
+
return v;
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
has(property) {
|
|
891
|
+
for (let i = sources.length - 1;i >= 0; i--) {
|
|
892
|
+
if (property in resolveSource(sources[i]))
|
|
893
|
+
return true;
|
|
894
|
+
}
|
|
895
|
+
return false;
|
|
896
|
+
},
|
|
897
|
+
keys() {
|
|
898
|
+
const keys = [];
|
|
899
|
+
for (let i = 0;i < sources.length; i++)
|
|
900
|
+
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
901
|
+
return [...new Set(keys)];
|
|
902
|
+
}
|
|
903
|
+
}, propTraps);
|
|
904
|
+
}
|
|
905
|
+
const sourcesMap = {};
|
|
906
|
+
const defined = Object.create(null);
|
|
907
|
+
for (let i = sources.length - 1;i >= 0; i--) {
|
|
908
|
+
const source = sources[i];
|
|
909
|
+
if (!source)
|
|
910
|
+
continue;
|
|
911
|
+
const sourceKeys = Object.getOwnPropertyNames(source);
|
|
912
|
+
for (let i = sourceKeys.length - 1;i >= 0; i--) {
|
|
913
|
+
const key = sourceKeys[i];
|
|
914
|
+
if (key === "__proto__" || key === "constructor")
|
|
915
|
+
continue;
|
|
916
|
+
const desc = Object.getOwnPropertyDescriptor(source, key);
|
|
917
|
+
if (!defined[key]) {
|
|
918
|
+
defined[key] = desc.get ? {
|
|
919
|
+
enumerable: true,
|
|
920
|
+
configurable: true,
|
|
921
|
+
get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
|
|
922
|
+
} : desc.value !== undefined ? desc : undefined;
|
|
923
|
+
} else {
|
|
924
|
+
const sources = sourcesMap[key];
|
|
925
|
+
if (sources) {
|
|
926
|
+
if (desc.get)
|
|
927
|
+
sources.push(desc.get.bind(source));
|
|
928
|
+
else if (desc.value !== undefined)
|
|
929
|
+
sources.push(() => desc.value);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
const target = {};
|
|
935
|
+
const definedKeys = Object.keys(defined);
|
|
936
|
+
for (let i = definedKeys.length - 1;i >= 0; i--) {
|
|
937
|
+
const key = definedKeys[i], desc = defined[key];
|
|
938
|
+
if (desc && desc.get)
|
|
939
|
+
Object.defineProperty(target, key, desc);
|
|
940
|
+
else
|
|
941
|
+
target[key] = desc ? desc.value : undefined;
|
|
942
|
+
}
|
|
943
|
+
return target;
|
|
944
|
+
}
|
|
945
|
+
var narrowedError = (name) => `Stale read from <${name}>.`;
|
|
946
|
+
function For(props) {
|
|
947
|
+
const fallback = "fallback" in props && {
|
|
948
|
+
fallback: () => props.fallback
|
|
949
|
+
};
|
|
950
|
+
return createMemo(mapArray(() => props.each, props.children, fallback || undefined));
|
|
951
|
+
}
|
|
952
|
+
function Show(props) {
|
|
953
|
+
const keyed = props.keyed;
|
|
954
|
+
const conditionValue = createMemo(() => props.when, undefined, undefined);
|
|
955
|
+
const condition = keyed ? conditionValue : createMemo(conditionValue, undefined, {
|
|
956
|
+
equals: (a, b) => !a === !b
|
|
957
|
+
});
|
|
958
|
+
return createMemo(() => {
|
|
959
|
+
const c = condition();
|
|
960
|
+
if (c) {
|
|
961
|
+
const child = props.children;
|
|
962
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
963
|
+
return fn ? untrack(() => child(keyed ? c : () => {
|
|
964
|
+
if (!untrack(condition))
|
|
965
|
+
throw narrowedError("Show");
|
|
966
|
+
return conditionValue();
|
|
967
|
+
})) : child;
|
|
968
|
+
}
|
|
969
|
+
return props.fallback;
|
|
970
|
+
}, undefined, undefined);
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
// ../../node_modules/@opentui/solid/index.bun.js
|
|
974
|
+
import {
|
|
975
|
+
BaseRenderable,
|
|
976
|
+
createTextAttributes,
|
|
977
|
+
InputRenderable as InputRenderable2,
|
|
978
|
+
InputRenderableEvents,
|
|
979
|
+
isTextNodeRenderable,
|
|
980
|
+
parseColor,
|
|
981
|
+
Renderable,
|
|
982
|
+
RootTextNodeRenderable,
|
|
983
|
+
ScrollBoxRenderable as ScrollBoxRenderable2,
|
|
984
|
+
SelectRenderable as SelectRenderable2,
|
|
985
|
+
SelectRenderableEvents,
|
|
986
|
+
TabSelectRenderable as TabSelectRenderable2,
|
|
987
|
+
TabSelectRenderableEvents,
|
|
988
|
+
TextNodeRenderable as TextNodeRenderable2,
|
|
989
|
+
TextRenderable as TextRenderable2
|
|
990
|
+
} from "@opentui/core";
|
|
991
|
+
|
|
992
|
+
// ../../node_modules/entities/dist/esm/decode-codepoint.js
|
|
993
|
+
var _a;
|
|
994
|
+
var decodeMap = new Map([
|
|
995
|
+
[0, 65533],
|
|
996
|
+
[128, 8364],
|
|
997
|
+
[130, 8218],
|
|
998
|
+
[131, 402],
|
|
999
|
+
[132, 8222],
|
|
1000
|
+
[133, 8230],
|
|
1001
|
+
[134, 8224],
|
|
1002
|
+
[135, 8225],
|
|
1003
|
+
[136, 710],
|
|
1004
|
+
[137, 8240],
|
|
1005
|
+
[138, 352],
|
|
1006
|
+
[139, 8249],
|
|
1007
|
+
[140, 338],
|
|
1008
|
+
[142, 381],
|
|
1009
|
+
[145, 8216],
|
|
1010
|
+
[146, 8217],
|
|
1011
|
+
[147, 8220],
|
|
1012
|
+
[148, 8221],
|
|
1013
|
+
[149, 8226],
|
|
1014
|
+
[150, 8211],
|
|
1015
|
+
[151, 8212],
|
|
1016
|
+
[152, 732],
|
|
1017
|
+
[153, 8482],
|
|
1018
|
+
[154, 353],
|
|
1019
|
+
[155, 8250],
|
|
1020
|
+
[156, 339],
|
|
1021
|
+
[158, 382],
|
|
1022
|
+
[159, 376]
|
|
1023
|
+
]);
|
|
1024
|
+
var fromCodePoint = (_a = String.fromCodePoint) !== null && _a !== undefined ? _a : (codePoint) => {
|
|
1025
|
+
let output = "";
|
|
1026
|
+
if (codePoint > 65535) {
|
|
1027
|
+
codePoint -= 65536;
|
|
1028
|
+
output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296);
|
|
1029
|
+
codePoint = 56320 | codePoint & 1023;
|
|
1030
|
+
}
|
|
1031
|
+
output += String.fromCharCode(codePoint);
|
|
1032
|
+
return output;
|
|
1033
|
+
};
|
|
1034
|
+
function replaceCodePoint(codePoint) {
|
|
1035
|
+
var _a;
|
|
1036
|
+
if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) {
|
|
1037
|
+
return 65533;
|
|
1038
|
+
}
|
|
1039
|
+
return (_a = decodeMap.get(codePoint)) !== null && _a !== undefined ? _a : codePoint;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
// ../../node_modules/entities/dist/esm/internal/decode-shared.js
|
|
1043
|
+
function decodeBase64(input) {
|
|
1044
|
+
const binary = typeof atob === "function" ? atob(input) : typeof Buffer.from === "function" ? Buffer.from(input, "base64").toString("binary") : new Buffer(input, "base64").toString("binary");
|
|
1045
|
+
const evenLength = binary.length & ~1;
|
|
1046
|
+
const out = new Uint16Array(evenLength / 2);
|
|
1047
|
+
for (let index = 0, outIndex = 0;index < evenLength; index += 2) {
|
|
1048
|
+
const lo = binary.charCodeAt(index);
|
|
1049
|
+
const hi = binary.charCodeAt(index + 1);
|
|
1050
|
+
out[outIndex++] = lo | hi << 8;
|
|
1051
|
+
}
|
|
1052
|
+
return out;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
// ../../node_modules/entities/dist/esm/generated/decode-data-html.js
|
|
1056
|
+
var htmlDecodeTree = /* @__PURE__ */ decodeBase64("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8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Qt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg");
|
|
1057
|
+
|
|
1058
|
+
// ../../node_modules/entities/dist/esm/internal/bin-trie-flags.js
|
|
1059
|
+
var BinTrieFlags;
|
|
1060
|
+
(function(BinTrieFlags) {
|
|
1061
|
+
BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
|
|
1062
|
+
BinTrieFlags[BinTrieFlags["FLAG13"] = 8192] = "FLAG13";
|
|
1063
|
+
BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 8064] = "BRANCH_LENGTH";
|
|
1064
|
+
BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
|
|
1065
|
+
})(BinTrieFlags || (BinTrieFlags = {}));
|
|
1066
|
+
|
|
1067
|
+
// ../../node_modules/entities/dist/esm/decode.js
|
|
1068
|
+
var CharCodes;
|
|
1069
|
+
(function(CharCodes) {
|
|
1070
|
+
CharCodes[CharCodes["NUM"] = 35] = "NUM";
|
|
1071
|
+
CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
|
|
1072
|
+
CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
|
|
1073
|
+
CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
|
|
1074
|
+
CharCodes[CharCodes["NINE"] = 57] = "NINE";
|
|
1075
|
+
CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
|
|
1076
|
+
CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
|
|
1077
|
+
CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
|
|
1078
|
+
CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
|
|
1079
|
+
CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
|
|
1080
|
+
CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
|
|
1081
|
+
CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
|
|
1082
|
+
})(CharCodes || (CharCodes = {}));
|
|
1083
|
+
var TO_LOWER_BIT = 32;
|
|
1084
|
+
function isNumber(code) {
|
|
1085
|
+
return code >= CharCodes.ZERO && code <= CharCodes.NINE;
|
|
1086
|
+
}
|
|
1087
|
+
function isHexadecimalCharacter(code) {
|
|
1088
|
+
return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F;
|
|
1089
|
+
}
|
|
1090
|
+
function isAsciiAlphaNumeric(code) {
|
|
1091
|
+
return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z || isNumber(code);
|
|
1092
|
+
}
|
|
1093
|
+
function isEntityInAttributeInvalidEnd(code) {
|
|
1094
|
+
return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
|
|
1095
|
+
}
|
|
1096
|
+
var EntityDecoderState;
|
|
1097
|
+
(function(EntityDecoderState) {
|
|
1098
|
+
EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
|
|
1099
|
+
EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
|
|
1100
|
+
EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
|
|
1101
|
+
EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
|
|
1102
|
+
EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
|
|
1103
|
+
})(EntityDecoderState || (EntityDecoderState = {}));
|
|
1104
|
+
var DecodingMode;
|
|
1105
|
+
(function(DecodingMode) {
|
|
1106
|
+
DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
|
|
1107
|
+
DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
|
|
1108
|
+
DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
|
|
1109
|
+
})(DecodingMode || (DecodingMode = {}));
|
|
1110
|
+
|
|
1111
|
+
class EntityDecoder {
|
|
1112
|
+
constructor(decodeTree, emitCodePoint, errors) {
|
|
1113
|
+
this.decodeTree = decodeTree;
|
|
1114
|
+
this.emitCodePoint = emitCodePoint;
|
|
1115
|
+
this.errors = errors;
|
|
1116
|
+
this.state = EntityDecoderState.EntityStart;
|
|
1117
|
+
this.consumed = 1;
|
|
1118
|
+
this.result = 0;
|
|
1119
|
+
this.treeIndex = 0;
|
|
1120
|
+
this.excess = 1;
|
|
1121
|
+
this.decodeMode = DecodingMode.Strict;
|
|
1122
|
+
this.runConsumed = 0;
|
|
1123
|
+
}
|
|
1124
|
+
startEntity(decodeMode) {
|
|
1125
|
+
this.decodeMode = decodeMode;
|
|
1126
|
+
this.state = EntityDecoderState.EntityStart;
|
|
1127
|
+
this.result = 0;
|
|
1128
|
+
this.treeIndex = 0;
|
|
1129
|
+
this.excess = 1;
|
|
1130
|
+
this.consumed = 1;
|
|
1131
|
+
this.runConsumed = 0;
|
|
1132
|
+
}
|
|
1133
|
+
write(input, offset) {
|
|
1134
|
+
switch (this.state) {
|
|
1135
|
+
case EntityDecoderState.EntityStart: {
|
|
1136
|
+
if (input.charCodeAt(offset) === CharCodes.NUM) {
|
|
1137
|
+
this.state = EntityDecoderState.NumericStart;
|
|
1138
|
+
this.consumed += 1;
|
|
1139
|
+
return this.stateNumericStart(input, offset + 1);
|
|
1140
|
+
}
|
|
1141
|
+
this.state = EntityDecoderState.NamedEntity;
|
|
1142
|
+
return this.stateNamedEntity(input, offset);
|
|
1143
|
+
}
|
|
1144
|
+
case EntityDecoderState.NumericStart: {
|
|
1145
|
+
return this.stateNumericStart(input, offset);
|
|
1146
|
+
}
|
|
1147
|
+
case EntityDecoderState.NumericDecimal: {
|
|
1148
|
+
return this.stateNumericDecimal(input, offset);
|
|
1149
|
+
}
|
|
1150
|
+
case EntityDecoderState.NumericHex: {
|
|
1151
|
+
return this.stateNumericHex(input, offset);
|
|
1152
|
+
}
|
|
1153
|
+
case EntityDecoderState.NamedEntity: {
|
|
1154
|
+
return this.stateNamedEntity(input, offset);
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
stateNumericStart(input, offset) {
|
|
1159
|
+
if (offset >= input.length) {
|
|
1160
|
+
return -1;
|
|
1161
|
+
}
|
|
1162
|
+
if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
|
|
1163
|
+
this.state = EntityDecoderState.NumericHex;
|
|
1164
|
+
this.consumed += 1;
|
|
1165
|
+
return this.stateNumericHex(input, offset + 1);
|
|
1166
|
+
}
|
|
1167
|
+
this.state = EntityDecoderState.NumericDecimal;
|
|
1168
|
+
return this.stateNumericDecimal(input, offset);
|
|
1169
|
+
}
|
|
1170
|
+
stateNumericHex(input, offset) {
|
|
1171
|
+
while (offset < input.length) {
|
|
1172
|
+
const char = input.charCodeAt(offset);
|
|
1173
|
+
if (isNumber(char) || isHexadecimalCharacter(char)) {
|
|
1174
|
+
const digit = char <= CharCodes.NINE ? char - CharCodes.ZERO : (char | TO_LOWER_BIT) - CharCodes.LOWER_A + 10;
|
|
1175
|
+
this.result = this.result * 16 + digit;
|
|
1176
|
+
this.consumed++;
|
|
1177
|
+
offset++;
|
|
1178
|
+
} else {
|
|
1179
|
+
return this.emitNumericEntity(char, 3);
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
return -1;
|
|
1183
|
+
}
|
|
1184
|
+
stateNumericDecimal(input, offset) {
|
|
1185
|
+
while (offset < input.length) {
|
|
1186
|
+
const char = input.charCodeAt(offset);
|
|
1187
|
+
if (isNumber(char)) {
|
|
1188
|
+
this.result = this.result * 10 + (char - CharCodes.ZERO);
|
|
1189
|
+
this.consumed++;
|
|
1190
|
+
offset++;
|
|
1191
|
+
} else {
|
|
1192
|
+
return this.emitNumericEntity(char, 2);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
return -1;
|
|
1196
|
+
}
|
|
1197
|
+
emitNumericEntity(lastCp, expectedLength) {
|
|
1198
|
+
var _a;
|
|
1199
|
+
if (this.consumed <= expectedLength) {
|
|
1200
|
+
(_a = this.errors) === null || _a === undefined || _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
1201
|
+
return 0;
|
|
1202
|
+
}
|
|
1203
|
+
if (lastCp === CharCodes.SEMI) {
|
|
1204
|
+
this.consumed += 1;
|
|
1205
|
+
} else if (this.decodeMode === DecodingMode.Strict) {
|
|
1206
|
+
return 0;
|
|
1207
|
+
}
|
|
1208
|
+
this.emitCodePoint(replaceCodePoint(this.result), this.consumed);
|
|
1209
|
+
if (this.errors) {
|
|
1210
|
+
if (lastCp !== CharCodes.SEMI) {
|
|
1211
|
+
this.errors.missingSemicolonAfterCharacterReference();
|
|
1212
|
+
}
|
|
1213
|
+
this.errors.validateNumericCharacterReference(this.result);
|
|
1214
|
+
}
|
|
1215
|
+
return this.consumed;
|
|
1216
|
+
}
|
|
1217
|
+
stateNamedEntity(input, offset) {
|
|
1218
|
+
const { decodeTree } = this;
|
|
1219
|
+
let current = decodeTree[this.treeIndex];
|
|
1220
|
+
let valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
1221
|
+
while (offset < input.length) {
|
|
1222
|
+
if (valueLength === 0 && (current & BinTrieFlags.FLAG13) !== 0) {
|
|
1223
|
+
const runLength = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
1224
|
+
if (this.runConsumed === 0) {
|
|
1225
|
+
const firstChar = current & BinTrieFlags.JUMP_TABLE;
|
|
1226
|
+
if (input.charCodeAt(offset) !== firstChar) {
|
|
1227
|
+
return this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1228
|
+
}
|
|
1229
|
+
offset++;
|
|
1230
|
+
this.excess++;
|
|
1231
|
+
this.runConsumed++;
|
|
1232
|
+
}
|
|
1233
|
+
while (this.runConsumed < runLength) {
|
|
1234
|
+
if (offset >= input.length) {
|
|
1235
|
+
return -1;
|
|
1236
|
+
}
|
|
1237
|
+
const charIndexInPacked = this.runConsumed - 1;
|
|
1238
|
+
const packedWord = decodeTree[this.treeIndex + 1 + (charIndexInPacked >> 1)];
|
|
1239
|
+
const expectedChar = charIndexInPacked % 2 === 0 ? packedWord & 255 : packedWord >> 8 & 255;
|
|
1240
|
+
if (input.charCodeAt(offset) !== expectedChar) {
|
|
1241
|
+
this.runConsumed = 0;
|
|
1242
|
+
return this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1243
|
+
}
|
|
1244
|
+
offset++;
|
|
1245
|
+
this.excess++;
|
|
1246
|
+
this.runConsumed++;
|
|
1247
|
+
}
|
|
1248
|
+
this.runConsumed = 0;
|
|
1249
|
+
this.treeIndex += 1 + (runLength >> 1);
|
|
1250
|
+
current = decodeTree[this.treeIndex];
|
|
1251
|
+
valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
1252
|
+
}
|
|
1253
|
+
if (offset >= input.length)
|
|
1254
|
+
break;
|
|
1255
|
+
const char = input.charCodeAt(offset);
|
|
1256
|
+
if (char === CharCodes.SEMI && valueLength !== 0 && (current & BinTrieFlags.FLAG13) !== 0) {
|
|
1257
|
+
return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
|
|
1258
|
+
}
|
|
1259
|
+
this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
|
|
1260
|
+
if (this.treeIndex < 0) {
|
|
1261
|
+
return this.result === 0 || this.decodeMode === DecodingMode.Attribute && (valueLength === 0 || isEntityInAttributeInvalidEnd(char)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1262
|
+
}
|
|
1263
|
+
current = decodeTree[this.treeIndex];
|
|
1264
|
+
valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
1265
|
+
if (valueLength !== 0) {
|
|
1266
|
+
if (char === CharCodes.SEMI) {
|
|
1267
|
+
return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
|
|
1268
|
+
}
|
|
1269
|
+
if (this.decodeMode !== DecodingMode.Strict && (current & BinTrieFlags.FLAG13) === 0) {
|
|
1270
|
+
this.result = this.treeIndex;
|
|
1271
|
+
this.consumed += this.excess;
|
|
1272
|
+
this.excess = 0;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
offset++;
|
|
1276
|
+
this.excess++;
|
|
1277
|
+
}
|
|
1278
|
+
return -1;
|
|
1279
|
+
}
|
|
1280
|
+
emitNotTerminatedNamedEntity() {
|
|
1281
|
+
var _a;
|
|
1282
|
+
const { result, decodeTree } = this;
|
|
1283
|
+
const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
1284
|
+
this.emitNamedEntityData(result, valueLength, this.consumed);
|
|
1285
|
+
(_a = this.errors) === null || _a === undefined || _a.missingSemicolonAfterCharacterReference();
|
|
1286
|
+
return this.consumed;
|
|
1287
|
+
}
|
|
1288
|
+
emitNamedEntityData(result, valueLength, consumed) {
|
|
1289
|
+
const { decodeTree } = this;
|
|
1290
|
+
this.emitCodePoint(valueLength === 1 ? decodeTree[result] & ~(BinTrieFlags.VALUE_LENGTH | BinTrieFlags.FLAG13) : decodeTree[result + 1], consumed);
|
|
1291
|
+
if (valueLength === 3) {
|
|
1292
|
+
this.emitCodePoint(decodeTree[result + 2], consumed);
|
|
1293
|
+
}
|
|
1294
|
+
return consumed;
|
|
1295
|
+
}
|
|
1296
|
+
end() {
|
|
1297
|
+
var _a;
|
|
1298
|
+
switch (this.state) {
|
|
1299
|
+
case EntityDecoderState.NamedEntity: {
|
|
1300
|
+
return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1301
|
+
}
|
|
1302
|
+
case EntityDecoderState.NumericDecimal: {
|
|
1303
|
+
return this.emitNumericEntity(0, 2);
|
|
1304
|
+
}
|
|
1305
|
+
case EntityDecoderState.NumericHex: {
|
|
1306
|
+
return this.emitNumericEntity(0, 3);
|
|
1307
|
+
}
|
|
1308
|
+
case EntityDecoderState.NumericStart: {
|
|
1309
|
+
(_a = this.errors) === null || _a === undefined || _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
1310
|
+
return 0;
|
|
1311
|
+
}
|
|
1312
|
+
case EntityDecoderState.EntityStart: {
|
|
1313
|
+
return 0;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
function getDecoder(decodeTree) {
|
|
1319
|
+
let returnValue = "";
|
|
1320
|
+
const decoder = new EntityDecoder(decodeTree, (data) => returnValue += fromCodePoint(data));
|
|
1321
|
+
return function decodeWithTrie(input, decodeMode) {
|
|
1322
|
+
let lastIndex = 0;
|
|
1323
|
+
let offset = 0;
|
|
1324
|
+
while ((offset = input.indexOf("&", offset)) >= 0) {
|
|
1325
|
+
returnValue += input.slice(lastIndex, offset);
|
|
1326
|
+
decoder.startEntity(decodeMode);
|
|
1327
|
+
const length = decoder.write(input, offset + 1);
|
|
1328
|
+
if (length < 0) {
|
|
1329
|
+
lastIndex = offset + decoder.end();
|
|
1330
|
+
break;
|
|
1331
|
+
}
|
|
1332
|
+
lastIndex = offset + length;
|
|
1333
|
+
offset = length === 0 ? lastIndex + 1 : lastIndex;
|
|
1334
|
+
}
|
|
1335
|
+
const result = returnValue + input.slice(lastIndex);
|
|
1336
|
+
returnValue = "";
|
|
1337
|
+
return result;
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
function determineBranch(decodeTree, current, nodeIndex, char) {
|
|
1341
|
+
const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
1342
|
+
const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
|
|
1343
|
+
if (branchCount === 0) {
|
|
1344
|
+
return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
|
|
1345
|
+
}
|
|
1346
|
+
if (jumpOffset) {
|
|
1347
|
+
const value = char - jumpOffset;
|
|
1348
|
+
return value < 0 || value >= branchCount ? -1 : decodeTree[nodeIndex + value] - 1;
|
|
1349
|
+
}
|
|
1350
|
+
const packedKeySlots = branchCount + 1 >> 1;
|
|
1351
|
+
let lo = 0;
|
|
1352
|
+
let hi = branchCount - 1;
|
|
1353
|
+
while (lo <= hi) {
|
|
1354
|
+
const mid = lo + hi >>> 1;
|
|
1355
|
+
const slot = mid >> 1;
|
|
1356
|
+
const packed = decodeTree[nodeIndex + slot];
|
|
1357
|
+
const midKey = packed >> (mid & 1) * 8 & 255;
|
|
1358
|
+
if (midKey < char) {
|
|
1359
|
+
lo = mid + 1;
|
|
1360
|
+
} else if (midKey > char) {
|
|
1361
|
+
hi = mid - 1;
|
|
1362
|
+
} else {
|
|
1363
|
+
return decodeTree[nodeIndex + packedKeySlots + mid];
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
return -1;
|
|
1367
|
+
}
|
|
1368
|
+
var htmlDecoder = /* @__PURE__ */ getDecoder(htmlDecodeTree);
|
|
1369
|
+
function decodeHTMLStrict(htmlString) {
|
|
1370
|
+
return htmlDecoder(htmlString, DecodingMode.Strict);
|
|
1371
|
+
}
|
|
1372
|
+
// ../../node_modules/entities/dist/esm/index.js
|
|
1373
|
+
var EntityLevel;
|
|
1374
|
+
(function(EntityLevel) {
|
|
1375
|
+
EntityLevel[EntityLevel["XML"] = 0] = "XML";
|
|
1376
|
+
EntityLevel[EntityLevel["HTML"] = 1] = "HTML";
|
|
1377
|
+
})(EntityLevel || (EntityLevel = {}));
|
|
1378
|
+
var EncodingMode;
|
|
1379
|
+
(function(EncodingMode) {
|
|
1380
|
+
EncodingMode[EncodingMode["UTF8"] = 0] = "UTF8";
|
|
1381
|
+
EncodingMode[EncodingMode["ASCII"] = 1] = "ASCII";
|
|
1382
|
+
EncodingMode[EncodingMode["Extensive"] = 2] = "Extensive";
|
|
1383
|
+
EncodingMode[EncodingMode["Attribute"] = 3] = "Attribute";
|
|
1384
|
+
EncodingMode[EncodingMode["Text"] = 4] = "Text";
|
|
1385
|
+
})(EncodingMode || (EncodingMode = {}));
|
|
1386
|
+
|
|
1387
|
+
// ../../node_modules/@opentui/solid/index.bun.js
|
|
1388
|
+
import { BaseRenderable as BaseRenderable2, isTextNodeRenderable as isTextNodeRenderable2, TextNodeRenderable as TextNodeRenderable3, TextRenderable as TextRenderable3, Yoga } from "@opentui/core";
|
|
1389
|
+
import {
|
|
1390
|
+
BoxRenderable as BoxRenderable2,
|
|
1391
|
+
RootRenderable
|
|
1392
|
+
} from "@opentui/core";
|
|
1393
|
+
import { TimeToFirstDrawRenderable } from "@opentui/core";
|
|
1394
|
+
import { createSlotRegistry } from "@opentui/core";
|
|
1395
|
+
class SpanRenderable extends TextNodeRenderable {
|
|
1396
|
+
_ctx;
|
|
1397
|
+
constructor(_ctx, options) {
|
|
1398
|
+
super(options);
|
|
1399
|
+
this._ctx = _ctx;
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
class TextModifierRenderable extends SpanRenderable {
|
|
1403
|
+
constructor(options, modifier) {
|
|
1404
|
+
super(null, options);
|
|
1405
|
+
if (modifier === "b" || modifier === "strong") {
|
|
1406
|
+
this.attributes = (this.attributes || 0) | TextAttributes.BOLD;
|
|
1407
|
+
} else if (modifier === "i" || modifier === "em") {
|
|
1408
|
+
this.attributes = (this.attributes || 0) | TextAttributes.ITALIC;
|
|
1409
|
+
} else if (modifier === "u") {
|
|
1410
|
+
this.attributes = (this.attributes || 0) | TextAttributes.UNDERLINE;
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
class BoldSpanRenderable extends TextModifierRenderable {
|
|
1416
|
+
constructor(options) {
|
|
1417
|
+
super(options, "b");
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
class ItalicSpanRenderable extends TextModifierRenderable {
|
|
1422
|
+
constructor(options) {
|
|
1423
|
+
super(options, "i");
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
class UnderlineSpanRenderable extends TextModifierRenderable {
|
|
1428
|
+
constructor(options) {
|
|
1429
|
+
super(options, "u");
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
class LineBreakRenderable extends SpanRenderable {
|
|
1434
|
+
constructor(_ctx, options) {
|
|
1435
|
+
super(null, options);
|
|
1436
|
+
this.add();
|
|
1437
|
+
}
|
|
1438
|
+
add() {
|
|
1439
|
+
return super.add(`
|
|
1440
|
+
`);
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
class LinkRenderable extends SpanRenderable {
|
|
1445
|
+
constructor(_ctx, options) {
|
|
1446
|
+
const linkOptions = {
|
|
1447
|
+
...options,
|
|
1448
|
+
link: { url: options.href }
|
|
1449
|
+
};
|
|
1450
|
+
super(null, linkOptions);
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
var baseComponents = {
|
|
1454
|
+
box: BoxRenderable,
|
|
1455
|
+
text: TextRenderable,
|
|
1456
|
+
input: InputRenderable,
|
|
1457
|
+
select: SelectRenderable,
|
|
1458
|
+
textarea: TextareaRenderable,
|
|
1459
|
+
ascii_font: ASCIIFontRenderable,
|
|
1460
|
+
tab_select: TabSelectRenderable,
|
|
1461
|
+
scrollbox: ScrollBoxRenderable,
|
|
1462
|
+
code: CodeRenderable,
|
|
1463
|
+
diff: DiffRenderable,
|
|
1464
|
+
line_number: LineNumberRenderable,
|
|
1465
|
+
markdown: MarkdownRenderable,
|
|
1466
|
+
span: SpanRenderable,
|
|
1467
|
+
strong: BoldSpanRenderable,
|
|
1468
|
+
b: BoldSpanRenderable,
|
|
1469
|
+
em: ItalicSpanRenderable,
|
|
1470
|
+
i: ItalicSpanRenderable,
|
|
1471
|
+
u: UnderlineSpanRenderable,
|
|
1472
|
+
br: LineBreakRenderable,
|
|
1473
|
+
a: LinkRenderable
|
|
1474
|
+
};
|
|
1475
|
+
var componentCatalogue = { ...baseComponents };
|
|
1476
|
+
function extend(objects) {
|
|
1477
|
+
Object.assign(componentCatalogue, objects);
|
|
1478
|
+
}
|
|
1479
|
+
function getComponentCatalogue() {
|
|
1480
|
+
return componentCatalogue;
|
|
1481
|
+
}
|
|
1482
|
+
var RendererContext = createContext();
|
|
1483
|
+
var useRenderer2 = () => {
|
|
1484
|
+
const renderer = useContext(RendererContext);
|
|
1485
|
+
if (!renderer) {
|
|
1486
|
+
throw new Error("No renderer found");
|
|
1487
|
+
}
|
|
1488
|
+
return renderer;
|
|
1489
|
+
};
|
|
1490
|
+
var onResize = (callback) => {
|
|
1491
|
+
const renderer = useRenderer2();
|
|
1492
|
+
onMount(() => {
|
|
1493
|
+
renderer.on("resize", callback);
|
|
1494
|
+
});
|
|
1495
|
+
onCleanup(() => {
|
|
1496
|
+
renderer.off("resize", callback);
|
|
1497
|
+
});
|
|
1498
|
+
};
|
|
1499
|
+
var useTerminalDimensions2 = () => {
|
|
1500
|
+
const renderer = useRenderer2();
|
|
1501
|
+
const [terminalDimensions, setTerminalDimensions] = createSignal({ width: renderer.width, height: renderer.height });
|
|
1502
|
+
const callback = (width, height) => {
|
|
1503
|
+
setTerminalDimensions({ width, height });
|
|
1504
|
+
};
|
|
1505
|
+
onResize(callback);
|
|
1506
|
+
return terminalDimensions;
|
|
1507
|
+
};
|
|
1508
|
+
var useKeyboard2 = (callback, options) => {
|
|
1509
|
+
const renderer = useRenderer2();
|
|
1510
|
+
const keyHandler = renderer.keyInput;
|
|
1511
|
+
onMount(() => {
|
|
1512
|
+
keyHandler.on("keypress", callback);
|
|
1513
|
+
if (options?.release) {
|
|
1514
|
+
keyHandler.on("keyrelease", callback);
|
|
1515
|
+
}
|
|
1516
|
+
});
|
|
1517
|
+
onCleanup(() => {
|
|
1518
|
+
keyHandler.off("keypress", callback);
|
|
1519
|
+
if (options?.release) {
|
|
1520
|
+
keyHandler.off("keyrelease", callback);
|
|
1521
|
+
}
|
|
1522
|
+
});
|
|
1523
|
+
};
|
|
1524
|
+
var memo = (fn) => createMemo(() => fn());
|
|
1525
|
+
function createRenderer({
|
|
1526
|
+
createElement,
|
|
1527
|
+
createTextNode,
|
|
1528
|
+
createDynamicTextNode,
|
|
1529
|
+
createSlotNode,
|
|
1530
|
+
isTextNode,
|
|
1531
|
+
replaceText,
|
|
1532
|
+
insertNode,
|
|
1533
|
+
removeNode,
|
|
1534
|
+
setProperty,
|
|
1535
|
+
getParentNode,
|
|
1536
|
+
getFirstChild,
|
|
1537
|
+
getNextSibling
|
|
1538
|
+
}) {
|
|
1539
|
+
function insert(parent, accessor, marker, initial) {
|
|
1540
|
+
if (marker !== undefined && !initial)
|
|
1541
|
+
initial = [];
|
|
1542
|
+
if (typeof accessor !== "function")
|
|
1543
|
+
return insertExpression(parent, accessor, initial, marker);
|
|
1544
|
+
createRenderEffect((current) => insertExpression(parent, accessor(), current, marker), initial);
|
|
1545
|
+
}
|
|
1546
|
+
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
1547
|
+
while (typeof current === "function")
|
|
1548
|
+
current = current();
|
|
1549
|
+
if (value === current)
|
|
1550
|
+
return current;
|
|
1551
|
+
const t = typeof value, multi = marker !== undefined;
|
|
1552
|
+
if (t === "string" || t === "number") {
|
|
1553
|
+
if (t === "number")
|
|
1554
|
+
value = value.toString();
|
|
1555
|
+
if (multi) {
|
|
1556
|
+
let node = current[0];
|
|
1557
|
+
if (node && isTextNode(node)) {
|
|
1558
|
+
replaceText(node, value);
|
|
1559
|
+
} else
|
|
1560
|
+
node = createDynamicTextNode(value);
|
|
1561
|
+
current = cleanChildren(parent, current, marker, node);
|
|
1562
|
+
} else {
|
|
1563
|
+
if (current !== "" && typeof current === "string") {
|
|
1564
|
+
replaceText(getFirstChild(parent), current = value);
|
|
1565
|
+
} else {
|
|
1566
|
+
cleanChildren(parent, current, marker, createDynamicTextNode(value));
|
|
1567
|
+
current = value;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
} else if (value == null || t === "boolean") {
|
|
1571
|
+
current = cleanChildren(parent, current, marker);
|
|
1572
|
+
} else if (t === "function") {
|
|
1573
|
+
createRenderEffect(() => {
|
|
1574
|
+
let v = value();
|
|
1575
|
+
while (typeof v === "function")
|
|
1576
|
+
v = v();
|
|
1577
|
+
current = insertExpression(parent, v, current, marker);
|
|
1578
|
+
});
|
|
1579
|
+
return () => current;
|
|
1580
|
+
} else if (Array.isArray(value)) {
|
|
1581
|
+
const array = [];
|
|
1582
|
+
if (normalizeIncomingArray(array, value, unwrapArray)) {
|
|
1583
|
+
createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
|
|
1584
|
+
return () => current;
|
|
1585
|
+
}
|
|
1586
|
+
if (array.length === 0) {
|
|
1587
|
+
const replacement = cleanChildren(parent, current, marker);
|
|
1588
|
+
if (multi)
|
|
1589
|
+
return current = replacement;
|
|
1590
|
+
} else {
|
|
1591
|
+
if (Array.isArray(current)) {
|
|
1592
|
+
if (current.length === 0) {
|
|
1593
|
+
appendNodes(parent, array, marker);
|
|
1594
|
+
} else
|
|
1595
|
+
reconcileArrays(parent, current, array);
|
|
1596
|
+
} else if (current == null || current === "") {
|
|
1597
|
+
appendNodes(parent, array);
|
|
1598
|
+
} else {
|
|
1599
|
+
reconcileArrays(parent, multi && current || [getFirstChild(parent)], array);
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
current = array;
|
|
1603
|
+
} else {
|
|
1604
|
+
if (Array.isArray(current)) {
|
|
1605
|
+
if (multi)
|
|
1606
|
+
return current = cleanChildren(parent, current, marker, value);
|
|
1607
|
+
cleanChildren(parent, current, null, value);
|
|
1608
|
+
} else if (current == null || current === "" || !getFirstChild(parent)) {
|
|
1609
|
+
insertNode(parent, value);
|
|
1610
|
+
} else
|
|
1611
|
+
replaceNode(parent, value, getFirstChild(parent));
|
|
1612
|
+
current = value;
|
|
1613
|
+
}
|
|
1614
|
+
return current;
|
|
1615
|
+
}
|
|
1616
|
+
function normalizeIncomingArray(normalized, array, unwrap) {
|
|
1617
|
+
let dynamic = false;
|
|
1618
|
+
for (let i = 0, len = array.length;i < len; i++) {
|
|
1619
|
+
let item = array[i], t;
|
|
1620
|
+
if (item == null || item === true || item === false)
|
|
1621
|
+
;
|
|
1622
|
+
else if (Array.isArray(item)) {
|
|
1623
|
+
dynamic = normalizeIncomingArray(normalized, item) || dynamic;
|
|
1624
|
+
} else if ((t = typeof item) === "string" || t === "number") {
|
|
1625
|
+
normalized.push(createDynamicTextNode(item));
|
|
1626
|
+
} else if (t === "function") {
|
|
1627
|
+
if (unwrap) {
|
|
1628
|
+
while (typeof item === "function")
|
|
1629
|
+
item = item();
|
|
1630
|
+
dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item]) || dynamic;
|
|
1631
|
+
} else {
|
|
1632
|
+
normalized.push(item);
|
|
1633
|
+
dynamic = true;
|
|
1634
|
+
}
|
|
1635
|
+
} else
|
|
1636
|
+
normalized.push(item);
|
|
1637
|
+
}
|
|
1638
|
+
return dynamic;
|
|
1639
|
+
}
|
|
1640
|
+
function reconcileArrays(parentNode, a, b) {
|
|
1641
|
+
let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = getNextSibling(a[aEnd - 1]), map = null;
|
|
1642
|
+
while (aStart < aEnd || bStart < bEnd) {
|
|
1643
|
+
if (a[aStart] === b[bStart]) {
|
|
1644
|
+
aStart++;
|
|
1645
|
+
bStart++;
|
|
1646
|
+
continue;
|
|
1647
|
+
}
|
|
1648
|
+
while (a[aEnd - 1] === b[bEnd - 1]) {
|
|
1649
|
+
aEnd--;
|
|
1650
|
+
bEnd--;
|
|
1651
|
+
}
|
|
1652
|
+
if (aEnd === aStart) {
|
|
1653
|
+
const node = bEnd < bLength ? bStart ? getNextSibling(b[bStart - 1]) : b[bEnd - bStart] : after;
|
|
1654
|
+
while (bStart < bEnd)
|
|
1655
|
+
insertNode(parentNode, b[bStart++], node);
|
|
1656
|
+
} else if (bEnd === bStart) {
|
|
1657
|
+
while (aStart < aEnd) {
|
|
1658
|
+
if (!map || !map.has(a[aStart]))
|
|
1659
|
+
removeNode(parentNode, a[aStart]);
|
|
1660
|
+
aStart++;
|
|
1661
|
+
}
|
|
1662
|
+
} else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
|
|
1663
|
+
const node = getNextSibling(a[--aEnd]);
|
|
1664
|
+
insertNode(parentNode, b[bStart++], getNextSibling(a[aStart++]));
|
|
1665
|
+
insertNode(parentNode, b[--bEnd], node);
|
|
1666
|
+
a[aEnd] = b[bEnd];
|
|
1667
|
+
} else {
|
|
1668
|
+
if (!map) {
|
|
1669
|
+
map = new Map;
|
|
1670
|
+
let i = bStart;
|
|
1671
|
+
while (i < bEnd)
|
|
1672
|
+
map.set(b[i], i++);
|
|
1673
|
+
}
|
|
1674
|
+
const index = map.get(a[aStart]);
|
|
1675
|
+
if (index != null) {
|
|
1676
|
+
if (bStart < index && index < bEnd) {
|
|
1677
|
+
let i = aStart, sequence = 1, t;
|
|
1678
|
+
while (++i < aEnd && i < bEnd) {
|
|
1679
|
+
if ((t = map.get(a[i])) == null || t !== index + sequence)
|
|
1680
|
+
break;
|
|
1681
|
+
sequence++;
|
|
1682
|
+
}
|
|
1683
|
+
if (sequence > index - bStart) {
|
|
1684
|
+
const node = a[aStart];
|
|
1685
|
+
while (bStart < index)
|
|
1686
|
+
insertNode(parentNode, b[bStart++], node);
|
|
1687
|
+
} else
|
|
1688
|
+
replaceNode(parentNode, b[bStart++], a[aStart++]);
|
|
1689
|
+
} else
|
|
1690
|
+
aStart++;
|
|
1691
|
+
} else
|
|
1692
|
+
removeNode(parentNode, a[aStart++]);
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
function cleanChildren(parent, current, marker, replacement) {
|
|
1697
|
+
if (marker === undefined) {
|
|
1698
|
+
let removed;
|
|
1699
|
+
while (removed = getFirstChild(parent))
|
|
1700
|
+
removeNode(parent, removed);
|
|
1701
|
+
replacement && insertNode(parent, replacement);
|
|
1702
|
+
return replacement ?? "";
|
|
1703
|
+
}
|
|
1704
|
+
const node = replacement || createSlotNode();
|
|
1705
|
+
if (current.length) {
|
|
1706
|
+
let inserted = false;
|
|
1707
|
+
for (let i = current.length - 1;i >= 0; i--) {
|
|
1708
|
+
const el = current[i];
|
|
1709
|
+
if (node !== el) {
|
|
1710
|
+
const isParent = getParentNode(el) === parent;
|
|
1711
|
+
if (!inserted && !i)
|
|
1712
|
+
isParent ? replaceNode(parent, node, el) : insertNode(parent, node, marker);
|
|
1713
|
+
else
|
|
1714
|
+
isParent && removeNode(parent, el);
|
|
1715
|
+
} else
|
|
1716
|
+
inserted = true;
|
|
1717
|
+
}
|
|
1718
|
+
} else
|
|
1719
|
+
insertNode(parent, node, marker);
|
|
1720
|
+
return [node];
|
|
1721
|
+
}
|
|
1722
|
+
function appendNodes(parent, array, marker) {
|
|
1723
|
+
for (let i = 0, len = array.length;i < len; i++)
|
|
1724
|
+
insertNode(parent, array[i], marker);
|
|
1725
|
+
}
|
|
1726
|
+
function replaceNode(parent, newNode, oldNode) {
|
|
1727
|
+
insertNode(parent, newNode, oldNode);
|
|
1728
|
+
removeNode(parent, oldNode);
|
|
1729
|
+
}
|
|
1730
|
+
function spreadExpression(node, props, prevProps = {}, skipChildren) {
|
|
1731
|
+
props || (props = {});
|
|
1732
|
+
if (!skipChildren) {
|
|
1733
|
+
createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
|
|
1734
|
+
}
|
|
1735
|
+
createRenderEffect(() => props.ref && props.ref(node));
|
|
1736
|
+
createRenderEffect(() => {
|
|
1737
|
+
for (const prop in props) {
|
|
1738
|
+
if (prop === "children" || prop === "ref")
|
|
1739
|
+
continue;
|
|
1740
|
+
const value = props[prop];
|
|
1741
|
+
if (value === prevProps[prop])
|
|
1742
|
+
continue;
|
|
1743
|
+
setProperty(node, prop, value, prevProps[prop]);
|
|
1744
|
+
prevProps[prop] = value;
|
|
1745
|
+
}
|
|
1746
|
+
});
|
|
1747
|
+
return prevProps;
|
|
1748
|
+
}
|
|
1749
|
+
return {
|
|
1750
|
+
render(code, element) {
|
|
1751
|
+
let disposer;
|
|
1752
|
+
createRoot((dispose) => {
|
|
1753
|
+
disposer = dispose;
|
|
1754
|
+
insert(element, code());
|
|
1755
|
+
});
|
|
1756
|
+
return disposer;
|
|
1757
|
+
},
|
|
1758
|
+
insert,
|
|
1759
|
+
spread(node, accessor, skipChildren) {
|
|
1760
|
+
if (typeof accessor === "function") {
|
|
1761
|
+
createRenderEffect((current) => spreadExpression(node, accessor(), current, skipChildren));
|
|
1762
|
+
} else
|
|
1763
|
+
spreadExpression(node, accessor, undefined, skipChildren);
|
|
1764
|
+
},
|
|
1765
|
+
createElement,
|
|
1766
|
+
createTextNode,
|
|
1767
|
+
insertNode,
|
|
1768
|
+
setProp(node, name, value, prev) {
|
|
1769
|
+
setProperty(node, name, value, prev);
|
|
1770
|
+
return value;
|
|
1771
|
+
},
|
|
1772
|
+
mergeProps,
|
|
1773
|
+
effect: createRenderEffect,
|
|
1774
|
+
memo,
|
|
1775
|
+
createComponent,
|
|
1776
|
+
use(fn, element, arg) {
|
|
1777
|
+
return untrack(() => fn(element, arg));
|
|
1778
|
+
}
|
|
1779
|
+
};
|
|
1780
|
+
}
|
|
1781
|
+
function createRenderer2(options) {
|
|
1782
|
+
const renderer = createRenderer(options);
|
|
1783
|
+
renderer.mergeProps = mergeProps;
|
|
1784
|
+
return renderer;
|
|
1785
|
+
}
|
|
1786
|
+
var idCounter = new Map;
|
|
1787
|
+
function getNextId(elementType) {
|
|
1788
|
+
if (!idCounter.has(elementType)) {
|
|
1789
|
+
idCounter.set(elementType, 0);
|
|
1790
|
+
}
|
|
1791
|
+
const value = idCounter.get(elementType) + 1;
|
|
1792
|
+
idCounter.set(elementType, value);
|
|
1793
|
+
return `${elementType}-${value}`;
|
|
1794
|
+
}
|
|
1795
|
+
var log = (...args) => {
|
|
1796
|
+
if (process.env.DEBUG) {
|
|
1797
|
+
console.log("[Reconciler]", ...args);
|
|
1798
|
+
}
|
|
1799
|
+
};
|
|
1800
|
+
|
|
1801
|
+
class TextNode extends TextNodeRenderable2 {
|
|
1802
|
+
static fromString(text, options = {}) {
|
|
1803
|
+
const node = new TextNode(options);
|
|
1804
|
+
node.add(text);
|
|
1805
|
+
return node;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
var logId = (node) => {
|
|
1809
|
+
if (!node)
|
|
1810
|
+
return;
|
|
1811
|
+
return node.id;
|
|
1812
|
+
};
|
|
1813
|
+
var getNodeChildren = (node) => {
|
|
1814
|
+
let children;
|
|
1815
|
+
if (node instanceof TextRenderable2) {
|
|
1816
|
+
children = node.getTextChildren();
|
|
1817
|
+
} else {
|
|
1818
|
+
children = node.getChildren();
|
|
1819
|
+
}
|
|
1820
|
+
return children;
|
|
1821
|
+
};
|
|
1822
|
+
function _insertNode(parent, node, anchor) {
|
|
1823
|
+
log("Inserting node:", logId(node), "into parent:", logId(parent), "with anchor:", logId(anchor), node instanceof TextNode);
|
|
1824
|
+
if (node instanceof SlotRenderable) {
|
|
1825
|
+
node.parent = parent;
|
|
1826
|
+
node = node.getSlotChild(parent);
|
|
1827
|
+
}
|
|
1828
|
+
if (anchor && anchor instanceof SlotRenderable) {
|
|
1829
|
+
anchor = anchor.getSlotChild(parent);
|
|
1830
|
+
}
|
|
1831
|
+
if (isTextNodeRenderable(node)) {
|
|
1832
|
+
if (!(parent instanceof TextRenderable2) && !isTextNodeRenderable(parent)) {
|
|
1833
|
+
throw new Error(`Orphan text error: "${node.toChunks().map((c) => c.text).join("")}" must have a <text> as a parent: ${parent.id} above ${node.id}`);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
if (!(parent instanceof BaseRenderable)) {
|
|
1837
|
+
console.error("[INSERT]", "Tried to mount a non base renderable");
|
|
1838
|
+
throw new Error("Tried to mount a non base renderable");
|
|
1839
|
+
}
|
|
1840
|
+
if (!anchor) {
|
|
1841
|
+
parent.add(node);
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1844
|
+
const children = getNodeChildren(parent);
|
|
1845
|
+
const anchorIndex = children.indexOf(anchor);
|
|
1846
|
+
if (anchorIndex === -1) {
|
|
1847
|
+
log("[INSERT]", "Could not find anchor", logId(parent), logId(anchor), "[children]", ...children.map((c) => c.id));
|
|
1848
|
+
}
|
|
1849
|
+
parent.add(node, anchorIndex);
|
|
1850
|
+
}
|
|
1851
|
+
function _removeNode(parent, node) {
|
|
1852
|
+
log("Removing node:", logId(node), "from parent:", logId(parent));
|
|
1853
|
+
let slotParent;
|
|
1854
|
+
if (node instanceof SlotRenderable) {
|
|
1855
|
+
slotParent = node;
|
|
1856
|
+
const slotChild = slotParent.getSlotChildForRemoval(parent);
|
|
1857
|
+
if (!slotChild) {
|
|
1858
|
+
if (slotParent.parent === parent) {
|
|
1859
|
+
slotParent.parent = null;
|
|
1860
|
+
}
|
|
1861
|
+
return;
|
|
1862
|
+
}
|
|
1863
|
+
node = slotChild;
|
|
1864
|
+
}
|
|
1865
|
+
parent.remove(node);
|
|
1866
|
+
slotParent?.didRemoveSlotChild(parent, node);
|
|
1867
|
+
process.nextTick(() => {
|
|
1868
|
+
if (node instanceof BaseRenderable && !node.parent) {
|
|
1869
|
+
node.destroyRecursively();
|
|
1870
|
+
return;
|
|
1871
|
+
}
|
|
1872
|
+
});
|
|
1873
|
+
}
|
|
1874
|
+
function _createTextNode(value, decodeEntities) {
|
|
1875
|
+
log("Creating text node:", value);
|
|
1876
|
+
const id = getNextId("text-node");
|
|
1877
|
+
if (typeof value === "number") {
|
|
1878
|
+
value = value.toString();
|
|
1879
|
+
}
|
|
1880
|
+
return TextNode.fromString(decodeEntities ? decodeHTMLStrict(value) : value, { id });
|
|
1881
|
+
}
|
|
1882
|
+
function createSlotNode() {
|
|
1883
|
+
const id = getNextId("slot-node");
|
|
1884
|
+
log("Creating slot node", id);
|
|
1885
|
+
return new SlotRenderable(id);
|
|
1886
|
+
}
|
|
1887
|
+
function _getParentNode(childNode) {
|
|
1888
|
+
log("Getting parent of node:", logId(childNode));
|
|
1889
|
+
let parent = childNode.parent ?? undefined;
|
|
1890
|
+
if (parent instanceof RootTextNodeRenderable) {
|
|
1891
|
+
parent = parent.textParent ?? undefined;
|
|
1892
|
+
}
|
|
1893
|
+
const scrollBoxCandidate = parent?.parent?.parent?.parent;
|
|
1894
|
+
if (scrollBoxCandidate instanceof ScrollBoxRenderable2 && scrollBoxCandidate.content === parent) {
|
|
1895
|
+
parent = scrollBoxCandidate;
|
|
1896
|
+
}
|
|
1897
|
+
return parent;
|
|
1898
|
+
}
|
|
1899
|
+
var {
|
|
1900
|
+
render: _render,
|
|
1901
|
+
effect: effect2,
|
|
1902
|
+
memo: memo2,
|
|
1903
|
+
createComponent: createComponent2,
|
|
1904
|
+
createElement: createElement2,
|
|
1905
|
+
createTextNode: createTextNode2,
|
|
1906
|
+
insertNode: insertNode2,
|
|
1907
|
+
insert: insert2,
|
|
1908
|
+
spread: spread2,
|
|
1909
|
+
setProp: setProp2,
|
|
1910
|
+
mergeProps: mergeProps3,
|
|
1911
|
+
use: use2
|
|
1912
|
+
} = createRenderer2({
|
|
1913
|
+
createElement(tagName) {
|
|
1914
|
+
log("Creating element:", tagName);
|
|
1915
|
+
const id = getNextId(tagName);
|
|
1916
|
+
const solidRenderer = useContext(RendererContext);
|
|
1917
|
+
if (!solidRenderer) {
|
|
1918
|
+
throw new Error("No renderer found");
|
|
1919
|
+
}
|
|
1920
|
+
const elements = getComponentCatalogue();
|
|
1921
|
+
if (!elements[tagName]) {
|
|
1922
|
+
throw new Error(`[Reconciler] Unknown component type: ${tagName}`);
|
|
1923
|
+
}
|
|
1924
|
+
const element = new elements[tagName](solidRenderer, { id });
|
|
1925
|
+
log("Element created with id:", id);
|
|
1926
|
+
return element;
|
|
1927
|
+
},
|
|
1928
|
+
createTextNode: (value) => _createTextNode(value, true),
|
|
1929
|
+
createDynamicTextNode: (value) => _createTextNode(value, false),
|
|
1930
|
+
createSlotNode,
|
|
1931
|
+
replaceText(textNode, value) {
|
|
1932
|
+
log("Replacing text:", value, "in node:", logId(textNode));
|
|
1933
|
+
if (!(textNode instanceof TextNode))
|
|
1934
|
+
return;
|
|
1935
|
+
textNode.replace(value, 0);
|
|
1936
|
+
},
|
|
1937
|
+
setProperty(node, name, value, prev) {
|
|
1938
|
+
if (name.startsWith("on:")) {
|
|
1939
|
+
const eventName = name.slice(3);
|
|
1940
|
+
if (value) {
|
|
1941
|
+
node.on(eventName, value);
|
|
1942
|
+
}
|
|
1943
|
+
if (prev) {
|
|
1944
|
+
node.off(eventName, prev);
|
|
1945
|
+
}
|
|
1946
|
+
return;
|
|
1947
|
+
}
|
|
1948
|
+
if (isTextNodeRenderable(node)) {
|
|
1949
|
+
if (name === "href") {
|
|
1950
|
+
node.link = { url: value };
|
|
1951
|
+
return;
|
|
1952
|
+
}
|
|
1953
|
+
if (name === "style") {
|
|
1954
|
+
node.attributes |= createTextAttributes(value);
|
|
1955
|
+
node.fg = value.fg ? parseColor(value.fg) : node.fg;
|
|
1956
|
+
node.bg = value.bg ? parseColor(value.bg) : node.bg;
|
|
1957
|
+
return;
|
|
1958
|
+
}
|
|
1959
|
+
return;
|
|
1960
|
+
}
|
|
1961
|
+
switch (name) {
|
|
1962
|
+
case "id":
|
|
1963
|
+
log("Id mapped", node.id, "=", value);
|
|
1964
|
+
node[name] = value;
|
|
1965
|
+
break;
|
|
1966
|
+
case "focused":
|
|
1967
|
+
if (!(node instanceof Renderable))
|
|
1968
|
+
return;
|
|
1969
|
+
if (value) {
|
|
1970
|
+
node.focus();
|
|
1971
|
+
} else {
|
|
1972
|
+
node.blur();
|
|
1973
|
+
}
|
|
1974
|
+
break;
|
|
1975
|
+
case "onChange":
|
|
1976
|
+
let event = undefined;
|
|
1977
|
+
if (node instanceof SelectRenderable2) {
|
|
1978
|
+
event = SelectRenderableEvents.SELECTION_CHANGED;
|
|
1979
|
+
} else if (node instanceof TabSelectRenderable2) {
|
|
1980
|
+
event = TabSelectRenderableEvents.SELECTION_CHANGED;
|
|
1981
|
+
} else if (node instanceof InputRenderable2) {
|
|
1982
|
+
event = InputRenderableEvents.CHANGE;
|
|
1983
|
+
}
|
|
1984
|
+
if (!event)
|
|
1985
|
+
break;
|
|
1986
|
+
if (value) {
|
|
1987
|
+
node.on(event, value);
|
|
1988
|
+
}
|
|
1989
|
+
if (prev) {
|
|
1990
|
+
node.off(event, prev);
|
|
1991
|
+
}
|
|
1992
|
+
break;
|
|
1993
|
+
case "onInput":
|
|
1994
|
+
if (node instanceof InputRenderable2) {
|
|
1995
|
+
if (value) {
|
|
1996
|
+
node.on(InputRenderableEvents.INPUT, value);
|
|
1997
|
+
}
|
|
1998
|
+
if (prev) {
|
|
1999
|
+
node.off(InputRenderableEvents.INPUT, prev);
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
break;
|
|
2003
|
+
case "onSubmit":
|
|
2004
|
+
if (node instanceof InputRenderable2) {
|
|
2005
|
+
if (value) {
|
|
2006
|
+
node.on(InputRenderableEvents.ENTER, value);
|
|
2007
|
+
}
|
|
2008
|
+
if (prev) {
|
|
2009
|
+
node.off(InputRenderableEvents.ENTER, prev);
|
|
2010
|
+
}
|
|
2011
|
+
} else {
|
|
2012
|
+
node[name] = value;
|
|
2013
|
+
}
|
|
2014
|
+
break;
|
|
2015
|
+
case "onSelect":
|
|
2016
|
+
if (node instanceof SelectRenderable2) {
|
|
2017
|
+
if (value) {
|
|
2018
|
+
node.on(SelectRenderableEvents.ITEM_SELECTED, value);
|
|
2019
|
+
}
|
|
2020
|
+
if (prev) {
|
|
2021
|
+
node.off(SelectRenderableEvents.ITEM_SELECTED, prev);
|
|
2022
|
+
}
|
|
2023
|
+
} else if (node instanceof TabSelectRenderable2) {
|
|
2024
|
+
if (value) {
|
|
2025
|
+
node.on(TabSelectRenderableEvents.ITEM_SELECTED, value);
|
|
2026
|
+
}
|
|
2027
|
+
if (prev) {
|
|
2028
|
+
node.off(TabSelectRenderableEvents.ITEM_SELECTED, prev);
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
break;
|
|
2032
|
+
case "style":
|
|
2033
|
+
for (const prop in value) {
|
|
2034
|
+
const propVal = value[prop];
|
|
2035
|
+
if (prev !== undefined && propVal === prev[prop])
|
|
2036
|
+
continue;
|
|
2037
|
+
node[prop] = propVal;
|
|
2038
|
+
}
|
|
2039
|
+
break;
|
|
2040
|
+
case "text":
|
|
2041
|
+
case "content": {
|
|
2042
|
+
const textValue = typeof value === "string" ? value : Array.isArray(value) ? value.join("") : `${value}`;
|
|
2043
|
+
node[name] = textValue;
|
|
2044
|
+
break;
|
|
2045
|
+
}
|
|
2046
|
+
default:
|
|
2047
|
+
node[name] = value;
|
|
2048
|
+
}
|
|
2049
|
+
},
|
|
2050
|
+
isTextNode(node) {
|
|
2051
|
+
return node instanceof TextNode;
|
|
2052
|
+
},
|
|
2053
|
+
insertNode: _insertNode,
|
|
2054
|
+
removeNode: _removeNode,
|
|
2055
|
+
getParentNode: _getParentNode,
|
|
2056
|
+
getFirstChild(node) {
|
|
2057
|
+
log("Getting first child of node:", logId(node));
|
|
2058
|
+
const firstChild = getNodeChildren(node)[0];
|
|
2059
|
+
if (!firstChild) {
|
|
2060
|
+
log("No first child found for node:", logId(node));
|
|
2061
|
+
return;
|
|
2062
|
+
}
|
|
2063
|
+
log("First child found:", logId(firstChild), "for node:", logId(node));
|
|
2064
|
+
return firstChild;
|
|
2065
|
+
},
|
|
2066
|
+
getNextSibling(node) {
|
|
2067
|
+
log("Getting next sibling of node:", logId(node));
|
|
2068
|
+
const parent = _getParentNode(node);
|
|
2069
|
+
if (!parent) {
|
|
2070
|
+
log("No parent found for node:", logId(node));
|
|
2071
|
+
return;
|
|
2072
|
+
}
|
|
2073
|
+
if (node instanceof SlotRenderable) {
|
|
2074
|
+
const layoutSlotNode = node.getSlotChildForRemoval(parent);
|
|
2075
|
+
if (layoutSlotNode) {
|
|
2076
|
+
node = layoutSlotNode;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
const siblings = getNodeChildren(parent);
|
|
2080
|
+
const index = siblings.indexOf(node);
|
|
2081
|
+
if (index === -1 || index === siblings.length - 1) {
|
|
2082
|
+
log("No next sibling found for node:", logId(node));
|
|
2083
|
+
return;
|
|
2084
|
+
}
|
|
2085
|
+
const nextSibling = siblings[index + 1];
|
|
2086
|
+
if (!nextSibling) {
|
|
2087
|
+
log("Next sibling is null for node:", logId(node));
|
|
2088
|
+
return;
|
|
2089
|
+
}
|
|
2090
|
+
log("Next sibling found:", logId(nextSibling), "for node:", logId(node));
|
|
2091
|
+
return nextSibling;
|
|
2092
|
+
}
|
|
2093
|
+
});
|
|
2094
|
+
function getLayoutNodeConstructor(parent) {
|
|
2095
|
+
const parentLayoutNode = parent?.getLayoutNode?.();
|
|
2096
|
+
return parentLayoutNode?.constructor;
|
|
2097
|
+
}
|
|
2098
|
+
function createLayoutSlotYogaNode(parentNodeConstructor) {
|
|
2099
|
+
return parentNodeConstructor?.create?.() ?? Yoga.default.Node.create();
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
class SlotBaseRenderable extends BaseRenderable2 {
|
|
2103
|
+
constructor(id) {
|
|
2104
|
+
super({
|
|
2105
|
+
id
|
|
2106
|
+
});
|
|
2107
|
+
}
|
|
2108
|
+
add(obj, index) {
|
|
2109
|
+
throw new Error("Can't add children on an Slot renderable");
|
|
2110
|
+
}
|
|
2111
|
+
getChildren() {
|
|
2112
|
+
return [];
|
|
2113
|
+
}
|
|
2114
|
+
remove(child) {}
|
|
2115
|
+
insertBefore(obj, anchor) {
|
|
2116
|
+
throw new Error("Can't add children on an Slot renderable");
|
|
2117
|
+
}
|
|
2118
|
+
getRenderable(id) {
|
|
2119
|
+
return;
|
|
2120
|
+
}
|
|
2121
|
+
getChildrenCount() {
|
|
2122
|
+
return 0;
|
|
2123
|
+
}
|
|
2124
|
+
requestRender() {}
|
|
2125
|
+
findDescendantById(id) {
|
|
2126
|
+
return;
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
class TextSlotRenderable extends TextNodeRenderable3 {
|
|
2131
|
+
slotParent;
|
|
2132
|
+
destroyed = false;
|
|
2133
|
+
constructor(id, parent) {
|
|
2134
|
+
super({ id });
|
|
2135
|
+
this._visible = false;
|
|
2136
|
+
this.slotParent = parent;
|
|
2137
|
+
}
|
|
2138
|
+
detachFromSlot() {
|
|
2139
|
+
this.slotParent = undefined;
|
|
2140
|
+
}
|
|
2141
|
+
disposeWithoutSlotCascade() {
|
|
2142
|
+
if (this.destroyed) {
|
|
2143
|
+
return;
|
|
2144
|
+
}
|
|
2145
|
+
this.destroyed = true;
|
|
2146
|
+
this.detachFromSlot();
|
|
2147
|
+
}
|
|
2148
|
+
destroy() {
|
|
2149
|
+
if (this.destroyed) {
|
|
2150
|
+
return;
|
|
2151
|
+
}
|
|
2152
|
+
this.destroyed = true;
|
|
2153
|
+
const slotParent = this.slotParent;
|
|
2154
|
+
this.slotParent = undefined;
|
|
2155
|
+
slotParent?.destroy();
|
|
2156
|
+
super.destroy();
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
class LayoutSlotRenderable extends SlotBaseRenderable {
|
|
2161
|
+
yogaNode;
|
|
2162
|
+
slotParent;
|
|
2163
|
+
destroyed = false;
|
|
2164
|
+
yogaNodeConstructor;
|
|
2165
|
+
yogaNodeFreed = false;
|
|
2166
|
+
constructor(id, parent, layoutParent) {
|
|
2167
|
+
super(id);
|
|
2168
|
+
this._visible = false;
|
|
2169
|
+
this.slotParent = parent;
|
|
2170
|
+
this.yogaNodeConstructor = getLayoutNodeConstructor(layoutParent);
|
|
2171
|
+
this.yogaNode = createLayoutSlotYogaNode(this.yogaNodeConstructor);
|
|
2172
|
+
this.yogaNode.setDisplay(Yoga.Display.None);
|
|
2173
|
+
}
|
|
2174
|
+
getLayoutNode() {
|
|
2175
|
+
return this.yogaNode;
|
|
2176
|
+
}
|
|
2177
|
+
updateFromLayout() {}
|
|
2178
|
+
updateLayout() {}
|
|
2179
|
+
onRemove() {}
|
|
2180
|
+
isCompatibleWith(layoutParent) {
|
|
2181
|
+
return this.yogaNodeConstructor === getLayoutNodeConstructor(layoutParent);
|
|
2182
|
+
}
|
|
2183
|
+
detachFromSlot() {
|
|
2184
|
+
this.slotParent = undefined;
|
|
2185
|
+
}
|
|
2186
|
+
freeYogaNode() {
|
|
2187
|
+
if (this.yogaNodeFreed) {
|
|
2188
|
+
return;
|
|
2189
|
+
}
|
|
2190
|
+
this.yogaNodeFreed = true;
|
|
2191
|
+
try {
|
|
2192
|
+
this.yogaNode.free();
|
|
2193
|
+
} catch {}
|
|
2194
|
+
}
|
|
2195
|
+
disposeWithoutSlotCascade() {
|
|
2196
|
+
if (this.destroyed) {
|
|
2197
|
+
return;
|
|
2198
|
+
}
|
|
2199
|
+
this.destroyed = true;
|
|
2200
|
+
this.detachFromSlot();
|
|
2201
|
+
this.freeYogaNode();
|
|
2202
|
+
}
|
|
2203
|
+
destroy() {
|
|
2204
|
+
if (this.destroyed) {
|
|
2205
|
+
return;
|
|
2206
|
+
}
|
|
2207
|
+
this.destroyed = true;
|
|
2208
|
+
const slotParent = this.slotParent;
|
|
2209
|
+
this.slotParent = undefined;
|
|
2210
|
+
this.freeYogaNode();
|
|
2211
|
+
slotParent?.destroy();
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
class SlotRenderable extends SlotBaseRenderable {
|
|
2216
|
+
destroyed = false;
|
|
2217
|
+
layoutNodesByParent = new Map;
|
|
2218
|
+
textNodesByParent = new Map;
|
|
2219
|
+
layoutNodeCount = 0;
|
|
2220
|
+
textNodeCount = 0;
|
|
2221
|
+
constructor(id) {
|
|
2222
|
+
super(id);
|
|
2223
|
+
this._visible = false;
|
|
2224
|
+
}
|
|
2225
|
+
get layoutNode() {
|
|
2226
|
+
return this.getCurrentSlotChild(this.layoutNodesByParent);
|
|
2227
|
+
}
|
|
2228
|
+
get textNode() {
|
|
2229
|
+
return this.getCurrentSlotChild(this.textNodesByParent);
|
|
2230
|
+
}
|
|
2231
|
+
isTextSlotParent(parent) {
|
|
2232
|
+
return isTextNodeRenderable2(parent) || parent instanceof TextRenderable3;
|
|
2233
|
+
}
|
|
2234
|
+
getCurrentSlotChild(nodesByParent) {
|
|
2235
|
+
for (const node of nodesByParent.values()) {
|
|
2236
|
+
if (node.parent) {
|
|
2237
|
+
return node;
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
return nodesByParent.values().next().value;
|
|
2241
|
+
}
|
|
2242
|
+
getTextNodeForParent(parent) {
|
|
2243
|
+
const mappedNode = this.textNodesByParent.get(parent);
|
|
2244
|
+
if (mappedNode) {
|
|
2245
|
+
return mappedNode;
|
|
2246
|
+
}
|
|
2247
|
+
for (const [mappedParent, textNode] of this.textNodesByParent) {
|
|
2248
|
+
if (textNode.parent !== parent) {
|
|
2249
|
+
continue;
|
|
2250
|
+
}
|
|
2251
|
+
this.textNodesByParent.delete(mappedParent);
|
|
2252
|
+
this.textNodesByParent.set(parent, textNode);
|
|
2253
|
+
return textNode;
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
getLayoutNodeForParent(parent) {
|
|
2257
|
+
const mappedNode = this.layoutNodesByParent.get(parent);
|
|
2258
|
+
if (mappedNode) {
|
|
2259
|
+
return mappedNode;
|
|
2260
|
+
}
|
|
2261
|
+
for (const [mappedParent, layoutNode] of this.layoutNodesByParent) {
|
|
2262
|
+
if (layoutNode.parent !== parent) {
|
|
2263
|
+
continue;
|
|
2264
|
+
}
|
|
2265
|
+
this.layoutNodesByParent.delete(mappedParent);
|
|
2266
|
+
this.layoutNodesByParent.set(parent, layoutNode);
|
|
2267
|
+
return layoutNode;
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
takeReusableTextNode(parent) {
|
|
2271
|
+
for (const [mappedParent, textNode] of this.textNodesByParent) {
|
|
2272
|
+
if (textNode.parent) {
|
|
2273
|
+
continue;
|
|
2274
|
+
}
|
|
2275
|
+
this.textNodesByParent.delete(mappedParent);
|
|
2276
|
+
this.textNodesByParent.set(parent, textNode);
|
|
2277
|
+
return textNode;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
takeReusableLayoutNode(parent) {
|
|
2281
|
+
for (const [mappedParent, layoutNode] of this.layoutNodesByParent) {
|
|
2282
|
+
if (layoutNode.parent) {
|
|
2283
|
+
continue;
|
|
2284
|
+
}
|
|
2285
|
+
if (!layoutNode.isCompatibleWith(parent)) {
|
|
2286
|
+
continue;
|
|
2287
|
+
}
|
|
2288
|
+
this.layoutNodesByParent.delete(mappedParent);
|
|
2289
|
+
this.layoutNodesByParent.set(parent, layoutNode);
|
|
2290
|
+
return layoutNode;
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
disposeDetachedTextNodes() {
|
|
2294
|
+
for (const [parent, textNode] of this.textNodesByParent) {
|
|
2295
|
+
if (textNode.parent) {
|
|
2296
|
+
continue;
|
|
2297
|
+
}
|
|
2298
|
+
this.textNodesByParent.delete(parent);
|
|
2299
|
+
textNode.disposeWithoutSlotCascade();
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
disposeDetachedIncompatibleLayoutNodes(parent) {
|
|
2303
|
+
for (const [mappedParent, layoutNode] of this.layoutNodesByParent) {
|
|
2304
|
+
if (layoutNode.parent || layoutNode.isCompatibleWith(parent)) {
|
|
2305
|
+
continue;
|
|
2306
|
+
}
|
|
2307
|
+
this.layoutNodesByParent.delete(mappedParent);
|
|
2308
|
+
layoutNode.disposeWithoutSlotCascade();
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
getAttachedSlotParent(excludedNode) {
|
|
2312
|
+
for (const textNode of this.textNodesByParent.values()) {
|
|
2313
|
+
if (textNode !== excludedNode && textNode.parent) {
|
|
2314
|
+
return textNode.parent;
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
for (const layoutNode of this.layoutNodesByParent.values()) {
|
|
2318
|
+
if (layoutNode !== excludedNode && layoutNode.parent) {
|
|
2319
|
+
return layoutNode.parent;
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
return null;
|
|
2323
|
+
}
|
|
2324
|
+
hasOtherAttachedSlotChildren(excludedNode) {
|
|
2325
|
+
return this.getAttachedSlotParent(excludedNode) !== null;
|
|
2326
|
+
}
|
|
2327
|
+
getSlotChild(parent) {
|
|
2328
|
+
if (this.isTextSlotParent(parent)) {
|
|
2329
|
+
const existingTextNode = this.getTextNodeForParent(parent);
|
|
2330
|
+
if (existingTextNode) {
|
|
2331
|
+
return existingTextNode;
|
|
2332
|
+
}
|
|
2333
|
+
const reusableTextNode = this.takeReusableTextNode(parent);
|
|
2334
|
+
if (reusableTextNode) {
|
|
2335
|
+
return reusableTextNode;
|
|
2336
|
+
}
|
|
2337
|
+
this.disposeDetachedIncompatibleLayoutNodes(parent);
|
|
2338
|
+
const textNode = new TextSlotRenderable(`slot-text-${this.id}-${++this.textNodeCount}`, this);
|
|
2339
|
+
this.textNodesByParent.set(parent, textNode);
|
|
2340
|
+
return textNode;
|
|
2341
|
+
}
|
|
2342
|
+
const existingLayoutNode = this.getLayoutNodeForParent(parent);
|
|
2343
|
+
if (existingLayoutNode) {
|
|
2344
|
+
return existingLayoutNode;
|
|
2345
|
+
}
|
|
2346
|
+
const reusableLayoutNode = this.takeReusableLayoutNode(parent);
|
|
2347
|
+
if (reusableLayoutNode) {
|
|
2348
|
+
return reusableLayoutNode;
|
|
2349
|
+
}
|
|
2350
|
+
this.disposeDetachedTextNodes();
|
|
2351
|
+
this.disposeDetachedIncompatibleLayoutNodes(parent);
|
|
2352
|
+
const layoutNode = new LayoutSlotRenderable(`slot-layout-${this.id}-${++this.layoutNodeCount}`, this, parent);
|
|
2353
|
+
this.layoutNodesByParent.set(parent, layoutNode);
|
|
2354
|
+
return layoutNode;
|
|
2355
|
+
}
|
|
2356
|
+
getSlotChildForRemoval(parent) {
|
|
2357
|
+
if (this.isTextSlotParent(parent)) {
|
|
2358
|
+
return this.getTextNodeForParent(parent);
|
|
2359
|
+
}
|
|
2360
|
+
return this.getLayoutNodeForParent(parent);
|
|
2361
|
+
}
|
|
2362
|
+
didRemoveSlotChild(parent, child) {
|
|
2363
|
+
const hasOtherAttachedSlotChildren = this.hasOtherAttachedSlotChildren(child);
|
|
2364
|
+
if (hasOtherAttachedSlotChildren && child instanceof TextSlotRenderable && this.getTextNodeForParent(parent) === child) {
|
|
2365
|
+
this.textNodesByParent.delete(parent);
|
|
2366
|
+
child.disposeWithoutSlotCascade();
|
|
2367
|
+
}
|
|
2368
|
+
if (hasOtherAttachedSlotChildren && child instanceof LayoutSlotRenderable && this.getLayoutNodeForParent(parent) === child) {
|
|
2369
|
+
this.layoutNodesByParent.delete(parent);
|
|
2370
|
+
child.disposeWithoutSlotCascade();
|
|
2371
|
+
}
|
|
2372
|
+
if (this.parent === parent) {
|
|
2373
|
+
this.parent = this.getAttachedSlotParent(child);
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
destroy() {
|
|
2377
|
+
if (this.destroyed) {
|
|
2378
|
+
return;
|
|
2379
|
+
}
|
|
2380
|
+
this.destroyed = true;
|
|
2381
|
+
const layoutNodes = new Set(this.layoutNodesByParent.values());
|
|
2382
|
+
this.layoutNodesByParent.clear();
|
|
2383
|
+
for (const layoutNode of layoutNodes) {
|
|
2384
|
+
layoutNode.destroy();
|
|
2385
|
+
}
|
|
2386
|
+
const textNodes = new Set(this.textNodesByParent.values());
|
|
2387
|
+
this.textNodesByParent.clear();
|
|
2388
|
+
for (const textNode of textNodes) {
|
|
2389
|
+
textNode.destroy();
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
extend({
|
|
2394
|
+
time_to_first_draw: TimeToFirstDrawRenderable
|
|
2395
|
+
});
|
|
2396
|
+
var mountSolidRoot = (renderer, node) => {
|
|
2397
|
+
let dispose;
|
|
2398
|
+
let disposeRequested = false;
|
|
2399
|
+
let disposed = false;
|
|
2400
|
+
let mounting = true;
|
|
2401
|
+
let destroyRequested = false;
|
|
2402
|
+
const originalDestroy = renderer.destroy.bind(renderer);
|
|
2403
|
+
const runDispose = () => {
|
|
2404
|
+
if (disposed) {
|
|
2405
|
+
return;
|
|
2406
|
+
}
|
|
2407
|
+
if (!dispose) {
|
|
2408
|
+
disposeRequested = true;
|
|
2409
|
+
return;
|
|
2410
|
+
}
|
|
2411
|
+
disposed = true;
|
|
2412
|
+
dispose();
|
|
2413
|
+
};
|
|
2414
|
+
renderer.once("destroy", runDispose);
|
|
2415
|
+
renderer.destroy = () => {
|
|
2416
|
+
if (mounting) {
|
|
2417
|
+
destroyRequested = true;
|
|
2418
|
+
return;
|
|
2419
|
+
}
|
|
2420
|
+
originalDestroy();
|
|
2421
|
+
};
|
|
2422
|
+
try {
|
|
2423
|
+
dispose = _render(() => createComponent2(RendererContext.Provider, {
|
|
2424
|
+
get value() {
|
|
2425
|
+
return renderer;
|
|
2426
|
+
},
|
|
2427
|
+
get children() {
|
|
2428
|
+
return createComponent2(node, {});
|
|
2429
|
+
}
|
|
2430
|
+
}), renderer.root);
|
|
2431
|
+
} finally {
|
|
2432
|
+
mounting = false;
|
|
2433
|
+
renderer.destroy = originalDestroy;
|
|
2434
|
+
}
|
|
2435
|
+
if (disposeRequested) {
|
|
2436
|
+
runDispose();
|
|
2437
|
+
}
|
|
2438
|
+
if (destroyRequested) {
|
|
2439
|
+
originalDestroy();
|
|
2440
|
+
}
|
|
2441
|
+
};
|
|
2442
|
+
var render3 = async (node, rendererOrConfig = {}) => {
|
|
2443
|
+
const renderer = rendererOrConfig instanceof CliRenderer ? rendererOrConfig : await createCliRenderer({
|
|
2444
|
+
...rendererOrConfig,
|
|
2445
|
+
onDestroy: () => {
|
|
2446
|
+
rendererOrConfig.onDestroy?.();
|
|
2447
|
+
}
|
|
2448
|
+
});
|
|
2449
|
+
engine2.attach(renderer);
|
|
2450
|
+
mountSolidRoot(renderer, node);
|
|
2451
|
+
};
|
|
2452
|
+
export { createSignal, createEffect, createMemo, on, onMount, onCleanup, For, Show, useRenderer2, useTerminalDimensions2, useKeyboard2, effect2, memo2, createComponent2, createElement2, createTextNode2, insertNode2, insert2, spread2, setProp2, mergeProps3, use2, render3 };
|