mazey 5.10.0 → 5.10.1

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/lib/index.d.ts CHANGED
@@ -1782,37 +1782,50 @@ declare function escapeHtmlAttribute(value: string, options?: {
1782
1782
  preserveEntities?: boolean;
1783
1783
  }): string;
1784
1784
  /**
1785
- * Sanitizes user input to prevent XSS attacks.
1785
+ * Escape ampersands, angle brackets, quotes, and forward slashes as HTML entities.
1786
+ *
1787
+ * This performs character escaping only. It does not sanitize arbitrary HTML,
1788
+ * validate URLs, or make every HTML, JavaScript, or CSS context safe.
1786
1789
  *
1787
1790
  * Usage:
1788
1791
  *
1789
1792
  * ```javascript
1790
- * import { sanitizeInput } from "mazey";
1793
+ * import { escapeHTML } from "mazey";
1791
1794
  *
1792
- * const ret = sanitizeInput("<div>hello world</div>");
1795
+ * const ret = escapeHTML("<div>hello world</div>");
1793
1796
  * console.log(ret);
1794
1797
  * ```
1795
1798
  *
1796
1799
  * Output:
1797
1800
  *
1798
1801
  * ```text
1799
- * &lt;div&gt;hello world&lt;/div&gt;
1802
+ * &lt;div&gt;hello world&lt;&#x2F;div&gt;
1800
1803
  * ```
1801
1804
  *
1802
- * @param input - The input string to sanitize
1803
- * @returns The sanitized input string
1805
+ * @param input The string to escape.
1806
+ * @returns The escaped string.
1807
+ * @category Util
1808
+ */
1809
+ declare function escapeHTML(input: string): string;
1810
+ /**
1811
+ * Deprecated alias of {@link escapeHTML}.
1812
+ *
1813
+ * @deprecated Use `escapeHTML` instead.
1804
1814
  * @category Util
1805
1815
  */
1806
- declare function sanitizeInput(input: string): string;
1816
+ declare const sanitizeInput: typeof escapeHTML;
1807
1817
  /**
1808
- * Reverses the sanitization done by the `sanitizeInput` function.
1818
+ * Decode the fixed HTML entity set emitted by {@link escapeHTML}.
1819
+ *
1820
+ * Decoding uses one pass and preserves unrecognized entities. This is not a
1821
+ * general HTML entity decoder, and the result may contain active HTML markup.
1809
1822
  *
1810
1823
  * Usage:
1811
1824
  *
1812
1825
  * ```javascript
1813
- * import { unsanitizeInput } from "mazey";
1826
+ * import { unescapeHTML } from "mazey";
1814
1827
  *
1815
- * const ret = unsanitizeInput("&lt;div&gt;hello world&lt;/div&gt;");
1828
+ * const ret = unescapeHTML("&lt;div&gt;hello world&lt;&#x2F;div&gt;");
1816
1829
  * console.log(ret);
1817
1830
  * ```
1818
1831
  *
@@ -1822,27 +1835,37 @@ declare function sanitizeInput(input: string): string;
1822
1835
  * <div>hello world</div>
1823
1836
  * ```
1824
1837
  *
1825
- * @param input - The input string to unsanitize
1826
- * @returns The unsanitized input string
1838
+ * @param input The string containing escaped characters.
1839
+ * @returns The decoded string.
1840
+ * @category Util
1841
+ */
1842
+ declare function unescapeHTML(input: string): string;
1843
+ /**
1844
+ * Deprecated alias of {@link unescapeHTML}.
1845
+ *
1846
+ * @deprecated Use `unescapeHTML` instead.
1827
1847
  * @category Util
1828
1848
  */
1829
- declare function unsanitizeInput(input: string): string;
1849
+ declare const unsanitizeInput: typeof unescapeHTML;
1830
1850
  /**
1831
- * Alias of `unsanitizeInput`.
1851
+ * Alias of `unescapeHTML`.
1832
1852
  *
1833
1853
  * @hidden
1834
1854
  */
