@jsenv/server 16.0.4 → 16.0.6
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/{html → client/route_inspector}/route_inspector.html +75 -818
- package/dist/jsenv_server.js +59 -428
- package/package.json +4 -4
- /package/dist/{html → client/default_body_4xx_5xx}/4xx.html +0 -0
- /package/dist/{html → client/error_handler}/500.html +0 -0
- /package/dist/{js → formidable_index}/formidable_index.js +0 -0
- /package/dist/{js → ws}/ws.js +0 -0
|
@@ -4,762 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Route inspector</title>
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
var runtime = (function (exports) {
|
|
16
|
-
|
|
17
|
-
var Op = Object.prototype;
|
|
18
|
-
var hasOwn = Op.hasOwnProperty;
|
|
19
|
-
var undefined$1; // More compressible than void 0.
|
|
20
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
21
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
22
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
23
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
24
|
-
|
|
25
|
-
function define(obj, key, value) {
|
|
26
|
-
Object.defineProperty(obj, key, {
|
|
27
|
-
value: value,
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true,
|
|
30
|
-
writable: true
|
|
31
|
-
});
|
|
32
|
-
return obj[key];
|
|
33
|
-
}
|
|
34
|
-
try {
|
|
35
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
36
|
-
define({}, "");
|
|
37
|
-
} catch (err) {
|
|
38
|
-
define = function(obj, key, value) {
|
|
39
|
-
return obj[key] = value;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
44
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
45
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
46
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
47
|
-
var context = new Context(tryLocsList || []);
|
|
48
|
-
|
|
49
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
50
|
-
// .throw, and .return methods.
|
|
51
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
52
|
-
|
|
53
|
-
return generator;
|
|
54
|
-
}
|
|
55
|
-
exports.wrap = wrap;
|
|
56
|
-
|
|
57
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
58
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
59
|
-
// have been (and was previously) designed to take a closure to be
|
|
60
|
-
// invoked without arguments, but in all the cases we care about we
|
|
61
|
-
// already have an existing method we want to call, so there's no need
|
|
62
|
-
// to create a new function object. We can even get away with assuming
|
|
63
|
-
// the method takes exactly one argument, since that happens to be true
|
|
64
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
65
|
-
// only additional allocation required is the completion record, which
|
|
66
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
67
|
-
function tryCatch(fn, obj, arg) {
|
|
68
|
-
try {
|
|
69
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
|
70
|
-
} catch (err) {
|
|
71
|
-
return { type: "throw", arg: err };
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
76
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
77
|
-
var GenStateExecuting = "executing";
|
|
78
|
-
var GenStateCompleted = "completed";
|
|
79
|
-
|
|
80
|
-
// Returning this object from the innerFn has the same effect as
|
|
81
|
-
// breaking out of the dispatch switch statement.
|
|
82
|
-
var ContinueSentinel = {};
|
|
83
|
-
|
|
84
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
85
|
-
// .constructor.prototype properties for functions that return Generator
|
|
86
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
87
|
-
// minifier not to mangle the names of these two functions.
|
|
88
|
-
function Generator() {}
|
|
89
|
-
function GeneratorFunction() {}
|
|
90
|
-
function GeneratorFunctionPrototype() {}
|
|
91
|
-
|
|
92
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
93
|
-
// don't natively support it.
|
|
94
|
-
var IteratorPrototype = {};
|
|
95
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
96
|
-
return this;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
var getProto = Object.getPrototypeOf;
|
|
100
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
101
|
-
if (NativeIteratorPrototype &&
|
|
102
|
-
NativeIteratorPrototype !== Op &&
|
|
103
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
104
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
105
|
-
// of the polyfill.
|
|
106
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
110
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
111
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
112
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
113
|
-
GeneratorFunction.displayName = define(
|
|
114
|
-
GeneratorFunctionPrototype,
|
|
115
|
-
toStringTagSymbol,
|
|
116
|
-
"GeneratorFunction"
|
|
117
|
-
);
|
|
118
|
-
|
|
119
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
120
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
121
|
-
function defineIteratorMethods(prototype) {
|
|
122
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
123
|
-
define(prototype, method, function(arg) {
|
|
124
|
-
return this._invoke(method, arg);
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
130
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
131
|
-
return ctor
|
|
132
|
-
? ctor === GeneratorFunction ||
|
|
133
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
134
|
-
// do is to check its .name property.
|
|
135
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
136
|
-
: false;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
exports.mark = function(genFun) {
|
|
140
|
-
if (Object.setPrototypeOf) {
|
|
141
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
142
|
-
} else {
|
|
143
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
144
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
145
|
-
}
|
|
146
|
-
genFun.prototype = Object.create(Gp);
|
|
147
|
-
return genFun;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// Within the body of any async function, `await x` is transformed to
|
|
151
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
152
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
153
|
-
// meant to be awaited.
|
|
154
|
-
exports.awrap = function(arg) {
|
|
155
|
-
return { __await: arg };
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
159
|
-
function invoke(method, arg, resolve, reject) {
|
|
160
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
161
|
-
if (record.type === "throw") {
|
|
162
|
-
reject(record.arg);
|
|
163
|
-
} else {
|
|
164
|
-
var result = record.arg;
|
|
165
|
-
var value = result.value;
|
|
166
|
-
if (value &&
|
|
167
|
-
typeof value === "object" &&
|
|
168
|
-
hasOwn.call(value, "__await")) {
|
|
169
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
170
|
-
invoke("next", value, resolve, reject);
|
|
171
|
-
}, function(err) {
|
|
172
|
-
invoke("throw", err, resolve, reject);
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
177
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
178
|
-
// the .value of the Promise<{value,done}> result for the
|
|
179
|
-
// current iteration.
|
|
180
|
-
result.value = unwrapped;
|
|
181
|
-
resolve(result);
|
|
182
|
-
}, function(error) {
|
|
183
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
184
|
-
// into the async generator function so it can be handled there.
|
|
185
|
-
return invoke("throw", error, resolve, reject);
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
var previousPromise;
|
|
191
|
-
|
|
192
|
-
function enqueue(method, arg) {
|
|
193
|
-
function callInvokeWithMethodAndArg() {
|
|
194
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
195
|
-
invoke(method, arg, resolve, reject);
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
return previousPromise =
|
|
200
|
-
// If enqueue has been called before, then we want to wait until
|
|
201
|
-
// all previous Promises have been resolved before calling invoke,
|
|
202
|
-
// so that results are always delivered in the correct order. If
|
|
203
|
-
// enqueue has not been called before, then it is important to
|
|
204
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
205
|
-
// so that the async generator function has the opportunity to do
|
|
206
|
-
// any necessary setup in a predictable way. This predictability
|
|
207
|
-
// is why the Promise constructor synchronously invokes its
|
|
208
|
-
// executor callback, and why async functions synchronously
|
|
209
|
-
// execute code before the first await. Since we implement simple
|
|
210
|
-
// async functions in terms of async generators, it is especially
|
|
211
|
-
// important to get this right, even though it requires care.
|
|
212
|
-
previousPromise ? previousPromise.then(
|
|
213
|
-
callInvokeWithMethodAndArg,
|
|
214
|
-
// Avoid propagating failures to Promises returned by later
|
|
215
|
-
// invocations of the iterator.
|
|
216
|
-
callInvokeWithMethodAndArg
|
|
217
|
-
) : callInvokeWithMethodAndArg();
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// Define the unified helper method that is used to implement .next,
|
|
221
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
222
|
-
this._invoke = enqueue;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
226
|
-
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
227
|
-
return this;
|
|
228
|
-
};
|
|
229
|
-
exports.AsyncIterator = AsyncIterator;
|
|
230
|
-
|
|
231
|
-
// Note that simple async functions are implemented on top of
|
|
232
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
233
|
-
// the final result produced by the iterator.
|
|
234
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
235
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
236
|
-
|
|
237
|
-
var iter = new AsyncIterator(
|
|
238
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
239
|
-
PromiseImpl
|
|
240
|
-
);
|
|
241
|
-
|
|
242
|
-
return exports.isGeneratorFunction(outerFn)
|
|
243
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
244
|
-
: iter.next().then(function(result) {
|
|
245
|
-
return result.done ? result.value : iter.next();
|
|
246
|
-
});
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
250
|
-
var state = GenStateSuspendedStart;
|
|
251
|
-
|
|
252
|
-
return function invoke(method, arg) {
|
|
253
|
-
if (state === GenStateExecuting) {
|
|
254
|
-
throw new Error("Generator is already running");
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
if (state === GenStateCompleted) {
|
|
258
|
-
if (method === "throw") {
|
|
259
|
-
throw arg;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
263
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
264
|
-
return doneResult();
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
context.method = method;
|
|
268
|
-
context.arg = arg;
|
|
269
|
-
|
|
270
|
-
while (true) {
|
|
271
|
-
var delegate = context.delegate;
|
|
272
|
-
if (delegate) {
|
|
273
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
274
|
-
if (delegateResult) {
|
|
275
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
276
|
-
return delegateResult;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
if (context.method === "next") {
|
|
281
|
-
// Setting context._sent for legacy support of Babel's
|
|
282
|
-
// function.sent implementation.
|
|
283
|
-
context.sent = context._sent = context.arg;
|
|
284
|
-
|
|
285
|
-
} else if (context.method === "throw") {
|
|
286
|
-
if (state === GenStateSuspendedStart) {
|
|
287
|
-
state = GenStateCompleted;
|
|
288
|
-
throw context.arg;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
context.dispatchException(context.arg);
|
|
292
|
-
|
|
293
|
-
} else if (context.method === "return") {
|
|
294
|
-
context.abrupt("return", context.arg);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
state = GenStateExecuting;
|
|
298
|
-
|
|
299
|
-
var record = tryCatch(innerFn, self, context);
|
|
300
|
-
if (record.type === "normal") {
|
|
301
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
302
|
-
// GenStateExecuting and loop back for another invocation.
|
|
303
|
-
state = context.done
|
|
304
|
-
? GenStateCompleted
|
|
305
|
-
: GenStateSuspendedYield;
|
|
306
|
-
|
|
307
|
-
if (record.arg === ContinueSentinel) {
|
|
308
|
-
continue;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
return {
|
|
312
|
-
value: record.arg,
|
|
313
|
-
done: context.done
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
} else if (record.type === "throw") {
|
|
317
|
-
state = GenStateCompleted;
|
|
318
|
-
// Dispatch the exception by looping back around to the
|
|
319
|
-
// context.dispatchException(context.arg) call above.
|
|
320
|
-
context.method = "throw";
|
|
321
|
-
context.arg = record.arg;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
328
|
-
// result, either by returning a { value, done } result from the
|
|
329
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
330
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
331
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
332
|
-
var method = delegate.iterator[context.method];
|
|
333
|
-
if (method === undefined$1) {
|
|
334
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
335
|
-
// method always terminates the yield* loop.
|
|
336
|
-
context.delegate = null;
|
|
337
|
-
|
|
338
|
-
if (context.method === "throw") {
|
|
339
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
340
|
-
if (delegate.iterator["return"]) {
|
|
341
|
-
// If the delegate iterator has a return method, give it a
|
|
342
|
-
// chance to clean up.
|
|
343
|
-
context.method = "return";
|
|
344
|
-
context.arg = undefined$1;
|
|
345
|
-
maybeInvokeDelegate(delegate, context);
|
|
346
|
-
|
|
347
|
-
if (context.method === "throw") {
|
|
348
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
349
|
-
// "return" to "throw", let that override the TypeError below.
|
|
350
|
-
return ContinueSentinel;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
context.method = "throw";
|
|
355
|
-
context.arg = new TypeError(
|
|
356
|
-
"The iterator does not provide a 'throw' method");
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
return ContinueSentinel;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
363
|
-
|
|
364
|
-
if (record.type === "throw") {
|
|
365
|
-
context.method = "throw";
|
|
366
|
-
context.arg = record.arg;
|
|
367
|
-
context.delegate = null;
|
|
368
|
-
return ContinueSentinel;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
var info = record.arg;
|
|
372
|
-
|
|
373
|
-
if (! info) {
|
|
374
|
-
context.method = "throw";
|
|
375
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
376
|
-
context.delegate = null;
|
|
377
|
-
return ContinueSentinel;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
if (info.done) {
|
|
381
|
-
// Assign the result of the finished delegate to the temporary
|
|
382
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
383
|
-
context[delegate.resultName] = info.value;
|
|
384
|
-
|
|
385
|
-
// Resume execution at the desired location (see delegateYield).
|
|
386
|
-
context.next = delegate.nextLoc;
|
|
387
|
-
|
|
388
|
-
// If context.method was "throw" but the delegate handled the
|
|
389
|
-
// exception, let the outer generator proceed normally. If
|
|
390
|
-
// context.method was "next", forget context.arg since it has been
|
|
391
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
392
|
-
// "return", allow the original .return call to continue in the
|
|
393
|
-
// outer generator.
|
|
394
|
-
if (context.method !== "return") {
|
|
395
|
-
context.method = "next";
|
|
396
|
-
context.arg = undefined$1;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
} else {
|
|
400
|
-
// Re-yield the result returned by the delegate method.
|
|
401
|
-
return info;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
405
|
-
// the outer generator.
|
|
406
|
-
context.delegate = null;
|
|
407
|
-
return ContinueSentinel;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
411
|
-
// unified ._invoke helper method.
|
|
412
|
-
defineIteratorMethods(Gp);
|
|
413
|
-
|
|
414
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
415
|
-
|
|
416
|
-
// A Generator should always return itself as the iterator object when the
|
|
417
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
418
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
419
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
420
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
421
|
-
Gp[iteratorSymbol] = function() {
|
|
422
|
-
return this;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
Gp.toString = function() {
|
|
426
|
-
return "[object Generator]";
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
function pushTryEntry(locs) {
|
|
430
|
-
var entry = { tryLoc: locs[0] };
|
|
431
|
-
|
|
432
|
-
if (1 in locs) {
|
|
433
|
-
entry.catchLoc = locs[1];
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
if (2 in locs) {
|
|
437
|
-
entry.finallyLoc = locs[2];
|
|
438
|
-
entry.afterLoc = locs[3];
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
this.tryEntries.push(entry);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
function resetTryEntry(entry) {
|
|
445
|
-
var record = entry.completion || {};
|
|
446
|
-
record.type = "normal";
|
|
447
|
-
delete record.arg;
|
|
448
|
-
entry.completion = record;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
function Context(tryLocsList) {
|
|
452
|
-
// The root entry object (effectively a try statement without a catch
|
|
453
|
-
// or a finally block) gives us a place to store values thrown from
|
|
454
|
-
// locations where there is no enclosing try statement.
|
|
455
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
456
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
457
|
-
this.reset(true);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
exports.keys = function(object) {
|
|
461
|
-
var keys = [];
|
|
462
|
-
for (var key in object) {
|
|
463
|
-
keys.push(key);
|
|
464
|
-
}
|
|
465
|
-
keys.reverse();
|
|
466
|
-
|
|
467
|
-
// Rather than returning an object with a next method, we keep
|
|
468
|
-
// things simple and return the next function itself.
|
|
469
|
-
return function next() {
|
|
470
|
-
while (keys.length) {
|
|
471
|
-
var key = keys.pop();
|
|
472
|
-
if (key in object) {
|
|
473
|
-
next.value = key;
|
|
474
|
-
next.done = false;
|
|
475
|
-
return next;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
// To avoid creating an additional object, we just hang the .value
|
|
480
|
-
// and .done properties off the next function object itself. This
|
|
481
|
-
// also ensures that the minifier will not anonymize the function.
|
|
482
|
-
next.done = true;
|
|
483
|
-
return next;
|
|
484
|
-
};
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
function values(iterable) {
|
|
488
|
-
if (iterable) {
|
|
489
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
490
|
-
if (iteratorMethod) {
|
|
491
|
-
return iteratorMethod.call(iterable);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
if (typeof iterable.next === "function") {
|
|
495
|
-
return iterable;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
if (!isNaN(iterable.length)) {
|
|
499
|
-
var i = -1, next = function next() {
|
|
500
|
-
while (++i < iterable.length) {
|
|
501
|
-
if (hasOwn.call(iterable, i)) {
|
|
502
|
-
next.value = iterable[i];
|
|
503
|
-
next.done = false;
|
|
504
|
-
return next;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
next.value = undefined$1;
|
|
509
|
-
next.done = true;
|
|
510
|
-
|
|
511
|
-
return next;
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
return next.next = next;
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
// Return an iterator with no values.
|
|
519
|
-
return { next: doneResult };
|
|
520
|
-
}
|
|
521
|
-
exports.values = values;
|
|
522
|
-
|
|
523
|
-
function doneResult() {
|
|
524
|
-
return { value: undefined$1, done: true };
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
Context.prototype = {
|
|
528
|
-
constructor: Context,
|
|
529
|
-
|
|
530
|
-
reset: function(skipTempReset) {
|
|
531
|
-
this.prev = 0;
|
|
532
|
-
this.next = 0;
|
|
533
|
-
// Resetting context._sent for legacy support of Babel's
|
|
534
|
-
// function.sent implementation.
|
|
535
|
-
this.sent = this._sent = undefined$1;
|
|
536
|
-
this.done = false;
|
|
537
|
-
this.delegate = null;
|
|
538
|
-
|
|
539
|
-
this.method = "next";
|
|
540
|
-
this.arg = undefined$1;
|
|
541
|
-
|
|
542
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
543
|
-
|
|
544
|
-
if (!skipTempReset) {
|
|
545
|
-
for (var name in this) {
|
|
546
|
-
// Not sure about the optimal order of these conditions:
|
|
547
|
-
if (name.charAt(0) === "t" &&
|
|
548
|
-
hasOwn.call(this, name) &&
|
|
549
|
-
!isNaN(+name.slice(1))) {
|
|
550
|
-
this[name] = undefined$1;
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
},
|
|
555
|
-
|
|
556
|
-
stop: function() {
|
|
557
|
-
this.done = true;
|
|
558
|
-
|
|
559
|
-
var rootEntry = this.tryEntries[0];
|
|
560
|
-
var rootRecord = rootEntry.completion;
|
|
561
|
-
if (rootRecord.type === "throw") {
|
|
562
|
-
throw rootRecord.arg;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
return this.rval;
|
|
566
|
-
},
|
|
567
|
-
|
|
568
|
-
dispatchException: function(exception) {
|
|
569
|
-
if (this.done) {
|
|
570
|
-
throw exception;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
var context = this;
|
|
574
|
-
function handle(loc, caught) {
|
|
575
|
-
record.type = "throw";
|
|
576
|
-
record.arg = exception;
|
|
577
|
-
context.next = loc;
|
|
578
|
-
|
|
579
|
-
if (caught) {
|
|
580
|
-
// If the dispatched exception was caught by a catch block,
|
|
581
|
-
// then let that catch block handle the exception normally.
|
|
582
|
-
context.method = "next";
|
|
583
|
-
context.arg = undefined$1;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
return !! caught;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
590
|
-
var entry = this.tryEntries[i];
|
|
591
|
-
var record = entry.completion;
|
|
592
|
-
|
|
593
|
-
if (entry.tryLoc === "root") {
|
|
594
|
-
// Exception thrown outside of any try block that could handle
|
|
595
|
-
// it, so set the completion value of the entire function to
|
|
596
|
-
// throw the exception.
|
|
597
|
-
return handle("end");
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
if (entry.tryLoc <= this.prev) {
|
|
601
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
602
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
603
|
-
|
|
604
|
-
if (hasCatch && hasFinally) {
|
|
605
|
-
if (this.prev < entry.catchLoc) {
|
|
606
|
-
return handle(entry.catchLoc, true);
|
|
607
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
608
|
-
return handle(entry.finallyLoc);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
} else if (hasCatch) {
|
|
612
|
-
if (this.prev < entry.catchLoc) {
|
|
613
|
-
return handle(entry.catchLoc, true);
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
} else if (hasFinally) {
|
|
617
|
-
if (this.prev < entry.finallyLoc) {
|
|
618
|
-
return handle(entry.finallyLoc);
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
} else {
|
|
622
|
-
throw new Error("try statement without catch or finally");
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
},
|
|
627
|
-
|
|
628
|
-
abrupt: function(type, arg) {
|
|
629
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
630
|
-
var entry = this.tryEntries[i];
|
|
631
|
-
if (entry.tryLoc <= this.prev &&
|
|
632
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
633
|
-
this.prev < entry.finallyLoc) {
|
|
634
|
-
var finallyEntry = entry;
|
|
635
|
-
break;
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
if (finallyEntry &&
|
|
640
|
-
(type === "break" ||
|
|
641
|
-
type === "continue") &&
|
|
642
|
-
finallyEntry.tryLoc <= arg &&
|
|
643
|
-
arg <= finallyEntry.finallyLoc) {
|
|
644
|
-
// Ignore the finally entry if control is not jumping to a
|
|
645
|
-
// location outside the try/catch block.
|
|
646
|
-
finallyEntry = null;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
650
|
-
record.type = type;
|
|
651
|
-
record.arg = arg;
|
|
652
|
-
|
|
653
|
-
if (finallyEntry) {
|
|
654
|
-
this.method = "next";
|
|
655
|
-
this.next = finallyEntry.finallyLoc;
|
|
656
|
-
return ContinueSentinel;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
return this.complete(record);
|
|
660
|
-
},
|
|
661
|
-
|
|
662
|
-
complete: function(record, afterLoc) {
|
|
663
|
-
if (record.type === "throw") {
|
|
664
|
-
throw record.arg;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
if (record.type === "break" ||
|
|
668
|
-
record.type === "continue") {
|
|
669
|
-
this.next = record.arg;
|
|
670
|
-
} else if (record.type === "return") {
|
|
671
|
-
this.rval = this.arg = record.arg;
|
|
672
|
-
this.method = "return";
|
|
673
|
-
this.next = "end";
|
|
674
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
675
|
-
this.next = afterLoc;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
return ContinueSentinel;
|
|
679
|
-
},
|
|
680
|
-
|
|
681
|
-
finish: function(finallyLoc) {
|
|
682
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
683
|
-
var entry = this.tryEntries[i];
|
|
684
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
685
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
686
|
-
resetTryEntry(entry);
|
|
687
|
-
return ContinueSentinel;
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
},
|
|
691
|
-
|
|
692
|
-
"catch": function(tryLoc) {
|
|
693
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
694
|
-
var entry = this.tryEntries[i];
|
|
695
|
-
if (entry.tryLoc === tryLoc) {
|
|
696
|
-
var record = entry.completion;
|
|
697
|
-
if (record.type === "throw") {
|
|
698
|
-
var thrown = record.arg;
|
|
699
|
-
resetTryEntry(entry);
|
|
700
|
-
}
|
|
701
|
-
return thrown;
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
// The context.catch method must only be called with a location
|
|
706
|
-
// argument that corresponds to a known catch block.
|
|
707
|
-
throw new Error("illegal catch attempt");
|
|
708
|
-
},
|
|
709
|
-
|
|
710
|
-
delegateYield: function(iterable, resultName, nextLoc) {
|
|
711
|
-
this.delegate = {
|
|
712
|
-
iterator: values(iterable),
|
|
713
|
-
resultName: resultName,
|
|
714
|
-
nextLoc: nextLoc
|
|
715
|
-
};
|
|
716
|
-
|
|
717
|
-
if (this.method === "next") {
|
|
718
|
-
// Deliberately forget the last sent value so that we don't
|
|
719
|
-
// accidentally pass it on to the delegate.
|
|
720
|
-
this.arg = undefined$1;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
return ContinueSentinel;
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
|
|
727
|
-
// Regardless of whether this script is executing as a CommonJS module
|
|
728
|
-
// or not, return the runtime object so that we can declare the variable
|
|
729
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
730
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
731
|
-
return exports;
|
|
732
|
-
|
|
733
|
-
}(
|
|
734
|
-
// If this script is executing as a CommonJS module, use module.exports
|
|
735
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
736
|
-
// object. Either way, the resulting object will be used to initialize
|
|
737
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
738
|
-
typeof module === "object" ? module.exports : {}
|
|
739
|
-
));
|
|
740
|
-
|
|
741
|
-
try {
|
|
742
|
-
regeneratorRuntime = runtime;
|
|
743
|
-
} catch (accidentalStrictMode) {
|
|
744
|
-
// This module should not be running in strict mode, so the above
|
|
745
|
-
// assignment should always work unless something is misconfigured. Just
|
|
746
|
-
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
747
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
748
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
749
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
750
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
751
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
752
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
753
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
754
|
-
}
|
|
755
|
-
</script>
|
|
756
|
-
<script type="importmap">{
|
|
757
|
-
"imports": {
|
|
758
|
-
"preact": "https://esm.sh/preact@10.23.1",
|
|
759
|
-
"@preact/signals": "https://esm.sh/@preact/signals@1.3.0?external=preact",
|
|
760
|
-
"htm/preact": "https://esm.sh/htm@3.1.1/preact?external=preact"
|
|
761
|
-
}
|
|
762
|
-
}</script>
|
|
7
|
+
|
|
763
8
|
<script>
|
|
764
9
|
/**
|
|
765
10
|
* Example of how you'd use this:
|
|
@@ -1403,7 +648,7 @@ main {
|
|
|
1403
648
|
font-weight: normal;
|
|
1404
649
|
}
|
|
1405
650
|
|
|
1406
|
-
@media (width
|
|
651
|
+
@media (max-width: 768px) {
|
|
1407
652
|
.route_container {
|
|
1408
653
|
flex-direction: column;
|
|
1409
654
|
}
|
|
@@ -1767,19 +1012,31 @@ label .filter_text {
|
|
|
1767
1012
|
}
|
|
1768
1013
|
});
|
|
1769
1014
|
</script>
|
|
1770
|
-
<script type="module"
|
|
1771
|
-
// https://preactjs.com/guide/v10/no-build-workflows/
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1015
|
+
<script type="module">/* esm.sh - preact@10.23.1 */
|
|
1016
|
+
var M$2,h$1,X,ie,x$1,J,Y,R,j,$,O$1,T$1={},ee=[],le=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,I$1=Array.isArray;function b$3(_,e){for(var t in e)_[t]=e[t];return _}function _e(_){var e=_.parentNode;e&&e.removeChild(_);}function se(_,e,t){var i,n,r,l={};for(r in e)r=="key"?i=e[r]:r=="ref"?n=e[r]:l[r]=e[r];if(arguments.length>2&&(l.children=arguments.length>3?M$2.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(r in _.defaultProps)l[r]===void 0&&(l[r]=_.defaultProps[r]);return U$2(_,l,i,n,null)}function U$2(_,e,t,i,n){var r={type:_,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:n??++X,__i:-1,__u:0};return n==null&&h$1.vnode!=null&&h$1.vnode(r),r}function N(_){return _.children}function F$1(_,e){this.props=_,this.context=e;}function C$2(_,e){if(e==null)return _.__?C$2(_.__,_.__i+1):null;for(var t;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null)return t.__e;return typeof _.type=="function"?C$2(_):null}function te(_){var e,t;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null){_.__e=_.__c.base=t.__e;break}return te(_)}}function B$1(_){(!_.__d&&(_.__d=true)&&x$1.push(_)&&!H$1.__r++||J!==h$1.debounceRendering)&&((J=h$1.debounceRendering)||Y)(H$1);}function H$1(){var _,e,t,i,n,r,l,s;for(x$1.sort(R);_=x$1.shift();)_.__d&&(e=x$1.length,i=void 0,r=(n=(t=_).__v).__e,l=[],s=[],t.__P&&((i=b$3({},n)).__v=n.__v+1,h$1.vnode&&h$1.vnode(i),z$1(t.__P,i,n,t.__n,t.__P.namespaceURI,32&n.__u?[r]:null,l,r??C$2(n),!!(32&n.__u),s),i.__v=n.__v,i.__.__k[i.__i]=i,re(l,i,s),i.__e!=r&&te(i)),x$1.length>e&&x$1.sort(R));H$1.__r=0;}function ne(_,e,t,i,n,r,l,s,c,u,p){var o,m,f,v,g,y=i&&i.__k||ee,a=e.length;for(t.__d=c,ue(t,e,y),c=t.__d,o=0;o<a;o++)(f=t.__k[o])!=null&&typeof f!="boolean"&&typeof f!="function"&&(m=f.__i===-1?T$1:y[f.__i]||T$1,f.__i=o,z$1(_,f,m,n,r,l,s,c,u,p),v=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&q$1(m.ref,null,f),p.push(f.ref,f.__c||v,f)),g==null&&v!=null&&(g=v),65536&f.__u||m.__k===f.__k?c=oe(f,c,_):typeof f.type=="function"&&f.__d!==void 0?c=f.__d:v&&(c=v.nextSibling),f.__d=void 0,f.__u&=-196609);t.__d=c,t.__e=g;}function ue(_,e,t){var i,n,r,l,s,c=e.length,u=t.length,p=u,o=0;for(_.__k=[],i=0;i<c;i++)l=i+o,(n=_.__k[i]=(n=e[i])==null||typeof n=="boolean"||typeof n=="function"?null:typeof n=="string"||typeof n=="number"||typeof n=="bigint"||n.constructor==String?U$2(null,n,null,null,null):I$1(n)?U$2(N,{children:n},null,null,null):n.constructor===void 0&&n.__b>0?U$2(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)!=null?(n.__=_,n.__b=_.__b+1,s=ce(n,t,l,p),n.__i=s,r=null,s!==-1&&(p--,(r=t[s])&&(r.__u|=131072)),r==null||r.__v===null?(s==-1&&o--,typeof n.type!="function"&&(n.__u|=65536)):s!==l&&(s==l-1?o=s-l:s==l+1?o++:s>l?p>c-l?o+=s-l:o--:s<l&&o++,s!==i+o&&(n.__u|=65536))):(r=t[l])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=C$2(r)),V(r,r,false),t[l]=null,p--);if(p)for(i=0;i<u;i++)(r=t[i])!=null&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=C$2(r)),V(r,r));}function oe(_,e,t){var i,n;if(typeof _.type=="function"){for(i=_.__k,n=0;i&&n<i.length;n++)i[n]&&(i[n].__=_,e=oe(i[n],e,t));return e}_.__e!=e&&(e&&_.type&&!t.contains(e)&&(e=C$2(_)),t.insertBefore(_.__e,e||null),e=_.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function ce(_,e,t,i){var n=_.key,r=_.type,l=t-1,s=t+1,c=e[t];if(c===null||c&&n==c.key&&r===c.type&&!(131072&c.__u))return t;if(i>(c!=null&&!(131072&c.__u)?1:0))for(;l>=0||s<e.length;){if(l>=0){if((c=e[l])&&!(131072&c.__u)&&n==c.key&&r===c.type)return l;l--;}if(s<e.length){if((c=e[s])&&!(131072&c.__u)&&n==c.key&&r===c.type)return s;s++;}}return -1}function K(_,e,t){e[0]==="-"?_.setProperty(e,t??""):_[e]=t==null?"":typeof t!="number"||le.test(e)?t:t+"px";}function W$1(_,e,t,i,n){var r;e:if(e==="style")if(typeof t=="string")_.style.cssText=t;else {if(typeof i=="string"&&(_.style.cssText=i=""),i)for(e in i)t&&e in t||K(_.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||K(_.style,e,t[e]);}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in _||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=t,t?i?t.u=i.u:(t.u=j,_.addEventListener(e,r?O$1:$,r)):_.removeEventListener(e,r?O$1:$,r);else {if(n=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in _)try{_[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===false&&e[4]!=="-"?_.removeAttribute(e):_.setAttribute(e,e=="popover"&&t==1?"":t));}}function Q(_){return function(e){if(this.l){var t=this.l[e.type+_];if(e.t==null)e.t=j++;else if(e.t<t.u)return;return t(h$1.event?h$1.event(e):e)}}}function z$1(_,e,t,i,n,r,l,s,c,u){var p,o,m,f,v,g,y,a,d,P,w,D,S,G,E,A,k=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(c=!!(32&t.__u),r=[s=e.__e=t.__e]),(p=h$1.__b)&&p(e);e:if(typeof k=="function")try{if(a=e.props,d="prototype"in k&&k.prototype.render,P=(p=k.contextType)&&i[p.__c],w=p?P?P.props.value:p.__:i,t.__c?y=(o=e.__c=t.__c).__=o.__E:(d?e.__c=o=new k(a,w):(e.__c=o=new F$1(a,w),o.constructor=k,o.render=ae),P&&P.sub(o),o.props=a,o.state||(o.state={}),o.context=w,o.__n=i,m=o.__d=!0,o.__h=[],o._sb=[]),d&&o.__s==null&&(o.__s=o.state),d&&k.getDerivedStateFromProps!=null&&(o.__s==o.state&&(o.__s=b$3({},o.__s)),b$3(o.__s,k.getDerivedStateFromProps(a,o.__s))),f=o.props,v=o.state,o.__v=e,m)d&&k.getDerivedStateFromProps==null&&o.componentWillMount!=null&&o.componentWillMount(),d&&o.componentDidMount!=null&&o.__h.push(o.componentDidMount);else {if(d&&k.getDerivedStateFromProps==null&&a!==f&&o.componentWillReceiveProps!=null&&o.componentWillReceiveProps(a,w),!o.__e&&(o.shouldComponentUpdate!=null&&o.shouldComponentUpdate(a,o.__s,w)===!1||e.__v===t.__v)){for(e.__v!==t.__v&&(o.props=a,o.state=o.__s,o.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(L){L&&(L.__=e);}),D=0;D<o._sb.length;D++)o.__h.push(o._sb[D]);o._sb=[],o.__h.length&&l.push(o);break e}o.componentWillUpdate!=null&&o.componentWillUpdate(a,o.__s,w),d&&o.componentDidUpdate!=null&&o.__h.push(function(){o.componentDidUpdate(f,v,g);});}if(o.context=w,o.props=a,o.__P=_,o.__e=!1,S=h$1.__r,G=0,d){for(o.state=o.__s,o.__d=!1,S&&S(e),p=o.render(o.props,o.state,o.context),E=0;E<o._sb.length;E++)o.__h.push(o._sb[E]);o._sb=[];}else do o.__d=!1,S&&S(e),p=o.render(o.props,o.state,o.context),o.state=o.__s;while(o.__d&&++G<25);o.state=o.__s,o.getChildContext!=null&&(i=b$3(b$3({},i),o.getChildContext())),d&&!m&&o.getSnapshotBeforeUpdate!=null&&(g=o.getSnapshotBeforeUpdate(f,v)),ne(_,I$1(A=p!=null&&p.type===N&&p.key==null?p.props.children:p)?A:[A],e,t,i,n,r,l,s,c,u),o.base=e.__e,e.__u&=-161,o.__h.length&&l.push(o),y&&(o.__E=o.__=null);}catch(L){if(e.__v=null,c||r!=null){for(e.__u|=c?160:32;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;r[r.indexOf(s)]=null,e.__e=s;}else e.__e=t.__e,e.__k=t.__k;h$1.__e(L,e,t);}else r==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=pe(t.__e,e,t,i,n,r,l,c,u);(p=h$1.diffed)&&p(e);}function re(_,e,t){e.__d=void 0;for(var i=0;i<t.length;i++)q$1(t[i],t[++i],t[++i]);h$1.__c&&h$1.__c(e,_),_.some(function(n){try{_=n.__h,n.__h=[],_.some(function(r){r.call(n);});}catch(r){h$1.__e(r,n.__v);}});}function pe(_,e,t,i,n,r,l,s,c){var u,p,o,m,f,v,g,y=t.props,a=e.props,d=e.type;if(d==="svg"?n="http://www.w3.org/2000/svg":d==="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),r!=null){for(u=0;u<r.length;u++)if((f=r[u])&&"setAttribute"in f==!!d&&(d?f.localName===d:f.nodeType===3)){_=f,r[u]=null;break}}if(_==null){if(d===null)return document.createTextNode(a);_=document.createElementNS(n,d,a.is&&a),r=null,s=false;}if(d===null)y===a||s&&_.data===a||(_.data=a);else {if(r=r&&M$2.call(_.childNodes),y=t.props||T$1,!s&&r!=null)for(y={},u=0;u<_.attributes.length;u++)y[(f=_.attributes[u]).name]=f.value;for(u in y)if(f=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")o=f;else if(u!=="key"&&!(u in a)){if(u=="value"&&"defaultValue"in a||u=="checked"&&"defaultChecked"in a)continue;W$1(_,u,null,f,n);}}for(u in a)f=a[u],u=="children"?m=f:u=="dangerouslySetInnerHTML"?p=f:u=="value"?v=f:u=="checked"?g=f:u==="key"||s&&typeof f!="function"||y[u]===f||W$1(_,u,f,y[u],n);if(p)s||o&&(p.__html===o.__html||p.__html===_.innerHTML)||(_.innerHTML=p.__html),e.__k=[];else if(o&&(_.innerHTML=""),ne(_,I$1(m)?m:[m],e,t,i,d==="foreignObject"?"http://www.w3.org/1999/xhtml":n,r,l,r?r[0]:t.__k&&C$2(t,0),s,c),r!=null)for(u=r.length;u--;)r[u]!=null&&_e(r[u]);s||(u="value",v!==void 0&&(v!==_[u]||d==="progress"&&!v||d==="option"&&v!==y[u])&&W$1(_,u,v,y[u],n),u="checked",g!==void 0&&g!==_[u]&&W$1(_,u,g,y[u],n));}return _}function q$1(_,e,t){try{if(typeof _=="function"){var i=typeof _.__u=="function";i&&_.__u(),i&&e==null||(_.__u=_(e));}else _.current=e;}catch(n){h$1.__e(n,t);}}function V(_,e,t){var i,n;if(h$1.unmount&&h$1.unmount(_),(i=_.ref)&&(i.current&&i.current!==_.__e||q$1(i,null,e)),(i=_.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(r){h$1.__e(r,e);}i.base=i.__P=null;}if(i=_.__k)for(n=0;n<i.length;n++)i[n]&&V(i[n],e,t||typeof _.type!="function");t||_.__e==null||_e(_.__e),_.__c=_.__=_.__e=_.__d=void 0;}function ae(_,e,t){return this.constructor(_,t)}function de(_,e,t){var i,n,r,l;h$1.__&&h$1.__(_,e),n=(i="undefined"=="function")?null:e.__k,r=[],l=[],z$1(e,_=(e).__k=se(N,null,[_]),n||T$1,T$1,e.namespaceURI,n?null:e.firstChild?M$2.call(e.childNodes):null,r,n?n.__e:e.firstChild,i,l),re(r,_,l);}M$2=ee.slice,h$1={__e:function(_,e,t,i){for(var n,r,l;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(_)),l=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(_,i||{}),l=n.__d),l)return n.__E=n}catch(s){_=s;}throw _}},X=0,ie=function(_){return _!=null&&_.constructor==null},F$1.prototype.setState=function(_,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b$3({},this.state),typeof _=="function"&&(_=_(b$3({},t),this.props)),_&&b$3(t,_),_!=null&&this.__v&&(e&&this._sb.push(e),B$1(this));},F$1.prototype.forceUpdate=function(_){this.__v&&(this.__e=true,_&&this.__h.push(_),B$1(this));},F$1.prototype.render=N,x$1=[],Y=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,R=function(_,e){return _.__v.__b-e.__v.__b},H$1.__r=0,j=0,$=Q(false),O$1=Q(true);
|
|
1017
|
+
|
|
1018
|
+
/* esm.sh - htm@3.1.1 */
|
|
1019
|
+
var a$2=function(p,f,c,n){var l;f[0]=0;for(var u=1;u<f.length;u++){var g=f[u++],o=f[u]?(f[0]|=g?1:2,c[f[u++]]):f[++u];g===3?n[0]=o:g===4?n[1]=Object.assign(n[1]||{},o):g===5?(n[1]=n[1]||{})[f[++u]]=o:g===6?n[1][f[++u]]+=o+"":g?(l=p.apply(o,a$2(p,o,c,["",null])),n.push(l),o[0]?f[0]|=2:(f[u-2]=0,f[u]=l)):n.push(o);}return n},M$1=new Map;function b$2(p){var f=M$1.get(this);return f||(f=new Map,M$1.set(this,f)),(f=a$2(this,f.get(p)||(f.set(p,f=function(c){for(var n,l,u=1,g="",o="",i=[0],s=function(v){u===1&&(v||(g=g.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?i.push(0,v,g):u===3&&(v||g)?(i.push(3,v,g),u=2):u===2&&g==="..."&&v?i.push(4,v,0):u===2&&g&&!v?i.push(5,0,true,g):u>=5&&((g||!v&&u===5)&&(i.push(u,0,g,l),u=6),v&&(i.push(u,v,0,l),u=6)),g="";},t=0;t<c.length;t++){t&&(u===1&&s(),s(t));for(var w=0;w<c[t].length;w++)n=c[t][w],u===1?n==="<"?(s(),i=[i],u=3):g+=n:u===4?g==="--"&&n===">"?(u=1,g=""):g=n+g[0]:o?n===o?o="":g+=n:n==='"'||n==="'"?o=n:n===">"?(s(),u=1):u&&(n==="="?(u=5,l=g,g=""):n==="/"&&(u<5||c[t][w+1]===">")?(s(),u===3&&(i=i[0]),u=i,(i=i[0]).push(2,0,u),u=0):n===" "||n===" "||n===`
|
|
1020
|
+
`||n==="\r"?(s(),u=2):g+=n),u===3&&g==="!--"&&(u=4,i=i[0]);}return s(),i}(p)),f),arguments,[])).length>1?f:f[0]}
|
|
1021
|
+
|
|
1022
|
+
/* esm.sh - htm@3.1.1/preact */
|
|
1023
|
+
var p$3=b$2.bind(se);
|
|
1024
|
+
|
|
1025
|
+
/* esm.sh - @preact/signals-core@1.8.0 */
|
|
1026
|
+
var b$1=Symbol.for("preact-signals");function d$1(){if(s>1)s--;else {for(var t,i=false;e!==void 0;){var n=e;for(e=void 0,a$1++;n!==void 0;){var f=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&y(n))try{n.c();}catch(x){i||(t=x,i=true);}n=f;}}if(a$1=0,s--,i)throw t}}var o$1=void 0;var e=void 0,s=0,a$1=0,u=0;function p$2(t){if(o$1!==void 0){var i=t.n;if(i===void 0||i.t!==o$1)return i={i:0,S:t,p:o$1.s,n:void 0,t:o$1,e:void 0,x:void 0,r:i},o$1.s!==void 0&&(o$1.s.n=i),o$1.s=i,t.n=i,32&o$1.f&&t.S(i),i;if(i.i===-1)return i.i=0,i.n!==void 0&&(i.n.p=i.p,i.p!==void 0&&(i.p.n=i.n),i.p=o$1.s,i.n=void 0,o$1.s.n=i,o$1.s=i),i}}function r$1(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0;}r$1.prototype.brand=b$1;r$1.prototype.h=function(){return true};r$1.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t);};r$1.prototype.U=function(t){if(this.t!==void 0){var i=t.e,n=t.x;i!==void 0&&(i.x=n,t.e=void 0),n!==void 0&&(n.e=i,t.x=void 0),t===this.t&&(this.t=n);}};r$1.prototype.subscribe=function(t){var i=this;return U$1(function(){var n=i.value,f=o$1;o$1=void 0;try{t(n);}finally{o$1=f;}})};r$1.prototype.valueOf=function(){return this.value};r$1.prototype.toString=function(){return this.value+""};r$1.prototype.toJSON=function(){return this.value};r$1.prototype.peek=function(){var t=o$1;o$1=void 0;try{return this.value}finally{o$1=t;}};Object.defineProperty(r$1.prototype,"value",{get:function(){var t=p$2(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(a$1>100)throw new Error("Cycle detected");this.v=t,this.i++,u++,s++;try{for(var i=this.t;i!==void 0;i=i.x)i.t.N();}finally{d$1();}}}});function O(t){return new r$1(t)}function y(t){for(var i=t.s;i!==void 0;i=i.n)if(i.S.i!==i.i||!i.S.h()||i.S.i!==i.i)return true;return false}function l$1(t){for(var i=t.s;i!==void 0;i=i.n){var n=i.S.n;if(n!==void 0&&(i.r=n),i.S.n=i,i.i=-1,i.n===void 0){t.s=i;break}}}function S$2(t){for(var i=t.s,n=void 0;i!==void 0;){var f=i.p;i.i===-1?(i.S.U(i),f!==void 0&&(f.n=i.n),i.n!==void 0&&(i.n.p=f)):n=i,i.S.n=i.r,i.r!==void 0&&(i.r=void 0),i=f;}t.s=n;}function h(t){r$1.call(this,void 0),this.x=t,this.s=void 0,this.g=u-1,this.f=4;}(h.prototype=new r$1).h=function(){if(this.f&=-3,1&this.f)return false;if((36&this.f)==32||(this.f&=-5,this.g===u))return true;if(this.g=u,this.f|=1,this.i>0&&!y(this))return this.f&=-2,true;var t=o$1;try{l$1(this),o$1=this;var i=this.x();(16&this.f||this.v!==i||this.i===0)&&(this.v=i,this.f&=-17,this.i++);}catch(n){this.v=n,this.f|=16,this.i++;}return o$1=t,S$2(this),this.f&=-2,true};h.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var i=this.s;i!==void 0;i=i.n)i.S.S(i);}r$1.prototype.S.call(this,t);};h.prototype.U=function(t){if(this.t!==void 0&&(r$1.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var i=this.s;i!==void 0;i=i.n)i.S.U(i);}};h.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N();}};Object.defineProperty(h.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=p$2(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function k$1(t){return new h(t)}function w$1(t){var i=t.u;if(t.u=void 0,typeof i=="function"){s++;var n=o$1;o$1=void 0;try{i();}catch(f){throw t.f&=-2,t.f|=8,c$2(t),f}finally{o$1=n,d$1();}}}function c$2(t){for(var i=t.s;i!==void 0;i=i.n)i.S.U(i);t.x=void 0,t.s=void 0,w$1(t);}function g$1(t){if(o$1!==this)throw new Error("Out-of-order effect");S$2(this),o$1=t,this.f&=-2,8&this.f&&c$2(this),d$1();}function v$1(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32;}v$1.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var i=this.x();typeof i=="function"&&(this.u=i);}finally{t();}};v$1.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,w$1(this),l$1(this),s++;var t=o$1;return o$1=this,g$1.bind(this,t)};v$1.prototype.N=function(){2&this.f||(this.f|=2,this.o=e,e=this);};v$1.prototype.d=function(){this.f|=8,1&this.f||c$2(this);};function U$1(t){var i=new v$1(t);try{i.c();}catch(n){throw i.d(),n}return i.d.bind(i)}
|
|
1027
|
+
|
|
1028
|
+
/* esm.sh - preact@10.23.1/hooks */
|
|
1029
|
+
var c$1,r,d,b,v=0,x=[],o=h$1,g=o.__b,C$1=o.__r,A=o.diffed,D=o.__c,F=o.unmount,k=o.__;function l(t,_){o.__h&&o.__h(r,t,v||_),v=0;var u=r.__H||(r.__H={__:[],__h:[]});return t>=u.__.length&&u.__.push({}),u.__[t]}function B(t){return v=1,I(U,t)}function I(t,_,u){var n=l(c$1++,2);if(n.t=t,!n.__c&&(n.__=[U(void 0,_),function(a){var f=n.__N?n.__N[0]:n.__[0],s=n.t(f,a);f!==s&&(n.__N=[s,n.__[1]],n.__c.setState({}));}],n.__c=r,!r.u)){var i=function(a,f,s){if(!n.__c.__H)return true;var m=n.__c.__H.__.filter(function(e){return !!e.__c});if(m.every(function(e){return !e.__N}))return !h||h.call(this,a,f,s);var N=false;return m.forEach(function(e){if(e.__N){var P=e.__[0];e.__=e.__N,e.__N=void 0,P!==e.__[0]&&(N=true);}}),!(!N&&n.__c.props===a)&&(!h||h.call(this,a,f,s))};r.u=true;var h=r.shouldComponentUpdate,y=r.componentWillUpdate;r.componentWillUpdate=function(a,f,s){if(this.__e){var m=h;h=void 0,i(a,f,s),h=m;}y&&y.call(this,a,f,s);},r.shouldComponentUpdate=i;}return n.__N||n.__}function z(t){return v=5,T(function(){return {current:t}},[])}function T(t,_){var u=l(c$1++,7);return E(u.__H,_)&&(u.__=t(),u.__H=_,u.__h=t),u.__}function M(t,_){return v=8,T(function(){return t},_)}function S$1(){for(var t;t=x.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(p$1),t.__H.__h.forEach(H),t.__H.__h=[];}catch(_){t.__H.__h=[],o.__e(_,t.__v);}}o.__b=function(t){r=null,g&&g(t);},o.__=function(t,_){t&&_.__k&&_.__k.__m&&(t.__m=_.__k.__m),k&&k(t,_);},o.__r=function(t){C$1&&C$1(t),c$1=0;var _=(r=t.__c).__H;_&&(d===r?(_.__h=[],r.__h=[],_.__.forEach(function(u){u.__N&&(u.__=u.__N),u.i=u.__N=void 0;})):(_.__h.forEach(p$1),_.__h.forEach(H),_.__h=[],c$1=0)),d=r;},o.diffed=function(t){A&&A(t);var _=t.__c;_&&_.__H&&(_.__H.__h.length&&(x.push(_)!==1&&b===o.requestAnimationFrame||((b=o.requestAnimationFrame)||W)(S$1)),_.__H.__.forEach(function(u){u.i&&(u.__H=u.i),u.i=void 0;})),d=r=null;},o.__c=function(t,_){_.some(function(u){try{u.__h.forEach(p$1),u.__h=u.__h.filter(function(n){return !n.__||H(n)});}catch(n){_.some(function(i){i.__h&&(i.__h=[]);}),_=[],o.__e(n,u.__v);}}),D&&D(t,_);},o.unmount=function(t){F&&F(t);var _,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{p$1(n);}catch(i){_=i;}}),u.__H=void 0,_&&o.__e(_,u.__v));};var q=typeof requestAnimationFrame=="function";function W(t){var _,u=function(){clearTimeout(n),q&&cancelAnimationFrame(_),setTimeout(t);},n=setTimeout(u,100);q&&(_=requestAnimationFrame(u));}function p$1(t){var _=r,u=t.__c;typeof u=="function"&&(t.__c=void 0,u()),r=_;}function H(t){var _=r;t.__c=t.__(),r=_;}function E(t,_){return !t||t.length!==_.length||_.some(function(u,n){return u!==t[n]})}function U(t,_){return typeof _=="function"?_(t):_}
|
|
1030
|
+
|
|
1031
|
+
/* esm.sh - @preact/signals@1.3.0 */
|
|
1032
|
+
var p;function a(e,n){h$1[e]=n.bind(null,h$1[e]||function(){});}function c(e){p&&p(),p=e&&e.S();}function S(e){var n=this,t=e.data,i=w(t);i.value=t;var u=T(function(){for(var r=n.__v;r=r.__;)if(r.__c){r.__c.__$f|=4;break}return n.__$u.c=function(){var f;!ie(u.peek())&&((f=n.base)==null?void 0:f.nodeType)===3?n.base.data=u.peek():(n.__$f|=1,n.setState({}));},k$1(function(){var f=i.value.value;return f===0?0:f===true?"":f||""})},[]);return u.value}S.displayName="_st";Object.defineProperties(r$1.prototype,{constructor:{configurable:true,value:void 0},type:{configurable:true,value:S},props:{configurable:true,get:function(){return {data:this}}},__b:{configurable:true,value:1}});a("__b",function(e,n){if(typeof n.type=="string"){var t,i=n.props;for(var u in i)if(u!=="children"){var r=i[u];r instanceof r$1&&(t||(n.__np=t={}),t[u]=r,i[u]=r.peek());}}e(n);});a("__r",function(e,n){c();var t,i=n.__c;i&&(i.__$f&=-2,(t=i.__$u)===void 0&&(i.__$u=t=function(u){var r;return U$1(function(){r=this;}),r.c=function(){i.__$f|=1,i.setState({});},r}())),c(t),e(n);});a("__e",function(e,n,t,i){c(),e(n,t,i);});a("diffed",function(e,n){c();var t;if(typeof n.type=="string"&&(t=n.__e)){var i=n.__np,u=n.props;if(i){var r=t.U;if(r)for(var f in r){var o=r[f];o!==void 0&&!(f in i)&&(o.d(),r[f]=void 0);}else t.U=r={};for(var _ in i){var v=r[_],m=i[_];v===void 0?(v=C(t,_,m,u),r[_]=v):v.o(m,u);}}}e(n);});function C(e,n,t,i){var u=n in e&&e.ownerSVGElement===void 0,r=O(t);return {o:function(f,o){r.value=f,i=o;},d:U$1(function(){var f=r.value.value;i[n]!==f&&(i[n]=f,u?e[n]=f:f?e.setAttribute(n,f):e.removeAttribute(n));})}}a("unmount",function(e,n){if(typeof n.type=="string"){var t=n.__e;if(t){var i=t.U;if(i){t.U=void 0;for(var u in i){var r=i[u];r&&r.d();}}}}else {var f=n.__c;if(f){var o=f.__$u;o&&(f.__$u=void 0,o.d());}}e(n);});a("__h",function(e,n,t,i){(i<3||i===9)&&(n.__$f|=2),e(n,t,i);});F$1.prototype.shouldComponentUpdate=function(e,n){var t=this.__$u;if(!(t&&t.s!==void 0||4&this.__$f)||3&this.__$f)return true;for(var i in n)return true;for(var u in e)if(u!=="__source"&&e[u]!==this.props[u])return true;for(var r in this.props)if(!(r in e))return true;return false};function w(e){return T(function(){return O(e)},[])}
|
|
1033
|
+
|
|
1034
|
+
const routesLoadingSignal = O(false);
|
|
1035
|
+
const routeLoadingErrorSignal = O(null);
|
|
1036
|
+
const routesSignal = O([]);
|
|
1780
1037
|
const NO_PACKAGE_NAME = "unknown";
|
|
1781
1038
|
|
|
1782
|
-
const repartitionsSignal =
|
|
1039
|
+
const repartitionsSignal = k$1(() => {
|
|
1783
1040
|
const routes = routesSignal.value;
|
|
1784
1041
|
const methodRepartition = {};
|
|
1785
1042
|
const packageRepartition = {};
|
|
@@ -1801,16 +1058,16 @@ label .filter_text {
|
|
|
1801
1058
|
packageRepartition,
|
|
1802
1059
|
};
|
|
1803
1060
|
});
|
|
1804
|
-
const methodRepartitionSignal =
|
|
1061
|
+
const methodRepartitionSignal = k$1(() => {
|
|
1805
1062
|
return repartitionsSignal.value.methodRepartition;
|
|
1806
1063
|
});
|
|
1807
|
-
const packageRepartitionSignal =
|
|
1064
|
+
const packageRepartitionSignal = k$1(() => {
|
|
1808
1065
|
return repartitionsSignal.value.packageRepartition;
|
|
1809
1066
|
});
|
|
1810
|
-
const availableMethodNamesSignal =
|
|
1067
|
+
const availableMethodNamesSignal = k$1(() => {
|
|
1811
1068
|
return Object.keys(methodRepartitionSignal.value);
|
|
1812
1069
|
});
|
|
1813
|
-
const availablePackageNamesSignal =
|
|
1070
|
+
const availablePackageNamesSignal = k$1(() => {
|
|
1814
1071
|
return Object.keys(packageRepartitionSignal.value);
|
|
1815
1072
|
});
|
|
1816
1073
|
|
|
@@ -1835,17 +1092,17 @@ label .filter_text {
|
|
|
1835
1092
|
if (routes.length === 0) {
|
|
1836
1093
|
return null;
|
|
1837
1094
|
}
|
|
1838
|
-
return
|
|
1095
|
+
return p$3` <${FiltersPanel} routes=${routes} /> `;
|
|
1839
1096
|
};
|
|
1840
1097
|
|
|
1841
1098
|
const App = () => {
|
|
1842
|
-
return
|
|
1099
|
+
return p$3` <${RouteList} /> `;
|
|
1843
1100
|
};
|
|
1844
1101
|
const ProgressBar = ({ width = "100%", height = 6, loading }) => {
|
|
1845
1102
|
if (!loading) {
|
|
1846
1103
|
return null;
|
|
1847
1104
|
}
|
|
1848
|
-
return
|
|
1105
|
+
return p$3`
|
|
1849
1106
|
<div
|
|
1850
1107
|
class="progress-bar"
|
|
1851
1108
|
style=${{
|
|
@@ -1867,27 +1124,27 @@ label .filter_text {
|
|
|
1867
1124
|
const routeLoadingError = routeLoadingErrorSignal.value;
|
|
1868
1125
|
|
|
1869
1126
|
if (loading) {
|
|
1870
|
-
return
|
|
1127
|
+
return p$3`<${ProgressBar} width="150" loading=${true} />`;
|
|
1871
1128
|
}
|
|
1872
1129
|
|
|
1873
1130
|
if (routeLoadingError) {
|
|
1874
|
-
return
|
|
1131
|
+
return p$3`<p>
|
|
1875
1132
|
Error loading routes: ${routeLoadingError.message}
|
|
1876
1133
|
</p>`;
|
|
1877
1134
|
}
|
|
1878
1135
|
|
|
1879
1136
|
if (!routes || routes.length === 0) {
|
|
1880
|
-
return
|
|
1137
|
+
return p$3`<p>No routes configured.</p>`;
|
|
1881
1138
|
}
|
|
1882
1139
|
|
|
1883
|
-
return
|
|
1140
|
+
return p$3`<div class="route_container">
|
|
1884
1141
|
<div class="route_list">
|
|
1885
|
-
${routes.map((route) =>
|
|
1142
|
+
${routes.map((route) => p$3`<${RouteDetails} ...${route} />`)}
|
|
1886
1143
|
</div>
|
|
1887
1144
|
</div>`;
|
|
1888
1145
|
};
|
|
1889
1146
|
|
|
1890
|
-
const documentUrlSignal =
|
|
1147
|
+
const documentUrlSignal = O(window.location.href);
|
|
1891
1148
|
window.addEventListener("popstate", async (popstateEvent) => {
|
|
1892
1149
|
documentUrlSignal.value = popstateEvent.target.location.href;
|
|
1893
1150
|
});
|
|
@@ -1903,7 +1160,7 @@ label .filter_text {
|
|
|
1903
1160
|
goTo(window.location.href, { replace: true });
|
|
1904
1161
|
|
|
1905
1162
|
let useUrlStringParam;
|
|
1906
|
-
|
|
1163
|
+
{
|
|
1907
1164
|
useUrlStringParam = (name, { availableValues } = {}) => {
|
|
1908
1165
|
const urlStringParamSignal = signalForUrlParam(name, (url) => {
|
|
1909
1166
|
return new URL(url).searchParams.get(name);
|
|
@@ -1919,7 +1176,7 @@ label .filter_text {
|
|
|
1919
1176
|
value = "";
|
|
1920
1177
|
}
|
|
1921
1178
|
|
|
1922
|
-
const set =
|
|
1179
|
+
const set = M(
|
|
1923
1180
|
(newValue) => {
|
|
1924
1181
|
const urlObject = new URL(documentUrlSignal.peek());
|
|
1925
1182
|
const { searchParams } = urlObject;
|
|
@@ -1953,7 +1210,7 @@ label .filter_text {
|
|
|
1953
1210
|
if (existingSignal) {
|
|
1954
1211
|
return existingSignal;
|
|
1955
1212
|
}
|
|
1956
|
-
const signalForFirstCall =
|
|
1213
|
+
const signalForFirstCall = k$1(() => {
|
|
1957
1214
|
const url = documentUrlSignal.value;
|
|
1958
1215
|
const valueInUrl = getter(url);
|
|
1959
1216
|
return valueInUrl;
|
|
@@ -1978,9 +1235,9 @@ label .filter_text {
|
|
|
1978
1235
|
};
|
|
1979
1236
|
|
|
1980
1237
|
let FiltersPanel;
|
|
1981
|
-
|
|
1238
|
+
{
|
|
1982
1239
|
FiltersPanel = ({ routes }) => {
|
|
1983
|
-
return
|
|
1240
|
+
return p$3`
|
|
1984
1241
|
<div class="filter_container">
|
|
1985
1242
|
<div class="filter_list">
|
|
1986
1243
|
<div class="filter_item">
|
|
@@ -2025,7 +1282,7 @@ label .filter_text {
|
|
|
2025
1282
|
const options = [
|
|
2026
1283
|
{
|
|
2027
1284
|
value: "",
|
|
2028
|
-
text:
|
|
1285
|
+
text: p$3`
|
|
2029
1286
|
<span
|
|
2030
1287
|
class="filter_text"
|
|
2031
1288
|
data-method="all"
|
|
@@ -2041,7 +1298,7 @@ label .filter_text {
|
|
|
2041
1298
|
...availableMethodNames.map((availableMethodName) => {
|
|
2042
1299
|
return {
|
|
2043
1300
|
value: availableMethodName,
|
|
2044
|
-
text:
|
|
1301
|
+
text: p$3`
|
|
2045
1302
|
<span class="filter_text" data-method="${availableMethodName}"
|
|
2046
1303
|
>${availableMethodName}
|
|
2047
1304
|
</span>
|
|
@@ -2054,7 +1311,7 @@ label .filter_text {
|
|
|
2054
1311
|
}),
|
|
2055
1312
|
];
|
|
2056
1313
|
|
|
2057
|
-
return
|
|
1314
|
+
return p$3`
|
|
2058
1315
|
<${FilterSelector}
|
|
2059
1316
|
label="Methods"
|
|
2060
1317
|
options=${options}
|
|
@@ -2073,14 +1330,14 @@ label .filter_text {
|
|
|
2073
1330
|
const options = [
|
|
2074
1331
|
{
|
|
2075
1332
|
value: "",
|
|
2076
|
-
text:
|
|
1333
|
+
text: p$3`<span>all</span>
|
|
2077
1334
|
<span class="filter_count">${routes.length}</span>`,
|
|
2078
1335
|
selected: !selectedPackageName,
|
|
2079
1336
|
},
|
|
2080
1337
|
...availablePackageNames.map((availablePackageName) => {
|
|
2081
1338
|
return {
|
|
2082
1339
|
value: availablePackageName,
|
|
2083
|
-
text:
|
|
1340
|
+
text: p$3` <span
|
|
2084
1341
|
class="filter_text"
|
|
2085
1342
|
title="${availablePackageName}"
|
|
2086
1343
|
>${availablePackageName}</span
|
|
@@ -2092,7 +1349,7 @@ label .filter_text {
|
|
|
2092
1349
|
};
|
|
2093
1350
|
}),
|
|
2094
1351
|
];
|
|
2095
|
-
return
|
|
1352
|
+
return p$3`
|
|
2096
1353
|
<${FilterSelector}
|
|
2097
1354
|
label="Packages"
|
|
2098
1355
|
options=${options}
|
|
@@ -2109,16 +1366,16 @@ label .filter_text {
|
|
|
2109
1366
|
onChange,
|
|
2110
1367
|
actions,
|
|
2111
1368
|
}) => {
|
|
2112
|
-
const formRef =
|
|
1369
|
+
const formRef = z();
|
|
2113
1370
|
|
|
2114
|
-
return
|
|
1371
|
+
return p$3`<details open class="filter">
|
|
2115
1372
|
<summary class="filter_summary">
|
|
2116
1373
|
${label}
|
|
2117
1374
|
<${ArrowDown} />
|
|
2118
1375
|
</summary>
|
|
2119
1376
|
<form ref=${formRef} class="filter_form">
|
|
2120
1377
|
${options.map((option) => {
|
|
2121
|
-
return
|
|
1378
|
+
return p$3`<label>
|
|
2122
1379
|
<input
|
|
2123
1380
|
type="${multiple ? "checkbox" : "radio"}"
|
|
2124
1381
|
name="${label}"
|
|
@@ -2153,7 +1410,7 @@ label .filter_text {
|
|
|
2153
1410
|
</form>
|
|
2154
1411
|
${
|
|
2155
1412
|
actions &&
|
|
2156
|
-
|
|
1413
|
+
p$3` <div class="filter_actions">
|
|
2157
1414
|
<button
|
|
2158
1415
|
type="button"
|
|
2159
1416
|
class="filter_button"
|
|
@@ -2192,7 +1449,7 @@ label .filter_text {
|
|
|
2192
1449
|
clientCodeExample,
|
|
2193
1450
|
declarationSource,
|
|
2194
1451
|
}) => {
|
|
2195
|
-
const [opened, setOpened] =
|
|
1452
|
+
const [opened, setOpened] = B(false);
|
|
2196
1453
|
const [selectedMethod] = useUrlStringParam("method");
|
|
2197
1454
|
const [selectedPackageName] = usePackageUrlStringParam();
|
|
2198
1455
|
|
|
@@ -2204,7 +1461,7 @@ label .filter_text {
|
|
|
2204
1461
|
return null;
|
|
2205
1462
|
}
|
|
2206
1463
|
|
|
2207
|
-
return
|
|
1464
|
+
return p$3`<details
|
|
2208
1465
|
class="route_details"
|
|
2209
1466
|
onToggle=${(e) => {
|
|
2210
1467
|
setOpened(e.newState === "open");
|
|
@@ -2217,7 +1474,7 @@ label .filter_text {
|
|
|
2217
1474
|
<p class="route_resource">${resource}</p>
|
|
2218
1475
|
<span style="flex:1"></span>
|
|
2219
1476
|
<${RouteBadge} meta=${meta} />
|
|
2220
|
-
${opened ?
|
|
1477
|
+
${opened ? p$3`<${ArrowUp} />` : p$3`<${ArrowDown} />`}
|
|
2221
1478
|
</div>
|
|
2222
1479
|
</summary>
|
|
2223
1480
|
<${RouteDetailsContent}
|
|
@@ -2243,7 +1500,7 @@ label .filter_text {
|
|
|
2243
1500
|
}
|
|
2244
1501
|
let text = meta.packageName;
|
|
2245
1502
|
let title = `This endpoint is declared by ${meta.packageName}`;
|
|
2246
|
-
return
|
|
1503
|
+
return p$3`<span title=${title} class="route_owner_name"
|
|
2247
1504
|
>${text}</span
|
|
2248
1505
|
>`;
|
|
2249
1506
|
};
|
|
@@ -2262,7 +1519,7 @@ label .filter_text {
|
|
|
2262
1519
|
declarationSource,
|
|
2263
1520
|
meta,
|
|
2264
1521
|
}) => {
|
|
2265
|
-
return
|
|
1522
|
+
return p$3`<div class="route_details_content">
|
|
2266
1523
|
<${RoutedeclarationSource}
|
|
2267
1524
|
meta=${meta}
|
|
2268
1525
|
declarationSource=${declarationSource}
|
|
@@ -2272,31 +1529,31 @@ label .filter_text {
|
|
|
2272
1529
|
${description || "No description available"}
|
|
2273
1530
|
</p>
|
|
2274
1531
|
${availableMediaTypes.length > 0 &&
|
|
2275
|
-
|
|
1532
|
+
p$3`<${RouteContentNegotiationSection}
|
|
2276
1533
|
type="content-type"
|
|
2277
1534
|
title="Available media types"
|
|
2278
1535
|
availableValues=${availableMediaTypes}
|
|
2279
1536
|
/>`}
|
|
2280
1537
|
${availableLanguages.length > 0 &&
|
|
2281
|
-
|
|
1538
|
+
p$3`<${RouteContentNegotiationSection}
|
|
2282
1539
|
type="language"
|
|
2283
1540
|
title="Available languages"
|
|
2284
1541
|
availableValues=${availableLanguages}
|
|
2285
1542
|
/>`}
|
|
2286
1543
|
${availableVersions.length > 0 &&
|
|
2287
|
-
|
|
1544
|
+
p$3`<${RouteContentNegotiationSection}
|
|
2288
1545
|
type="version"
|
|
2289
1546
|
title="Available versions"
|
|
2290
1547
|
availableValues=${availableVersions}
|
|
2291
1548
|
/>`}
|
|
2292
1549
|
${availableEncodings.length > 0 &&
|
|
2293
|
-
|
|
1550
|
+
p$3`<${RouteContentNegotiationSection}
|
|
2294
1551
|
type="encoding"
|
|
2295
1552
|
title="Available encodings"
|
|
2296
1553
|
availableValues=${availableEncodings}
|
|
2297
1554
|
/>`}
|
|
2298
1555
|
${acceptedMediaTypes.length > 0 &&
|
|
2299
|
-
|
|
1556
|
+
p$3`<${RouteAcceptableContentSection}
|
|
2300
1557
|
acceptedMediaTypes=${acceptedMediaTypes}
|
|
2301
1558
|
/>`}
|
|
2302
1559
|
<p style="margin-bottom:0; font-weight:bold">Example:</p>
|
|
@@ -2313,7 +1570,7 @@ label .filter_text {
|
|
|
2313
1570
|
if (!declarationSource) {
|
|
2314
1571
|
return null;
|
|
2315
1572
|
}
|
|
2316
|
-
return
|
|
1573
|
+
return p$3`<p style="margin-top: 0"><strong>Declaration:</strong></p>
|
|
2317
1574
|
<p>
|
|
2318
1575
|
<${RouteDeclarationText}
|
|
2319
1576
|
ownerLink=${meta.ownerLink}
|
|
@@ -2322,7 +1579,7 @@ label .filter_text {
|
|
|
2322
1579
|
</p>`;
|
|
2323
1580
|
};
|
|
2324
1581
|
const RouteDeclarationText = ({ declarationLink }) => {
|
|
2325
|
-
return
|
|
1582
|
+
return p$3`This route is declared in${" "}
|
|
2326
1583
|
<a href="${declarationLink.url}">${declarationLink.text}</a>`;
|
|
2327
1584
|
};
|
|
2328
1585
|
const RouteContentNegotiationSection = ({
|
|
@@ -2330,21 +1587,21 @@ label .filter_text {
|
|
|
2330
1587
|
title,
|
|
2331
1588
|
availableValues,
|
|
2332
1589
|
}) => {
|
|
2333
|
-
return
|
|
1590
|
+
return p$3`<div class="route_content_nego" data-nego-type="${type}">
|
|
2334
1591
|
<p class="route_content_nego_title">${title}:</p>
|
|
2335
1592
|
<ul>
|
|
2336
1593
|
${availableValues.map(
|
|
2337
|
-
(availableValue) =>
|
|
1594
|
+
(availableValue) => p$3`<li>${availableValue}</li>`,
|
|
2338
1595
|
)}
|
|
2339
1596
|
</ul>
|
|
2340
1597
|
</div>`;
|
|
2341
1598
|
};
|
|
2342
1599
|
const RouteAcceptableContentSection = ({ acceptedMediaTypes }) => {
|
|
2343
|
-
return
|
|
1600
|
+
return p$3`<div class="route_accepted_content_type">
|
|
2344
1601
|
<p><strong>Accepted content types:</strong></p>
|
|
2345
1602
|
<ul>
|
|
2346
1603
|
${acceptedMediaTypes.map(
|
|
2347
|
-
(acceptedMediaType) =>
|
|
1604
|
+
(acceptedMediaType) => p$3`<li>${acceptedMediaType}</li>`,
|
|
2348
1605
|
)}
|
|
2349
1606
|
</ul>
|
|
2350
1607
|
</div>`;
|
|
@@ -2398,13 +1655,13 @@ label .filter_text {
|
|
|
2398
1655
|
`;
|
|
2399
1656
|
}
|
|
2400
1657
|
|
|
2401
|
-
return
|
|
1658
|
+
return p$3`<code-block lang="js" data-escaped data-copy-button
|
|
2402
1659
|
>${jsSource}</code-block
|
|
2403
1660
|
>`;
|
|
2404
1661
|
};
|
|
2405
1662
|
|
|
2406
1663
|
const ArrowDown = () => {
|
|
2407
|
-
return
|
|
1664
|
+
return p$3`<svg
|
|
2408
1665
|
xmlns="http://www.w3.org/2000/svg"
|
|
2409
1666
|
viewBox="0 -960 960 960"
|
|
2410
1667
|
width="24"
|
|
@@ -2416,7 +1673,7 @@ label .filter_text {
|
|
|
2416
1673
|
</svg>`;
|
|
2417
1674
|
};
|
|
2418
1675
|
const ArrowUp = () => {
|
|
2419
|
-
return
|
|
1676
|
+
return p$3`<svg
|
|
2420
1677
|
xmlns="http://www.w3.org/2000/svg"
|
|
2421
1678
|
viewBox="0 -960 960 960"
|
|
2422
1679
|
width="24"
|
|
@@ -2428,8 +1685,8 @@ label .filter_text {
|
|
|
2428
1685
|
</svg>`;
|
|
2429
1686
|
};
|
|
2430
1687
|
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
1688
|
+
de(p$3`<${Sidebar} />`, document.querySelector("aside"));
|
|
1689
|
+
de(p$3`<${App} />`, document.querySelector("#app"));
|
|
1690
|
+
</script>
|
|
2434
1691
|
</body>
|
|
2435
1692
|
</html>
|