@schematichq/schematic-components 2.10.1 → 2.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schematic-components.cjs.js +1329 -1983
- package/dist/schematic-components.d.ts +390 -22
- package/dist/schematic-components.esm.js +1011 -1664
- package/package.json +15 -15
|
@@ -1965,9 +1965,9 @@ var makeString = (object) => {
|
|
|
1965
1965
|
if (object == null) return "";
|
|
1966
1966
|
return String(object);
|
|
1967
1967
|
};
|
|
1968
|
-
var copy = (
|
|
1969
|
-
|
|
1970
|
-
if (s[
|
|
1968
|
+
var copy = (a2, s, t3) => {
|
|
1969
|
+
a2.forEach((m2) => {
|
|
1970
|
+
if (s[m2]) t3[m2] = s[m2];
|
|
1971
1971
|
});
|
|
1972
1972
|
};
|
|
1973
1973
|
var lastOfPathSeparatorRegExp = /###/g;
|
|
@@ -1996,19 +1996,19 @@ var getLastOfPath = (object, path, Empty) => {
|
|
|
1996
1996
|
var setPath = (object, path, newValue) => {
|
|
1997
1997
|
const {
|
|
1998
1998
|
obj,
|
|
1999
|
-
k:
|
|
1999
|
+
k: k2
|
|
2000
2000
|
} = getLastOfPath(object, path, Object);
|
|
2001
2001
|
if (obj !== void 0 || path.length === 1) {
|
|
2002
|
-
obj[
|
|
2002
|
+
obj[k2] = newValue;
|
|
2003
2003
|
return;
|
|
2004
2004
|
}
|
|
2005
2005
|
let e2 = path[path.length - 1];
|
|
2006
|
-
let
|
|
2007
|
-
let last = getLastOfPath(object,
|
|
2008
|
-
while (last.obj === void 0 &&
|
|
2009
|
-
e2 = `${
|
|
2010
|
-
|
|
2011
|
-
last = getLastOfPath(object,
|
|
2006
|
+
let p2 = path.slice(0, path.length - 1);
|
|
2007
|
+
let last = getLastOfPath(object, p2, Object);
|
|
2008
|
+
while (last.obj === void 0 && p2.length) {
|
|
2009
|
+
e2 = `${p2[p2.length - 1]}.${e2}`;
|
|
2010
|
+
p2 = p2.slice(0, p2.length - 1);
|
|
2011
|
+
last = getLastOfPath(object, p2, Object);
|
|
2012
2012
|
if (last?.obj && typeof last.obj[`${last.k}.${e2}`] !== "undefined") {
|
|
2013
2013
|
last.obj = void 0;
|
|
2014
2014
|
}
|
|
@@ -2018,19 +2018,19 @@ var setPath = (object, path, newValue) => {
|
|
|
2018
2018
|
var pushPath = (object, path, newValue, concat) => {
|
|
2019
2019
|
const {
|
|
2020
2020
|
obj,
|
|
2021
|
-
k:
|
|
2021
|
+
k: k2
|
|
2022
2022
|
} = getLastOfPath(object, path, Object);
|
|
2023
|
-
obj[
|
|
2024
|
-
obj[
|
|
2023
|
+
obj[k2] = obj[k2] || [];
|
|
2024
|
+
obj[k2].push(newValue);
|
|
2025
2025
|
};
|
|
2026
2026
|
var getPath = (object, path) => {
|
|
2027
2027
|
const {
|
|
2028
2028
|
obj,
|
|
2029
|
-
k:
|
|
2029
|
+
k: k2
|
|
2030
2030
|
} = getLastOfPath(object, path);
|
|
2031
2031
|
if (!obj) return void 0;
|
|
2032
|
-
if (!Object.prototype.hasOwnProperty.call(obj,
|
|
2033
|
-
return obj[
|
|
2032
|
+
if (!Object.prototype.hasOwnProperty.call(obj, k2)) return void 0;
|
|
2033
|
+
return obj[k2];
|
|
2034
2034
|
};
|
|
2035
2035
|
var getPathWithDefaults = (data, defaultData, key) => {
|
|
2036
2036
|
const value = getPath(data, key);
|
|
@@ -2095,13 +2095,13 @@ var looksLikeObjectPathRegExpCache = new RegExpCache(20);
|
|
|
2095
2095
|
var looksLikeObjectPath = (key, nsSeparator, keySeparator) => {
|
|
2096
2096
|
nsSeparator = nsSeparator || "";
|
|
2097
2097
|
keySeparator = keySeparator || "";
|
|
2098
|
-
const possibleChars = chars.filter((
|
|
2098
|
+
const possibleChars = chars.filter((c2) => !nsSeparator.includes(c2) && !keySeparator.includes(c2));
|
|
2099
2099
|
if (possibleChars.length === 0) return true;
|
|
2100
|
-
const
|
|
2101
|
-
let matched = !
|
|
2100
|
+
const r2 = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map((c2) => c2 === "?" ? "\\?" : c2).join("|")})`);
|
|
2101
|
+
let matched = !r2.test(key);
|
|
2102
2102
|
if (!matched) {
|
|
2103
2103
|
const ki = key.indexOf(keySeparator);
|
|
2104
|
-
if (ki > 0 && !
|
|
2104
|
+
if (ki > 0 && !r2.test(key.substring(0, ki))) {
|
|
2105
2105
|
matched = true;
|
|
2106
2106
|
}
|
|
2107
2107
|
}
|
|
@@ -2121,17 +2121,17 @@ var deepFind = (obj, path, keySeparator = ".") => {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
let next2;
|
|
2123
2123
|
let nextPath = "";
|
|
2124
|
-
for (let
|
|
2125
|
-
if (
|
|
2124
|
+
for (let j2 = i2; j2 < tokens.length; ++j2) {
|
|
2125
|
+
if (j2 !== i2) {
|
|
2126
2126
|
nextPath += keySeparator;
|
|
2127
2127
|
}
|
|
2128
|
-
nextPath += tokens[
|
|
2128
|
+
nextPath += tokens[j2];
|
|
2129
2129
|
next2 = current[nextPath];
|
|
2130
2130
|
if (next2 !== void 0) {
|
|
2131
|
-
if (["string", "number", "boolean"].includes(typeof next2) &&
|
|
2131
|
+
if (["string", "number", "boolean"].includes(typeof next2) && j2 < tokens.length - 1) {
|
|
2132
2132
|
continue;
|
|
2133
2133
|
}
|
|
2134
|
-
i2 +=
|
|
2134
|
+
i2 += j2 - i2 + 1;
|
|
2135
2135
|
break;
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
@@ -2179,7 +2179,7 @@ var Logger = class _Logger {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
forward(args, lvl, prefix2, debugOnly) {
|
|
2181
2181
|
if (debugOnly && !this.debug) return null;
|
|
2182
|
-
args = args.map((
|
|
2182
|
+
args = args.map((a2) => isString(a2) ? a2.replace(/[\r\n\x00-\x1F\x7F]/g, " ") : a2);
|
|
2183
2183
|
if (isString(args[0])) args[0] = `${prefix2}${this.prefix} ${args[0]}`;
|
|
2184
2184
|
return this.logger[lvl](args);
|
|
2185
2185
|
}
|
|
@@ -2316,8 +2316,8 @@ var ResourceStore = class extends EventEmitter {
|
|
|
2316
2316
|
addResources(lng, ns, resources, options = {
|
|
2317
2317
|
silent: false
|
|
2318
2318
|
}) {
|
|
2319
|
-
for (const
|
|
2320
|
-
if (isString(resources[
|
|
2319
|
+
for (const m2 in resources) {
|
|
2320
|
+
if (isString(resources[m2]) || Array.isArray(resources[m2])) this.addResource(lng, ns, m2, resources[m2], {
|
|
2321
2321
|
silent: true
|
|
2322
2322
|
});
|
|
2323
2323
|
}
|
|
@@ -2368,7 +2368,7 @@ var ResourceStore = class extends EventEmitter {
|
|
|
2368
2368
|
hasLanguageSomeTranslations(lng) {
|
|
2369
2369
|
const data = this.getDataByLanguage(lng);
|
|
2370
2370
|
const n2 = data && Object.keys(data) || [];
|
|
2371
|
-
return !!n2.find((
|
|
2371
|
+
return !!n2.find((v2) => data[v2] && Object.keys(data[v2]).length > 0);
|
|
2372
2372
|
}
|
|
2373
2373
|
toJSON() {
|
|
2374
2374
|
return this.data;
|
|
@@ -2430,11 +2430,11 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2430
2430
|
changeLanguage(lng) {
|
|
2431
2431
|
if (lng) this.language = lng;
|
|
2432
2432
|
}
|
|
2433
|
-
exists(key,
|
|
2433
|
+
exists(key, o = {
|
|
2434
2434
|
interpolation: {}
|
|
2435
2435
|
}) {
|
|
2436
2436
|
const opt = {
|
|
2437
|
-
...
|
|
2437
|
+
...o
|
|
2438
2438
|
};
|
|
2439
2439
|
if (key == null) return false;
|
|
2440
2440
|
const resolved = this.resolve(key, opt);
|
|
@@ -2453,8 +2453,8 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2453
2453
|
const wouldCheckForNsInKey = nsSeparator && key.includes(nsSeparator);
|
|
2454
2454
|
const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);
|
|
2455
2455
|
if (wouldCheckForNsInKey && !seemsNaturalLanguage) {
|
|
2456
|
-
const
|
|
2457
|
-
if (
|
|
2456
|
+
const m2 = key.match(this.interpolator.nestingRegexp);
|
|
2457
|
+
if (m2 && m2.length > 0) {
|
|
2458
2458
|
return {
|
|
2459
2459
|
key,
|
|
2460
2460
|
namespaces: isString(namespaces) ? [namespaces] : namespaces
|
|
@@ -2469,10 +2469,10 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2469
2469
|
namespaces: isString(namespaces) ? [namespaces] : namespaces
|
|
2470
2470
|
};
|
|
2471
2471
|
}
|
|
2472
|
-
translate(keys,
|
|
2473
|
-
let opt = typeof
|
|
2474
|
-
...
|
|
2475
|
-
} :
|
|
2472
|
+
translate(keys, o, lastKey) {
|
|
2473
|
+
let opt = typeof o === "object" ? {
|
|
2474
|
+
...o
|
|
2475
|
+
} : o;
|
|
2476
2476
|
if (typeof opt !== "object" && this.options.overloadTranslationOptionHandler) {
|
|
2477
2477
|
opt = this.options.overloadTranslationOptionHandler(arguments);
|
|
2478
2478
|
}
|
|
@@ -2486,10 +2486,10 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2486
2486
|
...opt
|
|
2487
2487
|
});
|
|
2488
2488
|
if (!Array.isArray(keys)) keys = [String(keys)];
|
|
2489
|
-
keys = keys.map((
|
|
2489
|
+
keys = keys.map((k2) => typeof k2 === "function" ? keysFromSelector(k2, {
|
|
2490
2490
|
...this.options,
|
|
2491
2491
|
...opt
|
|
2492
|
-
}) : String(
|
|
2492
|
+
}) : String(k2));
|
|
2493
2493
|
const returnDetails = opt.returnDetails !== void 0 ? opt.returnDetails : this.options.returnDetails;
|
|
2494
2494
|
const keySeparator = opt.keySeparator !== void 0 ? opt.keySeparator : this.options.keySeparator;
|
|
2495
2495
|
const {
|
|
@@ -2553,35 +2553,35 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2553
2553
|
if (!this.options.returnedObjectHandler) {
|
|
2554
2554
|
this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2555
2555
|
}
|
|
2556
|
-
const
|
|
2556
|
+
const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
|
|
2557
2557
|
...opt,
|
|
2558
2558
|
ns: namespaces
|
|
2559
2559
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
2560
2560
|
if (returnDetails) {
|
|
2561
|
-
resolved.res =
|
|
2561
|
+
resolved.res = r2;
|
|
2562
2562
|
resolved.usedParams = this.getUsedParamsDetails(opt);
|
|
2563
2563
|
return resolved;
|
|
2564
2564
|
}
|
|
2565
|
-
return
|
|
2565
|
+
return r2;
|
|
2566
2566
|
}
|
|
2567
2567
|
if (keySeparator) {
|
|
2568
2568
|
const resTypeIsArray = Array.isArray(resForObjHndl);
|
|
2569
2569
|
const copy3 = resTypeIsArray ? [] : {};
|
|
2570
2570
|
const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
|
|
2571
|
-
for (const
|
|
2572
|
-
if (Object.prototype.hasOwnProperty.call(resForObjHndl,
|
|
2573
|
-
const deepKey = `${newKeyToUse}${keySeparator}${
|
|
2571
|
+
for (const m2 in resForObjHndl) {
|
|
2572
|
+
if (Object.prototype.hasOwnProperty.call(resForObjHndl, m2)) {
|
|
2573
|
+
const deepKey = `${newKeyToUse}${keySeparator}${m2}`;
|
|
2574
2574
|
if (hasDefaultValue && !res) {
|
|
2575
|
-
copy3[
|
|
2575
|
+
copy3[m2] = this.translate(deepKey, {
|
|
2576
2576
|
...opt,
|
|
2577
|
-
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[
|
|
2577
|
+
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m2] : void 0,
|
|
2578
2578
|
...{
|
|
2579
2579
|
joinArrays: false,
|
|
2580
2580
|
ns: namespaces
|
|
2581
2581
|
}
|
|
2582
2582
|
});
|
|
2583
2583
|
} else {
|
|
2584
|
-
copy3[
|
|
2584
|
+
copy3[m2] = this.translate(deepKey, {
|
|
2585
2585
|
...opt,
|
|
2586
2586
|
...{
|
|
2587
2587
|
joinArrays: false,
|
|
@@ -2589,7 +2589,7 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
});
|
|
2591
2591
|
}
|
|
2592
|
-
if (copy3[
|
|
2592
|
+
if (copy3[m2] === deepKey) copy3[m2] = resForObjHndl[m2];
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
2595
|
res = copy3;
|
|
@@ -2612,7 +2612,7 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2612
2612
|
const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? void 0 : res;
|
|
2613
2613
|
const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;
|
|
2614
2614
|
if (usedKey || usedDefault || updateMissing) {
|
|
2615
|
-
this.logger.log(updateMissing ? "updateKey" : "missingKey", lng, namespace, key, updateMissing ? defaultValue : res);
|
|
2615
|
+
this.logger.log(updateMissing ? "updateKey" : "missingKey", lng, namespace, needsPluralHandling && !updateMissing ? `${key}${this.pluralResolver.getSuffix(lng, opt.count, opt)}` : key, updateMissing ? defaultValue : res);
|
|
2616
2616
|
if (keySeparator) {
|
|
2617
2617
|
const fk = this.resolve(key, {
|
|
2618
2618
|
...opt,
|
|
@@ -2631,14 +2631,14 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2631
2631
|
} else {
|
|
2632
2632
|
lngs.push(opt.lng || this.language);
|
|
2633
2633
|
}
|
|
2634
|
-
const send = (
|
|
2634
|
+
const send = (l2, k2, specificDefaultValue) => {
|
|
2635
2635
|
const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;
|
|
2636
2636
|
if (this.options.missingKeyHandler) {
|
|
2637
|
-
this.options.missingKeyHandler(
|
|
2637
|
+
this.options.missingKeyHandler(l2, namespace, k2, defaultForMissing, updateMissing, opt);
|
|
2638
2638
|
} else if (this.backendConnector?.saveMissing) {
|
|
2639
|
-
this.backendConnector.saveMissing(
|
|
2639
|
+
this.backendConnector.saveMissing(l2, namespace, k2, defaultForMissing, updateMissing, opt);
|
|
2640
2640
|
}
|
|
2641
|
-
this.emit("missingKey",
|
|
2641
|
+
this.emit("missingKey", l2, namespace, k2, res);
|
|
2642
2642
|
};
|
|
2643
2643
|
if (this.options.saveMissing) {
|
|
2644
2644
|
if (this.options.saveMissingPlurals && needsPluralHandling) {
|
|
@@ -2736,13 +2736,13 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
2736
2736
|
let usedLng;
|
|
2737
2737
|
let usedNS;
|
|
2738
2738
|
if (isString(keys)) keys = [keys];
|
|
2739
|
-
if (Array.isArray(keys)) keys = keys.map((
|
|
2739
|
+
if (Array.isArray(keys)) keys = keys.map((k2) => typeof k2 === "function" ? keysFromSelector(k2, {
|
|
2740
2740
|
...this.options,
|
|
2741
2741
|
...opt
|
|
2742
|
-
}) :
|
|
2743
|
-
keys.forEach((
|
|
2742
|
+
}) : k2);
|
|
2743
|
+
keys.forEach((k2) => {
|
|
2744
2744
|
if (this.isValidLookup(found)) return;
|
|
2745
|
-
const extracted = this.extractFromKey(
|
|
2745
|
+
const extracted = this.extractFromKey(k2, opt);
|
|
2746
2746
|
const key = extracted.key;
|
|
2747
2747
|
usedKey = key;
|
|
2748
2748
|
let namespaces = extracted.namespaces;
|
|
@@ -2859,17 +2859,17 @@ var LanguageUtil = class {
|
|
|
2859
2859
|
getScriptPartFromCode(code) {
|
|
2860
2860
|
code = getCleanedCode(code);
|
|
2861
2861
|
if (!code || !code.includes("-")) return null;
|
|
2862
|
-
const
|
|
2863
|
-
if (
|
|
2864
|
-
|
|
2865
|
-
if (
|
|
2866
|
-
return this.formatLanguageCode(
|
|
2862
|
+
const p2 = code.split("-");
|
|
2863
|
+
if (p2.length === 2) return null;
|
|
2864
|
+
p2.pop();
|
|
2865
|
+
if (p2[p2.length - 1].toLowerCase() === "x") return null;
|
|
2866
|
+
return this.formatLanguageCode(p2.join("-"));
|
|
2867
2867
|
}
|
|
2868
2868
|
getLanguagePartFromCode(code) {
|
|
2869
2869
|
code = getCleanedCode(code);
|
|
2870
2870
|
if (!code || !code.includes("-")) return code;
|
|
2871
|
-
const
|
|
2872
|
-
return this.formatLanguageCode(
|
|
2871
|
+
const p2 = code.split("-");
|
|
2872
|
+
return this.formatLanguageCode(p2[0]);
|
|
2873
2873
|
}
|
|
2874
2874
|
formatLanguageCode(code) {
|
|
2875
2875
|
if (isString(code) && code.includes("-")) {
|
|
@@ -2938,12 +2938,12 @@ var LanguageUtil = class {
|
|
|
2938
2938
|
toResolveHierarchy(code, fallbackCode) {
|
|
2939
2939
|
const fallbackCodes = this.getFallbackCodes((fallbackCode === false ? [] : fallbackCode) || this.options.fallbackLng || [], code);
|
|
2940
2940
|
const codes = [];
|
|
2941
|
-
const addCode = (
|
|
2942
|
-
if (!
|
|
2943
|
-
if (this.isSupportedCode(
|
|
2944
|
-
codes.push(
|
|
2941
|
+
const addCode = (c2) => {
|
|
2942
|
+
if (!c2) return;
|
|
2943
|
+
if (this.isSupportedCode(c2)) {
|
|
2944
|
+
codes.push(c2);
|
|
2945
2945
|
} else {
|
|
2946
|
-
this.logger.warn(`rejecting language code not found in supportedLngs: ${
|
|
2946
|
+
this.logger.warn(`rejecting language code not found in supportedLngs: ${c2}`);
|
|
2947
2947
|
}
|
|
2948
2948
|
};
|
|
2949
2949
|
if (isString(code) && (code.includes("-") || code.includes("_"))) {
|
|
@@ -3116,13 +3116,13 @@ var Interpolator = class {
|
|
|
3116
3116
|
interpolationkey: key
|
|
3117
3117
|
}) : path;
|
|
3118
3118
|
}
|
|
3119
|
-
const
|
|
3120
|
-
const
|
|
3121
|
-
const f2 =
|
|
3122
|
-
return this.format(deepFindWithDefaults(data, defaultData,
|
|
3119
|
+
const p2 = key.split(this.formatSeparator);
|
|
3120
|
+
const k2 = p2.shift().trim();
|
|
3121
|
+
const f2 = p2.join(this.formatSeparator).trim();
|
|
3122
|
+
return this.format(deepFindWithDefaults(data, defaultData, k2, this.options.keySeparator, this.options.ignoreJSONStructure), f2, lng, {
|
|
3123
3123
|
...options,
|
|
3124
3124
|
...data,
|
|
3125
|
-
interpolationkey:
|
|
3125
|
+
interpolationkey: k2
|
|
3126
3126
|
});
|
|
3127
3127
|
};
|
|
3128
3128
|
this.resetRegExp();
|
|
@@ -3182,9 +3182,9 @@ var Interpolator = class {
|
|
|
3182
3182
|
const handleHasOptions = (key, inheritedOptions) => {
|
|
3183
3183
|
const sep = this.nestingOptionsSeparator;
|
|
3184
3184
|
if (!key.includes(sep)) return key;
|
|
3185
|
-
const
|
|
3186
|
-
let optionsString = `{${
|
|
3187
|
-
key =
|
|
3185
|
+
const c2 = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));
|
|
3186
|
+
let optionsString = `{${c2[1]}`;
|
|
3187
|
+
key = c2[0];
|
|
3188
3188
|
optionsString = this.interpolate(optionsString, clonedOptions);
|
|
3189
3189
|
const matchedSingleQuotes = optionsString.match(/'/g);
|
|
3190
3190
|
const matchedDoubleQuotes = optionsString.match(/"/g);
|
|
@@ -3225,7 +3225,7 @@ var Interpolator = class {
|
|
|
3225
3225
|
value = "";
|
|
3226
3226
|
}
|
|
3227
3227
|
if (formatters.length) {
|
|
3228
|
-
value = formatters.reduce((
|
|
3228
|
+
value = formatters.reduce((v2, f2) => this.format(v2, f2, options.lng, {
|
|
3229
3229
|
...options,
|
|
3230
3230
|
interpolationkey: match2[1].trim()
|
|
3231
3231
|
}), value.trim());
|
|
@@ -3240,9 +3240,9 @@ var parseFormatStr = (formatStr) => {
|
|
|
3240
3240
|
let formatName = formatStr.toLowerCase().trim();
|
|
3241
3241
|
const formatOptions = {};
|
|
3242
3242
|
if (formatStr.includes("(")) {
|
|
3243
|
-
const
|
|
3244
|
-
formatName =
|
|
3245
|
-
const optStr =
|
|
3243
|
+
const p2 = formatStr.split("(");
|
|
3244
|
+
formatName = p2[0].toLowerCase().trim();
|
|
3245
|
+
const optStr = p2[1].slice(0, -1);
|
|
3246
3246
|
if (formatName === "currency" && !optStr.includes(":")) {
|
|
3247
3247
|
if (!formatOptions.currency) formatOptions.currency = optStr.trim();
|
|
3248
3248
|
} else if (formatName === "relativetime" && !optStr.includes(":")) {
|
|
@@ -3269,24 +3269,24 @@ var parseFormatStr = (formatStr) => {
|
|
|
3269
3269
|
};
|
|
3270
3270
|
var createCachedFormatter = (fn) => {
|
|
3271
3271
|
const cache = {};
|
|
3272
|
-
return (
|
|
3273
|
-
let optForCache =
|
|
3274
|
-
if (
|
|
3272
|
+
return (v2, l2, o) => {
|
|
3273
|
+
let optForCache = o;
|
|
3274
|
+
if (o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey]) {
|
|
3275
3275
|
optForCache = {
|
|
3276
3276
|
...optForCache,
|
|
3277
|
-
[
|
|
3277
|
+
[o.interpolationkey]: void 0
|
|
3278
3278
|
};
|
|
3279
3279
|
}
|
|
3280
|
-
const key =
|
|
3280
|
+
const key = l2 + JSON.stringify(optForCache);
|
|
3281
3281
|
let frm = cache[key];
|
|
3282
3282
|
if (!frm) {
|
|
3283
|
-
frm = fn(getCleanedCode(
|
|
3283
|
+
frm = fn(getCleanedCode(l2), o);
|
|
3284
3284
|
cache[key] = frm;
|
|
3285
3285
|
}
|
|
3286
|
-
return frm(
|
|
3286
|
+
return frm(v2);
|
|
3287
3287
|
};
|
|
3288
3288
|
};
|
|
3289
|
-
var createNonCachedFormatter = (fn) => (
|
|
3289
|
+
var createNonCachedFormatter = (fn) => (v2, l2, o) => fn(getCleanedCode(l2), o)(v2);
|
|
3290
3290
|
var Formatter = class {
|
|
3291
3291
|
constructor(options = {}) {
|
|
3292
3292
|
this.logger = baseLogger.create("formatter");
|
|
@@ -3355,8 +3355,8 @@ var Formatter = class {
|
|
|
3355
3355
|
let formatted = mem;
|
|
3356
3356
|
try {
|
|
3357
3357
|
const valOptions = options?.formatParams?.[options.interpolationkey] || {};
|
|
3358
|
-
const
|
|
3359
|
-
formatted = this.formats[formatName](mem,
|
|
3358
|
+
const l2 = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;
|
|
3359
|
+
formatted = this.formats[formatName](mem, l2, {
|
|
3360
3360
|
...formatOptions,
|
|
3361
3361
|
...options,
|
|
3362
3362
|
...valOptions
|
|
@@ -3373,10 +3373,10 @@ var Formatter = class {
|
|
|
3373
3373
|
return result;
|
|
3374
3374
|
}
|
|
3375
3375
|
};
|
|
3376
|
-
var removePending = (
|
|
3377
|
-
if (
|
|
3378
|
-
delete
|
|
3379
|
-
|
|
3376
|
+
var removePending = (q2, name) => {
|
|
3377
|
+
if (q2.pending[name] !== void 0) {
|
|
3378
|
+
delete q2.pending[name];
|
|
3379
|
+
q2.pendingCount--;
|
|
3380
3380
|
}
|
|
3381
3381
|
};
|
|
3382
3382
|
var Connector = class extends EventEmitter {
|
|
@@ -3450,30 +3450,30 @@ var Connector = class extends EventEmitter {
|
|
|
3450
3450
|
this.state[name] = err2 ? -1 : 2;
|
|
3451
3451
|
if (err2 && data) this.state[name] = 0;
|
|
3452
3452
|
const loaded = {};
|
|
3453
|
-
this.queue.forEach((
|
|
3454
|
-
pushPath(
|
|
3455
|
-
removePending(
|
|
3456
|
-
if (err2)
|
|
3457
|
-
if (
|
|
3458
|
-
Object.keys(
|
|
3459
|
-
if (!loaded[
|
|
3460
|
-
const loadedKeys =
|
|
3453
|
+
this.queue.forEach((q2) => {
|
|
3454
|
+
pushPath(q2.loaded, [lng], ns);
|
|
3455
|
+
removePending(q2, name);
|
|
3456
|
+
if (err2) q2.errors.push(err2);
|
|
3457
|
+
if (q2.pendingCount === 0 && !q2.done) {
|
|
3458
|
+
Object.keys(q2.loaded).forEach((l2) => {
|
|
3459
|
+
if (!loaded[l2]) loaded[l2] = {};
|
|
3460
|
+
const loadedKeys = q2.loaded[l2];
|
|
3461
3461
|
if (loadedKeys.length) {
|
|
3462
3462
|
loadedKeys.forEach((n2) => {
|
|
3463
|
-
if (loaded[
|
|
3463
|
+
if (loaded[l2][n2] === void 0) loaded[l2][n2] = true;
|
|
3464
3464
|
});
|
|
3465
3465
|
}
|
|
3466
3466
|
});
|
|
3467
|
-
|
|
3468
|
-
if (
|
|
3469
|
-
|
|
3467
|
+
q2.done = true;
|
|
3468
|
+
if (q2.errors.length) {
|
|
3469
|
+
q2.callback(q2.errors);
|
|
3470
3470
|
} else {
|
|
3471
|
-
|
|
3471
|
+
q2.callback();
|
|
3472
3472
|
}
|
|
3473
3473
|
}
|
|
3474
3474
|
});
|
|
3475
3475
|
this.emit("loaded", loaded);
|
|
3476
|
-
this.queue = this.queue.filter((
|
|
3476
|
+
this.queue = this.queue.filter((q2) => !q2.done);
|
|
3477
3477
|
}
|
|
3478
3478
|
read(lng, ns, fcName, tried = 0, wait = this.retryTimeout, callback) {
|
|
3479
3479
|
if (!lng.length) return callback(null, {});
|
|
@@ -3506,11 +3506,11 @@ var Connector = class extends EventEmitter {
|
|
|
3506
3506
|
const fc = this.backend[fcName].bind(this.backend);
|
|
3507
3507
|
if (fc.length === 2) {
|
|
3508
3508
|
try {
|
|
3509
|
-
const
|
|
3510
|
-
if (
|
|
3511
|
-
|
|
3509
|
+
const r2 = fc(lng, ns);
|
|
3510
|
+
if (r2 && typeof r2.then === "function") {
|
|
3511
|
+
r2.then((data) => resolver(null, data)).catch(resolver);
|
|
3512
3512
|
} else {
|
|
3513
|
-
resolver(null,
|
|
3513
|
+
resolver(null, r2);
|
|
3514
3514
|
}
|
|
3515
3515
|
} catch (err2) {
|
|
3516
3516
|
resolver(err2);
|
|
@@ -3568,16 +3568,16 @@ var Connector = class extends EventEmitter {
|
|
|
3568
3568
|
const fc = this.backend.create.bind(this.backend);
|
|
3569
3569
|
if (fc.length < 6) {
|
|
3570
3570
|
try {
|
|
3571
|
-
let
|
|
3571
|
+
let r2;
|
|
3572
3572
|
if (fc.length === 5) {
|
|
3573
|
-
|
|
3573
|
+
r2 = fc(languages, namespace, key, fallbackValue, opts);
|
|
3574
3574
|
} else {
|
|
3575
|
-
|
|
3575
|
+
r2 = fc(languages, namespace, key, fallbackValue);
|
|
3576
3576
|
}
|
|
3577
|
-
if (
|
|
3578
|
-
|
|
3577
|
+
if (r2 && typeof r2.then === "function") {
|
|
3578
|
+
r2.then((data) => clb(null, data)).catch(clb);
|
|
3579
3579
|
} else {
|
|
3580
|
-
clb(null,
|
|
3580
|
+
clb(null, r2);
|
|
3581
3581
|
}
|
|
3582
3582
|
} catch (err2) {
|
|
3583
3583
|
clb(err2);
|
|
@@ -3771,8 +3771,8 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
3771
3771
|
this.translator.on("*", (event, ...args) => {
|
|
3772
3772
|
this.emit(event, ...args);
|
|
3773
3773
|
});
|
|
3774
|
-
this.modules.external.forEach((
|
|
3775
|
-
if (
|
|
3774
|
+
this.modules.external.forEach((m2) => {
|
|
3775
|
+
if (m2.init) m2.init(this);
|
|
3776
3776
|
});
|
|
3777
3777
|
}
|
|
3778
3778
|
this.format = this.options.interpolation.format;
|
|
@@ -3827,18 +3827,18 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
3827
3827
|
if (!lng) return;
|
|
3828
3828
|
if (lng === "cimode") return;
|
|
3829
3829
|
const lngs = this.services.languageUtils.toResolveHierarchy(lng);
|
|
3830
|
-
lngs.forEach((
|
|
3831
|
-
if (
|
|
3832
|
-
if (!toLoad.includes(
|
|
3830
|
+
lngs.forEach((l2) => {
|
|
3831
|
+
if (l2 === "cimode") return;
|
|
3832
|
+
if (!toLoad.includes(l2)) toLoad.push(l2);
|
|
3833
3833
|
});
|
|
3834
3834
|
};
|
|
3835
3835
|
if (!usedLng) {
|
|
3836
3836
|
const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
3837
|
-
fallbacks.forEach((
|
|
3837
|
+
fallbacks.forEach((l2) => append2(l2));
|
|
3838
3838
|
} else {
|
|
3839
3839
|
append2(usedLng);
|
|
3840
3840
|
}
|
|
3841
|
-
this.options.preload?.forEach?.((
|
|
3841
|
+
this.options.preload?.forEach?.((l2) => append2(l2));
|
|
3842
3842
|
this.services.backendConnector.load(toLoad, this.options.ns, (e2) => {
|
|
3843
3843
|
if (!e2 && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language);
|
|
3844
3844
|
usedCallback(e2);
|
|
@@ -3892,9 +3892,9 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
3892
3892
|
}
|
|
3893
3893
|
return this;
|
|
3894
3894
|
}
|
|
3895
|
-
setResolvedLanguage(
|
|
3896
|
-
if (!
|
|
3897
|
-
if (["cimode", "dev"].includes(
|
|
3895
|
+
setResolvedLanguage(l2) {
|
|
3896
|
+
if (!l2 || !this.languages) return;
|
|
3897
|
+
if (["cimode", "dev"].includes(l2)) return;
|
|
3898
3898
|
for (let li = 0; li < this.languages.length; li++) {
|
|
3899
3899
|
const lngInLngs = this.languages[li];
|
|
3900
3900
|
if (["cimode", "dev"].includes(lngInLngs)) continue;
|
|
@@ -3903,29 +3903,29 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
3903
3903
|
break;
|
|
3904
3904
|
}
|
|
3905
3905
|
}
|
|
3906
|
-
if (!this.resolvedLanguage && !this.languages.includes(
|
|
3907
|
-
this.resolvedLanguage =
|
|
3908
|
-
this.languages.unshift(
|
|
3906
|
+
if (!this.resolvedLanguage && !this.languages.includes(l2) && this.store.hasLanguageSomeTranslations(l2)) {
|
|
3907
|
+
this.resolvedLanguage = l2;
|
|
3908
|
+
this.languages.unshift(l2);
|
|
3909
3909
|
}
|
|
3910
3910
|
}
|
|
3911
3911
|
changeLanguage(lng, callback) {
|
|
3912
3912
|
this.isLanguageChangingTo = lng;
|
|
3913
3913
|
const deferred = defer();
|
|
3914
3914
|
this.emit("languageChanging", lng);
|
|
3915
|
-
const setLngProps = (
|
|
3916
|
-
this.language =
|
|
3917
|
-
this.languages = this.services.languageUtils.toResolveHierarchy(
|
|
3915
|
+
const setLngProps = (l2) => {
|
|
3916
|
+
this.language = l2;
|
|
3917
|
+
this.languages = this.services.languageUtils.toResolveHierarchy(l2);
|
|
3918
3918
|
this.resolvedLanguage = void 0;
|
|
3919
|
-
this.setResolvedLanguage(
|
|
3919
|
+
this.setResolvedLanguage(l2);
|
|
3920
3920
|
};
|
|
3921
|
-
const done = (err2,
|
|
3922
|
-
if (
|
|
3921
|
+
const done = (err2, l2) => {
|
|
3922
|
+
if (l2) {
|
|
3923
3923
|
if (this.isLanguageChangingTo === lng) {
|
|
3924
|
-
setLngProps(
|
|
3925
|
-
this.translator.changeLanguage(
|
|
3924
|
+
setLngProps(l2);
|
|
3925
|
+
this.translator.changeLanguage(l2);
|
|
3926
3926
|
this.isLanguageChangingTo = void 0;
|
|
3927
|
-
this.emit("languageChanged",
|
|
3928
|
-
this.logger.log("languageChanged",
|
|
3927
|
+
this.emit("languageChanged", l2);
|
|
3928
|
+
this.logger.log("languageChanged", l2);
|
|
3929
3929
|
}
|
|
3930
3930
|
} else {
|
|
3931
3931
|
this.isLanguageChangingTo = void 0;
|
|
@@ -3936,16 +3936,16 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
3936
3936
|
const setLng = (lngs) => {
|
|
3937
3937
|
if (!lng && !lngs && this.services.languageDetector) lngs = [];
|
|
3938
3938
|
const fl = isString(lngs) ? lngs : lngs && lngs[0];
|
|
3939
|
-
const
|
|
3940
|
-
if (
|
|
3939
|
+
const l2 = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);
|
|
3940
|
+
if (l2) {
|
|
3941
3941
|
if (!this.language) {
|
|
3942
|
-
setLngProps(
|
|
3942
|
+
setLngProps(l2);
|
|
3943
3943
|
}
|
|
3944
|
-
if (!this.translator.language) this.translator.changeLanguage(
|
|
3945
|
-
this.services.languageDetector?.cacheUserLanguage?.(
|
|
3944
|
+
if (!this.translator.language) this.translator.changeLanguage(l2);
|
|
3945
|
+
this.services.languageDetector?.cacheUserLanguage?.(l2);
|
|
3946
3946
|
}
|
|
3947
|
-
this.loadResources(
|
|
3948
|
-
done(err2,
|
|
3947
|
+
this.loadResources(l2, (err2) => {
|
|
3948
|
+
done(err2, l2);
|
|
3949
3949
|
});
|
|
3950
3950
|
};
|
|
3951
3951
|
if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {
|
|
@@ -3963,35 +3963,35 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
3963
3963
|
}
|
|
3964
3964
|
getFixedT(lng, ns, keyPrefix) {
|
|
3965
3965
|
const fixedT = (key, opts, ...rest) => {
|
|
3966
|
-
let
|
|
3966
|
+
let o;
|
|
3967
3967
|
if (typeof opts !== "object") {
|
|
3968
|
-
|
|
3968
|
+
o = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));
|
|
3969
3969
|
} else {
|
|
3970
|
-
|
|
3970
|
+
o = {
|
|
3971
3971
|
...opts
|
|
3972
3972
|
};
|
|
3973
3973
|
}
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
if (
|
|
3974
|
+
o.lng = o.lng || fixedT.lng;
|
|
3975
|
+
o.lngs = o.lngs || fixedT.lngs;
|
|
3976
|
+
o.ns = o.ns || fixedT.ns;
|
|
3977
|
+
if (o.keyPrefix !== "") o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;
|
|
3978
3978
|
const selectorOpts = {
|
|
3979
3979
|
...this.options,
|
|
3980
|
-
...
|
|
3980
|
+
...o
|
|
3981
3981
|
};
|
|
3982
|
-
if (typeof
|
|
3982
|
+
if (typeof o.keyPrefix === "function") o.keyPrefix = keysFromSelector(o.keyPrefix, selectorOpts);
|
|
3983
3983
|
const keySeparator = this.options.keySeparator || ".";
|
|
3984
3984
|
let resultKey;
|
|
3985
|
-
if (
|
|
3986
|
-
resultKey = key.map((
|
|
3987
|
-
if (typeof
|
|
3988
|
-
return `${
|
|
3985
|
+
if (o.keyPrefix && Array.isArray(key)) {
|
|
3986
|
+
resultKey = key.map((k2) => {
|
|
3987
|
+
if (typeof k2 === "function") k2 = keysFromSelector(k2, selectorOpts);
|
|
3988
|
+
return `${o.keyPrefix}${keySeparator}${k2}`;
|
|
3989
3989
|
});
|
|
3990
3990
|
} else {
|
|
3991
3991
|
if (typeof key === "function") key = keysFromSelector(key, selectorOpts);
|
|
3992
|
-
resultKey =
|
|
3992
|
+
resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
|
|
3993
3993
|
}
|
|
3994
|
-
return this.t(resultKey,
|
|
3994
|
+
return this.t(resultKey, o);
|
|
3995
3995
|
};
|
|
3996
3996
|
if (isString(lng)) {
|
|
3997
3997
|
fixedT.lng = lng;
|
|
@@ -4024,8 +4024,8 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
4024
4024
|
const fallbackLng = this.options ? this.options.fallbackLng : false;
|
|
4025
4025
|
const lastLng = this.languages[this.languages.length - 1];
|
|
4026
4026
|
if (lng.toLowerCase() === "cimode") return true;
|
|
4027
|
-
const loadNotPending = (
|
|
4028
|
-
const loadState = this.services.backendConnector.state[`${
|
|
4027
|
+
const loadNotPending = (l2, n2) => {
|
|
4028
|
+
const loadState = this.services.backendConnector.state[`${l2}|${n2}`];
|
|
4029
4029
|
return loadState === -1 || loadState === 0 || loadState === 2;
|
|
4030
4030
|
};
|
|
4031
4031
|
if (options.precheck) {
|
|
@@ -4073,9 +4073,9 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
4073
4073
|
if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);
|
|
4074
4074
|
if (!lng) return "rtl";
|
|
4075
4075
|
try {
|
|
4076
|
-
const
|
|
4077
|
-
if (
|
|
4078
|
-
const ti =
|
|
4076
|
+
const l2 = new Intl.Locale(lng);
|
|
4077
|
+
if (l2 && l2.getTextInfo) {
|
|
4078
|
+
const ti = l2.getTextInfo();
|
|
4079
4079
|
if (ti && ti.direction) return ti.direction;
|
|
4080
4080
|
}
|
|
4081
4081
|
} catch (e2) {
|
|
@@ -4105,8 +4105,8 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
4105
4105
|
clone.logger = clone.logger.clone(options);
|
|
4106
4106
|
}
|
|
4107
4107
|
const membersToCopy = ["store", "services", "language"];
|
|
4108
|
-
membersToCopy.forEach((
|
|
4109
|
-
clone[
|
|
4108
|
+
membersToCopy.forEach((m2) => {
|
|
4109
|
+
clone[m2] = this[m2];
|
|
4110
4110
|
});
|
|
4111
4111
|
clone.services = {
|
|
4112
4112
|
...this.services
|
|
@@ -4115,16 +4115,16 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
4115
4115
|
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
|
|
4116
4116
|
};
|
|
4117
4117
|
if (forkResourceStore) {
|
|
4118
|
-
const clonedData = Object.keys(this.store.data).reduce((prev2,
|
|
4119
|
-
prev2[
|
|
4120
|
-
...this.store.data[
|
|
4118
|
+
const clonedData = Object.keys(this.store.data).reduce((prev2, l2) => {
|
|
4119
|
+
prev2[l2] = {
|
|
4120
|
+
...this.store.data[l2]
|
|
4121
4121
|
};
|
|
4122
|
-
prev2[
|
|
4122
|
+
prev2[l2] = Object.keys(prev2[l2]).reduce((acc, n2) => {
|
|
4123
4123
|
acc[n2] = {
|
|
4124
|
-
...prev2[
|
|
4124
|
+
...prev2[l2][n2]
|
|
4125
4125
|
};
|
|
4126
4126
|
return acc;
|
|
4127
|
-
}, prev2[
|
|
4127
|
+
}, prev2[l2]);
|
|
4128
4128
|
return prev2;
|
|
4129
4129
|
}, {});
|
|
4130
4130
|
clone.store = new ResourceStore(clonedData, mergedOptions);
|
|
@@ -4276,7 +4276,7 @@ var htmlEntities = {
|
|
|
4276
4276
|
"/": "/",
|
|
4277
4277
|
"/": "/"
|
|
4278
4278
|
};
|
|
4279
|
-
var unescapeHtmlEntity = (
|
|
4279
|
+
var unescapeHtmlEntity = (m2) => htmlEntities[m2];
|
|
4280
4280
|
var unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
4281
4281
|
|
|
4282
4282
|
// node_modules/react-i18next/dist/es/defaults.js
|
|
@@ -4563,7 +4563,7 @@ var commonEntities = {
|
|
|
4563
4563
|
"ℵ": "\u2135"
|
|
4564
4564
|
};
|
|
4565
4565
|
var entityPattern = new RegExp(Object.keys(commonEntities).map((entity) => entity.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|"), "g");
|
|
4566
|
-
var decodeHtmlEntities = (text) => text.replace(entityPattern, (match2) => commonEntities[match2]).replace(/&#(\d+);/g, (
|
|
4566
|
+
var decodeHtmlEntities = (text) => text.replace(entityPattern, (match2) => commonEntities[match2]).replace(/&#(\d+);/g, (_2, num) => String.fromCharCode(parseInt(num, 10))).replace(/&#x([0-9a-fA-F]+);/g, (_2, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
4567
4567
|
|
|
4568
4568
|
// node_modules/react-i18next/dist/es/IcuTransUtils/tokenizer.js
|
|
4569
4569
|
var tokenize = (translation) => {
|
|
@@ -4740,7 +4740,7 @@ function IcuTransWithoutContext({
|
|
|
4740
4740
|
});
|
|
4741
4741
|
return React2.createElement(React2.Fragment, {}, defaultTranslation);
|
|
4742
4742
|
}
|
|
4743
|
-
const t3 = tFromProps || i18n.t?.bind(i18n) || ((
|
|
4743
|
+
const t3 = tFromProps || i18n.t?.bind(i18n) || ((k2) => k2);
|
|
4744
4744
|
let namespaces = ns || t3.ns || i18n.options?.defaultNS;
|
|
4745
4745
|
namespaces = isString2(namespaces) ? [namespaces] : namespaces || ["translation"];
|
|
4746
4746
|
let mergedValues = values;
|
|
@@ -4821,10 +4821,10 @@ var useTranslation = (ns, props = {}) => {
|
|
|
4821
4821
|
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
|
4822
4822
|
if (!i18n) {
|
|
4823
4823
|
warnOnce(i18n, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
4824
|
-
const notReadyT = (
|
|
4824
|
+
const notReadyT = (k2, optsOrDefaultValue) => {
|
|
4825
4825
|
if (isString2(optsOrDefaultValue)) return optsOrDefaultValue;
|
|
4826
4826
|
if (isObject(optsOrDefaultValue) && isString2(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;
|
|
4827
|
-
return Array.isArray(
|
|
4827
|
+
return Array.isArray(k2) ? k2[k2.length - 1] : k2;
|
|
4828
4828
|
};
|
|
4829
4829
|
const retNotReady = [notReadyT, {}, false];
|
|
4830
4830
|
retNotReady.t = notReadyT;
|
|
@@ -5139,7 +5139,7 @@ var isPropValid = /* @__PURE__ */ memoize(
|
|
|
5139
5139
|
/* Z+1 */
|
|
5140
5140
|
);
|
|
5141
5141
|
|
|
5142
|
-
// node_modules
|
|
5142
|
+
// node_modules/styled-components/dist/styled-components.browser.esm.js
|
|
5143
5143
|
import t2, { createElement as n } from "react";
|
|
5144
5144
|
|
|
5145
5145
|
// node_modules/stylis/src/Enum.js
|
|
@@ -5481,10 +5481,10 @@ function ruleset(value, root, parent, index, offset, rules, points, type, props,
|
|
|
5481
5481
|
var post = offset - 1;
|
|
5482
5482
|
var rule = offset === 0 ? rules : [""];
|
|
5483
5483
|
var size = sizeof(rule);
|
|
5484
|
-
for (var i2 = 0,
|
|
5485
|
-
for (var
|
|
5486
|
-
if (
|
|
5487
|
-
props[
|
|
5484
|
+
for (var i2 = 0, j2 = 0, k2 = 0; i2 < index; ++i2)
|
|
5485
|
+
for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i2])), z2 = value; x2 < size; ++x2)
|
|
5486
|
+
if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
|
|
5487
|
+
props[k2++] = z2;
|
|
5488
5488
|
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
|
|
5489
5489
|
}
|
|
5490
5490
|
function comment(value, root, parent, siblings) {
|
|
@@ -5653,8 +5653,8 @@ function prefix(value, length2, children) {
|
|
|
5653
5653
|
// grid-(column|row)
|
|
5654
5654
|
case 5152:
|
|
5655
5655
|
case 5920:
|
|
5656
|
-
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(
|
|
5657
|
-
return MS +
|
|
5656
|
+
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a2, b2, c2, d2, e2, f2) {
|
|
5657
|
+
return MS + a2 + ":" + b2 + f2 + (c2 ? MS + a2 + "-span:" + (d2 ? e2 : +e2 - +b2) + f2 : "") + value;
|
|
5658
5658
|
});
|
|
5659
5659
|
// position: sticky
|
|
5660
5660
|
case 4949:
|
|
@@ -5761,15 +5761,15 @@ function prefixer(element, index, children, callback) {
|
|
|
5761
5761
|
}
|
|
5762
5762
|
}
|
|
5763
5763
|
|
|
5764
|
-
// node_modules
|
|
5764
|
+
// node_modules/styled-components/dist/styled-components.browser.esm.js
|
|
5765
5765
|
var r;
|
|
5766
5766
|
var i;
|
|
5767
|
-
var
|
|
5768
|
-
var
|
|
5767
|
+
var c = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
5768
|
+
var a = "active";
|
|
5769
5769
|
var l = "data-styled-version";
|
|
5770
|
-
var u = "6.4.
|
|
5771
|
-
var
|
|
5772
|
-
var
|
|
5770
|
+
var u = "6.4.1";
|
|
5771
|
+
var h = "/*!sc*/\n";
|
|
5772
|
+
var d = "undefined" != typeof window && "undefined" != typeof document;
|
|
5773
5773
|
function p(e2) {
|
|
5774
5774
|
if ("undefined" != typeof process && void 0 !== process.env) {
|
|
5775
5775
|
const t3 = process.env[e2];
|
|
@@ -5779,37 +5779,37 @@ function p(e2) {
|
|
|
5779
5779
|
var f = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r = p("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r ? r : p("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined" == typeof process || void 0 === process.env || true);
|
|
5780
5780
|
var m = "sc-keyframes-";
|
|
5781
5781
|
var y = {};
|
|
5782
|
-
var g = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string.
|
|
5782
|
+
var g = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n\n", 18: "Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledCompoent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n" } : {};
|
|
5783
5783
|
function v(e2, ...t3) {
|
|
5784
5784
|
return false ? new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e2} for more information.${t3.length > 0 ? ` Args: ${t3.join(", ")}` : ""}`) : new Error((function(...e3) {
|
|
5785
5785
|
let t4 = e3[0];
|
|
5786
5786
|
const n2 = [];
|
|
5787
|
-
for (let t5 = 1,
|
|
5787
|
+
for (let t5 = 1, o = e3.length; t5 < o; t5 += 1) n2.push(e3[t5]);
|
|
5788
5788
|
return n2.forEach((e4) => {
|
|
5789
5789
|
t4 = t4.replace(/%[a-z]/, e4);
|
|
5790
5790
|
}), t4;
|
|
5791
5791
|
})(g[e2], ...t3).trim());
|
|
5792
5792
|
}
|
|
5793
5793
|
var S = 1 << 30;
|
|
5794
|
-
var w = /* @__PURE__ */ new Map();
|
|
5795
5794
|
var b = /* @__PURE__ */ new Map();
|
|
5795
|
+
var w = /* @__PURE__ */ new Map();
|
|
5796
5796
|
var N = 1;
|
|
5797
5797
|
var C = (e2) => {
|
|
5798
|
-
if (
|
|
5799
|
-
for (;
|
|
5798
|
+
if (b.has(e2)) return b.get(e2);
|
|
5799
|
+
for (; w.has(N); ) N++;
|
|
5800
5800
|
const t3 = N++;
|
|
5801
5801
|
if ((0 | t3) < 0 || t3 > S) throw v(16, `${t3}`);
|
|
5802
|
-
return
|
|
5802
|
+
return b.set(e2, t3), w.set(t3, e2), t3;
|
|
5803
5803
|
};
|
|
5804
|
-
var O = (e2) =>
|
|
5804
|
+
var O = (e2) => w.get(e2);
|
|
5805
5805
|
var E = (e2, t3) => {
|
|
5806
|
-
N = t3 + 1,
|
|
5806
|
+
N = t3 + 1, b.set(e2, t3), w.set(t3, e2);
|
|
5807
5807
|
};
|
|
5808
|
-
var
|
|
5809
|
-
var
|
|
5808
|
+
var A = /invalid hook call/i;
|
|
5809
|
+
var P = /* @__PURE__ */ new Set();
|
|
5810
5810
|
var _ = (e2, n2) => {
|
|
5811
5811
|
if (true) {
|
|
5812
|
-
const
|
|
5812
|
+
const o = `The component ${e2}${n2 ? ` with the id of "${n2}"` : ""} has been created dynamically.
|
|
5813
5813
|
You may see this warning because you've called styled inside another component.
|
|
5814
5814
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5815
5815
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
@@ -5817,10 +5817,10 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
5817
5817
|
try {
|
|
5818
5818
|
let e3 = true;
|
|
5819
5819
|
console.error = (t3, ...n3) => {
|
|
5820
|
-
|
|
5821
|
-
}, "function" == typeof t2.useState && t2.useState(null), e3 && !
|
|
5820
|
+
A.test(t3) ? (e3 = false, P.delete(o)) : s(t3, ...n3);
|
|
5821
|
+
}, "function" == typeof t2.useState && t2.useState(null), e3 && !P.has(o) && (console.warn(o), P.add(o));
|
|
5822
5822
|
} catch (e3) {
|
|
5823
|
-
|
|
5823
|
+
A.test(e3.message) && P.delete(o);
|
|
5824
5824
|
} finally {
|
|
5825
5825
|
console.error = s;
|
|
5826
5826
|
}
|
|
@@ -5833,15 +5833,15 @@ function R(e2, t3, n2 = $) {
|
|
|
5833
5833
|
}
|
|
5834
5834
|
var j = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
|
|
5835
5835
|
var x = /(^-|-$)/g;
|
|
5836
|
-
function
|
|
5836
|
+
function T(e2) {
|
|
5837
5837
|
return e2.replace(j, "-").replace(x, "");
|
|
5838
5838
|
}
|
|
5839
|
-
var
|
|
5840
|
-
var
|
|
5839
|
+
var k = /(a)(d)/gi;
|
|
5840
|
+
var D = (e2) => String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
|
|
5841
5841
|
function V(e2) {
|
|
5842
5842
|
let t3, n2 = "";
|
|
5843
|
-
for (t3 = Math.abs(e2); t3 > 52; t3 = t3 / 52 | 0) n2 =
|
|
5844
|
-
return (
|
|
5843
|
+
for (t3 = Math.abs(e2); t3 > 52; t3 = t3 / 52 | 0) n2 = D(t3 % 52) + n2;
|
|
5844
|
+
return (D(t3 % 52) + n2).replace(k, "$1-$2");
|
|
5845
5845
|
}
|
|
5846
5846
|
var M = 5381;
|
|
5847
5847
|
var G = (e2, t3) => {
|
|
@@ -5868,27 +5868,27 @@ var Y = { contextType: true, defaultProps: true, displayName: true, getDerivedSt
|
|
|
5868
5868
|
var U = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
|
|
5869
5869
|
var J = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
|
|
5870
5870
|
var X = { [H]: { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, [q]: J };
|
|
5871
|
-
function
|
|
5871
|
+
function K(e2) {
|
|
5872
5872
|
return ("type" in (t3 = e2) && t3.type.$$typeof) === q ? J : "$$typeof" in e2 ? X[e2.$$typeof] : Y;
|
|
5873
5873
|
var t3;
|
|
5874
5874
|
}
|
|
5875
|
-
var
|
|
5876
|
-
var
|
|
5875
|
+
var Q = Object.defineProperty;
|
|
5876
|
+
var Z = Object.getOwnPropertyNames;
|
|
5877
5877
|
var ee = Object.getOwnPropertySymbols;
|
|
5878
5878
|
var te = Object.getOwnPropertyDescriptor;
|
|
5879
5879
|
var ne = Object.getPrototypeOf;
|
|
5880
5880
|
var oe = Object.prototype;
|
|
5881
5881
|
function se(e2, t3, n2) {
|
|
5882
5882
|
if ("string" != typeof t3) {
|
|
5883
|
-
const
|
|
5884
|
-
|
|
5885
|
-
const s =
|
|
5886
|
-
for (let
|
|
5887
|
-
const
|
|
5888
|
-
if (!(
|
|
5889
|
-
const n3 = te(t3,
|
|
5883
|
+
const o = ne(t3);
|
|
5884
|
+
o && o !== oe && se(e2, o, n2);
|
|
5885
|
+
const s = Z(t3).concat(ee(t3)), r2 = K(e2), i2 = K(t3);
|
|
5886
|
+
for (let o2 = 0; o2 < s.length; ++o2) {
|
|
5887
|
+
const c2 = s[o2];
|
|
5888
|
+
if (!(c2 in U || n2 && n2[c2] || i2 && c2 in i2 || r2 && c2 in r2)) {
|
|
5889
|
+
const n3 = te(t3, c2);
|
|
5890
5890
|
try {
|
|
5891
|
-
|
|
5891
|
+
Q(e2, c2, n3);
|
|
5892
5892
|
} catch (e3) {
|
|
5893
5893
|
}
|
|
5894
5894
|
}
|
|
@@ -5902,10 +5902,10 @@ function re(e2) {
|
|
|
5902
5902
|
function ie(e2) {
|
|
5903
5903
|
return "object" == typeof e2 && "styledComponentId" in e2;
|
|
5904
5904
|
}
|
|
5905
|
-
function
|
|
5905
|
+
function ce(e2, t3) {
|
|
5906
5906
|
return e2 && t3 ? e2 + " " + t3 : e2 || t3 || "";
|
|
5907
5907
|
}
|
|
5908
|
-
function
|
|
5908
|
+
function ae(e2, t3) {
|
|
5909
5909
|
return e2.join(t3 || "");
|
|
5910
5910
|
}
|
|
5911
5911
|
function le(e2) {
|
|
@@ -5917,10 +5917,10 @@ function ue(e2, t3, n2 = false) {
|
|
|
5917
5917
|
else if (le(t3)) for (const n3 in t3) e2[n3] = ue(e2[n3], t3[n3]);
|
|
5918
5918
|
return e2;
|
|
5919
5919
|
}
|
|
5920
|
-
function
|
|
5920
|
+
function he(e2, t3) {
|
|
5921
5921
|
Object.defineProperty(e2, "toString", { value: t3 });
|
|
5922
5922
|
}
|
|
5923
|
-
var
|
|
5923
|
+
var de = class {
|
|
5924
5924
|
constructor(e2) {
|
|
5925
5925
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2, this._cGroup = 0, this._cIndex = 0;
|
|
5926
5926
|
}
|
|
@@ -5934,33 +5934,33 @@ var he = class {
|
|
|
5934
5934
|
insertRules(e2, t3) {
|
|
5935
5935
|
if (e2 >= this.groupSizes.length) {
|
|
5936
5936
|
const t4 = this.groupSizes, n3 = t4.length;
|
|
5937
|
-
let
|
|
5938
|
-
for (; e2 >=
|
|
5939
|
-
this.groupSizes = new Uint32Array(
|
|
5940
|
-
for (let e3 = n3; e3 <
|
|
5937
|
+
let o2 = n3;
|
|
5938
|
+
for (; e2 >= o2; ) if (o2 <<= 1, o2 < 0) throw v(16, `${e2}`);
|
|
5939
|
+
this.groupSizes = new Uint32Array(o2), this.groupSizes.set(t4), this.length = o2;
|
|
5940
|
+
for (let e3 = n3; e3 < o2; e3++) this.groupSizes[e3] = 0;
|
|
5941
5941
|
}
|
|
5942
|
-
let n2 = this.indexOfGroup(e2 + 1),
|
|
5943
|
-
for (let s = 0,
|
|
5944
|
-
|
|
5942
|
+
let n2 = this.indexOfGroup(e2 + 1), o = 0;
|
|
5943
|
+
for (let s = 0, r2 = t3.length; s < r2; s++) this.tag.insertRule(n2, t3[s]) && (this.groupSizes[e2]++, n2++, o++);
|
|
5944
|
+
o > 0 && this._cGroup > e2 && (this._cIndex += o);
|
|
5945
5945
|
}
|
|
5946
5946
|
clearGroup(e2) {
|
|
5947
5947
|
if (e2 < this.length) {
|
|
5948
|
-
const t3 = this.groupSizes[e2], n2 = this.indexOfGroup(e2),
|
|
5948
|
+
const t3 = this.groupSizes[e2], n2 = this.indexOfGroup(e2), o = n2 + t3;
|
|
5949
5949
|
this.groupSizes[e2] = 0;
|
|
5950
|
-
for (let e3 = n2; e3 <
|
|
5950
|
+
for (let e3 = n2; e3 < o; e3++) this.tag.deleteRule(n2);
|
|
5951
5951
|
t3 > 0 && this._cGroup > e2 && (this._cIndex -= t3);
|
|
5952
5952
|
}
|
|
5953
5953
|
}
|
|
5954
5954
|
getGroup(e2) {
|
|
5955
5955
|
let t3 = "";
|
|
5956
5956
|
if (e2 >= this.length || 0 === this.groupSizes[e2]) return t3;
|
|
5957
|
-
const n2 = this.groupSizes[e2],
|
|
5958
|
-
for (let e3 =
|
|
5957
|
+
const n2 = this.groupSizes[e2], o = this.indexOfGroup(e2), s = o + n2;
|
|
5958
|
+
for (let e3 = o; e3 < s; e3++) t3 += this.tag.getRule(e3) + h;
|
|
5959
5959
|
return t3;
|
|
5960
5960
|
}
|
|
5961
5961
|
};
|
|
5962
|
-
var pe = `style[${
|
|
5963
|
-
var fe = new RegExp(`^${
|
|
5962
|
+
var pe = `style[${c}][${l}="${u}"]`;
|
|
5963
|
+
var fe = new RegExp(`^${c}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
|
|
5964
5964
|
var me = (e2) => "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
|
|
5965
5965
|
var ye = (e2) => {
|
|
5966
5966
|
if (!e2) return document;
|
|
@@ -5972,49 +5972,49 @@ var ye = (e2) => {
|
|
|
5972
5972
|
return document;
|
|
5973
5973
|
};
|
|
5974
5974
|
var ge = (e2, t3, n2) => {
|
|
5975
|
-
const
|
|
5975
|
+
const o = n2.split(",");
|
|
5976
5976
|
let s;
|
|
5977
|
-
for (let n3 = 0,
|
|
5977
|
+
for (let n3 = 0, r2 = o.length; n3 < r2; n3++) (s = o[n3]) && e2.registerName(t3, s);
|
|
5978
5978
|
};
|
|
5979
5979
|
var ve = (e2, t3) => {
|
|
5980
5980
|
var n2;
|
|
5981
|
-
const
|
|
5982
|
-
for (let t4 = 0, n3 =
|
|
5983
|
-
const n4 =
|
|
5981
|
+
const o = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(h), s = [];
|
|
5982
|
+
for (let t4 = 0, n3 = o.length; t4 < n3; t4++) {
|
|
5983
|
+
const n4 = o[t4].trim();
|
|
5984
5984
|
if (!n4) continue;
|
|
5985
|
-
const
|
|
5986
|
-
if (
|
|
5987
|
-
const t5 = 0 | parseInt(
|
|
5988
|
-
0 !== t5 && (E(n5, t5), ge(e2, n5,
|
|
5985
|
+
const r2 = n4.match(fe);
|
|
5986
|
+
if (r2) {
|
|
5987
|
+
const t5 = 0 | parseInt(r2[1], 10), n5 = r2[2];
|
|
5988
|
+
0 !== t5 && (E(n5, t5), ge(e2, n5, r2[3]), e2.getTag().insertRules(t5, s)), s.length = 0;
|
|
5989
5989
|
} else s.push(n4);
|
|
5990
5990
|
}
|
|
5991
5991
|
};
|
|
5992
5992
|
var Se = (e2) => {
|
|
5993
5993
|
const t3 = ye(e2.options.target).querySelectorAll(pe);
|
|
5994
|
-
for (let n2 = 0,
|
|
5995
|
-
const
|
|
5996
|
-
|
|
5994
|
+
for (let n2 = 0, o = t3.length; n2 < o; n2++) {
|
|
5995
|
+
const o2 = t3[n2];
|
|
5996
|
+
o2 && o2.getAttribute(c) !== a && (ve(e2, o2), o2.parentNode && o2.parentNode.removeChild(o2));
|
|
5997
5997
|
}
|
|
5998
5998
|
};
|
|
5999
|
-
var
|
|
6000
|
-
function
|
|
6001
|
-
if (false !==
|
|
5999
|
+
var be = false;
|
|
6000
|
+
function we() {
|
|
6001
|
+
if (false !== be) return be;
|
|
6002
6002
|
if ("undefined" != typeof document) {
|
|
6003
6003
|
const e2 = document.head.querySelector('meta[property="csp-nonce"]');
|
|
6004
|
-
if (e2) return
|
|
6004
|
+
if (e2) return be = e2.nonce || e2.getAttribute("content") || void 0;
|
|
6005
6005
|
const t3 = document.head.querySelector('meta[name="sc-nonce"]');
|
|
6006
|
-
if (t3) return
|
|
6006
|
+
if (t3) return be = t3.getAttribute("content") || void 0;
|
|
6007
6007
|
}
|
|
6008
|
-
return
|
|
6008
|
+
return be = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
|
|
6009
6009
|
}
|
|
6010
6010
|
var Ne = (e2, t3) => {
|
|
6011
|
-
const n2 = document.head,
|
|
6012
|
-
const t4 = Array.from(e3.querySelectorAll(`style[${
|
|
6011
|
+
const n2 = document.head, o = e2 || n2, s = document.createElement("style"), r2 = ((e3) => {
|
|
6012
|
+
const t4 = Array.from(e3.querySelectorAll(`style[${c}]`));
|
|
6013
6013
|
return t4[t4.length - 1];
|
|
6014
|
-
})(
|
|
6015
|
-
s.setAttribute(
|
|
6016
|
-
const
|
|
6017
|
-
return
|
|
6014
|
+
})(o), i2 = void 0 !== r2 ? r2.nextSibling : null;
|
|
6015
|
+
s.setAttribute(c, a), s.setAttribute(l, u);
|
|
6016
|
+
const h2 = t3 || we();
|
|
6017
|
+
return h2 && s.setAttribute("nonce", h2), o.insertBefore(s, i2), s;
|
|
6018
6018
|
};
|
|
6019
6019
|
var Ce = class {
|
|
6020
6020
|
constructor(e2, t3) {
|
|
@@ -6022,9 +6022,9 @@ var Ce = class {
|
|
|
6022
6022
|
var t4;
|
|
6023
6023
|
if (e3.sheet) return e3.sheet;
|
|
6024
6024
|
const n2 = null !== (t4 = e3.getRootNode().styleSheets) && void 0 !== t4 ? t4 : document.styleSheets;
|
|
6025
|
-
for (let t5 = 0,
|
|
6026
|
-
const
|
|
6027
|
-
if (
|
|
6025
|
+
for (let t5 = 0, o = n2.length; t5 < o; t5++) {
|
|
6026
|
+
const o2 = n2[t5];
|
|
6027
|
+
if (o2.ownerNode === e3) return o2;
|
|
6028
6028
|
}
|
|
6029
6029
|
throw v(17);
|
|
6030
6030
|
})(this.element), this.length = 0;
|
|
@@ -6062,48 +6062,48 @@ var Oe = class {
|
|
|
6062
6062
|
return e2 < this.length ? this.nodes[e2].textContent : "";
|
|
6063
6063
|
}
|
|
6064
6064
|
};
|
|
6065
|
-
var Ee =
|
|
6066
|
-
var
|
|
6067
|
-
var
|
|
6065
|
+
var Ee = d;
|
|
6066
|
+
var Ae = { isServer: !d, useCSSOMInjection: !f };
|
|
6067
|
+
var Pe = class _Pe {
|
|
6068
6068
|
static registerId(e2) {
|
|
6069
6069
|
return C(e2);
|
|
6070
6070
|
}
|
|
6071
6071
|
constructor(e2 = $, t3 = {}, n2) {
|
|
6072
|
-
this.options = Object.assign(Object.assign({},
|
|
6072
|
+
this.options = Object.assign(Object.assign({}, Ae), e2), this.gs = t3, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e2.isServer, !this.server && d && Ee && (Ee = false, Se(this)), he(this, () => ((e3) => {
|
|
6073
6073
|
const t4 = e3.getTag(), { length: n3 } = t4;
|
|
6074
|
-
let
|
|
6074
|
+
let o = "";
|
|
6075
6075
|
for (let s = 0; s < n3; s++) {
|
|
6076
6076
|
const n4 = O(s);
|
|
6077
6077
|
if (void 0 === n4) continue;
|
|
6078
|
-
const
|
|
6079
|
-
if (void 0 ===
|
|
6078
|
+
const r2 = e3.names.get(n4);
|
|
6079
|
+
if (void 0 === r2 || !r2.size) continue;
|
|
6080
6080
|
const i2 = t4.getGroup(s);
|
|
6081
6081
|
if (0 === i2.length) continue;
|
|
6082
|
-
const
|
|
6083
|
-
let
|
|
6084
|
-
for (const e4 of
|
|
6085
|
-
|
|
6082
|
+
const a2 = c + ".g" + s + '[id="' + n4 + '"]';
|
|
6083
|
+
let l2 = "";
|
|
6084
|
+
for (const e4 of r2) e4.length > 0 && (l2 += e4 + ",");
|
|
6085
|
+
o += i2 + a2 + '{content:"' + l2 + '"}' + h;
|
|
6086
6086
|
}
|
|
6087
|
-
return
|
|
6087
|
+
return o;
|
|
6088
6088
|
})(this));
|
|
6089
6089
|
}
|
|
6090
6090
|
rehydrate() {
|
|
6091
|
-
!this.server &&
|
|
6091
|
+
!this.server && d && Se(this);
|
|
6092
6092
|
}
|
|
6093
6093
|
reconstructWithOptions(e2, t3 = true) {
|
|
6094
|
-
const n2 = new
|
|
6095
|
-
return n2.keyframeIds = new Set(this.keyframeIds), !this.server &&
|
|
6094
|
+
const n2 = new _Pe(Object.assign(Object.assign({}, this.options), e2), this.gs, t3 && this.names || void 0);
|
|
6095
|
+
return n2.keyframeIds = new Set(this.keyframeIds), !this.server && d && e2.target !== this.options.target && ye(this.options.target) !== ye(e2.target) && Se(n2), n2;
|
|
6096
6096
|
}
|
|
6097
6097
|
allocateGSInstance(e2) {
|
|
6098
6098
|
return this.gs[e2] = (this.gs[e2] || 0) + 1;
|
|
6099
6099
|
}
|
|
6100
6100
|
getTag() {
|
|
6101
|
-
return this.tag || (this.tag = (e2 = (({ useCSSOMInjection: e3, target: t3, nonce: n2 }) => e3 ? new Ce(t3, n2) : new Oe(t3, n2))(this.options), new
|
|
6101
|
+
return this.tag || (this.tag = (e2 = (({ useCSSOMInjection: e3, target: t3, nonce: n2 }) => e3 ? new Ce(t3, n2) : new Oe(t3, n2))(this.options), new de(e2)));
|
|
6102
6102
|
var e2;
|
|
6103
6103
|
}
|
|
6104
6104
|
hasNameForId(e2, t3) {
|
|
6105
|
-
var n2,
|
|
6106
|
-
return null !== (
|
|
6105
|
+
var n2, o;
|
|
6106
|
+
return null !== (o = null === (n2 = this.names.get(e2)) || void 0 === n2 ? void 0 : n2.has(t3)) && void 0 !== o && o;
|
|
6107
6107
|
}
|
|
6108
6108
|
registerName(e2, t3) {
|
|
6109
6109
|
C(e2), e2.startsWith(m) && this.keyframeIds.add(e2);
|
|
@@ -6128,24 +6128,24 @@ var Ie = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, bor
|
|
|
6128
6128
|
function $e(e2, t3) {
|
|
6129
6129
|
return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in Ie || e2.startsWith("--") ? String(t3).trim() : t3 + "px";
|
|
6130
6130
|
}
|
|
6131
|
-
var Re =
|
|
6131
|
+
var Re = 47;
|
|
6132
6132
|
function je(e2) {
|
|
6133
|
+
if (45 === e2.charCodeAt(0) && 45 === e2.charCodeAt(1)) return e2;
|
|
6133
6134
|
let t3 = "";
|
|
6134
6135
|
for (let n2 = 0; n2 < e2.length; n2++) {
|
|
6135
|
-
const
|
|
6136
|
-
|
|
6137
|
-
Re(o2) ? t3 += "-" + o2.toLowerCase() : t3 += o2;
|
|
6136
|
+
const o = e2.charCodeAt(n2);
|
|
6137
|
+
t3 += o >= 65 && o <= 90 ? "-" + String.fromCharCode(o + 32) : e2[n2];
|
|
6138
6138
|
}
|
|
6139
6139
|
return t3.startsWith("ms-") ? "-" + t3 : t3;
|
|
6140
6140
|
}
|
|
6141
6141
|
var xe = /* @__PURE__ */ Symbol.for("sc-keyframes");
|
|
6142
|
-
function
|
|
6142
|
+
function Te(e2) {
|
|
6143
6143
|
return "object" == typeof e2 && null !== e2 && xe in e2;
|
|
6144
6144
|
}
|
|
6145
|
-
function
|
|
6145
|
+
function ke(e2) {
|
|
6146
6146
|
return re(e2) && !(e2.prototype && e2.prototype.isReactComponent);
|
|
6147
6147
|
}
|
|
6148
|
-
var
|
|
6148
|
+
var De = (e2) => null == e2 || false === e2 || "" === e2;
|
|
6149
6149
|
var Ve = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
6150
6150
|
function Me(e2) {
|
|
6151
6151
|
return e2.$$typeof === Ve;
|
|
@@ -6154,248 +6154,251 @@ function Ge(e2) {
|
|
|
6154
6154
|
const t3 = e2.$$id, n2 = (t3 && t3.includes("#") ? t3.split("#").pop() : t3) || e2.name || "unknown";
|
|
6155
6155
|
console.warn(`Interpolating a client component (${n2}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`);
|
|
6156
6156
|
}
|
|
6157
|
-
|
|
6158
|
-
const t3 = [];
|
|
6157
|
+
function Fe(e2, t3) {
|
|
6159
6158
|
for (const n2 in e2) {
|
|
6160
|
-
const
|
|
6161
|
-
e2.hasOwnProperty(n2) && !
|
|
6159
|
+
const o = e2[n2];
|
|
6160
|
+
e2.hasOwnProperty(n2) && !De(o) && (Array.isArray(o) && _e.has(o) || re(o) ? t3.push(je(n2) + ":", o, ";") : le(o) ? (t3.push(n2 + " {"), Fe(o, t3), t3.push("}")) : t3.push(je(n2) + ": " + $e(n2, o) + ";"));
|
|
6162
6161
|
}
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
if ("
|
|
6169
|
-
if ("function" === r3) {
|
|
6162
|
+
}
|
|
6163
|
+
function ze(e2, t3, n2, o, s = []) {
|
|
6164
|
+
if (De(e2)) return s;
|
|
6165
|
+
const r2 = typeof e2;
|
|
6166
|
+
if ("string" === r2) return s.push(e2), s;
|
|
6167
|
+
if ("function" === r2) {
|
|
6170
6168
|
if (Me(e2)) return Ge(e2), s;
|
|
6171
|
-
if (
|
|
6172
|
-
const
|
|
6173
|
-
return "object" != typeof
|
|
6169
|
+
if (ke(e2) && t3) {
|
|
6170
|
+
const r3 = e2(t3);
|
|
6171
|
+
return "object" != typeof r3 || Array.isArray(r3) || Te(r3) || le(r3) || null === r3 || console.error(`${W(e2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), ze(r3, t3, n2, o, s);
|
|
6174
6172
|
}
|
|
6175
6173
|
return s.push(e2), s;
|
|
6176
6174
|
}
|
|
6177
6175
|
if (Array.isArray(e2)) {
|
|
6178
|
-
for (let
|
|
6176
|
+
for (let r3 = 0; r3 < e2.length; r3++) ze(e2[r3], t3, n2, o, s);
|
|
6179
6177
|
return s;
|
|
6180
6178
|
}
|
|
6181
|
-
|
|
6182
|
-
if (ke(e2)) return n2 ? (e2.inject(n2, o2), s.push(e2.getName(o2))) : s.push(e2), s;
|
|
6183
|
-
if (Me(e2)) return Ge(e2), s;
|
|
6184
|
-
if (le(e2)) {
|
|
6185
|
-
const t4 = Fe(e2);
|
|
6186
|
-
for (let e3 = 0; e3 < t4.length; e3++) s.push(t4[e3]);
|
|
6187
|
-
return s;
|
|
6188
|
-
}
|
|
6189
|
-
return s.push(e2.toString()), s;
|
|
6179
|
+
return ie(e2) ? (s.push(`.${e2.styledComponentId}`), s) : Te(e2) ? (n2 ? (e2.inject(n2, o), s.push(e2.getName(o))) : s.push(e2), s) : Me(e2) ? (Ge(e2), s) : le(e2) ? (Fe(e2, s), s) : (s.push(e2.toString()), s);
|
|
6190
6180
|
}
|
|
6191
6181
|
var We = F(u);
|
|
6192
6182
|
var Le = class {
|
|
6193
6183
|
constructor(e2, t3, n2) {
|
|
6194
|
-
this.rules = e2, this.componentId = t3, this.baseHash = G(We, t3), this.baseStyle = n2,
|
|
6184
|
+
this.rules = e2, this.componentId = t3, this.baseHash = G(We, t3), this.baseStyle = n2, Pe.registerId(t3);
|
|
6195
6185
|
}
|
|
6196
6186
|
generateAndInjectStyles(e2, t3, n2) {
|
|
6197
|
-
let
|
|
6187
|
+
let o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t3, n2) : "";
|
|
6198
6188
|
{
|
|
6199
6189
|
let s = "";
|
|
6200
|
-
for (let
|
|
6201
|
-
const
|
|
6202
|
-
if ("string" == typeof
|
|
6203
|
-
else if (
|
|
6204
|
-
const
|
|
6205
|
-
"string" == typeof
|
|
6206
|
-
} else s +=
|
|
6190
|
+
for (let o2 = 0; o2 < this.rules.length; o2++) {
|
|
6191
|
+
const r2 = this.rules[o2];
|
|
6192
|
+
if ("string" == typeof r2) s += r2;
|
|
6193
|
+
else if (r2) if (ke(r2)) {
|
|
6194
|
+
const o3 = r2(e2);
|
|
6195
|
+
"string" == typeof o3 ? s += o3 : null != o3 && false !== o3 && ("object" != typeof o3 || Array.isArray(o3) || Te(o3) || le(o3) || console.error(`${W(r2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s += ae(ze(o3, e2, t3, n2)));
|
|
6196
|
+
} else s += ae(ze(r2, e2, t3, n2));
|
|
6207
6197
|
}
|
|
6208
6198
|
if (s) {
|
|
6209
6199
|
this.dynamicNameCache || (this.dynamicNameCache = /* @__PURE__ */ new Map());
|
|
6210
6200
|
const e3 = n2.hash ? n2.hash + s : s;
|
|
6211
|
-
let
|
|
6212
|
-
if (!
|
|
6213
|
-
if (
|
|
6201
|
+
let r2 = this.dynamicNameCache.get(e3);
|
|
6202
|
+
if (!r2) {
|
|
6203
|
+
if (r2 = V(G(G(this.baseHash, n2.hash), s) >>> 0), this.dynamicNameCache.size >= 200) {
|
|
6214
6204
|
const e4 = this.dynamicNameCache.keys().next().value;
|
|
6215
6205
|
void 0 !== e4 && this.dynamicNameCache.delete(e4);
|
|
6216
6206
|
}
|
|
6217
|
-
this.dynamicNameCache.set(e3,
|
|
6207
|
+
this.dynamicNameCache.set(e3, r2);
|
|
6218
6208
|
}
|
|
6219
|
-
if (!t3.hasNameForId(this.componentId,
|
|
6220
|
-
const e4 = n2(s, "." +
|
|
6221
|
-
t3.insertRules(this.componentId,
|
|
6209
|
+
if (!t3.hasNameForId(this.componentId, r2)) {
|
|
6210
|
+
const e4 = n2(s, "." + r2, void 0, this.componentId);
|
|
6211
|
+
t3.insertRules(this.componentId, r2, e4);
|
|
6222
6212
|
}
|
|
6223
|
-
|
|
6213
|
+
o = ce(o, r2);
|
|
6224
6214
|
}
|
|
6225
6215
|
}
|
|
6226
|
-
return
|
|
6216
|
+
return o;
|
|
6227
6217
|
}
|
|
6228
6218
|
};
|
|
6229
6219
|
var Be = /&/g;
|
|
6230
|
-
|
|
6231
|
-
function He(e2, t3) {
|
|
6220
|
+
function qe(e2, t3) {
|
|
6232
6221
|
let n2 = 0;
|
|
6233
6222
|
for (; --t3 >= 0 && 92 === e2.charCodeAt(t3); ) n2++;
|
|
6234
6223
|
return !(1 & ~n2);
|
|
6235
6224
|
}
|
|
6236
|
-
function
|
|
6225
|
+
function He(e2) {
|
|
6237
6226
|
const t3 = e2.length;
|
|
6238
|
-
let n2 = "",
|
|
6239
|
-
for (let
|
|
6240
|
-
const
|
|
6241
|
-
if (0 !==
|
|
6242
|
-
else if (34 !==
|
|
6243
|
-
if (0 ===
|
|
6244
|
-
else if (125 ===
|
|
6227
|
+
let n2 = "", o = 0, s = 0, r2 = 0, i2 = false, c2 = false;
|
|
6228
|
+
for (let a2 = 0; a2 < t3; a2++) {
|
|
6229
|
+
const l2 = e2.charCodeAt(a2);
|
|
6230
|
+
if (0 !== r2 || i2 || l2 !== Re || 42 !== e2.charCodeAt(a2 + 1)) if (i2) 42 === l2 && e2.charCodeAt(a2 + 1) === Re && (i2 = false, a2++);
|
|
6231
|
+
else if (34 !== l2 && 39 !== l2 || qe(e2, a2)) {
|
|
6232
|
+
if (0 === r2) if (123 === l2) s++;
|
|
6233
|
+
else if (125 === l2) {
|
|
6245
6234
|
if (s--, s < 0) {
|
|
6246
|
-
|
|
6247
|
-
let n3 =
|
|
6235
|
+
c2 = true;
|
|
6236
|
+
let n3 = a2 + 1;
|
|
6248
6237
|
for (; n3 < t3; ) {
|
|
6249
6238
|
const t4 = e2.charCodeAt(n3);
|
|
6250
6239
|
if (59 === t4 || 10 === t4) break;
|
|
6251
6240
|
n3++;
|
|
6252
6241
|
}
|
|
6253
|
-
n3 < t3 && 59 === e2.charCodeAt(n3) && n3++, s = 0,
|
|
6242
|
+
n3 < t3 && 59 === e2.charCodeAt(n3) && n3++, s = 0, a2 = n3 - 1, o = n3;
|
|
6254
6243
|
continue;
|
|
6255
6244
|
}
|
|
6256
|
-
0 === s && (n2 += e2.substring(
|
|
6257
|
-
} else 59 ===
|
|
6258
|
-
} else 0 ===
|
|
6259
|
-
else i2 = true,
|
|
6245
|
+
0 === s && (n2 += e2.substring(o, a2 + 1), o = a2 + 1);
|
|
6246
|
+
} else 59 === l2 && 0 === s && (n2 += e2.substring(o, a2 + 1), o = a2 + 1);
|
|
6247
|
+
} else 0 === r2 ? r2 = l2 : r2 === l2 && (r2 = 0);
|
|
6248
|
+
else i2 = true, a2++;
|
|
6260
6249
|
}
|
|
6261
|
-
return
|
|
6250
|
+
return c2 || 0 !== s || 0 !== r2 ? (o < t3 && 0 === s && 0 === r2 && (n2 += e2.substring(o)), n2) : e2;
|
|
6262
6251
|
}
|
|
6263
|
-
function
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
o2.
|
|
6252
|
+
function Ye(e2, t3) {
|
|
6253
|
+
const n2 = t3 + " ", o = "," + n2;
|
|
6254
|
+
for (let s = 0; s < e2.length; s++) {
|
|
6255
|
+
const r2 = e2[s];
|
|
6256
|
+
if ("rule" === r2.type) {
|
|
6257
|
+
r2.value = (n2 + r2.value).replaceAll(",", o);
|
|
6258
|
+
const e3 = r2.props, t4 = [];
|
|
6259
|
+
for (let o2 = 0; o2 < e3.length; o2++) t4[o2] = n2 + e3[o2];
|
|
6260
|
+
r2.props = t4;
|
|
6271
6261
|
}
|
|
6272
|
-
Array.isArray(
|
|
6262
|
+
Array.isArray(r2.children) && "@keyframes" !== r2.type && Ye(r2.children, t3);
|
|
6273
6263
|
}
|
|
6274
6264
|
return e2;
|
|
6275
6265
|
}
|
|
6276
|
-
function
|
|
6277
|
-
let n2, s,
|
|
6278
|
-
const i2 = (e3, t4,
|
|
6279
|
-
|
|
6280
|
-
e3.type === RULESET && e3.value.includes("&") && (
|
|
6281
|
-
}), e2.prefix &&
|
|
6282
|
-
let
|
|
6283
|
-
const
|
|
6284
|
-
n2 =
|
|
6285
|
-
const
|
|
6266
|
+
function Ue({ options: e2 = $, plugins: t3 = I } = $) {
|
|
6267
|
+
let n2, s, r2;
|
|
6268
|
+
const i2 = (e3, t4, o) => o.startsWith(s) && o.endsWith(s) && o.replaceAll(s, "").length > 0 ? `.${n2}` : e3, c2 = t3.slice();
|
|
6269
|
+
c2.push((e3) => {
|
|
6270
|
+
e3.type === RULESET && e3.value.includes("&") && (r2 || (r2 = new RegExp(`\\${s}\\b`, "g")), e3.props[0] = e3.props[0].replace(Be, s).replace(r2, i2));
|
|
6271
|
+
}), e2.prefix && c2.push(prefixer), c2.push(stringify);
|
|
6272
|
+
let a2 = [];
|
|
6273
|
+
const l2 = middleware(c2.concat(rulesheet((e3) => a2.push(e3)))), u2 = (t4, i3 = "", c3 = "", u3 = "&") => {
|
|
6274
|
+
n2 = u3, s = i3, r2 = void 0;
|
|
6275
|
+
const h3 = (function(e3) {
|
|
6286
6276
|
const t5 = -1 !== e3.indexOf("//"), n3 = -1 !== e3.indexOf("}");
|
|
6287
6277
|
if (!t5 && !n3) return e3;
|
|
6288
|
-
if (!t5) return
|
|
6289
|
-
const
|
|
6290
|
-
let s2 = "",
|
|
6291
|
-
for (; i4 <
|
|
6278
|
+
if (!t5) return He(e3);
|
|
6279
|
+
const o = e3.length;
|
|
6280
|
+
let s2 = "", r3 = 0, i4 = 0, c4 = 0, a3 = 0, l3 = 0, u4 = false;
|
|
6281
|
+
for (; i4 < o; ) {
|
|
6292
6282
|
const t6 = e3.charCodeAt(i4);
|
|
6293
|
-
if (34 !== t6 && 39 !== t6 ||
|
|
6294
|
-
for (i4 += 2; i4 + 1 <
|
|
6283
|
+
if (34 !== t6 && 39 !== t6 || qe(e3, i4)) if (0 === c4) if (t6 === Re && i4 + 1 < o && 42 === e3.charCodeAt(i4 + 1)) {
|
|
6284
|
+
for (i4 += 2; i4 + 1 < o && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !== Re); ) i4++;
|
|
6295
6285
|
i4 += 2;
|
|
6296
|
-
} else if (40 !== t6) if (41 !== t6) if (
|
|
6297
|
-
else if (42 === t6 && i4 + 1 <
|
|
6298
|
-
else if (t6 ===
|
|
6299
|
-
for (s2 += e3.substring(
|
|
6300
|
-
|
|
6301
|
-
} else 123 === t6 ?
|
|
6302
|
-
else
|
|
6303
|
-
else
|
|
6286
|
+
} else if (40 !== t6) if (41 !== t6) if (a3 > 0) i4++;
|
|
6287
|
+
else if (42 === t6 && i4 + 1 < o && e3.charCodeAt(i4 + 1) === Re) s2 += e3.substring(r3, i4), i4 += 2, r3 = i4, u4 = true;
|
|
6288
|
+
else if (t6 === Re && i4 + 1 < o && e3.charCodeAt(i4 + 1) === Re) {
|
|
6289
|
+
for (s2 += e3.substring(r3, i4); i4 < o && 10 !== e3.charCodeAt(i4); ) i4++;
|
|
6290
|
+
r3 = i4, u4 = true;
|
|
6291
|
+
} else 123 === t6 ? l3++ : 125 === t6 && l3--, i4++;
|
|
6292
|
+
else a3 > 0 && a3--, i4++;
|
|
6293
|
+
else a3++, i4++;
|
|
6304
6294
|
else i4++;
|
|
6305
|
-
else 0 ===
|
|
6295
|
+
else 0 === c4 ? c4 = t6 : c4 === t6 && (c4 = 0), i4++;
|
|
6306
6296
|
}
|
|
6307
|
-
return
|
|
6297
|
+
return u4 ? (r3 < o && (s2 += e3.substring(r3)), 0 === l3 ? s2 : He(s2)) : 0 === l3 ? e3 : He(e3);
|
|
6308
6298
|
})(t4);
|
|
6309
|
-
let
|
|
6310
|
-
return e2.namespace && (
|
|
6311
|
-
},
|
|
6312
|
-
let
|
|
6313
|
-
for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name || v(15),
|
|
6314
|
-
return (null ==
|
|
6315
|
-
}
|
|
6316
|
-
var
|
|
6317
|
-
var
|
|
6318
|
-
var Ke = t2.createContext({ shouldForwardProp: void 0, styleSheet:
|
|
6299
|
+
let d3 = compile(c3 || i3 ? c3 + " " + i3 + " { " + h3 + " }" : h3);
|
|
6300
|
+
return e2.namespace && (d3 = Ye(d3, e2.namespace)), a2 = [], serialize(d3, l2), a2;
|
|
6301
|
+
}, h2 = e2;
|
|
6302
|
+
let d2 = M;
|
|
6303
|
+
for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name || v(15), d2 = G(d2, t3[e3].name);
|
|
6304
|
+
return (null == h2 ? void 0 : h2.namespace) && (d2 = G(d2, h2.namespace)), (null == h2 ? void 0 : h2.prefix) && (d2 = G(d2, "p")), u2.hash = d2 !== M ? d2.toString() : "", u2;
|
|
6305
|
+
}
|
|
6306
|
+
var Je = new Pe();
|
|
6307
|
+
var Xe = Ue();
|
|
6308
|
+
var Ke = t2.createContext({ shouldForwardProp: void 0, styleSheet: Je, stylis: Xe, stylisPlugins: void 0 });
|
|
6319
6309
|
var Qe = Ke.Consumer;
|
|
6320
|
-
function
|
|
6310
|
+
function Ze() {
|
|
6321
6311
|
return t2.useContext(Ke);
|
|
6322
6312
|
}
|
|
6323
|
-
var
|
|
6324
|
-
var
|
|
6325
|
-
|
|
6326
|
-
|
|
6313
|
+
var tt = t2.createContext(void 0);
|
|
6314
|
+
var nt = tt.Consumer;
|
|
6315
|
+
function st(e2) {
|
|
6316
|
+
const n2 = t2.useContext(tt), o = t2.useMemo(() => (function(e3, t3) {
|
|
6317
|
+
if (!e3) throw v(14);
|
|
6318
|
+
if (re(e3)) {
|
|
6319
|
+
const n3 = e3(t3);
|
|
6320
|
+
if (null === n3 || Array.isArray(n3) || "object" != typeof n3) throw v(7);
|
|
6321
|
+
return n3;
|
|
6322
|
+
}
|
|
6323
|
+
if (Array.isArray(e3) || "object" != typeof e3) throw v(8);
|
|
6324
|
+
return t3 ? Object.assign(Object.assign({}, t3), e3) : e3;
|
|
6325
|
+
})(e2.theme, n2), [e2.theme, n2]);
|
|
6326
|
+
return e2.children ? t2.createElement(tt.Provider, { value: o }, e2.children) : null;
|
|
6327
|
+
}
|
|
6328
|
+
var rt = Object.prototype.hasOwnProperty;
|
|
6329
|
+
var it = {};
|
|
6327
6330
|
function ct(e2, t3) {
|
|
6328
|
-
const n2 = "string" != typeof e2 ? "sc" :
|
|
6329
|
-
|
|
6330
|
-
const
|
|
6331
|
-
return t3 ? t3 + "-" +
|
|
6332
|
-
}
|
|
6333
|
-
var
|
|
6334
|
-
function
|
|
6335
|
-
const i2 = ie(
|
|
6331
|
+
const n2 = "string" != typeof e2 ? "sc" : T(e2);
|
|
6332
|
+
it[n2] = (it[n2] || 0) + 1;
|
|
6333
|
+
const o = n2 + "-" + z(u + n2 + it[n2]);
|
|
6334
|
+
return t3 ? t3 + "-" + o : o;
|
|
6335
|
+
}
|
|
6336
|
+
var at;
|
|
6337
|
+
function lt(o, s, r2) {
|
|
6338
|
+
const i2 = ie(o), c2 = o, a2 = !L(o), { attrs: l2 = I, componentId: u2 = ct(s.displayName, s.parentComponentId), displayName: h2 = B(o) } = s, d2 = s.displayName && s.componentId ? T(s.displayName) + "-" + s.componentId : s.componentId || u2, p2 = i2 && c2.attrs ? c2.attrs.concat(l2).filter(Boolean) : l2;
|
|
6336
6339
|
let { shouldForwardProp: f2 } = s;
|
|
6337
|
-
if (i2 &&
|
|
6338
|
-
const e2 =
|
|
6340
|
+
if (i2 && c2.shouldForwardProp) {
|
|
6341
|
+
const e2 = c2.shouldForwardProp;
|
|
6339
6342
|
if (s.shouldForwardProp) {
|
|
6340
6343
|
const t3 = s.shouldForwardProp;
|
|
6341
|
-
f2 = (n2,
|
|
6344
|
+
f2 = (n2, o2) => e2(n2, o2) && t3(n2, o2);
|
|
6342
6345
|
} else f2 = e2;
|
|
6343
6346
|
}
|
|
6344
|
-
const
|
|
6345
|
-
function
|
|
6346
|
-
return (function(
|
|
6347
|
-
const { attrs: i3, componentStyle:
|
|
6348
|
-
t2.useDebugValue && t2.useDebugValue(
|
|
6349
|
-
const
|
|
6350
|
-
let
|
|
6347
|
+
const m2 = new Le(r2, d2, i2 ? c2.componentStyle : void 0);
|
|
6348
|
+
function y2(o2, s2) {
|
|
6349
|
+
return (function(o3, s3, r3) {
|
|
6350
|
+
const { attrs: i3, componentStyle: c3, defaultProps: a3, foldedComponentIds: l3, styledComponentId: u3, target: h3 } = o3, d3 = t2.useContext(tt), p3 = Ze(), f3 = o3.shouldForwardProp || p3.shouldForwardProp;
|
|
6351
|
+
t2.useDebugValue && t2.useDebugValue(u3);
|
|
6352
|
+
const m3 = R(s3, d3, a3) || $;
|
|
6353
|
+
let y3, g3;
|
|
6351
6354
|
{
|
|
6352
6355
|
const e2 = t2.useRef(null), n2 = e2.current;
|
|
6353
|
-
if (null !== n2 && n2[1] ===
|
|
6354
|
-
const
|
|
6355
|
-
let
|
|
6356
|
-
for (const e4 in s4) if (
|
|
6357
|
-
return
|
|
6358
|
-
})(n2[0], s3, n2[4]))
|
|
6356
|
+
if (null !== n2 && n2[1] === m3 && n2[2] === p3.styleSheet && n2[3] === p3.stylis && n2[7] === c3 && (function(e3, t3, n3) {
|
|
6357
|
+
const o4 = e3, s4 = t3;
|
|
6358
|
+
let r4 = 0;
|
|
6359
|
+
for (const e4 in s4) if (rt.call(s4, e4) && (r4++, o4[e4] !== s4[e4])) return false;
|
|
6360
|
+
return r4 === n3;
|
|
6361
|
+
})(n2[0], s3, n2[4])) y3 = n2[5], g3 = n2[6];
|
|
6359
6362
|
else {
|
|
6360
|
-
|
|
6361
|
-
const
|
|
6363
|
+
y3 = (function(e3, t3, n4) {
|
|
6364
|
+
const o4 = Object.assign(Object.assign({}, t3), { className: void 0, theme: n4 }), s4 = e3.length > 1;
|
|
6362
6365
|
for (let n5 = 0; n5 < e3.length; n5++) {
|
|
6363
|
-
const
|
|
6364
|
-
for (const e4 in i4) "className" === e4 ?
|
|
6366
|
+
const r4 = e3[n5], i4 = re(r4) ? r4(s4 ? Object.assign({}, o4) : o4) : r4;
|
|
6367
|
+
for (const e4 in i4) "className" === e4 ? o4.className = ce(o4.className, i4[e4]) : "style" === e4 ? o4.style = Object.assign(Object.assign({}, o4.style), i4[e4]) : e4 in t3 && void 0 === t3[e4] || (o4[e4] = i4[e4]);
|
|
6365
6368
|
}
|
|
6366
|
-
return "className" in t3 && "string" == typeof t3.className && (
|
|
6367
|
-
})(i3, s3,
|
|
6368
|
-
const
|
|
6369
|
-
return t2.useDebugValue && t2.useDebugValue(
|
|
6370
|
-
})(
|
|
6369
|
+
return "className" in t3 && "string" == typeof t3.className && (o4.className = ce(o4.className, t3.className)), o4;
|
|
6370
|
+
})(i3, s3, m3), g3 = (function(e3, n4, o4, s4) {
|
|
6371
|
+
const r4 = e3.generateAndInjectStyles(n4, o4, s4);
|
|
6372
|
+
return t2.useDebugValue && t2.useDebugValue(r4), r4;
|
|
6373
|
+
})(c3, y3, p3.styleSheet, p3.stylis);
|
|
6371
6374
|
let n3 = 0;
|
|
6372
|
-
for (const e3 in s3)
|
|
6373
|
-
e2.current = [s3,
|
|
6375
|
+
for (const e3 in s3) rt.call(s3, e3) && n3++;
|
|
6376
|
+
e2.current = [s3, m3, p3.styleSheet, p3.stylis, n3, y3, g3, c3];
|
|
6374
6377
|
}
|
|
6375
6378
|
}
|
|
6376
|
-
|
|
6377
|
-
const
|
|
6378
|
-
const
|
|
6379
|
-
for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme ===
|
|
6380
|
-
return
|
|
6381
|
-
})(
|
|
6382
|
-
let
|
|
6383
|
-
return
|
|
6384
|
-
})(
|
|
6385
|
-
}
|
|
6386
|
-
|
|
6387
|
-
let
|
|
6388
|
-
return
|
|
6379
|
+
o3.warnTooManyClasses && o3.warnTooManyClasses(g3);
|
|
6380
|
+
const v2 = y3.as || h3, S2 = (function(t3, n2, o4, s4) {
|
|
6381
|
+
const r4 = {};
|
|
6382
|
+
for (const i4 in t3) void 0 === t3[i4] || "$" === i4[0] || "as" === i4 || "theme" === i4 && t3.theme === o4 || ("forwardedAs" === i4 ? r4.as = t3.forwardedAs : s4 && !s4(i4, n2) || (r4[i4] = t3[i4], s4 || false || isPropValid(i4) || (at || (at = /* @__PURE__ */ new Set())).has(i4) || !L(n2) || n2.includes("-") || (at.add(i4), console.warn(`styled-components: it looks like an unknown prop "${i4}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));
|
|
6383
|
+
return r4;
|
|
6384
|
+
})(y3, v2, m3, f3);
|
|
6385
|
+
let b2 = ce(l3, u3);
|
|
6386
|
+
return g3 && (b2 += " " + g3), y3.className && (b2 += " " + y3.className), S2[L(v2) && v2.includes("-") ? "class" : "className"] = b2, r3 && (S2.ref = r3), n(v2, S2);
|
|
6387
|
+
})(g2, o2, s2);
|
|
6388
|
+
}
|
|
6389
|
+
y2.displayName = h2;
|
|
6390
|
+
let g2 = t2.forwardRef(y2);
|
|
6391
|
+
return g2.attrs = p2, g2.componentStyle = m2, g2.displayName = h2, g2.shouldForwardProp = f2, g2.foldedComponentIds = i2 ? ce(c2.foldedComponentIds, c2.styledComponentId) : "", g2.styledComponentId = d2, g2.target = i2 ? c2.target : o, Object.defineProperty(g2, "defaultProps", { get() {
|
|
6389
6392
|
return this._foldedDefaultProps;
|
|
6390
6393
|
}, set(e2) {
|
|
6391
6394
|
this._foldedDefaultProps = i2 ? (function(e3, ...t3) {
|
|
6392
6395
|
for (const n2 of t3) ue(e3, n2, true);
|
|
6393
6396
|
return e3;
|
|
6394
|
-
})({},
|
|
6395
|
-
} }), _(
|
|
6396
|
-
let n2 = {},
|
|
6397
|
+
})({}, c2.defaultProps, e2) : e2;
|
|
6398
|
+
} }), _(h2, d2), g2.warnTooManyClasses = /* @__PURE__ */ ((e2, t3) => {
|
|
6399
|
+
let n2 = {}, o2 = false;
|
|
6397
6400
|
return (s2) => {
|
|
6398
|
-
!
|
|
6401
|
+
!o2 && (n2[s2] = true, Object.keys(n2).length >= 200) && (console.warn(`Over 200 classes were generated for component ${e2}${t3 ? ` with the id of "${t3}"` : ""}.
|
|
6399
6402
|
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
6400
6403
|
Example:
|
|
6401
6404
|
const Component = styled.div.attrs(props => ({
|
|
@@ -6404,33 +6407,33 @@ Example:
|
|
|
6404
6407
|
},
|
|
6405
6408
|
}))\`width: 100%;\`
|
|
6406
6409
|
|
|
6407
|
-
<Component />`),
|
|
6410
|
+
<Component />`), o2 = true, n2 = {});
|
|
6408
6411
|
};
|
|
6409
|
-
})(
|
|
6412
|
+
})(h2, d2), he(g2, () => `.${g2.styledComponentId}`), a2 && se(g2, o, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), g2;
|
|
6410
6413
|
}
|
|
6411
|
-
var
|
|
6414
|
+
var ut = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
|
|
6412
6415
|
function ht(e2, t3) {
|
|
6413
6416
|
const n2 = [e2[0]];
|
|
6414
|
-
for (let
|
|
6417
|
+
for (let o = 0, s = t3.length; o < s; o += 1) n2.push(t3[o], e2[o + 1]);
|
|
6415
6418
|
return n2;
|
|
6416
6419
|
}
|
|
6417
|
-
var
|
|
6418
|
-
function
|
|
6419
|
-
if (re(e2) || le(e2)) return
|
|
6420
|
+
var dt = (e2) => (_e.add(e2), e2);
|
|
6421
|
+
function pt(e2, ...t3) {
|
|
6422
|
+
if (re(e2) || le(e2)) return dt(ze(ht(I, [e2, ...t3])));
|
|
6420
6423
|
const n2 = e2;
|
|
6421
|
-
return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? ze(n2) :
|
|
6424
|
+
return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? ze(n2) : dt(ze(ht(n2, t3)));
|
|
6422
6425
|
}
|
|
6423
|
-
function
|
|
6426
|
+
function ft(e2, t3, n2 = $) {
|
|
6424
6427
|
if (!t3) throw v(1, t3);
|
|
6425
|
-
const
|
|
6426
|
-
return
|
|
6428
|
+
const o = (o2, ...s) => e2(t3, n2, pt(o2, ...s));
|
|
6429
|
+
return o.attrs = (o2) => ft(e2, t3, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o2).filter(Boolean) })), o.withConfig = (o2) => ft(e2, t3, Object.assign(Object.assign({}, n2), o2)), o;
|
|
6427
6430
|
}
|
|
6428
|
-
var
|
|
6429
|
-
var
|
|
6430
|
-
|
|
6431
|
-
|
|
6431
|
+
var mt = (e2) => ft(lt, e2);
|
|
6432
|
+
var yt = mt;
|
|
6433
|
+
ut.forEach((e2) => {
|
|
6434
|
+
yt[e2] = mt(e2);
|
|
6432
6435
|
});
|
|
6433
|
-
var
|
|
6436
|
+
var gt = class {
|
|
6434
6437
|
constructor(e2, t3) {
|
|
6435
6438
|
this.instanceRules = /* @__PURE__ */ new Map(), this.rules = e2, this.componentId = t3, this.isStatic = (function(e3) {
|
|
6436
6439
|
for (let t4 = 0; t4 < e3.length; t4 += 1) {
|
|
@@ -6438,27 +6441,27 @@ var vt = class {
|
|
|
6438
6441
|
if (re(n2) && !ie(n2)) return false;
|
|
6439
6442
|
}
|
|
6440
6443
|
return true;
|
|
6441
|
-
})(e2),
|
|
6444
|
+
})(e2), Pe.registerId(this.componentId);
|
|
6442
6445
|
}
|
|
6443
6446
|
removeStyles(e2, t3) {
|
|
6444
6447
|
this.instanceRules.delete(e2), this.rebuildGroup(t3);
|
|
6445
6448
|
}
|
|
6446
|
-
renderStyles(e2, t3, n2,
|
|
6449
|
+
renderStyles(e2, t3, n2, o) {
|
|
6447
6450
|
const s = this.componentId;
|
|
6448
6451
|
if (this.isStatic) {
|
|
6449
|
-
if (n2.hasNameForId(s, s + e2)) this.instanceRules.has(e2) || this.computeRules(e2, t3, n2,
|
|
6452
|
+
if (n2.hasNameForId(s, s + e2)) this.instanceRules.has(e2) || this.computeRules(e2, t3, n2, o);
|
|
6450
6453
|
else {
|
|
6451
|
-
const
|
|
6452
|
-
n2.insertRules(s,
|
|
6454
|
+
const r3 = this.computeRules(e2, t3, n2, o);
|
|
6455
|
+
n2.insertRules(s, r3.name, r3.rules);
|
|
6453
6456
|
}
|
|
6454
6457
|
return;
|
|
6455
6458
|
}
|
|
6456
|
-
const
|
|
6457
|
-
if (this.computeRules(e2, t3, n2,
|
|
6458
|
-
const t4 =
|
|
6459
|
+
const r2 = this.instanceRules.get(e2);
|
|
6460
|
+
if (this.computeRules(e2, t3, n2, o), !n2.server && r2) {
|
|
6461
|
+
const t4 = r2.rules, n3 = this.instanceRules.get(e2).rules;
|
|
6459
6462
|
if (t4.length === n3.length) {
|
|
6460
6463
|
let e3 = true;
|
|
6461
|
-
for (let
|
|
6464
|
+
for (let o2 = 0; o2 < t4.length; o2++) if (t4[o2] !== n3[o2]) {
|
|
6462
6465
|
e3 = false;
|
|
6463
6466
|
break;
|
|
6464
6467
|
}
|
|
@@ -6467,9 +6470,9 @@ var vt = class {
|
|
|
6467
6470
|
}
|
|
6468
6471
|
this.rebuildGroup(n2);
|
|
6469
6472
|
}
|
|
6470
|
-
computeRules(e2, t3, n2,
|
|
6471
|
-
const s =
|
|
6472
|
-
return this.instanceRules.set(e2,
|
|
6473
|
+
computeRules(e2, t3, n2, o) {
|
|
6474
|
+
const s = ae(ze(this.rules, t3, n2, o)), r2 = { name: this.componentId + e2, rules: o(s, "") };
|
|
6475
|
+
return this.instanceRules.set(e2, r2), r2;
|
|
6473
6476
|
}
|
|
6474
6477
|
rebuildGroup(e2) {
|
|
6475
6478
|
const t3 = this.componentId;
|
|
@@ -6477,41 +6480,64 @@ var vt = class {
|
|
|
6477
6480
|
for (const n2 of this.instanceRules.values()) e2.insertRules(t3, n2.name, n2.rules);
|
|
6478
6481
|
}
|
|
6479
6482
|
};
|
|
6480
|
-
function
|
|
6481
|
-
const
|
|
6483
|
+
function vt(e2, ...n2) {
|
|
6484
|
+
const o = pt(e2, ...n2), s = `sc-global-${z(JSON.stringify(o))}`, r2 = new gt(o, s);
|
|
6482
6485
|
_(s);
|
|
6483
6486
|
const i2 = (e3) => {
|
|
6484
|
-
const n3 =
|
|
6485
|
-
let
|
|
6487
|
+
const n3 = Ze(), i3 = t2.useContext(tt);
|
|
6488
|
+
let a2;
|
|
6486
6489
|
{
|
|
6487
6490
|
const e4 = t2.useRef(null);
|
|
6488
|
-
null === e4.current && (e4.current = n3.styleSheet.allocateGSInstance(s)),
|
|
6491
|
+
null === e4.current && (e4.current = n3.styleSheet.allocateGSInstance(s)), a2 = e4.current;
|
|
6489
6492
|
}
|
|
6490
|
-
t2.Children.count(e3.children) && console.warn(`The global style component ${s} was given child JSX. createGlobalStyle does not render children.`),
|
|
6493
|
+
t2.Children.count(e3.children) && console.warn(`The global style component ${s} was given child JSX. createGlobalStyle does not render children.`), o.some((e4) => "string" == typeof e4 && -1 !== e4.indexOf("@import")) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), n3.styleSheet.server && c2(a2, e3, n3.styleSheet, i3, n3.stylis);
|
|
6491
6494
|
{
|
|
6492
|
-
const
|
|
6493
|
-
t2.useLayoutEffect(() =>
|
|
6494
|
-
|
|
6495
|
-
}),
|
|
6496
|
-
|
|
6497
|
-
|
|
6495
|
+
const o2 = r2.isStatic ? [a2, n3.styleSheet, r2] : [a2, e3, n3.styleSheet, i3, n3.stylis, r2], l2 = t2.useRef(r2);
|
|
6496
|
+
t2.useLayoutEffect(() => {
|
|
6497
|
+
n3.styleSheet.server || (l2.current !== r2 && (n3.styleSheet.clearRules(s), l2.current = r2), c2(a2, e3, n3.styleSheet, i3, n3.stylis));
|
|
6498
|
+
}, o2), t2.useLayoutEffect(() => () => {
|
|
6499
|
+
n3.styleSheet.server || r2.removeStyles(a2, n3.styleSheet);
|
|
6500
|
+
}, [a2, n3.styleSheet, r2]);
|
|
6501
|
+
}
|
|
6502
|
+
return n3.styleSheet.server && r2.instanceRules.delete(a2), null;
|
|
6498
6503
|
};
|
|
6499
|
-
function
|
|
6500
|
-
if (
|
|
6504
|
+
function c2(e3, t3, n3, o2, s2) {
|
|
6505
|
+
if (r2.isStatic) r2.renderStyles(e3, y, n3, s2);
|
|
6501
6506
|
else {
|
|
6502
|
-
const
|
|
6503
|
-
|
|
6507
|
+
const c3 = Object.assign(Object.assign({}, t3), { theme: R(t3, o2, i2.defaultProps) });
|
|
6508
|
+
r2.renderStyles(e3, c3, n3, s2);
|
|
6504
6509
|
}
|
|
6505
6510
|
}
|
|
6506
6511
|
return t2.memo(i2);
|
|
6507
6512
|
}
|
|
6508
|
-
var
|
|
6509
|
-
Ct =
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6513
|
+
var Nt;
|
|
6514
|
+
var Ct = class {
|
|
6515
|
+
constructor(e2, t3) {
|
|
6516
|
+
this[Nt] = true, this.inject = (e3, t4 = Xe) => {
|
|
6517
|
+
const n2 = this.getName(t4);
|
|
6518
|
+
if (!e3.hasNameForId(this.id, n2)) {
|
|
6519
|
+
const o = t4(this.rules, n2, "@keyframes");
|
|
6520
|
+
e3.insertRules(this.id, n2, o);
|
|
6521
|
+
}
|
|
6522
|
+
}, this.name = e2, this.id = m + e2, this.rules = t3, C(this.id), he(this, () => {
|
|
6523
|
+
throw v(12, String(this.name));
|
|
6524
|
+
});
|
|
6525
|
+
}
|
|
6526
|
+
getName(e2 = Xe) {
|
|
6527
|
+
return e2.hash ? this.name + V(+e2.hash >>> 0) : this.name;
|
|
6528
|
+
}
|
|
6529
|
+
};
|
|
6530
|
+
function Ot(e2, ...t3) {
|
|
6531
|
+
"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
6532
|
+
const n2 = ae(pt(e2, ...t3)), o = z(n2);
|
|
6533
|
+
return new Ct(o, n2);
|
|
6534
|
+
}
|
|
6535
|
+
Nt = xe;
|
|
6536
|
+
"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://styled-components.com/docs/basics#react-native");
|
|
6537
|
+
var _t = `__sc-${c}__`;
|
|
6538
|
+
"undefined" != typeof window && (window[_t] || (window[_t] = 0), 1 === window[_t] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[_t] += 1);
|
|
6539
|
+
var $t = `:not(style[${c}])`;
|
|
6540
|
+
var Rt = `style[${c}]`;
|
|
6515
6541
|
|
|
6516
6542
|
// node_modules/@schematichq/schematic-icons/dist/types.js
|
|
6517
6543
|
var iconsList = {
|
|
@@ -6648,7 +6674,7 @@ var FONT_FACE_RULE = `@font-face {
|
|
|
6648
6674
|
}`;
|
|
6649
6675
|
|
|
6650
6676
|
// node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
|
|
6651
|
-
var IconStyles =
|
|
6677
|
+
var IconStyles = vt`
|
|
6652
6678
|
${FONT_FACE_RULE};
|
|
6653
6679
|
|
|
6654
6680
|
.icon {
|
|
@@ -6665,7 +6691,7 @@ var IconStyles = St`
|
|
|
6665
6691
|
}
|
|
6666
6692
|
}
|
|
6667
6693
|
`;
|
|
6668
|
-
var StyledIcon =
|
|
6694
|
+
var StyledIcon = yt.i`
|
|
6669
6695
|
&:before {
|
|
6670
6696
|
content: "\\${(props) => iconsList[props.$name].toString(16).padStart(4, "0")}";
|
|
6671
6697
|
}
|
|
@@ -6681,808 +6707,6 @@ var import_debounce = __toESM(require_debounce());
|
|
|
6681
6707
|
var import_merge2 = __toESM(require_merge());
|
|
6682
6708
|
import { useCallback as useCallback2, useEffect as useEffect2, useMemo as useMemo2, useReducer, useRef as useRef2 } from "react";
|
|
6683
6709
|
|
|
6684
|
-
// node_modules/tslib/tslib.es6.mjs
|
|
6685
|
-
var __assign = function() {
|
|
6686
|
-
__assign = Object.assign || function __assign2(t3) {
|
|
6687
|
-
for (var s, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
6688
|
-
s = arguments[i2];
|
|
6689
|
-
for (var p3 in s) if (Object.prototype.hasOwnProperty.call(s, p3)) t3[p3] = s[p3];
|
|
6690
|
-
}
|
|
6691
|
-
return t3;
|
|
6692
|
-
};
|
|
6693
|
-
return __assign.apply(this, arguments);
|
|
6694
|
-
};
|
|
6695
|
-
function __spreadArray(to, from2, pack) {
|
|
6696
|
-
if (pack || arguments.length === 2) for (var i2 = 0, l3 = from2.length, ar; i2 < l3; i2++) {
|
|
6697
|
-
if (ar || !(i2 in from2)) {
|
|
6698
|
-
if (!ar) ar = Array.prototype.slice.call(from2, 0, i2);
|
|
6699
|
-
ar[i2] = from2[i2];
|
|
6700
|
-
}
|
|
6701
|
-
}
|
|
6702
|
-
return to.concat(ar || Array.prototype.slice.call(from2));
|
|
6703
|
-
}
|
|
6704
|
-
|
|
6705
|
-
// node_modules/styled-components/dist/styled-components.browser.esm.js
|
|
6706
|
-
import o, { createElement as r2 } from "react";
|
|
6707
|
-
|
|
6708
|
-
// node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
6709
|
-
var unitlessKeys = {
|
|
6710
|
-
animationIterationCount: 1,
|
|
6711
|
-
aspectRatio: 1,
|
|
6712
|
-
borderImageOutset: 1,
|
|
6713
|
-
borderImageSlice: 1,
|
|
6714
|
-
borderImageWidth: 1,
|
|
6715
|
-
boxFlex: 1,
|
|
6716
|
-
boxFlexGroup: 1,
|
|
6717
|
-
boxOrdinalGroup: 1,
|
|
6718
|
-
columnCount: 1,
|
|
6719
|
-
columns: 1,
|
|
6720
|
-
flex: 1,
|
|
6721
|
-
flexGrow: 1,
|
|
6722
|
-
flexPositive: 1,
|
|
6723
|
-
flexShrink: 1,
|
|
6724
|
-
flexNegative: 1,
|
|
6725
|
-
flexOrder: 1,
|
|
6726
|
-
gridRow: 1,
|
|
6727
|
-
gridRowEnd: 1,
|
|
6728
|
-
gridRowSpan: 1,
|
|
6729
|
-
gridRowStart: 1,
|
|
6730
|
-
gridColumn: 1,
|
|
6731
|
-
gridColumnEnd: 1,
|
|
6732
|
-
gridColumnSpan: 1,
|
|
6733
|
-
gridColumnStart: 1,
|
|
6734
|
-
msGridRow: 1,
|
|
6735
|
-
msGridRowSpan: 1,
|
|
6736
|
-
msGridColumn: 1,
|
|
6737
|
-
msGridColumnSpan: 1,
|
|
6738
|
-
fontWeight: 1,
|
|
6739
|
-
lineHeight: 1,
|
|
6740
|
-
opacity: 1,
|
|
6741
|
-
order: 1,
|
|
6742
|
-
orphans: 1,
|
|
6743
|
-
scale: 1,
|
|
6744
|
-
tabSize: 1,
|
|
6745
|
-
widows: 1,
|
|
6746
|
-
zIndex: 1,
|
|
6747
|
-
zoom: 1,
|
|
6748
|
-
WebkitLineClamp: 1,
|
|
6749
|
-
// SVG-related properties
|
|
6750
|
-
fillOpacity: 1,
|
|
6751
|
-
floodOpacity: 1,
|
|
6752
|
-
stopOpacity: 1,
|
|
6753
|
-
strokeDasharray: 1,
|
|
6754
|
-
strokeDashoffset: 1,
|
|
6755
|
-
strokeMiterlimit: 1,
|
|
6756
|
-
strokeOpacity: 1,
|
|
6757
|
-
strokeWidth: 1
|
|
6758
|
-
};
|
|
6759
|
-
|
|
6760
|
-
// node_modules/styled-components/dist/styled-components.browser.esm.js
|
|
6761
|
-
var a2 = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
6762
|
-
var c2 = "active";
|
|
6763
|
-
var u2 = "data-styled-version";
|
|
6764
|
-
var l2 = "6.3.12";
|
|
6765
|
-
var p2 = "/*!sc*/\n";
|
|
6766
|
-
var h2 = "undefined" != typeof window && "undefined" != typeof document;
|
|
6767
|
-
var d2 = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true);
|
|
6768
|
-
var m2 = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
6769
|
-
function y2() {
|
|
6770
|
-
for (var e2 = [], t3 = 0; t3 < arguments.length; t3++) e2[t3] = arguments[t3];
|
|
6771
|
-
for (var n2 = e2[0], o2 = [], r3 = 1, s = e2.length; r3 < s; r3 += 1) o2.push(e2[r3]);
|
|
6772
|
-
return o2.forEach(function(e3) {
|
|
6773
|
-
n2 = n2.replace(/%[a-z]/, e3);
|
|
6774
|
-
}), n2;
|
|
6775
|
-
}
|
|
6776
|
-
function v2(t3) {
|
|
6777
|
-
for (var n2 = [], o2 = 1; o2 < arguments.length; o2++) n2[o2 - 1] = arguments[o2];
|
|
6778
|
-
return false ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t3, " for more information.").concat(n2.length > 0 ? " Args: ".concat(n2.join(", ")) : "")) : new Error(y2.apply(void 0, __spreadArray([m2[t3]], n2, false)).trim());
|
|
6779
|
-
}
|
|
6780
|
-
var g2 = 1 << 30;
|
|
6781
|
-
var S2 = /* @__PURE__ */ new Map();
|
|
6782
|
-
var w2 = /* @__PURE__ */ new Map();
|
|
6783
|
-
var b2 = 1;
|
|
6784
|
-
var N2 = function(e2) {
|
|
6785
|
-
if (S2.has(e2)) return S2.get(e2);
|
|
6786
|
-
for (; w2.has(b2); ) b2++;
|
|
6787
|
-
var t3 = b2++;
|
|
6788
|
-
if ((0 | t3) < 0 || t3 > g2) throw v2(16, "".concat(t3));
|
|
6789
|
-
return S2.set(e2, t3), w2.set(t3, e2), t3;
|
|
6790
|
-
};
|
|
6791
|
-
var E2 = function(e2, t3) {
|
|
6792
|
-
b2 = t3 + 1, S2.set(e2, t3), w2.set(t3, e2);
|
|
6793
|
-
};
|
|
6794
|
-
var C2 = /invalid hook call/i;
|
|
6795
|
-
var _2 = /* @__PURE__ */ new Set();
|
|
6796
|
-
var A2 = function(t3, n2) {
|
|
6797
|
-
if (true) {
|
|
6798
|
-
var r3 = n2 ? ' with the id of "'.concat(n2, '"') : "", s = "The component ".concat(t3).concat(r3, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i2 = console.error;
|
|
6799
|
-
try {
|
|
6800
|
-
var a3 = true;
|
|
6801
|
-
console.error = function(t4) {
|
|
6802
|
-
for (var n3 = [], o2 = 1; o2 < arguments.length; o2++) n3[o2 - 1] = arguments[o2];
|
|
6803
|
-
C2.test(t4) ? (a3 = false, _2.delete(s)) : i2.apply(void 0, __spreadArray([t4], n3, false));
|
|
6804
|
-
}, "function" == typeof o.useState && o.useState(null), a3 && !_2.has(s) && (console.warn(s), _2.add(s));
|
|
6805
|
-
} catch (e2) {
|
|
6806
|
-
C2.test(e2.message) && _2.delete(s);
|
|
6807
|
-
} finally {
|
|
6808
|
-
console.error = i2;
|
|
6809
|
-
}
|
|
6810
|
-
}
|
|
6811
|
-
};
|
|
6812
|
-
var P2 = Object.freeze([]);
|
|
6813
|
-
var I2 = Object.freeze({});
|
|
6814
|
-
function O2(e2, t3, n2) {
|
|
6815
|
-
return void 0 === n2 && (n2 = I2), e2.theme !== n2.theme && e2.theme || t3 || n2.theme;
|
|
6816
|
-
}
|
|
6817
|
-
var D2 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
|
|
6818
|
-
var R2 = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
|
|
6819
|
-
var T2 = /(^-|-$)/g;
|
|
6820
|
-
function x2(e2) {
|
|
6821
|
-
return e2.replace(R2, "-").replace(T2, "");
|
|
6822
|
-
}
|
|
6823
|
-
var j2 = /(a)(d)/gi;
|
|
6824
|
-
var k2 = function(e2) {
|
|
6825
|
-
return String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
|
|
6826
|
-
};
|
|
6827
|
-
function M2(e2) {
|
|
6828
|
-
var t3, n2 = "";
|
|
6829
|
-
for (t3 = Math.abs(e2); t3 > 52; t3 = t3 / 52 | 0) n2 = k2(t3 % 52) + n2;
|
|
6830
|
-
return (k2(t3 % 52) + n2).replace(j2, "$1-$2");
|
|
6831
|
-
}
|
|
6832
|
-
var V2;
|
|
6833
|
-
var F2 = function(e2, t3) {
|
|
6834
|
-
for (var n2 = t3.length; n2; ) e2 = 33 * e2 ^ t3.charCodeAt(--n2);
|
|
6835
|
-
return e2;
|
|
6836
|
-
};
|
|
6837
|
-
var G2 = function(e2) {
|
|
6838
|
-
return F2(5381, e2);
|
|
6839
|
-
};
|
|
6840
|
-
function L2(e2) {
|
|
6841
|
-
return M2(G2(e2) >>> 0);
|
|
6842
|
-
}
|
|
6843
|
-
function B2(e2) {
|
|
6844
|
-
return "string" == typeof e2 && e2 || e2.displayName || e2.name || "Component";
|
|
6845
|
-
}
|
|
6846
|
-
function z2(e2) {
|
|
6847
|
-
return "string" == typeof e2 && e2.charAt(0) === e2.charAt(0).toLowerCase();
|
|
6848
|
-
}
|
|
6849
|
-
var $2 = "function" == typeof Symbol && Symbol.for;
|
|
6850
|
-
var Y2 = $2 ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
|
|
6851
|
-
var W2 = $2 ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
|
|
6852
|
-
var q2 = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
|
|
6853
|
-
var H2 = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
|
|
6854
|
-
var U2 = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
|
|
6855
|
-
var J2 = ((V2 = {})[W2] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, V2[Y2] = U2, V2);
|
|
6856
|
-
function X2(e2) {
|
|
6857
|
-
return ("type" in (t3 = e2) && t3.type.$$typeof) === Y2 ? U2 : "$$typeof" in e2 ? J2[e2.$$typeof] : q2;
|
|
6858
|
-
var t3;
|
|
6859
|
-
}
|
|
6860
|
-
var Z2 = Object.defineProperty;
|
|
6861
|
-
var K2 = Object.getOwnPropertyNames;
|
|
6862
|
-
var Q2 = Object.getOwnPropertySymbols;
|
|
6863
|
-
var ee2 = Object.getOwnPropertyDescriptor;
|
|
6864
|
-
var te2 = Object.getPrototypeOf;
|
|
6865
|
-
var ne2 = Object.prototype;
|
|
6866
|
-
function oe2(e2, t3, n2) {
|
|
6867
|
-
if ("string" != typeof t3) {
|
|
6868
|
-
if (ne2) {
|
|
6869
|
-
var o2 = te2(t3);
|
|
6870
|
-
o2 && o2 !== ne2 && oe2(e2, o2, n2);
|
|
6871
|
-
}
|
|
6872
|
-
var r3 = K2(t3);
|
|
6873
|
-
Q2 && (r3 = r3.concat(Q2(t3)));
|
|
6874
|
-
for (var s = X2(e2), i2 = X2(t3), a3 = 0; a3 < r3.length; ++a3) {
|
|
6875
|
-
var c3 = r3[a3];
|
|
6876
|
-
if (!(c3 in H2 || n2 && n2[c3] || i2 && c3 in i2 || s && c3 in s)) {
|
|
6877
|
-
var u3 = ee2(t3, c3);
|
|
6878
|
-
try {
|
|
6879
|
-
Z2(e2, c3, u3);
|
|
6880
|
-
} catch (e3) {
|
|
6881
|
-
}
|
|
6882
|
-
}
|
|
6883
|
-
}
|
|
6884
|
-
}
|
|
6885
|
-
return e2;
|
|
6886
|
-
}
|
|
6887
|
-
function re2(e2) {
|
|
6888
|
-
return "function" == typeof e2;
|
|
6889
|
-
}
|
|
6890
|
-
function se2(e2) {
|
|
6891
|
-
return "object" == typeof e2 && "styledComponentId" in e2;
|
|
6892
|
-
}
|
|
6893
|
-
function ie2(e2, t3) {
|
|
6894
|
-
return e2 && t3 ? "".concat(e2, " ").concat(t3) : e2 || t3 || "";
|
|
6895
|
-
}
|
|
6896
|
-
function ae2(e2, t3) {
|
|
6897
|
-
return e2.join(t3 || "");
|
|
6898
|
-
}
|
|
6899
|
-
function ce2(e2) {
|
|
6900
|
-
return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
|
|
6901
|
-
}
|
|
6902
|
-
function ue2(e2, t3, n2) {
|
|
6903
|
-
if (void 0 === n2 && (n2 = false), !n2 && !ce2(e2) && !Array.isArray(e2)) return t3;
|
|
6904
|
-
if (Array.isArray(t3)) for (var o2 = 0; o2 < t3.length; o2++) e2[o2] = ue2(e2[o2], t3[o2]);
|
|
6905
|
-
else if (ce2(t3)) for (var o2 in t3) e2[o2] = ue2(e2[o2], t3[o2]);
|
|
6906
|
-
return e2;
|
|
6907
|
-
}
|
|
6908
|
-
function le2(e2, t3) {
|
|
6909
|
-
Object.defineProperty(e2, "toString", { value: t3 });
|
|
6910
|
-
}
|
|
6911
|
-
var pe2 = (function() {
|
|
6912
|
-
function e2(e3) {
|
|
6913
|
-
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e3, this._cGroup = 0, this._cIndex = 0;
|
|
6914
|
-
}
|
|
6915
|
-
return e2.prototype.indexOfGroup = function(e3) {
|
|
6916
|
-
if (e3 === this._cGroup) return this._cIndex;
|
|
6917
|
-
var t3 = this._cIndex;
|
|
6918
|
-
if (e3 > this._cGroup) for (var n2 = this._cGroup; n2 < e3; n2++) t3 += this.groupSizes[n2];
|
|
6919
|
-
else for (n2 = this._cGroup - 1; n2 >= e3; n2--) t3 -= this.groupSizes[n2];
|
|
6920
|
-
return this._cGroup = e3, this._cIndex = t3, t3;
|
|
6921
|
-
}, e2.prototype.insertRules = function(e3, t3) {
|
|
6922
|
-
if (e3 >= this.groupSizes.length) {
|
|
6923
|
-
for (var n2 = this.groupSizes, o2 = n2.length, r3 = o2; e3 >= r3; ) if ((r3 <<= 1) < 0) throw v2(16, "".concat(e3));
|
|
6924
|
-
this.groupSizes = new Uint32Array(r3), this.groupSizes.set(n2), this.length = r3;
|
|
6925
|
-
for (var s = o2; s < r3; s++) this.groupSizes[s] = 0;
|
|
6926
|
-
}
|
|
6927
|
-
for (var i2 = this.indexOfGroup(e3 + 1), a3 = 0, c3 = (s = 0, t3.length); s < c3; s++) this.tag.insertRule(i2, t3[s]) && (this.groupSizes[e3]++, i2++, a3++);
|
|
6928
|
-
a3 > 0 && this._cGroup > e3 && (this._cIndex += a3);
|
|
6929
|
-
}, e2.prototype.clearGroup = function(e3) {
|
|
6930
|
-
if (e3 < this.length) {
|
|
6931
|
-
var t3 = this.groupSizes[e3], n2 = this.indexOfGroup(e3), o2 = n2 + t3;
|
|
6932
|
-
this.groupSizes[e3] = 0;
|
|
6933
|
-
for (var r3 = n2; r3 < o2; r3++) this.tag.deleteRule(n2);
|
|
6934
|
-
t3 > 0 && this._cGroup > e3 && (this._cIndex -= t3);
|
|
6935
|
-
}
|
|
6936
|
-
}, e2.prototype.getGroup = function(e3) {
|
|
6937
|
-
var t3 = "";
|
|
6938
|
-
if (e3 >= this.length || 0 === this.groupSizes[e3]) return t3;
|
|
6939
|
-
for (var n2 = this.groupSizes[e3], o2 = this.indexOfGroup(e3), r3 = o2 + n2, s = o2; s < r3; s++) t3 += this.tag.getRule(s) + p2;
|
|
6940
|
-
return t3;
|
|
6941
|
-
}, e2;
|
|
6942
|
-
})();
|
|
6943
|
-
var he2 = "style[".concat(a2, "][").concat(u2, '="').concat(l2, '"]');
|
|
6944
|
-
var de2 = new RegExp("^".concat(a2, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
|
|
6945
|
-
var fe2 = function(e2) {
|
|
6946
|
-
return "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
|
|
6947
|
-
};
|
|
6948
|
-
var me2 = function(e2) {
|
|
6949
|
-
if (!e2) return document;
|
|
6950
|
-
if (fe2(e2)) return e2;
|
|
6951
|
-
if ("getRootNode" in e2) {
|
|
6952
|
-
var t3 = e2.getRootNode();
|
|
6953
|
-
if (fe2(t3)) return t3;
|
|
6954
|
-
}
|
|
6955
|
-
return document;
|
|
6956
|
-
};
|
|
6957
|
-
var ye2 = function(e2, t3, n2) {
|
|
6958
|
-
for (var o2, r3 = n2.split(","), s = 0, i2 = r3.length; s < i2; s++) (o2 = r3[s]) && e2.registerName(t3, o2);
|
|
6959
|
-
};
|
|
6960
|
-
var ve2 = function(e2, t3) {
|
|
6961
|
-
for (var n2, o2 = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(p2), r3 = [], s = 0, i2 = o2.length; s < i2; s++) {
|
|
6962
|
-
var a3 = o2[s].trim();
|
|
6963
|
-
if (a3) {
|
|
6964
|
-
var c3 = a3.match(de2);
|
|
6965
|
-
if (c3) {
|
|
6966
|
-
var u3 = 0 | parseInt(c3[1], 10), l3 = c3[2];
|
|
6967
|
-
0 !== u3 && (E2(l3, u3), ye2(e2, l3, c3[3]), e2.getTag().insertRules(u3, r3)), r3.length = 0;
|
|
6968
|
-
} else r3.push(a3);
|
|
6969
|
-
}
|
|
6970
|
-
}
|
|
6971
|
-
};
|
|
6972
|
-
var ge2 = function(e2) {
|
|
6973
|
-
for (var t3 = me2(e2.options.target).querySelectorAll(he2), n2 = 0, o2 = t3.length; n2 < o2; n2++) {
|
|
6974
|
-
var r3 = t3[n2];
|
|
6975
|
-
r3 && r3.getAttribute(a2) !== c2 && (ve2(e2, r3), r3.parentNode && r3.parentNode.removeChild(r3));
|
|
6976
|
-
}
|
|
6977
|
-
};
|
|
6978
|
-
function Se2() {
|
|
6979
|
-
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
6980
|
-
}
|
|
6981
|
-
var we2 = function(e2) {
|
|
6982
|
-
var t3 = document.head, n2 = e2 || t3, o2 = document.createElement("style"), r3 = (function(e3) {
|
|
6983
|
-
var t4 = Array.from(e3.querySelectorAll("style[".concat(a2, "]")));
|
|
6984
|
-
return t4[t4.length - 1];
|
|
6985
|
-
})(n2), s = void 0 !== r3 ? r3.nextSibling : null;
|
|
6986
|
-
o2.setAttribute(a2, c2), o2.setAttribute(u2, l2);
|
|
6987
|
-
var i2 = Se2();
|
|
6988
|
-
return i2 && o2.setAttribute("nonce", i2), n2.insertBefore(o2, s), o2;
|
|
6989
|
-
};
|
|
6990
|
-
var be2 = (function() {
|
|
6991
|
-
function e2(e3) {
|
|
6992
|
-
this.element = we2(e3), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e4) {
|
|
6993
|
-
var t3;
|
|
6994
|
-
if (e4.sheet) return e4.sheet;
|
|
6995
|
-
for (var n2 = null !== (t3 = e4.getRootNode().styleSheets) && void 0 !== t3 ? t3 : document.styleSheets, o2 = 0, r3 = n2.length; o2 < r3; o2++) {
|
|
6996
|
-
var s = n2[o2];
|
|
6997
|
-
if (s.ownerNode === e4) return s;
|
|
6998
|
-
}
|
|
6999
|
-
throw v2(17);
|
|
7000
|
-
})(this.element), this.length = 0;
|
|
7001
|
-
}
|
|
7002
|
-
return e2.prototype.insertRule = function(e3, t3) {
|
|
7003
|
-
try {
|
|
7004
|
-
return this.sheet.insertRule(t3, e3), this.length++, true;
|
|
7005
|
-
} catch (e4) {
|
|
7006
|
-
return false;
|
|
7007
|
-
}
|
|
7008
|
-
}, e2.prototype.deleteRule = function(e3) {
|
|
7009
|
-
this.sheet.deleteRule(e3), this.length--;
|
|
7010
|
-
}, e2.prototype.getRule = function(e3) {
|
|
7011
|
-
var t3 = this.sheet.cssRules[e3];
|
|
7012
|
-
return t3 && t3.cssText ? t3.cssText : "";
|
|
7013
|
-
}, e2;
|
|
7014
|
-
})();
|
|
7015
|
-
var Ne2 = (function() {
|
|
7016
|
-
function e2(e3) {
|
|
7017
|
-
this.element = we2(e3), this.nodes = this.element.childNodes, this.length = 0;
|
|
7018
|
-
}
|
|
7019
|
-
return e2.prototype.insertRule = function(e3, t3) {
|
|
7020
|
-
if (e3 <= this.length && e3 >= 0) {
|
|
7021
|
-
var n2 = document.createTextNode(t3);
|
|
7022
|
-
return this.element.insertBefore(n2, this.nodes[e3] || null), this.length++, true;
|
|
7023
|
-
}
|
|
7024
|
-
return false;
|
|
7025
|
-
}, e2.prototype.deleteRule = function(e3) {
|
|
7026
|
-
this.element.removeChild(this.nodes[e3]), this.length--;
|
|
7027
|
-
}, e2.prototype.getRule = function(e3) {
|
|
7028
|
-
return e3 < this.length ? this.nodes[e3].textContent : "";
|
|
7029
|
-
}, e2;
|
|
7030
|
-
})();
|
|
7031
|
-
var Ee2 = (function() {
|
|
7032
|
-
function e2(e3) {
|
|
7033
|
-
this.rules = [], this.length = 0;
|
|
7034
|
-
}
|
|
7035
|
-
return e2.prototype.insertRule = function(e3, t3) {
|
|
7036
|
-
return e3 <= this.length && (e3 === this.length ? this.rules.push(t3) : this.rules.splice(e3, 0, t3), this.length++, true);
|
|
7037
|
-
}, e2.prototype.deleteRule = function(e3) {
|
|
7038
|
-
this.rules.splice(e3, 1), this.length--;
|
|
7039
|
-
}, e2.prototype.getRule = function(e3) {
|
|
7040
|
-
return e3 < this.length ? this.rules[e3] : "";
|
|
7041
|
-
}, e2;
|
|
7042
|
-
})();
|
|
7043
|
-
var Ce2 = h2;
|
|
7044
|
-
var _e2 = { isServer: !h2, useCSSOMInjection: !d2 };
|
|
7045
|
-
var Ae2 = (function() {
|
|
7046
|
-
function e2(e3, n2, o2) {
|
|
7047
|
-
void 0 === e3 && (e3 = I2), void 0 === n2 && (n2 = {});
|
|
7048
|
-
var r3 = this;
|
|
7049
|
-
this.options = __assign(__assign({}, _e2), e3), this.gs = n2, this.names = new Map(o2), this.server = !!e3.isServer, !this.server && h2 && Ce2 && (Ce2 = false, ge2(this)), le2(this, function() {
|
|
7050
|
-
return (function(e4) {
|
|
7051
|
-
for (var t3 = e4.getTag(), n3 = t3.length, o3 = "", r4 = function(n4) {
|
|
7052
|
-
var r5 = (function(e5) {
|
|
7053
|
-
return w2.get(e5);
|
|
7054
|
-
})(n4);
|
|
7055
|
-
if (void 0 === r5) return "continue";
|
|
7056
|
-
var s2 = e4.names.get(r5);
|
|
7057
|
-
if (void 0 === s2 || !s2.size) return "continue";
|
|
7058
|
-
var i2 = t3.getGroup(n4);
|
|
7059
|
-
if (0 === i2.length) return "continue";
|
|
7060
|
-
var c3 = a2 + ".g" + n4 + '[id="' + r5 + '"]', u3 = "";
|
|
7061
|
-
s2.forEach(function(e5) {
|
|
7062
|
-
e5.length > 0 && (u3 += e5 + ",");
|
|
7063
|
-
}), o3 += i2 + c3 + '{content:"' + u3 + '"}' + p2;
|
|
7064
|
-
}, s = 0; s < n3; s++) r4(s);
|
|
7065
|
-
return o3;
|
|
7066
|
-
})(r3);
|
|
7067
|
-
});
|
|
7068
|
-
}
|
|
7069
|
-
return e2.registerId = function(e3) {
|
|
7070
|
-
return N2(e3);
|
|
7071
|
-
}, e2.prototype.rehydrate = function() {
|
|
7072
|
-
!this.server && h2 && ge2(this);
|
|
7073
|
-
}, e2.prototype.reconstructWithOptions = function(n2, o2) {
|
|
7074
|
-
void 0 === o2 && (o2 = true);
|
|
7075
|
-
var r3 = new e2(__assign(__assign({}, this.options), n2), this.gs, o2 && this.names || void 0);
|
|
7076
|
-
return !this.server && h2 && n2.target !== this.options.target && me2(this.options.target) !== me2(n2.target) && ge2(r3), r3;
|
|
7077
|
-
}, e2.prototype.allocateGSInstance = function(e3) {
|
|
7078
|
-
return this.gs[e3] = (this.gs[e3] || 0) + 1;
|
|
7079
|
-
}, e2.prototype.getTag = function() {
|
|
7080
|
-
return this.tag || (this.tag = (e3 = (function(e4) {
|
|
7081
|
-
var t3 = e4.useCSSOMInjection, n2 = e4.target;
|
|
7082
|
-
return e4.isServer ? new Ee2(n2) : t3 ? new be2(n2) : new Ne2(n2);
|
|
7083
|
-
})(this.options), new pe2(e3)));
|
|
7084
|
-
var e3;
|
|
7085
|
-
}, e2.prototype.hasNameForId = function(e3, t3) {
|
|
7086
|
-
var n2, o2;
|
|
7087
|
-
return null !== (o2 = null === (n2 = this.names.get(e3)) || void 0 === n2 ? void 0 : n2.has(t3)) && void 0 !== o2 && o2;
|
|
7088
|
-
}, e2.prototype.registerName = function(e3, t3) {
|
|
7089
|
-
N2(e3);
|
|
7090
|
-
var n2 = this.names.get(e3);
|
|
7091
|
-
n2 ? n2.add(t3) : this.names.set(e3, /* @__PURE__ */ new Set([t3]));
|
|
7092
|
-
}, e2.prototype.insertRules = function(e3, t3, n2) {
|
|
7093
|
-
this.registerName(e3, t3), this.getTag().insertRules(N2(e3), n2);
|
|
7094
|
-
}, e2.prototype.clearNames = function(e3) {
|
|
7095
|
-
this.names.has(e3) && this.names.get(e3).clear();
|
|
7096
|
-
}, e2.prototype.clearRules = function(e3) {
|
|
7097
|
-
this.getTag().clearGroup(N2(e3)), this.clearNames(e3);
|
|
7098
|
-
}, e2.prototype.clearTag = function() {
|
|
7099
|
-
this.tag = void 0;
|
|
7100
|
-
}, e2;
|
|
7101
|
-
})();
|
|
7102
|
-
function Pe2(e2, t3) {
|
|
7103
|
-
return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in unitlessKeys || e2.startsWith("--") ? String(t3).trim() : "".concat(t3, "px");
|
|
7104
|
-
}
|
|
7105
|
-
var Ie2 = function(e2) {
|
|
7106
|
-
return e2 >= "A" && e2 <= "Z";
|
|
7107
|
-
};
|
|
7108
|
-
function Oe2(e2) {
|
|
7109
|
-
for (var t3 = "", n2 = 0; n2 < e2.length; n2++) {
|
|
7110
|
-
var o2 = e2[n2];
|
|
7111
|
-
if (1 === n2 && "-" === o2 && "-" === e2[0]) return e2;
|
|
7112
|
-
Ie2(o2) ? t3 += "-" + o2.toLowerCase() : t3 += o2;
|
|
7113
|
-
}
|
|
7114
|
-
return t3.startsWith("ms-") ? "-" + t3 : t3;
|
|
7115
|
-
}
|
|
7116
|
-
var De2 = /* @__PURE__ */ Symbol.for("sc-keyframes");
|
|
7117
|
-
function Re2(e2) {
|
|
7118
|
-
return "object" == typeof e2 && null !== e2 && De2 in e2;
|
|
7119
|
-
}
|
|
7120
|
-
var Te2 = function(e2) {
|
|
7121
|
-
return null == e2 || false === e2 || "" === e2;
|
|
7122
|
-
};
|
|
7123
|
-
var xe2 = function(t3) {
|
|
7124
|
-
var n2 = [];
|
|
7125
|
-
for (var o2 in t3) {
|
|
7126
|
-
var r3 = t3[o2];
|
|
7127
|
-
t3.hasOwnProperty(o2) && !Te2(r3) && (Array.isArray(r3) && r3.isCss || re2(r3) ? n2.push("".concat(Oe2(o2), ":"), r3, ";") : ce2(r3) ? n2.push.apply(n2, __spreadArray(__spreadArray(["".concat(o2, " {")], xe2(r3), false), ["}"], false)) : n2.push("".concat(Oe2(o2), ": ").concat(Pe2(o2, r3), ";")));
|
|
7128
|
-
}
|
|
7129
|
-
return n2;
|
|
7130
|
-
};
|
|
7131
|
-
function je2(e2, t3, n2, o2, r3) {
|
|
7132
|
-
if (void 0 === r3 && (r3 = []), "string" == typeof e2) return e2 && r3.push(e2), r3;
|
|
7133
|
-
if (Te2(e2)) return r3;
|
|
7134
|
-
if (se2(e2)) return r3.push(".".concat(e2.styledComponentId)), r3;
|
|
7135
|
-
if (re2(e2)) {
|
|
7136
|
-
if (!re2(i2 = e2) || i2.prototype && i2.prototype.isReactComponent || !t3) return r3.push(e2), r3;
|
|
7137
|
-
var s = e2(t3);
|
|
7138
|
-
return "object" != typeof s || Array.isArray(s) || Re2(s) || ce2(s) || null === s || console.error("".concat(B2(e2), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), je2(s, t3, n2, o2, r3);
|
|
7139
|
-
}
|
|
7140
|
-
var i2;
|
|
7141
|
-
if (Re2(e2)) return n2 ? (e2.inject(n2, o2), r3.push(e2.getName(o2))) : r3.push(e2), r3;
|
|
7142
|
-
if (ce2(e2)) {
|
|
7143
|
-
for (var a3 = xe2(e2), c3 = 0; c3 < a3.length; c3++) r3.push(a3[c3]);
|
|
7144
|
-
return r3;
|
|
7145
|
-
}
|
|
7146
|
-
if (!Array.isArray(e2)) return r3.push(e2.toString()), r3;
|
|
7147
|
-
for (c3 = 0; c3 < e2.length; c3++) je2(e2[c3], t3, n2, o2, r3);
|
|
7148
|
-
return r3;
|
|
7149
|
-
}
|
|
7150
|
-
function ke2(e2) {
|
|
7151
|
-
for (var t3 = 0; t3 < e2.length; t3 += 1) {
|
|
7152
|
-
var n2 = e2[t3];
|
|
7153
|
-
if (re2(n2) && !se2(n2)) return false;
|
|
7154
|
-
}
|
|
7155
|
-
return true;
|
|
7156
|
-
}
|
|
7157
|
-
var Me2 = G2(l2);
|
|
7158
|
-
var Ve2 = (function() {
|
|
7159
|
-
function e2(e3, t3, n2) {
|
|
7160
|
-
this.rules = e3, this.staticRulesId = "", this.isStatic = false, this.componentId = t3, this.baseHash = F2(Me2, t3), this.baseStyle = n2, Ae2.registerId(t3);
|
|
7161
|
-
}
|
|
7162
|
-
return e2.prototype.generateAndInjectStyles = function(e3, t3, n2) {
|
|
7163
|
-
var o2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e3, t3, n2).className : "";
|
|
7164
|
-
if (this.isStatic && !n2.hash) if (this.staticRulesId && t3.hasNameForId(this.componentId, this.staticRulesId)) o2 = ie2(o2, this.staticRulesId);
|
|
7165
|
-
else {
|
|
7166
|
-
var r3 = ae2(je2(this.rules, e3, t3, n2)), s = M2(F2(this.baseHash, r3) >>> 0);
|
|
7167
|
-
if (!t3.hasNameForId(this.componentId, s)) {
|
|
7168
|
-
var i2 = n2(r3, ".".concat(s), void 0, this.componentId);
|
|
7169
|
-
t3.insertRules(this.componentId, s, i2);
|
|
7170
|
-
}
|
|
7171
|
-
o2 = ie2(o2, s), this.staticRulesId = s;
|
|
7172
|
-
}
|
|
7173
|
-
else {
|
|
7174
|
-
for (var a3 = F2(this.baseHash, n2.hash), c3 = "", u3 = 0; u3 < this.rules.length; u3++) {
|
|
7175
|
-
var l3 = this.rules[u3];
|
|
7176
|
-
if ("string" == typeof l3) c3 += l3, a3 = F2(a3, l3);
|
|
7177
|
-
else if (l3) {
|
|
7178
|
-
var p3 = ae2(je2(l3, e3, t3, n2));
|
|
7179
|
-
a3 = F2(F2(a3, String(u3)), p3), c3 += p3;
|
|
7180
|
-
}
|
|
7181
|
-
}
|
|
7182
|
-
if (c3) {
|
|
7183
|
-
var h3 = M2(a3 >>> 0);
|
|
7184
|
-
if (!t3.hasNameForId(this.componentId, h3)) {
|
|
7185
|
-
var d3 = n2(c3, ".".concat(h3), void 0, this.componentId);
|
|
7186
|
-
t3.insertRules(this.componentId, h3, d3);
|
|
7187
|
-
}
|
|
7188
|
-
o2 = ie2(o2, h3);
|
|
7189
|
-
}
|
|
7190
|
-
}
|
|
7191
|
-
return { className: o2, css: "undefined" == typeof window ? t3.getTag().getGroup(N2(this.componentId)) : "" };
|
|
7192
|
-
}, e2;
|
|
7193
|
-
})();
|
|
7194
|
-
var Fe2 = /&/g;
|
|
7195
|
-
var Ge2 = 47;
|
|
7196
|
-
var Le2 = 42;
|
|
7197
|
-
function Be2(e2) {
|
|
7198
|
-
if (-1 === e2.indexOf("}")) return false;
|
|
7199
|
-
for (var t3 = e2.length, n2 = 0, o2 = 0, r3 = false, s = 0; s < t3; s++) {
|
|
7200
|
-
var i2 = e2.charCodeAt(s);
|
|
7201
|
-
if (0 !== o2 || r3 || i2 !== Ge2 || e2.charCodeAt(s + 1) !== Le2) if (r3) i2 === Le2 && e2.charCodeAt(s + 1) === Ge2 && (r3 = false, s++);
|
|
7202
|
-
else if (34 !== i2 && 39 !== i2 || 0 !== s && 92 === e2.charCodeAt(s - 1)) {
|
|
7203
|
-
if (0 === o2) {
|
|
7204
|
-
if (123 === i2) n2++;
|
|
7205
|
-
else if (125 === i2 && --n2 < 0) return true;
|
|
7206
|
-
}
|
|
7207
|
-
} else 0 === o2 ? o2 = i2 : o2 === i2 && (o2 = 0);
|
|
7208
|
-
else r3 = true, s++;
|
|
7209
|
-
}
|
|
7210
|
-
return 0 !== n2 || 0 !== o2;
|
|
7211
|
-
}
|
|
7212
|
-
function ze2(e2, t3) {
|
|
7213
|
-
return e2.map(function(e3) {
|
|
7214
|
-
return "rule" === e3.type && (e3.value = "".concat(t3, " ").concat(e3.value), e3.value = e3.value.replaceAll(",", ",".concat(t3, " ")), e3.props = e3.props.map(function(e4) {
|
|
7215
|
-
return "".concat(t3, " ").concat(e4);
|
|
7216
|
-
})), Array.isArray(e3.children) && "@keyframes" !== e3.type && (e3.children = ze2(e3.children, t3)), e3;
|
|
7217
|
-
});
|
|
7218
|
-
}
|
|
7219
|
-
function $e2(e2) {
|
|
7220
|
-
var t3, n2, o2, r3 = void 0 === e2 ? I2 : e2, s = r3.options, a3 = void 0 === s ? I2 : s, c3 = r3.plugins, u3 = void 0 === c3 ? P2 : c3, l3 = function(e3, o3, r4) {
|
|
7221
|
-
return r4.startsWith(n2) && r4.endsWith(n2) && r4.replaceAll(n2, "").length > 0 ? ".".concat(t3) : e3;
|
|
7222
|
-
}, p3 = u3.slice();
|
|
7223
|
-
p3.push(function(e3) {
|
|
7224
|
-
e3.type === RULESET && e3.value.includes("&") && (o2 || (o2 = new RegExp("\\".concat(n2, "\\b"), "g")), e3.props[0] = e3.props[0].replace(Fe2, n2).replace(o2, l3));
|
|
7225
|
-
}), a3.prefix && p3.push(prefixer), p3.push(stringify);
|
|
7226
|
-
var h3 = [], d3 = middleware(p3.concat(rulesheet(function(e3) {
|
|
7227
|
-
return h3.push(e3);
|
|
7228
|
-
}))), f2 = function(e3, r4, s2, c4) {
|
|
7229
|
-
void 0 === r4 && (r4 = ""), void 0 === s2 && (s2 = ""), void 0 === c4 && (c4 = "&"), t3 = c4, n2 = r4, o2 = void 0;
|
|
7230
|
-
var u4 = (function(e4) {
|
|
7231
|
-
if (!Be2(e4)) return e4;
|
|
7232
|
-
for (var t4 = e4.length, n3 = "", o3 = 0, r5 = 0, s3 = 0, i2 = false, a4 = 0; a4 < t4; a4++) {
|
|
7233
|
-
var c5 = e4.charCodeAt(a4);
|
|
7234
|
-
if (0 !== s3 || i2 || c5 !== Ge2 || e4.charCodeAt(a4 + 1) !== Le2) if (i2) c5 === Le2 && e4.charCodeAt(a4 + 1) === Ge2 && (i2 = false, a4++);
|
|
7235
|
-
else if (34 !== c5 && 39 !== c5 || 0 !== a4 && 92 === e4.charCodeAt(a4 - 1)) {
|
|
7236
|
-
if (0 === s3) if (123 === c5) r5++;
|
|
7237
|
-
else if (125 === c5) {
|
|
7238
|
-
if (--r5 < 0) {
|
|
7239
|
-
for (var u5 = a4 + 1; u5 < t4; ) {
|
|
7240
|
-
var l5 = e4.charCodeAt(u5);
|
|
7241
|
-
if (59 === l5 || 10 === l5) break;
|
|
7242
|
-
u5++;
|
|
7243
|
-
}
|
|
7244
|
-
u5 < t4 && 59 === e4.charCodeAt(u5) && u5++, r5 = 0, a4 = u5 - 1, o3 = u5;
|
|
7245
|
-
continue;
|
|
7246
|
-
}
|
|
7247
|
-
0 === r5 && (n3 += e4.substring(o3, a4 + 1), o3 = a4 + 1);
|
|
7248
|
-
} else 59 === c5 && 0 === r5 && (n3 += e4.substring(o3, a4 + 1), o3 = a4 + 1);
|
|
7249
|
-
} else 0 === s3 ? s3 = c5 : s3 === c5 && (s3 = 0);
|
|
7250
|
-
else i2 = true, a4++;
|
|
7251
|
-
}
|
|
7252
|
-
if (o3 < t4) {
|
|
7253
|
-
var p4 = e4.substring(o3);
|
|
7254
|
-
Be2(p4) || (n3 += p4);
|
|
7255
|
-
}
|
|
7256
|
-
return n3;
|
|
7257
|
-
})((function(e4) {
|
|
7258
|
-
if (-1 === e4.indexOf("//")) return e4;
|
|
7259
|
-
for (var t4 = e4.length, n3 = [], o3 = 0, r5 = 0, s3 = 0, i2 = 0; r5 < t4; ) {
|
|
7260
|
-
var a4 = e4.charCodeAt(r5);
|
|
7261
|
-
if (34 !== a4 && 39 !== a4 || 0 !== r5 && 92 === e4.charCodeAt(r5 - 1)) if (0 === s3) if (a4 === Ge2 && r5 + 1 < t4 && e4.charCodeAt(r5 + 1) === Le2) {
|
|
7262
|
-
for (r5 += 2; r5 + 1 < t4 && (e4.charCodeAt(r5) !== Le2 || e4.charCodeAt(r5 + 1) !== Ge2); ) r5++;
|
|
7263
|
-
r5 += 2;
|
|
7264
|
-
} else if (40 === a4 && r5 >= 3 && 108 == (32 | e4.charCodeAt(r5 - 1)) && 114 == (32 | e4.charCodeAt(r5 - 2)) && 117 == (32 | e4.charCodeAt(r5 - 3))) i2 = 1, r5++;
|
|
7265
|
-
else if (i2 > 0) 41 === a4 ? i2-- : 40 === a4 && i2++, r5++;
|
|
7266
|
-
else if (a4 === Le2 && r5 + 1 < t4 && e4.charCodeAt(r5 + 1) === Ge2) r5 > o3 && n3.push(e4.substring(o3, r5)), o3 = r5 += 2;
|
|
7267
|
-
else if (a4 === Ge2 && r5 + 1 < t4 && e4.charCodeAt(r5 + 1) === Ge2) {
|
|
7268
|
-
for (r5 > o3 && n3.push(e4.substring(o3, r5)); r5 < t4 && 10 !== e4.charCodeAt(r5); ) r5++;
|
|
7269
|
-
o3 = r5;
|
|
7270
|
-
} else r5++;
|
|
7271
|
-
else r5++;
|
|
7272
|
-
else 0 === s3 ? s3 = a4 : s3 === a4 && (s3 = 0), r5++;
|
|
7273
|
-
}
|
|
7274
|
-
return 0 === o3 ? e4 : (o3 < t4 && n3.push(e4.substring(o3)), n3.join(""));
|
|
7275
|
-
})(e3)), l4 = compile(s2 || r4 ? "".concat(s2, " ").concat(r4, " { ").concat(u4, " }") : u4);
|
|
7276
|
-
return a3.namespace && (l4 = ze2(l4, a3.namespace)), h3 = [], serialize(l4, d3), h3;
|
|
7277
|
-
};
|
|
7278
|
-
return f2.hash = u3.length ? u3.reduce(function(e3, t4) {
|
|
7279
|
-
return t4.name || v2(15), F2(e3, t4.name);
|
|
7280
|
-
}, 5381).toString() : "", f2;
|
|
7281
|
-
}
|
|
7282
|
-
var Ye2 = new Ae2();
|
|
7283
|
-
var We2 = $e2();
|
|
7284
|
-
var qe2 = o.createContext({ shouldForwardProp: void 0, styleSheet: Ye2, stylis: We2 });
|
|
7285
|
-
var He2 = qe2.Consumer;
|
|
7286
|
-
var Ue2 = o.createContext(void 0);
|
|
7287
|
-
function Je2() {
|
|
7288
|
-
return o.useContext(qe2);
|
|
7289
|
-
}
|
|
7290
|
-
function Xe2(e2) {
|
|
7291
|
-
if (!o.useMemo) return e2.children;
|
|
7292
|
-
var t3 = Je2().styleSheet, n2 = o.useMemo(function() {
|
|
7293
|
-
var n3 = t3;
|
|
7294
|
-
return e2.sheet ? n3 = e2.sheet : e2.target && (n3 = n3.reconstructWithOptions({ target: e2.target }, false)), e2.disableCSSOMInjection && (n3 = n3.reconstructWithOptions({ useCSSOMInjection: false })), n3;
|
|
7295
|
-
}, [e2.disableCSSOMInjection, e2.sheet, e2.target, t3]), r3 = o.useMemo(function() {
|
|
7296
|
-
return $e2({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: e2.stylisPlugins });
|
|
7297
|
-
}, [e2.enableVendorPrefixes, e2.namespace, e2.stylisPlugins]), s = o.useMemo(function() {
|
|
7298
|
-
return { shouldForwardProp: e2.shouldForwardProp, styleSheet: n2, stylis: r3 };
|
|
7299
|
-
}, [e2.shouldForwardProp, n2, r3]);
|
|
7300
|
-
return o.createElement(qe2.Provider, { value: s }, o.createElement(Ue2.Provider, { value: r3 }, e2.children));
|
|
7301
|
-
}
|
|
7302
|
-
var Ze2 = o.createContext(void 0);
|
|
7303
|
-
var Ke2 = Ze2.Consumer;
|
|
7304
|
-
function et2(e2) {
|
|
7305
|
-
var n2 = o.useContext(Ze2), r3 = o.useMemo(function() {
|
|
7306
|
-
return (function(e3, n3) {
|
|
7307
|
-
if (!e3) throw v2(14);
|
|
7308
|
-
if (re2(e3)) {
|
|
7309
|
-
var o2 = e3(n3);
|
|
7310
|
-
if (null === o2 || Array.isArray(o2) || "object" != typeof o2) throw v2(7);
|
|
7311
|
-
return o2;
|
|
7312
|
-
}
|
|
7313
|
-
if (Array.isArray(e3) || "object" != typeof e3) throw v2(8);
|
|
7314
|
-
return n3 ? __assign(__assign({}, n3), e3) : e3;
|
|
7315
|
-
})(e2.theme, n2);
|
|
7316
|
-
}, [e2.theme, n2]);
|
|
7317
|
-
return e2.children ? o.createElement(Ze2.Provider, { value: r3 }, e2.children) : null;
|
|
7318
|
-
}
|
|
7319
|
-
var tt = {};
|
|
7320
|
-
var nt2 = /* @__PURE__ */ new Set();
|
|
7321
|
-
function ot2(e2, s, i2) {
|
|
7322
|
-
var a3 = se2(e2), c3 = e2, u3 = !z2(e2), p3 = s.attrs, h3 = void 0 === p3 ? P2 : p3, d3 = s.componentId, f2 = void 0 === d3 ? (function(e3, t3) {
|
|
7323
|
-
var n2 = "string" != typeof e3 ? "sc" : x2(e3);
|
|
7324
|
-
tt[n2] = (tt[n2] || 0) + 1;
|
|
7325
|
-
var o2 = "".concat(n2, "-").concat(L2(l2 + n2 + tt[n2]));
|
|
7326
|
-
return t3 ? "".concat(t3, "-").concat(o2) : o2;
|
|
7327
|
-
})(s.displayName, s.parentComponentId) : d3, m3 = s.displayName, y3 = void 0 === m3 ? (function(e3) {
|
|
7328
|
-
return z2(e3) ? "styled.".concat(e3) : "Styled(".concat(B2(e3), ")");
|
|
7329
|
-
})(e2) : m3, v3 = s.displayName && s.componentId ? "".concat(x2(s.displayName), "-").concat(s.componentId) : s.componentId || f2, g3 = a3 && c3.attrs ? c3.attrs.concat(h3).filter(Boolean) : h3, S3 = s.shouldForwardProp;
|
|
7330
|
-
if (a3 && c3.shouldForwardProp) {
|
|
7331
|
-
var w3 = c3.shouldForwardProp;
|
|
7332
|
-
if (s.shouldForwardProp) {
|
|
7333
|
-
var b3 = s.shouldForwardProp;
|
|
7334
|
-
S3 = function(e3, t3) {
|
|
7335
|
-
return w3(e3, t3) && b3(e3, t3);
|
|
7336
|
-
};
|
|
7337
|
-
} else S3 = w3;
|
|
7338
|
-
}
|
|
7339
|
-
var N3 = new Ve2(i2, v3, a3 ? c3.componentStyle : void 0);
|
|
7340
|
-
function E3(e3, s2) {
|
|
7341
|
-
return (function(e4, s3, i3) {
|
|
7342
|
-
var a4 = e4.attrs, c4 = e4.componentStyle, u4 = e4.defaultProps, l3 = e4.foldedComponentIds, p4 = e4.styledComponentId, h4 = e4.target, d4 = o.useContext(Ze2), f3 = Je2(), m4 = e4.shouldForwardProp || f3.shouldForwardProp;
|
|
7343
|
-
o.useDebugValue && o.useDebugValue(p4);
|
|
7344
|
-
var y4 = O2(s3, d4, u4) || I2, v5 = (function(e5, n2, o2) {
|
|
7345
|
-
for (var r3, s4 = __assign(__assign({}, n2), { className: void 0, theme: o2 }), i4 = 0; i4 < e5.length; i4 += 1) {
|
|
7346
|
-
var a5 = re2(r3 = e5[i4]) ? r3(s4) : r3;
|
|
7347
|
-
for (var c5 in a5) "className" === c5 ? s4.className = ie2(s4.className, a5[c5]) : "style" === c5 ? s4.style = __assign(__assign({}, s4.style), a5[c5]) : c5 in n2 && void 0 === n2[c5] || (s4[c5] = a5[c5]);
|
|
7348
|
-
}
|
|
7349
|
-
return "className" in n2 && "string" == typeof n2.className && (s4.className = ie2(s4.className, n2.className)), s4;
|
|
7350
|
-
})(a4, s3, y4), g4 = v5.as || h4, S4 = {};
|
|
7351
|
-
for (var w4 in v5) void 0 === v5[w4] || "$" === w4[0] || "as" === w4 || "theme" === w4 && v5.theme === y4 || ("forwardedAs" === w4 ? S4.as = v5.forwardedAs : m4 && !m4(w4, g4) || (S4[w4] = v5[w4], m4 || false || isPropValid(w4) || nt2.has(w4) || !D2.has(g4) || (nt2.add(w4), console.warn('styled-components: it looks like an unknown prop "'.concat(w4, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
7352
|
-
var b4 = (function(e5, t3) {
|
|
7353
|
-
var n2 = Je2(), r3 = e5.generateAndInjectStyles(t3, n2.styleSheet, n2.stylis);
|
|
7354
|
-
return o.useDebugValue && o.useDebugValue(r3.className), r3;
|
|
7355
|
-
})(c4, v5), N4 = b4.className;
|
|
7356
|
-
e4.warnTooManyClasses && e4.warnTooManyClasses(N4);
|
|
7357
|
-
var E4 = ie2(l3, p4);
|
|
7358
|
-
return N4 && (E4 += " " + N4), v5.className && (E4 += " " + v5.className), S4[z2(g4) && !D2.has(g4) ? "class" : "className"] = E4, i3 && (S4.ref = i3), r2(g4, S4);
|
|
7359
|
-
})(C3, e3, s2);
|
|
7360
|
-
}
|
|
7361
|
-
E3.displayName = y3;
|
|
7362
|
-
var C3 = o.forwardRef(E3);
|
|
7363
|
-
return C3.attrs = g3, C3.componentStyle = N3, C3.displayName = y3, C3.shouldForwardProp = S3, C3.foldedComponentIds = a3 ? ie2(c3.foldedComponentIds, c3.styledComponentId) : "", C3.styledComponentId = v3, C3.target = a3 ? c3.target : e2, Object.defineProperty(C3, "defaultProps", { get: function() {
|
|
7364
|
-
return this._foldedDefaultProps;
|
|
7365
|
-
}, set: function(e3) {
|
|
7366
|
-
this._foldedDefaultProps = a3 ? (function(e4) {
|
|
7367
|
-
for (var t3 = [], n2 = 1; n2 < arguments.length; n2++) t3[n2 - 1] = arguments[n2];
|
|
7368
|
-
for (var o2 = 0, r3 = t3; o2 < r3.length; o2++) ue2(e4, r3[o2], true);
|
|
7369
|
-
return e4;
|
|
7370
|
-
})({}, c3.defaultProps, e3) : e3;
|
|
7371
|
-
} }), A2(y3, v3), C3.warnTooManyClasses = /* @__PURE__ */ (function(e3, t3) {
|
|
7372
|
-
var n2 = {}, o2 = false;
|
|
7373
|
-
return function(r3) {
|
|
7374
|
-
if (!o2 && (n2[r3] = true, Object.keys(n2).length >= 200)) {
|
|
7375
|
-
var s2 = t3 ? ' with the id of "'.concat(t3, '"') : "";
|
|
7376
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(e3).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o2 = true, n2 = {};
|
|
7377
|
-
}
|
|
7378
|
-
};
|
|
7379
|
-
})(y3, v3), le2(C3, function() {
|
|
7380
|
-
return ".".concat(C3.styledComponentId);
|
|
7381
|
-
}), u3 && oe2(C3, e2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), C3;
|
|
7382
|
-
}
|
|
7383
|
-
function rt(e2, t3) {
|
|
7384
|
-
for (var n2 = [e2[0]], o2 = 0, r3 = t3.length; o2 < r3; o2 += 1) n2.push(t3[o2], e2[o2 + 1]);
|
|
7385
|
-
return n2;
|
|
7386
|
-
}
|
|
7387
|
-
var st = function(e2) {
|
|
7388
|
-
return Object.assign(e2, { isCss: true });
|
|
7389
|
-
};
|
|
7390
|
-
function it2(t3) {
|
|
7391
|
-
for (var n2 = [], o2 = 1; o2 < arguments.length; o2++) n2[o2 - 1] = arguments[o2];
|
|
7392
|
-
if (re2(t3) || ce2(t3)) return st(je2(rt(P2, __spreadArray([t3], n2, true))));
|
|
7393
|
-
var r3 = t3;
|
|
7394
|
-
return 0 === n2.length && 1 === r3.length && "string" == typeof r3[0] ? je2(r3) : st(je2(rt(r3, n2)));
|
|
7395
|
-
}
|
|
7396
|
-
function at2(n2, o2, r3) {
|
|
7397
|
-
if (void 0 === r3 && (r3 = I2), !o2) throw v2(1, o2);
|
|
7398
|
-
var s = function(t3) {
|
|
7399
|
-
for (var s2 = [], i2 = 1; i2 < arguments.length; i2++) s2[i2 - 1] = arguments[i2];
|
|
7400
|
-
return n2(o2, r3, it2.apply(void 0, __spreadArray([t3], s2, false)));
|
|
7401
|
-
};
|
|
7402
|
-
return s.attrs = function(e2) {
|
|
7403
|
-
return at2(n2, o2, __assign(__assign({}, r3), { attrs: Array.prototype.concat(r3.attrs, e2).filter(Boolean) }));
|
|
7404
|
-
}, s.withConfig = function(e2) {
|
|
7405
|
-
return at2(n2, o2, __assign(__assign({}, r3), e2));
|
|
7406
|
-
}, s;
|
|
7407
|
-
}
|
|
7408
|
-
var ct2 = function(e2) {
|
|
7409
|
-
return at2(ot2, e2);
|
|
7410
|
-
};
|
|
7411
|
-
var ut2 = ct2;
|
|
7412
|
-
D2.forEach(function(e2) {
|
|
7413
|
-
ut2[e2] = ct2(e2);
|
|
7414
|
-
});
|
|
7415
|
-
var lt2;
|
|
7416
|
-
var pt2 = (function() {
|
|
7417
|
-
function e2(e3, t3) {
|
|
7418
|
-
this.rules = e3, this.componentId = t3, this.isStatic = ke2(e3), Ae2.registerId(this.componentId + 1);
|
|
7419
|
-
}
|
|
7420
|
-
return e2.prototype.createStyles = function(e3, t3, n2, o2) {
|
|
7421
|
-
var r3 = o2(ae2(je2(this.rules, t3, n2, o2)), ""), s = this.componentId + e3;
|
|
7422
|
-
n2.insertRules(s, s, r3);
|
|
7423
|
-
}, e2.prototype.removeStyles = function(e3, t3) {
|
|
7424
|
-
t3.clearRules(this.componentId + e3);
|
|
7425
|
-
}, e2.prototype.renderStyles = function(e3, t3, n2, o2) {
|
|
7426
|
-
e3 > 2 && Ae2.registerId(this.componentId + e3);
|
|
7427
|
-
var r3 = this.componentId + e3;
|
|
7428
|
-
this.isStatic ? n2.hasNameForId(r3, r3) || this.createStyles(e3, t3, n2, o2) : (this.removeStyles(e3, n2), this.createStyles(e3, t3, n2, o2));
|
|
7429
|
-
}, e2;
|
|
7430
|
-
})();
|
|
7431
|
-
var dt2 = (function() {
|
|
7432
|
-
function e2(e3, t3) {
|
|
7433
|
-
var n2 = this;
|
|
7434
|
-
this[lt2] = true, this.inject = function(e4, t4) {
|
|
7435
|
-
void 0 === t4 && (t4 = We2);
|
|
7436
|
-
var o2 = n2.name + t4.hash;
|
|
7437
|
-
e4.hasNameForId(n2.id, o2) || e4.insertRules(n2.id, o2, t4(n2.rules, o2, "@keyframes"));
|
|
7438
|
-
}, this.name = e3, this.id = "sc-keyframes-".concat(e3), this.rules = t3, le2(this, function() {
|
|
7439
|
-
throw v2(12, String(n2.name));
|
|
7440
|
-
});
|
|
7441
|
-
}
|
|
7442
|
-
return e2.prototype.getName = function(e3) {
|
|
7443
|
-
return void 0 === e3 && (e3 = We2), this.name + e3.hash;
|
|
7444
|
-
}, e2;
|
|
7445
|
-
})();
|
|
7446
|
-
function ft2(t3) {
|
|
7447
|
-
for (var n2 = [], o2 = 1; o2 < arguments.length; o2++) n2[o2 - 1] = arguments[o2];
|
|
7448
|
-
"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
7449
|
-
var r3 = ae2(it2.apply(void 0, __spreadArray([t3], n2, false))), s = L2(r3);
|
|
7450
|
-
return new dt2(s, r3);
|
|
7451
|
-
}
|
|
7452
|
-
lt2 = De2;
|
|
7453
|
-
var yt2 = (function() {
|
|
7454
|
-
function e2() {
|
|
7455
|
-
var e3 = this;
|
|
7456
|
-
this._emitSheetCSS = function() {
|
|
7457
|
-
var t3 = e3.instance.toString();
|
|
7458
|
-
if (!t3) return "";
|
|
7459
|
-
var n2 = Se2(), o2 = ae2([n2 && 'nonce="'.concat(n2, '"'), "".concat(a2, '="true"'), "".concat(u2, '="').concat(l2, '"')].filter(Boolean), " ");
|
|
7460
|
-
return "<style ".concat(o2, ">").concat(t3, "</style>");
|
|
7461
|
-
}, this.getStyleTags = function() {
|
|
7462
|
-
if (e3.sealed) throw v2(2);
|
|
7463
|
-
return e3._emitSheetCSS();
|
|
7464
|
-
}, this.getStyleElement = function() {
|
|
7465
|
-
var n2;
|
|
7466
|
-
if (e3.sealed) throw v2(2);
|
|
7467
|
-
var r3 = e3.instance.toString();
|
|
7468
|
-
if (!r3) return [];
|
|
7469
|
-
var s = ((n2 = {})[a2] = "", n2[u2] = l2, n2.dangerouslySetInnerHTML = { __html: r3 }, n2), i2 = Se2();
|
|
7470
|
-
return i2 && (s.nonce = i2), [o.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
|
|
7471
|
-
}, this.seal = function() {
|
|
7472
|
-
e3.sealed = true;
|
|
7473
|
-
}, this.instance = new Ae2({ isServer: true }), this.sealed = false;
|
|
7474
|
-
}
|
|
7475
|
-
return e2.prototype.collectStyles = function(e3) {
|
|
7476
|
-
if (this.sealed) throw v2(2);
|
|
7477
|
-
return o.createElement(Xe2, { sheet: this.instance }, e3);
|
|
7478
|
-
}, e2.prototype.interleaveWithNodeStream = function(e3) {
|
|
7479
|
-
throw v2(3);
|
|
7480
|
-
}, e2;
|
|
7481
|
-
})();
|
|
7482
|
-
"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
7483
|
-
var gt2 = "__sc-".concat(a2, "__");
|
|
7484
|
-
"undefined" != typeof window && (window[gt2] || (window[gt2] = 0), 1 === window[gt2] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[gt2] += 1);
|
|
7485
|
-
|
|
7486
6710
|
// node_modules/uuid/dist/stringify.js
|
|
7487
6711
|
var byteToHex = [];
|
|
7488
6712
|
for (let i2 = 0; i2 < 256; ++i2) {
|
|
@@ -7984,7 +7208,7 @@ function BillingCreditBundleViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7984
7208
|
creditIcon: json["credit_icon"] == null ? void 0 : json["credit_icon"],
|
|
7985
7209
|
creditId: json["credit_id"],
|
|
7986
7210
|
creditName: json["credit_name"],
|
|
7987
|
-
currencyPrices: json["currency_prices"]
|
|
7211
|
+
currencyPrices: json["currency_prices"].map(
|
|
7988
7212
|
CreditBundleCurrencyPriceFromJSON
|
|
7989
7213
|
),
|
|
7990
7214
|
expiryType: BillingCreditExpiryTypeFromJSON(json["expiry_type"]),
|
|
@@ -8136,6 +7360,20 @@ function BillingCreditResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
8136
7360
|
};
|
|
8137
7361
|
}
|
|
8138
7362
|
|
|
7363
|
+
// src/api/checkoutexternal/models/CreditCurrencyPrice.ts
|
|
7364
|
+
function CreditCurrencyPriceFromJSON(json) {
|
|
7365
|
+
return CreditCurrencyPriceFromJSONTyped(json, false);
|
|
7366
|
+
}
|
|
7367
|
+
function CreditCurrencyPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
7368
|
+
if (json == null) {
|
|
7369
|
+
return json;
|
|
7370
|
+
}
|
|
7371
|
+
return {
|
|
7372
|
+
currency: json["currency"],
|
|
7373
|
+
price: json["price"] == null ? void 0 : BillingPriceViewFromJSON(json["price"])
|
|
7374
|
+
};
|
|
7375
|
+
}
|
|
7376
|
+
|
|
8139
7377
|
// src/api/checkoutexternal/models/BillingCreditView.ts
|
|
8140
7378
|
function BillingCreditViewFromJSON(json) {
|
|
8141
7379
|
return BillingCreditViewFromJSONTyped(json, false);
|
|
@@ -8149,6 +7387,9 @@ function BillingCreditViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
8149
7387
|
burnStrategy: BillingCreditBurnStrategyFromJSON(json["burn_strategy"]),
|
|
8150
7388
|
costEditable: json["cost_editable"],
|
|
8151
7389
|
createdAt: new Date(json["created_at"]),
|
|
7390
|
+
currencyPrices: json["currency_prices"].map(
|
|
7391
|
+
CreditCurrencyPriceFromJSON
|
|
7392
|
+
),
|
|
8152
7393
|
defaultExpiryUnit: BillingCreditExpiryUnitFromJSON(
|
|
8153
7394
|
json["default_expiry_unit"]
|
|
8154
7395
|
),
|
|
@@ -11290,9 +10531,9 @@ function BillingTiersModeFromJSONTyped4(json, ignoreDiscriminator) {
|
|
|
11290
10531
|
|
|
11291
10532
|
// src/api/componentspublic/models/BillingPriceView.ts
|
|
11292
10533
|
function BillingPriceViewFromJSON2(json) {
|
|
11293
|
-
return
|
|
10534
|
+
return BillingPriceViewFromJSONTyped9(json, false);
|
|
11294
10535
|
}
|
|
11295
|
-
function
|
|
10536
|
+
function BillingPriceViewFromJSONTyped9(json, ignoreDiscriminator) {
|
|
11296
10537
|
if (json == null) {
|
|
11297
10538
|
return json;
|
|
11298
10539
|
}
|
|
@@ -11325,6 +10566,20 @@ function BillingPriceViewFromJSONTyped8(json, ignoreDiscriminator) {
|
|
|
11325
10566
|
};
|
|
11326
10567
|
}
|
|
11327
10568
|
|
|
10569
|
+
// src/api/componentspublic/models/CreditCurrencyPrice.ts
|
|
10570
|
+
function CreditCurrencyPriceFromJSON2(json) {
|
|
10571
|
+
return CreditCurrencyPriceFromJSONTyped3(json, false);
|
|
10572
|
+
}
|
|
10573
|
+
function CreditCurrencyPriceFromJSONTyped3(json, ignoreDiscriminator) {
|
|
10574
|
+
if (json == null) {
|
|
10575
|
+
return json;
|
|
10576
|
+
}
|
|
10577
|
+
return {
|
|
10578
|
+
currency: json["currency"],
|
|
10579
|
+
price: json["price"] == null ? void 0 : BillingPriceViewFromJSON2(json["price"])
|
|
10580
|
+
};
|
|
10581
|
+
}
|
|
10582
|
+
|
|
11328
10583
|
// src/api/componentspublic/models/BillingCreditView.ts
|
|
11329
10584
|
function BillingCreditViewFromJSON2(json) {
|
|
11330
10585
|
return BillingCreditViewFromJSONTyped3(json, false);
|
|
@@ -11338,6 +10593,9 @@ function BillingCreditViewFromJSONTyped3(json, ignoreDiscriminator) {
|
|
|
11338
10593
|
burnStrategy: BillingCreditBurnStrategyFromJSON2(json["burn_strategy"]),
|
|
11339
10594
|
costEditable: json["cost_editable"],
|
|
11340
10595
|
createdAt: new Date(json["created_at"]),
|
|
10596
|
+
currencyPrices: json["currency_prices"].map(
|
|
10597
|
+
CreditCurrencyPriceFromJSON2
|
|
10598
|
+
),
|
|
11341
10599
|
defaultExpiryUnit: BillingCreditExpiryUnitFromJSON2(
|
|
11342
10600
|
json["default_expiry_unit"]
|
|
11343
10601
|
),
|
|
@@ -12209,6 +11467,17 @@ function getAddOnPrice(addOn, period = "month", currency) {
|
|
|
12209
11467
|
return { ...billingPrice, price: getPriceValue(billingPrice) };
|
|
12210
11468
|
}
|
|
12211
11469
|
}
|
|
11470
|
+
function planSupportsCurrency(plan, currency) {
|
|
11471
|
+
if (!currency) return true;
|
|
11472
|
+
const target = currency.toLowerCase();
|
|
11473
|
+
if (plan.currencyPrices?.length) {
|
|
11474
|
+
return plan.currencyPrices.some(
|
|
11475
|
+
(cp) => cp.currency.toLowerCase() === target
|
|
11476
|
+
);
|
|
11477
|
+
}
|
|
11478
|
+
const legacyCurrency = plan.monthlyPrice?.currency ?? plan.yearlyPrice?.currency ?? plan.oneTimePrice?.currency;
|
|
11479
|
+
return !legacyCurrency || legacyCurrency.toLowerCase() === target;
|
|
11480
|
+
}
|
|
12212
11481
|
function getEntitlementPrice(entitlement, period = "month", currency) {
|
|
12213
11482
|
const currencyPrices = "valueType" in entitlement ? entitlement.currencyPrices : "entitlementType" in entitlement ? entitlement.planEntitlement?.currencyPrices : void 0;
|
|
12214
11483
|
let source;
|
|
@@ -12366,6 +11635,13 @@ function buildAddOnRequestBody(options) {
|
|
|
12366
11635
|
return acc;
|
|
12367
11636
|
}, []);
|
|
12368
11637
|
}
|
|
11638
|
+
function isScheduledCheckoutConflictMessage(message) {
|
|
11639
|
+
if (typeof message !== "string") {
|
|
11640
|
+
return false;
|
|
11641
|
+
}
|
|
11642
|
+
const m2 = message.toLowerCase();
|
|
11643
|
+
return m2.includes("scheduled downgrade") || m2.includes("scheduled checkout");
|
|
11644
|
+
}
|
|
12369
11645
|
function buildCreditBundlesRequestBody(creditBundles) {
|
|
12370
11646
|
return creditBundles.reduce(
|
|
12371
11647
|
(acc, { id, count }) => {
|
|
@@ -12957,89 +12233,89 @@ function entitlementCountsReducer(acc, plan) {
|
|
|
12957
12233
|
|
|
12958
12234
|
// src/utils/color.ts
|
|
12959
12235
|
function hexToHSL(color) {
|
|
12960
|
-
let
|
|
12961
|
-
let
|
|
12962
|
-
let
|
|
12236
|
+
let r2 = 0;
|
|
12237
|
+
let g2 = 0;
|
|
12238
|
+
let b2 = 0;
|
|
12963
12239
|
if (color.length == 4) {
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12240
|
+
r2 = parseInt("0x" + color[1] + color[1]);
|
|
12241
|
+
g2 = parseInt("0x" + color[2] + color[2]);
|
|
12242
|
+
b2 = parseInt("0x" + color[3] + color[3]);
|
|
12967
12243
|
} else if (color.length == 7) {
|
|
12968
|
-
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
}
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
const cmin = Math.min(
|
|
12976
|
-
const cmax = Math.max(
|
|
12244
|
+
r2 = parseInt("0x" + color[1] + color[2]);
|
|
12245
|
+
g2 = parseInt("0x" + color[3] + color[4]);
|
|
12246
|
+
b2 = parseInt("0x" + color[5] + color[6]);
|
|
12247
|
+
}
|
|
12248
|
+
r2 /= 255;
|
|
12249
|
+
g2 /= 255;
|
|
12250
|
+
b2 /= 255;
|
|
12251
|
+
const cmin = Math.min(r2, g2, b2);
|
|
12252
|
+
const cmax = Math.max(r2, g2, b2);
|
|
12977
12253
|
const delta = cmax - cmin;
|
|
12978
|
-
let
|
|
12254
|
+
let h2;
|
|
12979
12255
|
if (delta == 0) {
|
|
12980
|
-
|
|
12981
|
-
} else if (cmax ==
|
|
12982
|
-
|
|
12983
|
-
} else if (cmax ==
|
|
12984
|
-
|
|
12256
|
+
h2 = 0;
|
|
12257
|
+
} else if (cmax == r2) {
|
|
12258
|
+
h2 = (g2 - b2) / delta % 6;
|
|
12259
|
+
} else if (cmax == g2) {
|
|
12260
|
+
h2 = (b2 - r2) / delta + 2;
|
|
12985
12261
|
} else {
|
|
12986
|
-
|
|
12262
|
+
h2 = (r2 - g2) / delta + 4;
|
|
12987
12263
|
}
|
|
12988
|
-
|
|
12989
|
-
if (
|
|
12990
|
-
|
|
12264
|
+
h2 = Math.round(h2 * 60);
|
|
12265
|
+
if (h2 < 0) {
|
|
12266
|
+
h2 += 360;
|
|
12991
12267
|
}
|
|
12992
|
-
let
|
|
12993
|
-
let s = delta == 0 ? 0 : delta / (1 - Math.abs(2 *
|
|
12268
|
+
let l2 = (cmax + cmin) / 2;
|
|
12269
|
+
let s = delta == 0 ? 0 : delta / (1 - Math.abs(2 * l2 - 1));
|
|
12994
12270
|
s = +(s * 100).toFixed(1);
|
|
12995
|
-
|
|
12996
|
-
return { h:
|
|
12271
|
+
l2 = +(l2 * 100).toFixed(1);
|
|
12272
|
+
return { h: h2, s, l: l2 };
|
|
12997
12273
|
}
|
|
12998
|
-
function hslToHex({ h:
|
|
12274
|
+
function hslToHex({ h: h2, s, l: l2 }) {
|
|
12999
12275
|
s /= 100;
|
|
13000
|
-
|
|
13001
|
-
const
|
|
13002
|
-
const
|
|
13003
|
-
const
|
|
13004
|
-
let
|
|
13005
|
-
let
|
|
13006
|
-
let
|
|
13007
|
-
if (0 <=
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
} else if (60 <=
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
} else if (120 <=
|
|
13016
|
-
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
} else if (180 <=
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
} else if (240 <=
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
} else if (300 <=
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
}
|
|
13032
|
-
let rs = Math.round((
|
|
13033
|
-
let gs = Math.round((
|
|
13034
|
-
let bs = Math.round((
|
|
12276
|
+
l2 /= 100;
|
|
12277
|
+
const c2 = (1 - Math.abs(2 * l2 - 1)) * s;
|
|
12278
|
+
const x2 = c2 * (1 - Math.abs(h2 / 60 % 2 - 1));
|
|
12279
|
+
const m2 = l2 - c2 / 2;
|
|
12280
|
+
let r2 = 0;
|
|
12281
|
+
let g2 = 0;
|
|
12282
|
+
let b2 = 0;
|
|
12283
|
+
if (0 <= h2 && h2 < 60) {
|
|
12284
|
+
r2 = c2;
|
|
12285
|
+
g2 = x2;
|
|
12286
|
+
b2 = 0;
|
|
12287
|
+
} else if (60 <= h2 && h2 < 120) {
|
|
12288
|
+
r2 = x2;
|
|
12289
|
+
g2 = c2;
|
|
12290
|
+
b2 = 0;
|
|
12291
|
+
} else if (120 <= h2 && h2 < 180) {
|
|
12292
|
+
r2 = 0;
|
|
12293
|
+
g2 = c2;
|
|
12294
|
+
b2 = x2;
|
|
12295
|
+
} else if (180 <= h2 && h2 < 240) {
|
|
12296
|
+
r2 = 0;
|
|
12297
|
+
g2 = x2;
|
|
12298
|
+
b2 = c2;
|
|
12299
|
+
} else if (240 <= h2 && h2 < 300) {
|
|
12300
|
+
r2 = x2;
|
|
12301
|
+
g2 = 0;
|
|
12302
|
+
b2 = c2;
|
|
12303
|
+
} else if (300 <= h2 && h2 < 360) {
|
|
12304
|
+
r2 = c2;
|
|
12305
|
+
g2 = 0;
|
|
12306
|
+
b2 = x2;
|
|
12307
|
+
}
|
|
12308
|
+
let rs = Math.round((r2 + m2) * 255).toString(16);
|
|
12309
|
+
let gs = Math.round((g2 + m2) * 255).toString(16);
|
|
12310
|
+
let bs = Math.round((b2 + m2) * 255).toString(16);
|
|
13035
12311
|
if (rs.length == 1) rs = "0" + rs;
|
|
13036
12312
|
if (gs.length == 1) gs = "0" + gs;
|
|
13037
12313
|
if (bs.length == 1) bs = "0" + bs;
|
|
13038
12314
|
return "#" + rs + gs + bs;
|
|
13039
12315
|
}
|
|
13040
12316
|
function adjustLightness(color, amount) {
|
|
13041
|
-
const { h:
|
|
13042
|
-
return hslToHex({ h:
|
|
12317
|
+
const { h: h2, s, l: l2 } = hexToHSL(color);
|
|
12318
|
+
return hslToHex({ h: h2, s, l: Math.max(Math.min(l2 + amount * 100, 100), 0) });
|
|
13043
12319
|
}
|
|
13044
12320
|
function lighten(color, amount) {
|
|
13045
12321
|
return adjustLightness(color, amount);
|
|
@@ -13048,8 +12324,8 @@ function darken(color, amount) {
|
|
|
13048
12324
|
return adjustLightness(color, -amount);
|
|
13049
12325
|
}
|
|
13050
12326
|
function hsla(color, amount) {
|
|
13051
|
-
const { h:
|
|
13052
|
-
return `hsla(${
|
|
12327
|
+
const { h: h2, s, l: l2 } = hexToHSL(color);
|
|
12328
|
+
return `hsla(${h2}, ${s}%, ${l2}%, ${amount})`;
|
|
13053
12329
|
}
|
|
13054
12330
|
function isLightColor(color) {
|
|
13055
12331
|
return hexToHSL(color).l > 50;
|
|
@@ -13121,7 +12397,7 @@ var ZERO_DECIMAL_CURRENCIES = /* @__PURE__ */ new Set([
|
|
|
13121
12397
|
"XPF"
|
|
13122
12398
|
]);
|
|
13123
12399
|
function camelToHyphen(str) {
|
|
13124
|
-
return str.replace(/([a-z][A-Z])/g, (
|
|
12400
|
+
return str.replace(/([a-z][A-Z])/g, (g2) => `${g2[0]}-${g2[1].toLowerCase()}`);
|
|
13125
12401
|
}
|
|
13126
12402
|
function formatNumber(num) {
|
|
13127
12403
|
return new Intl.NumberFormat("en-US").format(num);
|
|
@@ -13247,7 +12523,7 @@ function getCurrencySymbol(currency) {
|
|
|
13247
12523
|
// src/utils/style.ts
|
|
13248
12524
|
function attr(key, value) {
|
|
13249
12525
|
if (typeof value !== "undefined") {
|
|
13250
|
-
return
|
|
12526
|
+
return pt`
|
|
13251
12527
|
${key}: ${value};
|
|
13252
12528
|
`;
|
|
13253
12529
|
}
|
|
@@ -13461,12 +12737,12 @@ var reducer = (state, action) => {
|
|
|
13461
12737
|
// src/context/EmbedProvider.tsx
|
|
13462
12738
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13463
12739
|
var getCustomHeaders = (sessionId) => ({
|
|
13464
|
-
"X-Schematic-Components-Version": "2.10.
|
|
12740
|
+
"X-Schematic-Components-Version": "2.10.3",
|
|
13465
12741
|
"X-Schematic-Session-ID": sessionId
|
|
13466
12742
|
});
|
|
13467
12743
|
var normalizeCurrencyFilter = (filter2) => {
|
|
13468
12744
|
if (!filter2 || filter2.length === 0) return void 0;
|
|
13469
|
-
return Array.from(new Set(filter2.map((
|
|
12745
|
+
return Array.from(new Set(filter2.map((c2) => c2.toUpperCase())));
|
|
13470
12746
|
};
|
|
13471
12747
|
var EmbedProvider = ({
|
|
13472
12748
|
children,
|
|
@@ -13826,7 +13102,7 @@ var EmbedProvider = ({
|
|
|
13826
13102
|
fontSet.add(fontFamily);
|
|
13827
13103
|
});
|
|
13828
13104
|
if (fontSet.size > 0) {
|
|
13829
|
-
const weights = new Array(9).fill(0).map((
|
|
13105
|
+
const weights = new Array(9).fill(0).map((_2, i2) => (i2 + 1) * 100);
|
|
13830
13106
|
const src = `https://fonts.googleapis.com/css2?${[...fontSet].map(
|
|
13831
13107
|
(fontFamily) => `family=${fontFamily}:wght@${weights.join(";")}&display=swap`
|
|
13832
13108
|
).join("&")}`;
|
|
@@ -13894,7 +13170,7 @@ var EmbedProvider = ({
|
|
|
13894
13170
|
updateSettings,
|
|
13895
13171
|
debug
|
|
13896
13172
|
},
|
|
13897
|
-
children: /* @__PURE__ */ jsxs(
|
|
13173
|
+
children: /* @__PURE__ */ jsxs(st, { theme: state.settings.theme, children: [
|
|
13898
13174
|
/* @__PURE__ */ jsx(IconStyles, {}),
|
|
13899
13175
|
children
|
|
13900
13176
|
] })
|
|
@@ -13906,23 +13182,47 @@ var EmbedProvider = ({
|
|
|
13906
13182
|
var useEmbed = () => useContext5(EmbedContext);
|
|
13907
13183
|
|
|
13908
13184
|
// src/hooks/useAvailableCurrencies.ts
|
|
13909
|
-
var sortCurrencies = (currencies) => [...currencies].sort((a3, b3) => {
|
|
13910
|
-
if (a3 === DEFAULT_CURRENCY) return -1;
|
|
13911
|
-
if (b3 === DEFAULT_CURRENCY) return 1;
|
|
13912
|
-
return a3.localeCompare(b3);
|
|
13913
|
-
});
|
|
13914
13185
|
function useHydratedCurrencies() {
|
|
13915
13186
|
const { data } = useEmbed();
|
|
13916
13187
|
return useMemo3(() => {
|
|
13917
|
-
const
|
|
13918
|
-
|
|
13919
|
-
const
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
|
|
13188
|
+
const ordered = [];
|
|
13189
|
+
const seen = /* @__PURE__ */ new Set();
|
|
13190
|
+
const push = (currency) => {
|
|
13191
|
+
if (!currency) return;
|
|
13192
|
+
const code = currency.toUpperCase();
|
|
13193
|
+
if (seen.has(code)) return;
|
|
13194
|
+
seen.add(code);
|
|
13195
|
+
ordered.push(code);
|
|
13196
|
+
};
|
|
13197
|
+
const firstPlan = data?.activePlans?.[0];
|
|
13198
|
+
if (firstPlan) {
|
|
13199
|
+
const prices = firstPlan.currencyPrices ?? [];
|
|
13200
|
+
if (prices.length > 0) {
|
|
13201
|
+
for (const cp of prices) {
|
|
13202
|
+
push(cp.currency);
|
|
13203
|
+
}
|
|
13204
|
+
} else {
|
|
13205
|
+
push(firstPlan.monthlyPrice?.currency);
|
|
13206
|
+
push(firstPlan.yearlyPrice?.currency);
|
|
13207
|
+
push(firstPlan.oneTimePrice?.currency);
|
|
13923
13208
|
}
|
|
13924
13209
|
}
|
|
13925
|
-
|
|
13210
|
+
const leftover = /* @__PURE__ */ new Set();
|
|
13211
|
+
const rest = [
|
|
13212
|
+
...(data?.activePlans ?? []).slice(1),
|
|
13213
|
+
...data?.activeAddOns ?? []
|
|
13214
|
+
];
|
|
13215
|
+
for (const plan of rest) {
|
|
13216
|
+
for (const cp of plan.currencyPrices ?? []) {
|
|
13217
|
+
const code = cp.currency.toUpperCase();
|
|
13218
|
+
if (!seen.has(code)) leftover.add(code);
|
|
13219
|
+
}
|
|
13220
|
+
}
|
|
13221
|
+
[...leftover].sort().forEach((c2) => push(c2));
|
|
13222
|
+
if (ordered.length === 0) {
|
|
13223
|
+
ordered.push(DEFAULT_CURRENCY);
|
|
13224
|
+
}
|
|
13225
|
+
return ordered;
|
|
13926
13226
|
}, [data?.activePlans, data?.activeAddOns]);
|
|
13927
13227
|
}
|
|
13928
13228
|
function useAvailableCurrencies() {
|
|
@@ -13940,8 +13240,9 @@ function useAvailableCurrenciesWithInvalid() {
|
|
|
13940
13240
|
const matched = [];
|
|
13941
13241
|
const invalid = [];
|
|
13942
13242
|
for (const entry of currencyFilter) {
|
|
13943
|
-
|
|
13944
|
-
|
|
13243
|
+
const code = entry.toUpperCase();
|
|
13244
|
+
if (hydratedSet.has(code)) {
|
|
13245
|
+
matched.push(code);
|
|
13945
13246
|
} else {
|
|
13946
13247
|
invalid.push(entry);
|
|
13947
13248
|
}
|
|
@@ -13953,7 +13254,7 @@ function useAvailableCurrenciesWithInvalid() {
|
|
|
13953
13254
|
debug("invalid currencyFilter entries", invalid);
|
|
13954
13255
|
}
|
|
13955
13256
|
return {
|
|
13956
|
-
currencies:
|
|
13257
|
+
currencies: matched,
|
|
13957
13258
|
invalidFilterEntries: invalid
|
|
13958
13259
|
};
|
|
13959
13260
|
}, [currencyFilter, hydrated, debug]);
|
|
@@ -14209,7 +13510,7 @@ function useWrapChildren(ref) {
|
|
|
14209
13510
|
}
|
|
14210
13511
|
|
|
14211
13512
|
// src/components/ui/box/styles.ts
|
|
14212
|
-
var Box =
|
|
13513
|
+
var Box = yt("div")((props) => {
|
|
14213
13514
|
function reducer2(acc, [key, value]) {
|
|
14214
13515
|
if (key.startsWith("$") && !["$viewport"].includes(key)) {
|
|
14215
13516
|
acc.push(
|
|
@@ -14220,14 +13521,14 @@ var Box = ut2("div")((props) => {
|
|
|
14220
13521
|
return acc;
|
|
14221
13522
|
}
|
|
14222
13523
|
const styles = Object.entries(props).reduce(reducer2, [
|
|
14223
|
-
|
|
13524
|
+
pt`
|
|
14224
13525
|
&:focus-visible {
|
|
14225
13526
|
outline: 2px solid ${({ theme }) => theme.primary};
|
|
14226
13527
|
}
|
|
14227
13528
|
`
|
|
14228
13529
|
]);
|
|
14229
13530
|
for (const [key, value] of Object.entries(props.$viewport || {})) {
|
|
14230
|
-
styles.push(
|
|
13531
|
+
styles.push(pt`
|
|
14231
13532
|
${{
|
|
14232
13533
|
"xs": "@container (min-width: 375px)",
|
|
14233
13534
|
"sm": "@container (min-width: 640px)",
|
|
@@ -14242,11 +13543,11 @@ var Box = ut2("div")((props) => {
|
|
|
14242
13543
|
}
|
|
14243
13544
|
return styles;
|
|
14244
13545
|
});
|
|
14245
|
-
var TransitionBox =
|
|
13546
|
+
var TransitionBox = yt(Box)`
|
|
14246
13547
|
${({ $isExpanded = true }) => {
|
|
14247
|
-
return $isExpanded ?
|
|
13548
|
+
return $isExpanded ? pt`
|
|
14248
13549
|
height: auto;
|
|
14249
|
-
` :
|
|
13550
|
+
` : pt`
|
|
14250
13551
|
height: 0;
|
|
14251
13552
|
overflow: hidden;
|
|
14252
13553
|
`;
|
|
@@ -14263,7 +13564,7 @@ var TransitionBox = ut2(Box)`
|
|
|
14263
13564
|
`;
|
|
14264
13565
|
|
|
14265
13566
|
// src/components/ui/icon/styles.ts
|
|
14266
|
-
var Icon2 =
|
|
13567
|
+
var Icon2 = yt(Icon).attrs(({ name, title, onClick }) => ({
|
|
14267
13568
|
title: title || name,
|
|
14268
13569
|
...onClick && { tabIndex: 0 }
|
|
14269
13570
|
}))`
|
|
@@ -14273,7 +13574,7 @@ var Icon2 = ut2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14273
13574
|
flex-shrink: 0;
|
|
14274
13575
|
transition: 0.1s;
|
|
14275
13576
|
|
|
14276
|
-
${({ onClick }) => onClick &&
|
|
13577
|
+
${({ onClick }) => onClick && pt`
|
|
14277
13578
|
&:hover {
|
|
14278
13579
|
cursor: pointer;
|
|
14279
13580
|
}
|
|
@@ -14284,7 +13585,7 @@ var Icon2 = ut2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14284
13585
|
outline-offset: 2px;
|
|
14285
13586
|
}
|
|
14286
13587
|
|
|
14287
|
-
${({ $rounded }) => $rounded &&
|
|
13588
|
+
${({ $rounded }) => $rounded && pt`
|
|
14288
13589
|
border-radius: 9999px;
|
|
14289
13590
|
`}
|
|
14290
13591
|
|
|
@@ -14315,10 +13616,10 @@ var Icon2 = ut2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14315
13616
|
scale *= 3;
|
|
14316
13617
|
break;
|
|
14317
13618
|
}
|
|
14318
|
-
return
|
|
13619
|
+
return pt`
|
|
14319
13620
|
font-size: ${base * scale / TEXT_BASE_SIZE}rem;
|
|
14320
13621
|
|
|
14321
|
-
${$rounded &&
|
|
13622
|
+
${$rounded && pt`
|
|
14322
13623
|
width: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
|
|
14323
13624
|
height: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
|
|
14324
13625
|
`}
|
|
@@ -14326,10 +13627,10 @@ var Icon2 = ut2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14326
13627
|
}}
|
|
14327
13628
|
|
|
14328
13629
|
${({ $variant, $color, $background }) => {
|
|
14329
|
-
return $variant === "outline" ?
|
|
13630
|
+
return $variant === "outline" ? pt`
|
|
14330
13631
|
color: ${$color};
|
|
14331
13632
|
background-color: transparent;
|
|
14332
|
-
` :
|
|
13633
|
+
` : pt`
|
|
14333
13634
|
color: ${$color};
|
|
14334
13635
|
background-color: ${$background};
|
|
14335
13636
|
`;
|
|
@@ -14337,7 +13638,7 @@ var Icon2 = ut2(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
14337
13638
|
`;
|
|
14338
13639
|
|
|
14339
13640
|
// src/components/ui/loader/styles.ts
|
|
14340
|
-
var spin =
|
|
13641
|
+
var spin = Ot`
|
|
14341
13642
|
0% {
|
|
14342
13643
|
transform: rotate(0deg);
|
|
14343
13644
|
}
|
|
@@ -14350,11 +13651,11 @@ var loaderStyles = ({
|
|
|
14350
13651
|
$color,
|
|
14351
13652
|
$size = "md",
|
|
14352
13653
|
$isLoading = true
|
|
14353
|
-
}) =>
|
|
14354
|
-
const { l:
|
|
13654
|
+
}) => pt(({ theme }) => {
|
|
13655
|
+
const { l: l2 } = hexToHSL(theme.card.background);
|
|
14355
13656
|
let color = $color ?? theme.primary;
|
|
14356
13657
|
let colorFn;
|
|
14357
|
-
if (
|
|
13658
|
+
if (l2 > 50) {
|
|
14358
13659
|
color = color ?? "#000000";
|
|
14359
13660
|
colorFn = lighten;
|
|
14360
13661
|
} else {
|
|
@@ -14386,14 +13687,14 @@ var loaderStyles = ({
|
|
|
14386
13687
|
px = 64;
|
|
14387
13688
|
break;
|
|
14388
13689
|
}
|
|
14389
|
-
return
|
|
13690
|
+
return pt`
|
|
14390
13691
|
display: inline-block;
|
|
14391
13692
|
width: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
|
|
14392
13693
|
height: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
|
|
14393
13694
|
border-width: ${($isLoading ? px : 0) / 16 / TEXT_BASE_SIZE}rem;
|
|
14394
|
-
${$isLoading ?
|
|
13695
|
+
${$isLoading ? pt`
|
|
14395
13696
|
animation: 1.5s linear infinite ${spin};
|
|
14396
|
-
` :
|
|
13697
|
+
` : pt`
|
|
14397
13698
|
transform: scale(0);
|
|
14398
13699
|
`}
|
|
14399
13700
|
border-style: solid;
|
|
@@ -14404,12 +13705,12 @@ var loaderStyles = ({
|
|
|
14404
13705
|
animation: 1.5s linear infinite ${spin};
|
|
14405
13706
|
`;
|
|
14406
13707
|
});
|
|
14407
|
-
var Loader =
|
|
13708
|
+
var Loader = yt.div((props) => {
|
|
14408
13709
|
return loaderStyles(props);
|
|
14409
13710
|
});
|
|
14410
13711
|
|
|
14411
13712
|
// src/components/ui/button/styles.ts
|
|
14412
|
-
var Button =
|
|
13713
|
+
var Button = yt.button(
|
|
14413
13714
|
({
|
|
14414
13715
|
theme,
|
|
14415
13716
|
disabled = false,
|
|
@@ -14421,7 +13722,7 @@ var Button = ut2.button(
|
|
|
14421
13722
|
$alignment = "center",
|
|
14422
13723
|
$selfAlignment
|
|
14423
13724
|
}) => {
|
|
14424
|
-
return
|
|
13725
|
+
return pt`
|
|
14425
13726
|
appearance: none;
|
|
14426
13727
|
font-family: "Public Sans", sans-serif;
|
|
14427
13728
|
font-weight: 500;
|
|
@@ -14429,7 +13730,7 @@ var Button = ut2.button(
|
|
|
14429
13730
|
display: flex;
|
|
14430
13731
|
justify-content: ${$alignment};
|
|
14431
13732
|
align-items: center;
|
|
14432
|
-
${() => $selfAlignment &&
|
|
13733
|
+
${() => $selfAlignment && pt`
|
|
14433
13734
|
align-self: ${$selfAlignment};
|
|
14434
13735
|
`}
|
|
14435
13736
|
width: ${$fullWidth ? "100%" : "fit-content"};
|
|
@@ -14439,21 +13740,21 @@ var Button = ut2.button(
|
|
|
14439
13740
|
${function sizeStyles() {
|
|
14440
13741
|
switch ($size) {
|
|
14441
13742
|
case "sm":
|
|
14442
|
-
return
|
|
13743
|
+
return pt`
|
|
14443
13744
|
font-size: ${15 / TEXT_BASE_SIZE}rem;
|
|
14444
13745
|
height: ${40 / TEXT_BASE_SIZE}rem;
|
|
14445
13746
|
padding: ${7 / TEXT_BASE_SIZE}rem ${20 / TEXT_BASE_SIZE}rem;
|
|
14446
13747
|
border-radius: ${6 / TEXT_BASE_SIZE}rem;
|
|
14447
13748
|
`;
|
|
14448
13749
|
case "md":
|
|
14449
|
-
return
|
|
13750
|
+
return pt`
|
|
14450
13751
|
font-size: ${17 / TEXT_BASE_SIZE}rem;
|
|
14451
13752
|
height: ${52 / TEXT_BASE_SIZE}rem;
|
|
14452
13753
|
padding: ${8 / TEXT_BASE_SIZE}rem ${24 / TEXT_BASE_SIZE}rem;
|
|
14453
13754
|
border-radius: ${8 / TEXT_BASE_SIZE}rem;
|
|
14454
13755
|
`;
|
|
14455
13756
|
case "lg":
|
|
14456
|
-
return
|
|
13757
|
+
return pt`
|
|
14457
13758
|
font-size: ${19 / TEXT_BASE_SIZE}rem;
|
|
14458
13759
|
height: ${64 / TEXT_BASE_SIZE}rem;
|
|
14459
13760
|
padding: ${9 / TEXT_BASE_SIZE}rem ${28 / TEXT_BASE_SIZE}rem;
|
|
@@ -14463,12 +13764,12 @@ var Button = ut2.button(
|
|
|
14463
13764
|
}}
|
|
14464
13765
|
|
|
14465
13766
|
${function colorStyles() {
|
|
14466
|
-
const { l:
|
|
14467
|
-
let color =
|
|
13767
|
+
const { l: l2 } = hexToHSL(theme[$color]);
|
|
13768
|
+
let color = l2 > 50 ? "#000000" : "#FFFFFF";
|
|
14468
13769
|
if (disabled) {
|
|
14469
|
-
color =
|
|
13770
|
+
color = l2 > 50 ? lighten(color, 0.625) : darken(color, 0.375);
|
|
14470
13771
|
}
|
|
14471
|
-
return
|
|
13772
|
+
return pt`
|
|
14472
13773
|
color: ${color};
|
|
14473
13774
|
|
|
14474
13775
|
${Text}, ${Icon2} {
|
|
@@ -14478,14 +13779,14 @@ var Button = ut2.button(
|
|
|
14478
13779
|
}}
|
|
14479
13780
|
|
|
14480
13781
|
${function variantStyles() {
|
|
14481
|
-
const { l:
|
|
13782
|
+
const { l: l2 } = hexToHSL(theme.card.background);
|
|
14482
13783
|
let color = theme[$color];
|
|
14483
13784
|
if (disabled) {
|
|
14484
|
-
color = hslToHex({ h: 0, s: 0, l:
|
|
14485
|
-
color =
|
|
13785
|
+
color = hslToHex({ h: 0, s: 0, l: l2 });
|
|
13786
|
+
color = l2 > 50 ? darken(color, 0.075) : lighten(color, 0.15);
|
|
14486
13787
|
}
|
|
14487
13788
|
if ($variant === "outline") {
|
|
14488
|
-
return
|
|
13789
|
+
return pt`
|
|
14489
13790
|
color: ${color};
|
|
14490
13791
|
background-color: transparent;
|
|
14491
13792
|
border-color: ${color};
|
|
@@ -14496,10 +13797,10 @@ var Button = ut2.button(
|
|
|
14496
13797
|
`;
|
|
14497
13798
|
}
|
|
14498
13799
|
if ($variant === "ghost") {
|
|
14499
|
-
return
|
|
13800
|
+
return pt`
|
|
14500
13801
|
color: ${color};
|
|
14501
13802
|
background-color: transparent;
|
|
14502
|
-
border-color: ${
|
|
13803
|
+
border-color: ${l2 > 50 ? darken(theme.card.background, 0.2) : lighten(theme.card.background, 0.2)};
|
|
14503
13804
|
|
|
14504
13805
|
${Text}, ${Icon2} {
|
|
14505
13806
|
color: ${color};
|
|
@@ -14507,7 +13808,7 @@ var Button = ut2.button(
|
|
|
14507
13808
|
`;
|
|
14508
13809
|
}
|
|
14509
13810
|
if ($variant === "text") {
|
|
14510
|
-
return
|
|
13811
|
+
return pt`
|
|
14511
13812
|
color: ${color};
|
|
14512
13813
|
background-color: transparent;
|
|
14513
13814
|
border-color: transparent;
|
|
@@ -14517,7 +13818,7 @@ var Button = ut2.button(
|
|
|
14517
13818
|
}
|
|
14518
13819
|
`;
|
|
14519
13820
|
}
|
|
14520
|
-
return
|
|
13821
|
+
return pt`
|
|
14521
13822
|
background-color: ${color};
|
|
14522
13823
|
border-color: ${color};
|
|
14523
13824
|
`;
|
|
@@ -14535,7 +13836,7 @@ var Button = ut2.button(
|
|
|
14535
13836
|
&::before {
|
|
14536
13837
|
content: "";
|
|
14537
13838
|
${loaderStyles({ $color: theme[$color], $size, $isLoading })}
|
|
14538
|
-
${$isLoading &&
|
|
13839
|
+
${$isLoading && pt`
|
|
14539
13840
|
margin-right: 0.5rem;
|
|
14540
13841
|
`}
|
|
14541
13842
|
}
|
|
@@ -14547,19 +13848,19 @@ var Button = ut2.button(
|
|
|
14547
13848
|
|
|
14548
13849
|
&:not(:disabled):hover {
|
|
14549
13850
|
${function hoverStyles() {
|
|
14550
|
-
const { l:
|
|
14551
|
-
const color =
|
|
13851
|
+
const { l: l2 } = hexToHSL(theme[$color]);
|
|
13852
|
+
const color = l2 > 50 ? "#000000" : "#FFFFFF";
|
|
14552
13853
|
const specified = theme[$color];
|
|
14553
13854
|
const lightened = lighten(specified, 0.15);
|
|
14554
13855
|
const bgColor = specified === lightened ? darken(specified, 0.15) : lightened;
|
|
14555
13856
|
if ($variant === "filled") {
|
|
14556
|
-
return
|
|
13857
|
+
return pt`
|
|
14557
13858
|
background-color: ${bgColor};
|
|
14558
13859
|
border-color: ${bgColor};
|
|
14559
13860
|
`;
|
|
14560
13861
|
}
|
|
14561
13862
|
if ($variant === "outline") {
|
|
14562
|
-
return
|
|
13863
|
+
return pt`
|
|
14563
13864
|
color: ${color};
|
|
14564
13865
|
background-color: ${bgColor};
|
|
14565
13866
|
border-color: ${bgColor};
|
|
@@ -14570,15 +13871,15 @@ var Button = ut2.button(
|
|
|
14570
13871
|
`;
|
|
14571
13872
|
}
|
|
14572
13873
|
if ($variant === "ghost") {
|
|
14573
|
-
const { l:
|
|
14574
|
-
return
|
|
14575
|
-
border-color: ${
|
|
13874
|
+
const { l: l3 } = hexToHSL(theme.card.background);
|
|
13875
|
+
return pt`
|
|
13876
|
+
border-color: ${l3 > 50 ? darken(theme.card.background, 0.125) : lighten(theme.card.background, 0.125)};
|
|
14576
13877
|
box-shadow: 0 1px 2px
|
|
14577
|
-
${
|
|
13878
|
+
${l3 > 50 ? darken(theme.card.background, 0.075) : lighten(theme.card.background, 0.075)};
|
|
14578
13879
|
`;
|
|
14579
13880
|
}
|
|
14580
13881
|
if ($variant === "text") {
|
|
14581
|
-
return
|
|
13882
|
+
return pt`
|
|
14582
13883
|
text-decoration: underline;
|
|
14583
13884
|
`;
|
|
14584
13885
|
}
|
|
@@ -14598,14 +13899,14 @@ import {
|
|
|
14598
13899
|
} from "react";
|
|
14599
13900
|
|
|
14600
13901
|
// src/components/ui/dialog/styles.ts
|
|
14601
|
-
var DialogContent =
|
|
13902
|
+
var DialogContent = yt.div`
|
|
14602
13903
|
position: relative;
|
|
14603
13904
|
display: flex;
|
|
14604
13905
|
flex-direction: column;
|
|
14605
13906
|
`;
|
|
14606
|
-
var Dialog =
|
|
13907
|
+
var Dialog = yt.dialog(
|
|
14607
13908
|
({ theme, $isModal, $size, $top }) => {
|
|
14608
|
-
return
|
|
13909
|
+
return pt`
|
|
14609
13910
|
${ResetStyle}
|
|
14610
13911
|
${$isModal && ContainerStyle}
|
|
14611
13912
|
|
|
@@ -14647,7 +13948,7 @@ var Dialog = ut2.dialog(
|
|
|
14647
13948
|
flex-direction: row;
|
|
14648
13949
|
max-height: calc(100dvh - 5rem + 3px);
|
|
14649
13950
|
|
|
14650
|
-
${$size === "lg" &&
|
|
13951
|
+
${$size === "lg" && pt`
|
|
14651
13952
|
height: calc(100% - 5rem + 3px);
|
|
14652
13953
|
`}
|
|
14653
13954
|
}
|
|
@@ -14784,7 +14085,7 @@ var DialogHeader = ({
|
|
|
14784
14085
|
};
|
|
14785
14086
|
|
|
14786
14087
|
// src/components/ui/flex/styles.ts
|
|
14787
|
-
var Flex =
|
|
14088
|
+
var Flex = yt(Box)`
|
|
14788
14089
|
display: flex;
|
|
14789
14090
|
`;
|
|
14790
14091
|
|
|
@@ -14818,9 +14119,9 @@ var Icon3 = ({
|
|
|
14818
14119
|
};
|
|
14819
14120
|
|
|
14820
14121
|
// src/components/ui/input/styles.ts
|
|
14821
|
-
var Input =
|
|
14822
|
-
const isLightBackground =
|
|
14823
|
-
return
|
|
14122
|
+
var Input = yt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
14123
|
+
const isLightBackground = isLightColor(theme.card.background);
|
|
14124
|
+
return pt`
|
|
14824
14125
|
font-family: "Inter", sans-serif;
|
|
14825
14126
|
font-weight: 500;
|
|
14826
14127
|
width: 100%;
|
|
@@ -14840,14 +14141,14 @@ var Input = ut2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14840
14141
|
${() => {
|
|
14841
14142
|
switch ($size) {
|
|
14842
14143
|
case "sm": {
|
|
14843
|
-
return
|
|
14144
|
+
return pt`
|
|
14844
14145
|
font-size: 0.875rem;
|
|
14845
14146
|
line-height: 1.5rem;
|
|
14846
14147
|
height: 1.5rem;
|
|
14847
14148
|
`;
|
|
14848
14149
|
}
|
|
14849
14150
|
case "md": {
|
|
14850
|
-
return
|
|
14151
|
+
return pt`
|
|
14851
14152
|
font-size: 1rem;
|
|
14852
14153
|
line-height: 3rem;
|
|
14853
14154
|
height: 3rem;
|
|
@@ -14855,7 +14156,7 @@ var Input = ut2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14855
14156
|
`;
|
|
14856
14157
|
}
|
|
14857
14158
|
case "lg": {
|
|
14858
|
-
return
|
|
14159
|
+
return pt`
|
|
14859
14160
|
font-size: 1.25rem;
|
|
14860
14161
|
line-height: 4rem;
|
|
14861
14162
|
height: 4rem;
|
|
@@ -14863,7 +14164,7 @@ var Input = ut2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14863
14164
|
`;
|
|
14864
14165
|
}
|
|
14865
14166
|
case "full": {
|
|
14866
|
-
return
|
|
14167
|
+
return pt`
|
|
14867
14168
|
font-size: 1rem;
|
|
14868
14169
|
line-height: 1;
|
|
14869
14170
|
height: 100%;
|
|
@@ -14877,7 +14178,7 @@ var Input = ut2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14877
14178
|
const color = $variant !== "filled" && !isLightBackground ? theme.typography.text.color : "#000000";
|
|
14878
14179
|
const bgColor = $variant === "filled" ? "#F1F1F1" : "transparent";
|
|
14879
14180
|
const borderColor = $variant === "text" ? "transparent" : "#CBCBCB";
|
|
14880
|
-
return
|
|
14181
|
+
return pt`
|
|
14881
14182
|
color: ${color};
|
|
14882
14183
|
background-color: ${bgColor};
|
|
14883
14184
|
border-color: ${borderColor};
|
|
@@ -14903,8 +14204,8 @@ var Input = ut2.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
14903
14204
|
});
|
|
14904
14205
|
|
|
14905
14206
|
// src/components/ui/overlay/styles.ts
|
|
14906
|
-
var Overlay =
|
|
14907
|
-
return
|
|
14207
|
+
var Overlay = yt(Flex)(({ theme }) => {
|
|
14208
|
+
return pt`
|
|
14908
14209
|
position: absolute;
|
|
14909
14210
|
top: 0;
|
|
14910
14211
|
right: 0;
|
|
@@ -15022,7 +14323,7 @@ var LeadingLineHeightMap = {
|
|
|
15022
14323
|
relaxed: 1.625,
|
|
15023
14324
|
loose: 2
|
|
15024
14325
|
};
|
|
15025
|
-
var Text =
|
|
14326
|
+
var Text = yt.span.withConfig({
|
|
15026
14327
|
shouldForwardProp: (prop) => prop !== "display"
|
|
15027
14328
|
}).attrs(({ onClick }) => ({
|
|
15028
14329
|
...onClick && { tabIndex: 0 }
|
|
@@ -15045,7 +14346,7 @@ var Text = ut2.span.withConfig({
|
|
|
15045
14346
|
const fontWeight = $weight || fontStyle.fontWeight;
|
|
15046
14347
|
const lineHeight = $leading && LeadingLineHeightMap[$leading];
|
|
15047
14348
|
const color = $color || fontStyle.color;
|
|
15048
|
-
return
|
|
14349
|
+
return pt`
|
|
15049
14350
|
font-family: ${fontFamily}, sans-serif;
|
|
15050
14351
|
font-size: ${typeof fontSize === "number" ? `${fontSize / TEXT_BASE_SIZE}rem` : fontSize};
|
|
15051
14352
|
font-weight: ${fontWeight};
|
|
@@ -15053,19 +14354,19 @@ var Text = ut2.span.withConfig({
|
|
|
15053
14354
|
color: ${color};
|
|
15054
14355
|
text-wrap: pretty;
|
|
15055
14356
|
|
|
15056
|
-
${lineHeight &&
|
|
14357
|
+
${lineHeight && pt`
|
|
15057
14358
|
line-height: ${lineHeight};
|
|
15058
14359
|
`}
|
|
15059
14360
|
|
|
15060
|
-
${$align &&
|
|
14361
|
+
${$align && pt`
|
|
15061
14362
|
text-align: ${$align};
|
|
15062
14363
|
`};
|
|
15063
14364
|
|
|
15064
|
-
${$width &&
|
|
14365
|
+
${$width && pt`
|
|
15065
14366
|
width: ${$width};
|
|
15066
14367
|
`};
|
|
15067
14368
|
|
|
15068
|
-
${onClick &&
|
|
14369
|
+
${onClick && pt`
|
|
15069
14370
|
&:hover {
|
|
15070
14371
|
cursor: pointer;
|
|
15071
14372
|
text-decoration: underline;
|
|
@@ -15093,60 +14394,60 @@ import { createPortal } from "react-dom";
|
|
|
15093
14394
|
|
|
15094
14395
|
// src/components/ui/tooltip/styles.ts
|
|
15095
14396
|
var coords = (position2) => {
|
|
15096
|
-
let
|
|
15097
|
-
let
|
|
14397
|
+
let x2 = 0;
|
|
14398
|
+
let y2 = 0;
|
|
15098
14399
|
switch (position2) {
|
|
15099
14400
|
case "top":
|
|
15100
|
-
|
|
15101
|
-
|
|
14401
|
+
x2 = -50;
|
|
14402
|
+
y2 = -100;
|
|
15102
14403
|
break;
|
|
15103
14404
|
case "right":
|
|
15104
|
-
|
|
15105
|
-
|
|
14405
|
+
x2 = 0;
|
|
14406
|
+
y2 = -50;
|
|
15106
14407
|
break;
|
|
15107
14408
|
case "bottom":
|
|
15108
|
-
|
|
15109
|
-
|
|
14409
|
+
x2 = -50;
|
|
14410
|
+
y2 = 0;
|
|
15110
14411
|
break;
|
|
15111
14412
|
case "left":
|
|
15112
|
-
|
|
15113
|
-
|
|
14413
|
+
x2 = -100;
|
|
14414
|
+
y2 = -50;
|
|
15114
14415
|
break;
|
|
15115
14416
|
}
|
|
15116
|
-
return { x:
|
|
14417
|
+
return { x: x2, y: y2 };
|
|
15117
14418
|
};
|
|
15118
14419
|
var arrowCoords = (position2) => {
|
|
15119
|
-
let
|
|
15120
|
-
let
|
|
14420
|
+
let x2 = 0;
|
|
14421
|
+
let y2 = 0;
|
|
15121
14422
|
switch (position2) {
|
|
15122
14423
|
case "top":
|
|
15123
|
-
|
|
15124
|
-
|
|
14424
|
+
x2 = -50;
|
|
14425
|
+
y2 = -50;
|
|
15125
14426
|
break;
|
|
15126
14427
|
case "right":
|
|
15127
|
-
|
|
15128
|
-
|
|
14428
|
+
x2 = 50;
|
|
14429
|
+
y2 = -50;
|
|
15129
14430
|
break;
|
|
15130
14431
|
case "bottom":
|
|
15131
|
-
|
|
15132
|
-
|
|
14432
|
+
x2 = -50;
|
|
14433
|
+
y2 = 50;
|
|
15133
14434
|
break;
|
|
15134
14435
|
case "left":
|
|
15135
|
-
|
|
15136
|
-
|
|
14436
|
+
x2 = -50;
|
|
14437
|
+
y2 = -50;
|
|
15137
14438
|
break;
|
|
15138
14439
|
}
|
|
15139
|
-
return { x:
|
|
14440
|
+
return { x: x2, y: y2 };
|
|
15140
14441
|
};
|
|
15141
14442
|
var origin = (position2) => {
|
|
15142
|
-
const
|
|
14443
|
+
const o = {
|
|
15143
14444
|
x: position2 === "top" ? "bottom" : position2 === "bottom" ? "top" : "center",
|
|
15144
14445
|
y: position2 === "left" ? "right" : position2 === "right" ? "left" : "center"
|
|
15145
14446
|
};
|
|
15146
|
-
return
|
|
14447
|
+
return o;
|
|
15147
14448
|
};
|
|
15148
14449
|
var grow = (translate) => {
|
|
15149
|
-
return
|
|
14450
|
+
return Ot`
|
|
15150
14451
|
0% {
|
|
15151
14452
|
opacity: 0;
|
|
15152
14453
|
transform: translate(${translate.x}%, ${translate.y}%) scale(0);
|
|
@@ -15158,19 +14459,19 @@ var grow = (translate) => {
|
|
|
15158
14459
|
}
|
|
15159
14460
|
`;
|
|
15160
14461
|
};
|
|
15161
|
-
var Content =
|
|
14462
|
+
var Content = yt.div.withConfig({
|
|
15162
14463
|
shouldForwardProp: (prop) => !["x", "y", "position", "zIndex"].includes(prop)
|
|
15163
|
-
})(({ x:
|
|
14464
|
+
})(({ x: x2, y: y2, position: position2, theme }) => {
|
|
15164
14465
|
const translate = coords(position2);
|
|
15165
14466
|
const arrowTranslate = arrowCoords(position2);
|
|
15166
14467
|
const transformOrigin = origin(position2);
|
|
15167
|
-
return
|
|
14468
|
+
return pt`
|
|
15168
14469
|
position: absolute;
|
|
15169
14470
|
top: calc(
|
|
15170
|
-
${
|
|
14471
|
+
${y2}px - ${position2 === "top" ? 0.5 : position2 === "bottom" ? -0.5 : 0}rem
|
|
15171
14472
|
);
|
|
15172
14473
|
left: calc(
|
|
15173
|
-
${
|
|
14474
|
+
${x2}px - ${position2 === "left" ? 0.5 : position2 === "right" ? -0.5 : 0}rem
|
|
15174
14475
|
);
|
|
15175
14476
|
transform: translate(${translate.x}%, ${translate.y}%);
|
|
15176
14477
|
z-index: 9999999;
|
|
@@ -15204,16 +14505,16 @@ var Content = ut2.div.withConfig({
|
|
|
15204
14505
|
&::after {
|
|
15205
14506
|
position: absolute;
|
|
15206
14507
|
z-index: 0;
|
|
15207
|
-
${position2 === "top" ?
|
|
14508
|
+
${position2 === "top" ? pt`
|
|
15208
14509
|
top: 100%;
|
|
15209
14510
|
left: 50%;
|
|
15210
|
-
` : position2 === "right" ?
|
|
14511
|
+
` : position2 === "right" ? pt`
|
|
15211
14512
|
top: 50%;
|
|
15212
14513
|
right: 100%;
|
|
15213
|
-
` : position2 === "bottom" ?
|
|
14514
|
+
` : position2 === "bottom" ? pt`
|
|
15214
14515
|
bottom: 100%;
|
|
15215
14516
|
left: 50%;
|
|
15216
|
-
` :
|
|
14517
|
+
` : pt`
|
|
15217
14518
|
top: 50%;
|
|
15218
14519
|
left: 100%;
|
|
15219
14520
|
`};
|
|
@@ -15232,22 +14533,22 @@ var Content = ut2.div.withConfig({
|
|
|
15232
14533
|
import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
15233
14534
|
var getCoords = ({ element, portal, position: position2 }) => {
|
|
15234
14535
|
const { top: offsetTop, left: offsetLeft } = (portal || document.body).getBoundingClientRect();
|
|
15235
|
-
let
|
|
15236
|
-
let
|
|
14536
|
+
let x2 = 0;
|
|
14537
|
+
let y2 = 0;
|
|
15237
14538
|
if (element) {
|
|
15238
14539
|
const rect = element.getBoundingClientRect();
|
|
15239
|
-
|
|
14540
|
+
x2 = position2 === "left" ? rect.left : rect.right;
|
|
15240
14541
|
if (position2 === "top" || position2 === "bottom") {
|
|
15241
|
-
|
|
14542
|
+
x2 -= rect.width / 2;
|
|
15242
14543
|
}
|
|
15243
|
-
|
|
14544
|
+
y2 = position2 === "top" ? rect.top : rect.bottom;
|
|
15244
14545
|
if (position2 === "left" || position2 === "right") {
|
|
15245
|
-
|
|
14546
|
+
y2 -= rect.height / 2;
|
|
15246
14547
|
}
|
|
15247
14548
|
}
|
|
15248
14549
|
return {
|
|
15249
|
-
x: Math.round(
|
|
15250
|
-
y: Math.round(
|
|
14550
|
+
x: Math.round(x2 - offsetLeft),
|
|
14551
|
+
y: Math.round(y2 - offsetTop)
|
|
15251
14552
|
};
|
|
15252
14553
|
};
|
|
15253
14554
|
var Tooltip = ({
|
|
@@ -15297,15 +14598,15 @@ var Tooltip = ({
|
|
|
15297
14598
|
};
|
|
15298
14599
|
|
|
15299
14600
|
// src/components/layout/card/styles.ts
|
|
15300
|
-
var Element =
|
|
15301
|
-
var FussyChild =
|
|
15302
|
-
var Notice =
|
|
14601
|
+
var Element = yt(Box)``;
|
|
14602
|
+
var FussyChild = yt(Element)``;
|
|
14603
|
+
var Notice = yt(Box)``;
|
|
15303
14604
|
var cardBoxShadow = "0px 1px 20px 0px #1018280F, 0px 1px 3px 0px #1018281A";
|
|
15304
|
-
var StyledCard =
|
|
15305
|
-
const { l:
|
|
15306
|
-
const borderColor =
|
|
14605
|
+
var StyledCard = yt.div(({ theme }) => {
|
|
14606
|
+
const { l: l2 } = hexToHSL(theme.card.background);
|
|
14607
|
+
const borderColor = l2 > 50 ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)";
|
|
15307
14608
|
const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
|
|
15308
|
-
return
|
|
14609
|
+
return pt`
|
|
15309
14610
|
position: relative;
|
|
15310
14611
|
|
|
15311
14612
|
${theme.sectionLayout === "merged" ? `&:not(:has(${FussyChild}))` : `${Element}:not(:is(${FussyChild}))`} {
|
|
@@ -15320,9 +14621,9 @@ var StyledCard = ut2.div(({ theme }) => {
|
|
|
15320
14621
|
${theme.card.padding / TEXT_BASE_SIZE}rem;
|
|
15321
14622
|
|
|
15322
14623
|
&:not(:last-child) {
|
|
15323
|
-
${theme.sectionLayout === "merged" ?
|
|
14624
|
+
${theme.sectionLayout === "merged" ? pt`
|
|
15324
14625
|
border-bottom: 1px solid ${borderColor};
|
|
15325
|
-
` :
|
|
14626
|
+
` : pt`
|
|
15326
14627
|
margin-bottom: 1rem;
|
|
15327
14628
|
`}
|
|
15328
14629
|
}
|
|
@@ -15368,7 +14669,7 @@ Card.displayName = "Card";
|
|
|
15368
14669
|
import { Children as Children2, forwardRef as forwardRef5 } from "react";
|
|
15369
14670
|
|
|
15370
14671
|
// src/components/layout/column/styles.ts
|
|
15371
|
-
var StyledColumn =
|
|
14672
|
+
var StyledColumn = yt.div`
|
|
15372
14673
|
height: min-content;
|
|
15373
14674
|
`;
|
|
15374
14675
|
|
|
@@ -15385,7 +14686,7 @@ Column.displayName = "Column";
|
|
|
15385
14686
|
import { forwardRef as forwardRef6 } from "react";
|
|
15386
14687
|
|
|
15387
14688
|
// src/components/layout/root/styles.ts
|
|
15388
|
-
var ResetStyle =
|
|
14689
|
+
var ResetStyle = pt`
|
|
15389
14690
|
box-sizing: border-box;
|
|
15390
14691
|
font-size: 1rem;
|
|
15391
14692
|
line-height: 1.375;
|
|
@@ -15410,11 +14711,11 @@ var ResetStyle = it2`
|
|
|
15410
14711
|
vertical-align: top;
|
|
15411
14712
|
}
|
|
15412
14713
|
`;
|
|
15413
|
-
var ContainerStyle =
|
|
14714
|
+
var ContainerStyle = pt`
|
|
15414
14715
|
container-type: inline-size;
|
|
15415
14716
|
interpolate-size: allow-keywords;
|
|
15416
14717
|
`;
|
|
15417
|
-
var Container =
|
|
14718
|
+
var Container = yt.div`
|
|
15418
14719
|
${ResetStyle}
|
|
15419
14720
|
${ContainerStyle}
|
|
15420
14721
|
`;
|
|
@@ -16884,17 +16185,20 @@ var CheckoutDialog = ({ top }) => {
|
|
|
16884
16185
|
const [isLoading, setIsLoading] = useState8(false);
|
|
16885
16186
|
const [error, setError] = useState8();
|
|
16886
16187
|
const [isModal, setIsModal] = useState8(true);
|
|
16887
|
-
const { featureUsage, showPeriodToggle, trialPaymentMethodRequired } =
|
|
16888
|
-
|
|
16889
|
-
|
|
16890
|
-
|
|
16891
|
-
|
|
16892
|
-
|
|
16893
|
-
|
|
16894
|
-
|
|
16895
|
-
|
|
16896
|
-
|
|
16897
|
-
|
|
16188
|
+
const { featureUsage, showPeriodToggle, trialPaymentMethodRequired } = (
|
|
16189
|
+
// eslint-disable-next-line react-hooks/preserve-manual-memoization
|
|
16190
|
+
useMemo10(() => {
|
|
16191
|
+
return {
|
|
16192
|
+
featureUsage: data?.featureUsage ? data.featureUsage.features : [],
|
|
16193
|
+
showPeriodToggle: data?.displaySettings?.showPeriodToggle ?? true,
|
|
16194
|
+
trialPaymentMethodRequired: data?.trialPaymentMethodRequired === true
|
|
16195
|
+
};
|
|
16196
|
+
}, [
|
|
16197
|
+
data?.featureUsage,
|
|
16198
|
+
data?.displaySettings?.showPeriodToggle,
|
|
16199
|
+
data?.trialPaymentMethodRequired
|
|
16200
|
+
])
|
|
16201
|
+
);
|
|
16898
16202
|
const getValidatedPeriod = () => {
|
|
16899
16203
|
const requestedPeriod = checkoutState?.period || data?.company?.plan?.planPeriod || "month";
|
|
16900
16204
|
if (checkoutState?.planId) {
|
|
@@ -17229,11 +16533,11 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17229
16533
|
}
|
|
17230
16534
|
} catch (err2) {
|
|
17231
16535
|
if (err2 instanceof ResponseError) {
|
|
17232
|
-
|
|
17233
|
-
if (err2.response.status === 401 && data2.error === "Access Token Invalid") {
|
|
16536
|
+
if (err2.response.status === 401) {
|
|
17234
16537
|
setError(t3("Session expired. Please refresh and try again."));
|
|
17235
16538
|
return;
|
|
17236
16539
|
}
|
|
16540
|
+
const data2 = await err2.response.json();
|
|
17237
16541
|
if (err2.response.status === 400) {
|
|
17238
16542
|
switch (data2.error) {
|
|
17239
16543
|
case "Invalid promo code":
|
|
@@ -17250,12 +16554,9 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17250
16554
|
return;
|
|
17251
16555
|
}
|
|
17252
16556
|
}
|
|
17253
|
-
if (err2.response.status === 409) {
|
|
17254
|
-
|
|
17255
|
-
|
|
17256
|
-
setError(t3("Downgrade pending."));
|
|
17257
|
-
return;
|
|
17258
|
-
}
|
|
16557
|
+
if (err2.response.status === 409 && isScheduledCheckoutConflictMessage(data2?.error)) {
|
|
16558
|
+
setError(t3("Downgrade pending."));
|
|
16559
|
+
return;
|
|
17259
16560
|
}
|
|
17260
16561
|
setError(
|
|
17261
16562
|
t3("Error retrieving plan details. Please try again in a moment.")
|
|
@@ -17483,6 +16784,9 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17483
16784
|
useEffect5(() => {
|
|
17484
16785
|
setAddOns((prevAddOns) => {
|
|
17485
16786
|
return availableAddOns.filter((availAddOn) => {
|
|
16787
|
+
if (hasCurrency && !planSupportsCurrency(availAddOn, selectedCurrency)) {
|
|
16788
|
+
return false;
|
|
16789
|
+
}
|
|
17486
16790
|
if (!selectedPlan) {
|
|
17487
16791
|
return true;
|
|
17488
16792
|
}
|
|
@@ -17501,7 +16805,13 @@ var CheckoutDialog = ({ top }) => {
|
|
|
17501
16805
|
};
|
|
17502
16806
|
});
|
|
17503
16807
|
});
|
|
17504
|
-
}, [
|
|
16808
|
+
}, [
|
|
16809
|
+
data?.addOnCompatibilities,
|
|
16810
|
+
availableAddOns,
|
|
16811
|
+
selectedPlan,
|
|
16812
|
+
hasCurrency,
|
|
16813
|
+
selectedCurrency
|
|
16814
|
+
]);
|
|
17505
16815
|
useLayoutEffect4(() => {
|
|
17506
16816
|
const element = dialogRef.current;
|
|
17507
16817
|
if (layout !== "checkout" || !element) {
|
|
@@ -18053,7 +17363,7 @@ import {
|
|
|
18053
17363
|
import { useEffect as useEffect6, useRef as useRef8, useState as useState10 } from "react";
|
|
18054
17364
|
|
|
18055
17365
|
// src/components/shared/payment-form/styles.ts
|
|
18056
|
-
var Label =
|
|
17366
|
+
var Label = yt.label`
|
|
18057
17367
|
display: flex;
|
|
18058
17368
|
margin-bottom: 0.75rem;
|
|
18059
17369
|
font-family: "Public Sans", system-ui, sans-serif;
|
|
@@ -18065,7 +17375,7 @@ var Label = ut2.label`
|
|
|
18065
17375
|
color: ${({ theme }) => isLightColor(theme.card.background) ? "#000000" : "#cdd6f4"};
|
|
18066
17376
|
touch-action: manipulation;
|
|
18067
17377
|
`;
|
|
18068
|
-
var Input2 =
|
|
17378
|
+
var Input2 = yt.input`
|
|
18069
17379
|
padding: 0.75rem;
|
|
18070
17380
|
background-color: white;
|
|
18071
17381
|
border-radius: 0.5rem;
|
|
@@ -19313,9 +18623,29 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
19313
18623
|
setIsLoading(false);
|
|
19314
18624
|
setLayout("portal");
|
|
19315
18625
|
}
|
|
19316
|
-
} catch {
|
|
18626
|
+
} catch (err2) {
|
|
19317
18627
|
setIsLoading(false);
|
|
19318
18628
|
setLayout("checkout");
|
|
18629
|
+
if (err2 instanceof ResponseError) {
|
|
18630
|
+
if (err2.response.status === 401) {
|
|
18631
|
+
setError(t3("Session expired. Please refresh and try again."));
|
|
18632
|
+
return;
|
|
18633
|
+
}
|
|
18634
|
+
let data2;
|
|
18635
|
+
try {
|
|
18636
|
+
data2 = await err2.response.json();
|
|
18637
|
+
} catch {
|
|
18638
|
+
data2 = void 0;
|
|
18639
|
+
}
|
|
18640
|
+
if (err2.response.status === 409 && isScheduledCheckoutConflictMessage(data2?.error)) {
|
|
18641
|
+
setError(
|
|
18642
|
+
t3(
|
|
18643
|
+
"Downgrade pending. Cancel the scheduled downgrade before making another change."
|
|
18644
|
+
)
|
|
18645
|
+
);
|
|
18646
|
+
return;
|
|
18647
|
+
}
|
|
18648
|
+
}
|
|
19319
18649
|
setError(
|
|
19320
18650
|
t3("Error processing payment. Please try a different payment method.")
|
|
19321
18651
|
);
|
|
@@ -20374,7 +19704,7 @@ var RenderLayout = ({ children }) => {
|
|
|
20374
19704
|
};
|
|
20375
19705
|
|
|
20376
19706
|
// src/components/layout/viewport/styles.ts
|
|
20377
|
-
var StyledViewport =
|
|
19707
|
+
var StyledViewport = yt.div.withConfig({
|
|
20378
19708
|
shouldForwardProp: (prop) => !["$numberOfColumns", "numberOfColumns"].includes(prop)
|
|
20379
19709
|
})`
|
|
20380
19710
|
display: grid;
|
|
@@ -20387,7 +19717,7 @@ var StyledViewport = ut2.div.withConfig({
|
|
|
20387
19717
|
}
|
|
20388
19718
|
|
|
20389
19719
|
@container (min-width: 768px) {
|
|
20390
|
-
grid-template-columns: ${({ theme }) =>
|
|
19720
|
+
grid-template-columns: ${({ theme }) => pt`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
|
|
20391
19721
|
}
|
|
20392
19722
|
`;
|
|
20393
19723
|
|
|
@@ -20968,9 +20298,9 @@ function formatInvoices(invoices, options) {
|
|
|
20968
20298
|
if (hideUpcoming && status !== InvoiceStatus.Paid && !(dueDate && +dueDate <= +now))
|
|
20969
20299
|
return false;
|
|
20970
20300
|
return true;
|
|
20971
|
-
}).sort((
|
|
20972
|
-
const dateA =
|
|
20973
|
-
const dateB =
|
|
20301
|
+
}).sort((a2, b2) => {
|
|
20302
|
+
const dateA = a2.dueDate ?? a2.createdAt;
|
|
20303
|
+
const dateB = b2.dueDate ?? b2.createdAt;
|
|
20974
20304
|
return +dateB - +dateA;
|
|
20975
20305
|
}).map(({ amountDue, dueDate, createdAt, url, currency }) => {
|
|
20976
20306
|
const formatted = formatCurrency(Math.abs(amountDue), currency);
|
|
@@ -21242,14 +20572,14 @@ var PriceDetails = ({
|
|
|
21242
20572
|
};
|
|
21243
20573
|
|
|
21244
20574
|
// src/components/elements/metered-features/styles.ts
|
|
21245
|
-
var Container2 =
|
|
20575
|
+
var Container2 = yt.div`
|
|
21246
20576
|
display: flex;
|
|
21247
20577
|
flex-direction: column;
|
|
21248
20578
|
|
|
21249
20579
|
&:last-child {
|
|
21250
20580
|
${({ theme }) => {
|
|
21251
20581
|
const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
|
|
21252
|
-
return theme.sectionLayout === "merged" &&
|
|
20582
|
+
return theme.sectionLayout === "merged" && pt`
|
|
21253
20583
|
overflow: hidden;
|
|
21254
20584
|
border-bottom-left-radius: ${borderRadius};
|
|
21255
20585
|
border-bottom-right-radius: ${borderRadius};
|
|
@@ -21974,7 +21304,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
|
|
|
21974
21304
|
}
|
|
21975
21305
|
stripe._registerWrapper({
|
|
21976
21306
|
name: "stripe-js",
|
|
21977
|
-
version: "9.
|
|
21307
|
+
version: "9.4.0",
|
|
21978
21308
|
startTime
|
|
21979
21309
|
});
|
|
21980
21310
|
};
|
|
@@ -22052,7 +21382,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
|
|
|
22052
21382
|
var version = runtimeVersionToUrlVersion(maybeStripe.version);
|
|
22053
21383
|
var expectedVersion = RELEASE_TRAIN;
|
|
22054
21384
|
if (isTestKey && version !== expectedVersion) {
|
|
22055
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.
|
|
21385
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.4.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
22056
21386
|
}
|
|
22057
21387
|
var stripe = maybeStripe.apply(void 0, args);
|
|
22058
21388
|
registerWrapper(stripe, startTime);
|
|
@@ -22952,7 +22282,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
|
|
|
22952
22282
|
}
|
|
22953
22283
|
),
|
|
22954
22284
|
/* @__PURE__ */ jsx53(Flex, { $flexDirection: "column", $gap: "1rem", children: creditGroups.bundles.map((group, groupIndex) => {
|
|
22955
|
-
const bundle = group?.bundleId ? creditBundles.find((
|
|
22285
|
+
const bundle = group?.bundleId ? creditBundles.find((b2) => b2.id === group.bundleId) : void 0;
|
|
22956
22286
|
return /* @__PURE__ */ jsxs39(
|
|
22957
22287
|
Flex,
|
|
22958
22288
|
{
|
|
@@ -23066,6 +22396,7 @@ import {
|
|
|
23066
22396
|
forwardRef as forwardRef15,
|
|
23067
22397
|
useCallback as useCallback14,
|
|
23068
22398
|
useEffect as useEffect9,
|
|
22399
|
+
useMemo as useMemo26,
|
|
23069
22400
|
useState as useState19
|
|
23070
22401
|
} from "react";
|
|
23071
22402
|
|
|
@@ -23966,9 +23297,25 @@ var PricingTable = forwardRef15(({ className, ...rest }, ref) => {
|
|
|
23966
23297
|
const showCurrencySelector = currencies.length > 1;
|
|
23967
23298
|
const hasCurrency = currencies.length > 1 || hasCurrencyFilter;
|
|
23968
23299
|
const hasNoUsableCurrency = currencies.length === 0;
|
|
23969
|
-
const {
|
|
23300
|
+
const {
|
|
23301
|
+
plans: allPlans,
|
|
23302
|
+
addOns: allAddOns,
|
|
23303
|
+
periods
|
|
23304
|
+
} = useAvailablePlans(selectedPeriod, {
|
|
23970
23305
|
useSelectedPeriod: showPeriodToggle
|
|
23971
23306
|
});
|
|
23307
|
+
const plans = useMemo26(
|
|
23308
|
+
() => hasCurrency ? allPlans.filter(
|
|
23309
|
+
(plan) => planSupportsCurrency(plan, selectedCurrency)
|
|
23310
|
+
) : allPlans,
|
|
23311
|
+
[allPlans, hasCurrency, selectedCurrency]
|
|
23312
|
+
);
|
|
23313
|
+
const addOns = useMemo26(
|
|
23314
|
+
() => hasCurrency ? allAddOns.filter(
|
|
23315
|
+
(addOn) => planSupportsCurrency(addOn, selectedCurrency)
|
|
23316
|
+
) : allAddOns,
|
|
23317
|
+
[allAddOns, hasCurrency, selectedCurrency]
|
|
23318
|
+
);
|
|
23972
23319
|
const [entitlementCounts, setEntitlementCounts] = useState19(
|
|
23973
23320
|
() => plans.reduce(entitlementCountsReducer, {})
|
|
23974
23321
|
);
|
|
@@ -24199,7 +23546,7 @@ var TextElement = forwardRef16(({ children, className, ...rest }, ref) => {
|
|
|
24199
23546
|
TextElement.displayName = "Text";
|
|
24200
23547
|
|
|
24201
23548
|
// src/components/elements/unsubscribe-button/UnsubscribeButton.tsx
|
|
24202
|
-
import { forwardRef as forwardRef17, useMemo as
|
|
23549
|
+
import { forwardRef as forwardRef17, useMemo as useMemo27 } from "react";
|
|
24203
23550
|
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
24204
23551
|
var buttonStyles = {
|
|
24205
23552
|
primary: {
|
|
@@ -24230,7 +23577,7 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
|
|
|
24230
23577
|
const props = resolveDesignProps10(rest);
|
|
24231
23578
|
const { t: t3 } = useTranslation();
|
|
24232
23579
|
const { data, setLayout } = useEmbed();
|
|
24233
|
-
const hasActiveSubscription =
|
|
23580
|
+
const hasActiveSubscription = useMemo27(() => {
|
|
24234
23581
|
return data?.subscription && data.subscription.status !== "cancelled" && !data.subscription.cancelAt;
|
|
24235
23582
|
}, [data?.subscription]);
|
|
24236
23583
|
if (!hasActiveSubscription) {
|
|
@@ -24265,7 +23612,7 @@ var UnsubscribeButton = forwardRef17(({ children, className, ...rest }, ref) =>
|
|
|
24265
23612
|
UnsubscribeButton.displayName = "UnsubscribeButton";
|
|
24266
23613
|
|
|
24267
23614
|
// src/components/elements/upcoming-bill/UpcomingBill.tsx
|
|
24268
|
-
import { forwardRef as forwardRef18, useCallback as useCallback15, useEffect as useEffect10, useMemo as
|
|
23615
|
+
import { forwardRef as forwardRef18, useCallback as useCallback15, useEffect as useEffect10, useMemo as useMemo28, useState as useState20 } from "react";
|
|
24269
23616
|
import { jsx as jsx60, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
24270
23617
|
function resolveDesignProps11(props) {
|
|
24271
23618
|
return {
|
|
@@ -24294,7 +23641,7 @@ var UpcomingBill = forwardRef18(({ className, ...rest }, ref) => {
|
|
|
24294
23641
|
const [error, setError] = useState20();
|
|
24295
23642
|
const [upcomingInvoice, setUpcomingInvoice] = useState20(data?.upcomingInvoice);
|
|
24296
23643
|
const [balances, setBalances] = useState20([]);
|
|
24297
|
-
const discounts =
|
|
23644
|
+
const discounts = useMemo28(() => {
|
|
24298
23645
|
return (data?.subscription?.discounts || []).map((discount) => ({
|
|
24299
23646
|
couponId: discount.couponId,
|
|
24300
23647
|
customerFacingCode: discount.customerFacingCode || void 0,
|
|
@@ -24549,9 +23896,9 @@ function TreeDesc(dyn_tree, stat_desc) {
|
|
|
24549
23896
|
var d_code = (dist) => {
|
|
24550
23897
|
return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];
|
|
24551
23898
|
};
|
|
24552
|
-
var put_short = (s,
|
|
24553
|
-
s.pending_buf[s.pending++] =
|
|
24554
|
-
s.pending_buf[s.pending++] =
|
|
23899
|
+
var put_short = (s, w2) => {
|
|
23900
|
+
s.pending_buf[s.pending++] = w2 & 255;
|
|
23901
|
+
s.pending_buf[s.pending++] = w2 >>> 8 & 255;
|
|
24555
23902
|
};
|
|
24556
23903
|
var send_bits = (s, value, length2) => {
|
|
24557
23904
|
if (s.bi_valid > Buf_size - length2) {
|
|
@@ -24564,11 +23911,11 @@ var send_bits = (s, value, length2) => {
|
|
|
24564
23911
|
s.bi_valid += length2;
|
|
24565
23912
|
}
|
|
24566
23913
|
};
|
|
24567
|
-
var send_code = (s,
|
|
23914
|
+
var send_code = (s, c2, tree) => {
|
|
24568
23915
|
send_bits(
|
|
24569
23916
|
s,
|
|
24570
|
-
tree[
|
|
24571
|
-
tree[
|
|
23917
|
+
tree[c2 * 2],
|
|
23918
|
+
tree[c2 * 2 + 1]
|
|
24572
23919
|
/*.Len*/
|
|
24573
23920
|
);
|
|
24574
23921
|
};
|
|
@@ -24600,8 +23947,8 @@ var gen_bitlen = (s, desc) => {
|
|
|
24600
23947
|
const extra = desc.stat_desc.extra_bits;
|
|
24601
23948
|
const base = desc.stat_desc.extra_base;
|
|
24602
23949
|
const max_length = desc.stat_desc.max_length;
|
|
24603
|
-
let
|
|
24604
|
-
let n2,
|
|
23950
|
+
let h2;
|
|
23951
|
+
let n2, m2;
|
|
24605
23952
|
let bits;
|
|
24606
23953
|
let xbits;
|
|
24607
23954
|
let f2;
|
|
@@ -24610,8 +23957,8 @@ var gen_bitlen = (s, desc) => {
|
|
|
24610
23957
|
s.bl_count[bits] = 0;
|
|
24611
23958
|
}
|
|
24612
23959
|
tree[s.heap[s.heap_max] * 2 + 1] = 0;
|
|
24613
|
-
for (
|
|
24614
|
-
n2 = s.heap[
|
|
23960
|
+
for (h2 = s.heap_max + 1; h2 < HEAP_SIZE$1; h2++) {
|
|
23961
|
+
n2 = s.heap[h2];
|
|
24615
23962
|
bits = tree[tree[n2 * 2 + 1] * 2 + 1] + 1;
|
|
24616
23963
|
if (bits > max_length) {
|
|
24617
23964
|
bits = max_length;
|
|
@@ -24648,13 +23995,13 @@ var gen_bitlen = (s, desc) => {
|
|
|
24648
23995
|
for (bits = max_length; bits !== 0; bits--) {
|
|
24649
23996
|
n2 = s.bl_count[bits];
|
|
24650
23997
|
while (n2 !== 0) {
|
|
24651
|
-
|
|
24652
|
-
if (
|
|
23998
|
+
m2 = s.heap[--h2];
|
|
23999
|
+
if (m2 > max_code) {
|
|
24653
24000
|
continue;
|
|
24654
24001
|
}
|
|
24655
|
-
if (tree[
|
|
24656
|
-
s.opt_len += (bits - tree[
|
|
24657
|
-
tree[
|
|
24002
|
+
if (tree[m2 * 2 + 1] !== bits) {
|
|
24003
|
+
s.opt_len += (bits - tree[m2 * 2 + 1]) * tree[m2 * 2];
|
|
24004
|
+
tree[m2 * 2 + 1] = bits;
|
|
24658
24005
|
}
|
|
24659
24006
|
n2--;
|
|
24660
24007
|
}
|
|
@@ -24763,26 +24110,26 @@ var bi_windup = (s) => {
|
|
|
24763
24110
|
s.bi_buf = 0;
|
|
24764
24111
|
s.bi_valid = 0;
|
|
24765
24112
|
};
|
|
24766
|
-
var smaller = (tree, n2,
|
|
24113
|
+
var smaller = (tree, n2, m2, depth) => {
|
|
24767
24114
|
const _n2 = n2 * 2;
|
|
24768
|
-
const _m2 =
|
|
24769
|
-
return tree[_n2] < tree[_m2] || tree[_n2] === tree[_m2] && depth[n2] <= depth[
|
|
24115
|
+
const _m2 = m2 * 2;
|
|
24116
|
+
return tree[_n2] < tree[_m2] || tree[_n2] === tree[_m2] && depth[n2] <= depth[m2];
|
|
24770
24117
|
};
|
|
24771
|
-
var pqdownheap = (s, tree,
|
|
24772
|
-
const
|
|
24773
|
-
let
|
|
24774
|
-
while (
|
|
24775
|
-
if (
|
|
24776
|
-
|
|
24118
|
+
var pqdownheap = (s, tree, k2) => {
|
|
24119
|
+
const v2 = s.heap[k2];
|
|
24120
|
+
let j2 = k2 << 1;
|
|
24121
|
+
while (j2 <= s.heap_len) {
|
|
24122
|
+
if (j2 < s.heap_len && smaller(tree, s.heap[j2 + 1], s.heap[j2], s.depth)) {
|
|
24123
|
+
j2++;
|
|
24777
24124
|
}
|
|
24778
|
-
if (smaller(tree,
|
|
24125
|
+
if (smaller(tree, v2, s.heap[j2], s.depth)) {
|
|
24779
24126
|
break;
|
|
24780
24127
|
}
|
|
24781
|
-
s.heap[
|
|
24782
|
-
|
|
24783
|
-
|
|
24128
|
+
s.heap[k2] = s.heap[j2];
|
|
24129
|
+
k2 = j2;
|
|
24130
|
+
j2 <<= 1;
|
|
24784
24131
|
}
|
|
24785
|
-
s.heap[
|
|
24132
|
+
s.heap[k2] = v2;
|
|
24786
24133
|
};
|
|
24787
24134
|
var compress_block = (s, ltree, dtree) => {
|
|
24788
24135
|
let dist;
|
|
@@ -24823,7 +24170,7 @@ var build_tree = (s, desc) => {
|
|
|
24823
24170
|
const stree = desc.stat_desc.static_tree;
|
|
24824
24171
|
const has_stree = desc.stat_desc.has_stree;
|
|
24825
24172
|
const elems = desc.stat_desc.elems;
|
|
24826
|
-
let n2,
|
|
24173
|
+
let n2, m2;
|
|
24827
24174
|
let max_code = -1;
|
|
24828
24175
|
let node2;
|
|
24829
24176
|
s.heap_len = 0;
|
|
@@ -24865,15 +24212,15 @@ var build_tree = (s, desc) => {
|
|
|
24865
24212
|
1
|
|
24866
24213
|
/*SMALLEST*/
|
|
24867
24214
|
);
|
|
24868
|
-
|
|
24215
|
+
m2 = s.heap[
|
|
24869
24216
|
1
|
|
24870
24217
|
/*SMALLEST*/
|
|
24871
24218
|
];
|
|
24872
24219
|
s.heap[--s.heap_max] = n2;
|
|
24873
|
-
s.heap[--s.heap_max] =
|
|
24874
|
-
tree[node2 * 2] = tree[n2 * 2] + tree[
|
|
24875
|
-
s.depth[node2] = (s.depth[n2] >= s.depth[
|
|
24876
|
-
tree[n2 * 2 + 1] = tree[
|
|
24220
|
+
s.heap[--s.heap_max] = m2;
|
|
24221
|
+
tree[node2 * 2] = tree[n2 * 2] + tree[m2 * 2];
|
|
24222
|
+
s.depth[node2] = (s.depth[n2] >= s.depth[m2] ? s.depth[n2] : s.depth[m2]) + 1;
|
|
24223
|
+
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] = node2;
|
|
24877
24224
|
s.heap[
|
|
24878
24225
|
1
|
|
24879
24226
|
/*SMALLEST*/
|
|
@@ -25130,13 +24477,13 @@ var adler32 = (adler, buf, len, pos) => {
|
|
|
25130
24477
|
};
|
|
25131
24478
|
var adler32_1 = adler32;
|
|
25132
24479
|
var makeTable = () => {
|
|
25133
|
-
let
|
|
24480
|
+
let c2, table = [];
|
|
25134
24481
|
for (var n2 = 0; n2 < 256; n2++) {
|
|
25135
|
-
|
|
25136
|
-
for (var
|
|
25137
|
-
|
|
24482
|
+
c2 = n2;
|
|
24483
|
+
for (var k2 = 0; k2 < 8; k2++) {
|
|
24484
|
+
c2 = c2 & 1 ? 3988292384 ^ c2 >>> 1 : c2 >>> 1;
|
|
25138
24485
|
}
|
|
25139
|
-
table[n2] =
|
|
24486
|
+
table[n2] = c2;
|
|
25140
24487
|
}
|
|
25141
24488
|
return table;
|
|
25142
24489
|
};
|
|
@@ -25273,20 +24620,20 @@ var zero = (buf) => {
|
|
|
25273
24620
|
}
|
|
25274
24621
|
};
|
|
25275
24622
|
var slide_hash = (s) => {
|
|
25276
|
-
let n2,
|
|
25277
|
-
let
|
|
24623
|
+
let n2, m2;
|
|
24624
|
+
let p2;
|
|
25278
24625
|
let wsize = s.w_size;
|
|
25279
24626
|
n2 = s.hash_size;
|
|
25280
|
-
|
|
24627
|
+
p2 = n2;
|
|
25281
24628
|
do {
|
|
25282
|
-
|
|
25283
|
-
s.head[
|
|
24629
|
+
m2 = s.head[--p2];
|
|
24630
|
+
s.head[p2] = m2 >= wsize ? m2 - wsize : 0;
|
|
25284
24631
|
} while (--n2);
|
|
25285
24632
|
n2 = wsize;
|
|
25286
|
-
|
|
24633
|
+
p2 = n2;
|
|
25287
24634
|
do {
|
|
25288
|
-
|
|
25289
|
-
s.prev[
|
|
24635
|
+
m2 = s.prev[--p2];
|
|
24636
|
+
s.prev[p2] = m2 >= wsize ? m2 - wsize : 0;
|
|
25290
24637
|
} while (--n2);
|
|
25291
24638
|
};
|
|
25292
24639
|
var HASH_ZLIB = (s, prev2, data) => (prev2 << s.hash_shift ^ data) & s.hash_mask;
|
|
@@ -25315,12 +24662,12 @@ var flush_block_only = (s, last) => {
|
|
|
25315
24662
|
s.block_start = s.strstart;
|
|
25316
24663
|
flush_pending(s.strm);
|
|
25317
24664
|
};
|
|
25318
|
-
var put_byte = (s,
|
|
25319
|
-
s.pending_buf[s.pending++] =
|
|
24665
|
+
var put_byte = (s, b2) => {
|
|
24666
|
+
s.pending_buf[s.pending++] = b2;
|
|
25320
24667
|
};
|
|
25321
|
-
var putShortMSB = (s,
|
|
25322
|
-
s.pending_buf[s.pending++] =
|
|
25323
|
-
s.pending_buf[s.pending++] =
|
|
24668
|
+
var putShortMSB = (s, b2) => {
|
|
24669
|
+
s.pending_buf[s.pending++] = b2 >>> 8 & 255;
|
|
24670
|
+
s.pending_buf[s.pending++] = b2 & 255;
|
|
25324
24671
|
};
|
|
25325
24672
|
var read_buf = (strm, buf, start, size) => {
|
|
25326
24673
|
let len = strm.avail_in;
|
|
@@ -26365,9 +25712,9 @@ var assign2 = function(obj) {
|
|
|
26365
25712
|
if (typeof source !== "object") {
|
|
26366
25713
|
throw new TypeError(source + "must be non-object");
|
|
26367
25714
|
}
|
|
26368
|
-
for (const
|
|
26369
|
-
if (_has(source,
|
|
26370
|
-
obj[
|
|
25715
|
+
for (const p2 in source) {
|
|
25716
|
+
if (_has(source, p2)) {
|
|
25717
|
+
obj[p2] = source[p2];
|
|
26371
25718
|
}
|
|
26372
25719
|
}
|
|
26373
25720
|
}
|
|
@@ -26375,11 +25722,11 @@ var assign2 = function(obj) {
|
|
|
26375
25722
|
};
|
|
26376
25723
|
var flattenChunks = (chunks) => {
|
|
26377
25724
|
let len = 0;
|
|
26378
|
-
for (let i2 = 0,
|
|
25725
|
+
for (let i2 = 0, l2 = chunks.length; i2 < l2; i2++) {
|
|
26379
25726
|
len += chunks[i2].length;
|
|
26380
25727
|
}
|
|
26381
25728
|
const result = new Uint8Array(len);
|
|
26382
|
-
for (let i2 = 0, pos = 0,
|
|
25729
|
+
for (let i2 = 0, pos = 0, l2 = chunks.length; i2 < l2; i2++) {
|
|
26383
25730
|
let chunk = chunks[i2];
|
|
26384
25731
|
result.set(chunk, pos);
|
|
26385
25732
|
pos += chunk.length;
|
|
@@ -26397,50 +25744,50 @@ try {
|
|
|
26397
25744
|
STR_APPLY_UIA_OK = false;
|
|
26398
25745
|
}
|
|
26399
25746
|
var _utf8len = new Uint8Array(256);
|
|
26400
|
-
for (let
|
|
26401
|
-
_utf8len[
|
|
25747
|
+
for (let q2 = 0; q2 < 256; q2++) {
|
|
25748
|
+
_utf8len[q2] = q2 >= 252 ? 6 : q2 >= 248 ? 5 : q2 >= 240 ? 4 : q2 >= 224 ? 3 : q2 >= 192 ? 2 : 1;
|
|
26402
25749
|
}
|
|
26403
25750
|
_utf8len[254] = _utf8len[254] = 1;
|
|
26404
25751
|
var string2buf = (str) => {
|
|
26405
25752
|
if (typeof TextEncoder === "function" && TextEncoder.prototype.encode) {
|
|
26406
25753
|
return new TextEncoder().encode(str);
|
|
26407
25754
|
}
|
|
26408
|
-
let buf,
|
|
25755
|
+
let buf, c2, c22, m_pos, i2, str_len = str.length, buf_len = 0;
|
|
26409
25756
|
for (m_pos = 0; m_pos < str_len; m_pos++) {
|
|
26410
|
-
|
|
26411
|
-
if ((
|
|
25757
|
+
c2 = str.charCodeAt(m_pos);
|
|
25758
|
+
if ((c2 & 64512) === 55296 && m_pos + 1 < str_len) {
|
|
26412
25759
|
c22 = str.charCodeAt(m_pos + 1);
|
|
26413
25760
|
if ((c22 & 64512) === 56320) {
|
|
26414
|
-
|
|
25761
|
+
c2 = 65536 + (c2 - 55296 << 10) + (c22 - 56320);
|
|
26415
25762
|
m_pos++;
|
|
26416
25763
|
}
|
|
26417
25764
|
}
|
|
26418
|
-
buf_len +=
|
|
25765
|
+
buf_len += c2 < 128 ? 1 : c2 < 2048 ? 2 : c2 < 65536 ? 3 : 4;
|
|
26419
25766
|
}
|
|
26420
25767
|
buf = new Uint8Array(buf_len);
|
|
26421
25768
|
for (i2 = 0, m_pos = 0; i2 < buf_len; m_pos++) {
|
|
26422
|
-
|
|
26423
|
-
if ((
|
|
25769
|
+
c2 = str.charCodeAt(m_pos);
|
|
25770
|
+
if ((c2 & 64512) === 55296 && m_pos + 1 < str_len) {
|
|
26424
25771
|
c22 = str.charCodeAt(m_pos + 1);
|
|
26425
25772
|
if ((c22 & 64512) === 56320) {
|
|
26426
|
-
|
|
25773
|
+
c2 = 65536 + (c2 - 55296 << 10) + (c22 - 56320);
|
|
26427
25774
|
m_pos++;
|
|
26428
25775
|
}
|
|
26429
25776
|
}
|
|
26430
|
-
if (
|
|
26431
|
-
buf[i2++] =
|
|
26432
|
-
} else if (
|
|
26433
|
-
buf[i2++] = 192 |
|
|
26434
|
-
buf[i2++] = 128 |
|
|
26435
|
-
} else if (
|
|
26436
|
-
buf[i2++] = 224 |
|
|
26437
|
-
buf[i2++] = 128 |
|
|
26438
|
-
buf[i2++] = 128 |
|
|
25777
|
+
if (c2 < 128) {
|
|
25778
|
+
buf[i2++] = c2;
|
|
25779
|
+
} else if (c2 < 2048) {
|
|
25780
|
+
buf[i2++] = 192 | c2 >>> 6;
|
|
25781
|
+
buf[i2++] = 128 | c2 & 63;
|
|
25782
|
+
} else if (c2 < 65536) {
|
|
25783
|
+
buf[i2++] = 224 | c2 >>> 12;
|
|
25784
|
+
buf[i2++] = 128 | c2 >>> 6 & 63;
|
|
25785
|
+
buf[i2++] = 128 | c2 & 63;
|
|
26439
25786
|
} else {
|
|
26440
|
-
buf[i2++] = 240 |
|
|
26441
|
-
buf[i2++] = 128 |
|
|
26442
|
-
buf[i2++] = 128 |
|
|
26443
|
-
buf[i2++] = 128 |
|
|
25787
|
+
buf[i2++] = 240 | c2 >>> 18;
|
|
25788
|
+
buf[i2++] = 128 | c2 >>> 12 & 63;
|
|
25789
|
+
buf[i2++] = 128 | c2 >>> 6 & 63;
|
|
25790
|
+
buf[i2++] = 128 | c2 & 63;
|
|
26444
25791
|
}
|
|
26445
25792
|
}
|
|
26446
25793
|
return buf;
|
|
@@ -26465,32 +25812,32 @@ var buf2string = (buf, max) => {
|
|
|
26465
25812
|
let i2, out;
|
|
26466
25813
|
const utf16buf = new Array(len * 2);
|
|
26467
25814
|
for (out = 0, i2 = 0; i2 < len; ) {
|
|
26468
|
-
let
|
|
26469
|
-
if (
|
|
26470
|
-
utf16buf[out++] =
|
|
25815
|
+
let c2 = buf[i2++];
|
|
25816
|
+
if (c2 < 128) {
|
|
25817
|
+
utf16buf[out++] = c2;
|
|
26471
25818
|
continue;
|
|
26472
25819
|
}
|
|
26473
|
-
let c_len = _utf8len[
|
|
25820
|
+
let c_len = _utf8len[c2];
|
|
26474
25821
|
if (c_len > 4) {
|
|
26475
25822
|
utf16buf[out++] = 65533;
|
|
26476
25823
|
i2 += c_len - 1;
|
|
26477
25824
|
continue;
|
|
26478
25825
|
}
|
|
26479
|
-
|
|
25826
|
+
c2 &= c_len === 2 ? 31 : c_len === 3 ? 15 : 7;
|
|
26480
25827
|
while (c_len > 1 && i2 < len) {
|
|
26481
|
-
|
|
25828
|
+
c2 = c2 << 6 | buf[i2++] & 63;
|
|
26482
25829
|
c_len--;
|
|
26483
25830
|
}
|
|
26484
25831
|
if (c_len > 1) {
|
|
26485
25832
|
utf16buf[out++] = 65533;
|
|
26486
25833
|
continue;
|
|
26487
25834
|
}
|
|
26488
|
-
if (
|
|
26489
|
-
utf16buf[out++] =
|
|
25835
|
+
if (c2 < 65536) {
|
|
25836
|
+
utf16buf[out++] = c2;
|
|
26490
25837
|
} else {
|
|
26491
|
-
|
|
26492
|
-
utf16buf[out++] = 55296 |
|
|
26493
|
-
utf16buf[out++] = 56320 |
|
|
25838
|
+
c2 -= 65536;
|
|
25839
|
+
utf16buf[out++] = 55296 | c2 >> 10 & 1023;
|
|
25840
|
+
utf16buf[out++] = 56320 | c2 & 1023;
|
|
26494
25841
|
}
|
|
26495
25842
|
}
|
|
26496
25843
|
return buf2binstring(utf16buf, out);
|
|
@@ -27266,8 +26613,8 @@ var ENOUGH_LENS = 852;
|
|
|
27266
26613
|
var ENOUGH_DISTS = 592;
|
|
27267
26614
|
var MAX_WBITS = 15;
|
|
27268
26615
|
var DEF_WBITS = MAX_WBITS;
|
|
27269
|
-
var zswap32 = (
|
|
27270
|
-
return (
|
|
26616
|
+
var zswap32 = (q2) => {
|
|
26617
|
+
return (q2 >>> 24 & 255) + (q2 >>> 8 & 65280) + ((q2 & 65280) << 8) + ((q2 & 255) << 24);
|
|
27271
26618
|
};
|
|
27272
26619
|
function InflateState() {
|
|
27273
26620
|
this.strm = null;
|
|
@@ -28767,7 +28114,7 @@ var Error2 = ({ message }) => {
|
|
|
28767
28114
|
};
|
|
28768
28115
|
var SchematicEmbed = ({ id, accessToken }) => {
|
|
28769
28116
|
const [children, setChildren] = useState21(/* @__PURE__ */ jsx61(Loading, {}));
|
|
28770
|
-
const theme = useContext6(
|
|
28117
|
+
const theme = useContext6(tt);
|
|
28771
28118
|
const {
|
|
28772
28119
|
data,
|
|
28773
28120
|
error,
|