1835
1855
  declare function unsanitize(str: string): string;
1836
1856
  /**
1837
- * Truncate a string by weighted length, counting non-ASCII characters as two
1838
- * units.
1857
+ * Truncate a string by weighted UTF-16 length.
1858
+ *
1859
+ * Code units from U+0000 through U+00FF count as one; all other code units
1860
+ * count as two. Optional truncation text is appended after the length limit.
1861
+ * This does not measure bytes or rendered width and can split surrogate pairs.
1839
1862
  *
1840
1863
  * Usage:
1841
1864
  *
1842
1865
  * ```javascript
1843
- * import { cutZHString } from "mazey";
1866
+ * import { truncateByWeightedLength } from "mazey";
1844
1867
  *
1845
- * const ret = cutZHString("hello world", 5);
1868
+ * const ret = truncateByWeightedLength("hello world", 5);
1846
1869
  * console.log(ret);
1847
1870
  * ```
1848
1871
  *
@@ -1859,12 +1882,19 @@ declare function unsanitize(str: string): string;
1859
1882
  * @returns {string} The truncated string.
1860
1883
  * @category Util
1861
1884
  */
1862
- declare function cutZHString(str: string | null | undefined, len: number, options?: {
1885
+ declare function truncateByWeightedLength(str: string | null | undefined, len: number, options?: {
1863
1886
  hasDot?: boolean;
1864
1887
  dotText?: string;
1865
1888
  }): string;
1866
1889
  /**
1867
- * Alias of `cutZHString`.
1890
+ * Deprecated alias of {@link truncateByWeightedLength}.
1891
+ *
1892
+ * @deprecated Use `truncateByWeightedLength` instead.
1893
+ * @category Util
1894
+ */
1895
+ declare const cutZHString: typeof truncateByWeightedLength;
1896
+ /**
1897
+ * Alias of `truncateByWeightedLength`.
1868
1898
  *
1869
1899
  * Usage:
1870
1900
  *
@@ -2037,17 +2067,20 @@ declare function genHashCode(str: string): number;
2037
2067
  */
2038
2068
  declare function sha256Hex(input: string | BufferSource): Promise<string>;
2039
2069
  /**
2040
- * Check if the given string is a mobile phone number.
2070
+ * Check whether a string has the 11-digit Chinese mobile-number format.
2071
+ *
2072
+ * The pattern requires a leading `1` followed by ten digits. It does not
2073
+ * verify assigned prefixes, ownership, reachability, or international formats.
2041
2074
  *
2042
2075
  * Usage:
2043
2076
  *
2044
2077
  * ```javascript
2045
- * import { isValidPhoneNumber } from "mazey";
2078
+ * import { isCNMobileNumber } from "mazey";
2046
2079
  *
2047
- * const ret1 = isValidPhoneNumber("13800138000");
2048
- * const ret2 = isValidPhoneNumber("1380013800");
2049
- * const ret3 = isValidPhoneNumber("138001380000");
2050
- * const ret4 = isValidPhoneNumber("1380013800a");
2080
+ * const ret1 = isCNMobileNumber("13800138000");
2081
+ * const ret2 = isCNMobileNumber("1380013800");
2082
+ * const ret3 = isCNMobileNumber("138001380000");
2083
+ * const ret4 = isCNMobileNumber("1380013800a");
2051
2084
  * console.log(ret1, ret2, ret3, ret4);
2052
2085
  * ```
2053
2086
  *
@@ -2057,21 +2090,28 @@ declare function sha256Hex(input: string | BufferSource): Promise<string>;
2057
2090
  * true false false false
2058
2091
  * ```
2059
2092
  *
2060
- * @param mobile
2061
- * @returns {boolean} Return true if the given string is a mobile phone number.
2093
+ * @param mobile The string to check.
2094
+ * @returns Whether the string matches the Chinese mobile-number format.
2062
2095
  * @category Util
2063
2096
  */
2064
- declare function isValidPhoneNumber(mobile: string): boolean;
2097
+ declare function isCNMobileNumber(mobile: string): boolean;
2065
2098
  /**
2066
- * Deprecated alias of {@link isValidPhoneNumber}.
2099
+ * Deprecated alias of {@link isCNMobileNumber}.
2100
+ *
2101
+ * @deprecated Use `isCNMobileNumber` instead.
2102
+ * @category Util
2103
+ */
2104
+ declare const isValidPhoneNumber: typeof isCNMobileNumber;
2105
+ /**
2106
+ * Deprecated alias of {@link isCNMobileNumber}.
2067
2107
  *
2068
2108
  * This helper validates an 11-digit Chinese mobile-shaped number. It does not
2069
2109
  * detect a browser's device form factor; use `isPhone` for that purpose.
2070
2110
  *
2071
- * @deprecated Use `isValidPhoneNumber` instead.
2111
+ * @deprecated Use `isCNMobileNumber` instead.
2072
2112
  * @category Util
2073
2113
  */
2074
- declare const isMobile: typeof isValidPhoneNumber;
2114
+ declare const isMobile: typeof isCNMobileNumber;
2075
2115
  /**
2076
2116
  * Check if the given string is a valid email.
2077
2117
  *
@@ -2487,18 +2527,23 @@ declare function isValidHttpUrl(url: string, options?: {
2487
2527
  strict: boolean;
2488
2528
  }): boolean;
2489
2529
  /**
2490
- * Get the file extension from a URL or path.
2530
+ * Extract the extension from a URL or path after removing query and fragment text.
2531
+ *
2532
+ * This string-based helper does not inspect file contents or detect MIME types.
2533
+ * It retains everything after the first dot in the final slash-delimited
2534
+ * segment, so `archive.tar.gz` returns `tar.gz`. It does not parse URL authority:
2535
+ * an origin-only input such as `https://example.com` returns `com`.
2491
2536
  *
2492
2537
  * Usage:
2493
2538
  *
2494
2539
  * ```javascript
2495
- * import { getUrlFileType } from "mazey";
2540
+ * import { getURLPathExtension } from "mazey";
2496
2541
  *
2497
- * const ret1 = getUrlFileType("https://example.com/a/b/c.png");
2498
- * const ret2 = getUrlFileType("https://example.com/a/b/c.jpg");
2499
- * const ret3 = getUrlFileType("https://example.com/a/b/c.jpeg");
2500
- * const ret4 = getUrlFileType("/a/b/c.jpeg");
2501
- * const ret5 = getUrlFileType("https://example.com/a/b/c.v/a");
2542
+ * const ret1 = getURLPathExtension("https://example.com/a/b/c.png");
2543
+ * const ret2 = getURLPathExtension("https://example.com/a/b/c.jpg");
2544
+ * const ret3 = getURLPathExtension("https://example.com/a/b/c.jpeg");
2545
+ * const ret4 = getURLPathExtension("/a/b/c.jpeg");
2546
+ * const ret5 = getURLPathExtension("https://example.com/a/b/c.v/a");
2502
2547
  * console.log(ret1, ret2, ret3, ret4, ret5);
2503
2548
  * ```
2504
2549
  *
@@ -2508,11 +2553,18 @@ declare function isValidHttpUrl(url: string, options?: {
2508
2553
  * png jpg jpeg jpeg ""
2509
2554
  * ```
2510
2555
  *
2511
- * @param url
2512
- * @returns
2556
+ * @param url The URL or path to inspect.
2557
+ * @returns The extension without the leading dot, or an empty string when absent.
2513
2558
  * @category URL
2514
2559
  */
2515
- declare function getUrlFileType(url: string): boolean | string;
2560
+ declare function getURLPathExtension(url: string): boolean | string;
2561
+ /**
2562
+ * Deprecated alias of {@link getURLPathExtension}.
2563
+ *
2564
+ * @deprecated Use `getURLPathExtension` instead.
2565
+ * @category URL
2566
+ */
2567
+ declare const getUrlFileType: typeof getURLPathExtension;
2516
2568
  /**
2517
2569
  * Retrieve a query parameter from a script URL in the browser.
2518
2570
  *
@@ -2697,10 +2749,10 @@ declare function hasClass(obj: MazeyElement, cls: string): boolean;
2697
2749
  * Advanced Usage:
2698
2750
  *
2699
2751
  * ```javascript
2700
- * import { addClass, genBrowserAttrs } from "mazey";
2752
+ * import { addClass, getBrowserClassNames } from "mazey";
2701
2753
  *
2702
2754
  * const ele = document.querySelector("html");
2703
- * addClass(ele, genBrowserAttrs());
2755
+ * addClass(ele, getBrowserClassNames());
2704
2756
  * ```
2705
2757
  *
2706
2758
  * Output:
@@ -2774,18 +2826,18 @@ declare function removeClass(obj: MazeyElement, cls: string): void;
2774
2826
  * <style>body { background-color: #444; }</style>
2775
2827
  * ```
2776
2828
  *
2777
- * Example 3: Combine `genStyleString` and `injectStyle` to add multiple styles at once.
2829
+ * Example 3: Combine `createCSSRule` and `injectStyle` to add multiple styles at once.
2778
2830
  *
2779
2831
  * ```javascript
2780
- * import { genStyleString, injectStyle } from "mazey";
2832
+ * import { createCSSRule, injectStyle } from "mazey";
2781
2833
  *
2782
- * const xStyle = genStyleString(
2834
+ * const xStyle = createCSSRule(
2783
2835
  * ".footer>.x-wish>a:first-child" +
2784
2836
  * ",div.wish-flex>a[href^='https://github.com/chengchuu']" +
2785
2837
  * ",.m-hide",
2786
2838
  * [ "display: none" ]
2787
2839
  * );
2788
- * const yStyle = genStyleString(
2840
+ * const yStyle = createCSSRule(
2789
2841
  * ".footer>.y-wish:before",
2790
2842
  * [
2791
2843
  * `content: 'Copyright (c) chengchuu'`,
@@ -2855,13 +2907,16 @@ declare function setImgSizeBySrc(): boolean;
2855
2907
  */
2856
2908
  declare function setImgWidHeiBySrc(): boolean;
2857
2909
  /**
2858
- * Generate the inline style string from the given parameters. The first parameter is the query selector, and the second parameter is the style array.
2910
+ * Create CSS rule text from a selector and an array of declarations.
2911
+ *
2912
+ * Declarations are joined with semicolons. The selector and declarations are
2913
+ * used verbatim without validation or escaping; this function does not modify the DOM.
2859
2914
  *
2860
2915
  * Usage:
2861
2916
  *
2862
2917
  * ```javascript
2863
- * const ret1 = genStyleString(".a", [ "color:red" ]);
2864
- * const ret2 = genStyleString("#b", [ "color:red", "font-size:12px" ]);
2918
+ * const ret1 = createCSSRule(".a", [ "color:red" ]);
2919
+ * const ret2 = createCSSRule("#b", [ "color:red", "font-size:12px" ]);
2865
2920
  * console.log(ret1);
2866
2921
  * console.log(ret2);
2867
2922
  * ```
@@ -2873,18 +2928,18 @@ declare function setImgWidHeiBySrc(): boolean;
2873
2928
  * #b{color:red;font-size:12px;}
2874
2929
  * ```
2875
2930
  *
2876
- * Example: Combine `genStyleString` and `injectStyle` to add multiple styles at once.
2931
+ * Example: Combine `createCSSRule` and `injectStyle` to add multiple styles at once.
2877
2932
  *
2878
2933
  * ```javascript
2879
- * import { genStyleString, injectStyle } from "mazey";
2934
+ * import { createCSSRule, injectStyle } from "mazey";
2880
2935
  *
2881
- * const xStyle = genStyleString(
2936
+ * const xStyle = createCSSRule(
2882
2937
  * ".footer>.x-wish>a:first-child" +
2883
2938
  * ",div.wish-flex>a[href^='https://github.com/chengchuu']" +
2884
2939
  * ",.m-hide",
2885
2940
  * [ "display: none" ]
2886
2941
  * );
2887
- * const yStyle = genStyleString(
2942
+ * const yStyle = createCSSRule(
2888
2943
  * ".footer>.y-wish:before",
2889
2944
  * [
2890
2945
  * `content: 'Copyright (c) chengchuu'`,
@@ -2906,10 +2961,17 @@ declare function setImgWidHeiBySrc(): boolean;
2906
2961
  *
2907
2962
  * @param {string} selector
2908
2963
  * @param {array} styleArray
2909
- * @returns {string} The inline style string.
2964
+ * @returns {string} The CSS selector and declaration block.
2910
2965
  * @category DOM
2911
2966
  */
2912
- declare function genStyleString(selector: string, styleArray: Array<string>): string;
2967
+ declare function createCSSRule(selector: string, styleArray: Array<string>): string;
2968
+ /**
2969
+ * Deprecated alias of {@link createCSSRule}.
2970
+ *
2971
+ * @deprecated Use `createCSSRule` instead.
2972
+ * @category DOM
2973
+ */
2974
+ declare const genStyleString: typeof createCSSRule;
2913
2975
  /**
2914
2976
  * Get the value of the meta tag by the given name.
2915
2977
  *
@@ -3848,7 +3910,7 @@ type VisitorType = "crawler" | "automation" | "unknown";
3848
3910
  * @remarks Device classification is heuristic and spoofable. Do not use this
3849
3911
  * helper as a security boundary or as a substitute for responsive CSS or
3850
3912
  * feature detection. It does not inspect viewport dimensions. The separate
3851
- * `isMobile` export is an alias of the `isValidPhoneNumber` string validator.
3913
+ * `isMobile` export is an alias of the `isCNMobileNumber` string validator.
3852
3914
  * @category Browser Information
3853
3915
  */
3854
3916
  declare function isPhone(userAgent?: string): boolean;
@@ -4224,14 +4286,17 @@ declare function isStandalonePWA(options?: IsStandalonePWAOptions): boolean;
4224
4286
  */
4225
4287
  declare function getBrowserInfo(): BrowserInfo;
4226
4288
  /**
4227
- * Generate browser attributes from the detected browser information.
4289
+ * Get CSS class-name tokens from the cached browser classification.
4290
+ *
4291
+ * Each available classification value receives the optional prefix and
4292
+ * separator. This function returns strings without modifying the DOM.
4228
4293
  *
4229
4294
  * Usage:
4230
4295
  *
4231
4296
  * ```javascript
4232
- * import { genBrowserAttrs } from "mazey";
4297
+ * import { getBrowserClassNames } from "mazey";
4233
4298
  *
4234
- * const attrs = genBrowserAttrs();
4299
+ * const attrs = getBrowserClassNames();
4235
4300
  * console.log(attrs);
4236
4301
  * ```
4237
4302
  *
@@ -4242,11 +4307,19 @@ declare function getBrowserInfo(): BrowserInfo;
4242
4307
  * ```
4243
4308
  *
4244
4309
  * @remarks Browser only.
4245
- * @param {string} prefix
4246
- * @returns {array} Browser attributes
4310
+ * @param prefix Optional prefix for every class name.
4311
+ * @param separator Separator between a non-empty prefix and each value. Defaults to `-`.
4312
+ * @returns Browser classification class names.
4313
+ * @category Browser Information
4314
+ */
4315
+ declare function getBrowserClassNames(prefix?: string, separator?: string): string[];
4316
+ /**
4317
+ * Deprecated alias of {@link getBrowserClassNames}.
4318
+ *
4319
+ * @deprecated Use `getBrowserClassNames` instead.
4247
4320
  * @category Browser Information
4248
4321
  */
4249
- declare function genBrowserAttrs(prefix?: string, separator?: string): string[];
4322
+ declare const genBrowserAttrs: typeof getBrowserClassNames;
4250
4323
  /**
4251
4324
  * Detect webp support.
4252
4325
  *
@@ -4655,5 +4728,5 @@ declare const mazeyCon: Console;
4655
4728
  */
4656
4729
  declare const timeCon: Console;
4657
4730
 
4658
- export { addClass, addEvent, addStyle, assignDefined, calLongestCommonSubsequence, calLongestCommonSubstring, calculateAspectRatio, calculateCAGR, camelCase2Underscore, camelCaseToKebabCase, cancelBubble, clearHTML, clearHtml, convert10To26, convertCamelToKebab, convertCamelToUnder, convertHttpToHttps, convertKebabToCamel, convertObjectToQuery, convertToHtmlBreaks, convertUnderToCamel, cutCHSString, cutZHString, debounce, deepCopy, deepCopyObject, deepFreeze, delCookie, derivePackageMetadata, detectVisitorType, doFn, escapeHtmlAttribute, extractElementText, fireEvent, floatFixed, floatToPercent, formatByteSize, formatDate, formatDistanceToNow, formatDurationFromMs, formatLocalDateTime, genBrowserAttrs, genCustomConsole, genHashCode, genRndNumString, genStyleString, genUniqueNumString, generateCalendarVersion, generateRndNum, generateUniqueNum, getAllQueryParams, getBrowserInfo, getCLS, getCookie, getCurrentVersion, getDateDifference, getDefineListeners, getDomain, getFCP, getFID, getFP, getFileSize, getFriendlyInterval, getHashQueryParam, getLCP, getLocalJSON, getLocalStorage, getPageMeta, getPerformance, getQueryParam, getScriptQueryParam, getSessionJSON, getSessionStorage, getSystemTheme, getTTFB, getUrlFileType, getUrlHost, getUrlParam, getUrlPath, hasClass, hide, hideElements, inRate, injectStyle, invokeEvent, invokeFn, isAndroid, isArray, isBool, isBoolean, isBrowser, isDesktop, isFunction, isHit, isIOS, isJSONString, isJsonString, isLinux, isMacOS, isMobile, isNonEmptyArray, isNonEmptyObject, isNullish, isNumber, isPhone, isPureObject, isSafePWAEnv, isStandalonePWA, isString, isSupportWebp, isSupportedEntryType, isTablet, isThisHour, isThisMonth, isThisWeek, isThisYear, isToday, isUdfOrNul, isValidCssSelector, isValidData, isValidDate, isValidEmail, isValidHttpUrl, isValidPhoneNumber, isValidUrl, isWindows, listenMediaQueryChanges, loadCSS, loadImage, loadScript, loadScriptIfUndefined, longestComSubsequence, longestComSubstring, mNow, mTrim, mazeyCon, newLine, onEvent, onURLChange, parseGitHubRepository, parseJsonSafe, parseLocalDateTime, randomBoolean, removeClass, removeCookie, removeEvent, removeHTML, removeHtml, repeatUntilConditionMet, replaceHttp, resolveElementTarget, resolveLanguagePreference, resolveThemePreference, sanitizeInput, setClass, setCookie, setImgSizeBySrc, setImgWidHeiBySrc, setLanguagePreference, setLocalJSON, setLocalStorage, setSessionJSON, setSessionStorage, setThemePreference, sha256Hex, show, showElements, sleep, subYears, throttle, timeCon, toJavaScriptGlobalName, truncateZHString, unsanitize, unsanitizeInput, updateQueryParam, waitTime, watchServiceWorkerUpdates, windowLoaded, zAxiosIsValidRes };
4731
+ export { addClass, addEvent, addStyle, assignDefined, calLongestCommonSubsequence, calLongestCommonSubstring, calculateAspectRatio, calculateCAGR, camelCase2Underscore, camelCaseToKebabCase, cancelBubble, clearHTML, clearHtml, convert10To26, convertCamelToKebab, convertCamelToUnder, convertHttpToHttps, convertKebabToCamel, convertObjectToQuery, convertToHtmlBreaks, convertUnderToCamel, createCSSRule, cutCHSString, cutZHString, debounce, deepCopy, deepCopyObject, deepFreeze, delCookie, derivePackageMetadata, detectVisitorType, doFn, escapeHTML, escapeHtmlAttribute, extractElementText, fireEvent, floatFixed, floatToPercent, formatByteSize, formatDate, formatDistanceToNow, formatDurationFromMs, formatLocalDateTime, genBrowserAttrs, genCustomConsole, genHashCode, genRndNumString, genStyleString, genUniqueNumString, generateCalendarVersion, generateRndNum, generateUniqueNum, getAllQueryParams, getBrowserClassNames, getBrowserInfo, getCLS, getCookie, getCurrentVersion, getDateDifference, getDefineListeners, getDomain, getFCP, getFID, getFP, getFileSize, getFriendlyInterval, getHashQueryParam, getLCP, getLocalJSON, getLocalStorage, getPageMeta, getPerformance, getQueryParam, getScriptQueryParam, getSessionJSON, getSessionStorage, getSystemTheme, getTTFB, getURLPathExtension, getUrlFileType, getUrlHost, getUrlParam, getUrlPath, hasClass, hide, hideElements, inRate, injectStyle, invokeEvent, invokeFn, isAndroid, isArray, isBool, isBoolean, isBrowser, isCNMobileNumber, isDesktop, isFunction, isHit, isIOS, isJSONString, isJsonString, isLinux, isMacOS, isMobile, isNonEmptyArray, isNonEmptyObject, isNullish, isNumber, isPhone, isPureObject, isSafePWAEnv, isStandalonePWA, isString, isSupportWebp, isSupportedEntryType, isTablet, isThisHour, isThisMonth, isThisWeek, isThisYear, isToday, isUdfOrNul, isValidCssSelector, isValidData, isValidDate, isValidEmail, isValidHttpUrl, isValidPhoneNumber, isValidUrl, isWindows, listenMediaQueryChanges, loadCSS, loadImage, loadScript, loadScriptIfUndefined, longestComSubsequence, longestComSubstring, mNow, mTrim, mazeyCon, newLine, onEvent, onURLChange, parseGitHubRepository, parseJsonSafe, parseLocalDateTime, randomBoolean, removeClass, removeCookie, removeEvent, removeHTML, removeHtml, repeatUntilConditionMet, replaceHttp, resolveElementTarget, resolveLanguagePreference, resolveThemePreference, sanitizeInput, setClass, setCookie, setImgSizeBySrc, setImgWidHeiBySrc, setLanguagePreference, setLocalJSON, setLocalStorage, setSessionJSON, setSessionStorage, setThemePreference, sha256Hex, show, showElements, sleep, subYears, throttle, timeCon, toJavaScriptGlobalName, truncateByWeightedLength, truncateZHString, unescapeHTML, unsanitize, unsanitizeInput, updateQueryParam, waitTime, watchServiceWorkerUpdates, windowLoaded, zAxiosIsValidRes };
4659
4732
  export type { DerivePackageMetadataOptions, DerivedPackageMetadata, DomVisibilityTarget, FormatByteSizeOptions, GitHubRepositoryDetails, InvestmentReturnRate, IsNumberOptions, IsSafePWAEnvOptions, IsStandalonePWAOptions, LocalDateTimePrecision, PWAEnvironment, PackageManager, PackageManifest, PackageManifestAuthor, PreferenceResult, ResolveElementTargetOptions, ResolvedTheme, ServiceWorkerUpdateCallbacks, ServiceWorkerUpdateWatcher, ThemePreference, VisitorType };