@unicom-cloud/utils 0.1.29 → 0.1.30
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/case-name/index.js +1 -1
- package/caseName.js +1 -1
- package/class-name/index.js +1 -1
- package/className.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/clipboardCopy.js +1 -1
- package/constant/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/emoji.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +7 -5
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +1 -1
- package/constant/protocol.js +1 -1
- package/constant/string.js +5 -0
- package/constant/ui.js +1 -1
- package/constant.js +15 -13
- package/content-disposition/index.js +1 -1
- package/contentDisposition.js +1 -1
- package/cookie/index.js +1 -1
- package/cookie/src/api.js +1 -1
- package/cookie/src/assign.js +1 -1
- package/cookie/src/converter.js +1 -1
- package/cookie.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/date.js +1 -1
- package/decimal/decimal.js +1 -1
- package/decimal/index.js +1 -1
- package/decimal.js +1 -1
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/domHelpers.js +1 -1
- package/emitter/index.js +1 -1
- package/emitter/src/index.js +1 -1
- package/emitter.js +1 -1
- package/file/fileToURL.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +40 -28
- package/file.js +1 -1
- package/idb/index.js +1 -1
- package/idb.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/invariant.js +1 -1
- package/is/index.js +135 -128
- package/is.js +25 -24
- package/lunar/index.js +1 -1
- package/lunar/lib/Holiday.js +1 -1
- package/lunar/lib/HolidayUtil.js +1 -1
- package/lunar/lib/I18n.js +1 -1
- package/lunar/lib/JieQi.js +1 -1
- package/lunar/lib/Lunar.js +1 -1
- package/lunar/lib/LunarMonth.js +1 -1
- package/lunar/lib/LunarTime.js +1 -1
- package/lunar/lib/LunarUtil.js +1 -1
- package/lunar/lib/LunarYear.js +1 -1
- package/lunar/lib/ShouXingUtil.js +1 -1
- package/lunar/lib/Solar.js +1 -1
- package/lunar/lib/SolarHalfYear.js +1 -1
- package/lunar/lib/SolarMonth.js +1 -1
- package/lunar/lib/SolarSeason.js +1 -1
- package/lunar/lib/SolarUtil.js +1 -1
- package/lunar/lib/SolarWeek.js +1 -1
- package/lunar/lib/SolarYear.js +1 -1
- package/lunar/lib/index.js +1 -1
- package/lunar.js +1 -1
- package/math/index.js +1 -1
- package/math.js +1 -1
- package/md5/index.js +1 -1
- package/md5.js +1 -1
- package/mock/MockWebSocket.js +23 -22
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mock.js +1 -1
- package/normalize-wheel/ExecutionEnvironment.js +1 -1
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -1
- package/normalizeWheel.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/numberToChinese.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/nzh.js +1 -1
- package/object-keys-sort/index.js +1 -1
- package/object-prototype-to-string-call/index.js +6 -4
- package/objectKeysSort.js +1 -1
- package/objectPrototypeToStringCall.js +4 -3
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/simplified.js +1 -1
- package/pinyin/src/core.js +1 -1
- package/pinyin/src/simplified.js +1 -1
- package/pinyin/src/simplified_dict.js +1 -1
- package/pinyin/src/traditional.js +1 -1
- package/pinyin/src/traditional_dict.js +1 -1
- package/pinyin/traditional.js +1 -1
- package/pinyin.js +1 -1
- package/query-string/base.js +1 -1
- package/query-string/index.js +1 -1
- package/query-string/splitOnFirst.js +1 -1
- package/queryString.js +1 -1
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +1 -1
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/random.js +1 -1
- package/screenfull/index.js +1 -1
- package/screenfull.js +1 -1
- package/sleep/index.js +1 -1
- package/sleep.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +1 -1
- package/snapdom/src/core/cache.js +1 -1
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +1 -1
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.js +1 -1
- package/snapdom/src/core/prepare.js +1 -1
- package/snapdom/src/exporters/download.js +1 -1
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +1 -1
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +1 -1
- package/snapdom/src/modules/iconFonts.js +1 -1
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pseudo.js +1 -1
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +1 -1
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +1 -1
- package/snapdom.js +1 -1
- package/string/index.js +12 -4
- package/string.js +8 -3
- package/tinycolor/index.js +1 -1
- package/tinycolor/src/conversion.js +1 -1
- package/tinycolor/src/css-color-names.js +1 -1
- package/tinycolor/src/format-input.js +1 -1
- package/tinycolor/src/from-ratio.js +1 -1
- package/tinycolor/src/index.js +1 -1
- package/tinycolor/src/random.js +1 -1
- package/tinycolor/src/readability.js +1 -1
- package/tinycolor/src/to-ms-filter.js +1 -1
- package/tinycolor/src/utils.js +1 -1
- package/tinycolor.js +1 -1
- package/tree/index.js +1 -1
- package/tree/search/index.js +1 -1
- package/tree.js +1 -1
- package/tween/index.js +1 -1
- package/tween/src/easing.js +1 -1
- package/tween/src/tween.js +1 -1
- package/tween.js +1 -1
- package/types/constant/index.d.ts +1 -0
- package/types/constant/string.d.ts +1 -0
- package/types/file/saveAs.d.ts +1 -1
- package/types/is/index.d.ts +9 -8
- package/types/object-prototype-to-string-call/index.d.ts +1 -1
- package/types/string/index.d.ts +1 -0
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/uiColor.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/url-toolkit/src/url-toolkit.js +1 -1
- package/urlToolkit.js +1 -1
- package/validate/index.js +1 -1
- package/validate/src/index.js +1 -1
- package/validate/src/locale/en-US.js +1 -1
- package/validate/src/locale/zh-CN.js +1 -1
- package/validate/src/message.js +1 -1
- package/validate/src/rules/array.js +1 -1
- package/validate/src/rules/base.js +1 -1
- package/validate/src/rules/boolean.js +1 -1
- package/validate/src/rules/custom.js +1 -1
- package/validate/src/rules/number.js +1 -1
- package/validate/src/rules/object.js +1 -1
- package/validate/src/rules/string.js +1 -1
- package/validate/src/rules/type.js +1 -1
- package/validate/src/utils.js +1 -1
- package/validate.js +1 -1
- package/version/index.js +1 -1
- package/version.js +1 -1
- package/xlsx/index.js +1 -1
- package/xlsx/xlsx.js +1764 -1767
- package/xlsx.js +1 -1
package/dom-helpers/position.js
CHANGED
package/dom-helpers/prepend.js
CHANGED
package/dom-helpers/reflow.js
CHANGED
package/dom-helpers/remove.js
CHANGED
package/dom-helpers/scrollTo.js
CHANGED
package/dom-helpers/scrollTop.js
CHANGED
package/dom-helpers/siblings.js
CHANGED
package/dom-helpers/text.js
CHANGED
package/dom-helpers/types.js
CHANGED
package/dom-helpers/width.js
CHANGED
package/domHelpers.js
CHANGED
package/emitter/index.js
CHANGED
package/emitter/src/index.js
CHANGED
package/emitter.js
CHANGED
package/file/fileToURL.js
CHANGED
package/file/index.js
CHANGED
package/file/saveAs.js
CHANGED
|
@@ -1,35 +1,47 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
const e = o();
|
|
8
|
-
e.open("GET", t), e.responseType = "blob", e.onload = () => {
|
|
9
|
-
c(e.response, n);
|
|
10
|
-
}, e.onerror = () => {
|
|
11
|
-
console.error("无法下载文件");
|
|
12
|
-
}, e.send();
|
|
13
|
-
}
|
|
14
|
-
function a(t) {
|
|
15
|
-
const n = o();
|
|
16
|
-
n.open("HEAD", t, !1);
|
|
1
|
+
/* 2025-11-19 09:08:12 */
|
|
2
|
+
import { isFile as i, isBlob as s } from "../is/index.js";
|
|
3
|
+
import { fileToURL as l } from "./fileToURL.js";
|
|
4
|
+
import c from "lodash/isPlainObject.js";
|
|
5
|
+
import f from "lodash/isString.js";
|
|
6
|
+
async function m(r, n) {
|
|
17
7
|
try {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
const e = await fetch(r);
|
|
9
|
+
if (!e.ok)
|
|
10
|
+
throw new Error(`HTTP ${e.status}`);
|
|
11
|
+
const o = await e.blob();
|
|
12
|
+
d(o, n);
|
|
13
|
+
} catch {
|
|
14
|
+
console.error("无法下载文件");
|
|
21
15
|
}
|
|
22
|
-
return n.status >= 200 && n.status <= 299;
|
|
23
16
|
}
|
|
24
|
-
async function
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
17
|
+
async function u(r) {
|
|
18
|
+
return (await fetch(r, {
|
|
19
|
+
method: "HEAD",
|
|
20
|
+
mode: "cors"
|
|
21
|
+
})).ok;
|
|
22
|
+
}
|
|
23
|
+
async function d(r, n) {
|
|
24
|
+
let e = { url: r, name: n };
|
|
25
|
+
c(r) && (e = { ...r });
|
|
26
|
+
const o = e.url;
|
|
27
|
+
if (!o) return;
|
|
28
|
+
const t = document.createElement("a");
|
|
29
|
+
if (t.rel = "noopener noreferrer", f(o))
|
|
30
|
+
t.href = o, t.origin === location.origin || (await u(o) ? await m(o, e.name) : t.target = "_blank");
|
|
31
|
+
else if (i(o))
|
|
32
|
+
t.href = await l(o), e.name ||= o.name;
|
|
33
|
+
else if (s(o)) {
|
|
34
|
+
const a = URL.createObjectURL(o);
|
|
35
|
+
t.href = a, setTimeout(() => {
|
|
36
|
+
URL.revokeObjectURL(a);
|
|
37
|
+
}, e?.revokeObjectURL_Delay ?? 4e4);
|
|
38
|
+
} else
|
|
39
|
+
return;
|
|
40
|
+
e.name ||= "download", t.download = e.name, setTimeout(() => {
|
|
41
|
+
t.dispatchEvent(new MouseEvent("click"));
|
|
30
42
|
}, 0);
|
|
31
43
|
}
|
|
32
44
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
d as default,
|
|
46
|
+
d as saveAs
|
|
35
47
|
};
|
package/file.js
CHANGED
package/idb/index.js
CHANGED
package/idb.js
CHANGED
package/index.js
CHANGED
package/invariant/index.js
CHANGED
package/invariant.js
CHANGED
package/is/index.js
CHANGED
|
@@ -1,154 +1,161 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
import { default as
|
|
3
|
-
import
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
1
|
+
/* 2025-11-19 09:08:12 */
|
|
2
|
+
import { default as q } from "lodash/isArguments.js";
|
|
3
|
+
import a from "lodash/isArray.js";
|
|
4
|
+
import { default as _ } from "lodash/isArray.js";
|
|
5
|
+
import { default as z } from "lodash/isArrayBuffer.js";
|
|
6
|
+
import { default as H } from "lodash/isArrayLike.js";
|
|
7
|
+
import { default as Q } from "lodash/isArrayLikeObject.js";
|
|
8
|
+
import { default as Y } from "lodash/isBoolean.js";
|
|
9
|
+
import { default as tt } from "lodash/isBuffer.js";
|
|
10
|
+
import { default as rt } from "lodash/isDate.js";
|
|
11
|
+
import { default as it } from "lodash/isElement.js";
|
|
12
12
|
import i from "lodash/isEmpty.js";
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
13
|
+
import { default as ft } from "lodash/isEmpty.js";
|
|
14
|
+
import { default as ut } from "lodash/isEqual.js";
|
|
15
|
+
import { default as lt } from "lodash/isEqualWith.js";
|
|
16
|
+
import { default as mt } from "lodash/isError.js";
|
|
17
|
+
import { default as xt } from "lodash/isFinite.js";
|
|
18
18
|
import o from "lodash/isFunction.js";
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
19
|
+
import { default as bt } from "lodash/isFunction.js";
|
|
20
|
+
import { default as ht } from "lodash/isInteger.js";
|
|
21
|
+
import { default as Et } from "lodash/isLength.js";
|
|
22
|
+
import { default as Nt } from "lodash/isMap.js";
|
|
23
|
+
import { default as At } from "lodash/isMatch.js";
|
|
24
|
+
import { default as jt } from "lodash/isMatchWith.js";
|
|
25
|
+
import { default as Bt } from "lodash/isNaN.js";
|
|
26
26
|
import { default as kt } from "lodash/isNative.js";
|
|
27
|
-
import
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import
|
|
32
|
-
import { default as
|
|
33
|
-
import
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
function O(t) {
|
|
51
|
-
return s(t) === "[object File]";
|
|
52
|
-
}
|
|
53
|
-
function S(t) {
|
|
54
|
-
return s(t) === "[object Blob]";
|
|
27
|
+
import l from "lodash/isNil.js";
|
|
28
|
+
import { default as vt } from "lodash/isNil.js";
|
|
29
|
+
import { default as Tt } from "lodash/isNull.js";
|
|
30
|
+
import { default as Mt } from "lodash/isNumber.js";
|
|
31
|
+
import d from "lodash/isObject.js";
|
|
32
|
+
import { default as Ct } from "lodash/isObject.js";
|
|
33
|
+
import m from "lodash/isObjectLike.js";
|
|
34
|
+
import { default as Ut } from "lodash/isObjectLike.js";
|
|
35
|
+
import { default as qt } from "lodash/isPlainObject.js";
|
|
36
|
+
import { default as _t } from "lodash/isRegExp.js";
|
|
37
|
+
import { default as zt } from "lodash/isSafeInteger.js";
|
|
38
|
+
import { default as Ht } from "lodash/isSet.js";
|
|
39
|
+
import c from "lodash/isString.js";
|
|
40
|
+
import { default as Qt } from "lodash/isString.js";
|
|
41
|
+
import { default as Yt } from "lodash/isSymbol.js";
|
|
42
|
+
import { default as te } from "lodash/isTypedArray.js";
|
|
43
|
+
import x from "lodash/isUndefined.js";
|
|
44
|
+
import { default as re } from "lodash/isUndefined.js";
|
|
45
|
+
import { default as ie } from "lodash/isWeakMap.js";
|
|
46
|
+
import { default as fe } from "lodash/isWeakSet.js";
|
|
47
|
+
import r from "../object-prototype-to-string-call/index.js";
|
|
48
|
+
function j(t) {
|
|
49
|
+
return r(t, "Promise") || t instanceof Promise || d(t) && o(t.then) && o(t.catch) && o(t.finally);
|
|
55
50
|
}
|
|
56
51
|
function w(t) {
|
|
57
|
-
return
|
|
52
|
+
return r(t, "File") || t instanceof File;
|
|
53
|
+
}
|
|
54
|
+
function B(t) {
|
|
55
|
+
return r(t, "Blob") || t instanceof Blob;
|
|
56
|
+
}
|
|
57
|
+
function F(t) {
|
|
58
|
+
return r(t, "ReadableStream") || t instanceof ReadableStream;
|
|
58
59
|
}
|
|
59
60
|
function k(t) {
|
|
60
|
-
|
|
61
|
-
try {
|
|
62
|
-
JSON.parse(t);
|
|
63
|
-
} catch (r) {
|
|
64
|
-
e = !1, console.error(r);
|
|
65
|
-
}
|
|
66
|
-
return e;
|
|
61
|
+
return r(t, "EventTarget") || t instanceof EventTarget;
|
|
67
62
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
63
|
+
function p(t) {
|
|
64
|
+
if (!(t && c(t))) return !1;
|
|
65
|
+
const e = t.trim();
|
|
66
|
+
if (e.startsWith("{") && e.endsWith("}") || e.startsWith("[") && e.endsWith("]"))
|
|
67
|
+
try {
|
|
68
|
+
return JSON.parse(t), !0;
|
|
69
|
+
} catch {
|
|
70
|
+
return !1;
|
|
71
|
+
}
|
|
72
|
+
return !1;
|
|
70
73
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
74
|
+
function P(t) {
|
|
75
|
+
return p(t);
|
|
73
76
|
}
|
|
74
|
-
function
|
|
75
|
-
return l(t)
|
|
77
|
+
function b(t) {
|
|
78
|
+
return l(t);
|
|
79
|
+
}
|
|
80
|
+
function v(t) {
|
|
81
|
+
return a(t) && i(t);
|
|
76
82
|
}
|
|
77
83
|
function L(t) {
|
|
78
|
-
return
|
|
84
|
+
return m(t) && i(t);
|
|
79
85
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
-
return e.test(t) || r.test(t) || f.test(t) || a.test(t) || n.test(t);
|
|
86
|
+
function T(t) {
|
|
87
|
+
return b(t) || t === "";
|
|
83
88
|
}
|
|
84
|
-
function
|
|
89
|
+
function $(t) {
|
|
90
|
+
const e = /^#(?:[0-9a-fA-F]{3}){1,2}$/, s = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/, f = /^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(1|0|0?\.\d+)\)$/, n = /^hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)$/, u = /^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(1|0|0?\.\d+)\)$/;
|
|
91
|
+
return e.test(t) || s.test(t) || f.test(t) || n.test(t) || u.test(t);
|
|
92
|
+
}
|
|
93
|
+
function M(t) {
|
|
85
94
|
const e = document.createElement("div");
|
|
86
95
|
return e.style.color = t, e.style.color !== "";
|
|
87
96
|
}
|
|
88
|
-
function
|
|
97
|
+
function R(t) {
|
|
89
98
|
const e = t.codePointAt(0);
|
|
90
99
|
return e && e > 65535;
|
|
91
100
|
}
|
|
92
|
-
function
|
|
101
|
+
function C(t) {
|
|
93
102
|
return t || t === 0;
|
|
94
103
|
}
|
|
95
|
-
function
|
|
96
|
-
return !
|
|
97
|
-
}
|
|
98
|
-
function C(t) {
|
|
99
|
-
return t instanceof EventTarget;
|
|
104
|
+
function J(t) {
|
|
105
|
+
return !x(t) && t === window && "window" in t && t.window === t;
|
|
100
106
|
}
|
|
101
107
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
108
|
+
R as is32Bit,
|
|
109
|
+
q as isArguments,
|
|
110
|
+
_ as isArray,
|
|
111
|
+
z as isArrayBuffer,
|
|
112
|
+
H as isArrayLike,
|
|
113
|
+
Q as isArrayLikeObject,
|
|
114
|
+
B as isBlob,
|
|
115
|
+
Y as isBoolean,
|
|
116
|
+
tt as isBuffer,
|
|
117
|
+
$ as isColorValue,
|
|
118
|
+
M as isColorValue_,
|
|
119
|
+
rt as isDate,
|
|
120
|
+
it as isElement,
|
|
121
|
+
ft as isEmpty,
|
|
122
|
+
v as isEmptyArray,
|
|
123
|
+
L as isEmptyObject,
|
|
124
|
+
T as isEmptyValue,
|
|
125
|
+
ut as isEqual,
|
|
126
|
+
lt as isEqualWith,
|
|
127
|
+
mt as isError,
|
|
128
|
+
k as isEventTarget,
|
|
129
|
+
C as isExist,
|
|
130
|
+
w as isFile,
|
|
131
|
+
xt as isFinite,
|
|
132
|
+
bt as isFunction,
|
|
133
|
+
ht as isInteger,
|
|
134
|
+
p as isJSON,
|
|
135
|
+
P as isJSON_String,
|
|
136
|
+
Et as isLength,
|
|
137
|
+
Nt as isMap,
|
|
138
|
+
At as isMatch,
|
|
139
|
+
jt as isMatchWith,
|
|
140
|
+
Bt as isNaN,
|
|
134
141
|
kt as isNative,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
142
|
+
vt as isNil,
|
|
143
|
+
Tt as isNull,
|
|
144
|
+
b as isNullOrUndefined,
|
|
145
|
+
Mt as isNumber,
|
|
146
|
+
Ct as isObject,
|
|
147
|
+
Ut as isObjectLike,
|
|
148
|
+
qt as isPlainObject,
|
|
149
|
+
j as isPromise,
|
|
150
|
+
F as isReadableStream,
|
|
151
|
+
_t as isRegExp,
|
|
152
|
+
zt as isSafeInteger,
|
|
153
|
+
Ht as isSet,
|
|
154
|
+
Qt as isString,
|
|
155
|
+
Yt as isSymbol,
|
|
156
|
+
te as isTypedArray,
|
|
157
|
+
re as isUndefined,
|
|
158
|
+
ie as isWeakMap,
|
|
159
|
+
fe as isWeakSet,
|
|
160
|
+
J as isWindow
|
|
154
161
|
};
|