@tanstack/query-devtools 5.0.0-alpha.54 → 5.0.0-alpha.55
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/dist/cjs/Devtools-e25fdb3e.js +2633 -0
- package/dist/cjs/Devtools-e25fdb3e.js.map +1 -0
- package/dist/cjs/index.cjs +102 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/esm/Devtools-1e41c850.js +2625 -0
- package/dist/esm/Devtools-1e41c850.js.map +1 -0
- package/dist/esm/index.js +100 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +15 -17
- package/build/cjs/Devtools-5f8e85ff.js +0 -6781
- package/build/cjs/Devtools-5f8e85ff.js.map +0 -1
- package/build/cjs/index-db699afb.js +0 -1395
- package/build/cjs/index-db699afb.js.map +0 -1
- package/build/cjs/index.js +0 -8
- package/build/cjs/index.js.map +0 -1
- package/build/esm/Devtools-8dd32079.js +0 -6773
- package/build/esm/Devtools-8dd32079.js.map +0 -1
- package/build/esm/index-34324cec.js +0 -1365
- package/build/esm/index-34324cec.js.map +0 -1
- package/build/esm/index.js +0 -2
- package/build/esm/index.js.map +0 -1
- /package/{build → dist}/source/Context.js +0 -0
- /package/{build → dist}/source/Devtools.jsx +0 -0
- /package/{build → dist}/source/Explorer.jsx +0 -0
- /package/{build → dist}/source/fonts.js +0 -0
- /package/{build → dist}/source/icons/index.jsx +0 -0
- /package/{build → dist}/source/index.jsx +0 -0
- /package/{build → dist}/source/theme.js +0 -0
- /package/{build → dist}/source/utils.jsx +0 -0
- /package/{build → dist}/types/Context.d.ts +0 -0
- /package/{build → dist}/types/Devtools.d.ts +0 -0
- /package/{build → dist}/types/Explorer.d.ts +0 -0
- /package/{build → dist}/types/fonts.d.ts +0 -0
- /package/{build → dist}/types/icons/index.d.ts +0 -0
- /package/{build → dist}/types/index.d.ts +0 -0
- /package/{build → dist}/types/theme.d.ts +0 -0
- /package/{build → dist}/types/utils.d.ts +0 -0
|
@@ -1,1395 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const sharedConfig = {};
|
|
4
|
-
function setHydrateContext(context) {
|
|
5
|
-
sharedConfig.context = context;
|
|
6
|
-
}
|
|
7
|
-
const equalFn = (a, b) => a === b;
|
|
8
|
-
const $PROXY = Symbol("solid-proxy");
|
|
9
|
-
const $TRACK = Symbol("solid-track");
|
|
10
|
-
const signalOptions = {
|
|
11
|
-
equals: equalFn
|
|
12
|
-
};
|
|
13
|
-
let runEffects = runQueue;
|
|
14
|
-
const STALE = 1;
|
|
15
|
-
const PENDING = 2;
|
|
16
|
-
const UNOWNED = {
|
|
17
|
-
owned: null,
|
|
18
|
-
cleanups: null,
|
|
19
|
-
context: null,
|
|
20
|
-
owner: null
|
|
21
|
-
};
|
|
22
|
-
const NO_INIT = {};
|
|
23
|
-
var Owner = null;
|
|
24
|
-
let Transition = null;
|
|
25
|
-
let Listener = null;
|
|
26
|
-
let Updates = null;
|
|
27
|
-
let Effects = null;
|
|
28
|
-
let ExecCount = 0;
|
|
29
|
-
const [transPending, setTransPending] = /*@__PURE__*/createSignal(false);
|
|
30
|
-
function createRoot(fn, detachedOwner) {
|
|
31
|
-
const listener = Listener,
|
|
32
|
-
owner = Owner,
|
|
33
|
-
unowned = fn.length === 0,
|
|
34
|
-
root = unowned ? UNOWNED : {
|
|
35
|
-
owned: null,
|
|
36
|
-
cleanups: null,
|
|
37
|
-
context: null,
|
|
38
|
-
owner: detachedOwner === undefined ? owner : detachedOwner
|
|
39
|
-
},
|
|
40
|
-
updateFn = unowned ? fn : () => fn(() => untrack(() => cleanNode(root)));
|
|
41
|
-
Owner = root;
|
|
42
|
-
Listener = null;
|
|
43
|
-
try {
|
|
44
|
-
return runUpdates(updateFn, true);
|
|
45
|
-
} finally {
|
|
46
|
-
Listener = listener;
|
|
47
|
-
Owner = owner;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function createSignal(value, options) {
|
|
51
|
-
options = options ? Object.assign({}, signalOptions, options) : signalOptions;
|
|
52
|
-
const s = {
|
|
53
|
-
value,
|
|
54
|
-
observers: null,
|
|
55
|
-
observerSlots: null,
|
|
56
|
-
comparator: options.equals || undefined
|
|
57
|
-
};
|
|
58
|
-
const setter = value => {
|
|
59
|
-
if (typeof value === "function") {
|
|
60
|
-
value = value(s.value);
|
|
61
|
-
}
|
|
62
|
-
return writeSignal(s, value);
|
|
63
|
-
};
|
|
64
|
-
return [readSignal.bind(s), setter];
|
|
65
|
-
}
|
|
66
|
-
function createComputed(fn, value, options) {
|
|
67
|
-
const c = createComputation(fn, value, true, STALE);
|
|
68
|
-
updateComputation(c);
|
|
69
|
-
}
|
|
70
|
-
function createRenderEffect(fn, value, options) {
|
|
71
|
-
const c = createComputation(fn, value, false, STALE);
|
|
72
|
-
updateComputation(c);
|
|
73
|
-
}
|
|
74
|
-
function createEffect(fn, value, options) {
|
|
75
|
-
runEffects = runUserEffects;
|
|
76
|
-
const c = createComputation(fn, value, false, STALE);
|
|
77
|
-
c.user = true;
|
|
78
|
-
Effects ? Effects.push(c) : updateComputation(c);
|
|
79
|
-
}
|
|
80
|
-
function createMemo(fn, value, options) {
|
|
81
|
-
options = options ? Object.assign({}, signalOptions, options) : signalOptions;
|
|
82
|
-
const c = createComputation(fn, value, true, 0);
|
|
83
|
-
c.observers = null;
|
|
84
|
-
c.observerSlots = null;
|
|
85
|
-
c.comparator = options.equals || undefined;
|
|
86
|
-
updateComputation(c);
|
|
87
|
-
return readSignal.bind(c);
|
|
88
|
-
}
|
|
89
|
-
function createResource(pSource, pFetcher, pOptions) {
|
|
90
|
-
let source;
|
|
91
|
-
let fetcher;
|
|
92
|
-
let options;
|
|
93
|
-
if (arguments.length === 2 && typeof pFetcher === "object" || arguments.length === 1) {
|
|
94
|
-
source = true;
|
|
95
|
-
fetcher = pSource;
|
|
96
|
-
options = pFetcher || {};
|
|
97
|
-
} else {
|
|
98
|
-
source = pSource;
|
|
99
|
-
fetcher = pFetcher;
|
|
100
|
-
options = pOptions || {};
|
|
101
|
-
}
|
|
102
|
-
let pr = null,
|
|
103
|
-
initP = NO_INIT,
|
|
104
|
-
id = null,
|
|
105
|
-
scheduled = false,
|
|
106
|
-
resolved = ("initialValue" in options),
|
|
107
|
-
dynamic = typeof source === "function" && createMemo(source);
|
|
108
|
-
const contexts = new Set(),
|
|
109
|
-
[value, setValue] = (options.storage || createSignal)(options.initialValue),
|
|
110
|
-
[error, setError] = createSignal(undefined),
|
|
111
|
-
[track, trigger] = createSignal(undefined, {
|
|
112
|
-
equals: false
|
|
113
|
-
}),
|
|
114
|
-
[state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
115
|
-
if (sharedConfig.context) {
|
|
116
|
-
id = `${sharedConfig.context.id}${sharedConfig.context.count++}`;
|
|
117
|
-
let v;
|
|
118
|
-
if (options.ssrLoadFrom === "initial") initP = options.initialValue;else if (sharedConfig.load && (v = sharedConfig.load(id))) initP = v[0];
|
|
119
|
-
}
|
|
120
|
-
function loadEnd(p, v, error, key) {
|
|
121
|
-
if (pr === p) {
|
|
122
|
-
pr = null;
|
|
123
|
-
resolved = true;
|
|
124
|
-
if ((p === initP || v === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
|
|
125
|
-
value: v
|
|
126
|
-
}));
|
|
127
|
-
initP = NO_INIT;
|
|
128
|
-
completeLoad(v, error);
|
|
129
|
-
}
|
|
130
|
-
return v;
|
|
131
|
-
}
|
|
132
|
-
function completeLoad(v, err) {
|
|
133
|
-
runUpdates(() => {
|
|
134
|
-
if (err === undefined) setValue(() => v);
|
|
135
|
-
setState(err !== undefined ? "errored" : "ready");
|
|
136
|
-
setError(err);
|
|
137
|
-
for (const c of contexts.keys()) c.decrement();
|
|
138
|
-
contexts.clear();
|
|
139
|
-
}, false);
|
|
140
|
-
}
|
|
141
|
-
function read() {
|
|
142
|
-
const c = SuspenseContext ,
|
|
143
|
-
v = value(),
|
|
144
|
-
err = error();
|
|
145
|
-
if (err !== undefined && !pr) throw err;
|
|
146
|
-
if (Listener && !Listener.user && c) {
|
|
147
|
-
createComputed(() => {
|
|
148
|
-
track();
|
|
149
|
-
if (pr) {
|
|
150
|
-
if (c.resolved ) ;else if (!contexts.has(c)) {
|
|
151
|
-
c.increment();
|
|
152
|
-
contexts.add(c);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
return v;
|
|
158
|
-
}
|
|
159
|
-
function load(refetching = true) {
|
|
160
|
-
if (refetching !== false && scheduled) return;
|
|
161
|
-
scheduled = false;
|
|
162
|
-
const lookup = dynamic ? dynamic() : source;
|
|
163
|
-
if (lookup == null || lookup === false) {
|
|
164
|
-
loadEnd(pr, untrack(value));
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
const p = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
|
|
168
|
-
value: value(),
|
|
169
|
-
refetching
|
|
170
|
-
}));
|
|
171
|
-
if (typeof p !== "object" || !(p && "then" in p)) {
|
|
172
|
-
loadEnd(pr, p, undefined, lookup);
|
|
173
|
-
return p;
|
|
174
|
-
}
|
|
175
|
-
pr = p;
|
|
176
|
-
scheduled = true;
|
|
177
|
-
queueMicrotask(() => scheduled = false);
|
|
178
|
-
runUpdates(() => {
|
|
179
|
-
setState(resolved ? "refreshing" : "pending");
|
|
180
|
-
trigger();
|
|
181
|
-
}, false);
|
|
182
|
-
return p.then(v => loadEnd(p, v, undefined, lookup), e => loadEnd(p, undefined, castError(e), lookup));
|
|
183
|
-
}
|
|
184
|
-
Object.defineProperties(read, {
|
|
185
|
-
state: {
|
|
186
|
-
get: () => state()
|
|
187
|
-
},
|
|
188
|
-
error: {
|
|
189
|
-
get: () => error()
|
|
190
|
-
},
|
|
191
|
-
loading: {
|
|
192
|
-
get() {
|
|
193
|
-
const s = state();
|
|
194
|
-
return s === "pending" || s === "refreshing";
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
latest: {
|
|
198
|
-
get() {
|
|
199
|
-
if (!resolved) return read();
|
|
200
|
-
const err = error();
|
|
201
|
-
if (err && !pr) throw err;
|
|
202
|
-
return value();
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
if (dynamic) createComputed(() => load(false));else load(false);
|
|
207
|
-
return [read, {
|
|
208
|
-
refetch: load,
|
|
209
|
-
mutate: setValue
|
|
210
|
-
}];
|
|
211
|
-
}
|
|
212
|
-
function untrack(fn) {
|
|
213
|
-
if (Listener === null) return fn();
|
|
214
|
-
const listener = Listener;
|
|
215
|
-
Listener = null;
|
|
216
|
-
try {
|
|
217
|
-
return fn();
|
|
218
|
-
} finally {
|
|
219
|
-
Listener = listener;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
function on(deps, fn, options) {
|
|
223
|
-
const isArray = Array.isArray(deps);
|
|
224
|
-
let prevInput;
|
|
225
|
-
let defer = options && options.defer;
|
|
226
|
-
return prevValue => {
|
|
227
|
-
let input;
|
|
228
|
-
if (isArray) {
|
|
229
|
-
input = Array(deps.length);
|
|
230
|
-
for (let i = 0; i < deps.length; i++) input[i] = deps[i]();
|
|
231
|
-
} else input = deps();
|
|
232
|
-
if (defer) {
|
|
233
|
-
defer = false;
|
|
234
|
-
return undefined;
|
|
235
|
-
}
|
|
236
|
-
const result = untrack(() => fn(input, prevInput, prevValue));
|
|
237
|
-
prevInput = input;
|
|
238
|
-
return result;
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
function onMount(fn) {
|
|
242
|
-
createEffect(() => untrack(fn));
|
|
243
|
-
}
|
|
244
|
-
function onCleanup(fn) {
|
|
245
|
-
if (Owner === null) ;else if (Owner.cleanups === null) Owner.cleanups = [fn];else Owner.cleanups.push(fn);
|
|
246
|
-
return fn;
|
|
247
|
-
}
|
|
248
|
-
function startTransition(fn) {
|
|
249
|
-
const l = Listener;
|
|
250
|
-
const o = Owner;
|
|
251
|
-
return Promise.resolve().then(() => {
|
|
252
|
-
Listener = l;
|
|
253
|
-
Owner = o;
|
|
254
|
-
let t;
|
|
255
|
-
runUpdates(fn, false);
|
|
256
|
-
Listener = Owner = null;
|
|
257
|
-
return t ? t.done : undefined;
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
function useTransition() {
|
|
261
|
-
return [transPending, startTransition];
|
|
262
|
-
}
|
|
263
|
-
function createContext(defaultValue, options) {
|
|
264
|
-
const id = Symbol("context");
|
|
265
|
-
return {
|
|
266
|
-
id,
|
|
267
|
-
Provider: createProvider(id),
|
|
268
|
-
defaultValue
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
function useContext(context) {
|
|
272
|
-
let ctx;
|
|
273
|
-
return (ctx = lookup(Owner, context.id)) !== undefined ? ctx : context.defaultValue;
|
|
274
|
-
}
|
|
275
|
-
function children(fn) {
|
|
276
|
-
const children = createMemo(fn);
|
|
277
|
-
const memo = createMemo(() => resolveChildren(children()));
|
|
278
|
-
memo.toArray = () => {
|
|
279
|
-
const c = memo();
|
|
280
|
-
return Array.isArray(c) ? c : c != null ? [c] : [];
|
|
281
|
-
};
|
|
282
|
-
return memo;
|
|
283
|
-
}
|
|
284
|
-
let SuspenseContext;
|
|
285
|
-
function readSignal() {
|
|
286
|
-
const runningTransition = Transition ;
|
|
287
|
-
if (this.sources && (this.state || runningTransition )) {
|
|
288
|
-
if (this.state === STALE || runningTransition ) updateComputation(this);else {
|
|
289
|
-
const updates = Updates;
|
|
290
|
-
Updates = null;
|
|
291
|
-
runUpdates(() => lookUpstream(this), false);
|
|
292
|
-
Updates = updates;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
if (Listener) {
|
|
296
|
-
const sSlot = this.observers ? this.observers.length : 0;
|
|
297
|
-
if (!Listener.sources) {
|
|
298
|
-
Listener.sources = [this];
|
|
299
|
-
Listener.sourceSlots = [sSlot];
|
|
300
|
-
} else {
|
|
301
|
-
Listener.sources.push(this);
|
|
302
|
-
Listener.sourceSlots.push(sSlot);
|
|
303
|
-
}
|
|
304
|
-
if (!this.observers) {
|
|
305
|
-
this.observers = [Listener];
|
|
306
|
-
this.observerSlots = [Listener.sources.length - 1];
|
|
307
|
-
} else {
|
|
308
|
-
this.observers.push(Listener);
|
|
309
|
-
this.observerSlots.push(Listener.sources.length - 1);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
return this.value;
|
|
313
|
-
}
|
|
314
|
-
function writeSignal(node, value, isComp) {
|
|
315
|
-
let current = node.value;
|
|
316
|
-
if (!node.comparator || !node.comparator(current, value)) {
|
|
317
|
-
node.value = value;
|
|
318
|
-
if (node.observers && node.observers.length) {
|
|
319
|
-
runUpdates(() => {
|
|
320
|
-
for (let i = 0; i < node.observers.length; i += 1) {
|
|
321
|
-
const o = node.observers[i];
|
|
322
|
-
const TransitionRunning = Transition && Transition.running;
|
|
323
|
-
if (TransitionRunning && Transition.disposed.has(o)) ;
|
|
324
|
-
if (TransitionRunning && !o.tState || !TransitionRunning && !o.state) {
|
|
325
|
-
if (o.pure) Updates.push(o);else Effects.push(o);
|
|
326
|
-
if (o.observers) markDownstream(o);
|
|
327
|
-
}
|
|
328
|
-
if (TransitionRunning) ;else o.state = STALE;
|
|
329
|
-
}
|
|
330
|
-
if (Updates.length > 10e5) {
|
|
331
|
-
Updates = [];
|
|
332
|
-
if (false) ;
|
|
333
|
-
throw new Error();
|
|
334
|
-
}
|
|
335
|
-
}, false);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
return value;
|
|
339
|
-
}
|
|
340
|
-
function updateComputation(node) {
|
|
341
|
-
if (!node.fn) return;
|
|
342
|
-
cleanNode(node);
|
|
343
|
-
const owner = Owner,
|
|
344
|
-
listener = Listener,
|
|
345
|
-
time = ExecCount;
|
|
346
|
-
Listener = Owner = node;
|
|
347
|
-
runComputation(node, node.value, time);
|
|
348
|
-
Listener = listener;
|
|
349
|
-
Owner = owner;
|
|
350
|
-
}
|
|
351
|
-
function runComputation(node, value, time) {
|
|
352
|
-
let nextValue;
|
|
353
|
-
try {
|
|
354
|
-
nextValue = node.fn(value);
|
|
355
|
-
} catch (err) {
|
|
356
|
-
if (node.pure) {
|
|
357
|
-
{
|
|
358
|
-
node.state = STALE;
|
|
359
|
-
node.owned && node.owned.forEach(cleanNode);
|
|
360
|
-
node.owned = null;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
node.updatedAt = time + 1;
|
|
364
|
-
return handleError(err);
|
|
365
|
-
}
|
|
366
|
-
if (!node.updatedAt || node.updatedAt <= time) {
|
|
367
|
-
if (node.updatedAt != null && "observers" in node) {
|
|
368
|
-
writeSignal(node, nextValue);
|
|
369
|
-
} else node.value = nextValue;
|
|
370
|
-
node.updatedAt = time;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
function createComputation(fn, init, pure, state = STALE, options) {
|
|
374
|
-
const c = {
|
|
375
|
-
fn,
|
|
376
|
-
state: state,
|
|
377
|
-
updatedAt: null,
|
|
378
|
-
owned: null,
|
|
379
|
-
sources: null,
|
|
380
|
-
sourceSlots: null,
|
|
381
|
-
cleanups: null,
|
|
382
|
-
value: init,
|
|
383
|
-
owner: Owner,
|
|
384
|
-
context: null,
|
|
385
|
-
pure
|
|
386
|
-
};
|
|
387
|
-
if (Owner === null) ;else if (Owner !== UNOWNED) {
|
|
388
|
-
{
|
|
389
|
-
if (!Owner.owned) Owner.owned = [c];else Owner.owned.push(c);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
return c;
|
|
393
|
-
}
|
|
394
|
-
function runTop(node) {
|
|
395
|
-
const runningTransition = Transition ;
|
|
396
|
-
if (node.state === 0 || runningTransition ) return;
|
|
397
|
-
if (node.state === PENDING || runningTransition ) return lookUpstream(node);
|
|
398
|
-
if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
|
|
399
|
-
const ancestors = [node];
|
|
400
|
-
while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
|
|
401
|
-
if (node.state || runningTransition ) ancestors.push(node);
|
|
402
|
-
}
|
|
403
|
-
for (let i = ancestors.length - 1; i >= 0; i--) {
|
|
404
|
-
node = ancestors[i];
|
|
405
|
-
if (node.state === STALE || runningTransition ) {
|
|
406
|
-
updateComputation(node);
|
|
407
|
-
} else if (node.state === PENDING || runningTransition ) {
|
|
408
|
-
const updates = Updates;
|
|
409
|
-
Updates = null;
|
|
410
|
-
runUpdates(() => lookUpstream(node, ancestors[0]), false);
|
|
411
|
-
Updates = updates;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
function runUpdates(fn, init) {
|
|
416
|
-
if (Updates) return fn();
|
|
417
|
-
let wait = false;
|
|
418
|
-
if (!init) Updates = [];
|
|
419
|
-
if (Effects) wait = true;else Effects = [];
|
|
420
|
-
ExecCount++;
|
|
421
|
-
try {
|
|
422
|
-
const res = fn();
|
|
423
|
-
completeUpdates(wait);
|
|
424
|
-
return res;
|
|
425
|
-
} catch (err) {
|
|
426
|
-
if (!wait) Effects = null;
|
|
427
|
-
Updates = null;
|
|
428
|
-
handleError(err);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
function completeUpdates(wait) {
|
|
432
|
-
if (Updates) {
|
|
433
|
-
runQueue(Updates);
|
|
434
|
-
Updates = null;
|
|
435
|
-
}
|
|
436
|
-
if (wait) return;
|
|
437
|
-
const e = Effects;
|
|
438
|
-
Effects = null;
|
|
439
|
-
if (e.length) runUpdates(() => runEffects(e), false);
|
|
440
|
-
}
|
|
441
|
-
function runQueue(queue) {
|
|
442
|
-
for (let i = 0; i < queue.length; i++) runTop(queue[i]);
|
|
443
|
-
}
|
|
444
|
-
function runUserEffects(queue) {
|
|
445
|
-
let i,
|
|
446
|
-
userLength = 0;
|
|
447
|
-
for (i = 0; i < queue.length; i++) {
|
|
448
|
-
const e = queue[i];
|
|
449
|
-
if (!e.user) runTop(e);else queue[userLength++] = e;
|
|
450
|
-
}
|
|
451
|
-
if (sharedConfig.context) setHydrateContext();
|
|
452
|
-
for (i = 0; i < userLength; i++) runTop(queue[i]);
|
|
453
|
-
}
|
|
454
|
-
function lookUpstream(node, ignore) {
|
|
455
|
-
const runningTransition = Transition ;
|
|
456
|
-
node.state = 0;
|
|
457
|
-
for (let i = 0; i < node.sources.length; i += 1) {
|
|
458
|
-
const source = node.sources[i];
|
|
459
|
-
if (source.sources) {
|
|
460
|
-
if (source.state === STALE || runningTransition ) {
|
|
461
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
462
|
-
} else if (source.state === PENDING || runningTransition ) lookUpstream(source, ignore);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
function markDownstream(node) {
|
|
467
|
-
const runningTransition = Transition ;
|
|
468
|
-
for (let i = 0; i < node.observers.length; i += 1) {
|
|
469
|
-
const o = node.observers[i];
|
|
470
|
-
if (!o.state || runningTransition ) {
|
|
471
|
-
o.state = PENDING;
|
|
472
|
-
if (o.pure) Updates.push(o);else Effects.push(o);
|
|
473
|
-
o.observers && markDownstream(o);
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
function cleanNode(node) {
|
|
478
|
-
let i;
|
|
479
|
-
if (node.sources) {
|
|
480
|
-
while (node.sources.length) {
|
|
481
|
-
const source = node.sources.pop(),
|
|
482
|
-
index = node.sourceSlots.pop(),
|
|
483
|
-
obs = source.observers;
|
|
484
|
-
if (obs && obs.length) {
|
|
485
|
-
const n = obs.pop(),
|
|
486
|
-
s = source.observerSlots.pop();
|
|
487
|
-
if (index < obs.length) {
|
|
488
|
-
n.sourceSlots[s] = index;
|
|
489
|
-
obs[index] = n;
|
|
490
|
-
source.observerSlots[index] = s;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
if (node.owned) {
|
|
496
|
-
for (i = 0; i < node.owned.length; i++) cleanNode(node.owned[i]);
|
|
497
|
-
node.owned = null;
|
|
498
|
-
}
|
|
499
|
-
if (node.cleanups) {
|
|
500
|
-
for (i = 0; i < node.cleanups.length; i++) node.cleanups[i]();
|
|
501
|
-
node.cleanups = null;
|
|
502
|
-
}
|
|
503
|
-
node.state = 0;
|
|
504
|
-
node.context = null;
|
|
505
|
-
}
|
|
506
|
-
function castError(err) {
|
|
507
|
-
if (err instanceof Error || typeof err === "string") return err;
|
|
508
|
-
return new Error("Unknown error");
|
|
509
|
-
}
|
|
510
|
-
function handleError(err) {
|
|
511
|
-
err = castError(err);
|
|
512
|
-
throw err;
|
|
513
|
-
}
|
|
514
|
-
function lookup(owner, key) {
|
|
515
|
-
return owner ? owner.context && owner.context[key] !== undefined ? owner.context[key] : lookup(owner.owner, key) : undefined;
|
|
516
|
-
}
|
|
517
|
-
function resolveChildren(children) {
|
|
518
|
-
if (typeof children === "function" && !children.length) return resolveChildren(children());
|
|
519
|
-
if (Array.isArray(children)) {
|
|
520
|
-
const results = [];
|
|
521
|
-
for (let i = 0; i < children.length; i++) {
|
|
522
|
-
const result = resolveChildren(children[i]);
|
|
523
|
-
Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
|
|
524
|
-
}
|
|
525
|
-
return results;
|
|
526
|
-
}
|
|
527
|
-
return children;
|
|
528
|
-
}
|
|
529
|
-
function createProvider(id, options) {
|
|
530
|
-
return function provider(props) {
|
|
531
|
-
let res;
|
|
532
|
-
createRenderEffect(() => res = untrack(() => {
|
|
533
|
-
Owner.context = {
|
|
534
|
-
[id]: props.value
|
|
535
|
-
};
|
|
536
|
-
return children(() => props.children);
|
|
537
|
-
}), undefined);
|
|
538
|
-
return res;
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
const FALLBACK = Symbol("fallback");
|
|
542
|
-
function dispose(d) {
|
|
543
|
-
for (let i = 0; i < d.length; i++) d[i]();
|
|
544
|
-
}
|
|
545
|
-
function mapArray(list, mapFn, options = {}) {
|
|
546
|
-
let items = [],
|
|
547
|
-
mapped = [],
|
|
548
|
-
disposers = [],
|
|
549
|
-
len = 0,
|
|
550
|
-
indexes = mapFn.length > 1 ? [] : null;
|
|
551
|
-
onCleanup(() => dispose(disposers));
|
|
552
|
-
return () => {
|
|
553
|
-
let newItems = list() || [],
|
|
554
|
-
i,
|
|
555
|
-
j;
|
|
556
|
-
newItems[$TRACK];
|
|
557
|
-
return untrack(() => {
|
|
558
|
-
let newLen = newItems.length,
|
|
559
|
-
newIndices,
|
|
560
|
-
newIndicesNext,
|
|
561
|
-
temp,
|
|
562
|
-
tempdisposers,
|
|
563
|
-
tempIndexes,
|
|
564
|
-
start,
|
|
565
|
-
end,
|
|
566
|
-
newEnd,
|
|
567
|
-
item;
|
|
568
|
-
if (newLen === 0) {
|
|
569
|
-
if (len !== 0) {
|
|
570
|
-
dispose(disposers);
|
|
571
|
-
disposers = [];
|
|
572
|
-
items = [];
|
|
573
|
-
mapped = [];
|
|
574
|
-
len = 0;
|
|
575
|
-
indexes && (indexes = []);
|
|
576
|
-
}
|
|
577
|
-
if (options.fallback) {
|
|
578
|
-
items = [FALLBACK];
|
|
579
|
-
mapped[0] = createRoot(disposer => {
|
|
580
|
-
disposers[0] = disposer;
|
|
581
|
-
return options.fallback();
|
|
582
|
-
});
|
|
583
|
-
len = 1;
|
|
584
|
-
}
|
|
585
|
-
} else if (len === 0) {
|
|
586
|
-
mapped = new Array(newLen);
|
|
587
|
-
for (j = 0; j < newLen; j++) {
|
|
588
|
-
items[j] = newItems[j];
|
|
589
|
-
mapped[j] = createRoot(mapper);
|
|
590
|
-
}
|
|
591
|
-
len = newLen;
|
|
592
|
-
} else {
|
|
593
|
-
temp = new Array(newLen);
|
|
594
|
-
tempdisposers = new Array(newLen);
|
|
595
|
-
indexes && (tempIndexes = new Array(newLen));
|
|
596
|
-
for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++);
|
|
597
|
-
for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
|
|
598
|
-
temp[newEnd] = mapped[end];
|
|
599
|
-
tempdisposers[newEnd] = disposers[end];
|
|
600
|
-
indexes && (tempIndexes[newEnd] = indexes[end]);
|
|
601
|
-
}
|
|
602
|
-
newIndices = new Map();
|
|
603
|
-
newIndicesNext = new Array(newEnd + 1);
|
|
604
|
-
for (j = newEnd; j >= start; j--) {
|
|
605
|
-
item = newItems[j];
|
|
606
|
-
i = newIndices.get(item);
|
|
607
|
-
newIndicesNext[j] = i === undefined ? -1 : i;
|
|
608
|
-
newIndices.set(item, j);
|
|
609
|
-
}
|
|
610
|
-
for (i = start; i <= end; i++) {
|
|
611
|
-
item = items[i];
|
|
612
|
-
j = newIndices.get(item);
|
|
613
|
-
if (j !== undefined && j !== -1) {
|
|
614
|
-
temp[j] = mapped[i];
|
|
615
|
-
tempdisposers[j] = disposers[i];
|
|
616
|
-
indexes && (tempIndexes[j] = indexes[i]);
|
|
617
|
-
j = newIndicesNext[j];
|
|
618
|
-
newIndices.set(item, j);
|
|
619
|
-
} else disposers[i]();
|
|
620
|
-
}
|
|
621
|
-
for (j = start; j < newLen; j++) {
|
|
622
|
-
if (j in temp) {
|
|
623
|
-
mapped[j] = temp[j];
|
|
624
|
-
disposers[j] = tempdisposers[j];
|
|
625
|
-
if (indexes) {
|
|
626
|
-
indexes[j] = tempIndexes[j];
|
|
627
|
-
indexes[j](j);
|
|
628
|
-
}
|
|
629
|
-
} else mapped[j] = createRoot(mapper);
|
|
630
|
-
}
|
|
631
|
-
mapped = mapped.slice(0, len = newLen);
|
|
632
|
-
items = newItems.slice(0);
|
|
633
|
-
}
|
|
634
|
-
return mapped;
|
|
635
|
-
});
|
|
636
|
-
function mapper(disposer) {
|
|
637
|
-
disposers[j] = disposer;
|
|
638
|
-
if (indexes) {
|
|
639
|
-
const [s, set] = createSignal(j);
|
|
640
|
-
indexes[j] = set;
|
|
641
|
-
return mapFn(newItems[j], s);
|
|
642
|
-
}
|
|
643
|
-
return mapFn(newItems[j]);
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
function indexArray(list, mapFn, options = {}) {
|
|
648
|
-
let items = [],
|
|
649
|
-
mapped = [],
|
|
650
|
-
disposers = [],
|
|
651
|
-
signals = [],
|
|
652
|
-
len = 0,
|
|
653
|
-
i;
|
|
654
|
-
onCleanup(() => dispose(disposers));
|
|
655
|
-
return () => {
|
|
656
|
-
const newItems = list() || [];
|
|
657
|
-
newItems[$TRACK];
|
|
658
|
-
return untrack(() => {
|
|
659
|
-
if (newItems.length === 0) {
|
|
660
|
-
if (len !== 0) {
|
|
661
|
-
dispose(disposers);
|
|
662
|
-
disposers = [];
|
|
663
|
-
items = [];
|
|
664
|
-
mapped = [];
|
|
665
|
-
len = 0;
|
|
666
|
-
signals = [];
|
|
667
|
-
}
|
|
668
|
-
if (options.fallback) {
|
|
669
|
-
items = [FALLBACK];
|
|
670
|
-
mapped[0] = createRoot(disposer => {
|
|
671
|
-
disposers[0] = disposer;
|
|
672
|
-
return options.fallback();
|
|
673
|
-
});
|
|
674
|
-
len = 1;
|
|
675
|
-
}
|
|
676
|
-
return mapped;
|
|
677
|
-
}
|
|
678
|
-
if (items[0] === FALLBACK) {
|
|
679
|
-
disposers[0]();
|
|
680
|
-
disposers = [];
|
|
681
|
-
items = [];
|
|
682
|
-
mapped = [];
|
|
683
|
-
len = 0;
|
|
684
|
-
}
|
|
685
|
-
for (i = 0; i < newItems.length; i++) {
|
|
686
|
-
if (i < items.length && items[i] !== newItems[i]) {
|
|
687
|
-
signals[i](() => newItems[i]);
|
|
688
|
-
} else if (i >= items.length) {
|
|
689
|
-
mapped[i] = createRoot(mapper);
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
for (; i < items.length; i++) {
|
|
693
|
-
disposers[i]();
|
|
694
|
-
}
|
|
695
|
-
len = signals.length = disposers.length = newItems.length;
|
|
696
|
-
items = newItems.slice(0);
|
|
697
|
-
return mapped = mapped.slice(0, len);
|
|
698
|
-
});
|
|
699
|
-
function mapper(disposer) {
|
|
700
|
-
disposers[i] = disposer;
|
|
701
|
-
const [s, set] = createSignal(newItems[i]);
|
|
702
|
-
signals[i] = set;
|
|
703
|
-
return mapFn(s, i);
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
|
-
}
|
|
707
|
-
function createComponent(Comp, props) {
|
|
708
|
-
return untrack(() => Comp(props || {}));
|
|
709
|
-
}
|
|
710
|
-
function trueFn() {
|
|
711
|
-
return true;
|
|
712
|
-
}
|
|
713
|
-
const propTraps = {
|
|
714
|
-
get(_, property, receiver) {
|
|
715
|
-
if (property === $PROXY) return receiver;
|
|
716
|
-
return _.get(property);
|
|
717
|
-
},
|
|
718
|
-
has(_, property) {
|
|
719
|
-
if (property === $PROXY) return true;
|
|
720
|
-
return _.has(property);
|
|
721
|
-
},
|
|
722
|
-
set: trueFn,
|
|
723
|
-
deleteProperty: trueFn,
|
|
724
|
-
getOwnPropertyDescriptor(_, property) {
|
|
725
|
-
return {
|
|
726
|
-
configurable: true,
|
|
727
|
-
enumerable: true,
|
|
728
|
-
get() {
|
|
729
|
-
return _.get(property);
|
|
730
|
-
},
|
|
731
|
-
set: trueFn,
|
|
732
|
-
deleteProperty: trueFn
|
|
733
|
-
};
|
|
734
|
-
},
|
|
735
|
-
ownKeys(_) {
|
|
736
|
-
return _.keys();
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
function resolveSource(s) {
|
|
740
|
-
return !(s = typeof s === "function" ? s() : s) ? {} : s;
|
|
741
|
-
}
|
|
742
|
-
function mergeProps(...sources) {
|
|
743
|
-
let proxy = false;
|
|
744
|
-
for (let i = 0; i < sources.length; i++) {
|
|
745
|
-
const s = sources[i];
|
|
746
|
-
proxy = proxy || !!s && $PROXY in s;
|
|
747
|
-
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
748
|
-
}
|
|
749
|
-
if (proxy) {
|
|
750
|
-
return new Proxy({
|
|
751
|
-
get(property) {
|
|
752
|
-
for (let i = sources.length - 1; i >= 0; i--) {
|
|
753
|
-
const v = resolveSource(sources[i])[property];
|
|
754
|
-
if (v !== undefined) return v;
|
|
755
|
-
}
|
|
756
|
-
},
|
|
757
|
-
has(property) {
|
|
758
|
-
for (let i = sources.length - 1; i >= 0; i--) {
|
|
759
|
-
if (property in resolveSource(sources[i])) return true;
|
|
760
|
-
}
|
|
761
|
-
return false;
|
|
762
|
-
},
|
|
763
|
-
keys() {
|
|
764
|
-
const keys = [];
|
|
765
|
-
for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
|
|
766
|
-
return [...new Set(keys)];
|
|
767
|
-
}
|
|
768
|
-
}, propTraps);
|
|
769
|
-
}
|
|
770
|
-
const target = {};
|
|
771
|
-
for (let i = sources.length - 1; i >= 0; i--) {
|
|
772
|
-
if (sources[i]) {
|
|
773
|
-
const descriptors = Object.getOwnPropertyDescriptors(sources[i]);
|
|
774
|
-
for (const key in descriptors) {
|
|
775
|
-
if (key in target) continue;
|
|
776
|
-
Object.defineProperty(target, key, {
|
|
777
|
-
enumerable: true,
|
|
778
|
-
get() {
|
|
779
|
-
for (let i = sources.length - 1; i >= 0; i--) {
|
|
780
|
-
const v = (sources[i] || {})[key];
|
|
781
|
-
if (v !== undefined) return v;
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
return target;
|
|
789
|
-
}
|
|
790
|
-
function lazy(fn) {
|
|
791
|
-
let comp;
|
|
792
|
-
let p;
|
|
793
|
-
const wrap = props => {
|
|
794
|
-
const ctx = sharedConfig.context;
|
|
795
|
-
if (ctx) {
|
|
796
|
-
const [s, set] = createSignal();
|
|
797
|
-
(p || (p = fn())).then(mod => {
|
|
798
|
-
setHydrateContext(ctx);
|
|
799
|
-
set(() => mod.default);
|
|
800
|
-
setHydrateContext();
|
|
801
|
-
});
|
|
802
|
-
comp = s;
|
|
803
|
-
} else if (!comp) {
|
|
804
|
-
const [s] = createResource(() => (p || (p = fn())).then(mod => mod.default));
|
|
805
|
-
comp = s;
|
|
806
|
-
}
|
|
807
|
-
let Comp;
|
|
808
|
-
return createMemo(() => (Comp = comp()) && untrack(() => {
|
|
809
|
-
if (false) ;
|
|
810
|
-
if (!ctx) return Comp(props);
|
|
811
|
-
const c = sharedConfig.context;
|
|
812
|
-
setHydrateContext(ctx);
|
|
813
|
-
const r = Comp(props);
|
|
814
|
-
setHydrateContext(c);
|
|
815
|
-
return r;
|
|
816
|
-
}));
|
|
817
|
-
};
|
|
818
|
-
wrap.preload = () => p || ((p = fn()).then(mod => comp = () => mod.default), p);
|
|
819
|
-
return wrap;
|
|
820
|
-
}
|
|
821
|
-
function For(props) {
|
|
822
|
-
const fallback = "fallback" in props && {
|
|
823
|
-
fallback: () => props.fallback
|
|
824
|
-
};
|
|
825
|
-
return createMemo(mapArray(() => props.each, props.children, fallback || undefined));
|
|
826
|
-
}
|
|
827
|
-
function Index(props) {
|
|
828
|
-
const fallback = "fallback" in props && {
|
|
829
|
-
fallback: () => props.fallback
|
|
830
|
-
};
|
|
831
|
-
return createMemo(indexArray(() => props.each, props.children, fallback || undefined));
|
|
832
|
-
}
|
|
833
|
-
function Show(props) {
|
|
834
|
-
let strictEqual = false;
|
|
835
|
-
const keyed = props.keyed;
|
|
836
|
-
const condition = createMemo(() => props.when, undefined, {
|
|
837
|
-
equals: (a, b) => strictEqual ? a === b : !a === !b
|
|
838
|
-
});
|
|
839
|
-
return createMemo(() => {
|
|
840
|
-
const c = condition();
|
|
841
|
-
if (c) {
|
|
842
|
-
const child = props.children;
|
|
843
|
-
const fn = typeof child === "function" && child.length > 0;
|
|
844
|
-
strictEqual = keyed || fn;
|
|
845
|
-
return fn ? untrack(() => child(c)) : child;
|
|
846
|
-
}
|
|
847
|
-
return props.fallback;
|
|
848
|
-
}, undefined, undefined);
|
|
849
|
-
}
|
|
850
|
-
function Switch(props) {
|
|
851
|
-
let strictEqual = false;
|
|
852
|
-
let keyed = false;
|
|
853
|
-
const equals = (a, b) => a[0] === b[0] && (strictEqual ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
|
|
854
|
-
const conditions = children(() => props.children),
|
|
855
|
-
evalConditions = createMemo(() => {
|
|
856
|
-
let conds = conditions();
|
|
857
|
-
if (!Array.isArray(conds)) conds = [conds];
|
|
858
|
-
for (let i = 0; i < conds.length; i++) {
|
|
859
|
-
const c = conds[i].when;
|
|
860
|
-
if (c) {
|
|
861
|
-
keyed = !!conds[i].keyed;
|
|
862
|
-
return [i, c, conds[i]];
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
return [-1];
|
|
866
|
-
}, undefined, {
|
|
867
|
-
equals
|
|
868
|
-
});
|
|
869
|
-
return createMemo(() => {
|
|
870
|
-
const [index, when, cond] = evalConditions();
|
|
871
|
-
if (index < 0) return props.fallback;
|
|
872
|
-
const c = cond.children;
|
|
873
|
-
const fn = typeof c === "function" && c.length > 0;
|
|
874
|
-
strictEqual = keyed || fn;
|
|
875
|
-
return fn ? untrack(() => c(when)) : c;
|
|
876
|
-
}, undefined, undefined);
|
|
877
|
-
}
|
|
878
|
-
function Match(props) {
|
|
879
|
-
return props;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
883
|
-
const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
884
|
-
const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
|
|
885
|
-
const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
886
|
-
className: "class",
|
|
887
|
-
htmlFor: "for"
|
|
888
|
-
});
|
|
889
|
-
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
890
|
-
class: "className",
|
|
891
|
-
formnovalidate: "formNoValidate",
|
|
892
|
-
ismap: "isMap",
|
|
893
|
-
nomodule: "noModule",
|
|
894
|
-
playsinline: "playsInline",
|
|
895
|
-
readonly: "readOnly"
|
|
896
|
-
});
|
|
897
|
-
const DelegatedEvents = /*#__PURE__*/new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
898
|
-
const SVGNamespace = {
|
|
899
|
-
xlink: "http://www.w3.org/1999/xlink",
|
|
900
|
-
xml: "http://www.w3.org/XML/1998/namespace"
|
|
901
|
-
};
|
|
902
|
-
function reconcileArrays(parentNode, a, b) {
|
|
903
|
-
let bLength = b.length,
|
|
904
|
-
aEnd = a.length,
|
|
905
|
-
bEnd = bLength,
|
|
906
|
-
aStart = 0,
|
|
907
|
-
bStart = 0,
|
|
908
|
-
after = a[aEnd - 1].nextSibling,
|
|
909
|
-
map = null;
|
|
910
|
-
while (aStart < aEnd || bStart < bEnd) {
|
|
911
|
-
if (a[aStart] === b[bStart]) {
|
|
912
|
-
aStart++;
|
|
913
|
-
bStart++;
|
|
914
|
-
continue;
|
|
915
|
-
}
|
|
916
|
-
while (a[aEnd - 1] === b[bEnd - 1]) {
|
|
917
|
-
aEnd--;
|
|
918
|
-
bEnd--;
|
|
919
|
-
}
|
|
920
|
-
if (aEnd === aStart) {
|
|
921
|
-
const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
|
|
922
|
-
while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
|
|
923
|
-
} else if (bEnd === bStart) {
|
|
924
|
-
while (aStart < aEnd) {
|
|
925
|
-
if (!map || !map.has(a[aStart])) a[aStart].remove();
|
|
926
|
-
aStart++;
|
|
927
|
-
}
|
|
928
|
-
} else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
|
|
929
|
-
const node = a[--aEnd].nextSibling;
|
|
930
|
-
parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
|
|
931
|
-
parentNode.insertBefore(b[--bEnd], node);
|
|
932
|
-
a[aEnd] = b[bEnd];
|
|
933
|
-
} else {
|
|
934
|
-
if (!map) {
|
|
935
|
-
map = new Map();
|
|
936
|
-
let i = bStart;
|
|
937
|
-
while (i < bEnd) map.set(b[i], i++);
|
|
938
|
-
}
|
|
939
|
-
const index = map.get(a[aStart]);
|
|
940
|
-
if (index != null) {
|
|
941
|
-
if (bStart < index && index < bEnd) {
|
|
942
|
-
let i = aStart,
|
|
943
|
-
sequence = 1,
|
|
944
|
-
t;
|
|
945
|
-
while (++i < aEnd && i < bEnd) {
|
|
946
|
-
if ((t = map.get(a[i])) == null || t !== index + sequence) break;
|
|
947
|
-
sequence++;
|
|
948
|
-
}
|
|
949
|
-
if (sequence > index - bStart) {
|
|
950
|
-
const node = a[aStart];
|
|
951
|
-
while (bStart < index) parentNode.insertBefore(b[bStart++], node);
|
|
952
|
-
} else parentNode.replaceChild(b[bStart++], a[aStart++]);
|
|
953
|
-
} else aStart++;
|
|
954
|
-
} else a[aStart++].remove();
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
const $$EVENTS = "_$DX_DELEGATE";
|
|
959
|
-
function render(code, element, init, options = {}) {
|
|
960
|
-
let disposer;
|
|
961
|
-
createRoot(dispose => {
|
|
962
|
-
disposer = dispose;
|
|
963
|
-
element === document ? code() : insert(element, code(), element.firstChild ? null : undefined, init);
|
|
964
|
-
}, options.owner);
|
|
965
|
-
return () => {
|
|
966
|
-
disposer();
|
|
967
|
-
element.textContent = "";
|
|
968
|
-
};
|
|
969
|
-
}
|
|
970
|
-
function template(html, check, isSVG) {
|
|
971
|
-
const t = document.createElement("template");
|
|
972
|
-
t.innerHTML = html;
|
|
973
|
-
if (check && t.innerHTML.split("<").length - 1 !== check) throw `The browser resolved template HTML does not match JSX input:\n${t.innerHTML}\n\n${html}. Is your HTML properly formed?`;
|
|
974
|
-
let node = t.content.firstChild;
|
|
975
|
-
if (isSVG) node = node.firstChild;
|
|
976
|
-
return node;
|
|
977
|
-
}
|
|
978
|
-
function delegateEvents(eventNames, document = window.document) {
|
|
979
|
-
const e = document[$$EVENTS] || (document[$$EVENTS] = new Set());
|
|
980
|
-
for (let i = 0, l = eventNames.length; i < l; i++) {
|
|
981
|
-
const name = eventNames[i];
|
|
982
|
-
if (!e.has(name)) {
|
|
983
|
-
e.add(name);
|
|
984
|
-
document.addEventListener(name, eventHandler);
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
function setAttribute(node, name, value) {
|
|
989
|
-
if (value == null) node.removeAttribute(name);else node.setAttribute(name, value);
|
|
990
|
-
}
|
|
991
|
-
function setAttributeNS(node, namespace, name, value) {
|
|
992
|
-
if (value == null) node.removeAttributeNS(namespace, name);else node.setAttributeNS(namespace, name, value);
|
|
993
|
-
}
|
|
994
|
-
function className(node, value) {
|
|
995
|
-
if (value == null) node.removeAttribute("class");else node.className = value;
|
|
996
|
-
}
|
|
997
|
-
function addEventListener(node, name, handler, delegate) {
|
|
998
|
-
if (delegate) {
|
|
999
|
-
if (Array.isArray(handler)) {
|
|
1000
|
-
node[`$$${name}`] = handler[0];
|
|
1001
|
-
node[`$$${name}Data`] = handler[1];
|
|
1002
|
-
} else node[`$$${name}`] = handler;
|
|
1003
|
-
} else if (Array.isArray(handler)) {
|
|
1004
|
-
const handlerFn = handler[0];
|
|
1005
|
-
node.addEventListener(name, handler[0] = e => handlerFn.call(node, handler[1], e));
|
|
1006
|
-
} else node.addEventListener(name, handler);
|
|
1007
|
-
}
|
|
1008
|
-
function classList(node, value, prev = {}) {
|
|
1009
|
-
const classKeys = Object.keys(value || {}),
|
|
1010
|
-
prevKeys = Object.keys(prev);
|
|
1011
|
-
let i, len;
|
|
1012
|
-
for (i = 0, len = prevKeys.length; i < len; i++) {
|
|
1013
|
-
const key = prevKeys[i];
|
|
1014
|
-
if (!key || key === "undefined" || value[key]) continue;
|
|
1015
|
-
toggleClassKey(node, key, false);
|
|
1016
|
-
delete prev[key];
|
|
1017
|
-
}
|
|
1018
|
-
for (i = 0, len = classKeys.length; i < len; i++) {
|
|
1019
|
-
const key = classKeys[i],
|
|
1020
|
-
classValue = !!value[key];
|
|
1021
|
-
if (!key || key === "undefined" || prev[key] === classValue || !classValue) continue;
|
|
1022
|
-
toggleClassKey(node, key, true);
|
|
1023
|
-
prev[key] = classValue;
|
|
1024
|
-
}
|
|
1025
|
-
return prev;
|
|
1026
|
-
}
|
|
1027
|
-
function style(node, value, prev) {
|
|
1028
|
-
if (!value) return prev ? setAttribute(node, "style") : value;
|
|
1029
|
-
const nodeStyle = node.style;
|
|
1030
|
-
if (typeof value === "string") return nodeStyle.cssText = value;
|
|
1031
|
-
typeof prev === "string" && (nodeStyle.cssText = prev = undefined);
|
|
1032
|
-
prev || (prev = {});
|
|
1033
|
-
value || (value = {});
|
|
1034
|
-
let v, s;
|
|
1035
|
-
for (s in prev) {
|
|
1036
|
-
value[s] == null && nodeStyle.removeProperty(s);
|
|
1037
|
-
delete prev[s];
|
|
1038
|
-
}
|
|
1039
|
-
for (s in value) {
|
|
1040
|
-
v = value[s];
|
|
1041
|
-
if (v !== prev[s]) {
|
|
1042
|
-
nodeStyle.setProperty(s, v);
|
|
1043
|
-
prev[s] = v;
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
return prev;
|
|
1047
|
-
}
|
|
1048
|
-
function spread(node, props = {}, isSVG, skipChildren) {
|
|
1049
|
-
const prevProps = {};
|
|
1050
|
-
if (!skipChildren) {
|
|
1051
|
-
createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
|
|
1052
|
-
}
|
|
1053
|
-
createRenderEffect(() => props.ref && props.ref(node));
|
|
1054
|
-
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
1055
|
-
return prevProps;
|
|
1056
|
-
}
|
|
1057
|
-
function use(fn, element, arg) {
|
|
1058
|
-
return untrack(() => fn(element, arg));
|
|
1059
|
-
}
|
|
1060
|
-
function insert(parent, accessor, marker, initial) {
|
|
1061
|
-
if (marker !== undefined && !initial) initial = [];
|
|
1062
|
-
if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
|
|
1063
|
-
createRenderEffect(current => insertExpression(parent, accessor(), current, marker), initial);
|
|
1064
|
-
}
|
|
1065
|
-
function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = false) {
|
|
1066
|
-
props || (props = {});
|
|
1067
|
-
for (const prop in prevProps) {
|
|
1068
|
-
if (!(prop in props)) {
|
|
1069
|
-
if (prop === "children") continue;
|
|
1070
|
-
prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef);
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
for (const prop in props) {
|
|
1074
|
-
if (prop === "children") {
|
|
1075
|
-
if (!skipChildren) insertExpression(node, props.children);
|
|
1076
|
-
continue;
|
|
1077
|
-
}
|
|
1078
|
-
const value = props[prop];
|
|
1079
|
-
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef);
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
function toPropertyName(name) {
|
|
1083
|
-
return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
|
|
1084
|
-
}
|
|
1085
|
-
function toggleClassKey(node, key, value) {
|
|
1086
|
-
const classNames = key.trim().split(/\s+/);
|
|
1087
|
-
for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
|
|
1088
|
-
}
|
|
1089
|
-
function assignProp(node, prop, value, prev, isSVG, skipRef) {
|
|
1090
|
-
let isCE, isProp, isChildProp;
|
|
1091
|
-
if (prop === "style") return style(node, value, prev);
|
|
1092
|
-
if (prop === "classList") return classList(node, value, prev);
|
|
1093
|
-
if (value === prev) return prev;
|
|
1094
|
-
if (prop === "ref") {
|
|
1095
|
-
if (!skipRef) value(node);
|
|
1096
|
-
} else if (prop.slice(0, 3) === "on:") {
|
|
1097
|
-
const e = prop.slice(3);
|
|
1098
|
-
prev && node.removeEventListener(e, prev);
|
|
1099
|
-
value && node.addEventListener(e, value);
|
|
1100
|
-
} else if (prop.slice(0, 10) === "oncapture:") {
|
|
1101
|
-
const e = prop.slice(10);
|
|
1102
|
-
prev && node.removeEventListener(e, prev, true);
|
|
1103
|
-
value && node.addEventListener(e, value, true);
|
|
1104
|
-
} else if (prop.slice(0, 2) === "on") {
|
|
1105
|
-
const name = prop.slice(2).toLowerCase();
|
|
1106
|
-
const delegate = DelegatedEvents.has(name);
|
|
1107
|
-
if (!delegate && prev) {
|
|
1108
|
-
const h = Array.isArray(prev) ? prev[0] : prev;
|
|
1109
|
-
node.removeEventListener(name, h);
|
|
1110
|
-
}
|
|
1111
|
-
if (delegate || value) {
|
|
1112
|
-
addEventListener(node, name, value, delegate);
|
|
1113
|
-
delegate && delegateEvents([name]);
|
|
1114
|
-
}
|
|
1115
|
-
} else if ((isChildProp = ChildProperties.has(prop)) || !isSVG && (PropAliases[prop] || (isProp = Properties.has(prop))) || (isCE = node.nodeName.includes("-"))) {
|
|
1116
|
-
if (prop === "class" || prop === "className") className(node, value);else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;else node[PropAliases[prop] || prop] = value;
|
|
1117
|
-
} else {
|
|
1118
|
-
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
1119
|
-
if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
|
|
1120
|
-
}
|
|
1121
|
-
return value;
|
|
1122
|
-
}
|
|
1123
|
-
function eventHandler(e) {
|
|
1124
|
-
const key = `$$${e.type}`;
|
|
1125
|
-
let node = e.composedPath && e.composedPath()[0] || e.target;
|
|
1126
|
-
if (e.target !== node) {
|
|
1127
|
-
Object.defineProperty(e, "target", {
|
|
1128
|
-
configurable: true,
|
|
1129
|
-
value: node
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
Object.defineProperty(e, "currentTarget", {
|
|
1133
|
-
configurable: true,
|
|
1134
|
-
get() {
|
|
1135
|
-
return node || document;
|
|
1136
|
-
}
|
|
1137
|
-
});
|
|
1138
|
-
if (sharedConfig.registry && !sharedConfig.done) sharedConfig.done = _$HY.done = true;
|
|
1139
|
-
while (node) {
|
|
1140
|
-
const handler = node[key];
|
|
1141
|
-
if (handler && !node.disabled) {
|
|
1142
|
-
const data = node[`${key}Data`];
|
|
1143
|
-
data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
|
|
1144
|
-
if (e.cancelBubble) return;
|
|
1145
|
-
}
|
|
1146
|
-
node = node._$host || node.parentNode || node.host;
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
1150
|
-
if (sharedConfig.context) {
|
|
1151
|
-
!current && (current = [...parent.childNodes]);
|
|
1152
|
-
let cleaned = [];
|
|
1153
|
-
for (let i = 0; i < current.length; i++) {
|
|
1154
|
-
const node = current[i];
|
|
1155
|
-
if (node.nodeType === 8 && node.data === "!") node.remove();else cleaned.push(node);
|
|
1156
|
-
}
|
|
1157
|
-
current = cleaned;
|
|
1158
|
-
}
|
|
1159
|
-
while (typeof current === "function") current = current();
|
|
1160
|
-
if (value === current) return current;
|
|
1161
|
-
const t = typeof value,
|
|
1162
|
-
multi = marker !== undefined;
|
|
1163
|
-
parent = multi && current[0] && current[0].parentNode || parent;
|
|
1164
|
-
if (t === "string" || t === "number") {
|
|
1165
|
-
if (sharedConfig.context) return current;
|
|
1166
|
-
if (t === "number") value = value.toString();
|
|
1167
|
-
if (multi) {
|
|
1168
|
-
let node = current[0];
|
|
1169
|
-
if (node && node.nodeType === 3) {
|
|
1170
|
-
node.data = value;
|
|
1171
|
-
} else node = document.createTextNode(value);
|
|
1172
|
-
current = cleanChildren(parent, current, marker, node);
|
|
1173
|
-
} else {
|
|
1174
|
-
if (current !== "" && typeof current === "string") {
|
|
1175
|
-
current = parent.firstChild.data = value;
|
|
1176
|
-
} else current = parent.textContent = value;
|
|
1177
|
-
}
|
|
1178
|
-
} else if (value == null || t === "boolean") {
|
|
1179
|
-
if (sharedConfig.context) return current;
|
|
1180
|
-
current = cleanChildren(parent, current, marker);
|
|
1181
|
-
} else if (t === "function") {
|
|
1182
|
-
createRenderEffect(() => {
|
|
1183
|
-
let v = value();
|
|
1184
|
-
while (typeof v === "function") v = v();
|
|
1185
|
-
current = insertExpression(parent, v, current, marker);
|
|
1186
|
-
});
|
|
1187
|
-
return () => current;
|
|
1188
|
-
} else if (Array.isArray(value)) {
|
|
1189
|
-
const array = [];
|
|
1190
|
-
const currentArray = current && Array.isArray(current);
|
|
1191
|
-
if (normalizeIncomingArray(array, value, current, unwrapArray)) {
|
|
1192
|
-
createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
|
|
1193
|
-
return () => current;
|
|
1194
|
-
}
|
|
1195
|
-
if (sharedConfig.context) {
|
|
1196
|
-
if (!array.length) return current;
|
|
1197
|
-
for (let i = 0; i < array.length; i++) {
|
|
1198
|
-
if (array[i].parentNode) return current = array;
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
if (array.length === 0) {
|
|
1202
|
-
current = cleanChildren(parent, current, marker);
|
|
1203
|
-
if (multi) return current;
|
|
1204
|
-
} else if (currentArray) {
|
|
1205
|
-
if (current.length === 0) {
|
|
1206
|
-
appendNodes(parent, array, marker);
|
|
1207
|
-
} else reconcileArrays(parent, current, array);
|
|
1208
|
-
} else {
|
|
1209
|
-
current && cleanChildren(parent);
|
|
1210
|
-
appendNodes(parent, array);
|
|
1211
|
-
}
|
|
1212
|
-
current = array;
|
|
1213
|
-
} else if (value instanceof Node) {
|
|
1214
|
-
if (sharedConfig.context && value.parentNode) return current = multi ? [value] : value;
|
|
1215
|
-
if (Array.isArray(current)) {
|
|
1216
|
-
if (multi) return current = cleanChildren(parent, current, marker, value);
|
|
1217
|
-
cleanChildren(parent, current, null, value);
|
|
1218
|
-
} else if (current == null || current === "" || !parent.firstChild) {
|
|
1219
|
-
parent.appendChild(value);
|
|
1220
|
-
} else parent.replaceChild(value, parent.firstChild);
|
|
1221
|
-
current = value;
|
|
1222
|
-
} else console.warn(`Unrecognized value. Skipped inserting`, value);
|
|
1223
|
-
return current;
|
|
1224
|
-
}
|
|
1225
|
-
function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
1226
|
-
let dynamic = false;
|
|
1227
|
-
for (let i = 0, len = array.length; i < len; i++) {
|
|
1228
|
-
let item = array[i],
|
|
1229
|
-
prev = current && current[i];
|
|
1230
|
-
if (item instanceof Node) {
|
|
1231
|
-
normalized.push(item);
|
|
1232
|
-
} else if (item == null || item === true || item === false) ;else if (Array.isArray(item)) {
|
|
1233
|
-
dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
|
|
1234
|
-
} else if (typeof item === "function") {
|
|
1235
|
-
if (unwrap) {
|
|
1236
|
-
while (typeof item === "function") item = item();
|
|
1237
|
-
dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
|
|
1238
|
-
} else {
|
|
1239
|
-
normalized.push(item);
|
|
1240
|
-
dynamic = true;
|
|
1241
|
-
}
|
|
1242
|
-
} else {
|
|
1243
|
-
const value = String(item);
|
|
1244
|
-
if (prev && prev.nodeType === 3) {
|
|
1245
|
-
prev.data = value;
|
|
1246
|
-
normalized.push(prev);
|
|
1247
|
-
} else normalized.push(document.createTextNode(value));
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
return dynamic;
|
|
1251
|
-
}
|
|
1252
|
-
function appendNodes(parent, array, marker = null) {
|
|
1253
|
-
for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
|
|
1254
|
-
}
|
|
1255
|
-
function cleanChildren(parent, current, marker, replacement) {
|
|
1256
|
-
if (marker === undefined) return parent.textContent = "";
|
|
1257
|
-
const node = replacement || document.createTextNode("");
|
|
1258
|
-
if (current.length) {
|
|
1259
|
-
let inserted = false;
|
|
1260
|
-
for (let i = current.length - 1; i >= 0; i--) {
|
|
1261
|
-
const el = current[i];
|
|
1262
|
-
if (node !== el) {
|
|
1263
|
-
const isParent = el.parentNode === parent;
|
|
1264
|
-
if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);else isParent && el.remove();
|
|
1265
|
-
} else inserted = true;
|
|
1266
|
-
}
|
|
1267
|
-
} else parent.insertBefore(node, marker);
|
|
1268
|
-
return [node];
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
class TanstackQueryDevtools {
|
|
1272
|
-
isMounted = false;
|
|
1273
|
-
constructor(config) {
|
|
1274
|
-
const {
|
|
1275
|
-
client,
|
|
1276
|
-
queryFlavor,
|
|
1277
|
-
version,
|
|
1278
|
-
onlineManager,
|
|
1279
|
-
buttonPosition,
|
|
1280
|
-
position,
|
|
1281
|
-
initialIsOpen,
|
|
1282
|
-
errorTypes
|
|
1283
|
-
} = config;
|
|
1284
|
-
this.client = createSignal(client);
|
|
1285
|
-
this.queryFlavor = queryFlavor;
|
|
1286
|
-
this.version = version;
|
|
1287
|
-
this.onlineManager = onlineManager;
|
|
1288
|
-
this.buttonPosition = createSignal(buttonPosition);
|
|
1289
|
-
this.position = createSignal(position);
|
|
1290
|
-
this.initialIsOpen = createSignal(initialIsOpen);
|
|
1291
|
-
this.errorTypes = createSignal(errorTypes);
|
|
1292
|
-
}
|
|
1293
|
-
setButtonPosition(position) {
|
|
1294
|
-
this.buttonPosition[1](position);
|
|
1295
|
-
}
|
|
1296
|
-
setPosition(position) {
|
|
1297
|
-
this.position[1](position);
|
|
1298
|
-
}
|
|
1299
|
-
setInitialIsOpen(isOpen) {
|
|
1300
|
-
this.initialIsOpen[1](isOpen);
|
|
1301
|
-
}
|
|
1302
|
-
setErrorTypes(errorTypes) {
|
|
1303
|
-
this.errorTypes[1](errorTypes);
|
|
1304
|
-
}
|
|
1305
|
-
setClient(client) {
|
|
1306
|
-
this.client[1](client);
|
|
1307
|
-
}
|
|
1308
|
-
mount(el) {
|
|
1309
|
-
if (this.isMounted) {
|
|
1310
|
-
throw new Error('Devtools is already mounted');
|
|
1311
|
-
}
|
|
1312
|
-
const dispose = render(() => {
|
|
1313
|
-
const [btnPosition] = this.buttonPosition;
|
|
1314
|
-
const [pos] = this.position;
|
|
1315
|
-
const [isOpen] = this.initialIsOpen;
|
|
1316
|
-
const [errors] = this.errorTypes;
|
|
1317
|
-
const [queryClient] = this.client;
|
|
1318
|
-
let Devtools;
|
|
1319
|
-
if (this.Component) {
|
|
1320
|
-
Devtools = this.Component;
|
|
1321
|
-
} else {
|
|
1322
|
-
Devtools = lazy(() => Promise.resolve().then(function () { return require('./Devtools-5f8e85ff.js'); }));
|
|
1323
|
-
this.Component = Devtools;
|
|
1324
|
-
}
|
|
1325
|
-
const _self$ = this;
|
|
1326
|
-
return createComponent(Devtools, mergeProps({
|
|
1327
|
-
get queryFlavor() {
|
|
1328
|
-
return _self$.queryFlavor;
|
|
1329
|
-
},
|
|
1330
|
-
get version() {
|
|
1331
|
-
return _self$.version;
|
|
1332
|
-
},
|
|
1333
|
-
get onlineManager() {
|
|
1334
|
-
return _self$.onlineManager;
|
|
1335
|
-
}
|
|
1336
|
-
}, {
|
|
1337
|
-
get client() {
|
|
1338
|
-
return queryClient();
|
|
1339
|
-
},
|
|
1340
|
-
get buttonPosition() {
|
|
1341
|
-
return btnPosition();
|
|
1342
|
-
},
|
|
1343
|
-
get position() {
|
|
1344
|
-
return pos();
|
|
1345
|
-
},
|
|
1346
|
-
get initialIsOpen() {
|
|
1347
|
-
return isOpen();
|
|
1348
|
-
},
|
|
1349
|
-
get errorTypes() {
|
|
1350
|
-
return errors();
|
|
1351
|
-
}
|
|
1352
|
-
}));
|
|
1353
|
-
}, el);
|
|
1354
|
-
this.isMounted = true;
|
|
1355
|
-
this.dispose = dispose;
|
|
1356
|
-
}
|
|
1357
|
-
unmount() {
|
|
1358
|
-
if (!this.isMounted) {
|
|
1359
|
-
throw new Error('Devtools is not mounted');
|
|
1360
|
-
}
|
|
1361
|
-
this.dispose?.();
|
|
1362
|
-
this.isMounted = false;
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
exports.$TRACK = $TRACK;
|
|
1367
|
-
exports.For = For;
|
|
1368
|
-
exports.Index = Index;
|
|
1369
|
-
exports.Match = Match;
|
|
1370
|
-
exports.Show = Show;
|
|
1371
|
-
exports.Switch = Switch;
|
|
1372
|
-
exports.TanstackQueryDevtools = TanstackQueryDevtools;
|
|
1373
|
-
exports.addEventListener = addEventListener;
|
|
1374
|
-
exports.className = className;
|
|
1375
|
-
exports.createComponent = createComponent;
|
|
1376
|
-
exports.createContext = createContext;
|
|
1377
|
-
exports.createEffect = createEffect;
|
|
1378
|
-
exports.createMemo = createMemo;
|
|
1379
|
-
exports.createRenderEffect = createRenderEffect;
|
|
1380
|
-
exports.createRoot = createRoot;
|
|
1381
|
-
exports.createSignal = createSignal;
|
|
1382
|
-
exports.delegateEvents = delegateEvents;
|
|
1383
|
-
exports.insert = insert;
|
|
1384
|
-
exports.mergeProps = mergeProps;
|
|
1385
|
-
exports.on = on;
|
|
1386
|
-
exports.onCleanup = onCleanup;
|
|
1387
|
-
exports.onMount = onMount;
|
|
1388
|
-
exports.setAttribute = setAttribute;
|
|
1389
|
-
exports.spread = spread;
|
|
1390
|
-
exports.template = template;
|
|
1391
|
-
exports.untrack = untrack;
|
|
1392
|
-
exports.use = use;
|
|
1393
|
-
exports.useContext = useContext;
|
|
1394
|
-
exports.useTransition = useTransition;
|
|
1395
|
-
//# sourceMappingURL=index-db699afb.js.map
|