@nebula.js/stardust 5.12.6 → 5.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +1175 -916
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +1431 -1377
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +13 -13
- package/dist/stardust.js.map +1 -1
- package/package.json +10 -10
- package/types/index.d.ts +2 -0
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.
|
|
2
|
+
* @nebula.js/stardust v5.13.0
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -62,671 +62,768 @@
|
|
|
62
62
|
* This source code is licensed under the MIT license found in the
|
|
63
63
|
* LICENSE file in the root directory of this source tree.
|
|
64
64
|
*/
|
|
65
|
+
|
|
65
66
|
var hasRequiredRuntime;
|
|
66
|
-
function requireRuntime() {
|
|
67
|
-
if (hasRequiredRuntime) return runtime.exports;
|
|
68
|
-
hasRequiredRuntime = 1;
|
|
69
|
-
(function (module) {
|
|
70
|
-
var runtime = function (exports) {
|
|
71
|
-
|
|
72
|
-
var Op = Object.prototype;
|
|
73
|
-
var hasOwn = Op.hasOwnProperty;
|
|
74
|
-
var defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
75
|
-
obj[key] = desc.value;
|
|
76
|
-
};
|
|
77
|
-
var undefined$1; // More compressible than void 0.
|
|
78
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
79
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
80
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
81
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
82
|
-
function define(obj, key, value) {
|
|
83
|
-
Object.defineProperty(obj, key, {
|
|
84
|
-
value: value,
|
|
85
|
-
enumerable: true,
|
|
86
|
-
configurable: true,
|
|
87
|
-
writable: true
|
|
88
|
-
});
|
|
89
|
-
return obj[key];
|
|
90
|
-
}
|
|
91
|
-
try {
|
|
92
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
93
|
-
define({}, "");
|
|
94
|
-
} catch (err) {
|
|
95
|
-
define = function (obj, key, value) {
|
|
96
|
-
return obj[key] = value;
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
100
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
101
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
102
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
103
|
-
var context = new Context(tryLocsList || []);
|
|
104
67
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
138
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
139
|
-
var GenStateExecuting = "executing";
|
|
140
|
-
var GenStateCompleted = "completed";
|
|
141
|
-
|
|
142
|
-
// Returning this object from the innerFn has the same effect as
|
|
143
|
-
// breaking out of the dispatch switch statement.
|
|
144
|
-
var ContinueSentinel = {};
|
|
145
|
-
|
|
146
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
147
|
-
// .constructor.prototype properties for functions that return Generator
|
|
148
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
149
|
-
// minifier not to mangle the names of these two functions.
|
|
150
|
-
function Generator() {}
|
|
151
|
-
function GeneratorFunction() {}
|
|
152
|
-
function GeneratorFunctionPrototype() {}
|
|
153
|
-
|
|
154
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
155
|
-
// don't natively support it.
|
|
156
|
-
var IteratorPrototype = {};
|
|
157
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
158
|
-
return this;
|
|
159
|
-
});
|
|
160
|
-
var getProto = Object.getPrototypeOf;
|
|
161
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
162
|
-
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
163
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
164
|
-
// of the polyfill.
|
|
165
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
166
|
-
}
|
|
167
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
168
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
169
|
-
defineProperty(Gp, "constructor", {
|
|
170
|
-
value: GeneratorFunctionPrototype,
|
|
171
|
-
configurable: true
|
|
172
|
-
});
|
|
173
|
-
defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
174
|
-
value: GeneratorFunction,
|
|
175
|
-
configurable: true
|
|
176
|
-
});
|
|
177
|
-
GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction");
|
|
178
|
-
|
|
179
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
180
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
181
|
-
function defineIteratorMethods(prototype) {
|
|
182
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
183
|
-
define(prototype, method, function (arg) {
|
|
184
|
-
return this._invoke(method, arg);
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
exports.isGeneratorFunction = function (genFun) {
|
|
189
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
190
|
-
return ctor ? ctor === GeneratorFunction ||
|
|
191
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
192
|
-
// do is to check its .name property.
|
|
193
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction" : false;
|
|
194
|
-
};
|
|
195
|
-
exports.mark = function (genFun) {
|
|
196
|
-
if (Object.setPrototypeOf) {
|
|
197
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
198
|
-
} else {
|
|
199
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
200
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
201
|
-
}
|
|
202
|
-
genFun.prototype = Object.create(Gp);
|
|
203
|
-
return genFun;
|
|
204
|
-
};
|
|
68
|
+
function requireRuntime () {
|
|
69
|
+
if (hasRequiredRuntime) return runtime.exports;
|
|
70
|
+
hasRequiredRuntime = 1;
|
|
71
|
+
(function (module) {
|
|
72
|
+
var runtime = (function (exports) {
|
|
73
|
+
|
|
74
|
+
var Op = Object.prototype;
|
|
75
|
+
var hasOwn = Op.hasOwnProperty;
|
|
76
|
+
var defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; };
|
|
77
|
+
var undefined$1; // More compressible than void 0.
|
|
78
|
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
79
|
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
80
|
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
81
|
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
82
|
+
|
|
83
|
+
function define(obj, key, value) {
|
|
84
|
+
Object.defineProperty(obj, key, {
|
|
85
|
+
value: value,
|
|
86
|
+
enumerable: true,
|
|
87
|
+
configurable: true,
|
|
88
|
+
writable: true
|
|
89
|
+
});
|
|
90
|
+
return obj[key];
|
|
91
|
+
}
|
|
92
|
+
try {
|
|
93
|
+
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
94
|
+
define({}, "");
|
|
95
|
+
} catch (err) {
|
|
96
|
+
define = function(obj, key, value) {
|
|
97
|
+
return obj[key] = value;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
205
100
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
return {
|
|
212
|
-
__await: arg
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
216
|
-
function invoke(method, arg, resolve, reject) {
|
|
217
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
218
|
-
if (record.type === "throw") {
|
|
219
|
-
reject(record.arg);
|
|
220
|
-
} else {
|
|
221
|
-
var result = record.arg;
|
|
222
|
-
var value = result.value;
|
|
223
|
-
if (value && typeof value === "object" && hasOwn.call(value, "__await")) {
|
|
224
|
-
return PromiseImpl.resolve(value.__await).then(function (value) {
|
|
225
|
-
invoke("next", value, resolve, reject);
|
|
226
|
-
}, function (err) {
|
|
227
|
-
invoke("throw", err, resolve, reject);
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
return PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
231
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
232
|
-
// the .value of the Promise<{value,done}> result for the
|
|
233
|
-
// current iteration.
|
|
234
|
-
result.value = unwrapped;
|
|
235
|
-
resolve(result);
|
|
236
|
-
}, function (error) {
|
|
237
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
238
|
-
// into the async generator function so it can be handled there.
|
|
239
|
-
return invoke("throw", error, resolve, reject);
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
var previousPromise;
|
|
244
|
-
function enqueue(method, arg) {
|
|
245
|
-
function callInvokeWithMethodAndArg() {
|
|
246
|
-
return new PromiseImpl(function (resolve, reject) {
|
|
247
|
-
invoke(method, arg, resolve, reject);
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
return previousPromise =
|
|
251
|
-
// If enqueue has been called before, then we want to wait until
|
|
252
|
-
// all previous Promises have been resolved before calling invoke,
|
|
253
|
-
// so that results are always delivered in the correct order. If
|
|
254
|
-
// enqueue has not been called before, then it is important to
|
|
255
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
256
|
-
// so that the async generator function has the opportunity to do
|
|
257
|
-
// any necessary setup in a predictable way. This predictability
|
|
258
|
-
// is why the Promise constructor synchronously invokes its
|
|
259
|
-
// executor callback, and why async functions synchronously
|
|
260
|
-
// execute code before the first await. Since we implement simple
|
|
261
|
-
// async functions in terms of async generators, it is especially
|
|
262
|
-
// important to get this right, even though it requires care.
|
|
263
|
-
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg,
|
|
264
|
-
// Avoid propagating failures to Promises returned by later
|
|
265
|
-
// invocations of the iterator.
|
|
266
|
-
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
267
|
-
}
|
|
101
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
102
|
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
103
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
104
|
+
var generator = Object.create(protoGenerator.prototype);
|
|
105
|
+
var context = new Context(tryLocsList || []);
|
|
268
106
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
value: enqueue
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
276
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
277
|
-
return this;
|
|
278
|
-
});
|
|
279
|
-
exports.AsyncIterator = AsyncIterator;
|
|
280
|
-
|
|
281
|
-
// Note that simple async functions are implemented on top of
|
|
282
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
283
|
-
// the final result produced by the iterator.
|
|
284
|
-
exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
285
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
286
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
287
|
-
return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
|
|
288
|
-
: iter.next().then(function (result) {
|
|
289
|
-
return result.done ? result.value : iter.next();
|
|
290
|
-
});
|
|
291
|
-
};
|
|
292
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
293
|
-
var state = GenStateSuspendedStart;
|
|
294
|
-
return function invoke(method, arg) {
|
|
295
|
-
if (state === GenStateExecuting) {
|
|
296
|
-
throw new Error("Generator is already running");
|
|
297
|
-
}
|
|
298
|
-
if (state === GenStateCompleted) {
|
|
299
|
-
if (method === "throw") {
|
|
300
|
-
throw arg;
|
|
301
|
-
}
|
|
107
|
+
// The ._invoke method unifies the implementations of the .next,
|
|
108
|
+
// .throw, and .return methods.
|
|
109
|
+
defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) });
|
|
302
110
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
if (state === GenStateSuspendedStart) {
|
|
325
|
-
state = GenStateCompleted;
|
|
326
|
-
throw context.arg;
|
|
327
|
-
}
|
|
328
|
-
context.dispatchException(context.arg);
|
|
329
|
-
} else if (context.method === "return") {
|
|
330
|
-
context.abrupt("return", context.arg);
|
|
331
|
-
}
|
|
332
|
-
state = GenStateExecuting;
|
|
333
|
-
var record = tryCatch(innerFn, self, context);
|
|
334
|
-
if (record.type === "normal") {
|
|
335
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
336
|
-
// GenStateExecuting and loop back for another invocation.
|
|
337
|
-
state = context.done ? GenStateCompleted : GenStateSuspendedYield;
|
|
338
|
-
if (record.arg === ContinueSentinel) {
|
|
339
|
-
continue;
|
|
340
|
-
}
|
|
341
|
-
return {
|
|
342
|
-
value: record.arg,
|
|
343
|
-
done: context.done
|
|
344
|
-
};
|
|
345
|
-
} else if (record.type === "throw") {
|
|
346
|
-
state = GenStateCompleted;
|
|
347
|
-
// Dispatch the exception by looping back around to the
|
|
348
|
-
// context.dispatchException(context.arg) call above.
|
|
349
|
-
context.method = "throw";
|
|
350
|
-
context.arg = record.arg;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
}
|
|
111
|
+
return generator;
|
|
112
|
+
}
|
|
113
|
+
exports.wrap = wrap;
|
|
114
|
+
|
|
115
|
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
116
|
+
// record like context.tryEntries[i].completion. This interface could
|
|
117
|
+
// have been (and was previously) designed to take a closure to be
|
|
118
|
+
// invoked without arguments, but in all the cases we care about we
|
|
119
|
+
// already have an existing method we want to call, so there's no need
|
|
120
|
+
// to create a new function object. We can even get away with assuming
|
|
121
|
+
// the method takes exactly one argument, since that happens to be true
|
|
122
|
+
// in every case, so we don't have to touch the arguments object. The
|
|
123
|
+
// only additional allocation required is the completion record, which
|
|
124
|
+
// has a stable shape and so hopefully should be cheap to allocate.
|
|
125
|
+
function tryCatch(fn, obj, arg) {
|
|
126
|
+
try {
|
|
127
|
+
return { type: "normal", arg: fn.call(obj, arg) };
|
|
128
|
+
} catch (err) {
|
|
129
|
+
return { type: "throw", arg: err };
|
|
130
|
+
}
|
|
131
|
+
}
|
|
355
132
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
if (record.type === "throw") {
|
|
390
|
-
context.method = "throw";
|
|
391
|
-
context.arg = record.arg;
|
|
392
|
-
context.delegate = null;
|
|
393
|
-
return ContinueSentinel;
|
|
394
|
-
}
|
|
395
|
-
var info = record.arg;
|
|
396
|
-
if (!info) {
|
|
397
|
-
context.method = "throw";
|
|
398
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
399
|
-
context.delegate = null;
|
|
400
|
-
return ContinueSentinel;
|
|
401
|
-
}
|
|
402
|
-
if (info.done) {
|
|
403
|
-
// Assign the result of the finished delegate to the temporary
|
|
404
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
405
|
-
context[delegate.resultName] = info.value;
|
|
406
|
-
|
|
407
|
-
// Resume execution at the desired location (see delegateYield).
|
|
408
|
-
context.next = delegate.nextLoc;
|
|
409
|
-
|
|
410
|
-
// If context.method was "throw" but the delegate handled the
|
|
411
|
-
// exception, let the outer generator proceed normally. If
|
|
412
|
-
// context.method was "next", forget context.arg since it has been
|
|
413
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
414
|
-
// "return", allow the original .return call to continue in the
|
|
415
|
-
// outer generator.
|
|
416
|
-
if (context.method !== "return") {
|
|
417
|
-
context.method = "next";
|
|
418
|
-
context.arg = undefined$1;
|
|
419
|
-
}
|
|
420
|
-
} else {
|
|
421
|
-
// Re-yield the result returned by the delegate method.
|
|
422
|
-
return info;
|
|
423
|
-
}
|
|
133
|
+
var GenStateSuspendedStart = "suspendedStart";
|
|
134
|
+
var GenStateSuspendedYield = "suspendedYield";
|
|
135
|
+
var GenStateExecuting = "executing";
|
|
136
|
+
var GenStateCompleted = "completed";
|
|
137
|
+
|
|
138
|
+
// Returning this object from the innerFn has the same effect as
|
|
139
|
+
// breaking out of the dispatch switch statement.
|
|
140
|
+
var ContinueSentinel = {};
|
|
141
|
+
|
|
142
|
+
// Dummy constructor functions that we use as the .constructor and
|
|
143
|
+
// .constructor.prototype properties for functions that return Generator
|
|
144
|
+
// objects. For full spec compliance, you may wish to configure your
|
|
145
|
+
// minifier not to mangle the names of these two functions.
|
|
146
|
+
function Generator() {}
|
|
147
|
+
function GeneratorFunction() {}
|
|
148
|
+
function GeneratorFunctionPrototype() {}
|
|
149
|
+
|
|
150
|
+
// This is a polyfill for %IteratorPrototype% for environments that
|
|
151
|
+
// don't natively support it.
|
|
152
|
+
var IteratorPrototype = {};
|
|
153
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
154
|
+
return this;
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
var getProto = Object.getPrototypeOf;
|
|
158
|
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
159
|
+
if (NativeIteratorPrototype &&
|
|
160
|
+
NativeIteratorPrototype !== Op &&
|
|
161
|
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
162
|
+
// This environment has a native %IteratorPrototype%; use it instead
|
|
163
|
+
// of the polyfill.
|
|
164
|
+
IteratorPrototype = NativeIteratorPrototype;
|
|
165
|
+
}
|
|
424
166
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
167
|
+
var Gp = GeneratorFunctionPrototype.prototype =
|
|
168
|
+
Generator.prototype = Object.create(IteratorPrototype);
|
|
169
|
+
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
170
|
+
defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: true });
|
|
171
|
+
defineProperty(
|
|
172
|
+
GeneratorFunctionPrototype,
|
|
173
|
+
"constructor",
|
|
174
|
+
{ value: GeneratorFunction, configurable: true }
|
|
175
|
+
);
|
|
176
|
+
GeneratorFunction.displayName = define(
|
|
177
|
+
GeneratorFunctionPrototype,
|
|
178
|
+
toStringTagSymbol,
|
|
179
|
+
"GeneratorFunction"
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
// Helper for defining the .next, .throw, and .return methods of the
|
|
183
|
+
// Iterator interface in terms of a single ._invoke method.
|
|
184
|
+
function defineIteratorMethods(prototype) {
|
|
185
|
+
["next", "throw", "return"].forEach(function(method) {
|
|
186
|
+
define(prototype, method, function(arg) {
|
|
187
|
+
return this._invoke(method, arg);
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
}
|
|
430
191
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
192
|
+
exports.isGeneratorFunction = function(genFun) {
|
|
193
|
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
194
|
+
return ctor
|
|
195
|
+
? ctor === GeneratorFunction ||
|
|
196
|
+
// For the native GeneratorFunction constructor, the best we can
|
|
197
|
+
// do is to check its .name property.
|
|
198
|
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
199
|
+
: false;
|
|
200
|
+
};
|
|
435
201
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
});
|
|
447
|
-
function pushTryEntry(locs) {
|
|
448
|
-
var entry = {
|
|
449
|
-
tryLoc: locs[0]
|
|
450
|
-
};
|
|
451
|
-
if (1 in locs) {
|
|
452
|
-
entry.catchLoc = locs[1];
|
|
453
|
-
}
|
|
454
|
-
if (2 in locs) {
|
|
455
|
-
entry.finallyLoc = locs[2];
|
|
456
|
-
entry.afterLoc = locs[3];
|
|
457
|
-
}
|
|
458
|
-
this.tryEntries.push(entry);
|
|
459
|
-
}
|
|
460
|
-
function resetTryEntry(entry) {
|
|
461
|
-
var record = entry.completion || {};
|
|
462
|
-
record.type = "normal";
|
|
463
|
-
delete record.arg;
|
|
464
|
-
entry.completion = record;
|
|
465
|
-
}
|
|
466
|
-
function Context(tryLocsList) {
|
|
467
|
-
// The root entry object (effectively a try statement without a catch
|
|
468
|
-
// or a finally block) gives us a place to store values thrown from
|
|
469
|
-
// locations where there is no enclosing try statement.
|
|
470
|
-
this.tryEntries = [{
|
|
471
|
-
tryLoc: "root"
|
|
472
|
-
}];
|
|
473
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
474
|
-
this.reset(true);
|
|
475
|
-
}
|
|
476
|
-
exports.keys = function (val) {
|
|
477
|
-
var object = Object(val);
|
|
478
|
-
var keys = [];
|
|
479
|
-
for (var key in object) {
|
|
480
|
-
keys.push(key);
|
|
481
|
-
}
|
|
482
|
-
keys.reverse();
|
|
483
|
-
|
|
484
|
-
// Rather than returning an object with a next method, we keep
|
|
485
|
-
// things simple and return the next function itself.
|
|
486
|
-
return function next() {
|
|
487
|
-
while (keys.length) {
|
|
488
|
-
var key = keys.pop();
|
|
489
|
-
if (key in object) {
|
|
490
|
-
next.value = key;
|
|
491
|
-
next.done = false;
|
|
492
|
-
return next;
|
|
493
|
-
}
|
|
494
|
-
}
|
|
202
|
+
exports.mark = function(genFun) {
|
|
203
|
+
if (Object.setPrototypeOf) {
|
|
204
|
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
205
|
+
} else {
|
|
206
|
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
207
|
+
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
208
|
+
}
|
|
209
|
+
genFun.prototype = Object.create(Gp);
|
|
210
|
+
return genFun;
|
|
211
|
+
};
|
|
495
212
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
function values(iterable) {
|
|
504
|
-
if (iterable != null) {
|
|
505
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
506
|
-
if (iteratorMethod) {
|
|
507
|
-
return iteratorMethod.call(iterable);
|
|
508
|
-
}
|
|
509
|
-
if (typeof iterable.next === "function") {
|
|
510
|
-
return iterable;
|
|
511
|
-
}
|
|
512
|
-
if (!isNaN(iterable.length)) {
|
|
513
|
-
var i = -1,
|
|
514
|
-
next = function next() {
|
|
515
|
-
while (++i < iterable.length) {
|
|
516
|
-
if (hasOwn.call(iterable, i)) {
|
|
517
|
-
next.value = iterable[i];
|
|
518
|
-
next.done = false;
|
|
519
|
-
return next;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
next.value = undefined$1;
|
|
523
|
-
next.done = true;
|
|
524
|
-
return next;
|
|
525
|
-
};
|
|
526
|
-
return next.next = next;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
throw new TypeError(typeof iterable + " is not iterable");
|
|
530
|
-
}
|
|
531
|
-
exports.values = values;
|
|
532
|
-
function doneResult() {
|
|
533
|
-
return {
|
|
534
|
-
value: undefined$1,
|
|
535
|
-
done: true
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
Context.prototype = {
|
|
539
|
-
constructor: Context,
|
|
540
|
-
reset: function (skipTempReset) {
|
|
541
|
-
this.prev = 0;
|
|
542
|
-
this.next = 0;
|
|
543
|
-
// Resetting context._sent for legacy support of Babel's
|
|
544
|
-
// function.sent implementation.
|
|
545
|
-
this.sent = this._sent = undefined$1;
|
|
546
|
-
this.done = false;
|
|
547
|
-
this.delegate = null;
|
|
548
|
-
this.method = "next";
|
|
549
|
-
this.arg = undefined$1;
|
|
550
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
551
|
-
if (!skipTempReset) {
|
|
552
|
-
for (var name in this) {
|
|
553
|
-
// Not sure about the optimal order of these conditions:
|
|
554
|
-
if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
|
|
555
|
-
this[name] = undefined$1;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
stop: function () {
|
|
561
|
-
this.done = true;
|
|
562
|
-
var rootEntry = this.tryEntries[0];
|
|
563
|
-
var rootRecord = rootEntry.completion;
|
|
564
|
-
if (rootRecord.type === "throw") {
|
|
565
|
-
throw rootRecord.arg;
|
|
566
|
-
}
|
|
567
|
-
return this.rval;
|
|
568
|
-
},
|
|
569
|
-
dispatchException: function (exception) {
|
|
570
|
-
if (this.done) {
|
|
571
|
-
throw exception;
|
|
572
|
-
}
|
|
573
|
-
var context = this;
|
|
574
|
-
function handle(loc, caught) {
|
|
575
|
-
record.type = "throw";
|
|
576
|
-
record.arg = exception;
|
|
577
|
-
context.next = loc;
|
|
578
|
-
if (caught) {
|
|
579
|
-
// If the dispatched exception was caught by a catch block,
|
|
580
|
-
// then let that catch block handle the exception normally.
|
|
581
|
-
context.method = "next";
|
|
582
|
-
context.arg = undefined$1;
|
|
583
|
-
}
|
|
584
|
-
return !!caught;
|
|
585
|
-
}
|
|
586
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
587
|
-
var entry = this.tryEntries[i];
|
|
588
|
-
var record = entry.completion;
|
|
589
|
-
if (entry.tryLoc === "root") {
|
|
590
|
-
// Exception thrown outside of any try block that could handle
|
|
591
|
-
// it, so set the completion value of the entire function to
|
|
592
|
-
// throw the exception.
|
|
593
|
-
return handle("end");
|
|
594
|
-
}
|
|
595
|
-
if (entry.tryLoc <= this.prev) {
|
|
596
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
597
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
598
|
-
if (hasCatch && hasFinally) {
|
|
599
|
-
if (this.prev < entry.catchLoc) {
|
|
600
|
-
return handle(entry.catchLoc, true);
|
|
601
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
602
|
-
return handle(entry.finallyLoc);
|
|
603
|
-
}
|
|
604
|
-
} else if (hasCatch) {
|
|
605
|
-
if (this.prev < entry.catchLoc) {
|
|
606
|
-
return handle(entry.catchLoc, true);
|
|
607
|
-
}
|
|
608
|
-
} else if (hasFinally) {
|
|
609
|
-
if (this.prev < entry.finallyLoc) {
|
|
610
|
-
return handle(entry.finallyLoc);
|
|
611
|
-
}
|
|
612
|
-
} else {
|
|
613
|
-
throw new Error("try statement without catch or finally");
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
},
|
|
618
|
-
abrupt: function (type, arg) {
|
|
619
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
620
|
-
var entry = this.tryEntries[i];
|
|
621
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
622
|
-
var finallyEntry = entry;
|
|
623
|
-
break;
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
|
|
627
|
-
// Ignore the finally entry if control is not jumping to a
|
|
628
|
-
// location outside the try/catch block.
|
|
629
|
-
finallyEntry = null;
|
|
630
|
-
}
|
|
631
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
632
|
-
record.type = type;
|
|
633
|
-
record.arg = arg;
|
|
634
|
-
if (finallyEntry) {
|
|
635
|
-
this.method = "next";
|
|
636
|
-
this.next = finallyEntry.finallyLoc;
|
|
637
|
-
return ContinueSentinel;
|
|
638
|
-
}
|
|
639
|
-
return this.complete(record);
|
|
640
|
-
},
|
|
641
|
-
complete: function (record, afterLoc) {
|
|
642
|
-
if (record.type === "throw") {
|
|
643
|
-
throw record.arg;
|
|
644
|
-
}
|
|
645
|
-
if (record.type === "break" || record.type === "continue") {
|
|
646
|
-
this.next = record.arg;
|
|
647
|
-
} else if (record.type === "return") {
|
|
648
|
-
this.rval = this.arg = record.arg;
|
|
649
|
-
this.method = "return";
|
|
650
|
-
this.next = "end";
|
|
651
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
652
|
-
this.next = afterLoc;
|
|
653
|
-
}
|
|
654
|
-
return ContinueSentinel;
|
|
655
|
-
},
|
|
656
|
-
finish: function (finallyLoc) {
|
|
657
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
658
|
-
var entry = this.tryEntries[i];
|
|
659
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
660
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
661
|
-
resetTryEntry(entry);
|
|
662
|
-
return ContinueSentinel;
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
},
|
|
666
|
-
"catch": function (tryLoc) {
|
|
667
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
668
|
-
var entry = this.tryEntries[i];
|
|
669
|
-
if (entry.tryLoc === tryLoc) {
|
|
670
|
-
var record = entry.completion;
|
|
671
|
-
if (record.type === "throw") {
|
|
672
|
-
var thrown = record.arg;
|
|
673
|
-
resetTryEntry(entry);
|
|
674
|
-
}
|
|
675
|
-
return thrown;
|
|
676
|
-
}
|
|
677
|
-
}
|
|
213
|
+
// Within the body of any async function, `await x` is transformed to
|
|
214
|
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
215
|
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
216
|
+
// meant to be awaited.
|
|
217
|
+
exports.awrap = function(arg) {
|
|
218
|
+
return { __await: arg };
|
|
219
|
+
};
|
|
678
220
|
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
};
|
|
221
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
222
|
+
function invoke(method, arg, resolve, reject) {
|
|
223
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
224
|
+
if (record.type === "throw") {
|
|
225
|
+
reject(record.arg);
|
|
226
|
+
} else {
|
|
227
|
+
var result = record.arg;
|
|
228
|
+
var value = result.value;
|
|
229
|
+
if (value &&
|
|
230
|
+
typeof value === "object" &&
|
|
231
|
+
hasOwn.call(value, "__await")) {
|
|
232
|
+
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
233
|
+
invoke("next", value, resolve, reject);
|
|
234
|
+
}, function(err) {
|
|
235
|
+
invoke("throw", err, resolve, reject);
|
|
236
|
+
});
|
|
237
|
+
}
|
|
697
238
|
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
239
|
+
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
240
|
+
// When a yielded Promise is resolved, its final value becomes
|
|
241
|
+
// the .value of the Promise<{value,done}> result for the
|
|
242
|
+
// current iteration.
|
|
243
|
+
result.value = unwrapped;
|
|
244
|
+
resolve(result);
|
|
245
|
+
}, function(error) {
|
|
246
|
+
// If a rejected Promise was yielded, throw the rejection back
|
|
247
|
+
// into the async generator function so it can be handled there.
|
|
248
|
+
return invoke("throw", error, resolve, reject);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
var previousPromise;
|
|
254
|
+
|
|
255
|
+
function enqueue(method, arg) {
|
|
256
|
+
function callInvokeWithMethodAndArg() {
|
|
257
|
+
return new PromiseImpl(function(resolve, reject) {
|
|
258
|
+
invoke(method, arg, resolve, reject);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
return previousPromise =
|
|
263
|
+
// If enqueue has been called before, then we want to wait until
|
|
264
|
+
// all previous Promises have been resolved before calling invoke,
|
|
265
|
+
// so that results are always delivered in the correct order. If
|
|
266
|
+
// enqueue has not been called before, then it is important to
|
|
267
|
+
// call invoke immediately, without waiting on a callback to fire,
|
|
268
|
+
// so that the async generator function has the opportunity to do
|
|
269
|
+
// any necessary setup in a predictable way. This predictability
|
|
270
|
+
// is why the Promise constructor synchronously invokes its
|
|
271
|
+
// executor callback, and why async functions synchronously
|
|
272
|
+
// execute code before the first await. Since we implement simple
|
|
273
|
+
// async functions in terms of async generators, it is especially
|
|
274
|
+
// important to get this right, even though it requires care.
|
|
275
|
+
previousPromise ? previousPromise.then(
|
|
276
|
+
callInvokeWithMethodAndArg,
|
|
277
|
+
// Avoid propagating failures to Promises returned by later
|
|
278
|
+
// invocations of the iterator.
|
|
279
|
+
callInvokeWithMethodAndArg
|
|
280
|
+
) : callInvokeWithMethodAndArg();
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// Define the unified helper method that is used to implement .next,
|
|
284
|
+
// .throw, and .return (see defineIteratorMethods).
|
|
285
|
+
defineProperty(this, "_invoke", { value: enqueue });
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
defineIteratorMethods(AsyncIterator.prototype);
|
|
289
|
+
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
290
|
+
return this;
|
|
291
|
+
});
|
|
292
|
+
exports.AsyncIterator = AsyncIterator;
|
|
293
|
+
|
|
294
|
+
// Note that simple async functions are implemented on top of
|
|
295
|
+
// AsyncIterator objects; they just return a Promise for the value of
|
|
296
|
+
// the final result produced by the iterator.
|
|
297
|
+
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
298
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
299
|
+
|
|
300
|
+
var iter = new AsyncIterator(
|
|
301
|
+
wrap(innerFn, outerFn, self, tryLocsList),
|
|
302
|
+
PromiseImpl
|
|
303
|
+
);
|
|
304
|
+
|
|
305
|
+
return exports.isGeneratorFunction(outerFn)
|
|
306
|
+
? iter // If outerFn is a generator, return the full iterator.
|
|
307
|
+
: iter.next().then(function(result) {
|
|
308
|
+
return result.done ? result.value : iter.next();
|
|
309
|
+
});
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
313
|
+
var state = GenStateSuspendedStart;
|
|
314
|
+
|
|
315
|
+
return function invoke(method, arg) {
|
|
316
|
+
if (state === GenStateExecuting) {
|
|
317
|
+
throw new Error("Generator is already running");
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if (state === GenStateCompleted) {
|
|
321
|
+
if (method === "throw") {
|
|
322
|
+
throw arg;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// Be forgiving, per GeneratorResume behavior specified since ES2015:
|
|
326
|
+
// ES2015 spec, step 3: https://262.ecma-international.org/6.0/#sec-generatorresume
|
|
327
|
+
// Latest spec, step 2: https://tc39.es/ecma262/#sec-generatorresume
|
|
328
|
+
return doneResult();
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
context.method = method;
|
|
332
|
+
context.arg = arg;
|
|
333
|
+
|
|
334
|
+
while (true) {
|
|
335
|
+
var delegate = context.delegate;
|
|
336
|
+
if (delegate) {
|
|
337
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
338
|
+
if (delegateResult) {
|
|
339
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
340
|
+
return delegateResult;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (context.method === "next") {
|
|
345
|
+
// Setting context._sent for legacy support of Babel's
|
|
346
|
+
// function.sent implementation.
|
|
347
|
+
context.sent = context._sent = context.arg;
|
|
348
|
+
|
|
349
|
+
} else if (context.method === "throw") {
|
|
350
|
+
if (state === GenStateSuspendedStart) {
|
|
351
|
+
state = GenStateCompleted;
|
|
352
|
+
throw context.arg;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
context.dispatchException(context.arg);
|
|
356
|
+
|
|
357
|
+
} else if (context.method === "return") {
|
|
358
|
+
context.abrupt("return", context.arg);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
state = GenStateExecuting;
|
|
362
|
+
|
|
363
|
+
var record = tryCatch(innerFn, self, context);
|
|
364
|
+
if (record.type === "normal") {
|
|
365
|
+
// If an exception is thrown from innerFn, we leave state ===
|
|
366
|
+
// GenStateExecuting and loop back for another invocation.
|
|
367
|
+
state = context.done
|
|
368
|
+
? GenStateCompleted
|
|
369
|
+
: GenStateSuspendedYield;
|
|
370
|
+
|
|
371
|
+
if (record.arg === ContinueSentinel) {
|
|
372
|
+
continue;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
return {
|
|
376
|
+
value: record.arg,
|
|
377
|
+
done: context.done
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
} else if (record.type === "throw") {
|
|
381
|
+
state = GenStateCompleted;
|
|
382
|
+
// Dispatch the exception by looping back around to the
|
|
383
|
+
// context.dispatchException(context.arg) call above.
|
|
384
|
+
context.method = "throw";
|
|
385
|
+
context.arg = record.arg;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
392
|
+
// result, either by returning a { value, done } result from the
|
|
393
|
+
// delegate iterator, or by modifying context.method and context.arg,
|
|
394
|
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
395
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
396
|
+
var methodName = context.method;
|
|
397
|
+
var method = delegate.iterator[methodName];
|
|
398
|
+
if (method === undefined$1) {
|
|
399
|
+
// A .throw or .return when the delegate iterator has no .throw
|
|
400
|
+
// method, or a missing .next method, always terminate the
|
|
401
|
+
// yield* loop.
|
|
402
|
+
context.delegate = null;
|
|
403
|
+
|
|
404
|
+
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
405
|
+
if (methodName === "throw" && delegate.iterator["return"]) {
|
|
406
|
+
// If the delegate iterator has a return method, give it a
|
|
407
|
+
// chance to clean up.
|
|
408
|
+
context.method = "return";
|
|
409
|
+
context.arg = undefined$1;
|
|
410
|
+
maybeInvokeDelegate(delegate, context);
|
|
411
|
+
|
|
412
|
+
if (context.method === "throw") {
|
|
413
|
+
// If maybeInvokeDelegate(context) changed context.method from
|
|
414
|
+
// "return" to "throw", let that override the TypeError below.
|
|
415
|
+
return ContinueSentinel;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
if (methodName !== "return") {
|
|
419
|
+
context.method = "throw";
|
|
420
|
+
context.arg = new TypeError(
|
|
421
|
+
"The iterator does not provide a '" + methodName + "' method");
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
return ContinueSentinel;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
428
|
+
|
|
429
|
+
if (record.type === "throw") {
|
|
430
|
+
context.method = "throw";
|
|
431
|
+
context.arg = record.arg;
|
|
432
|
+
context.delegate = null;
|
|
433
|
+
return ContinueSentinel;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
var info = record.arg;
|
|
437
|
+
|
|
438
|
+
if (! info) {
|
|
439
|
+
context.method = "throw";
|
|
440
|
+
context.arg = new TypeError("iterator result is not an object");
|
|
441
|
+
context.delegate = null;
|
|
442
|
+
return ContinueSentinel;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
if (info.done) {
|
|
446
|
+
// Assign the result of the finished delegate to the temporary
|
|
447
|
+
// variable specified by delegate.resultName (see delegateYield).
|
|
448
|
+
context[delegate.resultName] = info.value;
|
|
449
|
+
|
|
450
|
+
// Resume execution at the desired location (see delegateYield).
|
|
451
|
+
context.next = delegate.nextLoc;
|
|
452
|
+
|
|
453
|
+
// If context.method was "throw" but the delegate handled the
|
|
454
|
+
// exception, let the outer generator proceed normally. If
|
|
455
|
+
// context.method was "next", forget context.arg since it has been
|
|
456
|
+
// "consumed" by the delegate iterator. If context.method was
|
|
457
|
+
// "return", allow the original .return call to continue in the
|
|
458
|
+
// outer generator.
|
|
459
|
+
if (context.method !== "return") {
|
|
460
|
+
context.method = "next";
|
|
461
|
+
context.arg = undefined$1;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
} else {
|
|
465
|
+
// Re-yield the result returned by the delegate method.
|
|
466
|
+
return info;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// The delegate iterator is finished, so forget it and continue with
|
|
470
|
+
// the outer generator.
|
|
471
|
+
context.delegate = null;
|
|
472
|
+
return ContinueSentinel;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
476
|
+
// unified ._invoke helper method.
|
|
477
|
+
defineIteratorMethods(Gp);
|
|
478
|
+
|
|
479
|
+
define(Gp, toStringTagSymbol, "Generator");
|
|
480
|
+
|
|
481
|
+
// A Generator should always return itself as the iterator object when the
|
|
482
|
+
// @@iterator function is called on it. Some browsers' implementations of the
|
|
483
|
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
484
|
+
// object to not be returned from this call. This ensures that doesn't happen.
|
|
485
|
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
486
|
+
define(Gp, iteratorSymbol, function() {
|
|
487
|
+
return this;
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
define(Gp, "toString", function() {
|
|
491
|
+
return "[object Generator]";
|
|
492
|
+
});
|
|
493
|
+
|
|
494
|
+
function pushTryEntry(locs) {
|
|
495
|
+
var entry = { tryLoc: locs[0] };
|
|
496
|
+
|
|
497
|
+
if (1 in locs) {
|
|
498
|
+
entry.catchLoc = locs[1];
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
if (2 in locs) {
|
|
502
|
+
entry.finallyLoc = locs[2];
|
|
503
|
+
entry.afterLoc = locs[3];
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
this.tryEntries.push(entry);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
function resetTryEntry(entry) {
|
|
510
|
+
var record = entry.completion || {};
|
|
511
|
+
record.type = "normal";
|
|
512
|
+
delete record.arg;
|
|
513
|
+
entry.completion = record;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
function Context(tryLocsList) {
|
|
517
|
+
// The root entry object (effectively a try statement without a catch
|
|
518
|
+
// or a finally block) gives us a place to store values thrown from
|
|
519
|
+
// locations where there is no enclosing try statement.
|
|
520
|
+
this.tryEntries = [{ tryLoc: "root" }];
|
|
521
|
+
tryLocsList.forEach(pushTryEntry, this);
|
|
522
|
+
this.reset(true);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
exports.keys = function(val) {
|
|
526
|
+
var object = Object(val);
|
|
527
|
+
var keys = [];
|
|
528
|
+
for (var key in object) {
|
|
529
|
+
keys.push(key);
|
|
530
|
+
}
|
|
531
|
+
keys.reverse();
|
|
532
|
+
|
|
533
|
+
// Rather than returning an object with a next method, we keep
|
|
534
|
+
// things simple and return the next function itself.
|
|
535
|
+
return function next() {
|
|
536
|
+
while (keys.length) {
|
|
537
|
+
var key = keys.pop();
|
|
538
|
+
if (key in object) {
|
|
539
|
+
next.value = key;
|
|
540
|
+
next.done = false;
|
|
541
|
+
return next;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
// To avoid creating an additional object, we just hang the .value
|
|
546
|
+
// and .done properties off the next function object itself. This
|
|
547
|
+
// also ensures that the minifier will not anonymize the function.
|
|
548
|
+
next.done = true;
|
|
549
|
+
return next;
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
function values(iterable) {
|
|
554
|
+
if (iterable != null) {
|
|
555
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
556
|
+
if (iteratorMethod) {
|
|
557
|
+
return iteratorMethod.call(iterable);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
if (typeof iterable.next === "function") {
|
|
561
|
+
return iterable;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
if (!isNaN(iterable.length)) {
|
|
565
|
+
var i = -1, next = function next() {
|
|
566
|
+
while (++i < iterable.length) {
|
|
567
|
+
if (hasOwn.call(iterable, i)) {
|
|
568
|
+
next.value = iterable[i];
|
|
569
|
+
next.done = false;
|
|
570
|
+
return next;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
next.value = undefined$1;
|
|
575
|
+
next.done = true;
|
|
576
|
+
|
|
577
|
+
return next;
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
return next.next = next;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
throw new TypeError(typeof iterable + " is not iterable");
|
|
585
|
+
}
|
|
586
|
+
exports.values = values;
|
|
587
|
+
|
|
588
|
+
function doneResult() {
|
|
589
|
+
return { value: undefined$1, done: true };
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
Context.prototype = {
|
|
593
|
+
constructor: Context,
|
|
594
|
+
|
|
595
|
+
reset: function(skipTempReset) {
|
|
596
|
+
this.prev = 0;
|
|
597
|
+
this.next = 0;
|
|
598
|
+
// Resetting context._sent for legacy support of Babel's
|
|
599
|
+
// function.sent implementation.
|
|
600
|
+
this.sent = this._sent = undefined$1;
|
|
601
|
+
this.done = false;
|
|
602
|
+
this.delegate = null;
|
|
603
|
+
|
|
604
|
+
this.method = "next";
|
|
605
|
+
this.arg = undefined$1;
|
|
606
|
+
|
|
607
|
+
this.tryEntries.forEach(resetTryEntry);
|
|
608
|
+
|
|
609
|
+
if (!skipTempReset) {
|
|
610
|
+
for (var name in this) {
|
|
611
|
+
// Not sure about the optimal order of these conditions:
|
|
612
|
+
if (name.charAt(0) === "t" &&
|
|
613
|
+
hasOwn.call(this, name) &&
|
|
614
|
+
!isNaN(+name.slice(1))) {
|
|
615
|
+
this[name] = undefined$1;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
|
|
621
|
+
stop: function() {
|
|
622
|
+
this.done = true;
|
|
623
|
+
|
|
624
|
+
var rootEntry = this.tryEntries[0];
|
|
625
|
+
var rootRecord = rootEntry.completion;
|
|
626
|
+
if (rootRecord.type === "throw") {
|
|
627
|
+
throw rootRecord.arg;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
return this.rval;
|
|
631
|
+
},
|
|
632
|
+
|
|
633
|
+
dispatchException: function(exception) {
|
|
634
|
+
if (this.done) {
|
|
635
|
+
throw exception;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
var context = this;
|
|
639
|
+
function handle(loc, caught) {
|
|
640
|
+
record.type = "throw";
|
|
641
|
+
record.arg = exception;
|
|
642
|
+
context.next = loc;
|
|
643
|
+
|
|
644
|
+
if (caught) {
|
|
645
|
+
// If the dispatched exception was caught by a catch block,
|
|
646
|
+
// then let that catch block handle the exception normally.
|
|
647
|
+
context.method = "next";
|
|
648
|
+
context.arg = undefined$1;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
return !! caught;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
655
|
+
var entry = this.tryEntries[i];
|
|
656
|
+
var record = entry.completion;
|
|
657
|
+
|
|
658
|
+
if (entry.tryLoc === "root") {
|
|
659
|
+
// Exception thrown outside of any try block that could handle
|
|
660
|
+
// it, so set the completion value of the entire function to
|
|
661
|
+
// throw the exception.
|
|
662
|
+
return handle("end");
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
if (entry.tryLoc <= this.prev) {
|
|
666
|
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
667
|
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
668
|
+
|
|
669
|
+
if (hasCatch && hasFinally) {
|
|
670
|
+
if (this.prev < entry.catchLoc) {
|
|
671
|
+
return handle(entry.catchLoc, true);
|
|
672
|
+
} else if (this.prev < entry.finallyLoc) {
|
|
673
|
+
return handle(entry.finallyLoc);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
} else if (hasCatch) {
|
|
677
|
+
if (this.prev < entry.catchLoc) {
|
|
678
|
+
return handle(entry.catchLoc, true);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
} else if (hasFinally) {
|
|
682
|
+
if (this.prev < entry.finallyLoc) {
|
|
683
|
+
return handle(entry.finallyLoc);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
} else {
|
|
687
|
+
throw new Error("try statement without catch or finally");
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
|
|
693
|
+
abrupt: function(type, arg) {
|
|
694
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
695
|
+
var entry = this.tryEntries[i];
|
|
696
|
+
if (entry.tryLoc <= this.prev &&
|
|
697
|
+
hasOwn.call(entry, "finallyLoc") &&
|
|
698
|
+
this.prev < entry.finallyLoc) {
|
|
699
|
+
var finallyEntry = entry;
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
if (finallyEntry &&
|
|
705
|
+
(type === "break" ||
|
|
706
|
+
type === "continue") &&
|
|
707
|
+
finallyEntry.tryLoc <= arg &&
|
|
708
|
+
arg <= finallyEntry.finallyLoc) {
|
|
709
|
+
// Ignore the finally entry if control is not jumping to a
|
|
710
|
+
// location outside the try/catch block.
|
|
711
|
+
finallyEntry = null;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
715
|
+
record.type = type;
|
|
716
|
+
record.arg = arg;
|
|
717
|
+
|
|
718
|
+
if (finallyEntry) {
|
|
719
|
+
this.method = "next";
|
|
720
|
+
this.next = finallyEntry.finallyLoc;
|
|
721
|
+
return ContinueSentinel;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
return this.complete(record);
|
|
725
|
+
},
|
|
726
|
+
|
|
727
|
+
complete: function(record, afterLoc) {
|
|
728
|
+
if (record.type === "throw") {
|
|
729
|
+
throw record.arg;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
if (record.type === "break" ||
|
|
733
|
+
record.type === "continue") {
|
|
734
|
+
this.next = record.arg;
|
|
735
|
+
} else if (record.type === "return") {
|
|
736
|
+
this.rval = this.arg = record.arg;
|
|
737
|
+
this.method = "return";
|
|
738
|
+
this.next = "end";
|
|
739
|
+
} else if (record.type === "normal" && afterLoc) {
|
|
740
|
+
this.next = afterLoc;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
return ContinueSentinel;
|
|
744
|
+
},
|
|
745
|
+
|
|
746
|
+
finish: function(finallyLoc) {
|
|
747
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
748
|
+
var entry = this.tryEntries[i];
|
|
749
|
+
if (entry.finallyLoc === finallyLoc) {
|
|
750
|
+
this.complete(entry.completion, entry.afterLoc);
|
|
751
|
+
resetTryEntry(entry);
|
|
752
|
+
return ContinueSentinel;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
|
|
757
|
+
"catch": function(tryLoc) {
|
|
758
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
759
|
+
var entry = this.tryEntries[i];
|
|
760
|
+
if (entry.tryLoc === tryLoc) {
|
|
761
|
+
var record = entry.completion;
|
|
762
|
+
if (record.type === "throw") {
|
|
763
|
+
var thrown = record.arg;
|
|
764
|
+
resetTryEntry(entry);
|
|
765
|
+
}
|
|
766
|
+
return thrown;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
// The context.catch method must only be called with a location
|
|
771
|
+
// argument that corresponds to a known catch block.
|
|
772
|
+
throw new Error("illegal catch attempt");
|
|
773
|
+
},
|
|
774
|
+
|
|
775
|
+
delegateYield: function(iterable, resultName, nextLoc) {
|
|
776
|
+
this.delegate = {
|
|
777
|
+
iterator: values(iterable),
|
|
778
|
+
resultName: resultName,
|
|
779
|
+
nextLoc: nextLoc
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
if (this.method === "next") {
|
|
783
|
+
// Deliberately forget the last sent value so that we don't
|
|
784
|
+
// accidentally pass it on to the delegate.
|
|
785
|
+
this.arg = undefined$1;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
return ContinueSentinel;
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
// Regardless of whether this script is executing as a CommonJS module
|
|
793
|
+
// or not, return the runtime object so that we can declare the variable
|
|
794
|
+
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
795
|
+
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
796
|
+
return exports;
|
|
797
|
+
|
|
798
|
+
}(
|
|
799
|
+
// If this script is executing as a CommonJS module, use module.exports
|
|
800
|
+
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
801
|
+
// object. Either way, the resulting object will be used to initialize
|
|
802
|
+
// the regeneratorRuntime variable at the top of this file.
|
|
803
|
+
module.exports
|
|
804
|
+
));
|
|
805
|
+
|
|
806
|
+
try {
|
|
807
|
+
regeneratorRuntime = runtime;
|
|
808
|
+
} catch (accidentalStrictMode) {
|
|
809
|
+
// This module should not be running in strict mode, so the above
|
|
810
|
+
// assignment should always work unless something is misconfigured. Just
|
|
811
|
+
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
812
|
+
// we can explicitly access globalThis. In older engines we can escape
|
|
813
|
+
// strict mode using a global Function call. This could conceivably fail
|
|
814
|
+
// if a Content Security Policy forbids using Function, but in that case
|
|
815
|
+
// the proper solution is to fix the accidental strict mode problem. If
|
|
816
|
+
// you've misconfigured your bundler to force strict mode and applied a
|
|
817
|
+
// CSP to forbid Function, and you're not willing to fix either of those
|
|
818
|
+
// problems, please detail your unique predicament in a GitHub issue.
|
|
819
|
+
if (typeof globalThis === "object") {
|
|
820
|
+
globalThis.regeneratorRuntime = runtime;
|
|
821
|
+
} else {
|
|
822
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
} (runtime));
|
|
826
|
+
return runtime.exports;
|
|
730
827
|
}
|
|
731
828
|
|
|
732
829
|
requireRuntime();
|
|
@@ -739,14 +836,14 @@
|
|
|
739
836
|
writable: true
|
|
740
837
|
}) : e[r] = t, e;
|
|
741
838
|
}
|
|
742
|
-
function _extends$
|
|
743
|
-
return _extends$
|
|
839
|
+
function _extends$2() {
|
|
840
|
+
return _extends$2 = Object.assign ? Object.assign.bind() : function (n) {
|
|
744
841
|
for (var e = 1; e < arguments.length; e++) {
|
|
745
842
|
var t = arguments[e];
|
|
746
843
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
747
844
|
}
|
|
748
845
|
return n;
|
|
749
|
-
}, _extends$
|
|
846
|
+
}, _extends$2.apply(null, arguments);
|
|
750
847
|
}
|
|
751
848
|
function ownKeys(e, r) {
|
|
752
849
|
var t = Object.keys(e);
|
|
@@ -773,14 +870,14 @@
|
|
|
773
870
|
if (null == e) return {};
|
|
774
871
|
var o,
|
|
775
872
|
r,
|
|
776
|
-
i = _objectWithoutPropertiesLoose$
|
|
873
|
+
i = _objectWithoutPropertiesLoose$1(e, t);
|
|
777
874
|
if (Object.getOwnPropertySymbols) {
|
|
778
875
|
var n = Object.getOwnPropertySymbols(e);
|
|
779
876
|
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
780
877
|
}
|
|
781
878
|
return i;
|
|
782
879
|
}
|
|
783
|
-
function _objectWithoutPropertiesLoose$
|
|
880
|
+
function _objectWithoutPropertiesLoose$1(r, e) {
|
|
784
881
|
if (null == r) return {};
|
|
785
882
|
var t = {};
|
|
786
883
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
@@ -6039,49 +6136,24 @@
|
|
|
6039
6136
|
|
|
6040
6137
|
var THEME_ID = '$$material';
|
|
6041
6138
|
|
|
6042
|
-
function _extends$
|
|
6043
|
-
_extends$
|
|
6044
|
-
for (var
|
|
6045
|
-
var
|
|
6046
|
-
for (var
|
|
6047
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6048
|
-
target[key] = source[key];
|
|
6049
|
-
}
|
|
6050
|
-
}
|
|
6139
|
+
function _extends$1() {
|
|
6140
|
+
return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
|
|
6141
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
6142
|
+
var t = arguments[e];
|
|
6143
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6051
6144
|
}
|
|
6052
|
-
return
|
|
6053
|
-
};
|
|
6054
|
-
return _extends$6.apply(this, arguments);
|
|
6145
|
+
return n;
|
|
6146
|
+
}, _extends$1.apply(null, arguments);
|
|
6055
6147
|
}
|
|
6056
6148
|
|
|
6057
|
-
function _objectWithoutPropertiesLoose
|
|
6058
|
-
if (
|
|
6059
|
-
var
|
|
6060
|
-
var
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
key = sourceKeys[i];
|
|
6064
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
6065
|
-
target[key] = source[key];
|
|
6149
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
6150
|
+
if (null == r) return {};
|
|
6151
|
+
var t = {};
|
|
6152
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
6153
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
6154
|
+
t[n] = r[n];
|
|
6066
6155
|
}
|
|
6067
|
-
return
|
|
6068
|
-
}
|
|
6069
|
-
|
|
6070
|
-
function _extends$5() {
|
|
6071
|
-
_extends$5 = Object.assign ? Object.assign.bind() : function (target) {
|
|
6072
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
6073
|
-
var source = arguments[i];
|
|
6074
|
-
|
|
6075
|
-
for (var key in source) {
|
|
6076
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6077
|
-
target[key] = source[key];
|
|
6078
|
-
}
|
|
6079
|
-
}
|
|
6080
|
-
}
|
|
6081
|
-
|
|
6082
|
-
return target;
|
|
6083
|
-
};
|
|
6084
|
-
return _extends$5.apply(this, arguments);
|
|
6156
|
+
return t;
|
|
6085
6157
|
}
|
|
6086
6158
|
|
|
6087
6159
|
/*
|
|
@@ -6107,7 +6179,7 @@
|
|
|
6107
6179
|
|
|
6108
6180
|
*/
|
|
6109
6181
|
|
|
6110
|
-
function sheetForTag
|
|
6182
|
+
function sheetForTag(tag) {
|
|
6111
6183
|
if (tag.sheet) {
|
|
6112
6184
|
return tag.sheet;
|
|
6113
6185
|
} // this weirdness brought to you by firefox
|
|
@@ -6126,7 +6198,7 @@
|
|
|
6126
6198
|
return undefined;
|
|
6127
6199
|
}
|
|
6128
6200
|
|
|
6129
|
-
function createStyleElement
|
|
6201
|
+
function createStyleElement(options) {
|
|
6130
6202
|
var tag = document.createElement('style');
|
|
6131
6203
|
tag.setAttribute('data-emotion', options.key);
|
|
6132
6204
|
|
|
@@ -6139,7 +6211,7 @@
|
|
|
6139
6211
|
return tag;
|
|
6140
6212
|
}
|
|
6141
6213
|
|
|
6142
|
-
var StyleSheet
|
|
6214
|
+
var StyleSheet = /*#__PURE__*/function () {
|
|
6143
6215
|
// Using Node instead of HTMLElement since container may be a ShadowRoot
|
|
6144
6216
|
function StyleSheet(options) {
|
|
6145
6217
|
var _this = this;
|
|
@@ -6187,13 +6259,13 @@
|
|
|
6187
6259
|
// it's 1 in dev because we insert source maps that map a single rule to a location
|
|
6188
6260
|
// and you can only have one source map per style tag
|
|
6189
6261
|
if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
|
|
6190
|
-
this._insertTag(createStyleElement
|
|
6262
|
+
this._insertTag(createStyleElement(this));
|
|
6191
6263
|
}
|
|
6192
6264
|
|
|
6193
6265
|
var tag = this.tags[this.tags.length - 1];
|
|
6194
6266
|
|
|
6195
6267
|
if (this.isSpeedy) {
|
|
6196
|
-
var sheet = sheetForTag
|
|
6268
|
+
var sheet = sheetForTag(tag);
|
|
6197
6269
|
|
|
6198
6270
|
try {
|
|
6199
6271
|
// this is the ultrafast version, works across browsers
|
|
@@ -6819,7 +6891,7 @@
|
|
|
6819
6891
|
}
|
|
6820
6892
|
}
|
|
6821
6893
|
|
|
6822
|
-
var weakMemoize
|
|
6894
|
+
var weakMemoize = function weakMemoize(func) {
|
|
6823
6895
|
var cache = new WeakMap();
|
|
6824
6896
|
return function (arg) {
|
|
6825
6897
|
if (cache.has(arg)) {
|
|
@@ -6834,7 +6906,7 @@
|
|
|
6834
6906
|
};
|
|
6835
6907
|
};
|
|
6836
6908
|
|
|
6837
|
-
function memoize$
|
|
6909
|
+
function memoize$1(fn) {
|
|
6838
6910
|
var cache = Object.create(null);
|
|
6839
6911
|
return function (arg) {
|
|
6840
6912
|
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
@@ -7181,8 +7253,8 @@
|
|
|
7181
7253
|
}
|
|
7182
7254
|
};
|
|
7183
7255
|
|
|
7184
|
-
var getServerStylisCache$1 = isBrowser$5 ? undefined : weakMemoize
|
|
7185
|
-
return memoize$
|
|
7256
|
+
var getServerStylisCache$1 = isBrowser$5 ? undefined : weakMemoize(function () {
|
|
7257
|
+
return memoize$1(function () {
|
|
7186
7258
|
return {};
|
|
7187
7259
|
});
|
|
7188
7260
|
});
|
|
@@ -7313,7 +7385,7 @@
|
|
|
7313
7385
|
|
|
7314
7386
|
var cache = {
|
|
7315
7387
|
key: key,
|
|
7316
|
-
sheet: new StyleSheet
|
|
7388
|
+
sheet: new StyleSheet({
|
|
7317
7389
|
key: key,
|
|
7318
7390
|
container: container,
|
|
7319
7391
|
nonce: options.nonce,
|
|
@@ -7651,7 +7723,7 @@
|
|
|
7651
7723
|
return value != null && typeof value !== 'boolean';
|
|
7652
7724
|
};
|
|
7653
7725
|
|
|
7654
|
-
var processStyleName = /* #__PURE__ */memoize$
|
|
7726
|
+
var processStyleName = /* #__PURE__ */memoize$1(function (styleName) {
|
|
7655
7727
|
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
|
|
7656
7728
|
});
|
|
7657
7729
|
|
|
@@ -8159,7 +8231,7 @@
|
|
|
8159
8231
|
// eslint-disable-next-line no-undef
|
|
8160
8232
|
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
8161
8233
|
|
|
8162
|
-
var isPropValid = /* #__PURE__ */memoize$
|
|
8234
|
+
var isPropValid = /* #__PURE__ */memoize$1(function (prop) {
|
|
8163
8235
|
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
|
|
8164
8236
|
/* o */
|
|
8165
8237
|
&& prop.charCodeAt(1) === 110
|
|
@@ -8334,7 +8406,7 @@
|
|
|
8334
8406
|
});
|
|
8335
8407
|
|
|
8336
8408
|
Styled.withComponent = function (nextTag, nextOptions) {
|
|
8337
|
-
var newStyled = createStyled(nextTag, _extends$
|
|
8409
|
+
var newStyled = createStyled(nextTag, _extends$1({}, options, nextOptions, {
|
|
8338
8410
|
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
8339
8411
|
}));
|
|
8340
8412
|
return newStyled.apply(void 0, styles);
|
|
@@ -8353,163 +8425,6 @@
|
|
|
8353
8425
|
newStyled[tagName] = newStyled(tagName);
|
|
8354
8426
|
});
|
|
8355
8427
|
|
|
8356
|
-
/*
|
|
8357
|
-
|
|
8358
|
-
Based off glamor's StyleSheet, thanks Sunil ❤️
|
|
8359
|
-
|
|
8360
|
-
high performance StyleSheet for css-in-js systems
|
|
8361
|
-
|
|
8362
|
-
- uses multiple style tags behind the scenes for millions of rules
|
|
8363
|
-
- uses `insertRule` for appending in production for *much* faster performance
|
|
8364
|
-
|
|
8365
|
-
// usage
|
|
8366
|
-
|
|
8367
|
-
import { StyleSheet } from '@emotion/sheet'
|
|
8368
|
-
|
|
8369
|
-
let styleSheet = new StyleSheet({ key: '', container: document.head })
|
|
8370
|
-
|
|
8371
|
-
styleSheet.insert('#box { border: 1px solid red; }')
|
|
8372
|
-
- appends a css rule into the stylesheet
|
|
8373
|
-
|
|
8374
|
-
styleSheet.flush()
|
|
8375
|
-
- empties the stylesheet of all its contents
|
|
8376
|
-
|
|
8377
|
-
*/
|
|
8378
|
-
// $FlowFixMe
|
|
8379
|
-
function sheetForTag(tag) {
|
|
8380
|
-
if (tag.sheet) {
|
|
8381
|
-
// $FlowFixMe
|
|
8382
|
-
return tag.sheet;
|
|
8383
|
-
} // this weirdness brought to you by firefox
|
|
8384
|
-
|
|
8385
|
-
/* istanbul ignore next */
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
8389
|
-
if (document.styleSheets[i].ownerNode === tag) {
|
|
8390
|
-
// $FlowFixMe
|
|
8391
|
-
return document.styleSheets[i];
|
|
8392
|
-
}
|
|
8393
|
-
}
|
|
8394
|
-
}
|
|
8395
|
-
|
|
8396
|
-
function createStyleElement(options) {
|
|
8397
|
-
var tag = document.createElement('style');
|
|
8398
|
-
tag.setAttribute('data-emotion', options.key);
|
|
8399
|
-
|
|
8400
|
-
if (options.nonce !== undefined) {
|
|
8401
|
-
tag.setAttribute('nonce', options.nonce);
|
|
8402
|
-
}
|
|
8403
|
-
|
|
8404
|
-
tag.appendChild(document.createTextNode(''));
|
|
8405
|
-
tag.setAttribute('data-s', '');
|
|
8406
|
-
return tag;
|
|
8407
|
-
}
|
|
8408
|
-
|
|
8409
|
-
var StyleSheet = /*#__PURE__*/function () {
|
|
8410
|
-
// Using Node instead of HTMLElement since container may be a ShadowRoot
|
|
8411
|
-
function StyleSheet(options) {
|
|
8412
|
-
var _this = this;
|
|
8413
|
-
|
|
8414
|
-
this._insertTag = function (tag) {
|
|
8415
|
-
var before;
|
|
8416
|
-
|
|
8417
|
-
if (_this.tags.length === 0) {
|
|
8418
|
-
if (_this.insertionPoint) {
|
|
8419
|
-
before = _this.insertionPoint.nextSibling;
|
|
8420
|
-
} else if (_this.prepend) {
|
|
8421
|
-
before = _this.container.firstChild;
|
|
8422
|
-
} else {
|
|
8423
|
-
before = _this.before;
|
|
8424
|
-
}
|
|
8425
|
-
} else {
|
|
8426
|
-
before = _this.tags[_this.tags.length - 1].nextSibling;
|
|
8427
|
-
}
|
|
8428
|
-
|
|
8429
|
-
_this.container.insertBefore(tag, before);
|
|
8430
|
-
|
|
8431
|
-
_this.tags.push(tag);
|
|
8432
|
-
};
|
|
8433
|
-
|
|
8434
|
-
this.isSpeedy = options.speedy === undefined ? "production" === 'production' : options.speedy;
|
|
8435
|
-
this.tags = [];
|
|
8436
|
-
this.ctr = 0;
|
|
8437
|
-
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
8438
|
-
|
|
8439
|
-
this.key = options.key;
|
|
8440
|
-
this.container = options.container;
|
|
8441
|
-
this.prepend = options.prepend;
|
|
8442
|
-
this.insertionPoint = options.insertionPoint;
|
|
8443
|
-
this.before = null;
|
|
8444
|
-
}
|
|
8445
|
-
|
|
8446
|
-
var _proto = StyleSheet.prototype;
|
|
8447
|
-
|
|
8448
|
-
_proto.hydrate = function hydrate(nodes) {
|
|
8449
|
-
nodes.forEach(this._insertTag);
|
|
8450
|
-
};
|
|
8451
|
-
|
|
8452
|
-
_proto.insert = function insert(rule) {
|
|
8453
|
-
// the max length is how many rules we have per style tag, it's 65000 in speedy mode
|
|
8454
|
-
// it's 1 in dev because we insert source maps that map a single rule to a location
|
|
8455
|
-
// and you can only have one source map per style tag
|
|
8456
|
-
if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
|
|
8457
|
-
this._insertTag(createStyleElement(this));
|
|
8458
|
-
}
|
|
8459
|
-
|
|
8460
|
-
var tag = this.tags[this.tags.length - 1];
|
|
8461
|
-
|
|
8462
|
-
if (this.isSpeedy) {
|
|
8463
|
-
var sheet = sheetForTag(tag);
|
|
8464
|
-
|
|
8465
|
-
try {
|
|
8466
|
-
// this is the ultrafast version, works across browsers
|
|
8467
|
-
// the big drawback is that the css won't be editable in devtools
|
|
8468
|
-
sheet.insertRule(rule, sheet.cssRules.length);
|
|
8469
|
-
} catch (e) {
|
|
8470
|
-
}
|
|
8471
|
-
} else {
|
|
8472
|
-
tag.appendChild(document.createTextNode(rule));
|
|
8473
|
-
}
|
|
8474
|
-
|
|
8475
|
-
this.ctr++;
|
|
8476
|
-
};
|
|
8477
|
-
|
|
8478
|
-
_proto.flush = function flush() {
|
|
8479
|
-
// $FlowFixMe
|
|
8480
|
-
this.tags.forEach(function (tag) {
|
|
8481
|
-
return tag.parentNode && tag.parentNode.removeChild(tag);
|
|
8482
|
-
});
|
|
8483
|
-
this.tags = [];
|
|
8484
|
-
this.ctr = 0;
|
|
8485
|
-
};
|
|
8486
|
-
|
|
8487
|
-
return StyleSheet;
|
|
8488
|
-
}();
|
|
8489
|
-
|
|
8490
|
-
var weakMemoize = function weakMemoize(func) {
|
|
8491
|
-
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
8492
|
-
var cache = new WeakMap();
|
|
8493
|
-
return function (arg) {
|
|
8494
|
-
if (cache.has(arg)) {
|
|
8495
|
-
// $FlowFixMe
|
|
8496
|
-
return cache.get(arg);
|
|
8497
|
-
}
|
|
8498
|
-
|
|
8499
|
-
var ret = func(arg);
|
|
8500
|
-
cache.set(arg, ret);
|
|
8501
|
-
return ret;
|
|
8502
|
-
};
|
|
8503
|
-
};
|
|
8504
|
-
|
|
8505
|
-
function memoize$1(fn) {
|
|
8506
|
-
var cache = Object.create(null);
|
|
8507
|
-
return function (arg) {
|
|
8508
|
-
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
8509
|
-
return cache[arg];
|
|
8510
|
-
};
|
|
8511
|
-
}
|
|
8512
|
-
|
|
8513
8428
|
var isBrowser = typeof document !== 'undefined';
|
|
8514
8429
|
|
|
8515
8430
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
@@ -9162,49 +9077,6 @@
|
|
|
9162
9077
|
keyframes: keyframes
|
|
9163
9078
|
});
|
|
9164
9079
|
|
|
9165
|
-
function _extends$4() {
|
|
9166
|
-
_extends$4 = Object.assign ? Object.assign.bind() : function (target) {
|
|
9167
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
9168
|
-
var source = arguments[i];
|
|
9169
|
-
for (var key in source) {
|
|
9170
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9171
|
-
target[key] = source[key];
|
|
9172
|
-
}
|
|
9173
|
-
}
|
|
9174
|
-
}
|
|
9175
|
-
return target;
|
|
9176
|
-
};
|
|
9177
|
-
return _extends$4.apply(this, arguments);
|
|
9178
|
-
}
|
|
9179
|
-
|
|
9180
|
-
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
9181
|
-
if (source == null) return {};
|
|
9182
|
-
var target = {};
|
|
9183
|
-
var sourceKeys = Object.keys(source);
|
|
9184
|
-
var key, i;
|
|
9185
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
9186
|
-
key = sourceKeys[i];
|
|
9187
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
9188
|
-
target[key] = source[key];
|
|
9189
|
-
}
|
|
9190
|
-
return target;
|
|
9191
|
-
}
|
|
9192
|
-
|
|
9193
|
-
function _extends$3() {
|
|
9194
|
-
_extends$3 = Object.assign ? Object.assign.bind() : function (target) {
|
|
9195
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
9196
|
-
var source = arguments[i];
|
|
9197
|
-
for (var key in source) {
|
|
9198
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9199
|
-
target[key] = source[key];
|
|
9200
|
-
}
|
|
9201
|
-
}
|
|
9202
|
-
}
|
|
9203
|
-
return target;
|
|
9204
|
-
};
|
|
9205
|
-
return _extends$3.apply(this, arguments);
|
|
9206
|
-
}
|
|
9207
|
-
|
|
9208
9080
|
// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js
|
|
9209
9081
|
function isPlainObject(item) {
|
|
9210
9082
|
if (typeof item !== 'object' || item === null) {
|
|
@@ -9226,7 +9098,7 @@
|
|
|
9226
9098
|
function deepmerge$1(target, source, options = {
|
|
9227
9099
|
clone: true
|
|
9228
9100
|
}) {
|
|
9229
|
-
const output = options.clone ? _extends$
|
|
9101
|
+
const output = options.clone ? _extends$1({}, target) : target;
|
|
9230
9102
|
if (isPlainObject(target) && isPlainObject(source)) {
|
|
9231
9103
|
Object.keys(source).forEach(key => {
|
|
9232
9104
|
if ( /*#__PURE__*/reactExports.isValidElement(source[key])) {
|
|
@@ -9261,7 +9133,7 @@
|
|
|
9261
9133
|
// Sort in ascending order
|
|
9262
9134
|
breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);
|
|
9263
9135
|
return breakpointsAsArray.reduce((acc, obj) => {
|
|
9264
|
-
return _extends$
|
|
9136
|
+
return _extends$1({}, acc, {
|
|
9265
9137
|
[obj.key]: obj.val
|
|
9266
9138
|
});
|
|
9267
9139
|
}, {});
|
|
@@ -9286,7 +9158,7 @@
|
|
|
9286
9158
|
unit = 'px',
|
|
9287
9159
|
step = 5
|
|
9288
9160
|
} = breakpoints,
|
|
9289
|
-
other = _objectWithoutPropertiesLoose
|
|
9161
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$S);
|
|
9290
9162
|
const sortedValues = sortBreakpointsValues(values);
|
|
9291
9163
|
const keys = Object.keys(sortedValues);
|
|
9292
9164
|
function up(key) {
|
|
@@ -9318,7 +9190,7 @@
|
|
|
9318
9190
|
}
|
|
9319
9191
|
return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');
|
|
9320
9192
|
}
|
|
9321
|
-
return _extends$
|
|
9193
|
+
return _extends$1({
|
|
9322
9194
|
keys,
|
|
9323
9195
|
values: sortedValues,
|
|
9324
9196
|
up,
|
|
@@ -10412,7 +10284,7 @@
|
|
|
10412
10284
|
spacing: spacingInput,
|
|
10413
10285
|
shape: shapeInput = {}
|
|
10414
10286
|
} = options,
|
|
10415
|
-
other = _objectWithoutPropertiesLoose
|
|
10287
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$R);
|
|
10416
10288
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
10417
10289
|
const spacing = createSpacing(spacingInput);
|
|
10418
10290
|
let muiTheme = deepmerge$1({
|
|
@@ -10420,15 +10292,15 @@
|
|
|
10420
10292
|
direction: 'ltr',
|
|
10421
10293
|
components: {},
|
|
10422
10294
|
// Inject component definitions.
|
|
10423
|
-
palette: _extends$
|
|
10295
|
+
palette: _extends$1({
|
|
10424
10296
|
mode: 'light'
|
|
10425
10297
|
}, paletteInput),
|
|
10426
10298
|
spacing,
|
|
10427
|
-
shape: _extends$
|
|
10299
|
+
shape: _extends$1({}, shape, shapeInput)
|
|
10428
10300
|
}, other);
|
|
10429
10301
|
muiTheme.applyStyles = applyStyles$2;
|
|
10430
10302
|
muiTheme = args.reduce((acc, argument) => deepmerge$1(acc, argument), muiTheme);
|
|
10431
|
-
muiTheme.unstable_sxConfig = _extends$
|
|
10303
|
+
muiTheme.unstable_sxConfig = _extends$1({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);
|
|
10432
10304
|
muiTheme.unstable_sx = function sx(props) {
|
|
10433
10305
|
return styleFunctionSx$1({
|
|
10434
10306
|
sx: props,
|
|
@@ -10491,7 +10363,7 @@
|
|
|
10491
10363
|
const {
|
|
10492
10364
|
sx: inSx
|
|
10493
10365
|
} = props,
|
|
10494
|
-
other = _objectWithoutPropertiesLoose
|
|
10366
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$Q);
|
|
10495
10367
|
const {
|
|
10496
10368
|
systemProps,
|
|
10497
10369
|
otherProps
|
|
@@ -10505,12 +10377,12 @@
|
|
|
10505
10377
|
if (!isPlainObject(result)) {
|
|
10506
10378
|
return systemProps;
|
|
10507
10379
|
}
|
|
10508
|
-
return _extends$
|
|
10380
|
+
return _extends$1({}, systemProps, result);
|
|
10509
10381
|
};
|
|
10510
10382
|
} else {
|
|
10511
|
-
finalSx = _extends$
|
|
10383
|
+
finalSx = _extends$1({}, systemProps, inSx);
|
|
10512
10384
|
}
|
|
10513
|
-
return _extends$
|
|
10385
|
+
return _extends$1({}, otherProps, {
|
|
10514
10386
|
sx: finalSx
|
|
10515
10387
|
});
|
|
10516
10388
|
}
|
|
@@ -10560,8 +10432,8 @@
|
|
|
10560
10432
|
className,
|
|
10561
10433
|
component = 'div'
|
|
10562
10434
|
} = _extendSxProp,
|
|
10563
|
-
other = _objectWithoutPropertiesLoose
|
|
10564
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(BoxRoot, _extends$
|
|
10435
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$P);
|
|
10436
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(BoxRoot, _extends$1({
|
|
10565
10437
|
as: component,
|
|
10566
10438
|
ref: ref,
|
|
10567
10439
|
className: clsx$1(className, generateClassName ? generateClassName(defaultClassName) : defaultClassName),
|
|
@@ -10696,12 +10568,12 @@
|
|
|
10696
10568
|
let {
|
|
10697
10569
|
ownerState
|
|
10698
10570
|
} = _ref,
|
|
10699
|
-
props = _objectWithoutPropertiesLoose
|
|
10700
|
-
const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends$
|
|
10571
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$O);
|
|
10572
|
+
const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends$1({
|
|
10701
10573
|
ownerState
|
|
10702
10574
|
}, props)) : callableStyle;
|
|
10703
10575
|
if (Array.isArray(resolvedStylesArg)) {
|
|
10704
|
-
return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, _extends$
|
|
10576
|
+
return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, _extends$1({
|
|
10705
10577
|
ownerState
|
|
10706
10578
|
}, props)));
|
|
10707
10579
|
}
|
|
@@ -10709,12 +10581,12 @@
|
|
|
10709
10581
|
const {
|
|
10710
10582
|
variants = []
|
|
10711
10583
|
} = resolvedStylesArg,
|
|
10712
|
-
otherStyles = _objectWithoutPropertiesLoose
|
|
10584
|
+
otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2$5);
|
|
10713
10585
|
let result = otherStyles;
|
|
10714
10586
|
variants.forEach(variant => {
|
|
10715
10587
|
let isMatch = true;
|
|
10716
10588
|
if (typeof variant.props === 'function') {
|
|
10717
|
-
isMatch = variant.props(_extends$
|
|
10589
|
+
isMatch = variant.props(_extends$1({
|
|
10718
10590
|
ownerState
|
|
10719
10591
|
}, props, ownerState));
|
|
10720
10592
|
} else {
|
|
@@ -10728,7 +10600,7 @@
|
|
|
10728
10600
|
if (!Array.isArray(result)) {
|
|
10729
10601
|
result = [result];
|
|
10730
10602
|
}
|
|
10731
|
-
result.push(typeof variant.style === 'function' ? variant.style(_extends$
|
|
10603
|
+
result.push(typeof variant.style === 'function' ? variant.style(_extends$1({
|
|
10732
10604
|
ownerState
|
|
10733
10605
|
}, props, ownerState)) : variant.style);
|
|
10734
10606
|
}
|
|
@@ -10745,8 +10617,8 @@
|
|
|
10745
10617
|
slotShouldForwardProp = shouldForwardProp
|
|
10746
10618
|
} = input;
|
|
10747
10619
|
const systemSx = props => {
|
|
10748
|
-
return styleFunctionSx$1(_extends$
|
|
10749
|
-
theme: resolveTheme(_extends$
|
|
10620
|
+
return styleFunctionSx$1(_extends$1({}, props, {
|
|
10621
|
+
theme: resolveTheme(_extends$1({}, props, {
|
|
10750
10622
|
defaultTheme,
|
|
10751
10623
|
themeId
|
|
10752
10624
|
}))
|
|
@@ -10765,7 +10637,7 @@
|
|
|
10765
10637
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
10766
10638
|
overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))
|
|
10767
10639
|
} = inputOptions,
|
|
10768
|
-
options = _objectWithoutPropertiesLoose
|
|
10640
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded3$1);
|
|
10769
10641
|
|
|
10770
10642
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
10771
10643
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :
|
|
@@ -10787,7 +10659,7 @@
|
|
|
10787
10659
|
// for string (html) tag, preserve the behavior in emotion & styled-components.
|
|
10788
10660
|
shouldForwardPropOption = undefined;
|
|
10789
10661
|
}
|
|
10790
|
-
const defaultStyledResolver = styled$2(tag, _extends$
|
|
10662
|
+
const defaultStyledResolver = styled$2(tag, _extends$1({
|
|
10791
10663
|
shouldForwardProp: shouldForwardPropOption,
|
|
10792
10664
|
label
|
|
10793
10665
|
}, options));
|
|
@@ -10796,7 +10668,7 @@
|
|
|
10796
10668
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
10797
10669
|
// which are basically components used as a selectors.
|
|
10798
10670
|
if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || isPlainObject(stylesArg)) {
|
|
10799
|
-
return props => processStyleArg(stylesArg, _extends$
|
|
10671
|
+
return props => processStyleArg(stylesArg, _extends$1({}, props, {
|
|
10800
10672
|
theme: resolveTheme({
|
|
10801
10673
|
theme: props.theme,
|
|
10802
10674
|
defaultTheme,
|
|
@@ -10811,7 +10683,7 @@
|
|
|
10811
10683
|
const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];
|
|
10812
10684
|
if (componentName && overridesResolver) {
|
|
10813
10685
|
expressionsWithDefaultTheme.push(props => {
|
|
10814
|
-
const theme = resolveTheme(_extends$
|
|
10686
|
+
const theme = resolveTheme(_extends$1({}, props, {
|
|
10815
10687
|
defaultTheme,
|
|
10816
10688
|
themeId
|
|
10817
10689
|
}));
|
|
@@ -10822,7 +10694,7 @@
|
|
|
10822
10694
|
const resolvedStyleOverrides = {};
|
|
10823
10695
|
// TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly
|
|
10824
10696
|
Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
|
|
10825
|
-
resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, _extends$
|
|
10697
|
+
resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, _extends$1({}, props, {
|
|
10826
10698
|
theme
|
|
10827
10699
|
}));
|
|
10828
10700
|
});
|
|
@@ -10832,14 +10704,14 @@
|
|
|
10832
10704
|
if (componentName && !skipVariantsResolver) {
|
|
10833
10705
|
expressionsWithDefaultTheme.push(props => {
|
|
10834
10706
|
var _theme$components;
|
|
10835
|
-
const theme = resolveTheme(_extends$
|
|
10707
|
+
const theme = resolveTheme(_extends$1({}, props, {
|
|
10836
10708
|
defaultTheme,
|
|
10837
10709
|
themeId
|
|
10838
10710
|
}));
|
|
10839
10711
|
const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;
|
|
10840
10712
|
return processStyleArg({
|
|
10841
10713
|
variants: themeVariants
|
|
10842
|
-
}, _extends$
|
|
10714
|
+
}, _extends$1({}, props, {
|
|
10843
10715
|
theme
|
|
10844
10716
|
}));
|
|
10845
10717
|
});
|
|
@@ -10876,10 +10748,10 @@
|
|
|
10876
10748
|
* @returns {object} resolved props
|
|
10877
10749
|
*/
|
|
10878
10750
|
function resolveProps(defaultProps, props) {
|
|
10879
|
-
const output = _extends$
|
|
10751
|
+
const output = _extends$1({}, props);
|
|
10880
10752
|
Object.keys(defaultProps).forEach(propName => {
|
|
10881
10753
|
if (propName.toString().match(/^(components|slots)$/)) {
|
|
10882
|
-
output[propName] = _extends$
|
|
10754
|
+
output[propName] = _extends$1({}, defaultProps[propName], output[propName]);
|
|
10883
10755
|
} else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
10884
10756
|
const defaultSlotProps = defaultProps[propName] || {};
|
|
10885
10757
|
const slotProps = props[propName];
|
|
@@ -10891,7 +10763,7 @@
|
|
|
10891
10763
|
// Reduce the iteration if the default slot props is empty
|
|
10892
10764
|
output[propName] = slotProps;
|
|
10893
10765
|
} else {
|
|
10894
|
-
output[propName] = _extends$
|
|
10766
|
+
output[propName] = _extends$1({}, slotProps);
|
|
10895
10767
|
Object.keys(defaultSlotProps).forEach(slotPropName => {
|
|
10896
10768
|
output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);
|
|
10897
10769
|
});
|
|
@@ -10951,21 +10823,6 @@
|
|
|
10951
10823
|
default: clamp$1
|
|
10952
10824
|
});
|
|
10953
10825
|
|
|
10954
|
-
function _extends$2() {
|
|
10955
|
-
_extends$2 = Object.assign ? Object.assign.bind() : function (target) {
|
|
10956
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
10957
|
-
var source = arguments[i];
|
|
10958
|
-
for (var key in source) {
|
|
10959
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
10960
|
-
target[key] = source[key];
|
|
10961
|
-
}
|
|
10962
|
-
}
|
|
10963
|
-
}
|
|
10964
|
-
return target;
|
|
10965
|
-
};
|
|
10966
|
-
return _extends$2.apply(this, arguments);
|
|
10967
|
-
}
|
|
10968
|
-
|
|
10969
10826
|
/**
|
|
10970
10827
|
* Safe chained function.
|
|
10971
10828
|
*
|
|
@@ -11397,19 +11254,6 @@
|
|
|
11397
11254
|
return output;
|
|
11398
11255
|
}
|
|
11399
11256
|
|
|
11400
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
11401
|
-
if (source == null) return {};
|
|
11402
|
-
var target = {};
|
|
11403
|
-
var sourceKeys = Object.keys(source);
|
|
11404
|
-
var key, i;
|
|
11405
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
11406
|
-
key = sourceKeys[i];
|
|
11407
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
11408
|
-
target[key] = source[key];
|
|
11409
|
-
}
|
|
11410
|
-
return target;
|
|
11411
|
-
}
|
|
11412
|
-
|
|
11413
11257
|
/**
|
|
11414
11258
|
* Determines if a given element is a DOM element name (i.e. not a React component).
|
|
11415
11259
|
*/
|
|
@@ -11434,8 +11278,8 @@
|
|
|
11434
11278
|
if (elementType === undefined || isHostComponent(elementType)) {
|
|
11435
11279
|
return otherProps;
|
|
11436
11280
|
}
|
|
11437
|
-
return _extends$
|
|
11438
|
-
ownerState: _extends$
|
|
11281
|
+
return _extends$1({}, otherProps, {
|
|
11282
|
+
ownerState: _extends$1({}, otherProps.ownerState, ownerState)
|
|
11439
11283
|
});
|
|
11440
11284
|
}
|
|
11441
11285
|
|
|
@@ -11502,8 +11346,8 @@
|
|
|
11502
11346
|
// The simpler case - getSlotProps is not defined, so no internal event handlers are defined,
|
|
11503
11347
|
// so we can simply merge all the props without having to worry about extracting event handlers.
|
|
11504
11348
|
const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
11505
|
-
const mergedStyle = _extends$
|
|
11506
|
-
const props = _extends$
|
|
11349
|
+
const mergedStyle = _extends$1({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
11350
|
+
const props = _extends$1({}, additionalProps, externalForwardedProps, externalSlotProps);
|
|
11507
11351
|
if (joinedClasses.length > 0) {
|
|
11508
11352
|
props.className = joinedClasses;
|
|
11509
11353
|
}
|
|
@@ -11519,7 +11363,7 @@
|
|
|
11519
11363
|
// In this case, getSlotProps is responsible for calling the external event handlers.
|
|
11520
11364
|
// We don't need to include them in the merged props because of this.
|
|
11521
11365
|
|
|
11522
|
-
const eventHandlers = extractEventHandlers(_extends$
|
|
11366
|
+
const eventHandlers = extractEventHandlers(_extends$1({}, externalForwardedProps, externalSlotProps));
|
|
11523
11367
|
const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);
|
|
11524
11368
|
const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);
|
|
11525
11369
|
const internalSlotProps = getSlotProps(eventHandlers);
|
|
@@ -11529,8 +11373,8 @@
|
|
|
11529
11373
|
// to properly override style. It requires the most important classes to be last
|
|
11530
11374
|
// (see https://github.com/mui/material-ui/pull/33205) for the related discussion.
|
|
11531
11375
|
const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);
|
|
11532
|
-
const mergedStyle = _extends$
|
|
11533
|
-
const props = _extends$
|
|
11376
|
+
const mergedStyle = _extends$1({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);
|
|
11377
|
+
const props = _extends$1({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);
|
|
11534
11378
|
if (joinedClasses.length > 0) {
|
|
11535
11379
|
props.className = joinedClasses;
|
|
11536
11380
|
}
|
|
@@ -11571,16 +11415,16 @@
|
|
|
11571
11415
|
ownerState,
|
|
11572
11416
|
skipResolvingSlotProps = false
|
|
11573
11417
|
} = parameters,
|
|
11574
|
-
rest = _objectWithoutPropertiesLoose
|
|
11418
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$N);
|
|
11575
11419
|
const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);
|
|
11576
11420
|
const {
|
|
11577
11421
|
props: mergedProps,
|
|
11578
11422
|
internalRef
|
|
11579
|
-
} = mergeSlotProps(_extends$
|
|
11423
|
+
} = mergeSlotProps(_extends$1({}, rest, {
|
|
11580
11424
|
externalSlotProps: resolvedComponentsProps
|
|
11581
11425
|
}));
|
|
11582
11426
|
const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);
|
|
11583
|
-
const props = appendOwnerState(elementType, _extends$
|
|
11427
|
+
const props = appendOwnerState(elementType, _extends$1({}, mergedProps, {
|
|
11584
11428
|
ref
|
|
11585
11429
|
}), ownerState);
|
|
11586
11430
|
return props;
|
|
@@ -11619,7 +11463,7 @@
|
|
|
11619
11463
|
const mergedTheme = localTheme(outerTheme);
|
|
11620
11464
|
return mergedTheme;
|
|
11621
11465
|
}
|
|
11622
|
-
return _extends$
|
|
11466
|
+
return _extends$1({}, outerTheme, localTheme);
|
|
11623
11467
|
}
|
|
11624
11468
|
|
|
11625
11469
|
/**
|
|
@@ -11652,8 +11496,8 @@
|
|
|
11652
11496
|
let {
|
|
11653
11497
|
value
|
|
11654
11498
|
} = _ref,
|
|
11655
|
-
props = _objectWithoutPropertiesLoose
|
|
11656
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(RtlContext.Provider, _extends$
|
|
11499
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$M);
|
|
11500
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(RtlContext.Provider, _extends$1({
|
|
11657
11501
|
value: value != null ? value : true
|
|
11658
11502
|
}, props));
|
|
11659
11503
|
}
|
|
@@ -11712,7 +11556,7 @@
|
|
|
11712
11556
|
const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;
|
|
11713
11557
|
if (typeof localTheme === 'function') {
|
|
11714
11558
|
const mergedTheme = localTheme(resolvedTheme);
|
|
11715
|
-
const result = themeId ? _extends$
|
|
11559
|
+
const result = themeId ? _extends$1({}, upperTheme, {
|
|
11716
11560
|
[themeId]: mergedTheme
|
|
11717
11561
|
}) : mergedTheme;
|
|
11718
11562
|
// must return a function for the private theme to NOT merge with the upper theme.
|
|
@@ -11722,9 +11566,9 @@
|
|
|
11722
11566
|
}
|
|
11723
11567
|
return result;
|
|
11724
11568
|
}
|
|
11725
|
-
return themeId ? _extends$
|
|
11569
|
+
return themeId ? _extends$1({}, upperTheme, {
|
|
11726
11570
|
[themeId]: localTheme
|
|
11727
|
-
}) : _extends$
|
|
11571
|
+
}) : _extends$1({}, upperTheme, localTheme);
|
|
11728
11572
|
}, [themeId, upperTheme, localTheme, isPrivate]);
|
|
11729
11573
|
}
|
|
11730
11574
|
|
|
@@ -11808,7 +11652,7 @@
|
|
|
11808
11652
|
ownerState,
|
|
11809
11653
|
theme
|
|
11810
11654
|
}) => {
|
|
11811
|
-
let styles = _extends$
|
|
11655
|
+
let styles = _extends$1({
|
|
11812
11656
|
display: 'flex',
|
|
11813
11657
|
flexDirection: 'column'
|
|
11814
11658
|
}, handleBreakpoints({
|
|
@@ -11894,14 +11738,14 @@
|
|
|
11894
11738
|
className,
|
|
11895
11739
|
useFlexGap = false
|
|
11896
11740
|
} = props,
|
|
11897
|
-
other = _objectWithoutPropertiesLoose
|
|
11741
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$L);
|
|
11898
11742
|
const ownerState = {
|
|
11899
11743
|
direction,
|
|
11900
11744
|
spacing,
|
|
11901
11745
|
useFlexGap
|
|
11902
11746
|
};
|
|
11903
11747
|
const classes = useUtilityClasses();
|
|
11904
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(StackRoot, _extends$
|
|
11748
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(StackRoot, _extends$1({
|
|
11905
11749
|
as: component,
|
|
11906
11750
|
ownerState: ownerState,
|
|
11907
11751
|
ref: ref,
|
|
@@ -11924,8 +11768,8 @@
|
|
|
11924
11768
|
props = {},
|
|
11925
11769
|
styleOverrides = {}
|
|
11926
11770
|
} = inputTheme,
|
|
11927
|
-
other = _objectWithoutPropertiesLoose
|
|
11928
|
-
const theme = _extends$
|
|
11771
|
+
other = _objectWithoutPropertiesLoose(inputTheme, _excluded$K);
|
|
11772
|
+
const theme = _extends$1({}, other, {
|
|
11929
11773
|
components: {}
|
|
11930
11774
|
});
|
|
11931
11775
|
|
|
@@ -11959,13 +11803,13 @@
|
|
|
11959
11803
|
// theme.mixins.gutters
|
|
11960
11804
|
const breakpoints = createBreakpoints(inputTheme.breakpoints || {});
|
|
11961
11805
|
const spacing = theme.spacing;
|
|
11962
|
-
theme.mixins = _extends$
|
|
11806
|
+
theme.mixins = _extends$1({
|
|
11963
11807
|
gutters: (styles = {}) => {
|
|
11964
|
-
return _extends$
|
|
11808
|
+
return _extends$1({
|
|
11965
11809
|
paddingLeft: spacing(2),
|
|
11966
11810
|
paddingRight: spacing(2)
|
|
11967
11811
|
}, styles, {
|
|
11968
|
-
[breakpoints.up('sm')]: _extends$
|
|
11812
|
+
[breakpoints.up('sm')]: _extends$1({
|
|
11969
11813
|
paddingLeft: spacing(3),
|
|
11970
11814
|
paddingRight: spacing(3)
|
|
11971
11815
|
}, styles[breakpoints.up('sm')])
|
|
@@ -11976,9 +11820,9 @@
|
|
|
11976
11820
|
type: typeInput,
|
|
11977
11821
|
mode: modeInput
|
|
11978
11822
|
} = palette,
|
|
11979
|
-
paletteRest = _objectWithoutPropertiesLoose
|
|
11823
|
+
paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$4);
|
|
11980
11824
|
const finalMode = modeInput || typeInput || 'light';
|
|
11981
|
-
theme.palette = _extends$
|
|
11825
|
+
theme.palette = _extends$1({
|
|
11982
11826
|
// theme.palette.text.hint
|
|
11983
11827
|
text: {
|
|
11984
11828
|
hint: finalMode === 'dark' ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.38)'
|
|
@@ -11990,7 +11834,7 @@
|
|
|
11990
11834
|
}
|
|
11991
11835
|
|
|
11992
11836
|
function createMixins(breakpoints, mixins) {
|
|
11993
|
-
return _extends$
|
|
11837
|
+
return _extends$1({
|
|
11994
11838
|
toolbar: {
|
|
11995
11839
|
minHeight: 56,
|
|
11996
11840
|
[breakpoints.up('xs')]: {
|
|
@@ -12007,22 +11851,22 @@
|
|
|
12007
11851
|
|
|
12008
11852
|
var colorManipulator = {};
|
|
12009
11853
|
|
|
12010
|
-
var interopRequireDefault
|
|
11854
|
+
var interopRequireDefault = {exports: {}};
|
|
12011
11855
|
|
|
12012
|
-
var hasRequiredInteropRequireDefault
|
|
11856
|
+
var hasRequiredInteropRequireDefault;
|
|
12013
11857
|
|
|
12014
|
-
function requireInteropRequireDefault
|
|
12015
|
-
if (hasRequiredInteropRequireDefault
|
|
12016
|
-
hasRequiredInteropRequireDefault
|
|
11858
|
+
function requireInteropRequireDefault () {
|
|
11859
|
+
if (hasRequiredInteropRequireDefault) return interopRequireDefault.exports;
|
|
11860
|
+
hasRequiredInteropRequireDefault = 1;
|
|
12017
11861
|
(function (module) {
|
|
12018
|
-
function _interopRequireDefault(
|
|
12019
|
-
return
|
|
12020
|
-
"default":
|
|
11862
|
+
function _interopRequireDefault(e) {
|
|
11863
|
+
return e && e.__esModule ? e : {
|
|
11864
|
+
"default": e
|
|
12021
11865
|
};
|
|
12022
11866
|
}
|
|
12023
11867
|
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12024
|
-
} (interopRequireDefault
|
|
12025
|
-
return interopRequireDefault
|
|
11868
|
+
} (interopRequireDefault));
|
|
11869
|
+
return interopRequireDefault.exports;
|
|
12026
11870
|
}
|
|
12027
11871
|
|
|
12028
11872
|
var require$$1$1 = /*@__PURE__*/getAugmentedNamespace(formatMuiErrorMessage);
|
|
@@ -12035,7 +11879,7 @@
|
|
|
12035
11879
|
if (hasRequiredColorManipulator) return colorManipulator;
|
|
12036
11880
|
hasRequiredColorManipulator = 1;
|
|
12037
11881
|
|
|
12038
|
-
var _interopRequireDefault = requireInteropRequireDefault
|
|
11882
|
+
var _interopRequireDefault = requireInteropRequireDefault();
|
|
12039
11883
|
Object.defineProperty(colorManipulator, "__esModule", {
|
|
12040
11884
|
value: true
|
|
12041
11885
|
});
|
|
@@ -12623,7 +12467,7 @@
|
|
|
12623
12467
|
contrastThreshold = 3,
|
|
12624
12468
|
tonalOffset = 0.2
|
|
12625
12469
|
} = palette,
|
|
12626
|
-
other = _objectWithoutPropertiesLoose
|
|
12470
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$J);
|
|
12627
12471
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
12628
12472
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
12629
12473
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -12645,7 +12489,7 @@
|
|
|
12645
12489
|
lightShade = 300,
|
|
12646
12490
|
darkShade = 700
|
|
12647
12491
|
}) => {
|
|
12648
|
-
color = _extends$
|
|
12492
|
+
color = _extends$1({}, color);
|
|
12649
12493
|
if (!color.main && color[mainShade]) {
|
|
12650
12494
|
color.main = color[mainShade];
|
|
12651
12495
|
}
|
|
@@ -12666,9 +12510,9 @@
|
|
|
12666
12510
|
dark: dark$1,
|
|
12667
12511
|
light: light$1
|
|
12668
12512
|
};
|
|
12669
|
-
const paletteOutput = deepmerge$1(_extends$
|
|
12513
|
+
const paletteOutput = deepmerge$1(_extends$1({
|
|
12670
12514
|
// A collection of common colors.
|
|
12671
|
-
common: _extends$
|
|
12515
|
+
common: _extends$1({}, common),
|
|
12672
12516
|
// prevent mutable object.
|
|
12673
12517
|
// The palette mode, can be light or dark.
|
|
12674
12518
|
mode,
|
|
@@ -12753,10 +12597,10 @@
|
|
|
12753
12597
|
allVariants,
|
|
12754
12598
|
pxToRem: pxToRem2
|
|
12755
12599
|
} = _ref,
|
|
12756
|
-
other = _objectWithoutPropertiesLoose
|
|
12600
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
12757
12601
|
const coef = fontSize / 14;
|
|
12758
12602
|
const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);
|
|
12759
|
-
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$
|
|
12603
|
+
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$1({
|
|
12760
12604
|
fontFamily,
|
|
12761
12605
|
fontWeight,
|
|
12762
12606
|
fontSize: pxToRem(size),
|
|
@@ -12788,7 +12632,7 @@
|
|
|
12788
12632
|
letterSpacing: 'inherit'
|
|
12789
12633
|
}
|
|
12790
12634
|
};
|
|
12791
|
-
return deepmerge$1(_extends$
|
|
12635
|
+
return deepmerge$1(_extends$1({
|
|
12792
12636
|
htmlFontSize,
|
|
12793
12637
|
pxToRem,
|
|
12794
12638
|
fontFamily,
|
|
@@ -12855,18 +12699,18 @@
|
|
|
12855
12699
|
return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);
|
|
12856
12700
|
}
|
|
12857
12701
|
function createTransitions(inputTransitions) {
|
|
12858
|
-
const mergedEasing = _extends$
|
|
12859
|
-
const mergedDuration = _extends$
|
|
12702
|
+
const mergedEasing = _extends$1({}, easing, inputTransitions.easing);
|
|
12703
|
+
const mergedDuration = _extends$1({}, duration, inputTransitions.duration);
|
|
12860
12704
|
const create = (props = ['all'], options = {}) => {
|
|
12861
12705
|
const {
|
|
12862
12706
|
duration: durationOption = mergedDuration.standard,
|
|
12863
12707
|
easing: easingOption = mergedEasing.easeInOut,
|
|
12864
12708
|
delay = 0
|
|
12865
12709
|
} = options;
|
|
12866
|
-
_objectWithoutPropertiesLoose
|
|
12710
|
+
_objectWithoutPropertiesLoose(options, _excluded$H);
|
|
12867
12711
|
return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
|
|
12868
12712
|
};
|
|
12869
|
-
return _extends$
|
|
12713
|
+
return _extends$1({
|
|
12870
12714
|
getAutoHeightDuration,
|
|
12871
12715
|
create
|
|
12872
12716
|
}, inputTransitions, {
|
|
@@ -12896,7 +12740,7 @@
|
|
|
12896
12740
|
transitions: transitionsInput = {},
|
|
12897
12741
|
typography: typographyInput = {}
|
|
12898
12742
|
} = options,
|
|
12899
|
-
other = _objectWithoutPropertiesLoose
|
|
12743
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$G);
|
|
12900
12744
|
if (options.vars &&
|
|
12901
12745
|
// The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
12902
12746
|
// `generateCssVars` is the closest identifier for checking that the `options` is a result of `extendTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
@@ -12912,11 +12756,11 @@
|
|
|
12912
12756
|
shadows: shadows.slice(),
|
|
12913
12757
|
typography: createTypography(palette, typographyInput),
|
|
12914
12758
|
transitions: createTransitions(transitionsInput),
|
|
12915
|
-
zIndex: _extends$
|
|
12759
|
+
zIndex: _extends$1({}, zIndex)
|
|
12916
12760
|
});
|
|
12917
12761
|
muiTheme = deepmerge$1(muiTheme, other);
|
|
12918
12762
|
muiTheme = args.reduce((acc, argument) => deepmerge$1(acc, argument), muiTheme);
|
|
12919
|
-
muiTheme.unstable_sxConfig = _extends$
|
|
12763
|
+
muiTheme.unstable_sxConfig = _extends$1({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);
|
|
12920
12764
|
muiTheme.unstable_sx = function sx(props) {
|
|
12921
12765
|
return styleFunctionSx$1({
|
|
12922
12766
|
sx: props,
|
|
@@ -12935,31 +12779,26 @@
|
|
|
12935
12779
|
|
|
12936
12780
|
var createStyled$1 = {};
|
|
12937
12781
|
|
|
12938
|
-
var _extends
|
|
12782
|
+
var _extends = {exports: {}};
|
|
12939
12783
|
|
|
12940
12784
|
var hasRequired_extends;
|
|
12941
12785
|
|
|
12942
12786
|
function require_extends () {
|
|
12943
|
-
if (hasRequired_extends) return _extends
|
|
12787
|
+
if (hasRequired_extends) return _extends.exports;
|
|
12944
12788
|
hasRequired_extends = 1;
|
|
12945
12789
|
(function (module) {
|
|
12946
12790
|
function _extends() {
|
|
12947
|
-
module.exports = _extends = Object.assign ? Object.assign.bind() : function (
|
|
12948
|
-
for (var
|
|
12949
|
-
var
|
|
12950
|
-
for (var
|
|
12951
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12952
|
-
target[key] = source[key];
|
|
12953
|
-
}
|
|
12954
|
-
}
|
|
12791
|
+
return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
12792
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
12793
|
+
var t = arguments[e];
|
|
12794
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
12955
12795
|
}
|
|
12956
|
-
return
|
|
12957
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12958
|
-
return _extends.apply(this, arguments);
|
|
12796
|
+
return n;
|
|
12797
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
|
|
12959
12798
|
}
|
|
12960
12799
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12961
|
-
} (_extends
|
|
12962
|
-
return _extends
|
|
12800
|
+
} (_extends));
|
|
12801
|
+
return _extends.exports;
|
|
12963
12802
|
}
|
|
12964
12803
|
|
|
12965
12804
|
var objectWithoutPropertiesLoose = {exports: {}};
|
|
@@ -12970,17 +12809,14 @@
|
|
|
12970
12809
|
if (hasRequiredObjectWithoutPropertiesLoose) return objectWithoutPropertiesLoose.exports;
|
|
12971
12810
|
hasRequiredObjectWithoutPropertiesLoose = 1;
|
|
12972
12811
|
(function (module) {
|
|
12973
|
-
function _objectWithoutPropertiesLoose(
|
|
12974
|
-
if (
|
|
12975
|
-
var
|
|
12976
|
-
var
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
key = sourceKeys[i];
|
|
12980
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
12981
|
-
target[key] = source[key];
|
|
12812
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
12813
|
+
if (null == r) return {};
|
|
12814
|
+
var t = {};
|
|
12815
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
12816
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
12817
|
+
t[n] = r[n];
|
|
12982
12818
|
}
|
|
12983
|
-
return
|
|
12819
|
+
return t;
|
|
12984
12820
|
}
|
|
12985
12821
|
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12986
12822
|
} (objectWithoutPropertiesLoose));
|
|
@@ -13005,7 +12841,7 @@
|
|
|
13005
12841
|
if (hasRequiredCreateStyled) return createStyled$1;
|
|
13006
12842
|
hasRequiredCreateStyled = 1;
|
|
13007
12843
|
|
|
13008
|
-
var _interopRequireDefault = requireInteropRequireDefault
|
|
12844
|
+
var _interopRequireDefault = requireInteropRequireDefault();
|
|
13009
12845
|
Object.defineProperty(createStyled$1, "__esModule", {
|
|
13010
12846
|
value: true
|
|
13011
12847
|
});
|
|
@@ -13261,21 +13097,21 @@
|
|
|
13261
13097
|
let {
|
|
13262
13098
|
theme: themeInput
|
|
13263
13099
|
} = _ref,
|
|
13264
|
-
props = _objectWithoutPropertiesLoose
|
|
13100
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
13265
13101
|
const scopedTheme = themeInput[THEME_ID];
|
|
13266
13102
|
let finalTheme = scopedTheme || themeInput;
|
|
13267
13103
|
if (typeof themeInput !== 'function') {
|
|
13268
13104
|
if (scopedTheme && !scopedTheme.vars) {
|
|
13269
|
-
finalTheme = _extends$
|
|
13105
|
+
finalTheme = _extends$1({}, scopedTheme, {
|
|
13270
13106
|
vars: null
|
|
13271
13107
|
});
|
|
13272
13108
|
} else if (themeInput && !themeInput.vars) {
|
|
13273
|
-
finalTheme = _extends$
|
|
13109
|
+
finalTheme = _extends$1({}, themeInput, {
|
|
13274
13110
|
vars: null
|
|
13275
13111
|
});
|
|
13276
13112
|
}
|
|
13277
13113
|
}
|
|
13278
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$1, _extends$
|
|
13114
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$1, _extends$1({}, props, {
|
|
13279
13115
|
themeId: scopedTheme ? THEME_ID : undefined,
|
|
13280
13116
|
theme: finalTheme
|
|
13281
13117
|
}));
|
|
@@ -13296,50 +13132,14 @@
|
|
|
13296
13132
|
return useDefaultProps$1(params);
|
|
13297
13133
|
}
|
|
13298
13134
|
|
|
13299
|
-
function
|
|
13300
|
-
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
for (var key in source) {
|
|
13305
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13306
|
-
target[key] = source[key];
|
|
13307
|
-
}
|
|
13308
|
-
}
|
|
13309
|
-
}
|
|
13310
|
-
|
|
13311
|
-
return target;
|
|
13312
|
-
};
|
|
13313
|
-
return _extends.apply(this, arguments);
|
|
13314
|
-
}
|
|
13315
|
-
|
|
13316
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
13317
|
-
if (source == null) return {};
|
|
13318
|
-
var target = {};
|
|
13319
|
-
var sourceKeys = Object.keys(source);
|
|
13320
|
-
var key, i;
|
|
13321
|
-
|
|
13322
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
13323
|
-
key = sourceKeys[i];
|
|
13324
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
13325
|
-
target[key] = source[key];
|
|
13326
|
-
}
|
|
13327
|
-
|
|
13328
|
-
return target;
|
|
13135
|
+
function _setPrototypeOf(t, e) {
|
|
13136
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
13137
|
+
return t.__proto__ = e, t;
|
|
13138
|
+
}, _setPrototypeOf(t, e);
|
|
13329
13139
|
}
|
|
13330
13140
|
|
|
13331
|
-
function
|
|
13332
|
-
|
|
13333
|
-
o.__proto__ = p;
|
|
13334
|
-
return o;
|
|
13335
|
-
};
|
|
13336
|
-
return _setPrototypeOf(o, p);
|
|
13337
|
-
}
|
|
13338
|
-
|
|
13339
|
-
function _inheritsLoose(subClass, superClass) {
|
|
13340
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
13341
|
-
subClass.prototype.constructor = subClass;
|
|
13342
|
-
_setPrototypeOf(subClass, superClass);
|
|
13141
|
+
function _inheritsLoose(t, o) {
|
|
13142
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
13343
13143
|
}
|
|
13344
13144
|
|
|
13345
13145
|
var reactDomExports = requireReactDom();
|
|
@@ -13785,12 +13585,9 @@
|
|
|
13785
13585
|
Transition.ENTERED = ENTERED;
|
|
13786
13586
|
Transition.EXITING = EXITING;
|
|
13787
13587
|
|
|
13788
|
-
function _assertThisInitialized(
|
|
13789
|
-
if (
|
|
13790
|
-
|
|
13791
|
-
}
|
|
13792
|
-
|
|
13793
|
-
return self;
|
|
13588
|
+
function _assertThisInitialized(e) {
|
|
13589
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
13590
|
+
return e;
|
|
13794
13591
|
}
|
|
13795
13592
|
|
|
13796
13593
|
/**
|
|
@@ -14017,7 +13814,7 @@
|
|
|
14017
13814
|
|
|
14018
13815
|
if (this.mounted) {
|
|
14019
13816
|
this.setState(function (state) {
|
|
14020
|
-
var children = _extends({}, state.children);
|
|
13817
|
+
var children = _extends$1({}, state.children);
|
|
14021
13818
|
|
|
14022
13819
|
delete children[child.key];
|
|
14023
13820
|
return {
|
|
@@ -14230,7 +14027,7 @@
|
|
|
14230
14027
|
classes = {},
|
|
14231
14028
|
className
|
|
14232
14029
|
} = props,
|
|
14233
|
-
other = _objectWithoutPropertiesLoose
|
|
14030
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$E);
|
|
14234
14031
|
const [ripples, setRipples] = reactExports.useState([]);
|
|
14235
14032
|
const nextKey = reactExports.useRef(0);
|
|
14236
14033
|
const rippleCallback = reactExports.useRef(null);
|
|
@@ -14392,7 +14189,7 @@
|
|
|
14392
14189
|
start,
|
|
14393
14190
|
stop
|
|
14394
14191
|
}), [pulsate, start, stop]);
|
|
14395
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(TouchRippleRoot, _extends$
|
|
14192
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(TouchRippleRoot, _extends$1({
|
|
14396
14193
|
className: clsx$1(touchRippleClasses.root, classes.root, className),
|
|
14397
14194
|
ref: container
|
|
14398
14195
|
}, other, {
|
|
@@ -14510,7 +14307,7 @@
|
|
|
14510
14307
|
touchRippleRef,
|
|
14511
14308
|
type
|
|
14512
14309
|
} = props,
|
|
14513
|
-
other = _objectWithoutPropertiesLoose
|
|
14310
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$D);
|
|
14514
14311
|
const buttonRef = reactExports.useRef(null);
|
|
14515
14312
|
const rippleRef = reactExports.useRef(null);
|
|
14516
14313
|
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
@@ -14659,7 +14456,7 @@
|
|
|
14659
14456
|
}
|
|
14660
14457
|
}
|
|
14661
14458
|
const handleRef = useForkRef(ref, focusVisibleRef, buttonRef);
|
|
14662
|
-
const ownerState = _extends$
|
|
14459
|
+
const ownerState = _extends$1({}, props, {
|
|
14663
14460
|
centerRipple,
|
|
14664
14461
|
component,
|
|
14665
14462
|
disabled,
|
|
@@ -14670,7 +14467,7 @@
|
|
|
14670
14467
|
focusVisible
|
|
14671
14468
|
});
|
|
14672
14469
|
const classes = useUtilityClasses$r(ownerState);
|
|
14673
|
-
return /*#__PURE__*/jsxRuntimeExports.jsxs(ButtonBaseRoot, _extends$
|
|
14470
|
+
return /*#__PURE__*/jsxRuntimeExports.jsxs(ButtonBaseRoot, _extends$1({
|
|
14674
14471
|
as: ComponentProp,
|
|
14675
14472
|
className: clsx$1(classes.root, className),
|
|
14676
14473
|
ownerState: ownerState,
|
|
@@ -14694,7 +14491,7 @@
|
|
|
14694
14491
|
children: [children, enableTouchRipple ?
|
|
14695
14492
|
/*#__PURE__*/
|
|
14696
14493
|
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
14697
|
-
jsxRuntimeExports.jsx(TouchRipple, _extends$
|
|
14494
|
+
jsxRuntimeExports.jsx(TouchRipple, _extends$1({
|
|
14698
14495
|
ref: handleRippleRef,
|
|
14699
14496
|
center: centerRipple
|
|
14700
14497
|
}, TouchRippleProps)) : null]
|
|
@@ -14733,9 +14530,9 @@
|
|
|
14733
14530
|
endIcon: ['icon', 'endIcon', `iconSize${capitalize$1(size)}`]
|
|
14734
14531
|
};
|
|
14735
14532
|
const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
|
|
14736
|
-
return _extends$
|
|
14533
|
+
return _extends$1({}, classes, composedClasses);
|
|
14737
14534
|
};
|
|
14738
|
-
const commonIconStyles = ownerState => _extends$
|
|
14535
|
+
const commonIconStyles = ownerState => _extends$1({}, ownerState.size === 'small' && {
|
|
14739
14536
|
'& > *:nth-of-type(1)': {
|
|
14740
14537
|
fontSize: 18
|
|
14741
14538
|
}
|
|
@@ -14765,14 +14562,14 @@
|
|
|
14765
14562
|
var _theme$palette$getCon, _theme$palette;
|
|
14766
14563
|
const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
|
|
14767
14564
|
const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
|
|
14768
|
-
return _extends$
|
|
14565
|
+
return _extends$1({}, theme.typography.button, {
|
|
14769
14566
|
minWidth: 64,
|
|
14770
14567
|
padding: '6px 16px',
|
|
14771
14568
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
14772
14569
|
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
14773
14570
|
duration: theme.transitions.duration.short
|
|
14774
14571
|
}),
|
|
14775
|
-
'&:hover': _extends$
|
|
14572
|
+
'&:hover': _extends$1({
|
|
14776
14573
|
textDecoration: 'none',
|
|
14777
14574
|
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : colorManipulatorExports.alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
14778
14575
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -14807,13 +14604,13 @@
|
|
|
14807
14604
|
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
14808
14605
|
}
|
|
14809
14606
|
}),
|
|
14810
|
-
'&:active': _extends$
|
|
14607
|
+
'&:active': _extends$1({}, ownerState.variant === 'contained' && {
|
|
14811
14608
|
boxShadow: (theme.vars || theme).shadows[8]
|
|
14812
14609
|
}),
|
|
14813
|
-
[`&.${buttonClasses.focusVisible}`]: _extends$
|
|
14610
|
+
[`&.${buttonClasses.focusVisible}`]: _extends$1({}, ownerState.variant === 'contained' && {
|
|
14814
14611
|
boxShadow: (theme.vars || theme).shadows[6]
|
|
14815
14612
|
}),
|
|
14816
|
-
[`&.${buttonClasses.disabled}`]: _extends$
|
|
14613
|
+
[`&.${buttonClasses.disabled}`]: _extends$1({
|
|
14817
14614
|
color: (theme.vars || theme).palette.action.disabled
|
|
14818
14615
|
}, ownerState.variant === 'outlined' && {
|
|
14819
14616
|
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
|
@@ -14893,7 +14690,7 @@
|
|
|
14893
14690
|
}
|
|
14894
14691
|
})(({
|
|
14895
14692
|
ownerState
|
|
14896
|
-
}) => _extends$
|
|
14693
|
+
}) => _extends$1({
|
|
14897
14694
|
display: 'inherit',
|
|
14898
14695
|
marginRight: 8,
|
|
14899
14696
|
marginLeft: -4
|
|
@@ -14911,7 +14708,7 @@
|
|
|
14911
14708
|
}
|
|
14912
14709
|
})(({
|
|
14913
14710
|
ownerState
|
|
14914
|
-
}) => _extends$
|
|
14711
|
+
}) => _extends$1({
|
|
14915
14712
|
display: 'inherit',
|
|
14916
14713
|
marginRight: -4,
|
|
14917
14714
|
marginLeft: 8
|
|
@@ -14943,8 +14740,8 @@
|
|
|
14943
14740
|
type,
|
|
14944
14741
|
variant = 'text'
|
|
14945
14742
|
} = props,
|
|
14946
|
-
other = _objectWithoutPropertiesLoose
|
|
14947
|
-
const ownerState = _extends$
|
|
14743
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$C);
|
|
14744
|
+
const ownerState = _extends$1({}, props, {
|
|
14948
14745
|
color,
|
|
14949
14746
|
component,
|
|
14950
14747
|
disabled,
|
|
@@ -14967,7 +14764,7 @@
|
|
|
14967
14764
|
children: endIconProp
|
|
14968
14765
|
});
|
|
14969
14766
|
const positionClassName = buttonGroupButtonContextPositionClassName || '';
|
|
14970
|
-
return /*#__PURE__*/jsxRuntimeExports.jsxs(ButtonRoot, _extends$
|
|
14767
|
+
return /*#__PURE__*/jsxRuntimeExports.jsxs(ButtonRoot, _extends$1({
|
|
14971
14768
|
ownerState: ownerState,
|
|
14972
14769
|
className: clsx$1(contextProps.className, classes.root, className, positionClassName),
|
|
14973
14770
|
component: component,
|
|
@@ -15311,7 +15108,7 @@
|
|
|
15311
15108
|
return cache[key];
|
|
15312
15109
|
}
|
|
15313
15110
|
|
|
15314
|
-
const NEBULA_VERSION_HASH = "
|
|
15111
|
+
const NEBULA_VERSION_HASH = "c387";
|
|
15315
15112
|
ClassNameGenerator.configure(componentName => {
|
|
15316
15113
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
15317
15114
|
});
|
|
@@ -15552,7 +15349,7 @@
|
|
|
15552
15349
|
const appRef = React.createRef();
|
|
15553
15350
|
const element = document.createElement('div');
|
|
15554
15351
|
element.style.display = 'none';
|
|
15555
|
-
element.setAttribute('data-nebulajs-version', "5.
|
|
15352
|
+
element.setAttribute('data-nebulajs-version', "5.13.0");
|
|
15556
15353
|
element.setAttribute('data-app-id', app.id);
|
|
15557
15354
|
document.body.appendChild(element);
|
|
15558
15355
|
if (context) {
|
|
@@ -15574,7 +15371,8 @@
|
|
|
15574
15371
|
return [{
|
|
15575
15372
|
toggleFocusOfCells(cellIdToFocus) {
|
|
15576
15373
|
Object.keys(cells).forEach(i => {
|
|
15577
|
-
|
|
15374
|
+
var _cells$i$current;
|
|
15375
|
+
(_cells$i$current = cells[i].current) === null || _cells$i$current === void 0 || _cells$i$current.toggleFocus(i === cellIdToFocus);
|
|
15578
15376
|
});
|
|
15579
15377
|
},
|
|
15580
15378
|
cells,
|
|
@@ -15704,9 +15502,9 @@
|
|
|
15704
15502
|
titleAccess,
|
|
15705
15503
|
viewBox = '0 0 24 24'
|
|
15706
15504
|
} = props,
|
|
15707
|
-
other = _objectWithoutPropertiesLoose
|
|
15505
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$B);
|
|
15708
15506
|
const hasSvgAsChild = /*#__PURE__*/reactExports.isValidElement(children) && children.type === 'svg';
|
|
15709
|
-
const ownerState = _extends$
|
|
15507
|
+
const ownerState = _extends$1({}, props, {
|
|
15710
15508
|
color,
|
|
15711
15509
|
component,
|
|
15712
15510
|
fontSize,
|
|
@@ -15720,7 +15518,7 @@
|
|
|
15720
15518
|
more.viewBox = viewBox;
|
|
15721
15519
|
}
|
|
15722
15520
|
const classes = useUtilityClasses$p(ownerState);
|
|
15723
|
-
return /*#__PURE__*/jsxRuntimeExports.jsxs(SvgIconRoot, _extends$
|
|
15521
|
+
return /*#__PURE__*/jsxRuntimeExports.jsxs(SvgIconRoot, _extends$1({
|
|
15724
15522
|
as: component,
|
|
15725
15523
|
className: clsx$1(classes.root, className),
|
|
15726
15524
|
focusable: "false",
|
|
@@ -15739,7 +15537,7 @@
|
|
|
15739
15537
|
|
|
15740
15538
|
function createSvgIcon$1(path, displayName) {
|
|
15741
15539
|
function Component(props, ref) {
|
|
15742
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(SvgIcon$1, _extends$
|
|
15540
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(SvgIcon$1, _extends$1({
|
|
15743
15541
|
"data-testid": `${displayName}Icon`,
|
|
15744
15542
|
ref: ref
|
|
15745
15543
|
}, props, {
|
|
@@ -15827,7 +15625,7 @@
|
|
|
15827
15625
|
ownerState
|
|
15828
15626
|
}) => {
|
|
15829
15627
|
var _theme$vars$overlays;
|
|
15830
|
-
return _extends$
|
|
15628
|
+
return _extends$1({
|
|
15831
15629
|
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
15832
15630
|
color: (theme.vars || theme).palette.text.primary,
|
|
15833
15631
|
transition: theme.transitions.create('box-shadow')
|
|
@@ -15835,7 +15633,7 @@
|
|
|
15835
15633
|
borderRadius: theme.shape.borderRadius
|
|
15836
15634
|
}, ownerState.variant === 'outlined' && {
|
|
15837
15635
|
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
15838
|
-
}, ownerState.variant === 'elevation' && _extends$
|
|
15636
|
+
}, ownerState.variant === 'elevation' && _extends$1({
|
|
15839
15637
|
boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
|
|
15840
15638
|
}, !theme.vars && theme.palette.mode === 'dark' && {
|
|
15841
15639
|
backgroundImage: `linear-gradient(${colorManipulatorExports.alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${colorManipulatorExports.alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
|
|
@@ -15855,15 +15653,15 @@
|
|
|
15855
15653
|
square = false,
|
|
15856
15654
|
variant = 'elevation'
|
|
15857
15655
|
} = props,
|
|
15858
|
-
other = _objectWithoutPropertiesLoose
|
|
15859
|
-
const ownerState = _extends$
|
|
15656
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$A);
|
|
15657
|
+
const ownerState = _extends$1({}, props, {
|
|
15860
15658
|
component,
|
|
15861
15659
|
elevation,
|
|
15862
15660
|
square,
|
|
15863
15661
|
variant
|
|
15864
15662
|
});
|
|
15865
15663
|
const classes = useUtilityClasses$o(ownerState);
|
|
15866
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(PaperRoot, _extends$
|
|
15664
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(PaperRoot, _extends$1({
|
|
15867
15665
|
as: component,
|
|
15868
15666
|
ownerState: ownerState,
|
|
15869
15667
|
className: clsx$1(classes.root, className),
|
|
@@ -15902,7 +15700,7 @@
|
|
|
15902
15700
|
})(({
|
|
15903
15701
|
theme,
|
|
15904
15702
|
ownerState
|
|
15905
|
-
}) => _extends$
|
|
15703
|
+
}) => _extends$1({
|
|
15906
15704
|
textAlign: 'center',
|
|
15907
15705
|
flex: '0 0 auto',
|
|
15908
15706
|
fontSize: theme.typography.pxToRem(24),
|
|
@@ -15932,12 +15730,12 @@
|
|
|
15932
15730
|
}) => {
|
|
15933
15731
|
var _palette;
|
|
15934
15732
|
const palette = (_palette = (theme.vars || theme).palette) == null ? void 0 : _palette[ownerState.color];
|
|
15935
|
-
return _extends$
|
|
15733
|
+
return _extends$1({}, ownerState.color === 'inherit' && {
|
|
15936
15734
|
color: 'inherit'
|
|
15937
|
-
}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends$
|
|
15735
|
+
}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends$1({
|
|
15938
15736
|
color: palette == null ? void 0 : palette.main
|
|
15939
15737
|
}, !ownerState.disableRipple && {
|
|
15940
|
-
'&:hover': _extends$
|
|
15738
|
+
'&:hover': _extends$1({}, palette && {
|
|
15941
15739
|
backgroundColor: theme.vars ? `rgba(${palette.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : colorManipulatorExports.alpha(palette.main, theme.palette.action.hoverOpacity)
|
|
15942
15740
|
}, {
|
|
15943
15741
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -15977,8 +15775,8 @@
|
|
|
15977
15775
|
disableFocusRipple = false,
|
|
15978
15776
|
size = 'medium'
|
|
15979
15777
|
} = props,
|
|
15980
|
-
other = _objectWithoutPropertiesLoose
|
|
15981
|
-
const ownerState = _extends$
|
|
15778
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$z);
|
|
15779
|
+
const ownerState = _extends$1({}, props, {
|
|
15982
15780
|
edge,
|
|
15983
15781
|
color,
|
|
15984
15782
|
disabled,
|
|
@@ -15986,7 +15784,7 @@
|
|
|
15986
15784
|
size
|
|
15987
15785
|
});
|
|
15988
15786
|
const classes = useUtilityClasses$n(ownerState);
|
|
15989
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(IconButtonRoot, _extends$
|
|
15787
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(IconButtonRoot, _extends$1({
|
|
15990
15788
|
className: clsx$1(classes.root, className),
|
|
15991
15789
|
centerRipple: true,
|
|
15992
15790
|
focusRipple: !disableFocusRipple,
|
|
@@ -16030,7 +15828,7 @@
|
|
|
16030
15828
|
})(({
|
|
16031
15829
|
theme,
|
|
16032
15830
|
ownerState
|
|
16033
|
-
}) => _extends$
|
|
15831
|
+
}) => _extends$1({
|
|
16034
15832
|
margin: 0
|
|
16035
15833
|
}, ownerState.variant === 'inherit' && {
|
|
16036
15834
|
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
@@ -16077,7 +15875,7 @@
|
|
|
16077
15875
|
name: 'MuiTypography'
|
|
16078
15876
|
});
|
|
16079
15877
|
const color = transformDeprecatedColors(themeProps.color);
|
|
16080
|
-
const props = extendSxProp(_extends$
|
|
15878
|
+
const props = extendSxProp(_extends$1({}, themeProps, {
|
|
16081
15879
|
color
|
|
16082
15880
|
}));
|
|
16083
15881
|
const {
|
|
@@ -16090,8 +15888,8 @@
|
|
|
16090
15888
|
variant = 'body1',
|
|
16091
15889
|
variantMapping = defaultVariantMapping
|
|
16092
15890
|
} = props,
|
|
16093
|
-
other = _objectWithoutPropertiesLoose
|
|
16094
|
-
const ownerState = _extends$
|
|
15891
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$y);
|
|
15892
|
+
const ownerState = _extends$1({}, props, {
|
|
16095
15893
|
align,
|
|
16096
15894
|
color,
|
|
16097
15895
|
className,
|
|
@@ -16104,7 +15902,7 @@
|
|
|
16104
15902
|
});
|
|
16105
15903
|
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
|
16106
15904
|
const classes = useUtilityClasses$m(ownerState);
|
|
16107
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(TypographyRoot, _extends$
|
|
15905
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(TypographyRoot, _extends$1({
|
|
16108
15906
|
as: Component,
|
|
16109
15907
|
ref: ref,
|
|
16110
15908
|
ownerState: ownerState,
|
|
@@ -18043,7 +17841,7 @@
|
|
|
18043
17841
|
// @ts-ignore internal logic
|
|
18044
17842
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
18045
17843
|
} = props,
|
|
18046
|
-
other = _objectWithoutPropertiesLoose
|
|
17844
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$x);
|
|
18047
17845
|
const tooltipRef = reactExports.useRef(null);
|
|
18048
17846
|
const ownRef = useForkRef(tooltipRef, forwardedRef);
|
|
18049
17847
|
const popperRef = reactExports.useRef(null);
|
|
@@ -18103,7 +17901,7 @@
|
|
|
18103
17901
|
if (popperOptions && popperOptions.modifiers != null) {
|
|
18104
17902
|
popperModifiers = popperModifiers.concat(popperOptions.modifiers);
|
|
18105
17903
|
}
|
|
18106
|
-
const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends$
|
|
17904
|
+
const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends$1({
|
|
18107
17905
|
placement: rtlPlacement
|
|
18108
17906
|
}, popperOptions, {
|
|
18109
17907
|
modifiers: popperModifiers
|
|
@@ -18133,7 +17931,7 @@
|
|
|
18133
17931
|
ownerState: props,
|
|
18134
17932
|
className: classes.root
|
|
18135
17933
|
});
|
|
18136
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(Root, _extends$
|
|
17934
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(Root, _extends$1({}, rootProps, {
|
|
18137
17935
|
children: typeof children === 'function' ? children(childProps) : children
|
|
18138
17936
|
}));
|
|
18139
17937
|
});
|
|
@@ -18159,7 +17957,7 @@
|
|
|
18159
17957
|
slotProps = {},
|
|
18160
17958
|
slots = {}
|
|
18161
17959
|
} = props,
|
|
18162
|
-
other = _objectWithoutPropertiesLoose
|
|
17960
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$3);
|
|
18163
17961
|
const [exited, setExited] = reactExports.useState(true);
|
|
18164
17962
|
const handleEnter = () => {
|
|
18165
17963
|
setExited(false);
|
|
@@ -18190,7 +17988,7 @@
|
|
|
18190
17988
|
return /*#__PURE__*/jsxRuntimeExports.jsx(Portal, {
|
|
18191
17989
|
disablePortal: disablePortal,
|
|
18192
17990
|
container: container,
|
|
18193
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx(PopperTooltip, _extends$
|
|
17991
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(PopperTooltip, _extends$1({
|
|
18194
17992
|
anchorEl: anchorEl,
|
|
18195
17993
|
direction: direction,
|
|
18196
17994
|
disablePortal: disablePortal,
|
|
@@ -18203,7 +18001,7 @@
|
|
|
18203
18001
|
slotProps: slotProps,
|
|
18204
18002
|
slots: slots
|
|
18205
18003
|
}, other, {
|
|
18206
|
-
style: _extends$
|
|
18004
|
+
style: _extends$1({
|
|
18207
18005
|
// Prevents scroll issue, waiting for Popper.js to add this style once initiated.
|
|
18208
18006
|
position: 'fixed',
|
|
18209
18007
|
// Fix Popper.js display issue
|
|
@@ -18260,9 +18058,9 @@
|
|
|
18260
18058
|
slots,
|
|
18261
18059
|
slotProps
|
|
18262
18060
|
} = props,
|
|
18263
|
-
other = _objectWithoutPropertiesLoose
|
|
18061
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$w);
|
|
18264
18062
|
const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
|
|
18265
|
-
const otherProps = _extends$
|
|
18063
|
+
const otherProps = _extends$1({
|
|
18266
18064
|
anchorEl,
|
|
18267
18065
|
container,
|
|
18268
18066
|
disablePortal,
|
|
@@ -18274,7 +18072,7 @@
|
|
|
18274
18072
|
popperRef,
|
|
18275
18073
|
transition
|
|
18276
18074
|
}, other);
|
|
18277
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, _extends$
|
|
18075
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(PopperRoot, _extends$1({
|
|
18278
18076
|
as: component,
|
|
18279
18077
|
direction: theme == null ? void 0 : theme.direction,
|
|
18280
18078
|
slots: {
|
|
@@ -18334,7 +18132,7 @@
|
|
|
18334
18132
|
style,
|
|
18335
18133
|
value
|
|
18336
18134
|
} = props,
|
|
18337
|
-
other = _objectWithoutPropertiesLoose
|
|
18135
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$v);
|
|
18338
18136
|
const {
|
|
18339
18137
|
current: isControlled
|
|
18340
18138
|
} = reactExports.useRef(value != null);
|
|
@@ -18464,7 +18262,7 @@
|
|
|
18464
18262
|
}
|
|
18465
18263
|
};
|
|
18466
18264
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(reactExports.Fragment, {
|
|
18467
|
-
children: [/*#__PURE__*/jsxRuntimeExports.jsx("textarea", _extends$
|
|
18265
|
+
children: [/*#__PURE__*/jsxRuntimeExports.jsx("textarea", _extends$1({
|
|
18468
18266
|
value: value,
|
|
18469
18267
|
onChange: handleChange,
|
|
18470
18268
|
ref: handleRef
|
|
@@ -18478,7 +18276,7 @@
|
|
|
18478
18276
|
readOnly: true,
|
|
18479
18277
|
ref: hiddenTextareaRef,
|
|
18480
18278
|
tabIndex: -1,
|
|
18481
|
-
style: _extends$
|
|
18279
|
+
style: _extends$1({}, styles$2.shadow, style, {
|
|
18482
18280
|
paddingTop: 0,
|
|
18483
18281
|
paddingBottom: 0
|
|
18484
18282
|
})
|
|
@@ -18512,7 +18310,7 @@
|
|
|
18512
18310
|
}
|
|
18513
18311
|
|
|
18514
18312
|
function GlobalStyles(props) {
|
|
18515
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$1, _extends$
|
|
18313
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(GlobalStyles$1, _extends$1({}, props, {
|
|
18516
18314
|
defaultTheme: defaultTheme$1,
|
|
18517
18315
|
themeId: THEME_ID
|
|
18518
18316
|
}));
|
|
@@ -18587,7 +18385,7 @@
|
|
|
18587
18385
|
})(({
|
|
18588
18386
|
theme,
|
|
18589
18387
|
ownerState
|
|
18590
|
-
}) => _extends$
|
|
18388
|
+
}) => _extends$1({}, theme.typography.body1, {
|
|
18591
18389
|
color: (theme.vars || theme).palette.text.primary,
|
|
18592
18390
|
lineHeight: '1.4375em',
|
|
18593
18391
|
// 23px
|
|
@@ -18601,7 +18399,7 @@
|
|
|
18601
18399
|
color: (theme.vars || theme).palette.text.disabled,
|
|
18602
18400
|
cursor: 'default'
|
|
18603
18401
|
}
|
|
18604
|
-
}, ownerState.multiline && _extends$
|
|
18402
|
+
}, ownerState.multiline && _extends$1({
|
|
18605
18403
|
padding: '4px 0 5px'
|
|
18606
18404
|
}, ownerState.size === 'small' && {
|
|
18607
18405
|
paddingTop: 1
|
|
@@ -18617,7 +18415,7 @@
|
|
|
18617
18415
|
ownerState
|
|
18618
18416
|
}) => {
|
|
18619
18417
|
const light = theme.palette.mode === 'light';
|
|
18620
|
-
const placeholder = _extends$
|
|
18418
|
+
const placeholder = _extends$1({
|
|
18621
18419
|
color: 'currentColor'
|
|
18622
18420
|
}, theme.vars ? {
|
|
18623
18421
|
opacity: theme.vars.opacity.inputPlaceholder
|
|
@@ -18636,7 +18434,7 @@
|
|
|
18636
18434
|
} : {
|
|
18637
18435
|
opacity: light ? 0.42 : 0.5
|
|
18638
18436
|
};
|
|
18639
|
-
return _extends$
|
|
18437
|
+
return _extends$1({
|
|
18640
18438
|
font: 'inherit',
|
|
18641
18439
|
letterSpacing: 'inherit',
|
|
18642
18440
|
color: 'currentColor',
|
|
@@ -18773,7 +18571,7 @@
|
|
|
18773
18571
|
type = 'text',
|
|
18774
18572
|
value: valueProp
|
|
18775
18573
|
} = props,
|
|
18776
|
-
other = _objectWithoutPropertiesLoose
|
|
18574
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$u);
|
|
18777
18575
|
const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
|
|
18778
18576
|
const {
|
|
18779
18577
|
current: isControlled
|
|
@@ -18889,13 +18687,13 @@
|
|
|
18889
18687
|
let inputProps = inputPropsProp;
|
|
18890
18688
|
if (multiline && InputComponent === 'input') {
|
|
18891
18689
|
if (rows) {
|
|
18892
|
-
inputProps = _extends$
|
|
18690
|
+
inputProps = _extends$1({
|
|
18893
18691
|
type: undefined,
|
|
18894
18692
|
minRows: rows,
|
|
18895
18693
|
maxRows: rows
|
|
18896
18694
|
}, inputProps);
|
|
18897
18695
|
} else {
|
|
18898
|
-
inputProps = _extends$
|
|
18696
|
+
inputProps = _extends$1({
|
|
18899
18697
|
type: undefined,
|
|
18900
18698
|
maxRows,
|
|
18901
18699
|
minRows
|
|
@@ -18914,7 +18712,7 @@
|
|
|
18914
18712
|
muiFormControl.setAdornedStart(Boolean(startAdornment));
|
|
18915
18713
|
}
|
|
18916
18714
|
}, [muiFormControl, startAdornment]);
|
|
18917
|
-
const ownerState = _extends$
|
|
18715
|
+
const ownerState = _extends$1({}, props, {
|
|
18918
18716
|
color: fcs.color || 'primary',
|
|
18919
18717
|
disabled: fcs.disabled,
|
|
18920
18718
|
endAdornment,
|
|
@@ -18932,10 +18730,10 @@
|
|
|
18932
18730
|
const Root = slots.root || components.Root || InputBaseRoot;
|
|
18933
18731
|
const rootProps = slotProps.root || componentsProps.root || {};
|
|
18934
18732
|
const Input = slots.input || components.Input || InputBaseComponent;
|
|
18935
|
-
inputProps = _extends$
|
|
18733
|
+
inputProps = _extends$1({}, inputProps, (_slotProps$input = slotProps.input) != null ? _slotProps$input : componentsProps.input);
|
|
18936
18734
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(reactExports.Fragment, {
|
|
18937
|
-
children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/jsxRuntimeExports.jsxs(Root, _extends$
|
|
18938
|
-
ownerState: _extends$
|
|
18735
|
+
children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/jsxRuntimeExports.jsxs(Root, _extends$1({}, rootProps, !isHostComponent(Root) && {
|
|
18736
|
+
ownerState: _extends$1({}, ownerState, rootProps.ownerState)
|
|
18939
18737
|
}, {
|
|
18940
18738
|
ref: ref,
|
|
18941
18739
|
onClick: handleClick
|
|
@@ -18943,7 +18741,7 @@
|
|
|
18943
18741
|
className: clsx$1(classes.root, rootProps.className, className, readOnly && 'MuiInputBase-readOnly'),
|
|
18944
18742
|
children: [startAdornment, /*#__PURE__*/jsxRuntimeExports.jsx(FormControlContext.Provider, {
|
|
18945
18743
|
value: null,
|
|
18946
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx(Input, _extends$
|
|
18744
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(Input, _extends$1({
|
|
18947
18745
|
ownerState: ownerState,
|
|
18948
18746
|
"aria-invalid": fcs.error,
|
|
18949
18747
|
"aria-describedby": ariaDescribedby,
|
|
@@ -18964,7 +18762,7 @@
|
|
|
18964
18762
|
type: type
|
|
18965
18763
|
}, inputProps, !isHostComponent(Input) && {
|
|
18966
18764
|
as: InputComponent,
|
|
18967
|
-
ownerState: _extends$
|
|
18765
|
+
ownerState: _extends$1({}, ownerState, inputProps.ownerState)
|
|
18968
18766
|
}, {
|
|
18969
18767
|
ref: handleInputRef,
|
|
18970
18768
|
className: clsx$1(classes.input, inputProps.className, readOnly && 'MuiInputBase-readOnly'),
|
|
@@ -18972,7 +18770,7 @@
|
|
|
18972
18770
|
onChange: handleChange,
|
|
18973
18771
|
onFocus: handleFocus
|
|
18974
18772
|
}))
|
|
18975
|
-
}), endAdornment, renderSuffix ? renderSuffix(_extends$
|
|
18773
|
+
}), endAdornment, renderSuffix ? renderSuffix(_extends$1({}, fcs, {
|
|
18976
18774
|
startAdornment
|
|
18977
18775
|
})) : null]
|
|
18978
18776
|
}))]
|
|
@@ -18982,7 +18780,7 @@
|
|
|
18982
18780
|
function getOutlinedInputUtilityClass(slot) {
|
|
18983
18781
|
return generateUtilityClass('MuiOutlinedInput', slot);
|
|
18984
18782
|
}
|
|
18985
|
-
const outlinedInputClasses = _extends$
|
|
18783
|
+
const outlinedInputClasses = _extends$1({}, inputBaseClasses, generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));
|
|
18986
18784
|
|
|
18987
18785
|
const _excluded$t = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
18988
18786
|
const styles$1 = {
|
|
@@ -19021,7 +18819,7 @@
|
|
|
19021
18819
|
// eslint-disable-next-line react/prop-types
|
|
19022
18820
|
TransitionComponent = Transition
|
|
19023
18821
|
} = props,
|
|
19024
|
-
other = _objectWithoutPropertiesLoose
|
|
18822
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$t);
|
|
19025
18823
|
const nodeRef = reactExports.useRef(null);
|
|
19026
18824
|
const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);
|
|
19027
18825
|
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
@@ -19076,7 +18874,7 @@
|
|
|
19076
18874
|
addEndListener(nodeRef.current, next);
|
|
19077
18875
|
}
|
|
19078
18876
|
};
|
|
19079
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$
|
|
18877
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$1({
|
|
19080
18878
|
appear: appear,
|
|
19081
18879
|
in: inProp,
|
|
19082
18880
|
nodeRef: nodeRef ,
|
|
@@ -19090,8 +18888,8 @@
|
|
|
19090
18888
|
timeout: timeout
|
|
19091
18889
|
}, other, {
|
|
19092
18890
|
children: (state, childProps) => {
|
|
19093
|
-
return /*#__PURE__*/reactExports.cloneElement(children, _extends$
|
|
19094
|
-
style: _extends$
|
|
18891
|
+
return /*#__PURE__*/reactExports.cloneElement(children, _extends$1({
|
|
18892
|
+
style: _extends$1({
|
|
19095
18893
|
opacity: 0,
|
|
19096
18894
|
visibility: state === 'exited' && !inProp ? 'hidden' : undefined
|
|
19097
18895
|
}, styles$1[state], style, children.props.style),
|
|
@@ -19128,7 +18926,7 @@
|
|
|
19128
18926
|
}
|
|
19129
18927
|
})(({
|
|
19130
18928
|
ownerState
|
|
19131
|
-
}) => _extends$
|
|
18929
|
+
}) => _extends$1({
|
|
19132
18930
|
position: 'fixed',
|
|
19133
18931
|
display: 'flex',
|
|
19134
18932
|
alignItems: 'center',
|
|
@@ -19161,23 +18959,23 @@
|
|
|
19161
18959
|
TransitionComponent = Fade,
|
|
19162
18960
|
transitionDuration
|
|
19163
18961
|
} = props,
|
|
19164
|
-
other = _objectWithoutPropertiesLoose
|
|
19165
|
-
const ownerState = _extends$
|
|
18962
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$s);
|
|
18963
|
+
const ownerState = _extends$1({}, props, {
|
|
19166
18964
|
component,
|
|
19167
18965
|
invisible
|
|
19168
18966
|
});
|
|
19169
18967
|
const classes = useUtilityClasses$j(ownerState);
|
|
19170
18968
|
const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
19171
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$
|
|
18969
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$1({
|
|
19172
18970
|
in: open,
|
|
19173
18971
|
timeout: transitionDuration
|
|
19174
18972
|
}, other, {
|
|
19175
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx(BackdropRoot, _extends$
|
|
18973
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(BackdropRoot, _extends$1({
|
|
19176
18974
|
"aria-hidden": true
|
|
19177
18975
|
}, rootSlotProps, {
|
|
19178
18976
|
as: (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : component,
|
|
19179
18977
|
className: clsx$1(classes.root, className, rootSlotProps == null ? void 0 : rootSlotProps.className),
|
|
19180
|
-
ownerState: _extends$
|
|
18978
|
+
ownerState: _extends$1({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
|
|
19181
18979
|
classes: classes,
|
|
19182
18980
|
ref: ref,
|
|
19183
18981
|
children: children
|
|
@@ -19459,7 +19257,7 @@
|
|
|
19459
19257
|
showZero = false,
|
|
19460
19258
|
variant: variantProp = 'standard'
|
|
19461
19259
|
} = props,
|
|
19462
|
-
other = _objectWithoutPropertiesLoose
|
|
19260
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$r);
|
|
19463
19261
|
const {
|
|
19464
19262
|
badgeContent,
|
|
19465
19263
|
invisible: invisibleFromHook,
|
|
@@ -19486,7 +19284,7 @@
|
|
|
19486
19284
|
variant = variantProp
|
|
19487
19285
|
} = invisible ? prevProps : props;
|
|
19488
19286
|
const displayValue = variant !== 'dot' ? displayValueFromHook : undefined;
|
|
19489
|
-
const ownerState = _extends$
|
|
19287
|
+
const ownerState = _extends$1({}, props, {
|
|
19490
19288
|
badgeContent,
|
|
19491
19289
|
invisible,
|
|
19492
19290
|
max,
|
|
@@ -19521,8 +19319,8 @@
|
|
|
19521
19319
|
ownerState,
|
|
19522
19320
|
className: clsx$1(classes.badge, badgeSlotProps == null ? void 0 : badgeSlotProps.className)
|
|
19523
19321
|
});
|
|
19524
|
-
return /*#__PURE__*/jsxRuntimeExports.jsxs(RootSlot, _extends$
|
|
19525
|
-
children: [children, /*#__PURE__*/jsxRuntimeExports.jsx(BadgeSlot, _extends$
|
|
19322
|
+
return /*#__PURE__*/jsxRuntimeExports.jsxs(RootSlot, _extends$1({}, rootProps, {
|
|
19323
|
+
children: [children, /*#__PURE__*/jsxRuntimeExports.jsx(BadgeSlot, _extends$1({}, badgeProps, {
|
|
19526
19324
|
children: displayValue
|
|
19527
19325
|
}))]
|
|
19528
19326
|
}));
|
|
@@ -19559,7 +19357,7 @@
|
|
|
19559
19357
|
};
|
|
19560
19358
|
const SwitchBaseRoot = styled(ButtonBase)(({
|
|
19561
19359
|
ownerState
|
|
19562
|
-
}) => _extends$
|
|
19360
|
+
}) => _extends$1({
|
|
19563
19361
|
padding: 9,
|
|
19564
19362
|
borderRadius: '50%'
|
|
19565
19363
|
}, ownerState.edge === 'start' && {
|
|
@@ -19609,7 +19407,7 @@
|
|
|
19609
19407
|
type,
|
|
19610
19408
|
value
|
|
19611
19409
|
} = props,
|
|
19612
|
-
other = _objectWithoutPropertiesLoose
|
|
19410
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$q);
|
|
19613
19411
|
const [checked, setCheckedState] = useControlled({
|
|
19614
19412
|
controlled: checkedProp,
|
|
19615
19413
|
default: Boolean(defaultChecked),
|
|
@@ -19652,14 +19450,14 @@
|
|
|
19652
19450
|
}
|
|
19653
19451
|
}
|
|
19654
19452
|
const hasLabelFor = type === 'checkbox' || type === 'radio';
|
|
19655
|
-
const ownerState = _extends$
|
|
19453
|
+
const ownerState = _extends$1({}, props, {
|
|
19656
19454
|
checked,
|
|
19657
19455
|
disabled,
|
|
19658
19456
|
disableFocusRipple,
|
|
19659
19457
|
edge
|
|
19660
19458
|
});
|
|
19661
19459
|
const classes = useUtilityClasses$h(ownerState);
|
|
19662
|
-
return /*#__PURE__*/jsxRuntimeExports.jsxs(SwitchBaseRoot, _extends$
|
|
19460
|
+
return /*#__PURE__*/jsxRuntimeExports.jsxs(SwitchBaseRoot, _extends$1({
|
|
19663
19461
|
component: "span",
|
|
19664
19462
|
className: clsx$1(classes.root, className),
|
|
19665
19463
|
centerRipple: true,
|
|
@@ -19672,7 +19470,7 @@
|
|
|
19672
19470
|
ownerState: ownerState,
|
|
19673
19471
|
ref: ref
|
|
19674
19472
|
}, other, {
|
|
19675
|
-
children: [/*#__PURE__*/jsxRuntimeExports.jsx(SwitchBaseInput, _extends$
|
|
19473
|
+
children: [/*#__PURE__*/jsxRuntimeExports.jsx(SwitchBaseInput, _extends$1({
|
|
19676
19474
|
autoFocus: autoFocus,
|
|
19677
19475
|
checked: checkedProp,
|
|
19678
19476
|
defaultChecked: defaultChecked,
|
|
@@ -19722,7 +19520,7 @@
|
|
|
19722
19520
|
root: ['root', indeterminate && 'indeterminate', `color${capitalize$1(color)}`, `size${capitalize$1(size)}`]
|
|
19723
19521
|
};
|
|
19724
19522
|
const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);
|
|
19725
|
-
return _extends$
|
|
19523
|
+
return _extends$1({}, classes, composedClasses);
|
|
19726
19524
|
};
|
|
19727
19525
|
const CheckboxRoot = styled(SwitchBase, {
|
|
19728
19526
|
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
@@ -19737,7 +19535,7 @@
|
|
|
19737
19535
|
})(({
|
|
19738
19536
|
theme,
|
|
19739
19537
|
ownerState
|
|
19740
|
-
}) => _extends$
|
|
19538
|
+
}) => _extends$1({
|
|
19741
19539
|
color: (theme.vars || theme).palette.text.secondary
|
|
19742
19540
|
}, !ownerState.disableRipple && {
|
|
19743
19541
|
'&:hover': {
|
|
@@ -19774,18 +19572,18 @@
|
|
|
19774
19572
|
size = 'medium',
|
|
19775
19573
|
className
|
|
19776
19574
|
} = props,
|
|
19777
|
-
other = _objectWithoutPropertiesLoose
|
|
19575
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$p);
|
|
19778
19576
|
const icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
19779
19577
|
const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
19780
|
-
const ownerState = _extends$
|
|
19578
|
+
const ownerState = _extends$1({}, props, {
|
|
19781
19579
|
color,
|
|
19782
19580
|
indeterminate,
|
|
19783
19581
|
size
|
|
19784
19582
|
});
|
|
19785
19583
|
const classes = useUtilityClasses$g(ownerState);
|
|
19786
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(CheckboxRoot, _extends$
|
|
19584
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(CheckboxRoot, _extends$1({
|
|
19787
19585
|
type: "checkbox",
|
|
19788
|
-
inputProps: _extends$
|
|
19586
|
+
inputProps: _extends$1({
|
|
19789
19587
|
'data-indeterminate': indeterminate
|
|
19790
19588
|
}, inputProps),
|
|
19791
19589
|
icon: /*#__PURE__*/reactExports.cloneElement(icon, {
|
|
@@ -19865,7 +19663,7 @@
|
|
|
19865
19663
|
})(({
|
|
19866
19664
|
ownerState,
|
|
19867
19665
|
theme
|
|
19868
|
-
}) => _extends$
|
|
19666
|
+
}) => _extends$1({
|
|
19869
19667
|
display: 'inline-block'
|
|
19870
19668
|
}, ownerState.variant === 'determinate' && {
|
|
19871
19669
|
transition: theme.transitions.create('transform')
|
|
@@ -19895,7 +19693,7 @@
|
|
|
19895
19693
|
})(({
|
|
19896
19694
|
ownerState,
|
|
19897
19695
|
theme
|
|
19898
|
-
}) => _extends$
|
|
19696
|
+
}) => _extends$1({
|
|
19899
19697
|
stroke: 'currentColor'
|
|
19900
19698
|
}, ownerState.variant === 'determinate' && {
|
|
19901
19699
|
transition: theme.transitions.create('stroke-dashoffset')
|
|
@@ -19931,8 +19729,8 @@
|
|
|
19931
19729
|
value = 0,
|
|
19932
19730
|
variant = 'indeterminate'
|
|
19933
19731
|
} = props,
|
|
19934
|
-
other = _objectWithoutPropertiesLoose
|
|
19935
|
-
const ownerState = _extends$
|
|
19732
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$o);
|
|
19733
|
+
const ownerState = _extends$1({}, props, {
|
|
19936
19734
|
color,
|
|
19937
19735
|
disableShrink,
|
|
19938
19736
|
size,
|
|
@@ -19951,9 +19749,9 @@
|
|
|
19951
19749
|
circleStyle.strokeDashoffset = `${((100 - value) / 100 * circumference).toFixed(3)}px`;
|
|
19952
19750
|
rootStyle.transform = 'rotate(-90deg)';
|
|
19953
19751
|
}
|
|
19954
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(CircularProgressRoot, _extends$
|
|
19752
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(CircularProgressRoot, _extends$1({
|
|
19955
19753
|
className: clsx$1(classes.root, className),
|
|
19956
|
-
style: _extends$
|
|
19754
|
+
style: _extends$1({
|
|
19957
19755
|
width: size,
|
|
19958
19756
|
height: size
|
|
19959
19757
|
}, rootStyle, style),
|
|
@@ -20592,8 +20390,8 @@
|
|
|
20592
20390
|
// The custom event handlers shouldn't be spread on the root element
|
|
20593
20391
|
delete propsEventHandlers.onTransitionEnter;
|
|
20594
20392
|
delete propsEventHandlers.onTransitionExited;
|
|
20595
|
-
const externalEventHandlers = _extends$
|
|
20596
|
-
return _extends$
|
|
20393
|
+
const externalEventHandlers = _extends$1({}, propsEventHandlers, otherHandlers);
|
|
20394
|
+
return _extends$1({
|
|
20597
20395
|
role: 'presentation'
|
|
20598
20396
|
}, externalEventHandlers, {
|
|
20599
20397
|
onKeyDown: createHandleKeyDown(externalEventHandlers),
|
|
@@ -20602,7 +20400,7 @@
|
|
|
20602
20400
|
};
|
|
20603
20401
|
const getBackdropProps = (otherHandlers = {}) => {
|
|
20604
20402
|
const externalEventHandlers = otherHandlers;
|
|
20605
|
-
return _extends$
|
|
20403
|
+
return _extends$1({
|
|
20606
20404
|
'aria-hidden': true
|
|
20607
20405
|
}, externalEventHandlers, {
|
|
20608
20406
|
onClick: createHandleBackdropClick(externalEventHandlers),
|
|
@@ -20672,7 +20470,7 @@
|
|
|
20672
20470
|
})(({
|
|
20673
20471
|
theme,
|
|
20674
20472
|
ownerState
|
|
20675
|
-
}) => _extends$
|
|
20473
|
+
}) => _extends$1({
|
|
20676
20474
|
position: 'fixed',
|
|
20677
20475
|
zIndex: (theme.vars || theme).zIndex.modal,
|
|
20678
20476
|
right: 0,
|
|
@@ -20735,8 +20533,8 @@
|
|
|
20735
20533
|
slots
|
|
20736
20534
|
// eslint-disable-next-line react/prop-types
|
|
20737
20535
|
} = props,
|
|
20738
|
-
other = _objectWithoutPropertiesLoose
|
|
20739
|
-
const propsWithDefaults = _extends$
|
|
20536
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$n);
|
|
20537
|
+
const propsWithDefaults = _extends$1({}, props, {
|
|
20740
20538
|
closeAfterTransition,
|
|
20741
20539
|
disableAutoFocus,
|
|
20742
20540
|
disableEnforceFocus,
|
|
@@ -20755,10 +20553,10 @@
|
|
|
20755
20553
|
isTopModal,
|
|
20756
20554
|
exited,
|
|
20757
20555
|
hasTransition
|
|
20758
|
-
} = useModal(_extends$
|
|
20556
|
+
} = useModal(_extends$1({}, propsWithDefaults, {
|
|
20759
20557
|
rootRef: ref
|
|
20760
20558
|
}));
|
|
20761
|
-
const ownerState = _extends$
|
|
20559
|
+
const ownerState = _extends$1({}, propsWithDefaults, {
|
|
20762
20560
|
exited
|
|
20763
20561
|
});
|
|
20764
20562
|
const classes = useUtilityClasses$e(ownerState);
|
|
@@ -20797,7 +20595,7 @@
|
|
|
20797
20595
|
externalSlotProps: backdropSlotProps,
|
|
20798
20596
|
additionalProps: BackdropProps,
|
|
20799
20597
|
getSlotProps: otherHandlers => {
|
|
20800
|
-
return getBackdropProps(_extends$
|
|
20598
|
+
return getBackdropProps(_extends$1({}, otherHandlers, {
|
|
20801
20599
|
onClick: e => {
|
|
20802
20600
|
if (onBackdropClick) {
|
|
20803
20601
|
onBackdropClick(e);
|
|
@@ -20818,8 +20616,8 @@
|
|
|
20818
20616
|
ref: portalRef,
|
|
20819
20617
|
container: container,
|
|
20820
20618
|
disablePortal: disablePortal,
|
|
20821
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsxs(RootSlot, _extends$
|
|
20822
|
-
children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/jsxRuntimeExports.jsx(BackdropSlot, _extends$
|
|
20619
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsxs(RootSlot, _extends$1({}, rootProps, {
|
|
20620
|
+
children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/jsxRuntimeExports.jsx(BackdropSlot, _extends$1({}, backdropProps)) : null, /*#__PURE__*/jsxRuntimeExports.jsx(FocusTrap, {
|
|
20823
20621
|
disableEnforceFocus: disableEnforceFocus,
|
|
20824
20622
|
disableAutoFocus: disableAutoFocus,
|
|
20825
20623
|
disableRestoreFocus: disableRestoreFocus,
|
|
@@ -20866,7 +20664,7 @@
|
|
|
20866
20664
|
})(({
|
|
20867
20665
|
theme,
|
|
20868
20666
|
ownerState
|
|
20869
|
-
}) => _extends$
|
|
20667
|
+
}) => _extends$1({
|
|
20870
20668
|
margin: 0,
|
|
20871
20669
|
// Reset browser default style.
|
|
20872
20670
|
flexShrink: 0,
|
|
@@ -20898,7 +20696,7 @@
|
|
|
20898
20696
|
height: 'auto'
|
|
20899
20697
|
}), ({
|
|
20900
20698
|
ownerState
|
|
20901
|
-
}) => _extends$
|
|
20699
|
+
}) => _extends$1({}, ownerState.children && {
|
|
20902
20700
|
display: 'flex',
|
|
20903
20701
|
whiteSpace: 'nowrap',
|
|
20904
20702
|
textAlign: 'center',
|
|
@@ -20912,7 +20710,7 @@
|
|
|
20912
20710
|
}), ({
|
|
20913
20711
|
theme,
|
|
20914
20712
|
ownerState
|
|
20915
|
-
}) => _extends$
|
|
20713
|
+
}) => _extends$1({}, ownerState.children && ownerState.orientation !== 'vertical' && {
|
|
20916
20714
|
'&::before, &::after': {
|
|
20917
20715
|
width: '100%',
|
|
20918
20716
|
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
@@ -20921,7 +20719,7 @@
|
|
|
20921
20719
|
}), ({
|
|
20922
20720
|
theme,
|
|
20923
20721
|
ownerState
|
|
20924
|
-
}) => _extends$
|
|
20722
|
+
}) => _extends$1({}, ownerState.children && ownerState.orientation === 'vertical' && {
|
|
20925
20723
|
flexDirection: 'column',
|
|
20926
20724
|
'&::before, &::after': {
|
|
20927
20725
|
height: '100%',
|
|
@@ -20930,7 +20728,7 @@
|
|
|
20930
20728
|
}
|
|
20931
20729
|
}), ({
|
|
20932
20730
|
ownerState
|
|
20933
|
-
}) => _extends$
|
|
20731
|
+
}) => _extends$1({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {
|
|
20934
20732
|
'&::before': {
|
|
20935
20733
|
width: '90%'
|
|
20936
20734
|
},
|
|
@@ -20957,7 +20755,7 @@
|
|
|
20957
20755
|
})(({
|
|
20958
20756
|
theme,
|
|
20959
20757
|
ownerState
|
|
20960
|
-
}) => _extends$
|
|
20758
|
+
}) => _extends$1({
|
|
20961
20759
|
display: 'inline-block',
|
|
20962
20760
|
paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,
|
|
20963
20761
|
paddingRight: `calc(${theme.spacing(1)} * 1.2)`
|
|
@@ -20982,8 +20780,8 @@
|
|
|
20982
20780
|
textAlign = 'center',
|
|
20983
20781
|
variant = 'fullWidth'
|
|
20984
20782
|
} = props,
|
|
20985
|
-
other = _objectWithoutPropertiesLoose
|
|
20986
|
-
const ownerState = _extends$
|
|
20783
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$m);
|
|
20784
|
+
const ownerState = _extends$1({}, props, {
|
|
20987
20785
|
absolute,
|
|
20988
20786
|
component,
|
|
20989
20787
|
flexItem,
|
|
@@ -20994,7 +20792,7 @@
|
|
|
20994
20792
|
variant
|
|
20995
20793
|
});
|
|
20996
20794
|
const classes = useUtilityClasses$d(ownerState);
|
|
20997
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(DividerRoot, _extends$
|
|
20795
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(DividerRoot, _extends$1({
|
|
20998
20796
|
as: component,
|
|
20999
20797
|
className: clsx$1(classes.root, className),
|
|
21000
20798
|
role: role,
|
|
@@ -21062,7 +20860,7 @@
|
|
|
21062
20860
|
})(({
|
|
21063
20861
|
theme,
|
|
21064
20862
|
ownerState
|
|
21065
|
-
}) => _extends$
|
|
20863
|
+
}) => _extends$1({
|
|
21066
20864
|
display: 'inline-flex',
|
|
21067
20865
|
alignItems: 'center',
|
|
21068
20866
|
cursor: 'pointer',
|
|
@@ -21126,7 +20924,7 @@
|
|
|
21126
20924
|
required: requiredProp,
|
|
21127
20925
|
slotProps = {}
|
|
21128
20926
|
} = props,
|
|
21129
|
-
other = _objectWithoutPropertiesLoose
|
|
20927
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$l);
|
|
21130
20928
|
const muiFormControl = useFormControl();
|
|
21131
20929
|
const disabled = (_ref = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref : muiFormControl == null ? void 0 : muiFormControl.disabled;
|
|
21132
20930
|
const required = requiredProp != null ? requiredProp : control.props.required;
|
|
@@ -21144,7 +20942,7 @@
|
|
|
21144
20942
|
muiFormControl,
|
|
21145
20943
|
states: ['error']
|
|
21146
20944
|
});
|
|
21147
|
-
const ownerState = _extends$
|
|
20945
|
+
const ownerState = _extends$1({}, props, {
|
|
21148
20946
|
disabled,
|
|
21149
20947
|
labelPlacement,
|
|
21150
20948
|
required,
|
|
@@ -21154,14 +20952,14 @@
|
|
|
21154
20952
|
const typographySlotProps = (_slotProps$typography = slotProps.typography) != null ? _slotProps$typography : componentsProps.typography;
|
|
21155
20953
|
let label = labelProp;
|
|
21156
20954
|
if (label != null && label.type !== Typography && !disableTypography) {
|
|
21157
|
-
label = /*#__PURE__*/jsxRuntimeExports.jsx(Typography, _extends$
|
|
20955
|
+
label = /*#__PURE__*/jsxRuntimeExports.jsx(Typography, _extends$1({
|
|
21158
20956
|
component: "span"
|
|
21159
20957
|
}, typographySlotProps, {
|
|
21160
20958
|
className: clsx$1(classes.label, typographySlotProps == null ? void 0 : typographySlotProps.className),
|
|
21161
20959
|
children: label
|
|
21162
20960
|
}));
|
|
21163
20961
|
}
|
|
21164
|
-
return /*#__PURE__*/jsxRuntimeExports.jsxs(FormControlLabelRoot, _extends$
|
|
20962
|
+
return /*#__PURE__*/jsxRuntimeExports.jsxs(FormControlLabelRoot, _extends$1({
|
|
21165
20963
|
className: clsx$1(classes.root, className),
|
|
21166
20964
|
ownerState: ownerState,
|
|
21167
20965
|
ref: ref
|
|
@@ -21259,7 +21057,7 @@
|
|
|
21259
21057
|
|
|
21260
21058
|
// Close to the bootstrap implementation:
|
|
21261
21059
|
// https://github.com/twbs/bootstrap/blob/8fccaa2439e97ec72a4b7dc42ccc1f649790adb0/scss/mixins/_grid.scss#L41
|
|
21262
|
-
styles = _extends$
|
|
21060
|
+
styles = _extends$1({
|
|
21263
21061
|
flexBasis: width,
|
|
21264
21062
|
flexGrow: 0,
|
|
21265
21063
|
maxWidth: width
|
|
@@ -21476,7 +21274,7 @@
|
|
|
21476
21274
|
}
|
|
21477
21275
|
})(({
|
|
21478
21276
|
ownerState
|
|
21479
|
-
}) => _extends$
|
|
21277
|
+
}) => _extends$1({
|
|
21480
21278
|
boxSizing: 'border-box'
|
|
21481
21279
|
}, ownerState.container && {
|
|
21482
21280
|
display: 'flex',
|
|
@@ -21560,7 +21358,7 @@
|
|
|
21560
21358
|
wrap = 'wrap',
|
|
21561
21359
|
zeroMinWidth = false
|
|
21562
21360
|
} = props,
|
|
21563
|
-
other = _objectWithoutPropertiesLoose
|
|
21361
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$k);
|
|
21564
21362
|
const rowSpacing = rowSpacingProp || spacing;
|
|
21565
21363
|
const columnSpacing = columnSpacingProp || spacing;
|
|
21566
21364
|
const columnsContext = reactExports.useContext(GridContext);
|
|
@@ -21568,14 +21366,14 @@
|
|
|
21568
21366
|
// columns set with default breakpoint unit of 12
|
|
21569
21367
|
const columns = container ? columnsProp || 12 : columnsContext;
|
|
21570
21368
|
const breakpointsValues = {};
|
|
21571
|
-
const otherFiltered = _extends$
|
|
21369
|
+
const otherFiltered = _extends$1({}, other);
|
|
21572
21370
|
breakpoints.keys.forEach(breakpoint => {
|
|
21573
21371
|
if (other[breakpoint] != null) {
|
|
21574
21372
|
breakpointsValues[breakpoint] = other[breakpoint];
|
|
21575
21373
|
delete otherFiltered[breakpoint];
|
|
21576
21374
|
}
|
|
21577
21375
|
});
|
|
21578
|
-
const ownerState = _extends$
|
|
21376
|
+
const ownerState = _extends$1({}, props, {
|
|
21579
21377
|
columns,
|
|
21580
21378
|
container,
|
|
21581
21379
|
direction,
|
|
@@ -21591,7 +21389,7 @@
|
|
|
21591
21389
|
const classes = useUtilityClasses$b(ownerState);
|
|
21592
21390
|
return /*#__PURE__*/jsxRuntimeExports.jsx(GridContext.Provider, {
|
|
21593
21391
|
value: columns,
|
|
21594
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx(GridRoot, _extends$
|
|
21392
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(GridRoot, _extends$1({
|
|
21595
21393
|
ownerState: ownerState,
|
|
21596
21394
|
className: clsx$1(classes.root, className),
|
|
21597
21395
|
as: component,
|
|
@@ -21644,7 +21442,7 @@
|
|
|
21644
21442
|
// eslint-disable-next-line react/prop-types
|
|
21645
21443
|
TransitionComponent = Transition
|
|
21646
21444
|
} = props,
|
|
21647
|
-
other = _objectWithoutPropertiesLoose
|
|
21445
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$j);
|
|
21648
21446
|
const timer = useTimeout();
|
|
21649
21447
|
const autoTimeout = reactExports.useRef();
|
|
21650
21448
|
const theme = useTheme$2();
|
|
@@ -21741,7 +21539,7 @@
|
|
|
21741
21539
|
addEndListener(nodeRef.current, next);
|
|
21742
21540
|
}
|
|
21743
21541
|
};
|
|
21744
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$
|
|
21542
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$1({
|
|
21745
21543
|
appear: appear,
|
|
21746
21544
|
in: inProp,
|
|
21747
21545
|
nodeRef: nodeRef,
|
|
@@ -21755,8 +21553,8 @@
|
|
|
21755
21553
|
timeout: timeout === 'auto' ? null : timeout
|
|
21756
21554
|
}, other, {
|
|
21757
21555
|
children: (state, childProps) => {
|
|
21758
|
-
return /*#__PURE__*/reactExports.cloneElement(children, _extends$
|
|
21759
|
-
style: _extends$
|
|
21556
|
+
return /*#__PURE__*/reactExports.cloneElement(children, _extends$1({
|
|
21557
|
+
style: _extends$1({
|
|
21760
21558
|
opacity: 0,
|
|
21761
21559
|
transform: getScale(0.75),
|
|
21762
21560
|
visibility: state === 'exited' && !inProp ? 'hidden' : undefined
|
|
@@ -21840,15 +21638,15 @@
|
|
|
21840
21638
|
component: Component = 'span',
|
|
21841
21639
|
fontSize = 'medium'
|
|
21842
21640
|
} = props,
|
|
21843
|
-
other = _objectWithoutPropertiesLoose
|
|
21844
|
-
const ownerState = _extends$
|
|
21641
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$i);
|
|
21642
|
+
const ownerState = _extends$1({}, props, {
|
|
21845
21643
|
baseClassName,
|
|
21846
21644
|
color,
|
|
21847
21645
|
component: Component,
|
|
21848
21646
|
fontSize
|
|
21849
21647
|
});
|
|
21850
21648
|
const classes = useUtilityClasses$a(ownerState);
|
|
21851
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(IconRoot, _extends$
|
|
21649
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(IconRoot, _extends$1({
|
|
21852
21650
|
as: Component,
|
|
21853
21651
|
className: clsx$1(baseClassName,
|
|
21854
21652
|
// Prevent the translation of the text content.
|
|
@@ -21895,7 +21693,7 @@
|
|
|
21895
21693
|
})(({
|
|
21896
21694
|
theme,
|
|
21897
21695
|
ownerState
|
|
21898
|
-
}) => _extends$
|
|
21696
|
+
}) => _extends$1({
|
|
21899
21697
|
display: 'flex',
|
|
21900
21698
|
height: '0.01em',
|
|
21901
21699
|
// Fix IE11 flexbox alignment. To remove at some point.
|
|
@@ -21932,14 +21730,14 @@
|
|
|
21932
21730
|
position,
|
|
21933
21731
|
variant: variantProp
|
|
21934
21732
|
} = props,
|
|
21935
|
-
other = _objectWithoutPropertiesLoose
|
|
21733
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$h);
|
|
21936
21734
|
const muiFormControl = useFormControl() || {};
|
|
21937
21735
|
let variant = variantProp;
|
|
21938
21736
|
if (variantProp && muiFormControl.variant) ;
|
|
21939
21737
|
if (muiFormControl && !variant) {
|
|
21940
21738
|
variant = muiFormControl.variant;
|
|
21941
21739
|
}
|
|
21942
|
-
const ownerState = _extends$
|
|
21740
|
+
const ownerState = _extends$1({}, props, {
|
|
21943
21741
|
hiddenLabel: muiFormControl.hiddenLabel,
|
|
21944
21742
|
size: muiFormControl.size,
|
|
21945
21743
|
disablePointerEvents,
|
|
@@ -21949,7 +21747,7 @@
|
|
|
21949
21747
|
const classes = useUtilityClasses$9(ownerState);
|
|
21950
21748
|
return /*#__PURE__*/jsxRuntimeExports.jsx(FormControlContext.Provider, {
|
|
21951
21749
|
value: null,
|
|
21952
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx(InputAdornmentRoot, _extends$
|
|
21750
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(InputAdornmentRoot, _extends$1({
|
|
21953
21751
|
as: component,
|
|
21954
21752
|
ownerState: ownerState,
|
|
21955
21753
|
className: clsx$1(classes.root, className),
|
|
@@ -22002,7 +21800,7 @@
|
|
|
22002
21800
|
}
|
|
22003
21801
|
})(({
|
|
22004
21802
|
ownerState
|
|
22005
|
-
}) => _extends$
|
|
21803
|
+
}) => _extends$1({
|
|
22006
21804
|
listStyle: 'none',
|
|
22007
21805
|
margin: 0,
|
|
22008
21806
|
padding: 0,
|
|
@@ -22026,11 +21824,11 @@
|
|
|
22026
21824
|
disablePadding = false,
|
|
22027
21825
|
subheader
|
|
22028
21826
|
} = props,
|
|
22029
|
-
other = _objectWithoutPropertiesLoose
|
|
21827
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$g);
|
|
22030
21828
|
const context = reactExports.useMemo(() => ({
|
|
22031
21829
|
dense
|
|
22032
21830
|
}), [dense]);
|
|
22033
|
-
const ownerState = _extends$
|
|
21831
|
+
const ownerState = _extends$1({}, props, {
|
|
22034
21832
|
component,
|
|
22035
21833
|
dense,
|
|
22036
21834
|
disablePadding
|
|
@@ -22038,7 +21836,7 @@
|
|
|
22038
21836
|
const classes = useUtilityClasses$8(ownerState);
|
|
22039
21837
|
return /*#__PURE__*/jsxRuntimeExports.jsx(ListContext.Provider, {
|
|
22040
21838
|
value: context,
|
|
22041
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsxs(ListRoot, _extends$
|
|
21839
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsxs(ListRoot, _extends$1({
|
|
22042
21840
|
as: component,
|
|
22043
21841
|
className: clsx$1(classes.root, className),
|
|
22044
21842
|
ref: ref,
|
|
@@ -22083,7 +21881,7 @@
|
|
|
22083
21881
|
}
|
|
22084
21882
|
})(({
|
|
22085
21883
|
ownerState
|
|
22086
|
-
}) => _extends$
|
|
21884
|
+
}) => _extends$1({
|
|
22087
21885
|
position: 'absolute',
|
|
22088
21886
|
right: 16,
|
|
22089
21887
|
top: '50%',
|
|
@@ -22103,13 +21901,13 @@
|
|
|
22103
21901
|
const {
|
|
22104
21902
|
className
|
|
22105
21903
|
} = props,
|
|
22106
|
-
other = _objectWithoutPropertiesLoose
|
|
21904
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
22107
21905
|
const context = reactExports.useContext(ListContext);
|
|
22108
|
-
const ownerState = _extends$
|
|
21906
|
+
const ownerState = _extends$1({}, props, {
|
|
22109
21907
|
disableGutters: context.disableGutters
|
|
22110
21908
|
});
|
|
22111
21909
|
const classes = useUtilityClasses$7(ownerState);
|
|
22112
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(ListItemSecondaryActionRoot, _extends$
|
|
21910
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(ListItemSecondaryActionRoot, _extends$1({
|
|
22113
21911
|
className: clsx$1(classes.root, className),
|
|
22114
21912
|
ownerState: ownerState,
|
|
22115
21913
|
ref: ref
|
|
@@ -22151,7 +21949,7 @@
|
|
|
22151
21949
|
})(({
|
|
22152
21950
|
theme,
|
|
22153
21951
|
ownerState
|
|
22154
|
-
}) => _extends$
|
|
21952
|
+
}) => _extends$1({
|
|
22155
21953
|
display: 'flex',
|
|
22156
21954
|
justifyContent: 'flex-start',
|
|
22157
21955
|
alignItems: 'center',
|
|
@@ -22160,7 +21958,7 @@
|
|
|
22160
21958
|
width: '100%',
|
|
22161
21959
|
boxSizing: 'border-box',
|
|
22162
21960
|
textAlign: 'left'
|
|
22163
|
-
}, !ownerState.disablePadding && _extends$
|
|
21961
|
+
}, !ownerState.disablePadding && _extends$1({
|
|
22164
21962
|
paddingTop: 8,
|
|
22165
21963
|
paddingBottom: 8
|
|
22166
21964
|
}, ownerState.dense && {
|
|
@@ -22259,8 +22057,8 @@
|
|
|
22259
22057
|
slotProps = {},
|
|
22260
22058
|
slots = {}
|
|
22261
22059
|
} = props,
|
|
22262
|
-
ContainerProps = _objectWithoutPropertiesLoose
|
|
22263
|
-
other = _objectWithoutPropertiesLoose
|
|
22060
|
+
ContainerProps = _objectWithoutPropertiesLoose(props.ContainerProps, _excluded$e),
|
|
22061
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$2);
|
|
22264
22062
|
const context = reactExports.useContext(ListContext);
|
|
22265
22063
|
const childContext = reactExports.useMemo(() => ({
|
|
22266
22064
|
dense: dense || context.dense || false,
|
|
@@ -22279,7 +22077,7 @@
|
|
|
22279
22077
|
|
|
22280
22078
|
// v4 implementation, deprecated in v5, will be removed in v6
|
|
22281
22079
|
const hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);
|
|
22282
|
-
const ownerState = _extends$
|
|
22080
|
+
const ownerState = _extends$1({}, props, {
|
|
22283
22081
|
alignItems,
|
|
22284
22082
|
autoFocus,
|
|
22285
22083
|
button,
|
|
@@ -22295,7 +22093,7 @@
|
|
|
22295
22093
|
const handleRef = useForkRef(listItemRef, ref);
|
|
22296
22094
|
const Root = slots.root || components.Root || ListItemRoot;
|
|
22297
22095
|
const rootProps = slotProps.root || componentsProps.root || {};
|
|
22298
|
-
const componentProps = _extends$
|
|
22096
|
+
const componentProps = _extends$1({
|
|
22299
22097
|
className: clsx$1(classes.root, rootProps.className, className),
|
|
22300
22098
|
disabled
|
|
22301
22099
|
}, other);
|
|
@@ -22321,15 +22119,15 @@
|
|
|
22321
22119
|
}
|
|
22322
22120
|
return /*#__PURE__*/jsxRuntimeExports.jsx(ListContext.Provider, {
|
|
22323
22121
|
value: childContext,
|
|
22324
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsxs(ListItemContainer, _extends$
|
|
22122
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsxs(ListItemContainer, _extends$1({
|
|
22325
22123
|
as: ContainerComponent,
|
|
22326
22124
|
className: clsx$1(classes.container, ContainerClassName),
|
|
22327
22125
|
ref: handleRef,
|
|
22328
22126
|
ownerState: ownerState
|
|
22329
22127
|
}, ContainerProps, {
|
|
22330
|
-
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Root, _extends$
|
|
22128
|
+
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Root, _extends$1({}, rootProps, !isHostComponent(Root) && {
|
|
22331
22129
|
as: Component,
|
|
22332
|
-
ownerState: _extends$
|
|
22130
|
+
ownerState: _extends$1({}, ownerState, rootProps.ownerState)
|
|
22333
22131
|
}, componentProps, {
|
|
22334
22132
|
children: children
|
|
22335
22133
|
})), children.pop()]
|
|
@@ -22338,11 +22136,11 @@
|
|
|
22338
22136
|
}
|
|
22339
22137
|
return /*#__PURE__*/jsxRuntimeExports.jsx(ListContext.Provider, {
|
|
22340
22138
|
value: childContext,
|
|
22341
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsxs(Root, _extends$
|
|
22139
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsxs(Root, _extends$1({}, rootProps, {
|
|
22342
22140
|
as: Component,
|
|
22343
22141
|
ref: handleRef
|
|
22344
22142
|
}, !isHostComponent(Root) && {
|
|
22345
|
-
ownerState: _extends$
|
|
22143
|
+
ownerState: _extends$1({}, ownerState, rootProps.ownerState)
|
|
22346
22144
|
}, componentProps, {
|
|
22347
22145
|
children: [children, secondaryAction && /*#__PURE__*/jsxRuntimeExports.jsx(ListItemSecondaryAction, {
|
|
22348
22146
|
children: secondaryAction
|
|
@@ -22379,7 +22177,7 @@
|
|
|
22379
22177
|
})(({
|
|
22380
22178
|
theme,
|
|
22381
22179
|
ownerState
|
|
22382
|
-
}) => _extends$
|
|
22180
|
+
}) => _extends$1({
|
|
22383
22181
|
minWidth: 56,
|
|
22384
22182
|
color: (theme.vars || theme).palette.action.active,
|
|
22385
22183
|
flexShrink: 0,
|
|
@@ -22399,13 +22197,13 @@
|
|
|
22399
22197
|
const {
|
|
22400
22198
|
className
|
|
22401
22199
|
} = props,
|
|
22402
|
-
other = _objectWithoutPropertiesLoose
|
|
22200
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$d);
|
|
22403
22201
|
const context = reactExports.useContext(ListContext);
|
|
22404
|
-
const ownerState = _extends$
|
|
22202
|
+
const ownerState = _extends$1({}, props, {
|
|
22405
22203
|
alignItems: context.alignItems
|
|
22406
22204
|
});
|
|
22407
22205
|
const classes = useUtilityClasses$5(ownerState);
|
|
22408
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(ListItemIconRoot, _extends$
|
|
22206
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(ListItemIconRoot, _extends$1({
|
|
22409
22207
|
className: clsx$1(classes.root, className),
|
|
22410
22208
|
ownerState: ownerState,
|
|
22411
22209
|
ref: ref
|
|
@@ -22496,7 +22294,7 @@
|
|
|
22496
22294
|
onKeyDown,
|
|
22497
22295
|
variant = 'selectedMenu'
|
|
22498
22296
|
} = props,
|
|
22499
|
-
other = _objectWithoutPropertiesLoose
|
|
22297
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$c);
|
|
22500
22298
|
const listRef = reactExports.useRef(null);
|
|
22501
22299
|
const textCriteriaRef = reactExports.useRef({
|
|
22502
22300
|
keys: [],
|
|
@@ -22624,7 +22422,7 @@
|
|
|
22624
22422
|
}
|
|
22625
22423
|
return child;
|
|
22626
22424
|
});
|
|
22627
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(List, _extends$
|
|
22425
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(List, _extends$1({
|
|
22628
22426
|
role: "menu",
|
|
22629
22427
|
ref: handleRef,
|
|
22630
22428
|
className: className,
|
|
@@ -22738,12 +22536,12 @@
|
|
|
22738
22536
|
} = {},
|
|
22739
22537
|
disableScrollLock = false
|
|
22740
22538
|
} = props,
|
|
22741
|
-
TransitionProps = _objectWithoutPropertiesLoose
|
|
22742
|
-
other = _objectWithoutPropertiesLoose
|
|
22539
|
+
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$b),
|
|
22540
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$1);
|
|
22743
22541
|
const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
|
|
22744
22542
|
const paperRef = reactExports.useRef();
|
|
22745
22543
|
const handlePaperRef = useForkRef(paperRef, externalPaperSlotProps.ref);
|
|
22746
|
-
const ownerState = _extends$
|
|
22544
|
+
const ownerState = _extends$1({}, props, {
|
|
22747
22545
|
anchorOrigin,
|
|
22748
22546
|
anchorReference,
|
|
22749
22547
|
elevation,
|
|
@@ -22907,8 +22705,8 @@
|
|
|
22907
22705
|
const PaperSlot = (_slots$paper = slots == null ? void 0 : slots.paper) != null ? _slots$paper : PopoverPaper;
|
|
22908
22706
|
const paperProps = useSlotProps({
|
|
22909
22707
|
elementType: PaperSlot,
|
|
22910
|
-
externalSlotProps: _extends$
|
|
22911
|
-
style: isPositioned ? externalPaperSlotProps.style : _extends$
|
|
22708
|
+
externalSlotProps: _extends$1({}, externalPaperSlotProps, {
|
|
22709
|
+
style: isPositioned ? externalPaperSlotProps.style : _extends$1({}, externalPaperSlotProps.style, {
|
|
22912
22710
|
opacity: 0
|
|
22913
22711
|
})
|
|
22914
22712
|
}),
|
|
@@ -22939,19 +22737,19 @@
|
|
|
22939
22737
|
{
|
|
22940
22738
|
slotProps: rootSlotPropsProp
|
|
22941
22739
|
} = _useSlotProps,
|
|
22942
|
-
rootProps = _objectWithoutPropertiesLoose
|
|
22943
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(RootSlot, _extends$
|
|
22740
|
+
rootProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded3);
|
|
22741
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(RootSlot, _extends$1({}, rootProps, !isHostComponent(RootSlot) && {
|
|
22944
22742
|
slotProps: rootSlotPropsProp,
|
|
22945
22743
|
disableScrollLock
|
|
22946
22744
|
}, {
|
|
22947
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$
|
|
22745
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$1({
|
|
22948
22746
|
appear: true,
|
|
22949
22747
|
in: open,
|
|
22950
22748
|
onEntering: handleEntering,
|
|
22951
22749
|
onExited: handleExited,
|
|
22952
22750
|
timeout: transitionDuration
|
|
22953
22751
|
}, TransitionProps, {
|
|
22954
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx(PaperSlot, _extends$
|
|
22752
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(PaperSlot, _extends$1({}, paperProps, {
|
|
22955
22753
|
children: children
|
|
22956
22754
|
}))
|
|
22957
22755
|
}))
|
|
@@ -22983,7 +22781,7 @@
|
|
|
22983
22781
|
root: ['root', dense && 'dense', disabled && 'disabled', !disableGutters && 'gutters', divider && 'divider', selected && 'selected']
|
|
22984
22782
|
};
|
|
22985
22783
|
const composedClasses = composeClasses(slots, getMenuItemUtilityClass, classes);
|
|
22986
|
-
return _extends$
|
|
22784
|
+
return _extends$1({}, classes, composedClasses);
|
|
22987
22785
|
};
|
|
22988
22786
|
const MenuItemRoot = styled(ButtonBase, {
|
|
22989
22787
|
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
@@ -22993,7 +22791,7 @@
|
|
|
22993
22791
|
})(({
|
|
22994
22792
|
theme,
|
|
22995
22793
|
ownerState
|
|
22996
|
-
}) => _extends$
|
|
22794
|
+
}) => _extends$1({}, theme.typography.body1, {
|
|
22997
22795
|
display: 'flex',
|
|
22998
22796
|
justifyContent: 'flex-start',
|
|
22999
22797
|
alignItems: 'center',
|
|
@@ -23059,7 +22857,7 @@
|
|
|
23059
22857
|
[theme.breakpoints.up('sm')]: {
|
|
23060
22858
|
minHeight: 'auto'
|
|
23061
22859
|
}
|
|
23062
|
-
}, ownerState.dense && _extends$
|
|
22860
|
+
}, ownerState.dense && _extends$1({
|
|
23063
22861
|
minHeight: 32,
|
|
23064
22862
|
// https://m2.material.io/components/menus#specs > Dense
|
|
23065
22863
|
paddingTop: 4,
|
|
@@ -23085,7 +22883,7 @@
|
|
|
23085
22883
|
tabIndex: tabIndexProp,
|
|
23086
22884
|
className
|
|
23087
22885
|
} = props,
|
|
23088
|
-
other = _objectWithoutPropertiesLoose
|
|
22886
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$a);
|
|
23089
22887
|
const context = reactExports.useContext(ListContext);
|
|
23090
22888
|
const childContext = reactExports.useMemo(() => ({
|
|
23091
22889
|
dense: dense || context.dense || false,
|
|
@@ -23099,7 +22897,7 @@
|
|
|
23099
22897
|
}
|
|
23100
22898
|
}
|
|
23101
22899
|
}, [autoFocus]);
|
|
23102
|
-
const ownerState = _extends$
|
|
22900
|
+
const ownerState = _extends$1({}, props, {
|
|
23103
22901
|
dense: childContext.dense,
|
|
23104
22902
|
divider,
|
|
23105
22903
|
disableGutters
|
|
@@ -23112,7 +22910,7 @@
|
|
|
23112
22910
|
}
|
|
23113
22911
|
return /*#__PURE__*/jsxRuntimeExports.jsx(ListContext.Provider, {
|
|
23114
22912
|
value: childContext,
|
|
23115
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx(MenuItemRoot, _extends$
|
|
22913
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsx(MenuItemRoot, _extends$1({
|
|
23116
22914
|
ref: handleRef,
|
|
23117
22915
|
role: role,
|
|
23118
22916
|
tabIndex: tabIndex,
|
|
@@ -23151,7 +22949,7 @@
|
|
|
23151
22949
|
})(({
|
|
23152
22950
|
ownerState,
|
|
23153
22951
|
theme
|
|
23154
|
-
}) => _extends$
|
|
22952
|
+
}) => _extends$1({
|
|
23155
22953
|
float: 'unset',
|
|
23156
22954
|
// Fix conflict with bootstrap
|
|
23157
22955
|
width: 'auto',
|
|
@@ -23165,7 +22963,7 @@
|
|
|
23165
22963
|
duration: 150,
|
|
23166
22964
|
easing: theme.transitions.easing.easeOut
|
|
23167
22965
|
})
|
|
23168
|
-
}, ownerState.withLabel && _extends$
|
|
22966
|
+
}, ownerState.withLabel && _extends$1({
|
|
23169
22967
|
display: 'block',
|
|
23170
22968
|
// Fix conflict with normalize.css and sanitize.css
|
|
23171
22969
|
padding: 0,
|
|
@@ -23204,13 +23002,13 @@
|
|
|
23204
23002
|
label,
|
|
23205
23003
|
notched
|
|
23206
23004
|
} = props,
|
|
23207
|
-
other = _objectWithoutPropertiesLoose
|
|
23005
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
|
23208
23006
|
const withLabel = label != null && label !== '';
|
|
23209
|
-
const ownerState = _extends$
|
|
23007
|
+
const ownerState = _extends$1({}, props, {
|
|
23210
23008
|
notched,
|
|
23211
23009
|
withLabel
|
|
23212
23010
|
});
|
|
23213
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(NotchedOutlineRoot$1, _extends$
|
|
23011
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(NotchedOutlineRoot$1, _extends$1({
|
|
23214
23012
|
"aria-hidden": true,
|
|
23215
23013
|
className: className,
|
|
23216
23014
|
ownerState: ownerState
|
|
@@ -23239,7 +23037,7 @@
|
|
|
23239
23037
|
input: ['input']
|
|
23240
23038
|
};
|
|
23241
23039
|
const composedClasses = composeClasses(slots, getOutlinedInputUtilityClass, classes);
|
|
23242
|
-
return _extends$
|
|
23040
|
+
return _extends$1({}, classes, composedClasses);
|
|
23243
23041
|
};
|
|
23244
23042
|
const OutlinedInputRoot = styled(InputBaseRoot, {
|
|
23245
23043
|
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
@@ -23251,7 +23049,7 @@
|
|
|
23251
23049
|
ownerState
|
|
23252
23050
|
}) => {
|
|
23253
23051
|
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
|
23254
|
-
return _extends$
|
|
23052
|
+
return _extends$1({
|
|
23255
23053
|
position: 'relative',
|
|
23256
23054
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
23257
23055
|
[`&:hover .${outlinedInputClasses.notchedOutline}`]: {
|
|
@@ -23277,7 +23075,7 @@
|
|
|
23277
23075
|
paddingLeft: 14
|
|
23278
23076
|
}, ownerState.endAdornment && {
|
|
23279
23077
|
paddingRight: 14
|
|
23280
|
-
}, ownerState.multiline && _extends$
|
|
23078
|
+
}, ownerState.multiline && _extends$1({
|
|
23281
23079
|
padding: '16.5px 14px'
|
|
23282
23080
|
}, ownerState.size === 'small' && {
|
|
23283
23081
|
padding: '8.5px 14px'
|
|
@@ -23302,7 +23100,7 @@
|
|
|
23302
23100
|
})(({
|
|
23303
23101
|
theme,
|
|
23304
23102
|
ownerState
|
|
23305
|
-
}) => _extends$
|
|
23103
|
+
}) => _extends$1({
|
|
23306
23104
|
padding: '16.5px 14px'
|
|
23307
23105
|
}, !theme.vars && {
|
|
23308
23106
|
'&:-webkit-autofill': {
|
|
@@ -23347,7 +23145,7 @@
|
|
|
23347
23145
|
slots = {},
|
|
23348
23146
|
type = 'text'
|
|
23349
23147
|
} = props,
|
|
23350
|
-
other = _objectWithoutPropertiesLoose
|
|
23148
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
23351
23149
|
const classes = useUtilityClasses$2(props);
|
|
23352
23150
|
const muiFormControl = useFormControl();
|
|
23353
23151
|
const fcs = formControlState({
|
|
@@ -23355,7 +23153,7 @@
|
|
|
23355
23153
|
muiFormControl,
|
|
23356
23154
|
states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']
|
|
23357
23155
|
});
|
|
23358
|
-
const ownerState = _extends$
|
|
23156
|
+
const ownerState = _extends$1({}, props, {
|
|
23359
23157
|
color: fcs.color || 'primary',
|
|
23360
23158
|
disabled: fcs.disabled,
|
|
23361
23159
|
error: fcs.error,
|
|
@@ -23369,7 +23167,7 @@
|
|
|
23369
23167
|
});
|
|
23370
23168
|
const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : OutlinedInputRoot;
|
|
23371
23169
|
const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : OutlinedInputInput;
|
|
23372
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(InputBase, _extends$
|
|
23170
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(InputBase, _extends$1({
|
|
23373
23171
|
slots: {
|
|
23374
23172
|
root: RootSlot,
|
|
23375
23173
|
input: InputSlot
|
|
@@ -23388,7 +23186,7 @@
|
|
|
23388
23186
|
ref: ref,
|
|
23389
23187
|
type: type
|
|
23390
23188
|
}, other, {
|
|
23391
|
-
classes: _extends$
|
|
23189
|
+
classes: _extends$1({}, classes, {
|
|
23392
23190
|
notchedOutline: null
|
|
23393
23191
|
})
|
|
23394
23192
|
}));
|
|
@@ -23416,7 +23214,7 @@
|
|
|
23416
23214
|
const RadioButtonIconDot = styled(RadioButtonCheckedIcon)(({
|
|
23417
23215
|
theme,
|
|
23418
23216
|
ownerState
|
|
23419
|
-
}) => _extends$
|
|
23217
|
+
}) => _extends$1({
|
|
23420
23218
|
left: 0,
|
|
23421
23219
|
position: 'absolute',
|
|
23422
23220
|
transform: 'scale(0)',
|
|
@@ -23441,7 +23239,7 @@
|
|
|
23441
23239
|
classes = {},
|
|
23442
23240
|
fontSize
|
|
23443
23241
|
} = props;
|
|
23444
|
-
const ownerState = _extends$
|
|
23242
|
+
const ownerState = _extends$1({}, props, {
|
|
23445
23243
|
checked
|
|
23446
23244
|
});
|
|
23447
23245
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(RadioButtonIconRoot, {
|
|
@@ -23483,7 +23281,7 @@
|
|
|
23483
23281
|
const slots = {
|
|
23484
23282
|
root: ['root', `color${capitalize$1(color)}`, size !== 'medium' && `size${capitalize$1(size)}`]
|
|
23485
23283
|
};
|
|
23486
|
-
return _extends$
|
|
23284
|
+
return _extends$1({}, classes, composeClasses(slots, getRadioUtilityClass, classes));
|
|
23487
23285
|
};
|
|
23488
23286
|
const RadioRoot = styled(SwitchBase, {
|
|
23489
23287
|
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
@@ -23498,7 +23296,7 @@
|
|
|
23498
23296
|
})(({
|
|
23499
23297
|
theme,
|
|
23500
23298
|
ownerState
|
|
23501
|
-
}) => _extends$
|
|
23299
|
+
}) => _extends$1({
|
|
23502
23300
|
color: (theme.vars || theme).palette.text.secondary
|
|
23503
23301
|
}, !ownerState.disableRipple && {
|
|
23504
23302
|
'&:hover': {
|
|
@@ -23545,8 +23343,8 @@
|
|
|
23545
23343
|
size = 'medium',
|
|
23546
23344
|
className
|
|
23547
23345
|
} = props,
|
|
23548
|
-
other = _objectWithoutPropertiesLoose
|
|
23549
|
-
const ownerState = _extends$
|
|
23346
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
23347
|
+
const ownerState = _extends$1({}, props, {
|
|
23550
23348
|
color,
|
|
23551
23349
|
size
|
|
23552
23350
|
});
|
|
@@ -23563,7 +23361,7 @@
|
|
|
23563
23361
|
name = radioGroup.name;
|
|
23564
23362
|
}
|
|
23565
23363
|
}
|
|
23566
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(RadioRoot, _extends$
|
|
23364
|
+
return /*#__PURE__*/jsxRuntimeExports.jsx(RadioRoot, _extends$1({
|
|
23567
23365
|
type: "radio",
|
|
23568
23366
|
icon: /*#__PURE__*/reactExports.cloneElement(icon, {
|
|
23569
23367
|
fontSize: (_defaultIcon$props$fo = defaultIcon.props.fontSize) != null ? _defaultIcon$props$fo : size
|
|
@@ -23618,7 +23416,7 @@
|
|
|
23618
23416
|
theme,
|
|
23619
23417
|
ownerState,
|
|
23620
23418
|
open
|
|
23621
|
-
}) => _extends$
|
|
23419
|
+
}) => _extends$1({
|
|
23622
23420
|
zIndex: (theme.vars || theme).zIndex.tooltip,
|
|
23623
23421
|
pointerEvents: 'none'
|
|
23624
23422
|
}, !ownerState.disableInteractive && {
|
|
@@ -23640,7 +23438,7 @@
|
|
|
23640
23438
|
transformOrigin: '100% 0'
|
|
23641
23439
|
}
|
|
23642
23440
|
},
|
|
23643
|
-
[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]: _extends$
|
|
23441
|
+
[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]: _extends$1({}, !ownerState.isRtl ? {
|
|
23644
23442
|
left: 0,
|
|
23645
23443
|
marginLeft: '-0.71em'
|
|
23646
23444
|
} : {
|
|
@@ -23653,7 +23451,7 @@
|
|
|
23653
23451
|
transformOrigin: '100% 100%'
|
|
23654
23452
|
}
|
|
23655
23453
|
}),
|
|
23656
|
-
[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]: _extends$
|
|
23454
|
+
[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]: _extends$1({}, !ownerState.isRtl ? {
|
|
23657
23455
|
right: 0,
|
|
23658
23456
|
marginRight: '-0.71em'
|
|
23659
23457
|
} : {
|
|
@@ -23679,7 +23477,7 @@
|
|
|
23679
23477
|
})(({
|
|
23680
23478
|
theme,
|
|
23681
23479
|
ownerState
|
|
23682
|
-
}) => _extends$
|
|
23480
|
+
}) => _extends$1({
|
|
23683
23481
|
backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : colorManipulatorExports.alpha(theme.palette.grey[700], 0.92),
|
|
23684
23482
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
23685
23483
|
color: (theme.vars || theme).palette.common.white,
|
|
@@ -23699,35 +23497,35 @@
|
|
|
23699
23497
|
lineHeight: `${round(16 / 14)}em`,
|
|
23700
23498
|
fontWeight: theme.typography.fontWeightRegular
|
|
23701
23499
|
}, {
|
|
23702
|
-
[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]: _extends$
|
|
23500
|
+
[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]: _extends$1({
|
|
23703
23501
|
transformOrigin: 'right center'
|
|
23704
|
-
}, !ownerState.isRtl ? _extends$
|
|
23502
|
+
}, !ownerState.isRtl ? _extends$1({
|
|
23705
23503
|
marginRight: '14px'
|
|
23706
23504
|
}, ownerState.touch && {
|
|
23707
23505
|
marginRight: '24px'
|
|
23708
|
-
}) : _extends$
|
|
23506
|
+
}) : _extends$1({
|
|
23709
23507
|
marginLeft: '14px'
|
|
23710
23508
|
}, ownerState.touch && {
|
|
23711
23509
|
marginLeft: '24px'
|
|
23712
23510
|
})),
|
|
23713
|
-
[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]: _extends$
|
|
23511
|
+
[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]: _extends$1({
|
|
23714
23512
|
transformOrigin: 'left center'
|
|
23715
|
-
}, !ownerState.isRtl ? _extends$
|
|
23513
|
+
}, !ownerState.isRtl ? _extends$1({
|
|
23716
23514
|
marginLeft: '14px'
|
|
23717
23515
|
}, ownerState.touch && {
|
|
23718
23516
|
marginLeft: '24px'
|
|
23719
|
-
}) : _extends$
|
|
23517
|
+
}) : _extends$1({
|
|
23720
23518
|
marginRight: '14px'
|
|
23721
23519
|
}, ownerState.touch && {
|
|
23722
23520
|
marginRight: '24px'
|
|
23723
23521
|
})),
|
|
23724
|
-
[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]: _extends$
|
|
23522
|
+
[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]: _extends$1({
|
|
23725
23523
|
transformOrigin: 'center bottom',
|
|
23726
23524
|
marginBottom: '14px'
|
|
23727
23525
|
}, ownerState.touch && {
|
|
23728
23526
|
marginBottom: '24px'
|
|
23729
23527
|
}),
|
|
23730
|
-
[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]: _extends$
|
|
23528
|
+
[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]: _extends$1({
|
|
23731
23529
|
transformOrigin: 'center top',
|
|
23732
23530
|
marginTop: '14px'
|
|
23733
23531
|
}, ownerState.touch && {
|
|
@@ -23808,7 +23606,7 @@
|
|
|
23808
23606
|
TransitionComponent: TransitionComponentProp = Grow,
|
|
23809
23607
|
TransitionProps
|
|
23810
23608
|
} = props,
|
|
23811
|
-
other = _objectWithoutPropertiesLoose
|
|
23609
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
|
23812
23610
|
|
|
23813
23611
|
// to prevent runtime errors, developers will need to provide a child as a React element anyway.
|
|
23814
23612
|
const children = /*#__PURE__*/reactExports.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
@@ -24003,7 +23801,7 @@
|
|
|
24003
23801
|
nameOrDescProps['aria-label'] = titleIsString ? title : null;
|
|
24004
23802
|
nameOrDescProps['aria-labelledby'] = open && !titleIsString ? id : null;
|
|
24005
23803
|
}
|
|
24006
|
-
const childrenProps = _extends$
|
|
23804
|
+
const childrenProps = _extends$1({}, nameOrDescProps, other, children.props, {
|
|
24007
23805
|
className: clsx$1(other.className, children.props.className),
|
|
24008
23806
|
onTouchStart: detectTouchStart,
|
|
24009
23807
|
ref: handleRef
|
|
@@ -24044,11 +23842,11 @@
|
|
|
24044
23842
|
if ((_PopperProps$popperOp = PopperProps.popperOptions) != null && _PopperProps$popperOp.modifiers) {
|
|
24045
23843
|
tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);
|
|
24046
23844
|
}
|
|
24047
|
-
return _extends$
|
|
23845
|
+
return _extends$1({}, PopperProps.popperOptions, {
|
|
24048
23846
|
modifiers: tooltipModifiers
|
|
24049
23847
|
});
|
|
24050
23848
|
}, [arrowRef, PopperProps]);
|
|
24051
|
-
const ownerState = _extends$
|
|
23849
|
+
const ownerState = _extends$1({}, props, {
|
|
24052
23850
|
isRtl,
|
|
24053
23851
|
arrow,
|
|
24054
23852
|
disableInteractive,
|
|
@@ -24061,18 +23859,18 @@
|
|
|
24061
23859
|
const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow;
|
|
24062
23860
|
const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;
|
|
24063
23861
|
const ArrowComponent = (_ref5 = (_slots$arrow = slots.arrow) != null ? _slots$arrow : components.Arrow) != null ? _ref5 : TooltipArrow;
|
|
24064
|
-
const popperProps = appendOwnerState(PopperComponent, _extends$
|
|
23862
|
+
const popperProps = appendOwnerState(PopperComponent, _extends$1({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {
|
|
24065
23863
|
className: clsx$1(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_ref6 = (_slotProps$popper2 = slotProps.popper) != null ? _slotProps$popper2 : componentsProps.popper) == null ? void 0 : _ref6.className)
|
|
24066
23864
|
}), ownerState);
|
|
24067
|
-
const transitionProps = appendOwnerState(TransitionComponent, _extends$
|
|
24068
|
-
const tooltipProps = appendOwnerState(TooltipComponent, _extends$
|
|
23865
|
+
const transitionProps = appendOwnerState(TransitionComponent, _extends$1({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);
|
|
23866
|
+
const tooltipProps = appendOwnerState(TooltipComponent, _extends$1({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {
|
|
24069
23867
|
className: clsx$1(classes.tooltip, (_ref7 = (_slotProps$tooltip2 = slotProps.tooltip) != null ? _slotProps$tooltip2 : componentsProps.tooltip) == null ? void 0 : _ref7.className)
|
|
24070
23868
|
}), ownerState);
|
|
24071
|
-
const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends$
|
|
23869
|
+
const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends$1({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {
|
|
24072
23870
|
className: clsx$1(classes.arrow, (_ref8 = (_slotProps$arrow2 = slotProps.arrow) != null ? _slotProps$arrow2 : componentsProps.arrow) == null ? void 0 : _ref8.className)
|
|
24073
23871
|
}), ownerState);
|
|
24074
23872
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(reactExports.Fragment, {
|
|
24075
|
-
children: [/*#__PURE__*/reactExports.cloneElement(children, childrenProps), /*#__PURE__*/jsxRuntimeExports.jsx(PopperComponent, _extends$
|
|
23873
|
+
children: [/*#__PURE__*/reactExports.cloneElement(children, childrenProps), /*#__PURE__*/jsxRuntimeExports.jsx(PopperComponent, _extends$1({
|
|
24076
23874
|
as: PopperComponentProp != null ? PopperComponentProp : Popper,
|
|
24077
23875
|
placement: placement,
|
|
24078
23876
|
anchorEl: followCursor ? {
|
|
@@ -24093,11 +23891,11 @@
|
|
|
24093
23891
|
popperOptions: popperOptions,
|
|
24094
23892
|
children: ({
|
|
24095
23893
|
TransitionProps: TransitionPropsInner
|
|
24096
|
-
}) => /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$
|
|
23894
|
+
}) => /*#__PURE__*/jsxRuntimeExports.jsx(TransitionComponent, _extends$1({
|
|
24097
23895
|
timeout: theme.transitions.duration.shorter
|
|
24098
23896
|
}, TransitionPropsInner, transitionProps, {
|
|
24099
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsxs(TooltipComponent, _extends$
|
|
24100
|
-
children: [title, arrow ? /*#__PURE__*/jsxRuntimeExports.jsx(ArrowComponent, _extends$
|
|
23897
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsxs(TooltipComponent, _extends$1({}, tooltipProps, {
|
|
23898
|
+
children: [title, arrow ? /*#__PURE__*/jsxRuntimeExports.jsx(ArrowComponent, _extends$1({}, tooltipArrowProps, {
|
|
24101
23899
|
ref: setArrowRef
|
|
24102
23900
|
})) : null]
|
|
24103
23901
|
}))
|
|
@@ -24328,7 +24126,23 @@
|
|
|
24328
24126
|
}
|
|
24329
24127
|
|
|
24330
24128
|
function useLayout$1(model) {
|
|
24331
|
-
|
|
24129
|
+
const [layout, {
|
|
24130
|
+
validating,
|
|
24131
|
+
canCancel,
|
|
24132
|
+
canRetry
|
|
24133
|
+
}, longrunning] = useRpc(model, 'getLayout');
|
|
24134
|
+
if (model !== null && model !== void 0 && model.pureLayout) {
|
|
24135
|
+
return [model.pureLayout, {
|
|
24136
|
+
validating,
|
|
24137
|
+
canCancel,
|
|
24138
|
+
canRetry
|
|
24139
|
+
}, longrunning];
|
|
24140
|
+
}
|
|
24141
|
+
return [layout, {
|
|
24142
|
+
validating,
|
|
24143
|
+
canCancel,
|
|
24144
|
+
canRetry
|
|
24145
|
+
}, longrunning];
|
|
24332
24146
|
}
|
|
24333
24147
|
function useAppLayout$1(model) {
|
|
24334
24148
|
return useRpc(model, 'getAppLayout');
|
|
@@ -24423,7 +24237,7 @@
|
|
|
24423
24237
|
return (
|
|
24424
24238
|
/*#__PURE__*/
|
|
24425
24239
|
// eslint-disable-next-line react/no-array-index-key
|
|
24426
|
-
React.createElement(Type, _extends$
|
|
24240
|
+
React.createElement(Type, _extends$2({
|
|
24427
24241
|
key: ix
|
|
24428
24242
|
}, attrs))
|
|
24429
24243
|
);
|
|
@@ -27303,7 +27117,7 @@
|
|
|
27303
27117
|
className: className,
|
|
27304
27118
|
onScroll: this._onScroll,
|
|
27305
27119
|
ref: this._outerRefSetter,
|
|
27306
|
-
style: _extends({
|
|
27120
|
+
style: _extends$1({
|
|
27307
27121
|
position: 'relative',
|
|
27308
27122
|
height: height,
|
|
27309
27123
|
width: width,
|
|
@@ -27802,7 +27616,7 @@
|
|
|
27802
27616
|
className: className,
|
|
27803
27617
|
onScroll: onScroll,
|
|
27804
27618
|
ref: this._outerRefSetter,
|
|
27805
|
-
style: _extends({
|
|
27619
|
+
style: _extends$1({
|
|
27806
27620
|
position: 'relative',
|
|
27807
27621
|
height: height,
|
|
27808
27622
|
width: width,
|
|
@@ -28357,7 +28171,7 @@
|
|
|
28357
28171
|
local.current.listRef = ref;
|
|
28358
28172
|
return /*#__PURE__*/React.createElement(StyledFixedSizeList
|
|
28359
28173
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
28360
|
-
, _extends$
|
|
28174
|
+
, _extends$2({}, commonComponentOptions, {
|
|
28361
28175
|
dataTestid: "fixed-size-list",
|
|
28362
28176
|
scrollDisabled: constraints === null || constraints === void 0 ? void 0 : constraints.active,
|
|
28363
28177
|
height: listHeight,
|
|
@@ -28434,7 +28248,7 @@
|
|
|
28434
28248
|
};
|
|
28435
28249
|
return /*#__PURE__*/React.createElement(StyledFixedSizeGrid
|
|
28436
28250
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
28437
|
-
, _extends$
|
|
28251
|
+
, _extends$2({}, commonComponentOptions, {
|
|
28438
28252
|
dataTestid: "fixed-size-grid",
|
|
28439
28253
|
scrollDisabled: constraints === null || constraints === void 0 ? void 0 : constraints.active,
|
|
28440
28254
|
height: gridHeight,
|
|
@@ -28827,7 +28641,8 @@
|
|
|
28827
28641
|
return _objectSpread2({
|
|
28828
28642
|
minWidth: "".concat(width, "px"),
|
|
28829
28643
|
textAlign: 'center',
|
|
28830
|
-
fontSize: "".concat(dense ? '12px' : '14px')
|
|
28644
|
+
fontSize: "".concat(dense ? '12px' : '14px'),
|
|
28645
|
+
whiteSpace: 'normal'
|
|
28831
28646
|
}, dense && {
|
|
28832
28647
|
textOverflow: 'ellipsis',
|
|
28833
28648
|
overflow: 'hidden',
|
|
@@ -28858,24 +28673,6 @@
|
|
|
28858
28673
|
|
|
28859
28674
|
var Close$1 = {};
|
|
28860
28675
|
|
|
28861
|
-
var interopRequireDefault = {exports: {}};
|
|
28862
|
-
|
|
28863
|
-
var hasRequiredInteropRequireDefault;
|
|
28864
|
-
|
|
28865
|
-
function requireInteropRequireDefault () {
|
|
28866
|
-
if (hasRequiredInteropRequireDefault) return interopRequireDefault.exports;
|
|
28867
|
-
hasRequiredInteropRequireDefault = 1;
|
|
28868
|
-
(function (module) {
|
|
28869
|
-
function _interopRequireDefault(obj) {
|
|
28870
|
-
return obj && obj.__esModule ? obj : {
|
|
28871
|
-
"default": obj
|
|
28872
|
-
};
|
|
28873
|
-
}
|
|
28874
|
-
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
28875
|
-
} (interopRequireDefault));
|
|
28876
|
-
return interopRequireDefault.exports;
|
|
28877
|
-
}
|
|
28878
|
-
|
|
28879
28676
|
var createSvgIcon = {};
|
|
28880
28677
|
|
|
28881
28678
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(utils$1);
|
|
@@ -29837,7 +29634,7 @@
|
|
|
29837
29634
|
const autoFocusIndex = actions.findIndex(action => !action.disabled);
|
|
29838
29635
|
return showActions && /*#__PURE__*/React.createElement(StyledPopover$1
|
|
29839
29636
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
29840
|
-
, _extends$
|
|
29637
|
+
, _extends$2({}, popoverProps, {
|
|
29841
29638
|
onClose: onCloseOrActionClick,
|
|
29842
29639
|
ref: ref,
|
|
29843
29640
|
open: show,
|
|
@@ -31047,7 +30844,7 @@
|
|
|
31047
30844
|
}
|
|
31048
30845
|
|
|
31049
30846
|
/*
|
|
31050
|
-
* qlik-chart-modules v0.
|
|
30847
|
+
* qlik-chart-modules v0.92.0
|
|
31051
30848
|
* Copyright (c) 2025 QlikTech International AB
|
|
31052
30849
|
* Released under the MIT license.
|
|
31053
30850
|
*/
|
|
@@ -33425,7 +33222,7 @@
|
|
|
33425
33222
|
autoConfirm,
|
|
33426
33223
|
disablePortal
|
|
33427
33224
|
});
|
|
33428
|
-
const actionsToolbar = /*#__PURE__*/React.createElement(ActionsToolbar, _extends$
|
|
33225
|
+
const actionsToolbar = /*#__PURE__*/React.createElement(ActionsToolbar, _extends$2({
|
|
33429
33226
|
isRtl: isRtl,
|
|
33430
33227
|
layout: layout
|
|
33431
33228
|
}, toolbarProps));
|
|
@@ -35787,13 +35584,13 @@
|
|
|
35787
35584
|
const s = SIZES[size];
|
|
35788
35585
|
return /*#__PURE__*/React.createElement(Root, {
|
|
35789
35586
|
className: classes$3.root
|
|
35790
|
-
}, /*#__PURE__*/React.createElement(CircularProgress, _extends$
|
|
35587
|
+
}, /*#__PURE__*/React.createElement(CircularProgress, _extends$2({
|
|
35791
35588
|
variant: "determinate",
|
|
35792
35589
|
value: 100,
|
|
35793
35590
|
className: classes$3.back,
|
|
35794
35591
|
size: s,
|
|
35795
35592
|
thickness: 3
|
|
35796
|
-
}, props)), /*#__PURE__*/React.createElement(CircularProgress, _extends$
|
|
35593
|
+
}, props)), /*#__PURE__*/React.createElement(CircularProgress, _extends$2({
|
|
35797
35594
|
variant: "indeterminate",
|
|
35798
35595
|
disableShrink: true,
|
|
35799
35596
|
className: classes$3.front,
|
|
@@ -35843,7 +35640,7 @@
|
|
|
35843
35640
|
variant: "h6",
|
|
35844
35641
|
align: "center",
|
|
35845
35642
|
"data-tid": "update-active"
|
|
35846
|
-
}, translator.get('Object.Update.Active')))), /*#__PURE__*/React.createElement(Grid, _extends$
|
|
35643
|
+
}, translator.get('Object.Update.Active')))), /*#__PURE__*/React.createElement(Grid, _extends$2({
|
|
35847
35644
|
item: true
|
|
35848
35645
|
}, props), /*#__PURE__*/React.createElement(Button, {
|
|
35849
35646
|
variant: "contained",
|
|
@@ -35870,7 +35667,7 @@
|
|
|
35870
35667
|
"data-tid": "update-cancelled"
|
|
35871
35668
|
}, translator.get('Object.Update.Cancelled'))), /*#__PURE__*/React.createElement(Grid, {
|
|
35872
35669
|
item: true
|
|
35873
|
-
}, /*#__PURE__*/React.createElement(Button, _extends$
|
|
35670
|
+
}, /*#__PURE__*/React.createElement(Button, _extends$2({
|
|
35874
35671
|
variant: "contained",
|
|
35875
35672
|
onClick: retry
|
|
35876
35673
|
}, props), translator.get('Retry'))));
|
|
@@ -36411,6 +36208,16 @@
|
|
|
36411
36208
|
/** @type {'njs-cell-body'} */
|
|
36412
36209
|
className: 'njs-cell-body'
|
|
36413
36210
|
};
|
|
36211
|
+
function support(prop, supportObject, layout) {
|
|
36212
|
+
const value = supportObject[prop];
|
|
36213
|
+
if (typeof value === 'function') {
|
|
36214
|
+
return value.call(null, layout);
|
|
36215
|
+
}
|
|
36216
|
+
if (typeof value === 'boolean') {
|
|
36217
|
+
return value;
|
|
36218
|
+
}
|
|
36219
|
+
return false;
|
|
36220
|
+
}
|
|
36414
36221
|
const initialState = err => ({
|
|
36415
36222
|
loading: false,
|
|
36416
36223
|
loaded: false,
|
|
@@ -36720,6 +36527,7 @@
|
|
|
36720
36527
|
translator,
|
|
36721
36528
|
language,
|
|
36722
36529
|
keyboardNavigation,
|
|
36530
|
+
externalFocusManagement,
|
|
36723
36531
|
disableCellPadding = false
|
|
36724
36532
|
} = reactExports.useContext(InstanceContext);
|
|
36725
36533
|
const [internalEmitter] = reactExports.useState(emitter || createEmitter);
|
|
@@ -36759,16 +36567,20 @@
|
|
|
36759
36567
|
});
|
|
36760
36568
|
reactExports.useEffect(() => {
|
|
36761
36569
|
eventmixin(focusHandler.current);
|
|
36570
|
+
focusHandler.current.blurCallback = resetFocus => {
|
|
36571
|
+
if (focusHandler.current.onBlurHandler) {
|
|
36572
|
+
focusHandler.current.onBlurHandler(resetFocus);
|
|
36573
|
+
return;
|
|
36574
|
+
}
|
|
36575
|
+
halo.root.toggleFocusOfCells();
|
|
36576
|
+
if (resetFocus && contentNode) {
|
|
36577
|
+
contentNode.focus();
|
|
36578
|
+
}
|
|
36579
|
+
};
|
|
36580
|
+
focusHandler.current.refocusContent = () => {
|
|
36581
|
+
state.sn.component && typeof state.sn.component.focus === 'function' && state.sn.component.focus();
|
|
36582
|
+
};
|
|
36762
36583
|
}, []);
|
|
36763
|
-
focusHandler.current.blurCallback = resetFocus => {
|
|
36764
|
-
halo.root.toggleFocusOfCells();
|
|
36765
|
-
if (resetFocus && contentNode) {
|
|
36766
|
-
contentNode.focus();
|
|
36767
|
-
}
|
|
36768
|
-
};
|
|
36769
|
-
focusHandler.current.refocusContent = () => {
|
|
36770
|
-
state.sn.component && typeof state.sn.component.focus === 'function' && state.sn.component.focus();
|
|
36771
|
-
};
|
|
36772
36584
|
const handleOnMouseEnter = () => {
|
|
36773
36585
|
if (hoveringDebouncer.current.leave) {
|
|
36774
36586
|
clearTimeout(hoveringDebouncer.current.leave);
|
|
@@ -36853,7 +36665,6 @@
|
|
|
36853
36665
|
load(layout.visualization, withVersion);
|
|
36854
36666
|
return () => {};
|
|
36855
36667
|
}, [types, state.sn, model, selections, layout, appLayout, language]);
|
|
36856
|
-
|
|
36857
36668
|
// Long running query
|
|
36858
36669
|
reactExports.useEffect(() => {
|
|
36859
36670
|
if (!validating) {
|
|
@@ -36870,6 +36681,20 @@
|
|
|
36870
36681
|
getQae() {
|
|
36871
36682
|
return state.sn.generator.qae;
|
|
36872
36683
|
},
|
|
36684
|
+
getExtensionDefinition() {
|
|
36685
|
+
return state.sn.generator.definition.ext;
|
|
36686
|
+
},
|
|
36687
|
+
// allow input of supportObject ot override when flipped to table
|
|
36688
|
+
support(type, supportObject, outerLayout) {
|
|
36689
|
+
if (layout && state.loaded && !state.error) {
|
|
36690
|
+
var _state$sn$generator$d;
|
|
36691
|
+
const suppObj = supportObject || ((_state$sn$generator$d = state.sn.generator.definition.ext) === null || _state$sn$generator$d === void 0 ? void 0 : _state$sn$generator$d.support);
|
|
36692
|
+
if (suppObj) {
|
|
36693
|
+
return support(type, suppObj, outerLayout || layout);
|
|
36694
|
+
}
|
|
36695
|
+
}
|
|
36696
|
+
return false;
|
|
36697
|
+
},
|
|
36873
36698
|
toggleFocus(active) {
|
|
36874
36699
|
if (typeof state.sn.component.focus === 'function') {
|
|
36875
36700
|
if (active) {
|
|
@@ -36879,6 +36704,9 @@
|
|
|
36879
36704
|
}
|
|
36880
36705
|
}
|
|
36881
36706
|
},
|
|
36707
|
+
setOnBlurHandler(cb) {
|
|
36708
|
+
focusHandler.current.onBlurHandler = cb;
|
|
36709
|
+
},
|
|
36882
36710
|
setSnOptions,
|
|
36883
36711
|
setSnPlugins,
|
|
36884
36712
|
setModel,
|
|
@@ -37009,8 +36837,8 @@
|
|
|
37009
36837
|
focusHandler: focusHandler.current,
|
|
37010
36838
|
titleStyles: titleStyles
|
|
37011
36839
|
}, "\xA0"), /*#__PURE__*/React.createElement(Grid, {
|
|
37012
|
-
tabIndex: keyboardNavigation ? 0 : -1,
|
|
37013
|
-
onKeyDown: keyboardNavigation ? handleKeyDown : null,
|
|
36840
|
+
tabIndex: keyboardNavigation && !externalFocusManagement ? 0 : -1,
|
|
36841
|
+
onKeyDown: keyboardNavigation && !externalFocusManagement ? handleKeyDown : null,
|
|
37014
36842
|
item: true,
|
|
37015
36843
|
xs: true,
|
|
37016
36844
|
className: CellBody.className,
|
|
@@ -37155,6 +36983,181 @@
|
|
|
37155
36983
|
return model.setProperties(newProperties);
|
|
37156
36984
|
};
|
|
37157
36985
|
|
|
36986
|
+
const getFieldById = (fields, id) => fields.find(field => {
|
|
36987
|
+
var _field$qDef;
|
|
36988
|
+
return ((_field$qDef = field.qDef) === null || _field$qDef === void 0 ? void 0 : _field$qDef.cId) === id;
|
|
36989
|
+
}) || null;
|
|
36990
|
+
const setFieldProperties = hcFieldProperties => {
|
|
36991
|
+
if (!hcFieldProperties) {
|
|
36992
|
+
return [];
|
|
36993
|
+
}
|
|
36994
|
+
const updatedProperties = [...hcFieldProperties];
|
|
36995
|
+
return updatedProperties.map(field => {
|
|
36996
|
+
var _field$qDef2;
|
|
36997
|
+
if ((_field$qDef2 = field.qDef) !== null && _field$qDef2 !== void 0 && _field$qDef2.autoSort && field.autoSort !== undefined) {
|
|
36998
|
+
return _objectSpread2(_objectSpread2({}, field), {}, {
|
|
36999
|
+
qDef: _objectSpread2(_objectSpread2({}, field.qDef), {}, {
|
|
37000
|
+
autoSort: field.autoSort
|
|
37001
|
+
}),
|
|
37002
|
+
autoSort: undefined
|
|
37003
|
+
});
|
|
37004
|
+
}
|
|
37005
|
+
return field;
|
|
37006
|
+
});
|
|
37007
|
+
};
|
|
37008
|
+
const getHyperCube = (layout, path) => {
|
|
37009
|
+
if (!layout) {
|
|
37010
|
+
return undefined;
|
|
37011
|
+
}
|
|
37012
|
+
return path && utils(layout, path) ? utils(layout, path).qHyperCube : layout.qHyperCube;
|
|
37013
|
+
};
|
|
37014
|
+
|
|
37015
|
+
class DataPropertyHandler {
|
|
37016
|
+
constructor(opts) {
|
|
37017
|
+
var _options$dimensionPro, _options$measurePrope;
|
|
37018
|
+
const options = opts || {};
|
|
37019
|
+
this.dimensionDefinition = options.dimensionDefinition || {
|
|
37020
|
+
max: 0
|
|
37021
|
+
};
|
|
37022
|
+
this.measureDefinition = options.measureDefinition || {
|
|
37023
|
+
max: 0
|
|
37024
|
+
};
|
|
37025
|
+
this.dimensionProperties = (_options$dimensionPro = options.dimensionProperties) !== null && _options$dimensionPro !== void 0 ? _options$dimensionPro : {};
|
|
37026
|
+
this.measureProperties = (_options$measurePrope = options.measureProperties) !== null && _options$measurePrope !== void 0 ? _options$measurePrope : {};
|
|
37027
|
+
this.globalChangeListeners = options.globalChangeListeners;
|
|
37028
|
+
this.app = options.app;
|
|
37029
|
+
}
|
|
37030
|
+
setProperties(properties) {
|
|
37031
|
+
var _this$properties;
|
|
37032
|
+
this.properties = properties;
|
|
37033
|
+
this.isAnalysisType = (_this$properties = this.properties) === null || _this$properties === void 0 || (_this$properties = _this$properties.metaData) === null || _this$properties === void 0 ? void 0 : _this$properties.isAnalysisType;
|
|
37034
|
+
}
|
|
37035
|
+
setGlobalChangeListeners(arr) {
|
|
37036
|
+
this.globalChangeListeners = arr;
|
|
37037
|
+
}
|
|
37038
|
+
setLayout(layout) {
|
|
37039
|
+
this.layout = layout;
|
|
37040
|
+
}
|
|
37041
|
+
static type() {
|
|
37042
|
+
throw new Error('Must override this method');
|
|
37043
|
+
}
|
|
37044
|
+
|
|
37045
|
+
// ----------------DIMENSION----------------
|
|
37046
|
+
|
|
37047
|
+
static getDimensions() {
|
|
37048
|
+
return [];
|
|
37049
|
+
}
|
|
37050
|
+
getDimension(id) {
|
|
37051
|
+
const dimensions = this.getDimensions();
|
|
37052
|
+
const alternativeDimensions = this.getAlternativeDimensions();
|
|
37053
|
+
const dim = getFieldById(dimensions, id);
|
|
37054
|
+
const altDim = getFieldById(alternativeDimensions, id);
|
|
37055
|
+
return dim !== null && dim !== void 0 ? dim : altDim;
|
|
37056
|
+
}
|
|
37057
|
+
static getAlternativeDimensions() {
|
|
37058
|
+
throw new Error('Method not implemented.');
|
|
37059
|
+
}
|
|
37060
|
+
|
|
37061
|
+
// ----------------MEASURE----------------
|
|
37062
|
+
|
|
37063
|
+
getMeasure(id) {
|
|
37064
|
+
const measures = this.getMeasures();
|
|
37065
|
+
const alternativeMeasures = this.getAlternativeMeasures();
|
|
37066
|
+
const meas = getFieldById(measures, id);
|
|
37067
|
+
const altMeas = getFieldById(alternativeMeasures, id);
|
|
37068
|
+
return meas !== null && meas !== void 0 ? meas : altMeas;
|
|
37069
|
+
}
|
|
37070
|
+
static getMeasures() {
|
|
37071
|
+
return [];
|
|
37072
|
+
}
|
|
37073
|
+
static getAlternativeMeasures() {
|
|
37074
|
+
throw new Error('Method not implemented.');
|
|
37075
|
+
}
|
|
37076
|
+
}
|
|
37077
|
+
|
|
37078
|
+
// eslint-disable-next-line import/no-relative-packages
|
|
37079
|
+
class HyperCubeHandler extends DataPropertyHandler {
|
|
37080
|
+
constructor(opts) {
|
|
37081
|
+
super(opts);
|
|
37082
|
+
this.path = opts.path;
|
|
37083
|
+
}
|
|
37084
|
+
setProperties(properties) {
|
|
37085
|
+
var _this$hcProperties$qD, _this$hcProperties$qM, _this$hcProperties$qI, _this$hcProperties$qL, _this$hcProperties$qL2, _this$hcProperties$qL3, _this$hcProperties$qL4;
|
|
37086
|
+
if (!properties) {
|
|
37087
|
+
return;
|
|
37088
|
+
}
|
|
37089
|
+
super.setProperties(properties);
|
|
37090
|
+
this.hcProperties = this.path ? utils.getValue(properties, "".concat(this.path, ".qHyperCubeDef")) : properties.qHyperCubeDef;
|
|
37091
|
+
if (!this.hcProperties) {
|
|
37092
|
+
return;
|
|
37093
|
+
}
|
|
37094
|
+
|
|
37095
|
+
// Set defaults
|
|
37096
|
+
this.hcProperties.qDimensions = (_this$hcProperties$qD = this.hcProperties.qDimensions) !== null && _this$hcProperties$qD !== void 0 ? _this$hcProperties$qD : [];
|
|
37097
|
+
this.hcProperties.qMeasures = (_this$hcProperties$qM = this.hcProperties.qMeasures) !== null && _this$hcProperties$qM !== void 0 ? _this$hcProperties$qM : [];
|
|
37098
|
+
this.hcProperties.qInterColumnSortOrder = (_this$hcProperties$qI = this.hcProperties.qInterColumnSortOrder) !== null && _this$hcProperties$qI !== void 0 ? _this$hcProperties$qI : [];
|
|
37099
|
+
this.hcProperties.qLayoutExclude = (_this$hcProperties$qL = this.hcProperties.qLayoutExclude) !== null && _this$hcProperties$qL !== void 0 ? _this$hcProperties$qL : {
|
|
37100
|
+
qHyperCubeDef: {
|
|
37101
|
+
qDimensions: [],
|
|
37102
|
+
qMeasures: []
|
|
37103
|
+
}
|
|
37104
|
+
};
|
|
37105
|
+
this.hcProperties.qLayoutExclude.qHyperCubeDef = (_this$hcProperties$qL2 = this.hcProperties.qLayoutExclude.qHyperCubeDef) !== null && _this$hcProperties$qL2 !== void 0 ? _this$hcProperties$qL2 : {
|
|
37106
|
+
qDimensions: [],
|
|
37107
|
+
qMeasures: []
|
|
37108
|
+
};
|
|
37109
|
+
this.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions = (_this$hcProperties$qL3 = this.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions) !== null && _this$hcProperties$qL3 !== void 0 ? _this$hcProperties$qL3 : [];
|
|
37110
|
+
this.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures = (_this$hcProperties$qL4 = this.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures) !== null && _this$hcProperties$qL4 !== void 0 ? _this$hcProperties$qL4 : [];
|
|
37111
|
+
if (this.hcProperties.isHCEnabled && this.hcProperties.qDynamicScript.length === 0 && this.hcProperties.qMode === 'S') {
|
|
37112
|
+
// this is only for line chart with forecast
|
|
37113
|
+
this.hcProperties.qDynamicScript = [];
|
|
37114
|
+
}
|
|
37115
|
+
|
|
37116
|
+
// Set auto-sort property (compatibility 0.85 -> 0.9),
|
|
37117
|
+
// can probably be removed in 1.0
|
|
37118
|
+
this.hcProperties.qDimensions = setFieldProperties(this.hcProperties.qDimensions);
|
|
37119
|
+
this.hcProperties.qMeasures = setFieldProperties(this.hcProperties.qMeasures);
|
|
37120
|
+
}
|
|
37121
|
+
|
|
37122
|
+
// ----------------------------------
|
|
37123
|
+
// ----------- DIMENSIONS -----------
|
|
37124
|
+
// ----------------------------------
|
|
37125
|
+
|
|
37126
|
+
getDimensions() {
|
|
37127
|
+
return this.hcProperties ? this.hcProperties.qDimensions : [];
|
|
37128
|
+
}
|
|
37129
|
+
getAlternativeDimensions() {
|
|
37130
|
+
var _this$hcProperties$qL5, _this$hcProperties;
|
|
37131
|
+
return (_this$hcProperties$qL5 = (_this$hcProperties = this.hcProperties) === null || _this$hcProperties === void 0 || (_this$hcProperties = _this$hcProperties.qLayoutExclude) === null || _this$hcProperties === void 0 || (_this$hcProperties = _this$hcProperties.qHyperCubeDef) === null || _this$hcProperties === void 0 ? void 0 : _this$hcProperties.qDimensions) !== null && _this$hcProperties$qL5 !== void 0 ? _this$hcProperties$qL5 : [];
|
|
37132
|
+
}
|
|
37133
|
+
getDimensionLayout(cId) {
|
|
37134
|
+
return this.getDimensionLayouts().filter(item => cId === item.cId)[0];
|
|
37135
|
+
}
|
|
37136
|
+
getDimensionLayouts() {
|
|
37137
|
+
const hc = getHyperCube(this.layout, this.path);
|
|
37138
|
+
return hc ? hc.qDimensionInfo : [];
|
|
37139
|
+
}
|
|
37140
|
+
|
|
37141
|
+
// ----------------------------------
|
|
37142
|
+
// ------------ MEASURES ------------
|
|
37143
|
+
// ----------------------------------
|
|
37144
|
+
|
|
37145
|
+
getMeasures() {
|
|
37146
|
+
return this.hcProperties ? this.hcProperties.qMeasures : [];
|
|
37147
|
+
}
|
|
37148
|
+
getAlternativeMeasures() {
|
|
37149
|
+
var _this$hcProperties$qL6, _this$hcProperties2;
|
|
37150
|
+
return (_this$hcProperties$qL6 = (_this$hcProperties2 = this.hcProperties) === null || _this$hcProperties2 === void 0 || (_this$hcProperties2 = _this$hcProperties2.qLayoutExclude) === null || _this$hcProperties2 === void 0 || (_this$hcProperties2 = _this$hcProperties2.qHyperCubeDef) === null || _this$hcProperties2 === void 0 ? void 0 : _this$hcProperties2.qMeasures) !== null && _this$hcProperties$qL6 !== void 0 ? _this$hcProperties$qL6 : [];
|
|
37151
|
+
}
|
|
37152
|
+
getMeasureLayouts() {
|
|
37153
|
+
const hc = getHyperCube(this.layout, this.path);
|
|
37154
|
+
return hc ? hc.qMeasureInfo : [];
|
|
37155
|
+
}
|
|
37156
|
+
getMeasureLayout(cId) {
|
|
37157
|
+
return this.getMeasureLayouts().filter(item => cId === item.cId)[0];
|
|
37158
|
+
}
|
|
37159
|
+
}
|
|
37160
|
+
|
|
37158
37161
|
/* eslint no-param-reassign: 0, no-restricted-globals: 0 */
|
|
37159
37162
|
const extend = extend$1.bind(null, true);
|
|
37160
37163
|
const JSONPatch = {};
|
|
@@ -38946,6 +38949,7 @@
|
|
|
38946
38949
|
layout: {},
|
|
38947
38950
|
appLayout: {},
|
|
38948
38951
|
keyboardNavigation: opts.keyboardNavigation,
|
|
38952
|
+
externalFocusManagement: opts.externalFocusManagement || false,
|
|
38949
38953
|
focusHandler: opts.focusHandler,
|
|
38950
38954
|
constraints: forcedConstraints,
|
|
38951
38955
|
interactions: forcedInteractions,
|
|
@@ -39076,6 +39080,11 @@
|
|
|
39076
39080
|
return generator.component.runMenu(this, menu, event, menuBuilder);
|
|
39077
39081
|
},
|
|
39078
39082
|
focus() {
|
|
39083
|
+
const ref = generator.component.getImperativeHandle(this);
|
|
39084
|
+
if (ref && typeof ref.focus === 'function') {
|
|
39085
|
+
ref.focus();
|
|
39086
|
+
return;
|
|
39087
|
+
}
|
|
39079
39088
|
generator.component.focus(this);
|
|
39080
39089
|
},
|
|
39081
39090
|
blur() {
|
|
@@ -39447,7 +39456,9 @@
|
|
|
39447
39456
|
const ss = create$2(generator, params, galaxy);
|
|
39448
39457
|
return ss;
|
|
39449
39458
|
},
|
|
39450
|
-
definition: {
|
|
39459
|
+
definition: galaxy.flags.isEnabled('NEBULA_DATA_HANDLERS') ? {
|
|
39460
|
+
dataHandler: opts => new HyperCubeHandler(opts)
|
|
39461
|
+
} : {}
|
|
39451
39462
|
};
|
|
39452
39463
|
Object.keys(sn).forEach(key => {
|
|
39453
39464
|
if (!generator[key]) {
|
|
@@ -39480,6 +39491,7 @@
|
|
|
39480
39491
|
|
|
39481
39492
|
const noopi$1 = () => {};
|
|
39482
39493
|
function viz() {
|
|
39494
|
+
var _halo$context;
|
|
39483
39495
|
let {
|
|
39484
39496
|
model,
|
|
39485
39497
|
halo,
|
|
@@ -39495,6 +39507,9 @@
|
|
|
39495
39507
|
let onMount = null;
|
|
39496
39508
|
let onRenderResolve = null;
|
|
39497
39509
|
let viewDataObjectId;
|
|
39510
|
+
let originalExtensionDef;
|
|
39511
|
+
let originalLayout;
|
|
39512
|
+
let successfulRender = false;
|
|
39498
39513
|
const mounted = new Promise(resolve => {
|
|
39499
39514
|
onMount = resolve;
|
|
39500
39515
|
});
|
|
@@ -39505,6 +39520,7 @@
|
|
|
39505
39520
|
override === null || override === void 0 || override(); // from options.onInitialRender
|
|
39506
39521
|
onRenderResolve(); // internal promise in viz to wait for render
|
|
39507
39522
|
onRender(); // from RenderConfig
|
|
39523
|
+
successfulRender = true;
|
|
39508
39524
|
};
|
|
39509
39525
|
let initialSnOptions = {};
|
|
39510
39526
|
let initialSnPlugins = [];
|
|
@@ -39537,6 +39553,32 @@
|
|
|
39537
39553
|
initialSnPlugins = plugins;
|
|
39538
39554
|
}
|
|
39539
39555
|
};
|
|
39556
|
+
let newExperimental = {};
|
|
39557
|
+
if ((_halo$context = halo.context) !== null && _halo$context !== void 0 && _halo$context.enablePrivateExperimental) {
|
|
39558
|
+
// ===== undocumented experimental API - use at own risk ======
|
|
39559
|
+
newExperimental = {
|
|
39560
|
+
/**
|
|
39561
|
+
* @ignore
|
|
39562
|
+
* valid types: viewData, cssScaling, snapshot, exportData, exploration
|
|
39563
|
+
* questionable types: supportRefresh, quickMobile, fullscreen
|
|
39564
|
+
* deprecated?: sharing
|
|
39565
|
+
*
|
|
39566
|
+
*/
|
|
39567
|
+
support(type) {
|
|
39568
|
+
if (mountedReference && successfulRender) {
|
|
39569
|
+
var _originalExtensionDef;
|
|
39570
|
+
return cellRef.current.support(type, (_originalExtensionDef = originalExtensionDef) === null || _originalExtensionDef === void 0 ? void 0 : _originalExtensionDef.support, originalLayout);
|
|
39571
|
+
}
|
|
39572
|
+
return false;
|
|
39573
|
+
},
|
|
39574
|
+
toggleFocus(focus) {
|
|
39575
|
+
cellRef.current.toggleFocus(focus);
|
|
39576
|
+
},
|
|
39577
|
+
setOnBlurHandler(cb) {
|
|
39578
|
+
cellRef.current.setOnBlurHandler(cb);
|
|
39579
|
+
}
|
|
39580
|
+
};
|
|
39581
|
+
}
|
|
39540
39582
|
|
|
39541
39583
|
/**
|
|
39542
39584
|
* @class
|
|
@@ -39549,7 +39591,7 @@
|
|
|
39549
39591
|
* });
|
|
39550
39592
|
* viz.destroy();
|
|
39551
39593
|
*/
|
|
39552
|
-
const api = /** @lends Viz# */{
|
|
39594
|
+
const api = /** @lends Viz# */_objectSpread2(_objectSpread2({
|
|
39553
39595
|
/**
|
|
39554
39596
|
* The id of this visualization's generic object.
|
|
39555
39597
|
* @type {string}
|
|
@@ -39667,15 +39709,26 @@
|
|
|
39667
39709
|
});
|
|
39668
39710
|
newModel = await halo.app.createSessionObject(propertyTree.qProperty);
|
|
39669
39711
|
viewDataObjectId = newModel.id;
|
|
39712
|
+
originalExtensionDef = cellRef.current.getExtensionDefinition();
|
|
39713
|
+
originalLayout = await model.getLayout();
|
|
39670
39714
|
} else if (viewDataObjectId && showDataView !== true) {
|
|
39671
39715
|
newModel = model;
|
|
39672
39716
|
await halo.app.destroySessionObject(viewDataObjectId);
|
|
39673
39717
|
viewDataObjectId = undefined;
|
|
39718
|
+
originalExtensionDef = undefined;
|
|
39719
|
+
originalLayout = undefined;
|
|
39674
39720
|
}
|
|
39675
39721
|
if (newModel) {
|
|
39676
39722
|
cellRef.current.setModel(newModel);
|
|
39677
39723
|
}
|
|
39678
39724
|
},
|
|
39725
|
+
/**
|
|
39726
|
+
* Whether or not the chart has the data view toggled on.
|
|
39727
|
+
* @type {boolean}
|
|
39728
|
+
*/
|
|
39729
|
+
get viewDataToggled() {
|
|
39730
|
+
return viewDataObjectId !== undefined;
|
|
39731
|
+
},
|
|
39679
39732
|
/**
|
|
39680
39733
|
* Listens to custom events from inside the visualization. See useEmitter
|
|
39681
39734
|
* @param {string} eventName Event name to listen to
|
|
@@ -39709,7 +39762,8 @@
|
|
|
39709
39762
|
async takeSnapshot() {
|
|
39710
39763
|
await rendered;
|
|
39711
39764
|
return cellRef.current.takeSnapshot();
|
|
39712
|
-
}
|
|
39765
|
+
}
|
|
39766
|
+
}, newExperimental), {}, {
|
|
39713
39767
|
// ===== unexposed experimental API - use at own risk ======
|
|
39714
39768
|
__DO_NOT_USE__: {
|
|
39715
39769
|
mount(element) {
|
|
@@ -39820,7 +39874,7 @@
|
|
|
39820
39874
|
// setOptions() {}, // applied soft patch
|
|
39821
39875
|
// resize() {},
|
|
39822
39876
|
// show() {},
|
|
39823
|
-
};
|
|
39877
|
+
});
|
|
39824
39878
|
return api;
|
|
39825
39879
|
}
|
|
39826
39880
|
|