@bynder/compact-view 5.2.2 → 5.2.4
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/AccessToken2.js +1 -1
- package/ActiveFilters.js +49 -50
- package/AddMedia.js +19 -18
- package/Advanced.js +13 -13
- package/App.js +60 -59
- package/Arrow.js +1 -1
- package/AssetFilter.js +38 -38
- package/AssetItem.js +10 -17
- package/AssetList.js +5 -5
- package/AssetTypeItem.js +21 -21
- package/AssetsView.js +13 -13
- package/Axios2.js +82 -76
- package/AxiosError.js +36 -35
- package/ButtonAction.js +1 -1
- package/CanceledError.js +15 -8
- package/Card.js +1 -1
- package/Chip.js +1 -1
- package/CollectionCard.js +22 -22
- package/CollectionItem.js +9 -9
- package/CollectionList.js +5 -5
- package/CollectionView.js +11 -11
- package/ColorPicker.js +1 -1
- package/ColorPickerSolid.js +3 -3
- package/ColorPickerWithOpacity.js +3 -3
- package/Component.js +158 -0
- package/Component2.js +4 -0
- package/ConfigContext.js +7 -8
- package/Container.js +1 -1
- package/ContextAction.js +1 -1
- package/ControlGroup.js +6 -6
- package/Dat.js +33 -32
- package/DatDropdownItem.js +1 -1
- package/DesignSystemProvider.js +7 -7
- package/DirectionSelect.js +11 -10
- package/DomainInput.js +19 -11
- package/Draggable.js +337 -0
- package/Draggable2.js +4 -0
- package/DraggableCore.js +312 -0
- package/DraggableCore2.js +4 -0
- package/Dropdown.js +37 -37
- package/Dropdown2.js +1 -1
- package/DropdownListItem.js +1 -1
- package/FieldSelect.js +19 -17
- package/FileSelector.js +38 -37
- package/FontPicker.js +1 -1
- package/Form.js +1 -1
- package/Header.js +5 -4
- package/HttpStatusCode.js +7 -1
- package/InfiniteScroll.js +1 -1
- package/InlineBanner.js +1 -1
- package/Input.js +1 -1
- package/InterceptorManager.js +2 -1
- package/Item.js +8 -8
- package/Item4.js +2 -2
- package/LeftArrow.js +1 -1
- package/ListItem2.js +1 -1
- package/ModalBase.js +15 -15
- package/NoResults.js +1 -1
- package/Option_new.js +36 -29
- package/ReactPropTypesSecret.js +10 -0
- package/RightArrow.js +1 -1
- package/SearchInput.js +1 -1
- package/SearchInput2.js +1 -1
- package/SelectionFooter.js +41 -31
- package/Shield.js +2 -2
- package/Smartfilters_new.js +107 -98
- package/StatefulAssetList.js +50 -50
- package/StoreInitializer.js +32 -16
- package/SwitchNLS.js +1 -1
- package/TagItem.js +15 -15
- package/Tags.js +1 -1
- package/Toolbar.js +23 -20
- package/Tooltip2.js +1 -1
- package/ViewSwitch.js +17 -15
- package/_commonjsHelpers.js +28 -3
- package/adapters.js +54 -42
- package/api/filterAssets.d.ts +1 -1
- package/api/getAssets.d.ts +1 -1
- package/api/getFilters.d.ts +1 -1
- package/api/rest/index.d.ts +1 -1
- package/api/rest/types.d.ts +1 -1
- package/api2.js +1 -1
- package/asset.type.js +1 -1
- package/axios.js +1 -1
- package/bodyScrollLock.esm.js +68 -0
- package/buildURL.js +13 -15
- package/checkGlobals.js +1 -1
- package/cjs.js +7 -0
- package/cjs2.js +15 -0
- package/cjs3.js +4 -0
- package/clsx.m.js +6 -0
- package/clsx.m2.js +15 -0
- package/combineMetaproperties.js +3 -1
- package/composeSignals.js +1 -1
- package/cookieStore.js +1 -1
- package/cookies.js +13 -11
- package/currentScopes.js +1 -1
- package/data.js +1 -1
- package/devUtils.js +1 -1
- package/dispatchRequest.js +5 -5
- package/domFns.js +151 -0
- package/domFns2.js +4 -0
- package/factoryWithThrowingShims.js +52 -0
- package/fetch2.js +156 -128
- package/filter/AssetFilterContext.d.ts +3 -3
- package/getPrefix.js +35 -0
- package/getPrefix2.js +4 -0
- package/goober.modern.js +75 -0
- package/handlers.js +1 -1
- package/iconBase.js +56 -0
- package/iconContext.js +12 -0
- package/iconsManifest.js +222 -0
- package/index-esm.js +1 -4
- package/index.browser.js +1 -1
- package/index.m.js +9 -0
- package/index.m2.js +17 -0
- package/index10.js +1 -1
- package/index11.js +181 -15
- package/index112.js +1 -1
- package/index12.js +313 -36
- package/index13.js +5 -2430
- package/index14.js +3 -557
- package/index15.js +15 -55
- package/index16.js +3 -2
- package/index17.js +3 -87
- package/index18.js +36 -7
- package/index19.js +3 -60
- package/index20.js +2429 -12
- package/index21.js +557 -10
- package/index22.js +1 -1
- package/index23.js +119 -6
- package/index24.js +39 -7
- package/index25.js +2 -5
- package/index26.js +86 -9
- package/index27.js +55 -8
- package/index28.js +6 -636
- package/index29.js +8692 -74
- package/index3.js +1684 -5
- package/index30.js +2 -5
- package/index31.js +4 -20
- package/index310.js +2 -0
- package/index32.js +11 -2
- package/index33.js +5083 -4
- package/index34.js +2 -18
- package/index35.js +59 -5
- package/index36.js +2 -2
- package/index37.js +13 -11
- package/index38.js +46 -10
- package/index39.js +6 -12
- package/index4.js +5 -1684
- package/index40.js +8 -11
- package/index41.js +26 -18
- package/index42.js +2 -64
- package/index43.js +63 -5
- package/index44.js +9 -55
- package/index45.js +7 -67
- package/index46.js +8 -31
- package/index47.js +5 -11
- package/index48.js +10 -121
- package/index49.js +9 -86
- package/index5.js +215 -23
- package/index50.js +636 -7
- package/index51.js +74 -11
- package/index52.js +4 -13
- package/index53.js +19 -13
- package/index54.js +4 -6
- package/index55.js +18 -7
- package/index56.js +5 -14
- package/index57.js +10 -28
- package/index58.js +10 -15
- package/index59.js +15 -0
- package/index6.js +250 -299
- package/index60.js +13 -0
- package/index61.js +21 -0
- package/index62.js +8 -0
- package/index63.js +57 -0
- package/index64.js +4 -0
- package/index65.js +69 -0
- package/index66.js +33 -0
- package/index67.js +13 -0
- package/index68.js +123 -0
- package/index69.js +88 -0
- package/index7.js +25 -2
- package/index70.js +10 -0
- package/index71.js +13 -0
- package/index72.js +13 -225
- package/index73.js +16 -0
- package/index74.js +9 -0
- package/index75.js +228 -0
- package/index76.js +9 -0
- package/index77.js +17 -0
- package/index78.js +31 -0
- package/index79.js +18 -0
- package/index8.js +1537 -1536
- package/index9.js +1 -1
- package/isAbsoluteURL.js +1 -1
- package/isURLSameOrigin.js +1 -1
- package/localization.js +15 -15
- package/log.js +14 -0
- package/log2.js +4 -0
- package/matchRequestUrl.js +1 -1
- package/mergeConfig.js +37 -32
- package/notify.js +2 -2
- package/package.json +1 -1
- package/positionFns.js +101 -0
- package/positionFns2.js +4 -0
- package/react-laag.esm.js +957 -0
- package/react.js +8 -8
- package/react2.js +9 -9
- package/resolveConfig.js +23 -23
- package/select/add-media/AddMedia.d.ts +3 -1
- package/select/current-selection/SelectedItems.d.ts +1 -1
- package/shims.js +29 -0
- package/shims2.js +4 -0
- package/store/StoreInitializer.d.ts +5 -1
- package/store/useAssetFilterStore.d.ts +55 -0
- package/store/useSelectionStore.d.ts +47 -0
- package/styled-components.browser.esm.js +2 -2
- package/throttle.js +1 -1
- package/toURLEncodedForm.js +11 -10
- package/tokenExpirationHelper.js +1 -1
- package/transformData.js +1 -1
- package/transitional.js +4 -3
- package/useAssetFilterStore.js +152 -0
- package/useDatStore.js +1 -1
- package/useEffectEvent.js +7 -7
- package/useFonts.js +1 -1
- package/useOrderingStore.js +1 -1
- package/useRouterStore.js +1 -1
- package/useSearchStore.js +1 -1
- package/useSelectionStore.js +131 -0
- package/useSimilaritySearchStore.js +1 -1
- package/useTranslate.js +1 -1
- package/utils/combineMetaproperties.d.ts +2 -0
- package/utils6.js +160 -118
- package/xhr.js +47 -46
- package/AssetFilterContext.js +0 -161
- package/Middleware.js +0 -49
- package/SelectionContext.js +0 -143
- package/middleware2.js +0 -177
- package/select/SelectionContext.d.ts +0 -30
package/index40.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import f from "./
|
|
3
|
-
import
|
|
4
|
-
import i from "./index25.js";
|
|
5
|
-
var u = 6048e5;
|
|
6
|
-
function p(t, r) {
|
|
7
|
-
i(1, arguments);
|
|
8
|
-
var e = m(t), a = f(e, r).getTime() - o(e, r).getTime();
|
|
9
|
-
return Math.round(a / u) + 1;
|
|
10
|
-
}
|
|
1
|
+
import { IconsManifest as t } from "./iconsManifest.js";
|
|
2
|
+
import { GenIcon as r, IconBase as f } from "./iconBase.js";
|
|
3
|
+
import { DefaultContext as c, IconContext as I } from "./iconContext.js";
|
|
11
4
|
export {
|
|
12
|
-
|
|
5
|
+
c as DefaultContext,
|
|
6
|
+
r as GenIcon,
|
|
7
|
+
f as IconBase,
|
|
8
|
+
I as IconContext,
|
|
9
|
+
t as IconsManifest
|
|
13
10
|
};
|
package/index41.js
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
var t, o;
|
|
2
|
+
function c() {
|
|
3
|
+
return o || (o = 1, t = function() {
|
|
4
|
+
var e = document.getSelection();
|
|
5
|
+
if (!e.rangeCount)
|
|
6
|
+
return function() {
|
|
7
|
+
};
|
|
8
|
+
for (var n = document.activeElement, a = [], r = 0; r < e.rangeCount; r++)
|
|
9
|
+
a.push(e.getRangeAt(r));
|
|
10
|
+
switch (n.tagName.toUpperCase()) {
|
|
11
|
+
// .toUpperCase handles XHTML
|
|
12
|
+
case "INPUT":
|
|
13
|
+
case "TEXTAREA":
|
|
14
|
+
n.blur();
|
|
15
|
+
break;
|
|
16
|
+
default:
|
|
17
|
+
n = null;
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
return e.removeAllRanges(), function() {
|
|
21
|
+
e.type === "Caret" && e.removeAllRanges(), e.rangeCount || a.forEach(function(u) {
|
|
22
|
+
e.addRange(u);
|
|
23
|
+
}), n && n.focus();
|
|
24
|
+
};
|
|
25
|
+
}), t;
|
|
18
26
|
}
|
|
19
27
|
export {
|
|
20
|
-
|
|
28
|
+
c as __require
|
|
21
29
|
};
|
package/index42.js
CHANGED
|
@@ -1,66 +1,4 @@
|
|
|
1
|
-
var
|
|
2
|
-
function l(t, r) {
|
|
3
|
-
switch (r) {
|
|
4
|
-
case "s":
|
|
5
|
-
return t;
|
|
6
|
-
case "d":
|
|
7
|
-
case "i":
|
|
8
|
-
return Number(t);
|
|
9
|
-
case "j":
|
|
10
|
-
return JSON.stringify(t);
|
|
11
|
-
case "o": {
|
|
12
|
-
if (typeof t == "string")
|
|
13
|
-
return t;
|
|
14
|
-
const e = JSON.stringify(t);
|
|
15
|
-
return e === "{}" || e === "[]" || /^\[object .+?\]$/.test(e) ? t : e;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function s(t, ...r) {
|
|
20
|
-
if (r.length === 0)
|
|
21
|
-
return t;
|
|
22
|
-
let e = 0, n = t.replace(
|
|
23
|
-
o,
|
|
24
|
-
(a, c, i, f) => {
|
|
25
|
-
const u = r[e], h = l(u, f);
|
|
26
|
-
return c ? a : (e++, h);
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
return e < r.length && (n += ` ${r.slice(e).join(" ")}`), n = n.replace(/%{2,2}/g, "%"), n;
|
|
30
|
-
}
|
|
31
|
-
var g = 2;
|
|
32
|
-
function v(t) {
|
|
33
|
-
if (!t.stack)
|
|
34
|
-
return;
|
|
35
|
-
const r = t.stack.split(`
|
|
36
|
-
`);
|
|
37
|
-
r.splice(1, g), t.stack = r.join(`
|
|
38
|
-
`);
|
|
39
|
-
}
|
|
40
|
-
var S = class extends Error {
|
|
41
|
-
constructor(t, ...r) {
|
|
42
|
-
super(t), this.message = t, this.name = "Invariant Violation", this.message = s(t, ...r), v(this);
|
|
43
|
-
}
|
|
44
|
-
}, j = (t, r, ...e) => {
|
|
45
|
-
if (!t)
|
|
46
|
-
throw new S(r, ...e);
|
|
47
|
-
};
|
|
48
|
-
j.as = (t, r, e, ...n) => {
|
|
49
|
-
if (!r) {
|
|
50
|
-
const a = n.length === 0 ? e : s(e, ...n);
|
|
51
|
-
let c;
|
|
52
|
-
try {
|
|
53
|
-
c = Reflect.construct(t, [
|
|
54
|
-
a
|
|
55
|
-
]);
|
|
56
|
-
} catch {
|
|
57
|
-
c = t(a);
|
|
58
|
-
}
|
|
59
|
-
throw c;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
1
|
+
var p = { exports: {} };
|
|
62
2
|
export {
|
|
63
|
-
|
|
64
|
-
s as format,
|
|
65
|
-
j as invariant
|
|
3
|
+
p as __module
|
|
66
4
|
};
|
package/index43.js
CHANGED
|
@@ -1,8 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var o = /(%?)(%([sdijo]))/g;
|
|
2
|
+
function l(t, r) {
|
|
3
|
+
switch (r) {
|
|
4
|
+
case "s":
|
|
5
|
+
return t;
|
|
6
|
+
case "d":
|
|
7
|
+
case "i":
|
|
8
|
+
return Number(t);
|
|
9
|
+
case "j":
|
|
10
|
+
return JSON.stringify(t);
|
|
11
|
+
case "o": {
|
|
12
|
+
if (typeof t == "string")
|
|
13
|
+
return t;
|
|
14
|
+
const e = JSON.stringify(t);
|
|
15
|
+
return e === "{}" || e === "[]" || /^\[object .+?\]$/.test(e) ? t : e;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
5
18
|
}
|
|
19
|
+
function s(t, ...r) {
|
|
20
|
+
if (r.length === 0)
|
|
21
|
+
return t;
|
|
22
|
+
let e = 0, n = t.replace(
|
|
23
|
+
o,
|
|
24
|
+
(a, c, i, f) => {
|
|
25
|
+
const u = r[e], h = l(u, f);
|
|
26
|
+
return c ? a : (e++, h);
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
return e < r.length && (n += ` ${r.slice(e).join(" ")}`), n = n.replace(/%{2,2}/g, "%"), n;
|
|
30
|
+
}
|
|
31
|
+
var g = 2;
|
|
32
|
+
function v(t) {
|
|
33
|
+
if (!t.stack)
|
|
34
|
+
return;
|
|
35
|
+
const r = t.stack.split(`
|
|
36
|
+
`);
|
|
37
|
+
r.splice(1, g), t.stack = r.join(`
|
|
38
|
+
`);
|
|
39
|
+
}
|
|
40
|
+
var S = class extends Error {
|
|
41
|
+
constructor(t, ...r) {
|
|
42
|
+
super(t), this.message = t, this.name = "Invariant Violation", this.message = s(t, ...r), v(this);
|
|
43
|
+
}
|
|
44
|
+
}, j = (t, r, ...e) => {
|
|
45
|
+
if (!t)
|
|
46
|
+
throw new S(r, ...e);
|
|
47
|
+
};
|
|
48
|
+
j.as = (t, r, e, ...n) => {
|
|
49
|
+
if (!r) {
|
|
50
|
+
const a = n.length === 0 ? e : s(e, ...n);
|
|
51
|
+
let c;
|
|
52
|
+
try {
|
|
53
|
+
c = Reflect.construct(t, [
|
|
54
|
+
a
|
|
55
|
+
]);
|
|
56
|
+
} catch {
|
|
57
|
+
c = t(a);
|
|
58
|
+
}
|
|
59
|
+
throw c;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
6
62
|
export {
|
|
7
|
-
|
|
63
|
+
S as InvariantError,
|
|
64
|
+
s as format,
|
|
65
|
+
j as invariant
|
|
8
66
|
};
|
package/index44.js
CHANGED
|
@@ -1,57 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
M: function(t, e) {
|
|
10
|
-
var a = t.getUTCMonth();
|
|
11
|
-
return e === "M" ? String(a + 1) : n(a + 1, 2);
|
|
12
|
-
},
|
|
13
|
-
// Day of the month
|
|
14
|
-
d: function(t, e) {
|
|
15
|
-
return n(t.getUTCDate(), e.length);
|
|
16
|
-
},
|
|
17
|
-
// AM or PM
|
|
18
|
-
a: function(t, e) {
|
|
19
|
-
var a = t.getUTCHours() / 12 >= 1 ? "pm" : "am";
|
|
20
|
-
switch (e) {
|
|
21
|
-
case "a":
|
|
22
|
-
case "aa":
|
|
23
|
-
return a.toUpperCase();
|
|
24
|
-
case "aaa":
|
|
25
|
-
return a;
|
|
26
|
-
case "aaaaa":
|
|
27
|
-
return a[0];
|
|
28
|
-
case "aaaa":
|
|
29
|
-
default:
|
|
30
|
-
return a === "am" ? "a.m." : "p.m.";
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
// Hour [1-12]
|
|
34
|
-
h: function(t, e) {
|
|
35
|
-
return n(t.getUTCHours() % 12 || 12, e.length);
|
|
36
|
-
},
|
|
37
|
-
// Hour [0-23]
|
|
38
|
-
H: function(t, e) {
|
|
39
|
-
return n(t.getUTCHours(), e.length);
|
|
40
|
-
},
|
|
41
|
-
// Minute
|
|
42
|
-
m: function(t, e) {
|
|
43
|
-
return n(t.getUTCMinutes(), e.length);
|
|
44
|
-
},
|
|
45
|
-
// Second
|
|
46
|
-
s: function(t, e) {
|
|
47
|
-
return n(t.getUTCSeconds(), e.length);
|
|
48
|
-
},
|
|
49
|
-
// Fraction of second
|
|
50
|
-
S: function(t, e) {
|
|
51
|
-
var a = e.length, u = t.getUTCMilliseconds(), o = Math.floor(u * Math.pow(10, a - 3));
|
|
52
|
-
return n(o, e.length);
|
|
53
|
-
}
|
|
54
|
-
};
|
|
1
|
+
import m from "./index45.js";
|
|
2
|
+
import a from "./index46.js";
|
|
3
|
+
import i from "./index47.js";
|
|
4
|
+
function d(t, r) {
|
|
5
|
+
i(2, arguments);
|
|
6
|
+
var e = a(t).getTime(), o = m(r);
|
|
7
|
+
return new Date(e + o);
|
|
8
|
+
}
|
|
55
9
|
export {
|
|
56
|
-
|
|
10
|
+
d as default
|
|
57
11
|
};
|
package/index45.js
CHANGED
|
@@ -1,69 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
one: "1 second",
|
|
8
|
-
other: "{{count}} seconds"
|
|
9
|
-
},
|
|
10
|
-
halfAMinute: "half a minute",
|
|
11
|
-
lessThanXMinutes: {
|
|
12
|
-
one: "less than a minute",
|
|
13
|
-
other: "less than {{count}} minutes"
|
|
14
|
-
},
|
|
15
|
-
xMinutes: {
|
|
16
|
-
one: "1 minute",
|
|
17
|
-
other: "{{count}} minutes"
|
|
18
|
-
},
|
|
19
|
-
aboutXHours: {
|
|
20
|
-
one: "about 1 hour",
|
|
21
|
-
other: "about {{count}} hours"
|
|
22
|
-
},
|
|
23
|
-
xHours: {
|
|
24
|
-
one: "1 hour",
|
|
25
|
-
other: "{{count}} hours"
|
|
26
|
-
},
|
|
27
|
-
xDays: {
|
|
28
|
-
one: "1 day",
|
|
29
|
-
other: "{{count}} days"
|
|
30
|
-
},
|
|
31
|
-
aboutXWeeks: {
|
|
32
|
-
one: "about 1 week",
|
|
33
|
-
other: "about {{count}} weeks"
|
|
34
|
-
},
|
|
35
|
-
xWeeks: {
|
|
36
|
-
one: "1 week",
|
|
37
|
-
other: "{{count}} weeks"
|
|
38
|
-
},
|
|
39
|
-
aboutXMonths: {
|
|
40
|
-
one: "about 1 month",
|
|
41
|
-
other: "about {{count}} months"
|
|
42
|
-
},
|
|
43
|
-
xMonths: {
|
|
44
|
-
one: "1 month",
|
|
45
|
-
other: "{{count}} months"
|
|
46
|
-
},
|
|
47
|
-
aboutXYears: {
|
|
48
|
-
one: "about 1 year",
|
|
49
|
-
other: "about {{count}} years"
|
|
50
|
-
},
|
|
51
|
-
xYears: {
|
|
52
|
-
one: "1 year",
|
|
53
|
-
other: "{{count}} years"
|
|
54
|
-
},
|
|
55
|
-
overXYears: {
|
|
56
|
-
one: "over 1 year",
|
|
57
|
-
other: "over {{count}} years"
|
|
58
|
-
},
|
|
59
|
-
almostXYears: {
|
|
60
|
-
one: "almost 1 year",
|
|
61
|
-
other: "almost {{count}} years"
|
|
62
|
-
}
|
|
63
|
-
}, u = function(a, n, o) {
|
|
64
|
-
var e, t = r[a];
|
|
65
|
-
return typeof t == "string" ? e = t : n === 1 ? e = t.one : e = t.other.replace("{{count}}", n.toString()), o != null && o.addSuffix ? o.comparison && o.comparison > 0 ? "in " + e : e + " ago" : e;
|
|
66
|
-
};
|
|
1
|
+
function n(a) {
|
|
2
|
+
if (a === null || a === !0 || a === !1)
|
|
3
|
+
return NaN;
|
|
4
|
+
var e = Number(a);
|
|
5
|
+
return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
|
|
6
|
+
}
|
|
67
7
|
export {
|
|
68
|
-
|
|
8
|
+
n as default
|
|
69
9
|
};
|
package/index46.js
CHANGED
|
@@ -1,33 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
full: "h:mm:ss a zzzz",
|
|
9
|
-
long: "h:mm:ss a z",
|
|
10
|
-
medium: "h:mm:ss a",
|
|
11
|
-
short: "h:mm a"
|
|
12
|
-
}, d = {
|
|
13
|
-
full: "{{date}} 'at' {{time}}",
|
|
14
|
-
long: "{{date}} 'at' {{time}}",
|
|
15
|
-
medium: "{{date}}, {{time}}",
|
|
16
|
-
short: "{{date}}, {{time}}"
|
|
17
|
-
}, o = {
|
|
18
|
-
date: t({
|
|
19
|
-
formats: m,
|
|
20
|
-
defaultWidth: "full"
|
|
21
|
-
}),
|
|
22
|
-
time: t({
|
|
23
|
-
formats: a,
|
|
24
|
-
defaultWidth: "full"
|
|
25
|
-
}),
|
|
26
|
-
dateTime: t({
|
|
27
|
-
formats: d,
|
|
28
|
-
defaultWidth: "full"
|
|
29
|
-
})
|
|
30
|
-
};
|
|
1
|
+
import r from "./typeof.js";
|
|
2
|
+
import o from "./index47.js";
|
|
3
|
+
function a(e) {
|
|
4
|
+
o(1, arguments);
|
|
5
|
+
var t = Object.prototype.toString.call(e);
|
|
6
|
+
return e instanceof Date || r(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
7
|
+
}
|
|
31
8
|
export {
|
|
32
|
-
|
|
9
|
+
a as default
|
|
33
10
|
};
|
package/index47.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tomorrow: "'tomorrow at' p",
|
|
6
|
-
nextWeek: "eeee 'at' p",
|
|
7
|
-
other: "P"
|
|
8
|
-
}, p = function(e, o, r, l) {
|
|
9
|
-
return t[e];
|
|
10
|
-
};
|
|
1
|
+
function n(e, t) {
|
|
2
|
+
if (t.length < e)
|
|
3
|
+
throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
|
|
4
|
+
}
|
|
11
5
|
export {
|
|
12
|
-
|
|
6
|
+
n as default
|
|
13
7
|
};
|
package/index48.js
CHANGED
|
@@ -1,123 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, d = {
|
|
11
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
12
|
-
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
13
|
-
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
14
|
-
}, m = {
|
|
15
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
16
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
17
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
18
|
-
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
19
|
-
}, u = {
|
|
20
|
-
narrow: {
|
|
21
|
-
am: "a",
|
|
22
|
-
pm: "p",
|
|
23
|
-
midnight: "mi",
|
|
24
|
-
noon: "n",
|
|
25
|
-
morning: "morning",
|
|
26
|
-
afternoon: "afternoon",
|
|
27
|
-
evening: "evening",
|
|
28
|
-
night: "night"
|
|
29
|
-
},
|
|
30
|
-
abbreviated: {
|
|
31
|
-
am: "AM",
|
|
32
|
-
pm: "PM",
|
|
33
|
-
midnight: "midnight",
|
|
34
|
-
noon: "noon",
|
|
35
|
-
morning: "morning",
|
|
36
|
-
afternoon: "afternoon",
|
|
37
|
-
evening: "evening",
|
|
38
|
-
night: "night"
|
|
39
|
-
},
|
|
40
|
-
wide: {
|
|
41
|
-
am: "a.m.",
|
|
42
|
-
pm: "p.m.",
|
|
43
|
-
midnight: "midnight",
|
|
44
|
-
noon: "noon",
|
|
45
|
-
morning: "morning",
|
|
46
|
-
afternoon: "afternoon",
|
|
47
|
-
evening: "evening",
|
|
48
|
-
night: "night"
|
|
49
|
-
}
|
|
50
|
-
}, g = {
|
|
51
|
-
narrow: {
|
|
52
|
-
am: "a",
|
|
53
|
-
pm: "p",
|
|
54
|
-
midnight: "mi",
|
|
55
|
-
noon: "n",
|
|
56
|
-
morning: "in the morning",
|
|
57
|
-
afternoon: "in the afternoon",
|
|
58
|
-
evening: "in the evening",
|
|
59
|
-
night: "at night"
|
|
60
|
-
},
|
|
61
|
-
abbreviated: {
|
|
62
|
-
am: "AM",
|
|
63
|
-
pm: "PM",
|
|
64
|
-
midnight: "midnight",
|
|
65
|
-
noon: "noon",
|
|
66
|
-
morning: "in the morning",
|
|
67
|
-
afternoon: "in the afternoon",
|
|
68
|
-
evening: "in the evening",
|
|
69
|
-
night: "at night"
|
|
70
|
-
},
|
|
71
|
-
wide: {
|
|
72
|
-
am: "a.m.",
|
|
73
|
-
pm: "p.m.",
|
|
74
|
-
midnight: "midnight",
|
|
75
|
-
noon: "noon",
|
|
76
|
-
morning: "in the morning",
|
|
77
|
-
afternoon: "in the afternoon",
|
|
78
|
-
evening: "in the evening",
|
|
79
|
-
night: "at night"
|
|
80
|
-
}
|
|
81
|
-
}, h = function(a, v) {
|
|
82
|
-
var n = Number(a), r = n % 100;
|
|
83
|
-
if (r > 20 || r < 10)
|
|
84
|
-
switch (r % 10) {
|
|
85
|
-
case 1:
|
|
86
|
-
return n + "st";
|
|
87
|
-
case 2:
|
|
88
|
-
return n + "nd";
|
|
89
|
-
case 3:
|
|
90
|
-
return n + "rd";
|
|
91
|
-
}
|
|
92
|
-
return n + "th";
|
|
93
|
-
}, b = {
|
|
94
|
-
ordinalNumber: h,
|
|
95
|
-
era: e({
|
|
96
|
-
values: t,
|
|
97
|
-
defaultWidth: "wide"
|
|
98
|
-
}),
|
|
99
|
-
quarter: e({
|
|
100
|
-
values: o,
|
|
101
|
-
defaultWidth: "wide",
|
|
102
|
-
argumentCallback: function(a) {
|
|
103
|
-
return a - 1;
|
|
104
|
-
}
|
|
105
|
-
}),
|
|
106
|
-
month: e({
|
|
107
|
-
values: d,
|
|
108
|
-
defaultWidth: "wide"
|
|
109
|
-
}),
|
|
110
|
-
day: e({
|
|
111
|
-
values: m,
|
|
112
|
-
defaultWidth: "wide"
|
|
113
|
-
}),
|
|
114
|
-
dayPeriod: e({
|
|
115
|
-
values: u,
|
|
116
|
-
defaultWidth: "wide",
|
|
117
|
-
formattingValues: g,
|
|
118
|
-
defaultFormattingWidth: "wide"
|
|
119
|
-
})
|
|
120
|
-
};
|
|
1
|
+
import o from "./index56.js";
|
|
2
|
+
import t from "./index46.js";
|
|
3
|
+
import m from "./index47.js";
|
|
4
|
+
function u(r) {
|
|
5
|
+
if (m(1, arguments), !o(r) && typeof r != "number")
|
|
6
|
+
return !1;
|
|
7
|
+
var e = t(r);
|
|
8
|
+
return !isNaN(Number(e));
|
|
9
|
+
}
|
|
121
10
|
export {
|
|
122
|
-
|
|
11
|
+
u as default
|
|
123
12
|
};
|
package/index49.js
CHANGED
|
@@ -1,88 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}, o = {
|
|
10
|
-
narrow: /^[1234]/i,
|
|
11
|
-
abbreviated: /^q[1234]/i,
|
|
12
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
13
|
-
}, m = {
|
|
14
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
15
|
-
}, u = {
|
|
16
|
-
narrow: /^[jfmasond]/i,
|
|
17
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
18
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
19
|
-
}, h = {
|
|
20
|
-
narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
|
|
21
|
-
any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
|
|
22
|
-
}, c = {
|
|
23
|
-
narrow: /^[smtwf]/i,
|
|
24
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
25
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
26
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
27
|
-
}, P = {
|
|
28
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
29
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
30
|
-
}, f = {
|
|
31
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
32
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
33
|
-
}, l = {
|
|
34
|
-
any: {
|
|
35
|
-
am: /^a/i,
|
|
36
|
-
pm: /^p/i,
|
|
37
|
-
midnight: /^mi/i,
|
|
38
|
-
noon: /^no/i,
|
|
39
|
-
morning: /morning/i,
|
|
40
|
-
afternoon: /afternoon/i,
|
|
41
|
-
evening: /evening/i,
|
|
42
|
-
night: /night/i
|
|
43
|
-
}
|
|
44
|
-
}, v = {
|
|
45
|
-
ordinalNumber: e({
|
|
46
|
-
matchPattern: i,
|
|
47
|
-
parsePattern: n,
|
|
48
|
-
valueCallback: function(t) {
|
|
49
|
-
return parseInt(t, 10);
|
|
50
|
-
}
|
|
51
|
-
}),
|
|
52
|
-
era: a({
|
|
53
|
-
matchPatterns: s,
|
|
54
|
-
defaultMatchWidth: "wide",
|
|
55
|
-
parsePatterns: d,
|
|
56
|
-
defaultParseWidth: "any"
|
|
57
|
-
}),
|
|
58
|
-
quarter: a({
|
|
59
|
-
matchPatterns: o,
|
|
60
|
-
defaultMatchWidth: "wide",
|
|
61
|
-
parsePatterns: m,
|
|
62
|
-
defaultParseWidth: "any",
|
|
63
|
-
valueCallback: function(t) {
|
|
64
|
-
return t + 1;
|
|
65
|
-
}
|
|
66
|
-
}),
|
|
67
|
-
month: a({
|
|
68
|
-
matchPatterns: u,
|
|
69
|
-
defaultMatchWidth: "wide",
|
|
70
|
-
parsePatterns: h,
|
|
71
|
-
defaultParseWidth: "any"
|
|
72
|
-
}),
|
|
73
|
-
day: a({
|
|
74
|
-
matchPatterns: c,
|
|
75
|
-
defaultMatchWidth: "wide",
|
|
76
|
-
parsePatterns: P,
|
|
77
|
-
defaultParseWidth: "any"
|
|
78
|
-
}),
|
|
79
|
-
dayPeriod: a({
|
|
80
|
-
matchPatterns: f,
|
|
81
|
-
defaultMatchWidth: "any",
|
|
82
|
-
parsePatterns: l,
|
|
83
|
-
defaultParseWidth: "any"
|
|
84
|
-
})
|
|
85
|
-
};
|
|
1
|
+
import e from "./index44.js";
|
|
2
|
+
import i from "./index47.js";
|
|
3
|
+
import m from "./index45.js";
|
|
4
|
+
function a(r, o) {
|
|
5
|
+
i(2, arguments);
|
|
6
|
+
var t = m(o);
|
|
7
|
+
return e(r, -t);
|
|
8
|
+
}
|
|
86
9
|
export {
|
|
87
|
-
|
|
10
|
+
a as default
|
|
88
11
|
};
|