@rankingcoach/vanguard 1.5.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-AMPMMidnightParser.js +1 -1
- package/dist/index-AMPMParser.js +1 -1
- package/dist/index-Accordion2.js +1 -1
- package/dist/index-Axios4.js +1 -1
- package/dist/index-AxiosError.js +1 -1
- package/dist/index-BenchmarkGauge.js +119 -0
- package/dist/index-BenchmarkGauge.module.scss.js +35 -0
- package/dist/index-BenchmarkGaugeMarker.js +58 -0
- package/dist/index-BenchmarkGaugeMarker.module.scss.js +19 -0
- package/dist/index-BenchmarkGaugePin.js +40 -0
- package/dist/index-BenchmarkGaugePin.module.scss.js +15 -0
- package/dist/index-Calendar.js +1 -1
- package/dist/index-CalendarPicker.js +1 -1
- package/dist/index-CanceledError.js +1 -1
- package/dist/index-Collapse2.js +1 -1
- package/dist/index-DateParser.js +1 -1
- package/dist/index-DateRange.js +1 -1
- package/dist/index-DateRange2.js +1 -1
- package/dist/index-DateRangePicker2.js +1 -1
- package/dist/index-DayOfYearParser.js +1 -1
- package/dist/index-DayPeriodParser.js +1 -1
- package/dist/index-ExtendedYearParser.js +1 -1
- package/dist/index-Fade.js +1 -1
- package/dist/index-FormControl2.js +1 -1
- package/dist/index-FractionOfSecondParser.js +1 -1
- package/dist/index-Grow.js +1 -1
- package/dist/index-Hour0To11Parser.js +1 -1
- package/dist/index-Hour0to23Parser.js +1 -1
- package/dist/index-Hour1To24Parser.js +1 -1
- package/dist/index-Hour1to12Parser.js +1 -1
- package/dist/index-ISODayParser.js +1 -1
- package/dist/index-ISOTimezoneParser.js +1 -1
- package/dist/index-ISOTimezoneWithZParser.js +1 -1
- package/dist/index-ISOWeekParser.js +1 -1
- package/dist/index-ISOWeekYearParser.js +1 -1
- package/dist/index-InputBase2.js +1 -1
- package/dist/index-InterceptorManager.js +1 -1
- package/dist/index-LocalDayParser.js +1 -1
- package/dist/index-LocalWeekParser.js +1 -1
- package/dist/index-LocalWeekYearParser.js +1 -1
- package/dist/index-LoginButton.js +1 -1
- package/dist/index-MinuteParser.js +1 -1
- package/dist/index-Month.js +1 -1
- package/dist/index-MonthParser.js +1 -1
- package/dist/index-MonthPicker.js +1 -1
- package/dist/index-PickersMonth.js +1 -1
- package/dist/index-PickersPopper.js +1 -1
- package/dist/index-PureDateInput.js +1 -1
- package/dist/index-QuarterParser.js +1 -1
- package/dist/index-SecondParser.js +1 -1
- package/dist/index-SelectInput2.js +2 -2
- package/dist/index-Slide.js +1 -1
- package/dist/index-SocialMediaLink.js +1 -1
- package/dist/index-StandAloneLocalDayParser.js +1 -1
- package/dist/index-StandAloneMonthParser.js +1 -1
- package/dist/index-StandAloneQuarterParser.js +1 -1
- package/dist/index-TimestampMillisecondsParser.js +1 -1
- package/dist/index-TimestampSecondsParser.js +1 -1
- package/dist/index-Tooltip.js +1 -1
- package/dist/index-YearParser.js +1 -1
- package/dist/index-YearPicker.js +1 -1
- package/dist/index-_virtual10.js +3 -5
- package/dist/index-_virtual11.js +5 -5
- package/dist/index-_virtual12.js +5 -2
- package/dist/index-_virtual18.js +2 -7
- package/dist/index-_virtual19.js +7 -2
- package/dist/index-_virtual9.js +2 -3
- package/dist/index-axios2.js +1 -1
- package/dist/index-buildURL.js +1 -1
- package/dist/index-cookies.js +1 -1
- package/dist/index-defaults.js +1 -1
- package/dist/index-dispatchRequest.js +1 -1
- package/dist/index-dist3.js +1 -1
- package/dist/index-es.js +1 -1
- package/dist/index-formDataToJSON.js +1 -1
- package/dist/index-http.store.js +1 -1
- package/dist/index-isAxiosError.js +1 -1
- package/dist/index-isURLSameOrigin.js +1 -1
- package/dist/index-mergeConfig.js +1 -1
- package/dist/index-normalizeHeaderName.js +1 -1
- package/dist/index-parseHeaders.js +1 -1
- package/dist/index-position_high.svg.js +4 -0
- package/dist/index-position_low.svg.js +4 -0
- package/dist/index-position_mid.svg.js +4 -0
- package/dist/index-toFormData.js +1 -1
- package/dist/index-toURLEncodedForm.js +1 -1
- package/dist/index-transformData.js +1 -1
- package/dist/index-use-benchmark-gauge-render-state.js +61 -0
- package/dist/index-use-dynamic-import.js +3 -0
- package/dist/index-useAutocomplete.js +1 -1
- package/dist/index-useControlled.js +2 -26
- package/dist/index-useControlled2.js +26 -2
- package/dist/index-useIsLandscape.js +1 -1
- package/dist/index-useSlider.js +1 -1
- package/dist/index-useViews.js +2 -2
- package/dist/index-utils10.js +179 -11
- package/dist/index-utils11.js +12 -100
- package/dist/index-utils12.js +102 -0
- package/dist/index-utils3.js +48 -19
- package/dist/index-utils4.js +18 -63
- package/dist/index-utils5.js +63 -15
- package/dist/index-utils6.js +15 -66
- package/dist/index-utils7.js +66 -11
- package/dist/index-utils8.js +12 -2
- package/dist/index-utils9.js +2 -180
- package/dist/index-video.es.js +2 -2
- package/dist/index-xhr.js +1 -1
- package/dist/index.js +290 -288
- package/dist/reputation/position_high.svg +5 -0
- package/dist/reputation/position_low.svg +12 -0
- package/dist/reputation/position_mid.svg +11 -0
- package/dist/types/core/BenchmarkGauge/BenchmarkGauge.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/BenchmarkGaugeMarker/BenchmarkGaugeMarker.d.ts +16 -0
- package/dist/types/core/BenchmarkGauge/BenchmarkGaugeMarker/BenchmarkGaugePin/BenchmarkGaugePin.d.ts +10 -0
- package/dist/types/core/BenchmarkGauge/hooks/use-benchmark-gauge-render-state.d.ts +19 -0
- package/dist/types/core/BenchmarkGauge/index.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/AuditSimulation.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ColorByRankCustomPalette.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ColorByRankDefault.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ColorByRankMixedPrecedence.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ColorByRankTwoMarkersEndpoints.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/EdgePins.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/FullTrackNoProgress.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/HorizontalDefault.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/InsideEndLabelOnly.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/InsideLabels.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/InsideLabelsVertical.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/InsideLabelsWithOverlap.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/InsideLabelsWithProgress.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/InsideStartLabelOnly.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/InvalidRangeGuard.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/LegendHorizontal.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/LegendNone.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/LegendPartial.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/LegendVertical.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/LegendWithCoreGrowEffect.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/LegendWithHighlightedIcons.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/LegendWithWrapperExtras.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ListingsSimulation.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/NoMarkers.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/OverlappingMarkers.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ProgressAtMax.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ProgressAtMin.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ProgressHorizontal.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ProgressInvalidId.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ProgressVertical.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ProgressVerticalAtMin.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ProgressWideTextPin.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ProgressWideTextPinVertical.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/RankScenarioA.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/RankScenarioB.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/RankScenarioC.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/RankWithContent.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/ScoreSimulation.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/StaticColorRegression.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/VerticalDefault.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/WithContentAutoFlip.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/WithContentEnd.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/WithContentStart.story.d.ts +2 -0
- package/dist/types/core/BenchmarkGauge/stories/_BenchmarkGauge.default.d.ts +44 -0
- package/dist/types/core/BenchmarkGauge/types.d.ts +136 -0
- package/dist/types/core/BenchmarkGauge/utils.d.ts +61 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist/vanguard.css +1 -1
- package/dist-wordpress/vanguard.css +1 -1
- package/package.json +1 -1
package/dist/index-utils10.js
CHANGED
|
@@ -1,14 +1,182 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { __require as J } from "./index-bind.js";
|
|
2
|
+
var F, A;
|
|
3
|
+
function X() {
|
|
4
|
+
if (A) return F;
|
|
5
|
+
A = 1;
|
|
6
|
+
var w = J(), s = Object.prototype.toString, l = /* @__PURE__ */ (function(r) {
|
|
7
|
+
return function(e) {
|
|
8
|
+
var t = s.call(e);
|
|
9
|
+
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
10
|
+
};
|
|
11
|
+
})(/* @__PURE__ */ Object.create(null));
|
|
12
|
+
function f(r) {
|
|
13
|
+
return r = r.toLowerCase(), function(t) {
|
|
14
|
+
return l(t) === r;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function o(r) {
|
|
18
|
+
return Array.isArray(r);
|
|
19
|
+
}
|
|
20
|
+
function p(r) {
|
|
21
|
+
return typeof r > "u";
|
|
22
|
+
}
|
|
23
|
+
function B(r) {
|
|
24
|
+
return r !== null && !p(r) && r.constructor !== null && !p(r.constructor) && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
25
|
+
}
|
|
26
|
+
var O = f("ArrayBuffer");
|
|
27
|
+
function S(r) {
|
|
28
|
+
var e;
|
|
29
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && O(r.buffer), e;
|
|
30
|
+
}
|
|
31
|
+
function E(r) {
|
|
32
|
+
return typeof r == "string";
|
|
33
|
+
}
|
|
34
|
+
function g(r) {
|
|
35
|
+
return typeof r == "number";
|
|
36
|
+
}
|
|
37
|
+
function h(r) {
|
|
38
|
+
return r !== null && typeof r == "object";
|
|
39
|
+
}
|
|
40
|
+
function c(r) {
|
|
41
|
+
if (l(r) !== "object")
|
|
42
|
+
return !1;
|
|
43
|
+
var e = Object.getPrototypeOf(r);
|
|
44
|
+
return e === null || e === Object.prototype;
|
|
45
|
+
}
|
|
46
|
+
function P(r) {
|
|
47
|
+
return r && Object.keys(r).length === 0 && Object.getPrototypeOf(r) === Object.prototype;
|
|
48
|
+
}
|
|
49
|
+
var L = f("Date"), x = f("File"), b = f("Blob"), U = f("FileList");
|
|
50
|
+
function y(r) {
|
|
51
|
+
return s.call(r) === "[object Function]";
|
|
52
|
+
}
|
|
53
|
+
function D(r) {
|
|
54
|
+
return h(r) && y(r.pipe);
|
|
55
|
+
}
|
|
56
|
+
function N(r) {
|
|
57
|
+
var e = "[object FormData]";
|
|
58
|
+
return r && (typeof FormData == "function" && r instanceof FormData || s.call(r) === e || y(r.toString) && r.toString() === e);
|
|
59
|
+
}
|
|
60
|
+
var T = f("URLSearchParams");
|
|
61
|
+
function V(r) {
|
|
62
|
+
return r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
63
|
+
}
|
|
64
|
+
function q() {
|
|
65
|
+
var r;
|
|
66
|
+
return typeof navigator < "u" && ((r = navigator.product) === "ReactNative" || r === "NativeScript" || r === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
67
|
+
}
|
|
68
|
+
function d(r, e) {
|
|
69
|
+
if (!(r === null || typeof r > "u"))
|
|
70
|
+
if (typeof r != "object" && (r = [r]), o(r))
|
|
71
|
+
for (var t = 0, i = r.length; t < i; t++)
|
|
72
|
+
e.call(null, r[t], t, r);
|
|
73
|
+
else
|
|
74
|
+
for (var n in r)
|
|
75
|
+
Object.prototype.hasOwnProperty.call(r, n) && e.call(null, r[n], n, r);
|
|
76
|
+
}
|
|
77
|
+
function m() {
|
|
78
|
+
var r = {};
|
|
79
|
+
function e(n, u) {
|
|
80
|
+
c(r[u]) && c(n) ? r[u] = m(r[u], n) : c(n) ? r[u] = m({}, n) : o(n) ? r[u] = n.slice() : r[u] = n;
|
|
81
|
+
}
|
|
82
|
+
for (var t = 0, i = arguments.length; t < i; t++)
|
|
83
|
+
d(arguments[t], e);
|
|
84
|
+
return r;
|
|
85
|
+
}
|
|
86
|
+
function M(r, e, t) {
|
|
87
|
+
return d(e, function(n, u) {
|
|
88
|
+
t && typeof n == "function" ? r[u] = w(n, t) : r[u] = n;
|
|
89
|
+
}), r;
|
|
90
|
+
}
|
|
91
|
+
function R(r) {
|
|
92
|
+
return r.charCodeAt(0) === 65279 && (r = r.slice(1)), r;
|
|
93
|
+
}
|
|
94
|
+
function _(r, e, t, i) {
|
|
95
|
+
r.prototype = Object.create(e.prototype, i), r.prototype.constructor = r, t && Object.assign(r.prototype, t);
|
|
96
|
+
}
|
|
97
|
+
function C(r, e, t, i) {
|
|
98
|
+
var n, u, a, v = {};
|
|
99
|
+
if (e = e || {}, r == null) return e;
|
|
100
|
+
do {
|
|
101
|
+
for (n = Object.getOwnPropertyNames(r), u = n.length; u-- > 0; )
|
|
102
|
+
a = n[u], (!i || i(a, r, e)) && !v[a] && (e[a] = r[a], v[a] = !0);
|
|
103
|
+
r = t !== !1 && Object.getPrototypeOf(r);
|
|
104
|
+
} while (r && (!t || t(r, e)) && r !== Object.prototype);
|
|
105
|
+
return e;
|
|
106
|
+
}
|
|
107
|
+
function H(r, e, t) {
|
|
108
|
+
r = String(r), (t === void 0 || t > r.length) && (t = r.length), t -= e.length;
|
|
109
|
+
var i = r.indexOf(e, t);
|
|
110
|
+
return i !== -1 && i === t;
|
|
111
|
+
}
|
|
112
|
+
function W(r) {
|
|
113
|
+
if (!r) return null;
|
|
114
|
+
if (o(r)) return r;
|
|
115
|
+
var e = r.length;
|
|
116
|
+
if (!g(e)) return null;
|
|
117
|
+
for (var t = new Array(e); e-- > 0; )
|
|
118
|
+
t[e] = r[e];
|
|
119
|
+
return t;
|
|
120
|
+
}
|
|
121
|
+
var I = /* @__PURE__ */ (function(r) {
|
|
122
|
+
return function(e) {
|
|
123
|
+
return r && e instanceof r;
|
|
124
|
+
};
|
|
125
|
+
})(typeof Uint8Array < "u" && Object.getPrototypeOf(Uint8Array));
|
|
126
|
+
function K(r, e) {
|
|
127
|
+
for (var t = r && r[Symbol.iterator], i = t.call(r), n; (n = i.next()) && !n.done; ) {
|
|
128
|
+
var u = n.value;
|
|
129
|
+
e.call(r, u[0], u[1]);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function $(r, e) {
|
|
133
|
+
for (var t, i = []; (t = r.exec(e)) !== null; )
|
|
134
|
+
i.push(t);
|
|
135
|
+
return i;
|
|
136
|
+
}
|
|
137
|
+
var z = f("HTMLFormElement"), G = /* @__PURE__ */ (function(e) {
|
|
138
|
+
return function(t, i) {
|
|
139
|
+
return e.call(t, i);
|
|
140
|
+
};
|
|
141
|
+
})(Object.prototype.hasOwnProperty);
|
|
142
|
+
return F = {
|
|
143
|
+
isArray: o,
|
|
144
|
+
isArrayBuffer: O,
|
|
145
|
+
isBuffer: B,
|
|
146
|
+
isFormData: N,
|
|
147
|
+
isArrayBufferView: S,
|
|
148
|
+
isString: E,
|
|
149
|
+
isNumber: g,
|
|
150
|
+
isObject: h,
|
|
151
|
+
isPlainObject: c,
|
|
152
|
+
isEmptyObject: P,
|
|
153
|
+
isUndefined: p,
|
|
154
|
+
isDate: L,
|
|
155
|
+
isFile: x,
|
|
156
|
+
isBlob: b,
|
|
157
|
+
isFunction: y,
|
|
158
|
+
isStream: D,
|
|
159
|
+
isURLSearchParams: T,
|
|
160
|
+
isStandardBrowserEnv: q,
|
|
161
|
+
forEach: d,
|
|
162
|
+
merge: m,
|
|
163
|
+
extend: M,
|
|
164
|
+
trim: V,
|
|
165
|
+
stripBOM: R,
|
|
166
|
+
inherits: _,
|
|
167
|
+
toFlatObject: C,
|
|
168
|
+
kindOf: l,
|
|
169
|
+
kindOfTest: f,
|
|
170
|
+
endsWith: H,
|
|
171
|
+
toArray: W,
|
|
172
|
+
isTypedArray: I,
|
|
173
|
+
isFileList: U,
|
|
174
|
+
forEachEntry: K,
|
|
175
|
+
matchAll: $,
|
|
176
|
+
isHTMLForm: z,
|
|
177
|
+
hasOwnProperty: G
|
|
178
|
+
}, F;
|
|
3
179
|
}
|
|
4
|
-
const c = (o, n) => (r) => {
|
|
5
|
-
(r.key === "Enter" || r.key === " ") && (o(r), r.preventDefault(), r.stopPropagation());
|
|
6
|
-
}, t = (o = document) => {
|
|
7
|
-
const n = o.activeElement;
|
|
8
|
-
return n ? n.shadowRoot ? t(n.shadowRoot) : n : null;
|
|
9
|
-
};
|
|
10
180
|
export {
|
|
11
|
-
|
|
12
|
-
t as getActiveElement,
|
|
13
|
-
c as onSpaceOrEnter
|
|
181
|
+
X as __require
|
|
14
182
|
};
|
package/dist/index-utils11.js
CHANGED
|
@@ -1,102 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var n = r.match(e);
|
|
11
|
-
return n ? {
|
|
12
|
-
value: parseInt(n[0], 10),
|
|
13
|
-
rest: r.slice(n[0].length)
|
|
14
|
-
} : null;
|
|
15
|
-
}
|
|
16
|
-
function p(e, r) {
|
|
17
|
-
var n = r.match(e);
|
|
18
|
-
if (!n)
|
|
19
|
-
return null;
|
|
20
|
-
if (n[0] === "Z")
|
|
21
|
-
return {
|
|
22
|
-
value: 0,
|
|
23
|
-
rest: r.slice(1)
|
|
24
|
-
};
|
|
25
|
-
var u = n[1] === "+" ? 1 : -1, t = n[2] ? parseInt(n[2], 10) : 0, a = n[3] ? parseInt(n[3], 10) : 0, c = n[5] ? parseInt(n[5], 10) : 0;
|
|
26
|
-
return {
|
|
27
|
-
value: u * (t * l + a * m + c * f),
|
|
28
|
-
rest: r.slice(n[0].length)
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function D(e) {
|
|
32
|
-
return i(s.anyDigitsSigned, e);
|
|
33
|
-
}
|
|
34
|
-
function d(e, r) {
|
|
35
|
-
switch (e) {
|
|
36
|
-
case 1:
|
|
37
|
-
return i(s.singleDigit, r);
|
|
38
|
-
case 2:
|
|
39
|
-
return i(s.twoDigits, r);
|
|
40
|
-
case 3:
|
|
41
|
-
return i(s.threeDigits, r);
|
|
42
|
-
case 4:
|
|
43
|
-
return i(s.fourDigits, r);
|
|
44
|
-
default:
|
|
45
|
-
return i(new RegExp("^\\d{1," + e + "}"), r);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function I(e, r) {
|
|
49
|
-
switch (e) {
|
|
50
|
-
case 1:
|
|
51
|
-
return i(s.singleDigitSigned, r);
|
|
52
|
-
case 2:
|
|
53
|
-
return i(s.twoDigitsSigned, r);
|
|
54
|
-
case 3:
|
|
55
|
-
return i(s.threeDigitsSigned, r);
|
|
56
|
-
case 4:
|
|
57
|
-
return i(s.fourDigitsSigned, r);
|
|
58
|
-
default:
|
|
59
|
-
return i(new RegExp("^-?\\d{1," + e + "}"), r);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function w(e) {
|
|
63
|
-
switch (e) {
|
|
64
|
-
case "morning":
|
|
65
|
-
return 4;
|
|
66
|
-
case "evening":
|
|
67
|
-
return 17;
|
|
68
|
-
case "pm":
|
|
69
|
-
case "noon":
|
|
70
|
-
case "afternoon":
|
|
71
|
-
return 12;
|
|
72
|
-
case "am":
|
|
73
|
-
case "midnight":
|
|
74
|
-
case "night":
|
|
75
|
-
default:
|
|
76
|
-
return 0;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function x(e, r) {
|
|
80
|
-
var n = r > 0, u = n ? r : 1 - r, t;
|
|
81
|
-
if (u <= 50)
|
|
82
|
-
t = e || 100;
|
|
83
|
-
else {
|
|
84
|
-
var a = u + 50, c = Math.floor(a / 100) * 100, o = e >= a % 100;
|
|
85
|
-
t = e + c - (o ? 100 : 0);
|
|
86
|
-
}
|
|
87
|
-
return n ? t : 1 - t;
|
|
88
|
-
}
|
|
89
|
-
function P(e) {
|
|
90
|
-
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
91
|
-
}
|
|
1
|
+
function e(o, n) {
|
|
2
|
+
return Array.isArray(n) ? n.every((r) => o.indexOf(r) !== -1) : o.indexOf(n) !== -1;
|
|
3
|
+
}
|
|
4
|
+
const c = (o, n) => (r) => {
|
|
5
|
+
(r.key === "Enter" || r.key === " ") && (o(r), r.preventDefault(), r.stopPropagation());
|
|
6
|
+
}, t = (o = document) => {
|
|
7
|
+
const n = o.activeElement;
|
|
8
|
+
return n ? n.shadowRoot ? t(n.shadowRoot) : n : null;
|
|
9
|
+
};
|
|
92
10
|
export {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
x as normalizeTwoDigitYear,
|
|
97
|
-
D as parseAnyDigitsSigned,
|
|
98
|
-
d as parseNDigits,
|
|
99
|
-
I as parseNDigitsSigned,
|
|
100
|
-
i as parseNumericPattern,
|
|
101
|
-
p as parseTimezonePattern
|
|
11
|
+
e as arrayIncludes,
|
|
12
|
+
t as getActiveElement,
|
|
13
|
+
c as onSpaceOrEnter
|
|
102
14
|
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { millisecondsInHour as l, millisecondsInMinute as m, millisecondsInSecond as f } from "./index-constants5.js";
|
|
2
|
+
import { numericPatterns as s } from "./index-constants4.js";
|
|
3
|
+
function h(e, r) {
|
|
4
|
+
return e && {
|
|
5
|
+
value: r(e.value),
|
|
6
|
+
rest: e.rest
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function i(e, r) {
|
|
10
|
+
var n = r.match(e);
|
|
11
|
+
return n ? {
|
|
12
|
+
value: parseInt(n[0], 10),
|
|
13
|
+
rest: r.slice(n[0].length)
|
|
14
|
+
} : null;
|
|
15
|
+
}
|
|
16
|
+
function p(e, r) {
|
|
17
|
+
var n = r.match(e);
|
|
18
|
+
if (!n)
|
|
19
|
+
return null;
|
|
20
|
+
if (n[0] === "Z")
|
|
21
|
+
return {
|
|
22
|
+
value: 0,
|
|
23
|
+
rest: r.slice(1)
|
|
24
|
+
};
|
|
25
|
+
var u = n[1] === "+" ? 1 : -1, t = n[2] ? parseInt(n[2], 10) : 0, a = n[3] ? parseInt(n[3], 10) : 0, c = n[5] ? parseInt(n[5], 10) : 0;
|
|
26
|
+
return {
|
|
27
|
+
value: u * (t * l + a * m + c * f),
|
|
28
|
+
rest: r.slice(n[0].length)
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function D(e) {
|
|
32
|
+
return i(s.anyDigitsSigned, e);
|
|
33
|
+
}
|
|
34
|
+
function d(e, r) {
|
|
35
|
+
switch (e) {
|
|
36
|
+
case 1:
|
|
37
|
+
return i(s.singleDigit, r);
|
|
38
|
+
case 2:
|
|
39
|
+
return i(s.twoDigits, r);
|
|
40
|
+
case 3:
|
|
41
|
+
return i(s.threeDigits, r);
|
|
42
|
+
case 4:
|
|
43
|
+
return i(s.fourDigits, r);
|
|
44
|
+
default:
|
|
45
|
+
return i(new RegExp("^\\d{1," + e + "}"), r);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function I(e, r) {
|
|
49
|
+
switch (e) {
|
|
50
|
+
case 1:
|
|
51
|
+
return i(s.singleDigitSigned, r);
|
|
52
|
+
case 2:
|
|
53
|
+
return i(s.twoDigitsSigned, r);
|
|
54
|
+
case 3:
|
|
55
|
+
return i(s.threeDigitsSigned, r);
|
|
56
|
+
case 4:
|
|
57
|
+
return i(s.fourDigitsSigned, r);
|
|
58
|
+
default:
|
|
59
|
+
return i(new RegExp("^-?\\d{1," + e + "}"), r);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function w(e) {
|
|
63
|
+
switch (e) {
|
|
64
|
+
case "morning":
|
|
65
|
+
return 4;
|
|
66
|
+
case "evening":
|
|
67
|
+
return 17;
|
|
68
|
+
case "pm":
|
|
69
|
+
case "noon":
|
|
70
|
+
case "afternoon":
|
|
71
|
+
return 12;
|
|
72
|
+
case "am":
|
|
73
|
+
case "midnight":
|
|
74
|
+
case "night":
|
|
75
|
+
default:
|
|
76
|
+
return 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function x(e, r) {
|
|
80
|
+
var n = r > 0, u = n ? r : 1 - r, t;
|
|
81
|
+
if (u <= 50)
|
|
82
|
+
t = e || 100;
|
|
83
|
+
else {
|
|
84
|
+
var a = u + 50, c = Math.floor(a / 100) * 100, o = e >= a % 100;
|
|
85
|
+
t = e + c - (o ? 100 : 0);
|
|
86
|
+
}
|
|
87
|
+
return n ? t : 1 - t;
|
|
88
|
+
}
|
|
89
|
+
function P(e) {
|
|
90
|
+
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
w as dayPeriodEnumToHours,
|
|
94
|
+
P as isLeapYearIndex,
|
|
95
|
+
h as mapValue,
|
|
96
|
+
x as normalizeTwoDigitYear,
|
|
97
|
+
D as parseAnyDigitsSigned,
|
|
98
|
+
d as parseNDigits,
|
|
99
|
+
I as parseNDigitsSigned,
|
|
100
|
+
i as parseNumericPattern,
|
|
101
|
+
p as parseTimezonePattern
|
|
102
|
+
};
|
package/dist/index-utils3.js
CHANGED
|
@@ -1,21 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (e
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
const d = (e, t, n) => n <= t ? 0 : Math.max(0, Math.min(100, (e - t) / (n - t) * 100)), l = (e) => `calc(var(--benchmark-gauge-marker-inset, 20px) + ${e / 100} * (100% - 2 * var(--benchmark-gauge-marker-inset, 20px)))`, g = (e) => e >= 100 ? "0px" : `calc(${1 - e / 100} * (100% - 2 * var(--benchmark-gauge-marker-inset, 20px)))`, m = (e) => new Intl.NumberFormat("en", {
|
|
2
|
+
notation: "compact",
|
|
3
|
+
maximumSignificantDigits: 3
|
|
4
|
+
}).format(e), o = ["var(--e500)", "var(--a2900)", "var(--s400)"], h = ({
|
|
5
|
+
markerColor: e,
|
|
6
|
+
rankIndex: t,
|
|
7
|
+
rankCount: n,
|
|
8
|
+
colorByRank: c,
|
|
9
|
+
rankColors: r
|
|
10
|
+
}) => {
|
|
11
|
+
const u = "var(--n400)";
|
|
12
|
+
if (e) return e;
|
|
13
|
+
if (c) {
|
|
14
|
+
const a = r != null && r.length ? r : o;
|
|
15
|
+
if (!a.length)
|
|
16
|
+
return u;
|
|
17
|
+
const i = Math.round(t / Math.max(n - 1, 1) * (a.length - 1));
|
|
18
|
+
return a[Math.max(0, Math.min(i, a.length - 1))] ?? u;
|
|
19
|
+
}
|
|
20
|
+
return u;
|
|
21
|
+
}, v = ({
|
|
22
|
+
showLabels: e,
|
|
23
|
+
startLabel: t,
|
|
24
|
+
endLabel: n,
|
|
25
|
+
min: c,
|
|
26
|
+
max: r,
|
|
27
|
+
compactLabels: u = !1
|
|
28
|
+
}) => {
|
|
29
|
+
if (e === !1)
|
|
30
|
+
return {
|
|
31
|
+
startLabel: void 0,
|
|
32
|
+
endLabel: void 0
|
|
33
|
+
};
|
|
34
|
+
const a = u ? m : String, i = (s, f) => {
|
|
35
|
+
if (s !== null)
|
|
36
|
+
return s !== void 0 ? s : e ? a(f) : void 0;
|
|
37
|
+
};
|
|
38
|
+
return {
|
|
39
|
+
startLabel: i(t, c),
|
|
40
|
+
endLabel: i(n, r)
|
|
41
|
+
};
|
|
42
|
+
};
|
|
19
43
|
export {
|
|
20
|
-
|
|
44
|
+
o as DEFAULT_RANK_COLORS,
|
|
45
|
+
g as fillClipInset,
|
|
46
|
+
l as markerPosition,
|
|
47
|
+
v as resolveLabels,
|
|
48
|
+
h as resolveMarkerColor,
|
|
49
|
+
d as valueToPercent
|
|
21
50
|
};
|
package/dist/index-utils4.js
CHANGED
|
@@ -1,66 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return new Promise(function(t, r) {
|
|
19
|
-
var e = function() {
|
|
20
|
-
return r(new Error("Could not load remote twitter widgets js"));
|
|
21
|
-
};
|
|
22
|
-
c.ready(a, {
|
|
23
|
-
success: function() {
|
|
24
|
-
var n = window[f];
|
|
25
|
-
(!n || !n.widgets) && e(), t(n.widgets);
|
|
26
|
-
},
|
|
27
|
-
error: e
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function v(t, r) {
|
|
32
|
-
t && t.querySelectorAll("*").forEach(function(e) {
|
|
33
|
-
e.hasAttribute(r) && e.remove();
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function u(t, r) {
|
|
37
|
-
return t === r ? t !== 0 || r !== 0 || 1 / t === 1 / r : t !== t && r !== r;
|
|
38
|
-
}
|
|
39
|
-
function w(t, r) {
|
|
40
|
-
if (u(t, r))
|
|
41
|
-
return !0;
|
|
42
|
-
if (typeof t != "object" || t === null || typeof r != "object" || r === null)
|
|
43
|
-
return !1;
|
|
44
|
-
var e = Object.keys(t), o = Object.keys(r);
|
|
45
|
-
if (e.length !== o.length)
|
|
46
|
-
return !1;
|
|
47
|
-
for (var n = 0; n < e.length; n++)
|
|
48
|
-
if (!Object.prototype.hasOwnProperty.call(r, e[n]) || !u(t[e[n]], r[e[n]]))
|
|
49
|
-
return !1;
|
|
50
|
-
return !0;
|
|
51
|
-
}
|
|
52
|
-
function y(t) {
|
|
53
|
-
var r = s();
|
|
54
|
-
return w(t, r.current) || (r.current = t), r.current;
|
|
55
|
-
}
|
|
56
|
-
function O(t) {
|
|
57
|
-
return typeof t == "object" ? i({}, t) : t;
|
|
1
|
+
function n(i) {
|
|
2
|
+
if (!i) return;
|
|
3
|
+
const e = i.toLowerCase();
|
|
4
|
+
if (e.includes("facebook.com") || e.includes("fb.com"))
|
|
5
|
+
return "facebook";
|
|
6
|
+
if (e.includes("instagram.com"))
|
|
7
|
+
return "instagram";
|
|
8
|
+
if (e.includes("youtube.com") || e.includes("youtu.be"))
|
|
9
|
+
return "youtube";
|
|
10
|
+
if (e.includes("linkedin.com"))
|
|
11
|
+
return "linkedin";
|
|
12
|
+
if (e.includes("pinterest.com") || e.includes("pin.it"))
|
|
13
|
+
return "pinterest";
|
|
14
|
+
if (e.includes("tiktok.com"))
|
|
15
|
+
return "tiktok";
|
|
16
|
+
if (e.includes("twitter.com") || e.includes("x.com"))
|
|
17
|
+
return "twitter";
|
|
58
18
|
}
|
|
59
19
|
export {
|
|
60
|
-
|
|
61
|
-
O as cloneShallow,
|
|
62
|
-
v as removeChildrenWithAttribute,
|
|
63
|
-
h as twLoad,
|
|
64
|
-
g as twWidgetFactory,
|
|
65
|
-
y as useShallowCompareMemoize
|
|
20
|
+
n as detectNetworkFromUrl
|
|
66
21
|
};
|
package/dist/index-utils5.js
CHANGED
|
@@ -1,18 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import c from "./index-loadjs.umd.js";
|
|
2
|
+
import { useRef as s } from "react";
|
|
3
|
+
function i() {
|
|
4
|
+
return i = Object.assign || function(t) {
|
|
5
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
6
|
+
var e = arguments[r];
|
|
7
|
+
for (var o in e)
|
|
8
|
+
Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
}, i.apply(this, arguments);
|
|
12
|
+
}
|
|
13
|
+
var l = "https://platform.twitter.com/widgets.js", f = "twttr", a = f, m = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
14
|
+
function h() {
|
|
15
|
+
c(l, a);
|
|
16
|
+
}
|
|
17
|
+
function g() {
|
|
18
|
+
return new Promise(function(t, r) {
|
|
19
|
+
var e = function() {
|
|
20
|
+
return r(new Error("Could not load remote twitter widgets js"));
|
|
21
|
+
};
|
|
22
|
+
c.ready(a, {
|
|
23
|
+
success: function() {
|
|
24
|
+
var n = window[f];
|
|
25
|
+
(!n || !n.widgets) && e(), t(n.widgets);
|
|
26
|
+
},
|
|
27
|
+
error: e
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function v(t, r) {
|
|
32
|
+
t && t.querySelectorAll("*").forEach(function(e) {
|
|
33
|
+
e.hasAttribute(r) && e.remove();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function u(t, r) {
|
|
37
|
+
return t === r ? t !== 0 || r !== 0 || 1 / t === 1 / r : t !== t && r !== r;
|
|
38
|
+
}
|
|
39
|
+
function w(t, r) {
|
|
40
|
+
if (u(t, r))
|
|
41
|
+
return !0;
|
|
42
|
+
if (typeof t != "object" || t === null || typeof r != "object" || r === null)
|
|
43
|
+
return !1;
|
|
44
|
+
var e = Object.keys(t), o = Object.keys(r);
|
|
45
|
+
if (e.length !== o.length)
|
|
46
|
+
return !1;
|
|
47
|
+
for (var n = 0; n < e.length; n++)
|
|
48
|
+
if (!Object.prototype.hasOwnProperty.call(r, e[n]) || !u(t[e[n]], r[e[n]]))
|
|
49
|
+
return !1;
|
|
50
|
+
return !0;
|
|
51
|
+
}
|
|
52
|
+
function y(t) {
|
|
53
|
+
var r = s();
|
|
54
|
+
return w(t, r.current) || (r.current = t), r.current;
|
|
55
|
+
}
|
|
56
|
+
function O(t) {
|
|
57
|
+
return typeof t == "object" ? i({}, t) : t;
|
|
14
58
|
}
|
|
15
59
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
60
|
+
m as canUseDOM,
|
|
61
|
+
O as cloneShallow,
|
|
62
|
+
v as removeChildrenWithAttribute,
|
|
63
|
+
h as twLoad,
|
|
64
|
+
g as twWidgetFactory,
|
|
65
|
+
y as useShallowCompareMemoize
|
|
18
66
|
};
|